@marimo-team/frontend 0.23.10-dev22 → 0.23.10-dev24

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.
Files changed (113) hide show
  1. package/dist/assets/{CellStatus-DMwpAXMZ.js → CellStatus-Bz67hL1K.js} +1 -1
  2. package/dist/assets/{ConnectedDataExplorerComponent-LDEBEgrJ.js → ConnectedDataExplorerComponent-DcTyhTMW.js} +1 -1
  3. package/dist/assets/{ImperativeModal-BeQmePpG.js → ImperativeModal-CYpBrCHJ.js} +1 -1
  4. package/dist/assets/{JsonOutput-B70lHHvX.js → JsonOutput-Hk49rzGl.js} +2 -2
  5. package/dist/assets/{LazyAnyLanguageCodeMirror-Bv7Emsba.js → LazyAnyLanguageCodeMirror-CaR5QYb0.js} +2 -2
  6. package/dist/assets/{MarimoErrorOutput-BQo8RTib.js → MarimoErrorOutput-DxKFtfTA.js} +1 -1
  7. package/dist/assets/{RSPContexts-Clr6RnG2.js → RSPContexts-K8MLzM3F.js} +1 -1
  8. package/dist/assets/{RenderHTML-DTHZ0W_b.js → RenderHTML-DMfo8SsK.js} +1 -1
  9. package/dist/assets/{RunButton-eAKy_Bh8.js → RunButton-CFOfNbXp.js} +1 -1
  10. package/dist/assets/{add-cell-with-ai-CxjV-UXz.js → add-cell-with-ai-BKuyHjk4.js} +1 -1
  11. package/dist/assets/{add-connection-dialog-BHZQ8B7f.js → add-connection-dialog-BGbZ16ED.js} +1 -1
  12. package/dist/assets/{agent-panel-CSht0CWB.js → agent-panel-BBLOq5h0.js} +1 -1
  13. package/dist/assets/{ai-model-dropdown-Bbt--cwF.js → ai-model-dropdown-BAozMKsl.js} +1 -1
  14. package/dist/assets/{alert-dialog-BqFLkbUc.js → alert-dialog-5BGIfskO.js} +2 -2
  15. package/dist/assets/{any-language-editor-CT8HF6T6.js → any-language-editor-9HMoB95o.js} +1 -1
  16. package/dist/assets/{app-config-button-Z8gpKuxR.js → app-config-button-Di13TXm3.js} +1 -1
  17. package/dist/assets/{cache-panel-js9LAxft.js → cache-panel-C_MtTQiK.js} +1 -1
  18. package/dist/assets/{cell-editor-72C0Zygh.js → cell-editor-CeynAchq.js} +1 -1
  19. package/dist/assets/{cell-link-ChdlswWe.js → cell-link-AJAjqJb5.js} +1 -1
  20. package/dist/assets/{cells-B1UeqCia.js → cells-6zANRDgG.js} +2 -2
  21. package/dist/assets/{chat-display-D4aawkG5.js → chat-display-BCEIxyP_.js} +1 -1
  22. package/dist/assets/{chat-panel-DqzUBGAQ.js → chat-panel-Cl9zidIA.js} +1 -1
  23. package/dist/assets/{chat-ui-sZqz1Jfc.js → chat-ui-DStkjRpP.js} +1 -1
  24. package/dist/assets/{column-preview-BIhZkwx8.js → column-preview-B2kXnKdd.js} +1 -1
  25. package/dist/assets/{command-palette-DZeNDzl3.js → command-palette-DzbGv49p.js} +1 -1
  26. package/dist/assets/{command-DUeag2QH.js → command-rtnOVF57.js} +1 -1
  27. package/dist/assets/{common-6io3mKWY.js → common-CMjpHxaM.js} +1 -1
  28. package/dist/assets/{components-oTA8dVbr.js → components-CY48CF-h.js} +1 -1
  29. package/dist/assets/{components-CZp0urSr.js → components-DIbnV6Ix.js} +1 -1
  30. package/dist/assets/{copy-icon-z0dzhmL4.js → copy-icon-c48rtYOO.js} +1 -1
  31. package/dist/assets/{datasource-7l-qg4-b.js → datasource-Bdio-a96.js} +1 -1
  32. package/dist/assets/{dependency-graph-panel-CqUTS6ib.js → dependency-graph-panel-CbOQYps7.js} +1 -1
  33. package/dist/assets/{dialog-DqOQT_n4.js → dialog-QgtiqcL7.js} +1 -1
  34. package/dist/assets/{dist-BdyjRhEt.js → dist-CWMKC7yO.js} +1 -1
  35. package/dist/assets/{documentation-panel-DBd3biLb.js → documentation-panel-BfWnQCo2.js} +1 -1
  36. package/dist/assets/{download-DcQWg8-m.js → download-C_cnbmM9.js} +1 -1
  37. package/dist/assets/{dropdown-menu-CR7cnzLX.js → dropdown-menu-CZ4XbE-c.js} +1 -1
  38. package/dist/assets/{edit-page-CzRGkZBf.js → edit-page-DUqpuxsJ.js} +6 -6
  39. package/dist/assets/{error-banner-CLO6LFll.js → error-banner-BEmVNYlO.js} +1 -1
  40. package/dist/assets/{error-panel-BoafWEAy.js → error-panel-CbdaHXST.js} +1 -1
  41. package/dist/assets/{es-au8YY-8E.js → es-DjCidlNc.js} +1 -1
  42. package/dist/assets/{field-B4CdIHa9.js → field-DTk6GDWB.js} +1 -1
  43. package/dist/assets/{file-explorer-panel-B94q-LIo.js → file-explorer-panel-CN4GhTVb.js} +1 -1
  44. package/dist/assets/{file-icons-8bgrYNC0.js → file-icons-DObkD0p2.js} +1 -1
  45. package/dist/assets/{file-name-input-C-nkVqG_.js → file-name-input-ClqWegY5.js} +1 -1
  46. package/dist/assets/{floating-outline-BBTN16Pi.js → floating-outline-DvtQqFjz.js} +1 -1
  47. package/dist/assets/{focus-C0_hrGnH.js → focus-Btnin91L.js} +1 -1
  48. package/dist/assets/{form-Bq0lMUxv.js → form-CBuNDBgZ.js} +1 -1
  49. package/dist/assets/{fullscreen-eipL3i3Y.js → fullscreen-DFky0PAA.js} +3 -3
  50. package/dist/assets/{gallery-page-BDt-STRr.js → gallery-page-Dq_Slpw_.js} +1 -1
  51. package/dist/assets/{glide-data-editor-CipAqqJq.js → glide-data-editor-Bk2JCgm9.js} +1 -1
  52. package/dist/assets/{globals-LRz1TwrD.js → globals-BlTO0oUB.js} +1 -1
  53. package/dist/assets/{home-page-WYmfqTfP.js → home-page-CCoM4rsU.js} +1 -1
  54. package/dist/assets/{hooks-DyYXumVE.js → hooks-BtuLiFDw.js} +1 -1
  55. package/dist/assets/{html-to-image-rfnXdqfv.js → html-to-image-DvVDsEqf.js} +1 -1
  56. package/dist/assets/index-Ct3LgsQ8.css +2 -0
  57. package/dist/assets/{index-C1PbYyzr.js → index-DqAsO6o_.js} +14 -14
  58. package/dist/assets/{input-TSilD7AA.js → input-Dvl7sgNQ.js} +1 -1
  59. package/dist/assets/{kiosk-mode-Da3sO64c.js → kiosk-mode-CTa--By7.js} +1 -1
  60. package/dist/assets/{label-xHqFtfdz.js → label-C2_YQRio.js} +1 -1
  61. package/dist/assets/{layout-DYQGL_5W.js → layout-4ZVNp_vO.js} +3 -3
  62. package/dist/assets/{logs-panel-CBQtSb87.js → logs-panel-c4kQoHV_.js} +1 -1
  63. package/dist/assets/{markdown-renderer-YEl8Z67L.js → markdown-renderer-j3gyUhRd.js} +1 -1
  64. package/dist/assets/{menu-items-DcP01QzW.js → menu-items-BP7Ju9ww.js} +1 -1
  65. package/dist/assets/{mermaid-DskEfPqD.js → mermaid-lvUkHhLR.js} +1 -1
  66. package/dist/assets/multi-map-C4OANz8X.js +1 -0
  67. package/dist/assets/{name-cell-input-CSSNMAt-.js → name-cell-input-JO6nrr1K.js} +1 -1
  68. package/dist/assets/{outline-panel-Bzu7s3vt.js → outline-panel-CvVvxFux.js} +1 -1
  69. package/dist/assets/{packages-panel-DsHF0wGn.js → packages-panel-qfKtDrNm.js} +1 -1
  70. package/dist/assets/{pair-with-agent-modal-Dh1WKytX.js → pair-with-agent-modal-DQuvaMjY.js} +1 -1
  71. package/dist/assets/{panels-Rpjf9H5q.js → panels-CCCnEBBY.js} +1 -1
  72. package/dist/assets/{popover-Bz_0Vkyf.js → popover-CNCYAwbC.js} +1 -1
  73. package/dist/assets/{process-output-D34znTpg.js → process-output-CLLxjn3z.js} +1 -1
  74. package/dist/assets/radio-group-BvfI-gyW.js +1 -0
  75. package/dist/assets/{readonly-python-code-DRB4Oujr.js → readonly-python-code-oS1ym1oK.js} +1 -1
  76. package/dist/assets/{renderShortcut-BTgMpqTK.js → renderShortcut-DbyG33_r.js} +1 -1
  77. package/dist/assets/{reveal-component-CMD_BnK_.js → reveal-component-Dr_6s_9X.js} +51 -51
  78. package/dist/assets/{run-page-BGVh53Fv.js → run-page-CYyEj38-.js} +1 -1
  79. package/dist/assets/{scratchpad-panel-Bu5uSOnh.js → scratchpad-panel-DOjHQ4C-.js} +1 -1
  80. package/dist/assets/{secrets-panel-C-AiYcTm.js → secrets-panel-CfNAgJOy.js} +1 -1
  81. package/dist/assets/{select-DZcFyKFQ.js → select-6suE6YM2.js} +1 -1
  82. package/dist/assets/{session-panel-CUuZscI9.js → session-panel-C8k5069O.js} +1 -1
  83. package/dist/assets/{snippets-panel-FZipjVGj.js → snippets-panel-BOrKs1xZ.js} +1 -1
  84. package/dist/assets/{state-Dd_QMTIr.js → state-BY9qohgO.js} +1 -1
  85. package/dist/assets/{state-DhERtUKY.js → state-CMmuAxhT.js} +1 -1
  86. package/dist/assets/{switch-NmKFCQsT.js → switch-DNHeV6xs.js} +1 -1
  87. package/dist/assets/{terminal-Brlgq9Xx.js → terminal-Blwyaj1h.js} +1 -1
  88. package/dist/assets/{textarea-DsHy664W.js → textarea-CnP3WeAt.js} +1 -1
  89. package/dist/assets/{tooltip-DTV9tlSr.js → tooltip-B_PkSKN3.js} +1 -1
  90. package/dist/assets/{tracing-B91zi1Cr.js → tracing-Bd-ySKo3.js} +1 -1
  91. package/dist/assets/{tracing-panel-B68PNYS8.js → tracing-panel-CPtHTsqj.js} +2 -2
  92. package/dist/assets/{tree-actions-DfrTuUnZ.js → tree-actions-Ci1FwTlL.js} +1 -1
  93. package/dist/assets/useBoolean-D4l-DzBM.js +1 -0
  94. package/dist/assets/{useCellActionButton-DS0VmOT4.js → useCellActionButton-DwC9zWoY.js} +1 -1
  95. package/dist/assets/{useDeleteCell-ByueGyf0.js → useDeleteCell-3h3Gz-NC.js} +1 -1
  96. package/dist/assets/{useDependencyPanelTab-B-_R5nHC.js → useDependencyPanelTab-CEvDlLGZ.js} +1 -1
  97. package/dist/assets/{useNotebookActions-BPxBZnuZ.js → useNotebookActions-CYlzhmGc.js} +1 -1
  98. package/dist/assets/{useRunCells-c7zq0oWm.js → useRunCells-Bdoq5z0L.js} +1 -1
  99. package/dist/assets/{useSplitCell-Dd5NLOUh.js → useSplitCell-DWbDk6-X.js} +1 -1
  100. package/dist/assets/{vega-component-DqVeZqOU.js → vega-component-BUm2umI3.js} +1 -1
  101. package/dist/assets/{write-secret-modal-BRlgVZs9.js → write-secret-modal-ln_lzzcL.js} +1 -1
  102. package/dist/index.html +48 -48
  103. package/package.json +1 -1
  104. package/src/components/editor/chrome/wrapper/app-chrome.tsx +97 -52
  105. package/src/components/editor/chrome/wrapper/lazy-panels.ts +91 -0
  106. package/src/components/editor/chrome/wrapper/sidebar.tsx +2 -0
  107. package/src/components/slides/reveal-component.tsx +4 -0
  108. package/src/components/ui/reorderable-list.tsx +13 -0
  109. package/src/utils/lazy.ts +6 -1
  110. package/dist/assets/index-DsKy-8bh.css +0 -2
  111. package/dist/assets/multi-map-CUuNtzHt.js +0 -1
  112. package/dist/assets/radio-group-B4UJ7sCK.js +0 -1
  113. package/dist/assets/useBoolean-DElMi9Nd.js +0 -1
@@ -1,5 +1,5 @@
1
1
  const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./esm-1wf4HygE.js","./chunk-LvLJmgfZ.js","./dist-BZX17NA8.js","./dist-C9ZB41s2.js","./dist-HlsDto3K.js","./dist-BrR4M-k3.js","./dist-CPF3W2Y-.js","./dist-BQeNY9Zl.js","./dist-B0N0-Vx5.js","./dist-BU26XwgJ.js","./dist-CWeWT34c.js","./dist-CXBpwk_w.js","./dist-v1cdVFWt.js","./dist-BZr6MMV-.js","./dist-COs9gIu5.js","./dist-DZPpMvcR.js","./dist-DUHHizRG.js","./dist-BE3jO1WU.js","./dist-CtfyEjVj.js","./dist-CSozmdJ6.js","./dist-CUapWJe4.js","./dist-D70Tz1Kr.js","./dist-C63_XIZr.js","./dist-Ckx5b63P.js","./dist-CDHGLvB9.js","./dist-AZ6vC6cU.js","./dist-D4Od5Ds4.js","./dist-DCqxOggh.js","./dist-BcAHw69V.js","./dist-B7WRiLJK.js","./dist-LFeDu06u.js","./dist-DkA__6UI.js","./dist-DkcQg5xD.js","./dist-CsvFAFh9.js","./dist-DK9FT3QL.js","./dist-CtcHy8Nq.js","./dist-DkzFxGAX.js","./dist-A7swzSTR.js","./dist-DmBXXm0k.js","./dist-BlOtCkpT.js","./dist-DH60fwgs.js","./dist-C78V1LRz.js","./apl-EAxnZS_5.js","./apl-Byte72fT.js","./asciiarmor-zxnaShQE.js","./asciiarmor-BU-VnG1Y.js","./asn1-7i28Os5R.js","./asn1-hTvH3S4T.js","./brainfuck-BZegPsXK.js","./brainfuck-C-q1Rv8J.js","./cobol-klCRwlLm.js","./cobol-BGdihAZT.js","./clike-bdcjLdZ4.js","./clike-BE-9Ct_H.js","./clojure-VUVi7fTV.js","./clojure-Co-TLeNo.js","./css-ACAb8MRM.js","./css-DPEtZWJi.js","./cmake-DZJIDbjY.js","./cmake-B-Nm_Opd.js","./coffeescript-C9foD9ub.js","./coffeescript-BUZXkMUO.js","./commonlisp-tHxoA35J.js","./commonlisp-CFkPbxvX.js","./cypher-CJ0Uzw29.js","./cypher-B0t8FJvU.js","./python-C83Db0-4.js","./python-BndVuwG1.js","./crystal-CQ11GdrX.js","./crystal-CqfqDl34.js","./d-DP0SUIt1.js","./d-DRa_XRSB.js","./diff-CNs8MB38.js","./diff-GLneonpD.js","./dockerfile-BSMbgQQl.js","./simple-mode-CFlvn0Mm.js","./dtd-BsD0uJw0.js","./dtd-uVrZNVF0.js","./dylan-DbrGP1IP.js","./dylan-DkNeA4FZ.js","./ecl-C0rZlhHw.js","./ecl-CldUgvc9.js","./eiffel-2ZX-OpSJ.js","./eiffel-CoMDRbRL.js","./elm-CbOSKldD.js","./elm-Cb5XC6ev.js","./erlang-BWiOgHIX.js","./erlang-8H3fTZ3L.js","./factor-CUwFIMOP.js","./factor-C-_cRSDM.js","./forth-BEQA4QQL.js","./forth-B8kC4npz.js","./fortran-DoPpOZgG.js","./fortran-CNWGEL3c.js","./mllike-B3kx3KeF.js","./mllike-DbuClUqc.js","./gas-BYovsvOE.js","./gas-DnZQNTHK.js","./gherkin-CFiRc1Pf.js","./gherkin-JfGcGvci.js","./groovy-DJNH7evt.js","./groovy-D0FWiAVm.js","./haskell-duZvcePm.js","./haskell-wUB3uX-G.js","./haxe-B2l95qvB.js","./haxe-g0JY6eL-.js","./idl-CZ_xwU8I.js","./idl-CV2cLkPc.js","./javascript-CF5KGSAj.js","./javascript-CT6okXEZ.js","./julia-BQlq5iZn.js","./julia-CKC48ufo.js","./livescript-sRMenfqS.js","./livescript-C43pZ6Ue.js","./lua-a56ITumN.js","./lua-Cs2mb10K.js","./mirc-S27kuZ31.js","./mirc-BKTAABSX.js","./mathematica-B3m4jXeH.js","./mathematica-B5FMK3ma.js","./modelica-DgbW4dSi.js","./modelica-CKRvBm7N.js","./mumps-4fnELyHs.js","./mumps-BFiMcyFV.js","./mbox-BtL7aO2I.js","./mbox-36Zrn5Bd.js","./nsis-BfGyMssE.js","./nsis-BGZ5EB-j.js","./ntriples-DeY1n_tC.js","./ntriples-QQAkJYAR.js","./octave-7Qn21jzx.js","./octave-DsTphmGZ.js","./oz-CiPFl3Ni.js","./oz-CD9rr5Iz.js","./pascal-BH9yQLzw.js","./pascal-DdHEIlJE.js","./perl-DfMCx2i2.js","./perl-DHPJBQ1u.js","./pig-D9CNebQN.js","./pig-Yz7ERgca.js","./powershell-Dss0bU9F.js","./powershell-CHPZ_bsU.js","./properties-CHADYQUL.js","./properties-CI9nc7K4.js","./protobuf-DFN-V4SD.js","./protobuf-BYSIv2pY.js","./pug-DOI9FnEk.js","./pug-CYW0agOo.js","./puppet-BV0HAkDS.js","./puppet-CEpLafZX.js","./q-D84S4YaJ.js","./q-L_cetpiW.js","./r-jmqrRzXv.js","./r-Dd37AKWk.js","./rpm-DUjG0xRk.js","./rpm-CHrvhtlN.js","./ruby-SP4FIzir.js","./ruby-BPOowfX6.js","./sas-BxaPz2EX.js","./sas-BsEFSvEP.js","./scheme-HBseLApj.js","./scheme-B42INBu7.js","./shell-w8ATY_lQ.js","./shell-BPea12OI.js","./sieve-Dyq0LGDO.js","./sieve-C-yPcLw5.js","./smalltalk-D7mAtumc.js","./smalltalk-e7OO1ATb.js","./sparql-DAeEYE_u.js","./sparql-B4I2Ledx.js","./stylus-Cw3Ugan7.js","./stylus-CBRbZwhN.js","./swift-CPsNOBsX.js","./swift-B2hnU7ha.js","./stex-C8c2RsN8.js","./stex-lcoTi-7o.js","./verilog-CxVhamiH.js","./verilog-jmuT_L3b.js","./tcl-BfWyQdZa.js","./tcl-BtyamtaZ.js","./textile-BKgaSzSN.js","./textile-M9mhyNE9.js","./toml-BSOdv04W.js","./toml-YxyxhyRy.js","./troff-C0hD9kig.js","./troff-C7xpi05X.js","./ttcn-DEqPxhoh.js","./ttcn-D3YytrJU.js","./ttcn-cfg-B-7jSlUe.js","./ttcn-cfg-DlZ5vA9E.js","./turtle-BTtgFsu8.js","./turtle-BSHvAsUe.js","./webidl-CBjKmBwO.js","./webidl-B-YB_4OQ.js","./vb-DfRPk_ji.js","./vb-DdkIDLlO.js","./vbscript-C8D4uv5N.js","./vbscript-DhYGmk_p.js","./velocity-DxKr2FFC.js","./velocity-DAXJNEw4.js","./vhdl-B-IpBNOA.js","./vhdl-DcVQ97RU.js","./xquery-ABGCbLv0.js","./xquery-DOmY3Oe8.js","./yacas-Ckyxh7oh.js","./yacas-pL3kJRXV.js","./z80-Dr5sQweg.js","./z80-VwVuI_MT.js","./mscgen-BIa_4d-0.js","./mscgen-B4BRgnCi.js","./dist-bRDVNr1s.js","./dist-CaCigNvN.js","./dist-CXYKut-0.js","./node-sql-parser-BtkrI4pN.js"])))=>i.map(i=>d[i]);
2
- var q6=Object.defineProperty;var F6=(pa,_r,ai)=>_r in pa?q6(pa,_r,{enumerable:!0,configurable:!0,writable:!0,value:ai}):pa[_r]=ai;var ve=(pa,_r,ai)=>F6(pa,typeof _r!="symbol"?_r+"":_r,ai);import{a as B6,n as Ew,o as V6,r as H6,s as Mu,t as rt}from"./chunk-LvLJmgfZ.js";import{c as Tw,i as Pe,l as Iw,p as Ee,r as $6,s as W6,u as rn}from"./useEvent-D91BmmQi.js";import{t as Nu}from"./react-Bj1aDYRI.js";import{t as Lw}from"./react-dom-CSu739Rf.js";import{B as U6,N as K6,P as Ow,R as Aw,T as Rw,k as Q6,w as G6}from"./zod-H_cgTO0M.js";import{t as Fn}from"./compiler-runtime-B3qBwwSJ.js";import{t as $h}from"./debounce-DhnxH9Rh.js";import{_ as we,d as Rr,f as Pw,o as Du,p as J6}from"./useEventListener-DvoEXWke.js";import{t as an}from"./invariant-BUdrueMv.js";import{m as Mw,t as Nw}from"./utils-CvI-39U6.js";import{S as X6,T as ju,r as Y6}from"./config-DH1Le_e1.js";import{n as Z6,t as Pr}from"./cn-DCUzRj2J.js";import{t as eI}from"./jsx-runtime-BqBOg78p.js";import{C as sa,S as Dw,_ as jw,b as nr,f as tI,h as zu,m as nI,u as rI,v as zw,w as aI,y as iI}from"./fullscreen-eipL3i3Y.js";import{l as qw,o as oI}from"./dist-BdyjRhEt.js";import{d as sI}from"./menu-items-DcP01QzW.js";import{a as lI,c as cI,i as Wh,m as uI,n as dI,o as Fw,r as fI,s as pI,t as hI}from"./select-DZcFyKFQ.js";import{i as mI,t as Uh}from"./tooltip-DTV9tlSr.js";import{t as Bw}from"./button-BbCh-29a.js";import{A as gI,At as Kh,Bt as $t,C as yI,D as vI,Et as Vw,Ft as Hw,Gt as bI,H as Qh,Ht as Sl,I as $w,J as qu,Jt as la,Kt as Ww,Ot as ss,S as wI,St as Xa,T as Uw,U as _I,Ut as Kw,Vt as xI,W as kI,Wt as Fu,Xt as Ki,Yt as ls,Zt as cs,_t as CI,at as Et,b as Qw,ct as Qi,f as Gw,it as SI,jt as EI,k as TI,l as ne,mt as II,nt as Jw,ot as LI,p as OI,rt as ca,u as Xw,ut as AI,xt as Gh,z as Yw,zt as Bu}from"./dist-BrR4M-k3.js";import{C as RI,D as PI,L as MI,O as NI,T as DI,b as jI,d as Zw,f as zI,g as qI,h as FI,k as BI,n as VI,o as Jh,p as HI,s as $I,t as WI,u as UI,w as KI,x as QI}from"./dist-CHcznzB-.js";import{a as El,i as Xh,m as Yh,n as GI,r as e_}from"./arrays-DYDL-3-i.js";import{n as rr}from"./once-DRroIaBz.js";import{t as JI}from"./capabilities-A_KhFcGV.js";import{t as XI}from"./cjs-BRGiG41H.js";import{t as us}from"./createReducer-CI9qeK_X.js";import{d as t_,l as n_,n as YI,o as r_,p as ZI,r as Vu}from"./dist-HlsDto3K.js";import{t as a_}from"./main-B0OX4z33.js";import{n as i_,t as e8}from"./useNonce-DfoVjkkH.js";import{i as ds,r as t8,t as n8}from"./strings-wdPMRf6Z.js";import{t as br}from"./requests-DIwGYs0l.js";import{a as r8,c as a8,d as i8,f as o_,i as o8,l as s8,n as l8,o as Zh,r as c8,s as Hu,t as u8,u as d8}from"./dist-C9ZB41s2.js";import{t as ot}from"./createLucideIcon-D5guW7EU.js";import{a as em,i as f8,o as p8,r as h8,t as m8}from"./useLifecycle-DieWOfXE.js";import{t as g8}from"./check-BH35Ndha.js";import{t as y8}from"./x-C-6liIBr.js";import{t as v8,u as b8}from"./toDate-B5A0DFEz.js";import{t as tm}from"./database-zap-kIkTfzTX.js";import{n as w8,t as Tl}from"./DeferredRequestRegistry-CzVJLtsG.js";import{t as Bn}from"./badge-DOX1Xxa9.js";import{t as re}from"./preload-helper-DdZsAcJe.js";import{a as s_,s as _8}from"./dist-DCqxOggh.js";import{a as x8,i as nm,n as k8,r as l_,t as C8}from"./dist-DkA__6UI.js";import{n as S8}from"./stex-lcoTi-7o.js";import{t as Il}from"./use-toast-9t59MOqR.js";import{n as c_}from"./paths-SFhaqGlE.js";import{n as E8}from"./useTheme-BrivXfaa.js";import{t as rm}from"./purify.es-DvRMX74T.js";let am,$u,u_,Wu,d_,Uu,f_,Ku,im,p_,h_,Ll,Ol,Al,m_,g_,Qu,om,y_,v_,b_,w_,sm,__,x_,gn,lm,cm,Vn,k_,C_,Gu,Ju,S_,um,Xu,Yu,st,E_,dm,T_,Ya,I_,Zu,L_,En,O_,A_,R_,fm,P_,M_,pm,N_,ed,D_,ua,j_,z_,fs,q_,F_,B_,V_,H_,td,$_,hm,W_,mm,gm,U_,K_,Q_,Rl,G_,ym,nd,J_,Za,vm,X_,rd,bm,Y_,wm,Mr,ar,Hn,ei,Z_,_m,ex,tx,ad,xm,Gi,nx,Pl,id,km,od,rx,Cm,ax,da,ix,ox,Sm,sd,sx,$n,lx,cx,Em,Ji,ux,Tm,ld,Im,dx,Lm,cd,Om,fx,px,Ml,hx,ud,mx,gx,Nl,Am,yx,dd,Rm,Pm,Dl,vx,Xe,fd,bx,Mm,Nm,wx,ps,_x,Xi,xx,kx,Cx,fa,Dm,jm,zm,pd,Sx,qm,hd,Fm,jl,Bm,Ex,Tx,hs,Vm,md,gd,yd,ti,Hm,Yi,Ix,vd,bd,Lx,Ox,Ax,Rx,Px,Mx,Zi,$m,Nx,Wm,zl,Dx,wd,jx,ql,zx,Um,qx,Fx,Km,Bx,Qm,Gm,_d,Vx,Jm,Hx,xd,$x,Fl,Xm,Ym,kd,Wx,Zm,Ux,e0,t0,n0,Kx,Qx,r0,Gx,eo,a0,Cd,i0,Jx,Bl,Xx,o0,s0,Yx,Sd,l0,ni,Zx,c0,ri,ek,u0,d0,tk,f0,nk,Ed,p0,rk,ms,h0,m0,ak,ik,gs,ok,g0,wr,sk,lk,Td,ys,y0,Wn,Id,ck,uk,v0,T8=(async()=>{var ur,Ff,mi;let pa,_r,ai;pa=rt((e=>{function n(ie,ee){var W=ie.length;ie.push(ee);e:for(;0<W;){var Ie=W-1>>>1,He=ie[Ie];if(0<s(He,ee))ie[Ie]=ee,ie[W]=He,W=Ie;else break e}}function a(ie){return ie.length===0?null:ie[0]}function o(ie){if(ie.length===0)return null;var ee=ie[0],W=ie.pop();if(W!==ee){ie[0]=W;e:for(var Ie=0,He=ie.length,et=He>>>1;Ie<et;){var Fe=2*(Ie+1)-1,Ne=ie[Fe],Le=Fe+1,De=ie[Le];if(0>s(Ne,W))Le<He&&0>s(De,Ne)?(ie[Ie]=De,ie[Le]=W,Ie=Le):(ie[Ie]=Ne,ie[Fe]=W,Ie=Fe);else if(Le<He&&0>s(De,W))ie[Ie]=De,ie[Le]=W,Ie=Le;else break e}}return ee}function s(ie,ee){var W=ie.sortIndex-ee.sortIndex;return W===0?ie.id-ee.id:W}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;e.unstable_now=function(){return c.now()}}else{var d=Date,f=d.now();e.unstable_now=function(){return d.now()-f}}var m=[],b=[],w=1,x=null,S=3,E=!1,I=!1,P=!1,z=!1,B=typeof setTimeout=="function"?setTimeout:null,V=typeof clearTimeout=="function"?clearTimeout:null,N=typeof setImmediate<"u"?setImmediate:null;function X(ie){for(var ee=a(b);ee!==null;){if(ee.callback===null)o(b);else if(ee.startTime<=ie)o(b),ee.sortIndex=ee.expirationTime,n(m,ee);else break;ee=a(b)}}function ce(ie){if(P=!1,X(ie),!I)if(a(m)!==null)I=!0,A||(A=!0,ye());else{var ee=a(b);ee!==null&&le(ce,ee.startTime-ie)}}var A=!1,q=-1,$=5,oe=-1;function de(){return z?!0:!(e.unstable_now()-oe<$)}function he(){if(z=!1,A){var ie=e.unstable_now();oe=ie;var ee=!0;try{e:{I=!1,P&&(P=!1,V(q),q=-1),E=!0;var W=S;try{t:{for(X(ie),x=a(m);x!==null&&!(x.expirationTime>ie&&de());){var Ie=x.callback;if(typeof Ie=="function"){x.callback=null,S=x.priorityLevel;var He=Ie(x.expirationTime<=ie);if(ie=e.unstable_now(),typeof He=="function"){x.callback=He,X(ie),ee=!0;break t}x===a(m)&&o(m),X(ie)}else o(m);x=a(m)}if(x!==null)ee=!0;else{var et=a(b);et!==null&&le(ce,et.startTime-ie),ee=!1}}break e}finally{x=null,S=W,E=!1}ee=void 0}}finally{ee?ye():A=!1}}}var ye;if(typeof N=="function")ye=function(){N(he)};else if(typeof MessageChannel<"u"){var _e=new MessageChannel,be=_e.port2;_e.port1.onmessage=he,ye=function(){be.postMessage(null)}}else ye=function(){B(he,0)};function le(ie,ee){q=B(function(){ie(e.unstable_now())},ee)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(ie){ie.callback=null},e.unstable_forceFrameRate=function(ie){0>ie||125<ie?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):$=0<ie?Math.floor(1e3/ie):5},e.unstable_getCurrentPriorityLevel=function(){return S},e.unstable_next=function(ie){switch(S){case 1:case 2:case 3:var ee=3;break;default:ee=S}var W=S;S=ee;try{return ie()}finally{S=W}},e.unstable_requestPaint=function(){z=!0},e.unstable_runWithPriority=function(ie,ee){switch(ie){case 1:case 2:case 3:case 4:case 5:break;default:ie=3}var W=S;S=ie;try{return ee()}finally{S=W}},e.unstable_scheduleCallback=function(ie,ee,W){var Ie=e.unstable_now();switch(typeof W=="object"&&W?(W=W.delay,W=typeof W=="number"&&0<W?Ie+W:Ie):W=Ie,ie){case 1:var He=-1;break;case 2:He=250;break;case 5:He=1073741823;break;case 4:He=1e4;break;default:He=5e3}return He=W+He,ie={id:w++,callback:ee,priorityLevel:ie,startTime:W,expirationTime:He,sortIndex:-1},W>Ie?(ie.sortIndex=W,n(b,ie),a(m)===null&&ie===a(b)&&(P?(V(q),q=-1):P=!0,le(ce,W-Ie))):(ie.sortIndex=He,n(m,ie),I||E||(I=!0,A||(A=!0,ye()))),ie},e.unstable_shouldYield=de,e.unstable_wrapCallback=function(ie){var ee=S;return function(){var W=S;S=ee;try{return ie.apply(this,arguments)}finally{S=W}}}})),_r=rt(((e,n)=>{n.exports=pa()})),ai=rt((e=>{var n=_r(),a=Nu(),o=Lw();function s(t){var r="https://react.dev/errors/"+t;if(1<arguments.length){r+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)r+="&args[]="+encodeURIComponent(arguments[i])}return"Minified React error #"+t+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function d(t){var r=t,i=t;if(t.alternate)for(;r.return;)r=r.return;else{t=r;do r=t,r.flags&4098&&(i=r.return),t=r.return;while(t)}return r.tag===3?i:null}function f(t){if(t.tag===13){var r=t.memoizedState;if(r===null&&(t=t.alternate,t!==null&&(r=t.memoizedState)),r!==null)return r.dehydrated}return null}function m(t){if(t.tag===31){var r=t.memoizedState;if(r===null&&(t=t.alternate,t!==null&&(r=t.memoizedState)),r!==null)return r.dehydrated}return null}function b(t){if(d(t)!==t)throw Error(s(188))}function w(t){var r=t.alternate;if(!r){if(r=d(t),r===null)throw Error(s(188));return r===t?t:null}for(var i=t,l=r;;){var p=i.return;if(p===null)break;var g=p.alternate;if(g===null){if(l=p.return,l!==null){i=l;continue}break}if(p.child===g.child){for(g=p.child;g;){if(g===i)return b(p),t;if(g===l)return b(p),r;g=g.sibling}throw Error(s(188))}if(i.return!==l.return)i=p,l=g;else{for(var C=!1,L=p.child;L;){if(L===i){C=!0,i=p,l=g;break}if(L===l){C=!0,l=p,i=g;break}L=L.sibling}if(!C){for(L=g.child;L;){if(L===i){C=!0,i=g,l=p;break}if(L===l){C=!0,l=g,i=p;break}L=L.sibling}if(!C)throw Error(s(189))}}if(i.alternate!==l)throw Error(s(190))}if(i.tag!==3)throw Error(s(188));return i.stateNode.current===i?t:r}function x(t){var r=t.tag;if(r===5||r===26||r===27||r===6)return t;for(t=t.child;t!==null;){if(r=x(t),r!==null)return r;t=t.sibling}return null}var S=Object.assign,E=Symbol.for("react.element"),I=Symbol.for("react.transitional.element"),P=Symbol.for("react.portal"),z=Symbol.for("react.fragment"),B=Symbol.for("react.strict_mode"),V=Symbol.for("react.profiler"),N=Symbol.for("react.consumer"),X=Symbol.for("react.context"),ce=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),q=Symbol.for("react.suspense_list"),$=Symbol.for("react.memo"),oe=Symbol.for("react.lazy"),de=Symbol.for("react.activity"),he=Symbol.for("react.memo_cache_sentinel"),ye=Symbol.iterator;function _e(t){return typeof t!="object"||!t?null:(t=ye&&t[ye]||t["@@iterator"],typeof t=="function"?t:null)}var be=Symbol.for("react.client.reference");function le(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===be?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case z:return"Fragment";case V:return"Profiler";case B:return"StrictMode";case A:return"Suspense";case q:return"SuspenseList";case de:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case P:return"Portal";case X:return t.displayName||"Context";case N:return(t._context.displayName||"Context")+".Consumer";case ce:var r=t.render;return t=t.displayName,t||(t=(t=r.displayName||r.name||"",t===""?"ForwardRef":"ForwardRef("+t+")")),t;case $:return r=t.displayName||null,r===null?le(t.type)||"Memo":r;case oe:r=t._payload,t=t._init;try{return le(t(r))}catch{}}return null}var ie=Array.isArray,ee=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ie={pending:!1,data:null,method:null,action:null},He=[],et=-1;function Fe(t){return{current:t}}function Ne(t){0>et||(t.current=He[et],He[et]=null,et--)}function Le(t,r){et++,He[et]=t.current,t.current=r}var De=Fe(null),Tt=Fe(null),Pt=Fe(null),_a=Fe(null);function wo(t,r){switch(Le(Pt,r),Le(Tt,t),Le(De,null),r.nodeType){case 9:case 11:t=(t=r.documentElement)&&(t=t.namespaceURI)?Y2(t):0;break;default:if(t=r.tagName,r=r.namespaceURI)r=Y2(r),t=Z2(r,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}Ne(De),Le(De,t)}function On(){Ne(De),Ne(Tt),Ne(Pt)}function jr(t){t.memoizedState!==null&&Le(_a,t);var r=De.current,i=Z2(r,t.type);r!==i&&(Le(Tt,t),Le(De,i))}function gi(t){Tt.current===t&&(Ne(De),Ne(Tt)),_a.current===t&&(Ne(_a),_l._currentValue=Ie)}var _o,Ls;function mt(t){if(_o===void 0)try{throw Error()}catch(i){var r=i.stack.trim().match(/\n( *(at )?)/);_o=r&&r[1]||"",Ls=-1<i.stack.indexOf(`
2
+ var q6=Object.defineProperty;var F6=(pa,_r,ai)=>_r in pa?q6(pa,_r,{enumerable:!0,configurable:!0,writable:!0,value:ai}):pa[_r]=ai;var ve=(pa,_r,ai)=>F6(pa,typeof _r!="symbol"?_r+"":_r,ai);import{a as B6,n as Ew,o as V6,r as H6,s as Mu,t as rt}from"./chunk-LvLJmgfZ.js";import{c as Tw,i as Pe,l as Iw,p as Ee,r as $6,s as W6,u as rn}from"./useEvent-D91BmmQi.js";import{t as Nu}from"./react-Bj1aDYRI.js";import{t as Lw}from"./react-dom-CSu739Rf.js";import{B as U6,N as K6,P as Ow,R as Aw,T as Rw,k as Q6,w as G6}from"./zod-H_cgTO0M.js";import{t as Fn}from"./compiler-runtime-B3qBwwSJ.js";import{t as $h}from"./debounce-DhnxH9Rh.js";import{_ as we,d as Rr,f as Pw,o as Du,p as J6}from"./useEventListener-DvoEXWke.js";import{t as an}from"./invariant-BUdrueMv.js";import{m as Mw,t as Nw}from"./utils-CvI-39U6.js";import{S as X6,T as ju,r as Y6}from"./config-DH1Le_e1.js";import{n as Z6,t as Pr}from"./cn-DCUzRj2J.js";import{t as eI}from"./jsx-runtime-BqBOg78p.js";import{C as Dw,T as tI,b as nI,d as rI,g as zu,h as aI,p as iI,v as jw,w as sa,x as nr,y as zw}from"./fullscreen-DFky0PAA.js";import{l as qw,o as oI}from"./dist-CWMKC7yO.js";import{d as sI}from"./menu-items-BP7Ju9ww.js";import{a as lI,c as cI,i as Wh,m as uI,n as dI,o as Fw,r as fI,s as pI,t as hI}from"./select-6suE6YM2.js";import{i as mI,t as Uh}from"./tooltip-B_PkSKN3.js";import{t as Bw}from"./button-BbCh-29a.js";import{A as gI,At as Kh,Bt as $t,C as yI,D as vI,Et as Vw,Ft as Hw,Gt as bI,H as Qh,Ht as Sl,I as $w,J as qu,Jt as la,Kt as Ww,Ot as ss,S as wI,St as Xa,T as Uw,U as _I,Ut as Kw,Vt as xI,W as kI,Wt as Fu,Xt as Ki,Yt as ls,Zt as cs,_t as CI,at as Et,b as Qw,ct as Qi,f as Gw,it as SI,jt as EI,k as TI,l as ne,mt as II,nt as Jw,ot as LI,p as OI,rt as ca,u as Xw,ut as AI,xt as Gh,z as Yw,zt as Bu}from"./dist-BrR4M-k3.js";import{C as RI,D as PI,L as MI,O as NI,T as DI,b as jI,d as Zw,f as zI,g as qI,h as FI,k as BI,n as VI,o as Jh,p as HI,s as $I,t as WI,u as UI,w as KI,x as QI}from"./dist-CHcznzB-.js";import{a as El,i as Xh,m as Yh,n as GI,r as e_}from"./arrays-DYDL-3-i.js";import{n as rr}from"./once-DRroIaBz.js";import{t as JI}from"./capabilities-A_KhFcGV.js";import{t as XI}from"./cjs-BRGiG41H.js";import{t as us}from"./createReducer-CI9qeK_X.js";import{d as t_,l as n_,n as YI,o as r_,p as ZI,r as Vu}from"./dist-HlsDto3K.js";import{t as a_}from"./main-B0OX4z33.js";import{n as i_,t as e8}from"./useNonce-DfoVjkkH.js";import{i as ds,r as t8,t as n8}from"./strings-wdPMRf6Z.js";import{t as br}from"./requests-DIwGYs0l.js";import{a as r8,c as a8,d as i8,f as o_,i as o8,l as s8,n as l8,o as Zh,r as c8,s as Hu,t as u8,u as d8}from"./dist-C9ZB41s2.js";import{t as ot}from"./createLucideIcon-D5guW7EU.js";import{a as em,i as f8,o as p8,r as h8,t as m8}from"./useLifecycle-DieWOfXE.js";import{t as g8}from"./check-BH35Ndha.js";import{t as y8}from"./x-C-6liIBr.js";import{t as v8,u as b8}from"./toDate-B5A0DFEz.js";import{t as tm}from"./database-zap-kIkTfzTX.js";import{n as w8,t as Tl}from"./DeferredRequestRegistry-CzVJLtsG.js";import{t as Bn}from"./badge-DOX1Xxa9.js";import{t as re}from"./preload-helper-DdZsAcJe.js";import{a as s_,s as _8}from"./dist-DCqxOggh.js";import{a as x8,i as nm,n as k8,r as l_,t as C8}from"./dist-DkA__6UI.js";import{n as S8}from"./stex-lcoTi-7o.js";import{t as Il}from"./use-toast-9t59MOqR.js";import{n as c_}from"./paths-SFhaqGlE.js";import{n as E8}from"./useTheme-BrivXfaa.js";import{t as rm}from"./purify.es-DvRMX74T.js";let am,$u,u_,Wu,d_,Uu,f_,Ku,im,p_,h_,Ll,Ol,Al,m_,g_,Qu,om,y_,v_,b_,w_,sm,__,x_,gn,lm,cm,Vn,k_,C_,Gu,Ju,S_,um,Xu,Yu,st,E_,dm,T_,Ya,I_,Zu,L_,En,O_,A_,R_,fm,P_,M_,pm,N_,ed,D_,ua,j_,z_,fs,q_,F_,B_,V_,H_,td,$_,hm,W_,mm,gm,U_,K_,Q_,Rl,G_,ym,nd,J_,Za,vm,X_,rd,bm,Y_,wm,Mr,ar,Hn,ei,Z_,_m,ex,tx,ad,xm,Gi,nx,Pl,id,km,od,rx,Cm,ax,da,ix,ox,Sm,sd,sx,$n,lx,cx,Em,Ji,ux,Tm,ld,Im,dx,Lm,cd,Om,fx,px,Ml,hx,ud,mx,gx,Nl,Am,yx,dd,Rm,Pm,Dl,vx,Xe,fd,bx,Mm,Nm,wx,ps,_x,Xi,xx,kx,Cx,fa,Dm,jm,zm,pd,Sx,qm,hd,Fm,jl,Bm,Ex,Tx,hs,Vm,md,gd,yd,ti,Hm,Yi,Ix,vd,bd,Lx,Ox,Ax,Rx,Px,Mx,Zi,$m,Nx,Wm,zl,Dx,wd,jx,ql,zx,Um,qx,Fx,Km,Bx,Qm,Gm,_d,Vx,Jm,Hx,xd,$x,Fl,Xm,Ym,kd,Wx,Zm,Ux,e0,t0,n0,Kx,Qx,r0,Gx,eo,a0,Cd,i0,Jx,Bl,Xx,o0,s0,Yx,Sd,l0,ni,Zx,c0,ri,ek,u0,d0,tk,f0,nk,Ed,p0,rk,ms,h0,m0,ak,ik,gs,ok,g0,wr,sk,lk,Td,ys,y0,Wn,Id,ck,uk,v0,T8=(async()=>{var ur,Ff,mi;let pa,_r,ai;pa=rt((e=>{function n(ie,ee){var W=ie.length;ie.push(ee);e:for(;0<W;){var Ie=W-1>>>1,He=ie[Ie];if(0<s(He,ee))ie[Ie]=ee,ie[W]=He,W=Ie;else break e}}function a(ie){return ie.length===0?null:ie[0]}function o(ie){if(ie.length===0)return null;var ee=ie[0],W=ie.pop();if(W!==ee){ie[0]=W;e:for(var Ie=0,He=ie.length,et=He>>>1;Ie<et;){var Fe=2*(Ie+1)-1,Ne=ie[Fe],Le=Fe+1,De=ie[Le];if(0>s(Ne,W))Le<He&&0>s(De,Ne)?(ie[Ie]=De,ie[Le]=W,Ie=Le):(ie[Ie]=Ne,ie[Fe]=W,Ie=Fe);else if(Le<He&&0>s(De,W))ie[Ie]=De,ie[Le]=W,Ie=Le;else break e}}return ee}function s(ie,ee){var W=ie.sortIndex-ee.sortIndex;return W===0?ie.id-ee.id:W}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;e.unstable_now=function(){return c.now()}}else{var d=Date,f=d.now();e.unstable_now=function(){return d.now()-f}}var m=[],b=[],w=1,x=null,S=3,E=!1,I=!1,P=!1,z=!1,B=typeof setTimeout=="function"?setTimeout:null,V=typeof clearTimeout=="function"?clearTimeout:null,N=typeof setImmediate<"u"?setImmediate:null;function X(ie){for(var ee=a(b);ee!==null;){if(ee.callback===null)o(b);else if(ee.startTime<=ie)o(b),ee.sortIndex=ee.expirationTime,n(m,ee);else break;ee=a(b)}}function ce(ie){if(P=!1,X(ie),!I)if(a(m)!==null)I=!0,A||(A=!0,ye());else{var ee=a(b);ee!==null&&le(ce,ee.startTime-ie)}}var A=!1,q=-1,$=5,oe=-1;function de(){return z?!0:!(e.unstable_now()-oe<$)}function he(){if(z=!1,A){var ie=e.unstable_now();oe=ie;var ee=!0;try{e:{I=!1,P&&(P=!1,V(q),q=-1),E=!0;var W=S;try{t:{for(X(ie),x=a(m);x!==null&&!(x.expirationTime>ie&&de());){var Ie=x.callback;if(typeof Ie=="function"){x.callback=null,S=x.priorityLevel;var He=Ie(x.expirationTime<=ie);if(ie=e.unstable_now(),typeof He=="function"){x.callback=He,X(ie),ee=!0;break t}x===a(m)&&o(m),X(ie)}else o(m);x=a(m)}if(x!==null)ee=!0;else{var et=a(b);et!==null&&le(ce,et.startTime-ie),ee=!1}}break e}finally{x=null,S=W,E=!1}ee=void 0}}finally{ee?ye():A=!1}}}var ye;if(typeof N=="function")ye=function(){N(he)};else if(typeof MessageChannel<"u"){var _e=new MessageChannel,be=_e.port2;_e.port1.onmessage=he,ye=function(){be.postMessage(null)}}else ye=function(){B(he,0)};function le(ie,ee){q=B(function(){ie(e.unstable_now())},ee)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(ie){ie.callback=null},e.unstable_forceFrameRate=function(ie){0>ie||125<ie?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):$=0<ie?Math.floor(1e3/ie):5},e.unstable_getCurrentPriorityLevel=function(){return S},e.unstable_next=function(ie){switch(S){case 1:case 2:case 3:var ee=3;break;default:ee=S}var W=S;S=ee;try{return ie()}finally{S=W}},e.unstable_requestPaint=function(){z=!0},e.unstable_runWithPriority=function(ie,ee){switch(ie){case 1:case 2:case 3:case 4:case 5:break;default:ie=3}var W=S;S=ie;try{return ee()}finally{S=W}},e.unstable_scheduleCallback=function(ie,ee,W){var Ie=e.unstable_now();switch(typeof W=="object"&&W?(W=W.delay,W=typeof W=="number"&&0<W?Ie+W:Ie):W=Ie,ie){case 1:var He=-1;break;case 2:He=250;break;case 5:He=1073741823;break;case 4:He=1e4;break;default:He=5e3}return He=W+He,ie={id:w++,callback:ee,priorityLevel:ie,startTime:W,expirationTime:He,sortIndex:-1},W>Ie?(ie.sortIndex=W,n(b,ie),a(m)===null&&ie===a(b)&&(P?(V(q),q=-1):P=!0,le(ce,W-Ie))):(ie.sortIndex=He,n(m,ie),I||E||(I=!0,A||(A=!0,ye()))),ie},e.unstable_shouldYield=de,e.unstable_wrapCallback=function(ie){var ee=S;return function(){var W=S;S=ee;try{return ie.apply(this,arguments)}finally{S=W}}}})),_r=rt(((e,n)=>{n.exports=pa()})),ai=rt((e=>{var n=_r(),a=Nu(),o=Lw();function s(t){var r="https://react.dev/errors/"+t;if(1<arguments.length){r+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)r+="&args[]="+encodeURIComponent(arguments[i])}return"Minified React error #"+t+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function d(t){var r=t,i=t;if(t.alternate)for(;r.return;)r=r.return;else{t=r;do r=t,r.flags&4098&&(i=r.return),t=r.return;while(t)}return r.tag===3?i:null}function f(t){if(t.tag===13){var r=t.memoizedState;if(r===null&&(t=t.alternate,t!==null&&(r=t.memoizedState)),r!==null)return r.dehydrated}return null}function m(t){if(t.tag===31){var r=t.memoizedState;if(r===null&&(t=t.alternate,t!==null&&(r=t.memoizedState)),r!==null)return r.dehydrated}return null}function b(t){if(d(t)!==t)throw Error(s(188))}function w(t){var r=t.alternate;if(!r){if(r=d(t),r===null)throw Error(s(188));return r===t?t:null}for(var i=t,l=r;;){var p=i.return;if(p===null)break;var g=p.alternate;if(g===null){if(l=p.return,l!==null){i=l;continue}break}if(p.child===g.child){for(g=p.child;g;){if(g===i)return b(p),t;if(g===l)return b(p),r;g=g.sibling}throw Error(s(188))}if(i.return!==l.return)i=p,l=g;else{for(var C=!1,L=p.child;L;){if(L===i){C=!0,i=p,l=g;break}if(L===l){C=!0,l=p,i=g;break}L=L.sibling}if(!C){for(L=g.child;L;){if(L===i){C=!0,i=g,l=p;break}if(L===l){C=!0,l=g,i=p;break}L=L.sibling}if(!C)throw Error(s(189))}}if(i.alternate!==l)throw Error(s(190))}if(i.tag!==3)throw Error(s(188));return i.stateNode.current===i?t:r}function x(t){var r=t.tag;if(r===5||r===26||r===27||r===6)return t;for(t=t.child;t!==null;){if(r=x(t),r!==null)return r;t=t.sibling}return null}var S=Object.assign,E=Symbol.for("react.element"),I=Symbol.for("react.transitional.element"),P=Symbol.for("react.portal"),z=Symbol.for("react.fragment"),B=Symbol.for("react.strict_mode"),V=Symbol.for("react.profiler"),N=Symbol.for("react.consumer"),X=Symbol.for("react.context"),ce=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),q=Symbol.for("react.suspense_list"),$=Symbol.for("react.memo"),oe=Symbol.for("react.lazy"),de=Symbol.for("react.activity"),he=Symbol.for("react.memo_cache_sentinel"),ye=Symbol.iterator;function _e(t){return typeof t!="object"||!t?null:(t=ye&&t[ye]||t["@@iterator"],typeof t=="function"?t:null)}var be=Symbol.for("react.client.reference");function le(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===be?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case z:return"Fragment";case V:return"Profiler";case B:return"StrictMode";case A:return"Suspense";case q:return"SuspenseList";case de:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case P:return"Portal";case X:return t.displayName||"Context";case N:return(t._context.displayName||"Context")+".Consumer";case ce:var r=t.render;return t=t.displayName,t||(t=(t=r.displayName||r.name||"",t===""?"ForwardRef":"ForwardRef("+t+")")),t;case $:return r=t.displayName||null,r===null?le(t.type)||"Memo":r;case oe:r=t._payload,t=t._init;try{return le(t(r))}catch{}}return null}var ie=Array.isArray,ee=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ie={pending:!1,data:null,method:null,action:null},He=[],et=-1;function Fe(t){return{current:t}}function Ne(t){0>et||(t.current=He[et],He[et]=null,et--)}function Le(t,r){et++,He[et]=t.current,t.current=r}var De=Fe(null),Tt=Fe(null),Pt=Fe(null),_a=Fe(null);function wo(t,r){switch(Le(Pt,r),Le(Tt,t),Le(De,null),r.nodeType){case 9:case 11:t=(t=r.documentElement)&&(t=t.namespaceURI)?Y2(t):0;break;default:if(t=r.tagName,r=r.namespaceURI)r=Y2(r),t=Z2(r,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}Ne(De),Le(De,t)}function On(){Ne(De),Ne(Tt),Ne(Pt)}function jr(t){t.memoizedState!==null&&Le(_a,t);var r=De.current,i=Z2(r,t.type);r!==i&&(Le(Tt,t),Le(De,i))}function gi(t){Tt.current===t&&(Ne(De),Ne(Tt)),_a.current===t&&(Ne(_a),_l._currentValue=Ie)}var _o,Ls;function mt(t){if(_o===void 0)try{throw Error()}catch(i){var r=i.stack.trim().match(/\n( *(at )?)/);_o=r&&r[1]||"",Ls=-1<i.stack.indexOf(`
3
3
  at`)?" (<anonymous>)":-1<i.stack.indexOf("@")?"@unknown:0:0":""}return`
4
4
  `+_o+t+Ls}var Os=!1;function vn(t,r){if(!t||Os)return"";Os=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(r){var fe=function(){throw Error()};if(Object.defineProperty(fe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(fe,[])}catch(ae){var Z=ae}Reflect.construct(t,[],fe)}else{try{fe.call()}catch(ae){Z=ae}t.call(fe.prototype)}}else{try{throw Error()}catch(ae){Z=ae}(fe=t())&&typeof fe.catch=="function"&&fe.catch(function(){})}}catch(ae){if(ae&&Z&&typeof ae.stack=="string")return[ae.stack,Z.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var p=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");p&&p.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var g=l.DetermineComponentFrameRoot(),C=g[0],L=g[1];if(C&&L){var F=C.split(`
5
5
  `),J=L.split(`
@@ -9,7 +9,7 @@ Error generating stack: `+l.message+`
9
9
  `+l.stack}}var xo=Object.prototype.hasOwnProperty,dr=n.unstable_scheduleCallback,bn=n.unstable_cancelCallback,Vf=n.unstable_shouldYield,hc=n.unstable_requestPaint,Jt=n.unstable_now,Hf=n.unstable_getCurrentPriorityLevel,zr=n.unstable_ImmediatePriority,mc=n.unstable_UserBlockingPriority,Mt=n.unstable_NormalPriority,ko=n.unstable_LowPriority,kt=n.unstable_IdlePriority,$f=n.log,Wf=n.unstable_setDisableYieldValue,yi=null,ln=null;function Qe(t){if(typeof $f=="function"&&Wf(t),ln&&typeof ln.setStrictMode=="function")try{ln.setStrictMode(yi,t)}catch{}}var gt=Math.clz32?Math.clz32:Sr,wt=Math.log,Xt=Math.LN2;function Sr(t){return t>>>=0,t===0?32:31-(wt(t)/Xt|0)|0}var vi=256,It=262144,xa=4194304;function qr(t){var r=t&42;if(r!==0)return r;switch(t&-t){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 t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function Co(t,r,i){var l=t.pendingLanes;if(l===0)return 0;var p=0,g=t.suspendedLanes,C=t.pingedLanes;t=t.warmLanes;var L=l&134217727;return L===0?(L=l&~g,L===0?C===0?i||(i=l&~t,i!==0&&(p=qr(i))):p=qr(C):p=qr(L)):(l=L&~g,l===0?(C&=L,C===0?i||(i=L&~t,i!==0&&(p=qr(i))):p=qr(C)):p=qr(l)),p===0?0:r!==0&&r!==p&&(r&g)===0&&(g=p&-p,i=r&-r,g>=i||g===32&&i&4194048)?r:p}function ka(t,r){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&r)===0}function gc(t,r){switch(t){case 1:case 2:case 4:case 8:case 64:return r+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 r+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 yc(){var t=xa;return xa<<=1,!(xa&62914560)&&(xa=4194304),t}function As(t){for(var r=[],i=0;31>i;i++)r.push(t);return r}function bi(t,r){t.pendingLanes|=r,r!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Uf(t,r,i,l,p,g){var C=t.pendingLanes;t.pendingLanes=i,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=i,t.entangledLanes&=i,t.errorRecoveryDisabledLanes&=i,t.shellSuspendCounter=0;var L=t.entanglements,F=t.expirationTimes,J=t.hiddenUpdates;for(i=C&~i;0<i;){var se=31-gt(i),fe=1<<se;L[se]=0,F[se]=-1;var Z=J[se];if(Z!==null)for(J[se]=null,se=0;se<Z.length;se++){var ae=Z[se];ae!==null&&(ae.lane&=-536870913)}i&=~fe}l!==0&&Fr(t,l,0),g!==0&&p===0&&t.tag!==0&&(t.suspendedLanes|=g&~(C&~r))}function Fr(t,r,i){t.pendingLanes|=r,t.suspendedLanes&=~r;var l=31-gt(r);t.entangledLanes|=r,t.entanglements[l]=t.entanglements[l]|1073741824|i&261930}function So(t,r){var i=t.entangledLanes|=r;for(t=t.entanglements;i;){var l=31-gt(i),p=1<<l;p&r|t[l]&r&&(t[l]|=r),i&=~p}}function vc(t,r){var i=r&-r;return i=i&42?1:An(i),(i&(t.suspendedLanes|r))===0?i:0}function An(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=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:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function Rs(t){return t&=-t,2<t?8<t?t&134217727?32:268435456:8:2}function bc(){var t=W.p;return t===0?(t=window.event,t===void 0?32:ww(t.type)):t}function Rn(t,r){var i=W.p;try{return W.p=t,r()}finally{W.p=i}}var Un=Math.random().toString(36).slice(2),Bt="__reactFiber$"+Un,Yt="__reactProps$"+Un,Ca="__reactContainer$"+Un,Ps="__reactEvents$"+Un,wc="__reactListeners$"+Un,Kf="__reactHandles$"+Un,Ms="__reactResources$"+Un,wi="__reactMarker$"+Un;function Eo(t){delete t[Bt],delete t[Yt],delete t[Ps],delete t[wc],delete t[Kf]}function Er(t){var r=t[Bt];if(r)return r;for(var i=t.parentNode;i;){if(r=i[Ca]||i[Bt]){if(i=r.alternate,r.child!==null||i!==null&&i.child!==null)for(t=ow(t);t!==null;){if(i=t[Bt])return i;t=ow(t)}return r}t=i,i=t.parentNode}return null}function Sa(t){if(t=t[Bt]||t[Ca]){var r=t.tag;if(r===5||r===6||r===13||r===31||r===26||r===27||r===3)return t}return null}function fn(t){var r=t.tag;if(r===5||r===26||r===27||r===6)return t.stateNode;throw Error(s(33))}function Ea(t){var r=t[Ms];return r||(r=t[Ms]={hoistableStyles:new Map,hoistableScripts:new Map}),r}function Lt(t){t[wi]=!0}var Ns=new Set,_c={};function Tr(t,r){Ta(t,r),Ta(t+"Capture",r)}function Ta(t,r){for(_c[t]=r,t=0;t<r.length;t++)Ns.add(r[t])}var Qf=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]*$"),wn={},xc={};function Gf(t){return xo.call(xc,t)?!0:xo.call(wn,t)?!1:Qf.test(t)?xc[t]=!0:(wn[t]=!0,!1)}function _i(t,r,i){if(Gf(r))if(i===null)t.removeAttribute(r);else{switch(typeof i){case"undefined":case"function":case"symbol":t.removeAttribute(r);return;case"boolean":var l=r.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){t.removeAttribute(r);return}}t.setAttribute(r,""+i)}}function xi(t,r,i){if(i===null)t.removeAttribute(r);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(r);return}t.setAttribute(r,""+i)}}function fr(t,r,i,l){if(l===null)t.removeAttribute(i);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(i);return}t.setAttributeNS(r,i,""+l)}}function pn(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function kc(t){var r=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function Cc(t,r,i){var l=Object.getOwnPropertyDescriptor(t.constructor.prototype,r);if(!t.hasOwnProperty(r)&&l!==void 0&&typeof l.get=="function"&&typeof l.set=="function"){var p=l.get,g=l.set;return Object.defineProperty(t,r,{configurable:!0,get:function(){return p.call(this)},set:function(C){i=""+C,g.call(this,C)}}),Object.defineProperty(t,r,{enumerable:l.enumerable}),{getValue:function(){return i},setValue:function(C){i=""+C},stopTracking:function(){t._valueTracker=null,delete t[r]}}}}function Ds(t){if(!t._valueTracker){var r=kc(t)?"checked":"value";t._valueTracker=Cc(t,r,""+t[r])}}function js(t){if(!t)return!1;var r=t._valueTracker;if(!r)return!0;var i=r.getValue(),l="";return t&&(l=kc(t)?t.checked?"true":"false":t.value),t=l,t===i?!1:(r.setValue(t),!0)}function cn(t){if(t||(t=typeof document<"u"?document:void 0),t===void 0)return null;try{return t.activeElement||t.body}catch{return t.body}}var Je=/[\n"\\]/g;function Pn(t){return t.replace(Je,function(r){return"\\"+r.charCodeAt(0).toString(16)+" "})}function Ia(t,r,i,l,p,g,C,L){t.name="",C!=null&&typeof C!="function"&&typeof C!="symbol"&&typeof C!="boolean"?t.type=C:t.removeAttribute("type"),r==null?C!=="submit"&&C!=="reset"||t.removeAttribute("value"):C==="number"?(r===0&&t.value===""||t.value!=r)&&(t.value=""+pn(r)):t.value!==""+pn(r)&&(t.value=""+pn(r)),r==null?i==null?l!=null&&t.removeAttribute("value"):Br(t,C,pn(i)):Br(t,C,pn(r)),p==null&&g!=null&&(t.defaultChecked=!!g),p!=null&&(t.checked=p&&typeof p!="function"&&typeof p!="symbol"),L!=null&&typeof L!="function"&&typeof L!="symbol"&&typeof L!="boolean"?t.name=""+pn(L):t.removeAttribute("name")}function Sc(t,r,i,l,p,g,C,L){if(g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(t.type=g),r!=null||i!=null){if(!(g!=="submit"&&g!=="reset"||r!=null)){Ds(t);return}i=i==null?"":""+pn(i),r=r==null?i:""+pn(r),L||r===t.value||(t.value=r),t.defaultValue=r}l??(l=p),l=typeof l!="function"&&typeof l!="symbol"&&!!l,t.checked=L?t.checked:!!l,t.defaultChecked=!!l,C!=null&&typeof C!="function"&&typeof C!="symbol"&&typeof C!="boolean"&&(t.name=C),Ds(t)}function Br(t,r,i){r==="number"&&cn(t.ownerDocument)===t||t.defaultValue===""+i||(t.defaultValue=""+i)}function La(t,r,i,l){if(t=t.options,r){r={};for(var p=0;p<i.length;p++)r["$"+i[p]]=!0;for(i=0;i<t.length;i++)p=r.hasOwnProperty("$"+t[i].value),t[i].selected!==p&&(t[i].selected=p),p&&l&&(t[i].defaultSelected=!0)}else{for(i=""+pn(i),r=null,p=0;p<t.length;p++){if(t[p].value===i){t[p].selected=!0,l&&(t[p].defaultSelected=!0);return}r!==null||t[p].disabled||(r=t[p])}r!==null&&(r.selected=!0)}}function Oa(t,r,i){if(r!=null&&(r=""+pn(r),r!==t.value&&(t.value=r),i==null)){t.defaultValue!==r&&(t.defaultValue=r);return}t.defaultValue=i==null?"":""+pn(i)}function To(t,r,i,l){if(r==null){if(l!=null){if(i!=null)throw Error(s(92));if(ie(l)){if(1<l.length)throw Error(s(93));l=l[0]}i=l}i??(i=""),r=i}i=pn(r),t.defaultValue=i,l=t.textContent,l===i&&l!==""&&l!==null&&(t.value=l),Ds(t)}function Vr(t,r){if(r){var i=t.firstChild;if(i&&i===t.lastChild&&i.nodeType===3){i.nodeValue=r;return}}t.textContent=r}var Jf=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 Hr(t,r,i){var l=r.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?l?t.setProperty(r,""):r==="float"?t.cssFloat="":t[r]="":l?t.setProperty(r,i):typeof i!="number"||i===0||Jf.has(r)?r==="float"?t.cssFloat=i:t[r]=(""+i).trim():t[r]=i+"px"}function Ec(t,r,i){if(r!=null&&typeof r!="object")throw Error(s(62));if(t=t.style,i!=null){for(var l in i)!i.hasOwnProperty(l)||r!=null&&r.hasOwnProperty(l)||(l.indexOf("--")===0?t.setProperty(l,""):l==="float"?t.cssFloat="":t[l]="");for(var p in r)l=r[p],r.hasOwnProperty(p)&&i[p]!==l&&Hr(t,p,l)}else for(var g in r)r.hasOwnProperty(g)&&Hr(t,g,r[g])}function ki(t){if(t.indexOf("-")===-1)return!1;switch(t){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 Io=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"]]),Tc=/^[\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 Lo(t){return Tc.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function Kn(){}var Kt=null;function zs(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var hn=null,Ir=null;function Ic(t){var r=Sa(t);if(r&&(t=r.stateNode)){var i=t[Yt]||null;e:switch(t=r.stateNode,r.type){case"input":if(Ia(t,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),r=i.name,i.type==="radio"&&r!=null){for(i=t;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll('input[name="'+Pn(""+r)+'"][type="radio"]'),r=0;r<i.length;r++){var l=i[r];if(l!==t&&l.form===t.form){var p=l[Yt]||null;if(!p)throw Error(s(90));Ia(l,p.value,p.defaultValue,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name)}}for(r=0;r<i.length;r++)l=i[r],l.form===t.form&&js(l)}break e;case"textarea":Oa(t,i.value,i.defaultValue);break e;case"select":r=i.value,r!=null&&La(t,!!i.multiple,r,!1)}}}var qs=!1;function Lc(t,r,i){if(qs)return t(r,i);qs=!0;try{return t(r)}finally{if(qs=!1,(hn!==null||Ir!==null)&&(pu(),hn&&(r=hn,t=Ir,Ir=hn=null,Ic(r),t)))for(r=0;r<t.length;r++)Ic(t[r])}}function Ci(t,r){var i=t.stateNode;if(i===null)return null;var l=i[Yt]||null;if(l===null)return null;i=l[r];e:switch(r){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(t=t.type,l=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!l;break e;default:t=!1}if(t)return null;if(i&&typeof i!="function")throw Error(s(231,r,typeof i));return i}var pr=!(typeof window>"u"||window.document===void 0||window.document.createElement===void 0),Fs=!1;if(pr)try{var Si={};Object.defineProperty(Si,"passive",{get:function(){Fs=!0}}),window.addEventListener("test",Si,Si),window.removeEventListener("test",Si,Si)}catch{Fs=!1}var hr=null,Oo=null,Ei=null;function Bs(){if(Ei)return Ei;var t,r=Oo,i=r.length,l,p="value"in hr?hr.value:hr.textContent,g=p.length;for(t=0;t<i&&r[t]===p[t];t++);var C=i-t;for(l=1;l<=C&&r[i-l]===p[g-l];l++);return Ei=p.slice(t,1<l?1-l:void 0)}function Ti(t){var r=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&r===13&&(t=13)):t=r,t===10&&(t=13),32<=t||t===13?t:0}function Ii(){return!0}function Vs(){return!1}function Qt(t){function r(i,l,p,g,C){for(var L in this._reactName=i,this._targetInst=p,this.type=l,this.nativeEvent=g,this.target=C,this.currentTarget=null,t)t.hasOwnProperty(L)&&(i=t[L],this[L]=i?i(g):g[L]);return this.isDefaultPrevented=(g.defaultPrevented==null?g.returnValue===!1:g.defaultPrevented)?Ii:Vs,this.isPropagationStopped=Vs,this}return S(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=Ii)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=Ii)},persist:function(){},isPersistent:Ii}),r}var $r={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},u=Qt($r),h=S({},$r,{view:0,detail:0}),y=Qt(h),v,_,k,T=S({},h,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Re,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==k&&(k&&t.type==="mousemove"?(v=t.screenX-k.screenX,_=t.screenY-k.screenY):_=v=0,k=t),v)},movementY:function(t){return"movementY"in t?t.movementY:_}}),O=Qt(T),R=Qt(S({},T,{dataTransfer:0})),j=Qt(S({},h,{relatedTarget:0})),D=Qt(S({},$r,{animationName:0,elapsedTime:0,pseudoElement:0})),te=Qt(S({},$r,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}})),Y=Qt(S({},$r,{data:0})),K={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Q={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"},ge={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function me(t){var r=this.nativeEvent;return r.getModifierState?r.getModifierState(t):(t=ge[t])?!!r[t]:!1}function Re(){return me}var ke=Qt(S({},h,{key:function(t){if(t.key){var r=K[t.key]||t.key;if(r!=="Unidentified")return r}return t.type==="keypress"?(t=Ti(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?Q[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Re,charCode:function(t){return t.type==="keypress"?Ti(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Ti(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}})),Oe=Qt(S({},T,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Ye=Qt(S({},h,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Re})),Be=Qt(S({},$r,{propertyName:0,elapsedTime:0,pseudoElement:0})),dt=Qt(S({},T,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0})),yt=Qt(S({},$r,{newState:0,oldState:0})),je=[9,13,27,32],Me=pr&&"CompositionEvent"in window,_t=null;pr&&"documentMode"in document&&(_t=document.documentMode);var Nt=pr&&"TextEvent"in window&&!_t,Vt=pr&&(!Me||_t&&8<_t&&11>=_t),Li=" ",Oc=!1;function Ac(t,r){switch(t){case"keyup":return je.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ao(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Ro=!1;function i5(t,r){switch(t){case"compositionend":return Ao(r);case"keypress":return r.which===32?(Oc=!0,Li):null;case"textInput":return t=r.data,t===Li&&Oc?null:t;default:return null}}function o5(t,r){if(Ro)return t==="compositionend"||!Me&&Ac(t,r)?(t=Bs(),Ei=Oo=hr=null,Ro=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(r.ctrlKey||r.altKey||r.metaKey)||r.ctrlKey&&r.altKey){if(r.char&&1<r.char.length)return r.char;if(r.which)return String.fromCharCode(r.which)}return null;case"compositionend":return Vt&&r.locale!=="ko"?null:r.data;default:return null}}var s5={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 d1(t){var r=t&&t.nodeName&&t.nodeName.toLowerCase();return r==="input"?!!s5[t.type]:r==="textarea"}function f1(t,r,i,l){hn?Ir?Ir.push(l):Ir=[l]:hn=l,r=wu(r,"onChange"),0<r.length&&(i=new u("onChange","change",null,i,l),t.push({event:i,listeners:r}))}var Hs=null,$s=null;function l5(t){W2(t,0)}function Rc(t){if(js(fn(t)))return t}function p1(t,r){if(t==="change")return r}var h1=!1;if(pr){var Xf;if(pr){var Yf="oninput"in document;if(!Yf){var m1=document.createElement("div");m1.setAttribute("oninput","return;"),Yf=typeof m1.oninput=="function"}Xf=Yf}else Xf=!1;h1=Xf&&(!document.documentMode||9<document.documentMode)}function g1(){Hs&&(Hs.detachEvent("onpropertychange",y1),$s=Hs=null)}function y1(t){if(t.propertyName==="value"&&Rc($s)){var r=[];f1(r,$s,t,zs(t)),Lc(l5,r)}}function c5(t,r,i){t==="focusin"?(g1(),Hs=r,$s=i,Hs.attachEvent("onpropertychange",y1)):t==="focusout"&&g1()}function u5(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Rc($s)}function d5(t,r){if(t==="click")return Rc(r)}function f5(t,r){if(t==="input"||t==="change")return Rc(r)}function p5(t,r){return t===r&&(t!==0||1/t==1/r)||t!==t&&r!==r}var Mn=typeof Object.is=="function"?Object.is:p5;function Ws(t,r){if(Mn(t,r))return!0;if(typeof t!="object"||!t||typeof r!="object"||!r)return!1;var i=Object.keys(t),l=Object.keys(r);if(i.length!==l.length)return!1;for(l=0;l<i.length;l++){var p=i[l];if(!xo.call(r,p)||!Mn(t[p],r[p]))return!1}return!0}function v1(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function b1(t,r){var i=v1(t);t=0;for(var l;i;){if(i.nodeType===3){if(l=t+i.textContent.length,t<=r&&l>=r)return{node:i,offset:r-t};t=l}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=v1(i)}}function w1(t,r){return t&&r?t===r?!0:t&&t.nodeType===3?!1:r&&r.nodeType===3?w1(t,r.parentNode):"contains"in t?t.contains(r):t.compareDocumentPosition?!!(t.compareDocumentPosition(r)&16):!1:!1}function _1(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var r=cn(t.document);r instanceof t.HTMLIFrameElement;){try{var i=typeof r.contentWindow.location.href=="string"}catch{i=!1}if(i)t=r.contentWindow;else break;r=cn(t.document)}return r}function Zf(t){var r=t&&t.nodeName&&t.nodeName.toLowerCase();return r&&(r==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||r==="textarea"||t.contentEditable==="true")}var h5=pr&&"documentMode"in document&&11>=document.documentMode,Po=null,ep=null,Us=null,tp=!1;function x1(t,r,i){var l=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;tp||Po==null||Po!==cn(l)||(l=Po,"selectionStart"in l&&Zf(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Us&&Ws(Us,l)||(Us=l,l=wu(ep,"onSelect"),0<l.length&&(r=new u("onSelect","select",null,r,i),t.push({event:r,listeners:l}),r.target=Po)))}function Oi(t,r){var i={};return i[t.toLowerCase()]=r.toLowerCase(),i["Webkit"+t]="webkit"+r,i["Moz"+t]="moz"+r,i}var Mo={animationend:Oi("Animation","AnimationEnd"),animationiteration:Oi("Animation","AnimationIteration"),animationstart:Oi("Animation","AnimationStart"),transitionrun:Oi("Transition","TransitionRun"),transitionstart:Oi("Transition","TransitionStart"),transitioncancel:Oi("Transition","TransitionCancel"),transitionend:Oi("Transition","TransitionEnd")},np={},k1={};pr&&(k1=document.createElement("div").style,"AnimationEvent"in window||(delete Mo.animationend.animation,delete Mo.animationiteration.animation,delete Mo.animationstart.animation),"TransitionEvent"in window||delete Mo.transitionend.transition);function Ai(t){if(np[t])return np[t];if(!Mo[t])return t;var r=Mo[t],i;for(i in r)if(r.hasOwnProperty(i)&&i in k1)return np[t]=r[i];return t}var C1=Ai("animationend"),S1=Ai("animationiteration"),E1=Ai("animationstart"),m5=Ai("transitionrun"),g5=Ai("transitionstart"),y5=Ai("transitioncancel"),T1=Ai("transitionend"),I1=new Map,rp="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(" ");rp.push("scrollEnd");function mr(t,r){I1.set(t,r),Tr(r,[t])}var Pc=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var r=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(r))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},Qn=[],No=0,ap=0;function Mc(){for(var t=No,r=ap=No=0;r<t;){var i=Qn[r];Qn[r++]=null;var l=Qn[r];Qn[r++]=null;var p=Qn[r];Qn[r++]=null;var g=Qn[r];if(Qn[r++]=null,l!==null&&p!==null){var C=l.pending;C===null?p.next=p:(p.next=C.next,C.next=p),l.pending=p}g!==0&&L1(i,p,g)}}function Nc(t,r,i,l){Qn[No++]=t,Qn[No++]=r,Qn[No++]=i,Qn[No++]=l,ap|=l,t.lanes|=l,t=t.alternate,t!==null&&(t.lanes|=l)}function ip(t,r,i,l){return Nc(t,r,i,l),Dc(t)}function Ri(t,r){return Nc(t,null,null,r),Dc(t)}function L1(t,r,i){t.lanes|=i;var l=t.alternate;l!==null&&(l.lanes|=i);for(var p=!1,g=t.return;g!==null;)g.childLanes|=i,l=g.alternate,l!==null&&(l.childLanes|=i),g.tag===22&&(t=g.stateNode,t===null||t._visibility&1||(p=!0)),t=g,g=g.return;return t.tag===3?(g=t.stateNode,p&&r!==null&&(p=31-gt(i),t=g.hiddenUpdates,l=t[p],l===null?t[p]=[r]:l.push(r),r.lane=i|536870912),g):null}function Dc(t){if(50<hl)throw hl=0,hh=null,Error(s(185));for(var r=t.return;r!==null;)t=r,r=t.return;return t.tag===3?t.stateNode:null}var Do={};function v5(t,r,i,l){this.tag=t,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=r,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Nn(t,r,i,l){return new v5(t,r,i,l)}function op(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Wr(t,r){var i=t.alternate;return i===null?(i=Nn(t.tag,r,t.key,t.mode),i.elementType=t.elementType,i.type=t.type,i.stateNode=t.stateNode,i.alternate=t,t.alternate=i):(i.pendingProps=r,i.type=t.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=t.flags&65011712,i.childLanes=t.childLanes,i.lanes=t.lanes,i.child=t.child,i.memoizedProps=t.memoizedProps,i.memoizedState=t.memoizedState,i.updateQueue=t.updateQueue,r=t.dependencies,i.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext},i.sibling=t.sibling,i.index=t.index,i.ref=t.ref,i.refCleanup=t.refCleanup,i}function O1(t,r){t.flags&=65011714;var i=t.alternate;return i===null?(t.childLanes=0,t.lanes=r,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=i.childLanes,t.lanes=i.lanes,t.child=i.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=i.memoizedProps,t.memoizedState=i.memoizedState,t.updateQueue=i.updateQueue,t.type=i.type,r=i.dependencies,t.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),t}function jc(t,r,i,l,p,g){var C=0;if(l=t,typeof t=="function")op(t)&&(C=1);else if(typeof t=="string")C=C6(t,i,De.current)?26:t==="html"||t==="head"||t==="body"?27:5;else e:switch(t){case de:return t=Nn(31,i,r,p),t.elementType=de,t.lanes=g,t;case z:return Pi(i.children,p,g,r);case B:C=8,p|=24;break;case V:return t=Nn(12,i,r,p|2),t.elementType=V,t.lanes=g,t;case A:return t=Nn(13,i,r,p),t.elementType=A,t.lanes=g,t;case q:return t=Nn(19,i,r,p),t.elementType=q,t.lanes=g,t;default:if(typeof t=="object"&&t)switch(t.$$typeof){case X:C=10;break e;case N:C=9;break e;case ce:C=11;break e;case $:C=14;break e;case oe:C=16,l=null;break e}C=29,i=Error(s(130,t===null?"null":typeof t,"")),l=null}return r=Nn(C,i,r,p),r.elementType=t,r.type=l,r.lanes=g,r}function Pi(t,r,i,l){return t=Nn(7,t,l,r),t.lanes=i,t}function sp(t,r,i){return t=Nn(6,t,null,r),t.lanes=i,t}function A1(t){var r=Nn(18,null,null,0);return r.stateNode=t,r}function lp(t,r,i){return r=Nn(4,t.children===null?[]:t.children,t.key,r),r.lanes=i,r.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},r}var R1=new WeakMap;function Gn(t,r){if(typeof t=="object"&&t){var i=R1.get(t);return i===void 0?(r={value:t,source:r,stack:pc(r)},R1.set(t,r),r):i}return{value:t,source:r,stack:pc(r)}}var jo=[],zo=0,zc=null,Ks=0,Jn=[],Xn=0,Aa=null,Lr=1,Or="";function Ur(t,r){jo[zo++]=Ks,jo[zo++]=zc,zc=t,Ks=r}function P1(t,r,i){Jn[Xn++]=Lr,Jn[Xn++]=Or,Jn[Xn++]=Aa,Aa=t;var l=Lr;t=Or;var p=32-gt(l)-1;l&=~(1<<p),i+=1;var g=32-gt(r)+p;if(30<g){var C=p-p%5;g=(l&(1<<C)-1).toString(32),l>>=C,p-=C,Lr=1<<32-gt(r)+p|i<<p|l,Or=g+t}else Lr=1<<g|i<<p|l,Or=t}function cp(t){t.return!==null&&(Ur(t,1),P1(t,1,0))}function up(t){for(;t===zc;)zc=jo[--zo],jo[zo]=null,Ks=jo[--zo],jo[zo]=null;for(;t===Aa;)Aa=Jn[--Xn],Jn[Xn]=null,Or=Jn[--Xn],Jn[Xn]=null,Lr=Jn[--Xn],Jn[Xn]=null}function M1(t,r){Jn[Xn++]=Lr,Jn[Xn++]=Or,Jn[Xn++]=Aa,Lr=r.id,Or=r.overflow,Aa=t}var Zt=null,vt=null,Ge=!1,Ra=null,Yn=!1,dp=Error(s(519));function Pa(t){throw Qs(Gn(Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML","")),t)),dp}function N1(t){var r=t.stateNode,i=t.type,l=t.memoizedProps;switch(r[Bt]=t,r[Yt]=l,i){case"dialog":We("cancel",r),We("close",r);break;case"iframe":case"object":case"embed":We("load",r);break;case"video":case"audio":for(i=0;i<gl.length;i++)We(gl[i],r);break;case"source":We("error",r);break;case"img":case"image":case"link":We("error",r),We("load",r);break;case"details":We("toggle",r);break;case"input":We("invalid",r),Sc(r,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":We("invalid",r);break;case"textarea":We("invalid",r),To(r,l.value,l.defaultValue,l.children)}i=l.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||r.textContent===""+i||l.suppressHydrationWarning===!0||J2(r.textContent,i)?(l.popover!=null&&(We("beforetoggle",r),We("toggle",r)),l.onScroll!=null&&We("scroll",r),l.onScrollEnd!=null&&We("scrollend",r),l.onClick!=null&&(r.onclick=Kn),r=!0):r=!1,r||Pa(t,!0)}function D1(t){for(Zt=t.return;Zt;)switch(Zt.tag){case 5:case 31:case 13:Yn=!1;return;case 27:case 3:Yn=!0;return;default:Zt=Zt.return}}function qo(t){if(t!==Zt)return!1;if(!Ge)return D1(t),Ge=!0,!1;var r=t.tag,i;if((i=r!==3&&r!==27)&&((i=r===5)&&(i=t.type,i=!(i!=="form"&&i!=="button")||Ih(t.type,t.memoizedProps)),i=!i),i&&vt&&Pa(t),D1(t),r===13){if(t=t.memoizedState,t=t===null?null:t.dehydrated,!t)throw Error(s(317));vt=iw(t)}else if(r===31){if(t=t.memoizedState,t=t===null?null:t.dehydrated,!t)throw Error(s(317));vt=iw(t)}else r===27?(r=vt,Wa(t.type)?(t=Ph,Ph=null,vt=t):vt=r):vt=Zt?er(t.stateNode.nextSibling):null;return!0}function Mi(){vt=Zt=null,Ge=!1}function fp(){var t=Ra;return t!==null&&(Cn===null?Cn=t:Cn.push.apply(Cn,t),Ra=null),t}function Qs(t){Ra===null?Ra=[t]:Ra.push(t)}var pp=Fe(null),Ni=null,Kr=null;function Ma(t,r,i){Le(pp,r._currentValue),r._currentValue=i}function Qr(t){t._currentValue=pp.current,Ne(pp)}function hp(t,r,i){for(;t!==null;){var l=t.alternate;if((t.childLanes&r)===r?l!==null&&(l.childLanes&r)!==r&&(l.childLanes|=r):(t.childLanes|=r,l!==null&&(l.childLanes|=r)),t===i)break;t=t.return}}function mp(t,r,i,l){var p=t.child;for(p!==null&&(p.return=t);p!==null;){var g=p.dependencies;if(g!==null){var C=p.child;g=g.firstContext;e:for(;g!==null;){var L=g;g=p;for(var F=0;F<r.length;F++)if(L.context===r[F]){g.lanes|=i,L=g.alternate,L!==null&&(L.lanes|=i),hp(g.return,i,t),l||(C=null);break e}g=L.next}}else if(p.tag===18){if(C=p.return,C===null)throw Error(s(341));C.lanes|=i,g=C.alternate,g!==null&&(g.lanes|=i),hp(C,i,t),C=null}else C=p.child;if(C!==null)C.return=p;else for(C=p;C!==null;){if(C===t){C=null;break}if(p=C.sibling,p!==null){p.return=C.return,C=p;break}C=C.return}p=C}}function Fo(t,r,i,l){t=null;for(var p=r,g=!1;p!==null;){if(!g){if(p.flags&524288)g=!0;else if(p.flags&262144)break}if(p.tag===10){var C=p.alternate;if(C===null)throw Error(s(387));if(C=C.memoizedProps,C!==null){var L=p.type;Mn(p.pendingProps.value,C.value)||(t===null?t=[L]:t.push(L))}}else if(p===_a.current){if(C=p.alternate,C===null)throw Error(s(387));C.memoizedState.memoizedState!==p.memoizedState.memoizedState&&(t===null?t=[_l]:t.push(_l))}p=p.return}t!==null&&mp(r,t,i,l),r.flags|=262144}function qc(t){for(t=t.firstContext;t!==null;){if(!Mn(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Di(t){Ni=t,Kr=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function en(t){return j1(Ni,t)}function Fc(t,r){return Ni===null&&Di(t),j1(t,r)}function j1(t,r){var i=r._currentValue;if(r={context:r,memoizedValue:i,next:null},Kr===null){if(t===null)throw Error(s(308));Kr=r,t.dependencies={lanes:0,firstContext:r},t.flags|=524288}else Kr=Kr.next=r;return i}var b5=typeof AbortController<"u"?AbortController:function(){var t=[],r=this.signal={aborted:!1,addEventListener:function(i,l){t.push(l)}};this.abort=function(){r.aborted=!0,t.forEach(function(i){return i()})}},w5=n.unstable_scheduleCallback,_5=n.unstable_NormalPriority,Dt={$$typeof:X,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function gp(){return{controller:new b5,data:new Map,refCount:0}}function Gs(t){t.refCount--,t.refCount===0&&w5(_5,function(){t.controller.abort()})}var Js=null,yp=0,Bo=0,Vo=null;function x5(t,r){if(Js===null){var i=Js=[];yp=0,Bo=wh(),Vo={status:"pending",value:void 0,then:function(l){i.push(l)}}}return yp++,r.then(z1,z1),r}function z1(){if(--yp===0&&Js!==null){Vo!==null&&(Vo.status="fulfilled");var t=Js;Js=null,Bo=0,Vo=null;for(var r=0;r<t.length;r++)(0,t[r])()}}function k5(t,r){var i=[],l={status:"pending",value:null,reason:null,then:function(p){i.push(p)}};return t.then(function(){l.status="fulfilled",l.value=r;for(var p=0;p<i.length;p++)(0,i[p])(r)},function(p){for(l.status="rejected",l.reason=p,p=0;p<i.length;p++)(0,i[p])(void 0)}),l}var q1=ee.S;ee.S=function(t,r){b2=Jt(),typeof r=="object"&&r&&typeof r.then=="function"&&x5(t,r),q1!==null&&q1(t,r)};var ji=Fe(null);function vp(){var t=ji.current;return t===null?ft.pooledCache:t}function Bc(t,r){r===null?Le(ji,ji.current):Le(ji,r.pool)}function F1(){var t=vp();return t===null?null:{parent:Dt._currentValue,pool:t}}var Ho=Error(s(460)),bp=Error(s(474)),Vc=Error(s(542)),Hc={then:function(){}};function B1(t){return t=t.status,t==="fulfilled"||t==="rejected"}function V1(t,r,i){switch(i=t[i],i===void 0?t.push(r):i!==r&&(r.then(Kn,Kn),r=i),r.status){case"fulfilled":return r.value;case"rejected":throw t=r.reason,$1(t),t;default:if(typeof r.status=="string")r.then(Kn,Kn);else{if(t=ft,t!==null&&100<t.shellSuspendCounter)throw Error(s(482));t=r,t.status="pending",t.then(function(l){if(r.status==="pending"){var p=r;p.status="fulfilled",p.value=l}},function(l){if(r.status==="pending"){var p=r;p.status="rejected",p.reason=l}})}switch(r.status){case"fulfilled":return r.value;case"rejected":throw t=r.reason,$1(t),t}throw qi=r,Ho}}function zi(t){try{var r=t._init;return r(t._payload)}catch(i){throw typeof i=="object"&&i&&typeof i.then=="function"?(qi=i,Ho):i}}var qi=null;function H1(){if(qi===null)throw Error(s(459));var t=qi;return qi=null,t}function $1(t){if(t===Ho||t===Vc)throw Error(s(483))}var $o=null,Xs=0;function $c(t){var r=Xs;return Xs+=1,$o===null&&($o=[]),V1($o,t,r)}function Ys(t,r){r=r.props.ref,t.ref=r===void 0?null:r}function Wc(t,r){throw r.$$typeof===E?Error(s(525)):(t=Object.prototype.toString.call(r),Error(s(31,t==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":t)))}function W1(t){function r(U,H){if(t){var G=U.deletions;G===null?(U.deletions=[H],U.flags|=16):G.push(H)}}function i(U,H){if(!t)return null;for(;H!==null;)r(U,H),H=H.sibling;return null}function l(U){for(var H=new Map;U!==null;)U.key===null?H.set(U.index,U):H.set(U.key,U),U=U.sibling;return H}function p(U,H){return U=Wr(U,H),U.index=0,U.sibling=null,U}function g(U,H,G){return U.index=G,t?(G=U.alternate,G===null?(U.flags|=67108866,H):(G=G.index,G<H?(U.flags|=67108866,H):G)):(U.flags|=1048576,H)}function C(U){return t&&U.alternate===null&&(U.flags|=67108866),U}function L(U,H,G,ue){return H===null||H.tag!==6?(H=sp(G,U.mode,ue),H.return=U,H):(H=p(H,G),H.return=U,H)}function F(U,H,G,ue){var Te=G.type;return Te===z?se(U,H,G.props.children,ue,G.key):H!==null&&(H.elementType===Te||typeof Te=="object"&&Te&&Te.$$typeof===oe&&zi(Te)===H.type)?(H=p(H,G.props),Ys(H,G),H.return=U,H):(H=jc(G.type,G.key,G.props,null,U.mode,ue),Ys(H,G),H.return=U,H)}function J(U,H,G,ue){return H===null||H.tag!==4||H.stateNode.containerInfo!==G.containerInfo||H.stateNode.implementation!==G.implementation?(H=lp(G,U.mode,ue),H.return=U,H):(H=p(H,G.children||[]),H.return=U,H)}function se(U,H,G,ue,Te){return H===null||H.tag!==7?(H=Pi(G,U.mode,ue,Te),H.return=U,H):(H=p(H,G),H.return=U,H)}function fe(U,H,G){if(typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint")return H=sp(""+H,U.mode,G),H.return=U,H;if(typeof H=="object"&&H){switch(H.$$typeof){case I:return G=jc(H.type,H.key,H.props,null,U.mode,G),Ys(G,H),G.return=U,G;case P:return H=lp(H,U.mode,G),H.return=U,H;case oe:return H=zi(H),fe(U,H,G)}if(ie(H)||_e(H))return H=Pi(H,U.mode,G,null),H.return=U,H;if(typeof H.then=="function")return fe(U,$c(H),G);if(H.$$typeof===X)return fe(U,Fc(U,H),G);Wc(U,H)}return null}function Z(U,H,G,ue){var Te=H===null?null:H.key;if(typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint")return Te===null?L(U,H,""+G,ue):null;if(typeof G=="object"&&G){switch(G.$$typeof){case I:return G.key===Te?F(U,H,G,ue):null;case P:return G.key===Te?J(U,H,G,ue):null;case oe:return G=zi(G),Z(U,H,G,ue)}if(ie(G)||_e(G))return Te===null?se(U,H,G,ue,null):null;if(typeof G.then=="function")return Z(U,H,$c(G),ue);if(G.$$typeof===X)return Z(U,H,Fc(U,G),ue);Wc(U,G)}return null}function ae(U,H,G,ue,Te){if(typeof ue=="string"&&ue!==""||typeof ue=="number"||typeof ue=="bigint")return U=U.get(G)||null,L(H,U,""+ue,Te);if(typeof ue=="object"&&ue){switch(ue.$$typeof){case I:return U=U.get(ue.key===null?G:ue.key)||null,F(H,U,ue,Te);case P:return U=U.get(ue.key===null?G:ue.key)||null,J(H,U,ue,Te);case oe:return ue=zi(ue),ae(U,H,G,ue,Te)}if(ie(ue)||_e(ue))return U=U.get(G)||null,se(H,U,ue,Te,null);if(typeof ue.then=="function")return ae(U,H,G,$c(ue),Te);if(ue.$$typeof===X)return ae(U,H,G,Fc(H,ue),Te);Wc(H,ue)}return null}function Ce(U,H,G,ue){for(var Te=null,nt=null,Se=H,qe=H=0,Ke=null;Se!==null&&qe<G.length;qe++){Se.index>qe?(Ke=Se,Se=null):Ke=Se.sibling;var Ze=Z(U,Se,G[qe],ue);if(Ze===null){Se===null&&(Se=Ke);break}t&&Se&&Ze.alternate===null&&r(U,Se),H=g(Ze,H,qe),nt===null?Te=Ze:nt.sibling=Ze,nt=Ze,Se=Ke}if(qe===G.length)return i(U,Se),Ge&&Ur(U,qe),Te;if(Se===null){for(;qe<G.length;qe++)Se=fe(U,G[qe],ue),Se!==null&&(H=g(Se,H,qe),nt===null?Te=Se:nt.sibling=Se,nt=Se);return Ge&&Ur(U,qe),Te}for(Se=l(Se);qe<G.length;qe++)Ke=ae(Se,U,qe,G[qe],ue),Ke!==null&&(t&&Ke.alternate!==null&&Se.delete(Ke.key===null?qe:Ke.key),H=g(Ke,H,qe),nt===null?Te=Ke:nt.sibling=Ke,nt=Ke);return t&&Se.forEach(function(Ja){return r(U,Ja)}),Ge&&Ur(U,qe),Te}function Ae(U,H,G,ue){if(G==null)throw Error(s(151));for(var Te=null,nt=null,Se=H,qe=H=0,Ke=null,Ze=G.next();Se!==null&&!Ze.done;qe++,Ze=G.next()){Se.index>qe?(Ke=Se,Se=null):Ke=Se.sibling;var Ja=Z(U,Se,Ze.value,ue);if(Ja===null){Se===null&&(Se=Ke);break}t&&Se&&Ja.alternate===null&&r(U,Se),H=g(Ja,H,qe),nt===null?Te=Ja:nt.sibling=Ja,nt=Ja,Se=Ke}if(Ze.done)return i(U,Se),Ge&&Ur(U,qe),Te;if(Se===null){for(;!Ze.done;qe++,Ze=G.next())Ze=fe(U,Ze.value,ue),Ze!==null&&(H=g(Ze,H,qe),nt===null?Te=Ze:nt.sibling=Ze,nt=Ze);return Ge&&Ur(U,qe),Te}for(Se=l(Se);!Ze.done;qe++,Ze=G.next())Ze=ae(Se,U,qe,Ze.value,ue),Ze!==null&&(t&&Ze.alternate!==null&&Se.delete(Ze.key===null?qe:Ze.key),H=g(Ze,H,qe),nt===null?Te=Ze:nt.sibling=Ze,nt=Ze);return t&&Se.forEach(function(z6){return r(U,z6)}),Ge&&Ur(U,qe),Te}function ut(U,H,G,ue){if(typeof G=="object"&&G&&G.type===z&&G.key===null&&(G=G.props.children),typeof G=="object"&&G){switch(G.$$typeof){case I:e:{for(var Te=G.key;H!==null;){if(H.key===Te){if(Te=G.type,Te===z){if(H.tag===7){i(U,H.sibling),ue=p(H,G.props.children),ue.return=U,U=ue;break e}}else if(H.elementType===Te||typeof Te=="object"&&Te&&Te.$$typeof===oe&&zi(Te)===H.type){i(U,H.sibling),ue=p(H,G.props),Ys(ue,G),ue.return=U,U=ue;break e}i(U,H);break}else r(U,H);H=H.sibling}G.type===z?(ue=Pi(G.props.children,U.mode,ue,G.key),ue.return=U,U=ue):(ue=jc(G.type,G.key,G.props,null,U.mode,ue),Ys(ue,G),ue.return=U,U=ue)}return C(U);case P:e:{for(Te=G.key;H!==null;){if(H.key===Te)if(H.tag===4&&H.stateNode.containerInfo===G.containerInfo&&H.stateNode.implementation===G.implementation){i(U,H.sibling),ue=p(H,G.children||[]),ue.return=U,U=ue;break e}else{i(U,H);break}else r(U,H);H=H.sibling}ue=lp(G,U.mode,ue),ue.return=U,U=ue}return C(U);case oe:return G=zi(G),ut(U,H,G,ue)}if(ie(G))return Ce(U,H,G,ue);if(_e(G)){if(Te=_e(G),typeof Te!="function")throw Error(s(150));return G=Te.call(G),Ae(U,H,G,ue)}if(typeof G.then=="function")return ut(U,H,$c(G),ue);if(G.$$typeof===X)return ut(U,H,Fc(U,G),ue);Wc(U,G)}return typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint"?(G=""+G,H!==null&&H.tag===6?(i(U,H.sibling),ue=p(H,G),ue.return=U,U=ue):(i(U,H),ue=sp(G,U.mode,ue),ue.return=U,U=ue),C(U)):i(U,H)}return function(U,H,G,ue){try{Xs=0;var Te=ut(U,H,G,ue);return $o=null,Te}catch(Se){if(Se===Ho||Se===Vc)throw Se;var nt=Nn(29,Se,null,U.mode);return nt.lanes=ue,nt.return=U,nt}}}var Fi=W1(!0),U1=W1(!1),Na=!1;function wp(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function _p(t,r){t=t.updateQueue,r.updateQueue===t&&(r.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Bi(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Vi(t,r,i){var l=t.updateQueue;if(l===null)return null;if(l=l.shared,tt&2){var p=l.pending;return p===null?r.next=r:(r.next=p.next,p.next=r),l.pending=r,r=Dc(t),L1(t,null,i),r}return Nc(t,l,r,i),Dc(t)}function Zs(t,r,i){if(r=r.updateQueue,r!==null&&(r=r.shared,i&4194048)){var l=r.lanes;l&=t.pendingLanes,i|=l,r.lanes=i,So(t,i)}}function xp(t,r){var i=t.updateQueue,l=t.alternate;if(l!==null&&(l=l.updateQueue,i===l)){var p=null,g=null;if(i=i.firstBaseUpdate,i!==null){do{var C={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};g===null?p=g=C:g=g.next=C,i=i.next}while(i!==null);g===null?p=g=r:g=g.next=r}else p=g=r;i={baseState:l.baseState,firstBaseUpdate:p,lastBaseUpdate:g,shared:l.shared,callbacks:l.callbacks},t.updateQueue=i;return}t=i.lastBaseUpdate,t===null?i.firstBaseUpdate=r:t.next=r,i.lastBaseUpdate=r}var kp=!1;function el(){if(kp){var t=Vo;if(t!==null)throw t}}function tl(t,r,i,l){kp=!1;var p=t.updateQueue;Na=!1;var g=p.firstBaseUpdate,C=p.lastBaseUpdate,L=p.shared.pending;if(L!==null){p.shared.pending=null;var F=L,J=F.next;F.next=null,C===null?g=J:C.next=J,C=F;var se=t.alternate;se!==null&&(se=se.updateQueue,L=se.lastBaseUpdate,L!==C&&(L===null?se.firstBaseUpdate=J:L.next=J,se.lastBaseUpdate=F))}if(g!==null){var fe=p.baseState;C=0,se=J=F=null,L=g;do{var Z=L.lane&-536870913,ae=Z!==L.lane;if(ae?(Ue&Z)===Z:(l&Z)===Z){Z!==0&&Z===Bo&&(kp=!0),se!==null&&(se=se.next={lane:0,tag:L.tag,payload:L.payload,callback:null,next:null});e:{var Ce=t,Ae=L;Z=r;var ut=i;switch(Ae.tag){case 1:if(Ce=Ae.payload,typeof Ce=="function"){fe=Ce.call(ut,fe,Z);break e}fe=Ce;break e;case 3:Ce.flags=Ce.flags&-65537|128;case 0:if(Ce=Ae.payload,Z=typeof Ce=="function"?Ce.call(ut,fe,Z):Ce,Z==null)break e;fe=S({},fe,Z);break e;case 2:Na=!0}}Z=L.callback,Z!==null&&(t.flags|=64,ae&&(t.flags|=8192),ae=p.callbacks,ae===null?p.callbacks=[Z]:ae.push(Z))}else ae={lane:Z,tag:L.tag,payload:L.payload,callback:L.callback,next:null},se===null?(J=se=ae,F=fe):se=se.next=ae,C|=Z;if(L=L.next,L===null){if(L=p.shared.pending,L===null)break;ae=L,L=ae.next,ae.next=null,p.lastBaseUpdate=ae,p.shared.pending=null}}while(!0);se===null&&(F=fe),p.baseState=F,p.firstBaseUpdate=J,p.lastBaseUpdate=se,g===null&&(p.shared.lanes=0),Fa|=C,t.lanes=C,t.memoizedState=fe}}function K1(t,r){if(typeof t!="function")throw Error(s(191,t));t.call(r)}function Q1(t,r){var i=t.callbacks;if(i!==null)for(t.callbacks=null,t=0;t<i.length;t++)K1(i[t],r)}var Wo=Fe(null),Uc=Fe(0);function G1(t,r){t=ra,Le(Uc,t),Le(Wo,r),ra=t|r.baseLanes}function Cp(){Le(Uc,ra),Le(Wo,Wo.current)}function Sp(){ra=Uc.current,Ne(Wo),Ne(Uc)}var Dn=Fe(null),gr=null;function Da(t){var r=t.alternate;Le(Ot,Ot.current&1),Le(Dn,t),gr===null&&(r===null||Wo.current!==null||r.memoizedState!==null)&&(gr=t)}function Ep(t){Le(Ot,Ot.current),Le(Dn,t),gr===null&&(gr=t)}function J1(t){t.tag===22?(Le(Ot,Ot.current),Le(Dn,t),gr===null&&(gr=t)):ja(t)}function ja(){Le(Ot,Ot.current),Le(Dn,Dn.current)}function jn(t){Ne(Dn),gr===t&&(gr=null),Ne(Ot)}var Ot=Fe(0);function Kc(t){for(var r=t;r!==null;){if(r.tag===13){var i=r.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||Ah(i)||Rh(i)))return r}else if(r.tag===19&&(r.memoizedProps.revealOrder==="forwards"||r.memoizedProps.revealOrder==="backwards"||r.memoizedProps.revealOrder==="unstable_legacy-backwards"||r.memoizedProps.revealOrder==="together")){if(r.flags&128)return r}else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return null;r=r.return}r.sibling.return=r.return,r=r.sibling}return null}var Gr=0,ze=null,lt=null,jt=null,Qc=!1,Uo=!1,Hi=!1,Gc=0,nl=0,Ko=null,C5=0;function Ct(){throw Error(s(321))}function Tp(t,r){if(r===null)return!1;for(var i=0;i<r.length&&i<t.length;i++)if(!Mn(t[i],r[i]))return!1;return!0}function Ip(t,r,i,l,p,g){return Gr=g,ze=r,r.memoizedState=null,r.updateQueue=null,r.lanes=0,ee.H=t===null||t.memoizedState===null?Pb:Hp,Hi=!1,g=i(l,p),Hi=!1,Uo&&(g=Y1(r,i,l,p)),X1(t),g}function X1(t){ee.H=il;var r=lt!==null&&lt.next!==null;if(Gr=0,jt=lt=ze=null,Qc=!1,nl=0,Ko=null,r)throw Error(s(300));t===null||zt||(t=t.dependencies,t!==null&&qc(t)&&(zt=!0))}function Y1(t,r,i,l){ze=t;var p=0;do{if(Uo&&(Ko=null),nl=0,Uo=!1,25<=p)throw Error(s(301));if(p+=1,jt=lt=null,t.updateQueue!=null){var g=t.updateQueue;g.lastEffect=null,g.events=null,g.stores=null,g.memoCache!=null&&(g.memoCache.index=0)}ee.H=Mb,g=r(i,l)}while(Uo);return g}function S5(){var t=ee.H,r=t.useState()[0];return r=typeof r.then=="function"?rl(r):r,t=t.useState()[0],(lt===null?null:lt.memoizedState)!==t&&(ze.flags|=1024),r}function Lp(){var t=Gc!==0;return Gc=0,t}function Op(t,r,i){r.updateQueue=t.updateQueue,r.flags&=-2053,t.lanes&=~i}function Ap(t){if(Qc){for(t=t.memoizedState;t!==null;){var r=t.queue;r!==null&&(r.pending=null),t=t.next}Qc=!1}Gr=0,jt=lt=ze=null,Uo=!1,nl=Gc=0,Ko=null}function mn(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return jt===null?ze.memoizedState=jt=t:jt=jt.next=t,jt}function At(){if(lt===null){var t=ze.alternate;t=t===null?null:t.memoizedState}else t=lt.next;var r=jt===null?ze.memoizedState:jt.next;if(r!==null)jt=r,lt=t;else{if(t===null)throw ze.alternate===null?Error(s(467)):Error(s(310));lt=t,t={memoizedState:lt.memoizedState,baseState:lt.baseState,baseQueue:lt.baseQueue,queue:lt.queue,next:null},jt===null?ze.memoizedState=jt=t:jt=jt.next=t}return jt}function Jc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function rl(t){var r=nl;return nl+=1,Ko===null&&(Ko=[]),t=V1(Ko,t,r),r=ze,(jt===null?r.memoizedState:jt.next)===null&&(r=r.alternate,ee.H=r===null||r.memoizedState===null?Pb:Hp),t}function Xc(t){if(typeof t=="object"&&t){if(typeof t.then=="function")return rl(t);if(t.$$typeof===X)return en(t)}throw Error(s(438,String(t)))}function Rp(t){var r=null,i=ze.updateQueue;if(i!==null&&(r=i.memoCache),r==null){var l=ze.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(r={data:l.data.map(function(p){return p.slice()}),index:0})))}if(r??(r={data:[],index:0}),i===null&&(i=Jc(),ze.updateQueue=i),i.memoCache=r,i=r.data[r.index],i===void 0)for(i=r.data[r.index]=Array(t),l=0;l<t;l++)i[l]=he;return r.index++,i}function Jr(t,r){return typeof r=="function"?r(t):r}function Yc(t){return Pp(At(),lt,t)}function Pp(t,r,i){var l=t.queue;if(l===null)throw Error(s(311));l.lastRenderedReducer=i;var p=t.baseQueue,g=l.pending;if(g!==null){if(p!==null){var C=p.next;p.next=g.next,g.next=C}r.baseQueue=p=g,l.pending=null}if(g=t.baseState,p===null)t.memoizedState=g;else{r=p.next;var L=C=null,F=null,J=r,se=!1;do{var fe=J.lane&-536870913;if(fe===J.lane?(Gr&fe)===fe:(Ue&fe)===fe){var Z=J.revertLane;if(Z===0)F!==null&&(F=F.next={lane:0,revertLane:0,gesture:null,action:J.action,hasEagerState:J.hasEagerState,eagerState:J.eagerState,next:null}),fe===Bo&&(se=!0);else if((Gr&Z)===Z){J=J.next,Z===Bo&&(se=!0);continue}else fe={lane:0,revertLane:J.revertLane,gesture:null,action:J.action,hasEagerState:J.hasEagerState,eagerState:J.eagerState,next:null},F===null?(L=F=fe,C=g):F=F.next=fe,ze.lanes|=Z,Fa|=Z;fe=J.action,Hi&&i(g,fe),g=J.hasEagerState?J.eagerState:i(g,fe)}else Z={lane:fe,revertLane:J.revertLane,gesture:J.gesture,action:J.action,hasEagerState:J.hasEagerState,eagerState:J.eagerState,next:null},F===null?(L=F=Z,C=g):F=F.next=Z,ze.lanes|=fe,Fa|=fe;J=J.next}while(J!==null&&J!==r);if(F===null?C=g:F.next=L,!Mn(g,t.memoizedState)&&(zt=!0,se&&(i=Vo,i!==null)))throw i;t.memoizedState=g,t.baseState=C,t.baseQueue=F,l.lastRenderedState=g}return p===null&&(l.lanes=0),[t.memoizedState,l.dispatch]}function Mp(t){var r=At(),i=r.queue;if(i===null)throw Error(s(311));i.lastRenderedReducer=t;var l=i.dispatch,p=i.pending,g=r.memoizedState;if(p!==null){i.pending=null;var C=p=p.next;do g=t(g,C.action),C=C.next;while(C!==p);Mn(g,r.memoizedState)||(zt=!0),r.memoizedState=g,r.baseQueue===null&&(r.baseState=g),i.lastRenderedState=g}return[g,l]}function Z1(t,r,i){var l=ze,p=At(),g=Ge;if(g){if(i===void 0)throw Error(s(407));i=i()}else i=r();var C=!Mn((lt||p).memoizedState,i);if(C&&(p.memoizedState=i,zt=!0),p=p.queue,jp(nb.bind(null,l,p,t),[t]),p.getSnapshot!==r||C||jt!==null&&jt.memoizedState.tag&1){if(l.flags|=2048,Qo(9,{destroy:void 0},tb.bind(null,l,p,i,r),null),ft===null)throw Error(s(349));g||Gr&127||eb(l,r,i)}return i}function eb(t,r,i){t.flags|=16384,t={getSnapshot:r,value:i},r=ze.updateQueue,r===null?(r=Jc(),ze.updateQueue=r,r.stores=[t]):(i=r.stores,i===null?r.stores=[t]:i.push(t))}function tb(t,r,i,l){r.value=i,r.getSnapshot=l,rb(r)&&ab(t)}function nb(t,r,i){return i(function(){rb(r)&&ab(t)})}function rb(t){var r=t.getSnapshot;t=t.value;try{var i=r();return!Mn(t,i)}catch{return!0}}function ab(t){var r=Ri(t,2);r!==null&&Sn(r,t,2)}function Np(t){var r=mn();if(typeof t=="function"){var i=t;if(t=i(),Hi){Qe(!0);try{i()}finally{Qe(!1)}}}return r.memoizedState=r.baseState=t,r.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Jr,lastRenderedState:t},r}function ib(t,r,i,l){return t.baseState=i,Pp(t,lt,typeof l=="function"?l:Jr)}function E5(t,r,i,l,p){if(tu(t))throw Error(s(485));if(t=r.action,t!==null){var g={payload:p,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(C){g.listeners.push(C)}};ee.T===null?g.isTransition=!1:i(!0),l(g),i=r.pending,i===null?(g.next=r.pending=g,ob(r,g)):(g.next=i.next,r.pending=i.next=g)}}function ob(t,r){var i=r.action,l=r.payload,p=t.state;if(r.isTransition){var g=ee.T,C={};ee.T=C;try{var L=i(p,l),F=ee.S;F!==null&&F(C,L),sb(t,r,L)}catch(J){Dp(t,r,J)}finally{g!==null&&C.types!==null&&(g.types=C.types),ee.T=g}}else try{g=i(p,l),sb(t,r,g)}catch(J){Dp(t,r,J)}}function sb(t,r,i){typeof i=="object"&&i&&typeof i.then=="function"?i.then(function(l){lb(t,r,l)},function(l){return Dp(t,r,l)}):lb(t,r,i)}function lb(t,r,i){r.status="fulfilled",r.value=i,cb(r),t.state=i,r=t.pending,r!==null&&(i=r.next,i===r?t.pending=null:(i=i.next,r.next=i,ob(t,i)))}function Dp(t,r,i){var l=t.pending;if(t.pending=null,l!==null){l=l.next;do r.status="rejected",r.reason=i,cb(r),r=r.next;while(r!==l)}t.action=null}function cb(t){t=t.listeners;for(var r=0;r<t.length;r++)(0,t[r])()}function ub(t,r){return r}function db(t,r){if(Ge){var i=ft.formState;if(i!==null){e:{var l=ze;if(Ge){if(vt){t:{for(var p=vt,g=Yn;p.nodeType!==8;){if(!g){p=null;break t}if(p=er(p.nextSibling),p===null){p=null;break t}}g=p.data,p=g==="F!"||g==="F"?p:null}if(p){vt=er(p.nextSibling),l=p.data==="F!";break e}}Pa(l)}l=!1}l&&(r=i[0])}}return i=mn(),i.memoizedState=i.baseState=r,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ub,lastRenderedState:r},i.queue=l,i=Ob.bind(null,ze,l),l.dispatch=i,l=Np(!1),g=Vp.bind(null,ze,!1,l.queue),l=mn(),p={state:r,dispatch:null,action:t,pending:null},l.queue=p,i=E5.bind(null,ze,p,g,i),p.dispatch=i,l.memoizedState=t,[r,i,!1]}function fb(t){return pb(At(),lt,t)}function pb(t,r,i){if(r=Pp(t,r,ub)[0],t=Yc(Jr)[0],typeof r=="object"&&r&&typeof r.then=="function")try{var l=rl(r)}catch(C){throw C===Ho?Vc:C}else l=r;r=At();var p=r.queue,g=p.dispatch;return i!==r.memoizedState&&(ze.flags|=2048,Qo(9,{destroy:void 0},T5.bind(null,p,i),null)),[l,g,t]}function T5(t,r){t.action=r}function hb(t){var r=At(),i=lt;if(i!==null)return pb(r,i,t);At(),r=r.memoizedState,i=At();var l=i.queue.dispatch;return i.memoizedState=t,[r,l,!1]}function Qo(t,r,i,l){return t={tag:t,create:i,deps:l,inst:r,next:null},r=ze.updateQueue,r===null&&(r=Jc(),ze.updateQueue=r),i=r.lastEffect,i===null?r.lastEffect=t.next=t:(l=i.next,i.next=t,t.next=l,r.lastEffect=t),t}function mb(){return At().memoizedState}function Zc(t,r,i,l){var p=mn();ze.flags|=t,p.memoizedState=Qo(1|r,{destroy:void 0},i,l===void 0?null:l)}function eu(t,r,i,l){var p=At();l=l===void 0?null:l;var g=p.memoizedState.inst;lt!==null&&l!==null&&Tp(l,lt.memoizedState.deps)?p.memoizedState=Qo(r,g,i,l):(ze.flags|=t,p.memoizedState=Qo(1|r,g,i,l))}function gb(t,r){Zc(8390656,8,t,r)}function jp(t,r){eu(2048,8,t,r)}function I5(t){ze.flags|=4;var r=ze.updateQueue;if(r===null)r=Jc(),ze.updateQueue=r,r.events=[t];else{var i=r.events;i===null?r.events=[t]:i.push(t)}}function yb(t){var r=At().memoizedState;return I5({ref:r,nextImpl:t}),function(){if(tt&2)throw Error(s(440));return r.impl.apply(void 0,arguments)}}function vb(t,r){return eu(4,2,t,r)}function bb(t,r){return eu(4,4,t,r)}function wb(t,r){if(typeof r=="function"){t=t();var i=r(t);return function(){typeof i=="function"?i():r(null)}}if(r!=null)return t=t(),r.current=t,function(){r.current=null}}function _b(t,r,i){i=i==null?null:i.concat([t]),eu(4,4,wb.bind(null,r,t),i)}function zp(){}function xb(t,r){var i=At();r=r===void 0?null:r;var l=i.memoizedState;return r!==null&&Tp(r,l[1])?l[0]:(i.memoizedState=[t,r],t)}function kb(t,r){var i=At();r=r===void 0?null:r;var l=i.memoizedState;if(r!==null&&Tp(r,l[1]))return l[0];if(l=t(),Hi){Qe(!0);try{t()}finally{Qe(!1)}}return i.memoizedState=[l,r],l}function qp(t,r,i){return i===void 0||Gr&1073741824&&!(Ue&261930)?t.memoizedState=r:(t.memoizedState=i,t=_2(),ze.lanes|=t,Fa|=t,i)}function Cb(t,r,i,l){return Mn(i,r)?i:Wo.current===null?!(Gr&42)||Gr&1073741824&&!(Ue&261930)?(zt=!0,t.memoizedState=i):(t=_2(),ze.lanes|=t,Fa|=t,r):(t=qp(t,i,l),Mn(t,r)||(zt=!0),t)}function Sb(t,r,i,l,p){var g=W.p;W.p=g!==0&&8>g?g:8;var C=ee.T,L={};ee.T=L,Vp(t,!1,r,i);try{var F=p(),J=ee.S;J!==null&&J(L,F),typeof F=="object"&&F&&typeof F.then=="function"?al(t,r,k5(F,l),Zn(t)):al(t,r,l,Zn(t))}catch(se){al(t,r,{then:function(){},status:"rejected",reason:se},Zn())}finally{W.p=g,C!==null&&L.types!==null&&(C.types=L.types),ee.T=C}}function L5(){}function Fp(t,r,i,l){if(t.tag!==5)throw Error(s(476));var p=Eb(t).queue;Sb(t,p,r,Ie,i===null?L5:function(){return Tb(t),i(l)})}function Eb(t){var r=t.memoizedState;if(r!==null)return r;r={memoizedState:Ie,baseState:Ie,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Jr,lastRenderedState:Ie},next:null};var i={};return r.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Jr,lastRenderedState:i},next:null},t.memoizedState=r,t=t.alternate,t!==null&&(t.memoizedState=r),r}function Tb(t){var r=Eb(t);r.next===null&&(r=t.alternate.memoizedState),al(t,r.next.queue,{},Zn())}function Bp(){return en(_l)}function Ib(){return At().memoizedState}function Lb(){return At().memoizedState}function O5(t){for(var r=t.return;r!==null;){switch(r.tag){case 24:case 3:var i=Zn();t=Bi(i);var l=Vi(r,t,i);l!==null&&(Sn(l,r,i),Zs(l,r,i)),r={cache:gp()},t.payload=r;return}r=r.return}}function A5(t,r,i){var l=Zn();i={lane:l,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},tu(t)?Ab(r,i):(i=ip(t,r,i,l),i!==null&&(Sn(i,t,l),Rb(i,r,l)))}function Ob(t,r,i){al(t,r,i,Zn())}function al(t,r,i,l){var p={lane:l,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null};if(tu(t))Ab(r,p);else{var g=t.alternate;if(t.lanes===0&&(g===null||g.lanes===0)&&(g=r.lastRenderedReducer,g!==null))try{var C=r.lastRenderedState,L=g(C,i);if(p.hasEagerState=!0,p.eagerState=L,Mn(L,C))return Nc(t,r,p,0),ft===null&&Mc(),!1}catch{}if(i=ip(t,r,p,l),i!==null)return Sn(i,t,l),Rb(i,r,l),!0}return!1}function Vp(t,r,i,l){if(l={lane:2,revertLane:wh(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},tu(t)){if(r)throw Error(s(479))}else r=ip(t,i,l,2),r!==null&&Sn(r,t,2)}function tu(t){var r=t.alternate;return t===ze||r!==null&&r===ze}function Ab(t,r){Uo=Qc=!0;var i=t.pending;i===null?r.next=r:(r.next=i.next,i.next=r),t.pending=r}function Rb(t,r,i){if(i&4194048){var l=r.lanes;l&=t.pendingLanes,i|=l,r.lanes=i,So(t,i)}}var il={readContext:en,use:Xc,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};il.useEffectEvent=Ct;var Pb={readContext:en,use:Xc,useCallback:function(t,r){return mn().memoizedState=[t,r===void 0?null:r],t},useContext:en,useEffect:gb,useImperativeHandle:function(t,r,i){i=i==null?null:i.concat([t]),Zc(4194308,4,wb.bind(null,r,t),i)},useLayoutEffect:function(t,r){return Zc(4194308,4,t,r)},useInsertionEffect:function(t,r){Zc(4,2,t,r)},useMemo:function(t,r){var i=mn();r=r===void 0?null:r;var l=t();if(Hi){Qe(!0);try{t()}finally{Qe(!1)}}return i.memoizedState=[l,r],l},useReducer:function(t,r,i){var l=mn();if(i!==void 0){var p=i(r);if(Hi){Qe(!0);try{i(r)}finally{Qe(!1)}}}else p=r;return l.memoizedState=l.baseState=p,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:p},l.queue=t,t=t.dispatch=A5.bind(null,ze,t),[l.memoizedState,t]},useRef:function(t){var r=mn();return t={current:t},r.memoizedState=t},useState:function(t){t=Np(t);var r=t.queue,i=Ob.bind(null,ze,r);return r.dispatch=i,[t.memoizedState,i]},useDebugValue:zp,useDeferredValue:function(t,r){return qp(mn(),t,r)},useTransition:function(){var t=Np(!1);return t=Sb.bind(null,ze,t.queue,!0,!1),mn().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,r,i){var l=ze,p=mn();if(Ge){if(i===void 0)throw Error(s(407));i=i()}else{if(i=r(),ft===null)throw Error(s(349));Ue&127||eb(l,r,i)}p.memoizedState=i;var g={value:i,getSnapshot:r};return p.queue=g,gb(nb.bind(null,l,g,t),[t]),l.flags|=2048,Qo(9,{destroy:void 0},tb.bind(null,l,g,i,r),null),i},useId:function(){var t=mn(),r=ft.identifierPrefix;if(Ge){var i=Or,l=Lr;i=(l&~(1<<32-gt(l)-1)).toString(32)+i,r="_"+r+"R_"+i,i=Gc++,0<i&&(r+="H"+i.toString(32)),r+="_"}else i=C5++,r="_"+r+"r_"+i.toString(32)+"_";return t.memoizedState=r},useHostTransitionStatus:Bp,useFormState:db,useActionState:db,useOptimistic:function(t){var r=mn();r.memoizedState=r.baseState=t;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return r.queue=i,r=Vp.bind(null,ze,!0,i),i.dispatch=r,[t,r]},useMemoCache:Rp,useCacheRefresh:function(){return mn().memoizedState=O5.bind(null,ze)},useEffectEvent:function(t){var r=mn(),i={impl:t};return r.memoizedState=i,function(){if(tt&2)throw Error(s(440));return i.impl.apply(void 0,arguments)}}},Hp={readContext:en,use:Xc,useCallback:xb,useContext:en,useEffect:jp,useImperativeHandle:_b,useInsertionEffect:vb,useLayoutEffect:bb,useMemo:kb,useReducer:Yc,useRef:mb,useState:function(){return Yc(Jr)},useDebugValue:zp,useDeferredValue:function(t,r){return Cb(At(),lt.memoizedState,t,r)},useTransition:function(){var t=Yc(Jr)[0],r=At().memoizedState;return[typeof t=="boolean"?t:rl(t),r]},useSyncExternalStore:Z1,useId:Ib,useHostTransitionStatus:Bp,useFormState:fb,useActionState:fb,useOptimistic:function(t,r){return ib(At(),lt,t,r)},useMemoCache:Rp,useCacheRefresh:Lb};Hp.useEffectEvent=yb;var Mb={readContext:en,use:Xc,useCallback:xb,useContext:en,useEffect:jp,useImperativeHandle:_b,useInsertionEffect:vb,useLayoutEffect:bb,useMemo:kb,useReducer:Mp,useRef:mb,useState:function(){return Mp(Jr)},useDebugValue:zp,useDeferredValue:function(t,r){var i=At();return lt===null?qp(i,t,r):Cb(i,lt.memoizedState,t,r)},useTransition:function(){var t=Mp(Jr)[0],r=At().memoizedState;return[typeof t=="boolean"?t:rl(t),r]},useSyncExternalStore:Z1,useId:Ib,useHostTransitionStatus:Bp,useFormState:hb,useActionState:hb,useOptimistic:function(t,r){var i=At();return lt===null?(i.baseState=t,[t,i.queue.dispatch]):ib(i,lt,t,r)},useMemoCache:Rp,useCacheRefresh:Lb};Mb.useEffectEvent=yb;function $p(t,r,i,l){r=t.memoizedState,i=i(l,r),i=i==null?r:S({},r,i),t.memoizedState=i,t.lanes===0&&(t.updateQueue.baseState=i)}var Wp={enqueueSetState:function(t,r,i){t=t._reactInternals;var l=Zn(),p=Bi(l);p.payload=r,i!=null&&(p.callback=i),r=Vi(t,p,l),r!==null&&(Sn(r,t,l),Zs(r,t,l))},enqueueReplaceState:function(t,r,i){t=t._reactInternals;var l=Zn(),p=Bi(l);p.tag=1,p.payload=r,i!=null&&(p.callback=i),r=Vi(t,p,l),r!==null&&(Sn(r,t,l),Zs(r,t,l))},enqueueForceUpdate:function(t,r){t=t._reactInternals;var i=Zn(),l=Bi(i);l.tag=2,r!=null&&(l.callback=r),r=Vi(t,l,i),r!==null&&(Sn(r,t,i),Zs(r,t,i))}};function Nb(t,r,i,l,p,g,C){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(l,g,C):r.prototype&&r.prototype.isPureReactComponent?!Ws(i,l)||!Ws(p,g):!0}function Db(t,r,i,l){t=r.state,typeof r.componentWillReceiveProps=="function"&&r.componentWillReceiveProps(i,l),typeof r.UNSAFE_componentWillReceiveProps=="function"&&r.UNSAFE_componentWillReceiveProps(i,l),r.state!==t&&Wp.enqueueReplaceState(r,r.state,null)}function $i(t,r){var i=r;if("ref"in r)for(var l in i={},r)l!=="ref"&&(i[l]=r[l]);if(t=t.defaultProps)for(var p in i===r&&(i=S({},i)),t)i[p]===void 0&&(i[p]=t[p]);return i}function R5(t){Pc(t)}function P5(t){console.error(t)}function M5(t){Pc(t)}function nu(t,r){try{var i=t.onUncaughtError;i(r.value,{componentStack:r.stack})}catch(l){setTimeout(function(){throw l})}}function jb(t,r,i){try{var l=t.onCaughtError;l(i.value,{componentStack:i.stack,errorBoundary:r.tag===1?r.stateNode:null})}catch(p){setTimeout(function(){throw p})}}function Up(t,r,i){return i=Bi(i),i.tag=3,i.payload={element:null},i.callback=function(){nu(t,r)},i}function zb(t){return t=Bi(t),t.tag=3,t}function qb(t,r,i,l){var p=i.type.getDerivedStateFromError;if(typeof p=="function"){var g=l.value;t.payload=function(){return p(g)},t.callback=function(){jb(r,i,l)}}var C=i.stateNode;C!==null&&typeof C.componentDidCatch=="function"&&(t.callback=function(){jb(r,i,l),typeof p!="function"&&(Ba===null?Ba=new Set([this]):Ba.add(this));var L=l.stack;this.componentDidCatch(l.value,{componentStack:L===null?"":L})})}function N5(t,r,i,l,p){if(i.flags|=32768,typeof l=="object"&&l&&typeof l.then=="function"){if(r=i.alternate,r!==null&&Fo(r,i,p,!0),i=Dn.current,i!==null){switch(i.tag){case 31:case 13:return gr===null?hu():i.alternate===null&&St===0&&(St=3),i.flags&=-257,i.flags|=65536,i.lanes=p,l===Hc?i.flags|=16384:(r=i.updateQueue,r===null?i.updateQueue=new Set([l]):r.add(l),yh(t,l,p)),!1;case 22:return i.flags|=65536,l===Hc?i.flags|=16384:(r=i.updateQueue,r===null?(r={transitions:null,markerInstances:null,retryQueue:new Set([l])},i.updateQueue=r):(i=r.retryQueue,i===null?r.retryQueue=new Set([l]):i.add(l)),yh(t,l,p)),!1}throw Error(s(435,i.tag))}return yh(t,l,p),hu(),!1}if(Ge)return r=Dn.current,r===null?(l!==dp&&(r=Error(s(423),{cause:l}),Qs(Gn(r,i))),t=t.current.alternate,t.flags|=65536,p&=-p,t.lanes|=p,l=Gn(l,i),p=Up(t.stateNode,l,p),xp(t,p),St!==4&&(St=2)):(!(r.flags&65536)&&(r.flags|=256),r.flags|=65536,r.lanes=p,l!==dp&&(t=Error(s(422),{cause:l}),Qs(Gn(t,i)))),!1;var g=Error(s(520),{cause:l});if(g=Gn(g,i),pl===null?pl=[g]:pl.push(g),St!==4&&(St=2),r===null)return!0;l=Gn(l,i),i=r;do{switch(i.tag){case 3:return i.flags|=65536,t=p&-p,i.lanes|=t,t=Up(i.stateNode,l,t),xp(i,t),!1;case 1:if(r=i.type,g=i.stateNode,!(i.flags&128)&&(typeof r.getDerivedStateFromError=="function"||g!==null&&typeof g.componentDidCatch=="function"&&(Ba===null||!Ba.has(g))))return i.flags|=65536,p&=-p,i.lanes|=p,p=zb(p),qb(p,t,i,l),xp(i,p),!1}i=i.return}while(i!==null);return!1}var Kp=Error(s(461)),zt=!1;function tn(t,r,i,l){r.child=t===null?U1(r,null,i,l):Fi(r,t.child,i,l)}function Fb(t,r,i,l,p){i=i.render;var g=r.ref;if("ref"in l){var C={};for(var L in l)L!=="ref"&&(C[L]=l[L])}else C=l;return Di(r),l=Ip(t,r,i,C,g,p),L=Lp(),t!==null&&!zt?(Op(t,r,p),Xr(t,r,p)):(Ge&&L&&cp(r),r.flags|=1,tn(t,r,l,p),r.child)}function Bb(t,r,i,l,p){if(t===null){var g=i.type;return typeof g=="function"&&!op(g)&&g.defaultProps===void 0&&i.compare===null?(r.tag=15,r.type=g,Vb(t,r,g,l,p)):(t=jc(i.type,null,l,r,r.mode,p),t.ref=r.ref,t.return=r,r.child=t)}if(g=t.child,!th(t,p)){var C=g.memoizedProps;if(i=i.compare,i=i===null?Ws:i,i(C,l)&&t.ref===r.ref)return Xr(t,r,p)}return r.flags|=1,t=Wr(g,l),t.ref=r.ref,t.return=r,r.child=t}function Vb(t,r,i,l,p){if(t!==null){var g=t.memoizedProps;if(Ws(g,l)&&t.ref===r.ref)if(zt=!1,r.pendingProps=l=g,th(t,p))t.flags&131072&&(zt=!0);else return r.lanes=t.lanes,Xr(t,r,p)}return Qp(t,r,i,l,p)}function Hb(t,r,i,l){var p=l.children,g=t===null?null:t.memoizedState;if(t===null&&r.stateNode===null&&(r.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if(r.flags&128){if(g=g===null?i:g.baseLanes|i,t!==null){for(l=r.child=t.child,p=0;l!==null;)p=p|l.lanes|l.childLanes,l=l.sibling;l=p&~g}else l=0,r.child=null;return $b(t,r,g,i,l)}if(i&536870912)r.memoizedState={baseLanes:0,cachePool:null},t!==null&&Bc(r,g===null?null:g.cachePool),g===null?Cp():G1(r,g),J1(r);else return l=r.lanes=536870912,$b(t,r,g===null?i:g.baseLanes|i,i,l)}else g===null?(t!==null&&Bc(r,null),Cp(),ja(r)):(Bc(r,g.cachePool),G1(r,g),ja(r),r.memoizedState=null);return tn(t,r,p,i),r.child}function ol(t,r){return t!==null&&t.tag===22||r.stateNode!==null||(r.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.sibling}function $b(t,r,i,l,p){var g=vp();return g=g===null?null:{parent:Dt._currentValue,pool:g},r.memoizedState={baseLanes:i,cachePool:g},t!==null&&Bc(r,null),Cp(),J1(r),t!==null&&Fo(t,r,l,!0),r.childLanes=p,null}function ru(t,r){return r=iu({mode:r.mode,children:r.children},t.mode),r.ref=t.ref,t.child=r,r.return=t,r}function Wb(t,r,i){return Fi(r,t.child,null,i),t=ru(r,r.pendingProps),t.flags|=2,jn(r),r.memoizedState=null,t}function D5(t,r,i){var l=r.pendingProps,p=(r.flags&128)!=0;if(r.flags&=-129,t===null){if(Ge){if(l.mode==="hidden")return t=ru(r,l),r.lanes=536870912,ol(null,t);if(Ep(r),(t=vt)?(t=aw(t,Yn),t=t!==null&&t.data==="&"?t:null,t!==null&&(r.memoizedState={dehydrated:t,treeContext:Aa===null?null:{id:Lr,overflow:Or},retryLane:536870912,hydrationErrors:null},i=A1(t),i.return=r,r.child=i,Zt=r,vt=null)):t=null,t===null)throw Pa(r);return r.lanes=536870912,null}return ru(r,l)}var g=t.memoizedState;if(g!==null){var C=g.dehydrated;if(Ep(r),p)if(r.flags&256)r.flags&=-257,r=Wb(t,r,i);else if(r.memoizedState!==null)r.child=t.child,r.flags|=128,r=null;else throw Error(s(558));else if(zt||Fo(t,r,i,!1),p=(i&t.childLanes)!==0,zt||p){if(l=ft,l!==null&&(C=vc(l,i),C!==0&&C!==g.retryLane))throw g.retryLane=C,Ri(t,C),Sn(l,t,C),Kp;hu(),r=Wb(t,r,i)}else t=g.treeContext,vt=er(C.nextSibling),Zt=r,Ge=!0,Ra=null,Yn=!1,t!==null&&M1(r,t),r=ru(r,l),r.flags|=4096;return r}return t=Wr(t.child,{mode:l.mode,children:l.children}),t.ref=r.ref,r.child=t,t.return=r,t}function au(t,r){var i=r.ref;if(i===null)t!==null&&t.ref!==null&&(r.flags|=4194816);else{if(typeof i!="function"&&typeof i!="object")throw Error(s(284));(t===null||t.ref!==i)&&(r.flags|=4194816)}}function Qp(t,r,i,l,p){return Di(r),i=Ip(t,r,i,l,void 0,p),l=Lp(),t!==null&&!zt?(Op(t,r,p),Xr(t,r,p)):(Ge&&l&&cp(r),r.flags|=1,tn(t,r,i,p),r.child)}function Ub(t,r,i,l,p,g){return Di(r),r.updateQueue=null,i=Y1(r,l,i,p),X1(t),l=Lp(),t!==null&&!zt?(Op(t,r,g),Xr(t,r,g)):(Ge&&l&&cp(r),r.flags|=1,tn(t,r,i,g),r.child)}function Kb(t,r,i,l,p){if(Di(r),r.stateNode===null){var g=Do,C=i.contextType;typeof C=="object"&&C&&(g=en(C)),g=new i(l,g),r.memoizedState=g.state!==null&&g.state!==void 0?g.state:null,g.updater=Wp,r.stateNode=g,g._reactInternals=r,g=r.stateNode,g.props=l,g.state=r.memoizedState,g.refs={},wp(r),C=i.contextType,g.context=typeof C=="object"&&C?en(C):Do,g.state=r.memoizedState,C=i.getDerivedStateFromProps,typeof C=="function"&&($p(r,i,C,l),g.state=r.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof g.getSnapshotBeforeUpdate=="function"||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(C=g.state,typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount(),C!==g.state&&Wp.enqueueReplaceState(g,g.state,null),tl(r,l,g,p),el(),g.state=r.memoizedState),typeof g.componentDidMount=="function"&&(r.flags|=4194308),l=!0}else if(t===null){g=r.stateNode;var L=r.memoizedProps,F=$i(i,L);g.props=F;var J=g.context,se=i.contextType;C=Do,typeof se=="object"&&se&&(C=en(se));var fe=i.getDerivedStateFromProps;se=typeof fe=="function"||typeof g.getSnapshotBeforeUpdate=="function",L=r.pendingProps!==L,se||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(L||J!==C)&&Db(r,g,l,C),Na=!1;var Z=r.memoizedState;g.state=Z,tl(r,l,g,p),el(),J=r.memoizedState,L||Z!==J||Na?(typeof fe=="function"&&($p(r,i,fe,l),J=r.memoizedState),(F=Na||Nb(r,i,F,l,Z,J,C))?(se||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount()),typeof g.componentDidMount=="function"&&(r.flags|=4194308)):(typeof g.componentDidMount=="function"&&(r.flags|=4194308),r.memoizedProps=l,r.memoizedState=J),g.props=l,g.state=J,g.context=C,l=F):(typeof g.componentDidMount=="function"&&(r.flags|=4194308),l=!1)}else{g=r.stateNode,_p(t,r),C=r.memoizedProps,se=$i(i,C),g.props=se,fe=r.pendingProps,Z=g.context,J=i.contextType,F=Do,typeof J=="object"&&J&&(F=en(J)),L=i.getDerivedStateFromProps,(J=typeof L=="function"||typeof g.getSnapshotBeforeUpdate=="function")||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(C!==fe||Z!==F)&&Db(r,g,l,F),Na=!1,Z=r.memoizedState,g.state=Z,tl(r,l,g,p),el();var ae=r.memoizedState;C!==fe||Z!==ae||Na||t!==null&&t.dependencies!==null&&qc(t.dependencies)?(typeof L=="function"&&($p(r,i,L,l),ae=r.memoizedState),(se=Na||Nb(r,i,se,l,Z,ae,F)||t!==null&&t.dependencies!==null&&qc(t.dependencies))?(J||typeof g.UNSAFE_componentWillUpdate!="function"&&typeof g.componentWillUpdate!="function"||(typeof g.componentWillUpdate=="function"&&g.componentWillUpdate(l,ae,F),typeof g.UNSAFE_componentWillUpdate=="function"&&g.UNSAFE_componentWillUpdate(l,ae,F)),typeof g.componentDidUpdate=="function"&&(r.flags|=4),typeof g.getSnapshotBeforeUpdate=="function"&&(r.flags|=1024)):(typeof g.componentDidUpdate!="function"||C===t.memoizedProps&&Z===t.memoizedState||(r.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||C===t.memoizedProps&&Z===t.memoizedState||(r.flags|=1024),r.memoizedProps=l,r.memoizedState=ae),g.props=l,g.state=ae,g.context=F,l=se):(typeof g.componentDidUpdate!="function"||C===t.memoizedProps&&Z===t.memoizedState||(r.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||C===t.memoizedProps&&Z===t.memoizedState||(r.flags|=1024),l=!1)}return g=l,au(t,r),l=(r.flags&128)!=0,g||l?(g=r.stateNode,i=l&&typeof i.getDerivedStateFromError!="function"?null:g.render(),r.flags|=1,t!==null&&l?(r.child=Fi(r,t.child,null,p),r.child=Fi(r,null,i,p)):tn(t,r,i,p),r.memoizedState=g.state,t=r.child):t=Xr(t,r,p),t}function Qb(t,r,i,l){return Mi(),r.flags|=256,tn(t,r,i,l),r.child}var Gp={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Jp(t){return{baseLanes:t,cachePool:F1()}}function Xp(t,r,i){return t=t===null?0:t.childLanes&~i,r&&(t|=qn),t}function Gb(t,r,i){var l=r.pendingProps,p=!1,g=(r.flags&128)!=0,C;if((C=g)||(C=t!==null&&t.memoizedState===null?!1:(Ot.current&2)!=0),C&&(p=!0,r.flags&=-129),C=(r.flags&32)!=0,r.flags&=-33,t===null){if(Ge){if(p?Da(r):ja(r),(t=vt)?(t=aw(t,Yn),t=t!==null&&t.data!=="&"?t:null,t!==null&&(r.memoizedState={dehydrated:t,treeContext:Aa===null?null:{id:Lr,overflow:Or},retryLane:536870912,hydrationErrors:null},i=A1(t),i.return=r,r.child=i,Zt=r,vt=null)):t=null,t===null)throw Pa(r);return Rh(t)?r.lanes=32:r.lanes=536870912,null}var L=l.children;return l=l.fallback,p?(ja(r),p=r.mode,L=iu({mode:"hidden",children:L},p),l=Pi(l,p,i,null),L.return=r,l.return=r,L.sibling=l,r.child=L,l=r.child,l.memoizedState=Jp(i),l.childLanes=Xp(t,C,i),r.memoizedState=Gp,ol(null,l)):(Da(r),Yp(r,L))}var F=t.memoizedState;if(F!==null&&(L=F.dehydrated,L!==null)){if(g)r.flags&256?(Da(r),r.flags&=-257,r=Zp(t,r,i)):r.memoizedState===null?(ja(r),L=l.fallback,p=r.mode,l=iu({mode:"visible",children:l.children},p),L=Pi(L,p,i,null),L.flags|=2,l.return=r,L.return=r,l.sibling=L,r.child=l,Fi(r,t.child,null,i),l=r.child,l.memoizedState=Jp(i),l.childLanes=Xp(t,C,i),r.memoizedState=Gp,r=ol(null,l)):(ja(r),r.child=t.child,r.flags|=128,r=null);else if(Da(r),Rh(L)){if(C=L.nextSibling&&L.nextSibling.dataset,C)var J=C.dgst;C=J,l=Error(s(419)),l.stack="",l.digest=C,Qs({value:l,source:null,stack:null}),r=Zp(t,r,i)}else if(zt||Fo(t,r,i,!1),C=(i&t.childLanes)!==0,zt||C){if(C=ft,C!==null&&(l=vc(C,i),l!==0&&l!==F.retryLane))throw F.retryLane=l,Ri(t,l),Sn(C,t,l),Kp;Ah(L)||hu(),r=Zp(t,r,i)}else Ah(L)?(r.flags|=192,r.child=t.child,r=null):(t=F.treeContext,vt=er(L.nextSibling),Zt=r,Ge=!0,Ra=null,Yn=!1,t!==null&&M1(r,t),r=Yp(r,l.children),r.flags|=4096);return r}return p?(ja(r),L=l.fallback,p=r.mode,F=t.child,J=F.sibling,l=Wr(F,{mode:"hidden",children:l.children}),l.subtreeFlags=F.subtreeFlags&65011712,J===null?(L=Pi(L,p,i,null),L.flags|=2):L=Wr(J,L),L.return=r,l.return=r,l.sibling=L,r.child=l,ol(null,l),l=r.child,L=t.child.memoizedState,L===null?L=Jp(i):(p=L.cachePool,p===null?p=F1():(F=Dt._currentValue,p=p.parent===F?p:{parent:F,pool:F}),L={baseLanes:L.baseLanes|i,cachePool:p}),l.memoizedState=L,l.childLanes=Xp(t,C,i),r.memoizedState=Gp,ol(t.child,l)):(Da(r),i=t.child,t=i.sibling,i=Wr(i,{mode:"visible",children:l.children}),i.return=r,i.sibling=null,t!==null&&(C=r.deletions,C===null?(r.deletions=[t],r.flags|=16):C.push(t)),r.child=i,r.memoizedState=null,i)}function Yp(t,r){return r=iu({mode:"visible",children:r},t.mode),r.return=t,t.child=r}function iu(t,r){return t=Nn(22,t,null,r),t.lanes=0,t}function Zp(t,r,i){return Fi(r,t.child,null,i),t=Yp(r,r.pendingProps.children),t.flags|=2,r.memoizedState=null,t}function Jb(t,r,i){t.lanes|=r;var l=t.alternate;l!==null&&(l.lanes|=r),hp(t.return,r,i)}function eh(t,r,i,l,p,g){var C=t.memoizedState;C===null?t.memoizedState={isBackwards:r,rendering:null,renderingStartTime:0,last:l,tail:i,tailMode:p,treeForkCount:g}:(C.isBackwards=r,C.rendering=null,C.renderingStartTime=0,C.last=l,C.tail=i,C.tailMode=p,C.treeForkCount=g)}function Xb(t,r,i){var l=r.pendingProps,p=l.revealOrder,g=l.tail;l=l.children;var C=Ot.current,L=(C&2)!=0;if(L?(C=C&1|2,r.flags|=128):C&=1,Le(Ot,C),tn(t,r,l,i),l=Ge?Ks:0,!L&&t!==null&&t.flags&128)e:for(t=r.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Jb(t,i,r);else if(t.tag===19)Jb(t,i,r);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===r)break e;for(;t.sibling===null;){if(t.return===null||t.return===r)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(p){case"forwards":for(i=r.child,p=null;i!==null;)t=i.alternate,t!==null&&Kc(t)===null&&(p=i),i=i.sibling;i=p,i===null?(p=r.child,r.child=null):(p=i.sibling,i.sibling=null),eh(r,!1,p,i,g,l);break;case"backwards":case"unstable_legacy-backwards":for(i=null,p=r.child,r.child=null;p!==null;){if(t=p.alternate,t!==null&&Kc(t)===null){r.child=p;break}t=p.sibling,p.sibling=i,i=p,p=t}eh(r,!0,i,null,g,l);break;case"together":eh(r,!1,null,null,void 0,l);break;default:r.memoizedState=null}return r.child}function Xr(t,r,i){if(t!==null&&(r.dependencies=t.dependencies),Fa|=r.lanes,(i&r.childLanes)===0)if(t!==null){if(Fo(t,r,i,!1),(i&r.childLanes)===0)return null}else return null;if(t!==null&&r.child!==t.child)throw Error(s(153));if(r.child!==null){for(t=r.child,i=Wr(t,t.pendingProps),r.child=i,i.return=r;t.sibling!==null;)t=t.sibling,i=i.sibling=Wr(t,t.pendingProps),i.return=r;i.sibling=null}return r.child}function th(t,r){return(t.lanes&r)===0?(t=t.dependencies,!!(t!==null&&qc(t))):!0}function j5(t,r,i){switch(r.tag){case 3:wo(r,r.stateNode.containerInfo),Ma(r,Dt,t.memoizedState.cache),Mi();break;case 27:case 5:jr(r);break;case 4:wo(r,r.stateNode.containerInfo);break;case 10:Ma(r,r.type,r.memoizedProps.value);break;case 31:if(r.memoizedState!==null)return r.flags|=128,Ep(r),null;break;case 13:var l=r.memoizedState;if(l!==null)return l.dehydrated===null?(i&r.child.childLanes)===0?(Da(r),t=Xr(t,r,i),t===null?null:t.sibling):Gb(t,r,i):(Da(r),r.flags|=128,null);Da(r);break;case 19:var p=(t.flags&128)!=0;if(l=(i&r.childLanes)!==0,l||(l=(Fo(t,r,i,!1),(i&r.childLanes)!==0)),p){if(l)return Xb(t,r,i);r.flags|=128}if(p=r.memoizedState,p!==null&&(p.rendering=null,p.tail=null,p.lastEffect=null),Le(Ot,Ot.current),l)break;return null;case 22:return r.lanes=0,Hb(t,r,i,r.pendingProps);case 24:Ma(r,Dt,t.memoizedState.cache)}return Xr(t,r,i)}function Yb(t,r,i){if(t!==null)if(t.memoizedProps!==r.pendingProps)zt=!0;else{if(!th(t,i)&&!(r.flags&128))return zt=!1,j5(t,r,i);zt=!!(t.flags&131072)}else zt=!1,Ge&&r.flags&1048576&&P1(r,Ks,r.index);switch(r.lanes=0,r.tag){case 16:e:{var l=r.pendingProps;if(t=zi(r.elementType),r.type=t,typeof t=="function")op(t)?(l=$i(t,l),r.tag=1,r=Kb(null,r,t,l,i)):(r.tag=0,r=Qp(null,r,t,l,i));else{if(t!=null){var p=t.$$typeof;if(p===ce){r.tag=11,r=Fb(null,r,t,l,i);break e}else if(p===$){r.tag=14,r=Bb(null,r,t,l,i);break e}}throw r=le(t)||t,Error(s(306,r,""))}}return r;case 0:return Qp(t,r,r.type,r.pendingProps,i);case 1:return l=r.type,p=$i(l,r.pendingProps),Kb(t,r,l,p,i);case 3:e:{if(wo(r,r.stateNode.containerInfo),t===null)throw Error(s(387));l=r.pendingProps;var g=r.memoizedState;p=g.element,_p(t,r),tl(r,l,null,i);var C=r.memoizedState;if(l=C.cache,Ma(r,Dt,l),l!==g.cache&&mp(r,[Dt],i,!0),el(),l=C.element,g.isDehydrated)if(g={element:l,isDehydrated:!1,cache:C.cache},r.updateQueue.baseState=g,r.memoizedState=g,r.flags&256){r=Qb(t,r,l,i);break e}else if(l!==p){p=Gn(Error(s(424)),r),Qs(p),r=Qb(t,r,l,i);break e}else for((t=r.stateNode.containerInfo,t.nodeType)===9?t=t.body:t=t.nodeName==="HTML"?t.ownerDocument.body:t,vt=er(t.firstChild),Zt=r,Ge=!0,Ra=null,Yn=!0,i=U1(r,null,l,i),r.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling;else{if(Mi(),l===p){r=Xr(t,r,i);break e}tn(t,r,l,i)}r=r.child}return r;case 26:return au(t,r),t===null?(i=uw(r.type,null,r.pendingProps,null))?r.memoizedState=i:Ge||(i=r.type,t=r.pendingProps,l=_u(Pt.current).createElement(i),l[Bt]=r,l[Yt]=t,nn(l,i,t),Lt(l),r.stateNode=l):r.memoizedState=uw(r.type,t.memoizedProps,r.pendingProps,t.memoizedState),null;case 27:return jr(r),t===null&&Ge&&(l=r.stateNode=sw(r.type,r.pendingProps,Pt.current),Zt=r,Yn=!0,p=vt,Wa(r.type)?(Ph=p,vt=er(l.firstChild)):vt=p),tn(t,r,r.pendingProps.children,i),au(t,r),t===null&&(r.flags|=4194304),r.child;case 5:return t===null&&Ge&&((p=l=vt)&&(l=d6(l,r.type,r.pendingProps,Yn),l===null?p=!1:(r.stateNode=l,Zt=r,vt=er(l.firstChild),Yn=!1,p=!0)),p||Pa(r)),jr(r),p=r.type,g=r.pendingProps,C=t===null?null:t.memoizedProps,l=g.children,Ih(p,g)?l=null:C!==null&&Ih(p,C)&&(r.flags|=32),r.memoizedState!==null&&(p=Ip(t,r,S5,null,null,i),_l._currentValue=p),au(t,r),tn(t,r,l,i),r.child;case 6:return t===null&&Ge&&((t=i=vt)&&(i=f6(i,r.pendingProps,Yn),i===null?t=!1:(r.stateNode=i,Zt=r,vt=null,t=!0)),t||Pa(r)),null;case 13:return Gb(t,r,i);case 4:return wo(r,r.stateNode.containerInfo),l=r.pendingProps,t===null?r.child=Fi(r,null,l,i):tn(t,r,l,i),r.child;case 11:return Fb(t,r,r.type,r.pendingProps,i);case 7:return tn(t,r,r.pendingProps,i),r.child;case 8:return tn(t,r,r.pendingProps.children,i),r.child;case 12:return tn(t,r,r.pendingProps.children,i),r.child;case 10:return l=r.pendingProps,Ma(r,r.type,l.value),tn(t,r,l.children,i),r.child;case 9:return p=r.type._context,l=r.pendingProps.children,Di(r),p=en(p),l=l(p),r.flags|=1,tn(t,r,l,i),r.child;case 14:return Bb(t,r,r.type,r.pendingProps,i);case 15:return Vb(t,r,r.type,r.pendingProps,i);case 19:return Xb(t,r,i);case 31:return D5(t,r,i);case 22:return Hb(t,r,i,r.pendingProps);case 24:return Di(r),l=en(Dt),t===null?(p=vp(),p===null&&(p=ft,g=gp(),p.pooledCache=g,g.refCount++,g!==null&&(p.pooledCacheLanes|=i),p=g),r.memoizedState={parent:l,cache:p},wp(r),Ma(r,Dt,p)):((t.lanes&i)!==0&&(_p(t,r),tl(r,null,null,i),el()),p=t.memoizedState,g=r.memoizedState,p.parent===l?(l=g.cache,Ma(r,Dt,l),l!==p.cache&&mp(r,[Dt],i,!0)):(p={parent:l,cache:l},r.memoizedState=p,r.lanes===0&&(r.memoizedState=r.updateQueue.baseState=p),Ma(r,Dt,l))),tn(t,r,r.pendingProps.children,i),r.child;case 29:throw r.pendingProps}throw Error(s(156,r.tag))}function Yr(t){t.flags|=4}function nh(t,r,i,l,p){if((r=(t.mode&32)!=0)&&(r=!1),r){if(t.flags|=16777216,(p&335544128)===p)if(t.stateNode.complete)t.flags|=8192;else if(S2())t.flags|=8192;else throw qi=Hc,bp}else t.flags&=-16777217}function Zb(t,r){if(r.type!=="stylesheet"||r.state.loading&4)t.flags&=-16777217;else if(t.flags|=16777216,!mw(r))if(S2())t.flags|=8192;else throw qi=Hc,bp}function ou(t,r){r!==null&&(t.flags|=4),t.flags&16384&&(r=t.tag===22?536870912:yc(),t.lanes|=r,Yo|=r)}function sl(t,r){if(!Ge)switch(t.tailMode){case"hidden":r=t.tail;for(var i=null;r!==null;)r.alternate!==null&&(i=r),r=r.sibling;i===null?t.tail=null:i.sibling=null;break;case"collapsed":i=t.tail;for(var l=null;i!==null;)i.alternate!==null&&(l=i),i=i.sibling;l===null?r||t.tail===null?t.tail=null:t.tail.sibling=null:l.sibling=null}}function bt(t){var r=t.alternate!==null&&t.alternate.child===t.child,i=0,l=0;if(r)for(var p=t.child;p!==null;)i|=p.lanes|p.childLanes,l|=p.subtreeFlags&65011712,l|=p.flags&65011712,p.return=t,p=p.sibling;else for(p=t.child;p!==null;)i|=p.lanes|p.childLanes,l|=p.subtreeFlags,l|=p.flags,p.return=t,p=p.sibling;return t.subtreeFlags|=l,t.childLanes=i,r}function z5(t,r,i){var l=r.pendingProps;switch(up(r),r.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return bt(r),null;case 1:return bt(r),null;case 3:return i=r.stateNode,l=null,t!==null&&(l=t.memoizedState.cache),r.memoizedState.cache!==l&&(r.flags|=2048),Qr(Dt),On(),i.pendingContext&&(i.pendingContext=(i.context=i.pendingContext,null)),(t===null||t.child===null)&&(qo(r)?Yr(r):t===null||t.memoizedState.isDehydrated&&!(r.flags&256)||(r.flags|=1024,fp())),bt(r),null;case 26:var p=r.type,g=r.memoizedState;return t===null?(Yr(r),g===null?(bt(r),nh(r,p,null,l,i)):(bt(r),Zb(r,g))):g?g===t.memoizedState?(bt(r),r.flags&=-16777217):(Yr(r),bt(r),Zb(r,g)):(t=t.memoizedProps,t!==l&&Yr(r),bt(r),nh(r,p,t,l,i)),null;case 27:if(gi(r),i=Pt.current,p=r.type,t!==null&&r.stateNode!=null)t.memoizedProps!==l&&Yr(r);else{if(!l){if(r.stateNode===null)throw Error(s(166));return bt(r),null}t=De.current,qo(r)?N1(r,t):(t=sw(p,l,i),r.stateNode=t,Yr(r))}return bt(r),null;case 5:if(gi(r),p=r.type,t!==null&&r.stateNode!=null)t.memoizedProps!==l&&Yr(r);else{if(!l){if(r.stateNode===null)throw Error(s(166));return bt(r),null}if(g=De.current,qo(r))N1(r,g);else{var C=_u(Pt.current);switch(g){case 1:g=C.createElementNS("http://www.w3.org/2000/svg",p);break;case 2:g=C.createElementNS("http://www.w3.org/1998/Math/MathML",p);break;default:switch(p){case"svg":g=C.createElementNS("http://www.w3.org/2000/svg",p);break;case"math":g=C.createElementNS("http://www.w3.org/1998/Math/MathML",p);break;case"script":g=C.createElement("div"),g.innerHTML="<script><\/script>",g=g.removeChild(g.firstChild);break;case"select":g=typeof l.is=="string"?C.createElement("select",{is:l.is}):C.createElement("select"),l.multiple?g.multiple=!0:l.size&&(g.size=l.size);break;default:g=typeof l.is=="string"?C.createElement(p,{is:l.is}):C.createElement(p)}}g[Bt]=r,g[Yt]=l;e:for(C=r.child;C!==null;){if(C.tag===5||C.tag===6)g.appendChild(C.stateNode);else if(C.tag!==4&&C.tag!==27&&C.child!==null){C.child.return=C,C=C.child;continue}if(C===r)break e;for(;C.sibling===null;){if(C.return===null||C.return===r)break e;C=C.return}C.sibling.return=C.return,C=C.sibling}r.stateNode=g;e:switch(nn(g,p,l),p){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&Yr(r)}}return bt(r),nh(r,r.type,t===null?null:t.memoizedProps,r.pendingProps,i),null;case 6:if(t&&r.stateNode!=null)t.memoizedProps!==l&&Yr(r);else{if(typeof l!="string"&&r.stateNode===null)throw Error(s(166));if(t=Pt.current,qo(r)){if(t=r.stateNode,i=r.memoizedProps,l=null,p=Zt,p!==null)switch(p.tag){case 27:case 5:l=p.memoizedProps}t[Bt]=r,t=!!(t.nodeValue===i||l!==null&&l.suppressHydrationWarning===!0||J2(t.nodeValue,i)),t||Pa(r,!0)}else t=_u(t).createTextNode(l),t[Bt]=r,r.stateNode=t}return bt(r),null;case 31:if(i=r.memoizedState,t===null||t.memoizedState!==null){if(l=qo(r),i!==null){if(t===null){if(!l)throw Error(s(318));if(t=r.memoizedState,t=t===null?null:t.dehydrated,!t)throw Error(s(557));t[Bt]=r}else Mi(),!(r.flags&128)&&(r.memoizedState=null),r.flags|=4;bt(r),t=!1}else i=fp(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=i),t=!0;if(!t)return r.flags&256?(jn(r),r):(jn(r),null);if(r.flags&128)throw Error(s(558))}return bt(r),null;case 13:if(l=r.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(p=qo(r),l!==null&&l.dehydrated!==null){if(t===null){if(!p)throw Error(s(318));if(p=r.memoizedState,p=p===null?null:p.dehydrated,!p)throw Error(s(317));p[Bt]=r}else Mi(),!(r.flags&128)&&(r.memoizedState=null),r.flags|=4;bt(r),p=!1}else p=fp(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=p),p=!0;if(!p)return r.flags&256?(jn(r),r):(jn(r),null)}return jn(r),r.flags&128?(r.lanes=i,r):(i=l!==null,t=t!==null&&t.memoizedState!==null,i&&(l=r.child,p=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(p=l.alternate.memoizedState.cachePool.pool),g=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(g=l.memoizedState.cachePool.pool),g!==p&&(l.flags|=2048)),i!==t&&i&&(r.child.flags|=8192),ou(r,r.updateQueue),bt(r),null);case 4:return On(),t===null&&U2(r.stateNode.containerInfo),bt(r),null;case 10:return Qr(r.type),bt(r),null;case 19:if(Ne(Ot),l=r.memoizedState,l===null)return bt(r),null;if(p=(r.flags&128)!=0,g=l.rendering,g===null)if(p)sl(l,!1);else{if(St!==0||t!==null&&t.flags&128)for(t=r.child;t!==null;){if(g=Kc(t),g!==null){for(r.flags|=128,sl(l,!1),t=g.updateQueue,r.updateQueue=t,ou(r,t),r.subtreeFlags=0,t=i,i=r.child;i!==null;)O1(i,t),i=i.sibling;return Le(Ot,Ot.current&1|2),Ge&&Ur(r,l.treeForkCount),r.child}t=t.sibling}l.tail!==null&&Jt()>du&&(r.flags|=128,p=!0,sl(l,!1),r.lanes=4194304)}else{if(!p)if(t=Kc(g),t!==null){if(r.flags|=128,p=!0,t=t.updateQueue,r.updateQueue=t,ou(r,t),sl(l,!0),l.tail===null&&l.tailMode==="hidden"&&!g.alternate&&!Ge)return bt(r),null}else 2*Jt()-l.renderingStartTime>du&&i!==536870912&&(r.flags|=128,p=!0,sl(l,!1),r.lanes=4194304);l.isBackwards?(g.sibling=r.child,r.child=g):(t=l.last,t===null?r.child=g:t.sibling=g,l.last=g)}return l.tail===null?(bt(r),null):(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=Jt(),t.sibling=null,i=Ot.current,Le(Ot,p?i&1|2:i&1),Ge&&Ur(r,l.treeForkCount),t);case 22:case 23:return jn(r),Sp(),l=r.memoizedState!==null,t===null?l&&(r.flags|=8192):t.memoizedState!==null!==l&&(r.flags|=8192),l?i&536870912&&!(r.flags&128)&&(bt(r),r.subtreeFlags&6&&(r.flags|=8192)):bt(r),i=r.updateQueue,i!==null&&ou(r,i.retryQueue),i=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),l=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(l=r.memoizedState.cachePool.pool),l!==i&&(r.flags|=2048),t!==null&&Ne(ji),null;case 24:return i=null,t!==null&&(i=t.memoizedState.cache),r.memoizedState.cache!==i&&(r.flags|=2048),Qr(Dt),bt(r),null;case 25:return null;case 30:return null}throw Error(s(156,r.tag))}function q5(t,r){switch(up(r),r.tag){case 1:return t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 3:return Qr(Dt),On(),t=r.flags,t&65536&&!(t&128)?(r.flags=t&-65537|128,r):null;case 26:case 27:case 5:return gi(r),null;case 31:if(r.memoizedState!==null){if(jn(r),r.alternate===null)throw Error(s(340));Mi()}return t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 13:if(jn(r),t=r.memoizedState,t!==null&&t.dehydrated!==null){if(r.alternate===null)throw Error(s(340));Mi()}return t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 19:return Ne(Ot),null;case 4:return On(),null;case 10:return Qr(r.type),null;case 22:case 23:return jn(r),Sp(),t!==null&&Ne(ji),t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 24:return Qr(Dt),null;case 25:return null;default:return null}}function e2(t,r){switch(up(r),r.tag){case 3:Qr(Dt),On();break;case 26:case 27:case 5:gi(r);break;case 4:On();break;case 31:r.memoizedState!==null&&jn(r);break;case 13:jn(r);break;case 19:Ne(Ot);break;case 10:Qr(r.type);break;case 22:case 23:jn(r),Sp(),t!==null&&Ne(ji);break;case 24:Qr(Dt)}}function ll(t,r){try{var i=r.updateQueue,l=i===null?null:i.lastEffect;if(l!==null){var p=l.next;i=p;do{if((i.tag&t)===t){l=void 0;var g=i.create,C=i.inst;l=g(),C.destroy=l}i=i.next}while(i!==p)}}catch(L){it(r,r.return,L)}}function za(t,r,i){try{var l=r.updateQueue,p=l===null?null:l.lastEffect;if(p!==null){var g=p.next;l=g;do{if((l.tag&t)===t){var C=l.inst,L=C.destroy;if(L!==void 0){C.destroy=void 0,p=r;var F=i,J=L;try{J()}catch(se){it(p,F,se)}}}l=l.next}while(l!==g)}}catch(se){it(r,r.return,se)}}function t2(t){var r=t.updateQueue;if(r!==null){var i=t.stateNode;try{Q1(r,i)}catch(l){it(t,t.return,l)}}}function n2(t,r,i){i.props=$i(t.type,t.memoizedProps),i.state=t.memoizedState;try{i.componentWillUnmount()}catch(l){it(t,r,l)}}function cl(t,r){try{var i=t.ref;if(i!==null){switch(t.tag){case 26:case 27:case 5:var l=t.stateNode;break;case 30:l=t.stateNode;break;default:l=t.stateNode}typeof i=="function"?t.refCleanup=i(l):i.current=l}}catch(p){it(t,r,p)}}function Ar(t,r){var i=t.ref,l=t.refCleanup;if(i!==null)if(typeof l=="function")try{l()}catch(p){it(t,r,p)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(p){it(t,r,p)}else i.current=null}function r2(t){var r=t.type,i=t.memoizedProps,l=t.stateNode;try{e:switch(r){case"button":case"input":case"select":case"textarea":i.autoFocus&&l.focus();break e;case"img":i.src?l.src=i.src:i.srcSet&&(l.srcset=i.srcSet)}}catch(p){it(t,t.return,p)}}function rh(t,r,i){try{var l=t.stateNode;i6(l,t.type,i,r),l[Yt]=r}catch(p){it(t,t.return,p)}}function a2(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Wa(t.type)||t.tag===4}function ah(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||a2(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&Wa(t.type)||t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function ih(t,r,i){var l=t.tag;if(l===5||l===6)t=t.stateNode,r?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(t,r):(r=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,r.appendChild(t),i=i._reactRootContainer,i!=null||r.onclick!==null||(r.onclick=Kn));else if(l!==4&&(l===27&&Wa(t.type)&&(i=t.stateNode,r=null),t=t.child,t!==null))for(ih(t,r,i),t=t.sibling;t!==null;)ih(t,r,i),t=t.sibling}function su(t,r,i){var l=t.tag;if(l===5||l===6)t=t.stateNode,r?i.insertBefore(t,r):i.appendChild(t);else if(l!==4&&(l===27&&Wa(t.type)&&(i=t.stateNode),t=t.child,t!==null))for(su(t,r,i),t=t.sibling;t!==null;)su(t,r,i),t=t.sibling}function i2(t){var r=t.stateNode,i=t.memoizedProps;try{for(var l=t.type,p=r.attributes;p.length;)r.removeAttributeNode(p[0]);nn(r,l,i),r[Bt]=t,r[Yt]=i}catch(g){it(t,t.return,g)}}var Zr=!1,qt=!1,oh=!1,o2=typeof WeakSet=="function"?WeakSet:Set,Gt=null;function F5(t,r){if(t=t.containerInfo,Eh=Iu,t=_1(t),Zf(t)){if("selectionStart"in t)var i={start:t.selectionStart,end:t.selectionEnd};else e:{i=(i=t.ownerDocument)&&i.defaultView||window;var l=i.getSelection&&i.getSelection();if(l&&l.rangeCount!==0){i=l.anchorNode;var p=l.anchorOffset,g=l.focusNode;l=l.focusOffset;try{i.nodeType,g.nodeType}catch{i=null;break e}var C=0,L=-1,F=-1,J=0,se=0,fe=t,Z=null;t:for(;;){for(var ae;fe!==i||p!==0&&fe.nodeType!==3||(L=C+p),fe!==g||l!==0&&fe.nodeType!==3||(F=C+l),fe.nodeType===3&&(C+=fe.nodeValue.length),(ae=fe.firstChild)!==null;)Z=fe,fe=ae;for(;;){if(fe===t)break t;if(Z===i&&++J===p&&(L=C),Z===g&&++se===l&&(F=C),(ae=fe.nextSibling)!==null)break;fe=Z,Z=fe.parentNode}fe=ae}i=L===-1||F===-1?null:{start:L,end:F}}else i=null}i||(i={start:0,end:0})}else i=null;for(Th={focusedElem:t,selectionRange:i},Iu=!1,Gt=r;Gt!==null;)if(r=Gt,t=r.child,r.subtreeFlags&1028&&t!==null)t.return=r,Gt=t;else for(;Gt!==null;){switch(r=Gt,g=r.alternate,t=r.flags,r.tag){case 0:if(t&4&&(t=r.updateQueue,t=t===null?null:t.events,t!==null))for(i=0;i<t.length;i++)p=t[i],p.ref.impl=p.nextImpl;break;case 11:case 15:break;case 1:if(t&1024&&g!==null){t=void 0,i=r,p=g.memoizedProps,g=g.memoizedState,l=i.stateNode;try{var Ce=$i(i.type,p);t=l.getSnapshotBeforeUpdate(Ce,g),l.__reactInternalSnapshotBeforeUpdate=t}catch(Ae){it(i,i.return,Ae)}}break;case 3:if(t&1024){if(t=r.stateNode.containerInfo,i=t.nodeType,i===9)Oh(t);else if(i===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Oh(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(t&1024)throw Error(s(163))}if(t=r.sibling,t!==null){t.return=r.return,Gt=t;break}Gt=r.return}}function s2(t,r,i){var l=i.flags;switch(i.tag){case 0:case 11:case 15:ta(t,i),l&4&&ll(5,i);break;case 1:if(ta(t,i),l&4)if(t=i.stateNode,r===null)try{t.componentDidMount()}catch(C){it(i,i.return,C)}else{var p=$i(i.type,r.memoizedProps);r=r.memoizedState;try{t.componentDidUpdate(p,r,t.__reactInternalSnapshotBeforeUpdate)}catch(C){it(i,i.return,C)}}l&64&&t2(i),l&512&&cl(i,i.return);break;case 3:if(ta(t,i),l&64&&(t=i.updateQueue,t!==null)){if(r=null,i.child!==null)switch(i.child.tag){case 27:case 5:r=i.child.stateNode;break;case 1:r=i.child.stateNode}try{Q1(t,r)}catch(C){it(i,i.return,C)}}break;case 27:r===null&&l&4&&i2(i);case 26:case 5:ta(t,i),r===null&&l&4&&r2(i),l&512&&cl(i,i.return);break;case 12:ta(t,i);break;case 31:ta(t,i),l&4&&u2(t,i);break;case 13:ta(t,i),l&4&&d2(t,i),l&64&&(t=i.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(i=G5.bind(null,i),p6(t,i))));break;case 22:if(l=i.memoizedState!==null||Zr,!l){r=r!==null&&r.memoizedState!==null||qt,p=Zr;var g=qt;Zr=l,(qt=r)&&!g?na(t,i,(i.subtreeFlags&8772)!=0):ta(t,i),Zr=p,qt=g}break;case 30:break;default:ta(t,i)}}function l2(t){var r=t.alternate;r!==null&&(t.alternate=null,l2(r)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(r=t.stateNode,r!==null&&Eo(r)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var xt=null,_n=!1;function ea(t,r,i){for(i=i.child;i!==null;)c2(t,r,i),i=i.sibling}function c2(t,r,i){if(ln&&typeof ln.onCommitFiberUnmount=="function")try{ln.onCommitFiberUnmount(yi,i)}catch{}switch(i.tag){case 26:qt||Ar(i,r),ea(t,r,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:qt||Ar(i,r);var l=xt,p=_n;Wa(i.type)&&(xt=i.stateNode,_n=!1),ea(t,r,i),vl(i.stateNode),xt=l,_n=p;break;case 5:qt||Ar(i,r);case 6:if(l=xt,p=_n,xt=null,ea(t,r,i),xt=l,_n=p,xt!==null)if(_n)try{(xt.nodeType===9?xt.body:xt.nodeName==="HTML"?xt.ownerDocument.body:xt).removeChild(i.stateNode)}catch(g){it(i,r,g)}else try{xt.removeChild(i.stateNode)}catch(g){it(i,r,g)}break;case 18:xt!==null&&(_n?(t=xt,nw(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,i.stateNode),os(t)):nw(xt,i.stateNode));break;case 4:l=xt,p=_n,xt=i.stateNode.containerInfo,_n=!0,ea(t,r,i),xt=l,_n=p;break;case 0:case 11:case 14:case 15:za(2,i,r),qt||za(4,i,r),ea(t,r,i);break;case 1:qt||(Ar(i,r),l=i.stateNode,typeof l.componentWillUnmount=="function"&&n2(i,r,l)),ea(t,r,i);break;case 21:ea(t,r,i);break;case 22:qt=(l=qt)||i.memoizedState!==null,ea(t,r,i),qt=l;break;default:ea(t,r,i)}}function u2(t,r){if(r.memoizedState===null&&(t=r.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{os(t)}catch(i){it(r,r.return,i)}}}function d2(t,r){if(r.memoizedState===null&&(t=r.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{os(t)}catch(i){it(r,r.return,i)}}function B5(t){switch(t.tag){case 31:case 13:case 19:var r=t.stateNode;return r===null&&(r=t.stateNode=new o2),r;case 22:return t=t.stateNode,r=t._retryCache,r===null&&(r=t._retryCache=new o2),r;default:throw Error(s(435,t.tag))}}function lu(t,r){var i=B5(t);r.forEach(function(l){if(!i.has(l)){i.add(l);var p=J5.bind(null,t,l);l.then(p,p)}})}function xn(t,r){var i=r.deletions;if(i!==null)for(var l=0;l<i.length;l++){var p=i[l],g=t,C=r,L=C;e:for(;L!==null;){switch(L.tag){case 27:if(Wa(L.type)){xt=L.stateNode,_n=!1;break e}break;case 5:xt=L.stateNode,_n=!1;break e;case 3:case 4:xt=L.stateNode.containerInfo,_n=!0;break e}L=L.return}if(xt===null)throw Error(s(160));c2(g,C,p),xt=null,_n=!1,g=p.alternate,g!==null&&(g.return=null),p.return=null}if(r.subtreeFlags&13886)for(r=r.child;r!==null;)f2(r,t),r=r.sibling}var yr=null;function f2(t,r){var i=t.alternate,l=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:xn(r,t),kn(t),l&4&&(za(3,t,t.return),ll(3,t),za(5,t,t.return));break;case 1:xn(r,t),kn(t),l&512&&(qt||i===null||Ar(i,i.return)),l&64&&Zr&&(t=t.updateQueue,t!==null&&(l=t.callbacks,l!==null&&(i=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=i===null?l:i.concat(l))));break;case 26:var p=yr;if(xn(r,t),kn(t),l&512&&(qt||i===null||Ar(i,i.return)),l&4){var g=i===null?null:i.memoizedState;if(l=t.memoizedState,i===null)if(l===null)if(t.stateNode===null){e:{l=t.type,i=t.memoizedProps,p=p.ownerDocument||p;t:switch(l){case"title":g=p.getElementsByTagName("title")[0],(!g||g[wi]||g[Bt]||g.namespaceURI==="http://www.w3.org/2000/svg"||g.hasAttribute("itemprop"))&&(g=p.createElement(l),p.head.insertBefore(g,p.querySelector("head > title"))),nn(g,l,i),g[Bt]=t,Lt(g),l=g;break e;case"link":var C=pw("link","href",p).get(l+(i.href||""));if(C){for(var L=0;L<C.length;L++)if(g=C[L],g.getAttribute("href")===(i.href==null||i.href===""?null:i.href)&&g.getAttribute("rel")===(i.rel==null?null:i.rel)&&g.getAttribute("title")===(i.title==null?null:i.title)&&g.getAttribute("crossorigin")===(i.crossOrigin==null?null:i.crossOrigin)){C.splice(L,1);break t}}g=p.createElement(l),nn(g,l,i),p.head.appendChild(g);break;case"meta":if(C=pw("meta","content",p).get(l+(i.content||""))){for(L=0;L<C.length;L++)if(g=C[L],g.getAttribute("content")===(i.content==null?null:""+i.content)&&g.getAttribute("name")===(i.name==null?null:i.name)&&g.getAttribute("property")===(i.property==null?null:i.property)&&g.getAttribute("http-equiv")===(i.httpEquiv==null?null:i.httpEquiv)&&g.getAttribute("charset")===(i.charSet==null?null:i.charSet)){C.splice(L,1);break t}}g=p.createElement(l),nn(g,l,i),p.head.appendChild(g);break;default:throw Error(s(468,l))}g[Bt]=t,Lt(g),l=g}t.stateNode=l}else hw(p,t.type,t.stateNode);else t.stateNode=fw(p,l,t.memoizedProps);else g===l?l===null&&t.stateNode!==null&&rh(t,t.memoizedProps,i.memoizedProps):(g===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):g.count--,l===null?hw(p,t.type,t.stateNode):fw(p,l,t.memoizedProps))}break;case 27:xn(r,t),kn(t),l&512&&(qt||i===null||Ar(i,i.return)),i!==null&&l&4&&rh(t,t.memoizedProps,i.memoizedProps);break;case 5:if(xn(r,t),kn(t),l&512&&(qt||i===null||Ar(i,i.return)),t.flags&32){p=t.stateNode;try{Vr(p,"")}catch(Ce){it(t,t.return,Ce)}}l&4&&t.stateNode!=null&&(p=t.memoizedProps,rh(t,p,i===null?p:i.memoizedProps)),l&1024&&(oh=!0);break;case 6:if(xn(r,t),kn(t),l&4){if(t.stateNode===null)throw Error(s(162));l=t.memoizedProps,i=t.stateNode;try{i.nodeValue=l}catch(Ce){it(t,t.return,Ce)}}break;case 3:if(Cu=null,p=yr,yr=xu(r.containerInfo),xn(r,t),yr=p,kn(t),l&4&&i!==null&&i.memoizedState.isDehydrated)try{os(r.containerInfo)}catch(Ce){it(t,t.return,Ce)}oh&&(oh=!1,p2(t));break;case 4:l=yr,yr=xu(t.stateNode.containerInfo),xn(r,t),kn(t),yr=l;break;case 12:xn(r,t),kn(t);break;case 31:xn(r,t),kn(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,lu(t,l)));break;case 13:xn(r,t),kn(t),t.child.flags&8192&&t.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(uu=Jt()),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,lu(t,l)));break;case 22:p=t.memoizedState!==null;var F=i!==null&&i.memoizedState!==null,J=Zr,se=qt;if(Zr=J||p,qt=se||F,xn(r,t),qt=se,Zr=J,kn(t),l&8192)e:for(r=t.stateNode,r._visibility=p?r._visibility&-2:r._visibility|1,p&&(i===null||F||Zr||qt||Wi(t)),i=null,r=t;;){if(r.tag===5||r.tag===26){if(i===null){F=i=r;try{if(g=F.stateNode,p)C=g.style,typeof C.setProperty=="function"?C.setProperty("display","none","important"):C.display="none";else{L=F.stateNode;var fe=F.memoizedProps.style,Z=fe!=null&&fe.hasOwnProperty("display")?fe.display:null;L.style.display=Z==null||typeof Z=="boolean"?"":(""+Z).trim()}}catch(Ce){it(F,F.return,Ce)}}}else if(r.tag===6){if(i===null){F=r;try{F.stateNode.nodeValue=p?"":F.memoizedProps}catch(Ce){it(F,F.return,Ce)}}}else if(r.tag===18){if(i===null){F=r;try{var ae=F.stateNode;p?rw(ae,!0):rw(F.stateNode,!1)}catch(Ce){it(F,F.return,Ce)}}}else if((r.tag!==22&&r.tag!==23||r.memoizedState===null||r===t)&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break e;for(;r.sibling===null;){if(r.return===null||r.return===t)break e;i===r&&(i=null),r=r.return}i===r&&(i=null),r.sibling.return=r.return,r=r.sibling}l&4&&(l=t.updateQueue,l!==null&&(i=l.retryQueue,i!==null&&(l.retryQueue=null,lu(t,i))));break;case 19:xn(r,t),kn(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,lu(t,l)));break;case 30:break;case 21:break;default:xn(r,t),kn(t)}}function kn(t){var r=t.flags;if(r&2){try{for(var i,l=t.return;l!==null;){if(a2(l)){i=l;break}l=l.return}if(i==null)throw Error(s(160));switch(i.tag){case 27:var p=i.stateNode;su(t,ah(t),p);break;case 5:var g=i.stateNode;i.flags&32&&(Vr(g,""),i.flags&=-33),su(t,ah(t),g);break;case 3:case 4:var C=i.stateNode.containerInfo;ih(t,ah(t),C);break;default:throw Error(s(161))}}catch(L){it(t,t.return,L)}t.flags&=-3}r&4096&&(t.flags&=-4097)}function p2(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var r=t;p2(r),r.tag===5&&r.flags&1024&&r.stateNode.reset(),t=t.sibling}}function ta(t,r){if(r.subtreeFlags&8772)for(r=r.child;r!==null;)s2(t,r.alternate,r),r=r.sibling}function Wi(t){for(t=t.child;t!==null;){var r=t;switch(r.tag){case 0:case 11:case 14:case 15:za(4,r,r.return),Wi(r);break;case 1:Ar(r,r.return);var i=r.stateNode;typeof i.componentWillUnmount=="function"&&n2(r,r.return,i),Wi(r);break;case 27:vl(r.stateNode);case 26:case 5:Ar(r,r.return),Wi(r);break;case 22:r.memoizedState===null&&Wi(r);break;case 30:Wi(r);break;default:Wi(r)}t=t.sibling}}function na(t,r,i){for(i&&(i=(r.subtreeFlags&8772)!=0),r=r.child;r!==null;){var l=r.alternate,p=t,g=r,C=g.flags;switch(g.tag){case 0:case 11:case 15:na(p,g,i),ll(4,g);break;case 1:if(na(p,g,i),l=g,p=l.stateNode,typeof p.componentDidMount=="function")try{p.componentDidMount()}catch(J){it(l,l.return,J)}if(l=g,p=l.updateQueue,p!==null){var L=l.stateNode;try{var F=p.shared.hiddenCallbacks;if(F!==null)for(p.shared.hiddenCallbacks=null,p=0;p<F.length;p++)K1(F[p],L)}catch(J){it(l,l.return,J)}}i&&C&64&&t2(g),cl(g,g.return);break;case 27:i2(g);case 26:case 5:na(p,g,i),i&&l===null&&C&4&&r2(g),cl(g,g.return);break;case 12:na(p,g,i);break;case 31:na(p,g,i),i&&C&4&&u2(p,g);break;case 13:na(p,g,i),i&&C&4&&d2(p,g);break;case 22:g.memoizedState===null&&na(p,g,i),cl(g,g.return);break;case 30:break;default:na(p,g,i)}r=r.sibling}}function sh(t,r){var i=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),t=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(t=r.memoizedState.cachePool.pool),t!==i&&(t!=null&&t.refCount++,i!=null&&Gs(i))}function lh(t,r){t=null,r.alternate!==null&&(t=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==t&&(r.refCount++,t!=null&&Gs(t))}function vr(t,r,i,l){if(r.subtreeFlags&10256)for(r=r.child;r!==null;)h2(t,r,i,l),r=r.sibling}function h2(t,r,i,l){var p=r.flags;switch(r.tag){case 0:case 11:case 15:vr(t,r,i,l),p&2048&&ll(9,r);break;case 1:vr(t,r,i,l);break;case 3:vr(t,r,i,l),p&2048&&(t=null,r.alternate!==null&&(t=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==t&&(r.refCount++,t!=null&&Gs(t)));break;case 12:if(p&2048){vr(t,r,i,l),t=r.stateNode;try{var g=r.memoizedProps,C=g.id,L=g.onPostCommit;typeof L=="function"&&L(C,r.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(F){it(r,r.return,F)}}else vr(t,r,i,l);break;case 31:vr(t,r,i,l);break;case 13:vr(t,r,i,l);break;case 23:break;case 22:g=r.stateNode,C=r.alternate,r.memoizedState===null?g._visibility&2?vr(t,r,i,l):(g._visibility|=2,Go(t,r,i,l,(r.subtreeFlags&10256)!=0||!1)):g._visibility&2?vr(t,r,i,l):ul(t,r),p&2048&&sh(C,r);break;case 24:vr(t,r,i,l),p&2048&&lh(r.alternate,r);break;default:vr(t,r,i,l)}}function Go(t,r,i,l,p){for(p&&(p=(r.subtreeFlags&10256)!=0||!1),r=r.child;r!==null;){var g=t,C=r,L=i,F=l,J=C.flags;switch(C.tag){case 0:case 11:case 15:Go(g,C,L,F,p),ll(8,C);break;case 23:break;case 22:var se=C.stateNode;C.memoizedState===null?(se._visibility|=2,Go(g,C,L,F,p)):se._visibility&2?Go(g,C,L,F,p):ul(g,C),p&&J&2048&&sh(C.alternate,C);break;case 24:Go(g,C,L,F,p),p&&J&2048&&lh(C.alternate,C);break;default:Go(g,C,L,F,p)}r=r.sibling}}function ul(t,r){if(r.subtreeFlags&10256)for(r=r.child;r!==null;){var i=t,l=r,p=l.flags;switch(l.tag){case 22:ul(i,l),p&2048&&sh(l.alternate,l);break;case 24:ul(i,l),p&2048&&lh(l.alternate,l);break;default:ul(i,l)}r=r.sibling}}var dl=8192;function Jo(t,r,i){if(t.subtreeFlags&dl)for(t=t.child;t!==null;)m2(t,r,i),t=t.sibling}function m2(t,r,i){switch(t.tag){case 26:Jo(t,r,i),t.flags&dl&&t.memoizedState!==null&&S6(i,yr,t.memoizedState,t.memoizedProps);break;case 5:Jo(t,r,i);break;case 3:case 4:var l=yr;yr=xu(t.stateNode.containerInfo),Jo(t,r,i),yr=l;break;case 22:t.memoizedState===null&&(l=t.alternate,l!==null&&l.memoizedState!==null?(l=dl,dl=16777216,Jo(t,r,i),dl=l):Jo(t,r,i));break;default:Jo(t,r,i)}}function g2(t){var r=t.alternate;if(r!==null&&(t=r.child,t!==null)){r.child=null;do r=t.sibling,t.sibling=null,t=r;while(t!==null)}}function fl(t){var r=t.deletions;if(t.flags&16){if(r!==null)for(var i=0;i<r.length;i++){var l=r[i];Gt=l,v2(l,t)}g2(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)y2(t),t=t.sibling}function y2(t){switch(t.tag){case 0:case 11:case 15:fl(t),t.flags&2048&&za(9,t,t.return);break;case 3:fl(t);break;case 12:fl(t);break;case 22:var r=t.stateNode;t.memoizedState!==null&&r._visibility&2&&(t.return===null||t.return.tag!==13)?(r._visibility&=-3,cu(t)):fl(t);break;default:fl(t)}}function cu(t){var r=t.deletions;if(t.flags&16){if(r!==null)for(var i=0;i<r.length;i++){var l=r[i];Gt=l,v2(l,t)}g2(t)}for(t=t.child;t!==null;){switch(r=t,r.tag){case 0:case 11:case 15:za(8,r,r.return),cu(r);break;case 22:i=r.stateNode,i._visibility&2&&(i._visibility&=-3,cu(r));break;default:cu(r)}t=t.sibling}}function v2(t,r){for(;Gt!==null;){var i=Gt;switch(i.tag){case 0:case 11:case 15:za(8,i,r);break;case 23:case 22:if(i.memoizedState!==null&&i.memoizedState.cachePool!==null){var l=i.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:Gs(i.memoizedState.cache)}if(l=i.child,l!==null)l.return=i,Gt=l;else e:for(i=t;Gt!==null;){l=Gt;var p=l.sibling,g=l.return;if(l2(l),l===i){Gt=null;break e}if(p!==null){p.return=g,Gt=p;break e}Gt=g}}}var V5={getCacheForType:function(t){var r=en(Dt),i=r.data.get(t);return i===void 0&&(i=t(),r.data.set(t,i)),i},cacheSignal:function(){return en(Dt).controller.signal}},H5=typeof WeakMap=="function"?WeakMap:Map,tt=0,ft=null,$e=null,Ue=0,at=0,zn=null,qa=!1,Xo=!1,ch=!1,ra=0,St=0,Fa=0,Ui=0,uh=0,qn=0,Yo=0,pl=null,Cn=null,dh=!1,uu=0,b2=0,du=1/0,fu=null,Ba=null,Ht=0,Va=null,Zo=null,aa=0,fh=0,ph=null,w2=null,hl=0,hh=null;function Zn(){return tt&2&&Ue!==0?Ue&-Ue:ee.T===null?bc():wh()}function _2(){if(qn===0)if(!(Ue&536870912)||Ge){var t=It;It<<=1,!(It&3932160)&&(It=262144),qn=t}else qn=536870912;return t=Dn.current,t!==null&&(t.flags|=32),qn}function Sn(t,r,i){(t===ft&&(at===2||at===9)||t.cancelPendingCommit!==null)&&(es(t,0),Ha(t,Ue,qn,!1)),bi(t,i),(!(tt&2)||t!==ft)&&(t===ft&&(!(tt&2)&&(Ui|=i),St===4&&Ha(t,Ue,qn,!1)),ia(t))}function x2(t,r,i){if(tt&6)throw Error(s(327));var l=!i&&(r&127)==0&&(r&t.expiredLanes)===0||ka(t,r),p=l?U5(t,r):gh(t,r,!0),g=l;do{if(p===0){Xo&&!l&&Ha(t,r,0,!1);break}else{if(i=t.current.alternate,g&&!$5(i)){p=gh(t,r,!1),g=!1;continue}if(p===2){if(g=r,t.errorRecoveryDisabledLanes&g)var C=0;else C=t.pendingLanes&-536870913,C=C===0?C&536870912?536870912:0:C;if(C!==0){r=C;e:{var L=t;p=pl;var F=L.current.memoizedState.isDehydrated;if(F&&(es(L,C).flags|=256),C=gh(L,C,!1),C!==2){if(ch&&!F){L.errorRecoveryDisabledLanes|=g,Ui|=g,p=4;break e}g=Cn,Cn=p,g!==null&&(Cn===null?Cn=g:Cn.push.apply(Cn,g))}p=C}if(g=!1,p!==2)continue}}if(p===1){es(t,0),Ha(t,r,0,!0);break}e:{switch(l=t,g=p,g){case 0:case 1:throw Error(s(345));case 4:if((r&4194048)!==r)break;case 6:Ha(l,r,qn,!qa);break e;case 2:Cn=null;break;case 3:case 5:break;default:throw Error(s(329))}if((r&62914560)===r&&(p=uu+300-Jt(),10<p)){if(Ha(l,r,qn,!qa),Co(l,0,!0)!==0)break e;aa=r,l.timeoutHandle=ew(k2.bind(null,l,i,Cn,fu,dh,r,qn,Ui,Yo,qa,g,"Throttled",-0,0),p);break e}k2(l,i,Cn,fu,dh,r,qn,Ui,Yo,qa,g,null,-0,0)}}break}while(!0);ia(t)}function k2(t,r,i,l,p,g,C,L,F,J,se,fe,Z,ae){if(t.timeoutHandle=-1,fe=r.subtreeFlags,fe&8192||(fe&16785408)==16785408){fe={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Kn},m2(r,g,fe);var Ce=(g&62914560)===g?uu-Jt():(g&4194048)===g?b2-Jt():0;if(Ce=E6(fe,Ce),Ce!==null){aa=g,t.cancelPendingCommit=Ce(A2.bind(null,t,r,g,i,l,p,C,L,F,se,fe,null,Z,ae)),Ha(t,g,C,!J);return}}A2(t,r,g,i,l,p,C,L,F)}function $5(t){for(var r=t;;){var i=r.tag;if((i===0||i===11||i===15)&&r.flags&16384&&(i=r.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var l=0;l<i.length;l++){var p=i[l],g=p.getSnapshot;p=p.value;try{if(!Mn(g(),p))return!1}catch{return!1}}if(i=r.child,r.subtreeFlags&16384&&i!==null)i.return=r,r=i;else{if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return!0;r=r.return}r.sibling.return=r.return,r=r.sibling}}return!0}function Ha(t,r,i,l){r&=~uh,r&=~Ui,t.suspendedLanes|=r,t.pingedLanes&=~r,l&&(t.warmLanes|=r),l=t.expirationTimes;for(var p=r;0<p;){var g=31-gt(p),C=1<<g;l[g]=-1,p&=~C}i!==0&&Fr(t,i,r)}function pu(){return tt&6?!0:(ml(0,!1),!1)}function mh(){if($e!==null){if(at===0)var t=$e.return;else t=$e,Kr=Ni=null,Ap(t),$o=null,Xs=0,t=$e;for(;t!==null;)e2(t.alternate,t),t=t.return;$e=null}}function es(t,r){var i=t.timeoutHandle;i!==-1&&(t.timeoutHandle=-1,l6(i)),i=t.cancelPendingCommit,i!==null&&(t.cancelPendingCommit=null,i()),aa=0,mh(),ft=t,$e=i=Wr(t.current,null),Ue=r,at=0,zn=null,qa=!1,Xo=ka(t,r),ch=!1,Yo=qn=uh=Ui=Fa=St=0,Cn=pl=null,dh=!1,r&8&&(r|=r&32);var l=t.entangledLanes;if(l!==0)for(t=t.entanglements,l&=r;0<l;){var p=31-gt(l),g=1<<p;r|=t[p],l&=~g}return ra=r,Mc(),i}function C2(t,r){ze=null,ee.H=il,r===Ho||r===Vc?(r=H1(),at=3):r===bp?(r=H1(),at=4):at=r===Kp?8:typeof r=="object"&&r&&typeof r.then=="function"?6:1,zn=r,$e===null&&(St=1,nu(t,Gn(r,t.current)))}function S2(){var t=Dn.current;return t===null?!0:(Ue&4194048)===Ue?gr===null:(Ue&62914560)===Ue||Ue&536870912?t===gr:!1}function E2(){var t=ee.H;return ee.H=il,t===null?il:t}function T2(){var t=ee.A;return ee.A=V5,t}function hu(){St=4,qa||(Ue&4194048)!==Ue&&Dn.current!==null||(Xo=!0),!(Fa&134217727)&&!(Ui&134217727)||ft===null||Ha(ft,Ue,qn,!1)}function gh(t,r,i){var l=tt;tt|=2;var p=E2(),g=T2();(ft!==t||Ue!==r)&&(fu=null,es(t,r)),r=!1;var C=St;e:do try{if(at!==0&&$e!==null){var L=$e,F=zn;switch(at){case 8:mh(),C=6;break e;case 3:case 2:case 9:case 6:Dn.current===null&&(r=!0);var J=at;if(at=0,zn=null,ts(t,L,F,J),i&&Xo){C=0;break e}break;default:J=at,at=0,zn=null,ts(t,L,F,J)}}W5(),C=St;break}catch(se){C2(t,se)}while(!0);return r&&t.shellSuspendCounter++,Kr=Ni=null,tt=l,ee.H=p,ee.A=g,$e===null&&(ft=null,Ue=0,Mc()),C}function W5(){for(;$e!==null;)I2($e)}function U5(t,r){var i=tt;tt|=2;var l=E2(),p=T2();ft!==t||Ue!==r?(fu=null,du=Jt()+500,es(t,r)):Xo=ka(t,r);e:do try{if(at!==0&&$e!==null){r=$e;var g=zn;t:switch(at){case 1:at=0,zn=null,ts(t,r,g,1);break;case 2:case 9:if(B1(g)){at=0,zn=null,L2(r);break}r=function(){at!==2&&at!==9||ft!==t||(at=7),ia(t)},g.then(r,r);break e;case 3:at=7;break e;case 4:at=5;break e;case 7:B1(g)?(at=0,zn=null,L2(r)):(at=0,zn=null,ts(t,r,g,7));break;case 5:var C=null;switch($e.tag){case 26:C=$e.memoizedState;case 5:case 27:var L=$e;if(C?mw(C):L.stateNode.complete){at=0,zn=null;var F=L.sibling;if(F!==null)$e=F;else{var J=L.return;J===null?$e=null:($e=J,mu(J))}break t}}at=0,zn=null,ts(t,r,g,5);break;case 6:at=0,zn=null,ts(t,r,g,6);break;case 8:mh(),St=6;break e;default:throw Error(s(462))}}K5();break}catch(se){C2(t,se)}while(!0);return Kr=Ni=null,ee.H=l,ee.A=p,tt=i,$e===null?(ft=null,Ue=0,Mc(),St):0}function K5(){for(;$e!==null&&!Vf();)I2($e)}function I2(t){var r=Yb(t.alternate,t,ra);t.memoizedProps=t.pendingProps,r===null?mu(t):$e=r}function L2(t){var r=t,i=r.alternate;switch(r.tag){case 15:case 0:r=Ub(i,r,r.pendingProps,r.type,void 0,Ue);break;case 11:r=Ub(i,r,r.pendingProps,r.type.render,r.ref,Ue);break;case 5:Ap(r);default:e2(i,r),r=$e=O1(r,ra),r=Yb(i,r,ra)}t.memoizedProps=t.pendingProps,r===null?mu(t):$e=r}function ts(t,r,i,l){Kr=Ni=null,Ap(r),$o=null,Xs=0;var p=r.return;try{if(N5(t,p,r,i,Ue)){St=1,nu(t,Gn(i,t.current)),$e=null;return}}catch(g){if(p!==null)throw $e=p,g;St=1,nu(t,Gn(i,t.current)),$e=null;return}r.flags&32768?(Ge||l===1?t=!0:Xo||Ue&536870912?t=!1:(qa=t=!0,(l===2||l===9||l===3||l===6)&&(l=Dn.current,l!==null&&l.tag===13&&(l.flags|=16384))),O2(r,t)):mu(r)}function mu(t){var r=t;do{if(r.flags&32768){O2(r,qa);return}t=r.return;var i=z5(r.alternate,r,ra);if(i!==null){$e=i;return}if(r=r.sibling,r!==null){$e=r;return}$e=r=t}while(r!==null);St===0&&(St=5)}function O2(t,r){do{var i=q5(t.alternate,t);if(i!==null){i.flags&=32767,$e=i;return}if(i=t.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!r&&(t=t.sibling,t!==null)){$e=t;return}$e=t=i}while(t!==null);St=6,$e=null}function A2(t,r,i,l,p,g,C,L,F){t.cancelPendingCommit=null;do gu();while(Ht!==0);if(tt&6)throw Error(s(327));if(r!==null){if(r===t.current)throw Error(s(177));if(g=r.lanes|r.childLanes,g|=ap,Uf(t,i,g,C,L,F),t===ft&&($e=ft=null,Ue=0),Zo=r,Va=t,aa=i,fh=g,ph=p,w2=l,r.subtreeFlags&10256||r.flags&10256?(t.callbackNode=null,t.callbackPriority=0,X5(Mt,function(){return D2(),null})):(t.callbackNode=null,t.callbackPriority=0),l=(r.flags&13878)!=0,r.subtreeFlags&13878||l){l=ee.T,ee.T=null,p=W.p,W.p=2,C=tt,tt|=4;try{F5(t,r,i)}finally{tt=C,W.p=p,ee.T=l}}Ht=1,R2(),P2(),M2()}}function R2(){if(Ht===1){Ht=0;var t=Va,r=Zo,i=(r.flags&13878)!=0;if(r.subtreeFlags&13878||i){i=ee.T,ee.T=null;var l=W.p;W.p=2;var p=tt;tt|=4;try{f2(r,t);var g=Th,C=_1(t.containerInfo),L=g.focusedElem,F=g.selectionRange;if(C!==L&&L&&L.ownerDocument&&w1(L.ownerDocument.documentElement,L)){if(F!==null&&Zf(L)){var J=F.start,se=F.end;if(se===void 0&&(se=J),"selectionStart"in L)L.selectionStart=J,L.selectionEnd=Math.min(se,L.value.length);else{var fe=L.ownerDocument||document,Z=fe&&fe.defaultView||window;if(Z.getSelection){var ae=Z.getSelection(),Ce=L.textContent.length,Ae=Math.min(F.start,Ce),ut=F.end===void 0?Ae:Math.min(F.end,Ce);!ae.extend&&Ae>ut&&(C=ut,ut=Ae,Ae=C);var U=b1(L,Ae),H=b1(L,ut);if(U&&H&&(ae.rangeCount!==1||ae.anchorNode!==U.node||ae.anchorOffset!==U.offset||ae.focusNode!==H.node||ae.focusOffset!==H.offset)){var G=fe.createRange();G.setStart(U.node,U.offset),ae.removeAllRanges(),Ae>ut?(ae.addRange(G),ae.extend(H.node,H.offset)):(G.setEnd(H.node,H.offset),ae.addRange(G))}}}}for(fe=[],ae=L;ae=ae.parentNode;)ae.nodeType===1&&fe.push({element:ae,left:ae.scrollLeft,top:ae.scrollTop});for(typeof L.focus=="function"&&L.focus(),L=0;L<fe.length;L++){var ue=fe[L];ue.element.scrollLeft=ue.left,ue.element.scrollTop=ue.top}}Iu=!!Eh,Th=Eh=null}finally{tt=p,W.p=l,ee.T=i}}t.current=r,Ht=2}}function P2(){if(Ht===2){Ht=0;var t=Va,r=Zo,i=(r.flags&8772)!=0;if(r.subtreeFlags&8772||i){i=ee.T,ee.T=null;var l=W.p;W.p=2;var p=tt;tt|=4;try{s2(t,r.alternate,r)}finally{tt=p,W.p=l,ee.T=i}}Ht=3}}function M2(){if(Ht===4||Ht===3){Ht=0,hc();var t=Va,r=Zo,i=aa,l=w2;r.subtreeFlags&10256||r.flags&10256?Ht=5:(Ht=0,Zo=Va=null,N2(t,t.pendingLanes));var p=t.pendingLanes;if(p===0&&(Ba=null),Rs(i),r=r.stateNode,ln&&typeof ln.onCommitFiberRoot=="function")try{ln.onCommitFiberRoot(yi,r,void 0,(r.current.flags&128)==128)}catch{}if(l!==null){r=ee.T,p=W.p,W.p=2,ee.T=null;try{for(var g=t.onRecoverableError,C=0;C<l.length;C++){var L=l[C];g(L.value,{componentStack:L.stack})}}finally{ee.T=r,W.p=p}}aa&3&&gu(),ia(t),p=t.pendingLanes,i&261930&&p&42?t===hh?hl++:(hl=0,hh=t):hl=0,ml(0,!1)}}function N2(t,r){(t.pooledCacheLanes&=r)===0&&(r=t.pooledCache,r!=null&&(t.pooledCache=null,Gs(r)))}function gu(){return R2(),P2(),M2(),D2()}function D2(){if(Ht!==5)return!1;var t=Va,r=fh;fh=0;var i=Rs(aa),l=ee.T,p=W.p;try{W.p=32>i?32:i,ee.T=null,i=ph,ph=null;var g=Va,C=aa;if(Ht=0,Zo=Va=null,aa=0,tt&6)throw Error(s(331));var L=tt;if(tt|=4,y2(g.current),h2(g,g.current,C,i),tt=L,ml(0,!1),ln&&typeof ln.onPostCommitFiberRoot=="function")try{ln.onPostCommitFiberRoot(yi,g)}catch{}return!0}finally{W.p=p,ee.T=l,N2(t,r)}}function j2(t,r,i){r=Gn(i,r),r=Up(t.stateNode,r,2),t=Vi(t,r,2),t!==null&&(bi(t,2),ia(t))}function it(t,r,i){if(t.tag===3)j2(t,t,i);else for(;r!==null;){if(r.tag===3){j2(r,t,i);break}else if(r.tag===1){var l=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Ba===null||!Ba.has(l))){t=Gn(i,t),i=zb(2),l=Vi(r,i,2),l!==null&&(qb(i,l,r,t),bi(l,2),ia(l));break}}r=r.return}}function yh(t,r,i){var l=t.pingCache;if(l===null){l=t.pingCache=new H5;var p=new Set;l.set(r,p)}else p=l.get(r),p===void 0&&(p=new Set,l.set(r,p));p.has(i)||(ch=!0,p.add(i),t=Q5.bind(null,t,r,i),r.then(t,t))}function Q5(t,r,i){var l=t.pingCache;l!==null&&l.delete(r),t.pingedLanes|=t.suspendedLanes&i,t.warmLanes&=~i,ft===t&&(Ue&i)===i&&(St===4||St===3&&(Ue&62914560)===Ue&&300>Jt()-uu?!(tt&2)&&es(t,0):uh|=i,Yo===Ue&&(Yo=0)),ia(t)}function z2(t,r){r===0&&(r=yc()),t=Ri(t,r),t!==null&&(bi(t,r),ia(t))}function G5(t){var r=t.memoizedState,i=0;r!==null&&(i=r.retryLane),z2(t,i)}function J5(t,r){var i=0;switch(t.tag){case 31:case 13:var l=t.stateNode,p=t.memoizedState;p!==null&&(i=p.retryLane);break;case 19:l=t.stateNode;break;case 22:l=t.stateNode._retryCache;break;default:throw Error(s(314))}l!==null&&l.delete(r),z2(t,i)}function X5(t,r){return dr(t,r)}var yu=null,ns=null,vh=!1,vu=!1,bh=!1,$a=0;function ia(t){t!==ns&&t.next===null&&(ns===null?yu=ns=t:ns=ns.next=t),vu=!0,vh||(vh=!0,Z5())}function ml(t,r){if(!bh&&vu){bh=!0;do for(var i=!1,l=yu;l!==null;){if(!r)if(t!==0){var p=l.pendingLanes;if(p===0)var g=0;else{var C=l.suspendedLanes,L=l.pingedLanes;g=(1<<31-gt(42|t)+1)-1,g&=p&~(C&~L),g=g&201326741?g&201326741|1:g?g|2:0}g!==0&&(i=!0,V2(l,g))}else g=Ue,g=Co(l,l===ft?g:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),!(g&3)||ka(l,g)||(i=!0,V2(l,g));l=l.next}while(i);bh=!1}}function Y5(){q2()}function q2(){vu=vh=!1;var t=0;$a!==0&&s6()&&(t=$a);for(var r=Jt(),i=null,l=yu;l!==null;){var p=l.next,g=F2(l,r);g===0?(l.next=null,i===null?yu=p:i.next=p,p===null&&(ns=i)):(i=l,(t!==0||g&3)&&(vu=!0)),l=p}Ht!==0&&Ht!==5||ml(t,!1),$a!==0&&($a=0)}function F2(t,r){for(var i=t.suspendedLanes,l=t.pingedLanes,p=t.expirationTimes,g=t.pendingLanes&-62914561;0<g;){var C=31-gt(g),L=1<<C,F=p[C];F===-1?((L&i)===0||(L&l)!==0)&&(p[C]=gc(L,r)):F<=r&&(t.expiredLanes|=L),g&=~L}if(r=ft,i=Ue,i=Co(t,t===r?i:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l=t.callbackNode,i===0||t===r&&(at===2||at===9)||t.cancelPendingCommit!==null)return l!==null&&l!==null&&bn(l),t.callbackNode=null,t.callbackPriority=0;if(!(i&3)||ka(t,i)){if(r=i&-i,r===t.callbackPriority)return r;switch(l!==null&&bn(l),Rs(i)){case 2:case 8:i=mc;break;case 32:i=Mt;break;case 268435456:i=kt;break;default:i=Mt}return l=B2.bind(null,t),i=dr(i,l),t.callbackPriority=r,t.callbackNode=i,r}return l!==null&&l!==null&&bn(l),t.callbackPriority=2,t.callbackNode=null,2}function B2(t,r){if(Ht!==0&&Ht!==5)return t.callbackNode=null,t.callbackPriority=0,null;var i=t.callbackNode;if(gu()&&t.callbackNode!==i)return null;var l=Ue;return l=Co(t,t===ft?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l===0?null:(x2(t,l,r),F2(t,Jt()),t.callbackNode!=null&&t.callbackNode===i?B2.bind(null,t):null)}function V2(t,r){if(gu())return null;x2(t,r,!0)}function Z5(){c6(function(){tt&6?dr(zr,Y5):q2()})}function wh(){if($a===0){var t=Bo;t===0&&(t=vi,vi<<=1,!(vi&261888)&&(vi=256)),$a=t}return $a}function H2(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Lo(""+t)}function $2(t,r){var i=r.ownerDocument.createElement("input");return i.name=r.name,i.value=r.value,t.id&&i.setAttribute("form",t.id),r.parentNode.insertBefore(i,r),t=new FormData(t),i.parentNode.removeChild(i),t}function e6(t,r,i,l,p){if(r==="submit"&&i&&i.stateNode===p){var g=H2((p[Yt]||null).action),C=l.submitter;C&&(r=(r=C[Yt]||null)?H2(r.formAction):C.getAttribute("formAction"),r!==null&&(g=r,C=null));var L=new u("action","action",null,l,p);t.push({event:L,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if($a!==0){var F=C?$2(p,C):new FormData(p);Fp(i,{pending:!0,data:F,method:p.method,action:g},null,F)}}else typeof g=="function"&&(L.preventDefault(),F=C?$2(p,C):new FormData(p),Fp(i,{pending:!0,data:F,method:p.method,action:g},g,F))},currentTarget:p}]})}}for(var _h=0;_h<rp.length;_h++){var xh=rp[_h];mr(xh.toLowerCase(),"on"+(xh[0].toUpperCase()+xh.slice(1)))}mr(C1,"onAnimationEnd"),mr(S1,"onAnimationIteration"),mr(E1,"onAnimationStart"),mr("dblclick","onDoubleClick"),mr("focusin","onFocus"),mr("focusout","onBlur"),mr(m5,"onTransitionRun"),mr(g5,"onTransitionStart"),mr(y5,"onTransitionCancel"),mr(T1,"onTransitionEnd"),Ta("onMouseEnter",["mouseout","mouseover"]),Ta("onMouseLeave",["mouseout","mouseover"]),Ta("onPointerEnter",["pointerout","pointerover"]),Ta("onPointerLeave",["pointerout","pointerover"]),Tr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Tr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Tr("onBeforeInput",["compositionend","keypress","textInput","paste"]),Tr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Tr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Tr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var gl="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(" "),t6=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(gl));function W2(t,r){r=(r&4)!=0;for(var i=0;i<t.length;i++){var l=t[i],p=l.event;l=l.listeners;e:{var g=void 0;if(r)for(var C=l.length-1;0<=C;C--){var L=l[C],F=L.instance,J=L.currentTarget;if(L=L.listener,F!==g&&p.isPropagationStopped())break e;g=L,p.currentTarget=J;try{g(p)}catch(se){Pc(se)}p.currentTarget=null,g=F}else for(C=0;C<l.length;C++){if(L=l[C],F=L.instance,J=L.currentTarget,L=L.listener,F!==g&&p.isPropagationStopped())break e;g=L,p.currentTarget=J;try{g(p)}catch(se){Pc(se)}p.currentTarget=null,g=F}}}}function We(t,r){var i=r[Ps];i===void 0&&(i=r[Ps]=new Set);var l=t+"__bubble";i.has(l)||(K2(r,t,2,!1),i.add(l))}function kh(t,r,i){var l=0;r&&(l|=4),K2(i,t,l,r)}var bu="_reactListening"+Math.random().toString(36).slice(2);function U2(t){if(!t[bu]){t[bu]=!0,Ns.forEach(function(i){i!=="selectionchange"&&(t6.has(i)||kh(i,!1,t),kh(i,!0,t))});var r=t.nodeType===9?t:t.ownerDocument;r===null||r[bu]||(r[bu]=!0,kh("selectionchange",!1,r))}}function K2(t,r,i,l){switch(ww(r)){case 2:var p=A6;break;case 8:p=R6;break;default:p=zh}i=p.bind(null,r,i,t),p=void 0,!Fs||r!=="touchstart"&&r!=="touchmove"&&r!=="wheel"||(p=!0),l?p===void 0?t.addEventListener(r,i,!0):t.addEventListener(r,i,{capture:!0,passive:p}):p===void 0?t.addEventListener(r,i,!1):t.addEventListener(r,i,{passive:p})}function Ch(t,r,i,l,p){var g=l;if(!(r&1)&&!(r&2)&&l!==null)e:for(;;){if(l===null)return;var C=l.tag;if(C===3||C===4){var L=l.stateNode.containerInfo;if(L===p)break;if(C===4)for(C=l.return;C!==null;){var F=C.tag;if((F===3||F===4)&&C.stateNode.containerInfo===p)return;C=C.return}for(;L!==null;){if(C=Er(L),C===null)return;if(F=C.tag,F===5||F===6||F===26||F===27){l=g=C;continue e}L=L.parentNode}}l=l.return}Lc(function(){var J=g,se=zs(i),fe=[];e:{var Z=I1.get(t);if(Z!==void 0){var ae=u,Ce=t;switch(t){case"keypress":if(Ti(i)===0)break e;case"keydown":case"keyup":ae=ke;break;case"focusin":Ce="focus",ae=j;break;case"focusout":Ce="blur",ae=j;break;case"beforeblur":case"afterblur":ae=j;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ae=O;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ae=R;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ae=Ye;break;case C1:case S1:case E1:ae=D;break;case T1:ae=Be;break;case"scroll":case"scrollend":ae=y;break;case"wheel":ae=dt;break;case"copy":case"cut":case"paste":ae=te;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ae=Oe;break;case"toggle":case"beforetoggle":ae=yt}var Ae=(r&4)!=0,ut=!Ae&&(t==="scroll"||t==="scrollend"),U=Ae?Z===null?null:Z+"Capture":Z;Ae=[];for(var H=J,G;H!==null;){var ue=H;if(G=ue.stateNode,ue=ue.tag,ue!==5&&ue!==26&&ue!==27||G===null||U===null||(ue=Ci(H,U),ue!=null&&Ae.push(yl(H,ue,G))),ut)break;H=H.return}0<Ae.length&&(Z=new ae(Z,Ce,null,i,se),fe.push({event:Z,listeners:Ae}))}}if(!(r&7)){e:{if(Z=t==="mouseover"||t==="pointerover",ae=t==="mouseout"||t==="pointerout",Z&&i!==Kt&&(Ce=i.relatedTarget||i.fromElement)&&(Er(Ce)||Ce[Ca]))break e;if((ae||Z)&&(Z=se.window===se?se:(Z=se.ownerDocument)?Z.defaultView||Z.parentWindow:window,ae?(Ce=i.relatedTarget||i.toElement,ae=J,Ce=Ce?Er(Ce):null,Ce!==null&&(ut=d(Ce),Ae=Ce.tag,Ce!==ut||Ae!==5&&Ae!==27&&Ae!==6)&&(Ce=null)):(ae=null,Ce=J),ae!==Ce)){if(Ae=O,ue="onMouseLeave",U="onMouseEnter",H="mouse",(t==="pointerout"||t==="pointerover")&&(Ae=Oe,ue="onPointerLeave",U="onPointerEnter",H="pointer"),ut=ae==null?Z:fn(ae),G=Ce==null?Z:fn(Ce),Z=new Ae(ue,H+"leave",ae,i,se),Z.target=ut,Z.relatedTarget=G,ue=null,Er(se)===J&&(Ae=new Ae(U,H+"enter",Ce,i,se),Ae.target=G,Ae.relatedTarget=ut,ue=Ae),ut=ue,ae&&Ce)t:{for(Ae=n6,U=ae,H=Ce,G=0,ue=U;ue;ue=Ae(ue))G++;ue=0;for(var Te=H;Te;Te=Ae(Te))ue++;for(;0<G-ue;)U=Ae(U),G--;for(;0<ue-G;)H=Ae(H),ue--;for(;G--;){if(U===H||H!==null&&U===H.alternate){Ae=U;break t}U=Ae(U),H=Ae(H)}Ae=null}else Ae=null;ae!==null&&Q2(fe,Z,ae,Ae,!1),Ce!==null&&ut!==null&&Q2(fe,ut,Ce,Ae,!0)}}e:{if(Z=J?fn(J):window,ae=Z.nodeName&&Z.nodeName.toLowerCase(),ae==="select"||ae==="input"&&Z.type==="file")var nt=p1;else if(d1(Z))if(h1)nt=f5;else{nt=u5;var Se=c5}else ae=Z.nodeName,!ae||ae.toLowerCase()!=="input"||Z.type!=="checkbox"&&Z.type!=="radio"?J&&ki(J.elementType)&&(nt=p1):nt=d5;if(nt&&(nt=nt(t,J))){f1(fe,nt,i,se);break e}Se&&Se(t,Z,J),t==="focusout"&&J&&Z.type==="number"&&J.memoizedProps.value!=null&&Br(Z,"number",Z.value)}switch(Se=J?fn(J):window,t){case"focusin":(d1(Se)||Se.contentEditable==="true")&&(Po=Se,ep=J,Us=null);break;case"focusout":Us=ep=Po=null;break;case"mousedown":tp=!0;break;case"contextmenu":case"mouseup":case"dragend":tp=!1,x1(fe,i,se);break;case"selectionchange":if(h5)break;case"keydown":case"keyup":x1(fe,i,se)}var qe;if(Me)e:{switch(t){case"compositionstart":var Ke="onCompositionStart";break e;case"compositionend":Ke="onCompositionEnd";break e;case"compositionupdate":Ke="onCompositionUpdate";break e}Ke=void 0}else Ro?Ac(t,i)&&(Ke="onCompositionEnd"):t==="keydown"&&i.keyCode===229&&(Ke="onCompositionStart");Ke&&(Vt&&i.locale!=="ko"&&(Ro||Ke!=="onCompositionStart"?Ke==="onCompositionEnd"&&Ro&&(qe=Bs()):(hr=se,Oo="value"in hr?hr.value:hr.textContent,Ro=!0)),Se=wu(J,Ke),0<Se.length&&(Ke=new Y(Ke,t,null,i,se),fe.push({event:Ke,listeners:Se}),qe?Ke.data=qe:(qe=Ao(i),qe!==null&&(Ke.data=qe)))),(qe=Nt?i5(t,i):o5(t,i))&&(Ke=wu(J,"onBeforeInput"),0<Ke.length&&(Se=new Y("onBeforeInput","beforeinput",null,i,se),fe.push({event:Se,listeners:Ke}),Se.data=qe)),e6(fe,t,J,i,se)}W2(fe,r)})}function yl(t,r,i){return{instance:t,listener:r,currentTarget:i}}function wu(t,r){for(var i=r+"Capture",l=[];t!==null;){var p=t,g=p.stateNode;if(p=p.tag,p!==5&&p!==26&&p!==27||g===null||(p=Ci(t,i),p!=null&&l.unshift(yl(t,p,g)),p=Ci(t,r),p!=null&&l.push(yl(t,p,g))),t.tag===3)return l;t=t.return}return[]}function n6(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function Q2(t,r,i,l,p){for(var g=r._reactName,C=[];i!==null&&i!==l;){var L=i,F=L.alternate,J=L.stateNode;if(L=L.tag,F!==null&&F===l)break;L!==5&&L!==26&&L!==27||J===null||(F=J,p?(J=Ci(i,g),J!=null&&C.unshift(yl(i,J,F))):p||(J=Ci(i,g),J!=null&&C.push(yl(i,J,F)))),i=i.return}C.length!==0&&t.push({event:r,listeners:C})}var r6=/\r\n?/g,a6=/\u0000|\uFFFD/g;function G2(t){return(typeof t=="string"?t:""+t).replace(r6,`
10
10
  `).replace(a6,"")}function J2(t,r){return r=G2(r),G2(t)===r}function ct(t,r,i,l,p,g){switch(i){case"children":typeof l=="string"?r==="body"||r==="textarea"&&l===""||Vr(t,l):(typeof l=="number"||typeof l=="bigint")&&r!=="body"&&Vr(t,""+l);break;case"className":xi(t,"class",l);break;case"tabIndex":xi(t,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":xi(t,i,l);break;case"style":Ec(t,l,g);break;case"data":if(r!=="object"){xi(t,"data",l);break}case"src":case"href":if(l===""&&(r!=="a"||i!=="href")){t.removeAttribute(i);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(i);break}l=Lo(""+l),t.setAttribute(i,l);break;case"action":case"formAction":if(typeof l=="function"){t.setAttribute(i,"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 g=="function"&&(i==="formAction"?(r!=="input"&&ct(t,r,"name",p.name,p,null),ct(t,r,"formEncType",p.formEncType,p,null),ct(t,r,"formMethod",p.formMethod,p,null),ct(t,r,"formTarget",p.formTarget,p,null)):(ct(t,r,"encType",p.encType,p,null),ct(t,r,"method",p.method,p,null),ct(t,r,"target",p.target,p,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(i);break}l=Lo(""+l),t.setAttribute(i,l);break;case"onClick":l!=null&&(t.onclick=Kn);break;case"onScroll":l!=null&&We("scroll",t);break;case"onScrollEnd":l!=null&&We("scrollend",t);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(i=l.__html,i!=null){if(p.children!=null)throw Error(s(60));t.innerHTML=i}}break;case"multiple":t.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":t.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){t.removeAttribute("xlink:href");break}i=Lo(""+l),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(i,""+l):t.removeAttribute(i);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":l&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(i,""):t.removeAttribute(i);break;case"capture":case"download":l===!0?t.setAttribute(i,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(i,l):t.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?t.setAttribute(i,l):t.removeAttribute(i);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?t.removeAttribute(i):t.setAttribute(i,l);break;case"popover":We("beforetoggle",t),We("toggle",t),_i(t,"popover",l);break;case"xlinkActuate":fr(t,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":fr(t,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":fr(t,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":fr(t,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":fr(t,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":fr(t,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":fr(t,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":fr(t,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":fr(t,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":_i(t,"is",l);break;case"innerText":case"textContent":break;default:(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(i=Io.get(i)||i,_i(t,i,l))}}function Sh(t,r,i,l,p,g){switch(i){case"style":Ec(t,l,g);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(i=l.__html,i!=null){if(p.children!=null)throw Error(s(60));t.innerHTML=i}}break;case"children":typeof l=="string"?Vr(t,l):(typeof l=="number"||typeof l=="bigint")&&Vr(t,""+l);break;case"onScroll":l!=null&&We("scroll",t);break;case"onScrollEnd":l!=null&&We("scrollend",t);break;case"onClick":l!=null&&(t.onclick=Kn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!_c.hasOwnProperty(i))e:{if(i[0]==="o"&&i[1]==="n"&&(p=i.endsWith("Capture"),r=i.slice(2,p?i.length-7:void 0),g=t[Yt]||null,g=g==null?null:g[i],typeof g=="function"&&t.removeEventListener(r,g,p),typeof l=="function")){typeof g!="function"&&g!==null&&(i in t?t[i]=null:t.hasAttribute(i)&&t.removeAttribute(i)),t.addEventListener(r,l,p);break e}i in t?t[i]=l:l===!0?t.setAttribute(i,""):_i(t,i,l)}}}function nn(t,r,i){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":We("error",t),We("load",t);var l=!1,p=!1,g;for(g in i)if(i.hasOwnProperty(g)){var C=i[g];if(C!=null)switch(g){case"src":l=!0;break;case"srcSet":p=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,r));default:ct(t,r,g,C,i,null)}}p&&ct(t,r,"srcSet",i.srcSet,i,null),l&&ct(t,r,"src",i.src,i,null);return;case"input":We("invalid",t);var L=g=C=p=null,F=null,J=null;for(l in i)if(i.hasOwnProperty(l)){var se=i[l];if(se!=null)switch(l){case"name":p=se;break;case"type":C=se;break;case"checked":F=se;break;case"defaultChecked":J=se;break;case"value":g=se;break;case"defaultValue":L=se;break;case"children":case"dangerouslySetInnerHTML":if(se!=null)throw Error(s(137,r));break;default:ct(t,r,l,se,i,null)}}Sc(t,g,L,F,J,C,p,!1);return;case"select":for(p in We("invalid",t),l=C=g=null,i)if(i.hasOwnProperty(p)&&(L=i[p],L!=null))switch(p){case"value":g=L;break;case"defaultValue":C=L;break;case"multiple":l=L;default:ct(t,r,p,L,i,null)}r=g,i=C,t.multiple=!!l,r==null?i!=null&&La(t,!!l,i,!0):La(t,!!l,r,!1);return;case"textarea":for(C in We("invalid",t),g=p=l=null,i)if(i.hasOwnProperty(C)&&(L=i[C],L!=null))switch(C){case"value":l=L;break;case"defaultValue":p=L;break;case"children":g=L;break;case"dangerouslySetInnerHTML":if(L!=null)throw Error(s(91));break;default:ct(t,r,C,L,i,null)}To(t,l,p,g);return;case"option":for(F in i)i.hasOwnProperty(F)&&(l=i[F],l!=null)&&(F==="selected"?t.selected=l&&typeof l!="function"&&typeof l!="symbol":ct(t,r,F,l,i,null));return;case"dialog":We("beforetoggle",t),We("toggle",t),We("cancel",t),We("close",t);break;case"iframe":case"object":We("load",t);break;case"video":case"audio":for(l=0;l<gl.length;l++)We(gl[l],t);break;case"image":We("error",t),We("load",t);break;case"details":We("toggle",t);break;case"embed":case"source":case"link":We("error",t),We("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(J in i)if(i.hasOwnProperty(J)&&(l=i[J],l!=null))switch(J){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,r));default:ct(t,r,J,l,i,null)}return;default:if(ki(r)){for(se in i)i.hasOwnProperty(se)&&(l=i[se],l!==void 0&&Sh(t,r,se,l,i,void 0));return}}for(L in i)i.hasOwnProperty(L)&&(l=i[L],l!=null&&ct(t,r,L,l,i,null))}function i6(t,r,i,l){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var p=null,g=null,C=null,L=null,F=null,J=null,se=null;for(ae in i){var fe=i[ae];if(i.hasOwnProperty(ae)&&fe!=null)switch(ae){case"checked":break;case"value":break;case"defaultValue":F=fe;default:l.hasOwnProperty(ae)||ct(t,r,ae,null,l,fe)}}for(var Z in l){var ae=l[Z];if(fe=i[Z],l.hasOwnProperty(Z)&&(ae!=null||fe!=null))switch(Z){case"type":g=ae;break;case"name":p=ae;break;case"checked":J=ae;break;case"defaultChecked":se=ae;break;case"value":C=ae;break;case"defaultValue":L=ae;break;case"children":case"dangerouslySetInnerHTML":if(ae!=null)throw Error(s(137,r));break;default:ae!==fe&&ct(t,r,Z,ae,l,fe)}}Ia(t,C,L,F,J,se,g,p);return;case"select":for(g in ae=C=L=Z=null,i)if(F=i[g],i.hasOwnProperty(g)&&F!=null)switch(g){case"value":break;case"multiple":ae=F;default:l.hasOwnProperty(g)||ct(t,r,g,null,l,F)}for(p in l)if(g=l[p],F=i[p],l.hasOwnProperty(p)&&(g!=null||F!=null))switch(p){case"value":Z=g;break;case"defaultValue":L=g;break;case"multiple":C=g;default:g!==F&&ct(t,r,p,g,l,F)}r=L,i=C,l=ae,Z==null?!!l!=!!i&&(r==null?La(t,!!i,i?[]:"",!1):La(t,!!i,r,!0)):La(t,!!i,Z,!1);return;case"textarea":for(L in ae=Z=null,i)if(p=i[L],i.hasOwnProperty(L)&&p!=null&&!l.hasOwnProperty(L))switch(L){case"value":break;case"children":break;default:ct(t,r,L,null,l,p)}for(C in l)if(p=l[C],g=i[C],l.hasOwnProperty(C)&&(p!=null||g!=null))switch(C){case"value":Z=p;break;case"defaultValue":ae=p;break;case"children":break;case"dangerouslySetInnerHTML":if(p!=null)throw Error(s(91));break;default:p!==g&&ct(t,r,C,p,l,g)}Oa(t,Z,ae);return;case"option":for(var Ce in i)Z=i[Ce],i.hasOwnProperty(Ce)&&Z!=null&&!l.hasOwnProperty(Ce)&&(Ce==="selected"?t.selected=!1:ct(t,r,Ce,null,l,Z));for(F in l)Z=l[F],ae=i[F],l.hasOwnProperty(F)&&Z!==ae&&(Z!=null||ae!=null)&&(F==="selected"?t.selected=Z&&typeof Z!="function"&&typeof Z!="symbol":ct(t,r,F,Z,l,ae));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 Ae in i)Z=i[Ae],i.hasOwnProperty(Ae)&&Z!=null&&!l.hasOwnProperty(Ae)&&ct(t,r,Ae,null,l,Z);for(J in l)if(Z=l[J],ae=i[J],l.hasOwnProperty(J)&&Z!==ae&&(Z!=null||ae!=null))switch(J){case"children":case"dangerouslySetInnerHTML":if(Z!=null)throw Error(s(137,r));break;default:ct(t,r,J,Z,l,ae)}return;default:if(ki(r)){for(var ut in i)Z=i[ut],i.hasOwnProperty(ut)&&Z!==void 0&&!l.hasOwnProperty(ut)&&Sh(t,r,ut,void 0,l,Z);for(se in l)Z=l[se],ae=i[se],!l.hasOwnProperty(se)||Z===ae||Z===void 0&&ae===void 0||Sh(t,r,se,Z,l,ae);return}}for(var U in i)Z=i[U],i.hasOwnProperty(U)&&Z!=null&&!l.hasOwnProperty(U)&&ct(t,r,U,null,l,Z);for(fe in l)Z=l[fe],ae=i[fe],!l.hasOwnProperty(fe)||Z===ae||Z==null&&ae==null||ct(t,r,fe,Z,l,ae)}function X2(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function o6(){if(typeof performance.getEntriesByType=="function"){for(var t=0,r=0,i=performance.getEntriesByType("resource"),l=0;l<i.length;l++){var p=i[l],g=p.transferSize,C=p.initiatorType,L=p.duration;if(g&&L&&X2(C)){for(C=0,L=p.responseEnd,l+=1;l<i.length;l++){var F=i[l],J=F.startTime;if(J>L)break;var se=F.transferSize,fe=F.initiatorType;se&&X2(fe)&&(F=F.responseEnd,C+=se*(F<L?1:(L-J)/(F-J)))}if(--l,r+=8*(g+C)/(p.duration/1e3),t++,10<t)break}}if(0<t)return r/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var Eh=null,Th=null;function _u(t){return t.nodeType===9?t:t.ownerDocument}function Y2(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Z2(t,r){if(t===0)switch(r){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&r==="foreignObject"?0:t}function Ih(t,r){return t==="textarea"||t==="noscript"||typeof r.children=="string"||typeof r.children=="number"||typeof r.children=="bigint"||typeof r.dangerouslySetInnerHTML=="object"&&r.dangerouslySetInnerHTML!==null&&r.dangerouslySetInnerHTML.__html!=null}var Lh=null;function s6(){var t=window.event;return t&&t.type==="popstate"?t===Lh?!1:(Lh=t,!0):(Lh=null,!1)}var ew=typeof setTimeout=="function"?setTimeout:void 0,l6=typeof clearTimeout=="function"?clearTimeout:void 0,tw=typeof Promise=="function"?Promise:void 0,c6=typeof queueMicrotask=="function"?queueMicrotask:tw===void 0?ew:function(t){return tw.resolve(null).then(t).catch(u6)};function u6(t){setTimeout(function(){throw t})}function Wa(t){return t==="head"}function nw(t,r){var i=r,l=0;do{var p=i.nextSibling;if(t.removeChild(i),p&&p.nodeType===8)if(i=p.data,i==="/$"||i==="/&"){if(l===0){t.removeChild(p),os(r);return}l--}else if(i==="$"||i==="$?"||i==="$~"||i==="$!"||i==="&")l++;else if(i==="html")vl(t.ownerDocument.documentElement);else if(i==="head"){i=t.ownerDocument.head,vl(i);for(var g=i.firstChild;g;){var C=g.nextSibling,L=g.nodeName;g[wi]||L==="SCRIPT"||L==="STYLE"||L==="LINK"&&g.rel.toLowerCase()==="stylesheet"||i.removeChild(g),g=C}}else i==="body"&&vl(t.ownerDocument.body);i=p}while(i);os(r)}function rw(t,r){var i=t;t=0;do{var l=i.nextSibling;if(i.nodeType===1?r?(i._stashedDisplay=i.style.display,i.style.display="none"):(i.style.display=i._stashedDisplay||"",i.getAttribute("style")===""&&i.removeAttribute("style")):i.nodeType===3&&(r?(i._stashedText=i.nodeValue,i.nodeValue=""):i.nodeValue=i._stashedText||""),l&&l.nodeType===8)if(i=l.data,i==="/$"){if(t===0)break;t--}else i!=="$"&&i!=="$?"&&i!=="$~"&&i!=="$!"||t++;i=l}while(i)}function Oh(t){var r=t.firstChild;for(r&&r.nodeType===10&&(r=r.nextSibling);r;){var i=r;switch(r=r.nextSibling,i.nodeName){case"HTML":case"HEAD":case"BODY":Oh(i),Eo(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}t.removeChild(i)}}function d6(t,r,i,l){for(;t.nodeType===1;){var p=i;if(t.nodeName.toLowerCase()!==r.toLowerCase()){if(!l&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(l){if(!t[wi])switch(r){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(g=t.getAttribute("rel"),g==="stylesheet"&&t.hasAttribute("data-precedence")||g!==p.rel||t.getAttribute("href")!==(p.href==null||p.href===""?null:p.href)||t.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin)||t.getAttribute("title")!==(p.title==null?null:p.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(g=t.getAttribute("src"),(g!==(p.src==null?null:p.src)||t.getAttribute("type")!==(p.type==null?null:p.type)||t.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin))&&g&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(r==="input"&&t.type==="hidden"){var g=p.name==null?null:""+p.name;if(p.type==="hidden"&&t.getAttribute("name")===g)return t}else return t;if(t=er(t.nextSibling),t===null)break}return null}function f6(t,r,i){if(r==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!i||(t=er(t.nextSibling),t===null))return null;return t}function aw(t,r){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!r||(t=er(t.nextSibling),t===null))return null;return t}function Ah(t){return t.data==="$?"||t.data==="$~"}function Rh(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function p6(t,r){var i=t.ownerDocument;if(t.data==="$~")t._reactRetry=r;else if(t.data!=="$?"||i.readyState!=="loading")r();else{var l=function(){r(),i.removeEventListener("DOMContentLoaded",l)};i.addEventListener("DOMContentLoaded",l),t._reactRetry=l}}function er(t){for(;t!=null;t=t.nextSibling){var r=t.nodeType;if(r===1||r===3)break;if(r===8){if(r=t.data,r==="$"||r==="$!"||r==="$?"||r==="$~"||r==="&"||r==="F!"||r==="F")break;if(r==="/$"||r==="/&")return null}}return t}var Ph=null;function iw(t){t=t.nextSibling;for(var r=0;t;){if(t.nodeType===8){var i=t.data;if(i==="/$"||i==="/&"){if(r===0)return er(t.nextSibling);r--}else i!=="$"&&i!=="$!"&&i!=="$?"&&i!=="$~"&&i!=="&"||r++}t=t.nextSibling}return null}function ow(t){t=t.previousSibling;for(var r=0;t;){if(t.nodeType===8){var i=t.data;if(i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"){if(r===0)return t;r--}else i!=="/$"&&i!=="/&"||r++}t=t.previousSibling}return null}function sw(t,r,i){switch(r=_u(i),t){case"html":if(t=r.documentElement,!t)throw Error(s(452));return t;case"head":if(t=r.head,!t)throw Error(s(453));return t;case"body":if(t=r.body,!t)throw Error(s(454));return t;default:throw Error(s(451))}}function vl(t){for(var r=t.attributes;r.length;)t.removeAttributeNode(r[0]);Eo(t)}var tr=new Map,lw=new Set;function xu(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var oa=W.d;W.d={f:h6,r:m6,D:g6,C:y6,L:v6,m:b6,X:_6,S:w6,M:x6};function h6(){var t=oa.f(),r=pu();return t||r}function m6(t){var r=Sa(t);r!==null&&r.tag===5&&r.type==="form"?Tb(r):oa.r(t)}var rs=typeof document>"u"?null:document;function cw(t,r,i){var l=rs;if(l&&typeof r=="string"&&r){var p=Pn(r);p='link[rel="'+t+'"][href="'+p+'"]',typeof i=="string"&&(p+='[crossorigin="'+i+'"]'),lw.has(p)||(lw.add(p),t={rel:t,crossOrigin:i,href:r},l.querySelector(p)===null&&(r=l.createElement("link"),nn(r,"link",t),Lt(r),l.head.appendChild(r)))}}function g6(t){oa.D(t),cw("dns-prefetch",t,null)}function y6(t,r){oa.C(t,r),cw("preconnect",t,r)}function v6(t,r,i){oa.L(t,r,i);var l=rs;if(l&&t&&r){var p='link[rel="preload"][as="'+Pn(r)+'"]';r==="image"&&i&&i.imageSrcSet?(p+='[imagesrcset="'+Pn(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(p+='[imagesizes="'+Pn(i.imageSizes)+'"]')):p+='[href="'+Pn(t)+'"]';var g=p;switch(r){case"style":g=as(t);break;case"script":g=is(t)}tr.has(g)||(t=S({rel:"preload",href:r==="image"&&i&&i.imageSrcSet?void 0:t,as:r},i),tr.set(g,t),l.querySelector(p)!==null||r==="style"&&l.querySelector(bl(g))||r==="script"&&l.querySelector(wl(g))||(r=l.createElement("link"),nn(r,"link",t),Lt(r),l.head.appendChild(r)))}}function b6(t,r){oa.m(t,r);var i=rs;if(i&&t){var l=r&&typeof r.as=="string"?r.as:"script",p='link[rel="modulepreload"][as="'+Pn(l)+'"][href="'+Pn(t)+'"]',g=p;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":g=is(t)}if(!tr.has(g)&&(t=S({rel:"modulepreload",href:t},r),tr.set(g,t),i.querySelector(p)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(wl(g)))return}l=i.createElement("link"),nn(l,"link",t),Lt(l),i.head.appendChild(l)}}}function w6(t,r,i){oa.S(t,r,i);var l=rs;if(l&&t){var p=Ea(l).hoistableStyles,g=as(t);r||(r="default");var C=p.get(g);if(!C){var L={loading:0,preload:null};if(C=l.querySelector(bl(g)))L.loading=5;else{t=S({rel:"stylesheet",href:t,"data-precedence":r},i),(i=tr.get(g))&&Mh(t,i);var F=C=l.createElement("link");Lt(F),nn(F,"link",t),F._p=new Promise(function(J,se){F.onload=J,F.onerror=se}),F.addEventListener("load",function(){L.loading|=1}),F.addEventListener("error",function(){L.loading|=2}),L.loading|=4,ku(C,r,l)}C={type:"stylesheet",instance:C,count:1,state:L},p.set(g,C)}}}function _6(t,r){oa.X(t,r);var i=rs;if(i&&t){var l=Ea(i).hoistableScripts,p=is(t),g=l.get(p);g||(g=i.querySelector(wl(p)),g||(t=S({src:t,async:!0},r),(r=tr.get(p))&&Nh(t,r),g=i.createElement("script"),Lt(g),nn(g,"link",t),i.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},l.set(p,g))}}function x6(t,r){oa.M(t,r);var i=rs;if(i&&t){var l=Ea(i).hoistableScripts,p=is(t),g=l.get(p);g||(g=i.querySelector(wl(p)),g||(t=S({src:t,async:!0,type:"module"},r),(r=tr.get(p))&&Nh(t,r),g=i.createElement("script"),Lt(g),nn(g,"link",t),i.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},l.set(p,g))}}function uw(t,r,i,l){var p=(p=Pt.current)?xu(p):null;if(!p)throw Error(s(446));switch(t){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(r=as(i.href),i=Ea(p).hoistableStyles,l=i.get(r),l||(l={type:"style",instance:null,count:0,state:null},i.set(r,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){t=as(i.href);var g=Ea(p).hoistableStyles,C=g.get(t);if(C||(p=p.ownerDocument||p,C={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},g.set(t,C),(g=p.querySelector(bl(t)))&&!g._p&&(C.instance=g,C.state.loading=5),tr.has(t)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},tr.set(t,i),g||k6(p,t,i,C.state))),r&&l===null)throw Error(s(528,""));return C}if(r&&l!==null)throw Error(s(529,""));return null;case"script":return r=i.async,i=i.src,typeof i=="string"&&r&&typeof r!="function"&&typeof r!="symbol"?(r=is(i),i=Ea(p).hoistableScripts,l=i.get(r),l||(l={type:"script",instance:null,count:0,state:null},i.set(r,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,t))}}function as(t){return'href="'+Pn(t)+'"'}function bl(t){return'link[rel="stylesheet"]['+t+"]"}function dw(t){return S({},t,{"data-precedence":t.precedence,precedence:null})}function k6(t,r,i,l){t.querySelector('link[rel="preload"][as="style"]['+r+"]")?l.loading=1:(r=t.createElement("link"),l.preload=r,r.addEventListener("load",function(){return l.loading|=1}),r.addEventListener("error",function(){return l.loading|=2}),nn(r,"link",i),Lt(r),t.head.appendChild(r))}function is(t){return'[src="'+Pn(t)+'"]'}function wl(t){return"script[async]"+t}function fw(t,r,i){if(r.count++,r.instance===null)switch(r.type){case"style":var l=t.querySelector('style[data-href~="'+Pn(i.href)+'"]');if(l)return r.instance=l,Lt(l),l;var p=S({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return l=(t.ownerDocument||t).createElement("style"),Lt(l),nn(l,"style",p),ku(l,i.precedence,t),r.instance=l;case"stylesheet":p=as(i.href);var g=t.querySelector(bl(p));if(g)return r.state.loading|=4,r.instance=g,Lt(g),g;l=dw(i),(p=tr.get(p))&&Mh(l,p),g=(t.ownerDocument||t).createElement("link"),Lt(g);var C=g;return C._p=new Promise(function(L,F){C.onload=L,C.onerror=F}),nn(g,"link",l),r.state.loading|=4,ku(g,i.precedence,t),r.instance=g;case"script":return g=is(i.src),(p=t.querySelector(wl(g)))?(r.instance=p,Lt(p),p):(l=i,(p=tr.get(g))&&(l=S({},i),Nh(l,p)),t=t.ownerDocument||t,p=t.createElement("script"),Lt(p),nn(p,"link",l),t.head.appendChild(p),r.instance=p);case"void":return null;default:throw Error(s(443,r.type))}else r.type==="stylesheet"&&!(r.state.loading&4)&&(l=r.instance,r.state.loading|=4,ku(l,i.precedence,t));return r.instance}function ku(t,r,i){for(var l=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),p=l.length?l[l.length-1]:null,g=p,C=0;C<l.length;C++){var L=l[C];if(L.dataset.precedence===r)g=L;else if(g!==p)break}g?g.parentNode.insertBefore(t,g.nextSibling):(r=i.nodeType===9?i.head:i,r.insertBefore(t,r.firstChild))}function Mh(t,r){t.crossOrigin??(t.crossOrigin=r.crossOrigin),t.referrerPolicy??(t.referrerPolicy=r.referrerPolicy),t.title??(t.title=r.title)}function Nh(t,r){t.crossOrigin??(t.crossOrigin=r.crossOrigin),t.referrerPolicy??(t.referrerPolicy=r.referrerPolicy),t.integrity??(t.integrity=r.integrity)}var Cu=null;function pw(t,r,i){if(Cu===null){var l=new Map,p=Cu=new Map;p.set(i,l)}else p=Cu,l=p.get(i),l||(l=new Map,p.set(i,l));if(l.has(t))return l;for(l.set(t,null),i=i.getElementsByTagName(t),p=0;p<i.length;p++){var g=i[p];if(!(g[wi]||g[Bt]||t==="link"&&g.getAttribute("rel")==="stylesheet")&&g.namespaceURI!=="http://www.w3.org/2000/svg"){var C=g.getAttribute(r)||"";C=t+C;var L=l.get(C);L?L.push(g):l.set(C,[g])}}return l}function hw(t,r,i){t=t.ownerDocument||t,t.head.insertBefore(i,r==="title"?t.querySelector("head > title"):null)}function C6(t,r,i){if(i===1||r.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof r.precedence!="string"||typeof r.href!="string"||r.href==="")break;return!0;case"link":if(typeof r.rel!="string"||typeof r.href!="string"||r.href===""||r.onLoad||r.onError)break;return r.rel==="stylesheet"?(t=r.disabled,typeof r.precedence=="string"&&t==null):!0;case"script":if(r.async&&typeof r.async!="function"&&typeof r.async!="symbol"&&!r.onLoad&&!r.onError&&r.src&&typeof r.src=="string")return!0}return!1}function mw(t){return!(t.type==="stylesheet"&&!(t.state.loading&3))}function S6(t,r,i,l){if(i.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&!(i.state.loading&4)){if(i.instance===null){var p=as(l.href),g=r.querySelector(bl(p));if(g){r=g._p,typeof r=="object"&&r&&typeof r.then=="function"&&(t.count++,t=Su.bind(t),r.then(t,t)),i.state.loading|=4,i.instance=g,Lt(g);return}g=r.ownerDocument||r,l=dw(l),(p=tr.get(p))&&Mh(l,p),g=g.createElement("link"),Lt(g);var C=g;C._p=new Promise(function(L,F){C.onload=L,C.onerror=F}),nn(g,"link",l),i.instance=g}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(i,r),(r=i.state.preload)&&!(i.state.loading&3)&&(t.count++,i=Su.bind(t),r.addEventListener("load",i),r.addEventListener("error",i))}}var Dh=0;function E6(t,r){return t.stylesheets&&t.count===0&&Tu(t,t.stylesheets),0<t.count||0<t.imgCount?function(i){var l=setTimeout(function(){if(t.stylesheets&&Tu(t,t.stylesheets),t.unsuspend){var g=t.unsuspend;t.unsuspend=null,g()}},6e4+r);0<t.imgBytes&&Dh===0&&(Dh=62500*o6());var p=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Tu(t,t.stylesheets),t.unsuspend)){var g=t.unsuspend;t.unsuspend=null,g()}},(t.imgBytes>Dh?50:800)+r);return t.unsuspend=i,function(){t.unsuspend=null,clearTimeout(l),clearTimeout(p)}}:null}function Su(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Tu(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Eu=null;function Tu(t,r){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Eu=new Map,r.forEach(T6,t),Eu=null,Su.call(t))}function T6(t,r){if(!(r.state.loading&4)){var i=Eu.get(t);if(i)var l=i.get(null);else{i=new Map,Eu.set(t,i);for(var p=t.querySelectorAll("link[data-precedence],style[data-precedence]"),g=0;g<p.length;g++){var C=p[g];(C.nodeName==="LINK"||C.getAttribute("media")!=="not all")&&(i.set(C.dataset.precedence,C),l=C)}l&&i.set(null,l)}p=r.instance,C=p.getAttribute("data-precedence"),g=i.get(C)||l,g===l&&i.set(null,p),i.set(C,p),this.count++,l=Su.bind(this),p.addEventListener("load",l),p.addEventListener("error",l),g?g.parentNode.insertBefore(p,g.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(p,t.firstChild)),r.state.loading|=4}}var _l={$$typeof:X,Provider:null,Consumer:null,_currentValue:Ie,_currentValue2:Ie,_threadCount:0};function I6(t,r,i,l,p,g,C,L,F){this.tag=1,this.containerInfo=t,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=As(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=As(0),this.hiddenUpdates=As(null),this.identifierPrefix=l,this.onUncaughtError=p,this.onCaughtError=g,this.onRecoverableError=C,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=F,this.incompleteTransitions=new Map}function L6(t,r,i,l,p,g,C,L,F,J,se,fe){return t=new I6(t,r,i,C,F,J,se,fe,L),r=1,g===!0&&(r|=24),g=Nn(3,null,null,r),t.current=g,g.stateNode=t,r=gp(),r.refCount++,t.pooledCache=r,r.refCount++,g.memoizedState={element:l,isDehydrated:i,cache:r},wp(g),t}function O6(t){return t?(t=Do,t):Do}function gw(t,r,i,l,p,g){p=O6(p),l.context===null?l.context=p:l.pendingContext=p,l=Bi(r),l.payload={element:i},g=g===void 0?null:g,g!==null&&(l.callback=g),i=Vi(t,l,r),i!==null&&(Sn(i,t,r),Zs(i,t,r))}function yw(t,r){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var i=t.retryLane;t.retryLane=i!==0&&i<r?i:r}}function jh(t,r){yw(t,r),(t=t.alternate)&&yw(t,r)}function vw(t){if(t.tag===13||t.tag===31){var r=Ri(t,67108864);r!==null&&Sn(r,t,67108864),jh(t,67108864)}}function bw(t){if(t.tag===13||t.tag===31){var r=Zn();r=An(r);var i=Ri(t,r);i!==null&&Sn(i,t,r),jh(t,r)}}var Iu=!0;function A6(t,r,i,l){var p=ee.T;ee.T=null;var g=W.p;try{W.p=2,zh(t,r,i,l)}finally{W.p=g,ee.T=p}}function R6(t,r,i,l){var p=ee.T;ee.T=null;var g=W.p;try{W.p=8,zh(t,r,i,l)}finally{W.p=g,ee.T=p}}function zh(t,r,i,l){if(Iu){var p=qh(l);if(p===null)Ch(t,r,l,Lu,i),_w(t,l);else if(M6(p,t,r,i,l))l.stopPropagation();else if(_w(t,l),r&4&&-1<P6.indexOf(t)){for(;p!==null;){var g=Sa(p);if(g!==null)switch(g.tag){case 3:if(g=g.stateNode,g.current.memoizedState.isDehydrated){var C=qr(g.pendingLanes);if(C!==0){var L=g;for(L.pendingLanes|=2,L.entangledLanes|=2;C;){var F=1<<31-gt(C);L.entanglements[1]|=F,C&=~F}ia(g),!(tt&6)&&(du=Jt()+500,ml(0,!1))}}break;case 31:case 13:L=Ri(g,2),L!==null&&Sn(L,g,2),pu(),jh(g,2)}if(g=qh(l),g===null&&Ch(t,r,l,Lu,i),g===p)break;p=g}p!==null&&l.stopPropagation()}else Ch(t,r,l,null,i)}}function qh(t){return t=zs(t),Fh(t)}var Lu=null;function Fh(t){if(Lu=null,t=Er(t),t!==null){var r=d(t);if(r===null)t=null;else{var i=r.tag;if(i===13){if(t=f(r),t!==null)return t;t=null}else if(i===31){if(t=m(r),t!==null)return t;t=null}else if(i===3){if(r.stateNode.current.memoizedState.isDehydrated)return r.tag===3?r.stateNode.containerInfo:null;t=null}else r!==t&&(t=null)}}return Lu=t,null}function ww(t){switch(t){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(Hf()){case zr:return 2;case mc:return 8;case Mt:case ko:return 32;case kt:return 268435456;default:return 32}default:return 32}}var Bh=!1,Ua=null,Ka=null,Qa=null,xl=new Map,kl=new Map,Ga=[],P6="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 _w(t,r){switch(t){case"focusin":case"focusout":Ua=null;break;case"dragenter":case"dragleave":Ka=null;break;case"mouseover":case"mouseout":Qa=null;break;case"pointerover":case"pointerout":xl.delete(r.pointerId);break;case"gotpointercapture":case"lostpointercapture":kl.delete(r.pointerId)}}function Cl(t,r,i,l,p,g){return t===null||t.nativeEvent!==g?(t={blockedOn:r,domEventName:i,eventSystemFlags:l,nativeEvent:g,targetContainers:[p]},r!==null&&(r=Sa(r),r!==null&&vw(r)),t):(t.eventSystemFlags|=l,r=t.targetContainers,p!==null&&r.indexOf(p)===-1&&r.push(p),t)}function M6(t,r,i,l,p){switch(r){case"focusin":return Ua=Cl(Ua,t,r,i,l,p),!0;case"dragenter":return Ka=Cl(Ka,t,r,i,l,p),!0;case"mouseover":return Qa=Cl(Qa,t,r,i,l,p),!0;case"pointerover":var g=p.pointerId;return xl.set(g,Cl(xl.get(g)||null,t,r,i,l,p)),!0;case"gotpointercapture":return g=p.pointerId,kl.set(g,Cl(kl.get(g)||null,t,r,i,l,p)),!0}return!1}function xw(t){var r=Er(t.target);if(r!==null){var i=d(r);if(i!==null){if(r=i.tag,r===13){if(r=f(i),r!==null){t.blockedOn=r,Rn(t.priority,function(){bw(i)});return}}else if(r===31){if(r=m(i),r!==null){t.blockedOn=r,Rn(t.priority,function(){bw(i)});return}}else if(r===3&&i.stateNode.current.memoizedState.isDehydrated){t.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Ou(t){if(t.blockedOn!==null)return!1;for(var r=t.targetContainers;0<r.length;){var i=qh(t.nativeEvent);if(i===null){i=t.nativeEvent;var l=new i.constructor(i.type,i);Kt=l,i.target.dispatchEvent(l),Kt=null}else return r=Sa(i),r!==null&&vw(r),t.blockedOn=i,!1;r.shift()}return!0}function kw(t,r,i){Ou(t)&&i.delete(r)}function N6(){Bh=!1,Ua!==null&&Ou(Ua)&&(Ua=null),Ka!==null&&Ou(Ka)&&(Ka=null),Qa!==null&&Ou(Qa)&&(Qa=null),xl.forEach(kw),kl.forEach(kw)}function Au(t,r){t.blockedOn===r&&(t.blockedOn=null,Bh||(Bh=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,N6)))}var Ru=null;function Cw(t){Ru!==t&&(Ru=t,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Ru===t&&(Ru=null);for(var r=0;r<t.length;r+=3){var i=t[r],l=t[r+1],p=t[r+2];if(typeof l!="function"){if(Fh(l||i)===null)continue;break}var g=Sa(i);g!==null&&(t.splice(r,3),r-=3,Fp(g,{pending:!0,data:p,method:i.method,action:l},l,p))}}))}function os(t){function r(F){return Au(F,t)}Ua!==null&&Au(Ua,t),Ka!==null&&Au(Ka,t),Qa!==null&&Au(Qa,t),xl.forEach(r),kl.forEach(r);for(var i=0;i<Ga.length;i++){var l=Ga[i];l.blockedOn===t&&(l.blockedOn=null)}for(;0<Ga.length&&(i=Ga[0],i.blockedOn===null);)xw(i),i.blockedOn===null&&Ga.shift();if(i=(t.ownerDocument||t).$$reactFormReplay,i!=null)for(l=0;l<i.length;l+=3){var p=i[l],g=i[l+1],C=p[Yt]||null;if(typeof g=="function")C||Cw(i);else if(C){var L=null;if(g&&g.hasAttribute("formAction")){if(p=g,C=g[Yt]||null)L=C.formAction;else if(Fh(p)!==null)continue}else L=C.action;typeof L=="function"?i[l+1]=L:(i.splice(l,3),l-=3),Cw(i)}}}function D6(){function t(g){g.canIntercept&&g.info==="react-transition"&&g.intercept({handler:function(){return new Promise(function(C){return p=C})},focusReset:"manual",scroll:"manual"})}function r(){p!==null&&(p(),p=null),l||setTimeout(i,20)}function i(){if(!l&&!navigation.transition){var g=navigation.currentEntry;g&&g.url!=null&&navigation.navigate(g.url,{state:g.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,p=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",r),navigation.addEventListener("navigateerror",r),setTimeout(i,100),function(){l=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",r),navigation.removeEventListener("navigateerror",r),p!==null&&(p(),p=null)}}}function Vh(t){this._internalRoot=t}Hh.prototype.render=Vh.prototype.render=function(t){var r=this._internalRoot;if(r===null)throw Error(s(409));var i=r.current;gw(i,Zn(),t,r,null,null)},Hh.prototype.unmount=Vh.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var r=t.containerInfo;gw(t.current,2,null,t,null,null),pu(),r[Ca]=null}};function Hh(t){this._internalRoot=t}Hh.prototype.unstable_scheduleHydration=function(t){if(t){var r=bc();t={blockedOn:null,target:t,priority:r};for(var i=0;i<Ga.length&&r!==0&&r<Ga[i].priority;i++);Ga.splice(i,0,t),i===0&&xw(t)}};var Sw=a.version;if(Sw!=="19.2.4")throw Error(s(527,Sw,"19.2.4"));W.findDOMNode=function(t){var r=t._reactInternals;if(r===void 0)throw typeof t.render=="function"?Error(s(188)):(t=Object.keys(t).join(","),Error(s(268,t)));return t=w(r),t=t===null?null:x(t),t=t===null?null:t.stateNode,t};var j6={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:ee,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Pu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Pu.isDisabled&&Pu.supportsFiber)try{yi=Pu.inject(j6),ln=Pu}catch{}}e.createRoot=function(t,r){if(!c(t))throw Error(s(299));var i=!1,l="",p=R5,g=P5,C=M5;return r!=null&&(r.unstable_strictMode===!0&&(i=!0),r.identifierPrefix!==void 0&&(l=r.identifierPrefix),r.onUncaughtError!==void 0&&(p=r.onUncaughtError),r.onCaughtError!==void 0&&(g=r.onCaughtError),r.onRecoverableError!==void 0&&(C=r.onRecoverableError)),r=L6(t,1,!1,null,null,i,l,null,p,g,C,D6),t[Ca]=r.current,U2(t),new Vh(r)}})),ed=rt(((e,n)=>{function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(o){console.error(o)}}a(),n.exports=ai()})),Xu=function(e,n){if(e==null)throw Error(n||`Expected value but got ${e}`)},BigInt.prototype.toJSON=function(){return JSON.rawJSON(this.toString())},Cm=function(e){try{return JSON.parse(e,(n,a)=>Od(a))}catch{}if(e==null||e==="")return{};try{return e??(e=""),e=e.replaceAll(new RegExp(`(?<=\\s|^|\\[|,|:)(NaN|-Infinity|Infinity)(?=(?:[^"'\\\\]*(\\\\.|'([^'\\\\]*\\\\.)*[^'\\\\]*'|"([^"\\\\]*\\\\.)*[^"\\\\]*"))*[^"']*$)`,"g"),'"\u25D0$1\u25D0"'),JSON.parse(e,(n,a)=>typeof a=="string"?a==="\u25D0NaN\u25D0"?NaN:a==="\u25D0Infinity\u25D0"?1/0:a==="\u25D0-Infinity\u25D0"?-1/0:Od(a):Od(a))}catch{return{}}},cx=function(e){if(e.length===0)return"";let n=Object.keys(e[0]);return[`| ${n.join(" | ")} |`,`|${n.map(()=>"---").join("|")}|`,...e.map(a=>`| ${n.map(o=>hk(a[o])).join(" | ")} |`)].join(`
11
11
  `)};function hk(e){if(e==null)return"";if(Array.isArray(e)||typeof e=="object")return w0(JSON.stringify(e));let n=String(e),a=/\[([^\]]+)]\((https?:\/\/[^)]+)\)/g,o=new Map,s=0;n=n.replaceAll(a,c=>{let d=`__MDLINK_${s++}__`;return o.set(d,c),d}),n=n.replaceAll(/(https?:\/\/\S+)/g,"[$1]($1)");for(let[c,d]of o)n=n.replace(c,d);return w0(n)}function w0(e){return e.replaceAll("\\","\\\\").replaceAll("|","\\|").replaceAll(`
12
- `," ").replaceAll("\r","")}function Od(e){return typeof e=="object"&&e&&"$bigint"in e&&typeof e.$bigint=="string"?BigInt(e.$bigint):e}Sm="object-id",T_="random-id";var _0="abcdefghijklmnopqrstuvwxyz",x0=_0+_0.toUpperCase(),k0=new Set;fs="__scratch__",Hn="setup",Za={create(){let e=0,n;do{let a="";for(let o=0;o<4;o++)a+=x0[Math.floor(Math.random()*x0.length)];n=a,e++}while(k0.has(n)&&e<100);if(e>=100)throw Error("Failed to generate unique CellId after 100 attempts");return k0.add(n),n}},En={create(e){return an(e!=null,"cellId is required"),`cell-${e}`},parse(e){return e.slice(5)},findElement(e){return e.closest('div[id^="cell-"]')},findElementThroughShadowDOMs(e){let n=e;for(;n;){let a=En.findElement(n);if(a)return a;let o=n.getRootNode();if(n=o instanceof ShadowRoot?o.host:n.parentElement,n===o)break}return null}},h_=function(e){let n=null,a=En.findElementThroughShadowDOMs(e);return a&&(n=En.parse(a.id)),n},Id={parse(e){return e.getAttribute(Sm)},parseOrThrow(e){let n=Id.parse(e);return an(n,"<marimo-ui-element/> missing object-id attribute"),n}},C_={create(e){return`output-${e}`}},mm=new class{getFilename(){return this.getSearchParam("filename")}setFilename(e){this.setSearchParam("filename",e)}getCodeFromSearchParam(){return this.getSearchParam("code")}getCodeFromHash(){let e=window.location.hash;return e.startsWith("#code/")?e.slice(6):null}setCodeForHash(e){window.location.hash=`#code/${e}`}setSearchParam(e,n){let a=new URL(window.location.href);a.searchParams.set(e,n),window.history.replaceState({},"",a.toString())}getSearchParam(e){return new URL(window.location.href).searchParams.get(e)}},Uu=function(e){return Cm(e??"")},Px=function(e){return Rr.mapValues(e.dataset,n=>typeof n=="string"?Uu(n):n)},H_=function(e,n){let a=e.parentElement?Id.parse(e.parentElement):void 0;return a&&n.has(a)?n.lookupValue(a):Uu(e.dataset.initialValue)},Wm=function(){if(Nw())return document.title||null;if(ju()){let a=mm.getFilename();if(a)return a}let e=document.querySelector("marimo-filename");Xu(e,"marimo-filename tag not found");let n=e.innerHTML;return n.length===0?null:n};var xe=Mu(Nu(),1),M=Mu(eI(),1),Vl="Checkbox",[mk,I8]=Dw(Vl),[gk,Ad]=mk(Vl);function yk(e){let{__scopeCheckbox:n,checked:a,children:o,defaultChecked:s,disabled:c,form:d,name:f,onCheckedChange:m,required:b,value:w="on",internal_do_not_use_render:x}=e,[S,E]=zw({prop:a,defaultProp:s??!1,onChange:m,caller:Vl}),[I,P]=xe.useState(null),[z,B]=xe.useState(null),V=xe.useRef(!1),N=I?!!d||!!I.closest("form"):!0,X={checked:S,disabled:c,setChecked:E,control:I,setControl:P,name:f,form:d,value:w,hasConsumerStoppedPropagationRef:V,required:b,defaultChecked:ha(s)?!1:s,isFormControl:N,bubbleInput:z,setBubbleInput:B};return(0,M.jsx)(gk,{scope:n,...X,children:vk(x)?x(X):o})}var C0="CheckboxTrigger",S0=xe.forwardRef(({__scopeCheckbox:e,onKeyDown:n,onClick:a,...o},s)=>{let{control:c,value:d,disabled:f,checked:m,required:b,setControl:w,setChecked:x,hasConsumerStoppedPropagationRef:S,isFormControl:E,bubbleInput:I}=Ad(C0,e),P=Du(s,w),z=xe.useRef(m);return xe.useEffect(()=>{let B=c==null?void 0:c.form;if(B){let V=()=>x(z.current);return B.addEventListener("reset",V),()=>B.removeEventListener("reset",V)}},[c,x]),(0,M.jsx)(sa.button,{type:"button",role:"checkbox","aria-checked":ha(m)?"mixed":m,"aria-required":b,"data-state":O0(m),"data-disabled":f?"":void 0,disabled:f,value:d,...o,ref:P,onKeyDown:nr(n,B=>{B.key==="Enter"&&B.preventDefault()}),onClick:nr(a,B=>{x(V=>ha(V)?!0:!V),I&&E&&(S.current=B.isPropagationStopped(),S.current||B.stopPropagation())})})});S0.displayName=C0;var Rd=xe.forwardRef((e,n)=>{let{__scopeCheckbox:a,name:o,checked:s,defaultChecked:c,required:d,disabled:f,value:m,onCheckedChange:b,form:w,...x}=e;return(0,M.jsx)(yk,{__scopeCheckbox:a,checked:s,defaultChecked:c,disabled:f,required:d,onCheckedChange:b,name:o,form:w,value:m,internal_do_not_use_render:({isFormControl:S})=>(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(S0,{...x,ref:n,__scopeCheckbox:a}),S&&(0,M.jsx)(L0,{__scopeCheckbox:a})]})})});Rd.displayName=Vl;var E0="CheckboxIndicator",T0=xe.forwardRef((e,n)=>{let{__scopeCheckbox:a,forceMount:o,...s}=e,c=Ad(E0,a);return(0,M.jsx)(jw,{present:o||ha(c.checked)||c.checked===!0,children:(0,M.jsx)(sa.span,{"data-state":O0(c.checked),"data-disabled":c.disabled?"":void 0,...s,ref:n,style:{pointerEvents:"none",...e.style}})})});T0.displayName=E0;var I0="CheckboxBubbleInput",L0=xe.forwardRef(({__scopeCheckbox:e,...n},a)=>{let{control:o,hasConsumerStoppedPropagationRef:s,checked:c,defaultChecked:d,required:f,disabled:m,name:b,value:w,form:x,bubbleInput:S,setBubbleInput:E}=Ad(I0,e),I=Du(a,E),P=uI(c),z=oI(o);xe.useEffect(()=>{let V=S;if(!V)return;let N=window.HTMLInputElement.prototype,X=Object.getOwnPropertyDescriptor(N,"checked").set,ce=!s.current;if(P!==c&&X){let A=new Event("click",{bubbles:ce});V.indeterminate=ha(c),X.call(V,ha(c)?!1:c),V.dispatchEvent(A)}},[S,P,c,s]);let B=xe.useRef(ha(c)?!1:c);return(0,M.jsx)(sa.input,{type:"checkbox","aria-hidden":!0,defaultChecked:d??B.current,required:f,disabled:m,name:b,value:w,form:x,...n,tabIndex:-1,ref:I,style:{...n.style,...z,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});L0.displayName=I0;function vk(e){return typeof e=="function"}function ha(e){return e==="indeterminate"}function O0(e){return ha(e)?"indeterminate":e?"checked":"unchecked"}var bk=Mu(Lw(),1),Pd="ToastProvider",[Md,wk,_k]=sI("Toast"),[A0,L8]=Dw("Toast",[_k]),[xk,Hl]=A0(Pd),R0=e=>{let{__scopeToast:n,label:a="Notification",duration:o=5e3,swipeDirection:s="right",swipeThreshold:c=50,children:d}=e,[f,m]=xe.useState(null),[b,w]=xe.useState(0),x=xe.useRef(!1),S=xe.useRef(!1);return a.trim()||console.error(`Invalid prop \`label\` supplied to \`${Pd}\`. Expected non-empty \`string\`.`),(0,M.jsx)(Md.Provider,{scope:n,children:(0,M.jsx)(xk,{scope:n,label:a,duration:o,swipeDirection:s,swipeThreshold:c,toastCount:b,viewport:f,onViewportChange:m,onToastAdd:xe.useCallback(()=>w(E=>E+1),[]),onToastRemove:xe.useCallback(()=>w(E=>E-1),[]),isFocusedToastEscapeKeyDownRef:x,isClosePausedRef:S,children:d})})};R0.displayName=Pd;var P0="ToastViewport",kk=["F8"],Nd="toast.viewportPause",Dd="toast.viewportResume",M0=xe.forwardRef((e,n)=>{let{__scopeToast:a,hotkey:o=kk,label:s="Notifications ({hotkey})",...c}=e,d=Hl(P0,a),f=wk(a),m=xe.useRef(null),b=xe.useRef(null),w=xe.useRef(null),x=xe.useRef(null),S=Du(n,x,d.onViewportChange),E=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),I=d.toastCount>0;xe.useEffect(()=>{let z=B=>{var V;o.length!==0&&o.every(N=>B[N]||B.code===N)&&((V=x.current)==null||V.focus())};return document.addEventListener("keydown",z),()=>document.removeEventListener("keydown",z)},[o]),xe.useEffect(()=>{let z=m.current,B=x.current;if(I&&z&&B){let V=()=>{if(!d.isClosePausedRef.current){let A=new CustomEvent(Nd);B.dispatchEvent(A),d.isClosePausedRef.current=!0}},N=()=>{if(d.isClosePausedRef.current){let A=new CustomEvent(Dd);B.dispatchEvent(A),d.isClosePausedRef.current=!1}},X=A=>{z.contains(A.relatedTarget)||N()},ce=()=>{z.contains(document.activeElement)||N()};return z.addEventListener("focusin",V),z.addEventListener("focusout",X),z.addEventListener("pointermove",V),z.addEventListener("pointerleave",ce),window.addEventListener("blur",V),window.addEventListener("focus",N),()=>{z.removeEventListener("focusin",V),z.removeEventListener("focusout",X),z.removeEventListener("pointermove",V),z.removeEventListener("pointerleave",ce),window.removeEventListener("blur",V),window.removeEventListener("focus",N)}}},[I,d.isClosePausedRef]);let P=xe.useCallback(({tabbingDirection:z})=>{let B=f().map(V=>{let N=V.ref.current,X=[N,...Dk(N)];return z==="forwards"?X:X.reverse()});return(z==="forwards"?B.reverse():B).flat()},[f]);return xe.useEffect(()=>{let z=x.current;if(z){let B=V=>{var X,ce,A;let N=V.altKey||V.ctrlKey||V.metaKey;if(V.key==="Tab"&&!N){let q=document.activeElement,$=V.shiftKey;if(V.target===z&&$){(X=b.current)==null||X.focus();return}let oe=P({tabbingDirection:$?"backwards":"forwards"}),de=oe.findIndex(he=>he===q);qd(oe.slice(de+1))?V.preventDefault():$?(ce=b.current)==null||ce.focus():(A=w.current)==null||A.focus()}};return z.addEventListener("keydown",B),()=>z.removeEventListener("keydown",B)}},[f,P]),(0,M.jsxs)(tI,{ref:m,role:"region","aria-label":s.replace("{hotkey}",E),tabIndex:-1,style:{pointerEvents:I?void 0:"none"},children:[I&&(0,M.jsx)(jd,{ref:b,onFocusFromOutsideViewport:()=>{qd(P({tabbingDirection:"forwards"}))}}),(0,M.jsx)(Md.Slot,{scope:a,children:(0,M.jsx)(sa.ol,{tabIndex:-1,...c,ref:S})}),I&&(0,M.jsx)(jd,{ref:w,onFocusFromOutsideViewport:()=>{qd(P({tabbingDirection:"backwards"}))}})]})});M0.displayName=P0;var N0="ToastFocusProxy",jd=xe.forwardRef((e,n)=>{let{__scopeToast:a,onFocusFromOutsideViewport:o,...s}=e,c=Hl(N0,a);return(0,M.jsx)(qw,{tabIndex:0,...s,ref:n,style:{position:"fixed"},onFocus:d=>{var m;let f=d.relatedTarget;(m=c.viewport)!=null&&m.contains(f)||o()}})});jd.displayName=N0;var vs="Toast",Ck="toast.swipeStart",Sk="toast.swipeMove",Ek="toast.swipeCancel",Tk="toast.swipeEnd",D0=xe.forwardRef((e,n)=>{let{forceMount:a,open:o,defaultOpen:s,onOpenChange:c,...d}=e,[f,m]=zw({prop:o,defaultProp:s??!0,onChange:c,caller:vs});return(0,M.jsx)(jw,{present:a||f,children:(0,M.jsx)(Ok,{open:f,...d,ref:n,onClose:()=>m(!1),onPause:zu(e.onPause),onResume:zu(e.onResume),onSwipeStart:nr(e.onSwipeStart,b=>{b.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:nr(e.onSwipeMove,b=>{let{x:w,y:x}=b.detail.delta;b.currentTarget.setAttribute("data-swipe","move"),b.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${w}px`),b.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${x}px`)}),onSwipeCancel:nr(e.onSwipeCancel,b=>{b.currentTarget.setAttribute("data-swipe","cancel"),b.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),b.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),b.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),b.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:nr(e.onSwipeEnd,b=>{let{x:w,y:x}=b.detail.delta;b.currentTarget.setAttribute("data-swipe","end"),b.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),b.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),b.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${w}px`),b.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${x}px`),m(!1)})})})});D0.displayName=vs;var[Ik,Lk]=A0(vs,{onClose(){}}),Ok=xe.forwardRef((e,n)=>{let{__scopeToast:a,type:o="foreground",duration:s,open:c,onClose:d,onEscapeKeyDown:f,onPause:m,onResume:b,onSwipeStart:w,onSwipeMove:x,onSwipeCancel:S,onSwipeEnd:E,...I}=e,P=Hl(vs,a),[z,B]=xe.useState(null),V=Du(n,be=>B(be)),N=xe.useRef(null),X=xe.useRef(null),ce=s||P.duration,A=xe.useRef(0),q=xe.useRef(ce),$=xe.useRef(0),{onToastAdd:oe,onToastRemove:de}=P,he=zu(()=>{var be;z!=null&&z.contains(document.activeElement)&&((be=P.viewport)==null||be.focus()),d()}),ye=xe.useCallback(be=>{!be||be===1/0||(window.clearTimeout($.current),A.current=new Date().getTime(),$.current=window.setTimeout(he,be))},[he]);xe.useEffect(()=>{let be=P.viewport;if(be){let le=()=>{ye(q.current),b==null||b()},ie=()=>{let ee=new Date().getTime()-A.current;q.current-=ee,window.clearTimeout($.current),m==null||m()};return be.addEventListener(Nd,ie),be.addEventListener(Dd,le),()=>{be.removeEventListener(Nd,ie),be.removeEventListener(Dd,le)}}},[P.viewport,ce,m,b,ye]),xe.useEffect(()=>{c&&!P.isClosePausedRef.current&&ye(ce)},[c,ce,P.isClosePausedRef,ye]),xe.useEffect(()=>(oe(),()=>de()),[oe,de]);let _e=xe.useMemo(()=>z?H0(z):null,[z]);return P.viewport?(0,M.jsxs)(M.Fragment,{children:[_e&&(0,M.jsx)(Ak,{__scopeToast:a,role:"status","aria-live":o==="foreground"?"assertive":"polite",children:_e}),(0,M.jsx)(Ik,{scope:a,onClose:he,children:bk.createPortal((0,M.jsx)(Md.ItemSlot,{scope:a,children:(0,M.jsx)(nI,{asChild:!0,onEscapeKeyDown:nr(f,()=>{P.isFocusedToastEscapeKeyDownRef.current||he(),P.isFocusedToastEscapeKeyDownRef.current=!1}),children:(0,M.jsx)(sa.li,{tabIndex:0,"data-state":c?"open":"closed","data-swipe-direction":P.swipeDirection,...I,ref:V,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:nr(e.onKeyDown,be=>{be.key==="Escape"&&(f==null||f(be.nativeEvent),be.nativeEvent.defaultPrevented||(P.isFocusedToastEscapeKeyDownRef.current=!0,he()))}),onPointerDown:nr(e.onPointerDown,be=>{be.button===0&&(N.current={x:be.clientX,y:be.clientY})}),onPointerMove:nr(e.onPointerMove,be=>{if(!N.current)return;let le=be.clientX-N.current.x,ie=be.clientY-N.current.y,ee=!!X.current,W=["left","right"].includes(P.swipeDirection),Ie=["left","up"].includes(P.swipeDirection)?Math.min:Math.max,He=W?Ie(0,le):0,et=W?0:Ie(0,ie),Fe=be.pointerType==="touch"?10:2,Ne={x:He,y:et},Le={originalEvent:be,delta:Ne};ee?(X.current=Ne,$l(Sk,x,Le,{discrete:!1})):$0(Ne,P.swipeDirection,Fe)?(X.current=Ne,$l(Ck,w,Le,{discrete:!1}),be.target.setPointerCapture(be.pointerId)):(Math.abs(le)>Fe||Math.abs(ie)>Fe)&&(N.current=null)}),onPointerUp:nr(e.onPointerUp,be=>{let le=X.current,ie=be.target;if(ie.hasPointerCapture(be.pointerId)&&ie.releasePointerCapture(be.pointerId),X.current=null,N.current=null,le){let ee=be.currentTarget,W={originalEvent:be,delta:le};$0(le,P.swipeDirection,P.swipeThreshold)?$l(Tk,E,W,{discrete:!0}):$l(Ek,S,W,{discrete:!0}),ee.addEventListener("click",Ie=>Ie.preventDefault(),{once:!0})}})})})}),P.viewport)})]}):null}),Ak=e=>{let{__scopeToast:n,children:a,...o}=e,s=Hl(vs,n),[c,d]=xe.useState(!1),[f,m]=xe.useState(!1);return Mk(()=>d(!0)),xe.useEffect(()=>{let b=window.setTimeout(()=>m(!0),1e3);return()=>window.clearTimeout(b)},[]),f?null:(0,M.jsx)(rI,{asChild:!0,children:(0,M.jsx)(qw,{...o,children:c&&(0,M.jsxs)(M.Fragment,{children:[s.label," ",a]})})})},Rk="ToastTitle",j0=xe.forwardRef((e,n)=>{let{__scopeToast:a,...o}=e;return(0,M.jsx)(sa.div,{...o,ref:n})});j0.displayName=Rk;var Pk="ToastDescription",z0=xe.forwardRef((e,n)=>{let{__scopeToast:a,...o}=e;return(0,M.jsx)(sa.div,{...o,ref:n})});z0.displayName=Pk;var q0="ToastAction",F0=xe.forwardRef((e,n)=>{let{altText:a,...o}=e;return a.trim()?(0,M.jsx)(V0,{altText:a,asChild:!0,children:(0,M.jsx)(zd,{...o,ref:n})}):(console.error(`Invalid prop \`altText\` supplied to \`${q0}\`. Expected non-empty \`string\`.`),null)});F0.displayName=q0;var B0="ToastClose",zd=xe.forwardRef((e,n)=>{let{__scopeToast:a,...o}=e,s=Lk(B0,a);return(0,M.jsx)(V0,{asChild:!0,children:(0,M.jsx)(sa.button,{type:"button",...o,ref:n,onClick:nr(e.onClick,s.onClose)})})});zd.displayName=B0;var V0=xe.forwardRef((e,n)=>{let{__scopeToast:a,altText:o,...s}=e;return(0,M.jsx)(sa.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":o||void 0,...s,ref:n})});function H0(e){let n=[];return Array.from(e.childNodes).forEach(a=>{if(a.nodeType===a.TEXT_NODE&&a.textContent&&n.push(a.textContent),Nk(a)){let o=a.ariaHidden||a.hidden||a.style.display==="none",s=a.dataset.radixToastAnnounceExclude==="";if(!o)if(s){let c=a.dataset.radixToastAnnounceAlt;c&&n.push(c)}else n.push(...H0(a))}}),n}function $l(e,n,a,{discrete:o}){let s=a.originalEvent.currentTarget,c=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:a});n&&s.addEventListener(e,n,{once:!0}),o?aI(s,c):s.dispatchEvent(c)}var $0=(e,n,a=0)=>{let o=Math.abs(e.x),s=Math.abs(e.y),c=o>s;return n==="left"||n==="right"?c&&o>a:!c&&s>a};function Mk(e=()=>{}){let n=zu(e);iI(()=>{let a=0,o=0;return a=window.requestAnimationFrame(()=>o=window.requestAnimationFrame(n)),()=>{window.cancelAnimationFrame(a),window.cancelAnimationFrame(o)}},[n])}function Nk(e){return e.nodeType===e.ELEMENT_NODE}function Dk(e){let n=[],a=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{let s=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||s?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;a.nextNode();)n.push(a.currentNode);return n}function qd(e){let n=document.activeElement;return e.some(a=>a===n?!0:(a.focus(),document.activeElement!==n))}var jk=R0,W0=M0,U0=D0,K0=j0,Q0=z0,G0=F0,J0=zd,zk=Symbol("");b_=function(e,n){return Ee(e,function(a,o,s){o(this,n(a(this),s))})};function Fd(e,n){let a=null,o=new Map,s=new Set,c=f=>{let m;if(n===void 0)m=o.get(f);else for(let[w,x]of o)if(n(w,f)){m=x;break}if(m!==void 0)if(a!=null&&a(m[1],f))c.remove(f);else return m[0];let b=e(f);return o.set(f,[b,Date.now()]),d("CREATE",f,b),b},d=(f,m,b)=>{for(let w of s)w({type:f,param:m,atom:b})};return c.unstable_listen=f=>(s.add(f),()=>{s.delete(f)}),c.getParams=()=>o.keys(),c.remove=f=>{if(n===void 0){if(!o.has(f))return;let[m]=o.get(f);o.delete(f),d("REMOVE",f,m)}else for(let[m,[b]]of o)if(n(m,f)){o.delete(m),d("REMOVE",m,b);break}},c.setShouldRemove=f=>{if(a=f,a)for(let[m,[b,w]]of o)a(w,m)&&(o.delete(m),d("REMOVE",m,b))},c}var Bd=(e,n,a)=>(n.has(a)?n:n.set(a,e())).get(a),qk=new WeakMap,Fk=(e,n,a,o)=>Bd(e,Bd(()=>new WeakMap,Bd(()=>new WeakMap,qk,n),a),o);function Bk(e,n,a=Object.is){return Fk(()=>{let o=Symbol(),s=([d,f])=>{if(f===o)return n(d);let m=n(d,f);return a(f,m)?f:m},c=Ee(d=>{let f=d(c);return s([d(e),f])});return c.init=o,c},e,n,a)}var X0=(e,n,a)=>(n.has(a)?n:n.set(a,e())).get(a),Vk=new WeakMap,Hk=(e,n,a)=>X0(e,X0(()=>new WeakMap,Vk,n),a),$k={},Y0=e=>!!e.write,Wk=e=>typeof e=="function";function Uk(e,n){return Hk(()=>{let a=new WeakMap,o=(d,f)=>{let m=a.get(d);if(m)return m;let b=f&&a.get(f),w=[],x=[];return d.forEach((S,E)=>{let I=n?n(S):E;x[E]=I;let P=b&&b.atomList[b.keyList.indexOf(I)];if(P){w[E]=P;return}let z=B=>{let V=B(s),N=B(e),X=o(N,V==null?void 0:V.arr).keyList.indexOf(I);if(X<0||X>=N.length){let ce=d[o(d).keyList.indexOf(I)];if(ce)return ce;throw Error("splitAtom: index out of bounds for read")}return N[X]};w[E]=Y0(e)?Ee(z,(B,V,N)=>{let X=B(s),ce=B(e),A=o(ce,X==null?void 0:X.arr).keyList.indexOf(I);if(A<0||A>=ce.length)throw Error("splitAtom: index out of bounds for write");let q=Wk(N)?N(ce[A]):N;Object.is(ce[A],q)||V(e,[...ce.slice(0,A),q,...ce.slice(A+1)])}):Ee(z)}),m=b&&b.keyList.length===x.length&&b.keyList.every((S,E)=>S===x[E])?b:{arr:d,atomList:w,keyList:x},a.set(d,m),m},s=Ee(d=>{let f=d(s);return o(d(e),f==null?void 0:f.arr)});s.init=void 0;let c=Y0(e)?Ee(d=>d(s).atomList,(d,f,m)=>{switch(m.type){case"remove":{let b=d(c).indexOf(m.atom);if(b>=0){let w=d(e);f(e,[...w.slice(0,b),...w.slice(b+1)])}break}case"insert":{let b=m.before?d(c).indexOf(m.before):d(c).length;if(b>=0){let w=d(e);f(e,[...w.slice(0,b),m.value,...w.slice(b)])}break}case"move":{let b=d(c).indexOf(m.atom),w=m.before?d(c).indexOf(m.before):d(c).length;if(b>=0&&w>=0){let x=d(e);b<w?f(e,[...x.slice(0,b),...x.slice(b+1,w),x[b],...x.slice(w)]):f(e,[...x.slice(0,w),x[b],...x.slice(w,b),...x.slice(b+1)])}break}}}):Ee(d=>d(s).atomList);return c},e,n||$k)}var Z0=e=>typeof(e==null?void 0:e.then)=="function";function eg(e=()=>{try{return window.localStorage}catch{return}},n){var f;let a,o,s={getItem:(m,b)=>{var S;let w=E=>{if(E||(E=""),a!==E){try{o=JSON.parse(E,n==null?void 0:n.reviver)}catch{return b}a=E}return o},x=((S=e())==null?void 0:S.getItem(m))??null;return Z0(x)?x.then(w):w(x)},setItem:(m,b)=>{var w;return(w=e())==null?void 0:w.setItem(m,JSON.stringify(b,n==null?void 0:n.replacer))},removeItem:m=>{var b;return(b=e())==null?void 0:b.removeItem(m)}},c=m=>(b,w,x)=>m(b,S=>{let E;try{E=JSON.parse(S||"")}catch{E=x}w(E)}),d;try{d=(f=e())==null?void 0:f.subscribe}catch{}return!d&&typeof window<"u"&&typeof window.addEventListener=="function"&&window.Storage&&(d=(m,b)=>{if(!(e()instanceof window.Storage))return()=>{};let w=x=>{x.storageArea===e()&&x.key===m&&b(x.newValue)};return window.addEventListener("storage",w),()=>{window.removeEventListener("storage",w)}}),d&&(s.subscribe=c(d)),s}var Kk=eg();Rl=function(e,n,a=Kk,o){let s=Ee(o!=null&&o.getOnInit?a.getItem(e,n):n);return s.onMount=c=>{c(a.getItem(e,n));let d;return a.subscribe&&(d=a.subscribe(e,c,n)),d},Ee(c=>c(s),(c,d,f)=>{let m=typeof f=="function"?f(c(s)):f;return m===zk?(d(s,n),a.removeItem(e)):Z0(m)?m.then(b=>(d(s,b),a.setItem(e,b))):(d(s,m),a.setItem(e,m))})},gn=function(e){let n,a,o;return typeof e=="object"?(n=e.hashFunction,a=e.expiring,o=e.tags):n=e,(s,c,d)=>{if(d.value!=null)d.value=tg(d.value,n,a,o);else if(d.get!=null)d.get=tg(d.get,n,a,o);else throw"Only put a Memoize() decorator on a method or get accessor."}};var Vd=new Map;function tg(e,n,a=0,o){let s=Symbol("__memoized_map__");return function(...c){let d;this.hasOwnProperty(s)||Object.defineProperty(this,s,{configurable:!1,enumerable:!1,writable:!1,value:new Map});let f=this[s];if(Array.isArray(o))for(let m of o)Vd.has(m)?Vd.get(m).push(f):Vd.set(m,[f]);if(n||c.length>0||a>0){let m;m=n===!0?c.map(x=>x.toString()).join("!"):n?n.apply(this,c):c[0];let b=`${m}__timestamp`,w=!1;if(a>0)if(!f.has(b))w=!0;else{let x=f.get(b);w=Date.now()-x>a}f.has(m)&&!w?d=f.get(m):(d=e.apply(this,c),f.set(m,d),a>0&&f.set(b,Date.now()))}else{let m=this;f.has(m)?d=f.get(m):(d=e.apply(this,c),f.set(m,d))}return d}}ms=Ee(Wm()),g_=Ee(null),Pl=Ee(null),tx=Ee(void 0);var Qk=class{constructor(){ve(this,"store",new Map)}get length(){return this.store.size}clear(){this.store.clear()}getItem(e){return this.store.get(e)||null}key(e){return[...this.store.keys()][e]||null}removeItem(e){this.store.delete(e)}setItem(e,n){this.store.set(e,n)}};function Gk(){let{hasLocalStorage:e,hasSessionStorage:n}=JI();return e?window.localStorage:n?window.sessionStorage:new Qk}gs=Gk();let ma;lk=class{constructor(e,n=gs){this.defaultValue=e,this.storage=n}get(e){try{let n=this.storage.getItem(e);return n?JSON.parse(n):this.defaultValue}catch{return this.defaultValue}}set(e,n){this.storage.setItem(e,JSON.stringify(n))}remove(e){this.storage.removeItem(e)}},fd=class{constructor(e,n,a=gs){this.schema=e,this.getDefaultValue=n,this.storage=a}get(e){try{let n=this.storage.getItem(e);if(n==null)return this.getDefaultValue();let a=this.schema.safeParse(JSON.parse(n));return a.success?a.data:(we.warn("Error parsing zod local storage",a.error),this.getDefaultValue())}catch(n){return we.warn("Error getting zod local storage",n),this.getDefaultValue()}}set(e,n){this.storage.setItem(e,JSON.stringify(n))}remove(e){this.storage.removeItem(e)}},f0=class extends fd{constructor(e,n,a){let o=Pe.get(ms);super(n,a),this.filename=o;try{this.unsubscribeFromFilename=Pe.sub(ms,()=>{let s=Pe.get(ms);this.handleFilenameChange(e,s)})}catch{this.unsubscribeFromFilename=null}}get(e){return super.get(this.createScopedKey(e,this.filename))}set(e,n){super.set(this.createScopedKey(e,this.filename),n)}remove(e){super.remove(this.createScopedKey(e,this.filename))}createScopedKey(e,n){return n?`${e}:${n}`:e}handleFilenameChange(e,n){if(n&&n!==this.filename){let a=this.get(e);this.remove(e),this.filename=n,this.set(e,a)}}dispose(){this.unsubscribeFromFilename&&(this.unsubscribeFromFilename=(this.unsubscribeFromFilename(),null))}},ma="marimo:notebook-col-sizes";function Jk(){return{widths:[]}}var no=new f0(ma,Ow({widths:G6(U6([K6(),Q6("contentWidth")]).default("contentWidth"))}),Jk);gx={getColumnWidth:e=>no.get(ma).widths[e]??"contentWidth",saveColumnWidth:(e,n)=>{let a=no.get(ma).widths;if(a[e])a[e]=n;else{for(;a.length<=e;)a.push("contentWidth");a[e]=n}no.set(ma,{widths:a})},clearStorage:()=>{no.remove(ma)}};function Xk(e,n){let a=no.get(ma).widths,o=El(a,e,n);no.set(ma,{widths:o})}var ng,rg,ag,ir,ig,og,sg,lg,yn,cg,ug,dg,fg,pg,hg,Rt;function Tn(e,n,a,o,s){var c={};return Object.keys(o).forEach(function(d){c[d]=o[d]}),c.enumerable=!!c.enumerable,c.configurable=!!c.configurable,("value"in c||c.initializer)&&(c.writable=!0),c=a.slice().reverse().reduce(function(d,f){return f(e,n,d)||d},c),s&&c.initializer!==void 0&&(c.value=c.initializer?c.initializer.call(s):void 0,c.initializer=void 0),c.initializer===void 0?(Object.defineProperty(e,n,c),null):c}let ii=(ng=gn(),rg=gn(),ag=gn(),ir=class{constructor(e,n,a){this.value=e,this.isCollapsed=n,this.children=a}geDescendantCount(){let e=0,n=[...this.children];for(;n.length>0;){let a=n.pop();e++;for(let o=a.children.length-1;o>=0;o--)n.push(a.children[o])}return e}getDescendants(){let e=[],n=[...this.children];for(;n.length>0;){let a=n.pop();e.push(a.value);for(let o=a.children.length-1;o>=0;o--)n.push(a.children[o])}return e}get inOrderIds(){let e=[],n=a=>{e.push(a.value);for(let o of a.children)n(o)};for(let a of this.children)n(a);return e}toString(){return this.isCollapsed?`${this.value} (collapsed)`:String(this.value)}equals(e){return this.value===e.value}},Tn(ir.prototype,"geDescendantCount",[ng],Object.getOwnPropertyDescriptor(ir.prototype,"geDescendantCount"),ir.prototype),Tn(ir.prototype,"getDescendants",[rg],Object.getOwnPropertyDescriptor(ir.prototype,"getDescendants"),ir.prototype),Tn(ir.prototype,"inOrderIds",[ag],Object.getOwnPropertyDescriptor(ir.prototype,"inOrderIds"),ir.prototype),ir);var Yk=0;let ro;ro=(ig=gn(),og=gn(),sg=gn(),lg=gn(),yn=class to{constructor(n,a){this.nodes=n,this.id=a}static from(n){let a=`tree_${Yk++}`;return new to(n.map(o=>new ii(o,!1,[])),a)}static fromWithPreviousShape(n,a){var c;if(!a)return to.from(n);let o=a.id,s=new to(n.map(d=>new ii(d,!1,[])),o);for(let d of n)if(a.isCollapsed(d)){let f=((c=a._nodeMap.get(d))==null?void 0:c.children)??[];for(let m=f.length-1;m>=0;m--){let b=f[m];if(s._nodeMap.has(b.value)){s=s.collapse(d,b.value);break}}}return s}withNodes(n){return new to(n,this.id)}get topLevelIds(){return this.nodes.map(n=>n.value)}get inOrderIds(){return this.nodes.flatMap(n=>[n.value,...n.inOrderIds])}get idSet(){return new Set(this.inOrderIds)}get length(){return this.nodes.length}get _nodeMap(){let n=new Map;for(let a of this.nodes)n.set(a.value,a);return n}getDescendants(n){let a=this._nodeMap.get(n);return a?a.getDescendants():(we.warn(`Node ${n} not found in tree. Valid ids: ${this.topLevelIds}`),[])}isCollapsed(n){let a=this._nodeMap.get(n);return a?a.isCollapsed:(we.warn(`Node ${n} not found in tree. Valid ids: ${this.topLevelIds}`),!1)}indexOfOrThrow(n){let a=this.nodes.findIndex(o=>o.value===n);if(a===-1)throw Error(`Node ${n} not found in tree. Valid ids: ${this.topLevelIds}`);return a}slice(n,a){return this.nodes.slice(n,a).map(o=>o.value)}moveToFront(n){let a=this.indexOfOrThrow(n);return this.withNodes(El(this.nodes,a,0))}moveToBack(n){let a=this.indexOfOrThrow(n);return this.withNodes(El(this.nodes,a,this.nodes.length-1))}collapse(n,a){let o=this.nodes.findIndex(m=>m.value===n);if(o===-1)throw Error(`Node ${n} not found in tree. Valid ids: ${this.topLevelIds}`);let s=a===void 0?this.nodes.length:this.nodes.findIndex(m=>m.value===a);if(s===-1)throw Error(`Node ${a} not found in tree`);if(s<o)throw Error(`Node ${a} is before node ${n}`);let c=[...this.nodes],d=c[o];if(d.isCollapsed)throw Error(`Node ${n} is already collapsed`);let f=c.splice(o+1,s-o);return c[o]=new ii(d.value,!0,f),this.withNodes(c)}collapseAll(n){let a=[...this.nodes];if(n.length===0)throw Error("No collapse ranges provided");if(n.length!==a.length)throw Error(`Collapse ranges length ${n.length} does not match tree length ${a.length}`);let o=a.length-1;for(;o>=0;){let s=a[o],c=n[o];if(!s.isCollapsed&&c){let{id:d,until:f}=c;if(d!==s.value)throw Error(`Node ${s.value} does not match collapse range id ${d}`);let m=f===void 0?a.length:a.findIndex(w=>w.value===f);if(m===-1)throw Error(`Node ${f} not found in tree`);if(m<o)throw Error(`Node ${f} is before node ${d}`);let b=a.splice(o+1,m-o);a[o]=new ii(s.value,!0,b),o--}else o--}return this.withNodes(a)}expand(n){let a=this.nodes.findIndex(c=>c.value===n);if(a===-1)throw Error(`Node ${n} not found in tree. Valid ids: ${this.topLevelIds}`);let o=[...this.nodes],s=o[a];return s.isCollapsed?(o[a]=new ii(s.value,!1,[]),o=Xh(o,a+1,s.children),this.withNodes(o)):this}expandAll(){let n=[...this.nodes],a=0;for(;a<n.length;){let o=n[a];o.isCollapsed&&(n[a]=new ii(o.value,!1,[]),n=Xh(n,a+1,o.children)),a++}return this.withNodes(n)}move(n,a){return this.withNodes(El(this.nodes,n,a))}at(n){var a;return(a=this.nodes.at(n))==null?void 0:a.value}atOrThrow(n){let a=this.nodes.at(n);if(a===void 0)throw Error(`Node at index ${n} not found in tree`);return a.value}first(){return this.atOrThrow(0)}last(){return this.atOrThrow(this.nodes.length-1)}after(n){let a=this.indexOfOrThrow(n);if(a!==this.nodes.length-1)return this.at(a+1)}before(n){let a=this.indexOfOrThrow(n);if(a!==0)return this.at(a-1)}insert(n,a){return this.withNodes(e_(this.nodes,a,new ii(n,!1,[])))}insertAtEnd(n){return this.insert(n,this.nodes.length)}insertAtStart(n){return this.insert(n,0)}deleteAtIndex(n){let a=this.atOrThrow(n),o=this.expand(a);return o.withNodes(GI(o.nodes,n))}delete(n){let a=this.indexOfOrThrow(n);return this.deleteAtIndex(a)}getCount(n){var a;return((a=this._nodeMap.get(n))==null?void 0:a.geDescendantCount())??0}findAndExpandDeep(n){let a=this.find(n);return a.length===0?this:a.reduce((o,s)=>o.expand(s),this)}find(n){function a(o,s){for(let c of o){if(c.value===n)return[...s,n];let d=a(c.children,[...s,c.value]);if(d.length>0)return d}return[]}return a(this.nodes,[])}split(n){let a=this.nodes.findIndex(c=>c.value===n);if(a===-1)throw Error(`Node ${n} not found in tree`);let o=this.nodes.slice(0,a),s=this.nodes.slice(a);return o.length===0?[to.from([]),this.withNodes(s)]:[this.withNodes(o),to.from([]).withNodes(s)]}equals(n){return this.nodes.length===n.nodes.length&&this.nodes.every((a,o)=>a.value===n.nodes[o].value)}toString(){let n=0,a="",o=s=>{for(let c of s)a+=`${" ".repeat(n*2)}${c.toString()}
12
+ `," ").replaceAll("\r","")}function Od(e){return typeof e=="object"&&e&&"$bigint"in e&&typeof e.$bigint=="string"?BigInt(e.$bigint):e}Sm="object-id",T_="random-id";var _0="abcdefghijklmnopqrstuvwxyz",x0=_0+_0.toUpperCase(),k0=new Set;fs="__scratch__",Hn="setup",Za={create(){let e=0,n;do{let a="";for(let o=0;o<4;o++)a+=x0[Math.floor(Math.random()*x0.length)];n=a,e++}while(k0.has(n)&&e<100);if(e>=100)throw Error("Failed to generate unique CellId after 100 attempts");return k0.add(n),n}},En={create(e){return an(e!=null,"cellId is required"),`cell-${e}`},parse(e){return e.slice(5)},findElement(e){return e.closest('div[id^="cell-"]')},findElementThroughShadowDOMs(e){let n=e;for(;n;){let a=En.findElement(n);if(a)return a;let o=n.getRootNode();if(n=o instanceof ShadowRoot?o.host:n.parentElement,n===o)break}return null}},h_=function(e){let n=null,a=En.findElementThroughShadowDOMs(e);return a&&(n=En.parse(a.id)),n},Id={parse(e){return e.getAttribute(Sm)},parseOrThrow(e){let n=Id.parse(e);return an(n,"<marimo-ui-element/> missing object-id attribute"),n}},C_={create(e){return`output-${e}`}},mm=new class{getFilename(){return this.getSearchParam("filename")}setFilename(e){this.setSearchParam("filename",e)}getCodeFromSearchParam(){return this.getSearchParam("code")}getCodeFromHash(){let e=window.location.hash;return e.startsWith("#code/")?e.slice(6):null}setCodeForHash(e){window.location.hash=`#code/${e}`}setSearchParam(e,n){let a=new URL(window.location.href);a.searchParams.set(e,n),window.history.replaceState({},"",a.toString())}getSearchParam(e){return new URL(window.location.href).searchParams.get(e)}},Uu=function(e){return Cm(e??"")},Px=function(e){return Rr.mapValues(e.dataset,n=>typeof n=="string"?Uu(n):n)},H_=function(e,n){let a=e.parentElement?Id.parse(e.parentElement):void 0;return a&&n.has(a)?n.lookupValue(a):Uu(e.dataset.initialValue)},Wm=function(){if(Nw())return document.title||null;if(ju()){let a=mm.getFilename();if(a)return a}let e=document.querySelector("marimo-filename");Xu(e,"marimo-filename tag not found");let n=e.innerHTML;return n.length===0?null:n};var xe=Mu(Nu(),1),M=Mu(eI(),1),Vl="Checkbox",[mk,I8]=Dw(Vl),[gk,Ad]=mk(Vl);function yk(e){let{__scopeCheckbox:n,checked:a,children:o,defaultChecked:s,disabled:c,form:d,name:f,onCheckedChange:m,required:b,value:w="on",internal_do_not_use_render:x}=e,[S,E]=zw({prop:a,defaultProp:s??!1,onChange:m,caller:Vl}),[I,P]=xe.useState(null),[z,B]=xe.useState(null),V=xe.useRef(!1),N=I?!!d||!!I.closest("form"):!0,X={checked:S,disabled:c,setChecked:E,control:I,setControl:P,name:f,form:d,value:w,hasConsumerStoppedPropagationRef:V,required:b,defaultChecked:ha(s)?!1:s,isFormControl:N,bubbleInput:z,setBubbleInput:B};return(0,M.jsx)(gk,{scope:n,...X,children:vk(x)?x(X):o})}var C0="CheckboxTrigger",S0=xe.forwardRef(({__scopeCheckbox:e,onKeyDown:n,onClick:a,...o},s)=>{let{control:c,value:d,disabled:f,checked:m,required:b,setControl:w,setChecked:x,hasConsumerStoppedPropagationRef:S,isFormControl:E,bubbleInput:I}=Ad(C0,e),P=Du(s,w),z=xe.useRef(m);return xe.useEffect(()=>{let B=c==null?void 0:c.form;if(B){let V=()=>x(z.current);return B.addEventListener("reset",V),()=>B.removeEventListener("reset",V)}},[c,x]),(0,M.jsx)(sa.button,{type:"button",role:"checkbox","aria-checked":ha(m)?"mixed":m,"aria-required":b,"data-state":O0(m),"data-disabled":f?"":void 0,disabled:f,value:d,...o,ref:P,onKeyDown:nr(n,B=>{B.key==="Enter"&&B.preventDefault()}),onClick:nr(a,B=>{x(V=>ha(V)?!0:!V),I&&E&&(S.current=B.isPropagationStopped(),S.current||B.stopPropagation())})})});S0.displayName=C0;var Rd=xe.forwardRef((e,n)=>{let{__scopeCheckbox:a,name:o,checked:s,defaultChecked:c,required:d,disabled:f,value:m,onCheckedChange:b,form:w,...x}=e;return(0,M.jsx)(yk,{__scopeCheckbox:a,checked:s,defaultChecked:c,disabled:f,required:d,onCheckedChange:b,name:o,form:w,value:m,internal_do_not_use_render:({isFormControl:S})=>(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(S0,{...x,ref:n,__scopeCheckbox:a}),S&&(0,M.jsx)(L0,{__scopeCheckbox:a})]})})});Rd.displayName=Vl;var E0="CheckboxIndicator",T0=xe.forwardRef((e,n)=>{let{__scopeCheckbox:a,forceMount:o,...s}=e,c=Ad(E0,a);return(0,M.jsx)(jw,{present:o||ha(c.checked)||c.checked===!0,children:(0,M.jsx)(sa.span,{"data-state":O0(c.checked),"data-disabled":c.disabled?"":void 0,...s,ref:n,style:{pointerEvents:"none",...e.style}})})});T0.displayName=E0;var I0="CheckboxBubbleInput",L0=xe.forwardRef(({__scopeCheckbox:e,...n},a)=>{let{control:o,hasConsumerStoppedPropagationRef:s,checked:c,defaultChecked:d,required:f,disabled:m,name:b,value:w,form:x,bubbleInput:S,setBubbleInput:E}=Ad(I0,e),I=Du(a,E),P=uI(c),z=oI(o);xe.useEffect(()=>{let V=S;if(!V)return;let N=window.HTMLInputElement.prototype,X=Object.getOwnPropertyDescriptor(N,"checked").set,ce=!s.current;if(P!==c&&X){let A=new Event("click",{bubbles:ce});V.indeterminate=ha(c),X.call(V,ha(c)?!1:c),V.dispatchEvent(A)}},[S,P,c,s]);let B=xe.useRef(ha(c)?!1:c);return(0,M.jsx)(sa.input,{type:"checkbox","aria-hidden":!0,defaultChecked:d??B.current,required:f,disabled:m,name:b,value:w,form:x,...n,tabIndex:-1,ref:I,style:{...n.style,...z,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});L0.displayName=I0;function vk(e){return typeof e=="function"}function ha(e){return e==="indeterminate"}function O0(e){return ha(e)?"indeterminate":e?"checked":"unchecked"}var bk=Mu(Lw(),1),Pd="ToastProvider",[Md,wk,_k]=sI("Toast"),[A0,L8]=Dw("Toast",[_k]),[xk,Hl]=A0(Pd),R0=e=>{let{__scopeToast:n,label:a="Notification",duration:o=5e3,swipeDirection:s="right",swipeThreshold:c=50,children:d}=e,[f,m]=xe.useState(null),[b,w]=xe.useState(0),x=xe.useRef(!1),S=xe.useRef(!1);return a.trim()||console.error(`Invalid prop \`label\` supplied to \`${Pd}\`. Expected non-empty \`string\`.`),(0,M.jsx)(Md.Provider,{scope:n,children:(0,M.jsx)(xk,{scope:n,label:a,duration:o,swipeDirection:s,swipeThreshold:c,toastCount:b,viewport:f,onViewportChange:m,onToastAdd:xe.useCallback(()=>w(E=>E+1),[]),onToastRemove:xe.useCallback(()=>w(E=>E-1),[]),isFocusedToastEscapeKeyDownRef:x,isClosePausedRef:S,children:d})})};R0.displayName=Pd;var P0="ToastViewport",kk=["F8"],Nd="toast.viewportPause",Dd="toast.viewportResume",M0=xe.forwardRef((e,n)=>{let{__scopeToast:a,hotkey:o=kk,label:s="Notifications ({hotkey})",...c}=e,d=Hl(P0,a),f=wk(a),m=xe.useRef(null),b=xe.useRef(null),w=xe.useRef(null),x=xe.useRef(null),S=Du(n,x,d.onViewportChange),E=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),I=d.toastCount>0;xe.useEffect(()=>{let z=B=>{var V;o.length!==0&&o.every(N=>B[N]||B.code===N)&&((V=x.current)==null||V.focus())};return document.addEventListener("keydown",z),()=>document.removeEventListener("keydown",z)},[o]),xe.useEffect(()=>{let z=m.current,B=x.current;if(I&&z&&B){let V=()=>{if(!d.isClosePausedRef.current){let A=new CustomEvent(Nd);B.dispatchEvent(A),d.isClosePausedRef.current=!0}},N=()=>{if(d.isClosePausedRef.current){let A=new CustomEvent(Dd);B.dispatchEvent(A),d.isClosePausedRef.current=!1}},X=A=>{z.contains(A.relatedTarget)||N()},ce=()=>{z.contains(document.activeElement)||N()};return z.addEventListener("focusin",V),z.addEventListener("focusout",X),z.addEventListener("pointermove",V),z.addEventListener("pointerleave",ce),window.addEventListener("blur",V),window.addEventListener("focus",N),()=>{z.removeEventListener("focusin",V),z.removeEventListener("focusout",X),z.removeEventListener("pointermove",V),z.removeEventListener("pointerleave",ce),window.removeEventListener("blur",V),window.removeEventListener("focus",N)}}},[I,d.isClosePausedRef]);let P=xe.useCallback(({tabbingDirection:z})=>{let B=f().map(V=>{let N=V.ref.current,X=[N,...Dk(N)];return z==="forwards"?X:X.reverse()});return(z==="forwards"?B.reverse():B).flat()},[f]);return xe.useEffect(()=>{let z=x.current;if(z){let B=V=>{var X,ce,A;let N=V.altKey||V.ctrlKey||V.metaKey;if(V.key==="Tab"&&!N){let q=document.activeElement,$=V.shiftKey;if(V.target===z&&$){(X=b.current)==null||X.focus();return}let oe=P({tabbingDirection:$?"backwards":"forwards"}),de=oe.findIndex(he=>he===q);qd(oe.slice(de+1))?V.preventDefault():$?(ce=b.current)==null||ce.focus():(A=w.current)==null||A.focus()}};return z.addEventListener("keydown",B),()=>z.removeEventListener("keydown",B)}},[f,P]),(0,M.jsxs)(iI,{ref:m,role:"region","aria-label":s.replace("{hotkey}",E),tabIndex:-1,style:{pointerEvents:I?void 0:"none"},children:[I&&(0,M.jsx)(jd,{ref:b,onFocusFromOutsideViewport:()=>{qd(P({tabbingDirection:"forwards"}))}}),(0,M.jsx)(Md.Slot,{scope:a,children:(0,M.jsx)(sa.ol,{tabIndex:-1,...c,ref:S})}),I&&(0,M.jsx)(jd,{ref:w,onFocusFromOutsideViewport:()=>{qd(P({tabbingDirection:"backwards"}))}})]})});M0.displayName=P0;var N0="ToastFocusProxy",jd=xe.forwardRef((e,n)=>{let{__scopeToast:a,onFocusFromOutsideViewport:o,...s}=e,c=Hl(N0,a);return(0,M.jsx)(qw,{tabIndex:0,...s,ref:n,style:{position:"fixed"},onFocus:d=>{var m;let f=d.relatedTarget;(m=c.viewport)!=null&&m.contains(f)||o()}})});jd.displayName=N0;var vs="Toast",Ck="toast.swipeStart",Sk="toast.swipeMove",Ek="toast.swipeCancel",Tk="toast.swipeEnd",D0=xe.forwardRef((e,n)=>{let{forceMount:a,open:o,defaultOpen:s,onOpenChange:c,...d}=e,[f,m]=zw({prop:o,defaultProp:s??!0,onChange:c,caller:vs});return(0,M.jsx)(jw,{present:a||f,children:(0,M.jsx)(Ok,{open:f,...d,ref:n,onClose:()=>m(!1),onPause:zu(e.onPause),onResume:zu(e.onResume),onSwipeStart:nr(e.onSwipeStart,b=>{b.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:nr(e.onSwipeMove,b=>{let{x:w,y:x}=b.detail.delta;b.currentTarget.setAttribute("data-swipe","move"),b.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${w}px`),b.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${x}px`)}),onSwipeCancel:nr(e.onSwipeCancel,b=>{b.currentTarget.setAttribute("data-swipe","cancel"),b.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),b.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),b.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),b.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:nr(e.onSwipeEnd,b=>{let{x:w,y:x}=b.detail.delta;b.currentTarget.setAttribute("data-swipe","end"),b.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),b.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),b.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${w}px`),b.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${x}px`),m(!1)})})})});D0.displayName=vs;var[Ik,Lk]=A0(vs,{onClose(){}}),Ok=xe.forwardRef((e,n)=>{let{__scopeToast:a,type:o="foreground",duration:s,open:c,onClose:d,onEscapeKeyDown:f,onPause:m,onResume:b,onSwipeStart:w,onSwipeMove:x,onSwipeCancel:S,onSwipeEnd:E,...I}=e,P=Hl(vs,a),[z,B]=xe.useState(null),V=Du(n,be=>B(be)),N=xe.useRef(null),X=xe.useRef(null),ce=s||P.duration,A=xe.useRef(0),q=xe.useRef(ce),$=xe.useRef(0),{onToastAdd:oe,onToastRemove:de}=P,he=zu(()=>{var be;z!=null&&z.contains(document.activeElement)&&((be=P.viewport)==null||be.focus()),d()}),ye=xe.useCallback(be=>{!be||be===1/0||(window.clearTimeout($.current),A.current=new Date().getTime(),$.current=window.setTimeout(he,be))},[he]);xe.useEffect(()=>{let be=P.viewport;if(be){let le=()=>{ye(q.current),b==null||b()},ie=()=>{let ee=new Date().getTime()-A.current;q.current-=ee,window.clearTimeout($.current),m==null||m()};return be.addEventListener(Nd,ie),be.addEventListener(Dd,le),()=>{be.removeEventListener(Nd,ie),be.removeEventListener(Dd,le)}}},[P.viewport,ce,m,b,ye]),xe.useEffect(()=>{c&&!P.isClosePausedRef.current&&ye(ce)},[c,ce,P.isClosePausedRef,ye]),xe.useEffect(()=>(oe(),()=>de()),[oe,de]);let _e=xe.useMemo(()=>z?H0(z):null,[z]);return P.viewport?(0,M.jsxs)(M.Fragment,{children:[_e&&(0,M.jsx)(Ak,{__scopeToast:a,role:"status","aria-live":o==="foreground"?"assertive":"polite",children:_e}),(0,M.jsx)(Ik,{scope:a,onClose:he,children:bk.createPortal((0,M.jsx)(Md.ItemSlot,{scope:a,children:(0,M.jsx)(aI,{asChild:!0,onEscapeKeyDown:nr(f,()=>{P.isFocusedToastEscapeKeyDownRef.current||he(),P.isFocusedToastEscapeKeyDownRef.current=!1}),children:(0,M.jsx)(sa.li,{tabIndex:0,"data-state":c?"open":"closed","data-swipe-direction":P.swipeDirection,...I,ref:V,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:nr(e.onKeyDown,be=>{be.key==="Escape"&&(f==null||f(be.nativeEvent),be.nativeEvent.defaultPrevented||(P.isFocusedToastEscapeKeyDownRef.current=!0,he()))}),onPointerDown:nr(e.onPointerDown,be=>{be.button===0&&(N.current={x:be.clientX,y:be.clientY})}),onPointerMove:nr(e.onPointerMove,be=>{if(!N.current)return;let le=be.clientX-N.current.x,ie=be.clientY-N.current.y,ee=!!X.current,W=["left","right"].includes(P.swipeDirection),Ie=["left","up"].includes(P.swipeDirection)?Math.min:Math.max,He=W?Ie(0,le):0,et=W?0:Ie(0,ie),Fe=be.pointerType==="touch"?10:2,Ne={x:He,y:et},Le={originalEvent:be,delta:Ne};ee?(X.current=Ne,$l(Sk,x,Le,{discrete:!1})):$0(Ne,P.swipeDirection,Fe)?(X.current=Ne,$l(Ck,w,Le,{discrete:!1}),be.target.setPointerCapture(be.pointerId)):(Math.abs(le)>Fe||Math.abs(ie)>Fe)&&(N.current=null)}),onPointerUp:nr(e.onPointerUp,be=>{let le=X.current,ie=be.target;if(ie.hasPointerCapture(be.pointerId)&&ie.releasePointerCapture(be.pointerId),X.current=null,N.current=null,le){let ee=be.currentTarget,W={originalEvent:be,delta:le};$0(le,P.swipeDirection,P.swipeThreshold)?$l(Tk,E,W,{discrete:!0}):$l(Ek,S,W,{discrete:!0}),ee.addEventListener("click",Ie=>Ie.preventDefault(),{once:!0})}})})})}),P.viewport)})]}):null}),Ak=e=>{let{__scopeToast:n,children:a,...o}=e,s=Hl(vs,n),[c,d]=xe.useState(!1),[f,m]=xe.useState(!1);return Mk(()=>d(!0)),xe.useEffect(()=>{let b=window.setTimeout(()=>m(!0),1e3);return()=>window.clearTimeout(b)},[]),f?null:(0,M.jsx)(rI,{asChild:!0,children:(0,M.jsx)(qw,{...o,children:c&&(0,M.jsxs)(M.Fragment,{children:[s.label," ",a]})})})},Rk="ToastTitle",j0=xe.forwardRef((e,n)=>{let{__scopeToast:a,...o}=e;return(0,M.jsx)(sa.div,{...o,ref:n})});j0.displayName=Rk;var Pk="ToastDescription",z0=xe.forwardRef((e,n)=>{let{__scopeToast:a,...o}=e;return(0,M.jsx)(sa.div,{...o,ref:n})});z0.displayName=Pk;var q0="ToastAction",F0=xe.forwardRef((e,n)=>{let{altText:a,...o}=e;return a.trim()?(0,M.jsx)(V0,{altText:a,asChild:!0,children:(0,M.jsx)(zd,{...o,ref:n})}):(console.error(`Invalid prop \`altText\` supplied to \`${q0}\`. Expected non-empty \`string\`.`),null)});F0.displayName=q0;var B0="ToastClose",zd=xe.forwardRef((e,n)=>{let{__scopeToast:a,...o}=e,s=Lk(B0,a);return(0,M.jsx)(V0,{asChild:!0,children:(0,M.jsx)(sa.button,{type:"button",...o,ref:n,onClick:nr(e.onClick,s.onClose)})})});zd.displayName=B0;var V0=xe.forwardRef((e,n)=>{let{__scopeToast:a,altText:o,...s}=e;return(0,M.jsx)(sa.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":o||void 0,...s,ref:n})});function H0(e){let n=[];return Array.from(e.childNodes).forEach(a=>{if(a.nodeType===a.TEXT_NODE&&a.textContent&&n.push(a.textContent),Nk(a)){let o=a.ariaHidden||a.hidden||a.style.display==="none",s=a.dataset.radixToastAnnounceExclude==="";if(!o)if(s){let c=a.dataset.radixToastAnnounceAlt;c&&n.push(c)}else n.push(...H0(a))}}),n}function $l(e,n,a,{discrete:o}){let s=a.originalEvent.currentTarget,c=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:a});n&&s.addEventListener(e,n,{once:!0}),o?tI(s,c):s.dispatchEvent(c)}var $0=(e,n,a=0)=>{let o=Math.abs(e.x),s=Math.abs(e.y),c=o>s;return n==="left"||n==="right"?c&&o>a:!c&&s>a};function Mk(e=()=>{}){let n=zu(e);nI(()=>{let a=0,o=0;return a=window.requestAnimationFrame(()=>o=window.requestAnimationFrame(n)),()=>{window.cancelAnimationFrame(a),window.cancelAnimationFrame(o)}},[n])}function Nk(e){return e.nodeType===e.ELEMENT_NODE}function Dk(e){let n=[],a=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{let s=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||s?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;a.nextNode();)n.push(a.currentNode);return n}function qd(e){let n=document.activeElement;return e.some(a=>a===n?!0:(a.focus(),document.activeElement!==n))}var jk=R0,W0=M0,U0=D0,K0=j0,Q0=z0,G0=F0,J0=zd,zk=Symbol("");b_=function(e,n){return Ee(e,function(a,o,s){o(this,n(a(this),s))})};function Fd(e,n){let a=null,o=new Map,s=new Set,c=f=>{let m;if(n===void 0)m=o.get(f);else for(let[w,x]of o)if(n(w,f)){m=x;break}if(m!==void 0)if(a!=null&&a(m[1],f))c.remove(f);else return m[0];let b=e(f);return o.set(f,[b,Date.now()]),d("CREATE",f,b),b},d=(f,m,b)=>{for(let w of s)w({type:f,param:m,atom:b})};return c.unstable_listen=f=>(s.add(f),()=>{s.delete(f)}),c.getParams=()=>o.keys(),c.remove=f=>{if(n===void 0){if(!o.has(f))return;let[m]=o.get(f);o.delete(f),d("REMOVE",f,m)}else for(let[m,[b]]of o)if(n(m,f)){o.delete(m),d("REMOVE",m,b);break}},c.setShouldRemove=f=>{if(a=f,a)for(let[m,[b,w]]of o)a(w,m)&&(o.delete(m),d("REMOVE",m,b))},c}var Bd=(e,n,a)=>(n.has(a)?n:n.set(a,e())).get(a),qk=new WeakMap,Fk=(e,n,a,o)=>Bd(e,Bd(()=>new WeakMap,Bd(()=>new WeakMap,qk,n),a),o);function Bk(e,n,a=Object.is){return Fk(()=>{let o=Symbol(),s=([d,f])=>{if(f===o)return n(d);let m=n(d,f);return a(f,m)?f:m},c=Ee(d=>{let f=d(c);return s([d(e),f])});return c.init=o,c},e,n,a)}var X0=(e,n,a)=>(n.has(a)?n:n.set(a,e())).get(a),Vk=new WeakMap,Hk=(e,n,a)=>X0(e,X0(()=>new WeakMap,Vk,n),a),$k={},Y0=e=>!!e.write,Wk=e=>typeof e=="function";function Uk(e,n){return Hk(()=>{let a=new WeakMap,o=(d,f)=>{let m=a.get(d);if(m)return m;let b=f&&a.get(f),w=[],x=[];return d.forEach((S,E)=>{let I=n?n(S):E;x[E]=I;let P=b&&b.atomList[b.keyList.indexOf(I)];if(P){w[E]=P;return}let z=B=>{let V=B(s),N=B(e),X=o(N,V==null?void 0:V.arr).keyList.indexOf(I);if(X<0||X>=N.length){let ce=d[o(d).keyList.indexOf(I)];if(ce)return ce;throw Error("splitAtom: index out of bounds for read")}return N[X]};w[E]=Y0(e)?Ee(z,(B,V,N)=>{let X=B(s),ce=B(e),A=o(ce,X==null?void 0:X.arr).keyList.indexOf(I);if(A<0||A>=ce.length)throw Error("splitAtom: index out of bounds for write");let q=Wk(N)?N(ce[A]):N;Object.is(ce[A],q)||V(e,[...ce.slice(0,A),q,...ce.slice(A+1)])}):Ee(z)}),m=b&&b.keyList.length===x.length&&b.keyList.every((S,E)=>S===x[E])?b:{arr:d,atomList:w,keyList:x},a.set(d,m),m},s=Ee(d=>{let f=d(s);return o(d(e),f==null?void 0:f.arr)});s.init=void 0;let c=Y0(e)?Ee(d=>d(s).atomList,(d,f,m)=>{switch(m.type){case"remove":{let b=d(c).indexOf(m.atom);if(b>=0){let w=d(e);f(e,[...w.slice(0,b),...w.slice(b+1)])}break}case"insert":{let b=m.before?d(c).indexOf(m.before):d(c).length;if(b>=0){let w=d(e);f(e,[...w.slice(0,b),m.value,...w.slice(b)])}break}case"move":{let b=d(c).indexOf(m.atom),w=m.before?d(c).indexOf(m.before):d(c).length;if(b>=0&&w>=0){let x=d(e);b<w?f(e,[...x.slice(0,b),...x.slice(b+1,w),x[b],...x.slice(w)]):f(e,[...x.slice(0,w),x[b],...x.slice(w,b),...x.slice(b+1)])}break}}}):Ee(d=>d(s).atomList);return c},e,n||$k)}var Z0=e=>typeof(e==null?void 0:e.then)=="function";function eg(e=()=>{try{return window.localStorage}catch{return}},n){var f;let a,o,s={getItem:(m,b)=>{var S;let w=E=>{if(E||(E=""),a!==E){try{o=JSON.parse(E,n==null?void 0:n.reviver)}catch{return b}a=E}return o},x=((S=e())==null?void 0:S.getItem(m))??null;return Z0(x)?x.then(w):w(x)},setItem:(m,b)=>{var w;return(w=e())==null?void 0:w.setItem(m,JSON.stringify(b,n==null?void 0:n.replacer))},removeItem:m=>{var b;return(b=e())==null?void 0:b.removeItem(m)}},c=m=>(b,w,x)=>m(b,S=>{let E;try{E=JSON.parse(S||"")}catch{E=x}w(E)}),d;try{d=(f=e())==null?void 0:f.subscribe}catch{}return!d&&typeof window<"u"&&typeof window.addEventListener=="function"&&window.Storage&&(d=(m,b)=>{if(!(e()instanceof window.Storage))return()=>{};let w=x=>{x.storageArea===e()&&x.key===m&&b(x.newValue)};return window.addEventListener("storage",w),()=>{window.removeEventListener("storage",w)}}),d&&(s.subscribe=c(d)),s}var Kk=eg();Rl=function(e,n,a=Kk,o){let s=Ee(o!=null&&o.getOnInit?a.getItem(e,n):n);return s.onMount=c=>{c(a.getItem(e,n));let d;return a.subscribe&&(d=a.subscribe(e,c,n)),d},Ee(c=>c(s),(c,d,f)=>{let m=typeof f=="function"?f(c(s)):f;return m===zk?(d(s,n),a.removeItem(e)):Z0(m)?m.then(b=>(d(s,b),a.setItem(e,b))):(d(s,m),a.setItem(e,m))})},gn=function(e){let n,a,o;return typeof e=="object"?(n=e.hashFunction,a=e.expiring,o=e.tags):n=e,(s,c,d)=>{if(d.value!=null)d.value=tg(d.value,n,a,o);else if(d.get!=null)d.get=tg(d.get,n,a,o);else throw"Only put a Memoize() decorator on a method or get accessor."}};var Vd=new Map;function tg(e,n,a=0,o){let s=Symbol("__memoized_map__");return function(...c){let d;this.hasOwnProperty(s)||Object.defineProperty(this,s,{configurable:!1,enumerable:!1,writable:!1,value:new Map});let f=this[s];if(Array.isArray(o))for(let m of o)Vd.has(m)?Vd.get(m).push(f):Vd.set(m,[f]);if(n||c.length>0||a>0){let m;m=n===!0?c.map(x=>x.toString()).join("!"):n?n.apply(this,c):c[0];let b=`${m}__timestamp`,w=!1;if(a>0)if(!f.has(b))w=!0;else{let x=f.get(b);w=Date.now()-x>a}f.has(m)&&!w?d=f.get(m):(d=e.apply(this,c),f.set(m,d),a>0&&f.set(b,Date.now()))}else{let m=this;f.has(m)?d=f.get(m):(d=e.apply(this,c),f.set(m,d))}return d}}ms=Ee(Wm()),g_=Ee(null),Pl=Ee(null),tx=Ee(void 0);var Qk=class{constructor(){ve(this,"store",new Map)}get length(){return this.store.size}clear(){this.store.clear()}getItem(e){return this.store.get(e)||null}key(e){return[...this.store.keys()][e]||null}removeItem(e){this.store.delete(e)}setItem(e,n){this.store.set(e,n)}};function Gk(){let{hasLocalStorage:e,hasSessionStorage:n}=JI();return e?window.localStorage:n?window.sessionStorage:new Qk}gs=Gk();let ma;lk=class{constructor(e,n=gs){this.defaultValue=e,this.storage=n}get(e){try{let n=this.storage.getItem(e);return n?JSON.parse(n):this.defaultValue}catch{return this.defaultValue}}set(e,n){this.storage.setItem(e,JSON.stringify(n))}remove(e){this.storage.removeItem(e)}},fd=class{constructor(e,n,a=gs){this.schema=e,this.getDefaultValue=n,this.storage=a}get(e){try{let n=this.storage.getItem(e);if(n==null)return this.getDefaultValue();let a=this.schema.safeParse(JSON.parse(n));return a.success?a.data:(we.warn("Error parsing zod local storage",a.error),this.getDefaultValue())}catch(n){return we.warn("Error getting zod local storage",n),this.getDefaultValue()}}set(e,n){this.storage.setItem(e,JSON.stringify(n))}remove(e){this.storage.removeItem(e)}},f0=class extends fd{constructor(e,n,a){let o=Pe.get(ms);super(n,a),this.filename=o;try{this.unsubscribeFromFilename=Pe.sub(ms,()=>{let s=Pe.get(ms);this.handleFilenameChange(e,s)})}catch{this.unsubscribeFromFilename=null}}get(e){return super.get(this.createScopedKey(e,this.filename))}set(e,n){super.set(this.createScopedKey(e,this.filename),n)}remove(e){super.remove(this.createScopedKey(e,this.filename))}createScopedKey(e,n){return n?`${e}:${n}`:e}handleFilenameChange(e,n){if(n&&n!==this.filename){let a=this.get(e);this.remove(e),this.filename=n,this.set(e,a)}}dispose(){this.unsubscribeFromFilename&&(this.unsubscribeFromFilename=(this.unsubscribeFromFilename(),null))}},ma="marimo:notebook-col-sizes";function Jk(){return{widths:[]}}var no=new f0(ma,Ow({widths:G6(U6([K6(),Q6("contentWidth")]).default("contentWidth"))}),Jk);gx={getColumnWidth:e=>no.get(ma).widths[e]??"contentWidth",saveColumnWidth:(e,n)=>{let a=no.get(ma).widths;if(a[e])a[e]=n;else{for(;a.length<=e;)a.push("contentWidth");a[e]=n}no.set(ma,{widths:a})},clearStorage:()=>{no.remove(ma)}};function Xk(e,n){let a=no.get(ma).widths,o=El(a,e,n);no.set(ma,{widths:o})}var ng,rg,ag,ir,ig,og,sg,lg,yn,cg,ug,dg,fg,pg,hg,Rt;function Tn(e,n,a,o,s){var c={};return Object.keys(o).forEach(function(d){c[d]=o[d]}),c.enumerable=!!c.enumerable,c.configurable=!!c.configurable,("value"in c||c.initializer)&&(c.writable=!0),c=a.slice().reverse().reduce(function(d,f){return f(e,n,d)||d},c),s&&c.initializer!==void 0&&(c.value=c.initializer?c.initializer.call(s):void 0,c.initializer=void 0),c.initializer===void 0?(Object.defineProperty(e,n,c),null):c}let ii=(ng=gn(),rg=gn(),ag=gn(),ir=class{constructor(e,n,a){this.value=e,this.isCollapsed=n,this.children=a}geDescendantCount(){let e=0,n=[...this.children];for(;n.length>0;){let a=n.pop();e++;for(let o=a.children.length-1;o>=0;o--)n.push(a.children[o])}return e}getDescendants(){let e=[],n=[...this.children];for(;n.length>0;){let a=n.pop();e.push(a.value);for(let o=a.children.length-1;o>=0;o--)n.push(a.children[o])}return e}get inOrderIds(){let e=[],n=a=>{e.push(a.value);for(let o of a.children)n(o)};for(let a of this.children)n(a);return e}toString(){return this.isCollapsed?`${this.value} (collapsed)`:String(this.value)}equals(e){return this.value===e.value}},Tn(ir.prototype,"geDescendantCount",[ng],Object.getOwnPropertyDescriptor(ir.prototype,"geDescendantCount"),ir.prototype),Tn(ir.prototype,"getDescendants",[rg],Object.getOwnPropertyDescriptor(ir.prototype,"getDescendants"),ir.prototype),Tn(ir.prototype,"inOrderIds",[ag],Object.getOwnPropertyDescriptor(ir.prototype,"inOrderIds"),ir.prototype),ir);var Yk=0;let ro;ro=(ig=gn(),og=gn(),sg=gn(),lg=gn(),yn=class to{constructor(n,a){this.nodes=n,this.id=a}static from(n){let a=`tree_${Yk++}`;return new to(n.map(o=>new ii(o,!1,[])),a)}static fromWithPreviousShape(n,a){var c;if(!a)return to.from(n);let o=a.id,s=new to(n.map(d=>new ii(d,!1,[])),o);for(let d of n)if(a.isCollapsed(d)){let f=((c=a._nodeMap.get(d))==null?void 0:c.children)??[];for(let m=f.length-1;m>=0;m--){let b=f[m];if(s._nodeMap.has(b.value)){s=s.collapse(d,b.value);break}}}return s}withNodes(n){return new to(n,this.id)}get topLevelIds(){return this.nodes.map(n=>n.value)}get inOrderIds(){return this.nodes.flatMap(n=>[n.value,...n.inOrderIds])}get idSet(){return new Set(this.inOrderIds)}get length(){return this.nodes.length}get _nodeMap(){let n=new Map;for(let a of this.nodes)n.set(a.value,a);return n}getDescendants(n){let a=this._nodeMap.get(n);return a?a.getDescendants():(we.warn(`Node ${n} not found in tree. Valid ids: ${this.topLevelIds}`),[])}isCollapsed(n){let a=this._nodeMap.get(n);return a?a.isCollapsed:(we.warn(`Node ${n} not found in tree. Valid ids: ${this.topLevelIds}`),!1)}indexOfOrThrow(n){let a=this.nodes.findIndex(o=>o.value===n);if(a===-1)throw Error(`Node ${n} not found in tree. Valid ids: ${this.topLevelIds}`);return a}slice(n,a){return this.nodes.slice(n,a).map(o=>o.value)}moveToFront(n){let a=this.indexOfOrThrow(n);return this.withNodes(El(this.nodes,a,0))}moveToBack(n){let a=this.indexOfOrThrow(n);return this.withNodes(El(this.nodes,a,this.nodes.length-1))}collapse(n,a){let o=this.nodes.findIndex(m=>m.value===n);if(o===-1)throw Error(`Node ${n} not found in tree. Valid ids: ${this.topLevelIds}`);let s=a===void 0?this.nodes.length:this.nodes.findIndex(m=>m.value===a);if(s===-1)throw Error(`Node ${a} not found in tree`);if(s<o)throw Error(`Node ${a} is before node ${n}`);let c=[...this.nodes],d=c[o];if(d.isCollapsed)throw Error(`Node ${n} is already collapsed`);let f=c.splice(o+1,s-o);return c[o]=new ii(d.value,!0,f),this.withNodes(c)}collapseAll(n){let a=[...this.nodes];if(n.length===0)throw Error("No collapse ranges provided");if(n.length!==a.length)throw Error(`Collapse ranges length ${n.length} does not match tree length ${a.length}`);let o=a.length-1;for(;o>=0;){let s=a[o],c=n[o];if(!s.isCollapsed&&c){let{id:d,until:f}=c;if(d!==s.value)throw Error(`Node ${s.value} does not match collapse range id ${d}`);let m=f===void 0?a.length:a.findIndex(w=>w.value===f);if(m===-1)throw Error(`Node ${f} not found in tree`);if(m<o)throw Error(`Node ${f} is before node ${d}`);let b=a.splice(o+1,m-o);a[o]=new ii(s.value,!0,b),o--}else o--}return this.withNodes(a)}expand(n){let a=this.nodes.findIndex(c=>c.value===n);if(a===-1)throw Error(`Node ${n} not found in tree. Valid ids: ${this.topLevelIds}`);let o=[...this.nodes],s=o[a];return s.isCollapsed?(o[a]=new ii(s.value,!1,[]),o=Xh(o,a+1,s.children),this.withNodes(o)):this}expandAll(){let n=[...this.nodes],a=0;for(;a<n.length;){let o=n[a];o.isCollapsed&&(n[a]=new ii(o.value,!1,[]),n=Xh(n,a+1,o.children)),a++}return this.withNodes(n)}move(n,a){return this.withNodes(El(this.nodes,n,a))}at(n){var a;return(a=this.nodes.at(n))==null?void 0:a.value}atOrThrow(n){let a=this.nodes.at(n);if(a===void 0)throw Error(`Node at index ${n} not found in tree`);return a.value}first(){return this.atOrThrow(0)}last(){return this.atOrThrow(this.nodes.length-1)}after(n){let a=this.indexOfOrThrow(n);if(a!==this.nodes.length-1)return this.at(a+1)}before(n){let a=this.indexOfOrThrow(n);if(a!==0)return this.at(a-1)}insert(n,a){return this.withNodes(e_(this.nodes,a,new ii(n,!1,[])))}insertAtEnd(n){return this.insert(n,this.nodes.length)}insertAtStart(n){return this.insert(n,0)}deleteAtIndex(n){let a=this.atOrThrow(n),o=this.expand(a);return o.withNodes(GI(o.nodes,n))}delete(n){let a=this.indexOfOrThrow(n);return this.deleteAtIndex(a)}getCount(n){var a;return((a=this._nodeMap.get(n))==null?void 0:a.geDescendantCount())??0}findAndExpandDeep(n){let a=this.find(n);return a.length===0?this:a.reduce((o,s)=>o.expand(s),this)}find(n){function a(o,s){for(let c of o){if(c.value===n)return[...s,n];let d=a(c.children,[...s,c.value]);if(d.length>0)return d}return[]}return a(this.nodes,[])}split(n){let a=this.nodes.findIndex(c=>c.value===n);if(a===-1)throw Error(`Node ${n} not found in tree`);let o=this.nodes.slice(0,a),s=this.nodes.slice(a);return o.length===0?[to.from([]),this.withNodes(s)]:[this.withNodes(o),to.from([]).withNodes(s)]}equals(n){return this.nodes.length===n.nodes.length&&this.nodes.every((a,o)=>a.value===n.nodes[o].value)}toString(){let n=0,a="",o=s=>{for(let c of s)a+=`${" ".repeat(n*2)}${c.toString()}
13
13
  `,n+=1,o(c.children),--n};return o(this.nodes),a}},Tn(yn.prototype,"topLevelIds",[ig],Object.getOwnPropertyDescriptor(yn.prototype,"topLevelIds"),yn.prototype),Tn(yn.prototype,"inOrderIds",[og],Object.getOwnPropertyDescriptor(yn.prototype,"inOrderIds"),yn.prototype),Tn(yn.prototype,"idSet",[sg],Object.getOwnPropertyDescriptor(yn.prototype,"idSet"),yn.prototype),Tn(yn.prototype,"_nodeMap",[lg],Object.getOwnPropertyDescriptor(yn.prototype,"_nodeMap"),yn.prototype),yn),hs=(cg=gn(),ug=gn(),dg=gn(),fg=gn(),pg=gn(),hg=gn(),Rt=class on{constructor(n){this.columns=n,n.length===0&&(this.columns=[ro.from([])])}static from(n){return new on(n.map(a=>ro.from(a)))}static fromWithPreviousShape(n,a){if(!a)return on.from([n]);let o=a.getColumns(),s=Array.from({length:o.length},()=>[]),c=0;for(let d of n){let f=o.findIndex(m=>m.idSet.has(d));f===-1?s[c].push(d):(c=f,s[f].push(d))}return new on(s.map((d,f)=>ro.fromWithPreviousShape(d,o[f])))}isEmpty(){return this.columns.length===0?!0:this.columns.every(n=>n.nodes.length===0)}static fromIdsAndColumns(n){let a=Math.max(1,...n.map(([,c])=>(c??0)+1)),o=Array.from({length:a},()=>[]),s=0;for(let[c,d]of n)d==null||d<0?o[s].push(c):(o[d].push(c),s=d);return on.from(o)}get topLevelIds(){return this.columns.map(n=>n.topLevelIds)}get iterateTopLevelIds(){let n=this.columns;function*a(){for(let o of n)for(let s of o.topLevelIds)yield s}return a()}get inOrderIds(){return this.columns.flatMap(n=>n.inOrderIds)}get colLength(){return this.columns.length}get idLength(){return this.columns.reduce((n,a)=>n+a.nodes.length,0)}get _columnMap(){return new Map(this.columns.map(n=>[n.id,n]))}at(n){return this.columns[n]}get(n){return this._columnMap.get(n)}atOrThrow(n){let a=this.columns[n];if(!a)throw Error(`Column ${n} not found`);return a}hasOnlyOneColumn(){return this.columns.length===1}getColumns(){return this.columns}hasOnlyOneId(){return this.idLength===1}getColumnIds(){return this.columns.map(n=>n.id)}indexOf(n){return this.columns.indexOf(n)}addColumn(n,a=[]){return new on(this.columns.flatMap(o=>o.id===n?[o,ro.from(a)]:[o]))}insertBreakpoint(n){let a=this.findWithId(n),[o,s]=a.split(n);return new on(this.columns.flatMap(c=>c===a?[o,s].filter(Boolean):[c]))}delete(n){if(this.columns.length<=1)return this;let a=this.indexOfOrThrow(n),o=a===0?1:a-1,s=[...this.columns],c=s[a];return s[o]=c.withNodes([...s[o].nodes,...c.nodes]),s.splice(a,1),new on(s)}mergeAllColumns(){if(this.columns.length<=1)return this;let n=this.columns.flatMap(o=>o.nodes),a=this.columns[0];return new on([a.withNodes(n)])}moveWithinColumn(n,a,o){return this.transform(n,s=>s.move(a,o))}moveAcrossColumns(n,a,o,s){let c=this.indexOfOrThrow(n),d=this.indexOfOrThrow(o),f=[...this.columns],m=f[c],b=m.nodes.findIndex(S=>S.value===a);if(b===-1)throw Error(`Node ${a} not found in column ${n}`);let w=m.nodes[b];f[c]=m.withNodes(m.nodes.filter((S,E)=>E!==b));let x=f[d];if(s){let S=x.indexOfOrThrow(s);f[d]=x.withNodes(e_(x.nodes,S,w))}else f[d]=x.withNodes([w,...x.nodes]);return new on(f)}moveCellsRelativeTo(n,a,o){if(n.length===0)return this;let s=new Set(n),c=this.findWithId(a),d=this.indexOfOrThrow(c.id),f=[];for(let S of n){let E=this.findWithId(S),I=E.nodes.find(P=>P.value===S);if(!I)throw Error(`Node ${S} not found in column ${E.id}`);f.push(I)}let m=this.columns.map(S=>S.withNodes(S.nodes.filter(E=>!s.has(E.value)))),b=m[d],w=b.nodes.findIndex(S=>S.value===a);w===-1?w=b.nodes.length:o==="after"&&(w+=1);let x=Xh(b.nodes,w,f);return m[d]=b.withNodes(x),new on(m)}indexOfOrThrow(n){let a=this.columns.findIndex(o=>o.id===n);if(a===-1)throw Error(`Column ${n} not found. Possible values: ${this.getColumnIds().join(", ")}`);return a}moveColumn(n,a){if(n===a)return this;let o=this.indexOfOrThrow(n),s=a==="_left_"?o-1:a==="_right_"?o+1:this.indexOfOrThrow(a);return Xk(o,s),new on(El([...this.columns],o,s))}moveToNewColumn(n){let a=this.findWithId(n),o=this.columns.map(c=>c.id===a.id?c.delete(n):c),s=ro.from([n]);return new on([...o,s])}findWithId(n){let a=this.columns.find(o=>o.inOrderIds.includes(n));if(!a)throw we.log(`Possible values: ${this.columns.map(o=>o.inOrderIds).join(", ")}`),Error(`Cell ${n} not found in any column`);return a}transformWithCellId(n,a){let o=!1,s=this.columns.map(c=>{if(c.inOrderIds.includes(n)){let d=a(c);return c!==d&&(o=!0),d}return c});return o?new on(s):this}setupCellExists(){return this.columns.some(n=>n.topLevelIds.includes(Hn))}insertId(n,a,o){return this.transform(a,s=>s.insert(n,o))}deleteById(n){return this.transformWithCellId(n,a=>a.delete(n))}placeCells(n){if(n.length===0)return this;let a=this.deleteById(n[0].id);for(let{id:s}of n.slice(1))a=a.deleteById(s);let o=[...n].toSorted((s,c)=>s.columnId===c.columnId?s.index-c.index:s.columnId.localeCompare(c.columnId));for(let{id:s,columnId:c,index:d}of o)a=a.insertId(s,c,d);return a}compact(){return this.columns.length===1||!this.columns.some(n=>n.nodes.length===0)?this:new on(this.columns.filter(n=>n.nodes.length>0))}transform(n,a){let o=this._columnMap.get(n);if(!o)return we.warn(`Column ${n} not found`),this;let s=a(o);return o===s?this:new on(this.columns.map(c=>c.id===n?s:c))}transformAll(n){let a=!1,o=this.columns.map(s=>{let c=n(s);return s.equals(c)||(a=!0),c});return a?new on(o):this}},Tn(Rt.prototype,"isEmpty",[cg],Object.getOwnPropertyDescriptor(Rt.prototype,"isEmpty"),Rt.prototype),Tn(Rt.prototype,"topLevelIds",[ug],Object.getOwnPropertyDescriptor(Rt.prototype,"topLevelIds"),Rt.prototype),Tn(Rt.prototype,"inOrderIds",[dg],Object.getOwnPropertyDescriptor(Rt.prototype,"inOrderIds"),Rt.prototype),Tn(Rt.prototype,"idLength",[fg],Object.getOwnPropertyDescriptor(Rt.prototype,"idLength"),Rt.prototype),Tn(Rt.prototype,"_columnMap",[pg],Object.getOwnPropertyDescriptor(Rt.prototype,"_columnMap"),Rt.prototype),Tn(Rt.prototype,"getColumnIds",[hg],Object.getOwnPropertyDescriptor(Rt.prototype,"getColumnIds"),Rt.prototype),Rt);let Hd,$d,Wd,mg,Ud,gg,yg,vg,bg,Kd,Qd,wg,Gd,Jd;Hd=rt((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Doctype=e.CDATA=e.Tag=e.Style=e.Script=e.Comment=e.Directive=e.Text=e.Root=e.isTag=e.ElementType=void 0;var n;(function(o){o.Root="root",o.Text="text",o.Directive="directive",o.Comment="comment",o.Script="script",o.Style="style",o.Tag="tag",o.CDATA="cdata",o.Doctype="doctype"})(n=e.ElementType||(e.ElementType={}));function a(o){return o.type===n.Tag||o.type===n.Script||o.type===n.Style}e.isTag=a,e.Root=n.Root,e.Text=n.Text,e.Directive=n.Directive,e.Comment=n.Comment,e.Script=n.Script,e.Style=n.Style,e.Tag=n.Tag,e.CDATA=n.CDATA,e.Doctype=n.Doctype})),$d=rt((e=>{var n=e&&e.__extends||(function(){var A=function(q,$){return A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(oe,de){oe.__proto__=de}||function(oe,de){for(var he in de)Object.prototype.hasOwnProperty.call(de,he)&&(oe[he]=de[he])},A(q,$)};return function(q,$){if(typeof $!="function"&&$!==null)throw TypeError("Class extends value "+String($)+" is not a constructor or null");A(q,$);function oe(){this.constructor=q}q.prototype=$===null?Object.create($):(oe.prototype=$.prototype,new oe)}})(),a=e&&e.__assign||function(){return a=Object.assign||function(A){for(var q,$=1,oe=arguments.length;$<oe;$++)for(var de in q=arguments[$],q)Object.prototype.hasOwnProperty.call(q,de)&&(A[de]=q[de]);return A},a.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.cloneNode=e.hasChildren=e.isDocument=e.isDirective=e.isComment=e.isText=e.isCDATA=e.isTag=e.Element=e.Document=e.CDATA=e.NodeWithChildren=e.ProcessingInstruction=e.Comment=e.Text=e.DataNode=e.Node=void 0;var o=Hd(),s=(function(){function A(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(A.prototype,"parentNode",{get:function(){return this.parent},set:function(q){this.parent=q},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"previousSibling",{get:function(){return this.prev},set:function(q){this.prev=q},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"nextSibling",{get:function(){return this.next},set:function(q){this.next=q},enumerable:!1,configurable:!0}),A.prototype.cloneNode=function(q){return q===void 0&&(q=!1),X(this,q)},A})();e.Node=s;var c=(function(A){n(q,A);function q($){var oe=A.call(this)||this;return oe.data=$,oe}return Object.defineProperty(q.prototype,"nodeValue",{get:function(){return this.data},set:function($){this.data=$},enumerable:!1,configurable:!0}),q})(s);e.DataNode=c;var d=(function(A){n(q,A);function q(){var $=A!==null&&A.apply(this,arguments)||this;return $.type=o.ElementType.Text,$}return Object.defineProperty(q.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),q})(c);e.Text=d;var f=(function(A){n(q,A);function q(){var $=A!==null&&A.apply(this,arguments)||this;return $.type=o.ElementType.Comment,$}return Object.defineProperty(q.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),q})(c);e.Comment=f;var m=(function(A){n(q,A);function q($,oe){var de=A.call(this,oe)||this;return de.name=$,de.type=o.ElementType.Directive,de}return Object.defineProperty(q.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),q})(c);e.ProcessingInstruction=m;var b=(function(A){n(q,A);function q($){var oe=A.call(this)||this;return oe.children=$,oe}return Object.defineProperty(q.prototype,"firstChild",{get:function(){return this.children[0]??null},enumerable:!1,configurable:!0}),Object.defineProperty(q.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(q.prototype,"childNodes",{get:function(){return this.children},set:function($){this.children=$},enumerable:!1,configurable:!0}),q})(s);e.NodeWithChildren=b;var w=(function(A){n(q,A);function q(){var $=A!==null&&A.apply(this,arguments)||this;return $.type=o.ElementType.CDATA,$}return Object.defineProperty(q.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),q})(b);e.CDATA=w;var x=(function(A){n(q,A);function q(){var $=A!==null&&A.apply(this,arguments)||this;return $.type=o.ElementType.Root,$}return Object.defineProperty(q.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),q})(b);e.Document=x;var S=(function(A){n(q,A);function q($,oe,de,he){de===void 0&&(de=[]),he===void 0&&(he=$==="script"?o.ElementType.Script:$==="style"?o.ElementType.Style:o.ElementType.Tag);var ye=A.call(this,de)||this;return ye.name=$,ye.attribs=oe,ye.type=he,ye}return Object.defineProperty(q.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(q.prototype,"tagName",{get:function(){return this.name},set:function($){this.name=$},enumerable:!1,configurable:!0}),Object.defineProperty(q.prototype,"attributes",{get:function(){var $=this;return Object.keys(this.attribs).map(function(oe){var de,he;return{name:oe,value:$.attribs[oe],namespace:(de=$["x-attribsNamespace"])==null?void 0:de[oe],prefix:(he=$["x-attribsPrefix"])==null?void 0:he[oe]}})},enumerable:!1,configurable:!0}),q})(b);e.Element=S;function E(A){return(0,o.isTag)(A)}e.isTag=E;function I(A){return A.type===o.ElementType.CDATA}e.isCDATA=I;function P(A){return A.type===o.ElementType.Text}e.isText=P;function z(A){return A.type===o.ElementType.Comment}e.isComment=z;function B(A){return A.type===o.ElementType.Directive}e.isDirective=B;function V(A){return A.type===o.ElementType.Root}e.isDocument=V;function N(A){return Object.prototype.hasOwnProperty.call(A,"children")}e.hasChildren=N;function X(A,q){q===void 0&&(q=!1);var $;if(P(A))$=new d(A.data);else if(z(A))$=new f(A.data);else if(E(A)){var oe=q?ce(A.children):[],de=new S(A.name,a({},A.attribs),oe);oe.forEach(function(be){return be.parent=de}),A.namespace!=null&&(de.namespace=A.namespace),A["x-attribsNamespace"]&&(de["x-attribsNamespace"]=a({},A["x-attribsNamespace"])),A["x-attribsPrefix"]&&(de["x-attribsPrefix"]=a({},A["x-attribsPrefix"])),$=de}else if(I(A)){var oe=q?ce(A.children):[],he=new w(oe);oe.forEach(function(le){return le.parent=he}),$=he}else if(V(A)){var oe=q?ce(A.children):[],ye=new x(oe);oe.forEach(function(le){return le.parent=ye}),A["x-mode"]&&(ye["x-mode"]=A["x-mode"]),$=ye}else if(B(A)){var _e=new m(A.name,A.data);A["x-name"]!=null&&(_e["x-name"]=A["x-name"],_e["x-publicId"]=A["x-publicId"],_e["x-systemId"]=A["x-systemId"]),$=_e}else throw Error(`Not implemented yet: ${A.type}`);return $.startIndex=A.startIndex,$.endIndex=A.endIndex,A.sourceCodeLocation!=null&&($.sourceCodeLocation=A.sourceCodeLocation),$}e.cloneNode=X;function ce(A){for(var q=A.map(function(oe){return X(oe,!0)}),$=1;$<q.length;$++)q[$].prev=q[$-1],q[$-1].next=q[$];return q}})),Wd=rt((e=>{var n=e&&e.__createBinding||(Object.create?(function(f,m,b,w){w===void 0&&(w=b);var x=Object.getOwnPropertyDescriptor(m,b);(!x||("get"in x?!m.__esModule:x.writable||x.configurable))&&(x={enumerable:!0,get:function(){return m[b]}}),Object.defineProperty(f,w,x)}):(function(f,m,b,w){w===void 0&&(w=b),f[w]=m[b]})),a=e&&e.__exportStar||function(f,m){for(var b in f)b!=="default"&&!Object.prototype.hasOwnProperty.call(m,b)&&n(m,f,b)};Object.defineProperty(e,"__esModule",{value:!0}),e.DomHandler=void 0;var o=Hd(),s=$d();a($d(),e);var c={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},d=(function(){function f(m,b,w){this.dom=[],this.root=new s.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof b=="function"&&(w=b,b=c),typeof m=="object"&&(b=m,m=void 0),this.callback=m??null,this.options=b??c,this.elementCB=w??null}return f.prototype.onparserinit=function(m){this.parser=m},f.prototype.onreset=function(){this.dom=[],this.root=new s.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},f.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},f.prototype.onerror=function(m){this.handleCallback(m)},f.prototype.onclosetag=function(){this.lastNode=null;var m=this.tagStack.pop();this.options.withEndIndices&&(m.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(m)},f.prototype.onopentag=function(m,b){var w=this.options.xmlMode?o.ElementType.Tag:void 0,x=new s.Element(m,b,void 0,w);this.addNode(x),this.tagStack.push(x)},f.prototype.ontext=function(m){var b=this.lastNode;if(b&&b.type===o.ElementType.Text)b.data+=m,this.options.withEndIndices&&(b.endIndex=this.parser.endIndex);else{var w=new s.Text(m);this.addNode(w),this.lastNode=w}},f.prototype.oncomment=function(m){if(this.lastNode&&this.lastNode.type===o.ElementType.Comment){this.lastNode.data+=m;return}var b=new s.Comment(m);this.addNode(b),this.lastNode=b},f.prototype.oncommentend=function(){this.lastNode=null},f.prototype.oncdatastart=function(){var m=new s.Text(""),b=new s.CDATA([m]);this.addNode(b),m.parent=b,this.lastNode=m},f.prototype.oncdataend=function(){this.lastNode=null},f.prototype.onprocessinginstruction=function(m,b){var w=new s.ProcessingInstruction(m,b);this.addNode(w)},f.prototype.handleCallback=function(m){if(typeof this.callback=="function")this.callback(m,this.dom);else if(m)throw m},f.prototype.addNode=function(m){var b=this.tagStack[this.tagStack.length-1],w=b.children[b.children.length-1];this.options.withStartIndices&&(m.startIndex=this.parser.startIndex),this.options.withEndIndices&&(m.endIndex=this.parser.endIndex),b.children.push(m),w&&(m.prev=w,w.next=m),m.parent=b,this.lastNode=null},f})();e.DomHandler=d,e.default=d})),mg=rt((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.CARRIAGE_RETURN_PLACEHOLDER_REGEX=e.CARRIAGE_RETURN_PLACEHOLDER=e.CARRIAGE_RETURN_REGEX=e.CARRIAGE_RETURN=e.CASE_SENSITIVE_TAG_NAMES_MAP=e.CASE_SENSITIVE_TAG_NAMES=void 0,e.CASE_SENSITIVE_TAG_NAMES="animateMotion.animateTransform.clipPath.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feDropShadow.feFlood.feFuncA.feFuncB.feFuncG.feFuncR.feGaussianBlur.feImage.feMerge.feMergeNode.feMorphology.feOffset.fePointLight.feSpecularLighting.feSpotLight.feTile.feTurbulence.foreignObject.linearGradient.radialGradient.textPath".split("."),e.CASE_SENSITIVE_TAG_NAMES_MAP=e.CASE_SENSITIVE_TAG_NAMES.reduce(function(n,a){return n[a.toLowerCase()]=a,n},{}),e.CARRIAGE_RETURN="\r",e.CARRIAGE_RETURN_REGEX=new RegExp(e.CARRIAGE_RETURN,"g"),e.CARRIAGE_RETURN_PLACEHOLDER=`__HTML_DOM_PARSER_CARRIAGE_RETURN_PLACEHOLDER_${Date.now()}__`,e.CARRIAGE_RETURN_PLACEHOLDER_REGEX=new RegExp(e.CARRIAGE_RETURN_PLACEHOLDER,"g")})),Ud=rt((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.formatAttributes=s,e.escapeSpecialCharacters=d,e.revertEscapedCharacters=f,e.formatDOM=m;var n=Wd(),a=mg();function o(b){return a.CASE_SENSITIVE_TAG_NAMES_MAP[b]}function s(b){for(var w={},x=0,S=b.length;x<S;x++){var E=b[x];w[E.name]=E.value}return w}function c(b){return b=b.toLowerCase(),o(b)||b}function d(b){return b.replace(a.CARRIAGE_RETURN_REGEX,a.CARRIAGE_RETURN_PLACEHOLDER)}function f(b){return b.replace(a.CARRIAGE_RETURN_PLACEHOLDER_REGEX,a.CARRIAGE_RETURN)}function m(b,w,x){w===void 0&&(w=null);for(var S=[],E,I=0,P=b.length;I<P;I++){var z=b[I];switch(z.nodeType){case 1:var B=c(z.nodeName);E=new n.Element(B,s(z.attributes)),E.children=m(B==="template"?z.content.childNodes:z.childNodes,E);break;case 3:E=new n.Text(f(z.nodeValue));break;case 8:E=new n.Comment(z.nodeValue);break;default:continue}var V=S[I-1]||null;V&&(V.next=E),E.parent=w,E.prev=V,E.next=null,S.push(E)}return x&&(E=new n.ProcessingInstruction(x.substring(0,x.indexOf(" ")).toLowerCase(),x),E.next=S[0]||null,E.parent=w,S.unshift(E),S[1]&&(S[1].prev=S[0])),S}})),gg=rt((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=z;var n=Ud(),a="html",o="head",s="body",c=/<([a-zA-Z]+[0-9]?)/,d=/<head[^]*>/i,f=/<body[^]*>/i,m=function(B,V){throw Error("This browser does not support `document.implementation.createHTMLDocument`")},b=function(B,V){throw Error("This browser does not support `DOMParser.prototype.parseFromString`")},w=typeof window=="object"&&window.DOMParser;if(typeof w=="function"){var x=new w,S="text/html";b=function(B,V){return V&&(B=`<${V}>${B}</${V}>`),x.parseFromString(B,S)},m=b}if(typeof document=="object"&&document.implementation){var E=document.implementation.createHTMLDocument();m=function(B,V){if(V){var N=E.documentElement.querySelector(V);return N&&(N.innerHTML=B),E}return E.documentElement.innerHTML=B,E}}var I=typeof document=="object"&&document.createElement("template"),P;I&&I.content&&(P=function(B){return I.innerHTML=B,I.content.childNodes});function z(B){var V,N;B=(0,n.escapeSpecialCharacters)(B);var X=B.match(c),ce=X&&X[1]?X[1].toLowerCase():"";switch(ce){case a:var A=b(B);if(!d.test(B)){var $=A.querySelector(o);(V=$==null?void 0:$.parentNode)==null||V.removeChild($)}if(!f.test(B)){var $=A.querySelector(s);(N=$==null?void 0:$.parentNode)==null||N.removeChild($)}return A.querySelectorAll(a);case o:case s:var q=m(B).querySelectorAll(ce);return f.test(B)&&d.test(B)?q[0].parentNode.childNodes:q;default:if(P)return P(B);var $=m(B,s).querySelector(s);return $.childNodes}}})),yg=rt((e=>{var n=e&&e.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(e,"__esModule",{value:!0}),e.default=c;var a=n(gg()),o=Ud(),s=/<(![a-zA-Z\s]+)>/;function c(d){if(typeof d!="string")throw TypeError("First argument must be a string");if(!d)return[];var f=d.match(s),m=f?f[1]:void 0;return(0,o.formatDOM)((0,a.default)(d),null,m)}})),vg=rt((e=>{e.SAME=0,e.CAMELCASE=1,e.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}})),bg=rt((e=>{var n=0,a=1,o=2,s=3,c=4,d=5,f=6;function m(N){return w.hasOwnProperty(N)?w[N]:null}function b(N,X,ce,A,q,$,oe){this.acceptsBooleans=X===o||X===s||X===c,this.attributeName=A,this.attributeNamespace=q,this.mustUseProperty=ce,this.propertyName=N,this.type=X,this.sanitizeURL=$,this.removeEmptyString=oe}var w={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach(N=>{w[N]=new b(N,n,!1,N,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(([N,X])=>{w[N]=new b(N,a,!1,X,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(N=>{w[N]=new b(N,o,!1,N.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(N=>{w[N]=new b(N,o,!1,N,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(N=>{w[N]=new b(N,s,!1,N.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(N=>{w[N]=new b(N,s,!0,N,null,!1,!1)}),["capture","download"].forEach(N=>{w[N]=new b(N,c,!1,N,null,!1,!1)}),["cols","rows","size","span"].forEach(N=>{w[N]=new b(N,f,!1,N,null,!1,!1)}),["rowSpan","start"].forEach(N=>{w[N]=new b(N,d,!1,N.toLowerCase(),null,!1,!1)});var x=/[\-\:]([a-z])/g,S=N=>N[1].toUpperCase();"accent-height.alignment-baseline.arabic-form.baseline-shift.cap-height.clip-path.clip-rule.color-interpolation.color-interpolation-filters.color-profile.color-rendering.dominant-baseline.enable-background.fill-opacity.fill-rule.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.glyph-name.glyph-orientation-horizontal.glyph-orientation-vertical.horiz-adv-x.horiz-origin-x.image-rendering.letter-spacing.lighting-color.marker-end.marker-mid.marker-start.overline-position.overline-thickness.paint-order.panose-1.pointer-events.rendering-intent.shape-rendering.stop-color.stop-opacity.strikethrough-position.strikethrough-thickness.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke-width.text-anchor.text-decoration.text-rendering.underline-position.underline-thickness.unicode-bidi.unicode-range.units-per-em.v-alphabetic.v-hanging.v-ideographic.v-mathematical.vector-effect.vert-adv-y.vert-origin-x.vert-origin-y.word-spacing.writing-mode.xmlns:xlink.x-height".split(".").forEach(N=>{let X=N.replace(x,S);w[X]=new b(X,a,!1,N,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(N=>{let X=N.replace(x,S);w[X]=new b(X,a,!1,N,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(N=>{let X=N.replace(x,S);w[X]=new b(X,a,!1,N,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(N=>{w[N]=new b(N,a,!1,N.toLowerCase(),null,!1,!1)});var E="xlinkHref";w[E]=new b("xlinkHref",a,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(N=>{w[N]=new b(N,a,!1,N.toLowerCase(),null,!0,!0)});var{CAMELCASE:I,SAME:P,possibleStandardNames:z}=vg(),B=RegExp.prototype.test.bind(RegExp("^(data|aria)-[: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]*$")),V=Object.keys(z).reduce((N,X)=>{let ce=z[X];return ce===P?N[X]=X:ce===I?N[X.toLowerCase()]=X:N[X]=ce,N},{});e.BOOLEAN=s,e.BOOLEANISH_STRING=o,e.NUMERIC=d,e.OVERLOADED_BOOLEAN=c,e.POSITIVE_NUMERIC=f,e.RESERVED=n,e.STRING=a,e.getPropertyInfo=m,e.isCustomAttribute=B,e.possibleStandardNames=V})),Kd=rt((e=>{var n=e&&e.__importDefault||function(m){return m&&m.__esModule?m:{default:m}};Object.defineProperty(e,"__esModule",{value:!0}),e.returnFirstArg=e.canTextBeChildOfNode=e.ELEMENTS_WITH_NO_TEXT_CHILDREN=e.PRESERVE_CUSTOM_ATTRIBUTES=void 0,e.isCustomComponent=c,e.setStyleProp=f;var a=Nu(),o=n(XI()),s=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);function c(m,b){return m.includes("-")?!s.has(m):!!(b&&typeof b.is=="string")}var d={reactCompat:!0};function f(m,b){if(typeof m=="string"){if(!m.trim()){b.style={};return}try{b.style=(0,o.default)(m,d)}catch{b.style={}}}}e.PRESERVE_CUSTOM_ATTRIBUTES=Number(a.version.split(".")[0])>=16,e.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]),e.canTextBeChildOfNode=function(m){return!e.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(m.name)},e.returnFirstArg=function(m){return m}})),Qd=rt((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=d;var n=bg(),a=Kd(),o=["checked","value"],s=["input","select","textarea"],c={reset:!0,submit:!0};function d(m,b){m===void 0&&(m={});var w={},x=!!(m.type&&c[m.type]);for(var S in m){var E=m[S];if((0,n.isCustomAttribute)(S)){w[S]=E;continue}var I=S.toLowerCase(),P=f(I);if(P){var z=(0,n.getPropertyInfo)(P);switch(o.includes(P)&&s.includes(b)&&!x&&(P=f("default"+I)),w[P]=E,z&&z.type){case n.BOOLEAN:w[P]=!0;break;case n.OVERLOADED_BOOLEAN:E===""&&(w[P]=!0);break}continue}a.PRESERVE_CUSTOM_ATTRIBUTES&&(w[S]=E)}return(0,a.setStyleProp)(m.style,w),w}function f(m){return n.possibleStandardNames[m]}})),wg=rt((e=>{var n=e&&e.__importDefault||function(m){return m&&m.__esModule?m:{default:m}};Object.defineProperty(e,"__esModule",{value:!0}),e.default=d;var a=Nu(),o=n(Qd()),s=Kd(),c={cloneElement:a.cloneElement,createElement:a.createElement,isValidElement:a.isValidElement};function d(m,b){b===void 0&&(b={});for(var w=[],x=typeof b.replace=="function",S=b.transform||s.returnFirstArg,E=b.library||c,I=E.cloneElement,P=E.createElement,z=E.isValidElement,B=m.length,V=0;V<B;V++){var N=m[V];if(x){var X=b.replace(N,V);if(z(X)){B>1&&(X=I(X,{key:X.key||V})),w.push(S(X,N,V));continue}}if(N.type==="text"){var ce=!N.data.trim().length;if(ce&&N.parent&&!(0,s.canTextBeChildOfNode)(N.parent)||b.trim&&ce)continue;w.push(S(N.data,N,V));continue}var A=N,q={};f(A)?((0,s.setStyleProp)(A.attribs.style,A.attribs),q=A.attribs):A.attribs&&(q=(0,o.default)(A.attribs,A.name));var $=void 0;switch(N.type){case"script":case"style":N.children[0]&&(q.dangerouslySetInnerHTML={__html:N.children[0].data});break;case"tag":N.name==="textarea"&&N.children[0]?q.defaultValue=N.children[0].data:N.children&&N.children.length&&($=d(N.children,b));break;default:continue}B>1&&(q.key=V),w.push(S(P(N.name,q,$),N,V))}return w.length===1?w[0]:w}function f(m){return s.PRESERVE_CUSTOM_ATTRIBUTES&&m.type==="tag"&&(0,s.isCustomComponent)(m.name,m.attribs)}})),Gd=rt((e=>{var n=e&&e.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(e,"__esModule",{value:!0}),e.htmlToDOM=e.domToReact=e.attributesToProps=e.Text=e.ProcessingInstruction=e.Element=e.Comment=void 0,e.default=d;var a=n(yg());e.htmlToDOM=a.default,e.attributesToProps=n(Qd()).default;var o=n(wg());e.domToReact=o.default;var s=Wd();Object.defineProperty(e,"Comment",{enumerable:!0,get:function(){return s.Comment}}),Object.defineProperty(e,"Element",{enumerable:!0,get:function(){return s.Element}}),Object.defineProperty(e,"ProcessingInstruction",{enumerable:!0,get:function(){return s.ProcessingInstruction}}),Object.defineProperty(e,"Text",{enumerable:!0,get:function(){return s.Text}});var c={lowerCaseAttributeNames:!1};function d(f,m){if(typeof f!="string")throw TypeError("First argument must be a string");return f?(0,o.default)((0,a.default)(f,(m==null?void 0:m.htmlparser2)||c),m):[]}})),Jd=Mu(Gd(),1),ti=Gd(),Km=Jd.default.default||Jd.default;let Wl;Wl=(e,n)=>{let[a,...o]=n.split("."),s=(e.attribs.class||"").split(" ");return e.tagName===a&&o.every(c=>s.includes(c))},Cx=e=>{var n;return e&&Wl(e,"span.nb")&&e.firstChild instanceof ti.Text&&((n=e.firstChild.nodeValue)==null?void 0:n.includes("__marimo__"))},Zm=function(e){var n,a,o;if(e instanceof ti.Element&&e.firstChild instanceof ti.Text&&Wl(e,"span.nb")){let s=e.next;if(s&&s instanceof ti.Text){let c=s.next;if(c&&c instanceof ti.Element&&c.firstChild instanceof ti.Text&&Wl(c,"span.m")){let d=Number.parseInt(c.firstChild.nodeValue||"0",10);if((n=e.firstChild.nodeValue)!=null&&n.includes("__marimo__")){let f=(a=/__marimo__cell_(\w+)_/.exec(e.firstChild.nodeValue))==null?void 0:a[1];if(f&&d)return{kind:"cell",cellId:f,lineNumber:d}}else{let f=(o=/"(.+?)"/.exec(e.firstChild.nodeValue))==null?void 0:o[1];if(f&&d)return{kind:"file",filePath:f,lineNumber:d}}}}}return null},Fm=function(e){let n=[];return Km(e,{replace:a=>{let o=Zm(a);if(o)return n.push(o),"dummy"}}),n};function _g(e){return n=>{let a=!1;for(let o of n)o&&(a=e(o)||a);return a}}const Zk=_g(wI),eC=_g(_I);let Xd,xg,ao,kg,io,Cg;Xd=rt(((e,n)=>{var a=typeof Reflect=="object"?Reflect:null,o=a&&typeof a.apply=="function"?a.apply:function(A,q,$){return Function.prototype.apply.call(A,q,$)},s=a&&typeof a.ownKeys=="function"?a.ownKeys:Object.getOwnPropertySymbols?function(A){return Object.getOwnPropertyNames(A).concat(Object.getOwnPropertySymbols(A))}:function(A){return Object.getOwnPropertyNames(A)};function c(A){console&&console.warn&&console.warn(A)}var d=Number.isNaN||function(A){return A!==A};function f(){f.init.call(this)}n.exports=f,n.exports.once=N,f.EventEmitter=f,f.prototype._events=void 0,f.prototype._eventsCount=0,f.prototype._maxListeners=void 0;var m=10;function b(A){if(typeof A!="function")throw TypeError('The "listener" argument must be of type Function. Received type '+typeof A)}Object.defineProperty(f,"defaultMaxListeners",{enumerable:!0,get:function(){return m},set:function(A){if(typeof A!="number"||A<0||d(A))throw RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+A+".");m=A}}),f.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},f.prototype.setMaxListeners=function(A){if(typeof A!="number"||A<0||d(A))throw RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+A+".");return this._maxListeners=A,this};function w(A){return A._maxListeners===void 0?f.defaultMaxListeners:A._maxListeners}f.prototype.getMaxListeners=function(){return w(this)},f.prototype.emit=function(A){for(var q=[],$=1;$<arguments.length;$++)q.push(arguments[$]);var oe=A==="error",de=this._events;if(de!==void 0)oe&&(oe=de.error===void 0);else if(!oe)return!1;if(oe){var he;if(q.length>0&&(he=q[0]),he instanceof Error)throw he;var ye=Error("Unhandled error."+(he?" ("+he.message+")":""));throw ye.context=he,ye}var _e=de[A];if(_e===void 0)return!1;if(typeof _e=="function")o(_e,this,q);else for(var be=_e.length,le=z(_e,be),$=0;$<be;++$)o(le[$],this,q);return!0};function x(A,q,$,oe){var de,he,ye;if(b($),he=A._events,he===void 0?(he=A._events=Object.create(null),A._eventsCount=0):(he.newListener!==void 0&&(A.emit("newListener",q,$.listener?$.listener:$),he=A._events),ye=he[q]),ye===void 0)ye=he[q]=$,++A._eventsCount;else if(typeof ye=="function"?ye=he[q]=oe?[$,ye]:[ye,$]:oe?ye.unshift($):ye.push($),de=w(A),de>0&&ye.length>de&&!ye.warned){ye.warned=!0;var _e=Error("Possible EventEmitter memory leak detected. "+ye.length+" "+String(q)+" listeners added. Use emitter.setMaxListeners() to increase limit");_e.name="MaxListenersExceededWarning",_e.emitter=A,_e.type=q,_e.count=ye.length,c(_e)}return A}f.prototype.addListener=function(A,q){return x(this,A,q,!1)},f.prototype.on=f.prototype.addListener,f.prototype.prependListener=function(A,q){return x(this,A,q,!0)};function S(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function E(A,q,$){var oe={fired:!1,wrapFn:void 0,target:A,type:q,listener:$},de=S.bind(oe);return de.listener=$,oe.wrapFn=de,de}f.prototype.once=function(A,q){return b(q),this.on(A,E(this,A,q)),this},f.prototype.prependOnceListener=function(A,q){return b(q),this.prependListener(A,E(this,A,q)),this},f.prototype.removeListener=function(A,q){var $,oe,de,he,ye;if(b(q),oe=this._events,oe===void 0||($=oe[A],$===void 0))return this;if($===q||$.listener===q)--this._eventsCount===0?this._events=Object.create(null):(delete oe[A],oe.removeListener&&this.emit("removeListener",A,$.listener||q));else if(typeof $!="function"){for(de=-1,he=$.length-1;he>=0;he--)if($[he]===q||$[he].listener===q){ye=$[he].listener,de=he;break}if(de<0)return this;de===0?$.shift():B($,de),$.length===1&&(oe[A]=$[0]),oe.removeListener!==void 0&&this.emit("removeListener",A,ye||q)}return this},f.prototype.off=f.prototype.removeListener,f.prototype.removeAllListeners=function(A){var q,$=this._events,oe;if($===void 0)return this;if($.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):$[A]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete $[A]),this;if(arguments.length===0){var de=Object.keys($),he;for(oe=0;oe<de.length;++oe)he=de[oe],he!=="removeListener"&&this.removeAllListeners(he);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(q=$[A],typeof q=="function")this.removeListener(A,q);else if(q!==void 0)for(oe=q.length-1;oe>=0;oe--)this.removeListener(A,q[oe]);return this};function I(A,q,$){var oe=A._events;if(oe===void 0)return[];var de=oe[q];return de===void 0?[]:typeof de=="function"?$?[de.listener||de]:[de]:$?V(de):z(de,de.length)}f.prototype.listeners=function(A){return I(this,A,!0)},f.prototype.rawListeners=function(A){return I(this,A,!1)},f.listenerCount=function(A,q){return typeof A.listenerCount=="function"?A.listenerCount(q):P.call(A,q)},f.prototype.listenerCount=P;function P(A){var q=this._events;if(q!==void 0){var $=q[A];if(typeof $=="function")return 1;if($!==void 0)return $.length}return 0}f.prototype.eventNames=function(){return this._eventsCount>0?s(this._events):[]};function z(A,q){for(var $=Array(q),oe=0;oe<q;++oe)$[oe]=A[oe];return $}function B(A,q){for(;q+1<A.length;q++)A[q]=A[q+1];A.pop()}function V(A){for(var q=Array(A.length),$=0;$<q.length;++$)q[$]=A[$].listener||A[$];return q}function N(A,q){return new Promise(function($,oe){function de(ye){A.removeListener(q,he),oe(ye)}function he(){typeof A.removeListener=="function"&&A.removeListener("error",de),$([].slice.call(arguments))}ce(A,q,he,{once:!0}),q!=="error"&&X(A,de,{once:!0})})}function X(A,q,$){typeof A.on=="function"&&ce(A,"error",q,$)}function ce(A,q,$,oe){if(typeof A.on=="function")oe.once?A.once(q,$):A.on(q,$);else if(typeof A.addEventListener=="function")A.addEventListener(q,function de(he){oe.once&&A.removeEventListener(q,de),$(he)});else throw TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof A)}})),xg=rt((e=>{var n=e&&e.__awaiter||function(s,c,d,f){function m(b){return b instanceof d?b:new d(function(w){w(b)})}return new(d||(d=Promise))(function(b,w){function x(I){try{E(f.next(I))}catch(P){w(P)}}function S(I){try{E(f.throw(I))}catch(P){w(P)}}function E(I){I.done?b(I.value):m(I.value).then(x,S)}E((f=f.apply(s,c||[])).next())})},a=e&&e.__generator||function(s,c){var d={label:0,sent:function(){if(b[0]&1)throw b[1];return b[1]},trys:[],ops:[]},f,m,b,w;return w={next:x(0),throw:x(1),return:x(2)},typeof Symbol=="function"&&(w[Symbol.iterator]=function(){return this}),w;function x(E){return function(I){return S([E,I])}}function S(E){if(f)throw TypeError("Generator is already executing.");for(;d;)try{if(f=1,m&&(b=E[0]&2?m.return:E[0]?m.throw||((b=m.return)&&b.call(m),0):m.next)&&!(b=b.call(m,E[1])).done)return b;switch(m=0,b&&(E=[E[0]&2,b.value]),E[0]){case 0:case 1:b=E;break;case 4:return d.label++,{value:E[1],done:!1};case 5:d.label++,m=E[1],E=[0];continue;case 7:E=d.ops.pop(),d.trys.pop();continue;default:if(b=d.trys,!(b=b.length>0&&b[b.length-1])&&(E[0]===6||E[0]===2)){d=0;continue}if(E[0]===3&&(!b||E[1]>b[0]&&E[1]<b[3])){d.label=E[1];break}if(E[0]===6&&d.label<b[1]){d.label=b[1],b=E;break}if(b&&d.label<b[2]){d.label=b[2],d.ops.push(E);break}b[2]&&d.ops.pop(),d.trys.pop();continue}E=c.call(s,d)}catch(I){E=[6,I],m=0}finally{f=b=0}if(E[0]&5)throw E[1];return{value:E[0]?E[1]:void 0,done:!0}}};Object.defineProperty(e,"__esModule",{value:!0}),e.defaultNextRequest=void 0;var o=Xd();e.defaultNextRequest=function(){var s=-1;return function(){return++s}},e.default=(function(){function s(c,d){d===void 0&&(d=e.defaultNextRequest()),this.batch=[],this.batchStarted=!1,this.lastId=-1,this.transports=c,this.requests={},this.connectPromise=this.connect(),this.requestChannel=new o.EventEmitter,this.nextID=d}return s.prototype.connect=function(){var c=this;return Promise.all(this.transports.map(function(d){return n(c,void 0,void 0,function(){return a(this,function(f){switch(f.label){case 0:return d.subscribe("error",this.handleError.bind(this)),d.subscribe("notification",this.handleNotification.bind(this)),[4,d.connect()];case 1:return f.sent(),[2]}})})}))},s.prototype.getPrimaryTransport=function(){return this.transports[0]},s.prototype.request=function(c,d,f){return d===void 0&&(d=!1),n(this,void 0,void 0,function(){var m,b,w,x,S=this;return a(this,function(E){return m=this.nextID().toString(),b=d?null:m,w={request:this.makeRequest(c.method,c.params||[],b),internalID:m},this.batchStarted?(x=new Promise(function(I,P){S.batch.push({resolve:I,reject:P,request:w})}),[2,x]):[2,this.getPrimaryTransport().sendData(w,f)]})})},s.prototype.close=function(){this.requestChannel.removeAllListeners(),this.transports.forEach(function(c){c.unsubscribe(),c.close()})},s.prototype.startBatch=function(){this.batchStarted=!0},s.prototype.stopBatch=function(){if(this.batchStarted===!1)throw Error("cannot end that which has never started");if(this.batch.length===0){this.batchStarted=!1;return}this.getPrimaryTransport().sendData(this.batch),this.batch=[],this.batchStarted=!1},s.prototype.makeRequest=function(c,d,f){return f?{jsonrpc:"2.0",id:f,method:c,params:d}:{jsonrpc:"2.0",method:c,params:d}},s.prototype.handleError=function(c){this.requestChannel.emit("error",c)},s.prototype.handleNotification=function(c){this.requestChannel.emit("notification",c)},s})()})),ao=rt((e=>{var n=e&&e.__extends||(function(){var o=function(s,c){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,f){d.__proto__=f}||function(d,f){for(var m in f)f.hasOwnProperty(m)&&(d[m]=f[m])},o(s,c)};return function(s,c){o(s,c);function d(){this.constructor=s}s.prototype=c===null?Object.create(c):(d.prototype=c.prototype,new d)}})();Object.defineProperty(e,"__esModule",{value:!0}),e.convertJSONToRPCError=e.JSONRPCError=e.ERR_UNKNOWN=e.ERR_MISSIING_ID=e.ERR_TIMEOUT=void 0,e.ERR_TIMEOUT=7777,e.ERR_MISSIING_ID=7878,e.ERR_UNKNOWN=7979;var a=(function(o){n(s,o);function s(c,d,f){var m=this.constructor,b=o.call(this,c)||this;return b.message=c,b.code=d,b.data=f,Object.setPrototypeOf(b,m.prototype),b}return s})(Error);e.JSONRPCError=a,e.convertJSONToRPCError=function(o){if(o.error){var s=o.error,c=s.message,d=s.code,f=s.data;return new a(c,d,f)}return new a("Unknown error",e.ERR_UNKNOWN,o)}})),kg=rt((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.TransportRequestManager=void 0;var n=Xd(),a=ao();e.TransportRequestManager=(function(){function o(){this.pendingRequest={},this.pendingBatchRequest={},this.transportEventChannel=new n.EventEmitter}return o.prototype.addRequest=function(s,c){return this.transportEventChannel.emit("pending",s),s instanceof Array?(this.addBatchReq(s,c),Promise.resolve()):this.addReq(s.internalID,c)},o.prototype.settlePendingRequest=function(s,c){var d=this;s.forEach(function(f){var m=d.pendingRequest[f.internalID];if(delete d.pendingBatchRequest[f.internalID],m!==void 0){if(c){m.reject(c);return}m.resolve(),(f.request.id===null||f.request.id===void 0)&&delete d.pendingRequest[f.internalID]}})},o.prototype.isPendingRequest=function(s){return this.pendingRequest.hasOwnProperty(s)},o.prototype.resolveResponse=function(s,c){c===void 0&&(c=!0);var d=s;try{return d=JSON.parse(s),this.checkJSONRPC(d)===!1?void 0:d instanceof Array?this.resolveBatch(d,c):this.resolveRes(d,c)}catch{var f=new a.JSONRPCError("Bad response format",a.ERR_UNKNOWN,s);return c&&this.transportEventChannel.emit("error",f),f}},o.prototype.addBatchReq=function(s,c){var d=this;return s.forEach(function(f){var m=f.resolve,b=f.reject,w=f.request.internalID;d.pendingBatchRequest[w]=!0,d.pendingRequest[w]={resolve:m,reject:b}}),Promise.resolve()},o.prototype.addReq=function(s,c){var d=this;return new Promise(function(f,m){c!==null&&c&&d.setRequestTimeout(s,c,m),d.pendingRequest[s]={resolve:f,reject:m}})},o.prototype.checkJSONRPC=function(s){var c=[s];return s instanceof Array&&(c=s),c.every(function(d){return d.result!==void 0||d.error!==void 0||d.method!==void 0})},o.prototype.processResult=function(s,c){if(s.error){var d=a.convertJSONToRPCError(s);c.reject(d);return}c.resolve(s.result)},o.prototype.resolveBatch=function(s,c){var d=this,f=s.map(function(m){return d.resolveRes(m,c)}).filter(function(m){return m});if(f.length>0)return f[0]},o.prototype.resolveRes=function(s,c){var d=s.id,f=s.error,m=this.pendingRequest[d];if(m){delete this.pendingRequest[d],this.processResult(s,m),this.transportEventChannel.emit("response",s);return}if(d===void 0&&f===void 0){this.transportEventChannel.emit("notification",s);return}var b;return f&&(b=a.convertJSONToRPCError(s)),c&&f&&b&&this.transportEventChannel.emit("error",b),b},o.prototype.setRequestTimeout=function(s,c,d){var f=this;setTimeout(function(){delete f.pendingRequest[s],d(new a.JSONRPCError("Request timeout request took longer than "+c+" ms to resolve",a.ERR_TIMEOUT))},c)},o})()})),ri=rt((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Transport=void 0;var n=kg();e.Transport=(function(){function a(){this.transportRequestManager=new n.TransportRequestManager,this.transportRequestManager.transportEventChannel.on("error",function(){})}return a.prototype.subscribe=function(o,s){this.transportRequestManager.transportEventChannel.addListener(o,s)},a.prototype.unsubscribe=function(o,s){if(!o)return this.transportRequestManager.transportEventChannel.removeAllListeners();o&&s&&this.transportRequestManager.transportEventChannel.removeListener(o,s)},a.prototype.parseData=function(o){return o instanceof Array?o.map(function(s){return s.request.request}):o.request},a})()})),io=rt((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.getNotifications=e.getBatchRequests=e.isNotification=void 0,e.isNotification=function(n){return n.request.id===void 0||n.request.id===null},e.getBatchRequests=function(n){return n instanceof Array?n.filter(function(a){return a.request.request.id!=null}).map(function(a){return a.request}):[]},e.getNotifications=function(n){return n instanceof Array?n.filter(function(a){return e.isNotification(a.request)}).map(function(a){return a.request}):e.isNotification(n)?[n]:[]}})),Cg=rt((e=>{var n=e&&e.__extends||(function(){var c=function(d,f){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,b){m.__proto__=b}||function(m,b){for(var w in b)b.hasOwnProperty(w)&&(m[w]=b[w])},c(d,f)};return function(d,f){c(d,f);function m(){this.constructor=d}d.prototype=f===null?Object.create(f):(m.prototype=f.prototype,new m)}})();Object.defineProperty(e,"__esModule",{value:!0});var a=ri(),o=io(),s=ao();e.default=(function(c){n(d,c);function d(f,m,b){var w=c.call(this)||this;return w.connection=f,w.reqUri=m,w.resUri=b,w}return d.prototype.connect=function(){var f=this;return this.connection.on(this.resUri,function(m){f.transportRequestManager.resolveResponse(m)}),Promise.resolve()},d.prototype.sendData=function(f,m){m===void 0&&(m=null);var b=this.transportRequestManager.addRequest(f,m),w=o.getNotifications(f),x=this.parseData(f);try{return this.connection.emit(this.reqUri,x),this.transportRequestManager.settlePendingRequest(w),b}catch(E){var S=new s.JSONRPCError(E.message,s.ERR_UNKNOWN,E);return this.transportRequestManager.settlePendingRequest(w,S),Promise.reject(S)}},d.prototype.close=function(){this.connection.removeAllListeners()},d})(a.Transport)}));function tC(e){return e&&DataView.prototype.isPrototypeOf(e)}function oo(e){if(typeof e!="string"&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||e==="")throw TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function Yd(e){return typeof e!="string"&&(e=String(e)),e}function Zd(e){var n={next:function(){var a=e.shift();return{done:a===void 0,value:a}}};return sn.iterable&&(n[Symbol.iterator]=function(){return n}),n}function Ft(e){this.map={},e instanceof Ft?e.forEach(function(n,a){this.append(a,n)},this):Array.isArray(e)?e.forEach(function(n){if(n.length!=2)throw TypeError("Headers constructor: expected name/value pair to be length 2, found"+n.length);this.append(n[0],n[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(n){this.append(n,e[n])},this)}function ef(e){if(!e._noBody){if(e.bodyUsed)return Promise.reject(TypeError("Already read"));e.bodyUsed=!0}}function Sg(e){return new Promise(function(n,a){e.onload=function(){n(e.result)},e.onerror=function(){a(e.error)}})}function nC(e){var n=new FileReader,a=Sg(n);return n.readAsArrayBuffer(e),a}function rC(e){var n=new FileReader,a=Sg(n),o=/charset=([A-Za-z0-9_-]+)/.exec(e.type),s=o?o[1]:"utf-8";return n.readAsText(e,s),a}function aC(e){for(var n=new Uint8Array(e),a=Array(n.length),o=0;o<n.length;o++)a[o]=String.fromCharCode(n[o]);return a.join("")}function Eg(e){if(e.slice)return e.slice(0);var n=new Uint8Array(e.byteLength);return n.set(new Uint8Array(e)),n.buffer}function Tg(){return this.bodyUsed=!1,this._initBody=function(e){this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?typeof e=="string"?this._bodyText=e:sn.blob&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:sn.formData&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:sn.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():sn.arrayBuffer&&sn.blob&&tC(e)?(this._bodyArrayBuffer=Eg(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):sn.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||Og(e))?this._bodyArrayBuffer=Eg(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof e=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):sn.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},sn.blob&&(this.blob=function(){var e=ef(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer)return ef(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer));if(sn.blob)return this.blob().then(nC);throw Error("could not read as ArrayBuffer")},this.text=function(){var e=ef(this);if(e)return e;if(this._bodyBlob)return rC(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(aC(this._bodyArrayBuffer));if(this._bodyFormData)throw Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},sn.formData&&(this.formData=function(){return this.text().then(oC)}),this.json=function(){return this.text().then(JSON.parse)},this}function iC(e){var n=e.toUpperCase();return Ag.indexOf(n)>-1?n:e}function oi(e,n){if(!(this instanceof oi))throw TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');n||(n={});var a=n.body;if(e instanceof oi){if(e.bodyUsed)throw TypeError("Already read");this.url=e.url,this.credentials=e.credentials,n.headers||(this.headers=new Ft(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,!a&&e._bodyInit!=null&&(a=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=n.credentials||this.credentials||"same-origin",(n.headers||!this.headers)&&(this.headers=new Ft(n.headers)),this.method=iC(n.method||this.method||"GET"),this.mode=n.mode||this.mode||null,this.signal=n.signal||this.signal||(function(){if("AbortController"in Wt)return new AbortController().signal})(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&a)throw TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(a),(this.method==="GET"||this.method==="HEAD")&&(n.cache==="no-store"||n.cache==="no-cache")){var o=/([?&])_=[^&]*/;o.test(this.url)?this.url=this.url.replace(o,"$1_="+new Date().getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+new Date().getTime()}}function oC(e){var n=new FormData;return e.trim().split("&").forEach(function(a){if(a){var o=a.split("="),s=o.shift().replace(/\+/g," "),c=o.join("=").replace(/\+/g," ");n.append(decodeURIComponent(s),decodeURIComponent(c))}}),n}function sC(e){var n=new Ft;return e.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(a){return a.indexOf(`
14
14
  `)===0?a.substr(1,a.length):a}).forEach(function(a){var o=a.split(":"),s=o.shift().trim();if(s){var c=o.join(":").trim();try{n.append(s,c)}catch(d){console.warn("Response "+d.message)}}}),n}function xr(e,n){if(!(this instanceof xr))throw TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(n||(n={}),this.type="default",this.status=n.status===void 0?200:n.status,this.status<200||this.status>599)throw RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=n.statusText===void 0?"":""+n.statusText,this.headers=new Ft(n.headers),this.url=n.url||"",this._initBody(e)}function Ig(e,n){return new Promise(function(a,o){var s=new oi(e,n);if(s.signal&&s.signal.aborted)return o(new ga("Aborted","AbortError"));var c=new XMLHttpRequest;function d(){c.abort()}c.onload=function(){var b={statusText:c.statusText,headers:sC(c.getAllResponseHeaders()||"")};s.url.indexOf("file://")===0&&(c.status<200||c.status>599)?b.status=200:b.status=c.status,b.url="responseURL"in c?c.responseURL:b.headers.get("X-Request-URL");var w="response"in c?c.response:c.responseText;setTimeout(function(){a(new xr(w,b))},0)},c.onerror=function(){setTimeout(function(){o(TypeError("Network request failed"))},0)},c.ontimeout=function(){setTimeout(function(){o(TypeError("Network request timed out"))},0)},c.onabort=function(){setTimeout(function(){o(new ga("Aborted","AbortError"))},0)};function f(b){try{return b===""&&Wt.location.href?Wt.location.href:b}catch{return b}}if(c.open(s.method,f(s.url),!0),s.credentials==="include"?c.withCredentials=!0:s.credentials==="omit"&&(c.withCredentials=!1),"responseType"in c&&(sn.blob?c.responseType="blob":sn.arrayBuffer&&(c.responseType="arraybuffer")),n&&typeof n.headers=="object"&&!(n.headers instanceof Ft||Wt.Headers&&n.headers instanceof Wt.Headers)){var m=[];Object.getOwnPropertyNames(n.headers).forEach(function(b){m.push(oo(b)),c.setRequestHeader(b,Yd(n.headers[b]))}),s.headers.forEach(function(b,w){m.indexOf(w)===-1&&c.setRequestHeader(w,b)})}else s.headers.forEach(function(b,w){c.setRequestHeader(w,b)});s.signal&&(s.signal.addEventListener("abort",d),c.onreadystatechange=function(){c.readyState===4&&s.signal.removeEventListener("abort",d)}),c.send(s._bodyInit===void 0?null:s._bodyInit)})}let Wt,sn,Lg,Og,Ag,Rg,ga,Pg,Mg,Ng,Dg,si,jg,zg,qg,Fg,Bg,Vg;Pg=Ew((()=>{Wt=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global||{},sn={searchParams:"URLSearchParams"in Wt,iterable:"Symbol"in Wt&&"iterator"in Symbol,blob:"FileReader"in Wt&&"Blob"in Wt&&(function(){try{return new Blob,!0}catch{return!1}})(),formData:"FormData"in Wt,arrayBuffer:"ArrayBuffer"in Wt},sn.arrayBuffer&&(Lg=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],Og=ArrayBuffer.isView||function(e){return e&&Lg.indexOf(Object.prototype.toString.call(e))>-1}),Ft.prototype.append=function(e,n){e=oo(e),n=Yd(n);var a=this.map[e];this.map[e]=a?a+", "+n:n},Ft.prototype.delete=function(e){delete this.map[oo(e)]},Ft.prototype.get=function(e){return e=oo(e),this.has(e)?this.map[e]:null},Ft.prototype.has=function(e){return this.map.hasOwnProperty(oo(e))},Ft.prototype.set=function(e,n){this.map[oo(e)]=Yd(n)},Ft.prototype.forEach=function(e,n){for(var a in this.map)this.map.hasOwnProperty(a)&&e.call(n,this.map[a],a,this)},Ft.prototype.keys=function(){var e=[];return this.forEach(function(n,a){e.push(a)}),Zd(e)},Ft.prototype.values=function(){var e=[];return this.forEach(function(n){e.push(n)}),Zd(e)},Ft.prototype.entries=function(){var e=[];return this.forEach(function(n,a){e.push([a,n])}),Zd(e)},sn.iterable&&(Ft.prototype[Symbol.iterator]=Ft.prototype.entries),Ag=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"],oi.prototype.clone=function(){return new oi(this,{body:this._bodyInit})},Tg.call(oi.prototype),Tg.call(xr.prototype),xr.prototype.clone=function(){return new xr(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new Ft(this.headers),url:this.url})},xr.error=function(){var e=new xr(null,{status:200,statusText:""});return e.ok=!1,e.status=0,e.type="error",e},Rg=[301,302,303,307,308],xr.redirect=function(e,n){if(Rg.indexOf(n)===-1)throw RangeError("Invalid status code");return new xr(null,{status:n,headers:{location:e}})},ga=Wt.DOMException;try{new ga}catch{ga=function(e,n){this.message=e,this.name=n,this.stack=Error(e).stack},ga.prototype=Object.create(Error.prototype),ga.prototype.constructor=ga}Ig.polyfill=!0,Wt.fetch||(Wt.fetch=Ig,Wt.Headers=Ft,Wt.Request=oi,Wt.Response=xr)})),Mg=rt(((e,n)=>{Pg(),n.exports=self.fetch.bind(self)})),Ng=rt((e=>{var n=e&&e.__extends||(function(){var w=function(x,S){return w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,I){E.__proto__=I}||function(E,I){for(var P in I)I.hasOwnProperty(P)&&(E[P]=I[P])},w(x,S)};return function(x,S){w(x,S);function E(){this.constructor=x}x.prototype=S===null?Object.create(S):(E.prototype=S.prototype,new E)}})(),a=e&&e.__awaiter||function(w,x,S,E){function I(P){return P instanceof S?P:new S(function(z){z(P)})}return new(S||(S=Promise))(function(P,z){function B(X){try{N(E.next(X))}catch(ce){z(ce)}}function V(X){try{N(E.throw(X))}catch(ce){z(ce)}}function N(X){X.done?P(X.value):I(X.value).then(B,V)}N((E=E.apply(w,x||[])).next())})},o=e&&e.__generator||function(w,x){var S={label:0,sent:function(){if(P[0]&1)throw P[1];return P[1]},trys:[],ops:[]},E,I,P,z;return z={next:B(0),throw:B(1),return:B(2)},typeof Symbol=="function"&&(z[Symbol.iterator]=function(){return this}),z;function B(N){return function(X){return V([N,X])}}function V(N){if(E)throw TypeError("Generator is already executing.");for(;S;)try{if(E=1,I&&(P=N[0]&2?I.return:N[0]?I.throw||((P=I.return)&&P.call(I),0):I.next)&&!(P=P.call(I,N[1])).done)return P;switch(I=0,P&&(N=[N[0]&2,P.value]),N[0]){case 0:case 1:P=N;break;case 4:return S.label++,{value:N[1],done:!1};case 5:S.label++,I=N[1],N=[0];continue;case 7:N=S.ops.pop(),S.trys.pop();continue;default:if(P=S.trys,!(P=P.length>0&&P[P.length-1])&&(N[0]===6||N[0]===2)){S=0;continue}if(N[0]===3&&(!P||N[1]>P[0]&&N[1]<P[3])){S.label=N[1];break}if(N[0]===6&&S.label<P[1]){S.label=P[1],P=N;break}if(P&&S.label<P[2]){S.label=P[2],S.ops.push(N);break}P[2]&&S.ops.pop(),S.trys.pop();continue}N=x.call(w,S)}catch(X){N=[6,X],I=0}finally{E=P=0}if(N[0]&5)throw N[1];return{value:N[0]?N[1]:void 0,done:!0}}},s=e&&e.__importDefault||function(w){return w&&w.__esModule?w:{default:w}};Object.defineProperty(e,"__esModule",{value:!0}),e.HTTPTransport=void 0;var c=s(Mg()),d=ri(),f=io(),m=ao(),b=(function(w){n(x,w);function x(S,E){var I=w.call(this)||this;return I.onlyNotifications=function(P){return P instanceof Array?P.every(function(z){return z.request.request.id===null||z.request.request.id===void 0}):P.request.id===null||P.request.id===void 0},I.uri=S,I.credentials=E&&E.credentials,I.headers=x.setupHeaders(E&&E.headers),I.injectedFetcher=E==null?void 0:E.fetcher,I}return x.prototype.connect=function(){return Promise.resolve()},x.prototype.sendData=function(S,E){return E===void 0&&(E=null),a(this,void 0,void 0,function(){var I,P,z,B,V,N,ce,X,ce;return o(this,function(A){switch(A.label){case 0:I=this.transportRequestManager.addRequest(S,E),P=f.getNotifications(S),z=f.getBatchRequests(S),B=this.injectedFetcher||c.default,A.label=1;case 1:return A.trys.push([1,4,,5]),[4,B(this.uri,{method:"POST",headers:this.headers,body:JSON.stringify(this.parseData(S)),credentials:this.credentials})];case 2:return V=A.sent(),this.transportRequestManager.settlePendingRequest(P),this.onlyNotifications(S)?[2,Promise.resolve()]:[4,V.text()];case 3:return N=A.sent(),ce=this.transportRequestManager.resolveResponse(N),ce?(this.transportRequestManager.settlePendingRequest(z,ce),[2,Promise.reject(ce)]):[3,5];case 4:return X=A.sent(),ce=new m.JSONRPCError(X.message,m.ERR_UNKNOWN,X),this.transportRequestManager.settlePendingRequest(P,ce),this.transportRequestManager.settlePendingRequest(f.getBatchRequests(S),ce),[2,Promise.reject(ce)];case 5:return[2,I]}})})},x.prototype.close=function(){},x.setupHeaders=function(S){var E=new Headers(S);return E.set("Content-Type","application/json"),E},x})(d.Transport);e.HTTPTransport=b,e.default=b})),Dg=H6({default:()=>jg},1),zg=Ew((()=>{si=null,typeof WebSocket<"u"?si=WebSocket:typeof MozWebSocket<"u"?si=MozWebSocket:typeof global<"u"?si=global.WebSocket||global.MozWebSocket:typeof window<"u"?si=window.WebSocket||window.MozWebSocket:typeof self<"u"&&(si=self.WebSocket||self.MozWebSocket),jg=si})),qg=rt((e=>{var n=e&&e.__extends||(function(){var b=function(w,x){return b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,E){S.__proto__=E}||function(S,E){for(var I in E)E.hasOwnProperty(I)&&(S[I]=E[I])},b(w,x)};return function(w,x){b(w,x);function S(){this.constructor=w}w.prototype=x===null?Object.create(x):(S.prototype=x.prototype,new S)}})(),a=e&&e.__awaiter||function(b,w,x,S){function E(I){return I instanceof x?I:new x(function(P){P(I)})}return new(x||(x=Promise))(function(I,P){function z(N){try{V(S.next(N))}catch(X){P(X)}}function B(N){try{V(S.throw(N))}catch(X){P(X)}}function V(N){N.done?I(N.value):E(N.value).then(z,B)}V((S=S.apply(b,w||[])).next())})},o=e&&e.__generator||function(b,w){var x={label:0,sent:function(){if(I[0]&1)throw I[1];return I[1]},trys:[],ops:[]},S,E,I,P;return P={next:z(0),throw:z(1),return:z(2)},typeof Symbol=="function"&&(P[Symbol.iterator]=function(){return this}),P;function z(V){return function(N){return B([V,N])}}function B(V){if(S)throw TypeError("Generator is already executing.");for(;x;)try{if(S=1,E&&(I=V[0]&2?E.return:V[0]?E.throw||((I=E.return)&&I.call(E),0):E.next)&&!(I=I.call(E,V[1])).done)return I;switch(E=0,I&&(V=[V[0]&2,I.value]),V[0]){case 0:case 1:I=V;break;case 4:return x.label++,{value:V[1],done:!1};case 5:x.label++,E=V[1],V=[0];continue;case 7:V=x.ops.pop(),x.trys.pop();continue;default:if(I=x.trys,!(I=I.length>0&&I[I.length-1])&&(V[0]===6||V[0]===2)){x=0;continue}if(V[0]===3&&(!I||V[1]>I[0]&&V[1]<I[3])){x.label=V[1];break}if(V[0]===6&&x.label<I[1]){x.label=I[1],I=V;break}if(I&&x.label<I[2]){x.label=I[2],x.ops.push(V);break}I[2]&&x.ops.pop(),x.trys.pop();continue}V=w.call(b,x)}catch(N){V=[6,N],E=0}finally{S=I=0}if(V[0]&5)throw V[1];return{value:V[0]?V[1]:void 0,done:!0}}},s=e&&e.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(e,"__esModule",{value:!0});var c=s((zg(),B6(Dg))),d=ri(),f=io(),m=ao();e.default=(function(b){n(w,b);function w(x){var S=b.call(this)||this;return S.uri=x,S.connection=new c.default(x),S}return w.prototype.connect=function(){var x=this;return new Promise(function(S,E){var I=function(){x.connection.removeEventListener("open",I),S()};x.connection.addEventListener("open",I),x.connection.addEventListener("message",function(P){var z=P.data;x.transportRequestManager.resolveResponse(z)})})},w.prototype.sendData=function(x,S){return S===void 0&&(S=5e3),a(this,void 0,void 0,function(){var E,I,P;return o(this,function(z){E=this.transportRequestManager.addRequest(x,S),I=f.getNotifications(x);try{this.connection.send(JSON.stringify(this.parseData(x))),this.transportRequestManager.settlePendingRequest(I)}catch(B){P=new m.JSONRPCError(B.message,m.ERR_UNKNOWN,B),this.transportRequestManager.settlePendingRequest(I,P),this.transportRequestManager.settlePendingRequest(f.getBatchRequests(x),P),E=Promise.reject(P)}return[2,E]})})},w.prototype.close=function(){this.connection.close()},w})(d.Transport)})),Fg=rt((e=>{var n=e&&e.__extends||(function(){var f=function(m,b){return f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,x){w.__proto__=x}||function(w,x){for(var S in x)x.hasOwnProperty(S)&&(w[S]=x[S])},f(m,b)};return function(m,b){f(m,b);function w(){this.constructor=m}m.prototype=b===null?Object.create(b):(w.prototype=b.prototype,new w)}})(),a=e&&e.__awaiter||function(f,m,b,w){function x(S){return S instanceof b?S:new b(function(E){E(S)})}return new(b||(b=Promise))(function(S,E){function I(B){try{z(w.next(B))}catch(V){E(V)}}function P(B){try{z(w.throw(B))}catch(V){E(V)}}function z(B){B.done?S(B.value):x(B.value).then(I,P)}z((w=w.apply(f,m||[])).next())})},o=e&&e.__generator||function(f,m){var b={label:0,sent:function(){if(S[0]&1)throw S[1];return S[1]},trys:[],ops:[]},w,x,S,E;return E={next:I(0),throw:I(1),return:I(2)},typeof Symbol=="function"&&(E[Symbol.iterator]=function(){return this}),E;function I(z){return function(B){return P([z,B])}}function P(z){if(w)throw TypeError("Generator is already executing.");for(;b;)try{if(w=1,x&&(S=z[0]&2?x.return:z[0]?x.throw||((S=x.return)&&S.call(x),0):x.next)&&!(S=S.call(x,z[1])).done)return S;switch(x=0,S&&(z=[z[0]&2,S.value]),z[0]){case 0:case 1:S=z;break;case 4:return b.label++,{value:z[1],done:!1};case 5:b.label++,x=z[1],z=[0];continue;case 7:z=b.ops.pop(),b.trys.pop();continue;default:if(S=b.trys,!(S=S.length>0&&S[S.length-1])&&(z[0]===6||z[0]===2)){b=0;continue}if(z[0]===3&&(!S||z[1]>S[0]&&z[1]<S[3])){b.label=z[1];break}if(z[0]===6&&b.label<S[1]){b.label=S[1],S=z;break}if(S&&b.label<S[2]){b.label=S[2],b.ops.push(z);break}S[2]&&b.ops.pop(),b.trys.pop();continue}z=m.call(f,b)}catch(B){z=[6,B],x=0}finally{w=S=0}if(z[0]&5)throw z[1];return{value:z[0]?z[1]:void 0,done:!0}}};Object.defineProperty(e,"__esModule",{value:!0});var s=ri(),c=io(),d=function(f){var m=400,b=window.screen.height;return window.open(f,"inspector:popup","left=0,top=0,width="+m+",height="+b+",resizable,scrollbars=yes,status=1")};e.default=(function(f){n(m,f);function m(b){var w=f.call(this)||this;return w.messageHandler=function(x){w.transportRequestManager.resolveResponse(JSON.stringify(x.data))},w.uri=b,w.postMessageID="post-message-transport-"+Math.random(),w}return m.prototype.createWindow=function(b){return new Promise(function(w,x){var S=d(b);setTimeout(function(){w(S)},3e3)})},m.prototype.connect=function(){var b=this,w=/^(http|https):\/\/.*$/;return new Promise(function(x,S){return a(b,void 0,void 0,function(){var E;return o(this,function(I){switch(I.label){case 0:return w.test(this.uri)||S(Error("Bad URI")),E=this,[4,this.createWindow(this.uri)];case 1:return E.frame=I.sent(),window.addEventListener("message",this.messageHandler),x(),[2]}})})})},m.prototype.sendData=function(b,w){return w===void 0&&(w=5e3),a(this,void 0,void 0,function(){var x,S;return o(this,function(E){return x=this.transportRequestManager.addRequest(b,null),S=c.getNotifications(b),this.frame&&(this.frame.postMessage(b.request,this.uri),this.transportRequestManager.settlePendingRequest(S)),[2,x]})})},m.prototype.close=function(){this.frame&&(window.removeEventListener("message",this.messageHandler),this.frame.close())},m})(s.Transport)})),Bg=rt((e=>{var n=e&&e.__extends||(function(){var d=function(f,m){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,w){b.__proto__=w}||function(b,w){for(var x in w)w.hasOwnProperty(x)&&(b[x]=w[x])},d(f,m)};return function(f,m){d(f,m);function b(){this.constructor=f}f.prototype=m===null?Object.create(m):(b.prototype=m.prototype,new b)}})(),a=e&&e.__awaiter||function(d,f,m,b){function w(x){return x instanceof m?x:new m(function(S){S(x)})}return new(m||(m=Promise))(function(x,S){function E(z){try{P(b.next(z))}catch(B){S(B)}}function I(z){try{P(b.throw(z))}catch(B){S(B)}}function P(z){z.done?x(z.value):w(z.value).then(E,I)}P((b=b.apply(d,f||[])).next())})},o=e&&e.__generator||function(d,f){var m={label:0,sent:function(){if(x[0]&1)throw x[1];return x[1]},trys:[],ops:[]},b,w,x,S;return S={next:E(0),throw:E(1),return:E(2)},typeof Symbol=="function"&&(S[Symbol.iterator]=function(){return this}),S;function E(P){return function(z){return I([P,z])}}function I(P){if(b)throw TypeError("Generator is already executing.");for(;m;)try{if(b=1,w&&(x=P[0]&2?w.return:P[0]?w.throw||((x=w.return)&&x.call(w),0):w.next)&&!(x=x.call(w,P[1])).done)return x;switch(w=0,x&&(P=[P[0]&2,x.value]),P[0]){case 0:case 1:x=P;break;case 4:return m.label++,{value:P[1],done:!1};case 5:m.label++,w=P[1],P=[0];continue;case 7:P=m.ops.pop(),m.trys.pop();continue;default:if(x=m.trys,!(x=x.length>0&&x[x.length-1])&&(P[0]===6||P[0]===2)){m=0;continue}if(P[0]===3&&(!x||P[1]>x[0]&&P[1]<x[3])){m.label=P[1];break}if(P[0]===6&&m.label<x[1]){m.label=x[1],x=P;break}if(x&&m.label<x[2]){m.label=x[2],m.ops.push(P);break}x[2]&&m.ops.pop(),m.trys.pop();continue}P=f.call(d,m)}catch(z){P=[6,z],w=0}finally{b=x=0}if(P[0]&5)throw P[1];return{value:P[0]?P[1]:void 0,done:!0}}};Object.defineProperty(e,"__esModule",{value:!0});var s=ri(),c=io();e.default=(function(d){n(f,d);function f(m){var b=d.call(this)||this;return b.messageHandler=function(w){b.transportRequestManager.resolveResponse(JSON.stringify(w.data))},b.uri=m,b.postMessageID="post-message-transport-"+Math.random(),b}return f.prototype.createWindow=function(m){var b=this;return new Promise(function(w,x){var S,E=document.createElement("iframe");E.setAttribute("id",b.postMessageID),E.setAttribute("width","0px"),E.setAttribute("height","0px"),E.setAttribute("style","visiblity:hidden;border:none;outline:none;"),E.addEventListener("load",function(){w(S)}),E.setAttribute("src",m),window.document.body.appendChild(E),S=E.contentWindow})},f.prototype.connect=function(){var m=this,b=/^(http|https):\/\/.*$/;return new Promise(function(w,x){return a(m,void 0,void 0,function(){var S;return o(this,function(E){switch(E.label){case 0:return b.test(this.uri)||x(Error("Bad URI")),S=this,[4,this.createWindow(this.uri)];case 1:return S.frame=E.sent(),window.addEventListener("message",this.messageHandler),w(),[2]}})})})},f.prototype.sendData=function(m,b){return b===void 0&&(b=5e3),a(this,void 0,void 0,function(){var w,x;return o(this,function(S){return w=this.transportRequestManager.addRequest(m,null),x=c.getNotifications(m),this.frame&&(this.frame.postMessage(m.request,"*"),this.transportRequestManager.settlePendingRequest(x)),[2,w]})})},f.prototype.close=function(){var m;(m=document.getElementById(this.postMessageID))==null||m.remove(),window.removeEventListener("message",this.messageHandler)},f})(s.Transport)})),Vg=rt((e=>{var n=e&&e.__awaiter||function(o,s,c,d){function f(m){return m instanceof c?m:new c(function(b){b(m)})}return new(c||(c=Promise))(function(m,b){function w(E){try{S(d.next(E))}catch(I){b(I)}}function x(E){try{S(d.throw(E))}catch(I){b(I)}}function S(E){E.done?m(E.value):f(E.value).then(w,x)}S((d=d.apply(o,s||[])).next())})},a=e&&e.__generator||function(o,s){var c={label:0,sent:function(){if(m[0]&1)throw m[1];return m[1]},trys:[],ops:[]},d,f,m,b;return b={next:w(0),throw:w(1),return:w(2)},typeof Symbol=="function"&&(b[Symbol.iterator]=function(){return this}),b;function w(S){return function(E){return x([S,E])}}function x(S){if(d)throw TypeError("Generator is already executing.");for(;c;)try{if(d=1,f&&(m=S[0]&2?f.return:S[0]?f.throw||((m=f.return)&&m.call(f),0):f.next)&&!(m=m.call(f,S[1])).done)return m;switch(f=0,m&&(S=[S[0]&2,m.value]),S[0]){case 0:case 1:m=S;break;case 4:return c.label++,{value:S[1],done:!1};case 5:c.label++,f=S[1],S=[0];continue;case 7:S=c.ops.pop(),c.trys.pop();continue;default:if(m=c.trys,!(m=m.length>0&&m[m.length-1])&&(S[0]===6||S[0]===2)){c=0;continue}if(S[0]===3&&(!m||S[1]>m[0]&&S[1]<m[3])){c.label=S[1];break}if(S[0]===6&&c.label<m[1]){c.label=m[1],m=S;break}if(m&&c.label<m[2]){c.label=m[2],c.ops.push(S);break}m[2]&&c.ops.pop(),c.trys.pop();continue}S=s.call(o,c)}catch(E){S=[6,E],f=0}finally{d=m=0}if(S[0]&5)throw S[1];return{value:S[0]?S[1]:void 0,done:!0}}};Object.defineProperty(e,"__esModule",{value:!0}),e.default=(function(){function o(s){this.requestManager=s}return o.prototype.startBatch=function(){return this.requestManager.startBatch()},o.prototype.stopBatch=function(){return this.requestManager.stopBatch()},o.prototype.request=function(s,c){return n(this,void 0,void 0,function(){return a(this,function(d){switch(d.label){case 0:return this.requestManager.connectPromise?[4,this.requestManager.connectPromise]:[3,2];case 1:d.sent(),d.label=2;case 2:return[2,this.requestManager.request(s,!1,c)]}})})},o.prototype.notify=function(s){return n(this,void 0,void 0,function(){return a(this,function(c){switch(c.label){case 0:return this.requestManager.connectPromise?[4,this.requestManager.connectPromise]:[3,2];case 1:c.sent(),c.label=2;case 2:return[2,this.requestManager.request(s,!0,null)]}})})},o.prototype.onNotification=function(s){this.requestManager.requestChannel.addListener("notification",s)},o.prototype.onError=function(s){this.requestManager.requestChannel.addListener("error",s)},o.prototype.close=function(){this.requestManager.close()},o})()})),ql=rt((e=>{var n=e&&e.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(e,"__esModule",{value:!0}),e.PostMessageIframeTransport=e.PostMessageWindowTransport=e.JSONRPCError=e.WebSocketTransport=e.EventEmitterTransport=e.HTTPTransport=e.RequestManager=e.Client=void 0,e.RequestManager=n(xg()).default,e.EventEmitterTransport=n(Cg()).default,e.HTTPTransport=n(Ng()).default,e.WebSocketTransport=n(qg()).default,e.PostMessageWindowTransport=n(Fg()).default,e.PostMessageIframeTransport=n(Bg()).default;var a=ao();Object.defineProperty(e,"JSONRPCError",{enumerable:!0,get:function(){return a.JSONRPCError}});var o=n(Vg());e.Client=o.default,e.default=o.default}));function Ut(e,n){if(n.line>=e.lines)return n.character===0?e.length:void 0;let a=e.line(n.line+1).from+n.character;if(!(a>e.length))return a}function or(e,n){return Ut(e,n)||0}function ya(e,n){let a=e.lineAt(n);return{character:n-a.from,line:a.number-1}}var Ul=new i_.Renderer,lC=Ul.code;Ul.code=e=>e.text.trim()?lC.call(Ul,e):"";function Hg(e){return i_(e,{async:!1,gfm:!0,breaks:!0,renderer:Ul})}function sr(e,n=Hg){if(!e)return"";if(fC(e)){let a=e.value;return e.kind==="markdown"&&(a=n(a.trim())),a}return Array.isArray(e)?e.map(a=>sr(a,n)).filter(Boolean).join(`
15
15