@decocms/mesh 2.138.2 → 2.138.4
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/README.md +0 -1
- package/dist/client/assets/AlertCircle-CQO_R9vE.js +1 -0
- package/dist/client/assets/AlignLeft-B3ZpXrmC.js +1 -0
- package/dist/client/assets/ArrowDown-BD49oKXO.js +1 -0
- package/dist/client/assets/ArrowLeft-B7S65Iaz.js +1 -0
- package/dist/client/assets/ArrowUp-RjRtEOWc.js +1 -0
- package/dist/client/assets/Check-D9lXJsaA.js +1 -0
- package/dist/client/assets/CheckCircle-fq-dSxyi.js +1 -0
- package/dist/client/assets/CheckDone01-GzVyd5lu.js +1 -0
- package/dist/client/assets/CheckVerified02-Dytxsscn.js +1 -0
- package/dist/client/assets/ChevronDown-DBgIs680.js +1 -0
- package/dist/client/assets/ChevronLeft-BrQZluH0.js +1 -0
- package/dist/client/assets/ChevronRight-HoYy9XH_.js +1 -0
- package/dist/client/assets/Clock-CeWG-KL9.js +1 -0
- package/dist/client/assets/Code01-EFUGPHJu.js +1 -0
- package/dist/client/assets/Container-CdIx_KXj.js +1 -0
- package/dist/client/assets/Copy01-CHeojQBg.js +1 -0
- package/dist/client/assets/Dataflow03-Bxum-Bb7.js +1 -0
- package/dist/client/assets/DotsHorizontal-D_RovhTr.js +1 -0
- package/dist/client/assets/DotsVertical-B3hiyktf.js +1 -0
- package/dist/client/assets/Download01-BorK_KK-.js +1 -0
- package/dist/client/assets/Edit01-B4_LyEeJ.js +1 -0
- package/dist/client/assets/Edit05-C3hsIW7O.js +1 -0
- package/dist/client/assets/Eye-D2i76mC_.js +1 -0
- package/dist/client/assets/File02-VQIYRhnN.js +1 -0
- package/dist/client/assets/File06-C1LiF1XF.js +1 -0
- package/dist/client/assets/FilterLines-CcV0SdfT.js +1 -0
- package/dist/client/assets/Globe01-CZ63rFAU.js +1 -0
- package/dist/client/assets/Globe02-PTxBoQyr.js +1 -0
- package/dist/client/assets/Grid01-DKAtqSuT.js +1 -0
- package/dist/client/assets/Hash02-BiImHcjf.js +1 -0
- package/dist/client/assets/Home02-C0nBY06F.js +1 -0
- package/dist/client/assets/Image01-DkzH-6YA.js +1 -0
- package/dist/client/assets/Inbox01-CfS25sbO.js +1 -0
- package/dist/client/assets/InfoCircle-PnMEZR9g.js +1 -0
- package/dist/client/assets/Key01-BdN90D9V.js +1 -0
- package/dist/client/assets/LayersTwo01-D3taP6E2.js +1 -0
- package/dist/client/assets/LayoutLeft-080jvtRz.js +1 -0
- package/dist/client/assets/Link01-DcVQ0cL6.js +1 -0
- package/dist/client/assets/LinkExternal01-9e-qTNcr.js +1 -0
- package/dist/client/assets/List-DP7Lu6y3.js +1 -0
- package/dist/client/assets/Loading01-C_B9sYFJ.js +1 -0
- package/dist/client/assets/Lock01-trLUsxFp.js +1 -0
- package/dist/client/assets/Play-Bi_oRVoW.js +1 -0
- package/dist/client/assets/Plus-BFLqqDLD.js +1 -0
- package/dist/client/assets/RefreshCcw01-CY1Eh5TG.js +1 -0
- package/dist/client/assets/Save01-ClEKdoLL.js +1 -0
- package/dist/client/assets/SearchMd-B4t0SNdI.js +1 -0
- package/dist/client/assets/Settings01-KuJluZge.js +1 -0
- package/dist/client/assets/Shield01-qBDq3Afo.js +1 -0
- package/dist/client/assets/Terminal-BC8XgC3o.js +1 -0
- package/dist/client/assets/Trash01-DmvjTka0.js +1 -0
- package/dist/client/assets/Upload01-fBYLyEfw.js +1 -0
- package/dist/client/assets/Users03-ClPnePpL.js +1 -0
- package/dist/client/assets/X-D4c41tzD.js +1 -0
- package/dist/client/assets/XCircle-CnhxUqTa.js +1 -0
- package/dist/client/assets/XClose-EVD0GFXh.js +1 -0
- package/dist/client/assets/Zap-BgBzY74s.js +1 -0
- package/dist/client/assets/agent-connections-preview-DvzaMtqM.js +1 -0
- package/dist/client/assets/agent-detail-BSS-9rms.js +2 -0
- package/dist/client/assets/agents-8hQYd9JV.js +1 -0
- package/dist/client/assets/alert-dialog-DEWpTmYD.js +7 -0
- package/dist/client/assets/auth-catchall-DHHP-rgJ.js +1 -0
- package/dist/client/assets/avatar-DT_LZoIt.js +1 -0
- package/dist/client/assets/badge-CsGZTLNs.js +1 -0
- package/dist/client/assets/binder-CDcp00Mg.js +1 -0
- package/dist/client/assets/breadcrumb-BEW89iCW.js +1 -0
- package/dist/client/assets/card-DZ9VpS4B.js +1 -0
- package/dist/client/assets/chart-D7z8dhYy.js +15 -0
- package/dist/client/assets/checkbox-DrpSReC9.js +1 -0
- package/dist/client/assets/circle-alert-QAWFjHbk.js +1 -0
- package/dist/client/assets/collapsible-DYC2Ob69.js +23 -0
- package/dist/client/assets/collection-detail-54GVb2vV.js +26 -0
- package/dist/client/assets/collection-display-button-HSLRW3IB.js +1 -0
- package/dist/client/assets/collection-search-GBhiWn69.js +1 -0
- package/dist/client/assets/collection-tab-CXrwuSXk.js +1 -0
- package/dist/client/assets/collection-table-wrapper-C0RxeQt7.js +1 -0
- package/dist/client/assets/collection-tabs-BcVqwzIu.js +1 -0
- package/dist/client/assets/command-uztNMDn0.js +1 -0
- package/dist/client/assets/connect-DMdWhBVj.js +1 -0
- package/dist/client/assets/connection-card-Cbe3U4w5.js +1 -0
- package/dist/client/assets/connection-detail-CJD-eU2I.js +1 -0
- package/dist/client/assets/connection-status-DXEJC0gU.js +1 -0
- package/dist/client/assets/connections-BirGHcf8.js +1 -0
- package/dist/client/assets/constants-Bl1c6iwZ.js +1 -0
- package/dist/client/assets/constants-CA3youed.js +1 -0
- package/dist/client/assets/create-organization-dialog-DIygt-aQ.js +1 -0
- package/dist/client/assets/create-project-dialog-mRUoz246.js +1 -0
- package/dist/client/assets/danger-CO1GApwg.js +1 -0
- package/dist/client/assets/danger-zone-Bya1y6en.js +1 -0
- package/dist/client/assets/decopilot-events-DAHzmsZY.js +1 -0
- package/dist/client/assets/dependencies-B5Z01sf8.js +1 -0
- package/dist/client/assets/dialog-DYuk8g9p.js +1 -0
- package/dist/client/assets/dropdown-menu-CNVmkBN0.js +1 -0
- package/dist/client/assets/dynamic-plugin-layout-CqhxGK_6.js +1 -0
- package/dist/client/assets/editable-task-title-E39YRfNZ.js +16 -0
- package/dist/client/assets/empty-state-D_Oft8oe.js +1 -0
- package/dist/client/assets/env-vars-editor-5LPY76ro.js +1 -0
- package/dist/client/assets/extract-connection-data-Bv2A4Jc0.js +1 -0
- package/dist/client/assets/file-browser-DX3fwVnD.js +2 -0
- package/dist/client/assets/form-CLXoj61-.js +1 -0
- package/dist/client/assets/general-BW4JiPTh.js +1 -0
- package/dist/client/assets/grid-view-BbfwQ7aH.js +1 -0
- package/dist/client/assets/home-FqVxfBss.js +1 -0
- package/dist/client/assets/icon-picker-DSsSkrZ5.js +1 -0
- package/dist/client/assets/index-BDT2ryUs.js +184 -0
- package/dist/client/assets/index-BJYy-P9g.js +1 -0
- package/dist/client/assets/index-BN_UM35L.js +218 -0
- package/dist/client/assets/index-BtJmnUoR.js +1 -0
- package/dist/client/assets/index-CfeSJRvb.js +1 -0
- package/dist/client/assets/index-Cmmt0a8N.js +25 -0
- package/dist/client/assets/index-CwvbBxmT.js +1 -0
- package/dist/client/assets/index-CxH8YHpa.js +1 -0
- package/dist/client/assets/index-jF6bjBE9.js +1 -0
- package/dist/client/assets/infiniteQueryObserver-x6HxWZdS.js +1 -0
- package/dist/client/assets/input-BtmUd_cM.js +1 -0
- package/dist/client/assets/integration-icon-DSveuBUM.js +1 -0
- package/dist/client/assets/label-CPUHBmuE.js +1 -0
- package/dist/client/assets/layout-KThPUSk-.js +1 -0
- package/dist/client/assets/layout-hfuWpeC7.js +1 -0
- package/dist/client/assets/localstorage-keys-CKxXM1Zg.js +1 -0
- package/dist/client/assets/login-DCkjNBsc.js +1 -0
- package/dist/client/assets/markdown-BLOrH03b.js +29 -0
- package/dist/client/assets/mcp-app-renderer-DsMg9Ix6.js +11 -0
- package/dist/client/assets/mcp-server-card-z5TcwbAD.js +1 -0
- package/dist/client/assets/mcp-server-detail-D4DOHJTf.js +2 -0
- package/dist/client/assets/members-K6-MnLc7.js +3 -0
- package/dist/client/assets/monaco-editor-Cf1K_aK4.js +19 -0
- package/dist/client/assets/monitoring-B0wiGk7U.js +31 -0
- package/dist/client/assets/monitoring-dashboard-edit-MkYx6gQ3.js +1 -0
- package/dist/client/assets/monitoring-dashboard-view-DAdQAayh.js +4 -0
- package/dist/client/assets/oauth-callback-D9tlfOIh.js +1 -0
- package/dist/client/assets/page-B9GEP2y9.js +1 -0
- package/dist/client/assets/page-BmOqp3jS.js +1 -0
- package/dist/client/assets/plugin-empty-state-D50jcY51.js +1 -0
- package/dist/client/assets/plugin-empty-state-Wl0BaOAI.js +1 -0
- package/dist/client/assets/plugin-header-BaeglqBd.js +1 -0
- package/dist/client/assets/plugin-header-CtUhPsyi.js +1 -0
- package/dist/client/assets/plugins-C0PtM1mJ.js +1 -0
- package/dist/client/assets/popover-B7y_eXRW.js +1 -0
- package/dist/client/assets/project-app-view-Cl32ODW3.js +1 -0
- package/dist/client/assets/project-layout-BgjnD9HU.js +1 -0
- package/dist/client/assets/project-plugins-BsiHFfwz.js +1 -0
- package/dist/client/assets/projects-list-yTnoZDbh.js +1 -0
- package/dist/client/assets/readme-viewer-1DT7-yNw.js +1 -0
- package/dist/client/assets/registry-layout-7imIs8yX.js +5 -0
- package/dist/client/assets/registry-utils-BTG1UbXS.js +1 -0
- package/dist/client/assets/reports-layout-DdxKgPy1.js +3 -0
- package/dist/client/assets/reset-password-2PjcUSg5.js +1 -0
- package/dist/client/assets/resizable-DqBdbJmP.js +1 -0
- package/dist/client/assets/save-actions-JdGuanNV.js +1 -0
- package/dist/client/assets/scroll-area-Cz_Z57jl.js +1 -0
- package/dist/client/assets/select-CJ0WbWhw.js +1 -0
- package/dist/client/assets/shell-layout-gmw9lMGW.js +3 -0
- package/dist/client/assets/sidebar-settings-DuklQQSB.js +1 -0
- package/dist/client/assets/skeleton-09BWoyIU.js +1 -0
- package/dist/client/assets/spinner-CY-cGXkT.js +1 -0
- package/dist/client/assets/store-invite-DwnK72nj.js +1 -0
- package/dist/client/assets/switch-CyxUy1ed.js +1 -0
- package/dist/client/assets/table-D_KN1LIP.js +1 -0
- package/dist/client/assets/tabs-BzE_Dln2.js +1 -0
- package/dist/client/assets/tasks-GMlLmwIV.js +1 -0
- package/dist/client/assets/tasks-panel-ByPA8XQG.js +1 -0
- package/dist/client/assets/textarea-DiW4MEUS.js +1 -0
- package/dist/client/assets/time-range-picker-W4dVf5up.js +5 -0
- package/dist/client/assets/toggle-group-CKziXTyd.js +1 -0
- package/dist/client/assets/tools-list-BPgbcPAy.js +1 -0
- package/dist/client/assets/tooltip-DOx1-u0d.js +1 -0
- package/dist/client/assets/topbar-portal-CSqh_itS.js +1 -0
- package/dist/client/assets/types-BO448PQX.js +155 -0
- package/dist/client/assets/use-binding-Be9S_f5x.js +1 -0
- package/dist/client/assets/use-collections-PGZX-u3n.js +1 -0
- package/dist/client/assets/use-connection-DrWA1-SG.js +1 -0
- package/dist/client/assets/use-copy-D5vKlRFE.js +1 -0
- package/dist/client/assets/use-create-virtual-mcp-Bev1rxVf.js +1 -0
- package/dist/client/assets/use-install-from-registry-J3tNYDkc.js +1 -0
- package/dist/client/assets/use-list-state-aowpg3cY.js +1 -0
- package/dist/client/assets/use-llm-s5cDT0_W.js +1 -0
- package/dist/client/assets/use-mcp-resources-DJe1sYOy.js +1 -0
- package/dist/client/assets/use-mcp-tools-DhQR6fle.js +1 -0
- package/dist/client/assets/use-members-Cnoc5ZoX.js +1 -0
- package/dist/client/assets/use-mobile-lt0woG34.js +1 -0
- package/dist/client/assets/use-project-DI6XLcfJ.js +1 -0
- package/dist/client/assets/use-settings-modal-SbE3LoSf.js +1 -0
- package/dist/client/assets/use-view-mode-Bb4Qf0pL.js +1 -0
- package/dist/client/assets/use-virtual-mcp-Ba9XxHiK.js +1 -0
- package/dist/client/assets/useInfiniteQuery-BVWe13qD.js +1 -0
- package/dist/client/assets/useMutation-IYrVYrYf.js +1 -0
- package/dist/client/assets/useQuery-DIWx-da1.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-nAgabxOU.js +1 -0
- package/dist/client/assets/user-Y5jeVfLy.js +1 -0
- package/dist/client/assets/workflow-B3tFa-4E.js +1 -0
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +3 -3
- package/dist/server/migrate.js +1 -1
- package/dist/server/node_modules/@babel/core/README.md +19 -0
- package/dist/server/node_modules/@babel/core/lib/config/cache-contexts.js +5 -0
- package/dist/server/node_modules/@babel/core/lib/config/cache-contexts.js.map +1 -0
- package/dist/server/node_modules/@babel/core/lib/config/caching.js +261 -0
- package/dist/server/node_modules/@babel/core/lib/config/caching.js.map +1 -0
- package/dist/server/node_modules/@babel/core/lib/config/config-chain.js +469 -0
- package/dist/server/node_modules/@babel/core/lib/config/config-chain.js.map +1 -0
- package/dist/server/node_modules/@babel/core/lib/config/config-descriptors.js +190 -0
- package/dist/server/node_modules/@babel/core/lib/config/config-descriptors.js.map +1 -0
- package/dist/server/node_modules/@babel/core/lib/config/files/configuration.js +290 -0
- package/dist/server/node_modules/@babel/core/lib/config/files/configuration.js.map +1 -0
- package/dist/server/node_modules/@babel/core/lib/config/files/import.cjs +6 -0
- package/dist/server/node_modules/@babel/core/lib/config/files/import.cjs.map +1 -0
- package/dist/server/node_modules/@babel/core/lib/config/files/index-browser.js +58 -0
- package/dist/server/node_modules/@babel/core/lib/config/files/index-browser.js.map +1 -0
- package/dist/server/node_modules/@babel/core/lib/config/files/index.js +78 -0
- package/dist/server/node_modules/@babel/core/lib/config/files/index.js.map +1 -0
- package/dist/server/node_modules/@babel/core/lib/config/files/module-types.js +203 -0
- package/dist/server/node_modules/@babel/core/lib/config/files/module-types.js.map +1 -0
- package/dist/server/node_modules/@babel/core/lib/config/files/package.js +61 -0
- package/dist/server/node_modules/@babel/core/lib/config/files/package.js.map +1 -0
- package/dist/server/node_modules/@babel/core/lib/config/files/plugins.js +220 -0
- package/dist/server/node_modules/@babel/core/lib/config/files/plugins.js.map +1 -0
- package/dist/server/node_modules/@babel/core/lib/config/files/types.js +5 -0
- package/dist/server/node_modules/@babel/core/lib/config/files/types.js.map +1 -0
- package/dist/server/node_modules/@babel/core/lib/config/files/utils.js +36 -0
- package/dist/server/node_modules/@babel/core/lib/config/files/utils.js.map +1 -0
- package/dist/server/node_modules/@babel/core/lib/config/full.js +312 -0
- package/dist/server/node_modules/@babel/core/lib/config/full.js.map +1 -0
- package/dist/server/node_modules/@babel/core/lib/config/helpers/config-api.js +85 -0
- package/dist/server/node_modules/@babel/core/lib/config/helpers/config-api.js.map +1 -0
- package/dist/server/node_modules/@babel/core/lib/config/helpers/deep-array.js +23 -0
- package/dist/server/node_modules/@babel/core/lib/config/helpers/deep-array.js.map +1 -0
- package/dist/server/node_modules/@babel/core/lib/config/helpers/environment.js +12 -0
- package/dist/server/node_modules/@babel/core/lib/config/helpers/environment.js.map +1 -0
- package/dist/server/node_modules/@babel/core/lib/config/index.js +87 -0
- package/dist/server/node_modules/@babel/core/lib/config/index.js.map +1 -0
- package/dist/server/node_modules/@babel/core/lib/config/item.js +67 -0
- package/dist/server/node_modules/@babel/core/lib/config/item.js.map +1 -0
- package/dist/server/node_modules/@babel/core/lib/config/partial.js +158 -0
- package/dist/server/node_modules/@babel/core/lib/config/partial.js.map +1 -0
- package/dist/server/node_modules/@babel/core/lib/config/pattern-to-regex.js +38 -0
- package/dist/server/node_modules/@babel/core/lib/config/pattern-to-regex.js.map +1 -0
- package/dist/server/node_modules/@babel/core/lib/config/plugin.js +33 -0
- package/dist/server/node_modules/@babel/core/lib/config/plugin.js.map +1 -0
- package/dist/server/node_modules/@babel/core/lib/config/printer.js +113 -0
- package/dist/server/node_modules/@babel/core/lib/config/printer.js.map +1 -0
- package/dist/server/node_modules/@babel/core/lib/config/resolve-targets-browser.js +41 -0
- package/dist/server/node_modules/@babel/core/lib/config/resolve-targets-browser.js.map +1 -0
- package/dist/server/node_modules/@babel/core/lib/config/resolve-targets.js +61 -0
- package/dist/server/node_modules/@babel/core/lib/config/resolve-targets.js.map +1 -0
- package/dist/server/node_modules/@babel/core/lib/config/util.js +31 -0
- package/dist/server/node_modules/@babel/core/lib/config/util.js.map +1 -0
- package/dist/server/node_modules/@babel/core/lib/config/validation/option-assertions.js +277 -0
- package/dist/server/node_modules/@babel/core/lib/config/validation/option-assertions.js.map +1 -0
- package/dist/server/node_modules/@babel/core/lib/config/validation/options.js +187 -0
- package/dist/server/node_modules/@babel/core/lib/config/validation/options.js.map +1 -0
- package/dist/server/node_modules/@babel/core/lib/config/validation/plugins.js +67 -0
- package/dist/server/node_modules/@babel/core/lib/config/validation/plugins.js.map +1 -0
- package/dist/server/node_modules/@babel/core/lib/config/validation/removed.js +68 -0
- package/dist/server/node_modules/@babel/core/lib/config/validation/removed.js.map +1 -0
- package/dist/server/node_modules/@babel/core/lib/errors/config-error.js +18 -0
- package/dist/server/node_modules/@babel/core/lib/errors/config-error.js.map +1 -0
- package/dist/server/node_modules/@babel/core/lib/errors/rewrite-stack-trace.js +98 -0
- package/dist/server/node_modules/@babel/core/lib/errors/rewrite-stack-trace.js.map +1 -0
- package/dist/server/node_modules/@babel/core/lib/gensync-utils/async.js +90 -0
- package/dist/server/node_modules/@babel/core/lib/gensync-utils/async.js.map +1 -0
- package/dist/server/node_modules/@babel/core/lib/gensync-utils/fs.js +31 -0
- package/dist/server/node_modules/@babel/core/lib/gensync-utils/fs.js.map +1 -0
- package/dist/server/node_modules/@babel/core/lib/gensync-utils/functional.js +58 -0
- package/dist/server/node_modules/@babel/core/lib/gensync-utils/functional.js.map +1 -0
- package/dist/server/node_modules/@babel/core/lib/index.js +230 -0
- package/dist/server/node_modules/@babel/core/lib/index.js.map +1 -0
- package/dist/server/node_modules/@babel/core/lib/parse.js +45 -0
- package/dist/server/node_modules/@babel/core/lib/parse.js.map +1 -0
- package/dist/server/node_modules/@babel/core/lib/parser/index.js +85 -0
- package/dist/server/node_modules/@babel/core/lib/parser/index.js.map +1 -0
- package/dist/server/node_modules/@babel/core/lib/parser/util/missing-plugin-helper.js +337 -0
- package/dist/server/node_modules/@babel/core/lib/parser/util/missing-plugin-helper.js.map +1 -0
- package/dist/server/node_modules/@babel/core/lib/tools/build-external-helpers.js +144 -0
- package/dist/server/node_modules/@babel/core/lib/tools/build-external-helpers.js.map +1 -0
- package/dist/server/node_modules/@babel/core/lib/transform-ast.js +48 -0
- package/dist/server/node_modules/@babel/core/lib/transform-ast.js.map +1 -0
- package/dist/server/node_modules/@babel/core/lib/transform-file-browser.js +23 -0
- package/dist/server/node_modules/@babel/core/lib/transform-file-browser.js.map +1 -0
- package/dist/server/node_modules/@babel/core/lib/transform-file.js +40 -0
- package/dist/server/node_modules/@babel/core/lib/transform-file.js.map +1 -0
- package/dist/server/node_modules/@babel/core/lib/transform.js +47 -0
- package/dist/server/node_modules/@babel/core/lib/transform.js.map +1 -0
- package/dist/server/node_modules/@babel/core/lib/transformation/block-hoist-plugin.js +84 -0
- package/dist/server/node_modules/@babel/core/lib/transformation/block-hoist-plugin.js.map +1 -0
- package/dist/server/node_modules/@babel/core/lib/transformation/file/babel-7-helpers.cjs +4 -0
- package/dist/server/node_modules/@babel/core/lib/transformation/file/babel-7-helpers.cjs.map +1 -0
- package/dist/server/node_modules/@babel/core/lib/transformation/file/file.js +204 -0
- package/dist/server/node_modules/@babel/core/lib/transformation/file/file.js.map +1 -0
- package/dist/server/node_modules/@babel/core/lib/transformation/file/generate.js +84 -0
- package/dist/server/node_modules/@babel/core/lib/transformation/file/generate.js.map +1 -0
- package/dist/server/node_modules/@babel/core/lib/transformation/file/merge-map.js +37 -0
- package/dist/server/node_modules/@babel/core/lib/transformation/file/merge-map.js.map +1 -0
- package/dist/server/node_modules/@babel/core/lib/transformation/index.js +90 -0
- package/dist/server/node_modules/@babel/core/lib/transformation/index.js.map +1 -0
- package/dist/server/node_modules/@babel/core/lib/transformation/normalize-file.js +127 -0
- package/dist/server/node_modules/@babel/core/lib/transformation/normalize-file.js.map +1 -0
- package/dist/server/node_modules/@babel/core/lib/transformation/normalize-opts.js +59 -0
- package/dist/server/node_modules/@babel/core/lib/transformation/normalize-opts.js.map +1 -0
- package/dist/server/node_modules/@babel/core/lib/transformation/plugin-pass.js +48 -0
- package/dist/server/node_modules/@babel/core/lib/transformation/plugin-pass.js.map +1 -0
- package/dist/server/node_modules/@babel/core/lib/transformation/util/clone-deep.js +54 -0
- package/dist/server/node_modules/@babel/core/lib/transformation/util/clone-deep.js.map +1 -0
- package/dist/server/node_modules/@babel/core/lib/vendor/import-meta-resolve.js +1042 -0
- package/dist/server/node_modules/@babel/core/lib/vendor/import-meta-resolve.js.map +1 -0
- package/dist/server/node_modules/@babel/core/package.json +82 -0
- package/dist/server/node_modules/@babel/core/src/config/files/index-browser.ts +115 -0
- package/dist/server/node_modules/@babel/core/src/config/files/index.ts +30 -0
- package/dist/server/node_modules/@babel/core/src/config/resolve-targets-browser.ts +42 -0
- package/dist/server/node_modules/@babel/core/src/config/resolve-targets.ts +54 -0
- package/dist/server/node_modules/@babel/core/src/transform-file-browser.ts +33 -0
- package/dist/server/node_modules/@babel/core/src/transform-file.ts +56 -0
- package/dist/server/node_modules/@jridgewell/sourcemap-codec/README.md +264 -0
- package/dist/server/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs +423 -0
- package/dist/server/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs.map +6 -0
- package/dist/server/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js +464 -0
- package/dist/server/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js.map +6 -0
- package/dist/server/node_modules/@jridgewell/sourcemap-codec/package.json +63 -0
- package/dist/server/node_modules/@jridgewell/sourcemap-codec/src/scopes.ts +345 -0
- package/dist/server/node_modules/@jridgewell/sourcemap-codec/src/sourcemap-codec.ts +111 -0
- package/dist/server/node_modules/@jridgewell/sourcemap-codec/src/strings.ts +65 -0
- package/dist/server/node_modules/@jridgewell/sourcemap-codec/src/vlq.ts +55 -0
- package/dist/server/node_modules/@jridgewell/sourcemap-codec/types/scopes.d.cts +50 -0
- package/dist/server/node_modules/@jridgewell/sourcemap-codec/types/scopes.d.cts.map +1 -0
- package/dist/server/node_modules/@jridgewell/sourcemap-codec/types/scopes.d.mts +50 -0
- package/dist/server/node_modules/@jridgewell/sourcemap-codec/types/scopes.d.mts.map +1 -0
- package/dist/server/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.cts +9 -0
- package/dist/server/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.cts.map +1 -0
- package/dist/server/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.mts +9 -0
- package/dist/server/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.mts.map +1 -0
- package/dist/server/node_modules/@jridgewell/sourcemap-codec/types/strings.d.cts +16 -0
- package/dist/server/node_modules/@jridgewell/sourcemap-codec/types/strings.d.cts.map +1 -0
- package/dist/server/node_modules/@jridgewell/sourcemap-codec/types/strings.d.mts +16 -0
- package/dist/server/node_modules/@jridgewell/sourcemap-codec/types/strings.d.mts.map +1 -0
- package/dist/server/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.cts +7 -0
- package/dist/server/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.cts.map +1 -0
- package/dist/server/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.mts +7 -0
- package/dist/server/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.mts.map +1 -0
- package/dist/server/node_modules/@jridgewell/trace-mapping/LICENSE +19 -0
- package/dist/server/node_modules/@jridgewell/trace-mapping/README.md +348 -0
- package/dist/server/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs +493 -0
- package/dist/server/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs.map +6 -0
- package/dist/server/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js +559 -0
- package/dist/server/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js.map +6 -0
- package/dist/server/node_modules/@jridgewell/trace-mapping/package.json +67 -0
- package/dist/server/node_modules/@jridgewell/trace-mapping/src/binary-search.ts +115 -0
- package/dist/server/node_modules/@jridgewell/trace-mapping/src/by-source.ts +41 -0
- package/dist/server/node_modules/@jridgewell/trace-mapping/src/flatten-map.ts +192 -0
- package/dist/server/node_modules/@jridgewell/trace-mapping/src/resolve.ts +16 -0
- package/dist/server/node_modules/@jridgewell/trace-mapping/src/sort.ts +45 -0
- package/dist/server/node_modules/@jridgewell/trace-mapping/src/sourcemap-segment.ts +23 -0
- package/dist/server/node_modules/@jridgewell/trace-mapping/src/strip-filename.ts +8 -0
- package/dist/server/node_modules/@jridgewell/trace-mapping/src/trace-mapping.ts +502 -0
- package/dist/server/node_modules/@jridgewell/trace-mapping/src/types.ts +114 -0
- package/dist/server/node_modules/@jridgewell/trace-mapping/types/binary-search.d.cts +33 -0
- package/dist/server/node_modules/@jridgewell/trace-mapping/types/binary-search.d.cts.map +1 -0
- package/dist/server/node_modules/@jridgewell/trace-mapping/types/binary-search.d.mts +33 -0
- package/dist/server/node_modules/@jridgewell/trace-mapping/types/binary-search.d.mts.map +1 -0
- package/dist/server/node_modules/@jridgewell/trace-mapping/types/by-source.d.cts +4 -0
- package/dist/server/node_modules/@jridgewell/trace-mapping/types/by-source.d.cts.map +1 -0
- package/dist/server/node_modules/@jridgewell/trace-mapping/types/by-source.d.mts +4 -0
- package/dist/server/node_modules/@jridgewell/trace-mapping/types/by-source.d.mts.map +1 -0
- package/dist/server/node_modules/@jridgewell/trace-mapping/types/flatten-map.d.cts +9 -0
- package/dist/server/node_modules/@jridgewell/trace-mapping/types/flatten-map.d.cts.map +1 -0
- package/dist/server/node_modules/@jridgewell/trace-mapping/types/flatten-map.d.mts +9 -0
- package/dist/server/node_modules/@jridgewell/trace-mapping/types/flatten-map.d.mts.map +1 -0
- package/dist/server/node_modules/@jridgewell/trace-mapping/types/resolve.d.cts +4 -0
- package/dist/server/node_modules/@jridgewell/trace-mapping/types/resolve.d.cts.map +1 -0
- package/dist/server/node_modules/@jridgewell/trace-mapping/types/resolve.d.mts +4 -0
- package/dist/server/node_modules/@jridgewell/trace-mapping/types/resolve.d.mts.map +1 -0
- package/dist/server/node_modules/@jridgewell/trace-mapping/types/sort.d.cts +4 -0
- package/dist/server/node_modules/@jridgewell/trace-mapping/types/sort.d.cts.map +1 -0
- package/dist/server/node_modules/@jridgewell/trace-mapping/types/sort.d.mts +4 -0
- package/dist/server/node_modules/@jridgewell/trace-mapping/types/sort.d.mts.map +1 -0
- package/dist/server/node_modules/@jridgewell/trace-mapping/types/sourcemap-segment.d.cts +17 -0
- package/dist/server/node_modules/@jridgewell/trace-mapping/types/sourcemap-segment.d.cts.map +1 -0
- package/dist/server/node_modules/@jridgewell/trace-mapping/types/sourcemap-segment.d.mts +17 -0
- package/dist/server/node_modules/@jridgewell/trace-mapping/types/sourcemap-segment.d.mts.map +1 -0
- package/dist/server/node_modules/@jridgewell/trace-mapping/types/strip-filename.d.cts +5 -0
- package/dist/server/node_modules/@jridgewell/trace-mapping/types/strip-filename.d.cts.map +1 -0
- package/dist/server/node_modules/@jridgewell/trace-mapping/types/strip-filename.d.mts +5 -0
- package/dist/server/node_modules/@jridgewell/trace-mapping/types/strip-filename.d.mts.map +1 -0
- package/dist/server/node_modules/@jridgewell/trace-mapping/types/trace-mapping.d.cts +80 -0
- package/dist/server/node_modules/@jridgewell/trace-mapping/types/trace-mapping.d.cts.map +1 -0
- package/dist/server/node_modules/@jridgewell/trace-mapping/types/trace-mapping.d.mts +80 -0
- package/dist/server/node_modules/@jridgewell/trace-mapping/types/trace-mapping.d.mts.map +1 -0
- package/dist/server/node_modules/@jridgewell/trace-mapping/types/types.d.cts +107 -0
- package/dist/server/node_modules/@jridgewell/trace-mapping/types/types.d.cts.map +1 -0
- package/dist/server/node_modules/@jridgewell/trace-mapping/types/types.d.mts +107 -0
- package/dist/server/node_modules/@jridgewell/trace-mapping/types/types.d.mts.map +1 -0
- package/dist/server/node_modules/picomatch/LICENSE +21 -0
- package/dist/server/node_modules/picomatch/README.md +738 -0
- package/dist/server/node_modules/picomatch/index.js +17 -0
- package/dist/server/node_modules/picomatch/lib/constants.js +180 -0
- package/dist/server/node_modules/picomatch/lib/parse.js +1085 -0
- package/dist/server/node_modules/picomatch/lib/picomatch.js +341 -0
- package/dist/server/node_modules/picomatch/lib/scan.js +391 -0
- package/dist/server/node_modules/picomatch/lib/utils.js +72 -0
- package/dist/server/node_modules/picomatch/package.json +83 -0
- package/dist/server/node_modules/picomatch/posix.js +3 -0
- package/dist/server/server.js +3 -3
- package/package.json +1 -1
- package/dist/client/assets/AlertCircle-COCPzruB.js +0 -1
- package/dist/client/assets/AlignLeft-BXEQaqkm.js +0 -1
- package/dist/client/assets/ArrowDown-CWZOxMGB.js +0 -1
- package/dist/client/assets/ArrowLeft-D9yt1ohq.js +0 -1
- package/dist/client/assets/ArrowUp-CxJFPww9.js +0 -1
- package/dist/client/assets/Check-BxmpGgJO.js +0 -1
- package/dist/client/assets/CheckCircle-CTJxivs_.js +0 -1
- package/dist/client/assets/CheckDone01-Dcp2FYQ-.js +0 -1
- package/dist/client/assets/CheckVerified02-D11ceW2n.js +0 -1
- package/dist/client/assets/ChevronDown-DMBKkJDw.js +0 -1
- package/dist/client/assets/ChevronLeft-CSMOvegR.js +0 -1
- package/dist/client/assets/ChevronRight-H9Yc9f7O.js +0 -1
- package/dist/client/assets/Clock-CKhQI6RG.js +0 -1
- package/dist/client/assets/Code01-YTmJoKH0.js +0 -1
- package/dist/client/assets/Container-yYsRLnMs.js +0 -1
- package/dist/client/assets/Copy01-CBbaVNcV.js +0 -1
- package/dist/client/assets/Dataflow03-D7alrCgq.js +0 -1
- package/dist/client/assets/DotsHorizontal-Bs1LoWL0.js +0 -1
- package/dist/client/assets/DotsVertical-JTzIXbI1.js +0 -1
- package/dist/client/assets/Download01-BfbmibGe.js +0 -1
- package/dist/client/assets/Edit01-86XeEa-K.js +0 -1
- package/dist/client/assets/Edit05-D2Mr1uN2.js +0 -1
- package/dist/client/assets/Eye-CH7m62Q9.js +0 -1
- package/dist/client/assets/File02-D5MLfFax.js +0 -1
- package/dist/client/assets/File06-BsPa6yJC.js +0 -1
- package/dist/client/assets/FilterLines-CCRMwRH-.js +0 -1
- package/dist/client/assets/Globe01-DkkMg0kW.js +0 -1
- package/dist/client/assets/Globe02-C9h9OvDn.js +0 -1
- package/dist/client/assets/Grid01-BJl2SMz4.js +0 -1
- package/dist/client/assets/Hash02-fUOm6jU-.js +0 -1
- package/dist/client/assets/Home02-Css4Iepc.js +0 -1
- package/dist/client/assets/Image01-DcPksOlo.js +0 -1
- package/dist/client/assets/Inbox01-B-u4MXdb.js +0 -1
- package/dist/client/assets/InfoCircle-Ix7ZTvJi.js +0 -1
- package/dist/client/assets/Key01-Df3Idqiz.js +0 -1
- package/dist/client/assets/LayersTwo01-B5E2fqo_.js +0 -1
- package/dist/client/assets/LayoutLeft-Bc53fB6X.js +0 -1
- package/dist/client/assets/Link01-DL7ePw82.js +0 -1
- package/dist/client/assets/LinkExternal01-b8VjDApC.js +0 -1
- package/dist/client/assets/List-DurPU5xB.js +0 -1
- package/dist/client/assets/Loading01-BSgt365L.js +0 -1
- package/dist/client/assets/Lock01-Kbe8uq9Q.js +0 -1
- package/dist/client/assets/Play-C_XCWv-e.js +0 -1
- package/dist/client/assets/Plus-DyccoR76.js +0 -1
- package/dist/client/assets/RefreshCcw01-C5LHek4w.js +0 -1
- package/dist/client/assets/Save01-DB_m4T10.js +0 -1
- package/dist/client/assets/SearchMd-C9PpmA7c.js +0 -1
- package/dist/client/assets/Settings01-C8nyLh4e.js +0 -1
- package/dist/client/assets/Shield01-D3qnwTrp.js +0 -1
- package/dist/client/assets/Terminal-BQ8QYOY1.js +0 -1
- package/dist/client/assets/Trash01-CJ60cufT.js +0 -1
- package/dist/client/assets/Upload01-CPuUtuFU.js +0 -1
- package/dist/client/assets/Users03-TzAql3be.js +0 -1
- package/dist/client/assets/X-CpYNC6lo.js +0 -1
- package/dist/client/assets/XCircle-BjAJVHDF.js +0 -1
- package/dist/client/assets/XClose-Rpsc-3OA.js +0 -1
- package/dist/client/assets/Zap-BZ3UCYjM.js +0 -1
- package/dist/client/assets/agent-connections-preview-DIiP1L_8.js +0 -1
- package/dist/client/assets/agent-detail-J2F2tRbj.js +0 -2
- package/dist/client/assets/agents-Cd6HGWat.js +0 -1
- package/dist/client/assets/alert-dialog-CjulzWr7.js +0 -7
- package/dist/client/assets/auth-catchall-BnImxdbW.js +0 -1
- package/dist/client/assets/avatar-COttSggk.js +0 -1
- package/dist/client/assets/badge-DeKjEqoU.js +0 -1
- package/dist/client/assets/binder-JBklfnkZ.js +0 -1
- package/dist/client/assets/breadcrumb-DZ4K3wPr.js +0 -1
- package/dist/client/assets/card-DkMC4yhp.js +0 -1
- package/dist/client/assets/chart-oCbiVl3J.js +0 -15
- package/dist/client/assets/checkbox-DOpKFROJ.js +0 -1
- package/dist/client/assets/circle-alert-vyafkPY9.js +0 -1
- package/dist/client/assets/collapsible-BqhrFzzR.js +0 -23
- package/dist/client/assets/collection-detail-CnE9tdFz.js +0 -26
- package/dist/client/assets/collection-display-button-B5-Qbe51.js +0 -1
- package/dist/client/assets/collection-search-BqJoX17Q.js +0 -1
- package/dist/client/assets/collection-tab-CalpHH6o.js +0 -1
- package/dist/client/assets/collection-table-wrapper-BTjazYQf.js +0 -1
- package/dist/client/assets/collection-tabs-EEOW6GRL.js +0 -1
- package/dist/client/assets/command-BEFS8ANg.js +0 -1
- package/dist/client/assets/connect-DfPT2YCY.js +0 -1
- package/dist/client/assets/connection-card-BdnPGsex.js +0 -1
- package/dist/client/assets/connection-detail-CLUQ4ftB.js +0 -1
- package/dist/client/assets/connection-status-C-QmdjUW.js +0 -1
- package/dist/client/assets/connections-kkqT0K5k.js +0 -1
- package/dist/client/assets/constants-BDiSPTuo.js +0 -1
- package/dist/client/assets/constants-Dvvbc3ac.js +0 -1
- package/dist/client/assets/create-organization-dialog-jAyzYeAn.js +0 -1
- package/dist/client/assets/create-project-dialog-D33xriWJ.js +0 -1
- package/dist/client/assets/danger-Cha4pSGh.js +0 -1
- package/dist/client/assets/danger-zone-DADmz_4H.js +0 -1
- package/dist/client/assets/decopilot-events-D0o8qF4i.js +0 -1
- package/dist/client/assets/dependencies-WKnlxG4W.js +0 -1
- package/dist/client/assets/dialog-DZh8Ph30.js +0 -1
- package/dist/client/assets/dropdown-menu-Z-xkakKz.js +0 -1
- package/dist/client/assets/dynamic-plugin-layout-1VL-Nq0v.js +0 -1
- package/dist/client/assets/editable-task-title-BtM8Y_i0.js +0 -16
- package/dist/client/assets/empty-state-Bs6ZvT13.js +0 -1
- package/dist/client/assets/env-vars-editor-C_fpQu3r.js +0 -1
- package/dist/client/assets/extract-connection-data-BvxOwwOc.js +0 -1
- package/dist/client/assets/file-browser-COkzPlsr.js +0 -2
- package/dist/client/assets/form-u0JM0zFo.js +0 -1
- package/dist/client/assets/general-fg_RS0yr.js +0 -1
- package/dist/client/assets/grid-view-D9Ic3afI.js +0 -1
- package/dist/client/assets/home-C0wm8Ra0.js +0 -1
- package/dist/client/assets/icon-picker-BYggeY9I.js +0 -1
- package/dist/client/assets/index-B6H1H8GZ.js +0 -218
- package/dist/client/assets/index-BTGfXm3p.js +0 -184
- package/dist/client/assets/index-BjjNfFZO.js +0 -1
- package/dist/client/assets/index-C-FConRx.js +0 -1
- package/dist/client/assets/index-C21sEs5P.js +0 -25
- package/dist/client/assets/index-D-QI-if6.js +0 -1
- package/dist/client/assets/index-DGzQM1h1.js +0 -1
- package/dist/client/assets/index-D_0ZYhFs.js +0 -1
- package/dist/client/assets/index-DtzYx0E6.js +0 -1
- package/dist/client/assets/infiniteQueryObserver-B4_Pq1jp.js +0 -1
- package/dist/client/assets/input-DL82FsGU.js +0 -1
- package/dist/client/assets/integration-icon-lbcrIfEl.js +0 -1
- package/dist/client/assets/label-CiV91E3T.js +0 -1
- package/dist/client/assets/layout-Be7WHnRk.js +0 -1
- package/dist/client/assets/layout-DyQEA0SZ.js +0 -1
- package/dist/client/assets/localstorage-keys-B-P4Lkkc.js +0 -1
- package/dist/client/assets/login-B3dPe2uq.js +0 -1
- package/dist/client/assets/markdown-Bf8aDiE3.js +0 -29
- package/dist/client/assets/mcp-app-renderer-BnVKlKcJ.js +0 -11
- package/dist/client/assets/mcp-server-card-DZcgEuH9.js +0 -1
- package/dist/client/assets/mcp-server-detail-Bt5RaPnX.js +0 -2
- package/dist/client/assets/members-BJawTGLR.js +0 -3
- package/dist/client/assets/monaco-editor-BQM0x1VO.js +0 -19
- package/dist/client/assets/monitoring-blJKyDvA.js +0 -31
- package/dist/client/assets/monitoring-dashboard-edit-BDHHepNV.js +0 -1
- package/dist/client/assets/monitoring-dashboard-view-ipSeoz8O.js +0 -4
- package/dist/client/assets/oauth-callback-BrSHCBQX.js +0 -1
- package/dist/client/assets/page-CA_pelN-.js +0 -1
- package/dist/client/assets/page-Kq0I6KKP.js +0 -1
- package/dist/client/assets/plugin-empty-state-C4w1L8kt.js +0 -1
- package/dist/client/assets/plugin-empty-state-RaKROIGH.js +0 -1
- package/dist/client/assets/plugin-header-BhtUXHbX.js +0 -1
- package/dist/client/assets/plugin-header-sixzd3Ma.js +0 -1
- package/dist/client/assets/plugins-CD_83bbp.js +0 -1
- package/dist/client/assets/popover-BsBq580h.js +0 -1
- package/dist/client/assets/project-app-view-BJtfzuHN.js +0 -1
- package/dist/client/assets/project-layout-RD2qGV-x.js +0 -1
- package/dist/client/assets/project-plugins-COU6htGE.js +0 -1
- package/dist/client/assets/projects-list-D9xGyghY.js +0 -1
- package/dist/client/assets/readme-viewer-BbXjdtG9.js +0 -1
- package/dist/client/assets/registry-layout-DeFY3kKT.js +0 -5
- package/dist/client/assets/registry-utils-Bl8qAIIE.js +0 -1
- package/dist/client/assets/reports-layout-DEPJi7t7.js +0 -3
- package/dist/client/assets/reset-password-CCjN8Der.js +0 -1
- package/dist/client/assets/resizable-Dyz8Ueqx.js +0 -1
- package/dist/client/assets/save-actions-BY0Prlb4.js +0 -1
- package/dist/client/assets/scroll-area-7QhPLRXH.js +0 -1
- package/dist/client/assets/select-BNpARAGJ.js +0 -1
- package/dist/client/assets/shell-layout-7XeOm_ax.js +0 -3
- package/dist/client/assets/sidebar-settings-B9cT50kt.js +0 -1
- package/dist/client/assets/skeleton-BS-CeywH.js +0 -1
- package/dist/client/assets/spinner-DBhlROgw.js +0 -1
- package/dist/client/assets/store-invite-e1T7z82O.js +0 -1
- package/dist/client/assets/switch-wuXa1Kvf.js +0 -1
- package/dist/client/assets/table-ls4zjAkQ.js +0 -1
- package/dist/client/assets/tabs-BpharFFf.js +0 -1
- package/dist/client/assets/tasks-CJXh_ge0.js +0 -1
- package/dist/client/assets/tasks-panel-Ct2D_gmM.js +0 -1
- package/dist/client/assets/textarea-DM9DH5x9.js +0 -1
- package/dist/client/assets/time-range-picker-CdtxSNYv.js +0 -5
- package/dist/client/assets/toggle-group-BRFTG6MH.js +0 -1
- package/dist/client/assets/tools-list-UPWCb7T0.js +0 -1
- package/dist/client/assets/tooltip-j8kTHx55.js +0 -1
- package/dist/client/assets/topbar-portal-BUJnfe9A.js +0 -1
- package/dist/client/assets/types-jFDozJe3.js +0 -155
- package/dist/client/assets/use-binding-BfnusZ1F.js +0 -1
- package/dist/client/assets/use-collections-D-dYas4g.js +0 -1
- package/dist/client/assets/use-connection-C6mRcJDK.js +0 -1
- package/dist/client/assets/use-copy-CVnO_3mM.js +0 -1
- package/dist/client/assets/use-create-virtual-mcp-Dn5aJHho.js +0 -1
- package/dist/client/assets/use-install-from-registry-Ci2mnCpP.js +0 -1
- package/dist/client/assets/use-list-state-Cs0Vw1fn.js +0 -1
- package/dist/client/assets/use-llm-C2ec2VVQ.js +0 -1
- package/dist/client/assets/use-mcp-resources-C0pasPvz.js +0 -1
- package/dist/client/assets/use-mcp-tools-CMrxqGk3.js +0 -1
- package/dist/client/assets/use-members-DyNTppwq.js +0 -1
- package/dist/client/assets/use-mobile-TplPgiBS.js +0 -1
- package/dist/client/assets/use-project-BJg-zw4z.js +0 -1
- package/dist/client/assets/use-settings-modal-nlOCOvru.js +0 -1
- package/dist/client/assets/use-view-mode-Csk7hnWi.js +0 -1
- package/dist/client/assets/use-virtual-mcp-Dbh6kzyX.js +0 -1
- package/dist/client/assets/useInfiniteQuery-CQVTTHIu.js +0 -1
- package/dist/client/assets/useMutation-CJ6jjC2l.js +0 -1
- package/dist/client/assets/useQuery-BQ0SjuWE.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BSv4Z18C.js +0 -1
- package/dist/client/assets/user-DoJm1uYf.js +0 -1
- package/dist/client/assets/workflow-BypiKv8P.js +0 -1
- package/dist/server/node_modules/@babel/helper-module-imports/README.md +0 -19
- package/dist/server/node_modules/@babel/helper-module-imports/lib/import-builder.js +0 -122
- package/dist/server/node_modules/@babel/helper-module-imports/lib/import-builder.js.map +0 -1
- package/dist/server/node_modules/@babel/helper-module-imports/lib/import-injector.js +0 -304
- package/dist/server/node_modules/@babel/helper-module-imports/lib/import-injector.js.map +0 -1
- package/dist/server/node_modules/@babel/helper-module-imports/lib/index.js +0 -37
- package/dist/server/node_modules/@babel/helper-module-imports/lib/index.js.map +0 -1
- package/dist/server/node_modules/@babel/helper-module-imports/lib/is-module.js +0 -11
- package/dist/server/node_modules/@babel/helper-module-imports/lib/is-module.js.map +0 -1
- package/dist/server/node_modules/@babel/helper-module-imports/package.json +0 -28
- package/dist/server/node_modules/@babel/helper-string-parser/LICENSE +0 -22
- package/dist/server/node_modules/@babel/helper-string-parser/README.md +0 -19
- package/dist/server/node_modules/@babel/helper-string-parser/lib/index.js +0 -295
- package/dist/server/node_modules/@babel/helper-string-parser/lib/index.js.map +0 -1
- package/dist/server/node_modules/@babel/helper-string-parser/package.json +0 -31
- package/dist/server/node_modules/@babel/helper-validator-identifier/LICENSE +0 -22
- package/dist/server/node_modules/@babel/helper-validator-identifier/README.md +0 -19
- package/dist/server/node_modules/@babel/helper-validator-identifier/lib/identifier.js +0 -70
- package/dist/server/node_modules/@babel/helper-validator-identifier/lib/identifier.js.map +0 -1
- package/dist/server/node_modules/@babel/helper-validator-identifier/lib/index.js +0 -57
- package/dist/server/node_modules/@babel/helper-validator-identifier/lib/index.js.map +0 -1
- package/dist/server/node_modules/@babel/helper-validator-identifier/lib/keyword.js +0 -35
- package/dist/server/node_modules/@babel/helper-validator-identifier/lib/keyword.js.map +0 -1
- package/dist/server/node_modules/@babel/helper-validator-identifier/package.json +0 -31
- package/dist/server/node_modules/@babel/helper-validator-option/LICENSE +0 -22
- package/dist/server/node_modules/@babel/helper-validator-option/README.md +0 -19
- package/dist/server/node_modules/@babel/helper-validator-option/lib/find-suggestion.js +0 -39
- package/dist/server/node_modules/@babel/helper-validator-option/lib/find-suggestion.js.map +0 -1
- package/dist/server/node_modules/@babel/helper-validator-option/lib/index.js +0 -21
- package/dist/server/node_modules/@babel/helper-validator-option/lib/index.js.map +0 -1
- package/dist/server/node_modules/@babel/helper-validator-option/lib/validator.js +0 -48
- package/dist/server/node_modules/@babel/helper-validator-option/lib/validator.js.map +0 -1
- package/dist/server/node_modules/@babel/helper-validator-option/package.json +0 -27
- package/dist/server/node_modules/@jridgewell/remapping/README.md +0 -218
- package/dist/server/node_modules/@jridgewell/remapping/dist/remapping.mjs +0 -144
- package/dist/server/node_modules/@jridgewell/remapping/dist/remapping.mjs.map +0 -6
- package/dist/server/node_modules/@jridgewell/remapping/dist/remapping.umd.js +0 -212
- package/dist/server/node_modules/@jridgewell/remapping/dist/remapping.umd.js.map +0 -6
- package/dist/server/node_modules/@jridgewell/remapping/package.json +0 -71
- package/dist/server/node_modules/@jridgewell/remapping/src/build-source-map-tree.ts +0 -89
- package/dist/server/node_modules/@jridgewell/remapping/src/remapping.ts +0 -42
- package/dist/server/node_modules/@jridgewell/remapping/src/source-map-tree.ts +0 -172
- package/dist/server/node_modules/@jridgewell/remapping/src/source-map.ts +0 -38
- package/dist/server/node_modules/@jridgewell/remapping/src/types.ts +0 -27
- package/dist/server/node_modules/@jridgewell/remapping/types/build-source-map-tree.d.cts +0 -15
- package/dist/server/node_modules/@jridgewell/remapping/types/build-source-map-tree.d.cts.map +0 -1
- package/dist/server/node_modules/@jridgewell/remapping/types/build-source-map-tree.d.mts +0 -15
- package/dist/server/node_modules/@jridgewell/remapping/types/build-source-map-tree.d.mts.map +0 -1
- package/dist/server/node_modules/@jridgewell/remapping/types/remapping.d.cts +0 -21
- package/dist/server/node_modules/@jridgewell/remapping/types/remapping.d.cts.map +0 -1
- package/dist/server/node_modules/@jridgewell/remapping/types/remapping.d.mts +0 -21
- package/dist/server/node_modules/@jridgewell/remapping/types/remapping.d.mts.map +0 -1
- package/dist/server/node_modules/@jridgewell/remapping/types/source-map-tree.d.cts +0 -46
- package/dist/server/node_modules/@jridgewell/remapping/types/source-map-tree.d.cts.map +0 -1
- package/dist/server/node_modules/@jridgewell/remapping/types/source-map-tree.d.mts +0 -46
- package/dist/server/node_modules/@jridgewell/remapping/types/source-map-tree.d.mts.map +0 -1
- package/dist/server/node_modules/@jridgewell/remapping/types/source-map.d.cts +0 -19
- package/dist/server/node_modules/@jridgewell/remapping/types/source-map.d.cts.map +0 -1
- package/dist/server/node_modules/@jridgewell/remapping/types/source-map.d.mts +0 -19
- package/dist/server/node_modules/@jridgewell/remapping/types/source-map.d.mts.map +0 -1
- package/dist/server/node_modules/@jridgewell/remapping/types/types.d.cts +0 -16
- package/dist/server/node_modules/@jridgewell/remapping/types/types.d.cts.map +0 -1
- package/dist/server/node_modules/@jridgewell/remapping/types/types.d.mts +0 -16
- package/dist/server/node_modules/@jridgewell/remapping/types/types.d.mts.map +0 -1
- package/dist/server/node_modules/browserslist/LICENSE +0 -20
- package/dist/server/node_modules/browserslist/README.md +0 -65
- package/dist/server/node_modules/browserslist/browser.js +0 -54
- package/dist/server/node_modules/browserslist/cli.js +0 -156
- package/dist/server/node_modules/browserslist/error.d.ts +0 -7
- package/dist/server/node_modules/browserslist/error.js +0 -12
- package/dist/server/node_modules/browserslist/index.d.ts +0 -224
- package/dist/server/node_modules/browserslist/index.js +0 -1335
- package/dist/server/node_modules/browserslist/node.js +0 -502
- package/dist/server/node_modules/browserslist/package.json +0 -45
- package/dist/server/node_modules/browserslist/parse.js +0 -78
- package/dist/server/node_modules/caniuse-lite/LICENSE +0 -395
- package/dist/server/node_modules/caniuse-lite/README.md +0 -6
- package/dist/server/node_modules/caniuse-lite/data/agents.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/browserVersions.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/browsers.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/aac.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/abortcontroller.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/ac3-ec3.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/accelerometer.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/addeventlistener.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/alternate-stylesheet.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/ambient-light.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/apng.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/array-find-index.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/array-find.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/array-flat.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/array-includes.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/arrow-functions.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/asmjs.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/async-clipboard.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/async-functions.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/atob-btoa.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/audio-api.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/audio.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/audiotracks.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/autofocus.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/auxclick.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/av1.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/avif.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/background-attachment.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/background-clip-text.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/background-img-opts.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/background-position-x-y.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/background-repeat-round-space.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/background-sync.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/battery-status.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/beacon.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/beforeafterprint.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/bigint.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/blobbuilder.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/bloburls.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/border-image.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/border-radius.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/broadcastchannel.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/brotli.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/calc.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/canvas-blending.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/canvas-text.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/canvas.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/ch-unit.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/chacha20-poly1305.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/channel-messaging.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/childnode-remove.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/classlist.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/client-hints-dpr-width-viewport.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/clipboard.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/colr-v1.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/colr.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/comparedocumentposition.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/console-basic.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/console-time.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/const.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/constraint-validation.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/contenteditable.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/contentsecuritypolicy.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/contentsecuritypolicy2.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/cookie-store-api.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/cors.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/createimagebitmap.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/credential-management.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/cross-document-view-transitions.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/cryptography.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-all.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-anchor-positioning.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-animation.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-any-link.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-appearance.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-at-counter-style.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-autofill.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-backdrop-filter.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-background-offsets.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-backgroundblendmode.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-boxdecorationbreak.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-boxshadow.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-canvas.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-caret-color.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-cascade-layers.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-cascade-scope.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-case-insensitive.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-clip-path.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-color-adjust.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-color-function.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-conic-gradients.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-container-queries-style.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-container-queries.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-container-query-units.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-containment.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-content-visibility.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-counters.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-crisp-edges.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-cross-fade.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-default-pseudo.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-descendant-gtgt.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-deviceadaptation.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-dir-pseudo.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-display-contents.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-element-function.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-env-function.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-exclusions.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-featurequeries.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-file-selector-button.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-filter-function.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-filters.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-first-letter.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-first-line.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-fixed.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-focus-visible.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-focus-within.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-font-palette.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-font-rendering-controls.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-font-stretch.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-gencontent.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-gradients.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-grid-animation.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-grid-lanes.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-grid.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-hanging-punctuation.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-has.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-hyphens.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-if.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-image-orientation.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-image-set.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-in-out-of-range.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-indeterminate-pseudo.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-initial-letter.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-initial-value.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-lch-lab.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-letter-spacing.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-line-clamp.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-logical-props.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-marker-pseudo.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-masks.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-matches-pseudo.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-math-functions.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-media-interaction.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-media-range-syntax.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-media-resolution.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-media-scripting.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-mediaqueries.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-mixblendmode.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-module-scripts.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-motion-paths.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-namespaces.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-nesting.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-not-sel-list.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-nth-child-of.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-opacity.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-optional-pseudo.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-overflow-anchor.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-overflow-overlay.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-overflow.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-overscroll-behavior.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-page-break.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-paged-media.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-paint-api.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-placeholder-shown.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-placeholder.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-print-color-adjust.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-read-only-write.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-rebeccapurple.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-reflections.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-regions.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-relative-colors.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-repeating-gradients.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-resize.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-revert-value.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-rrggbbaa.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-scroll-behavior.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-scrollbar.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-sel2.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-sel3.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-selection.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-shapes.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-snappoints.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-sticky.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-subgrid.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-supports-api.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-table.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-text-align-last.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-text-box-trim.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-text-indent.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-text-justify.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-text-orientation.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-text-spacing.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-text-wrap-balance.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-textshadow.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-touch-action.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-transitions.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-unicode-bidi.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-unset-value.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-variables.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-when-else.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-widows-orphans.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-width-stretch.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-writing-mode.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css-zoom.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css3-attr.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css3-boxsizing.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css3-colors.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css3-cursors-grab.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css3-cursors-newer.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css3-cursors.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/css3-tabsize.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/currentcolor.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/custom-elements.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/custom-elementsv1.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/customevent.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/customizable-select.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/datalist.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/dataset.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/datauri.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/date-tolocaledatestring.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/declarative-shadow-dom.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/decorators.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/details.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/deviceorientation.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/devicepixelratio.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/dialog.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/dispatchevent.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/dnssec.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/do-not-track.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/document-currentscript.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/document-evaluate-xpath.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/document-execcommand.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/document-policy.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/document-scrollingelement.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/documenthead.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/dom-manip-convenience.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/dom-range.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/domcontentloaded.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/dommatrix.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/download.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/dragndrop.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/element-closest.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/element-from-point.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/element-scroll-methods.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/eme.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/eot.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/es5.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/es6-class.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/es6-generators.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/es6-module-dynamic-import.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/es6-module.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/es6-number.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/es6-string-includes.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/es6.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/eventsource.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/extended-system-fonts.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/feature-policy.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/fetch.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/fieldset-disabled.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/fileapi.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/filereader.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/filereadersync.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/filesystem.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/flac.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/flexbox-gap.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/flexbox.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/flow-root.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/focusin-focusout-events.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/font-family-system-ui.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/font-feature.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/font-kerning.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/font-loading.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/font-size-adjust.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/font-smooth.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/font-unicode-range.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/font-variant-alternates.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/font-variant-numeric.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/fontface.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/form-attribute.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/form-submit-attributes.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/form-validation.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/forms.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/fullscreen.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/gamepad.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/geolocation.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/getboundingclientrect.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/getcomputedstyle.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/getelementsbyclassname.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/getrandomvalues.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/gyroscope.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/hardwareconcurrency.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/hashchange.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/heif.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/hevc.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/hidden.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/high-resolution-time.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/history.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/html-media-capture.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/html5semantic.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/http-live-streaming.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/http2.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/http3.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/iframe-sandbox.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/iframe-seamless.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/iframe-srcdoc.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/imagecapture.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/ime.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/img-naturalwidth-naturalheight.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/import-maps.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/imports.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/indeterminate-checkbox.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/indexeddb.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/indexeddb2.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/inline-block.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/innertext.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/input-autocomplete-onoff.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/input-color.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/input-datetime.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/input-email-tel-url.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/input-event.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/input-file-accept.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/input-file-directory.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/input-file-multiple.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/input-inputmode.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/input-minlength.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/input-number.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/input-pattern.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/input-placeholder.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/input-range.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/input-search.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/input-selection.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/insert-adjacent.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/insertadjacenthtml.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/internationalization.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/intersectionobserver-v2.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/intersectionobserver.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/intl-pluralrules.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/intrinsic-width.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/jpeg2000.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/jpegxl.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/jpegxr.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/js-regexp-lookbehind.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/json.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/justify-content-space-evenly.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/kerning-pairs-ligatures.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/keyboardevent-charcode.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/keyboardevent-code.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/keyboardevent-getmodifierstate.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/keyboardevent-key.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/keyboardevent-location.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/keyboardevent-which.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/lazyload.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/let.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/link-icon-png.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/link-icon-svg.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/link-rel-dns-prefetch.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/link-rel-modulepreload.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/link-rel-preconnect.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/link-rel-prefetch.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/link-rel-preload.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/link-rel-prerender.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/loading-lazy-attr.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/localecompare.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/magnetometer.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/matchesselector.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/matchmedia.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/mathml.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/maxlength.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/mdn-css-backdrop-pseudo-element.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-isolate-override.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-isolate.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-plaintext.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/mdn-text-decoration-color.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/mdn-text-decoration-line.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/mdn-text-decoration-shorthand.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/mdn-text-decoration-style.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/media-fragments.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/mediacapture-fromelement.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/mediarecorder.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/mediasource.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/menu.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/meta-theme-color.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/meter.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/midi.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/minmaxwh.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/mp3.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/mpeg-dash.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/mpeg4.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/multibackgrounds.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/multicolumn.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/mutation-events.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/mutationobserver.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/namevalue-storage.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/native-filesystem-api.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/nav-timing.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/netinfo.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/notifications.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/object-entries.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/object-fit.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/object-observe.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/object-values.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/objectrtc.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/offline-apps.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/offscreencanvas.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/ogg-vorbis.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/ogv.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/ol-reversed.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/once-event-listener.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/online-status.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/opus.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/orientation-sensor.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/outline.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/pad-start-end.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/page-transition-events.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/pagevisibility.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/passive-event-listener.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/passkeys.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/passwordrules.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/path2d.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/payment-request.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/pdf-viewer.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/permissions-api.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/permissions-policy.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/picture-in-picture.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/picture.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/ping.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/png-alpha.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/pointer-events.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/pointer.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/pointerlock.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/portals.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/prefers-color-scheme.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/prefers-reduced-motion.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/progress.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/promise-finally.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/promises.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/proximity.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/proxy.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/publickeypinning.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/push-api.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/queryselector.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/readonly-attr.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/referrer-policy.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/registerprotocolhandler.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/rel-noopener.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/rel-noreferrer.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/rellist.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/rem.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/requestanimationframe.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/requestidlecallback.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/resizeobserver.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/resource-timing.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/rest-parameters.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/rtcpeerconnection.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/ruby.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/run-in.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/same-site-cookie-attribute.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/screen-orientation.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/script-async.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/script-defer.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/scrollintoview.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/scrollintoviewifneeded.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/sdch.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/selection-api.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/server-timing.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/serviceworkers.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/setimmediate.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/shadowdom.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/shadowdomv1.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/sharedarraybuffer.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/sharedworkers.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/sni.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/spdy.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/speech-recognition.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/speech-synthesis.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/spellcheck-attribute.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/sql-storage.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/srcset.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/stream.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/streams.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/stricttransportsecurity.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/style-scoped.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/subresource-bundling.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/subresource-integrity.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/svg-css.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/svg-filters.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/svg-fonts.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/svg-fragment.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/svg-html.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/svg-html5.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/svg-img.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/svg-smil.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/svg.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/sxg.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/tabindex-attr.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/template-literals.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/template.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/temporal.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/testfeat.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/text-decoration.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/text-emphasis.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/text-overflow.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/text-size-adjust.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/text-stroke.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/textcontent.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/textencoder.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/tls1-1.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/tls1-2.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/tls1-3.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/touch.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/transforms2d.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/transforms3d.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/trusted-types.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/ttf.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/typedarrays.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/u2f.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/unhandledrejection.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/upgradeinsecurerequests.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/url-scroll-to-text-fragment.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/url.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/urlsearchparams.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/use-strict.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/user-select-none.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/user-timing.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/variable-fonts.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/vector-effect.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/vibration.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/video.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/videotracks.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/view-transitions.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/viewport-unit-variants.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/viewport-units.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/wai-aria.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/wake-lock.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/wasm-bigint.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/wasm-bulk-memory.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/wasm-extended-const.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/wasm-gc.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/wasm-multi-memory.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/wasm-multi-value.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/wasm-mutable-globals.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/wasm-nontrapping-fptoint.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/wasm-reference-types.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/wasm-relaxed-simd.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/wasm-signext.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/wasm-simd.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/wasm-tail-calls.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/wasm-threads.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/wasm.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/wav.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/wbr-element.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/web-animation.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/web-app-manifest.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/web-bluetooth.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/web-serial.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/web-share.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/webauthn.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/webcodecs.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/webgl.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/webgl2.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/webgpu.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/webhid.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/webkit-user-drag.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/webm.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/webnfc.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/webp.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/websockets.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/webtransport.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/webusb.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/webvr.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/webvtt.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/webworkers.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/webxr.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/will-change.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/woff.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/woff2.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/word-break.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/wordwrap.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/x-doc-messaging.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/x-frame-options.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/xhr2.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/xhtml.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/xhtmlsmil.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/xml-serializer.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features/zstd.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/features.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/AD.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/AE.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/AF.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/AG.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/AI.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/AL.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/AM.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/AO.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/AR.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/AS.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/AT.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/AU.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/AW.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/AX.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/AZ.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/BA.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/BB.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/BD.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/BE.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/BF.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/BG.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/BH.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/BI.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/BJ.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/BM.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/BN.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/BO.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/BR.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/BS.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/BT.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/BW.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/BY.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/BZ.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/CA.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/CD.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/CF.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/CG.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/CH.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/CI.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/CK.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/CL.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/CM.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/CN.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/CO.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/CR.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/CU.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/CV.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/CX.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/CY.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/CZ.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/DE.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/DJ.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/DK.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/DM.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/DO.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/DZ.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/EC.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/EE.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/EG.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/ER.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/ES.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/ET.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/FI.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/FJ.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/FK.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/FM.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/FO.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/FR.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/GA.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/GB.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/GD.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/GE.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/GF.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/GG.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/GH.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/GI.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/GL.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/GM.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/GN.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/GP.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/GQ.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/GR.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/GT.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/GU.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/GW.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/GY.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/HK.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/HN.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/HR.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/HT.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/HU.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/ID.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/IE.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/IL.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/IM.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/IN.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/IQ.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/IR.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/IS.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/IT.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/JE.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/JM.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/JO.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/JP.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/KE.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/KG.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/KH.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/KI.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/KM.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/KN.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/KP.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/KR.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/KW.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/KY.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/KZ.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/LA.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/LB.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/LC.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/LI.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/LK.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/LR.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/LS.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/LT.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/LU.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/LV.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/LY.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/MA.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/MC.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/MD.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/ME.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/MG.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/MH.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/MK.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/ML.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/MM.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/MN.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/MO.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/MP.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/MQ.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/MR.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/MS.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/MT.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/MU.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/MV.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/MW.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/MX.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/MY.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/MZ.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/NA.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/NC.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/NE.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/NF.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/NG.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/NI.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/NL.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/NO.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/NP.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/NR.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/NU.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/NZ.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/OM.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/PA.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/PE.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/PF.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/PG.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/PH.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/PK.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/PL.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/PM.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/PN.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/PR.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/PS.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/PT.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/PW.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/PY.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/QA.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/RE.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/RO.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/RS.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/RU.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/RW.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/SA.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/SB.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/SC.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/SD.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/SE.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/SG.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/SH.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/SI.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/SK.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/SL.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/SM.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/SN.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/SO.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/SR.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/ST.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/SV.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/SY.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/SZ.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/TC.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/TD.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/TG.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/TH.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/TJ.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/TL.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/TM.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/TN.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/TO.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/TR.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/TT.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/TV.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/TW.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/TZ.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/UA.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/UG.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/US.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/UY.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/UZ.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/VA.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/VC.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/VE.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/VG.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/VI.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/VN.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/VU.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/WF.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/WS.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/YE.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/YT.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/ZA.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/ZM.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/ZW.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/alt-af.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/alt-an.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/alt-as.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/alt-eu.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/alt-na.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/alt-oc.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/alt-sa.js +0 -1
- package/dist/server/node_modules/caniuse-lite/data/regions/alt-ww.js +0 -1
- package/dist/server/node_modules/caniuse-lite/dist/lib/statuses.js +0 -9
- package/dist/server/node_modules/caniuse-lite/dist/lib/supported.js +0 -9
- package/dist/server/node_modules/caniuse-lite/dist/unpacker/agents.js +0 -47
- package/dist/server/node_modules/caniuse-lite/dist/unpacker/browserVersions.js +0 -1
- package/dist/server/node_modules/caniuse-lite/dist/unpacker/browsers.js +0 -1
- package/dist/server/node_modules/caniuse-lite/dist/unpacker/feature.js +0 -52
- package/dist/server/node_modules/caniuse-lite/dist/unpacker/features.js +0 -6
- package/dist/server/node_modules/caniuse-lite/dist/unpacker/index.js +0 -4
- package/dist/server/node_modules/caniuse-lite/dist/unpacker/region.js +0 -22
- package/dist/server/node_modules/caniuse-lite/package.json +0 -34
- package/dist/server/node_modules/fdir/LICENSE +0 -7
- package/dist/server/node_modules/fdir/README.md +0 -91
- package/dist/server/node_modules/fdir/dist/index.cjs +0 -588
- package/dist/server/node_modules/fdir/dist/index.d.cts +0 -155
- package/dist/server/node_modules/fdir/dist/index.d.mts +0 -155
- package/dist/server/node_modules/fdir/dist/index.mjs +0 -570
- package/dist/server/node_modules/fdir/package.json +0 -103
- package/dist/server/node_modules/jsesc/LICENSE-MIT.txt +0 -20
- package/dist/server/node_modules/jsesc/README.md +0 -422
- package/dist/server/node_modules/jsesc/bin/jsesc +0 -148
- package/dist/server/node_modules/jsesc/jsesc.js +0 -337
- package/dist/server/node_modules/jsesc/man/jsesc.1 +0 -94
- package/dist/server/node_modules/jsesc/package.json +0 -56
- package/dist/server/node_modules/lru-cache/LICENSE +0 -15
- package/dist/server/node_modules/lru-cache/README.md +0 -166
- package/dist/server/node_modules/lru-cache/index.js +0 -334
- package/dist/server/node_modules/lru-cache/package.json +0 -32
- package/dist/server/node_modules/resolve-pkg-maps/LICENSE +0 -21
- package/dist/server/node_modules/resolve-pkg-maps/README.md +0 -216
- package/dist/server/node_modules/resolve-pkg-maps/dist/index.cjs +0 -1
- package/dist/server/node_modules/resolve-pkg-maps/dist/index.d.cts +0 -11
- package/dist/server/node_modules/resolve-pkg-maps/dist/index.d.mts +0 -11
- package/dist/server/node_modules/resolve-pkg-maps/dist/index.mjs +0 -1
- package/dist/server/node_modules/resolve-pkg-maps/package.json +0 -42
- /package/dist/server/node_modules/@babel/{helper-module-imports → core}/LICENSE +0 -0
- /package/dist/server/node_modules/@jridgewell/{remapping → sourcemap-codec}/LICENSE +0 -0
|
@@ -1,218 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/file-browser-COkzPlsr.js","assets/topbar-portal-BUJnfe9A.js","assets/useInfiniteQuery-CQVTTHIu.js","assets/infiniteQueryObserver-B4_Pq1jp.js","assets/checkbox-DOpKFROJ.js","assets/Check-BxmpGgJO.js","assets/AlertCircle-COCPzruB.js","assets/ChevronRight-H9Yc9f7O.js","assets/Download01-BfbmibGe.js","assets/File02-D5MLfFax.js","assets/Grid01-BJl2SMz4.js","assets/Home02-Css4Iepc.js","assets/List-DurPU5xB.js","assets/Loading01-BSgt365L.js","assets/Trash01-CJ60cufT.js","assets/Upload01-CPuUtuFU.js","assets/useMutation-CJ6jjC2l.js","assets/plugin-header-BhtUXHbX.js","assets/ChevronDown-DMBKkJDw.js","assets/registry-layout-DeFY3kKT.js","assets/CheckCircle-CTJxivs_.js","assets/Container-yYsRLnMs.js","assets/Settings01-C8nyLh4e.js","assets/useQuery-BQ0SjuWE.js","assets/constants-BDiSPTuo.js","assets/badge-DeKjEqoU.js","assets/input-DL82FsGU.js","assets/dropdown-menu-Z-xkakKz.js","assets/table-ls4zjAkQ.js","assets/toggle-group-BRFTG6MH.js","assets/use-view-mode-Csk7hnWi.js","assets/use-mobile-TplPgiBS.js","assets/DotsVertical-JTzIXbI1.js","assets/FilterLines-CCRMwRH-.js","assets/Globe01-DkkMg0kW.js","assets/SearchMd-C9PpmA7c.js","assets/dialog-DZh8Ph30.js","assets/X-CpYNC6lo.js","assets/alert-dialog-CjulzWr7.js","assets/card-DkMC4yhp.js","assets/label-CiV91E3T.js","assets/select-BNpARAGJ.js","assets/index-D_0ZYhFs.js","assets/switch-wuXa1Kvf.js","assets/textarea-DM9DH5x9.js","assets/ArrowLeft-D9yt1ohq.js","assets/use-copy-CVnO_3mM.js","assets/RefreshCcw01-C5LHek4w.js","assets/Link01-DL7ePw82.js","assets/Eye-CH7m62Q9.js","assets/LinkExternal01-b8VjDApC.js","assets/XCircle-BjAJVHDF.js","assets/use-collections-D-dYas4g.js","assets/use-connection-C6mRcJDK.js","assets/popover-BsBq580h.js","assets/Copy01-CBbaVNcV.js","assets/Save01-DB_m4T10.js","assets/Key01-Df3Idqiz.js","assets/Plus-DyccoR76.js","assets/tooltip-j8kTHx55.js","assets/Play-C_XCWv-e.js","assets/reports-layout-DEPJi7t7.js","assets/binder-JBklfnkZ.js","assets/CheckDone01-Dcp2FYQ-.js","assets/Clock-CKhQI6RG.js","assets/Inbox01-B-u4MXdb.js","assets/InfoCircle-Ix7ZTvJi.js","assets/markdown-Bf8aDiE3.js","assets/ArrowDown-CWZOxMGB.js","assets/ArrowUp-CxJFPww9.js","assets/CheckVerified02-D11ceW2n.js","assets/Hash02-fUOm6jU-.js","assets/plugin-header-sixzd3Ma.js","assets/Dataflow03-D7alrCgq.js","assets/plugin-empty-state-RaKROIGH.js","assets/login-B3dPe2uq.js","assets/reset-password-CCjN8Der.js","assets/connect-DfPT2YCY.js","assets/circle-alert-vyafkPY9.js","assets/oauth-callback-BrSHCBQX.js","assets/shell-layout-7XeOm_ax.js","assets/index-BTGfXm3p.js","assets/collapsible-BqhrFzzR.js","assets/use-virtual-mcp-Dbh6kzyX.js","assets/decopilot-events-D0o8qF4i.js","assets/use-llm-C2ec2VVQ.js","assets/use-binding-BfnusZ1F.js","assets/localstorage-keys-B-P4Lkkc.js","assets/tabs-BpharFFf.js","assets/skeleton-BS-CeywH.js","assets/AlignLeft-BXEQaqkm.js","assets/Image01-DcPksOlo.js","assets/useSuspenseInfiniteQuery-BSv4Z18C.js","assets/spinner-DBhlROgw.js","assets/form-u0JM0zFo.js","assets/usage-B8eRkRZY.js","assets/Edit01-86XeEa-K.js","assets/Users03-TzAql3be.js","assets/Code01-YTmJoKH0.js","assets/integration-icon-lbcrIfEl.js","assets/use-create-virtual-mcp-Dn5aJHho.js","assets/use-mcp-resources-C0pasPvz.js","assets/marked.esm-BaswSlok.js","assets/mcp-app-renderer-BnVKlKcJ.js","assets/types-jFDozJe3.js","assets/Globe02-C9h9OvDn.js","assets/LayersTwo01-B5E2fqo_.js","assets/XClose-Rpsc-3OA.js","assets/collection-search-BqJoX17Q.js","assets/generate-id-Dyweu44Y.js","assets/index-D-QI-if6.js","assets/ChevronLeft-CSMOvegR.js","assets/editable-task-title-BtM8Y_i0.js","assets/tasks-panel-Ct2D_gmM.js","assets/user-DoJm1uYf.js","assets/avatar-COttSggk.js","assets/format-time-CMKyl-GC.js","assets/differenceInSeconds-NQ4PDo0z.js","assets/create-project-dialog-D33xriWJ.js","assets/use-settings-modal-nlOCOvru.js","assets/LayoutLeft-Bc53fB6X.js","assets/use-project-BJg-zw4z.js","assets/create-organization-dialog-jAyzYeAn.js","assets/File06-BsPa6yJC.js","assets/Shield01-D3qnwTrp.js","assets/use-mcp-tools-CMrxqGk3.js","assets/resizable-Dyz8Ueqx.js","assets/home-C0wm8Ra0.js","assets/project-layout-RD2qGV-x.js","assets/Zap-BZ3UCYjM.js","assets/project-plugins-COU6htGE.js","assets/use-install-from-registry-Ci2mnCpP.js","assets/extract-connection-data-BvxOwwOc.js","assets/constants-Dvvbc3ac.js","assets/github-icon-Dp3wHhYE.js","assets/registry-utils-Bl8qAIIE.js","assets/chart-oCbiVl3J.js","assets/index-C-FConRx.js","assets/use-members-DyNTppwq.js","assets/page-CA_pelN-.js","assets/tasks-CJXh_ge0.js","assets/breadcrumb-DZ4K3wPr.js","assets/projects-list-D9xGyghY.js","assets/formatDistanceToNow-Cb2QZZJn.js","assets/layout-Be7WHnRk.js","assets/general-fg_RS0yr.js","assets/danger-zone-DADmz_4H.js","assets/dependencies-WKnlxG4W.js","assets/command-BEFS8ANg.js","assets/index-DtzYx0E6.js","assets/unwrap-tool-result-BYXdCQMg.js","assets/sidebar-settings-B9cT50kt.js","assets/plugins-CD_83bbp.js","assets/danger-Cha4pSGh.js","assets/members-BJawTGLR.js","assets/collection-display-button-B5-Qbe51.js","assets/collection-table-wrapper-BTjazYQf.js","assets/DotsHorizontal-Bs1LoWL0.js","assets/Lock01-Kbe8uq9Q.js","assets/connections-kkqT0K5k.js","assets/connection-card-BdnPGsex.js","assets/connection-status-C-QmdjUW.js","assets/use-list-state-Cs0Vw1fn.js","assets/Terminal-BQ8QYOY1.js","assets/env-vars-editor-C_fpQu3r.js","assets/connection-detail-CLUQ4ftB.js","assets/save-actions-BY0Prlb4.js","assets/index-C21sEs5P.js","assets/index-BjjNfFZO.js","assets/collection-tabs-EEOW6GRL.js","assets/layout-DyQEA0SZ.js","assets/collection-tab-CalpHH6o.js","assets/empty-state-Bs6ZvT13.js","assets/icon-picker-BYggeY9I.js","assets/scroll-area-7QhPLRXH.js","assets/Edit05-D2Mr1uN2.js","assets/readme-viewer-BbXjdtG9.js","assets/readme-viewer-DWnTz46N.css","assets/tools-list-UPWCb7T0.js","assets/collection-detail-CnE9tdFz.js","assets/monaco-editor-BQM0x1VO.js","assets/monitoring-blJKyDvA.js","assets/time-range-picker-CdtxSNYv.js","assets/monitoring-dashboard-view-ipSeoz8O.js","assets/monitoring-dashboard-edit-BDHHepNV.js","assets/page-Kq0I6KKP.js","assets/slugify-CEUa2lfQ.js","assets/mcp-server-card-DZcgEuH9.js","assets/mcp-server-detail-Bt5RaPnX.js","assets/agents-Cd6HGWat.js","assets/agent-connections-preview-DIiP1L_8.js","assets/agent-detail-J2F2tRbj.js","assets/project-app-view-BJtfzuHN.js","assets/workflow-BypiKv8P.js","assets/dynamic-plugin-layout-1VL-Nq0v.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
function G5(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const a in r)if(a!=="default"&&!(a in e)){const i=Object.getOwnPropertyDescriptor(r,a);i&&Object.defineProperty(e,a,i.get?i:{enumerable:!0,get:()=>r[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const c of i.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&r(c)}).observe(document,{childList:!0,subtree:!0});function n(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(a){if(a.ep)return;a.ep=!0;const i=n(a);fetch(a.href,i)}})();const Z5="modulepreload",K5=function(e){return"/"+e},ZR={},pt=function(t,n,r){let a=Promise.resolve();if(n&&n.length>0){let c=function(f){return Promise.all(f.map(m=>Promise.resolve(m).then(p=>({status:"fulfilled",value:p}),p=>({status:"rejected",reason:p}))))};document.getElementsByTagName("link");const u=document.querySelector("meta[property=csp-nonce]"),d=u?.nonce||u?.getAttribute("nonce");a=c(n.map(f=>{if(f=K5(f),f in ZR)return;ZR[f]=!0;const m=f.endsWith(".css"),p=m?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${f}"]${p}`))return;const g=document.createElement("link");if(g.rel=m?"stylesheet":Z5,m||(g.as="script"),g.crossOrigin="",g.href=f,d&&g.setAttribute("nonce",d),document.head.appendChild(g),m)return new Promise((y,w)=>{g.addEventListener("load",y),g.addEventListener("error",()=>w(Error(`Unable to preload CSS for ${f}`)))})}))}function i(c){const u=new Event("vite:preloadError",{cancelable:!0});if(u.payload=c,window.dispatchEvent(u),!u.defaultPrevented)throw c}return a.then(c=>{for(const u of c||[])u.status==="rejected"&&i(u.reason);return t().catch(i)})};var boe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ja(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var yy={exports:{}},gu={};var KR;function W5(){if(KR)return gu;KR=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,a,i){var c=null;if(i!==void 0&&(c=""+i),a.key!==void 0&&(c=""+a.key),"key"in a){i={};for(var u in a)u!=="key"&&(i[u]=a[u])}else i=a;return a=i.ref,{$$typeof:e,type:r,key:c,ref:a!==void 0?a:null,props:i}}return gu.Fragment=t,gu.jsx=n,gu.jsxs=n,gu}var WR;function Y5(){return WR||(WR=1,yy.exports=W5()),yy.exports}var x=Y5(),_y={exports:{}},vu={},by={exports:{}},wy={};var YR;function Q5(){return YR||(YR=1,(function(e){function t(F,X){var ae=F.length;F.push(X);e:for(;0<ae;){var fe=ae-1>>>1,K=F[fe];if(0<a(K,X))F[fe]=X,F[ae]=K,ae=fe;else break e}}function n(F){return F.length===0?null:F[0]}function r(F){if(F.length===0)return null;var X=F[0],ae=F.pop();if(ae!==X){F[0]=ae;e:for(var fe=0,K=F.length,P=K>>>1;fe<P;){var q=2*(fe+1)-1,B=F[q],L=q+1,$=F[L];if(0>a(B,ae))L<K&&0>a($,B)?(F[fe]=$,F[L]=ae,fe=L):(F[fe]=B,F[q]=ae,fe=q);else if(L<K&&0>a($,ae))F[fe]=$,F[L]=ae,fe=L;else break e}}return X}function a(F,X){var ae=F.sortIndex-X.sortIndex;return ae!==0?ae:F.id-X.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var c=Date,u=c.now();e.unstable_now=function(){return c.now()-u}}var d=[],f=[],m=1,p=null,g=3,y=!1,w=!1,S=!1,b=!1,R=typeof setTimeout=="function"?setTimeout:null,E=typeof clearTimeout=="function"?clearTimeout:null,T=typeof setImmediate<"u"?setImmediate:null;function O(F){for(var X=n(f);X!==null;){if(X.callback===null)r(f);else if(X.startTime<=F)r(f),X.sortIndex=X.expirationTime,t(d,X);else break;X=n(f)}}function C(F){if(S=!1,O(F),!w)if(n(d)!==null)w=!0,I||(I=!0,G());else{var X=n(f);X!==null&&ie(C,X.startTime-F)}}var I=!1,N=-1,D=5,z=-1;function W(){return b?!0:!(e.unstable_now()-z<D)}function V(){if(b=!1,I){var F=e.unstable_now();z=F;var X=!0;try{e:{w=!1,S&&(S=!1,E(N),N=-1),y=!0;var ae=g;try{t:{for(O(F),p=n(d);p!==null&&!(p.expirationTime>F&&W());){var fe=p.callback;if(typeof fe=="function"){p.callback=null,g=p.priorityLevel;var K=fe(p.expirationTime<=F);if(F=e.unstable_now(),typeof K=="function"){p.callback=K,O(F),X=!0;break t}p===n(d)&&r(d),O(F)}else r(d);p=n(d)}if(p!==null)X=!0;else{var P=n(f);P!==null&&ie(C,P.startTime-F),X=!1}}break e}finally{p=null,g=ae,y=!1}X=void 0}}finally{X?G():I=!1}}}var G;if(typeof T=="function")G=function(){T(V)};else if(typeof MessageChannel<"u"){var U=new MessageChannel,J=U.port2;U.port1.onmessage=V,G=function(){J.postMessage(null)}}else G=function(){R(V,0)};function ie(F,X){N=R(function(){F(e.unstable_now())},X)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(F){F.callback=null},e.unstable_forceFrameRate=function(F){0>F||125<F?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):D=0<F?Math.floor(1e3/F):5},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_next=function(F){switch(g){case 1:case 2:case 3:var X=3;break;default:X=g}var ae=g;g=X;try{return F()}finally{g=ae}},e.unstable_requestPaint=function(){b=!0},e.unstable_runWithPriority=function(F,X){switch(F){case 1:case 2:case 3:case 4:case 5:break;default:F=3}var ae=g;g=F;try{return X()}finally{g=ae}},e.unstable_scheduleCallback=function(F,X,ae){var fe=e.unstable_now();switch(typeof ae=="object"&&ae!==null?(ae=ae.delay,ae=typeof ae=="number"&&0<ae?fe+ae:fe):ae=fe,F){case 1:var K=-1;break;case 2:K=250;break;case 5:K=1073741823;break;case 4:K=1e4;break;default:K=5e3}return K=ae+K,F={id:m++,callback:X,priorityLevel:F,startTime:ae,expirationTime:K,sortIndex:-1},ae>fe?(F.sortIndex=ae,t(f,F),n(d)===null&&F===n(f)&&(S?(E(N),N=-1):S=!0,ie(C,ae-fe))):(F.sortIndex=K,t(d,F),w||y||(w=!0,I||(I=!0,G()))),F},e.unstable_shouldYield=W,e.unstable_wrapCallback=function(F){var X=g;return function(){var ae=g;g=X;try{return F.apply(this,arguments)}finally{g=ae}}}})(wy)),wy}var QR;function X5(){return QR||(QR=1,by.exports=Q5()),by.exports}var Sy={exports:{}},Je={};var XR;function J5(){if(XR)return Je;XR=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),c=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),g=Symbol.iterator;function y(P){return P===null||typeof P!="object"?null:(P=g&&P[g]||P["@@iterator"],typeof P=="function"?P:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,b={};function R(P,q,B){this.props=P,this.context=q,this.refs=b,this.updater=B||w}R.prototype.isReactComponent={},R.prototype.setState=function(P,q){if(typeof P!="object"&&typeof P!="function"&&P!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,P,q,"setState")},R.prototype.forceUpdate=function(P){this.updater.enqueueForceUpdate(this,P,"forceUpdate")};function E(){}E.prototype=R.prototype;function T(P,q,B){this.props=P,this.context=q,this.refs=b,this.updater=B||w}var O=T.prototype=new E;O.constructor=T,S(O,R.prototype),O.isPureReactComponent=!0;var C=Array.isArray;function I(){}var N={H:null,A:null,T:null,S:null},D=Object.prototype.hasOwnProperty;function z(P,q,B){var L=B.ref;return{$$typeof:e,type:P,key:q,ref:L!==void 0?L:null,props:B}}function W(P,q){return z(P.type,q,P.props)}function V(P){return typeof P=="object"&&P!==null&&P.$$typeof===e}function G(P){var q={"=":"=0",":":"=2"};return"$"+P.replace(/[=:]/g,function(B){return q[B]})}var U=/\/+/g;function J(P,q){return typeof P=="object"&&P!==null&&P.key!=null?G(""+P.key):q.toString(36)}function ie(P){switch(P.status){case"fulfilled":return P.value;case"rejected":throw P.reason;default:switch(typeof P.status=="string"?P.then(I,I):(P.status="pending",P.then(function(q){P.status==="pending"&&(P.status="fulfilled",P.value=q)},function(q){P.status==="pending"&&(P.status="rejected",P.reason=q)})),P.status){case"fulfilled":return P.value;case"rejected":throw P.reason}}throw P}function F(P,q,B,L,$){var Q=typeof P;(Q==="undefined"||Q==="boolean")&&(P=null);var me=!1;if(P===null)me=!0;else switch(Q){case"bigint":case"string":case"number":me=!0;break;case"object":switch(P.$$typeof){case e:case t:me=!0;break;case m:return me=P._init,F(me(P._payload),q,B,L,$)}}if(me)return $=$(P),me=L===""?"."+J(P,0):L,C($)?(B="",me!=null&&(B=me.replace(U,"$&/")+"/"),F($,q,B,"",function(ke){return ke})):$!=null&&(V($)&&($=W($,B+($.key==null||P&&P.key===$.key?"":(""+$.key).replace(U,"$&/")+"/")+me)),q.push($)),1;me=0;var _e=L===""?".":L+":";if(C(P))for(var Ae=0;Ae<P.length;Ae++)L=P[Ae],Q=_e+J(L,Ae),me+=F(L,q,B,Q,$);else if(Ae=y(P),typeof Ae=="function")for(P=Ae.call(P),Ae=0;!(L=P.next()).done;)L=L.value,Q=_e+J(L,Ae++),me+=F(L,q,B,Q,$);else if(Q==="object"){if(typeof P.then=="function")return F(ie(P),q,B,L,$);throw q=String(P),Error("Objects are not valid as a React child (found: "+(q==="[object Object]"?"object with keys {"+Object.keys(P).join(", ")+"}":q)+"). If you meant to render a collection of children, use an array instead.")}return me}function X(P,q,B){if(P==null)return P;var L=[],$=0;return F(P,L,"","",function(Q){return q.call(B,Q,$++)}),L}function ae(P){if(P._status===-1){var q=P._result;q=q(),q.then(function(B){(P._status===0||P._status===-1)&&(P._status=1,P._result=B)},function(B){(P._status===0||P._status===-1)&&(P._status=2,P._result=B)}),P._status===-1&&(P._status=0,P._result=q)}if(P._status===1)return P._result.default;throw P._result}var fe=typeof reportError=="function"?reportError:function(P){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof P=="object"&&P!==null&&typeof P.message=="string"?String(P.message):String(P),error:P});if(!window.dispatchEvent(q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",P);return}console.error(P)},K={map:X,forEach:function(P,q,B){X(P,function(){q.apply(this,arguments)},B)},count:function(P){var q=0;return X(P,function(){q++}),q},toArray:function(P){return X(P,function(q){return q})||[]},only:function(P){if(!V(P))throw Error("React.Children.only expected to receive a single React element child.");return P}};return Je.Activity=p,Je.Children=K,Je.Component=R,Je.Fragment=n,Je.Profiler=a,Je.PureComponent=T,Je.StrictMode=r,Je.Suspense=d,Je.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=N,Je.__COMPILER_RUNTIME={__proto__:null,c:function(P){return N.H.useMemoCache(P)}},Je.cache=function(P){return function(){return P.apply(null,arguments)}},Je.cacheSignal=function(){return null},Je.cloneElement=function(P,q,B){if(P==null)throw Error("The argument must be a React element, but you passed "+P+".");var L=S({},P.props),$=P.key;if(q!=null)for(Q in q.key!==void 0&&($=""+q.key),q)!D.call(q,Q)||Q==="key"||Q==="__self"||Q==="__source"||Q==="ref"&&q.ref===void 0||(L[Q]=q[Q]);var Q=arguments.length-2;if(Q===1)L.children=B;else if(1<Q){for(var me=Array(Q),_e=0;_e<Q;_e++)me[_e]=arguments[_e+2];L.children=me}return z(P.type,$,L)},Je.createContext=function(P){return P={$$typeof:c,_currentValue:P,_currentValue2:P,_threadCount:0,Provider:null,Consumer:null},P.Provider=P,P.Consumer={$$typeof:i,_context:P},P},Je.createElement=function(P,q,B){var L,$={},Q=null;if(q!=null)for(L in q.key!==void 0&&(Q=""+q.key),q)D.call(q,L)&&L!=="key"&&L!=="__self"&&L!=="__source"&&($[L]=q[L]);var me=arguments.length-2;if(me===1)$.children=B;else if(1<me){for(var _e=Array(me),Ae=0;Ae<me;Ae++)_e[Ae]=arguments[Ae+2];$.children=_e}if(P&&P.defaultProps)for(L in me=P.defaultProps,me)$[L]===void 0&&($[L]=me[L]);return z(P,Q,$)},Je.createRef=function(){return{current:null}},Je.forwardRef=function(P){return{$$typeof:u,render:P}},Je.isValidElement=V,Je.lazy=function(P){return{$$typeof:m,_payload:{_status:-1,_result:P},_init:ae}},Je.memo=function(P,q){return{$$typeof:f,type:P,compare:q===void 0?null:q}},Je.startTransition=function(P){var q=N.T,B={};N.T=B;try{var L=P(),$=N.S;$!==null&&$(B,L),typeof L=="object"&&L!==null&&typeof L.then=="function"&&L.then(I,fe)}catch(Q){fe(Q)}finally{q!==null&&B.types!==null&&(q.types=B.types),N.T=q}},Je.unstable_useCacheRefresh=function(){return N.H.useCacheRefresh()},Je.use=function(P){return N.H.use(P)},Je.useActionState=function(P,q,B){return N.H.useActionState(P,q,B)},Je.useCallback=function(P,q){return N.H.useCallback(P,q)},Je.useContext=function(P){return N.H.useContext(P)},Je.useDebugValue=function(){},Je.useDeferredValue=function(P,q){return N.H.useDeferredValue(P,q)},Je.useEffect=function(P,q){return N.H.useEffect(P,q)},Je.useEffectEvent=function(P){return N.H.useEffectEvent(P)},Je.useId=function(){return N.H.useId()},Je.useImperativeHandle=function(P,q,B){return N.H.useImperativeHandle(P,q,B)},Je.useInsertionEffect=function(P,q){return N.H.useInsertionEffect(P,q)},Je.useLayoutEffect=function(P,q){return N.H.useLayoutEffect(P,q)},Je.useMemo=function(P,q){return N.H.useMemo(P,q)},Je.useOptimistic=function(P,q){return N.H.useOptimistic(P,q)},Je.useReducer=function(P,q,B){return N.H.useReducer(P,q,B)},Je.useRef=function(P){return N.H.useRef(P)},Je.useState=function(P){return N.H.useState(P)},Je.useSyncExternalStore=function(P,q,B){return N.H.useSyncExternalStore(P,q,B)},Je.useTransition=function(){return N.H.useTransition()},Je.version="19.2.4",Je}var JR;function zs(){return JR||(JR=1,Sy.exports=J5()),Sy.exports}var Ey={exports:{}},tr={};var ex;function eD(){if(ex)return tr;ex=1;var e=zs();function t(d){var f="https://react.dev/errors/"+d;if(1<arguments.length){f+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)f+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+d+"; visit "+f+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},a=Symbol.for("react.portal");function i(d,f,m){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:p==null?null:""+p,children:d,containerInfo:f,implementation:m}}var c=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(d,f){if(d==="font")return"";if(typeof f=="string")return f==="use-credentials"?f:""}return tr.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,tr.createPortal=function(d,f){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!f||f.nodeType!==1&&f.nodeType!==9&&f.nodeType!==11)throw Error(t(299));return i(d,f,null,m)},tr.flushSync=function(d){var f=c.T,m=r.p;try{if(c.T=null,r.p=2,d)return d()}finally{c.T=f,r.p=m,r.d.f()}},tr.preconnect=function(d,f){typeof d=="string"&&(f?(f=f.crossOrigin,f=typeof f=="string"?f==="use-credentials"?f:"":void 0):f=null,r.d.C(d,f))},tr.prefetchDNS=function(d){typeof d=="string"&&r.d.D(d)},tr.preinit=function(d,f){if(typeof d=="string"&&f&&typeof f.as=="string"){var m=f.as,p=u(m,f.crossOrigin),g=typeof f.integrity=="string"?f.integrity:void 0,y=typeof f.fetchPriority=="string"?f.fetchPriority:void 0;m==="style"?r.d.S(d,typeof f.precedence=="string"?f.precedence:void 0,{crossOrigin:p,integrity:g,fetchPriority:y}):m==="script"&&r.d.X(d,{crossOrigin:p,integrity:g,fetchPriority:y,nonce:typeof f.nonce=="string"?f.nonce:void 0})}},tr.preinitModule=function(d,f){if(typeof d=="string")if(typeof f=="object"&&f!==null){if(f.as==null||f.as==="script"){var m=u(f.as,f.crossOrigin);r.d.M(d,{crossOrigin:m,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0})}}else f==null&&r.d.M(d)},tr.preload=function(d,f){if(typeof d=="string"&&typeof f=="object"&&f!==null&&typeof f.as=="string"){var m=f.as,p=u(m,f.crossOrigin);r.d.L(d,m,{crossOrigin:p,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0,type:typeof f.type=="string"?f.type:void 0,fetchPriority:typeof f.fetchPriority=="string"?f.fetchPriority:void 0,referrerPolicy:typeof f.referrerPolicy=="string"?f.referrerPolicy:void 0,imageSrcSet:typeof f.imageSrcSet=="string"?f.imageSrcSet:void 0,imageSizes:typeof f.imageSizes=="string"?f.imageSizes:void 0,media:typeof f.media=="string"?f.media:void 0})}},tr.preloadModule=function(d,f){if(typeof d=="string")if(f){var m=u(f.as,f.crossOrigin);r.d.m(d,{as:typeof f.as=="string"&&f.as!=="script"?f.as:void 0,crossOrigin:m,integrity:typeof f.integrity=="string"?f.integrity:void 0})}else r.d.m(d)},tr.requestFormReset=function(d){r.d.r(d)},tr.unstable_batchedUpdates=function(d,f){return d(f)},tr.useFormState=function(d,f,m){return c.H.useFormState(d,f,m)},tr.useFormStatus=function(){return c.H.useHostTransitionStatus()},tr.version="19.2.4",tr}var tx;function GC(){if(tx)return Ey.exports;tx=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(),Ey.exports=eD(),Ey.exports}var nx;function tD(){if(nx)return vu;nx=1;var e=X5(),t=zs(),n=GC();function r(o){var s="https://react.dev/errors/"+o;if(1<arguments.length){s+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)s+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+o+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11)}function i(o){var s=o,l=o;if(o.alternate)for(;s.return;)s=s.return;else{o=s;do s=o,(s.flags&4098)!==0&&(l=s.return),o=s.return;while(o)}return s.tag===3?l:null}function c(o){if(o.tag===13){var s=o.memoizedState;if(s===null&&(o=o.alternate,o!==null&&(s=o.memoizedState)),s!==null)return s.dehydrated}return null}function u(o){if(o.tag===31){var s=o.memoizedState;if(s===null&&(o=o.alternate,o!==null&&(s=o.memoizedState)),s!==null)return s.dehydrated}return null}function d(o){if(i(o)!==o)throw Error(r(188))}function f(o){var s=o.alternate;if(!s){if(s=i(o),s===null)throw Error(r(188));return s!==o?null:o}for(var l=o,h=s;;){var v=l.return;if(v===null)break;var _=v.alternate;if(_===null){if(h=v.return,h!==null){l=h;continue}break}if(v.child===_.child){for(_=v.child;_;){if(_===l)return d(v),o;if(_===h)return d(v),s;_=_.sibling}throw Error(r(188))}if(l.return!==h.return)l=v,h=_;else{for(var k=!1,j=v.child;j;){if(j===l){k=!0,l=v,h=_;break}if(j===h){k=!0,h=v,l=_;break}j=j.sibling}if(!k){for(j=_.child;j;){if(j===l){k=!0,l=_,h=v;break}if(j===h){k=!0,h=_,l=v;break}j=j.sibling}if(!k)throw Error(r(189))}}if(l.alternate!==h)throw Error(r(190))}if(l.tag!==3)throw Error(r(188));return l.stateNode.current===l?o:s}function m(o){var s=o.tag;if(s===5||s===26||s===27||s===6)return o;for(o=o.child;o!==null;){if(s=m(o),s!==null)return s;o=o.sibling}return null}var p=Object.assign,g=Symbol.for("react.element"),y=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),R=Symbol.for("react.profiler"),E=Symbol.for("react.consumer"),T=Symbol.for("react.context"),O=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),I=Symbol.for("react.suspense_list"),N=Symbol.for("react.memo"),D=Symbol.for("react.lazy"),z=Symbol.for("react.activity"),W=Symbol.for("react.memo_cache_sentinel"),V=Symbol.iterator;function G(o){return o===null||typeof o!="object"?null:(o=V&&o[V]||o["@@iterator"],typeof o=="function"?o:null)}var U=Symbol.for("react.client.reference");function J(o){if(o==null)return null;if(typeof o=="function")return o.$$typeof===U?null:o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case S:return"Fragment";case R:return"Profiler";case b:return"StrictMode";case C:return"Suspense";case I:return"SuspenseList";case z:return"Activity"}if(typeof o=="object")switch(o.$$typeof){case w:return"Portal";case T:return o.displayName||"Context";case E:return(o._context.displayName||"Context")+".Consumer";case O:var s=o.render;return o=o.displayName,o||(o=s.displayName||s.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case N:return s=o.displayName||null,s!==null?s:J(o.type)||"Memo";case D:s=o._payload,o=o._init;try{return J(o(s))}catch{}}return null}var ie=Array.isArray,F=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ae={pending:!1,data:null,method:null,action:null},fe=[],K=-1;function P(o){return{current:o}}function q(o){0>K||(o.current=fe[K],fe[K]=null,K--)}function B(o,s){K++,fe[K]=o.current,o.current=s}var L=P(null),$=P(null),Q=P(null),me=P(null);function _e(o,s){switch(B(Q,s),B($,o),B(L,null),s.nodeType){case 9:case 11:o=(o=s.documentElement)&&(o=o.namespaceURI)?gR(o):0;break;default:if(o=s.tagName,s=s.namespaceURI)s=gR(s),o=vR(s,o);else switch(o){case"svg":o=1;break;case"math":o=2;break;default:o=0}}q(L),B(L,o)}function Ae(){q(L),q($),q(Q)}function ke(o){o.memoizedState!==null&&B(me,o);var s=L.current,l=vR(s,o.type);s!==l&&(B($,o),B(L,l))}function H(o){$.current===o&&(q(L),q($)),me.current===o&&(q(me),fu._currentValue=ae)}var ne,be;function pe(o){if(ne===void 0)try{throw Error()}catch(l){var s=l.stack.trim().match(/\n( *(at )?)/);ne=s&&s[1]||"",be=-1<l.stack.indexOf(`
|
|
3
|
-
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
4
|
-
`+ne+o+be}var ce=!1;function Oe(o,s){if(!o||ce)return"";ce=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var h={DetermineComponentFrameRoot:function(){try{if(s){var xe=function(){throw Error()};if(Object.defineProperty(xe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(xe,[])}catch(ge){var he=ge}Reflect.construct(o,[],xe)}else{try{xe.call()}catch(ge){he=ge}o.call(xe.prototype)}}else{try{throw Error()}catch(ge){he=ge}(xe=o())&&typeof xe.catch=="function"&&xe.catch(function(){})}}catch(ge){if(ge&&he&&typeof ge.stack=="string")return[ge.stack,he.stack]}return[null,null]}};h.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var v=Object.getOwnPropertyDescriptor(h.DetermineComponentFrameRoot,"name");v&&v.configurable&&Object.defineProperty(h.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var _=h.DetermineComponentFrameRoot(),k=_[0],j=_[1];if(k&&j){var Y=k.split(`
|
|
5
|
-
`),de=j.split(`
|
|
6
|
-
`);for(v=h=0;h<Y.length&&!Y[h].includes("DetermineComponentFrameRoot");)h++;for(;v<de.length&&!de[v].includes("DetermineComponentFrameRoot");)v++;if(h===Y.length||v===de.length)for(h=Y.length-1,v=de.length-1;1<=h&&0<=v&&Y[h]!==de[v];)v--;for(;1<=h&&0<=v;h--,v--)if(Y[h]!==de[v]){if(h!==1||v!==1)do if(h--,v--,0>v||Y[h]!==de[v]){var we=`
|
|
7
|
-
`+Y[h].replace(" at new "," at ");return o.displayName&&we.includes("<anonymous>")&&(we=we.replace("<anonymous>",o.displayName)),we}while(1<=h&&0<=v);break}}}finally{ce=!1,Error.prepareStackTrace=l}return(l=o?o.displayName||o.name:"")?pe(l):""}function $e(o,s){switch(o.tag){case 26:case 27:case 5:return pe(o.type);case 16:return pe("Lazy");case 13:return o.child!==s&&s!==null?pe("Suspense Fallback"):pe("Suspense");case 19:return pe("SuspenseList");case 0:case 15:return Oe(o.type,!1);case 11:return Oe(o.type.render,!1);case 1:return Oe(o.type,!0);case 31:return pe("Activity");default:return""}}function Ye(o){try{var s="",l=null;do s+=$e(o,l),l=o,o=o.return;while(o);return s}catch(h){return`
|
|
8
|
-
Error generating stack: `+h.message+`
|
|
9
|
-
`+h.stack}}var He=Object.prototype.hasOwnProperty,Xe=e.unstable_scheduleCallback,Z=e.unstable_cancelCallback,te=e.unstable_shouldYield,oe=e.unstable_requestPaint,Se=e.unstable_now,Te=e.unstable_getCurrentPriorityLevel,Re=e.unstable_ImmediatePriority,Ne=e.unstable_UserBlockingPriority,rt=e.unstable_NormalPriority,st=e.unstable_LowPriority,Pt=e.unstable_IdlePriority,hr=e.log,Rn=e.unstable_setDisableYieldValue,Un=null,en=null;function zn(o){if(typeof hr=="function"&&Rn(o),en&&typeof en.setStrictMode=="function")try{en.setStrictMode(Un,o)}catch{}}var kn=Math.clz32?Math.clz32:kr,Bi=Math.log,Zs=Math.LN2;function kr(o){return o>>>=0,o===0?32:31-(Bi(o)/Zs|0)|0}var qi=256,Hi=262144,Ks=4194304;function Fo(o){var s=o&42;if(s!==0)return s;switch(o&-o){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return o&261888;case 262144:case 524288:case 1048576:case 2097152:return o&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return o&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return o}}function Qe(o,s,l){var h=o.pendingLanes;if(h===0)return 0;var v=0,_=o.suspendedLanes,k=o.pingedLanes;o=o.warmLanes;var j=h&134217727;return j!==0?(h=j&~_,h!==0?v=Fo(h):(k&=j,k!==0?v=Fo(k):l||(l=j&~o,l!==0&&(v=Fo(l))))):(j=h&~_,j!==0?v=Fo(j):k!==0?v=Fo(k):l||(l=h&~o,l!==0&&(v=Fo(l)))),v===0?0:s!==0&&s!==v&&(s&_)===0&&(_=v&-v,l=s&-s,_>=l||_===32&&(l&4194048)!==0)?s:v}function Wt(o,s){return(o.pendingLanes&~(o.suspendedLanes&~o.pingedLanes)&s)===0}function Nn(o,s){switch(o){case 1:case 2:case 4:case 8:case 64:return s+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return s+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function er(){var o=Ks;return Ks<<=1,(Ks&62914560)===0&&(Ks=4194304),o}function Fa(o){for(var s=[],l=0;31>l;l++)s.push(o);return s}function tn(o,s){o.pendingLanes|=s,s!==268435456&&(o.suspendedLanes=0,o.pingedLanes=0,o.warmLanes=0)}function pr(o,s,l,h,v,_){var k=o.pendingLanes;o.pendingLanes=l,o.suspendedLanes=0,o.pingedLanes=0,o.warmLanes=0,o.expiredLanes&=l,o.entangledLanes&=l,o.errorRecoveryDisabledLanes&=l,o.shellSuspendCounter=0;var j=o.entanglements,Y=o.expirationTimes,de=o.hiddenUpdates;for(l=k&~l;0<l;){var we=31-kn(l),xe=1<<we;j[we]=0,Y[we]=-1;var he=de[we];if(he!==null)for(de[we]=null,we=0;we<he.length;we++){var ge=he[we];ge!==null&&(ge.lane&=-536870913)}l&=~xe}h!==0&&Ws(o,h,0),_!==0&&v===0&&o.tag!==0&&(o.suspendedLanes|=_&~(k&~s))}function Ws(o,s,l){o.pendingLanes|=s,o.suspendedLanes&=~s;var h=31-kn(s);o.entangledLanes|=s,o.entanglements[h]=o.entanglements[h]|1073741824|l&261930}function mr(o,s){var l=o.entangledLanes|=s;for(o=o.entanglements;l;){var h=31-kn(l),v=1<<h;v&s|o[h]&s&&(o[h]|=s),l&=~v}}function gr(o,s){var l=s&-s;return l=(l&42)!==0?1:Gi(l),(l&(o.suspendedLanes|s))!==0?0:l}function Gi(o){switch(o){case 2:o=1;break;case 8:o=4;break;case 32:o=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:o=128;break;case 268435456:o=134217728;break;default:o=0}return o}function wo(o){return o&=-o,2<o?8<o?(o&134217727)!==0?32:268435456:8:2}function cg(){var o=X.p;return o!==0?o:(o=window.event,o===void 0?32:zR(o.type))}function nw(o,s){var l=X.p;try{return X.p=o,s()}finally{X.p=l}}var Ba=Math.random().toString(36).slice(2),Vn="__reactFiber$"+Ba,vr="__reactProps$"+Ba,Zi="__reactContainer$"+Ba,lg="__reactEvents$"+Ba,DP="__reactListeners$"+Ba,LP="__reactHandles$"+Ba,rw="__reactResources$"+Ba,Ol="__reactMarker$"+Ba;function ug(o){delete o[Vn],delete o[vr],delete o[lg],delete o[DP],delete o[LP]}function Ki(o){var s=o[Vn];if(s)return s;for(var l=o.parentNode;l;){if(s=l[Zi]||l[Vn]){if(l=s.alternate,s.child!==null||l!==null&&l.child!==null)for(o=RR(o);o!==null;){if(l=o[Vn])return l;o=RR(o)}return s}o=l,l=o.parentNode}return null}function Wi(o){if(o=o[Vn]||o[Zi]){var s=o.tag;if(s===5||s===6||s===13||s===31||s===26||s===27||s===3)return o}return null}function Cl(o){var s=o.tag;if(s===5||s===26||s===27||s===6)return o.stateNode;throw Error(r(33))}function Yi(o){var s=o[rw];return s||(s=o[rw]={hoistableStyles:new Map,hoistableScripts:new Map}),s}function Mn(o){o[Ol]=!0}var ow=new Set,aw={};function Ys(o,s){Qi(o,s),Qi(o+"Capture",s)}function Qi(o,s){for(aw[o]=s,o=0;o<s.length;o++)ow.add(s[o])}var jP=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),sw={},iw={};function $P(o){return He.call(iw,o)?!0:He.call(sw,o)?!1:jP.test(o)?iw[o]=!0:(sw[o]=!0,!1)}function Ld(o,s,l){if($P(s))if(l===null)o.removeAttribute(s);else{switch(typeof l){case"undefined":case"function":case"symbol":o.removeAttribute(s);return;case"boolean":var h=s.toLowerCase().slice(0,5);if(h!=="data-"&&h!=="aria-"){o.removeAttribute(s);return}}o.setAttribute(s,""+l)}}function jd(o,s,l){if(l===null)o.removeAttribute(s);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":o.removeAttribute(s);return}o.setAttribute(s,""+l)}}function ca(o,s,l,h){if(h===null)o.removeAttribute(l);else{switch(typeof h){case"undefined":case"function":case"symbol":case"boolean":o.removeAttribute(l);return}o.setAttributeNS(s,l,""+h)}}function Qr(o){switch(typeof o){case"bigint":case"boolean":case"number":case"string":case"undefined":return o;case"object":return o;default:return""}}function cw(o){var s=o.type;return(o=o.nodeName)&&o.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function UP(o,s,l){var h=Object.getOwnPropertyDescriptor(o.constructor.prototype,s);if(!o.hasOwnProperty(s)&&typeof h<"u"&&typeof h.get=="function"&&typeof h.set=="function"){var v=h.get,_=h.set;return Object.defineProperty(o,s,{configurable:!0,get:function(){return v.call(this)},set:function(k){l=""+k,_.call(this,k)}}),Object.defineProperty(o,s,{enumerable:h.enumerable}),{getValue:function(){return l},setValue:function(k){l=""+k},stopTracking:function(){o._valueTracker=null,delete o[s]}}}}function dg(o){if(!o._valueTracker){var s=cw(o)?"checked":"value";o._valueTracker=UP(o,s,""+o[s])}}function lw(o){if(!o)return!1;var s=o._valueTracker;if(!s)return!0;var l=s.getValue(),h="";return o&&(h=cw(o)?o.checked?"true":"false":o.value),o=h,o!==l?(s.setValue(o),!0):!1}function $d(o){if(o=o||(typeof document<"u"?document:void 0),typeof o>"u")return null;try{return o.activeElement||o.body}catch{return o.body}}var zP=/[\n"\\]/g;function Xr(o){return o.replace(zP,function(s){return"\\"+s.charCodeAt(0).toString(16)+" "})}function fg(o,s,l,h,v,_,k,j){o.name="",k!=null&&typeof k!="function"&&typeof k!="symbol"&&typeof k!="boolean"?o.type=k:o.removeAttribute("type"),s!=null?k==="number"?(s===0&&o.value===""||o.value!=s)&&(o.value=""+Qr(s)):o.value!==""+Qr(s)&&(o.value=""+Qr(s)):k!=="submit"&&k!=="reset"||o.removeAttribute("value"),s!=null?hg(o,k,Qr(s)):l!=null?hg(o,k,Qr(l)):h!=null&&o.removeAttribute("value"),v==null&&_!=null&&(o.defaultChecked=!!_),v!=null&&(o.checked=v&&typeof v!="function"&&typeof v!="symbol"),j!=null&&typeof j!="function"&&typeof j!="symbol"&&typeof j!="boolean"?o.name=""+Qr(j):o.removeAttribute("name")}function uw(o,s,l,h,v,_,k,j){if(_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"&&(o.type=_),s!=null||l!=null){if(!(_!=="submit"&&_!=="reset"||s!=null)){dg(o);return}l=l!=null?""+Qr(l):"",s=s!=null?""+Qr(s):l,j||s===o.value||(o.value=s),o.defaultValue=s}h=h??v,h=typeof h!="function"&&typeof h!="symbol"&&!!h,o.checked=j?o.checked:!!h,o.defaultChecked=!!h,k!=null&&typeof k!="function"&&typeof k!="symbol"&&typeof k!="boolean"&&(o.name=k),dg(o)}function hg(o,s,l){s==="number"&&$d(o.ownerDocument)===o||o.defaultValue===""+l||(o.defaultValue=""+l)}function Xi(o,s,l,h){if(o=o.options,s){s={};for(var v=0;v<l.length;v++)s["$"+l[v]]=!0;for(l=0;l<o.length;l++)v=s.hasOwnProperty("$"+o[l].value),o[l].selected!==v&&(o[l].selected=v),v&&h&&(o[l].defaultSelected=!0)}else{for(l=""+Qr(l),s=null,v=0;v<o.length;v++){if(o[v].value===l){o[v].selected=!0,h&&(o[v].defaultSelected=!0);return}s!==null||o[v].disabled||(s=o[v])}s!==null&&(s.selected=!0)}}function dw(o,s,l){if(s!=null&&(s=""+Qr(s),s!==o.value&&(o.value=s),l==null)){o.defaultValue!==s&&(o.defaultValue=s);return}o.defaultValue=l!=null?""+Qr(l):""}function fw(o,s,l,h){if(s==null){if(h!=null){if(l!=null)throw Error(r(92));if(ie(h)){if(1<h.length)throw Error(r(93));h=h[0]}l=h}l==null&&(l=""),s=l}l=Qr(s),o.defaultValue=l,h=o.textContent,h===l&&h!==""&&h!==null&&(o.value=h),dg(o)}function Ji(o,s){if(s){var l=o.firstChild;if(l&&l===o.lastChild&&l.nodeType===3){l.nodeValue=s;return}}o.textContent=s}var VP=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function hw(o,s,l){var h=s.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?h?o.setProperty(s,""):s==="float"?o.cssFloat="":o[s]="":h?o.setProperty(s,l):typeof l!="number"||l===0||VP.has(s)?s==="float"?o.cssFloat=l:o[s]=(""+l).trim():o[s]=l+"px"}function pw(o,s,l){if(s!=null&&typeof s!="object")throw Error(r(62));if(o=o.style,l!=null){for(var h in l)!l.hasOwnProperty(h)||s!=null&&s.hasOwnProperty(h)||(h.indexOf("--")===0?o.setProperty(h,""):h==="float"?o.cssFloat="":o[h]="");for(var v in s)h=s[v],s.hasOwnProperty(v)&&l[v]!==h&&hw(o,v,h)}else for(var _ in s)s.hasOwnProperty(_)&&hw(o,_,s[_])}function pg(o){if(o.indexOf("-")===-1)return!1;switch(o){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var FP=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),BP=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Ud(o){return BP.test(""+o)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":o}function la(){}var mg=null;function gg(o){return o=o.target||o.srcElement||window,o.correspondingUseElement&&(o=o.correspondingUseElement),o.nodeType===3?o.parentNode:o}var ec=null,tc=null;function mw(o){var s=Wi(o);if(s&&(o=s.stateNode)){var l=o[vr]||null;e:switch(o=s.stateNode,s.type){case"input":if(fg(o,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),s=l.name,l.type==="radio"&&s!=null){for(l=o;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+Xr(""+s)+'"][type="radio"]'),s=0;s<l.length;s++){var h=l[s];if(h!==o&&h.form===o.form){var v=h[vr]||null;if(!v)throw Error(r(90));fg(h,v.value,v.defaultValue,v.defaultValue,v.checked,v.defaultChecked,v.type,v.name)}}for(s=0;s<l.length;s++)h=l[s],h.form===o.form&&lw(h)}break e;case"textarea":dw(o,l.value,l.defaultValue);break e;case"select":s=l.value,s!=null&&Xi(o,!!l.multiple,s,!1)}}}var vg=!1;function gw(o,s,l){if(vg)return o(s,l);vg=!0;try{var h=o(s);return h}finally{if(vg=!1,(ec!==null||tc!==null)&&(Of(),ec&&(s=ec,o=tc,tc=ec=null,mw(s),o)))for(s=0;s<o.length;s++)mw(o[s])}}function Al(o,s){var l=o.stateNode;if(l===null)return null;var h=l[vr]||null;if(h===null)return null;l=h[s];e:switch(s){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(h=!h.disabled)||(o=o.type,h=!(o==="button"||o==="input"||o==="select"||o==="textarea")),o=!h;break e;default:o=!1}if(o)return null;if(l&&typeof l!="function")throw Error(r(231,s,typeof l));return l}var ua=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),yg=!1;if(ua)try{var Il={};Object.defineProperty(Il,"passive",{get:function(){yg=!0}}),window.addEventListener("test",Il,Il),window.removeEventListener("test",Il,Il)}catch{yg=!1}var qa=null,_g=null,zd=null;function vw(){if(zd)return zd;var o,s=_g,l=s.length,h,v="value"in qa?qa.value:qa.textContent,_=v.length;for(o=0;o<l&&s[o]===v[o];o++);var k=l-o;for(h=1;h<=k&&s[l-h]===v[_-h];h++);return zd=v.slice(o,1<h?1-h:void 0)}function Vd(o){var s=o.keyCode;return"charCode"in o?(o=o.charCode,o===0&&s===13&&(o=13)):o=s,o===10&&(o=13),32<=o||o===13?o:0}function Fd(){return!0}function yw(){return!1}function yr(o){function s(l,h,v,_,k){this._reactName=l,this._targetInst=v,this.type=h,this.nativeEvent=_,this.target=k,this.currentTarget=null;for(var j in o)o.hasOwnProperty(j)&&(l=o[j],this[j]=l?l(_):_[j]);return this.isDefaultPrevented=(_.defaultPrevented!=null?_.defaultPrevented:_.returnValue===!1)?Fd:yw,this.isPropagationStopped=yw,this}return p(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Fd)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Fd)},persist:function(){},isPersistent:Fd}),s}var Qs={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(o){return o.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Bd=yr(Qs),kl=p({},Qs,{view:0,detail:0}),qP=yr(kl),bg,wg,Nl,qd=p({},kl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Eg,button:0,buttons:0,relatedTarget:function(o){return o.relatedTarget===void 0?o.fromElement===o.srcElement?o.toElement:o.fromElement:o.relatedTarget},movementX:function(o){return"movementX"in o?o.movementX:(o!==Nl&&(Nl&&o.type==="mousemove"?(bg=o.screenX-Nl.screenX,wg=o.screenY-Nl.screenY):wg=bg=0,Nl=o),bg)},movementY:function(o){return"movementY"in o?o.movementY:wg}}),_w=yr(qd),HP=p({},qd,{dataTransfer:0}),GP=yr(HP),ZP=p({},kl,{relatedTarget:0}),Sg=yr(ZP),KP=p({},Qs,{animationName:0,elapsedTime:0,pseudoElement:0}),WP=yr(KP),YP=p({},Qs,{clipboardData:function(o){return"clipboardData"in o?o.clipboardData:window.clipboardData}}),QP=yr(YP),XP=p({},Qs,{data:0}),bw=yr(XP),JP={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},e3={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},t3={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function n3(o){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(o):(o=t3[o])?!!s[o]:!1}function Eg(){return n3}var r3=p({},kl,{key:function(o){if(o.key){var s=JP[o.key]||o.key;if(s!=="Unidentified")return s}return o.type==="keypress"?(o=Vd(o),o===13?"Enter":String.fromCharCode(o)):o.type==="keydown"||o.type==="keyup"?e3[o.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Eg,charCode:function(o){return o.type==="keypress"?Vd(o):0},keyCode:function(o){return o.type==="keydown"||o.type==="keyup"?o.keyCode:0},which:function(o){return o.type==="keypress"?Vd(o):o.type==="keydown"||o.type==="keyup"?o.keyCode:0}}),o3=yr(r3),a3=p({},qd,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ww=yr(a3),s3=p({},kl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Eg}),i3=yr(s3),c3=p({},Qs,{propertyName:0,elapsedTime:0,pseudoElement:0}),l3=yr(c3),u3=p({},qd,{deltaX:function(o){return"deltaX"in o?o.deltaX:"wheelDeltaX"in o?-o.wheelDeltaX:0},deltaY:function(o){return"deltaY"in o?o.deltaY:"wheelDeltaY"in o?-o.wheelDeltaY:"wheelDelta"in o?-o.wheelDelta:0},deltaZ:0,deltaMode:0}),d3=yr(u3),f3=p({},Qs,{newState:0,oldState:0}),h3=yr(f3),p3=[9,13,27,32],Rg=ua&&"CompositionEvent"in window,Ml=null;ua&&"documentMode"in document&&(Ml=document.documentMode);var m3=ua&&"TextEvent"in window&&!Ml,Sw=ua&&(!Rg||Ml&&8<Ml&&11>=Ml),Ew=" ",Rw=!1;function xw(o,s){switch(o){case"keyup":return p3.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Tw(o){return o=o.detail,typeof o=="object"&&"data"in o?o.data:null}var nc=!1;function g3(o,s){switch(o){case"compositionend":return Tw(s);case"keypress":return s.which!==32?null:(Rw=!0,Ew);case"textInput":return o=s.data,o===Ew&&Rw?null:o;default:return null}}function v3(o,s){if(nc)return o==="compositionend"||!Rg&&xw(o,s)?(o=vw(),zd=_g=qa=null,nc=!1,o):null;switch(o){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1<s.char.length)return s.char;if(s.which)return String.fromCharCode(s.which)}return null;case"compositionend":return Sw&&s.locale!=="ko"?null:s.data;default:return null}}var y3={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Ow(o){var s=o&&o.nodeName&&o.nodeName.toLowerCase();return s==="input"?!!y3[o.type]:s==="textarea"}function Cw(o,s,l,h){ec?tc?tc.push(h):tc=[h]:ec=h,s=Pf(s,"onChange"),0<s.length&&(l=new Bd("onChange","change",null,l,h),o.push({event:l,listeners:s}))}var Pl=null,Dl=null;function _3(o){uR(o,0)}function Hd(o){var s=Cl(o);if(lw(s))return o}function Aw(o,s){if(o==="change")return s}var Iw=!1;if(ua){var xg;if(ua){var Tg="oninput"in document;if(!Tg){var kw=document.createElement("div");kw.setAttribute("oninput","return;"),Tg=typeof kw.oninput=="function"}xg=Tg}else xg=!1;Iw=xg&&(!document.documentMode||9<document.documentMode)}function Nw(){Pl&&(Pl.detachEvent("onpropertychange",Mw),Dl=Pl=null)}function Mw(o){if(o.propertyName==="value"&&Hd(Dl)){var s=[];Cw(s,Dl,o,gg(o)),gw(_3,s)}}function b3(o,s,l){o==="focusin"?(Nw(),Pl=s,Dl=l,Pl.attachEvent("onpropertychange",Mw)):o==="focusout"&&Nw()}function w3(o){if(o==="selectionchange"||o==="keyup"||o==="keydown")return Hd(Dl)}function S3(o,s){if(o==="click")return Hd(s)}function E3(o,s){if(o==="input"||o==="change")return Hd(s)}function R3(o,s){return o===s&&(o!==0||1/o===1/s)||o!==o&&s!==s}var Nr=typeof Object.is=="function"?Object.is:R3;function Ll(o,s){if(Nr(o,s))return!0;if(typeof o!="object"||o===null||typeof s!="object"||s===null)return!1;var l=Object.keys(o),h=Object.keys(s);if(l.length!==h.length)return!1;for(h=0;h<l.length;h++){var v=l[h];if(!He.call(s,v)||!Nr(o[v],s[v]))return!1}return!0}function Pw(o){for(;o&&o.firstChild;)o=o.firstChild;return o}function Dw(o,s){var l=Pw(o);o=0;for(var h;l;){if(l.nodeType===3){if(h=o+l.textContent.length,o<=s&&h>=s)return{node:l,offset:s-o};o=h}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Pw(l)}}function Lw(o,s){return o&&s?o===s?!0:o&&o.nodeType===3?!1:s&&s.nodeType===3?Lw(o,s.parentNode):"contains"in o?o.contains(s):o.compareDocumentPosition?!!(o.compareDocumentPosition(s)&16):!1:!1}function jw(o){o=o!=null&&o.ownerDocument!=null&&o.ownerDocument.defaultView!=null?o.ownerDocument.defaultView:window;for(var s=$d(o.document);s instanceof o.HTMLIFrameElement;){try{var l=typeof s.contentWindow.location.href=="string"}catch{l=!1}if(l)o=s.contentWindow;else break;s=$d(o.document)}return s}function Og(o){var s=o&&o.nodeName&&o.nodeName.toLowerCase();return s&&(s==="input"&&(o.type==="text"||o.type==="search"||o.type==="tel"||o.type==="url"||o.type==="password")||s==="textarea"||o.contentEditable==="true")}var x3=ua&&"documentMode"in document&&11>=document.documentMode,rc=null,Cg=null,jl=null,Ag=!1;function $w(o,s,l){var h=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Ag||rc==null||rc!==$d(h)||(h=rc,"selectionStart"in h&&Og(h)?h={start:h.selectionStart,end:h.selectionEnd}:(h=(h.ownerDocument&&h.ownerDocument.defaultView||window).getSelection(),h={anchorNode:h.anchorNode,anchorOffset:h.anchorOffset,focusNode:h.focusNode,focusOffset:h.focusOffset}),jl&&Ll(jl,h)||(jl=h,h=Pf(Cg,"onSelect"),0<h.length&&(s=new Bd("onSelect","select",null,s,l),o.push({event:s,listeners:h}),s.target=rc)))}function Xs(o,s){var l={};return l[o.toLowerCase()]=s.toLowerCase(),l["Webkit"+o]="webkit"+s,l["Moz"+o]="moz"+s,l}var oc={animationend:Xs("Animation","AnimationEnd"),animationiteration:Xs("Animation","AnimationIteration"),animationstart:Xs("Animation","AnimationStart"),transitionrun:Xs("Transition","TransitionRun"),transitionstart:Xs("Transition","TransitionStart"),transitioncancel:Xs("Transition","TransitionCancel"),transitionend:Xs("Transition","TransitionEnd")},Ig={},Uw={};ua&&(Uw=document.createElement("div").style,"AnimationEvent"in window||(delete oc.animationend.animation,delete oc.animationiteration.animation,delete oc.animationstart.animation),"TransitionEvent"in window||delete oc.transitionend.transition);function Js(o){if(Ig[o])return Ig[o];if(!oc[o])return o;var s=oc[o],l;for(l in s)if(s.hasOwnProperty(l)&&l in Uw)return Ig[o]=s[l];return o}var zw=Js("animationend"),Vw=Js("animationiteration"),Fw=Js("animationstart"),T3=Js("transitionrun"),O3=Js("transitionstart"),C3=Js("transitioncancel"),Bw=Js("transitionend"),qw=new Map,kg="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");kg.push("scrollEnd");function So(o,s){qw.set(o,s),Ys(s,[o])}var Gd=typeof reportError=="function"?reportError:function(o){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var s=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof o=="object"&&o!==null&&typeof o.message=="string"?String(o.message):String(o),error:o});if(!window.dispatchEvent(s))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",o);return}console.error(o)},Jr=[],ac=0,Ng=0;function Zd(){for(var o=ac,s=Ng=ac=0;s<o;){var l=Jr[s];Jr[s++]=null;var h=Jr[s];Jr[s++]=null;var v=Jr[s];Jr[s++]=null;var _=Jr[s];if(Jr[s++]=null,h!==null&&v!==null){var k=h.pending;k===null?v.next=v:(v.next=k.next,k.next=v),h.pending=v}_!==0&&Hw(l,v,_)}}function Kd(o,s,l,h){Jr[ac++]=o,Jr[ac++]=s,Jr[ac++]=l,Jr[ac++]=h,Ng|=h,o.lanes|=h,o=o.alternate,o!==null&&(o.lanes|=h)}function Mg(o,s,l,h){return Kd(o,s,l,h),Wd(o)}function ei(o,s){return Kd(o,null,null,s),Wd(o)}function Hw(o,s,l){o.lanes|=l;var h=o.alternate;h!==null&&(h.lanes|=l);for(var v=!1,_=o.return;_!==null;)_.childLanes|=l,h=_.alternate,h!==null&&(h.childLanes|=l),_.tag===22&&(o=_.stateNode,o===null||o._visibility&1||(v=!0)),o=_,_=_.return;return o.tag===3?(_=o.stateNode,v&&s!==null&&(v=31-kn(l),o=_.hiddenUpdates,h=o[v],h===null?o[v]=[s]:h.push(s),s.lane=l|536870912),_):null}function Wd(o){if(50<au)throw au=0,Fv=null,Error(r(185));for(var s=o.return;s!==null;)o=s,s=o.return;return o.tag===3?o.stateNode:null}var sc={};function A3(o,s,l,h){this.tag=o,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=h,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Mr(o,s,l,h){return new A3(o,s,l,h)}function Pg(o){return o=o.prototype,!(!o||!o.isReactComponent)}function da(o,s){var l=o.alternate;return l===null?(l=Mr(o.tag,s,o.key,o.mode),l.elementType=o.elementType,l.type=o.type,l.stateNode=o.stateNode,l.alternate=o,o.alternate=l):(l.pendingProps=s,l.type=o.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=o.flags&65011712,l.childLanes=o.childLanes,l.lanes=o.lanes,l.child=o.child,l.memoizedProps=o.memoizedProps,l.memoizedState=o.memoizedState,l.updateQueue=o.updateQueue,s=o.dependencies,l.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},l.sibling=o.sibling,l.index=o.index,l.ref=o.ref,l.refCleanup=o.refCleanup,l}function Gw(o,s){o.flags&=65011714;var l=o.alternate;return l===null?(o.childLanes=0,o.lanes=s,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=l.childLanes,o.lanes=l.lanes,o.child=l.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=l.memoizedProps,o.memoizedState=l.memoizedState,o.updateQueue=l.updateQueue,o.type=l.type,s=l.dependencies,o.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext}),o}function Yd(o,s,l,h,v,_){var k=0;if(h=o,typeof o=="function")Pg(o)&&(k=1);else if(typeof o=="string")k=P5(o,l,L.current)?26:o==="html"||o==="head"||o==="body"?27:5;else e:switch(o){case z:return o=Mr(31,l,s,v),o.elementType=z,o.lanes=_,o;case S:return ti(l.children,v,_,s);case b:k=8,v|=24;break;case R:return o=Mr(12,l,s,v|2),o.elementType=R,o.lanes=_,o;case C:return o=Mr(13,l,s,v),o.elementType=C,o.lanes=_,o;case I:return o=Mr(19,l,s,v),o.elementType=I,o.lanes=_,o;default:if(typeof o=="object"&&o!==null)switch(o.$$typeof){case T:k=10;break e;case E:k=9;break e;case O:k=11;break e;case N:k=14;break e;case D:k=16,h=null;break e}k=29,l=Error(r(130,o===null?"null":typeof o,"")),h=null}return s=Mr(k,l,s,v),s.elementType=o,s.type=h,s.lanes=_,s}function ti(o,s,l,h){return o=Mr(7,o,h,s),o.lanes=l,o}function Dg(o,s,l){return o=Mr(6,o,null,s),o.lanes=l,o}function Zw(o){var s=Mr(18,null,null,0);return s.stateNode=o,s}function Lg(o,s,l){return s=Mr(4,o.children!==null?o.children:[],o.key,s),s.lanes=l,s.stateNode={containerInfo:o.containerInfo,pendingChildren:null,implementation:o.implementation},s}var Kw=new WeakMap;function eo(o,s){if(typeof o=="object"&&o!==null){var l=Kw.get(o);return l!==void 0?l:(s={value:o,source:s,stack:Ye(s)},Kw.set(o,s),s)}return{value:o,source:s,stack:Ye(s)}}var ic=[],cc=0,Qd=null,$l=0,to=[],no=0,Ha=null,Bo=1,qo="";function fa(o,s){ic[cc++]=$l,ic[cc++]=Qd,Qd=o,$l=s}function Ww(o,s,l){to[no++]=Bo,to[no++]=qo,to[no++]=Ha,Ha=o;var h=Bo;o=qo;var v=32-kn(h)-1;h&=~(1<<v),l+=1;var _=32-kn(s)+v;if(30<_){var k=v-v%5;_=(h&(1<<k)-1).toString(32),h>>=k,v-=k,Bo=1<<32-kn(s)+v|l<<v|h,qo=_+o}else Bo=1<<_|l<<v|h,qo=o}function jg(o){o.return!==null&&(fa(o,1),Ww(o,1,0))}function $g(o){for(;o===Qd;)Qd=ic[--cc],ic[cc]=null,$l=ic[--cc],ic[cc]=null;for(;o===Ha;)Ha=to[--no],to[no]=null,qo=to[--no],to[no]=null,Bo=to[--no],to[no]=null}function Yw(o,s){to[no++]=Bo,to[no++]=qo,to[no++]=Ha,Bo=s.id,qo=s.overflow,Ha=o}var Fn=null,Zt=null,Et=!1,Ga=null,ro=!1,Ug=Error(r(519));function Za(o){var s=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ul(eo(s,o)),Ug}function Qw(o){var s=o.stateNode,l=o.type,h=o.memoizedProps;switch(s[Vn]=o,s[vr]=h,l){case"dialog":yt("cancel",s),yt("close",s);break;case"iframe":case"object":case"embed":yt("load",s);break;case"video":case"audio":for(l=0;l<iu.length;l++)yt(iu[l],s);break;case"source":yt("error",s);break;case"img":case"image":case"link":yt("error",s),yt("load",s);break;case"details":yt("toggle",s);break;case"input":yt("invalid",s),uw(s,h.value,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name,!0);break;case"select":yt("invalid",s);break;case"textarea":yt("invalid",s),fw(s,h.value,h.defaultValue,h.children)}l=h.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||s.textContent===""+l||h.suppressHydrationWarning===!0||pR(s.textContent,l)?(h.popover!=null&&(yt("beforetoggle",s),yt("toggle",s)),h.onScroll!=null&&yt("scroll",s),h.onScrollEnd!=null&&yt("scrollend",s),h.onClick!=null&&(s.onclick=la),s=!0):s=!1,s||Za(o,!0)}function Xw(o){for(Fn=o.return;Fn;)switch(Fn.tag){case 5:case 31:case 13:ro=!1;return;case 27:case 3:ro=!0;return;default:Fn=Fn.return}}function lc(o){if(o!==Fn)return!1;if(!Et)return Xw(o),Et=!0,!1;var s=o.tag,l;if((l=s!==3&&s!==27)&&((l=s===5)&&(l=o.type,l=!(l!=="form"&&l!=="button")||ry(o.type,o.memoizedProps)),l=!l),l&&Zt&&Za(o),Xw(o),s===13){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));Zt=ER(o)}else if(s===31){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));Zt=ER(o)}else s===27?(s=Zt,is(o.type)?(o=cy,cy=null,Zt=o):Zt=s):Zt=Fn?ao(o.stateNode.nextSibling):null;return!0}function ni(){Zt=Fn=null,Et=!1}function zg(){var o=Ga;return o!==null&&(Sr===null?Sr=o:Sr.push.apply(Sr,o),Ga=null),o}function Ul(o){Ga===null?Ga=[o]:Ga.push(o)}var Vg=P(null),ri=null,ha=null;function Ka(o,s,l){B(Vg,s._currentValue),s._currentValue=l}function pa(o){o._currentValue=Vg.current,q(Vg)}function Fg(o,s,l){for(;o!==null;){var h=o.alternate;if((o.childLanes&s)!==s?(o.childLanes|=s,h!==null&&(h.childLanes|=s)):h!==null&&(h.childLanes&s)!==s&&(h.childLanes|=s),o===l)break;o=o.return}}function Bg(o,s,l,h){var v=o.child;for(v!==null&&(v.return=o);v!==null;){var _=v.dependencies;if(_!==null){var k=v.child;_=_.firstContext;e:for(;_!==null;){var j=_;_=v;for(var Y=0;Y<s.length;Y++)if(j.context===s[Y]){_.lanes|=l,j=_.alternate,j!==null&&(j.lanes|=l),Fg(_.return,l,o),h||(k=null);break e}_=j.next}}else if(v.tag===18){if(k=v.return,k===null)throw Error(r(341));k.lanes|=l,_=k.alternate,_!==null&&(_.lanes|=l),Fg(k,l,o),k=null}else k=v.child;if(k!==null)k.return=v;else for(k=v;k!==null;){if(k===o){k=null;break}if(v=k.sibling,v!==null){v.return=k.return,k=v;break}k=k.return}v=k}}function uc(o,s,l,h){o=null;for(var v=s,_=!1;v!==null;){if(!_){if((v.flags&524288)!==0)_=!0;else if((v.flags&262144)!==0)break}if(v.tag===10){var k=v.alternate;if(k===null)throw Error(r(387));if(k=k.memoizedProps,k!==null){var j=v.type;Nr(v.pendingProps.value,k.value)||(o!==null?o.push(j):o=[j])}}else if(v===me.current){if(k=v.alternate,k===null)throw Error(r(387));k.memoizedState.memoizedState!==v.memoizedState.memoizedState&&(o!==null?o.push(fu):o=[fu])}v=v.return}o!==null&&Bg(s,o,l,h),s.flags|=262144}function Xd(o){for(o=o.firstContext;o!==null;){if(!Nr(o.context._currentValue,o.memoizedValue))return!0;o=o.next}return!1}function oi(o){ri=o,ha=null,o=o.dependencies,o!==null&&(o.firstContext=null)}function Bn(o){return Jw(ri,o)}function Jd(o,s){return ri===null&&oi(o),Jw(o,s)}function Jw(o,s){var l=s._currentValue;if(s={context:s,memoizedValue:l,next:null},ha===null){if(o===null)throw Error(r(308));ha=s,o.dependencies={lanes:0,firstContext:s},o.flags|=524288}else ha=ha.next=s;return l}var I3=typeof AbortController<"u"?AbortController:function(){var o=[],s=this.signal={aborted:!1,addEventListener:function(l,h){o.push(h)}};this.abort=function(){s.aborted=!0,o.forEach(function(l){return l()})}},k3=e.unstable_scheduleCallback,N3=e.unstable_NormalPriority,pn={$$typeof:T,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function qg(){return{controller:new I3,data:new Map,refCount:0}}function zl(o){o.refCount--,o.refCount===0&&k3(N3,function(){o.controller.abort()})}var Vl=null,Hg=0,dc=0,fc=null;function M3(o,s){if(Vl===null){var l=Vl=[];Hg=0,dc=Kv(),fc={status:"pending",value:void 0,then:function(h){l.push(h)}}}return Hg++,s.then(eS,eS),s}function eS(){if(--Hg===0&&Vl!==null){fc!==null&&(fc.status="fulfilled");var o=Vl;Vl=null,dc=0,fc=null;for(var s=0;s<o.length;s++)(0,o[s])()}}function P3(o,s){var l=[],h={status:"pending",value:null,reason:null,then:function(v){l.push(v)}};return o.then(function(){h.status="fulfilled",h.value=s;for(var v=0;v<l.length;v++)(0,l[v])(s)},function(v){for(h.status="rejected",h.reason=v,v=0;v<l.length;v++)(0,l[v])(void 0)}),h}var tS=F.S;F.S=function(o,s){$E=Se(),typeof s=="object"&&s!==null&&typeof s.then=="function"&&M3(o,s),tS!==null&&tS(o,s)};var ai=P(null);function Gg(){var o=ai.current;return o!==null?o:qt.pooledCache}function ef(o,s){s===null?B(ai,ai.current):B(ai,s.pool)}function nS(){var o=Gg();return o===null?null:{parent:pn._currentValue,pool:o}}var hc=Error(r(460)),Zg=Error(r(474)),tf=Error(r(542)),nf={then:function(){}};function rS(o){return o=o.status,o==="fulfilled"||o==="rejected"}function oS(o,s,l){switch(l=o[l],l===void 0?o.push(s):l!==s&&(s.then(la,la),s=l),s.status){case"fulfilled":return s.value;case"rejected":throw o=s.reason,sS(o),o;default:if(typeof s.status=="string")s.then(la,la);else{if(o=qt,o!==null&&100<o.shellSuspendCounter)throw Error(r(482));o=s,o.status="pending",o.then(function(h){if(s.status==="pending"){var v=s;v.status="fulfilled",v.value=h}},function(h){if(s.status==="pending"){var v=s;v.status="rejected",v.reason=h}})}switch(s.status){case"fulfilled":return s.value;case"rejected":throw o=s.reason,sS(o),o}throw ii=s,hc}}function si(o){try{var s=o._init;return s(o._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(ii=l,hc):l}}var ii=null;function aS(){if(ii===null)throw Error(r(459));var o=ii;return ii=null,o}function sS(o){if(o===hc||o===tf)throw Error(r(483))}var pc=null,Fl=0;function rf(o){var s=Fl;return Fl+=1,pc===null&&(pc=[]),oS(pc,o,s)}function Bl(o,s){s=s.props.ref,o.ref=s!==void 0?s:null}function of(o,s){throw s.$$typeof===g?Error(r(525)):(o=Object.prototype.toString.call(s),Error(r(31,o==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":o)))}function iS(o){function s(se,ee){if(o){var ue=se.deletions;ue===null?(se.deletions=[ee],se.flags|=16):ue.push(ee)}}function l(se,ee){if(!o)return null;for(;ee!==null;)s(se,ee),ee=ee.sibling;return null}function h(se){for(var ee=new Map;se!==null;)se.key!==null?ee.set(se.key,se):ee.set(se.index,se),se=se.sibling;return ee}function v(se,ee){return se=da(se,ee),se.index=0,se.sibling=null,se}function _(se,ee,ue){return se.index=ue,o?(ue=se.alternate,ue!==null?(ue=ue.index,ue<ee?(se.flags|=67108866,ee):ue):(se.flags|=67108866,ee)):(se.flags|=1048576,ee)}function k(se){return o&&se.alternate===null&&(se.flags|=67108866),se}function j(se,ee,ue,Ee){return ee===null||ee.tag!==6?(ee=Dg(ue,se.mode,Ee),ee.return=se,ee):(ee=v(ee,ue),ee.return=se,ee)}function Y(se,ee,ue,Ee){var Ge=ue.type;return Ge===S?we(se,ee,ue.props.children,Ee,ue.key):ee!==null&&(ee.elementType===Ge||typeof Ge=="object"&&Ge!==null&&Ge.$$typeof===D&&si(Ge)===ee.type)?(ee=v(ee,ue.props),Bl(ee,ue),ee.return=se,ee):(ee=Yd(ue.type,ue.key,ue.props,null,se.mode,Ee),Bl(ee,ue),ee.return=se,ee)}function de(se,ee,ue,Ee){return ee===null||ee.tag!==4||ee.stateNode.containerInfo!==ue.containerInfo||ee.stateNode.implementation!==ue.implementation?(ee=Lg(ue,se.mode,Ee),ee.return=se,ee):(ee=v(ee,ue.children||[]),ee.return=se,ee)}function we(se,ee,ue,Ee,Ge){return ee===null||ee.tag!==7?(ee=ti(ue,se.mode,Ee,Ge),ee.return=se,ee):(ee=v(ee,ue),ee.return=se,ee)}function xe(se,ee,ue){if(typeof ee=="string"&&ee!==""||typeof ee=="number"||typeof ee=="bigint")return ee=Dg(""+ee,se.mode,ue),ee.return=se,ee;if(typeof ee=="object"&&ee!==null){switch(ee.$$typeof){case y:return ue=Yd(ee.type,ee.key,ee.props,null,se.mode,ue),Bl(ue,ee),ue.return=se,ue;case w:return ee=Lg(ee,se.mode,ue),ee.return=se,ee;case D:return ee=si(ee),xe(se,ee,ue)}if(ie(ee)||G(ee))return ee=ti(ee,se.mode,ue,null),ee.return=se,ee;if(typeof ee.then=="function")return xe(se,rf(ee),ue);if(ee.$$typeof===T)return xe(se,Jd(se,ee),ue);of(se,ee)}return null}function he(se,ee,ue,Ee){var Ge=ee!==null?ee.key:null;if(typeof ue=="string"&&ue!==""||typeof ue=="number"||typeof ue=="bigint")return Ge!==null?null:j(se,ee,""+ue,Ee);if(typeof ue=="object"&&ue!==null){switch(ue.$$typeof){case y:return ue.key===Ge?Y(se,ee,ue,Ee):null;case w:return ue.key===Ge?de(se,ee,ue,Ee):null;case D:return ue=si(ue),he(se,ee,ue,Ee)}if(ie(ue)||G(ue))return Ge!==null?null:we(se,ee,ue,Ee,null);if(typeof ue.then=="function")return he(se,ee,rf(ue),Ee);if(ue.$$typeof===T)return he(se,ee,Jd(se,ue),Ee);of(se,ue)}return null}function ge(se,ee,ue,Ee,Ge){if(typeof Ee=="string"&&Ee!==""||typeof Ee=="number"||typeof Ee=="bigint")return se=se.get(ue)||null,j(ee,se,""+Ee,Ge);if(typeof Ee=="object"&&Ee!==null){switch(Ee.$$typeof){case y:return se=se.get(Ee.key===null?ue:Ee.key)||null,Y(ee,se,Ee,Ge);case w:return se=se.get(Ee.key===null?ue:Ee.key)||null,de(ee,se,Ee,Ge);case D:return Ee=si(Ee),ge(se,ee,ue,Ee,Ge)}if(ie(Ee)||G(Ee))return se=se.get(ue)||null,we(ee,se,Ee,Ge,null);if(typeof Ee.then=="function")return ge(se,ee,ue,rf(Ee),Ge);if(Ee.$$typeof===T)return ge(se,ee,ue,Jd(ee,Ee),Ge);of(ee,Ee)}return null}function Ue(se,ee,ue,Ee){for(var Ge=null,At=null,Be=ee,it=ee=0,St=null;Be!==null&&it<ue.length;it++){Be.index>it?(St=Be,Be=null):St=Be.sibling;var It=he(se,Be,ue[it],Ee);if(It===null){Be===null&&(Be=St);break}o&&Be&&It.alternate===null&&s(se,Be),ee=_(It,ee,it),At===null?Ge=It:At.sibling=It,At=It,Be=St}if(it===ue.length)return l(se,Be),Et&&fa(se,it),Ge;if(Be===null){for(;it<ue.length;it++)Be=xe(se,ue[it],Ee),Be!==null&&(ee=_(Be,ee,it),At===null?Ge=Be:At.sibling=Be,At=Be);return Et&&fa(se,it),Ge}for(Be=h(Be);it<ue.length;it++)St=ge(Be,se,it,ue[it],Ee),St!==null&&(o&&St.alternate!==null&&Be.delete(St.key===null?it:St.key),ee=_(St,ee,it),At===null?Ge=St:At.sibling=St,At=St);return o&&Be.forEach(function(fs){return s(se,fs)}),Et&&fa(se,it),Ge}function Ze(se,ee,ue,Ee){if(ue==null)throw Error(r(151));for(var Ge=null,At=null,Be=ee,it=ee=0,St=null,It=ue.next();Be!==null&&!It.done;it++,It=ue.next()){Be.index>it?(St=Be,Be=null):St=Be.sibling;var fs=he(se,Be,It.value,Ee);if(fs===null){Be===null&&(Be=St);break}o&&Be&&fs.alternate===null&&s(se,Be),ee=_(fs,ee,it),At===null?Ge=fs:At.sibling=fs,At=fs,Be=St}if(It.done)return l(se,Be),Et&&fa(se,it),Ge;if(Be===null){for(;!It.done;it++,It=ue.next())It=xe(se,It.value,Ee),It!==null&&(ee=_(It,ee,it),At===null?Ge=It:At.sibling=It,At=It);return Et&&fa(se,it),Ge}for(Be=h(Be);!It.done;it++,It=ue.next())It=ge(Be,se,it,It.value,Ee),It!==null&&(o&&It.alternate!==null&&Be.delete(It.key===null?it:It.key),ee=_(It,ee,it),At===null?Ge=It:At.sibling=It,At=It);return o&&Be.forEach(function(H5){return s(se,H5)}),Et&&fa(se,it),Ge}function Ft(se,ee,ue,Ee){if(typeof ue=="object"&&ue!==null&&ue.type===S&&ue.key===null&&(ue=ue.props.children),typeof ue=="object"&&ue!==null){switch(ue.$$typeof){case y:e:{for(var Ge=ue.key;ee!==null;){if(ee.key===Ge){if(Ge=ue.type,Ge===S){if(ee.tag===7){l(se,ee.sibling),Ee=v(ee,ue.props.children),Ee.return=se,se=Ee;break e}}else if(ee.elementType===Ge||typeof Ge=="object"&&Ge!==null&&Ge.$$typeof===D&&si(Ge)===ee.type){l(se,ee.sibling),Ee=v(ee,ue.props),Bl(Ee,ue),Ee.return=se,se=Ee;break e}l(se,ee);break}else s(se,ee);ee=ee.sibling}ue.type===S?(Ee=ti(ue.props.children,se.mode,Ee,ue.key),Ee.return=se,se=Ee):(Ee=Yd(ue.type,ue.key,ue.props,null,se.mode,Ee),Bl(Ee,ue),Ee.return=se,se=Ee)}return k(se);case w:e:{for(Ge=ue.key;ee!==null;){if(ee.key===Ge)if(ee.tag===4&&ee.stateNode.containerInfo===ue.containerInfo&&ee.stateNode.implementation===ue.implementation){l(se,ee.sibling),Ee=v(ee,ue.children||[]),Ee.return=se,se=Ee;break e}else{l(se,ee);break}else s(se,ee);ee=ee.sibling}Ee=Lg(ue,se.mode,Ee),Ee.return=se,se=Ee}return k(se);case D:return ue=si(ue),Ft(se,ee,ue,Ee)}if(ie(ue))return Ue(se,ee,ue,Ee);if(G(ue)){if(Ge=G(ue),typeof Ge!="function")throw Error(r(150));return ue=Ge.call(ue),Ze(se,ee,ue,Ee)}if(typeof ue.then=="function")return Ft(se,ee,rf(ue),Ee);if(ue.$$typeof===T)return Ft(se,ee,Jd(se,ue),Ee);of(se,ue)}return typeof ue=="string"&&ue!==""||typeof ue=="number"||typeof ue=="bigint"?(ue=""+ue,ee!==null&&ee.tag===6?(l(se,ee.sibling),Ee=v(ee,ue),Ee.return=se,se=Ee):(l(se,ee),Ee=Dg(ue,se.mode,Ee),Ee.return=se,se=Ee),k(se)):l(se,ee)}return function(se,ee,ue,Ee){try{Fl=0;var Ge=Ft(se,ee,ue,Ee);return pc=null,Ge}catch(Be){if(Be===hc||Be===tf)throw Be;var At=Mr(29,Be,null,se.mode);return At.lanes=Ee,At.return=se,At}}}var ci=iS(!0),cS=iS(!1),Wa=!1;function Kg(o){o.updateQueue={baseState:o.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Wg(o,s){o=o.updateQueue,s.updateQueue===o&&(s.updateQueue={baseState:o.baseState,firstBaseUpdate:o.firstBaseUpdate,lastBaseUpdate:o.lastBaseUpdate,shared:o.shared,callbacks:null})}function Ya(o){return{lane:o,tag:0,payload:null,callback:null,next:null}}function Qa(o,s,l){var h=o.updateQueue;if(h===null)return null;if(h=h.shared,(Nt&2)!==0){var v=h.pending;return v===null?s.next=s:(s.next=v.next,v.next=s),h.pending=s,s=Wd(o),Hw(o,null,l),s}return Kd(o,h,s,l),Wd(o)}function ql(o,s,l){if(s=s.updateQueue,s!==null&&(s=s.shared,(l&4194048)!==0)){var h=s.lanes;h&=o.pendingLanes,l|=h,s.lanes=l,mr(o,l)}}function Yg(o,s){var l=o.updateQueue,h=o.alternate;if(h!==null&&(h=h.updateQueue,l===h)){var v=null,_=null;if(l=l.firstBaseUpdate,l!==null){do{var k={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};_===null?v=_=k:_=_.next=k,l=l.next}while(l!==null);_===null?v=_=s:_=_.next=s}else v=_=s;l={baseState:h.baseState,firstBaseUpdate:v,lastBaseUpdate:_,shared:h.shared,callbacks:h.callbacks},o.updateQueue=l;return}o=l.lastBaseUpdate,o===null?l.firstBaseUpdate=s:o.next=s,l.lastBaseUpdate=s}var Qg=!1;function Hl(){if(Qg){var o=fc;if(o!==null)throw o}}function Gl(o,s,l,h){Qg=!1;var v=o.updateQueue;Wa=!1;var _=v.firstBaseUpdate,k=v.lastBaseUpdate,j=v.shared.pending;if(j!==null){v.shared.pending=null;var Y=j,de=Y.next;Y.next=null,k===null?_=de:k.next=de,k=Y;var we=o.alternate;we!==null&&(we=we.updateQueue,j=we.lastBaseUpdate,j!==k&&(j===null?we.firstBaseUpdate=de:j.next=de,we.lastBaseUpdate=Y))}if(_!==null){var xe=v.baseState;k=0,we=de=Y=null,j=_;do{var he=j.lane&-536870913,ge=he!==j.lane;if(ge?(wt&he)===he:(h&he)===he){he!==0&&he===dc&&(Qg=!0),we!==null&&(we=we.next={lane:0,tag:j.tag,payload:j.payload,callback:null,next:null});e:{var Ue=o,Ze=j;he=s;var Ft=l;switch(Ze.tag){case 1:if(Ue=Ze.payload,typeof Ue=="function"){xe=Ue.call(Ft,xe,he);break e}xe=Ue;break e;case 3:Ue.flags=Ue.flags&-65537|128;case 0:if(Ue=Ze.payload,he=typeof Ue=="function"?Ue.call(Ft,xe,he):Ue,he==null)break e;xe=p({},xe,he);break e;case 2:Wa=!0}}he=j.callback,he!==null&&(o.flags|=64,ge&&(o.flags|=8192),ge=v.callbacks,ge===null?v.callbacks=[he]:ge.push(he))}else ge={lane:he,tag:j.tag,payload:j.payload,callback:j.callback,next:null},we===null?(de=we=ge,Y=xe):we=we.next=ge,k|=he;if(j=j.next,j===null){if(j=v.shared.pending,j===null)break;ge=j,j=ge.next,ge.next=null,v.lastBaseUpdate=ge,v.shared.pending=null}}while(!0);we===null&&(Y=xe),v.baseState=Y,v.firstBaseUpdate=de,v.lastBaseUpdate=we,_===null&&(v.shared.lanes=0),ns|=k,o.lanes=k,o.memoizedState=xe}}function lS(o,s){if(typeof o!="function")throw Error(r(191,o));o.call(s)}function uS(o,s){var l=o.callbacks;if(l!==null)for(o.callbacks=null,o=0;o<l.length;o++)lS(l[o],s)}var mc=P(null),af=P(0);function dS(o,s){o=Ea,B(af,o),B(mc,s),Ea=o|s.baseLanes}function Xg(){B(af,Ea),B(mc,mc.current)}function Jg(){Ea=af.current,q(mc),q(af)}var Pr=P(null),oo=null;function Xa(o){var s=o.alternate;B(cn,cn.current&1),B(Pr,o),oo===null&&(s===null||mc.current!==null||s.memoizedState!==null)&&(oo=o)}function ev(o){B(cn,cn.current),B(Pr,o),oo===null&&(oo=o)}function fS(o){o.tag===22?(B(cn,cn.current),B(Pr,o),oo===null&&(oo=o)):Ja()}function Ja(){B(cn,cn.current),B(Pr,Pr.current)}function Dr(o){q(Pr),oo===o&&(oo=null),q(cn)}var cn=P(0);function sf(o){for(var s=o;s!==null;){if(s.tag===13){var l=s.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||sy(l)||iy(l)))return s}else if(s.tag===19&&(s.memoizedProps.revealOrder==="forwards"||s.memoizedProps.revealOrder==="backwards"||s.memoizedProps.revealOrder==="unstable_legacy-backwards"||s.memoizedProps.revealOrder==="together")){if((s.flags&128)!==0)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===o)break;for(;s.sibling===null;){if(s.return===null||s.return===o)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var ma=0,at=null,zt=null,mn=null,cf=!1,gc=!1,li=!1,lf=0,Zl=0,vc=null,D3=0;function on(){throw Error(r(321))}function tv(o,s){if(s===null)return!1;for(var l=0;l<s.length&&l<o.length;l++)if(!Nr(o[l],s[l]))return!1;return!0}function nv(o,s,l,h,v,_){return ma=_,at=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,F.H=o===null||o.memoizedState===null?WS:vv,li=!1,_=l(h,v),li=!1,gc&&(_=pS(s,l,h,v)),hS(o),_}function hS(o){F.H=Yl;var s=zt!==null&&zt.next!==null;if(ma=0,mn=zt=at=null,cf=!1,Zl=0,vc=null,s)throw Error(r(300));o===null||gn||(o=o.dependencies,o!==null&&Xd(o)&&(gn=!0))}function pS(o,s,l,h){at=o;var v=0;do{if(gc&&(vc=null),Zl=0,gc=!1,25<=v)throw Error(r(301));if(v+=1,mn=zt=null,o.updateQueue!=null){var _=o.updateQueue;_.lastEffect=null,_.events=null,_.stores=null,_.memoCache!=null&&(_.memoCache.index=0)}F.H=YS,_=s(l,h)}while(gc);return _}function L3(){var o=F.H,s=o.useState()[0];return s=typeof s.then=="function"?Kl(s):s,o=o.useState()[0],(zt!==null?zt.memoizedState:null)!==o&&(at.flags|=1024),s}function rv(){var o=lf!==0;return lf=0,o}function ov(o,s,l){s.updateQueue=o.updateQueue,s.flags&=-2053,o.lanes&=~l}function av(o){if(cf){for(o=o.memoizedState;o!==null;){var s=o.queue;s!==null&&(s.pending=null),o=o.next}cf=!1}ma=0,mn=zt=at=null,gc=!1,Zl=lf=0,vc=null}function ir(){var o={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return mn===null?at.memoizedState=mn=o:mn=mn.next=o,mn}function ln(){if(zt===null){var o=at.alternate;o=o!==null?o.memoizedState:null}else o=zt.next;var s=mn===null?at.memoizedState:mn.next;if(s!==null)mn=s,zt=o;else{if(o===null)throw at.alternate===null?Error(r(467)):Error(r(310));zt=o,o={memoizedState:zt.memoizedState,baseState:zt.baseState,baseQueue:zt.baseQueue,queue:zt.queue,next:null},mn===null?at.memoizedState=mn=o:mn=mn.next=o}return mn}function uf(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Kl(o){var s=Zl;return Zl+=1,vc===null&&(vc=[]),o=oS(vc,o,s),s=at,(mn===null?s.memoizedState:mn.next)===null&&(s=s.alternate,F.H=s===null||s.memoizedState===null?WS:vv),o}function df(o){if(o!==null&&typeof o=="object"){if(typeof o.then=="function")return Kl(o);if(o.$$typeof===T)return Bn(o)}throw Error(r(438,String(o)))}function sv(o){var s=null,l=at.updateQueue;if(l!==null&&(s=l.memoCache),s==null){var h=at.alternate;h!==null&&(h=h.updateQueue,h!==null&&(h=h.memoCache,h!=null&&(s={data:h.data.map(function(v){return v.slice()}),index:0})))}if(s==null&&(s={data:[],index:0}),l===null&&(l=uf(),at.updateQueue=l),l.memoCache=s,l=s.data[s.index],l===void 0)for(l=s.data[s.index]=Array(o),h=0;h<o;h++)l[h]=W;return s.index++,l}function ga(o,s){return typeof s=="function"?s(o):s}function ff(o){var s=ln();return iv(s,zt,o)}function iv(o,s,l){var h=o.queue;if(h===null)throw Error(r(311));h.lastRenderedReducer=l;var v=o.baseQueue,_=h.pending;if(_!==null){if(v!==null){var k=v.next;v.next=_.next,_.next=k}s.baseQueue=v=_,h.pending=null}if(_=o.baseState,v===null)o.memoizedState=_;else{s=v.next;var j=k=null,Y=null,de=s,we=!1;do{var xe=de.lane&-536870913;if(xe!==de.lane?(wt&xe)===xe:(ma&xe)===xe){var he=de.revertLane;if(he===0)Y!==null&&(Y=Y.next={lane:0,revertLane:0,gesture:null,action:de.action,hasEagerState:de.hasEagerState,eagerState:de.eagerState,next:null}),xe===dc&&(we=!0);else if((ma&he)===he){de=de.next,he===dc&&(we=!0);continue}else xe={lane:0,revertLane:de.revertLane,gesture:null,action:de.action,hasEagerState:de.hasEagerState,eagerState:de.eagerState,next:null},Y===null?(j=Y=xe,k=_):Y=Y.next=xe,at.lanes|=he,ns|=he;xe=de.action,li&&l(_,xe),_=de.hasEagerState?de.eagerState:l(_,xe)}else he={lane:xe,revertLane:de.revertLane,gesture:de.gesture,action:de.action,hasEagerState:de.hasEagerState,eagerState:de.eagerState,next:null},Y===null?(j=Y=he,k=_):Y=Y.next=he,at.lanes|=xe,ns|=xe;de=de.next}while(de!==null&&de!==s);if(Y===null?k=_:Y.next=j,!Nr(_,o.memoizedState)&&(gn=!0,we&&(l=fc,l!==null)))throw l;o.memoizedState=_,o.baseState=k,o.baseQueue=Y,h.lastRenderedState=_}return v===null&&(h.lanes=0),[o.memoizedState,h.dispatch]}function cv(o){var s=ln(),l=s.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=o;var h=l.dispatch,v=l.pending,_=s.memoizedState;if(v!==null){l.pending=null;var k=v=v.next;do _=o(_,k.action),k=k.next;while(k!==v);Nr(_,s.memoizedState)||(gn=!0),s.memoizedState=_,s.baseQueue===null&&(s.baseState=_),l.lastRenderedState=_}return[_,h]}function mS(o,s,l){var h=at,v=ln(),_=Et;if(_){if(l===void 0)throw Error(r(407));l=l()}else l=s();var k=!Nr((zt||v).memoizedState,l);if(k&&(v.memoizedState=l,gn=!0),v=v.queue,dv(yS.bind(null,h,v,o),[o]),v.getSnapshot!==s||k||mn!==null&&mn.memoizedState.tag&1){if(h.flags|=2048,yc(9,{destroy:void 0},vS.bind(null,h,v,l,s),null),qt===null)throw Error(r(349));_||(ma&127)!==0||gS(h,s,l)}return l}function gS(o,s,l){o.flags|=16384,o={getSnapshot:s,value:l},s=at.updateQueue,s===null?(s=uf(),at.updateQueue=s,s.stores=[o]):(l=s.stores,l===null?s.stores=[o]:l.push(o))}function vS(o,s,l,h){s.value=l,s.getSnapshot=h,_S(s)&&bS(o)}function yS(o,s,l){return l(function(){_S(s)&&bS(o)})}function _S(o){var s=o.getSnapshot;o=o.value;try{var l=s();return!Nr(o,l)}catch{return!0}}function bS(o){var s=ei(o,2);s!==null&&Er(s,o,2)}function lv(o){var s=ir();if(typeof o=="function"){var l=o;if(o=l(),li){zn(!0);try{l()}finally{zn(!1)}}}return s.memoizedState=s.baseState=o,s.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ga,lastRenderedState:o},s}function wS(o,s,l,h){return o.baseState=l,iv(o,zt,typeof h=="function"?h:ga)}function j3(o,s,l,h,v){if(mf(o))throw Error(r(485));if(o=s.action,o!==null){var _={payload:v,action:o,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(k){_.listeners.push(k)}};F.T!==null?l(!0):_.isTransition=!1,h(_),l=s.pending,l===null?(_.next=s.pending=_,SS(s,_)):(_.next=l.next,s.pending=l.next=_)}}function SS(o,s){var l=s.action,h=s.payload,v=o.state;if(s.isTransition){var _=F.T,k={};F.T=k;try{var j=l(v,h),Y=F.S;Y!==null&&Y(k,j),ES(o,s,j)}catch(de){uv(o,s,de)}finally{_!==null&&k.types!==null&&(_.types=k.types),F.T=_}}else try{_=l(v,h),ES(o,s,_)}catch(de){uv(o,s,de)}}function ES(o,s,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(h){RS(o,s,h)},function(h){return uv(o,s,h)}):RS(o,s,l)}function RS(o,s,l){s.status="fulfilled",s.value=l,xS(s),o.state=l,s=o.pending,s!==null&&(l=s.next,l===s?o.pending=null:(l=l.next,s.next=l,SS(o,l)))}function uv(o,s,l){var h=o.pending;if(o.pending=null,h!==null){h=h.next;do s.status="rejected",s.reason=l,xS(s),s=s.next;while(s!==h)}o.action=null}function xS(o){o=o.listeners;for(var s=0;s<o.length;s++)(0,o[s])()}function TS(o,s){return s}function OS(o,s){if(Et){var l=qt.formState;if(l!==null){e:{var h=at;if(Et){if(Zt){t:{for(var v=Zt,_=ro;v.nodeType!==8;){if(!_){v=null;break t}if(v=ao(v.nextSibling),v===null){v=null;break t}}_=v.data,v=_==="F!"||_==="F"?v:null}if(v){Zt=ao(v.nextSibling),h=v.data==="F!";break e}}Za(h)}h=!1}h&&(s=l[0])}}return l=ir(),l.memoizedState=l.baseState=s,h={pending:null,lanes:0,dispatch:null,lastRenderedReducer:TS,lastRenderedState:s},l.queue=h,l=GS.bind(null,at,h),h.dispatch=l,h=lv(!1),_=gv.bind(null,at,!1,h.queue),h=ir(),v={state:s,dispatch:null,action:o,pending:null},h.queue=v,l=j3.bind(null,at,v,_,l),v.dispatch=l,h.memoizedState=o,[s,l,!1]}function CS(o){var s=ln();return AS(s,zt,o)}function AS(o,s,l){if(s=iv(o,s,TS)[0],o=ff(ga)[0],typeof s=="object"&&s!==null&&typeof s.then=="function")try{var h=Kl(s)}catch(k){throw k===hc?tf:k}else h=s;s=ln();var v=s.queue,_=v.dispatch;return l!==s.memoizedState&&(at.flags|=2048,yc(9,{destroy:void 0},$3.bind(null,v,l),null)),[h,_,o]}function $3(o,s){o.action=s}function IS(o){var s=ln(),l=zt;if(l!==null)return AS(s,l,o);ln(),s=s.memoizedState,l=ln();var h=l.queue.dispatch;return l.memoizedState=o,[s,h,!1]}function yc(o,s,l,h){return o={tag:o,create:l,deps:h,inst:s,next:null},s=at.updateQueue,s===null&&(s=uf(),at.updateQueue=s),l=s.lastEffect,l===null?s.lastEffect=o.next=o:(h=l.next,l.next=o,o.next=h,s.lastEffect=o),o}function kS(){return ln().memoizedState}function hf(o,s,l,h){var v=ir();at.flags|=o,v.memoizedState=yc(1|s,{destroy:void 0},l,h===void 0?null:h)}function pf(o,s,l,h){var v=ln();h=h===void 0?null:h;var _=v.memoizedState.inst;zt!==null&&h!==null&&tv(h,zt.memoizedState.deps)?v.memoizedState=yc(s,_,l,h):(at.flags|=o,v.memoizedState=yc(1|s,_,l,h))}function NS(o,s){hf(8390656,8,o,s)}function dv(o,s){pf(2048,8,o,s)}function U3(o){at.flags|=4;var s=at.updateQueue;if(s===null)s=uf(),at.updateQueue=s,s.events=[o];else{var l=s.events;l===null?s.events=[o]:l.push(o)}}function MS(o){var s=ln().memoizedState;return U3({ref:s,nextImpl:o}),function(){if((Nt&2)!==0)throw Error(r(440));return s.impl.apply(void 0,arguments)}}function PS(o,s){return pf(4,2,o,s)}function DS(o,s){return pf(4,4,o,s)}function LS(o,s){if(typeof s=="function"){o=o();var l=s(o);return function(){typeof l=="function"?l():s(null)}}if(s!=null)return o=o(),s.current=o,function(){s.current=null}}function jS(o,s,l){l=l!=null?l.concat([o]):null,pf(4,4,LS.bind(null,s,o),l)}function fv(){}function $S(o,s){var l=ln();s=s===void 0?null:s;var h=l.memoizedState;return s!==null&&tv(s,h[1])?h[0]:(l.memoizedState=[o,s],o)}function US(o,s){var l=ln();s=s===void 0?null:s;var h=l.memoizedState;if(s!==null&&tv(s,h[1]))return h[0];if(h=o(),li){zn(!0);try{o()}finally{zn(!1)}}return l.memoizedState=[h,s],h}function hv(o,s,l){return l===void 0||(ma&1073741824)!==0&&(wt&261930)===0?o.memoizedState=s:(o.memoizedState=l,o=zE(),at.lanes|=o,ns|=o,l)}function zS(o,s,l,h){return Nr(l,s)?l:mc.current!==null?(o=hv(o,l,h),Nr(o,s)||(gn=!0),o):(ma&42)===0||(ma&1073741824)!==0&&(wt&261930)===0?(gn=!0,o.memoizedState=l):(o=zE(),at.lanes|=o,ns|=o,s)}function VS(o,s,l,h,v){var _=X.p;X.p=_!==0&&8>_?_:8;var k=F.T,j={};F.T=j,gv(o,!1,s,l);try{var Y=v(),de=F.S;if(de!==null&&de(j,Y),Y!==null&&typeof Y=="object"&&typeof Y.then=="function"){var we=P3(Y,h);Wl(o,s,we,$r(o))}else Wl(o,s,h,$r(o))}catch(xe){Wl(o,s,{then:function(){},status:"rejected",reason:xe},$r())}finally{X.p=_,k!==null&&j.types!==null&&(k.types=j.types),F.T=k}}function z3(){}function pv(o,s,l,h){if(o.tag!==5)throw Error(r(476));var v=FS(o).queue;VS(o,v,s,ae,l===null?z3:function(){return BS(o),l(h)})}function FS(o){var s=o.memoizedState;if(s!==null)return s;s={memoizedState:ae,baseState:ae,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ga,lastRenderedState:ae},next:null};var l={};return s.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ga,lastRenderedState:l},next:null},o.memoizedState=s,o=o.alternate,o!==null&&(o.memoizedState=s),s}function BS(o){var s=FS(o);s.next===null&&(s=o.alternate.memoizedState),Wl(o,s.next.queue,{},$r())}function mv(){return Bn(fu)}function qS(){return ln().memoizedState}function HS(){return ln().memoizedState}function V3(o){for(var s=o.return;s!==null;){switch(s.tag){case 24:case 3:var l=$r();o=Ya(l);var h=Qa(s,o,l);h!==null&&(Er(h,s,l),ql(h,s,l)),s={cache:qg()},o.payload=s;return}s=s.return}}function F3(o,s,l){var h=$r();l={lane:h,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},mf(o)?ZS(s,l):(l=Mg(o,s,l,h),l!==null&&(Er(l,o,h),KS(l,s,h)))}function GS(o,s,l){var h=$r();Wl(o,s,l,h)}function Wl(o,s,l,h){var v={lane:h,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(mf(o))ZS(s,v);else{var _=o.alternate;if(o.lanes===0&&(_===null||_.lanes===0)&&(_=s.lastRenderedReducer,_!==null))try{var k=s.lastRenderedState,j=_(k,l);if(v.hasEagerState=!0,v.eagerState=j,Nr(j,k))return Kd(o,s,v,0),qt===null&&Zd(),!1}catch{}if(l=Mg(o,s,v,h),l!==null)return Er(l,o,h),KS(l,s,h),!0}return!1}function gv(o,s,l,h){if(h={lane:2,revertLane:Kv(),gesture:null,action:h,hasEagerState:!1,eagerState:null,next:null},mf(o)){if(s)throw Error(r(479))}else s=Mg(o,l,h,2),s!==null&&Er(s,o,2)}function mf(o){var s=o.alternate;return o===at||s!==null&&s===at}function ZS(o,s){gc=cf=!0;var l=o.pending;l===null?s.next=s:(s.next=l.next,l.next=s),o.pending=s}function KS(o,s,l){if((l&4194048)!==0){var h=s.lanes;h&=o.pendingLanes,l|=h,s.lanes=l,mr(o,l)}}var Yl={readContext:Bn,use:df,useCallback:on,useContext:on,useEffect:on,useImperativeHandle:on,useLayoutEffect:on,useInsertionEffect:on,useMemo:on,useReducer:on,useRef:on,useState:on,useDebugValue:on,useDeferredValue:on,useTransition:on,useSyncExternalStore:on,useId:on,useHostTransitionStatus:on,useFormState:on,useActionState:on,useOptimistic:on,useMemoCache:on,useCacheRefresh:on};Yl.useEffectEvent=on;var WS={readContext:Bn,use:df,useCallback:function(o,s){return ir().memoizedState=[o,s===void 0?null:s],o},useContext:Bn,useEffect:NS,useImperativeHandle:function(o,s,l){l=l!=null?l.concat([o]):null,hf(4194308,4,LS.bind(null,s,o),l)},useLayoutEffect:function(o,s){return hf(4194308,4,o,s)},useInsertionEffect:function(o,s){hf(4,2,o,s)},useMemo:function(o,s){var l=ir();s=s===void 0?null:s;var h=o();if(li){zn(!0);try{o()}finally{zn(!1)}}return l.memoizedState=[h,s],h},useReducer:function(o,s,l){var h=ir();if(l!==void 0){var v=l(s);if(li){zn(!0);try{l(s)}finally{zn(!1)}}}else v=s;return h.memoizedState=h.baseState=v,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:o,lastRenderedState:v},h.queue=o,o=o.dispatch=F3.bind(null,at,o),[h.memoizedState,o]},useRef:function(o){var s=ir();return o={current:o},s.memoizedState=o},useState:function(o){o=lv(o);var s=o.queue,l=GS.bind(null,at,s);return s.dispatch=l,[o.memoizedState,l]},useDebugValue:fv,useDeferredValue:function(o,s){var l=ir();return hv(l,o,s)},useTransition:function(){var o=lv(!1);return o=VS.bind(null,at,o.queue,!0,!1),ir().memoizedState=o,[!1,o]},useSyncExternalStore:function(o,s,l){var h=at,v=ir();if(Et){if(l===void 0)throw Error(r(407));l=l()}else{if(l=s(),qt===null)throw Error(r(349));(wt&127)!==0||gS(h,s,l)}v.memoizedState=l;var _={value:l,getSnapshot:s};return v.queue=_,NS(yS.bind(null,h,_,o),[o]),h.flags|=2048,yc(9,{destroy:void 0},vS.bind(null,h,_,l,s),null),l},useId:function(){var o=ir(),s=qt.identifierPrefix;if(Et){var l=qo,h=Bo;l=(h&~(1<<32-kn(h)-1)).toString(32)+l,s="_"+s+"R_"+l,l=lf++,0<l&&(s+="H"+l.toString(32)),s+="_"}else l=D3++,s="_"+s+"r_"+l.toString(32)+"_";return o.memoizedState=s},useHostTransitionStatus:mv,useFormState:OS,useActionState:OS,useOptimistic:function(o){var s=ir();s.memoizedState=s.baseState=o;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return s.queue=l,s=gv.bind(null,at,!0,l),l.dispatch=s,[o,s]},useMemoCache:sv,useCacheRefresh:function(){return ir().memoizedState=V3.bind(null,at)},useEffectEvent:function(o){var s=ir(),l={impl:o};return s.memoizedState=l,function(){if((Nt&2)!==0)throw Error(r(440));return l.impl.apply(void 0,arguments)}}},vv={readContext:Bn,use:df,useCallback:$S,useContext:Bn,useEffect:dv,useImperativeHandle:jS,useInsertionEffect:PS,useLayoutEffect:DS,useMemo:US,useReducer:ff,useRef:kS,useState:function(){return ff(ga)},useDebugValue:fv,useDeferredValue:function(o,s){var l=ln();return zS(l,zt.memoizedState,o,s)},useTransition:function(){var o=ff(ga)[0],s=ln().memoizedState;return[typeof o=="boolean"?o:Kl(o),s]},useSyncExternalStore:mS,useId:qS,useHostTransitionStatus:mv,useFormState:CS,useActionState:CS,useOptimistic:function(o,s){var l=ln();return wS(l,zt,o,s)},useMemoCache:sv,useCacheRefresh:HS};vv.useEffectEvent=MS;var YS={readContext:Bn,use:df,useCallback:$S,useContext:Bn,useEffect:dv,useImperativeHandle:jS,useInsertionEffect:PS,useLayoutEffect:DS,useMemo:US,useReducer:cv,useRef:kS,useState:function(){return cv(ga)},useDebugValue:fv,useDeferredValue:function(o,s){var l=ln();return zt===null?hv(l,o,s):zS(l,zt.memoizedState,o,s)},useTransition:function(){var o=cv(ga)[0],s=ln().memoizedState;return[typeof o=="boolean"?o:Kl(o),s]},useSyncExternalStore:mS,useId:qS,useHostTransitionStatus:mv,useFormState:IS,useActionState:IS,useOptimistic:function(o,s){var l=ln();return zt!==null?wS(l,zt,o,s):(l.baseState=o,[o,l.queue.dispatch])},useMemoCache:sv,useCacheRefresh:HS};YS.useEffectEvent=MS;function yv(o,s,l,h){s=o.memoizedState,l=l(h,s),l=l==null?s:p({},s,l),o.memoizedState=l,o.lanes===0&&(o.updateQueue.baseState=l)}var _v={enqueueSetState:function(o,s,l){o=o._reactInternals;var h=$r(),v=Ya(h);v.payload=s,l!=null&&(v.callback=l),s=Qa(o,v,h),s!==null&&(Er(s,o,h),ql(s,o,h))},enqueueReplaceState:function(o,s,l){o=o._reactInternals;var h=$r(),v=Ya(h);v.tag=1,v.payload=s,l!=null&&(v.callback=l),s=Qa(o,v,h),s!==null&&(Er(s,o,h),ql(s,o,h))},enqueueForceUpdate:function(o,s){o=o._reactInternals;var l=$r(),h=Ya(l);h.tag=2,s!=null&&(h.callback=s),s=Qa(o,h,l),s!==null&&(Er(s,o,l),ql(s,o,l))}};function QS(o,s,l,h,v,_,k){return o=o.stateNode,typeof o.shouldComponentUpdate=="function"?o.shouldComponentUpdate(h,_,k):s.prototype&&s.prototype.isPureReactComponent?!Ll(l,h)||!Ll(v,_):!0}function XS(o,s,l,h){o=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(l,h),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(l,h),s.state!==o&&_v.enqueueReplaceState(s,s.state,null)}function ui(o,s){var l=s;if("ref"in s){l={};for(var h in s)h!=="ref"&&(l[h]=s[h])}if(o=o.defaultProps){l===s&&(l=p({},l));for(var v in o)l[v]===void 0&&(l[v]=o[v])}return l}function JS(o){Gd(o)}function eE(o){console.error(o)}function tE(o){Gd(o)}function gf(o,s){try{var l=o.onUncaughtError;l(s.value,{componentStack:s.stack})}catch(h){setTimeout(function(){throw h})}}function nE(o,s,l){try{var h=o.onCaughtError;h(l.value,{componentStack:l.stack,errorBoundary:s.tag===1?s.stateNode:null})}catch(v){setTimeout(function(){throw v})}}function bv(o,s,l){return l=Ya(l),l.tag=3,l.payload={element:null},l.callback=function(){gf(o,s)},l}function rE(o){return o=Ya(o),o.tag=3,o}function oE(o,s,l,h){var v=l.type.getDerivedStateFromError;if(typeof v=="function"){var _=h.value;o.payload=function(){return v(_)},o.callback=function(){nE(s,l,h)}}var k=l.stateNode;k!==null&&typeof k.componentDidCatch=="function"&&(o.callback=function(){nE(s,l,h),typeof v!="function"&&(rs===null?rs=new Set([this]):rs.add(this));var j=h.stack;this.componentDidCatch(h.value,{componentStack:j!==null?j:""})})}function B3(o,s,l,h,v){if(l.flags|=32768,h!==null&&typeof h=="object"&&typeof h.then=="function"){if(s=l.alternate,s!==null&&uc(s,l,v,!0),l=Pr.current,l!==null){switch(l.tag){case 31:case 13:return oo===null?Cf():l.alternate===null&&an===0&&(an=3),l.flags&=-257,l.flags|=65536,l.lanes=v,h===nf?l.flags|=16384:(s=l.updateQueue,s===null?l.updateQueue=new Set([h]):s.add(h),Hv(o,h,v)),!1;case 22:return l.flags|=65536,h===nf?l.flags|=16384:(s=l.updateQueue,s===null?(s={transitions:null,markerInstances:null,retryQueue:new Set([h])},l.updateQueue=s):(l=s.retryQueue,l===null?s.retryQueue=new Set([h]):l.add(h)),Hv(o,h,v)),!1}throw Error(r(435,l.tag))}return Hv(o,h,v),Cf(),!1}if(Et)return s=Pr.current,s!==null?((s.flags&65536)===0&&(s.flags|=256),s.flags|=65536,s.lanes=v,h!==Ug&&(o=Error(r(422),{cause:h}),Ul(eo(o,l)))):(h!==Ug&&(s=Error(r(423),{cause:h}),Ul(eo(s,l))),o=o.current.alternate,o.flags|=65536,v&=-v,o.lanes|=v,h=eo(h,l),v=bv(o.stateNode,h,v),Yg(o,v),an!==4&&(an=2)),!1;var _=Error(r(520),{cause:h});if(_=eo(_,l),ou===null?ou=[_]:ou.push(_),an!==4&&(an=2),s===null)return!0;h=eo(h,l),l=s;do{switch(l.tag){case 3:return l.flags|=65536,o=v&-v,l.lanes|=o,o=bv(l.stateNode,h,o),Yg(l,o),!1;case 1:if(s=l.type,_=l.stateNode,(l.flags&128)===0&&(typeof s.getDerivedStateFromError=="function"||_!==null&&typeof _.componentDidCatch=="function"&&(rs===null||!rs.has(_))))return l.flags|=65536,v&=-v,l.lanes|=v,v=rE(v),oE(v,o,l,h),Yg(l,v),!1}l=l.return}while(l!==null);return!1}var wv=Error(r(461)),gn=!1;function qn(o,s,l,h){s.child=o===null?cS(s,null,l,h):ci(s,o.child,l,h)}function aE(o,s,l,h,v){l=l.render;var _=s.ref;if("ref"in h){var k={};for(var j in h)j!=="ref"&&(k[j]=h[j])}else k=h;return oi(s),h=nv(o,s,l,k,_,v),j=rv(),o!==null&&!gn?(ov(o,s,v),va(o,s,v)):(Et&&j&&jg(s),s.flags|=1,qn(o,s,h,v),s.child)}function sE(o,s,l,h,v){if(o===null){var _=l.type;return typeof _=="function"&&!Pg(_)&&_.defaultProps===void 0&&l.compare===null?(s.tag=15,s.type=_,iE(o,s,_,h,v)):(o=Yd(l.type,null,h,s,s.mode,v),o.ref=s.ref,o.return=s,s.child=o)}if(_=o.child,!Av(o,v)){var k=_.memoizedProps;if(l=l.compare,l=l!==null?l:Ll,l(k,h)&&o.ref===s.ref)return va(o,s,v)}return s.flags|=1,o=da(_,h),o.ref=s.ref,o.return=s,s.child=o}function iE(o,s,l,h,v){if(o!==null){var _=o.memoizedProps;if(Ll(_,h)&&o.ref===s.ref)if(gn=!1,s.pendingProps=h=_,Av(o,v))(o.flags&131072)!==0&&(gn=!0);else return s.lanes=o.lanes,va(o,s,v)}return Sv(o,s,l,h,v)}function cE(o,s,l,h){var v=h.children,_=o!==null?o.memoizedState:null;if(o===null&&s.stateNode===null&&(s.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),h.mode==="hidden"){if((s.flags&128)!==0){if(_=_!==null?_.baseLanes|l:l,o!==null){for(h=s.child=o.child,v=0;h!==null;)v=v|h.lanes|h.childLanes,h=h.sibling;h=v&~_}else h=0,s.child=null;return lE(o,s,_,l,h)}if((l&536870912)!==0)s.memoizedState={baseLanes:0,cachePool:null},o!==null&&ef(s,_!==null?_.cachePool:null),_!==null?dS(s,_):Xg(),fS(s);else return h=s.lanes=536870912,lE(o,s,_!==null?_.baseLanes|l:l,l,h)}else _!==null?(ef(s,_.cachePool),dS(s,_),Ja(),s.memoizedState=null):(o!==null&&ef(s,null),Xg(),Ja());return qn(o,s,v,l),s.child}function Ql(o,s){return o!==null&&o.tag===22||s.stateNode!==null||(s.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.sibling}function lE(o,s,l,h,v){var _=Gg();return _=_===null?null:{parent:pn._currentValue,pool:_},s.memoizedState={baseLanes:l,cachePool:_},o!==null&&ef(s,null),Xg(),fS(s),o!==null&&uc(o,s,h,!0),s.childLanes=v,null}function vf(o,s){return s=_f({mode:s.mode,children:s.children},o.mode),s.ref=o.ref,o.child=s,s.return=o,s}function uE(o,s,l){return ci(s,o.child,null,l),o=vf(s,s.pendingProps),o.flags|=2,Dr(s),s.memoizedState=null,o}function q3(o,s,l){var h=s.pendingProps,v=(s.flags&128)!==0;if(s.flags&=-129,o===null){if(Et){if(h.mode==="hidden")return o=vf(s,h),s.lanes=536870912,Ql(null,o);if(ev(s),(o=Zt)?(o=SR(o,ro),o=o!==null&&o.data==="&"?o:null,o!==null&&(s.memoizedState={dehydrated:o,treeContext:Ha!==null?{id:Bo,overflow:qo}:null,retryLane:536870912,hydrationErrors:null},l=Zw(o),l.return=s,s.child=l,Fn=s,Zt=null)):o=null,o===null)throw Za(s);return s.lanes=536870912,null}return vf(s,h)}var _=o.memoizedState;if(_!==null){var k=_.dehydrated;if(ev(s),v)if(s.flags&256)s.flags&=-257,s=uE(o,s,l);else if(s.memoizedState!==null)s.child=o.child,s.flags|=128,s=null;else throw Error(r(558));else if(gn||uc(o,s,l,!1),v=(l&o.childLanes)!==0,gn||v){if(h=qt,h!==null&&(k=gr(h,l),k!==0&&k!==_.retryLane))throw _.retryLane=k,ei(o,k),Er(h,o,k),wv;Cf(),s=uE(o,s,l)}else o=_.treeContext,Zt=ao(k.nextSibling),Fn=s,Et=!0,Ga=null,ro=!1,o!==null&&Yw(s,o),s=vf(s,h),s.flags|=4096;return s}return o=da(o.child,{mode:h.mode,children:h.children}),o.ref=s.ref,s.child=o,o.return=s,o}function yf(o,s){var l=s.ref;if(l===null)o!==null&&o.ref!==null&&(s.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(r(284));(o===null||o.ref!==l)&&(s.flags|=4194816)}}function Sv(o,s,l,h,v){return oi(s),l=nv(o,s,l,h,void 0,v),h=rv(),o!==null&&!gn?(ov(o,s,v),va(o,s,v)):(Et&&h&&jg(s),s.flags|=1,qn(o,s,l,v),s.child)}function dE(o,s,l,h,v,_){return oi(s),s.updateQueue=null,l=pS(s,h,l,v),hS(o),h=rv(),o!==null&&!gn?(ov(o,s,_),va(o,s,_)):(Et&&h&&jg(s),s.flags|=1,qn(o,s,l,_),s.child)}function fE(o,s,l,h,v){if(oi(s),s.stateNode===null){var _=sc,k=l.contextType;typeof k=="object"&&k!==null&&(_=Bn(k)),_=new l(h,_),s.memoizedState=_.state!==null&&_.state!==void 0?_.state:null,_.updater=_v,s.stateNode=_,_._reactInternals=s,_=s.stateNode,_.props=h,_.state=s.memoizedState,_.refs={},Kg(s),k=l.contextType,_.context=typeof k=="object"&&k!==null?Bn(k):sc,_.state=s.memoizedState,k=l.getDerivedStateFromProps,typeof k=="function"&&(yv(s,l,k,h),_.state=s.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof _.getSnapshotBeforeUpdate=="function"||typeof _.UNSAFE_componentWillMount!="function"&&typeof _.componentWillMount!="function"||(k=_.state,typeof _.componentWillMount=="function"&&_.componentWillMount(),typeof _.UNSAFE_componentWillMount=="function"&&_.UNSAFE_componentWillMount(),k!==_.state&&_v.enqueueReplaceState(_,_.state,null),Gl(s,h,_,v),Hl(),_.state=s.memoizedState),typeof _.componentDidMount=="function"&&(s.flags|=4194308),h=!0}else if(o===null){_=s.stateNode;var j=s.memoizedProps,Y=ui(l,j);_.props=Y;var de=_.context,we=l.contextType;k=sc,typeof we=="object"&&we!==null&&(k=Bn(we));var xe=l.getDerivedStateFromProps;we=typeof xe=="function"||typeof _.getSnapshotBeforeUpdate=="function",j=s.pendingProps!==j,we||typeof _.UNSAFE_componentWillReceiveProps!="function"&&typeof _.componentWillReceiveProps!="function"||(j||de!==k)&&XS(s,_,h,k),Wa=!1;var he=s.memoizedState;_.state=he,Gl(s,h,_,v),Hl(),de=s.memoizedState,j||he!==de||Wa?(typeof xe=="function"&&(yv(s,l,xe,h),de=s.memoizedState),(Y=Wa||QS(s,l,Y,h,he,de,k))?(we||typeof _.UNSAFE_componentWillMount!="function"&&typeof _.componentWillMount!="function"||(typeof _.componentWillMount=="function"&&_.componentWillMount(),typeof _.UNSAFE_componentWillMount=="function"&&_.UNSAFE_componentWillMount()),typeof _.componentDidMount=="function"&&(s.flags|=4194308)):(typeof _.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=h,s.memoizedState=de),_.props=h,_.state=de,_.context=k,h=Y):(typeof _.componentDidMount=="function"&&(s.flags|=4194308),h=!1)}else{_=s.stateNode,Wg(o,s),k=s.memoizedProps,we=ui(l,k),_.props=we,xe=s.pendingProps,he=_.context,de=l.contextType,Y=sc,typeof de=="object"&&de!==null&&(Y=Bn(de)),j=l.getDerivedStateFromProps,(de=typeof j=="function"||typeof _.getSnapshotBeforeUpdate=="function")||typeof _.UNSAFE_componentWillReceiveProps!="function"&&typeof _.componentWillReceiveProps!="function"||(k!==xe||he!==Y)&&XS(s,_,h,Y),Wa=!1,he=s.memoizedState,_.state=he,Gl(s,h,_,v),Hl();var ge=s.memoizedState;k!==xe||he!==ge||Wa||o!==null&&o.dependencies!==null&&Xd(o.dependencies)?(typeof j=="function"&&(yv(s,l,j,h),ge=s.memoizedState),(we=Wa||QS(s,l,we,h,he,ge,Y)||o!==null&&o.dependencies!==null&&Xd(o.dependencies))?(de||typeof _.UNSAFE_componentWillUpdate!="function"&&typeof _.componentWillUpdate!="function"||(typeof _.componentWillUpdate=="function"&&_.componentWillUpdate(h,ge,Y),typeof _.UNSAFE_componentWillUpdate=="function"&&_.UNSAFE_componentWillUpdate(h,ge,Y)),typeof _.componentDidUpdate=="function"&&(s.flags|=4),typeof _.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof _.componentDidUpdate!="function"||k===o.memoizedProps&&he===o.memoizedState||(s.flags|=4),typeof _.getSnapshotBeforeUpdate!="function"||k===o.memoizedProps&&he===o.memoizedState||(s.flags|=1024),s.memoizedProps=h,s.memoizedState=ge),_.props=h,_.state=ge,_.context=Y,h=we):(typeof _.componentDidUpdate!="function"||k===o.memoizedProps&&he===o.memoizedState||(s.flags|=4),typeof _.getSnapshotBeforeUpdate!="function"||k===o.memoizedProps&&he===o.memoizedState||(s.flags|=1024),h=!1)}return _=h,yf(o,s),h=(s.flags&128)!==0,_||h?(_=s.stateNode,l=h&&typeof l.getDerivedStateFromError!="function"?null:_.render(),s.flags|=1,o!==null&&h?(s.child=ci(s,o.child,null,v),s.child=ci(s,null,l,v)):qn(o,s,l,v),s.memoizedState=_.state,o=s.child):o=va(o,s,v),o}function hE(o,s,l,h){return ni(),s.flags|=256,qn(o,s,l,h),s.child}var Ev={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Rv(o){return{baseLanes:o,cachePool:nS()}}function xv(o,s,l){return o=o!==null?o.childLanes&~l:0,s&&(o|=jr),o}function pE(o,s,l){var h=s.pendingProps,v=!1,_=(s.flags&128)!==0,k;if((k=_)||(k=o!==null&&o.memoizedState===null?!1:(cn.current&2)!==0),k&&(v=!0,s.flags&=-129),k=(s.flags&32)!==0,s.flags&=-33,o===null){if(Et){if(v?Xa(s):Ja(),(o=Zt)?(o=SR(o,ro),o=o!==null&&o.data!=="&"?o:null,o!==null&&(s.memoizedState={dehydrated:o,treeContext:Ha!==null?{id:Bo,overflow:qo}:null,retryLane:536870912,hydrationErrors:null},l=Zw(o),l.return=s,s.child=l,Fn=s,Zt=null)):o=null,o===null)throw Za(s);return iy(o)?s.lanes=32:s.lanes=536870912,null}var j=h.children;return h=h.fallback,v?(Ja(),v=s.mode,j=_f({mode:"hidden",children:j},v),h=ti(h,v,l,null),j.return=s,h.return=s,j.sibling=h,s.child=j,h=s.child,h.memoizedState=Rv(l),h.childLanes=xv(o,k,l),s.memoizedState=Ev,Ql(null,h)):(Xa(s),Tv(s,j))}var Y=o.memoizedState;if(Y!==null&&(j=Y.dehydrated,j!==null)){if(_)s.flags&256?(Xa(s),s.flags&=-257,s=Ov(o,s,l)):s.memoizedState!==null?(Ja(),s.child=o.child,s.flags|=128,s=null):(Ja(),j=h.fallback,v=s.mode,h=_f({mode:"visible",children:h.children},v),j=ti(j,v,l,null),j.flags|=2,h.return=s,j.return=s,h.sibling=j,s.child=h,ci(s,o.child,null,l),h=s.child,h.memoizedState=Rv(l),h.childLanes=xv(o,k,l),s.memoizedState=Ev,s=Ql(null,h));else if(Xa(s),iy(j)){if(k=j.nextSibling&&j.nextSibling.dataset,k)var de=k.dgst;k=de,h=Error(r(419)),h.stack="",h.digest=k,Ul({value:h,source:null,stack:null}),s=Ov(o,s,l)}else if(gn||uc(o,s,l,!1),k=(l&o.childLanes)!==0,gn||k){if(k=qt,k!==null&&(h=gr(k,l),h!==0&&h!==Y.retryLane))throw Y.retryLane=h,ei(o,h),Er(k,o,h),wv;sy(j)||Cf(),s=Ov(o,s,l)}else sy(j)?(s.flags|=192,s.child=o.child,s=null):(o=Y.treeContext,Zt=ao(j.nextSibling),Fn=s,Et=!0,Ga=null,ro=!1,o!==null&&Yw(s,o),s=Tv(s,h.children),s.flags|=4096);return s}return v?(Ja(),j=h.fallback,v=s.mode,Y=o.child,de=Y.sibling,h=da(Y,{mode:"hidden",children:h.children}),h.subtreeFlags=Y.subtreeFlags&65011712,de!==null?j=da(de,j):(j=ti(j,v,l,null),j.flags|=2),j.return=s,h.return=s,h.sibling=j,s.child=h,Ql(null,h),h=s.child,j=o.child.memoizedState,j===null?j=Rv(l):(v=j.cachePool,v!==null?(Y=pn._currentValue,v=v.parent!==Y?{parent:Y,pool:Y}:v):v=nS(),j={baseLanes:j.baseLanes|l,cachePool:v}),h.memoizedState=j,h.childLanes=xv(o,k,l),s.memoizedState=Ev,Ql(o.child,h)):(Xa(s),l=o.child,o=l.sibling,l=da(l,{mode:"visible",children:h.children}),l.return=s,l.sibling=null,o!==null&&(k=s.deletions,k===null?(s.deletions=[o],s.flags|=16):k.push(o)),s.child=l,s.memoizedState=null,l)}function Tv(o,s){return s=_f({mode:"visible",children:s},o.mode),s.return=o,o.child=s}function _f(o,s){return o=Mr(22,o,null,s),o.lanes=0,o}function Ov(o,s,l){return ci(s,o.child,null,l),o=Tv(s,s.pendingProps.children),o.flags|=2,s.memoizedState=null,o}function mE(o,s,l){o.lanes|=s;var h=o.alternate;h!==null&&(h.lanes|=s),Fg(o.return,s,l)}function Cv(o,s,l,h,v,_){var k=o.memoizedState;k===null?o.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:h,tail:l,tailMode:v,treeForkCount:_}:(k.isBackwards=s,k.rendering=null,k.renderingStartTime=0,k.last=h,k.tail=l,k.tailMode=v,k.treeForkCount=_)}function gE(o,s,l){var h=s.pendingProps,v=h.revealOrder,_=h.tail;h=h.children;var k=cn.current,j=(k&2)!==0;if(j?(k=k&1|2,s.flags|=128):k&=1,B(cn,k),qn(o,s,h,l),h=Et?$l:0,!j&&o!==null&&(o.flags&128)!==0)e:for(o=s.child;o!==null;){if(o.tag===13)o.memoizedState!==null&&mE(o,l,s);else if(o.tag===19)mE(o,l,s);else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===s)break e;for(;o.sibling===null;){if(o.return===null||o.return===s)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}switch(v){case"forwards":for(l=s.child,v=null;l!==null;)o=l.alternate,o!==null&&sf(o)===null&&(v=l),l=l.sibling;l=v,l===null?(v=s.child,s.child=null):(v=l.sibling,l.sibling=null),Cv(s,!1,v,l,_,h);break;case"backwards":case"unstable_legacy-backwards":for(l=null,v=s.child,s.child=null;v!==null;){if(o=v.alternate,o!==null&&sf(o)===null){s.child=v;break}o=v.sibling,v.sibling=l,l=v,v=o}Cv(s,!0,l,null,_,h);break;case"together":Cv(s,!1,null,null,void 0,h);break;default:s.memoizedState=null}return s.child}function va(o,s,l){if(o!==null&&(s.dependencies=o.dependencies),ns|=s.lanes,(l&s.childLanes)===0)if(o!==null){if(uc(o,s,l,!1),(l&s.childLanes)===0)return null}else return null;if(o!==null&&s.child!==o.child)throw Error(r(153));if(s.child!==null){for(o=s.child,l=da(o,o.pendingProps),s.child=l,l.return=s;o.sibling!==null;)o=o.sibling,l=l.sibling=da(o,o.pendingProps),l.return=s;l.sibling=null}return s.child}function Av(o,s){return(o.lanes&s)!==0?!0:(o=o.dependencies,!!(o!==null&&Xd(o)))}function H3(o,s,l){switch(s.tag){case 3:_e(s,s.stateNode.containerInfo),Ka(s,pn,o.memoizedState.cache),ni();break;case 27:case 5:ke(s);break;case 4:_e(s,s.stateNode.containerInfo);break;case 10:Ka(s,s.type,s.memoizedProps.value);break;case 31:if(s.memoizedState!==null)return s.flags|=128,ev(s),null;break;case 13:var h=s.memoizedState;if(h!==null)return h.dehydrated!==null?(Xa(s),s.flags|=128,null):(l&s.child.childLanes)!==0?pE(o,s,l):(Xa(s),o=va(o,s,l),o!==null?o.sibling:null);Xa(s);break;case 19:var v=(o.flags&128)!==0;if(h=(l&s.childLanes)!==0,h||(uc(o,s,l,!1),h=(l&s.childLanes)!==0),v){if(h)return gE(o,s,l);s.flags|=128}if(v=s.memoizedState,v!==null&&(v.rendering=null,v.tail=null,v.lastEffect=null),B(cn,cn.current),h)break;return null;case 22:return s.lanes=0,cE(o,s,l,s.pendingProps);case 24:Ka(s,pn,o.memoizedState.cache)}return va(o,s,l)}function vE(o,s,l){if(o!==null)if(o.memoizedProps!==s.pendingProps)gn=!0;else{if(!Av(o,l)&&(s.flags&128)===0)return gn=!1,H3(o,s,l);gn=(o.flags&131072)!==0}else gn=!1,Et&&(s.flags&1048576)!==0&&Ww(s,$l,s.index);switch(s.lanes=0,s.tag){case 16:e:{var h=s.pendingProps;if(o=si(s.elementType),s.type=o,typeof o=="function")Pg(o)?(h=ui(o,h),s.tag=1,s=fE(null,s,o,h,l)):(s.tag=0,s=Sv(null,s,o,h,l));else{if(o!=null){var v=o.$$typeof;if(v===O){s.tag=11,s=aE(null,s,o,h,l);break e}else if(v===N){s.tag=14,s=sE(null,s,o,h,l);break e}}throw s=J(o)||o,Error(r(306,s,""))}}return s;case 0:return Sv(o,s,s.type,s.pendingProps,l);case 1:return h=s.type,v=ui(h,s.pendingProps),fE(o,s,h,v,l);case 3:e:{if(_e(s,s.stateNode.containerInfo),o===null)throw Error(r(387));h=s.pendingProps;var _=s.memoizedState;v=_.element,Wg(o,s),Gl(s,h,null,l);var k=s.memoizedState;if(h=k.cache,Ka(s,pn,h),h!==_.cache&&Bg(s,[pn],l,!0),Hl(),h=k.element,_.isDehydrated)if(_={element:h,isDehydrated:!1,cache:k.cache},s.updateQueue.baseState=_,s.memoizedState=_,s.flags&256){s=hE(o,s,h,l);break e}else if(h!==v){v=eo(Error(r(424)),s),Ul(v),s=hE(o,s,h,l);break e}else for(o=s.stateNode.containerInfo,o.nodeType===9?o=o.body:o=o.nodeName==="HTML"?o.ownerDocument.body:o,Zt=ao(o.firstChild),Fn=s,Et=!0,Ga=null,ro=!0,l=cS(s,null,h,l),s.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(ni(),h===v){s=va(o,s,l);break e}qn(o,s,h,l)}s=s.child}return s;case 26:return yf(o,s),o===null?(l=CR(s.type,null,s.pendingProps,null))?s.memoizedState=l:Et||(l=s.type,o=s.pendingProps,h=Df(Q.current).createElement(l),h[Vn]=s,h[vr]=o,Hn(h,l,o),Mn(h),s.stateNode=h):s.memoizedState=CR(s.type,o.memoizedProps,s.pendingProps,o.memoizedState),null;case 27:return ke(s),o===null&&Et&&(h=s.stateNode=xR(s.type,s.pendingProps,Q.current),Fn=s,ro=!0,v=Zt,is(s.type)?(cy=v,Zt=ao(h.firstChild)):Zt=v),qn(o,s,s.pendingProps.children,l),yf(o,s),o===null&&(s.flags|=4194304),s.child;case 5:return o===null&&Et&&((v=h=Zt)&&(h=w5(h,s.type,s.pendingProps,ro),h!==null?(s.stateNode=h,Fn=s,Zt=ao(h.firstChild),ro=!1,v=!0):v=!1),v||Za(s)),ke(s),v=s.type,_=s.pendingProps,k=o!==null?o.memoizedProps:null,h=_.children,ry(v,_)?h=null:k!==null&&ry(v,k)&&(s.flags|=32),s.memoizedState!==null&&(v=nv(o,s,L3,null,null,l),fu._currentValue=v),yf(o,s),qn(o,s,h,l),s.child;case 6:return o===null&&Et&&((o=l=Zt)&&(l=S5(l,s.pendingProps,ro),l!==null?(s.stateNode=l,Fn=s,Zt=null,o=!0):o=!1),o||Za(s)),null;case 13:return pE(o,s,l);case 4:return _e(s,s.stateNode.containerInfo),h=s.pendingProps,o===null?s.child=ci(s,null,h,l):qn(o,s,h,l),s.child;case 11:return aE(o,s,s.type,s.pendingProps,l);case 7:return qn(o,s,s.pendingProps,l),s.child;case 8:return qn(o,s,s.pendingProps.children,l),s.child;case 12:return qn(o,s,s.pendingProps.children,l),s.child;case 10:return h=s.pendingProps,Ka(s,s.type,h.value),qn(o,s,h.children,l),s.child;case 9:return v=s.type._context,h=s.pendingProps.children,oi(s),v=Bn(v),h=h(v),s.flags|=1,qn(o,s,h,l),s.child;case 14:return sE(o,s,s.type,s.pendingProps,l);case 15:return iE(o,s,s.type,s.pendingProps,l);case 19:return gE(o,s,l);case 31:return q3(o,s,l);case 22:return cE(o,s,l,s.pendingProps);case 24:return oi(s),h=Bn(pn),o===null?(v=Gg(),v===null&&(v=qt,_=qg(),v.pooledCache=_,_.refCount++,_!==null&&(v.pooledCacheLanes|=l),v=_),s.memoizedState={parent:h,cache:v},Kg(s),Ka(s,pn,v)):((o.lanes&l)!==0&&(Wg(o,s),Gl(s,null,null,l),Hl()),v=o.memoizedState,_=s.memoizedState,v.parent!==h?(v={parent:h,cache:h},s.memoizedState=v,s.lanes===0&&(s.memoizedState=s.updateQueue.baseState=v),Ka(s,pn,h)):(h=_.cache,Ka(s,pn,h),h!==v.cache&&Bg(s,[pn],l,!0))),qn(o,s,s.pendingProps.children,l),s.child;case 29:throw s.pendingProps}throw Error(r(156,s.tag))}function ya(o){o.flags|=4}function Iv(o,s,l,h,v){if((s=(o.mode&32)!==0)&&(s=!1),s){if(o.flags|=16777216,(v&335544128)===v)if(o.stateNode.complete)o.flags|=8192;else if(qE())o.flags|=8192;else throw ii=nf,Zg}else o.flags&=-16777217}function yE(o,s){if(s.type!=="stylesheet"||(s.state.loading&4)!==0)o.flags&=-16777217;else if(o.flags|=16777216,!MR(s))if(qE())o.flags|=8192;else throw ii=nf,Zg}function bf(o,s){s!==null&&(o.flags|=4),o.flags&16384&&(s=o.tag!==22?er():536870912,o.lanes|=s,Sc|=s)}function Xl(o,s){if(!Et)switch(o.tailMode){case"hidden":s=o.tail;for(var l=null;s!==null;)s.alternate!==null&&(l=s),s=s.sibling;l===null?o.tail=null:l.sibling=null;break;case"collapsed":l=o.tail;for(var h=null;l!==null;)l.alternate!==null&&(h=l),l=l.sibling;h===null?s||o.tail===null?o.tail=null:o.tail.sibling=null:h.sibling=null}}function Kt(o){var s=o.alternate!==null&&o.alternate.child===o.child,l=0,h=0;if(s)for(var v=o.child;v!==null;)l|=v.lanes|v.childLanes,h|=v.subtreeFlags&65011712,h|=v.flags&65011712,v.return=o,v=v.sibling;else for(v=o.child;v!==null;)l|=v.lanes|v.childLanes,h|=v.subtreeFlags,h|=v.flags,v.return=o,v=v.sibling;return o.subtreeFlags|=h,o.childLanes=l,s}function G3(o,s,l){var h=s.pendingProps;switch($g(s),s.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Kt(s),null;case 1:return Kt(s),null;case 3:return l=s.stateNode,h=null,o!==null&&(h=o.memoizedState.cache),s.memoizedState.cache!==h&&(s.flags|=2048),pa(pn),Ae(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(o===null||o.child===null)&&(lc(s)?ya(s):o===null||o.memoizedState.isDehydrated&&(s.flags&256)===0||(s.flags|=1024,zg())),Kt(s),null;case 26:var v=s.type,_=s.memoizedState;return o===null?(ya(s),_!==null?(Kt(s),yE(s,_)):(Kt(s),Iv(s,v,null,h,l))):_?_!==o.memoizedState?(ya(s),Kt(s),yE(s,_)):(Kt(s),s.flags&=-16777217):(o=o.memoizedProps,o!==h&&ya(s),Kt(s),Iv(s,v,o,h,l)),null;case 27:if(H(s),l=Q.current,v=s.type,o!==null&&s.stateNode!=null)o.memoizedProps!==h&&ya(s);else{if(!h){if(s.stateNode===null)throw Error(r(166));return Kt(s),null}o=L.current,lc(s)?Qw(s):(o=xR(v,h,l),s.stateNode=o,ya(s))}return Kt(s),null;case 5:if(H(s),v=s.type,o!==null&&s.stateNode!=null)o.memoizedProps!==h&&ya(s);else{if(!h){if(s.stateNode===null)throw Error(r(166));return Kt(s),null}if(_=L.current,lc(s))Qw(s);else{var k=Df(Q.current);switch(_){case 1:_=k.createElementNS("http://www.w3.org/2000/svg",v);break;case 2:_=k.createElementNS("http://www.w3.org/1998/Math/MathML",v);break;default:switch(v){case"svg":_=k.createElementNS("http://www.w3.org/2000/svg",v);break;case"math":_=k.createElementNS("http://www.w3.org/1998/Math/MathML",v);break;case"script":_=k.createElement("div"),_.innerHTML="<script><\/script>",_=_.removeChild(_.firstChild);break;case"select":_=typeof h.is=="string"?k.createElement("select",{is:h.is}):k.createElement("select"),h.multiple?_.multiple=!0:h.size&&(_.size=h.size);break;default:_=typeof h.is=="string"?k.createElement(v,{is:h.is}):k.createElement(v)}}_[Vn]=s,_[vr]=h;e:for(k=s.child;k!==null;){if(k.tag===5||k.tag===6)_.appendChild(k.stateNode);else if(k.tag!==4&&k.tag!==27&&k.child!==null){k.child.return=k,k=k.child;continue}if(k===s)break e;for(;k.sibling===null;){if(k.return===null||k.return===s)break e;k=k.return}k.sibling.return=k.return,k=k.sibling}s.stateNode=_;e:switch(Hn(_,v,h),v){case"button":case"input":case"select":case"textarea":h=!!h.autoFocus;break e;case"img":h=!0;break e;default:h=!1}h&&ya(s)}}return Kt(s),Iv(s,s.type,o===null?null:o.memoizedProps,s.pendingProps,l),null;case 6:if(o&&s.stateNode!=null)o.memoizedProps!==h&&ya(s);else{if(typeof h!="string"&&s.stateNode===null)throw Error(r(166));if(o=Q.current,lc(s)){if(o=s.stateNode,l=s.memoizedProps,h=null,v=Fn,v!==null)switch(v.tag){case 27:case 5:h=v.memoizedProps}o[Vn]=s,o=!!(o.nodeValue===l||h!==null&&h.suppressHydrationWarning===!0||pR(o.nodeValue,l)),o||Za(s,!0)}else o=Df(o).createTextNode(h),o[Vn]=s,s.stateNode=o}return Kt(s),null;case 31:if(l=s.memoizedState,o===null||o.memoizedState!==null){if(h=lc(s),l!==null){if(o===null){if(!h)throw Error(r(318));if(o=s.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(557));o[Vn]=s}else ni(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;Kt(s),o=!1}else l=zg(),o!==null&&o.memoizedState!==null&&(o.memoizedState.hydrationErrors=l),o=!0;if(!o)return s.flags&256?(Dr(s),s):(Dr(s),null);if((s.flags&128)!==0)throw Error(r(558))}return Kt(s),null;case 13:if(h=s.memoizedState,o===null||o.memoizedState!==null&&o.memoizedState.dehydrated!==null){if(v=lc(s),h!==null&&h.dehydrated!==null){if(o===null){if(!v)throw Error(r(318));if(v=s.memoizedState,v=v!==null?v.dehydrated:null,!v)throw Error(r(317));v[Vn]=s}else ni(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;Kt(s),v=!1}else v=zg(),o!==null&&o.memoizedState!==null&&(o.memoizedState.hydrationErrors=v),v=!0;if(!v)return s.flags&256?(Dr(s),s):(Dr(s),null)}return Dr(s),(s.flags&128)!==0?(s.lanes=l,s):(l=h!==null,o=o!==null&&o.memoizedState!==null,l&&(h=s.child,v=null,h.alternate!==null&&h.alternate.memoizedState!==null&&h.alternate.memoizedState.cachePool!==null&&(v=h.alternate.memoizedState.cachePool.pool),_=null,h.memoizedState!==null&&h.memoizedState.cachePool!==null&&(_=h.memoizedState.cachePool.pool),_!==v&&(h.flags|=2048)),l!==o&&l&&(s.child.flags|=8192),bf(s,s.updateQueue),Kt(s),null);case 4:return Ae(),o===null&&Xv(s.stateNode.containerInfo),Kt(s),null;case 10:return pa(s.type),Kt(s),null;case 19:if(q(cn),h=s.memoizedState,h===null)return Kt(s),null;if(v=(s.flags&128)!==0,_=h.rendering,_===null)if(v)Xl(h,!1);else{if(an!==0||o!==null&&(o.flags&128)!==0)for(o=s.child;o!==null;){if(_=sf(o),_!==null){for(s.flags|=128,Xl(h,!1),o=_.updateQueue,s.updateQueue=o,bf(s,o),s.subtreeFlags=0,o=l,l=s.child;l!==null;)Gw(l,o),l=l.sibling;return B(cn,cn.current&1|2),Et&&fa(s,h.treeForkCount),s.child}o=o.sibling}h.tail!==null&&Se()>xf&&(s.flags|=128,v=!0,Xl(h,!1),s.lanes=4194304)}else{if(!v)if(o=sf(_),o!==null){if(s.flags|=128,v=!0,o=o.updateQueue,s.updateQueue=o,bf(s,o),Xl(h,!0),h.tail===null&&h.tailMode==="hidden"&&!_.alternate&&!Et)return Kt(s),null}else 2*Se()-h.renderingStartTime>xf&&l!==536870912&&(s.flags|=128,v=!0,Xl(h,!1),s.lanes=4194304);h.isBackwards?(_.sibling=s.child,s.child=_):(o=h.last,o!==null?o.sibling=_:s.child=_,h.last=_)}return h.tail!==null?(o=h.tail,h.rendering=o,h.tail=o.sibling,h.renderingStartTime=Se(),o.sibling=null,l=cn.current,B(cn,v?l&1|2:l&1),Et&&fa(s,h.treeForkCount),o):(Kt(s),null);case 22:case 23:return Dr(s),Jg(),h=s.memoizedState!==null,o!==null?o.memoizedState!==null!==h&&(s.flags|=8192):h&&(s.flags|=8192),h?(l&536870912)!==0&&(s.flags&128)===0&&(Kt(s),s.subtreeFlags&6&&(s.flags|=8192)):Kt(s),l=s.updateQueue,l!==null&&bf(s,l.retryQueue),l=null,o!==null&&o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(l=o.memoizedState.cachePool.pool),h=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(h=s.memoizedState.cachePool.pool),h!==l&&(s.flags|=2048),o!==null&&q(ai),null;case 24:return l=null,o!==null&&(l=o.memoizedState.cache),s.memoizedState.cache!==l&&(s.flags|=2048),pa(pn),Kt(s),null;case 25:return null;case 30:return null}throw Error(r(156,s.tag))}function Z3(o,s){switch($g(s),s.tag){case 1:return o=s.flags,o&65536?(s.flags=o&-65537|128,s):null;case 3:return pa(pn),Ae(),o=s.flags,(o&65536)!==0&&(o&128)===0?(s.flags=o&-65537|128,s):null;case 26:case 27:case 5:return H(s),null;case 31:if(s.memoizedState!==null){if(Dr(s),s.alternate===null)throw Error(r(340));ni()}return o=s.flags,o&65536?(s.flags=o&-65537|128,s):null;case 13:if(Dr(s),o=s.memoizedState,o!==null&&o.dehydrated!==null){if(s.alternate===null)throw Error(r(340));ni()}return o=s.flags,o&65536?(s.flags=o&-65537|128,s):null;case 19:return q(cn),null;case 4:return Ae(),null;case 10:return pa(s.type),null;case 22:case 23:return Dr(s),Jg(),o!==null&&q(ai),o=s.flags,o&65536?(s.flags=o&-65537|128,s):null;case 24:return pa(pn),null;case 25:return null;default:return null}}function _E(o,s){switch($g(s),s.tag){case 3:pa(pn),Ae();break;case 26:case 27:case 5:H(s);break;case 4:Ae();break;case 31:s.memoizedState!==null&&Dr(s);break;case 13:Dr(s);break;case 19:q(cn);break;case 10:pa(s.type);break;case 22:case 23:Dr(s),Jg(),o!==null&&q(ai);break;case 24:pa(pn)}}function Jl(o,s){try{var l=s.updateQueue,h=l!==null?l.lastEffect:null;if(h!==null){var v=h.next;l=v;do{if((l.tag&o)===o){h=void 0;var _=l.create,k=l.inst;h=_(),k.destroy=h}l=l.next}while(l!==v)}}catch(j){Lt(s,s.return,j)}}function es(o,s,l){try{var h=s.updateQueue,v=h!==null?h.lastEffect:null;if(v!==null){var _=v.next;h=_;do{if((h.tag&o)===o){var k=h.inst,j=k.destroy;if(j!==void 0){k.destroy=void 0,v=s;var Y=l,de=j;try{de()}catch(we){Lt(v,Y,we)}}}h=h.next}while(h!==_)}}catch(we){Lt(s,s.return,we)}}function bE(o){var s=o.updateQueue;if(s!==null){var l=o.stateNode;try{uS(s,l)}catch(h){Lt(o,o.return,h)}}}function wE(o,s,l){l.props=ui(o.type,o.memoizedProps),l.state=o.memoizedState;try{l.componentWillUnmount()}catch(h){Lt(o,s,h)}}function eu(o,s){try{var l=o.ref;if(l!==null){switch(o.tag){case 26:case 27:case 5:var h=o.stateNode;break;case 30:h=o.stateNode;break;default:h=o.stateNode}typeof l=="function"?o.refCleanup=l(h):l.current=h}}catch(v){Lt(o,s,v)}}function Ho(o,s){var l=o.ref,h=o.refCleanup;if(l!==null)if(typeof h=="function")try{h()}catch(v){Lt(o,s,v)}finally{o.refCleanup=null,o=o.alternate,o!=null&&(o.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(v){Lt(o,s,v)}else l.current=null}function SE(o){var s=o.type,l=o.memoizedProps,h=o.stateNode;try{e:switch(s){case"button":case"input":case"select":case"textarea":l.autoFocus&&h.focus();break e;case"img":l.src?h.src=l.src:l.srcSet&&(h.srcset=l.srcSet)}}catch(v){Lt(o,o.return,v)}}function kv(o,s,l){try{var h=o.stateNode;m5(h,o.type,l,s),h[vr]=s}catch(v){Lt(o,o.return,v)}}function EE(o){return o.tag===5||o.tag===3||o.tag===26||o.tag===27&&is(o.type)||o.tag===4}function Nv(o){e:for(;;){for(;o.sibling===null;){if(o.return===null||EE(o.return))return null;o=o.return}for(o.sibling.return=o.return,o=o.sibling;o.tag!==5&&o.tag!==6&&o.tag!==18;){if(o.tag===27&&is(o.type)||o.flags&2||o.child===null||o.tag===4)continue e;o.child.return=o,o=o.child}if(!(o.flags&2))return o.stateNode}}function Mv(o,s,l){var h=o.tag;if(h===5||h===6)o=o.stateNode,s?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(o,s):(s=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,s.appendChild(o),l=l._reactRootContainer,l!=null||s.onclick!==null||(s.onclick=la));else if(h!==4&&(h===27&&is(o.type)&&(l=o.stateNode,s=null),o=o.child,o!==null))for(Mv(o,s,l),o=o.sibling;o!==null;)Mv(o,s,l),o=o.sibling}function wf(o,s,l){var h=o.tag;if(h===5||h===6)o=o.stateNode,s?l.insertBefore(o,s):l.appendChild(o);else if(h!==4&&(h===27&&is(o.type)&&(l=o.stateNode),o=o.child,o!==null))for(wf(o,s,l),o=o.sibling;o!==null;)wf(o,s,l),o=o.sibling}function RE(o){var s=o.stateNode,l=o.memoizedProps;try{for(var h=o.type,v=s.attributes;v.length;)s.removeAttributeNode(v[0]);Hn(s,h,l),s[Vn]=o,s[vr]=l}catch(_){Lt(o,o.return,_)}}var _a=!1,vn=!1,Pv=!1,xE=typeof WeakSet=="function"?WeakSet:Set,Pn=null;function K3(o,s){if(o=o.containerInfo,ty=Ff,o=jw(o),Og(o)){if("selectionStart"in o)var l={start:o.selectionStart,end:o.selectionEnd};else e:{l=(l=o.ownerDocument)&&l.defaultView||window;var h=l.getSelection&&l.getSelection();if(h&&h.rangeCount!==0){l=h.anchorNode;var v=h.anchorOffset,_=h.focusNode;h=h.focusOffset;try{l.nodeType,_.nodeType}catch{l=null;break e}var k=0,j=-1,Y=-1,de=0,we=0,xe=o,he=null;t:for(;;){for(var ge;xe!==l||v!==0&&xe.nodeType!==3||(j=k+v),xe!==_||h!==0&&xe.nodeType!==3||(Y=k+h),xe.nodeType===3&&(k+=xe.nodeValue.length),(ge=xe.firstChild)!==null;)he=xe,xe=ge;for(;;){if(xe===o)break t;if(he===l&&++de===v&&(j=k),he===_&&++we===h&&(Y=k),(ge=xe.nextSibling)!==null)break;xe=he,he=xe.parentNode}xe=ge}l=j===-1||Y===-1?null:{start:j,end:Y}}else l=null}l=l||{start:0,end:0}}else l=null;for(ny={focusedElem:o,selectionRange:l},Ff=!1,Pn=s;Pn!==null;)if(s=Pn,o=s.child,(s.subtreeFlags&1028)!==0&&o!==null)o.return=s,Pn=o;else for(;Pn!==null;){switch(s=Pn,_=s.alternate,o=s.flags,s.tag){case 0:if((o&4)!==0&&(o=s.updateQueue,o=o!==null?o.events:null,o!==null))for(l=0;l<o.length;l++)v=o[l],v.ref.impl=v.nextImpl;break;case 11:case 15:break;case 1:if((o&1024)!==0&&_!==null){o=void 0,l=s,v=_.memoizedProps,_=_.memoizedState,h=l.stateNode;try{var Ue=ui(l.type,v);o=h.getSnapshotBeforeUpdate(Ue,_),h.__reactInternalSnapshotBeforeUpdate=o}catch(Ze){Lt(l,l.return,Ze)}}break;case 3:if((o&1024)!==0){if(o=s.stateNode.containerInfo,l=o.nodeType,l===9)ay(o);else if(l===1)switch(o.nodeName){case"HEAD":case"HTML":case"BODY":ay(o);break;default:o.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((o&1024)!==0)throw Error(r(163))}if(o=s.sibling,o!==null){o.return=s.return,Pn=o;break}Pn=s.return}}function TE(o,s,l){var h=l.flags;switch(l.tag){case 0:case 11:case 15:wa(o,l),h&4&&Jl(5,l);break;case 1:if(wa(o,l),h&4)if(o=l.stateNode,s===null)try{o.componentDidMount()}catch(k){Lt(l,l.return,k)}else{var v=ui(l.type,s.memoizedProps);s=s.memoizedState;try{o.componentDidUpdate(v,s,o.__reactInternalSnapshotBeforeUpdate)}catch(k){Lt(l,l.return,k)}}h&64&&bE(l),h&512&&eu(l,l.return);break;case 3:if(wa(o,l),h&64&&(o=l.updateQueue,o!==null)){if(s=null,l.child!==null)switch(l.child.tag){case 27:case 5:s=l.child.stateNode;break;case 1:s=l.child.stateNode}try{uS(o,s)}catch(k){Lt(l,l.return,k)}}break;case 27:s===null&&h&4&&RE(l);case 26:case 5:wa(o,l),s===null&&h&4&&SE(l),h&512&&eu(l,l.return);break;case 12:wa(o,l);break;case 31:wa(o,l),h&4&&AE(o,l);break;case 13:wa(o,l),h&4&&IE(o,l),h&64&&(o=l.memoizedState,o!==null&&(o=o.dehydrated,o!==null&&(l=r5.bind(null,l),E5(o,l))));break;case 22:if(h=l.memoizedState!==null||_a,!h){s=s!==null&&s.memoizedState!==null||vn,v=_a;var _=vn;_a=h,(vn=s)&&!_?Sa(o,l,(l.subtreeFlags&8772)!==0):wa(o,l),_a=v,vn=_}break;case 30:break;default:wa(o,l)}}function OE(o){var s=o.alternate;s!==null&&(o.alternate=null,OE(s)),o.child=null,o.deletions=null,o.sibling=null,o.tag===5&&(s=o.stateNode,s!==null&&ug(s)),o.stateNode=null,o.return=null,o.dependencies=null,o.memoizedProps=null,o.memoizedState=null,o.pendingProps=null,o.stateNode=null,o.updateQueue=null}var Yt=null,_r=!1;function ba(o,s,l){for(l=l.child;l!==null;)CE(o,s,l),l=l.sibling}function CE(o,s,l){if(en&&typeof en.onCommitFiberUnmount=="function")try{en.onCommitFiberUnmount(Un,l)}catch{}switch(l.tag){case 26:vn||Ho(l,s),ba(o,s,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:vn||Ho(l,s);var h=Yt,v=_r;is(l.type)&&(Yt=l.stateNode,_r=!1),ba(o,s,l),lu(l.stateNode),Yt=h,_r=v;break;case 5:vn||Ho(l,s);case 6:if(h=Yt,v=_r,Yt=null,ba(o,s,l),Yt=h,_r=v,Yt!==null)if(_r)try{(Yt.nodeType===9?Yt.body:Yt.nodeName==="HTML"?Yt.ownerDocument.body:Yt).removeChild(l.stateNode)}catch(_){Lt(l,s,_)}else try{Yt.removeChild(l.stateNode)}catch(_){Lt(l,s,_)}break;case 18:Yt!==null&&(_r?(o=Yt,bR(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,l.stateNode),Ic(o)):bR(Yt,l.stateNode));break;case 4:h=Yt,v=_r,Yt=l.stateNode.containerInfo,_r=!0,ba(o,s,l),Yt=h,_r=v;break;case 0:case 11:case 14:case 15:es(2,l,s),vn||es(4,l,s),ba(o,s,l);break;case 1:vn||(Ho(l,s),h=l.stateNode,typeof h.componentWillUnmount=="function"&&wE(l,s,h)),ba(o,s,l);break;case 21:ba(o,s,l);break;case 22:vn=(h=vn)||l.memoizedState!==null,ba(o,s,l),vn=h;break;default:ba(o,s,l)}}function AE(o,s){if(s.memoizedState===null&&(o=s.alternate,o!==null&&(o=o.memoizedState,o!==null))){o=o.dehydrated;try{Ic(o)}catch(l){Lt(s,s.return,l)}}}function IE(o,s){if(s.memoizedState===null&&(o=s.alternate,o!==null&&(o=o.memoizedState,o!==null&&(o=o.dehydrated,o!==null))))try{Ic(o)}catch(l){Lt(s,s.return,l)}}function W3(o){switch(o.tag){case 31:case 13:case 19:var s=o.stateNode;return s===null&&(s=o.stateNode=new xE),s;case 22:return o=o.stateNode,s=o._retryCache,s===null&&(s=o._retryCache=new xE),s;default:throw Error(r(435,o.tag))}}function Sf(o,s){var l=W3(o);s.forEach(function(h){if(!l.has(h)){l.add(h);var v=o5.bind(null,o,h);h.then(v,v)}})}function br(o,s){var l=s.deletions;if(l!==null)for(var h=0;h<l.length;h++){var v=l[h],_=o,k=s,j=k;e:for(;j!==null;){switch(j.tag){case 27:if(is(j.type)){Yt=j.stateNode,_r=!1;break e}break;case 5:Yt=j.stateNode,_r=!1;break e;case 3:case 4:Yt=j.stateNode.containerInfo,_r=!0;break e}j=j.return}if(Yt===null)throw Error(r(160));CE(_,k,v),Yt=null,_r=!1,_=v.alternate,_!==null&&(_.return=null),v.return=null}if(s.subtreeFlags&13886)for(s=s.child;s!==null;)kE(s,o),s=s.sibling}var Eo=null;function kE(o,s){var l=o.alternate,h=o.flags;switch(o.tag){case 0:case 11:case 14:case 15:br(s,o),wr(o),h&4&&(es(3,o,o.return),Jl(3,o),es(5,o,o.return));break;case 1:br(s,o),wr(o),h&512&&(vn||l===null||Ho(l,l.return)),h&64&&_a&&(o=o.updateQueue,o!==null&&(h=o.callbacks,h!==null&&(l=o.shared.hiddenCallbacks,o.shared.hiddenCallbacks=l===null?h:l.concat(h))));break;case 26:var v=Eo;if(br(s,o),wr(o),h&512&&(vn||l===null||Ho(l,l.return)),h&4){var _=l!==null?l.memoizedState:null;if(h=o.memoizedState,l===null)if(h===null)if(o.stateNode===null){e:{h=o.type,l=o.memoizedProps,v=v.ownerDocument||v;t:switch(h){case"title":_=v.getElementsByTagName("title")[0],(!_||_[Ol]||_[Vn]||_.namespaceURI==="http://www.w3.org/2000/svg"||_.hasAttribute("itemprop"))&&(_=v.createElement(h),v.head.insertBefore(_,v.querySelector("head > title"))),Hn(_,h,l),_[Vn]=o,Mn(_),h=_;break e;case"link":var k=kR("link","href",v).get(h+(l.href||""));if(k){for(var j=0;j<k.length;j++)if(_=k[j],_.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&_.getAttribute("rel")===(l.rel==null?null:l.rel)&&_.getAttribute("title")===(l.title==null?null:l.title)&&_.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){k.splice(j,1);break t}}_=v.createElement(h),Hn(_,h,l),v.head.appendChild(_);break;case"meta":if(k=kR("meta","content",v).get(h+(l.content||""))){for(j=0;j<k.length;j++)if(_=k[j],_.getAttribute("content")===(l.content==null?null:""+l.content)&&_.getAttribute("name")===(l.name==null?null:l.name)&&_.getAttribute("property")===(l.property==null?null:l.property)&&_.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&_.getAttribute("charset")===(l.charSet==null?null:l.charSet)){k.splice(j,1);break t}}_=v.createElement(h),Hn(_,h,l),v.head.appendChild(_);break;default:throw Error(r(468,h))}_[Vn]=o,Mn(_),h=_}o.stateNode=h}else NR(v,o.type,o.stateNode);else o.stateNode=IR(v,h,o.memoizedProps);else _!==h?(_===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):_.count--,h===null?NR(v,o.type,o.stateNode):IR(v,h,o.memoizedProps)):h===null&&o.stateNode!==null&&kv(o,o.memoizedProps,l.memoizedProps)}break;case 27:br(s,o),wr(o),h&512&&(vn||l===null||Ho(l,l.return)),l!==null&&h&4&&kv(o,o.memoizedProps,l.memoizedProps);break;case 5:if(br(s,o),wr(o),h&512&&(vn||l===null||Ho(l,l.return)),o.flags&32){v=o.stateNode;try{Ji(v,"")}catch(Ue){Lt(o,o.return,Ue)}}h&4&&o.stateNode!=null&&(v=o.memoizedProps,kv(o,v,l!==null?l.memoizedProps:v)),h&1024&&(Pv=!0);break;case 6:if(br(s,o),wr(o),h&4){if(o.stateNode===null)throw Error(r(162));h=o.memoizedProps,l=o.stateNode;try{l.nodeValue=h}catch(Ue){Lt(o,o.return,Ue)}}break;case 3:if($f=null,v=Eo,Eo=Lf(s.containerInfo),br(s,o),Eo=v,wr(o),h&4&&l!==null&&l.memoizedState.isDehydrated)try{Ic(s.containerInfo)}catch(Ue){Lt(o,o.return,Ue)}Pv&&(Pv=!1,NE(o));break;case 4:h=Eo,Eo=Lf(o.stateNode.containerInfo),br(s,o),wr(o),Eo=h;break;case 12:br(s,o),wr(o);break;case 31:br(s,o),wr(o),h&4&&(h=o.updateQueue,h!==null&&(o.updateQueue=null,Sf(o,h)));break;case 13:br(s,o),wr(o),o.child.flags&8192&&o.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Rf=Se()),h&4&&(h=o.updateQueue,h!==null&&(o.updateQueue=null,Sf(o,h)));break;case 22:v=o.memoizedState!==null;var Y=l!==null&&l.memoizedState!==null,de=_a,we=vn;if(_a=de||v,vn=we||Y,br(s,o),vn=we,_a=de,wr(o),h&8192)e:for(s=o.stateNode,s._visibility=v?s._visibility&-2:s._visibility|1,v&&(l===null||Y||_a||vn||di(o)),l=null,s=o;;){if(s.tag===5||s.tag===26){if(l===null){Y=l=s;try{if(_=Y.stateNode,v)k=_.style,typeof k.setProperty=="function"?k.setProperty("display","none","important"):k.display="none";else{j=Y.stateNode;var xe=Y.memoizedProps.style,he=xe!=null&&xe.hasOwnProperty("display")?xe.display:null;j.style.display=he==null||typeof he=="boolean"?"":(""+he).trim()}}catch(Ue){Lt(Y,Y.return,Ue)}}}else if(s.tag===6){if(l===null){Y=s;try{Y.stateNode.nodeValue=v?"":Y.memoizedProps}catch(Ue){Lt(Y,Y.return,Ue)}}}else if(s.tag===18){if(l===null){Y=s;try{var ge=Y.stateNode;v?wR(ge,!0):wR(Y.stateNode,!1)}catch(Ue){Lt(Y,Y.return,Ue)}}}else if((s.tag!==22&&s.tag!==23||s.memoizedState===null||s===o)&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===o)break e;for(;s.sibling===null;){if(s.return===null||s.return===o)break e;l===s&&(l=null),s=s.return}l===s&&(l=null),s.sibling.return=s.return,s=s.sibling}h&4&&(h=o.updateQueue,h!==null&&(l=h.retryQueue,l!==null&&(h.retryQueue=null,Sf(o,l))));break;case 19:br(s,o),wr(o),h&4&&(h=o.updateQueue,h!==null&&(o.updateQueue=null,Sf(o,h)));break;case 30:break;case 21:break;default:br(s,o),wr(o)}}function wr(o){var s=o.flags;if(s&2){try{for(var l,h=o.return;h!==null;){if(EE(h)){l=h;break}h=h.return}if(l==null)throw Error(r(160));switch(l.tag){case 27:var v=l.stateNode,_=Nv(o);wf(o,_,v);break;case 5:var k=l.stateNode;l.flags&32&&(Ji(k,""),l.flags&=-33);var j=Nv(o);wf(o,j,k);break;case 3:case 4:var Y=l.stateNode.containerInfo,de=Nv(o);Mv(o,de,Y);break;default:throw Error(r(161))}}catch(we){Lt(o,o.return,we)}o.flags&=-3}s&4096&&(o.flags&=-4097)}function NE(o){if(o.subtreeFlags&1024)for(o=o.child;o!==null;){var s=o;NE(s),s.tag===5&&s.flags&1024&&s.stateNode.reset(),o=o.sibling}}function wa(o,s){if(s.subtreeFlags&8772)for(s=s.child;s!==null;)TE(o,s.alternate,s),s=s.sibling}function di(o){for(o=o.child;o!==null;){var s=o;switch(s.tag){case 0:case 11:case 14:case 15:es(4,s,s.return),di(s);break;case 1:Ho(s,s.return);var l=s.stateNode;typeof l.componentWillUnmount=="function"&&wE(s,s.return,l),di(s);break;case 27:lu(s.stateNode);case 26:case 5:Ho(s,s.return),di(s);break;case 22:s.memoizedState===null&&di(s);break;case 30:di(s);break;default:di(s)}o=o.sibling}}function Sa(o,s,l){for(l=l&&(s.subtreeFlags&8772)!==0,s=s.child;s!==null;){var h=s.alternate,v=o,_=s,k=_.flags;switch(_.tag){case 0:case 11:case 15:Sa(v,_,l),Jl(4,_);break;case 1:if(Sa(v,_,l),h=_,v=h.stateNode,typeof v.componentDidMount=="function")try{v.componentDidMount()}catch(de){Lt(h,h.return,de)}if(h=_,v=h.updateQueue,v!==null){var j=h.stateNode;try{var Y=v.shared.hiddenCallbacks;if(Y!==null)for(v.shared.hiddenCallbacks=null,v=0;v<Y.length;v++)lS(Y[v],j)}catch(de){Lt(h,h.return,de)}}l&&k&64&&bE(_),eu(_,_.return);break;case 27:RE(_);case 26:case 5:Sa(v,_,l),l&&h===null&&k&4&&SE(_),eu(_,_.return);break;case 12:Sa(v,_,l);break;case 31:Sa(v,_,l),l&&k&4&&AE(v,_);break;case 13:Sa(v,_,l),l&&k&4&&IE(v,_);break;case 22:_.memoizedState===null&&Sa(v,_,l),eu(_,_.return);break;case 30:break;default:Sa(v,_,l)}s=s.sibling}}function Dv(o,s){var l=null;o!==null&&o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(l=o.memoizedState.cachePool.pool),o=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(o=s.memoizedState.cachePool.pool),o!==l&&(o!=null&&o.refCount++,l!=null&&zl(l))}function Lv(o,s){o=null,s.alternate!==null&&(o=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==o&&(s.refCount++,o!=null&&zl(o))}function Ro(o,s,l,h){if(s.subtreeFlags&10256)for(s=s.child;s!==null;)ME(o,s,l,h),s=s.sibling}function ME(o,s,l,h){var v=s.flags;switch(s.tag){case 0:case 11:case 15:Ro(o,s,l,h),v&2048&&Jl(9,s);break;case 1:Ro(o,s,l,h);break;case 3:Ro(o,s,l,h),v&2048&&(o=null,s.alternate!==null&&(o=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==o&&(s.refCount++,o!=null&&zl(o)));break;case 12:if(v&2048){Ro(o,s,l,h),o=s.stateNode;try{var _=s.memoizedProps,k=_.id,j=_.onPostCommit;typeof j=="function"&&j(k,s.alternate===null?"mount":"update",o.passiveEffectDuration,-0)}catch(Y){Lt(s,s.return,Y)}}else Ro(o,s,l,h);break;case 31:Ro(o,s,l,h);break;case 13:Ro(o,s,l,h);break;case 23:break;case 22:_=s.stateNode,k=s.alternate,s.memoizedState!==null?_._visibility&2?Ro(o,s,l,h):tu(o,s):_._visibility&2?Ro(o,s,l,h):(_._visibility|=2,_c(o,s,l,h,(s.subtreeFlags&10256)!==0||!1)),v&2048&&Dv(k,s);break;case 24:Ro(o,s,l,h),v&2048&&Lv(s.alternate,s);break;default:Ro(o,s,l,h)}}function _c(o,s,l,h,v){for(v=v&&((s.subtreeFlags&10256)!==0||!1),s=s.child;s!==null;){var _=o,k=s,j=l,Y=h,de=k.flags;switch(k.tag){case 0:case 11:case 15:_c(_,k,j,Y,v),Jl(8,k);break;case 23:break;case 22:var we=k.stateNode;k.memoizedState!==null?we._visibility&2?_c(_,k,j,Y,v):tu(_,k):(we._visibility|=2,_c(_,k,j,Y,v)),v&&de&2048&&Dv(k.alternate,k);break;case 24:_c(_,k,j,Y,v),v&&de&2048&&Lv(k.alternate,k);break;default:_c(_,k,j,Y,v)}s=s.sibling}}function tu(o,s){if(s.subtreeFlags&10256)for(s=s.child;s!==null;){var l=o,h=s,v=h.flags;switch(h.tag){case 22:tu(l,h),v&2048&&Dv(h.alternate,h);break;case 24:tu(l,h),v&2048&&Lv(h.alternate,h);break;default:tu(l,h)}s=s.sibling}}var nu=8192;function bc(o,s,l){if(o.subtreeFlags&nu)for(o=o.child;o!==null;)PE(o,s,l),o=o.sibling}function PE(o,s,l){switch(o.tag){case 26:bc(o,s,l),o.flags&nu&&o.memoizedState!==null&&D5(l,Eo,o.memoizedState,o.memoizedProps);break;case 5:bc(o,s,l);break;case 3:case 4:var h=Eo;Eo=Lf(o.stateNode.containerInfo),bc(o,s,l),Eo=h;break;case 22:o.memoizedState===null&&(h=o.alternate,h!==null&&h.memoizedState!==null?(h=nu,nu=16777216,bc(o,s,l),nu=h):bc(o,s,l));break;default:bc(o,s,l)}}function DE(o){var s=o.alternate;if(s!==null&&(o=s.child,o!==null)){s.child=null;do s=o.sibling,o.sibling=null,o=s;while(o!==null)}}function ru(o){var s=o.deletions;if((o.flags&16)!==0){if(s!==null)for(var l=0;l<s.length;l++){var h=s[l];Pn=h,jE(h,o)}DE(o)}if(o.subtreeFlags&10256)for(o=o.child;o!==null;)LE(o),o=o.sibling}function LE(o){switch(o.tag){case 0:case 11:case 15:ru(o),o.flags&2048&&es(9,o,o.return);break;case 3:ru(o);break;case 12:ru(o);break;case 22:var s=o.stateNode;o.memoizedState!==null&&s._visibility&2&&(o.return===null||o.return.tag!==13)?(s._visibility&=-3,Ef(o)):ru(o);break;default:ru(o)}}function Ef(o){var s=o.deletions;if((o.flags&16)!==0){if(s!==null)for(var l=0;l<s.length;l++){var h=s[l];Pn=h,jE(h,o)}DE(o)}for(o=o.child;o!==null;){switch(s=o,s.tag){case 0:case 11:case 15:es(8,s,s.return),Ef(s);break;case 22:l=s.stateNode,l._visibility&2&&(l._visibility&=-3,Ef(s));break;default:Ef(s)}o=o.sibling}}function jE(o,s){for(;Pn!==null;){var l=Pn;switch(l.tag){case 0:case 11:case 15:es(8,l,s);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var h=l.memoizedState.cachePool.pool;h!=null&&h.refCount++}break;case 24:zl(l.memoizedState.cache)}if(h=l.child,h!==null)h.return=l,Pn=h;else e:for(l=o;Pn!==null;){h=Pn;var v=h.sibling,_=h.return;if(OE(h),h===l){Pn=null;break e}if(v!==null){v.return=_,Pn=v;break e}Pn=_}}}var Y3={getCacheForType:function(o){var s=Bn(pn),l=s.data.get(o);return l===void 0&&(l=o(),s.data.set(o,l)),l},cacheSignal:function(){return Bn(pn).controller.signal}},Q3=typeof WeakMap=="function"?WeakMap:Map,Nt=0,qt=null,vt=null,wt=0,Dt=0,Lr=null,ts=!1,wc=!1,jv=!1,Ea=0,an=0,ns=0,fi=0,$v=0,jr=0,Sc=0,ou=null,Sr=null,Uv=!1,Rf=0,$E=0,xf=1/0,Tf=null,rs=null,xn=0,os=null,Ec=null,Ra=0,zv=0,Vv=null,UE=null,au=0,Fv=null;function $r(){return(Nt&2)!==0&&wt!==0?wt&-wt:F.T!==null?Kv():cg()}function zE(){if(jr===0)if((wt&536870912)===0||Et){var o=Hi;Hi<<=1,(Hi&3932160)===0&&(Hi=262144),jr=o}else jr=536870912;return o=Pr.current,o!==null&&(o.flags|=32),jr}function Er(o,s,l){(o===qt&&(Dt===2||Dt===9)||o.cancelPendingCommit!==null)&&(Rc(o,0),as(o,wt,jr,!1)),tn(o,l),((Nt&2)===0||o!==qt)&&(o===qt&&((Nt&2)===0&&(fi|=l),an===4&&as(o,wt,jr,!1)),Go(o))}function VE(o,s,l){if((Nt&6)!==0)throw Error(r(327));var h=!l&&(s&127)===0&&(s&o.expiredLanes)===0||Wt(o,s),v=h?e5(o,s):qv(o,s,!0),_=h;do{if(v===0){wc&&!h&&as(o,s,0,!1);break}else{if(l=o.current.alternate,_&&!X3(l)){v=qv(o,s,!1),_=!1;continue}if(v===2){if(_=s,o.errorRecoveryDisabledLanes&_)var k=0;else k=o.pendingLanes&-536870913,k=k!==0?k:k&536870912?536870912:0;if(k!==0){s=k;e:{var j=o;v=ou;var Y=j.current.memoizedState.isDehydrated;if(Y&&(Rc(j,k).flags|=256),k=qv(j,k,!1),k!==2){if(jv&&!Y){j.errorRecoveryDisabledLanes|=_,fi|=_,v=4;break e}_=Sr,Sr=v,_!==null&&(Sr===null?Sr=_:Sr.push.apply(Sr,_))}v=k}if(_=!1,v!==2)continue}}if(v===1){Rc(o,0),as(o,s,0,!0);break}e:{switch(h=o,_=v,_){case 0:case 1:throw Error(r(345));case 4:if((s&4194048)!==s)break;case 6:as(h,s,jr,!ts);break e;case 2:Sr=null;break;case 3:case 5:break;default:throw Error(r(329))}if((s&62914560)===s&&(v=Rf+300-Se(),10<v)){if(as(h,s,jr,!ts),Qe(h,0,!0)!==0)break e;Ra=s,h.timeoutHandle=yR(FE.bind(null,h,l,Sr,Tf,Uv,s,jr,fi,Sc,ts,_,"Throttled",-0,0),v);break e}FE(h,l,Sr,Tf,Uv,s,jr,fi,Sc,ts,_,null,-0,0)}}break}while(!0);Go(o)}function FE(o,s,l,h,v,_,k,j,Y,de,we,xe,he,ge){if(o.timeoutHandle=-1,xe=s.subtreeFlags,xe&8192||(xe&16785408)===16785408){xe={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:la},PE(s,_,xe);var Ue=(_&62914560)===_?Rf-Se():(_&4194048)===_?$E-Se():0;if(Ue=L5(xe,Ue),Ue!==null){Ra=_,o.cancelPendingCommit=Ue(YE.bind(null,o,s,_,l,h,v,k,j,Y,we,xe,null,he,ge)),as(o,_,k,!de);return}}YE(o,s,_,l,h,v,k,j,Y)}function X3(o){for(var s=o;;){var l=s.tag;if((l===0||l===11||l===15)&&s.flags&16384&&(l=s.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var h=0;h<l.length;h++){var v=l[h],_=v.getSnapshot;v=v.value;try{if(!Nr(_(),v))return!1}catch{return!1}}if(l=s.child,s.subtreeFlags&16384&&l!==null)l.return=s,s=l;else{if(s===o)break;for(;s.sibling===null;){if(s.return===null||s.return===o)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function as(o,s,l,h){s&=~$v,s&=~fi,o.suspendedLanes|=s,o.pingedLanes&=~s,h&&(o.warmLanes|=s),h=o.expirationTimes;for(var v=s;0<v;){var _=31-kn(v),k=1<<_;h[_]=-1,v&=~k}l!==0&&Ws(o,l,s)}function Of(){return(Nt&6)===0?(su(0),!1):!0}function Bv(){if(vt!==null){if(Dt===0)var o=vt.return;else o=vt,ha=ri=null,av(o),pc=null,Fl=0,o=vt;for(;o!==null;)_E(o.alternate,o),o=o.return;vt=null}}function Rc(o,s){var l=o.timeoutHandle;l!==-1&&(o.timeoutHandle=-1,y5(l)),l=o.cancelPendingCommit,l!==null&&(o.cancelPendingCommit=null,l()),Ra=0,Bv(),qt=o,vt=l=da(o.current,null),wt=s,Dt=0,Lr=null,ts=!1,wc=Wt(o,s),jv=!1,Sc=jr=$v=fi=ns=an=0,Sr=ou=null,Uv=!1,(s&8)!==0&&(s|=s&32);var h=o.entangledLanes;if(h!==0)for(o=o.entanglements,h&=s;0<h;){var v=31-kn(h),_=1<<v;s|=o[v],h&=~_}return Ea=s,Zd(),l}function BE(o,s){at=null,F.H=Yl,s===hc||s===tf?(s=aS(),Dt=3):s===Zg?(s=aS(),Dt=4):Dt=s===wv?8:s!==null&&typeof s=="object"&&typeof s.then=="function"?6:1,Lr=s,vt===null&&(an=1,gf(o,eo(s,o.current)))}function qE(){var o=Pr.current;return o===null?!0:(wt&4194048)===wt?oo===null:(wt&62914560)===wt||(wt&536870912)!==0?o===oo:!1}function HE(){var o=F.H;return F.H=Yl,o===null?Yl:o}function GE(){var o=F.A;return F.A=Y3,o}function Cf(){an=4,ts||(wt&4194048)!==wt&&Pr.current!==null||(wc=!0),(ns&134217727)===0&&(fi&134217727)===0||qt===null||as(qt,wt,jr,!1)}function qv(o,s,l){var h=Nt;Nt|=2;var v=HE(),_=GE();(qt!==o||wt!==s)&&(Tf=null,Rc(o,s)),s=!1;var k=an;e:do try{if(Dt!==0&&vt!==null){var j=vt,Y=Lr;switch(Dt){case 8:Bv(),k=6;break e;case 3:case 2:case 9:case 6:Pr.current===null&&(s=!0);var de=Dt;if(Dt=0,Lr=null,xc(o,j,Y,de),l&&wc){k=0;break e}break;default:de=Dt,Dt=0,Lr=null,xc(o,j,Y,de)}}J3(),k=an;break}catch(we){BE(o,we)}while(!0);return s&&o.shellSuspendCounter++,ha=ri=null,Nt=h,F.H=v,F.A=_,vt===null&&(qt=null,wt=0,Zd()),k}function J3(){for(;vt!==null;)ZE(vt)}function e5(o,s){var l=Nt;Nt|=2;var h=HE(),v=GE();qt!==o||wt!==s?(Tf=null,xf=Se()+500,Rc(o,s)):wc=Wt(o,s);e:do try{if(Dt!==0&&vt!==null){s=vt;var _=Lr;t:switch(Dt){case 1:Dt=0,Lr=null,xc(o,s,_,1);break;case 2:case 9:if(rS(_)){Dt=0,Lr=null,KE(s);break}s=function(){Dt!==2&&Dt!==9||qt!==o||(Dt=7),Go(o)},_.then(s,s);break e;case 3:Dt=7;break e;case 4:Dt=5;break e;case 7:rS(_)?(Dt=0,Lr=null,KE(s)):(Dt=0,Lr=null,xc(o,s,_,7));break;case 5:var k=null;switch(vt.tag){case 26:k=vt.memoizedState;case 5:case 27:var j=vt;if(k?MR(k):j.stateNode.complete){Dt=0,Lr=null;var Y=j.sibling;if(Y!==null)vt=Y;else{var de=j.return;de!==null?(vt=de,Af(de)):vt=null}break t}}Dt=0,Lr=null,xc(o,s,_,5);break;case 6:Dt=0,Lr=null,xc(o,s,_,6);break;case 8:Bv(),an=6;break e;default:throw Error(r(462))}}t5();break}catch(we){BE(o,we)}while(!0);return ha=ri=null,F.H=h,F.A=v,Nt=l,vt!==null?0:(qt=null,wt=0,Zd(),an)}function t5(){for(;vt!==null&&!te();)ZE(vt)}function ZE(o){var s=vE(o.alternate,o,Ea);o.memoizedProps=o.pendingProps,s===null?Af(o):vt=s}function KE(o){var s=o,l=s.alternate;switch(s.tag){case 15:case 0:s=dE(l,s,s.pendingProps,s.type,void 0,wt);break;case 11:s=dE(l,s,s.pendingProps,s.type.render,s.ref,wt);break;case 5:av(s);default:_E(l,s),s=vt=Gw(s,Ea),s=vE(l,s,Ea)}o.memoizedProps=o.pendingProps,s===null?Af(o):vt=s}function xc(o,s,l,h){ha=ri=null,av(s),pc=null,Fl=0;var v=s.return;try{if(B3(o,v,s,l,wt)){an=1,gf(o,eo(l,o.current)),vt=null;return}}catch(_){if(v!==null)throw vt=v,_;an=1,gf(o,eo(l,o.current)),vt=null;return}s.flags&32768?(Et||h===1?o=!0:wc||(wt&536870912)!==0?o=!1:(ts=o=!0,(h===2||h===9||h===3||h===6)&&(h=Pr.current,h!==null&&h.tag===13&&(h.flags|=16384))),WE(s,o)):Af(s)}function Af(o){var s=o;do{if((s.flags&32768)!==0){WE(s,ts);return}o=s.return;var l=G3(s.alternate,s,Ea);if(l!==null){vt=l;return}if(s=s.sibling,s!==null){vt=s;return}vt=s=o}while(s!==null);an===0&&(an=5)}function WE(o,s){do{var l=Z3(o.alternate,o);if(l!==null){l.flags&=32767,vt=l;return}if(l=o.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!s&&(o=o.sibling,o!==null)){vt=o;return}vt=o=l}while(o!==null);an=6,vt=null}function YE(o,s,l,h,v,_,k,j,Y){o.cancelPendingCommit=null;do If();while(xn!==0);if((Nt&6)!==0)throw Error(r(327));if(s!==null){if(s===o.current)throw Error(r(177));if(_=s.lanes|s.childLanes,_|=Ng,pr(o,l,_,k,j,Y),o===qt&&(vt=qt=null,wt=0),Ec=s,os=o,Ra=l,zv=_,Vv=v,UE=h,(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?(o.callbackNode=null,o.callbackPriority=0,a5(rt,function(){return tR(),null})):(o.callbackNode=null,o.callbackPriority=0),h=(s.flags&13878)!==0,(s.subtreeFlags&13878)!==0||h){h=F.T,F.T=null,v=X.p,X.p=2,k=Nt,Nt|=4;try{K3(o,s,l)}finally{Nt=k,X.p=v,F.T=h}}xn=1,QE(),XE(),JE()}}function QE(){if(xn===1){xn=0;var o=os,s=Ec,l=(s.flags&13878)!==0;if((s.subtreeFlags&13878)!==0||l){l=F.T,F.T=null;var h=X.p;X.p=2;var v=Nt;Nt|=4;try{kE(s,o);var _=ny,k=jw(o.containerInfo),j=_.focusedElem,Y=_.selectionRange;if(k!==j&&j&&j.ownerDocument&&Lw(j.ownerDocument.documentElement,j)){if(Y!==null&&Og(j)){var de=Y.start,we=Y.end;if(we===void 0&&(we=de),"selectionStart"in j)j.selectionStart=de,j.selectionEnd=Math.min(we,j.value.length);else{var xe=j.ownerDocument||document,he=xe&&xe.defaultView||window;if(he.getSelection){var ge=he.getSelection(),Ue=j.textContent.length,Ze=Math.min(Y.start,Ue),Ft=Y.end===void 0?Ze:Math.min(Y.end,Ue);!ge.extend&&Ze>Ft&&(k=Ft,Ft=Ze,Ze=k);var se=Dw(j,Ze),ee=Dw(j,Ft);if(se&&ee&&(ge.rangeCount!==1||ge.anchorNode!==se.node||ge.anchorOffset!==se.offset||ge.focusNode!==ee.node||ge.focusOffset!==ee.offset)){var ue=xe.createRange();ue.setStart(se.node,se.offset),ge.removeAllRanges(),Ze>Ft?(ge.addRange(ue),ge.extend(ee.node,ee.offset)):(ue.setEnd(ee.node,ee.offset),ge.addRange(ue))}}}}for(xe=[],ge=j;ge=ge.parentNode;)ge.nodeType===1&&xe.push({element:ge,left:ge.scrollLeft,top:ge.scrollTop});for(typeof j.focus=="function"&&j.focus(),j=0;j<xe.length;j++){var Ee=xe[j];Ee.element.scrollLeft=Ee.left,Ee.element.scrollTop=Ee.top}}Ff=!!ty,ny=ty=null}finally{Nt=v,X.p=h,F.T=l}}o.current=s,xn=2}}function XE(){if(xn===2){xn=0;var o=os,s=Ec,l=(s.flags&8772)!==0;if((s.subtreeFlags&8772)!==0||l){l=F.T,F.T=null;var h=X.p;X.p=2;var v=Nt;Nt|=4;try{TE(o,s.alternate,s)}finally{Nt=v,X.p=h,F.T=l}}xn=3}}function JE(){if(xn===4||xn===3){xn=0,oe();var o=os,s=Ec,l=Ra,h=UE;(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?xn=5:(xn=0,Ec=os=null,eR(o,o.pendingLanes));var v=o.pendingLanes;if(v===0&&(rs=null),wo(l),s=s.stateNode,en&&typeof en.onCommitFiberRoot=="function")try{en.onCommitFiberRoot(Un,s,void 0,(s.current.flags&128)===128)}catch{}if(h!==null){s=F.T,v=X.p,X.p=2,F.T=null;try{for(var _=o.onRecoverableError,k=0;k<h.length;k++){var j=h[k];_(j.value,{componentStack:j.stack})}}finally{F.T=s,X.p=v}}(Ra&3)!==0&&If(),Go(o),v=o.pendingLanes,(l&261930)!==0&&(v&42)!==0?o===Fv?au++:(au=0,Fv=o):au=0,su(0)}}function eR(o,s){(o.pooledCacheLanes&=s)===0&&(s=o.pooledCache,s!=null&&(o.pooledCache=null,zl(s)))}function If(){return QE(),XE(),JE(),tR()}function tR(){if(xn!==5)return!1;var o=os,s=zv;zv=0;var l=wo(Ra),h=F.T,v=X.p;try{X.p=32>l?32:l,F.T=null,l=Vv,Vv=null;var _=os,k=Ra;if(xn=0,Ec=os=null,Ra=0,(Nt&6)!==0)throw Error(r(331));var j=Nt;if(Nt|=4,LE(_.current),ME(_,_.current,k,l),Nt=j,su(0,!1),en&&typeof en.onPostCommitFiberRoot=="function")try{en.onPostCommitFiberRoot(Un,_)}catch{}return!0}finally{X.p=v,F.T=h,eR(o,s)}}function nR(o,s,l){s=eo(l,s),s=bv(o.stateNode,s,2),o=Qa(o,s,2),o!==null&&(tn(o,2),Go(o))}function Lt(o,s,l){if(o.tag===3)nR(o,o,l);else for(;s!==null;){if(s.tag===3){nR(s,o,l);break}else if(s.tag===1){var h=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof h.componentDidCatch=="function"&&(rs===null||!rs.has(h))){o=eo(l,o),l=rE(2),h=Qa(s,l,2),h!==null&&(oE(l,h,s,o),tn(h,2),Go(h));break}}s=s.return}}function Hv(o,s,l){var h=o.pingCache;if(h===null){h=o.pingCache=new Q3;var v=new Set;h.set(s,v)}else v=h.get(s),v===void 0&&(v=new Set,h.set(s,v));v.has(l)||(jv=!0,v.add(l),o=n5.bind(null,o,s,l),s.then(o,o))}function n5(o,s,l){var h=o.pingCache;h!==null&&h.delete(s),o.pingedLanes|=o.suspendedLanes&l,o.warmLanes&=~l,qt===o&&(wt&l)===l&&(an===4||an===3&&(wt&62914560)===wt&&300>Se()-Rf?(Nt&2)===0&&Rc(o,0):$v|=l,Sc===wt&&(Sc=0)),Go(o)}function rR(o,s){s===0&&(s=er()),o=ei(o,s),o!==null&&(tn(o,s),Go(o))}function r5(o){var s=o.memoizedState,l=0;s!==null&&(l=s.retryLane),rR(o,l)}function o5(o,s){var l=0;switch(o.tag){case 31:case 13:var h=o.stateNode,v=o.memoizedState;v!==null&&(l=v.retryLane);break;case 19:h=o.stateNode;break;case 22:h=o.stateNode._retryCache;break;default:throw Error(r(314))}h!==null&&h.delete(s),rR(o,l)}function a5(o,s){return Xe(o,s)}var kf=null,Tc=null,Gv=!1,Nf=!1,Zv=!1,ss=0;function Go(o){o!==Tc&&o.next===null&&(Tc===null?kf=Tc=o:Tc=Tc.next=o),Nf=!0,Gv||(Gv=!0,i5())}function su(o,s){if(!Zv&&Nf){Zv=!0;do for(var l=!1,h=kf;h!==null;){if(o!==0){var v=h.pendingLanes;if(v===0)var _=0;else{var k=h.suspendedLanes,j=h.pingedLanes;_=(1<<31-kn(42|o)+1)-1,_&=v&~(k&~j),_=_&201326741?_&201326741|1:_?_|2:0}_!==0&&(l=!0,iR(h,_))}else _=wt,_=Qe(h,h===qt?_:0,h.cancelPendingCommit!==null||h.timeoutHandle!==-1),(_&3)===0||Wt(h,_)||(l=!0,iR(h,_));h=h.next}while(l);Zv=!1}}function s5(){oR()}function oR(){Nf=Gv=!1;var o=0;ss!==0&&v5()&&(o=ss);for(var s=Se(),l=null,h=kf;h!==null;){var v=h.next,_=aR(h,s);_===0?(h.next=null,l===null?kf=v:l.next=v,v===null&&(Tc=l)):(l=h,(o!==0||(_&3)!==0)&&(Nf=!0)),h=v}xn!==0&&xn!==5||su(o),ss!==0&&(ss=0)}function aR(o,s){for(var l=o.suspendedLanes,h=o.pingedLanes,v=o.expirationTimes,_=o.pendingLanes&-62914561;0<_;){var k=31-kn(_),j=1<<k,Y=v[k];Y===-1?((j&l)===0||(j&h)!==0)&&(v[k]=Nn(j,s)):Y<=s&&(o.expiredLanes|=j),_&=~j}if(s=qt,l=wt,l=Qe(o,o===s?l:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),h=o.callbackNode,l===0||o===s&&(Dt===2||Dt===9)||o.cancelPendingCommit!==null)return h!==null&&h!==null&&Z(h),o.callbackNode=null,o.callbackPriority=0;if((l&3)===0||Wt(o,l)){if(s=l&-l,s===o.callbackPriority)return s;switch(h!==null&&Z(h),wo(l)){case 2:case 8:l=Ne;break;case 32:l=rt;break;case 268435456:l=Pt;break;default:l=rt}return h=sR.bind(null,o),l=Xe(l,h),o.callbackPriority=s,o.callbackNode=l,s}return h!==null&&h!==null&&Z(h),o.callbackPriority=2,o.callbackNode=null,2}function sR(o,s){if(xn!==0&&xn!==5)return o.callbackNode=null,o.callbackPriority=0,null;var l=o.callbackNode;if(If()&&o.callbackNode!==l)return null;var h=wt;return h=Qe(o,o===qt?h:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),h===0?null:(VE(o,h,s),aR(o,Se()),o.callbackNode!=null&&o.callbackNode===l?sR.bind(null,o):null)}function iR(o,s){if(If())return null;VE(o,s,!0)}function i5(){_5(function(){(Nt&6)!==0?Xe(Re,s5):oR()})}function Kv(){if(ss===0){var o=dc;o===0&&(o=qi,qi<<=1,(qi&261888)===0&&(qi=256)),ss=o}return ss}function cR(o){return o==null||typeof o=="symbol"||typeof o=="boolean"?null:typeof o=="function"?o:Ud(""+o)}function lR(o,s){var l=s.ownerDocument.createElement("input");return l.name=s.name,l.value=s.value,o.id&&l.setAttribute("form",o.id),s.parentNode.insertBefore(l,s),o=new FormData(o),l.parentNode.removeChild(l),o}function c5(o,s,l,h,v){if(s==="submit"&&l&&l.stateNode===v){var _=cR((v[vr]||null).action),k=h.submitter;k&&(s=(s=k[vr]||null)?cR(s.formAction):k.getAttribute("formAction"),s!==null&&(_=s,k=null));var j=new Bd("action","action",null,h,v);o.push({event:j,listeners:[{instance:null,listener:function(){if(h.defaultPrevented){if(ss!==0){var Y=k?lR(v,k):new FormData(v);pv(l,{pending:!0,data:Y,method:v.method,action:_},null,Y)}}else typeof _=="function"&&(j.preventDefault(),Y=k?lR(v,k):new FormData(v),pv(l,{pending:!0,data:Y,method:v.method,action:_},_,Y))},currentTarget:v}]})}}for(var Wv=0;Wv<kg.length;Wv++){var Yv=kg[Wv],l5=Yv.toLowerCase(),u5=Yv[0].toUpperCase()+Yv.slice(1);So(l5,"on"+u5)}So(zw,"onAnimationEnd"),So(Vw,"onAnimationIteration"),So(Fw,"onAnimationStart"),So("dblclick","onDoubleClick"),So("focusin","onFocus"),So("focusout","onBlur"),So(T3,"onTransitionRun"),So(O3,"onTransitionStart"),So(C3,"onTransitionCancel"),So(Bw,"onTransitionEnd"),Qi("onMouseEnter",["mouseout","mouseover"]),Qi("onMouseLeave",["mouseout","mouseover"]),Qi("onPointerEnter",["pointerout","pointerover"]),Qi("onPointerLeave",["pointerout","pointerover"]),Ys("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ys("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ys("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ys("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ys("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ys("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var iu="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),d5=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(iu));function uR(o,s){s=(s&4)!==0;for(var l=0;l<o.length;l++){var h=o[l],v=h.event;h=h.listeners;e:{var _=void 0;if(s)for(var k=h.length-1;0<=k;k--){var j=h[k],Y=j.instance,de=j.currentTarget;if(j=j.listener,Y!==_&&v.isPropagationStopped())break e;_=j,v.currentTarget=de;try{_(v)}catch(we){Gd(we)}v.currentTarget=null,_=Y}else for(k=0;k<h.length;k++){if(j=h[k],Y=j.instance,de=j.currentTarget,j=j.listener,Y!==_&&v.isPropagationStopped())break e;_=j,v.currentTarget=de;try{_(v)}catch(we){Gd(we)}v.currentTarget=null,_=Y}}}}function yt(o,s){var l=s[lg];l===void 0&&(l=s[lg]=new Set);var h=o+"__bubble";l.has(h)||(dR(s,o,2,!1),l.add(h))}function Qv(o,s,l){var h=0;s&&(h|=4),dR(l,o,h,s)}var Mf="_reactListening"+Math.random().toString(36).slice(2);function Xv(o){if(!o[Mf]){o[Mf]=!0,ow.forEach(function(l){l!=="selectionchange"&&(d5.has(l)||Qv(l,!1,o),Qv(l,!0,o))});var s=o.nodeType===9?o:o.ownerDocument;s===null||s[Mf]||(s[Mf]=!0,Qv("selectionchange",!1,s))}}function dR(o,s,l,h){switch(zR(s)){case 2:var v=U5;break;case 8:v=z5;break;default:v=hy}l=v.bind(null,s,l,o),v=void 0,!yg||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(v=!0),h?v!==void 0?o.addEventListener(s,l,{capture:!0,passive:v}):o.addEventListener(s,l,!0):v!==void 0?o.addEventListener(s,l,{passive:v}):o.addEventListener(s,l,!1)}function Jv(o,s,l,h,v){var _=h;if((s&1)===0&&(s&2)===0&&h!==null)e:for(;;){if(h===null)return;var k=h.tag;if(k===3||k===4){var j=h.stateNode.containerInfo;if(j===v)break;if(k===4)for(k=h.return;k!==null;){var Y=k.tag;if((Y===3||Y===4)&&k.stateNode.containerInfo===v)return;k=k.return}for(;j!==null;){if(k=Ki(j),k===null)return;if(Y=k.tag,Y===5||Y===6||Y===26||Y===27){h=_=k;continue e}j=j.parentNode}}h=h.return}gw(function(){var de=_,we=gg(l),xe=[];e:{var he=qw.get(o);if(he!==void 0){var ge=Bd,Ue=o;switch(o){case"keypress":if(Vd(l)===0)break e;case"keydown":case"keyup":ge=o3;break;case"focusin":Ue="focus",ge=Sg;break;case"focusout":Ue="blur",ge=Sg;break;case"beforeblur":case"afterblur":ge=Sg;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ge=_w;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ge=GP;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ge=i3;break;case zw:case Vw:case Fw:ge=WP;break;case Bw:ge=l3;break;case"scroll":case"scrollend":ge=qP;break;case"wheel":ge=d3;break;case"copy":case"cut":case"paste":ge=QP;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ge=ww;break;case"toggle":case"beforetoggle":ge=h3}var Ze=(s&4)!==0,Ft=!Ze&&(o==="scroll"||o==="scrollend"),se=Ze?he!==null?he+"Capture":null:he;Ze=[];for(var ee=de,ue;ee!==null;){var Ee=ee;if(ue=Ee.stateNode,Ee=Ee.tag,Ee!==5&&Ee!==26&&Ee!==27||ue===null||se===null||(Ee=Al(ee,se),Ee!=null&&Ze.push(cu(ee,Ee,ue))),Ft)break;ee=ee.return}0<Ze.length&&(he=new ge(he,Ue,null,l,we),xe.push({event:he,listeners:Ze}))}}if((s&7)===0){e:{if(he=o==="mouseover"||o==="pointerover",ge=o==="mouseout"||o==="pointerout",he&&l!==mg&&(Ue=l.relatedTarget||l.fromElement)&&(Ki(Ue)||Ue[Zi]))break e;if((ge||he)&&(he=we.window===we?we:(he=we.ownerDocument)?he.defaultView||he.parentWindow:window,ge?(Ue=l.relatedTarget||l.toElement,ge=de,Ue=Ue?Ki(Ue):null,Ue!==null&&(Ft=i(Ue),Ze=Ue.tag,Ue!==Ft||Ze!==5&&Ze!==27&&Ze!==6)&&(Ue=null)):(ge=null,Ue=de),ge!==Ue)){if(Ze=_w,Ee="onMouseLeave",se="onMouseEnter",ee="mouse",(o==="pointerout"||o==="pointerover")&&(Ze=ww,Ee="onPointerLeave",se="onPointerEnter",ee="pointer"),Ft=ge==null?he:Cl(ge),ue=Ue==null?he:Cl(Ue),he=new Ze(Ee,ee+"leave",ge,l,we),he.target=Ft,he.relatedTarget=ue,Ee=null,Ki(we)===de&&(Ze=new Ze(se,ee+"enter",Ue,l,we),Ze.target=ue,Ze.relatedTarget=Ft,Ee=Ze),Ft=Ee,ge&&Ue)t:{for(Ze=f5,se=ge,ee=Ue,ue=0,Ee=se;Ee;Ee=Ze(Ee))ue++;Ee=0;for(var Ge=ee;Ge;Ge=Ze(Ge))Ee++;for(;0<ue-Ee;)se=Ze(se),ue--;for(;0<Ee-ue;)ee=Ze(ee),Ee--;for(;ue--;){if(se===ee||ee!==null&&se===ee.alternate){Ze=se;break t}se=Ze(se),ee=Ze(ee)}Ze=null}else Ze=null;ge!==null&&fR(xe,he,ge,Ze,!1),Ue!==null&&Ft!==null&&fR(xe,Ft,Ue,Ze,!0)}}e:{if(he=de?Cl(de):window,ge=he.nodeName&&he.nodeName.toLowerCase(),ge==="select"||ge==="input"&&he.type==="file")var At=Aw;else if(Ow(he))if(Iw)At=E3;else{At=w3;var Be=b3}else ge=he.nodeName,!ge||ge.toLowerCase()!=="input"||he.type!=="checkbox"&&he.type!=="radio"?de&&pg(de.elementType)&&(At=Aw):At=S3;if(At&&(At=At(o,de))){Cw(xe,At,l,we);break e}Be&&Be(o,he,de),o==="focusout"&&de&&he.type==="number"&&de.memoizedProps.value!=null&&hg(he,"number",he.value)}switch(Be=de?Cl(de):window,o){case"focusin":(Ow(Be)||Be.contentEditable==="true")&&(rc=Be,Cg=de,jl=null);break;case"focusout":jl=Cg=rc=null;break;case"mousedown":Ag=!0;break;case"contextmenu":case"mouseup":case"dragend":Ag=!1,$w(xe,l,we);break;case"selectionchange":if(x3)break;case"keydown":case"keyup":$w(xe,l,we)}var it;if(Rg)e:{switch(o){case"compositionstart":var St="onCompositionStart";break e;case"compositionend":St="onCompositionEnd";break e;case"compositionupdate":St="onCompositionUpdate";break e}St=void 0}else nc?xw(o,l)&&(St="onCompositionEnd"):o==="keydown"&&l.keyCode===229&&(St="onCompositionStart");St&&(Sw&&l.locale!=="ko"&&(nc||St!=="onCompositionStart"?St==="onCompositionEnd"&&nc&&(it=vw()):(qa=we,_g="value"in qa?qa.value:qa.textContent,nc=!0)),Be=Pf(de,St),0<Be.length&&(St=new bw(St,o,null,l,we),xe.push({event:St,listeners:Be}),it?St.data=it:(it=Tw(l),it!==null&&(St.data=it)))),(it=m3?g3(o,l):v3(o,l))&&(St=Pf(de,"onBeforeInput"),0<St.length&&(Be=new bw("onBeforeInput","beforeinput",null,l,we),xe.push({event:Be,listeners:St}),Be.data=it)),c5(xe,o,de,l,we)}uR(xe,s)})}function cu(o,s,l){return{instance:o,listener:s,currentTarget:l}}function Pf(o,s){for(var l=s+"Capture",h=[];o!==null;){var v=o,_=v.stateNode;if(v=v.tag,v!==5&&v!==26&&v!==27||_===null||(v=Al(o,l),v!=null&&h.unshift(cu(o,v,_)),v=Al(o,s),v!=null&&h.push(cu(o,v,_))),o.tag===3)return h;o=o.return}return[]}function f5(o){if(o===null)return null;do o=o.return;while(o&&o.tag!==5&&o.tag!==27);return o||null}function fR(o,s,l,h,v){for(var _=s._reactName,k=[];l!==null&&l!==h;){var j=l,Y=j.alternate,de=j.stateNode;if(j=j.tag,Y!==null&&Y===h)break;j!==5&&j!==26&&j!==27||de===null||(Y=de,v?(de=Al(l,_),de!=null&&k.unshift(cu(l,de,Y))):v||(de=Al(l,_),de!=null&&k.push(cu(l,de,Y)))),l=l.return}k.length!==0&&o.push({event:s,listeners:k})}var h5=/\r\n?/g,p5=/\u0000|\uFFFD/g;function hR(o){return(typeof o=="string"?o:""+o).replace(h5,`
|
|
10
|
-
`).replace(p5,"")}function pR(o,s){return s=hR(s),hR(o)===s}function Vt(o,s,l,h,v,_){switch(l){case"children":typeof h=="string"?s==="body"||s==="textarea"&&h===""||Ji(o,h):(typeof h=="number"||typeof h=="bigint")&&s!=="body"&&Ji(o,""+h);break;case"className":jd(o,"class",h);break;case"tabIndex":jd(o,"tabindex",h);break;case"dir":case"role":case"viewBox":case"width":case"height":jd(o,l,h);break;case"style":pw(o,h,_);break;case"data":if(s!=="object"){jd(o,"data",h);break}case"src":case"href":if(h===""&&(s!=="a"||l!=="href")){o.removeAttribute(l);break}if(h==null||typeof h=="function"||typeof h=="symbol"||typeof h=="boolean"){o.removeAttribute(l);break}h=Ud(""+h),o.setAttribute(l,h);break;case"action":case"formAction":if(typeof h=="function"){o.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof _=="function"&&(l==="formAction"?(s!=="input"&&Vt(o,s,"name",v.name,v,null),Vt(o,s,"formEncType",v.formEncType,v,null),Vt(o,s,"formMethod",v.formMethod,v,null),Vt(o,s,"formTarget",v.formTarget,v,null)):(Vt(o,s,"encType",v.encType,v,null),Vt(o,s,"method",v.method,v,null),Vt(o,s,"target",v.target,v,null)));if(h==null||typeof h=="symbol"||typeof h=="boolean"){o.removeAttribute(l);break}h=Ud(""+h),o.setAttribute(l,h);break;case"onClick":h!=null&&(o.onclick=la);break;case"onScroll":h!=null&&yt("scroll",o);break;case"onScrollEnd":h!=null&&yt("scrollend",o);break;case"dangerouslySetInnerHTML":if(h!=null){if(typeof h!="object"||!("__html"in h))throw Error(r(61));if(l=h.__html,l!=null){if(v.children!=null)throw Error(r(60));o.innerHTML=l}}break;case"multiple":o.multiple=h&&typeof h!="function"&&typeof h!="symbol";break;case"muted":o.muted=h&&typeof h!="function"&&typeof h!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(h==null||typeof h=="function"||typeof h=="boolean"||typeof h=="symbol"){o.removeAttribute("xlink:href");break}l=Ud(""+h),o.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":h!=null&&typeof h!="function"&&typeof h!="symbol"?o.setAttribute(l,""+h):o.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":h&&typeof h!="function"&&typeof h!="symbol"?o.setAttribute(l,""):o.removeAttribute(l);break;case"capture":case"download":h===!0?o.setAttribute(l,""):h!==!1&&h!=null&&typeof h!="function"&&typeof h!="symbol"?o.setAttribute(l,h):o.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":h!=null&&typeof h!="function"&&typeof h!="symbol"&&!isNaN(h)&&1<=h?o.setAttribute(l,h):o.removeAttribute(l);break;case"rowSpan":case"start":h==null||typeof h=="function"||typeof h=="symbol"||isNaN(h)?o.removeAttribute(l):o.setAttribute(l,h);break;case"popover":yt("beforetoggle",o),yt("toggle",o),Ld(o,"popover",h);break;case"xlinkActuate":ca(o,"http://www.w3.org/1999/xlink","xlink:actuate",h);break;case"xlinkArcrole":ca(o,"http://www.w3.org/1999/xlink","xlink:arcrole",h);break;case"xlinkRole":ca(o,"http://www.w3.org/1999/xlink","xlink:role",h);break;case"xlinkShow":ca(o,"http://www.w3.org/1999/xlink","xlink:show",h);break;case"xlinkTitle":ca(o,"http://www.w3.org/1999/xlink","xlink:title",h);break;case"xlinkType":ca(o,"http://www.w3.org/1999/xlink","xlink:type",h);break;case"xmlBase":ca(o,"http://www.w3.org/XML/1998/namespace","xml:base",h);break;case"xmlLang":ca(o,"http://www.w3.org/XML/1998/namespace","xml:lang",h);break;case"xmlSpace":ca(o,"http://www.w3.org/XML/1998/namespace","xml:space",h);break;case"is":Ld(o,"is",h);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=FP.get(l)||l,Ld(o,l,h))}}function ey(o,s,l,h,v,_){switch(l){case"style":pw(o,h,_);break;case"dangerouslySetInnerHTML":if(h!=null){if(typeof h!="object"||!("__html"in h))throw Error(r(61));if(l=h.__html,l!=null){if(v.children!=null)throw Error(r(60));o.innerHTML=l}}break;case"children":typeof h=="string"?Ji(o,h):(typeof h=="number"||typeof h=="bigint")&&Ji(o,""+h);break;case"onScroll":h!=null&&yt("scroll",o);break;case"onScrollEnd":h!=null&&yt("scrollend",o);break;case"onClick":h!=null&&(o.onclick=la);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!aw.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(v=l.endsWith("Capture"),s=l.slice(2,v?l.length-7:void 0),_=o[vr]||null,_=_!=null?_[l]:null,typeof _=="function"&&o.removeEventListener(s,_,v),typeof h=="function")){typeof _!="function"&&_!==null&&(l in o?o[l]=null:o.hasAttribute(l)&&o.removeAttribute(l)),o.addEventListener(s,h,v);break e}l in o?o[l]=h:h===!0?o.setAttribute(l,""):Ld(o,l,h)}}}function Hn(o,s,l){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":yt("error",o),yt("load",o);var h=!1,v=!1,_;for(_ in l)if(l.hasOwnProperty(_)){var k=l[_];if(k!=null)switch(_){case"src":h=!0;break;case"srcSet":v=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,s));default:Vt(o,s,_,k,l,null)}}v&&Vt(o,s,"srcSet",l.srcSet,l,null),h&&Vt(o,s,"src",l.src,l,null);return;case"input":yt("invalid",o);var j=_=k=v=null,Y=null,de=null;for(h in l)if(l.hasOwnProperty(h)){var we=l[h];if(we!=null)switch(h){case"name":v=we;break;case"type":k=we;break;case"checked":Y=we;break;case"defaultChecked":de=we;break;case"value":_=we;break;case"defaultValue":j=we;break;case"children":case"dangerouslySetInnerHTML":if(we!=null)throw Error(r(137,s));break;default:Vt(o,s,h,we,l,null)}}uw(o,_,j,Y,de,k,v,!1);return;case"select":yt("invalid",o),h=k=_=null;for(v in l)if(l.hasOwnProperty(v)&&(j=l[v],j!=null))switch(v){case"value":_=j;break;case"defaultValue":k=j;break;case"multiple":h=j;default:Vt(o,s,v,j,l,null)}s=_,l=k,o.multiple=!!h,s!=null?Xi(o,!!h,s,!1):l!=null&&Xi(o,!!h,l,!0);return;case"textarea":yt("invalid",o),_=v=h=null;for(k in l)if(l.hasOwnProperty(k)&&(j=l[k],j!=null))switch(k){case"value":h=j;break;case"defaultValue":v=j;break;case"children":_=j;break;case"dangerouslySetInnerHTML":if(j!=null)throw Error(r(91));break;default:Vt(o,s,k,j,l,null)}fw(o,h,v,_);return;case"option":for(Y in l)l.hasOwnProperty(Y)&&(h=l[Y],h!=null)&&(Y==="selected"?o.selected=h&&typeof h!="function"&&typeof h!="symbol":Vt(o,s,Y,h,l,null));return;case"dialog":yt("beforetoggle",o),yt("toggle",o),yt("cancel",o),yt("close",o);break;case"iframe":case"object":yt("load",o);break;case"video":case"audio":for(h=0;h<iu.length;h++)yt(iu[h],o);break;case"image":yt("error",o),yt("load",o);break;case"details":yt("toggle",o);break;case"embed":case"source":case"link":yt("error",o),yt("load",o);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(de in l)if(l.hasOwnProperty(de)&&(h=l[de],h!=null))switch(de){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,s));default:Vt(o,s,de,h,l,null)}return;default:if(pg(s)){for(we in l)l.hasOwnProperty(we)&&(h=l[we],h!==void 0&&ey(o,s,we,h,l,void 0));return}}for(j in l)l.hasOwnProperty(j)&&(h=l[j],h!=null&&Vt(o,s,j,h,l,null))}function m5(o,s,l,h){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var v=null,_=null,k=null,j=null,Y=null,de=null,we=null;for(ge in l){var xe=l[ge];if(l.hasOwnProperty(ge)&&xe!=null)switch(ge){case"checked":break;case"value":break;case"defaultValue":Y=xe;default:h.hasOwnProperty(ge)||Vt(o,s,ge,null,h,xe)}}for(var he in h){var ge=h[he];if(xe=l[he],h.hasOwnProperty(he)&&(ge!=null||xe!=null))switch(he){case"type":_=ge;break;case"name":v=ge;break;case"checked":de=ge;break;case"defaultChecked":we=ge;break;case"value":k=ge;break;case"defaultValue":j=ge;break;case"children":case"dangerouslySetInnerHTML":if(ge!=null)throw Error(r(137,s));break;default:ge!==xe&&Vt(o,s,he,ge,h,xe)}}fg(o,k,j,Y,de,we,_,v);return;case"select":ge=k=j=he=null;for(_ in l)if(Y=l[_],l.hasOwnProperty(_)&&Y!=null)switch(_){case"value":break;case"multiple":ge=Y;default:h.hasOwnProperty(_)||Vt(o,s,_,null,h,Y)}for(v in h)if(_=h[v],Y=l[v],h.hasOwnProperty(v)&&(_!=null||Y!=null))switch(v){case"value":he=_;break;case"defaultValue":j=_;break;case"multiple":k=_;default:_!==Y&&Vt(o,s,v,_,h,Y)}s=j,l=k,h=ge,he!=null?Xi(o,!!l,he,!1):!!h!=!!l&&(s!=null?Xi(o,!!l,s,!0):Xi(o,!!l,l?[]:"",!1));return;case"textarea":ge=he=null;for(j in l)if(v=l[j],l.hasOwnProperty(j)&&v!=null&&!h.hasOwnProperty(j))switch(j){case"value":break;case"children":break;default:Vt(o,s,j,null,h,v)}for(k in h)if(v=h[k],_=l[k],h.hasOwnProperty(k)&&(v!=null||_!=null))switch(k){case"value":he=v;break;case"defaultValue":ge=v;break;case"children":break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(r(91));break;default:v!==_&&Vt(o,s,k,v,h,_)}dw(o,he,ge);return;case"option":for(var Ue in l)he=l[Ue],l.hasOwnProperty(Ue)&&he!=null&&!h.hasOwnProperty(Ue)&&(Ue==="selected"?o.selected=!1:Vt(o,s,Ue,null,h,he));for(Y in h)he=h[Y],ge=l[Y],h.hasOwnProperty(Y)&&he!==ge&&(he!=null||ge!=null)&&(Y==="selected"?o.selected=he&&typeof he!="function"&&typeof he!="symbol":Vt(o,s,Y,he,h,ge));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Ze in l)he=l[Ze],l.hasOwnProperty(Ze)&&he!=null&&!h.hasOwnProperty(Ze)&&Vt(o,s,Ze,null,h,he);for(de in h)if(he=h[de],ge=l[de],h.hasOwnProperty(de)&&he!==ge&&(he!=null||ge!=null))switch(de){case"children":case"dangerouslySetInnerHTML":if(he!=null)throw Error(r(137,s));break;default:Vt(o,s,de,he,h,ge)}return;default:if(pg(s)){for(var Ft in l)he=l[Ft],l.hasOwnProperty(Ft)&&he!==void 0&&!h.hasOwnProperty(Ft)&&ey(o,s,Ft,void 0,h,he);for(we in h)he=h[we],ge=l[we],!h.hasOwnProperty(we)||he===ge||he===void 0&&ge===void 0||ey(o,s,we,he,h,ge);return}}for(var se in l)he=l[se],l.hasOwnProperty(se)&&he!=null&&!h.hasOwnProperty(se)&&Vt(o,s,se,null,h,he);for(xe in h)he=h[xe],ge=l[xe],!h.hasOwnProperty(xe)||he===ge||he==null&&ge==null||Vt(o,s,xe,he,h,ge)}function mR(o){switch(o){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function g5(){if(typeof performance.getEntriesByType=="function"){for(var o=0,s=0,l=performance.getEntriesByType("resource"),h=0;h<l.length;h++){var v=l[h],_=v.transferSize,k=v.initiatorType,j=v.duration;if(_&&j&&mR(k)){for(k=0,j=v.responseEnd,h+=1;h<l.length;h++){var Y=l[h],de=Y.startTime;if(de>j)break;var we=Y.transferSize,xe=Y.initiatorType;we&&mR(xe)&&(Y=Y.responseEnd,k+=we*(Y<j?1:(j-de)/(Y-de)))}if(--h,s+=8*(_+k)/(v.duration/1e3),o++,10<o)break}}if(0<o)return s/o/1e6}return navigator.connection&&(o=navigator.connection.downlink,typeof o=="number")?o:5}var ty=null,ny=null;function Df(o){return o.nodeType===9?o:o.ownerDocument}function gR(o){switch(o){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function vR(o,s){if(o===0)switch(s){case"svg":return 1;case"math":return 2;default:return 0}return o===1&&s==="foreignObject"?0:o}function ry(o,s){return o==="textarea"||o==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.children=="bigint"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}var oy=null;function v5(){var o=window.event;return o&&o.type==="popstate"?o===oy?!1:(oy=o,!0):(oy=null,!1)}var yR=typeof setTimeout=="function"?setTimeout:void 0,y5=typeof clearTimeout=="function"?clearTimeout:void 0,_R=typeof Promise=="function"?Promise:void 0,_5=typeof queueMicrotask=="function"?queueMicrotask:typeof _R<"u"?function(o){return _R.resolve(null).then(o).catch(b5)}:yR;function b5(o){setTimeout(function(){throw o})}function is(o){return o==="head"}function bR(o,s){var l=s,h=0;do{var v=l.nextSibling;if(o.removeChild(l),v&&v.nodeType===8)if(l=v.data,l==="/$"||l==="/&"){if(h===0){o.removeChild(v),Ic(s);return}h--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")h++;else if(l==="html")lu(o.ownerDocument.documentElement);else if(l==="head"){l=o.ownerDocument.head,lu(l);for(var _=l.firstChild;_;){var k=_.nextSibling,j=_.nodeName;_[Ol]||j==="SCRIPT"||j==="STYLE"||j==="LINK"&&_.rel.toLowerCase()==="stylesheet"||l.removeChild(_),_=k}}else l==="body"&&lu(o.ownerDocument.body);l=v}while(l);Ic(s)}function wR(o,s){var l=o;o=0;do{var h=l.nextSibling;if(l.nodeType===1?s?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(s?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),h&&h.nodeType===8)if(l=h.data,l==="/$"){if(o===0)break;o--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||o++;l=h}while(l)}function ay(o){var s=o.firstChild;for(s&&s.nodeType===10&&(s=s.nextSibling);s;){var l=s;switch(s=s.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":ay(l),ug(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}o.removeChild(l)}}function w5(o,s,l,h){for(;o.nodeType===1;){var v=l;if(o.nodeName.toLowerCase()!==s.toLowerCase()){if(!h&&(o.nodeName!=="INPUT"||o.type!=="hidden"))break}else if(h){if(!o[Ol])switch(s){case"meta":if(!o.hasAttribute("itemprop"))break;return o;case"link":if(_=o.getAttribute("rel"),_==="stylesheet"&&o.hasAttribute("data-precedence"))break;if(_!==v.rel||o.getAttribute("href")!==(v.href==null||v.href===""?null:v.href)||o.getAttribute("crossorigin")!==(v.crossOrigin==null?null:v.crossOrigin)||o.getAttribute("title")!==(v.title==null?null:v.title))break;return o;case"style":if(o.hasAttribute("data-precedence"))break;return o;case"script":if(_=o.getAttribute("src"),(_!==(v.src==null?null:v.src)||o.getAttribute("type")!==(v.type==null?null:v.type)||o.getAttribute("crossorigin")!==(v.crossOrigin==null?null:v.crossOrigin))&&_&&o.hasAttribute("async")&&!o.hasAttribute("itemprop"))break;return o;default:return o}}else if(s==="input"&&o.type==="hidden"){var _=v.name==null?null:""+v.name;if(v.type==="hidden"&&o.getAttribute("name")===_)return o}else return o;if(o=ao(o.nextSibling),o===null)break}return null}function S5(o,s,l){if(s==="")return null;for(;o.nodeType!==3;)if((o.nodeType!==1||o.nodeName!=="INPUT"||o.type!=="hidden")&&!l||(o=ao(o.nextSibling),o===null))return null;return o}function SR(o,s){for(;o.nodeType!==8;)if((o.nodeType!==1||o.nodeName!=="INPUT"||o.type!=="hidden")&&!s||(o=ao(o.nextSibling),o===null))return null;return o}function sy(o){return o.data==="$?"||o.data==="$~"}function iy(o){return o.data==="$!"||o.data==="$?"&&o.ownerDocument.readyState!=="loading"}function E5(o,s){var l=o.ownerDocument;if(o.data==="$~")o._reactRetry=s;else if(o.data!=="$?"||l.readyState!=="loading")s();else{var h=function(){s(),l.removeEventListener("DOMContentLoaded",h)};l.addEventListener("DOMContentLoaded",h),o._reactRetry=h}}function ao(o){for(;o!=null;o=o.nextSibling){var s=o.nodeType;if(s===1||s===3)break;if(s===8){if(s=o.data,s==="$"||s==="$!"||s==="$?"||s==="$~"||s==="&"||s==="F!"||s==="F")break;if(s==="/$"||s==="/&")return null}}return o}var cy=null;function ER(o){o=o.nextSibling;for(var s=0;o;){if(o.nodeType===8){var l=o.data;if(l==="/$"||l==="/&"){if(s===0)return ao(o.nextSibling);s--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||s++}o=o.nextSibling}return null}function RR(o){o=o.previousSibling;for(var s=0;o;){if(o.nodeType===8){var l=o.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(s===0)return o;s--}else l!=="/$"&&l!=="/&"||s++}o=o.previousSibling}return null}function xR(o,s,l){switch(s=Df(l),o){case"html":if(o=s.documentElement,!o)throw Error(r(452));return o;case"head":if(o=s.head,!o)throw Error(r(453));return o;case"body":if(o=s.body,!o)throw Error(r(454));return o;default:throw Error(r(451))}}function lu(o){for(var s=o.attributes;s.length;)o.removeAttributeNode(s[0]);ug(o)}var so=new Map,TR=new Set;function Lf(o){return typeof o.getRootNode=="function"?o.getRootNode():o.nodeType===9?o:o.ownerDocument}var xa=X.d;X.d={f:R5,r:x5,D:T5,C:O5,L:C5,m:A5,X:k5,S:I5,M:N5};function R5(){var o=xa.f(),s=Of();return o||s}function x5(o){var s=Wi(o);s!==null&&s.tag===5&&s.type==="form"?BS(s):xa.r(o)}var Oc=typeof document>"u"?null:document;function OR(o,s,l){var h=Oc;if(h&&typeof s=="string"&&s){var v=Xr(s);v='link[rel="'+o+'"][href="'+v+'"]',typeof l=="string"&&(v+='[crossorigin="'+l+'"]'),TR.has(v)||(TR.add(v),o={rel:o,crossOrigin:l,href:s},h.querySelector(v)===null&&(s=h.createElement("link"),Hn(s,"link",o),Mn(s),h.head.appendChild(s)))}}function T5(o){xa.D(o),OR("dns-prefetch",o,null)}function O5(o,s){xa.C(o,s),OR("preconnect",o,s)}function C5(o,s,l){xa.L(o,s,l);var h=Oc;if(h&&o&&s){var v='link[rel="preload"][as="'+Xr(s)+'"]';s==="image"&&l&&l.imageSrcSet?(v+='[imagesrcset="'+Xr(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(v+='[imagesizes="'+Xr(l.imageSizes)+'"]')):v+='[href="'+Xr(o)+'"]';var _=v;switch(s){case"style":_=Cc(o);break;case"script":_=Ac(o)}so.has(_)||(o=p({rel:"preload",href:s==="image"&&l&&l.imageSrcSet?void 0:o,as:s},l),so.set(_,o),h.querySelector(v)!==null||s==="style"&&h.querySelector(uu(_))||s==="script"&&h.querySelector(du(_))||(s=h.createElement("link"),Hn(s,"link",o),Mn(s),h.head.appendChild(s)))}}function A5(o,s){xa.m(o,s);var l=Oc;if(l&&o){var h=s&&typeof s.as=="string"?s.as:"script",v='link[rel="modulepreload"][as="'+Xr(h)+'"][href="'+Xr(o)+'"]',_=v;switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":_=Ac(o)}if(!so.has(_)&&(o=p({rel:"modulepreload",href:o},s),so.set(_,o),l.querySelector(v)===null)){switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(du(_)))return}h=l.createElement("link"),Hn(h,"link",o),Mn(h),l.head.appendChild(h)}}}function I5(o,s,l){xa.S(o,s,l);var h=Oc;if(h&&o){var v=Yi(h).hoistableStyles,_=Cc(o);s=s||"default";var k=v.get(_);if(!k){var j={loading:0,preload:null};if(k=h.querySelector(uu(_)))j.loading=5;else{o=p({rel:"stylesheet",href:o,"data-precedence":s},l),(l=so.get(_))&&ly(o,l);var Y=k=h.createElement("link");Mn(Y),Hn(Y,"link",o),Y._p=new Promise(function(de,we){Y.onload=de,Y.onerror=we}),Y.addEventListener("load",function(){j.loading|=1}),Y.addEventListener("error",function(){j.loading|=2}),j.loading|=4,jf(k,s,h)}k={type:"stylesheet",instance:k,count:1,state:j},v.set(_,k)}}}function k5(o,s){xa.X(o,s);var l=Oc;if(l&&o){var h=Yi(l).hoistableScripts,v=Ac(o),_=h.get(v);_||(_=l.querySelector(du(v)),_||(o=p({src:o,async:!0},s),(s=so.get(v))&&uy(o,s),_=l.createElement("script"),Mn(_),Hn(_,"link",o),l.head.appendChild(_)),_={type:"script",instance:_,count:1,state:null},h.set(v,_))}}function N5(o,s){xa.M(o,s);var l=Oc;if(l&&o){var h=Yi(l).hoistableScripts,v=Ac(o),_=h.get(v);_||(_=l.querySelector(du(v)),_||(o=p({src:o,async:!0,type:"module"},s),(s=so.get(v))&&uy(o,s),_=l.createElement("script"),Mn(_),Hn(_,"link",o),l.head.appendChild(_)),_={type:"script",instance:_,count:1,state:null},h.set(v,_))}}function CR(o,s,l,h){var v=(v=Q.current)?Lf(v):null;if(!v)throw Error(r(446));switch(o){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(s=Cc(l.href),l=Yi(v).hoistableStyles,h=l.get(s),h||(h={type:"style",instance:null,count:0,state:null},l.set(s,h)),h):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){o=Cc(l.href);var _=Yi(v).hoistableStyles,k=_.get(o);if(k||(v=v.ownerDocument||v,k={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},_.set(o,k),(_=v.querySelector(uu(o)))&&!_._p&&(k.instance=_,k.state.loading=5),so.has(o)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},so.set(o,l),_||M5(v,o,l,k.state))),s&&h===null)throw Error(r(528,""));return k}if(s&&h!==null)throw Error(r(529,""));return null;case"script":return s=l.async,l=l.src,typeof l=="string"&&s&&typeof s!="function"&&typeof s!="symbol"?(s=Ac(l),l=Yi(v).hoistableScripts,h=l.get(s),h||(h={type:"script",instance:null,count:0,state:null},l.set(s,h)),h):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,o))}}function Cc(o){return'href="'+Xr(o)+'"'}function uu(o){return'link[rel="stylesheet"]['+o+"]"}function AR(o){return p({},o,{"data-precedence":o.precedence,precedence:null})}function M5(o,s,l,h){o.querySelector('link[rel="preload"][as="style"]['+s+"]")?h.loading=1:(s=o.createElement("link"),h.preload=s,s.addEventListener("load",function(){return h.loading|=1}),s.addEventListener("error",function(){return h.loading|=2}),Hn(s,"link",l),Mn(s),o.head.appendChild(s))}function Ac(o){return'[src="'+Xr(o)+'"]'}function du(o){return"script[async]"+o}function IR(o,s,l){if(s.count++,s.instance===null)switch(s.type){case"style":var h=o.querySelector('style[data-href~="'+Xr(l.href)+'"]');if(h)return s.instance=h,Mn(h),h;var v=p({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return h=(o.ownerDocument||o).createElement("style"),Mn(h),Hn(h,"style",v),jf(h,l.precedence,o),s.instance=h;case"stylesheet":v=Cc(l.href);var _=o.querySelector(uu(v));if(_)return s.state.loading|=4,s.instance=_,Mn(_),_;h=AR(l),(v=so.get(v))&&ly(h,v),_=(o.ownerDocument||o).createElement("link"),Mn(_);var k=_;return k._p=new Promise(function(j,Y){k.onload=j,k.onerror=Y}),Hn(_,"link",h),s.state.loading|=4,jf(_,l.precedence,o),s.instance=_;case"script":return _=Ac(l.src),(v=o.querySelector(du(_)))?(s.instance=v,Mn(v),v):(h=l,(v=so.get(_))&&(h=p({},l),uy(h,v)),o=o.ownerDocument||o,v=o.createElement("script"),Mn(v),Hn(v,"link",h),o.head.appendChild(v),s.instance=v);case"void":return null;default:throw Error(r(443,s.type))}else s.type==="stylesheet"&&(s.state.loading&4)===0&&(h=s.instance,s.state.loading|=4,jf(h,l.precedence,o));return s.instance}function jf(o,s,l){for(var h=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),v=h.length?h[h.length-1]:null,_=v,k=0;k<h.length;k++){var j=h[k];if(j.dataset.precedence===s)_=j;else if(_!==v)break}_?_.parentNode.insertBefore(o,_.nextSibling):(s=l.nodeType===9?l.head:l,s.insertBefore(o,s.firstChild))}function ly(o,s){o.crossOrigin==null&&(o.crossOrigin=s.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=s.referrerPolicy),o.title==null&&(o.title=s.title)}function uy(o,s){o.crossOrigin==null&&(o.crossOrigin=s.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=s.referrerPolicy),o.integrity==null&&(o.integrity=s.integrity)}var $f=null;function kR(o,s,l){if($f===null){var h=new Map,v=$f=new Map;v.set(l,h)}else v=$f,h=v.get(l),h||(h=new Map,v.set(l,h));if(h.has(o))return h;for(h.set(o,null),l=l.getElementsByTagName(o),v=0;v<l.length;v++){var _=l[v];if(!(_[Ol]||_[Vn]||o==="link"&&_.getAttribute("rel")==="stylesheet")&&_.namespaceURI!=="http://www.w3.org/2000/svg"){var k=_.getAttribute(s)||"";k=o+k;var j=h.get(k);j?j.push(_):h.set(k,[_])}}return h}function NR(o,s,l){o=o.ownerDocument||o,o.head.insertBefore(l,s==="title"?o.querySelector("head > title"):null)}function P5(o,s,l){if(l===1||s.itemProp!=null)return!1;switch(o){case"meta":case"title":return!0;case"style":if(typeof s.precedence!="string"||typeof s.href!="string"||s.href==="")break;return!0;case"link":if(typeof s.rel!="string"||typeof s.href!="string"||s.href===""||s.onLoad||s.onError)break;return s.rel==="stylesheet"?(o=s.disabled,typeof s.precedence=="string"&&o==null):!0;case"script":if(s.async&&typeof s.async!="function"&&typeof s.async!="symbol"&&!s.onLoad&&!s.onError&&s.src&&typeof s.src=="string")return!0}return!1}function MR(o){return!(o.type==="stylesheet"&&(o.state.loading&3)===0)}function D5(o,s,l,h){if(l.type==="stylesheet"&&(typeof h.media!="string"||matchMedia(h.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var v=Cc(h.href),_=s.querySelector(uu(v));if(_){s=_._p,s!==null&&typeof s=="object"&&typeof s.then=="function"&&(o.count++,o=Uf.bind(o),s.then(o,o)),l.state.loading|=4,l.instance=_,Mn(_);return}_=s.ownerDocument||s,h=AR(h),(v=so.get(v))&&ly(h,v),_=_.createElement("link"),Mn(_);var k=_;k._p=new Promise(function(j,Y){k.onload=j,k.onerror=Y}),Hn(_,"link",h),l.instance=_}o.stylesheets===null&&(o.stylesheets=new Map),o.stylesheets.set(l,s),(s=l.state.preload)&&(l.state.loading&3)===0&&(o.count++,l=Uf.bind(o),s.addEventListener("load",l),s.addEventListener("error",l))}}var dy=0;function L5(o,s){return o.stylesheets&&o.count===0&&Vf(o,o.stylesheets),0<o.count||0<o.imgCount?function(l){var h=setTimeout(function(){if(o.stylesheets&&Vf(o,o.stylesheets),o.unsuspend){var _=o.unsuspend;o.unsuspend=null,_()}},6e4+s);0<o.imgBytes&&dy===0&&(dy=62500*g5());var v=setTimeout(function(){if(o.waitingForImages=!1,o.count===0&&(o.stylesheets&&Vf(o,o.stylesheets),o.unsuspend)){var _=o.unsuspend;o.unsuspend=null,_()}},(o.imgBytes>dy?50:800)+s);return o.unsuspend=l,function(){o.unsuspend=null,clearTimeout(h),clearTimeout(v)}}:null}function Uf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Vf(this,this.stylesheets);else if(this.unsuspend){var o=this.unsuspend;this.unsuspend=null,o()}}}var zf=null;function Vf(o,s){o.stylesheets=null,o.unsuspend!==null&&(o.count++,zf=new Map,s.forEach(j5,o),zf=null,Uf.call(o))}function j5(o,s){if(!(s.state.loading&4)){var l=zf.get(o);if(l)var h=l.get(null);else{l=new Map,zf.set(o,l);for(var v=o.querySelectorAll("link[data-precedence],style[data-precedence]"),_=0;_<v.length;_++){var k=v[_];(k.nodeName==="LINK"||k.getAttribute("media")!=="not all")&&(l.set(k.dataset.precedence,k),h=k)}h&&l.set(null,h)}v=s.instance,k=v.getAttribute("data-precedence"),_=l.get(k)||h,_===h&&l.set(null,v),l.set(k,v),this.count++,h=Uf.bind(this),v.addEventListener("load",h),v.addEventListener("error",h),_?_.parentNode.insertBefore(v,_.nextSibling):(o=o.nodeType===9?o.head:o,o.insertBefore(v,o.firstChild)),s.state.loading|=4}}var fu={$$typeof:T,Provider:null,Consumer:null,_currentValue:ae,_currentValue2:ae,_threadCount:0};function $5(o,s,l,h,v,_,k,j,Y){this.tag=1,this.containerInfo=o,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Fa(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Fa(0),this.hiddenUpdates=Fa(null),this.identifierPrefix=h,this.onUncaughtError=v,this.onCaughtError=_,this.onRecoverableError=k,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=Y,this.incompleteTransitions=new Map}function PR(o,s,l,h,v,_,k,j,Y,de,we,xe){return o=new $5(o,s,l,k,Y,de,we,xe,j),s=1,_===!0&&(s|=24),_=Mr(3,null,null,s),o.current=_,_.stateNode=o,s=qg(),s.refCount++,o.pooledCache=s,s.refCount++,_.memoizedState={element:h,isDehydrated:l,cache:s},Kg(_),o}function DR(o){return o?(o=sc,o):sc}function LR(o,s,l,h,v,_){v=DR(v),h.context===null?h.context=v:h.pendingContext=v,h=Ya(s),h.payload={element:l},_=_===void 0?null:_,_!==null&&(h.callback=_),l=Qa(o,h,s),l!==null&&(Er(l,o,s),ql(l,o,s))}function jR(o,s){if(o=o.memoizedState,o!==null&&o.dehydrated!==null){var l=o.retryLane;o.retryLane=l!==0&&l<s?l:s}}function fy(o,s){jR(o,s),(o=o.alternate)&&jR(o,s)}function $R(o){if(o.tag===13||o.tag===31){var s=ei(o,67108864);s!==null&&Er(s,o,67108864),fy(o,67108864)}}function UR(o){if(o.tag===13||o.tag===31){var s=$r();s=Gi(s);var l=ei(o,s);l!==null&&Er(l,o,s),fy(o,s)}}var Ff=!0;function U5(o,s,l,h){var v=F.T;F.T=null;var _=X.p;try{X.p=2,hy(o,s,l,h)}finally{X.p=_,F.T=v}}function z5(o,s,l,h){var v=F.T;F.T=null;var _=X.p;try{X.p=8,hy(o,s,l,h)}finally{X.p=_,F.T=v}}function hy(o,s,l,h){if(Ff){var v=py(h);if(v===null)Jv(o,s,h,Bf,l),VR(o,h);else if(F5(v,o,s,l,h))h.stopPropagation();else if(VR(o,h),s&4&&-1<V5.indexOf(o)){for(;v!==null;){var _=Wi(v);if(_!==null)switch(_.tag){case 3:if(_=_.stateNode,_.current.memoizedState.isDehydrated){var k=Fo(_.pendingLanes);if(k!==0){var j=_;for(j.pendingLanes|=2,j.entangledLanes|=2;k;){var Y=1<<31-kn(k);j.entanglements[1]|=Y,k&=~Y}Go(_),(Nt&6)===0&&(xf=Se()+500,su(0))}}break;case 31:case 13:j=ei(_,2),j!==null&&Er(j,_,2),Of(),fy(_,2)}if(_=py(h),_===null&&Jv(o,s,h,Bf,l),_===v)break;v=_}v!==null&&h.stopPropagation()}else Jv(o,s,h,null,l)}}function py(o){return o=gg(o),my(o)}var Bf=null;function my(o){if(Bf=null,o=Ki(o),o!==null){var s=i(o);if(s===null)o=null;else{var l=s.tag;if(l===13){if(o=c(s),o!==null)return o;o=null}else if(l===31){if(o=u(s),o!==null)return o;o=null}else if(l===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;o=null}else s!==o&&(o=null)}}return Bf=o,null}function zR(o){switch(o){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Te()){case Re:return 2;case Ne:return 8;case rt:case st:return 32;case Pt:return 268435456;default:return 32}default:return 32}}var gy=!1,cs=null,ls=null,us=null,hu=new Map,pu=new Map,ds=[],V5="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function VR(o,s){switch(o){case"focusin":case"focusout":cs=null;break;case"dragenter":case"dragleave":ls=null;break;case"mouseover":case"mouseout":us=null;break;case"pointerover":case"pointerout":hu.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":pu.delete(s.pointerId)}}function mu(o,s,l,h,v,_){return o===null||o.nativeEvent!==_?(o={blockedOn:s,domEventName:l,eventSystemFlags:h,nativeEvent:_,targetContainers:[v]},s!==null&&(s=Wi(s),s!==null&&$R(s)),o):(o.eventSystemFlags|=h,s=o.targetContainers,v!==null&&s.indexOf(v)===-1&&s.push(v),o)}function F5(o,s,l,h,v){switch(s){case"focusin":return cs=mu(cs,o,s,l,h,v),!0;case"dragenter":return ls=mu(ls,o,s,l,h,v),!0;case"mouseover":return us=mu(us,o,s,l,h,v),!0;case"pointerover":var _=v.pointerId;return hu.set(_,mu(hu.get(_)||null,o,s,l,h,v)),!0;case"gotpointercapture":return _=v.pointerId,pu.set(_,mu(pu.get(_)||null,o,s,l,h,v)),!0}return!1}function FR(o){var s=Ki(o.target);if(s!==null){var l=i(s);if(l!==null){if(s=l.tag,s===13){if(s=c(l),s!==null){o.blockedOn=s,nw(o.priority,function(){UR(l)});return}}else if(s===31){if(s=u(l),s!==null){o.blockedOn=s,nw(o.priority,function(){UR(l)});return}}else if(s===3&&l.stateNode.current.memoizedState.isDehydrated){o.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}o.blockedOn=null}function qf(o){if(o.blockedOn!==null)return!1;for(var s=o.targetContainers;0<s.length;){var l=py(o.nativeEvent);if(l===null){l=o.nativeEvent;var h=new l.constructor(l.type,l);mg=h,l.target.dispatchEvent(h),mg=null}else return s=Wi(l),s!==null&&$R(s),o.blockedOn=l,!1;s.shift()}return!0}function BR(o,s,l){qf(o)&&l.delete(s)}function B5(){gy=!1,cs!==null&&qf(cs)&&(cs=null),ls!==null&&qf(ls)&&(ls=null),us!==null&&qf(us)&&(us=null),hu.forEach(BR),pu.forEach(BR)}function Hf(o,s){o.blockedOn===s&&(o.blockedOn=null,gy||(gy=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,B5)))}var Gf=null;function qR(o){Gf!==o&&(Gf=o,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Gf===o&&(Gf=null);for(var s=0;s<o.length;s+=3){var l=o[s],h=o[s+1],v=o[s+2];if(typeof h!="function"){if(my(h||l)===null)continue;break}var _=Wi(l);_!==null&&(o.splice(s,3),s-=3,pv(_,{pending:!0,data:v,method:l.method,action:h},h,v))}}))}function Ic(o){function s(Y){return Hf(Y,o)}cs!==null&&Hf(cs,o),ls!==null&&Hf(ls,o),us!==null&&Hf(us,o),hu.forEach(s),pu.forEach(s);for(var l=0;l<ds.length;l++){var h=ds[l];h.blockedOn===o&&(h.blockedOn=null)}for(;0<ds.length&&(l=ds[0],l.blockedOn===null);)FR(l),l.blockedOn===null&&ds.shift();if(l=(o.ownerDocument||o).$$reactFormReplay,l!=null)for(h=0;h<l.length;h+=3){var v=l[h],_=l[h+1],k=v[vr]||null;if(typeof _=="function")k||qR(l);else if(k){var j=null;if(_&&_.hasAttribute("formAction")){if(v=_,k=_[vr]||null)j=k.formAction;else if(my(v)!==null)continue}else j=k.action;typeof j=="function"?l[h+1]=j:(l.splice(h,3),h-=3),qR(l)}}}function HR(){function o(_){_.canIntercept&&_.info==="react-transition"&&_.intercept({handler:function(){return new Promise(function(k){return v=k})},focusReset:"manual",scroll:"manual"})}function s(){v!==null&&(v(),v=null),h||setTimeout(l,20)}function l(){if(!h&&!navigation.transition){var _=navigation.currentEntry;_&&_.url!=null&&navigation.navigate(_.url,{state:_.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var h=!1,v=null;return navigation.addEventListener("navigate",o),navigation.addEventListener("navigatesuccess",s),navigation.addEventListener("navigateerror",s),setTimeout(l,100),function(){h=!0,navigation.removeEventListener("navigate",o),navigation.removeEventListener("navigatesuccess",s),navigation.removeEventListener("navigateerror",s),v!==null&&(v(),v=null)}}}function vy(o){this._internalRoot=o}Zf.prototype.render=vy.prototype.render=function(o){var s=this._internalRoot;if(s===null)throw Error(r(409));var l=s.current,h=$r();LR(l,h,o,s,null,null)},Zf.prototype.unmount=vy.prototype.unmount=function(){var o=this._internalRoot;if(o!==null){this._internalRoot=null;var s=o.containerInfo;LR(o.current,2,null,o,null,null),Of(),s[Zi]=null}};function Zf(o){this._internalRoot=o}Zf.prototype.unstable_scheduleHydration=function(o){if(o){var s=cg();o={blockedOn:null,target:o,priority:s};for(var l=0;l<ds.length&&s!==0&&s<ds[l].priority;l++);ds.splice(l,0,o),l===0&&FR(o)}};var GR=t.version;if(GR!=="19.2.4")throw Error(r(527,GR,"19.2.4"));X.findDOMNode=function(o){var s=o._reactInternals;if(s===void 0)throw typeof o.render=="function"?Error(r(188)):(o=Object.keys(o).join(","),Error(r(268,o)));return o=f(s),o=o!==null?m(o):null,o=o===null?null:o.stateNode,o};var q5={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:F,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Kf=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Kf.isDisabled&&Kf.supportsFiber)try{Un=Kf.inject(q5),en=Kf}catch{}}return vu.createRoot=function(o,s){if(!a(o))throw Error(r(299));var l=!1,h="",v=JS,_=eE,k=tE;return s!=null&&(s.unstable_strictMode===!0&&(l=!0),s.identifierPrefix!==void 0&&(h=s.identifierPrefix),s.onUncaughtError!==void 0&&(v=s.onUncaughtError),s.onCaughtError!==void 0&&(_=s.onCaughtError),s.onRecoverableError!==void 0&&(k=s.onRecoverableError)),s=PR(o,1,!1,null,null,l,h,null,v,_,k,HR),o[Zi]=s.current,Xv(o),new vy(s)},vu.hydrateRoot=function(o,s,l){if(!a(o))throw Error(r(299));var h=!1,v="",_=JS,k=eE,j=tE,Y=null;return l!=null&&(l.unstable_strictMode===!0&&(h=!0),l.identifierPrefix!==void 0&&(v=l.identifierPrefix),l.onUncaughtError!==void 0&&(_=l.onUncaughtError),l.onCaughtError!==void 0&&(k=l.onCaughtError),l.onRecoverableError!==void 0&&(j=l.onRecoverableError),l.formState!==void 0&&(Y=l.formState)),s=PR(o,1,!0,s,l??null,h,v,Y,_,k,j,HR),s.context=DR(null),l=s.current,h=$r(),h=Gi(h),v=Ya(h),v.callback=null,Qa(l,v,h),l=h,s.current.lanes=l,tn(s,l),Go(s),o[Zi]=s.current,Xv(o),new Zf(s)},vu.version="19.2.4",vu}var rx;function nD(){if(rx)return _y.exports;rx=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(),_y.exports=tD(),_y.exports}var rD=nD(),A=zs();const le=ja(A),ub=G5({__proto__:null,default:le},[A]);var Ry={exports:{}},xy={};var ox;function oD(){if(ox)return xy;ox=1;var e=zs().__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;return xy.c=function(t){return e.H.useMemoCache(t)},xy}var ax;function aD(){return ax||(ax=1,Ry.exports=oD()),Ry.exports}var Li=aD(),gd=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},sD={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},iD=class{#e=sD;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}},Ei=new iD;function cD(e){setTimeout(e,0)}var Ii=typeof window>"u"||"Deno"in globalThis;function Or(){}function lD(e,t){return typeof e=="function"?e(t):e}function G0(e){return typeof e=="number"&&e>=0&&e!==1/0}function ZC(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Cs(e,t){return typeof e=="function"?e(t):e}function uo(e,t){return typeof e=="function"?e(t):e}function sx(e,t){const{type:n="all",exact:r,fetchStatus:a,predicate:i,queryKey:c,stale:u}=e;if(c){if(r){if(t.queryHash!==db(c,t.options))return!1}else if(!Xu(t.queryKey,c))return!1}if(n!=="all"){const d=t.isActive();if(n==="active"&&!d||n==="inactive"&&d)return!1}return!(typeof u=="boolean"&&t.isStale()!==u||a&&a!==t.state.fetchStatus||i&&!i(t))}function ix(e,t){const{exact:n,status:r,predicate:a,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(Qu(t.options.mutationKey)!==Qu(i))return!1}else if(!Xu(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||a&&!a(t))}function db(e,t){return(t?.queryKeyHashFn||Qu)(e)}function Qu(e){return JSON.stringify(e,(t,n)=>K0(n)?Object.keys(n).sort().reduce((r,a)=>(r[a]=n[a],r),{}):n)}function Xu(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Xu(e[n],t[n])):!1}var uD=Object.prototype.hasOwnProperty;function KC(e,t){if(e===t)return e;const n=cx(e)&&cx(t);if(!n&&!(K0(e)&&K0(t)))return t;const a=(n?e:Object.keys(e)).length,i=n?t:Object.keys(t),c=i.length,u=n?new Array(c):{};let d=0;for(let f=0;f<c;f++){const m=n?f:i[f],p=e[m],g=t[m];if(p===g){u[m]=p,(n?f<a:uD.call(e,m))&&d++;continue}if(p===null||g===null||typeof p!="object"||typeof g!="object"){u[m]=g;continue}const y=KC(p,g);u[m]=y,y===p&&d++}return a===c&&d===a?e:u}function Z0(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function cx(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function K0(e){if(!lx(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!lx(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function lx(e){return Object.prototype.toString.call(e)==="[object Object]"}function dD(e){return new Promise(t=>{Ei.setTimeout(t,e)})}function W0(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?KC(e,t):t}function woe(e){return e}function fD(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function hD(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var fb=Symbol();function WC(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===fb?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function pD(e,t){return typeof e=="function"?e(...t):!!e}var mD=class extends gd{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!Ii&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},hb=new mD;function Y0(){let e,t;const n=new Promise((a,i)=>{e=a,t=i});n.status="pending",n.catch(()=>{});function r(a){Object.assign(n,a),delete n.resolve,delete n.reject}return n.resolve=a=>{r({status:"fulfilled",value:a}),e(a)},n.reject=a=>{r({status:"rejected",reason:a}),t(a)},n}var gD=cD;function vD(){let e=[],t=0,n=u=>{u()},r=u=>{u()},a=gD;const i=u=>{t?e.push(u):a(()=>{n(u)})},c=()=>{const u=e;e=[],u.length&&a(()=>{r(()=>{u.forEach(d=>{n(d)})})})};return{batch:u=>{let d;t++;try{d=u()}finally{t--,t||c()}return d},batchCalls:u=>(...d)=>{i(()=>{u(...d)})},schedule:i,setNotifyFunction:u=>{n=u},setBatchNotifyFunction:u=>{r=u},setScheduler:u=>{a=u}}}var Kn=vD(),yD=class extends gd{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!Ii&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(n=>{n(e)}))}isOnline(){return this.#e}},Ep=new yD;function _D(e){return Math.min(1e3*2**e,3e4)}function YC(e){return(e??"online")==="online"?Ep.isOnline():!0}var Q0=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function QC(e){let t=!1,n=0,r;const a=Y0(),i=()=>a.status!=="pending",c=S=>{if(!i()){const b=new Q0(S);g(b),e.onCancel?.(b)}},u=()=>{t=!0},d=()=>{t=!1},f=()=>hb.isFocused()&&(e.networkMode==="always"||Ep.isOnline())&&e.canRun(),m=()=>YC(e.networkMode)&&e.canRun(),p=S=>{i()||(r?.(),a.resolve(S))},g=S=>{i()||(r?.(),a.reject(S))},y=()=>new Promise(S=>{r=b=>{(i()||f())&&S(b)},e.onPause?.()}).then(()=>{r=void 0,i()||e.onContinue?.()}),w=()=>{if(i())return;let S;const b=n===0?e.initialPromise:void 0;try{S=b??e.fn()}catch(R){S=Promise.reject(R)}Promise.resolve(S).then(p).catch(R=>{if(i())return;const E=e.retry??(Ii?0:3),T=e.retryDelay??_D,O=typeof T=="function"?T(n,R):T,C=E===!0||typeof E=="number"&&n<E||typeof E=="function"&&E(n,R);if(t||!C){g(R);return}n++,e.onFail?.(n,R),dD(O).then(()=>f()?void 0:y()).then(()=>{t?g(R):w()})})};return{promise:a,status:()=>a.status,cancel:c,continue:()=>(r?.(),a),cancelRetry:u,continueRetry:d,canStart:m,start:()=>(m()?w():y().then(w),a)}}var XC=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),G0(this.gcTime)&&(this.#e=Ei.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Ii?1/0:300*1e3))}clearGcTimeout(){this.#e&&(Ei.clearTimeout(this.#e),this.#e=void 0)}},bD=class extends XC{#e;#t;#n;#o;#r;#i;#s;constructor(e){super(),this.#s=!1,this.#i=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#o=e.client,this.#n=this.#o.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=dx(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#r?.promise}setOptions(e){if(this.options={...this.#i,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=dx(this.options);t.data!==void 0&&(this.setState(ux(t.data,t.dataUpdatedAt)),this.#e=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,t){const n=W0(this.state.data,e,this.options);return this.#a({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#a({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#r?.promise;return this.#r?.cancel(e),t?t.then(Or).catch(Or):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>uo(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===fb||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Cs(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!ZC(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#r&&(this.#s?this.#r.cancel({revert:!0}):this.#r.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#a({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#r?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.promise}if(e&&this.setOptions(e),!this.options.queryFn){const u=this.observers.find(d=>d.options.queryFn);u&&this.setOptions(u.options)}const n=new AbortController,r=u=>{Object.defineProperty(u,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},a=()=>{const u=WC(this.options,t),f=(()=>{const m={client:this.#o,queryKey:this.queryKey,meta:this.meta};return r(m),m})();return this.#s=!1,this.options.persister?this.options.persister(u,f,this):u(f)},c=(()=>{const u={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#o,state:this.state,fetchFn:a};return r(u),u})();this.options.behavior?.onFetch(c,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==c.fetchOptions?.meta)&&this.#a({type:"fetch",meta:c.fetchOptions?.meta}),this.#r=QC({initialPromise:t?.initialPromise,fn:c.fetchFn,onCancel:u=>{u instanceof Q0&&u.revert&&this.setState({...this.#t,fetchStatus:"idle"}),n.abort()},onFail:(u,d)=>{this.#a({type:"failed",failureCount:u,error:d})},onPause:()=>{this.#a({type:"pause"})},onContinue:()=>{this.#a({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode,canRun:()=>!0});try{const u=await this.#r.start();if(u===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(u),this.#n.config.onSuccess?.(u,this),this.#n.config.onSettled?.(u,this.state.error,this),u}catch(u){if(u instanceof Q0){if(u.silent)return this.#r.promise;if(u.revert){if(this.state.data===void 0)throw u;return this.state.data}}throw this.#a({type:"error",error:u}),this.#n.config.onError?.(u,this),this.#n.config.onSettled?.(this.state.data,u,this),u}finally{this.scheduleGc()}}#a(e){const t=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...JC(n.data,this.options),fetchMeta:e.meta??null};case"success":const r={...n,...ux(e.data,e.dataUpdatedAt),dataUpdateCount:n.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=e.manual?r:void 0,r;case"error":const a=e.error;return{...n,error:a,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),Kn.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function JC(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:YC(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function ux(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function dx(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var wD=class extends gd{constructor(e,t){super(),this.options=t,this.#e=e,this.#a=null,this.#s=Y0(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#o=void 0;#r;#i;#s;#a;#m;#f;#h;#l;#u;#c;#p=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),fx(this.#t,this.options)?this.#d():this.updateResult(),this.#_())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return X0(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return X0(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#w(),this.#t.removeObserver(this)}setOptions(e){const t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof uo(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#S(),this.#t.setOptions(this.options),t._defaulted&&!Z0(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const r=this.hasListeners();r&&hx(this.#t,n,this.options,t)&&this.#d(),this.updateResult(),r&&(this.#t!==n||uo(this.options.enabled,this.#t)!==uo(t.enabled,this.#t)||Cs(this.options.staleTime,this.#t)!==Cs(t.staleTime,this.#t))&&this.#g();const a=this.#v();r&&(this.#t!==n||uo(this.options.enabled,this.#t)!==uo(t.enabled,this.#t)||a!==this.#c)&&this.#y(a)}getOptimisticResult(e){const t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return ED(this,n)&&(this.#o=n,this.#i=this.options,this.#r=this.#t.state),n}getCurrentResult(){return this.#o}trackResult(e,t){return new Proxy(e,{get:(n,r)=>(this.trackProp(r),t?.(r),r==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#s.status==="pending"&&this.#s.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(n,r))})}trackProp(e){this.#p.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#d({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#o))}#d(e){this.#S();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(Or)),t}#g(){this.#b();const e=Cs(this.options.staleTime,this.#t);if(Ii||this.#o.isStale||!G0(e))return;const n=ZC(this.#o.dataUpdatedAt,e)+1;this.#l=Ei.setTimeout(()=>{this.#o.isStale||this.updateResult()},n)}#v(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#y(e){this.#w(),this.#c=e,!(Ii||uo(this.options.enabled,this.#t)===!1||!G0(this.#c)||this.#c===0)&&(this.#u=Ei.setInterval(()=>{(this.options.refetchIntervalInBackground||hb.isFocused())&&this.#d()},this.#c))}#_(){this.#g(),this.#y(this.#v())}#b(){this.#l&&(Ei.clearTimeout(this.#l),this.#l=void 0)}#w(){this.#u&&(Ei.clearInterval(this.#u),this.#u=void 0)}createResult(e,t){const n=this.#t,r=this.options,a=this.#o,i=this.#r,c=this.#i,d=e!==n?e.state:this.#n,{state:f}=e;let m={...f},p=!1,g;if(t._optimisticResults){const D=this.hasListeners(),z=!D&&fx(e,t),W=D&&hx(e,n,t,r);(z||W)&&(m={...m,...JC(f.data,e.options)}),t._optimisticResults==="isRestoring"&&(m.fetchStatus="idle")}let{error:y,errorUpdatedAt:w,status:S}=m;g=m.data;let b=!1;if(t.placeholderData!==void 0&&g===void 0&&S==="pending"){let D;a?.isPlaceholderData&&t.placeholderData===c?.placeholderData?(D=a.data,b=!0):D=typeof t.placeholderData=="function"?t.placeholderData(this.#h?.state.data,this.#h):t.placeholderData,D!==void 0&&(S="success",g=W0(a?.data,D,t),p=!0)}if(t.select&&g!==void 0&&!b)if(a&&g===i?.data&&t.select===this.#m)g=this.#f;else try{this.#m=t.select,g=t.select(g),g=W0(a?.data,g,t),this.#f=g,this.#a=null}catch(D){this.#a=D}this.#a&&(y=this.#a,g=this.#f,w=Date.now(),S="error");const R=m.fetchStatus==="fetching",E=S==="pending",T=S==="error",O=E&&R,C=g!==void 0,N={status:S,fetchStatus:m.fetchStatus,isPending:E,isSuccess:S==="success",isError:T,isInitialLoading:O,isLoading:O,data:g,dataUpdatedAt:m.dataUpdatedAt,error:y,errorUpdatedAt:w,failureCount:m.fetchFailureCount,failureReason:m.fetchFailureReason,errorUpdateCount:m.errorUpdateCount,isFetched:m.dataUpdateCount>0||m.errorUpdateCount>0,isFetchedAfterMount:m.dataUpdateCount>d.dataUpdateCount||m.errorUpdateCount>d.errorUpdateCount,isFetching:R,isRefetching:R&&!E,isLoadingError:T&&!C,isPaused:m.fetchStatus==="paused",isPlaceholderData:p,isRefetchError:T&&C,isStale:pb(e,t),refetch:this.refetch,promise:this.#s,isEnabled:uo(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const D=V=>{N.status==="error"?V.reject(N.error):N.data!==void 0&&V.resolve(N.data)},z=()=>{const V=this.#s=N.promise=Y0();D(V)},W=this.#s;switch(W.status){case"pending":e.queryHash===n.queryHash&&D(W);break;case"fulfilled":(N.status==="error"||N.data!==W.value)&&z();break;case"rejected":(N.status!=="error"||N.error!==W.reason)&&z();break}}return N}updateResult(){const e=this.#o,t=this.createResult(this.#t,this.options);if(this.#r=this.#t.state,this.#i=this.options,this.#r.data!==void 0&&(this.#h=this.#t),Z0(t,e))return;this.#o=t;const n=()=>{if(!e)return!0;const{notifyOnChangeProps:r}=this.options,a=typeof r=="function"?r():r;if(a==="all"||!a&&!this.#p.size)return!0;const i=new Set(a??this.#p);return this.options.throwOnError&&i.add("error"),Object.keys(this.#o).some(c=>{const u=c;return this.#o[u]!==e[u]&&i.has(u)})};this.#E({listeners:n()})}#S(){const e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;const t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#_()}#E(e){Kn.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#o)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function SD(e,t){return uo(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function fx(e,t){return SD(e,t)||e.state.data!==void 0&&X0(e,t,t.refetchOnMount)}function X0(e,t,n){if(uo(t.enabled,e)!==!1&&Cs(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&pb(e,t)}return!1}function hx(e,t,n,r){return(e!==t||uo(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&pb(e,n)}function pb(e,t){return uo(t.enabled,e)!==!1&&e.isStaleByTime(Cs(t.staleTime,e))}function ED(e,t){return!Z0(e.getCurrentResult(),t)}function px(e){return{onFetch:(t,n)=>{const r=t.options,a=t.fetchOptions?.meta?.fetchMore?.direction,i=t.state.data?.pages||[],c=t.state.data?.pageParams||[];let u={pages:[],pageParams:[]},d=0;const f=async()=>{let m=!1;const p=w=>{Object.defineProperty(w,"signal",{enumerable:!0,get:()=>(t.signal.aborted?m=!0:t.signal.addEventListener("abort",()=>{m=!0}),t.signal)})},g=WC(t.options,t.fetchOptions),y=async(w,S,b)=>{if(m)return Promise.reject();if(S==null&&w.pages.length)return Promise.resolve(w);const E=(()=>{const I={client:t.client,queryKey:t.queryKey,pageParam:S,direction:b?"backward":"forward",meta:t.options.meta};return p(I),I})(),T=await g(E),{maxPages:O}=t.options,C=b?hD:fD;return{pages:C(w.pages,T,O),pageParams:C(w.pageParams,S,O)}};if(a&&i.length){const w=a==="backward",S=w?eA:J0,b={pages:i,pageParams:c},R=S(r,b);u=await y(b,R,w)}else{const w=e??i.length;do{const S=d===0?c[0]??r.initialPageParam:J0(r,u);if(d>0&&S==null)break;u=await y(u,S),d++}while(d<w)}return u};t.options.persister?t.fetchFn=()=>t.options.persister?.(f,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=f}}}function J0(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function eA(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}function Soe(e,t){return t?J0(e,t)!=null:!1}function Eoe(e,t){return!t||!e.getPreviousPageParam?!1:eA(e,t)!=null}var RD=class extends XC{#e;#t;#n;#o;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||xD(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#o?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#r({type:"continue"})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#o=QC({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(new Error("No mutationFn found")),onFail:(i,c)=>{this.#r({type:"failed",failureCount:i,error:c})},onPause:()=>{this.#r({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const r=this.state.status==="pending",a=!this.#o.canStart();try{if(r)t();else{this.#r({type:"pending",variables:e,isPaused:a}),await this.#n.config.onMutate?.(e,this,n);const c=await this.options.onMutate?.(e,n);c!==this.state.context&&this.#r({type:"pending",context:c,variables:e,isPaused:a})}const i=await this.#o.start();return await this.#n.config.onSuccess?.(i,e,this.state.context,this,n),await this.options.onSuccess?.(i,e,this.state.context,n),await this.#n.config.onSettled?.(i,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(i,null,e,this.state.context,n),this.#r({type:"success",data:i}),i}catch(i){try{throw await this.#n.config.onError?.(i,e,this.state.context,this,n),await this.options.onError?.(i,e,this.state.context,n),await this.#n.config.onSettled?.(void 0,i,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(void 0,i,e,this.state.context,n),i}finally{this.#r({type:"error",error:i})}}finally{this.#n.runNext(this)}}#r(e){const t=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),Kn.batch(()=>{this.#t.forEach(n=>{n.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}};function xD(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var TD=class extends gd{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){const r=new RD({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);const t=Wf(e);if(typeof t=="string"){const n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){const t=Wf(e);if(typeof t=="string"){const n=this.#t.get(t);if(n)if(n.length>1){const r=n.indexOf(e);r!==-1&&n.splice(r,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=Wf(e);if(typeof t=="string"){const r=this.#t.get(t)?.find(a=>a.state.status==="pending");return!r||r===e}else return!0}runNext(e){const t=Wf(e);return typeof t=="string"?this.#t.get(t)?.find(r=>r!==e&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Kn.batch(()=>{this.#e.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){const t={exact:!0,...e};return this.getAll().find(n=>ix(t,n))}findAll(e={}){return this.getAll().filter(t=>ix(e,t))}notify(e){Kn.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return Kn.batch(()=>Promise.all(e.map(t=>t.continue().catch(Or))))}};function Wf(e){return e.options.scope?.id}var OD=class extends gd{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){const r=t.queryKey,a=t.queryHash??db(r,t);let i=this.get(a);return i||(i=new bD({client:e,queryKey:r,queryHash:a,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(i)),i}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Kn.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(n=>sx(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>sx(e,n)):t}notify(e){Kn.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Kn.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Kn.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},CD=class{#e;#t;#n;#o;#r;#i;#s;#a;constructor(e={}){this.#e=e.queryCache||new OD,this.#t=e.mutationCache||new TD,this.#n=e.defaultOptions||{},this.#o=new Map,this.#r=new Map,this.#i=0}mount(){this.#i++,this.#i===1&&(this.#s=hb.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#a=Ep.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#i--,this.#i===0&&(this.#s?.(),this.#s=void 0,this.#a?.(),this.#a=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#t.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Cs(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,c=lD(t,i);if(c!==void 0)return this.#e.build(this,r).setData(c,{...n,manual:!0})}setQueriesData(e,t,n){return Kn.batch(()=>this.#e.findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){const t=this.#e;Kn.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=this.#e;return Kn.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Kn.batch(()=>this.#e.findAll(e).map(a=>a.cancel(n)));return Promise.all(r).then(Or).catch(Or)}invalidateQueries(e,t={}){return Kn.batch(()=>(this.#e.findAll(e).forEach(n=>{n.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=Kn.batch(()=>this.#e.findAll(e).filter(a=>!a.isDisabled()&&!a.isStatic()).map(a=>{let i=a.fetch(void 0,n);return n.throwOnError||(i=i.catch(Or)),a.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(Or)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=this.#e.build(this,t);return n.isStaleByTime(Cs(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Or).catch(Or)}fetchInfiniteQuery(e){return e.behavior=px(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Or).catch(Or)}ensureInfiniteQueryData(e){return e.behavior=px(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Ep.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#o.set(Qu(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#o.values()],n={};return t.forEach(r=>{Xu(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){this.#r.set(Qu(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#r.values()],n={};return t.forEach(r=>{Xu(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=db(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===fb&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},tA=A.createContext(void 0),AD=e=>{const t=A.useContext(tA);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},ID=({client:e,children:t})=>(A.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),x.jsx(tA.Provider,{value:e,children:t})),nA=A.createContext(!1),kD=()=>A.useContext(nA);nA.Provider;function ND(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var MD=A.createContext(ND()),PD=()=>A.useContext(MD),DD=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},LD=e=>{A.useEffect(()=>{e.clearReset()},[e])},jD=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:a})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(a&&e.data===void 0||pD(n,[e.error,r])),$D=(e,t)=>t.state.data===void 0,UD=e=>{if(e.suspense){const n=a=>a==="static"?a:Math.max(a??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...a)=>n(r(...a)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},zD=(e,t)=>e.isLoading&&e.isFetching&&!t,VD=(e,t)=>e?.suspense&&t.isPending,mx=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function FD(e,t,n){const r=kD(),a=PD(),i=AD(n),c=i.defaultQueryOptions(e);i.getDefaultOptions().queries?._experimental_beforeQuery?.(c),c._optimisticResults=r?"isRestoring":"optimistic",UD(c),DD(c,a),LD(a);const u=!i.getQueryCache().get(c.queryHash),[d]=A.useState(()=>new t(i,c)),f=d.getOptimisticResult(c),m=!r&&e.subscribed!==!1;if(A.useSyncExternalStore(A.useCallback(p=>{const g=m?d.subscribe(Kn.batchCalls(p)):Or;return d.updateResult(),g},[d,m]),()=>d.getCurrentResult(),()=>d.getCurrentResult()),A.useEffect(()=>{d.setOptions(c)},[c,d]),VD(c,f))throw mx(c,d,a);if(jD({result:f,errorResetBoundary:a,throwOnError:c.throwOnError,query:i.getQueryCache().get(c.queryHash),suspense:c.suspense}))throw f.error;return i.getDefaultOptions().queries?._experimental_afterQuery?.(c,f),c.experimental_prefetchInRender&&!Ii&&zD(f,r)&&(u?mx(c,d,a):i.getQueryCache().get(c.queryHash)?.promise)?.catch(Or).finally(()=>{d.updateResult()}),c.notifyOnChangeProps?f:d.trackResult(f)}function rA(e,t){return FD({...e,enabled:!0,suspense:!0,throwOnError:$D,placeholderData:void 0},wD,t)}const oA={publicConfig:()=>["publicConfig"],authConfig:()=>["authConfig"],session:()=>["session"],tasks:e=>["tasks",e],messages:e=>["messages",e],organizations:()=>["organizations"],members:e=>[e,"members"],invitations:e=>[e,"invitations"],organizationRoles:e=>[e,"organization-roles"],connections:e=>[e,"connections"],connectionsByBinding:(e,t)=>[e,"connections",`binding:${t}`],connection:(e,t)=>[e,"connection",t],isMCPAuthenticated:(e,t)=>["is-mcp-authenticated",e,t],mcpTools:(e,t)=>["mcp","tools",e,t],organizationSettings:e=>["organization-settings",e],activeOrganization:e=>["activeOrganization",e],modelsList:e=>["models-list",e],allowedModels:e=>[e,"allowed-models"],connectionCollections:e=>[e,"collections","discovery"],toolCall:(e,t,n)=>["tool-call",e,t,n],collectionItems:(e,t)=>["collection",e,t],collection:(e,t,n)=>[e,t,"collection",n],collectionItem:(e,t,n,r,a)=>[e,t,n,"collection",r,a],collectionList:(e,t,n,r,a)=>[e,t,n,"collection",r,"list",a],collectionListInfinite:(e,t,n,r,a)=>[e,t,n,"collection",r,"list-infinite",a],githubReadme:(e,t)=>["github-readme",e,t],monitoringStats:()=>["monitoring","stats"],monitoringLogs:e=>["monitoring","logs",e],monitoringLogsInfinite:(e,t)=>["monitoring","logs-infinite",e,t],monitoringDashboards:e=>["monitoring","dashboards",e],monitoringDashboardDetails:(e,t)=>["monitoring","dashboard",e,t],monitoringDashboardQuery:(e,t,n,r,a)=>["monitoringDashboardQuery",e,t,n,r,a??""],virtualMcpPrompts:(e,t)=>["virtual-mcp",t,e??"default","prompts"],virtualMcpResources:(e,t)=>["virtual-mcp",t,e??"default","resources"],suggestionItems:(e,t,n)=>[...e,t,n],connectionPrompts:e=>["connection",e,"prompts"],connectionResources:e=>["connection",e,"resources"],user:e=>["user",e],storeReadmeUrl:e=>["store-readme-url",e],remoteMcpTools:e=>["remote-mcp-tools",e],tags:e=>[e,"tags"],memberTags:(e,t)=>[e,"member-tags",t],projects:e=>["projects",e],project:(e,t)=>["project",e,t],projectById:e=>["project","byId",e],projectPluginConfigs:e=>["project-plugin-configs",e],projectPluginConfig:(e,t)=>["project-plugin-config",e,t],projectConnections:e=>["project-connections",e],projectConnectionDetails:(e,t)=>["project-connections",e,"details",t]},aA=A.createContext(void 0);async function BD(){const e=await fetch("/api/auth/custom/config");if(!e.ok)throw new Error("Failed to load auth configuration");const t=await e.json();if(!t.success)throw new Error(t.error||"Failed to load auth configuration");return t.config}function qD(e){const t=Li.c(4),{children:n}=e;let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={queryKey:oA.authConfig(),queryFn:BD,staleTime:1/0},t[0]=r):r=t[0];const{data:a}=rA(r);let i;return t[1]!==a||t[2]!==n?(i=x.jsx(aA.Provider,{value:a,children:n}),t[1]=a,t[2]=n,t[3]=i):i=t[3],i}function Roe(){const e=A.useContext(aA);if(e===void 0)throw new Error("useAuthConfig must be used within AuthConfigProvider");return e}const Xc=new WeakMap,lp=new WeakMap,Rp={current:[]};let Ty=!1,zu=0;const Iu=new Set,Yf=new Map;function sA(e){const t=Array.from(e).sort((n,r)=>n instanceof Jc&&n.options.deps.includes(r)?1:r instanceof Jc&&r.options.deps.includes(n)?-1:0);for(const n of t){if(Rp.current.includes(n))continue;Rp.current.push(n),n.recompute();const r=lp.get(n);if(r)for(const a of r){const i=Xc.get(a);i&&sA(i)}}}function HD(e){const t={prevVal:e.prevState,currentVal:e.state};for(const n of e.listeners)n(t)}function GD(e){const t={prevVal:e.prevState,currentVal:e.state};for(const n of e.listeners)n(t)}function iA(e){if(zu>0&&!Yf.has(e)&&Yf.set(e,e.prevState),Iu.add(e),!(zu>0)&&!Ty)try{for(Ty=!0;Iu.size>0;){const t=Array.from(Iu);Iu.clear();for(const n of t){const r=Yf.get(n)??n.prevState;n.prevState=r,HD(n)}for(const n of t){const r=Xc.get(n);r&&(Rp.current.push(n),sA(r))}for(const n of t){const r=Xc.get(n);if(r)for(const a of r)GD(a)}}}finally{Ty=!1,Rp.current=[],Yf.clear()}}function Vu(e){zu++;try{e()}finally{if(zu--,zu===0){const t=Iu.values().next().value;t&&iA(t)}}}function ZD(e){return typeof e=="function"}class e_{constructor(t,n){this.listeners=new Set,this.subscribe=r=>{var a,i;this.listeners.add(r);const c=(i=(a=this.options)==null?void 0:a.onSubscribe)==null?void 0:i.call(a,r,this);return()=>{this.listeners.delete(r),c?.()}},this.prevState=t,this.state=t,this.options=n}setState(t){var n,r,a;this.prevState=this.state,(n=this.options)!=null&&n.updateFn?this.state=this.options.updateFn(this.prevState)(t):ZD(t)?this.state=t(this.prevState):this.state=t,(a=(r=this.options)==null?void 0:r.onUpdate)==null||a.call(r),iA(this)}}class Jc{constructor(t){this.listeners=new Set,this._subscriptions=[],this.lastSeenDepValues=[],this.getDepVals=()=>{const n=this.options.deps.length,r=new Array(n),a=new Array(n);for(let i=0;i<n;i++){const c=this.options.deps[i];r[i]=c.prevState,a[i]=c.state}return this.lastSeenDepValues=a,{prevDepVals:r,currDepVals:a,prevVal:this.prevState??void 0}},this.recompute=()=>{var n,r;this.prevState=this.state;const a=this.getDepVals();this.state=this.options.fn(a),(r=(n=this.options).onUpdate)==null||r.call(n)},this.checkIfRecalculationNeededDeeply=()=>{for(const i of this.options.deps)i instanceof Jc&&i.checkIfRecalculationNeededDeeply();let n=!1;const r=this.lastSeenDepValues,{currDepVals:a}=this.getDepVals();for(let i=0;i<a.length;i++)if(a[i]!==r[i]){n=!0;break}n&&this.recompute()},this.mount=()=>(this.registerOnGraph(),this.checkIfRecalculationNeededDeeply(),()=>{this.unregisterFromGraph();for(const n of this._subscriptions)n()}),this.subscribe=n=>{var r,a;this.listeners.add(n);const i=(a=(r=this.options).onSubscribe)==null?void 0:a.call(r,n,this);return()=>{this.listeners.delete(n),i?.()}},this.options=t,this.state=t.fn({prevDepVals:void 0,prevVal:void 0,currDepVals:this.getDepVals().currDepVals})}registerOnGraph(t=this.options.deps){for(const n of t)if(n instanceof Jc)n.registerOnGraph(),this.registerOnGraph(n.options.deps);else if(n instanceof e_){let r=Xc.get(n);r||(r=new Set,Xc.set(n,r)),r.add(this);let a=lp.get(this);a||(a=new Set,lp.set(this,a)),a.add(n)}}unregisterFromGraph(t=this.options.deps){for(const n of t)if(n instanceof Jc)this.unregisterFromGraph(n.options.deps);else if(n instanceof e_){const r=Xc.get(n);r&&r.delete(this);const a=lp.get(this);a&&a.delete(n)}}}const As="__TSR_index",gx="popstate",vx="beforeunload";function KD(e){let t=e.getLocation();const n=new Set,r=c=>{t=e.getLocation(),n.forEach(u=>u({location:t,action:c}))},a=c=>{e.notifyOnIndexChange??!0?r(c):t=e.getLocation()},i=async({task:c,navigateOpts:u,...d})=>{if(u?.ignoreBlocker??!1){c();return}const m=e.getBlockers?.()??[],p=d.type==="PUSH"||d.type==="REPLACE";if(typeof document<"u"&&m.length&&p)for(const g of m){const y=xp(d.path,d.state);if(await g.blockerFn({currentLocation:t,nextLocation:y,action:d.type})){e.onBlocked?.();return}}c()};return{get location(){return t},get length(){return e.getLength()},subscribers:n,subscribe:c=>(n.add(c),()=>{n.delete(c)}),push:(c,u,d)=>{const f=t.state[As];u=yx(f+1,u),i({task:()=>{e.pushState(c,u),r({type:"PUSH"})},navigateOpts:d,type:"PUSH",path:c,state:u})},replace:(c,u,d)=>{const f=t.state[As];u=yx(f,u),i({task:()=>{e.replaceState(c,u),r({type:"REPLACE"})},navigateOpts:d,type:"REPLACE",path:c,state:u})},go:(c,u)=>{i({task:()=>{e.go(c),a({type:"GO",index:c})},navigateOpts:u,type:"GO"})},back:c=>{i({task:()=>{e.back(c?.ignoreBlocker??!1),a({type:"BACK"})},navigateOpts:c,type:"BACK"})},forward:c=>{i({task:()=>{e.forward(c?.ignoreBlocker??!1),a({type:"FORWARD"})},navigateOpts:c,type:"FORWARD"})},canGoBack:()=>t.state[As]!==0,createHref:c=>e.createHref(c),block:c=>{if(!e.setBlockers)return()=>{};const u=e.getBlockers?.()??[];return e.setBlockers([...u,c]),()=>{const d=e.getBlockers?.()??[];e.setBlockers?.(d.filter(f=>f!==c))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:r}}function yx(e,t){t||(t={});const n=mb();return{...t,key:n,__TSR_key:n,[As]:e}}function WD(e){const t=typeof document<"u"?window:void 0,n=t.history.pushState,r=t.history.replaceState;let a=[];const i=()=>a,c=D=>a=D,u=(D=>D),d=(()=>xp(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){const D=mb();t.history.replaceState({[As]:0,key:D,__TSR_key:D},"")}let f=d(),m,p=!1,g=!1,y=!1,w=!1;const S=()=>f;let b,R;const E=()=>{b&&(N._ignoreSubscribers=!0,(b.isPush?t.history.pushState:t.history.replaceState)(b.state,"",b.href),N._ignoreSubscribers=!1,b=void 0,R=void 0,m=void 0)},T=(D,z,W)=>{const V=u(z);R||(m=f),f=xp(z,W),b={href:V,state:W,isPush:b?.isPush||D==="push"},R||(R=Promise.resolve().then(()=>E()))},O=D=>{f=d(),N.notify({type:D})},C=async()=>{if(g){g=!1;return}const D=d(),z=D.state[As]-f.state[As],W=z===1,V=z===-1,G=!W&&!V||p;p=!1;const U=G?"GO":V?"BACK":"FORWARD",J=G?{type:"GO",index:z}:{type:V?"BACK":"FORWARD"};if(y)y=!1;else{const ie=i();if(typeof document<"u"&&ie.length){for(const F of ie)if(await F.blockerFn({currentLocation:f,nextLocation:D,action:U})){g=!0,t.history.go(1),N.notify(J);return}}}f=d(),N.notify(J)},I=D=>{if(w){w=!1;return}let z=!1;const W=i();if(typeof document<"u"&&W.length)for(const V of W){const G=V.enableBeforeUnload??!0;if(G===!0){z=!0;break}if(typeof G=="function"&&G()===!0){z=!0;break}}if(z)return D.preventDefault(),D.returnValue=""},N=KD({getLocation:S,getLength:()=>t.history.length,pushState:(D,z)=>T("push",D,z),replaceState:(D,z)=>T("replace",D,z),back:D=>(D&&(y=!0),w=!0,t.history.back()),forward:D=>{D&&(y=!0),w=!0,t.history.forward()},go:D=>{p=!0,t.history.go(D)},createHref:D=>u(D),flush:E,destroy:()=>{t.history.pushState=n,t.history.replaceState=r,t.removeEventListener(vx,I,{capture:!0}),t.removeEventListener(gx,C)},onBlocked:()=>{m&&f!==m&&(f=m)},getBlockers:i,setBlockers:c,notifyOnIndexChange:!1});return t.addEventListener(vx,I,{capture:!0}),t.addEventListener(gx,C),t.history.pushState=function(...D){const z=n.apply(t.history,D);return N._ignoreSubscribers||O("PUSH"),z},t.history.replaceState=function(...D){const z=r.apply(t.history,D);return N._ignoreSubscribers||O("REPLACE"),z},N}function xp(e,t){const n=e.indexOf("#"),r=e.indexOf("?"),a=mb();return{href:e,pathname:e.substring(0,n>0?r>0?Math.min(n,r):n:r>0?r:e.length),hash:n>-1?e.substring(n):"",search:r>-1?e.slice(r,n===-1?void 0:n):"",state:t||{[As]:0,key:a,__TSR_key:a}}}function mb(){return(Math.random()+1).toString(36).substring(7)}function Tp(e){return e[e.length-1]}function YD(e){return typeof e=="function"}function Ti(e,t){return YD(e)?e(t):e}const QD=Object.prototype.hasOwnProperty;function lo(e,t){if(e===t)return e;const n=t,r=wx(e)&&wx(n);if(!r&&!(Op(e)&&Op(n)))return n;const a=r?e:_x(e);if(!a)return n;const i=r?n:_x(n);if(!i)return n;const c=a.length,u=i.length,d=r?new Array(u):{};let f=0;for(let m=0;m<u;m++){const p=r?m:i[m],g=e[p],y=n[p];if(g===y){d[p]=g,(r?m<c:QD.call(e,p))&&f++;continue}if(g===null||y===null||typeof g!="object"||typeof y!="object"){d[p]=y;continue}const w=lo(g,y);d[p]=w,w===g&&f++}return c===u&&f===c?e:d}function _x(e){const t=[],n=Object.getOwnPropertyNames(e);for(const a of n){if(!Object.prototype.propertyIsEnumerable.call(e,a))return!1;t.push(a)}const r=Object.getOwnPropertySymbols(e);for(const a of r){if(!Object.prototype.propertyIsEnumerable.call(e,a))return!1;t.push(a)}return t}function Op(e){if(!bx(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const n=t.prototype;return!(!bx(n)||!n.hasOwnProperty("isPrototypeOf"))}function bx(e){return Object.prototype.toString.call(e)==="[object Object]"}function wx(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Oi(e,t,n){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let r=0,a=e.length;r<a;r++)if(!Oi(e[r],t[r],n))return!1;return!0}if(Op(e)&&Op(t)){const r=n?.ignoreUndefined??!0;if(n?.partial){for(const c in t)if((!r||t[c]!==void 0)&&!Oi(e[c],t[c],n))return!1;return!0}let a=0;if(!r)a=Object.keys(e).length;else for(const c in e)e[c]!==void 0&&a++;let i=0;for(const c in t)if((!r||t[c]!==void 0)&&(i++,i>a||!Oi(e[c],t[c],n)))return!1;return a===i}return!1}function il(e){let t,n;const r=new Promise((a,i)=>{t=a,n=i});return r.status="pending",r.resolve=a=>{r.status="resolved",r.value=a,t(a),e?.(a)},r.reject=a=>{r.status="rejected",n(a)},r}function XD(e){return typeof e?.message!="string"?!1:e.message.startsWith("Failed to fetch dynamically imported module")||e.message.startsWith("error loading dynamically imported module")||e.message.startsWith("Importing a module script failed")}function Is(e){return!!(e&&typeof e=="object"&&typeof e.then=="function")}function Sx(e){try{return decodeURI(e)}catch{return e.replaceAll(/%[0-9A-F]{2}/gi,t=>{try{return decodeURI(t)}catch{return t}})}}function Ex(e,t){if(!e)return e;const n=/%25|%5C/gi;let r=0,a="",i;for(;(i=n.exec(e))!==null;)a+=Sx(e.slice(r,i.index))+i[0],r=n.lastIndex;return a+Sx(r?e.slice(r):e)}var JD="Invariant failed";function Ma(e,t){if(!e)throw new Error(JD)}function Cp(e){const t=new Map;let n,r;const a=i=>{i.next&&(i.prev?(i.prev.next=i.next,i.next.prev=i.prev,i.next=void 0,r&&(r.next=i,i.prev=r)):(i.next.prev=void 0,n=i.next,i.next=void 0,r&&(i.prev=r,r.next=i)),r=i)};return{get(i){const c=t.get(i);if(c)return a(c),c.value},set(i,c){if(t.size>=e&&n){const d=n;t.delete(d.key),d.next&&(n=d.next,d.next.prev=void 0),d===r&&(r=void 0)}const u=t.get(i);if(u)u.value=c,a(u);else{const d={key:i,value:c,prev:r};r&&(r.next=d),r=d,n||(n=d),t.set(i,d)}},clear(){t.clear(),n=void 0,r=void 0}}}const cl=0,ki=1,Ni=2,Ju=3,e6=/^([^{]*)\{\$([a-zA-Z_$][a-zA-Z0-9_$]*)\}([^}]*)$/,t6=/^([^{]*)\{-\$([a-zA-Z_$][a-zA-Z0-9_$]*)\}([^}]*)$/,n6=/^([^{]*)\{\$\}([^}]*)$/;function gb(e,t,n=new Uint16Array(6)){const r=e.indexOf("/",t),a=r===-1?e.length:r,i=e.substring(t,a);if(!i||!i.includes("$"))return n[0]=cl,n[1]=t,n[2]=t,n[3]=a,n[4]=a,n[5]=a,n;if(i==="$"){const f=e.length;return n[0]=Ni,n[1]=t,n[2]=t,n[3]=f,n[4]=f,n[5]=f,n}if(i.charCodeAt(0)===36)return n[0]=ki,n[1]=t,n[2]=t+1,n[3]=a,n[4]=a,n[5]=a,n;const c=i.match(n6);if(c){const m=c[1].length;return n[0]=Ni,n[1]=t+m,n[2]=t+m+1,n[3]=t+m+2,n[4]=t+m+3,n[5]=e.length,n}const u=i.match(t6);if(u){const f=u[1],m=u[2],p=u[3],g=f.length;return n[0]=Ju,n[1]=t+g,n[2]=t+g+3,n[3]=t+g+3+m.length,n[4]=a-p.length,n[5]=a,n}const d=i.match(e6);if(d){const f=d[1],m=d[2],p=d[3],g=f.length;return n[0]=ki,n[1]=t+g,n[2]=t+g+2,n[3]=t+g+2+m.length,n[4]=a-p.length,n[5]=a,n}return n[0]=cl,n[1]=t,n[2]=t,n[3]=a,n[4]=a,n[5]=a,n}function bm(e,t,n,r,a,i,c){c?.(n);let u=r;{const d=n.fullPath??n.from,f=d.length,m=n.options?.caseSensitive??e;for(;u<f;){const p=gb(d,u,t);let g;const y=u,w=p[5];switch(u=w+1,i++,p[0]){case cl:{const b=d.substring(p[2],p[3]);if(m){const R=a.static?.get(b);if(R)g=R;else{a.static??=new Map;const E=ed(n.fullPath??n.from);E.parent=a,E.depth=i,g=E,a.static.set(b,E)}}else{const R=b.toLowerCase(),E=a.staticInsensitive?.get(R);if(E)g=E;else{a.staticInsensitive??=new Map;const T=ed(n.fullPath??n.from);T.parent=a,T.depth=i,g=T,a.staticInsensitive.set(R,T)}}break}case ki:{const b=d.substring(y,p[1]),R=d.substring(p[4],w),E=m&&!!(b||R),T=b?E?b:b.toLowerCase():void 0,O=R?E?R:R.toLowerCase():void 0,C=a.dynamic?.find(I=>I.caseSensitive===E&&I.prefix===T&&I.suffix===O);if(C)g=C;else{const I=Cy(ki,n.fullPath??n.from,E,T,O);g=I,I.depth=i,I.parent=a,a.dynamic??=[],a.dynamic.push(I)}break}case Ju:{const b=d.substring(y,p[1]),R=d.substring(p[4],w),E=m&&!!(b||R),T=b?E?b:b.toLowerCase():void 0,O=R?E?R:R.toLowerCase():void 0,C=a.optional?.find(I=>I.caseSensitive===E&&I.prefix===T&&I.suffix===O);if(C)g=C;else{const I=Cy(Ju,n.fullPath??n.from,E,T,O);g=I,I.parent=a,I.depth=i,a.optional??=[],a.optional.push(I)}break}case Ni:{const b=d.substring(y,p[1]),R=d.substring(p[4],w),E=m&&!!(b||R),T=b?E?b:b.toLowerCase():void 0,O=R?E?R:R.toLowerCase():void 0,C=Cy(Ni,n.fullPath??n.from,E,T,O);g=C,C.parent=a,C.depth=i,a.wildcard??=[],a.wildcard.push(C)}}a=g}if((n.path||!n.children)&&!n.isRoot){const p=d.endsWith("/");p||(a.notFound=n),(!a.route||!a.isIndex&&p)&&(a.route=n),a.isIndex||=p}}if(n.children)for(const d of n.children)bm(e,t,d,u,a,i,c)}function Oy(e,t){if(e.prefix&&t.prefix&&e.prefix!==t.prefix){if(e.prefix.startsWith(t.prefix))return-1;if(t.prefix.startsWith(e.prefix))return 1}if(e.suffix&&t.suffix&&e.suffix!==t.suffix){if(e.suffix.endsWith(t.suffix))return-1;if(t.suffix.endsWith(e.suffix))return 1}return e.prefix&&!t.prefix?-1:!e.prefix&&t.prefix?1:e.suffix&&!t.suffix?-1:!e.suffix&&t.suffix?1:e.caseSensitive&&!t.caseSensitive?-1:!e.caseSensitive&&t.caseSensitive?1:0}function wi(e){if(e.static)for(const t of e.static.values())wi(t);if(e.staticInsensitive)for(const t of e.staticInsensitive.values())wi(t);if(e.dynamic?.length){e.dynamic.sort(Oy);for(const t of e.dynamic)wi(t)}if(e.optional?.length){e.optional.sort(Oy);for(const t of e.optional)wi(t)}if(e.wildcard?.length){e.wildcard.sort(Oy);for(const t of e.wildcard)wi(t)}}function ed(e){return{kind:cl,depth:0,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:e,parent:null,isIndex:!1,notFound:null}}function Cy(e,t,n,r,a){return{kind:e,depth:0,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:t,parent:null,isIndex:!1,notFound:null,caseSensitive:n,prefix:r,suffix:a}}function r6(e,t){const n=ed("/"),r=new Uint16Array(6);for(const a of e)bm(!1,r,a,1,n,0);wi(n),t.masksTree=n,t.flatCache=Cp(1e3)}function o6(e,t){e||="/";const n=t.flatCache.get(e);if(n)return n;const r=vb(e,t.masksTree);return t.flatCache.set(e,r),r}function a6(e,t,n,r,a){e||="/",r||="/";const i=t?`case\0${e}`:e;let c=a.singleCache.get(i);if(!c){c=ed("/");const u=new Uint16Array(6);bm(t,u,{from:e},1,c,0),a.singleCache.set(i,c)}return vb(r,c,n)}function s6(e,t,n=!1){const r=n?e:`nofuzz\0${e}`,a=t.matchCache.get(r);if(a!==void 0)return a;e||="/";const i=vb(e,t.segmentTree,n);return i&&(i.branch=u6(i.route)),t.matchCache.set(r,i),i}function i6(e){return e==="/"?e:e.replace(/\/{1,}$/,"")}function c6(e,t=!1,n){const r=ed(e.fullPath),a=new Uint16Array(6),i={},c={};let u=0;return bm(t,a,e,1,r,0,f=>{if(n?.(f,u),Ma(!(f.id in i),`Duplicate routes found with id: ${String(f.id)}`),i[f.id]=f,u!==0&&f.path){const m=i6(f.fullPath);(!c[m]||f.fullPath.endsWith("/"))&&(c[m]=f)}u++}),wi(r),{processedTree:{segmentTree:r,singleCache:Cp(1e3),matchCache:Cp(1e3),flatCache:null,masksTree:null},routesById:i,routesByPath:c}}function vb(e,t,n=!1){const r=e.split("/"),a=f6(e,r,t,n);if(!a)return null;const i=l6(e,r,a),c="**"in a;return c&&(i["**"]=a["**"]),{route:c?a.node.notFound??a.node.route:a.node.route,params:i}}function l6(e,t,n){const r=d6(n.node);let a=null;const i={};for(let c=0,u=0,d=0;u<r.length;c++,u++,d++){const f=r[u],m=t[c],p=d;if(m&&(d+=m.length),f.kind===ki){a??=n.node.fullPath.split("/");const g=a[u],y=f.prefix?.length??0;if(g.charCodeAt(y)===123){const S=f.suffix?.length??0,b=g.substring(y+2,g.length-S-1),R=m.substring(y,m.length-S);i[b]=decodeURIComponent(R)}else{const S=g.substring(1);i[S]=decodeURIComponent(m)}}else if(f.kind===Ju){if(n.skipped&1<<u){c--;continue}a??=n.node.fullPath.split("/");const g=a[u],y=f.prefix?.length??0,w=f.suffix?.length??0,S=g.substring(y+3,g.length-w-1),b=f.suffix||f.prefix?m.substring(y,m.length-w):m;b&&(i[S]=decodeURIComponent(b))}else if(f.kind===Ni){const g=f,y=e.substring(p+(g.prefix?.length??0),e.length-(g.suffix?.length??0)),w=decodeURIComponent(y);i["*"]=w,i._splat=w;break}}return i}function u6(e){const t=[e];for(;e.parentRoute;)e=e.parentRoute,t.push(e);return t.reverse(),t}function d6(e){const t=Array(e.depth+1);do t[e.depth]=e,e=e.parent;while(e);return t}function f6(e,t,n,r){const a=!Tp(t),i=a&&e!=="/",c=t.length-(a?1:0),u=[{node:n,index:1,skipped:0,depth:1,statics:1,dynamics:0,optionals:0}];let d=null,f=null,m=null;for(;u.length;){const p=u.pop();let{node:g,index:y,skipped:w,depth:S,statics:b,dynamics:R,optionals:E}=p;r&&g.notFound&&Qf(f,p)&&(f=p);const T=y===c;if(T){if(g.route&&(!i||g.isIndex)&&(Qf(m,p)&&(m=p),b===c&&g.isIndex))return m;if(!g.optional&&!g.wildcard)continue}const O=T?void 0:t[y];let C;if(g.wildcard&&Qf(d,p))for(const I of g.wildcard){const{prefix:N,suffix:D}=I;if(!(N&&(T||!(I.caseSensitive?O:C??=O.toLowerCase()).startsWith(N)))){if(D){if(T)continue;const z=t.slice(y).join("/").slice(-D.length);if((I.caseSensitive?z:z.toLowerCase())!==D)continue}d={node:I,index:y,skipped:w,depth:S,statics:b,dynamics:R,optionals:E};break}}if(g.optional){const I=w|1<<S,N=S+1;for(let D=g.optional.length-1;D>=0;D--){const z=g.optional[D];u.push({node:z,index:y,skipped:I,depth:N,statics:b,dynamics:R,optionals:E})}if(!T)for(let D=g.optional.length-1;D>=0;D--){const z=g.optional[D],{prefix:W,suffix:V}=z;if(W||V){const G=z.caseSensitive?O:C??=O.toLowerCase();if(W&&!G.startsWith(W)||V&&!G.endsWith(V))continue}u.push({node:z,index:y+1,skipped:w,depth:N,statics:b,dynamics:R,optionals:E+1})}}if(!T&&g.dynamic&&O)for(let I=g.dynamic.length-1;I>=0;I--){const N=g.dynamic[I],{prefix:D,suffix:z}=N;if(D||z){const W=N.caseSensitive?O:C??=O.toLowerCase();if(D&&!W.startsWith(D)||z&&!W.endsWith(z))continue}u.push({node:N,index:y+1,skipped:w,depth:S+1,statics:b,dynamics:R+1,optionals:E})}if(!T&&g.staticInsensitive){const I=g.staticInsensitive.get(C??=O.toLowerCase());I&&u.push({node:I,index:y+1,skipped:w,depth:S+1,statics:b+1,dynamics:R,optionals:E})}if(!T&&g.static){const I=g.static.get(O);I&&u.push({node:I,index:y+1,skipped:w,depth:S+1,statics:b+1,dynamics:R,optionals:E})}}if(m&&d)return Qf(d,m)?m:d;if(m)return m;if(d)return d;if(r&&f){let p=f.index;for(let y=0;y<f.index;y++)p+=t[y].length;const g=p===e.length?"/":e.slice(p);return{node:f.node,skipped:f.skipped,"**":decodeURIComponent(g)}}return null}function Qf(e,t){return e?t.statics>e.statics||t.statics===e.statics&&(t.dynamics>e.dynamics||t.dynamics===e.dynamics&&(t.optionals>e.optionals||t.optionals===e.optionals&&(t.node.isIndex>e.node.isIndex||t.node.isIndex===e.node.isIndex&&t.depth>e.depth))):!0}function up(e){return yb(e.filter(t=>t!==void 0).join("/"))}function yb(e){return e.replace(/\/{2,}/g,"/")}function cA(e){return e==="/"?e:e.replace(/^\/{1,}/,"")}function Ci(e){const t=e.length;return t>1&&e[t-1]==="/"?e.replace(/\/{1,}$/,""):e}function dp(e){return Ci(cA(e))}function Ap(e,t){return e?.endsWith("/")&&e!=="/"&&e!==`${t}/`?e.slice(0,-1):e}function h6(e,t,n){return Ap(e,n)===Ap(t,n)}function p6({base:e,to:t,trailingSlash:n="never",cache:r}){const a=t.startsWith("/"),i=!a&&t===".";let c;if(r){c=a?t:i?e:e+"\0"+t;const p=r.get(c);if(p)return p}let u;if(i)u=e.split("/");else if(a)u=t.split("/");else{for(u=e.split("/");u.length>1&&Tp(u)==="";)u.pop();const p=t.split("/");for(let g=0,y=p.length;g<y;g++){const w=p[g];w===""?g?g===y-1&&u.push(w):u=[w]:w===".."?u.pop():w==="."||u.push(w)}}u.length>1&&(Tp(u)===""?n==="never"&&u.pop():n==="always"&&u.push(""));let d,f="";for(let p=0;p<u.length;p++){p>0&&(f+="/");const g=u[p];if(!g)continue;d=gb(g,0,d);const y=d[0];if(y===cl){f+=g;continue}const w=d[5],S=g.substring(0,d[1]),b=g.substring(d[4],w),R=g.substring(d[2],d[3]);y===ki?f+=S||b?`${S}{$${R}}${b}`:`$${R}`:y===Ni?f+=S||b?`${S}{$}${b}`:"$":f+=`${S}{-$${R}}${b}`}f=yb(f);const m=f||"/";return c&&r&&r.set(c,m),m}function Ay(e,t,n){const r=t[e];return typeof r!="string"?r:e==="_splat"?encodeURI(r):m6(r,n)}function Iy({path:e,params:t,decodeCharMap:n}){let r=!1;const a={};if(!e||e==="/")return{interpolatedPath:"/",usedParams:a,isMissingParams:r};if(!e.includes("$"))return{interpolatedPath:e,usedParams:a,isMissingParams:r};const i=e.length;let c=0,u,d="";for(;c<i;){const m=c;u=gb(e,m,u);const p=u[5];if(c=p+1,m===p)continue;const g=u[0];if(g===cl){d+="/"+e.substring(m,p);continue}if(g===Ni){const y=t._splat;a._splat=y,a["*"]=y;const w=e.substring(m,u[1]),S=e.substring(u[4],p);if(!y){r=!0,(w||S)&&(d+="/"+w+S);continue}const b=Ay("_splat",t,n);d+="/"+w+b+S;continue}if(g===ki){const y=e.substring(u[2],u[3]);!r&&!(y in t)&&(r=!0),a[y]=t[y];const w=e.substring(m,u[1]),S=e.substring(u[4],p),b=Ay(y,t,n)??"undefined";d+="/"+w+b+S;continue}if(g===Ju){const y=e.substring(u[2],u[3]),w=t[y];if(w==null)continue;a[y]=w;const S=e.substring(m,u[1]),b=e.substring(u[4],p),R=Ay(y,t,n)??"";d+="/"+S+R+b;continue}}return e.endsWith("/")&&(d+="/"),{usedParams:a,interpolatedPath:d||"/",isMissingParams:r}}function m6(e,t){let n=encodeURIComponent(e);if(t)for(const[r,a]of t)n=n.replaceAll(r,a);return n}function ho(e){return!!e?.isNotFound}function g6(){try{if(typeof window<"u"&&typeof window.sessionStorage=="object")return window.sessionStorage}catch{}}const Ip="tsr-scroll-restoration-v1_3",v6=(e,t)=>{let n;return(...r)=>{n||(n=setTimeout(()=>{e(...r),n=null},t))}};function y6(){const e=g6();if(!e)return null;const t=e.getItem(Ip);let n=t?JSON.parse(t):{};return{state:n,set:r=>(n=Ti(r,n)||n,e.setItem(Ip,JSON.stringify(n)))}}const Xf=y6(),t_=e=>e.state.__TSR_key||e.href;function _6(e){const t=[];let n;for(;n=e.parentNode;)t.push(`${e.tagName}:nth-child(${Array.prototype.indexOf.call(n.children,e)+1})`),e=n;return`${t.reverse().join(" > ")}`.toLowerCase()}let kp=!1;function lA({storageKey:e,key:t,behavior:n,shouldScrollRestoration:r,scrollToTopSelectors:a,location:i}){let c;try{c=JSON.parse(sessionStorage.getItem(e)||"{}")}catch(f){console.error(f);return}const u=t||window.history.state?.__TSR_key,d=c[u];kp=!0;e:{if(r&&d&&Object.keys(d).length>0){for(const p in d){const g=d[p];if(p==="window")window.scrollTo({top:g.scrollY,left:g.scrollX,behavior:n});else if(p){const y=document.querySelector(p);y&&(y.scrollLeft=g.scrollX,y.scrollTop=g.scrollY)}}break e}const f=(i??window.location).hash.split("#",2)[1];if(f){const p=window.history.state?.__hashScrollIntoViewOptions??!0;if(p){const g=document.getElementById(f);g&&g.scrollIntoView(p)}break e}const m={top:0,left:0,behavior:n};if(window.scrollTo(m),a)for(const p of a){if(p==="window")continue;const g=typeof p=="function"?p():document.querySelector(p);g&&g.scrollTo(m)}}kp=!1}function b6(e,t){if(!Xf&&!e.isServer||((e.options.scrollRestoration??!1)&&(e.isScrollRestoring=!0),e.isServer||e.isScrollRestorationSetup||!Xf))return;e.isScrollRestorationSetup=!0,kp=!1;const r=e.options.getScrollRestorationKey||t_;window.history.scrollRestoration="manual";const a=i=>{if(kp||!e.isScrollRestoring)return;let c="";if(i.target===document||i.target===window)c="window";else{const d=i.target.getAttribute("data-scroll-restoration-id");d?c=`[data-scroll-restoration-id="${d}"]`:c=_6(i.target)}const u=r(e.state.location);Xf.set(d=>{const f=d[u]||={},m=f[c]||={};if(c==="window")m.scrollX=window.scrollX||0,m.scrollY=window.scrollY||0;else if(c){const p=document.querySelector(c);p&&(m.scrollX=p.scrollLeft||0,m.scrollY=p.scrollTop||0)}return d})};typeof document<"u"&&document.addEventListener("scroll",v6(a,100),!0),e.subscribe("onRendered",i=>{const c=r(i.toLocation);if(!e.resetNextScroll){e.resetNextScroll=!0;return}typeof e.options.scrollRestoration=="function"&&!e.options.scrollRestoration({location:e.latestLocation})||(lA({storageKey:Ip,key:c,behavior:e.options.scrollRestorationBehavior,shouldScrollRestoration:e.isScrollRestoring,scrollToTopSelectors:e.options.scrollToTopSelectors,location:e.history.location}),e.isScrollRestoring&&Xf.set(u=>(u[c]||={},u)))})}function w6(e){if(typeof document<"u"&&document.querySelector){const t=e.state.location.state.__hashScrollIntoViewOptions??!0;if(t&&e.state.location.hash!==""){const n=document.getElementById(e.state.location.hash);n&&n.scrollIntoView(t)}}}function S6(e,t=String){const n=new URLSearchParams;for(const r in e){const a=e[r];a!==void 0&&n.set(r,t(a))}return n.toString()}function ky(e){return e?e==="false"?!1:e==="true"?!0:+e*0===0&&+e+""===e?+e:e:""}function E6(e){const t=new URLSearchParams(e),n={};for(const[r,a]of t.entries()){const i=n[r];i==null?n[r]=ky(a):Array.isArray(i)?i.push(ky(a)):n[r]=[i,ky(a)]}return n}const R6=T6(JSON.parse),x6=O6(JSON.stringify,JSON.parse);function T6(e){return t=>{t[0]==="?"&&(t=t.substring(1));const n=E6(t);for(const r in n){const a=n[r];if(typeof a=="string")try{n[r]=e(a)}catch{}}return n}}function O6(e,t){const n=typeof t=="function";function r(a){if(typeof a=="object"&&a!==null)try{return e(a)}catch{}else if(n&&typeof a=="string")try{return t(a),e(a)}catch{}return a}return a=>{const i=S6(a,r);return i?`?${i}`:""}}const Fr="__root__";function ll(e){if(e.statusCode=e.statusCode||e.code||307,!e.reloadDocument&&typeof e.href=="string")try{new URL(e.href),e.reloadDocument=!0}catch{}const t=new Headers(e.headers);e.href&&t.get("Location")===null&&t.set("Location",e.href);const n=new Response(null,{status:e.statusCode,headers:t});if(n.options=e,e.throw)throw n;return n}function Do(e){return e instanceof Response&&!!e.options}const fp=e=>{if(!e.rendered)return e.rendered=!0,e.onReady?.()},wm=(e,t)=>!!(e.preload&&!e.router.state.matches.some(n=>n.id===t)),uA=(e,t)=>{const n=e.router.routesById[t.routeId??""]??e.router.routeTree;!n.options.notFoundComponent&&e.router.options?.defaultNotFoundComponent&&(n.options.notFoundComponent=e.router.options.defaultNotFoundComponent),Ma(n.options.notFoundComponent);const r=e.matches.find(a=>a.routeId===n.id);Ma(r,"Could not find match for route: "+n.id),e.updateMatch(r.id,a=>({...a,status:"notFound",error:t,isFetching:!1})),t.routerCode==="BEFORE_LOAD"&&n.parentRoute&&(t.routeId=n.parentRoute.id,uA(e,t))},xs=(e,t,n)=>{if(!(!Do(n)&&!ho(n))){if(Do(n)&&n.redirectHandled&&!n.options.reloadDocument)throw n;if(t){t._nonReactive.beforeLoadPromise?.resolve(),t._nonReactive.loaderPromise?.resolve(),t._nonReactive.beforeLoadPromise=void 0,t._nonReactive.loaderPromise=void 0;const r=Do(n)?"redirected":"notFound";t._nonReactive.error=n,e.updateMatch(t.id,a=>({...a,status:r,isFetching:!1,error:n})),ho(n)&&!n.routeId&&(n.routeId=t.routeId),t._nonReactive.loadPromise?.resolve()}throw Do(n)?(e.rendered=!0,n.options._fromLocation=e.location,n.redirectHandled=!0,n=e.router.resolveRedirect(n),n):(uA(e,n),n)}},dA=(e,t)=>{const n=e.router.getMatch(t);return!!(!e.router.isServer&&n._nonReactive.dehydrated||e.router.isServer&&n.ssr===!1)},yu=(e,t,n,r)=>{const{id:a,routeId:i}=e.matches[t],c=e.router.looseRoutesById[i];if(n instanceof Promise)throw n;n.routerCode=r,e.firstBadMatchIndex??=t,xs(e,e.router.getMatch(a),n);try{c.options.onError?.(n)}catch(u){n=u,xs(e,e.router.getMatch(a),n)}e.updateMatch(a,u=>(u._nonReactive.beforeLoadPromise?.resolve(),u._nonReactive.beforeLoadPromise=void 0,u._nonReactive.loadPromise?.resolve(),{...u,error:n,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController}))},C6=(e,t,n,r)=>{const a=e.router.getMatch(t),i=e.matches[n-1]?.id,c=i?e.router.getMatch(i):void 0;if(e.router.isShell()){a.ssr=r.id===Fr;return}if(c?.ssr===!1){a.ssr=!1;return}const u=y=>y===!0&&c?.ssr==="data-only"?"data-only":y,d=e.router.options.defaultSsr??!0;if(r.options.ssr===void 0){a.ssr=u(d);return}if(typeof r.options.ssr!="function"){a.ssr=u(r.options.ssr);return}const{search:f,params:m}=a,p={search:Jf(f,a.searchError),params:Jf(m,a.paramsError),location:e.location,matches:e.matches.map(y=>({index:y.index,pathname:y.pathname,fullPath:y.fullPath,staticData:y.staticData,id:y.id,routeId:y.routeId,search:Jf(y.search,y.searchError),params:Jf(y.params,y.paramsError),ssr:y.ssr}))},g=r.options.ssr(p);if(Is(g))return g.then(y=>{a.ssr=u(y??d)});a.ssr=u(g??d)},fA=(e,t,n,r)=>{if(r._nonReactive.pendingTimeout!==void 0)return;const a=n.options.pendingMs??e.router.options.defaultPendingMs;if(!!(e.onReady&&!e.router.isServer&&!wm(e,t)&&(n.options.loader||n.options.beforeLoad||mA(n))&&typeof a=="number"&&a!==1/0&&(n.options.pendingComponent??e.router.options?.defaultPendingComponent))){const c=setTimeout(()=>{fp(e)},a);r._nonReactive.pendingTimeout=c}},A6=(e,t,n)=>{const r=e.router.getMatch(t);if(!r._nonReactive.beforeLoadPromise&&!r._nonReactive.loaderPromise)return;fA(e,t,n,r);const a=()=>{const i=e.router.getMatch(t);i.preload&&(i.status==="redirected"||i.status==="notFound")&&xs(e,i,i.error)};return r._nonReactive.beforeLoadPromise?r._nonReactive.beforeLoadPromise.then(a):a()},I6=(e,t,n,r)=>{const a=e.router.getMatch(t),i=a._nonReactive.loadPromise;a._nonReactive.loadPromise=il(()=>{i?.resolve()});const{paramsError:c,searchError:u}=a;c&&yu(e,n,c,"PARSE_PARAMS"),u&&yu(e,n,u,"VALIDATE_SEARCH"),fA(e,t,r,a);const d=new AbortController,f=e.matches[n-1]?.id,g={...(f?e.router.getMatch(f):void 0)?.context??e.router.options.context??void 0,...a.__routeContext};let y=!1;const w=()=>{y||(y=!0,e.updateMatch(t,N=>({...N,isFetching:"beforeLoad",fetchCount:N.fetchCount+1,abortController:d,context:g})))},S=()=>{a._nonReactive.beforeLoadPromise?.resolve(),a._nonReactive.beforeLoadPromise=void 0,e.updateMatch(t,N=>({...N,isFetching:!1}))};if(!r.options.beforeLoad){Vu(()=>{w(),S()});return}a._nonReactive.beforeLoadPromise=il();const{search:b,params:R,cause:E}=a,T=wm(e,t),O={search:b,abortController:d,params:R,preload:T,context:g,location:e.location,navigate:N=>e.router.navigate({...N,_fromLocation:e.location}),buildLocation:e.router.buildLocation,cause:T?"preload":E,matches:e.matches,...e.router.options.additionalContext},C=N=>{if(N===void 0){Vu(()=>{w(),S()});return}(Do(N)||ho(N))&&(w(),yu(e,n,N,"BEFORE_LOAD")),Vu(()=>{w(),e.updateMatch(t,D=>({...D,__beforeLoadContext:N,context:{...D.context,...N}})),S()})};let I;try{if(I=r.options.beforeLoad(O),Is(I))return w(),I.catch(N=>{yu(e,n,N,"BEFORE_LOAD")}).then(C)}catch(N){w(),yu(e,n,N,"BEFORE_LOAD")}C(I)},k6=(e,t)=>{const{id:n,routeId:r}=e.matches[t],a=e.router.looseRoutesById[r],i=()=>{if(e.router.isServer){const d=C6(e,n,t,a);if(Is(d))return d.then(u)}return u()},c=()=>I6(e,n,t,a),u=()=>{if(dA(e,n))return;const d=A6(e,n,a);return Is(d)?d.then(c):c()};return i()},Fu=(e,t,n)=>{const r=e.router.getMatch(t);if(!r||!n.options.head&&!n.options.scripts&&!n.options.headers)return;const a={matches:e.matches,match:r,params:r.params,loaderData:r.loaderData};return Promise.all([n.options.head?.(a),n.options.scripts?.(a),n.options.headers?.(a)]).then(([i,c,u])=>{const d=i?.meta,f=i?.links,m=i?.scripts,p=i?.styles;return{meta:d,links:f,headScripts:m,headers:u,scripts:c,styles:p}})},hA=(e,t,n,r)=>{const a=e.matchPromises[n-1],{params:i,loaderDeps:c,abortController:u,cause:d}=e.router.getMatch(t);let f=e.router.options.context??{};for(let p=0;p<=n;p++){const g=e.matches[p];if(!g)continue;const y=e.router.getMatch(g.id);y&&(f={...f,...y.__routeContext??{},...y.__beforeLoadContext??{}})}const m=wm(e,t);return{params:i,deps:c,preload:!!m,parentMatchPromise:a,abortController:u,context:f,location:e.location,navigate:p=>e.router.navigate({...p,_fromLocation:e.location}),cause:m?"preload":d,route:r,...e.router.options.additionalContext}},Rx=async(e,t,n,r)=>{try{const a=e.router.getMatch(t);try{(!e.router.isServer||a.ssr===!0)&&pA(r);const i=r.options.loader?.(hA(e,t,n,r)),c=r.options.loader&&Is(i);if((c||r._lazyPromise||r._componentsPromise||r.options.head||r.options.scripts||r.options.headers||a._nonReactive.minPendingPromise)&&e.updateMatch(t,p=>({...p,isFetching:"loader"})),r.options.loader){const p=c?await i:i;xs(e,e.router.getMatch(t),p),p!==void 0&&e.updateMatch(t,g=>({...g,loaderData:p}))}r._lazyPromise&&await r._lazyPromise;const d=Fu(e,t,r),f=d?await d:void 0,m=a._nonReactive.minPendingPromise;m&&await m,r._componentsPromise&&await r._componentsPromise,e.updateMatch(t,p=>({...p,error:void 0,status:"success",isFetching:!1,updatedAt:Date.now(),...f}))}catch(i){let c=i;const u=a._nonReactive.minPendingPromise;u&&await u,ho(i)&&await r.options.notFoundComponent?.preload?.(),xs(e,e.router.getMatch(t),i);try{r.options.onError?.(i)}catch(m){c=m,xs(e,e.router.getMatch(t),m)}const d=Fu(e,t,r),f=d?await d:void 0;e.updateMatch(t,m=>({...m,error:c,status:"error",isFetching:!1,...f}))}}catch(a){const i=e.router.getMatch(t);if(i){const c=Fu(e,t,r);if(c){const u=await c;e.updateMatch(t,d=>({...d,...u}))}i._nonReactive.loaderPromise=void 0}xs(e,i,a)}},N6=async(e,t)=>{const{id:n,routeId:r}=e.matches[t];let a=!1,i=!1;const c=e.router.looseRoutesById[r];if(dA(e,n)){if(e.router.isServer){const f=Fu(e,n,c);if(f){const m=await f;e.updateMatch(n,p=>({...p,...m}))}return e.router.getMatch(n)}}else{const f=e.router.getMatch(n);if(f._nonReactive.loaderPromise){if(f.status==="success"&&!e.sync&&!f.preload)return f;await f._nonReactive.loaderPromise;const m=e.router.getMatch(n),p=m._nonReactive.error||m.error;p&&xs(e,m,p)}else{const m=Date.now()-f.updatedAt,p=wm(e,n),g=p?c.options.preloadStaleTime??e.router.options.defaultPreloadStaleTime??3e4:c.options.staleTime??e.router.options.defaultStaleTime??0,y=c.options.shouldReload,w=typeof y=="function"?y(hA(e,n,t,c)):y,S=!!p&&!e.router.state.matches.some(T=>T.id===n),b=e.router.getMatch(n);b._nonReactive.loaderPromise=il(),S!==b.preload&&e.updateMatch(n,T=>({...T,preload:S}));const{status:R,invalid:E}=b;if(a=R==="success"&&(E||(w??m>g)),!(p&&c.options.preload===!1))if(a&&!e.sync)i=!0,(async()=>{try{await Rx(e,n,t,c);const T=e.router.getMatch(n);T._nonReactive.loaderPromise?.resolve(),T._nonReactive.loadPromise?.resolve(),T._nonReactive.loaderPromise=void 0}catch(T){Do(T)&&await e.router.navigate(T.options)}})();else if(R!=="success"||a&&e.sync)await Rx(e,n,t,c);else{const T=Fu(e,n,c);if(T){const O=await T;e.updateMatch(n,C=>({...C,...O}))}}}}const u=e.router.getMatch(n);i||(u._nonReactive.loaderPromise?.resolve(),u._nonReactive.loadPromise?.resolve()),clearTimeout(u._nonReactive.pendingTimeout),u._nonReactive.pendingTimeout=void 0,i||(u._nonReactive.loaderPromise=void 0),u._nonReactive.dehydrated=void 0;const d=i?u.isFetching:!1;return d!==u.isFetching||u.invalid!==!1?(e.updateMatch(n,f=>({...f,isFetching:d,invalid:!1})),e.router.getMatch(n)):u};async function xx(e){const t=Object.assign(e,{matchPromises:[]});!t.router.isServer&&t.router.state.matches.some(n=>n._forcePending)&&fp(t);try{for(let a=0;a<t.matches.length;a++){const i=k6(t,a);Is(i)&&await i}const n=t.firstBadMatchIndex??t.matches.length;for(let a=0;a<n;a++)t.matchPromises.push(N6(t,a));await Promise.all(t.matchPromises);const r=fp(t);Is(r)&&await r}catch(n){if(ho(n)&&!t.preload){const r=fp(t);throw Is(r)&&await r,n}if(Do(n))throw n}return t.matches}async function pA(e){if(!e._lazyLoaded&&e._lazyPromise===void 0&&(e.lazyFn?e._lazyPromise=e.lazyFn().then(t=>{const{id:n,...r}=t.options;Object.assign(e.options,r),e._lazyLoaded=!0,e._lazyPromise=void 0}):e._lazyLoaded=!0),!e._componentsLoaded&&e._componentsPromise===void 0){const t=()=>{const n=[];for(const r of gA){const a=e.options[r]?.preload;a&&n.push(a())}if(n.length)return Promise.all(n).then(()=>{e._componentsLoaded=!0,e._componentsPromise=void 0});e._componentsLoaded=!0,e._componentsPromise=void 0};e._componentsPromise=e._lazyPromise?e._lazyPromise.then(t):t()}return e._componentsPromise}function Jf(e,t){return t?{status:"error",error:t}:{status:"success",value:e}}function mA(e){for(const t of gA)if(e.options[t]?.preload)return!0;return!1}const gA=["component","errorComponent","pendingComponent","notFoundComponent"];function M6(e){return{input:({url:t})=>{for(const n of e)t=vA(n,t);return t},output:({url:t})=>{for(let n=e.length-1;n>=0;n--)t=yA(e[n],t);return t}}}function P6(e){const t=dp(e.basepath),n=`/${t}`,r=`${n}/`,a=e.caseSensitive?n:n.toLowerCase(),i=e.caseSensitive?r:r.toLowerCase();return{input:({url:c})=>{const u=e.caseSensitive?c.pathname:c.pathname.toLowerCase();return u===a?c.pathname="/":u.startsWith(i)&&(c.pathname=c.pathname.slice(n.length)),c},output:({url:c})=>(c.pathname=up(["/",t,c.pathname]),c)}}function vA(e,t){const n=e?.input?.({url:t});if(n){if(typeof n=="string")return new URL(n);if(n instanceof URL)return n}return t}function yA(e,t){const n=e?.output?.({url:t});if(n){if(typeof n=="string")return new URL(n);if(n instanceof URL)return n}return t}function Ai(e){const t=e.resolvedLocation,n=e.location,r=t?.pathname!==n.pathname,a=t?.href!==n.href,i=t?.hash!==n.hash;return{fromLocation:t,toLocation:n,pathChanged:r,hrefChanged:a,hashChanged:i}}class D6{constructor(t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.isScrollRestoring=!1,this.isScrollRestorationSetup=!1,this.startTransition=n=>n(),this.update=n=>{n.notFoundRoute&&console.warn("The notFoundRoute API is deprecated and will be removed in the next major version. See https://tanstack.com/router/v1/docs/framework/react/guide/not-found-errors#migrating-from-notfoundroute for more info.");const r=this.options,a=this.basepath??r?.basepath??"/",i=this.basepath===void 0,c=r?.rewrite;this.options={...r,...n},this.isServer=this.options.isServer??typeof document>"u",this.pathParamsDecodeCharMap=this.options.pathParamsAllowedCharacters?new Map(this.options.pathParamsAllowedCharacters.map(g=>[encodeURIComponent(g),g])):void 0,(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.isServer||(this.history=WD())),this.origin=this.options.origin,this.origin||(!this.isServer&&window?.origin&&window.origin!=="null"?this.origin=window.origin:this.origin="http://localhost"),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree&&(this.routeTree=this.options.routeTree,this.buildRouteTree()),!this.__store&&this.latestLocation&&(this.__store=new e_(j6(this.latestLocation),{onUpdate:()=>{this.__store.state={...this.state,cachedMatches:this.state.cachedMatches.filter(g=>!["redirected"].includes(g.status))}}}),b6(this));let u=!1;const d=this.options.basepath??"/",f=this.options.rewrite;if(i||a!==d||c!==f){this.basepath=d;const g=[];dp(d)!==""&&g.push(P6({basepath:d})),f&&g.push(f),this.rewrite=g.length===0?void 0:g.length===1?g[0]:M6(g),this.history&&this.updateLatestLocation(),u=!0}u&&this.__store&&(this.__store.state={...this.state,location:this.latestLocation}),typeof window<"u"&&"CSS"in window&&typeof window.CSS?.supports=="function"&&(this.isViewTransitionTypesSupported=window.CSS.supports("selector(:active-view-transition-type(a)"))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{const{routesById:n,routesByPath:r,processedTree:a}=c6(this.routeTree,this.options.caseSensitive,(c,u)=>{c.init({originalIndex:u})});this.options.routeMasks&&r6(this.options.routeMasks,a),this.routesById=n,this.routesByPath=r,this.processedTree=a;const i=this.options.notFoundRoute;i&&(i.init({originalIndex:99999999999}),this.routesById[i.id]=i)},this.subscribe=(n,r)=>{const a={eventType:n,fn:r};return this.subscribers.add(a),()=>{this.subscribers.delete(a)}},this.emit=n=>{this.subscribers.forEach(r=>{r.eventType===n.type&&r.fn(n)})},this.parseLocation=(n,r)=>{const a=({href:d,state:f})=>{const m=new URL(d,this.origin),p=vA(this.rewrite,m),g=this.options.parseSearch(p.search),y=this.options.stringifySearch(g);p.search=y;const w=p.href.replace(p.origin,""),{pathname:S,hash:b}=p;return{href:w,publicHref:d,url:p.href,pathname:Ex(S),searchStr:y,search:lo(r?.search,g),hash:b.split("#").reverse()[0]??"",state:lo(r?.state,f)}},i=a(n),{__tempLocation:c,__tempKey:u}=i.state;if(c&&(!u||u===this.tempLocationKey)){const d=a(c);return d.state.key=i.state.key,d.state.__TSR_key=i.state.__TSR_key,delete d.state.__tempLocation,{...d,maskedLocation:i}}return i},this.resolvePathCache=Cp(1e3),this.resolvePathWithBase=(n,r)=>p6({base:n,to:yb(r),trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(n,r,a)=>typeof n=="string"?this.matchRoutesInternal({pathname:n,search:r},a):this.matchRoutesInternal(n,r),this.getMatchedRoutes=n=>$6({pathname:n,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=n=>{const r=this.getMatch(n);r&&(r.abortController.abort(),clearTimeout(r._nonReactive.pendingTimeout),r._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{const n=this.state.matches.filter(i=>i.status==="pending"),r=this.state.matches.filter(i=>i.isFetching==="loader");new Set([...this.state.pendingMatches??[],...n,...r]).forEach(i=>{this.cancelMatch(i.id)})},this.buildLocation=n=>{const r=(i={})=>{const c=i._fromLocation||this.pendingBuiltLocation||this.latestLocation,u=this.matchRoutes(c,{_buildLocation:!0}),d=Tp(u);i.from;const f=i.unsafeRelative==="path"?c.pathname:i.from??d.fullPath,m=this.resolvePathWithBase(f,"."),p=d.search,g={...d.params},y=i.to?this.resolvePathWithBase(m,`${i.to}`):this.resolvePathWithBase(m,"."),w=i.params===!1||i.params===null?{}:(i.params??!0)===!0?g:Object.assign(g,Ti(i.params,g)),S=Iy({path:y,params:w}).interpolatedPath,b=this.matchRoutes(S,void 0,{_buildLocation:!0}).map(W=>this.looseRoutesById[W.routeId]);if(Object.keys(w).length>0)for(const W of b){const V=W.options.params?.stringify??W.options.stringifyParams;V&&Object.assign(w,V(w))}const R=n.leaveParams?y:Ex(Iy({path:y,params:w,decodeCharMap:this.pathParamsDecodeCharMap}).interpolatedPath);let E=p;if(n._includeValidateSearch&&this.options.search?.strict){const W={};b.forEach(V=>{if(V.options.validateSearch)try{Object.assign(W,n_(V.options.validateSearch,{...W,...E}))}catch{}}),E=W}E=U6({search:E,dest:i,destRoutes:b,_includeValidateSearch:n._includeValidateSearch}),E=lo(p,E);const T=this.options.stringifySearch(E),O=i.hash===!0?c.hash:i.hash?Ti(i.hash,c.hash):void 0,C=O?`#${O}`:"";let I=i.state===!0?c.state:i.state?Ti(i.state,c.state):{};I=lo(c.state,I);const N=`${R}${T}${C}`,D=new URL(N,this.origin),z=yA(this.rewrite,D);return{publicHref:z.pathname+z.search+z.hash,href:N,url:z.href,pathname:R,search:E,searchStr:T,state:I,hash:O??"",unmaskOnReload:i.unmaskOnReload}},a=(i={},c)=>{const u=r(i);let d=c?r(c):void 0;if(!d){const f={};if(this.options.routeMasks){const m=o6(u.pathname,this.processedTree);if(m){Object.assign(f,m.params);const{from:p,...g}=m.route;c={from:n.from,...g,params:f},d=r(c)}}}return d&&(u.maskedLocation=d),u};return n.mask?a(n,{from:n.from,...n.mask}):a(n)},this.commitLocation=({viewTransition:n,ignoreBlocker:r,...a})=>{const i=()=>{const d=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];d.forEach(m=>{a.state[m]=this.latestLocation.state[m]});const f=Oi(a.state,this.latestLocation.state);return d.forEach(m=>{delete a.state[m]}),f},c=Ci(this.latestLocation.href)===Ci(a.href),u=this.commitLocationPromise;if(this.commitLocationPromise=il(()=>{u?.resolve()}),c&&i())this.load();else{let{maskedLocation:d,hashScrollIntoView:f,...m}=a;d&&(m={...d,state:{...d.state,__tempKey:void 0,__tempLocation:{...m,search:m.searchStr,state:{...m.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(m.unmaskOnReload??this.options.unmaskOnReload??!1)&&(m.state.__tempKey=this.tempLocationKey)),m.state.__hashScrollIntoViewOptions=f??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=n,this.history[a.replace?"replace":"push"](m.publicHref,m.state,{ignoreBlocker:r})}return this.resetNextScroll=a.resetScroll??!0,this.history.subscribers.size||this.load(),this.commitLocationPromise},this.buildAndCommitLocation=({replace:n,resetScroll:r,hashScrollIntoView:a,viewTransition:i,ignoreBlocker:c,href:u,...d}={})=>{if(u){const p=this.history.location.state.__TSR_index,g=xp(u,{__TSR_index:n?p:p+1});d.to=g.pathname,d.search=this.options.parseSearch(g.search),d.hash=g.hash.slice(1)}const f=this.buildLocation({...d,_includeValidateSearch:!0});this.pendingBuiltLocation=f;const m=this.commitLocation({...f,viewTransition:i,replace:n,resetScroll:r,hashScrollIntoView:a,ignoreBlocker:c});return Promise.resolve().then(()=>{this.pendingBuiltLocation===f&&(this.pendingBuiltLocation=void 0)}),m},this.navigate=async({to:n,reloadDocument:r,href:a,...i})=>{if(!r&&a)try{new URL(`${a}`),r=!0}catch{}if(r){if(a||(a=this.buildLocation({to:n,...i}).url),!i.ignoreBlocker){const u=this.history.getBlockers?.()??[];for(const d of u)if(d?.blockerFn&&await d.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return Promise.resolve()}return i.replace?window.location.replace(a):window.location.href=a,Promise.resolve()}return this.buildAndCommitLocation({...i,href:a,to:n,_isNavigate:!0})},this.beforeLoad=()=>{if(this.cancelMatches(),this.updateLatestLocation(),this.isServer){const r=this.buildLocation({to:this.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0}),a=i=>{try{return encodeURI(decodeURI(i))}catch{return i}};if(dp(a(this.latestLocation.href))!==dp(a(r.href))){let i=r.url;throw this.origin&&i.startsWith(this.origin)&&(i=i.replace(this.origin,"")||"/"),ll({href:i})}}const n=this.matchRoutes(this.latestLocation);this.__store.setState(r=>({...r,status:"pending",statusCode:200,isLoading:!0,location:this.latestLocation,pendingMatches:n,cachedMatches:r.cachedMatches.filter(a=>!n.some(i=>i.id===a.id))}))},this.load=async n=>{let r,a,i;for(i=new Promise(u=>{this.startTransition(async()=>{try{this.beforeLoad();const d=this.latestLocation,f=this.state.resolvedLocation;this.state.redirect||this.emit({type:"onBeforeNavigate",...Ai({resolvedLocation:f,location:d})}),this.emit({type:"onBeforeLoad",...Ai({resolvedLocation:f,location:d})}),await xx({router:this,sync:n?.sync,matches:this.state.pendingMatches,location:d,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let m=[],p=[],g=[];Vu(()=>{this.__store.setState(y=>{const w=y.matches,S=y.pendingMatches||y.matches;return m=w.filter(b=>!S.some(R=>R.id===b.id)),p=S.filter(b=>!w.some(R=>R.id===b.id)),g=S.filter(b=>w.some(R=>R.id===b.id)),{...y,isLoading:!1,loadedAt:Date.now(),matches:S,pendingMatches:void 0,cachedMatches:[...y.cachedMatches,...m.filter(b=>b.status!=="error"&&b.status!=="notFound")]}}),this.clearExpiredCache()}),[[m,"onLeave"],[p,"onEnter"],[g,"onStay"]].forEach(([y,w])=>{y.forEach(S=>{this.looseRoutesById[S.routeId].options[w]?.(S)})})})})}})}catch(d){Do(d)?(r=d,this.isServer||this.navigate({...r.options,replace:!0,ignoreBlocker:!0})):ho(d)&&(a=d),this.__store.setState(f=>({...f,statusCode:r?r.status:a?404:f.matches.some(m=>m.status==="error")?500:200,redirect:r}))}this.latestLoadPromise===i&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),u()})}),this.latestLoadPromise=i,await i;this.latestLoadPromise&&i!==this.latestLoadPromise;)await this.latestLoadPromise;let c;this.hasNotFoundMatch()?c=404:this.__store.state.matches.some(u=>u.status==="error")&&(c=500),c!==void 0&&this.__store.setState(u=>({...u,statusCode:c}))},this.startViewTransition=n=>{const r=this.shouldViewTransition??this.options.defaultViewTransition;if(delete this.shouldViewTransition,r&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let a;if(typeof r=="object"&&this.isViewTransitionTypesSupported){const i=this.latestLocation,c=this.state.resolvedLocation,u=typeof r.types=="function"?r.types(Ai({resolvedLocation:c,location:i})):r.types;if(u===!1){n();return}a={update:n,types:u}}else a=n;document.startViewTransition(a)}else n()},this.updateMatch=(n,r)=>{this.startTransition(()=>{const a=this.state.pendingMatches?.some(i=>i.id===n)?"pendingMatches":this.state.matches.some(i=>i.id===n)?"matches":this.state.cachedMatches.some(i=>i.id===n)?"cachedMatches":"";a&&this.__store.setState(i=>({...i,[a]:i[a]?.map(c=>c.id===n?r(c):c)}))})},this.getMatch=n=>{const r=a=>a.id===n;return this.state.cachedMatches.find(r)??this.state.pendingMatches?.find(r)??this.state.matches.find(r)},this.invalidate=n=>{const r=a=>n?.filter?.(a)??!0?{...a,invalid:!0,...n?.forcePending||a.status==="error"||a.status==="notFound"?{status:"pending",error:void 0}:void 0}:a;return this.__store.setState(a=>({...a,matches:a.matches.map(r),cachedMatches:a.cachedMatches.map(r),pendingMatches:a.pendingMatches?.map(r)})),this.shouldViewTransition=!1,this.load({sync:n?.sync})},this.resolveRedirect=n=>{if(!n.options.href){const r=this.buildLocation(n.options);let a=r.url;this.origin&&a.startsWith(this.origin)&&(a=a.replace(this.origin,"")||"/"),n.options.href=r.href,n.headers.set("Location",a)}return n.headers.get("Location")||n.headers.set("Location",n.options.href),n},this.clearCache=n=>{const r=n?.filter;r!==void 0?this.__store.setState(a=>({...a,cachedMatches:a.cachedMatches.filter(i=>!r(i))})):this.__store.setState(a=>({...a,cachedMatches:[]}))},this.clearExpiredCache=()=>{const n=r=>{const a=this.looseRoutesById[r.routeId];if(!a.options.loader)return!0;const i=(r.preload?a.options.preloadGcTime??this.options.defaultPreloadGcTime:a.options.gcTime??this.options.defaultGcTime)??300*1e3;return r.status==="error"?!0:Date.now()-r.updatedAt>=i};this.clearCache({filter:n})},this.loadRouteChunk=pA,this.preloadRoute=async n=>{const r=this.buildLocation(n);let a=this.matchRoutes(r,{throwOnError:!0,preload:!0,dest:n});const i=new Set([...this.state.matches,...this.state.pendingMatches??[]].map(u=>u.id)),c=new Set([...i,...this.state.cachedMatches.map(u=>u.id)]);Vu(()=>{a.forEach(u=>{c.has(u.id)||this.__store.setState(d=>({...d,cachedMatches:[...d.cachedMatches,u]}))})});try{return a=await xx({router:this,matches:a,location:r,preload:!0,updateMatch:(u,d)=>{i.has(u)?a=a.map(f=>f.id===u?d(f):f):this.updateMatch(u,d)}}),a}catch(u){if(Do(u))return u.options.reloadDocument?void 0:await this.preloadRoute({...u.options,_fromLocation:r});ho(u)||console.error(u);return}},this.matchRoute=(n,r)=>{const a={...n,to:n.to?this.resolvePathWithBase(n.from||"",n.to):void 0,params:n.params||{},leaveParams:!0},i=this.buildLocation(a);if(r?.pending&&this.state.status!=="pending")return!1;const u=(r?.pending===void 0?!this.state.isLoading:r.pending)?this.latestLocation:this.state.resolvedLocation||this.state.location,d=a6(i.pathname,r?.caseSensitive??!1,r?.fuzzy??!1,u.pathname,this.processedTree);return!d||n.params&&!Oi(d.params,n.params,{partial:!0})?!1:r?.includeSearch??!0?Oi(u.search,i.search,{partial:!0})?d.params:!1:d.params},this.hasNotFoundMatch=()=>this.__store.state.matches.some(n=>n.status==="notFound"||n.globalNotFound),this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...t,caseSensitive:t.caseSensitive??!1,notFoundMode:t.notFoundMode??"fuzzy",stringifySearch:t.stringifySearch??x6,parseSearch:t.parseSearch??R6}),typeof document<"u"&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.__store.state}get looseRoutesById(){return this.routesById}matchRoutesInternal(t,n){const r=this.getMatchedRoutes(t.pathname),{foundRoute:a,routeParams:i}=r;let{matchedRoutes:c}=r,u=!1;(a?a.path!=="/"&&i["**"]:Ci(t.pathname))&&(this.options.notFoundRoute?c=[...c,this.options.notFoundRoute]:u=!0);const d=(()=>{if(u){if(this.options.notFoundMode!=="root")for(let p=c.length-1;p>=0;p--){const g=c[p];if(g.children)return g.id}return Fr}})(),f=[],m=p=>p?.id?p.context??this.options.context??void 0:this.options.context??void 0;return c.forEach((p,g)=>{const y=f[g-1],[w,S,b]=(()=>{const U=y?.search??t.search,J=y?._strictSearch??void 0;try{const ie=n_(p.options.validateSearch,{...U})??void 0;return[{...U,...ie},{...J,...ie},void 0]}catch(ie){let F=ie;if(ie instanceof Np||(F=new Np(ie.message,{cause:ie})),n?.throwOnError)throw F;return[U,{},F]}})(),R=p.options.loaderDeps?.({search:w})??"",E=R?JSON.stringify(R):"",{interpolatedPath:T,usedParams:O}=Iy({path:p.fullPath,params:i,decodeCharMap:this.pathParamsDecodeCharMap}),C=p.id+T+E,I=this.getMatch(C),N=this.state.matches.find(U=>U.routeId===p.id),D=I?._strictParams??O;let z;if(!I){const U=p.options.params?.parse??p.options.parseParams;if(U)try{Object.assign(D,U(D))}catch(J){if(ho(J)||Do(J)?z=J:z=new L6(J.message,{cause:J}),n?.throwOnError)throw z}}Object.assign(i,D);const W=N?"stay":"enter";let V;if(I)V={...I,cause:W,params:N?lo(N.params,i):i,_strictParams:D,search:lo(N?N.search:I.search,w),_strictSearch:S};else{const U=p.options.loader||p.options.beforeLoad||p.lazyFn||mA(p)?"pending":"success";V={id:C,ssr:this.isServer?void 0:p.options.ssr,index:g,routeId:p.id,params:N?lo(N.params,i):i,_strictParams:D,pathname:T,updatedAt:Date.now(),search:N?lo(N.search,w):w,_strictSearch:S,searchError:void 0,status:U,isFetching:!1,error:void 0,paramsError:z,__routeContext:void 0,_nonReactive:{loadPromise:il()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:W,loaderDeps:N?lo(N.loaderDeps,R):R,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:p.options.staticData||{},fullPath:p.fullPath}}n?.preload||(V.globalNotFound=d===p.id),V.searchError=b;const G=m(y);V.context={...G,...V.__routeContext,...V.__beforeLoadContext},f.push(V)}),f.forEach((p,g)=>{const y=this.looseRoutesById[p.routeId];if(!this.getMatch(p.id)&&n?._buildLocation!==!0){const S=f[g-1],b=m(S);if(y.options.context){const R={deps:p.loaderDeps,params:p.params,context:b??{},location:t,navigate:E=>this.navigate({...E,_fromLocation:t}),buildLocation:this.buildLocation,cause:p.cause,abortController:p.abortController,preload:!!p.preload,matches:f};p.__routeContext=y.options.context(R)??void 0}p.context={...b,...p.__routeContext,...p.__beforeLoadContext}}}),f}}class Np extends Error{}class L6 extends Error{}function j6(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:e,matches:[],pendingMatches:[],cachedMatches:[],statusCode:200}}function n_(e,t){if(e==null)return{};if("~standard"in e){const n=e["~standard"].validate(t);if(n instanceof Promise)throw new Np("Async validation not supported");if(n.issues)throw new Np(JSON.stringify(n.issues,void 0,2),{cause:n});return n.value}return"parse"in e?e.parse(t):typeof e=="function"?e(t):{}}function $6({pathname:e,routesById:t,processedTree:n}){const r={},a=Ci(e);let i;const c=s6(a,n,!0);return c&&(i=c.route,Object.assign(r,c.params)),{matchedRoutes:c?.branch||[t[Fr]],routeParams:r,foundRoute:i}}function U6({search:e,dest:t,destRoutes:n,_includeValidateSearch:r}){const a=n.reduce((u,d)=>{const f=[];if("search"in d.options)d.options.search?.middlewares&&f.push(...d.options.search.middlewares);else if(d.options.preSearchFilters||d.options.postSearchFilters){const m=({search:p,next:g})=>{let y=p;"preSearchFilters"in d.options&&d.options.preSearchFilters&&(y=d.options.preSearchFilters.reduce((S,b)=>b(S),p));const w=g(y);return"postSearchFilters"in d.options&&d.options.postSearchFilters?d.options.postSearchFilters.reduce((S,b)=>b(S),w):w};f.push(m)}if(r&&d.options.validateSearch){const m=({search:p,next:g})=>{const y=g(p);try{return{...y,...n_(d.options.validateSearch,y)??void 0}}catch{return y}};f.push(m)}return u.concat(f)},[])??[],i=({search:u})=>t.search?t.search===!0?u:Ti(t.search,u):{};a.push(i);const c=(u,d)=>{if(u>=a.length)return d;const f=a[u];return f({search:d,next:p=>c(u+1,p)})};return c(0,e)}const z6="Error preloading route! ☝️";class _A{constructor(t){if(this.init=n=>{this.originalIndex=n.originalIndex;const r=this.options,a=!r?.path&&!r?.id;this.parentRoute=this.options.getParentRoute?.(),a?this._path=Fr:this.parentRoute||Ma(!1);let i=a?Fr:r?.path;i&&i!=="/"&&(i=cA(i));const c=r?.id||i;let u=a?Fr:up([this.parentRoute.id===Fr?"":this.parentRoute.id,c]);i===Fr&&(i="/"),u!==Fr&&(u=up(["/",u]));const d=u===Fr?"/":up([this.parentRoute.fullPath,i]);this._path=i,this._id=u,this._fullPath=d,this._to=d},this.addChildren=n=>this._addFileChildren(n),this._addFileChildren=n=>(Array.isArray(n)&&(this.children=n),typeof n=="object"&&n!==null&&(this.children=Object.values(n)),this),this._addFileTypes=()=>this,this.updateLoader=n=>(Object.assign(this.options,n),this),this.update=n=>(Object.assign(this.options,n),this),this.lazy=n=>(this.lazyFn=n,this),this.options=t||{},this.isRoot=!t?.getParentRoute,t?.id&&t?.path)throw new Error("Route cannot have both an 'id' and a 'path' option.")}get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}}class V6 extends _A{constructor(t){super(t)}}function _b(e){const t=e.errorComponent??Sm;return x.jsx(F6,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:n,reset:r})=>n?A.createElement(t,{error:n,reset:r}):e.children})}class F6 extends A.Component{constructor(){super(...arguments),this.state={error:null}}static getDerivedStateFromProps(t){return{resetKey:t.getResetKey()}}static getDerivedStateFromError(t){return{error:t}}reset(){this.setState({error:null})}componentDidUpdate(t,n){n.error&&n.resetKey!==this.state.resetKey&&this.reset()}componentDidCatch(t,n){this.props.onCatch&&this.props.onCatch(t,n)}render(){return this.props.children({error:this.state.resetKey!==this.props.getResetKey()?null:this.state.error,reset:()=>{this.reset()}})}}function Sm({error:e}){const[t,n]=A.useState(!1);return x.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[x.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[x.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),x.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>n(r=>!r),children:t?"Hide Error":"Show Error"})]}),x.jsx("div",{style:{height:".25rem"}}),t?x.jsx("div",{children:x.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:e.message?x.jsx("code",{children:e.message}):null})}):null]})}function B6({children:e,fallback:t=null}){return q6()?x.jsx(le.Fragment,{children:e}):x.jsx(le.Fragment,{children:t})}function q6(){return le.useSyncExternalStore(H6,()=>!0,()=>!1)}function H6(){return()=>{}}var Ny={exports:{}},My={},Py={exports:{}},Dy={};var Tx;function G6(){if(Tx)return Dy;Tx=1;var e=zs();function t(p,g){return p===g&&(p!==0||1/p===1/g)||p!==p&&g!==g}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,a=e.useEffect,i=e.useLayoutEffect,c=e.useDebugValue;function u(p,g){var y=g(),w=r({inst:{value:y,getSnapshot:g}}),S=w[0].inst,b=w[1];return i(function(){S.value=y,S.getSnapshot=g,d(S)&&b({inst:S})},[p,y,g]),a(function(){return d(S)&&b({inst:S}),p(function(){d(S)&&b({inst:S})})},[p]),c(y),y}function d(p){var g=p.getSnapshot;p=p.value;try{var y=g();return!n(p,y)}catch{return!0}}function f(p,g){return g()}var m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?f:u;return Dy.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:m,Dy}var Ox;function bA(){return Ox||(Ox=1,Py.exports=G6()),Py.exports}var Cx;function Z6(){if(Cx)return My;Cx=1;var e=zs(),t=bA();function n(f,m){return f===m&&(f!==0||1/f===1/m)||f!==f&&m!==m}var r=typeof Object.is=="function"?Object.is:n,a=t.useSyncExternalStore,i=e.useRef,c=e.useEffect,u=e.useMemo,d=e.useDebugValue;return My.useSyncExternalStoreWithSelector=function(f,m,p,g,y){var w=i(null);if(w.current===null){var S={hasValue:!1,value:null};w.current=S}else S=w.current;w=u(function(){function R(I){if(!E){if(E=!0,T=I,I=g(I),y!==void 0&&S.hasValue){var N=S.value;if(y(N,I))return O=N}return O=I}if(N=O,r(T,I))return N;var D=g(I);return y!==void 0&&y(N,D)?(T=I,N):(T=I,O=D)}var E=!1,T,O,C=p===void 0?null:p;return[function(){return R(m())},C===null?void 0:function(){return R(C())}]},[m,p,g,y]);var b=a(f,w[0],w[1]);return c(function(){S.hasValue=!0,S.value=b},[b]),d(b),b},My}var Ax;function K6(){return Ax||(Ax=1,Ny.exports=Z6()),Ny.exports}var wA=K6();const xoe=ja(wA);function W6(e,t=r=>r,n={}){const r=n.equal??Y6;return wA.useSyncExternalStoreWithSelector(e.subscribe,()=>e.state,()=>e.state,t,r)}function Y6(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[r,a]of e)if(!t.has(r)||!Object.is(a,t.get(r)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();const n=Ix(e);if(n.length!==Ix(t).length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!Object.is(e[n[r]],t[n[r]]))return!1;return!0}function Ix(e){return Object.keys(e).concat(Object.getOwnPropertySymbols(e))}const Ly=A.createContext(null);function SA(){return typeof document>"u"?Ly:window.__TSR_ROUTER_CONTEXT__?window.__TSR_ROUTER_CONTEXT__:(window.__TSR_ROUTER_CONTEXT__=Ly,Ly)}function Ir(e){const t=A.useContext(SA());return e?.warn,t}function fr(e){const t=Ir({warn:e?.router===void 0}),n=e?.router||t,r=A.useRef(void 0);return W6(n.__store,a=>{if(e?.select){if(e.structuralSharing??n.options.defaultStructuralSharing){const i=lo(r.current,e.select(a));return r.current=i,i}return e.select(a)}return a})}const Em=A.createContext(void 0),Q6=A.createContext(void 0);function na(e){const t=A.useContext(e.from?Q6:Em);return fr({select:r=>{const a=r.matches.find(i=>e.from?e.from===i.routeId:i.id===t);if(Ma(!((e.shouldThrow??!0)&&!a),`Could not find ${e.from?`an active match from "${e.from}"`:"a nearest match!"}`),a!==void 0)return e.select?e.select(a):a},structuralSharing:e.structuralSharing})}function bb(e){return na({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function wb(e){const{select:t,...n}=e;return na({...n,select:r=>t?t(r.loaderDeps):r.loaderDeps})}function el(e){return na({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{const n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}function Rm(e){return na({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}const ku=typeof window<"u"?A.useLayoutEffect:A.useEffect;function jy(e){const t=A.useRef({value:e,prev:null}),n=t.current.value;return e!==n&&(t.current={value:e,prev:n}),t.current.prev}function X6(e,t,n={},r={}){A.useEffect(()=>{if(!e.current||r.disabled||typeof IntersectionObserver!="function")return;const a=new IntersectionObserver(([i])=>{t(i)},n);return a.observe(e.current),()=>{a.disconnect()}},[t,n,r.disabled,e])}function J6(e){const t=A.useRef(null);return A.useImperativeHandle(e,()=>t.current,[]),t}function wl(e){const t=Ir();return A.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}function Toe(e){const t=Ir(),n=wl(),r=A.useRef(null);return ku(()=>{r.current!==e&&(n(e),r.current=e)},[t,e,n]),null}var xm=GC();const EA=ja(xm);function eL(e,t){const n=Ir(),[r,a]=A.useState(!1),i=A.useRef(!1),c=J6(t),{activeProps:u,inactiveProps:d,activeOptions:f,to:m,preload:p,preloadDelay:g,hashScrollIntoView:y,replace:w,startTransition:S,resetScroll:b,viewTransition:R,children:E,target:T,disabled:O,style:C,className:I,onClick:N,onFocus:D,onMouseEnter:z,onMouseLeave:W,onTouchStart:V,ignoreBlocker:G,params:U,search:J,hash:ie,state:F,mask:X,reloadDocument:ae,unsafeRelative:fe,from:K,_fromLocation:P,...q}=e,B=fr({select:oe=>oe.location.search,structuralSharing:!0}),L=e.from,$=A.useMemo(()=>({...e,from:L}),[n,B,L,e._fromLocation,e.hash,e.to,e.search,e.params,e.state,e.mask,e.unsafeRelative]),Q=A.useMemo(()=>n.buildLocation({...$}),[n,$]),me=A.useMemo(()=>{if(O)return;let oe=Q.maskedLocation?Q.maskedLocation.url:Q.url,Se=!1;return n.origin&&(oe.startsWith(n.origin)?oe=n.history.createHref(oe.replace(n.origin,""))||"/":Se=!0),{href:oe,external:Se}},[O,Q.maskedLocation,Q.url,n.origin,n.history]),_e=A.useMemo(()=>{if(me?.external)return me.href;try{return new URL(m),m}catch{}},[m,me]),Ae=e.reloadDocument||_e?!1:p??n.options.defaultPreload,ke=g??n.options.defaultPreloadDelay??0,H=fr({select:oe=>{if(_e)return!1;if(f?.exact){if(!h6(oe.location.pathname,Q.pathname,n.basepath))return!1}else{const Se=Ap(oe.location.pathname,n.basepath),Te=Ap(Q.pathname,n.basepath);if(!(Se.startsWith(Te)&&(Se.length===Te.length||Se[Te.length]==="/")))return!1}return(f?.includeSearch??!0)&&!Oi(oe.location.search,Q.search,{partial:!f?.exact,ignoreUndefined:!f?.explicitUndefined})?!1:f?.includeHash?oe.location.hash===Q.hash:!0}}),ne=A.useCallback(()=>{n.preloadRoute({...$}).catch(oe=>{console.warn(oe),console.warn(z6)})},[n,$]),be=A.useCallback(oe=>{oe?.isIntersecting&&ne()},[ne]);X6(c,be,aL,{disabled:!!O||Ae!=="viewport"}),A.useEffect(()=>{i.current||!O&&Ae==="render"&&(ne(),i.current=!0)},[O,ne,Ae]);const pe=oe=>{const Se=oe.currentTarget.getAttribute("target"),Te=T!==void 0?T:Se;if(!O&&!sL(oe)&&!oe.defaultPrevented&&(!Te||Te==="_self")&&oe.button===0){oe.preventDefault(),xm.flushSync(()=>{a(!0)});const Re=n.subscribe("onResolved",()=>{Re(),a(!1)});n.navigate({...$,replace:w,resetScroll:b,hashScrollIntoView:y,startTransition:S,viewTransition:R,ignoreBlocker:G})}};if(_e)return{...q,ref:c,href:_e,...E&&{children:E},...T&&{target:T},...O&&{disabled:O},...C&&{style:C},...I&&{className:I},...N&&{onClick:N},...D&&{onFocus:D},...z&&{onMouseEnter:z},...W&&{onMouseLeave:W},...V&&{onTouchStart:V}};const ce=oe=>{O||Ae&&ne()},Oe=ce,$e=oe=>{if(!(O||!Ae))if(!ke)ne();else{const Se=oe.target;if(_u.has(Se))return;const Te=setTimeout(()=>{_u.delete(Se),ne()},ke);_u.set(Se,Te)}},Ye=oe=>{if(O||!Ae||!ke)return;const Se=oe.target,Te=_u.get(Se);Te&&(clearTimeout(Te),_u.delete(Se))},He=H?Ti(u,{})??tL:$y,Xe=H?$y:Ti(d,{})??$y,Z=[I,He.className,Xe.className].filter(Boolean).join(" "),te=(C||He.style||Xe.style)&&{...C,...He.style,...Xe.style};return{...q,...He,...Xe,href:me?.href,ref:c,onClick:bu([N,pe]),onFocus:bu([D,ce]),onMouseEnter:bu([z,$e]),onMouseLeave:bu([W,Ye]),onTouchStart:bu([V,Oe]),disabled:!!O,target:T,...te&&{style:te},...Z&&{className:Z},...O&&nL,...H&&rL,...r&&oL}}const $y={},tL={className:"active"},nL={role:"link","aria-disabled":!0},rL={"data-status":"active","aria-current":"page"},oL={"data-transitioning":"transitioning"},_u=new WeakMap,aL={rootMargin:"100px"},bu=e=>t=>{for(const n of e)if(n){if(t.defaultPrevented)return;n(t)}},Tm=A.forwardRef((e,t)=>{const{_asChild:n,...r}=e,{type:a,ref:i,...c}=eL(r,t),u=typeof r.children=="function"?r.children({isActive:c["data-status"]==="active"}):r.children;return n===void 0&&delete c.disabled,A.createElement(n||"a",{...c,ref:i},u)});function sL(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}class iL extends _A{constructor(t){super(t),this.useMatch=n=>na({select:n?.select,from:this.id,structuralSharing:n?.structuralSharing}),this.useRouteContext=n=>na({...n,from:this.id,select:r=>n?.select?n.select(r.context):r.context}),this.useSearch=n=>Rm({select:n?.select,structuralSharing:n?.structuralSharing,from:this.id}),this.useParams=n=>el({select:n?.select,structuralSharing:n?.structuralSharing,from:this.id}),this.useLoaderDeps=n=>wb({...n,from:this.id}),this.useLoaderData=n=>bb({...n,from:this.id}),this.useNavigate=()=>wl({from:this.fullPath}),this.Link=le.forwardRef((n,r)=>x.jsx(Tm,{ref:r,from:this.fullPath,...n})),this.$$typeof=Symbol.for("react.memo")}}function bt(e){return new iL(e)}class cL extends V6{constructor(t){super(t),this.useMatch=n=>na({select:n?.select,from:this.id,structuralSharing:n?.structuralSharing}),this.useRouteContext=n=>na({...n,from:this.id,select:r=>n?.select?n.select(r.context):r.context}),this.useSearch=n=>Rm({select:n?.select,structuralSharing:n?.structuralSharing,from:this.id}),this.useParams=n=>el({select:n?.select,structuralSharing:n?.structuralSharing,from:this.id}),this.useLoaderDeps=n=>wb({...n,from:this.id}),this.useLoaderData=n=>bb({...n,from:this.id}),this.useNavigate=()=>wl({from:this.fullPath}),this.Link=le.forwardRef((n,r)=>x.jsx(Tm,{ref:r,from:this.fullPath,...n})),this.$$typeof=Symbol.for("react.memo")}}function lL(e){return new cL(e)}function kx(e){return typeof e=="object"?new Nx(e,{silent:!0}).createRoute(e):new Nx(e,{silent:!0}).createRoute}class Nx{constructor(t,n){this.path=t,this.createRoute=r=>{this.silent;const a=bt(r);return a.isRoot=!1,a},this.silent=n?.silent}}class Mx{constructor(t){this.useMatch=n=>na({select:n?.select,from:this.options.id,structuralSharing:n?.structuralSharing}),this.useRouteContext=n=>na({from:this.options.id,select:r=>n?.select?n.select(r.context):r.context}),this.useSearch=n=>Rm({select:n?.select,structuralSharing:n?.structuralSharing,from:this.options.id}),this.useParams=n=>el({select:n?.select,structuralSharing:n?.structuralSharing,from:this.options.id}),this.useLoaderDeps=n=>wb({...n,from:this.options.id}),this.useLoaderData=n=>bb({...n,from:this.options.id}),this.useNavigate=()=>{const n=Ir();return wl({from:n.routesById[this.options.id].fullPath})},this.options=t,this.$$typeof=Symbol.for("react.memo")}}function Px(e){return typeof e=="object"?new Mx(e):t=>new Mx({id:e,...t})}function Ot(e,t){let n,r,a,i;const c=()=>(n||(n=e().then(d=>{n=void 0,r=d[t??"default"]}).catch(d=>{if(a=d,XD(a)&&a instanceof Error&&typeof window<"u"&&typeof sessionStorage<"u"){const f=`tanstack_router_reload:${a.message}`;sessionStorage.getItem(f)||(sessionStorage.setItem(f,"1"),i=!0)}})),n),u=function(f){if(i)throw window.location.reload(),new Promise(()=>{});if(a)throw a;if(!r)throw c();return A.createElement(r,f)};return u.preload=c,u}function uL(){const e=Ir(),t=A.useRef({router:e,mounted:!1}),[n,r]=A.useState(!1),{hasPendingMatches:a,isLoading:i}=fr({select:p=>({isLoading:p.isLoading,hasPendingMatches:p.matches.some(g=>g.status==="pending")}),structuralSharing:!0}),c=jy(i),u=i||n||a,d=jy(u),f=i||a,m=jy(f);return e.startTransition=p=>{r(!0),A.startTransition(()=>{p(),r(!1)})},A.useEffect(()=>{const p=e.history.subscribe(e.load),g=e.buildLocation({to:e.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return Ci(e.latestLocation.href)!==Ci(g.href)&&e.commitLocation({...g,replace:!0}),()=>{p()}},[e,e.history]),ku(()=>{if(typeof window<"u"&&e.ssr||t.current.router===e&&t.current.mounted)return;t.current={router:e,mounted:!0},(async()=>{try{await e.load()}catch(g){console.error(g)}})()},[e]),ku(()=>{c&&!i&&e.emit({type:"onLoad",...Ai(e.state)})},[c,e,i]),ku(()=>{m&&!f&&e.emit({type:"onBeforeRouteMount",...Ai(e.state)})},[f,m,e]),ku(()=>{if(d&&!u){const p=Ai(e.state);e.emit({type:"onResolved",...p}),e.__store.setState(g=>({...g,status:"idle",resolvedLocation:g.location})),p.hrefChanged&&w6(e)}},[u,d,e]),null}function dL(e){const t=fr({select:n=>`not-found-${n.location.pathname}-${n.status}`});return x.jsx(_b,{getResetKey:()=>t,onCatch:(n,r)=>{if(ho(n))e.onCatch?.(n,r);else throw n},errorComponent:({error:n})=>{if(ho(n))return e.fallback?.(n);throw n},children:e.children})}function fL(){return x.jsx("p",{children:"Not Found"})}function Fc(e){return x.jsx(x.Fragment,{children:e.children})}function RA(e,t,n){return t.options.notFoundComponent?x.jsx(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?x.jsx(e.options.defaultNotFoundComponent,{...n}):x.jsx(fL,{})}function hL({children:e}){const t=Ir();return t.isServer?x.jsx("script",{nonce:t.options.ssr?.nonce,className:"$tsr",dangerouslySetInnerHTML:{__html:e+';typeof $_TSR !== "undefined" && $_TSR.c()'}}):null}function pL(){const e=Ir();if(!e.isScrollRestoring||!e.isServer||typeof e.options.scrollRestoration=="function"&&!e.options.scrollRestoration({location:e.latestLocation}))return null;const n=(e.options.getScrollRestorationKey||t_)(e.latestLocation),r=n!==t_(e.latestLocation)?n:void 0,a={storageKey:Ip,shouldScrollRestoration:!0};return r&&(a.key=r),x.jsx(hL,{children:`(${lA.toString()})(${JSON.stringify(a)})`})}const xA=A.memo(function({matchId:t}){const n=Ir(),r=fr({select:R=>{const E=R.matches.find(T=>T.id===t);return Ma(E),{routeId:E.routeId,ssr:E.ssr,_displayPending:E._displayPending}},structuralSharing:!0}),a=n.routesById[r.routeId],i=a.options.pendingComponent??n.options.defaultPendingComponent,c=i?x.jsx(i,{}):null,u=a.options.errorComponent??n.options.defaultErrorComponent,d=a.options.onCatch??n.options.defaultOnCatch,f=a.isRoot?a.options.notFoundComponent??n.options.notFoundRoute?.options.component:a.options.notFoundComponent,m=r.ssr===!1||r.ssr==="data-only",p=(!a.isRoot||a.options.wrapInSuspense||m)&&(a.options.wrapInSuspense??i??(a.options.errorComponent?.preload||m))?A.Suspense:Fc,g=u?_b:Fc,y=f?dL:Fc,w=fr({select:R=>R.loadedAt}),S=fr({select:R=>{const E=R.matches.findIndex(T=>T.id===t);return R.matches[E-1]?.routeId}}),b=a.isRoot?a.options.shellComponent??Fc:Fc;return x.jsxs(b,{children:[x.jsx(Em.Provider,{value:t,children:x.jsx(p,{fallback:c,children:x.jsx(g,{getResetKey:()=>w,errorComponent:u||Sm,onCatch:(R,E)=>{if(ho(R))throw R;d?.(R,E)},children:x.jsx(y,{fallback:R=>{if(!f||R.routeId&&R.routeId!==r.routeId||!R.routeId&&!a.isRoot)throw R;return A.createElement(f,R)},children:m||r._displayPending?x.jsx(B6,{fallback:c,children:x.jsx(Dx,{matchId:t})}):x.jsx(Dx,{matchId:t})})})})}),S===Fr&&n.options.scrollRestoration?x.jsxs(x.Fragment,{children:[x.jsx(mL,{}),x.jsx(pL,{})]}):null]})});function mL(){const e=Ir(),t=A.useRef(void 0);return x.jsx("script",{suppressHydrationWarning:!0,ref:n=>{n&&(t.current===void 0||t.current.href!==e.latestLocation.href)&&(e.emit({type:"onRendered",...Ai(e.state)}),t.current=e.latestLocation)}},e.latestLocation.state.__TSR_key)}const Dx=A.memo(function({matchId:t}){const n=Ir(),{match:r,key:a,routeId:i}=fr({select:d=>{const f=d.matches.find(w=>w.id===t),m=f.routeId,g=(n.routesById[m].options.remountDeps??n.options.defaultRemountDeps)?.({routeId:m,loaderDeps:f.loaderDeps,params:f._strictParams,search:f._strictSearch});return{key:g?JSON.stringify(g):void 0,routeId:m,match:{id:f.id,status:f.status,error:f.error,_forcePending:f._forcePending,_displayPending:f._displayPending}}},structuralSharing:!0}),c=n.routesById[i],u=A.useMemo(()=>{const d=c.options.component??n.options.defaultComponent;return d?x.jsx(d,{},a):x.jsx(TA,{})},[a,c.options.component,n.options.defaultComponent]);if(r._displayPending)throw n.getMatch(r.id)?._nonReactive.displayPendingPromise;if(r._forcePending)throw n.getMatch(r.id)?._nonReactive.minPendingPromise;if(r.status==="pending"){const d=c.options.pendingMinMs??n.options.defaultPendingMinMs;if(d){const f=n.getMatch(r.id);if(f&&!f._nonReactive.minPendingPromise&&!n.isServer){const m=il();f._nonReactive.minPendingPromise=m,setTimeout(()=>{m.resolve(),f._nonReactive.minPendingPromise=void 0},d)}}throw n.getMatch(r.id)?._nonReactive.loadPromise}if(r.status==="notFound")return Ma(ho(r.error)),RA(n,c,r.error);if(r.status==="redirected")throw Ma(Do(r.error)),n.getMatch(r.id)?._nonReactive.loadPromise;if(r.status==="error"){if(n.isServer){const d=(c.options.errorComponent??n.options.defaultErrorComponent)||Sm;return x.jsx(d,{error:r.error,reset:void 0,info:{componentStack:""}})}throw r.error}return u}),TA=A.memo(function(){const t=Ir(),n=A.useContext(Em),r=fr({select:f=>f.matches.find(m=>m.id===n)?.routeId}),a=t.routesById[r],i=fr({select:f=>{const p=f.matches.find(g=>g.id===n);return Ma(p),p.globalNotFound}}),c=fr({select:f=>{const m=f.matches,p=m.findIndex(g=>g.id===n);return m[p+1]?.id}}),u=t.options.defaultPendingComponent?x.jsx(t.options.defaultPendingComponent,{}):null;if(i)return RA(t,a,void 0);if(!c)return null;const d=x.jsx(xA,{matchId:c});return r===Fr?x.jsx(A.Suspense,{fallback:u,children:d}):d});function gL(){const e=Ir(),n=e.routesById[Fr].options.pendingComponent??e.options.defaultPendingComponent,r=n?x.jsx(n,{}):null,a=e.isServer||typeof document<"u"&&e.ssr?Fc:A.Suspense,i=x.jsxs(a,{fallback:r,children:[!e.isServer&&x.jsx(uL,{}),x.jsx(vL,{})]});return e.options.InnerWrap?x.jsx(e.options.InnerWrap,{children:i}):i}function vL(){const e=Ir(),t=fr({select:a=>a.matches[0]?.id}),n=fr({select:a=>a.loadedAt}),r=t?x.jsx(xA,{matchId:t}):null;return x.jsx(Em.Provider,{value:t,children:e.options.disableGlobalCatchBoundary?r:x.jsx(_b,{getResetKey:()=>n,errorComponent:Sm,onCatch:a=>{a.message||a.toString()},children:r})})}const yL=e=>new _L(e);class _L extends D6{constructor(t){super(t)}}typeof globalThis<"u"?(globalThis.createFileRoute=kx,globalThis.createLazyFileRoute=Px):typeof window<"u"&&(window.createFileRoute=kx,window.createLazyFileRoute=Px);function bL({router:e,children:t,...n}){Object.keys(n).length>0&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});const r=SA(),a=x.jsx(r.Provider,{value:e,children:t});return e.options.Wrap?x.jsx(e.options.Wrap,{children:a}):a}function wL({router:e,...t}){return x.jsx(bL,{router:e,...t,children:x.jsx(gL,{})})}function SL(e){return fr({select:t=>t.location})}var EL={},Lx={};const hp=Object.create(null),wu=e=>EL||globalThis.Deno?.env.toObject()||globalThis.__env__||(e?hp:globalThis),fo=new Proxy(hp,{get(e,t){return wu()[t]??hp[t]},has(e,t){return t in wu()||t in hp},set(e,t,n){const r=wu(!0);return r[t]=n,!0},deleteProperty(e,t){if(!t)return!1;const n=wu(!0);return delete n[t],!0},ownKeys(){const e=wu(!0);return Object.keys(e)}});function yn(e,t){return typeof process<"u"&&Lx?Lx[e]??t:typeof Deno<"u"?Deno.env.get(e)??t:typeof Bun<"u"?Bun.env[e]??t:t}const Su=1,Ln=4,Yo=8,qr=24,jx={eterm:Ln,cons25:Ln,console:Ln,cygwin:Ln,dtterm:Ln,gnome:Ln,hurd:Ln,jfbterm:Ln,konsole:Ln,kterm:Ln,mlterm:Ln,mosh:qr,putty:Ln,st:Ln,"rxvt-unicode-24bit":qr,terminator:qr,"xterm-kitty":qr},RL=new Map(Object.entries({APPVEYOR:Yo,BUILDKITE:Yo,CIRCLECI:qr,DRONE:Yo,GITEA_ACTIONS:qr,GITHUB_ACTIONS:qr,GITLAB_CI:Yo,TRAVIS:Yo})),xL=[/ansi/,/color/,/linux/,/direct/,/^con[0-9]*x[0-9]/,/^rxvt/,/^screen/,/^xterm/,/^vt100/,/^vt220/];function TL(){if(yn("FORCE_COLOR")!==void 0)switch(yn("FORCE_COLOR")){case"":case"1":case"true":return Ln;case"2":return Yo;case"3":return qr;default:return Su}if(yn("NODE_DISABLE_COLORS")!==void 0&&yn("NODE_DISABLE_COLORS")!==""||yn("NO_COLOR")!==void 0&&yn("NO_COLOR")!==""||yn("TERM")==="dumb")return Su;if(yn("TMUX"))return qr;if("TF_BUILD"in fo&&"AGENT_NAME"in fo)return Ln;if("CI"in fo){for(const{0:e,1:t}of RL)if(e in fo)return t;return yn("CI_NAME")==="codeship"?Yo:Su}if("TEAMCITY_VERSION"in fo)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.exec(yn("TEAMCITY_VERSION"))!==null?Ln:Su;switch(yn("TERM_PROGRAM")){case"iTerm.app":return!yn("TERM_PROGRAM_VERSION")||/^[0-2]\./.exec(yn("TERM_PROGRAM_VERSION"))!==null?Yo:qr;case"HyperTerm":case"MacTerm":return qr;case"Apple_Terminal":return Yo}if(yn("COLORTERM")==="truecolor"||yn("COLORTERM")==="24bit")return qr;if(yn("TERM")){if(/truecolor/.exec(yn("TERM"))!==null)return qr;if(/^xterm-256/.exec(yn("TERM"))!==null)return Yo;const e=yn("TERM").toLowerCase();if(jx[e])return jx[e];if(xL.some(t=>t.exec(e)!==null))return Ln}return yn("COLORTERM")?Ln:Su}const Qo={reset:"\x1B[0m",bright:"\x1B[1m",dim:"\x1B[2m",fg:{red:"\x1B[31m",green:"\x1B[32m",yellow:"\x1B[33m",blue:"\x1B[34m",magenta:"\x1B[35m"}},r_=["debug","info","success","warn","error"];function OL(e,t){return r_.indexOf(t)>=r_.indexOf(e)}const CL={info:Qo.fg.blue,success:Qo.fg.green,warn:Qo.fg.yellow,error:Qo.fg.red,debug:Qo.fg.magenta},AL=(e,t,n)=>{const r=new Date().toISOString();return n?`${Qo.dim}${r}${Qo.reset} ${CL[e]}${e.toUpperCase()}${Qo.reset} ${Qo.bright}[Better Auth]:${Qo.reset} ${t}`:`${r} ${e.toUpperCase()} [Better Auth]: ${t}`},IL=e=>{const t="error",n=TL()!==1,r=(a,i,c=[])=>{if(!OL(t,a))return;const u=AL(a,i,n);{a==="error"?console.error(u,...c):a==="warn"?console.warn(u,...c):console.log(u,...c);return}};return{...Object.fromEntries(r_.map(a=>[a,(...[i,...c])=>r(a,i,c)])),get level(){return t}}};IL();var Bu=class extends Error{constructor(e,t){super(e),this.name="BetterAuthError",this.message=e,this.cause=t,this.stack=""}};function kL(e){try{return(new URL(e).pathname.replace(/\/+$/,"")||"/")!=="/"}catch{throw new Bu(`Invalid base URL: ${e}. Please provide a valid base URL.`)}}function NL(e){try{const t=new URL(e);if(t.protocol!=="http:"&&t.protocol!=="https:")throw new Bu(`Invalid base URL: ${e}. URL must include 'http://' or 'https://'`)}catch(t){throw t instanceof Bu?t:new Bu(`Invalid base URL: ${e}. Please provide a valid base URL.`,String(t))}}function Uy(e,t="/api/auth"){if(NL(e),kL(e))return e;const n=e.replace(/\/+$/,"");return!t||t==="/"?n:(t=t.startsWith("/")?t:`/${t}`,`${n}${t}`)}function ML(e,t,n,r,a){if(e)return Uy(e,t);{const i=fo.BETTER_AUTH_URL||fo.NEXT_PUBLIC_BETTER_AUTH_URL||fo.PUBLIC_BETTER_AUTH_URL||fo.NUXT_PUBLIC_BETTER_AUTH_URL||fo.NUXT_PUBLIC_AUTH_URL||(fo.BASE_URL!=="/"?fo.BASE_URL:void 0);if(i)return Uy(i,t)}if(typeof window<"u"&&window.location)return Uy(window.location.origin,t)}const PL={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*:/},DL=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/,$x={true:!0,false:!1,null:null,undefined:void 0,nan:NaN,infinity:Number.POSITIVE_INFINITY,"-infinity":Number.NEGATIVE_INFINITY},LL=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(?:\.(\d{1,7}))?(?:Z|([+-])(\d{2}):(\d{2}))$/;function jL(e){return e instanceof Date&&!isNaN(e.getTime())}function $L(e){const t=LL.exec(e);if(!t)return null;const[,n,r,a,i,c,u,d,f,m,p]=t;let g=new Date(Date.UTC(parseInt(n,10),parseInt(r,10)-1,parseInt(a,10),parseInt(i,10),parseInt(c,10),parseInt(u,10),d?parseInt(d.padEnd(3,"0"),10):0));if(f){const y=(parseInt(m,10)*60+parseInt(p,10))*(f==="+"?-1:1);g.setUTCMinutes(g.getUTCMinutes()+y)}return jL(g)?g:null}function UL(e,t={}){const{strict:n=!1,warnings:r=!1,reviver:a,parseDates:i=!0}=t;if(typeof e!="string")return e;const c=e.trim();if(c.length>0&&c[0]==='"'&&c.endsWith('"')&&!c.slice(1,-1).includes('"'))return c.slice(1,-1);const u=c.toLowerCase();if(u.length<=9&&u in $x)return $x[u];if(!DL.test(c)){if(n)throw new SyntaxError("[better-json] Invalid JSON");return e}if(Object.entries(PL).some(([d,f])=>{const m=f.test(c);return m&&r&&console.warn(`[better-json] Detected potential prototype pollution attempt using ${d} pattern`),m})&&n)throw new Error("[better-json] Potential prototype pollution attempt detected");try{return JSON.parse(c,(f,m)=>{if(f==="__proto__"||f==="constructor"&&m&&typeof m=="object"&&"prototype"in m){r&&console.warn(`[better-json] Dropping "${f}" key to prevent prototype pollution`);return}if(i&&typeof m=="string"){const p=$L(m);if(p)return p}return a?a(f,m):m})}catch(d){if(n)throw d;return e}}function zL(e,t={strict:!0}){return UL(e,t)}let xo=[],hs=0;const eh=4,Kc=e=>{let t=[],n={get(){return n.lc||n.listen(()=>{})(),n.value},lc:0,listen(r){return n.lc=t.push(r),()=>{for(let i=hs+eh;i<xo.length;)xo[i]===r?xo.splice(i,eh):i+=eh;let a=t.indexOf(r);~a&&(t.splice(a,1),--n.lc||n.off())}},notify(r,a){let i=!xo.length;for(let c of t)xo.push(c,n.value,r,a);if(i){for(hs=0;hs<xo.length;hs+=eh)xo[hs](xo[hs+1],xo[hs+2],xo[hs+3]);xo.length=0}},off(){},set(r){let a=n.value;a!==r&&(n.value=r,n.notify(a))},subscribe(r){let a=n.listen(r);return r(n.value),a},value:e};return n},VL=5,th=6,nh=10;let FL=(e,t,n,r)=>(e.events=e.events||{},e.events[n+nh]||(e.events[n+nh]=r(a=>{e.events[n].reduceRight((i,c)=>(c(i),i),{shared:{},...a})})),e.events[n]=e.events[n]||[],e.events[n].push(t),()=>{let a=e.events[n],i=a.indexOf(t);a.splice(i,1),a.length||(delete e.events[n],e.events[n+nh](),delete e.events[n+nh])}),BL=1e3,OA=(e,t)=>FL(e,r=>{let a=t(r);a&&e.events[th].push(a)},VL,r=>{let a=e.listen;e.listen=(...c)=>(!e.lc&&!e.active&&(e.active=!0,r()),a(...c));let i=e.off;return e.events[th]=[],e.off=()=>{i(),setTimeout(()=>{if(e.active&&!e.lc){e.active=!1;for(let c of e.events[th])c();e.events[th]=[]}},BL)},()=>{e.listen=a,e.off=i}});function qL(e,t,n){let r=new Set(t).add(void 0);return e.listen((a,i,c)=>{r.has(c)&&n(a,i,c)})}var HL=Object.defineProperty,GL=Object.defineProperties,ZL=Object.getOwnPropertyDescriptors,Ux=Object.getOwnPropertySymbols,KL=Object.prototype.hasOwnProperty,WL=Object.prototype.propertyIsEnumerable,zx=(e,t,n)=>t in e?HL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Io=(e,t)=>{for(var n in t||(t={}))KL.call(t,n)&&zx(e,n,t[n]);if(Ux)for(var n of Ux(t))WL.call(t,n)&&zx(e,n,t[n]);return e},Wo=(e,t)=>GL(e,ZL(t)),YL=class extends Error{constructor(e,t,n){super(t||e.toString(),{cause:n}),this.status=e,this.statusText=t,this.error=n}},QL=async(e,t)=>{var n,r,a,i,c,u;let d=t||{};const f={onRequest:[t?.onRequest],onResponse:[t?.onResponse],onSuccess:[t?.onSuccess],onError:[t?.onError],onRetry:[t?.onRetry]};if(!t||!t?.plugins)return{url:e,options:d,hooks:f};for(const m of t?.plugins||[]){if(m.init){const p=await((n=m.init)==null?void 0:n.call(m,e.toString(),t));d=p.options||d,e=p.url}f.onRequest.push((r=m.hooks)==null?void 0:r.onRequest),f.onResponse.push((a=m.hooks)==null?void 0:a.onResponse),f.onSuccess.push((i=m.hooks)==null?void 0:i.onSuccess),f.onError.push((c=m.hooks)==null?void 0:c.onError),f.onRetry.push((u=m.hooks)==null?void 0:u.onRetry)}return{url:e,options:d,hooks:f}},Vx=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}},XL=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 JL(e){if(typeof e=="number")return new Vx({type:"linear",attempts:e,delay:1e3});switch(e.type){case"linear":return new Vx(e);case"exponential":return new XL(e);default:throw new Error("Invalid retry strategy")}}var ej=async e=>{const t={},n=async r=>typeof r=="function"?await r():r;if(e?.auth){if(e.auth.type==="Bearer"){const r=await n(e.auth.token);if(!r)return t;t.authorization=`Bearer ${r}`}else if(e.auth.type==="Basic"){const r=n(e.auth.username),a=n(e.auth.password);if(!r||!a)return t;t.authorization=`Basic ${btoa(`${r}:${a}`)}`}else if(e.auth.type==="Custom"){const r=n(e.auth.value);if(!r)return t;t.authorization=`${n(e.auth.prefix)} ${r}`}}return t},tj=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function nj(e){const t=e.headers.get("content-type"),n=new Set(["image/svg","application/xml","application/xhtml","application/html"]);if(!t)return"json";const r=t.split(";").shift()||"";return tj.test(r)?"json":n.has(r)||r.startsWith("text/")?"text":"blob"}function rj(e){try{return JSON.parse(e),!0}catch{return!1}}function CA(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 Fx(e){try{return JSON.parse(e)}catch{return e}}function Bx(e){return typeof e=="function"}function oj(e){if(e?.customFetchImpl)return e.customFetchImpl;if(typeof globalThis<"u"&&Bx(globalThis.fetch))return globalThis.fetch;if(typeof window<"u"&&Bx(window.fetch))return window.fetch;throw new Error("No fetch implementation found")}async function aj(e){const t=new Headers(e?.headers),n=await ej(e);for(const[r,a]of Object.entries(n||{}))t.set(r,a);if(!t.has("content-type")){const r=sj(e?.body);r&&t.set("content-type",r)}return t}function sj(e){return CA(e)?"application/json":null}function ij(e){if(!e?.body)return null;const t=new Headers(e?.headers);if(CA(e.body)&&!t.has("content-type")){for(const[n,r]of Object.entries(e?.body))r instanceof Date&&(e.body[n]=r.toISOString());return JSON.stringify(e.body)}return e.body}function cj(e,t){var n;if(t?.method)return t.method.toUpperCase();if(e.startsWith("@")){const r=(n=e.split("@")[1])==null?void 0:n.split("/")[0];return IA.includes(r)?r.toUpperCase():t?.body?"POST":"GET"}return t?.body?"POST":"GET"}function lj(e,t){let n;return!e?.signal&&e?.timeout&&(n=setTimeout(()=>t?.abort(),e?.timeout)),{abortTimeout:n,clearTimeout:()=>{n&&clearTimeout(n)}}}var uj=class AA extends Error{constructor(t,n){super(n||JSON.stringify(t,null,2)),this.issues=t,Object.setPrototypeOf(this,AA.prototype)}};async function pp(e,t){let n=await e["~standard"].validate(t);if(n.issues)throw new uj(n.issues);return n.value}var IA=["get","post","put","patch","delete"],dj=e=>({id:"apply-schema",name:"Apply Schema",version:"1.0.0",async init(t,n){var r,a,i,c;const u=((a=(r=e.plugins)==null?void 0:r.find(d=>{var f;return(f=d.schema)!=null&&f.config?t.startsWith(d.schema.config.baseURL||"")||t.startsWith(d.schema.config.prefix||""):!1}))==null?void 0:a.schema)||e.schema;if(u){let d=t;(i=u.config)!=null&&i.prefix&&d.startsWith(u.config.prefix)&&(d=d.replace(u.config.prefix,""),u.config.baseURL&&(t=t.replace(u.config.prefix,u.config.baseURL))),(c=u.config)!=null&&c.baseURL&&d.startsWith(u.config.baseURL)&&(d=d.replace(u.config.baseURL,""));const f=u.schema[d];if(f){let m=Wo(Io({},n),{method:f.method,output:f.output});return n?.disableValidation||(m=Wo(Io({},m),{body:f.input?await pp(f.input,n?.body):n?.body,params:f.params?await pp(f.params,n?.params):n?.params,query:f.query?await pp(f.query,n?.query):n?.query})),{url:t,options:m}}}return{url:t,options:n}}}),fj=e=>{async function t(n,r){const a=Wo(Io(Io({},e),r),{plugins:[...e?.plugins||[],dj(e||{})]});if(e?.catchAllError)try{return await o_(n,a)}catch(i){return{data:null,error:{status:500,statusText:"Fetch Error",message:"Fetch related error. Captured by catchAllError option. See error property for more details.",error:i}}}return await o_(n,a)}return t};function hj(e,t){let{baseURL:n,params:r,query:a}=t||{query:{},params:{},baseURL:""},i=e.startsWith("http")?e.split("/").slice(0,3).join("/"):n||"";if(e.startsWith("@")){const p=e.toString().split("@")[1].split("/")[0];IA.includes(p)&&(e=e.replace(`@${p}/`,"/"))}i.endsWith("/")||(i+="/");let[c,u]=e.replace(i,"").split("?");const d=new URLSearchParams(u);for(const[p,g]of Object.entries(a||{}))g!=null&&d.set(p,String(g));if(r)if(Array.isArray(r)){const p=c.split("/").filter(g=>g.startsWith(":"));for(const[g,y]of p.entries()){const w=r[g];c=c.replace(y,w)}}else for(const[p,g]of Object.entries(r))c=c.replace(`:${p}`,String(g));c=c.split("/").map(encodeURIComponent).join("/"),c.startsWith("/")&&(c=c.slice(1));let f=d.toString();return f=f.length>0?`?${f}`.replace(/\+/g,"%20"):"",i.startsWith("http")?new URL(`${c}${f}`,i):`${i}${c}${f}`}var o_=async(e,t)=>{var n,r,a,i,c,u,d,f;const{hooks:m,url:p,options:g}=await QL(e,t),y=oj(g),w=new AbortController,S=(n=g.signal)!=null?n:w.signal,b=hj(p,g),R=ij(g),E=await aj(g),T=cj(p,g);let O=Wo(Io({},g),{url:b,headers:E,body:R,method:T,signal:S});for(const U of m.onRequest)if(U){const J=await U(O);J instanceof Object&&(O=J)}("pipeTo"in O&&typeof O.pipeTo=="function"||typeof((r=t?.body)==null?void 0:r.pipe)=="function")&&("duplex"in O||(O.duplex="half"));const{clearTimeout:C}=lj(g,w);let I=await y(O.url,O);C();const N={response:I,request:O};for(const U of m.onResponse)if(U){const J=await U(Wo(Io({},N),{response:(a=t?.hookOptions)!=null&&a.cloneResponse?I.clone():I}));J instanceof Response?I=J:J instanceof Object&&(I=J.response)}if(I.ok){if(!(O.method!=="HEAD"))return{data:"",error:null};const J=nj(I),ie={data:"",response:I,request:O};if(J==="json"||J==="text"){const F=await I.text(),ae=await((i=O.jsonParser)!=null?i:Fx)(F);ie.data=ae}else ie.data=await I[J]();O?.output&&O.output&&!O.disableValidation&&(ie.data=await pp(O.output,ie.data));for(const F of m.onSuccess)F&&await F(Wo(Io({},ie),{response:(c=t?.hookOptions)!=null&&c.cloneResponse?I.clone():I}));return t?.throw?ie.data:{data:ie.data,error:null}}const D=(u=t?.jsonParser)!=null?u:Fx,z=await I.text(),W=rj(z),V=W?await D(z):null,G={response:I,responseText:z,request:O,error:Wo(Io({},V),{status:I.status,statusText:I.statusText})};for(const U of m.onError)U&&await U(Wo(Io({},G),{response:(d=t?.hookOptions)!=null&&d.cloneResponse?I.clone():I}));if(t?.retry){const U=JL(t.retry),J=(f=t.retryAttempt)!=null?f:0;if(await U.shouldAttemptRetry(J,I)){for(const F of m.onRetry)F&&await F(N);const ie=U.getDelay(J);return await new Promise(F=>setTimeout(F,ie)),await o_(e,Wo(Io({},t),{retryAttempt:J+1}))}}if(t?.throw)throw new YL(I.status,I.statusText,W?V:z);return{data:null,error:Wo(Io({},V),{status:I.status,statusText:I.statusText})}};const zy=Symbol.for("better-auth:broadcast-channel"),pj=()=>Math.floor(Date.now()/1e3);var mj=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:pj()}))}catch{}}setup(){if(typeof window>"u"||typeof window.addEventListener>"u")return()=>{};const e=t=>{if(t.key!==this.name)return;const n=JSON.parse(t.newValue??"{}");n?.event!=="session"||!n?.data||this.listeners.forEach(r=>r(n))};return window.addEventListener("storage",e),()=>{window.removeEventListener("storage",e)}}};function Vy(e="better-auth.message"){return globalThis[zy]||(globalThis[zy]=new mj(e)),globalThis[zy]}const Fy=Symbol.for("better-auth:focus-manager");var gj=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 qx(){return globalThis[Fy]||(globalThis[Fy]=new gj),globalThis[Fy]}const By=Symbol.for("better-auth:online-manager");var vj=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 qy(){return globalThis[By]||(globalThis[By]=new vj),globalThis[By]}const yj=()=>typeof window>"u",Nu=(e,t,n,r)=>{const a=Kc({data:null,error:null,isPending:!0,isRefetching:!1,refetch:u=>i(u)}),i=async u=>new Promise(d=>{const f=typeof r=="function"?r({data:a.get().data,error:a.get().error,isPending:a.get().isPending}):r;n(t,{...f,query:{...f?.query,...u?.query},async onSuccess(m){a.set({data:m.data,error:null,isPending:!1,isRefetching:!1,refetch:a.value.refetch}),await f?.onSuccess?.(m)},async onError(m){const{request:p}=m,g=typeof p.retry=="number"?p.retry:p.retry?.attempts,y=p.retryAttempt||0;g&&y<g||(a.set({error:m.error,data:null,isPending:!1,isRefetching:!1,refetch:a.value.refetch}),await f?.onError?.(m))},async onRequest(m){const p=a.get();a.set({isPending:p.data===null,data:p.data,error:null,isRefetching:!0,refetch:a.value.refetch}),await f?.onRequest?.(m)}}).catch(m=>{a.set({error:m,data:null,isPending:!1,isRefetching:!1,refetch:a.value.refetch})}).finally(()=>{d(void 0)})});e=Array.isArray(e)?e:[e];let c=!1;for(const u of e)u.subscribe(async()=>{yj()||(c?await i():OA(a,()=>{const d=setTimeout(async()=>{c||(await i(),c=!0)},0);return()=>{a.off(),u.off(),clearTimeout(d)}}))});return a},kc=()=>Math.floor(Date.now()/1e3),_j=5;function bj(e){const{sessionAtom:t,sessionSignal:n,$fetch:r,options:a={}}=e,i=a.sessionOptions?.refetchInterval??0,c=a.sessionOptions?.refetchOnWindowFocus??!0,u=a.sessionOptions?.refetchWhenOffline??!1,d={lastSync:0,lastSessionRequest:0,cachedSession:void 0},f=()=>u||qy().isOnline,m=E=>{if(!f())return;if(E?.event==="storage"){d.lastSync=kc(),n.set(!n.get());return}const T=t.get();if(E?.event==="poll"){d.lastSessionRequest=kc(),r("/get-session").then(O=>{t.set({...T,data:O.data,error:O.error||null}),d.lastSync=kc(),n.set(!n.get())}).catch(()=>{});return}E?.event==="visibilitychange"&&kc()-d.lastSessionRequest<_j&&T?.data!==null&&T?.data!==void 0||(T?.data===null||T?.data===void 0||E?.event==="visibilitychange")&&(E?.event==="visibilitychange"&&(d.lastSessionRequest=kc()),d.lastSync=kc(),n.set(!n.get()))},p=E=>{Vy().post({event:"session",data:{trigger:E},clientId:Math.random().toString(36).substring(7)})},g=()=>{i&&i>0&&(d.pollInterval=setInterval(()=>{t.get()?.data&&m({event:"poll"})},i*1e3))},y=()=>{d.unsubscribeBroadcast=Vy().subscribe(()=>{m({event:"storage"})})},w=()=>{c&&(d.unsubscribeFocus=qx().subscribe(()=>{m({event:"visibilitychange"})}))},S=()=>{d.unsubscribeOnline=qy().subscribe(E=>{E&&m({event:"visibilitychange"})})};return{init:()=>{g(),y(),w(),S(),Vy().setup(),qx().setup(),qy().setup()},cleanup:()=>{d.pollInterval&&(clearInterval(d.pollInterval),d.pollInterval=void 0),d.unsubscribeBroadcast&&(d.unsubscribeBroadcast(),d.unsubscribeBroadcast=void 0),d.unsubscribeFocus&&(d.unsubscribeFocus(),d.unsubscribeFocus=void 0),d.unsubscribeOnline&&(d.unsubscribeOnline(),d.unsubscribeOnline=void 0),d.lastSync=0,d.lastSessionRequest=0,d.cachedSession=void 0},triggerRefetch:m,broadcastSessionUpdate:p}}const wj={id:"redirect",name:"Redirect",hooks:{onSuccess(e){if(e.data?.url&&e.data?.redirect&&typeof window<"u"&&window.location&&window.location)try{window.location.href=e.data.url}catch{}}}};function Sj(e,t){const n=Kc(!1),r=Nu(n,"/get-session",e,{method:"GET"});return OA(r,()=>{const a=bj({sessionAtom:r,sessionSignal:n,$fetch:e,options:t});return a.init(),()=>{a.cleanup()}}),{session:r,$sessionSignal:n}}const Ej=(e,t)=>{const n="credentials"in Request.prototype,r=ML(e?.baseURL,e?.basePath)??"/api/auth",a=e?.plugins?.flatMap(O=>O.fetchPlugins).filter(O=>O!==void 0)||[],i={id:"lifecycle-hooks",name:"lifecycle-hooks",hooks:{onSuccess:e?.fetchOptions?.onSuccess,onError:e?.fetchOptions?.onError,onRequest:e?.fetchOptions?.onRequest,onResponse:e?.fetchOptions?.onResponse}},{onSuccess:c,onError:u,onRequest:d,onResponse:f,...m}=e?.fetchOptions||{},p=fj({baseURL:r,...n?{credentials:"include"}:{},method:"GET",jsonParser(O){return O?zL(O,{strict:!1}):null},customFetchImpl:fetch,...m,plugins:[i,...m.plugins||[],...e?.disableDefaultFetchPlugins?[]:[wj],...a]}),{$sessionSignal:g,session:y}=Sj(p,e),w=e?.plugins||[];let S={},b={$sessionSignal:g,session:y},R={"/sign-out":"POST","/revoke-sessions":"POST","/revoke-other-sessions":"POST","/delete-user":"POST"};const E=[{signal:"$sessionSignal",matcher(O){return O==="/sign-out"||O==="/update-user"||O==="/sign-up/email"||O==="/sign-in/email"||O==="/delete-user"||O==="/verify-email"||O==="/revoke-sessions"||O==="/revoke-session"||O==="/change-email"}}];for(const O of w)O.getAtoms&&Object.assign(b,O.getAtoms?.(p)),O.pathMethods&&Object.assign(R,O.pathMethods),O.atomListeners&&E.push(...O.atomListeners);const T={notify:O=>{b[O].set(!b[O].get())},listen:(O,C)=>{b[O].subscribe(C)},atoms:b};for(const O of w)O.getActions&&Object.assign(S,O.getActions?.(p,T,e));return{get baseURL(){return r},pluginsActions:S,pluginsAtoms:b,pluginPathMethods:R,atomListeners:E,$fetch:p,$store:T}};function Rj(e){return typeof e=="object"&&e!==null&&"get"in e&&typeof e.get=="function"&&"lc"in e&&typeof e.lc=="number"}function xj(e,t,n){const r=t[e],{fetchOptions:a,query:i,...c}=n||{};return r||(a?.method?a.method:c&&Object.keys(c).length>0?"POST":"GET")}function Tj(e,t,n,r,a){function i(c=[]){return new Proxy(function(){},{get(u,d){if(typeof d!="string"||d==="then"||d==="catch"||d==="finally")return;const f=[...c,d];let m=e;for(const p of f)if(m&&typeof m=="object"&&p in m)m=m[p];else{m=void 0;break}return typeof m=="function"||Rj(m)?m:i(f)},apply:async(u,d,f)=>{const m="/"+c.map(E=>E.replace(/[A-Z]/g,T=>`-${T.toLowerCase()}`)).join("/"),p=f[0]||{},g=f[1]||{},{query:y,fetchOptions:w,...S}=p,b={...g,...w},R=xj(m,n,p);return await t(m,{...b,body:R==="GET"?void 0:{...S,...b?.body||{}},query:y||b?.query,method:R,async onSuccess(E){if(await b?.onSuccess?.(E),!a||b.disableSignal)return;const T=a.filter(O=>O.matcher(m));if(T.length)for(const O of T){const C=r[O.signal];if(!C)return;const I=C.get();setTimeout(()=>{C.set(!I)},10)}}})}})}return i()}function Oj(e,t={}){let n=A.useRef(e.get());const{keys:r,deps:a=[e,r]}=t;let i=A.useCallback(u=>{const d=f=>{n.current!==f&&(n.current=f,u())};return d(e.value),r?.length?qL(e,r,d):e.listen(d)},a),c=()=>n.current;return A.useSyncExternalStore(i,c,c)}function Cj(e){return`use${Aj(e)}`}function Aj(e){return e.charAt(0).toUpperCase()+e.slice(1)}function Ij(e){const{pluginPathMethods:t,pluginsActions:n,pluginsAtoms:r,$fetch:a,$store:i,atomListeners:c}=Ej(e);let u={};for(const[d,f]of Object.entries(r))u[Cj(d)]=()=>Oj(f);return Tj({...n,...u,$fetch:a,$store:i},a,t,r,c)}function kj(e){return{authorize(t,n="AND"){let r=!1;for(const[a,i]of Object.entries(t)){const c=e[a];if(!c)return{success:!1,error:`You are not allowed to access resource: ${a}`};if(Array.isArray(i))r=i.every(u=>c.includes(u));else if(typeof i=="object"){const u=i;u.connector==="OR"?r=u.actions.some(d=>c.includes(d)):r=u.actions.every(d=>c.includes(d))}else throw new Bu("Invalid access control request");if(r&&n==="OR")return{success:r};if(!r&&n==="AND")return{success:!1,error:`unauthorized to access resource "${a}"`}}return r?{success:r}:{success:!1,error:"Not authorized"}},statements:e}}function kA(e){return{newRole(t){return kj(t)},statements:e}}const Nj={user:["create","list","set-role","ban","impersonate","delete","set-password","get","update"],session:["list","revoke","delete"]},NA=kA(Nj),MA=NA.newRole({user:["create","list","set-role","ban","impersonate","delete","set-password","get","update"],session:["list","revoke","delete"]}),PA=NA.newRole({user:[],session:[]}),Mj={admin:MA,user:PA},Pj=e=>{if(e.userId&&e.options?.adminUserIds?.includes(e.userId))return!0;if(!e.permissions&&!e.permission)return!1;const t=(e.role||e.options?.defaultRole||"user").split(","),n=e.options?.roles||Mj;for(const r of t)if(n[r]?.authorize(e.permission??e.permissions)?.success)return!0;return!1},Dj={organization:["update","delete"],member:["create","update","delete"],invitation:["create","cancel"],team:["create","update","delete"],ac:["create","read","update","delete"]},Sb=kA(Dj),DA=Sb.newRole({organization:["update"],invitation:["create","cancel"],member:["create","update","delete"],team:["create","update","delete"],ac:["create","read","update","delete"]}),LA=Sb.newRole({organization:["update","delete"],member:["create","update","delete"],invitation:["create","cancel"],team:["create","update","delete"],ac:["create","read","update","delete"]}),jA=Sb.newRole({organization:[],member:[],invitation:[],team:[],ac:["read"]}),Lj={admin:DA,owner:LA,member:jA},jj=(e,t)=>{if(!e.permissions&&!e.permission)return!1;const n=e.role.split(","),r=e.options.creatorRole||"owner",a=n.includes(r),i=e.allowCreatorAllPermissions||!1;if(a&&i)return!0;for(const c of n)if(t[c]?.authorize(e.permissions??e.permission)?.success)return!0;return!1},$j=e=>{const t={admin:MA,user:PA,...e?.roles};return{id:"admin-client",$InferServerPlugin:{},getActions:()=>({admin:{checkRolePermission:n=>Pj({role:n.role,options:{ac:e?.ac,roles:t},permissions:n.permissions??n.permission})}}),pathMethods:{"/admin/list-users":"GET","/admin/stop-impersonating":"POST"}}},Uj=()=>({id:"magic-link",$InferServerPlugin:{}}),zj=e=>jj(e,e.options.roles||Lj),Vj=e=>{const t=Kc(!1),n=Kc(!1),r=Kc(!1),a=Kc(!1),i={admin:DA,member:jA,owner:LA,...e?.roles};return{id:"organization",$InferServerPlugin:{},getActions:(c,u,d)=>({$Infer:{ActiveOrganization:{},Organization:{},Invitation:{},Member:{},Team:{}},organization:{checkRolePermission:f=>zj({role:f.role,options:{ac:e?.ac,roles:i},permissions:f.permissions??f.permission})}}),getAtoms:c=>{const u=Nu(t,"/organization/list",c,{method:"GET"});return{$listOrg:t,$activeOrgSignal:n,$activeMemberSignal:r,$activeMemberRoleSignal:a,activeOrganization:Nu([n],"/organization/get-full-organization",c,()=>({method:"GET"})),listOrganizations:u,activeMember:Nu([r],"/organization/get-active-member",c,{method:"GET"}),activeMemberRole:Nu([a],"/organization/get-active-member-role",c,{method:"GET"})}},pathMethods:{"/organization/get-full-organization":"GET","/organization/list-user-teams":"GET"},atomListeners:[{matcher(c){return c==="/organization/create"||c==="/organization/delete"||c==="/organization/update"},signal:"$listOrg"},{matcher(c){return c.startsWith("/organization")},signal:"$activeOrgSignal"},{matcher(c){return c.startsWith("/organization/set-active")},signal:"$sessionSignal"},{matcher(c){return c.includes("/organization/update-member-role")},signal:"$activeMemberSignal"},{matcher(c){return c.includes("/organization/update-member-role")},signal:"$activeMemberRoleSignal"}]}},Fj=e=>({id:"sso-client",$InferServerPlugin:{}}),Bj=Ij({plugins:[Vj({}),$j(),Fj(),Uj()]});function $A(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=$A(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Eb(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=$A(e))&&(r&&(r+=" "),r+=t);return r}const qj=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},Hj=(e,t)=>({classGroupId:e,validator:t}),UA=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Mp="-",Hx=[],Gj="arbitrary..",Zj=e=>{const t=Wj(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:c=>{if(c.startsWith("[")&&c.endsWith("]"))return Kj(c);const u=c.split(Mp),d=u[0]===""&&u.length>1?1:0;return zA(u,d,t)},getConflictingClassGroupIds:(c,u)=>{if(u){const d=r[c],f=n[c];return d?f?qj(f,d):d:f||Hx}return n[c]||Hx}}},zA=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const a=e[t],i=n.nextPart.get(a);if(i){const f=zA(e,t+1,i);if(f)return f}const c=n.validators;if(c===null)return;const u=t===0?e.join(Mp):e.slice(t).join(Mp),d=c.length;for(let f=0;f<d;f++){const m=c[f];if(m.validator(u))return m.classGroupId}},Kj=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?Gj+r:void 0})(),Wj=e=>{const{theme:t,classGroups:n}=e;return Yj(n,t)},Yj=(e,t)=>{const n=UA();for(const r in e){const a=e[r];Rb(a,n,r,t)}return n},Rb=(e,t,n,r)=>{const a=e.length;for(let i=0;i<a;i++){const c=e[i];Qj(c,t,n,r)}},Qj=(e,t,n,r)=>{if(typeof e=="string"){Xj(e,t,n);return}if(typeof e=="function"){Jj(e,t,n,r);return}e$(e,t,n,r)},Xj=(e,t,n)=>{const r=e===""?t:VA(t,e);r.classGroupId=n},Jj=(e,t,n,r)=>{if(t$(e)){Rb(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Hj(n,e))},e$=(e,t,n,r)=>{const a=Object.entries(e),i=a.length;for(let c=0;c<i;c++){const[u,d]=a[c];Rb(d,VA(t,u),n,r)}},VA=(e,t)=>{let n=e;const r=t.split(Mp),a=r.length;for(let i=0;i<a;i++){const c=r[i];let u=n.nextPart.get(c);u||(u=UA(),n.nextPart.set(c,u)),n=u}return n},t$=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,n$=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const a=(i,c)=>{n[i]=c,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(i){let c=n[i];if(c!==void 0)return c;if((c=r[i])!==void 0)return a(i,c),c},set(i,c){i in n?n[i]=c:a(i,c)}}},a_="!",Gx=":",r$=[],Zx=(e,t,n,r,a)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:a}),o$=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=a=>{const i=[];let c=0,u=0,d=0,f;const m=a.length;for(let S=0;S<m;S++){const b=a[S];if(c===0&&u===0){if(b===Gx){i.push(a.slice(d,S)),d=S+1;continue}if(b==="/"){f=S;continue}}b==="["?c++:b==="]"?c--:b==="("?u++:b===")"&&u--}const p=i.length===0?a:a.slice(d);let g=p,y=!1;p.endsWith(a_)?(g=p.slice(0,-1),y=!0):p.startsWith(a_)&&(g=p.slice(1),y=!0);const w=f&&f>d?f-d:void 0;return Zx(i,y,g,w)};if(t){const a=t+Gx,i=r;r=c=>c.startsWith(a)?i(c.slice(a.length)):Zx(r$,!1,c,void 0,!0)}if(n){const a=r;r=i=>n({className:i,parseClassName:a})}return r},a$=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let a=[];for(let i=0;i<n.length;i++){const c=n[i],u=c[0]==="[",d=t.has(c);u||d?(a.length>0&&(a.sort(),r.push(...a),a=[]),r.push(c)):a.push(c)}return a.length>0&&(a.sort(),r.push(...a)),r}},s$=e=>({cache:n$(e.cacheSize),parseClassName:o$(e),sortModifiers:a$(e),...Zj(e)}),i$=/\s+/,c$=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:a,sortModifiers:i}=t,c=[],u=e.trim().split(i$);let d="";for(let f=u.length-1;f>=0;f-=1){const m=u[f],{isExternal:p,modifiers:g,hasImportantModifier:y,baseClassName:w,maybePostfixModifierPosition:S}=n(m);if(p){d=m+(d.length>0?" "+d:d);continue}let b=!!S,R=r(b?w.substring(0,S):w);if(!R){if(!b){d=m+(d.length>0?" "+d:d);continue}if(R=r(w),!R){d=m+(d.length>0?" "+d:d);continue}b=!1}const E=g.length===0?"":g.length===1?g[0]:i(g).join(":"),T=y?E+a_:E,O=T+R;if(c.indexOf(O)>-1)continue;c.push(O);const C=a(R,b);for(let I=0;I<C.length;++I){const N=C[I];c.push(T+N)}d=m+(d.length>0?" "+d:d)}return d},l$=(...e)=>{let t=0,n,r,a="";for(;t<e.length;)(n=e[t++])&&(r=FA(n))&&(a&&(a+=" "),a+=r);return a},FA=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=FA(e[r]))&&(n&&(n+=" "),n+=t);return n},u$=(e,...t)=>{let n,r,a,i;const c=d=>{const f=t.reduce((m,p)=>p(m),e());return n=s$(f),r=n.cache.get,a=n.cache.set,i=u,u(d)},u=d=>{const f=r(d);if(f)return f;const m=c$(d,n);return a(d,m),m};return i=c,(...d)=>i(l$(...d))},d$=[],Tn=e=>{const t=n=>n[e]||d$;return t.isThemeGetter=!0,t},BA=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,qA=/^\((?:(\w[\w-]*):)?(.+)\)$/i,f$=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,h$=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,p$=/\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$/,m$=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,g$=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,v$=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ps=e=>f$.test(e),dt=e=>!!e&&!Number.isNaN(Number(e)),ms=e=>!!e&&Number.isInteger(Number(e)),Hy=e=>e.endsWith("%")&&dt(e.slice(0,-1)),Ta=e=>h$.test(e),HA=()=>!0,y$=e=>p$.test(e)&&!m$.test(e),xb=()=>!1,_$=e=>g$.test(e),b$=e=>v$.test(e),w$=e=>!ze(e)&&!Ve(e),S$=e=>Vs(e,KA,xb),ze=e=>BA.test(e),hi=e=>Vs(e,WA,y$),Kx=e=>Vs(e,I$,dt),E$=e=>Vs(e,QA,HA),R$=e=>Vs(e,YA,xb),Wx=e=>Vs(e,GA,xb),x$=e=>Vs(e,ZA,b$),rh=e=>Vs(e,XA,_$),Ve=e=>qA.test(e),Eu=e=>ji(e,WA),T$=e=>ji(e,YA),Yx=e=>ji(e,GA),O$=e=>ji(e,KA),C$=e=>ji(e,ZA),oh=e=>ji(e,XA,!0),A$=e=>ji(e,QA,!0),Vs=(e,t,n)=>{const r=BA.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},ji=(e,t,n=!1)=>{const r=qA.exec(e);return r?r[1]?t(r[1]):n:!1},GA=e=>e==="position"||e==="percentage",ZA=e=>e==="image"||e==="url",KA=e=>e==="length"||e==="size"||e==="bg-size",WA=e=>e==="length",I$=e=>e==="number",YA=e=>e==="family-name",QA=e=>e==="number"||e==="weight",XA=e=>e==="shadow",k$=()=>{const e=Tn("color"),t=Tn("font"),n=Tn("text"),r=Tn("font-weight"),a=Tn("tracking"),i=Tn("leading"),c=Tn("breakpoint"),u=Tn("container"),d=Tn("spacing"),f=Tn("radius"),m=Tn("shadow"),p=Tn("inset-shadow"),g=Tn("text-shadow"),y=Tn("drop-shadow"),w=Tn("blur"),S=Tn("perspective"),b=Tn("aspect"),R=Tn("ease"),E=Tn("animate"),T=()=>["auto","avoid","all","avoid-page","page","left","right","column"],O=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],C=()=>[...O(),Ve,ze],I=()=>["auto","hidden","clip","visible","scroll"],N=()=>["auto","contain","none"],D=()=>[Ve,ze,d],z=()=>[ps,"full","auto",...D()],W=()=>[ms,"none","subgrid",Ve,ze],V=()=>["auto",{span:["full",ms,Ve,ze]},ms,Ve,ze],G=()=>[ms,"auto",Ve,ze],U=()=>["auto","min","max","fr",Ve,ze],J=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ie=()=>["start","end","center","stretch","center-safe","end-safe"],F=()=>["auto",...D()],X=()=>[ps,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...D()],ae=()=>[ps,"screen","full","dvw","lvw","svw","min","max","fit",...D()],fe=()=>[ps,"screen","full","lh","dvh","lvh","svh","min","max","fit",...D()],K=()=>[e,Ve,ze],P=()=>[...O(),Yx,Wx,{position:[Ve,ze]}],q=()=>["no-repeat",{repeat:["","x","y","space","round"]}],B=()=>["auto","cover","contain",O$,S$,{size:[Ve,ze]}],L=()=>[Hy,Eu,hi],$=()=>["","none","full",f,Ve,ze],Q=()=>["",dt,Eu,hi],me=()=>["solid","dashed","dotted","double"],_e=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Ae=()=>[dt,Hy,Yx,Wx],ke=()=>["","none",w,Ve,ze],H=()=>["none",dt,Ve,ze],ne=()=>["none",dt,Ve,ze],be=()=>[dt,Ve,ze],pe=()=>[ps,"full",...D()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ta],breakpoint:[Ta],color:[HA],container:[Ta],"drop-shadow":[Ta],ease:["in","out","in-out"],font:[w$],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ta],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ta],shadow:[Ta],spacing:["px",dt],text:[Ta],"text-shadow":[Ta],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ps,ze,Ve,b]}],container:["container"],columns:[{columns:[dt,ze,Ve,u]}],"break-after":[{"break-after":T()}],"break-before":[{"break-before":T()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:C()}],overflow:[{overflow:I()}],"overflow-x":[{"overflow-x":I()}],"overflow-y":[{"overflow-y":I()}],overscroll:[{overscroll:N()}],"overscroll-x":[{"overscroll-x":N()}],"overscroll-y":[{"overscroll-y":N()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:z()}],"inset-x":[{"inset-x":z()}],"inset-y":[{"inset-y":z()}],start:[{"inset-s":z(),start:z()}],end:[{"inset-e":z(),end:z()}],"inset-bs":[{"inset-bs":z()}],"inset-be":[{"inset-be":z()}],top:[{top:z()}],right:[{right:z()}],bottom:[{bottom:z()}],left:[{left:z()}],visibility:["visible","invisible","collapse"],z:[{z:[ms,"auto",Ve,ze]}],basis:[{basis:[ps,"full","auto",u,...D()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[dt,ps,"auto","initial","none",ze]}],grow:[{grow:["",dt,Ve,ze]}],shrink:[{shrink:["",dt,Ve,ze]}],order:[{order:[ms,"first","last","none",Ve,ze]}],"grid-cols":[{"grid-cols":W()}],"col-start-end":[{col:V()}],"col-start":[{"col-start":G()}],"col-end":[{"col-end":G()}],"grid-rows":[{"grid-rows":W()}],"row-start-end":[{row:V()}],"row-start":[{"row-start":G()}],"row-end":[{"row-end":G()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":U()}],"auto-rows":[{"auto-rows":U()}],gap:[{gap:D()}],"gap-x":[{"gap-x":D()}],"gap-y":[{"gap-y":D()}],"justify-content":[{justify:[...J(),"normal"]}],"justify-items":[{"justify-items":[...ie(),"normal"]}],"justify-self":[{"justify-self":["auto",...ie()]}],"align-content":[{content:["normal",...J()]}],"align-items":[{items:[...ie(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ie(),{baseline:["","last"]}]}],"place-content":[{"place-content":J()}],"place-items":[{"place-items":[...ie(),"baseline"]}],"place-self":[{"place-self":["auto",...ie()]}],p:[{p:D()}],px:[{px:D()}],py:[{py:D()}],ps:[{ps:D()}],pe:[{pe:D()}],pbs:[{pbs:D()}],pbe:[{pbe:D()}],pt:[{pt:D()}],pr:[{pr:D()}],pb:[{pb:D()}],pl:[{pl:D()}],m:[{m:F()}],mx:[{mx:F()}],my:[{my:F()}],ms:[{ms:F()}],me:[{me:F()}],mbs:[{mbs:F()}],mbe:[{mbe:F()}],mt:[{mt:F()}],mr:[{mr:F()}],mb:[{mb:F()}],ml:[{ml:F()}],"space-x":[{"space-x":D()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":D()}],"space-y-reverse":["space-y-reverse"],size:[{size:X()}],"inline-size":[{inline:["auto",...ae()]}],"min-inline-size":[{"min-inline":["auto",...ae()]}],"max-inline-size":[{"max-inline":["none",...ae()]}],"block-size":[{block:["auto",...fe()]}],"min-block-size":[{"min-block":["auto",...fe()]}],"max-block-size":[{"max-block":["none",...fe()]}],w:[{w:[u,"screen",...X()]}],"min-w":[{"min-w":[u,"screen","none",...X()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[c]},...X()]}],h:[{h:["screen","lh",...X()]}],"min-h":[{"min-h":["screen","lh","none",...X()]}],"max-h":[{"max-h":["screen","lh",...X()]}],"font-size":[{text:["base",n,Eu,hi]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,A$,E$]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Hy,ze]}],"font-family":[{font:[T$,R$,t]}],"font-features":[{"font-features":[ze]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[a,Ve,ze]}],"line-clamp":[{"line-clamp":[dt,"none",Ve,Kx]}],leading:[{leading:[i,...D()]}],"list-image":[{"list-image":["none",Ve,ze]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Ve,ze]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:K()}],"text-color":[{text:K()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...me(),"wavy"]}],"text-decoration-thickness":[{decoration:[dt,"from-font","auto",Ve,hi]}],"text-decoration-color":[{decoration:K()}],"underline-offset":[{"underline-offset":[dt,"auto",Ve,ze]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:D()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ve,ze]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Ve,ze]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:P()}],"bg-repeat":[{bg:q()}],"bg-size":[{bg:B()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ms,Ve,ze],radial:["",Ve,ze],conic:[ms,Ve,ze]},C$,x$]}],"bg-color":[{bg:K()}],"gradient-from-pos":[{from:L()}],"gradient-via-pos":[{via:L()}],"gradient-to-pos":[{to:L()}],"gradient-from":[{from:K()}],"gradient-via":[{via:K()}],"gradient-to":[{to:K()}],rounded:[{rounded:$()}],"rounded-s":[{"rounded-s":$()}],"rounded-e":[{"rounded-e":$()}],"rounded-t":[{"rounded-t":$()}],"rounded-r":[{"rounded-r":$()}],"rounded-b":[{"rounded-b":$()}],"rounded-l":[{"rounded-l":$()}],"rounded-ss":[{"rounded-ss":$()}],"rounded-se":[{"rounded-se":$()}],"rounded-ee":[{"rounded-ee":$()}],"rounded-es":[{"rounded-es":$()}],"rounded-tl":[{"rounded-tl":$()}],"rounded-tr":[{"rounded-tr":$()}],"rounded-br":[{"rounded-br":$()}],"rounded-bl":[{"rounded-bl":$()}],"border-w":[{border:Q()}],"border-w-x":[{"border-x":Q()}],"border-w-y":[{"border-y":Q()}],"border-w-s":[{"border-s":Q()}],"border-w-e":[{"border-e":Q()}],"border-w-bs":[{"border-bs":Q()}],"border-w-be":[{"border-be":Q()}],"border-w-t":[{"border-t":Q()}],"border-w-r":[{"border-r":Q()}],"border-w-b":[{"border-b":Q()}],"border-w-l":[{"border-l":Q()}],"divide-x":[{"divide-x":Q()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Q()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...me(),"hidden","none"]}],"divide-style":[{divide:[...me(),"hidden","none"]}],"border-color":[{border:K()}],"border-color-x":[{"border-x":K()}],"border-color-y":[{"border-y":K()}],"border-color-s":[{"border-s":K()}],"border-color-e":[{"border-e":K()}],"border-color-bs":[{"border-bs":K()}],"border-color-be":[{"border-be":K()}],"border-color-t":[{"border-t":K()}],"border-color-r":[{"border-r":K()}],"border-color-b":[{"border-b":K()}],"border-color-l":[{"border-l":K()}],"divide-color":[{divide:K()}],"outline-style":[{outline:[...me(),"none","hidden"]}],"outline-offset":[{"outline-offset":[dt,Ve,ze]}],"outline-w":[{outline:["",dt,Eu,hi]}],"outline-color":[{outline:K()}],shadow:[{shadow:["","none",m,oh,rh]}],"shadow-color":[{shadow:K()}],"inset-shadow":[{"inset-shadow":["none",p,oh,rh]}],"inset-shadow-color":[{"inset-shadow":K()}],"ring-w":[{ring:Q()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:K()}],"ring-offset-w":[{"ring-offset":[dt,hi]}],"ring-offset-color":[{"ring-offset":K()}],"inset-ring-w":[{"inset-ring":Q()}],"inset-ring-color":[{"inset-ring":K()}],"text-shadow":[{"text-shadow":["none",g,oh,rh]}],"text-shadow-color":[{"text-shadow":K()}],opacity:[{opacity:[dt,Ve,ze]}],"mix-blend":[{"mix-blend":[..._e(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":_e()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[dt]}],"mask-image-linear-from-pos":[{"mask-linear-from":Ae()}],"mask-image-linear-to-pos":[{"mask-linear-to":Ae()}],"mask-image-linear-from-color":[{"mask-linear-from":K()}],"mask-image-linear-to-color":[{"mask-linear-to":K()}],"mask-image-t-from-pos":[{"mask-t-from":Ae()}],"mask-image-t-to-pos":[{"mask-t-to":Ae()}],"mask-image-t-from-color":[{"mask-t-from":K()}],"mask-image-t-to-color":[{"mask-t-to":K()}],"mask-image-r-from-pos":[{"mask-r-from":Ae()}],"mask-image-r-to-pos":[{"mask-r-to":Ae()}],"mask-image-r-from-color":[{"mask-r-from":K()}],"mask-image-r-to-color":[{"mask-r-to":K()}],"mask-image-b-from-pos":[{"mask-b-from":Ae()}],"mask-image-b-to-pos":[{"mask-b-to":Ae()}],"mask-image-b-from-color":[{"mask-b-from":K()}],"mask-image-b-to-color":[{"mask-b-to":K()}],"mask-image-l-from-pos":[{"mask-l-from":Ae()}],"mask-image-l-to-pos":[{"mask-l-to":Ae()}],"mask-image-l-from-color":[{"mask-l-from":K()}],"mask-image-l-to-color":[{"mask-l-to":K()}],"mask-image-x-from-pos":[{"mask-x-from":Ae()}],"mask-image-x-to-pos":[{"mask-x-to":Ae()}],"mask-image-x-from-color":[{"mask-x-from":K()}],"mask-image-x-to-color":[{"mask-x-to":K()}],"mask-image-y-from-pos":[{"mask-y-from":Ae()}],"mask-image-y-to-pos":[{"mask-y-to":Ae()}],"mask-image-y-from-color":[{"mask-y-from":K()}],"mask-image-y-to-color":[{"mask-y-to":K()}],"mask-image-radial":[{"mask-radial":[Ve,ze]}],"mask-image-radial-from-pos":[{"mask-radial-from":Ae()}],"mask-image-radial-to-pos":[{"mask-radial-to":Ae()}],"mask-image-radial-from-color":[{"mask-radial-from":K()}],"mask-image-radial-to-color":[{"mask-radial-to":K()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":O()}],"mask-image-conic-pos":[{"mask-conic":[dt]}],"mask-image-conic-from-pos":[{"mask-conic-from":Ae()}],"mask-image-conic-to-pos":[{"mask-conic-to":Ae()}],"mask-image-conic-from-color":[{"mask-conic-from":K()}],"mask-image-conic-to-color":[{"mask-conic-to":K()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:P()}],"mask-repeat":[{mask:q()}],"mask-size":[{mask:B()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Ve,ze]}],filter:[{filter:["","none",Ve,ze]}],blur:[{blur:ke()}],brightness:[{brightness:[dt,Ve,ze]}],contrast:[{contrast:[dt,Ve,ze]}],"drop-shadow":[{"drop-shadow":["","none",y,oh,rh]}],"drop-shadow-color":[{"drop-shadow":K()}],grayscale:[{grayscale:["",dt,Ve,ze]}],"hue-rotate":[{"hue-rotate":[dt,Ve,ze]}],invert:[{invert:["",dt,Ve,ze]}],saturate:[{saturate:[dt,Ve,ze]}],sepia:[{sepia:["",dt,Ve,ze]}],"backdrop-filter":[{"backdrop-filter":["","none",Ve,ze]}],"backdrop-blur":[{"backdrop-blur":ke()}],"backdrop-brightness":[{"backdrop-brightness":[dt,Ve,ze]}],"backdrop-contrast":[{"backdrop-contrast":[dt,Ve,ze]}],"backdrop-grayscale":[{"backdrop-grayscale":["",dt,Ve,ze]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[dt,Ve,ze]}],"backdrop-invert":[{"backdrop-invert":["",dt,Ve,ze]}],"backdrop-opacity":[{"backdrop-opacity":[dt,Ve,ze]}],"backdrop-saturate":[{"backdrop-saturate":[dt,Ve,ze]}],"backdrop-sepia":[{"backdrop-sepia":["",dt,Ve,ze]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":D()}],"border-spacing-x":[{"border-spacing-x":D()}],"border-spacing-y":[{"border-spacing-y":D()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Ve,ze]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[dt,"initial",Ve,ze]}],ease:[{ease:["linear","initial",R,Ve,ze]}],delay:[{delay:[dt,Ve,ze]}],animate:[{animate:["none",E,Ve,ze]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[S,Ve,ze]}],"perspective-origin":[{"perspective-origin":C()}],rotate:[{rotate:H()}],"rotate-x":[{"rotate-x":H()}],"rotate-y":[{"rotate-y":H()}],"rotate-z":[{"rotate-z":H()}],scale:[{scale:ne()}],"scale-x":[{"scale-x":ne()}],"scale-y":[{"scale-y":ne()}],"scale-z":[{"scale-z":ne()}],"scale-3d":["scale-3d"],skew:[{skew:be()}],"skew-x":[{"skew-x":be()}],"skew-y":[{"skew-y":be()}],transform:[{transform:[Ve,ze,"","none","gpu","cpu"]}],"transform-origin":[{origin:C()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:pe()}],"translate-x":[{"translate-x":pe()}],"translate-y":[{"translate-y":pe()}],"translate-z":[{"translate-z":pe()}],"translate-none":["translate-none"],accent:[{accent:K()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:K()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Ve,ze]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":D()}],"scroll-mx":[{"scroll-mx":D()}],"scroll-my":[{"scroll-my":D()}],"scroll-ms":[{"scroll-ms":D()}],"scroll-me":[{"scroll-me":D()}],"scroll-mbs":[{"scroll-mbs":D()}],"scroll-mbe":[{"scroll-mbe":D()}],"scroll-mt":[{"scroll-mt":D()}],"scroll-mr":[{"scroll-mr":D()}],"scroll-mb":[{"scroll-mb":D()}],"scroll-ml":[{"scroll-ml":D()}],"scroll-p":[{"scroll-p":D()}],"scroll-px":[{"scroll-px":D()}],"scroll-py":[{"scroll-py":D()}],"scroll-ps":[{"scroll-ps":D()}],"scroll-pe":[{"scroll-pe":D()}],"scroll-pbs":[{"scroll-pbs":D()}],"scroll-pbe":[{"scroll-pbe":D()}],"scroll-pt":[{"scroll-pt":D()}],"scroll-pr":[{"scroll-pr":D()}],"scroll-pb":[{"scroll-pb":D()}],"scroll-pl":[{"scroll-pl":D()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Ve,ze]}],fill:[{fill:["none",...K()]}],"stroke-w":[{stroke:[dt,Eu,hi,Kx]}],stroke:[{stroke:["none",...K()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},JA=u$(k$),N$=Object.freeze({status:"aborted"});function ye(e,t,n){function r(u,d){if(u._zod||Object.defineProperty(u,"_zod",{value:{def:d,constr:c,traits:new Set},enumerable:!1}),u._zod.traits.has(e))return;u._zod.traits.add(e),t(u,d);const f=c.prototype,m=Object.keys(f);for(let p=0;p<m.length;p++){const g=m[p];g in u||(u[g]=f[g].bind(u))}}const a=n?.Parent??Object;class i extends a{}Object.defineProperty(i,"name",{value:e});function c(u){var d;const f=n?.Parent?new i:this;r(f,u),(d=f._zod).deferred??(d.deferred=[]);for(const m of f._zod.deferred)m();return f}return Object.defineProperty(c,"init",{value:r}),Object.defineProperty(c,Symbol.hasInstance,{value:u=>n?.Parent&&u instanceof n.Parent?!0:u?._zod?.traits?.has(e)}),Object.defineProperty(c,"name",{value:e}),c}class tl extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class eI extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const tI={};function Ps(e){return tI}function nI(e){const t=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,a])=>t.indexOf(+r)===-1).map(([r,a])=>a)}function s_(e,t){return typeof t=="bigint"?t.toString():t}function Om(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function vd(e){return e==null}function Tb(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function M$(e,t){const n=(e.toString().split(".")[1]||"").length,r=t.toString();let a=(r.split(".")[1]||"").length;if(a===0&&/\d?e-\d?/.test(r)){const d=r.match(/\d?e-(\d?)/);d?.[1]&&(a=Number.parseInt(d[1]))}const i=n>a?n:a,c=Number.parseInt(e.toFixed(i).replace(".","")),u=Number.parseInt(t.toFixed(i).replace(".",""));return c%u/10**i}const Qx=Symbol("evaluating");function Rt(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==Qx)return r===void 0&&(r=Qx,r=n()),r},set(a){Object.defineProperty(e,t,{value:a})},configurable:!0})}function $i(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Fs(...e){const t={};for(const n of e){const r=Object.getOwnPropertyDescriptors(n);Object.assign(t,r)}return Object.defineProperties({},t)}function Xx(e){return JSON.stringify(e)}function P$(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const rI="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function td(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const D$=Om(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function ul(e){if(td(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(td(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function oI(e){return ul(e)?{...e}:Array.isArray(e)?[...e]:e}const L$=new Set(["string","number","symbol"]);function dl(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Bs(e,t,n){const r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function je(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function j$(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const $$={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function U$(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const i=Fs(e._zod.def,{get shape(){const c={};for(const u in t){if(!(u in n.shape))throw new Error(`Unrecognized key: "${u}"`);t[u]&&(c[u]=n.shape[u])}return $i(this,"shape",c),c},checks:[]});return Bs(e,i)}function z$(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const i=Fs(e._zod.def,{get shape(){const c={...e._zod.def.shape};for(const u in t){if(!(u in n.shape))throw new Error(`Unrecognized key: "${u}"`);t[u]&&delete c[u]}return $i(this,"shape",c),c},checks:[]});return Bs(e,i)}function V$(e,t){if(!ul(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0){const i=e._zod.def.shape;for(const c in t)if(Object.getOwnPropertyDescriptor(i,c)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const a=Fs(e._zod.def,{get shape(){const i={...e._zod.def.shape,...t};return $i(this,"shape",i),i}});return Bs(e,a)}function F$(e,t){if(!ul(t))throw new Error("Invalid input to safeExtend: expected a plain object");const n=Fs(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t};return $i(this,"shape",r),r}});return Bs(e,n)}function B$(e,t){const n=Fs(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t._zod.def.shape};return $i(this,"shape",r),r},get catchall(){return t._zod.def.catchall},checks:[]});return Bs(e,n)}function q$(e,t,n){const a=t._zod.def.checks;if(a&&a.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const c=Fs(t._zod.def,{get shape(){const u=t._zod.def.shape,d={...u};if(n)for(const f in n){if(!(f in u))throw new Error(`Unrecognized key: "${f}"`);n[f]&&(d[f]=e?new e({type:"optional",innerType:u[f]}):u[f])}else for(const f in u)d[f]=e?new e({type:"optional",innerType:u[f]}):u[f];return $i(this,"shape",d),d},checks:[]});return Bs(t,c)}function H$(e,t,n){const r=Fs(t._zod.def,{get shape(){const a=t._zod.def.shape,i={...a};if(n)for(const c in n){if(!(c in i))throw new Error(`Unrecognized key: "${c}"`);n[c]&&(i[c]=new e({type:"nonoptional",innerType:a[c]}))}else for(const c in a)i[c]=new e({type:"nonoptional",innerType:a[c]});return $i(this,"shape",i),i}});return Bs(t,r)}function Wc(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function Ri(e,t){return t.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(e),n})}function ah(e){return typeof e=="string"?e:e?.message}function Ds(e,t,n){const r={...e,path:e.path??[]};if(!e.message){const a=ah(e.inst?._zod.def?.error?.(e))??ah(t?.error?.(e))??ah(n.customError?.(e))??ah(n.localeError?.(e))??"Invalid input";r.message=a}return delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}function aI(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function Ob(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function nd(...e){const[t,n,r]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:r}:{...t}}const sI=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,s_,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Cb=ye("$ZodError",sI),Cm=ye("$ZodError",sI,{Parent:Error});function G$(e,t=n=>n.message){const n={},r=[];for(const a of e.issues)a.path.length>0?(n[a.path[0]]=n[a.path[0]]||[],n[a.path[0]].push(t(a))):r.push(t(a));return{formErrors:r,fieldErrors:n}}function Z$(e,t=n=>n.message){const n={_errors:[]},r=a=>{for(const i of a.issues)if(i.code==="invalid_union"&&i.errors.length)i.errors.map(c=>r({issues:c}));else if(i.code==="invalid_key")r({issues:i.issues});else if(i.code==="invalid_element")r({issues:i.issues});else if(i.path.length===0)n._errors.push(t(i));else{let c=n,u=0;for(;u<i.path.length;){const d=i.path[u];u===i.path.length-1?(c[d]=c[d]||{_errors:[]},c[d]._errors.push(t(i))):c[d]=c[d]||{_errors:[]},c=c[d],u++}}};return r(e),n}const Am=e=>(t,n,r,a)=>{const i=r?Object.assign(r,{async:!1}):{async:!1},c=t._zod.run({value:n,issues:[]},i);if(c instanceof Promise)throw new tl;if(c.issues.length){const u=new(a?.Err??e)(c.issues.map(d=>Ds(d,i,Ps())));throw rI(u,a?.callee),u}return c.value},K$=Am(Cm),Im=e=>async(t,n,r,a)=>{const i=r?Object.assign(r,{async:!0}):{async:!0};let c=t._zod.run({value:n,issues:[]},i);if(c instanceof Promise&&(c=await c),c.issues.length){const u=new(a?.Err??e)(c.issues.map(d=>Ds(d,i,Ps())));throw rI(u,a?.callee),u}return c.value},W$=Im(Cm),km=e=>(t,n,r)=>{const a=r?{...r,async:!1}:{async:!1},i=t._zod.run({value:n,issues:[]},a);if(i instanceof Promise)throw new tl;return i.issues.length?{success:!1,error:new(e??Cb)(i.issues.map(c=>Ds(c,a,Ps())))}:{success:!0,data:i.value}},iI=km(Cm),Nm=e=>async(t,n,r)=>{const a=r?Object.assign(r,{async:!0}):{async:!0};let i=t._zod.run({value:n,issues:[]},a);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new e(i.issues.map(c=>Ds(c,a,Ps())))}:{success:!0,data:i.value}},Y$=Nm(Cm),Q$=e=>(t,n,r)=>{const a=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Am(e)(t,n,a)},X$=e=>(t,n,r)=>Am(e)(t,n,r),J$=e=>async(t,n,r)=>{const a=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Im(e)(t,n,a)},e8=e=>async(t,n,r)=>Im(e)(t,n,r),t8=e=>(t,n,r)=>{const a=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return km(e)(t,n,a)},n8=e=>(t,n,r)=>km(e)(t,n,r),r8=e=>async(t,n,r)=>{const a=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Nm(e)(t,n,a)},o8=e=>async(t,n,r)=>Nm(e)(t,n,r),a8=/^[cC][^\s-]{8,}$/,s8=/^[0-9a-z]+$/,i8=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,c8=/^[0-9a-vA-V]{20}$/,l8=/^[A-Za-z0-9]{27}$/,u8=/^[a-zA-Z0-9_-]{21}$/,d8=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,f8=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Jx=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,h8=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,p8="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function m8(){return new RegExp(p8,"u")}const g8=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,v8=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,y8=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,_8=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,b8=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,cI=/^[A-Za-z0-9_-]*$/,w8=/^\+[1-9]\d{6,14}$/,lI="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",S8=new RegExp(`^${lI}$`);function uI(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function E8(e){return new RegExp(`^${uI(e)}$`)}function R8(e){const t=uI({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const r=`${t}(?:${n.join("|")})`;return new RegExp(`^${lI}T(?:${r})$`)}const x8=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},T8=/^-?\d+$/,dI=/^-?\d+(?:\.\d+)?$/,O8=/^(?:true|false)$/i,C8=/^null$/i,A8=/^[^A-Z]*$/,I8=/^[^a-z]*$/,Qn=ye("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),fI={number:"number",bigint:"bigint",object:"date"},hI=ye("$ZodCheckLessThan",(e,t)=>{Qn.init(e,t);const n=fI[typeof t.value];e._zod.onattach.push(r=>{const a=r._zod.bag,i=(t.inclusive?a.maximum:a.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<i&&(t.inclusive?a.maximum=t.value:a.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),pI=ye("$ZodCheckGreaterThan",(e,t)=>{Qn.init(e,t);const n=fI[typeof t.value];e._zod.onattach.push(r=>{const a=r._zod.bag,i=(t.inclusive?a.minimum:a.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>i&&(t.inclusive?a.minimum=t.value:a.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),k8=ye("$ZodCheckMultipleOf",(e,t)=>{Qn.init(e,t),e._zod.onattach.push(n=>{var r;(r=n._zod.bag).multipleOf??(r.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):M$(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),N8=ye("$ZodCheckNumberFormat",(e,t)=>{Qn.init(e,t),t.format=t.format||"float64";const n=t.format?.includes("int"),r=n?"int":"number",[a,i]=$$[t.format];e._zod.onattach.push(c=>{const u=c._zod.bag;u.format=t.format,u.minimum=a,u.maximum=i,n&&(u.pattern=T8)}),e._zod.check=c=>{const u=c.value;if(n){if(!Number.isInteger(u)){c.issues.push({expected:r,format:t.format,code:"invalid_type",continue:!1,input:u,inst:e});return}if(!Number.isSafeInteger(u)){u>0?c.issues.push({input:u,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort}):c.issues.push({input:u,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}u<a&&c.issues.push({origin:"number",input:u,code:"too_small",minimum:a,inclusive:!0,inst:e,continue:!t.abort}),u>i&&c.issues.push({origin:"number",input:u,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}}),M8=ye("$ZodCheckMaxSize",(e,t)=>{var n;Qn.init(e,t),(n=e._zod.def).when??(n.when=r=>{const a=r.value;return!vd(a)&&a.size!==void 0}),e._zod.onattach.push(r=>{const a=r._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<a&&(r._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{const a=r.value;a.size<=t.maximum||r.issues.push({origin:aI(a),code:"too_big",maximum:t.maximum,inclusive:!0,input:a,inst:e,continue:!t.abort})}}),P8=ye("$ZodCheckMinSize",(e,t)=>{var n;Qn.init(e,t),(n=e._zod.def).when??(n.when=r=>{const a=r.value;return!vd(a)&&a.size!==void 0}),e._zod.onattach.push(r=>{const a=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>a&&(r._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{const a=r.value;a.size>=t.minimum||r.issues.push({origin:aI(a),code:"too_small",minimum:t.minimum,inclusive:!0,input:a,inst:e,continue:!t.abort})}}),D8=ye("$ZodCheckMaxLength",(e,t)=>{var n;Qn.init(e,t),(n=e._zod.def).when??(n.when=r=>{const a=r.value;return!vd(a)&&a.length!==void 0}),e._zod.onattach.push(r=>{const a=r._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<a&&(r._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{const a=r.value;if(a.length<=t.maximum)return;const c=Ob(a);r.issues.push({origin:c,code:"too_big",maximum:t.maximum,inclusive:!0,input:a,inst:e,continue:!t.abort})}}),L8=ye("$ZodCheckMinLength",(e,t)=>{var n;Qn.init(e,t),(n=e._zod.def).when??(n.when=r=>{const a=r.value;return!vd(a)&&a.length!==void 0}),e._zod.onattach.push(r=>{const a=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>a&&(r._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{const a=r.value;if(a.length>=t.minimum)return;const c=Ob(a);r.issues.push({origin:c,code:"too_small",minimum:t.minimum,inclusive:!0,input:a,inst:e,continue:!t.abort})}}),j8=ye("$ZodCheckLengthEquals",(e,t)=>{var n;Qn.init(e,t),(n=e._zod.def).when??(n.when=r=>{const a=r.value;return!vd(a)&&a.length!==void 0}),e._zod.onattach.push(r=>{const a=r._zod.bag;a.minimum=t.length,a.maximum=t.length,a.length=t.length}),e._zod.check=r=>{const a=r.value,i=a.length;if(i===t.length)return;const c=Ob(a),u=i>t.length;r.issues.push({origin:c,...u?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),Mm=ye("$ZodCheckStringFormat",(e,t)=>{var n,r;Qn.init(e,t),e._zod.onattach.push(a=>{const i=a._zod.bag;i.format=t.format,t.pattern&&(i.patterns??(i.patterns=new Set),i.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=a=>{t.pattern.lastIndex=0,!t.pattern.test(a.value)&&a.issues.push({origin:"string",code:"invalid_format",format:t.format,input:a.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),$8=ye("$ZodCheckRegex",(e,t)=>{Mm.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),U8=ye("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=A8),Mm.init(e,t)}),z8=ye("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=I8),Mm.init(e,t)}),V8=ye("$ZodCheckIncludes",(e,t)=>{Qn.init(e,t);const n=dl(t.includes),r=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(a=>{const i=a._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(r)}),e._zod.check=a=>{a.value.includes(t.includes,t.position)||a.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:a.value,inst:e,continue:!t.abort})}}),F8=ye("$ZodCheckStartsWith",(e,t)=>{Qn.init(e,t);const n=new RegExp(`^${dl(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const a=r._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(n)}),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),B8=ye("$ZodCheckEndsWith",(e,t)=>{Qn.init(e,t);const n=new RegExp(`.*${dl(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const a=r._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(n)}),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}}),q8=ye("$ZodCheckMimeType",(e,t)=>{Qn.init(e,t);const n=new Set(t.mime);e._zod.onattach.push(r=>{r._zod.bag.mime=t.mime}),e._zod.check=r=>{n.has(r.value.type)||r.issues.push({code:"invalid_value",values:t.mime,input:r.value.type,inst:e,continue:!t.abort})}}),H8=ye("$ZodCheckOverwrite",(e,t)=>{Qn.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class G8{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const r=t.split(`
|
|
11
|
-
`).filter(c=>c),a=Math.min(...r.map(c=>c.length-c.trimStart().length)),i=r.map(c=>c.slice(a)).map(c=>" ".repeat(this.indent*2)+c);for(const c of i)this.content.push(c)}compile(){const t=Function,n=this?.args,a=[...(this?.content??[""]).map(i=>` ${i}`)];return new t(...n,a.join(`
|
|
12
|
-
`))}}const Z8={major:4,minor:3,patch:6},Ut=ye("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Z8;const r=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&r.unshift(e);for(const a of r)for(const i of a._zod.onattach)i(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const a=(c,u,d)=>{let f=Wc(c),m;for(const p of u){if(p._zod.def.when){if(!p._zod.def.when(c))continue}else if(f)continue;const g=c.issues.length,y=p._zod.check(c);if(y instanceof Promise&&d?.async===!1)throw new tl;if(m||y instanceof Promise)m=(m??Promise.resolve()).then(async()=>{await y,c.issues.length!==g&&(f||(f=Wc(c,g)))});else{if(c.issues.length===g)continue;f||(f=Wc(c,g))}}return m?m.then(()=>c):c},i=(c,u,d)=>{if(Wc(c))return c.aborted=!0,c;const f=a(u,r,d);if(f instanceof Promise){if(d.async===!1)throw new tl;return f.then(m=>e._zod.parse(m,d))}return e._zod.parse(f,d)};e._zod.run=(c,u)=>{if(u.skipChecks)return e._zod.parse(c,u);if(u.direction==="backward"){const f=e._zod.parse({value:c.value,issues:[]},{...u,skipChecks:!0});return f instanceof Promise?f.then(m=>i(m,c,u)):i(f,c,u)}const d=e._zod.parse(c,u);if(d instanceof Promise){if(u.async===!1)throw new tl;return d.then(f=>a(f,r,u))}return a(d,r,u)}}Rt(e,"~standard",()=>({validate:a=>{try{const i=iI(e,a);return i.success?{value:i.data}:{issues:i.error?.issues}}catch{return Y$(e,a).then(c=>c.success?{value:c.data}:{issues:c.error?.issues})}},vendor:"zod",version:1}))}),Ab=ye("$ZodString",(e,t)=>{Ut.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??x8(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),Jt=ye("$ZodStringFormat",(e,t)=>{Mm.init(e,t),Ab.init(e,t)}),K8=ye("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=f8),Jt.init(e,t)}),W8=ye("$ZodUUID",(e,t)=>{if(t.version){const r={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(r===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=Jx(r))}else t.pattern??(t.pattern=Jx());Jt.init(e,t)}),Y8=ye("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=h8),Jt.init(e,t)}),Q8=ye("$ZodURL",(e,t)=>{Jt.init(e,t),e._zod.check=n=>{try{const r=n.value.trim(),a=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(a.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(a.protocol.endsWith(":")?a.protocol.slice(0,-1):a.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=a.href:n.value=r;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),X8=ye("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=m8()),Jt.init(e,t)}),J8=ye("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=u8),Jt.init(e,t)}),e9=ye("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=a8),Jt.init(e,t)}),t9=ye("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=s8),Jt.init(e,t)}),n9=ye("$ZodULID",(e,t)=>{t.pattern??(t.pattern=i8),Jt.init(e,t)}),r9=ye("$ZodXID",(e,t)=>{t.pattern??(t.pattern=c8),Jt.init(e,t)}),o9=ye("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=l8),Jt.init(e,t)}),a9=ye("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=R8(t)),Jt.init(e,t)}),s9=ye("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=S8),Jt.init(e,t)}),i9=ye("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=E8(t)),Jt.init(e,t)}),c9=ye("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=d8),Jt.init(e,t)}),l9=ye("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=g8),Jt.init(e,t),e._zod.bag.format="ipv4"}),u9=ye("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=v8),Jt.init(e,t),e._zod.bag.format="ipv6",e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),d9=ye("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=y8),Jt.init(e,t)}),f9=ye("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=_8),Jt.init(e,t),e._zod.check=n=>{const r=n.value.split("/");try{if(r.length!==2)throw new Error;const[a,i]=r;if(!i)throw new Error;const c=Number(i);if(`${c}`!==i)throw new Error;if(c<0||c>128)throw new Error;new URL(`http://[${a}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function mI(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const h9=ye("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=b8),Jt.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{mI(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function p9(e){if(!cI.test(e))return!1;const t=e.replace(/[-_]/g,r=>r==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return mI(n)}const m9=ye("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=cI),Jt.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{p9(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),g9=ye("$ZodE164",(e,t)=>{t.pattern??(t.pattern=w8),Jt.init(e,t)});function v9(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[r]=n;if(!r)return!1;const a=JSON.parse(atob(r));return!("typ"in a&&a?.typ!=="JWT"||!a.alg||t&&(!("alg"in a)||a.alg!==t))}catch{return!1}}const y9=ye("$ZodJWT",(e,t)=>{Jt.init(e,t),e._zod.check=n=>{v9(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),gI=ye("$ZodNumber",(e,t)=>{Ut.init(e,t),e._zod.pattern=e._zod.bag.pattern??dI,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}const a=n.value;if(typeof a=="number"&&!Number.isNaN(a)&&Number.isFinite(a))return n;const i=typeof a=="number"?Number.isNaN(a)?"NaN":Number.isFinite(a)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:a,inst:e,...i?{received:i}:{}}),n}}),_9=ye("$ZodNumberFormat",(e,t)=>{N8.init(e,t),gI.init(e,t)}),b9=ye("$ZodBoolean",(e,t)=>{Ut.init(e,t),e._zod.pattern=O8,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}const a=n.value;return typeof a=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:a,inst:e}),n}}),w9=ye("$ZodNull",(e,t)=>{Ut.init(e,t),e._zod.pattern=C8,e._zod.values=new Set([null]),e._zod.parse=(n,r)=>{const a=n.value;return a===null||n.issues.push({expected:"null",code:"invalid_type",input:a,inst:e}),n}}),S9=ye("$ZodAny",(e,t)=>{Ut.init(e,t),e._zod.parse=n=>n}),E9=ye("$ZodUnknown",(e,t)=>{Ut.init(e,t),e._zod.parse=n=>n}),R9=ye("$ZodNever",(e,t)=>{Ut.init(e,t),e._zod.parse=(n,r)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function eT(e,t,n){e.issues.length&&t.issues.push(...Ri(n,e.issues)),t.value[n]=e.value}const x9=ye("$ZodArray",(e,t)=>{Ut.init(e,t),e._zod.parse=(n,r)=>{const a=n.value;if(!Array.isArray(a))return n.issues.push({expected:"array",code:"invalid_type",input:a,inst:e}),n;n.value=Array(a.length);const i=[];for(let c=0;c<a.length;c++){const u=a[c],d=t.element._zod.run({value:u,issues:[]},r);d instanceof Promise?i.push(d.then(f=>eT(f,n,c))):eT(d,n,c)}return i.length?Promise.all(i).then(()=>n):n}});function Pp(e,t,n,r,a){if(e.issues.length){if(a&&!(n in r))return;t.issues.push(...Ri(n,e.issues))}e.value===void 0?n in r&&(t.value[n]=void 0):t.value[n]=e.value}function vI(e){const t=Object.keys(e.shape);for(const r of t)if(!e.shape?.[r]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${r}": expected a Zod schema`);const n=j$(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function yI(e,t,n,r,a,i){const c=[],u=a.keySet,d=a.catchall._zod,f=d.def.type,m=d.optout==="optional";for(const p in t){if(u.has(p))continue;if(f==="never"){c.push(p);continue}const g=d.run({value:t[p],issues:[]},r);g instanceof Promise?e.push(g.then(y=>Pp(y,n,p,t,m))):Pp(g,n,p,t,m)}return c.length&&n.issues.push({code:"unrecognized_keys",keys:c,input:t,inst:i}),e.length?Promise.all(e).then(()=>n):n}const T9=ye("$ZodObject",(e,t)=>{if(Ut.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){const u=t.shape;Object.defineProperty(t,"shape",{get:()=>{const d={...u};return Object.defineProperty(t,"shape",{value:d}),d}})}const r=Om(()=>vI(t));Rt(e._zod,"propValues",()=>{const u=t.shape,d={};for(const f in u){const m=u[f]._zod;if(m.values){d[f]??(d[f]=new Set);for(const p of m.values)d[f].add(p)}}return d});const a=td,i=t.catchall;let c;e._zod.parse=(u,d)=>{c??(c=r.value);const f=u.value;if(!a(f))return u.issues.push({expected:"object",code:"invalid_type",input:f,inst:e}),u;u.value={};const m=[],p=c.shape;for(const g of c.keys){const y=p[g],w=y._zod.optout==="optional",S=y._zod.run({value:f[g],issues:[]},d);S instanceof Promise?m.push(S.then(b=>Pp(b,u,g,f,w))):Pp(S,u,g,f,w)}return i?yI(m,f,u,d,r.value,e):m.length?Promise.all(m).then(()=>u):u}}),O9=ye("$ZodObjectJIT",(e,t)=>{T9.init(e,t);const n=e._zod.parse,r=Om(()=>vI(t)),a=g=>{const y=new G8(["shape","payload","ctx"]),w=r.value,S=T=>{const O=Xx(T);return`shape[${O}]._zod.run({ value: input[${O}], issues: [] }, ctx)`};y.write("const input = payload.value;");const b=Object.create(null);let R=0;for(const T of w.keys)b[T]=`key_${R++}`;y.write("const newResult = {};");for(const T of w.keys){const O=b[T],C=Xx(T),N=g[T]?._zod?.optout==="optional";y.write(`const ${O} = ${S(T)};`),N?y.write(`
|
|
13
|
-
if (${O}.issues.length) {
|
|
14
|
-
if (${C} in input) {
|
|
15
|
-
payload.issues = payload.issues.concat(${O}.issues.map(iss => ({
|
|
16
|
-
...iss,
|
|
17
|
-
path: iss.path ? [${C}, ...iss.path] : [${C}]
|
|
18
|
-
})));
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
if (${O}.value === undefined) {
|
|
23
|
-
if (${C} in input) {
|
|
24
|
-
newResult[${C}] = undefined;
|
|
25
|
-
}
|
|
26
|
-
} else {
|
|
27
|
-
newResult[${C}] = ${O}.value;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
`):y.write(`
|
|
31
|
-
if (${O}.issues.length) {
|
|
32
|
-
payload.issues = payload.issues.concat(${O}.issues.map(iss => ({
|
|
33
|
-
...iss,
|
|
34
|
-
path: iss.path ? [${C}, ...iss.path] : [${C}]
|
|
35
|
-
})));
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
if (${O}.value === undefined) {
|
|
39
|
-
if (${C} in input) {
|
|
40
|
-
newResult[${C}] = undefined;
|
|
41
|
-
}
|
|
42
|
-
} else {
|
|
43
|
-
newResult[${C}] = ${O}.value;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
`)}y.write("payload.value = newResult;"),y.write("return payload;");const E=y.compile();return(T,O)=>E(g,T,O)};let i;const c=td,u=!tI.jitless,f=u&&D$.value,m=t.catchall;let p;e._zod.parse=(g,y)=>{p??(p=r.value);const w=g.value;return c(w)?u&&f&&y?.async===!1&&y.jitless!==!0?(i||(i=a(t.shape)),g=i(g,y),m?yI([],w,g,y,p,e):g):n(g,y):(g.issues.push({expected:"object",code:"invalid_type",input:w,inst:e}),g)}});function tT(e,t,n,r){for(const i of e)if(i.issues.length===0)return t.value=i.value,t;const a=e.filter(i=>!Wc(i));return a.length===1?(t.value=a[0].value,a[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(i=>i.issues.map(c=>Ds(c,r,Ps())))}),t)}const _I=ye("$ZodUnion",(e,t)=>{Ut.init(e,t),Rt(e._zod,"optin",()=>t.options.some(a=>a._zod.optin==="optional")?"optional":void 0),Rt(e._zod,"optout",()=>t.options.some(a=>a._zod.optout==="optional")?"optional":void 0),Rt(e._zod,"values",()=>{if(t.options.every(a=>a._zod.values))return new Set(t.options.flatMap(a=>Array.from(a._zod.values)))}),Rt(e._zod,"pattern",()=>{if(t.options.every(a=>a._zod.pattern)){const a=t.options.map(i=>i._zod.pattern);return new RegExp(`^(${a.map(i=>Tb(i.source)).join("|")})$`)}});const n=t.options.length===1,r=t.options[0]._zod.run;e._zod.parse=(a,i)=>{if(n)return r(a,i);let c=!1;const u=[];for(const d of t.options){const f=d._zod.run({value:a.value,issues:[]},i);if(f instanceof Promise)u.push(f),c=!0;else{if(f.issues.length===0)return f;u.push(f)}}return c?Promise.all(u).then(d=>tT(d,a,e,i)):tT(u,a,e,i)}}),C9=ye("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,_I.init(e,t);const n=e._zod.parse;Rt(e._zod,"propValues",()=>{const a={};for(const i of t.options){const c=i._zod.propValues;if(!c||Object.keys(c).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(i)}"`);for(const[u,d]of Object.entries(c)){a[u]||(a[u]=new Set);for(const f of d)a[u].add(f)}}return a});const r=Om(()=>{const a=t.options,i=new Map;for(const c of a){const u=c._zod.propValues?.[t.discriminator];if(!u||u.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(c)}"`);for(const d of u){if(i.has(d))throw new Error(`Duplicate discriminator value "${String(d)}"`);i.set(d,c)}}return i});e._zod.parse=(a,i)=>{const c=a.value;if(!td(c))return a.issues.push({code:"invalid_type",expected:"object",input:c,inst:e}),a;const u=r.value.get(c?.[t.discriminator]);return u?u._zod.run(a,i):t.unionFallback?n(a,i):(a.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:c,path:[t.discriminator],inst:e}),a)}}),A9=ye("$ZodIntersection",(e,t)=>{Ut.init(e,t),e._zod.parse=(n,r)=>{const a=n.value,i=t.left._zod.run({value:a,issues:[]},r),c=t.right._zod.run({value:a,issues:[]},r);return i instanceof Promise||c instanceof Promise?Promise.all([i,c]).then(([d,f])=>nT(n,d,f)):nT(n,i,c)}});function i_(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(ul(e)&&ul(t)){const n=Object.keys(t),r=Object.keys(e).filter(i=>n.indexOf(i)!==-1),a={...e,...t};for(const i of r){const c=i_(e[i],t[i]);if(!c.valid)return{valid:!1,mergeErrorPath:[i,...c.mergeErrorPath]};a[i]=c.data}return{valid:!0,data:a}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let r=0;r<e.length;r++){const a=e[r],i=t[r],c=i_(a,i);if(!c.valid)return{valid:!1,mergeErrorPath:[r,...c.mergeErrorPath]};n.push(c.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function nT(e,t,n){const r=new Map;let a;for(const u of t.issues)if(u.code==="unrecognized_keys"){a??(a=u);for(const d of u.keys)r.has(d)||r.set(d,{}),r.get(d).l=!0}else e.issues.push(u);for(const u of n.issues)if(u.code==="unrecognized_keys")for(const d of u.keys)r.has(d)||r.set(d,{}),r.get(d).r=!0;else e.issues.push(u);const i=[...r].filter(([,u])=>u.l&&u.r).map(([u])=>u);if(i.length&&a&&e.issues.push({...a,keys:i}),Wc(e))return e;const c=i_(t.value,n.value);if(!c.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(c.mergeErrorPath)}`);return e.value=c.data,e}const I9=ye("$ZodTuple",(e,t)=>{Ut.init(e,t);const n=t.items;e._zod.parse=(r,a)=>{const i=r.value;if(!Array.isArray(i))return r.issues.push({input:i,inst:e,expected:"tuple",code:"invalid_type"}),r;r.value=[];const c=[],u=[...n].reverse().findIndex(m=>m._zod.optin!=="optional"),d=u===-1?0:n.length-u;if(!t.rest){const m=i.length>n.length,p=i.length<d-1;if(m||p)return r.issues.push({...m?{code:"too_big",maximum:n.length,inclusive:!0}:{code:"too_small",minimum:n.length},input:i,inst:e,origin:"array"}),r}let f=-1;for(const m of n){if(f++,f>=i.length&&f>=d)continue;const p=m._zod.run({value:i[f],issues:[]},a);p instanceof Promise?c.push(p.then(g=>sh(g,r,f))):sh(p,r,f)}if(t.rest){const m=i.slice(n.length);for(const p of m){f++;const g=t.rest._zod.run({value:p,issues:[]},a);g instanceof Promise?c.push(g.then(y=>sh(y,r,f))):sh(g,r,f)}}return c.length?Promise.all(c).then(()=>r):r}});function sh(e,t,n){e.issues.length&&t.issues.push(...Ri(n,e.issues)),t.value[n]=e.value}const k9=ye("$ZodRecord",(e,t)=>{Ut.init(e,t),e._zod.parse=(n,r)=>{const a=n.value;if(!ul(a))return n.issues.push({expected:"record",code:"invalid_type",input:a,inst:e}),n;const i=[],c=t.keyType._zod.values;if(c){n.value={};const u=new Set;for(const f of c)if(typeof f=="string"||typeof f=="number"||typeof f=="symbol"){u.add(typeof f=="number"?f.toString():f);const m=t.valueType._zod.run({value:a[f],issues:[]},r);m instanceof Promise?i.push(m.then(p=>{p.issues.length&&n.issues.push(...Ri(f,p.issues)),n.value[f]=p.value})):(m.issues.length&&n.issues.push(...Ri(f,m.issues)),n.value[f]=m.value)}let d;for(const f in a)u.has(f)||(d=d??[],d.push(f));d&&d.length>0&&n.issues.push({code:"unrecognized_keys",input:a,inst:e,keys:d})}else{n.value={};for(const u of Reflect.ownKeys(a)){if(u==="__proto__")continue;let d=t.keyType._zod.run({value:u,issues:[]},r);if(d instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof u=="string"&&dI.test(u)&&d.issues.length){const p=t.keyType._zod.run({value:Number(u),issues:[]},r);if(p instanceof Promise)throw new Error("Async schemas not supported in object keys currently");p.issues.length===0&&(d=p)}if(d.issues.length){t.mode==="loose"?n.value[u]=a[u]:n.issues.push({code:"invalid_key",origin:"record",issues:d.issues.map(p=>Ds(p,r,Ps())),input:u,path:[u],inst:e});continue}const m=t.valueType._zod.run({value:a[u],issues:[]},r);m instanceof Promise?i.push(m.then(p=>{p.issues.length&&n.issues.push(...Ri(u,p.issues)),n.value[d.value]=p.value})):(m.issues.length&&n.issues.push(...Ri(u,m.issues)),n.value[d.value]=m.value)}}return i.length?Promise.all(i).then(()=>n):n}}),N9=ye("$ZodEnum",(e,t)=>{Ut.init(e,t);const n=nI(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=new RegExp(`^(${n.filter(a=>L$.has(typeof a)).map(a=>typeof a=="string"?dl(a):a.toString()).join("|")})$`),e._zod.parse=(a,i)=>{const c=a.value;return r.has(c)||a.issues.push({code:"invalid_value",values:n,input:c,inst:e}),a}}),M9=ye("$ZodLiteral",(e,t)=>{if(Ut.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");const n=new Set(t.values);e._zod.values=n,e._zod.pattern=new RegExp(`^(${t.values.map(r=>typeof r=="string"?dl(r):r?dl(r.toString()):String(r)).join("|")})$`),e._zod.parse=(r,a)=>{const i=r.value;return n.has(i)||r.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),r}}),P9=ye("$ZodFile",(e,t)=>{Ut.init(e,t),e._zod.parse=(n,r)=>{const a=n.value;return a instanceof File||n.issues.push({expected:"file",code:"invalid_type",input:a,inst:e}),n}}),D9=ye("$ZodTransform",(e,t)=>{Ut.init(e,t),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new eI(e.constructor.name);const a=t.transform(n.value,n);if(r.async)return(a instanceof Promise?a:Promise.resolve(a)).then(c=>(n.value=c,n));if(a instanceof Promise)throw new tl;return n.value=a,n}});function rT(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const bI=ye("$ZodOptional",(e,t)=>{Ut.init(e,t),e._zod.optin="optional",e._zod.optout="optional",Rt(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),Rt(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${Tb(n.source)})?$`):void 0}),e._zod.parse=(n,r)=>{if(t.innerType._zod.optin==="optional"){const a=t.innerType._zod.run(n,r);return a instanceof Promise?a.then(i=>rT(i,n.value)):rT(a,n.value)}return n.value===void 0?n:t.innerType._zod.run(n,r)}}),L9=ye("$ZodExactOptional",(e,t)=>{bI.init(e,t),Rt(e._zod,"values",()=>t.innerType._zod.values),Rt(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(n,r)=>t.innerType._zod.run(n,r)}),j9=ye("$ZodNullable",(e,t)=>{Ut.init(e,t),Rt(e._zod,"optin",()=>t.innerType._zod.optin),Rt(e._zod,"optout",()=>t.innerType._zod.optout),Rt(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${Tb(n.source)}|null)$`):void 0}),Rt(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,r)=>n.value===null?n:t.innerType._zod.run(n,r)}),$9=ye("$ZodDefault",(e,t)=>{Ut.init(e,t),e._zod.optin="optional",Rt(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);if(n.value===void 0)return n.value=t.defaultValue,n;const a=t.innerType._zod.run(n,r);return a instanceof Promise?a.then(i=>oT(i,t)):oT(a,t)}});function oT(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const U9=ye("$ZodPrefault",(e,t)=>{Ut.init(e,t),e._zod.optin="optional",Rt(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>(r.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,r))}),z9=ye("$ZodNonOptional",(e,t)=>{Ut.init(e,t),Rt(e._zod,"values",()=>{const n=t.innerType._zod.values;return n?new Set([...n].filter(r=>r!==void 0)):void 0}),e._zod.parse=(n,r)=>{const a=t.innerType._zod.run(n,r);return a instanceof Promise?a.then(i=>aT(i,e)):aT(a,e)}});function aT(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const V9=ye("$ZodCatch",(e,t)=>{Ut.init(e,t),Rt(e._zod,"optin",()=>t.innerType._zod.optin),Rt(e._zod,"optout",()=>t.innerType._zod.optout),Rt(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const a=t.innerType._zod.run(n,r);return a instanceof Promise?a.then(i=>(n.value=i.value,i.issues.length&&(n.value=t.catchValue({...n,error:{issues:i.issues.map(c=>Ds(c,r,Ps()))},input:n.value}),n.issues=[]),n)):(n.value=a.value,a.issues.length&&(n.value=t.catchValue({...n,error:{issues:a.issues.map(i=>Ds(i,r,Ps()))},input:n.value}),n.issues=[]),n)}}),F9=ye("$ZodPipe",(e,t)=>{Ut.init(e,t),Rt(e._zod,"values",()=>t.in._zod.values),Rt(e._zod,"optin",()=>t.in._zod.optin),Rt(e._zod,"optout",()=>t.out._zod.optout),Rt(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,r)=>{if(r.direction==="backward"){const i=t.out._zod.run(n,r);return i instanceof Promise?i.then(c=>ih(c,t.in,r)):ih(i,t.in,r)}const a=t.in._zod.run(n,r);return a instanceof Promise?a.then(i=>ih(i,t.out,r)):ih(a,t.out,r)}});function ih(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}const B9=ye("$ZodReadonly",(e,t)=>{Ut.init(e,t),Rt(e._zod,"propValues",()=>t.innerType._zod.propValues),Rt(e._zod,"values",()=>t.innerType._zod.values),Rt(e._zod,"optin",()=>t.innerType?._zod?.optin),Rt(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const a=t.innerType._zod.run(n,r);return a instanceof Promise?a.then(sT):sT(a)}});function sT(e){return e.value=Object.freeze(e.value),e}const q9=ye("$ZodLazy",(e,t)=>{Ut.init(e,t),Rt(e._zod,"innerType",()=>t.getter()),Rt(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),Rt(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),Rt(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),Rt(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(n,r)=>e._zod.innerType._zod.run(n,r)}),H9=ye("$ZodCustom",(e,t)=>{Qn.init(e,t),Ut.init(e,t),e._zod.parse=(n,r)=>n,e._zod.check=n=>{const r=n.value,a=t.fn(r);if(a instanceof Promise)return a.then(i=>iT(i,n,r,e));iT(a,n,r,e)}});function iT(e,t,n,r){if(!e){const a={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(a.params=r._zod.def.params),t.issues.push(nd(a))}}var cT;class G9{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){const r=n[0];return this._map.set(t,r),r&&typeof r=="object"&&"id"in r&&this._idmap.set(r.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){const n=t._zod.parent;if(n){const r={...this.get(n)??{}};delete r.id;const a={...r,...this._map.get(t)};return Object.keys(a).length?a:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function Z9(){return new G9}(cT=globalThis).__zod_globalRegistry??(cT.__zod_globalRegistry=Z9());const Mu=globalThis.__zod_globalRegistry;function K9(e,t){return new e({type:"string",...je(t)})}function W9(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...je(t)})}function lT(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...je(t)})}function Y9(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...je(t)})}function Q9(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...je(t)})}function X9(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...je(t)})}function J9(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...je(t)})}function wI(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...je(t)})}function eU(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...je(t)})}function tU(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...je(t)})}function nU(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...je(t)})}function rU(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...je(t)})}function oU(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...je(t)})}function aU(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...je(t)})}function sU(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...je(t)})}function iU(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...je(t)})}function cU(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...je(t)})}function lU(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...je(t)})}function uU(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...je(t)})}function dU(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...je(t)})}function fU(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...je(t)})}function hU(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...je(t)})}function pU(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...je(t)})}function mU(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...je(t)})}function gU(e,t){return new e({type:"string",format:"date",check:"string_format",...je(t)})}function vU(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...je(t)})}function yU(e,t){return new e({type:"string",format:"duration",check:"string_format",...je(t)})}function _U(e,t){return new e({type:"number",checks:[],...je(t)})}function bU(e,t){return new e({type:"number",coerce:!0,checks:[],...je(t)})}function wU(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...je(t)})}function SU(e,t){return new e({type:"boolean",...je(t)})}function EU(e,t){return new e({type:"boolean",coerce:!0,...je(t)})}function RU(e,t){return new e({type:"null",...je(t)})}function xU(e){return new e({type:"any"})}function TU(e){return new e({type:"unknown"})}function OU(e,t){return new e({type:"never",...je(t)})}function uT(e,t){return new hI({check:"less_than",...je(t),value:e,inclusive:!1})}function Gy(e,t){return new hI({check:"less_than",...je(t),value:e,inclusive:!0})}function dT(e,t){return new pI({check:"greater_than",...je(t),value:e,inclusive:!1})}function Zy(e,t){return new pI({check:"greater_than",...je(t),value:e,inclusive:!0})}function fT(e,t){return new k8({check:"multiple_of",...je(t),value:e})}function CU(e,t){return new M8({check:"max_size",...je(t),maximum:e})}function AU(e,t){return new P8({check:"min_size",...je(t),minimum:e})}function SI(e,t){return new D8({check:"max_length",...je(t),maximum:e})}function Dp(e,t){return new L8({check:"min_length",...je(t),minimum:e})}function EI(e,t){return new j8({check:"length_equals",...je(t),length:e})}function IU(e,t){return new $8({check:"string_format",format:"regex",...je(t),pattern:e})}function kU(e){return new U8({check:"string_format",format:"lowercase",...je(e)})}function NU(e){return new z8({check:"string_format",format:"uppercase",...je(e)})}function MU(e,t){return new V8({check:"string_format",format:"includes",...je(t),includes:e})}function PU(e,t){return new F8({check:"string_format",format:"starts_with",...je(t),prefix:e})}function DU(e,t){return new B8({check:"string_format",format:"ends_with",...je(t),suffix:e})}function LU(e,t){return new q8({check:"mime_type",mime:e,...je(t)})}function Sl(e){return new H8({check:"overwrite",tx:e})}function jU(e){return Sl(t=>t.normalize(e))}function $U(){return Sl(e=>e.trim())}function UU(){return Sl(e=>e.toLowerCase())}function zU(){return Sl(e=>e.toUpperCase())}function VU(){return Sl(e=>P$(e))}function FU(e,t,n){return new e({type:"array",element:t,...je(n)})}function BU(e,t){return new e({type:"file",...je(t)})}function qU(e,t,n){const r=je(n);return r.abort??(r.abort=!0),new e({type:"custom",check:"custom",fn:t,...r})}function HU(e,t,n){return new e({type:"custom",check:"custom",fn:t,...je(n)})}function GU(e){const t=ZU(n=>(n.addIssue=r=>{if(typeof r=="string")n.issues.push(nd(r,n.value,t._zod.def));else{const a=r;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=n.value),a.inst??(a.inst=t),a.continue??(a.continue=!t._zod.def.abort),n.issues.push(nd(a))}},e(n.value,n)));return t}function ZU(e,t){const n=new Qn({check:"custom",...je(t)});return n._zod.check=e,n}function Lp(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??Mu,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function Gt(e,t,n={path:[],schemaPath:[]}){var r;const a=e._zod.def,i=t.seen.get(e);if(i)return i.count++,n.schemaPath.includes(e)&&(i.cycle=n.path),i.schema;const c={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,c);const u=e._zod.toJSONSchema?.();if(u)c.schema=u;else{const m={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,c.schema,m);else{const g=c.schema,y=t.processors[a.type];if(!y)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${a.type}`);y(e,t,g,m)}const p=e._zod.parent;p&&(c.ref||(c.ref=p),Gt(p,t,m),t.seen.get(p).isParent=!0)}const d=t.metadataRegistry.get(e);return d&&Object.assign(c.schema,d),t.io==="input"&&lr(e)&&(delete c.schema.examples,delete c.schema.default),t.io==="input"&&c.schema._prefault&&((r=c.schema).default??(r.default=c.schema._prefault)),delete c.schema._prefault,t.seen.get(e).schema}function jp(e,t){const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=new Map;for(const c of e.seen.entries()){const u=e.metadataRegistry.get(c[0])?.id;if(u){const d=r.get(u);if(d&&d!==c[0])throw new Error(`Duplicate schema id "${u}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(u,c[0])}}const a=c=>{const u=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const p=e.external.registry.get(c[0])?.id,g=e.external.uri??(w=>w);if(p)return{ref:g(p)};const y=c[1].defId??c[1].schema.id??`schema${e.counter++}`;return c[1].defId=y,{defId:y,ref:`${g("__shared")}#/${u}/${y}`}}if(c[1]===n)return{ref:"#"};const f=`#/${u}/`,m=c[1].schema.id??`__schema${e.counter++}`;return{defId:m,ref:f+m}},i=c=>{if(c[1].schema.$ref)return;const u=c[1],{ref:d,defId:f}=a(c);u.def={...u.schema},f&&(u.defId=f);const m=u.schema;for(const p in m)delete m[p];m.$ref=d};if(e.cycles==="throw")for(const c of e.seen.entries()){const u=c[1];if(u.cycle)throw new Error(`Cycle detected: #/${u.cycle?.join("/")}/<root>
|
|
47
|
-
|
|
48
|
-
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const c of e.seen.entries()){const u=c[1];if(t===c[0]){i(c);continue}if(e.external){const f=e.external.registry.get(c[0])?.id;if(t!==c[0]&&f){i(c);continue}}if(e.metadataRegistry.get(c[0])?.id){i(c);continue}if(u.cycle){i(c);continue}if(u.count>1&&e.reused==="ref"){i(c);continue}}}function $p(e,t){const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=c=>{const u=e.seen.get(c);if(u.ref===null)return;const d=u.def??u.schema,f={...d},m=u.ref;if(u.ref=null,m){r(m);const g=e.seen.get(m),y=g.schema;if(y.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(d.allOf=d.allOf??[],d.allOf.push(y)):Object.assign(d,y),Object.assign(d,f),c._zod.parent===m)for(const S in d)S==="$ref"||S==="allOf"||S in f||delete d[S];if(y.$ref&&g.def)for(const S in d)S==="$ref"||S==="allOf"||S in g.def&&JSON.stringify(d[S])===JSON.stringify(g.def[S])&&delete d[S]}const p=c._zod.parent;if(p&&p!==m){r(p);const g=e.seen.get(p);if(g?.schema.$ref&&(d.$ref=g.schema.$ref,g.def))for(const y in d)y==="$ref"||y==="allOf"||y in g.def&&JSON.stringify(d[y])===JSON.stringify(g.def[y])&&delete d[y]}e.override({zodSchema:c,jsonSchema:d,path:u.path??[]})};for(const c of[...e.seen.entries()].reverse())r(c[0]);const a={};if(e.target==="draft-2020-12"?a.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?a.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?a.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){const c=e.external.registry.get(t)?.id;if(!c)throw new Error("Schema is missing an `id` property");a.$id=e.external.uri(c)}Object.assign(a,n.def??n.schema);const i=e.external?.defs??{};for(const c of e.seen.entries()){const u=c[1];u.def&&u.defId&&(i[u.defId]=u.def)}e.external||Object.keys(i).length>0&&(e.target==="draft-2020-12"?a.$defs=i:a.definitions=i);try{const c=JSON.parse(JSON.stringify(a));return Object.defineProperty(c,"~standard",{value:{...t["~standard"],jsonSchema:{input:Up(t,"input",e.processors),output:Up(t,"output",e.processors)}},enumerable:!1,writable:!1}),c}catch{throw new Error("Error converting schema to JSON.")}}function lr(e,t){const n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);const r=e._zod.def;if(r.type==="transform")return!0;if(r.type==="array")return lr(r.element,n);if(r.type==="set")return lr(r.valueType,n);if(r.type==="lazy")return lr(r.getter(),n);if(r.type==="promise"||r.type==="optional"||r.type==="nonoptional"||r.type==="nullable"||r.type==="readonly"||r.type==="default"||r.type==="prefault")return lr(r.innerType,n);if(r.type==="intersection")return lr(r.left,n)||lr(r.right,n);if(r.type==="record"||r.type==="map")return lr(r.keyType,n)||lr(r.valueType,n);if(r.type==="pipe")return lr(r.in,n)||lr(r.out,n);if(r.type==="object"){for(const a in r.shape)if(lr(r.shape[a],n))return!0;return!1}if(r.type==="union"){for(const a of r.options)if(lr(a,n))return!0;return!1}if(r.type==="tuple"){for(const a of r.items)if(lr(a,n))return!0;return!!(r.rest&&lr(r.rest,n))}return!1}const KU=(e,t={})=>n=>{const r=Lp({...n,processors:t});return Gt(e,r),jp(r,e),$p(r,e)},Up=(e,t,n={})=>r=>{const{libraryOptions:a,target:i}=r??{},c=Lp({...a??{},target:i,io:t,processors:n});return Gt(e,c),jp(c,e),$p(c,e)},WU={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},RI=(e,t,n,r)=>{const a=n;a.type="string";const{minimum:i,maximum:c,format:u,patterns:d,contentEncoding:f}=e._zod.bag;if(typeof i=="number"&&(a.minLength=i),typeof c=="number"&&(a.maxLength=c),u&&(a.format=WU[u]??u,a.format===""&&delete a.format,u==="time"&&delete a.format),f&&(a.contentEncoding=f),d&&d.size>0){const m=[...d];m.length===1?a.pattern=m[0].source:m.length>1&&(a.allOf=[...m.map(p=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:p.source}))])}},xI=(e,t,n,r)=>{const a=n,{minimum:i,maximum:c,format:u,multipleOf:d,exclusiveMaximum:f,exclusiveMinimum:m}=e._zod.bag;typeof u=="string"&&u.includes("int")?a.type="integer":a.type="number",typeof m=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(a.minimum=m,a.exclusiveMinimum=!0):a.exclusiveMinimum=m),typeof i=="number"&&(a.minimum=i,typeof m=="number"&&t.target!=="draft-04"&&(m>=i?delete a.minimum:delete a.exclusiveMinimum)),typeof f=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(a.maximum=f,a.exclusiveMaximum=!0):a.exclusiveMaximum=f),typeof c=="number"&&(a.maximum=c,typeof f=="number"&&t.target!=="draft-04"&&(f<=c?delete a.maximum:delete a.exclusiveMaximum)),typeof d=="number"&&(a.multipleOf=d)},TI=(e,t,n,r)=>{n.type="boolean"},YU=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},QU=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},OI=(e,t,n,r)=>{t.target==="openapi-3.0"?(n.type="string",n.nullable=!0,n.enum=[null]):n.type="null"},XU=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},JU=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},CI=(e,t,n,r)=>{n.not={}},AI=(e,t,n,r)=>{},II=(e,t,n,r)=>{},e7=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},kI=(e,t,n,r)=>{const a=e._zod.def,i=nI(a.entries);i.every(c=>typeof c=="number")&&(n.type="number"),i.every(c=>typeof c=="string")&&(n.type="string"),n.enum=i},NI=(e,t,n,r)=>{const a=e._zod.def,i=[];for(const c of a.values)if(c===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof c=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");i.push(Number(c))}else i.push(c);if(i.length!==0)if(i.length===1){const c=i[0];n.type=c===null?"null":typeof c,t.target==="draft-04"||t.target==="openapi-3.0"?n.enum=[c]:n.const=c}else i.every(c=>typeof c=="number")&&(n.type="number"),i.every(c=>typeof c=="string")&&(n.type="string"),i.every(c=>typeof c=="boolean")&&(n.type="boolean"),i.every(c=>c===null)&&(n.type="null"),n.enum=i},t7=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},n7=(e,t,n,r)=>{const a=n,i=e._zod.pattern;if(!i)throw new Error("Pattern not found in template literal");a.type="string",a.pattern=i.source},MI=(e,t,n,r)=>{const a=n,i={type:"string",format:"binary",contentEncoding:"binary"},{minimum:c,maximum:u,mime:d}=e._zod.bag;c!==void 0&&(i.minLength=c),u!==void 0&&(i.maxLength=u),d?d.length===1?(i.contentMediaType=d[0],Object.assign(a,i)):(Object.assign(a,i),a.anyOf=d.map(f=>({contentMediaType:f}))):Object.assign(a,i)},r7=(e,t,n,r)=>{n.type="boolean"},PI=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},o7=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},DI=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},a7=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},s7=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},LI=(e,t,n,r)=>{const a=n,i=e._zod.def,{minimum:c,maximum:u}=e._zod.bag;typeof c=="number"&&(a.minItems=c),typeof u=="number"&&(a.maxItems=u),a.type="array",a.items=Gt(i.element,t,{...r,path:[...r.path,"items"]})},jI=(e,t,n,r)=>{const a=n,i=e._zod.def;a.type="object",a.properties={};const c=i.shape;for(const f in c)a.properties[f]=Gt(c[f],t,{...r,path:[...r.path,"properties",f]});const u=new Set(Object.keys(c)),d=new Set([...u].filter(f=>{const m=i.shape[f]._zod;return t.io==="input"?m.optin===void 0:m.optout===void 0}));d.size>0&&(a.required=Array.from(d)),i.catchall?._zod.def.type==="never"?a.additionalProperties=!1:i.catchall?i.catchall&&(a.additionalProperties=Gt(i.catchall,t,{...r,path:[...r.path,"additionalProperties"]})):t.io==="output"&&(a.additionalProperties=!1)},$I=(e,t,n,r)=>{const a=e._zod.def,i=a.inclusive===!1,c=a.options.map((u,d)=>Gt(u,t,{...r,path:[...r.path,i?"oneOf":"anyOf",d]}));i?n.oneOf=c:n.anyOf=c},UI=(e,t,n,r)=>{const a=e._zod.def,i=Gt(a.left,t,{...r,path:[...r.path,"allOf",0]}),c=Gt(a.right,t,{...r,path:[...r.path,"allOf",1]}),u=f=>"allOf"in f&&Object.keys(f).length===1,d=[...u(i)?i.allOf:[i],...u(c)?c.allOf:[c]];n.allOf=d},zI=(e,t,n,r)=>{const a=n,i=e._zod.def;a.type="array";const c=t.target==="draft-2020-12"?"prefixItems":"items",u=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",d=i.items.map((g,y)=>Gt(g,t,{...r,path:[...r.path,c,y]})),f=i.rest?Gt(i.rest,t,{...r,path:[...r.path,u,...t.target==="openapi-3.0"?[i.items.length]:[]]}):null;t.target==="draft-2020-12"?(a.prefixItems=d,f&&(a.items=f)):t.target==="openapi-3.0"?(a.items={anyOf:d},f&&a.items.anyOf.push(f),a.minItems=d.length,f||(a.maxItems=d.length)):(a.items=d,f&&(a.additionalItems=f));const{minimum:m,maximum:p}=e._zod.bag;typeof m=="number"&&(a.minItems=m),typeof p=="number"&&(a.maxItems=p)},VI=(e,t,n,r)=>{const a=n,i=e._zod.def;a.type="object";const c=i.keyType,d=c._zod.bag?.patterns;if(i.mode==="loose"&&d&&d.size>0){const m=Gt(i.valueType,t,{...r,path:[...r.path,"patternProperties","*"]});a.patternProperties={};for(const p of d)a.patternProperties[p.source]=m}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(a.propertyNames=Gt(i.keyType,t,{...r,path:[...r.path,"propertyNames"]})),a.additionalProperties=Gt(i.valueType,t,{...r,path:[...r.path,"additionalProperties"]});const f=c._zod.values;if(f){const m=[...f].filter(p=>typeof p=="string"||typeof p=="number");m.length>0&&(a.required=m)}},FI=(e,t,n,r)=>{const a=e._zod.def,i=Gt(a.innerType,t,r),c=t.seen.get(e);t.target==="openapi-3.0"?(c.ref=a.innerType,n.nullable=!0):n.anyOf=[i,{type:"null"}]},BI=(e,t,n,r)=>{const a=e._zod.def;Gt(a.innerType,t,r);const i=t.seen.get(e);i.ref=a.innerType},qI=(e,t,n,r)=>{const a=e._zod.def;Gt(a.innerType,t,r);const i=t.seen.get(e);i.ref=a.innerType,n.default=JSON.parse(JSON.stringify(a.defaultValue))},HI=(e,t,n,r)=>{const a=e._zod.def;Gt(a.innerType,t,r);const i=t.seen.get(e);i.ref=a.innerType,t.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(a.defaultValue)))},GI=(e,t,n,r)=>{const a=e._zod.def;Gt(a.innerType,t,r);const i=t.seen.get(e);i.ref=a.innerType;let c;try{c=a.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=c},ZI=(e,t,n,r)=>{const a=e._zod.def,i=t.io==="input"?a.in._zod.def.type==="transform"?a.out:a.in:a.out;Gt(i,t,r);const c=t.seen.get(e);c.ref=i},KI=(e,t,n,r)=>{const a=e._zod.def;Gt(a.innerType,t,r);const i=t.seen.get(e);i.ref=a.innerType,n.readOnly=!0},i7=(e,t,n,r)=>{const a=e._zod.def;Gt(a.innerType,t,r);const i=t.seen.get(e);i.ref=a.innerType},Ib=(e,t,n,r)=>{const a=e._zod.def;Gt(a.innerType,t,r);const i=t.seen.get(e);i.ref=a.innerType},WI=(e,t,n,r)=>{const a=e._zod.innerType;Gt(a,t,r);const i=t.seen.get(e);i.ref=a},hT={string:RI,number:xI,boolean:TI,bigint:YU,symbol:QU,null:OI,undefined:XU,void:JU,never:CI,any:AI,unknown:II,date:e7,enum:kI,literal:NI,nan:t7,template_literal:n7,file:MI,success:r7,custom:PI,function:o7,transform:DI,map:a7,set:s7,array:LI,object:jI,union:$I,intersection:UI,tuple:zI,record:VI,nullable:FI,nonoptional:BI,default:qI,prefault:HI,catch:GI,pipe:ZI,readonly:KI,promise:i7,optional:Ib,lazy:WI};function Ooe(e,t){if("_idmap"in e){const r=e,a=Lp({...t,processors:hT}),i={};for(const d of r._idmap.entries()){const[f,m]=d;Gt(m,a)}const c={},u={registry:r,uri:t?.uri,defs:i};a.external=u;for(const d of r._idmap.entries()){const[f,m]=d;jp(a,m),c[f]=$p(a,m)}if(Object.keys(i).length>0){const d=a.target==="draft-2020-12"?"$defs":"definitions";c.__shared={[d]:i}}return{schemas:c}}const n=Lp({...t,processors:hT});return Gt(e,n),jp(n,e),$p(n,e)}const c7=ye("ZodISODateTime",(e,t)=>{a9.init(e,t),nn.init(e,t)});function YI(e){return mU(c7,e)}const l7=ye("ZodISODate",(e,t)=>{s9.init(e,t),nn.init(e,t)});function u7(e){return gU(l7,e)}const d7=ye("ZodISOTime",(e,t)=>{i9.init(e,t),nn.init(e,t)});function f7(e){return vU(d7,e)}const h7=ye("ZodISODuration",(e,t)=>{c9.init(e,t),nn.init(e,t)});function p7(e){return yU(h7,e)}const m7=(e,t)=>{Cb.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>Z$(e,n)},flatten:{value:n=>G$(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,s_,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,s_,2)}},isEmpty:{get(){return e.issues.length===0}}})},mo=ye("ZodError",m7,{Parent:Error}),g7=Am(mo),v7=Im(mo),y7=km(mo),_7=Nm(mo),b7=Q$(mo),w7=X$(mo),S7=J$(mo),E7=e8(mo),R7=t8(mo),x7=n8(mo),T7=r8(mo),O7=o8(mo),Bt=ye("ZodType",(e,t)=>(Ut.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Up(e,"input"),output:Up(e,"output")}}),e.toJSONSchema=KU(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone(Fs(t,{checks:[...t.checks??[],...n.map(r=>typeof r=="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]}),{parent:!0}),e.with=e.check,e.clone=(n,r)=>Bs(e,n,r),e.brand=()=>e,e.register=((n,r)=>(n.add(e,r),e)),e.parse=(n,r)=>g7(e,n,r,{callee:e.parse}),e.safeParse=(n,r)=>y7(e,n,r),e.parseAsync=async(n,r)=>v7(e,n,r,{callee:e.parseAsync}),e.safeParseAsync=async(n,r)=>_7(e,n,r),e.spa=e.safeParseAsync,e.encode=(n,r)=>b7(e,n,r),e.decode=(n,r)=>w7(e,n,r),e.encodeAsync=async(n,r)=>S7(e,n,r),e.decodeAsync=async(n,r)=>E7(e,n,r),e.safeEncode=(n,r)=>R7(e,n,r),e.safeDecode=(n,r)=>x7(e,n,r),e.safeEncodeAsync=async(n,r)=>T7(e,n,r),e.safeDecodeAsync=async(n,r)=>O7(e,n,r),e.refine=(n,r)=>e.check(vz(n,r)),e.superRefine=n=>e.check(yz(n)),e.overwrite=n=>e.check(Sl(n)),e.optional=()=>sn(e),e.exactOptional=()=>oz(e),e.nullable=()=>vT(e),e.nullish=()=>sn(vT(e)),e.nonoptional=n=>uz(e,n),e.array=()=>ve(e),e.or=n=>gt([e,n]),e.and=n=>yd(e,n),e.transform=n=>l_(e,rk(n)),e.default=n=>iz(e,n),e.prefault=n=>lz(e,n),e.catch=n=>fz(e,n),e.pipe=n=>l_(e,n),e.readonly=()=>mz(e),e.describe=n=>{const r=e.clone();return Mu.add(r,{description:n}),r},Object.defineProperty(e,"description",{get(){return Mu.get(e)?.description},configurable:!0}),e.meta=(...n)=>{if(n.length===0)return Mu.get(e);const r=e.clone();return Mu.add(r,n[0]),r},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=n=>n(e),e)),QI=ye("_ZodString",(e,t)=>{Ab.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(r,a,i)=>RI(e,r,a);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...r)=>e.check(IU(...r)),e.includes=(...r)=>e.check(MU(...r)),e.startsWith=(...r)=>e.check(PU(...r)),e.endsWith=(...r)=>e.check(DU(...r)),e.min=(...r)=>e.check(Dp(...r)),e.max=(...r)=>e.check(SI(...r)),e.length=(...r)=>e.check(EI(...r)),e.nonempty=(...r)=>e.check(Dp(1,...r)),e.lowercase=r=>e.check(kU(r)),e.uppercase=r=>e.check(NU(r)),e.trim=()=>e.check($U()),e.normalize=(...r)=>e.check(jU(...r)),e.toLowerCase=()=>e.check(UU()),e.toUpperCase=()=>e.check(zU()),e.slugify=()=>e.check(VU())}),Pm=ye("ZodString",(e,t)=>{Ab.init(e,t),QI.init(e,t),e.email=n=>e.check(W9(C7,n)),e.url=n=>e.check(wI(XI,n)),e.jwt=n=>e.check(pU(q7,n)),e.emoji=n=>e.check(eU(I7,n)),e.guid=n=>e.check(lT(pT,n)),e.uuid=n=>e.check(Y9(ch,n)),e.uuidv4=n=>e.check(Q9(ch,n)),e.uuidv6=n=>e.check(X9(ch,n)),e.uuidv7=n=>e.check(J9(ch,n)),e.nanoid=n=>e.check(tU(k7,n)),e.guid=n=>e.check(lT(pT,n)),e.cuid=n=>e.check(nU(N7,n)),e.cuid2=n=>e.check(rU(M7,n)),e.ulid=n=>e.check(oU(P7,n)),e.base64=n=>e.check(dU(V7,n)),e.base64url=n=>e.check(fU(F7,n)),e.xid=n=>e.check(aU(D7,n)),e.ksuid=n=>e.check(sU(L7,n)),e.ipv4=n=>e.check(iU(j7,n)),e.ipv6=n=>e.check(cU($7,n)),e.cidrv4=n=>e.check(lU(U7,n)),e.cidrv6=n=>e.check(uU(z7,n)),e.e164=n=>e.check(hU(B7,n)),e.datetime=n=>e.check(YI(n)),e.date=n=>e.check(u7(n)),e.time=n=>e.check(f7(n)),e.duration=n=>e.check(p7(n))});function M(e){return K9(Pm,e)}const nn=ye("ZodStringFormat",(e,t)=>{Jt.init(e,t),QI.init(e,t)}),C7=ye("ZodEmail",(e,t)=>{Y8.init(e,t),nn.init(e,t)}),pT=ye("ZodGUID",(e,t)=>{K8.init(e,t),nn.init(e,t)}),ch=ye("ZodUUID",(e,t)=>{W8.init(e,t),nn.init(e,t)}),XI=ye("ZodURL",(e,t)=>{Q8.init(e,t),nn.init(e,t)});function A7(e){return wI(XI,e)}const I7=ye("ZodEmoji",(e,t)=>{X8.init(e,t),nn.init(e,t)}),k7=ye("ZodNanoID",(e,t)=>{J8.init(e,t),nn.init(e,t)}),N7=ye("ZodCUID",(e,t)=>{e9.init(e,t),nn.init(e,t)}),M7=ye("ZodCUID2",(e,t)=>{t9.init(e,t),nn.init(e,t)}),P7=ye("ZodULID",(e,t)=>{n9.init(e,t),nn.init(e,t)}),D7=ye("ZodXID",(e,t)=>{r9.init(e,t),nn.init(e,t)}),L7=ye("ZodKSUID",(e,t)=>{o9.init(e,t),nn.init(e,t)}),j7=ye("ZodIPv4",(e,t)=>{l9.init(e,t),nn.init(e,t)}),$7=ye("ZodIPv6",(e,t)=>{u9.init(e,t),nn.init(e,t)}),U7=ye("ZodCIDRv4",(e,t)=>{d9.init(e,t),nn.init(e,t)}),z7=ye("ZodCIDRv6",(e,t)=>{f9.init(e,t),nn.init(e,t)}),V7=ye("ZodBase64",(e,t)=>{h9.init(e,t),nn.init(e,t)}),F7=ye("ZodBase64URL",(e,t)=>{m9.init(e,t),nn.init(e,t)}),B7=ye("ZodE164",(e,t)=>{g9.init(e,t),nn.init(e,t)}),q7=ye("ZodJWT",(e,t)=>{y9.init(e,t),nn.init(e,t)}),$a=ye("ZodNumber",(e,t)=>{gI.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(r,a,i)=>xI(e,r,a),e.gt=(r,a)=>e.check(dT(r,a)),e.gte=(r,a)=>e.check(Zy(r,a)),e.min=(r,a)=>e.check(Zy(r,a)),e.lt=(r,a)=>e.check(uT(r,a)),e.lte=(r,a)=>e.check(Gy(r,a)),e.max=(r,a)=>e.check(Gy(r,a)),e.int=r=>e.check(mT(r)),e.safe=r=>e.check(mT(r)),e.positive=r=>e.check(dT(0,r)),e.nonnegative=r=>e.check(Zy(0,r)),e.negative=r=>e.check(uT(0,r)),e.nonpositive=r=>e.check(Gy(0,r)),e.multipleOf=(r,a)=>e.check(fT(r,a)),e.step=(r,a)=>e.check(fT(r,a)),e.finite=()=>e;const n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function Pe(e){return _U($a,e)}const H7=ye("ZodNumberFormat",(e,t)=>{_9.init(e,t),$a.init(e,t)});function mT(e){return wU(H7,e)}const JI=ye("ZodBoolean",(e,t)=>{b9.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,r,a)=>TI(e,n,r)});function We(e){return SU(JI,e)}const G7=ye("ZodNull",(e,t)=>{w9.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,r,a)=>OI(e,n,r)});function El(e){return RU(G7,e)}const Z7=ye("ZodAny",(e,t)=>{S9.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,r,a)=>AI()});function Gr(){return xU(Z7)}const K7=ye("ZodUnknown",(e,t)=>{E9.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,r,a)=>II()});function ot(){return TU(K7)}const W7=ye("ZodNever",(e,t)=>{R9.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,r,a)=>CI(e,n,r)});function zp(e){return OU(W7,e)}const ek=ye("ZodArray",(e,t)=>{x9.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,r,a)=>LI(e,n,r,a),e.element=t.element,e.min=(n,r)=>e.check(Dp(n,r)),e.nonempty=n=>e.check(Dp(1,n)),e.max=(n,r)=>e.check(SI(n,r)),e.length=(n,r)=>e.check(EI(n,r)),e.unwrap=()=>e.element});function ve(e,t){return FU(ek,e,t)}const Dm=ye("ZodObject",(e,t)=>{O9.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,r,a)=>jI(e,n,r,a),Rt(e,"shape",()=>t.shape),e.keyof=()=>xt(Object.keys(e._zod.def.shape)),e.catchall=n=>e.clone({...e._zod.def,catchall:n}),e.passthrough=()=>e.clone({...e._zod.def,catchall:ot()}),e.loose=()=>e.clone({...e._zod.def,catchall:ot()}),e.strict=()=>e.clone({...e._zod.def,catchall:zp()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=n=>V$(e,n),e.safeExtend=n=>F$(e,n),e.merge=n=>B$(e,n),e.pick=n=>U$(e,n),e.omit=n=>z$(e,n),e.partial=(...n)=>q$(ok,e,n[0]),e.required=(...n)=>H$(ak,e,n[0])});function re(e,t){const n={type:"object",shape:e??{},...je(t)};return new Dm(n)}function Coe(e,t){return new Dm({type:"object",shape:e,catchall:zp(),...je(t)})}function Wn(e,t){return new Dm({type:"object",shape:e,catchall:ot(),...je(t)})}const tk=ye("ZodUnion",(e,t)=>{_I.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,r,a)=>$I(e,n,r,a),e.options=t.options});function gt(e,t){return new tk({type:"union",options:e,...je(t)})}const Y7=ye("ZodDiscriminatedUnion",(e,t)=>{tk.init(e,t),C9.init(e,t)});function kb(e,t,n){return new Y7({type:"union",options:t,discriminator:e,...je(n)})}const Q7=ye("ZodIntersection",(e,t)=>{A9.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,r,a)=>UI(e,n,r,a)});function yd(e,t){return new Q7({type:"intersection",left:e,right:t})}const X7=ye("ZodTuple",(e,t)=>{I9.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,r,a)=>zI(e,n,r,a),e.rest=n=>e.clone({...e._zod.def,rest:n})});function gT(e,t,n){const r=t instanceof Ut,a=r?n:t,i=r?t:null;return new X7({type:"tuple",items:e,rest:i,...je(a)})}const nk=ye("ZodRecord",(e,t)=>{k9.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,r,a)=>VI(e,n,r,a),e.keyType=t.keyType,e.valueType=t.valueType});function lt(e,t,n){return new nk({type:"record",keyType:e,valueType:t,...je(n)})}const c_=ye("ZodEnum",(e,t)=>{N9.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(r,a,i)=>kI(e,r,a),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(r,a)=>{const i={};for(const c of r)if(n.has(c))i[c]=t.entries[c];else throw new Error(`Key ${c} not found in enum`);return new c_({...t,checks:[],...je(a),entries:i})},e.exclude=(r,a)=>{const i={...t.entries};for(const c of r)if(n.has(c))delete i[c];else throw new Error(`Key ${c} not found in enum`);return new c_({...t,checks:[],...je(a),entries:i})}});function xt(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new c_({type:"enum",entries:n,...je(t)})}const J7=ye("ZodLiteral",(e,t)=>{M9.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,r,a)=>NI(e,n,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function De(e,t){return new J7({type:"literal",values:Array.isArray(e)?e:[e],...je(t)})}const ez=ye("ZodFile",(e,t)=>{P9.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,r,a)=>MI(e,n,r),e.min=(n,r)=>e.check(AU(n,r)),e.max=(n,r)=>e.check(CU(n,r)),e.mime=(n,r)=>e.check(LU(Array.isArray(n)?n:[n],r))});function tz(e){return BU(ez,e)}const nz=ye("ZodTransform",(e,t)=>{D9.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,r,a)=>DI(e,n),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new eI(e.constructor.name);n.addIssue=i=>{if(typeof i=="string")n.issues.push(nd(i,n.value,t));else{const c=i;c.fatal&&(c.continue=!1),c.code??(c.code="custom"),c.input??(c.input=n.value),c.inst??(c.inst=e),n.issues.push(nd(c))}};const a=t.transform(n.value,n);return a instanceof Promise?a.then(i=>(n.value=i,n)):(n.value=a,n)}});function rk(e){return new nz({type:"transform",transform:e})}const ok=ye("ZodOptional",(e,t)=>{bI.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,r,a)=>Ib(e,n,r,a),e.unwrap=()=>e._zod.def.innerType});function sn(e){return new ok({type:"optional",innerType:e})}const rz=ye("ZodExactOptional",(e,t)=>{L9.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,r,a)=>Ib(e,n,r,a),e.unwrap=()=>e._zod.def.innerType});function oz(e){return new rz({type:"optional",innerType:e})}const az=ye("ZodNullable",(e,t)=>{j9.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,r,a)=>FI(e,n,r,a),e.unwrap=()=>e._zod.def.innerType});function vT(e){return new az({type:"nullable",innerType:e})}const sz=ye("ZodDefault",(e,t)=>{$9.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,r,a)=>qI(e,n,r,a),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function iz(e,t){return new sz({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():oI(t)}})}const cz=ye("ZodPrefault",(e,t)=>{U9.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,r,a)=>HI(e,n,r,a),e.unwrap=()=>e._zod.def.innerType});function lz(e,t){return new cz({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():oI(t)}})}const ak=ye("ZodNonOptional",(e,t)=>{z9.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,r,a)=>BI(e,n,r,a),e.unwrap=()=>e._zod.def.innerType});function uz(e,t){return new ak({type:"nonoptional",innerType:e,...je(t)})}const dz=ye("ZodCatch",(e,t)=>{V9.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,r,a)=>GI(e,n,r,a),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function fz(e,t){return new dz({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const hz=ye("ZodPipe",(e,t)=>{F9.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,r,a)=>ZI(e,n,r,a),e.in=t.in,e.out=t.out});function l_(e,t){return new hz({type:"pipe",in:e,out:t})}const pz=ye("ZodReadonly",(e,t)=>{B9.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,r,a)=>KI(e,n,r,a),e.unwrap=()=>e._zod.def.innerType});function mz(e){return new pz({type:"readonly",innerType:e})}const gz=ye("ZodLazy",(e,t)=>{q9.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,r,a)=>WI(e,n,r,a),e.unwrap=()=>e._zod.def.getter()});function go(e){return new gz({type:"lazy",getter:e})}const Nb=ye("ZodCustom",(e,t)=>{H9.init(e,t),Bt.init(e,t),e._zod.processJSONSchema=(n,r,a)=>PI(e,n)});function sk(e,t){return qU(Nb,e??(()=>!0),t)}function vz(e,t={}){return HU(Nb,e,t)}function yz(e){return GU(e)}function Aoe(e,t={}){const n=new Nb({type:"custom",check:"custom",fn:r=>r instanceof e,abort:!0,...je(t)});return n._zod.bag.Class=e,n._zod.check=r=>{r.value instanceof e||r.issues.push({code:"invalid_type",expected:e.name,input:r.value,inst:n,path:[...n._zod.def.path??[]]})},n}function Mb(e,t){return l_(rk(e),t)}const _z={custom:"custom"};function ik(e){return bU($a,e)}function yT(e){return EU(JI,e)}function Ce(...e){return JA(Eb(e))}function bz(e){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)}function hn({error:e,localization:t,localizeErrors:n=!0}){var r;const a="Request failed";if(!n)return e?.message?e.message:(r=e?.error)!=null&&r.message?e.error.message:a;if(typeof e=="string"&&t?.[e])return t[e];if(e?.error){if(e.error.code){const i=e.error.code;if(t?.[i])return t[i]}return e.error.message||e.error.code||e.error.statusText||t?.REQUEST_FAILED}return e?.message||t?.REQUEST_FAILED||a}function Ui(e){return typeof window<"u"?new URLSearchParams(window.location.search).get(e):null}function u_(e,t){for(const n in e)if(e[n]===t)return n}function rd(e,t){let n=M().min(1,{message:t?.PASSWORD_REQUIRED});return e?.minLength&&(n=n.min(e.minLength,{message:t?.PASSWORD_TOO_SHORT})),e?.maxLength&&(n=n.max(e.maxLength,{message:t?.PASSWORD_TOO_LONG})),e?.regex&&(n=n.regex(e.regex,{message:t?.INVALID_PASSWORD})),n}var wz={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"},Sz={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"},Ez={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."},Rz={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."},xz={VERIFICATION_FAILED:"Captcha verification failed",MISSING_RESPONSE:"Missing CAPTCHA response",UNKNOWN_ERROR:"Something went wrong"},Tz={MISSING_SECRET_KEY:"Missing secret key",SERVICE_UNAVAILABLE:"CAPTCHA service unavailable"},Oz={...xz,...Tz},Cz={OTP_EXPIRED:"otp expired",INVALID_OTP:"Invalid OTP",INVALID_EMAIL:"Invalid email",USER_NOT_FOUND:"User not found",TOO_MANY_ATTEMPTS:"Too many attempts"},Az={INVALID_OAUTH_CONFIGURATION:"Invalid OAuth configuration"},Iz={PASSWORD_COMPROMISED:"The password you entered has been compromised. Please choose a different password."},kz={INVALID_SESSION_TOKEN:"Invalid session token"},Nz={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"},Mz={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"},Pz={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"},Dz={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"},Lz={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"},jz={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"},$z={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"},Uz={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",...Rz,...wz,...Sz,...Ez,...Oz,...Cz,...Az,...Iz,...kz,...Nz,...Mz,...Pz,...Dz,...Lz,...jz,...$z},zz={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"},_T={SETTINGS:"settings",SECURITY:"security",TEAMS:"teams",API_KEYS:"api-keys",ORGANIZATIONS:"organizations"},bT={SETTINGS:"settings",MEMBERS:"members",TEAMS:"teams",API_KEYS:"api-keys"};function Vz(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const Fz=e=>{switch(e){case"success":return Hz;case"info":return Zz;case"warning":return Gz;case"error":return Kz;default:return null}},Bz=Array(12).fill(0),qz=({visible:e,className:t})=>le.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},le.createElement("div",{className:"sonner-spinner"},Bz.map((n,r)=>le.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),Hz=le.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},le.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),Gz=le.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},le.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),Zz=le.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},le.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),Kz=le.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},le.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),Wz=le.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},le.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),le.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),Yz=()=>{const[e,t]=le.useState(document.hidden);return le.useEffect(()=>{const n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e};let d_=1;class Qz{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)}),this.publish=t=>{this.subscribers.forEach(n=>n(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var n;const{message:r,...a}=t,i=typeof t?.id=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:d_++,c=this.toasts.find(d=>d.id===i),u=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(i)&&this.dismissedToasts.delete(i),c?this.toasts=this.toasts.map(d=>d.id===i?(this.publish({...d,...t,id:i,title:r}),{...d,...t,id:i,dismissible:u,title:r}):d):this.addToast({title:r,...a,dismissible:u,id:i}),i},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(n=>n({id:t,dismiss:!0})))):this.toasts.forEach(n=>{this.subscribers.forEach(r=>r({id:n.id,dismiss:!0}))}),t),this.message=(t,n)=>this.create({...n,message:t}),this.error=(t,n)=>this.create({...n,message:t,type:"error"}),this.success=(t,n)=>this.create({...n,type:"success",message:t}),this.info=(t,n)=>this.create({...n,type:"info",message:t}),this.warning=(t,n)=>this.create({...n,type:"warning",message:t}),this.loading=(t,n)=>this.create({...n,type:"loading",message:t}),this.promise=(t,n)=>{if(!n)return;let r;n.loading!==void 0&&(r=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const a=Promise.resolve(t instanceof Function?t():t);let i=r!==void 0,c;const u=a.then(async f=>{if(c=["resolve",f],le.isValidElement(f))i=!1,this.create({id:r,type:"default",message:f});else if(Jz(f)&&!f.ok){i=!1;const p=typeof n.error=="function"?await n.error(`HTTP error! status: ${f.status}`):n.error,g=typeof n.description=="function"?await n.description(`HTTP error! status: ${f.status}`):n.description,w=typeof p=="object"&&!le.isValidElement(p)?p:{message:p};this.create({id:r,type:"error",description:g,...w})}else if(f instanceof Error){i=!1;const p=typeof n.error=="function"?await n.error(f):n.error,g=typeof n.description=="function"?await n.description(f):n.description,w=typeof p=="object"&&!le.isValidElement(p)?p:{message:p};this.create({id:r,type:"error",description:g,...w})}else if(n.success!==void 0){i=!1;const p=typeof n.success=="function"?await n.success(f):n.success,g=typeof n.description=="function"?await n.description(f):n.description,w=typeof p=="object"&&!le.isValidElement(p)?p:{message:p};this.create({id:r,type:"success",description:g,...w})}}).catch(async f=>{if(c=["reject",f],n.error!==void 0){i=!1;const m=typeof n.error=="function"?await n.error(f):n.error,p=typeof n.description=="function"?await n.description(f):n.description,y=typeof m=="object"&&!le.isValidElement(m)?m:{message:m};this.create({id:r,type:"error",description:p,...y})}}).finally(()=>{i&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),d=()=>new Promise((f,m)=>u.then(()=>c[0]==="reject"?m(c[1]):f(c[1])).catch(m));return typeof r!="string"&&typeof r!="number"?{unwrap:d}:Object.assign(r,{unwrap:d})},this.custom=(t,n)=>{const r=n?.id||d_++;return this.create({jsx:t(r),id:r,...n}),r},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const Tr=new Qz,Xz=(e,t)=>{const n=t?.id||d_++;return Tr.addToast({title:e,...t,id:n}),n},Jz=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",eV=Xz,tV=()=>Tr.toasts,nV=()=>Tr.getActiveToasts(),wT=Object.assign(eV,{success:Tr.success,info:Tr.info,warning:Tr.warning,error:Tr.error,custom:Tr.custom,message:Tr.message,promise:Tr.promise,dismiss:Tr.dismiss,loading:Tr.loading},{getHistory:tV,getToasts:nV});Vz("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function lh(e){return e.label!==void 0}const rV=3,oV="24px",aV="16px",ST=4e3,sV=356,iV=14,cV=45,lV=200;function Zo(...e){return e.filter(Boolean).join(" ")}function uV(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const dV=e=>{var t,n,r,a,i,c,u,d,f;const{invert:m,toast:p,unstyled:g,interacting:y,setHeights:w,visibleToasts:S,heights:b,index:R,toasts:E,expanded:T,removeToast:O,defaultRichColors:C,closeButton:I,style:N,cancelButtonStyle:D,actionButtonStyle:z,className:W="",descriptionClassName:V="",duration:G,position:U,gap:J,expandByDefault:ie,classNames:F,icons:X,closeButtonAriaLabel:ae="Close toast"}=e,[fe,K]=le.useState(null),[P,q]=le.useState(null),[B,L]=le.useState(!1),[$,Q]=le.useState(!1),[me,_e]=le.useState(!1),[Ae,ke]=le.useState(!1),[H,ne]=le.useState(!1),[be,pe]=le.useState(0),[ce,Oe]=le.useState(0),$e=le.useRef(p.duration||G||ST),Ye=le.useRef(null),He=le.useRef(null),Xe=R===0,Z=R+1<=S,te=p.type,oe=p.dismissible!==!1,Se=p.className||"",Te=p.descriptionClassName||"",Re=le.useMemo(()=>b.findIndex(Qe=>Qe.toastId===p.id)||0,[b,p.id]),Ne=le.useMemo(()=>{var Qe;return(Qe=p.closeButton)!=null?Qe:I},[p.closeButton,I]),rt=le.useMemo(()=>p.duration||G||ST,[p.duration,G]),st=le.useRef(0),Pt=le.useRef(0),hr=le.useRef(0),Rn=le.useRef(null),[Un,en]=U.split("-"),zn=le.useMemo(()=>b.reduce((Qe,Wt,Nn)=>Nn>=Re?Qe:Qe+Wt.height,0),[b,Re]),kn=Yz(),Bi=p.invert||m,Zs=te==="loading";Pt.current=le.useMemo(()=>Re*J+zn,[Re,zn]),le.useEffect(()=>{$e.current=rt},[rt]),le.useEffect(()=>{L(!0)},[]),le.useEffect(()=>{const Qe=He.current;if(Qe){const Wt=Qe.getBoundingClientRect().height;return Oe(Wt),w(Nn=>[{toastId:p.id,height:Wt,position:p.position},...Nn]),()=>w(Nn=>Nn.filter(er=>er.toastId!==p.id))}},[w,p.id]),le.useLayoutEffect(()=>{if(!B)return;const Qe=He.current,Wt=Qe.style.height;Qe.style.height="auto";const Nn=Qe.getBoundingClientRect().height;Qe.style.height=Wt,Oe(Nn),w(er=>er.find(tn=>tn.toastId===p.id)?er.map(tn=>tn.toastId===p.id?{...tn,height:Nn}:tn):[{toastId:p.id,height:Nn,position:p.position},...er])},[B,p.title,p.description,w,p.id,p.jsx,p.action,p.cancel]);const kr=le.useCallback(()=>{Q(!0),pe(Pt.current),w(Qe=>Qe.filter(Wt=>Wt.toastId!==p.id)),setTimeout(()=>{O(p)},lV)},[p,O,w,Pt]);le.useEffect(()=>{if(p.promise&&te==="loading"||p.duration===1/0||p.type==="loading")return;let Qe;return T||y||kn?(()=>{if(hr.current<st.current){const er=new Date().getTime()-st.current;$e.current=$e.current-er}hr.current=new Date().getTime()})():$e.current!==1/0&&(st.current=new Date().getTime(),Qe=setTimeout(()=>{p.onAutoClose==null||p.onAutoClose.call(p,p),kr()},$e.current)),()=>clearTimeout(Qe)},[T,y,p,te,kn,kr]),le.useEffect(()=>{p.delete&&(kr(),p.onDismiss==null||p.onDismiss.call(p,p))},[kr,p.delete]);function qi(){var Qe;if(X?.loading){var Wt;return le.createElement("div",{className:Zo(F?.loader,p==null||(Wt=p.classNames)==null?void 0:Wt.loader,"sonner-loader"),"data-visible":te==="loading"},X.loading)}return le.createElement(qz,{className:Zo(F?.loader,p==null||(Qe=p.classNames)==null?void 0:Qe.loader),visible:te==="loading"})}const Hi=p.icon||X?.[te]||Fz(te);var Ks,Fo;return le.createElement("li",{tabIndex:0,ref:He,className:Zo(W,Se,F?.toast,p==null||(t=p.classNames)==null?void 0:t.toast,F?.default,F?.[te],p==null||(n=p.classNames)==null?void 0:n[te]),"data-sonner-toast":"","data-rich-colors":(Ks=p.richColors)!=null?Ks:C,"data-styled":!(p.jsx||p.unstyled||g),"data-mounted":B,"data-promise":!!p.promise,"data-swiped":H,"data-removed":$,"data-visible":Z,"data-y-position":Un,"data-x-position":en,"data-index":R,"data-front":Xe,"data-swiping":me,"data-dismissible":oe,"data-type":te,"data-invert":Bi,"data-swipe-out":Ae,"data-swipe-direction":P,"data-expanded":!!(T||ie&&B),"data-testid":p.testId,style:{"--index":R,"--toasts-before":R,"--z-index":E.length-R,"--offset":`${$?be:Pt.current}px`,"--initial-height":ie?"auto":`${ce}px`,...N,...p.style},onDragEnd:()=>{_e(!1),K(null),Rn.current=null},onPointerDown:Qe=>{Qe.button!==2&&(Zs||!oe||(Ye.current=new Date,pe(Pt.current),Qe.target.setPointerCapture(Qe.pointerId),Qe.target.tagName!=="BUTTON"&&(_e(!0),Rn.current={x:Qe.clientX,y:Qe.clientY})))},onPointerUp:()=>{var Qe,Wt,Nn;if(Ae||!oe)return;Rn.current=null;const er=Number(((Qe=He.current)==null?void 0:Qe.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Fa=Number(((Wt=He.current)==null?void 0:Wt.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),tn=new Date().getTime()-((Nn=Ye.current)==null?void 0:Nn.getTime()),pr=fe==="x"?er:Fa,Ws=Math.abs(pr)/tn;if(Math.abs(pr)>=cV||Ws>.11){pe(Pt.current),p.onDismiss==null||p.onDismiss.call(p,p),q(fe==="x"?er>0?"right":"left":Fa>0?"down":"up"),kr(),ke(!0);return}else{var mr,gr;(mr=He.current)==null||mr.style.setProperty("--swipe-amount-x","0px"),(gr=He.current)==null||gr.style.setProperty("--swipe-amount-y","0px")}ne(!1),_e(!1),K(null)},onPointerMove:Qe=>{var Wt,Nn,er;if(!Rn.current||!oe||((Wt=window.getSelection())==null?void 0:Wt.toString().length)>0)return;const tn=Qe.clientY-Rn.current.y,pr=Qe.clientX-Rn.current.x;var Ws;const mr=(Ws=e.swipeDirections)!=null?Ws:uV(U);!fe&&(Math.abs(pr)>1||Math.abs(tn)>1)&&K(Math.abs(pr)>Math.abs(tn)?"x":"y");let gr={x:0,y:0};const Gi=wo=>1/(1.5+Math.abs(wo)/20);if(fe==="y"){if(mr.includes("top")||mr.includes("bottom"))if(mr.includes("top")&&tn<0||mr.includes("bottom")&&tn>0)gr.y=tn;else{const wo=tn*Gi(tn);gr.y=Math.abs(wo)<Math.abs(tn)?wo:tn}}else if(fe==="x"&&(mr.includes("left")||mr.includes("right")))if(mr.includes("left")&&pr<0||mr.includes("right")&&pr>0)gr.x=pr;else{const wo=pr*Gi(pr);gr.x=Math.abs(wo)<Math.abs(pr)?wo:pr}(Math.abs(gr.x)>0||Math.abs(gr.y)>0)&&ne(!0),(Nn=He.current)==null||Nn.style.setProperty("--swipe-amount-x",`${gr.x}px`),(er=He.current)==null||er.style.setProperty("--swipe-amount-y",`${gr.y}px`)}},Ne&&!p.jsx&&te!=="loading"?le.createElement("button",{"aria-label":ae,"data-disabled":Zs,"data-close-button":!0,onClick:Zs||!oe?()=>{}:()=>{kr(),p.onDismiss==null||p.onDismiss.call(p,p)},className:Zo(F?.closeButton,p==null||(r=p.classNames)==null?void 0:r.closeButton)},(Fo=X?.close)!=null?Fo:Wz):null,(te||p.icon||p.promise)&&p.icon!==null&&(X?.[te]!==null||p.icon)?le.createElement("div",{"data-icon":"",className:Zo(F?.icon,p==null||(a=p.classNames)==null?void 0:a.icon)},p.promise||p.type==="loading"&&!p.icon?p.icon||qi():null,p.type!=="loading"?Hi:null):null,le.createElement("div",{"data-content":"",className:Zo(F?.content,p==null||(i=p.classNames)==null?void 0:i.content)},le.createElement("div",{"data-title":"",className:Zo(F?.title,p==null||(c=p.classNames)==null?void 0:c.title)},p.jsx?p.jsx:typeof p.title=="function"?p.title():p.title),p.description?le.createElement("div",{"data-description":"",className:Zo(V,Te,F?.description,p==null||(u=p.classNames)==null?void 0:u.description)},typeof p.description=="function"?p.description():p.description):null),le.isValidElement(p.cancel)?p.cancel:p.cancel&&lh(p.cancel)?le.createElement("button",{"data-button":!0,"data-cancel":!0,style:p.cancelButtonStyle||D,onClick:Qe=>{lh(p.cancel)&&oe&&(p.cancel.onClick==null||p.cancel.onClick.call(p.cancel,Qe),kr())},className:Zo(F?.cancelButton,p==null||(d=p.classNames)==null?void 0:d.cancelButton)},p.cancel.label):null,le.isValidElement(p.action)?p.action:p.action&&lh(p.action)?le.createElement("button",{"data-button":!0,"data-action":!0,style:p.actionButtonStyle||z,onClick:Qe=>{lh(p.action)&&(p.action.onClick==null||p.action.onClick.call(p.action,Qe),!Qe.defaultPrevented&&kr())},className:Zo(F?.actionButton,p==null||(f=p.classNames)==null?void 0:f.actionButton)},p.action.label):null)};function ET(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function fV(e,t){const n={};return[e,t].forEach((r,a)=>{const i=a===1,c=i?"--mobile-offset":"--offset",u=i?aV:oV;function d(f){["top","right","bottom","left"].forEach(m=>{n[`${c}-${m}`]=typeof f=="number"?`${f}px`:f})}typeof r=="number"||typeof r=="string"?d(r):typeof r=="object"?["top","right","bottom","left"].forEach(f=>{r[f]===void 0?n[`${c}-${f}`]=u:n[`${c}-${f}`]=typeof r[f]=="number"?`${r[f]}px`:r[f]}):d(u)}),n}const hV=le.forwardRef(function(t,n){const{id:r,invert:a,position:i="bottom-right",hotkey:c=["altKey","KeyT"],expand:u,closeButton:d,className:f,offset:m,mobileOffset:p,theme:g="light",richColors:y,duration:w,style:S,visibleToasts:b=rV,toastOptions:R,dir:E=ET(),gap:T=iV,icons:O,containerAriaLabel:C="Notifications"}=t,[I,N]=le.useState([]),D=le.useMemo(()=>r?I.filter(B=>B.toasterId===r):I.filter(B=>!B.toasterId),[I,r]),z=le.useMemo(()=>Array.from(new Set([i].concat(D.filter(B=>B.position).map(B=>B.position)))),[D,i]),[W,V]=le.useState([]),[G,U]=le.useState(!1),[J,ie]=le.useState(!1),[F,X]=le.useState(g!=="system"?g:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),ae=le.useRef(null),fe=c.join("+").replace(/Key/g,"").replace(/Digit/g,""),K=le.useRef(null),P=le.useRef(!1),q=le.useCallback(B=>{N(L=>{var $;return($=L.find(Q=>Q.id===B.id))!=null&&$.delete||Tr.dismiss(B.id),L.filter(({id:Q})=>Q!==B.id)})},[]);return le.useEffect(()=>Tr.subscribe(B=>{if(B.dismiss){requestAnimationFrame(()=>{N(L=>L.map($=>$.id===B.id?{...$,delete:!0}:$))});return}setTimeout(()=>{EA.flushSync(()=>{N(L=>{const $=L.findIndex(Q=>Q.id===B.id);return $!==-1?[...L.slice(0,$),{...L[$],...B},...L.slice($+1)]:[B,...L]})})})}),[I]),le.useEffect(()=>{if(g!=="system"){X(g);return}if(g==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?X("dark"):X("light")),typeof window>"u")return;const B=window.matchMedia("(prefers-color-scheme: dark)");try{B.addEventListener("change",({matches:L})=>{X(L?"dark":"light")})}catch{B.addListener(({matches:$})=>{try{X($?"dark":"light")}catch(Q){console.error(Q)}})}},[g]),le.useEffect(()=>{I.length<=1&&U(!1)},[I]),le.useEffect(()=>{const B=L=>{var $;if(c.every(_e=>L[_e]||L.code===_e)){var me;U(!0),(me=ae.current)==null||me.focus()}L.code==="Escape"&&(document.activeElement===ae.current||($=ae.current)!=null&&$.contains(document.activeElement))&&U(!1)};return document.addEventListener("keydown",B),()=>document.removeEventListener("keydown",B)},[c]),le.useEffect(()=>{if(ae.current)return()=>{K.current&&(K.current.focus({preventScroll:!0}),K.current=null,P.current=!1)}},[ae.current]),le.createElement("section",{ref:n,"aria-label":`${C} ${fe}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},z.map((B,L)=>{var $;const[Q,me]=B.split("-");return D.length?le.createElement("ol",{key:B,dir:E==="auto"?ET():E,tabIndex:-1,ref:ae,className:f,"data-sonner-toaster":!0,"data-sonner-theme":F,"data-y-position":Q,"data-x-position":me,style:{"--front-toast-height":`${(($=W[0])==null?void 0:$.height)||0}px`,"--width":`${sV}px`,"--gap":`${T}px`,...S,...fV(m,p)},onBlur:_e=>{P.current&&!_e.currentTarget.contains(_e.relatedTarget)&&(P.current=!1,K.current&&(K.current.focus({preventScroll:!0}),K.current=null))},onFocus:_e=>{_e.target instanceof HTMLElement&&_e.target.dataset.dismissible==="false"||P.current||(P.current=!0,K.current=_e.relatedTarget)},onMouseEnter:()=>U(!0),onMouseMove:()=>U(!0),onMouseLeave:()=>{J||U(!1)},onDragEnd:()=>U(!1),onPointerDown:_e=>{_e.target instanceof HTMLElement&&_e.target.dataset.dismissible==="false"||ie(!0)},onPointerUp:()=>ie(!1)},D.filter(_e=>!_e.position&&L===0||_e.position===B).map((_e,Ae)=>{var ke,H;return le.createElement(dV,{key:_e.id,icons:O,index:Ae,toast:_e,defaultRichColors:y,duration:(ke=R?.duration)!=null?ke:w,className:R?.className,descriptionClassName:R?.descriptionClassName,invert:a,visibleToasts:b,closeButton:(H=R?.closeButton)!=null?H:d,interacting:J,position:B,style:R?.style,unstyled:R?.unstyled,classNames:R?.classNames,cancelButtonStyle:R?.cancelButtonStyle,actionButtonStyle:R?.actionButtonStyle,closeButtonAriaLabel:R?.closeButtonAriaLabel,removeToast:q,toasts:D.filter(ne=>ne.position==_e.position),heights:W.filter(ne=>ne.position==_e.position),setHeights:V,expandByDefault:u,gap:T,expanded:G,swipeDirections:t.swipeDirections})})):null}))}),ck=A.createContext({});function lk(){return A.useContext(ck)}var Ky,RT;function pV(){if(RT)return Ky;RT=1;var e=function(){};return Ky=e,Ky}var mV=pV();const gV=ja(mV);function vV({async:e,appendTo:t,defer:n,id:r,nonce:a,src:i}){const c=document.createElement("script");e!==void 0&&(c.async=e),n!==void 0&&(c.defer=n),r&&(c.id=r),a&&c.setAttribute("nonce",a),c.src=i,(t==="head"?document.head:document.body).appendChild(c)}var yV=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};let qu=null,od=!1;const Vp=new Set,Fp=new Set,_V=typeof window<"u",nl="___grecaptcha_cfg",uk=`onLoadCallback_${Math.random().toString(36).slice(2)}`;function bV(){if(!_V)return;function e(n){if(od)n();else{window[nl]||(window[nl]={});const r=window[nl];r.fns||(r.fns=[]),r.fns.push(n)}}window.grecaptcha||(window.grecaptcha={}),window.grecaptcha.enterprise||(window.grecaptcha.enterprise={}),window.grecaptcha.ready=e,window.grecaptcha.enterprise.ready=e;function t(){od=!0;for(const n of Fp)n();Fp.clear()}window[uk]=t}function wV({language:e,onLoadCallbackName:t,render:n,useEnterprise:r=!1,useRecaptchaNet:a=!1}){const i=a?"recaptcha.net":"google.com",c=r?"enterprise.js":"api.js",u=new URLSearchParams({render:n});return t&&u.set("onload",t),e&&u.set("hl",e),`https://www.${i}/recaptcha/${c}?${u.toString()}`}function SV({language:e,render:t,scriptProps:n,useEnterprise:r,useRecaptchaNet:a}){const i={id:"google-recaptcha-v3"},c=wV({language:e,onLoadCallbackName:uk,render:t,useEnterprise:r,useRecaptchaNet:a});if(qu){if(qu!==c)throw new Error("reCAPTCHA has already been loaded with different parameters. Remove the existing script and load it again.");return}qu=c,vV(Object.assign(Object.assign(Object.assign({},i),n),{src:c}))}function EV(e){if(!window[nl])return;const t=window[nl];t.clients&&delete t.clients[e]}function RV(e,t){var{onLoadCallback:n,onLoadCallbackName:r}=t,a=yV(t,["onLoadCallback","onLoadCallbackName"]);if(Vp.size===0&&bV(),SV(a),Vp.add(e),n&&(od?n():Fp.add(n)),r){let i=function(){if(!r)return;const c=window[r];typeof c=="function"&&c()};od?i():Fp.add(i)}}function xV(e){var t,n,r;Vp.delete(e),Vp.size===0&&(window.grecaptcha=void 0,window[nl]=void 0,(t=document.querySelector(".grecaptcha-badge"))===null||t===void 0||t.remove(),(n=document.querySelector(`script[src="${qu}"]`))===null||n===void 0||n.remove(),(r=document.querySelector('script[src^="https://www.gstatic.com/recaptcha/releases"]'))===null||r===void 0||r.remove(),qu=null,od=!1)}let xT=!1;function TV({container:e,children:t,language:n,reCaptchaKey:r,scriptProps:a,useEnterprise:i,useRecaptchaNet:c}){var u,d,f,m,p,g,y;const w=A.useId(),[S,b]=A.useState(null),[R,E]=A.useState(null),T=A.useRef(!1);A.useEffect(()=>{function N(){var D;const z=i?(D=window.grecaptcha)===null||D===void 0?void 0:D.enterprise:window.grecaptcha;if(!z)throw new Error("reCAPTCHA not found");if(!z.ready)throw new Error("reCAPTCHA ready callback not found");z.ready(()=>{b(z)})}return RV(w,{language:n,onLoadCallback:N,onLoadCallbackName:a?.onLoadCallbackName,render:e?.element?"explicit":r,scriptProps:{appendTo:a?.appendTo,async:a?.async,defer:a?.defer,id:a?.id,nonce:a?.nonce},useEnterprise:i,useRecaptchaNet:c}),()=>{xV(w),b(null)}},[e?.element,w,n,r,a?.appendTo,a?.async,a?.defer,a?.id,a?.nonce,a?.onLoadCallbackName,i,c]),A.useEffect(()=>{var N,D,z;if(!e?.element||!S?.render)return;const W={"error-callback":e.parameters.errorCallback,"expired-callback":e.parameters.expiredCallback,badge:((N=e.parameters)===null||N===void 0?void 0:N.badge)||"inline",callback:e.parameters.callback,sitekey:r,size:"invisible",tabindex:e.parameters.tabindex,theme:e.parameters.theme},V=typeof e?.element=="string"?document.getElementById(e.element):e?.element;if(!V)throw new Error("reCAPTCHA container element not found");const G=S.render(V,W);return!((D=e?.parameters)===null||D===void 0)&&D.hidden&&(xT||(gV(!1,"reCAPTCHA badge hidden. See https://cloud.google.com/recaptcha/docs/faq#id_like_to_hide_the_badge_what_is_allowed for more information."),xT=!0),(z=V.querySelector(".grecaptcha-badge"))===null||z===void 0||z.style.setProperty("display","none")),E(G),T.current=!0,()=>{E(null),T.current=!1,EV(G),V.innerHTML=""}},[e?.element,(u=e?.parameters)===null||u===void 0?void 0:u.badge,(d=e?.parameters)===null||d===void 0?void 0:d.hidden,(f=e?.parameters)===null||f===void 0?void 0:f.callback,(m=e?.parameters)===null||m===void 0?void 0:m.errorCallback,(p=e?.parameters)===null||p===void 0?void 0:p.expiredCallback,(g=e?.parameters)===null||g===void 0?void 0:g.tabindex,(y=e?.parameters)===null||y===void 0?void 0:y.theme,S,r]);const O=!!e?.element,C=O?R:r,I=A.useMemo(()=>C!==null&&S?.execute?N=>{if(C===null||!S?.execute)throw new Error("reCAPTCHA has not been loaded");return O&&!T.current?(console.warn("Client ID not mounted"),null):S.execute(C,{action:N})}:void 0,[C,S,O]);return x.jsx(ck.Provider,{value:{container:e?.element,executeRecaptcha:I,reCaptchaInstance:S},children:t})}var OV=class{cache=new Map;listeners=new Map;inFlightRequests=new Map;get(e){return this.cache.get(e)}set(e,t){const n={data:t,timestamp:Date.now(),isRefetching:!1};this.cache.set(e,n),this.notify(e)}setRefetching(e,t){const n=this.cache.get(e);n&&(n.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 n of t)this.notify(n)}}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 n=this.listeners.get(e);n&&(n.delete(t),n.size===0&&this.listeners.delete(e))}}notify(e){const t=this.listeners.get(e);if(t){const n=Array.from(t);for(const r of n)r()}}},io=new OV;function CV(){return()=>{}}function Ua(){return A.useSyncExternalStore(CV,()=>!0,()=>!1)}function dk(){const[e,t]=A.useState();return A.useEffect(()=>{const n=()=>{const a=document.documentElement.getAttribute("lang");t(a??void 0)};n();const r=new MutationObserver(a=>{for(const i of a)i.attributeName==="lang"&&n()});return r.observe(document.documentElement,{attributes:!0}),()=>{r.disconnect()}},[]),{lang:e}}function Pb(){const[e,t]=A.useState("light");return A.useEffect(()=>{const n=()=>{var a;const i=document.documentElement.classList.contains("dark")||((a=document.documentElement.getAttribute("style"))==null?void 0:a.includes("color-scheme: dark"));t(i?"dark":"light")};n();const r=new MutationObserver(a=>{for(const i of a)(i.attributeName==="style"||i.attributeName==="class")&&n()});return r.observe(document.documentElement,{attributes:!0}),()=>{r.disconnect()}},[]),{theme:e}}function AV({children:e}){const t=Ua(),{captcha:n}=A.useContext(ft);return n?.provider!=="google-recaptcha-v3"?e:x.jsxs(TV,{reCaptchaKey:n.siteKey,useEnterprise:n.enterprise,useRecaptchaNet:n.recaptchaNet,children:[t&&x.jsx("style",{children:`
|
|
49
|
-
.grecaptcha-badge {
|
|
50
|
-
visibility: hidden;
|
|
51
|
-
border-radius: var(--radius) !important;
|
|
52
|
-
--tw-shadow: 0 1px 2px 0 var(--tw-shadow-color, #0000000d);
|
|
53
|
-
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow) !important;
|
|
54
|
-
border-style: var(--tw-border-style) !important;
|
|
55
|
-
border-width: 1px;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.dark .grecaptcha-badge {
|
|
59
|
-
border-color: var(--input) !important;
|
|
60
|
-
}
|
|
61
|
-
`}),x.jsx(IV,{}),e]})}function IV(){const{executeRecaptcha:e}=lk(),{theme:t}=Pb(),{lang:n}=dk();return A.useEffect(()=>{if(!e)return;(async()=>{const a=document.querySelector("iframe[title='reCAPTCHA']");if(a){const i=new URL(a.src);i.searchParams.set("theme",t),n&&i.searchParams.set("hl",n),a.src=i.toString()}})()},[e,t,n]),null}function kV({slug:e}={}){const{organization:t,hooks:{useActiveOrganization:n,useListOrganizations:r}}=A.useContext(ft),{pathMode:a,slug:i}=t||{};let c,u,d,f;const{data:m,isPending:p,isRefetching:g}=r();if(a==="slug"){const y=e||i;c=m?.find(w=>w.slug===y),u=p,d=g}else{const{data:y,isPending:w,isRefetching:S,refetch:b}=n();f=b,c=y,u=w,d=S}return A.useMemo(()=>({data:c,isPending:u,isRefetching:d,refetch:f}),[c,u,d,f])}var NV=()=>{const{hooks:{useListOrganizations:e,useSession:t},organization:n,navigate:r,redirectTo:a}=A.useContext(ft),{slug:i,pathMode:c,personalPath:u}=n||{},{data:d}=t(),{data:f,isPending:m,isRefetching:p,refetch:g}=kV(),{refetch:y}=e(),{data:w}=e();return A.useEffect(()=>{d?.user.id&&(f||w)&&(g?.(),y?.())},[d?.user.id]),A.useEffect(()=>{p||m||i&&c==="slug"&&!f&&r(u||a)},[f,p,m,i,c,u,r,a]),null},MV=({href:e,className:t,children:n})=>x.jsx("a",{className:t,href:e,children:n}),PV=e=>{window.location.href=e},DV=e=>{window.location.replace(e)},LV=({variant:e="default",message:t})=>{e==="default"?wT(t):wT[e](t)},ft=A.createContext({}),jV=({children:e,authClient:t,account:n,avatar:r,deleteUser:a,social:i,genericOAuth:c,basePath:u="/auth",baseURL:d="",captcha:f,redirectTo:m="/",credentials:p,changeEmail:g=!0,freshAge:y=3600*24,hooks:w,mutators:S,localization:b,localizeErrors:R=!0,nameRequired:E=!0,organization:T,teams:O,signUp:C=!0,toast:I=LV,viewPaths:N,navigate:D,replace:z,Link:W=MV,emailVerification:V,...G})=>{const U=t,J=A.useMemo(()=>{if(r)return r===!0?{extension:"png",size:128}:{upload:r.upload,delete:r.delete,extension:r.extension||"png",size:r.size||(r.upload?256:128),Image:r.Image}},[r]),ie=A.useMemo(()=>{if(V)return V===!0?{otp:!1}:{otp:V.otp??!1}},[V]),F=A.useMemo(()=>{var H;return n===!1?void 0:n===!0||n===void 0?{basePath:"/account",fields:["image","name"],viewPaths:_T}:{basePath:((H=n.basePath)!=null&&H.endsWith("/")?n.basePath.slice(0,-1):n.basePath)??"/account",fields:n.fields||["image","name"],viewPaths:{..._T,...n.viewPaths}}},[n]),X=A.useMemo(()=>{if(a)return a===!0?{}:a},[a]),ae=A.useMemo(()=>{if(i)return i},[i]),fe=A.useMemo(()=>{if(c)return c},[c]),K=A.useMemo(()=>{if(p!==!1)return p===!0?{forgotPassword:!0,usernameRequired:!0}:{...p,forgotPassword:p?.forgotPassword??!0,usernameRequired:p?.usernameRequired??!0}},[p]),P=A.useMemo(()=>{if(C!==!1)return C===!0||C===void 0?{fields:["name"]}:{fields:C.fields||["name"]}},[C]),q=A.useMemo(()=>{var H;if(!T)return;if(T===!0)return{basePath:"/organization",viewPaths:bT,customRoles:[]};let ne;T.logo===!0?ne={extension:"png",size:128}:T.logo&&(ne={upload:T.logo.upload,delete:T.logo.delete,extension:T.logo.extension||"png",size:T.logo.size||(T.logo.upload?256:128)});const be=(H=T.basePath)!=null&&H.endsWith("/")?T.basePath.slice(0,-1):T.basePath;return{...T,logo:ne,basePath:be??"/organization",customRoles:T.customRoles||[],viewPaths:{...bT,...T.viewPaths}}},[T]),B=A.useMemo(()=>{var H,ne;if(!(!O||!q))return O===!0?{enabled:!0,customRoles:[],colors:{count:5,prefix:"team"}}:{enabled:O.enabled??!0,customRoles:O.customRoles||[],colors:{count:((H=O.colors)==null?void 0:H.count)??5,prefix:((ne=O.colors)==null?void 0:ne.prefix)??"team"}}},[O,q]),L=A.useMemo(()=>({deleteApiKey:H=>U.apiKey.delete({...H,fetchOptions:{throw:!0}}),deletePasskey:H=>U.passkey.deletePasskey({...H,fetchOptions:{throw:!0}}),revokeDeviceSession:H=>U.multiSession.revoke({...H,fetchOptions:{throw:!0}}),revokeSession:H=>U.revokeSession({...H,fetchOptions:{throw:!0}}),setActiveSession:H=>U.multiSession.setActive({...H,fetchOptions:{throw:!0}}),updateOrganization:H=>U.organization.update({...H,fetchOptions:{throw:!0}}),updateTeam:H=>U.$fetch("/organization/update-team",{method:"POST",body:H,throw:!0}),updateUser:H=>U.updateUser({...H,fetchOptions:{throw:!0}}),unlinkAccount:H=>U.unlinkAccount({...H,fetchOptions:{throw:!0}})}),[U]),$=A.useMemo(()=>({useSession:U.useSession,useListAccounts:()=>Ur({queryFn:U.listAccounts,cacheKey:"listAccounts"}),useAccountInfo:H=>Ur({queryFn:()=>U.accountInfo(H),cacheKey:`accountInfo:${JSON.stringify(H)}`}),useListDeviceSessions:()=>Ur({queryFn:U.multiSession.listDeviceSessions,cacheKey:"listDeviceSessions"}),useListSessions:()=>Ur({queryFn:U.listSessions,cacheKey:"listSessions"}),useListPasskeys:U.useListPasskeys,useListApiKeys:()=>Ur({queryFn:U.apiKey.list,cacheKey:"listApiKeys"}),useActiveOrganization:U.useActiveOrganization,useListOrganizations:U.useListOrganizations,useHasPermission:H=>Ur({queryFn:()=>U.$fetch("/organization/has-permission",{method:"POST",body:H}),cacheKey:`hasPermission:${JSON.stringify(H)}`}),useInvitation:H=>Ur({queryFn:()=>U.organization.getInvitation(H),cacheKey:`invitation:${JSON.stringify(H)}`}),useListInvitations:H=>Ur({queryFn:()=>{var ne;return U.$fetch(`/organization/list-invitations?organizationId=${((ne=H?.query)==null?void 0:ne.organizationId)||""}`)},cacheKey:`listInvitations:${JSON.stringify(H)}`}),useListUserInvitations:()=>Ur({queryFn:()=>U.$fetch("/organization/list-user-invitations"),cacheKey:"listUserInvitations"}),useListMembers:H=>Ur({queryFn:()=>{var ne;return U.$fetch(`/organization/list-members?organizationId=${((ne=H?.query)==null?void 0:ne.organizationId)||""}`)},cacheKey:`listMembers:${JSON.stringify(H)}`}),useListTeams:H=>Ur({queryFn:()=>U.$fetch(`/organization/list-teams?organizationId=${H?.organizationId||""}`),cacheKey:`listTeams:${JSON.stringify(H)}`}),useListTeamMembers:H=>Ur({queryFn:()=>U.$fetch("/organization/list-team-members",{method:"POST",body:H?.teamId?{query:{teamId:H.teamId}}:void 0}),cacheKey:`listTeamMembers:${JSON.stringify(H)}`}),useListUserTeams:()=>Ur({queryFn:()=>U.$fetch("/organization/list-user-teams"),cacheKey:"listUserTeams"})}),[U]),Q=A.useMemo(()=>({...zz,...N}),[N]),me=A.useMemo(()=>({...Uz,...b}),[b]),_e=A.useMemo(()=>({...$,...w}),[$,w]),Ae=A.useMemo(()=>({...L,...S}),[L,S]);d=d.endsWith("/")?d.slice(0,-1):d,u=u.endsWith("/")?u.slice(0,-1):u;const{data:ke}=_e.useSession();return x.jsxs(ft.Provider,{value:{authClient:U,avatar:J,basePath:u==="/"?"":u,baseURL:d,captcha:f,redirectTo:m,changeEmail:g,credentials:K,deleteUser:X,emailVerification:ie,freshAge:y,genericOAuth:fe,hooks:_e,mutators:Ae,localization:me,localizeErrors:R,nameRequired:E,organization:q,teams:B,account:F,signUp:P,social:ae,toast:I,navigate:D||PV,replace:z||D||DV,viewPaths:Q,Link:W,...G},children:[ke&&q&&x.jsx(NV,{}),f?.provider==="google-recaptcha-v3"?x.jsx(AV,{children:e}):e]})};function Ur({queryFn:e,cacheKey:t,staleTime:n=1e4}){var r;const{hooks:{useSession:a},toast:i,localization:c,localizeErrors:u}=A.useContext(ft),{data:d,isPending:f}=a(),m=A.useRef(e);m.current=e;const p=t||e.toString(),g=A.useSyncExternalStore(A.useCallback(T=>io.subscribe(p,T),[p]),A.useCallback(()=>io.get(p),[p]),A.useCallback(()=>io.get(p),[p])),y=A.useRef(!1),w=A.useRef(void 0),[S,b]=A.useState(null),R=A.useCallback(async()=>{const T=io.getInFlightRequest(p);if(T){try{const C=await T;C.error?b(C.error):b(null)}catch(C){b(C)}return}g?.data!==void 0&&io.setRefetching(p,!0);const O=m.current();io.setInFlightRequest(p,O);try{const{data:C,error:I}=await O;I?(b(I),i({variant:"error",message:hn({error:I,localization:c,localizeErrors:u})})):b(null),io.set(p,C)}catch(C){const I=C;b(I),i({variant:"error",message:hn({error:I,localization:c,localizeErrors:u})})}finally{io.setRefetching(p,!1),io.removeInFlightRequest(p)}},[p,i,c,u,g]);A.useEffect(()=>{var T;const O=(T=d?.user)==null?void 0:T.id;if(!d){io.setRefetching(p,!1),io.clear(p),y.current=!1,w.current=void 0;return}const C=w.current!==void 0&&w.current!==O;C&&io.clear(p);const I=g?.data!==void 0,N=!g||Date.now()-g.timestamp>n;(!y.current||!I||C||I&&N)&&(!I||N)&&(y.current=!0,R()),w.current=O},[d,(r=d?.user)==null?void 0:r.id,p,R,g,n]);const E=f||g?.data===void 0&&!S;return{data:g?.data??null,isPending:E,isRefetching:g?.isRefetching??!1,error:S,refetch:R}}const $V=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),fk=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();var UV={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const zV=A.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:a="",children:i,iconNode:c,...u},d)=>A.createElement("svg",{ref:d,...UV,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:fk("lucide",a),...u},[...c.map(([f,m])=>A.createElement(f,m)),...Array.isArray(i)?i:[i]]));const ar=(e,t)=>{const n=A.forwardRef(({className:r,...a},i)=>A.createElement(zV,{ref:i,iconNode:t,className:fk(`lucide-${$V(e)}`,r),...a}));return n.displayName=`${e}`,n};const VV=ar("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);const FV=ar("Building",[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",ry:"2",key:"76otgf"}],["path",{d:"M9 22v-4h6v4",key:"r93iot"}],["path",{d:"M8 6h.01",key:"1dz90k"}],["path",{d:"M16 6h.01",key:"1x0f13"}],["path",{d:"M12 6h.01",key:"1vi96p"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M8 14h.01",key:"6423bh"}]]);const hk=ar("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);const BV=ar("CloudUpload",[["path",{d:"M12 13v8",key:"1l5pq0"}],["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"m8 17 4-4 4 4",key:"1quai1"}]]);const qV=ar("EyeOff",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);const HV=ar("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);const GV=ar("Fingerprint",[["path",{d:"M12 10a2 2 0 0 0-2 2c0 1.02-.1 2.51-.26 4",key:"1nerag"}],["path",{d:"M14 13.12c0 2.38 0 6.38-1 8.88",key:"o46ks0"}],["path",{d:"M17.29 21.02c.12-.6.43-2.3.5-3.02",key:"ptglia"}],["path",{d:"M2 12a10 10 0 0 1 18-6",key:"ydlgp0"}],["path",{d:"M2 16h.01",key:"1gqxmh"}],["path",{d:"M21.8 16c.2-2 .131-5.354 0-6",key:"drycrb"}],["path",{d:"M5 19.5C5.5 18 6 15 6 12a6 6 0 0 1 .34-2",key:"1tidbn"}],["path",{d:"M8.65 22c.21-.66.45-1.32.57-2",key:"13wd9y"}],["path",{d:"M9 6.8a6 6 0 0 1 9 5.2v2",key:"1fr1j5"}]]);const or=ar("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);const pk=ar("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);const mk=ar("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);const ZV=ar("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);const KV=ar("QrCode",[["rect",{width:"5",height:"5",x:"3",y:"3",rx:"1",key:"1tu5fj"}],["rect",{width:"5",height:"5",x:"16",y:"3",rx:"1",key:"1v8r4q"}],["rect",{width:"5",height:"5",x:"3",y:"16",rx:"1",key:"1x03jg"}],["path",{d:"M21 16h-3a2 2 0 0 0-2 2v3",key:"177gqh"}],["path",{d:"M21 21v.01",key:"ents32"}],["path",{d:"M12 7v3a2 2 0 0 1-2 2H7",key:"8crl2c"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M12 3h.01",key:"n36tog"}],["path",{d:"M12 16v.01",key:"133mhm"}],["path",{d:"M16 12h1",key:"1slzba"}],["path",{d:"M21 12v.01",key:"1lwtk9"}],["path",{d:"M12 21v-1",key:"1880an"}]]);const TT=ar("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);const WV=ar("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);const YV=ar("UserRound",[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]]);const QV=ar("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);var _d=e=>e.type==="checkbox",xi=e=>e instanceof Date,Cr=e=>e==null;const gk=e=>typeof e=="object";var En=e=>!Cr(e)&&!Array.isArray(e)&&gk(e)&&!xi(e),vk=e=>En(e)&&e.target?_d(e.target)?e.target.checked:e.target.value:e,XV=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,yk=(e,t)=>e.has(XV(t)),JV=e=>{const t=e.constructor&&e.constructor.prototype;return En(t)&&t.hasOwnProperty("isPrototypeOf")},Db=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function _n(e){if(e instanceof Date)return new Date(e);const t=typeof FileList<"u"&&e instanceof FileList;if(Db&&(e instanceof Blob||t))return e;const n=Array.isArray(e);if(!n&&!(En(e)&&JV(e)))return e;const r=n?[]:Object.create(Object.getPrototypeOf(e));for(const a in e)Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=_n(e[a]));return r}var Lm=e=>/^\w*$/.test(e),Xt=e=>e===void 0,Lb=e=>Array.isArray(e)?e.filter(Boolean):[],jb=e=>Lb(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Me=(e,t,n)=>{if(!t||!En(e))return n;const r=(Lm(t)?[t]:jb(t)).reduce((a,i)=>Cr(a)?a:a[i],e);return Xt(r)||r===e?Xt(e[t])?n:e[t]:r},Br=e=>typeof e=="boolean",dr=e=>typeof e=="function",$t=(e,t,n)=>{let r=-1;const a=Lm(t)?[t]:jb(t),i=a.length,c=i-1;for(;++r<i;){const u=a[r];let d=n;if(r!==c){const f=e[u];d=En(f)||Array.isArray(f)?f:isNaN(+a[r+1])?{}:[]}if(u==="__proto__"||u==="constructor"||u==="prototype")return;e[u]=d,e=e[u]}};const Bp={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},No={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Oa={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},$b=le.createContext(null);$b.displayName="HookFormControlContext";const Ub=()=>le.useContext($b);var _k=(e,t,n,r=!0)=>{const a={defaultValues:t._defaultValues};for(const i in e)Object.defineProperty(a,i,{get:()=>{const c=i;return t._proxyFormState[c]!==No.all&&(t._proxyFormState[c]=!r||No.all),n&&(n[c]=!0),e[c]}});return a};const zb=typeof window<"u"?le.useLayoutEffect:le.useEffect;function bk(e){const t=Ub(),{control:n=t,disabled:r,name:a,exact:i}=e||{},[c,u]=le.useState(n._formState),d=le.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return zb(()=>n._subscribe({name:a,formState:d.current,exact:i,callback:f=>{!r&&u({...n._formState,...f})}}),[a,r,i]),le.useEffect(()=>{d.current.isValid&&n._setValid(!0)},[n]),le.useMemo(()=>_k(c,n,d.current,!1),[c,n])}var Zr=e=>typeof e=="string",f_=(e,t,n,r,a)=>Zr(e)?(r&&t.watch.add(e),Me(n,e,a)):Array.isArray(e)?e.map(i=>(r&&t.watch.add(i),Me(n,i))):(r&&(t.watchAll=!0),n),h_=e=>Cr(e)||!gk(e);function Mo(e,t,n=new WeakSet){if(h_(e)||h_(t))return Object.is(e,t);if(xi(e)&&xi(t))return Object.is(e.getTime(),t.getTime());const r=Object.keys(e),a=Object.keys(t);if(r.length!==a.length)return!1;if(n.has(e)||n.has(t))return!0;n.add(e),n.add(t);for(const i of r){const c=e[i];if(!a.includes(i))return!1;if(i!=="ref"){const u=t[i];if(xi(c)&&xi(u)||En(c)&&En(u)||Array.isArray(c)&&Array.isArray(u)?!Mo(c,u,n):!Object.is(c,u))return!1}}return!0}function eF(e){const t=Ub(),{control:n=t,name:r,defaultValue:a,disabled:i,exact:c,compute:u}=e||{},d=le.useRef(a),f=le.useRef(u),m=le.useRef(void 0),p=le.useRef(n),g=le.useRef(r);f.current=u;const[y,w]=le.useState(()=>{const O=n._getWatch(r,d.current);return f.current?f.current(O):O}),S=le.useCallback(O=>{const C=f_(r,n._names,O||n._formValues,!1,d.current);return f.current?f.current(C):C},[n._formValues,n._names,r]),b=le.useCallback(O=>{if(!i){const C=f_(r,n._names,O||n._formValues,!1,d.current);if(f.current){const I=f.current(C);Mo(I,m.current)||(w(I),m.current=I)}else w(C)}},[n._formValues,n._names,i,r]);zb(()=>((p.current!==n||!Mo(g.current,r))&&(p.current=n,g.current=r,b()),n._subscribe({name:r,formState:{values:!0},exact:c,callback:O=>{b(O.values)}})),[n,c,r,b]),le.useEffect(()=>n._removeUnmounted());const R=p.current!==n,E=g.current,T=le.useMemo(()=>{if(i)return null;const O=!R&&!Mo(E,r);return R||O?S():null},[i,R,r,E,S]);return T!==null?T:y}function tF(e){const t=Ub(),{name:n,disabled:r,control:a=t,shouldUnregister:i,defaultValue:c,exact:u=!0}=e,d=yk(a._names.array,n),f=le.useMemo(()=>Me(a._formValues,n,Me(a._defaultValues,n,c)),[a,n,c]),m=eF({control:a,name:n,defaultValue:f,exact:u}),p=bk({control:a,name:n,exact:u}),g=le.useRef(e),y=le.useRef(void 0),w=le.useRef(a.register(n,{...e.rules,value:m,...Br(e.disabled)?{disabled:e.disabled}:{}}));g.current=e;const S=le.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Me(p.errors,n)},isDirty:{enumerable:!0,get:()=>!!Me(p.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!Me(p.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!Me(p.validatingFields,n)},error:{enumerable:!0,get:()=>Me(p.errors,n)}}),[p,n]),b=le.useCallback(O=>w.current.onChange({target:{value:vk(O),name:n},type:Bp.CHANGE}),[n]),R=le.useCallback(()=>w.current.onBlur({target:{value:Me(a._formValues,n),name:n},type:Bp.BLUR}),[n,a._formValues]),E=le.useCallback(O=>{const C=Me(a._fields,n);C&&C._f&&O&&(C._f.ref={focus:()=>dr(O.focus)&&O.focus(),select:()=>dr(O.select)&&O.select(),setCustomValidity:I=>dr(O.setCustomValidity)&&O.setCustomValidity(I),reportValidity:()=>dr(O.reportValidity)&&O.reportValidity()})},[a._fields,n]),T=le.useMemo(()=>({name:n,value:m,...Br(r)||p.disabled?{disabled:p.disabled||r}:{},onChange:b,onBlur:R,ref:E}),[n,r,p.disabled,b,R,E,m]);return le.useEffect(()=>{const O=a._options.shouldUnregister||i,C=y.current;C&&C!==n&&!d&&a.unregister(C),a.register(n,{...g.current.rules,...Br(g.current.disabled)?{disabled:g.current.disabled}:{}});const I=(N,D)=>{const z=Me(a._fields,N);z&&z._f&&(z._f.mount=D)};if(I(n,!0),O){const N=_n(Me(a._options.defaultValues,n,g.current.defaultValue));$t(a._defaultValues,n,N),Xt(Me(a._formValues,n))&&$t(a._formValues,n,N)}return!d&&a.register(n),y.current=n,()=>{(d?O&&!a._state.action:O)?a.unregister(n):I(n,!1)}},[n,a,d,i]),le.useEffect(()=>{a._setDisabledField({disabled:r,name:n})},[r,n,a]),le.useMemo(()=>({field:T,formState:p,fieldState:S}),[T,p,S])}const nF=e=>e.render(tF(e)),Vb=le.createContext(null);Vb.displayName="HookFormContext";const rF=()=>le.useContext(Vb),oF=e=>{const{children:t,watch:n,getValues:r,getFieldState:a,setError:i,clearErrors:c,setValue:u,trigger:d,formState:f,resetField:m,reset:p,handleSubmit:g,unregister:y,control:w,register:S,setFocus:b,subscribe:R}=e;return le.createElement(Vb.Provider,{value:le.useMemo(()=>({watch:n,getValues:r,getFieldState:a,setError:i,clearErrors:c,setValue:u,trigger:d,formState:f,resetField:m,reset:p,handleSubmit:g,unregister:y,control:w,register:S,setFocus:b,subscribe:R}),[c,w,f,a,r,g,S,p,m,i,b,u,R,d,y,n])},le.createElement($b.Provider,{value:w},t))};var Fb=(e,t,n,r,a)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:a||!0}}:{},Hu=e=>Array.isArray(e)?e:[e],OT=()=>{let e=[];return{get observers(){return e},next:a=>{for(const i of e)i.next&&i.next(a)},subscribe:a=>(e.push(a),{unsubscribe:()=>{e=e.filter(i=>i!==a)}}),unsubscribe:()=>{e=[]}}};function wk(e,t){const n={};for(const r in e)if(e.hasOwnProperty(r)){const a=e[r],i=t[r];if(a&&En(a)&&i){const c=wk(a,i);En(c)&&(n[r]=c)}else e[r]&&(n[r]=i)}return n}var ur=e=>En(e)&&!Object.keys(e).length,Bb=e=>e.type==="file",qp=e=>{if(!Db)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Sk=e=>e.type==="select-multiple",qb=e=>e.type==="radio",aF=e=>qb(e)||_d(e),Wy=e=>qp(e)&&e.isConnected;function sF(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=Xt(e)?r++:e[t[r++]];return e}function iF(e){for(const t in e)if(e.hasOwnProperty(t)&&!Xt(e[t]))return!1;return!0}function bn(e,t){const n=Array.isArray(t)?t:Lm(t)?[t]:jb(t),r=n.length===1?e:sF(e,n),a=n.length-1,i=n[a];return r&&delete r[i],a!==0&&(En(r)&&ur(r)||Array.isArray(r)&&iF(r))&&bn(e,n.slice(0,-1)),e}var cF=e=>{for(const t in e)if(dr(e[t]))return!0;return!1};function Ek(e){return Array.isArray(e)||En(e)&&!cF(e)}function p_(e,t={}){for(const n in e){const r=e[n];Ek(r)?(t[n]=Array.isArray(r)?[]:{},p_(r,t[n])):Xt(r)||(t[n]=!0)}return t}function Bc(e,t,n){n||(n=p_(t));for(const r in e){const a=e[r];if(Ek(a))Xt(t)||h_(n[r])?n[r]=p_(a,Array.isArray(a)?[]:{}):Bc(a,Cr(t)?{}:t[r],n[r]);else{const i=t[r];n[r]=!Mo(a,i)}}return n}const CT={value:!1,isValid:!1},AT={value:!0,isValid:!0};var Rk=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Xt(e[0].attributes.value)?Xt(e[0].value)||e[0].value===""?AT:{value:e[0].value,isValid:!0}:AT:CT}return CT},xk=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>Xt(e)?e:t?e===""?NaN:e&&+e:n&&Zr(e)?new Date(e):r?r(e):e;const IT={isValid:!1,value:null};var Tk=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,IT):IT;function kT(e){const t=e.ref;return Bb(t)?t.files:qb(t)?Tk(e.refs).value:Sk(t)?[...t.selectedOptions].map(({value:n})=>n):_d(t)?Rk(e.refs).value:xk(Xt(t.value)?e.ref.value:t.value,e)}var lF=(e,t,n,r)=>{const a={};for(const i of e){const c=Me(t,i);c&&$t(a,i,c._f)}return{criteriaMode:n,names:[...e],fields:a,shouldUseNativeValidation:r}},Hp=e=>e instanceof RegExp,Ru=e=>Xt(e)?e:Hp(e)?e.source:En(e)?Hp(e.value)?e.value.source:e.value:e,NT=e=>({isOnSubmit:!e||e===No.onSubmit,isOnBlur:e===No.onBlur,isOnChange:e===No.onChange,isOnAll:e===No.all,isOnTouch:e===No.onTouched});const MT="AsyncFunction";var uF=e=>!!e&&!!e.validate&&!!(dr(e.validate)&&e.validate.constructor.name===MT||En(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===MT)),dF=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),PT=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const Gu=(e,t,n,r)=>{for(const a of n||Object.keys(e)){const i=Me(e,a);if(i){const{_f:c,...u}=i;if(c){if(c.refs&&c.refs[0]&&t(c.refs[0],a)&&!r)return!0;if(c.ref&&t(c.ref,c.name)&&!r)return!0;if(Gu(u,t))break}else if(En(u)&&Gu(u,t))break}}};function DT(e,t,n){const r=Me(e,n);if(r||Lm(n))return{error:r,name:n};const a=n.split(".");for(;a.length;){const i=a.join("."),c=Me(t,i),u=Me(e,i);if(c&&!Array.isArray(c)&&n!==i)return{name:n};if(u&&u.type)return{name:i,error:u};if(u&&u.root&&u.root.type)return{name:`${i}.root`,error:u.root};a.pop()}return{name:n}}var fF=(e,t,n,r)=>{n(e);const{name:a,...i}=e;return ur(i)||Object.keys(i).length>=Object.keys(t).length||Object.keys(i).find(c=>t[c]===(!r||No.all))},hF=(e,t,n)=>!e||!t||e===t||Hu(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r))),pF=(e,t,n,r,a)=>a.isOnAll?!1:!n&&a.isOnTouch?!(t||e):(n?r.isOnBlur:a.isOnBlur)?!e:(n?r.isOnChange:a.isOnChange)?e:!0,mF=(e,t)=>!Lb(Me(e,t)).length&&bn(e,t),gF=(e,t,n)=>{const r=Hu(Me(e,n));return $t(r,"root",t[n]),$t(e,n,r),e};function LT(e,t,n="validate"){if(Zr(e)||Array.isArray(e)&&e.every(Zr)||Br(e)&&!e)return{type:n,message:Zr(e)?e:"",ref:t}}var Nc=e=>En(e)&&!Hp(e)?e:{value:e,message:""},jT=async(e,t,n,r,a,i)=>{const{ref:c,refs:u,required:d,maxLength:f,minLength:m,min:p,max:g,pattern:y,validate:w,name:S,valueAsNumber:b,mount:R}=e._f,E=Me(n,S);if(!R||t.has(S))return{};const T=u?u[0]:c,O=G=>{a&&T.reportValidity&&(T.setCustomValidity(Br(G)?"":G||""),T.reportValidity())},C={},I=qb(c),N=_d(c),D=I||N,z=(b||Bb(c))&&Xt(c.value)&&Xt(E)||qp(c)&&c.value===""||E===""||Array.isArray(E)&&!E.length,W=Fb.bind(null,S,r,C),V=(G,U,J,ie=Oa.maxLength,F=Oa.minLength)=>{const X=G?U:J;C[S]={type:G?ie:F,message:X,ref:c,...W(G?ie:F,X)}};if(i?!Array.isArray(E)||!E.length:d&&(!D&&(z||Cr(E))||Br(E)&&!E||N&&!Rk(u).isValid||I&&!Tk(u).isValid)){const{value:G,message:U}=Zr(d)?{value:!!d,message:d}:Nc(d);if(G&&(C[S]={type:Oa.required,message:U,ref:T,...W(Oa.required,U)},!r))return O(U),C}if(!z&&(!Cr(p)||!Cr(g))){let G,U;const J=Nc(g),ie=Nc(p);if(!Cr(E)&&!isNaN(E)){const F=c.valueAsNumber||E&&+E;Cr(J.value)||(G=F>J.value),Cr(ie.value)||(U=F<ie.value)}else{const F=c.valueAsDate||new Date(E),X=K=>new Date(new Date().toDateString()+" "+K),ae=c.type=="time",fe=c.type=="week";Zr(J.value)&&E&&(G=ae?X(E)>X(J.value):fe?E>J.value:F>new Date(J.value)),Zr(ie.value)&&E&&(U=ae?X(E)<X(ie.value):fe?E<ie.value:F<new Date(ie.value))}if((G||U)&&(V(!!G,J.message,ie.message,Oa.max,Oa.min),!r))return O(C[S].message),C}if((f||m)&&!z&&(Zr(E)||i&&Array.isArray(E))){const G=Nc(f),U=Nc(m),J=!Cr(G.value)&&E.length>+G.value,ie=!Cr(U.value)&&E.length<+U.value;if((J||ie)&&(V(J,G.message,U.message),!r))return O(C[S].message),C}if(y&&!z&&Zr(E)){const{value:G,message:U}=Nc(y);if(Hp(G)&&!E.match(G)&&(C[S]={type:Oa.pattern,message:U,ref:c,...W(Oa.pattern,U)},!r))return O(U),C}if(w){if(dr(w)){const G=await w(E,n),U=LT(G,T);if(U&&(C[S]={...U,...W(Oa.validate,U.message)},!r))return O(U.message),C}else if(En(w)){let G={};for(const U in w){if(!ur(G)&&!r)break;const J=LT(await w[U](E,n),T,U);J&&(G={...J,...W(U,J.message)},O(J.message),r&&(C[S]=G))}if(!ur(G)&&(C[S]={ref:T,...G},!r))return C}}return O(!0),C};const vF={mode:No.onSubmit,reValidateMode:No.onChange,shouldFocusError:!0};function yF(e={}){let t={...vF,...e},n={submitCount:0,isDirty:!1,isReady:!1,isLoading:dr(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},a=En(t.defaultValues)||En(t.values)?_n(t.defaultValues||t.values)||{}:{},i=t.shouldUnregister?{}:_n(a),c={action:!1,mount:!1,watch:!1,keepIsValid:!1},u={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},d,f=0;const m={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},p={...m};let g={...p};const y={array:OT(),state:OT()},w=t.criteriaMode===No.all,S=Z=>te=>{clearTimeout(f),f=setTimeout(Z,te)},b=async Z=>{if(!c.keepIsValid&&!t.disabled&&(p.isValid||g.isValid||Z)){let te;t.resolver?(te=ur((await D()).errors),R()):te=await W(r,!0),te!==n.isValid&&y.state.next({isValid:te})}},R=(Z,te)=>{!t.disabled&&(p.isValidating||p.validatingFields||g.isValidating||g.validatingFields)&&((Z||Array.from(u.mount)).forEach(oe=>{oe&&(te?$t(n.validatingFields,oe,te):bn(n.validatingFields,oe))}),y.state.next({validatingFields:n.validatingFields,isValidating:!ur(n.validatingFields)}))},E=(Z,te=[],oe,Se,Te=!0,Re=!0)=>{if(Se&&oe&&!t.disabled){if(c.action=!0,Re&&Array.isArray(Me(r,Z))){const Ne=oe(Me(r,Z),Se.argA,Se.argB);Te&&$t(r,Z,Ne)}if(Re&&Array.isArray(Me(n.errors,Z))){const Ne=oe(Me(n.errors,Z),Se.argA,Se.argB);Te&&$t(n.errors,Z,Ne),mF(n.errors,Z)}if((p.touchedFields||g.touchedFields)&&Re&&Array.isArray(Me(n.touchedFields,Z))){const Ne=oe(Me(n.touchedFields,Z),Se.argA,Se.argB);Te&&$t(n.touchedFields,Z,Ne)}(p.dirtyFields||g.dirtyFields)&&(n.dirtyFields=Bc(a,i)),y.state.next({name:Z,isDirty:G(Z,te),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else $t(i,Z,te)},T=(Z,te)=>{$t(n.errors,Z,te),y.state.next({errors:n.errors})},O=Z=>{n.errors=Z,y.state.next({errors:n.errors,isValid:!1})},C=(Z,te,oe,Se)=>{const Te=Me(r,Z);if(Te){const Re=Me(i,Z,Xt(oe)?Me(a,Z):oe);Xt(Re)||Se&&Se.defaultChecked||te?$t(i,Z,te?Re:kT(Te._f)):ie(Z,Re),c.mount&&!c.action&&b()}},I=(Z,te,oe,Se,Te)=>{let Re=!1,Ne=!1;const rt={name:Z};if(!t.disabled){if(!oe||Se){(p.isDirty||g.isDirty)&&(Ne=n.isDirty,n.isDirty=rt.isDirty=G(),Re=Ne!==rt.isDirty);const st=Mo(Me(a,Z),te);Ne=!!Me(n.dirtyFields,Z),st?bn(n.dirtyFields,Z):$t(n.dirtyFields,Z,!0),rt.dirtyFields=n.dirtyFields,Re=Re||(p.dirtyFields||g.dirtyFields)&&Ne!==!st}if(oe){const st=Me(n.touchedFields,Z);st||($t(n.touchedFields,Z,oe),rt.touchedFields=n.touchedFields,Re=Re||(p.touchedFields||g.touchedFields)&&st!==oe)}Re&&Te&&y.state.next(rt)}return Re?rt:{}},N=(Z,te,oe,Se)=>{const Te=Me(n.errors,Z),Re=(p.isValid||g.isValid)&&Br(te)&&n.isValid!==te;if(t.delayError&&oe?(d=S(()=>T(Z,oe)),d(t.delayError)):(clearTimeout(f),d=null,oe?$t(n.errors,Z,oe):bn(n.errors,Z)),(oe?!Mo(Te,oe):Te)||!ur(Se)||Re){const Ne={...Se,...Re&&Br(te)?{isValid:te}:{},errors:n.errors,name:Z};n={...n,...Ne},y.state.next(Ne)}},D=async Z=>(R(Z,!0),await t.resolver(i,t.context,lF(Z||u.mount,r,t.criteriaMode,t.shouldUseNativeValidation))),z=async Z=>{const{errors:te}=await D(Z);if(R(Z),Z)for(const oe of Z){const Se=Me(te,oe);Se?$t(n.errors,oe,Se):bn(n.errors,oe)}else n.errors=te;return te},W=async(Z,te,oe={valid:!0})=>{for(const Se in Z){const Te=Z[Se];if(Te){const{_f:Re,...Ne}=Te;if(Re){const rt=u.array.has(Re.name),st=Te._f&&uF(Te._f);st&&p.validatingFields&&R([Re.name],!0);const Pt=await jT(Te,u.disabled,i,w,t.shouldUseNativeValidation&&!te,rt);if(st&&p.validatingFields&&R([Re.name]),Pt[Re.name]&&(oe.valid=!1,te||e.shouldUseNativeValidation))break;!te&&(Me(Pt,Re.name)?rt?gF(n.errors,Pt,Re.name):$t(n.errors,Re.name,Pt[Re.name]):bn(n.errors,Re.name))}!ur(Ne)&&await W(Ne,te,oe)}}return oe.valid},V=()=>{for(const Z of u.unMount){const te=Me(r,Z);te&&(te._f.refs?te._f.refs.every(oe=>!Wy(oe)):!Wy(te._f.ref))&&_e(Z)}u.unMount=new Set},G=(Z,te)=>!t.disabled&&(Z&&te&&$t(i,Z,te),!Mo(P(),a)),U=(Z,te,oe)=>f_(Z,u,{...c.mount?i:Xt(te)?a:Zr(Z)?{[Z]:te}:te},oe,te),J=Z=>Lb(Me(c.mount?i:a,Z,t.shouldUnregister?Me(a,Z,[]):[])),ie=(Z,te,oe={})=>{const Se=Me(r,Z);let Te=te;if(Se){const Re=Se._f;Re&&(!Re.disabled&&$t(i,Z,xk(te,Re)),Te=qp(Re.ref)&&Cr(te)?"":te,Sk(Re.ref)?[...Re.ref.options].forEach(Ne=>Ne.selected=Te.includes(Ne.value)):Re.refs?_d(Re.ref)?Re.refs.forEach(Ne=>{(!Ne.defaultChecked||!Ne.disabled)&&(Array.isArray(Te)?Ne.checked=!!Te.find(rt=>rt===Ne.value):Ne.checked=Te===Ne.value||!!Te)}):Re.refs.forEach(Ne=>Ne.checked=Ne.value===Te):Bb(Re.ref)?Re.ref.value="":(Re.ref.value=Te,Re.ref.type||y.state.next({name:Z,values:_n(i)})))}(oe.shouldDirty||oe.shouldTouch)&&I(Z,Te,oe.shouldTouch,oe.shouldDirty,!0),oe.shouldValidate&&K(Z)},F=(Z,te,oe)=>{for(const Se in te){if(!te.hasOwnProperty(Se))return;const Te=te[Se],Re=Z+"."+Se,Ne=Me(r,Re);(u.array.has(Z)||En(Te)||Ne&&!Ne._f)&&!xi(Te)?F(Re,Te,oe):ie(Re,Te,oe)}},X=(Z,te,oe={})=>{const Se=Me(r,Z),Te=u.array.has(Z),Re=_n(te);$t(i,Z,Re),Te?(y.array.next({name:Z,values:_n(i)}),(p.isDirty||p.dirtyFields||g.isDirty||g.dirtyFields)&&oe.shouldDirty&&y.state.next({name:Z,dirtyFields:Bc(a,i),isDirty:G(Z,Re)})):Se&&!Se._f&&!Cr(Re)?F(Z,Re,oe):ie(Z,Re,oe),PT(Z,u)?y.state.next({...n,name:Z,values:_n(i)}):y.state.next({name:c.mount?Z:void 0,values:_n(i)})},ae=async Z=>{c.mount=!0;const te=Z.target;let oe=te.name,Se=!0;const Te=Me(r,oe),Re=st=>{Se=Number.isNaN(st)||xi(st)&&isNaN(st.getTime())||Mo(st,Me(i,oe,st))},Ne=NT(t.mode),rt=NT(t.reValidateMode);if(Te){let st,Pt;const hr=te.type?kT(Te._f):vk(Z),Rn=Z.type===Bp.BLUR||Z.type===Bp.FOCUS_OUT,Un=!dF(Te._f)&&!t.resolver&&!Me(n.errors,oe)&&!Te._f.deps||pF(Rn,Me(n.touchedFields,oe),n.isSubmitted,rt,Ne),en=PT(oe,u,Rn);$t(i,oe,hr),Rn?(!te||!te.readOnly)&&(Te._f.onBlur&&Te._f.onBlur(Z),d&&d(0)):Te._f.onChange&&Te._f.onChange(Z);const zn=I(oe,hr,Rn),kn=!ur(zn)||en;if(!Rn&&y.state.next({name:oe,type:Z.type,values:_n(i)}),Un)return(p.isValid||g.isValid)&&(t.mode==="onBlur"?Rn&&b():Rn||b()),kn&&y.state.next({name:oe,...en?{}:zn});if(!Rn&&en&&y.state.next({...n}),t.resolver){const{errors:Bi}=await D([oe]);if(R([oe]),Re(hr),Se){const Zs=DT(n.errors,r,oe),kr=DT(Bi,r,Zs.name||oe);st=kr.error,oe=kr.name,Pt=ur(Bi)}}else R([oe],!0),st=(await jT(Te,u.disabled,i,w,t.shouldUseNativeValidation))[oe],R([oe]),Re(hr),Se&&(st?Pt=!1:(p.isValid||g.isValid)&&(Pt=await W(r,!0)));Se&&(Te._f.deps&&(!Array.isArray(Te._f.deps)||Te._f.deps.length>0)&&K(Te._f.deps),N(oe,Pt,st,zn))}},fe=(Z,te)=>{if(Me(n.errors,te)&&Z.focus)return Z.focus(),1},K=async(Z,te={})=>{let oe,Se;const Te=Hu(Z);if(t.resolver){const Re=await z(Xt(Z)?Z:Te);oe=ur(Re),Se=Z?!Te.some(Ne=>Me(Re,Ne)):oe}else Z?(Se=(await Promise.all(Te.map(async Re=>{const Ne=Me(r,Re);return await W(Ne&&Ne._f?{[Re]:Ne}:Ne)}))).every(Boolean),!(!Se&&!n.isValid)&&b()):Se=oe=await W(r);return y.state.next({...!Zr(Z)||(p.isValid||g.isValid)&&oe!==n.isValid?{}:{name:Z},...t.resolver||!Z?{isValid:oe}:{},errors:n.errors}),te.shouldFocus&&!Se&&Gu(r,fe,Z?Te:u.mount),Se},P=(Z,te)=>{let oe={...c.mount?i:a};return te&&(oe=wk(te.dirtyFields?n.dirtyFields:n.touchedFields,oe)),Xt(Z)?oe:Zr(Z)?Me(oe,Z):Z.map(Se=>Me(oe,Se))},q=(Z,te)=>({invalid:!!Me((te||n).errors,Z),isDirty:!!Me((te||n).dirtyFields,Z),error:Me((te||n).errors,Z),isValidating:!!Me(n.validatingFields,Z),isTouched:!!Me((te||n).touchedFields,Z)}),B=Z=>{const te=Z?Hu(Z):void 0;te?.forEach(oe=>bn(n.errors,oe)),te?te.forEach(oe=>{y.state.next({name:oe,errors:n.errors})}):y.state.next({errors:{}})},L=(Z,te,oe)=>{const Se=(Me(r,Z,{_f:{}})._f||{}).ref,Te=Me(n.errors,Z)||{},{ref:Re,message:Ne,type:rt,...st}=Te;$t(n.errors,Z,{...st,...te,ref:Se}),y.state.next({name:Z,errors:n.errors,isValid:!1}),oe&&oe.shouldFocus&&Se&&Se.focus&&Se.focus()},$=(Z,te)=>dr(Z)?y.state.subscribe({next:oe=>"values"in oe&&Z(U(void 0,te),oe)}):U(Z,te,!0),Q=Z=>y.state.subscribe({next:te=>{hF(Z.name,te.name,Z.exact)&&fF(te,Z.formState||p,Ye,Z.reRenderRoot)&&Z.callback({values:{...i},...n,...te,defaultValues:a})}}).unsubscribe,me=Z=>(c.mount=!0,g={...g,...Z.formState},Q({...Z,formState:{...m,...Z.formState}})),_e=(Z,te={})=>{for(const oe of Z?Hu(Z):u.mount)u.mount.delete(oe),u.array.delete(oe),te.keepValue||(bn(r,oe),bn(i,oe)),!te.keepError&&bn(n.errors,oe),!te.keepDirty&&bn(n.dirtyFields,oe),!te.keepTouched&&bn(n.touchedFields,oe),!te.keepIsValidating&&bn(n.validatingFields,oe),!t.shouldUnregister&&!te.keepDefaultValue&&bn(a,oe);y.state.next({values:_n(i)}),y.state.next({...n,...te.keepDirty?{isDirty:G()}:{}}),!te.keepIsValid&&b()},Ae=({disabled:Z,name:te})=>{if(Br(Z)&&c.mount||Z||u.disabled.has(te)){const Te=u.disabled.has(te)!==!!Z;Z?u.disabled.add(te):u.disabled.delete(te),Te&&c.mount&&!c.action&&b()}},ke=(Z,te={})=>{let oe=Me(r,Z);const Se=Br(te.disabled)||Br(t.disabled);return $t(r,Z,{...oe||{},_f:{...oe&&oe._f?oe._f:{ref:{name:Z}},name:Z,mount:!0,...te}}),u.mount.add(Z),oe?Ae({disabled:Br(te.disabled)?te.disabled:t.disabled,name:Z}):C(Z,!0,te.value),{...Se?{disabled:te.disabled||t.disabled}:{},...t.progressive?{required:!!te.required,min:Ru(te.min),max:Ru(te.max),minLength:Ru(te.minLength),maxLength:Ru(te.maxLength),pattern:Ru(te.pattern)}:{},name:Z,onChange:ae,onBlur:ae,ref:Te=>{if(Te){ke(Z,te),oe=Me(r,Z);const Re=Xt(Te.value)&&Te.querySelectorAll&&Te.querySelectorAll("input,select,textarea")[0]||Te,Ne=aF(Re),rt=oe._f.refs||[];if(Ne?rt.find(st=>st===Re):Re===oe._f.ref)return;$t(r,Z,{_f:{...oe._f,...Ne?{refs:[...rt.filter(Wy),Re,...Array.isArray(Me(a,Z))?[{}]:[]],ref:{type:Re.type,name:Z}}:{ref:Re}}}),C(Z,!1,void 0,Re)}else oe=Me(r,Z,{}),oe._f&&(oe._f.mount=!1),(t.shouldUnregister||te.shouldUnregister)&&!(yk(u.array,Z)&&c.action)&&u.unMount.add(Z)}}},H=()=>t.shouldFocusError&&Gu(r,fe,u.mount),ne=Z=>{Br(Z)&&(y.state.next({disabled:Z}),Gu(r,(te,oe)=>{const Se=Me(r,oe);Se&&(te.disabled=Se._f.disabled||Z,Array.isArray(Se._f.refs)&&Se._f.refs.forEach(Te=>{Te.disabled=Se._f.disabled||Z}))},0,!1))},be=(Z,te)=>async oe=>{let Se;oe&&(oe.preventDefault&&oe.preventDefault(),oe.persist&&oe.persist());let Te=_n(i);if(y.state.next({isSubmitting:!0}),t.resolver){const{errors:Re,values:Ne}=await D();R(),n.errors=Re,Te=_n(Ne)}else await W(r);if(u.disabled.size)for(const Re of u.disabled)bn(Te,Re);if(bn(n.errors,"root"),ur(n.errors)){y.state.next({errors:{}});try{await Z(Te,oe)}catch(Re){Se=Re}}else te&&await te({...n.errors},oe),H(),setTimeout(H);if(y.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:ur(n.errors)&&!Se,submitCount:n.submitCount+1,errors:n.errors}),Se)throw Se},pe=(Z,te={})=>{Me(r,Z)&&(Xt(te.defaultValue)?X(Z,_n(Me(a,Z))):(X(Z,te.defaultValue),$t(a,Z,_n(te.defaultValue))),te.keepTouched||bn(n.touchedFields,Z),te.keepDirty||(bn(n.dirtyFields,Z),n.isDirty=te.defaultValue?G(Z,_n(Me(a,Z))):G()),te.keepError||(bn(n.errors,Z),p.isValid&&b()),y.state.next({...n}))},ce=(Z,te={})=>{const oe=Z?_n(Z):a,Se=_n(oe),Te=ur(Z),Re=Te?a:Se;if(te.keepDefaultValues||(a=oe),!te.keepValues){if(te.keepDirtyValues){const Ne=new Set([...u.mount,...Object.keys(Bc(a,i))]);for(const rt of Array.from(Ne)){const st=Me(n.dirtyFields,rt),Pt=Me(i,rt),hr=Me(Re,rt);st&&!Xt(Pt)?$t(Re,rt,Pt):!st&&!Xt(hr)&&X(rt,hr)}}else{if(Db&&Xt(Z))for(const Ne of u.mount){const rt=Me(r,Ne);if(rt&&rt._f){const st=Array.isArray(rt._f.refs)?rt._f.refs[0]:rt._f.ref;if(qp(st)){const Pt=st.closest("form");if(Pt){Pt.reset();break}}}}if(te.keepFieldsRef)for(const Ne of u.mount)X(Ne,Me(Re,Ne));else r={}}i=t.shouldUnregister?te.keepDefaultValues?_n(a):{}:_n(Re),y.array.next({values:{...Re}}),y.state.next({values:{...Re}})}u={mount:te.keepDirtyValues?u.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},c.mount=!p.isValid||!!te.keepIsValid||!!te.keepDirtyValues||!t.shouldUnregister&&!ur(Re),c.watch=!!t.shouldUnregister,c.keepIsValid=!!te.keepIsValid,c.action=!1,te.keepErrors||(n.errors={}),y.state.next({submitCount:te.keepSubmitCount?n.submitCount:0,isDirty:Te?!1:te.keepDirty?n.isDirty:!!(te.keepDefaultValues&&!Mo(Z,a)),isSubmitted:te.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:Te?{}:te.keepDirtyValues?te.keepDefaultValues&&i?Bc(a,i):n.dirtyFields:te.keepDefaultValues&&Z?Bc(a,Z):te.keepDirty?n.dirtyFields:{},touchedFields:te.keepTouched?n.touchedFields:{},errors:te.keepErrors?n.errors:{},isSubmitSuccessful:te.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:a})},Oe=(Z,te)=>ce(dr(Z)?Z(i):Z,{...t.resetOptions,...te}),$e=(Z,te={})=>{const oe=Me(r,Z),Se=oe&&oe._f;if(Se){const Te=Se.refs?Se.refs[0]:Se.ref;Te.focus&&setTimeout(()=>{Te.focus(),te.shouldSelect&&dr(Te.select)&&Te.select()})}},Ye=Z=>{n={...n,...Z}},Xe={control:{register:ke,unregister:_e,getFieldState:q,handleSubmit:be,setError:L,_subscribe:Q,_runSchema:D,_updateIsValidating:R,_focusError:H,_getWatch:U,_getDirty:G,_setValid:b,_setFieldArray:E,_setDisabledField:Ae,_setErrors:O,_getFieldArray:J,_reset:ce,_resetDefaultValues:()=>dr(t.defaultValues)&&t.defaultValues().then(Z=>{Oe(Z,t.resetOptions),y.state.next({isLoading:!1})}),_removeUnmounted:V,_disableForm:ne,_subjects:y,_proxyFormState:p,get _fields(){return r},get _formValues(){return i},get _state(){return c},set _state(Z){c=Z},get _defaultValues(){return a},get _names(){return u},set _names(Z){u=Z},get _formState(){return n},get _options(){return t},set _options(Z){t={...t,...Z}}},subscribe:me,trigger:K,register:ke,handleSubmit:be,watch:$,setValue:X,getValues:P,reset:Oe,resetField:pe,clearErrors:B,unregister:_e,setError:L,setFocus:$e,getFieldState:q};return{...Xe,formControl:Xe}}function ra(e={}){const t=le.useRef(void 0),n=le.useRef(void 0),[r,a]=le.useState({isDirty:!1,isValidating:!1,isLoading:dr(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:dr(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:r},e.defaultValues&&!dr(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:c,...u}=yF(e);t.current={...u,formState:r}}const i=t.current.control;return i._options=e,zb(()=>{const c=i._subscribe({formState:i._proxyFormState,callback:()=>a({...i._formState}),reRenderRoot:!0});return a(u=>({...u,isReady:!0})),i._formState.isReady=!0,c},[i]),le.useEffect(()=>i._disableForm(e.disabled),[i,e.disabled]),le.useEffect(()=>{e.mode&&(i._options.mode=e.mode),e.reValidateMode&&(i._options.reValidateMode=e.reValidateMode)},[i,e.mode,e.reValidateMode]),le.useEffect(()=>{e.errors&&(i._setErrors(e.errors),i._focusError())},[i,e.errors]),le.useEffect(()=>{e.shouldUnregister&&i._subjects.state.next({values:i._getWatch()})},[i,e.shouldUnregister]),le.useEffect(()=>{if(i._proxyFormState.isDirty){const c=i._getDirty();c!==r.isDirty&&i._subjects.state.next({isDirty:c})}},[i,r.isDirty]),le.useEffect(()=>{var c;e.values&&!Mo(e.values,n.current)?(i._reset(e.values,{keepFieldsRef:!0,...i._options.resetOptions}),!((c=i._options.resetOptions)===null||c===void 0)&&c.keepIsValid||i._setValid(),n.current=e.values,a(u=>({...u}))):i._resetDefaultValues()},[i,e.values]),le.useEffect(()=>{i._state.mount||(i._setValid(),i._state.mount=!0),i._state.watch&&(i._state.watch=!1,i._subjects.state.next({...i._formState})),i._removeUnmounted()}),t.current.formState=le.useMemo(()=>_k(r,i),[i,r]),t.current}function $T(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function bd(...e){return t=>{let n=!1;const r=e.map(a=>{const i=$T(a,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let a=0;a<r.length;a++){const i=r[a];typeof i=="function"?i():$T(e[a],null)}}}}function An(...e){return A.useCallback(bd(...e),e)}var _F=Symbol.for("react.lazy"),Gp=ub[" use ".trim().toString()];function bF(e){return typeof e=="object"&&e!==null&&"then"in e}function Ok(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===_F&&"_payload"in e&&bF(e._payload)}function Ck(e){const t=wF(e),n=A.forwardRef((r,a)=>{let{children:i,...c}=r;Ok(i)&&typeof Gp=="function"&&(i=Gp(i._payload));const u=A.Children.toArray(i),d=u.find(EF);if(d){const f=d.props.children,m=u.map(p=>p===d?A.Children.count(f)>1?A.Children.only(null):A.isValidElement(f)?f.props.children:null:p);return x.jsx(t,{...c,ref:a,children:A.isValidElement(f)?A.cloneElement(f,void 0,m):null})}return x.jsx(t,{...c,ref:a,children:i})});return n.displayName=`${e}.Slot`,n}var Hb=Ck("Slot");function wF(e){const t=A.forwardRef((n,r)=>{let{children:a,...i}=n;if(Ok(a)&&typeof Gp=="function"&&(a=Gp(a._payload)),A.isValidElement(a)){const c=xF(a),u=RF(i,a.props);return a.type!==A.Fragment&&(u.ref=r?bd(r,c):c),A.cloneElement(a,u)}return A.Children.count(a)>1?A.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var SF=Symbol("radix.slottable");function EF(e){return A.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===SF}function RF(e,t){const n={...t};for(const r in t){const a=e[r],i=t[r];/^on[A-Z]/.test(r)?a&&i?n[r]=(...u)=>{const d=i(...u);return a(...u),d}:a&&(n[r]=a):r==="style"?n[r]={...a,...i}:r==="className"&&(n[r]=[a,i].filter(Boolean).join(" "))}return{...e,...n}}function xF(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const UT=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,zT=Eb,Ak=(e,t)=>n=>{var r;if(t?.variants==null)return zT(e,n?.class,n?.className);const{variants:a,defaultVariants:i}=t,c=Object.keys(a).map(f=>{const m=n?.[f],p=i?.[f];if(m===null)return null;const g=UT(m)||UT(p);return a[f][g]}),u=n&&Object.entries(n).reduce((f,m)=>{let[p,g]=m;return g===void 0||(f[p]=g),f},{}),d=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((f,m)=>{let{class:p,className:g,...y}=m;return Object.entries(y).every(w=>{let[S,b]=w;return Array.isArray(b)?b.includes({...i,...u}[S]):{...i,...u}[S]===b})?[...f,p,g]:f},[]);return zT(e,c,d,n?.class,n?.className)},VT=(e,t,n)=>{if(e&&"reportValidity"in e){const r=Me(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},m_=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?VT(r.ref,n,e):r&&r.refs&&r.refs.forEach(a=>VT(a,n,e))}},FT=(e,t)=>{t.shouldUseNativeValidation&&m_(e,t);const n={};for(const r in e){const a=Me(t.fields,r),i=Object.assign(e[r]||{},{ref:a&&a.ref});if(TF(t.names||Object.keys(e),r)){const c=Object.assign({},Me(n,r));$t(c,"root",i),$t(n,r,c)}else $t(n,r,i)}return n},TF=(e,t)=>{const n=BT(t);return e.some(r=>BT(r).match(`^${n}\\.\\d+`))};function BT(e){return e.replace(/\]|\[/g,"")}function qT(e,t){try{var n=e()}catch(r){return t(r)}return n&&n.then?n.then(void 0,t):n}function OF(e,t){for(var n={};e.length;){var r=e[0],a=r.code,i=r.message,c=r.path.join(".");if(!n[c])if("unionErrors"in r){var u=r.unionErrors[0].errors[0];n[c]={message:u.message,type:u.code}}else n[c]={message:i,type:a};if("unionErrors"in r&&r.unionErrors.forEach(function(m){return m.errors.forEach(function(p){return e.push(p)})}),t){var d=n[c].types,f=d&&d[r.code];n[c]=Fb(c,t,n,a,f?[].concat(f,r.message):r.message)}e.shift()}return n}function CF(e,t){for(var n={};e.length;){var r=e[0],a=r.code,i=r.message,c=r.path.join(".");if(!n[c])if(r.code==="invalid_union"&&r.errors.length>0){var u=r.errors[0][0];n[c]={message:u.message,type:u.code}}else n[c]={message:i,type:a};if(r.code==="invalid_union"&&r.errors.forEach(function(m){return m.forEach(function(p){return e.push(p)})}),t){var d=n[c].types,f=d&&d[r.code];n[c]=Fb(c,t,n,a,f?[].concat(f,r.message):r.message)}e.shift()}return n}function oa(e,t,n){if(n===void 0&&(n={}),(function(r){return"_def"in r&&typeof r._def=="object"&&"typeName"in r._def})(e))return function(r,a,i){try{return Promise.resolve(qT(function(){return Promise.resolve(e[n.mode==="sync"?"parse":"parseAsync"](r,t)).then(function(c){return i.shouldUseNativeValidation&&m_({},i),{errors:{},values:n.raw?Object.assign({},r):c}})},function(c){if((function(u){return Array.isArray(u?.issues)})(c))return{values:{},errors:FT(OF(c.errors,!i.shouldUseNativeValidation&&i.criteriaMode==="all"),i)};throw c}))}catch(c){return Promise.reject(c)}};if((function(r){return"_zod"in r&&typeof r._zod=="object"})(e))return function(r,a,i){try{return Promise.resolve(qT(function(){return Promise.resolve((n.mode==="sync"?K$:W$)(e,r,t)).then(function(c){return i.shouldUseNativeValidation&&m_({},i),{errors:{},values:n.raw?Object.assign({},r):c}})},function(c){if((function(u){return u instanceof Cb})(c))return{values:{},errors:FT(CF(c.issues,!i.shouldUseNativeValidation&&i.criteriaMode==="all"),i)};throw c}))}catch(c){return Promise.reject(c)}};throw new Error("Invalid input: not a Zod schema")}function ct(e,t,{checkForDefaultPrevented:n=!0}={}){return function(a){if(e?.(a),n===!1||!a.defaultPrevented)return t?.(a)}}function AF(e,t){const n=A.createContext(t),r=i=>{const{children:c,...u}=i,d=A.useMemo(()=>u,Object.values(u));return x.jsx(n.Provider,{value:d,children:c})};r.displayName=e+"Provider";function a(i){const c=A.useContext(n);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,a]}function zi(e,t=[]){let n=[];function r(i,c){const u=A.createContext(c),d=n.length;n=[...n,c];const f=p=>{const{scope:g,children:y,...w}=p,S=g?.[e]?.[d]||u,b=A.useMemo(()=>w,Object.values(w));return x.jsx(S.Provider,{value:b,children:y})};f.displayName=i+"Provider";function m(p,g){const y=g?.[e]?.[d]||u,w=A.useContext(y);if(w)return w;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${i}\``)}return[f,m]}const a=()=>{const i=n.map(c=>A.createContext(c));return function(u){const d=u?.[e]||i;return A.useMemo(()=>({[`__scope${e}`]:{...u,[e]:d}}),[u,d])}};return a.scopeName=e,[r,IF(a,...t)]}function IF(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(i){const c=r.reduce((u,{useScope:d,scopeName:f})=>{const p=d(i)[`__scope${f}`];return{...u,...p}},{});return A.useMemo(()=>({[`__scope${t.scopeName}`]:c}),[c])}};return n.scopeName=t.scopeName,n}var Lo=globalThis?.document?A.useLayoutEffect:()=>{},kF=ub[" useId ".trim().toString()]||(()=>{}),NF=0;function ks(e){const[t,n]=A.useState(kF());return Lo(()=>{n(r=>r??String(NF++))},[e]),e||(t?`radix-${t}`:"")}var MF=ub[" useInsertionEffect ".trim().toString()]||Lo;function wd({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[a,i,c]=PF({defaultProp:t,onChange:n}),u=e!==void 0,d=u?e:a;{const m=A.useRef(e!==void 0);A.useEffect(()=>{const p=m.current;p!==u&&console.warn(`${r} is changing from ${p?"controlled":"uncontrolled"} to ${u?"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=u},[u,r])}const f=A.useCallback(m=>{if(u){const p=DF(m)?m(e):m;p!==e&&c.current?.(p)}else i(m)},[u,e,i,c]);return[d,f]}function PF({defaultProp:e,onChange:t}){const[n,r]=A.useState(e),a=A.useRef(n),i=A.useRef(t);return MF(()=>{i.current=t},[t]),A.useEffect(()=>{a.current!==n&&(i.current?.(n),a.current=n)},[n,a]),[n,r,i]}function DF(e){return typeof e=="function"}function ad(e){const t=LF(e),n=A.forwardRef((r,a)=>{const{children:i,...c}=r,u=A.Children.toArray(i),d=u.find(jF);if(d){const f=d.props.children,m=u.map(p=>p===d?A.Children.count(f)>1?A.Children.only(null):A.isValidElement(f)?f.props.children:null:p);return x.jsx(t,{...c,ref:a,children:A.isValidElement(f)?A.cloneElement(f,void 0,m):null})}return x.jsx(t,{...c,ref:a,children:i})});return n.displayName=`${e}.Slot`,n}function LF(e){const t=A.forwardRef((n,r)=>{const{children:a,...i}=n;if(A.isValidElement(a)){const c=UF(a),u=$F(i,a.props);return a.type!==A.Fragment&&(u.ref=r?bd(r,c):c),A.cloneElement(a,u)}return A.Children.count(a)>1?A.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ik=Symbol("radix.slottable");function Ioe(e){const t=({children:n})=>x.jsx(x.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Ik,t}function jF(e){return A.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ik}function $F(e,t){const n={...t};for(const r in t){const a=e[r],i=t[r];/^on[A-Z]/.test(r)?a&&i?n[r]=(...u)=>{const d=i(...u);return a(...u),d}:a&&(n[r]=a):r==="style"?n[r]={...a,...i}:r==="className"&&(n[r]=[a,i].filter(Boolean).join(" "))}return{...e,...n}}function UF(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var zF=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],rn=zF.reduce((e,t)=>{const n=ad(`Primitive.${t}`),r=A.forwardRef((a,i)=>{const{asChild:c,...u}=a,d=c?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),x.jsx(d,{...u,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function kk(e,t){e&&xm.flushSync(()=>e.dispatchEvent(t))}function jo(e){const t=A.useRef(e);return A.useEffect(()=>{t.current=e}),A.useMemo(()=>(...n)=>t.current?.(...n),[])}function VF(e,t=globalThis?.document){const n=jo(e);A.useEffect(()=>{const r=a=>{a.key==="Escape"&&n(a)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var FF="DismissableLayer",g_="dismissableLayer.update",BF="dismissableLayer.pointerDownOutside",qF="dismissableLayer.focusOutside",HT,Nk=A.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Gb=A.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:a,onFocusOutside:i,onInteractOutside:c,onDismiss:u,...d}=e,f=A.useContext(Nk),[m,p]=A.useState(null),g=m?.ownerDocument??globalThis?.document,[,y]=A.useState({}),w=An(t,N=>p(N)),S=Array.from(f.layers),[b]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),R=S.indexOf(b),E=m?S.indexOf(m):-1,T=f.layersWithOutsidePointerEventsDisabled.size>0,O=E>=R,C=ZF(N=>{const D=N.target,z=[...f.branches].some(W=>W.contains(D));!O||z||(a?.(N),c?.(N),N.defaultPrevented||u?.())},g),I=KF(N=>{const D=N.target;[...f.branches].some(W=>W.contains(D))||(i?.(N),c?.(N),N.defaultPrevented||u?.())},g);return VF(N=>{E===f.layers.size-1&&(r?.(N),!N.defaultPrevented&&u&&(N.preventDefault(),u()))},g),A.useEffect(()=>{if(m)return n&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(HT=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(m)),f.layers.add(m),GT(),()=>{n&&f.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=HT)}},[m,g,n,f]),A.useEffect(()=>()=>{m&&(f.layers.delete(m),f.layersWithOutsidePointerEventsDisabled.delete(m),GT())},[m,f]),A.useEffect(()=>{const N=()=>y({});return document.addEventListener(g_,N),()=>document.removeEventListener(g_,N)},[]),x.jsx(rn.div,{...d,ref:w,style:{pointerEvents:T?O?"auto":"none":void 0,...e.style},onFocusCapture:ct(e.onFocusCapture,I.onFocusCapture),onBlurCapture:ct(e.onBlurCapture,I.onBlurCapture),onPointerDownCapture:ct(e.onPointerDownCapture,C.onPointerDownCapture)})});Gb.displayName=FF;var HF="DismissableLayerBranch",GF=A.forwardRef((e,t)=>{const n=A.useContext(Nk),r=A.useRef(null),a=An(t,r);return A.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),x.jsx(rn.div,{...e,ref:a})});GF.displayName=HF;function ZF(e,t=globalThis?.document){const n=jo(e),r=A.useRef(!1),a=A.useRef(()=>{});return A.useEffect(()=>{const i=u=>{if(u.target&&!r.current){let d=function(){Mk(BF,n,f,{discrete:!0})};const f={originalEvent:u};u.pointerType==="touch"?(t.removeEventListener("click",a.current),a.current=d,t.addEventListener("click",a.current,{once:!0})):d()}else t.removeEventListener("click",a.current);r.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",i),t.removeEventListener("click",a.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function KF(e,t=globalThis?.document){const n=jo(e),r=A.useRef(!1);return A.useEffect(()=>{const a=i=>{i.target&&!r.current&&Mk(qF,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",a),()=>t.removeEventListener("focusin",a)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function GT(){const e=new CustomEvent(g_);document.dispatchEvent(e)}function Mk(e,t,n,{discrete:r}){const a=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),r?kk(a,i):a.dispatchEvent(i)}var Yy="focusScope.autoFocusOnMount",Qy="focusScope.autoFocusOnUnmount",ZT={bubbles:!1,cancelable:!0},WF="FocusScope",Zb=A.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:a,onUnmountAutoFocus:i,...c}=e,[u,d]=A.useState(null),f=jo(a),m=jo(i),p=A.useRef(null),g=An(t,S=>d(S)),y=A.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;A.useEffect(()=>{if(r){let S=function(T){if(y.paused||!u)return;const O=T.target;u.contains(O)?p.current=O:_s(p.current,{select:!0})},b=function(T){if(y.paused||!u)return;const O=T.relatedTarget;O!==null&&(u.contains(O)||_s(p.current,{select:!0}))},R=function(T){if(document.activeElement===document.body)for(const C of T)C.removedNodes.length>0&&_s(u)};document.addEventListener("focusin",S),document.addEventListener("focusout",b);const E=new MutationObserver(R);return u&&E.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",S),document.removeEventListener("focusout",b),E.disconnect()}}},[r,u,y.paused]),A.useEffect(()=>{if(u){WT.add(y);const S=document.activeElement;if(!u.contains(S)){const R=new CustomEvent(Yy,ZT);u.addEventListener(Yy,f),u.dispatchEvent(R),R.defaultPrevented||(YF(tB(Pk(u)),{select:!0}),document.activeElement===S&&_s(u))}return()=>{u.removeEventListener(Yy,f),setTimeout(()=>{const R=new CustomEvent(Qy,ZT);u.addEventListener(Qy,m),u.dispatchEvent(R),R.defaultPrevented||_s(S??document.body,{select:!0}),u.removeEventListener(Qy,m),WT.remove(y)},0)}}},[u,f,m,y]);const w=A.useCallback(S=>{if(!n&&!r||y.paused)return;const b=S.key==="Tab"&&!S.altKey&&!S.ctrlKey&&!S.metaKey,R=document.activeElement;if(b&&R){const E=S.currentTarget,[T,O]=QF(E);T&&O?!S.shiftKey&&R===O?(S.preventDefault(),n&&_s(T,{select:!0})):S.shiftKey&&R===T&&(S.preventDefault(),n&&_s(O,{select:!0})):R===E&&S.preventDefault()}},[n,r,y.paused]);return x.jsx(rn.div,{tabIndex:-1,...c,ref:g,onKeyDown:w})});Zb.displayName=WF;function YF(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(_s(r,{select:t}),document.activeElement!==n)return}function QF(e){const t=Pk(e),n=KT(t,e),r=KT(t.reverse(),e);return[n,r]}function Pk(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const a=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||a?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function KT(e,t){for(const n of e)if(!XF(n,{upTo:t}))return n}function XF(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 JF(e){return e instanceof HTMLInputElement&&"select"in e}function _s(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&JF(e)&&t&&e.select()}}var WT=eB();function eB(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=YT(e,t),e.unshift(t)},remove(t){e=YT(e,t),e[0]?.resume()}}}function YT(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function tB(e){return e.filter(t=>t.tagName!=="A")}var nB="Portal",Kb=A.forwardRef((e,t)=>{const{container:n,...r}=e,[a,i]=A.useState(!1);Lo(()=>i(!0),[]);const c=n||a&&globalThis?.document?.body;return c?EA.createPortal(x.jsx(rn.div,{...r,ref:t}),c):null});Kb.displayName=nB;function rB(e,t){return A.useReducer((n,r)=>t[n][r]??n,e)}var za=e=>{const{present:t,children:n}=e,r=oB(t),a=typeof n=="function"?n({present:r.isPresent}):A.Children.only(n),i=An(r.ref,aB(a));return typeof n=="function"||r.isPresent?A.cloneElement(a,{ref:i}):null};za.displayName="Presence";function oB(e){const[t,n]=A.useState(),r=A.useRef(null),a=A.useRef(e),i=A.useRef("none"),c=e?"mounted":"unmounted",[u,d]=rB(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return A.useEffect(()=>{const f=uh(r.current);i.current=u==="mounted"?f:"none"},[u]),Lo(()=>{const f=r.current,m=a.current;if(m!==e){const g=i.current,y=uh(f);e?d("MOUNT"):y==="none"||f?.display==="none"?d("UNMOUNT"):d(m&&g!==y?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,d]),Lo(()=>{if(t){let f;const m=t.ownerDocument.defaultView??window,p=y=>{const S=uh(r.current).includes(CSS.escape(y.animationName));if(y.target===t&&S&&(d("ANIMATION_END"),!a.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",f=m.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},g=y=>{y.target===t&&(i.current=uh(r.current))};return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{m.clearTimeout(f),t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:A.useCallback(f=>{r.current=f?getComputedStyle(f):null,n(f)},[])}}function uh(e){return e?.animationName||"none"}function aB(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Xy=0;function Dk(){A.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??QT()),document.body.insertAdjacentElement("beforeend",e[1]??QT()),Xy++,()=>{Xy===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Xy--}},[])}function QT(){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 Xo=function(){return Xo=Object.assign||function(t){for(var n,r=1,a=arguments.length;r<a;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Xo.apply(this,arguments)};function Lk(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n}function sB(e,t,n){if(n||arguments.length===2)for(var r=0,a=t.length,i;r<a;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var mp="right-scroll-bar-position",gp="width-before-scroll-bar",iB="with-scroll-bars-hidden",cB="--removed-body-scroll-bar-size";function Jy(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function lB(e,t){var n=A.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var a=n.value;a!==r&&(n.value=r,n.callback(r,a))}}}})[0];return n.callback=t,n.facade}var uB=typeof window<"u"?A.useLayoutEffect:A.useEffect,XT=new WeakMap;function dB(e,t){var n=lB(null,function(r){return e.forEach(function(a){return Jy(a,r)})});return uB(function(){var r=XT.get(n);if(r){var a=new Set(r),i=new Set(e),c=n.current;a.forEach(function(u){i.has(u)||Jy(u,null)}),i.forEach(function(u){a.has(u)||Jy(u,c)})}XT.set(n,e)},[e]),n}function fB(e){return e}function hB(e,t){t===void 0&&(t=fB);var n=[],r=!1,a={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var c=t(i,r);return n.push(c),function(){n=n.filter(function(u){return u!==c})}},assignSyncMedium:function(i){for(r=!0;n.length;){var c=n;n=[],c.forEach(i)}n={push:function(u){return i(u)},filter:function(){return n}}},assignMedium:function(i){r=!0;var c=[];if(n.length){var u=n;n=[],u.forEach(i),c=n}var d=function(){var m=c;c=[],m.forEach(i)},f=function(){return Promise.resolve().then(d)};f(),n={push:function(m){c.push(m),f()},filter:function(m){return c=c.filter(m),n}}}};return a}function pB(e){e===void 0&&(e={});var t=hB(null);return t.options=Xo({async:!0,ssr:!1},e),t}var jk=function(e){var t=e.sideCar,n=Lk(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return A.createElement(r,Xo({},n))};jk.isSideCarExport=!0;function mB(e,t){return e.useMedium(t),jk}var $k=pB(),e0=function(){},jm=A.forwardRef(function(e,t){var n=A.useRef(null),r=A.useState({onScrollCapture:e0,onWheelCapture:e0,onTouchMoveCapture:e0}),a=r[0],i=r[1],c=e.forwardProps,u=e.children,d=e.className,f=e.removeScrollBar,m=e.enabled,p=e.shards,g=e.sideCar,y=e.noRelative,w=e.noIsolation,S=e.inert,b=e.allowPinchZoom,R=e.as,E=R===void 0?"div":R,T=e.gapMode,O=Lk(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=g,I=dB([n,t]),N=Xo(Xo({},O),a);return A.createElement(A.Fragment,null,m&&A.createElement(C,{sideCar:$k,removeScrollBar:f,shards:p,noRelative:y,noIsolation:w,inert:S,setCallbacks:i,allowPinchZoom:!!b,lockRef:n,gapMode:T}),c?A.cloneElement(A.Children.only(u),Xo(Xo({},N),{ref:I})):A.createElement(E,Xo({},N,{className:d,ref:I}),u))});jm.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};jm.classNames={fullWidth:gp,zeroRight:mp};var gB=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function vB(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=gB();return t&&e.setAttribute("nonce",t),e}function yB(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function _B(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var bB=function(){var e=0,t=null;return{add:function(n){e==0&&(t=vB())&&(yB(t,n),_B(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},wB=function(){var e=bB();return function(t,n){A.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Uk=function(){var e=wB(),t=function(n){var r=n.styles,a=n.dynamic;return e(r,a),null};return t},SB={left:0,top:0,right:0,gap:0},t0=function(e){return parseInt(e||"",10)||0},EB=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],a=t[e==="padding"?"paddingRight":"marginRight"];return[t0(n),t0(r),t0(a)]},RB=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return SB;var t=EB(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},xB=Uk(),rl="data-scroll-locked",TB=function(e,t,n,r){var a=e.left,i=e.top,c=e.right,u=e.gap;return n===void 0&&(n="margin"),`
|
|
62
|
-
.`.concat(iB,` {
|
|
63
|
-
overflow: hidden `).concat(r,`;
|
|
64
|
-
padding-right: `).concat(u,"px ").concat(r,`;
|
|
65
|
-
}
|
|
66
|
-
body[`).concat(rl,`] {
|
|
67
|
-
overflow: hidden `).concat(r,`;
|
|
68
|
-
overscroll-behavior: contain;
|
|
69
|
-
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
|
|
70
|
-
padding-left: `.concat(a,`px;
|
|
71
|
-
padding-top: `).concat(i,`px;
|
|
72
|
-
padding-right: `).concat(c,`px;
|
|
73
|
-
margin-left:0;
|
|
74
|
-
margin-top:0;
|
|
75
|
-
margin-right: `).concat(u,"px ").concat(r,`;
|
|
76
|
-
`),n==="padding"&&"padding-right: ".concat(u,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.`).concat(mp,` {
|
|
80
|
-
right: `).concat(u,"px ").concat(r,`;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.`).concat(gp,` {
|
|
84
|
-
margin-right: `).concat(u,"px ").concat(r,`;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.`).concat(mp," .").concat(mp,` {
|
|
88
|
-
right: 0 `).concat(r,`;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
.`).concat(gp," .").concat(gp,` {
|
|
92
|
-
margin-right: 0 `).concat(r,`;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
body[`).concat(rl,`] {
|
|
96
|
-
`).concat(cB,": ").concat(u,`px;
|
|
97
|
-
}
|
|
98
|
-
`)},JT=function(){var e=parseInt(document.body.getAttribute(rl)||"0",10);return isFinite(e)?e:0},OB=function(){A.useEffect(function(){return document.body.setAttribute(rl,(JT()+1).toString()),function(){var e=JT()-1;e<=0?document.body.removeAttribute(rl):document.body.setAttribute(rl,e.toString())}},[])},CB=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,a=r===void 0?"margin":r;OB();var i=A.useMemo(function(){return RB(a)},[a]);return A.createElement(xB,{styles:TB(i,!t,a,n?"":"!important")})},v_=!1;if(typeof window<"u")try{var dh=Object.defineProperty({},"passive",{get:function(){return v_=!0,!0}});window.addEventListener("test",dh,dh),window.removeEventListener("test",dh,dh)}catch{v_=!1}var Mc=v_?{passive:!1}:!1,AB=function(e){return e.tagName==="TEXTAREA"},zk=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!AB(e)&&n[t]==="visible")},IB=function(e){return zk(e,"overflowY")},kB=function(e){return zk(e,"overflowX")},eO=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var a=Vk(e,r);if(a){var i=Fk(e,r),c=i[1],u=i[2];if(c>u)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},NB=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},MB=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Vk=function(e,t){return e==="v"?IB(t):kB(t)},Fk=function(e,t){return e==="v"?NB(t):MB(t)},PB=function(e,t){return e==="h"&&t==="rtl"?-1:1},DB=function(e,t,n,r,a){var i=PB(e,window.getComputedStyle(t).direction),c=i*r,u=n.target,d=t.contains(u),f=!1,m=c>0,p=0,g=0;do{if(!u)break;var y=Fk(e,u),w=y[0],S=y[1],b=y[2],R=S-b-i*w;(w||R)&&Vk(e,u)&&(p+=R,g+=w);var E=u.parentNode;u=E&&E.nodeType===Node.DOCUMENT_FRAGMENT_NODE?E.host:E}while(!d&&u!==document.body||d&&(t.contains(u)||t===u));return(m&&Math.abs(p)<1||!m&&Math.abs(g)<1)&&(f=!0),f},fh=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},tO=function(e){return[e.deltaX,e.deltaY]},nO=function(e){return e&&"current"in e?e.current:e},LB=function(e,t){return e[0]===t[0]&&e[1]===t[1]},jB=function(e){return`
|
|
99
|
-
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
100
|
-
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
101
|
-
`)},$B=0,Pc=[];function UB(e){var t=A.useRef([]),n=A.useRef([0,0]),r=A.useRef(),a=A.useState($B++)[0],i=A.useState(Uk)[0],c=A.useRef(e);A.useEffect(function(){c.current=e},[e]),A.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var S=sB([e.lockRef.current],(e.shards||[]).map(nO),!0).filter(Boolean);return S.forEach(function(b){return b.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),S.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var u=A.useCallback(function(S,b){if("touches"in S&&S.touches.length===2||S.type==="wheel"&&S.ctrlKey)return!c.current.allowPinchZoom;var R=fh(S),E=n.current,T="deltaX"in S?S.deltaX:E[0]-R[0],O="deltaY"in S?S.deltaY:E[1]-R[1],C,I=S.target,N=Math.abs(T)>Math.abs(O)?"h":"v";if("touches"in S&&N==="h"&&I.type==="range")return!1;var D=window.getSelection(),z=D&&D.anchorNode,W=z?z===I||z.contains(I):!1;if(W)return!1;var V=eO(N,I);if(!V)return!0;if(V?C=N:(C=N==="v"?"h":"v",V=eO(N,I)),!V)return!1;if(!r.current&&"changedTouches"in S&&(T||O)&&(r.current=C),!C)return!0;var G=r.current||C;return DB(G,b,S,G==="h"?T:O)},[]),d=A.useCallback(function(S){var b=S;if(!(!Pc.length||Pc[Pc.length-1]!==i)){var R="deltaY"in b?tO(b):fh(b),E=t.current.filter(function(C){return C.name===b.type&&(C.target===b.target||b.target===C.shadowParent)&&LB(C.delta,R)})[0];if(E&&E.should){b.cancelable&&b.preventDefault();return}if(!E){var T=(c.current.shards||[]).map(nO).filter(Boolean).filter(function(C){return C.contains(b.target)}),O=T.length>0?u(b,T[0]):!c.current.noIsolation;O&&b.cancelable&&b.preventDefault()}}},[]),f=A.useCallback(function(S,b,R,E){var T={name:S,delta:b,target:R,should:E,shadowParent:zB(R)};t.current.push(T),setTimeout(function(){t.current=t.current.filter(function(O){return O!==T})},1)},[]),m=A.useCallback(function(S){n.current=fh(S),r.current=void 0},[]),p=A.useCallback(function(S){f(S.type,tO(S),S.target,u(S,e.lockRef.current))},[]),g=A.useCallback(function(S){f(S.type,fh(S),S.target,u(S,e.lockRef.current))},[]);A.useEffect(function(){return Pc.push(i),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:g}),document.addEventListener("wheel",d,Mc),document.addEventListener("touchmove",d,Mc),document.addEventListener("touchstart",m,Mc),function(){Pc=Pc.filter(function(S){return S!==i}),document.removeEventListener("wheel",d,Mc),document.removeEventListener("touchmove",d,Mc),document.removeEventListener("touchstart",m,Mc)}},[]);var y=e.removeScrollBar,w=e.inert;return A.createElement(A.Fragment,null,w?A.createElement(i,{styles:jB(a)}):null,y?A.createElement(CB,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function zB(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const VB=mB($k,UB);var Wb=A.forwardRef(function(e,t){return A.createElement(jm,Xo({},e,{ref:t,sideCar:VB}))});Wb.classNames=jm.classNames;var FB=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Dc=new WeakMap,hh=new WeakMap,ph={},n0=0,Bk=function(e){return e&&(e.host||Bk(e.parentNode))},BB=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Bk(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},qB=function(e,t,n,r){var a=BB(t,Array.isArray(e)?e:[e]);ph[n]||(ph[n]=new WeakMap);var i=ph[n],c=[],u=new Set,d=new Set(a),f=function(p){!p||u.has(p)||(u.add(p),f(p.parentNode))};a.forEach(f);var m=function(p){!p||d.has(p)||Array.prototype.forEach.call(p.children,function(g){if(u.has(g))m(g);else try{var y=g.getAttribute(r),w=y!==null&&y!=="false",S=(Dc.get(g)||0)+1,b=(i.get(g)||0)+1;Dc.set(g,S),i.set(g,b),c.push(g),S===1&&w&&hh.set(g,!0),b===1&&g.setAttribute(n,"true"),w||g.setAttribute(r,"true")}catch(R){console.error("aria-hidden: cannot operate on ",g,R)}})};return m(t),u.clear(),n0++,function(){c.forEach(function(p){var g=Dc.get(p)-1,y=i.get(p)-1;Dc.set(p,g),i.set(p,y),g||(hh.has(p)||p.removeAttribute(r),hh.delete(p)),y||p.removeAttribute(n)}),n0--,n0||(Dc=new WeakMap,Dc=new WeakMap,hh=new WeakMap,ph={})}},qk=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),a=FB(e);return a?(r.push.apply(r,Array.from(a.querySelectorAll("[aria-live], script"))),qB(r,a,n,"aria-hidden")):function(){return null}},$m="Dialog",[Hk,koe]=zi($m),[HB,zo]=Hk($m),Gk=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:a,onOpenChange:i,modal:c=!0}=e,u=A.useRef(null),d=A.useRef(null),[f,m]=wd({prop:r,defaultProp:a??!1,onChange:i,caller:$m});return x.jsx(HB,{scope:t,triggerRef:u,contentRef:d,contentId:ks(),titleId:ks(),descriptionId:ks(),open:f,onOpenChange:m,onOpenToggle:A.useCallback(()=>m(p=>!p),[m]),modal:c,children:n})};Gk.displayName=$m;var Zk="DialogTrigger",Kk=A.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=zo(Zk,n),i=An(t,a.triggerRef);return x.jsx(rn.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":Xb(a.open),...r,ref:i,onClick:ct(e.onClick,a.onOpenToggle)})});Kk.displayName=Zk;var Yb="DialogPortal",[GB,Wk]=Hk(Yb,{forceMount:void 0}),Yk=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:a}=e,i=zo(Yb,t);return x.jsx(GB,{scope:t,forceMount:n,children:A.Children.map(r,c=>x.jsx(za,{present:n||i.open,children:x.jsx(Kb,{asChild:!0,container:a,children:c})}))})};Yk.displayName=Yb;var Zp="DialogOverlay",Qk=A.forwardRef((e,t)=>{const n=Wk(Zp,e.__scopeDialog),{forceMount:r=n.forceMount,...a}=e,i=zo(Zp,e.__scopeDialog);return i.modal?x.jsx(za,{present:r||i.open,children:x.jsx(KB,{...a,ref:t})}):null});Qk.displayName=Zp;var ZB=ad("DialogOverlay.RemoveScroll"),KB=A.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=zo(Zp,n);return x.jsx(Wb,{as:ZB,allowPinchZoom:!0,shards:[a.contentRef],children:x.jsx(rn.div,{"data-state":Xb(a.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Mi="DialogContent",Xk=A.forwardRef((e,t)=>{const n=Wk(Mi,e.__scopeDialog),{forceMount:r=n.forceMount,...a}=e,i=zo(Mi,e.__scopeDialog);return x.jsx(za,{present:r||i.open,children:i.modal?x.jsx(WB,{...a,ref:t}):x.jsx(YB,{...a,ref:t})})});Xk.displayName=Mi;var WB=A.forwardRef((e,t)=>{const n=zo(Mi,e.__scopeDialog),r=A.useRef(null),a=An(t,n.contentRef,r);return A.useEffect(()=>{const i=r.current;if(i)return qk(i)},[]),x.jsx(Jk,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ct(e.onCloseAutoFocus,i=>{i.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:ct(e.onPointerDownOutside,i=>{const c=i.detail.originalEvent,u=c.button===0&&c.ctrlKey===!0;(c.button===2||u)&&i.preventDefault()}),onFocusOutside:ct(e.onFocusOutside,i=>i.preventDefault())})}),YB=A.forwardRef((e,t)=>{const n=zo(Mi,e.__scopeDialog),r=A.useRef(!1),a=A.useRef(!1);return x.jsx(Jk,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{e.onCloseAutoFocus?.(i),i.defaultPrevented||(r.current||n.triggerRef.current?.focus(),i.preventDefault()),r.current=!1,a.current=!1},onInteractOutside:i=>{e.onInteractOutside?.(i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(a.current=!0));const c=i.target;n.triggerRef.current?.contains(c)&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&a.current&&i.preventDefault()}})}),Jk=A.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:a,onCloseAutoFocus:i,...c}=e,u=zo(Mi,n),d=A.useRef(null),f=An(t,d);return Dk(),x.jsxs(x.Fragment,{children:[x.jsx(Zb,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:a,onUnmountAutoFocus:i,children:x.jsx(Gb,{role:"dialog",id:u.contentId,"aria-describedby":u.descriptionId,"aria-labelledby":u.titleId,"data-state":Xb(u.open),...c,ref:f,onDismiss:()=>u.onOpenChange(!1)})}),x.jsxs(x.Fragment,{children:[x.jsx(QB,{titleId:u.titleId}),x.jsx(JB,{contentRef:d,descriptionId:u.descriptionId})]})]})}),Qb="DialogTitle",eN=A.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=zo(Qb,n);return x.jsx(rn.h2,{id:a.titleId,...r,ref:t})});eN.displayName=Qb;var tN="DialogDescription",nN=A.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=zo(tN,n);return x.jsx(rn.p,{id:a.descriptionId,...r,ref:t})});nN.displayName=tN;var rN="DialogClose",oN=A.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=zo(rN,n);return x.jsx(rn.button,{type:"button",...r,ref:t,onClick:ct(e.onClick,()=>a.onOpenChange(!1))})});oN.displayName=rN;function Xb(e){return e?"open":"closed"}var aN="DialogTitleWarning",[Noe,sN]=AF(aN,{contentName:Mi,titleName:Qb,docsSlug:"dialog"}),QB=({titleId:e})=>{const t=sN(aN),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
102
|
-
|
|
103
|
-
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
104
|
-
|
|
105
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return A.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},XB="DialogDescriptionWarning",JB=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${sN(XB).contentName}}.`;return A.useEffect(()=>{const a=e.current?.getAttribute("aria-describedby");t&&a&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Moe=Gk,Poe=Kk,Doe=Yk,eq=Qk,tq=Xk,Loe=eN,joe=nN,$oe=oN;function iN(e){const t=e+"CollectionProvider",[n,r]=zi(t),[a,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),c=S=>{const{scope:b,children:R}=S,E=le.useRef(null),T=le.useRef(new Map).current;return x.jsx(a,{scope:b,itemMap:T,collectionRef:E,children:R})};c.displayName=t;const u=e+"CollectionSlot",d=ad(u),f=le.forwardRef((S,b)=>{const{scope:R,children:E}=S,T=i(u,R),O=An(b,T.collectionRef);return x.jsx(d,{ref:O,children:E})});f.displayName=u;const m=e+"CollectionItemSlot",p="data-radix-collection-item",g=ad(m),y=le.forwardRef((S,b)=>{const{scope:R,children:E,...T}=S,O=le.useRef(null),C=An(b,O),I=i(m,R);return le.useEffect(()=>(I.itemMap.set(O,{ref:O,...T}),()=>{I.itemMap.delete(O)})),x.jsx(g,{[p]:"",ref:C,children:E})});y.displayName=m;function w(S){const b=i(e+"CollectionConsumer",S);return le.useCallback(()=>{const E=b.collectionRef.current;if(!E)return[];const T=Array.from(E.querySelectorAll(`[${p}]`));return Array.from(b.itemMap.values()).sort((I,N)=>T.indexOf(I.ref.current)-T.indexOf(N.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:c,Slot:f,ItemSlot:y},w,r]}var nq=A.createContext(void 0);function cN(e){const t=A.useContext(nq);return e||t||"ltr"}const rq=["top","right","bottom","left"],Ls=Math.min,Hr=Math.max,Kp=Math.round,mh=Math.floor,ea=e=>({x:e,y:e}),oq={left:"right",right:"left",bottom:"top",top:"bottom"};function y_(e,t,n){return Hr(e,Ls(t,n))}function Pa(e,t){return typeof e=="function"?e(t):e}function Da(e){return e.split("-")[0]}function Rl(e){return e.split("-")[1]}function Jb(e){return e==="x"?"y":"x"}function e1(e){return e==="y"?"height":"width"}function Jo(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function t1(e){return Jb(Jo(e))}function aq(e,t,n){n===void 0&&(n=!1);const r=Rl(e),a=t1(e),i=e1(a);let c=a==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(c=Wp(c)),[c,Wp(c)]}function sq(e){const t=Wp(e);return[__(e),t,__(t)]}function __(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const rO=["left","right"],oO=["right","left"],iq=["top","bottom"],cq=["bottom","top"];function lq(e,t,n){switch(e){case"top":case"bottom":return n?t?oO:rO:t?rO:oO;case"left":case"right":return t?iq:cq;default:return[]}}function uq(e,t,n,r){const a=Rl(e);let i=lq(Da(e),n==="start",r);return a&&(i=i.map(c=>c+"-"+a),t&&(i=i.concat(i.map(__)))),i}function Wp(e){const t=Da(e);return oq[t]+e.slice(t.length)}function dq(e){return{top:0,right:0,bottom:0,left:0,...e}}function lN(e){return typeof e!="number"?dq(e):{top:e,right:e,bottom:e,left:e}}function Yp(e){const{x:t,y:n,width:r,height:a}=e;return{width:r,height:a,top:n,left:t,right:t+r,bottom:n+a,x:t,y:n}}function aO(e,t,n){let{reference:r,floating:a}=e;const i=Jo(t),c=t1(t),u=e1(c),d=Da(t),f=i==="y",m=r.x+r.width/2-a.width/2,p=r.y+r.height/2-a.height/2,g=r[u]/2-a[u]/2;let y;switch(d){case"top":y={x:m,y:r.y-a.height};break;case"bottom":y={x:m,y:r.y+r.height};break;case"right":y={x:r.x+r.width,y:p};break;case"left":y={x:r.x-a.width,y:p};break;default:y={x:r.x,y:r.y}}switch(Rl(t)){case"start":y[c]-=g*(n&&f?-1:1);break;case"end":y[c]+=g*(n&&f?-1:1);break}return y}async function fq(e,t){var n;t===void 0&&(t={});const{x:r,y:a,platform:i,rects:c,elements:u,strategy:d}=e,{boundary:f="clippingAncestors",rootBoundary:m="viewport",elementContext:p="floating",altBoundary:g=!1,padding:y=0}=Pa(t,e),w=lN(y),b=u[g?p==="floating"?"reference":"floating":p],R=Yp(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(b)))==null||n?b:b.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(u.floating)),boundary:f,rootBoundary:m,strategy:d})),E=p==="floating"?{x:r,y:a,width:c.floating.width,height:c.floating.height}:c.reference,T=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u.floating)),O=await(i.isElement==null?void 0:i.isElement(T))?await(i.getScale==null?void 0:i.getScale(T))||{x:1,y:1}:{x:1,y:1},C=Yp(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:u,rect:E,offsetParent:T,strategy:d}):E);return{top:(R.top-C.top+w.top)/O.y,bottom:(C.bottom-R.bottom+w.bottom)/O.y,left:(R.left-C.left+w.left)/O.x,right:(C.right-R.right+w.right)/O.x}}const hq=50,pq=async(e,t,n)=>{const{placement:r="bottom",strategy:a="absolute",middleware:i=[],platform:c}=n,u=c.detectOverflow?c:{...c,detectOverflow:fq},d=await(c.isRTL==null?void 0:c.isRTL(t));let f=await c.getElementRects({reference:e,floating:t,strategy:a}),{x:m,y:p}=aO(f,r,d),g=r,y=0;const w={};for(let S=0;S<i.length;S++){const b=i[S];if(!b)continue;const{name:R,fn:E}=b,{x:T,y:O,data:C,reset:I}=await E({x:m,y:p,initialPlacement:r,placement:g,strategy:a,middlewareData:w,rects:f,platform:u,elements:{reference:e,floating:t}});m=T??m,p=O??p,w[R]={...w[R],...C},I&&y<hq&&(y++,typeof I=="object"&&(I.placement&&(g=I.placement),I.rects&&(f=I.rects===!0?await c.getElementRects({reference:e,floating:t,strategy:a}):I.rects),{x:m,y:p}=aO(f,g,d)),S=-1)}return{x:m,y:p,placement:g,strategy:a,middlewareData:w}},mq=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:a,rects:i,platform:c,elements:u,middlewareData:d}=t,{element:f,padding:m=0}=Pa(e,t)||{};if(f==null)return{};const p=lN(m),g={x:n,y:r},y=t1(a),w=e1(y),S=await c.getDimensions(f),b=y==="y",R=b?"top":"left",E=b?"bottom":"right",T=b?"clientHeight":"clientWidth",O=i.reference[w]+i.reference[y]-g[y]-i.floating[w],C=g[y]-i.reference[y],I=await(c.getOffsetParent==null?void 0:c.getOffsetParent(f));let N=I?I[T]:0;(!N||!await(c.isElement==null?void 0:c.isElement(I)))&&(N=u.floating[T]||i.floating[w]);const D=O/2-C/2,z=N/2-S[w]/2-1,W=Ls(p[R],z),V=Ls(p[E],z),G=W,U=N-S[w]-V,J=N/2-S[w]/2+D,ie=y_(G,J,U),F=!d.arrow&&Rl(a)!=null&&J!==ie&&i.reference[w]/2-(J<G?W:V)-S[w]/2<0,X=F?J<G?J-G:J-U:0;return{[y]:g[y]+X,data:{[y]:ie,centerOffset:J-ie-X,...F&&{alignmentOffset:X}},reset:F}}}),gq=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:a,middlewareData:i,rects:c,initialPlacement:u,platform:d,elements:f}=t,{mainAxis:m=!0,crossAxis:p=!0,fallbackPlacements:g,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:S=!0,...b}=Pa(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const R=Da(a),E=Jo(u),T=Da(u)===u,O=await(d.isRTL==null?void 0:d.isRTL(f.floating)),C=g||(T||!S?[Wp(u)]:sq(u)),I=w!=="none";!g&&I&&C.push(...uq(u,S,w,O));const N=[u,...C],D=await d.detectOverflow(t,b),z=[];let W=((r=i.flip)==null?void 0:r.overflows)||[];if(m&&z.push(D[R]),p){const J=aq(a,c,O);z.push(D[J[0]],D[J[1]])}if(W=[...W,{placement:a,overflows:z}],!z.every(J=>J<=0)){var V,G;const J=(((V=i.flip)==null?void 0:V.index)||0)+1,ie=N[J];if(ie&&(!(p==="alignment"?E!==Jo(ie):!1)||W.every(ae=>Jo(ae.placement)===E?ae.overflows[0]>0:!0)))return{data:{index:J,overflows:W},reset:{placement:ie}};let F=(G=W.filter(X=>X.overflows[0]<=0).sort((X,ae)=>X.overflows[1]-ae.overflows[1])[0])==null?void 0:G.placement;if(!F)switch(y){case"bestFit":{var U;const X=(U=W.filter(ae=>{if(I){const fe=Jo(ae.placement);return fe===E||fe==="y"}return!0}).map(ae=>[ae.placement,ae.overflows.filter(fe=>fe>0).reduce((fe,K)=>fe+K,0)]).sort((ae,fe)=>ae[1]-fe[1])[0])==null?void 0:U[0];X&&(F=X);break}case"initialPlacement":F=u;break}if(a!==F)return{reset:{placement:F}}}return{}}}};function sO(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function iO(e){return rq.some(t=>e[t]>=0)}const vq=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:a="referenceHidden",...i}=Pa(e,t);switch(a){case"referenceHidden":{const c=await r.detectOverflow(t,{...i,elementContext:"reference"}),u=sO(c,n.reference);return{data:{referenceHiddenOffsets:u,referenceHidden:iO(u)}}}case"escaped":{const c=await r.detectOverflow(t,{...i,altBoundary:!0}),u=sO(c,n.floating);return{data:{escapedOffsets:u,escaped:iO(u)}}}default:return{}}}}},uN=new Set(["left","top"]);async function yq(e,t){const{placement:n,platform:r,elements:a}=e,i=await(r.isRTL==null?void 0:r.isRTL(a.floating)),c=Da(n),u=Rl(n),d=Jo(n)==="y",f=uN.has(c)?-1:1,m=i&&d?-1:1,p=Pa(t,e);let{mainAxis:g,crossAxis:y,alignmentAxis:w}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return u&&typeof w=="number"&&(y=u==="end"?w*-1:w),d?{x:y*m,y:g*f}:{x:g*f,y:y*m}}const _q=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:a,y:i,placement:c,middlewareData:u}=t,d=await yq(t,e);return c===((n=u.offset)==null?void 0:n.placement)&&(r=u.arrow)!=null&&r.alignmentOffset?{}:{x:a+d.x,y:i+d.y,data:{...d,placement:c}}}}},bq=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:a,platform:i}=t,{mainAxis:c=!0,crossAxis:u=!1,limiter:d={fn:R=>{let{x:E,y:T}=R;return{x:E,y:T}}},...f}=Pa(e,t),m={x:n,y:r},p=await i.detectOverflow(t,f),g=Jo(Da(a)),y=Jb(g);let w=m[y],S=m[g];if(c){const R=y==="y"?"top":"left",E=y==="y"?"bottom":"right",T=w+p[R],O=w-p[E];w=y_(T,w,O)}if(u){const R=g==="y"?"top":"left",E=g==="y"?"bottom":"right",T=S+p[R],O=S-p[E];S=y_(T,S,O)}const b=d.fn({...t,[y]:w,[g]:S});return{...b,data:{x:b.x-n,y:b.y-r,enabled:{[y]:c,[g]:u}}}}}},wq=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:a,rects:i,middlewareData:c}=t,{offset:u=0,mainAxis:d=!0,crossAxis:f=!0}=Pa(e,t),m={x:n,y:r},p=Jo(a),g=Jb(p);let y=m[g],w=m[p];const S=Pa(u,t),b=typeof S=="number"?{mainAxis:S,crossAxis:0}:{mainAxis:0,crossAxis:0,...S};if(d){const T=g==="y"?"height":"width",O=i.reference[g]-i.floating[T]+b.mainAxis,C=i.reference[g]+i.reference[T]-b.mainAxis;y<O?y=O:y>C&&(y=C)}if(f){var R,E;const T=g==="y"?"width":"height",O=uN.has(Da(a)),C=i.reference[p]-i.floating[T]+(O&&((R=c.offset)==null?void 0:R[p])||0)+(O?0:b.crossAxis),I=i.reference[p]+i.reference[T]+(O?0:((E=c.offset)==null?void 0:E[p])||0)-(O?b.crossAxis:0);w<C?w=C:w>I&&(w=I)}return{[g]:y,[p]:w}}}},Sq=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:a,rects:i,platform:c,elements:u}=t,{apply:d=()=>{},...f}=Pa(e,t),m=await c.detectOverflow(t,f),p=Da(a),g=Rl(a),y=Jo(a)==="y",{width:w,height:S}=i.floating;let b,R;p==="top"||p==="bottom"?(b=p,R=g===(await(c.isRTL==null?void 0:c.isRTL(u.floating))?"start":"end")?"left":"right"):(R=p,b=g==="end"?"top":"bottom");const E=S-m.top-m.bottom,T=w-m.left-m.right,O=Ls(S-m[b],E),C=Ls(w-m[R],T),I=!t.middlewareData.shift;let N=O,D=C;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(D=T),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(N=E),I&&!g){const W=Hr(m.left,0),V=Hr(m.right,0),G=Hr(m.top,0),U=Hr(m.bottom,0);y?D=w-2*(W!==0||V!==0?W+V:Hr(m.left,m.right)):N=S-2*(G!==0||U!==0?G+U:Hr(m.top,m.bottom))}await d({...t,availableWidth:D,availableHeight:N});const z=await c.getDimensions(u.floating);return w!==z.width||S!==z.height?{reset:{rects:!0}}:{}}}};function Um(){return typeof window<"u"}function xl(e){return dN(e)?(e.nodeName||"").toLowerCase():"#document"}function Kr(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function aa(e){var t;return(t=(dN(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function dN(e){return Um()?e instanceof Node||e instanceof Kr(e).Node:!1}function $o(e){return Um()?e instanceof Element||e instanceof Kr(e).Element:!1}function Va(e){return Um()?e instanceof HTMLElement||e instanceof Kr(e).HTMLElement:!1}function cO(e){return!Um()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Kr(e).ShadowRoot}function Sd(e){const{overflow:t,overflowX:n,overflowY:r,display:a}=Uo(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&a!=="inline"&&a!=="contents"}function Eq(e){return/^(table|td|th)$/.test(xl(e))}function zm(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const Rq=/transform|translate|scale|rotate|perspective|filter/,xq=/paint|layout|strict|content/,pi=e=>!!e&&e!=="none";let r0;function n1(e){const t=$o(e)?Uo(e):e;return pi(t.transform)||pi(t.translate)||pi(t.scale)||pi(t.rotate)||pi(t.perspective)||!r1()&&(pi(t.backdropFilter)||pi(t.filter))||Rq.test(t.willChange||"")||xq.test(t.contain||"")}function Tq(e){let t=js(e);for(;Va(t)&&!fl(t);){if(n1(t))return t;if(zm(t))return null;t=js(t)}return null}function r1(){return r0==null&&(r0=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),r0}function fl(e){return/^(html|body|#document)$/.test(xl(e))}function Uo(e){return Kr(e).getComputedStyle(e)}function Vm(e){return $o(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function js(e){if(xl(e)==="html")return e;const t=e.assignedSlot||e.parentNode||cO(e)&&e.host||aa(e);return cO(t)?t.host:t}function fN(e){const t=js(e);return fl(t)?e.ownerDocument?e.ownerDocument.body:e.body:Va(t)&&Sd(t)?t:fN(t)}function sd(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const a=fN(e),i=a===((r=e.ownerDocument)==null?void 0:r.body),c=Kr(a);if(i){const u=b_(c);return t.concat(c,c.visualViewport||[],Sd(a)?a:[],u&&n?sd(u):[])}else return t.concat(a,sd(a,[],n))}function b_(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function hN(e){const t=Uo(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const a=Va(e),i=a?e.offsetWidth:n,c=a?e.offsetHeight:r,u=Kp(n)!==i||Kp(r)!==c;return u&&(n=i,r=c),{width:n,height:r,$:u}}function o1(e){return $o(e)?e:e.contextElement}function ol(e){const t=o1(e);if(!Va(t))return ea(1);const n=t.getBoundingClientRect(),{width:r,height:a,$:i}=hN(t);let c=(i?Kp(n.width):n.width)/r,u=(i?Kp(n.height):n.height)/a;return(!c||!Number.isFinite(c))&&(c=1),(!u||!Number.isFinite(u))&&(u=1),{x:c,y:u}}const Oq=ea(0);function pN(e){const t=Kr(e);return!r1()||!t.visualViewport?Oq:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Cq(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Kr(e)?!1:t}function Pi(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const a=e.getBoundingClientRect(),i=o1(e);let c=ea(1);t&&(r?$o(r)&&(c=ol(r)):c=ol(e));const u=Cq(i,n,r)?pN(i):ea(0);let d=(a.left+u.x)/c.x,f=(a.top+u.y)/c.y,m=a.width/c.x,p=a.height/c.y;if(i){const g=Kr(i),y=r&&$o(r)?Kr(r):r;let w=g,S=b_(w);for(;S&&r&&y!==w;){const b=ol(S),R=S.getBoundingClientRect(),E=Uo(S),T=R.left+(S.clientLeft+parseFloat(E.paddingLeft))*b.x,O=R.top+(S.clientTop+parseFloat(E.paddingTop))*b.y;d*=b.x,f*=b.y,m*=b.x,p*=b.y,d+=T,f+=O,w=Kr(S),S=b_(w)}}return Yp({width:m,height:p,x:d,y:f})}function Fm(e,t){const n=Vm(e).scrollLeft;return t?t.left+n:Pi(aa(e)).left+n}function mN(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Fm(e,n),a=n.top+t.scrollTop;return{x:r,y:a}}function Aq(e){let{elements:t,rect:n,offsetParent:r,strategy:a}=e;const i=a==="fixed",c=aa(r),u=t?zm(t.floating):!1;if(r===c||u&&i)return n;let d={scrollLeft:0,scrollTop:0},f=ea(1);const m=ea(0),p=Va(r);if((p||!p&&!i)&&((xl(r)!=="body"||Sd(c))&&(d=Vm(r)),p)){const y=Pi(r);f=ol(r),m.x=y.x+r.clientLeft,m.y=y.y+r.clientTop}const g=c&&!p&&!i?mN(c,d):ea(0);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-d.scrollLeft*f.x+m.x+g.x,y:n.y*f.y-d.scrollTop*f.y+m.y+g.y}}function Iq(e){return Array.from(e.getClientRects())}function kq(e){const t=aa(e),n=Vm(e),r=e.ownerDocument.body,a=Hr(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Hr(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let c=-n.scrollLeft+Fm(e);const u=-n.scrollTop;return Uo(r).direction==="rtl"&&(c+=Hr(t.clientWidth,r.clientWidth)-a),{width:a,height:i,x:c,y:u}}const lO=25;function Nq(e,t){const n=Kr(e),r=aa(e),a=n.visualViewport;let i=r.clientWidth,c=r.clientHeight,u=0,d=0;if(a){i=a.width,c=a.height;const m=r1();(!m||m&&t==="fixed")&&(u=a.offsetLeft,d=a.offsetTop)}const f=Fm(r);if(f<=0){const m=r.ownerDocument,p=m.body,g=getComputedStyle(p),y=m.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,w=Math.abs(r.clientWidth-p.clientWidth-y);w<=lO&&(i-=w)}else f<=lO&&(i+=f);return{width:i,height:c,x:u,y:d}}function Mq(e,t){const n=Pi(e,!0,t==="fixed"),r=n.top+e.clientTop,a=n.left+e.clientLeft,i=Va(e)?ol(e):ea(1),c=e.clientWidth*i.x,u=e.clientHeight*i.y,d=a*i.x,f=r*i.y;return{width:c,height:u,x:d,y:f}}function uO(e,t,n){let r;if(t==="viewport")r=Nq(e,n);else if(t==="document")r=kq(aa(e));else if($o(t))r=Mq(t,n);else{const a=pN(e);r={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return Yp(r)}function gN(e,t){const n=js(e);return n===t||!$o(n)||fl(n)?!1:Uo(n).position==="fixed"||gN(n,t)}function Pq(e,t){const n=t.get(e);if(n)return n;let r=sd(e,[],!1).filter(u=>$o(u)&&xl(u)!=="body"),a=null;const i=Uo(e).position==="fixed";let c=i?js(e):e;for(;$o(c)&&!fl(c);){const u=Uo(c),d=n1(c);!d&&u.position==="fixed"&&(a=null),(i?!d&&!a:!d&&u.position==="static"&&!!a&&(a.position==="absolute"||a.position==="fixed")||Sd(c)&&!d&&gN(e,c))?r=r.filter(m=>m!==c):a=u,c=js(c)}return t.set(e,r),r}function Dq(e){let{element:t,boundary:n,rootBoundary:r,strategy:a}=e;const c=[...n==="clippingAncestors"?zm(t)?[]:Pq(t,this._c):[].concat(n),r],u=uO(t,c[0],a);let d=u.top,f=u.right,m=u.bottom,p=u.left;for(let g=1;g<c.length;g++){const y=uO(t,c[g],a);d=Hr(y.top,d),f=Ls(y.right,f),m=Ls(y.bottom,m),p=Hr(y.left,p)}return{width:f-p,height:m-d,x:p,y:d}}function Lq(e){const{width:t,height:n}=hN(e);return{width:t,height:n}}function jq(e,t,n){const r=Va(t),a=aa(t),i=n==="fixed",c=Pi(e,!0,i,t);let u={scrollLeft:0,scrollTop:0};const d=ea(0);function f(){d.x=Fm(a)}if(r||!r&&!i)if((xl(t)!=="body"||Sd(a))&&(u=Vm(t)),r){const y=Pi(t,!0,i,t);d.x=y.x+t.clientLeft,d.y=y.y+t.clientTop}else a&&f();i&&!r&&a&&f();const m=a&&!r&&!i?mN(a,u):ea(0),p=c.left+u.scrollLeft-d.x-m.x,g=c.top+u.scrollTop-d.y-m.y;return{x:p,y:g,width:c.width,height:c.height}}function o0(e){return Uo(e).position==="static"}function dO(e,t){if(!Va(e)||Uo(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return aa(e)===n&&(n=n.ownerDocument.body),n}function vN(e,t){const n=Kr(e);if(zm(e))return n;if(!Va(e)){let a=js(e);for(;a&&!fl(a);){if($o(a)&&!o0(a))return a;a=js(a)}return n}let r=dO(e,t);for(;r&&Eq(r)&&o0(r);)r=dO(r,t);return r&&fl(r)&&o0(r)&&!n1(r)?n:r||Tq(e)||n}const $q=async function(e){const t=this.getOffsetParent||vN,n=this.getDimensions,r=await n(e.floating);return{reference:jq(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Uq(e){return Uo(e).direction==="rtl"}const zq={convertOffsetParentRelativeRectToViewportRelativeRect:Aq,getDocumentElement:aa,getClippingRect:Dq,getOffsetParent:vN,getElementRects:$q,getClientRects:Iq,getDimensions:Lq,getScale:ol,isElement:$o,isRTL:Uq};function yN(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Vq(e,t){let n=null,r;const a=aa(e);function i(){var u;clearTimeout(r),(u=n)==null||u.disconnect(),n=null}function c(u,d){u===void 0&&(u=!1),d===void 0&&(d=1),i();const f=e.getBoundingClientRect(),{left:m,top:p,width:g,height:y}=f;if(u||t(),!g||!y)return;const w=mh(p),S=mh(a.clientWidth-(m+g)),b=mh(a.clientHeight-(p+y)),R=mh(m),T={rootMargin:-w+"px "+-S+"px "+-b+"px "+-R+"px",threshold:Hr(0,Ls(1,d))||1};let O=!0;function C(I){const N=I[0].intersectionRatio;if(N!==d){if(!O)return c();N?c(!1,N):r=setTimeout(()=>{c(!1,1e-7)},1e3)}N===1&&!yN(f,e.getBoundingClientRect())&&c(),O=!1}try{n=new IntersectionObserver(C,{...T,root:a.ownerDocument})}catch{n=new IntersectionObserver(C,T)}n.observe(e)}return c(!0),i}function Fq(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:a=!0,ancestorResize:i=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:u=typeof IntersectionObserver=="function",animationFrame:d=!1}=r,f=o1(e),m=a||i?[...f?sd(f):[],...t?sd(t):[]]:[];m.forEach(R=>{a&&R.addEventListener("scroll",n,{passive:!0}),i&&R.addEventListener("resize",n)});const p=f&&u?Vq(f,n):null;let g=-1,y=null;c&&(y=new ResizeObserver(R=>{let[E]=R;E&&E.target===f&&y&&t&&(y.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var T;(T=y)==null||T.observe(t)})),n()}),f&&!d&&y.observe(f),t&&y.observe(t));let w,S=d?Pi(e):null;d&&b();function b(){const R=Pi(e);S&&!yN(S,R)&&n(),S=R,w=requestAnimationFrame(b)}return n(),()=>{var R;m.forEach(E=>{a&&E.removeEventListener("scroll",n),i&&E.removeEventListener("resize",n)}),p?.(),(R=y)==null||R.disconnect(),y=null,d&&cancelAnimationFrame(w)}}const Bq=_q,qq=bq,Hq=gq,Gq=Sq,Zq=vq,fO=mq,Kq=wq,Wq=(e,t,n)=>{const r=new Map,a={platform:zq,...n},i={...a.platform,_c:r};return pq(e,t,{...a,platform:i})};var Yq=typeof document<"u",Qq=function(){},vp=Yq?A.useLayoutEffect:Qq;function Qp(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,a;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Qp(e[r],t[r]))return!1;return!0}if(a=Object.keys(e),n=a.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,a[r]))return!1;for(r=n;r--!==0;){const i=a[r];if(!(i==="_owner"&&e.$$typeof)&&!Qp(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function _N(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function hO(e,t){const n=_N(e);return Math.round(t*n)/n}function a0(e){const t=A.useRef(e);return vp(()=>{t.current=e}),t}function Xq(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:a,elements:{reference:i,floating:c}={},transform:u=!0,whileElementsMounted:d,open:f}=e,[m,p]=A.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,y]=A.useState(r);Qp(g,r)||y(r);const[w,S]=A.useState(null),[b,R]=A.useState(null),E=A.useCallback(ae=>{ae!==I.current&&(I.current=ae,S(ae))},[]),T=A.useCallback(ae=>{ae!==N.current&&(N.current=ae,R(ae))},[]),O=i||w,C=c||b,I=A.useRef(null),N=A.useRef(null),D=A.useRef(m),z=d!=null,W=a0(d),V=a0(a),G=a0(f),U=A.useCallback(()=>{if(!I.current||!N.current)return;const ae={placement:t,strategy:n,middleware:g};V.current&&(ae.platform=V.current),Wq(I.current,N.current,ae).then(fe=>{const K={...fe,isPositioned:G.current!==!1};J.current&&!Qp(D.current,K)&&(D.current=K,xm.flushSync(()=>{p(K)}))})},[g,t,n,V,G]);vp(()=>{f===!1&&D.current.isPositioned&&(D.current.isPositioned=!1,p(ae=>({...ae,isPositioned:!1})))},[f]);const J=A.useRef(!1);vp(()=>(J.current=!0,()=>{J.current=!1}),[]),vp(()=>{if(O&&(I.current=O),C&&(N.current=C),O&&C){if(W.current)return W.current(O,C,U);U()}},[O,C,U,W,z]);const ie=A.useMemo(()=>({reference:I,floating:N,setReference:E,setFloating:T}),[E,T]),F=A.useMemo(()=>({reference:O,floating:C}),[O,C]),X=A.useMemo(()=>{const ae={position:n,left:0,top:0};if(!F.floating)return ae;const fe=hO(F.floating,m.x),K=hO(F.floating,m.y);return u?{...ae,transform:"translate("+fe+"px, "+K+"px)",..._N(F.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:fe,top:K}},[n,u,F.floating,m.x,m.y]);return A.useMemo(()=>({...m,update:U,refs:ie,elements:F,floatingStyles:X}),[m,U,ie,F,X])}const Jq=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:a}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?fO({element:r.current,padding:a}).fn(n):{}:r?fO({element:r,padding:a}).fn(n):{}}}},eH=(e,t)=>{const n=Bq(e);return{name:n.name,fn:n.fn,options:[e,t]}},tH=(e,t)=>{const n=qq(e);return{name:n.name,fn:n.fn,options:[e,t]}},nH=(e,t)=>({fn:Kq(e).fn,options:[e,t]}),rH=(e,t)=>{const n=Hq(e);return{name:n.name,fn:n.fn,options:[e,t]}},oH=(e,t)=>{const n=Gq(e);return{name:n.name,fn:n.fn,options:[e,t]}},aH=(e,t)=>{const n=Zq(e);return{name:n.name,fn:n.fn,options:[e,t]}},sH=(e,t)=>{const n=Jq(e);return{name:n.name,fn:n.fn,options:[e,t]}};var iH="Arrow",bN=A.forwardRef((e,t)=>{const{children:n,width:r=10,height:a=5,...i}=e;return x.jsx(rn.svg,{...i,ref:t,width:r,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:x.jsx("polygon",{points:"0,0 30,0 15,10"})})});bN.displayName=iH;var cH=bN;function wN(e){const[t,n]=A.useState(void 0);return Lo(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const i=a[0];let c,u;if("borderBoxSize"in i){const d=i.borderBoxSize,f=Array.isArray(d)?d[0]:d;c=f.inlineSize,u=f.blockSize}else c=e.offsetWidth,u=e.offsetHeight;n({width:c,height:u})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var a1="Popper",[SN,EN]=zi(a1),[lH,RN]=SN(a1),xN=e=>{const{__scopePopper:t,children:n}=e,[r,a]=A.useState(null);return x.jsx(lH,{scope:t,anchor:r,onAnchorChange:a,children:n})};xN.displayName=a1;var TN="PopperAnchor",ON=A.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...a}=e,i=RN(TN,n),c=A.useRef(null),u=An(t,c),d=A.useRef(null);return A.useEffect(()=>{const f=d.current;d.current=r?.current||c.current,f!==d.current&&i.onAnchorChange(d.current)}),r?null:x.jsx(rn.div,{...a,ref:u})});ON.displayName=TN;var s1="PopperContent",[uH,dH]=SN(s1),CN=A.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:a=0,align:i="center",alignOffset:c=0,arrowPadding:u=0,avoidCollisions:d=!0,collisionBoundary:f=[],collisionPadding:m=0,sticky:p="partial",hideWhenDetached:g=!1,updatePositionStrategy:y="optimized",onPlaced:w,...S}=e,b=RN(s1,n),[R,E]=A.useState(null),T=An(t,me=>E(me)),[O,C]=A.useState(null),I=wN(O),N=I?.width??0,D=I?.height??0,z=r+(i!=="center"?"-"+i:""),W=typeof m=="number"?m:{top:0,right:0,bottom:0,left:0,...m},V=Array.isArray(f)?f:[f],G=V.length>0,U={padding:W,boundary:V.filter(hH),altBoundary:G},{refs:J,floatingStyles:ie,placement:F,isPositioned:X,middlewareData:ae}=Xq({strategy:"fixed",placement:z,whileElementsMounted:(...me)=>Fq(...me,{animationFrame:y==="always"}),elements:{reference:b.anchor},middleware:[eH({mainAxis:a+D,alignmentAxis:c}),d&&tH({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?nH():void 0,...U}),d&&rH({...U}),oH({...U,apply:({elements:me,rects:_e,availableWidth:Ae,availableHeight:ke})=>{const{width:H,height:ne}=_e.reference,be=me.floating.style;be.setProperty("--radix-popper-available-width",`${Ae}px`),be.setProperty("--radix-popper-available-height",`${ke}px`),be.setProperty("--radix-popper-anchor-width",`${H}px`),be.setProperty("--radix-popper-anchor-height",`${ne}px`)}}),O&&sH({element:O,padding:u}),pH({arrowWidth:N,arrowHeight:D}),g&&aH({strategy:"referenceHidden",...U})]}),[fe,K]=kN(F),P=jo(w);Lo(()=>{X&&P?.()},[X,P]);const q=ae.arrow?.x,B=ae.arrow?.y,L=ae.arrow?.centerOffset!==0,[$,Q]=A.useState();return Lo(()=>{R&&Q(window.getComputedStyle(R).zIndex)},[R]),x.jsx("div",{ref:J.setFloating,"data-radix-popper-content-wrapper":"",style:{...ie,transform:X?ie.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:$,"--radix-popper-transform-origin":[ae.transformOrigin?.x,ae.transformOrigin?.y].join(" "),...ae.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:x.jsx(uH,{scope:n,placedSide:fe,onArrowChange:C,arrowX:q,arrowY:B,shouldHideArrow:L,children:x.jsx(rn.div,{"data-side":fe,"data-align":K,...S,ref:T,style:{...S.style,animation:X?void 0:"none"}})})})});CN.displayName=s1;var AN="PopperArrow",fH={top:"bottom",right:"left",bottom:"top",left:"right"},IN=A.forwardRef(function(t,n){const{__scopePopper:r,...a}=t,i=dH(AN,r),c=fH[i.placedSide];return x.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[c]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:x.jsx(cH,{...a,ref:n,style:{...a.style,display:"block"}})})});IN.displayName=AN;function hH(e){return e!==null}var pH=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:a}=t,c=a.arrow?.centerOffset!==0,u=c?0:e.arrowWidth,d=c?0:e.arrowHeight,[f,m]=kN(n),p={start:"0%",center:"50%",end:"100%"}[m],g=(a.arrow?.x??0)+u/2,y=(a.arrow?.y??0)+d/2;let w="",S="";return f==="bottom"?(w=c?p:`${g}px`,S=`${-d}px`):f==="top"?(w=c?p:`${g}px`,S=`${r.floating.height+d}px`):f==="right"?(w=`${-d}px`,S=c?p:`${y}px`):f==="left"&&(w=`${r.floating.width+d}px`,S=c?p:`${y}px`),{data:{x:w,y:S}}}});function kN(e){const[t,n="center"]=e.split("-");return[t,n]}var NN=xN,mH=ON,gH=CN,vH=IN,s0="rovingFocusGroup.onEntryFocus",yH={bubbles:!1,cancelable:!0},Ed="RovingFocusGroup",[w_,MN,_H]=iN(Ed),[bH,PN]=zi(Ed,[_H]),[wH,SH]=bH(Ed),DN=A.forwardRef((e,t)=>x.jsx(w_.Provider,{scope:e.__scopeRovingFocusGroup,children:x.jsx(w_.Slot,{scope:e.__scopeRovingFocusGroup,children:x.jsx(EH,{...e,ref:t})})}));DN.displayName=Ed;var EH=A.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:a=!1,dir:i,currentTabStopId:c,defaultCurrentTabStopId:u,onCurrentTabStopIdChange:d,onEntryFocus:f,preventScrollOnEntryFocus:m=!1,...p}=e,g=A.useRef(null),y=An(t,g),w=cN(i),[S,b]=wd({prop:c,defaultProp:u??null,onChange:d,caller:Ed}),[R,E]=A.useState(!1),T=jo(f),O=MN(n),C=A.useRef(!1),[I,N]=A.useState(0);return A.useEffect(()=>{const D=g.current;if(D)return D.addEventListener(s0,T),()=>D.removeEventListener(s0,T)},[T]),x.jsx(wH,{scope:n,orientation:r,dir:w,loop:a,currentTabStopId:S,onItemFocus:A.useCallback(D=>b(D),[b]),onItemShiftTab:A.useCallback(()=>E(!0),[]),onFocusableItemAdd:A.useCallback(()=>N(D=>D+1),[]),onFocusableItemRemove:A.useCallback(()=>N(D=>D-1),[]),children:x.jsx(rn.div,{tabIndex:R||I===0?-1:0,"data-orientation":r,...p,ref:y,style:{outline:"none",...e.style},onMouseDown:ct(e.onMouseDown,()=>{C.current=!0}),onFocus:ct(e.onFocus,D=>{const z=!C.current;if(D.target===D.currentTarget&&z&&!R){const W=new CustomEvent(s0,yH);if(D.currentTarget.dispatchEvent(W),!W.defaultPrevented){const V=O().filter(F=>F.focusable),G=V.find(F=>F.active),U=V.find(F=>F.id===S),ie=[G,U,...V].filter(Boolean).map(F=>F.ref.current);$N(ie,m)}}C.current=!1}),onBlur:ct(e.onBlur,()=>E(!1))})})}),LN="RovingFocusGroupItem",jN=A.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:a=!1,tabStopId:i,children:c,...u}=e,d=ks(),f=i||d,m=SH(LN,n),p=m.currentTabStopId===f,g=MN(n),{onFocusableItemAdd:y,onFocusableItemRemove:w,currentTabStopId:S}=m;return A.useEffect(()=>{if(r)return y(),()=>w()},[r,y,w]),x.jsx(w_.ItemSlot,{scope:n,id:f,focusable:r,active:a,children:x.jsx(rn.span,{tabIndex:p?0:-1,"data-orientation":m.orientation,...u,ref:t,onMouseDown:ct(e.onMouseDown,b=>{r?m.onItemFocus(f):b.preventDefault()}),onFocus:ct(e.onFocus,()=>m.onItemFocus(f)),onKeyDown:ct(e.onKeyDown,b=>{if(b.key==="Tab"&&b.shiftKey){m.onItemShiftTab();return}if(b.target!==b.currentTarget)return;const R=TH(b,m.orientation,m.dir);if(R!==void 0){if(b.metaKey||b.ctrlKey||b.altKey||b.shiftKey)return;b.preventDefault();let T=g().filter(O=>O.focusable).map(O=>O.ref.current);if(R==="last")T.reverse();else if(R==="prev"||R==="next"){R==="prev"&&T.reverse();const O=T.indexOf(b.currentTarget);T=m.loop?OH(T,O+1):T.slice(O+1)}setTimeout(()=>$N(T))}}),children:typeof c=="function"?c({isCurrentTabStop:p,hasTabStop:S!=null}):c})})});jN.displayName=LN;var RH={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function xH(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function TH(e,t,n){const r=xH(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return RH[r]}function $N(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function OH(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var CH=DN,AH=jN,S_=["Enter"," "],IH=["ArrowDown","PageUp","Home"],UN=["ArrowUp","PageDown","End"],kH=[...IH,...UN],NH={ltr:[...S_,"ArrowRight"],rtl:[...S_,"ArrowLeft"]},MH={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Rd="Menu",[id,PH,DH]=iN(Rd),[Vi,zN]=zi(Rd,[DH,EN,PN]),xd=EN(),VN=PN(),[FN,qs]=Vi(Rd),[LH,Td]=Vi(Rd),BN=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:a,onOpenChange:i,modal:c=!0}=e,u=xd(t),[d,f]=A.useState(null),m=A.useRef(!1),p=jo(i),g=cN(a);return A.useEffect(()=>{const y=()=>{m.current=!0,document.addEventListener("pointerdown",w,{capture:!0,once:!0}),document.addEventListener("pointermove",w,{capture:!0,once:!0})},w=()=>m.current=!1;return document.addEventListener("keydown",y,{capture:!0}),()=>{document.removeEventListener("keydown",y,{capture:!0}),document.removeEventListener("pointerdown",w,{capture:!0}),document.removeEventListener("pointermove",w,{capture:!0})}},[]),x.jsx(NN,{...u,children:x.jsx(FN,{scope:t,open:n,onOpenChange:p,content:d,onContentChange:f,children:x.jsx(LH,{scope:t,onClose:A.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:m,dir:g,modal:c,children:r})})})};BN.displayName=Rd;var jH="MenuAnchor",i1=A.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,a=xd(n);return x.jsx(mH,{...a,...r,ref:t})});i1.displayName=jH;var c1="MenuPortal",[$H,qN]=Vi(c1,{forceMount:void 0}),HN=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:a}=e,i=qs(c1,t);return x.jsx($H,{scope:t,forceMount:n,children:x.jsx(za,{present:n||i.open,children:x.jsx(Kb,{asChild:!0,container:a,children:r})})})};HN.displayName=c1;var po="MenuContent",[UH,l1]=Vi(po),GN=A.forwardRef((e,t)=>{const n=qN(po,e.__scopeMenu),{forceMount:r=n.forceMount,...a}=e,i=qs(po,e.__scopeMenu),c=Td(po,e.__scopeMenu);return x.jsx(id.Provider,{scope:e.__scopeMenu,children:x.jsx(za,{present:r||i.open,children:x.jsx(id.Slot,{scope:e.__scopeMenu,children:c.modal?x.jsx(zH,{...a,ref:t}):x.jsx(VH,{...a,ref:t})})})})}),zH=A.forwardRef((e,t)=>{const n=qs(po,e.__scopeMenu),r=A.useRef(null),a=An(t,r);return A.useEffect(()=>{const i=r.current;if(i)return qk(i)},[]),x.jsx(u1,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:ct(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),VH=A.forwardRef((e,t)=>{const n=qs(po,e.__scopeMenu);return x.jsx(u1,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),FH=ad("MenuContent.ScrollLock"),u1=A.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:a,onOpenAutoFocus:i,onCloseAutoFocus:c,disableOutsidePointerEvents:u,onEntryFocus:d,onEscapeKeyDown:f,onPointerDownOutside:m,onFocusOutside:p,onInteractOutside:g,onDismiss:y,disableOutsideScroll:w,...S}=e,b=qs(po,n),R=Td(po,n),E=xd(n),T=VN(n),O=PH(n),[C,I]=A.useState(null),N=A.useRef(null),D=An(t,N,b.onContentChange),z=A.useRef(0),W=A.useRef(""),V=A.useRef(0),G=A.useRef(null),U=A.useRef("right"),J=A.useRef(0),ie=w?Wb:A.Fragment,F=w?{as:FH,allowPinchZoom:!0}:void 0,X=fe=>{const K=W.current+fe,P=O().filter(me=>!me.disabled),q=document.activeElement,B=P.find(me=>me.ref.current===q)?.textValue,L=P.map(me=>me.textValue),$=eG(L,K,B),Q=P.find(me=>me.textValue===$)?.ref.current;(function me(_e){W.current=_e,window.clearTimeout(z.current),_e!==""&&(z.current=window.setTimeout(()=>me(""),1e3))})(K),Q&&setTimeout(()=>Q.focus())};A.useEffect(()=>()=>window.clearTimeout(z.current),[]),Dk();const ae=A.useCallback(fe=>U.current===G.current?.side&&nG(fe,G.current?.area),[]);return x.jsx(UH,{scope:n,searchRef:W,onItemEnter:A.useCallback(fe=>{ae(fe)&&fe.preventDefault()},[ae]),onItemLeave:A.useCallback(fe=>{ae(fe)||(N.current?.focus(),I(null))},[ae]),onTriggerLeave:A.useCallback(fe=>{ae(fe)&&fe.preventDefault()},[ae]),pointerGraceTimerRef:V,onPointerGraceIntentChange:A.useCallback(fe=>{G.current=fe},[]),children:x.jsx(ie,{...F,children:x.jsx(Zb,{asChild:!0,trapped:a,onMountAutoFocus:ct(i,fe=>{fe.preventDefault(),N.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:c,children:x.jsx(Gb,{asChild:!0,disableOutsidePointerEvents:u,onEscapeKeyDown:f,onPointerDownOutside:m,onFocusOutside:p,onInteractOutside:g,onDismiss:y,children:x.jsx(CH,{asChild:!0,...T,dir:R.dir,orientation:"vertical",loop:r,currentTabStopId:C,onCurrentTabStopIdChange:I,onEntryFocus:ct(d,fe=>{R.isUsingKeyboardRef.current||fe.preventDefault()}),preventScrollOnEntryFocus:!0,children:x.jsx(gH,{role:"menu","aria-orientation":"vertical","data-state":l4(b.open),"data-radix-menu-content":"",dir:R.dir,...E,...S,ref:D,style:{outline:"none",...S.style},onKeyDown:ct(S.onKeyDown,fe=>{const P=fe.target.closest("[data-radix-menu-content]")===fe.currentTarget,q=fe.ctrlKey||fe.altKey||fe.metaKey,B=fe.key.length===1;P&&(fe.key==="Tab"&&fe.preventDefault(),!q&&B&&X(fe.key));const L=N.current;if(fe.target!==L||!kH.includes(fe.key))return;fe.preventDefault();const Q=O().filter(me=>!me.disabled).map(me=>me.ref.current);UN.includes(fe.key)&&Q.reverse(),XH(Q)}),onBlur:ct(e.onBlur,fe=>{fe.currentTarget.contains(fe.target)||(window.clearTimeout(z.current),W.current="")}),onPointerMove:ct(e.onPointerMove,cd(fe=>{const K=fe.target,P=J.current!==fe.clientX;if(fe.currentTarget.contains(K)&&P){const q=fe.clientX>J.current?"right":"left";U.current=q,J.current=fe.clientX}}))})})})})})})});GN.displayName=po;var BH="MenuGroup",d1=A.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return x.jsx(rn.div,{role:"group",...r,ref:t})});d1.displayName=BH;var qH="MenuLabel",ZN=A.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return x.jsx(rn.div,{...r,ref:t})});ZN.displayName=qH;var Xp="MenuItem",pO="menu.itemSelect",Bm=A.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...a}=e,i=A.useRef(null),c=Td(Xp,e.__scopeMenu),u=l1(Xp,e.__scopeMenu),d=An(t,i),f=A.useRef(!1),m=()=>{const p=i.current;if(!n&&p){const g=new CustomEvent(pO,{bubbles:!0,cancelable:!0});p.addEventListener(pO,y=>r?.(y),{once:!0}),kk(p,g),g.defaultPrevented?f.current=!1:c.onClose()}};return x.jsx(KN,{...a,ref:d,disabled:n,onClick:ct(e.onClick,m),onPointerDown:p=>{e.onPointerDown?.(p),f.current=!0},onPointerUp:ct(e.onPointerUp,p=>{f.current||p.currentTarget?.click()}),onKeyDown:ct(e.onKeyDown,p=>{const g=u.searchRef.current!=="";n||g&&p.key===" "||S_.includes(p.key)&&(p.currentTarget.click(),p.preventDefault())})})});Bm.displayName=Xp;var KN=A.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:a,...i}=e,c=l1(Xp,n),u=VN(n),d=A.useRef(null),f=An(t,d),[m,p]=A.useState(!1),[g,y]=A.useState("");return A.useEffect(()=>{const w=d.current;w&&y((w.textContent??"").trim())},[i.children]),x.jsx(id.ItemSlot,{scope:n,disabled:r,textValue:a??g,children:x.jsx(AH,{asChild:!0,...u,focusable:!r,children:x.jsx(rn.div,{role:"menuitem","data-highlighted":m?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...i,ref:f,onPointerMove:ct(e.onPointerMove,cd(w=>{r?c.onItemLeave(w):(c.onItemEnter(w),w.defaultPrevented||w.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:ct(e.onPointerLeave,cd(w=>c.onItemLeave(w))),onFocus:ct(e.onFocus,()=>p(!0)),onBlur:ct(e.onBlur,()=>p(!1))})})})}),HH="MenuCheckboxItem",WN=A.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...a}=e;return x.jsx(e4,{scope:e.__scopeMenu,checked:n,children:x.jsx(Bm,{role:"menuitemcheckbox","aria-checked":Jp(n)?"mixed":n,...a,ref:t,"data-state":p1(n),onSelect:ct(a.onSelect,()=>r?.(Jp(n)?!0:!n),{checkForDefaultPrevented:!1})})})});WN.displayName=HH;var YN="MenuRadioGroup",[GH,ZH]=Vi(YN,{value:void 0,onValueChange:()=>{}}),QN=A.forwardRef((e,t)=>{const{value:n,onValueChange:r,...a}=e,i=jo(r);return x.jsx(GH,{scope:e.__scopeMenu,value:n,onValueChange:i,children:x.jsx(d1,{...a,ref:t})})});QN.displayName=YN;var XN="MenuRadioItem",JN=A.forwardRef((e,t)=>{const{value:n,...r}=e,a=ZH(XN,e.__scopeMenu),i=n===a.value;return x.jsx(e4,{scope:e.__scopeMenu,checked:i,children:x.jsx(Bm,{role:"menuitemradio","aria-checked":i,...r,ref:t,"data-state":p1(i),onSelect:ct(r.onSelect,()=>a.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});JN.displayName=XN;var f1="MenuItemIndicator",[e4,KH]=Vi(f1,{checked:!1}),t4=A.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...a}=e,i=KH(f1,n);return x.jsx(za,{present:r||Jp(i.checked)||i.checked===!0,children:x.jsx(rn.span,{...a,ref:t,"data-state":p1(i.checked)})})});t4.displayName=f1;var WH="MenuSeparator",n4=A.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return x.jsx(rn.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});n4.displayName=WH;var YH="MenuArrow",r4=A.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,a=xd(n);return x.jsx(vH,{...a,...r,ref:t})});r4.displayName=YH;var h1="MenuSub",[QH,o4]=Vi(h1),a4=e=>{const{__scopeMenu:t,children:n,open:r=!1,onOpenChange:a}=e,i=qs(h1,t),c=xd(t),[u,d]=A.useState(null),[f,m]=A.useState(null),p=jo(a);return A.useEffect(()=>(i.open===!1&&p(!1),()=>p(!1)),[i.open,p]),x.jsx(NN,{...c,children:x.jsx(FN,{scope:t,open:r,onOpenChange:p,content:f,onContentChange:m,children:x.jsx(QH,{scope:t,contentId:ks(),triggerId:ks(),trigger:u,onTriggerChange:d,children:n})})})};a4.displayName=h1;var Pu="MenuSubTrigger",s4=A.forwardRef((e,t)=>{const n=qs(Pu,e.__scopeMenu),r=Td(Pu,e.__scopeMenu),a=o4(Pu,e.__scopeMenu),i=l1(Pu,e.__scopeMenu),c=A.useRef(null),{pointerGraceTimerRef:u,onPointerGraceIntentChange:d}=i,f={__scopeMenu:e.__scopeMenu},m=A.useCallback(()=>{c.current&&window.clearTimeout(c.current),c.current=null},[]);return A.useEffect(()=>m,[m]),A.useEffect(()=>{const p=u.current;return()=>{window.clearTimeout(p),d(null)}},[u,d]),x.jsx(i1,{asChild:!0,...f,children:x.jsx(KN,{id:a.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":a.contentId,"data-state":l4(n.open),...e,ref:bd(t,a.onTriggerChange),onClick:p=>{e.onClick?.(p),!(e.disabled||p.defaultPrevented)&&(p.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:ct(e.onPointerMove,cd(p=>{i.onItemEnter(p),!p.defaultPrevented&&!e.disabled&&!n.open&&!c.current&&(i.onPointerGraceIntentChange(null),c.current=window.setTimeout(()=>{n.onOpenChange(!0),m()},100))})),onPointerLeave:ct(e.onPointerLeave,cd(p=>{m();const g=n.content?.getBoundingClientRect();if(g){const y=n.content?.dataset.side,w=y==="right",S=w?-5:5,b=g[w?"left":"right"],R=g[w?"right":"left"];i.onPointerGraceIntentChange({area:[{x:p.clientX+S,y:p.clientY},{x:b,y:g.top},{x:R,y:g.top},{x:R,y:g.bottom},{x:b,y:g.bottom}],side:y}),window.clearTimeout(u.current),u.current=window.setTimeout(()=>i.onPointerGraceIntentChange(null),300)}else{if(i.onTriggerLeave(p),p.defaultPrevented)return;i.onPointerGraceIntentChange(null)}})),onKeyDown:ct(e.onKeyDown,p=>{const g=i.searchRef.current!=="";e.disabled||g&&p.key===" "||NH[r.dir].includes(p.key)&&(n.onOpenChange(!0),n.content?.focus(),p.preventDefault())})})})});s4.displayName=Pu;var i4="MenuSubContent",c4=A.forwardRef((e,t)=>{const n=qN(po,e.__scopeMenu),{forceMount:r=n.forceMount,...a}=e,i=qs(po,e.__scopeMenu),c=Td(po,e.__scopeMenu),u=o4(i4,e.__scopeMenu),d=A.useRef(null),f=An(t,d);return x.jsx(id.Provider,{scope:e.__scopeMenu,children:x.jsx(za,{present:r||i.open,children:x.jsx(id.Slot,{scope:e.__scopeMenu,children:x.jsx(u1,{id:u.contentId,"aria-labelledby":u.triggerId,...a,ref:f,align:"start",side:c.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:m=>{c.isUsingKeyboardRef.current&&d.current?.focus(),m.preventDefault()},onCloseAutoFocus:m=>m.preventDefault(),onFocusOutside:ct(e.onFocusOutside,m=>{m.target!==u.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:ct(e.onEscapeKeyDown,m=>{c.onClose(),m.preventDefault()}),onKeyDown:ct(e.onKeyDown,m=>{const p=m.currentTarget.contains(m.target),g=MH[c.dir].includes(m.key);p&&g&&(i.onOpenChange(!1),u.trigger?.focus(),m.preventDefault())})})})})})});c4.displayName=i4;function l4(e){return e?"open":"closed"}function Jp(e){return e==="indeterminate"}function p1(e){return Jp(e)?"indeterminate":e?"checked":"unchecked"}function XH(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function JH(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function eG(e,t,n){const a=t.length>1&&Array.from(t).every(f=>f===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let c=JH(e,Math.max(i,0));a.length===1&&(c=c.filter(f=>f!==n));const d=c.find(f=>f.toLowerCase().startsWith(a.toLowerCase()));return d!==n?d:void 0}function tG(e,t){const{x:n,y:r}=e;let a=!1;for(let i=0,c=t.length-1;i<t.length;c=i++){const u=t[i],d=t[c],f=u.x,m=u.y,p=d.x,g=d.y;m>r!=g>r&&n<(p-f)*(r-m)/(g-m)+f&&(a=!a)}return a}function nG(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return tG(n,t)}function cd(e){return t=>t.pointerType==="mouse"?e(t):void 0}var rG=BN,oG=i1,aG=HN,sG=GN,iG=d1,cG=ZN,lG=Bm,uG=WN,dG=QN,fG=JN,hG=t4,pG=n4,mG=r4,gG=a4,vG=s4,yG=c4,qm="DropdownMenu",[_G]=zi(qm,[zN]),sr=zN(),[bG,u4]=_G(qm),d4=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:a,defaultOpen:i,onOpenChange:c,modal:u=!0}=e,d=sr(t),f=A.useRef(null),[m,p]=wd({prop:a,defaultProp:i??!1,onChange:c,caller:qm});return x.jsx(bG,{scope:t,triggerId:ks(),triggerRef:f,contentId:ks(),open:m,onOpenChange:p,onOpenToggle:A.useCallback(()=>p(g=>!g),[p]),modal:u,children:x.jsx(rG,{...d,open:m,onOpenChange:p,dir:r,modal:u,children:n})})};d4.displayName=qm;var f4="DropdownMenuTrigger",h4=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...a}=e,i=u4(f4,n),c=sr(n);return x.jsx(oG,{asChild:!0,...c,children:x.jsx(rn.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...a,ref:bd(t,i.triggerRef),onPointerDown:ct(e.onPointerDown,u=>{!r&&u.button===0&&u.ctrlKey===!1&&(i.onOpenToggle(),i.open||u.preventDefault())}),onKeyDown:ct(e.onKeyDown,u=>{r||(["Enter"," "].includes(u.key)&&i.onOpenToggle(),u.key==="ArrowDown"&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(u.key)&&u.preventDefault())})})})});h4.displayName=f4;var wG="DropdownMenuPortal",p4=e=>{const{__scopeDropdownMenu:t,...n}=e,r=sr(t);return x.jsx(aG,{...r,...n})};p4.displayName=wG;var m4="DropdownMenuContent",g4=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=u4(m4,n),i=sr(n),c=A.useRef(!1);return x.jsx(sG,{id:a.contentId,"aria-labelledby":a.triggerId,...i,...r,ref:t,onCloseAutoFocus:ct(e.onCloseAutoFocus,u=>{c.current||a.triggerRef.current?.focus(),c.current=!1,u.preventDefault()}),onInteractOutside:ct(e.onInteractOutside,u=>{const d=u.detail.originalEvent,f=d.button===0&&d.ctrlKey===!0,m=d.button===2||f;(!a.modal||m)&&(c.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)"}})});g4.displayName=m4;var SG="DropdownMenuGroup",EG=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=sr(n);return x.jsx(iG,{...a,...r,ref:t})});EG.displayName=SG;var RG="DropdownMenuLabel",v4=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=sr(n);return x.jsx(cG,{...a,...r,ref:t})});v4.displayName=RG;var xG="DropdownMenuItem",y4=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=sr(n);return x.jsx(lG,{...a,...r,ref:t})});y4.displayName=xG;var TG="DropdownMenuCheckboxItem",_4=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=sr(n);return x.jsx(uG,{...a,...r,ref:t})});_4.displayName=TG;var OG="DropdownMenuRadioGroup",CG=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=sr(n);return x.jsx(dG,{...a,...r,ref:t})});CG.displayName=OG;var AG="DropdownMenuRadioItem",IG=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=sr(n);return x.jsx(fG,{...a,...r,ref:t})});IG.displayName=AG;var kG="DropdownMenuItemIndicator",b4=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=sr(n);return x.jsx(hG,{...a,...r,ref:t})});b4.displayName=kG;var NG="DropdownMenuSeparator",w4=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=sr(n);return x.jsx(pG,{...a,...r,ref:t})});w4.displayName=NG;var MG="DropdownMenuArrow",PG=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=sr(n);return x.jsx(mG,{...a,...r,ref:t})});PG.displayName=MG;var DG=e=>{const{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:a,defaultOpen:i}=e,c=sr(t),[u,d]=wd({prop:r,defaultProp:i??!1,onChange:a,caller:"DropdownMenuSub"});return x.jsx(gG,{...c,open:u,onOpenChange:d,children:n})},LG="DropdownMenuSubTrigger",S4=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=sr(n);return x.jsx(vG,{...a,...r,ref:t})});S4.displayName=LG;var jG="DropdownMenuSubContent",E4=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=sr(n);return x.jsx(yG,{...a,...r,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)"}})});E4.displayName=jG;var $G=d4,UG=h4,zG=p4,VG=g4,Uoe=v4,FG=y4,zoe=_4,Voe=b4,Foe=w4,Boe=DG,qoe=S4,Hoe=E4,BG=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Od=BG.reduce((e,t)=>{const n=Ck(`Primitive.${t}`),r=A.forwardRef((a,i)=>{const{asChild:c,...u}=a,d=c?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),x.jsx(d,{...u,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),qG="Label",R4=A.forwardRef((e,t)=>x.jsx(Od.label,{...e,ref:t,onMouseDown:n=>{n.target.closest("button, input, select, textarea")||(e.onMouseDown?.(n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));R4.displayName=qG;var HG=R4;function GG(e,t=[]){let n=[];function r(i,c){const u=A.createContext(c);u.displayName=i+"Context";const d=n.length;n=[...n,c];const f=p=>{const{scope:g,children:y,...w}=p,S=g?.[e]?.[d]||u,b=A.useMemo(()=>w,Object.values(w));return x.jsx(S.Provider,{value:b,children:y})};f.displayName=i+"Provider";function m(p,g){const y=g?.[e]?.[d]||u,w=A.useContext(y);if(w)return w;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${i}\``)}return[f,m]}const a=()=>{const i=n.map(c=>A.createContext(c));return function(u){const d=u?.[e]||i;return A.useMemo(()=>({[`__scope${e}`]:{...u,[e]:d}}),[u,d])}};return a.scopeName=e,[r,ZG(a,...t)]}function ZG(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(i){const c=r.reduce((u,{useScope:d,scopeName:f})=>{const p=d(i)[`__scope${f}`];return{...u,...p}},{});return A.useMemo(()=>({[`__scope${t.scopeName}`]:c}),[c])}};return n.scopeName=t.scopeName,n}var KG=bA();function WG(){return KG.useSyncExternalStore(YG,()=>!0,()=>!1)}function YG(){return()=>{}}var m1="Avatar",[QG]=GG(m1),[XG,x4]=QG(m1),T4=A.forwardRef((e,t)=>{const{__scopeAvatar:n,...r}=e,[a,i]=A.useState("idle");return x.jsx(XG,{scope:n,imageLoadingStatus:a,onImageLoadingStatusChange:i,children:x.jsx(Od.span,{...r,ref:t})})});T4.displayName=m1;var O4="AvatarImage",C4=A.forwardRef((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:a=()=>{},...i}=e,c=x4(O4,n),u=JG(r,i),d=jo(f=>{a(f),c.onImageLoadingStatusChange(f)});return Lo(()=>{u!=="idle"&&d(u)},[u,d]),u==="loaded"?x.jsx(Od.img,{...i,ref:t,src:r}):null});C4.displayName=O4;var A4="AvatarFallback",I4=A.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:r,...a}=e,i=x4(A4,n),[c,u]=A.useState(r===void 0);return A.useEffect(()=>{if(r!==void 0){const d=window.setTimeout(()=>u(!0),r);return()=>window.clearTimeout(d)}},[r]),c&&i.imageLoadingStatus!=="loaded"?x.jsx(Od.span,{...a,ref:t}):null});I4.displayName=A4;function mO(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function JG(e,{referrerPolicy:t,crossOrigin:n}){const r=WG(),a=A.useRef(null),i=r?(a.current||(a.current=new window.Image),a.current):null,[c,u]=A.useState(()=>mO(i,e));return Lo(()=>{u(mO(i,e))},[i,e]),Lo(()=>{const d=p=>()=>{u(p)};if(!i)return;const f=d("loaded"),m=d("error");return i.addEventListener("load",f),i.addEventListener("error",m),t&&(i.referrerPolicy=t),typeof n=="string"&&(i.crossOrigin=n),()=>{i.removeEventListener("load",f),i.removeEventListener("error",m)}},[i,n,t]),c}var eZ=T4,tZ=C4,nZ=I4;function rZ(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function g1(e,t,n=""){const r=rZ(e),a=e?.length;if(!r||t!==void 0){const c=n&&`"${n}" `,u="",d=r?`length=${a}`:`type=${typeof e}`;throw new Error(c+"expected Uint8Array"+u+", got "+d)}return e}function gO(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function oZ(e,t){g1(e,void 0,"digestInto() output");const n=t.outputLen;if(e.length<n)throw new Error('"digestInto() output" expected to be of length >='+n)}function E_(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function i0(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function Ko(e,t){return e<<32-t|e>>>t}const aZ=typeof Uint8Array.from([]).toHex=="function"&&typeof Uint8Array.fromHex=="function",sZ=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function iZ(e){if(g1(e),aZ)return e.toHex();let t="";for(let n=0;n<e.length;n++)t+=sZ[e[n]];return t}function cZ(e,t={}){const n=(a,i)=>e(i).update(a).digest(),r=e(void 0);return n.outputLen=r.outputLen,n.blockLen=r.blockLen,n.create=a=>e(a),Object.assign(n,t),Object.freeze(n)}const lZ=e=>({oid:Uint8Array.from([6,9,96,134,72,1,101,3,4,2,e])});function uZ(e,t,n){return e&t^~e&n}function dZ(e,t,n){return e&t^e&n^t&n}class fZ{blockLen;outputLen;padOffset;isLE;buffer;view;finished=!1;length=0;pos=0;destroyed=!1;constructor(t,n,r,a){this.blockLen=t,this.outputLen=n,this.padOffset=r,this.isLE=a,this.buffer=new Uint8Array(t),this.view=i0(this.buffer)}update(t){gO(this),g1(t);const{view:n,buffer:r,blockLen:a}=this,i=t.length;for(let c=0;c<i;){const u=Math.min(a-this.pos,i-c);if(u===a){const d=i0(t);for(;a<=i-c;c+=a)this.process(d,c);continue}r.set(t.subarray(c,c+u),this.pos),this.pos+=u,c+=u,this.pos===a&&(this.process(n,0),this.pos=0)}return this.length+=t.length,this.roundClean(),this}digestInto(t){gO(this),oZ(t,this),this.finished=!0;const{buffer:n,view:r,blockLen:a,isLE:i}=this;let{pos:c}=this;n[c++]=128,E_(this.buffer.subarray(c)),this.padOffset>a-c&&(this.process(r,0),c=0);for(let p=c;p<a;p++)n[p]=0;r.setBigUint64(a-8,BigInt(this.length*8),i),this.process(r,0);const u=i0(t),d=this.outputLen;if(d%4)throw new Error("_sha2: outputLen must be aligned to 32bit");const f=d/4,m=this.get();if(f>m.length)throw new Error("_sha2: outputLen bigger than state");for(let p=0;p<f;p++)u.setUint32(4*p,m[p],i)}digest(){const{buffer:t,outputLen:n}=this;this.digestInto(t);const r=t.slice(0,n);return this.destroy(),r}_cloneInto(t){t||=new this.constructor,t.set(...this.get());const{blockLen:n,buffer:r,length:a,finished:i,destroyed:c,pos:u}=this;return t.destroyed=c,t.finished=i,t.length=a,t.pos=u,a%n&&t.buffer.set(r),t}clone(){return this._cloneInto()}}const gs=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),hZ=Uint32Array.from([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),vs=new Uint32Array(64);class pZ extends fZ{constructor(t){super(64,t,8,!1)}get(){const{A:t,B:n,C:r,D:a,E:i,F:c,G:u,H:d}=this;return[t,n,r,a,i,c,u,d]}set(t,n,r,a,i,c,u,d){this.A=t|0,this.B=n|0,this.C=r|0,this.D=a|0,this.E=i|0,this.F=c|0,this.G=u|0,this.H=d|0}process(t,n){for(let p=0;p<16;p++,n+=4)vs[p]=t.getUint32(n,!1);for(let p=16;p<64;p++){const g=vs[p-15],y=vs[p-2],w=Ko(g,7)^Ko(g,18)^g>>>3,S=Ko(y,17)^Ko(y,19)^y>>>10;vs[p]=S+vs[p-7]+w+vs[p-16]|0}let{A:r,B:a,C:i,D:c,E:u,F:d,G:f,H:m}=this;for(let p=0;p<64;p++){const g=Ko(u,6)^Ko(u,11)^Ko(u,25),y=m+g+uZ(u,d,f)+hZ[p]+vs[p]|0,S=(Ko(r,2)^Ko(r,13)^Ko(r,22))+dZ(r,a,i)|0;m=f,f=d,d=u,u=c+y|0,c=i,i=a,a=r,r=y+S|0}r=r+this.A|0,a=a+this.B|0,i=i+this.C|0,c=c+this.D|0,u=u+this.E|0,d=d+this.F|0,f=f+this.G|0,m=m+this.H|0,this.set(r,a,i,c,u,d,f,m)}roundClean(){E_(vs)}destroy(){this.set(0,0,0,0,0,0,0,0),E_(this.buffer)}}class mZ extends pZ{A=gs[0]|0;B=gs[1]|0;C=gs[2]|0;D=gs[3]|0;E=gs[4]|0;F=gs[5]|0;G=gs[6]|0;H=gs[7]|0;constructor(){super(32)}}const gZ=cZ(()=>new mZ,lZ(1));function vZ(e){const t=A.useRef({value:e,previous:e});return A.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Hm="Checkbox",[yZ]=zi(Hm),[_Z,v1]=yZ(Hm);function bZ(e){const{__scopeCheckbox:t,checked:n,children:r,defaultChecked:a,disabled:i,form:c,name:u,onCheckedChange:d,required:f,value:m="on",internal_do_not_use_render:p}=e,[g,y]=wd({prop:n,defaultProp:a??!1,onChange:d,caller:Hm}),[w,S]=A.useState(null),[b,R]=A.useState(null),E=A.useRef(!1),T=w?!!c||!!w.closest("form"):!0,O={checked:g,disabled:i,setChecked:y,control:w,setControl:S,name:u,form:c,value:m,hasConsumerStoppedPropagationRef:E,required:f,defaultChecked:Ns(a)?!1:a,isFormControl:T,bubbleInput:b,setBubbleInput:R};return x.jsx(_Z,{scope:t,...O,children:wZ(p)?p(O):r})}var k4="CheckboxTrigger",N4=A.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},a)=>{const{control:i,value:c,disabled:u,checked:d,required:f,setControl:m,setChecked:p,hasConsumerStoppedPropagationRef:g,isFormControl:y,bubbleInput:w}=v1(k4,e),S=An(a,m),b=A.useRef(d);return A.useEffect(()=>{const R=i?.form;if(R){const E=()=>p(b.current);return R.addEventListener("reset",E),()=>R.removeEventListener("reset",E)}},[i,p]),x.jsx(rn.button,{type:"button",role:"checkbox","aria-checked":Ns(d)?"mixed":d,"aria-required":f,"data-state":$4(d),"data-disabled":u?"":void 0,disabled:u,value:c,...r,ref:S,onKeyDown:ct(t,R=>{R.key==="Enter"&&R.preventDefault()}),onClick:ct(n,R=>{p(E=>Ns(E)?!0:!E),w&&y&&(g.current=R.isPropagationStopped(),g.current||R.stopPropagation())})})});N4.displayName=k4;var M4=A.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:a,defaultChecked:i,required:c,disabled:u,value:d,onCheckedChange:f,form:m,...p}=e;return x.jsx(bZ,{__scopeCheckbox:n,checked:a,defaultChecked:i,disabled:u,required:c,onCheckedChange:f,name:r,form:m,value:d,internal_do_not_use_render:({isFormControl:g})=>x.jsxs(x.Fragment,{children:[x.jsx(N4,{...p,ref:t,__scopeCheckbox:n}),g&&x.jsx(j4,{__scopeCheckbox:n})]})})});M4.displayName=Hm;var P4="CheckboxIndicator",D4=A.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...a}=e,i=v1(P4,n);return x.jsx(za,{present:r||Ns(i.checked)||i.checked===!0,children:x.jsx(rn.span,{"data-state":$4(i.checked),"data-disabled":i.disabled?"":void 0,...a,ref:t,style:{pointerEvents:"none",...e.style}})})});D4.displayName=P4;var L4="CheckboxBubbleInput",j4=A.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:r,hasConsumerStoppedPropagationRef:a,checked:i,defaultChecked:c,required:u,disabled:d,name:f,value:m,form:p,bubbleInput:g,setBubbleInput:y}=v1(L4,e),w=An(n,y),S=vZ(i),b=wN(r);A.useEffect(()=>{const E=g;if(!E)return;const T=window.HTMLInputElement.prototype,C=Object.getOwnPropertyDescriptor(T,"checked").set,I=!a.current;if(S!==i&&C){const N=new Event("click",{bubbles:I});E.indeterminate=Ns(i),C.call(E,Ns(i)?!1:i),E.dispatchEvent(N)}},[g,S,i,a]);const R=A.useRef(Ns(i)?!1:i);return x.jsx(rn.input,{type:"checkbox","aria-hidden":!0,defaultChecked:c??R.current,required:u,disabled:d,name:f,value:m,form:p,...t,tabIndex:-1,ref:w,style:{...t.style,...b,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});j4.displayName=L4;function wZ(e){return typeof e=="function"}function Ns(e){return e==="indeterminate"}function $4(e){return Ns(e)?"indeterminate":e?"checked":"unchecked"}var U4={OBJECT:"object",UNDEFINED:"undefined"},gh="browser",vO="cpu",yO="device",c0="engine",vh="os",bs="name",em="type",R_="vendor",Co="version",x_="architecture",T_="major",O_="model",SZ="console",EZ="mobile",RZ="tablet",xZ="smarttv",TZ="wearable",OZ="embedded",CZ=typeof window!==U4.UNDEFINED,l0=CZ&&window.navigator?window.navigator:void 0;l0&&l0.userAgentData&&l0.userAgentData;var Gm=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},yh=function(e){for(var t in e)if(e.hasOwnProperty(t)){var n=e[t];typeof n==U4.OBJECT&&n.length==2?this[n[0]]=n[1]:this[n]=void 0}return this};(function(){var e={init:{},isIgnore:{},isIgnoreRgx:{},toString:{}};return yh.call(e.init,[[gh,[bs,Co,T_,em]],[vO,[x_]],[yO,[em,O_,R_]],[c0,[bs,Co]],[vh,[bs,Co]]]),yh.call(e.isIgnore,[[gh,[Co,T_]],[c0,[Co]],[vh,[Co]]]),yh.call(e.isIgnoreRgx,[[gh,/ ?browser$/i],[vh,/ ?os$/i]]),yh.call(e.toString,[[gh,[bs,Co]],[vO,[x_]],[yO,[R_,O_]],[c0,[bs,Co]],[vh,[bs,Co]]]),e})();Gm([bs,Co,T_,em]);Gm([x_]);Gm([O_,R_,em,SZ,EZ,xZ,RZ,TZ,OZ]);Gm([bs,Co]);function AZ(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const IZ=le.createContext({drawerRef:{current:null},overlayRef:{current:null},onPress:()=>{},onRelease:()=>{},onDrag:()=>{},onNestedDrag:()=>{},onNestedOpenChange:()=>{},onNestedRelease:()=>{},openProp:void 0,dismissible:!1,isOpen:!1,isDragging:!1,keyboardIsOpen:{current:!1},snapPointsOffset:null,snapPoints:null,handleOnly:!1,modal:!1,shouldFade:!1,activeSnapPoint:null,onOpenChange:()=>{},setActiveSnapPoint:()=>{},closeDrawer:()=>{},direction:"bottom",shouldAnimate:{current:!0},shouldScaleBackground:!1,setBackgroundColorOnScale:!0,noBodyStyles:!1,container:null,autoFocus:!1}),Zm=()=>{const e=le.useContext(IZ);if(!e)throw new Error("useDrawerContext must be used within a Drawer.Root");return e};AZ(`[data-vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32, .72, 0, 1);animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=open]{animation-name:slideFromBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=closed]{animation-name:slideToBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=open]{animation-name:slideFromTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=closed]{animation-name:slideToTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=open]{animation-name:slideFromLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=closed]{animation-name:slideToLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=open]{animation-name:slideFromRight}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=closed]{animation-name:slideToRight}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--initial-transform,100%),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--initial-transform,100%),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-overlay][data-vaul-snap-points=false]{animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-overlay][data-vaul-snap-points=false][data-state=open]{animation-name:fadeIn}[data-vaul-overlay][data-state=closed]{animation-name:fadeOut}[data-vaul-animate=false]{animation:none!important}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:0;transition:opacity .5s cubic-bezier(.32, .72, 0, 1)}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:1}[data-vaul-drawer]:not([data-vaul-custom-container=true])::after{content:'';position:absolute;background:inherit;background-color:inherit}[data-vaul-drawer][data-vaul-drawer-direction=top]::after{top:initial;bottom:100%;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=bottom]::after{top:100%;bottom:initial;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=left]::after{left:initial;right:100%;top:0;bottom:0;width:200%}[data-vaul-drawer][data-vaul-drawer-direction=right]::after{left:100%;right:initial;top:0;bottom:0;width:200%}[data-vaul-overlay][data-vaul-snap-points=true]:not([data-vaul-snap-points-overlay=true]):not(
|
|
106
|
-
[data-state=closed]
|
|
107
|
-
){opacity:0}[data-vaul-overlay][data-vaul-snap-points-overlay=true]{opacity:1}[data-vaul-handle]{display:block;position:relative;opacity:.7;background:#e2e2e4;margin-left:auto;margin-right:auto;height:5px;width:32px;border-radius:1rem;touch-action:pan-y}[data-vaul-handle]:active,[data-vaul-handle]:hover{opacity:1}[data-vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}@media (hover:hover) and (pointer:fine){[data-vaul-drawer]{user-select:none}}@media (pointer:fine){[data-vaul-handle-hitarea]:{width:100%;height:100%}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeOut{to{opacity:0}}@keyframes slideFromBottom{from{transform:translate3d(0,var(--initial-transform,100%),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToBottom{to{transform:translate3d(0,var(--initial-transform,100%),0)}}@keyframes slideFromTop{from{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToTop{to{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}}@keyframes slideFromLeft{from{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToLeft{to{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}}@keyframes slideFromRight{from{transform:translate3d(var(--initial-transform,100%),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToRight{to{transform:translate3d(var(--initial-transform,100%),0,0)}}`);function kZ(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function NZ(...e){return t=>e.forEach(n=>kZ(n,t))}function z4(...e){return A.useCallback(NZ(...e),e)}const _O=e=>{switch(e){case"top":case"bottom":return!0;case"left":case"right":return!1;default:return e}};function u0(e,t){if(!e)return()=>{};const n=e.style.cssText;return Object.assign(e.style,t),()=>{e.style.cssText=n}}function MZ(...e){return(...t)=>{for(const n of e)typeof n=="function"&&n(...t)}}const d0={DURATION:.5,EASE:[.32,.72,0,1]},PZ=8,DZ=26,LZ=()=>()=>{};function jZ(){const{direction:e,isOpen:t,shouldScaleBackground:n,setBackgroundColorOnScale:r,noBodyStyles:a}=Zm(),i=le.useRef(null),c=A.useMemo(()=>document.body.style.backgroundColor,[]);function u(){return(window.innerWidth-DZ)/window.innerWidth}le.useEffect(()=>{if(t&&n){i.current&&clearTimeout(i.current);const d=document.querySelector("[data-vaul-drawer-wrapper]")||document.querySelector("[vaul-drawer-wrapper]");if(!d)return;MZ(r&&!a?u0(document.body,{background:"black"}):LZ,u0(d,{transformOrigin:_O(e)?"top":"left",transitionProperty:"transform, border-radius",transitionDuration:`${d0.DURATION}s`,transitionTimingFunction:`cubic-bezier(${d0.EASE.join(",")})`}));const f=u0(d,{borderRadius:`${PZ}px`,overflow:"hidden",..._O(e)?{transform:`scale(${u()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`}:{transform:`scale(${u()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`}});return()=>{f(),i.current=window.setTimeout(()=>{c?document.body.style.background=c:document.body.style.removeProperty("background")},d0.DURATION*1e3)}}},[t,n,c])}const $Z=le.forwardRef(function({...e},t){const{overlayRef:n,snapPoints:r,onRelease:a,shouldFade:i,isOpen:c,modal:u,shouldAnimate:d}=Zm(),f=z4(t,n),m=r&&r.length>0;if(!u)return null;const p=le.useCallback(g=>a(g),[a]);return le.createElement(eq,{onMouseUp:p,ref:f,"data-vaul-overlay":"","data-vaul-snap-points":c&&m?"true":"false","data-vaul-snap-points-overlay":c&&i?"true":"false","data-vaul-animate":d?.current?"true":"false",...e})});$Z.displayName="Drawer.Overlay";const UZ=le.forwardRef(function({onPointerDownOutside:e,style:t,onOpenAutoFocus:n,...r},a){const{drawerRef:i,onPress:c,onRelease:u,onDrag:d,keyboardIsOpen:f,snapPointsOffset:m,activeSnapPointIndex:p,modal:g,isOpen:y,direction:w,snapPoints:S,container:b,handleOnly:R,shouldAnimate:E,autoFocus:T}=Zm(),[O,C]=le.useState(!1),I=z4(a,i),N=le.useRef(null),D=le.useRef(null),z=le.useRef(!1),W=S&&S.length>0;jZ();const V=(U,J,ie=0)=>{if(z.current)return!0;const F=Math.abs(U.y),X=Math.abs(U.x),ae=X>F,fe=["bottom","right"].includes(J)?1:-1;if(J==="left"||J==="right"){if(!(U.x*fe<0)&&X>=0&&X<=ie)return ae}else if(!(U.y*fe<0)&&F>=0&&F<=ie)return!ae;return z.current=!0,!0};le.useEffect(()=>{W&&window.requestAnimationFrame(()=>{C(!0)})},[]);function G(U){N.current=null,z.current=!1,u(U)}return le.createElement(tq,{"data-vaul-drawer-direction":w,"data-vaul-drawer":"","data-vaul-delayed-snap-points":O?"true":"false","data-vaul-snap-points":y&&W?"true":"false","data-vaul-custom-container":b?"true":"false","data-vaul-animate":E?.current?"true":"false",...r,ref:I,style:m&&m.length>0?{"--snap-point-height":`${m[p??0]}px`,...t}:t,onPointerDown:U=>{R||(r.onPointerDown==null||r.onPointerDown.call(r,U),N.current={x:U.pageX,y:U.pageY},c(U))},onOpenAutoFocus:U=>{n?.(U),T||U.preventDefault()},onPointerDownOutside:U=>{if(e?.(U),!g||U.defaultPrevented){U.preventDefault();return}f.current&&(f.current=!1)},onFocusOutside:U=>{if(!g){U.preventDefault();return}},onPointerMove:U=>{if(D.current=U,R||(r.onPointerMove==null||r.onPointerMove.call(r,U),!N.current))return;const J=U.pageY-N.current.y,ie=U.pageX-N.current.x,F=U.pointerType==="touch"?10:2;V({x:ie,y:J},w,F)?d(U):(Math.abs(ie)>F||Math.abs(J)>F)&&(N.current=null)},onPointerUp:U=>{r.onPointerUp==null||r.onPointerUp.call(r,U),N.current=null,z.current=!1,u(U)},onPointerOut:U=>{r.onPointerOut==null||r.onPointerOut.call(r,U),G(D.current)},onContextMenu:U=>{r.onContextMenu==null||r.onContextMenu.call(r,U),D.current&&G(D.current)}})});UZ.displayName="Drawer.Content";const zZ=250,VZ=120,FZ=le.forwardRef(function({preventCycle:e=!1,children:t,...n},r){const{closeDrawer:a,isDragging:i,snapPoints:c,activeSnapPoint:u,setActiveSnapPoint:d,dismissible:f,handleOnly:m,isOpen:p,onPress:g,onDrag:y}=Zm(),w=le.useRef(null),S=le.useRef(!1);function b(){if(S.current){T();return}window.setTimeout(()=>{R()},VZ)}function R(){if(i||e||S.current){T();return}if(T(),!c||c.length===0){f||a();return}if(u===c[c.length-1]&&f){a();return}const C=c.findIndex(N=>N===u);if(C===-1)return;const I=c[C+1];d(I)}function E(){w.current=window.setTimeout(()=>{S.current=!0},zZ)}function T(){w.current&&window.clearTimeout(w.current),S.current=!1}return le.createElement("div",{onClick:b,onPointerCancel:T,onPointerDown:O=>{m&&g(O),E()},onPointerMove:O=>{m&&y(O)},ref:r,"data-vaul-drawer-visible":p?"true":"false","data-vaul-handle":"","aria-hidden":"true",...n},le.createElement("span",{"data-vaul-handle-hitarea":"","aria-hidden":"true"},t))});FZ.displayName="Drawer.Handle";var al=(e,t,n)=>new Promise((r,a)=>{var i=d=>{try{u(n.next(d))}catch(f){a(f)}},c=d=>{try{u(n.throw(d))}catch(f){a(f)}},u=d=>d.done?r(d.value):Promise.resolve(d.value).then(i,c);u((n=n.apply(e,t)).next())}),yp=class extends Error{},BZ=class extends Error{},qZ=e=>Math.exp(e)*150,HZ=(e,...t)=>al(void 0,[e,...t],function*(n,{attempts:r=4}={}){var a;let i;for(let c=0;c<r;c++)try{return yield n()}catch(u){i=u,yield new Promise(d=>setTimeout(d,qZ(c)))}throw new yp((a=i?.message)!=null?a:"Exhausted all retries")}),xu,V4="captchaFoxOnLoad",bO=`https://cdn.captchafox.com/api.js?render=explicit&onload=${V4}`;function GZ(){return al(this,arguments,function*({nonce:e}={}){return xu&&document.querySelector(`script[src="${bO}"]`)||(xu=new Promise((t,n)=>{window[V4]=t;const r=document.createElement("script");r.src=bO,r.async=!0,r.defer=!0,r.onerror=a=>{r.remove(),xu=void 0,n(a)},e&&(r.nonce=e),document.body.appendChild(r)})),xu})}function ZZ(){return al(this,arguments,function*(e={}){return HZ(()=>GZ(e))})}var KZ=e=>{window._tsdk={n:e,v:"1.11.0"}},Lc=()=>typeof window?.captchafox<"u",F4=A.forwardRef(({executeTimeoutSeconds:e=30,sitekey:t,lang:n,mode:r,theme:a,className:i,nonce:c,i18n:u,onError:d,onVerify:f,onLoad:m,onFail:p,onClose:g,onChallengeChange:y,onChallengeOpen:w},S)=>{const[b,R]=A.useState(),[E,T]=A.useState(),O=A.useRef(!1),C=A.useRef(),I=A.useRef(),N=A.useRef(),D=A.useRef(!1);A.useImperativeHandle(S,()=>({getResponse(){return!Lc()||!E?(console.warn("[CaptchaFox] Widget has not been loaded"),""):window.captchafox.getResponse(E)},reset(){if(!Lc()||!E){console.warn("[CaptchaFox] Widget has not been loaded");return}window.captchafox.reset(E)},remove(){if(!Lc()||!E){console.warn("[CaptchaFox] Widget has not been loaded");return}T(void 0),window.captchafox.remove(E)},execute:()=>al(void 0,null,function*(){if(D.current)return Promise.reject(new yp);if(!Lc()||!E)return W();try{return yield window.captchafox.execute(E)}catch(U){const J=V(U);return Promise.reject(J)}})}),[E]),A.useEffect(()=>{E&&m?.()},[E]),A.useEffect(()=>(KZ("rj"),()=>{z()}),[]),A.useEffect(()=>{b&&(O.current?Lc()&&G():ZZ({nonce:c}).then(()=>al(void 0,null,function*(){Lc()&&(O.current=!0,yield G())})).catch(U=>{var J;d?.(U),D.current=!0,(J=N.current)==null||J.call(N),console.error("[CaptchaFox] Could not load script:",U)}))},[b,t,n,r]);const z=()=>{clearTimeout(I.current)},W=()=>new Promise((U,J)=>{N.current=()=>{z(),J(new yp)},I.current=setTimeout(()=>{J(new BZ("Execute timed out"))},e*1e3),C.current=ie=>{z(),window.captchafox.execute(ie).then(U).catch(F=>{const X=V(F);J(X)})}}),V=U=>U!=="challenge-aborted"&&U!=="rate-limited"?new yp:U,G=()=>al(void 0,null,function*(){var U,J,ie;if((U=window.captchafox)==null||U.remove(E),!b||((J=b?.children)==null?void 0:J.length)===1)return;const F=yield(ie=window.captchafox)==null?void 0:ie.render(b,{lang:n,sitekey:t,mode:r,theme:a,i18n:u,onError:d,onFail:p,onClose:g,onVerify:f,onChallengeChange:y,onChallengeOpen:w});F&&(T(F),C.current&&(C.current(F),C.current=void 0))});return le.createElement("div",{ref:R,id:E,className:i})});F4.displayName="CaptchaFox";function co(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function C_(e,t){return C_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},C_(e,t)}function WZ(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,C_(e,t)}var YZ=Object.defineProperty,QZ=Object.defineProperties,XZ=Object.getOwnPropertyDescriptors,tm=Object.getOwnPropertySymbols,B4=Object.prototype.hasOwnProperty,q4=Object.prototype.propertyIsEnumerable,A_=(e,t,n)=>t in e?YZ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Vr=(e,t)=>{for(var n in t||(t={}))B4.call(t,n)&&A_(e,n,t[n]);if(tm)for(var n of tm(t))q4.call(t,n)&&A_(e,n,t[n]);return e},H4=(e,t)=>QZ(e,XZ(t)),JZ=(e,t)=>{var n={};for(var r in e)B4.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&tm)for(var r of tm(e))t.indexOf(r)<0&&q4.call(e,r)&&(n[r]=e[r]);return n},jn=(e,t,n)=>(A_(e,typeof t!="symbol"?t+"":t,n),n),hl=(e,t,n)=>new Promise((r,a)=>{var i=d=>{try{u(n.next(d))}catch(f){a(f)}},c=d=>{try{u(n.throw(d))}catch(f){a(f)}},u=d=>d.done?r(d.value):Promise.resolve(d.value).then(i,c);u((n=n.apply(e,t)).next())}),eK="hCaptcha-script",_p="hCaptchaOnLoad",wO="script-error",Es="@hCaptcha/loader";function tK(e){return Object.entries(e).filter(([,t])=>t||t===!1).map(([t,n])=>`${encodeURIComponent(t)}=${encodeURIComponent(String(n))}`).join("&")}function G4(e){let t=e&&e.ownerDocument||document,n=t.defaultView||t.parentWindow||window;return{document:t,window:n}}function Z4(e){return e||document.head}function nK(e){var t;e.setTag("source",Es),e.setTag("url",document.URL),e.setContext("os",{UA:navigator.userAgent}),e.setContext("browser",Vr({},rK())),e.setContext("device",H4(Vr({},aK()),{screen_width_pixels:screen.width,screen_height_pixels:screen.height,language:navigator.language,orientation:((t=screen.orientation)==null?void 0:t.type)||"Unknown",processor_count:navigator.hardwareConcurrency,platform:navigator.platform}))}function rK(){var e,t,n,r,a,i;let c=navigator.userAgent,u,d;return c.indexOf("Firefox")!==-1?(u="Firefox",d=(e=c.match(/Firefox\/([\d.]+)/))==null?void 0:e[1]):c.indexOf("Edg")!==-1?(u="Microsoft Edge",d=(t=c.match(/Edg\/([\d.]+)/))==null?void 0:t[1]):c.indexOf("Chrome")!==-1&&c.indexOf("Safari")!==-1?(u="Chrome",d=(n=c.match(/Chrome\/([\d.]+)/))==null?void 0:n[1]):c.indexOf("Safari")!==-1&&c.indexOf("Chrome")===-1?(u="Safari",d=(r=c.match(/Version\/([\d.]+)/))==null?void 0:r[1]):c.indexOf("Opera")!==-1||c.indexOf("OPR")!==-1?(u="Opera",d=(a=c.match(/(Opera|OPR)\/([\d.]+)/))==null?void 0:a[2]):c.indexOf("MSIE")!==-1||c.indexOf("Trident")!==-1?(u="Internet Explorer",d=(i=c.match(/(MSIE |rv:)([\d.]+)/))==null?void 0:i[2]):(u="Unknown",d="Unknown"),{name:u,version:d}}function oK(e){return new Promise(t=>setTimeout(t,e))}function aK(){let e=navigator.userAgent,t;e.indexOf("Win")!==-1?t="Windows":e.indexOf("Mac")!==-1?t="Mac":e.indexOf("Linux")!==-1?t="Linux":e.indexOf("Android")!==-1?t="Android":e.indexOf("like Mac")!==-1||e.indexOf("iPhone")!==-1||e.indexOf("iPad")!==-1?t="iOS":t="Unknown";let n;return/Mobile|iPhone|iPod|Android/i.test(e)?n="Mobile":/Tablet|iPad/i.test(e)?n="Tablet":n="Desktop",{model:t,family:t,device:n}}var sK=class K4{constructor(t){jn(this,"_parent"),jn(this,"breadcrumbs",[]),jn(this,"context",{}),jn(this,"extra",{}),jn(this,"tags",{}),jn(this,"request"),jn(this,"user"),this._parent=t}get parent(){return this._parent}child(){return new K4(this)}setRequest(t){return this.request=t,this}removeRequest(){return this.request=void 0,this}addBreadcrumb(t){return typeof t.timestamp>"u"&&(t.timestamp=new Date().toISOString()),this.breadcrumbs.push(t),this}setExtra(t,n){return this.extra[t]=n,this}removeExtra(t){return delete this.extra[t],this}setContext(t,n){return typeof n.type>"u"&&(n.type=t),this.context[t]=n,this}removeContext(t){return delete this.context[t],this}setTags(t){return this.tags=Vr(Vr({},this.tags),t),this}setTag(t,n){return this.tags[t]=n,this}removeTag(t){return delete this.tags[t],this}setUser(t){return this.user=t,this}removeUser(){return this.user=void 0,this}toBody(){let t=[],n=this;for(;n;)t.push(n),n=n.parent;return t.reverse().reduce((r,a)=>{var i;return r.breadcrumbs=[...(i=r.breadcrumbs)!=null?i:[],...a.breadcrumbs],r.extra=Vr(Vr({},r.extra),a.extra),r.contexts=Vr(Vr({},r.contexts),a.context),r.tags=Vr(Vr({},r.tags),a.tags),a.user&&(r.user=a.user),a.request&&(r.request=a.request),r},{breadcrumbs:[],extra:{},contexts:{},tags:{},request:void 0,user:void 0})}clear(){this.breadcrumbs=[],this.context={},this.tags={},this.user=void 0}},iK=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,cK=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,lK=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,uK=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/,_h="?",SO="An unknown error occurred",dK="0.0.4";function fK(e){for(let t=0;t<e.length;t++)e[t]=Math.floor(Math.random()*256);return e}function nr(e){return(e+256).toString(16).substring(1)}function hK(){let e=fK(new Array(16));return e[6]=e[6]&15|64,e[8]=e[8]&63|128,nr(e[0])+nr(e[1])+nr(e[2])+nr(e[3])+"-"+nr(e[4])+nr(e[5])+"-"+nr(e[6])+nr(e[7])+"-"+nr(e[8])+nr(e[9])+"-"+nr(e[10])+nr(e[11])+nr(e[12])+nr(e[13])+nr(e[14])+nr(e[15])}var pK=[[iK,"chrome"],[lK,"winjs"],[cK,"gecko"]];function mK(e){var t,n,r,a;if(!e.stack)return null;let i=[],c=(r=(n=(t=e.stack).split)==null?void 0:n.call(t,`
|
|
108
|
-
`))!=null?r:[];for(let u=0;u<c.length;++u){let d=null,f=null,m=null;for(let[p,g]of pK)if(f=p.exec(c[u]),f){m=g;break}if(!(!f||!m)){if(m==="chrome")d={filename:(a=f[2])!=null&&a.startsWith("address at ")?f[2].substring(11):f[2],function:f[1]||_h,lineno:f[3]?+f[3]:null,colno:f[4]?+f[4]:null};else if(m==="winjs")d={filename:f[2],function:f[1]||_h,lineno:+f[3],colno:f[4]?+f[4]:null};else if(m==="gecko")u===0&&!f[5]&&e.columnNumber!==void 0&&i.length>0&&(i[0].column=e.columnNumber+1),d={filename:f[3],function:f[1]||_h,lineno:f[4]?+f[4]:null,colno:f[5]?+f[5]:null};else continue;!d.function&&d.lineno&&(d.function=_h),i.push(d)}}return i.length?i.reverse():null}function gK(e){let t=mK(e);return{type:e.name,value:e.message,stacktrace:{frames:t??[]}}}function vK(e){let t=uK.exec(e),n=t?t.slice(1):[];if(n.length!==6)throw new Error("Invalid DSN");let r=n[5].split("/"),a=r.slice(0,-1).join("/");return n[0]+"://"+n[3]+(n[4]?":"+n[4]:"")+(a?"/"+a:"")+"/api/"+r.pop()+"/envelope/?sentry_version=7&sentry_key="+n[1]+(n[2]?"&sentry_secret="+n[2]:"")}function yK(e,t,n){var r,a;let i=Vr({event_id:hK().replaceAll("-",""),platform:"javascript",sdk:{name:"@hcaptcha/sentry",version:dK},environment:t,release:n,timestamp:Date.now()/1e3},e.scope.toBody());if(e.type==="exception"){i.message=(a=(r=e.error)==null?void 0:r.message)!=null?a:"Unknown error",i.fingerprint=[i.message];let c=[],u=e.error;for(let d=0;d<5&&u&&(c.push(gK(u)),!(!u.cause||!(u.cause instanceof Error)));d++)u=u.cause;i.exception={values:c.reverse()}}return e.type==="message"&&(i.message=e.message,i.level=e.level),i}function _K(e){if(e instanceof Error)return e;if(typeof e=="string")return new Error(e);if(typeof e=="object"&&e!==null&&!Array.isArray(e)){let n=e,{message:r}=n,a=JZ(n,["message"]),i=new Error(typeof r=="string"?r:SO);return Object.assign(i,a)}let t=new Error(SO);return Object.assign(t,{cause:e})}function bK(e,t,n){return hl(this,null,function*(){var r,a;try{if(typeof fetch<"u"&&typeof AbortSignal<"u"){let i;if(n){let d=new AbortController;i=d.signal,setTimeout(()=>d.abort(),n)}let c=yield fetch(e,H4(Vr({},t),{signal:i})),u=yield c.text();return{status:c.status,body:u}}return yield new Promise((i,c)=>{var u,d;let f=new XMLHttpRequest;if(f.open((u=t?.method)!=null?u:"GET",e),f.onload=()=>i({status:f.status,body:f.responseText}),f.onerror=()=>c(new Error("XHR Network Error")),t?.headers)for(let[m,p]of Object.entries(t.headers))f.setRequestHeader(m,p);if(n){let m=setTimeout(()=>{f.abort(),c(new Error("Request timed out"))},n);f.onloadend=()=>{clearTimeout(m)}}f.send((d=t?.body)==null?void 0:d.toString())})}catch(i){return{status:0,body:(a=(r=i?.toString)==null?void 0:r.call(i))!=null?a:"Unknown error"}}})}var Rr,I_=(Rr=class{constructor(e){jn(this,"apiURL"),jn(this,"dsn"),jn(this,"environment"),jn(this,"release"),jn(this,"sampleRate"),jn(this,"debug"),jn(this,"_scope"),jn(this,"shouldBuffer",!1),jn(this,"bufferlimit",20),jn(this,"buffer",[]);var t,n,r,a,i;this.environment=e.environment,this.release=e.release,this.sampleRate=(t=e.sampleRate)!=null?t:1,this.debug=(n=e.debug)!=null?n:!1,this._scope=(r=e.scope)!=null?r:new sK,this.apiURL=vK(e.dsn),this.dsn=e.dsn,this.shouldBuffer=(a=e.buffer)!=null?a:!1,this.bufferlimit=(i=e.bufferLimit)!=null?i:20}static init(e){Rr._instance||(Rr._instance=new Rr(e))}static get instance(){if(!Rr._instance)throw new Error("Sentry has not been initialized");return Rr._instance}log(...e){this.debug&&console.log(...e)}get scope(){return this._scope}static get scope(){return Rr.instance.scope}withScope(e){let t=this._scope.child();e(t)}static withScope(e){Rr.instance.withScope(e)}captureException(e,t){this.captureEvent({type:"exception",level:"error",error:_K(e),scope:t??this._scope})}static captureException(e,t){Rr.instance.captureException(e,t)}captureMessage(e,t="info",n){this.captureEvent({type:"message",level:t,message:e,scope:n??this._scope})}static captureMessage(e,t="info",n){Rr.instance.captureMessage(e,t,n)}captureEvent(e){if(Math.random()>=this.sampleRate){this.log("Dropped event due to sample rate");return}if(this.shouldBuffer){if(this.buffer.length>=this.bufferlimit)return;this.buffer.push(e)}else this.sendEvent(e)}sendEvent(e,t=5e3){return hl(this,null,function*(){try{this.log("Sending sentry event",e);let n=yK(e,this.environment,this.release),r={event_id:n.event_id,dsn:this.dsn},a={type:"event"},i=JSON.stringify(r)+`
|
|
109
|
-
`+JSON.stringify(a)+`
|
|
110
|
-
`+JSON.stringify(n),c=yield bK(this.apiURL,{method:"POST",headers:{"Content-Type":"application/x-sentry-envelope"},body:i},t);this.log("Sentry response",c.status),c.status!==200&&(console.log(c.body),console.error("Failed to send event to Sentry",c))}catch(n){console.error("Failed to send event",n)}})}flush(e=5e3){return hl(this,null,function*(){try{this.log("Flushing sentry events",this.buffer.length);let t=this.buffer.splice(0,this.buffer.length).map(n=>this.sendEvent(n,e));yield Promise.all(t),this.log("Flushed all events")}catch(t){console.error("Failed to flush events",t)}})}static flush(e=5e3){return Rr.instance.flush(e)}static reset(){Rr._instance=void 0}},jn(Rr,"_instance"),Rr),wK="https://d233059272824702afc8c43834c4912d@sentry.hcaptcha.com/6",SK="2.3.0",EK="production";function RK(e=!0){if(!e)return EO();I_.init({dsn:wK,release:SK,environment:EK});let t=I_.scope;return nK(t),EO(t)}function EO(e=null){return{addBreadcrumb:t=>{e&&e.addBreadcrumb(t)},captureRequest:t=>{e&&e.setRequest(t)},captureException:t=>{e&&I_.captureException(t,e)}}}function xK({scriptLocation:e,query:t,loadAsync:n=!0,crossOrigin:r="anonymous",apihost:a="https://js.hcaptcha.com",cleanup:i=!1,secureApi:c=!1,scriptSource:u=""}={},d){let f=Z4(e),m=G4(f);return new Promise((p,g)=>{let y=m.document.createElement("script");y.id=eK,u?y.src=`${u}?onload=${_p}`:c?y.src=`${a}/1/secure-api.js?onload=${_p}`:y.src=`${a}/1/api.js?onload=${_p}`,y.crossOrigin=r,y.async=n;let w=(S,b)=>{try{!c&&i&&f.removeChild(y),b(S)}catch(R){g(R)}};y.onload=S=>w(S,p),y.onerror=S=>{d&&d(y.src),w(S,g)},y.src+=t!==""?`&${t}`:"",f.appendChild(y)})}var bh=[];function TK(e={cleanup:!1},t){try{t.addBreadcrumb({category:Es,message:"hCaptcha loader params",data:e});let n=Z4(e.scriptLocation),r=G4(n),a=bh.find(({scope:c})=>c===r.window);if(a)return t.addBreadcrumb({category:Es,message:"hCaptcha already loaded"}),a.promise;let i=new Promise((c,u)=>hl(this,null,function*(){try{r.window[_p]=()=>{t.addBreadcrumb({category:Es,message:"hCaptcha script called onload function"}),c(r.window.hcaptcha)};let d=tK({custom:e.custom,render:e.render,sentry:e.sentry,assethost:e.assethost,imghost:e.imghost,reportapi:e.reportapi,endpoint:e.endpoint,host:e.host,recaptchacompat:e.recaptchacompat,hl:e.hl,uj:e.uj});yield xK(Vr({query:d},e),f=>{t.captureRequest({url:f,method:"GET"})}),t.addBreadcrumb({category:Es,message:"hCaptcha loaded",data:a})}catch{t.addBreadcrumb({category:Es,message:"hCaptcha failed to load"});let f=bh.findIndex(m=>m.scope===r.window);f!==-1&&bh.splice(f,1),u(new Error(wO))}}));return bh.push({promise:i,scope:r.window}),i}catch(n){return t.captureException(n),Promise.reject(new Error(wO))}}function W4(e,t,n=0){return hl(this,null,function*(){var r,a;let i=(r=e.maxRetries)!=null?r:2,c=(a=e.retryDelay)!=null?a:1e3,u=n<i?"Retry loading hCaptcha Api":"Exceeded maximum retries";try{return yield TK(e,t)}catch(d){return t.addBreadcrumb({category:Es,message:u}),n>=i?(t.captureException(d),Promise.reject(d)):(t.addBreadcrumb({category:Es,message:`Waiting ${c}ms before retry attempt ${n+1}`}),yield oK(c),n+=1,W4(e,t,n))}})}function OK(){return hl(this,arguments,function*(e={}){let t=RK(e.sentry);return yield W4(e,t)})}function RO(e){var t=e&&e.ownerDocument||document,n=t.defaultView||t.parentWindow||window;return{document:t,window:n}}function xO(e){return e||document.head}var CK=(function(e){WZ(t,e);function t(r){var a;return a=e.call(this,r)||this,a._hcaptcha=void 0,a.renderCaptcha=a.renderCaptcha.bind(co(a)),a.resetCaptcha=a.resetCaptcha.bind(co(a)),a.removeCaptcha=a.removeCaptcha.bind(co(a)),a.isReady=a.isReady.bind(co(a)),a._onReady=null,a.loadCaptcha=a.loadCaptcha.bind(co(a)),a.handleOnLoad=a.handleOnLoad.bind(co(a)),a.handleSubmit=a.handleSubmit.bind(co(a)),a.handleExpire=a.handleExpire.bind(co(a)),a.handleError=a.handleError.bind(co(a)),a.handleOpen=a.handleOpen.bind(co(a)),a.handleClose=a.handleClose.bind(co(a)),a.handleChallengeExpired=a.handleChallengeExpired.bind(co(a)),a.ref=A.createRef(),a.apiScriptRequested=!1,a.sentryHub=null,a.captchaId="",a._pendingExecute=null,a.state={isApiReady:!1,isRemoved:!1,elementId:r.id},a}var n=t.prototype;return n.componentDidMount=function(){var a=this,i=xO(this.props.scriptLocation),c=RO(i);this._hcaptcha=c.window.hcaptcha||void 0;var u=typeof this._hcaptcha<"u";if(u){this.setState({isApiReady:!0},function(){a.renderCaptcha()});return}this.loadCaptcha()},n.componentWillUnmount=function(){var a=this._hcaptcha,i=this.captchaId;this._cancelPendingExecute("react-component-unmounted"),this.isReady()&&(a.reset(i),a.remove(i))},n.shouldComponentUpdate=function(a,i){return!(this.state.isApiReady!==i.isApiReady||this.state.isRemoved!==i.isRemoved)},n.componentDidUpdate=function(a){var i=this,c=["sitekey","size","theme","tabindex","languageOverride","endpoint"],u=c.every(function(d){return a[d]===i.props[d]});u||this.removeCaptcha(function(){i.renderCaptcha()})},n.loadCaptcha=function(){if(!this.apiScriptRequested){var a=this.props,i=a.apihost,c=a.assethost,u=a.endpoint,d=a.host,f=a.imghost,m=a.languageOverride,p=a.reCaptchaCompat,g=a.reportapi,y=a.sentry,w=a.custom,S=a.loadAsync,b=a.scriptLocation,R=a.scriptSource,E=a.secureApi,T=a.cleanup,O=T===void 0?!0:T,C=a.userJourneys,I={render:"explicit",apihost:i,assethost:c,endpoint:u,hl:m,host:d,imghost:f,recaptchacompat:p===!1?"off":null,reportapi:g,sentry:y,custom:w,loadAsync:S,scriptLocation:b,scriptSource:R,secureApi:E,cleanup:O,uj:C!==void 0?C:!1};OK(I).then(this.handleOnLoad,this.handleError).catch(this.handleError),this.apiScriptRequested=!0}},n.renderCaptcha=function(a){var i=this,c=this.props.onReady,u=this.state.isApiReady,d=this.captchaId;if(!(!u||d)){var f=Object.assign({"open-callback":this.handleOpen,"close-callback":this.handleClose,"error-callback":this.handleError,"chalexpired-callback":this.handleChallengeExpired,"expired-callback":this.handleExpire,callback:this.handleSubmit},this.props,{hl:this.props.hl||this.props.languageOverride,languageOverride:void 0}),m=this._hcaptcha,p=m.render(this.ref.current,f);this.captchaId=p,this.setState({isRemoved:!1},function(){a&&a(),c&&c(),i._onReady&&i._onReady(p)})}},n.resetCaptcha=function(){var a=this._hcaptcha,i=this.captchaId;this.isReady()&&(a.reset(i),this._cancelPendingExecute("hcaptcha-reset"))},n.removeCaptcha=function(a){var i=this,c=this._hcaptcha,u=this.captchaId;this._cancelPendingExecute("hcaptcha-removed"),this.isReady()&&this.setState({isRemoved:!0},function(){i.captchaId="",c.remove(u),a&&a()})},n.handleOnLoad=function(){var a=this;this.setState({isApiReady:!0},function(){var i=xO(a.props.scriptLocation),c=RO(i);a._hcaptcha=c.window.hcaptcha,a.renderCaptcha(function(){var u=a.props.onLoad;u&&u()})})},n.handleSubmit=function(a){var i=this.props.onVerify,c=this.state.isRemoved,u=this._hcaptcha,d=this.captchaId;if(!(typeof u>"u"||c)){var f=u.getResponse(d),m=u.getRespKey(d);i&&i(f,m)}},n.handleExpire=function(){var a=this.props.onExpire,i=this._hcaptcha,c=this.captchaId;this.isReady()&&(i.reset(c),a&&a())},n.handleError=function(a){var i=this.props.onError,c=this._hcaptcha,u=this.captchaId;this.isReady()&&c.reset(u),i&&i(a)},n.isReady=function(){var a=this.state,i=a.isApiReady,c=a.isRemoved;return i&&!c},n._cancelPendingExecute=function(a){if(this._pendingExecute){var i=this._pendingExecute;this._pendingExecute=null;var c=new Error(a);i.reject(c)}},n.handleOpen=function(){!this.isReady()||!this.props.onOpen||this.props.onOpen()},n.handleClose=function(){!this.isReady()||!this.props.onClose||this.props.onClose()},n.handleChallengeExpired=function(){!this.isReady()||!this.props.onChalExpired||this.props.onChalExpired()},n.execute=function(a){var i=this;a===void 0&&(a=null),a=typeof a=="object"?a:null;try{var c=this._hcaptcha,u=this.captchaId;if(a&&a.async&&this._pendingExecute&&this._cancelPendingExecute("hcaptcha-execute-replaced"),!this.isReady())return a&&a.async?new Promise(function(f,m){i._pendingExecute={resolve:f,reject:m},i._onReady=function(p){if(i._pendingExecute)try{var g=c.execute(p,a);g&&typeof g.then=="function"?g.then(function(y){i._pendingExecute=null,f(y)}).catch(function(y){i._pendingExecute=null,m(y)}):(i._pendingExecute=null,m(new Error("hcaptcha-execute-no-promise")))}catch(y){i._pendingExecute=null,m(y)}}}):(this._onReady=function(f){c.execute(f,a)},null);var d=c.execute(u,a);return a&&a.async&&d&&typeof d.then=="function"?new Promise(function(f,m){i._pendingExecute={resolve:f,reject:m},d.then(function(p){i._pendingExecute=null,f(p)}).catch(function(p){i._pendingExecute=null,m(p)})}):d}catch(f){return a&&a.async?Promise.reject(f):null}},n.close=function(){var a=this._hcaptcha,i=this.captchaId;if(this._cancelPendingExecute("hcaptcha-closed"),!!this.isReady())return a.close(i)},n.setData=function(a){var i=this._hcaptcha,c=this.captchaId;this.isReady()&&(a&&typeof a!="object"&&(a=null),i.setData(c,a))},n.getResponse=function(){var a=this._hcaptcha;return a.getResponse(this.captchaId)},n.getRespKey=function(){var a=this._hcaptcha;return a.getRespKey(this.captchaId)},n.render=function(){var a=this.state.elementId;return A.createElement("div",{ref:this.ref,id:a})},t})(A.Component),AK=({as:e="div",...t},n)=>x.jsx(e,{...t,ref:n}),IK=A.forwardRef(AK),kK="https://challenges.cloudflare.com/turnstile/v0/api.js",y1="cf-turnstile-script",NK="cf-turnstile",_1="onloadTurnstileCallback",Y4=e=>!!document.getElementById(e),MK=({render:e="explicit",onLoadCallbackName:t=_1,scriptOptions:{nonce:n="",defer:r=!0,async:a=!0,id:i="",appendTo:c,onError:u,crossOrigin:d=""}={}})=>{let f=i||y1;if(Y4(f))return;let m=document.createElement("script");m.id=f,m.src=`${kK}?onload=${t}&render=${e}`,!document.querySelector(`script[src="${m.src}"]`)&&(m.defer=!!r,m.async=!!a,n&&(m.nonce=n),d&&(m.crossOrigin=d),u&&(m.onerror=u,delete window[t]),(c==="body"?document.body:document.getElementsByTagName("head")[0]).appendChild(m))},mi={normal:{width:300,height:65},compact:{width:150,height:140},invisible:{width:0,height:0,overflow:"hidden"},flexible:{minWidth:300,width:"100%",height:65},interactionOnly:{width:"fit-content",height:"auto",display:"flex"}};function PK(e){if(e!=="invisible"&&e!=="interactionOnly")return e}function DK(e=y1){let[t,n]=A.useState(!1);return A.useEffect(()=>{let r=()=>{Y4(e)&&n(!0)},a=new MutationObserver(r);return a.observe(document,{childList:!0,subtree:!0}),r(),()=>{a.disconnect()}},[e]),t}var Zu="unloaded",Q4,LK=new Promise((e,t)=>{Q4={resolve:e,reject:t},Zu==="ready"&&e(void 0)}),TO=(e=_1)=>(Zu==="unloaded"&&(Zu="loading",window[e]=()=>{Q4.resolve(),Zu="ready",delete window[e]}),LK),X4=A.forwardRef((e,t)=>{let{scriptOptions:n,options:r={},siteKey:a,onWidgetLoad:i,onSuccess:c,onExpire:u,onError:d,onBeforeInteractive:f,onAfterInteractive:m,onUnsupported:p,onTimeout:g,onLoadScript:y,id:w,style:S,as:b="div",injectScript:R=!0,rerenderOnCallbackChange:E=!1,...T}=e,O=r.size,C=A.useCallback(()=>typeof O>"u"?{}:r.execution==="execute"?mi.invisible:r.appearance==="interaction-only"?mi.interactionOnly:mi[O],[r.execution,O,r.appearance]),[I,N]=A.useState(C()),D=A.useRef(null),[z,W]=A.useState(!1),V=A.useRef(void 0),G=A.useRef(!1),U=w||NK,J=A.useRef({onSuccess:c,onError:d,onExpire:u,onBeforeInteractive:f,onAfterInteractive:m,onUnsupported:p,onTimeout:g});A.useEffect(()=>{E||(J.current={onSuccess:c,onError:d,onExpire:u,onBeforeInteractive:f,onAfterInteractive:m,onUnsupported:p,onTimeout:g})});let ie=n?.id||y1,F=DK(ie),X=n?.onLoadCallbackName||_1,ae=r.appearance||"always",fe=A.useMemo(()=>({sitekey:a,action:r.action,cData:r.cData,theme:r.theme||"auto",language:r.language||"auto",tabindex:r.tabIndex,"response-field":r.responseField,"response-field-name":r.responseFieldName,size:PK(O),retry:r.retry||"auto","retry-interval":r.retryInterval||8e3,"refresh-expired":r.refreshExpired||"auto","refresh-timeout":r.refreshTimeout||"auto",execution:r.execution||"render",appearance:r.appearance||"always","feedback-enabled":r.feedbackEnabled??!0,callback:P=>{G.current=!0,E?c?.(P):J.current.onSuccess?.(P)},"error-callback":E?d:(...P)=>J.current.onError?.(...P),"expired-callback":E?u:(...P)=>J.current.onExpire?.(...P),"before-interactive-callback":E?f:(...P)=>J.current.onBeforeInteractive?.(...P),"after-interactive-callback":E?m:(...P)=>J.current.onAfterInteractive?.(...P),"unsupported-callback":E?p:(...P)=>J.current.onUnsupported?.(...P),"timeout-callback":E?g:(...P)=>J.current.onTimeout?.(...P)}),[r.action,r.appearance,r.cData,r.execution,r.language,r.refreshExpired,r.responseField,r.responseFieldName,r.retry,r.retryInterval,r.tabIndex,r.theme,r.feedbackEnabled,r.refreshTimeout,a,O,E,E?c:null,E?d:null,E?u:null,E?f:null,E?m:null,E?p:null,E?g:null]),K=A.useCallback(()=>typeof window<"u"&&!!window.turnstile,[]);return A.useEffect(function(){R&&!z&&(TO(X),MK({onLoadCallbackName:X,scriptOptions:{...n,id:ie}}))},[R,z,n,ie,X]),A.useEffect(function(){Zu!=="ready"&&TO(X).then(()=>W(!0)).catch(console.error)},[X]),A.useEffect(function(){if(!D.current||!z)return;let P=!1;return(async()=>{if(P||!D.current)return;let q=window.turnstile.render(D.current,fe);V.current=q,V.current&&i?.(V.current)})(),()=>{P=!0,V.current&&(window.turnstile.remove(V.current),G.current=!1)}},[U,z,fe]),A.useImperativeHandle(t,()=>{let{turnstile:P}=window;return{getResponse(){if(!P?.getResponse||!V.current||!K()){console.warn("Turnstile has not been loaded");return}return P.getResponse(V.current)},async getResponsePromise(q=3e4,B=100){return new Promise((L,$)=>{let Q,me=async()=>{if(G.current&&window.turnstile&&V.current)try{let _e=window.turnstile.getResponse(V.current);return Q&&clearTimeout(Q),_e?L(_e):$(new Error("No response received"))}catch(_e){return Q&&clearTimeout(Q),console.warn("Failed to get response",_e),$(new Error("Failed to get response"))}Q||(Q=setTimeout(()=>{Q&&clearTimeout(Q),$(new Error("Timeout"))},q)),await new Promise(_e=>setTimeout(_e,B)),await me()};me()})},reset(){if(!P?.reset||!V.current||!K()){console.warn("Turnstile has not been loaded");return}r.execution==="execute"&&N(mi.invisible);try{G.current=!1,P.reset(V.current)}catch(q){console.warn(`Failed to reset Turnstile widget ${V}`,q)}},remove(){if(!P?.remove||!V.current||!K()){console.warn("Turnstile has not been loaded");return}N(mi.invisible),G.current=!1,P.remove(V.current),V.current=null},render(){if(!P?.render||!D.current||!K()||V.current){console.warn("Turnstile has not been loaded or container not found");return}let q=P.render(D.current,fe);return V.current=q,V.current&&i?.(V.current),r.execution!=="execute"&&N(O?mi[O]:{}),q},execute(){if(r.execution!=="execute"){console.warn('Execution mode is not set to "execute"');return}if(!P?.execute||!D.current||!V.current||!K()){console.warn("Turnstile has not been loaded or container not found");return}P.execute(D.current,fe),N(O?mi[O]:{})},isExpired(){return!P?.isExpired||!V.current||!K()?(console.warn("Turnstile has not been loaded"),!1):P.isExpired(V.current)}}},[V,r.execution,O,fe,D,K,z,i]),A.useEffect(()=>{if(z||!F)return;if(window.turnstile){W(!0);return}let P=setInterval(()=>{window.turnstile&&(W(!0),clearInterval(P))},50);return()=>{clearInterval(P)}},[z,F]),A.useEffect(()=>{N(C())},[r.execution,O,ae]),A.useEffect(()=>{!F||typeof y!="function"||y()},[F]),x.jsx(IK,{ref:D,as:b,id:U,style:{...I,...S},...T})});X4.displayName="Turnstile";var f0={exports:{}},h0,OO;function jK(){if(OO)return h0;OO=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return h0=e,h0}var p0,CO;function $K(){if(CO)return p0;CO=1;var e=jK();function t(){}function n(){}return n.resetWarningCache=t,p0=function(){function r(c,u,d,f,m,p){if(p!==e){var g=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw g.name="Invariant Violation",g}}r.isRequired=r;function a(){return r}var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:a,element:r,elementType:r,instanceOf:a,node:r,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},p0}var AO;function b1(){return AO||(AO=1,f0.exports=$K()()),f0.exports}var UK=b1();const xr=ja(UK);var zK=["sitekey","onChange","theme","type","tabindex","onExpired","onErrored","size","stoken","grecaptcha","badge","hl","isolated"];function k_(){return k_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},k_.apply(this,arguments)}function VK(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i<r.length;i++)a=r[i],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function wh(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function FK(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,N_(e,t)}function N_(e,t){return N_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},N_(e,t)}var Km=(function(e){FK(t,e);function t(){var r;return r=e.call(this)||this,r.handleExpired=r.handleExpired.bind(wh(r)),r.handleErrored=r.handleErrored.bind(wh(r)),r.handleChange=r.handleChange.bind(wh(r)),r.handleRecaptchaRef=r.handleRecaptchaRef.bind(wh(r)),r}var n=t.prototype;return n.getCaptchaFunction=function(a){return this.props.grecaptcha?this.props.grecaptcha.enterprise?this.props.grecaptcha.enterprise[a]:this.props.grecaptcha[a]:null},n.getValue=function(){var a=this.getCaptchaFunction("getResponse");return a&&this._widgetId!==void 0?a(this._widgetId):null},n.getWidgetId=function(){return this.props.grecaptcha&&this._widgetId!==void 0?this._widgetId:null},n.execute=function(){var a=this.getCaptchaFunction("execute");if(a&&this._widgetId!==void 0)return a(this._widgetId);this._executeRequested=!0},n.executeAsync=function(){var a=this;return new Promise(function(i,c){a.executionResolve=i,a.executionReject=c,a.execute()})},n.reset=function(){var a=this.getCaptchaFunction("reset");a&&this._widgetId!==void 0&&a(this._widgetId)},n.forceReset=function(){var a=this.getCaptchaFunction("reset");a&&a()},n.handleExpired=function(){this.props.onExpired?this.props.onExpired():this.handleChange(null)},n.handleErrored=function(){this.props.onErrored&&this.props.onErrored(),this.executionReject&&(this.executionReject(),delete this.executionResolve,delete this.executionReject)},n.handleChange=function(a){this.props.onChange&&this.props.onChange(a),this.executionResolve&&(this.executionResolve(a),delete this.executionReject,delete this.executionResolve)},n.explicitRender=function(){var a=this.getCaptchaFunction("render");if(a&&this._widgetId===void 0){var i=document.createElement("div");this._widgetId=a(i,{sitekey:this.props.sitekey,callback:this.handleChange,theme:this.props.theme,type:this.props.type,tabindex:this.props.tabindex,"expired-callback":this.handleExpired,"error-callback":this.handleErrored,size:this.props.size,stoken:this.props.stoken,hl:this.props.hl,badge:this.props.badge,isolated:this.props.isolated}),this.captcha.appendChild(i)}this._executeRequested&&this.props.grecaptcha&&this._widgetId!==void 0&&(this._executeRequested=!1,this.execute())},n.componentDidMount=function(){this.explicitRender()},n.componentDidUpdate=function(){this.explicitRender()},n.handleRecaptchaRef=function(a){this.captcha=a},n.render=function(){var a=this.props;a.sitekey,a.onChange,a.theme,a.type,a.tabindex,a.onExpired,a.onErrored,a.size,a.stoken,a.grecaptcha,a.badge,a.hl,a.isolated;var i=VK(a,zK);return A.createElement("div",k_({},i,{ref:this.handleRecaptchaRef}))},t})(A.Component);Km.displayName="ReCAPTCHA";Km.propTypes={sitekey:xr.string.isRequired,onChange:xr.func,grecaptcha:xr.object,theme:xr.oneOf(["dark","light"]),type:xr.oneOf(["image","audio"]),tabindex:xr.number,onExpired:xr.func,onErrored:xr.func,size:xr.oneOf(["compact","normal","invisible"]),stoken:xr.string,hl:xr.string,badge:xr.oneOf(["bottomright","bottomleft","inline"]),isolated:xr.bool};Km.defaultProps={onChange:function(){},theme:"light",type:"image",tabindex:0,size:"normal",badge:"bottomright"};var m0={exports:{}},Mt={};var IO;function BK(){if(IO)return Mt;IO=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,c=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,m=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,w=e?Symbol.for("react.lazy"):60116,S=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,R=e?Symbol.for("react.responder"):60118,E=e?Symbol.for("react.scope"):60119;function T(C){if(typeof C=="object"&&C!==null){var I=C.$$typeof;switch(I){case t:switch(C=C.type,C){case d:case f:case r:case i:case a:case p:return C;default:switch(C=C&&C.$$typeof,C){case u:case m:case w:case y:case c:return C;default:return I}}case n:return I}}}function O(C){return T(C)===f}return Mt.AsyncMode=d,Mt.ConcurrentMode=f,Mt.ContextConsumer=u,Mt.ContextProvider=c,Mt.Element=t,Mt.ForwardRef=m,Mt.Fragment=r,Mt.Lazy=w,Mt.Memo=y,Mt.Portal=n,Mt.Profiler=i,Mt.StrictMode=a,Mt.Suspense=p,Mt.isAsyncMode=function(C){return O(C)||T(C)===d},Mt.isConcurrentMode=O,Mt.isContextConsumer=function(C){return T(C)===u},Mt.isContextProvider=function(C){return T(C)===c},Mt.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===t},Mt.isForwardRef=function(C){return T(C)===m},Mt.isFragment=function(C){return T(C)===r},Mt.isLazy=function(C){return T(C)===w},Mt.isMemo=function(C){return T(C)===y},Mt.isPortal=function(C){return T(C)===n},Mt.isProfiler=function(C){return T(C)===i},Mt.isStrictMode=function(C){return T(C)===a},Mt.isSuspense=function(C){return T(C)===p},Mt.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===r||C===f||C===i||C===a||C===p||C===g||typeof C=="object"&&C!==null&&(C.$$typeof===w||C.$$typeof===y||C.$$typeof===c||C.$$typeof===u||C.$$typeof===m||C.$$typeof===b||C.$$typeof===R||C.$$typeof===E||C.$$typeof===S)},Mt.typeOf=T,Mt}var kO;function qK(){return kO||(kO=1,m0.exports=BK()),m0.exports}var g0,NO;function HK(){if(NO)return g0;NO=1;var e=qK(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};i[e.ForwardRef]=r,i[e.Memo]=a;function c(w){return e.isMemo(w)?a:i[w.$$typeof]||t}var u=Object.defineProperty,d=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,m=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,g=Object.prototype;function y(w,S,b){if(typeof S!="string"){if(g){var R=p(S);R&&R!==g&&y(w,R,b)}var E=d(S);f&&(E=E.concat(f(S)));for(var T=c(w),O=c(S),C=0;C<E.length;++C){var I=E[C];if(!n[I]&&!(b&&b[I])&&!(O&&O[I])&&!(T&&T[I])){var N=m(S,I);try{u(w,I,N)}catch{}}}}return w}return g0=y,g0}var GK=HK();const ZK=ja(GK);function M_(){return M_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},M_.apply(this,arguments)}function KK(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i<r.length;i++)a=r[i],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function WK(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var To={},YK=0;function QK(e,t){return t=t||{},function(r){var a=r.displayName||r.name||"Component",i=(function(u){WK(d,u);function d(m,p){var g;return g=u.call(this,m,p)||this,g.state={},g.__scriptURL="",g}var f=d.prototype;return f.asyncScriptLoaderGetScriptLoaderID=function(){return this.__scriptLoaderID||(this.__scriptLoaderID="async-script-loader-"+YK++),this.__scriptLoaderID},f.setupScriptURL=function(){return this.__scriptURL=typeof e=="function"?e():e,this.__scriptURL},f.asyncScriptLoaderHandleLoad=function(p){var g=this;this.setState(p,function(){return g.props.asyncScriptOnLoad&&g.props.asyncScriptOnLoad(g.state)})},f.asyncScriptLoaderTriggerOnScriptLoaded=function(){var p=To[this.__scriptURL];if(!p||!p.loaded)throw new Error("Script is not loaded.");for(var g in p.observers)p.observers[g](p);delete window[t.callbackName]},f.componentDidMount=function(){var p=this,g=this.setupScriptURL(),y=this.asyncScriptLoaderGetScriptLoaderID(),w=t,S=w.globalName,b=w.callbackName,R=w.scriptId;if(S&&typeof window[S]<"u"&&(To[g]={loaded:!0,observers:{}}),To[g]){var E=To[g];if(E&&(E.loaded||E.errored)){this.asyncScriptLoaderHandleLoad(E);return}E.observers[y]=function(N){return p.asyncScriptLoaderHandleLoad(N)};return}var T={};T[y]=function(N){return p.asyncScriptLoaderHandleLoad(N)},To[g]={loaded:!1,observers:T};var O=document.createElement("script");O.src=g,O.async=!0;for(var C in t.attributes)O.setAttribute(C,t.attributes[C]);R&&(O.id=R);var I=function(D){if(To[g]){var z=To[g],W=z.observers;for(var V in W)D(W[V])&&delete W[V]}};b&&typeof window<"u"&&(window[b]=function(){return p.asyncScriptLoaderTriggerOnScriptLoaded()}),O.onload=function(){var N=To[g];N&&(N.loaded=!0,I(function(D){return b?!1:(D(N),!0)}))},O.onerror=function(){var N=To[g];N&&(N.errored=!0,I(function(D){return D(N),!0}))},document.body.appendChild(O)},f.componentWillUnmount=function(){var p=this.__scriptURL;if(t.removeOnUnmount===!0)for(var g=document.getElementsByTagName("script"),y=0;y<g.length;y+=1)g[y].src.indexOf(p)>-1&&g[y].parentNode&&g[y].parentNode.removeChild(g[y]);var w=To[p];w&&(delete w.observers[this.asyncScriptLoaderGetScriptLoaderID()],t.removeOnUnmount===!0&&delete To[p])},f.render=function(){var p=t.globalName,g=this.props;g.asyncScriptOnLoad;var y=g.forwardedRef,w=KK(g,["asyncScriptOnLoad","forwardedRef"]);return p&&typeof window<"u"&&(w[p]=typeof window[p]<"u"?window[p]:void 0),w.ref=y,A.createElement(r,w)},d})(A.Component),c=A.forwardRef(function(u,d){return A.createElement(i,M_({},u,{forwardedRef:d}))});return c.displayName="AsyncScriptLoader("+a+")",c.propTypes={asyncScriptOnLoad:xr.func},ZK(c,r)}}var P_="onloadcallback",XK="grecaptcha";function D_(){return typeof window<"u"&&window.recaptchaOptions||{}}function JK(){var e=D_(),t=e.useRecaptchaNet?"recaptcha.net":"www.google.com";return e.enterprise?"https://"+t+"/recaptcha/enterprise.js?onload="+P_+"&render=explicit":"https://"+t+"/recaptcha/api.js?onload="+P_+"&render=explicit"}const eW=QK(JK,{callbackName:P_,globalName:XK,attributes:D_().nonce?{nonce:D_().nonce}:{}})(Km);var tW=Object.defineProperty,nW=Object.defineProperties,rW=Object.getOwnPropertyDescriptors,nm=Object.getOwnPropertySymbols,J4=Object.prototype.hasOwnProperty,eM=Object.prototype.propertyIsEnumerable,MO=(e,t,n)=>t in e?tW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,oW=(e,t)=>{for(var n in t||(t={}))J4.call(t,n)&&MO(e,n,t[n]);if(nm)for(var n of nm(t))eM.call(t,n)&&MO(e,n,t[n]);return e},aW=(e,t)=>nW(e,rW(t)),sW=(e,t)=>{var n={};for(var r in e)J4.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&nm)for(var r of nm(e))t.indexOf(r)<0&&eM.call(e,r)&&(n[r]=e[r]);return n};function iW(e){let t=setTimeout(e,0),n=setTimeout(e,10),r=setTimeout(e,50);return[t,n,r]}function cW(e){let t=A.useRef();return A.useEffect(()=>{t.current=e}),t.current}var lW=18,tM=40,uW=`${tM}px`,dW=["[data-lastpass-icon-root]","com-1password-button","[data-dashlanecreated]",'[style$="2147483647 !important;"]'].join(",");function fW({containerRef:e,inputRef:t,pushPasswordManagerStrategy:n,isFocused:r}){let[a,i]=A.useState(!1),[c,u]=A.useState(!1),[d,f]=A.useState(!1),m=A.useMemo(()=>n==="none"?!1:(n==="increase-width"||n==="experimental-no-flickering")&&a&&c,[a,c,n]),p=A.useCallback(()=>{let g=e.current,y=t.current;if(!g||!y||d||n==="none")return;let w=g,S=w.getBoundingClientRect().left+w.offsetWidth,b=w.getBoundingClientRect().top+w.offsetHeight/2,R=S-lW,E=b;document.querySelectorAll(dW).length===0&&document.elementFromPoint(R,E)===g||(i(!0),f(!0))},[e,t,d,n]);return A.useEffect(()=>{let g=e.current;if(!g||n==="none")return;function y(){let S=window.innerWidth-g.getBoundingClientRect().right;u(S>=tM)}y();let w=setInterval(y,1e3);return()=>{clearInterval(w)}},[e,n]),A.useEffect(()=>{let g=r||document.activeElement===t.current;if(n==="none"||!g)return;let y=setTimeout(p,0),w=setTimeout(p,2e3),S=setTimeout(p,5e3),b=setTimeout(()=>{f(!0)},6e3);return()=>{clearTimeout(y),clearTimeout(w),clearTimeout(S),clearTimeout(b)}},[t,r,n,p]),{hasPWMBadge:a,willPushPWMBadge:m,PWM_BADGE_SPACE_WIDTH:uW}}var nM=A.createContext({}),rM=A.forwardRef((e,t)=>{var n=e,{value:r,onChange:a,maxLength:i,textAlign:c="left",pattern:u,placeholder:d,inputMode:f="numeric",onComplete:m,pushPasswordManagerStrategy:p="increase-width",pasteTransformer:g,containerClassName:y,noScriptCSSFallback:w=hW,render:S,children:b}=n,R=sW(n,["value","onChange","maxLength","textAlign","pattern","placeholder","inputMode","onComplete","pushPasswordManagerStrategy","pasteTransformer","containerClassName","noScriptCSSFallback","render","children"]),E,T,O,C,I;let[N,D]=A.useState(typeof R.defaultValue=="string"?R.defaultValue:""),z=r??N,W=cW(z),V=A.useCallback(pe=>{a?.(pe),D(pe)},[a]),G=A.useMemo(()=>u?typeof u=="string"?new RegExp(u):u:null,[u]),U=A.useRef(null),J=A.useRef(null),ie=A.useRef({value:z,onChange:V,isIOS:typeof window<"u"&&((T=(E=window?.CSS)==null?void 0:E.supports)==null?void 0:T.call(E,"-webkit-touch-callout","none"))}),F=A.useRef({prev:[(O=U.current)==null?void 0:O.selectionStart,(C=U.current)==null?void 0:C.selectionEnd,(I=U.current)==null?void 0:I.selectionDirection]});A.useImperativeHandle(t,()=>U.current,[]),A.useEffect(()=>{let pe=U.current,ce=J.current;if(!pe||!ce)return;ie.current.value!==pe.value&&ie.current.onChange(pe.value),F.current.prev=[pe.selectionStart,pe.selectionEnd,pe.selectionDirection];function Oe(){if(document.activeElement!==pe){q(null),L(null);return}let He=pe.selectionStart,Xe=pe.selectionEnd,Z=pe.selectionDirection,te=pe.maxLength,oe=pe.value,Se=F.current.prev,Te=-1,Re=-1,Ne;if(oe.length!==0&&He!==null&&Xe!==null){let hr=He===Xe,Rn=He===oe.length&&oe.length<te;if(hr&&!Rn){let Un=He;if(Un===0)Te=0,Re=1,Ne="forward";else if(Un===te)Te=Un-1,Re=Un,Ne="backward";else if(te>1&&oe.length>1){let en=0;if(Se[0]!==null&&Se[1]!==null){Ne=Un<Se[1]?"backward":"forward";let zn=Se[0]===Se[1]&&Se[0]<te;Ne==="backward"&&!zn&&(en=-1)}Te=en+Un,Re=en+Un+1}}Te!==-1&&Re!==-1&&Te!==Re&&U.current.setSelectionRange(Te,Re,Ne)}let rt=Te!==-1?Te:He,st=Re!==-1?Re:Xe,Pt=Ne??Z;q(rt),L(st),F.current.prev=[rt,st,Pt]}if(document.addEventListener("selectionchange",Oe,{capture:!0}),Oe(),document.activeElement===pe&&K(!0),!document.getElementById("input-otp-style")){let He=document.createElement("style");if(He.id="input-otp-style",document.head.appendChild(He),He.sheet){let Xe="background: transparent !important; color: transparent !important; border-color: transparent !important; opacity: 0 !important; box-shadow: none !important; -webkit-box-shadow: none !important; -webkit-text-fill-color: transparent !important;";Tu(He.sheet,"[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"),Tu(He.sheet,`[data-input-otp]:autofill { ${Xe} }`),Tu(He.sheet,`[data-input-otp]:-webkit-autofill { ${Xe} }`),Tu(He.sheet,"@supports (-webkit-touch-callout: none) { [data-input-otp] { letter-spacing: -.6em !important; font-weight: 100 !important; font-stretch: ultra-condensed; font-optical-sizing: none !important; left: -1px !important; right: 1px !important; } }"),Tu(He.sheet,"[data-input-otp] + * { pointer-events: all !important; }")}}let $e=()=>{ce&&ce.style.setProperty("--root-height",`${pe.clientHeight}px`)};$e();let Ye=new ResizeObserver($e);return Ye.observe(pe),()=>{document.removeEventListener("selectionchange",Oe,{capture:!0}),Ye.disconnect()}},[]);let[X,ae]=A.useState(!1),[fe,K]=A.useState(!1),[P,q]=A.useState(null),[B,L]=A.useState(null);A.useEffect(()=>{iW(()=>{var pe,ce,Oe,$e;(pe=U.current)==null||pe.dispatchEvent(new Event("input"));let Ye=(ce=U.current)==null?void 0:ce.selectionStart,He=(Oe=U.current)==null?void 0:Oe.selectionEnd,Xe=($e=U.current)==null?void 0:$e.selectionDirection;Ye!==null&&He!==null&&(q(Ye),L(He),F.current.prev=[Ye,He,Xe])})},[z,fe]),A.useEffect(()=>{W!==void 0&&z!==W&&W.length<i&&z.length===i&&m?.(z)},[i,m,W,z]);let $=fW({containerRef:J,inputRef:U,pushPasswordManagerStrategy:p,isFocused:fe}),Q=A.useCallback(pe=>{let ce=pe.currentTarget.value.slice(0,i);if(ce.length>0&&G&&!G.test(ce)){pe.preventDefault();return}typeof W=="string"&&ce.length<W.length&&document.dispatchEvent(new Event("selectionchange")),V(ce)},[i,V,W,G]),me=A.useCallback(()=>{var pe;if(U.current){let ce=Math.min(U.current.value.length,i-1),Oe=U.current.value.length;(pe=U.current)==null||pe.setSelectionRange(ce,Oe),q(ce),L(Oe)}K(!0)},[i]),_e=A.useCallback(pe=>{var ce,Oe;let $e=U.current;if(!g&&(!ie.current.isIOS||!pe.clipboardData||!$e))return;let Ye=pe.clipboardData.getData("text/plain"),He=g?g(Ye):Ye;pe.preventDefault();let Xe=(ce=U.current)==null?void 0:ce.selectionStart,Z=(Oe=U.current)==null?void 0:Oe.selectionEnd,te=(Xe!==Z?z.slice(0,Xe)+He+z.slice(Z):z.slice(0,Xe)+He+z.slice(Xe)).slice(0,i);if(te.length>0&&G&&!G.test(te))return;$e.value=te,V(te);let oe=Math.min(te.length,i-1),Se=te.length;$e.setSelectionRange(oe,Se),q(oe),L(Se)},[i,V,G,z]),Ae=A.useMemo(()=>({position:"relative",cursor:R.disabled?"default":"text",userSelect:"none",WebkitUserSelect:"none",pointerEvents:"none"}),[R.disabled]),ke=A.useMemo(()=>({position:"absolute",inset:0,width:$.willPushPWMBadge?`calc(100% + ${$.PWM_BADGE_SPACE_WIDTH})`:"100%",clipPath:$.willPushPWMBadge?`inset(0 ${$.PWM_BADGE_SPACE_WIDTH} 0 0)`:void 0,height:"100%",display:"flex",textAlign:c,opacity:"1",color:"transparent",pointerEvents:"all",background:"transparent",caretColor:"transparent",border:"0 solid transparent",outline:"0 solid transparent",boxShadow:"none",lineHeight:"1",letterSpacing:"-.5em",fontSize:"var(--root-height)",fontFamily:"monospace",fontVariantNumeric:"tabular-nums"}),[$.PWM_BADGE_SPACE_WIDTH,$.willPushPWMBadge,c]),H=A.useMemo(()=>A.createElement("input",aW(oW({autoComplete:R.autoComplete||"one-time-code"},R),{"data-input-otp":!0,"data-input-otp-placeholder-shown":z.length===0||void 0,"data-input-otp-mss":P,"data-input-otp-mse":B,inputMode:f,pattern:G?.source,"aria-placeholder":d,style:ke,maxLength:i,value:z,ref:U,onPaste:pe=>{var ce;_e(pe),(ce=R.onPaste)==null||ce.call(R,pe)},onChange:Q,onMouseOver:pe=>{var ce;ae(!0),(ce=R.onMouseOver)==null||ce.call(R,pe)},onMouseLeave:pe=>{var ce;ae(!1),(ce=R.onMouseLeave)==null||ce.call(R,pe)},onFocus:pe=>{var ce;me(),(ce=R.onFocus)==null||ce.call(R,pe)},onBlur:pe=>{var ce;K(!1),(ce=R.onBlur)==null||ce.call(R,pe)}})),[Q,me,_e,f,ke,i,B,P,R,G?.source,z]),ne=A.useMemo(()=>({slots:Array.from({length:i}).map((pe,ce)=>{var Oe;let $e=fe&&P!==null&&B!==null&&(P===B&&ce===P||ce>=P&&ce<B),Ye=z[ce]!==void 0?z[ce]:null,He=z[0]!==void 0?null:(Oe=d?.[ce])!=null?Oe:null;return{char:Ye,placeholderChar:He,isActive:$e,hasFakeCaret:$e&&Ye===null}}),isFocused:fe,isHovering:!R.disabled&&X}),[fe,X,i,B,P,R.disabled,z]),be=A.useMemo(()=>S?S(ne):A.createElement(nM.Provider,{value:ne},b),[b,ne,S]);return A.createElement(A.Fragment,null,w!==null&&A.createElement("noscript",null,A.createElement("style",null,w)),A.createElement("div",{ref:J,"data-input-otp-container":!0,style:Ae,className:y},be,A.createElement("div",{style:{position:"absolute",inset:0,pointerEvents:"none"}},H)))});rM.displayName="Input";function Tu(e,t){try{e.insertRule(t)}catch{console.error("input-otp could not insert CSS rule:",t)}}var hW=`
|
|
111
|
-
[data-input-otp] {
|
|
112
|
-
--nojs-bg: white !important;
|
|
113
|
-
--nojs-fg: black !important;
|
|
114
|
-
|
|
115
|
-
background-color: var(--nojs-bg) !important;
|
|
116
|
-
color: var(--nojs-fg) !important;
|
|
117
|
-
caret-color: var(--nojs-fg) !important;
|
|
118
|
-
letter-spacing: .25em !important;
|
|
119
|
-
text-align: center !important;
|
|
120
|
-
border: 1px solid var(--nojs-fg) !important;
|
|
121
|
-
border-radius: 4px !important;
|
|
122
|
-
width: 100% !important;
|
|
123
|
-
}
|
|
124
|
-
@media (prefers-color-scheme: dark) {
|
|
125
|
-
[data-input-otp] {
|
|
126
|
-
--nojs-bg: black !important;
|
|
127
|
-
--nojs-fg: white !important;
|
|
128
|
-
}
|
|
129
|
-
}`,jc={},v0,PO;function oM(){return PO||(PO=1,v0={L:1,M:0,Q:3,H:2}),v0}var y0,DO;function aM(){return DO||(DO=1,y0={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8}),y0}var _0,LO;function pW(){if(LO)return _0;LO=1;var e=aM();function t(n){this.mode=e.MODE_8BIT_BYTE,this.data=n}return t.prototype={getLength:function(n){return this.data.length},write:function(n){for(var r=0;r<this.data.length;r++)n.put(this.data.charCodeAt(r),8)}},_0=t,_0}var b0,jO;function mW(){if(jO)return b0;jO=1;var e=oM();function t(n,r){this.totalCount=n,this.dataCount=r}return t.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],t.getRSBlocks=function(n,r){var a=t.getRsBlockTable(n,r);if(a==null)throw new Error("bad rs block @ typeNumber:"+n+"/errorCorrectLevel:"+r);for(var i=a.length/3,c=new Array,u=0;u<i;u++)for(var d=a[u*3+0],f=a[u*3+1],m=a[u*3+2],p=0;p<d;p++)c.push(new t(f,m));return c},t.getRsBlockTable=function(n,r){switch(r){case e.L:return t.RS_BLOCK_TABLE[(n-1)*4+0];case e.M:return t.RS_BLOCK_TABLE[(n-1)*4+1];case e.Q:return t.RS_BLOCK_TABLE[(n-1)*4+2];case e.H:return t.RS_BLOCK_TABLE[(n-1)*4+3];default:return}},b0=t,b0}var w0,$O;function gW(){if($O)return w0;$O=1;function e(){this.buffer=new Array,this.length=0}return e.prototype={get:function(t){var n=Math.floor(t/8);return(this.buffer[n]>>>7-t%8&1)==1},put:function(t,n){for(var r=0;r<n;r++)this.putBit((t>>>n-r-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(t){var n=Math.floor(this.length/8);this.buffer.length<=n&&this.buffer.push(0),t&&(this.buffer[n]|=128>>>this.length%8),this.length++}},w0=e,w0}var S0,UO;function sM(){if(UO)return S0;UO=1;for(var e={glog:function(n){if(n<1)throw new Error("glog("+n+")");return e.LOG_TABLE[n]},gexp:function(n){for(;n<0;)n+=255;for(;n>=256;)n-=255;return e.EXP_TABLE[n]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},t=0;t<8;t++)e.EXP_TABLE[t]=1<<t;for(var t=8;t<256;t++)e.EXP_TABLE[t]=e.EXP_TABLE[t-4]^e.EXP_TABLE[t-5]^e.EXP_TABLE[t-6]^e.EXP_TABLE[t-8];for(var t=0;t<255;t++)e.LOG_TABLE[e.EXP_TABLE[t]]=t;return S0=e,S0}var E0,zO;function iM(){if(zO)return E0;zO=1;var e=sM();function t(n,r){if(n.length==null)throw new Error(n.length+"/"+r);for(var a=0;a<n.length&&n[a]==0;)a++;this.num=new Array(n.length-a+r);for(var i=0;i<n.length-a;i++)this.num[i]=n[i+a]}return t.prototype={get:function(n){return this.num[n]},getLength:function(){return this.num.length},multiply:function(n){for(var r=new Array(this.getLength()+n.getLength()-1),a=0;a<this.getLength();a++)for(var i=0;i<n.getLength();i++)r[a+i]^=e.gexp(e.glog(this.get(a))+e.glog(n.get(i)));return new t(r,0)},mod:function(n){if(this.getLength()-n.getLength()<0)return this;for(var r=e.glog(this.get(0))-e.glog(n.get(0)),a=new Array(this.getLength()),i=0;i<this.getLength();i++)a[i]=this.get(i);for(var i=0;i<n.getLength();i++)a[i]^=e.gexp(e.glog(n.get(i))+r);return new t(a,0).mod(n)}},E0=t,E0}var R0,VO;function vW(){if(VO)return R0;VO=1;var e=aM(),t=iM(),n=sM(),r={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},a={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(i){for(var c=i<<10;a.getBCHDigit(c)-a.getBCHDigit(a.G15)>=0;)c^=a.G15<<a.getBCHDigit(c)-a.getBCHDigit(a.G15);return(i<<10|c)^a.G15_MASK},getBCHTypeNumber:function(i){for(var c=i<<12;a.getBCHDigit(c)-a.getBCHDigit(a.G18)>=0;)c^=a.G18<<a.getBCHDigit(c)-a.getBCHDigit(a.G18);return i<<12|c},getBCHDigit:function(i){for(var c=0;i!=0;)c++,i>>>=1;return c},getPatternPosition:function(i){return a.PATTERN_POSITION_TABLE[i-1]},getMask:function(i,c,u){switch(i){case r.PATTERN000:return(c+u)%2==0;case r.PATTERN001:return c%2==0;case r.PATTERN010:return u%3==0;case r.PATTERN011:return(c+u)%3==0;case r.PATTERN100:return(Math.floor(c/2)+Math.floor(u/3))%2==0;case r.PATTERN101:return c*u%2+c*u%3==0;case r.PATTERN110:return(c*u%2+c*u%3)%2==0;case r.PATTERN111:return(c*u%3+(c+u)%2)%2==0;default:throw new Error("bad maskPattern:"+i)}},getErrorCorrectPolynomial:function(i){for(var c=new t([1],0),u=0;u<i;u++)c=c.multiply(new t([1,n.gexp(u)],0));return c},getLengthInBits:function(i,c){if(1<=c&&c<10)switch(i){case e.MODE_NUMBER:return 10;case e.MODE_ALPHA_NUM:return 9;case e.MODE_8BIT_BYTE:return 8;case e.MODE_KANJI:return 8;default:throw new Error("mode:"+i)}else if(c<27)switch(i){case e.MODE_NUMBER:return 12;case e.MODE_ALPHA_NUM:return 11;case e.MODE_8BIT_BYTE:return 16;case e.MODE_KANJI:return 10;default:throw new Error("mode:"+i)}else if(c<41)switch(i){case e.MODE_NUMBER:return 14;case e.MODE_ALPHA_NUM:return 13;case e.MODE_8BIT_BYTE:return 16;case e.MODE_KANJI:return 12;default:throw new Error("mode:"+i)}else throw new Error("type:"+c)},getLostPoint:function(i){for(var c=i.getModuleCount(),u=0,d=0;d<c;d++)for(var f=0;f<c;f++){for(var m=0,p=i.isDark(d,f),g=-1;g<=1;g++)if(!(d+g<0||c<=d+g))for(var y=-1;y<=1;y++)f+y<0||c<=f+y||g==0&&y==0||p==i.isDark(d+g,f+y)&&m++;m>5&&(u+=3+m-5)}for(var d=0;d<c-1;d++)for(var f=0;f<c-1;f++){var w=0;i.isDark(d,f)&&w++,i.isDark(d+1,f)&&w++,i.isDark(d,f+1)&&w++,i.isDark(d+1,f+1)&&w++,(w==0||w==4)&&(u+=3)}for(var d=0;d<c;d++)for(var f=0;f<c-6;f++)i.isDark(d,f)&&!i.isDark(d,f+1)&&i.isDark(d,f+2)&&i.isDark(d,f+3)&&i.isDark(d,f+4)&&!i.isDark(d,f+5)&&i.isDark(d,f+6)&&(u+=40);for(var f=0;f<c;f++)for(var d=0;d<c-6;d++)i.isDark(d,f)&&!i.isDark(d+1,f)&&i.isDark(d+2,f)&&i.isDark(d+3,f)&&i.isDark(d+4,f)&&!i.isDark(d+5,f)&&i.isDark(d+6,f)&&(u+=40);for(var S=0,f=0;f<c;f++)for(var d=0;d<c;d++)i.isDark(d,f)&&S++;var b=Math.abs(100*S/c/c-50)/5;return u+=b*10,u}};return R0=a,R0}var x0,FO;function yW(){if(FO)return x0;FO=1;var e=pW(),t=mW(),n=gW(),r=vW(),a=iM();function i(u,d){this.typeNumber=u,this.errorCorrectLevel=d,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}var c=i.prototype;return c.addData=function(u){var d=new e(u);this.dataList.push(d),this.dataCache=null},c.isDark=function(u,d){if(u<0||this.moduleCount<=u||d<0||this.moduleCount<=d)throw new Error(u+","+d);return this.modules[u][d]},c.getModuleCount=function(){return this.moduleCount},c.make=function(){if(this.typeNumber<1){var u=1;for(u=1;u<40;u++){for(var d=t.getRSBlocks(u,this.errorCorrectLevel),f=new n,m=0,p=0;p<d.length;p++)m+=d[p].dataCount;for(var p=0;p<this.dataList.length;p++){var g=this.dataList[p];f.put(g.mode,4),f.put(g.getLength(),r.getLengthInBits(g.mode,u)),g.write(f)}if(f.getLengthInBits()<=m*8)break}this.typeNumber=u}this.makeImpl(!1,this.getBestMaskPattern())},c.makeImpl=function(u,d){this.moduleCount=this.typeNumber*4+17,this.modules=new Array(this.moduleCount);for(var f=0;f<this.moduleCount;f++){this.modules[f]=new Array(this.moduleCount);for(var m=0;m<this.moduleCount;m++)this.modules[f][m]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(u,d),this.typeNumber>=7&&this.setupTypeNumber(u),this.dataCache==null&&(this.dataCache=i.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,d)},c.setupPositionProbePattern=function(u,d){for(var f=-1;f<=7;f++)if(!(u+f<=-1||this.moduleCount<=u+f))for(var m=-1;m<=7;m++)d+m<=-1||this.moduleCount<=d+m||(0<=f&&f<=6&&(m==0||m==6)||0<=m&&m<=6&&(f==0||f==6)||2<=f&&f<=4&&2<=m&&m<=4?this.modules[u+f][d+m]=!0:this.modules[u+f][d+m]=!1)},c.getBestMaskPattern=function(){for(var u=0,d=0,f=0;f<8;f++){this.makeImpl(!0,f);var m=r.getLostPoint(this);(f==0||u>m)&&(u=m,d=f)}return d},c.createMovieClip=function(u,d,f){var m=u.createEmptyMovieClip(d,f),p=1;this.make();for(var g=0;g<this.modules.length;g++)for(var y=g*p,w=0;w<this.modules[g].length;w++){var S=w*p,b=this.modules[g][w];b&&(m.beginFill(0,100),m.moveTo(S,y),m.lineTo(S+p,y),m.lineTo(S+p,y+p),m.lineTo(S,y+p),m.endFill())}return m},c.setupTimingPattern=function(){for(var u=8;u<this.moduleCount-8;u++)this.modules[u][6]==null&&(this.modules[u][6]=u%2==0);for(var d=8;d<this.moduleCount-8;d++)this.modules[6][d]==null&&(this.modules[6][d]=d%2==0)},c.setupPositionAdjustPattern=function(){for(var u=r.getPatternPosition(this.typeNumber),d=0;d<u.length;d++)for(var f=0;f<u.length;f++){var m=u[d],p=u[f];if(this.modules[m][p]==null)for(var g=-2;g<=2;g++)for(var y=-2;y<=2;y++)g==-2||g==2||y==-2||y==2||g==0&&y==0?this.modules[m+g][p+y]=!0:this.modules[m+g][p+y]=!1}},c.setupTypeNumber=function(u){for(var d=r.getBCHTypeNumber(this.typeNumber),f=0;f<18;f++){var m=!u&&(d>>f&1)==1;this.modules[Math.floor(f/3)][f%3+this.moduleCount-8-3]=m}for(var f=0;f<18;f++){var m=!u&&(d>>f&1)==1;this.modules[f%3+this.moduleCount-8-3][Math.floor(f/3)]=m}},c.setupTypeInfo=function(u,d){for(var f=this.errorCorrectLevel<<3|d,m=r.getBCHTypeInfo(f),p=0;p<15;p++){var g=!u&&(m>>p&1)==1;p<6?this.modules[p][8]=g:p<8?this.modules[p+1][8]=g:this.modules[this.moduleCount-15+p][8]=g}for(var p=0;p<15;p++){var g=!u&&(m>>p&1)==1;p<8?this.modules[8][this.moduleCount-p-1]=g:p<9?this.modules[8][15-p-1+1]=g:this.modules[8][15-p-1]=g}this.modules[this.moduleCount-8][8]=!u},c.mapData=function(u,d){for(var f=-1,m=this.moduleCount-1,p=7,g=0,y=this.moduleCount-1;y>0;y-=2)for(y==6&&y--;;){for(var w=0;w<2;w++)if(this.modules[m][y-w]==null){var S=!1;g<u.length&&(S=(u[g]>>>p&1)==1);var b=r.getMask(d,m,y-w);b&&(S=!S),this.modules[m][y-w]=S,p--,p==-1&&(g++,p=7)}if(m+=f,m<0||this.moduleCount<=m){m-=f,f=-f;break}}},i.PAD0=236,i.PAD1=17,i.createData=function(u,d,f){for(var m=t.getRSBlocks(u,d),p=new n,g=0;g<f.length;g++){var y=f[g];p.put(y.mode,4),p.put(y.getLength(),r.getLengthInBits(y.mode,u)),y.write(p)}for(var w=0,g=0;g<m.length;g++)w+=m[g].dataCount;if(p.getLengthInBits()>w*8)throw new Error("code length overflow. ("+p.getLengthInBits()+">"+w*8+")");for(p.getLengthInBits()+4<=w*8&&p.put(0,4);p.getLengthInBits()%8!=0;)p.putBit(!1);for(;!(p.getLengthInBits()>=w*8||(p.put(i.PAD0,8),p.getLengthInBits()>=w*8));)p.put(i.PAD1,8);return i.createBytes(p,m)},i.createBytes=function(u,d){for(var f=0,m=0,p=0,g=new Array(d.length),y=new Array(d.length),w=0;w<d.length;w++){var S=d[w].dataCount,b=d[w].totalCount-S;m=Math.max(m,S),p=Math.max(p,b),g[w]=new Array(S);for(var R=0;R<g[w].length;R++)g[w][R]=255&u.buffer[R+f];f+=S;var E=r.getErrorCorrectPolynomial(b),T=new a(g[w],E.getLength()-1),O=T.mod(E);y[w]=new Array(E.getLength()-1);for(var R=0;R<y[w].length;R++){var C=R+O.getLength()-y[w].length;y[w][R]=C>=0?O.get(C):0}}for(var I=0,R=0;R<d.length;R++)I+=d[R].totalCount;for(var N=new Array(I),D=0,R=0;R<m;R++)for(var w=0;w<d.length;w++)R<g[w].length&&(N[D++]=g[w][R]);for(var R=0;R<p;R++)for(var w=0;w<d.length;w++)R<y[w].length&&(N[D++]=y[w][R]);return N},x0=i,x0}var Sh={},BO;function _W(){if(BO)return Sh;BO=1,Object.defineProperty(Sh,"__esModule",{value:!0});var e=Object.assign||function(f){for(var m=1;m<arguments.length;m++){var p=arguments[m];for(var g in p)Object.prototype.hasOwnProperty.call(p,g)&&(f[g]=p[g])}return f},t=b1(),n=i(t),r=zs(),a=i(r);function i(f){return f&&f.__esModule?f:{default:f}}function c(f,m){var p={};for(var g in f)m.indexOf(g)>=0||Object.prototype.hasOwnProperty.call(f,g)&&(p[g]=f[g]);return p}var u={bgColor:n.default.oneOfType([n.default.object,n.default.string]).isRequired,bgD:n.default.string.isRequired,fgColor:n.default.oneOfType([n.default.object,n.default.string]).isRequired,fgD:n.default.string.isRequired,size:n.default.number.isRequired,title:n.default.string,viewBoxSize:n.default.number.isRequired,xmlns:n.default.string},d=(0,r.forwardRef)(function(f,m){var p=f.bgColor,g=f.bgD,y=f.fgD,w=f.fgColor,S=f.size,b=f.title,R=f.viewBoxSize,E=f.xmlns,T=E===void 0?"http://www.w3.org/2000/svg":E,O=c(f,["bgColor","bgD","fgD","fgColor","size","title","viewBoxSize","xmlns"]);return a.default.createElement("svg",e({},O,{height:S,ref:m,viewBox:"0 0 "+R+" "+R,width:S,xmlns:T}),b?a.default.createElement("title",null,b):null,a.default.createElement("path",{d:g,fill:p}),a.default.createElement("path",{d:y,fill:w}))});return d.displayName="QRCodeSvg",d.propTypes=u,Sh.default=d,Sh}var qO;function bW(){if(qO)return jc;qO=1,Object.defineProperty(jc,"__esModule",{value:!0}),jc.QRCode=void 0;var e=Object.assign||function(S){for(var b=1;b<arguments.length;b++){var R=arguments[b];for(var E in R)Object.prototype.hasOwnProperty.call(R,E)&&(S[E]=R[E])}return S},t=b1(),n=p(t),r=oM(),a=p(r),i=yW(),c=p(i),u=zs(),d=p(u),f=_W(),m=p(f);function p(S){return S&&S.__esModule?S:{default:S}}function g(S,b){var R={};for(var E in S)b.indexOf(E)>=0||Object.prototype.hasOwnProperty.call(S,E)&&(R[E]=S[E]);return R}var y={bgColor:n.default.oneOfType([n.default.object,n.default.string]),fgColor:n.default.oneOfType([n.default.object,n.default.string]),level:n.default.string,size:n.default.number,value:n.default.string.isRequired},w=(0,u.forwardRef)(function(S,b){var R=S.bgColor,E=R===void 0?"#FFFFFF":R,T=S.fgColor,O=T===void 0?"#000000":T,C=S.level,I=C===void 0?"L":C,N=S.size,D=N===void 0?256:N,z=S.value,W=g(S,["bgColor","fgColor","level","size","value"]),V=new c.default(-1,a.default[I]);V.addData(z),V.make();var G=V.modules;return d.default.createElement(m.default,e({},W,{bgColor:E,bgD:G.map(function(U,J){return U.map(function(ie,F){return ie?"":"M "+F+" "+J+" l 1 0 0 1 -1 0 Z"}).join(" ")}).join(" "),fgColor:O,fgD:G.map(function(U,J){return U.map(function(ie,F){return ie?"M "+F+" "+J+" l 1 0 0 1 -1 0 Z":""}).join(" ")}).join(" "),ref:b,size:D,viewBoxSize:G.length}))});return jc.QRCode=w,w.displayName="QRCode",w.propTypes=y,jc.default=w,jc}var wW=bW();const SW=ja(wW);var EW="Separator",HO="horizontal",RW=["horizontal","vertical"],cM=A.forwardRef((e,t)=>{const{decorative:n,orientation:r=HO,...a}=e,i=xW(r)?r:HO,u=n?{role:"none"}:{"aria-orientation":i==="vertical"?i:void 0,role:"separator"};return x.jsx(Od.div,{"data-orientation":i,...u,...a,ref:t})});cM.displayName=EW;function xW(e){return RW.includes(e)}var TW=cM;function OW(e){const{authView:t="SIGN_IN",enabled:n=!0}={},{hooks:{useSession:r},basePath:a,viewPaths:i,replace:c}=A.useContext(ft),{data:u,isPending:d,error:f,refetch:m}=r(),p=u;return A.useEffect(()=>{if(!n||d||p)return;const y=new URLSearchParams(window.location.search).get("redirectTo")||window.location.pathname+window.location.search;c(`${a}/${i[t]}?redirectTo=${encodeURIComponent(y)}`)},[d,p,a,i,c,t,n]),{data:p,user:p?.user,isPending:d,error:f,refetch:m}}function ld({className:e,...t}){return x.jsx("div",{"data-slot":"card",className:Ce("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",e),...t})}function w1({className:e,...t}){return x.jsx("div",{"data-slot":"card-header",className:Ce("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),...t})}function lM({className:e,...t}){return x.jsx("div",{"data-slot":"card-title",className:Ce("leading-none font-semibold",e),...t})}function uM({className:e,...t}){return x.jsx("div",{"data-slot":"card-description",className:Ce("text-muted-foreground text-sm",e),...t})}function S1({className:e,...t}){return x.jsx("div",{"data-slot":"card-content",className:Ce("px-6",e),...t})}function GO({className:e,...t}){return x.jsx("div",{"data-slot":"card-footer",className:Ce("flex items-center px-6 [.border-t]:pt-6",e),...t})}function Na({className:e,...t}){return x.jsx("div",{"data-slot":"skeleton",className:Ce("bg-accent animate-pulse rounded-md",e),...t})}var CW=Ak("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});function Ht({className:e,variant:t,size:n,asChild:r=!1,...a}){const i=r?Hb:"button";return x.jsx(i,{"data-slot":"button",className:Ce(CW({variant:t,size:n,className:e})),...a})}async function AW(e,t,n,r){const a=await IW(e),i=document.createElement("canvas");i.width=i.height=n;const c=i.getContext("2d"),u=Math.min(a.width,a.height),d=(a.width-u)/2,f=(a.height-u)/2,m=u,p=u;c?.drawImage(a,d,f,m,p,0,0,n,n);const g=await new Promise(y=>i.toBlob(y,`image/${r}`));return new File([g],`${t}.${r}`,{type:`image/${r}`})}async function IW(e){return new Promise((t,n)=>{const r=new Image,a=new FileReader;a.onload=i=>{var c;r.src=(c=i.target)==null?void 0:c.result},r.onload=()=>t(r),r.onerror=i=>n(i),a.readAsDataURL(e)})}async function kW(e){return new Promise((t,n)=>{const r=new FileReader;r.onloadend=()=>t(r.result),r.onerror=n,r.readAsDataURL(e)})}function NW({...e}){return x.jsx($G,{"data-slot":"dropdown-menu",...e})}function MW({...e}){return x.jsx(UG,{"data-slot":"dropdown-menu-trigger",...e})}function PW({className:e,sideOffset:t=4,...n}){return x.jsx(zG,{children:x.jsx(VG,{"data-slot":"dropdown-menu-content",sideOffset:t,className:Ce("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-md border p-1 shadow-md",e),...n})})}function ZO({className:e,inset:t,variant:n="default",...r}){return x.jsx(FG,{"data-slot":"dropdown-menu-item","data-inset":t,"data-variant":n,className:Ce("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-default items-center gap-2 rounded-sm 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",e),...r})}function dM({className:e,...t}){return x.jsx(HG,{"data-slot":"label",className:Ce("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...t})}var sa=oF,fM=A.createContext({}),un=({...e})=>x.jsx(fM.Provider,{value:{name:e.name},children:x.jsx(nF,{...e})}),E1=()=>{const e=A.useContext(fM),t=A.useContext(hM),{getFieldState:n}=rF(),r=bk({name:e.name}),a=n(e.name,r);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:i}=t;return{id:i,name:e.name,formItemId:`${i}-form-item`,formDescriptionId:`${i}-form-item-description`,formMessageId:`${i}-form-item-message`,...a}},hM=A.createContext({});function dn({className:e,...t}){const n=A.useId();return x.jsx(hM.Provider,{value:{id:n},children:x.jsx("div",{"data-slot":"form-item",className:Ce("grid gap-2",e),...t})})}function fn({className:e,...t}){const{error:n,formItemId:r}=E1();return x.jsx(dM,{"data-slot":"form-label","data-error":!!n,className:Ce("data-[error=true]:text-destructive",e),htmlFor:r,...t})}function Sn({...e}){const{error:t,formItemId:n,formDescriptionId:r,formMessageId:a}=E1();return x.jsx(Hb,{"data-slot":"form-control",id:n,"aria-describedby":t?`${r} ${a}`:`${r}`,"aria-invalid":!!t,...e})}function Cn({className:e,...t}){const{error:n,formMessageId:r}=E1(),a=n?String(n?.message??""):t.children;return a?x.jsx("p",{"data-slot":"form-message",id:r,className:Ce("text-destructive text-sm",e),...t,children:a}):null}function Po({className:e,type:t,...n}){return x.jsx("input",{type:t,"data-slot":"input",className:Ce("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e),...n})}function pM({className:e,...t}){return x.jsx(eZ,{"data-slot":"avatar",className:Ce("relative flex size-8 shrink-0 overflow-hidden rounded-full",e),...t})}function mM({className:e,...t}){return x.jsx(tZ,{"data-slot":"avatar-image",className:Ce("aspect-square size-full",e),...t})}function gM({className:e,...t}){return x.jsx(nZ,{"data-slot":"avatar-fallback",className:Ce("bg-muted flex size-full items-center justify-center rounded-full",e),...t})}function DW({className:e,classNames:t,isPending:n,size:r,organization:a,localization:i,...c}){const{localization:u,avatar:d}=A.useContext(ft),f=A.useMemo(()=>({...u,...i}),[u,i]),m=a?.name,p=a?.logo;return n?x.jsx(Na,{className:Ce("shrink-0 rounded-full",r==="sm"?"size-6":r==="lg"?"size-10":r==="xl"?"size-12":"size-8",e,t?.base,t?.skeleton)}):x.jsxs(pM,{className:Ce("bg-muted",r==="sm"?"size-6":r==="lg"?"size-10":r==="xl"?"size-12":"size-8",e,t?.base),...c,children:[d?.Image?x.jsx(d.Image,{alt:m||f?.ORGANIZATION,className:t?.image,src:p||""}):x.jsx(mM,{alt:m||f?.ORGANIZATION,className:t?.image,src:p||void 0}),x.jsx(gM,{className:Ce("text-foreground",t?.fallback),delayMs:p?600:void 0,children:x.jsx(FV,{className:Ce("size-[50%]",t?.fallbackIcon)})})]})}function vM({className:e,classNames:t,isPending:n,size:r,organization:a,localization:i}){const{localization:c}=A.useContext(ft),u={...c,...i};return x.jsxs("div",{className:Ce("flex items-center gap-2 truncate",e,t?.base),children:[x.jsx(DW,{className:Ce(r!=="sm"&&"my-0.5"),classNames:t?.avatar,isPending:n,localization:u,organization:a,size:r}),x.jsx("div",{className:Ce("flex flex-col truncate text-left leading-tight",t?.content),children:n?x.jsxs(x.Fragment,{children:[x.jsx(Na,{className:Ce("max-w-full",r==="lg"?"h-4.5 w-32":"h-3.5 w-24",t?.title,t?.skeleton)}),r!=="sm"&&x.jsx(Na,{className:Ce("mt-1.5 max-w-full",r==="lg"?"h-3.5 w-24":"h-3 w-16",t?.subtitle,t?.skeleton)})]}):x.jsxs(x.Fragment,{children:[x.jsx("span",{className:Ce("truncate font-semibold",r==="lg"?"text-base":"text-sm",t?.title),children:a?.name||u?.ORGANIZATION}),r!=="sm"&&a?.slug&&x.jsx("span",{className:Ce("truncate opacity-70",r==="lg"?"text-sm":"text-xs",t?.subtitle),children:a.slug})]})})]})}function LW(e,t){if(!e)return null;try{const n=e.trim().toLowerCase(),a=new TextEncoder().encode(n),i=iZ(gZ(a)),c=t?.jpg?".jpg":"";let u=`https://gravatar.com/avatar/${i}${c}`;const d=new URLSearchParams;t?.size&&d.append("s",Math.min(Math.max(t.size,1),2048).toString()),t?.d&&d.append("d",t.d),t?.forceDefault&&d.append("f","y");const f=d.toString();return f&&(u+=`?${f}`),u}catch(n){return console.error("Error generating Gravatar URL:",n),null}}function jW({className:e,classNames:t,isPending:n,size:r,user:a,localization:i,...c}){const{localization:u,gravatar:d,avatar:f}=A.useContext(ft),m={...u,...i},p=a?.displayName||a?.name||a?.fullName||a?.firstName||a?.displayUsername||a?.username||a?.email,g=a?.image||a?.avatar||a?.avatarUrl,y=d&&a?.email?LW(a.email,d===!0?void 0:d):null,w=d?y:g;return n?x.jsx(Na,{className:Ce("shrink-0 rounded-full",r==="sm"?"size-6":r==="lg"?"size-10":r==="xl"?"size-12":"size-8",e,t?.base,t?.skeleton)}):x.jsxs(pM,{className:Ce("bg-muted",r==="sm"?"size-6":r==="lg"?"size-10":r==="xl"?"size-12":"size-8",e,t?.base),...c,children:[f?.Image?x.jsx(f.Image,{alt:p||m?.USER,className:t?.image,src:w||""}):x.jsx(mM,{alt:p||m?.USER,className:t?.image,src:w||void 0}),x.jsx(gM,{className:Ce("text-foreground uppercase",t?.fallback),delayMs:w?600:void 0,children:$W(p)||x.jsx(YV,{className:Ce("size-[50%]",t?.fallbackIcon)})})]})}var $W=e=>e?.slice(0,2);function R1({className:e,...t}){return x.jsx(M4,{"data-slot":"checkbox",className:Ce("peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:x.jsx(D4,{"data-slot":"checkbox-indicator",className:"flex items-center justify-center text-current transition-none",children:x.jsx(hk,{className:"size-3.5"})})})}function UW({className:e,...t}){return x.jsx("textarea",{"data-slot":"textarea",className:Ce("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),...t})}var zW=({className:e})=>x.jsx("svg",{className:e,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",children:x.jsx("path",{d:"M9.438 31.401a7 7 0 0 1-1.656-1.536a20 20 0 0 1-1.422-1.938a18.9 18.9 0 0 1-2.375-4.849c-.667-2-.99-3.917-.99-5.792c0-2.094.453-3.922 1.339-5.458a7.7 7.7 0 0 1 2.797-2.906a7.45 7.45 0 0 1 3.786-1.12q.705.002 1.51.198c.385.109.854.281 1.427.495c.729.281 1.13.453 1.266.495c.427.156.786.224 1.068.224c.214 0 .516-.068.859-.172c.193-.068.557-.188 1.078-.411c.516-.188.922-.349 1.245-.469c.495-.146.974-.281 1.401-.349a6.7 6.7 0 0 1 1.531-.063a9 9 0 0 1 2.589.557c1.359.547 2.458 1.401 3.276 2.615a6.4 6.4 0 0 0-.969.734a8.2 8.2 0 0 0-1.641 2.005a6.8 6.8 0 0 0-.859 3.359c.021 1.443.391 2.714 1.12 3.813a7.2 7.2 0 0 0 2.047 2.047c.417.281.776.474 1.12.604c-.161.5-.333.984-.536 1.464a19 19 0 0 1-1.667 3.083c-.578.839-1.031 1.464-1.375 1.88c-.536.635-1.052 1.12-1.573 1.458c-.573.38-1.25.583-1.938.583a4.4 4.4 0 0 1-1.38-.167c-.385-.13-.766-.271-1.141-.432a9 9 0 0 0-1.203-.453a6.3 6.3 0 0 0-3.099-.005c-.417.12-.818.26-1.214.432c-.557.234-.927.391-1.141.458c-.427.125-.87.203-1.318.229c-.693 0-1.339-.198-1.979-.599zm9.14-24.615c-.906.453-1.771.646-2.63.583c-.135-.865 0-1.75.359-2.719a7.3 7.3 0 0 1 1.333-2.24A7.1 7.1 0 0 1 19.812.733q1.319-.68 2.521-.734c.104.906 0 1.797-.333 2.76a8 8 0 0 1-1.333 2.344a6.8 6.8 0 0 1-2.115 1.682z",fill:"currentColor"})}),VW=({className:e})=>x.jsx("svg",{className:e,viewBox:"0 0 256 199",xmlns:"http://www.w3.org/2000/svg",children:x.jsx("path",{d:"M216.856 16.597A208.5 208.5 0 0 0 164.042 0c-2.275 4.113-4.933 9.645-6.766 14.046q-29.538-4.442-58.533 0c-1.832-4.4-4.55-9.933-6.846-14.046a207.8 207.8 0 0 0-52.855 16.638C5.618 67.147-3.443 116.4 1.087 164.956c22.169 16.555 43.653 26.612 64.775 33.193A161 161 0 0 0 79.735 175.3a136.4 136.4 0 0 1-21.846-10.632a109 109 0 0 0 5.356-4.237c42.122 19.702 87.89 19.702 129.51 0a132 132 0 0 0 5.355 4.237a136 136 0 0 1-21.886 10.653c4.006 8.02 8.638 15.67 13.873 22.848c21.142-6.58 42.646-16.637 64.815-33.213c5.316-56.288-9.08-105.09-38.056-148.36M85.474 135.095c-12.645 0-23.015-11.805-23.015-26.18s10.149-26.2 23.015-26.2s23.236 11.804 23.015 26.2c.02 14.375-10.148 26.18-23.015 26.18m85.051 0c-12.645 0-23.014-11.805-23.014-26.18s10.148-26.2 23.014-26.2c12.867 0 23.236 11.804 23.015 26.2c0 14.375-10.148 26.18-23.015 26.18",fill:"#5865f2"})}),FW=({className:e})=>x.jsx("svg",{className:e,viewBox:"0 0 256 218",xmlns:"http://www.w3.org/2000/svg",children:x.jsx("path",{d:"M63.995 0L0 40.771l63.995 40.772L128 40.771zM192 0l-64 40.775l64 40.775l64.001-40.775zM0 122.321l63.995 40.772L128 122.321L63.995 81.55zM192 81.55l-64 40.775l64 40.774l64-40.774zM64 176.771l64.005 40.772L192 176.771L128.005 136z",fill:"#0061ff"})}),BW=({className:e})=>x.jsxs("svg",{className:e,viewBox:"0 0 256 256",xmlns:"http://www.w3.org/2000/svg",children:[x.jsx("path",{d:"M256 128C256 57.308 198.692 0 128 0S0 57.308 0 128c0 63.888 46.808 116.843 108 126.445V165H75.5v-37H108V99.8c0-32.08 19.11-49.8 48.348-49.8C170.352 50 185 52.5 185 52.5V84h-16.14C152.959 84 148 93.867 148 103.99V128h35.5l-5.675 37H148v89.445c61.192-9.602 108-62.556 108-126.445",fill:"#1877f2"}),x.jsx("path",{d:"m177.825 165l5.675-37H148v-24.01C148 93.866 152.959 84 168.86 84H185V52.5S170.352 50 156.347 50C127.11 50 108 67.72 108 99.8V128H75.5v37H108v89.445A129 129 0 0 0 128 256a129 129 0 0 0 20-1.555V165z",fill:"#fff"})]}),qW=({className:e})=>x.jsx("svg",{className:e,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:x.jsx("path",{d:"M12 .297c-6.63 0-12 5.373-12 12c0 5.303 3.438 9.8 8.205 11.385c.6.113.82-.258.82-.577c0-.285-.01-1.04-.015-2.04c-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729c1.205.084 1.838 1.236 1.838 1.236c1.07 1.835 2.809 1.305 3.495.998c.108-.776.417-1.305.76-1.605c-2.665-.3-5.466-1.332-5.466-5.93c0-1.31.465-2.38 1.235-3.22c-.135-.303-.54-1.523.105-3.176c0 0 1.005-.322 3.3 1.23c.96-.267 1.98-.399 3-.405c1.02.006 2.04.138 3 .405c2.28-1.552 3.285-1.23 3.285-1.23c.645 1.653.24 2.873.12 3.176c.765.84 1.23 1.91 1.23 3.22c0 4.61-2.805 5.625-5.475 5.92c.42.36.81 1.096.81 2.22c0 1.606-.015 2.896-.015 3.286c0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12",fill:"currentColor"})}),HW=({className:e})=>x.jsxs("svg",{className:e,viewBox:"0 0 256 236",xmlns:"http://www.w3.org/2000/svg",children:[x.jsx("path",{d:"m128.075 236.075l47.104-144.97H80.97z",fill:"#e24329"}),x.jsx("path",{d:"M128.075 236.074L80.97 91.104H14.956z",fill:"#fc6d26"}),x.jsx("path",{d:"M14.956 91.104L.642 135.16a9.75 9.75 0 0 0 3.542 10.903l123.891 90.012z",fill:"#fca326"}),x.jsx("path",{d:"M14.956 91.105H80.97L52.601 3.79c-1.46-4.493-7.816-4.492-9.275 0z",fill:"#e24329"}),x.jsx("path",{d:"m128.075 236.074l47.104-144.97h66.015z",fill:"#fc6d26"}),x.jsx("path",{d:"m241.194 91.104l14.314 44.056a9.75 9.75 0 0 1-3.543 10.903l-123.89 90.012z",fill:"#fca326"}),x.jsx("path",{d:"M241.194 91.105h-66.015l28.37-87.315c1.46-4.493 7.816-4.492 9.275 0z",fill:"#e24329"})]}),GW=({className:e})=>x.jsxs("svg",{className:e,viewBox:"0 0 256 262",xmlns:"http://www.w3.org/2000/svg",children:[x.jsx("path",{d:"M255.878 133.451c0-10.734-.871-18.567-2.756-26.69H130.55v48.448h71.947c-1.45 12.04-9.283 30.172-26.69 42.356l-.244 1.622l38.755 30.023l2.685.268c24.659-22.774 38.875-56.282 38.875-96.027",fill:"#4285f4"}),x.jsx("path",{d:"M130.55 261.1c35.248 0 64.839-11.605 86.453-31.622l-41.196-31.913c-11.024 7.688-25.82 13.055-45.257 13.055c-34.523 0-63.824-22.773-74.269-54.25l-1.531.13l-40.298 31.187l-.527 1.465C35.393 231.798 79.49 261.1 130.55 261.1",fill:"#34a853"}),x.jsx("path",{d:"M56.281 156.37c-2.756-8.123-4.351-16.827-4.351-25.82c0-8.994 1.595-17.697 4.206-25.82l-.073-1.73L15.26 71.312l-1.335.635C5.077 89.644 0 109.517 0 130.55s5.077 40.905 13.925 58.602z",fill:"#fbbc05"}),x.jsx("path",{d:"M130.55 50.479c24.514 0 41.05 10.589 50.479 19.438l36.844-35.974C195.245 12.91 165.798 0 130.55 0C79.49 0 35.393 29.301 13.925 71.947l42.211 32.783c10.59-31.477 39.891-54.251 74.414-54.251",fill:"#eb4335"})]}),ZW=({className:e})=>x.jsx("svg",{className:e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:x.jsx("path",{fill:"currentColor",d:"M12.025 1.13c-5.77 0-10.449 4.647-10.449 10.378c0 1.112.178 2.181.503 3.185c.064-.222.203-.444.416-.577a.96.96 0 0 1 .524-.15c.293 0 .584.124.84.284c.278.173.48.408.71.694c.226.282.458.611.684.951v-.014c.017-.324.106-.622.264-.874s.403-.487.762-.543c.3-.047.596.06.787.203s.31.313.4.467c.15.257.212.468.233.542c.01.026.653 1.552 1.657 2.54c.616.605 1.01 1.223 1.082 1.912c.055.537-.096 1.059-.38 1.572c.637.121 1.294.187 1.967.187c.657 0 1.298-.063 1.921-.178c-.287-.517-.44-1.041-.384-1.581c.07-.69.465-1.307 1.081-1.913c1.004-.987 1.647-2.513 1.657-2.539c.021-.074.083-.285.233-.542c.09-.154.208-.323.4-.467a1.08 1.08 0 0 1 .787-.203c.359.056.604.29.762.543s.247.55.265.874v.015c.225-.34.457-.67.683-.952c.23-.286.432-.52.71-.694c.257-.16.547-.284.84-.285a.97.97 0 0 1 .524.151c.228.143.373.388.43.625l.006.04a10.3 10.3 0 0 0 .534-3.273c0-5.731-4.678-10.378-10.449-10.378M8.327 6.583a1.5 1.5 0 0 1 .713.174a1.487 1.487 0 0 1 .617 2.013c-.183.343-.762-.214-1.102-.094c-.38.134-.532.914-.917.71a1.487 1.487 0 0 1 .69-2.803m7.486 0a1.487 1.487 0 0 1 .689 2.803c-.385.204-.536-.576-.916-.71c-.34-.12-.92.437-1.103.094a1.487 1.487 0 0 1 .617-2.013a1.5 1.5 0 0 1 .713-.174m-10.68 1.55a.96.96 0 1 1 0 1.921a.96.96 0 0 1 0-1.92m13.838 0a.96.96 0 1 1 0 1.92a.96.96 0 0 1 0-1.92M8.489 11.458c.588.01 1.965 1.157 3.572 1.164c1.607-.007 2.984-1.155 3.572-1.164c.196-.003.305.12.305.454c0 .886-.424 2.328-1.563 3.202c-.22-.756-1.396-1.366-1.63-1.32q-.011.001-.02.006l-.044.026l-.01.008l-.03.024q-.018.017-.035.036l-.032.04a1 1 0 0 0-.058.09l-.014.025q-.049.088-.11.19a1 1 0 0 1-.083.116a1.2 1.2 0 0 1-.173.18q-.035.029-.075.058a1.3 1.3 0 0 1-.251-.243a1 1 0 0 1-.076-.107c-.124-.193-.177-.363-.337-.444c-.034-.016-.104-.008-.2.022q-.094.03-.216.087q-.06.028-.125.063l-.13.074q-.067.04-.136.086a3 3 0 0 0-.135.096a3 3 0 0 0-.26.219a2 2 0 0 0-.12.121a2 2 0 0 0-.106.128l-.002.002a2 2 0 0 0-.09.132l-.001.001a1.2 1.2 0 0 0-.105.212q-.013.036-.024.073c-1.139-.875-1.563-2.317-1.563-3.203c0-.334.109-.457.305-.454m.836 10.354c.824-1.19.766-2.082-.365-3.194c-1.13-1.112-1.789-2.738-1.789-2.738s-.246-.945-.806-.858s-.97 1.499.202 2.362c1.173.864-.233 1.45-.685.64c-.45-.812-1.683-2.896-2.322-3.295s-1.089-.175-.938.647s2.822 2.813 2.562 3.244s-1.176-.506-1.176-.506s-2.866-2.567-3.49-1.898s.473 1.23 2.037 2.16c1.564.932 1.686 1.178 1.464 1.53s-3.675-2.511-4-1.297c-.323 1.214 3.524 1.567 3.287 2.405c-.238.839-2.71-1.587-3.216-.642c-.506.946 3.49 2.056 3.522 2.064c1.29.33 4.568 1.028 5.713-.624m5.349 0c-.824-1.19-.766-2.082.365-3.194c1.13-1.112 1.789-2.738 1.789-2.738s.246-.945.806-.858s.97 1.499-.202 2.362c-1.173.864.233 1.45.685.64c.451-.812 1.683-2.896 2.322-3.295s1.089-.175.938.647s-2.822 2.813-2.562 3.244s1.176-.506 1.176-.506s2.866-2.567 3.49-1.898s-.473 1.23-2.037 2.16c-1.564.932-1.686 1.178-1.464 1.53s3.675-2.511 4-1.297c.323 1.214-3.524 1.567-3.287 2.405c.238.839 2.71-1.587 3.216-.642c.506.946-3.49 2.056-3.522 2.064c-1.29.33-4.568 1.028-5.713-.624"})}),KW=({className:e})=>x.jsx("svg",{className:e,xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",children:x.jsx("path",{fill:"currentColor",d:"M1.333 0h8v5.333H12V2.667h2.667V0h8v8H20v2.667h-2.667v2.666H20V16h2.667v8h-8v-2.667H12v-2.666H9.333V24h-8Z"})}),WW=({className:e})=>x.jsx("svg",{className:e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:x.jsx("path",{fill:"currentColor",d:"M2.886 4.18A11.98 11.98 0 0 1 11.99 0C18.624 0 24 5.376 24 12.009c0 3.64-1.62 6.903-4.18 9.105L2.887 4.18ZM1.817 5.626l16.556 16.556q-.787.496-1.65.866L.951 7.277q.371-.863.866-1.65ZM.322 9.163l14.515 14.515q-1.066.26-2.195.322L0 11.358a12 12 0 0 1 .322-2.195m-.17 4.862l9.823 9.824a12.02 12.02 0 0 1-9.824-9.824Z"})}),YW=({className:e})=>x.jsxs("svg",{className:e,viewBox:"0 0 128 128",xmlns:"http://www.w3.org/2000/svg",children:[x.jsx("path",{d:"M116 3H12a8.91 8.91 0 0 0-9 8.8v104.42a8.91 8.91 0 0 0 9 8.78h104a8.93 8.93 0 0 0 9-8.81V11.77A8.93 8.93 0 0 0 116 3",fill:"#0076b2"}),x.jsx("path",{d:"M21.06 48.73h18.11V107H21.06zm9.06-29a10.5 10.5 0 1 1-10.5 10.49a10.5 10.5 0 0 1 10.5-10.49m20.41 29h17.36v8h.24c2.42-4.58 8.32-9.41 17.13-9.41C103.6 47.28 107 59.35 107 75v32H88.89V78.65c0-6.75-.12-15.44-9.41-15.44s-10.87 7.36-10.87 15V107H50.53z",fill:"#fff"})]}),QW=({className:e})=>x.jsxs("svg",{className:e,viewBox:"0 0 256 256",xmlns:"http://www.w3.org/2000/svg",children:[x.jsx("path",{d:"M121.666 121.666H0V0h121.666z",fill:"#f1511b"}),x.jsx("path",{d:"M256 121.666H134.335V0H256z",fill:"#80cc28"}),x.jsx("path",{d:"M121.663 256.002H0V134.336h121.663z",fill:"#00adef"}),x.jsx("path",{d:"M256 256.002H134.335V134.336H256z",fill:"#fbbc09"})]}),XW=({className:e})=>x.jsx("svg",{className:e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:x.jsx("path",{fill:"currentColor",d:"M4.459 4.208c.746.606 1.026.56 2.428.466l13.215-.793c.28 0 .047-.28-.046-.326L17.86 1.968c-.42-.326-.981-.7-2.055-.607L3.01 2.295c-.466.046-.56.28-.374.466zm.793 3.08v13.904c0 .747.373 1.027 1.214.98l14.523-.84c.841-.046.935-.56.935-1.167V6.354c0-.606-.233-.933-.748-.887l-15.177.887c-.56.047-.747.327-.747.933zm14.337.745c.093.42 0 .84-.42.888l-.7.14v10.264c-.608.327-1.168.514-1.635.514c-.748 0-.935-.234-1.495-.933l-4.577-7.186v6.952L12.21 19s0 .84-1.168.84l-3.222.186c-.093-.186 0-.653.327-.746l.84-.233V9.854L7.822 9.76c-.094-.42.14-1.026.793-1.073l3.456-.233l4.764 7.279v-6.44l-1.215-.139c-.093-.514.28-.887.747-.933zM1.936 1.035l13.31-.98c1.634-.14 2.055-.047 3.082.7l4.249 2.986c.7.513.934.653.934 1.213v16.378c0 1.026-.373 1.634-1.68 1.726l-15.458.934c-.98.047-1.448-.093-1.962-.747l-3.129-4.06c-.56-.747-.793-1.306-.793-1.96V2.667c0-.839.374-1.54 1.447-1.632"})}),JW=({className:e})=>x.jsxs("svg",{className:e,viewBox:"0 0 256 256",xmlns:"http://www.w3.org/2000/svg",children:[x.jsx("circle",{cx:"128",cy:"128",fill:"#ff4500",r:"128"}),x.jsx("path",{d:"M213.15 129.22c0-10.376-8.391-18.617-18.617-18.617a18.74 18.74 0 0 0-12.97 5.189c-12.818-9.157-30.368-15.107-49.9-15.87l8.544-39.981l27.773 5.95c.307 7.02 6.104 12.667 13.278 12.667c7.324 0 13.275-5.95 13.275-13.278c0-7.324-5.95-13.275-13.275-13.275c-5.188 0-9.768 3.052-11.904 7.478l-30.976-6.562c-.916-.154-1.832 0-2.443.458c-.763.458-1.22 1.22-1.371 2.136l-9.464 44.558c-19.837.612-37.692 6.562-50.662 15.872a18.74 18.74 0 0 0-12.971-5.188c-10.377 0-18.617 8.391-18.617 18.617c0 7.629 4.577 14.037 10.988 16.939a33.6 33.6 0 0 0-.458 5.646c0 28.686 33.42 52.036 74.621 52.036c41.202 0 74.622-23.196 74.622-52.036a35 35 0 0 0-.458-5.646c6.408-2.902 10.985-9.464 10.985-17.093M85.272 142.495c0-7.324 5.95-13.275 13.278-13.275c7.324 0 13.275 5.95 13.275 13.275s-5.95 13.278-13.275 13.278c-7.327.15-13.278-5.953-13.278-13.278m74.317 35.251c-9.156 9.157-26.553 9.768-31.588 9.768c-5.188 0-22.584-.765-31.59-9.768c-1.371-1.373-1.371-3.51 0-4.883c1.374-1.371 3.51-1.371 4.884 0c5.8 5.8 18.008 7.782 26.706 7.782s21.058-1.983 26.704-7.782c1.374-1.371 3.51-1.371 4.884 0c1.22 1.373 1.22 3.51 0 4.883m-2.443-21.822c-7.325 0-13.275-5.95-13.275-13.275s5.95-13.275 13.275-13.275c7.327 0 13.277 5.95 13.277 13.275c0 7.17-5.95 13.275-13.277 13.275",fill:"#fff"})]}),eY=({className:e})=>x.jsx("svg",{className:e,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:x.jsx("path",{d:"M18.926 23.998L0 18.892L5.075.002L24 5.108ZM15.348 10.09l-5.282-1.453l-1.414 5.273l5.282 1.453z",fill:"currentColor"})}),tY=({className:e})=>x.jsx("svg",{className:e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:x.jsx("path",{fill:"currentColor",d:"M6 15a2 2 0 0 1-2 2a2 2 0 0 1-2-2a2 2 0 0 1 2-2h2zm1 0a2 2 0 0 1 2-2a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2a2 2 0 0 1-2-2zm2-8a2 2 0 0 1-2-2a2 2 0 0 1 2-2a2 2 0 0 1 2 2v2zm0 1a2 2 0 0 1 2 2a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2a2 2 0 0 1 2-2zm8 2a2 2 0 0 1 2-2a2 2 0 0 1 2 2a2 2 0 0 1-2 2h-2zm-1 0a2 2 0 0 1-2 2a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2a2 2 0 0 1 2 2zm-2 8a2 2 0 0 1 2 2a2 2 0 0 1-2 2a2 2 0 0 1-2-2v-2zm0-1a2 2 0 0 1-2-2a2 2 0 0 1 2-2h5a2 2 0 0 1 2 2a2 2 0 0 1-2 2z"})}),nY=({className:e})=>x.jsx("svg",{className:e,viewBox:"0 0 256 256",xmlns:"http://www.w3.org/2000/svg",children:x.jsx("path",{d:"M128 0C57.308 0 0 57.309 0 128c0 70.696 57.309 128 128 128c70.697 0 128-57.304 128-128C256 57.314 198.697.007 127.998.007zm58.699 184.614c-2.293 3.76-7.215 4.952-10.975 2.644c-30.053-18.357-67.885-22.515-112.44-12.335a7.98 7.98 0 0 1-9.552-6.007a7.97 7.97 0 0 1 6-9.553c48.76-11.14 90.583-6.344 124.323 14.276c3.76 2.308 4.952 7.215 2.644 10.975m15.667-34.853c-2.89 4.695-9.034 6.178-13.726 3.289c-34.406-21.148-86.853-27.273-127.548-14.92c-5.278 1.594-10.852-1.38-12.454-6.649c-1.59-5.278 1.386-10.842 6.655-12.446c46.485-14.106 104.275-7.273 143.787 17.007c4.692 2.89 6.175 9.034 3.286 13.72zm1.345-36.293C162.457 88.964 94.394 86.71 55.007 98.666c-6.325 1.918-13.014-1.653-14.93-7.978c-1.917-6.328 1.65-13.012 7.98-14.935C93.27 62.027 168.434 64.68 215.929 92.876c5.702 3.376 7.566 10.724 4.188 16.405c-3.362 5.69-10.73 7.565-16.4 4.187z",fill:"#1ed760"})}),rY=({className:e})=>x.jsxs("svg",{className:e,viewBox:"0 0 256 290",xmlns:"http://www.w3.org/2000/svg",children:[x.jsx("path",{d:"M189.72 104.421c18.678 13.345 41.56 21.197 66.273 21.197v-47.53a67 67 0 0 1-13.918-1.456v37.413c-24.711 0-47.59-7.851-66.272-21.195v96.996c0 48.523-39.356 87.855-87.9 87.855c-18.113 0-34.949-5.473-48.934-14.86c15.962 16.313 38.222 26.432 62.848 26.432c48.548 0 87.905-39.332 87.905-87.857v-96.995zm17.17-47.952c-9.546-10.423-15.814-23.893-17.17-38.785v-6.113h-13.189c3.32 18.927 14.644 35.097 30.358 44.898M69.673 225.607a40 40 0 0 1-8.203-24.33c0-22.192 18.001-40.186 40.21-40.186a40.3 40.3 0 0 1 12.197 1.883v-48.593c-4.61-.631-9.262-.9-13.912-.801v37.822a40.3 40.3 0 0 0-12.203-1.882c-22.208 0-40.208 17.992-40.208 40.187c0 15.694 8.997 29.281 22.119 35.9",fill:"#ff004f"}),x.jsx("path",{d:"M175.803 92.849c18.683 13.344 41.56 21.195 66.272 21.195V76.631c-13.794-2.937-26.005-10.141-35.186-20.162c-15.715-9.802-27.038-25.972-30.358-44.898h-34.643v189.843c-.079 22.132-18.049 40.052-40.21 40.052c-13.058 0-24.66-6.221-32.007-15.86c-13.12-6.618-22.118-20.206-22.118-35.898c0-22.193 18-40.187 40.208-40.187c4.255 0 8.356.662 12.203 1.882v-37.822c-47.692.985-86.047 39.933-86.047 87.834c0 23.912 9.551 45.589 25.053 61.428c13.985 9.385 30.82 14.86 48.934 14.86c48.545 0 87.9-39.335 87.9-87.857z"}),x.jsx("path",{d:"M242.075 76.63V66.516a66.3 66.3 0 0 1-35.186-10.047a66.47 66.47 0 0 0 35.186 20.163M176.53 11.57a68 68 0 0 1-.728-5.457V0h-47.834v189.845c-.076 22.13-18.046 40.05-40.208 40.05a40.06 40.06 0 0 1-18.09-4.287c7.347 9.637 18.949 15.857 32.007 15.857c22.16 0 40.132-17.918 40.21-40.05V11.571zM99.966 113.58v-10.769a89 89 0 0 0-12.061-.818C39.355 101.993 0 141.327 0 189.845c0 30.419 15.467 57.227 38.971 72.996c-15.502-15.838-25.053-37.516-25.053-61.427c0-47.9 38.354-86.848 86.048-87.833",fill:"#00f2ea"})]}),oY=({className:e})=>x.jsxs("svg",{className:e,version:"1.1",viewBox:"0 0 2400 2800",x:"0px",xmlSpace:"preserve",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",y:"0px",children:[x.jsx("style",{type:"text/css",children:`
|
|
130
|
-
.st0{fill:#FFFFFF}
|
|
131
|
-
.st1{fill:#9146FF}
|
|
132
|
-
`}),x.jsx("title",{children:"Asset 2"}),x.jsxs("g",{children:[x.jsx("polygon",{className:"st0",points:"2200,1300 1800,1700 1400,1700 1050,2050 1050,1700 600,1700 600,200 2200,200"}),x.jsx("g",{children:x.jsxs("g",{children:[x.jsx("path",{className:"st1",d:"M500,0L0,500v1800h600v500l500-500h400l900-900V0H500z M2200,1300l-400,400h-400l-350,350v-350H600V200h1600V1300z"}),x.jsx("rect",{className:"st1",height:"600",width:"200",x:"1700",y:"550"}),x.jsx("rect",{className:"st1",height:"600",width:"200",x:"1150",y:"550"})]})})]})]}),aY=({className:e})=>x.jsx("svg",{"data-testid":"geist-icon",height:"16","stroke-linejoin":"round",viewBox:"0 0 16 16",width:"16",className:e,style:{color:"currentcolor"},children:x.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8 1L16 15H0L8 1Z",fill:"currentColor"})}),sY=({className:e})=>x.jsx("svg",{className:e,viewBox:"0 0 576 512",xmlns:"http://www.w3.org/2000/svg",children:x.jsx("path",{d:"M545 117.7c3.7-12.5 0-21.7-17.8-21.7h-58.9c-15 0-21.9 7.9-25.6 16.7c0 0-30 73.1-72.4 120.5c-13.7 13.7-20 18.1-27.5 18.1c-3.7 0-9.4-4.4-9.4-16.9V117.7c0-15-4.2-21.7-16.6-21.7h-92.6c-9.4 0-15 7-15 13.5c0 14.2 21.2 17.5 23.4 57.5v86.8c0 19-3.4 22.5-10.9 22.5c-20 0-68.6-73.4-97.4-157.4c-5.8-16.3-11.5-22.9-26.6-22.9H38.8c-16.8 0-20.2 7.9-20.2 16.7c0 15.6 20 93.1 93.1 195.5C160.4 378.1 229 416 291.4 416c37.5 0 42.1-8.4 42.1-22.9c0-66.8-3.4-73.1 15.4-73.1c8.7 0 23.7 4.4 58.7 38.1c40 40 46.6 57.9 69 57.9h58.9c16.8 0 25.3-8.4 20.4-25c-11.2-34.9-86.9-106.7-90.3-111.5c-8.7-11.2-6.2-16.2 0-26.2c.1-.1 72-101.3 79.4-135.6",fill:"currentColor"})}),iY=({className:e})=>x.jsx("svg",{className:e,viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg",children:x.jsx("path",{d:"M389.2 48h70.6L305.6 224.2L487 464H345L233.7 318.6L106.5 464H35.8l164.9-188.5L26.8 48h145.6l100.5 132.9zm-24.8 373.8h39.1L151.1 88h-42z",fill:"currentColor"})}),cY=({className:e})=>x.jsx("svg",{className:e,xmlns:"http://www.w3.org/2000/svg",width:512,height:117,viewBox:"0 0 512 117",children:x.jsx("path",{fill:"#0b5cff",d:"M107.472 114.706H16.348c-5.968 0-11.791-3.203-14.557-8.589C-1.41 99.858-.247 92.434 4.702 87.63L68.17 24.164H22.607C10.088 24.164.044 13.974.044 1.6h83.992c5.968 0 11.79 3.203 14.556 8.589c3.203 6.259 2.038 13.683-2.911 18.486L32.214 92.143h52.55c12.518 0 22.708 10.19 22.708 22.563M468.183 0c-13.1 0-24.746 5.677-32.898 14.702C427.134 5.677 415.488 0 402.388 0c-24.164 0-43.961 20.67-43.961 44.834v69.872c12.518 0 22.562-10.19 22.562-22.563V44.689c0-11.646 9.025-21.544 20.67-21.98c12.228-.437 22.272 9.315 22.272 21.397v48.037c0 12.519 10.19 22.563 22.563 22.563V44.543c0-11.645 9.025-21.544 20.67-21.98c12.228-.437 22.272 9.316 22.272 21.398v48.036c0 12.52 10.19 22.563 22.563 22.563V44.69C512.144 20.67 492.347 0 468.183 0M221.595 58.226c0 32.17-26.056 58.226-58.226 58.226s-58.226-26.056-58.226-58.226S131.199 0 163.369 0s58.226 26.056 58.226 58.226m-22.563 0c0-19.651-16.012-35.663-35.663-35.663s-35.664 16.012-35.664 35.663c0 19.652 16.013 35.664 35.664 35.664s35.663-16.012 35.663-35.664m148.04 0c0 32.17-26.056 58.226-58.226 58.226S230.62 90.396 230.62 58.226S256.676 0 288.846 0s58.227 26.056 58.227 58.226m-22.562 0c0-19.651-16.012-35.663-35.664-35.663c-19.65 0-35.663 16.012-35.663 35.663c0 19.652 16.012 35.664 35.663 35.664c19.652 0 35.664-16.012 35.664-35.664"})}),lY=[{provider:"apple",name:"Apple",icon:zW},{provider:"discord",name:"Discord",icon:VW},{provider:"dropbox",name:"Dropbox",icon:FW},{provider:"facebook",name:"Facebook",icon:BW},{provider:"github",name:"GitHub",icon:qW},{provider:"gitlab",name:"GitLab",icon:HW},{provider:"google",name:"Google",icon:GW},{provider:"huggingface",name:"Hugging Face",icon:ZW},{provider:"kick",name:"Kick",icon:KW},{provider:"linear",name:"Linear",icon:WW},{provider:"linkedin",name:"LinkedIn",icon:YW},{provider:"microsoft",name:"Microsoft",icon:QW},{provider:"notion",name:"Notion",icon:XW},{provider:"reddit",name:"Reddit",icon:JW},{provider:"roblox",name:"Roblox",icon:eY},{provider:"slack",name:"Slack",icon:tY},{provider:"spotify",name:"Spotify",icon:nY},{provider:"tiktok",name:"TikTok",icon:rY},{provider:"twitch",name:"Twitch",icon:oY},{provider:"vercel",name:"Vercel",icon:aY},{provider:"vk",name:"VK",icon:sY},{provider:"twitter",name:"X",icon:iY},{provider:"zoom",name:"Zoom",icon:cY}];function ud({className:e,enableToggle:t,onChange:n,...r}){const[a,i]=A.useState(!0),[c,u]=A.useState(!1);return x.jsxs("div",{className:"relative",children:[x.jsx(Po,{className:Ce(t&&"pr-10",e),...r,type:c&&t?"text":"password",onChange:d=>{i(!d.target.value),n?.(d)}}),t&&x.jsxs(x.Fragment,{children:[x.jsx(Ht,{className:"!bg-transparent absolute top-0 right-0",disabled:a,size:"icon",type:"button",variant:"ghost",onClick:()=>u(!c),children:c?x.jsx(HV,{}):x.jsx(qV,{})}),x.jsx("style",{children:`
|
|
133
|
-
.hide-password-toggle::-ms-reveal,
|
|
134
|
-
.hide-password-toggle::-ms-clear {
|
|
135
|
-
visibility: hidden;
|
|
136
|
-
pointer-events: none;
|
|
137
|
-
display: none;
|
|
138
|
-
}
|
|
139
|
-
`})]})]})}function ia({redirectTo:e}){const{redirectTo:t}=A.useContext(ft),n=A.useCallback(()=>e||Ui("redirectTo")||t,[e,t]),[r,a]=A.useState(!1),{navigate:i,hooks:{useSession:c},onSessionChange:u}=A.useContext(ft),{refetch:d}=c();return{onSuccess:A.useCallback(async()=>{a(!0),await d?.(),u&&await u(),a(!1),i(n())},[d,u,i,n]),isPending:r}}function yM({redirectTo:e}){const{hooks:{useIsRestoring:t},persistClient:n}=A.useContext(ft),r=t?.(),a=A.useRef(!1),{onSuccess:i}=ia({redirectTo:e});return A.useEffect(()=>{if(!a.current){if(!n){a.current=!0,i();return}r||(a.current=!0,i())}},[r,n,i]),x.jsx(or,{className:"animate-spin"})}var uY=["/sign-up/email","/sign-in/email","/forget-password"],dY=e=>{let t=e.startsWith("/")?e.substring(1):e;return t=t.replace(/-([a-z])/g,(n,r)=>r.toUpperCase()).replace(/\/([a-z])/g,(n,r)=>r.toUpperCase()).replace(/\//g,"").replace(/[^A-Za-z0-9_]/g,""),t};function Cd({localization:e}){const{captcha:t,localization:n}=A.useContext(ft);e={...n,...e};const r=A.useRef(null),{executeRecaptcha:a}=lk(),i=async d=>{if(!t)throw new Error(e.MISSING_RESPONSE);let f;switch(t.provider){case"google-recaptcha-v3":{const m=dY(d);f=await a?.(m);break}case"google-recaptcha-v2-checkbox":{f=r.current.getValue();break}case"google-recaptcha-v2-invisible":{f=await r.current.executeAsync();break}case"cloudflare-turnstile":{f=r.current.getResponse();break}case"hcaptcha":{f=r.current.getResponse();break}case"captchafox":{f=r.current.getResponse();break}}if(!f)throw new Error(e.MISSING_RESPONSE);return f};return{captchaRef:r,getCaptchaHeaders:async d=>{if(!t)return;if((t.endpoints||uY).includes(d))return{"x-captcha-response":await i(d)}},resetCaptcha:()=>{var d,f,m,p,g,y,w,S;if(t)switch(t.provider){case"google-recaptcha-v3":break;case"google-recaptcha-v2-checkbox":case"google-recaptcha-v2-invisible":{(f=(d=r.current)==null?void 0:d.reset)==null||f.call(d);break}case"cloudflare-turnstile":{(p=(m=r.current)==null?void 0:m.reset)==null||p.call(m);break}case"hcaptcha":{(y=(g=r.current)==null?void 0:g.resetCaptcha)==null||y.call(g);break}case"captchafox":{(S=(w=r.current)==null?void 0:w.reset)==null||S.call(w);break}}}}}function fY({className:e,localization:t}){const n=Ua(),{captcha:r,localization:a}=A.useContext(ft),i={...a,...t};return r?r.hideBadge?x.jsxs(x.Fragment,{children:[x.jsx("style",{children:`
|
|
140
|
-
.grecaptcha-badge { visibility: hidden; }
|
|
141
|
-
`}),x.jsxs("p",{className:Ce("text-muted-foreground text-xs",e),children:[i.PROTECTED_BY_RECAPTCHA," ",i.BY_CONTINUING_YOU_AGREE," Google"," ",x.jsx("a",{className:"text-foreground hover:underline",href:"https://policies.google.com/privacy",target:"_blank",rel:"noreferrer",children:i.PRIVACY_POLICY})," ","&"," ",x.jsx("a",{className:"text-foreground hover:underline",href:"https://policies.google.com/terms",target:"_blank",rel:"noreferrer",children:i.TERMS_OF_SERVICE}),"."]})]}):n?x.jsx("style",{children:`
|
|
142
|
-
.grecaptcha-badge { visibility: visible !important; }
|
|
143
|
-
`}):null:null}function hY({ref:e}){const{captcha:t}=A.useContext(ft),{theme:n}=Pb(),{lang:r}=dk();return A.useEffect(()=>{window.recaptchaOptions={useRecaptchaNet:t?.recaptchaNet,enterprise:t?.enterprise}},[t]),t?x.jsxs(x.Fragment,{children:[x.jsx("style",{children:`
|
|
144
|
-
.grecaptcha-badge {
|
|
145
|
-
border-radius: var(--radius) !important;
|
|
146
|
-
--tw-shadow: 0 1px 2px 0 var(--tw-shadow-color, #0000000d);
|
|
147
|
-
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow) !important;
|
|
148
|
-
border-style: var(--tw-border-style) !important;
|
|
149
|
-
border-width: 1px;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
.dark .grecaptcha-badge {
|
|
153
|
-
border-color: var(--input) !important;
|
|
154
|
-
}
|
|
155
|
-
`}),x.jsx(eW,{ref:e,sitekey:t.siteKey,theme:n,hl:r,size:t.provider==="google-recaptcha-v2-invisible"?"invisible":"normal",className:Ce(t.provider==="google-recaptcha-v2-invisible"?"absolute":"mx-auto h-[76px] w-[302px] overflow-hidden rounded bg-muted")},`${n}-${r}-${t.provider}`)]}):null}var pY=["/sign-up/email","/sign-in/email","/forget-password"];function Ad({ref:e,localization:t,action:n}){const{captcha:r}=A.useContext(ft);if(!r||n&&!(r.endpoints||pY).includes(n))return null;const{theme:a}=Pb(),i=r.provider==="google-recaptcha-v2-checkbox"||r.provider==="google-recaptcha-v2-invisible",c=r.provider==="google-recaptcha-v3"||r.provider==="google-recaptcha-v2-invisible",u=r.provider==="cloudflare-turnstile",d=r.provider==="hcaptcha",f=r.provider==="captchafox";return x.jsxs(x.Fragment,{children:[i&&x.jsx(hY,{ref:e}),c&&x.jsx(fY,{localization:t}),u&&x.jsx(X4,{className:"mx-auto",ref:e,siteKey:r.siteKey,options:{theme:a,size:"flexible"}}),d&&x.jsx("div",{className:"mx-auto",children:x.jsx(CK,{ref:e,sitekey:r.siteKey,theme:a})}),f&&x.jsx("div",{className:"mx-auto",children:x.jsx(F4,{ref:e,sitekey:r.siteKey,theme:a})})]})}function x1({className:e,containerClassName:t,...n}){return x.jsx(rM,{"data-slot":"input-otp",containerClassName:Ce("flex items-center gap-2 has-disabled:opacity-50",t),className:Ce("disabled:cursor-not-allowed",e),...n})}function $c({className:e,...t}){return x.jsx("div",{"data-slot":"input-otp-group",className:Ce("flex items-center",e),...t})}function Dn({index:e,className:t,...n}){const r=A.useContext(nM),{char:a,hasFakeCaret:i,isActive:c}=r?.slots[e]??{};return x.jsxs("div",{"data-slot":"input-otp-slot","data-active":c,className:Ce("data-[active=true]:border-ring data-[active=true]:ring-ring/50 data-[active=true]:aria-invalid:ring-destructive/20 dark:data-[active=true]:aria-invalid:ring-destructive/40 aria-invalid:border-destructive data-[active=true]:aria-invalid:border-destructive dark:bg-input/30 border-input relative flex h-9 w-9 items-center justify-center border-y border-r text-sm shadow-xs transition-all outline-none first:rounded-l-md first:border-l last:rounded-r-md data-[active=true]:z-10 data-[active=true]:ring-[3px]",t),...n,children:[a,i&&x.jsx("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:x.jsx("div",{className:"animate-caret-blink bg-foreground h-4 w-px duration-1000"})})]})}function T0({...e}){return x.jsx("div",{"data-slot":"input-otp-separator",role:"separator",...e,children:x.jsx(ZV,{})})}function T1({otpSeparators:e=0}){return e===0?x.jsxs($c,{children:[x.jsx(Dn,{index:0}),x.jsx(Dn,{index:1}),x.jsx(Dn,{index:2}),x.jsx(Dn,{index:3}),x.jsx(Dn,{index:4}),x.jsx(Dn,{index:5})]}):e===1?x.jsxs(x.Fragment,{children:[x.jsxs($c,{children:[x.jsx(Dn,{index:0}),x.jsx(Dn,{index:1}),x.jsx(Dn,{index:2})]}),x.jsx(T0,{}),x.jsxs($c,{children:[x.jsx(Dn,{index:3}),x.jsx(Dn,{index:4}),x.jsx(Dn,{index:5})]})]}):x.jsxs(x.Fragment,{children:[x.jsxs($c,{children:[x.jsx(Dn,{index:0}),x.jsx(Dn,{index:1})]}),x.jsx(T0,{}),x.jsxs($c,{children:[x.jsx(Dn,{index:2}),x.jsx(Dn,{index:3})]}),x.jsx(T0,{}),x.jsxs($c,{children:[x.jsx(Dn,{index:4}),x.jsx(Dn,{index:5})]})]})}function KO(e){const[t,n]=A.useState();return t?x.jsx(gY,{...e,email:t}):x.jsx(mY,{...e,setEmail:n})}function mY({className:e,classNames:t,isSubmitting:n,localization:r,setIsSubmitting:a,setEmail:i}){const c=Ua(),{captchaRef:u,getCaptchaHeaders:d}=Cd({localization:r}),{authClient:f,localization:m,toast:p,localizeErrors:g}=A.useContext(ft);r={...m,...r};const y=re({email:M().email({message:`${r.EMAIL} ${r.IS_INVALID}`})}),w=ra({resolver:oa(y),defaultValues:{email:""}});n=n||w.formState.isSubmitting,A.useEffect(()=>{a?.(w.formState.isSubmitting)},[w.formState.isSubmitting,a]);async function S({email:b}){const R={throw:!0,headers:await d("/email-otp/send-verification-otp")};try{await f.emailOtp.sendVerificationOtp({email:b,type:"sign-in",fetchOptions:R}),p({variant:"success",message:r.EMAIL_OTP_VERIFICATION_SENT}),i(b)}catch(E){p({variant:"error",message:hn({error:E,localization:r,localizeErrors:g})})}}return x.jsx(sa,{...w,children:x.jsxs("form",{onSubmit:w.handleSubmit(S),noValidate:c,className:Ce("grid w-full gap-6",e,t?.base),children:[x.jsx(un,{control:w.control,name:"email",render:({field:b})=>x.jsxs(dn,{children:[x.jsx(fn,{className:t?.label,children:r.EMAIL}),x.jsx(Sn,{children:x.jsx(Po,{className:t?.input,type:"email",placeholder:r.EMAIL_PLACEHOLDER,disabled:n,...b})}),x.jsx(Cn,{className:t?.error})]})}),x.jsx(Ad,{ref:u,localization:r,action:"/email-otp/send-verification-otp"}),x.jsx(Ht,{type:"submit",disabled:n,className:Ce("w-full",t?.button,t?.primaryButton),children:n?x.jsx(or,{className:"animate-spin"}):r.EMAIL_OTP_SEND_ACTION})]})})}function gY({className:e,classNames:t,isSubmitting:n,localization:r,otpSeparators:a=0,redirectTo:i,setIsSubmitting:c,email:u}){const{authClient:d,localization:f,toast:m,localizeErrors:p}=A.useContext(ft);r={...f,...r};const{onSuccess:g,isPending:y}=ia({redirectTo:i}),w=re({code:M().min(1,{message:`${r.EMAIL_OTP} ${r.IS_REQUIRED}`}).min(6,{message:`${r.EMAIL_OTP} ${r.IS_INVALID}`})}),S=ra({resolver:oa(w),defaultValues:{code:""}});n=n||S.formState.isSubmitting||y,A.useEffect(()=>{c?.(S.formState.isSubmitting||y)},[S.formState.isSubmitting,y,c]);async function b({code:R}){try{await d.signIn.emailOtp({email:u,otp:R,fetchOptions:{throw:!0}}),await g()}catch(E){m({variant:"error",message:hn({error:E,localization:r,localizeErrors:p})}),S.reset()}}return x.jsx(sa,{...S,children:x.jsxs("form",{onSubmit:S.handleSubmit(b),className:Ce("grid w-full gap-6",e,t?.base),children:[x.jsx(un,{control:S.control,name:"code",render:({field:R})=>x.jsxs(dn,{children:[x.jsx(fn,{className:t?.label,children:r.EMAIL_OTP}),x.jsx(Sn,{children:x.jsx(x1,{...R,maxLength:6,onChange:E=>{R.onChange(E),E.length===6&&S.handleSubmit(b)()},containerClassName:t?.otpInputContainer,className:t?.otpInput,disabled:n,children:x.jsx(T1,{otpSeparators:a})})}),x.jsx(Cn,{className:t?.error})]})}),x.jsx("div",{className:"grid gap-4",children:x.jsxs(Ht,{type:"submit",disabled:n,className:Ce(t?.button,t?.primaryButton),children:[n&&x.jsx(or,{className:"animate-spin"}),r.EMAIL_OTP_VERIFY_ACTION]})})]})})}function vY({onCancel:e,localization:t,className:n,classNames:r,otpSeparators:a,callbackURL:i,isSubmitting:c,redirectTo:u,setIsSubmitting:d}){const[f,m]=A.useState(!0),[p,g]=A.useState(30),{authClient:y,localization:w,toast:S,localizeErrors:b,navigate:R,basePath:E,viewPaths:T}=A.useContext(ft);t={...w,...t};const O=typeof window<"u"&&new URLSearchParams(window.location.search).get("email")||"",{onSuccess:C,isPending:I}=ia({redirectTo:u}),N=re({code:M().min(1,{message:`${t.EMAIL_OTP} ${t.IS_REQUIRED}`}).min(6,{message:`${t.EMAIL_OTP} ${t.IS_INVALID}`})}),D=ra({resolver:oa(N),defaultValues:{code:""}}),z=c||D.formState.isSubmitting||I;A.useEffect(()=>{d?.(D.formState.isSubmitting||I)},[D.formState.isSubmitting,I,d]),A.useEffect(()=>{if(p>0){const G=setTimeout(()=>g(p-1),1e3);return()=>clearTimeout(G)}else m(!1)},[p]);async function W({code:G}){try{const U=await y.emailOtp.verifyEmail({email:O,otp:G,fetchOptions:{throw:!0}});"token"in U&&U.token?await C():(R(`${E}/${T.SIGN_IN}${window.location.search}`),S({variant:"success",message:t.EMAIL_VERIFICATION_SUCCESS}))}catch(U){S({variant:"error",message:hn({error:U,localization:t,localizeErrors:b})}),D.reset()}}async function V(){if(!f){m(!0),g(30);try{await y.emailOtp.sendVerificationOtp({email:O,type:"email-verification",fetchOptions:{throw:!0}}),S({variant:"success",message:t.EMAIL_OTP_VERIFICATION_SENT})}catch(G){S({variant:"error",message:hn({error:G,localization:t,localizeErrors:b})}),m(!1),g(0)}}}return O?x.jsx(sa,{...D,children:x.jsxs("form",{onSubmit:D.handleSubmit(W),className:Ce("grid w-full gap-6",n,r?.base),children:[x.jsx(un,{control:D.control,name:"code",render:({field:G})=>x.jsxs(dn,{children:[x.jsx(fn,{className:r?.label,children:t.EMAIL_OTP}),x.jsx(Sn,{children:x.jsx(x1,{...G,maxLength:6,onChange:U=>{G.onChange(U),U.length===6&&D.handleSubmit(W)()},containerClassName:r?.otpInputContainer,className:r?.otpInput,disabled:z,children:x.jsx(T1,{otpSeparators:a})})}),x.jsx(Cn,{className:r?.error})]})}),x.jsxs("div",{className:"grid gap-4",children:[x.jsxs(Ht,{type:"submit",disabled:z,className:Ce(r?.button,r?.primaryButton),children:[z&&x.jsx(or,{className:"animate-spin"}),t.EMAIL_OTP_VERIFY_ACTION]}),x.jsx(Ht,{type:"button",variant:"outline",onClick:V,disabled:f||z,className:Ce("w-full",r?.button),children:f?`${t.RESEND_VERIFICATION_EMAIL} (${p}s)`:t.RESEND_VERIFICATION_EMAIL}),e&&x.jsx(Ht,{type:"button",variant:"ghost",onClick:e,disabled:z,className:"w-full",children:t.CANCEL})]})]})}):x.jsx("div",{className:Ce("grid w-full gap-6",n),children:x.jsxs("div",{className:"text-center",children:[x.jsx("h2",{className:"font-semibold text-destructive text-lg",children:"Invalid Request"}),x.jsx("p",{className:"text-muted-foreground text-sm",children:t.EMAIL_REQUIRED||"Email address is required"})]})})}function yY({className:e,classNames:t,isSubmitting:n,localization:r,setIsSubmitting:a}){const i=Ua(),{captchaRef:c,getCaptchaHeaders:u,resetCaptcha:d}=Cd({localization:r}),{authClient:f,basePath:m,baseURL:p,localization:g,navigate:y,toast:w,viewPaths:S,localizeErrors:b}=A.useContext(ft);r={...g,...r};const R=re({email:M().email({message:`${r.EMAIL} ${r.IS_INVALID}`}).min(1,{message:`${r.EMAIL} ${r.IS_REQUIRED}`})}),E=ra({resolver:oa(R),defaultValues:{email:""}});n=n||E.formState.isSubmitting,A.useEffect(()=>{a?.(E.formState.isSubmitting)},[E.formState.isSubmitting,a]);async function T({email:O}){try{const C={throw:!0,headers:await u("/forget-password")};await f.requestPasswordReset({email:O,redirectTo:`${p}${m}/${S.RESET_PASSWORD}`,fetchOptions:C}),w({variant:"success",message:r.FORGOT_PASSWORD_EMAIL}),y(`${m}/${S.SIGN_IN}${window.location.search}`)}catch(C){w({variant:"error",message:hn({error:C,localization:r,localizeErrors:b})}),d()}}return x.jsx(sa,{...E,children:x.jsxs("form",{onSubmit:E.handleSubmit(T),noValidate:i,className:Ce("grid w-full gap-6",e,t?.base),children:[x.jsx(un,{control:E.control,name:"email",render:({field:O})=>x.jsxs(dn,{children:[x.jsx(fn,{className:t?.label,children:r.EMAIL}),x.jsx(Sn,{children:x.jsx(Po,{className:t?.input,type:"email",placeholder:r.EMAIL_PLACEHOLDER,disabled:n,...O})}),x.jsx(Cn,{className:t?.error})]})}),x.jsx(Ad,{ref:c,localization:r,action:"/forget-password"}),x.jsx(Ht,{type:"submit",disabled:n,className:Ce("w-full",t?.button,t?.primaryButton),children:n?x.jsx(or,{className:"animate-spin"}):r.FORGOT_PASSWORD_ACTION})]})})}function WO({className:e,classNames:t,callbackURL:n,isSubmitting:r,localization:a,redirectTo:i,setIsSubmitting:c}){const u=Ua(),{captchaRef:d,getCaptchaHeaders:f,resetCaptcha:m}=Cd({localization:a}),{authClient:p,basePath:g,baseURL:y,persistClient:w,localization:S,redirectTo:b,viewPaths:R,toast:E,localizeErrors:T}=A.useContext(ft);a={...S,...a};const O=A.useCallback(()=>i||Ui("redirectTo")||b,[i,b]),C=A.useCallback(()=>`${y}${n||(w?`${g}/${R.CALLBACK}?redirectTo=${encodeURIComponent(O())}`:O())}`,[n,w,g,R,y,O]),I=re({email:M().email({message:`${a.EMAIL} ${a.IS_INVALID}`})}),N=ra({resolver:oa(I),defaultValues:{email:""}});r=r||N.formState.isSubmitting,A.useEffect(()=>{c?.(N.formState.isSubmitting)},[N.formState.isSubmitting,c]);async function D({email:z}){try{const W={throw:!0,headers:await f("/sign-in/magic-link")};await p.signIn.magicLink({email:z,callbackURL:C(),fetchOptions:W}),E({variant:"success",message:a.MAGIC_LINK_EMAIL}),N.reset()}catch(W){E({variant:"error",message:hn({error:W,localization:a,localizeErrors:T})}),m()}}return x.jsx(sa,{...N,children:x.jsxs("form",{onSubmit:N.handleSubmit(D),noValidate:u,className:Ce("grid w-full gap-6",e,t?.base),children:[x.jsx(un,{control:N.control,name:"email",render:({field:z})=>x.jsxs(dn,{children:[x.jsx(fn,{className:t?.label,children:a.EMAIL}),x.jsx(Sn,{children:x.jsx(Po,{className:t?.input,type:"email",placeholder:a.EMAIL_PLACEHOLDER,disabled:r,...z})}),x.jsx(Cn,{className:t?.error})]})}),x.jsx(Ad,{ref:d,localization:a,action:"/sign-in/magic-link"}),x.jsx(Ht,{type:"submit",disabled:r,className:Ce("w-full",t?.button,t?.primaryButton),children:r?x.jsx(or,{className:"animate-spin"}):a.MAGIC_LINK_ACTION})]})})}function _Y({className:e,classNames:t,isSubmitting:n,localization:r,redirectTo:a,setIsSubmitting:i}){const{authClient:c,localization:u,toast:d,localizeErrors:f}=A.useContext(ft);r={...u,...r};const{onSuccess:m,isPending:p}=ia({redirectTo:a}),g=re({code:M().min(1,{message:r.BACKUP_CODE_REQUIRED})}),y=ra({resolver:oa(g),defaultValues:{code:""}});n=n||y.formState.isSubmitting||p,A.useEffect(()=>{i?.(y.formState.isSubmitting||p)},[y.formState.isSubmitting,p,i]);async function w({code:S}){try{await c.twoFactor.verifyBackupCode({code:S,fetchOptions:{throw:!0}}),await m()}catch(b){d({variant:"error",message:hn({error:b,localization:r,localizeErrors:f})}),y.reset()}}return x.jsx(sa,{...y,children:x.jsxs("form",{onSubmit:y.handleSubmit(w),className:Ce("grid gap-6",e,t?.base),children:[x.jsx(un,{control:y.control,name:"code",render:({field:S})=>x.jsxs(dn,{children:[x.jsx(fn,{className:t?.label,children:r.BACKUP_CODE}),x.jsx(Sn,{children:x.jsx(Po,{placeholder:r.BACKUP_CODE_PLACEHOLDER,autoComplete:"off",className:t?.input,disabled:n,...S})}),x.jsx(Cn,{className:t?.error})]})}),x.jsx(Ht,{type:"submit",disabled:n,className:Ce(t?.button,t?.primaryButton),children:n?x.jsx(or,{className:"animate-spin"}):r.RECOVER_ACCOUNT_ACTION})]})})}function bY({className:e,classNames:t,localization:n,passwordValidation:r}){const a=A.useRef(!1),{authClient:i,basePath:c,credentials:u,localization:d,viewPaths:f,navigate:m,toast:p,localizeErrors:g}=A.useContext(ft),y=u?.confirmPassword,w=u?.passwordValidation;n={...d,...n},r={...w,...r};const S=re({newPassword:rd(r,{PASSWORD_REQUIRED:n.NEW_PASSWORD_REQUIRED,PASSWORD_TOO_SHORT:n.PASSWORD_TOO_SHORT,PASSWORD_TOO_LONG:n.PASSWORD_TOO_LONG,INVALID_PASSWORD:n.INVALID_PASSWORD}),confirmPassword:y?rd(r,{PASSWORD_REQUIRED:n.CONFIRM_PASSWORD_REQUIRED,PASSWORD_TOO_SHORT:n.PASSWORD_TOO_SHORT,PASSWORD_TOO_LONG:n.PASSWORD_TOO_LONG,INVALID_PASSWORD:n.INVALID_PASSWORD}):M().optional()}).refine(T=>!y||T.newPassword===T.confirmPassword,{message:n.PASSWORDS_DO_NOT_MATCH,path:["confirmPassword"]}),b=ra({resolver:oa(S),defaultValues:{newPassword:"",confirmPassword:""}}),R=b.formState.isSubmitting;A.useEffect(()=>{if(a.current)return;a.current=!0;const O=new URLSearchParams(window.location.search).get("token");(!O||O==="INVALID_TOKEN")&&(m(`${c}/${f.SIGN_IN}${window.location.search}`),p({variant:"error",message:n.INVALID_TOKEN}))},[c,m,p,f,n]);async function E({newPassword:T}){try{const C=new URLSearchParams(window.location.search).get("token");await i.resetPassword({newPassword:T,token:C,fetchOptions:{throw:!0}}),p({variant:"success",message:n.RESET_PASSWORD_SUCCESS}),m(`${c}/${f.SIGN_IN}${window.location.search}`)}catch(O){p({variant:"error",message:hn({error:O,localization:n,localizeErrors:g})}),b.reset()}}return x.jsx(sa,{...b,children:x.jsxs("form",{onSubmit:b.handleSubmit(E),className:Ce("grid w-full gap-6",e,t?.base),children:[x.jsx(un,{control:b.control,name:"newPassword",render:({field:T})=>x.jsxs(dn,{children:[x.jsx(fn,{className:t?.label,children:n.NEW_PASSWORD}),x.jsx(Sn,{children:x.jsx(ud,{autoComplete:"new-password",className:t?.input,placeholder:n.NEW_PASSWORD_PLACEHOLDER,disabled:R,...T})}),x.jsx(Cn,{className:t?.error})]})}),y&&x.jsx(un,{control:b.control,name:"confirmPassword",render:({field:T})=>x.jsxs(dn,{children:[x.jsx(fn,{className:t?.label,children:n.CONFIRM_PASSWORD}),x.jsx(Sn,{children:x.jsx(ud,{autoComplete:"new-password",className:t?.input,placeholder:n.CONFIRM_PASSWORD_PLACEHOLDER,disabled:R,...T})}),x.jsx(Cn,{className:t?.error})]})}),x.jsx(Ht,{type:"submit",disabled:R,className:Ce("w-full",t?.button,t?.primaryButton),children:R?x.jsx(or,{className:"animate-spin"}):n.RESET_PASSWORD_ACTION})]})})}function wY({className:e,classNames:t,isSubmitting:n,localization:r,redirectTo:a,setIsSubmitting:i,passwordValidation:c}){const u=Ua(),{captchaRef:d,getCaptchaHeaders:f,resetCaptcha:m}=Cd({localization:r}),{authClient:p,basePath:g,credentials:y,localization:w,viewPaths:S,navigate:b,toast:R,Link:E,localizeErrors:T,emailVerification:O}=A.useContext(ft),C=y?.rememberMe,I=y?.username,N=y?.passwordValidation;r={...w,...r},c={...N,...c};const{onSuccess:D,isPending:z}=ia({redirectTo:a}),W=re({email:I?M().min(1,{message:`${r.USERNAME} ${r.IS_REQUIRED}`}):M().email({message:`${r.EMAIL} ${r.IS_INVALID}`}),password:rd(c,r),rememberMe:We().optional()}),V=ra({resolver:oa(W),defaultValues:{email:"",password:"",rememberMe:!C}});n=n||V.formState.isSubmitting||z,A.useEffect(()=>{i?.(V.formState.isSubmitting||z)},[V.formState.isSubmitting,z,i]);async function G({email:U,password:J,rememberMe:ie}){var F;try{let X={};if(I&&!bz(U)){const ae={throw:!0,headers:await f("/sign-in/username")};X=await p.signIn.username({username:U,password:J,rememberMe:ie,fetchOptions:ae})}else{const ae={throw:!0,headers:await f("/sign-in/email")};X=await p.signIn.email({email:U,password:J,rememberMe:ie,fetchOptions:ae})}X.twoFactorRedirect?b(`${g}/${S.TWO_FACTOR}${window.location.search}`):await D()}catch(X){V.resetField("password"),m(),R({variant:"error",message:hn({error:X,localization:r,localizeErrors:T})}),O?.otp&&((F=X?.error)==null?void 0:F.code)==="EMAIL_NOT_VERIFIED"&&b(`${g}/${S.EMAIL_VERIFICATION}?email=${encodeURIComponent(U)}`)}}return x.jsx(sa,{...V,children:x.jsxs("form",{onSubmit:V.handleSubmit(G),noValidate:u,className:Ce("grid w-full gap-6",e,t?.base),children:[x.jsx(un,{control:V.control,name:"email",render:({field:U})=>x.jsxs(dn,{children:[x.jsx(fn,{className:t?.label,children:I?r.USERNAME:r.EMAIL}),x.jsx(Sn,{children:x.jsx(Po,{autoComplete:I?"username":"email",className:t?.input,type:I?"text":"email",placeholder:I?r.SIGN_IN_USERNAME_PLACEHOLDER:r.EMAIL_PLACEHOLDER,disabled:n,...U})}),x.jsx(Cn,{className:t?.error})]})}),x.jsx(un,{control:V.control,name:"password",render:({field:U})=>x.jsxs(dn,{children:[x.jsxs("div",{className:"flex items-center justify-between",children:[x.jsx(fn,{className:t?.label,children:r.PASSWORD}),y?.forgotPassword&&x.jsx(E,{className:Ce("text-sm hover:underline",t?.forgotPasswordLink),href:`${g}/${S.FORGOT_PASSWORD}${u?window.location.search:""}`,children:r.FORGOT_PASSWORD_LINK})]}),x.jsx(Sn,{children:x.jsx(ud,{autoComplete:"current-password",className:t?.input,placeholder:r.PASSWORD_PLACEHOLDER,disabled:n,...U})}),x.jsx(Cn,{className:t?.error})]})}),C&&x.jsx(un,{control:V.control,name:"rememberMe",render:({field:U})=>x.jsxs(dn,{className:"flex",children:[x.jsx(Sn,{children:x.jsx(R1,{checked:U.value,onCheckedChange:U.onChange,disabled:n})}),x.jsx(fn,{children:r.REMEMBER_ME})]})}),x.jsx(Ad,{ref:d,localization:r,action:"/sign-in/email"}),x.jsx(Ht,{type:"submit",disabled:n,className:Ce("w-full",t?.button,t?.primaryButton),children:n?x.jsx(or,{className:"animate-spin"}):r.SIGN_IN_ACTION})]})})}function SY({className:e,classNames:t,callbackURL:n,isSubmitting:r,localization:a,redirectTo:i,setIsSubmitting:c,passwordValidation:u}){const d=Ua(),{captchaRef:f,getCaptchaHeaders:m,resetCaptcha:p}=Cd({localization:a}),{additionalFields:g,authClient:y,basePath:w,baseURL:S,credentials:b,localization:R,nameRequired:E,persistClient:T,redirectTo:O,signUp:C,viewPaths:I,navigate:N,toast:D,avatar:z,localizeErrors:W,emailVerification:V}=A.useContext(ft),G=b?.confirmPassword,U=b?.username,J=b?.usernameRequired??!0,ie=b?.passwordValidation,F=C?.fields;a={...R,...a},u={...ie,...u};const X=A.useRef(null),[ae,fe]=A.useState(null),[K,P]=A.useState(!1),q=A.useCallback(()=>i||Ui("redirectTo")||O,[i,O]),B=A.useCallback(()=>`${S}${n||(T?`${w}/${I.CALLBACK}?redirectTo=${encodeURIComponent(q())}`:q())}`,[n,T,w,I,S,q]),{onSuccess:L,isPending:$}=ia({redirectTo:i}),Q={email:M().email({message:`${a.EMAIL} ${a.IS_INVALID}`}),password:rd(u,a),name:F?.includes("name")&&E?M().min(1,{message:`${a.NAME} ${a.IS_REQUIRED}`}):M().optional(),image:M().optional(),username:U&&J?M().min(1,{message:`${a.USERNAME} ${a.IS_REQUIRED}`}):M().optional(),confirmPassword:G?rd(u,{PASSWORD_REQUIRED:a.CONFIRM_PASSWORD_REQUIRED,PASSWORD_TOO_SHORT:a.PASSWORD_TOO_SHORT,PASSWORD_TOO_LONG:a.PASSWORD_TOO_LONG,INVALID_PASSWORD:a.INVALID_PASSWORD}):M().optional()},me={};if(F)for(const ce of F){if(ce==="name"||ce==="image")continue;const Oe=g?.[ce];if(!Oe)continue;let $e;Oe.type==="number"?$e=Oe.required?Mb(Ye=>Ye?Number(Ye):void 0,Pe({message:`${Oe.label} ${a.IS_INVALID}`})):ik({message:`${Oe.label} ${a.IS_INVALID}`}).optional():Oe.type==="boolean"?$e=Oe.required?yT({message:`${Oe.label} ${a.IS_INVALID}`}).refine(Ye=>Ye===!0,{message:`${Oe.label} ${a.IS_REQUIRED}`}):yT({message:`${Oe.label} ${a.IS_INVALID}`}).optional():$e=Oe.required?M().min(1,`${Oe.label} ${a.IS_REQUIRED}`):M().optional(),me[ce]=$e}const _e=re(Q).extend(me).refine(ce=>G?ce.password===ce.confirmPassword:!0,{message:a.PASSWORDS_DO_NOT_MATCH,path:["confirmPassword"]}),Ae={email:"",password:"",...G&&{confirmPassword:""},...F?.includes("name")?{name:""}:{},...U?{username:""}:{},...F?.includes("image")&&z?{image:""}:{}};if(F)for(const ce of F){if(ce==="name"||ce==="image")continue;const Oe=g?.[ce];Oe&&(Ae[ce]=Oe.type==="boolean"?!1:"")}const ke=ra({resolver:oa(_e),defaultValues:Ae});r=r||ke.formState.isSubmitting||$,A.useEffect(()=>{c?.(ke.formState.isSubmitting||$)},[ke.formState.isSubmitting,$,c]);const H=async ce=>{if(z){P(!0);try{const Oe=await AW(ce,crypto.randomUUID(),z.size,z.extension);let $e;z.upload?$e=await z.upload(Oe):$e=await kW(Oe),$e?(fe($e),ke.setValue("image",$e)):(fe(null),ke.setValue("image",""))}catch(Oe){console.error(Oe),D({variant:"error",message:hn({error:Oe,localization:a,localizeErrors:W})})}P(!1)}},ne=()=>{fe(null),ke.setValue("image","")},be=()=>{var ce;return(ce=X.current)==null?void 0:ce.click()};async function pe({email:ce,password:Oe,name:$e,username:Ye,confirmPassword:He,image:Xe,...Z}){try{for(const[Te,Re]of Object.entries(Z)){const Ne=g?.[Te];if(Ne?.validate&&typeof Re=="string"&&!await Ne.validate(Re)){ke.setError(Te,{message:`${Ne.label} ${a.IS_INVALID}`});return}}const te={throw:!0,headers:await m("/sign-up/email")},oe={};Ye!==void 0&&(!J&&(Ye===null||Ye===""||typeof Ye=="string"&&Ye.trim()==="")||(oe.username=Ye)),Xe!==void 0&&(oe.image=Xe);const Se=await y.signUp.email({email:ce,password:Oe,name:$e||"",...oe,...Z,callbackURL:B(),fetchOptions:te});"token"in Se&&Se.token?await L():V?.otp?N(`${w}/${I.EMAIL_VERIFICATION}?email=${encodeURIComponent(ce)}`):(N(`${w}/${I.SIGN_IN}${window.location.search}`),D({variant:"success",message:a.SIGN_UP_EMAIL}))}catch(te){D({variant:"error",message:hn({error:te,localization:a,localizeErrors:W})}),ke.resetField("password"),ke.resetField("confirmPassword"),p()}}return x.jsx(sa,{...ke,children:x.jsxs("form",{onSubmit:ke.handleSubmit(pe),noValidate:d,className:Ce("grid w-full gap-6",e,t?.base),children:[F?.includes("image")&&z&&x.jsxs(x.Fragment,{children:[x.jsx("input",{ref:X,accept:"image/*",disabled:K,hidden:!0,type:"file",onChange:ce=>{var Oe;const $e=(Oe=ce.target.files)==null?void 0:Oe.item(0);$e&&H($e),ce.target.value=""}}),x.jsx(un,{control:ke.control,name:"image",render:()=>x.jsxs(dn,{children:[x.jsx(fn,{children:a.AVATAR}),x.jsxs("div",{className:"flex items-center gap-4",children:[x.jsxs(NW,{children:[x.jsx(MW,{asChild:!0,children:x.jsx(Ht,{className:"size-fit rounded-full",size:"icon",variant:"ghost",type:"button",children:x.jsx(jW,{isPending:K,className:"size-16",user:ae?{name:ke.watch("name"),email:ke.watch("email"),image:ae}:null,localization:a})})}),x.jsxs(PW,{align:"start",onCloseAutoFocus:ce=>ce.preventDefault(),children:[x.jsxs(ZO,{onClick:be,disabled:K,children:[x.jsx(BV,{}),a.UPLOAD_AVATAR]}),ae&&x.jsxs(ZO,{onClick:ne,disabled:K,variant:"destructive",children:[x.jsx(WV,{}),a.DELETE_AVATAR]})]})]}),x.jsxs(Ht,{type:"button",variant:"outline",onClick:be,disabled:K,children:[K&&x.jsx(or,{className:"animate-spin"}),a.UPLOAD]})]}),x.jsx(Cn,{})]})})]}),F?.includes("name")&&x.jsx(un,{control:ke.control,name:"name",render:({field:ce})=>x.jsxs(dn,{children:[x.jsxs(fn,{className:t?.label,children:[a.NAME,!E&&x.jsx("span",{className:"ml-1 text-muted-foreground",children:a.OPTIONAL_BRACKETS})]}),x.jsx(Sn,{children:x.jsx(Po,{autoComplete:"name",className:t?.input,placeholder:a.NAME_PLACEHOLDER,disabled:r,...ce,value:ce.value})}),x.jsx(Cn,{className:t?.error})]})}),U&&x.jsx(un,{control:ke.control,name:"username",render:({field:ce})=>x.jsxs(dn,{children:[x.jsxs(fn,{className:t?.label,children:[a.USERNAME,!J&&x.jsx("span",{className:"ml-1 text-muted-foreground",children:a.OPTIONAL_BRACKETS})]}),x.jsx(Sn,{children:x.jsx(Po,{autoComplete:"username",className:t?.input,placeholder:a.USERNAME_PLACEHOLDER,disabled:r,...ce,value:ce.value})}),x.jsx(Cn,{className:t?.error})]})}),x.jsx(un,{control:ke.control,name:"email",render:({field:ce})=>x.jsxs(dn,{children:[x.jsx(fn,{className:t?.label,children:a.EMAIL}),x.jsx(Sn,{children:x.jsx(Po,{autoComplete:"email",className:t?.input,type:"email",placeholder:a.EMAIL_PLACEHOLDER,disabled:r,...ce,value:ce.value})}),x.jsx(Cn,{className:t?.error})]})}),x.jsx(un,{control:ke.control,name:"password",render:({field:ce})=>x.jsxs(dn,{children:[x.jsx(fn,{className:t?.label,children:a.PASSWORD}),x.jsx(Sn,{children:x.jsx(ud,{autoComplete:"new-password",className:t?.input,placeholder:a.PASSWORD_PLACEHOLDER,disabled:r,enableToggle:!0,...ce,value:ce.value})}),x.jsx(Cn,{className:t?.error})]})}),G&&x.jsx(un,{control:ke.control,name:"confirmPassword",render:({field:ce})=>x.jsxs(dn,{children:[x.jsx(fn,{className:t?.label,children:a.CONFIRM_PASSWORD}),x.jsx(Sn,{children:x.jsx(ud,{autoComplete:"new-password",className:t?.input,placeholder:a.CONFIRM_PASSWORD_PLACEHOLDER,disabled:r,enableToggle:!0,...ce,value:ce.value})}),x.jsx(Cn,{className:t?.error})]})}),F?.filter(ce=>ce!=="name"&&ce!=="image").map(ce=>{const Oe=g?.[ce];return Oe?Oe.type==="boolean"?x.jsx(un,{control:ke.control,name:ce,render:({field:$e})=>x.jsxs(dn,{className:"flex",children:[x.jsx(Sn,{children:x.jsx(R1,{checked:$e.value,onCheckedChange:$e.onChange,disabled:r})}),x.jsx(fn,{className:t?.label,children:Oe.label}),x.jsx(Cn,{className:t?.error})]})},ce):x.jsx(un,{control:ke.control,name:ce,render:({field:$e})=>x.jsxs(dn,{children:[x.jsx(fn,{className:t?.label,children:Oe.label}),x.jsx(Sn,{children:Oe.type==="number"?x.jsx(Po,{className:t?.input,type:"number",placeholder:Oe.placeholder||(typeof Oe.label=="string"?Oe.label:""),disabled:r,...$e,value:$e.value}):Oe.multiline?x.jsx(UW,{className:t?.input,placeholder:Oe.placeholder||(typeof Oe.label=="string"?Oe.label:""),disabled:r,...$e,value:$e.value}):x.jsx(Po,{className:t?.input,type:"text",placeholder:Oe.placeholder||(typeof Oe.label=="string"?Oe.label:""),disabled:r,...$e,value:$e.value})}),x.jsx(Cn,{className:t?.error})]})},ce):(console.error(`Additional field ${ce} not found`),null)}),x.jsx(Ad,{ref:f,localization:a,action:"/sign-up/email"}),x.jsx(Ht,{type:"submit",disabled:r,className:Ce("w-full",t?.button,t?.primaryButton),children:r?x.jsx(or,{className:"animate-spin"}):a.SIGN_UP_ACTION})]})})}function EY({className:e,classNames:t,isSubmitting:n,localization:r,otpSeparators:a=0,redirectTo:i,setIsSubmitting:c}){var u;const d=Ua(),f=d?Ui("totpURI"):null,m=A.useRef(!1),{authClient:p,basePath:g,hooks:{useSession:y},localization:w,twoFactor:S,viewPaths:b,toast:R,Link:E,localizeErrors:T}=A.useContext(ft);r={...w,...r};const{onSuccess:O,isPending:C}=ia({redirectTo:i}),{data:I}=y(),N=(u=I?.user)==null?void 0:u.twoFactorEnabled,[D,z]=A.useState(S?.length===1?S[0]:null),[W,V]=A.useState(!1),[G,U]=A.useState(0),J=re({code:M().min(1,{message:`${r.ONE_TIME_PASSWORD} ${r.IS_REQUIRED}`}).min(6,{message:`${r.ONE_TIME_PASSWORD} ${r.IS_INVALID}`}),trustDevice:We().optional()}),ie=ra({resolver:oa(J),defaultValues:{code:""}});n=n||ie.formState.isSubmitting||C,A.useEffect(()=>{c?.(ie.formState.isSubmitting||C)},[ie.formState.isSubmitting,C,c]),A.useEffect(()=>{D==="otp"&&G<=0&&!m.current&&(m.current=!0,F())},[D]),A.useEffect(()=>{if(G<=0)return;const ae=setTimeout(()=>{U(fe=>fe-1)},1e3);return()=>clearTimeout(ae)},[G]);const F=async()=>{if(!(W||G>0)){try{V(!0),await p.twoFactor.sendOtp({fetchOptions:{throw:!0}}),U(60)}catch(ae){R({variant:"error",message:hn({error:ae,localization:r,localizeErrors:T})}),ae.error.code==="INVALID_TWO_FACTOR_COOKIE"&&history.back()}m.current=!1,V(!1)}};async function X({code:ae,trustDevice:fe}){try{await(D==="totp"?p.twoFactor.verifyTotp:p.twoFactor.verifyOtp)({code:ae,trustDevice:fe,fetchOptions:{throw:!0}}),await O(),I&&!N&&R({variant:"success",message:r?.TWO_FACTOR_ENABLED})}catch(K){R({variant:"error",message:hn({error:K,localization:r,localizeErrors:T})}),ie.reset()}}return x.jsx(sa,{...ie,children:x.jsxs("form",{onSubmit:ie.handleSubmit(X),className:Ce("grid w-full gap-6",e,t?.base),children:[S?.includes("totp")&&f&&D==="totp"&&x.jsxs("div",{className:"space-y-3",children:[x.jsx(dM,{className:t?.label,children:r.TWO_FACTOR_TOTP_LABEL}),x.jsx(SW,{className:Ce("border shadow-xs",t?.qrCode),value:f})]}),D!==null&&x.jsxs(x.Fragment,{children:[x.jsx(un,{control:ie.control,name:"code",render:({field:ae})=>x.jsxs(dn,{children:[x.jsxs("div",{className:"flex items-center justify-between",children:[x.jsx(fn,{className:t?.label,children:r.ONE_TIME_PASSWORD}),x.jsx(E,{className:Ce("text-sm hover:underline",t?.forgotPasswordLink),href:`${g}/${b.RECOVER_ACCOUNT}${d?window.location.search:""}`,children:r.FORGOT_AUTHENTICATOR})]}),x.jsx(Sn,{children:x.jsx(x1,{...ae,maxLength:6,onChange:fe=>{ae.onChange(fe),fe.length===6&&ie.handleSubmit(X)()},containerClassName:t?.otpInputContainer,className:t?.otpInput,disabled:n,children:x.jsx(T1,{otpSeparators:a})})}),x.jsx(Cn,{className:t?.error})]})}),x.jsx(un,{control:ie.control,name:"trustDevice",render:({field:ae})=>x.jsxs(dn,{className:"flex",children:[x.jsx(Sn,{children:x.jsx(R1,{checked:ae.value,onCheckedChange:ae.onChange,disabled:n,className:t?.checkbox})}),x.jsx(fn,{className:t?.label,children:r.TRUST_DEVICE})]})})]}),x.jsxs("div",{className:"grid gap-4",children:[D!==null&&x.jsxs(Ht,{type:"submit",disabled:n,className:Ce(t?.button,t?.primaryButton),children:[n&&x.jsx(or,{className:"animate-spin"}),r.TWO_FACTOR_ACTION]}),D==="otp"&&S?.includes("otp")&&x.jsxs(Ht,{type:"button",variant:"outline",onClick:F,disabled:G>0||W||n,className:Ce(t?.button,t?.outlineButton),children:[W?x.jsx(or,{className:"animate-spin"}):x.jsx(TT,{className:t?.icon}),r.RESEND_CODE,G>0&&` (${G})`]}),D!=="otp"&&S?.includes("otp")&&x.jsxs(Ht,{type:"button",variant:"secondary",className:Ce(t?.button,t?.secondaryButton),onClick:()=>z("otp"),disabled:n,children:[x.jsx(TT,{className:t?.icon}),r.SEND_VERIFICATION_CODE]}),D!=="totp"&&S?.includes("totp")&&x.jsxs(Ht,{type:"button",variant:"secondary",className:Ce(t?.button,t?.secondaryButton),onClick:()=>z("totp"),disabled:n,children:[x.jsx(KV,{className:t?.icon}),r.CONTINUE_WITH_AUTHENTICATOR]})]})]})})}function _M({redirectTo:e}){const t=A.useRef(!1),{authClient:n,basePath:r,viewPaths:a}=A.useContext(ft),{onSuccess:i}=ia({redirectTo:e||`${r}/${a.SIGN_IN}`});return A.useEffect(()=>{t.current||(t.current=!0,n.signOut().finally(i))},[n,i]),x.jsx(or,{className:"animate-spin"})}function RY({className:e,classNames:t,callbackURL:n,isSubmitting:r,localization:a,pathname:i,redirectTo:c,view:u,otpSeparators:d=0,setIsSubmitting:f}){const{basePath:m,credentials:p,localization:g,magicLink:y,emailOTP:w,signUp:S,twoFactor:b,viewPaths:R,replace:E}=A.useContext(ft),T=!!S;if(a={...g,...a},A.useEffect(()=>{i&&!u_(R,i)&&(console.error(`Invalid auth view: ${i}`),E(`${m}/${R.SIGN_IN}${window.location.search}`))},[i,R,m,E]),u=u||u_(R,i)||"SIGN_IN",A.useEffect(()=>{let O=!1;u==="MAGIC_LINK"&&(!y||!p&&!w)&&(O=!0),u==="EMAIL_OTP"&&(!w||!p&&!y)&&(O=!0),u==="SIGN_UP"&&!T&&(O=!0),!p&&["SIGN_UP","FORGOT_PASSWORD","RESET_PASSWORD","TWO_FACTOR","RECOVER_ACCOUNT"].includes(u)&&(O=!0),["TWO_FACTOR","RECOVER_ACCOUNT"].includes(u)&&!b&&(O=!0),O&&E(`${m}/${R.SIGN_IN}${window.location.search}`)},[m,u,R,p,E,w,T,y,b]),u==="SIGN_OUT")return x.jsx(_M,{redirectTo:c});if(u==="CALLBACK")return x.jsx(yM,{redirectTo:c});if(u==="SIGN_IN")return p?x.jsx(wY,{className:e,classNames:t,localization:a,redirectTo:c,isSubmitting:r,setIsSubmitting:f}):y?x.jsx(WO,{className:e,classNames:t,callbackURL:n,localization:a,redirectTo:c,isSubmitting:r,setIsSubmitting:f}):w?x.jsx(KO,{className:e,classNames:t,callbackURL:n,localization:a,redirectTo:c,isSubmitting:r,setIsSubmitting:f}):null;if(u==="TWO_FACTOR")return x.jsx(EY,{className:e,classNames:t,localization:a,otpSeparators:d,redirectTo:c,isSubmitting:r,setIsSubmitting:f});if(u==="RECOVER_ACCOUNT")return x.jsx(_Y,{className:e,classNames:t,localization:a,redirectTo:c,isSubmitting:r,setIsSubmitting:f});if(u==="MAGIC_LINK")return x.jsx(WO,{className:e,classNames:t,callbackURL:n,localization:a,redirectTo:c,isSubmitting:r,setIsSubmitting:f});if(u==="EMAIL_OTP")return x.jsx(KO,{className:e,classNames:t,callbackURL:n,localization:a,redirectTo:c,isSubmitting:r,setIsSubmitting:f});if(u==="EMAIL_VERIFICATION")return x.jsx(vY,{className:e,classNames:t,callbackURL:n,localization:a,otpSeparators:d,redirectTo:c,isSubmitting:r,setIsSubmitting:f});if(u==="FORGOT_PASSWORD")return x.jsx(yY,{className:e,classNames:t,localization:a,isSubmitting:r,setIsSubmitting:f});if(u==="RESET_PASSWORD")return x.jsx(bY,{className:e,classNames:t,localization:a});if(u==="SIGN_UP")return T&&x.jsx(SY,{className:e,classNames:t,callbackURL:n,localization:a,redirectTo:c,isSubmitting:r,setIsSubmitting:f})}function xY({className:e,classNames:t,localization:n}){const{localization:r,redirectTo:a,replace:i,toast:c}=A.useContext(ft),u=A.useMemo(()=>({...r,...n}),[r,n]),{data:d}=OW(),[f,m]=A.useState(null);return A.useEffect(()=>{const p=Ui("invitationId");if(!p){c({variant:"error",message:u.INVITATION_NOT_FOUND}),i(a);return}m(p)},[u.INVITATION_NOT_FOUND,c,i,a]),!d||!f?x.jsx(bM,{className:e,classNames:t}):x.jsx(TY,{className:e,classNames:t,localization:u,invitationId:f})}function TY({className:e,classNames:t,localization:n,invitationId:r}){var a;const{authClient:i,hooks:{useInvitation:c},localization:u,organization:d,redirectTo:f,replace:m,toast:p,localizeErrors:g}=A.useContext(ft),y=A.useMemo(()=>({...u,...n}),[u,n]),[w,S]=A.useState(!1),[b,R]=A.useState(!1),E=w||b,{data:T,isPending:O}=c({query:{id:r}}),C=A.useCallback(()=>Ui("redirectTo")||f,[f]);A.useEffect(()=>{if(!(O||!r)){if(!T){p({variant:"error",message:y.INVITATION_NOT_FOUND}),m(f);return}(T.status!=="pending"||new Date(T.expiresAt)<new Date)&&(p({variant:"error",message:new Date(T.expiresAt)<new Date?y.INVITATION_EXPIRED:y.INVITATION_NOT_FOUND}),m(f))}},[T,O,r,y,p,m,f]);const I=async()=>{R(!0);try{await i.organization.acceptInvitation({invitationId:r,fetchOptions:{throw:!0}}),p({variant:"success",message:y.INVITATION_ACCEPTED||"Invitation accepted"}),m(C())}catch(V){p({variant:"error",message:hn({error:V,localization:y,localizeErrors:g})}),R(!1)}},N=async()=>{S(!0);try{await i.organization.rejectInvitation({invitationId:r,fetchOptions:{throw:!0}}),p({variant:"success",message:y.INVITATION_REJECTED}),m(f)}catch(V){p({variant:"error",message:hn({error:V,localization:y,localizeErrors:g})}),S(!1)}},W=((a=[...[{role:"owner",label:y.OWNER},{role:"admin",label:y.ADMIN},{role:"member",label:y.MEMBER}],...d?.customRoles||[]].find(V=>V.role===T?.role))==null?void 0:a.label)||T?.role;return T?x.jsxs(ld,{className:Ce("w-full max-w-sm",e,t?.base),children:[x.jsxs(w1,{className:Ce("justify-items-center text-center",t?.header),children:[x.jsx(lM,{className:Ce("text-lg md:text-xl",t?.title),children:y.ACCEPT_INVITATION}),x.jsx(uM,{className:Ce("text-xs md:text-sm",t?.description),children:y.ACCEPT_INVITATION_DESCRIPTION})]}),x.jsxs(S1,{className:Ce("flex flex-col gap-6 truncate",t?.content),children:[x.jsxs(ld,{className:Ce("flex-row items-center p-4"),children:[x.jsx(vM,{organization:{id:T.organizationId,name:T.organizationName,slug:T.organizationSlug,logo:T.organizationLogo,createdAt:new Date},localization:y}),x.jsx("p",{className:"ml-auto text-muted-foreground text-sm",children:W})]}),x.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[x.jsxs(Ht,{variant:"outline",className:Ce(t?.button,t?.outlineButton),onClick:N,disabled:E,children:[w?x.jsx(or,{className:"animate-spin"}):x.jsx(QV,{}),y.REJECT]}),x.jsxs(Ht,{className:Ce(t?.button,t?.primaryButton),onClick:I,disabled:E,children:[b?x.jsx(or,{className:"animate-spin"}):x.jsx(hk,{}),y.ACCEPT]})]})]})]}):x.jsx(bM,{className:e,classNames:t})}var bM=({className:e,classNames:t,localization:n})=>x.jsxs(ld,{className:Ce("w-full max-w-sm",e,t?.base),children:[x.jsxs(w1,{className:Ce("justify-items-center",t?.header),children:[x.jsx(Na,{className:Ce("my-1 h-5 w-full max-w-32 md:h-5.5 md:w-40",t?.skeleton)}),x.jsx(Na,{className:Ce("my-0.5 h-3 w-full max-w-56 md:h-3.5 md:w-64",t?.skeleton)})]}),x.jsxs(S1,{className:Ce("flex flex-col gap-6 truncate",t?.content),children:[x.jsxs(ld,{className:Ce("flex-row items-center p-4"),children:[x.jsx(vM,{isPending:!0,localization:n}),x.jsx(Na,{className:"mt-0.5 ml-auto h-4 w-full max-w-14 shrink-2"})]}),x.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[x.jsx(Na,{className:"h-9 w-full"}),x.jsx(Na,{className:"h-9 w-full"})]})]})]});function YO({className:e,orientation:t="horizontal",decorative:n=!0,...r}){return x.jsx(TW,{"data-slot":"separator",decorative:n,orientation:t,className:Ce("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",e),...r})}function OY({classNames:e,isSubmitting:t,localization:n,view:r}){var a,i,c,u;const{viewPaths:d,navigate:f,basePath:m}=A.useContext(ft);return x.jsxs(Ht,{className:Ce("w-full",(a=e?.form)==null?void 0:a.button,(i=e?.form)==null?void 0:i.secondaryButton),disabled:t,type:"button",variant:"secondary",onClick:()=>f(`${m}/${r==="EMAIL_OTP"?d.SIGN_IN:d.EMAIL_OTP}${window.location.search}`),children:[r==="EMAIL_OTP"?x.jsx(pk,{className:(c=e?.form)==null?void 0:c.icon}):x.jsx(mk,{className:(u=e?.form)==null?void 0:u.icon}),n.SIGN_IN_WITH," ",r==="EMAIL_OTP"?n.PASSWORD:n.EMAIL_OTP]})}function CY({classNames:e,isSubmitting:t,localization:n,view:r}){var a,i,c,u;const{viewPaths:d,navigate:f,basePath:m,credentials:p}=A.useContext(ft);return x.jsxs(Ht,{className:Ce("w-full",(a=e?.form)==null?void 0:a.button,(i=e?.form)==null?void 0:i.secondaryButton),disabled:t,type:"button",variant:"secondary",onClick:()=>f(`${m}/${r==="MAGIC_LINK"||!p?d.SIGN_IN:d.MAGIC_LINK}${window.location.search}`),children:[r==="MAGIC_LINK"?x.jsx(pk,{className:(c=e?.form)==null?void 0:c.icon}):x.jsx(mk,{className:(u=e?.form)==null?void 0:u.icon}),n.SIGN_IN_WITH," ",r==="MAGIC_LINK"?n.PASSWORD:n.MAGIC_LINK]})}function AY({localization:e,redirectTo:t}){const{authClient:n,localization:r,toast:a,localizeErrors:i}=A.useContext(ft),c=A.useRef(!1);e=A.useMemo(()=>({...r,...e}),[r,e]);const{onSuccess:u}=ia({redirectTo:t});return A.useEffect(()=>{if(!c.current){c.current=!0;try{n.oneTap({fetchOptions:{throw:!0,onSuccess:u}})}catch(d){a({variant:"error",message:hn({error:d,localization:e,localizeErrors:i})})}}},[n,e,i,u,a]),null}function IY({classNames:e,isSubmitting:t,localization:n,redirectTo:r,setIsSubmitting:a}){var i,c;const{authClient:u,localization:d,toast:f,localizeErrors:m}=A.useContext(ft);n={...d,...n};const{onSuccess:p}=ia({redirectTo:r}),g=async()=>{a?.(!0);try{const y=await u.signIn.passkey({fetchOptions:{throw:!0}});y?.error?(f({variant:"error",message:hn({error:y.error,localization:n,localizeErrors:m})}),a?.(!1)):p()}catch(y){f({variant:"error",message:hn({error:y,localization:n,localizeErrors:m})}),a?.(!1)}};return x.jsxs(Ht,{className:Ce("w-full",(i=e?.form)==null?void 0:i.button,(c=e?.form)==null?void 0:c.secondaryButton),disabled:t,formNoValidate:!0,name:"passkey",value:"true",variant:"secondary",onClick:g,children:[x.jsx(GV,{}),n.SIGN_IN_WITH," ",n.PASSKEY]})}function QO({className:e,classNames:t,callbackURL:n,isSubmitting:r,localization:a,other:i,provider:c,redirectTo:u,socialLayout:d,setIsSubmitting:f}){var m,p,g,y;const{authClient:w,basePath:S,baseURL:b,persistClient:R,redirectTo:E,viewPaths:T,social:O,genericOAuth:C,toast:I,localizeErrors:N}=A.useContext(ft),D=A.useCallback(()=>u||Ui("redirectTo")||E,[u,E]),z=A.useCallback(()=>`${b}${n||(R?`${S}/${T.CALLBACK}?redirectTo=${encodeURIComponent(D())}`:D())}`,[n,R,S,T,b,D]),W=async()=>{f(!0);try{if(i){const V={providerId:c.provider,callbackURL:z(),fetchOptions:{throw:!0}};C?.signIn?(await C.signIn(V),setTimeout(()=>{f(!1)},1e4)):await w.signIn.oauth2(V)}else{const V={provider:c.provider,callbackURL:z(),fetchOptions:{throw:!0}};O?.signIn?(await O.signIn(V),setTimeout(()=>{f(!1)},1e4)):await w.signIn.social(V)}}catch(V){I({variant:"error",message:hn({error:V,localization:a,localizeErrors:N})}),f(!1)}};return x.jsxs(Ht,{className:Ce(d==="vertical"?"w-full":"grow",e,(m=t?.form)==null?void 0:m.button,(p=t?.form)==null?void 0:p.outlineButton,(g=t?.form)==null?void 0:g.providerButton),disabled:r,variant:"outline",onClick:W,children:[c.icon&&x.jsx(c.icon,{className:(y=t?.form)==null?void 0:y.icon}),d==="grid"&&c.name,d==="vertical"&&`${a.SIGN_IN_WITH} ${c.name}`]})}function Goe({className:e,classNames:t,callbackURL:n,cardHeader:r,cardFooter:a,localization:i,path:c,pathname:u,redirectTo:d,socialLayout:f="auto",view:m,otpSeparators:p=0}){var g,y,w,S,b,R;const E=Ua(),{basePath:T,credentials:O,localization:C,magicLink:I,emailOTP:N,oneTap:D,passkey:z,signUp:W,social:V,genericOAuth:G,viewPaths:U,Link:J}=A.useContext(ft);i={...C,...i};let ie=f;ie==="auto"&&(ie=O&&V?.providers&&V.providers.length>2?"horizontal":"vertical");const F=c??u?.split("/").pop(),X=m||u_(U,F)||"SIGN_IN",[ae,fe]=A.useState(!1);if(A.useEffect(()=>{const P=()=>fe(!1);return window.addEventListener("pagehide",P),()=>{fe(!1),window.removeEventListener("pagehide",P)}},[]),X==="CALLBACK")return x.jsx(yM,{redirectTo:d});if(X==="SIGN_OUT")return x.jsx(_M,{redirectTo:d});if(X==="ACCEPT_INVITATION")return x.jsx(xY,{className:e,classNames:t});const K=!O&&!I&&!N?i.DISABLED_CREDENTIALS_DESCRIPTION:i[`${X}_DESCRIPTION`];return x.jsxs(ld,{className:Ce("w-full max-w-sm",e,t?.base),children:[x.jsx(w1,{className:t?.header,children:r||x.jsxs(x.Fragment,{children:[x.jsx(lM,{className:Ce("text-lg md:text-xl",t?.title),children:i[X]}),K&&x.jsx(uM,{className:Ce("text-xs md:text-sm",t?.description),children:K})]})}),x.jsxs(S1,{className:Ce("grid gap-6",t?.content),children:[D&&["SIGN_IN","SIGN_UP","MAGIC_LINK","EMAIL_OTP"].includes(X)&&x.jsx(AY,{localization:i,redirectTo:d}),(O||I||N)&&x.jsxs("div",{className:"grid gap-4",children:[x.jsx(RY,{classNames:t?.form,callbackURL:n,isSubmitting:ae,localization:i,otpSeparators:p,view:X,redirectTo:d,setIsSubmitting:fe}),I&&(O&&["FORGOT_PASSWORD","SIGN_UP","SIGN_IN","MAGIC_LINK","EMAIL_OTP"].includes(X)||N&&X==="EMAIL_OTP")&&x.jsx(CY,{classNames:t,localization:i,view:X,isSubmitting:ae}),N&&(O&&["FORGOT_PASSWORD","SIGN_UP","SIGN_IN","MAGIC_LINK","EMAIL_OTP"].includes(X)||I&&["SIGN_IN","MAGIC_LINK"].includes(X))&&x.jsx(OY,{classNames:t,localization:i,view:X,isSubmitting:ae})]}),X!=="RESET_PASSWORD"&&X!=="EMAIL_VERIFICATION"&&(((g=V?.providers)==null?void 0:g.length)||((y=G?.providers)==null?void 0:y.length)||X==="SIGN_IN"&&z)&&x.jsxs(x.Fragment,{children:[(O||I||N)&&x.jsxs("div",{className:Ce("flex items-center gap-2",t?.continueWith),children:[x.jsx(YO,{className:Ce("!w-auto grow",t?.separator)}),x.jsx("span",{className:"flex-shrink-0 text-muted-foreground text-sm",children:i.OR_CONTINUE_WITH}),x.jsx(YO,{className:Ce("!w-auto grow",t?.separator)})]}),x.jsxs("div",{className:"grid gap-4",children:[(((w=V?.providers)==null?void 0:w.length)||((S=G?.providers)==null?void 0:S.length))&&x.jsxs("div",{className:Ce("flex w-full items-center justify-between gap-4",ie==="horizontal"&&"flex-wrap",ie==="vertical"&&"flex-col",ie==="grid"&&"grid grid-cols-2"),children:[(b=V?.providers)==null?void 0:b.map(P=>{const q=lY.find(B=>B.provider===P);return q?x.jsx(QO,{classNames:t,callbackURL:n,isSubmitting:ae,localization:i,provider:q,redirectTo:d,setIsSubmitting:fe,socialLayout:ie},P):null}),(R=G?.providers)==null?void 0:R.map(P=>x.jsx(QO,{classNames:t,callbackURL:n,isSubmitting:ae,localization:i,provider:P,redirectTo:d,setIsSubmitting:fe,socialLayout:ie,other:!0},P.provider))]}),z&&["SIGN_IN","MAGIC_LINK","EMAIL_OTP","RECOVER_ACCOUNT","TWO_FACTOR","FORGOT_PASSWORD"].includes(X)&&x.jsx(IY,{classNames:t,isSubmitting:ae,localization:i,redirectTo:d,setIsSubmitting:fe})]})]})]}),a&&x.jsx(GO,{className:t?.footer,children:a}),O&&W&&x.jsxs(GO,{className:Ce("justify-center gap-1.5 text-muted-foreground text-sm",t?.footer),children:[X==="SIGN_IN"||X==="MAGIC_LINK"||X==="EMAIL_OTP"?i.DONT_HAVE_AN_ACCOUNT:X==="SIGN_UP"?i.ALREADY_HAVE_AN_ACCOUNT:x.jsx(VV,{className:"size-3"}),X==="SIGN_IN"||X==="MAGIC_LINK"||X==="EMAIL_OTP"||X==="SIGN_UP"?x.jsx(J,{className:Ce("text-foreground underline",t?.footerLink),href:`${T}/${U[X==="SIGN_IN"||X==="MAGIC_LINK"||X==="EMAIL_OTP"?"SIGN_UP":"SIGN_IN"]}${E?window.location.search:""}`,children:x.jsx(Ht,{variant:"link",size:"sm",className:Ce("px-0 text-foreground underline",t?.footerLink),children:X==="SIGN_IN"||X==="MAGIC_LINK"||X==="EMAIL_OTP"?i.SIGN_UP:i.SIGN_IN})}):x.jsx(Ht,{variant:"link",size:"sm",className:Ce("px-0 text-foreground underline",t?.footerLink),onClick:()=>window.history.back(),children:i.GO_BACK})]})]})}function Zoe({children:e}){const{hooks:{useSession:t}}=A.useContext(ft),{isPending:n}=t();return n?e:null}function Koe({children:e}){const{hooks:{useSession:t}}=A.useContext(ft),{data:n}=t();return n?e:null}function Woe({children:e}){const{hooks:{useSession:t}}=A.useContext(ft),{data:n,isPending:r}=t();return!n&&!r?e:null}function kY(e){const t=Li.c(8),{children:n}=e,r=wl();let a;t[0]===Symbol.for("react.memo_cache_sentinel")?(a={basePath:"/",pathMode:"slug"},t[0]=a):a=t[0];let i,c;t[1]!==r?(i=d=>r({to:d}),c=d=>r({to:d,replace:!0}),t[1]=r,t[2]=i,t[3]=c):(i=t[2],c=t[3]);let u;return t[4]!==n||t[5]!==i||t[6]!==c?(u=x.jsx(jV,{authClient:Bj,redirectTo:"/",organization:a,navigate:i,replace:c,Link:NY,children:n}),t[4]=n,t[5]=i,t[6]=c,t[7]=u):u=t[7],u}function NY(e){const{href:t,className:n,children:r,...a}=e;return x.jsx(Tm,{to:t,className:n,...a,children:r})}const pl="org-admin",MY={from({org:e,project:t}){if(e?.includes("/")||t.includes("/"))throw new Error("Org or project cannot contain slashes");return`${e}/${t}`},parse(e){e.startsWith("/")&&(e=e.slice(1));const[t,n]=e.split("/");if(!t||!n)throw new Error("Invalid locator");return{org:t,project:n}},isOrgAdminProject(e){return e.split("/")[1]===pl},adminProject(e){return`${e}/${pl}`}},wM=A.createContext(void 0),Yoe=()=>{const e=A.useContext(wM);if(!e)throw new Error("useProjectContext must be used within a ProjectContextProvider");return e},Qoe=e=>{const t=Li.c(10),{children:n,org:r,project:a}=e;let i;t[0]!==r.slug||t[1]!==a.slug?(i=MY.from({org:r.slug,project:a.slug}),t[0]=r.slug,t[1]=a.slug,t[2]=i):i=t[2];const c=i;let u;t[3]!==c||t[4]!==r||t[5]!==a?(u={org:r,project:a,locator:c},t[3]=c,t[4]=r,t[5]=a,t[6]=u):u=t[6];const d=u;let f;return t[7]!==n||t[8]!==d?(f=x.jsx(wM.Provider,{value:d,children:n}),t[7]=n,t[8]=d,t[9]=f):f=t[9],f};function Wm(e){return!!e._zod}function ws(e,t){return Wm(e)?iI(e,t):e.safeParse(t)}function SM(e){if(!e)return;let t;if(Wm(e)?t=e._zod?.def?.shape:t=e.shape,!!t){if(typeof t=="function")try{return t()}catch{return}return t}}function PY(e){if(Wm(e)){const i=e._zod?.def;if(i){if(i.value!==void 0)return i.value;if(Array.isArray(i.values)&&i.values.length>0)return i.values[0]}}const n=e._def;if(n){if(n.value!==void 0)return n.value;if(Array.isArray(n.values)&&n.values.length>0)return n.values[0]}const r=e.value;if(r!==void 0)return r}const Ym="2025-11-25",DY=[Ym,"2025-06-18","2025-03-26","2024-11-05","2024-10-07"],bi="io.modelcontextprotocol/related-task",Qm="2.0",Yn=sk(e=>e!==null&&(typeof e=="object"||typeof e=="function")),EM=gt([M(),Pe().int()]),RM=M();Wn({ttl:gt([Pe(),El()]).optional(),pollInterval:Pe().optional()});const LY=re({ttl:Pe().optional()}),jY=re({taskId:M()}),O1=Wn({progressToken:EM.optional(),[bi]:jY.optional()}),Yr=re({_meta:O1.optional()}),Id=Yr.extend({task:LY.optional()}),$Y=e=>Id.safeParse(e).success,Xn=re({method:M(),params:Yr.loose().optional()}),vo=re({_meta:O1.optional()}),yo=re({method:M(),params:vo.loose().optional()}),Jn=Wn({_meta:O1.optional()}),Xm=gt([M(),Pe().int()]),xM=re({jsonrpc:De(Qm),id:Xm,...Xn.shape}).strict(),L_=e=>xM.safeParse(e).success,TM=re({jsonrpc:De(Qm),...yo.shape}).strict(),UY=e=>TM.safeParse(e).success,C1=re({jsonrpc:De(Qm),id:Xm,result:Jn}).strict(),Du=e=>C1.safeParse(e).success;var et;(function(e){e[e.ConnectionClosed=-32e3]="ConnectionClosed",e[e.RequestTimeout=-32001]="RequestTimeout",e[e.ParseError=-32700]="ParseError",e[e.InvalidRequest=-32600]="InvalidRequest",e[e.MethodNotFound=-32601]="MethodNotFound",e[e.InvalidParams=-32602]="InvalidParams",e[e.InternalError=-32603]="InternalError",e[e.UrlElicitationRequired=-32042]="UrlElicitationRequired"})(et||(et={}));const A1=re({jsonrpc:De(Qm),id:Xm.optional(),error:re({code:Pe().int(),message:M(),data:ot().optional()})}).strict(),zY=e=>A1.safeParse(e).success,Ku=gt([xM,TM,C1,A1]);gt([C1,A1]);const Yc=Jn.strict(),VY=vo.extend({requestId:Xm.optional(),reason:M().optional()}),I1=yo.extend({method:De("notifications/cancelled"),params:VY}),FY=re({src:M(),mimeType:M().optional(),sizes:ve(M()).optional(),theme:xt(["light","dark"]).optional()}),kd=re({icons:ve(FY).optional()}),ml=re({name:M(),title:M().optional()}),OM=ml.extend({...ml.shape,...kd.shape,version:M(),websiteUrl:M().optional(),description:M().optional()}),BY=yd(re({applyDefaults:We().optional()}),lt(M(),ot())),qY=Mb(e=>e&&typeof e=="object"&&!Array.isArray(e)&&Object.keys(e).length===0?{form:{}}:e,yd(re({form:BY.optional(),url:Yn.optional()}),lt(M(),ot()).optional())),HY=Wn({list:Yn.optional(),cancel:Yn.optional(),requests:Wn({sampling:Wn({createMessage:Yn.optional()}).optional(),elicitation:Wn({create:Yn.optional()}).optional()}).optional()}),GY=Wn({list:Yn.optional(),cancel:Yn.optional(),requests:Wn({tools:Wn({call:Yn.optional()}).optional()}).optional()}),ZY=re({experimental:lt(M(),Yn).optional(),sampling:re({context:Yn.optional(),tools:Yn.optional()}).optional(),elicitation:qY.optional(),roots:re({listChanged:We().optional()}).optional(),tasks:HY.optional()}),KY=Yr.extend({protocolVersion:M(),capabilities:ZY,clientInfo:OM}),WY=Xn.extend({method:De("initialize"),params:KY}),YY=re({experimental:lt(M(),Yn).optional(),logging:Yn.optional(),completions:Yn.optional(),prompts:re({listChanged:We().optional()}).optional(),resources:re({subscribe:We().optional(),listChanged:We().optional()}).optional(),tools:re({listChanged:We().optional()}).optional(),tasks:GY.optional()}),CM=Jn.extend({protocolVersion:M(),capabilities:YY,serverInfo:OM,instructions:M().optional()}),AM=yo.extend({method:De("notifications/initialized"),params:vo.optional()}),QY=e=>AM.safeParse(e).success,k1=Xn.extend({method:De("ping"),params:Yr.optional()}),XY=re({progress:Pe(),total:sn(Pe()),message:sn(M())}),JY=re({...vo.shape,...XY.shape,progressToken:EM}),N1=yo.extend({method:De("notifications/progress"),params:JY}),eQ=Yr.extend({cursor:RM.optional()}),Nd=Xn.extend({params:eQ.optional()}),Md=Jn.extend({nextCursor:RM.optional()}),tQ=xt(["working","input_required","completed","failed","cancelled"]),Pd=re({taskId:M(),status:tQ,ttl:gt([Pe(),El()]),createdAt:M(),lastUpdatedAt:M(),pollInterval:sn(Pe()),statusMessage:sn(M())}),dd=Jn.extend({task:Pd}),nQ=vo.merge(Pd),rm=yo.extend({method:De("notifications/tasks/status"),params:nQ}),M1=Xn.extend({method:De("tasks/get"),params:Yr.extend({taskId:M()})}),P1=Jn.merge(Pd),D1=Xn.extend({method:De("tasks/result"),params:Yr.extend({taskId:M()})});Jn.loose();const L1=Nd.extend({method:De("tasks/list")}),j1=Md.extend({tasks:ve(Pd)}),$1=Xn.extend({method:De("tasks/cancel"),params:Yr.extend({taskId:M()})}),rQ=Jn.merge(Pd),IM=re({uri:M(),mimeType:sn(M()),_meta:lt(M(),ot()).optional()}),kM=IM.extend({text:M()}),U1=M().refine(e=>{try{return atob(e),!0}catch{return!1}},{message:"Invalid Base64 string"}),NM=IM.extend({blob:U1}),Dd=xt(["user","assistant"]),Tl=re({audience:ve(Dd).optional(),priority:Pe().min(0).max(1).optional(),lastModified:YI({offset:!0}).optional()}),MM=re({...ml.shape,...kd.shape,uri:M(),description:sn(M()),mimeType:sn(M()),annotations:Tl.optional(),_meta:sn(Wn({}))}),oQ=re({...ml.shape,...kd.shape,uriTemplate:M(),description:sn(M()),mimeType:sn(M()),annotations:Tl.optional(),_meta:sn(Wn({}))}),aQ=Nd.extend({method:De("resources/list")}),PM=Md.extend({resources:ve(MM)}),sQ=Nd.extend({method:De("resources/templates/list")}),DM=Md.extend({resourceTemplates:ve(oQ)}),z1=Yr.extend({uri:M()}),iQ=z1,cQ=Xn.extend({method:De("resources/read"),params:iQ}),LM=Jn.extend({contents:ve(gt([kM,NM]))}),jM=yo.extend({method:De("notifications/resources/list_changed"),params:vo.optional()}),lQ=z1,uQ=Xn.extend({method:De("resources/subscribe"),params:lQ}),dQ=z1,fQ=Xn.extend({method:De("resources/unsubscribe"),params:dQ}),hQ=vo.extend({uri:M()}),pQ=yo.extend({method:De("notifications/resources/updated"),params:hQ}),mQ=re({name:M(),description:sn(M()),required:sn(We())}),gQ=re({...ml.shape,...kd.shape,description:sn(M()),arguments:sn(ve(mQ)),_meta:sn(Wn({}))}),vQ=Nd.extend({method:De("prompts/list")}),$M=Md.extend({prompts:ve(gQ)}),yQ=Yr.extend({name:M(),arguments:lt(M(),M()).optional()}),_Q=Xn.extend({method:De("prompts/get"),params:yQ}),V1=re({type:De("text"),text:M(),annotations:Tl.optional(),_meta:lt(M(),ot()).optional()}),F1=re({type:De("image"),data:U1,mimeType:M(),annotations:Tl.optional(),_meta:lt(M(),ot()).optional()}),B1=re({type:De("audio"),data:U1,mimeType:M(),annotations:Tl.optional(),_meta:lt(M(),ot()).optional()}),bQ=re({type:De("tool_use"),name:M(),id:M(),input:lt(M(),ot()),_meta:lt(M(),ot()).optional()}),wQ=re({type:De("resource"),resource:gt([kM,NM]),annotations:Tl.optional(),_meta:lt(M(),ot()).optional()}),SQ=MM.extend({type:De("resource_link")}),q1=gt([V1,F1,B1,SQ,wQ]),EQ=re({role:Dd,content:q1}),UM=Jn.extend({description:M().optional(),messages:ve(EQ)}),zM=yo.extend({method:De("notifications/prompts/list_changed"),params:vo.optional()}),RQ=re({title:M().optional(),readOnlyHint:We().optional(),destructiveHint:We().optional(),idempotentHint:We().optional(),openWorldHint:We().optional()}),xQ=re({taskSupport:xt(["required","optional","forbidden"]).optional()}),VM=re({...ml.shape,...kd.shape,description:M().optional(),inputSchema:re({type:De("object"),properties:lt(M(),Yn).optional(),required:ve(M()).optional()}).catchall(ot()),outputSchema:re({type:De("object"),properties:lt(M(),Yn).optional(),required:ve(M()).optional()}).catchall(ot()).optional(),annotations:RQ.optional(),execution:xQ.optional(),_meta:lt(M(),ot()).optional()}),TQ=Nd.extend({method:De("tools/list")}),H1=Md.extend({tools:ve(VM)}),Jm=Jn.extend({content:ve(q1).default([]),structuredContent:lt(M(),ot()).optional(),isError:We().optional()});Jm.or(Jn.extend({toolResult:ot()}));const OQ=Id.extend({name:M(),arguments:lt(M(),ot()).optional()}),CQ=Xn.extend({method:De("tools/call"),params:OQ}),FM=yo.extend({method:De("notifications/tools/list_changed"),params:vo.optional()}),AQ=re({autoRefresh:We().default(!0),debounceMs:Pe().int().nonnegative().default(300)}),BM=xt(["debug","info","notice","warning","error","critical","alert","emergency"]),IQ=Yr.extend({level:BM}),kQ=Xn.extend({method:De("logging/setLevel"),params:IQ}),NQ=vo.extend({level:BM,logger:M().optional(),data:ot()}),MQ=yo.extend({method:De("notifications/message"),params:NQ}),PQ=re({name:M().optional()}),DQ=re({hints:ve(PQ).optional(),costPriority:Pe().min(0).max(1).optional(),speedPriority:Pe().min(0).max(1).optional(),intelligencePriority:Pe().min(0).max(1).optional()}),LQ=re({mode:xt(["auto","required","none"]).optional()}),jQ=re({type:De("tool_result"),toolUseId:M().describe("The unique identifier for the corresponding tool call."),content:ve(q1).default([]),structuredContent:re({}).loose().optional(),isError:We().optional(),_meta:lt(M(),ot()).optional()}),$Q=kb("type",[V1,F1,B1]),om=kb("type",[V1,F1,B1,bQ,jQ]),UQ=re({role:Dd,content:gt([om,ve(om)]),_meta:lt(M(),ot()).optional()}),zQ=Id.extend({messages:ve(UQ),modelPreferences:DQ.optional(),systemPrompt:M().optional(),includeContext:xt(["none","thisServer","allServers"]).optional(),temperature:Pe().optional(),maxTokens:Pe().int(),stopSequences:ve(M()).optional(),metadata:Yn.optional(),tools:ve(VM).optional(),toolChoice:LQ.optional()}),qM=Xn.extend({method:De("sampling/createMessage"),params:zQ}),HM=Jn.extend({model:M(),stopReason:sn(xt(["endTurn","stopSequence","maxTokens"]).or(M())),role:Dd,content:$Q}),GM=Jn.extend({model:M(),stopReason:sn(xt(["endTurn","stopSequence","maxTokens","toolUse"]).or(M())),role:Dd,content:gt([om,ve(om)])}),VQ=re({type:De("boolean"),title:M().optional(),description:M().optional(),default:We().optional()}),FQ=re({type:De("string"),title:M().optional(),description:M().optional(),minLength:Pe().optional(),maxLength:Pe().optional(),format:xt(["email","uri","date","date-time"]).optional(),default:M().optional()}),BQ=re({type:xt(["number","integer"]),title:M().optional(),description:M().optional(),minimum:Pe().optional(),maximum:Pe().optional(),default:Pe().optional()}),qQ=re({type:De("string"),title:M().optional(),description:M().optional(),enum:ve(M()),default:M().optional()}),HQ=re({type:De("string"),title:M().optional(),description:M().optional(),oneOf:ve(re({const:M(),title:M()})),default:M().optional()}),GQ=re({type:De("string"),title:M().optional(),description:M().optional(),enum:ve(M()),enumNames:ve(M()).optional(),default:M().optional()}),ZQ=gt([qQ,HQ]),KQ=re({type:De("array"),title:M().optional(),description:M().optional(),minItems:Pe().optional(),maxItems:Pe().optional(),items:re({type:De("string"),enum:ve(M())}),default:ve(M()).optional()}),WQ=re({type:De("array"),title:M().optional(),description:M().optional(),minItems:Pe().optional(),maxItems:Pe().optional(),items:re({anyOf:ve(re({const:M(),title:M()}))}),default:ve(M()).optional()}),YQ=gt([KQ,WQ]),QQ=gt([GQ,ZQ,YQ]),XQ=gt([QQ,VQ,FQ,BQ]),JQ=Id.extend({mode:De("form").optional(),message:M(),requestedSchema:re({type:De("object"),properties:lt(M(),XQ),required:ve(M()).optional()})}),eX=Id.extend({mode:De("url"),message:M(),elicitationId:M(),url:M().url()}),tX=gt([JQ,eX]),ZM=Xn.extend({method:De("elicitation/create"),params:tX}),nX=vo.extend({elicitationId:M()}),rX=yo.extend({method:De("notifications/elicitation/complete"),params:nX}),KM=Jn.extend({action:xt(["accept","decline","cancel"]),content:Mb(e=>e===null?void 0:e,lt(M(),gt([M(),Pe(),We(),ve(M())])).optional())}),oX=re({type:De("ref/resource"),uri:M()}),aX=re({type:De("ref/prompt"),name:M()}),sX=Yr.extend({ref:gt([aX,oX]),argument:re({name:M(),value:M()}),context:re({arguments:lt(M(),M()).optional()}).optional()}),iX=Xn.extend({method:De("completion/complete"),params:sX}),WM=Jn.extend({completion:Wn({values:ve(M()).max(100),total:sn(Pe().int()),hasMore:sn(We())})}),cX=re({uri:M().startsWith("file://"),name:M().optional(),_meta:lt(M(),ot()).optional()}),lX=Xn.extend({method:De("roots/list"),params:Yr.optional()}),uX=Jn.extend({roots:ve(cX)}),dX=yo.extend({method:De("notifications/roots/list_changed"),params:vo.optional()});gt([k1,WY,iX,kQ,_Q,vQ,aQ,sQ,cQ,uQ,fQ,CQ,TQ,M1,D1,L1,$1]);gt([I1,N1,AM,dX,rm]);gt([Yc,HM,GM,KM,uX,P1,j1,dd]);gt([k1,qM,ZM,lX,M1,D1,L1,$1]);gt([I1,N1,MQ,pQ,jM,FM,zM,rm,rX]);gt([Yc,CM,WM,UM,$M,PM,DM,LM,Jm,H1,P1,j1,dd]);class Ke extends Error{constructor(t,n,r){super(`MCP error ${t}: ${n}`),this.code=t,this.data=r,this.name="McpError"}static fromError(t,n,r){if(t===et.UrlElicitationRequired&&r){const a=r;if(a.elicitations)return new fX(a.elicitations,n)}return new Ke(t,n,r)}}class fX extends Ke{constructor(t,n=`URL elicitation${t.length>1?"s":""} required`){super(et.UrlElicitationRequired,n,{elicitations:t})}get elicitations(){return this.data?.elicitations??[]}}function gi(e){return e==="completed"||e==="failed"||e==="cancelled"}new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function XO(e){const n=SM(e)?.method;if(!n)throw new Error("Schema is missing a method literal");const r=PY(n);if(typeof r!="string")throw new Error("Schema method literal must be a string");return r}function JO(e,t){const n=ws(e,t);if(!n.success)throw n.error;return n.data}const hX=6e4;class pX{constructor(t){this._options=t,this._requestMessageId=0,this._requestHandlers=new Map,this._requestHandlerAbortControllers=new Map,this._notificationHandlers=new Map,this._responseHandlers=new Map,this._progressHandlers=new Map,this._timeoutInfo=new Map,this._pendingDebouncedNotifications=new Set,this._taskProgressTokens=new Map,this._requestResolvers=new Map,this.setNotificationHandler(I1,n=>{this._oncancel(n)}),this.setNotificationHandler(N1,n=>{this._onprogress(n)}),this.setRequestHandler(k1,n=>({})),this._taskStore=t?.taskStore,this._taskMessageQueue=t?.taskMessageQueue,this._taskStore&&(this.setRequestHandler(M1,async(n,r)=>{const a=await this._taskStore.getTask(n.params.taskId,r.sessionId);if(!a)throw new Ke(et.InvalidParams,"Failed to retrieve task: Task not found");return{...a}}),this.setRequestHandler(D1,async(n,r)=>{const a=async()=>{const i=n.params.taskId;if(this._taskMessageQueue){let u;for(;u=await this._taskMessageQueue.dequeue(i,r.sessionId);){if(u.type==="response"||u.type==="error"){const d=u.message,f=d.id,m=this._requestResolvers.get(f);if(m)if(this._requestResolvers.delete(f),u.type==="response")m(d);else{const p=d,g=new Ke(p.error.code,p.error.message,p.error.data);m(g)}else{const p=u.type==="response"?"Response":"Error";this._onerror(new Error(`${p} handler missing for request ${f}`))}continue}await this._transport?.send(u.message,{relatedRequestId:r.requestId})}}const c=await this._taskStore.getTask(i,r.sessionId);if(!c)throw new Ke(et.InvalidParams,`Task not found: ${i}`);if(!gi(c.status))return await this._waitForTaskUpdate(i,r.signal),await a();if(gi(c.status)){const u=await this._taskStore.getTaskResult(i,r.sessionId);return this._clearTaskQueue(i),{...u,_meta:{...u._meta,[bi]:{taskId:i}}}}return await a()};return await a()}),this.setRequestHandler(L1,async(n,r)=>{try{const{tasks:a,nextCursor:i}=await this._taskStore.listTasks(n.params?.cursor,r.sessionId);return{tasks:a,nextCursor:i,_meta:{}}}catch(a){throw new Ke(et.InvalidParams,`Failed to list tasks: ${a instanceof Error?a.message:String(a)}`)}}),this.setRequestHandler($1,async(n,r)=>{try{const a=await this._taskStore.getTask(n.params.taskId,r.sessionId);if(!a)throw new Ke(et.InvalidParams,`Task not found: ${n.params.taskId}`);if(gi(a.status))throw new Ke(et.InvalidParams,`Cannot cancel task in terminal status: ${a.status}`);await this._taskStore.updateTaskStatus(n.params.taskId,"cancelled","Client cancelled task execution.",r.sessionId),this._clearTaskQueue(n.params.taskId);const i=await this._taskStore.getTask(n.params.taskId,r.sessionId);if(!i)throw new Ke(et.InvalidParams,`Task not found after cancellation: ${n.params.taskId}`);return{_meta:{},...i}}catch(a){throw a instanceof Ke?a:new Ke(et.InvalidRequest,`Failed to cancel task: ${a instanceof Error?a.message:String(a)}`)}}))}async _oncancel(t){if(!t.params.requestId)return;this._requestHandlerAbortControllers.get(t.params.requestId)?.abort(t.params.reason)}_setupTimeout(t,n,r,a,i=!1){this._timeoutInfo.set(t,{timeoutId:setTimeout(a,n),startTime:Date.now(),timeout:n,maxTotalTimeout:r,resetTimeoutOnProgress:i,onTimeout:a})}_resetTimeout(t){const n=this._timeoutInfo.get(t);if(!n)return!1;const r=Date.now()-n.startTime;if(n.maxTotalTimeout&&r>=n.maxTotalTimeout)throw this._timeoutInfo.delete(t),Ke.fromError(et.RequestTimeout,"Maximum total timeout exceeded",{maxTotalTimeout:n.maxTotalTimeout,totalElapsed:r});return clearTimeout(n.timeoutId),n.timeoutId=setTimeout(n.onTimeout,n.timeout),!0}_cleanupTimeout(t){const n=this._timeoutInfo.get(t);n&&(clearTimeout(n.timeoutId),this._timeoutInfo.delete(t))}async connect(t){if(this._transport)throw new Error("Already connected to a transport. Call close() before connecting to a new transport, or use a separate Protocol instance per connection.");this._transport=t;const n=this.transport?.onclose;this._transport.onclose=()=>{n?.(),this._onclose()};const r=this.transport?.onerror;this._transport.onerror=i=>{r?.(i),this._onerror(i)};const a=this._transport?.onmessage;this._transport.onmessage=(i,c)=>{a?.(i,c),Du(i)||zY(i)?this._onresponse(i):L_(i)?this._onrequest(i,c):UY(i)?this._onnotification(i):this._onerror(new Error(`Unknown message type: ${JSON.stringify(i)}`))},await this._transport.start()}_onclose(){const t=this._responseHandlers;this._responseHandlers=new Map,this._progressHandlers.clear(),this._taskProgressTokens.clear(),this._pendingDebouncedNotifications.clear();for(const r of this._requestHandlerAbortControllers.values())r.abort();this._requestHandlerAbortControllers.clear();const n=Ke.fromError(et.ConnectionClosed,"Connection closed");this._transport=void 0,this.onclose?.();for(const r of t.values())r(n)}_onerror(t){this.onerror?.(t)}_onnotification(t){const n=this._notificationHandlers.get(t.method)??this.fallbackNotificationHandler;n!==void 0&&Promise.resolve().then(()=>n(t)).catch(r=>this._onerror(new Error(`Uncaught error in notification handler: ${r}`)))}_onrequest(t,n){const r=this._requestHandlers.get(t.method)??this.fallbackRequestHandler,a=this._transport,i=t.params?._meta?.[bi]?.taskId;if(r===void 0){const m={jsonrpc:"2.0",id:t.id,error:{code:et.MethodNotFound,message:"Method not found"}};i&&this._taskMessageQueue?this._enqueueTaskMessage(i,{type:"error",message:m,timestamp:Date.now()},a?.sessionId).catch(p=>this._onerror(new Error(`Failed to enqueue error response: ${p}`))):a?.send(m).catch(p=>this._onerror(new Error(`Failed to send an error response: ${p}`)));return}const c=new AbortController;this._requestHandlerAbortControllers.set(t.id,c);const u=$Y(t.params)?t.params.task:void 0,d=this._taskStore?this.requestTaskStore(t,a?.sessionId):void 0,f={signal:c.signal,sessionId:a?.sessionId,_meta:t.params?._meta,sendNotification:async m=>{if(c.signal.aborted)return;const p={relatedRequestId:t.id};i&&(p.relatedTask={taskId:i}),await this.notification(m,p)},sendRequest:async(m,p,g)=>{if(c.signal.aborted)throw new Ke(et.ConnectionClosed,"Request was cancelled");const y={...g,relatedRequestId:t.id};i&&!y.relatedTask&&(y.relatedTask={taskId:i});const w=y.relatedTask?.taskId??i;return w&&d&&await d.updateTaskStatus(w,"input_required"),await this.request(m,p,y)},authInfo:n?.authInfo,requestId:t.id,requestInfo:n?.requestInfo,taskId:i,taskStore:d,taskRequestedTtl:u?.ttl,closeSSEStream:n?.closeSSEStream,closeStandaloneSSEStream:n?.closeStandaloneSSEStream};Promise.resolve().then(()=>{u&&this.assertTaskHandlerCapability(t.method)}).then(()=>r(t,f)).then(async m=>{if(c.signal.aborted)return;const p={result:m,jsonrpc:"2.0",id:t.id};i&&this._taskMessageQueue?await this._enqueueTaskMessage(i,{type:"response",message:p,timestamp:Date.now()},a?.sessionId):await a?.send(p)},async m=>{if(c.signal.aborted)return;const p={jsonrpc:"2.0",id:t.id,error:{code:Number.isSafeInteger(m.code)?m.code:et.InternalError,message:m.message??"Internal error",...m.data!==void 0&&{data:m.data}}};i&&this._taskMessageQueue?await this._enqueueTaskMessage(i,{type:"error",message:p,timestamp:Date.now()},a?.sessionId):await a?.send(p)}).catch(m=>this._onerror(new Error(`Failed to send response: ${m}`))).finally(()=>{this._requestHandlerAbortControllers.delete(t.id)})}_onprogress(t){const{progressToken:n,...r}=t.params,a=Number(n),i=this._progressHandlers.get(a);if(!i){this._onerror(new Error(`Received a progress notification for an unknown token: ${JSON.stringify(t)}`));return}const c=this._responseHandlers.get(a),u=this._timeoutInfo.get(a);if(u&&c&&u.resetTimeoutOnProgress)try{this._resetTimeout(a)}catch(d){this._responseHandlers.delete(a),this._progressHandlers.delete(a),this._cleanupTimeout(a),c(d);return}i(r)}_onresponse(t){const n=Number(t.id),r=this._requestResolvers.get(n);if(r){if(this._requestResolvers.delete(n),Du(t))r(t);else{const c=new Ke(t.error.code,t.error.message,t.error.data);r(c)}return}const a=this._responseHandlers.get(n);if(a===void 0){this._onerror(new Error(`Received a response for an unknown message ID: ${JSON.stringify(t)}`));return}this._responseHandlers.delete(n),this._cleanupTimeout(n);let i=!1;if(Du(t)&&t.result&&typeof t.result=="object"){const c=t.result;if(c.task&&typeof c.task=="object"){const u=c.task;typeof u.taskId=="string"&&(i=!0,this._taskProgressTokens.set(u.taskId,n))}}if(i||this._progressHandlers.delete(n),Du(t))a(t);else{const c=Ke.fromError(t.error.code,t.error.message,t.error.data);a(c)}}get transport(){return this._transport}async close(){await this._transport?.close()}async*requestStream(t,n,r){const{task:a}=r??{};if(!a){try{yield{type:"result",result:await this.request(t,n,r)}}catch(c){yield{type:"error",error:c instanceof Ke?c:new Ke(et.InternalError,String(c))}}return}let i;try{const c=await this.request(t,dd,r);if(c.task)i=c.task.taskId,yield{type:"taskCreated",task:c.task};else throw new Ke(et.InternalError,"Task creation did not return a task");for(;;){const u=await this.getTask({taskId:i},r);if(yield{type:"taskStatus",task:u},gi(u.status)){u.status==="completed"?yield{type:"result",result:await this.getTaskResult({taskId:i},n,r)}:u.status==="failed"?yield{type:"error",error:new Ke(et.InternalError,`Task ${i} failed`)}:u.status==="cancelled"&&(yield{type:"error",error:new Ke(et.InternalError,`Task ${i} was cancelled`)});return}if(u.status==="input_required"){yield{type:"result",result:await this.getTaskResult({taskId:i},n,r)};return}const d=u.pollInterval??this._options?.defaultTaskPollInterval??1e3;await new Promise(f=>setTimeout(f,d)),r?.signal?.throwIfAborted()}}catch(c){yield{type:"error",error:c instanceof Ke?c:new Ke(et.InternalError,String(c))}}}request(t,n,r){const{relatedRequestId:a,resumptionToken:i,onresumptiontoken:c,task:u,relatedTask:d}=r??{};return new Promise((f,m)=>{const p=E=>{m(E)};if(!this._transport){p(new Error("Not connected"));return}if(this._options?.enforceStrictCapabilities===!0)try{this.assertCapabilityForMethod(t.method),u&&this.assertTaskCapability(t.method)}catch(E){p(E);return}r?.signal?.throwIfAborted();const g=this._requestMessageId++,y={...t,jsonrpc:"2.0",id:g};r?.onprogress&&(this._progressHandlers.set(g,r.onprogress),y.params={...t.params,_meta:{...t.params?._meta||{},progressToken:g}}),u&&(y.params={...y.params,task:u}),d&&(y.params={...y.params,_meta:{...y.params?._meta||{},[bi]:d}});const w=E=>{this._responseHandlers.delete(g),this._progressHandlers.delete(g),this._cleanupTimeout(g),this._transport?.send({jsonrpc:"2.0",method:"notifications/cancelled",params:{requestId:g,reason:String(E)}},{relatedRequestId:a,resumptionToken:i,onresumptiontoken:c}).catch(O=>this._onerror(new Error(`Failed to send cancellation: ${O}`)));const T=E instanceof Ke?E:new Ke(et.RequestTimeout,String(E));m(T)};this._responseHandlers.set(g,E=>{if(!r?.signal?.aborted){if(E instanceof Error)return m(E);try{const T=ws(n,E.result);T.success?f(T.data):m(T.error)}catch(T){m(T)}}}),r?.signal?.addEventListener("abort",()=>{w(r?.signal?.reason)});const S=r?.timeout??hX,b=()=>w(Ke.fromError(et.RequestTimeout,"Request timed out",{timeout:S}));this._setupTimeout(g,S,r?.maxTotalTimeout,b,r?.resetTimeoutOnProgress??!1);const R=d?.taskId;if(R){const E=T=>{const O=this._responseHandlers.get(g);O?O(T):this._onerror(new Error(`Response handler missing for side-channeled request ${g}`))};this._requestResolvers.set(g,E),this._enqueueTaskMessage(R,{type:"request",message:y,timestamp:Date.now()}).catch(T=>{this._cleanupTimeout(g),m(T)})}else this._transport.send(y,{relatedRequestId:a,resumptionToken:i,onresumptiontoken:c}).catch(E=>{this._cleanupTimeout(g),m(E)})})}async getTask(t,n){return this.request({method:"tasks/get",params:t},P1,n)}async getTaskResult(t,n,r){return this.request({method:"tasks/result",params:t},n,r)}async listTasks(t,n){return this.request({method:"tasks/list",params:t},j1,n)}async cancelTask(t,n){return this.request({method:"tasks/cancel",params:t},rQ,n)}async notification(t,n){if(!this._transport)throw new Error("Not connected");this.assertNotificationCapability(t.method);const r=n?.relatedTask?.taskId;if(r){const u={...t,jsonrpc:"2.0",params:{...t.params,_meta:{...t.params?._meta||{},[bi]:n.relatedTask}}};await this._enqueueTaskMessage(r,{type:"notification",message:u,timestamp:Date.now()});return}if((this._options?.debouncedNotificationMethods??[]).includes(t.method)&&!t.params&&!n?.relatedRequestId&&!n?.relatedTask){if(this._pendingDebouncedNotifications.has(t.method))return;this._pendingDebouncedNotifications.add(t.method),Promise.resolve().then(()=>{if(this._pendingDebouncedNotifications.delete(t.method),!this._transport)return;let u={...t,jsonrpc:"2.0"};n?.relatedTask&&(u={...u,params:{...u.params,_meta:{...u.params?._meta||{},[bi]:n.relatedTask}}}),this._transport?.send(u,n).catch(d=>this._onerror(d))});return}let c={...t,jsonrpc:"2.0"};n?.relatedTask&&(c={...c,params:{...c.params,_meta:{...c.params?._meta||{},[bi]:n.relatedTask}}}),await this._transport.send(c,n)}setRequestHandler(t,n){const r=XO(t);this.assertRequestHandlerCapability(r),this._requestHandlers.set(r,(a,i)=>{const c=JO(t,a);return Promise.resolve(n(c,i))})}removeRequestHandler(t){this._requestHandlers.delete(t)}assertCanSetRequestHandler(t){if(this._requestHandlers.has(t))throw new Error(`A request handler for ${t} already exists, which would be overridden`)}setNotificationHandler(t,n){const r=XO(t);this._notificationHandlers.set(r,a=>{const i=JO(t,a);return Promise.resolve(n(i))})}removeNotificationHandler(t){this._notificationHandlers.delete(t)}_cleanupTaskProgressHandler(t){const n=this._taskProgressTokens.get(t);n!==void 0&&(this._progressHandlers.delete(n),this._taskProgressTokens.delete(t))}async _enqueueTaskMessage(t,n,r){if(!this._taskStore||!this._taskMessageQueue)throw new Error("Cannot enqueue task message: taskStore and taskMessageQueue are not configured");const a=this._options?.maxTaskQueueSize;await this._taskMessageQueue.enqueue(t,n,r,a)}async _clearTaskQueue(t,n){if(this._taskMessageQueue){const r=await this._taskMessageQueue.dequeueAll(t,n);for(const a of r)if(a.type==="request"&&L_(a.message)){const i=a.message.id,c=this._requestResolvers.get(i);c?(c(new Ke(et.InternalError,"Task cancelled or completed")),this._requestResolvers.delete(i)):this._onerror(new Error(`Resolver missing for request ${i} during task ${t} cleanup`))}}}async _waitForTaskUpdate(t,n){let r=this._options?.defaultTaskPollInterval??1e3;try{const a=await this._taskStore?.getTask(t);a?.pollInterval&&(r=a.pollInterval)}catch{}return new Promise((a,i)=>{if(n.aborted){i(new Ke(et.InvalidRequest,"Request cancelled"));return}const c=setTimeout(a,r);n.addEventListener("abort",()=>{clearTimeout(c),i(new Ke(et.InvalidRequest,"Request cancelled"))},{once:!0})})}requestTaskStore(t,n){const r=this._taskStore;if(!r)throw new Error("No task store configured");return{createTask:async a=>{if(!t)throw new Error("No request provided");return await r.createTask(a,t.id,{method:t.method,params:t.params},n)},getTask:async a=>{const i=await r.getTask(a,n);if(!i)throw new Ke(et.InvalidParams,"Failed to retrieve task: Task not found");return i},storeTaskResult:async(a,i,c)=>{await r.storeTaskResult(a,i,c,n);const u=await r.getTask(a,n);if(u){const d=rm.parse({method:"notifications/tasks/status",params:u});await this.notification(d),gi(u.status)&&this._cleanupTaskProgressHandler(a)}},getTaskResult:a=>r.getTaskResult(a,n),updateTaskStatus:async(a,i,c)=>{const u=await r.getTask(a,n);if(!u)throw new Ke(et.InvalidParams,`Task "${a}" not found - it may have been cleaned up`);if(gi(u.status))throw new Ke(et.InvalidParams,`Cannot update task "${a}" from terminal status "${u.status}" to "${i}". Terminal states (completed, failed, cancelled) cannot transition to other states.`);await r.updateTaskStatus(a,i,c,n);const d=await r.getTask(a,n);if(d){const f=rm.parse({method:"notifications/tasks/status",params:d});await this.notification(f),gi(d.status)&&this._cleanupTaskProgressHandler(a)}},listTasks:a=>r.listTasks(a,n)}}}function e2(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function mX(e,t){const n={...e};for(const r in t){const a=r,i=t[a];if(i===void 0)continue;const c=n[a];e2(c)&&e2(i)?n[a]={...c,...i}:n[a]=i}return n}var Eh={exports:{}},O0={},Ca={},vi={},C0={},A0={},I0={},t2;function am(){return t2||(t2=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.regexpCode=e.getEsmExportName=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;class t{}e._CodeOrName=t,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class n extends t{constructor(E){if(super(),!e.IDENTIFIER.test(E))throw new Error("CodeGen: name must be a valid identifier");this.str=E}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=n;class r extends t{constructor(E){super(),this._items=typeof E=="string"?[E]:E}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const E=this._items[0];return E===""||E==='""'}get str(){var E;return(E=this._str)!==null&&E!==void 0?E:this._str=this._items.reduce((T,O)=>`${T}${O}`,"")}get names(){var E;return(E=this._names)!==null&&E!==void 0?E:this._names=this._items.reduce((T,O)=>(O instanceof n&&(T[O.str]=(T[O.str]||0)+1),T),{})}}e._Code=r,e.nil=new r("");function a(R,...E){const T=[R[0]];let O=0;for(;O<E.length;)u(T,E[O]),T.push(R[++O]);return new r(T)}e._=a;const i=new r("+");function c(R,...E){const T=[y(R[0])];let O=0;for(;O<E.length;)T.push(i),u(T,E[O]),T.push(i,y(R[++O]));return d(T),new r(T)}e.str=c;function u(R,E){E instanceof r?R.push(...E._items):E instanceof n?R.push(E):R.push(p(E))}e.addCodeArg=u;function d(R){let E=1;for(;E<R.length-1;){if(R[E]===i){const T=f(R[E-1],R[E+1]);if(T!==void 0){R.splice(E-1,3,T);continue}R[E++]="+"}E++}}function f(R,E){if(E==='""')return R;if(R==='""')return E;if(typeof R=="string")return E instanceof n||R[R.length-1]!=='"'?void 0:typeof E!="string"?`${R.slice(0,-1)}${E}"`:E[0]==='"'?R.slice(0,-1)+E.slice(1):void 0;if(typeof E=="string"&&E[0]==='"'&&!(R instanceof n))return`"${R}${E.slice(1)}`}function m(R,E){return E.emptyStr()?R:R.emptyStr()?E:c`${R}${E}`}e.strConcat=m;function p(R){return typeof R=="number"||typeof R=="boolean"||R===null?R:y(Array.isArray(R)?R.join(","):R)}function g(R){return new r(y(R))}e.stringify=g;function y(R){return JSON.stringify(R).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=y;function w(R){return typeof R=="string"&&e.IDENTIFIER.test(R)?new r(`.${R}`):a`[${R}]`}e.getProperty=w;function S(R){if(typeof R=="string"&&e.IDENTIFIER.test(R))return new r(`${R}`);throw new Error(`CodeGen: invalid export name: ${R}, use explicit $id name mapping`)}e.getEsmExportName=S;function b(R){return new r(R.toString())}e.regexpCode=b})(I0)),I0}var k0={},n2;function r2(){return n2||(n2=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=am();class n extends Error{constructor(f){super(`CodeGen: "code" for ${f} not defined`),this.value=f.value}}var r;(function(d){d[d.Started=0]="Started",d[d.Completed=1]="Completed"})(r||(e.UsedValueState=r={})),e.varKinds={const:new t.Name("const"),let:new t.Name("let"),var:new t.Name("var")};class a{constructor({prefixes:f,parent:m}={}){this._names={},this._prefixes=f,this._parent=m}toName(f){return f instanceof t.Name?f:this.name(f)}name(f){return new t.Name(this._newName(f))}_newName(f){const m=this._names[f]||this._nameGroup(f);return`${f}${m.index++}`}_nameGroup(f){var m,p;if(!((p=(m=this._parent)===null||m===void 0?void 0:m._prefixes)===null||p===void 0)&&p.has(f)||this._prefixes&&!this._prefixes.has(f))throw new Error(`CodeGen: prefix "${f}" is not allowed in this scope`);return this._names[f]={prefix:f,index:0}}}e.Scope=a;class i extends t.Name{constructor(f,m){super(m),this.prefix=f}setValue(f,{property:m,itemIndex:p}){this.value=f,this.scopePath=(0,t._)`.${new t.Name(m)}[${p}]`}}e.ValueScopeName=i;const c=(0,t._)`\n`;class u extends a{constructor(f){super(f),this._values={},this._scope=f.scope,this.opts={...f,_n:f.lines?c:t.nil}}get(){return this._scope}name(f){return new i(f,this._newName(f))}value(f,m){var p;if(m.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const g=this.toName(f),{prefix:y}=g,w=(p=m.key)!==null&&p!==void 0?p:m.ref;let S=this._values[y];if(S){const E=S.get(w);if(E)return E}else S=this._values[y]=new Map;S.set(w,g);const b=this._scope[y]||(this._scope[y]=[]),R=b.length;return b[R]=m.ref,g.setValue(m,{property:y,itemIndex:R}),g}getValue(f,m){const p=this._values[f];if(p)return p.get(m)}scopeRefs(f,m=this._values){return this._reduceValues(m,p=>{if(p.scopePath===void 0)throw new Error(`CodeGen: name "${p}" has no value`);return(0,t._)`${f}${p.scopePath}`})}scopeCode(f=this._values,m,p){return this._reduceValues(f,g=>{if(g.value===void 0)throw new Error(`CodeGen: name "${g}" has no value`);return g.value.code},m,p)}_reduceValues(f,m,p={},g){let y=t.nil;for(const w in f){const S=f[w];if(!S)continue;const b=p[w]=p[w]||new Map;S.forEach(R=>{if(b.has(R))return;b.set(R,r.Started);let E=m(R);if(E){const T=this.opts.es5?e.varKinds.var:e.varKinds.const;y=(0,t._)`${y}${T} ${R} = ${E};${this.opts._n}`}else if(E=g?.(R))y=(0,t._)`${y}${E}${this.opts._n}`;else throw new n(R);b.set(R,r.Completed)})}return y}}e.ValueScope=u})(k0)),k0}var o2;function ht(){return o2||(o2=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;const t=am(),n=r2();var r=am();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return r.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return r.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return r.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return r.Name}});var a=r2();Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return a.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return a.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return a.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return a.varKinds}}),e.operators={GT:new t._Code(">"),GTE:new t._Code(">="),LT:new t._Code("<"),LTE:new t._Code("<="),EQ:new t._Code("==="),NEQ:new t._Code("!=="),NOT:new t._Code("!"),OR:new t._Code("||"),AND:new t._Code("&&"),ADD:new t._Code("+")};class i{optimizeNodes(){return this}optimizeNames(L,$){return this}}class c extends i{constructor(L,$,Q){super(),this.varKind=L,this.name=$,this.rhs=Q}render({es5:L,_n:$}){const Q=L?n.varKinds.var:this.varKind,me=this.rhs===void 0?"":` = ${this.rhs}`;return`${Q} ${this.name}${me};`+$}optimizeNames(L,$){if(L[this.name.str])return this.rhs&&(this.rhs=J(this.rhs,L,$)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class u extends i{constructor(L,$,Q){super(),this.lhs=L,this.rhs=$,this.sideEffects=Q}render({_n:L}){return`${this.lhs} = ${this.rhs};`+L}optimizeNames(L,$){if(!(this.lhs instanceof t.Name&&!L[this.lhs.str]&&!this.sideEffects))return this.rhs=J(this.rhs,L,$),this}get names(){const L=this.lhs instanceof t.Name?{}:{...this.lhs.names};return U(L,this.rhs)}}class d extends u{constructor(L,$,Q,me){super(L,Q,me),this.op=$}render({_n:L}){return`${this.lhs} ${this.op}= ${this.rhs};`+L}}class f extends i{constructor(L){super(),this.label=L,this.names={}}render({_n:L}){return`${this.label}:`+L}}class m extends i{constructor(L){super(),this.label=L,this.names={}}render({_n:L}){return`break${this.label?` ${this.label}`:""};`+L}}class p extends i{constructor(L){super(),this.error=L}render({_n:L}){return`throw ${this.error};`+L}get names(){return this.error.names}}class g extends i{constructor(L){super(),this.code=L}render({_n:L}){return`${this.code};`+L}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(L,$){return this.code=J(this.code,L,$),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class y extends i{constructor(L=[]){super(),this.nodes=L}render(L){return this.nodes.reduce(($,Q)=>$+Q.render(L),"")}optimizeNodes(){const{nodes:L}=this;let $=L.length;for(;$--;){const Q=L[$].optimizeNodes();Array.isArray(Q)?L.splice($,1,...Q):Q?L[$]=Q:L.splice($,1)}return L.length>0?this:void 0}optimizeNames(L,$){const{nodes:Q}=this;let me=Q.length;for(;me--;){const _e=Q[me];_e.optimizeNames(L,$)||(ie(L,_e.names),Q.splice(me,1))}return Q.length>0?this:void 0}get names(){return this.nodes.reduce((L,$)=>G(L,$.names),{})}}class w extends y{render(L){return"{"+L._n+super.render(L)+"}"+L._n}}class S extends y{}class b extends w{}b.kind="else";class R extends w{constructor(L,$){super($),this.condition=L}render(L){let $=`if(${this.condition})`+super.render(L);return this.else&&($+="else "+this.else.render(L)),$}optimizeNodes(){super.optimizeNodes();const L=this.condition;if(L===!0)return this.nodes;let $=this.else;if($){const Q=$.optimizeNodes();$=this.else=Array.isArray(Q)?new b(Q):Q}if($)return L===!1?$ instanceof R?$:$.nodes:this.nodes.length?this:new R(F(L),$ instanceof R?[$]:$.nodes);if(!(L===!1||!this.nodes.length))return this}optimizeNames(L,$){var Q;if(this.else=(Q=this.else)===null||Q===void 0?void 0:Q.optimizeNames(L,$),!!(super.optimizeNames(L,$)||this.else))return this.condition=J(this.condition,L,$),this}get names(){const L=super.names;return U(L,this.condition),this.else&&G(L,this.else.names),L}}R.kind="if";class E extends w{}E.kind="for";class T extends E{constructor(L){super(),this.iteration=L}render(L){return`for(${this.iteration})`+super.render(L)}optimizeNames(L,$){if(super.optimizeNames(L,$))return this.iteration=J(this.iteration,L,$),this}get names(){return G(super.names,this.iteration.names)}}class O extends E{constructor(L,$,Q,me){super(),this.varKind=L,this.name=$,this.from=Q,this.to=me}render(L){const $=L.es5?n.varKinds.var:this.varKind,{name:Q,from:me,to:_e}=this;return`for(${$} ${Q}=${me}; ${Q}<${_e}; ${Q}++)`+super.render(L)}get names(){const L=U(super.names,this.from);return U(L,this.to)}}class C extends E{constructor(L,$,Q,me){super(),this.loop=L,this.varKind=$,this.name=Q,this.iterable=me}render(L){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(L)}optimizeNames(L,$){if(super.optimizeNames(L,$))return this.iterable=J(this.iterable,L,$),this}get names(){return G(super.names,this.iterable.names)}}class I extends w{constructor(L,$,Q){super(),this.name=L,this.args=$,this.async=Q}render(L){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(L)}}I.kind="func";class N extends y{render(L){return"return "+super.render(L)}}N.kind="return";class D extends w{render(L){let $="try"+super.render(L);return this.catch&&($+=this.catch.render(L)),this.finally&&($+=this.finally.render(L)),$}optimizeNodes(){var L,$;return super.optimizeNodes(),(L=this.catch)===null||L===void 0||L.optimizeNodes(),($=this.finally)===null||$===void 0||$.optimizeNodes(),this}optimizeNames(L,$){var Q,me;return super.optimizeNames(L,$),(Q=this.catch)===null||Q===void 0||Q.optimizeNames(L,$),(me=this.finally)===null||me===void 0||me.optimizeNames(L,$),this}get names(){const L=super.names;return this.catch&&G(L,this.catch.names),this.finally&&G(L,this.finally.names),L}}class z extends w{constructor(L){super(),this.error=L}render(L){return`catch(${this.error})`+super.render(L)}}z.kind="catch";class W extends w{render(L){return"finally"+super.render(L)}}W.kind="finally";class V{constructor(L,$={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...$,_n:$.lines?`
|
|
156
|
-
`:""},this._extScope=L,this._scope=new n.Scope({parent:L}),this._nodes=[new S]}toString(){return this._root.render(this.opts)}name(L){return this._scope.name(L)}scopeName(L){return this._extScope.name(L)}scopeValue(L,$){const Q=this._extScope.value(L,$);return(this._values[Q.prefix]||(this._values[Q.prefix]=new Set)).add(Q),Q}getScopeValue(L,$){return this._extScope.getValue(L,$)}scopeRefs(L){return this._extScope.scopeRefs(L,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(L,$,Q,me){const _e=this._scope.toName($);return Q!==void 0&&me&&(this._constants[_e.str]=Q),this._leafNode(new c(L,_e,Q)),_e}const(L,$,Q){return this._def(n.varKinds.const,L,$,Q)}let(L,$,Q){return this._def(n.varKinds.let,L,$,Q)}var(L,$,Q){return this._def(n.varKinds.var,L,$,Q)}assign(L,$,Q){return this._leafNode(new u(L,$,Q))}add(L,$){return this._leafNode(new d(L,e.operators.ADD,$))}code(L){return typeof L=="function"?L():L!==t.nil&&this._leafNode(new g(L)),this}object(...L){const $=["{"];for(const[Q,me]of L)$.length>1&&$.push(","),$.push(Q),(Q!==me||this.opts.es5)&&($.push(":"),(0,t.addCodeArg)($,me));return $.push("}"),new t._Code($)}if(L,$,Q){if(this._blockNode(new R(L)),$&&Q)this.code($).else().code(Q).endIf();else if($)this.code($).endIf();else if(Q)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(L){return this._elseNode(new R(L))}else(){return this._elseNode(new b)}endIf(){return this._endBlockNode(R,b)}_for(L,$){return this._blockNode(L),$&&this.code($).endFor(),this}for(L,$){return this._for(new T(L),$)}forRange(L,$,Q,me,_e=this.opts.es5?n.varKinds.var:n.varKinds.let){const Ae=this._scope.toName(L);return this._for(new O(_e,Ae,$,Q),()=>me(Ae))}forOf(L,$,Q,me=n.varKinds.const){const _e=this._scope.toName(L);if(this.opts.es5){const Ae=$ instanceof t.Name?$:this.var("_arr",$);return this.forRange("_i",0,(0,t._)`${Ae}.length`,ke=>{this.var(_e,(0,t._)`${Ae}[${ke}]`),Q(_e)})}return this._for(new C("of",me,_e,$),()=>Q(_e))}forIn(L,$,Q,me=this.opts.es5?n.varKinds.var:n.varKinds.const){if(this.opts.ownProperties)return this.forOf(L,(0,t._)`Object.keys(${$})`,Q);const _e=this._scope.toName(L);return this._for(new C("in",me,_e,$),()=>Q(_e))}endFor(){return this._endBlockNode(E)}label(L){return this._leafNode(new f(L))}break(L){return this._leafNode(new m(L))}return(L){const $=new N;if(this._blockNode($),this.code(L),$.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(N)}try(L,$,Q){if(!$&&!Q)throw new Error('CodeGen: "try" without "catch" and "finally"');const me=new D;if(this._blockNode(me),this.code(L),$){const _e=this.name("e");this._currNode=me.catch=new z(_e),$(_e)}return Q&&(this._currNode=me.finally=new W,this.code(Q)),this._endBlockNode(z,W)}throw(L){return this._leafNode(new p(L))}block(L,$){return this._blockStarts.push(this._nodes.length),L&&this.code(L).endBlock($),this}endBlock(L){const $=this._blockStarts.pop();if($===void 0)throw new Error("CodeGen: not in self-balancing block");const Q=this._nodes.length-$;if(Q<0||L!==void 0&&Q!==L)throw new Error(`CodeGen: wrong number of nodes: ${Q} vs ${L} expected`);return this._nodes.length=$,this}func(L,$=t.nil,Q,me){return this._blockNode(new I(L,$,Q)),me&&this.code(me).endFunc(),this}endFunc(){return this._endBlockNode(I)}optimize(L=1){for(;L-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(L){return this._currNode.nodes.push(L),this}_blockNode(L){this._currNode.nodes.push(L),this._nodes.push(L)}_endBlockNode(L,$){const Q=this._currNode;if(Q instanceof L||$&&Q instanceof $)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${$?`${L.kind}/${$.kind}`:L.kind}"`)}_elseNode(L){const $=this._currNode;if(!($ instanceof R))throw new Error('CodeGen: "else" without "if"');return this._currNode=$.else=L,this}get _root(){return this._nodes[0]}get _currNode(){const L=this._nodes;return L[L.length-1]}set _currNode(L){const $=this._nodes;$[$.length-1]=L}}e.CodeGen=V;function G(B,L){for(const $ in L)B[$]=(B[$]||0)+(L[$]||0);return B}function U(B,L){return L instanceof t._CodeOrName?G(B,L.names):B}function J(B,L,$){if(B instanceof t.Name)return Q(B);if(!me(B))return B;return new t._Code(B._items.reduce((_e,Ae)=>(Ae instanceof t.Name&&(Ae=Q(Ae)),Ae instanceof t._Code?_e.push(...Ae._items):_e.push(Ae),_e),[]));function Q(_e){const Ae=$[_e.str];return Ae===void 0||L[_e.str]!==1?_e:(delete L[_e.str],Ae)}function me(_e){return _e instanceof t._Code&&_e._items.some(Ae=>Ae instanceof t.Name&&L[Ae.str]===1&&$[Ae.str]!==void 0)}}function ie(B,L){for(const $ in L)B[$]=(B[$]||0)-(L[$]||0)}function F(B){return typeof B=="boolean"||typeof B=="number"||B===null?!B:(0,t._)`!${q(B)}`}e.not=F;const X=P(e.operators.AND);function ae(...B){return B.reduce(X)}e.and=ae;const fe=P(e.operators.OR);function K(...B){return B.reduce(fe)}e.or=K;function P(B){return(L,$)=>L===t.nil?$:$===t.nil?L:(0,t._)`${q(L)} ${B} ${q($)}`}function q(B){return B instanceof t.Name?B:(0,t._)`(${B})`}})(A0)),A0}var ut={},a2;function Tt(){if(a2)return ut;a2=1,Object.defineProperty(ut,"__esModule",{value:!0}),ut.checkStrictMode=ut.getErrorPath=ut.Type=ut.useFunc=ut.setEvaluated=ut.evaluatedPropsToName=ut.mergeEvaluated=ut.eachItem=ut.unescapeJsonPointer=ut.escapeJsonPointer=ut.escapeFragment=ut.unescapeFragment=ut.schemaRefOrVal=ut.schemaHasRulesButRef=ut.schemaHasRules=ut.checkUnknownRules=ut.alwaysValidSchema=ut.toHash=void 0;const e=ht(),t=am();function n(C){const I={};for(const N of C)I[N]=!0;return I}ut.toHash=n;function r(C,I){return typeof I=="boolean"?I:Object.keys(I).length===0?!0:(a(C,I),!i(I,C.self.RULES.all))}ut.alwaysValidSchema=r;function a(C,I=C.schema){const{opts:N,self:D}=C;if(!N.strictSchema||typeof I=="boolean")return;const z=D.RULES.keywords;for(const W in I)z[W]||O(C,`unknown keyword: "${W}"`)}ut.checkUnknownRules=a;function i(C,I){if(typeof C=="boolean")return!C;for(const N in C)if(I[N])return!0;return!1}ut.schemaHasRules=i;function c(C,I){if(typeof C=="boolean")return!C;for(const N in C)if(N!=="$ref"&&I.all[N])return!0;return!1}ut.schemaHasRulesButRef=c;function u({topSchemaRef:C,schemaPath:I},N,D,z){if(!z){if(typeof N=="number"||typeof N=="boolean")return N;if(typeof N=="string")return(0,e._)`${N}`}return(0,e._)`${C}${I}${(0,e.getProperty)(D)}`}ut.schemaRefOrVal=u;function d(C){return p(decodeURIComponent(C))}ut.unescapeFragment=d;function f(C){return encodeURIComponent(m(C))}ut.escapeFragment=f;function m(C){return typeof C=="number"?`${C}`:C.replace(/~/g,"~0").replace(/\//g,"~1")}ut.escapeJsonPointer=m;function p(C){return C.replace(/~1/g,"/").replace(/~0/g,"~")}ut.unescapeJsonPointer=p;function g(C,I){if(Array.isArray(C))for(const N of C)I(N);else I(C)}ut.eachItem=g;function y({mergeNames:C,mergeToName:I,mergeValues:N,resultToName:D}){return(z,W,V,G)=>{const U=V===void 0?W:V instanceof e.Name?(W instanceof e.Name?C(z,W,V):I(z,W,V),V):W instanceof e.Name?(I(z,V,W),W):N(W,V);return G===e.Name&&!(U instanceof e.Name)?D(z,U):U}}ut.mergeEvaluated={props:y({mergeNames:(C,I,N)=>C.if((0,e._)`${N} !== true && ${I} !== undefined`,()=>{C.if((0,e._)`${I} === true`,()=>C.assign(N,!0),()=>C.assign(N,(0,e._)`${N} || {}`).code((0,e._)`Object.assign(${N}, ${I})`))}),mergeToName:(C,I,N)=>C.if((0,e._)`${N} !== true`,()=>{I===!0?C.assign(N,!0):(C.assign(N,(0,e._)`${N} || {}`),S(C,N,I))}),mergeValues:(C,I)=>C===!0?!0:{...C,...I},resultToName:w}),items:y({mergeNames:(C,I,N)=>C.if((0,e._)`${N} !== true && ${I} !== undefined`,()=>C.assign(N,(0,e._)`${I} === true ? true : ${N} > ${I} ? ${N} : ${I}`)),mergeToName:(C,I,N)=>C.if((0,e._)`${N} !== true`,()=>C.assign(N,I===!0?!0:(0,e._)`${N} > ${I} ? ${N} : ${I}`)),mergeValues:(C,I)=>C===!0?!0:Math.max(C,I),resultToName:(C,I)=>C.var("items",I)})};function w(C,I){if(I===!0)return C.var("props",!0);const N=C.var("props",(0,e._)`{}`);return I!==void 0&&S(C,N,I),N}ut.evaluatedPropsToName=w;function S(C,I,N){Object.keys(N).forEach(D=>C.assign((0,e._)`${I}${(0,e.getProperty)(D)}`,!0))}ut.setEvaluated=S;const b={};function R(C,I){return C.scopeValue("func",{ref:I,code:b[I.code]||(b[I.code]=new t._Code(I.code))})}ut.useFunc=R;var E;(function(C){C[C.Num=0]="Num",C[C.Str=1]="Str"})(E||(ut.Type=E={}));function T(C,I,N){if(C instanceof e.Name){const D=I===E.Num;return N?D?(0,e._)`"[" + ${C} + "]"`:(0,e._)`"['" + ${C} + "']"`:D?(0,e._)`"/" + ${C}`:(0,e._)`"/" + ${C}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return N?(0,e.getProperty)(C).toString():"/"+m(C)}ut.getErrorPath=T;function O(C,I,N=C.opts.strictSchema){if(N){if(I=`strict mode: ${I}`,N===!0)throw new Error(I);C.self.logger.warn(I)}}return ut.checkStrictMode=O,ut}var Rh={},s2;function Hs(){if(s2)return Rh;s2=1,Object.defineProperty(Rh,"__esModule",{value:!0});const e=ht(),t={data:new e.Name("data"),valCxt:new e.Name("valCxt"),instancePath:new e.Name("instancePath"),parentData:new e.Name("parentData"),parentDataProperty:new e.Name("parentDataProperty"),rootData:new e.Name("rootData"),dynamicAnchors:new e.Name("dynamicAnchors"),vErrors:new e.Name("vErrors"),errors:new e.Name("errors"),this:new e.Name("this"),self:new e.Name("self"),scope:new e.Name("scope"),json:new e.Name("json"),jsonPos:new e.Name("jsonPos"),jsonLen:new e.Name("jsonLen"),jsonPart:new e.Name("jsonPart")};return Rh.default=t,Rh}var i2;function eg(){return i2||(i2=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;const t=ht(),n=Tt(),r=Hs();e.keywordError={message:({keyword:b})=>(0,t.str)`must pass "${b}" keyword validation`},e.keyword$DataError={message:({keyword:b,schemaType:R})=>R?(0,t.str)`"${b}" keyword must be ${R} ($data)`:(0,t.str)`"${b}" keyword is invalid ($data)`};function a(b,R=e.keywordError,E,T){const{it:O}=b,{gen:C,compositeRule:I,allErrors:N}=O,D=p(b,R,E);T??(I||N)?d(C,D):f(O,(0,t._)`[${D}]`)}e.reportError=a;function i(b,R=e.keywordError,E){const{it:T}=b,{gen:O,compositeRule:C,allErrors:I}=T,N=p(b,R,E);d(O,N),C||I||f(T,r.default.vErrors)}e.reportExtraError=i;function c(b,R){b.assign(r.default.errors,R),b.if((0,t._)`${r.default.vErrors} !== null`,()=>b.if(R,()=>b.assign((0,t._)`${r.default.vErrors}.length`,R),()=>b.assign(r.default.vErrors,null)))}e.resetErrorsCount=c;function u({gen:b,keyword:R,schemaValue:E,data:T,errsCount:O,it:C}){if(O===void 0)throw new Error("ajv implementation error");const I=b.name("err");b.forRange("i",O,r.default.errors,N=>{b.const(I,(0,t._)`${r.default.vErrors}[${N}]`),b.if((0,t._)`${I}.instancePath === undefined`,()=>b.assign((0,t._)`${I}.instancePath`,(0,t.strConcat)(r.default.instancePath,C.errorPath))),b.assign((0,t._)`${I}.schemaPath`,(0,t.str)`${C.errSchemaPath}/${R}`),C.opts.verbose&&(b.assign((0,t._)`${I}.schema`,E),b.assign((0,t._)`${I}.data`,T))})}e.extendErrors=u;function d(b,R){const E=b.const("err",R);b.if((0,t._)`${r.default.vErrors} === null`,()=>b.assign(r.default.vErrors,(0,t._)`[${E}]`),(0,t._)`${r.default.vErrors}.push(${E})`),b.code((0,t._)`${r.default.errors}++`)}function f(b,R){const{gen:E,validateName:T,schemaEnv:O}=b;O.$async?E.throw((0,t._)`new ${b.ValidationError}(${R})`):(E.assign((0,t._)`${T}.errors`,R),E.return(!1))}const m={keyword:new t.Name("keyword"),schemaPath:new t.Name("schemaPath"),params:new t.Name("params"),propertyName:new t.Name("propertyName"),message:new t.Name("message"),schema:new t.Name("schema"),parentSchema:new t.Name("parentSchema")};function p(b,R,E){const{createErrors:T}=b.it;return T===!1?(0,t._)`{}`:g(b,R,E)}function g(b,R,E={}){const{gen:T,it:O}=b,C=[y(O,E),w(b,E)];return S(b,R,C),T.object(...C)}function y({errorPath:b},{instancePath:R}){const E=R?(0,t.str)`${b}${(0,n.getErrorPath)(R,n.Type.Str)}`:b;return[r.default.instancePath,(0,t.strConcat)(r.default.instancePath,E)]}function w({keyword:b,it:{errSchemaPath:R}},{schemaPath:E,parentSchema:T}){let O=T?R:(0,t.str)`${R}/${b}`;return E&&(O=(0,t.str)`${O}${(0,n.getErrorPath)(E,n.Type.Str)}`),[m.schemaPath,O]}function S(b,{params:R,message:E},T){const{keyword:O,data:C,schemaValue:I,it:N}=b,{opts:D,propertyName:z,topSchemaRef:W,schemaPath:V}=N;T.push([m.keyword,O],[m.params,typeof R=="function"?R(b):R||(0,t._)`{}`]),D.messages&&T.push([m.message,typeof E=="function"?E(b):E]),D.verbose&&T.push([m.schema,I],[m.parentSchema,(0,t._)`${W}${V}`],[r.default.data,C]),z&&T.push([m.propertyName,z])}})(C0)),C0}var c2;function gX(){if(c2)return vi;c2=1,Object.defineProperty(vi,"__esModule",{value:!0}),vi.boolOrEmptySchema=vi.topBoolOrEmptySchema=void 0;const e=eg(),t=ht(),n=Hs(),r={message:"boolean schema is false"};function a(u){const{gen:d,schema:f,validateName:m}=u;f===!1?c(u,!1):typeof f=="object"&&f.$async===!0?d.return(n.default.data):(d.assign((0,t._)`${m}.errors`,null),d.return(!0))}vi.topBoolOrEmptySchema=a;function i(u,d){const{gen:f,schema:m}=u;m===!1?(f.var(d,!1),c(u)):f.var(d,!0)}vi.boolOrEmptySchema=i;function c(u,d){const{gen:f,data:m}=u,p={gen:f,keyword:"false schema",data:m,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:u};(0,e.reportError)(p,r,void 0,d)}return vi}var Gn={},yi={},l2;function YM(){if(l2)return yi;l2=1,Object.defineProperty(yi,"__esModule",{value:!0}),yi.getRules=yi.isJSONType=void 0;const e=["string","number","integer","boolean","null","object","array"],t=new Set(e);function n(a){return typeof a=="string"&&t.has(a)}yi.isJSONType=n;function r(){const a={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...a,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},a.number,a.string,a.array,a.object],post:{rules:[]},all:{},keywords:{}}}return yi.getRules=r,yi}var Aa={},u2;function QM(){if(u2)return Aa;u2=1,Object.defineProperty(Aa,"__esModule",{value:!0}),Aa.shouldUseRule=Aa.shouldUseGroup=Aa.schemaHasRulesForType=void 0;function e({schema:r,self:a},i){const c=a.RULES.types[i];return c&&c!==!0&&t(r,c)}Aa.schemaHasRulesForType=e;function t(r,a){return a.rules.some(i=>n(r,i))}Aa.shouldUseGroup=t;function n(r,a){var i;return r[a.keyword]!==void 0||((i=a.definition.implements)===null||i===void 0?void 0:i.some(c=>r[c]!==void 0))}return Aa.shouldUseRule=n,Aa}var d2;function sm(){if(d2)return Gn;d2=1,Object.defineProperty(Gn,"__esModule",{value:!0}),Gn.reportTypeError=Gn.checkDataTypes=Gn.checkDataType=Gn.coerceAndCheckDataType=Gn.getJSONTypes=Gn.getSchemaTypes=Gn.DataType=void 0;const e=YM(),t=QM(),n=eg(),r=ht(),a=Tt();var i;(function(E){E[E.Correct=0]="Correct",E[E.Wrong=1]="Wrong"})(i||(Gn.DataType=i={}));function c(E){const T=u(E.type);if(T.includes("null")){if(E.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!T.length&&E.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');E.nullable===!0&&T.push("null")}return T}Gn.getSchemaTypes=c;function u(E){const T=Array.isArray(E)?E:E?[E]:[];if(T.every(e.isJSONType))return T;throw new Error("type must be JSONType or JSONType[]: "+T.join(","))}Gn.getJSONTypes=u;function d(E,T){const{gen:O,data:C,opts:I}=E,N=m(T,I.coerceTypes),D=T.length>0&&!(N.length===0&&T.length===1&&(0,t.schemaHasRulesForType)(E,T[0]));if(D){const z=w(T,C,I.strictNumbers,i.Wrong);O.if(z,()=>{N.length?p(E,T,N):b(E)})}return D}Gn.coerceAndCheckDataType=d;const f=new Set(["string","number","integer","boolean","null"]);function m(E,T){return T?E.filter(O=>f.has(O)||T==="array"&&O==="array"):[]}function p(E,T,O){const{gen:C,data:I,opts:N}=E,D=C.let("dataType",(0,r._)`typeof ${I}`),z=C.let("coerced",(0,r._)`undefined`);N.coerceTypes==="array"&&C.if((0,r._)`${D} == 'object' && Array.isArray(${I}) && ${I}.length == 1`,()=>C.assign(I,(0,r._)`${I}[0]`).assign(D,(0,r._)`typeof ${I}`).if(w(T,I,N.strictNumbers),()=>C.assign(z,I))),C.if((0,r._)`${z} !== undefined`);for(const V of O)(f.has(V)||V==="array"&&N.coerceTypes==="array")&&W(V);C.else(),b(E),C.endIf(),C.if((0,r._)`${z} !== undefined`,()=>{C.assign(I,z),g(E,z)});function W(V){switch(V){case"string":C.elseIf((0,r._)`${D} == "number" || ${D} == "boolean"`).assign(z,(0,r._)`"" + ${I}`).elseIf((0,r._)`${I} === null`).assign(z,(0,r._)`""`);return;case"number":C.elseIf((0,r._)`${D} == "boolean" || ${I} === null
|
|
157
|
-
|| (${D} == "string" && ${I} && ${I} == +${I})`).assign(z,(0,r._)`+${I}`);return;case"integer":C.elseIf((0,r._)`${D} === "boolean" || ${I} === null
|
|
158
|
-
|| (${D} === "string" && ${I} && ${I} == +${I} && !(${I} % 1))`).assign(z,(0,r._)`+${I}`);return;case"boolean":C.elseIf((0,r._)`${I} === "false" || ${I} === 0 || ${I} === null`).assign(z,!1).elseIf((0,r._)`${I} === "true" || ${I} === 1`).assign(z,!0);return;case"null":C.elseIf((0,r._)`${I} === "" || ${I} === 0 || ${I} === false`),C.assign(z,null);return;case"array":C.elseIf((0,r._)`${D} === "string" || ${D} === "number"
|
|
159
|
-
|| ${D} === "boolean" || ${I} === null`).assign(z,(0,r._)`[${I}]`)}}}function g({gen:E,parentData:T,parentDataProperty:O},C){E.if((0,r._)`${T} !== undefined`,()=>E.assign((0,r._)`${T}[${O}]`,C))}function y(E,T,O,C=i.Correct){const I=C===i.Correct?r.operators.EQ:r.operators.NEQ;let N;switch(E){case"null":return(0,r._)`${T} ${I} null`;case"array":N=(0,r._)`Array.isArray(${T})`;break;case"object":N=(0,r._)`${T} && typeof ${T} == "object" && !Array.isArray(${T})`;break;case"integer":N=D((0,r._)`!(${T} % 1) && !isNaN(${T})`);break;case"number":N=D();break;default:return(0,r._)`typeof ${T} ${I} ${E}`}return C===i.Correct?N:(0,r.not)(N);function D(z=r.nil){return(0,r.and)((0,r._)`typeof ${T} == "number"`,z,O?(0,r._)`isFinite(${T})`:r.nil)}}Gn.checkDataType=y;function w(E,T,O,C){if(E.length===1)return y(E[0],T,O,C);let I;const N=(0,a.toHash)(E);if(N.array&&N.object){const D=(0,r._)`typeof ${T} != "object"`;I=N.null?D:(0,r._)`!${T} || ${D}`,delete N.null,delete N.array,delete N.object}else I=r.nil;N.number&&delete N.integer;for(const D in N)I=(0,r.and)(I,y(D,T,O,C));return I}Gn.checkDataTypes=w;const S={message:({schema:E})=>`must be ${E}`,params:({schema:E,schemaValue:T})=>typeof E=="string"?(0,r._)`{type: ${E}}`:(0,r._)`{type: ${T}}`};function b(E){const T=R(E);(0,n.reportError)(T,S)}Gn.reportTypeError=b;function R(E){const{gen:T,data:O,schema:C}=E,I=(0,a.schemaRefOrVal)(E,C,"type");return{gen:T,keyword:"type",data:O,schema:C.type,schemaCode:I,schemaValue:I,parentSchema:C,params:{},it:E}}return Gn}var Ou={},f2;function vX(){if(f2)return Ou;f2=1,Object.defineProperty(Ou,"__esModule",{value:!0}),Ou.assignDefaults=void 0;const e=ht(),t=Tt();function n(a,i){const{properties:c,items:u}=a.schema;if(i==="object"&&c)for(const d in c)r(a,d,c[d].default);else i==="array"&&Array.isArray(u)&&u.forEach((d,f)=>r(a,f,d.default))}Ou.assignDefaults=n;function r(a,i,c){const{gen:u,compositeRule:d,data:f,opts:m}=a;if(c===void 0)return;const p=(0,e._)`${f}${(0,e.getProperty)(i)}`;if(d){(0,t.checkStrictMode)(a,`default is ignored for: ${p}`);return}let g=(0,e._)`${p} === undefined`;m.useDefaults==="empty"&&(g=(0,e._)`${g} || ${p} === null || ${p} === ""`),u.if(g,(0,e._)`${p} = ${(0,e.stringify)(c)}`)}return Ou}var Oo={},jt={},h2;function Vo(){if(h2)return jt;h2=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=ht(),t=Tt(),n=Hs(),r=Tt();function a(E,T){const{gen:O,data:C,it:I}=E;O.if(m(O,C,T,I.opts.ownProperties),()=>{E.setParams({missingProperty:(0,e._)`${T}`},!0),E.error()})}jt.checkReportMissingProp=a;function i({gen:E,data:T,it:{opts:O}},C,I){return(0,e.or)(...C.map(N=>(0,e.and)(m(E,T,N,O.ownProperties),(0,e._)`${I} = ${N}`)))}jt.checkMissingProp=i;function c(E,T){E.setParams({missingProperty:T},!0),E.error()}jt.reportMissingProp=c;function u(E){return E.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,e._)`Object.prototype.hasOwnProperty`})}jt.hasPropFunc=u;function d(E,T,O){return(0,e._)`${u(E)}.call(${T}, ${O})`}jt.isOwnProperty=d;function f(E,T,O,C){const I=(0,e._)`${T}${(0,e.getProperty)(O)} !== undefined`;return C?(0,e._)`${I} && ${d(E,T,O)}`:I}jt.propertyInData=f;function m(E,T,O,C){const I=(0,e._)`${T}${(0,e.getProperty)(O)} === undefined`;return C?(0,e.or)(I,(0,e.not)(d(E,T,O))):I}jt.noPropertyInData=m;function p(E){return E?Object.keys(E).filter(T=>T!=="__proto__"):[]}jt.allSchemaProperties=p;function g(E,T){return p(T).filter(O=>!(0,t.alwaysValidSchema)(E,T[O]))}jt.schemaProperties=g;function y({schemaCode:E,data:T,it:{gen:O,topSchemaRef:C,schemaPath:I,errorPath:N},it:D},z,W,V){const G=V?(0,e._)`${E}, ${T}, ${C}${I}`:T,U=[[n.default.instancePath,(0,e.strConcat)(n.default.instancePath,N)],[n.default.parentData,D.parentData],[n.default.parentDataProperty,D.parentDataProperty],[n.default.rootData,n.default.rootData]];D.opts.dynamicRef&&U.push([n.default.dynamicAnchors,n.default.dynamicAnchors]);const J=(0,e._)`${G}, ${O.object(...U)}`;return W!==e.nil?(0,e._)`${z}.call(${W}, ${J})`:(0,e._)`${z}(${J})`}jt.callValidateCode=y;const w=(0,e._)`new RegExp`;function S({gen:E,it:{opts:T}},O){const C=T.unicodeRegExp?"u":"",{regExp:I}=T.code,N=I(O,C);return E.scopeValue("pattern",{key:N.toString(),ref:N,code:(0,e._)`${I.code==="new RegExp"?w:(0,r.useFunc)(E,I)}(${O}, ${C})`})}jt.usePattern=S;function b(E){const{gen:T,data:O,keyword:C,it:I}=E,N=T.name("valid");if(I.allErrors){const z=T.let("valid",!0);return D(()=>T.assign(z,!1)),z}return T.var(N,!0),D(()=>T.break()),N;function D(z){const W=T.const("len",(0,e._)`${O}.length`);T.forRange("i",0,W,V=>{E.subschema({keyword:C,dataProp:V,dataPropType:t.Type.Num},N),T.if((0,e.not)(N),z)})}}jt.validateArray=b;function R(E){const{gen:T,schema:O,keyword:C,it:I}=E;if(!Array.isArray(O))throw new Error("ajv implementation error");if(O.some(W=>(0,t.alwaysValidSchema)(I,W))&&!I.opts.unevaluated)return;const D=T.let("valid",!1),z=T.name("_valid");T.block(()=>O.forEach((W,V)=>{const G=E.subschema({keyword:C,schemaProp:V,compositeRule:!0},z);T.assign(D,(0,e._)`${D} || ${z}`),E.mergeValidEvaluated(G,z)||T.if((0,e.not)(D))})),E.result(D,()=>E.reset(),()=>E.error(!0))}return jt.validateUnion=R,jt}var p2;function yX(){if(p2)return Oo;p2=1,Object.defineProperty(Oo,"__esModule",{value:!0}),Oo.validateKeywordUsage=Oo.validSchemaType=Oo.funcKeywordCode=Oo.macroKeywordCode=void 0;const e=ht(),t=Hs(),n=Vo(),r=eg();function a(g,y){const{gen:w,keyword:S,schema:b,parentSchema:R,it:E}=g,T=y.macro.call(E.self,b,R,E),O=f(w,S,T);E.opts.validateSchema!==!1&&E.self.validateSchema(T,!0);const C=w.name("valid");g.subschema({schema:T,schemaPath:e.nil,errSchemaPath:`${E.errSchemaPath}/${S}`,topSchemaRef:O,compositeRule:!0},C),g.pass(C,()=>g.error(!0))}Oo.macroKeywordCode=a;function i(g,y){var w;const{gen:S,keyword:b,schema:R,parentSchema:E,$data:T,it:O}=g;d(O,y);const C=!T&&y.compile?y.compile.call(O.self,R,E,O):y.validate,I=f(S,b,C),N=S.let("valid");g.block$data(N,D),g.ok((w=y.valid)!==null&&w!==void 0?w:N);function D(){if(y.errors===!1)V(),y.modifying&&c(g),G(()=>g.error());else{const U=y.async?z():W();y.modifying&&c(g),G(()=>u(g,U))}}function z(){const U=S.let("ruleErrs",null);return S.try(()=>V((0,e._)`await `),J=>S.assign(N,!1).if((0,e._)`${J} instanceof ${O.ValidationError}`,()=>S.assign(U,(0,e._)`${J}.errors`),()=>S.throw(J))),U}function W(){const U=(0,e._)`${I}.errors`;return S.assign(U,null),V(e.nil),U}function V(U=y.async?(0,e._)`await `:e.nil){const J=O.opts.passContext?t.default.this:t.default.self,ie=!("compile"in y&&!T||y.schema===!1);S.assign(N,(0,e._)`${U}${(0,n.callValidateCode)(g,I,J,ie)}`,y.modifying)}function G(U){var J;S.if((0,e.not)((J=y.valid)!==null&&J!==void 0?J:N),U)}}Oo.funcKeywordCode=i;function c(g){const{gen:y,data:w,it:S}=g;y.if(S.parentData,()=>y.assign(w,(0,e._)`${S.parentData}[${S.parentDataProperty}]`))}function u(g,y){const{gen:w}=g;w.if((0,e._)`Array.isArray(${y})`,()=>{w.assign(t.default.vErrors,(0,e._)`${t.default.vErrors} === null ? ${y} : ${t.default.vErrors}.concat(${y})`).assign(t.default.errors,(0,e._)`${t.default.vErrors}.length`),(0,r.extendErrors)(g)},()=>g.error())}function d({schemaEnv:g},y){if(y.async&&!g.$async)throw new Error("async keyword in sync schema")}function f(g,y,w){if(w===void 0)throw new Error(`keyword "${y}" failed to compile`);return g.scopeValue("keyword",typeof w=="function"?{ref:w}:{ref:w,code:(0,e.stringify)(w)})}function m(g,y,w=!1){return!y.length||y.some(S=>S==="array"?Array.isArray(g):S==="object"?g&&typeof g=="object"&&!Array.isArray(g):typeof g==S||w&&typeof g>"u")}Oo.validSchemaType=m;function p({schema:g,opts:y,self:w,errSchemaPath:S},b,R){if(Array.isArray(b.keyword)?!b.keyword.includes(R):b.keyword!==R)throw new Error("ajv implementation error");const E=b.dependencies;if(E?.some(T=>!Object.prototype.hasOwnProperty.call(g,T)))throw new Error(`parent schema must have dependencies of ${R}: ${E.join(",")}`);if(b.validateSchema&&!b.validateSchema(g[R])){const O=`keyword "${R}" value is invalid at path "${S}": `+w.errorsText(b.validateSchema.errors);if(y.validateSchema==="log")w.logger.error(O);else throw new Error(O)}}return Oo.validateKeywordUsage=p,Oo}var Ia={},m2;function _X(){if(m2)return Ia;m2=1,Object.defineProperty(Ia,"__esModule",{value:!0}),Ia.extendSubschemaMode=Ia.extendSubschemaData=Ia.getSubschema=void 0;const e=ht(),t=Tt();function n(i,{keyword:c,schemaProp:u,schema:d,schemaPath:f,errSchemaPath:m,topSchemaRef:p}){if(c!==void 0&&d!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(c!==void 0){const g=i.schema[c];return u===void 0?{schema:g,schemaPath:(0,e._)`${i.schemaPath}${(0,e.getProperty)(c)}`,errSchemaPath:`${i.errSchemaPath}/${c}`}:{schema:g[u],schemaPath:(0,e._)`${i.schemaPath}${(0,e.getProperty)(c)}${(0,e.getProperty)(u)}`,errSchemaPath:`${i.errSchemaPath}/${c}/${(0,t.escapeFragment)(u)}`}}if(d!==void 0){if(f===void 0||m===void 0||p===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:d,schemaPath:f,topSchemaRef:p,errSchemaPath:m}}throw new Error('either "keyword" or "schema" must be passed')}Ia.getSubschema=n;function r(i,c,{dataProp:u,dataPropType:d,data:f,dataTypes:m,propertyName:p}){if(f!==void 0&&u!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:g}=c;if(u!==void 0){const{errorPath:w,dataPathArr:S,opts:b}=c,R=g.let("data",(0,e._)`${c.data}${(0,e.getProperty)(u)}`,!0);y(R),i.errorPath=(0,e.str)`${w}${(0,t.getErrorPath)(u,d,b.jsPropertySyntax)}`,i.parentDataProperty=(0,e._)`${u}`,i.dataPathArr=[...S,i.parentDataProperty]}if(f!==void 0){const w=f instanceof e.Name?f:g.let("data",f,!0);y(w),p!==void 0&&(i.propertyName=p)}m&&(i.dataTypes=m);function y(w){i.data=w,i.dataLevel=c.dataLevel+1,i.dataTypes=[],c.definedProperties=new Set,i.parentData=c.data,i.dataNames=[...c.dataNames,w]}}Ia.extendSubschemaData=r;function a(i,{jtdDiscriminator:c,jtdMetadata:u,compositeRule:d,createErrors:f,allErrors:m}){d!==void 0&&(i.compositeRule=d),f!==void 0&&(i.createErrors=f),m!==void 0&&(i.allErrors=m),i.jtdDiscriminator=c,i.jtdMetadata=u}return Ia.extendSubschemaMode=a,Ia}var cr={},N0,g2;function XM(){return g2||(g2=1,N0=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var r,a,i;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(a=r;a--!==0;)if(!e(t[a],n[a]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(i=Object.keys(t),r=i.length,r!==Object.keys(n).length)return!1;for(a=r;a--!==0;)if(!Object.prototype.hasOwnProperty.call(n,i[a]))return!1;for(a=r;a--!==0;){var c=i[a];if(!e(t[c],n[c]))return!1}return!0}return t!==t&&n!==n}),N0}var M0={exports:{}},v2;function bX(){if(v2)return M0.exports;v2=1;var e=M0.exports=function(r,a,i){typeof a=="function"&&(i=a,a={}),i=a.cb||i;var c=typeof i=="function"?i:i.pre||function(){},u=i.post||function(){};t(a,c,u,r,"",r)};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(r,a,i,c,u,d,f,m,p,g){if(c&&typeof c=="object"&&!Array.isArray(c)){a(c,u,d,f,m,p,g);for(var y in c){var w=c[y];if(Array.isArray(w)){if(y in e.arrayKeywords)for(var S=0;S<w.length;S++)t(r,a,i,w[S],u+"/"+y+"/"+S,d,u,y,c,S)}else if(y in e.propsKeywords){if(w&&typeof w=="object")for(var b in w)t(r,a,i,w[b],u+"/"+y+"/"+n(b),d,u,y,c,b)}else(y in e.keywords||r.allKeys&&!(y in e.skipKeywords))&&t(r,a,i,w,u+"/"+y,d,u,y,c)}i(c,u,d,f,m,p,g)}}function n(r){return r.replace(/~/g,"~0").replace(/\//g,"~1")}return M0.exports}var y2;function tg(){if(y2)return cr;y2=1,Object.defineProperty(cr,"__esModule",{value:!0}),cr.getSchemaRefs=cr.resolveUrl=cr.normalizeId=cr._getFullPath=cr.getFullPath=cr.inlineRef=void 0;const e=Tt(),t=XM(),n=bX(),r=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function a(S,b=!0){return typeof S=="boolean"?!0:b===!0?!c(S):b?u(S)<=b:!1}cr.inlineRef=a;const i=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function c(S){for(const b in S){if(i.has(b))return!0;const R=S[b];if(Array.isArray(R)&&R.some(c)||typeof R=="object"&&c(R))return!0}return!1}function u(S){let b=0;for(const R in S){if(R==="$ref")return 1/0;if(b++,!r.has(R)&&(typeof S[R]=="object"&&(0,e.eachItem)(S[R],E=>b+=u(E)),b===1/0))return 1/0}return b}function d(S,b="",R){R!==!1&&(b=p(b));const E=S.parse(b);return f(S,E)}cr.getFullPath=d;function f(S,b){return S.serialize(b).split("#")[0]+"#"}cr._getFullPath=f;const m=/#\/?$/;function p(S){return S?S.replace(m,""):""}cr.normalizeId=p;function g(S,b,R){return R=p(R),S.resolve(b,R)}cr.resolveUrl=g;const y=/^[a-z_][-a-z0-9._]*$/i;function w(S,b){if(typeof S=="boolean")return{};const{schemaId:R,uriResolver:E}=this.opts,T=p(S[R]||b),O={"":T},C=d(E,T,!1),I={},N=new Set;return n(S,{allKeys:!0},(W,V,G,U)=>{if(U===void 0)return;const J=C+V;let ie=O[U];typeof W[R]=="string"&&(ie=F.call(this,W[R])),X.call(this,W.$anchor),X.call(this,W.$dynamicAnchor),O[V]=ie;function F(ae){const fe=this.opts.uriResolver.resolve;if(ae=p(ie?fe(ie,ae):ae),N.has(ae))throw z(ae);N.add(ae);let K=this.refs[ae];return typeof K=="string"&&(K=this.refs[K]),typeof K=="object"?D(W,K.schema,ae):ae!==p(J)&&(ae[0]==="#"?(D(W,I[ae],ae),I[ae]=W):this.refs[ae]=J),ae}function X(ae){if(typeof ae=="string"){if(!y.test(ae))throw new Error(`invalid anchor "${ae}"`);F.call(this,`#${ae}`)}}}),I;function D(W,V,G){if(V!==void 0&&!t(W,V))throw z(G)}function z(W){return new Error(`reference "${W}" resolves to more than one schema`)}}return cr.getSchemaRefs=w,cr}var _2;function ng(){if(_2)return Ca;_2=1,Object.defineProperty(Ca,"__esModule",{value:!0}),Ca.getData=Ca.KeywordCxt=Ca.validateFunctionCode=void 0;const e=gX(),t=sm(),n=QM(),r=sm(),a=vX(),i=yX(),c=_X(),u=ht(),d=Hs(),f=tg(),m=Tt(),p=eg();function g(H){if(C(H)&&(N(H),O(H))){b(H);return}y(H,()=>(0,e.topBoolOrEmptySchema)(H))}Ca.validateFunctionCode=g;function y({gen:H,validateName:ne,schema:be,schemaEnv:pe,opts:ce},Oe){ce.code.es5?H.func(ne,(0,u._)`${d.default.data}, ${d.default.valCxt}`,pe.$async,()=>{H.code((0,u._)`"use strict"; ${E(be,ce)}`),S(H,ce),H.code(Oe)}):H.func(ne,(0,u._)`${d.default.data}, ${w(ce)}`,pe.$async,()=>H.code(E(be,ce)).code(Oe))}function w(H){return(0,u._)`{${d.default.instancePath}="", ${d.default.parentData}, ${d.default.parentDataProperty}, ${d.default.rootData}=${d.default.data}${H.dynamicRef?(0,u._)`, ${d.default.dynamicAnchors}={}`:u.nil}}={}`}function S(H,ne){H.if(d.default.valCxt,()=>{H.var(d.default.instancePath,(0,u._)`${d.default.valCxt}.${d.default.instancePath}`),H.var(d.default.parentData,(0,u._)`${d.default.valCxt}.${d.default.parentData}`),H.var(d.default.parentDataProperty,(0,u._)`${d.default.valCxt}.${d.default.parentDataProperty}`),H.var(d.default.rootData,(0,u._)`${d.default.valCxt}.${d.default.rootData}`),ne.dynamicRef&&H.var(d.default.dynamicAnchors,(0,u._)`${d.default.valCxt}.${d.default.dynamicAnchors}`)},()=>{H.var(d.default.instancePath,(0,u._)`""`),H.var(d.default.parentData,(0,u._)`undefined`),H.var(d.default.parentDataProperty,(0,u._)`undefined`),H.var(d.default.rootData,d.default.data),ne.dynamicRef&&H.var(d.default.dynamicAnchors,(0,u._)`{}`)})}function b(H){const{schema:ne,opts:be,gen:pe}=H;y(H,()=>{be.$comment&&ne.$comment&&U(H),W(H),pe.let(d.default.vErrors,null),pe.let(d.default.errors,0),be.unevaluated&&R(H),D(H),J(H)})}function R(H){const{gen:ne,validateName:be}=H;H.evaluated=ne.const("evaluated",(0,u._)`${be}.evaluated`),ne.if((0,u._)`${H.evaluated}.dynamicProps`,()=>ne.assign((0,u._)`${H.evaluated}.props`,(0,u._)`undefined`)),ne.if((0,u._)`${H.evaluated}.dynamicItems`,()=>ne.assign((0,u._)`${H.evaluated}.items`,(0,u._)`undefined`))}function E(H,ne){const be=typeof H=="object"&&H[ne.schemaId];return be&&(ne.code.source||ne.code.process)?(0,u._)`/*# sourceURL=${be} */`:u.nil}function T(H,ne){if(C(H)&&(N(H),O(H))){I(H,ne);return}(0,e.boolOrEmptySchema)(H,ne)}function O({schema:H,self:ne}){if(typeof H=="boolean")return!H;for(const be in H)if(ne.RULES.all[be])return!0;return!1}function C(H){return typeof H.schema!="boolean"}function I(H,ne){const{schema:be,gen:pe,opts:ce}=H;ce.$comment&&be.$comment&&U(H),V(H),G(H);const Oe=pe.const("_errs",d.default.errors);D(H,Oe),pe.var(ne,(0,u._)`${Oe} === ${d.default.errors}`)}function N(H){(0,m.checkUnknownRules)(H),z(H)}function D(H,ne){if(H.opts.jtd)return F(H,[],!1,ne);const be=(0,t.getSchemaTypes)(H.schema),pe=(0,t.coerceAndCheckDataType)(H,be);F(H,be,!pe,ne)}function z(H){const{schema:ne,errSchemaPath:be,opts:pe,self:ce}=H;ne.$ref&&pe.ignoreKeywordsWithRef&&(0,m.schemaHasRulesButRef)(ne,ce.RULES)&&ce.logger.warn(`$ref: keywords ignored in schema at path "${be}"`)}function W(H){const{schema:ne,opts:be}=H;ne.default!==void 0&&be.useDefaults&&be.strictSchema&&(0,m.checkStrictMode)(H,"default is ignored in the schema root")}function V(H){const ne=H.schema[H.opts.schemaId];ne&&(H.baseId=(0,f.resolveUrl)(H.opts.uriResolver,H.baseId,ne))}function G(H){if(H.schema.$async&&!H.schemaEnv.$async)throw new Error("async schema in sync schema")}function U({gen:H,schemaEnv:ne,schema:be,errSchemaPath:pe,opts:ce}){const Oe=be.$comment;if(ce.$comment===!0)H.code((0,u._)`${d.default.self}.logger.log(${Oe})`);else if(typeof ce.$comment=="function"){const $e=(0,u.str)`${pe}/$comment`,Ye=H.scopeValue("root",{ref:ne.root});H.code((0,u._)`${d.default.self}.opts.$comment(${Oe}, ${$e}, ${Ye}.schema)`)}}function J(H){const{gen:ne,schemaEnv:be,validateName:pe,ValidationError:ce,opts:Oe}=H;be.$async?ne.if((0,u._)`${d.default.errors} === 0`,()=>ne.return(d.default.data),()=>ne.throw((0,u._)`new ${ce}(${d.default.vErrors})`)):(ne.assign((0,u._)`${pe}.errors`,d.default.vErrors),Oe.unevaluated&&ie(H),ne.return((0,u._)`${d.default.errors} === 0`))}function ie({gen:H,evaluated:ne,props:be,items:pe}){be instanceof u.Name&&H.assign((0,u._)`${ne}.props`,be),pe instanceof u.Name&&H.assign((0,u._)`${ne}.items`,pe)}function F(H,ne,be,pe){const{gen:ce,schema:Oe,data:$e,allErrors:Ye,opts:He,self:Xe}=H,{RULES:Z}=Xe;if(Oe.$ref&&(He.ignoreKeywordsWithRef||!(0,m.schemaHasRulesButRef)(Oe,Z))){ce.block(()=>me(H,"$ref",Z.all.$ref.definition));return}He.jtd||ae(H,ne),ce.block(()=>{for(const oe of Z.rules)te(oe);te(Z.post)});function te(oe){(0,n.shouldUseGroup)(Oe,oe)&&(oe.type?(ce.if((0,r.checkDataType)(oe.type,$e,He.strictNumbers)),X(H,oe),ne.length===1&&ne[0]===oe.type&&be&&(ce.else(),(0,r.reportTypeError)(H)),ce.endIf()):X(H,oe),Ye||ce.if((0,u._)`${d.default.errors} === ${pe||0}`))}}function X(H,ne){const{gen:be,schema:pe,opts:{useDefaults:ce}}=H;ce&&(0,a.assignDefaults)(H,ne.type),be.block(()=>{for(const Oe of ne.rules)(0,n.shouldUseRule)(pe,Oe)&&me(H,Oe.keyword,Oe.definition,ne.type)})}function ae(H,ne){H.schemaEnv.meta||!H.opts.strictTypes||(fe(H,ne),H.opts.allowUnionTypes||K(H,ne),P(H,H.dataTypes))}function fe(H,ne){if(ne.length){if(!H.dataTypes.length){H.dataTypes=ne;return}ne.forEach(be=>{B(H.dataTypes,be)||$(H,`type "${be}" not allowed by context "${H.dataTypes.join(",")}"`)}),L(H,ne)}}function K(H,ne){ne.length>1&&!(ne.length===2&&ne.includes("null"))&&$(H,"use allowUnionTypes to allow union type keyword")}function P(H,ne){const be=H.self.RULES.all;for(const pe in be){const ce=be[pe];if(typeof ce=="object"&&(0,n.shouldUseRule)(H.schema,ce)){const{type:Oe}=ce.definition;Oe.length&&!Oe.some($e=>q(ne,$e))&&$(H,`missing type "${Oe.join(",")}" for keyword "${pe}"`)}}}function q(H,ne){return H.includes(ne)||ne==="number"&&H.includes("integer")}function B(H,ne){return H.includes(ne)||ne==="integer"&&H.includes("number")}function L(H,ne){const be=[];for(const pe of H.dataTypes)B(ne,pe)?be.push(pe):ne.includes("integer")&&pe==="number"&&be.push("integer");H.dataTypes=be}function $(H,ne){const be=H.schemaEnv.baseId+H.errSchemaPath;ne+=` at "${be}" (strictTypes)`,(0,m.checkStrictMode)(H,ne,H.opts.strictTypes)}class Q{constructor(ne,be,pe){if((0,i.validateKeywordUsage)(ne,be,pe),this.gen=ne.gen,this.allErrors=ne.allErrors,this.keyword=pe,this.data=ne.data,this.schema=ne.schema[pe],this.$data=be.$data&&ne.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,m.schemaRefOrVal)(ne,this.schema,pe,this.$data),this.schemaType=be.schemaType,this.parentSchema=ne.schema,this.params={},this.it=ne,this.def=be,this.$data)this.schemaCode=ne.gen.const("vSchema",ke(this.$data,ne));else if(this.schemaCode=this.schemaValue,!(0,i.validSchemaType)(this.schema,be.schemaType,be.allowUndefined))throw new Error(`${pe} value must be ${JSON.stringify(be.schemaType)}`);("code"in be?be.trackErrors:be.errors!==!1)&&(this.errsCount=ne.gen.const("_errs",d.default.errors))}result(ne,be,pe){this.failResult((0,u.not)(ne),be,pe)}failResult(ne,be,pe){this.gen.if(ne),pe?pe():this.error(),be?(this.gen.else(),be(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(ne,be){this.failResult((0,u.not)(ne),void 0,be)}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:be}=this;this.fail((0,u._)`${be} !== undefined && (${(0,u.or)(this.invalid$data(),ne)})`)}error(ne,be,pe){if(be){this.setParams(be),this._error(ne,pe),this.setParams({});return}this._error(ne,pe)}_error(ne,be){(ne?p.reportExtraError:p.reportError)(this,this.def.error,be)}$dataError(){(0,p.reportError)(this,this.def.$dataError||p.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,p.resetErrorsCount)(this.gen,this.errsCount)}ok(ne){this.allErrors||this.gen.if(ne)}setParams(ne,be){be?Object.assign(this.params,ne):this.params=ne}block$data(ne,be,pe=u.nil){this.gen.block(()=>{this.check$data(ne,pe),be()})}check$data(ne=u.nil,be=u.nil){if(!this.$data)return;const{gen:pe,schemaCode:ce,schemaType:Oe,def:$e}=this;pe.if((0,u.or)((0,u._)`${ce} === undefined`,be)),ne!==u.nil&&pe.assign(ne,!0),(Oe.length||$e.validateSchema)&&(pe.elseIf(this.invalid$data()),this.$dataError(),ne!==u.nil&&pe.assign(ne,!1)),pe.else()}invalid$data(){const{gen:ne,schemaCode:be,schemaType:pe,def:ce,it:Oe}=this;return(0,u.or)($e(),Ye());function $e(){if(pe.length){if(!(be instanceof u.Name))throw new Error("ajv implementation error");const He=Array.isArray(pe)?pe:[pe];return(0,u._)`${(0,r.checkDataTypes)(He,be,Oe.opts.strictNumbers,r.DataType.Wrong)}`}return u.nil}function Ye(){if(ce.validateSchema){const He=ne.scopeValue("validate$data",{ref:ce.validateSchema});return(0,u._)`!${He}(${be})`}return u.nil}}subschema(ne,be){const pe=(0,c.getSubschema)(this.it,ne);(0,c.extendSubschemaData)(pe,this.it,ne),(0,c.extendSubschemaMode)(pe,ne);const ce={...this.it,...pe,items:void 0,props:void 0};return T(ce,be),ce}mergeEvaluated(ne,be){const{it:pe,gen:ce}=this;pe.opts.unevaluated&&(pe.props!==!0&&ne.props!==void 0&&(pe.props=m.mergeEvaluated.props(ce,ne.props,pe.props,be)),pe.items!==!0&&ne.items!==void 0&&(pe.items=m.mergeEvaluated.items(ce,ne.items,pe.items,be)))}mergeValidEvaluated(ne,be){const{it:pe,gen:ce}=this;if(pe.opts.unevaluated&&(pe.props!==!0||pe.items!==!0))return ce.if(be,()=>this.mergeEvaluated(ne,u.Name)),!0}}Ca.KeywordCxt=Q;function me(H,ne,be,pe){const ce=new Q(H,be,ne);"code"in be?be.code(ce,pe):ce.$data&&be.validate?(0,i.funcKeywordCode)(ce,be):"macro"in be?(0,i.macroKeywordCode)(ce,be):(be.compile||be.validate)&&(0,i.funcKeywordCode)(ce,be)}const _e=/^\/(?:[^~]|~0|~1)*$/,Ae=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function ke(H,{dataLevel:ne,dataNames:be,dataPathArr:pe}){let ce,Oe;if(H==="")return d.default.rootData;if(H[0]==="/"){if(!_e.test(H))throw new Error(`Invalid JSON-pointer: ${H}`);ce=H,Oe=d.default.rootData}else{const Xe=Ae.exec(H);if(!Xe)throw new Error(`Invalid JSON-pointer: ${H}`);const Z=+Xe[1];if(ce=Xe[2],ce==="#"){if(Z>=ne)throw new Error(He("property/index",Z));return pe[ne-Z]}if(Z>ne)throw new Error(He("data",Z));if(Oe=be[ne-Z],!ce)return Oe}let $e=Oe;const Ye=ce.split("/");for(const Xe of Ye)Xe&&(Oe=(0,u._)`${Oe}${(0,u.getProperty)((0,m.unescapeJsonPointer)(Xe))}`,$e=(0,u._)`${$e} && ${Oe}`);return $e;function He(Xe,Z){return`Cannot access ${Xe} ${Z} levels up, current level is ${ne}`}}return Ca.getData=ke,Ca}var xh={},b2;function G1(){if(b2)return xh;b2=1,Object.defineProperty(xh,"__esModule",{value:!0});class e extends Error{constructor(n){super("validation failed"),this.errors=n,this.ajv=this.validation=!0}}return xh.default=e,xh}var Th={},w2;function rg(){if(w2)return Th;w2=1,Object.defineProperty(Th,"__esModule",{value:!0});const e=tg();class t extends Error{constructor(r,a,i,c){super(c||`can't resolve reference ${i} from id ${a}`),this.missingRef=(0,e.resolveUrl)(r,a,i),this.missingSchema=(0,e.normalizeId)((0,e.getFullPath)(r,this.missingRef))}}return Th.default=t,Th}var zr={},S2;function Z1(){if(S2)return zr;S2=1,Object.defineProperty(zr,"__esModule",{value:!0}),zr.resolveSchema=zr.getCompilingSchema=zr.resolveRef=zr.compileSchema=zr.SchemaEnv=void 0;const e=ht(),t=G1(),n=Hs(),r=tg(),a=Tt(),i=ng();class c{constructor(R){var E;this.refs={},this.dynamicAnchors={};let T;typeof R.schema=="object"&&(T=R.schema),this.schema=R.schema,this.schemaId=R.schemaId,this.root=R.root||this,this.baseId=(E=R.baseId)!==null&&E!==void 0?E:(0,r.normalizeId)(T?.[R.schemaId||"$id"]),this.schemaPath=R.schemaPath,this.localRefs=R.localRefs,this.meta=R.meta,this.$async=T?.$async,this.refs={}}}zr.SchemaEnv=c;function u(b){const R=m.call(this,b);if(R)return R;const E=(0,r.getFullPath)(this.opts.uriResolver,b.root.baseId),{es5:T,lines:O}=this.opts.code,{ownProperties:C}=this.opts,I=new e.CodeGen(this.scope,{es5:T,lines:O,ownProperties:C});let N;b.$async&&(N=I.scopeValue("Error",{ref:t.default,code:(0,e._)`require("ajv/dist/runtime/validation_error").default`}));const D=I.scopeName("validate");b.validateName=D;const z={gen:I,allErrors:this.opts.allErrors,data:n.default.data,parentData:n.default.parentData,parentDataProperty:n.default.parentDataProperty,dataNames:[n.default.data],dataPathArr:[e.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:I.scopeValue("schema",this.opts.code.source===!0?{ref:b.schema,code:(0,e.stringify)(b.schema)}:{ref:b.schema}),validateName:D,ValidationError:N,schema:b.schema,schemaEnv:b,rootId:E,baseId:b.baseId||E,schemaPath:e.nil,errSchemaPath:b.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,e._)`""`,opts:this.opts,self:this};let W;try{this._compilations.add(b),(0,i.validateFunctionCode)(z),I.optimize(this.opts.code.optimize);const V=I.toString();W=`${I.scopeRefs(n.default.scope)}return ${V}`,this.opts.code.process&&(W=this.opts.code.process(W,b));const U=new Function(`${n.default.self}`,`${n.default.scope}`,W)(this,this.scope.get());if(this.scope.value(D,{ref:U}),U.errors=null,U.schema=b.schema,U.schemaEnv=b,b.$async&&(U.$async=!0),this.opts.code.source===!0&&(U.source={validateName:D,validateCode:V,scopeValues:I._values}),this.opts.unevaluated){const{props:J,items:ie}=z;U.evaluated={props:J instanceof e.Name?void 0:J,items:ie instanceof e.Name?void 0:ie,dynamicProps:J instanceof e.Name,dynamicItems:ie instanceof e.Name},U.source&&(U.source.evaluated=(0,e.stringify)(U.evaluated))}return b.validate=U,b}catch(V){throw delete b.validate,delete b.validateName,W&&this.logger.error("Error compiling schema, function code:",W),V}finally{this._compilations.delete(b)}}zr.compileSchema=u;function d(b,R,E){var T;E=(0,r.resolveUrl)(this.opts.uriResolver,R,E);const O=b.refs[E];if(O)return O;let C=g.call(this,b,E);if(C===void 0){const I=(T=b.localRefs)===null||T===void 0?void 0:T[E],{schemaId:N}=this.opts;I&&(C=new c({schema:I,schemaId:N,root:b,baseId:R}))}if(C!==void 0)return b.refs[E]=f.call(this,C)}zr.resolveRef=d;function f(b){return(0,r.inlineRef)(b.schema,this.opts.inlineRefs)?b.schema:b.validate?b:u.call(this,b)}function m(b){for(const R of this._compilations)if(p(R,b))return R}zr.getCompilingSchema=m;function p(b,R){return b.schema===R.schema&&b.root===R.root&&b.baseId===R.baseId}function g(b,R){let E;for(;typeof(E=this.refs[R])=="string";)R=E;return E||this.schemas[R]||y.call(this,b,R)}function y(b,R){const E=this.opts.uriResolver.parse(R),T=(0,r._getFullPath)(this.opts.uriResolver,E);let O=(0,r.getFullPath)(this.opts.uriResolver,b.baseId,void 0);if(Object.keys(b.schema).length>0&&T===O)return S.call(this,E,b);const C=(0,r.normalizeId)(T),I=this.refs[C]||this.schemas[C];if(typeof I=="string"){const N=y.call(this,b,I);return typeof N?.schema!="object"?void 0:S.call(this,E,N)}if(typeof I?.schema=="object"){if(I.validate||u.call(this,I),C===(0,r.normalizeId)(R)){const{schema:N}=I,{schemaId:D}=this.opts,z=N[D];return z&&(O=(0,r.resolveUrl)(this.opts.uriResolver,O,z)),new c({schema:N,schemaId:D,root:b,baseId:O})}return S.call(this,E,I)}}zr.resolveSchema=y;const w=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function S(b,{baseId:R,schema:E,root:T}){var O;if(((O=b.fragment)===null||O===void 0?void 0:O[0])!=="/")return;for(const N of b.fragment.slice(1).split("/")){if(typeof E=="boolean")return;const D=E[(0,a.unescapeFragment)(N)];if(D===void 0)return;E=D;const z=typeof E=="object"&&E[this.opts.schemaId];!w.has(N)&&z&&(R=(0,r.resolveUrl)(this.opts.uriResolver,R,z))}let C;if(typeof E!="boolean"&&E.$ref&&!(0,a.schemaHasRulesButRef)(E,this.RULES)){const N=(0,r.resolveUrl)(this.opts.uriResolver,R,E.$ref);C=y.call(this,T,N)}const{schemaId:I}=this.opts;if(C=C||new c({schema:E,schemaId:I,root:T,baseId:R}),C.schema!==C.root.schema)return C}return zr}const wX="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",SX="Meta-schema for $data reference (JSON AnySchema extension proposal)",EX="object",RX=["$data"],xX={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},TX=!1,OX={$id:wX,description:SX,type:EX,required:RX,properties:xX,additionalProperties:TX};var Oh={},Cu={exports:{}},P0,E2;function JM(){if(E2)return P0;E2=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 n(g){let y="",w=0,S=0;for(S=0;S<g.length;S++)if(w=g[S].charCodeAt(0),w!==48){if(!(w>=48&&w<=57||w>=65&&w<=70||w>=97&&w<=102))return"";y+=g[S];break}for(S+=1;S<g.length;S++){if(w=g[S].charCodeAt(0),!(w>=48&&w<=57||w>=65&&w<=70||w>=97&&w<=102))return"";y+=g[S]}return y}const r=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function a(g){return g.length=0,!0}function i(g,y,w){if(g.length){const S=n(g);if(S!=="")y.push(S);else return w.error=!0,!1;g.length=0}return!0}function c(g){let y=0;const w={error:!1,address:"",zone:""},S=[],b=[];let R=!1,E=!1,T=i;for(let O=0;O<g.length;O++){const C=g[O];if(!(C==="["||C==="]"))if(C===":"){if(R===!0&&(E=!0),!T(b,S,w))break;if(++y>7){w.error=!0;break}O>0&&g[O-1]===":"&&(R=!0),S.push(":");continue}else if(C==="%"){if(!T(b,S,w))break;T=a}else{b.push(C);continue}}return b.length&&(T===a?w.zone=b.join(""):E?S.push(b.join("")):S.push(n(b))),w.address=S.join(""),w}function u(g){if(d(g,":")<2)return{host:g,isIPV6:!1};const y=c(g);if(y.error)return{host:g,isIPV6:!1};{let w=y.address,S=y.address;return y.zone&&(w+="%"+y.zone,S+="%25"+y.zone),{host:w,isIPV6:!0,escapedHost:S}}}function d(g,y){let w=0;for(let S=0;S<g.length;S++)g[S]===y&&w++;return w}function f(g){let y=g;const w=[];let S=-1,b=0;for(;b=y.length;){if(b===1){if(y===".")break;if(y==="/"){w.push("/");break}else{w.push(y);break}}else if(b===2){if(y[0]==="."){if(y[1]===".")break;if(y[1]==="/"){y=y.slice(2);continue}}else if(y[0]==="/"&&(y[1]==="."||y[1]==="/")){w.push("/");break}}else if(b===3&&y==="/.."){w.length!==0&&w.pop(),w.push("/");break}if(y[0]==="."){if(y[1]==="."){if(y[2]==="/"){y=y.slice(3);continue}}else if(y[1]==="/"){y=y.slice(2);continue}}else if(y[0]==="/"&&y[1]==="."){if(y[2]==="/"){y=y.slice(2);continue}else if(y[2]==="."&&y[3]==="/"){y=y.slice(3),w.length!==0&&w.pop();continue}}if((S=y.indexOf("/",1))===-1){w.push(y);break}else w.push(y.slice(0,S)),y=y.slice(S)}return w.join("")}function m(g,y){const w=y!==!0?escape:unescape;return g.scheme!==void 0&&(g.scheme=w(g.scheme)),g.userinfo!==void 0&&(g.userinfo=w(g.userinfo)),g.host!==void 0&&(g.host=w(g.host)),g.path!==void 0&&(g.path=w(g.path)),g.query!==void 0&&(g.query=w(g.query)),g.fragment!==void 0&&(g.fragment=w(g.fragment)),g}function p(g){const y=[];if(g.userinfo!==void 0&&(y.push(g.userinfo),y.push("@")),g.host!==void 0){let w=unescape(g.host);if(!t(w)){const S=u(w);S.isIPV6===!0?w=`[${S.escapedHost}]`:w=g.host}y.push(w)}return(typeof g.port=="number"||typeof g.port=="string")&&(y.push(":"),y.push(String(g.port))),y.length?y.join(""):void 0}return P0={nonSimpleDomain:r,recomposeAuthority:p,normalizeComponentEncoding:m,removeDotSegments:f,isIPv4:t,isUUID:e,normalizeIPv6:u,stringArrayToHexStripped:n},P0}var D0,R2;function CX(){if(R2)return D0;R2=1;const{isUUID:e}=JM(),t=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,n=["http","https","ws","wss","urn","urn:uuid"];function r(C){return n.indexOf(C)!==-1}function a(C){return C.secure===!0?!0:C.secure===!1?!1:C.scheme?C.scheme.length===3&&(C.scheme[0]==="w"||C.scheme[0]==="W")&&(C.scheme[1]==="s"||C.scheme[1]==="S")&&(C.scheme[2]==="s"||C.scheme[2]==="S"):!1}function i(C){return C.host||(C.error=C.error||"HTTP URIs must have a host."),C}function c(C){const I=String(C.scheme).toLowerCase()==="https";return(C.port===(I?443:80)||C.port==="")&&(C.port=void 0),C.path||(C.path="/"),C}function u(C){return C.secure=a(C),C.resourceName=(C.path||"/")+(C.query?"?"+C.query:""),C.path=void 0,C.query=void 0,C}function d(C){if((C.port===(a(C)?443:80)||C.port==="")&&(C.port=void 0),typeof C.secure=="boolean"&&(C.scheme=C.secure?"wss":"ws",C.secure=void 0),C.resourceName){const[I,N]=C.resourceName.split("?");C.path=I&&I!=="/"?I:void 0,C.query=N,C.resourceName=void 0}return C.fragment=void 0,C}function f(C,I){if(!C.path)return C.error="URN can not be parsed",C;const N=C.path.match(t);if(N){const D=I.scheme||C.scheme||"urn";C.nid=N[1].toLowerCase(),C.nss=N[2];const z=`${D}:${I.nid||C.nid}`,W=O(z);C.path=void 0,W&&(C=W.parse(C,I))}else C.error=C.error||"URN can not be parsed.";return C}function m(C,I){if(C.nid===void 0)throw new Error("URN without nid cannot be serialized");const N=I.scheme||C.scheme||"urn",D=C.nid.toLowerCase(),z=`${N}:${I.nid||D}`,W=O(z);W&&(C=W.serialize(C,I));const V=C,G=C.nss;return V.path=`${D||I.nid}:${G}`,I.skipEscape=!0,V}function p(C,I){const N=C;return N.uuid=N.nss,N.nss=void 0,!I.tolerant&&(!N.uuid||!e(N.uuid))&&(N.error=N.error||"UUID is not valid."),N}function g(C){const I=C;return I.nss=(C.uuid||"").toLowerCase(),I}const y={scheme:"http",domainHost:!0,parse:i,serialize:c},w={scheme:"https",domainHost:y.domainHost,parse:i,serialize:c},S={scheme:"ws",domainHost:!0,parse:u,serialize:d},b={scheme:"wss",domainHost:S.domainHost,parse:S.parse,serialize:S.serialize},T={http:y,https:w,ws:S,wss:b,urn:{scheme:"urn",parse:f,serialize:m,skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:p,serialize:g,skipNormalize:!0}};Object.setPrototypeOf(T,null);function O(C){return C&&(T[C]||T[C.toLowerCase()])||void 0}return D0={wsIsSecure:a,SCHEMES:T,isValidSchemeName:r,getSchemeHandler:O},D0}var x2;function AX(){if(x2)return Cu.exports;x2=1;const{normalizeIPv6:e,removeDotSegments:t,recomposeAuthority:n,normalizeComponentEncoding:r,isIPv4:a,nonSimpleDomain:i}=JM(),{SCHEMES:c,getSchemeHandler:u}=CX();function d(b,R){return typeof b=="string"?b=g(w(b,R),R):typeof b=="object"&&(b=w(g(b,R),R)),b}function f(b,R,E){const T=E?Object.assign({scheme:"null"},E):{scheme:"null"},O=m(w(b,T),w(R,T),T,!0);return T.skipEscape=!0,g(O,T)}function m(b,R,E,T){const O={};return T||(b=w(g(b,E),E),R=w(g(R,E),E)),E=E||{},!E.tolerant&&R.scheme?(O.scheme=R.scheme,O.userinfo=R.userinfo,O.host=R.host,O.port=R.port,O.path=t(R.path||""),O.query=R.query):(R.userinfo!==void 0||R.host!==void 0||R.port!==void 0?(O.userinfo=R.userinfo,O.host=R.host,O.port=R.port,O.path=t(R.path||""),O.query=R.query):(R.path?(R.path[0]==="/"?O.path=t(R.path):((b.userinfo!==void 0||b.host!==void 0||b.port!==void 0)&&!b.path?O.path="/"+R.path:b.path?O.path=b.path.slice(0,b.path.lastIndexOf("/")+1)+R.path:O.path=R.path,O.path=t(O.path)),O.query=R.query):(O.path=b.path,R.query!==void 0?O.query=R.query:O.query=b.query),O.userinfo=b.userinfo,O.host=b.host,O.port=b.port),O.scheme=b.scheme),O.fragment=R.fragment,O}function p(b,R,E){return typeof b=="string"?(b=unescape(b),b=g(r(w(b,E),!0),{...E,skipEscape:!0})):typeof b=="object"&&(b=g(r(b,!0),{...E,skipEscape:!0})),typeof R=="string"?(R=unescape(R),R=g(r(w(R,E),!0),{...E,skipEscape:!0})):typeof R=="object"&&(R=g(r(R,!0),{...E,skipEscape:!0})),b.toLowerCase()===R.toLowerCase()}function g(b,R){const E={host:b.host,scheme:b.scheme,userinfo:b.userinfo,port:b.port,path:b.path,query:b.query,nid:b.nid,nss:b.nss,uuid:b.uuid,fragment:b.fragment,reference:b.reference,resourceName:b.resourceName,secure:b.secure,error:""},T=Object.assign({},R),O=[],C=u(T.scheme||E.scheme);C&&C.serialize&&C.serialize(E,T),E.path!==void 0&&(T.skipEscape?E.path=unescape(E.path):(E.path=escape(E.path),E.scheme!==void 0&&(E.path=E.path.split("%3A").join(":")))),T.reference!=="suffix"&&E.scheme&&O.push(E.scheme,":");const I=n(E);if(I!==void 0&&(T.reference!=="suffix"&&O.push("//"),O.push(I),E.path&&E.path[0]!=="/"&&O.push("/")),E.path!==void 0){let N=E.path;!T.absolutePath&&(!C||!C.absolutePath)&&(N=t(N)),I===void 0&&N[0]==="/"&&N[1]==="/"&&(N="/%2F"+N.slice(2)),O.push(N)}return E.query!==void 0&&O.push("?",E.query),E.fragment!==void 0&&O.push("#",E.fragment),O.join("")}const y=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function w(b,R){const E=Object.assign({},R),T={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let O=!1;E.reference==="suffix"&&(E.scheme?b=E.scheme+":"+b:b="//"+b);const C=b.match(y);if(C){if(T.scheme=C[1],T.userinfo=C[3],T.host=C[4],T.port=parseInt(C[5],10),T.path=C[6]||"",T.query=C[7],T.fragment=C[8],isNaN(T.port)&&(T.port=C[5]),T.host)if(a(T.host)===!1){const D=e(T.host);T.host=D.host.toLowerCase(),O=D.isIPV6}else O=!0;T.scheme===void 0&&T.userinfo===void 0&&T.host===void 0&&T.port===void 0&&T.query===void 0&&!T.path?T.reference="same-document":T.scheme===void 0?T.reference="relative":T.fragment===void 0?T.reference="absolute":T.reference="uri",E.reference&&E.reference!=="suffix"&&E.reference!==T.reference&&(T.error=T.error||"URI is not a "+E.reference+" reference.");const I=u(E.scheme||T.scheme);if(!E.unicodeSupport&&(!I||!I.unicodeSupport)&&T.host&&(E.domainHost||I&&I.domainHost)&&O===!1&&i(T.host))try{T.host=URL.domainToASCII(T.host.toLowerCase())}catch(N){T.error=T.error||"Host's domain name can not be converted to ASCII: "+N}(!I||I&&!I.skipNormalize)&&(b.indexOf("%")!==-1&&(T.scheme!==void 0&&(T.scheme=unescape(T.scheme)),T.host!==void 0&&(T.host=unescape(T.host))),T.path&&(T.path=escape(unescape(T.path))),T.fragment&&(T.fragment=encodeURI(decodeURIComponent(T.fragment)))),I&&I.parse&&I.parse(T,E)}else T.error=T.error||"URI can not be parsed.";return T}const S={SCHEMES:c,normalize:d,resolve:f,resolveComponent:m,equal:p,serialize:g,parse:w};return Cu.exports=S,Cu.exports.default=S,Cu.exports.fastUri=S,Cu.exports}var T2;function IX(){if(T2)return Oh;T2=1,Object.defineProperty(Oh,"__esModule",{value:!0});const e=AX();return e.code='require("ajv/dist/runtime/uri").default',Oh.default=e,Oh}var O2;function kX(){return O2||(O2=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=ng();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var n=ht();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return n._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return n.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return n.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return n.CodeGen}});const r=G1(),a=rg(),i=YM(),c=Z1(),u=ht(),d=tg(),f=sm(),m=Tt(),p=OX,g=IX(),y=(K,P)=>new RegExp(K,P);y.code="new RegExp";const w=["removeAdditional","useDefaults","coerceTypes"],S=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),b={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."},R={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},E=200;function T(K){var P,q,B,L,$,Q,me,_e,Ae,ke,H,ne,be,pe,ce,Oe,$e,Ye,He,Xe,Z,te,oe,Se,Te;const Re=K.strict,Ne=(P=K.code)===null||P===void 0?void 0:P.optimize,rt=Ne===!0||Ne===void 0?1:Ne||0,st=(B=(q=K.code)===null||q===void 0?void 0:q.regExp)!==null&&B!==void 0?B:y,Pt=(L=K.uriResolver)!==null&&L!==void 0?L:g.default;return{strictSchema:(Q=($=K.strictSchema)!==null&&$!==void 0?$:Re)!==null&&Q!==void 0?Q:!0,strictNumbers:(_e=(me=K.strictNumbers)!==null&&me!==void 0?me:Re)!==null&&_e!==void 0?_e:!0,strictTypes:(ke=(Ae=K.strictTypes)!==null&&Ae!==void 0?Ae:Re)!==null&&ke!==void 0?ke:"log",strictTuples:(ne=(H=K.strictTuples)!==null&&H!==void 0?H:Re)!==null&&ne!==void 0?ne:"log",strictRequired:(pe=(be=K.strictRequired)!==null&&be!==void 0?be:Re)!==null&&pe!==void 0?pe:!1,code:K.code?{...K.code,optimize:rt,regExp:st}:{optimize:rt,regExp:st},loopRequired:(ce=K.loopRequired)!==null&&ce!==void 0?ce:E,loopEnum:(Oe=K.loopEnum)!==null&&Oe!==void 0?Oe:E,meta:($e=K.meta)!==null&&$e!==void 0?$e:!0,messages:(Ye=K.messages)!==null&&Ye!==void 0?Ye:!0,inlineRefs:(He=K.inlineRefs)!==null&&He!==void 0?He:!0,schemaId:(Xe=K.schemaId)!==null&&Xe!==void 0?Xe:"$id",addUsedSchema:(Z=K.addUsedSchema)!==null&&Z!==void 0?Z:!0,validateSchema:(te=K.validateSchema)!==null&&te!==void 0?te:!0,validateFormats:(oe=K.validateFormats)!==null&&oe!==void 0?oe:!0,unicodeRegExp:(Se=K.unicodeRegExp)!==null&&Se!==void 0?Se:!0,int32range:(Te=K.int32range)!==null&&Te!==void 0?Te:!0,uriResolver:Pt}}class O{constructor(P={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,P=this.opts={...P,...T(P)};const{es5:q,lines:B}=this.opts.code;this.scope=new u.ValueScope({scope:{},prefixes:S,es5:q,lines:B}),this.logger=G(P.logger);const L=P.validateFormats;P.validateFormats=!1,this.RULES=(0,i.getRules)(),C.call(this,b,P,"NOT SUPPORTED"),C.call(this,R,P,"DEPRECATED","warn"),this._metaOpts=W.call(this),P.formats&&D.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),P.keywords&&z.call(this,P.keywords),typeof P.meta=="object"&&this.addMetaSchema(P.meta),N.call(this),P.validateFormats=L}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:P,meta:q,schemaId:B}=this.opts;let L=p;B==="id"&&(L={...p},L.id=L.$id,delete L.$id),q&&P&&this.addMetaSchema(L,L[B],!1)}defaultMeta(){const{meta:P,schemaId:q}=this.opts;return this.opts.defaultMeta=typeof P=="object"?P[q]||P:void 0}validate(P,q){let B;if(typeof P=="string"){if(B=this.getSchema(P),!B)throw new Error(`no schema with key or ref "${P}"`)}else B=this.compile(P);const L=B(q);return"$async"in B||(this.errors=B.errors),L}compile(P,q){const B=this._addSchema(P,q);return B.validate||this._compileSchemaEnv(B)}compileAsync(P,q){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:B}=this.opts;return L.call(this,P,q);async function L(ke,H){await $.call(this,ke.$schema);const ne=this._addSchema(ke,H);return ne.validate||Q.call(this,ne)}async function $(ke){ke&&!this.getSchema(ke)&&await L.call(this,{$ref:ke},!0)}async function Q(ke){try{return this._compileSchemaEnv(ke)}catch(H){if(!(H instanceof a.default))throw H;return me.call(this,H),await _e.call(this,H.missingSchema),Q.call(this,ke)}}function me({missingSchema:ke,missingRef:H}){if(this.refs[ke])throw new Error(`AnySchema ${ke} is loaded but ${H} cannot be resolved`)}async function _e(ke){const H=await Ae.call(this,ke);this.refs[ke]||await $.call(this,H.$schema),this.refs[ke]||this.addSchema(H,ke,q)}async function Ae(ke){const H=this._loading[ke];if(H)return H;try{return await(this._loading[ke]=B(ke))}finally{delete this._loading[ke]}}}addSchema(P,q,B,L=this.opts.validateSchema){if(Array.isArray(P)){for(const Q of P)this.addSchema(Q,void 0,B,L);return this}let $;if(typeof P=="object"){const{schemaId:Q}=this.opts;if($=P[Q],$!==void 0&&typeof $!="string")throw new Error(`schema ${Q} must be string`)}return q=(0,d.normalizeId)(q||$),this._checkUnique(q),this.schemas[q]=this._addSchema(P,B,q,L,!0),this}addMetaSchema(P,q,B=this.opts.validateSchema){return this.addSchema(P,q,!0,B),this}validateSchema(P,q){if(typeof P=="boolean")return!0;let B;if(B=P.$schema,B!==void 0&&typeof B!="string")throw new Error("$schema must be a string");if(B=B||this.opts.defaultMeta||this.defaultMeta(),!B)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const L=this.validate(B,P);if(!L&&q){const $="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error($);else throw new Error($)}return L}getSchema(P){let q;for(;typeof(q=I.call(this,P))=="string";)P=q;if(q===void 0){const{schemaId:B}=this.opts,L=new c.SchemaEnv({schema:{},schemaId:B});if(q=c.resolveSchema.call(this,L,P),!q)return;this.refs[P]=q}return q.validate||this._compileSchemaEnv(q)}removeSchema(P){if(P instanceof RegExp)return this._removeAllSchemas(this.schemas,P),this._removeAllSchemas(this.refs,P),this;switch(typeof P){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const q=I.call(this,P);return typeof q=="object"&&this._cache.delete(q.schema),delete this.schemas[P],delete this.refs[P],this}case"object":{const q=P;this._cache.delete(q);let B=P[this.opts.schemaId];return B&&(B=(0,d.normalizeId)(B),delete this.schemas[B],delete this.refs[B]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(P){for(const q of P)this.addKeyword(q);return this}addKeyword(P,q){let B;if(typeof P=="string")B=P,typeof q=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),q.keyword=B);else if(typeof P=="object"&&q===void 0){if(q=P,B=q.keyword,Array.isArray(B)&&!B.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(J.call(this,B,q),!q)return(0,m.eachItem)(B,$=>ie.call(this,$)),this;X.call(this,q);const L={...q,type:(0,f.getJSONTypes)(q.type),schemaType:(0,f.getJSONTypes)(q.schemaType)};return(0,m.eachItem)(B,L.type.length===0?$=>ie.call(this,$,L):$=>L.type.forEach(Q=>ie.call(this,$,L,Q))),this}getKeyword(P){const q=this.RULES.all[P];return typeof q=="object"?q.definition:!!q}removeKeyword(P){const{RULES:q}=this;delete q.keywords[P],delete q.all[P];for(const B of q.rules){const L=B.rules.findIndex($=>$.keyword===P);L>=0&&B.rules.splice(L,1)}return this}addFormat(P,q){return typeof q=="string"&&(q=new RegExp(q)),this.formats[P]=q,this}errorsText(P=this.errors,{separator:q=", ",dataVar:B="data"}={}){return!P||P.length===0?"No errors":P.map(L=>`${B}${L.instancePath} ${L.message}`).reduce((L,$)=>L+q+$)}$dataMetaSchema(P,q){const B=this.RULES.all;P=JSON.parse(JSON.stringify(P));for(const L of q){const $=L.split("/").slice(1);let Q=P;for(const me of $)Q=Q[me];for(const me in B){const _e=B[me];if(typeof _e!="object")continue;const{$data:Ae}=_e.definition,ke=Q[me];Ae&&ke&&(Q[me]=fe(ke))}}return P}_removeAllSchemas(P,q){for(const B in P){const L=P[B];(!q||q.test(B))&&(typeof L=="string"?delete P[B]:L&&!L.meta&&(this._cache.delete(L.schema),delete P[B]))}}_addSchema(P,q,B,L=this.opts.validateSchema,$=this.opts.addUsedSchema){let Q;const{schemaId:me}=this.opts;if(typeof P=="object")Q=P[me];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof P!="boolean")throw new Error("schema must be object or boolean")}let _e=this._cache.get(P);if(_e!==void 0)return _e;B=(0,d.normalizeId)(Q||B);const Ae=d.getSchemaRefs.call(this,P,B);return _e=new c.SchemaEnv({schema:P,schemaId:me,meta:q,baseId:B,localRefs:Ae}),this._cache.set(_e.schema,_e),$&&!B.startsWith("#")&&(B&&this._checkUnique(B),this.refs[B]=_e),L&&this.validateSchema(P,!0),_e}_checkUnique(P){if(this.schemas[P]||this.refs[P])throw new Error(`schema with key or id "${P}" already exists`)}_compileSchemaEnv(P){if(P.meta?this._compileMetaSchema(P):c.compileSchema.call(this,P),!P.validate)throw new Error("ajv implementation error");return P.validate}_compileMetaSchema(P){const q=this.opts;this.opts=this._metaOpts;try{c.compileSchema.call(this,P)}finally{this.opts=q}}}O.ValidationError=r.default,O.MissingRefError=a.default,e.default=O;function C(K,P,q,B="error"){for(const L in K){const $=L;$ in P&&this.logger[B](`${q}: option ${L}. ${K[$]}`)}}function I(K){return K=(0,d.normalizeId)(K),this.schemas[K]||this.refs[K]}function N(){const K=this.opts.schemas;if(K)if(Array.isArray(K))this.addSchema(K);else for(const P in K)this.addSchema(K[P],P)}function D(){for(const K in this.opts.formats){const P=this.opts.formats[K];P&&this.addFormat(K,P)}}function z(K){if(Array.isArray(K)){this.addVocabulary(K);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const P in K){const q=K[P];q.keyword||(q.keyword=P),this.addKeyword(q)}}function W(){const K={...this.opts};for(const P of w)delete K[P];return K}const V={log(){},warn(){},error(){}};function G(K){if(K===!1)return V;if(K===void 0)return console;if(K.log&&K.warn&&K.error)return K;throw new Error("logger must implement log, warn and error methods")}const U=/^[a-z_$][a-z0-9_$:-]*$/i;function J(K,P){const{RULES:q}=this;if((0,m.eachItem)(K,B=>{if(q.keywords[B])throw new Error(`Keyword ${B} is already defined`);if(!U.test(B))throw new Error(`Keyword ${B} has invalid name`)}),!!P&&P.$data&&!("code"in P||"validate"in P))throw new Error('$data keyword must have "code" or "validate" function')}function ie(K,P,q){var B;const L=P?.post;if(q&&L)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:$}=this;let Q=L?$.post:$.rules.find(({type:_e})=>_e===q);if(Q||(Q={type:q,rules:[]},$.rules.push(Q)),$.keywords[K]=!0,!P)return;const me={keyword:K,definition:{...P,type:(0,f.getJSONTypes)(P.type),schemaType:(0,f.getJSONTypes)(P.schemaType)}};P.before?F.call(this,Q,me,P.before):Q.rules.push(me),$.all[K]=me,(B=P.implements)===null||B===void 0||B.forEach(_e=>this.addKeyword(_e))}function F(K,P,q){const B=K.rules.findIndex(L=>L.keyword===q);B>=0?K.rules.splice(B,0,P):(K.rules.push(P),this.logger.warn(`rule ${q} is not defined`))}function X(K){let{metaSchema:P}=K;P!==void 0&&(K.$data&&this.opts.$data&&(P=fe(P)),K.validateSchema=this.compile(P,!0))}const ae={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function fe(K){return{anyOf:[K,ae]}}})(O0)),O0}var Ch={},Ah={},Ih={},C2;function NX(){if(C2)return Ih;C2=1,Object.defineProperty(Ih,"__esModule",{value:!0});const e={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};return Ih.default=e,Ih}var ys={},A2;function MX(){if(A2)return ys;A2=1,Object.defineProperty(ys,"__esModule",{value:!0}),ys.callRef=ys.getValidate=void 0;const e=rg(),t=Vo(),n=ht(),r=Hs(),a=Z1(),i=Tt(),c={keyword:"$ref",schemaType:"string",code(f){const{gen:m,schema:p,it:g}=f,{baseId:y,schemaEnv:w,validateName:S,opts:b,self:R}=g,{root:E}=w;if((p==="#"||p==="#/")&&y===E.baseId)return O();const T=a.resolveRef.call(R,E,y,p);if(T===void 0)throw new e.default(g.opts.uriResolver,y,p);if(T instanceof a.SchemaEnv)return C(T);return I(T);function O(){if(w===E)return d(f,S,w,w.$async);const N=m.scopeValue("root",{ref:E});return d(f,(0,n._)`${N}.validate`,E,E.$async)}function C(N){const D=u(f,N);d(f,D,N,N.$async)}function I(N){const D=m.scopeValue("schema",b.code.source===!0?{ref:N,code:(0,n.stringify)(N)}:{ref:N}),z=m.name("valid"),W=f.subschema({schema:N,dataTypes:[],schemaPath:n.nil,topSchemaRef:D,errSchemaPath:p},z);f.mergeEvaluated(W),f.ok(z)}}};function u(f,m){const{gen:p}=f;return m.validate?p.scopeValue("validate",{ref:m.validate}):(0,n._)`${p.scopeValue("wrapper",{ref:m})}.validate`}ys.getValidate=u;function d(f,m,p,g){const{gen:y,it:w}=f,{allErrors:S,schemaEnv:b,opts:R}=w,E=R.passContext?r.default.this:n.nil;g?T():O();function T(){if(!b.$async)throw new Error("async schema referenced by sync schema");const N=y.let("valid");y.try(()=>{y.code((0,n._)`await ${(0,t.callValidateCode)(f,m,E)}`),I(m),S||y.assign(N,!0)},D=>{y.if((0,n._)`!(${D} instanceof ${w.ValidationError})`,()=>y.throw(D)),C(D),S||y.assign(N,!1)}),f.ok(N)}function O(){f.result((0,t.callValidateCode)(f,m,E),()=>I(m),()=>C(m))}function C(N){const D=(0,n._)`${N}.errors`;y.assign(r.default.vErrors,(0,n._)`${r.default.vErrors} === null ? ${D} : ${r.default.vErrors}.concat(${D})`),y.assign(r.default.errors,(0,n._)`${r.default.vErrors}.length`)}function I(N){var D;if(!w.opts.unevaluated)return;const z=(D=p?.validate)===null||D===void 0?void 0:D.evaluated;if(w.props!==!0)if(z&&!z.dynamicProps)z.props!==void 0&&(w.props=i.mergeEvaluated.props(y,z.props,w.props));else{const W=y.var("props",(0,n._)`${N}.evaluated.props`);w.props=i.mergeEvaluated.props(y,W,w.props,n.Name)}if(w.items!==!0)if(z&&!z.dynamicItems)z.items!==void 0&&(w.items=i.mergeEvaluated.items(y,z.items,w.items));else{const W=y.var("items",(0,n._)`${N}.evaluated.items`);w.items=i.mergeEvaluated.items(y,W,w.items,n.Name)}}}return ys.callRef=d,ys.default=c,ys}var I2;function PX(){if(I2)return Ah;I2=1,Object.defineProperty(Ah,"__esModule",{value:!0});const e=NX(),t=MX(),n=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",e.default,t.default];return Ah.default=n,Ah}var kh={},Nh={},k2;function DX(){if(k2)return Nh;k2=1,Object.defineProperty(Nh,"__esModule",{value:!0});const e=ht(),t=e.operators,n={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}},r={message:({keyword:i,schemaCode:c})=>(0,e.str)`must be ${n[i].okStr} ${c}`,params:({keyword:i,schemaCode:c})=>(0,e._)`{comparison: ${n[i].okStr}, limit: ${c}}`},a={keyword:Object.keys(n),type:"number",schemaType:"number",$data:!0,error:r,code(i){const{keyword:c,data:u,schemaCode:d}=i;i.fail$data((0,e._)`${u} ${n[c].fail} ${d} || isNaN(${u})`)}};return Nh.default=a,Nh}var Mh={},N2;function LX(){if(N2)return Mh;N2=1,Object.defineProperty(Mh,"__esModule",{value:!0});const e=ht(),n={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:r})=>(0,e.str)`must be multiple of ${r}`,params:({schemaCode:r})=>(0,e._)`{multipleOf: ${r}}`},code(r){const{gen:a,data:i,schemaCode:c,it:u}=r,d=u.opts.multipleOfPrecision,f=a.let("res"),m=d?(0,e._)`Math.abs(Math.round(${f}) - ${f}) > 1e-${d}`:(0,e._)`${f} !== parseInt(${f})`;r.fail$data((0,e._)`(${c} === 0 || (${f} = ${i}/${c}, ${m}))`)}};return Mh.default=n,Mh}var Ph={},Dh={},M2;function jX(){if(M2)return Dh;M2=1,Object.defineProperty(Dh,"__esModule",{value:!0});function e(t){const n=t.length;let r=0,a=0,i;for(;a<n;)r++,i=t.charCodeAt(a++),i>=55296&&i<=56319&&a<n&&(i=t.charCodeAt(a),(i&64512)===56320&&a++);return r}return Dh.default=e,e.code='require("ajv/dist/runtime/ucs2length").default',Dh}var P2;function $X(){if(P2)return Ph;P2=1,Object.defineProperty(Ph,"__esModule",{value:!0});const e=ht(),t=Tt(),n=jX(),a={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:i,schemaCode:c}){const u=i==="maxLength"?"more":"fewer";return(0,e.str)`must NOT have ${u} than ${c} characters`},params:({schemaCode:i})=>(0,e._)`{limit: ${i}}`},code(i){const{keyword:c,data:u,schemaCode:d,it:f}=i,m=c==="maxLength"?e.operators.GT:e.operators.LT,p=f.opts.unicode===!1?(0,e._)`${u}.length`:(0,e._)`${(0,t.useFunc)(i.gen,n.default)}(${u})`;i.fail$data((0,e._)`${p} ${m} ${d}`)}};return Ph.default=a,Ph}var Lh={},D2;function UX(){if(D2)return Lh;D2=1,Object.defineProperty(Lh,"__esModule",{value:!0});const e=Vo(),t=Tt(),n=ht(),a={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:i})=>(0,n.str)`must match pattern "${i}"`,params:({schemaCode:i})=>(0,n._)`{pattern: ${i}}`},code(i){const{gen:c,data:u,$data:d,schema:f,schemaCode:m,it:p}=i,g=p.opts.unicodeRegExp?"u":"";if(d){const{regExp:y}=p.opts.code,w=y.code==="new RegExp"?(0,n._)`new RegExp`:(0,t.useFunc)(c,y),S=c.let("valid");c.try(()=>c.assign(S,(0,n._)`${w}(${m}, ${g}).test(${u})`),()=>c.assign(S,!1)),i.fail$data((0,n._)`!${S}`)}else{const y=(0,e.usePattern)(i,f);i.fail$data((0,n._)`!${y}.test(${u})`)}}};return Lh.default=a,Lh}var jh={},L2;function zX(){if(L2)return jh;L2=1,Object.defineProperty(jh,"__esModule",{value:!0});const e=ht(),n={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:r,schemaCode:a}){const i=r==="maxProperties"?"more":"fewer";return(0,e.str)`must NOT have ${i} than ${a} properties`},params:({schemaCode:r})=>(0,e._)`{limit: ${r}}`},code(r){const{keyword:a,data:i,schemaCode:c}=r,u=a==="maxProperties"?e.operators.GT:e.operators.LT;r.fail$data((0,e._)`Object.keys(${i}).length ${u} ${c}`)}};return jh.default=n,jh}var $h={},j2;function VX(){if(j2)return $h;j2=1,Object.defineProperty($h,"__esModule",{value:!0});const e=Vo(),t=ht(),n=Tt(),a={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:i}})=>(0,t.str)`must have required property '${i}'`,params:({params:{missingProperty:i}})=>(0,t._)`{missingProperty: ${i}}`},code(i){const{gen:c,schema:u,schemaCode:d,data:f,$data:m,it:p}=i,{opts:g}=p;if(!m&&u.length===0)return;const y=u.length>=g.loopRequired;if(p.allErrors?w():S(),g.strictRequired){const E=i.parentSchema.properties,{definedProperties:T}=i.it;for(const O of u)if(E?.[O]===void 0&&!T.has(O)){const C=p.schemaEnv.baseId+p.errSchemaPath,I=`required property "${O}" is not defined at "${C}" (strictRequired)`;(0,n.checkStrictMode)(p,I,p.opts.strictRequired)}}function w(){if(y||m)i.block$data(t.nil,b);else for(const E of u)(0,e.checkReportMissingProp)(i,E)}function S(){const E=c.let("missing");if(y||m){const T=c.let("valid",!0);i.block$data(T,()=>R(E,T)),i.ok(T)}else c.if((0,e.checkMissingProp)(i,u,E)),(0,e.reportMissingProp)(i,E),c.else()}function b(){c.forOf("prop",d,E=>{i.setParams({missingProperty:E}),c.if((0,e.noPropertyInData)(c,f,E,g.ownProperties),()=>i.error())})}function R(E,T){i.setParams({missingProperty:E}),c.forOf(E,d,()=>{c.assign(T,(0,e.propertyInData)(c,f,E,g.ownProperties)),c.if((0,t.not)(T),()=>{i.error(),c.break()})},t.nil)}}};return $h.default=a,$h}var Uh={},$2;function FX(){if($2)return Uh;$2=1,Object.defineProperty(Uh,"__esModule",{value:!0});const e=ht(),n={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:r,schemaCode:a}){const i=r==="maxItems"?"more":"fewer";return(0,e.str)`must NOT have ${i} than ${a} items`},params:({schemaCode:r})=>(0,e._)`{limit: ${r}}`},code(r){const{keyword:a,data:i,schemaCode:c}=r,u=a==="maxItems"?e.operators.GT:e.operators.LT;r.fail$data((0,e._)`${i}.length ${u} ${c}`)}};return Uh.default=n,Uh}var zh={},Vh={},U2;function K1(){if(U2)return Vh;U2=1,Object.defineProperty(Vh,"__esModule",{value:!0});const e=XM();return e.code='require("ajv/dist/runtime/equal").default',Vh.default=e,Vh}var z2;function BX(){if(z2)return zh;z2=1,Object.defineProperty(zh,"__esModule",{value:!0});const e=sm(),t=ht(),n=Tt(),r=K1(),i={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:c,j:u}})=>(0,t.str)`must NOT have duplicate items (items ## ${u} and ${c} are identical)`,params:({params:{i:c,j:u}})=>(0,t._)`{i: ${c}, j: ${u}}`},code(c){const{gen:u,data:d,$data:f,schema:m,parentSchema:p,schemaCode:g,it:y}=c;if(!f&&!m)return;const w=u.let("valid"),S=p.items?(0,e.getSchemaTypes)(p.items):[];c.block$data(w,b,(0,t._)`${g} === false`),c.ok(w);function b(){const O=u.let("i",(0,t._)`${d}.length`),C=u.let("j");c.setParams({i:O,j:C}),u.assign(w,!0),u.if((0,t._)`${O} > 1`,()=>(R()?E:T)(O,C))}function R(){return S.length>0&&!S.some(O=>O==="object"||O==="array")}function E(O,C){const I=u.name("item"),N=(0,e.checkDataTypes)(S,I,y.opts.strictNumbers,e.DataType.Wrong),D=u.const("indices",(0,t._)`{}`);u.for((0,t._)`;${O}--;`,()=>{u.let(I,(0,t._)`${d}[${O}]`),u.if(N,(0,t._)`continue`),S.length>1&&u.if((0,t._)`typeof ${I} == "string"`,(0,t._)`${I} += "_"`),u.if((0,t._)`typeof ${D}[${I}] == "number"`,()=>{u.assign(C,(0,t._)`${D}[${I}]`),c.error(),u.assign(w,!1).break()}).code((0,t._)`${D}[${I}] = ${O}`)})}function T(O,C){const I=(0,n.useFunc)(u,r.default),N=u.name("outer");u.label(N).for((0,t._)`;${O}--;`,()=>u.for((0,t._)`${C} = ${O}; ${C}--;`,()=>u.if((0,t._)`${I}(${d}[${O}], ${d}[${C}])`,()=>{c.error(),u.assign(w,!1).break(N)})))}}};return zh.default=i,zh}var Fh={},V2;function qX(){if(V2)return Fh;V2=1,Object.defineProperty(Fh,"__esModule",{value:!0});const e=ht(),t=Tt(),n=K1(),a={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:i})=>(0,e._)`{allowedValue: ${i}}`},code(i){const{gen:c,data:u,$data:d,schemaCode:f,schema:m}=i;d||m&&typeof m=="object"?i.fail$data((0,e._)`!${(0,t.useFunc)(c,n.default)}(${u}, ${f})`):i.fail((0,e._)`${m} !== ${u}`)}};return Fh.default=a,Fh}var Bh={},F2;function HX(){if(F2)return Bh;F2=1,Object.defineProperty(Bh,"__esModule",{value:!0});const e=ht(),t=Tt(),n=K1(),a={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:i})=>(0,e._)`{allowedValues: ${i}}`},code(i){const{gen:c,data:u,$data:d,schema:f,schemaCode:m,it:p}=i;if(!d&&f.length===0)throw new Error("enum must have non-empty array");const g=f.length>=p.opts.loopEnum;let y;const w=()=>y??(y=(0,t.useFunc)(c,n.default));let S;if(g||d)S=c.let("valid"),i.block$data(S,b);else{if(!Array.isArray(f))throw new Error("ajv implementation error");const E=c.const("vSchema",m);S=(0,e.or)(...f.map((T,O)=>R(E,O)))}i.pass(S);function b(){c.assign(S,!1),c.forOf("v",m,E=>c.if((0,e._)`${w()}(${u}, ${E})`,()=>c.assign(S,!0).break()))}function R(E,T){const O=f[T];return typeof O=="object"&&O!==null?(0,e._)`${w()}(${u}, ${E}[${T}])`:(0,e._)`${u} === ${O}`}}};return Bh.default=a,Bh}var B2;function GX(){if(B2)return kh;B2=1,Object.defineProperty(kh,"__esModule",{value:!0});const e=DX(),t=LX(),n=$X(),r=UX(),a=zX(),i=VX(),c=FX(),u=BX(),d=qX(),f=HX(),m=[e.default,t.default,n.default,r.default,a.default,i.default,c.default,u.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},d.default,f.default];return kh.default=m,kh}var qh={},Uc={},q2;function eP(){if(q2)return Uc;q2=1,Object.defineProperty(Uc,"__esModule",{value:!0}),Uc.validateAdditionalItems=void 0;const e=ht(),t=Tt(),r={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],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{parentSchema:c,it:u}=i,{items:d}=c;if(!Array.isArray(d)){(0,t.checkStrictMode)(u,'"additionalItems" is ignored when "items" is not an array of schemas');return}a(i,d)}};function a(i,c){const{gen:u,schema:d,data:f,keyword:m,it:p}=i;p.items=!0;const g=u.const("len",(0,e._)`${f}.length`);if(d===!1)i.setParams({len:c.length}),i.pass((0,e._)`${g} <= ${c.length}`);else if(typeof d=="object"&&!(0,t.alwaysValidSchema)(p,d)){const w=u.var("valid",(0,e._)`${g} <= ${c.length}`);u.if((0,e.not)(w),()=>y(w)),i.ok(w)}function y(w){u.forRange("i",c.length,g,S=>{i.subschema({keyword:m,dataProp:S,dataPropType:t.Type.Num},w),p.allErrors||u.if((0,e.not)(w),()=>u.break())})}}return Uc.validateAdditionalItems=a,Uc.default=r,Uc}var Hh={},zc={},H2;function tP(){if(H2)return zc;H2=1,Object.defineProperty(zc,"__esModule",{value:!0}),zc.validateTuple=void 0;const e=ht(),t=Tt(),n=Vo(),r={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(i){const{schema:c,it:u}=i;if(Array.isArray(c))return a(i,"additionalItems",c);u.items=!0,!(0,t.alwaysValidSchema)(u,c)&&i.ok((0,n.validateArray)(i))}};function a(i,c,u=i.schema){const{gen:d,parentSchema:f,data:m,keyword:p,it:g}=i;S(f),g.opts.unevaluated&&u.length&&g.items!==!0&&(g.items=t.mergeEvaluated.items(d,u.length,g.items));const y=d.name("valid"),w=d.const("len",(0,e._)`${m}.length`);u.forEach((b,R)=>{(0,t.alwaysValidSchema)(g,b)||(d.if((0,e._)`${w} > ${R}`,()=>i.subschema({keyword:p,schemaProp:R,dataProp:R},y)),i.ok(y))});function S(b){const{opts:R,errSchemaPath:E}=g,T=u.length,O=T===b.minItems&&(T===b.maxItems||b[c]===!1);if(R.strictTuples&&!O){const C=`"${p}" is ${T}-tuple, but minItems or maxItems/${c} are not specified or different at path "${E}"`;(0,t.checkStrictMode)(g,C,R.strictTuples)}}}return zc.validateTuple=a,zc.default=r,zc}var G2;function ZX(){if(G2)return Hh;G2=1,Object.defineProperty(Hh,"__esModule",{value:!0});const e=tP(),t={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:n=>(0,e.validateTuple)(n,"items")};return Hh.default=t,Hh}var Gh={},Z2;function KX(){if(Z2)return Gh;Z2=1,Object.defineProperty(Gh,"__esModule",{value:!0});const e=ht(),t=Tt(),n=Vo(),r=eP(),i={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:c}})=>(0,e.str)`must NOT have more than ${c} items`,params:({params:{len:c}})=>(0,e._)`{limit: ${c}}`},code(c){const{schema:u,parentSchema:d,it:f}=c,{prefixItems:m}=d;f.items=!0,!(0,t.alwaysValidSchema)(f,u)&&(m?(0,r.validateAdditionalItems)(c,m):c.ok((0,n.validateArray)(c)))}};return Gh.default=i,Gh}var Zh={},K2;function WX(){if(K2)return Zh;K2=1,Object.defineProperty(Zh,"__esModule",{value:!0});const e=ht(),t=Tt(),r={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:a,max:i}})=>i===void 0?(0,e.str)`must contain at least ${a} valid item(s)`:(0,e.str)`must contain at least ${a} and no more than ${i} valid item(s)`,params:({params:{min:a,max:i}})=>i===void 0?(0,e._)`{minContains: ${a}}`:(0,e._)`{minContains: ${a}, maxContains: ${i}}`},code(a){const{gen:i,schema:c,parentSchema:u,data:d,it:f}=a;let m,p;const{minContains:g,maxContains:y}=u;f.opts.next?(m=g===void 0?1:g,p=y):m=1;const w=i.const("len",(0,e._)`${d}.length`);if(a.setParams({min:m,max:p}),p===void 0&&m===0){(0,t.checkStrictMode)(f,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(p!==void 0&&m>p){(0,t.checkStrictMode)(f,'"minContains" > "maxContains" is always invalid'),a.fail();return}if((0,t.alwaysValidSchema)(f,c)){let T=(0,e._)`${w} >= ${m}`;p!==void 0&&(T=(0,e._)`${T} && ${w} <= ${p}`),a.pass(T);return}f.items=!0;const S=i.name("valid");p===void 0&&m===1?R(S,()=>i.if(S,()=>i.break())):m===0?(i.let(S,!0),p!==void 0&&i.if((0,e._)`${d}.length > 0`,b)):(i.let(S,!1),b()),a.result(S,()=>a.reset());function b(){const T=i.name("_valid"),O=i.let("count",0);R(T,()=>i.if(T,()=>E(O)))}function R(T,O){i.forRange("i",0,w,C=>{a.subschema({keyword:"contains",dataProp:C,dataPropType:t.Type.Num,compositeRule:!0},T),O()})}function E(T){i.code((0,e._)`${T}++`),p===void 0?i.if((0,e._)`${T} >= ${m}`,()=>i.assign(S,!0).break()):(i.if((0,e._)`${T} > ${p}`,()=>i.assign(S,!1).break()),m===1?i.assign(S,!0):i.if((0,e._)`${T} >= ${m}`,()=>i.assign(S,!0)))}}};return Zh.default=r,Zh}var L0={},W2;function YX(){return W2||(W2=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=ht(),n=Tt(),r=Vo();e.error={message:({params:{property:d,depsCount:f,deps:m}})=>{const p=f===1?"property":"properties";return(0,t.str)`must have ${p} ${m} when property ${d} is present`},params:({params:{property:d,depsCount:f,deps:m,missingProperty:p}})=>(0,t._)`{property: ${d},
|
|
160
|
-
missingProperty: ${p},
|
|
161
|
-
depsCount: ${f},
|
|
162
|
-
deps: ${m}}`};const a={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(d){const[f,m]=i(d);c(d,f),u(d,m)}};function i({schema:d}){const f={},m={};for(const p in d){if(p==="__proto__")continue;const g=Array.isArray(d[p])?f:m;g[p]=d[p]}return[f,m]}function c(d,f=d.schema){const{gen:m,data:p,it:g}=d;if(Object.keys(f).length===0)return;const y=m.let("missing");for(const w in f){const S=f[w];if(S.length===0)continue;const b=(0,r.propertyInData)(m,p,w,g.opts.ownProperties);d.setParams({property:w,depsCount:S.length,deps:S.join(", ")}),g.allErrors?m.if(b,()=>{for(const R of S)(0,r.checkReportMissingProp)(d,R)}):(m.if((0,t._)`${b} && (${(0,r.checkMissingProp)(d,S,y)})`),(0,r.reportMissingProp)(d,y),m.else())}}e.validatePropertyDeps=c;function u(d,f=d.schema){const{gen:m,data:p,keyword:g,it:y}=d,w=m.name("valid");for(const S in f)(0,n.alwaysValidSchema)(y,f[S])||(m.if((0,r.propertyInData)(m,p,S,y.opts.ownProperties),()=>{const b=d.subschema({keyword:g,schemaProp:S},w);d.mergeValidEvaluated(b,w)},()=>m.var(w,!0)),d.ok(w))}e.validateSchemaDeps=u,e.default=a})(L0)),L0}var Kh={},Y2;function QX(){if(Y2)return Kh;Y2=1,Object.defineProperty(Kh,"__esModule",{value:!0});const e=ht(),t=Tt(),r={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:a})=>(0,e._)`{propertyName: ${a.propertyName}}`},code(a){const{gen:i,schema:c,data:u,it:d}=a;if((0,t.alwaysValidSchema)(d,c))return;const f=i.name("valid");i.forIn("key",u,m=>{a.setParams({propertyName:m}),a.subschema({keyword:"propertyNames",data:m,dataTypes:["string"],propertyName:m,compositeRule:!0},f),i.if((0,e.not)(f),()=>{a.error(!0),d.allErrors||i.break()})}),a.ok(f)}};return Kh.default=r,Kh}var Wh={},Q2;function nP(){if(Q2)return Wh;Q2=1,Object.defineProperty(Wh,"__esModule",{value:!0});const e=Vo(),t=ht(),n=Hs(),r=Tt(),i={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:c})=>(0,t._)`{additionalProperty: ${c.additionalProperty}}`},code(c){const{gen:u,schema:d,parentSchema:f,data:m,errsCount:p,it:g}=c;if(!p)throw new Error("ajv implementation error");const{allErrors:y,opts:w}=g;if(g.props=!0,w.removeAdditional!=="all"&&(0,r.alwaysValidSchema)(g,d))return;const S=(0,e.allSchemaProperties)(f.properties),b=(0,e.allSchemaProperties)(f.patternProperties);R(),c.ok((0,t._)`${p} === ${n.default.errors}`);function R(){u.forIn("key",m,I=>{!S.length&&!b.length?O(I):u.if(E(I),()=>O(I))})}function E(I){let N;if(S.length>8){const D=(0,r.schemaRefOrVal)(g,f.properties,"properties");N=(0,e.isOwnProperty)(u,D,I)}else S.length?N=(0,t.or)(...S.map(D=>(0,t._)`${I} === ${D}`)):N=t.nil;return b.length&&(N=(0,t.or)(N,...b.map(D=>(0,t._)`${(0,e.usePattern)(c,D)}.test(${I})`))),(0,t.not)(N)}function T(I){u.code((0,t._)`delete ${m}[${I}]`)}function O(I){if(w.removeAdditional==="all"||w.removeAdditional&&d===!1){T(I);return}if(d===!1){c.setParams({additionalProperty:I}),c.error(),y||u.break();return}if(typeof d=="object"&&!(0,r.alwaysValidSchema)(g,d)){const N=u.name("valid");w.removeAdditional==="failing"?(C(I,N,!1),u.if((0,t.not)(N),()=>{c.reset(),T(I)})):(C(I,N),y||u.if((0,t.not)(N),()=>u.break()))}}function C(I,N,D){const z={keyword:"additionalProperties",dataProp:I,dataPropType:r.Type.Str};D===!1&&Object.assign(z,{compositeRule:!0,createErrors:!1,allErrors:!1}),c.subschema(z,N)}}};return Wh.default=i,Wh}var Yh={},X2;function XX(){if(X2)return Yh;X2=1,Object.defineProperty(Yh,"__esModule",{value:!0});const e=ng(),t=Vo(),n=Tt(),r=nP(),a={keyword:"properties",type:"object",schemaType:"object",code(i){const{gen:c,schema:u,parentSchema:d,data:f,it:m}=i;m.opts.removeAdditional==="all"&&d.additionalProperties===void 0&&r.default.code(new e.KeywordCxt(m,r.default,"additionalProperties"));const p=(0,t.allSchemaProperties)(u);for(const b of p)m.definedProperties.add(b);m.opts.unevaluated&&p.length&&m.props!==!0&&(m.props=n.mergeEvaluated.props(c,(0,n.toHash)(p),m.props));const g=p.filter(b=>!(0,n.alwaysValidSchema)(m,u[b]));if(g.length===0)return;const y=c.name("valid");for(const b of g)w(b)?S(b):(c.if((0,t.propertyInData)(c,f,b,m.opts.ownProperties)),S(b),m.allErrors||c.else().var(y,!0),c.endIf()),i.it.definedProperties.add(b),i.ok(y);function w(b){return m.opts.useDefaults&&!m.compositeRule&&u[b].default!==void 0}function S(b){i.subschema({keyword:"properties",schemaProp:b,dataProp:b},y)}}};return Yh.default=a,Yh}var Qh={},J2;function JX(){if(J2)return Qh;J2=1,Object.defineProperty(Qh,"__esModule",{value:!0});const e=Vo(),t=ht(),n=Tt(),r=Tt(),a={keyword:"patternProperties",type:"object",schemaType:"object",code(i){const{gen:c,schema:u,data:d,parentSchema:f,it:m}=i,{opts:p}=m,g=(0,e.allSchemaProperties)(u),y=g.filter(O=>(0,n.alwaysValidSchema)(m,u[O]));if(g.length===0||y.length===g.length&&(!m.opts.unevaluated||m.props===!0))return;const w=p.strictSchema&&!p.allowMatchingProperties&&f.properties,S=c.name("valid");m.props!==!0&&!(m.props instanceof t.Name)&&(m.props=(0,r.evaluatedPropsToName)(c,m.props));const{props:b}=m;R();function R(){for(const O of g)w&&E(O),m.allErrors?T(O):(c.var(S,!0),T(O),c.if(S))}function E(O){for(const C in w)new RegExp(O).test(C)&&(0,n.checkStrictMode)(m,`property ${C} matches pattern ${O} (use allowMatchingProperties)`)}function T(O){c.forIn("key",d,C=>{c.if((0,t._)`${(0,e.usePattern)(i,O)}.test(${C})`,()=>{const I=y.includes(O);I||i.subschema({keyword:"patternProperties",schemaProp:O,dataProp:C,dataPropType:r.Type.Str},S),m.opts.unevaluated&&b!==!0?c.assign((0,t._)`${b}[${C}]`,!0):!I&&!m.allErrors&&c.if((0,t.not)(S),()=>c.break())})})}}};return Qh.default=a,Qh}var Xh={},eC;function eJ(){if(eC)return Xh;eC=1,Object.defineProperty(Xh,"__esModule",{value:!0});const e=Tt(),t={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(n){const{gen:r,schema:a,it:i}=n;if((0,e.alwaysValidSchema)(i,a)){n.fail();return}const c=r.name("valid");n.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},c),n.failResult(c,()=>n.reset(),()=>n.error())},error:{message:"must NOT be valid"}};return Xh.default=t,Xh}var Jh={},tC;function tJ(){if(tC)return Jh;tC=1,Object.defineProperty(Jh,"__esModule",{value:!0});const t={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:Vo().validateUnion,error:{message:"must match a schema in anyOf"}};return Jh.default=t,Jh}var ep={},nC;function nJ(){if(nC)return ep;nC=1,Object.defineProperty(ep,"__esModule",{value:!0});const e=ht(),t=Tt(),r={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:a})=>(0,e._)`{passingSchemas: ${a.passing}}`},code(a){const{gen:i,schema:c,parentSchema:u,it:d}=a;if(!Array.isArray(c))throw new Error("ajv implementation error");if(d.opts.discriminator&&u.discriminator)return;const f=c,m=i.let("valid",!1),p=i.let("passing",null),g=i.name("_valid");a.setParams({passing:p}),i.block(y),a.result(m,()=>a.reset(),()=>a.error(!0));function y(){f.forEach((w,S)=>{let b;(0,t.alwaysValidSchema)(d,w)?i.var(g,!0):b=a.subschema({keyword:"oneOf",schemaProp:S,compositeRule:!0},g),S>0&&i.if((0,e._)`${g} && ${m}`).assign(m,!1).assign(p,(0,e._)`[${p}, ${S}]`).else(),i.if(g,()=>{i.assign(m,!0),i.assign(p,S),b&&a.mergeEvaluated(b,e.Name)})})}}};return ep.default=r,ep}var tp={},rC;function rJ(){if(rC)return tp;rC=1,Object.defineProperty(tp,"__esModule",{value:!0});const e=Tt(),t={keyword:"allOf",schemaType:"array",code(n){const{gen:r,schema:a,it:i}=n;if(!Array.isArray(a))throw new Error("ajv implementation error");const c=r.name("valid");a.forEach((u,d)=>{if((0,e.alwaysValidSchema)(i,u))return;const f=n.subschema({keyword:"allOf",schemaProp:d},c);n.ok(c),n.mergeEvaluated(f)})}};return tp.default=t,tp}var np={},oC;function oJ(){if(oC)return np;oC=1,Object.defineProperty(np,"__esModule",{value:!0});const e=ht(),t=Tt(),r={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:i})=>(0,e.str)`must match "${i.ifClause}" schema`,params:({params:i})=>(0,e._)`{failingKeyword: ${i.ifClause}}`},code(i){const{gen:c,parentSchema:u,it:d}=i;u.then===void 0&&u.else===void 0&&(0,t.checkStrictMode)(d,'"if" without "then" and "else" is ignored');const f=a(d,"then"),m=a(d,"else");if(!f&&!m)return;const p=c.let("valid",!0),g=c.name("_valid");if(y(),i.reset(),f&&m){const S=c.let("ifClause");i.setParams({ifClause:S}),c.if(g,w("then",S),w("else",S))}else f?c.if(g,w("then")):c.if((0,e.not)(g),w("else"));i.pass(p,()=>i.error(!0));function y(){const S=i.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},g);i.mergeEvaluated(S)}function w(S,b){return()=>{const R=i.subschema({keyword:S},g);c.assign(p,g),i.mergeValidEvaluated(R,p),b?c.assign(b,(0,e._)`${S}`):i.setParams({ifClause:S})}}}};function a(i,c){const u=i.schema[c];return u!==void 0&&!(0,t.alwaysValidSchema)(i,u)}return np.default=r,np}var rp={},aC;function aJ(){if(aC)return rp;aC=1,Object.defineProperty(rp,"__esModule",{value:!0});const e=Tt(),t={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:n,parentSchema:r,it:a}){r.if===void 0&&(0,e.checkStrictMode)(a,`"${n}" without "if" is ignored`)}};return rp.default=t,rp}var sC;function sJ(){if(sC)return qh;sC=1,Object.defineProperty(qh,"__esModule",{value:!0});const e=eP(),t=ZX(),n=tP(),r=KX(),a=WX(),i=YX(),c=QX(),u=nP(),d=XX(),f=JX(),m=eJ(),p=tJ(),g=nJ(),y=rJ(),w=oJ(),S=aJ();function b(R=!1){const E=[m.default,p.default,g.default,y.default,w.default,S.default,c.default,u.default,i.default,d.default,f.default];return R?E.push(t.default,r.default):E.push(e.default,n.default),E.push(a.default),E}return qh.default=b,qh}var op={},ap={},iC;function iJ(){if(iC)return ap;iC=1,Object.defineProperty(ap,"__esModule",{value:!0});const e=ht(),n={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:r})=>(0,e.str)`must match format "${r}"`,params:({schemaCode:r})=>(0,e._)`{format: ${r}}`},code(r,a){const{gen:i,data:c,$data:u,schema:d,schemaCode:f,it:m}=r,{opts:p,errSchemaPath:g,schemaEnv:y,self:w}=m;if(!p.validateFormats)return;u?S():b();function S(){const R=i.scopeValue("formats",{ref:w.formats,code:p.code.formats}),E=i.const("fDef",(0,e._)`${R}[${f}]`),T=i.let("fType"),O=i.let("format");i.if((0,e._)`typeof ${E} == "object" && !(${E} instanceof RegExp)`,()=>i.assign(T,(0,e._)`${E}.type || "string"`).assign(O,(0,e._)`${E}.validate`),()=>i.assign(T,(0,e._)`"string"`).assign(O,E)),r.fail$data((0,e.or)(C(),I()));function C(){return p.strictSchema===!1?e.nil:(0,e._)`${f} && !${O}`}function I(){const N=y.$async?(0,e._)`(${E}.async ? await ${O}(${c}) : ${O}(${c}))`:(0,e._)`${O}(${c})`,D=(0,e._)`(typeof ${O} == "function" ? ${N} : ${O}.test(${c}))`;return(0,e._)`${O} && ${O} !== true && ${T} === ${a} && !${D}`}}function b(){const R=w.formats[d];if(!R){C();return}if(R===!0)return;const[E,T,O]=I(R);E===a&&r.pass(N());function C(){if(p.strictSchema===!1){w.logger.warn(D());return}throw new Error(D());function D(){return`unknown format "${d}" ignored in schema at path "${g}"`}}function I(D){const z=D instanceof RegExp?(0,e.regexpCode)(D):p.code.formats?(0,e._)`${p.code.formats}${(0,e.getProperty)(d)}`:void 0,W=i.scopeValue("formats",{key:d,ref:D,code:z});return typeof D=="object"&&!(D instanceof RegExp)?[D.type||"string",D.validate,(0,e._)`${W}.validate`]:["string",D,W]}function N(){if(typeof R=="object"&&!(R instanceof RegExp)&&R.async){if(!y.$async)throw new Error("async format in sync schema");return(0,e._)`await ${O}(${c})`}return typeof T=="function"?(0,e._)`${O}(${c})`:(0,e._)`${O}.test(${c})`}}}};return ap.default=n,ap}var cC;function cJ(){if(cC)return op;cC=1,Object.defineProperty(op,"__esModule",{value:!0});const t=[iJ().default];return op.default=t,op}var _i={},lC;function lJ(){return lC||(lC=1,Object.defineProperty(_i,"__esModule",{value:!0}),_i.contentVocabulary=_i.metadataVocabulary=void 0,_i.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],_i.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]),_i}var uC;function uJ(){if(uC)return Ch;uC=1,Object.defineProperty(Ch,"__esModule",{value:!0});const e=PX(),t=GX(),n=sJ(),r=cJ(),a=lJ(),i=[e.default,t.default,(0,n.default)(),r.default,a.metadataVocabulary,a.contentVocabulary];return Ch.default=i,Ch}var sp={},Au={},dC;function dJ(){if(dC)return Au;dC=1,Object.defineProperty(Au,"__esModule",{value:!0}),Au.DiscrError=void 0;var e;return(function(t){t.Tag="tag",t.Mapping="mapping"})(e||(Au.DiscrError=e={})),Au}var fC;function fJ(){if(fC)return sp;fC=1,Object.defineProperty(sp,"__esModule",{value:!0});const e=ht(),t=dJ(),n=Z1(),r=rg(),a=Tt(),c={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:u,tagName:d}})=>u===t.DiscrError.Tag?`tag "${d}" must be string`:`value of tag "${d}" must be in oneOf`,params:({params:{discrError:u,tag:d,tagName:f}})=>(0,e._)`{error: ${u}, tag: ${f}, tagValue: ${d}}`},code(u){const{gen:d,data:f,schema:m,parentSchema:p,it:g}=u,{oneOf:y}=p;if(!g.opts.discriminator)throw new Error("discriminator: requires discriminator option");const w=m.propertyName;if(typeof w!="string")throw new Error("discriminator: requires propertyName");if(m.mapping)throw new Error("discriminator: mapping is not supported");if(!y)throw new Error("discriminator: requires oneOf keyword");const S=d.let("valid",!1),b=d.const("tag",(0,e._)`${f}${(0,e.getProperty)(w)}`);d.if((0,e._)`typeof ${b} == "string"`,()=>R(),()=>u.error(!1,{discrError:t.DiscrError.Tag,tag:b,tagName:w})),u.ok(S);function R(){const O=T();d.if(!1);for(const C in O)d.elseIf((0,e._)`${b} === ${C}`),d.assign(S,E(O[C]));d.else(),u.error(!1,{discrError:t.DiscrError.Mapping,tag:b,tagName:w}),d.endIf()}function E(O){const C=d.name("valid"),I=u.subschema({keyword:"oneOf",schemaProp:O},C);return u.mergeEvaluated(I,e.Name),C}function T(){var O;const C={},I=D(p);let N=!0;for(let V=0;V<y.length;V++){let G=y[V];if(G?.$ref&&!(0,a.schemaHasRulesButRef)(G,g.self.RULES)){const J=G.$ref;if(G=n.resolveRef.call(g.self,g.schemaEnv.root,g.baseId,J),G instanceof n.SchemaEnv&&(G=G.schema),G===void 0)throw new r.default(g.opts.uriResolver,g.baseId,J)}const U=(O=G?.properties)===null||O===void 0?void 0:O[w];if(typeof U!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${w}"`);N=N&&(I||D(G)),z(U,V)}if(!N)throw new Error(`discriminator: "${w}" must be required`);return C;function D({required:V}){return Array.isArray(V)&&V.includes(w)}function z(V,G){if(V.const)W(V.const,G);else if(V.enum)for(const U of V.enum)W(U,G);else throw new Error(`discriminator: "properties/${w}" must have "const" or "enum"`)}function W(V,G){if(typeof V!="string"||V in C)throw new Error(`discriminator: "${w}" values must be unique strings`);C[V]=G}}}};return sp.default=c,sp}const hJ="http://json-schema.org/draft-07/schema#",pJ="http://json-schema.org/draft-07/schema#",mJ="Core schema meta-schema",gJ={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:[]}},vJ=["object","boolean"],yJ={$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:"#"}},_J={$schema:hJ,$id:pJ,title:mJ,definitions:gJ,type:vJ,properties:yJ,default:!0};var hC;function rP(){return hC||(hC=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 n=kX(),r=uJ(),a=fJ(),i=_J,c=["/properties"],u="http://json-schema.org/draft-07/schema";class d extends n.default{_addVocabularies(){super._addVocabularies(),r.default.forEach(w=>this.addVocabulary(w)),this.opts.discriminator&&this.addKeyword(a.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const w=this.opts.$data?this.$dataMetaSchema(i,c):i;this.addMetaSchema(w,u,!1),this.refs["http://json-schema.org/schema"]=u}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(u)?u:void 0)}}t.Ajv=d,e.exports=t=d,e.exports.Ajv=d,Object.defineProperty(t,"__esModule",{value:!0}),t.default=d;var f=ng();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return f.KeywordCxt}});var m=ht();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 p=G1();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return p.default}});var g=rg();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return g.default}})})(Eh,Eh.exports)),Eh.exports}var bJ=rP();const wJ=ja(bJ);var ip={exports:{}},j0={},pC;function SJ(){return pC||(pC=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0;function t(V,G){return{validate:V,compare:G}}e.fullFormats={date:t(i,c),time:t(d(!0),f),"date-time":t(g(!0),y),"iso-time":t(d(),m),"iso-date-time":t(g(),w),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:R,"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:W,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:T,int32:{type:"number",validate:I},int64:{type:"number",validate:N},float:{type:"number",validate:D},double:{type:"number",validate:D},password:!0,binary:!0},e.fastFormats={...e.fullFormats,date:t(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,c),time:t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,f),"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,y),"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,w),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 n(V){return V%4===0&&(V%100!==0||V%400===0)}const r=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,a=[0,31,28,31,30,31,30,31,31,30,31,30,31];function i(V){const G=r.exec(V);if(!G)return!1;const U=+G[1],J=+G[2],ie=+G[3];return J>=1&&J<=12&&ie>=1&&ie<=(J===2&&n(U)?29:a[J])}function c(V,G){if(V&&G)return V>G?1:V<G?-1:0}const u=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function d(V){return function(U){const J=u.exec(U);if(!J)return!1;const ie=+J[1],F=+J[2],X=+J[3],ae=J[4],fe=J[5]==="-"?-1:1,K=+(J[6]||0),P=+(J[7]||0);if(K>23||P>59||V&&!ae)return!1;if(ie<=23&&F<=59&&X<60)return!0;const q=F-P*fe,B=ie-K*fe-(q<0?1:0);return(B===23||B===-1)&&(q===59||q===-1)&&X<61}}function f(V,G){if(!(V&&G))return;const U=new Date("2020-01-01T"+V).valueOf(),J=new Date("2020-01-01T"+G).valueOf();if(U&&J)return U-J}function m(V,G){if(!(V&&G))return;const U=u.exec(V),J=u.exec(G);if(U&&J)return V=U[1]+U[2]+U[3],G=J[1]+J[2]+J[3],V>G?1:V<G?-1:0}const p=/t|\s/i;function g(V){const G=d(V);return function(J){const ie=J.split(p);return ie.length===2&&i(ie[0])&&G(ie[1])}}function y(V,G){if(!(V&&G))return;const U=new Date(V).valueOf(),J=new Date(G).valueOf();if(U&&J)return U-J}function w(V,G){if(!(V&&G))return;const[U,J]=V.split(p),[ie,F]=G.split(p),X=c(U,ie);if(X!==void 0)return X||f(J,F)}const S=/\/|:/,b=/^(?:[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 R(V){return S.test(V)&&b.test(V)}const E=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function T(V){return E.lastIndex=0,E.test(V)}const O=-2147483648,C=2**31-1;function I(V){return Number.isInteger(V)&&V<=C&&V>=O}function N(V){return Number.isInteger(V)}function D(){return!0}const z=/[^\\]\\Z/;function W(V){if(z.test(V))return!1;try{return new RegExp(V),!0}catch{return!1}}})(j0)),j0}var $0={},mC;function EJ(){return mC||(mC=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=rP(),n=ht(),r=n.operators,a={formatMaximum:{okStr:"<=",ok:r.LTE,fail:r.GT},formatMinimum:{okStr:">=",ok:r.GTE,fail:r.LT},formatExclusiveMaximum:{okStr:"<",ok:r.LT,fail:r.GTE},formatExclusiveMinimum:{okStr:">",ok:r.GT,fail:r.LTE}},i={message:({keyword:u,schemaCode:d})=>(0,n.str)`should be ${a[u].okStr} ${d}`,params:({keyword:u,schemaCode:d})=>(0,n._)`{comparison: ${a[u].okStr}, limit: ${d}}`};e.formatLimitDefinition={keyword:Object.keys(a),type:"string",schemaType:"string",$data:!0,error:i,code(u){const{gen:d,data:f,schemaCode:m,keyword:p,it:g}=u,{opts:y,self:w}=g;if(!y.validateFormats)return;const S=new t.KeywordCxt(g,w.RULES.all.format.definition,"format");S.$data?b():R();function b(){const T=d.scopeValue("formats",{ref:w.formats,code:y.code.formats}),O=d.const("fmt",(0,n._)`${T}[${S.schemaCode}]`);u.fail$data((0,n.or)((0,n._)`typeof ${O} != "object"`,(0,n._)`${O} instanceof RegExp`,(0,n._)`typeof ${O}.compare != "function"`,E(O)))}function R(){const T=S.schema,O=w.formats[T];if(!O||O===!0)return;if(typeof O!="object"||O instanceof RegExp||typeof O.compare!="function")throw new Error(`"${p}": format "${T}" does not define "compare" function`);const C=d.scopeValue("formats",{key:T,ref:O,code:y.code.formats?(0,n._)`${y.code.formats}${(0,n.getProperty)(T)}`:void 0});u.fail$data(E(C))}function E(T){return(0,n._)`${T}.compare(${f}, ${m}) ${a[p].fail} 0`}},dependencies:["format"]};const c=u=>(u.addKeyword(e.formatLimitDefinition),u);e.default=c})($0)),$0}var gC;function RJ(){return gC||(gC=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const n=SJ(),r=EJ(),a=ht(),i=new a.Name("fullFormats"),c=new a.Name("fastFormats"),u=(f,m={keywords:!0})=>{if(Array.isArray(m))return d(f,m,n.fullFormats,i),f;const[p,g]=m.mode==="fast"?[n.fastFormats,c]:[n.fullFormats,i],y=m.formats||n.formatNames;return d(f,y,p,g),m.keywords&&(0,r.default)(f),f};u.get=(f,m="full")=>{const g=(m==="fast"?n.fastFormats:n.fullFormats)[f];if(!g)throw new Error(`Unknown format "${f}"`);return g};function d(f,m,p,g){var y,w;(y=(w=f.opts.code).formats)!==null&&y!==void 0||(w.formats=(0,a._)`require("ajv-formats/dist/formats").${g}`);for(const S of m)f.addFormat(S,p[S])}e.exports=t=u,Object.defineProperty(t,"__esModule",{value:!0}),t.default=u})(ip,ip.exports)),ip.exports}var xJ=RJ();const TJ=ja(xJ);function OJ(){const e=new wJ({strict:!1,validateFormats:!0,validateSchema:!1,allErrors:!0});return TJ(e),e}class CJ{constructor(t){this._ajv=t??OJ()}getValidator(t){const n="$id"in t&&typeof t.$id=="string"?this._ajv.getSchema(t.$id)??this._ajv.compile(t):this._ajv.compile(t);return r=>n(r)?{valid:!0,data:r,errorMessage:void 0}:{valid:!1,data:void 0,errorMessage:this._ajv.errorsText(n.errors)}}}class AJ{constructor(t){this._client=t}async*callToolStream(t,n=Jm,r){const a=this._client,i={...r,task:r?.task??(a.isToolTask(t.name)?{}:void 0)},c=a.requestStream({method:"tools/call",params:t},n,i),u=a.getToolOutputValidator(t.name);for await(const d of c){if(d.type==="result"&&u){const f=d.result;if(!f.structuredContent&&!f.isError){yield{type:"error",error:new Ke(et.InvalidRequest,`Tool ${t.name} has an output schema but did not return structured content`)};return}if(f.structuredContent)try{const m=u(f.structuredContent);if(!m.valid){yield{type:"error",error:new Ke(et.InvalidParams,`Structured content does not match the tool's output schema: ${m.errorMessage}`)};return}}catch(m){if(m instanceof Ke){yield{type:"error",error:m};return}yield{type:"error",error:new Ke(et.InvalidParams,`Failed to validate structured content: ${m instanceof Error?m.message:String(m)}`)};return}}yield d}}async getTask(t,n){return this._client.getTask({taskId:t},n)}async getTaskResult(t,n,r){return this._client.getTaskResult({taskId:t},n,r)}async listTasks(t,n){return this._client.listTasks(t?{cursor:t}:void 0,n)}async cancelTask(t,n){return this._client.cancelTask({taskId:t},n)}requestStream(t,n,r){return this._client.requestStream(t,n,r)}}function IJ(e,t,n){if(!e)throw new Error(`${n} does not support task creation (required for ${t})`);switch(t){case"tools/call":if(!e.tools?.call)throw new Error(`${n} does not support task creation for tools/call (required for ${t})`);break}}function kJ(e,t,n){if(!e)throw new Error(`${n} does not support task creation (required for ${t})`);switch(t){case"sampling/createMessage":if(!e.sampling?.createMessage)throw new Error(`${n} does not support task creation for sampling/createMessage (required for ${t})`);break;case"elicitation/create":if(!e.elicitation?.create)throw new Error(`${n} does not support task creation for elicitation/create (required for ${t})`);break}}function bp(e,t){if(!(!e||t===null||typeof t!="object")){if(e.type==="object"&&e.properties&&typeof e.properties=="object"){const n=t,r=e.properties;for(const a of Object.keys(r)){const i=r[a];n[a]===void 0&&Object.prototype.hasOwnProperty.call(i,"default")&&(n[a]=i.default),n[a]!==void 0&&bp(i,n[a])}}if(Array.isArray(e.anyOf))for(const n of e.anyOf)typeof n!="boolean"&&bp(n,t);if(Array.isArray(e.oneOf))for(const n of e.oneOf)typeof n!="boolean"&&bp(n,t)}}function oP(e){if(!e)return{supportsFormMode:!1,supportsUrlMode:!1};const t=e.form!==void 0,n=e.url!==void 0;return{supportsFormMode:t||!t&&!n,supportsUrlMode:n}}let aP=class extends pX{constructor(t,n){super(n),this._clientInfo=t,this._cachedToolOutputValidators=new Map,this._cachedKnownTaskTools=new Set,this._cachedRequiredTaskTools=new Set,this._listChangedDebounceTimers=new Map,this._capabilities=n?.capabilities??{},this._jsonSchemaValidator=n?.jsonSchemaValidator??new CJ,n?.listChanged&&(this._pendingListChangedConfig=n.listChanged)}_setupListChangedHandlers(t){t.tools&&this._serverCapabilities?.tools?.listChanged&&this._setupListChangedHandler("tools",FM,t.tools,async()=>(await this.listTools()).tools),t.prompts&&this._serverCapabilities?.prompts?.listChanged&&this._setupListChangedHandler("prompts",zM,t.prompts,async()=>(await this.listPrompts()).prompts),t.resources&&this._serverCapabilities?.resources?.listChanged&&this._setupListChangedHandler("resources",jM,t.resources,async()=>(await this.listResources()).resources)}get experimental(){return this._experimental||(this._experimental={tasks:new AJ(this)}),this._experimental}registerCapabilities(t){if(this.transport)throw new Error("Cannot register capabilities after connecting to transport");this._capabilities=mX(this._capabilities,t)}setRequestHandler(t,n){const a=SM(t)?.method;if(!a)throw new Error("Schema is missing a method literal");let i;if(Wm(a)){const u=a;i=u._zod?.def?.value??u.value}else{const u=a;i=u._def?.value??u.value}if(typeof i!="string")throw new Error("Schema method literal must be a string");const c=i;if(c==="elicitation/create"){const u=async(d,f)=>{const m=ws(ZM,d);if(!m.success){const E=m.error instanceof Error?m.error.message:String(m.error);throw new Ke(et.InvalidParams,`Invalid elicitation request: ${E}`)}const{params:p}=m.data;p.mode=p.mode??"form";const{supportsFormMode:g,supportsUrlMode:y}=oP(this._capabilities.elicitation);if(p.mode==="form"&&!g)throw new Ke(et.InvalidParams,"Client does not support form-mode elicitation requests");if(p.mode==="url"&&!y)throw new Ke(et.InvalidParams,"Client does not support URL-mode elicitation requests");const w=await Promise.resolve(n(d,f));if(p.task){const E=ws(dd,w);if(!E.success){const T=E.error instanceof Error?E.error.message:String(E.error);throw new Ke(et.InvalidParams,`Invalid task creation result: ${T}`)}return E.data}const S=ws(KM,w);if(!S.success){const E=S.error instanceof Error?S.error.message:String(S.error);throw new Ke(et.InvalidParams,`Invalid elicitation result: ${E}`)}const b=S.data,R=p.mode==="form"?p.requestedSchema:void 0;if(p.mode==="form"&&b.action==="accept"&&b.content&&R&&this._capabilities.elicitation?.form?.applyDefaults)try{bp(R,b.content)}catch{}return b};return super.setRequestHandler(t,u)}if(c==="sampling/createMessage"){const u=async(d,f)=>{const m=ws(qM,d);if(!m.success){const b=m.error instanceof Error?m.error.message:String(m.error);throw new Ke(et.InvalidParams,`Invalid sampling request: ${b}`)}const{params:p}=m.data,g=await Promise.resolve(n(d,f));if(p.task){const b=ws(dd,g);if(!b.success){const R=b.error instanceof Error?b.error.message:String(b.error);throw new Ke(et.InvalidParams,`Invalid task creation result: ${R}`)}return b.data}const w=p.tools||p.toolChoice?GM:HM,S=ws(w,g);if(!S.success){const b=S.error instanceof Error?S.error.message:String(S.error);throw new Ke(et.InvalidParams,`Invalid sampling result: ${b}`)}return S.data};return super.setRequestHandler(t,u)}return super.setRequestHandler(t,n)}assertCapability(t,n){if(!this._serverCapabilities?.[t])throw new Error(`Server does not support ${t} (required for ${n})`)}async connect(t,n){if(await super.connect(t),t.sessionId===void 0)try{const r=await this.request({method:"initialize",params:{protocolVersion:Ym,capabilities:this._capabilities,clientInfo:this._clientInfo}},CM,n);if(r===void 0)throw new Error(`Server sent invalid initialize result: ${r}`);if(!DY.includes(r.protocolVersion))throw new Error(`Server's protocol version is not supported: ${r.protocolVersion}`);this._serverCapabilities=r.capabilities,this._serverVersion=r.serverInfo,t.setProtocolVersion&&t.setProtocolVersion(r.protocolVersion),this._instructions=r.instructions,await this.notification({method:"notifications/initialized"}),this._pendingListChangedConfig&&(this._setupListChangedHandlers(this._pendingListChangedConfig),this._pendingListChangedConfig=void 0)}catch(r){throw this.close(),r}}getServerCapabilities(){return this._serverCapabilities}getServerVersion(){return this._serverVersion}getInstructions(){return this._instructions}assertCapabilityForMethod(t){switch(t){case"logging/setLevel":if(!this._serverCapabilities?.logging)throw new Error(`Server does not support logging (required for ${t})`);break;case"prompts/get":case"prompts/list":if(!this._serverCapabilities?.prompts)throw new Error(`Server does not support prompts (required for ${t})`);break;case"resources/list":case"resources/templates/list":case"resources/read":case"resources/subscribe":case"resources/unsubscribe":if(!this._serverCapabilities?.resources)throw new Error(`Server does not support resources (required for ${t})`);if(t==="resources/subscribe"&&!this._serverCapabilities.resources.subscribe)throw new Error(`Server does not support resource subscriptions (required for ${t})`);break;case"tools/call":case"tools/list":if(!this._serverCapabilities?.tools)throw new Error(`Server does not support tools (required for ${t})`);break;case"completion/complete":if(!this._serverCapabilities?.completions)throw new Error(`Server does not support completions (required for ${t})`);break}}assertNotificationCapability(t){switch(t){case"notifications/roots/list_changed":if(!this._capabilities.roots?.listChanged)throw new Error(`Client does not support roots list changed notifications (required for ${t})`);break}}assertRequestHandlerCapability(t){if(this._capabilities)switch(t){case"sampling/createMessage":if(!this._capabilities.sampling)throw new Error(`Client does not support sampling capability (required for ${t})`);break;case"elicitation/create":if(!this._capabilities.elicitation)throw new Error(`Client does not support elicitation capability (required for ${t})`);break;case"roots/list":if(!this._capabilities.roots)throw new Error(`Client does not support roots capability (required for ${t})`);break;case"tasks/get":case"tasks/list":case"tasks/result":case"tasks/cancel":if(!this._capabilities.tasks)throw new Error(`Client does not support tasks capability (required for ${t})`);break}}assertTaskCapability(t){IJ(this._serverCapabilities?.tasks?.requests,t,"Server")}assertTaskHandlerCapability(t){this._capabilities&&kJ(this._capabilities.tasks?.requests,t,"Client")}async ping(t){return this.request({method:"ping"},Yc,t)}async complete(t,n){return this.request({method:"completion/complete",params:t},WM,n)}async setLoggingLevel(t,n){return this.request({method:"logging/setLevel",params:{level:t}},Yc,n)}async getPrompt(t,n){return this.request({method:"prompts/get",params:t},UM,n)}async listPrompts(t,n){return this.request({method:"prompts/list",params:t},$M,n)}async listResources(t,n){return this.request({method:"resources/list",params:t},PM,n)}async listResourceTemplates(t,n){return this.request({method:"resources/templates/list",params:t},DM,n)}async readResource(t,n){return this.request({method:"resources/read",params:t},LM,n)}async subscribeResource(t,n){return this.request({method:"resources/subscribe",params:t},Yc,n)}async unsubscribeResource(t,n){return this.request({method:"resources/unsubscribe",params:t},Yc,n)}async callTool(t,n=Jm,r){if(this.isToolTaskRequired(t.name))throw new Ke(et.InvalidRequest,`Tool "${t.name}" requires task-based execution. Use client.experimental.tasks.callToolStream() instead.`);const a=await this.request({method:"tools/call",params:t},n,r),i=this.getToolOutputValidator(t.name);if(i){if(!a.structuredContent&&!a.isError)throw new Ke(et.InvalidRequest,`Tool ${t.name} has an output schema but did not return structured content`);if(a.structuredContent)try{const c=i(a.structuredContent);if(!c.valid)throw new Ke(et.InvalidParams,`Structured content does not match the tool's output schema: ${c.errorMessage}`)}catch(c){throw c instanceof Ke?c:new Ke(et.InvalidParams,`Failed to validate structured content: ${c instanceof Error?c.message:String(c)}`)}}return a}isToolTask(t){return this._serverCapabilities?.tasks?.requests?.tools?.call?this._cachedKnownTaskTools.has(t):!1}isToolTaskRequired(t){return this._cachedRequiredTaskTools.has(t)}cacheToolMetadata(t){this._cachedToolOutputValidators.clear(),this._cachedKnownTaskTools.clear(),this._cachedRequiredTaskTools.clear();for(const n of t){if(n.outputSchema){const a=this._jsonSchemaValidator.getValidator(n.outputSchema);this._cachedToolOutputValidators.set(n.name,a)}const r=n.execution?.taskSupport;(r==="required"||r==="optional")&&this._cachedKnownTaskTools.add(n.name),r==="required"&&this._cachedRequiredTaskTools.add(n.name)}}getToolOutputValidator(t){return this._cachedToolOutputValidators.get(t)}async listTools(t,n){const r=await this.request({method:"tools/list",params:t},H1,n);return this.cacheToolMetadata(r.tools),r}_setupListChangedHandler(t,n,r,a){const i=AQ.safeParse(r);if(!i.success)throw new Error(`Invalid ${t} listChanged options: ${i.error.message}`);if(typeof r.onChanged!="function")throw new Error(`Invalid ${t} listChanged options: onChanged must be a function`);const{autoRefresh:c,debounceMs:u}=i.data,{onChanged:d}=r,f=async()=>{if(!c){d(null,null);return}try{const p=await a();d(null,p)}catch(p){const g=p instanceof Error?p:new Error(String(p));d(g,null)}},m=()=>{if(u){const p=this._listChangedDebounceTimers.get(t);p&&clearTimeout(p);const g=setTimeout(f,u);this._listChangedDebounceTimers.set(t,g)}else f()};this.setNotificationHandler(n,m)}async sendRootsListChanged(){return this.notification({method:"notifications/roots/list_changed"})}};const Joe=Object.freeze(Object.defineProperty({__proto__:null,Client:aP,getSupportedElicitationModes:oP},Symbol.toStringTag,{value:"Module"}));function im(e){return e?e instanceof Headers?Object.fromEntries(e.entries()):Array.isArray(e)?Object.fromEntries(e):{...e}:{}}function sP(e=fetch,t){return t?async(n,r)=>{const a={...t,...r,headers:r?.headers?{...im(t.headers),...im(r.headers)}:t.headers};return e(n,a)}:e}let W1;W1=globalThis.crypto;async function NJ(e){return(await W1).getRandomValues(new Uint8Array(e))}async function MJ(e){const t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._~",n=Math.pow(2,8)-Math.pow(2,8)%t.length;let r="";for(;r.length<e;){const a=await NJ(e-r.length);for(const i of a)i<n&&(r+=t[i%t.length])}return r}async function PJ(e){return await MJ(e)}async function DJ(e){const t=await(await W1).subtle.digest("SHA-256",new TextEncoder().encode(e));return btoa(String.fromCharCode(...new Uint8Array(t))).replace(/\//g,"_").replace(/\+/g,"-").replace(/=/g,"")}async function LJ(e){if(e||(e=43),e<43||e>128)throw`Expected a length between 43 and 128. Received ${e}.`;const t=await PJ(e),n=await DJ(t);return{code_verifier:t,code_challenge:n}}const Zn=A7().superRefine((e,t)=>{if(!URL.canParse(e))return t.addIssue({code:_z.custom,message:"URL must be parseable",fatal:!0}),N$}).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"}),jJ=Wn({resource:M().url(),authorization_servers:ve(Zn).optional(),jwks_uri:M().url().optional(),scopes_supported:ve(M()).optional(),bearer_methods_supported:ve(M()).optional(),resource_signing_alg_values_supported:ve(M()).optional(),resource_name:M().optional(),resource_documentation:M().optional(),resource_policy_uri:M().url().optional(),resource_tos_uri:M().url().optional(),tls_client_certificate_bound_access_tokens:We().optional(),authorization_details_types_supported:ve(M()).optional(),dpop_signing_alg_values_supported:ve(M()).optional(),dpop_bound_access_tokens_required:We().optional()}),iP=Wn({issuer:M(),authorization_endpoint:Zn,token_endpoint:Zn,registration_endpoint:Zn.optional(),scopes_supported:ve(M()).optional(),response_types_supported:ve(M()),response_modes_supported:ve(M()).optional(),grant_types_supported:ve(M()).optional(),token_endpoint_auth_methods_supported:ve(M()).optional(),token_endpoint_auth_signing_alg_values_supported:ve(M()).optional(),service_documentation:Zn.optional(),revocation_endpoint:Zn.optional(),revocation_endpoint_auth_methods_supported:ve(M()).optional(),revocation_endpoint_auth_signing_alg_values_supported:ve(M()).optional(),introspection_endpoint:M().optional(),introspection_endpoint_auth_methods_supported:ve(M()).optional(),introspection_endpoint_auth_signing_alg_values_supported:ve(M()).optional(),code_challenge_methods_supported:ve(M()).optional(),client_id_metadata_document_supported:We().optional()}),$J=Wn({issuer:M(),authorization_endpoint:Zn,token_endpoint:Zn,userinfo_endpoint:Zn.optional(),jwks_uri:Zn,registration_endpoint:Zn.optional(),scopes_supported:ve(M()).optional(),response_types_supported:ve(M()),response_modes_supported:ve(M()).optional(),grant_types_supported:ve(M()).optional(),acr_values_supported:ve(M()).optional(),subject_types_supported:ve(M()),id_token_signing_alg_values_supported:ve(M()),id_token_encryption_alg_values_supported:ve(M()).optional(),id_token_encryption_enc_values_supported:ve(M()).optional(),userinfo_signing_alg_values_supported:ve(M()).optional(),userinfo_encryption_alg_values_supported:ve(M()).optional(),userinfo_encryption_enc_values_supported:ve(M()).optional(),request_object_signing_alg_values_supported:ve(M()).optional(),request_object_encryption_alg_values_supported:ve(M()).optional(),request_object_encryption_enc_values_supported:ve(M()).optional(),token_endpoint_auth_methods_supported:ve(M()).optional(),token_endpoint_auth_signing_alg_values_supported:ve(M()).optional(),display_values_supported:ve(M()).optional(),claim_types_supported:ve(M()).optional(),claims_supported:ve(M()).optional(),service_documentation:M().optional(),claims_locales_supported:ve(M()).optional(),ui_locales_supported:ve(M()).optional(),claims_parameter_supported:We().optional(),request_parameter_supported:We().optional(),request_uri_parameter_supported:We().optional(),require_request_uri_registration:We().optional(),op_policy_uri:Zn.optional(),op_tos_uri:Zn.optional(),client_id_metadata_document_supported:We().optional()}),UJ=re({...$J.shape,...iP.pick({code_challenge_methods_supported:!0}).shape}),zJ=re({access_token:M(),id_token:M().optional(),token_type:M(),expires_in:ik().optional(),scope:M().optional(),refresh_token:M().optional()}).strip(),VJ=re({error:M(),error_description:M().optional(),error_uri:M().optional()}),vC=Zn.optional().or(De("").transform(()=>{})),FJ=re({redirect_uris:ve(Zn),token_endpoint_auth_method:M().optional(),grant_types:ve(M()).optional(),response_types:ve(M()).optional(),client_name:M().optional(),client_uri:Zn.optional(),logo_uri:vC,scope:M().optional(),contacts:ve(M()).optional(),tos_uri:vC,policy_uri:M().optional(),jwks_uri:Zn.optional(),jwks:Gr().optional(),software_id:M().optional(),software_version:M().optional(),software_statement:M().optional()}).strip(),BJ=re({client_id:M(),client_secret:M().optional(),client_id_issued_at:Pe().optional(),client_secret_expires_at:Pe().optional()}).strip(),qJ=FJ.merge(BJ);re({error:M(),error_description:M().optional()}).strip();re({token:M(),token_type_hint:M().optional()}).strip();function HJ(e){const t=typeof e=="string"?new URL(e):new URL(e.href);return t.hash="",t}function GJ({requestedResource:e,configuredResource:t}){const n=typeof e=="string"?new URL(e):new URL(e.href),r=typeof t=="string"?new URL(t):new URL(t.href);if(n.origin!==r.origin||n.pathname.length<r.pathname.length)return!1;const a=n.pathname.endsWith("/")?n.pathname:n.pathname+"/",i=r.pathname.endsWith("/")?r.pathname:r.pathname+"/";return a.startsWith(i)}class $n extends Error{constructor(t,n){super(t),this.errorUri=n,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 j_ extends $n{}j_.errorCode="invalid_request";class cm extends $n{}cm.errorCode="invalid_client";class lm extends $n{}lm.errorCode="invalid_grant";class um extends $n{}um.errorCode="unauthorized_client";class $_ extends $n{}$_.errorCode="unsupported_grant_type";class U_ extends $n{}U_.errorCode="invalid_scope";class z_ extends $n{}z_.errorCode="access_denied";class gl extends $n{}gl.errorCode="server_error";class V_ extends $n{}V_.errorCode="temporarily_unavailable";class F_ extends $n{}F_.errorCode="unsupported_response_type";class B_ extends $n{}B_.errorCode="unsupported_token_type";class q_ extends $n{}q_.errorCode="invalid_token";class H_ extends $n{}H_.errorCode="method_not_allowed";class G_ extends $n{}G_.errorCode="too_many_requests";class dm extends $n{}dm.errorCode="invalid_client_metadata";class Z_ extends $n{}Z_.errorCode="insufficient_scope";class K_ extends $n{}K_.errorCode="invalid_target";const ZJ={[j_.errorCode]:j_,[cm.errorCode]:cm,[lm.errorCode]:lm,[um.errorCode]:um,[$_.errorCode]:$_,[U_.errorCode]:U_,[z_.errorCode]:z_,[gl.errorCode]:gl,[V_.errorCode]:V_,[F_.errorCode]:F_,[B_.errorCode]:B_,[q_.errorCode]:q_,[H_.errorCode]:H_,[G_.errorCode]:G_,[dm.errorCode]:dm,[Z_.errorCode]:Z_,[K_.errorCode]:K_};class ko extends Error{constructor(t){super(t??"Unauthorized")}}function KJ(e){return["client_secret_basic","client_secret_post","none"].includes(e)}const U0="code",z0="S256";function WJ(e,t){const n=e.client_secret!==void 0;return t.length===0?n?"client_secret_post":"none":"token_endpoint_auth_method"in e&&e.token_endpoint_auth_method&&KJ(e.token_endpoint_auth_method)&&t.includes(e.token_endpoint_auth_method)?e.token_endpoint_auth_method:n&&t.includes("client_secret_basic")?"client_secret_basic":n&&t.includes("client_secret_post")?"client_secret_post":t.includes("none")?"none":n?"client_secret_post":"none"}function YJ(e,t,n,r){const{client_id:a,client_secret:i}=t;switch(e){case"client_secret_basic":QJ(a,i,n);return;case"client_secret_post":XJ(a,i,r);return;case"none":JJ(a,r);return;default:throw new Error(`Unsupported client authentication method: ${e}`)}}function QJ(e,t,n){if(!t)throw new Error("client_secret_basic authentication requires a client_secret");const r=btoa(`${e}:${t}`);n.set("Authorization",`Basic ${r}`)}function XJ(e,t,n){n.set("client_id",e),t&&n.set("client_secret",t)}function JJ(e,t){t.set("client_id",e)}async function cP(e){const t=e instanceof Response?e.status:void 0,n=e instanceof Response?await e.text():e;try{const r=VJ.parse(JSON.parse(n)),{error:a,error_description:i,error_uri:c}=r,u=ZJ[a]||gl;return new u(i||"",c)}catch(r){const a=`${t?`HTTP ${t}: `:""}Invalid OAuth error response: ${r}. Raw body: ${n}`;return new gl(a)}}async function Ts(e,t){try{return await V0(e,t)}catch(n){if(n instanceof cm||n instanceof um)return await e.invalidateCredentials?.("all"),await V0(e,t);if(n instanceof lm)return await e.invalidateCredentials?.("tokens"),await V0(e,t);throw n}}async function V0(e,{serverUrl:t,authorizationCode:n,scope:r,resourceMetadataUrl:a,fetchFn:i}){let c,u;try{c=await lP(t,{resourceMetadataUrl:a},i),c.authorization_servers&&c.authorization_servers.length>0&&(u=c.authorization_servers[0])}catch{}u||(u=new URL("/",t));const d=await tee(t,e,c),f=await uP(u,{fetchFn:i});let m=await Promise.resolve(e.clientInformation());if(!m){if(n!==void 0)throw new Error("Existing OAuth client information is required when exchanging an authorization code");const b=f?.client_id_metadata_document_supported===!0,R=e.clientMetadataUrl;if(R&&!eee(R))throw new dm(`clientMetadataUrl must be a valid HTTPS URL with a non-root pathname, got: ${R}`);if(b&&R)m={client_id:R},await e.saveClientInformation?.(m);else{if(!e.saveClientInformation)throw new Error("OAuth client information must be saveable for dynamic registration");const T=await uee(u,{metadata:f,clientMetadata:e.clientMetadata,fetchFn:i});await e.saveClientInformation(T),m=T}}const p=!e.redirectUrl;if(n!==void 0||p){const b=await lee(e,u,{metadata:f,resource:d,authorizationCode:n,fetchFn:i});return await e.saveTokens(b),"AUTHORIZED"}const g=await e.tokens();if(g?.refresh_token)try{const b=await cee(u,{metadata:f,clientInformation:m,refreshToken:g.refresh_token,resource:d,addClientAuthentication:e.addClientAuthentication,fetchFn:i});return await e.saveTokens(b),"AUTHORIZED"}catch(b){if(!(!(b instanceof $n)||b instanceof gl))throw b}const y=e.state?await e.state():void 0,{authorizationUrl:w,codeVerifier:S}=await see(u,{metadata:f,clientInformation:m,state:y,redirectUrl:e.redirectUrl,scope:r||c?.scopes_supported?.join(" ")||e.clientMetadata.scope,resource:d});return await e.saveCodeVerifier(S),await e.redirectToAuthorization(w),"REDIRECT"}function eee(e){if(!e)return!1;try{const t=new URL(e);return t.protocol==="https:"&&t.pathname!=="/"}catch{return!1}}async function tee(e,t,n){const r=HJ(e);if(t.validateResourceURL)return await t.validateResourceURL(r,n?.resource);if(n){if(!GJ({requestedResource:r,configuredResource:n.resource}))throw new Error(`Protected resource ${n.resource} does not match expected ${r} (or origin)`);return new URL(n.resource)}}function fm(e){const t=e.headers.get("WWW-Authenticate");if(!t)return{};const[n,r]=t.split(" ");if(n.toLowerCase()!=="bearer"||!r)return{};const a=F0(e,"resource_metadata")||void 0;let i;if(a)try{i=new URL(a)}catch{}const c=F0(e,"scope")||void 0,u=F0(e,"error")||void 0;return{resourceMetadataUrl:i,scope:c,error:u}}function F0(e,t){const n=e.headers.get("WWW-Authenticate");if(!n)return null;const r=new RegExp(`${t}=(?:"([^"]+)"|([^\\s,]+))`),a=n.match(r);return a?a[1]||a[2]:null}async function lP(e,t,n=fetch){const r=await oee(e,"oauth-protected-resource",n,{protocolVersion:t?.protocolVersion,metadataUrl:t?.resourceMetadataUrl});if(!r||r.status===404)throw await r?.body?.cancel(),new Error("Resource server does not implement OAuth 2.0 Protected Resource Metadata.");if(!r.ok)throw await r.body?.cancel(),new Error(`HTTP ${r.status} trying to load well-known OAuth protected resource metadata.`);return jJ.parse(await r.json())}async function Y1(e,t,n=fetch){try{return await n(e,{headers:t})}catch(r){if(r instanceof TypeError)return t?Y1(e,void 0,n):void 0;throw r}}function nee(e,t="",n={}){return t.endsWith("/")&&(t=t.slice(0,-1)),n.prependPathname?`${t}/.well-known/${e}`:`/.well-known/${e}${t}`}async function yC(e,t,n=fetch){return await Y1(e,{"MCP-Protocol-Version":t},n)}function ree(e,t){return!e||e.status>=400&&e.status<500&&t!=="/"}async function oee(e,t,n,r){const a=new URL(e),i=r?.protocolVersion??Ym;let c;if(r?.metadataUrl)c=new URL(r.metadataUrl);else{const d=nee(t,a.pathname);c=new URL(d,r?.metadataServerUrl??a),c.search=a.search}let u=await yC(c,i,n);if(!r?.metadataUrl&&ree(u,a.pathname)){const d=new URL(`/.well-known/${t}`,a);u=await yC(d,i,n)}return u}function aee(e){const t=typeof e=="string"?new URL(e):e,n=t.pathname!=="/",r=[];if(!n)return r.push({url:new URL("/.well-known/oauth-authorization-server",t.origin),type:"oauth"}),r.push({url:new URL("/.well-known/openid-configuration",t.origin),type:"oidc"}),r;let a=t.pathname;return a.endsWith("/")&&(a=a.slice(0,-1)),r.push({url:new URL(`/.well-known/oauth-authorization-server${a}`,t.origin),type:"oauth"}),r.push({url:new URL(`/.well-known/openid-configuration${a}`,t.origin),type:"oidc"}),r.push({url:new URL(`${a}/.well-known/openid-configuration`,t.origin),type:"oidc"}),r}async function uP(e,{fetchFn:t=fetch,protocolVersion:n=Ym}={}){const r={"MCP-Protocol-Version":n,Accept:"application/json"},a=aee(e);for(const{url:i,type:c}of a){const u=await Y1(i,r,t);if(u){if(!u.ok){if(await u.body?.cancel(),u.status>=400&&u.status<500)continue;throw new Error(`HTTP ${u.status} trying to load ${c==="oauth"?"OAuth":"OpenID provider"} metadata from ${i}`)}return c==="oauth"?iP.parse(await u.json()):UJ.parse(await u.json())}}}async function see(e,{metadata:t,clientInformation:n,redirectUrl:r,scope:a,state:i,resource:c}){let u;if(t){if(u=new URL(t.authorization_endpoint),!t.response_types_supported.includes(U0))throw new Error(`Incompatible auth server: does not support response type ${U0}`);if(t.code_challenge_methods_supported&&!t.code_challenge_methods_supported.includes(z0))throw new Error(`Incompatible auth server: does not support code challenge method ${z0}`)}else u=new URL("/authorize",e);const d=await LJ(),f=d.code_verifier,m=d.code_challenge;return u.searchParams.set("response_type",U0),u.searchParams.set("client_id",n.client_id),u.searchParams.set("code_challenge",m),u.searchParams.set("code_challenge_method",z0),u.searchParams.set("redirect_uri",String(r)),i&&u.searchParams.set("state",i),a&&u.searchParams.set("scope",a),a?.includes("offline_access")&&u.searchParams.append("prompt","consent"),c&&u.searchParams.set("resource",c.href),{authorizationUrl:u,codeVerifier:f}}function dP(e,t,n){return new URLSearchParams({grant_type:"authorization_code",code:e,code_verifier:t,redirect_uri:String(n)})}async function Q1(e,{metadata:t,tokenRequestParams:n,clientInformation:r,addClientAuthentication:a,resource:i,fetchFn:c}){const u=t?.token_endpoint?new URL(t.token_endpoint):new URL("/token",e),d=new Headers({"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"});if(i&&n.set("resource",i.href),a)await a(d,n,u,t);else if(r){const m=t?.token_endpoint_auth_methods_supported??[],p=WJ(r,m);YJ(p,r,d,n)}const f=await(c??fetch)(u,{method:"POST",headers:d,body:n});if(!f.ok)throw await cP(f);return zJ.parse(await f.json())}async function iee(e,{metadata:t,clientInformation:n,authorizationCode:r,codeVerifier:a,redirectUri:i,resource:c,addClientAuthentication:u,fetchFn:d}){const f=dP(r,a,i);return Q1(e,{metadata:t,tokenRequestParams:f,clientInformation:n,addClientAuthentication:u,resource:c,fetchFn:d})}async function cee(e,{metadata:t,clientInformation:n,refreshToken:r,resource:a,addClientAuthentication:i,fetchFn:c}){const u=new URLSearchParams({grant_type:"refresh_token",refresh_token:r}),d=await Q1(e,{metadata:t,tokenRequestParams:u,clientInformation:n,addClientAuthentication:i,resource:a,fetchFn:c});return{refresh_token:r,...d}}async function lee(e,t,{metadata:n,resource:r,authorizationCode:a,fetchFn:i}={}){const c=e.clientMetadata.scope;let u;if(e.prepareTokenRequest&&(u=await e.prepareTokenRequest(c)),!u){if(!a)throw new Error("Either provider.prepareTokenRequest() or authorizationCode is required");if(!e.redirectUrl)throw new Error("redirectUrl is required for authorization_code flow");const f=await e.codeVerifier();u=dP(a,f,e.redirectUrl)}const d=await e.clientInformation();return Q1(t,{metadata:n,tokenRequestParams:u,clientInformation:d??void 0,addClientAuthentication:e.addClientAuthentication,resource:r,fetchFn:i})}async function uee(e,{metadata:t,clientMetadata:n,fetchFn:r}){let a;if(t){if(!t.registration_endpoint)throw new Error("Incompatible auth server: does not support dynamic client registration");a=new URL(t.registration_endpoint)}else a=new URL("/register",e);const i=await(r??fetch)(a,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});if(!i.ok)throw await cP(i);return qJ.parse(await i.json())}class _C extends Error{constructor(t,n){super(t),this.name="ParseError",this.type=n.type,this.field=n.field,this.value=n.value,this.line=n.line}}function B0(e){}function fP(e){if(typeof e=="function")throw new TypeError("`callbacks` must be an object, got a function instead. Did you mean `{onEvent: fn}`?");const{onEvent:t=B0,onError:n=B0,onRetry:r=B0,onComment:a}=e;let i="",c=!0,u,d="",f="";function m(S){const b=c?S.replace(/^\xEF\xBB\xBF/,""):S,[R,E]=dee(`${i}${b}`);for(const T of R)p(T);i=E,c=!1}function p(S){if(S===""){y();return}if(S.startsWith(":")){a&&a(S.slice(S.startsWith(": ")?2:1));return}const b=S.indexOf(":");if(b!==-1){const R=S.slice(0,b),E=S[b+1]===" "?2:1,T=S.slice(b+E);g(R,T,S);return}g(S,"",S)}function g(S,b,R){switch(S){case"event":f=b;break;case"data":d=`${d}${b}
|
|
163
|
-
`;break;case"id":u=b.includes("\0")?void 0:b;break;case"retry":/^\d+$/.test(b)?r(parseInt(b,10)):n(new _C(`Invalid \`retry\` value: "${b}"`,{type:"invalid-retry",value:b,line:R}));break;default:n(new _C(`Unknown field "${S.length>20?`${S.slice(0,20)}…`:S}"`,{type:"unknown-field",field:S,value:b,line:R}));break}}function y(){d.length>0&&t({id:u,event:f||void 0,data:d.endsWith(`
|
|
164
|
-
`)?d.slice(0,-1):d}),u=void 0,d="",f=""}function w(S={}){i&&S.consume&&p(i),c=!0,u=void 0,d="",f="",i=""}return{feed:m,reset:w}}function dee(e){const t=[];let n="",r=0;for(;r<e.length;){const a=e.indexOf("\r",r),i=e.indexOf(`
|
|
165
|
-
`,r);let c=-1;if(a!==-1&&i!==-1?c=Math.min(a,i):a!==-1?a===e.length-1?c=-1:c=a:i!==-1&&(c=i),c===-1){n=e.slice(r);break}else{const u=e.slice(r,c);t.push(u),r=c+1,e[r-1]==="\r"&&e[r]===`
|
|
166
|
-
`&&r++}}return[t,n]}class fee extends TransformStream{constructor({onError:t,onRetry:n,onComment:r}={}){let a;super({start(i){a=fP({onEvent:c=>{i.enqueue(c)},onError(c){t==="terminate"?i.error(c):typeof t=="function"&&t(c)},onRetry:n,onComment:r})},transform(i){a.feed(i)}})}}const hee={initialReconnectionDelay:1e3,maxReconnectionDelay:3e4,reconnectionDelayGrowFactor:1.5,maxRetries:2};class Vc extends Error{constructor(t,n){super(`Streamable HTTP error: ${n}`),this.code=t}}let pee=class{constructor(t,n){this._hasCompletedAuthFlow=!1,this._url=t,this._resourceMetadataUrl=void 0,this._scope=void 0,this._requestInit=n?.requestInit,this._authProvider=n?.authProvider,this._fetch=n?.fetch,this._fetchWithInit=sP(n?.fetch,n?.requestInit),this._sessionId=n?.sessionId,this._reconnectionOptions=n?.reconnectionOptions??hee}async _authThenStart(){if(!this._authProvider)throw new ko("No auth provider");let t;try{t=await Ts(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})}catch(n){throw this.onerror?.(n),n}if(t!=="AUTHORIZED")throw new ko;return await this._startOrAuthSse({resumptionToken:void 0})}async _commonHeaders(){const t={};if(this._authProvider){const r=await this._authProvider.tokens();r&&(t.Authorization=`Bearer ${r.access_token}`)}this._sessionId&&(t["mcp-session-id"]=this._sessionId),this._protocolVersion&&(t["mcp-protocol-version"]=this._protocolVersion);const n=im(this._requestInit?.headers);return new Headers({...t,...n})}async _startOrAuthSse(t){const{resumptionToken:n}=t;try{const r=await this._commonHeaders();r.set("Accept","text/event-stream"),n&&r.set("last-event-id",n);const a=await(this._fetch??fetch)(this._url,{method:"GET",headers:r,signal:this._abortController?.signal});if(!a.ok){if(await a.body?.cancel(),a.status===401&&this._authProvider)return await this._authThenStart();if(a.status===405)return;throw new Vc(a.status,`Failed to open SSE stream: ${a.statusText}`)}this._handleSseStream(a.body,t,!0)}catch(r){throw this.onerror?.(r),r}}_getNextReconnectionDelay(t){if(this._serverRetryMs!==void 0)return this._serverRetryMs;const n=this._reconnectionOptions.initialReconnectionDelay,r=this._reconnectionOptions.reconnectionDelayGrowFactor,a=this._reconnectionOptions.maxReconnectionDelay;return Math.min(n*Math.pow(r,t),a)}_scheduleReconnection(t,n=0){const r=this._reconnectionOptions.maxRetries;if(n>=r){this.onerror?.(new Error(`Maximum reconnection attempts (${r}) exceeded.`));return}const a=this._getNextReconnectionDelay(n);this._reconnectionTimeout=setTimeout(()=>{this._startOrAuthSse(t).catch(i=>{this.onerror?.(new Error(`Failed to reconnect SSE stream: ${i instanceof Error?i.message:String(i)}`)),this._scheduleReconnection(t,n+1)})},a)}_handleSseStream(t,n,r){if(!t)return;const{onresumptiontoken:a,replayMessageId:i}=n;let c,u=!1,d=!1;(async()=>{try{const m=t.pipeThrough(new TextDecoderStream).pipeThrough(new fee({onRetry:y=>{this._serverRetryMs=y}})).getReader();for(;;){const{value:y,done:w}=await m.read();if(w)break;if(y.id&&(c=y.id,u=!0,a?.(y.id)),!!y.data&&(!y.event||y.event==="message"))try{const S=Ku.parse(JSON.parse(y.data));Du(S)&&(d=!0,i!==void 0&&(S.id=i)),this.onmessage?.(S)}catch(S){this.onerror?.(S)}}(r||u)&&!d&&this._abortController&&!this._abortController.signal.aborted&&this._scheduleReconnection({resumptionToken:c,onresumptiontoken:a,replayMessageId:i},0)}catch(m){if(this.onerror?.(new Error(`SSE stream disconnected: ${m}`)),(r||u)&&!d&&this._abortController&&!this._abortController.signal.aborted)try{this._scheduleReconnection({resumptionToken:c,onresumptiontoken:a,replayMessageId:i},0)}catch(y){this.onerror?.(new Error(`Failed to reconnect: ${y instanceof Error?y.message:String(y)}`))}}})()}async start(){if(this._abortController)throw new Error("StreamableHTTPClientTransport already started! If using Client class, note that connect() calls start() automatically.");this._abortController=new AbortController}async finishAuth(t){if(!this._authProvider)throw new ko("No auth provider");if(await Ts(this._authProvider,{serverUrl:this._url,authorizationCode:t,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})!=="AUTHORIZED")throw new ko("Failed to authorize")}async close(){this._reconnectionTimeout&&(clearTimeout(this._reconnectionTimeout),this._reconnectionTimeout=void 0),this._abortController?.abort(),this.onclose?.()}async send(t,n){try{const{resumptionToken:r,onresumptiontoken:a}=n||{};if(r){this._startOrAuthSse({resumptionToken:r,replayMessageId:L_(t)?t.id:void 0}).catch(g=>this.onerror?.(g));return}const i=await this._commonHeaders();i.set("content-type","application/json"),i.set("accept","application/json, text/event-stream");const c={...this._requestInit,method:"POST",headers:i,body:JSON.stringify(t),signal:this._abortController?.signal},u=await(this._fetch??fetch)(this._url,c),d=u.headers.get("mcp-session-id");if(d&&(this._sessionId=d),!u.ok){const g=await u.text().catch(()=>null);if(u.status===401&&this._authProvider){if(this._hasCompletedAuthFlow)throw new Vc(401,"Server returned 401 after successful authentication");const{resourceMetadataUrl:y,scope:w}=fm(u);if(this._resourceMetadataUrl=y,this._scope=w,await Ts(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})!=="AUTHORIZED")throw new ko;return this._hasCompletedAuthFlow=!0,this.send(t)}if(u.status===403&&this._authProvider){const{resourceMetadataUrl:y,scope:w,error:S}=fm(u);if(S==="insufficient_scope"){const b=u.headers.get("WWW-Authenticate");if(this._lastUpscopingHeader===b)throw new Vc(403,"Server returned 403 after trying upscoping");if(w&&(this._scope=w),y&&(this._resourceMetadataUrl=y),this._lastUpscopingHeader=b??void 0,await Ts(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetch})!=="AUTHORIZED")throw new ko;return this.send(t)}}throw new Vc(u.status,`Error POSTing to endpoint: ${g}`)}if(this._hasCompletedAuthFlow=!1,this._lastUpscopingHeader=void 0,u.status===202){await u.body?.cancel(),QY(t)&&this._startOrAuthSse({resumptionToken:void 0}).catch(g=>this.onerror?.(g));return}const m=(Array.isArray(t)?t:[t]).filter(g=>"method"in g&&"id"in g&&g.id!==void 0).length>0,p=u.headers.get("content-type");if(m)if(p?.includes("text/event-stream"))this._handleSseStream(u.body,{onresumptiontoken:a},!1);else if(p?.includes("application/json")){const g=await u.json(),y=Array.isArray(g)?g.map(w=>Ku.parse(w)):[Ku.parse(g)];for(const w of y)this.onmessage?.(w)}else throw await u.body?.cancel(),new Vc(-1,`Unexpected content type: ${p}`);else await u.body?.cancel()}catch(r){throw this.onerror?.(r),r}}get sessionId(){return this._sessionId}async terminateSession(){if(this._sessionId)try{const t=await this._commonHeaders(),n={...this._requestInit,method:"DELETE",headers:t,signal:this._abortController?.signal},r=await(this._fetch??fetch)(this._url,n);if(await r.body?.cancel(),!r.ok&&r.status!==405)throw new Vc(r.status,`Failed to terminate session: ${r.statusText}`);this._sessionId=void 0}catch(t){throw this.onerror?.(t),t}}setProtocolVersion(t){this._protocolVersion=t}get protocolVersion(){return this._protocolVersion}async resumeStream(t,n){await this._startOrAuthSse({resumptionToken:t,onresumptiontoken:n?.onresumptiontoken})}};const mee=re({authorizationEndpoint:M().url(),tokenEndpoint:M().url(),introspectionEndpoint:M().url().optional(),clientId:M(),clientSecret:M().optional(),scopes:ve(M()),grantType:xt(["authorization_code","client_credentials"])}),gee=re({title:M().optional(),readOnlyHint:We().optional(),destructiveHint:We().optional(),idempotentHint:We().optional(),openWorldHint:We().optional()}),vee=re({name:M(),description:M().optional(),inputSchema:lt(M(),ot()),outputSchema:lt(M(),ot()).optional(),annotations:gee.optional(),_meta:lt(M(),ot()).optional()}),yee=re({headers:lt(M(),M()).optional()}),_ee=re({command:M().describe("Command to run (e.g., 'npx', 'node')"),args:ve(M()).optional().describe("Command arguments"),cwd:M().optional().describe("Working directory"),envVars:lt(M(),M()).optional().describe("Environment variables (encrypted in storage)")}),hP=re({id:M().describe("Unique identifier for the connection"),title:M().describe("Human-readable name for the connection"),created_at:M().describe("When the connection was created"),updated_at:M().describe("When the connection was last updated"),created_by:M().describe("User ID who created the connection"),updated_by:M().optional().describe("User ID who last updated the connection"),organization_id:M().describe("Organization ID this connection belongs to"),description:M().nullable().describe("Description of the connection"),icon:M().nullable().describe("Icon URL for the connection"),app_name:M().nullable().describe("Associated app name"),app_id:M().nullable().describe("Associated app ID"),connection_type:xt(["HTTP","SSE","Websocket","STDIO","VIRTUAL"]).describe("Type of connection"),connection_url:M().nullable().describe("URL for HTTP/SSE/WebSocket connections. virtual://$id for VIRTUAL. Null for STDIO."),connection_token:M().nullable().describe("Authentication token (for HTTP connections)"),connection_headers:gt([_ee,yee]).nullable().describe("Connection parameters. HTTP: { headers }. STDIO: { command, args, cwd, envVars }"),oauth_config:mee.nullable().describe("OAuth configuration"),configuration_state:lt(M(),ot()).nullable().describe("Configuration state (decrypted)"),configuration_scopes:ve(M()).nullable().optional().describe("Configuration scopes"),metadata:lt(M(),ot()).nullable().describe("Additional metadata (includes repository info)"),tools:ve(vee).nullable().describe("Discovered tools from MCP"),bindings:ve(M()).nullable().describe("Detected bindings"),status:xt(["active","inactive","error"]).describe("Current status")});hP.omit({created_at:!0,updated_at:!0,created_by:!0,updated_by:!0,organization_id:!0,tools:!0,bindings:!0,status:!0}).partial({id:!0,description:!0,icon:!0,app_name:!0,app_id:!0,connection_url:!0,connection_token:!0,connection_headers:!0,oauth_config:!0,configuration_state:!0,configuration_scopes:!0,metadata:!0}).extend({icon:M().nullish()});hP.partial();function tae(e){return e!=null&&"command"in e}function nae(e){return!e||!e.startsWith("virtual://")?null:e.replace("virtual://","")}const Lu=re({connection_id:M().describe("Connection ID"),selected_tools:ve(M()).nullable().describe("Selected tool names. null = all tools included, array = only these tools included"),selected_resources:ve(M()).nullable().describe("Selected resource URIs or patterns. Supports * and ** wildcards for pattern matching. null = all resources included, array = only these resources included"),selected_prompts:ve(M()).nullable().describe("Selected prompt names. null = all prompts included, array = only these prompts included")}),pP=Lu.extend({selected_tools:Lu.shape.selected_tools.optional(),selected_resources:Lu.shape.selected_resources.optional(),selected_prompts:Lu.shape.selected_prompts.optional()}),rae=re({id:M().describe("Unique identifier"),title:M().describe("Human-readable name"),description:M().nullable().describe("Description"),icon:M().nullable().describe("Icon URL"),created_at:M().describe("Creation timestamp"),updated_at:M().describe("Last update timestamp"),created_by:M().describe("User ID who created this item"),updated_by:M().optional().describe("User ID who last updated this item"),organization_id:M().describe("Organization ID this item belongs to"),status:xt(["active","inactive"]).describe("Current status"),metadata:re({instructions:M().nullable().describe("Instructions also used as system prompt")}).loose().describe("Metadata"),connections:ve(Lu).describe("Connections with their selected tools, resources, and prompts")});re({title:M().min(1).max(255).describe("Name for the virtual MCP"),description:M().nullable().optional().describe("Optional description"),icon:M().nullish().describe("Optional icon URL"),status:xt(["active","inactive"]).optional().default("active").describe("Initial status"),metadata:re({instructions:M().nullable().optional().describe("MCP server instructions")}).nullable().optional().describe("Additional metadata including MCP server instructions"),connections:ve(pP).describe("Connections to include/exclude (can be empty for exclusion mode)")});re({title:M().min(1).max(255).optional().describe("New name"),description:M().nullable().optional().describe("New description (null to clear)"),icon:M().nullish().describe("New icon URL"),status:xt(["active","inactive"]).optional().describe("New status"),metadata:re({instructions:M().nullable().optional().describe("MCP server instructions")}).nullable().optional().describe("Additional metadata including MCP server instructions"),connections:ve(pP).optional().describe("New connections (replaces existing)")});var bC;(function(e){e.Completable="McpCompletable"})(bC||(bC={}));function wC(e){let t=0;for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);t=(t<<5)-t+r,t=t&t}return Math.abs(t).toString(16)}let mP=null;function bee(e){mP=e}function wee(){return mP??window.location.origin}function gP(){const{hostname:e}=window.location;return e==="localhost"||e==="127.0.0.1"||e.endsWith(".localhost")}function See(e){if(e===window.location.origin)return!0;if(!gP())return!1;try{const t=new URL(e);return t.hostname==="localhost"||t.hostname==="127.0.0.1"||t.hostname.endsWith(".localhost")}catch{return!1}}const SC=new Map,vP="mcp:oauth:callback:";class Eee{serverUrl;_clientMetadata;_redirectUrl;_windowMode;_state=null;_codeVerifier=null;_clientInfo=null;_tokens=null;constructor(t){this.serverUrl=t.serverUrl,this._redirectUrl=t.callbackUrl??`${wee()}/oauth/callback`,this._windowMode=t.windowMode??"popup";const n=t.scope?Array.isArray(t.scope)?t.scope.join(" "):t.scope:void 0;this._clientMetadata={redirect_uris:[this._redirectUrl],token_endpoint_auth_method:"none",grant_types:["authorization_code","refresh_token"],response_types:["code"],client_name:t.clientName??"Deco Studio MCP client",...n&&{scope:n}},SC.set(wC(this.serverUrl),this)}get redirectUrl(){return this._redirectUrl}get clientMetadata(){return this._clientMetadata}state(){return this._state||(this._state=crypto.randomUUID()),this._state}getStoredState(){return this._state}clientInformation(){return this._clientInfo??void 0}saveClientInformation(t){this._clientInfo=t}tokens(){return this._tokens??void 0}saveTokens(t){this._tokens=t}redirectToAuthorization(t){if(this._windowMode==="tab"){if(!window.open(t.toString(),"_blank"))throw new Error("Tab was blocked")}else{const a=window.screenX+(window.outerWidth-600)/2,i=window.screenY+(window.outerHeight-700)/2;if(!window.open(t.toString(),"mcp-oauth",`width=600,height=700,left=${a},top=${i},popup=yes`)&&!window.open(t.toString(),"_blank"))throw new Error("Popup was blocked")}}saveCodeVerifier(t){this._codeVerifier=t}codeVerifier(){if(!this._codeVerifier)throw new Error("Code verifier not found");return this._codeVerifier}invalidateCredentials(){this._clientInfo=null,this._tokens=null,this._codeVerifier=null,this._state=null}getServerUrl(){return this.serverUrl}cleanup(){SC.delete(wC(this.serverUrl))}}async function oae(e){const t=e.meshUrl??window.location.origin,n=new URL(`/mcp/${e.connectionId}`,t),r=new Eee({serverUrl:n.href,clientName:e.clientName,clientUri:e.clientUri,callbackUrl:e.callbackUrl,scope:e.scope,windowMode:e.windowMode}),a={fn:null};try{const i=new Promise((f,m)=>{const p=e.timeout||12e4;let g,y=!1;const w=r.state(),S=`${vP}${w}`,b=()=>{window.removeEventListener("message",E),window.removeEventListener("storage",T),clearTimeout(g);try{localStorage.removeItem(S)}catch{}};a.fn=O=>{y||(y=!0,b(),m(O))};const R=async O=>{if(y)return;if(y=!0,!O.success){b(),m(new Error(O.error||"OAuth authentication failed"));return}const{code:C,state:I}=O;if(!C){b(),m(new Error("Missing authorization code"));return}if(r.getStoredState()!==I){b(),m(new Error("OAuth state mismatch - possible CSRF attack"));return}try{const z=(await lP(n))?.authorization_servers?.[0]||n,W=await uP(z),V=r.clientInformation();if(!V){b(),m(new Error("Client information not found"));return}const G=r.codeVerifier(),U=await iee(z,{metadata:W,clientInformation:V,authorizationCode:C,codeVerifier:G,redirectUri:r.redirectUrl,resource:new URL(n)});b(),f({tokens:U,clientId:V.client_id??null,clientSecret:"client_secret"in V?V.client_secret:null,tokenEndpoint:W?.token_endpoint??null})}catch(D){b(),m(D)}},E=async O=>{See(O.origin)&&O.data?.type==="mcp:oauth:callback"&&await R(O.data)},T=async O=>{if(!(O.key!==S||!O.newValue))try{const C=JSON.parse(O.newValue);await R(C)}catch{}};window.addEventListener("message",E),window.addEventListener("storage",T),g=setTimeout(()=>{y||(y=!0,b(),m(new Error("OAuth authentication timeout")))},p)});if(i.catch(()=>{}),await Ts(r,{serverUrl:n})==="REDIRECT"){const f=await i;return{token:f.tokens.access_token,tokenInfo:{accessToken:f.tokens.access_token,refreshToken:f.tokens.refresh_token??null,expiresIn:f.tokens.expires_in??null,scope:f.tokens.scope??null,clientId:f.clientId,clientSecret:f.clientSecret,tokenEndpoint:f.tokenEndpoint},error:null}}const u=r.tokens(),d=r.clientInformation();return{token:u?.access_token||null,tokenInfo:u?{accessToken:u.access_token,refreshToken:u.refresh_token??null,expiresIn:u.expires_in??null,scope:u.scope??null,clientId:d?.client_id??null,clientSecret:d&&"client_secret"in d?d.client_secret:null,tokenEndpoint:null}:null,error:null}}catch(i){return a.fn&&a.fn(i instanceof Error?i:new Error(String(i))),{token:null,tokenInfo:null,error:i instanceof Error?i.message:String(i)}}finally{r.cleanup()}}function q0(e,t){if(window.opener&&!window.opener.closed){const n=gP()?"*":window.location.origin;return window.opener.postMessage(e,n),!0}if(t)try{const n=`${vP}${t}`;return localStorage.setItem(n,JSON.stringify(e)),!0}catch{}return!1}async function aae(){const e=new URLSearchParams(window.location.search),t=e.get("code");let n=e.get("state");const r=e.get("error"),a=e.get("error_description");let i=n;if(n)try{const u=atob(n),d=JSON.parse(u);d.clientState&&(i=d.clientState)}catch{}if(r){const u=a||r;return q0({type:"mcp:oauth:callback",success:!1,error:u},i),{success:!1,error:u}}if(!t||!n){const u="Missing code or state parameter";return q0({type:"mcp:oauth:callback",success:!1,error:u},i),{success:!1,error:u}}return n=i||n,q0({type:"mcp:oauth:callback",success:!0,code:t,state:n},n)?{success:!0}:{success:!1,error:"Parent window not available"}}function X1(){if(typeof window<"u"&&window.location?.origin)return window.location.origin}function Ree(e){try{const t=X1();return(t?new URL(e,t):new URL(e)).pathname.match(/^\/mcp\/([^/]+)/)?.[1]??null}catch{return null}}async function xee(e,t){try{const n=`/api/connections/${e}/oauth-token/status`,r=t?new URL(n,t).href:n,a=X1(),i=!t||new URL(t).origin===a,c=await fetch(r,{credentials:i?"include":"omit"});return c.ok?{hasToken:(await c.json()).hasToken===!0}:{hasToken:!1}}catch{return{hasToken:!1}}}async function sae({url:e,token:t,meshUrl:n}){try{const r=new Headers;r.set("Content-Type","application/json"),r.set("Accept","application/json, text/event-stream");const a=await fetch(e,{method:"POST",headers:r,body:JSON.stringify({jsonrpc:"2.0",id:1,method:"initialize",params:{protocolVersion:"2025-06-18",capabilities:{},clientInfo:{name:"Deco Studio MCP client",version:"1.0.0"}}})}),i=Ree(e),c=X1(),u=n??(c?new URL(e,c).origin:new URL(e).origin);if(a.ok)return{isAuthenticated:!0,supportsOAuth:!1,hasOAuthToken:(i?await xee(i,u):{hasToken:!1}).hasToken};let d;try{const p=await a.json();d=p.error||p.message}catch{}return a.status>=500?{isAuthenticated:!1,supportsOAuth:!1,hasOAuthToken:!1,error:d||`HTTP ${a.status}`,isServerError:!0}:{isAuthenticated:!1,supportsOAuth:!!a.headers.get("WWW-Authenticate"),hasOAuthToken:!1,error:d||`HTTP ${a.status}`}}catch(r){return console.error("[isConnectionAuthenticated] Error:",r),{isAuthenticated:!1,supportsOAuth:!1,hasOAuthToken:!1,error:r.message}}}async function Tee(){const e=await fetch("/api/config");if(!e.ok)throw new Error("Failed to load public configuration");const t=await e.json();if(!t.success)throw new Error(t.error||"Failed to load public configuration");return t.config}function Oee(e){if(!e)return;const t=document.getElementById("mesh-theme-overrides");t&&t.remove();const n=[];if(e.light&&Object.keys(e.light).length>0){const r=Object.entries(e.light).map(([a,i])=>` ${a}: ${i};`).join(`
|
|
167
|
-
`);n.push(`:root {
|
|
168
|
-
${r}
|
|
169
|
-
}`)}if(e.dark&&Object.keys(e.dark).length>0){const r=Object.entries(e.dark).map(([a,i])=>` ${a}: ${i};`).join(`
|
|
170
|
-
`);n.push(`.dark {
|
|
171
|
-
${r}
|
|
172
|
-
}`)}if(n.length>0){const r=document.createElement("style");r.id="mesh-theme-overrides",r.textContent=n.join(`
|
|
173
|
-
|
|
174
|
-
`),document.head.appendChild(r)}}function Cee(e){const t=Li.c(6),{children:n}=e;let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={queryKey:oA.publicConfig(),queryFn:Tee,staleTime:1/0},t[0]=r):r=t[0];const{data:a}=rA(r);a.internalUrl&&bee(a.internalUrl);let i,c;t[1]!==a.theme?(i=()=>{Oee(a.theme)},c=[a.theme],t[1]=a.theme,t[2]=i,t[3]=c):(i=t[2],c=t[3]),A.useLayoutEffect(i,c);let u;return t[4]!==n?(u=x.jsx(x.Fragment,{children:n}),t[4]=n,t[5]=u):u=t[5],u}function yP(){const e=Li.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=x.jsx("div",{className:"flex items-center justify-center min-h-screen",children:x.jsx("div",{className:"text-gray-500",children:"Loading..."})}),e[0]=t):t=e[0],t}const Aee=new CD({defaultOptions:{queries:{staleTime:6e4,refetchOnWindowFocus:!0,refetchOnMount:!0,retry:1,gcTime:300*1e3}}});function Iee(e){const t=Li.c(4),{children:n}=e;let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=x.jsx(hV,{}),t[0]=r):r=t[0];let a;t[1]===Symbol.for("react.memo_cache_sentinel")?(a=x.jsx(yP,{}),t[1]=a):a=t[1];let i;return t[2]!==n?(i=x.jsxs(ID,{client:Aee,children:[r,x.jsx(A.Suspense,{fallback:a,children:x.jsx(Cee,{children:x.jsx(qD,{children:x.jsx(kY,{children:n})})})})]}),t[2]=n,t[3]=i):i=t[3],i}function kee(...e){return JA(Eb(e))}const Nee=Ak("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-lg text-sm transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive cursor-pointer",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/80",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border text-foreground bg-background hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-foreground/80 hover:text-foreground"},size:{default:"h-10 px-4 py-2 has-[>svg]:px-3",sm:"h-7 gap-1.5 px-3 has-[>svg]:px-2.5",xs:"h-6 gap-1 px-2 text-xs has-[>svg]:px-1.5",lg:"h-10 px-6 has-[>svg]:px-4",icon:"size-10"}},defaultVariants:{variant:"default",size:"default"}});function W_(e){const t=Li.c(14);let n,r,a,i,c;t[0]!==e?({className:n,variant:c,size:a,asChild:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=a,t[4]=i,t[5]=c):(n=t[1],r=t[2],a=t[3],i=t[4],c=t[5]);const d=(i===void 0?!1:i)?Hb:"button";let f;t[6]!==n||t[7]!==a||t[8]!==c?(f=kee(Nee({variant:c,size:a,className:n})),t[6]=n,t[7]=a,t[8]=c,t[9]=f):f=t[9];let m;return t[10]!==d||t[11]!==r||t[12]!==f?(m=x.jsx(d,{"data-slot":"button",className:f,...r}),t[10]=d,t[11]=r,t[12]=f,t[13]=m):m=t[13],m}const J1=({size:e=24,color:t="currentColor",...n})=>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",...n},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"}));J1.displayName="AlertTriangle";const _P=({size:e=24,color:t="currentColor",...n})=>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",...n},A.createElement("path",{d:"M20 12.5V6.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C17.72 2 16.88 2 15.2 2H8.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C4 4.28 4 5.12 4 6.8v10.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C6.28 22 7.12 22 8.8 22H12m2-11H8m2 4H8m8-8H8m6.5 12 2 2 4.5-4.5"}));_P.displayName="FileCheck02";const bP=({size:e=24,color:t="currentColor",...n})=>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",...n},A.createElement("path",{d:"m13 7-1.116-2.231c-.32-.642-.481-.963-.72-1.198a2 2 0 0 0-.748-.462C10.1 3 9.74 3 9.022 3H5.2c-1.12 0-1.68 0-2.108.218a2 2 0 0 0-.874.874C2 4.52 2 5.08 2 6.2V7m0 0h15.2c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311C22 9.28 22 10.12 22 11.8v4.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C19.72 21 18.88 21 17.2 21H6.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C2 18.72 2 17.88 2 16.2V7Z"}));bP.displayName="Folder";const wP=({size:e=24,color:t="currentColor",...n})=>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",...n},A.createElement("path",{d:"M20.5 7.278 12 12m0 0L3.5 7.278M12 12v9.5m9-5.441V7.942c0-.343 0-.514-.05-.667a1 1 0 0 0-.215-.364c-.109-.119-.258-.202-.558-.368l-7.4-4.111c-.284-.158-.425-.237-.575-.267a1 1 0 0 0-.403 0c-.15.03-.292.11-.576.267l-7.4 4.11c-.3.167-.45.25-.558.369a1 1 0 0 0-.215.364C3 7.428 3 7.599 3 7.942v8.117c0 .342 0 .514.05.666a1 1 0 0 0 .215.364c.109.119.258.202.558.368l7.4 4.111c.284.158.425.237.576.268.133.027.27.027.402 0 .15-.031.292-.11.576-.268l7.4-4.11c.3-.167.45-.25.558-.369a.999.999 0 0 0 .215-.364c.05-.152.05-.324.05-.666ZM16.5 9.5l-9-5"}));wP.displayName="Package";const SP=({size:e=24,color:t="currentColor",...n})=>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",...n},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"}));SP.displayName="RefreshCw01";const EC="__mesh_chunk_reload_ts";function RC(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 iae extends A.Component{state={hasError:!1,error:null};static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,n){console.error("Uncaught error:",t,n)}resetError=()=>{this.setState({hasError:!1,error:null})};render(){if(this.state.hasError){const{fallback:t}=this.props;return typeof t=="function"?t({error:this.state.error,resetError:this.resetError}):t!==void 0?t:x.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center h-full p-6 text-center space-y-4",children:[x.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:x.jsx(J1,{className:"h-6 w-6 text-destructive"})}),x.jsxs("div",{className:"space-y-2",children:[x.jsx("h3",{className:"text-lg font-medium",children:"Something went wrong"}),x.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||"An unexpected error occurred"})]}),x.jsx(W_,{variant:"outline",onClick:this.resetError,children:"Try again"})]})}return this.props.children}}class Mee extends A.Component{state={hasError:!1,error:null};static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,n){if(console.error("Uncaught error:",t,n),!RC(t))return;const r=sessionStorage.getItem(EC),a=Date.now();(!r||a-Number(r)>1e4)&&(sessionStorage.setItem(EC,String(a)),window.location.reload())}render(){return this.state.hasError&&RC(this.state.error)?x.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center h-full p-6 text-center space-y-4",children:[x.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:x.jsx(SP,{className:"h-6 w-6 text-primary"})}),x.jsxs("div",{className:"space-y-2",children:[x.jsx("h3",{className:"text-lg font-medium",children:"New version available"}),x.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:"A new version has been deployed. Refresh to continue."})]}),x.jsx(W_,{onClick:()=>window.location.reload(),children:"Refresh"})]}):this.state.hasError?x.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center h-full p-6 text-center space-y-4",children:[x.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:x.jsx(J1,{className:"h-6 w-6 text-destructive"})}),x.jsxs("div",{className:"space-y-2",children:[x.jsx("h3",{className:"text-lg font-medium",children:"Something went wrong"}),x.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||"An unexpected error occurred"})]}),x.jsx(W_,{variant:"outline",onClick:()=>this.setState({hasError:!1,error:null}),children:"Try again"})]}):this.props.children}}var Pee=class{apply(e,t){if(!t.type)return;const n=Array.isArray(t.type)?t.type:[t.type],r=new Set(n);if(r.has("string")||(e.string=!1),!r.has("number")&&!r.has("integer")&&(e.number=!1),r.has("boolean")||(e.boolean=!1),r.has("null")||(e.null=!1),r.has("array")||(e.array=!1),r.has("object")||(e.object=!1),r.has("integer")&&e.number!==!1){const a=e.number||Pe();a instanceof $a&&(e.number=a.int())}}},Dee=class{apply(e,t){if(t.const===void 0)return;const n=t.const;e.string=!1,e.number=!1,e.boolean=!1,e.null=!1,e.array=!1,e.object=!1,typeof n=="string"?e.string=De(n):typeof n=="number"?e.number=De(n):typeof n=="boolean"?e.boolean=De(n):n===null?e.null=El():Array.isArray(n)?e.array=void 0:typeof n=="object"&&(e.object=void 0)}},Lee=class{apply(e,t){if(!t.enum)return;if(t.enum.length===0){t.type||(e.string=!1,e.number=!1,e.boolean=!1,e.null=!1,e.array=!1,e.object=!1);return}const n={string:t.enum.filter(r=>typeof r=="string"),number:t.enum.filter(r=>typeof r=="number"),boolean:t.enum.filter(r=>typeof r=="boolean"),null:t.enum.filter(r=>r===null),array:t.enum.filter(r=>Array.isArray(r)),object:t.enum.filter(r=>typeof r=="object"&&r!==null&&!Array.isArray(r))};e.string=this.createTypeSchema(n.string,"string"),e.number=this.createTypeSchema(n.number,"number"),e.boolean=this.createTypeSchema(n.boolean,"boolean"),e.null=n.null.length>0?El():!1,e.array=n.array.length>0?void 0:!1,e.object=n.object.length>0?void 0:!1}createTypeSchema(e,t){if(e.length===0)return!1;if(e.length===1)return De(e[0]);if(t==="string")return xt(e);if(t==="number"){const[n,r,...a]=e;return gt([De(n),De(r),...a.map(i=>De(i))])}return t==="boolean"?gt([De(!0),De(!1)]):!1}},jee=class{apply(e,t){const n=t;if(n.type==="string"&&n.format==="binary"&&n.contentEncoding==="binary"){let r=tz();n.minLength!==void 0&&(r=r.min(n.minLength)),n.maxLength!==void 0&&(r=r.max(n.maxLength)),n.contentMediaType!==void 0&&(r=r.mime(n.contentMediaType)),e.file=r,e.string=!1}}},$ee=class{apply(e,t){const n=t;t.type===void 0&&(n.minLength!==void 0||n.maxLength!==void 0||n.pattern!==void 0)&&e.string===void 0&&(e.string=M())}},Uee=class{apply(e,t){const n=t;if(n.minLength!==void 0&&e.string!==!1){const r=e.string||M();r instanceof Pm&&(e.string=r.refine(a=>Array.from(a).length>=n.minLength,{message:`String must be at least ${n.minLength} characters long`}))}}},zee=class{apply(e,t){const n=t;if(n.maxLength!==void 0&&e.string!==!1){const r=e.string||M();r instanceof Pm&&(e.string=r.refine(a=>Array.from(a).length<=n.maxLength,{message:`String must be at most ${n.maxLength} characters long`}))}}},Vee=class{apply(e,t){const n=t;if(n.pattern&&e.string!==!1){const r=e.string||M();if(r instanceof Pm){const a=new RegExp(n.pattern);e.string=r.regex(a)}}}},Fee=class{apply(e,t){const n=t;if(n.minimum!==void 0&&e.number!==!1){const r=e.number||Pe();r instanceof $a&&(e.number=r.min(n.minimum))}}},Bee=class{apply(e,t){const n=t;if(n.maximum!==void 0&&e.number!==!1){const r=e.number||Pe();r instanceof $a&&(e.number=r.max(n.maximum))}}},qee=class{apply(e,t){const n=t;if(n.exclusiveMinimum!==void 0&&e.number!==!1){const r=e.number||Pe();r instanceof $a&&(typeof n.exclusiveMinimum=="number"?e.number=r.gt(n.exclusiveMinimum):e.number=!1)}}},Hee=class{apply(e,t){const n=t;if(n.exclusiveMaximum!==void 0&&e.number!==!1){const r=e.number||Pe();r instanceof $a&&(typeof n.exclusiveMaximum=="number"?e.number=r.lt(n.exclusiveMaximum):e.number=!1)}}},Gee=class{apply(e,t){const n=t;if(n.multipleOf!==void 0&&e.number!==!1){const r=e.number||Pe();r instanceof $a&&(e.number=r.refine(a=>{if(n.multipleOf===0)return!1;const i=a/n.multipleOf,c=Math.round(i),u=Math.min(Math.abs(a)*Number.EPSILON*10,Math.abs(n.multipleOf)*Number.EPSILON*10);return Math.abs(i-c)<=u/Math.abs(n.multipleOf)},{message:`Must be a multiple of ${n.multipleOf}`}))}}},Zee=class{apply(e,t){const n=t;t.type===void 0&&(n.minItems!==void 0||n.maxItems!==void 0||n.items!==void 0||n.prefixItems!==void 0)&&e.array===void 0&&(e.array=ve(Gr()))}},Kee=class{apply(e,t){const n=t;n.minItems!==void 0&&e.array!==!1&&(e.array=(e.array||ve(Gr())).min(n.minItems))}},Wee=class{apply(e,t){const n=t;n.maxItems!==void 0&&e.array!==!1&&(e.array=(e.array||ve(Gr())).max(n.maxItems))}},Yee=class{apply(e,t){const n=t;if(e.array!==!1)if(Array.isArray(n.items))e.array=e.array||ve(Gr());else if(n.items&&typeof n.items!="boolean"&&!n.prefixItems){const r=rr(n.items);let a=ve(r);if(e.array&&e.array instanceof ek){const i=e.array._def;i.checks&&i.checks.forEach(c=>{if(c._zod&&c._zod.def){const u=c._zod.def;u.check==="min_length"&&u.minimum!==void 0?a=a.min(u.minimum):u.check==="max_length"&&u.maximum!==void 0&&(a=a.max(u.maximum))}})}e.array=a}else typeof n.items=="boolean"&&n.items===!1?n.prefixItems?e.array=e.array||ve(Gr()):e.array=ve(Gr()).max(0):(typeof n.items=="boolean"&&n.items===!0||n.prefixItems)&&(e.array=e.array||ve(Gr()))}},Qee=class{apply(e,t){if(t.type!=="array")return;const n=t;if(!Array.isArray(n.items)||e.array===!1)return;const r=n.items.map(i=>rr(i));let a;r.length===0?a=gT([]):a=gT(r),n.minItems!==void 0&&n.minItems>r.length&&(a=!1),n.maxItems!==void 0&&n.maxItems<r.length&&(a=!1),e.tuple=a,e.array=!1}},Xee=class{apply(e,t){const n=t;e.object!==!1&&(n.properties||n.required||n.additionalProperties!==void 0)&&(e.object=e.object||re({}).passthrough())}},Jee=class{apply(e,t){const n=t;t.type===void 0&&(n.maxProperties!==void 0||n.minProperties!==void 0)&&e.object===void 0&&(e.object=re({}).passthrough())}},ete=class{apply(e,t){const n=t;if(n.maxProperties!==void 0&&e.object!==!1){const r=e.object||re({}).passthrough();e.object=r.refine(a=>Object.keys(a).length<=n.maxProperties,{message:`Object must have at most ${n.maxProperties} properties`})}}},tte=class{apply(e,t){const n=t;if(n.minProperties!==void 0&&e.object!==!1){const r=e.object||re({}).passthrough();e.object=r.refine(a=>Object.keys(a).length>=n.minProperties,{message:`Object must have at least ${n.minProperties} properties`})}}};function fd(e,t){if(e===t)return!0;if(e==null||t==null)return e===t;if(typeof e!=typeof t)return!1;if(Array.isArray(e)&&Array.isArray(t))return e.length!==t.length?!1:e.every((n,r)=>fd(n,t[r]));if(typeof e=="object"&&typeof t=="object"){const n=Object.keys(e),r=Object.keys(t);return n.length!==r.length?!1:n.every(a=>r.includes(a)&&fd(e[a],t[a]))}return!1}function nte(){return e=>{if(!Array.isArray(e))return!0;const t=[];return e.every(n=>t.some(a=>fd(n,a))?!1:(t.push(n),!0))}}function hm(e,t){return e.safeParse(t).success}var rte=class{apply(e,t){if(!t.not)return e;const n=rr(t.not);return e.refine(r=>!hm(n,r),{message:"Value must not match the 'not' schema"})}},ote=class{apply(e,t){return t.uniqueItems!==!0?e:e.refine(nte(),{message:"Array items must be unique"})}},ate=class{apply(e,t){return!t.allOf||t.allOf.length===0?e:t.allOf.map(r=>rr(r)).reduce((r,a)=>yd(r,a),e)}},ste=class{apply(e,t){if(!t.anyOf||t.anyOf.length===0)return e;const n=t.anyOf.length===1?rr(t.anyOf[0]):gt([rr(t.anyOf[0]),rr(t.anyOf[1]),...t.anyOf.slice(2).map(r=>rr(r))]);return yd(e,n)}},ite=class{apply(e,t){if(!t.oneOf||t.oneOf.length===0)return e;const n=t.oneOf.map(r=>rr(r));return e.refine(r=>{let a=0;for(const i of n)if(i.safeParse(r).success&&(a++,a>1))return!1;return a===1},{message:"Value must match exactly one of the oneOf schemas"})}},cte=class{apply(e,t){const n=t;if(n.prefixItems&&Array.isArray(n.prefixItems)){const a=n.prefixItems.map(i=>rr(i));return e.refine(i=>{if(!Array.isArray(i))return!0;for(let c=0;c<Math.min(i.length,a.length);c++)if(!hm(a[c],i[c]))return!1;if(i.length>a.length){if(typeof n.items=="boolean"&&n.items===!1)return!1;if(n.items&&typeof n.items=="object"&&!Array.isArray(n.items)){const c=rr(n.items);for(let u=a.length;u<i.length;u++)if(!hm(c,i[u]))return!1}}return!0},{message:"Array does not match prefixItems schema"})}return e}},lte=class{apply(e,t){const n=t;if(!n.properties&&!n.required&&n.additionalProperties!==!1)return e;if(e instanceof Dm||e instanceof nk){const r={};if(n.properties)for(const[a,i]of Object.entries(n.properties))i!==void 0&&(r[a]=rr(i));if(n.required&&Array.isArray(n.required)){const a=new Set(n.required);for(const i of Object.keys(r))a.has(i)||(r[i]=r[i].optional())}else for(const a of Object.keys(r))r[a]=r[a].optional();return n.additionalProperties===!1?re(r):re(r).passthrough()}return e.refine(r=>{if(typeof r!="object"||r===null||Array.isArray(r))return!0;if(n.properties){for(const[a,i]of Object.entries(n.properties))if(i!==void 0&&Object.getOwnPropertyDescriptor(r,a)!==void 0&&!rr(i).safeParse(r[a]).success)return!1}if(n.required&&Array.isArray(n.required)){for(const a of n.required)if(!(Object.getOwnPropertyDescriptor(r,a)!==void 0))return!1}if(n.additionalProperties===!1&&n.properties){const a=new Set(Object.keys(n.properties));for(const i in r)if(!a.has(i))return!1}return!0},{message:"Object constraints validation failed"})}},ute=class{apply(e,t){if(!t.enum||t.enum.length===0)return e;const n=t.enum.filter(r=>Array.isArray(r)||typeof r=="object"&&r!==null);return n.length===0?e:e.refine(r=>typeof r!="object"||r===null?!0:n.some(a=>fd(r,a)),{message:"Value must match one of the enum values"})}},dte=class{apply(e,t){if(t.const===void 0)return e;const n=t.const;return typeof n!="object"||n===null?e:e.refine(r=>fd(r,n),{message:"Value must equal the const value"})}},fte=class{apply(e,t){return t.description&&(e=e.describe(t.description)),e}},hte=class{apply(e,t){var n;const r=t;return!((n=r.required)!=null&&n.includes("__proto__"))||t.type!==void 0?e:Gr().refine(a=>this.validateRequired(a,r.required),{message:"Missing required properties"})}validateRequired(e,t){return typeof e!="object"||e===null||Array.isArray(e)?!0:t.every(n=>Object.prototype.hasOwnProperty.call(e,n))}},pte=class{apply(e,t){var n;const r=t;if(r.contains===void 0)return e;const a=rr(r.contains),i=(n=r.minContains)!=null?n:1,c=r.maxContains;return e.refine(u=>{if(!Array.isArray(u))return!0;let d=0;for(const f of u)hm(a,f)&&d++;return!(d<i||c!==void 0&&d>c)},{message:"Array must contain required items matching the schema"})}},mte=class{apply(e,t){const{default:n}=t;return n===void 0||!e.safeParse(n).success?e:e.default(n)}},gte=[new Dee,new Lee,new Pee,new jee,new $ee,new Zee,new Jee,new Uee,new zee,new Vee,new Fee,new Bee,new qee,new Hee,new Gee,new Qee,new Kee,new Wee,new Yee,new ete,new tte,new Xee],vte=[new hte,new ute,new dte,new ate,new ste,new ite,new cte,new lte,new pte,new rte,new ote,new mte,new fte];function rr(e){if(typeof e=="boolean")return e?Gr():zp();const t={};for(const a of gte)a.apply(t,e);const n=[];if(t.string!==!1&&n.push(t.string||M()),t.number!==!1&&n.push(t.number||Pe()),t.boolean!==!1&&n.push(t.boolean||We()),t.null!==!1&&n.push(t.null||El()),t.array!==!1&&n.push(t.array||ve(Gr())),t.tuple!==!1&&t.tuple!==void 0&&n.push(t.tuple),t.object!==!1)if(t.object)n.push(t.object);else{const a=sk(i=>typeof i=="object"&&i!==null&&!Array.isArray(i),"Must be an object, not an array");n.push(a)}t.file!==!1&&t.file!==void 0&&n.push(t.file);let r;n.length===0?r=zp():n.length===1?r=n[0]:Object.keys(e).some(i=>i!=="$schema"&&i!=="title"&&i!=="description")?r=gt(n):r=Gr();for(const a of vte)r=a.apply(r,e);return r}class xC extends Event{constructor(t,n){var r,a;super(t),this.code=(r=n?.code)!=null?r:void 0,this.message=(a=n?.message)!=null?a:void 0}[Symbol.for("nodejs.util.inspect.custom")](t,n,r){return r(TC(this),n)}[Symbol.for("Deno.customInspect")](t,n){return t(TC(this),n)}}function yte(e){const t=globalThis.DOMException;return typeof t=="function"?new t(e,"SyntaxError"):new SyntaxError(e)}function Y_(e){return e instanceof Error?"errors"in e&&Array.isArray(e.errors)?e.errors.map(Y_).join(", "):"cause"in e&&e.cause instanceof Error?`${e}: ${Y_(e.cause)}`:e.message:`${e}`}function TC(e){return{type:e.type,message:e.message,code:e.code,defaultPrevented:e.defaultPrevented,cancelable:e.cancelable,timeStamp:e.timeStamp}}var EP=e=>{throw TypeError(e)},ew=(e,t,n)=>t.has(e)||EP("Cannot "+n),_t=(e,t,n)=>(ew(e,t,"read from private field"),n?n.call(e):t.get(e)),On=(e,t,n)=>t.has(e)?EP("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Qt=(e,t,n,r)=>(ew(e,t,"write to private field"),t.set(e,n),n),ka=(e,t,n)=>(ew(e,t,"access private method"),n),Ar,Si,qc,wp,pm,Wu,Qc,Yu,Rs,Hc,sl,Gc,ju,Ao,Q_,X_,J_,OC,eb,tb,$u,nb,rb;class Sp extends EventTarget{constructor(t,n){var r,a;super(),On(this,Ao),this.CONNECTING=0,this.OPEN=1,this.CLOSED=2,On(this,Ar),On(this,Si),On(this,qc),On(this,wp),On(this,pm),On(this,Wu),On(this,Qc),On(this,Yu,null),On(this,Rs),On(this,Hc),On(this,sl,null),On(this,Gc,null),On(this,ju,null),On(this,X_,async i=>{var c;_t(this,Hc).reset();const{body:u,redirected:d,status:f,headers:m}=i;if(f===204){ka(this,Ao,$u).call(this,"Server sent HTTP 204, not reconnecting",204),this.close();return}if(d?Qt(this,qc,new URL(i.url)):Qt(this,qc,void 0),f!==200){ka(this,Ao,$u).call(this,`Non-200 status code (${f})`,f);return}if(!(m.get("content-type")||"").startsWith("text/event-stream")){ka(this,Ao,$u).call(this,'Invalid content type, expected "text/event-stream"',f);return}if(_t(this,Ar)===this.CLOSED)return;Qt(this,Ar,this.OPEN);const p=new Event("open");if((c=_t(this,ju))==null||c.call(this,p),this.dispatchEvent(p),typeof u!="object"||!u||!("getReader"in u)){ka(this,Ao,$u).call(this,"Invalid response body, expected a web ReadableStream",f),this.close();return}const g=new TextDecoder,y=u.getReader();let w=!0;do{const{done:S,value:b}=await y.read();b&&_t(this,Hc).feed(g.decode(b,{stream:!S})),S&&(w=!1,_t(this,Hc).reset(),ka(this,Ao,nb).call(this))}while(w)}),On(this,J_,i=>{Qt(this,Rs,void 0),!(i.name==="AbortError"||i.type==="aborted")&&ka(this,Ao,nb).call(this,Y_(i))}),On(this,eb,i=>{typeof i.id=="string"&&Qt(this,Yu,i.id);const c=new MessageEvent(i.event||"message",{data:i.data,origin:_t(this,qc)?_t(this,qc).origin:_t(this,Si).origin,lastEventId:i.id||""});_t(this,Gc)&&(!i.event||i.event==="message")&&_t(this,Gc).call(this,c),this.dispatchEvent(c)}),On(this,tb,i=>{Qt(this,Wu,i)}),On(this,rb,()=>{Qt(this,Qc,void 0),_t(this,Ar)===this.CONNECTING&&ka(this,Ao,Q_).call(this)});try{if(t instanceof URL)Qt(this,Si,t);else if(typeof t=="string")Qt(this,Si,new URL(t,_te()));else throw new Error("Invalid URL")}catch{throw yte("An invalid or illegal string was specified")}Qt(this,Hc,fP({onEvent:_t(this,eb),onRetry:_t(this,tb)})),Qt(this,Ar,this.CONNECTING),Qt(this,Wu,3e3),Qt(this,pm,(r=n?.fetch)!=null?r:globalThis.fetch),Qt(this,wp,(a=n?.withCredentials)!=null?a:!1),ka(this,Ao,Q_).call(this)}get readyState(){return _t(this,Ar)}get url(){return _t(this,Si).href}get withCredentials(){return _t(this,wp)}get onerror(){return _t(this,sl)}set onerror(t){Qt(this,sl,t)}get onmessage(){return _t(this,Gc)}set onmessage(t){Qt(this,Gc,t)}get onopen(){return _t(this,ju)}set onopen(t){Qt(this,ju,t)}addEventListener(t,n,r){const a=n;super.addEventListener(t,a,r)}removeEventListener(t,n,r){const a=n;super.removeEventListener(t,a,r)}close(){_t(this,Qc)&&clearTimeout(_t(this,Qc)),_t(this,Ar)!==this.CLOSED&&(_t(this,Rs)&&_t(this,Rs).abort(),Qt(this,Ar,this.CLOSED),Qt(this,Rs,void 0))}}Ar=new WeakMap,Si=new WeakMap,qc=new WeakMap,wp=new WeakMap,pm=new WeakMap,Wu=new WeakMap,Qc=new WeakMap,Yu=new WeakMap,Rs=new WeakMap,Hc=new WeakMap,sl=new WeakMap,Gc=new WeakMap,ju=new WeakMap,Ao=new WeakSet,Q_=function(){Qt(this,Ar,this.CONNECTING),Qt(this,Rs,new AbortController),_t(this,pm)(_t(this,Si),ka(this,Ao,OC).call(this)).then(_t(this,X_)).catch(_t(this,J_))},X_=new WeakMap,J_=new WeakMap,OC=function(){var e;const t={mode:"cors",redirect:"follow",headers:{Accept:"text/event-stream",..._t(this,Yu)?{"Last-Event-ID":_t(this,Yu)}:void 0},cache:"no-store",signal:(e=_t(this,Rs))==null?void 0:e.signal};return"window"in globalThis&&(t.credentials=this.withCredentials?"include":"same-origin"),t},eb=new WeakMap,tb=new WeakMap,$u=function(e,t){var n;_t(this,Ar)!==this.CLOSED&&Qt(this,Ar,this.CLOSED);const r=new xC("error",{code:t,message:e});(n=_t(this,sl))==null||n.call(this,r),this.dispatchEvent(r)},nb=function(e,t){var n;if(_t(this,Ar)===this.CLOSED)return;Qt(this,Ar,this.CONNECTING);const r=new xC("error",{code:t,message:e});(n=_t(this,sl))==null||n.call(this,r),this.dispatchEvent(r),Qt(this,Qc,setTimeout(_t(this,rb),_t(this,Wu)))},rb=new WeakMap,Sp.CONNECTING=0,Sp.OPEN=1,Sp.CLOSED=2;function _te(){const e="document"in globalThis?globalThis.document:void 0;return e&&typeof e=="object"&&"baseURI"in e&&typeof e.baseURI=="string"?e.baseURI:void 0}class bte extends Error{constructor(t,n,r){super(`SSE error: ${n}`),this.code=t,this.event=r}}class wte{constructor(t,n){this._url=t,this._resourceMetadataUrl=void 0,this._scope=void 0,this._eventSourceInit=n?.eventSourceInit,this._requestInit=n?.requestInit,this._authProvider=n?.authProvider,this._fetch=n?.fetch,this._fetchWithInit=sP(n?.fetch,n?.requestInit)}async _authThenStart(){if(!this._authProvider)throw new ko("No auth provider");let t;try{t=await Ts(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})}catch(n){throw this.onerror?.(n),n}if(t!=="AUTHORIZED")throw new ko;return await this._startOrAuth()}async _commonHeaders(){const t={};if(this._authProvider){const r=await this._authProvider.tokens();r&&(t.Authorization=`Bearer ${r.access_token}`)}this._protocolVersion&&(t["mcp-protocol-version"]=this._protocolVersion);const n=im(this._requestInit?.headers);return new Headers({...t,...n})}_startOrAuth(){const t=this?._eventSourceInit?.fetch??this._fetch??fetch;return new Promise((n,r)=>{this._eventSource=new Sp(this._url.href,{...this._eventSourceInit,fetch:async(a,i)=>{const c=await this._commonHeaders();c.set("Accept","text/event-stream");const u=await t(a,{...i,headers:c});if(u.status===401&&u.headers.has("www-authenticate")){const{resourceMetadataUrl:d,scope:f}=fm(u);this._resourceMetadataUrl=d,this._scope=f}return u}}),this._abortController=new AbortController,this._eventSource.onerror=a=>{if(a.code===401&&this._authProvider){this._authThenStart().then(n,r);return}const i=new bte(a.code,a.message,a);r(i),this.onerror?.(i)},this._eventSource.onopen=()=>{},this._eventSource.addEventListener("endpoint",a=>{const i=a;try{if(this._endpoint=new URL(i.data,this._url),this._endpoint.origin!==this._url.origin)throw new Error(`Endpoint origin does not match connection origin: ${this._endpoint.origin}`)}catch(c){r(c),this.onerror?.(c),this.close();return}n()}),this._eventSource.onmessage=a=>{const i=a;let c;try{c=Ku.parse(JSON.parse(i.data))}catch(u){this.onerror?.(u);return}this.onmessage?.(c)}})}async start(){if(this._eventSource)throw new Error("SSEClientTransport already started! If using Client class, note that connect() calls start() automatically.");return await this._startOrAuth()}async finishAuth(t){if(!this._authProvider)throw new ko("No auth provider");if(await Ts(this._authProvider,{serverUrl:this._url,authorizationCode:t,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})!=="AUTHORIZED")throw new ko("Failed to authorize")}async close(){this._abortController?.abort(),this._eventSource?.close(),this.onclose?.()}async send(t){if(!this._endpoint)throw new Error("Not connected");try{const n=await this._commonHeaders();n.set("content-type","application/json");const r={...this._requestInit,method:"POST",headers:n,body:JSON.stringify(t),signal:this._abortController?.signal},a=await(this._fetch??fetch)(this._endpoint,r);if(!a.ok){const i=await a.text().catch(()=>null);if(a.status===401&&this._authProvider){const{resourceMetadataUrl:c,scope:u}=fm(a);if(this._resourceMetadataUrl=c,this._scope=u,await Ts(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})!=="AUTHORIZED")throw new ko;return this.send(t)}throw new Error(`Error POSTing to endpoint (HTTP ${a.status}): ${i}`)}await a.body?.cancel()}catch(n){throw this.onerror?.(n),n}}setProtocolVersion(t){this._protocolVersion=t}}const Ste="mcp";class Ete{constructor(t){this._url=t}start(){if(this._socket)throw new Error("WebSocketClientTransport already started! If using Client class, note that connect() calls start() automatically.");return new Promise((t,n)=>{this._socket=new WebSocket(this._url,Ste),this._socket.onerror=r=>{const a="error"in r?r.error:new Error(`WebSocket error: ${JSON.stringify(r)}`);n(a),this.onerror?.(a)},this._socket.onopen=()=>{t()},this._socket.onclose=()=>{this.onclose?.()},this._socket.onmessage=r=>{let a;try{a=Ku.parse(JSON.parse(r.data))}catch(i){this.onerror?.(i);return}this.onmessage?.(a)}})}async close(){this._socket?.close()}send(t){return new Promise((n,r)=>{if(!this._socket){r(new Error("Not connected"));return}this._socket?.send(JSON.stringify(t)),n()})}}class Rte extends pee{constructor(t,n){super(t,n)}send(t,n){const r=xte(t);return r?.type==="emit"?(this.onmessage?.(r.message),Promise.resolve()):r?.type==="suppress"?Promise.resolve():super.send(t,n)}}function xte(e){const t=e;if(!t||typeof t!="object"||!("method"in t))return null;switch(t.method){case"initialize":{const n=t?.params?.protocolVersion;return n?{type:"emit",message:{result:{protocolVersion:n,capabilities:{tools:{}},serverInfo:{name:"deco-chat-server",version:"1.0.0"}},jsonrpc:t.jsonrpc??"2.0",id:t.id}}:null}case"notifications/roots/list_changed":case"notifications/initialized":case"notifications/cancelled":case"notifications/progress":return{type:"suppress"};default:return null}}class Tte extends aP{constructor(t,n){super(t,n)}async listTools(t,n){return await this.request({method:"tools/list",params:t},H1,n)}}const Ote=async(e,t,n)=>{const r=Cte(e.connection,t,n);if(!r)throw new Error("Unknown MCP connection type");const a=new Tte({name:e?.name??"MCP Client",version:"1.0.0"});return await a.connect(r),{client:a,callStreamableTool:(i,c,u)=>{if(e.connection.type!=="HTTP")throw new Error("HTTP connection required");const d=new Headers(n);d.has("Authorization")||d.set("Authorization",`Bearer ${e.connection.token}`);for(const[p,g]of Object.entries(e.connection.headers??{}))d.set(p,g);const f=new URL(e.connection.url),m=f.pathname.replace(/\/+$/,"")||"/";return f.pathname=`${m}/call-tool/${encodeURIComponent(i)}`,fetch(f.href,{method:"POST",redirect:"manual",body:JSON.stringify(c),headers:d,signal:u})}}},Cte=(e,t,n)=>{if(e.type==="Websocket")return new Ete(new URL(e.url));if(e.type!=="SSE"&&e.type!=="HTTP")return null;const a={...e.token?{authorization:`Bearer ${e.token}`}:{},...n??{},..."headers"in e?e.headers||{}:{}};if(e.type==="SSE"){const i={requestInit:{headers:a,signal:t}};return e.token&&(i.eventSourceInit={fetch:(c,u)=>fetch(c,{...u,headers:{...a,Accept:"text/event-stream"},signal:t})}),new wte(new URL(e.url),i)}return new Rte(new URL(e.url),{requestInit:{headers:a,signal:t,credentials:"include"}})},CC=e=>{try{return JSON.parse(e)}catch{return e}},cp=new Map,AC=(e,t)=>({...e,id:e.name,inputSchema:e.inputSchema?rr(e.inputSchema):void 0,outputSchema:e.outputSchema?rr(e.outputSchema):void 0,execute:n=>t(n.context,e.name)});function Ate(e){const t=n=>"connection"in e?Ote({connection:e.connection},void 0,n):e.client;return new Proxy({},{get(n,r){if(r==="toJSON")return null;if(typeof r!="string")throw new Error("Name must be a string");if(r==="listTools")return u;async function a(d,f=r){const m=e?.debugId?.(),p=m?{"x-trace-debug-id":m}:void 0,{client:g,callStreamableTool:y}=await t(p);if(e?.streamable?.[String(f)]){if(!y)throw new Error(`Tool ${String(f)} requires streaming support but client doesn't provide callStreamableTool`);return await y(String(f),d)}const{structuredContent:w,isError:S,content:b}=await g.callTool({name:String(f),arguments:d});if(S){const E=b?.[0]?.text,T=typeof E=="string"?CC(E):null,O=T?.code&&typeof e?.getErrorByStatusCode=="function"?e.getErrorByStatusCode(T.code,T.message,T.traceId):null;throw O||new Error(`Tool ${String(f)} returned an error: ${JSON.stringify(w??b)}`)}if(w!==void 0)return w;const R=b?.[0]?.text;return typeof R=="string"?CC(R):void 0}async function i(){const{client:d}=await t(),{tools:f}=await d.listTools();return f}async function c(){if(!("connection"in e))return i();const d=e.connection,f=JSON.stringify(d);try{return cp.has(f)||cp.set(f,i()),await cp.get(f)}catch(m){console.error("Failed to list tools",m),cp.delete(f);return}}async function u(){return(await c()??[]).map(f=>AC(f,a))}return a.asTool=async()=>{const f=(await c()??[]).find(m=>m.name===r);if(!f)throw new Error(`Tool ${r} not found`);return AC(f,a)},a}})}new Proxy({},{get(e,t){return t==="toJSON"?null:t==="forConnection"?n=>Ite({connection:n}):global[t]}});function Ite(e){return Ate(e)}const og=re({id:M().describe("Unique identifier for the entity"),title:M().describe("Human-readable title for the entity"),description:M().nullish().describe("Description of the entity"),created_at:M().datetime(),updated_at:M().datetime(),created_by:M().optional(),updated_by:M().optional()}),kte=re({field:ve(M()),operator:xt(["eq","gt","gte","lt","lte","in","like","contains"]),value:ot()}),RP=go(()=>gt([kte,re({operator:xt(["and","or","not"]),conditions:ve(RP)})])),Nte=re({field:ve(M()),direction:xt(["asc","desc"]),nulls:xt(["first","last"]).optional()}),Mte=re({where:RP.optional().describe("Filter expression"),orderBy:ve(Nte).optional().describe("Sort expressions"),limit:Pe().int().min(1).max(1e3).optional().describe("Maximum number of items to return"),offset:Pe().int().min(0).optional().describe("Number of items to skip")});function Pte(e){return re({items:ve(e).describe("Array of collection items"),totalCount:Pe().int().min(0).optional().describe("Total number of matching items (if available)"),hasMore:We().optional().describe("Whether there are more items available")})}const Dte=re({id:M().describe("ID of the entity to retrieve")});function Lte(e){return re({item:e.nullable().describe("The retrieved item, or null if not found")})}function jte(e){return re({data:e.partial().describe("Data for the new entity (id may be auto-generated)")})}function $te(e){return re({item:e.describe("The created entity with generated id")})}function Ute(e){return re({id:M().describe("ID of the entity to update"),data:e.partial().describe("Partial entity data to update")})}function zte(e){return re({item:e.describe("The updated entity")})}const Vte=re({id:M().describe("ID of the entity to delete")});function Fte(e){return re({item:e.describe("The deleted entity")})}function ag(e,t,n){const r=e.toUpperCase(),a=n?.readOnly??!1,i=[{name:`COLLECTION_${r}_LIST`,inputSchema:Mte,outputSchema:Pte(t)},{name:`COLLECTION_${r}_GET`,inputSchema:Dte,outputSchema:Lte(t)}];return a||i.push({name:`COLLECTION_${r}_CREATE`,inputSchema:jte(t),outputSchema:$te(t),opt:!0},{name:`COLLECTION_${r}_UPDATE`,inputSchema:Ute(t),outputSchema:zte(t),opt:!0},{name:`COLLECTION_${r}_DELETE`,inputSchema:Vte,outputSchema:Fte(t),opt:!0}),i}const Bte=re({id:M(),name:M(),description:M().optional(),inputSchema:lt(M(),ot()),outputSchema:lt(M(),ot()).optional()}),qte=og.extend({_meta:re({"io.decocms":re({id:M(),verified:We(),scopeName:M(),appName:M(),friendlyName:M().nullable().optional(),metadata:lt(M(),ot()).nullable().optional(),publishedAt:M().datetime().optional(),updatedAt:M().datetime().optional(),tools:ve(Bte).nullable().optional().describe("Available tools exposed by this app")}).optional()}).optional(),server:re({$schema:M().optional(),_meta:lt(M(),ot()).optional(),name:M().describe("The server name (scope/app)"),title:M().optional().describe("User-friendly title"),description:M().optional().describe("Server description"),icons:ve(re({src:M(),mimeType:M().optional(),sizes:ve(M()).optional(),theme:xt(["light","dark"]).optional()})).optional(),remotes:ve(re({type:xt(["http","stdio","sse"]),url:M().optional(),headers:ve(ot()).optional()})).optional(),packages:ve(ot()).optional(),repository:re({url:M(),source:M().optional(),subfolder:M().optional()}).optional(),version:M().optional(),websiteUrl:M().optional()})});ag("registry_app",qte,{readOnly:!0});const Hte=re({specversion:De("1.0").describe("CloudEvents specification version"),id:M().describe("Unique identifier for this event (UUID recommended)"),source:M().describe("Connection ID of the event publisher"),type:M().describe("Event type (e.g., 'order.created', 'user.signup')"),time:M().datetime().optional().describe("Timestamp of when the event occurred (ISO 8601)"),subject:M().optional().describe("Subject/resource identifier (e.g., order ID, user ID)"),datacontenttype:M().optional().default("application/json").describe("Content type of the data attribute"),dataschema:M().url().optional().describe("URI to the schema for the data attribute"),data:ot().optional().describe("Event payload (any JSON value)")});re({events:ve(Hte).min(1).describe("Batch of CloudEvents to process")});const Gte=re({success:We().optional().describe("Whether this event was processed successfully"),error:M().optional().describe("Error message for this event"),retryAfter:Pe().int().positive().optional().describe("Re-deliver this event after this many ms")});re({success:We().optional().describe("Batch success - applies to events not in results"),error:M().optional().describe("Batch error message - applies to events not in results"),processedCount:Pe().int().min(0).optional().describe("Number of events successfully processed"),retryAfter:Pe().int().positive().optional().describe("Batch retryAfter - applies to events not in results"),results:lt(M(),Gte).optional().describe("Per-event results keyed by event ID")});re({type:M().min(1).max(255).describe("Event type identifier"),subject:M().max(255).optional().describe("Subject/resource identifier (e.g., order ID)"),data:ot().optional().describe("Event payload"),deliverAt:M().datetime().optional().describe("Scheduled delivery time (ISO 8601). Omit for immediate delivery."),cron:M().max(100).optional().describe("Cron expression for recurring delivery. Use EVENT_CANCEL to stop.")});re({id:M().describe("Unique event ID"),type:M().describe("Event type"),source:M().describe("Source connection ID"),time:M().describe("Event timestamp")});re({eventType:M().min(1).max(255).describe("Event type to subscribe to"),publisher:M().optional().describe("Filter events by publisher connection ID"),filter:M().max(1e3).optional().describe("JSONPath filter expression on event data")});re({subscription:re({id:M().describe("Subscription ID"),connectionId:M().describe("Subscriber connection ID"),eventType:M().describe("Event type pattern"),publisher:M().nullable().describe("Publisher connection filter"),filter:M().nullable().describe("JSONPath filter expression"),enabled:We().describe("Whether subscription is enabled"),createdAt:M().datetime().describe("Created timestamp (ISO 8601)"),updatedAt:M().datetime().describe("Updated timestamp (ISO 8601)")})});const Zte=re({eventType:M().min(1).max(255).describe("Event type to subscribe to"),publisher:M().optional().describe("Filter events by publisher connection ID"),filter:M().max(1e3).optional().describe("JSONPath filter expression on event data")}),Kte=re({id:M().describe("Subscription ID"),connectionId:M().describe("Subscriber connection ID"),eventType:M().describe("Event type pattern"),publisher:M().nullable().describe("Publisher connection filter"),filter:M().nullable().describe("JSONPath filter expression"),enabled:We().describe("Whether subscription is enabled"),createdAt:M().datetime().describe("Created timestamp (ISO 8601)"),updatedAt:M().datetime().describe("Updated timestamp (ISO 8601)")});re({subscriptions:ve(Zte).describe("Desired subscriptions - system will create/update/delete to match")});re({created:Pe().int().min(0).describe("Number of subscriptions created"),updated:Pe().int().min(0).describe("Number of subscriptions with filter updated"),deleted:Pe().int().min(0).describe("Number of subscriptions removed"),unchanged:Pe().int().min(0).describe("Number of subscriptions unchanged"),subscriptions:ve(Kte).describe("Current subscriptions after sync")});re({subscriptionId:M().describe("Subscription ID to remove")});re({success:We().describe("Whether unsubscribe was successful"),subscriptionId:M().describe("Subscription ID that was removed")});re({eventId:M().describe("Event ID to cancel")});re({success:We().describe("Whether cancellation was successful"),eventId:M().describe("Event ID that was cancelled")});re({eventId:M().describe("Event ID to acknowledge")});re({success:We().describe("Whether ACK was successful"),eventId:M().describe("Event ID that was acknowledged")});const Wte=re({prefix:M().optional().describe("Filter objects by prefix (e.g., 'folder/' for folder contents)"),maxKeys:Pe().optional().default(1e3).describe("Maximum number of keys to return (default: 1000)"),continuationToken:M().optional().describe("Token for pagination from previous response"),delimiter:M().optional().describe("Delimiter for grouping keys (typically '/'). When set, commonPrefixes returns folder paths.")}),Yte=re({objects:ve(re({key:M().describe("Object key/path"),size:Pe().describe("Object size in bytes"),lastModified:M().describe("Last modified timestamp"),etag:M().describe("Entity tag for the object")})),nextContinuationToken:M().optional().describe("Token for fetching next page of results"),isTruncated:We().describe("Whether there are more results available"),commonPrefixes:ve(M()).optional().describe("Folder paths when delimiter is used (e.g., ['photos/2024/', 'photos/2025/'])")}),Qte=re({key:M().describe("Object key/path to get metadata for")}),Xte=re({contentType:M().optional().describe("MIME type of the object"),contentLength:Pe().describe("Size of the object in bytes"),lastModified:M().describe("Last modified timestamp"),etag:M().describe("Entity tag for the object"),metadata:lt(M(),M()).optional().describe("Custom metadata key-value pairs")}),Jte=re({key:M().describe("Object key/path to generate URL for"),expiresIn:Pe().optional().describe("URL expiration time in seconds (default: from state config or 3600)")}),ene=re({url:M().describe("Presigned URL for downloading the object"),expiresIn:Pe().describe("Expiration time in seconds that was used")}),tne=re({key:M().describe("Object key/path for the upload"),expiresIn:Pe().optional().describe("URL expiration time in seconds (default: from state config or 3600)"),contentType:M().optional().describe("MIME type for the object being uploaded")}),nne=re({url:M().describe("Presigned URL for uploading the object"),expiresIn:Pe().describe("Expiration time in seconds that was used")}),rne=re({key:M().describe("Object key/path to delete")}),one=re({success:We().describe("Whether the deletion was successful"),key:M().describe("The key that was deleted")}),ane=re({keys:ve(M()).max(1e3).describe("Array of object keys/paths to delete (max 1000)")}),sne=re({deleted:ve(M()).describe("Array of successfully deleted keys"),errors:ve(re({key:M(),message:M()})).describe("Array of errors for failed deletions")}),ine=[{name:"LIST_OBJECTS",inputSchema:Wte,outputSchema:Yte},{name:"GET_OBJECT_METADATA",inputSchema:Qte,outputSchema:Xte},{name:"GET_PRESIGNED_URL",inputSchema:Jte,outputSchema:ene},{name:"PUT_PRESIGNED_URL",inputSchema:tne,outputSchema:nne},{name:"DELETE_OBJECT",inputSchema:rne,outputSchema:one},{name:"DELETE_OBJECTS",inputSchema:ane,outputSchema:sne}],cne=re({toolName:M().describe("Name of the tool to invoke on that connection"),transformCode:M().optional().describe("Pure TypeScript function for data transformation of the tool call result. Must be a TypeScript file that declares the Output interface and exports a default function: `interface Output { ... } export default async function(input): Output { ... }`\n The input will match with the tool call outputSchema. If transformCode is not provided, the tool call result will be used as the step output. \n Providing an transformCode is recommended because it both allows you to transform the data and validate it against a JSON Schema - tools are ephemeral and may return unexpected data.")}),lne=re({code:M().describe(`Pure TypeScript function for data transformation. Useful to merge data from multiple steps and transform it. Must be a TypeScript file that declares the Output interface and exports a default function: \`interface Output { ... } export default async function(input): Output { ... }\`
|
|
175
|
-
The input is the resolved value of the references in the input field. Example:
|
|
176
|
-
{
|
|
177
|
-
"input": {
|
|
178
|
-
"name": "@Step_1.name",
|
|
179
|
-
"age": "@Step_2.age"
|
|
180
|
-
},
|
|
181
|
-
"code": "export default function(input): Output { return { result: \`\${input.name} is \${input.age} years old.\` } }"
|
|
182
|
-
}
|
|
183
|
-
`)});re({signalName:M().describe("Signal name to wait for (e.g., 'approval'). Execution pauses until SEND_SIGNAL is called with this name.")});const une=gt([cne.describe("Call an external tool via MCP connection. "),lne.describe("Run pure TypeScript code for data transformation. Useful to merge data from multiple steps and transform it.")]),dne=re({maxAttempts:Pe().optional().describe("Max retry attempts on failure (default: 1, no retries)"),backoffMs:Pe().optional().describe("Initial delay between retries in ms (doubles each attempt)"),timeoutMs:Pe().optional().describe("Max execution time in ms before step fails (default: 30000)"),onError:xt(["fail","continue"]).optional().describe("What to do when this step fails: 'fail' aborts the workflow, 'continue' skips the error and proceeds")}),xP=go(()=>re({type:M().optional(),properties:lt(M(),ot()).optional(),required:ve(M()).optional(),description:M().optional(),additionalProperties:We().optional(),additionalItems:We().optional(),items:xP.optional()}).passthrough()),fne=re({name:M().min(1).describe("Unique identifier for this step. Other steps reference its output as @name.field"),description:M().optional().describe("What this step does"),action:une,input:lt(M(),ot()).optional().describe("Data passed to the action. Use @ref for dynamic values: @input.field (workflow input), @stepName.field (previous step output), @item/@index (loop context). Example: { 'userId': '@input.user_id', 'data': '@fetch.result' }"),outputSchema:xP.optional().describe("Optional JSON Schema describing the expected output of the step."),config:dne.optional().describe("Retry and timeout settings"),forEach:re({ref:M().describe("@ ref to the step to iterate over"),concurrency:Pe().optional().default(1).describe("max parallel iterations. default is 1 (sequential)")}).optional()}),hne=xt(["enqueued","running","success","error","failed","cancelled"]).default("enqueued"),TP=og.extend({virtual_mcp_id:M().describe("ID of the virtual MCP (agent) that will be used to execute the workflow"),status:hne.describe("Current status of the workflow execution"),input:lt(M(),ot()).optional().describe("Input data for the workflow execution"),output:ot().optional().describe("Output data for the workflow execution"),completed_at_epoch_ms:Pe().nullish().describe("Timestamp of when the workflow execution completed"),start_at_epoch_ms:Pe().nullish().describe("Timestamp of when the workflow execution started or will start"),timeout_ms:Pe().nullish().describe("Timeout in milliseconds for the workflow execution"),deadline_at_epoch_ms:Pe().nullish().describe("Deadline for the workflow execution - when the workflow execution will be cancelled if it is not completed. This is read-only and is set by the workflow engine when an execution is created."),error:ot().nullish().describe("Error that occurred during the workflow execution"),completed_steps:re({success:ve(re({name:M(),completed_at_epoch_ms:Pe()})).describe("Names of the steps that were completed successfully"),error:ve(M()).describe("Names of the steps that errored")}).optional().describe("Names of the steps that were completed and their status"),running_steps:ve(M()).optional().describe("Names of the steps that are currently running")}),pne=xt(["signal","timer","message","output","step_started","step_completed","workflow_started","workflow_completed"]);og.extend({execution_id:M(),type:pne,name:M().nullish(),payload:ot().optional(),visible_at:Pe().nullish(),consumed_at:Pe().nullish(),source_execution_id:M().nullish()});const mne=og.extend({description:M().optional().describe("Human-readable summary of what this workflow does"),steps:ve(fne).describe("Ordered list of steps. Execution order is auto-determined by @ref dependencies: steps with no @ref dependencies run in parallel; steps referencing @stepName wait for that step to complete.")}),gne=ag("workflow",mne),vne={maxAttempts:1,timeoutMs:3e4},cae={name:"Initial Step",action:{code:`
|
|
184
|
-
interface Input {
|
|
185
|
-
example: string;
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
interface Output {
|
|
189
|
-
result: unknown;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
export default async function(input: Input): Promise<Output> {
|
|
193
|
-
return {
|
|
194
|
-
result: input.example
|
|
195
|
-
}
|
|
196
|
-
}`},config:vne,outputSchema:{type:"object",properties:{result:{type:"string",description:"The result of the step"}},required:["result"],description:"The output of the step. This is a JSON Schema describing the expected output of the step."}},yne=ag("workflow_execution",TP),_ne=[...gne,...yne],lae=[..._ne],uae=ag("workflow_execution",TP),sg=xt(["passing","warning","failing","info"]),bne=re({label:M().describe("Metric label (e.g. 'LCP', 'Performance')"),value:gt([Pe(),M()]).describe("Current metric value"),unit:M().optional().describe("Unit of measurement (e.g. 's', 'ms', 'score')"),previousValue:gt([Pe(),M()]).optional().describe("Previous value for delta comparison"),status:sg.optional().describe("Status of this individual metric")}),wne=re({label:M().describe("Short name of the criterion"),description:M().optional().describe("Longer explanation"),status:sg.optional().describe("Status of this individual criterion (passing/warning/failing/info)")}),Sne=re({position:Pe().describe("Current rank position"),reference_position:Pe().optional().describe("Previous rank position before reordering. Used to compute delta automatically (delta = reference_position - position)."),delta:Pe().optional().describe("Explicit change in position. Ignored when reference_position is provided."),label:M().describe("Item name"),image:M().describe("URL of the item image"),values:ve(gt([M(),Pe()])).describe("Values matching columns"),note:gt([M(),lt(M(),gt([M(),Pe()]))]).optional().describe("Inline annotation or structured key-value metrics")}),Ene=kb("type",[re({type:De("markdown"),content:M().describe("Markdown content")}),re({type:De("metrics"),title:M().optional().describe("Section title"),items:ve(bne).describe("Metric items")}),re({type:De("table"),title:M().optional().describe("Section title"),columns:ve(M()).describe("Column headers"),rows:ve(ve(gt([M(),Pe(),El()]))).describe("Table rows")}),re({type:De("criteria"),title:M().optional().describe("Section title"),items:ve(wne).describe("List of criteria items")}),re({type:De("note"),content:M().describe("The note text")}),re({type:De("ranked-list"),title:M().optional().describe("Section title"),rows:ve(Sne).describe("Ranked items")})]),OP=xt(["unread","read","dismissed"]),CP=re({id:M().describe("Unique report identifier"),collectionId:M().describe("Collection identifier used to scope reports"),title:M().describe("Report title"),category:M().describe("Report category (e.g. 'performance', 'security', 'accessibility')"),status:sg.describe("Overall report status"),summary:M().describe("One-line summary of findings"),updatedAt:M().describe("ISO 8601 timestamp of last update"),source:M().optional().describe("Agent or service that generated the report (e.g. 'security-auditor', 'performance-monitor')"),tags:ve(M()).optional().describe("Free-form tags for filtering (e.g. 'homepage', 'api', 'ci')"),lifecycleStatus:OP.optional().describe("Inbox lifecycle status of the report (default: unread)")}),Rne=CP.extend({sections:ve(Ene).describe("Ordered content sections")});function dae(e){const t=[];let n=0;for(;n<e.length;){const r=e[n],a=e[n+1];if(r.type==="criteria"&&a?.type==="metrics"||r.type==="metrics"&&a?.type==="criteria"){const c=r.type==="criteria",u=c?r:a,d=c?a:r,f=c?n:n+1,m=c?n+1:n;t.push({type:"side-by-side",left:u,right:d,leftIdx:f,rightIdx:m}),n+=2}else t.push({type:"single",section:r,idx:n}),n+=1}return t}const xne=re({category:M().optional().describe("Filter by category (e.g. 'performance', 'security')"),status:sg.optional().describe("Filter by report status")}),Tne=re({reports:ve(CP).describe("List of report summaries")}),One=re({id:M().describe("Report identifier")}),Cne=Rne,Ane=re({reportId:M().describe("Report identifier"),lifecycleStatus:OP.describe("New lifecycle status for the report")}),Ine=re({success:We().describe("Whether the operation succeeded"),message:M().optional().describe("Human-readable result message")}),kne=[{name:"REPORTS_LIST",inputSchema:xne,outputSchema:Tne},{name:"REPORTS_GET",inputSchema:One,outputSchema:Cne},{name:"REPORTS_UPDATE_STATUS",inputSchema:Ane,outputSchema:Ine,opt:!0}];function IC(e,t,n,r){return e?e.startsWith("/")?`/${t}/${n}/${r}${e}`:e:`/${t}/${n}/${r}`}function Nne(e){return{createRoutes:e,useParams:t=>el({strict:!1}),useSearch:t=>Rm({strict:!1}),useNavigate:()=>{const t=wl(),{org:n,project:r,pluginId:a}=el({strict:!1});return i=>{const c=IC(i.to,n,r,a);return t({...i,to:c,params:{org:n,project:r,pluginId:a,...i.params}})}},useLocation:()=>SL(),Link:function(n){const{org:r,project:a,pluginId:i}=el({strict:!1}),c=IC(n.to,r,a,i);return x.jsx(Tm,{...n,to:c,params:{org:r,project:a,pluginId:i,...n.params}})},_types:{routes:void 0,routeIds:void 0}}}var kt;(function(e){e.assertEqual=a=>{};function t(a){}e.assertIs=t;function n(a){throw new Error}e.assertNever=n,e.arrayToEnum=a=>{const i={};for(const c of a)i[c]=c;return i},e.getValidEnumValues=a=>{const i=e.objectKeys(a).filter(u=>typeof a[a[u]]!="number"),c={};for(const u of i)c[u]=a[u];return e.objectValues(c)},e.objectValues=a=>e.objectKeys(a).map(function(i){return a[i]}),e.objectKeys=typeof Object.keys=="function"?a=>Object.keys(a):a=>{const i=[];for(const c in a)Object.prototype.hasOwnProperty.call(a,c)&&i.push(c);return i},e.find=(a,i)=>{for(const c of a)if(i(c))return c},e.isInteger=typeof Number.isInteger=="function"?a=>Number.isInteger(a):a=>typeof a=="number"&&Number.isFinite(a)&&Math.floor(a)===a;function r(a,i=" | "){return a.map(c=>typeof c=="string"?`'${c}'`:c).join(i)}e.joinValues=r,e.jsonStringifyReplacer=(a,i)=>typeof i=="bigint"?i.toString():i})(kt||(kt={}));var kC;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(kC||(kC={}));const Fe=kt.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Ss=e=>{switch(typeof e){case"undefined":return Fe.undefined;case"string":return Fe.string;case"number":return Number.isNaN(e)?Fe.nan:Fe.number;case"boolean":return Fe.boolean;case"function":return Fe.function;case"bigint":return Fe.bigint;case"symbol":return Fe.symbol;case"object":return Array.isArray(e)?Fe.array:e===null?Fe.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?Fe.promise:typeof Map<"u"&&e instanceof Map?Fe.map:typeof Set<"u"&&e instanceof Set?Fe.set:typeof Date<"u"&&e instanceof Date?Fe.date:Fe.object;default:return Fe.unknown}},Ie=kt.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class La extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){const n=t||function(i){return i.message},r={_errors:[]},a=i=>{for(const c of i.issues)if(c.code==="invalid_union")c.unionErrors.map(a);else if(c.code==="invalid_return_type")a(c.returnTypeError);else if(c.code==="invalid_arguments")a(c.argumentsError);else if(c.path.length===0)r._errors.push(n(c));else{let u=r,d=0;for(;d<c.path.length;){const f=c.path[d];d===c.path.length-1?(u[f]=u[f]||{_errors:[]},u[f]._errors.push(n(c))):u[f]=u[f]||{_errors:[]},u=u[f],d++}}};return a(this),r}static assert(t){if(!(t instanceof La))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,kt.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},r=[];for(const a of this.issues)if(a.path.length>0){const i=a.path[0];n[i]=n[i]||[],n[i].push(t(a))}else r.push(t(a));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}La.create=e=>new La(e);const ob=(e,t)=>{let n;switch(e.code){case Ie.invalid_type:e.received===Fe.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case Ie.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,kt.jsonStringifyReplacer)}`;break;case Ie.unrecognized_keys:n=`Unrecognized key(s) in object: ${kt.joinValues(e.keys,", ")}`;break;case Ie.invalid_union:n="Invalid input";break;case Ie.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${kt.joinValues(e.options)}`;break;case Ie.invalid_enum_value:n=`Invalid enum value. Expected ${kt.joinValues(e.options)}, received '${e.received}'`;break;case Ie.invalid_arguments:n="Invalid function arguments";break;case Ie.invalid_return_type:n="Invalid function return type";break;case Ie.invalid_date:n="Invalid date";break;case Ie.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:kt.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case Ie.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case Ie.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case Ie.custom:n="Invalid input";break;case Ie.invalid_intersection_types:n="Intersection results could not be merged";break;case Ie.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case Ie.not_finite:n="Number must be finite";break;default:n=t.defaultError,kt.assertNever(e)}return{message:n}};let Mne=ob;function Pne(){return Mne}const Dne=e=>{const{data:t,path:n,errorMaps:r,issueData:a}=e,i=[...n,...a.path||[]],c={...a,path:i};if(a.message!==void 0)return{...a,path:i,message:a.message};let u="";const d=r.filter(f=>!!f).slice().reverse();for(const f of d)u=f(c,{data:t,defaultError:u}).message;return{...a,path:i,message:u}};function Le(e,t){const n=Pne(),r=Dne({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===ob?void 0:ob].filter(a=>!!a)});e.common.issues.push(r)}class Wr{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const r=[];for(const a of n){if(a.status==="aborted")return tt;a.status==="dirty"&&t.dirty(),r.push(a.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const a of n){const i=await a.key,c=await a.value;r.push({key:i,value:c})}return Wr.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const a of n){const{key:i,value:c}=a;if(i.status==="aborted"||c.status==="aborted")return tt;i.status==="dirty"&&t.dirty(),c.status==="dirty"&&t.dirty(),i.value!=="__proto__"&&(typeof c.value<"u"||a.alwaysSet)&&(r[i.value]=c.value)}return{status:t.value,value:r}}}const tt=Object.freeze({status:"aborted"}),Uu=e=>({status:"dirty",value:e}),_o=e=>({status:"valid",value:e}),NC=e=>e.status==="aborted",MC=e=>e.status==="dirty",vl=e=>e.status==="valid",mm=e=>typeof Promise<"u"&&e instanceof Promise;var qe;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(qe||(qe={}));class $s{constructor(t,n,r,a){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=a}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const PC=(e,t)=>{if(vl(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new La(e.common.issues);return this._error=n,this._error}}};function mt(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:a}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:a}:{errorMap:(c,u)=>{const{message:d}=e;return c.code==="invalid_enum_value"?{message:d??u.defaultError}:typeof u.data>"u"?{message:d??r??u.defaultError}:c.code!=="invalid_type"?{message:u.defaultError}:{message:d??n??u.defaultError}},description:a}}class Ct{get description(){return this._def.description}_getType(t){return Ss(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:Ss(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Wr,ctx:{common:t.parent.common,data:t.data,parsedType:Ss(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(mm(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){const r={common:{issues:[],async:n?.async??!1,contextualErrorMap:n?.errorMap},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Ss(t)},a=this._parseSync({data:t,path:r.path,parent:r});return PC(r,a)}"~validate"(t){const n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Ss(t)};if(!this["~standard"].async)try{const r=this._parseSync({data:t,path:[],parent:n});return vl(r)?{value:r.value}:{issues:n.common.issues}}catch(r){r?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:n}).then(r=>vl(r)?{value:r.value}:{issues:n.common.issues})}async parseAsync(t,n){const r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){const r={common:{issues:[],contextualErrorMap:n?.errorMap,async:!0},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Ss(t)},a=this._parse({data:t,path:r.path,parent:r}),i=await(mm(a)?a:Promise.resolve(a));return PC(r,i)}refine(t,n){const r=a=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(a):n;return this._refinement((a,i)=>{const c=t(a),u=()=>i.addIssue({code:Ie.custom,...r(a)});return typeof Promise<"u"&&c instanceof Promise?c.then(d=>d?!0:(u(),!1)):c?!0:(u(),!1)})}refinement(t,n){return this._refinement((r,a)=>t(r)?!0:(a.addIssue(typeof n=="function"?n(r,a):n),!1))}_refinement(t){return new _l({schema:this,typeName:nt.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return Ms.create(this,this._def)}nullable(){return bl.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return ta.create(this)}promise(){return _m.create(this,this._def)}or(t){return vm.create([this,t],this._def)}and(t){return ym.create(this,t,this._def)}transform(t){return new _l({...mt(this._def),schema:this,typeName:nt.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new ib({...mt(this._def),innerType:this,defaultValue:n,typeName:nt.ZodDefault})}brand(){return new ore({typeName:nt.ZodBranded,type:this,...mt(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new cb({...mt(this._def),innerType:this,catchValue:n,typeName:nt.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return tw.create(this,t)}readonly(){return lb.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const Lne=/^c[^\s-]{8,}$/i,jne=/^[0-9a-z]+$/,$ne=/^[0-9A-HJKMNP-TV-Z]{26}$/i,Une=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,zne=/^[a-z0-9_-]{21}$/i,Vne=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,Fne=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Bne=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,qne="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let H0;const Hne=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Gne=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,Zne=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,Kne=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Wne=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Yne=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,AP="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",Qne=new RegExp(`^${AP}$`);function IP(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);const n=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}function Xne(e){return new RegExp(`^${IP(e)}$`)}function Jne(e){let t=`${AP}T${IP(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function ere(e,t){return!!((t==="v4"||!t)&&Hne.test(e)||(t==="v6"||!t)&&Zne.test(e))}function tre(e,t){if(!Vne.test(e))return!1;try{const[n]=e.split(".");if(!n)return!1;const r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),a=JSON.parse(atob(r));return!(typeof a!="object"||a===null||"typ"in a&&a?.typ!=="JWT"||!a.alg||t&&a.alg!==t)}catch{return!1}}function nre(e,t){return!!((t==="v4"||!t)&&Gne.test(e)||(t==="v6"||!t)&&Kne.test(e))}class Os extends Ct{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==Fe.string){const i=this._getOrReturnCtx(t);return Le(i,{code:Ie.invalid_type,expected:Fe.string,received:i.parsedType}),tt}const r=new Wr;let a;for(const i of this._def.checks)if(i.kind==="min")t.data.length<i.value&&(a=this._getOrReturnCtx(t,a),Le(a,{code:Ie.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if(i.kind==="max")t.data.length>i.value&&(a=this._getOrReturnCtx(t,a),Le(a,{code:Ie.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if(i.kind==="length"){const c=t.data.length>i.value,u=t.data.length<i.value;(c||u)&&(a=this._getOrReturnCtx(t,a),c?Le(a,{code:Ie.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):u&&Le(a,{code:Ie.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),r.dirty())}else if(i.kind==="email")Bne.test(t.data)||(a=this._getOrReturnCtx(t,a),Le(a,{validation:"email",code:Ie.invalid_string,message:i.message}),r.dirty());else if(i.kind==="emoji")H0||(H0=new RegExp(qne,"u")),H0.test(t.data)||(a=this._getOrReturnCtx(t,a),Le(a,{validation:"emoji",code:Ie.invalid_string,message:i.message}),r.dirty());else if(i.kind==="uuid")Une.test(t.data)||(a=this._getOrReturnCtx(t,a),Le(a,{validation:"uuid",code:Ie.invalid_string,message:i.message}),r.dirty());else if(i.kind==="nanoid")zne.test(t.data)||(a=this._getOrReturnCtx(t,a),Le(a,{validation:"nanoid",code:Ie.invalid_string,message:i.message}),r.dirty());else if(i.kind==="cuid")Lne.test(t.data)||(a=this._getOrReturnCtx(t,a),Le(a,{validation:"cuid",code:Ie.invalid_string,message:i.message}),r.dirty());else if(i.kind==="cuid2")jne.test(t.data)||(a=this._getOrReturnCtx(t,a),Le(a,{validation:"cuid2",code:Ie.invalid_string,message:i.message}),r.dirty());else if(i.kind==="ulid")$ne.test(t.data)||(a=this._getOrReturnCtx(t,a),Le(a,{validation:"ulid",code:Ie.invalid_string,message:i.message}),r.dirty());else if(i.kind==="url")try{new URL(t.data)}catch{a=this._getOrReturnCtx(t,a),Le(a,{validation:"url",code:Ie.invalid_string,message:i.message}),r.dirty()}else i.kind==="regex"?(i.regex.lastIndex=0,i.regex.test(t.data)||(a=this._getOrReturnCtx(t,a),Le(a,{validation:"regex",code:Ie.invalid_string,message:i.message}),r.dirty())):i.kind==="trim"?t.data=t.data.trim():i.kind==="includes"?t.data.includes(i.value,i.position)||(a=this._getOrReturnCtx(t,a),Le(a,{code:Ie.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),r.dirty()):i.kind==="toLowerCase"?t.data=t.data.toLowerCase():i.kind==="toUpperCase"?t.data=t.data.toUpperCase():i.kind==="startsWith"?t.data.startsWith(i.value)||(a=this._getOrReturnCtx(t,a),Le(a,{code:Ie.invalid_string,validation:{startsWith:i.value},message:i.message}),r.dirty()):i.kind==="endsWith"?t.data.endsWith(i.value)||(a=this._getOrReturnCtx(t,a),Le(a,{code:Ie.invalid_string,validation:{endsWith:i.value},message:i.message}),r.dirty()):i.kind==="datetime"?Jne(i).test(t.data)||(a=this._getOrReturnCtx(t,a),Le(a,{code:Ie.invalid_string,validation:"datetime",message:i.message}),r.dirty()):i.kind==="date"?Qne.test(t.data)||(a=this._getOrReturnCtx(t,a),Le(a,{code:Ie.invalid_string,validation:"date",message:i.message}),r.dirty()):i.kind==="time"?Xne(i).test(t.data)||(a=this._getOrReturnCtx(t,a),Le(a,{code:Ie.invalid_string,validation:"time",message:i.message}),r.dirty()):i.kind==="duration"?Fne.test(t.data)||(a=this._getOrReturnCtx(t,a),Le(a,{validation:"duration",code:Ie.invalid_string,message:i.message}),r.dirty()):i.kind==="ip"?ere(t.data,i.version)||(a=this._getOrReturnCtx(t,a),Le(a,{validation:"ip",code:Ie.invalid_string,message:i.message}),r.dirty()):i.kind==="jwt"?tre(t.data,i.alg)||(a=this._getOrReturnCtx(t,a),Le(a,{validation:"jwt",code:Ie.invalid_string,message:i.message}),r.dirty()):i.kind==="cidr"?nre(t.data,i.version)||(a=this._getOrReturnCtx(t,a),Le(a,{validation:"cidr",code:Ie.invalid_string,message:i.message}),r.dirty()):i.kind==="base64"?Wne.test(t.data)||(a=this._getOrReturnCtx(t,a),Le(a,{validation:"base64",code:Ie.invalid_string,message:i.message}),r.dirty()):i.kind==="base64url"?Yne.test(t.data)||(a=this._getOrReturnCtx(t,a),Le(a,{validation:"base64url",code:Ie.invalid_string,message:i.message}),r.dirty()):kt.assertNever(i);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(a=>t.test(a),{validation:n,code:Ie.invalid_string,...qe.errToObj(r)})}_addCheck(t){return new Os({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...qe.errToObj(t)})}url(t){return this._addCheck({kind:"url",...qe.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...qe.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...qe.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...qe.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...qe.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...qe.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...qe.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...qe.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...qe.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...qe.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...qe.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...qe.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof t?.precision>"u"?null:t?.precision,offset:t?.offset??!1,local:t?.local??!1,...qe.errToObj(t?.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof t?.precision>"u"?null:t?.precision,...qe.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...qe.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...qe.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n?.position,...qe.errToObj(n?.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...qe.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...qe.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...qe.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...qe.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...qe.errToObj(n)})}nonempty(t){return this.min(1,qe.errToObj(t))}trim(){return new Os({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Os({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Os({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}Os.create=e=>new Os({checks:[],typeName:nt.ZodString,coerce:e?.coerce??!1,...mt(e)});function rre(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,a=n>r?n:r,i=Number.parseInt(e.toFixed(a).replace(".","")),c=Number.parseInt(t.toFixed(a).replace(".",""));return i%c/10**a}class hd extends Ct{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==Fe.number){const i=this._getOrReturnCtx(t);return Le(i,{code:Ie.invalid_type,expected:Fe.number,received:i.parsedType}),tt}let r;const a=new Wr;for(const i of this._def.checks)i.kind==="int"?kt.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),Le(r,{code:Ie.invalid_type,expected:"integer",received:"float",message:i.message}),a.dirty()):i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(r=this._getOrReturnCtx(t,r),Le(r,{code:Ie.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),a.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(r=this._getOrReturnCtx(t,r),Le(r,{code:Ie.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),a.dirty()):i.kind==="multipleOf"?rre(t.data,i.value)!==0&&(r=this._getOrReturnCtx(t,r),Le(r,{code:Ie.not_multiple_of,multipleOf:i.value,message:i.message}),a.dirty()):i.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),Le(r,{code:Ie.not_finite,message:i.message}),a.dirty()):kt.assertNever(i);return{status:a.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,qe.toString(n))}gt(t,n){return this.setLimit("min",t,!1,qe.toString(n))}lte(t,n){return this.setLimit("max",t,!0,qe.toString(n))}lt(t,n){return this.setLimit("max",t,!1,qe.toString(n))}setLimit(t,n,r,a){return new hd({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:qe.toString(a)}]})}_addCheck(t){return new hd({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:qe.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:qe.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:qe.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:qe.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:qe.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:qe.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:qe.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:qe.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:qe.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&kt.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.value<t)&&(t=r.value)}return Number.isFinite(n)&&Number.isFinite(t)}}hd.create=e=>new hd({checks:[],typeName:nt.ZodNumber,coerce:e?.coerce||!1,...mt(e)});class pd extends Ct{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==Fe.bigint)return this._getInvalidInput(t);let r;const a=new Wr;for(const i of this._def.checks)i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(r=this._getOrReturnCtx(t,r),Le(r,{code:Ie.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),a.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(r=this._getOrReturnCtx(t,r),Le(r,{code:Ie.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),a.dirty()):i.kind==="multipleOf"?t.data%i.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),Le(r,{code:Ie.not_multiple_of,multipleOf:i.value,message:i.message}),a.dirty()):kt.assertNever(i);return{status:a.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return Le(n,{code:Ie.invalid_type,expected:Fe.bigint,received:n.parsedType}),tt}gte(t,n){return this.setLimit("min",t,!0,qe.toString(n))}gt(t,n){return this.setLimit("min",t,!1,qe.toString(n))}lte(t,n){return this.setLimit("max",t,!0,qe.toString(n))}lt(t,n){return this.setLimit("max",t,!1,qe.toString(n))}setLimit(t,n,r,a){return new pd({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:qe.toString(a)}]})}_addCheck(t){return new pd({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:qe.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:qe.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:qe.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:qe.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:qe.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}pd.create=e=>new pd({checks:[],typeName:nt.ZodBigInt,coerce:e?.coerce??!1,...mt(e)});class ab extends Ct{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==Fe.boolean){const r=this._getOrReturnCtx(t);return Le(r,{code:Ie.invalid_type,expected:Fe.boolean,received:r.parsedType}),tt}return _o(t.data)}}ab.create=e=>new ab({typeName:nt.ZodBoolean,coerce:e?.coerce||!1,...mt(e)});class gm extends Ct{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==Fe.date){const i=this._getOrReturnCtx(t);return Le(i,{code:Ie.invalid_type,expected:Fe.date,received:i.parsedType}),tt}if(Number.isNaN(t.data.getTime())){const i=this._getOrReturnCtx(t);return Le(i,{code:Ie.invalid_date}),tt}const r=new Wr;let a;for(const i of this._def.checks)i.kind==="min"?t.data.getTime()<i.value&&(a=this._getOrReturnCtx(t,a),Le(a,{code:Ie.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),r.dirty()):i.kind==="max"?t.data.getTime()>i.value&&(a=this._getOrReturnCtx(t,a),Le(a,{code:Ie.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),r.dirty()):kt.assertNever(i);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new gm({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:qe.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:qe.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}}gm.create=e=>new gm({checks:[],coerce:e?.coerce||!1,typeName:nt.ZodDate,...mt(e)});class DC extends Ct{_parse(t){if(this._getType(t)!==Fe.symbol){const r=this._getOrReturnCtx(t);return Le(r,{code:Ie.invalid_type,expected:Fe.symbol,received:r.parsedType}),tt}return _o(t.data)}}DC.create=e=>new DC({typeName:nt.ZodSymbol,...mt(e)});class LC extends Ct{_parse(t){if(this._getType(t)!==Fe.undefined){const r=this._getOrReturnCtx(t);return Le(r,{code:Ie.invalid_type,expected:Fe.undefined,received:r.parsedType}),tt}return _o(t.data)}}LC.create=e=>new LC({typeName:nt.ZodUndefined,...mt(e)});class jC extends Ct{_parse(t){if(this._getType(t)!==Fe.null){const r=this._getOrReturnCtx(t);return Le(r,{code:Ie.invalid_type,expected:Fe.null,received:r.parsedType}),tt}return _o(t.data)}}jC.create=e=>new jC({typeName:nt.ZodNull,...mt(e)});class $C extends Ct{constructor(){super(...arguments),this._any=!0}_parse(t){return _o(t.data)}}$C.create=e=>new $C({typeName:nt.ZodAny,...mt(e)});class UC extends Ct{constructor(){super(...arguments),this._unknown=!0}_parse(t){return _o(t.data)}}UC.create=e=>new UC({typeName:nt.ZodUnknown,...mt(e)});class Us extends Ct{_parse(t){const n=this._getOrReturnCtx(t);return Le(n,{code:Ie.invalid_type,expected:Fe.never,received:n.parsedType}),tt}}Us.create=e=>new Us({typeName:nt.ZodNever,...mt(e)});class zC extends Ct{_parse(t){if(this._getType(t)!==Fe.undefined){const r=this._getOrReturnCtx(t);return Le(r,{code:Ie.invalid_type,expected:Fe.void,received:r.parsedType}),tt}return _o(t.data)}}zC.create=e=>new zC({typeName:nt.ZodVoid,...mt(e)});class ta extends Ct{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),a=this._def;if(n.parsedType!==Fe.array)return Le(n,{code:Ie.invalid_type,expected:Fe.array,received:n.parsedType}),tt;if(a.exactLength!==null){const c=n.data.length>a.exactLength.value,u=n.data.length<a.exactLength.value;(c||u)&&(Le(n,{code:c?Ie.too_big:Ie.too_small,minimum:u?a.exactLength.value:void 0,maximum:c?a.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:a.exactLength.message}),r.dirty())}if(a.minLength!==null&&n.data.length<a.minLength.value&&(Le(n,{code:Ie.too_small,minimum:a.minLength.value,type:"array",inclusive:!0,exact:!1,message:a.minLength.message}),r.dirty()),a.maxLength!==null&&n.data.length>a.maxLength.value&&(Le(n,{code:Ie.too_big,maximum:a.maxLength.value,type:"array",inclusive:!0,exact:!1,message:a.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((c,u)=>a.type._parseAsync(new $s(n,c,n.path,u)))).then(c=>Wr.mergeArray(r,c));const i=[...n.data].map((c,u)=>a.type._parseSync(new $s(n,c,n.path,u)));return Wr.mergeArray(r,i)}get element(){return this._def.type}min(t,n){return new ta({...this._def,minLength:{value:t,message:qe.toString(n)}})}max(t,n){return new ta({...this._def,maxLength:{value:t,message:qe.toString(n)}})}length(t,n){return new ta({...this._def,exactLength:{value:t,message:qe.toString(n)}})}nonempty(t){return this.min(1,t)}}ta.create=(e,t)=>new ta({type:e,minLength:null,maxLength:null,exactLength:null,typeName:nt.ZodArray,...mt(t)});function Zc(e){if(e instanceof wn){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=Ms.create(Zc(r))}return new wn({...e._def,shape:()=>t})}else return e instanceof ta?new ta({...e._def,type:Zc(e.element)}):e instanceof Ms?Ms.create(Zc(e.unwrap())):e instanceof bl?bl.create(Zc(e.unwrap())):e instanceof Di?Di.create(e.items.map(t=>Zc(t))):e}class wn extends Ct{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=kt.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==Fe.object){const f=this._getOrReturnCtx(t);return Le(f,{code:Ie.invalid_type,expected:Fe.object,received:f.parsedType}),tt}const{status:r,ctx:a}=this._processInputParams(t),{shape:i,keys:c}=this._getCached(),u=[];if(!(this._def.catchall instanceof Us&&this._def.unknownKeys==="strip"))for(const f in a.data)c.includes(f)||u.push(f);const d=[];for(const f of c){const m=i[f],p=a.data[f];d.push({key:{status:"valid",value:f},value:m._parse(new $s(a,p,a.path,f)),alwaysSet:f in a.data})}if(this._def.catchall instanceof Us){const f=this._def.unknownKeys;if(f==="passthrough")for(const m of u)d.push({key:{status:"valid",value:m},value:{status:"valid",value:a.data[m]}});else if(f==="strict")u.length>0&&(Le(a,{code:Ie.unrecognized_keys,keys:u}),r.dirty());else if(f!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const f=this._def.catchall;for(const m of u){const p=a.data[m];d.push({key:{status:"valid",value:m},value:f._parse(new $s(a,p,a.path,m)),alwaysSet:m in a.data})}}return a.common.async?Promise.resolve().then(async()=>{const f=[];for(const m of d){const p=await m.key,g=await m.value;f.push({key:p,value:g,alwaysSet:m.alwaysSet})}return f}).then(f=>Wr.mergeObjectSync(r,f)):Wr.mergeObjectSync(r,d)}get shape(){return this._def.shape()}strict(t){return qe.errToObj,new wn({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{const a=this._def.errorMap?.(n,r).message??r.defaultError;return n.code==="unrecognized_keys"?{message:qe.errToObj(t).message??a}:{message:a}}}:{}})}strip(){return new wn({...this._def,unknownKeys:"strip"})}passthrough(){return new wn({...this._def,unknownKeys:"passthrough"})}extend(t){return new wn({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new wn({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:nt.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new wn({...this._def,catchall:t})}pick(t){const n={};for(const r of kt.objectKeys(t))t[r]&&this.shape[r]&&(n[r]=this.shape[r]);return new wn({...this._def,shape:()=>n})}omit(t){const n={};for(const r of kt.objectKeys(this.shape))t[r]||(n[r]=this.shape[r]);return new wn({...this._def,shape:()=>n})}deepPartial(){return Zc(this)}partial(t){const n={};for(const r of kt.objectKeys(this.shape)){const a=this.shape[r];t&&!t[r]?n[r]=a:n[r]=a.optional()}return new wn({...this._def,shape:()=>n})}required(t){const n={};for(const r of kt.objectKeys(this.shape))if(t&&!t[r])n[r]=this.shape[r];else{let i=this.shape[r];for(;i instanceof Ms;)i=i._def.innerType;n[r]=i}return new wn({...this._def,shape:()=>n})}keyof(){return kP(kt.objectKeys(this.shape))}}wn.create=(e,t)=>new wn({shape:()=>e,unknownKeys:"strip",catchall:Us.create(),typeName:nt.ZodObject,...mt(t)});wn.strictCreate=(e,t)=>new wn({shape:()=>e,unknownKeys:"strict",catchall:Us.create(),typeName:nt.ZodObject,...mt(t)});wn.lazycreate=(e,t)=>new wn({shape:e,unknownKeys:"strip",catchall:Us.create(),typeName:nt.ZodObject,...mt(t)});class vm extends Ct{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function a(i){for(const u of i)if(u.result.status==="valid")return u.result;for(const u of i)if(u.result.status==="dirty")return n.common.issues.push(...u.ctx.common.issues),u.result;const c=i.map(u=>new La(u.ctx.common.issues));return Le(n,{code:Ie.invalid_union,unionErrors:c}),tt}if(n.common.async)return Promise.all(r.map(async i=>{const c={...n,common:{...n.common,issues:[]},parent:null};return{result:await i._parseAsync({data:n.data,path:n.path,parent:c}),ctx:c}})).then(a);{let i;const c=[];for(const d of r){const f={...n,common:{...n.common,issues:[]},parent:null},m=d._parseSync({data:n.data,path:n.path,parent:f});if(m.status==="valid")return m;m.status==="dirty"&&!i&&(i={result:m,ctx:f}),f.common.issues.length&&c.push(f.common.issues)}if(i)return n.common.issues.push(...i.ctx.common.issues),i.result;const u=c.map(d=>new La(d));return Le(n,{code:Ie.invalid_union,unionErrors:u}),tt}}get options(){return this._def.options}}vm.create=(e,t)=>new vm({options:e,typeName:nt.ZodUnion,...mt(t)});function sb(e,t){const n=Ss(e),r=Ss(t);if(e===t)return{valid:!0,data:e};if(n===Fe.object&&r===Fe.object){const a=kt.objectKeys(t),i=kt.objectKeys(e).filter(u=>a.indexOf(u)!==-1),c={...e,...t};for(const u of i){const d=sb(e[u],t[u]);if(!d.valid)return{valid:!1};c[u]=d.data}return{valid:!0,data:c}}else if(n===Fe.array&&r===Fe.array){if(e.length!==t.length)return{valid:!1};const a=[];for(let i=0;i<e.length;i++){const c=e[i],u=t[i],d=sb(c,u);if(!d.valid)return{valid:!1};a.push(d.data)}return{valid:!0,data:a}}else return n===Fe.date&&r===Fe.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class ym extends Ct{_parse(t){const{status:n,ctx:r}=this._processInputParams(t),a=(i,c)=>{if(NC(i)||NC(c))return tt;const u=sb(i.value,c.value);return u.valid?((MC(i)||MC(c))&&n.dirty(),{status:n.value,value:u.data}):(Le(r,{code:Ie.invalid_intersection_types}),tt)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([i,c])=>a(i,c)):a(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}ym.create=(e,t,n)=>new ym({left:e,right:t,typeName:nt.ZodIntersection,...mt(n)});class Di extends Ct{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Fe.array)return Le(r,{code:Ie.invalid_type,expected:Fe.array,received:r.parsedType}),tt;if(r.data.length<this._def.items.length)return Le(r,{code:Ie.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),tt;!this._def.rest&&r.data.length>this._def.items.length&&(Le(r,{code:Ie.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const i=[...r.data].map((c,u)=>{const d=this._def.items[u]||this._def.rest;return d?d._parse(new $s(r,c,r.path,u)):null}).filter(c=>!!c);return r.common.async?Promise.all(i).then(c=>Wr.mergeArray(n,c)):Wr.mergeArray(n,i)}get items(){return this._def.items}rest(t){return new Di({...this._def,rest:t})}}Di.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Di({items:e,typeName:nt.ZodTuple,rest:null,...mt(t)})};class VC extends Ct{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Fe.map)return Le(r,{code:Ie.invalid_type,expected:Fe.map,received:r.parsedType}),tt;const a=this._def.keyType,i=this._def.valueType,c=[...r.data.entries()].map(([u,d],f)=>({key:a._parse(new $s(r,u,r.path,[f,"key"])),value:i._parse(new $s(r,d,r.path,[f,"value"]))}));if(r.common.async){const u=new Map;return Promise.resolve().then(async()=>{for(const d of c){const f=await d.key,m=await d.value;if(f.status==="aborted"||m.status==="aborted")return tt;(f.status==="dirty"||m.status==="dirty")&&n.dirty(),u.set(f.value,m.value)}return{status:n.value,value:u}})}else{const u=new Map;for(const d of c){const f=d.key,m=d.value;if(f.status==="aborted"||m.status==="aborted")return tt;(f.status==="dirty"||m.status==="dirty")&&n.dirty(),u.set(f.value,m.value)}return{status:n.value,value:u}}}}VC.create=(e,t,n)=>new VC({valueType:t,keyType:e,typeName:nt.ZodMap,...mt(n)});class md extends Ct{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Fe.set)return Le(r,{code:Ie.invalid_type,expected:Fe.set,received:r.parsedType}),tt;const a=this._def;a.minSize!==null&&r.data.size<a.minSize.value&&(Le(r,{code:Ie.too_small,minimum:a.minSize.value,type:"set",inclusive:!0,exact:!1,message:a.minSize.message}),n.dirty()),a.maxSize!==null&&r.data.size>a.maxSize.value&&(Le(r,{code:Ie.too_big,maximum:a.maxSize.value,type:"set",inclusive:!0,exact:!1,message:a.maxSize.message}),n.dirty());const i=this._def.valueType;function c(d){const f=new Set;for(const m of d){if(m.status==="aborted")return tt;m.status==="dirty"&&n.dirty(),f.add(m.value)}return{status:n.value,value:f}}const u=[...r.data.values()].map((d,f)=>i._parse(new $s(r,d,r.path,f)));return r.common.async?Promise.all(u).then(d=>c(d)):c(u)}min(t,n){return new md({...this._def,minSize:{value:t,message:qe.toString(n)}})}max(t,n){return new md({...this._def,maxSize:{value:t,message:qe.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}md.create=(e,t)=>new md({valueType:e,minSize:null,maxSize:null,typeName:nt.ZodSet,...mt(t)});class FC extends Ct{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}FC.create=(e,t)=>new FC({getter:e,typeName:nt.ZodLazy,...mt(t)});class BC extends Ct{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return Le(n,{received:n.data,code:Ie.invalid_literal,expected:this._def.value}),tt}return{status:"valid",value:t.data}}get value(){return this._def.value}}BC.create=(e,t)=>new BC({value:e,typeName:nt.ZodLiteral,...mt(t)});function kP(e,t){return new yl({values:e,typeName:nt.ZodEnum,...mt(t)})}class yl extends Ct{_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return Le(n,{expected:kt.joinValues(r),received:n.parsedType,code:Ie.invalid_type}),tt}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){const n=this._getOrReturnCtx(t),r=this._def.values;return Le(n,{received:n.data,code:Ie.invalid_enum_value,options:r}),tt}return _o(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return yl.create(t,{...this._def,...n})}exclude(t,n=this._def){return yl.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}}yl.create=kP;class qC extends Ct{_parse(t){const n=kt.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==Fe.string&&r.parsedType!==Fe.number){const a=kt.objectValues(n);return Le(r,{expected:kt.joinValues(a),received:r.parsedType,code:Ie.invalid_type}),tt}if(this._cache||(this._cache=new Set(kt.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const a=kt.objectValues(n);return Le(r,{received:r.data,code:Ie.invalid_enum_value,options:a}),tt}return _o(t.data)}get enum(){return this._def.values}}qC.create=(e,t)=>new qC({values:e,typeName:nt.ZodNativeEnum,...mt(t)});class _m extends Ct{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Fe.promise&&n.common.async===!1)return Le(n,{code:Ie.invalid_type,expected:Fe.promise,received:n.parsedType}),tt;const r=n.parsedType===Fe.promise?n.data:Promise.resolve(n.data);return _o(r.then(a=>this._def.type.parseAsync(a,{path:n.path,errorMap:n.common.contextualErrorMap})))}}_m.create=(e,t)=>new _m({type:e,typeName:nt.ZodPromise,...mt(t)});class _l extends Ct{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===nt.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),a=this._def.effect||null,i={addIssue:c=>{Le(r,c),c.fatal?n.abort():n.dirty()},get path(){return r.path}};if(i.addIssue=i.addIssue.bind(i),a.type==="preprocess"){const c=a.transform(r.data,i);if(r.common.async)return Promise.resolve(c).then(async u=>{if(n.value==="aborted")return tt;const d=await this._def.schema._parseAsync({data:u,path:r.path,parent:r});return d.status==="aborted"?tt:d.status==="dirty"||n.value==="dirty"?Uu(d.value):d});{if(n.value==="aborted")return tt;const u=this._def.schema._parseSync({data:c,path:r.path,parent:r});return u.status==="aborted"?tt:u.status==="dirty"||n.value==="dirty"?Uu(u.value):u}}if(a.type==="refinement"){const c=u=>{const d=a.refinement(u,i);if(r.common.async)return Promise.resolve(d);if(d instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return u};if(r.common.async===!1){const u=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return u.status==="aborted"?tt:(u.status==="dirty"&&n.dirty(),c(u.value),{status:n.value,value:u.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(u=>u.status==="aborted"?tt:(u.status==="dirty"&&n.dirty(),c(u.value).then(()=>({status:n.value,value:u.value}))))}if(a.type==="transform")if(r.common.async===!1){const c=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!vl(c))return tt;const u=a.transform(c.value,i);if(u instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:u}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(c=>vl(c)?Promise.resolve(a.transform(c.value,i)).then(u=>({status:n.value,value:u})):tt);kt.assertNever(a)}}_l.create=(e,t,n)=>new _l({schema:e,typeName:nt.ZodEffects,effect:t,...mt(n)});_l.createWithPreprocess=(e,t,n)=>new _l({schema:t,effect:{type:"preprocess",transform:e},typeName:nt.ZodEffects,...mt(n)});class Ms extends Ct{_parse(t){return this._getType(t)===Fe.undefined?_o(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Ms.create=(e,t)=>new Ms({innerType:e,typeName:nt.ZodOptional,...mt(t)});class bl extends Ct{_parse(t){return this._getType(t)===Fe.null?_o(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}bl.create=(e,t)=>new bl({innerType:e,typeName:nt.ZodNullable,...mt(t)});class ib extends Ct{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===Fe.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}ib.create=(e,t)=>new ib({innerType:e,typeName:nt.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...mt(t)});class cb extends Ct{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},a=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return mm(a)?a.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new La(r.common.issues)},input:r.data})})):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new La(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}cb.create=(e,t)=>new cb({innerType:e,typeName:nt.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...mt(t)});class HC extends Ct{_parse(t){if(this._getType(t)!==Fe.nan){const r=this._getOrReturnCtx(t);return Le(r,{code:Ie.invalid_type,expected:Fe.nan,received:r.parsedType}),tt}return{status:"valid",value:t.data}}}HC.create=e=>new HC({typeName:nt.ZodNaN,...mt(e)});class ore extends Ct{_parse(t){const{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class tw extends Ct{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const i=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?tt:i.status==="dirty"?(n.dirty(),Uu(i.value)):this._def.out._parseAsync({data:i.value,path:r.path,parent:r})})();{const a=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?tt:a.status==="dirty"?(n.dirty(),{status:"dirty",value:a.value}):this._def.out._parseSync({data:a.value,path:r.path,parent:r})}}static create(t,n){return new tw({in:t,out:n,typeName:nt.ZodPipeline})}}class lb extends Ct{_parse(t){const n=this._def.innerType._parse(t),r=a=>(vl(a)&&(a.value=Object.freeze(a.value)),a);return mm(n)?n.then(a=>r(a)):r(n)}unwrap(){return this._def.innerType}}lb.create=(e,t)=>new lb({innerType:e,typeName:nt.ZodReadonly,...mt(t)});var nt;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(nt||(nt={}));const are=Os.create,sre=ab.create;Us.create;ta.create;const ire=wn.create;vm.create;ym.create;Di.create;const cre=yl.create;_m.create;Ms.create;bl.create;const lre=ire({path:are().optional().default(""),flat:sre().optional().default(!1),view:cre(["table","grid"]).optional().default("grid")}),ure=Nne(e=>{const{createRoute:t,lazyRouteComponent:n}=e.routing;return[t({getParentRoute:()=>e.parentRoute,path:"/",component:n(()=>pt(()=>import("./file-browser-COkzPlsr.js").then(a=>a.b),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]))),validateSearch:lre})]}),dre=A.lazy(()=>pt(()=>import("./plugin-header-BhtUXHbX.js"),__vite__mapDeps([17,5,18]))),fre=A.lazy(()=>pt(()=>import("./plugin-empty-state-C4w1L8kt.js"),[])),hre={id:"object-storage",description:"Browse and manage files in S3-compatible object storage",binding:ine,renderHeader:e=>x.jsx(dre,{...e}),renderEmptyState:()=>x.jsx(fre,{}),setup:e=>{const{registerSidebarGroup:t,registerPluginRoutes:n}=e;t({id:"object-storage",label:"Object Storage",items:[{icon:x.jsx(bP,{size:16}),label:"File browser"}],defaultExpanded:!0});const r=ure.createRoutes(e);n(r)}},pre="private-registry",mre="Organization private MCP registry with CRUD and Store integration",fae=`
|
|
197
|
-
You are an MCP tool tester running automated integration checks.
|
|
198
|
-
|
|
199
|
-
Goal:
|
|
200
|
-
- Validate that this MCP and its tools work end-to-end.
|
|
201
|
-
- Prefer realistic sequences where one tool output feeds the next tool input.
|
|
202
|
-
- Example chain: list -> pick id -> get/update/delete.
|
|
203
|
-
|
|
204
|
-
Rules:
|
|
205
|
-
- Try to execute as many tools as possible.
|
|
206
|
-
- If a tool requires context, first call discovery/list tools to obtain valid IDs.
|
|
207
|
-
- If you create test data, clean it up when possible.
|
|
208
|
-
- If one tool fails, continue testing the remaining tools.
|
|
209
|
-
- If a tool returns input validation errors, fix the arguments and retry that tool.
|
|
210
|
-
- For tools that require identifiers (fileId, folderId, etc), always get IDs from previous list/get calls.
|
|
211
|
-
- Keep calls focused and safe.
|
|
212
|
-
|
|
213
|
-
At the end, provide a concise summary of:
|
|
214
|
-
- What passed
|
|
215
|
-
- What failed
|
|
216
|
-
- What could not be tested and why
|
|
217
|
-
- If some tool needs user-specific context (email/account/tenant), explicitly output a "CONTEXT_REQUIRED" note with what is needed.
|
|
218
|
-
`.trim(),gre=A.lazy(()=>pt(()=>import("./registry-layout-DeFY3kKT.js"),__vite__mapDeps([19,20,21,22,23,16,24,2,3,25,26,27,5,7,28,29,30,31,32,33,34,13,35,36,37,6,8,15,38,39,14,40,41,42,18,43,44,45,46,47,48,4,49,50,51,52,53,54,55,56,57,58,59,60]))),vre={id:pre,description:mre,LayoutComponent:gre,setup:e=>{e.registerSidebarGroup({id:"private-registry",label:"Private Registry",items:[{icon:x.jsx(wP,{size:16}),label:"Registry"}],defaultExpanded:!0})}},yre=A.lazy(()=>pt(()=>import("./reports-layout-DEPJi7t7.js"),__vite__mapDeps([61,62,23,53,52,16,24,1,13,22,5,18,6,45,63,64,55,65,20,66,51,28,67,68,69,70,7,9,71,25,39,41,42]))),_re={id:"reports",description:"View automated reports with actionable insights",binding:kne,LayoutComponent:yre,setup:e=>{e.registerSidebarGroup({id:"observability",label:"Observability",items:[{icon:x.jsx(_P,{size:16}),label:"Reports"}]})}},bre="user-sandbox",wre="Create embeddable integration flows for platform end-users";var Sre=(e,t,n,r,a,i,c,u)=>{let d=document.documentElement,f=["light","dark"];function m(y){(Array.isArray(e)?e:[e]).forEach(w=>{let S=w==="class",b=S&&i?a.map(R=>i[R]||R):a;S?(d.classList.remove(...b),d.classList.add(i&&i[y]?i[y]:y)):d.setAttribute(w,y)}),p(y)}function p(y){u&&f.includes(y)&&(d.style.colorScheme=y)}function g(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(r)m(r);else try{let y=localStorage.getItem(t)||n,w=c&&y==="system"?g():y;m(w)}catch{}},Ere=A.createContext(void 0),Rre={setTheme:e=>{},themes:[]},hae=()=>{var e;return(e=A.useContext(Ere))!=null?e:Rre};A.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:a,defaultTheme:i,value:c,themes:u,nonce:d,scriptProps:f})=>{let m=JSON.stringify([n,t,i,e,u,c,r,a]).slice(1,-1);return A.createElement("script",{...f,suppressHydrationWarning:!0,nonce:typeof window>"u"?d:"",dangerouslySetInnerHTML:{__html:`(${Sre.toString()})(${m})`}})});const xre=[],Tre={id:bre,description:wre,binding:xre},Ore="workflows",Cre="Create workflows for platform end-users",Are=A.lazy(()=>pt(()=>import("./plugin-header-sixzd3Ma.js"),__vite__mapDeps([72,5,18,73]))),Ire=A.lazy(()=>pt(()=>import("./plugin-empty-state-RaKROIGH.js"),__vite__mapDeps([74,73]))),kre={id:Ore,description:Cre,binding:[],renderHeader:e=>x.jsx(Are,{...e}),renderEmptyState:()=>x.jsx(Ire,{})},Nre=[hre,_re,Tre,vre,kre],Gs=lL({component:()=>x.jsx(Mee,{children:x.jsx(Iee,{children:x.jsx(A.Suspense,{fallback:x.jsx(yP,{}),children:x.jsx(TA,{})})})})}),Mre=bt({getParentRoute:()=>Gs,path:"/login",component:Ot(()=>pt(()=>import("./login-B3dPe2uq.js"),__vite__mapDeps([75,16,26]))),validateSearch:go(()=>re({next:M().optional(),client_id:M().optional(),redirect_uri:M().optional(),response_type:M().optional(),state:M().optional(),scope:M().optional(),code_challenge:M().optional(),code_challenge_method:M().optional()}))}),Pre=bt({getParentRoute:()=>Gs,path:"/reset-password",component:Ot(()=>pt(()=>import("./reset-password-CCjN8Der.js"),__vite__mapDeps([76,16,26]))),validateSearch:go(()=>re({token:M().optional(),error:M().optional()}))}),Dre=bt({getParentRoute:()=>Gs,path:"/auth/$pathname",component:Ot(()=>pt(()=>import("./auth-catchall-BnImxdbW.js"),[]))}),Lre=bt({getParentRoute:()=>Gs,path:"/connect/$sessionId",component:Ot(()=>pt(()=>import("./connect-DfPT2YCY.js"),__vite__mapDeps([77,23,16,39,78])))}),jre=bt({getParentRoute:()=>Gs,path:"/store/$appName",component:Ot(()=>pt(()=>import("./store-invite-e1T7z82O.js"),[])),validateSearch:go(()=>re({serverName:M().optional()}))}),$re=bt({getParentRoute:()=>Gs,path:"/oauth/callback",component:Ot(()=>pt(()=>import("./oauth-callback-BrSHCBQX.js"),__vite__mapDeps([79,13])))}),ig=bt({getParentRoute:()=>Gs,id:"shell",component:Ot(()=>pt(()=>import("./shell-layout-7XeOm_ax.js"),__vite__mapDeps([80,81,82,24,83,52,16,84,23,85,53,86,62,87,88,4,5,26,36,37,41,42,18,89,90,45,91,47,35,22,92,3,54,93,59,94,40,95,69,96,97,51,6,46,25,98,99,21,100,101,7,55,102,67,103,104,49,105,106,107,108,13,109,64,14,110,63,111,58,112,20,113,114,115,116,117,118,44,119,73,11,120,121,31,50,27,122,38,123,34,124,65,125,126])))}),Ure=bt({getParentRoute:()=>ig,path:"/",component:Ot(()=>pt(()=>import("./home-C0wm8Ra0.js"),__vite__mapDeps([127,39,115,6,5,58,35,107,26,122,38,94,40,93,16])))}),zre=bt({getParentRoute:()=>ig,path:"/$org",beforeLoad:({params:e})=>{throw ll({to:"/$org/$project",params:{org:e.org,project:pl}})}}),In=bt({getParentRoute:()=>ig,path:"/$org/$project",component:Ot(()=>pt(()=>import("./project-layout-RD2qGV-x.js"),__vite__mapDeps([128,121,23,24,36,37,89,119,115,22,129,59,42,5,55,43,41,18,98,124,88,87,16,94,40,26,15,130,21,53,52,86,62,131,132,133,134,135,109,13,58,136,137,25,6,47,125,138]))),validateSearch:re({settings:M().optional()})}),Vre=bt({getParentRoute:()=>In,path:"/",component:Ot(()=>pt(()=>import("./page-CA_pelN-.js"),__vite__mapDeps([139,81,82,24,83,52,16,84,23,85,53,86,62,87,88,4,5,26,36,37,41,42,18,89,90,45,91,47,35,22,92,3,54,93,59,94,40,95,69,96,97,51,6,46,25,98,99,21,100,101,7,55,102,67,103,104,49,105,106,107,108,13,109,64,14,112,20,111,113,114,115,116,117,58,110,126])))}),Fre=bt({getParentRoute:()=>In,path:"/tasks",component:Ot(()=>pt(()=>import("./tasks-CJXh_ge0.js"),__vite__mapDeps([140,113,81,82,24,83,52,16,84,23,85,53,86,62,87,88,4,5,26,36,37,41,42,18,89,90,45,91,47,35,22,92,3,54,93,59,94,40,95,69,96,97,51,6,46,25,98,99,21,100,101,7,55,102,67,103,104,49,105,106,107,108,13,109,64,14,114,115,116,117,20,58,110,141])))}),Bre=bt({getParentRoute:()=>In,path:"/settings",beforeLoad:({params:e})=>{throw e.project===pl?ll({to:"/$org/$project",params:e,search:{settings:"org.general"}}):ll({to:"/$org/$project/projects/$slug/settings/general",params:{org:e.org,project:pl,slug:e.project}})},component:()=>null}),bo=({params:e})=>{if(e.project!==pl)throw ll({to:"/$org/$project",params:{org:e.org,project:e.project}})},qre=bt({getParentRoute:()=>In,path:"/projects",beforeLoad:bo,component:Ot(()=>pt(()=>import("./projects-list-D9xGyghY.js"),__vite__mapDeps([142,121,23,24,110,87,16,59,42,108,13,35,26,115,143,117,118,36,37,94,40,44,5,141,7])))}),Fi=bt({getParentRoute:()=>In,path:"/projects/$slug/settings",beforeLoad:bo,component:Ot(()=>pt(()=>import("./layout-Be7WHnRk.js"),__vite__mapDeps([144,89,121,23,24,110,87,16,59,42,141,7,21,120,22,129])))}),Hre=bt({getParentRoute:()=>Fi,path:"/",beforeLoad:({params:e})=>{throw ll({to:"/$org/$project/projects/$slug/settings/general",params:e})},component:()=>null}),Gre=bt({getParentRoute:()=>Fi,path:"/general",component:Ot(()=>pt(()=>import("./general-fg_RS0yr.js"),__vite__mapDeps([145,16,24,26,44,94,40,146,38])))}),Zre=bt({getParentRoute:()=>Fi,path:"/dependencies",component:Ot(()=>pt(()=>import("./dependencies-WKnlxG4W.js"),__vite__mapDeps([147,23,16,54,148,149,35,58,37,53,52,24,150])))}),Kre=bt({getParentRoute:()=>Fi,path:"/sidebar",component:Ot(()=>pt(()=>import("./sidebar-settings-B9cT50kt.js"),__vite__mapDeps([151,23,16,43,26,24,104,150])))}),Wre=bt({getParentRoute:()=>Fi,path:"/plugins",component:Ot(()=>pt(()=>import("./plugins-CD_83bbp.js"),__vite__mapDeps([152,130,23,16,24,43,40,21,53,52,86,62,131,132,133,134,135,109,13,58,41,42,5,18])))}),Yre=bt({getParentRoute:()=>Fi,path:"/danger",component:Ot(()=>pt(()=>import("./danger-Cha4pSGh.js"),__vite__mapDeps([153,146,16,24,26,38])))}),Qre=bt({getParentRoute:()=>In,path:"/members",beforeLoad:bo,component:Ot(()=>pt(()=>import("./members-BJawTGLR.js"),__vite__mapDeps([154,155,27,5,7,68,69,10,12,59,42,25,108,13,35,26,110,87,23,16,141,156,28,99,21,4,45,53,52,24,138,85,86,62,115,38,36,37,157,158,58,14,43,94,40,41,18,44,39,32,57,124,107,148,149,54])))}),Xre=bt({getParentRoute:()=>In,path:"/mcps",beforeLoad:bo,component:Ot(()=>pt(()=>import("./connections-kkqT0K5k.js"),__vite__mapDeps([159,109,155,27,5,7,68,69,10,12,59,42,25,108,13,35,26,28,160,39,99,21,161,6,20,110,87,23,16,114,115,24,86,62,162,30,31,135,38,141,4,36,37,94,40,41,18,44,53,52,125,83,32,49,105,58,163,14,107,116,117,164]))),validateSearch:go(()=>re({action:xt(["create"]).optional()}))}),Jre=bt({getParentRoute:()=>In,path:"/mcps/$connectionId",beforeLoad:bo,component:Ot(()=>pt(()=>import("./connection-detail-CLUQ4ftB.js"),__vite__mapDeps([165,108,13,35,26,164,58,14,104,166,56,86,62,167,24,125,23,16,123,57,53,52,133,135,132,134,109,131,41,42,5,18,137,78,168,149,81,82,83,84,85,87,88,4,36,37,89,90,45,91,47,22,92,3,54,93,59,94,40,95,69,96,97,51,6,46,25,98,99,21,100,101,7,55,102,67,103,49,105,106,107,64,141,169,170,110,171,155,27,68,10,12,39,32,156,28,172,65,114,115,162,30,31,38,173,174,175,48,20,163,143,117,176,177,178]))),validateSearch:go(()=>re({tab:M().optional()}))}),eoe=bt({getParentRoute:()=>In,path:"/mcps/$connectionId/$collectionName/$itemId",beforeLoad:bo,component:Ot(()=>pt(()=>import("./collection-detail-CnE9tdFz.js"),__vite__mapDeps([179,108,13,35,26,52,16,24,94,40,44,170,110,87,23,59,42,166,56,103,101,104,41,5,18,6,64,98,55,106,60,141,7,167,125,123,57,53,86,62,133,135,132,134,109,131,58,137,78,168,149,81,82,83,84,85,88,4,36,37,89,90,45,91,47,22,92,3,54,93,95,69,96,97,51,46,25,99,21,100,102,67,49,105,107,14,178,155,27,68,10,12,156,28,39,180,172,126,157,174]))),validateSearch:go(()=>re({replayId:M().optional()}))}),toe=bt({getParentRoute:()=>In,path:"/monitoring",beforeLoad:bo,component:Ot(()=>pt(()=>import("./monitoring-blJKyDvA.js"),__vite__mapDeps([181,108,13,35,26,110,87,23,16,59,42,141,7,182,25,54,5,55,8,33,57,60,180,93,174,41,18,64,111,99,21,28,136,137,24,32,175,58,14,160,39,27,38,138,92,3,53,52,83,98,10,4,148,149,44,169,43,40,125]))),validateSearch:go(()=>re({tab:xt(["logs","dashboards"]).default("logs"),from:M().default("now-30m"),to:M().default("now"),connectionId:ve(M()).optional().default([]),virtualMcpId:ve(M()).optional().default([]),tool:M().default(""),status:xt(["all","success","errors"]).default("all"),search:M().default(""),page:Pe().optional(),streaming:We().default(!0),propertyFilters:M().default(""),hideSystem:We().default(!1)}))}),noe=bt({getParentRoute:()=>In,path:"/monitoring/dashboards/$dashboardId",beforeLoad:bo,component:Ot(()=>pt(()=>import("./monitoring-dashboard-view-ipSeoz8O.js"),__vite__mapDeps([183,24,182,25,54,59,42,5,55,8,33,57,60,180,93,174,41,18,64,111,7,26,175,170,110,87,23,16,141,44,98,10,58,14,107])))}),roe=bt({getParentRoute:()=>In,path:"/monitoring/dashboards/$dashboardId/edit",beforeLoad:bo,component:Ot(()=>pt(()=>import("./monitoring-dashboard-edit-BDHHepNV.js"),__vite__mapDeps([184,53,52,16,24,26,99,21,4,5,54,90,18,41,42,71,60,58,14,29,170,110,87,23,59,166,56,13,141,7])))}),NP=bt({getParentRoute:()=>In,path:"/store",beforeLoad:bo,component:Ot(()=>pt(()=>import("./page-Kq0I6KKP.js"),__vite__mapDeps([185,110,87,23,16,59,42,141,7,33,65,13,35,2,3,135,24,53,52,186,108,26,187,70,105,158,58,163,39,99,21,134,54,5,18,107,86,62])))}),ooe=bt({getParentRoute:()=>NP,path:"/$appName",component:Ot(()=>pt(()=>import("./mcp-server-detail-Bt5RaPnX.js"),__vite__mapDeps([188,6,13,110,87,23,16,59,42,99,21,20,18,58,27,5,7,50,108,35,26,176,123,134,177,102,178,155,68,69,10,12,25,156,28,39,104,49,105,106,170,169,187,70,158,163,141,86,62,53,52,24,125,132,133,135,109,186,66]))),validateSearch:go(()=>re({registryId:M().optional(),serverName:M().optional(),itemId:M().optional()}))}),aoe=bt({getParentRoute:()=>In,path:"/agents",beforeLoad:bo,component:Ot(()=>pt(()=>import("./agents-Cd6HGWat.js"),__vite__mapDeps([189,155,27,5,7,68,69,10,12,59,42,25,108,13,35,26,110,87,23,16,141,160,39,99,21,161,6,20,162,30,31,100,83,52,24,38,4,36,37,28,18,32,49,14,97,107,114,115,190,53,116,117]))),validateSearch:go(()=>re({action:xt(["create"]).optional()}))}),soe=bt({getParentRoute:()=>In,path:"/agents/$agentId",beforeLoad:bo,component:Ot(()=>pt(()=>import("./agent-detail-J2F2tRbj.js"),__vite__mapDeps([191,82,24,83,52,16,84,23,85,53,86,62,87,88,4,5,26,36,37,41,42,18,89,90,45,91,47,35,22,92,3,108,13,173,54,174,21,175,48,107,99,110,59,25,43,44,7,9,60,58,97,141,170,166,56,178,155,27,68,69,10,12,156,28,39,104,49,105,106,125,101,186,168,98,55,66,57,190]))),validateSearch:go(()=>re({tab:M().optional()}))}),ioe=bt({getParentRoute:()=>In,path:"/apps/$connectionId/$toolName",component:Ot(()=>pt(()=>import("./project-app-view-BJtfzuHN.js"),__vite__mapDeps([192,53,52,16,24,125,23,103,101,104])))}),coe=bt({getParentRoute:()=>In,path:"/workflows",component:Ot(()=>pt(()=>import("./workflow-BypiKv8P.js"),__vite__mapDeps([193,24,171,109,155,27,5,7,68,69,10,12,59,42,25,108,13,35,26,39,99,21,55,32,96,49,14,156,28,172,65,114,115,23,162,30,31,133,38,52,16,58,170,110,87,141,73])))}),MP=bt({getParentRoute:()=>In,path:"/$pluginId",component:Ot(()=>pt(()=>import("./dynamic-plugin-layout-1VL-Nq0v.js"),__vite__mapDeps([194,13,62,1,23,53,52,16,24,22,110,87,59,42])))}),loe=[],uoe=[],PP=[];Nre.forEach(e=>{if(!e.setup)return;const t={parentRoute:MP,routing:{createRoute:bt,lazyRouteComponent:Ot},registerRootSidebarItem:n=>loe.push({pluginId:e.id,...n}),registerSidebarGroup:n=>uoe.push({pluginId:e.id,...n}),registerPluginRoutes:n=>{PP.push(...n)}};e.setup(t)});const doe=MP.addChildren(PP),foe=NP.addChildren([ooe]),hoe=Fi.addChildren([Hre,Gre,Zre,Kre,Wre,Yre]),poe=[Vre,Fre,Bre,qre,hoe,Qre,Xre,Jre,eoe,toe,noe,roe,foe,aoe,soe,coe,ioe,doe],moe=In.addChildren(poe),goe=ig.addChildren([Ure,zre,moe]),voe=Gs.addChildren([goe,Mre,Pre,Dre,$re,Lre,jre]),yoe=yL({routeTree:voe}),_oe=document.getElementById("root");rD.createRoot(_oe).render(x.jsx(A.StrictMode,{children:x.jsx(wL,{router:yoe})}));export{za as $,Zoe as A,W_ as B,hP as C,ve as D,iae as E,oF as F,nF as G,Hb as H,rF as I,bk as J,oA as K,MY as L,Ak as M,Toe as N,pl as O,Qoe as P,cN as Q,wd as R,yP as S,CH as T,rn as U,rae as V,An as W,AH as X,ct as Y,PN as Z,xt as _,oae as a,gH as a$,zi as a0,vZ as a1,wN as a2,FD as a3,$D as a4,J1 as a5,SP as a6,Ooe as a7,og as a8,xm as a9,Soe as aA,Ke as aB,et as aC,bP as aD,fr as aE,Tm as aF,TA as aG,ks as aH,Od as aI,bd as aJ,jo as aK,Lo as aL,tZ as aM,nZ as aN,eZ as aO,gd as aP,Z0 as aQ,Qu as aR,xD as aS,Kn as aT,Or as aU,pD as aV,mH as aW,Kb as aX,NN as aY,EN as aZ,Gb as a_,wD as aa,Moe as ab,tq as ac,Loe as ad,joe as ae,Doe as af,eq as ag,$oe as ah,Poe as ai,HG as aj,UG as ak,zoe as al,FG as am,$G as an,zG as ao,VG as ap,Uoe as aq,Foe as ar,Voe as as,Boe as at,qoe as au,Hoe as av,M4 as aw,D4 as ax,px as ay,Eoe as az,tae as b,pre as b$,Ioe as b0,vH as b1,qk as b2,Wb as b3,ad as b4,Dk as b5,Zb as b6,Noe as b7,koe as b8,Nee as b9,Xm as bA,ft as bB,pee as bC,aP as bD,iN as bE,le as bF,ja as bG,ag as bH,lt as bI,Gr as bJ,YI as bK,Wn as bL,Pe as bM,gt as bN,We as bO,De as bP,ot as bQ,go as bR,El as bS,uae as bT,lae as bU,rr as bV,ure as bW,pt as bX,hae as bY,hV as bZ,woe as b_,Nre as ba,ar as bb,uoe as bc,ub as bd,pX as be,k1 as bf,MQ as bg,CQ as bh,aQ as bi,sQ as bj,cQ as bk,vQ as bl,Jm as bm,FM as bn,PM as bo,DM as bp,LM as bq,jM as br,$M as bs,zM as bt,Ku as bu,OM as bv,q1 as bw,wQ as bx,SQ as by,VM as bz,Li as c,eF as c0,_P as c1,dae as c2,kne as c3,Eb as c4,loe as c5,qW as c6,fee as c7,_7 as c8,Aoe as c9,rH as cA,tH as cB,Fq as cC,boe as cD,KC as cE,kD as cF,PD as cG,UD as cH,DD as cI,LD as cJ,VD as cK,mx as cL,zD as cM,jD as cN,AX as cO,ht as cP,rP as cQ,wJ as cR,JA as cS,TW as cT,zs as cU,Joe as cV,sk as ca,kb as cb,Coe as cc,fae as cd,Ma as ce,xoe as cf,cae as cg,QV as ch,WV as ci,HV as cj,hk as ck,Ir as cl,KG as cm,wA as cn,EA as co,cO as cp,Xq as cq,$o as cr,sd as cs,r1 as ct,fl as cu,js as cv,Va as cw,Uo as cx,dN as cy,eH as cz,Rm as d,wl as e,Bj as f,el as g,aae as h,sae as i,x as j,Koe as k,Goe as l,Woe as m,M as n,re as o,nae as p,oa as q,A as r,bee as s,ra as t,Yoe as u,rA as v,AD as w,wT as x,Roe as y,kee as z};
|