@vibelet/cli 1.2.180 → 1.2.182
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -1
- package/dist/inventory-scan-worker.cjs +1 -1
- package/dist/runtime-version.cjs +1 -1
- package/dist/web/assets/App-20rnW-dS.js +11 -0
- package/dist/web/assets/ArchiveSyncPanel-CQW9sGn8.js +1 -0
- package/dist/web/assets/ConnectionSettingsPanel-CvgjycC_.js +1 -0
- package/dist/web/assets/DaemonSettingsPanel-8WGOLUs-.js +1 -0
- package/dist/web/assets/DiffDrawer-8wyT-3Bj.js +2 -0
- package/dist/web/assets/FilesControlPanel-CM73JghJ.js +2 -0
- package/dist/web/assets/LanguageSettingsPanel-3P8xvsNr.js +1 -0
- package/dist/web/assets/NotificationSettingsPanel--Ov_1saA.js +1 -0
- package/dist/web/assets/SavedTargetsPanel-B4UDMnAq.js +1 -0
- package/dist/web/assets/file-text-B-0kY5qg.js +1 -0
- package/dist/web/assets/{highlighted-body-TPN3WLV5-BZSSUaE0.js → highlighted-body-TPN3WLV5-BgMEhjMq.js} +1 -1
- package/dist/web/assets/index-DRV2XMZs.js +15 -0
- package/dist/web/assets/index-nF-4Ar2D.css +1 -0
- package/dist/web/assets/mermaid-O7DHMXV3-COP4-7nw.js +124 -0
- package/dist/web/assets/mermaid-O7DHMXV3-DaZ-aNWp.css +1 -0
- package/dist/web/icon.svg +1 -1
- package/dist/web/index.html +4 -3
- package/dist/web/manifest.webmanifest +1 -1
- package/dist/web/sw.js +73 -4
- package/package.json +1 -1
- package/dist/web/assets/abap-BdImnpbu.js +0 -1
- package/dist/web/assets/actionscript-3-CoDkCxhg.js +0 -1
- package/dist/web/assets/ada-bCR0ucgS.js +0 -1
- package/dist/web/assets/andromeeda-C4gqWexZ.js +0 -1
- package/dist/web/assets/angular-html-CU67Zn6k.js +0 -1
- package/dist/web/assets/angular-ts-BwZT4LLn.js +0 -1
- package/dist/web/assets/apache-Pmp26Uib.js +0 -1
- package/dist/web/assets/apex-D8_7TLub.js +0 -1
- package/dist/web/assets/apl-dKokRX4l.js +0 -1
- package/dist/web/assets/applescript-Co6uUVPk.js +0 -1
- package/dist/web/assets/ara-BRHolxvo.js +0 -1
- package/dist/web/assets/asciidoc-Ve4PFQV2.js +0 -1
- package/dist/web/assets/asm-D_Q5rh1f.js +0 -1
- package/dist/web/assets/astro-CbQHKStN.js +0 -1
- package/dist/web/assets/aurora-x-D-2ljcwZ.js +0 -1
- package/dist/web/assets/awk-DMzUqQB5.js +0 -1
- package/dist/web/assets/ayu-dark-DYE7WIF3.js +0 -1
- package/dist/web/assets/ayu-light-BA47KaF1.js +0 -1
- package/dist/web/assets/ayu-mirage-32ctXXKs.js +0 -1
- package/dist/web/assets/ballerina-BFfxhgS-.js +0 -1
- package/dist/web/assets/bat-BkioyH1T.js +0 -1
- package/dist/web/assets/beancount-k_qm7-4y.js +0 -1
- package/dist/web/assets/berry-uYugtg8r.js +0 -1
- package/dist/web/assets/bibtex-CHM0blh-.js +0 -1
- package/dist/web/assets/bicep-Bmn6On1c.js +0 -1
- package/dist/web/assets/bird2-DPOp833l.js +0 -1
- package/dist/web/assets/blade-D4QpJJKB.js +0 -1
- package/dist/web/assets/bsl-BO_Y6i37.js +0 -1
- package/dist/web/assets/c-BIGW1oBm.js +0 -1
- package/dist/web/assets/c3-eo99z4R2.js +0 -1
- package/dist/web/assets/cadence-Bv_4Rxtq.js +0 -1
- package/dist/web/assets/cairo-KRGpt6FW.js +0 -1
- package/dist/web/assets/catppuccin-frappe-DFWUc33u.js +0 -1
- package/dist/web/assets/catppuccin-latte-C9dUb6Cb.js +0 -1
- package/dist/web/assets/catppuccin-macchiato-DQyhUUbL.js +0 -1
- package/dist/web/assets/catppuccin-mocha-D87Tk5Gz.js +0 -1
- package/dist/web/assets/clarity-D53aC0YG.js +0 -1
- package/dist/web/assets/clojure-P80f7IUj.js +0 -1
- package/dist/web/assets/cmake-D1j8_8rp.js +0 -1
- package/dist/web/assets/cobol-nwyudZeR.js +0 -1
- package/dist/web/assets/codeowners-Bp6g37R7.js +0 -1
- package/dist/web/assets/codeql-DsOJ9woJ.js +0 -1
- package/dist/web/assets/coffee-Ch7k5sss.js +0 -1
- package/dist/web/assets/common-lisp-Cg-RD9OK.js +0 -1
- package/dist/web/assets/coq-DkFqJrB1.js +0 -1
- package/dist/web/assets/cpp-CofmeUqb.js +0 -1
- package/dist/web/assets/crystal-tKQVLTB8.js +0 -1
- package/dist/web/assets/csharp-COcwbKMJ.js +0 -1
- package/dist/web/assets/css-DPfMkruS.js +0 -1
- package/dist/web/assets/csv-fuZLfV_i.js +0 -1
- package/dist/web/assets/cue-D82EKSYY.js +0 -1
- package/dist/web/assets/cypher-COkxafJQ.js +0 -1
- package/dist/web/assets/d-85-TOEBH.js +0 -1
- package/dist/web/assets/dark-plus-C3mMm8J8.js +0 -1
- package/dist/web/assets/dart-CF10PKvl.js +0 -1
- package/dist/web/assets/dax-CEL-wOlO.js +0 -1
- package/dist/web/assets/desktop-BmXAJ9_W.js +0 -1
- package/dist/web/assets/diff-D97Zzqfu.js +0 -1
- package/dist/web/assets/docker-BcOcwvcX.js +0 -1
- package/dist/web/assets/dotenv-Da5cRb03.js +0 -1
- package/dist/web/assets/dracula-BzJJZx-M.js +0 -1
- package/dist/web/assets/dracula-soft-BXkSAIEj.js +0 -1
- package/dist/web/assets/dream-maker-BtqSS_iP.js +0 -1
- package/dist/web/assets/edge-BkV0erSs.js +0 -1
- package/dist/web/assets/elixir-CDX3lj18.js +0 -1
- package/dist/web/assets/elm-DbKCFpqz.js +0 -1
- package/dist/web/assets/emacs-lisp-C9XAeP06.js +0 -1
- package/dist/web/assets/erb-B12qg9BL.js +0 -1
- package/dist/web/assets/erlang-DsQrWhSR.js +0 -1
- package/dist/web/assets/everforest-dark-BgDCqdQA.js +0 -1
- package/dist/web/assets/everforest-light-C8M2exoo.js +0 -1
- package/dist/web/assets/fennel-BYunw83y.js +0 -1
- package/dist/web/assets/fish-BvzEVeQv.js +0 -1
- package/dist/web/assets/fluent-C4IJs8-o.js +0 -1
- package/dist/web/assets/fortran-fixed-form-CkoXwp7k.js +0 -1
- package/dist/web/assets/fortran-free-form-BxgE0vQu.js +0 -1
- package/dist/web/assets/fsharp-CXgrBDvD.js +0 -1
- package/dist/web/assets/gdresource-BOOCDP_w.js +0 -1
- package/dist/web/assets/gdscript-C5YyOfLZ.js +0 -1
- package/dist/web/assets/gdshader-DkwncUOv.js +0 -1
- package/dist/web/assets/genie-D0YGMca9.js +0 -1
- package/dist/web/assets/gherkin-DyxjwDmM.js +0 -1
- package/dist/web/assets/git-commit-F4YmCXRG.js +0 -1
- package/dist/web/assets/git-rebase-r7XF79zn.js +0 -1
- package/dist/web/assets/github-dark-DHJKELXO.js +0 -1
- package/dist/web/assets/github-dark-default-Cuk6v7N8.js +0 -1
- package/dist/web/assets/github-dark-dimmed-DH5Ifo-i.js +0 -1
- package/dist/web/assets/github-dark-high-contrast-E3gJ1_iC.js +0 -1
- package/dist/web/assets/github-light-DAi9KRSo.js +0 -1
- package/dist/web/assets/github-light-default-D7oLnXFd.js +0 -1
- package/dist/web/assets/github-light-high-contrast-BfjtVDDH.js +0 -1
- package/dist/web/assets/gleam-BspZqrRM.js +0 -1
- package/dist/web/assets/glimmer-js-Rg0-pVw9.js +0 -1
- package/dist/web/assets/glimmer-ts-U6CK756n.js +0 -1
- package/dist/web/assets/glsl-DplSGwfg.js +0 -1
- package/dist/web/assets/gn-n2N0HUVH.js +0 -1
- package/dist/web/assets/gnuplot-DdkO51Og.js +0 -1
- package/dist/web/assets/go-CxLEBnE3.js +0 -1
- package/dist/web/assets/graphql-ChdNCCLP.js +0 -1
- package/dist/web/assets/groovy-gcz8RCvz.js +0 -1
- package/dist/web/assets/gruvbox-dark-hard-CFHQjOhq.js +0 -1
- package/dist/web/assets/gruvbox-dark-medium-GsRaNv29.js +0 -1
- package/dist/web/assets/gruvbox-dark-soft-CVdnzihN.js +0 -1
- package/dist/web/assets/gruvbox-light-hard-CH1njM8p.js +0 -1
- package/dist/web/assets/gruvbox-light-medium-DRw_LuNl.js +0 -1
- package/dist/web/assets/gruvbox-light-soft-hJgmCMqR.js +0 -1
- package/dist/web/assets/hack-CaT9iCJl.js +0 -1
- package/dist/web/assets/haml-B8DHNrY2.js +0 -1
- package/dist/web/assets/handlebars-BL8al0AC.js +0 -1
- package/dist/web/assets/haskell-Df6bDoY_.js +0 -1
- package/dist/web/assets/haxe-CzTSHFRz.js +0 -1
- package/dist/web/assets/hcl-BWvSN4gD.js +0 -1
- package/dist/web/assets/hjson-D5-asLiD.js +0 -1
- package/dist/web/assets/hlsl-D3lLCCz7.js +0 -1
- package/dist/web/assets/horizon-BUw7H-hv.js +0 -1
- package/dist/web/assets/horizon-bright-Cn-bp-IR.js +0 -1
- package/dist/web/assets/houston-DnULxvSX.js +0 -1
- package/dist/web/assets/html-GMplVEZG.js +0 -1
- package/dist/web/assets/html-derivative-BFtXZ54Q.js +0 -1
- package/dist/web/assets/http-jrhK8wxY.js +0 -1
- package/dist/web/assets/hurl-irOxFIW8.js +0 -1
- package/dist/web/assets/hxml-Bvhsp5Yf.js +0 -1
- package/dist/web/assets/hy-DFXneXwc.js +0 -1
- package/dist/web/assets/imba-DGztddWO.js +0 -1
- package/dist/web/assets/index-B1hOfdbo.css +0 -1
- package/dist/web/assets/index-BsjmWDxJ.js +0 -22
- package/dist/web/assets/ini-BEwlwnbL.js +0 -1
- package/dist/web/assets/java-CylS5w8V.js +0 -1
- package/dist/web/assets/javascript-wDzz0qaB.js +0 -1
- package/dist/web/assets/jinja-4LBKfQ-Z.js +0 -1
- package/dist/web/assets/jison-wvAkD_A8.js +0 -1
- package/dist/web/assets/json-Cp-IABpG.js +0 -1
- package/dist/web/assets/json5-C9tS-k6U.js +0 -1
- package/dist/web/assets/jsonc-Des-eS-w.js +0 -1
- package/dist/web/assets/jsonl-DcaNXYhu.js +0 -1
- package/dist/web/assets/jsonnet-DFQXde-d.js +0 -1
- package/dist/web/assets/jssm-C2t-YnRu.js +0 -1
- package/dist/web/assets/jsx-g9-lgVsj.js +0 -1
- package/dist/web/assets/julia-CxzCAyBv.js +0 -1
- package/dist/web/assets/just-Cw27pwNe.js +0 -1
- package/dist/web/assets/kanagawa-dragon-CkXjmgJE.js +0 -1
- package/dist/web/assets/kanagawa-lotus-CfQXZHmo.js +0 -1
- package/dist/web/assets/kanagawa-wave-DWedfzmr.js +0 -1
- package/dist/web/assets/kdl-DV7GczEv.js +0 -1
- package/dist/web/assets/kotlin-BdnUsdx6.js +0 -1
- package/dist/web/assets/kusto-DZf3V79B.js +0 -1
- package/dist/web/assets/laserwave-DUszq2jm.js +0 -1
- package/dist/web/assets/latex-CWtU0Tv5.js +0 -1
- package/dist/web/assets/lean-BZvkOJ9d.js +0 -1
- package/dist/web/assets/less-B1dDrJ26.js +0 -1
- package/dist/web/assets/light-plus-B7mTdjB0.js +0 -1
- package/dist/web/assets/liquid-DYVedYrR.js +0 -1
- package/dist/web/assets/llvm-DjAJT7YJ.js +0 -1
- package/dist/web/assets/log-2UxHyX5q.js +0 -1
- package/dist/web/assets/logo-BtOb2qkB.js +0 -1
- package/dist/web/assets/lua-BaeVxFsk.js +0 -1
- package/dist/web/assets/luau-C-HG3fhB.js +0 -1
- package/dist/web/assets/make-CHLpvVh8.js +0 -1
- package/dist/web/assets/markdown-Cvjx9yec.js +0 -1
- package/dist/web/assets/marko-CnJfTvn9.js +0 -1
- package/dist/web/assets/material-theme-D5KoaKCx.js +0 -1
- package/dist/web/assets/material-theme-darker-BfHTSMKl.js +0 -1
- package/dist/web/assets/material-theme-lighter-B0m2ddpp.js +0 -1
- package/dist/web/assets/material-theme-ocean-CyktbL80.js +0 -1
- package/dist/web/assets/material-theme-palenight-Csfq5Kiy.js +0 -1
- package/dist/web/assets/matlab-D7o27uSR.js +0 -1
- package/dist/web/assets/mdc-BMNejdWA.js +0 -1
- package/dist/web/assets/mdx-Cmh6b_Ma.js +0 -1
- package/dist/web/assets/mermaid-O7DHMXV3-CmRYLWnX.js +0 -275
- package/dist/web/assets/mermaid-O7DHMXV3-CxQgajYu.css +0 -1
- package/dist/web/assets/mermaid-mWjccvbQ.js +0 -1
- package/dist/web/assets/min-dark-CafNBF8u.js +0 -1
- package/dist/web/assets/min-light-CTRr51gU.js +0 -1
- package/dist/web/assets/mipsasm-CKIfxQSi.js +0 -1
- package/dist/web/assets/mojo-rZm6bMo-.js +0 -1
- package/dist/web/assets/monokai-D4h5O-jR.js +0 -1
- package/dist/web/assets/moonbit-_H4v1dQx.js +0 -1
- package/dist/web/assets/move-IF9eRakj.js +0 -1
- package/dist/web/assets/narrat-DRg8JJMk.js +0 -1
- package/dist/web/assets/nextflow-Zz6hmt5N.js +0 -1
- package/dist/web/assets/nextflow-groovy-BeH2EWoN.js +0 -1
- package/dist/web/assets/nginx-BpAMiNFr.js +0 -1
- package/dist/web/assets/night-owl-C39BiMTA.js +0 -1
- package/dist/web/assets/night-owl-light-CMTm3GFP.js +0 -1
- package/dist/web/assets/nim-CVrawwO9.js +0 -1
- package/dist/web/assets/nix-CwoSXNpI.js +0 -1
- package/dist/web/assets/nord-Ddv68eIx.js +0 -1
- package/dist/web/assets/nushell-Cz2AlsmD.js +0 -1
- package/dist/web/assets/objective-c-DXmwc3jG.js +0 -1
- package/dist/web/assets/objective-cpp-CLxacb5B.js +0 -1
- package/dist/web/assets/ocaml-C0hk2d4L.js +0 -1
- package/dist/web/assets/odin-BBf5iR-q.js +0 -1
- package/dist/web/assets/one-dark-pro-DVMEJ2y_.js +0 -1
- package/dist/web/assets/one-light-C3Wv6jpd.js +0 -1
- package/dist/web/assets/openscad-C4EeE6gA.js +0 -1
- package/dist/web/assets/pascal-D93ZcfNL.js +0 -1
- package/dist/web/assets/perl-C0TMdlhV.js +0 -1
- package/dist/web/assets/php-Dhbhpdrm.js +0 -1
- package/dist/web/assets/pkl-u5AG7uiY.js +0 -1
- package/dist/web/assets/plastic-3e1v2bzS.js +0 -1
- package/dist/web/assets/plsql-ChMvpjG-.js +0 -1
- package/dist/web/assets/po-BTJTHyun.js +0 -1
- package/dist/web/assets/poimandres-CS3Unz2-.js +0 -1
- package/dist/web/assets/polar-C0HS_06l.js +0 -1
- package/dist/web/assets/postcss-CXtECtnM.js +0 -1
- package/dist/web/assets/powerquery-CEu0bR-o.js +0 -1
- package/dist/web/assets/powershell-Dpen1YoG.js +0 -1
- package/dist/web/assets/prisma-Dd19v3D-.js +0 -1
- package/dist/web/assets/prolog-CbFg5uaA.js +0 -1
- package/dist/web/assets/proto-C7zT0LnQ.js +0 -1
- package/dist/web/assets/pug-CGlum2m_.js +0 -1
- package/dist/web/assets/puppet-BMWR74SV.js +0 -1
- package/dist/web/assets/purescript-CklMAg4u.js +0 -1
- package/dist/web/assets/python-B6aJPvgy.js +0 -1
- package/dist/web/assets/qml-3beO22l8.js +0 -1
- package/dist/web/assets/qmldir-C8lEn-DE.js +0 -1
- package/dist/web/assets/qss-IeuSbFQv.js +0 -1
- package/dist/web/assets/r-Dspwwk_N.js +0 -1
- package/dist/web/assets/racket-BqYA7rlc.js +0 -1
- package/dist/web/assets/raku-DXvB9xmW.js +0 -1
- package/dist/web/assets/razor-Uh8Bk_45.js +0 -1
- package/dist/web/assets/red-bN70gL4F.js +0 -1
- package/dist/web/assets/reg-C-SQnVFl.js +0 -1
- package/dist/web/assets/regexp-CDVJQ6XC.js +0 -1
- package/dist/web/assets/rel-C3B-1QV4.js +0 -1
- package/dist/web/assets/riscv-BM1_JUlF.js +0 -1
- package/dist/web/assets/ron-D8l8udqQ.js +0 -1
- package/dist/web/assets/rose-pine-dawn-DHQR4-dF.js +0 -1
- package/dist/web/assets/rose-pine-moon-D4_iv3hh.js +0 -1
- package/dist/web/assets/rose-pine-qdsjHGoJ.js +0 -1
- package/dist/web/assets/rosmsg-BJDFO7_C.js +0 -1
- package/dist/web/assets/rst-BrH8l1NY.js +0 -1
- package/dist/web/assets/ruby-Dw2BHqvy.js +0 -1
- package/dist/web/assets/rust-B1yitclQ.js +0 -1
- package/dist/web/assets/sas-cz2c8ADy.js +0 -1
- package/dist/web/assets/sass-Cj5Yp3dK.js +0 -1
- package/dist/web/assets/scala-C151Ov-r.js +0 -1
- package/dist/web/assets/scheme-C98Dy4si.js +0 -1
- package/dist/web/assets/scss-OYdSNvt2.js +0 -1
- package/dist/web/assets/sdbl-DVxCFoDh.js +0 -1
- package/dist/web/assets/shaderlab-Dg9Lc6iA.js +0 -1
- package/dist/web/assets/shellscript-Yzrsuije.js +0 -1
- package/dist/web/assets/shellsession-BADoaaVG.js +0 -1
- package/dist/web/assets/slack-dark-BthQWCQV.js +0 -1
- package/dist/web/assets/slack-ochin-DqwNpetd.js +0 -1
- package/dist/web/assets/smalltalk-BERRCDM3.js +0 -1
- package/dist/web/assets/snazzy-light-Bw305WKR.js +0 -1
- package/dist/web/assets/solarized-dark-DXbdFlpD.js +0 -1
- package/dist/web/assets/solarized-light-L9t79GZl.js +0 -1
- package/dist/web/assets/solidity-rGO070M0.js +0 -1
- package/dist/web/assets/soy-Brmx7dQM.js +0 -1
- package/dist/web/assets/sparql-rVzFXLq3.js +0 -1
- package/dist/web/assets/splunk-BtCnVYZw.js +0 -1
- package/dist/web/assets/sql-BLtJtn59.js +0 -1
- package/dist/web/assets/ssh-config-_ykCGR6B.js +0 -1
- package/dist/web/assets/stata-BH5u7GGu.js +0 -1
- package/dist/web/assets/stylus-BEDo0Tqx.js +0 -1
- package/dist/web/assets/surrealql-Bq5Q-fJD.js +0 -1
- package/dist/web/assets/svelte-C_ipcX3V.js +0 -1
- package/dist/web/assets/swift-D82vCrfD.js +0 -1
- package/dist/web/assets/synthwave-84-CbfX1IO0.js +0 -1
- package/dist/web/assets/system-verilog-CnnmHF94.js +0 -1
- package/dist/web/assets/systemd-4A_iFExJ.js +0 -1
- package/dist/web/assets/talonscript-CkByrt1z.js +0 -1
- package/dist/web/assets/tasl-QIJgUcNo.js +0 -1
- package/dist/web/assets/tcl-dwOrl1Do.js +0 -1
- package/dist/web/assets/templ-P3uqSqPl.js +0 -1
- package/dist/web/assets/terraform-BETggiCN.js +0 -1
- package/dist/web/assets/tex-idrVyKtj.js +0 -1
- package/dist/web/assets/tokyo-night-hegEt444.js +0 -1
- package/dist/web/assets/toml-vGWfd6FD.js +0 -1
- package/dist/web/assets/ts-tags-zn1MmPIZ.js +0 -1
- package/dist/web/assets/tsv-B_m7g4N7.js +0 -1
- package/dist/web/assets/tsx-COt5Ahok.js +0 -1
- package/dist/web/assets/turtle-BsS91CYL.js +0 -1
- package/dist/web/assets/twig-DNn4PbVi.js +0 -1
- package/dist/web/assets/typescript-BPQ3VLAy.js +0 -1
- package/dist/web/assets/typespec-BGHnOYBU.js +0 -1
- package/dist/web/assets/typst-DHCkPAjA.js +0 -1
- package/dist/web/assets/v-BcVCzyr7.js +0 -1
- package/dist/web/assets/vala-CsfeWuGM.js +0 -1
- package/dist/web/assets/vb-D17OF-Vu.js +0 -1
- package/dist/web/assets/verilog-BQ8w6xss.js +0 -1
- package/dist/web/assets/vesper-DU1UobuO.js +0 -1
- package/dist/web/assets/vhdl-CeAyd5Ju.js +0 -1
- package/dist/web/assets/viml-CJc9bBzg.js +0 -1
- package/dist/web/assets/vitesse-black-Bkuqu6BP.js +0 -1
- package/dist/web/assets/vitesse-dark-D0r3Knsf.js +0 -1
- package/dist/web/assets/vitesse-light-CVO1_9PV.js +0 -1
- package/dist/web/assets/vue-DN_0RTcg.js +0 -1
- package/dist/web/assets/vue-html-AaS7Mt5G.js +0 -1
- package/dist/web/assets/vue-vine-CQOfvN7w.js +0 -1
- package/dist/web/assets/vyper-CDx5xZoG.js +0 -1
- package/dist/web/assets/wasm-CG6Dc4jp.js +0 -1
- package/dist/web/assets/wasm-MzD3tlZU.js +0 -1
- package/dist/web/assets/wenyan-BV7otONQ.js +0 -1
- package/dist/web/assets/wgsl-Dx-B1_4e.js +0 -1
- package/dist/web/assets/wikitext-BhOHFoWU.js +0 -1
- package/dist/web/assets/wit-5i3qLPDT.js +0 -1
- package/dist/web/assets/wolfram-lXgVvXCa.js +0 -1
- package/dist/web/assets/xml-sdJ4AIDG.js +0 -1
- package/dist/web/assets/xsl-CtQFsRM5.js +0 -1
- package/dist/web/assets/yaml-Buea-lGh.js +0 -1
- package/dist/web/assets/zenscript-DVFEvuxE.js +0 -1
- package/dist/web/assets/zig-VOosw3JB.js +0 -1
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/mermaid-O7DHMXV3-CmRYLWnX.js","assets/mermaid-O7DHMXV3-CxQgajYu.css"])))=>i.map(i=>d[i]);
|
|
2
|
-
(function(){const u=document.createElement("link").relList;if(u&&u.supports&&u.supports("modulepreload"))return;for(const h of document.querySelectorAll('link[rel="modulepreload"]'))o(h);new MutationObserver(h=>{for(const m of h)if(m.type==="childList")for(const p of m.addedNodes)p.tagName==="LINK"&&p.rel==="modulepreload"&&o(p)}).observe(document,{childList:!0,subtree:!0});function r(h){const m={};return h.integrity&&(m.integrity=h.integrity),h.referrerPolicy&&(m.referrerPolicy=h.referrerPolicy),h.crossOrigin==="use-credentials"?m.credentials="include":h.crossOrigin==="anonymous"?m.credentials="omit":m.credentials="same-origin",m}function o(h){if(h.ep)return;h.ep=!0;const m=r(h);fetch(h.href,m)}})();var Ho={exports:{}},Ns={};var Lm;function _p(){if(Lm)return Ns;Lm=1;var l=Symbol.for("react.transitional.element"),u=Symbol.for("react.fragment");function r(o,h,m){var p=null;if(m!==void 0&&(p=""+m),h.key!==void 0&&(p=""+h.key),"key"in h){m={};for(var j in h)j!=="key"&&(m[j]=h[j])}else m=h;return h=m.ref,{$$typeof:l,type:o,key:p,ref:h!==void 0?h:null,props:m}}return Ns.Fragment=u,Ns.jsx=r,Ns.jsxs=r,Ns}var Ym;function Rp(){return Ym||(Ym=1,Ho.exports=_p()),Ho.exports}var c=Rp(),qo={exports:{}},ve={};var Qm;function Dp(){if(Qm)return ve;Qm=1;var l=Symbol.for("react.transitional.element"),u=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),m=Symbol.for("react.consumer"),p=Symbol.for("react.context"),j=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),x=Symbol.for("react.memo"),V=Symbol.for("react.lazy"),z=Symbol.for("react.activity"),L=Symbol.iterator;function Y(v){return v===null||typeof v!="object"?null:(v=L&&v[L]||v["@@iterator"],typeof v=="function"?v:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,T={};function G(v,H,K){this.props=v,this.context=H,this.refs=T,this.updater=K||w}G.prototype.isReactComponent={},G.prototype.setState=function(v,H){if(typeof v!="object"&&typeof v!="function"&&v!=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,v,H,"setState")},G.prototype.forceUpdate=function(v){this.updater.enqueueForceUpdate(this,v,"forceUpdate")};function F(){}F.prototype=G.prototype;function Z(v,H,K){this.props=v,this.context=H,this.refs=T,this.updater=K||w}var q=Z.prototype=new F;q.constructor=Z,E(q,G.prototype),q.isPureReactComponent=!0;var oe=Array.isArray;function De(){}var he={H:null,A:null,T:null,S:null},Te=Object.prototype.hasOwnProperty;function be(v,H,K){var J=K.ref;return{$$typeof:l,type:v,key:H,ref:J!==void 0?J:null,props:K}}function it(v,H){return be(v.type,H,v.props)}function Je(v){return typeof v=="object"&&v!==null&&v.$$typeof===l}function Ce(v){var H={"=":"=0",":":"=2"};return"$"+v.replace(/[=:]/g,function(K){return H[K]})}var Ze=/\/+/g;function He(v,H){return typeof v=="object"&&v!==null&&v.key!=null?Ce(""+v.key):H.toString(36)}function Qe(v){switch(v.status){case"fulfilled":return v.value;case"rejected":throw v.reason;default:switch(typeof v.status=="string"?v.then(De,De):(v.status="pending",v.then(function(H){v.status==="pending"&&(v.status="fulfilled",v.value=H)},function(H){v.status==="pending"&&(v.status="rejected",v.reason=H)})),v.status){case"fulfilled":return v.value;case"rejected":throw v.reason}}throw v}function C(v,H,K,J,te){var me=typeof v;(me==="undefined"||me==="boolean")&&(v=null);var se=!1;if(v===null)se=!0;else switch(me){case"bigint":case"string":case"number":se=!0;break;case"object":switch(v.$$typeof){case l:case u:se=!0;break;case V:return se=v._init,C(se(v._payload),H,K,J,te)}}if(se)return te=te(v),se=J===""?"."+He(v,0):J,oe(te)?(K="",se!=null&&(K=se.replace(Ze,"$&/")+"/"),C(te,H,K,"",function(qe){return qe})):te!=null&&(Je(te)&&(te=it(te,K+(te.key==null||v&&v.key===te.key?"":(""+te.key).replace(Ze,"$&/")+"/")+se)),H.push(te)),1;se=0;var de=J===""?".":J+":";if(oe(v))for(var ge=0;ge<v.length;ge++)J=v[ge],me=de+He(J,ge),se+=C(J,H,K,me,te);else if(ge=Y(v),typeof ge=="function")for(v=ge.call(v),ge=0;!(J=v.next()).done;)J=J.value,me=de+He(J,ge++),se+=C(J,H,K,me,te);else if(me==="object"){if(typeof v.then=="function")return C(Qe(v),H,K,J,te);throw H=String(v),Error("Objects are not valid as a React child (found: "+(H==="[object Object]"?"object with keys {"+Object.keys(v).join(", ")+"}":H)+"). If you meant to render a collection of children, use an array instead.")}return se}function k(v,H,K){if(v==null)return v;var J=[],te=0;return C(v,J,"","",function(me){return H.call(K,me,te++)}),J}function $(v){if(v._status===-1){var H=v._result;H=H(),H.then(function(K){(v._status===0||v._status===-1)&&(v._status=1,v._result=K)},function(K){(v._status===0||v._status===-1)&&(v._status=2,v._result=K)}),v._status===-1&&(v._status=0,v._result=H)}if(v._status===1)return v._result.default;throw v._result}var W=typeof reportError=="function"?reportError:function(v){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var H=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof v=="object"&&v!==null&&typeof v.message=="string"?String(v.message):String(v),error:v});if(!window.dispatchEvent(H))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",v);return}console.error(v)},ce={map:k,forEach:function(v,H,K){k(v,function(){H.apply(this,arguments)},K)},count:function(v){var H=0;return k(v,function(){H++}),H},toArray:function(v){return k(v,function(H){return H})||[]},only:function(v){if(!Je(v))throw Error("React.Children.only expected to receive a single React element child.");return v}};return ve.Activity=z,ve.Children=ce,ve.Component=G,ve.Fragment=r,ve.Profiler=h,ve.PureComponent=Z,ve.StrictMode=o,ve.Suspense=S,ve.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=he,ve.__COMPILER_RUNTIME={__proto__:null,c:function(v){return he.H.useMemoCache(v)}},ve.cache=function(v){return function(){return v.apply(null,arguments)}},ve.cacheSignal=function(){return null},ve.cloneElement=function(v,H,K){if(v==null)throw Error("The argument must be a React element, but you passed "+v+".");var J=E({},v.props),te=v.key;if(H!=null)for(me in H.key!==void 0&&(te=""+H.key),H)!Te.call(H,me)||me==="key"||me==="__self"||me==="__source"||me==="ref"&&H.ref===void 0||(J[me]=H[me]);var me=arguments.length-2;if(me===1)J.children=K;else if(1<me){for(var se=Array(me),de=0;de<me;de++)se[de]=arguments[de+2];J.children=se}return be(v.type,te,J)},ve.createContext=function(v){return v={$$typeof:p,_currentValue:v,_currentValue2:v,_threadCount:0,Provider:null,Consumer:null},v.Provider=v,v.Consumer={$$typeof:m,_context:v},v},ve.createElement=function(v,H,K){var J,te={},me=null;if(H!=null)for(J in H.key!==void 0&&(me=""+H.key),H)Te.call(H,J)&&J!=="key"&&J!=="__self"&&J!=="__source"&&(te[J]=H[J]);var se=arguments.length-2;if(se===1)te.children=K;else if(1<se){for(var de=Array(se),ge=0;ge<se;ge++)de[ge]=arguments[ge+2];te.children=de}if(v&&v.defaultProps)for(J in se=v.defaultProps,se)te[J]===void 0&&(te[J]=se[J]);return be(v,me,te)},ve.createRef=function(){return{current:null}},ve.forwardRef=function(v){return{$$typeof:j,render:v}},ve.isValidElement=Je,ve.lazy=function(v){return{$$typeof:V,_payload:{_status:-1,_result:v},_init:$}},ve.memo=function(v,H){return{$$typeof:x,type:v,compare:H===void 0?null:H}},ve.startTransition=function(v){var H=he.T,K={};he.T=K;try{var J=v(),te=he.S;te!==null&&te(K,J),typeof J=="object"&&J!==null&&typeof J.then=="function"&&J.then(De,W)}catch(me){W(me)}finally{H!==null&&K.types!==null&&(H.types=K.types),he.T=H}},ve.unstable_useCacheRefresh=function(){return he.H.useCacheRefresh()},ve.use=function(v){return he.H.use(v)},ve.useActionState=function(v,H,K){return he.H.useActionState(v,H,K)},ve.useCallback=function(v,H){return he.H.useCallback(v,H)},ve.useContext=function(v){return he.H.useContext(v)},ve.useDebugValue=function(){},ve.useDeferredValue=function(v,H){return he.H.useDeferredValue(v,H)},ve.useEffect=function(v,H){return he.H.useEffect(v,H)},ve.useEffectEvent=function(v){return he.H.useEffectEvent(v)},ve.useId=function(){return he.H.useId()},ve.useImperativeHandle=function(v,H,K){return he.H.useImperativeHandle(v,H,K)},ve.useInsertionEffect=function(v,H){return he.H.useInsertionEffect(v,H)},ve.useLayoutEffect=function(v,H){return he.H.useLayoutEffect(v,H)},ve.useMemo=function(v,H){return he.H.useMemo(v,H)},ve.useOptimistic=function(v,H){return he.H.useOptimistic(v,H)},ve.useReducer=function(v,H,K){return he.H.useReducer(v,H,K)},ve.useRef=function(v){return he.H.useRef(v)},ve.useState=function(v){return he.H.useState(v)},ve.useSyncExternalStore=function(v,H,K){return he.H.useSyncExternalStore(v,H,K)},ve.useTransition=function(){return he.H.useTransition()},ve.version="19.2.7",ve}var Gm;function rd(){return Gm||(Gm=1,qo.exports=Dp()),qo.exports}var y=rd(),Bo={exports:{}},Ts={},Lo={exports:{}},Yo={};var Vm;function zp(){return Vm||(Vm=1,(function(l){function u(C,k){var $=C.length;C.push(k);e:for(;0<$;){var W=$-1>>>1,ce=C[W];if(0<h(ce,k))C[W]=k,C[$]=ce,$=W;else break e}}function r(C){return C.length===0?null:C[0]}function o(C){if(C.length===0)return null;var k=C[0],$=C.pop();if($!==k){C[0]=$;e:for(var W=0,ce=C.length,v=ce>>>1;W<v;){var H=2*(W+1)-1,K=C[H],J=H+1,te=C[J];if(0>h(K,$))J<ce&&0>h(te,K)?(C[W]=te,C[J]=$,W=J):(C[W]=K,C[H]=$,W=H);else if(J<ce&&0>h(te,$))C[W]=te,C[J]=$,W=J;else break e}}return k}function h(C,k){var $=C.sortIndex-k.sortIndex;return $!==0?$:C.id-k.id}if(l.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var m=performance;l.unstable_now=function(){return m.now()}}else{var p=Date,j=p.now();l.unstable_now=function(){return p.now()-j}}var S=[],x=[],V=1,z=null,L=3,Y=!1,w=!1,E=!1,T=!1,G=typeof setTimeout=="function"?setTimeout:null,F=typeof clearTimeout=="function"?clearTimeout:null,Z=typeof setImmediate<"u"?setImmediate:null;function q(C){for(var k=r(x);k!==null;){if(k.callback===null)o(x);else if(k.startTime<=C)o(x),k.sortIndex=k.expirationTime,u(S,k);else break;k=r(x)}}function oe(C){if(E=!1,q(C),!w)if(r(S)!==null)w=!0,De||(De=!0,Ce());else{var k=r(x);k!==null&&Qe(oe,k.startTime-C)}}var De=!1,he=-1,Te=5,be=-1;function it(){return T?!0:!(l.unstable_now()-be<Te)}function Je(){if(T=!1,De){var C=l.unstable_now();be=C;var k=!0;try{e:{w=!1,E&&(E=!1,F(he),he=-1),Y=!0;var $=L;try{t:{for(q(C),z=r(S);z!==null&&!(z.expirationTime>C&&it());){var W=z.callback;if(typeof W=="function"){z.callback=null,L=z.priorityLevel;var ce=W(z.expirationTime<=C);if(C=l.unstable_now(),typeof ce=="function"){z.callback=ce,q(C),k=!0;break t}z===r(S)&&o(S),q(C)}else o(S);z=r(S)}if(z!==null)k=!0;else{var v=r(x);v!==null&&Qe(oe,v.startTime-C),k=!1}}break e}finally{z=null,L=$,Y=!1}k=void 0}}finally{k?Ce():De=!1}}}var Ce;if(typeof Z=="function")Ce=function(){Z(Je)};else if(typeof MessageChannel<"u"){var Ze=new MessageChannel,He=Ze.port2;Ze.port1.onmessage=Je,Ce=function(){He.postMessage(null)}}else Ce=function(){G(Je,0)};function Qe(C,k){he=G(function(){C(l.unstable_now())},k)}l.unstable_IdlePriority=5,l.unstable_ImmediatePriority=1,l.unstable_LowPriority=4,l.unstable_NormalPriority=3,l.unstable_Profiling=null,l.unstable_UserBlockingPriority=2,l.unstable_cancelCallback=function(C){C.callback=null},l.unstable_forceFrameRate=function(C){0>C||125<C?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Te=0<C?Math.floor(1e3/C):5},l.unstable_getCurrentPriorityLevel=function(){return L},l.unstable_next=function(C){switch(L){case 1:case 2:case 3:var k=3;break;default:k=L}var $=L;L=k;try{return C()}finally{L=$}},l.unstable_requestPaint=function(){T=!0},l.unstable_runWithPriority=function(C,k){switch(C){case 1:case 2:case 3:case 4:case 5:break;default:C=3}var $=L;L=C;try{return k()}finally{L=$}},l.unstable_scheduleCallback=function(C,k,$){var W=l.unstable_now();switch(typeof $=="object"&&$!==null?($=$.delay,$=typeof $=="number"&&0<$?W+$:W):$=W,C){case 1:var ce=-1;break;case 2:ce=250;break;case 5:ce=1073741823;break;case 4:ce=1e4;break;default:ce=5e3}return ce=$+ce,C={id:V++,callback:k,priorityLevel:C,startTime:$,expirationTime:ce,sortIndex:-1},$>W?(C.sortIndex=$,u(x,C),r(S)===null&&C===r(x)&&(E?(F(he),he=-1):E=!0,Qe(oe,$-W))):(C.sortIndex=ce,u(S,C),w||Y||(w=!0,De||(De=!0,Ce()))),C},l.unstable_shouldYield=it,l.unstable_wrapCallback=function(C){var k=L;return function(){var $=L;L=k;try{return C.apply(this,arguments)}finally{L=$}}}})(Yo)),Yo}var Xm;function kp(){return Xm||(Xm=1,Lo.exports=zp()),Lo.exports}var Qo={exports:{}},Bt={};var Zm;function Op(){if(Zm)return Bt;Zm=1;var l=rd();function u(S){var x="https://react.dev/errors/"+S;if(1<arguments.length){x+="?args[]="+encodeURIComponent(arguments[1]);for(var V=2;V<arguments.length;V++)x+="&args[]="+encodeURIComponent(arguments[V])}return"Minified React error #"+S+"; visit "+x+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var o={d:{f:r,r:function(){throw Error(u(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},h=Symbol.for("react.portal");function m(S,x,V){var z=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:h,key:z==null?null:""+z,children:S,containerInfo:x,implementation:V}}var p=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function j(S,x){if(S==="font")return"";if(typeof x=="string")return x==="use-credentials"?x:""}return Bt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,Bt.createPortal=function(S,x){var V=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!x||x.nodeType!==1&&x.nodeType!==9&&x.nodeType!==11)throw Error(u(299));return m(S,x,null,V)},Bt.flushSync=function(S){var x=p.T,V=o.p;try{if(p.T=null,o.p=2,S)return S()}finally{p.T=x,o.p=V,o.d.f()}},Bt.preconnect=function(S,x){typeof S=="string"&&(x?(x=x.crossOrigin,x=typeof x=="string"?x==="use-credentials"?x:"":void 0):x=null,o.d.C(S,x))},Bt.prefetchDNS=function(S){typeof S=="string"&&o.d.D(S)},Bt.preinit=function(S,x){if(typeof S=="string"&&x&&typeof x.as=="string"){var V=x.as,z=j(V,x.crossOrigin),L=typeof x.integrity=="string"?x.integrity:void 0,Y=typeof x.fetchPriority=="string"?x.fetchPriority:void 0;V==="style"?o.d.S(S,typeof x.precedence=="string"?x.precedence:void 0,{crossOrigin:z,integrity:L,fetchPriority:Y}):V==="script"&&o.d.X(S,{crossOrigin:z,integrity:L,fetchPriority:Y,nonce:typeof x.nonce=="string"?x.nonce:void 0})}},Bt.preinitModule=function(S,x){if(typeof S=="string")if(typeof x=="object"&&x!==null){if(x.as==null||x.as==="script"){var V=j(x.as,x.crossOrigin);o.d.M(S,{crossOrigin:V,integrity:typeof x.integrity=="string"?x.integrity:void 0,nonce:typeof x.nonce=="string"?x.nonce:void 0})}}else x==null&&o.d.M(S)},Bt.preload=function(S,x){if(typeof S=="string"&&typeof x=="object"&&x!==null&&typeof x.as=="string"){var V=x.as,z=j(V,x.crossOrigin);o.d.L(S,V,{crossOrigin:z,integrity:typeof x.integrity=="string"?x.integrity:void 0,nonce:typeof x.nonce=="string"?x.nonce:void 0,type:typeof x.type=="string"?x.type:void 0,fetchPriority:typeof x.fetchPriority=="string"?x.fetchPriority:void 0,referrerPolicy:typeof x.referrerPolicy=="string"?x.referrerPolicy:void 0,imageSrcSet:typeof x.imageSrcSet=="string"?x.imageSrcSet:void 0,imageSizes:typeof x.imageSizes=="string"?x.imageSizes:void 0,media:typeof x.media=="string"?x.media:void 0})}},Bt.preloadModule=function(S,x){if(typeof S=="string")if(x){var V=j(x.as,x.crossOrigin);o.d.m(S,{as:typeof x.as=="string"&&x.as!=="script"?x.as:void 0,crossOrigin:V,integrity:typeof x.integrity=="string"?x.integrity:void 0})}else o.d.m(S)},Bt.requestFormReset=function(S){o.d.r(S)},Bt.unstable_batchedUpdates=function(S,x){return S(x)},Bt.useFormState=function(S,x,V){return p.H.useFormState(S,x,V)},Bt.useFormStatus=function(){return p.H.useHostTransitionStatus()},Bt.version="19.2.7",Bt}var Km;function Up(){if(Km)return Qo.exports;Km=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(u){console.error(u)}}return l(),Qo.exports=Op(),Qo.exports}var $m;function Hp(){if($m)return Ts;$m=1;var l=kp(),u=rd(),r=Up();function o(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function h(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function m(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function p(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function j(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function S(e){if(m(e)!==e)throw Error(o(188))}function x(e){var t=e.alternate;if(!t){if(t=m(e),t===null)throw Error(o(188));return t!==e?null:e}for(var n=e,a=t;;){var i=n.return;if(i===null)break;var s=i.alternate;if(s===null){if(a=i.return,a!==null){n=a;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===n)return S(i),e;if(s===a)return S(i),t;s=s.sibling}throw Error(o(188))}if(n.return!==a.return)n=i,a=s;else{for(var d=!1,f=i.child;f;){if(f===n){d=!0,n=i,a=s;break}if(f===a){d=!0,a=i,n=s;break}f=f.sibling}if(!d){for(f=s.child;f;){if(f===n){d=!0,n=s,a=i;break}if(f===a){d=!0,a=s,n=i;break}f=f.sibling}if(!d)throw Error(o(189))}}if(n.alternate!==a)throw Error(o(190))}if(n.tag!==3)throw Error(o(188));return n.stateNode.current===n?e:t}function V(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=V(e),t!==null)return t;e=e.sibling}return null}var z=Object.assign,L=Symbol.for("react.element"),Y=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),G=Symbol.for("react.profiler"),F=Symbol.for("react.consumer"),Z=Symbol.for("react.context"),q=Symbol.for("react.forward_ref"),oe=Symbol.for("react.suspense"),De=Symbol.for("react.suspense_list"),he=Symbol.for("react.memo"),Te=Symbol.for("react.lazy"),be=Symbol.for("react.activity"),it=Symbol.for("react.memo_cache_sentinel"),Je=Symbol.iterator;function Ce(e){return e===null||typeof e!="object"?null:(e=Je&&e[Je]||e["@@iterator"],typeof e=="function"?e:null)}var Ze=Symbol.for("react.client.reference");function He(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Ze?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case E:return"Fragment";case G:return"Profiler";case T:return"StrictMode";case oe:return"Suspense";case De:return"SuspenseList";case be:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case w:return"Portal";case Z:return e.displayName||"Context";case F:return(e._context.displayName||"Context")+".Consumer";case q:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case he:return t=e.displayName||null,t!==null?t:He(e.type)||"Memo";case Te:t=e._payload,e=e._init;try{return He(e(t))}catch{}}return null}var Qe=Array.isArray,C=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,k=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$={pending:!1,data:null,method:null,action:null},W=[],ce=-1;function v(e){return{current:e}}function H(e){0>ce||(e.current=W[ce],W[ce]=null,ce--)}function K(e,t){ce++,W[ce]=e.current,e.current=t}var J=v(null),te=v(null),me=v(null),se=v(null);function de(e,t){switch(K(me,t),K(te,e),K(J,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?rm(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=rm(t),e=om(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}H(J),K(J,e)}function ge(){H(J),H(te),H(me)}function qe(e){e.memoizedState!==null&&K(se,e);var t=J.current,n=om(t,e.type);t!==n&&(K(te,e),K(J,n))}function Be(e){te.current===e&&(H(J),H(te)),se.current===e&&(H(se),xs._currentValue=$)}var Mt,ee;function Oe(e){if(Mt===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Mt=t&&t[1]||"",ee=-1<n.stack.indexOf(`
|
|
3
|
-
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
4
|
-
`+Mt+e+ee}var It=!1;function _t(e,t){if(!e||It)return"";It=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var X=function(){throw Error()};if(Object.defineProperty(X.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(X,[])}catch(D){var R=D}Reflect.construct(e,[],X)}else{try{X.call()}catch(D){R=D}e.call(X.prototype)}}else{try{throw Error()}catch(D){R=D}(X=e())&&typeof X.catch=="function"&&X.catch(function(){})}}catch(D){if(D&&R&&typeof D.stack=="string")return[D.stack,R.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var s=a.DetermineComponentFrameRoot(),d=s[0],f=s[1];if(d&&f){var g=d.split(`
|
|
5
|
-
`),_=f.split(`
|
|
6
|
-
`);for(i=a=0;a<g.length&&!g[a].includes("DetermineComponentFrameRoot");)a++;for(;i<_.length&&!_[i].includes("DetermineComponentFrameRoot");)i++;if(a===g.length||i===_.length)for(a=g.length-1,i=_.length-1;1<=a&&0<=i&&g[a]!==_[i];)i--;for(;1<=a&&0<=i;a--,i--)if(g[a]!==_[i]){if(a!==1||i!==1)do if(a--,i--,0>i||g[a]!==_[i]){var U=`
|
|
7
|
-
`+g[a].replace(" at new "," at ");return e.displayName&&U.includes("<anonymous>")&&(U=U.replace("<anonymous>",e.displayName)),U}while(1<=a&&0<=i);break}}}finally{It=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Oe(n):""}function Wt(e,t){switch(e.tag){case 26:case 27:case 5:return Oe(e.type);case 16:return Oe("Lazy");case 13:return e.child!==t&&t!==null?Oe("Suspense Fallback"):Oe("Suspense");case 19:return Oe("SuspenseList");case 0:case 15:return _t(e.type,!1);case 11:return _t(e.type.render,!1);case 1:return _t(e.type,!0);case 31:return Oe("Activity");default:return""}}function vt(e){try{var t="",n=null;do t+=Wt(e,n),n=e,e=e.return;while(e);return t}catch(a){return`
|
|
8
|
-
Error generating stack: `+a.message+`
|
|
9
|
-
`+a.stack}}var bt=Object.prototype.hasOwnProperty,Tt=l.unstable_scheduleCallback,Rt=l.unstable_cancelCallback,Yt=l.unstable_shouldYield,dn=l.unstable_requestPaint,st=l.unstable_now,Pe=l.unstable_getCurrentPriorityLevel,nt=l.unstable_ImmediatePriority,Dt=l.unstable_UserBlockingPriority,at=l.unstable_NormalPriority,Pt=l.unstable_LowPriority,An=l.unstable_IdlePriority,St=l.log,P=l.unstable_setDisableYieldValue,rt=null,O=null;function ue(e){if(typeof St=="function"&&P(e),O&&typeof O.setStrictMode=="function")try{O.setStrictMode(rt,e)}catch{}}var pe=Math.clz32?Math.clz32:en,je=Math.log,et=Math.LN2;function en(e){return e>>>=0,e===0?32:31-(je(e)/et|0)|0}var Qt=256,Hn=262144,fn=4194304;function ye(e){var t=e&42;if(t!==0)return t;switch(e&-e){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 e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function _e(e,t,n){var a=e.pendingLanes;if(a===0)return 0;var i=0,s=e.suspendedLanes,d=e.pingedLanes;e=e.warmLanes;var f=a&134217727;return f!==0?(a=f&~s,a!==0?i=ye(a):(d&=f,d!==0?i=ye(d):n||(n=f&~e,n!==0&&(i=ye(n))))):(f=a&~s,f!==0?i=ye(f):d!==0?i=ye(d):n||(n=a&~e,n!==0&&(i=ye(n)))),i===0?0:t!==0&&t!==i&&(t&s)===0&&(s=i&-i,n=t&-t,s>=n||s===32&&(n&4194048)!==0)?t:i}function Et(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function xt(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+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 t+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 ma(){var e=fn;return fn<<=1,(fn&62914560)===0&&(fn=4194304),e}function Gt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function jt(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Nn(e,t,n,a,i,s){var d=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var f=e.entanglements,g=e.expirationTimes,_=e.hiddenUpdates;for(n=d&~n;0<n;){var U=31-pe(n),X=1<<U;f[U]=0,g[U]=-1;var R=_[U];if(R!==null)for(_[U]=null,U=0;U<R.length;U++){var D=R[U];D!==null&&(D.lane&=-536870913)}n&=~X}a!==0&&ya(e,a,0),s!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=s&~(d&~t))}function ya(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-pe(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|n&261930}function hn(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var a=31-pe(n),i=1<<a;i&t|e[a]&t&&(e[a]|=t),n&=~i}}function Fa(e,t){var n=t&-t;return n=(n&42)!==0?1:Ci(n),(n&(e.suspendedLanes|t))!==0?0:n}function Ci(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Ai(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function mn(){var e=k.p;return e!==0?e:(e=window.event,e===void 0?32:zm(e.type))}function Ni(e,t){var n=k.p;try{return k.p=e,t()}finally{k.p=n}}var Tn=Math.random().toString(36).slice(2),Ct="__reactFiber$"+Tn,qt="__reactProps$"+Tn,Zn="__reactContainer$"+Tn,_l="__reactEvents$"+Tn,ju="__reactListeners$"+Tn,Cu="__reactHandles$"+Tn,Ti="__reactResources$"+Tn,Ia="__reactMarker$"+Tn;function Rl(e){delete e[Ct],delete e[qt],delete e[_l],delete e[ju],delete e[Cu]}function ga(e){var t=e[Ct];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Zn]||n[Ct]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=pm(e);e!==null;){if(n=e[Ct])return n;e=pm(e)}return t}e=n,n=e.parentNode}return null}function pa(e){if(e=e[Ct]||e[Zn]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Wa(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function Kn(e){var t=e[Ti];return t||(t=e[Ti]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ft(e){e[Ia]=!0}var Hs=new Set,qs={};function $n(e,t){va(e,t),va(e+"Capture",t)}function va(e,t){for(qs[e]=t,e=0;e<t.length;e++)Hs.add(t[e])}var ba=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]*$"),Dl={},yn={};function Pa(e){return bt.call(yn,e)?!0:bt.call(Dl,e)?!1:ba.test(e)?yn[e]=!0:(Dl[e]=!0,!1)}function zl(e,t,n){if(Pa(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function Sa(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function En(e,t,n,a){if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+a)}}function Vt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Bs(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Au(e,t,n){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var i=a.get,s=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(d){n=""+d,s.call(this,d)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return n},setValue:function(d){n=""+d},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ei(e){if(!e._valueTracker){var t=Bs(e)?"checked":"value";e._valueTracker=Au(e,t,""+e[t])}}function Ls(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=Bs(e)?e.checked?"true":"false":e.value),e=a,e!==n?(t.setValue(e),!0):!1}function qn(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Nu=/[\n"\\]/g;function At(e){return e.replace(Nu,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Jn(e,t,n,a,i,s,d,f){e.name="",d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?e.type=d:e.removeAttribute("type"),t!=null?d==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Vt(t)):e.value!==""+Vt(t)&&(e.value=""+Vt(t)):d!=="submit"&&d!=="reset"||e.removeAttribute("value"),t!=null?wi(e,d,Vt(t)):n!=null?wi(e,d,Vt(n)):a!=null&&e.removeAttribute("value"),i==null&&s!=null&&(e.defaultChecked=!!s),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?e.name=""+Vt(f):e.removeAttribute("name")}function kl(e,t,n,a,i,s,d,f){if(s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(e.type=s),t!=null||n!=null){if(!(s!=="submit"&&s!=="reset"||t!=null)){Ei(e);return}n=n!=null?""+Vt(n):"",t=t!=null?""+Vt(t):n,f||t===e.value||(e.value=t),e.defaultValue=t}a=a??i,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=f?e.checked:!!a,e.defaultChecked=!!a,d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.name=d),Ei(e)}function wi(e,t,n){t==="number"&&qn(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function tn(e,t,n,a){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&a&&(e[n].defaultSelected=!0)}else{for(n=""+Vt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,a&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Mi(e,t,n){if(t!=null&&(t=""+Vt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Vt(n):""}function _i(e,t,n,a){if(t==null){if(a!=null){if(n!=null)throw Error(o(92));if(Qe(a)){if(1<a.length)throw Error(o(93));a=a[0]}n=a}n==null&&(n=""),t=n}n=Vt(t),e.defaultValue=n,a=e.textContent,a===n&&a!==""&&a!==null&&(e.value=a),Ei(e)}function xa(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Tu=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 Ys(e,t,n){var a=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,n):typeof n!="number"||n===0||Tu.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Ri(e,t,n){if(t!=null&&typeof t!="object")throw Error(o(62));if(e=e.style,n!=null){for(var a in n)!n.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var i in t)a=t[i],t.hasOwnProperty(i)&&n[i]!==a&&Ys(e,i,a)}else for(var s in t)t.hasOwnProperty(s)&&Ys(e,s,t[s])}function Ol(e){if(e.indexOf("-")===-1)return!1;switch(e){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 Eu=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"]]),wu=/^[\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 el(e){return wu.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function wn(){}var Di=null;function ja(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ca=null,Aa=null;function Qs(e){var t=pa(e);if(t&&(e=t.stateNode)){var n=e[qt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Jn(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+At(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var a=n[t];if(a!==e&&a.form===e.form){var i=a[qt]||null;if(!i)throw Error(o(90));Jn(a,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<n.length;t++)a=n[t],a.form===e.form&&Ls(a)}break e;case"textarea":Mi(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&tn(e,!!n.multiple,t,!1)}}}var zi=!1;function Gs(e,t,n){if(zi)return e(t,n);zi=!0;try{var a=e(t);return a}finally{if(zi=!1,(Ca!==null||Aa!==null)&&(Bc(),Ca&&(t=Ca,e=Aa,Aa=Ca=null,Qs(t),e)))for(t=0;t<e.length;t++)Qs(e[t])}}function Na(e,t){var n=e.stateNode;if(n===null)return null;var a=n[qt]||null;if(a===null)return null;n=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(o(231,t,typeof n));return n}var Mn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ki=!1;if(Mn)try{var Fn={};Object.defineProperty(Fn,"passive",{get:function(){ki=!0}}),window.addEventListener("test",Fn,Fn),window.removeEventListener("test",Fn,Fn)}catch{ki=!1}var Bn=null,Oi=null,Ul=null;function _n(){if(Ul)return Ul;var e,t=Oi,n=t.length,a,i="value"in Bn?Bn.value:Bn.textContent,s=i.length;for(e=0;e<n&&t[e]===i[e];e++);var d=n-e;for(a=1;a<=d&&t[n-a]===i[s-a];a++);return Ul=i.slice(e,1<a?1-a:void 0)}function Hl(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function nn(){return!0}function Ui(){return!1}function zt(e){function t(n,a,i,s,d){this._reactName=n,this._targetInst=i,this.type=a,this.nativeEvent=s,this.target=d,this.currentTarget=null;for(var f in e)e.hasOwnProperty(f)&&(n=e[f],this[f]=n?n(s):s[f]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?nn:Ui,this.isPropagationStopped=Ui,this}return z(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var In={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ql=zt(In),tl=z({},In,{view:0,detail:0}),Hi=zt(tl),qi,Bi,lt,nl=z({},tl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ql,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==lt&&(lt&&e.type==="mousemove"?(qi=e.screenX-lt.screenX,Bi=e.screenY-lt.screenY):Bi=qi=0,lt=e),qi)},movementY:function(e){return"movementY"in e?e.movementY:Bi}}),Li=zt(nl),al=z({},nl,{dataTransfer:0}),Bl=zt(al),Ll=z({},tl,{relatedTarget:0}),Yl=zt(Ll),Vs=z({},In,{animationName:0,elapsedTime:0,pseudoElement:0}),Rn=zt(Vs),Dn=z({},In,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Wn=zt(Dn),Yi=z({},In,{data:0}),ll=zt(Yi),Mu={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Qi={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"},_u={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Xs(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=_u[e])?!!t[e]:!1}function Ql(){return Xs}var Zs=z({},tl,{key:function(e){if(e.key){var t=Mu[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Hl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Qi[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ql,charCode:function(e){return e.type==="keypress"?Hl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Hl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Gl=zt(Zs),Ru=z({},nl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),il=zt(Ru),Du=z({},tl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ql}),zu=zt(Du),ku=z({},In,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ou=zt(ku),Uu=z({},nl,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Hu=zt(Uu),qu=z({},In,{newState:0,oldState:0}),Bu=zt(qu),Lu=[9,13,27,32],Gi=Mn&&"CompositionEvent"in window,sl=null;Mn&&"documentMode"in document&&(sl=document.documentMode);var Yu=Mn&&"TextEvent"in window&&!sl,Ks=Mn&&(!Gi||sl&&8<sl&&11>=sl),$s=" ",Js=!1;function Fs(e,t){switch(e){case"keyup":return Lu.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Is(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ln=!1;function Qu(e,t){switch(e){case"compositionend":return Is(t);case"keypress":return t.which!==32?null:(Js=!0,$s);case"textInput":return e=t.data,e===$s&&Js?null:e;default:return null}}function Ws(e,t){if(Ln)return e==="compositionend"||!Gi&&Fs(e,t)?(e=_n(),Ul=Oi=Bn=null,Ln=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Ks&&t.locale!=="ko"?null:t.data;default:return null}}var Gu={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 Ps(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Gu[e.type]:t==="textarea"}function ec(e,t,n,a){Ca?Aa?Aa.push(a):Aa=[a]:Ca=a,t=Zc(t,"onChange"),0<t.length&&(n=new ql("onChange","change",null,n,a),e.push({event:n,listeners:t}))}var cl=null,ul=null;function Vu(e){am(e,0)}function Vl(e){var t=Wa(e);if(Ls(t))return e}function tc(e,t){if(e==="change")return t}var nc=!1;if(Mn){var Vi;if(Mn){var Xi="oninput"in document;if(!Xi){var rl=document.createElement("div");rl.setAttribute("oninput","return;"),Xi=typeof rl.oninput=="function"}Vi=Xi}else Vi=!1;nc=Vi&&(!document.documentMode||9<document.documentMode)}function ac(){cl&&(cl.detachEvent("onpropertychange",lc),ul=cl=null)}function lc(e){if(e.propertyName==="value"&&Vl(ul)){var t=[];ec(t,ul,e,ja(e)),Gs(Vu,t)}}function N(e,t,n){e==="focusin"?(ac(),cl=t,ul=n,cl.attachEvent("onpropertychange",lc)):e==="focusout"&&ac()}function Q(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Vl(ul)}function I(e,t){if(e==="click")return Vl(t)}function re(e,t){if(e==="input"||e==="change")return Vl(t)}function $e(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ee=typeof Object.is=="function"?Object.is:$e;function Fe(e,t){if(Ee(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var i=n[a];if(!bt.call(t,i)||!Ee(e[i],t[i]))return!1}return!0}function Td(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ed(e,t){var n=Td(e);e=0;for(var a;n;){if(n.nodeType===3){if(a=e+n.textContent.length,e<=t&&a>=t)return{node:n,offset:t-e};e=a}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Td(n)}}function wd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?wd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Md(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=qn(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=qn(e.document)}return t}function Xu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var rg=Mn&&"documentMode"in document&&11>=document.documentMode,Xl=null,Zu=null,Zi=null,Ku=!1;function _d(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ku||Xl==null||Xl!==qn(a)||(a=Xl,"selectionStart"in a&&Xu(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Zi&&Fe(Zi,a)||(Zi=a,a=Zc(Zu,"onSelect"),0<a.length&&(t=new ql("onSelect","select",null,t,n),e.push({event:t,listeners:a}),t.target=Xl)))}function ol(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Zl={animationend:ol("Animation","AnimationEnd"),animationiteration:ol("Animation","AnimationIteration"),animationstart:ol("Animation","AnimationStart"),transitionrun:ol("Transition","TransitionRun"),transitionstart:ol("Transition","TransitionStart"),transitioncancel:ol("Transition","TransitionCancel"),transitionend:ol("Transition","TransitionEnd")},$u={},Rd={};Mn&&(Rd=document.createElement("div").style,"AnimationEvent"in window||(delete Zl.animationend.animation,delete Zl.animationiteration.animation,delete Zl.animationstart.animation),"TransitionEvent"in window||delete Zl.transitionend.transition);function dl(e){if($u[e])return $u[e];if(!Zl[e])return e;var t=Zl[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Rd)return $u[e]=t[n];return e}var Dd=dl("animationend"),zd=dl("animationiteration"),kd=dl("animationstart"),og=dl("transitionrun"),dg=dl("transitionstart"),fg=dl("transitioncancel"),Od=dl("transitionend"),Ud=new Map,Ju="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(" ");Ju.push("scrollEnd");function zn(e,t){Ud.set(e,t),$n(t,[e])}var ic=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},gn=[],Kl=0,Fu=0;function sc(){for(var e=Kl,t=Fu=Kl=0;t<e;){var n=gn[t];gn[t++]=null;var a=gn[t];gn[t++]=null;var i=gn[t];gn[t++]=null;var s=gn[t];if(gn[t++]=null,a!==null&&i!==null){var d=a.pending;d===null?i.next=i:(i.next=d.next,d.next=i),a.pending=i}s!==0&&Hd(n,i,s)}}function cc(e,t,n,a){gn[Kl++]=e,gn[Kl++]=t,gn[Kl++]=n,gn[Kl++]=a,Fu|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Iu(e,t,n,a){return cc(e,t,n,a),uc(e)}function fl(e,t){return cc(e,null,null,t),uc(e)}function Hd(e,t,n){e.lanes|=n;var a=e.alternate;a!==null&&(a.lanes|=n);for(var i=!1,s=e.return;s!==null;)s.childLanes|=n,a=s.alternate,a!==null&&(a.childLanes|=n),s.tag===22&&(e=s.stateNode,e===null||e._visibility&1||(i=!0)),e=s,s=s.return;return e.tag===3?(s=e.stateNode,i&&t!==null&&(i=31-pe(n),e=s.hiddenUpdates,a=e[i],a===null?e[i]=[t]:a.push(t),t.lane=n|536870912),s):null}function uc(e){if(50<ms)throw ms=0,so=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var $l={};function hg(e,t,n,a){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function an(e,t,n,a){return new hg(e,t,n,a)}function Wu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Pn(e,t){var n=e.alternate;return n===null?(n=an(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function qd(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function rc(e,t,n,a,i,s){var d=0;if(a=e,typeof e=="function")Wu(e)&&(d=1);else if(typeof e=="string")d=vp(e,n,J.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case be:return e=an(31,n,t,i),e.elementType=be,e.lanes=s,e;case E:return hl(n.children,i,s,t);case T:d=8,i|=24;break;case G:return e=an(12,n,t,i|2),e.elementType=G,e.lanes=s,e;case oe:return e=an(13,n,t,i),e.elementType=oe,e.lanes=s,e;case De:return e=an(19,n,t,i),e.elementType=De,e.lanes=s,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Z:d=10;break e;case F:d=9;break e;case q:d=11;break e;case he:d=14;break e;case Te:d=16,a=null;break e}d=29,n=Error(o(130,e===null?"null":typeof e,"")),a=null}return t=an(d,n,t,i),t.elementType=e,t.type=a,t.lanes=s,t}function hl(e,t,n,a){return e=an(7,e,a,t),e.lanes=n,e}function Pu(e,t,n){return e=an(6,e,null,t),e.lanes=n,e}function Bd(e){var t=an(18,null,null,0);return t.stateNode=e,t}function er(e,t,n){return t=an(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Ld=new WeakMap;function pn(e,t){if(typeof e=="object"&&e!==null){var n=Ld.get(e);return n!==void 0?n:(t={value:e,source:t,stack:vt(t)},Ld.set(e,t),t)}return{value:e,source:t,stack:vt(t)}}var Jl=[],Fl=0,oc=null,Ki=0,vn=[],bn=0,Ta=null,Yn=1,Qn="";function ea(e,t){Jl[Fl++]=Ki,Jl[Fl++]=oc,oc=e,Ki=t}function Yd(e,t,n){vn[bn++]=Yn,vn[bn++]=Qn,vn[bn++]=Ta,Ta=e;var a=Yn;e=Qn;var i=32-pe(a)-1;a&=~(1<<i),n+=1;var s=32-pe(t)+i;if(30<s){var d=i-i%5;s=(a&(1<<d)-1).toString(32),a>>=d,i-=d,Yn=1<<32-pe(t)+i|n<<i|a,Qn=s+e}else Yn=1<<s|n<<i|a,Qn=e}function tr(e){e.return!==null&&(ea(e,1),Yd(e,1,0))}function nr(e){for(;e===oc;)oc=Jl[--Fl],Jl[Fl]=null,Ki=Jl[--Fl],Jl[Fl]=null;for(;e===Ta;)Ta=vn[--bn],vn[bn]=null,Qn=vn[--bn],vn[bn]=null,Yn=vn[--bn],vn[bn]=null}function Qd(e,t){vn[bn++]=Yn,vn[bn++]=Qn,vn[bn++]=Ta,Yn=t.id,Qn=t.overflow,Ta=e}var kt=null,Ie=null,Re=!1,Ea=null,Sn=!1,ar=Error(o(519));function wa(e){var t=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw $i(pn(t,e)),ar}function Gd(e){var t=e.stateNode,n=e.type,a=e.memoizedProps;switch(t[Ct]=e,t[qt]=a,n){case"dialog":Ne("cancel",t),Ne("close",t);break;case"iframe":case"object":case"embed":Ne("load",t);break;case"video":case"audio":for(n=0;n<gs.length;n++)Ne(gs[n],t);break;case"source":Ne("error",t);break;case"img":case"image":case"link":Ne("error",t),Ne("load",t);break;case"details":Ne("toggle",t);break;case"input":Ne("invalid",t),kl(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":Ne("invalid",t);break;case"textarea":Ne("invalid",t),_i(t,a.value,a.defaultValue,a.children)}n=a.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||a.suppressHydrationWarning===!0||cm(t.textContent,n)?(a.popover!=null&&(Ne("beforetoggle",t),Ne("toggle",t)),a.onScroll!=null&&Ne("scroll",t),a.onScrollEnd!=null&&Ne("scrollend",t),a.onClick!=null&&(t.onclick=wn),t=!0):t=!1,t||wa(e,!0)}function Vd(e){for(kt=e.return;kt;)switch(kt.tag){case 5:case 31:case 13:Sn=!1;return;case 27:case 3:Sn=!0;return;default:kt=kt.return}}function Il(e){if(e!==kt)return!1;if(!Re)return Vd(e),Re=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||jo(e.type,e.memoizedProps)),n=!n),n&&Ie&&wa(e),Vd(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));Ie=gm(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));Ie=gm(e)}else t===27?(t=Ie,Qa(e.type)?(e=Eo,Eo=null,Ie=e):Ie=t):Ie=kt?jn(e.stateNode.nextSibling):null;return!0}function ml(){Ie=kt=null,Re=!1}function lr(){var e=Ea;return e!==null&&($t===null?$t=e:$t.push.apply($t,e),Ea=null),e}function $i(e){Ea===null?Ea=[e]:Ea.push(e)}var ir=v(null),yl=null,ta=null;function Ma(e,t,n){K(ir,t._currentValue),t._currentValue=n}function na(e){e._currentValue=ir.current,H(ir)}function sr(e,t,n){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===n)break;e=e.return}}function cr(e,t,n,a){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var s=i.dependencies;if(s!==null){var d=i.child;s=s.firstContext;e:for(;s!==null;){var f=s;s=i;for(var g=0;g<t.length;g++)if(f.context===t[g]){s.lanes|=n,f=s.alternate,f!==null&&(f.lanes|=n),sr(s.return,n,e),a||(d=null);break e}s=f.next}}else if(i.tag===18){if(d=i.return,d===null)throw Error(o(341));d.lanes|=n,s=d.alternate,s!==null&&(s.lanes|=n),sr(d,n,e),d=null}else d=i.child;if(d!==null)d.return=i;else for(d=i;d!==null;){if(d===e){d=null;break}if(i=d.sibling,i!==null){i.return=d.return,d=i;break}d=d.return}i=d}}function Wl(e,t,n,a){e=null;for(var i=t,s=!1;i!==null;){if(!s){if((i.flags&524288)!==0)s=!0;else if((i.flags&262144)!==0)break}if(i.tag===10){var d=i.alternate;if(d===null)throw Error(o(387));if(d=d.memoizedProps,d!==null){var f=i.type;Ee(i.pendingProps.value,d.value)||(e!==null?e.push(f):e=[f])}}else if(i===se.current){if(d=i.alternate,d===null)throw Error(o(387));d.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e!==null?e.push(xs):e=[xs])}i=i.return}e!==null&&cr(t,e,n,a),t.flags|=262144}function dc(e){for(e=e.firstContext;e!==null;){if(!Ee(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function gl(e){yl=e,ta=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ot(e){return Xd(yl,e)}function fc(e,t){return yl===null&&gl(e),Xd(e,t)}function Xd(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},ta===null){if(e===null)throw Error(o(308));ta=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ta=ta.next=t;return n}var mg=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},yg=l.unstable_scheduleCallback,gg=l.unstable_NormalPriority,ht={$$typeof:Z,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ur(){return{controller:new mg,data:new Map,refCount:0}}function Ji(e){e.refCount--,e.refCount===0&&yg(gg,function(){e.controller.abort()})}var Fi=null,rr=0,Pl=0,ei=null;function pg(e,t){if(Fi===null){var n=Fi=[];rr=0,Pl=ho(),ei={status:"pending",value:void 0,then:function(a){n.push(a)}}}return rr++,t.then(Zd,Zd),t}function Zd(){if(--rr===0&&Fi!==null){ei!==null&&(ei.status="fulfilled");var e=Fi;Fi=null,Pl=0,ei=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function vg(e,t){var n=[],a={status:"pending",value:null,reason:null,then:function(i){n.push(i)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var i=0;i<n.length;i++)(0,n[i])(t)},function(i){for(a.status="rejected",a.reason=i,i=0;i<n.length;i++)(0,n[i])(void 0)}),a}var Kd=C.S;C.S=function(e,t){Rh=st(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&pg(e,t),Kd!==null&&Kd(e,t)};var pl=v(null);function or(){var e=pl.current;return e!==null?e:Ke.pooledCache}function hc(e,t){t===null?K(pl,pl.current):K(pl,t.pool)}function $d(){var e=or();return e===null?null:{parent:ht._currentValue,pool:e}}var ti=Error(o(460)),dr=Error(o(474)),mc=Error(o(542)),yc={then:function(){}};function Jd(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Fd(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(wn,wn),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Wd(e),e;default:if(typeof t.status=="string")t.then(wn,wn);else{if(e=Ke,e!==null&&100<e.shellSuspendCounter)throw Error(o(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var i=t;i.status="fulfilled",i.value=a}},function(a){if(t.status==="pending"){var i=t;i.status="rejected",i.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Wd(e),e}throw bl=t,ti}}function vl(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(bl=n,ti):n}}var bl=null;function Id(){if(bl===null)throw Error(o(459));var e=bl;return bl=null,e}function Wd(e){if(e===ti||e===mc)throw Error(o(483))}var ni=null,Ii=0;function gc(e){var t=Ii;return Ii+=1,ni===null&&(ni=[]),Fd(ni,e,t)}function Wi(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function pc(e,t){throw t.$$typeof===L?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Pd(e){function t(A,b){if(e){var M=A.deletions;M===null?(A.deletions=[b],A.flags|=16):M.push(b)}}function n(A,b){if(!e)return null;for(;b!==null;)t(A,b),b=b.sibling;return null}function a(A){for(var b=new Map;A!==null;)A.key!==null?b.set(A.key,A):b.set(A.index,A),A=A.sibling;return b}function i(A,b){return A=Pn(A,b),A.index=0,A.sibling=null,A}function s(A,b,M){return A.index=M,e?(M=A.alternate,M!==null?(M=M.index,M<b?(A.flags|=67108866,b):M):(A.flags|=67108866,b)):(A.flags|=1048576,b)}function d(A){return e&&A.alternate===null&&(A.flags|=67108866),A}function f(A,b,M,B){return b===null||b.tag!==6?(b=Pu(M,A.mode,B),b.return=A,b):(b=i(b,M),b.return=A,b)}function g(A,b,M,B){var ie=M.type;return ie===E?U(A,b,M.props.children,B,M.key):b!==null&&(b.elementType===ie||typeof ie=="object"&&ie!==null&&ie.$$typeof===Te&&vl(ie)===b.type)?(b=i(b,M.props),Wi(b,M),b.return=A,b):(b=rc(M.type,M.key,M.props,null,A.mode,B),Wi(b,M),b.return=A,b)}function _(A,b,M,B){return b===null||b.tag!==4||b.stateNode.containerInfo!==M.containerInfo||b.stateNode.implementation!==M.implementation?(b=er(M,A.mode,B),b.return=A,b):(b=i(b,M.children||[]),b.return=A,b)}function U(A,b,M,B,ie){return b===null||b.tag!==7?(b=hl(M,A.mode,B,ie),b.return=A,b):(b=i(b,M),b.return=A,b)}function X(A,b,M){if(typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint")return b=Pu(""+b,A.mode,M),b.return=A,b;if(typeof b=="object"&&b!==null){switch(b.$$typeof){case Y:return M=rc(b.type,b.key,b.props,null,A.mode,M),Wi(M,b),M.return=A,M;case w:return b=er(b,A.mode,M),b.return=A,b;case Te:return b=vl(b),X(A,b,M)}if(Qe(b)||Ce(b))return b=hl(b,A.mode,M,null),b.return=A,b;if(typeof b.then=="function")return X(A,gc(b),M);if(b.$$typeof===Z)return X(A,fc(A,b),M);pc(A,b)}return null}function R(A,b,M,B){var ie=b!==null?b.key:null;if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return ie!==null?null:f(A,b,""+M,B);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case Y:return M.key===ie?g(A,b,M,B):null;case w:return M.key===ie?_(A,b,M,B):null;case Te:return M=vl(M),R(A,b,M,B)}if(Qe(M)||Ce(M))return ie!==null?null:U(A,b,M,B,null);if(typeof M.then=="function")return R(A,b,gc(M),B);if(M.$$typeof===Z)return R(A,b,fc(A,M),B);pc(A,M)}return null}function D(A,b,M,B,ie){if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return A=A.get(M)||null,f(b,A,""+B,ie);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case Y:return A=A.get(B.key===null?M:B.key)||null,g(b,A,B,ie);case w:return A=A.get(B.key===null?M:B.key)||null,_(b,A,B,ie);case Te:return B=vl(B),D(A,b,M,B,ie)}if(Qe(B)||Ce(B))return A=A.get(M)||null,U(b,A,B,ie,null);if(typeof B.then=="function")return D(A,b,M,gc(B),ie);if(B.$$typeof===Z)return D(A,b,M,fc(b,B),ie);pc(b,B)}return null}function ne(A,b,M,B){for(var ie=null,ze=null,ae=b,xe=b=0,Me=null;ae!==null&&xe<M.length;xe++){ae.index>xe?(Me=ae,ae=null):Me=ae.sibling;var ke=R(A,ae,M[xe],B);if(ke===null){ae===null&&(ae=Me);break}e&&ae&&ke.alternate===null&&t(A,ae),b=s(ke,b,xe),ze===null?ie=ke:ze.sibling=ke,ze=ke,ae=Me}if(xe===M.length)return n(A,ae),Re&&ea(A,xe),ie;if(ae===null){for(;xe<M.length;xe++)ae=X(A,M[xe],B),ae!==null&&(b=s(ae,b,xe),ze===null?ie=ae:ze.sibling=ae,ze=ae);return Re&&ea(A,xe),ie}for(ae=a(ae);xe<M.length;xe++)Me=D(ae,A,xe,M[xe],B),Me!==null&&(e&&Me.alternate!==null&&ae.delete(Me.key===null?xe:Me.key),b=s(Me,b,xe),ze===null?ie=Me:ze.sibling=Me,ze=Me);return e&&ae.forEach(function(Ka){return t(A,Ka)}),Re&&ea(A,xe),ie}function fe(A,b,M,B){if(M==null)throw Error(o(151));for(var ie=null,ze=null,ae=b,xe=b=0,Me=null,ke=M.next();ae!==null&&!ke.done;xe++,ke=M.next()){ae.index>xe?(Me=ae,ae=null):Me=ae.sibling;var Ka=R(A,ae,ke.value,B);if(Ka===null){ae===null&&(ae=Me);break}e&&ae&&Ka.alternate===null&&t(A,ae),b=s(Ka,b,xe),ze===null?ie=Ka:ze.sibling=Ka,ze=Ka,ae=Me}if(ke.done)return n(A,ae),Re&&ea(A,xe),ie;if(ae===null){for(;!ke.done;xe++,ke=M.next())ke=X(A,ke.value,B),ke!==null&&(b=s(ke,b,xe),ze===null?ie=ke:ze.sibling=ke,ze=ke);return Re&&ea(A,xe),ie}for(ae=a(ae);!ke.done;xe++,ke=M.next())ke=D(ae,A,xe,ke.value,B),ke!==null&&(e&&ke.alternate!==null&&ae.delete(ke.key===null?xe:ke.key),b=s(ke,b,xe),ze===null?ie=ke:ze.sibling=ke,ze=ke);return e&&ae.forEach(function(Mp){return t(A,Mp)}),Re&&ea(A,xe),ie}function Xe(A,b,M,B){if(typeof M=="object"&&M!==null&&M.type===E&&M.key===null&&(M=M.props.children),typeof M=="object"&&M!==null){switch(M.$$typeof){case Y:e:{for(var ie=M.key;b!==null;){if(b.key===ie){if(ie=M.type,ie===E){if(b.tag===7){n(A,b.sibling),B=i(b,M.props.children),B.return=A,A=B;break e}}else if(b.elementType===ie||typeof ie=="object"&&ie!==null&&ie.$$typeof===Te&&vl(ie)===b.type){n(A,b.sibling),B=i(b,M.props),Wi(B,M),B.return=A,A=B;break e}n(A,b);break}else t(A,b);b=b.sibling}M.type===E?(B=hl(M.props.children,A.mode,B,M.key),B.return=A,A=B):(B=rc(M.type,M.key,M.props,null,A.mode,B),Wi(B,M),B.return=A,A=B)}return d(A);case w:e:{for(ie=M.key;b!==null;){if(b.key===ie)if(b.tag===4&&b.stateNode.containerInfo===M.containerInfo&&b.stateNode.implementation===M.implementation){n(A,b.sibling),B=i(b,M.children||[]),B.return=A,A=B;break e}else{n(A,b);break}else t(A,b);b=b.sibling}B=er(M,A.mode,B),B.return=A,A=B}return d(A);case Te:return M=vl(M),Xe(A,b,M,B)}if(Qe(M))return ne(A,b,M,B);if(Ce(M)){if(ie=Ce(M),typeof ie!="function")throw Error(o(150));return M=ie.call(M),fe(A,b,M,B)}if(typeof M.then=="function")return Xe(A,b,gc(M),B);if(M.$$typeof===Z)return Xe(A,b,fc(A,M),B);pc(A,M)}return typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint"?(M=""+M,b!==null&&b.tag===6?(n(A,b.sibling),B=i(b,M),B.return=A,A=B):(n(A,b),B=Pu(M,A.mode,B),B.return=A,A=B),d(A)):n(A,b)}return function(A,b,M,B){try{Ii=0;var ie=Xe(A,b,M,B);return ni=null,ie}catch(ae){if(ae===ti||ae===mc)throw ae;var ze=an(29,ae,null,A.mode);return ze.lanes=B,ze.return=A,ze}}}var Sl=Pd(!0),ef=Pd(!1),_a=!1;function fr(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function hr(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ra(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Da(e,t,n){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(Ue&2)!==0){var i=a.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),a.pending=t,t=uc(e),Hd(e,null,n),t}return cc(e,a,t,n),uc(e)}function Pi(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,hn(e,n)}}function mr(e,t){var n=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var i=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var d={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};s===null?i=s=d:s=s.next=d,n=n.next}while(n!==null);s===null?i=s=t:s=s.next=t}else i=s=t;n={baseState:a.baseState,firstBaseUpdate:i,lastBaseUpdate:s,shared:a.shared,callbacks:a.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var yr=!1;function es(){if(yr){var e=ei;if(e!==null)throw e}}function ts(e,t,n,a){yr=!1;var i=e.updateQueue;_a=!1;var s=i.firstBaseUpdate,d=i.lastBaseUpdate,f=i.shared.pending;if(f!==null){i.shared.pending=null;var g=f,_=g.next;g.next=null,d===null?s=_:d.next=_,d=g;var U=e.alternate;U!==null&&(U=U.updateQueue,f=U.lastBaseUpdate,f!==d&&(f===null?U.firstBaseUpdate=_:f.next=_,U.lastBaseUpdate=g))}if(s!==null){var X=i.baseState;d=0,U=_=g=null,f=s;do{var R=f.lane&-536870913,D=R!==f.lane;if(D?(we&R)===R:(a&R)===R){R!==0&&R===Pl&&(yr=!0),U!==null&&(U=U.next={lane:0,tag:f.tag,payload:f.payload,callback:null,next:null});e:{var ne=e,fe=f;R=t;var Xe=n;switch(fe.tag){case 1:if(ne=fe.payload,typeof ne=="function"){X=ne.call(Xe,X,R);break e}X=ne;break e;case 3:ne.flags=ne.flags&-65537|128;case 0:if(ne=fe.payload,R=typeof ne=="function"?ne.call(Xe,X,R):ne,R==null)break e;X=z({},X,R);break e;case 2:_a=!0}}R=f.callback,R!==null&&(e.flags|=64,D&&(e.flags|=8192),D=i.callbacks,D===null?i.callbacks=[R]:D.push(R))}else D={lane:R,tag:f.tag,payload:f.payload,callback:f.callback,next:null},U===null?(_=U=D,g=X):U=U.next=D,d|=R;if(f=f.next,f===null){if(f=i.shared.pending,f===null)break;D=f,f=D.next,D.next=null,i.lastBaseUpdate=D,i.shared.pending=null}}while(!0);U===null&&(g=X),i.baseState=g,i.firstBaseUpdate=_,i.lastBaseUpdate=U,s===null&&(i.shared.lanes=0),Ha|=d,e.lanes=d,e.memoizedState=X}}function tf(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function nf(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)tf(n[e],t)}var ai=v(null),vc=v(0);function af(e,t){e=da,K(vc,e),K(ai,t),da=e|t.baseLanes}function gr(){K(vc,da),K(ai,ai.current)}function pr(){da=vc.current,H(ai),H(vc)}var ln=v(null),xn=null;function za(e){var t=e.alternate;K(ot,ot.current&1),K(ln,e),xn===null&&(t===null||ai.current!==null||t.memoizedState!==null)&&(xn=e)}function vr(e){K(ot,ot.current),K(ln,e),xn===null&&(xn=e)}function lf(e){e.tag===22?(K(ot,ot.current),K(ln,e),xn===null&&(xn=e)):ka()}function ka(){K(ot,ot.current),K(ln,ln.current)}function sn(e){H(ln),xn===e&&(xn=null),H(ot)}var ot=v(0);function bc(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||No(n)||To(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var aa=0,Se=null,Ge=null,mt=null,Sc=!1,li=!1,xl=!1,xc=0,ns=0,ii=null,bg=0;function ct(){throw Error(o(321))}function br(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ee(e[n],t[n]))return!1;return!0}function Sr(e,t,n,a,i,s){return aa=s,Se=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,C.H=e===null||e.memoizedState===null?Qf:Or,xl=!1,s=n(a,i),xl=!1,li&&(s=cf(t,n,a,i)),sf(e),s}function sf(e){C.H=is;var t=Ge!==null&&Ge.next!==null;if(aa=0,mt=Ge=Se=null,Sc=!1,ns=0,ii=null,t)throw Error(o(300));e===null||yt||(e=e.dependencies,e!==null&&dc(e)&&(yt=!0))}function cf(e,t,n,a){Se=e;var i=0;do{if(li&&(ii=null),ns=0,li=!1,25<=i)throw Error(o(301));if(i+=1,mt=Ge=null,e.updateQueue!=null){var s=e.updateQueue;s.lastEffect=null,s.events=null,s.stores=null,s.memoCache!=null&&(s.memoCache.index=0)}C.H=Gf,s=t(n,a)}while(li);return s}function Sg(){var e=C.H,t=e.useState()[0];return t=typeof t.then=="function"?as(t):t,e=e.useState()[0],(Ge!==null?Ge.memoizedState:null)!==e&&(Se.flags|=1024),t}function xr(){var e=xc!==0;return xc=0,e}function jr(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Cr(e){if(Sc){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Sc=!1}aa=0,mt=Ge=Se=null,li=!1,ns=xc=0,ii=null}function Lt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return mt===null?Se.memoizedState=mt=e:mt=mt.next=e,mt}function dt(){if(Ge===null){var e=Se.alternate;e=e!==null?e.memoizedState:null}else e=Ge.next;var t=mt===null?Se.memoizedState:mt.next;if(t!==null)mt=t,Ge=e;else{if(e===null)throw Se.alternate===null?Error(o(467)):Error(o(310));Ge=e,e={memoizedState:Ge.memoizedState,baseState:Ge.baseState,baseQueue:Ge.baseQueue,queue:Ge.queue,next:null},mt===null?Se.memoizedState=mt=e:mt=mt.next=e}return mt}function jc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function as(e){var t=ns;return ns+=1,ii===null&&(ii=[]),e=Fd(ii,e,t),t=Se,(mt===null?t.memoizedState:mt.next)===null&&(t=t.alternate,C.H=t===null||t.memoizedState===null?Qf:Or),e}function Cc(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return as(e);if(e.$$typeof===Z)return Ot(e)}throw Error(o(438,String(e)))}function Ar(e){var t=null,n=Se.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var a=Se.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(i){return i.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=jc(),Se.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),a=0;a<e;a++)n[a]=it;return t.index++,n}function la(e,t){return typeof t=="function"?t(e):t}function Ac(e){var t=dt();return Nr(t,Ge,e)}function Nr(e,t,n){var a=e.queue;if(a===null)throw Error(o(311));a.lastRenderedReducer=n;var i=e.baseQueue,s=a.pending;if(s!==null){if(i!==null){var d=i.next;i.next=s.next,s.next=d}t.baseQueue=i=s,a.pending=null}if(s=e.baseState,i===null)e.memoizedState=s;else{t=i.next;var f=d=null,g=null,_=t,U=!1;do{var X=_.lane&-536870913;if(X!==_.lane?(we&X)===X:(aa&X)===X){var R=_.revertLane;if(R===0)g!==null&&(g=g.next={lane:0,revertLane:0,gesture:null,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null}),X===Pl&&(U=!0);else if((aa&R)===R){_=_.next,R===Pl&&(U=!0);continue}else X={lane:0,revertLane:_.revertLane,gesture:null,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null},g===null?(f=g=X,d=s):g=g.next=X,Se.lanes|=R,Ha|=R;X=_.action,xl&&n(s,X),s=_.hasEagerState?_.eagerState:n(s,X)}else R={lane:X,revertLane:_.revertLane,gesture:_.gesture,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null},g===null?(f=g=R,d=s):g=g.next=R,Se.lanes|=X,Ha|=X;_=_.next}while(_!==null&&_!==t);if(g===null?d=s:g.next=f,!Ee(s,e.memoizedState)&&(yt=!0,U&&(n=ei,n!==null)))throw n;e.memoizedState=s,e.baseState=d,e.baseQueue=g,a.lastRenderedState=s}return i===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function Tr(e){var t=dt(),n=t.queue;if(n===null)throw Error(o(311));n.lastRenderedReducer=e;var a=n.dispatch,i=n.pending,s=t.memoizedState;if(i!==null){n.pending=null;var d=i=i.next;do s=e(s,d.action),d=d.next;while(d!==i);Ee(s,t.memoizedState)||(yt=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,a]}function uf(e,t,n){var a=Se,i=dt(),s=Re;if(s){if(n===void 0)throw Error(o(407));n=n()}else n=t();var d=!Ee((Ge||i).memoizedState,n);if(d&&(i.memoizedState=n,yt=!0),i=i.queue,Mr(df.bind(null,a,i,e),[e]),i.getSnapshot!==t||d||mt!==null&&mt.memoizedState.tag&1){if(a.flags|=2048,si(9,{destroy:void 0},of.bind(null,a,i,n,t),null),Ke===null)throw Error(o(349));s||(aa&127)!==0||rf(a,t,n)}return n}function rf(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Se.updateQueue,t===null?(t=jc(),Se.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function of(e,t,n,a){t.value=n,t.getSnapshot=a,ff(t)&&hf(e)}function df(e,t,n){return n(function(){ff(t)&&hf(e)})}function ff(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ee(e,n)}catch{return!0}}function hf(e){var t=fl(e,2);t!==null&&Jt(t,e,2)}function Er(e){var t=Lt();if(typeof e=="function"){var n=e;if(e=n(),xl){ue(!0);try{n()}finally{ue(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:la,lastRenderedState:e},t}function mf(e,t,n,a){return e.baseState=n,Nr(e,Ge,typeof a=="function"?a:la)}function xg(e,t,n,a,i){if(Ec(e))throw Error(o(485));if(e=t.action,e!==null){var s={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(d){s.listeners.push(d)}};C.T!==null?n(!0):s.isTransition=!1,a(s),n=t.pending,n===null?(s.next=t.pending=s,yf(t,s)):(s.next=n.next,t.pending=n.next=s)}}function yf(e,t){var n=t.action,a=t.payload,i=e.state;if(t.isTransition){var s=C.T,d={};C.T=d;try{var f=n(i,a),g=C.S;g!==null&&g(d,f),gf(e,t,f)}catch(_){wr(e,t,_)}finally{s!==null&&d.types!==null&&(s.types=d.types),C.T=s}}else try{s=n(i,a),gf(e,t,s)}catch(_){wr(e,t,_)}}function gf(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){pf(e,t,a)},function(a){return wr(e,t,a)}):pf(e,t,n)}function pf(e,t,n){t.status="fulfilled",t.value=n,vf(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,yf(e,n)))}function wr(e,t,n){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=n,vf(t),t=t.next;while(t!==a)}e.action=null}function vf(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function bf(e,t){return t}function Sf(e,t){if(Re){var n=Ke.formState;if(n!==null){e:{var a=Se;if(Re){if(Ie){t:{for(var i=Ie,s=Sn;i.nodeType!==8;){if(!s){i=null;break t}if(i=jn(i.nextSibling),i===null){i=null;break t}}s=i.data,i=s==="F!"||s==="F"?i:null}if(i){Ie=jn(i.nextSibling),a=i.data==="F!";break e}}wa(a)}a=!1}a&&(t=n[0])}}return n=Lt(),n.memoizedState=n.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:bf,lastRenderedState:t},n.queue=a,n=Bf.bind(null,Se,a),a.dispatch=n,a=Er(!1),s=kr.bind(null,Se,!1,a.queue),a=Lt(),i={state:t,dispatch:null,action:e,pending:null},a.queue=i,n=xg.bind(null,Se,i,s,n),i.dispatch=n,a.memoizedState=e,[t,n,!1]}function xf(e){var t=dt();return jf(t,Ge,e)}function jf(e,t,n){if(t=Nr(e,t,bf)[0],e=Ac(la)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=as(t)}catch(d){throw d===ti?mc:d}else a=t;t=dt();var i=t.queue,s=i.dispatch;return n!==t.memoizedState&&(Se.flags|=2048,si(9,{destroy:void 0},jg.bind(null,i,n),null)),[a,s,e]}function jg(e,t){e.action=t}function Cf(e){var t=dt(),n=Ge;if(n!==null)return jf(t,n,e);dt(),t=t.memoizedState,n=dt();var a=n.queue.dispatch;return n.memoizedState=e,[t,a,!1]}function si(e,t,n,a){return e={tag:e,create:n,deps:a,inst:t,next:null},t=Se.updateQueue,t===null&&(t=jc(),Se.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(a=n.next,n.next=e,e.next=a,t.lastEffect=e),e}function Af(){return dt().memoizedState}function Nc(e,t,n,a){var i=Lt();Se.flags|=e,i.memoizedState=si(1|t,{destroy:void 0},n,a===void 0?null:a)}function Tc(e,t,n,a){var i=dt();a=a===void 0?null:a;var s=i.memoizedState.inst;Ge!==null&&a!==null&&br(a,Ge.memoizedState.deps)?i.memoizedState=si(t,s,n,a):(Se.flags|=e,i.memoizedState=si(1|t,s,n,a))}function Nf(e,t){Nc(8390656,8,e,t)}function Mr(e,t){Tc(2048,8,e,t)}function Cg(e){Se.flags|=4;var t=Se.updateQueue;if(t===null)t=jc(),Se.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Tf(e){var t=dt().memoizedState;return Cg({ref:t,nextImpl:e}),function(){if((Ue&2)!==0)throw Error(o(440));return t.impl.apply(void 0,arguments)}}function Ef(e,t){return Tc(4,2,e,t)}function wf(e,t){return Tc(4,4,e,t)}function Mf(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function _f(e,t,n){n=n!=null?n.concat([e]):null,Tc(4,4,Mf.bind(null,t,e),n)}function _r(){}function Rf(e,t){var n=dt();t=t===void 0?null:t;var a=n.memoizedState;return t!==null&&br(t,a[1])?a[0]:(n.memoizedState=[e,t],e)}function Df(e,t){var n=dt();t=t===void 0?null:t;var a=n.memoizedState;if(t!==null&&br(t,a[1]))return a[0];if(a=e(),xl){ue(!0);try{e()}finally{ue(!1)}}return n.memoizedState=[a,t],a}function Rr(e,t,n){return n===void 0||(aa&1073741824)!==0&&(we&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=zh(),Se.lanes|=e,Ha|=e,n)}function zf(e,t,n,a){return Ee(n,t)?n:ai.current!==null?(e=Rr(e,n,a),Ee(e,t)||(yt=!0),e):(aa&42)===0||(aa&1073741824)!==0&&(we&261930)===0?(yt=!0,e.memoizedState=n):(e=zh(),Se.lanes|=e,Ha|=e,t)}function kf(e,t,n,a,i){var s=k.p;k.p=s!==0&&8>s?s:8;var d=C.T,f={};C.T=f,kr(e,!1,t,n);try{var g=i(),_=C.S;if(_!==null&&_(f,g),g!==null&&typeof g=="object"&&typeof g.then=="function"){var U=vg(g,a);ls(e,t,U,rn(e))}else ls(e,t,a,rn(e))}catch(X){ls(e,t,{then:function(){},status:"rejected",reason:X},rn())}finally{k.p=s,d!==null&&f.types!==null&&(d.types=f.types),C.T=d}}function Ag(){}function Dr(e,t,n,a){if(e.tag!==5)throw Error(o(476));var i=Of(e).queue;kf(e,i,t,$,n===null?Ag:function(){return Uf(e),n(a)})}function Of(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:$,baseState:$,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:la,lastRenderedState:$},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:la,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Uf(e){var t=Of(e);t.next===null&&(t=e.alternate.memoizedState),ls(e,t.next.queue,{},rn())}function zr(){return Ot(xs)}function Hf(){return dt().memoizedState}function qf(){return dt().memoizedState}function Ng(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=rn();e=Ra(n);var a=Da(t,e,n);a!==null&&(Jt(a,t,n),Pi(a,t,n)),t={cache:ur()},e.payload=t;return}t=t.return}}function Tg(e,t,n){var a=rn();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Ec(e)?Lf(t,n):(n=Iu(e,t,n,a),n!==null&&(Jt(n,e,a),Yf(n,t,a)))}function Bf(e,t,n){var a=rn();ls(e,t,n,a)}function ls(e,t,n,a){var i={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ec(e))Lf(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var d=t.lastRenderedState,f=s(d,n);if(i.hasEagerState=!0,i.eagerState=f,Ee(f,d))return cc(e,t,i,0),Ke===null&&sc(),!1}catch{}if(n=Iu(e,t,i,a),n!==null)return Jt(n,e,a),Yf(n,t,a),!0}return!1}function kr(e,t,n,a){if(a={lane:2,revertLane:ho(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Ec(e)){if(t)throw Error(o(479))}else t=Iu(e,n,a,2),t!==null&&Jt(t,e,2)}function Ec(e){var t=e.alternate;return e===Se||t!==null&&t===Se}function Lf(e,t){li=Sc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Yf(e,t,n){if((n&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,hn(e,n)}}var is={readContext:Ot,use:Cc,useCallback:ct,useContext:ct,useEffect:ct,useImperativeHandle:ct,useLayoutEffect:ct,useInsertionEffect:ct,useMemo:ct,useReducer:ct,useRef:ct,useState:ct,useDebugValue:ct,useDeferredValue:ct,useTransition:ct,useSyncExternalStore:ct,useId:ct,useHostTransitionStatus:ct,useFormState:ct,useActionState:ct,useOptimistic:ct,useMemoCache:ct,useCacheRefresh:ct};is.useEffectEvent=ct;var Qf={readContext:Ot,use:Cc,useCallback:function(e,t){return Lt().memoizedState=[e,t===void 0?null:t],e},useContext:Ot,useEffect:Nf,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Nc(4194308,4,Mf.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Nc(4194308,4,e,t)},useInsertionEffect:function(e,t){Nc(4,2,e,t)},useMemo:function(e,t){var n=Lt();t=t===void 0?null:t;var a=e();if(xl){ue(!0);try{e()}finally{ue(!1)}}return n.memoizedState=[a,t],a},useReducer:function(e,t,n){var a=Lt();if(n!==void 0){var i=n(t);if(xl){ue(!0);try{n(t)}finally{ue(!1)}}}else i=t;return a.memoizedState=a.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},a.queue=e,e=e.dispatch=Tg.bind(null,Se,e),[a.memoizedState,e]},useRef:function(e){var t=Lt();return e={current:e},t.memoizedState=e},useState:function(e){e=Er(e);var t=e.queue,n=Bf.bind(null,Se,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:_r,useDeferredValue:function(e,t){var n=Lt();return Rr(n,e,t)},useTransition:function(){var e=Er(!1);return e=kf.bind(null,Se,e.queue,!0,!1),Lt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var a=Se,i=Lt();if(Re){if(n===void 0)throw Error(o(407));n=n()}else{if(n=t(),Ke===null)throw Error(o(349));(we&127)!==0||rf(a,t,n)}i.memoizedState=n;var s={value:n,getSnapshot:t};return i.queue=s,Nf(df.bind(null,a,s,e),[e]),a.flags|=2048,si(9,{destroy:void 0},of.bind(null,a,s,n,t),null),n},useId:function(){var e=Lt(),t=Ke.identifierPrefix;if(Re){var n=Qn,a=Yn;n=(a&~(1<<32-pe(a)-1)).toString(32)+n,t="_"+t+"R_"+n,n=xc++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=bg++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:zr,useFormState:Sf,useActionState:Sf,useOptimistic:function(e){var t=Lt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=kr.bind(null,Se,!0,n),n.dispatch=t,[e,t]},useMemoCache:Ar,useCacheRefresh:function(){return Lt().memoizedState=Ng.bind(null,Se)},useEffectEvent:function(e){var t=Lt(),n={impl:e};return t.memoizedState=n,function(){if((Ue&2)!==0)throw Error(o(440));return n.impl.apply(void 0,arguments)}}},Or={readContext:Ot,use:Cc,useCallback:Rf,useContext:Ot,useEffect:Mr,useImperativeHandle:_f,useInsertionEffect:Ef,useLayoutEffect:wf,useMemo:Df,useReducer:Ac,useRef:Af,useState:function(){return Ac(la)},useDebugValue:_r,useDeferredValue:function(e,t){var n=dt();return zf(n,Ge.memoizedState,e,t)},useTransition:function(){var e=Ac(la)[0],t=dt().memoizedState;return[typeof e=="boolean"?e:as(e),t]},useSyncExternalStore:uf,useId:Hf,useHostTransitionStatus:zr,useFormState:xf,useActionState:xf,useOptimistic:function(e,t){var n=dt();return mf(n,Ge,e,t)},useMemoCache:Ar,useCacheRefresh:qf};Or.useEffectEvent=Tf;var Gf={readContext:Ot,use:Cc,useCallback:Rf,useContext:Ot,useEffect:Mr,useImperativeHandle:_f,useInsertionEffect:Ef,useLayoutEffect:wf,useMemo:Df,useReducer:Tr,useRef:Af,useState:function(){return Tr(la)},useDebugValue:_r,useDeferredValue:function(e,t){var n=dt();return Ge===null?Rr(n,e,t):zf(n,Ge.memoizedState,e,t)},useTransition:function(){var e=Tr(la)[0],t=dt().memoizedState;return[typeof e=="boolean"?e:as(e),t]},useSyncExternalStore:uf,useId:Hf,useHostTransitionStatus:zr,useFormState:Cf,useActionState:Cf,useOptimistic:function(e,t){var n=dt();return Ge!==null?mf(n,Ge,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:Ar,useCacheRefresh:qf};Gf.useEffectEvent=Tf;function Ur(e,t,n,a){t=e.memoizedState,n=n(a,t),n=n==null?t:z({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Hr={enqueueSetState:function(e,t,n){e=e._reactInternals;var a=rn(),i=Ra(a);i.payload=t,n!=null&&(i.callback=n),t=Da(e,i,a),t!==null&&(Jt(t,e,a),Pi(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var a=rn(),i=Ra(a);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Da(e,i,a),t!==null&&(Jt(t,e,a),Pi(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=rn(),a=Ra(n);a.tag=2,t!=null&&(a.callback=t),t=Da(e,a,n),t!==null&&(Jt(t,e,n),Pi(t,e,n))}};function Vf(e,t,n,a,i,s,d){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,s,d):t.prototype&&t.prototype.isPureReactComponent?!Fe(n,a)||!Fe(i,s):!0}function Xf(e,t,n,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,a),t.state!==e&&Hr.enqueueReplaceState(t,t.state,null)}function jl(e,t){var n=t;if("ref"in t){n={};for(var a in t)a!=="ref"&&(n[a]=t[a])}if(e=e.defaultProps){n===t&&(n=z({},n));for(var i in e)n[i]===void 0&&(n[i]=e[i])}return n}function Zf(e){ic(e)}function Kf(e){console.error(e)}function $f(e){ic(e)}function wc(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function Jf(e,t,n){try{var a=e.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(i){setTimeout(function(){throw i})}}function qr(e,t,n){return n=Ra(n),n.tag=3,n.payload={element:null},n.callback=function(){wc(e,t)},n}function Ff(e){return e=Ra(e),e.tag=3,e}function If(e,t,n,a){var i=n.type.getDerivedStateFromError;if(typeof i=="function"){var s=a.value;e.payload=function(){return i(s)},e.callback=function(){Jf(t,n,a)}}var d=n.stateNode;d!==null&&typeof d.componentDidCatch=="function"&&(e.callback=function(){Jf(t,n,a),typeof i!="function"&&(qa===null?qa=new Set([this]):qa.add(this));var f=a.stack;this.componentDidCatch(a.value,{componentStack:f!==null?f:""})})}function Eg(e,t,n,a,i){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=n.alternate,t!==null&&Wl(t,n,i,!0),n=ln.current,n!==null){switch(n.tag){case 31:case 13:return xn===null?Lc():n.alternate===null&&ut===0&&(ut=3),n.flags&=-257,n.flags|=65536,n.lanes=i,a===yc?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([a]):t.add(a),ro(e,a,i)),!1;case 22:return n.flags|=65536,a===yc?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([a]):n.add(a)),ro(e,a,i)),!1}throw Error(o(435,n.tag))}return ro(e,a,i),Lc(),!1}if(Re)return t=ln.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=i,a!==ar&&(e=Error(o(422),{cause:a}),$i(pn(e,n)))):(a!==ar&&(t=Error(o(423),{cause:a}),$i(pn(t,n))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,a=pn(a,n),i=qr(e.stateNode,a,i),mr(e,i),ut!==4&&(ut=2)),!1;var s=Error(o(520),{cause:a});if(s=pn(s,n),hs===null?hs=[s]:hs.push(s),ut!==4&&(ut=2),t===null)return!0;a=pn(a,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,e=qr(n.stateNode,a,e),mr(n,e),!1;case 1:if(t=n.type,s=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||s!==null&&typeof s.componentDidCatch=="function"&&(qa===null||!qa.has(s))))return n.flags|=65536,i&=-i,n.lanes|=i,i=Ff(i),If(i,e,n,a),mr(n,i),!1}n=n.return}while(n!==null);return!1}var Br=Error(o(461)),yt=!1;function Ut(e,t,n,a){t.child=e===null?ef(t,null,n,a):Sl(t,e.child,n,a)}function Wf(e,t,n,a,i){n=n.render;var s=t.ref;if("ref"in a){var d={};for(var f in a)f!=="ref"&&(d[f]=a[f])}else d=a;return gl(t),a=Sr(e,t,n,d,s,i),f=xr(),e!==null&&!yt?(jr(e,t,i),ia(e,t,i)):(Re&&f&&tr(t),t.flags|=1,Ut(e,t,a,i),t.child)}function Pf(e,t,n,a,i){if(e===null){var s=n.type;return typeof s=="function"&&!Wu(s)&&s.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=s,eh(e,t,s,a,i)):(e=rc(n.type,null,a,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!Kr(e,i)){var d=s.memoizedProps;if(n=n.compare,n=n!==null?n:Fe,n(d,a)&&e.ref===t.ref)return ia(e,t,i)}return t.flags|=1,e=Pn(s,a),e.ref=t.ref,e.return=t,t.child=e}function eh(e,t,n,a,i){if(e!==null){var s=e.memoizedProps;if(Fe(s,a)&&e.ref===t.ref)if(yt=!1,t.pendingProps=a=s,Kr(e,i))(e.flags&131072)!==0&&(yt=!0);else return t.lanes=e.lanes,ia(e,t,i)}return Lr(e,t,n,a,i)}function th(e,t,n,a){var i=a.children,s=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(s=s!==null?s.baseLanes|n:n,e!==null){for(a=t.child=e.child,i=0;a!==null;)i=i|a.lanes|a.childLanes,a=a.sibling;a=i&~s}else a=0,t.child=null;return nh(e,t,s,n,a)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&hc(t,s!==null?s.cachePool:null),s!==null?af(t,s):gr(),lf(t);else return a=t.lanes=536870912,nh(e,t,s!==null?s.baseLanes|n:n,n,a)}else s!==null?(hc(t,s.cachePool),af(t,s),ka(),t.memoizedState=null):(e!==null&&hc(t,null),gr(),ka());return Ut(e,t,i,n),t.child}function ss(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function nh(e,t,n,a,i){var s=or();return s=s===null?null:{parent:ht._currentValue,pool:s},t.memoizedState={baseLanes:n,cachePool:s},e!==null&&hc(t,null),gr(),lf(t),e!==null&&Wl(e,t,a,!0),t.childLanes=i,null}function Mc(e,t){return t=Rc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function ah(e,t,n){return Sl(t,e.child,null,n),e=Mc(t,t.pendingProps),e.flags|=2,sn(t),t.memoizedState=null,e}function wg(e,t,n){var a=t.pendingProps,i=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Re){if(a.mode==="hidden")return e=Mc(t,a),t.lanes=536870912,ss(null,e);if(vr(t),(e=Ie)?(e=ym(e,Sn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ta!==null?{id:Yn,overflow:Qn}:null,retryLane:536870912,hydrationErrors:null},n=Bd(e),n.return=t,t.child=n,kt=t,Ie=null)):e=null,e===null)throw wa(t);return t.lanes=536870912,null}return Mc(t,a)}var s=e.memoizedState;if(s!==null){var d=s.dehydrated;if(vr(t),i)if(t.flags&256)t.flags&=-257,t=ah(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(o(558));else if(yt||Wl(e,t,n,!1),i=(n&e.childLanes)!==0,yt||i){if(a=Ke,a!==null&&(d=Fa(a,n),d!==0&&d!==s.retryLane))throw s.retryLane=d,fl(e,d),Jt(a,e,d),Br;Lc(),t=ah(e,t,n)}else e=s.treeContext,Ie=jn(d.nextSibling),kt=t,Re=!0,Ea=null,Sn=!1,e!==null&&Qd(t,e),t=Mc(t,a),t.flags|=4096;return t}return e=Pn(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function _c(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(o(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Lr(e,t,n,a,i){return gl(t),n=Sr(e,t,n,a,void 0,i),a=xr(),e!==null&&!yt?(jr(e,t,i),ia(e,t,i)):(Re&&a&&tr(t),t.flags|=1,Ut(e,t,n,i),t.child)}function lh(e,t,n,a,i,s){return gl(t),t.updateQueue=null,n=cf(t,a,n,i),sf(e),a=xr(),e!==null&&!yt?(jr(e,t,s),ia(e,t,s)):(Re&&a&&tr(t),t.flags|=1,Ut(e,t,n,s),t.child)}function ih(e,t,n,a,i){if(gl(t),t.stateNode===null){var s=$l,d=n.contextType;typeof d=="object"&&d!==null&&(s=Ot(d)),s=new n(a,s),t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=Hr,t.stateNode=s,s._reactInternals=t,s=t.stateNode,s.props=a,s.state=t.memoizedState,s.refs={},fr(t),d=n.contextType,s.context=typeof d=="object"&&d!==null?Ot(d):$l,s.state=t.memoizedState,d=n.getDerivedStateFromProps,typeof d=="function"&&(Ur(t,n,d,a),s.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(d=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),d!==s.state&&Hr.enqueueReplaceState(s,s.state,null),ts(t,a,s,i),es(),s.state=t.memoizedState),typeof s.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){s=t.stateNode;var f=t.memoizedProps,g=jl(n,f);s.props=g;var _=s.context,U=n.contextType;d=$l,typeof U=="object"&&U!==null&&(d=Ot(U));var X=n.getDerivedStateFromProps;U=typeof X=="function"||typeof s.getSnapshotBeforeUpdate=="function",f=t.pendingProps!==f,U||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(f||_!==d)&&Xf(t,s,a,d),_a=!1;var R=t.memoizedState;s.state=R,ts(t,a,s,i),es(),_=t.memoizedState,f||R!==_||_a?(typeof X=="function"&&(Ur(t,n,X,a),_=t.memoizedState),(g=_a||Vf(t,n,g,a,R,_,d))?(U||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=_),s.props=a,s.state=_,s.context=d,a=g):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{s=t.stateNode,hr(e,t),d=t.memoizedProps,U=jl(n,d),s.props=U,X=t.pendingProps,R=s.context,_=n.contextType,g=$l,typeof _=="object"&&_!==null&&(g=Ot(_)),f=n.getDerivedStateFromProps,(_=typeof f=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(d!==X||R!==g)&&Xf(t,s,a,g),_a=!1,R=t.memoizedState,s.state=R,ts(t,a,s,i),es();var D=t.memoizedState;d!==X||R!==D||_a||e!==null&&e.dependencies!==null&&dc(e.dependencies)?(typeof f=="function"&&(Ur(t,n,f,a),D=t.memoizedState),(U=_a||Vf(t,n,U,a,R,D,g)||e!==null&&e.dependencies!==null&&dc(e.dependencies))?(_||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(a,D,g),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(a,D,g)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||d===e.memoizedProps&&R===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&R===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=D),s.props=a,s.state=D,s.context=g,a=U):(typeof s.componentDidUpdate!="function"||d===e.memoizedProps&&R===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&R===e.memoizedState||(t.flags|=1024),a=!1)}return s=a,_c(e,t),a=(t.flags&128)!==0,s||a?(s=t.stateNode,n=a&&typeof n.getDerivedStateFromError!="function"?null:s.render(),t.flags|=1,e!==null&&a?(t.child=Sl(t,e.child,null,i),t.child=Sl(t,null,n,i)):Ut(e,t,n,i),t.memoizedState=s.state,e=t.child):e=ia(e,t,i),e}function sh(e,t,n,a){return ml(),t.flags|=256,Ut(e,t,n,a),t.child}var Yr={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Qr(e){return{baseLanes:e,cachePool:$d()}}function Gr(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=un),e}function ch(e,t,n){var a=t.pendingProps,i=!1,s=(t.flags&128)!==0,d;if((d=s)||(d=e!==null&&e.memoizedState===null?!1:(ot.current&2)!==0),d&&(i=!0,t.flags&=-129),d=(t.flags&32)!==0,t.flags&=-33,e===null){if(Re){if(i?za(t):ka(),(e=Ie)?(e=ym(e,Sn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ta!==null?{id:Yn,overflow:Qn}:null,retryLane:536870912,hydrationErrors:null},n=Bd(e),n.return=t,t.child=n,kt=t,Ie=null)):e=null,e===null)throw wa(t);return To(e)?t.lanes=32:t.lanes=536870912,null}var f=a.children;return a=a.fallback,i?(ka(),i=t.mode,f=Rc({mode:"hidden",children:f},i),a=hl(a,i,n,null),f.return=t,a.return=t,f.sibling=a,t.child=f,a=t.child,a.memoizedState=Qr(n),a.childLanes=Gr(e,d,n),t.memoizedState=Yr,ss(null,a)):(za(t),Vr(t,f))}var g=e.memoizedState;if(g!==null&&(f=g.dehydrated,f!==null)){if(s)t.flags&256?(za(t),t.flags&=-257,t=Xr(e,t,n)):t.memoizedState!==null?(ka(),t.child=e.child,t.flags|=128,t=null):(ka(),f=a.fallback,i=t.mode,a=Rc({mode:"visible",children:a.children},i),f=hl(f,i,n,null),f.flags|=2,a.return=t,f.return=t,a.sibling=f,t.child=a,Sl(t,e.child,null,n),a=t.child,a.memoizedState=Qr(n),a.childLanes=Gr(e,d,n),t.memoizedState=Yr,t=ss(null,a));else if(za(t),To(f)){if(d=f.nextSibling&&f.nextSibling.dataset,d)var _=d.dgst;d=_,a=Error(o(419)),a.stack="",a.digest=d,$i({value:a,source:null,stack:null}),t=Xr(e,t,n)}else if(yt||Wl(e,t,n,!1),d=(n&e.childLanes)!==0,yt||d){if(d=Ke,d!==null&&(a=Fa(d,n),a!==0&&a!==g.retryLane))throw g.retryLane=a,fl(e,a),Jt(d,e,a),Br;No(f)||Lc(),t=Xr(e,t,n)}else No(f)?(t.flags|=192,t.child=e.child,t=null):(e=g.treeContext,Ie=jn(f.nextSibling),kt=t,Re=!0,Ea=null,Sn=!1,e!==null&&Qd(t,e),t=Vr(t,a.children),t.flags|=4096);return t}return i?(ka(),f=a.fallback,i=t.mode,g=e.child,_=g.sibling,a=Pn(g,{mode:"hidden",children:a.children}),a.subtreeFlags=g.subtreeFlags&65011712,_!==null?f=Pn(_,f):(f=hl(f,i,n,null),f.flags|=2),f.return=t,a.return=t,a.sibling=f,t.child=a,ss(null,a),a=t.child,f=e.child.memoizedState,f===null?f=Qr(n):(i=f.cachePool,i!==null?(g=ht._currentValue,i=i.parent!==g?{parent:g,pool:g}:i):i=$d(),f={baseLanes:f.baseLanes|n,cachePool:i}),a.memoizedState=f,a.childLanes=Gr(e,d,n),t.memoizedState=Yr,ss(e.child,a)):(za(t),n=e.child,e=n.sibling,n=Pn(n,{mode:"visible",children:a.children}),n.return=t,n.sibling=null,e!==null&&(d=t.deletions,d===null?(t.deletions=[e],t.flags|=16):d.push(e)),t.child=n,t.memoizedState=null,n)}function Vr(e,t){return t=Rc({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Rc(e,t){return e=an(22,e,null,t),e.lanes=0,e}function Xr(e,t,n){return Sl(t,e.child,null,n),e=Vr(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function uh(e,t,n){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),sr(e.return,t,n)}function Zr(e,t,n,a,i,s){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:i,treeForkCount:s}:(d.isBackwards=t,d.rendering=null,d.renderingStartTime=0,d.last=a,d.tail=n,d.tailMode=i,d.treeForkCount=s)}function rh(e,t,n){var a=t.pendingProps,i=a.revealOrder,s=a.tail;a=a.children;var d=ot.current,f=(d&2)!==0;if(f?(d=d&1|2,t.flags|=128):d&=1,K(ot,d),Ut(e,t,a,n),a=Re?Ki:0,!f&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&uh(e,n,t);else if(e.tag===19)uh(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&bc(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Zr(t,!1,i,n,s,a);break;case"backwards":case"unstable_legacy-backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&bc(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Zr(t,!0,n,null,s,a);break;case"together":Zr(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function ia(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ha|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Wl(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,n=Pn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Pn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Kr(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&dc(e)))}function Mg(e,t,n){switch(t.tag){case 3:de(t,t.stateNode.containerInfo),Ma(t,ht,e.memoizedState.cache),ml();break;case 27:case 5:qe(t);break;case 4:de(t,t.stateNode.containerInfo);break;case 10:Ma(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,vr(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(za(t),t.flags|=128,null):(n&t.child.childLanes)!==0?ch(e,t,n):(za(t),e=ia(e,t,n),e!==null?e.sibling:null);za(t);break;case 19:var i=(e.flags&128)!==0;if(a=(n&t.childLanes)!==0,a||(Wl(e,t,n,!1),a=(n&t.childLanes)!==0),i){if(a)return rh(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),K(ot,ot.current),a)break;return null;case 22:return t.lanes=0,th(e,t,n,t.pendingProps);case 24:Ma(t,ht,e.memoizedState.cache)}return ia(e,t,n)}function oh(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)yt=!0;else{if(!Kr(e,n)&&(t.flags&128)===0)return yt=!1,Mg(e,t,n);yt=(e.flags&131072)!==0}else yt=!1,Re&&(t.flags&1048576)!==0&&Yd(t,Ki,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=vl(t.elementType),t.type=e,typeof e=="function")Wu(e)?(a=jl(e,a),t.tag=1,t=ih(null,t,e,a,n)):(t.tag=0,t=Lr(null,t,e,a,n));else{if(e!=null){var i=e.$$typeof;if(i===q){t.tag=11,t=Wf(null,t,e,a,n);break e}else if(i===he){t.tag=14,t=Pf(null,t,e,a,n);break e}}throw t=He(e)||e,Error(o(306,t,""))}}return t;case 0:return Lr(e,t,t.type,t.pendingProps,n);case 1:return a=t.type,i=jl(a,t.pendingProps),ih(e,t,a,i,n);case 3:e:{if(de(t,t.stateNode.containerInfo),e===null)throw Error(o(387));a=t.pendingProps;var s=t.memoizedState;i=s.element,hr(e,t),ts(t,a,null,n);var d=t.memoizedState;if(a=d.cache,Ma(t,ht,a),a!==s.cache&&cr(t,[ht],n,!0),es(),a=d.element,s.isDehydrated)if(s={element:a,isDehydrated:!1,cache:d.cache},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){t=sh(e,t,a,n);break e}else if(a!==i){i=pn(Error(o(424)),t),$i(i),t=sh(e,t,a,n);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,Ie=jn(e.firstChild),kt=t,Re=!0,Ea=null,Sn=!0,n=ef(t,null,a,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ml(),a===i){t=ia(e,t,n);break e}Ut(e,t,a,n)}t=t.child}return t;case 26:return _c(e,t),e===null?(n=xm(t.type,null,t.pendingProps,null))?t.memoizedState=n:Re||(n=t.type,e=t.pendingProps,a=Kc(me.current).createElement(n),a[Ct]=t,a[qt]=e,Ht(a,n,e),ft(a),t.stateNode=a):t.memoizedState=xm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return qe(t),e===null&&Re&&(a=t.stateNode=vm(t.type,t.pendingProps,me.current),kt=t,Sn=!0,i=Ie,Qa(t.type)?(Eo=i,Ie=jn(a.firstChild)):Ie=i),Ut(e,t,t.pendingProps.children,n),_c(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Re&&((i=a=Ie)&&(a=ip(a,t.type,t.pendingProps,Sn),a!==null?(t.stateNode=a,kt=t,Ie=jn(a.firstChild),Sn=!1,i=!0):i=!1),i||wa(t)),qe(t),i=t.type,s=t.pendingProps,d=e!==null?e.memoizedProps:null,a=s.children,jo(i,s)?a=null:d!==null&&jo(i,d)&&(t.flags|=32),t.memoizedState!==null&&(i=Sr(e,t,Sg,null,null,n),xs._currentValue=i),_c(e,t),Ut(e,t,a,n),t.child;case 6:return e===null&&Re&&((e=n=Ie)&&(n=sp(n,t.pendingProps,Sn),n!==null?(t.stateNode=n,kt=t,Ie=null,e=!0):e=!1),e||wa(t)),null;case 13:return ch(e,t,n);case 4:return de(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Sl(t,null,a,n):Ut(e,t,a,n),t.child;case 11:return Wf(e,t,t.type,t.pendingProps,n);case 7:return Ut(e,t,t.pendingProps,n),t.child;case 8:return Ut(e,t,t.pendingProps.children,n),t.child;case 12:return Ut(e,t,t.pendingProps.children,n),t.child;case 10:return a=t.pendingProps,Ma(t,t.type,a.value),Ut(e,t,a.children,n),t.child;case 9:return i=t.type._context,a=t.pendingProps.children,gl(t),i=Ot(i),a=a(i),t.flags|=1,Ut(e,t,a,n),t.child;case 14:return Pf(e,t,t.type,t.pendingProps,n);case 15:return eh(e,t,t.type,t.pendingProps,n);case 19:return rh(e,t,n);case 31:return wg(e,t,n);case 22:return th(e,t,n,t.pendingProps);case 24:return gl(t),a=Ot(ht),e===null?(i=or(),i===null&&(i=Ke,s=ur(),i.pooledCache=s,s.refCount++,s!==null&&(i.pooledCacheLanes|=n),i=s),t.memoizedState={parent:a,cache:i},fr(t),Ma(t,ht,i)):((e.lanes&n)!==0&&(hr(e,t),ts(t,null,null,n),es()),i=e.memoizedState,s=t.memoizedState,i.parent!==a?(i={parent:a,cache:a},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),Ma(t,ht,a)):(a=s.cache,Ma(t,ht,a),a!==i.cache&&cr(t,[ht],n,!0))),Ut(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function sa(e){e.flags|=4}function $r(e,t,n,a,i){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(Hh())e.flags|=8192;else throw bl=yc,dr}else e.flags&=-16777217}function dh(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Tm(t))if(Hh())e.flags|=8192;else throw bl=yc,dr}function Dc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?ma():536870912,e.lanes|=t,oi|=t)}function cs(e,t){if(!Re)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function We(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,a=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,a|=i.subtreeFlags&65011712,a|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,a|=i.subtreeFlags,a|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=a,e.childLanes=n,t}function _g(e,t,n){var a=t.pendingProps;switch(nr(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return We(t),null;case 1:return We(t),null;case 3:return n=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),na(ht),ge(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Il(t)?sa(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,lr())),We(t),null;case 26:var i=t.type,s=t.memoizedState;return e===null?(sa(t),s!==null?(We(t),dh(t,s)):(We(t),$r(t,i,null,a,n))):s?s!==e.memoizedState?(sa(t),We(t),dh(t,s)):(We(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&sa(t),We(t),$r(t,i,e,a,n)),null;case 27:if(Be(t),n=me.current,i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&sa(t);else{if(!a){if(t.stateNode===null)throw Error(o(166));return We(t),null}e=J.current,Il(t)?Gd(t):(e=vm(i,a,n),t.stateNode=e,sa(t))}return We(t),null;case 5:if(Be(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&sa(t);else{if(!a){if(t.stateNode===null)throw Error(o(166));return We(t),null}if(s=J.current,Il(t))Gd(t);else{var d=Kc(me.current);switch(s){case 1:s=d.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:s=d.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":s=d.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":s=d.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":s=d.createElement("div"),s.innerHTML="<script><\/script>",s=s.removeChild(s.firstChild);break;case"select":s=typeof a.is=="string"?d.createElement("select",{is:a.is}):d.createElement("select"),a.multiple?s.multiple=!0:a.size&&(s.size=a.size);break;default:s=typeof a.is=="string"?d.createElement(i,{is:a.is}):d.createElement(i)}}s[Ct]=t,s[qt]=a;e:for(d=t.child;d!==null;){if(d.tag===5||d.tag===6)s.appendChild(d.stateNode);else if(d.tag!==4&&d.tag!==27&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===t)break e;for(;d.sibling===null;){if(d.return===null||d.return===t)break e;d=d.return}d.sibling.return=d.return,d=d.sibling}t.stateNode=s;e:switch(Ht(s,i,a),i){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&sa(t)}}return We(t),$r(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&sa(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(o(166));if(e=me.current,Il(t)){if(e=t.stateNode,n=t.memoizedProps,a=null,i=kt,i!==null)switch(i.tag){case 27:case 5:a=i.memoizedProps}e[Ct]=t,e=!!(e.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||cm(e.nodeValue,n)),e||wa(t,!0)}else e=Kc(e).createTextNode(a),e[Ct]=t,t.stateNode=e}return We(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(a=Il(t),n!==null){if(e===null){if(!a)throw Error(o(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(557));e[Ct]=t}else ml(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;We(t),e=!1}else n=lr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(sn(t),t):(sn(t),null);if((t.flags&128)!==0)throw Error(o(558))}return We(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=Il(t),a!==null&&a.dehydrated!==null){if(e===null){if(!i)throw Error(o(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(o(317));i[Ct]=t}else ml(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;We(t),i=!1}else i=lr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(sn(t),t):(sn(t),null)}return sn(t),(t.flags&128)!==0?(t.lanes=n,t):(n=a!==null,e=e!==null&&e.memoizedState!==null,n&&(a=t.child,i=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(i=a.alternate.memoizedState.cachePool.pool),s=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(s=a.memoizedState.cachePool.pool),s!==i&&(a.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Dc(t,t.updateQueue),We(t),null);case 4:return ge(),e===null&&po(t.stateNode.containerInfo),We(t),null;case 10:return na(t.type),We(t),null;case 19:if(H(ot),a=t.memoizedState,a===null)return We(t),null;if(i=(t.flags&128)!==0,s=a.rendering,s===null)if(i)cs(a,!1);else{if(ut!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(s=bc(e),s!==null){for(t.flags|=128,cs(a,!1),e=s.updateQueue,t.updateQueue=e,Dc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)qd(n,e),n=n.sibling;return K(ot,ot.current&1|2),Re&&ea(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&st()>Hc&&(t.flags|=128,i=!0,cs(a,!1),t.lanes=4194304)}else{if(!i)if(e=bc(s),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Dc(t,e),cs(a,!0),a.tail===null&&a.tailMode==="hidden"&&!s.alternate&&!Re)return We(t),null}else 2*st()-a.renderingStartTime>Hc&&n!==536870912&&(t.flags|=128,i=!0,cs(a,!1),t.lanes=4194304);a.isBackwards?(s.sibling=t.child,t.child=s):(e=a.last,e!==null?e.sibling=s:t.child=s,a.last=s)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=st(),e.sibling=null,n=ot.current,K(ot,i?n&1|2:n&1),Re&&ea(t,a.treeForkCount),e):(We(t),null);case 22:case 23:return sn(t),pr(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(n&536870912)!==0&&(t.flags&128)===0&&(We(t),t.subtreeFlags&6&&(t.flags|=8192)):We(t),n=t.updateQueue,n!==null&&Dc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==n&&(t.flags|=2048),e!==null&&H(pl),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),na(ht),We(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function Rg(e,t){switch(nr(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return na(ht),ge(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Be(t),null;case 31:if(t.memoizedState!==null){if(sn(t),t.alternate===null)throw Error(o(340));ml()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(sn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));ml()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return H(ot),null;case 4:return ge(),null;case 10:return na(t.type),null;case 22:case 23:return sn(t),pr(),e!==null&&H(pl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return na(ht),null;case 25:return null;default:return null}}function fh(e,t){switch(nr(t),t.tag){case 3:na(ht),ge();break;case 26:case 27:case 5:Be(t);break;case 4:ge();break;case 31:t.memoizedState!==null&&sn(t);break;case 13:sn(t);break;case 19:H(ot);break;case 10:na(t.type);break;case 22:case 23:sn(t),pr(),e!==null&&H(pl);break;case 24:na(ht)}}function us(e,t){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var i=a.next;n=i;do{if((n.tag&e)===e){a=void 0;var s=n.create,d=n.inst;a=s(),d.destroy=a}n=n.next}while(n!==i)}}catch(f){Ye(t,t.return,f)}}function Oa(e,t,n){try{var a=t.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var s=i.next;a=s;do{if((a.tag&e)===e){var d=a.inst,f=d.destroy;if(f!==void 0){d.destroy=void 0,i=t;var g=n,_=f;try{_()}catch(U){Ye(i,g,U)}}}a=a.next}while(a!==s)}}catch(U){Ye(t,t.return,U)}}function hh(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{nf(t,n)}catch(a){Ye(e,e.return,a)}}}function mh(e,t,n){n.props=jl(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(a){Ye(e,t,a)}}function rs(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof n=="function"?e.refCleanup=n(a):n.current=a}}catch(i){Ye(e,t,i)}}function Gn(e,t){var n=e.ref,a=e.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(i){Ye(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(i){Ye(e,t,i)}else n.current=null}function yh(e){var t=e.type,n=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break e;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(i){Ye(e,e.return,i)}}function Jr(e,t,n){try{var a=e.stateNode;Pg(a,e.type,n,t),a[qt]=t}catch(i){Ye(e,e.return,i)}}function gh(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Qa(e.type)||e.tag===4}function Fr(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||gh(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Qa(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ir(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=wn));else if(a!==4&&(a===27&&Qa(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Ir(e,t,n),e=e.sibling;e!==null;)Ir(e,t,n),e=e.sibling}function zc(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(a!==4&&(a===27&&Qa(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(zc(e,t,n),e=e.sibling;e!==null;)zc(e,t,n),e=e.sibling}function ph(e){var t=e.stateNode,n=e.memoizedProps;try{for(var a=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Ht(t,a,n),t[Ct]=e,t[qt]=n}catch(s){Ye(e,e.return,s)}}var ca=!1,gt=!1,Wr=!1,vh=typeof WeakSet=="function"?WeakSet:Set,wt=null;function Dg(e,t){if(e=e.containerInfo,So=eu,e=Md(e),Xu(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var i=a.anchorOffset,s=a.focusNode;a=a.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var d=0,f=-1,g=-1,_=0,U=0,X=e,R=null;t:for(;;){for(var D;X!==n||i!==0&&X.nodeType!==3||(f=d+i),X!==s||a!==0&&X.nodeType!==3||(g=d+a),X.nodeType===3&&(d+=X.nodeValue.length),(D=X.firstChild)!==null;)R=X,X=D;for(;;){if(X===e)break t;if(R===n&&++_===i&&(f=d),R===s&&++U===a&&(g=d),(D=X.nextSibling)!==null)break;X=R,R=X.parentNode}X=D}n=f===-1||g===-1?null:{start:f,end:g}}else n=null}n=n||{start:0,end:0}}else n=null;for(xo={focusedElem:e,selectionRange:n},eu=!1,wt=t;wt!==null;)if(t=wt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,wt=e;else for(;wt!==null;){switch(t=wt,s=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)i=e[n],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&s!==null){e=void 0,n=t,i=s.memoizedProps,s=s.memoizedState,a=n.stateNode;try{var ne=jl(n.type,i);e=a.getSnapshotBeforeUpdate(ne,s),a.__reactInternalSnapshotBeforeUpdate=e}catch(fe){Ye(n,n.return,fe)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)Ao(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Ao(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(o(163))}if(e=t.sibling,e!==null){e.return=t.return,wt=e;break}wt=t.return}}function bh(e,t,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:ra(e,n),a&4&&us(5,n);break;case 1:if(ra(e,n),a&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(d){Ye(n,n.return,d)}else{var i=jl(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(d){Ye(n,n.return,d)}}a&64&&hh(n),a&512&&rs(n,n.return);break;case 3:if(ra(e,n),a&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{nf(e,t)}catch(d){Ye(n,n.return,d)}}break;case 27:t===null&&a&4&&ph(n);case 26:case 5:ra(e,n),t===null&&a&4&&yh(n),a&512&&rs(n,n.return);break;case 12:ra(e,n);break;case 31:ra(e,n),a&4&&jh(e,n);break;case 13:ra(e,n),a&4&&Ch(e,n),a&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Yg.bind(null,n),cp(e,n))));break;case 22:if(a=n.memoizedState!==null||ca,!a){t=t!==null&&t.memoizedState!==null||gt,i=ca;var s=gt;ca=a,(gt=t)&&!s?oa(e,n,(n.subtreeFlags&8772)!==0):ra(e,n),ca=i,gt=s}break;case 30:break;default:ra(e,n)}}function Sh(e){var t=e.alternate;t!==null&&(e.alternate=null,Sh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Rl(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var tt=null,Xt=!1;function ua(e,t,n){for(n=n.child;n!==null;)xh(e,t,n),n=n.sibling}function xh(e,t,n){if(O&&typeof O.onCommitFiberUnmount=="function")try{O.onCommitFiberUnmount(rt,n)}catch{}switch(n.tag){case 26:gt||Gn(n,t),ua(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:gt||Gn(n,t);var a=tt,i=Xt;Qa(n.type)&&(tt=n.stateNode,Xt=!1),ua(e,t,n),vs(n.stateNode),tt=a,Xt=i;break;case 5:gt||Gn(n,t);case 6:if(a=tt,i=Xt,tt=null,ua(e,t,n),tt=a,Xt=i,tt!==null)if(Xt)try{(tt.nodeType===9?tt.body:tt.nodeName==="HTML"?tt.ownerDocument.body:tt).removeChild(n.stateNode)}catch(s){Ye(n,t,s)}else try{tt.removeChild(n.stateNode)}catch(s){Ye(n,t,s)}break;case 18:tt!==null&&(Xt?(e=tt,hm(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),vi(e)):hm(tt,n.stateNode));break;case 4:a=tt,i=Xt,tt=n.stateNode.containerInfo,Xt=!0,ua(e,t,n),tt=a,Xt=i;break;case 0:case 11:case 14:case 15:Oa(2,n,t),gt||Oa(4,n,t),ua(e,t,n);break;case 1:gt||(Gn(n,t),a=n.stateNode,typeof a.componentWillUnmount=="function"&&mh(n,t,a)),ua(e,t,n);break;case 21:ua(e,t,n);break;case 22:gt=(a=gt)||n.memoizedState!==null,ua(e,t,n),gt=a;break;default:ua(e,t,n)}}function jh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{vi(e)}catch(n){Ye(t,t.return,n)}}}function Ch(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{vi(e)}catch(n){Ye(t,t.return,n)}}function zg(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new vh),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new vh),t;default:throw Error(o(435,e.tag))}}function kc(e,t){var n=zg(e);t.forEach(function(a){if(!n.has(a)){n.add(a);var i=Qg.bind(null,e,a);a.then(i,i)}})}function Zt(e,t){var n=t.deletions;if(n!==null)for(var a=0;a<n.length;a++){var i=n[a],s=e,d=t,f=d;e:for(;f!==null;){switch(f.tag){case 27:if(Qa(f.type)){tt=f.stateNode,Xt=!1;break e}break;case 5:tt=f.stateNode,Xt=!1;break e;case 3:case 4:tt=f.stateNode.containerInfo,Xt=!0;break e}f=f.return}if(tt===null)throw Error(o(160));xh(s,d,i),tt=null,Xt=!1,s=i.alternate,s!==null&&(s.return=null),i.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Ah(t,e),t=t.sibling}var kn=null;function Ah(e,t){var n=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Zt(t,e),Kt(e),a&4&&(Oa(3,e,e.return),us(3,e),Oa(5,e,e.return));break;case 1:Zt(t,e),Kt(e),a&512&&(gt||n===null||Gn(n,n.return)),a&64&&ca&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?a:n.concat(a))));break;case 26:var i=kn;if(Zt(t,e),Kt(e),a&512&&(gt||n===null||Gn(n,n.return)),a&4){var s=n!==null?n.memoizedState:null;if(a=e.memoizedState,n===null)if(a===null)if(e.stateNode===null){e:{a=e.type,n=e.memoizedProps,i=i.ownerDocument||i;t:switch(a){case"title":s=i.getElementsByTagName("title")[0],(!s||s[Ia]||s[Ct]||s.namespaceURI==="http://www.w3.org/2000/svg"||s.hasAttribute("itemprop"))&&(s=i.createElement(a),i.head.insertBefore(s,i.querySelector("head > title"))),Ht(s,a,n),s[Ct]=e,ft(s),a=s;break e;case"link":var d=Am("link","href",i).get(a+(n.href||""));if(d){for(var f=0;f<d.length;f++)if(s=d[f],s.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&s.getAttribute("rel")===(n.rel==null?null:n.rel)&&s.getAttribute("title")===(n.title==null?null:n.title)&&s.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){d.splice(f,1);break t}}s=i.createElement(a),Ht(s,a,n),i.head.appendChild(s);break;case"meta":if(d=Am("meta","content",i).get(a+(n.content||""))){for(f=0;f<d.length;f++)if(s=d[f],s.getAttribute("content")===(n.content==null?null:""+n.content)&&s.getAttribute("name")===(n.name==null?null:n.name)&&s.getAttribute("property")===(n.property==null?null:n.property)&&s.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&s.getAttribute("charset")===(n.charSet==null?null:n.charSet)){d.splice(f,1);break t}}s=i.createElement(a),Ht(s,a,n),i.head.appendChild(s);break;default:throw Error(o(468,a))}s[Ct]=e,ft(s),a=s}e.stateNode=a}else Nm(i,e.type,e.stateNode);else e.stateNode=Cm(i,a,e.memoizedProps);else s!==a?(s===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):s.count--,a===null?Nm(i,e.type,e.stateNode):Cm(i,a,e.memoizedProps)):a===null&&e.stateNode!==null&&Jr(e,e.memoizedProps,n.memoizedProps)}break;case 27:Zt(t,e),Kt(e),a&512&&(gt||n===null||Gn(n,n.return)),n!==null&&a&4&&Jr(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Zt(t,e),Kt(e),a&512&&(gt||n===null||Gn(n,n.return)),e.flags&32){i=e.stateNode;try{xa(i,"")}catch(ne){Ye(e,e.return,ne)}}a&4&&e.stateNode!=null&&(i=e.memoizedProps,Jr(e,i,n!==null?n.memoizedProps:i)),a&1024&&(Wr=!0);break;case 6:if(Zt(t,e),Kt(e),a&4){if(e.stateNode===null)throw Error(o(162));a=e.memoizedProps,n=e.stateNode;try{n.nodeValue=a}catch(ne){Ye(e,e.return,ne)}}break;case 3:if(Fc=null,i=kn,kn=$c(t.containerInfo),Zt(t,e),kn=i,Kt(e),a&4&&n!==null&&n.memoizedState.isDehydrated)try{vi(t.containerInfo)}catch(ne){Ye(e,e.return,ne)}Wr&&(Wr=!1,Nh(e));break;case 4:a=kn,kn=$c(e.stateNode.containerInfo),Zt(t,e),Kt(e),kn=a;break;case 12:Zt(t,e),Kt(e);break;case 31:Zt(t,e),Kt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,kc(e,a)));break;case 13:Zt(t,e),Kt(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Uc=st()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,kc(e,a)));break;case 22:i=e.memoizedState!==null;var g=n!==null&&n.memoizedState!==null,_=ca,U=gt;if(ca=_||i,gt=U||g,Zt(t,e),gt=U,ca=_,Kt(e),a&8192)e:for(t=e.stateNode,t._visibility=i?t._visibility&-2:t._visibility|1,i&&(n===null||g||ca||gt||Cl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){g=n=t;try{if(s=g.stateNode,i)d=s.style,typeof d.setProperty=="function"?d.setProperty("display","none","important"):d.display="none";else{f=g.stateNode;var X=g.memoizedProps.style,R=X!=null&&X.hasOwnProperty("display")?X.display:null;f.style.display=R==null||typeof R=="boolean"?"":(""+R).trim()}}catch(ne){Ye(g,g.return,ne)}}}else if(t.tag===6){if(n===null){g=t;try{g.stateNode.nodeValue=i?"":g.memoizedProps}catch(ne){Ye(g,g.return,ne)}}}else if(t.tag===18){if(n===null){g=t;try{var D=g.stateNode;i?mm(D,!0):mm(g.stateNode,!1)}catch(ne){Ye(g,g.return,ne)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(n=a.retryQueue,n!==null&&(a.retryQueue=null,kc(e,n))));break;case 19:Zt(t,e),Kt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,kc(e,a)));break;case 30:break;case 21:break;default:Zt(t,e),Kt(e)}}function Kt(e){var t=e.flags;if(t&2){try{for(var n,a=e.return;a!==null;){if(gh(a)){n=a;break}a=a.return}if(n==null)throw Error(o(160));switch(n.tag){case 27:var i=n.stateNode,s=Fr(e);zc(e,s,i);break;case 5:var d=n.stateNode;n.flags&32&&(xa(d,""),n.flags&=-33);var f=Fr(e);zc(e,f,d);break;case 3:case 4:var g=n.stateNode.containerInfo,_=Fr(e);Ir(e,_,g);break;default:throw Error(o(161))}}catch(U){Ye(e,e.return,U)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Nh(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Nh(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function ra(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)bh(e,t.alternate,t),t=t.sibling}function Cl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Oa(4,t,t.return),Cl(t);break;case 1:Gn(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&mh(t,t.return,n),Cl(t);break;case 27:vs(t.stateNode);case 26:case 5:Gn(t,t.return),Cl(t);break;case 22:t.memoizedState===null&&Cl(t);break;case 30:Cl(t);break;default:Cl(t)}e=e.sibling}}function oa(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,i=e,s=t,d=s.flags;switch(s.tag){case 0:case 11:case 15:oa(i,s,n),us(4,s);break;case 1:if(oa(i,s,n),a=s,i=a.stateNode,typeof i.componentDidMount=="function")try{i.componentDidMount()}catch(_){Ye(a,a.return,_)}if(a=s,i=a.updateQueue,i!==null){var f=a.stateNode;try{var g=i.shared.hiddenCallbacks;if(g!==null)for(i.shared.hiddenCallbacks=null,i=0;i<g.length;i++)tf(g[i],f)}catch(_){Ye(a,a.return,_)}}n&&d&64&&hh(s),rs(s,s.return);break;case 27:ph(s);case 26:case 5:oa(i,s,n),n&&a===null&&d&4&&yh(s),rs(s,s.return);break;case 12:oa(i,s,n);break;case 31:oa(i,s,n),n&&d&4&&jh(i,s);break;case 13:oa(i,s,n),n&&d&4&&Ch(i,s);break;case 22:s.memoizedState===null&&oa(i,s,n),rs(s,s.return);break;case 30:break;default:oa(i,s,n)}t=t.sibling}}function Pr(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Ji(n))}function eo(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ji(e))}function On(e,t,n,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Th(e,t,n,a),t=t.sibling}function Th(e,t,n,a){var i=t.flags;switch(t.tag){case 0:case 11:case 15:On(e,t,n,a),i&2048&&us(9,t);break;case 1:On(e,t,n,a);break;case 3:On(e,t,n,a),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ji(e)));break;case 12:if(i&2048){On(e,t,n,a),e=t.stateNode;try{var s=t.memoizedProps,d=s.id,f=s.onPostCommit;typeof f=="function"&&f(d,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(g){Ye(t,t.return,g)}}else On(e,t,n,a);break;case 31:On(e,t,n,a);break;case 13:On(e,t,n,a);break;case 23:break;case 22:s=t.stateNode,d=t.alternate,t.memoizedState!==null?s._visibility&2?On(e,t,n,a):os(e,t):s._visibility&2?On(e,t,n,a):(s._visibility|=2,ci(e,t,n,a,(t.subtreeFlags&10256)!==0||!1)),i&2048&&Pr(d,t);break;case 24:On(e,t,n,a),i&2048&&eo(t.alternate,t);break;default:On(e,t,n,a)}}function ci(e,t,n,a,i){for(i=i&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var s=e,d=t,f=n,g=a,_=d.flags;switch(d.tag){case 0:case 11:case 15:ci(s,d,f,g,i),us(8,d);break;case 23:break;case 22:var U=d.stateNode;d.memoizedState!==null?U._visibility&2?ci(s,d,f,g,i):os(s,d):(U._visibility|=2,ci(s,d,f,g,i)),i&&_&2048&&Pr(d.alternate,d);break;case 24:ci(s,d,f,g,i),i&&_&2048&&eo(d.alternate,d);break;default:ci(s,d,f,g,i)}t=t.sibling}}function os(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,a=t,i=a.flags;switch(a.tag){case 22:os(n,a),i&2048&&Pr(a.alternate,a);break;case 24:os(n,a),i&2048&&eo(a.alternate,a);break;default:os(n,a)}t=t.sibling}}var ds=8192;function ui(e,t,n){if(e.subtreeFlags&ds)for(e=e.child;e!==null;)Eh(e,t,n),e=e.sibling}function Eh(e,t,n){switch(e.tag){case 26:ui(e,t,n),e.flags&ds&&e.memoizedState!==null&&bp(n,kn,e.memoizedState,e.memoizedProps);break;case 5:ui(e,t,n);break;case 3:case 4:var a=kn;kn=$c(e.stateNode.containerInfo),ui(e,t,n),kn=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=ds,ds=16777216,ui(e,t,n),ds=a):ui(e,t,n));break;default:ui(e,t,n)}}function wh(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function fs(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];wt=a,_h(a,e)}wh(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Mh(e),e=e.sibling}function Mh(e){switch(e.tag){case 0:case 11:case 15:fs(e),e.flags&2048&&Oa(9,e,e.return);break;case 3:fs(e);break;case 12:fs(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Oc(e)):fs(e);break;default:fs(e)}}function Oc(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];wt=a,_h(a,e)}wh(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Oa(8,t,t.return),Oc(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Oc(t));break;default:Oc(t)}e=e.sibling}}function _h(e,t){for(;wt!==null;){var n=wt;switch(n.tag){case 0:case 11:case 15:Oa(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var a=n.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:Ji(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,wt=a;else e:for(n=e;wt!==null;){a=wt;var i=a.sibling,s=a.return;if(Sh(a),a===n){wt=null;break e}if(i!==null){i.return=s,wt=i;break e}wt=s}}}var kg={getCacheForType:function(e){var t=Ot(ht),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Ot(ht).controller.signal}},Og=typeof WeakMap=="function"?WeakMap:Map,Ue=0,Ke=null,Ae=null,we=0,Le=0,cn=null,Ua=!1,ri=!1,to=!1,da=0,ut=0,Ha=0,Al=0,no=0,un=0,oi=0,hs=null,$t=null,ao=!1,Uc=0,Rh=0,Hc=1/0,qc=null,qa=null,Nt=0,Ba=null,di=null,fa=0,lo=0,io=null,Dh=null,ms=0,so=null;function rn(){return(Ue&2)!==0&&we!==0?we&-we:C.T!==null?ho():mn()}function zh(){if(un===0)if((we&536870912)===0||Re){var e=Hn;Hn<<=1,(Hn&3932160)===0&&(Hn=262144),un=e}else un=536870912;return e=ln.current,e!==null&&(e.flags|=32),un}function Jt(e,t,n){(e===Ke&&(Le===2||Le===9)||e.cancelPendingCommit!==null)&&(fi(e,0),La(e,we,un,!1)),jt(e,n),((Ue&2)===0||e!==Ke)&&(e===Ke&&((Ue&2)===0&&(Al|=n),ut===4&&La(e,we,un,!1)),Vn(e))}function kh(e,t,n){if((Ue&6)!==0)throw Error(o(327));var a=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Et(e,t),i=a?qg(e,t):uo(e,t,!0),s=a;do{if(i===0){ri&&!a&&La(e,t,0,!1);break}else{if(n=e.current.alternate,s&&!Ug(n)){i=uo(e,t,!1),s=!1;continue}if(i===2){if(s=t,e.errorRecoveryDisabledLanes&s)var d=0;else d=e.pendingLanes&-536870913,d=d!==0?d:d&536870912?536870912:0;if(d!==0){t=d;e:{var f=e;i=hs;var g=f.current.memoizedState.isDehydrated;if(g&&(fi(f,d).flags|=256),d=uo(f,d,!1),d!==2){if(to&&!g){f.errorRecoveryDisabledLanes|=s,Al|=s,i=4;break e}s=$t,$t=i,s!==null&&($t===null?$t=s:$t.push.apply($t,s))}i=d}if(s=!1,i!==2)continue}}if(i===1){fi(e,0),La(e,t,0,!0);break}e:{switch(a=e,s=i,s){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t)break;case 6:La(a,t,un,!Ua);break e;case 2:$t=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(i=Uc+300-st(),10<i)){if(La(a,t,un,!Ua),_e(a,0,!0)!==0)break e;fa=t,a.timeoutHandle=dm(Oh.bind(null,a,n,$t,qc,ao,t,un,Al,oi,Ua,s,"Throttled",-0,0),i);break e}Oh(a,n,$t,qc,ao,t,un,Al,oi,Ua,s,null,-0,0)}}break}while(!0);Vn(e)}function Oh(e,t,n,a,i,s,d,f,g,_,U,X,R,D){if(e.timeoutHandle=-1,X=t.subtreeFlags,X&8192||(X&16785408)===16785408){X={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:wn},Eh(t,s,X);var ne=(s&62914560)===s?Uc-st():(s&4194048)===s?Rh-st():0;if(ne=Sp(X,ne),ne!==null){fa=s,e.cancelPendingCommit=ne(Gh.bind(null,e,t,s,n,a,i,d,f,g,U,X,null,R,D)),La(e,s,d,!_);return}}Gh(e,t,s,n,a,i,d,f,g)}function Ug(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var a=0;a<n.length;a++){var i=n[a],s=i.getSnapshot;i=i.value;try{if(!Ee(s(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function La(e,t,n,a){t&=~no,t&=~Al,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var i=t;0<i;){var s=31-pe(i),d=1<<s;a[s]=-1,i&=~d}n!==0&&ya(e,n,t)}function Bc(){return(Ue&6)===0?(ys(0),!1):!0}function co(){if(Ae!==null){if(Le===0)var e=Ae.return;else e=Ae,ta=yl=null,Cr(e),ni=null,Ii=0,e=Ae;for(;e!==null;)fh(e.alternate,e),e=e.return;Ae=null}}function fi(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,np(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),fa=0,co(),Ke=e,Ae=n=Pn(e.current,null),we=t,Le=0,cn=null,Ua=!1,ri=Et(e,t),to=!1,oi=un=no=Al=Ha=ut=0,$t=hs=null,ao=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var i=31-pe(a),s=1<<i;t|=e[i],a&=~s}return da=t,sc(),n}function Uh(e,t){Se=null,C.H=is,t===ti||t===mc?(t=Id(),Le=3):t===dr?(t=Id(),Le=4):Le=t===Br?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,cn=t,Ae===null&&(ut=1,wc(e,pn(t,e.current)))}function Hh(){var e=ln.current;return e===null?!0:(we&4194048)===we?xn===null:(we&62914560)===we||(we&536870912)!==0?e===xn:!1}function qh(){var e=C.H;return C.H=is,e===null?is:e}function Bh(){var e=C.A;return C.A=kg,e}function Lc(){ut=4,Ua||(we&4194048)!==we&&ln.current!==null||(ri=!0),(Ha&134217727)===0&&(Al&134217727)===0||Ke===null||La(Ke,we,un,!1)}function uo(e,t,n){var a=Ue;Ue|=2;var i=qh(),s=Bh();(Ke!==e||we!==t)&&(qc=null,fi(e,t)),t=!1;var d=ut;e:do try{if(Le!==0&&Ae!==null){var f=Ae,g=cn;switch(Le){case 8:co(),d=6;break e;case 3:case 2:case 9:case 6:ln.current===null&&(t=!0);var _=Le;if(Le=0,cn=null,hi(e,f,g,_),n&&ri){d=0;break e}break;default:_=Le,Le=0,cn=null,hi(e,f,g,_)}}Hg(),d=ut;break}catch(U){Uh(e,U)}while(!0);return t&&e.shellSuspendCounter++,ta=yl=null,Ue=a,C.H=i,C.A=s,Ae===null&&(Ke=null,we=0,sc()),d}function Hg(){for(;Ae!==null;)Lh(Ae)}function qg(e,t){var n=Ue;Ue|=2;var a=qh(),i=Bh();Ke!==e||we!==t?(qc=null,Hc=st()+500,fi(e,t)):ri=Et(e,t);e:do try{if(Le!==0&&Ae!==null){t=Ae;var s=cn;t:switch(Le){case 1:Le=0,cn=null,hi(e,t,s,1);break;case 2:case 9:if(Jd(s)){Le=0,cn=null,Yh(t);break}t=function(){Le!==2&&Le!==9||Ke!==e||(Le=7),Vn(e)},s.then(t,t);break e;case 3:Le=7;break e;case 4:Le=5;break e;case 7:Jd(s)?(Le=0,cn=null,Yh(t)):(Le=0,cn=null,hi(e,t,s,7));break;case 5:var d=null;switch(Ae.tag){case 26:d=Ae.memoizedState;case 5:case 27:var f=Ae;if(d?Tm(d):f.stateNode.complete){Le=0,cn=null;var g=f.sibling;if(g!==null)Ae=g;else{var _=f.return;_!==null?(Ae=_,Yc(_)):Ae=null}break t}}Le=0,cn=null,hi(e,t,s,5);break;case 6:Le=0,cn=null,hi(e,t,s,6);break;case 8:co(),ut=6;break e;default:throw Error(o(462))}}Bg();break}catch(U){Uh(e,U)}while(!0);return ta=yl=null,C.H=a,C.A=i,Ue=n,Ae!==null?0:(Ke=null,we=0,sc(),ut)}function Bg(){for(;Ae!==null&&!Yt();)Lh(Ae)}function Lh(e){var t=oh(e.alternate,e,da);e.memoizedProps=e.pendingProps,t===null?Yc(e):Ae=t}function Yh(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=lh(n,t,t.pendingProps,t.type,void 0,we);break;case 11:t=lh(n,t,t.pendingProps,t.type.render,t.ref,we);break;case 5:Cr(t);default:fh(n,t),t=Ae=qd(t,da),t=oh(n,t,da)}e.memoizedProps=e.pendingProps,t===null?Yc(e):Ae=t}function hi(e,t,n,a){ta=yl=null,Cr(t),ni=null,Ii=0;var i=t.return;try{if(Eg(e,i,t,n,we)){ut=1,wc(e,pn(n,e.current)),Ae=null;return}}catch(s){if(i!==null)throw Ae=i,s;ut=1,wc(e,pn(n,e.current)),Ae=null;return}t.flags&32768?(Re||a===1?e=!0:ri||(we&536870912)!==0?e=!1:(Ua=e=!0,(a===2||a===9||a===3||a===6)&&(a=ln.current,a!==null&&a.tag===13&&(a.flags|=16384))),Qh(t,e)):Yc(t)}function Yc(e){var t=e;do{if((t.flags&32768)!==0){Qh(t,Ua);return}e=t.return;var n=_g(t.alternate,t,da);if(n!==null){Ae=n;return}if(t=t.sibling,t!==null){Ae=t;return}Ae=t=e}while(t!==null);ut===0&&(ut=5)}function Qh(e,t){do{var n=Rg(e.alternate,e);if(n!==null){n.flags&=32767,Ae=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Ae=e;return}Ae=e=n}while(e!==null);ut=6,Ae=null}function Gh(e,t,n,a,i,s,d,f,g){e.cancelPendingCommit=null;do Qc();while(Nt!==0);if((Ue&6)!==0)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));if(s=t.lanes|t.childLanes,s|=Fu,Nn(e,n,s,d,f,g),e===Ke&&(Ae=Ke=null,we=0),di=t,Ba=e,fa=n,lo=s,io=i,Dh=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Gg(at,function(){return $h(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=C.T,C.T=null,i=k.p,k.p=2,d=Ue,Ue|=4;try{Dg(e,t,n)}finally{Ue=d,k.p=i,C.T=a}}Nt=1,Vh(),Xh(),Zh()}}function Vh(){if(Nt===1){Nt=0;var e=Ba,t=di,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=C.T,C.T=null;var a=k.p;k.p=2;var i=Ue;Ue|=4;try{Ah(t,e);var s=xo,d=Md(e.containerInfo),f=s.focusedElem,g=s.selectionRange;if(d!==f&&f&&f.ownerDocument&&wd(f.ownerDocument.documentElement,f)){if(g!==null&&Xu(f)){var _=g.start,U=g.end;if(U===void 0&&(U=_),"selectionStart"in f)f.selectionStart=_,f.selectionEnd=Math.min(U,f.value.length);else{var X=f.ownerDocument||document,R=X&&X.defaultView||window;if(R.getSelection){var D=R.getSelection(),ne=f.textContent.length,fe=Math.min(g.start,ne),Xe=g.end===void 0?fe:Math.min(g.end,ne);!D.extend&&fe>Xe&&(d=Xe,Xe=fe,fe=d);var A=Ed(f,fe),b=Ed(f,Xe);if(A&&b&&(D.rangeCount!==1||D.anchorNode!==A.node||D.anchorOffset!==A.offset||D.focusNode!==b.node||D.focusOffset!==b.offset)){var M=X.createRange();M.setStart(A.node,A.offset),D.removeAllRanges(),fe>Xe?(D.addRange(M),D.extend(b.node,b.offset)):(M.setEnd(b.node,b.offset),D.addRange(M))}}}}for(X=[],D=f;D=D.parentNode;)D.nodeType===1&&X.push({element:D,left:D.scrollLeft,top:D.scrollTop});for(typeof f.focus=="function"&&f.focus(),f=0;f<X.length;f++){var B=X[f];B.element.scrollLeft=B.left,B.element.scrollTop=B.top}}eu=!!So,xo=So=null}finally{Ue=i,k.p=a,C.T=n}}e.current=t,Nt=2}}function Xh(){if(Nt===2){Nt=0;var e=Ba,t=di,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=C.T,C.T=null;var a=k.p;k.p=2;var i=Ue;Ue|=4;try{bh(e,t.alternate,t)}finally{Ue=i,k.p=a,C.T=n}}Nt=3}}function Zh(){if(Nt===4||Nt===3){Nt=0,dn();var e=Ba,t=di,n=fa,a=Dh;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Nt=5:(Nt=0,di=Ba=null,Kh(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(qa=null),Ai(n),t=t.stateNode,O&&typeof O.onCommitFiberRoot=="function")try{O.onCommitFiberRoot(rt,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=C.T,i=k.p,k.p=2,C.T=null;try{for(var s=e.onRecoverableError,d=0;d<a.length;d++){var f=a[d];s(f.value,{componentStack:f.stack})}}finally{C.T=t,k.p=i}}(fa&3)!==0&&Qc(),Vn(e),i=e.pendingLanes,(n&261930)!==0&&(i&42)!==0?e===so?ms++:(ms=0,so=e):ms=0,ys(0)}}function Kh(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Ji(t)))}function Qc(){return Vh(),Xh(),Zh(),$h()}function $h(){if(Nt!==5)return!1;var e=Ba,t=lo;lo=0;var n=Ai(fa),a=C.T,i=k.p;try{k.p=32>n?32:n,C.T=null,n=io,io=null;var s=Ba,d=fa;if(Nt=0,di=Ba=null,fa=0,(Ue&6)!==0)throw Error(o(331));var f=Ue;if(Ue|=4,Mh(s.current),Th(s,s.current,d,n),Ue=f,ys(0,!1),O&&typeof O.onPostCommitFiberRoot=="function")try{O.onPostCommitFiberRoot(rt,s)}catch{}return!0}finally{k.p=i,C.T=a,Kh(e,t)}}function Jh(e,t,n){t=pn(n,t),t=qr(e.stateNode,t,2),e=Da(e,t,2),e!==null&&(jt(e,2),Vn(e))}function Ye(e,t,n){if(e.tag===3)Jh(e,e,n);else for(;t!==null;){if(t.tag===3){Jh(t,e,n);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(qa===null||!qa.has(a))){e=pn(n,e),n=Ff(2),a=Da(t,n,2),a!==null&&(If(n,a,t,e),jt(a,2),Vn(a));break}}t=t.return}}function ro(e,t,n){var a=e.pingCache;if(a===null){a=e.pingCache=new Og;var i=new Set;a.set(t,i)}else i=a.get(t),i===void 0&&(i=new Set,a.set(t,i));i.has(n)||(to=!0,i.add(n),e=Lg.bind(null,e,t,n),t.then(e,e))}function Lg(e,t,n){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Ke===e&&(we&n)===n&&(ut===4||ut===3&&(we&62914560)===we&&300>st()-Uc?(Ue&2)===0&&fi(e,0):no|=n,oi===we&&(oi=0)),Vn(e)}function Fh(e,t){t===0&&(t=ma()),e=fl(e,t),e!==null&&(jt(e,t),Vn(e))}function Yg(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Fh(e,n)}function Qg(e,t){var n=0;switch(e.tag){case 31:case 13:var a=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(o(314))}a!==null&&a.delete(t),Fh(e,n)}function Gg(e,t){return Tt(e,t)}var Gc=null,mi=null,oo=!1,Vc=!1,fo=!1,Ya=0;function Vn(e){e!==mi&&e.next===null&&(mi===null?Gc=mi=e:mi=mi.next=e),Vc=!0,oo||(oo=!0,Xg())}function ys(e,t){if(!fo&&Vc){fo=!0;do for(var n=!1,a=Gc;a!==null;){if(e!==0){var i=a.pendingLanes;if(i===0)var s=0;else{var d=a.suspendedLanes,f=a.pingedLanes;s=(1<<31-pe(42|e)+1)-1,s&=i&~(d&~f),s=s&201326741?s&201326741|1:s?s|2:0}s!==0&&(n=!0,em(a,s))}else s=we,s=_e(a,a===Ke?s:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(s&3)===0||Et(a,s)||(n=!0,em(a,s));a=a.next}while(n);fo=!1}}function Vg(){Ih()}function Ih(){Vc=oo=!1;var e=0;Ya!==0&&tp()&&(e=Ya);for(var t=st(),n=null,a=Gc;a!==null;){var i=a.next,s=Wh(a,t);s===0?(a.next=null,n===null?Gc=i:n.next=i,i===null&&(mi=n)):(n=a,(e!==0||(s&3)!==0)&&(Vc=!0)),a=i}Nt!==0&&Nt!==5||ys(e),Ya!==0&&(Ya=0)}function Wh(e,t){for(var n=e.suspendedLanes,a=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes&-62914561;0<s;){var d=31-pe(s),f=1<<d,g=i[d];g===-1?((f&n)===0||(f&a)!==0)&&(i[d]=xt(f,t)):g<=t&&(e.expiredLanes|=f),s&=~f}if(t=Ke,n=we,n=_e(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,n===0||e===t&&(Le===2||Le===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&Rt(a),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Et(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(a!==null&&Rt(a),Ai(n)){case 2:case 8:n=Dt;break;case 32:n=at;break;case 268435456:n=An;break;default:n=at}return a=Ph.bind(null,e),n=Tt(n,a),e.callbackPriority=t,e.callbackNode=n,t}return a!==null&&a!==null&&Rt(a),e.callbackPriority=2,e.callbackNode=null,2}function Ph(e,t){if(Nt!==0&&Nt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Qc()&&e.callbackNode!==n)return null;var a=we;return a=_e(e,e===Ke?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(kh(e,a,t),Wh(e,st()),e.callbackNode!=null&&e.callbackNode===n?Ph.bind(null,e):null)}function em(e,t){if(Qc())return null;kh(e,t,!0)}function Xg(){ap(function(){(Ue&6)!==0?Tt(nt,Vg):Ih()})}function ho(){if(Ya===0){var e=Pl;e===0&&(e=Qt,Qt<<=1,(Qt&261888)===0&&(Qt=256)),Ya=e}return Ya}function tm(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:el(""+e)}function nm(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function Zg(e,t,n,a,i){if(t==="submit"&&n&&n.stateNode===i){var s=tm((i[qt]||null).action),d=a.submitter;d&&(t=(t=d[qt]||null)?tm(t.formAction):d.getAttribute("formAction"),t!==null&&(s=t,d=null));var f=new ql("action","action",null,a,i);e.push({event:f,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Ya!==0){var g=d?nm(i,d):new FormData(i);Dr(n,{pending:!0,data:g,method:i.method,action:s},null,g)}}else typeof s=="function"&&(f.preventDefault(),g=d?nm(i,d):new FormData(i),Dr(n,{pending:!0,data:g,method:i.method,action:s},s,g))},currentTarget:i}]})}}for(var mo=0;mo<Ju.length;mo++){var yo=Ju[mo],Kg=yo.toLowerCase(),$g=yo[0].toUpperCase()+yo.slice(1);zn(Kg,"on"+$g)}zn(Dd,"onAnimationEnd"),zn(zd,"onAnimationIteration"),zn(kd,"onAnimationStart"),zn("dblclick","onDoubleClick"),zn("focusin","onFocus"),zn("focusout","onBlur"),zn(og,"onTransitionRun"),zn(dg,"onTransitionStart"),zn(fg,"onTransitionCancel"),zn(Od,"onTransitionEnd"),va("onMouseEnter",["mouseout","mouseover"]),va("onMouseLeave",["mouseout","mouseover"]),va("onPointerEnter",["pointerout","pointerover"]),va("onPointerLeave",["pointerout","pointerover"]),$n("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),$n("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),$n("onBeforeInput",["compositionend","keypress","textInput","paste"]),$n("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),$n("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),$n("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var gs="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(" "),Jg=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(gs));function am(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var a=e[n],i=a.event;a=a.listeners;e:{var s=void 0;if(t)for(var d=a.length-1;0<=d;d--){var f=a[d],g=f.instance,_=f.currentTarget;if(f=f.listener,g!==s&&i.isPropagationStopped())break e;s=f,i.currentTarget=_;try{s(i)}catch(U){ic(U)}i.currentTarget=null,s=g}else for(d=0;d<a.length;d++){if(f=a[d],g=f.instance,_=f.currentTarget,f=f.listener,g!==s&&i.isPropagationStopped())break e;s=f,i.currentTarget=_;try{s(i)}catch(U){ic(U)}i.currentTarget=null,s=g}}}}function Ne(e,t){var n=t[_l];n===void 0&&(n=t[_l]=new Set);var a=e+"__bubble";n.has(a)||(lm(t,e,2,!1),n.add(a))}function go(e,t,n){var a=0;t&&(a|=4),lm(n,e,a,t)}var Xc="_reactListening"+Math.random().toString(36).slice(2);function po(e){if(!e[Xc]){e[Xc]=!0,Hs.forEach(function(n){n!=="selectionchange"&&(Jg.has(n)||go(n,!1,e),go(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Xc]||(t[Xc]=!0,go("selectionchange",!1,t))}}function lm(e,t,n,a){switch(zm(t)){case 2:var i=Cp;break;case 8:i=Ap;break;default:i=Do}n=i.bind(null,t,n,e),i=void 0,!ki||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),a?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function vo(e,t,n,a,i){var s=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var d=a.tag;if(d===3||d===4){var f=a.stateNode.containerInfo;if(f===i)break;if(d===4)for(d=a.return;d!==null;){var g=d.tag;if((g===3||g===4)&&d.stateNode.containerInfo===i)return;d=d.return}for(;f!==null;){if(d=ga(f),d===null)return;if(g=d.tag,g===5||g===6||g===26||g===27){a=s=d;continue e}f=f.parentNode}}a=a.return}Gs(function(){var _=s,U=ja(n),X=[];e:{var R=Ud.get(e);if(R!==void 0){var D=ql,ne=e;switch(e){case"keypress":if(Hl(n)===0)break e;case"keydown":case"keyup":D=Gl;break;case"focusin":ne="focus",D=Yl;break;case"focusout":ne="blur",D=Yl;break;case"beforeblur":case"afterblur":D=Yl;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":D=Li;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":D=Bl;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":D=zu;break;case Dd:case zd:case kd:D=Rn;break;case Od:D=Ou;break;case"scroll":case"scrollend":D=Hi;break;case"wheel":D=Hu;break;case"copy":case"cut":case"paste":D=Wn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":D=il;break;case"toggle":case"beforetoggle":D=Bu}var fe=(t&4)!==0,Xe=!fe&&(e==="scroll"||e==="scrollend"),A=fe?R!==null?R+"Capture":null:R;fe=[];for(var b=_,M;b!==null;){var B=b;if(M=B.stateNode,B=B.tag,B!==5&&B!==26&&B!==27||M===null||A===null||(B=Na(b,A),B!=null&&fe.push(ps(b,B,M))),Xe)break;b=b.return}0<fe.length&&(R=new D(R,ne,null,n,U),X.push({event:R,listeners:fe}))}}if((t&7)===0){e:{if(R=e==="mouseover"||e==="pointerover",D=e==="mouseout"||e==="pointerout",R&&n!==Di&&(ne=n.relatedTarget||n.fromElement)&&(ga(ne)||ne[Zn]))break e;if((D||R)&&(R=U.window===U?U:(R=U.ownerDocument)?R.defaultView||R.parentWindow:window,D?(ne=n.relatedTarget||n.toElement,D=_,ne=ne?ga(ne):null,ne!==null&&(Xe=m(ne),fe=ne.tag,ne!==Xe||fe!==5&&fe!==27&&fe!==6)&&(ne=null)):(D=null,ne=_),D!==ne)){if(fe=Li,B="onMouseLeave",A="onMouseEnter",b="mouse",(e==="pointerout"||e==="pointerover")&&(fe=il,B="onPointerLeave",A="onPointerEnter",b="pointer"),Xe=D==null?R:Wa(D),M=ne==null?R:Wa(ne),R=new fe(B,b+"leave",D,n,U),R.target=Xe,R.relatedTarget=M,B=null,ga(U)===_&&(fe=new fe(A,b+"enter",ne,n,U),fe.target=M,fe.relatedTarget=Xe,B=fe),Xe=B,D&&ne)t:{for(fe=Fg,A=D,b=ne,M=0,B=A;B;B=fe(B))M++;B=0;for(var ie=b;ie;ie=fe(ie))B++;for(;0<M-B;)A=fe(A),M--;for(;0<B-M;)b=fe(b),B--;for(;M--;){if(A===b||b!==null&&A===b.alternate){fe=A;break t}A=fe(A),b=fe(b)}fe=null}else fe=null;D!==null&&im(X,R,D,fe,!1),ne!==null&&Xe!==null&&im(X,Xe,ne,fe,!0)}}e:{if(R=_?Wa(_):window,D=R.nodeName&&R.nodeName.toLowerCase(),D==="select"||D==="input"&&R.type==="file")var ze=tc;else if(Ps(R))if(nc)ze=re;else{ze=Q;var ae=N}else D=R.nodeName,!D||D.toLowerCase()!=="input"||R.type!=="checkbox"&&R.type!=="radio"?_&&Ol(_.elementType)&&(ze=tc):ze=I;if(ze&&(ze=ze(e,_))){ec(X,ze,n,U);break e}ae&&ae(e,R,_),e==="focusout"&&_&&R.type==="number"&&_.memoizedProps.value!=null&&wi(R,"number",R.value)}switch(ae=_?Wa(_):window,e){case"focusin":(Ps(ae)||ae.contentEditable==="true")&&(Xl=ae,Zu=_,Zi=null);break;case"focusout":Zi=Zu=Xl=null;break;case"mousedown":Ku=!0;break;case"contextmenu":case"mouseup":case"dragend":Ku=!1,_d(X,n,U);break;case"selectionchange":if(rg)break;case"keydown":case"keyup":_d(X,n,U)}var xe;if(Gi)e:{switch(e){case"compositionstart":var Me="onCompositionStart";break e;case"compositionend":Me="onCompositionEnd";break e;case"compositionupdate":Me="onCompositionUpdate";break e}Me=void 0}else Ln?Fs(e,n)&&(Me="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(Me="onCompositionStart");Me&&(Ks&&n.locale!=="ko"&&(Ln||Me!=="onCompositionStart"?Me==="onCompositionEnd"&&Ln&&(xe=_n()):(Bn=U,Oi="value"in Bn?Bn.value:Bn.textContent,Ln=!0)),ae=Zc(_,Me),0<ae.length&&(Me=new ll(Me,e,null,n,U),X.push({event:Me,listeners:ae}),xe?Me.data=xe:(xe=Is(n),xe!==null&&(Me.data=xe)))),(xe=Yu?Qu(e,n):Ws(e,n))&&(Me=Zc(_,"onBeforeInput"),0<Me.length&&(ae=new ll("onBeforeInput","beforeinput",null,n,U),X.push({event:ae,listeners:Me}),ae.data=xe)),Zg(X,e,_,n,U)}am(X,t)})}function ps(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Zc(e,t){for(var n=t+"Capture",a=[];e!==null;){var i=e,s=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||s===null||(i=Na(e,n),i!=null&&a.unshift(ps(e,i,s)),i=Na(e,t),i!=null&&a.push(ps(e,i,s))),e.tag===3)return a;e=e.return}return[]}function Fg(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function im(e,t,n,a,i){for(var s=t._reactName,d=[];n!==null&&n!==a;){var f=n,g=f.alternate,_=f.stateNode;if(f=f.tag,g!==null&&g===a)break;f!==5&&f!==26&&f!==27||_===null||(g=_,i?(_=Na(n,s),_!=null&&d.unshift(ps(n,_,g))):i||(_=Na(n,s),_!=null&&d.push(ps(n,_,g)))),n=n.return}d.length!==0&&e.push({event:t,listeners:d})}var Ig=/\r\n?/g,Wg=/\u0000|\uFFFD/g;function sm(e){return(typeof e=="string"?e:""+e).replace(Ig,`
|
|
10
|
-
`).replace(Wg,"")}function cm(e,t){return t=sm(t),sm(e)===t}function Ve(e,t,n,a,i,s){switch(n){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||xa(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&xa(e,""+a);break;case"className":Sa(e,"class",a);break;case"tabIndex":Sa(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Sa(e,n,a);break;case"style":Ri(e,a,s);break;case"data":if(t!=="object"){Sa(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=el(""+a),e.setAttribute(n,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(n,"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 s=="function"&&(n==="formAction"?(t!=="input"&&Ve(e,t,"name",i.name,i,null),Ve(e,t,"formEncType",i.formEncType,i,null),Ve(e,t,"formMethod",i.formMethod,i,null),Ve(e,t,"formTarget",i.formTarget,i,null)):(Ve(e,t,"encType",i.encType,i,null),Ve(e,t,"method",i.method,i,null),Ve(e,t,"target",i.target,i,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=el(""+a),e.setAttribute(n,a);break;case"onClick":a!=null&&(e.onclick=wn);break;case"onScroll":a!=null&&Ne("scroll",e);break;case"onScrollEnd":a!=null&&Ne("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(n=a.__html,n!=null){if(i.children!=null)throw Error(o(60));e.innerHTML=n}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}n=el(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""+a):e.removeAttribute(n);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":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":a===!0?e.setAttribute(n,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,a):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(n,a):e.removeAttribute(n);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(n):e.setAttribute(n,a);break;case"popover":Ne("beforetoggle",e),Ne("toggle",e),zl(e,"popover",a);break;case"xlinkActuate":En(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":En(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":En(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":En(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":En(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":En(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":En(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":En(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":En(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":zl(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=Eu.get(n)||n,zl(e,n,a))}}function bo(e,t,n,a,i,s){switch(n){case"style":Ri(e,a,s);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(n=a.__html,n!=null){if(i.children!=null)throw Error(o(60));e.innerHTML=n}}break;case"children":typeof a=="string"?xa(e,a):(typeof a=="number"||typeof a=="bigint")&&xa(e,""+a);break;case"onScroll":a!=null&&Ne("scroll",e);break;case"onScrollEnd":a!=null&&Ne("scrollend",e);break;case"onClick":a!=null&&(e.onclick=wn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!qs.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(i=n.endsWith("Capture"),t=n.slice(2,i?n.length-7:void 0),s=e[qt]||null,s=s!=null?s[n]:null,typeof s=="function"&&e.removeEventListener(t,s,i),typeof a=="function")){typeof s!="function"&&s!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,a,i);break e}n in e?e[n]=a:a===!0?e.setAttribute(n,""):zl(e,n,a)}}}function Ht(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ne("error",e),Ne("load",e);var a=!1,i=!1,s;for(s in n)if(n.hasOwnProperty(s)){var d=n[s];if(d!=null)switch(s){case"src":a=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Ve(e,t,s,d,n,null)}}i&&Ve(e,t,"srcSet",n.srcSet,n,null),a&&Ve(e,t,"src",n.src,n,null);return;case"input":Ne("invalid",e);var f=s=d=i=null,g=null,_=null;for(a in n)if(n.hasOwnProperty(a)){var U=n[a];if(U!=null)switch(a){case"name":i=U;break;case"type":d=U;break;case"checked":g=U;break;case"defaultChecked":_=U;break;case"value":s=U;break;case"defaultValue":f=U;break;case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(o(137,t));break;default:Ve(e,t,a,U,n,null)}}kl(e,s,f,g,_,d,i,!1);return;case"select":Ne("invalid",e),a=d=s=null;for(i in n)if(n.hasOwnProperty(i)&&(f=n[i],f!=null))switch(i){case"value":s=f;break;case"defaultValue":d=f;break;case"multiple":a=f;default:Ve(e,t,i,f,n,null)}t=s,n=d,e.multiple=!!a,t!=null?tn(e,!!a,t,!1):n!=null&&tn(e,!!a,n,!0);return;case"textarea":Ne("invalid",e),s=i=a=null;for(d in n)if(n.hasOwnProperty(d)&&(f=n[d],f!=null))switch(d){case"value":a=f;break;case"defaultValue":i=f;break;case"children":s=f;break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(o(91));break;default:Ve(e,t,d,f,n,null)}_i(e,a,i,s);return;case"option":for(g in n)n.hasOwnProperty(g)&&(a=n[g],a!=null)&&(g==="selected"?e.selected=a&&typeof a!="function"&&typeof a!="symbol":Ve(e,t,g,a,n,null));return;case"dialog":Ne("beforetoggle",e),Ne("toggle",e),Ne("cancel",e),Ne("close",e);break;case"iframe":case"object":Ne("load",e);break;case"video":case"audio":for(a=0;a<gs.length;a++)Ne(gs[a],e);break;case"image":Ne("error",e),Ne("load",e);break;case"details":Ne("toggle",e);break;case"embed":case"source":case"link":Ne("error",e),Ne("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(_ in n)if(n.hasOwnProperty(_)&&(a=n[_],a!=null))switch(_){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Ve(e,t,_,a,n,null)}return;default:if(Ol(t)){for(U in n)n.hasOwnProperty(U)&&(a=n[U],a!==void 0&&bo(e,t,U,a,n,void 0));return}}for(f in n)n.hasOwnProperty(f)&&(a=n[f],a!=null&&Ve(e,t,f,a,n,null))}function Pg(e,t,n,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,s=null,d=null,f=null,g=null,_=null,U=null;for(D in n){var X=n[D];if(n.hasOwnProperty(D)&&X!=null)switch(D){case"checked":break;case"value":break;case"defaultValue":g=X;default:a.hasOwnProperty(D)||Ve(e,t,D,null,a,X)}}for(var R in a){var D=a[R];if(X=n[R],a.hasOwnProperty(R)&&(D!=null||X!=null))switch(R){case"type":s=D;break;case"name":i=D;break;case"checked":_=D;break;case"defaultChecked":U=D;break;case"value":d=D;break;case"defaultValue":f=D;break;case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(o(137,t));break;default:D!==X&&Ve(e,t,R,D,a,X)}}Jn(e,d,f,g,_,U,s,i);return;case"select":D=d=f=R=null;for(s in n)if(g=n[s],n.hasOwnProperty(s)&&g!=null)switch(s){case"value":break;case"multiple":D=g;default:a.hasOwnProperty(s)||Ve(e,t,s,null,a,g)}for(i in a)if(s=a[i],g=n[i],a.hasOwnProperty(i)&&(s!=null||g!=null))switch(i){case"value":R=s;break;case"defaultValue":f=s;break;case"multiple":d=s;default:s!==g&&Ve(e,t,i,s,a,g)}t=f,n=d,a=D,R!=null?tn(e,!!n,R,!1):!!a!=!!n&&(t!=null?tn(e,!!n,t,!0):tn(e,!!n,n?[]:"",!1));return;case"textarea":D=R=null;for(f in n)if(i=n[f],n.hasOwnProperty(f)&&i!=null&&!a.hasOwnProperty(f))switch(f){case"value":break;case"children":break;default:Ve(e,t,f,null,a,i)}for(d in a)if(i=a[d],s=n[d],a.hasOwnProperty(d)&&(i!=null||s!=null))switch(d){case"value":R=i;break;case"defaultValue":D=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(o(91));break;default:i!==s&&Ve(e,t,d,i,a,s)}Mi(e,R,D);return;case"option":for(var ne in n)R=n[ne],n.hasOwnProperty(ne)&&R!=null&&!a.hasOwnProperty(ne)&&(ne==="selected"?e.selected=!1:Ve(e,t,ne,null,a,R));for(g in a)R=a[g],D=n[g],a.hasOwnProperty(g)&&R!==D&&(R!=null||D!=null)&&(g==="selected"?e.selected=R&&typeof R!="function"&&typeof R!="symbol":Ve(e,t,g,R,a,D));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 fe in n)R=n[fe],n.hasOwnProperty(fe)&&R!=null&&!a.hasOwnProperty(fe)&&Ve(e,t,fe,null,a,R);for(_ in a)if(R=a[_],D=n[_],a.hasOwnProperty(_)&&R!==D&&(R!=null||D!=null))switch(_){case"children":case"dangerouslySetInnerHTML":if(R!=null)throw Error(o(137,t));break;default:Ve(e,t,_,R,a,D)}return;default:if(Ol(t)){for(var Xe in n)R=n[Xe],n.hasOwnProperty(Xe)&&R!==void 0&&!a.hasOwnProperty(Xe)&&bo(e,t,Xe,void 0,a,R);for(U in a)R=a[U],D=n[U],!a.hasOwnProperty(U)||R===D||R===void 0&&D===void 0||bo(e,t,U,R,a,D);return}}for(var A in n)R=n[A],n.hasOwnProperty(A)&&R!=null&&!a.hasOwnProperty(A)&&Ve(e,t,A,null,a,R);for(X in a)R=a[X],D=n[X],!a.hasOwnProperty(X)||R===D||R==null&&D==null||Ve(e,t,X,R,a,D)}function um(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function ep(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),a=0;a<n.length;a++){var i=n[a],s=i.transferSize,d=i.initiatorType,f=i.duration;if(s&&f&&um(d)){for(d=0,f=i.responseEnd,a+=1;a<n.length;a++){var g=n[a],_=g.startTime;if(_>f)break;var U=g.transferSize,X=g.initiatorType;U&&um(X)&&(g=g.responseEnd,d+=U*(g<f?1:(f-_)/(g-_)))}if(--a,t+=8*(s+d)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var So=null,xo=null;function Kc(e){return e.nodeType===9?e:e.ownerDocument}function rm(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function om(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function jo(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Co=null;function tp(){var e=window.event;return e&&e.type==="popstate"?e===Co?!1:(Co=e,!0):(Co=null,!1)}var dm=typeof setTimeout=="function"?setTimeout:void 0,np=typeof clearTimeout=="function"?clearTimeout:void 0,fm=typeof Promise=="function"?Promise:void 0,ap=typeof queueMicrotask=="function"?queueMicrotask:typeof fm<"u"?function(e){return fm.resolve(null).then(e).catch(lp)}:dm;function lp(e){setTimeout(function(){throw e})}function Qa(e){return e==="head"}function hm(e,t){var n=t,a=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"||n==="/&"){if(a===0){e.removeChild(i),vi(t);return}a--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")a++;else if(n==="html")vs(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,vs(n);for(var s=n.firstChild;s;){var d=s.nextSibling,f=s.nodeName;s[Ia]||f==="SCRIPT"||f==="STYLE"||f==="LINK"&&s.rel.toLowerCase()==="stylesheet"||n.removeChild(s),s=d}}else n==="body"&&vs(e.ownerDocument.body);n=i}while(n);vi(t)}function mm(e,t){var n=e;e=0;do{var a=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),a&&a.nodeType===8)if(n=a.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=a}while(n)}function Ao(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Ao(n),Rl(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function ip(e,t,n,a){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[Ia])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(s=e.getAttribute("rel"),s==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(s!==i.rel||e.getAttribute("href")!==(i.href==null||i.href===""?null:i.href)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute("title")!==(i.title==null?null:i.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(s=e.getAttribute("src"),(s!==(i.src==null?null:i.src)||e.getAttribute("type")!==(i.type==null?null:i.type)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin))&&s&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var s=i.name==null?null:""+i.name;if(i.type==="hidden"&&e.getAttribute("name")===s)return e}else return e;if(e=jn(e.nextSibling),e===null)break}return null}function sp(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=jn(e.nextSibling),e===null))return null;return e}function ym(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=jn(e.nextSibling),e===null))return null;return e}function No(e){return e.data==="$?"||e.data==="$~"}function To(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function cp(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var a=function(){t(),n.removeEventListener("DOMContentLoaded",a)};n.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function jn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Eo=null;function gm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return jn(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function pm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function vm(e,t,n){switch(t=Kc(n),e){case"html":if(e=t.documentElement,!e)throw Error(o(452));return e;case"head":if(e=t.head,!e)throw Error(o(453));return e;case"body":if(e=t.body,!e)throw Error(o(454));return e;default:throw Error(o(451))}}function vs(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Rl(e)}var Cn=new Map,bm=new Set;function $c(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ha=k.d;k.d={f:up,r:rp,D:op,C:dp,L:fp,m:hp,X:yp,S:mp,M:gp};function up(){var e=ha.f(),t=Bc();return e||t}function rp(e){var t=pa(e);t!==null&&t.tag===5&&t.type==="form"?Uf(t):ha.r(e)}var yi=typeof document>"u"?null:document;function Sm(e,t,n){var a=yi;if(a&&typeof t=="string"&&t){var i=At(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof n=="string"&&(i+='[crossorigin="'+n+'"]'),bm.has(i)||(bm.add(i),e={rel:e,crossOrigin:n,href:t},a.querySelector(i)===null&&(t=a.createElement("link"),Ht(t,"link",e),ft(t),a.head.appendChild(t)))}}function op(e){ha.D(e),Sm("dns-prefetch",e,null)}function dp(e,t){ha.C(e,t),Sm("preconnect",e,t)}function fp(e,t,n){ha.L(e,t,n);var a=yi;if(a&&e&&t){var i='link[rel="preload"][as="'+At(t)+'"]';t==="image"&&n&&n.imageSrcSet?(i+='[imagesrcset="'+At(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(i+='[imagesizes="'+At(n.imageSizes)+'"]')):i+='[href="'+At(e)+'"]';var s=i;switch(t){case"style":s=gi(e);break;case"script":s=pi(e)}Cn.has(s)||(e=z({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Cn.set(s,e),a.querySelector(i)!==null||t==="style"&&a.querySelector(bs(s))||t==="script"&&a.querySelector(Ss(s))||(t=a.createElement("link"),Ht(t,"link",e),ft(t),a.head.appendChild(t)))}}function hp(e,t){ha.m(e,t);var n=yi;if(n&&e){var a=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+At(a)+'"][href="'+At(e)+'"]',s=i;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":s=pi(e)}if(!Cn.has(s)&&(e=z({rel:"modulepreload",href:e},t),Cn.set(s,e),n.querySelector(i)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Ss(s)))return}a=n.createElement("link"),Ht(a,"link",e),ft(a),n.head.appendChild(a)}}}function mp(e,t,n){ha.S(e,t,n);var a=yi;if(a&&e){var i=Kn(a).hoistableStyles,s=gi(e);t=t||"default";var d=i.get(s);if(!d){var f={loading:0,preload:null};if(d=a.querySelector(bs(s)))f.loading=5;else{e=z({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Cn.get(s))&&wo(e,n);var g=d=a.createElement("link");ft(g),Ht(g,"link",e),g._p=new Promise(function(_,U){g.onload=_,g.onerror=U}),g.addEventListener("load",function(){f.loading|=1}),g.addEventListener("error",function(){f.loading|=2}),f.loading|=4,Jc(d,t,a)}d={type:"stylesheet",instance:d,count:1,state:f},i.set(s,d)}}}function yp(e,t){ha.X(e,t);var n=yi;if(n&&e){var a=Kn(n).hoistableScripts,i=pi(e),s=a.get(i);s||(s=n.querySelector(Ss(i)),s||(e=z({src:e,async:!0},t),(t=Cn.get(i))&&Mo(e,t),s=n.createElement("script"),ft(s),Ht(s,"link",e),n.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},a.set(i,s))}}function gp(e,t){ha.M(e,t);var n=yi;if(n&&e){var a=Kn(n).hoistableScripts,i=pi(e),s=a.get(i);s||(s=n.querySelector(Ss(i)),s||(e=z({src:e,async:!0,type:"module"},t),(t=Cn.get(i))&&Mo(e,t),s=n.createElement("script"),ft(s),Ht(s,"link",e),n.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},a.set(i,s))}}function xm(e,t,n,a){var i=(i=me.current)?$c(i):null;if(!i)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=gi(n.href),n=Kn(i).hoistableStyles,a=n.get(t),a||(a={type:"style",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=gi(n.href);var s=Kn(i).hoistableStyles,d=s.get(e);if(d||(i=i.ownerDocument||i,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},s.set(e,d),(s=i.querySelector(bs(e)))&&!s._p&&(d.instance=s,d.state.loading=5),Cn.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Cn.set(e,n),s||pp(i,e,n,d.state))),t&&a===null)throw Error(o(528,""));return d}if(t&&a!==null)throw Error(o(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=pi(n),n=Kn(i).hoistableScripts,a=n.get(t),a||(a={type:"script",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,e))}}function gi(e){return'href="'+At(e)+'"'}function bs(e){return'link[rel="stylesheet"]['+e+"]"}function jm(e){return z({},e,{"data-precedence":e.precedence,precedence:null})}function pp(e,t,n,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),Ht(t,"link",n),ft(t),e.head.appendChild(t))}function pi(e){return'[src="'+At(e)+'"]'}function Ss(e){return"script[async]"+e}function Cm(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+At(n.href)+'"]');if(a)return t.instance=a,ft(a),a;var i=z({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),ft(a),Ht(a,"style",i),Jc(a,n.precedence,e),t.instance=a;case"stylesheet":i=gi(n.href);var s=e.querySelector(bs(i));if(s)return t.state.loading|=4,t.instance=s,ft(s),s;a=jm(n),(i=Cn.get(i))&&wo(a,i),s=(e.ownerDocument||e).createElement("link"),ft(s);var d=s;return d._p=new Promise(function(f,g){d.onload=f,d.onerror=g}),Ht(s,"link",a),t.state.loading|=4,Jc(s,n.precedence,e),t.instance=s;case"script":return s=pi(n.src),(i=e.querySelector(Ss(s)))?(t.instance=i,ft(i),i):(a=n,(i=Cn.get(s))&&(a=z({},n),Mo(a,i)),e=e.ownerDocument||e,i=e.createElement("script"),ft(i),Ht(i,"link",a),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(o(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,Jc(a,n.precedence,e));return t.instance}function Jc(e,t,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=a.length?a[a.length-1]:null,s=i,d=0;d<a.length;d++){var f=a[d];if(f.dataset.precedence===t)s=f;else if(s!==i)break}s?s.parentNode.insertBefore(e,s.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function wo(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Mo(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Fc=null;function Am(e,t,n){if(Fc===null){var a=new Map,i=Fc=new Map;i.set(n,a)}else i=Fc,a=i.get(n),a||(a=new Map,i.set(n,a));if(a.has(e))return a;for(a.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var s=n[i];if(!(s[Ia]||s[Ct]||e==="link"&&s.getAttribute("rel")==="stylesheet")&&s.namespaceURI!=="http://www.w3.org/2000/svg"){var d=s.getAttribute(t)||"";d=e+d;var f=a.get(d);f?f.push(s):a.set(d,[s])}}return a}function Nm(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function vp(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!0;case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Tm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function bp(e,t,n,a){if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var i=gi(a.href),s=t.querySelector(bs(i));if(s){t=s._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Ic.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=s,ft(s);return}s=t.ownerDocument||t,a=jm(a),(i=Cn.get(i))&&wo(a,i),s=s.createElement("link"),ft(s);var d=s;d._p=new Promise(function(f,g){d.onload=f,d.onerror=g}),Ht(s,"link",a),n.instance=s}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=Ic.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var _o=0;function Sp(e,t){return e.stylesheets&&e.count===0&&Pc(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var a=setTimeout(function(){if(e.stylesheets&&Pc(e,e.stylesheets),e.unsuspend){var s=e.unsuspend;e.unsuspend=null,s()}},6e4+t);0<e.imgBytes&&_o===0&&(_o=62500*ep());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Pc(e,e.stylesheets),e.unsuspend)){var s=e.unsuspend;e.unsuspend=null,s()}},(e.imgBytes>_o?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(i)}}:null}function Ic(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Pc(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Wc=null;function Pc(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Wc=new Map,t.forEach(xp,e),Wc=null,Ic.call(e))}function xp(e,t){if(!(t.state.loading&4)){var n=Wc.get(e);if(n)var a=n.get(null);else{n=new Map,Wc.set(e,n);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),s=0;s<i.length;s++){var d=i[s];(d.nodeName==="LINK"||d.getAttribute("media")!=="not all")&&(n.set(d.dataset.precedence,d),a=d)}a&&n.set(null,a)}i=t.instance,d=i.getAttribute("data-precedence"),s=n.get(d)||a,s===a&&n.set(null,i),n.set(d,i),this.count++,a=Ic.bind(this),i.addEventListener("load",a),i.addEventListener("error",a),s?s.parentNode.insertBefore(i,s.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var xs={$$typeof:Z,Provider:null,Consumer:null,_currentValue:$,_currentValue2:$,_threadCount:0};function jp(e,t,n,a,i,s,d,f,g){this.tag=1,this.containerInfo=e,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=Gt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Gt(0),this.hiddenUpdates=Gt(null),this.identifierPrefix=a,this.onUncaughtError=i,this.onCaughtError=s,this.onRecoverableError=d,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=g,this.incompleteTransitions=new Map}function Em(e,t,n,a,i,s,d,f,g,_,U,X){return e=new jp(e,t,n,d,g,_,U,X,f),t=1,s===!0&&(t|=24),s=an(3,null,null,t),e.current=s,s.stateNode=e,t=ur(),t.refCount++,e.pooledCache=t,t.refCount++,s.memoizedState={element:a,isDehydrated:n,cache:t},fr(s),e}function wm(e){return e?(e=$l,e):$l}function Mm(e,t,n,a,i,s){i=wm(i),a.context===null?a.context=i:a.pendingContext=i,a=Ra(t),a.payload={element:n},s=s===void 0?null:s,s!==null&&(a.callback=s),n=Da(e,a,t),n!==null&&(Jt(n,e,t),Pi(n,e,t))}function _m(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Ro(e,t){_m(e,t),(e=e.alternate)&&_m(e,t)}function Rm(e){if(e.tag===13||e.tag===31){var t=fl(e,67108864);t!==null&&Jt(t,e,67108864),Ro(e,67108864)}}function Dm(e){if(e.tag===13||e.tag===31){var t=rn();t=Ci(t);var n=fl(e,t);n!==null&&Jt(n,e,t),Ro(e,t)}}var eu=!0;function Cp(e,t,n,a){var i=C.T;C.T=null;var s=k.p;try{k.p=2,Do(e,t,n,a)}finally{k.p=s,C.T=i}}function Ap(e,t,n,a){var i=C.T;C.T=null;var s=k.p;try{k.p=8,Do(e,t,n,a)}finally{k.p=s,C.T=i}}function Do(e,t,n,a){if(eu){var i=zo(a);if(i===null)vo(e,t,a,tu,n),km(e,a);else if(Tp(i,e,t,n,a))a.stopPropagation();else if(km(e,a),t&4&&-1<Np.indexOf(e)){for(;i!==null;){var s=pa(i);if(s!==null)switch(s.tag){case 3:if(s=s.stateNode,s.current.memoizedState.isDehydrated){var d=ye(s.pendingLanes);if(d!==0){var f=s;for(f.pendingLanes|=2,f.entangledLanes|=2;d;){var g=1<<31-pe(d);f.entanglements[1]|=g,d&=~g}Vn(s),(Ue&6)===0&&(Hc=st()+500,ys(0))}}break;case 31:case 13:f=fl(s,2),f!==null&&Jt(f,s,2),Bc(),Ro(s,2)}if(s=zo(a),s===null&&vo(e,t,a,tu,n),s===i)break;i=s}i!==null&&a.stopPropagation()}else vo(e,t,a,null,n)}}function zo(e){return e=ja(e),ko(e)}var tu=null;function ko(e){if(tu=null,e=ga(e),e!==null){var t=m(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=p(t),e!==null)return e;e=null}else if(n===31){if(e=j(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return tu=e,null}function zm(e){switch(e){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(Pe()){case nt:return 2;case Dt:return 8;case at:case Pt:return 32;case An:return 268435456;default:return 32}default:return 32}}var Oo=!1,Ga=null,Va=null,Xa=null,js=new Map,Cs=new Map,Za=[],Np="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 km(e,t){switch(e){case"focusin":case"focusout":Ga=null;break;case"dragenter":case"dragleave":Va=null;break;case"mouseover":case"mouseout":Xa=null;break;case"pointerover":case"pointerout":js.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Cs.delete(t.pointerId)}}function As(e,t,n,a,i,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:a,nativeEvent:s,targetContainers:[i]},t!==null&&(t=pa(t),t!==null&&Rm(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Tp(e,t,n,a,i){switch(t){case"focusin":return Ga=As(Ga,e,t,n,a,i),!0;case"dragenter":return Va=As(Va,e,t,n,a,i),!0;case"mouseover":return Xa=As(Xa,e,t,n,a,i),!0;case"pointerover":var s=i.pointerId;return js.set(s,As(js.get(s)||null,e,t,n,a,i)),!0;case"gotpointercapture":return s=i.pointerId,Cs.set(s,As(Cs.get(s)||null,e,t,n,a,i)),!0}return!1}function Om(e){var t=ga(e.target);if(t!==null){var n=m(t);if(n!==null){if(t=n.tag,t===13){if(t=p(n),t!==null){e.blockedOn=t,Ni(e.priority,function(){Dm(n)});return}}else if(t===31){if(t=j(n),t!==null){e.blockedOn=t,Ni(e.priority,function(){Dm(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function nu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=zo(e.nativeEvent);if(n===null){n=e.nativeEvent;var a=new n.constructor(n.type,n);Di=a,n.target.dispatchEvent(a),Di=null}else return t=pa(n),t!==null&&Rm(t),e.blockedOn=n,!1;t.shift()}return!0}function Um(e,t,n){nu(e)&&n.delete(t)}function Ep(){Oo=!1,Ga!==null&&nu(Ga)&&(Ga=null),Va!==null&&nu(Va)&&(Va=null),Xa!==null&&nu(Xa)&&(Xa=null),js.forEach(Um),Cs.forEach(Um)}function au(e,t){e.blockedOn===t&&(e.blockedOn=null,Oo||(Oo=!0,l.unstable_scheduleCallback(l.unstable_NormalPriority,Ep)))}var lu=null;function Hm(e){lu!==e&&(lu=e,l.unstable_scheduleCallback(l.unstable_NormalPriority,function(){lu===e&&(lu=null);for(var t=0;t<e.length;t+=3){var n=e[t],a=e[t+1],i=e[t+2];if(typeof a!="function"){if(ko(a||n)===null)continue;break}var s=pa(n);s!==null&&(e.splice(t,3),t-=3,Dr(s,{pending:!0,data:i,method:n.method,action:a},a,i))}}))}function vi(e){function t(g){return au(g,e)}Ga!==null&&au(Ga,e),Va!==null&&au(Va,e),Xa!==null&&au(Xa,e),js.forEach(t),Cs.forEach(t);for(var n=0;n<Za.length;n++){var a=Za[n];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Za.length&&(n=Za[0],n.blockedOn===null);)Om(n),n.blockedOn===null&&Za.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var i=n[a],s=n[a+1],d=i[qt]||null;if(typeof s=="function")d||Hm(n);else if(d){var f=null;if(s&&s.hasAttribute("formAction")){if(i=s,d=s[qt]||null)f=d.formAction;else if(ko(i)!==null)continue}else f=d.action;typeof f=="function"?n[a+1]=f:(n.splice(a,3),a-=3),Hm(n)}}}function qm(){function e(s){s.canIntercept&&s.info==="react-transition"&&s.intercept({handler:function(){return new Promise(function(d){return i=d})},focusReset:"manual",scroll:"manual"})}function t(){i!==null&&(i(),i=null),a||setTimeout(n,20)}function n(){if(!a&&!navigation.transition){var s=navigation.currentEntry;s&&s.url!=null&&navigation.navigate(s.url,{state:s.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,i=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),i!==null&&(i(),i=null)}}}function Uo(e){this._internalRoot=e}iu.prototype.render=Uo.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var n=t.current,a=rn();Mm(n,a,e,t,null,null)},iu.prototype.unmount=Uo.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Mm(e.current,2,null,e,null,null),Bc(),t[Zn]=null}};function iu(e){this._internalRoot=e}iu.prototype.unstable_scheduleHydration=function(e){if(e){var t=mn();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Za.length&&t!==0&&t<Za[n].priority;n++);Za.splice(n,0,e),n===0&&Om(e)}};var Bm=u.version;if(Bm!=="19.2.7")throw Error(o(527,Bm,"19.2.7"));k.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=x(t),e=e!==null?V(e):null,e=e===null?null:e.stateNode,e};var wp={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:C,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var su=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!su.isDisabled&&su.supportsFiber)try{rt=su.inject(wp),O=su}catch{}}return Ts.createRoot=function(e,t){if(!h(e))throw Error(o(299));var n=!1,a="",i=Zf,s=Kf,d=$f;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(d=t.onRecoverableError)),t=Em(e,1,!1,null,null,n,a,null,i,s,d,qm),e[Zn]=t.current,po(e),new Uo(t)},Ts.hydrateRoot=function(e,t,n){if(!h(e))throw Error(o(299));var a=!1,i="",s=Zf,d=Kf,f=$f,g=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onUncaughtError!==void 0&&(s=n.onUncaughtError),n.onCaughtError!==void 0&&(d=n.onCaughtError),n.onRecoverableError!==void 0&&(f=n.onRecoverableError),n.formState!==void 0&&(g=n.formState)),t=Em(e,1,!0,t,n??null,a,i,g,s,d,f,qm),t.context=wm(null),n=t.current,a=rn(),a=Ci(a),i=Ra(a),i.callback=null,Da(n,i,a),n=a,t.current.lanes=n,jt(t,n),Vn(t),e[Zn]=t.current,po(e),new iu(t)},Ts.version="19.2.7",Ts}var Jm;function qp(){if(Jm)return Bo.exports;Jm=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(u){console.error(u)}}return l(),Bo.exports=Hp(),Bo.exports}var Bp=qp();const Lp=l=>l.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Yp=l=>l.replace(/^([A-Z])|[\s-_]+(\w)/g,(u,r,o)=>o?o.toUpperCase():r.toLowerCase()),Fm=l=>{const u=Yp(l);return u.charAt(0).toUpperCase()+u.slice(1)},Ty=(...l)=>l.filter((u,r,o)=>!!u&&u.trim()!==""&&o.indexOf(u)===r).join(" ").trim(),Qp=l=>{for(const u in l)if(u.startsWith("aria-")||u==="role"||u==="title")return!0};var Gp={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 Vp=y.forwardRef(({color:l="currentColor",size:u=24,strokeWidth:r=2,absoluteStrokeWidth:o,className:h="",children:m,iconNode:p,...j},S)=>y.createElement("svg",{ref:S,...Gp,width:u,height:u,stroke:l,strokeWidth:o?Number(r)*24/Number(u):r,className:Ty("lucide",h),...!m&&!Qp(j)&&{"aria-hidden":"true"},...j},[...p.map(([x,V])=>y.createElement(x,V)),...Array.isArray(m)?m:[m]]));const le=(l,u)=>{const r=y.forwardRef(({className:o,...h},m)=>y.createElement(Vp,{ref:m,iconNode:u,className:Ty(`lucide-${Lp(Fm(l))}`,`lucide-${l}`,o),...h}));return r.displayName=Fm(l),r};const Xp=[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h2",key:"tvwodi"}],["path",{d:"M20 8v11a2 2 0 0 1-2 2h-2",key:"1gkqxj"}],["path",{d:"m9 15 3-3 3 3",key:"1pd0qc"}],["path",{d:"M12 12v9",key:"192myk"}]],Zp=le("archive-restore",Xp);const Kp=[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]],od=le("archive",Kp);const $p=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],Jp=le("arrow-down",$p);const Fp=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],Ip=le("arrow-up",Fp);const Wp=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],Pp=le("bell",Wp);const e0=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],t0=le("bot",e0);const n0=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],wl=le("check",n0);const a0=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],l0=le("chevron-right",a0);const i0=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],s0=le("chevron-up",i0);const c0=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]],u0=le("circle-dot",c0);const r0=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}]],o0=le("clipboard",r0);const d0=[["path",{d:"M12 6v6h4",key:"135r8i"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],dd=le("clock-3",d0);const f0=[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]],h0=le("code-xml",f0);const m0=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],xi=le("copy",m0);const y0=[["path",{d:"M20 4v7a4 4 0 0 1-4 4H4",key:"6o5b7l"}],["path",{d:"m9 10-5 5 5 5",key:"1kshq7"}]],Im=le("corner-down-left",y0);const g0=[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]],Go=le("cpu",g0);const p0=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],Si=le("download",p0);const v0=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],b0=le("ellipsis",v0);const S0=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],fd=le("external-link",S0);const x0=[["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"}]],j0=le("eye",x0);const C0=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],hd=le("file-text",C0);const A0=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],Tl=le("folder-open",A0);const N0=[["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"M9 13h6",key:"1uhe8q"}],["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],T0=le("folder-plus",N0);const E0=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],hu=le("folder",E0);const w0=[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]],M0=le("funnel",w0);const _0=[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]],Xn=le("gauge",_0);const R0=[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M13 6h3a2 2 0 0 1 2 2v7",key:"1yeb86"}],["path",{d:"M11 18H8a2 2 0 0 1-2-2V9",key:"19pyzm"}]],Ey=le("git-compare",R0);const D0=[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M6 21V9a9 9 0 0 0 9 9",key:"7kw0sc"}]],z0=le("git-merge",D0);const k0=[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]],O0=le("hash",k0);const U0=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],H0=le("image",U0);const q0=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],B0=le("info",q0);const L0=[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]],md=le("key-round",L0);const Y0=[["path",{d:"M10 8h.01",key:"1r9ogq"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M14 8h.01",key:"1primd"}],["path",{d:"M16 12h.01",key:"1l6xoz"}],["path",{d:"M18 8h.01",key:"emo2bl"}],["path",{d:"M6 8h.01",key:"x9i8wu"}],["path",{d:"M7 16h10",key:"wp8him"}],["path",{d:"M8 12h.01",key:"czm47f"}],["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}]],Q0=le("keyboard",Y0);const G0=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Wo=le("loader-circle",G0);const V0=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]],X0=le("message-circle",V0);const Z0=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],K0=le("monitor",Z0);const $0=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],wy=le("panel-left",$0);const J0=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}]],Wm=le("panel-right",J0);const F0=[["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551",key:"1miecu"}]],yd=le("paperclip",F0);const I0=[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z",key:"1nkz8b"}]],gd=le("pin",I0);const W0=[["path",{d:"M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z",key:"goz73y"}],["path",{d:"m2 22 3-3",key:"19mgm9"}],["path",{d:"M7.5 13.5 10 11",key:"7xgeeb"}],["path",{d:"M10.5 16.5 13 14",key:"10btkg"}],["path",{d:"m18 3-4 4h6l-4 4",key:"16psg9"}]],My=le("plug-zap",W0);const P0=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Po=le("plus",P0);const ev=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],zs=le("refresh-cw",ev);const tv=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],nv=le("rotate-ccw",tv);const av=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],lv=le("save",av);const iv=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],pd=le("search",iv);const sv=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],cv=le("settings",sv);const uv=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],vu=le("shield-check",uv);const rv=[["path",{d:"M10 5H3",key:"1qgfaw"}],["path",{d:"M12 19H3",key:"yhmn1j"}],["path",{d:"M14 3v4",key:"1sua03"}],["path",{d:"M16 17v4",key:"1q0r14"}],["path",{d:"M21 12h-9",key:"1o4lsq"}],["path",{d:"M21 19h-5",key:"1rlt1p"}],["path",{d:"M21 5h-7",key:"1oszz2"}],["path",{d:"M8 10v4",key:"tgpxqk"}],["path",{d:"M8 12H3",key:"a7s4jb"}]],_y=le("sliders-horizontal",rv);const ov=[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]],dv=le("smartphone",ov);const fv=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],hv=le("sparkles",fv);const mv=[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]],ed=le("square-terminal",mv);const yv=[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]],gv=le("tag",yv);const pv=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],vd=le("terminal",pv);const vv=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],Ry=le("trash-2",vv);const bv=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],Sv=le("upload",bv);const xv=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]],jv=le("wrench",xv);const Cv=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Ft=le("x",Cv);const Av=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],_s=le("zap",Av);function Dy(l){if(!l||typeof l!="object"||Array.isArray(l))return;const u=l;return typeof u.lastActivityAt=="string"&&typeof u.sessionId=="string"?{lastActivityAt:u.lastActivityAt,sessionId:u.sessionId}:void 0}const on=".",td="normal",Nv=80,Tv=1600,zy="vibelet.web.notificationSettings",Ev="pending_local_",$a={enabled:!1,approvals:!0,questions:!0,replies:!0,hiddenOnly:!0};function mu(l){return!!l&&typeof l=="object"&&!Array.isArray(l)}function bu(l,u=Date.now()){if(!l)return"unknown";const r=Date.parse(l);if(!Number.isFinite(r))return l;const o=u-r,h=60*1e3,m=60*h,p=24*m;return o<h?"now":o<m?`${Math.floor(o/h)}m ago`:o<p?`${Math.floor(o/m)}h ago`:`${Math.floor(o/p)}d ago`}function ky(l){if(!Number.isFinite(l))return"unknown";const u=l??0;return u<1024?`${u} B`:u<1024*1024?`${(u/1024).toFixed(1)} KB`:`${(u/(1024*1024)).toFixed(1)} MB`}function Un(l){return l.customTitle||l.title||l.sessionId.slice(0,10)}function bd(l,u){const r=l[l.length-1];return r?.role==="assistant"&&r.type!=="info"?[...l.slice(0,-1),{...r,content:`${r.content}${u}`}]:[...l,{role:"assistant",content:u,timestamp:new Date().toISOString()}]}function Oy(l){const u=l;return{sessions:Array.isArray(u.sessions)?u.sessions:[],nextCursor:Dy(u.nextCursor),inventoryVersion:u.inventoryVersion,inventoryBackfillInFlight:u.inventoryBackfillInFlight,folderCounts:u.folderCounts}}function wv(l){const u=l;return typeof u.sessionId=="string"?u.sessionId:null}function Mv(l){const u=l;return typeof u.path=="string"?u.path:null}function El(l){return l.split("/").filter(Boolean).at(-1)??l}function Uy(l){return Object.entries(l).length===0?"No structured input.":JSON.stringify(l,null,2)}function nd(l){return Object.fromEntries(l.questions.map(u=>[u.id,u.options[0]?[u.options[0].label]:[]]))}function Vo(l){return l.trim()||void 0}function Pm(l){if(l==="7d")return Date.now()-7*864e5;if(l==="30d")return Date.now()-30*864e5;if(l==="90d")return Date.now()-90*864e5}function cu(l,u){const r=new Map;for(const o of l)r.set(o.sessionId,o);for(const o of u)r.set(o.sessionId,{...r.get(o.sessionId),...o});return Array.from(r.values()).sort((o,h)=>{const m=o.pinned?o.pinnedAt??0:0,p=h.pinned?h.pinnedAt??0:0;return m!==p?p-m:Date.parse(h.lastActivityAt)-Date.parse(o.lastActivityAt)})}let Xo=0;function _v(l=Date.now()){return Xo=(Xo+1)%1e4,`${Ev}${l}_${Xo}`}function Rv(l){const u=l.now??new Date().toISOString();return{sessionId:l.sessionId,agent:l.agent,cwd:l.cwd||on,...l.model?{model:l.model}:{},...l.effort?{effort:l.effort}:{},fastMode:l.fastMode??!1,...l.title?{title:l.title}:{},createdAt:u,lastActivityAt:u,sources:["daemon"],runtime:{state:"daemonActive",confidence:"high",resumeMode:"reuseDriver"},managed:!0,approvalMode:l.approvalMode}}function Dv(l,u,r=new Date().toISOString()){return{...l,sessionId:u,lastActivityAt:r}}function Zo(l,u,r){if(!u||!r||u===r||!Object.hasOwn(l,u))return l;const{[u]:o,...h}=l;return{...h,[r]:o}}function ey(l,u,r){if(!u||!r||u===r||!l.has(u))return l;const o=new Set(l);return o.delete(u),o.add(r),o}function zv(l){const u=new Map;for(const r of l){const o=r.cwd||on;u.set(o,[...u.get(o)??[],r])}return Array.from(u.entries()).map(([r,o])=>({folder:r,sessions:o}))}function yu(l,u){const r=l.replace(/\\/g,"/").replace(/\/+$/,"");return!r||r==="."?u:`${r}/${u}`}function gu(l){const u=l.replace(/\\/g,"/").replace(/\/+$/,"");if(!u||u==="/"||u==="~"||u===".")return null;const r=u.lastIndexOf("/");return r<0?".":r===0?"/":u.slice(0,r)}function kv(l,u){return u.startsWith("text/")||u.includes("json")||u.includes("xml")||u.includes("javascript")?!0:/\.(md|txt|json|ya?ml|toml|csv|log|ts|tsx|js|jsx|css|html|xml|py|rb|go|rs|java|kt|swift|sh|zsh|bash)$/i.test(l)}function Ov(l,u){return u.startsWith("image/")||/\.(png|jpe?g|gif|webp|heic|heif|svg)$/i.test(l)}function Ko(l,u,r=window.location.origin){const o=new URL("/file",r);return o.searchParams.set("path",l),u&&o.searchParams.set("cwd",u),o.toString()}function uu(l,u){return l.get(u)||void 0}function Uv(l,u){return`${l.replace(/[<>:"/\\|?*\u0000-\u001F]/g," ").replace(/\s+/g," ").trim().slice(0,80)||u.slice(0,12)||"session"}.txt`}function Hv(l,u){const r=[`# ${Un(l)}`,"",`- Agent: ${l.agent}`,`- Session: \`${l.sessionId}\``,`- Working directory: \`${l.cwd}\``,`- Created: ${l.createdAt}`,`- Exported: ${new Date().toISOString()}`,""];for(const o of u){if(o.role!=="user"&&o.role!=="assistant")continue;const h=o.content.trim(),m=(o.images??[]).map(p=>`- Attachment: \`${p}\``);!h&&m.length===0||(r.push(`## ${o.role==="user"?"User":"Assistant"}`,""),h&&r.push(h,""),m.length&&r.push(...m,""))}return r.join(`
|
|
11
|
-
`).trimEnd()}function Hy(l){const u=[`cd ${qv(l.cwd||on)} &&`],r=l.approvalMode??l.observedApprovalMode;return l.agent==="claude"?(u.push("claude","--resume",l.sessionId),r==="autoApprove"?u.push("--dangerously-skip-permissions"):r==="acceptEdits"&&u.push("--permission-mode","acceptEdits"),u.join(" ")):(u.push("codex","resume",l.sessionId),r==="autoApprove"&&u.push("--dangerously-bypass-approvals-and-sandbox"),u.join(" "))}function qv(l){return/^[a-zA-Z0-9._/~-]+$/.test(l)?l:`'${l.replace(/'/g,"'\\''")}'`}function Bv(l,u){const r=URL.createObjectURL(new Blob([u],{type:"text/plain;charset=utf-8"})),o=document.createElement("a");o.href=r,o.download=l,o.click(),URL.revokeObjectURL(r)}function Lv(l=window.localStorage){try{const u=l.getItem(zy);if(!u)return{...$a};const r=JSON.parse(u);return mu(r)?{enabled:typeof r.enabled=="boolean"?r.enabled:$a.enabled,approvals:typeof r.approvals=="boolean"?r.approvals:$a.approvals,questions:typeof r.questions=="boolean"?r.questions:$a.questions,replies:typeof r.replies=="boolean"?r.replies:$a.replies,hiddenOnly:typeof r.hiddenOnly=="boolean"?r.hiddenOnly:$a.hiddenOnly}:{...$a}}catch{return{...$a}}}function Yv(l,u=window.localStorage){u.setItem(zy,JSON.stringify(l))}function ad(l=typeof Notification>"u"?void 0:Notification){return l?.permission??"unsupported"}function Qv(l,u,r=typeof document>"u"?"visible":document.visibilityState){return!(!l.enabled||u!=="granted"||l.hiddenOnly&&r==="visible")}function Gv(l,u,r={}){const o=r.notificationFactory??(typeof Notification>"u"?void 0:Notification);if(!o)return!1;const h=r.settings??{enabled:!0,hiddenOnly:!1},m=r.permission??ad(),p=r.visibilityState??(typeof document>"u"?"visible":document.visibilityState);if(!Qv(h,m,p))return!1;const j=new o(l,{body:u,tag:r.tag});return r.onClick&&(j.onclick=r.onClick),!0}function Vv(l,u={}){const r=new Set,o={},h={},m={};for(const Y of l.sessions)(Y.runtime.isResponding||Y.runtime.state==="daemonActive")&&r.add(Y.sessionId);for(const Y of l.pendingApprovals??[])o[Y.sessionId]={type:"approval.request",...Y};for(const Y of l.pendingQuestions??[])h[Y.sessionId]={type:"question.request",...Y};let p=null,j,S,x,V,z,L;if(l.activeSession){const Y=l.activeSession,w=l.sessions.find(T=>T.sessionId===Y.sessionId);p=Y.sessionId,j=Y.agent,S=w?.cwd||u.currentCwd||on,x=Y.approvalMode??w?.approvalMode??td,V=Y.approvalMode??null;const E=Y.messages??[];if(z=Y.partialReplyText?bd(E,Y.partialReplyText):E,(Y.isResponding||Y.externallyResponding)&&r.add(Y.sessionId),Y.pendingApproval&&(o[Y.sessionId]={type:"approval.request",sessionId:Y.sessionId,...Y.pendingApproval}),Y.pendingQuestion){const T={type:"question.request",sessionId:Y.sessionId,...Y.pendingQuestion};h[Y.sessionId]=T,L=nd(T)}Y.pendingQueue?.length&&(m[Y.sessionId]=Y.pendingQueue)}else{const Y=u.currentActiveSessionId??null;if(Y){const w=l.sessionAliases?.[Y];w?p=w:l.sessions.some(E=>E.sessionId===Y)&&(p=Y)}p=p??l.sessions[0]?.sessionId??null}return{page:{sessions:l.sessions,nextCursor:Dy(l.nextCursor),inventoryVersion:l.inventoryVersion,inventoryBackfillInFlight:l.inventoryBackfillInFlight},activeSessionId:p,activeAgent:j,activeCwd:S,activeApprovalMode:x,activeApprovalOverride:V,messages:z,respondingSessionIds:Array.from(r),pendingApprovals:o,pendingQuestions:h,pendingQueues:m,questionAnswers:L}}function bi(l,u=r=>window.confirm(r)){return u(`${l}
|
|
12
|
-
|
|
13
|
-
This action cannot be undone from Vibelet Web.`)}function qy(l){return`Remote file changed before save: ${l}. Review the latest file or force save to overwrite.`}function Xv(l,u){return l==="subscriptionRequired"?u?"Agent skills require an active Pro subscription.":"Terminal takeover requires an active Pro subscription.":l==="skillNotFound"?"Skill not found on the paired computer.":l==="skillResolveFailed"?"Could not load the skill on the paired computer.":l}const Zv=/\u001B(?:[@-Z\\-_]|\[[0-?]*[ -/]*[@-~])/g,Kv=/[\u0000-\u0008\u000B\u000C\u000E-\u001F\u007F-\u009F\u00AD\u061C\u180E\u200B-\u200F\u202A-\u202E\u2060-\u206F\uFEFF]/g,$v=new Set(["","{}","[]","null","undefined",'""']);function ru(l){return l.replace(/\s+/g," ").trim()}function pt(l,u){return typeof l[u]=="string"?l[u]:""}function ty(l,u){return typeof l[u]=="number"?l[u]:void 0}function Es(l,u){return l.length<=u?l:`${l.slice(0,u)}...`}function $o(l){const u=[],r=pt(l,"file_path")||pt(l,"filePath");r&&u.push({label:"Path",value:r,isFilePath:!0});const o=ty(l,"offset"),h=ty(l,"limit");if(o!==void 0||h!==void 0){const m=[];o!==void 0&&m.push(`line ${o+1}`),h!==void 0&&m.push(`to ${o!==void 0?o+h:h}`),u.push({label:"Range",value:m.join(" ")})}return u}function Jv(l){return typeof l!="string"?"":l.replace(/\r\n?/g,`
|
|
14
|
-
`).replace(Zv,"").replace(Kv,"").trim()}function Sd(l){const u=Jv(l);return $v.has(u)?"":u}function Fv(l){return Sd(l).length>0}function xd(l){const u=Sd(l);if(!u)return"";try{const r=JSON.parse(u);if(r&&typeof r=="object"&&!Array.isArray(r)){const o=typeof r.query=="string"?ru(r.query):"";if(o)return o;const h=typeof r.command=="string"?ru(r.command):"";if(h)return h;const m=typeof r.description=="string"?ru(r.description):"";if(m)return m}}catch{}return ru(u)}function Iv(l,u){if(!u)return[];switch((l??"").toLowerCase()){case"read":return $o(u);case"write":{const o=$o(u),h=pt(u,"content");return h&&o.push({label:"Content",isDiff:!0,value:"",diffNew:Es(h,500)}),o}case"edit":{const o=$o(u),h=pt(u,"old_string")||pt(u,"oldString"),m=pt(u,"new_string")||pt(u,"newString");return(h||m)&&o.push({label:"Change",isDiff:!0,value:"",diffOld:Es(h,300),diffNew:Es(m,300)}),o}case"bash":{const o=pt(u,"command");return o?[{label:"Command",value:o,isCode:!0}]:[]}case"websearch":{const o=pt(u,"query");return o?[{label:"Query",value:o}]:[]}case"webfetch":{const o=[],h=pt(u,"url");h&&o.push({label:"URL",value:h});const m=pt(u,"prompt");return m&&o.push({label:"Prompt",value:Es(m,200)}),o}case"glob":{const o=pt(u,"pattern");return o?[{label:"Pattern",value:o}]:[]}case"grep":{const o=[],h=pt(u,"pattern");h&&o.push({label:"Pattern",value:h,isCode:!0});const m=pt(u,"path");return m&&o.push({label:"In",value:m,isFilePath:!0}),o}default:{const o=[],h=pt(u,"command");if(h)return[{label:"Command",value:h,isCode:!0}];const m=pt(u,"file_path")||pt(u,"filePath");m&&o.push({label:"Path",value:m,isFilePath:!0});const p=pt(u,"description");p&&o.push({label:"Description",value:Es(p,200)});const j=pt(u,"query");j&&o.push({label:"Query",value:j});const S=pt(u,"url");return S&&o.push({label:"URL",value:S}),o}}}function ny(l){return l.role==="tool"?!0:l.type!=="info"?!1:!/^Error:/i.test(l.content.trim())}function By(l){const u=[];for(const o of l){const h=o.toolName?.trim();h&&!u.includes(h)&&u.push(h)}return u.length?u.join(", "):l.map(o=>xd(o.content)).find(Boolean)??""}const Wv=/^[A-Za-z][A-Za-z0-9_-]*$/,Pv=[{name:"clear",commandName:"clear",title:"Clear session",description:"Clear this session in place.",source:"Vibelet",agents:["claude","codex"],argsHint:""},{name:"new",commandName:"new",title:"New session",description:"Start a fresh session with the same assistant and directory.",source:"Vibelet",agents:["claude","codex"],argsHint:""},{name:"exit",commandName:"exit",title:"Archive session",description:"Archive this session and return to the session list.",source:"Vibelet",agents:["claude","codex"],argsHint:""},{name:"quit",commandName:"exit",title:"Archive session",description:"Alias for /exit.",source:"Vibelet",agents:["claude","codex"],argsHint:""},{name:"q",commandName:"exit",title:"Archive session",description:"Alias for /exit.",source:"Vibelet",agents:["claude","codex"],argsHint:""},{name:"compact",commandName:"compact",title:"Compact context",description:"Ask the assistant runtime to compact the current session.",source:"Native",agents:["claude","codex"],argsHint:""},{name:"goal",commandName:"goal",title:"Goal",description:"View, set, pause, resume, or clear the current goal.",source:"Native",agents:["claude","codex"],argsHint:"[objective|status|pause|resume|clear]"}];function Ly(l){return Pv.filter(u=>!l||u.agents.includes(l))}function jd(l){return l.trim().toLowerCase()}function Jo(l){if(!l.startsWith("/")||l.startsWith("//"))return null;const u=/^\/([A-Za-z0-9_-]*)$/.exec(l);if(!u)return null;const r=u[1]??"";return r&&!Wv.test(r)?null:{start:0,end:l.length,keyword:jd(r)}}function e1(l,u,r=8){const o=jd(u);return(o?l.filter(m=>m.name.includes(o)||m.title.toLowerCase().includes(o)).sort((m,p)=>ay(m,o)-ay(p,o)):[...l]).slice(0,r)}function ay(l,u){return l.name===u?0:l.name.startsWith(u)?1:l.name.includes(u)?2:3}function t1(l,u,r){return`${l.slice(0,u.start)}${Yy(r,"")}${l.slice(u.end)}`}function n1(l,u,r){return u?t1(l,u,r):`${Yy(r,l)}${l}`}function Yy(l,u){const r=u.length>0,o=r&&!/^\s/.test(u),h=!!(l.argsHint&&!r);return`/${l.name}${h||o?" ":""}`}function a1(l,u){const r=l.trim();if(!r.startsWith("/")||r.startsWith("//"))return null;const o=/^\/([A-Za-z][A-Za-z0-9_-]*)(?:\s+([\s\S]*))?$/.exec(r);if(!o)return null;const h=jd(o[1]??""),m=Ly(u).find(j=>j.name===h);if(!m)return null;const p=o[2]?.trim()??"";switch(m.commandName){case"clear":return{raw:r,command:{name:"clear"}};case"new":return{raw:r,command:{name:"new"}};case"exit":return{raw:r,command:{name:"exit"}};case"compact":return{raw:r,command:{name:"compact"}};case"goal":{const j=p.toLowerCase();return!p||j==="status"||j==="show"||j==="usage"||j==="help"?{raw:r,command:{name:"goal",operation:"status"}}:j==="clear"||j==="reset"?{raw:r,command:{name:"goal",operation:"clear"}}:j==="pause"||j==="paused"?{raw:r,command:{name:"goal",operation:"pause"}}:j==="resume"||j==="active"?{raw:r,command:{name:"goal",operation:"resume"}}:{raw:r,command:{name:"goal",operation:"set",objective:p}}}}}function l1(l){return l.startsWith("//")?l.slice(1):l}function i1(l){return l.name==="compact"?"/compact":l.name!=="goal"?null:l.operation==="clear"?"/goal clear":l.operation==="pause"?"/goal pause":l.operation==="resume"?"/goal resume":l.operation==="set"&&l.objective?.trim()?`/goal ${l.objective.trim()}`:"/goal"}function s1(l){const u=typeof l?.objective=="string"?l.objective.trim():"";return u?`Goal${typeof l?.status=="string"&&l.status?` (${l.status})`:""}: ${u}`:"Goal: none."}function ly(l){return l==="subscriptionRequired"?"Error: Agent commands require an active Pro subscription.":`Error: ${l||"Command failed."}`}const c1=/^[A-Za-z_][A-Za-z0-9._:-]*$/,u1=/(?:^|\s)\$([A-Za-z_][A-Za-z0-9._:-]*|)$/;function ks(l){return l.trim().toLowerCase()}function r1(l){const u=l.trim(),r=/^\$([A-Za-z_][A-Za-z0-9._:-]*)(?:\s+([\s\S]*))?$/.exec(u);return r?{name:ks(r[1]??""),...r[2]?.trim()?{args:r[2].trim()}:{}}:null}function Fo(l){const u=u1.exec(l);if(!u||u.index+u[0].length!==l.length)return null;const r=u[1]??"";if(r&&!c1.test(r))return null;const o=u[0].lastIndexOf("$");return{start:u.index+o,end:l.length,keyword:ks(r)}}function o1(l,u,r){return`${l.slice(0,u.start)}$${ks(r)} ${l.slice(u.end)}`}function d1(l,u,r=8){const o=ks(u);return(o?l.filter(m=>ks(m.name).includes(o)):l).slice(0,r)}function ws({icon:l,label:u,menuLabel:r,options:o,value:h,onSelect:m,align:p="left",disabled:j,selected:S,wide:x}){const[V,z]=y.useState(!1);return c.jsxs("div",{className:"composer-menu",onBlur:L=>{const Y=L.relatedTarget;(!Y||!L.currentTarget.contains(Y))&&z(!1)},onKeyDown:L=>{L.key==="Escape"&&z(!1)},children:[c.jsxs("button",{"aria-expanded":V,"aria-haspopup":"menu",className:`composer-option-button ${V||S?"selected":""}`,disabled:j,onClick:()=>z(L=>!L),title:r,type:"button",children:[c.jsx(l,{"aria-hidden":"true"}),c.jsx("span",{children:u}),c.jsx(s0,{"aria-hidden":"true"})]}),V?c.jsx("div",{className:`composer-option-popover ${x?"wide":""} ${p==="right"?"align-right":""}`,role:"menu","aria-label":r,children:o.map(L=>{const Y=L.icon,w=L.value===h;return c.jsxs("button",{"aria-checked":w,className:w?"selected":"",disabled:L.disabled,onClick:()=>{m(L.value),z(!1)},role:"menuitemradio",title:L.description??L.label,type:"button",children:[c.jsx("span",{className:"composer-menu-icon",children:Y?c.jsx(Y,{"aria-hidden":"true"}):w?c.jsx(wl,{"aria-hidden":"true"}):null}),c.jsxs("span",{children:[c.jsx("strong",{children:L.label}),L.description?c.jsx("small",{children:L.description}):null]}),w?c.jsx(wl,{className:"composer-menu-check","aria-hidden":"true"}):null]},L.value)})}):null]})}function f1({visible:l,skills:u,onClose:r,onSelect:o,t:h}){return l?c.jsxs("div",{className:"skill-suggestion-popover",children:[c.jsxs("header",{children:[c.jsx("strong",{children:h.skills}),c.jsx("button",{type:"button",className:"icon-button",onClick:r,title:h.closeSkills,children:c.jsx(Ft,{"aria-hidden":"true"})})]}),u.length?c.jsx("div",{className:"skill-suggestion-list",children:u.map(m=>c.jsxs("button",{onClick:()=>o(m),title:m.description??m.name,type:"button",children:[c.jsxs("span",{children:[c.jsxs("strong",{children:["$",m.name]}),m.description?c.jsx("small",{children:m.description}):null]}),c.jsx("em",{children:m.source})]},`${m.source}:${m.name}`))}):c.jsx("p",{children:h.noSkillsFound})]}):null}function h1({visible:l,commands:u,onClose:r,onSelect:o,t:h}){return l?c.jsxs("div",{className:"skill-suggestion-popover command-suggestion-popover",children:[c.jsxs("header",{children:[c.jsx("strong",{children:h.commands}),c.jsx("button",{type:"button",className:"icon-button",onClick:r,title:h.closeCommands,children:c.jsx(Ft,{"aria-hidden":"true"})})]}),u.length?c.jsx("div",{className:"skill-suggestion-list",children:u.map(m=>c.jsxs("button",{onClick:()=>o(m),title:m.description,type:"button",children:[c.jsxs("span",{children:[c.jsxs("strong",{children:["/",m.name]}),c.jsx("small",{children:m.argsHint?`${m.title} ${m.argsHint}`:m.title})]}),c.jsx("em",{children:m.source})]},m.name))}):c.jsx("p",{children:h.noCommandsFound})]}):null}const iy=[{value:"normal",label:"Normal",description:"Ask before risky actions",icon:vu},{value:"plan",label:"Plan",description:"Plan before edits",icon:_y},{value:"acceptEdits",label:"Edits",description:"Auto-accept file edits",icon:wl},{value:"autoApprove",label:"Auto",description:"Approve supported actions",icon:_s}],sy=[{value:"",label:"Effort",description:"Use daemon default",icon:Xn},{value:"minimal",label:"Minimal",icon:Xn},{value:"low",label:"Low",icon:Xn},{value:"medium",label:"Medium",icon:Xn},{value:"high",label:"High",icon:Xn},{value:"xhigh",label:"X High",icon:Xn},{value:"max",label:"Max",icon:Xn},{value:"ultra",label:"Ultra",icon:Xn}];function m1({activeQueue:l,agent:u,attachments:r,approvalMode:o,activeModelOptions:h,busy:m,draft:p,effort:j,fastMode:S,model:x,phase:V,quickReplies:z,sendShortcut:L,skills:Y,uploadBusy:w,t:E,onApprovalModeChange:T,onCancelQueuedTurn:G,onDraftChange:F,onEffortChange:Z,onFastModeChange:q,onModelChange:oe,onRefreshSkills:De,onRemoveAttachment:he,onSendShortcutChange:Te,onSubmit:be,onUploadFiles:it}){const Je=y.useRef(null),Ce=y.useRef(null),[Ze,He]=y.useState(!1),[Qe,C]=y.useState(!1),[k,$]=y.useState(!1),[W,ce]=y.useState(!1),[v,H]=y.useState(""),[K,J]=y.useState(""),te=V==="connected",me=y.useMemo(()=>Ly(u),[u]),se=y.useMemo(()=>Jo(p),[p]),de=se?`${se.start}:${se.end}:${se.keyword}`:"",ge=!!(W||se&&K!==de),qe=y.useMemo(()=>e1(me,se?.keyword??"",8),[me,se?.keyword]),Be=y.useMemo(()=>Fo(p),[p]),Mt=Be?`${Be.start}:${Be.end}:${Be.keyword}`:"",ee=!!(!ge&&(k||Be&&v!==Mt)),Oe=y.useMemo(()=>d1(Y,Be?.keyword??"",8),[Be?.keyword,Y]),_t=h.find(P=>P.value===x)?.label??(x||"Default"),Wt=iy.find(P=>P.value===o)?.label??o,vt=sy.find(P=>P.value===j)?.label??j,bt=L==="enter"?E.sendShortcutEnter:E.sendShortcutModEnter,Tt=y.useMemo(()=>[{value:"enter",label:E.sendShortcutEnter,description:E.sendShortcutEnterDescription,icon:Im},{value:"modEnter",label:E.sendShortcutModEnter,description:E.sendShortcutModEnterDescription,icon:Q0}],[E]),Rt=h.map(P=>({value:P.value,label:P.label,description:P.desc,icon:Go}));Rt.some(P=>P.value==="")||Rt.unshift({value:"",label:"Default",description:"Use daemon default model",icon:Go}),y.useEffect(()=>{Be||(H(""),$(!1))},[Be]),y.useEffect(()=>{se||(J(""),ce(!1))},[se]);const Yt=async(P,rt)=>{await it(P),rt.value=""},dn=async P=>{P.preventDefault(),He(!1),te&&await it(P.dataTransfer.files)},st=async P=>{!te||!P.clipboardData.files.length||await it(P.clipboardData.files)},Pe=()=>{Mt&&H(Mt),$(!1),Ce.current?.focus()},nt=()=>{de&&J(de),ce(!1),Ce.current?.focus()},Dt=()=>{if(ge){nt();return}J(""),!Jo(p)&&p.length===0&&F("/"),ce(!0),Ce.current?.focus()},at=P=>{const rt=Jo(p),O=n1(p,rt,P);F(O),ce(!1),J(""),Ce.current?.focus()},Pt=()=>{if(ee){Pe();return}if(De(),H(""),!Fo(p)){const P=p.length===0||/\s$/.test(p)?"":" ";F(`${p}${P}$`)}$(!0),Ce.current?.focus()},An=P=>{const rt=Fo(p),O=rt?o1(p,rt,P.name):p.trim().length?`${p}${/\s$/.test(p)?"":" "}$${P.name} `:`$${P.name} `;F(O),$(!1),H(""),Ce.current?.focus()},St=P=>{P.key!=="Enter"||P.nativeEvent.isComposing||!(L==="enter"?!P.shiftKey:P.metaKey||P.ctrlKey)||(P.preventDefault(),be())};return c.jsxs("form",{className:`composer ${Ze?"dragging":""}`,onDragEnter:P=>{P.preventDefault(),He(!0)},onDragLeave:()=>He(!1),onDragOver:P=>P.preventDefault(),onDrop:P=>{dn(P)},onSubmit:P=>{be(P)},children:[l.length?c.jsxs("div",{className:"composer-queue-banner",children:[c.jsx(dd,{"aria-hidden":"true"}),c.jsxs("div",{children:[c.jsxs("strong",{children:[l.length," queued"]}),c.jsx("span",{children:l[0]?.content??"A turn is waiting for this session."})]}),c.jsxs("button",{className:"icon-text-button",disabled:m||!l[0],onClick:()=>l[0]&&G(l[0]),type:"button",children:[c.jsx(Ft,{"aria-hidden":"true"}),"Withdraw"]})]}):null,Qe&&z.length?c.jsx("div",{className:"quick-reply-row",children:z.slice(0,6).map(P=>c.jsx("button",{onClick:()=>F(p?`${p}
|
|
15
|
-
${P}`:P),type:"button",children:P},P))}):null,c.jsx(f1,{visible:ee,skills:Oe,onClose:Pe,onSelect:An,t:E}),c.jsx(h1,{visible:ge,commands:qe,onClose:nt,onSelect:at,t:E}),c.jsx("textarea",{ref:Ce,value:p,onChange:P=>F(P.target.value),onPaste:P=>{st(P)},onKeyDown:St,placeholder:E.messagePlaceholder,rows:3,disabled:!te}),c.jsxs("div",{className:"composer-toolbar",children:[c.jsxs("div",{className:"composer-leading-controls",children:[c.jsx("button",{type:"button",className:"icon-button",onClick:()=>Je.current?.click(),title:E.uploadFiles,disabled:!te||w,children:c.jsx(Po,{"aria-hidden":"true"})}),z.length?c.jsx("button",{className:`icon-button ${Qe?"selected":""}`,type:"button",title:Qe?E.hideQuickReplies:E.showQuickReplies,onClick:()=>C(P=>!P),children:c.jsx(hv,{"aria-hidden":"true"})}):null,c.jsx("button",{className:`icon-button ${ee?"selected":""}`,type:"button",title:E.skills,onClick:Pt,disabled:!te||w,children:c.jsx(_s,{"aria-hidden":"true"})}),c.jsx("button",{className:`icon-button ${ge?"selected":""}`,type:"button",title:E.commands,onClick:Dt,disabled:!te||w,children:c.jsx(ed,{"aria-hidden":"true"})})]}),c.jsx("input",{ref:Je,type:"file",multiple:!0,hidden:!0,onChange:P=>{Yt(P.currentTarget.files,P.currentTarget)}}),c.jsxs("div",{className:"composer-control-strip",children:[c.jsx(ws,{icon:vu,label:Wt,menuLabel:"Approval mode",options:iy,value:o,onSelect:T,wide:!0}),c.jsx(ws,{icon:Go,label:_t,menuLabel:"Model",options:Rt,value:x,onSelect:oe,align:"right",wide:!0}),c.jsx(ws,{icon:Xn,label:vt||"Effort",menuLabel:"Effort",options:sy,value:j,onSelect:Z,align:"right"}),c.jsx(ws,{icon:_s,label:S?"Fast":"Normal",menuLabel:"Fast mode",options:[{value:"off",label:"Normal",description:"Use standard execution",icon:Xn},{value:"on",label:"Fast",description:"Prefer faster responses",icon:_s}],value:S?"on":"off",onSelect:P=>q(P==="on"),align:"right",selected:S,wide:!0}),c.jsx(ws,{icon:Im,label:bt,menuLabel:E.sendShortcut,options:Tt,value:L,onSelect:Te,align:"right",wide:!0})]}),c.jsx("button",{type:"submit",className:"send-button",disabled:!te||m||!p.trim(),"aria-label":E.send,title:E.send,children:c.jsx(Ip,{"aria-hidden":"true"})})]}),r.length||w?c.jsx("div",{className:"attachment-row",children:r.length?c.jsx("div",{className:"attachment-list",children:r.map(P=>c.jsxs("span",{children:[c.jsx(yd,{"aria-hidden":"true"}),P.name||El(P.path),c.jsx("small",{children:ky(P.size)}),c.jsx("button",{type:"button",onClick:()=>he(P.path),title:E.removeAttachment,children:c.jsx(Ft,{"aria-hidden":"true"})})]},P.path))}):c.jsxs("span",{className:"attachment-empty",children:[c.jsx("span",{className:"loading-spinner small","aria-hidden":"true"}),E.uploading]})}):null]})}function y1({cwd:l,paths:u,onClose:r,onOpenRemoteFile:o}){return u.length?c.jsxs("div",{className:"side-drawer",role:"dialog","aria-modal":"true","aria-label":"Attachment preview",children:[c.jsx("button",{className:"side-drawer-backdrop",onClick:r,type:"button","aria-label":"Close attachment preview"}),c.jsxs("aside",{className:"side-drawer-panel",children:[c.jsxs("header",{className:"side-drawer-header",children:[c.jsxs("div",{children:[c.jsx("strong",{children:"Attachments"}),c.jsxs("span",{children:[u.length," file",u.length===1?"":"s"]})]}),c.jsx("button",{className:"icon-button",onClick:r,type:"button",title:"Close",children:c.jsx(Ft,{"aria-hidden":"true"})})]}),c.jsx("div",{className:"stack-list",children:u.map(h=>c.jsxs("button",{className:"data-row attachment-preview-row",onClick:()=>o(h,l),type:"button",children:[c.jsx(yd,{"aria-hidden":"true"}),c.jsxs("span",{children:[c.jsx("strong",{children:El(h)}),c.jsx("small",{children:h})]}),c.jsx(fd,{"aria-hidden":"true"})]},h))})]})]}):null}const g1="modulepreload",p1=function(l){return"/web/"+l},cy={},Qy=function(u,r,o){let h=Promise.resolve();if(r&&r.length>0){let S=function(x){return Promise.all(x.map(V=>Promise.resolve(V).then(z=>({status:"fulfilled",value:z}),z=>({status:"rejected",reason:z}))))};document.getElementsByTagName("link");const p=document.querySelector("meta[property=csp-nonce]"),j=p?.nonce||p?.getAttribute("nonce");h=S(r.map(x=>{if(x=p1(x),x in cy)return;cy[x]=!0;const V=x.endsWith(".css"),z=V?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${x}"]${z}`))return;const L=document.createElement("link");if(L.rel=V?"stylesheet":g1,V||(L.as="script"),L.crossOrigin="",L.href=x,j&&L.setAttribute("nonce",j),document.head.appendChild(L),V)return new Promise((Y,w)=>{L.addEventListener("load",Y),L.addEventListener("error",()=>w(new Error(`Unable to preload CSS for ${x}`)))})}))}function m(p){const j=new Event("vite:preloadError",{cancelable:!0});if(j.payload=p,window.dispatchEvent(j),!j.defaultPrevented)throw p}return h.then(p=>{for(const j of p||[])j.status==="rejected"&&m(j.reason);return u().catch(m)})};function v1({message:l,onClose:u,onCopy:r}){if(!l)return null;const o=l.content;return c.jsxs("section",{className:"message-source-inline","aria-label":"Markdown source",children:[c.jsxs("header",{className:"inline-detail-header",children:[c.jsxs("div",{className:"inline-detail-title",children:[c.jsx("strong",{children:"Markdown Source"}),c.jsx("span",{children:l.type==="info"?"info":l.role})]}),c.jsxs("div",{className:"row-actions",children:[c.jsx("button",{className:"icon-button",onClick:()=>r(o),type:"button",title:"Copy Markdown source",children:c.jsx(xi,{"aria-hidden":"true"})}),c.jsx("button",{className:"icon-button",onClick:u,type:"button",title:"Close source",children:c.jsx(Ft,{"aria-hidden":"true"})})]})]}),c.jsx("pre",{className:"json-box markdown-source-box",children:o})]})}function b1({field:l}){return l.isDiff?c.jsxs("div",{className:"tool-field diff",children:[c.jsx("span",{children:l.label}),l.diffOld?c.jsxs("pre",{className:"tool-diff old",children:[c.jsx("b",{children:"-"}),l.diffOld]}):null,l.diffNew?c.jsxs("pre",{className:"tool-diff new",children:[c.jsx("b",{children:"+"}),l.diffNew]}):null]}):c.jsxs("div",{className:`tool-field ${l.isCode?"code":""} ${l.isFilePath?"path":""}`,children:[c.jsx("span",{children:l.label}),c.jsx("pre",{children:l.value})]})}function S1({message:l,onCopy:u}){const r=Iv(l.toolName,l.toolInput),o=xd(l.content),h=Sd(l.content),m=Fv(l.content)&&!r.length,p=l.toolName??"Tool";return c.jsxs("section",{className:"tool-detail-card",children:[c.jsxs("header",{children:[c.jsx("span",{className:"tool-detail-icon",children:c.jsx(vd,{"aria-hidden":"true"})}),c.jsxs("div",{children:[c.jsx("strong",{children:p}),o?c.jsx("small",{title:o,children:o}):null]}),c.jsx("button",{className:"icon-button",onClick:()=>u(l.content),type:"button",title:"Copy output",children:c.jsx(xi,{"aria-hidden":"true"})})]}),r.length?c.jsx("div",{className:"tool-fields",children:r.map((j,S)=>c.jsx(b1,{field:j},`${j.label}:${S}`))}):null,m?c.jsx("pre",{className:"json-box compact",children:h}):null]})}function Gy({messages:l,onClose:u,onCopy:r}){if(!l.length)return null;const h=l.filter(S=>S.role==="tool").length||l.length,m=h===1?"1 Tool Call":`${h} Tool Calls`,p=By(l),j=l.map(S=>S.content).join(`
|
|
16
|
-
|
|
17
|
-
`);return c.jsxs("section",{className:"tool-inline-panel","aria-label":"Tool details",children:[c.jsxs("header",{className:"inline-detail-header",children:[c.jsxs("div",{className:"inline-detail-title",children:[c.jsx("strong",{children:m}),c.jsx("span",{title:p,children:p||"tool detail"})]}),c.jsxs("div",{className:"row-actions",children:[c.jsx("button",{className:"icon-button",onClick:()=>r(j),type:"button",title:"Copy output",children:c.jsx(xi,{"aria-hidden":"true"})}),c.jsx("button",{className:"icon-button",onClick:u,type:"button",title:"Close tool details",children:c.jsx(Ft,{"aria-hidden":"true"})})]})]}),c.jsx("div",{className:"tool-detail-list",children:l.map((S,x)=>c.jsx(S1,{message:S,onCopy:r},`${S.historyKey??S.timestamp??S.toolName??"tool"}:${x}`))})]})}const x1=y.lazy(async()=>Qy(()=>import("./mermaid-O7DHMXV3-CmRYLWnX.js").then(l=>l.a),__vite__mapDeps([0,1])).then(l=>({default:l.MessageMarkdown})));function j1({activeMatch:l,baseCwd:u,message:r,onCopy:o,onCloseSource:h,onCloseTool:m,onOpenAttachment:p,onOpenRemoteFile:j,onToggleSource:S,onToggleTool:x,sourceOpen:V,toolOpen:z}){const L=r.role==="tool"?xd(r.content):"";return c.jsxs("article",{className:`message ${r.role} ${r.type==="info"?"info":""} ${l?"match":""}`,children:[c.jsxs("div",{className:"message-meta",children:[c.jsx("span",{children:r.type==="info"?"info":r.role}),c.jsxs("div",{className:"message-meta-side",children:[c.jsx("time",{children:bu(r.timestamp)}),c.jsxs("div",{className:"message-actions","aria-label":"Message actions",role:"group",children:[c.jsx("button",{"aria-label":"Copy message",onClick:()=>o(r.content),title:"Copy message",type:"button",children:c.jsx(xi,{"aria-hidden":"true"})}),c.jsx("button",{"aria-label":"View Markdown source","aria-expanded":V,onClick:S,title:V?"Hide Markdown source":"View Markdown source",type:"button",children:c.jsx(h0,{"aria-hidden":"true"})})]})]})]}),r.role==="tool"?c.jsxs("button",{className:"tool-inline-summary","aria-expanded":z,onClick:x,type:"button",children:[c.jsxs("span",{children:[c.jsx(jv,{"aria-hidden":"true"}),r.toolName??"Tool"]}),L?c.jsx("small",{children:L}):null]}):r.role==="assistant"?c.jsx(y.Suspense,{fallback:c.jsx("pre",{children:r.content}),children:c.jsx(x1,{baseCwd:u,content:r.content,onOpenRemoteFile:j})}):c.jsx("pre",{children:r.content}),r.images?.length?c.jsxs("div",{className:"message-files",children:[r.images.map(Y=>c.jsxs("button",{className:"file-pill",onClick:()=>j(Y,u),title:Y,type:"button",children:[c.jsx(yd,{"aria-hidden":"true"}),El(Y)]},Y)),c.jsxs("button",{className:"file-pill",onClick:()=>p(r.images??[]),type:"button",children:[c.jsx(j0,{"aria-hidden":"true"}),"Preview"]})]}):null,V?c.jsx(v1,{message:r,onClose:h,onCopy:o}):null,r.role==="tool"&&z?c.jsx(Gy,{messages:[r],onClose:m,onCopy:o}):null]})}function C1({matchCount:l,query:u,onChange:r,onNext:o}){return c.jsxs("div",{className:"message-search-bar",children:[c.jsx(pd,{"aria-hidden":"true"}),c.jsx("input",{value:u,onChange:h=>r(h.target.value),onKeyDown:h=>{h.key==="Enter"&&o()},placeholder:"Search this session"}),c.jsx("span",{children:u.trim()?`${l} match${l===1?"":"es"}`:"all messages"}),u?c.jsx("button",{"aria-label":"Clear message search",className:"icon-button mini-button",onClick:()=>r(""),type:"button",children:c.jsx(Ft,{"aria-hidden":"true"})}):null]})}function A1({activeMatch:l,expanded:u,messages:r,onToggle:o}){const h=r.filter(j=>j.role==="tool").length||r.length,m=By(r),p=h===1?"1 tool call":`${h} tool calls`;return c.jsxs("button",{className:`tool-group-bubble ${l?"match":""} ${u?"expanded":""}`,type:"button",onClick:o,"aria-expanded":u,"aria-label":m?`${p}: ${m}`:p,children:[c.jsxs("span",{className:"tool-group-header",children:[c.jsxs("span",{className:"tool-group-title",children:[c.jsx(vd,{"aria-hidden":"true"}),c.jsx("strong",{children:p})]}),c.jsx(l0,{className:"tool-group-chevron","aria-hidden":"true"})]}),m?c.jsx("span",{className:"tool-group-summary",children:m}):null]})}function N1({activeSession:l,activeUsage:u,messages:r,renameTitle:o,busy:h,onBrowseFiles:m,onClose:p,onExport:j,onJumpToMessage:S,onRename:x,onRenameTitleChange:V,onToggleArchived:z,onTogglePinned:L,onViewChanges:Y}){const[w,E]=y.useState(""),T=y.useMemo(()=>Hy(l),[l]),G=y.useMemo(()=>{const Z=w.trim().toLowerCase();return Z?r.map((q,oe)=>({message:q,index:oe})).filter(({message:q})=>q.role!=="user"&&q.role!=="assistant"?!1:q.content.toLowerCase().includes(Z)).slice(0,20):[]},[r,w]),F=Z=>{Z.preventDefault(),x()};return c.jsxs("div",{className:"session-detail-drawer",role:"dialog","aria-label":"Session details",children:[c.jsx("div",{className:"drawer-backdrop",onClick:p,"aria-hidden":"true"}),c.jsxs("aside",{className:"session-detail-panel",children:[c.jsxs("header",{className:"drawer-header",children:[c.jsxs("div",{children:[c.jsx("span",{className:"eyebrow",children:l.agent}),c.jsx("strong",{title:Un(l),children:Un(l)})]}),c.jsx("button",{className:"icon-button",type:"button",onClick:p,"aria-label":"Close session details",children:c.jsx(Ft,{"aria-hidden":"true"})})]}),c.jsxs("form",{className:"detail-title-form",onSubmit:F,children:[c.jsx("input",{value:o,onChange:Z=>V(Z.target.value),placeholder:Un(l)}),c.jsx("button",{className:"primary-button",disabled:h,type:"submit",children:"Rename"})]}),c.jsxs("div",{className:"detail-info-grid",children:[c.jsxs("div",{children:[c.jsx(Tl,{"aria-hidden":"true"}),c.jsx("span",{children:"Working directory"}),c.jsx("strong",{title:l.cwd,children:l.cwd})]}),c.jsxs("div",{children:[c.jsx(X0,{"aria-hidden":"true"}),c.jsx("span",{children:"Messages"}),c.jsx("strong",{children:r.filter(Z=>Z.role==="user"||Z.role==="assistant").length})]}),c.jsxs("div",{children:[c.jsx(O0,{"aria-hidden":"true"}),c.jsx("span",{children:"Session"}),c.jsx("strong",{title:l.sessionId,children:l.sessionId})]}),c.jsxs("div",{children:[c.jsx(vd,{"aria-hidden":"true"}),c.jsx("span",{children:"Runtime"}),c.jsx("strong",{children:l.runtime.state})]})]}),l.branch||l.diffStat?c.jsxs("button",{className:"detail-command-card",type:"button",onClick:Y,children:[c.jsx(Ey,{"aria-hidden":"true"}),c.jsxs("span",{children:[l.branch??"Changes",l.diffStat?` · +${l.diffStat.additions} -${l.diffStat.deletions}`:""]})]}):null,c.jsxs("label",{className:"detail-search",children:[c.jsx(pd,{"aria-hidden":"true"}),c.jsx("input",{value:w,onChange:Z=>E(Z.target.value),placeholder:"Search messages"}),w.trim()?c.jsxs("small",{children:[G.length||"No"," results"]}):null]}),w.trim()&&G.length?c.jsx("div",{className:"detail-search-results",children:G.map(({message:Z,index:q})=>c.jsxs("button",{type:"button",onClick:()=>{S(q,w),p()},children:[c.jsx("span",{children:Z.role}),c.jsx("strong",{children:Z.content})]},`${Z.historyKey??Z.timestamp??q}:${q}`))}):null,w.trim()?null:c.jsxs(c.Fragment,{children:[c.jsxs("button",{className:"detail-command-card",type:"button",onClick:m,children:[c.jsx(Tl,{"aria-hidden":"true"}),c.jsx("span",{children:"Browse files"})]}),c.jsxs("button",{className:"detail-command-card",type:"button",onClick:()=>{navigator.clipboard?.writeText(T)},children:[c.jsx(o0,{"aria-hidden":"true"}),c.jsx("span",{title:T,children:T})]}),c.jsxs("div",{className:"detail-action-grid",children:[c.jsxs("button",{className:"icon-text-button",disabled:h,type:"button",onClick:L,children:[c.jsx(gd,{"aria-hidden":"true"}),l.pinned?"Unpin":"Pin"]}),c.jsxs("button",{className:"icon-text-button",disabled:h,type:"button",onClick:z,children:[c.jsx(od,{"aria-hidden":"true"}),l.archived?"Unarchive":"Archive"]}),c.jsxs("button",{className:"icon-text-button",type:"button",onClick:j,children:[c.jsx(Si,{"aria-hidden":"true"}),"Export"]})]}),u?c.jsxs("p",{className:"detail-usage",children:["Usage: ",u.limits?.fiveHour?.usedPercent??"-","% 5h ·"," ",u.limits?.weekly?.usedPercent??"-","% weekly"]}):null,c.jsxs("p",{className:"detail-usage",children:["Created ",bu(l.createdAt)]})]})]})]})}function Vy(l,u){return`${l.historyKey??l.timestamp??l.toolName??l.content.slice(0,24)??"message"}:${u}`}function T1(l){const u=[];for(let r=0;r<l.length;r+=1){const o=l[r];if(!ny(o)){u.push({type:"message",index:r,message:o});continue}const h=[];let m=r;for(;m<l.length&&ny(l[m]);)h.push({index:m,message:l[m]}),m+=1;u.push({type:"toolGroup",entries:h,id:`tool-group:${h.map(({index:p,message:j})=>Vy(j,p)).join("|")}`}),r=m-1}return u}function E1({activeSession:l,activeSessionId:u,activeModelOptions:r,activeQueue:o,activeUsage:h,agent:m,approvalMode:p,attachments:j,busy:S,cwd:x,draft:V,effort:z,errorText:L,fastMode:Y,historyLoading:w,messages:E,model:T,phase:G,quickReplies:F,renameTitle:Z,respondingSessionIds:q,sendShortcut:oe,skills:De,uploadBusy:he,detailsOpen:Te,t:be,onApprovalModeChange:it,onBrowseFiles:Je,onCancelQueuedTurn:Ce,onClearInterrupt:Ze,onDraftChange:He,onDetailsOpenChange:Qe,onEffortChange:C,onExportActiveSession:k,onFastModeChange:$,onModelChange:W,onOpenRemoteFile:ce,onRefreshSessions:v,onRefreshSkills:H,onRenameSession:K,onRenameTitleChange:J,onRemoveAttachment:te,onRestoreSnapshot:me,onSendShortcutChange:se,onSubmit:de,onToggleArchived:ge,onTogglePinned:qe,onUploadFiles:Be,onViewChanges:Mt}){const[ee,Oe]=y.useState(""),[It,_t]=y.useState(0),[Wt,vt]=y.useState(null),[bt,Tt]=y.useState(null),[Rt,Yt]=y.useState(!1),[dn,st]=y.useState([]),Pe=y.useRef(null),nt=y.useRef([]),Dt=y.useRef(null),at=y.useRef(null),Pt=y.useRef(0),An=y.useMemo(()=>T1(E),[E]),St=y.useMemo(()=>{const ye=ee.trim().toLowerCase();return ye?E.map((_e,Et)=>({index:Et,message:_e})).filter(({message:_e})=>_e.content.toLowerCase().includes(ye)):[]},[ee,E]),P=ye=>{navigator.clipboard?.writeText(ye).catch(()=>{})},rt=()=>{if(!St.length)return;const ye=It%St.length,_e=St[ye]?.index;typeof _e=="number"&&nt.current[_e]?.scrollIntoView({behavior:"smooth",block:"center"}),_t(Et=>(Et+1)%St.length)},O=y.useCallback(()=>{const ye=Pe.current;ye&&(ye.scrollTop=ye.scrollHeight,Yt(!1))},[]),ue=y.useCallback((ye="smooth")=>{const _e=Pe.current;_e&&(_e.scrollTo({top:_e.scrollHeight,behavior:ye}),Yt(!1))},[]),pe=()=>{const ye=Pe.current;if(!ye)return;const _e=ye.scrollHeight-ye.scrollTop-ye.clientHeight;Yt(_e>180)},je=y.useMemo(()=>{const ye=E.at(-1);return ye?`${E.length}:${ye.historyKey??""}:${ye.timestamp??""}:${ye.content.length}`:"0"},[E]);y.useLayoutEffect(()=>{Dt.current!==u&&(Dt.current=u,at.current=u,Pt.current=0,vt(null),Tt(null));const ye=Pt.current===0&&E.length>0;Pt.current=E.length;const _e=Pe.current;if(!_e)return;if(ye||at.current===u&&(!w||E.length>0)){O();const ma=requestAnimationFrame(O),Gt=window.setTimeout(O,120),jt=window.setTimeout(O,360);return at.current=null,Yt(!1),()=>{cancelAnimationFrame(ma),window.clearTimeout(Gt),window.clearTimeout(jt)}}_e.scrollHeight-_e.scrollTop-_e.clientHeight<240&&O()},[u,w,je,E.length,G,O]);const et=St.length&&ee.trim()?St[(It+St.length-1)%St.length]?.index:void 0,en=l?Un(l):"New session",Qt=l?.cwd??(x.trim().length>0&&x!=="."?x:""),Hn=l?.agent??m,fn=Hn==="codex"?"Codex":"Claude";return c.jsxs("section",{className:"chat-pane","aria-label":"Chat",children:[c.jsxs("header",{className:"chat-header",children:[c.jsxs("button",{className:"chat-title-block chat-title-button",type:"button",onClick:()=>l&&Qe(!0),children:[c.jsx("span",{className:`agent-status-pill ${Hn}`,children:fn}),c.jsx("h1",{title:en,children:en}),Qt?c.jsx("p",{title:Qt,children:Qt}):null,l?.branch||l?.diffStat?c.jsxs("div",{className:"header-metadata",children:[l.branch?c.jsx("span",{children:l.branch}):null,l.diffStat?c.jsxs("span",{children:["+",l.diffStat.additions," -",l.diffStat.deletions]}):null,l.runtime.state?c.jsx("span",{children:l.runtime.state}):null,l.terminal?.mode?c.jsx("span",{children:l.terminal.mode}):null]}):null]}),c.jsxs("div",{className:"header-actions",children:[c.jsx("button",{type:"button",className:"icon-button",onClick:()=>l&&Mt(l.sessionId),title:be.viewChanges,disabled:!l,children:c.jsx(Ey,{"aria-hidden":"true"})}),c.jsx("button",{type:"button",className:`icon-button ${l?.pinned?"selected":""}`,onClick:qe,title:l?.pinned?be.unpin:be.pin,disabled:!l||S,children:c.jsx(gd,{"aria-hidden":"true"})}),c.jsx("button",{type:"button",className:`icon-button ${l?.archived?"selected":""}`,onClick:ge,title:l?.archived?be.unarchive:be.archive,disabled:!l||S,children:c.jsx(od,{"aria-hidden":"true"})}),c.jsx("button",{type:"button",className:"icon-button",onClick:me,title:be.restoreSnapshot,children:c.jsx(nv,{"aria-hidden":"true"})}),c.jsx("button",{type:"button",className:"icon-button",onClick:v,title:be.refreshSessions,children:c.jsx(zs,{"aria-hidden":"true"})})]})]}),c.jsxs("div",{className:"chat-notices","aria-live":"polite",children:[L?c.jsxs("div",{className:"notice error",children:[c.jsx(Ft,{"aria-hidden":"true"}),c.jsx("span",{children:L})]}):null,l?.interruptReason?c.jsxs("div",{className:"notice warning",children:[c.jsx(_s,{"aria-hidden":"true"}),c.jsx("span",{children:l.interruptReason.humanText||l.interruptReason.kind}),c.jsx("button",{className:"icon-text-button",disabled:S,onClick:Ze,type:"button",children:be.clear})]}):null,l?.stallWarning?c.jsxs("div",{className:"notice warning",children:[c.jsx(dd,{"aria-hidden":"true"}),c.jsx("span",{children:l.stallWarning.humanText||"Agent may be stalled"})]}):null]}),G==="missing-pair"?c.jsxs("div",{className:"empty-state",children:[c.jsx(md,{"aria-hidden":"true"}),c.jsx("h2",{children:be.openDaemonWebLink}),c.jsx("p",{children:be.openDaemonWebLinkHint}),c.jsx("code",{children:"vibelet --access=quick"})]}):c.jsxs("div",{className:"message-scroll",ref:Pe,onScroll:pe,children:[c.jsx(C1,{matchCount:St.length,query:ee,onChange:ye=>{Oe(ye),_t(0)},onNext:rt}),w&&E.length===0?c.jsxs("div",{className:"loading-line",children:[c.jsx("span",{className:"loading-spinner","aria-hidden":"true"}),be.loadingHistory]}):null,!w&&E.length===0?c.jsxs("div",{className:"empty-state compact",children:[c.jsx(vu,{"aria-hidden":"true"}),c.jsx("h2",{children:l?be.noVisibleMessages:be.startDaemonSession}),c.jsx("p",{children:be.emptyChatHint})]}):null,An.map(ye=>{if(ye.type==="toolGroup"){const jt=ye.entries.map(hn=>hn.message),Nn=ye.entries.some(hn=>et===hn.index),ya=bt===ye.id;return c.jsx("div",{className:"message-frame tool info",ref:hn=>{for(const Fa of ye.entries)nt.current[Fa.index]=hn},children:c.jsxs("div",{className:"inline-message-stack",children:[c.jsx(A1,{activeMatch:Nn,expanded:ya,messages:jt,onToggle:()=>Tt(hn=>hn===ye.id?null:ye.id)}),ya?c.jsx(Gy,{messages:jt,onClose:()=>Tt(null),onCopy:P}):null]})},ye.id)}const{index:_e,message:Et}=ye,xt=Vy(Et,_e),ma=Wt===xt,Gt=bt===xt;return c.jsx("div",{className:`message-frame ${Et.role} ${Et.type==="info"?"info":""}`,ref:jt=>{nt.current[_e]=jt},children:c.jsx(j1,{activeMatch:et===_e,baseCwd:l?.cwd,message:Et,onCopy:P,onCloseSource:()=>vt(null),onCloseTool:()=>Tt(null),onOpenAttachment:st,onOpenRemoteFile:ce,onToggleSource:()=>vt(jt=>jt===xt?null:xt),onToggleTool:()=>Tt(jt=>jt===xt?null:xt),sourceOpen:ma,toolOpen:Gt})},xt)}),u&&q.has(u)?c.jsxs("div",{className:"typing-line",children:[c.jsx("span",{}),be.agentResponding]}):null,Rt?c.jsx("button",{className:"scroll-latest-button",type:"button","aria-label":be.scrollToLatest,title:be.scrollToLatest,onClick:()=>ue(),children:c.jsx(Jp,{"aria-hidden":"true"})}):null]}),G!=="missing-pair"?c.jsx(m1,{activeModelOptions:r,activeQueue:o,agent:m,approvalMode:p,attachments:j,busy:S,draft:V,effort:z,fastMode:Y,model:T,phase:G,quickReplies:F,sendShortcut:oe,skills:De,uploadBusy:he,onApprovalModeChange:it,onCancelQueuedTurn:Ce,onDraftChange:He,onEffortChange:C,onFastModeChange:$,onModelChange:W,onRemoveAttachment:te,onRefreshSkills:H,onSendShortcutChange:se,onSubmit:de,onUploadFiles:Be,t:be}):null,Te&&l?c.jsx(N1,{activeSession:l,activeUsage:h,busy:S,messages:E,renameTitle:Z,onBrowseFiles:()=>{Qe(!1),Je()},onClose:()=>Qe(!1),onExport:k,onJumpToMessage:(ye,_e)=>{Oe(_e),_t(0),nt.current[ye]?.scrollIntoView({behavior:"smooth",block:"center"})},onRename:K,onRenameTitleChange:J,onToggleArchived:ge,onTogglePinned:qe,onViewChanges:()=>Mt(l.sessionId)}):null,c.jsx(y1,{cwd:l?.cwd,paths:dn,onClose:()=>st([]),onOpenRemoteFile:ce})]})}const w1=[{tab:"session",label:"Session controls",Icon:_y},{tab:"files",label:"Files",Icon:Tl},{tab:"admin",label:"Settings",Icon:cv}];function M1({value:l,onChange:u}){return c.jsx("div",{className:"control-tabs",children:w1.map(({tab:r,label:o,Icon:h})=>c.jsx("button",{className:l===r?"selected":"",onClick:()=>u(r),title:o,type:"button",children:c.jsx(h,{"aria-hidden":"true"})},r))})}function _1({cwd:l,entries:u,error:r,loaded:o,loading:h,path:m,onPathChange:p,onListDirectory:j,onOpenRemoteFile:S}){return c.jsxs(c.Fragment,{children:[c.jsxs("label",{className:"field",children:[c.jsx("span",{children:"Path"}),c.jsxs("div",{className:"field-row",children:[c.jsx("input",{value:m,onChange:x=>p(x.target.value)}),c.jsx("button",{className:"icon-button",onClick:()=>j(),type:"button",children:h?c.jsx(Wo,{"aria-hidden":"true"}):c.jsx(zs,{"aria-hidden":"true"})})]})]}),r?c.jsx("p",{className:"empty-copy",children:r}):null,h?c.jsx("p",{className:"empty-copy",children:"Loading files..."}):null,c.jsxs("div",{className:"file-list tree-list",children:[gu(m)?c.jsxs("button",{onClick:()=>j(gu(m)??m),type:"button",children:[c.jsx(Tl,{"aria-hidden":"true"}),".."]}):null,u.map(x=>{const V=yu(m,x.name);return c.jsxs("button",{onClick:()=>x.isDirectory?j(V):S(V,l),type:"button",children:[x.isDirectory?c.jsx(hu,{"aria-hidden":"true"}):c.jsx(hd,{"aria-hidden":"true"}),x.name]},`${x.name}:${x.isDirectory}`)})]}),o&&!h&&!r&&u.length===0?c.jsx("p",{className:"empty-copy",children:"No files in this directory."}):null]})}const R1=y.lazy(()=>Qy(()=>import("./mermaid-O7DHMXV3-CmRYLWnX.js").then(l=>l.a),__vite__mapDeps([0,1])).then(l=>({default:l.MessageMarkdown})));function D1({file:l,mode:u,onModeChange:r,onOpenRemoteFile:o,onTextChange:h}){return c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:"segmented editor-mode-tabs",children:[c.jsx("button",{className:u==="edit"?"selected":"",onClick:()=>r("edit"),type:"button",children:"Editor"}),c.jsx("button",{className:u==="preview"?"selected":"",onClick:()=>r("preview"),type:"button",children:"Preview"}),c.jsx("button",{className:u==="source"?"selected":"",onClick:()=>r("source"),type:"button",children:"Source"})]}),u==="edit"?c.jsx("textarea",{className:"remote-editor",value:l.text,onChange:m=>h(m.target.value),rows:14}):u==="preview"?c.jsx("div",{className:"remote-markdown-preview",children:c.jsx(y.Suspense,{fallback:c.jsx("pre",{className:"json-box source-viewer",children:l.text}),children:c.jsx(R1,{content:l.text,baseCwd:l.cwd,onOpenRemoteFile:o})})}):c.jsx("pre",{className:"json-box source-viewer",children:l.text})]})}function z1({busy:l,cwd:u,directory:r,newDirName:o,remoteFileMode:h,remoteFile:m,remoteFileConflict:p,onCreateDirectory:j,onDirectoryPathChange:S,onDownloadRemoteFile:x,onListDirectory:V,onNewDirNameChange:z,onOpenRemoteFile:L,onRemoteFileModeChange:Y,onRemoteFileTextChange:w,onSaveRemoteFile:E}){return c.jsxs(c.Fragment,{children:[c.jsxs("section",{className:"control-section",children:[c.jsx("h2",{children:"File Tree"}),c.jsx(_1,{cwd:u,entries:r.entries,error:r.error,loaded:r.loaded,loading:r.loading,path:r.path,onListDirectory:V,onOpenRemoteFile:L,onPathChange:S}),c.jsxs("div",{className:"field-row",children:[c.jsx("input",{value:o,onChange:T=>z(T.target.value),placeholder:"New folder"}),c.jsxs("button",{className:"icon-text-button",onClick:j,type:"button",disabled:!o.trim(),children:[c.jsx(hu,{"aria-hidden":"true"}),"Create"]})]})]}),c.jsxs("section",{className:"control-section remote-file-section",children:[c.jsx("h2",{children:"Remote File"}),m?c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:"file-title",children:[m.kind==="image"?c.jsx(H0,{"aria-hidden":"true"}):c.jsx(hd,{"aria-hidden":"true"}),c.jsxs("div",{children:[c.jsx("strong",{children:El(m.path)}),c.jsxs("span",{children:[m.contentType," · ",ky(m.size)]})]})]}),c.jsxs("div",{className:"attention-actions",children:[c.jsxs("button",{className:"icon-text-button",onClick:x,type:"button",children:[c.jsx(Si,{"aria-hidden":"true"}),"Download"]}),c.jsxs("button",{className:"icon-text-button",onClick:()=>navigator.clipboard?.writeText(m.path),type:"button",children:[c.jsx(xi,{"aria-hidden":"true"}),"Copy path"]})]}),m.kind==="text"?c.jsxs(c.Fragment,{children:[c.jsx(D1,{file:m,mode:h,onModeChange:Y,onOpenRemoteFile:L,onTextChange:w}),c.jsxs("button",{className:"primary-button full-width",disabled:!m.dirty||l,onClick:()=>E(),type:"button",children:[c.jsx(lv,{"aria-hidden":"true"}),"Save file"]}),p?c.jsxs("div",{className:"notice warning inline-notice",children:[c.jsx(dd,{"aria-hidden":"true"}),c.jsx("span",{children:qy(m.path)}),c.jsx("button",{className:"danger-button",disabled:l,onClick:()=>bi(`Overwrite ${El(m.path)}?`)&&E({force:!0}),type:"button",children:"Force save"})]}):null]}):m.kind==="image"&&m.objectUrl?c.jsx("img",{className:"remote-image",src:m.objectUrl,alt:El(m.path)}):c.jsx("p",{className:"empty-copy",children:"Binary preview is not available. Use download to inspect this file."})]}):c.jsx("p",{className:"empty-copy",children:"Select an attachment or a file from the directory browser."})]})]})}function k1({activeApproval:l,activeQuestion:u,busy:r,questionAnswers:o,t:h,onCancelQuestion:m,onQuestionChoice:p,onRespondApproval:j,onRespondQuestion:S}){const x=!!(l||u);return c.jsxs(c.Fragment,{children:[x?null:c.jsxs("section",{className:"control-section",children:[c.jsx("h2",{children:h.pendingActions}),c.jsx("p",{className:"empty-copy",children:h.noPendingActions})]}),l?c.jsxs("section",{className:"attention-panel",children:[c.jsxs("div",{className:"attention-head",children:[c.jsx(vu,{"aria-hidden":"true"}),c.jsxs("div",{children:[c.jsx("h2",{children:h.approvalRequired}),c.jsx("p",{children:l.toolName})]})]}),c.jsx("p",{children:l.description}),c.jsx("pre",{children:Uy(l.input)}),c.jsxs("div",{className:"attention-actions",children:[c.jsxs("button",{type:"button",className:"danger-button",onClick:()=>j(!1),disabled:r,children:[c.jsx(Ft,{"aria-hidden":"true"}),h.deny]}),c.jsxs("button",{type:"button",className:"approve-button",onClick:()=>j(!0),disabled:r,children:[c.jsx(wl,{"aria-hidden":"true"}),h.approve]})]})]}):null,u?c.jsxs("section",{className:"attention-panel",children:[c.jsxs("div",{className:"attention-head",children:[c.jsx(md,{"aria-hidden":"true"}),c.jsxs("div",{children:[c.jsx("h2",{children:h.inputNeeded}),c.jsxs("p",{children:[u.questions.length," question",u.questions.length>1?"s":""]})]})]}),u.questions.map(V=>c.jsxs("div",{className:"question-block",children:[c.jsx("strong",{children:V.question}),c.jsx("div",{className:"choice-list",children:V.options.map(z=>{const L=(o[V.id]??[]).includes(z.label);return c.jsxs("button",{className:L?"selected":"",onClick:()=>p(V.id,z.label,V.multiSelect),type:"button",children:[c.jsx("span",{children:z.label}),z.description?c.jsx("small",{children:z.description}):null]},z.label)})})]},V.id)),c.jsxs("div",{className:"attention-actions",children:[c.jsxs("button",{type:"button",className:"danger-button",onClick:m,disabled:r,children:[c.jsx(Ft,{"aria-hidden":"true"}),h.cancel]}),c.jsxs("button",{type:"button",className:"approve-button",onClick:S,disabled:r,children:[c.jsx(wl,{"aria-hidden":"true"}),h.submit]})]})]}):null]})}function uy({session:l,active:u,responding:r,tagLabels:o,onSelect:h,onContextMenu:m,onViewChanges:p}){const j=!!l.diffStat&&(l.diffStat.additions>0||l.diffStat.deletions>0),S=Un(l);return c.jsxs("button",{className:`session-row ${u?"active":""} ${l.archived?"archived":""}`,onContextMenu:m,onClick:h,title:S,type:"button",children:[c.jsxs("span",{className:"session-row-head",children:[c.jsx("strong",{children:S}),r?c.jsx(u0,{"aria-label":"Responding"}):null]}),c.jsx("span",{children:l.cwd}),o?.length?c.jsx("span",{className:"directory-tag-row",title:"Directory tags",children:o.map(x=>c.jsx("em",{children:x},x))}):null,c.jsxs("small",{children:[l.agent," · ",bu(l.lastActivityAt),l.branch?` · ${l.branch}`:"",l.diffStat&&!p?` · +${l.diffStat.additions}/-${l.diffStat.deletions}`:"",l.pinned?" · pinned":"",l.archived?" · archived":""]}),j&&p&&l.diffStat?c.jsxs("span",{className:"session-diff-badge",role:"button",tabIndex:0,title:"View changes",onClick:x=>{x.stopPropagation(),p()},onKeyDown:x=>{(x.key==="Enter"||x.key===" ")&&(x.preventDefault(),x.stopPropagation(),p())},children:[c.jsxs("span",{className:"diff-add",children:["+",l.diffStat.additions]}),c.jsxs("span",{className:"diff-del",children:["-",l.diffStat.deletions]})]}):null]})}function Xy({ariaLabel:l,options:u,value:r,disabled:o,onChange:h}){return c.jsx("div",{className:"chip-group",role:"radiogroup","aria-label":l,children:u.map(m=>c.jsx("button",{"aria-checked":r===m.value,className:r===m.value?"selected":"",disabled:o,onClick:()=>h(m.value),role:"radio",title:m.title??m.label,type:"button",children:m.label},m.value))})}function O1({agentFilter:l,t:u,onAgentFilterChange:r}){return c.jsxs("div",{className:"session-filter-panel",children:[c.jsx("span",{className:"filter-section-label",children:u.agentFilterLabel}),c.jsx(Xy,{ariaLabel:u.agentFilterLabel,value:l,options:[{value:"all",label:u.agentFilterAll},{value:"claude",label:u.agentFilterClaude},{value:"codex",label:u.agentFilterCodex}],onChange:r})]})}function Ja(l){return typeof l=="string"&&l.trim().length>0?l:void 0}function U1({activeSessionId:l,busy:u,collapsedFolders:r,currentCwd:o,displayName:h,directoryTags:m,folderCounts:p,groupFolders:j,groupedSessions:S,hideArchived:x,inventoryVersion:V,nextCursor:z,phase:L,pendingSessionIds:Y,respondingSessionIds:w,search:E,sessionAgentFilter:T,sessionsCount:G,sinceFilter:F,statusText:Z,t:q,visibleSessions:oe,onLoadMore:De,onCopyResumeCommand:he,onCreateDirectory:Te,onCreateSession:be,onDeleteSession:it,onListDirectories:Je,onBrowseFolder:Ce,onEditFolderTags:Ze,onOpenSessionDetails:He,onResetFilters:Qe,onSearchChange:C,onSearchCommit:k,onSelectSession:$,onToggleSessionArchived:W,onToggleSessionPinned:ce,onSessionAgentFilterChange:v,onSinceFilterChange:H,onToggleFolder:K,onToggleGroupFolders:J,onToggleHideArchived:te,onToggleCollapse:me,onViewChanges:se}){const[de,ge]=y.useState(!1),[qe,Be]=y.useState(null),Mt=y.useRef(0),[ee,Oe]=y.useState(null),It=y.useRef(null),_t=T!=="all"||F!=="30d"||j||x,Wt=!!(z?.lastActivityAt&&z.sessionId),vt=qe?!!Y?.has(qe.session.sessionId):!1,bt=O=>m[Ja(O)??"/"]??[],Tt=L==="connected"?`${oe.length}/${G} sessions · v${V??"-"}`:q.sameOriginAccess,Rt=`${Z} · ${Tt}`;y.useEffect(()=>{if(!de&&!qe&&!ee)return;const O=pe=>{const je=pe.target;je instanceof Node&&It.current?.contains(je)||(ge(!1),Be(null),Oe(null))},ue=pe=>{pe.key==="Escape"&&(ge(!1),Be(null),Oe(null))};return document.addEventListener("pointerdown",O),document.addEventListener("keydown",ue),()=>{document.removeEventListener("pointerdown",O),document.removeEventListener("keydown",ue)}},[qe,ee,de]);const Yt=(O,ue)=>{const pe=O.currentTarget.getBoundingClientRect(),je=320,et=430,en=Ja(ue),Qt=en??Ja(o)??".";Be(null),Oe({...en?{folder:en}:{},cwd:Qt,x:Math.max(10,Math.min(pe.right-je,window.innerWidth-je-10)),y:Math.max(10,Math.min(pe.bottom+8,window.innerHeight-et-10))})},dn=(O,ue)=>{O.preventDefault();const pe=224,je=306;Oe(null),Be({session:ue,x:Math.min(O.clientX,window.innerWidth-pe-10),y:Math.min(O.clientY,window.innerHeight-je-10)})},st=()=>Be(null),Pe=O=>{if(!qe)return;const{session:ue}=qe;st(),O(ue)},nt=O=>{if(!ee)return;const ue=Ja(ee.cwd)??Ja(ee.folder)??Ja(o)??".";Oe(null),be(ue,O)},Dt=O=>{const ue=Ja(O)??Ja(o)??".",pe=++Mt.current;Oe(je=>je&&{...je,browser:{path:ue,entries:[],loading:!0,loaded:!1,createMode:!1,newFolderName:"",creating:!1}}),Je(ue).then(je=>{Mt.current===pe&&Oe(et=>et?.browser?{...et,browser:{...et.browser,path:ue,entries:je.filter(en=>en.isDirectory),loading:!1,loaded:!0,error:void 0}}:et)}).catch(je=>{Mt.current===pe&&Oe(et=>et?.browser?{...et,browser:{...et.browser,path:ue,entries:[],loading:!1,loaded:!0,error:je instanceof Error?je.message:String(je)}}:et)})},at=()=>{ee&&Dt(ee.cwd||ee.folder||o||".")},Pt=()=>{Oe(O=>O?.browser?{...O,cwd:O.browser.path,browser:void 0}:O)},An=O=>{Oe(ue=>ue?.browser?{...ue,browser:{...ue.browser,newFolderName:O,createError:void 0}}:ue)},St=()=>{Oe(O=>O?.browser?{...O,browser:{...O.browser,createMode:!0,newFolderName:"",createError:void 0}}:O)},P=()=>{Oe(O=>O?.browser?{...O,browser:{...O.browser,createMode:!1,newFolderName:"",createError:void 0,creating:!1}}:O)},rt=()=>{const O=ee?.browser,ue=O?.newFolderName??"";if(!O||ue.trim().length===0||O.creating)return;if(ue.includes("/")||ue.includes("\\")||ue==="."||ue===".."){Oe(je=>je?.browser?{...je,browser:{...je.browser,createError:q.folderCreateFailed}}:je);return}const pe=yu(O.path,ue);Oe(je=>je?.browser?{...je,browser:{...je.browser,creating:!0,createError:void 0}}:je),Te(pe).then(()=>{Dt(O.path)}).catch(je=>{Oe(et=>et?.browser?{...et,browser:{...et.browser,creating:!1,createError:je instanceof Error?je.message:String(je)}}:et)})};return c.jsxs("aside",{className:"session-rail","aria-label":"Sessions",children:[c.jsxs("div",{className:"brand-block",children:[c.jsx("div",{className:"brand-mark",children:c.jsx(ed,{"aria-hidden":"true"})}),c.jsxs("div",{className:"brand-copy",children:[c.jsx("strong",{children:"Vibelet Web"}),c.jsx("span",{children:h??"Daemon workspace"})]}),me?c.jsx("button",{"aria-label":q.collapseSessionSidebar,className:"sidebar-panel-collapse-button session-rail-collapse-button",onClick:me,title:q.collapseSessionSidebar,type:"button",children:c.jsx(wy,{"aria-hidden":"true"})}):null]}),c.jsxs("div",{className:`connection-strip ${L}`,title:Rt,children:[c.jsx(My,{"aria-hidden":"true"}),c.jsx("strong",{className:"connection-status-label",children:Z})]}),c.jsxs("div",{className:"rail-list-heading",children:[c.jsx("span",{children:q.sessions}),c.jsx("button",{"aria-label":q.newSession,className:"rail-create-button",disabled:u||L!=="connected",onClick:O=>Yt(O),title:q.newSession,type:"button",children:c.jsx(Po,{"aria-hidden":"true"})})]}),c.jsxs("div",{className:"search-filter-wrap",ref:It,children:[c.jsxs("div",{className:"search-box",children:[c.jsx(pd,{"aria-hidden":"true"}),c.jsx("input",{value:E,onBlur:k,onChange:O=>C(O.target.value),onKeyDown:O=>{O.key==="Enter"&&k()},placeholder:q.searchSessions}),c.jsx("button",{"aria-expanded":de,"aria-label":q.sessionFilters,className:`filter-toggle ${de||_t?"selected":""}`,onClick:()=>ge(O=>!O),title:q.sessionFilters,type:"button",children:c.jsx(M0,{"aria-hidden":"true"})})]}),de?c.jsxs("div",{className:"filter-popover",role:"dialog","aria-label":q.sessionFilters,children:[c.jsx(O1,{agentFilter:T,t:q,onAgentFilterChange:v}),c.jsxs("div",{className:"filter-section",children:[c.jsx("span",{className:"filter-section-label",children:q.searchTimeRangeLabel}),c.jsx("div",{className:"rail-filters",role:"group","aria-label":q.searchTimeRangeLabel,children:["all","7d","30d","90d"].map(O=>c.jsx("button",{className:F===O?"selected":"",onClick:()=>H(O),type:"button",children:O==="all"?q.searchTimeRangeAllTime:O==="7d"?q.searchTimeRangeLast7Days:O==="30d"?q.searchTimeRangeLast30Days:q.searchTimeRangeLast90Days},O))})]}),c.jsxs("div",{className:"filter-section",children:[c.jsx("span",{className:"filter-section-label",children:q.filterViewOptions}),c.jsxs("div",{className:"filter-switch-card",children:[c.jsxs("button",{"aria-pressed":j,className:j?"selected":"",onClick:J,type:"button",children:[c.jsx("span",{children:q.groupByFolder}),c.jsx("span",{className:"filter-switch-track","aria-hidden":"true",children:c.jsx("span",{})})]}),c.jsxs("button",{"aria-pressed":x,className:x?"selected":"",onClick:te,type:"button",children:[c.jsx("span",{children:q.hideArchived}),c.jsx("span",{className:"filter-switch-track","aria-hidden":"true",children:c.jsx("span",{})})]})]})]}),_t?c.jsx("button",{className:"filter-reset-button",onClick:Qe,type:"button",children:q.resetFilters}):null]}):null]}),c.jsxs("div",{className:"session-list",children:[j?S.map(O=>{const ue=r[O.folder];return c.jsxs("div",{className:"folder-group",children:[c.jsxs("div",{className:"folder-header",children:[c.jsxs("button",{onClick:()=>K(O.folder),type:"button",children:[c.jsx(hu,{"aria-hidden":"true"}),c.jsx("span",{children:O.folder}),c.jsx("small",{children:p[O.folder]??O.sessions.length})]}),c.jsx("button",{className:"mini-button",disabled:L!=="connected",onClick:()=>Ce(O.folder),title:q.browseFolder,type:"button",children:c.jsx(Tl,{"aria-hidden":"true"})}),c.jsx("button",{className:"mini-button",onClick:()=>Ze(O.folder),title:q.editDirectoryTags,type:"button",children:c.jsx(gv,{"aria-hidden":"true"})}),c.jsx("button",{className:"mini-button",disabled:u||L!=="connected",onClick:pe=>Yt(pe,O.folder),title:q.newSession,type:"button",children:c.jsx(Po,{"aria-hidden":"true"})})]}),bt(O.folder).length?c.jsx("div",{className:"folder-tag-row",children:bt(O.folder).map(pe=>c.jsx("span",{children:pe},pe))}):null,ue?null:O.sessions.map(pe=>c.jsx(uy,{active:pe.sessionId===l,responding:w.has(pe.sessionId),session:pe,tagLabels:bt(pe.cwd),onContextMenu:je=>dn(je,pe),onSelect:()=>$(pe.sessionId),onViewChanges:se?()=>se(pe.sessionId):void 0},pe.sessionId))]},O.folder)}):oe.map(O=>c.jsx(uy,{active:O.sessionId===l,responding:w.has(O.sessionId),session:O,tagLabels:bt(O.cwd),onContextMenu:ue=>dn(ue,O),onSelect:()=>$(O.sessionId),onViewChanges:se?()=>se(O.sessionId):void 0},O.sessionId)),oe.length===0?c.jsx("p",{className:"empty-copy",children:q.noSessionsMatch}):null,Wt&&z?c.jsxs("button",{className:"icon-text-button load-more-button",disabled:u,onClick:()=>De(z),type:"button",children:[c.jsx(zs,{"aria-hidden":"true"}),q.loadMore]}):null]}),ee?c.jsxs("div",{className:"session-create-menu",role:"dialog","aria-label":q.newSession,style:{left:ee.x,top:ee.y},onPointerDown:O=>O.stopPropagation(),children:[c.jsxs("label",{className:"session-create-field",children:[c.jsx("span",{children:q.workingDirectory}),c.jsxs("div",{className:"session-create-input-row",children:[c.jsx("input",{"aria-label":q.workingDirectory,placeholder:q.workingDirectoryPlaceholder,value:ee.cwd,onChange:O=>Oe(ue=>ue&&{...ue,cwd:O.target.value}),onKeyDown:O=>{O.key==="Enter"&&(O.preventDefault(),nt("claude"))}}),c.jsx("button",{"aria-label":q.browseDirectories,className:"session-create-icon-button",onClick:at,title:q.browseDirectories,type:"button",children:c.jsx(Tl,{"aria-hidden":"true"})})]})]}),ee.browser?c.jsxs("div",{className:"session-create-browser",children:[c.jsxs("div",{className:"session-create-browser-bar",children:[c.jsx("span",{title:ee.browser.path,children:ee.browser.path}),c.jsx("button",{"aria-label":q.refreshSessions,className:"session-create-icon-button",onClick:()=>Dt(ee.browser?.path??ee.cwd),title:q.refreshSessions,type:"button",children:ee.browser.loading?c.jsx(Wo,{className:"spin","aria-hidden":"true"}):c.jsx(zs,{"aria-hidden":"true"})})]}),ee.browser.createMode?c.jsxs("div",{className:"session-create-new-folder",children:[c.jsx("input",{"aria-label":q.newFolder,disabled:ee.browser.creating,placeholder:q.newFolderPlaceholder,value:ee.browser.newFolderName,onChange:O=>An(O.target.value),onKeyDown:O=>{O.key==="Enter"&&(O.preventDefault(),rt())}}),c.jsx("button",{"aria-label":q.cancel,className:"session-create-icon-button",disabled:ee.browser.creating,onClick:P,title:q.cancel,type:"button",children:c.jsx(Ft,{"aria-hidden":"true"})}),c.jsx("button",{"aria-label":q.create,className:"session-create-icon-button",disabled:ee.browser.creating||!ee.browser.newFolderName.trim(),onClick:rt,title:q.create,type:"button",children:ee.browser.creating?c.jsx(Wo,{className:"spin","aria-hidden":"true"}):c.jsx(wl,{"aria-hidden":"true"})})]}):c.jsxs("button",{className:"session-create-secondary-button",onClick:St,type:"button",children:[c.jsx(T0,{"aria-hidden":"true"}),q.newFolder]}),ee.browser.createError?c.jsx("p",{className:"session-create-error",children:ee.browser.createError}):null,c.jsxs("div",{className:"session-create-folder-list",children:[gu(ee.browser.path)?c.jsxs("button",{className:"session-create-folder-row",onClick:()=>Dt(gu(ee.browser?.path??"")??ee.cwd),type:"button",children:[c.jsx(Tl,{"aria-hidden":"true"}),".."]}):null,ee.browser.loading?c.jsx("p",{className:"empty-copy",children:q.loadingDirectories}):null,!ee.browser.loading&&ee.browser.error?c.jsx("p",{className:"session-create-error",children:ee.browser.error}):null,!ee.browser.loading&&!ee.browser.error&&ee.browser.loaded&&ee.browser.entries.length===0?c.jsx("p",{className:"empty-copy",children:q.remoteFolderEmpty}):null,!ee.browser.loading&&!ee.browser.error?ee.browser.entries.map(O=>{const ue=yu(ee.browser?.path??ee.cwd,O.name);return c.jsxs("button",{className:"session-create-folder-row",onClick:()=>Dt(ue),type:"button",children:[c.jsx(hu,{"aria-hidden":"true"}),c.jsx("span",{children:O.name})]},`${O.name}:${ue}`)}):null]}),c.jsxs("button",{className:"session-create-select-button",onClick:Pt,type:"button",children:[c.jsx(wl,{"aria-hidden":"true"}),q.chooseThisFolder]})]}):null,c.jsxs("button",{type:"button",onClick:()=>nt("claude"),children:[c.jsx(t0,{"aria-hidden":"true"}),c.jsxs("span",{children:[c.jsx("strong",{children:"Claude"}),c.jsx("small",{children:q.claudeSession})]})]}),c.jsxs("button",{type:"button",onClick:()=>nt("codex"),children:[c.jsx(ed,{"aria-hidden":"true"}),c.jsxs("span",{children:[c.jsx("strong",{children:"Codex"}),c.jsx("small",{children:q.codexSession})]})]})]}):null,qe?c.jsxs("div",{className:"session-context-menu",role:"menu",style:{left:qe.x,top:qe.y},onPointerDown:O=>O.stopPropagation(),children:[c.jsxs("button",{type:"button",role:"menuitem",onClick:()=>Pe(O=>$(O.sessionId)),children:[c.jsx(fd,{"aria-hidden":"true"}),q.open]}),c.jsxs("button",{type:"button",role:"menuitem",disabled:vt,onClick:()=>Pe(He),children:[c.jsx(B0,{"aria-hidden":"true"}),q.details]}),c.jsxs("button",{type:"button",role:"menuitem",disabled:vt,onClick:()=>Pe(he),children:[c.jsx(xi,{"aria-hidden":"true"}),q.copyResumeCommand]}),c.jsxs("button",{type:"button",role:"menuitem",disabled:vt||!se||!qe.session.branch&&!qe.session.diffStat,onClick:()=>Pe(O=>se?.(O.sessionId)),children:[c.jsx(b0,{"aria-hidden":"true"}),q.viewChanges]}),c.jsx("span",{className:"context-menu-separator"}),c.jsxs("button",{type:"button",role:"menuitem",disabled:vt,onClick:()=>Pe(ce),children:[c.jsx(gd,{"aria-hidden":"true"}),qe.session.pinned?q.unpin:q.pin]}),c.jsxs("button",{type:"button",role:"menuitem",disabled:vt,onClick:()=>Pe(W),children:[c.jsx(od,{"aria-hidden":"true"}),qe.session.archived?q.unarchive:q.archive]}),c.jsxs("button",{className:"danger",type:"button",role:"menuitem",onClick:()=>Pe(it),children:[c.jsx(Ry,{"aria-hidden":"true"}),q.delete]})]}):null]})}function H1({busy:l,connected:u,dismissed:r,feedback:o,synced:h,t:m,onPull:p,onPushMerge:j,onPushReplace:S,onSkip:x}){const V=!u||l!==null;return c.jsxs("section",{className:"control-section compact-section archive-sync-panel",children:[c.jsx("h2",{children:m.archiveSyncTitle}),c.jsx("p",{className:"empty-copy",children:h?m.archiveSyncSynced:r?m.archiveSyncSkippedState:m.archiveSyncBody}),c.jsxs("div",{className:"action-grid archive-sync-actions",children:[c.jsxs("button",{className:"icon-text-button",disabled:V,onClick:j,type:"button",children:[c.jsx(z0,{"aria-hidden":"true"}),l==="pushMerge"?m.archiveSyncSyncing:m.archiveSyncPushMerge]}),c.jsxs("button",{className:"icon-text-button",disabled:V,onClick:p,type:"button",children:[c.jsx(Si,{"aria-hidden":"true"}),l==="pull"?m.archiveSyncSyncing:m.archiveSyncPull]}),c.jsxs("button",{className:"icon-text-button",disabled:V,onClick:S,type:"button",children:[c.jsx(Sv,{"aria-hidden":"true"}),l==="pushReplace"?m.archiveSyncSyncing:m.archiveSyncPushReplace]}),c.jsxs("button",{className:"icon-text-button",disabled:V,onClick:x,type:"button",children:[c.jsx(Zp,{"aria-hidden":"true"}),m.archiveSyncSkip]})]}),o?c.jsx("p",{className:`empty-copy ${o.tone==="error"?"error-copy":"success-copy"}`,children:o.message}):null]})}function q1({pairing:l,phase:u,t:r,onForgetPairing:o}){const h=u==="connected"?"connected":l?u:r.notPaired;return c.jsxs("section",{className:"control-section compact-section",children:[c.jsx("h2",{children:r.currentDevice}),c.jsxs("dl",{children:[c.jsxs("div",{children:[c.jsx("dt",{children:r.daemon}),c.jsx("dd",{children:l?.displayName??l?.daemonId??r.notPaired})]}),c.jsxs("div",{children:[c.jsx("dt",{children:r.status}),c.jsx("dd",{children:h})]})]}),c.jsx("div",{className:"action-grid",children:c.jsxs("button",{className:"danger-button",disabled:!l,onClick:o,type:"button",children:[c.jsx(md,{"aria-hidden":"true"}),r.forget]})})]})}function B1({connected:l,metadata:u,showUpdate:r,updateBusy:o,restartBusy:h,t:m,updateStatus:p,onUpdate:j,onRestart:S}){const x=u.version&&u.latestVersion&&r?`${u.version} -> ${u.latestVersion}`:u.version||m.unknown;return c.jsxs("section",{className:"control-section compact-section",children:[c.jsx("h2",{children:m.desktopConnector}),c.jsx("dl",{children:c.jsxs("div",{children:[c.jsx("dt",{children:m.version}),c.jsx("dd",{children:u.loading?m.checking:x})]})}),c.jsxs("div",{className:"action-grid",children:[r?c.jsxs("button",{className:"primary-button",disabled:!l||o||h,onClick:j,type:"button",children:[c.jsx(Si,{"aria-hidden":"true"}),o?m.updating:m.update]}):null,c.jsxs("button",{className:"danger-button",disabled:!l||h,onClick:S,type:"button",children:[c.jsx(zs,{"aria-hidden":"true"}),h?m.restarting:m.restart]})]}),u.error?c.jsx("p",{className:"empty-copy",children:u.error}):null,p?c.jsx("p",{className:"empty-copy",children:p}):null]})}function L1({language:l,t:u,onLanguageChange:r}){return c.jsxs("section",{className:"control-section compact-section",children:[c.jsx("h2",{children:u.language}),c.jsxs("label",{className:"field",children:[c.jsx("span",{children:u.displayLanguage}),c.jsx(Xy,{ariaLabel:u.displayLanguage,options:[{value:"system",label:u.followSystem},{value:"en",label:u.english},{value:"zh",label:u.chinese}],value:l,onChange:o=>r(o)})]})]})}function Y1({notificationsBlocked:l,permission:u,settings:r,t:o,onToggleEnabled:h}){return c.jsxs("section",{className:"control-section compact-section",children:[c.jsx("h2",{children:o.notifications}),c.jsxs("label",{className:`toggle-field notification-toggle ${l?"disabled":""}`,children:[c.jsxs("span",{children:[c.jsx(Pp,{"aria-hidden":"true"}),o.browserAlerts]}),c.jsx("input",{type:"checkbox",checked:r.enabled&&!l&&u==="granted",disabled:l,onChange:m=>h(m.target.checked)})]}),l?c.jsx("p",{className:"empty-copy",children:o.notificationsBlocked}):null]})}function Q1({activeDaemonId:l,busy:u,t:r,targets:o,onConnect:h,onForget:m}){return c.jsxs("section",{className:"control-section compact-section",children:[c.jsx("h2",{children:r.savedDevices}),c.jsxs("div",{className:"stack-list",children:[o.map(p=>c.jsxs("div",{className:"data-row target-row",children:[c.jsxs("div",{children:[c.jsxs("strong",{children:[p.label,p.daemonId===l?` · ${r.active}`:""]}),c.jsxs("span",{children:[p.displayName??p.daemonId," ·"," ",p.lastConnectedAt?bu(p.lastConnectedAt):r.notConnectedRecently]})]}),c.jsxs("div",{className:"row-actions",children:[c.jsx("button",{"aria-label":`Connect to ${p.label}`,className:"icon-button",disabled:u,onClick:()=>h(p),type:"button",children:c.jsx(My,{"aria-hidden":"true"})}),c.jsx("button",{"aria-label":`Forget ${p.label}`,className:"icon-button danger-icon",disabled:u,onClick:()=>m(p.daemonId),type:"button",children:c.jsx(Ry,{"aria-hidden":"true"})})]})]},p.daemonId)),o.length===0?c.jsx("p",{className:"empty-copy",children:r.noSavedDevices}):null]})]})}const ry={loading:!1,files:null,error:null};function G1({client:l,sessionId:u,sessionTitle:r,onClose:o}){const[h,m]=y.useState("unstaged"),[p,j]=y.useState({unstaged:ry,staged:ry}),[S,x]=y.useState(null),[V,z]=y.useState(null),[L,Y]=y.useState(!1),[w,E]=y.useState(null),T=p[h],G=y.useCallback(async Z=>{j(q=>({...q,[Z]:{loading:!0,files:q[Z].files,error:null}}));try{const q=await l.request({action:"session.gitDiff.list",id:l.makeId("gitDiffList"),sessionId:u,scope:Z});j(oe=>({...oe,[Z]:{loading:!1,files:q.files,error:null}}))}catch(q){j(oe=>({...oe,[Z]:{loading:!1,files:null,error:q instanceof Error?q.message:String(q)}}))}},[l,u]);y.useEffect(()=>{!p[h].files&&!p[h].loading&&!p[h].error&&G(h)},[h,p,G]),y.useEffect(()=>{x(null),z(null),E(null)},[h]),y.useEffect(()=>{if(!S){z(null),E(null);return}let Z=!1;return Y(!0),E(null),l.request({action:"session.gitDiff.file",id:l.makeId("gitDiffFile"),sessionId:u,scope:h,path:S}).then(q=>{Z||(z(q),Y(!1))}).catch(q=>{Z||(E(q instanceof Error?q.message:String(q)),Y(!1))}),()=>{Z=!0}},[l,u,h,S]);const F=y.useMemo(()=>{const Z=q=>q?q.reduce((oe,De)=>({adds:oe.adds+De.additions,dels:oe.dels+De.deletions,count:oe.count+1}),{adds:0,dels:0,count:0}):{adds:0,dels:0,count:0};return{unstaged:Z(p.unstaged.files),staged:Z(p.staged.files)}},[p]);return c.jsxs("div",{className:"diff-drawer",role:"dialog","aria-label":"Git diff",children:[c.jsx("div",{className:"diff-drawer-backdrop",onClick:o,"aria-hidden":"true"}),c.jsxs("div",{className:"diff-drawer-panel",children:[c.jsxs("header",{className:"diff-drawer-header",children:[c.jsxs("div",{children:[c.jsx("strong",{children:"Changes"}),c.jsx("span",{children:r})]}),c.jsx("button",{type:"button",className:"icon-button",onClick:o,"aria-label":"Close changes",children:c.jsx(Ft,{"aria-hidden":"true"})})]}),c.jsx("div",{className:"diff-tabs",role:"tablist",children:["unstaged","staged"].map(Z=>{const q=F[Z],oe=h===Z;return c.jsxs("button",{type:"button",role:"tab","aria-selected":oe,className:`diff-tab ${oe?"active":""}`,onClick:()=>m(Z),children:[c.jsx("span",{className:"diff-tab-label",children:Z==="unstaged"?"Working":"Staged"}),q.count>0?c.jsxs("span",{className:"diff-tab-meta",children:[c.jsxs("span",{className:"diff-add",children:["+",q.adds]}),c.jsxs("span",{className:"diff-del",children:["-",q.dels]})]}):null]},Z)})}),c.jsxs("div",{className:"diff-body",children:[c.jsxs("aside",{className:"diff-files","aria-label":"Changed files",children:[T.loading&&!T.files?c.jsx("p",{className:"diff-empty",children:"Loading…"}):null,T.error?c.jsx("p",{className:"diff-empty diff-error",children:T.error}):null,T.files&&T.files.length===0?c.jsx("p",{className:"diff-empty",children:"No changes."}):null,T.files?.map(Z=>c.jsxs("button",{type:"button",className:`diff-file ${S===Z.path?"active":""}`,onClick:()=>x(Z.path),children:[c.jsx("span",{className:`diff-status diff-status-${Z.status}`,children:Z.status}),c.jsx("span",{className:"diff-file-path",title:Z.path,children:Z.path}),c.jsxs("span",{className:"diff-file-stats",children:[Z.binary?c.jsx("span",{className:"diff-binary",children:"bin"}):null,!Z.binary&&Z.additions>0?c.jsxs("span",{className:"diff-add",children:["+",Z.additions]}):null,!Z.binary&&Z.deletions>0?c.jsxs("span",{className:"diff-del",children:["-",Z.deletions]}):null]})]},Z.path))]}),c.jsx("section",{className:"diff-patch","aria-label":"File diff",children:S?L?c.jsx("p",{className:"diff-empty",children:"Loading patch…"}):w?c.jsx("p",{className:"diff-empty diff-error",children:w}):V?.binary?c.jsx("p",{className:"diff-empty",children:"Binary file — no inline diff."}):V?c.jsx(V1,{patch:V.patch,truncated:V.truncated}):null:c.jsxs("div",{className:"diff-empty",children:[c.jsx(hd,{"aria-hidden":"true"}),c.jsx("p",{children:"Select a file to view its diff."})]})})]})]})]})}function V1({patch:l,truncated:u}){const r=y.useMemo(()=>l.split(`
|
|
18
|
-
`),[l]);return c.jsxs("div",{className:"diff-patch-view",children:[r.map((o,h)=>{const m=X1(o);return c.jsx("div",{className:`diff-line ${m}`,children:c.jsx("span",{className:"diff-line-text",children:o||" "})},h)}),u?c.jsx("p",{className:"diff-empty",children:"Patch truncated — file is larger than the inline limit."}):null]})}function X1(l){return l.startsWith("diff ")||l.startsWith("index ")||l.startsWith("---")||l.startsWith("+++")?"header":l.startsWith("@@")?"hunk":l.startsWith("+")?"add":l.startsWith("-")?"del":"ctx"}const Zy="pair",Ml="vibelet.web.pairing",oy="vibelet.web.deviceId";class pu extends Error{constructor(u,r){super(r),this.code=u,this.name="PairingCreateError"}}function Cd(l){return!!l&&typeof l=="object"&&!Array.isArray(l)}function Z1(l){const u=l.replace(/-/g,"+").replace(/_/g,"/"),r=u.padEnd(Math.ceil(u.length/4)*4,"=");return decodeURIComponent(Array.from(atob(r),o=>`%${o.charCodeAt(0).toString(16).padStart(2,"0")}`).join(""))}function K1(l){const[u,r,o,h,m,p]=l;return!r||!Number.isFinite(o)||o<=0?null:{kind:u==="relay"?"relay":"direct",host:r,port:Math.floor(o),source:h,stability:m,...p===!0?{secure:!0}:{}}}function $1(l){if(!Cd(l))return null;const{kind:u,host:r,port:o,source:h,stability:m,secure:p}=l;return u!=="direct"&&u!=="relay"||typeof r!="string"||!r.trim()||typeof o!="number"||!Number.isFinite(o)||o<=0||typeof h!="string"||typeof m!="string"?null:{kind:u,host:r.trim(),port:Math.floor(o),source:h,stability:m,...p===!0?{secure:!0}:{}}}function J1(l){const u=l.trim().split(".");if(u.length!==4)return!1;const r=u.map(m=>/^\d+$/.test(m)?Number(m):Number.NaN);if(r.some(m=>!Number.isInteger(m)||m<0||m>255))return!1;const[o,h]=r;return o===10||o===172&&h>=16&&h<=31||o===192&&h===168}function F1(l){const u=l.trim();return u.includes(":")&&!u.startsWith("[")?`[${u}]`:u}function I1(l,u){return u.protocol==="https:"&&l.secure!==!0?null:`${l.secure===!0?"wss":"ws"}://${F1(l.host)}:${l.port}`}function dy(l){return J1(l.host)?0:l.source==="local_network"?1:l.source==="configured_host"?2:3}function W1(l,u){const r=u?.port??l.port,o=u?.canonicalHost??l.canonicalHost;if(!o||typeof r!="number"||!Number.isFinite(r))return[];const h=Math.floor(r);return[{kind:"direct",host:o,port:h,source:"fallback",stability:"stable"},...[...u?.fallbackHosts??[],...l.fallbackHosts??[]].map(m=>({kind:"direct",host:m,port:h,source:"fallback",stability:"stable"}))]}function P1(l,u,r=window.location){const o=[...u?.connections??[],...l.connections??[],...W1(l,u)].map($1).filter(h=>!!h).filter(h=>h.kind==="direct").sort((h,m)=>dy(h)-dy(m));for(const h of o){const m=I1(h,r);if(m)return m}}function eb(l){if(!l.d||!l.c)return null;const u=Array.isArray(l.o)?l.o.map(K1).filter(r=>!!r):void 0;return{daemonId:l.d,pairNonce:l.c,...l.n?{displayName:l.n}:{},...l.h?{canonicalHost:l.h}:{},...Number.isFinite(l.p)?{port:l.p}:{},...Array.isArray(l.f)?{fallbackHosts:l.f.filter(r=>typeof r=="string")}:{},...u?.length?{connections:u}:{},...l.e?{expiresAt:l.e}:{}}}function tb(l){return!l.daemonId||!l.pairNonce?null:{daemonId:l.daemonId,displayName:l.displayName,canonicalHost:l.canonicalHost,fallbackHosts:l.fallbackHosts,port:l.port,connections:l.connections,pairNonce:l.pairNonce,expiresAt:l.expiresAt}}function nb(l=window.location.hash){const u=l.startsWith("#")?l.slice(1):l,r=new URLSearchParams(u).get(Zy);if(!r)return null;try{const o=JSON.parse(Z1(r));if(!Cd(o))return null;if(o.t==="vp")return eb(o);if(o.type==="vibelet-pair")return tb(o)}catch{return null}return null}function ab(){if(!window.location.hash.includes(`${Zy}=`))return;const l=`${window.location.pathname}${window.location.search}`;window.history.replaceState(null,"",l)}function lb(l=window.localStorage){const u=l.getItem(oy);if(u)return u;const r=typeof crypto.randomUUID=="function"?crypto.randomUUID():`web_${Date.now().toString(36)}_${Math.random().toString(36).slice(2)}`;return l.setItem(oy,r),r}function fy(l){const u=l.getItem(Ml);if(!u)return null;try{const r=JSON.parse(u);return!r.daemonId||!r.deviceId||!r.pairToken?null:{daemonId:r.daemonId,displayName:r.displayName,deviceId:r.deviceId,pairToken:r.pairToken,pairedAt:r.pairedAt??new Date().toISOString(),webSocketUrl:typeof r.webSocketUrl=="string"?r.webSocketUrl:void 0}}catch{return null}}function Ad(l){if(typeof window>"u")return null;try{return l===window.localStorage?window.sessionStorage:null}catch{return null}}function ib(l=window.localStorage,u=Ad(l)){const r=fy(l);if(r)return r;const o=u?fy(u):null;return o?(l.setItem(Ml,JSON.stringify(o)),u?.removeItem(Ml),o):null}function hy(l,u=window.localStorage,r=Ad(u)){u.setItem(Ml,JSON.stringify(l)),r?.removeItem(Ml)}function Ky(l=window.localStorage,u=Ad(l)){l.removeItem(Ml),u?.removeItem(Ml)}function sb(l,u=Date.now()){if(!l.expiresAt)return!1;const r=new Date(l.expiresAt).getTime();return Number.isFinite(r)&&r<u}async function cb(l){const u=await l.text().catch(()=>"");try{const r=JSON.parse(u);if(Cd(r)&&r.error==="pair_window_expired")return new pu("pair_window_expired","Pairing link expired.")}catch{}return new pu("pairing_failed",u||"Pairing failed.")}async function ub(l,u=lb()){if(sb(l))throw new pu("pair_window_expired","Pairing link expired.");const r=await fetch("/pair/create",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({daemonId:l.daemonId,pairNonce:l.pairNonce,deviceId:u,deviceName:"Vibelet Web"})});if(!r.ok)throw await cb(r);const o=await r.json();return{daemonId:o.daemonId,displayName:o.displayName||l.displayName,deviceId:o.deviceId,pairToken:o.pairToken,pairedAt:new Date().toISOString(),webSocketUrl:P1(l,o)}}function rb(l){return l.filter(u=>u.archived===!0).map(u=>u.sessionId)}function ob(l,u,r){return l.ok?{tone:"success",message:u.replace("{n}",String(l.archivedSessionIds.length))}:l.error==="timeout"?{tone:"error",message:r.timeout}:l.error==="not_connected"?{tone:"error",message:r.disconnected}:{tone:"error",message:r.generic.replace("{error}",l.error)}}async function db(l,u,r){if(!l?.isConnected)return{ok:!1,error:"not_connected"};try{const o=await l.request({action:"sessions.archiveSync",id:l.makeId("archive_sync"),mode:u,...u==="pull"?{}:{archivedSessionIds:r??[]}});return{ok:!0,archivedSessionIds:Array.isArray(o.archivedSessionIds)?o.archivedSessionIds.filter(h=>typeof h=="string"&&h.length>0):[]}}catch(o){return{ok:!1,error:o instanceof Error?o.message:String(o)}}}const $y="vibelet.web.savedTargets",Jy=12;function fb(l){return!!l&&typeof l=="object"&&!Array.isArray(l)}function hb(l){if(!fb(l)||typeof l.daemonId!="string"||typeof l.deviceId!="string"||typeof l.pairToken!="string"||typeof l.pairedAt!="string")return null;const u=typeof l.displayName=="string"?l.displayName:void 0,r=typeof l.label=="string"&&l.label.trim()?l.label.trim():u||l.daemonId.slice(0,10);return{daemonId:l.daemonId,deviceId:l.deviceId,pairToken:l.pairToken,pairedAt:l.pairedAt,displayName:u,webSocketUrl:typeof l.webSocketUrl=="string"?l.webSocketUrl:void 0,label:r,lastConnectedAt:typeof l.lastConnectedAt=="string"?l.lastConnectedAt:void 0}}function Fy(l){if(!Array.isArray(l))return[];const u=new Set,r=[];for(const o of l){const h=hb(o);if(!(!h||u.has(h.daemonId))&&(u.add(h.daemonId),r.push(h),r.length>=Jy))break}return r}function mb(l=window.localStorage){const u=l.getItem($y);if(!u)return[];try{return Fy(JSON.parse(u))}catch{return[]}}function Iy(l,u=window.localStorage){u.setItem($y,JSON.stringify(Fy(l)))}function yb(l,u,r=new Date().toISOString()){return[{...u,label:u.displayName||u.daemonId.slice(0,10),lastConnectedAt:r},...l.filter(h=>h.daemonId!==u.daemonId)].slice(0,Jy)}function gb(l,u){return l.filter(r=>r.daemonId!==u)}const ld={version:"",latestVersion:"",loading:!1,error:null};function my(l){const u=l.match(/^\d+/);return u?Number(u[0]):0}function pb(l,u){const r=l.split(/[+-]/,1)[0].split(".").map(my),o=u.split(/[+-]/,1)[0].split(".").map(my),h=Math.max(r.length,o.length);for(let m=0;m<h;m+=1){const p=r[m]??0,j=o[m]??0;if(p<j)return-1;if(p>j)return 1}return 0}function vb(l,u){return pb(l,u)<0}function bb(l){const u=l.toLowerCase();if(u.includes("alpha"))return"alpha";if(u.includes("beta"))return"beta";if(l.trim())return"latest"}function Sb(l,u,r){const o=l?.webSocketUrl?l.webSocketUrl:u.origin;try{const h=new URL(o);return h.protocol==="ws:"&&(h.protocol="http:"),h.protocol==="wss:"&&(h.protocol="https:"),h.pathname="/health",h.search="",h.hash="",h.toString()}catch{return new URL("/health",u.origin).toString()}}function xb(l){if(!l||typeof l!="object")return{version:"",latestVersion:""};const u=l;return{version:typeof u.version=="string"?u.version.trim():"",latestVersion:typeof u.latestVersion=="string"?u.latestVersion.trim():""}}const jb=/[\n,,]+/,Cb=6,Ab=18;function Nd(l){return typeof l=="string"&&l.trim().length>0?l:"/"}function Nb(l){const u=l.replace(/\s+/g," ").trim();return u?u.slice(0,Ab):null}function Su(l){if(!Array.isArray(l))return[];const u=new Set,r=[];for(const o of l){if(typeof o!="string")continue;const h=Nb(o);if(!h)continue;const m=h.toLowerCase();if(!u.has(m)&&(u.add(m),r.push(h),r.length>=Cb))break}return r}function Tb(l){return Su(l.split(jb))}function Eb(l){return Su(l).join(", ")}function wb(l){if(!l||typeof l!="object"||Array.isArray(l))return{};const u={};for(const[r,o]of Object.entries(l)){const h=Su(Array.isArray(o)?o:[]);h.length>0&&(u[Nd(r)]=h)}return u}function Mb(l,u,r){const o=Nd(u),h=Su(r);if(h.length===0){const{[o]:m,...p}=l;return p}return{...l,[o]:h}}function _b(l){const u=y.useCallback((T,G)=>{l.updateSessionListPreferences(F=>({...F,archiveSyncedDaemonIds:G==="synced"?{...F.archiveSyncedDaemonIds,[T]:!0}:F.archiveSyncedDaemonIds,archiveSyncCardDismissedDaemonIds:{...F.archiveSyncCardDismissedDaemonIds,[T]:!0}}))},[l]),r=y.useCallback((T,G)=>{const F=T==="pull"?l.t.archiveSyncSuccessPull:T==="pushMerge"?l.t.archiveSyncSuccessMerge:l.t.archiveSyncSuccessPush;if(l.setArchiveSyncStatus(ob(G,F,{timeout:l.t.archiveSyncFailedTimeout,disconnected:l.t.archiveSyncFailedDisconnected,generic:l.t.archiveSyncFailedGeneric})),!G.ok)return;const Z=new Set(G.archivedSessionIds);l.setSessions(q=>q.map(oe=>({...oe,archived:Z.has(oe.sessionId)}))),l.pairingRef.current?.daemonId&&u(l.pairingRef.current.daemonId,"synced"),l.requestSessions({force:!0})},[u,l]),o=y.useCallback(async T=>{if(l.archiveSyncBusy)return;l.setArchiveSyncBusy(T),l.setArchiveSyncStatus(null);const G=await db(l.clientRef.current,T,rb(l.displaySessions));r(T,G),l.setArchiveSyncBusy(null)},[r,l]),h=y.useCallback(()=>{l.pairing?.daemonId&&(u(l.pairing.daemonId,"dismissed"),l.setArchiveSyncStatus({tone:"success",message:l.t.archiveSyncSkipped}))},[u,l]),m=y.useCallback(async T=>{const G=l.clientRef.current;if(G?.isConnected&&!(T==="update"&&!bi("Update desktop connector?"))&&!(T==="restart"&&!bi("Restart desktop connector?"))){l.setAdmin(F=>({...F,loading:!0,action:T,statusText:""})),l.setErrorText(null);try{if(T==="update"){const F=bb(l.daemonMetadata.version),Z=await G.request({action:"daemon.update",id:G.makeId("daemon_update"),...F?{channel:F}:{}});l.setAdmin(q=>({...q,loading:!1,action:null,statusText:Z.alreadyRunning?"Connector update already running":"Connector update started"}));return}await G.request({action:"daemon.restart",id:G.makeId("daemon_restart")}),l.setAdmin(F=>({...F,loading:!1,action:null,statusText:"Connector restart requested"})),l.refreshDaemonMetadata()}catch(F){l.setAdmin(Z=>({...Z,loading:!1,action:null})),l.setErrorText(F instanceof Error?F.message:String(F))}}},[l]),p=y.useCallback(async()=>{if(!l.activeSession)return;const T=Hv(l.activeSession,l.messages);Bv(Uv(Un(l.activeSession),l.activeSession.sessionId),T),await navigator.clipboard?.writeText(T).catch(()=>{})},[l.activeSession,l.messages]),j=y.useCallback(async()=>{if(!("Notification"in window)){l.setNotificationPermission("unsupported"),l.setErrorText("Browser notifications are not supported.");return}const T=await Notification.requestPermission();l.notificationPermissionRef.current=T,l.setNotificationPermission(T),T==="granted"&&l.updateNotificationSettings({enabled:!0}),l.setStatusText(T==="granted"?"Browser notifications enabled":"Browser notifications not enabled")},[l]),S=y.useCallback(()=>{bi("Forget this browser pairing?")&&(l.intentionalDisconnectRef.current=!0,l.connectionAttemptIdRef.current+=1,Ky(),l.clientRef.current?.disconnect(),l.historyCacheRef.current={},l.historyCacheDaemonIdRef.current=null,l.messagesSessionIdRef.current=null,l.lastHistorySessionIdRef.current=null,l.setMessages([]),l.setPairing(null),l.setDaemonMetadata(ld),l.setPhase("missing-pair"),l.setStatusText(l.t.missingPair))},[l]),x=y.useCallback(T=>{if(T&&l.notificationPermission==="default"){j();return}l.updateNotificationSettings({enabled:T})},[l,j]),V=y.useCallback(T=>{l.connectWithPairingRef.current(T,!0)},[l]),z=y.useCallback(T=>l.saveTargets(gb(l.savedTargets,T)),[l]),L=y.useCallback(T=>{l.setActiveSessionId(T.sessionId),l.setRenameTitle(T.customTitle??T.title??""),l.setDetailsOpen(!0)},[l]),Y=y.useCallback(T=>{const G=l.directoryTags[Nd(T)]??[],F=window.prompt(l.t.directoryTags,Eb(G));if(F===null)return;const Z=Tb(F);l.updateSessionListPreferences(q=>({...q,directoryTags:Mb(q.directoryTags,T,Z)}))},[l]),w=y.useCallback(T=>{l.setControlTab("files"),l.listDirectory(T,{updateRoute:!0})},[l]),E=y.useCallback(T=>{navigator.clipboard?.writeText(Hy(T)).catch(()=>{})},[]);return{runArchiveSync:o,skipArchiveSync:h,runAdminAction:m,exportActiveSession:p,clearPairing:S,setNotificationsEnabled:x,connectSavedTarget:V,forgetSavedTarget:z,openSessionDetails:L,editFolderTags:Y,browseFolder:w,copyResumeCommand:E}}function yy(l){return`${l}_${Date.now().toString(36)}_${Math.random().toString(36).slice(2,8)}`}function Rb(l,u=window.location){return l?.webSocketUrl?l.webSocketUrl:`${u.protocol==="https:"?"wss:":"ws:"}//${u.host}`}class Db{socket=null;pending=new Map;messageListeners=new Set;closeListeners=new Set;async connect(u){this.disconnect();const r=new WebSocket(Rb(u));this.socket=r;const o=new Promise((h,m)=>{r.onopen=()=>h(),r.onerror=()=>m(new Error("WebSocket connection failed."))});return r.onmessage=h=>this.handleSocketMessage(h.data),r.onclose=()=>{this.socket===r&&(this.socket=null),this.rejectPending(new Error("WebSocket disconnected.")),this.closeListeners.forEach(h=>h())},await o,await this.request({action:"auth.hello",id:yy("auth"),pairToken:u.pairToken,daemonId:u.daemonId,deviceId:u.deviceId,locale:navigator.language})}request(u,r={}){return!this.socket||this.socket.readyState!==WebSocket.OPEN?Promise.reject(new Error("WebSocket is not connected.")):new Promise((o,h)=>{const m={resolve:o,reject:h};r.timeoutMs&&r.timeoutMs>0&&(m.timeoutId=setTimeout(()=>{this.pending.delete(u.id),h(new Error(r.timeoutMessage||"Request timed out."))},r.timeoutMs)),this.pending.set(u.id,m),this.socket?.send(JSON.stringify(u))})}send(u){this.socket?.readyState===WebSocket.OPEN&&this.socket.send(JSON.stringify(u))}onMessage(u){return this.messageListeners.add(u),()=>this.messageListeners.delete(u)}onClose(u){return this.closeListeners.add(u),()=>this.closeListeners.delete(u)}disconnect(){this.rejectPending(new Error("WebSocket disconnected.")),this.socket?.close(1e3,"client disconnect"),this.socket=null}get isConnected(){return this.socket?.readyState===WebSocket.OPEN}makeId(u){return yy(u)}handleSocketMessage(u){if(typeof u!="string")return;let r;try{r=JSON.parse(u)}catch{return}if(r.type!=="pong"){if(r.type==="response"){const o=this.pending.get(r.id);if(o){this.pending.delete(r.id),o.timeoutId&&clearTimeout(o.timeoutId),r.ok?o.resolve(r.data):o.reject(new Error(r.error||"Request failed."));return}}this.messageListeners.forEach(o=>o(r))}}rejectPending(u){for(const r of this.pending.values())r.timeoutId&&clearTimeout(r.timeoutId),r.reject(u);this.pending.clear()}}const Wy="vibelet.web.sessionListCache",Py=120;function zb(l){return!!l&&typeof l=="object"&&!Array.isArray(l)}function kb(l){if(!zb(l)||typeof l.daemonId!="string"||!l.daemonId)return null;const u=Oy(l.page);return{daemonId:l.daemonId,page:{...u,sessions:u.sessions.slice(0,Py)},cachedAt:typeof l.cachedAt=="string"?l.cachedAt:new Date(0).toISOString()}}function Ob(l,u=window.localStorage){if(!l)return null;try{const r=u.getItem(Wy);if(!r)return null;const o=kb(JSON.parse(r));return o?.daemonId===l?o.page:null}catch{return null}}function Ub(l,u,r=window.localStorage,o=new Date().toISOString()){if(!l)return;const h={daemonId:l,page:{...u,sessions:u.sessions.slice(0,Py)},cachedAt:o};r.setItem(Wy,JSON.stringify(h))}function Hb(l){return l instanceof Error&&l.message==="auth_failed"}function qb(l,u){return l instanceof pu&&l.code==="pair_window_expired"?u.pairingLinkExpired:l instanceof Error?l.message:String(l)}function Bb(l){const u=y.useRef(null),r=y.useRef(l);r.current=l;const o=y.useCallback(m=>{const p=r.current,j=m??p.pairingRef.current;!j||p.intentionalDisconnectRef.current||(p.reconnectTimerRef.current&&window.clearTimeout(p.reconnectTimerRef.current),p.reconnectTimerRef.current=window.setTimeout(()=>{p.reconnectTimerRef.current=null,p.connectWithPairingRef.current(j,!0)},Tv))},[]),h=y.useCallback(async(m,p=!1)=>{const j=r.current;j.reconnectTimerRef.current&&(window.clearTimeout(j.reconnectTimerRef.current),j.reconnectTimerRef.current=null),j.intentionalDisconnectRef.current=!1,j.setPhase("connecting"),j.setStatusText(p?j.t.reconnectingToDaemon:j.t.connectingToDaemon),j.setErrorText(null);const S=new Db,x=j.connectionAttemptIdRef.current+1;j.connectionAttemptIdRef.current=x;const V=j.clientRef.current;j.clientRef.current=S,V?.disconnect();const z=()=>j.connectionAttemptIdRef.current===x&&j.clientRef.current===S;S.onMessage(j.handleServerMessage),S.onClose(()=>{j.clientRef.current===S&&(j.clientRef.current=null,!j.intentionalDisconnectRef.current&&(j.setPhase("connecting"),j.setStatusText(j.t.reconnectingToDaemon),j.setErrorText("The daemon WebSocket closed. Vibelet Web will retry automatically."),o(j.pairingRef.current??m)))});try{let L=m,Y;try{Y=await S.connect(m)}catch(T){if(!m.webSocketUrl)throw T;L={...m,webSocketUrl:void 0},j.setStatusText(j.t.reconnectingToDaemon),Y=await S.connect(L)}if(!z())return;const w={...L,displayName:Y.displayName??L.displayName};j.historyCacheDaemonIdRef.current&&j.historyCacheDaemonIdRef.current!==w.daemonId&&(j.historyCacheRef.current={},j.messagesSessionIdRef.current=null,j.lastHistorySessionIdRef.current=null,j.setMessages([])),j.historyCacheDaemonIdRef.current=w.daemonId,j.setPairing(w),j.pairingRef.current=w,hy(w);const E=Ob(w.daemonId);E&&j.setSessionsFromPage(E,!1),j.setSavedTargets(T=>{const G=yb(T,w);return Iy(G),G}),j.setPhase("connected"),j.setStatusText(j.t.connectedTo(Y.displayName??m.displayName??"Vibelet Daemon")),j.refreshDaemonMetadata(w),await j.requestReconnectSnapshot(),await j.fetchAgentResources(j.agent,j.cwd),j.reportLog("web.connected",{reconnecting:p})}catch(L){if(!z())return;Hb(L)&&Ky(),j.setPhase("error"),j.setStatusText(j.t.connectionFailed),j.setErrorText(L instanceof Error?L.message:String(L)),o(m)}},[o]);y.useEffect(()=>{const m=r.current;m.connectWithPairingRef.current=h},[h]),y.useEffect(()=>{const m=r.current;let p=!1;async function j(){const S=nb(),V=ib()??m.rememberedTarget;if(!S&&!V){m.setPhase("missing-pair"),m.setStatusText(m.t.missingPair);return}try{m.setPhase("pairing"),S&&u.current?.pairNonce!==S.pairNonce&&(u.current={pairNonce:S.pairNonce,promise:ub(S)});const z=S?await u.current?.promise:V;if(!z||p)return;S&&(hy(z),u.current=null,ab()),await m.connectWithPairingRef.current(z)}catch(z){if(p)return;S&&(u.current=null),m.setPhase("error"),m.setStatusText(m.t.pairingFailed),m.setErrorText(qb(z,m.t))}}return j(),()=>{p=!0,m.intentionalDisconnectRef.current=!0,m.connectionAttemptIdRef.current+=1,m.reconnectTimerRef.current&&window.clearTimeout(m.reconnectTimerRef.current),m.clientRef.current?.disconnect()}},[l.t]),y.useEffect(()=>{const m=r.current;if(m.phase!=="connected")return;const p=window.setTimeout(()=>{m.requestSessions({force:!0}).catch(j=>m.setErrorText(j instanceof Error?j.message:String(j)))},260);return()=>window.clearTimeout(p)},[l.phase,l.requestSessions,l.search,l.sinceFilter]),y.useEffect(()=>{const m=r.current;m.phase==="connected"&&m.fetchAgentResources(m.agent,m.cwd)},[l.agent,l.cwd,l.fetchAgentResources,l.phase])}function Io(l){return typeof l=="string"&&l.trim().length>0?l:void 0}function Lb(l=window.location.search){const u=new URLSearchParams(l),r=Io(u.get("folder")),o=Io(u.get("file")),h=Io(u.get("cwd"));return{...r?{folder:r}:{},...o?{file:o}:{},...h?{cwd:h}:{}}}function Yb(l,u,r=[]){const o=new URLSearchParams(l);for(const m of r)o.delete(m);for(const[m,p]of Object.entries(u))p?o.set(m,p):o.delete(m);const h=o.toString();return h?`?${h}`:""}function gy(l,u={}){const r=u.history??window.history,o=u.location??window.location,h=[];l.folder&&h.push("file","cwd"),l.file&&h.push("folder");const m=Yb(o.search,l,h),p=`${o.pathname}${m}${o.hash}`;if(u.replace){r.replaceState(null,"",p);return}r.pushState(null,"",p)}function Qb(l){const{clientRef:u,pairing:r,cwd:o,phase:h,controlTab:m,setControlTab:p,setBusy:j,setErrorText:S}=l,x=y.useRef(!1),[V,z]=y.useState([]),[L,Y]=y.useState(!1),[w,E]=y.useState({path:on,entries:[],loading:!1,loaded:!1}),[T,G]=y.useState(""),[F,Z]=y.useState(null),[q,oe]=y.useState(!1),[De,he]=y.useState("edit"),Te=y.useCallback(async C=>{if(!(!C?.length||!r)){Y(!0),S(null);try{const k=[];for(const $ of Array.from(C)){const W=await fetch(`/upload?name=${encodeURIComponent($.name)}`,{method:"POST",headers:{authorization:`Bearer ${r.pairToken}`,"content-type":$.type||"application/octet-stream"},body:$});if(!W.ok)throw new Error(await W.text().catch(()=>"Upload failed.")||"Upload failed.");const ce=Mv(await W.json());if(!ce)throw new Error("Daemon did not return an uploaded file path.");k.push({path:ce,name:$.name,type:$.type||"application/octet-stream",size:$.size})}z($=>[...$,...k])}catch(k){S(k instanceof Error?k.message:String(k))}finally{Y(!1)}}},[r,S]),be=y.useCallback(async(C,k,$)=>{if(r){S(null);try{F?.objectUrl&&URL.revokeObjectURL(F.objectUrl);const W=await fetch(Ko(C,k),{headers:{authorization:`Bearer ${r.pairToken}`}});if(!W.ok)throw new Error(await W.text().catch(()=>"File open failed.")||"File open failed.");const ce=W.headers.get("content-type")??"application/octet-stream";if(kv(C,ce))Z({path:C,cwd:k,kind:"text",contentType:ce,text:await W.text(),etag:uu(W.headers,"etag"),lastModified:uu(W.headers,"last-modified"),size:Number(W.headers.get("content-length"))||void 0,dirty:!1});else{const v=await W.blob();Z({path:C,cwd:k,kind:Ov(C,ce)?"image":"binary",contentType:ce,text:"",objectUrl:URL.createObjectURL(v),etag:uu(W.headers,"etag"),lastModified:uu(W.headers,"last-modified"),size:v.size,dirty:!1})}oe(!1),he("edit"),p("files"),$?.updateRoute&&gy({file:C,...k?{cwd:k}:{}},{replace:$.replaceRoute})}catch(W){S(W instanceof Error?W.message:String(W))}}},[r,F?.objectUrl,p,S]),it=y.useCallback(async C=>{if(!(!r||!F||F.kind!=="text")){j(!0),S(null);try{const k=await fetch(Ko(F.path,F.cwd),{method:"PUT",headers:{authorization:`Bearer ${r.pairToken}`,"content-type":"text/markdown; charset=utf-8",...F.etag&&!C?.force?{"if-match":F.etag}:{}},body:F.text});if(!k.ok)throw k.status===409?(oe(!0),new Error(qy(F.path))):new Error(await k.text().catch(()=>"File save failed.")||"File save failed.");oe(!1);const $=await k.json().catch(()=>({}));Z(W=>W&&{...W,dirty:!1,etag:typeof $.etag=="string"?$.etag:W.etag,lastModified:typeof $.lastModified=="string"?$.lastModified:W.lastModified,size:typeof $.size=="number"?$.size:W.size})}catch(k){S(k instanceof Error?k.message:String(k))}finally{j(!1)}}},[r,F,j,S]),Je=y.useCallback(async()=>{if(!(!r||!F))try{const C=await fetch(Ko(F.path,F.cwd),{headers:{authorization:`Bearer ${r.pairToken}`}});if(!C.ok)throw new Error("Download failed.");const k=URL.createObjectURL(await C.blob()),$=document.createElement("a");$.href=k,$.download=El(F.path),$.click(),URL.revokeObjectURL(k)}catch(C){S(C instanceof Error?C.message:String(C))}},[r,F,S]),Ce=y.useCallback(async(C=w.path,k)=>{const $=u.current;if($?.isConnected){E(W=>({...W,path:C,loading:!0,loaded:!1,error:void 0}));try{const W=await $.request({action:"dirs.list",id:$.makeId("dirs"),path:C,cwd:o||void 0});E({path:C,entries:W.entries??[],loading:!1,loaded:!0}),k?.updateRoute&&gy({folder:C},{replace:k.replaceRoute})}catch(W){E(ce=>({...ce,loading:!1,loaded:!0,error:W instanceof Error?W.message:String(W)}))}}},[u,o,w.path]),Ze=y.useCallback(async C=>{const k=u.current;if(!k?.isConnected)throw new Error("WebSocket is not connected.");return((await k.request({action:"dirs.list",id:k.makeId("dirs"),path:C,cwd:o||void 0},{timeoutMs:1e4,timeoutMessage:"Directory list timed out."})).entries??[]).filter(W=>W.isDirectory)},[u,o]);y.useEffect(()=>{m!=="files"||h!=="connected"||w.loading||w.loaded||Ce(w.path||o||on)},[m,o,w.loaded,w.loading,w.path,Ce,h]),y.useEffect(()=>{if(h!=="connected"||x.current)return;const C=Lb();if(!C.folder&&!C.file){x.current=!0;return}if(x.current=!0,p("files"),C.folder){Ce(C.folder,{updateRoute:!1});return}C.file&&(C.cwd&&E(k=>({...k,path:C.cwd,loaded:!1})),be(C.file,C.cwd,{updateRoute:!1}))},[Ce,be,h,p]);const He=y.useCallback(async()=>{const C=u.current;if(!(!C?.isConnected||T.trim().length===0)){j(!0),S(null);try{await C.request({action:"dirs.create",id:C.makeId("mkdir"),path:yu(w.path,T),cwd:o||void 0}),G(""),await Ce(w.path)}catch(k){S(k instanceof Error?k.message:String(k))}finally{j(!1)}}},[u,o,w.path,Ce,T,j,S]),Qe=y.useCallback(async C=>{const k=u.current;if(!k?.isConnected)throw new Error("WebSocket is not connected.");await k.request({action:"dirs.create",id:k.makeId("mkdir"),path:C,cwd:o||void 0},{timeoutMs:1e4,timeoutMessage:"Directory creation timed out."})},[u,o]);return{attachments:V,setAttachments:z,uploadBusy:L,directory:w,setDirectory:E,newDirName:T,setNewDirName:G,remoteFile:F,setRemoteFile:Z,remoteFileConflict:q,remoteFileMode:De,setRemoteFileMode:he,uploadFiles:Te,openRemoteFile:be,saveRemoteFile:it,downloadRemoteFile:Je,listDirectory:Ce,listSessionDirectories:Ze,createDirectory:He,createSessionDirectory:Qe}}function py(l,u,r){return Math.min(Math.max(Math.round(l),u),r)}function Gb(l){return{workspaceClassName:["workspace",l.leftCollapsed&&"left-sidebar-collapsed"].filter(Boolean).join(" "),wideMainClassName:["wide-main",l.rightCollapsed&&"right-sidebar-collapsed"].filter(Boolean).join(" "),style:{"--left-pane-width":`${l.leftPaneWidth}px`,"--right-pane-width":`${l.rightPaneWidth}px`}}}const eg="vibelet.web.preferences",tg=8,vy=12,Vb=10,ng={searchHistory:[],sinceFilter:"30d",hideArchived:!1,groupFolders:!1,collapsedFolders:{},agentFilter:"all",directoryTags:{},archiveSyncedDaemonIds:{},archiveSyncCardDismissedDaemonIds:{}},du={quickReplies:["Continue","Summarize the current state","Show the next step"],recentCwds:[],favoriteCwds:[],initialMessageHistory:[],sendShortcut:"enter"},fu={leftSidebarCollapsed:!1,rightSidebarCollapsed:!1},id={version:3,theme:"system",language:"system",sessionList:ng,composer:du,layout:fu};function Us(l){return!!l&&typeof l=="object"&&!Array.isArray(l)}function sd(l,u){if(!Array.isArray(l))return[];const r=new Set,o=[];for(const h of l){if(typeof h!="string")continue;const m=h.trim();if(!(!m||r.has(m))&&(r.add(m),o.push(m),o.length>=u))break}return o}function by(l,u){if(!Array.isArray(l))return[];const r=new Set,o=[];for(const h of l)if(!(typeof h!="string"||h.trim().length===0||r.has(h))&&(r.add(h),o.push(h),o.length>=u))break;return o}function ag(l){return Us(l)?Object.fromEntries(Object.entries(l).filter(u=>typeof u[1]=="boolean")):{}}function Sy(l){return ag(l)}function xy(l){return l==="all"||l==="7d"||l==="30d"||l==="90d"?l:"30d"}function jy(l){return l==="claude"||l==="codex"?l:"all"}function Xb(l,u){if(!Us(l))return ng;const r=u!==2&&xy(l.sinceFilter)==="all"&&typeof l.groupFolders=="boolean"&&l.groupFolders&&typeof l.hideArchived=="boolean"&&!l.hideArchived&&jy(l.agentFilter)==="all"&&(l.statusFilter===void 0||l.statusFilter==="all");return{searchHistory:sd(l.searchHistory,tg),sinceFilter:r?"30d":xy(l.sinceFilter),hideArchived:typeof l.hideArchived=="boolean"?l.hideArchived:!1,groupFolders:r?!1:typeof l.groupFolders=="boolean"?l.groupFolders:!1,collapsedFolders:ag(l.collapsedFolders),agentFilter:jy(l.agentFilter),directoryTags:wb(l.directoryTags),archiveSyncedDaemonIds:Sy(l.archiveSyncedDaemonIds),archiveSyncCardDismissedDaemonIds:Sy(l.archiveSyncCardDismissedDaemonIds)}}function Zb(l){if(!Us(l))return du;const u=sd(l.quickReplies,20);return{quickReplies:u.length?u:du.quickReplies,recentCwds:by(l.recentCwds,vy),favoriteCwds:by(l.favoriteCwds,vy),initialMessageHistory:sd(l.initialMessageHistory,Vb),sendShortcut:l.sendShortcut==="modEnter"?"modEnter":du.sendShortcut}}function Kb(l){return Us(l)?{leftSidebarCollapsed:typeof l.leftSidebarCollapsed=="boolean"?l.leftSidebarCollapsed:fu.leftSidebarCollapsed,rightSidebarCollapsed:typeof l.rightSidebarCollapsed=="boolean"?l.rightSidebarCollapsed:fu.rightSidebarCollapsed}:fu}function lg(l){return Us(l)?{version:3,theme:l.theme==="light"||l.theme==="dark"?l.theme:"system",language:l.language==="en"||l.language==="zh"?l.language:"system",sessionList:Xb(l.sessionList,l.version),composer:Zb(l.composer),layout:Kb(l.layout)}:id}function ig(l=window.localStorage){const u=l.getItem(eg);if(!u)return id;try{return lg(JSON.parse(u))}catch{return id}}function ou(l,u=window.localStorage){u.setItem(eg,JSON.stringify(lg(l)))}function $b(l,u){const r=u.trim();return r?[r,...l.filter(o=>o!==r)].slice(0,tg):l}const ji=.9,Jb=Math.round(280*ji),Fb=Math.round(560*ji),Ib=Math.round(260*ji),Wb=Math.round(520*ji),Pb=Math.round(366*ji),eS=Math.round(330*ji);function tS(l,u){const[r,o]=y.useState(l),[h,m]=y.useState(""),[p,j]=y.useState(l.sessionList.searchHistory),[S,x]=y.useState(l.sessionList.sinceFilter),[V,z]=y.useState(l.sessionList.hideArchived),[L,Y]=y.useState(l.sessionList.groupFolders),[w,E]=y.useState(l.sessionList.collapsedFolders),[T,G]=y.useState(l.sessionList.agentFilter),[F,Z]=y.useState(u),[q,oe]=y.useState(l.layout.leftSidebarCollapsed),[De,he]=y.useState(l.layout.rightSidebarCollapsed),[Te,be]=y.useState(Pb),[it,Je]=y.useState(eS),Ce=r.sessionList.directoryTags,Ze=r.sessionList.archiveSyncedDaemonIds,He=r.sessionList.archiveSyncCardDismissedDaemonIds,Qe=r.composer,C=Gb({leftCollapsed:q,rightCollapsed:De,leftPaneWidth:Te,rightPaneWidth:it}),k=y.useCallback(K=>J=>{J.preventDefault();const te=J.clientX,me=Te,se=it,de=qe=>{const Be=qe.clientX-te;if(K==="left"){be(py(me+Be,Jb,Fb));return}Je(py(se-Be,Ib,Wb))},ge=()=>{document.body.classList.remove("pane-resizing"),window.removeEventListener("pointermove",de),window.removeEventListener("pointerup",ge)};document.body.classList.add("pane-resizing"),window.addEventListener("pointermove",de),window.addEventListener("pointerup",ge,{once:!0})},[Te,it]);y.useEffect(()=>{o(K=>{const J={...K,sessionList:{...K.sessionList,searchHistory:p,sinceFilter:S,hideArchived:V,groupFolders:L,collapsedFolders:w,agentFilter:T},layout:{...K.layout,leftSidebarCollapsed:q,rightSidebarCollapsed:De}};return ou(J),J})},[w,L,V,q,De,p,T,S]);const $=y.useCallback(()=>{j(K=>$b(K,h))},[h]),W=y.useCallback(K=>{Z(K),Iy(K)},[]),ce=y.useCallback(K=>{o(J=>{const te={...J,language:K};return ou(te),te})},[]),v=y.useCallback(K=>{o(J=>{const te={...J,sessionList:K(J.sessionList)};return ou(te),te})},[]),H=y.useCallback(K=>{o(J=>{const te={...J,composer:K(J.composer)};return ou(te),te})},[]);return{webPreferences:r,search:h,setSearch:m,sinceFilter:S,setSinceFilter:x,hideArchived:V,setHideArchived:z,groupFolders:L,setGroupFolders:Y,collapsedFolders:w,setCollapsedFolders:E,sessionAgentFilter:T,setSessionAgentFilter:G,directoryTags:Ce,archiveSyncedDaemonIds:Ze,archiveSyncCardDismissedDaemonIds:He,composerPreferences:Qe,savedTargets:F,setSavedTargets:Z,leftSidebarCollapsed:q,setLeftSidebarCollapsed:oe,rightSidebarCollapsed:De,setRightSidebarCollapsed:he,workspaceClassName:C.workspaceClassName,wideMainClassName:C.wideMainClassName,workspaceStyle:C.style,beginPaneResize:k,commitSearch:$,saveTargets:W,setLanguagePreference:ce,updateSessionListPreferences:v,updateComposerPreferences:H}}function xu(l,u){return!!u&&Object.hasOwn(l,u)}function nS(l,u){const r=l.map(o=>({...o}));return u?bd(r,u):r}function Cy(l,u,r){return u?{...l,[u]:r.map(o=>({...o}))}:l}function aS(l,u,r){return!u||r.length===0?l:{...l,[u]:[...l[u]??[],...r.map(o=>({...o}))]}}function lS(l,u,r){return!u||!r?l:{...l,[u]:bd(l[u]??[],r)}}function iS(l,u,r){if(!u||!r||u===r||!xu(l,u))return l;const o={...l};return o[r]=l[u],delete o[u],o}function sS(l,u){if(!xu(l,u))return l;const r={...l};return delete r[u],r}function Nl(l,u,r){const o=new Set(l);return r?o.add(u):o.delete(u),o}function cS(l){const u=y.useCallback((r,o,h,m,p)=>{const j=l.notificationSettingsRef.current;if(!j[m]||l.notifiedEventsRef.current.has(r))return;Gv(o,h,{onClick:()=>{window.focus(),p&&l.setActiveSessionId(p)},permission:l.notificationPermissionRef.current,settings:j,tag:r,visibilityState:document.visibilityState})&&l.notifiedEventsRef.current.add(r)},[l]);return y.useCallback(r=>{switch(r.type){case"response":{mu(r.data)&&typeof r.data.oldSessionId=="string"&&typeof r.data.sessionId=="string"&&l.remapLocalSessionState(r.data.oldSessionId,r.data.sessionId);break}case"sessions.changed":l.requestSessions({force:!0}).catch(o=>l.setErrorText(o instanceof Error?o.message:String(o)));break;case"session.history":l.clearHistoryLoading(r.sessionId),l.replaceCachedHistory(r.sessionId,nS(r.messages,r.partialReplyText)),r.sessionId===l.activeSessionIdRef.current&&(l.setPendingQueues(o=>({...o,[r.sessionId]:r.pendingQueue??[]})),l.setPendingApprovals(o=>{const h={...o};return r.pendingApproval?h[r.sessionId]={type:"approval.request",sessionId:r.sessionId,...r.pendingApproval}:delete h[r.sessionId],h}),l.setPendingQuestions(o=>{const h={...o};if(r.pendingQuestion){const m={type:"question.request",sessionId:r.sessionId,...r.pendingQuestion};h[r.sessionId]=m,l.setQuestionAnswers(nd(m))}else delete h[r.sessionId];return h})),l.setRespondingSessions(o=>{const h=Nl(o,r.sessionId,!!(r.isResponding||r.externallyResponding));return l.respondingSessionsRef.current=h,h});break;case"session.history.append":l.appendCachedHistory(r.sessionId,r.messages);break;case"text.delta":l.appendCachedDelta(r.sessionId,r.content),l.respondingSessionsRef.current=Nl(l.respondingSessionsRef.current,r.sessionId,!0),l.setRespondingSessions(o=>Nl(o,r.sessionId,!0));break;case"tool.call":l.appendCachedHistory(r.sessionId,[{role:"tool",type:"info",toolName:r.toolName,toolInput:r.input,content:`Tool call: ${r.toolName}
|
|
19
|
-
|
|
20
|
-
${Uy(r.input)}`,timestamp:new Date().toISOString()}]);break;case"tool.result":l.appendCachedHistory(r.sessionId,[{role:"tool",type:"info",content:r.output,timestamp:new Date().toISOString()}]);break;case"approval.request":l.setPendingApprovals(o=>({...o,[r.sessionId]:r})),l.setActiveSessionId(r.sessionId),u(`approval:${r.sessionId}:${r.requestId}`,"Vibelet approval required",r.description||r.toolName,"approvals",r.sessionId);break;case"question.request":l.setPendingQuestions(o=>({...o,[r.sessionId]:r})),l.setQuestionAnswers(nd(r)),l.setActiveSessionId(r.sessionId),u(`question:${r.sessionId}:${r.requestId}`,"Vibelet needs input",`${r.questions.length} question(s) waiting`,"questions",r.sessionId);break;case"question.cleared":l.setPendingQuestions(o=>{const h={...o};return h[r.sessionId]?.requestId===r.requestId&&delete h[r.sessionId],h});break;case"session.queue":l.setPendingQueues(o=>({...o,[r.sessionId]:r.pending}));break;case"session.stall_warning":l.setSessions(o=>o.map(h=>h.sessionId===r.sessionId?{...h,stallWarning:r.warning}:h));break;case"session.interrupted_notice":l.setSessions(o=>o.map(h=>h.sessionId===r.sessionId?{...h,interruptReason:r.reason,stallWarning:void 0}:h));break;case"session.done":if(l.respondingSessionsRef.current.has(r.sessionId)){const o=(l.turnNotificationCountsRef.current[r.sessionId]??0)+1;l.turnNotificationCountsRef.current[r.sessionId]=o,u(`done:${r.sessionId}:${o}`,"Vibelet reply ready","The agent finished a turn.","replies",r.sessionId)}l.respondingSessionsRef.current=Nl(l.respondingSessionsRef.current,r.sessionId,!1),l.setRespondingSessions(o=>Nl(o,r.sessionId,!1)),r.sessionId===l.activeSessionIdRef.current&&(l.setPendingApprovals(o=>{const h={...o};return delete h[r.sessionId],h}),l.setPendingQuestions(o=>{const h={...o};return delete h[r.sessionId],h})),r.usage&&l.setSessions(o=>o.map(h=>h.sessionId===r.sessionId?{...h,lastUsage:r.usage}:h)),l.requestSessions({force:!0}).catch(o=>l.setErrorText(o instanceof Error?o.message:String(o)));break;case"session.interrupted":l.respondingSessionsRef.current=Nl(l.respondingSessionsRef.current,r.sessionId,!1),l.setRespondingSessions(o=>Nl(o,r.sessionId,!1)),l.requestSessions({force:!0}).catch(o=>l.setErrorText(o instanceof Error?o.message:String(o)));break;case"session.renamed":l.setSessions(o=>o.map(h=>h.sessionId===r.sessionId?{...h,customTitle:r.title}:h));break;case"error":l.setErrorText(r.message);break}},[l,u])}const sg="vibelet.web.composerDrafts",cd={draftsBySessionId:{},newSessionDraft:""};function Ay(l){return!!l&&typeof l=="object"&&!Array.isArray(l)}function cg(l){return Ay(l)?{draftsBySessionId:Ay(l.draftsBySessionId)?Object.fromEntries(Object.entries(l.draftsBySessionId).filter(r=>typeof r[1]=="string")):{},newSessionDraft:typeof l.newSessionDraft=="string"?l.newSessionDraft:""}:cd}function uS(l=window.localStorage){const u=l.getItem(sg);if(!u)return cd;try{return cg(JSON.parse(u))}catch{return cd}}function Rs(l,u=window.localStorage){u.setItem(sg,JSON.stringify(cg(l)))}function Os(l,u,r){if(!u)return{...l,newSessionDraft:r};const o={...l.draftsBySessionId};return r.trim()?o[u]=r:delete o[u],{...l,draftsBySessionId:o}}function Ds(l,u){return u?l.draftsBySessionId[u]??"":l.newSessionDraft}function rS(l,u,r){if(!u||!r||u===r)return l;const o=l.draftsBySessionId[u];if(o===void 0)return l;const h={...l.draftsBySessionId};return delete h[u],o.trim()&&(h[r]=o),{...l,draftsBySessionId:h}}function oS(l,u,r,o=!1){if(!o)return{...l,[u]:[r]};const h=l[u]??[],m=h.includes(r)?h.filter(p=>p!==r):[...h,r];return{...l,[u]:m}}function dS(l){const u=y.useCallback(async w=>{const E=l.clientRef.current;if(!(!E?.isConnected||!l.activeApproval)){l.setBusy(!0),l.setErrorText(null);try{await E.request({action:"session.approve",id:E.makeId("approve"),sessionId:l.activeApproval.sessionId,requestId:l.activeApproval.requestId,approved:w}),l.setPendingApprovals(T=>{const G={...T};return delete G[l.activeApproval.sessionId],G})}catch(T){l.setErrorText(T instanceof Error?T.message:String(T))}finally{l.setBusy(!1)}}},[l]),r=y.useCallback(async()=>{const w=l.clientRef.current;if(!(!w?.isConnected||!l.activeQuestion)){l.setBusy(!0),l.setErrorText(null);try{await w.request({action:"session.respondQuestion",id:w.makeId("question"),sessionId:l.activeQuestion.sessionId,requestId:l.activeQuestion.requestId,answers:l.questionAnswers}),l.setPendingQuestions(E=>{const T={...E};return delete T[l.activeQuestion.sessionId],T})}catch(E){l.setErrorText(E instanceof Error?E.message:String(E))}finally{l.setBusy(!1)}}},[l]),o=y.useCallback(async()=>{const w=l.clientRef.current;if(!(!w?.isConnected||!l.activeQuestion)){l.setBusy(!0),l.setErrorText(null);try{await w.request({action:"session.cancelQuestion",id:w.makeId("cancel_question"),sessionId:l.activeQuestion.sessionId,requestId:l.activeQuestion.requestId}),l.setPendingQuestions(E=>{const T={...E};return delete T[l.activeQuestion.sessionId],T})}catch(E){l.setErrorText(E instanceof Error?E.message:String(E))}finally{l.setBusy(!1)}}},[l]),h=y.useCallback((w,E,T)=>{l.setQuestionAnswers(G=>oS(G,w,E,!!T))},[l]),m=y.useCallback(async w=>{const E=l.clientRef.current;if(!(!E?.isConnected||!l.activeSession)&&!(w==="session.delete"&&!bi(`Delete ${Un(l.activeSession)}?`))){l.setBusy(!0),l.setErrorText(null);try{w==="session.resume"?await E.request({action:w,id:E.makeId("resume"),sessionId:l.activeSession.sessionId,agent:l.activeSession.agent}):await E.request({action:w,id:E.makeId(w.split(".").at(-1)??"session"),sessionId:l.activeSession.sessionId}),w==="session.delete"&&(l.removeCachedHistory(l.activeSession.sessionId),l.setActiveSessionId(null),l.messagesSessionIdRef.current=null,l.lastHistorySessionIdRef.current=null,l.setMessages([])),await l.requestSessions({force:!0})}catch(T){l.setErrorText(T instanceof Error?T.message:String(T))}finally{l.setBusy(!1)}}},[l]),p=y.useCallback(async w=>{l.setApprovalMode(w);const E=l.clientRef.current;if(!(!E?.isConnected||!l.activeSession)){l.setErrorText(null);try{await E.request({action:"session.setApprovalMode",id:E.makeId("approval_mode"),sessionId:l.activeSession.sessionId,approvalMode:w}),l.setSessions(T=>T.map(G=>G.sessionId===l.activeSession.sessionId?{...G,approvalMode:w}:G))}catch(T){l.setErrorText(T instanceof Error?T.message:String(T))}}},[l]),j=y.useCallback(async w=>{const E=l.clientRef.current;if(!(!E?.isConnected||!l.activeSessionId||!w.clientMessageId)){l.setBusy(!0),l.setErrorText(null);try{await E.request({action:"session.queue.cancel",id:E.makeId("queue_cancel"),sessionId:l.activeSessionId,clientMessageId:w.clientMessageId}),l.setPendingQueues(T=>({...T,[l.activeSessionId]:(T[l.activeSessionId]??[]).filter(G=>G.clientMessageId!==w.clientMessageId)}))}catch(T){l.setErrorText(T instanceof Error?T.message:String(T))}finally{l.setBusy(!1)}}},[l]),S=y.useCallback(async(w,E)=>{if(l.pendingSessions[w.sessionId])return;const T=l.clientRef.current;if(T?.isConnected){l.setBusy(!0),l.setErrorText(null);try{const G=E?Date.now():void 0;await T.request({action:"session.setPinned",id:T.makeId("pin"),sessionId:w.sessionId,pinned:E,...G?{pinnedAt:G}:{}}),l.setSessions(F=>F.map(Z=>Z.sessionId===w.sessionId?{...Z,pinned:E,pinnedAt:G}:Z)),await l.requestSessions({force:!0})}catch(G){l.setErrorText(G instanceof Error?G.message:String(G))}finally{l.setBusy(!1)}}},[l]),x=y.useCallback(async(w,E)=>{if(l.pendingSessions[w.sessionId])return;const T=l.clientRef.current;if(T?.isConnected){l.setBusy(!0),l.setErrorText(null);try{await T.request({action:"session.setArchived",id:T.makeId("archive"),sessionId:w.sessionId,archived:E}),l.setSessions(G=>G.map(F=>F.sessionId===w.sessionId?{...F,archived:E}:F)),await l.requestSessions({force:!0})}catch(G){l.setErrorText(G instanceof Error?G.message:String(G))}finally{l.setBusy(!1)}}},[l]),V=y.useCallback(async w=>{if(l.pendingSessions[w.sessionId]){l.removeCachedHistory(w.sessionId),l.setPendingSessions(T=>{const G={...T};return delete G[w.sessionId],G}),l.setComposerDrafts(T=>{const G=Os(T,w.sessionId,"");return l.composerDraftsRef.current=G,Rs(G),G}),l.activeSessionIdRef.current===w.sessionId&&(l.setActiveSessionId(null),l.messagesSessionIdRef.current=null,l.lastHistorySessionIdRef.current=null,l.setMessages([]),l.setDraft(Ds(l.composerDraftsRef.current,null)),l.setDetailsOpen(!1));return}const E=l.clientRef.current;if(!(!E?.isConnected||!bi(`Delete ${Un(w)}?`))){l.setBusy(!0),l.setErrorText(null);try{await E.request({action:"session.delete",id:E.makeId("delete"),sessionId:w.sessionId}),l.removeCachedHistory(w.sessionId),l.setOptimisticSessions(T=>{if(!T[w.sessionId])return T;const G={...T};return delete G[w.sessionId],G}),l.activeSessionIdRef.current===w.sessionId&&(l.setActiveSessionId(null),l.messagesSessionIdRef.current=null,l.lastHistorySessionIdRef.current=null,l.setMessages([]),l.setDetailsOpen(!1)),await l.requestSessions({force:!0})}catch(T){l.setErrorText(T instanceof Error?T.message:String(T))}finally{l.setBusy(!1)}}},[l]),z=y.useCallback(async()=>{l.activeSession&&await S(l.activeSession,!l.activeSession.pinned)},[l.activeSession,S]),L=y.useCallback(async()=>{l.activeSession&&await x(l.activeSession,!l.activeSession.archived)},[l.activeSession,x]),Y=y.useCallback(async()=>{const w=l.renameTitle.trim();if(l.activeSession&&l.pendingSessions[l.activeSession.sessionId]){l.setPendingSessions(T=>{const G=T[l.activeSession.sessionId];return G?{...T,[l.activeSession.sessionId]:{...G,title:w||G.title,customTitle:w||void 0}}:T});return}const E=l.clientRef.current;if(!(!E?.isConnected||!l.activeSession)){l.setBusy(!0),l.setErrorText(null);try{await E.request({action:"session.rename",id:E.makeId("rename"),sessionId:l.activeSession.sessionId,title:w||void 0}),l.setSessions(T=>T.map(G=>G.sessionId===l.activeSession.sessionId?{...G,customTitle:w||void 0}:G))}catch(T){l.setErrorText(T instanceof Error?T.message:String(T))}finally{l.setBusy(!1)}}},[l]);return{respondApproval:u,respondQuestion:r,cancelQuestion:o,setQuestionChoice:h,requestActiveAction:m,updateApprovalMode:p,cancelQueuedTurn:j,setSessionPinned:S,setSessionArchived:x,deleteSession:V,updatePinned:z,updateArchived:L,renameSession:Y}}function Ms(l){return typeof l=="string"&&l.trim().length>0?l:void 0}function fS(l){const u=y.useCallback((h,m)=>{const p=Ms(h)??Ms(l.cwd)??on,j=m??l.agent,S=_v(),x=Rv({sessionId:S,agent:j,cwd:p,approvalMode:l.approvalMode,model:Vo(l.model),effort:l.effort||void 0,fastMode:l.fastMode,title:`New ${j==="codex"?"Codex":"Claude"} session`}),V=l.activeSessionIdRef.current?"":Ds(l.composerDraftsRef.current,null);return l.setPendingSessions(z=>({...z,[S]:x})),l.setComposerDrafts(z=>{let L=Os(z,S,V);return l.activeSessionIdRef.current||(L=Os(L,null,"")),l.composerDraftsRef.current=L,Rs(L),L}),l.setCwd(p),l.setAgent(j),l.setActiveSessionId(S),l.lastHistorySessionIdRef.current=S,l.messagesSessionIdRef.current=S,l.clearHistoryLoading(),l.setMessages([]),l.setDraft(V),l.setErrorText(null),l.reportLog("web.session.pending_create",{sessionId:S,agent:j,cwd:p}),S},[l]),r=y.useCallback(async(h,m,p)=>{const j=l.clientRef.current;if(!j?.isConnected)return l.setErrorText("WebSocket is not connected."),null;const S=p?l.pendingSessions[p]:void 0,x=Ms(h)??Ms(S?.cwd)??Ms(l.cwd)??on,V=m??S?.agent??l.agent,z=S?.approvalMode??l.approvalMode,L=S?.model??Vo(l.model),Y=S?.effort??(l.effort||void 0),w=S?.fastMode??l.fastMode;l.setErrorText(null);try{const E=await j.request({action:"session.create",id:j.makeId("create"),agent:V,cwd:x,approvalMode:z,continueSession:l.continueSession,model:L,effort:Y,fastMode:w,...p?{clientSessionId:p}:{}}),T=wv(E);if(!T)throw new Error("Daemon did not return a session id.");const G=mu(E)&&typeof E.oldSessionId=="string"?E.oldSessionId:p;return l.setCwd(x),l.setAgent(V),l.setActiveSessionId(T),l.lastHistorySessionIdRef.current=T,l.messagesSessionIdRef.current=T,l.clearHistoryLoading(),p&&S?(l.setPendingSessions(F=>{const Z={...F};return delete Z[p],G&&G!==p&&delete Z[G],Z}),l.setOptimisticSessions(F=>({...F,[T]:Dv(S,T)})),G&&G!==T&&l.remapLocalSessionState(G,T),p!==T&&l.remapLocalSessionState(p,T)):await l.requestSessions({force:!0}),l.reportLog("web.session.create",{sessionId:T,clientSessionId:p,agent:V,cwd:x}),T}catch(E){return l.setErrorText(E instanceof Error?E.message:String(E)),null}},[l]),o=y.useCallback(async h=>{h?.preventDefault();const m=l.draft.trim();if(!m||l.busy)return;const p=l.clientRef.current;if(!p?.isConnected){l.setErrorText("WebSocket is not connected.");return}l.setBusy(!0),l.setErrorText(null),l.updateDraft("");const j=l.attachments;l.setAttachments([]);let S=l.activeSessionId,x=l.activeSession?.agent??l.agent;if(S&&l.pendingSessions[S]){const E=await r(l.pendingSessions[S].cwd,l.pendingSessions[S].agent,S);if(!E){l.setBusy(!1),l.updateDraft(m),l.setAttachments(j);return}S=E,x=l.pendingSessions[l.activeSessionId??""]?.agent??x}else S||(S=await r());if(!S){l.setBusy(!1),l.updateDraft(m),l.setAttachments(j);return}const V=j.length===0?a1(m,x):null;if(V){const E=i1(V.command),T=E?p.makeId("cmd_msg"):void 0;E&&(l.messagesSessionIdRef.current=S,l.appendCachedHistory(S,[{role:"user",content:E,timestamp:new Date().toISOString()}]),l.renderCachedHistory(S));try{const G=await p.request({action:"session.command",id:p.makeId("command"),sessionId:S,agent:x,command:V.command,...T?{clientMessageId:T}:{},featureEntitlements:{agentCommands:"pro"}});await l.handleSessionCommandResponse(S,V.command,G)}catch(G){const F=G instanceof Error?G.message:String(G);l.appendInfoMessage(S,ly(F)),l.setErrorText(ly(F))}finally{l.setBusy(!1)}return}const z=l1(m),L=j.map(E=>E.path);l.messagesSessionIdRef.current=S,l.appendCachedHistory(S,[{role:"user",content:z,timestamp:new Date().toISOString(),...L.length?{images:L}:{}}]),l.renderCachedHistory(S),l.respondingSessionsRef.current=new Set(l.respondingSessionsRef.current).add(S),l.setRespondingSessions(E=>new Set(E).add(S));const Y=r1(z)??void 0,w=Y?{agentSkills:"pro"}:void 0;try{const E=await p.request({action:"session.send",id:p.makeId("send"),sessionId:S,agent:x,message:z,clientMessageId:p.makeId("msg"),images:L.length?L:void 0,model:Vo(l.model),effort:l.effort||void 0,fastMode:l.fastMode,skillInvocation:Y,featureEntitlements:w});mu(E)&&typeof E.oldSessionId=="string"&&typeof E.sessionId=="string"&&l.remapLocalSessionState(E.oldSessionId,E.sessionId)}catch(E){const T=E instanceof Error?E.message:String(E);l.setErrorText(Xv(T,!!Y)),l.setAttachments(j),l.respondingSessionsRef.current=new Set(l.respondingSessionsRef.current),l.respondingSessionsRef.current.delete(S),l.setRespondingSessions(G=>{const F=new Set(G);return F.delete(S),F})}finally{l.setBusy(!1)}},[r,l]);return{stagePendingSession:u,sendDraft:o}}function hS(){"serviceWorker"in navigator&&window.addEventListener("load",()=>{navigator.serviceWorker.register("/web/sw.js",{scope:"/web/"}).catch(()=>{})})}function mS(l=window.location.search){const u=new URLSearchParams(l);return[u.get("title"),u.get("text"),u.get("url")].map(o=>o?.trim()).filter(o=>!!o).join(`
|
|
21
|
-
|
|
22
|
-
`)}function yS(){const l=new URL(window.location.href);let u=!1;for(const r of["title","text","url"])l.searchParams.has(r)&&(l.searchParams.delete(r),u=!0);u&&window.history.replaceState(null,"",`${l.pathname}${l.search}${l.hash}`)}const gS=6;function pS(l,u){return u.has(l.sessionId)||l.runtime?.isResponding===!0||l.runtime?.state==="daemonActive"||l.runtime?.state==="externalRunning"}function vS(l,u,r,o,h=gS){if(h<=0)return[];const m=[];for(const p of l){if(m.length>=h)break;!p.sessionId||!pS(p,r)||xu(u,p.sessionId)||o.has(p.sessionId)||m.push(p)}return m}function ud(l,u=typeof navigator>"u"?"en":navigator.language){return l==="en"||l==="zh"?l:u.toLowerCase().startsWith("zh")?"zh":"en"}const bS={en:{daemonWorkspace:"Daemon workspace",sameOriginAccess:"same-origin daemon access",sessions:"Sessions",collapseSessionSidebar:"Hide sessions sidebar",expandSessionSidebar:"Show sessions sidebar",collapseControlsSidebar:"Hide controls sidebar",expandControlsSidebar:"Show controls sidebar",newSession:"New session",claudeSession:"Claude session",codexSession:"Codex session",workingDirectory:"Working directory",workingDirectoryPlaceholder:"~/project or /repo",browseDirectories:"Browse directories",chooseThisFolder:"Choose this folder",newFolder:"New folder",newFolderPlaceholder:"Folder name",folderCreateFailed:"Could not create folder.",loadingDirectories:"Loading folders...",remoteFolderEmpty:"No folders in this directory.",create:"Create",searchSessions:"Search sessions",sessionFilters:"Session filters",filterViewOptions:"View options",resetFilters:"Reset filters",searchTimeRangeLabel:"Search within",searchTimeRangeLast7Days:"Last 7 days",searchTimeRangeLast30Days:"Last 30 days",searchTimeRangeLast90Days:"Last 90 days",searchTimeRangeAllTime:"All time",agentFilterLabel:"Assistant",agentFilterAll:"All assistants",agentFilterClaude:"Claude",agentFilterCodex:"Codex",groupByFolder:"Group by folder",hideArchived:"Active only",noSessionsMatch:"No sessions match this view.",loadMore:"Load more",open:"Open",details:"Details",copyResumeCommand:"Copy resume command",viewChanges:"View changes",pin:"Pin",unpin:"Unpin",archive:"Archive",unarchive:"Unarchive",delete:"Delete",connectedTo:l=>`Connected to ${l}`,connectingToDaemon:"Opening secure daemon channel",reconnectingToDaemon:"Reconnecting to daemon",connectionFailed:"Connection failed",pairingFailed:"Pairing failed",pairingLinkExpired:"This pairing link has expired. Open a fresh Vibelet Web link from the host computer.",missingPair:"Open the link printed by vibelet",pendingActions:"Pending Actions",noPendingActions:"No approvals or questions.",approvalRequired:"Approval Required",inputNeeded:"Input Needed",deny:"Deny",approve:"Approve",cancel:"Cancel",submit:"Submit",clear:"Clear",restoreSnapshot:"Restore daemon snapshot",refreshSessions:"Refresh sessions",openDaemonWebLink:"Open the daemon web link",openDaemonWebLinkHint:"Run Vibelet with remote access and open the Web UI link printed by the CLI.",loadingHistory:"Loading history",noVisibleMessages:"No visible messages yet",startDaemonSession:"Start a daemon session",emptyChatHint:"Send a prompt from this browser; the daemon keeps Claude or Codex running on the host machine.",agentResponding:"Agent is responding",scrollToLatest:"Scroll to latest",currentDevice:"Current Device",daemon:"Daemon",status:"Status",active:"active",notPaired:"not paired",forget:"Forget",notifications:"Notifications",browserAlerts:"Browser alerts",notificationsBlocked:"Notifications are blocked by this browser.",savedDevices:"Saved Devices",noSavedDevices:"No saved devices yet.",notConnectedRecently:"not connected recently",desktopConnector:"Desktop Connector",version:"Version",checking:"checking...",unknown:"unknown",update:"Update",updating:"Updating...",restart:"Restart",restarting:"Restarting...",language:"Language",displayLanguage:"Display language",followSystem:"Auto",english:"English",chinese:"中文",skills:"Skills",closeSkills:"Close skills",noSkillsFound:"No skills found.",messagePlaceholder:"Type a message or $ for skills...",uploadFiles:"Upload files",showQuickReplies:"Show quick replies",hideQuickReplies:"Hide quick replies",removeAttachment:"Remove attachment",send:"Send",sendShortcut:"Send shortcut",sendShortcutEnter:"Enter",sendShortcutEnterDescription:"Enter sends; Shift+Enter inserts a newline",sendShortcutModEnter:"Mod+Enter",sendShortcutModEnterDescription:"Cmd/Ctrl+Enter sends; Enter inserts a newline",uploading:"Uploading...",commands:"Commands",closeCommands:"Close commands",noCommandsFound:"No commands found.",directoryTags:"Directory tags",editDirectoryTags:"Edit directory tags",browseFolder:"Browse folder",archiveSyncTitle:"Archive sync",archiveSyncBody:"Sync archived sessions with the paired desktop connector.",archiveSyncSynced:"Archive state is synced with this connector.",archiveSyncSkippedState:"Archive sync was skipped for this connector.",archiveSyncPushReplace:"Use browser",archiveSyncPushMerge:"Merge",archiveSyncPull:"Use desktop",archiveSyncSkip:"Skip",archiveSyncSyncing:"Syncing...",archiveSyncSuccessPush:"Desktop archive updated with {n} sessions.",archiveSyncSuccessMerge:"Merged. {n} archived sessions now stored on the paired computer.",archiveSyncSuccessPull:"Pulled {n} archived sessions from the paired computer.",archiveSyncSkipped:"Skipped archive sync for this connector.",archiveSyncFailedTimeout:"Sync timed out. Please try again.",archiveSyncFailedDisconnected:"Not connected to a paired computer.",archiveSyncFailedGeneric:"Sync failed: {error}"},zh:{daemonWorkspace:"Daemon 工作区",sameOriginAccess:"同源 daemon 访问",sessions:"会话",collapseSessionSidebar:"隐藏会话侧栏",expandSessionSidebar:"显示会话侧栏",collapseControlsSidebar:"隐藏控制侧栏",expandControlsSidebar:"显示控制侧栏",newSession:"新建会话",claudeSession:"Claude 会话",codexSession:"Codex 会话",workingDirectory:"工作目录",workingDirectoryPlaceholder:"~/project 或 /repo",browseDirectories:"浏览目录",chooseThisFolder:"选择此文件夹",newFolder:"新建文件夹",newFolderPlaceholder:"文件夹名称",folderCreateFailed:"无法创建文件夹。",loadingDirectories:"正在加载文件夹...",remoteFolderEmpty:"此目录下没有文件夹。",create:"创建",searchSessions:"搜索会话",sessionFilters:"会话筛选",filterViewOptions:"视图选项",resetFilters:"重置筛选",searchTimeRangeLabel:"搜索范围",searchTimeRangeLast7Days:"近 7 天",searchTimeRangeLast30Days:"近 30 天",searchTimeRangeLast90Days:"近 90 天",searchTimeRangeAllTime:"全部时间",agentFilterLabel:"助手",agentFilterAll:"全部助手",agentFilterClaude:"Claude",agentFilterCodex:"Codex",groupByFolder:"按文件夹分组",hideArchived:"仅显示活跃会话",noSessionsMatch:"没有符合条件的会话。",loadMore:"加载更多",open:"打开",details:"详情",copyResumeCommand:"复制恢复命令",viewChanges:"查看变更",pin:"置顶",unpin:"取消置顶",archive:"归档",unarchive:"取消归档",delete:"删除",connectedTo:l=>`已连接到 ${l}`,connectingToDaemon:"正在打开安全 daemon 通道",reconnectingToDaemon:"正在重连 daemon",connectionFailed:"连接失败",pairingFailed:"配对失败",pairingLinkExpired:"这个配对链接已过期。请在主机上重新打开 vibelet 打印的新 Web 链接。",missingPair:"打开 vibelet 打印的链接",pendingActions:"待处理",noPendingActions:"没有需要处理的审批或问题。",approvalRequired:"需要审批",inputNeeded:"需要输入",deny:"拒绝",approve:"同意",cancel:"取消",submit:"提交",clear:"清除",restoreSnapshot:"恢复 daemon 快照",refreshSessions:"刷新会话",openDaemonWebLink:"打开 daemon web 链接",openDaemonWebLinkHint:"用远程访问启动 Vibelet,然后打开 CLI 打印的 Web UI 链接。",loadingHistory:"正在加载历史",noVisibleMessages:"还没有可见消息",startDaemonSession:"开始 daemon 会话",emptyChatHint:"从浏览器发送提示词;daemon 会在主机上保持 Claude 或 Codex 运行。",agentResponding:"Agent 正在回复",scrollToLatest:"滚动到最新",currentDevice:"当前设备",daemon:"Daemon",status:"状态",active:"当前",notPaired:"未配对",forget:"忘记",notifications:"通知",browserAlerts:"浏览器提醒",notificationsBlocked:"浏览器已阻止通知。",savedDevices:"已保存设备",noSavedDevices:"还没有保存的设备。",notConnectedRecently:"最近未连接",desktopConnector:"桌面连接器",version:"版本",checking:"检查中...",unknown:"未知",update:"更新",updating:"更新中...",restart:"重启",restarting:"重启中...",language:"语言",displayLanguage:"显示语言",followSystem:"自动",english:"English",chinese:"中文",skills:"技能",closeSkills:"关闭技能",noSkillsFound:"没有找到技能。",messagePlaceholder:"输入消息,或输入 $ 选择技能...",uploadFiles:"上传文件",showQuickReplies:"显示快捷回复",hideQuickReplies:"隐藏快捷回复",removeAttachment:"移除附件",send:"发送",sendShortcut:"发送快捷键",sendShortcutEnter:"回车",sendShortcutEnterDescription:"回车发送;Shift+回车换行",sendShortcutModEnter:"Cmd/Ctrl+回车",sendShortcutModEnterDescription:"Cmd/Ctrl+回车发送;回车换行",uploading:"上传中...",commands:"命令",closeCommands:"关闭命令",noCommandsFound:"没有找到命令。",directoryTags:"目录标签",editDirectoryTags:"编辑目录标签",browseFolder:"浏览文件夹",archiveSyncTitle:"归档同步",archiveSyncBody:"将已归档会话与配对的桌面连接器同步。",archiveSyncSynced:"归档状态已与此连接器同步。",archiveSyncSkippedState:"此连接器已跳过归档同步。",archiveSyncPushReplace:"以浏览器为准",archiveSyncPushMerge:"合并",archiveSyncPull:"以桌面端为准",archiveSyncSkip:"跳过",archiveSyncSyncing:"同步中...",archiveSyncSuccessPush:"已用浏览器归档列表覆盖桌面端({n} 条)。",archiveSyncSuccessMerge:"已合并完成,桌面端当前共 {n} 条归档。",archiveSyncSuccessPull:"已从桌面端拉取 {n} 条归档到浏览器。",archiveSyncSkipped:"已跳过此连接器的归档同步。",archiveSyncFailedTimeout:"同步超时,请稍后重试。",archiveSyncFailedDisconnected:"当前未连接到配对电脑。",archiveSyncFailedGeneric:"同步失败:{error}"}};function SS(l,u){const r=u.trim().toLowerCase();return r?[Un(l),l.cwd,l.agent,l.branch??"",...l.titleAliases??[]].some(o=>o.toLowerCase().includes(r)):!0}function xS(l,u){return l.filter(r=>u.hideArchived&&r.archived||u.agentFilter!=="all"&&r.agent!==u.agentFilter?!1:SS(r,u.search))}const Ny=15e3;function jS(){const l=y.useRef(null),u=y.useRef(async()=>{}),r=y.useRef(null),o=y.useRef(ad()),h=y.useRef(Lv()),m=y.useRef(ig()),p=y.useRef(uS()),j=y.useRef(mb()),S=y.useRef(o.current),x=y.useRef(h.current),V=y.useRef(p.current),z=y.useRef(null),L=y.useRef(null),Y=y.useRef(null),w=y.useRef({}),E=y.useRef(null),T=y.useRef(new Set),G=y.useRef(null),F=y.useRef(new Set),Z=y.useRef(null),q=y.useRef(0),oe=y.useRef(new Set),De=y.useRef({}),he=y.useRef(!1),[Te,be]=y.useState("connecting"),[it,Je]=y.useState("Preparing Vibelet Web"),[Ce,Ze]=y.useState(null),[He,Qe]=y.useState(null),[C,k]=y.useState([]),[$,W]=y.useState({}),[ce,v]=y.useState({}),[H,K]=y.useState(),[J,te]=y.useState({}),[me,se]=y.useState(),[de,ge]=y.useState(null),[qe,Be]=y.useState(null),[Mt,ee]=y.useState([]),[Oe,It]=y.useState(!1),[_t,Wt]=y.useState(()=>new Set),[vt,bt]=y.useState({}),[Tt,Rt]=y.useState({}),[Yt,dn]=y.useState({}),[st,Pe]=y.useState({}),[nt,Dt]=y.useState("claude"),[at,Pt]=y.useState(on),[An,St]=y.useState(td),[P]=y.useState(!1),[rt,O]=y.useState(""),[ue,pe]=y.useState(""),[je,et]=y.useState(!1),[en,Qt]=y.useState(""),[Hn,fn]=y.useState(p.current),[ye,_e]=y.useState(()=>Ds(p.current,null)),{webPreferences:Et,search:xt,setSearch:ma,sinceFilter:Gt,setSinceFilter:jt,hideArchived:Nn,setHideArchived:ya,groupFolders:hn,setGroupFolders:Fa,collapsedFolders:Ci,setCollapsedFolders:Ai,sessionAgentFilter:mn,setSessionAgentFilter:Ni,directoryTags:Tn,archiveSyncedDaemonIds:Ct,archiveSyncCardDismissedDaemonIds:qt,composerPreferences:Zn,savedTargets:_l,setSavedTargets:ju,leftSidebarCollapsed:Cu,setLeftSidebarCollapsed:Ti,rightSidebarCollapsed:Ia,setRightSidebarCollapsed:Rl,workspaceClassName:ga,wideMainClassName:pa,workspaceStyle:Wa,beginPaneResize:Kn,commitSearch:ft,saveTargets:Hs,setLanguagePreference:qs,updateSessionListPreferences:$n,updateComposerPreferences:va}=tS(m.current,j.current),[ba,Dl]=y.useState(!1),[yn,Pa]=y.useState("session"),[zl,Sa]=y.useState(!1),[En,Vt]=y.useState({}),[Bs,Au]=y.useState({}),[Ei,Ls]=y.useState([]),[qn,Nu]=y.useState({statusText:"",loading:!1,action:null}),[At,Jn]=y.useState(ld),[kl,wi]=y.useState(h.current),[tn,Mi]=y.useState(o.current),[_i,xa]=y.useState(null),[Tu,Ys]=y.useState(null),{attachments:Ri,setAttachments:Ol,uploadBusy:Eu,directory:wu,setDirectory:el,newDirName:wn,setNewDirName:Di,remoteFile:ja,setRemoteFile:Ca,remoteFileConflict:Aa,remoteFileMode:Qs,setRemoteFileMode:zi,uploadFiles:Gs,openRemoteFile:Na,saveRemoteFile:Mn,downloadRemoteFile:ki,listDirectory:Fn,listSessionDirectories:Bn,createDirectory:Oi,createSessionDirectory:Ul}=Qb({clientRef:l,pairing:He,cwd:at,phase:Te,controlTab:yn,setControlTab:Pa,setBusy:Dl,setErrorText:Ze}),_n=y.useMemo(()=>cu(cu(C,Object.values(ce)),Object.values($)),[ce,$,C]),Hl=y.useMemo(()=>new Set(Object.keys($)),[$]),nn=y.useMemo(()=>_n.find(N=>N.sessionId===de)??null,[de,_n]),Ui=y.useMemo(()=>de&&vt[de]?vt[de]:Object.values(vt)[0]??null,[de,vt]),zt=y.useMemo(()=>de&&Tt[de]?Tt[de]:Object.values(Tt)[0]??null,[de,Tt]),In=de?st[de]??[]:[],ql=En[nt]??[],tl=Bs[nt],Hi=y.useMemo(()=>xS(_n,{search:xt,hideArchived:Nn,agentFilter:mn}),[_n,Nn,xt,mn]),qi=y.useMemo(()=>zv(Hi),[Hi]),Bi=ud(Et.language),lt=bS[Bi];y.useEffect(()=>{r.current=de},[de]),y.useEffect(()=>{G.current=He},[He]),y.useEffect(()=>{oe.current=_t},[_t]),y.useEffect(()=>{x.current=kl},[kl]),y.useEffect(()=>{S.current=tn},[tn]),y.useEffect(()=>{V.current=Hn},[Hn]);const nl=y.useCallback(N=>{_e(N),fn(Q=>{const I=Os(Q,r.current,N);return V.current=I,Rs(I),I})},[]),Li=y.useCallback(N=>{fn(Q=>{const I=Os(Q,null,N);return V.current=I,Rs(I),I}),r.current||_e(N)},[]);y.useEffect(()=>{hS();const N=mS();N&&(Li(N),Pa("session"),yS())},[Li]),y.useEffect(()=>{yn==="admin"&&Mi(ad())},[yn]),y.useEffect(()=>()=>{Z.current&&window.clearTimeout(Z.current),ja?.objectUrl&&URL.revokeObjectURL(ja.objectUrl)},[ja?.objectUrl]);const al=y.useCallback((N,Q=!1)=>{k(I=>cu(Q?I:[],N.sessions)),v(I=>{const re=new Set(N.sessions.map(Ee=>Ee.sessionId)),$e=Object.fromEntries(Object.entries(I).filter(([Ee])=>!re.has(Ee)));return Object.keys($e).length===Object.keys(I).length?I:$e}),K(N.nextCursor),se(N.inventoryVersion),N.folderCounts&&te(N.folderCounts),Q||Ub(G.current?.daemonId,N),Je(N.inventoryBackfillInFlight?"Connected, indexing local sessions":"Connected")},[]),Bl=y.useCallback(async N=>{const Q=l.current;if(!Q?.isConnected)return;const I=[...new Set(N.map(re=>re.cwd).filter(Boolean))];if(I.length!==0)try{const re=await Q.request({action:"sessions.gitMetadata",id:Q.makeId("git"),cwds:I});k($e=>$e.map(Ee=>({...Ee,branch:re.branches[Ee.cwd]??Ee.branch,diffStat:re.diffStats[Ee.cwd]??Ee.diffStat})))}catch{}},[]),Ll=y.useCallback((N,Q=oe.current)=>{const I=l.current;if(!I?.isConnected||N.length===0)return;const re=vS(N,w.current,Q,T.current);for(const $e of re)T.current.add($e.sessionId),I.request({action:"session.history",id:I.makeId("history_prefetch"),sessionId:$e.sessionId,agent:$e.agent},{timeoutMessage:"History prefetch timed out.",timeoutMs:Ny}).catch(()=>{}).finally(()=>{T.current.delete($e.sessionId)})},[]),Yl=y.useCallback(N=>{const Q=Vv(N,{currentActiveSessionId:r.current,currentCwd:at});if(al(Q.page,!1),K(Q.page.nextCursor),se(Q.page.inventoryVersion),Q.messages&&Q.activeSessionId){w.current=Cy(w.current,Q.activeSessionId,Q.messages);const I=w.current[Q.activeSessionId]??[];Y.current=Q.activeSessionId,ee(I)}ge(Q.activeSessionId),Q.activeAgent&&Dt(Q.activeAgent),Q.activeCwd&&Pt(Q.activeCwd),Q.activeApprovalMode&&St(Q.activeApprovalMode),Q.questionAnswers&&dn(Q.questionAnswers),oe.current=new Set(Q.respondingSessionIds),Wt(oe.current),bt(Q.pendingApprovals),Rt(Q.pendingQuestions),Pe(Q.pendingQueues),Bl(N.sessions),Ll(N.sessions,new Set(Q.respondingSessionIds))},[at,Bl,Ll,al]),Vs=y.useCallback(async()=>{const N=l.current;if(!N?.isConnected)return;const Q=await N.request({action:"reconnect.snapshot",id:N.makeId("snapshot"),activeSessionId:r.current??void 0,activeAgent:nn?.agent??nt,agent:mn==="all"?void 0:mn,search:xt.trim()||void 0,sinceMs:Pm(Gt),hideArchived:Nn,skipGitMetadata:!0});Yl(Q.snapshot)},[nn?.agent,nt,Yl,Nn,xt,mn,Gt]),Rn=y.useCallback(async N=>{const Q=l.current;if(!Q?.isConnected)return;const I=await Q.request({action:"sessions.list",id:Q.makeId(N?.append?"sessions_more":"sessions"),limit:Nv,cursor:N?.cursor,agent:mn==="all"?void 0:mn,search:xt.trim()||void 0,sinceMs:Pm(Gt),hideArchived:Nn,skipGitMetadata:!0,force:N?.force}),re=Oy(I);al(re,N?.append),ge($e=>$e??re.sessions[0]?.sessionId??null),Bl(re.sessions),Ll(re.sessions)},[Nn,Bl,Ll,xt,mn,al,Gt]),Dn=y.useCallback(N=>N&&L.current&&L.current!==N?!1:(L.current=null,It(!1),!0),[]),Wn=y.useCallback(N=>xu(w.current,N)?(Y.current=N,ee(w.current[N]??[]),!0):!1,[]),Yi=y.useCallback((N,Q,I)=>{w.current=Cy(w.current,N,Q);const re=w.current[N]??[];return I?.renderActive!==!1&&N===r.current&&(Y.current=N,ee(re)),re},[]),ll=y.useCallback((N,Q)=>{w.current=aS(w.current,N,Q),N===r.current&&(Y.current=N,ee(w.current[N]??[]))},[]),Mu=y.useCallback((N,Q)=>{w.current=lS(w.current,N,Q),N===r.current&&(Y.current=N,ee(w.current[N]??[]))},[]),Qi=y.useCallback((N,Q)=>{ll(N,[{role:"assistant",type:"info",content:Q,timestamp:new Date().toISOString()}])},[ll]),_u=y.useCallback(N=>{w.current=sS(w.current,N)},[]),Xs=y.useCallback(async N=>{const Q=l.current;if(Q?.isConnected){if(Wn(N.sessionId)){Dn(N.sessionId);return}L.current=N.sessionId,It(!0),Ze(null);try{await Q.request({action:"session.history",id:Q.makeId("history"),sessionId:N.sessionId,agent:N.agent},{timeoutMessage:"History request timed out.",timeoutMs:Ny})}catch(I){L.current===N.sessionId&&Ze(I instanceof Error?I.message:String(I))}finally{Dn(N.sessionId)}}},[Dn,Wn]),Ql=y.useCallback(async(N,Q)=>{const I=l.current;if(I?.isConnected)try{const[re,$e,Ee]=await Promise.all([I.request({action:"models.list",id:I.makeId("models"),agent:N}),I.request({action:"usage.limits.fetch",id:I.makeId("usage"),agent:N}),I.request({action:"skills.list",id:I.makeId("skills"),cwd:Q||void 0})]);Vt(Fe=>({...Fe,[N]:re.options??[]})),Au(Fe=>({...Fe,[N]:$e})),Ls(Array.isArray(Ee.skills)?Ee.skills:[])}catch(re){Ze(re instanceof Error?re.message:String(re))}},[]),Zs=y.useCallback((N,Q,I="info")=>{const re=l.current;re?.isConnected&&re.request({action:"log.report",id:re.makeId("log"),entries:[{level:I,event:N,data:Q,ts:new Date().toISOString()}]}).catch(()=>{})},[]),Gl=y.useCallback(async(N=G.current)=>{if(!N){Jn(ld);return}Jn(Q=>({...Q,loading:!0,error:null}));try{const Q=await fetch(Sb(N,window.location,{sameOrigin:!1}),{cache:"no-store"});if(!Q.ok)throw new Error(`HTTP ${Q.status}`);const I=xb(await Q.json().catch(()=>null));Jn({...I,loading:!1,error:null})}catch{Jn(Q=>({...Q,loading:!1,error:"Could not read connector version."}))}},[]);y.useEffect(()=>{yn==="admin"&&Te==="connected"&&Gl()},[yn,Te,Gl]);const Ru=y.useCallback(N=>{wi(Q=>{const I={...Q,...N};return x.current=I,Yv(I),I})},[]),il=y.useCallback((N,Q)=>{!N||!Q||N===Q||(ge(I=>I===N?Q:I),z.current===N&&(z.current=Q),Y.current===N&&(Y.current=Q),w.current=iS(w.current,N,Q),oe.current=ey(oe.current,N,Q),Wt(I=>ey(I,N,Q)),bt(I=>Zo(I,N,Q)),Rt(I=>Zo(I,N,Q)),Pe(I=>Zo(I,N,Q)),v(I=>{const re=I[N];if(!re)return I;const $e={...I};return delete $e[N],$e[Q]={...re,sessionId:Q},$e}),fn(I=>{const re=rS(I,N,Q);return re!==I&&(V.current=re,Rs(re)),re}))},[]),Du=y.useCallback(async(N,Q,I)=>{const re=typeof I.sessionId=="string"?I.sessionId:N,$e=typeof I.oldSessionId=="string"?I.oldSessionId:N;$e&&re&&$e!==re&&il($e,re),Q.name==="clear"?(Yi(re,[]),Pe(Ee=>{const Fe={...Ee};return delete Fe[re],delete Fe[$e],Fe}),bt(Ee=>{const Fe={...Ee};return delete Fe[re],delete Fe[$e],Fe}),Rt(Ee=>{const Fe={...Ee};return delete Fe[re],delete Fe[$e],Fe}),ge(re)):Q.name==="new"?(ge(re),Y.current=re,Wn(re)):Q.name==="exit"?(k(Ee=>Ee.map(Fe=>Fe.sessionId===re?{...Fe,archived:!0}:Fe)),ge(null),Y.current=null,z.current=null,ee([])):Q.name==="goal"&&"goal"in I&&Qi(re,s1(I.goal)),I.turnStarted&&!I.queued&&(oe.current=new Set(oe.current).add(re),Wt(Ee=>new Set(Ee).add(re))),await Rn({force:!0})},[Qi,il,Wn,Yi,Rn]),zu=cS({notificationSettingsRef:x,notifiedEventsRef:F,notificationPermissionRef:S,activeSessionIdRef:r,respondingSessionsRef:oe,turnNotificationCountsRef:De,setActiveSessionId:ge,setErrorText:Ze,setPendingQueues:Pe,setPendingApprovals:bt,setPendingQuestions:Rt,setQuestionAnswers:dn,setRespondingSessions:Wt,setSessions:k,remapLocalSessionState:il,requestSessions:Rn,clearHistoryLoading:Dn,replaceCachedHistory:Yi,appendCachedHistory:ll,appendCachedDelta:Mu});Bb({clientRef:l,connectWithPairingRef:u,pairingRef:G,reconnectTimerRef:Z,connectionAttemptIdRef:q,intentionalDisconnectRef:he,historyCacheRef:w,historyCacheDaemonIdRef:E,messagesSessionIdRef:Y,lastHistorySessionIdRef:z,rememberedTarget:j.current[0]??null,agent:nt,cwd:at,phase:Te,search:xt,sinceFilter:Gt,t:lt,handleServerMessage:zu,setPhase:be,setStatusText:Je,setErrorText:Ze,setMessages:ee,setPairing:Qe,setSavedTargets:ju,setSessionsFromPage:al,refreshDaemonMetadata:Gl,requestReconnectSnapshot:Vs,fetchAgentResources:Ql,reportLog:Zs,requestSessions:Rn}),y.useEffect(()=>{const N=_n.find(Q=>Q.sessionId===de);if(!N){z.current=null,Y.current=null,Dn(),ee([]),_e(Ds(V.current,null));return}if(Dt(N.agent),Pt(N.cwd||on),O(N.model??""),pe(N.effort??""),et(N.fastMode??!1),St(N.approvalMode??td),Qt(N.customTitle??N.title??""),_e(Ds(V.current,N.sessionId)),el(Q=>({...Q,path:N.cwd||on,loaded:Q.path===(N.cwd||on)?Q.loaded:!1})),$[N.sessionId]){z.current=N.sessionId,Dn(),Y.current!==N.sessionId&&(Y.current=N.sessionId,ee([]));return}if(Wn(N.sessionId)){z.current=N.sessionId,Dn(N.sessionId);return}z.current!==N.sessionId&&(z.current=N.sessionId,Y.current!==N.sessionId&&(Y.current=N.sessionId,ee([])),Xs(N))},[de,Dn,_n,$,Wn,Xs]);const{stagePendingSession:ku,sendDraft:Ou}=fS({clientRef:l,activeSessionIdRef:r,composerDraftsRef:V,lastHistorySessionIdRef:z,messagesSessionIdRef:Y,respondingSessionsRef:oe,agent:nt,cwd:at,approvalMode:An,continueSession:P,model:rt,effort:ue,fastMode:je,activeSessionId:de,activeSession:nn,pendingSessions:$,draft:ye,busy:ba,attachments:Ri,setPendingSessions:W,setOptimisticSessions:v,setComposerDrafts:fn,setCwd:Pt,setAgent:Dt,setActiveSessionId:ge,setMessages:ee,setDraft:_e,setErrorText:Ze,setBusy:Dl,setAttachments:Ol,setRespondingSessions:Wt,clearHistoryLoading:Dn,reportLog:Zs,remapLocalSessionState:il,requestSessions:Rn,updateDraft:nl,appendCachedHistory:ll,renderCachedHistory:Wn,handleSessionCommandResponse:Du,appendInfoMessage:Qi}),{respondApproval:Uu,respondQuestion:Hu,cancelQuestion:qu,setQuestionChoice:Bu,requestActiveAction:Lu,updateApprovalMode:Gi,cancelQueuedTurn:sl,setSessionPinned:Yu,setSessionArchived:Ks,deleteSession:$s,updatePinned:Js,updateArchived:Fs,renameSession:Is}=dS({clientRef:l,activeSessionIdRef:r,composerDraftsRef:V,lastHistorySessionIdRef:z,messagesSessionIdRef:Y,activeApproval:Ui,activeQuestion:zt,activeSession:nn,activeSessionId:de,questionAnswers:Yt,pendingSessions:$,renameTitle:en,setBusy:Dl,setErrorText:Ze,setPendingApprovals:bt,setPendingQuestions:Rt,setQuestionAnswers:dn,setPendingQueues:Pe,setActiveSessionId:ge,setMessages:ee,setApprovalMode:St,setSessions:k,setPendingSessions:W,setComposerDrafts:fn,setDraft:_e,setDetailsOpen:Sa,setOptimisticSessions:v,removeCachedHistory:_u,requestSessions:Rn}),{runArchiveSync:Ln,skipArchiveSync:Qu,runAdminAction:Ws,exportActiveSession:Gu,clearPairing:Ps,setNotificationsEnabled:ec,connectSavedTarget:cl,forgetSavedTarget:ul,openSessionDetails:Vu,editFolderTags:Vl,browseFolder:tc,copyResumeCommand:nc}=_b({clientRef:l,pairingRef:G,connectWithPairingRef:u,notificationPermissionRef:S,intentionalDisconnectRef:he,connectionAttemptIdRef:q,historyCacheRef:w,historyCacheDaemonIdRef:E,messagesSessionIdRef:Y,lastHistorySessionIdRef:z,displaySessions:_n,pairing:He,t:lt,archiveSyncBusy:_i,daemonMetadata:At,activeSession:nn,messages:Mt,notificationPermission:tn,savedTargets:_l,directoryTags:Tn,setArchiveSyncBusy:xa,setArchiveSyncStatus:Ys,setSessions:k,setAdmin:Nu,setErrorText:Ze,setNotificationPermission:Mi,setStatusText:Je,setMessages:ee,setPairing:Qe,setDaemonMetadata:Jn,setPhase:be,setActiveSessionId:ge,setRenameTitle:Qt,setDetailsOpen:Sa,setControlTab:Pa,updateSessionListPreferences:$n,requestSessions:Rn,refreshDaemonMetadata:Gl,updateNotificationSettings:Ru,saveTargets:Hs,listDirectory:Fn}),Vi=tn==="denied"||tn==="unsupported",Xi=!!(At.version&&At.latestVersion&&vb(At.version,At.latestVersion)),rl=He?.daemonId,ac=!!(rl&&Ct[rl]),lc=!!(rl&&qt[rl]);return c.jsxs("main",{className:ga,style:Wa,children:[Cu?c.jsx("button",{"aria-label":lt.expandSessionSidebar,className:"sidebar-restore-button sidebar-restore-button-left",onClick:()=>Ti(!1),title:lt.expandSessionSidebar,type:"button",children:c.jsx(wy,{"aria-hidden":"true"})}):c.jsxs(c.Fragment,{children:[c.jsx(U1,{activeSessionId:de,busy:ba,collapsedFolders:Ci,currentCwd:at,directoryTags:Tn,displayName:He?.displayName,folderCounts:J,groupFolders:hn,groupedSessions:qi,hideArchived:Nn,inventoryVersion:me,nextCursor:H,phase:Te,respondingSessionIds:_t,search:xt,sessionAgentFilter:mn,sessionsCount:_n.length,sinceFilter:Gt,statusText:it,t:lt,visibleSessions:Hi,onLoadMore:N=>{Rn({append:!0,cursor:N})},onBrowseFolder:tc,onCopyResumeCommand:nc,onCreateDirectory:Ul,pendingSessionIds:Hl,onCreateSession:(N,Q)=>{ku(N,Q)},onDeleteSession:N=>{$s(N)},onEditFolderTags:Vl,onListDirectories:Bn,onOpenSessionDetails:Vu,onResetFilters:()=>{Ni("all"),jt("30d"),ya(!1),Fa(!1)},onSearchChange:ma,onSearchCommit:ft,onSelectSession:ge,onToggleSessionArchived:N=>{Ks(N,!N.archived)},onToggleSessionPinned:N=>{Yu(N,!N.pinned)},onSessionAgentFilterChange:Ni,onSinceFilterChange:jt,onViewChanges:Be,onToggleFolder:N=>Ai(Q=>({...Q,[N]:!Q[N]})),onToggleGroupFolders:()=>Fa(N=>!N),onToggleHideArchived:()=>ya(N=>!N),onToggleCollapse:()=>Ti(!0)}),c.jsx("button",{"aria-label":"Resize session sidebar",className:"resize-handle",onPointerDown:Kn("left"),title:"Resize session sidebar",type:"button",children:c.jsx("span",{})})]}),c.jsxs("section",{className:pa,"aria-label":"Vibelet workspace",children:[c.jsx(E1,{activeSession:nn,activeSessionId:de,activeModelOptions:ql,activeQueue:In,activeUsage:tl,agent:nt,approvalMode:An,attachments:Ri,busy:ba,cwd:at,draft:ye,effort:ue,errorText:Ce,fastMode:je,historyLoading:Oe,messages:Mt,model:rt,phase:Te,quickReplies:Zn.quickReplies,renameTitle:en,respondingSessionIds:_t,sendShortcut:Zn.sendShortcut,skills:Ei,uploadBusy:Eu,detailsOpen:zl,t:lt,onApprovalModeChange:N=>{Gi(N)},onBrowseFiles:()=>{const N=nn?.cwd||at||on;Pa("files"),Fn(N,{updateRoute:!0})},onCancelQueuedTurn:N=>{sl(N)},onClearInterrupt:()=>{Lu("session.clearInterrupt")},onDraftChange:nl,onDetailsOpenChange:Sa,onEffortChange:pe,onExportActiveSession:()=>{Gu()},onFastModeChange:et,onModelChange:O,onOpenRemoteFile:(N,Q)=>{Na(N,Q,{updateRoute:!0})},onRefreshSessions:()=>{Rn({force:!0})},onRenameSession:()=>{Is()},onRenameTitleChange:Qt,onRemoveAttachment:N=>Ol(Q=>Q.filter(I=>I.path!==N)),onRestoreSnapshot:()=>{Vs()},onRefreshSkills:()=>{Ql(nn?.agent??nt,at)},onSendShortcutChange:N=>va(Q=>({...Q,sendShortcut:N})),onSubmit:Ou,onToggleArchived:()=>{Fs()},onTogglePinned:()=>{Js()},onUploadFiles:Gs,onViewChanges:Be}),Ia?c.jsx("button",{"aria-label":lt.expandControlsSidebar,className:"sidebar-restore-button sidebar-restore-button-right",onClick:()=>Rl(!1),title:lt.expandControlsSidebar,type:"button",children:c.jsx(Wm,{"aria-hidden":"true"})}):c.jsxs(c.Fragment,{children:[c.jsx("button",{"aria-label":"Resize controls sidebar",className:"resize-handle right-resize-handle",onPointerDown:Kn("right"),title:"Resize controls sidebar",type:"button",children:c.jsx("span",{})}),c.jsxs("aside",{className:"control-pane","aria-label":"Controls",children:[c.jsxs("div",{className:"control-pane-toolbar",children:[c.jsx(M1,{value:yn,onChange:Pa}),c.jsx("button",{"aria-label":lt.collapseControlsSidebar,className:"sidebar-panel-collapse-button",onClick:()=>Rl(!0),title:lt.collapseControlsSidebar,type:"button",children:c.jsx(Wm,{"aria-hidden":"true"})})]}),yn==="session"?c.jsx(k1,{activeApproval:Ui,activeQuestion:zt,busy:ba,questionAnswers:Yt,t:lt,onCancelQuestion:()=>{qu()},onQuestionChoice:Bu,onRespondApproval:N=>{Uu(N)},onRespondQuestion:()=>{Hu()}}):null,yn==="files"?c.jsx(z1,{busy:ba,cwd:at,directory:wu,newDirName:wn,remoteFile:ja,remoteFileConflict:Aa,remoteFileMode:Qs,onCreateDirectory:()=>{Oi()},onDirectoryPathChange:N=>el(Q=>({...Q,path:N,loaded:!1})),onDownloadRemoteFile:()=>{ki()},onListDirectory:N=>{Fn(N,{updateRoute:!0})},onNewDirNameChange:Di,onOpenRemoteFile:(N,Q)=>{Na(N,Q,{updateRoute:!0})},onRemoteFileModeChange:zi,onRemoteFileTextChange:N=>Ca(Q=>Q&&{...Q,text:N,dirty:!0}),onSaveRemoteFile:N=>{Mn(N)}}):null,yn==="admin"?c.jsxs(c.Fragment,{children:[c.jsx(q1,{pairing:He,phase:Te,t:lt,onForgetPairing:Ps}),c.jsx(L1,{language:Et.language,t:lt,onLanguageChange:qs}),c.jsx(Q1,{activeDaemonId:He?.daemonId,busy:ba,t:lt,targets:_l,onConnect:cl,onForget:ul}),c.jsx(Y1,{notificationsBlocked:Vi,permission:tn,settings:kl,t:lt,onToggleEnabled:ec}),c.jsx(H1,{busy:_i,connected:Te==="connected",dismissed:lc,feedback:Tu,synced:ac,t:lt,onPull:()=>{Ln("pull")},onPushMerge:()=>{Ln("pushMerge")},onPushReplace:()=>{Ln("pushReplace")},onSkip:Qu}),c.jsx(B1,{connected:Te==="connected",metadata:At,restartBusy:qn.loading&&qn.action==="restart",showUpdate:Xi,t:lt,updateBusy:qn.loading&&qn.action==="update",updateStatus:qn.statusText,onRestart:()=>{Ws("restart")},onUpdate:()=>{Ws("update")}})]}):null]})]})]}),qe?(()=>{const N=C.find(I=>I.sessionId===qe),Q=l.current;return!N||!Q?null:c.jsx(G1,{client:Q,sessionId:N.sessionId,sessionTitle:Un(N),onClose:()=>Be(null)})})():null]})}const ug="(max-width: 767px), (hover: none) and (pointer: coarse) and (max-width: 1024px)",CS={en:"https://vibelet.icu/#get-app",zh:"https://vibelet.icu/zh/#get-app"},AS="https://apps.apple.com/app/id6761245790",NS="https://www.feishu.cn/file/RUnbb7INMocEFjxj5AWcC7WEn6d",TS={en:{eyebrow:"Vibelet Web",title:"Use the Vibelet app on mobile",description:"The Web workspace is available for desktop browsers only. Install the mobile app, then pair it with the desktop connector on your computer.",primary:"Open app download page",ios:"App Store",android:"Android APK",desktopOnly:"Desktop browser only",desktopHint:"Open this Web link on a desktop browser to continue here.",pairingBefore:"Run",pairingAfter:"on your computer, then scan the QR code from the app."},zh:{eyebrow:"Vibelet Web",title:"手机端请使用 Vibelet App",description:"Web 工作台只面向桌面浏览器。请安装手机 App,再和电脑上的桌面连接器完成配对。",primary:"打开 App 下载页",ios:"App Store",android:"Android APK",desktopOnly:"仅支持桌面浏览器",desktopHint:"如果要继续使用 Web,请在桌面浏览器打开这个链接。",pairingBefore:"在电脑上运行",pairingAfter:"然后用 App 扫描二维码。"}};function ES(){return typeof window<"u"&&typeof window.matchMedia=="function"&&window.matchMedia(ug).matches}function wS(){try{return ud(ig().language)}catch{return ud("system")}}function MS(){const l=wS(),u=TS[l],r=CS[l];return c.jsx("main",{className:"mobile-app-gate","aria-labelledby":"mobile-app-gate-title",children:c.jsxs("section",{className:"mobile-app-panel",children:[c.jsxs("div",{className:"mobile-app-hero",children:[c.jsx("span",{className:"mobile-app-icon","aria-hidden":"true",children:c.jsx(dv,{})}),c.jsx("span",{className:"mobile-app-eyebrow",children:u.eyebrow}),c.jsx("h1",{id:"mobile-app-gate-title",children:u.title}),c.jsx("p",{children:u.description})]}),c.jsxs("div",{className:"mobile-app-actions",role:"group","aria-label":u.primary,children:[c.jsxs("a",{className:"mobile-app-primary-link",href:r,children:[c.jsx(Si,{"aria-hidden":"true"}),c.jsx("span",{children:u.primary})]}),c.jsxs("a",{className:"mobile-app-secondary-link",href:AS,rel:"noopener noreferrer",target:"_blank",children:[c.jsx(fd,{"aria-hidden":"true"}),c.jsx("span",{children:u.ios})]}),c.jsxs("a",{className:"mobile-app-secondary-link",download:!0,href:NS,children:[c.jsx(Si,{"aria-hidden":"true"}),c.jsx("span",{children:u.android})]})]}),c.jsxs("div",{className:"mobile-app-note",children:[c.jsx(K0,{"aria-hidden":"true"}),c.jsxs("div",{children:[c.jsx("strong",{children:u.desktopOnly}),c.jsx("span",{children:u.desktopHint})]})]}),c.jsxs("p",{className:"mobile-app-footnote",children:[c.jsx("span",{children:u.pairingBefore}),c.jsx("code",{children:"npx vibelet"}),c.jsx("span",{children:u.pairingAfter})]})]})})}function _S(){const[l,u]=y.useState(ES);return y.useEffect(()=>{if(typeof window.matchMedia!="function")return;const r=window.matchMedia(ug),o=()=>u(r.matches);return o(),typeof r.addEventListener=="function"?(r.addEventListener("change",o),()=>r.removeEventListener("change",o)):(r.addListener(o),()=>r.removeListener(o))},[]),l?c.jsx(MS,{}):c.jsx(jS,{})}Bp.createRoot(document.getElementById("root")).render(c.jsx(y.StrictMode,{children:c.jsx(_S,{})}));export{Qy as _,Up as a,c as j,y as r};
|