@pasko70/pibo 2.1.1 → 2.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent-runtime/capabilities.js +68 -0
- package/dist/agent-runtime/context-build.js +13 -5
- package/dist/agent-runtime/portable-history.js +526 -0
- package/dist/agent-runtime/profile-validation.js +13 -7
- package/dist/agent-runtime/resource-files.js +26 -10
- package/dist/agent-runtime/resource-service.js +216 -13
- package/dist/agent-runtimes/codex-native/adapter.js +38 -1
- package/dist/agent-runtimes/codex-native/auth.js +24 -3
- package/dist/agent-runtimes/codex-native/portable-history.js +73 -0
- package/dist/agent-runtimes/codex-native/process.js +38 -27
- package/dist/agent-runtimes/codex-native/resource-delivery.js +39 -16
- package/dist/agent-runtimes/codex-native/turn.js +68 -5
- package/dist/agent-runtimes/omp/adapter.js +43 -8
- package/dist/agent-runtimes/omp/process.js +26 -10
- package/dist/agent-runtimes/omp/resource-delivery.js +150 -84
- package/dist/agent-runtimes/pi/adapter.js +32 -1
- package/dist/agent-runtimes/pi/auth.js +34 -29
- package/dist/agent-runtimes/pi/credentials.js +43 -0
- package/dist/agent-runtimes/pi/model-catalog.js +7 -3
- package/dist/agent-runtimes/pi/portable-history.js +99 -0
- package/dist/agent-runtimes/pi/routed-session.js +1 -1
- package/dist/agent-runtimes/pi/runtime.js +31 -15
- package/dist/apps/chat/agent-profiles.js +1 -0
- package/dist/apps/chat/agent-store.js +31 -11
- package/dist/apps/chat/chat-files.js +19 -6
- package/dist/apps/chat/chat-request-normalizers.js +19 -0
- package/dist/apps/chat/trace.js +5 -0
- package/dist/apps/chat/web-app.js +55 -6
- package/dist/apps/chat-ui/assets/{apl-14BqhLYK.js → apl-gfMMiTNf.js} +1 -1
- package/dist/apps/chat-ui/assets/asciiarmor-C_eisQCp.js +1 -0
- package/dist/apps/{context-files-ui/assets/asn1-Bg4FbdCg.js → chat-ui/assets/asn1-DCl_8MCW.js} +1 -1
- package/dist/apps/{context-files-ui/assets/asterisk-B2MO-X4d.js → chat-ui/assets/asterisk-BEn0Cwpx.js} +1 -1
- package/dist/apps/chat-ui/assets/clike-D_6L3tnO.js +1 -0
- package/dist/apps/chat-ui/assets/cmake-84nbDH0I.js +1 -0
- package/dist/apps/chat-ui/assets/cobol-DHLQUbN7.js +1 -0
- package/dist/apps/chat-ui/assets/coffeescript-De_zI4J0.js +1 -0
- package/dist/apps/chat-ui/assets/commonlisp-DgAKBe0r.js +1 -0
- package/dist/apps/chat-ui/assets/crystal-Bsdphhtm.js +1 -0
- package/dist/apps/chat-ui/assets/css-CnaYoQib.js +1 -0
- package/dist/apps/chat-ui/assets/{d-TPqSVaHM.js → d-DWkQyNnU.js} +1 -1
- package/dist/apps/{context-files-ui/assets/dist-B7gXtTZC.js → chat-ui/assets/dist-B7DmqUNk.js} +1 -1
- package/dist/apps/chat-ui/assets/dist-BJ-TIk3N.js +1 -0
- package/dist/apps/chat-ui/assets/dist-BxYxDl5K.js +1 -0
- package/dist/apps/chat-ui/assets/dist-CqM4On9D.js +13 -0
- package/dist/apps/chat-ui/assets/dist-CswnpKik.js +1 -0
- package/dist/apps/{context-files-ui/assets/dist-DxEGebCR.js → chat-ui/assets/dist-CvYwol1J.js} +1 -1
- package/dist/apps/chat-ui/assets/dist-DHvUPfrF.js +1 -0
- package/dist/apps/chat-ui/assets/dist-DLJCGrGQ.js +1 -0
- package/dist/apps/chat-ui/assets/{dist-DLMjd26T.js → dist-DMiglryg.js} +1 -1
- package/dist/apps/chat-ui/assets/dist-DTeLDijr.js +9 -0
- package/dist/apps/chat-ui/assets/{dist-DKoyMSNr.js → dist-DpF08Yd7.js} +1 -1
- package/dist/apps/chat-ui/assets/dist-Dx7GMMHU.js +1 -0
- package/dist/apps/chat-ui/assets/dist-LCx98fA_.js +11 -0
- package/dist/apps/chat-ui/assets/{dist-DotDq_kD.js → dist-RKTRnzGb.js} +1 -1
- package/dist/apps/chat-ui/assets/dist-S3zJGntM.js +1 -0
- package/dist/apps/chat-ui/assets/{dist-sZgJkWZb.js → dist-SF43opz6.js} +1 -1
- package/dist/apps/{context-files-ui/assets/dist-BkUONE3N.js → chat-ui/assets/dist-XVYGiB-c.js} +1 -1
- package/dist/apps/chat-ui/assets/dist-eddbbGyw.js +1 -0
- package/dist/apps/chat-ui/assets/dist-fPhZsAUX.js +1 -0
- package/dist/apps/chat-ui/assets/dist-mpRGeo_R.js +2 -0
- package/dist/apps/chat-ui/assets/{dockerfile-CJb2sekW.js → dockerfile-DJkHQgkl.js} +1 -1
- package/dist/apps/chat-ui/assets/{dylan-08Azy1NK.js → dylan-BCDoL_-p.js} +1 -1
- package/dist/apps/chat-ui/assets/{ecl-dhxjHL8y.js → ecl-BVIeWmwY.js} +1 -1
- package/dist/apps/{context-files-ui/assets/erlang-BD5LkVkR.js → chat-ui/assets/erlang-BV0c4Hdn.js} +1 -1
- package/dist/apps/chat-ui/assets/{factor-B2EMQZkP.js → factor-LKH5gN8L.js} +1 -1
- package/dist/apps/chat-ui/assets/groovy-CUpZ7dEl.js +1 -0
- package/dist/apps/chat-ui/assets/{haxe-BJVKtprM.js → haxe-DjVOVvNP.js} +1 -1
- package/dist/apps/chat-ui/assets/index-2qGRr2cm.js +226 -0
- package/dist/apps/chat-ui/assets/index-QkfBrh9Q.css +1 -0
- package/dist/apps/chat-ui/assets/javascript-DoL9Wb-Q.js +1 -0
- package/dist/apps/chat-ui/assets/{lua-BxuTHaF7.js → lua-CiA1ziua.js} +1 -1
- package/dist/apps/chat-ui/assets/{mumps-Ds_ZaumL.js → mumps-BSzj6Xyz.js} +1 -1
- package/dist/apps/{context-files-ui/assets/nsis-DOo3SJmd.js → chat-ui/assets/nsis-CfSuhXs5.js} +1 -1
- package/dist/apps/chat-ui/assets/{ntriples-DLHGTvHs.js → ntriples-B9h1VB_g.js} +1 -1
- package/dist/apps/chat-ui/assets/perl-BkSkiI9m.js +1 -0
- package/dist/apps/chat-ui/assets/{powershell-B4IPkVxR.js → powershell-BcIto6Sf.js} +1 -1
- package/dist/apps/{context-files-ui/assets/pug-QU72BPAa.js → chat-ui/assets/pug-Gsm0M45u.js} +1 -1
- package/dist/apps/chat-ui/assets/puppet-BZyAS7I4.js +1 -0
- package/dist/apps/chat-ui/assets/python-B_1Jd8HM.js +1 -0
- package/dist/apps/chat-ui/assets/r-CxDmU1I4.js +1 -0
- package/dist/apps/chat-ui/assets/ruby-BjXV7-Qa.js +1 -0
- package/dist/apps/chat-ui/assets/scheme-D9qYN0V5.js +1 -0
- package/dist/apps/chat-ui/assets/{shell-BjiMLAaM.js → shell-DwuoZtxw.js} +1 -1
- package/dist/apps/chat-ui/assets/{simple-mode-DnMbQuKW.js → simple-mode-DXiLM1-G.js} +1 -1
- package/dist/apps/chat-ui/assets/sql-DuQMFDvy.js +1 -0
- package/dist/apps/chat-ui/assets/{stex-BCRT8IJ3.js → stex-DNzd62Q_.js} +1 -1
- package/dist/apps/chat-ui/assets/{stylus-CARoeVE9.js → stylus-BOVgKnng.js} +1 -1
- package/dist/apps/chat-ui/assets/textile-C4jVoHG1.js +1 -0
- package/dist/apps/chat-ui/assets/tiki-AK6FwT8q.js +1 -0
- package/dist/apps/chat-ui/assets/toml-BPTmHmyx.js +1 -0
- package/dist/apps/chat-ui/assets/{ttcn-GvRgs2AT.js → ttcn-PPSTk1ow.js} +1 -1
- package/dist/apps/chat-ui/assets/{ttcn-cfg-CGCXz7Vo.js → ttcn-cfg-2b4Gb5sE.js} +1 -1
- package/dist/apps/chat-ui/assets/turtle-Cx3rYX2g.js +1 -0
- package/dist/apps/chat-ui/assets/{verilog-DVCHmufx.js → verilog-7LoJAqYT.js} +1 -1
- package/dist/apps/chat-ui/assets/vhdl-kS471soi.js +1 -0
- package/dist/apps/{context-files-ui/assets/xquery-5f0hn7cg.js → chat-ui/assets/xquery-BKJx4mf9.js} +1 -1
- package/dist/apps/chat-ui/assets/z80-Co3PbHdE.js +1 -0
- package/dist/apps/chat-ui/index.html +5 -3
- package/dist/apps/chat-vscode-web/assets/index-C0sMILFt.js +41 -0
- package/dist/apps/chat-vscode-web/assets/index-CF1-9PKU.css +2 -0
- package/dist/apps/chat-vscode-web/index.html +2 -2
- package/dist/apps/context-files-ui/assets/{apl-14BqhLYK.js → apl-gfMMiTNf.js} +1 -1
- package/dist/apps/context-files-ui/assets/asciiarmor-C_eisQCp.js +1 -0
- package/dist/apps/{chat-ui/assets/asn1-Bg4FbdCg.js → context-files-ui/assets/asn1-DCl_8MCW.js} +1 -1
- package/dist/apps/{chat-ui/assets/asterisk-B2MO-X4d.js → context-files-ui/assets/asterisk-BEn0Cwpx.js} +1 -1
- package/dist/apps/context-files-ui/assets/clike-D_6L3tnO.js +1 -0
- package/dist/apps/context-files-ui/assets/cmake-84nbDH0I.js +1 -0
- package/dist/apps/context-files-ui/assets/cobol-DHLQUbN7.js +1 -0
- package/dist/apps/context-files-ui/assets/coffeescript-De_zI4J0.js +1 -0
- package/dist/apps/context-files-ui/assets/commonlisp-DgAKBe0r.js +1 -0
- package/dist/apps/context-files-ui/assets/crystal-Bsdphhtm.js +1 -0
- package/dist/apps/context-files-ui/assets/css-CnaYoQib.js +1 -0
- package/dist/apps/context-files-ui/assets/{d-TPqSVaHM.js → d-DWkQyNnU.js} +1 -1
- package/dist/apps/{chat-ui/assets/dist-C6LPDFXU.js → context-files-ui/assets/dist-BAqbgxUS.js} +1 -1
- package/dist/apps/context-files-ui/assets/dist-BJ-TIk3N.js +1 -0
- package/dist/apps/context-files-ui/assets/dist-BcauuFwf.js +1 -0
- package/dist/apps/context-files-ui/assets/dist-BecMXs79.js +1 -0
- package/dist/apps/context-files-ui/assets/{dist-C-Jm45P4.js → dist-Ci2NSlf1.js} +1 -1
- package/dist/apps/context-files-ui/assets/dist-CqM4On9D.js +13 -0
- package/dist/apps/context-files-ui/assets/dist-CswnpKik.js +1 -0
- package/dist/apps/{chat-ui/assets/dist-I26VB0QO.js → context-files-ui/assets/dist-D-xpsbZI.js} +1 -1
- package/dist/apps/context-files-ui/assets/dist-DHvUPfrF.js +1 -0
- package/dist/apps/context-files-ui/assets/dist-DLJCGrGQ.js +1 -0
- package/dist/apps/context-files-ui/assets/{dist-DLMjd26T.js → dist-DMiglryg.js} +1 -1
- package/dist/apps/context-files-ui/assets/dist-DTeLDijr.js +9 -0
- package/dist/apps/context-files-ui/assets/{dist-DKoyMSNr.js → dist-DpF08Yd7.js} +1 -1
- package/dist/apps/context-files-ui/assets/dist-LCx98fA_.js +11 -0
- package/dist/apps/context-files-ui/assets/{dist-DotDq_kD.js → dist-RKTRnzGb.js} +1 -1
- package/dist/apps/context-files-ui/assets/dist-S3zJGntM.js +1 -0
- package/dist/apps/{chat-ui/assets/dist-BkUONE3N.js → context-files-ui/assets/dist-XVYGiB-c.js} +1 -1
- package/dist/apps/context-files-ui/assets/dist-eddbbGyw.js +1 -0
- package/dist/apps/context-files-ui/assets/dist-fPhZsAUX.js +1 -0
- package/dist/apps/context-files-ui/assets/dist-mpRGeo_R.js +2 -0
- package/dist/apps/context-files-ui/assets/{dockerfile-CJb2sekW.js → dockerfile-DJkHQgkl.js} +1 -1
- package/dist/apps/context-files-ui/assets/{dylan-08Azy1NK.js → dylan-BCDoL_-p.js} +1 -1
- package/dist/apps/context-files-ui/assets/{ecl-dhxjHL8y.js → ecl-BVIeWmwY.js} +1 -1
- package/dist/apps/{chat-ui/assets/erlang-BD5LkVkR.js → context-files-ui/assets/erlang-BV0c4Hdn.js} +1 -1
- package/dist/apps/context-files-ui/assets/{factor-B2EMQZkP.js → factor-LKH5gN8L.js} +1 -1
- package/dist/apps/context-files-ui/assets/groovy-CUpZ7dEl.js +1 -0
- package/dist/apps/context-files-ui/assets/{haxe-BJVKtprM.js → haxe-DjVOVvNP.js} +1 -1
- package/dist/apps/context-files-ui/assets/index-CkWXlBNn.js +191 -0
- package/dist/apps/context-files-ui/assets/{index-Cs4XQITe.css → index-D8TsUizd.css} +1 -1
- package/dist/apps/context-files-ui/assets/javascript-DoL9Wb-Q.js +1 -0
- package/dist/apps/context-files-ui/assets/{lua-BxuTHaF7.js → lua-CiA1ziua.js} +1 -1
- package/dist/apps/context-files-ui/assets/{mumps-Ds_ZaumL.js → mumps-BSzj6Xyz.js} +1 -1
- package/dist/apps/{chat-ui/assets/nsis-DOo3SJmd.js → context-files-ui/assets/nsis-CfSuhXs5.js} +1 -1
- package/dist/apps/context-files-ui/assets/{ntriples-DLHGTvHs.js → ntriples-B9h1VB_g.js} +1 -1
- package/dist/apps/context-files-ui/assets/perl-BkSkiI9m.js +1 -0
- package/dist/apps/context-files-ui/assets/{powershell-B4IPkVxR.js → powershell-BcIto6Sf.js} +1 -1
- package/dist/apps/{chat-ui/assets/pug-QU72BPAa.js → context-files-ui/assets/pug-Gsm0M45u.js} +1 -1
- package/dist/apps/context-files-ui/assets/puppet-BZyAS7I4.js +1 -0
- package/dist/apps/context-files-ui/assets/python-B_1Jd8HM.js +1 -0
- package/dist/apps/context-files-ui/assets/r-CxDmU1I4.js +1 -0
- package/dist/apps/context-files-ui/assets/ruby-BjXV7-Qa.js +1 -0
- package/dist/apps/context-files-ui/assets/scheme-D9qYN0V5.js +1 -0
- package/dist/apps/context-files-ui/assets/{shell-BjiMLAaM.js → shell-DwuoZtxw.js} +1 -1
- package/dist/apps/context-files-ui/assets/{simple-mode-DnMbQuKW.js → simple-mode-DXiLM1-G.js} +1 -1
- package/dist/apps/context-files-ui/assets/sql-DuQMFDvy.js +1 -0
- package/dist/apps/context-files-ui/assets/{stex-BCRT8IJ3.js → stex-DNzd62Q_.js} +1 -1
- package/dist/apps/context-files-ui/assets/{stylus-CARoeVE9.js → stylus-BOVgKnng.js} +1 -1
- package/dist/apps/context-files-ui/assets/textile-C4jVoHG1.js +1 -0
- package/dist/apps/context-files-ui/assets/tiki-AK6FwT8q.js +1 -0
- package/dist/apps/context-files-ui/assets/toml-BPTmHmyx.js +1 -0
- package/dist/apps/context-files-ui/assets/{ttcn-GvRgs2AT.js → ttcn-PPSTk1ow.js} +1 -1
- package/dist/apps/context-files-ui/assets/{ttcn-cfg-CGCXz7Vo.js → ttcn-cfg-2b4Gb5sE.js} +1 -1
- package/dist/apps/context-files-ui/assets/turtle-Cx3rYX2g.js +1 -0
- package/dist/apps/context-files-ui/assets/{verilog-DVCHmufx.js → verilog-7LoJAqYT.js} +1 -1
- package/dist/apps/context-files-ui/assets/vhdl-kS471soi.js +1 -0
- package/dist/apps/{chat-ui/assets/xquery-5f0hn7cg.js → context-files-ui/assets/xquery-BKJx4mf9.js} +1 -1
- package/dist/apps/context-files-ui/assets/z80-Co3PbHdE.js +1 -0
- package/dist/apps/context-files-ui/index.html +5 -3
- package/dist/apps/vscode-artifacts/latest.vsix +0 -0
- package/dist/apps/vscode-artifacts/pibo-vscode-ext-2.2.1.vsix +0 -0
- package/dist/auth/better-auth.js +223 -30
- package/dist/auth/cli.js +10 -1
- package/dist/auth/machine-keys.js +8 -4
- package/dist/auth/openai-codex-usage.js +4 -4
- package/dist/cli-session/fakeSessionSource.js +2 -2
- package/dist/cli-session/localSessionSource.js +2 -2
- package/dist/cli.js +3 -1
- package/dist/config/config.js +9 -4
- package/dist/core/compaction-prompt.js +3 -1
- package/dist/core/context-build.js +1 -0
- package/dist/core/pibo-home.js +24 -1
- package/dist/core/private-path.js +146 -0
- package/dist/core/profiles.js +17 -3
- package/dist/core/sensitive-data-redaction.js +36 -0
- package/dist/core/session-model.js +1 -0
- package/dist/core/session-router.js +226 -30
- package/dist/data/pibo-store.js +5 -1
- package/dist/gateway/server.js +9 -0
- package/dist/plugins/context-files.js +11 -0
- package/dist/plugins/registry.js +3 -0
- package/dist/providers/openai-gpt56.js +0 -11
- package/dist/reliability/store.js +5 -1
- package/dist/resources/lifecycle.js +13 -3
- package/dist/runs/resource-isolation.js +159 -8
- package/dist/runs/tools.js +44 -1
- package/dist/sessions/pibo-data-store.js +3 -0
- package/dist/tools/codex-browser-node-repl.js +4 -2
- package/dist/tools/codex-browser.js +1 -1
- package/dist/tools/codex-image-generation.js +4 -4
- package/dist/tools/runtime/node-backend.js +4 -1
- package/dist/tools/runtime/python-backend.js +4 -1
- package/dist/web-annotations/api.js +22 -2
- package/npm-shrinkwrap.json +16707 -0
- package/package.json +19 -14
- package/dist/apps/chat-ui/assets/asciiarmor-WLvjqI7d.js +0 -1
- package/dist/apps/chat-ui/assets/clike-CjmcUpt6.js +0 -1
- package/dist/apps/chat-ui/assets/cmake-i2VDNaRq.js +0 -1
- package/dist/apps/chat-ui/assets/cobol-BwO6DF08.js +0 -1
- package/dist/apps/chat-ui/assets/coffeescript-BtivDvRz.js +0 -1
- package/dist/apps/chat-ui/assets/commonlisp-DFkEQdLP.js +0 -1
- package/dist/apps/chat-ui/assets/crystal-CU0NkcVL.js +0 -1
- package/dist/apps/chat-ui/assets/css-CbMZAQ1W.js +0 -1
- package/dist/apps/chat-ui/assets/dist-9v2ZXT6V.js +0 -11
- package/dist/apps/chat-ui/assets/dist-B1LVAytl.js +0 -9
- package/dist/apps/chat-ui/assets/dist-B5PTVnox.js +0 -1
- package/dist/apps/chat-ui/assets/dist-B5ZAfwf5.js +0 -1
- package/dist/apps/chat-ui/assets/dist-D1KyNDg5.js +0 -13
- package/dist/apps/chat-ui/assets/dist-DVtXxfHc.js +0 -1
- package/dist/apps/chat-ui/assets/dist-DW4Qrfbd.js +0 -2
- package/dist/apps/chat-ui/assets/dist-DmbsHdMC.js +0 -1
- package/dist/apps/chat-ui/assets/dist-DyvwuSFO.js +0 -1
- package/dist/apps/chat-ui/assets/dist-QQuDy4KA.js +0 -1
- package/dist/apps/chat-ui/assets/dist-RtHbJRPV.js +0 -1
- package/dist/apps/chat-ui/assets/groovy-Cmduloe1.js +0 -1
- package/dist/apps/chat-ui/assets/index-BPbNvcZe.css +0 -1
- package/dist/apps/chat-ui/assets/index-CIOf2uL2.js +0 -237
- package/dist/apps/chat-ui/assets/javascript-C5pDVaoP.js +0 -1
- package/dist/apps/chat-ui/assets/perl-D6YJObi_.js +0 -1
- package/dist/apps/chat-ui/assets/puppet-B_0GFuyD.js +0 -1
- package/dist/apps/chat-ui/assets/python-Cs7sNzy_.js +0 -1
- package/dist/apps/chat-ui/assets/r-CN5s4f3o.js +0 -1
- package/dist/apps/chat-ui/assets/ruby-BVPradRk.js +0 -1
- package/dist/apps/chat-ui/assets/scheme-CvNgHAnh.js +0 -1
- package/dist/apps/chat-ui/assets/sql-DYI2GwJR.js +0 -1
- package/dist/apps/chat-ui/assets/textile-Yg_UWn-t.js +0 -1
- package/dist/apps/chat-ui/assets/tiki-CC_ic8g0.js +0 -1
- package/dist/apps/chat-ui/assets/toml-B7gGzVkJ.js +0 -1
- package/dist/apps/chat-ui/assets/turtle-CwIpz2yy.js +0 -1
- package/dist/apps/chat-ui/assets/vhdl-BGDk4f1d.js +0 -1
- package/dist/apps/chat-ui/assets/z80-B7Dfb4UO.js +0 -1
- package/dist/apps/chat-vscode-web/assets/index-1ivRyjFs.js +0 -41
- package/dist/apps/chat-vscode-web/assets/index-Dupu1DzQ.css +0 -2
- package/dist/apps/context-files-ui/assets/asciiarmor-WLvjqI7d.js +0 -1
- package/dist/apps/context-files-ui/assets/clike-CjmcUpt6.js +0 -1
- package/dist/apps/context-files-ui/assets/cmake-i2VDNaRq.js +0 -1
- package/dist/apps/context-files-ui/assets/cobol-BwO6DF08.js +0 -1
- package/dist/apps/context-files-ui/assets/coffeescript-BtivDvRz.js +0 -1
- package/dist/apps/context-files-ui/assets/commonlisp-DFkEQdLP.js +0 -1
- package/dist/apps/context-files-ui/assets/crystal-CU0NkcVL.js +0 -1
- package/dist/apps/context-files-ui/assets/css-CbMZAQ1W.js +0 -1
- package/dist/apps/context-files-ui/assets/dist-B5PTVnox.js +0 -1
- package/dist/apps/context-files-ui/assets/dist-B5ZAfwf5.js +0 -1
- package/dist/apps/context-files-ui/assets/dist-BD262Ouw.js +0 -1
- package/dist/apps/context-files-ui/assets/dist-BKuGdcnX.js +0 -9
- package/dist/apps/context-files-ui/assets/dist-CHdx1Jri.js +0 -1
- package/dist/apps/context-files-ui/assets/dist-CULMH-fB.js +0 -11
- package/dist/apps/context-files-ui/assets/dist-Cjq6RWEt.js +0 -1
- package/dist/apps/context-files-ui/assets/dist-CntqFySz.js +0 -1
- package/dist/apps/context-files-ui/assets/dist-D1KyNDg5.js +0 -13
- package/dist/apps/context-files-ui/assets/dist-QQuDy4KA.js +0 -1
- package/dist/apps/context-files-ui/assets/dist-kPuQud7t.js +0 -2
- package/dist/apps/context-files-ui/assets/groovy-Cmduloe1.js +0 -1
- package/dist/apps/context-files-ui/assets/index-DZWsbuvg.js +0 -202
- package/dist/apps/context-files-ui/assets/javascript-C5pDVaoP.js +0 -1
- package/dist/apps/context-files-ui/assets/perl-D6YJObi_.js +0 -1
- package/dist/apps/context-files-ui/assets/puppet-B_0GFuyD.js +0 -1
- package/dist/apps/context-files-ui/assets/python-Cs7sNzy_.js +0 -1
- package/dist/apps/context-files-ui/assets/r-CN5s4f3o.js +0 -1
- package/dist/apps/context-files-ui/assets/ruby-BVPradRk.js +0 -1
- package/dist/apps/context-files-ui/assets/scheme-CvNgHAnh.js +0 -1
- package/dist/apps/context-files-ui/assets/sql-DYI2GwJR.js +0 -1
- package/dist/apps/context-files-ui/assets/textile-Yg_UWn-t.js +0 -1
- package/dist/apps/context-files-ui/assets/tiki-CC_ic8g0.js +0 -1
- package/dist/apps/context-files-ui/assets/toml-B7gGzVkJ.js +0 -1
- package/dist/apps/context-files-ui/assets/turtle-CwIpz2yy.js +0 -1
- package/dist/apps/context-files-ui/assets/vhdl-BGDk4f1d.js +0 -1
- package/dist/apps/context-files-ui/assets/z80-B7Dfb4UO.js +0 -1
- /package/dist/apps/chat-ui/assets/{brainfuck-CV9kufud.js → brainfuck-D5EjA2JK.js} +0 -0
- /package/dist/apps/chat-ui/assets/{clojure-De3QGfx6.js → clojure-BflJGmDX.js} +0 -0
- /package/dist/apps/chat-ui/assets/{cypher-Dke5QOzv.js → cypher-p9eYesGn.js} +0 -0
- /package/dist/apps/chat-ui/assets/{diff-B365LSoZ.js → diff-ChtP43wD.js} +0 -0
- /package/dist/apps/chat-ui/assets/{dtd-CBMymJ7O.js → dtd-DTF72YNO.js} +0 -0
- /package/dist/apps/chat-ui/assets/{ebnf-Dkum_1J8.js → ebnf-D4c0_ac3.js} +0 -0
- /package/dist/apps/chat-ui/assets/{eiffel-C446m6dI.js → eiffel-BEjRio4Q.js} +0 -0
- /package/dist/apps/chat-ui/assets/{elm-po1E9de0.js → elm-Cshzl8qu.js} +0 -0
- /package/dist/apps/chat-ui/assets/{fcl-DkEOamHd.js → fcl-ClOhbFR7.js} +0 -0
- /package/dist/apps/chat-ui/assets/{forth-dCg2_HVB.js → forth-Cezjo90N.js} +0 -0
- /package/dist/apps/chat-ui/assets/{fortran-3ZpXLFh1.js → fortran-Bt6PBEDR.js} +0 -0
- /package/dist/apps/chat-ui/assets/{gas-DMmxLZRI.js → gas-BHEdbvp9.js} +0 -0
- /package/dist/apps/chat-ui/assets/{gherkin-DUSFg2R6.js → gherkin-oBAE_ms0.js} +0 -0
- /package/dist/apps/chat-ui/assets/{haskell-Cyr255R9.js → haskell-BRsoo5mP.js} +0 -0
- /package/dist/apps/chat-ui/assets/{http-DszHFpc-.js → http-CLVgA2GD.js} +0 -0
- /package/dist/apps/chat-ui/assets/{idl-Cati9Nrv.js → idl-BUZw3wgd.js} +0 -0
- /package/dist/apps/chat-ui/assets/{julia-DlqY1cTU.js → julia-CQfgDRfP.js} +0 -0
- /package/dist/apps/chat-ui/assets/{livescript-C6p8-2W1.js → livescript-BXxG0Yva.js} +0 -0
- /package/dist/apps/chat-ui/assets/{mathematica-nDHZUMJT.js → mathematica-u8YMmbU0.js} +0 -0
- /package/dist/apps/chat-ui/assets/{mbox-DAaR0Hcz.js → mbox-BEMVcqjs.js} +0 -0
- /package/dist/apps/chat-ui/assets/{mirc-CCA0FRfl.js → mirc-C9zpzAZU.js} +0 -0
- /package/dist/apps/chat-ui/assets/{mllike-Cw3Iccsb.js → mllike-B45xgp2S.js} +0 -0
- /package/dist/apps/chat-ui/assets/{modelica-Czx80fNR.js → modelica-CqHI_q-D.js} +0 -0
- /package/dist/apps/chat-ui/assets/{mscgen-BmfuTbzG.js → mscgen-qgSLujhx.js} +0 -0
- /package/dist/apps/chat-ui/assets/{nginx-D9M2PQ4U.js → nginx-BMaDbqW3.js} +0 -0
- /package/dist/apps/chat-ui/assets/{octave-8jj96JiC.js → octave-D2Q8cUp1.js} +0 -0
- /package/dist/apps/chat-ui/assets/{oz-BmMq7iC4.js → oz-BwTct_5T.js} +0 -0
- /package/dist/apps/chat-ui/assets/{pascal-BgMr6XpT.js → pascal-Dp_KdFgX.js} +0 -0
- /package/dist/apps/chat-ui/assets/{pig-nx7uchs8.js → pig-AF4Hwhju.js} +0 -0
- /package/dist/apps/chat-ui/assets/{properties-CoavQdLC.js → properties-C357ku5U.js} +0 -0
- /package/dist/apps/chat-ui/assets/{protobuf-D5EWhcmc.js → protobuf-D1ij_kNL.js} +0 -0
- /package/dist/apps/chat-ui/assets/{q-BIB9pPtI.js → q-B9NhS7L_.js} +0 -0
- /package/dist/apps/chat-ui/assets/{rpm-Ct_Ck8mQ.js → rpm-gpDK5sbt.js} +0 -0
- /package/dist/apps/chat-ui/assets/{sas-DN4j74IF.js → sas-C2OyD2Y6.js} +0 -0
- /package/dist/apps/chat-ui/assets/{sieve-C2U1O5Z4.js → sieve-BAxa3IjF.js} +0 -0
- /package/dist/apps/chat-ui/assets/{smalltalk-DkYwYufV.js → smalltalk-BLp5-jwC.js} +0 -0
- /package/dist/apps/chat-ui/assets/{solr-BopnSD-v.js → solr-BBopId9w.js} +0 -0
- /package/dist/apps/chat-ui/assets/{sparql-Cpg3YQfd.js → sparql-Dz-mlCAC.js} +0 -0
- /package/dist/apps/chat-ui/assets/{spreadsheet-kRxtVt9J.js → spreadsheet-CTIncYxj.js} +0 -0
- /package/dist/apps/chat-ui/assets/{swift-DKNaLAK6.js → swift-DKB6_1j6.js} +0 -0
- /package/dist/apps/chat-ui/assets/{tcl-CQyXkgMH.js → tcl-BGfruO1u.js} +0 -0
- /package/dist/apps/chat-ui/assets/{tiddlywiki-dqVbkfX4.js → tiddlywiki-VlUiK86J.js} +0 -0
- /package/dist/apps/chat-ui/assets/{troff-Bq3z6oAu.js → troff-C2dAgh7P.js} +0 -0
- /package/dist/apps/chat-ui/assets/{vb-BmcHUM2C.js → vb-BthdM_4N.js} +0 -0
- /package/dist/apps/chat-ui/assets/{vbscript-Cs9dylre.js → vbscript-D9f6rSsU.js} +0 -0
- /package/dist/apps/chat-ui/assets/{velocity-CBWU0VCy.js → velocity-CqftRsjg.js} +0 -0
- /package/dist/apps/chat-ui/assets/{webidl-egXQEWlC.js → webidl-D5jiJvOU.js} +0 -0
- /package/dist/apps/chat-ui/assets/{yacas-DNs9XkmQ.js → yacas-CXXgtw0p.js} +0 -0
- /package/dist/apps/context-files-ui/assets/{brainfuck-CV9kufud.js → brainfuck-D5EjA2JK.js} +0 -0
- /package/dist/apps/context-files-ui/assets/{clojure-De3QGfx6.js → clojure-BflJGmDX.js} +0 -0
- /package/dist/apps/context-files-ui/assets/{cypher-Dke5QOzv.js → cypher-p9eYesGn.js} +0 -0
- /package/dist/apps/context-files-ui/assets/{diff-B365LSoZ.js → diff-ChtP43wD.js} +0 -0
- /package/dist/apps/context-files-ui/assets/{dtd-CBMymJ7O.js → dtd-DTF72YNO.js} +0 -0
- /package/dist/apps/context-files-ui/assets/{ebnf-Dkum_1J8.js → ebnf-D4c0_ac3.js} +0 -0
- /package/dist/apps/context-files-ui/assets/{eiffel-C446m6dI.js → eiffel-BEjRio4Q.js} +0 -0
- /package/dist/apps/context-files-ui/assets/{elm-po1E9de0.js → elm-Cshzl8qu.js} +0 -0
- /package/dist/apps/context-files-ui/assets/{fcl-DkEOamHd.js → fcl-ClOhbFR7.js} +0 -0
- /package/dist/apps/context-files-ui/assets/{forth-dCg2_HVB.js → forth-Cezjo90N.js} +0 -0
- /package/dist/apps/context-files-ui/assets/{fortran-3ZpXLFh1.js → fortran-Bt6PBEDR.js} +0 -0
- /package/dist/apps/context-files-ui/assets/{gas-DMmxLZRI.js → gas-BHEdbvp9.js} +0 -0
- /package/dist/apps/context-files-ui/assets/{gherkin-DUSFg2R6.js → gherkin-oBAE_ms0.js} +0 -0
- /package/dist/apps/context-files-ui/assets/{haskell-Cyr255R9.js → haskell-BRsoo5mP.js} +0 -0
- /package/dist/apps/context-files-ui/assets/{http-DszHFpc-.js → http-CLVgA2GD.js} +0 -0
- /package/dist/apps/context-files-ui/assets/{idl-Cati9Nrv.js → idl-BUZw3wgd.js} +0 -0
- /package/dist/apps/context-files-ui/assets/{julia-DlqY1cTU.js → julia-CQfgDRfP.js} +0 -0
- /package/dist/apps/context-files-ui/assets/{livescript-C6p8-2W1.js → livescript-BXxG0Yva.js} +0 -0
- /package/dist/apps/context-files-ui/assets/{mathematica-nDHZUMJT.js → mathematica-u8YMmbU0.js} +0 -0
- /package/dist/apps/context-files-ui/assets/{mbox-DAaR0Hcz.js → mbox-BEMVcqjs.js} +0 -0
- /package/dist/apps/context-files-ui/assets/{mirc-CCA0FRfl.js → mirc-C9zpzAZU.js} +0 -0
- /package/dist/apps/context-files-ui/assets/{mllike-Cw3Iccsb.js → mllike-B45xgp2S.js} +0 -0
- /package/dist/apps/context-files-ui/assets/{modelica-Czx80fNR.js → modelica-CqHI_q-D.js} +0 -0
- /package/dist/apps/context-files-ui/assets/{mscgen-BmfuTbzG.js → mscgen-qgSLujhx.js} +0 -0
- /package/dist/apps/context-files-ui/assets/{nginx-D9M2PQ4U.js → nginx-BMaDbqW3.js} +0 -0
- /package/dist/apps/context-files-ui/assets/{octave-8jj96JiC.js → octave-D2Q8cUp1.js} +0 -0
- /package/dist/apps/context-files-ui/assets/{oz-BmMq7iC4.js → oz-BwTct_5T.js} +0 -0
- /package/dist/apps/context-files-ui/assets/{pascal-BgMr6XpT.js → pascal-Dp_KdFgX.js} +0 -0
- /package/dist/apps/context-files-ui/assets/{pig-nx7uchs8.js → pig-AF4Hwhju.js} +0 -0
- /package/dist/apps/context-files-ui/assets/{properties-CoavQdLC.js → properties-C357ku5U.js} +0 -0
- /package/dist/apps/context-files-ui/assets/{protobuf-D5EWhcmc.js → protobuf-D1ij_kNL.js} +0 -0
- /package/dist/apps/context-files-ui/assets/{q-BIB9pPtI.js → q-B9NhS7L_.js} +0 -0
- /package/dist/apps/context-files-ui/assets/{rpm-Ct_Ck8mQ.js → rpm-gpDK5sbt.js} +0 -0
- /package/dist/apps/context-files-ui/assets/{sas-DN4j74IF.js → sas-C2OyD2Y6.js} +0 -0
- /package/dist/apps/context-files-ui/assets/{sieve-C2U1O5Z4.js → sieve-BAxa3IjF.js} +0 -0
- /package/dist/apps/context-files-ui/assets/{smalltalk-DkYwYufV.js → smalltalk-BLp5-jwC.js} +0 -0
- /package/dist/apps/context-files-ui/assets/{solr-BopnSD-v.js → solr-BBopId9w.js} +0 -0
- /package/dist/apps/context-files-ui/assets/{sparql-Cpg3YQfd.js → sparql-Dz-mlCAC.js} +0 -0
- /package/dist/apps/context-files-ui/assets/{spreadsheet-kRxtVt9J.js → spreadsheet-CTIncYxj.js} +0 -0
- /package/dist/apps/context-files-ui/assets/{swift-DKNaLAK6.js → swift-DKB6_1j6.js} +0 -0
- /package/dist/apps/context-files-ui/assets/{tcl-CQyXkgMH.js → tcl-BGfruO1u.js} +0 -0
- /package/dist/apps/context-files-ui/assets/{tiddlywiki-dqVbkfX4.js → tiddlywiki-VlUiK86J.js} +0 -0
- /package/dist/apps/context-files-ui/assets/{troff-Bq3z6oAu.js → troff-C2dAgh7P.js} +0 -0
- /package/dist/apps/context-files-ui/assets/{vb-BmcHUM2C.js → vb-BthdM_4N.js} +0 -0
- /package/dist/apps/context-files-ui/assets/{vbscript-Cs9dylre.js → vbscript-D9f6rSsU.js} +0 -0
- /package/dist/apps/context-files-ui/assets/{velocity-CBWU0VCy.js → velocity-CqftRsjg.js} +0 -0
- /package/dist/apps/context-files-ui/assets/{webidl-egXQEWlC.js → webidl-D5jiJvOU.js} +0 -0
- /package/dist/apps/context-files-ui/assets/{yacas-DNs9XkmQ.js → yacas-CXXgtw0p.js} +0 -0
|
@@ -1,202 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/dist-kPuQud7t.js","assets/dist-D1KyNDg5.js","assets/dist-QQuDy4KA.js","assets/dist-CULMH-fB.js","assets/dist-DKoyMSNr.js","assets/dist-Cjq6RWEt.js","assets/dist-DotDq_kD.js","assets/dist-BD262Ouw.js","assets/dist-B7gXtTZC.js","assets/dist-DxEGebCR.js","assets/dist-BKuGdcnX.js","assets/dist-B5ZAfwf5.js","assets/dist-CntqFySz.js","assets/dist-DLMjd26T.js","assets/dist-BkUONE3N.js","assets/dist-B5PTVnox.js","assets/dockerfile-CJb2sekW.js","assets/simple-mode-DnMbQuKW.js","assets/factor-B2EMQZkP.js","assets/nsis-DOo3SJmd.js","assets/pug-QU72BPAa.js","assets/javascript-C5pDVaoP.js","assets/dist-C-Jm45P4.js","assets/dist-CHdx1Jri.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{$ as e,A as t,At as n,B as r,Bt as i,C as a,Ct as o,D as s,Dt as c,E as l,Et as u,F as d,Ft as f,G as p,H as m,I as h,It as g,J as _,K as v,L as y,Lt as b,M as x,Mt as S,N as C,Nt as w,O as T,Ot as E,P as ee,Pt as D,Q as O,R as k,Rt as te,S as A,St as j,T as M,Tt as ne,U as re,V as ie,Vt as ae,W as oe,X as se,Y as N,Z as ce,_ as le,_t as ue,a as de,at as fe,b as pe,bt as me,c as he,ct as ge,d as _e,dt as ve,et as ye,f as be,ft as xe,g as Se,gt as Ce,h as we,ht as Te,i as Ee,it as De,j as Oe,jt as ke,k as Ae,kt as je,l as P,lt as Me,m as Ne,mt as Pe,n as Fe,nt as Ie,o as Le,ot as Re,p as ze,pt as Be,q as Ve,r as He,rt as Ue,s as We,st as Ge,t as Ke,tt as qe,u as Je,ut as Ye,v as Xe,vt as Ze,w as Qe,wt as F,x as $e,xt as et,y as tt,yt as nt,z as rt,zt as it}from"./dist-D1KyNDg5.js";var at=Object.create,ot=Object.defineProperty,st=Object.getOwnPropertyDescriptor,ct=Object.getOwnPropertyNames,lt=Object.getPrototypeOf,ut=Object.prototype.hasOwnProperty,dt=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),ft=(e,t)=>{let n={};for(var r in e)ot(n,r,{get:e[r],enumerable:!0});return t||ot(n,Symbol.toStringTag,{value:`Module`}),n},pt=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=ct(t),a=0,o=i.length,s;a<o;a++)s=i[a],!ut.call(e,s)&&s!==n&&ot(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=st(t,s))||r.enumerable});return e},mt=(e,t,n)=>(n=e==null?{}:at(lt(e)),pt(t||!e||!e.__esModule?ot(n,`default`,{value:e,enumerable:!0}):n,e));(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var ht=dt((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function E(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function ee(e,t){return E(e.type,t,e.props)}function D(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function O(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var k=/\/+/g;function te(e,t){return typeof e==`object`&&e&&e.key!=null?O(``+e.key):t.toString(36)}function A(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function j(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,j(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+te(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(k,`$&/`)+`/`),j(o,r,i,``,function(e){return e})):o!=null&&(D(o)&&(o=ee(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(k,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u<e.length;u++)a=e[u],s=l+te(a,u),c+=j(a,r,i,s,o);else if(u=m(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+te(a,u++),c+=j(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return j(A(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function M(e,t,n){if(e==null)return e;var r=[],i=0;return j(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function ne(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var re=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},ie={map:M,forEach:function(e,t,n){M(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return M(e,function(){t++}),t},toArray:function(e){return M(e,function(e){return e})||[]},only:function(e){if(!D(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=ie,e.Component=v,e.Fragment=r,e.Profiler=a,e.PureComponent=b,e.StrictMode=i,e.Suspense=l,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=w,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return w.H.useMemoCache(e)}},e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=g({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!T.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return E(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)T.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return E(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=D,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:ne}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=w.T,n={};w.T=n;try{var r=e(),i=w.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(C,re)}catch(e){re(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),w.T=t}},e.unstable_useCacheRefresh=function(){return w.H.useCacheRefresh()},e.use=function(e){return w.H.use(e)},e.useActionState=function(e,t,n){return w.H.useActionState(e,t,n)},e.useCallback=function(e,t){return w.H.useCallback(e,t)},e.useContext=function(e){return w.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return w.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return w.H.useEffect(e,t)},e.useEffectEvent=function(e){return w.H.useEffectEvent(e)},e.useId=function(){return w.H.useId()},e.useImperativeHandle=function(e,t,n){return w.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return w.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return w.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return w.H.useMemo(e,t)},e.useOptimistic=function(e,t){return w.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return w.H.useReducer(e,t,n)},e.useRef=function(e){return w.H.useRef(e)},e.useState=function(e){return w.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return w.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return w.H.useTransition()},e.version=`19.2.5`})),gt=dt(((e,t)=>{t.exports=ht()})),_t=dt((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,S||(S=!0,D());else{var t=n(l);t!==null&&te(x,t.startTime-e)}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-T<w)}function ee(){if(g=!1,S){var t=e.unstable_now();T=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&te(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?D():S=!1}}}var D;if(typeof y==`function`)D=function(){y(ee)};else if(typeof MessageChannel<`u`){var O=new MessageChannel,k=O.port2;O.port1.onmessage=ee,D=function(){k.postMessage(null)}}else D=function(){_(ee,0)};function te(t,n){C=_(function(){t(e.unstable_now())},n)}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(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,te(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,D()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),vt=dt(((e,t)=>{t.exports=_t()})),yt=dt((e=>{var t=gt();function n(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},a=Symbol.for(`react.portal`);function o(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}var s=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return o(e,t,null,r)},e.flushSync=function(e){var t=s.T,n=i.p;try{if(s.T=null,i.p=2,e)return e()}finally{s.T=t,i.p=n,i.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,i.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&i.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=c(n,t.crossOrigin),a=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?i.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:o}):n===`script`&&i.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`)if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=c(t.as,t.crossOrigin);i.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0})}}else t??i.d.M(e)},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=c(n,t.crossOrigin);i.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`)if(t){var n=c(t.as,t.crossOrigin);i.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0})}else i.d.m(e)},e.requestFormReset=function(e){i.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return s.H.useFormState(e,t,n)},e.useFormStatus=function(){return s.H.useHostTransitionStatus()},e.version=`19.2.5`})),bt=dt(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=yt()})),xt=dt((e=>{var t=vt(),n=gt(),r=bt();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function s(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function c(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(o(e)!==e)throw Error(i(188))}function u(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var s=a.alternate;if(s===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===r)return l(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,r=s;break}if(u===r){c=!0,r=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,r=a;break}if(u===r){c=!0,r=s,n=a;break}u=u.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function d(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=d(e),t!==null)return t;e=e.sibling}return null}var f=Object.assign,p=Symbol.for(`react.element`),m=Symbol.for(`react.transitional.element`),h=Symbol.for(`react.portal`),g=Symbol.for(`react.fragment`),_=Symbol.for(`react.strict_mode`),v=Symbol.for(`react.profiler`),y=Symbol.for(`react.consumer`),b=Symbol.for(`react.context`),x=Symbol.for(`react.forward_ref`),S=Symbol.for(`react.suspense`),C=Symbol.for(`react.suspense_list`),w=Symbol.for(`react.memo`),T=Symbol.for(`react.lazy`),E=Symbol.for(`react.activity`),ee=Symbol.for(`react.memo_cache_sentinel`),D=Symbol.iterator;function O(e){return typeof e!=`object`||!e?null:(e=D&&e[D]||e[`@@iterator`],typeof e==`function`?e:null)}var k=Symbol.for(`react.client.reference`);function te(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===k?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case g:return`Fragment`;case v:return`Profiler`;case _:return`StrictMode`;case S:return`Suspense`;case C:return`SuspenseList`;case E:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case h:return`Portal`;case b:return e.displayName||`Context`;case y:return(e._context.displayName||`Context`)+`.Consumer`;case x:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case w:return t=e.displayName||null,t===null?te(e.type)||`Memo`:t;case T:t=e._payload,e=e._init;try{return te(e(t))}catch{}}return null}var A=Array.isArray,j=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,M=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ne={pending:!1,data:null,method:null,action:null},re=[],ie=-1;function ae(e){return{current:e}}function oe(e){0>ie||(e.current=re[ie],re[ie]=null,ie--)}function se(e,t){ie++,re[ie]=e.current,e.current=t}var N=ae(null),ce=ae(null),le=ae(null),ue=ae(null);function de(e,t){switch(se(le,t),se(ce,e),se(N,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Yd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Yd(t),e=Xd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}oe(N),se(N,e)}function fe(){oe(N),oe(ce),oe(le)}function pe(e){e.memoizedState!==null&&se(ue,e);var t=N.current,n=Xd(t,e.type);t!==n&&(se(ce,e),se(N,n))}function me(e){ce.current===e&&(oe(N),oe(ce)),ue.current===e&&(oe(ue),ap._currentValue=ne)}var he,ge;function _e(e){if(he===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);he=t&&t[1]||``,ge=-1<e.stack.indexOf(`
|
|
3
|
-
at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
|
|
4
|
-
`+he+e+ge}var ve=!1;function ye(e,t){if(!e||ve)return``;ve=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,`props`,{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,`name`,{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
|
|
5
|
-
`),l=s.split(`
|
|
6
|
-
`);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=`
|
|
7
|
-
`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{ve=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?_e(n):``}function be(e,t){switch(e.tag){case 26:case 27:case 5:return _e(e.type);case 16:return _e(`Lazy`);case 13:return e.child!==t&&t!==null?_e(`Suspense Fallback`):_e(`Suspense`);case 19:return _e(`SuspenseList`);case 0:case 15:return ye(e.type,!1);case 11:return ye(e.type.render,!1);case 1:return ye(e.type,!0);case 31:return _e(`Activity`);default:return``}}function xe(e){try{var t=``,n=null;do t+=be(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
|
|
8
|
-
Error generating stack: `+e.message+`
|
|
9
|
-
`+e.stack}}var Se=Object.prototype.hasOwnProperty,Ce=t.unstable_scheduleCallback,we=t.unstable_cancelCallback,Te=t.unstable_shouldYield,Ee=t.unstable_requestPaint,De=t.unstable_now,Oe=t.unstable_getCurrentPriorityLevel,ke=t.unstable_ImmediatePriority,Ae=t.unstable_UserBlockingPriority,je=t.unstable_NormalPriority,P=t.unstable_LowPriority,Me=t.unstable_IdlePriority,Ne=t.log,Pe=t.unstable_setDisableYieldValue,Fe=null,Ie=null;function Le(e){if(typeof Ne==`function`&&Pe(e),Ie&&typeof Ie.setStrictMode==`function`)try{Ie.setStrictMode(Fe,e)}catch{}}var Re=Math.clz32?Math.clz32:Ve,ze=Math.log,Be=Math.LN2;function Ve(e){return e>>>=0,e===0?32:31-(ze(e)/Be|0)|0}var He=256,Ue=262144,We=4194304;function Ge(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ke(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=Ge(n))):i=Ge(o):i=Ge(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Ge(n))):i=Ge(o)):i=Ge(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function qe(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Je(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ye(){var e=We;return We<<=1,!(We&62914560)&&(We=4194304),e}function Xe(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ze(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Qe(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-Re(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&F(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function F(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Re(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function $e(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Re(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function et(e,t){var n=t&-t;return n=n&42?1:tt(n),(n&(e.suspendedLanes|t))===0?n:0}function tt(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function nt(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function rt(){var e=M.p;return e===0?(e=window.event,e===void 0?32:xp(e.type)):e}function it(e,t){var n=M.p;try{return M.p=e,t()}finally{M.p=n}}var at=Math.random().toString(36).slice(2),ot=`__reactFiber$`+at,st=`__reactProps$`+at,ct=`__reactContainer$`+at,lt=`__reactEvents$`+at,ut=`__reactListeners$`+at,dt=`__reactHandles$`+at,ft=`__reactResources$`+at,pt=`__reactMarker$`+at;function mt(e){delete e[ot],delete e[st],delete e[lt],delete e[ut],delete e[dt]}function ht(e){var t=e[ot];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ct]||n[ot]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=yf(e);e!==null;){if(n=e[ot])return n;e=yf(e)}return t}e=n,n=e.parentNode}return null}function _t(e){if(e=e[ot]||e[ct]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function yt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function xt(e){var t=e[ft];return t||=e[ft]={hoistableStyles:new Map,hoistableScripts:new Map},t}function St(e){e[pt]=!0}var Ct=new Set,wt={};function Tt(e,t){Et(e,t),Et(e+`Capture`,t)}function Et(e,t){for(wt[e]=t,e=0;e<t.length;e++)Ct.add(t[e])}var Dt=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]*$`),Ot={},I={};function kt(e){return Se.call(I,e)?!0:Se.call(Ot,e)?!1:Dt.test(e)?I[e]=!0:(Ot[e]=!0,!1)}function At(e,t,n){if(kt(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,``+n)}}function jt(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}e.setAttribute(t,``+n)}}function Mt(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,``+r)}}function Nt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function Pt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function Ft(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function It(e){if(!e._valueTracker){var t=Pt(e)?`checked`:`value`;e._valueTracker=Ft(e,t,``+e[t])}}function Lt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=Pt(e)?e.checked?`true`:`false`:e.value),e=r,e===n?!1:(t.setValue(e),!0)}function Rt(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}var zt=/[\n"\\]/g;function Bt(e){return e.replace(zt,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function Vt(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+Nt(t)):e.value!==``+Nt(t)&&(e.value=``+Nt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):Ut(e,o,Nt(n)):Ut(e,o,Nt(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+Nt(s):e.removeAttribute(`name`)}function Ht(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){It(e);return}n=n==null?``:``+Nt(n),t=t==null?n:``+Nt(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),It(e)}function Ut(e,t,n){t===`number`&&Rt(e.ownerDocument)===e||e.defaultValue===``+n||(e.defaultValue=``+n)}function Wt(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+Nt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Gt(e,t,n){if(t!=null&&(t=``+Nt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+Nt(n)}function Kt(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(A(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}n=Nt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),It(e)}function qt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Jt=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 Yt(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||Jt.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function Xt(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(i(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&Yt(e,a,r)}else for(var o in t)t.hasOwnProperty(o)&&Yt(e,o,t[o])}function Zt(e){if(e.indexOf(`-`)===-1)return!1;switch(e){case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:return!1;default:return!0}}var Qt=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`]]),$t=/^[\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 en(e){return $t.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function tn(){}var nn=null;function rn(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var an=null,on=null;function L(e){var t=_t(e);if(t&&(e=t.stateNode)){var n=e[st]||null;a:switch(e=t.stateNode,t.type){case`input`:if(Vt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name="`+Bt(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[st]||null;if(!a)throw Error(i(90));Vt(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&Lt(r)}break a;case`textarea`:Gt(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&Wt(e,!!n.multiple,t,!1)}}}var sn=!1;function cn(e,t,n){if(sn)return e(t,n);sn=!0;try{return e(t)}finally{if(sn=!1,(an!==null||on!==null)&&(Tu(),an&&(t=an,e=on,on=an=null,L(t),e)))for(t=0;t<e.length;t++)L(e[t])}}function ln(e,t){var n=e.stateNode;if(n===null)return null;var r=n[st]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=!(e===`button`||e===`input`||e===`select`||e===`textarea`)),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(i(231,t,typeof n));return n}var un=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),dn=!1;if(un)try{var fn={};Object.defineProperty(fn,`passive`,{get:function(){dn=!0}}),window.addEventListener(`test`,fn,fn),window.removeEventListener(`test`,fn,fn)}catch{dn=!1}var pn=null,mn=null,hn=null;function gn(){if(hn)return hn;var e,t=mn,n=t.length,r,i=`value`in pn?pn.value:pn.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return hn=i.slice(e,1<r?1-r:void 0)}function _n(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function vn(){return!0}function R(){return!1}function yn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?vn:R,this.isPropagationStopped=R,this}return f(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=vn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=vn)},persist:function(){},isPersistent:vn}),t}var bn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},xn=yn(bn),Sn=f({},bn,{view:0,detail:0}),Cn=yn(Sn),wn,Tn,En,Dn=f({},Sn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:z,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==En&&(En&&e.type===`mousemove`?(wn=e.screenX-En.screenX,Tn=e.screenY-En.screenY):Tn=wn=0,En=e),wn)},movementY:function(e){return`movementY`in e?e.movementY:Tn}}),On=yn(Dn),kn=yn(f({},Dn,{dataTransfer:0})),An=yn(f({},Sn,{relatedTarget:0})),jn=yn(f({},bn,{animationName:0,elapsedTime:0,pseudoElement:0})),Mn=yn(f({},bn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Nn=yn(f({},bn,{data:0})),Pn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Fn={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`},In={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Ln(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=In[e])?!!t[e]:!1}function z(){return Ln}var Rn=yn(f({},Sn,{key:function(e){if(e.key){var t=Pn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=_n(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Fn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:z,charCode:function(e){return e.type===`keypress`?_n(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?_n(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),zn=yn(f({},Dn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Bn=yn(f({},Sn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:z})),Vn=yn(f({},bn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Hn=yn(f({},Dn,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),Un=yn(f({},bn,{newState:0,oldState:0})),Wn=[9,13,27,32],Gn=un&&`CompositionEvent`in window,Kn=null;un&&`documentMode`in document&&(Kn=document.documentMode);var qn=un&&`TextEvent`in window&&!Kn,Jn=un&&(!Gn||Kn&&8<Kn&&11>=Kn),Yn=` `,Xn=!1;function Zn(e,t){switch(e){case`keyup`:return Wn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function Qn(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var $n=!1;function er(e,t){switch(e){case`compositionend`:return Qn(t);case`keypress`:return t.which===32?(Xn=!0,Yn):null;case`textInput`:return e=t.data,e===Yn&&Xn?null:e;default:return null}}function tr(e,t){if($n)return e===`compositionend`||!Gn&&Zn(e,t)?(e=gn(),hn=mn=pn=null,$n=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return Jn&&t.locale!==`ko`?null:t.data;default:return null}}var nr={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 rr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!nr[e.type]:t===`textarea`}function ir(e,t,n,r){an?on?on.push(r):on=[r]:an=r,t=Nd(t,`onChange`),0<t.length&&(n=new xn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var ar=null,or=null;function sr(e){Td(e,0)}function cr(e){if(Lt(yt(e)))return e}function lr(e,t){if(e===`change`)return t}var ur=!1;if(un){var dr;if(un){var fr=`oninput`in document;if(!fr){var pr=document.createElement(`div`);pr.setAttribute(`oninput`,`return;`),fr=typeof pr.oninput==`function`}dr=fr}else dr=!1;ur=dr&&(!document.documentMode||9<document.documentMode)}function mr(){ar&&(ar.detachEvent(`onpropertychange`,hr),or=ar=null)}function hr(e){if(e.propertyName===`value`&&cr(or)){var t=[];ir(t,or,e,rn(e)),cn(sr,t)}}function gr(e,t,n){e===`focusin`?(mr(),ar=t,or=n,ar.attachEvent(`onpropertychange`,hr)):e===`focusout`&&mr()}function _r(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return cr(or)}function vr(e,t){if(e===`click`)return cr(t)}function yr(e,t){if(e===`input`||e===`change`)return cr(t)}function br(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var xr=typeof Object.is==`function`?Object.is:br;function Sr(e,t){if(xr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Se.call(t,i)||!xr(e[i],t[i]))return!1}return!0}function Cr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function wr(e,t){var n=Cr(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Cr(n)}}function Tr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Tr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Er(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Rt(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Rt(e.document)}return t}function Dr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var Or=un&&`documentMode`in document&&11>=document.documentMode,kr=null,Ar=null,jr=null,Mr=!1;function Nr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Mr||kr==null||kr!==Rt(r)||(r=kr,`selectionStart`in r&&Dr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),jr&&Sr(jr,r)||(jr=r,r=Nd(Ar,`onSelect`),0<r.length&&(t=new xn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=kr)))}function Pr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Fr={animationend:Pr(`Animation`,`AnimationEnd`),animationiteration:Pr(`Animation`,`AnimationIteration`),animationstart:Pr(`Animation`,`AnimationStart`),transitionrun:Pr(`Transition`,`TransitionRun`),transitionstart:Pr(`Transition`,`TransitionStart`),transitioncancel:Pr(`Transition`,`TransitionCancel`),transitionend:Pr(`Transition`,`TransitionEnd`)},Ir={},Lr={};un&&(Lr=document.createElement(`div`).style,`AnimationEvent`in window||(delete Fr.animationend.animation,delete Fr.animationiteration.animation,delete Fr.animationstart.animation),`TransitionEvent`in window||delete Fr.transitionend.transition);function Rr(e){if(Ir[e])return Ir[e];if(!Fr[e])return e;var t=Fr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Lr)return Ir[e]=t[n];return e}var zr=Rr(`animationend`),Br=Rr(`animationiteration`),Vr=Rr(`animationstart`),Hr=Rr(`transitionrun`),Ur=Rr(`transitionstart`),Wr=Rr(`transitioncancel`),Gr=Rr(`transitionend`),Kr=new Map,qr=`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(` `);qr.push(`scrollEnd`);function Jr(e,t){Kr.set(e,t),Tt(t,[e])}var Yr=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},Xr=[],Zr=0,Qr=0;function $r(){for(var e=Zr,t=Qr=Zr=0;t<e;){var n=Xr[t];Xr[t++]=null;var r=Xr[t];Xr[t++]=null;var i=Xr[t];Xr[t++]=null;var a=Xr[t];if(Xr[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&ri(n,i,a)}}function ei(e,t,n,r){Xr[Zr++]=e,Xr[Zr++]=t,Xr[Zr++]=n,Xr[Zr++]=r,Qr|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function ti(e,t,n,r){return ei(e,t,n,r),ii(e)}function ni(e,t){return ei(e,null,null,t),ii(e)}function ri(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-Re(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function ii(e){if(50<gu)throw gu=0,_u=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ai={};function oi(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function si(e,t,n,r){return new oi(e,t,n,r)}function ci(e){return e=e.prototype,!(!e||!e.isReactComponent)}function li(e,t){var n=e.alternate;return n===null?(n=si(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function ui(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function di(e,t,n,r,a,o){var s=0;if(r=e,typeof e==`function`)ci(e)&&(s=1);else if(typeof e==`string`)s=Xf(e,n,N.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case E:return e=si(31,n,t,a),e.elementType=E,e.lanes=o,e;case g:return fi(n.children,a,o,t);case _:s=8,a|=24;break;case v:return e=si(12,n,t,a|2),e.elementType=v,e.lanes=o,e;case S:return e=si(13,n,t,a),e.elementType=S,e.lanes=o,e;case C:return e=si(19,n,t,a),e.elementType=C,e.lanes=o,e;default:if(typeof e==`object`&&e)switch(e.$$typeof){case b:s=10;break a;case y:s=9;break a;case x:s=11;break a;case w:s=14;break a;case T:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=si(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function fi(e,t,n,r){return e=si(7,e,r,t),e.lanes=n,e}function pi(e,t,n){return e=si(6,e,null,t),e.lanes=n,e}function mi(e){var t=si(18,null,null,0);return t.stateNode=e,t}function hi(e,t,n){return t=si(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var gi=new WeakMap;function _i(e,t){if(typeof e==`object`&&e){var n=gi.get(e);return n===void 0?(t={value:e,source:t,stack:xe(t)},gi.set(e,t),t):n}return{value:e,source:t,stack:xe(t)}}var vi=[],yi=0,bi=null,xi=0,Si=[],Ci=0,wi=null,Ti=1,Ei=``;function B(e,t){vi[yi++]=xi,vi[yi++]=bi,bi=e,xi=t}function Di(e,t,n){Si[Ci++]=Ti,Si[Ci++]=Ei,Si[Ci++]=wi,wi=e;var r=Ti;e=Ei;var i=32-Re(r)-1;r&=~(1<<i),n+=1;var a=32-Re(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Ti=1<<32-Re(t)+i|n<<i|r,Ei=a+e}else Ti=1<<a|n<<i|r,Ei=e}function Oi(e){e.return!==null&&(B(e,1),Di(e,1,0))}function ki(e){for(;e===bi;)bi=vi[--yi],vi[yi]=null,xi=vi[--yi],vi[yi]=null;for(;e===wi;)wi=Si[--Ci],Si[Ci]=null,Ei=Si[--Ci],Si[Ci]=null,Ti=Si[--Ci],Si[Ci]=null}function Ai(e,t){Si[Ci++]=Ti,Si[Ci++]=Ei,Si[Ci++]=wi,Ti=t.id,Ei=t.overflow,wi=e}var ji=null,Mi=null,Ni=!1,Pi=null,Fi=!1,Ii=Error(i(519));function Li(e){throw Ui(_i(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),Ii}function Ri(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[ot]=e,t[st]=r,n){case`dialog`:Ed(`cancel`,t),Ed(`close`,t);break;case`iframe`:case`object`:case`embed`:Ed(`load`,t);break;case`video`:case`audio`:for(n=0;n<Cd.length;n++)Ed(Cd[n],t);break;case`source`:Ed(`error`,t);break;case`img`:case`image`:case`link`:Ed(`error`,t),Ed(`load`,t);break;case`details`:Ed(`toggle`,t);break;case`input`:Ed(`invalid`,t),Ht(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:Ed(`invalid`,t);break;case`textarea`:Ed(`invalid`,t),Kt(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||zd(t.textContent,n)?(r.popover!=null&&(Ed(`beforetoggle`,t),Ed(`toggle`,t)),r.onScroll!=null&&Ed(`scroll`,t),r.onScrollEnd!=null&&Ed(`scrollend`,t),r.onClick!=null&&(t.onclick=tn),t=!0):t=!1,t||Li(e,!0)}function zi(e){for(ji=e.return;ji;)switch(ji.tag){case 5:case 31:case 13:Fi=!1;return;case 27:case 3:Fi=!0;return;default:ji=ji.return}}function Bi(e){if(e!==ji)return!1;if(!Ni)return zi(e),Ni=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!==`form`&&n!==`button`)||Zd(e.type,e.memoizedProps)),n=!n),n&&Mi&&Li(e),zi(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Mi=vf(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Mi=vf(e)}else t===27?(t=Mi,of(e.type)?(e=_f,_f=null,Mi=e):Mi=t):Mi=ji?gf(e.stateNode.nextSibling):null;return!0}function Vi(){Mi=ji=null,Ni=!1}function Hi(){var e=Pi;return e!==null&&(nu===null?nu=e:nu.push.apply(nu,e),Pi=null),e}function Ui(e){Pi===null?Pi=[e]:Pi.push(e)}var Wi=ae(null),Gi=null,Ki=null;function qi(e,t,n){se(Wi,t._currentValue),t._currentValue=n}function Ji(e){e._currentValue=Wi.current,oe(Wi)}function Yi(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function Xi(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var s=a.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=a;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),Yi(o.return,n,e),r||(s=null);break a}o=c.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(i(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),Yi(s,n,e),s=null}else s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function Zi(e,t,n,r){e=null;for(var a=t,o=!1;a!==null;){if(!o){if(a.flags&524288)o=!0;else if(a.flags&262144)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(i(387));if(s=s.memoizedProps,s!==null){var c=a.type;xr(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===ue.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[ap]:e.push(ap))}a=a.return}e!==null&&Xi(t,e,n,r),t.flags|=262144}function Qi(e){for(e=e.firstContext;e!==null;){if(!xr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function $i(e){Gi=e,Ki=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ea(e){return na(Gi,e)}function ta(e,t){return Gi===null&&$i(e),na(e,t)}function na(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Ki===null){if(e===null)throw Error(i(308));Ki=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Ki=Ki.next=t;return n}var ra=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},ia=t.unstable_scheduleCallback,aa=t.unstable_NormalPriority,oa={$$typeof:b,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function sa(){return{controller:new ra,data:new Map,refCount:0}}function ca(e){e.refCount--,e.refCount===0&&ia(aa,function(){e.controller.abort()})}var la=null,ua=0,da=0,fa=null;function pa(e,t){if(la===null){var n=la=[];ua=0,da=_d(),fa={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return ua++,t.then(ma,ma),t}function ma(){if(--ua===0&&la!==null){fa!==null&&(fa.status=`fulfilled`);var e=la;la=null,da=0,fa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function ha(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var ga=j.S;j.S=function(e,t){au=De(),typeof t==`object`&&t&&typeof t.then==`function`&&pa(e,t),ga!==null&&ga(e,t)};var _a=ae(null);function va(){var e=_a.current;return e===null?Bl.pooledCache:e}function ya(e,t){t===null?se(_a,_a.current):se(_a,t.pool)}function ba(){var e=va();return e===null?null:{parent:oa._currentValue,pool:e}}var xa=Error(i(460)),Sa=Error(i(474)),Ca=Error(i(542)),wa={then:function(){}};function Ta(e){return e=e.status,e===`fulfilled`||e===`rejected`}function Ea(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(tn,tn),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Aa(e),e;default:if(typeof t.status==`string`)t.then(tn,tn);else{if(e=Bl,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Aa(e),e}throw Oa=t,xa}}function Da(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(Oa=e,xa):e}}var Oa=null;function ka(){if(Oa===null)throw Error(i(459));var e=Oa;return Oa=null,e}function Aa(e){if(e===xa||e===Ca)throw Error(i(483))}var ja=null,Ma=0;function Na(e){var t=Ma;return Ma+=1,ja===null&&(ja=[]),Ea(ja,e,t)}function Pa(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function Fa(e,t){throw t.$$typeof===p?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function Ia(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function a(e,t){return e=li(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=67108866,n):(r=r.index,r<n?(t.flags|=67108866,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=67108866),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=pi(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===g?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===T&&Da(i)===t.type)?(t=a(t,n.props),Pa(t,n),t.return=e,t):(t=di(n.type,n.key,n.props,null,e.mode,r),Pa(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=hi(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=fi(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=pi(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case m:return n=di(t.type,t.key,t.props,null,e.mode,n),Pa(n,t),n.return=e,n;case h:return t=hi(t,e.mode,n),t.return=e,t;case T:return t=Da(t),f(e,t,n)}if(A(t)||O(t))return t=fi(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,Na(t),n);if(t.$$typeof===b)return f(e,ta(e,t),n);Fa(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case m:return n.key===i?l(e,t,n,r):null;case h:return n.key===i?u(e,t,n,r):null;case T:return n=Da(n),p(e,t,n,r)}if(A(n)||O(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,Na(n),r);if(n.$$typeof===b)return p(e,t,ta(e,n),r);Fa(e,n)}return null}function _(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case m:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case h:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case T:return r=Da(r),_(e,t,n,r,i)}if(A(r)||O(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return _(e,t,n,Na(r),i);if(r.$$typeof===b)return _(e,t,n,ta(t,r),i);Fa(t,r)}return null}function v(i,a,s,c){for(var l=null,u=null,d=a,m=a=0,h=null;d!==null&&m<s.length;m++){d.index>m?(h=d,d=null):h=d.sibling;var g=p(i,d,s[m],c);if(g===null){d===null&&(d=h);break}e&&d&&g.alternate===null&&t(i,d),a=o(g,a,m),u===null?l=g:u.sibling=g,u=g,d=h}if(m===s.length)return n(i,d),Ni&&B(i,m),l;if(d===null){for(;m<s.length;m++)d=f(i,s[m],c),d!==null&&(a=o(d,a,m),u===null?l=d:u.sibling=d,u=d);return Ni&&B(i,m),l}for(d=r(d);m<s.length;m++)h=_(d,i,m,s[m],c),h!==null&&(e&&h.alternate!==null&&d.delete(h.key===null?m:h.key),a=o(h,a,m),u===null?l=h:u.sibling=h,u=h);return e&&d.forEach(function(e){return t(i,e)}),Ni&&B(i,m),l}function y(a,s,c,l){if(c==null)throw Error(i(151));for(var u=null,d=null,m=s,h=s=0,g=null,v=c.next();m!==null&&!v.done;h++,v=c.next()){m.index>h?(g=m,m=null):g=m.sibling;var y=p(a,m,v.value,l);if(y===null){m===null&&(m=g);break}e&&m&&y.alternate===null&&t(a,m),s=o(y,s,h),d===null?u=y:d.sibling=y,d=y,m=g}if(v.done)return n(a,m),Ni&&B(a,h),u;if(m===null){for(;!v.done;h++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,h),d===null?u=v:d.sibling=v,d=v);return Ni&&B(a,h),u}for(m=r(m);!v.done;h++,v=c.next())v=_(m,a,h,v.value,l),v!==null&&(e&&v.alternate!==null&&m.delete(v.key===null?h:v.key),s=o(v,s,h),d===null?u=v:d.sibling=v,d=v);return e&&m.forEach(function(e){return t(a,e)}),Ni&&B(a,h),u}function x(e,r,o,c){if(typeof o==`object`&&o&&o.type===g&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case m:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===g){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===T&&Da(l)===r.type){n(e,r.sibling),c=a(r,o.props),Pa(c,o),c.return=e,e=c;break a}n(e,r);break}else t(e,r);r=r.sibling}o.type===g?(c=fi(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=di(o.type,o.key,o.props,null,e.mode,c),Pa(c,o),c.return=e,e=c)}return s(e);case h:a:{for(l=o.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}else{n(e,r);break}else t(e,r);r=r.sibling}c=hi(o,e.mode,c),c.return=e,e=c}return s(e);case T:return o=Da(o),x(e,r,o,c)}if(A(o))return v(e,r,o,c);if(O(o)){if(l=O(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),y(e,r,o,c)}if(typeof o.then==`function`)return x(e,r,Na(o),c);if(o.$$typeof===b)return x(e,r,ta(e,o),c);Fa(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=pi(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{Ma=0;var i=x(e,t,n,r);return ja=null,i}catch(t){if(t===xa||t===Ca)throw t;var a=si(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var La=Ia(!0),Ra=Ia(!1),za=!1;function Ba(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Va(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ha(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ua(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,zl&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=ii(e),ri(e,null,n),t}return ei(e,r,t,n),ii(e)}function Wa(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,$e(e,n)}}function Ga(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Ka=!1;function qa(){if(Ka){var e=fa;if(e!==null)throw e}}function Ja(e,t,n,r){Ka=!1;var i=e.updateQueue;za=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var p=s.lane&-536870913,m=p!==s.lane;if(m?(Hl&p)===p:(r&p)===p){p!==0&&p===da&&(Ka=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var h=e,g=s;p=t;var _=n;switch(g.tag){case 1:if(h=g.payload,typeof h==`function`){d=h.call(_,d,p);break a}d=h;break a;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,p=typeof h==`function`?h.call(_,d,p):h,p==null)break a;d=f({},d,p);break a;case 2:za=!0}}p=s.callback,p!==null&&(e.flags|=64,m&&(e.flags|=8192),m=i.callbacks,m===null?i.callbacks=[p]:m.push(p))}else m={lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=m,c=d):u=u.next=m,o|=p;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;m=s,s=m.next,m.next=null,i.lastBaseUpdate=m,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),Xl|=o,e.lanes=o,e.memoizedState=d}}function Ya(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function Xa(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Ya(n[e],t)}var Za=ae(null),Qa=ae(0);function $a(e,t){e=Jl,se(Qa,e),se(Za,t),Jl=e|t.baseLanes}function eo(){se(Qa,Jl),se(Za,Za.current)}function to(){Jl=Qa.current,oe(Za),oe(Qa)}var no=ae(null),ro=null;function io(e){var t=e.alternate;se(lo,lo.current&1),se(no,e),ro===null&&(t===null||Za.current!==null||t.memoizedState!==null)&&(ro=e)}function ao(e){se(lo,lo.current),se(no,e),ro===null&&(ro=e)}function oo(e){e.tag===22?(se(lo,lo.current),se(no,e),ro===null&&(ro=e)):so(e)}function so(){se(lo,lo.current),se(no,no.current)}function co(e){oe(no),ro===e&&(ro=null),oe(lo)}var lo=ae(0);function uo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||pf(n)||mf(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder===`forwards`||t.memoizedProps.revealOrder===`backwards`||t.memoizedProps.revealOrder===`unstable_legacy-backwards`||t.memoizedProps.revealOrder===`together`)){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var fo=0,po=null,mo=null,ho=null,go=!1,_o=!1,V=!1,vo=0,yo=0,bo=null,xo=0;function So(){throw Error(i(321))}function Co(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!xr(e[n],t[n]))return!1;return!0}function wo(e,t,n,r,i,a){return fo=a,po=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,j.H=e===null||e.memoizedState===null?Rs:zs,V=!1,a=n(r,i),V=!1,_o&&(a=Eo(t,n,r,i)),To(e),a}function To(e){j.H=Ls;var t=mo!==null&&mo.next!==null;if(fo=0,ho=mo=po=null,go=!1,yo=0,bo=null,t)throw Error(i(300));e===null||nc||(e=e.dependencies,e!==null&&Qi(e)&&(nc=!0))}function Eo(e,t,n,r){po=e;var a=0;do{if(_o&&(bo=null),yo=0,_o=!1,25<=a)throw Error(i(301));if(a+=1,ho=mo=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}j.H=Bs,o=t(n,r)}while(_o);return o}function H(){var e=j.H,t=e.useState()[0];return t=typeof t.then==`function`?No(t):t,e=e.useState()[0],(mo===null?null:mo.memoizedState)!==e&&(po.flags|=1024),t}function Do(){var e=vo!==0;return vo=0,e}function Oo(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function ko(e){if(go){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}go=!1}fo=0,ho=mo=po=null,_o=!1,yo=vo=0,bo=null}function Ao(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ho===null?po.memoizedState=ho=e:ho=ho.next=e,ho}function jo(){if(mo===null){var e=po.alternate;e=e===null?null:e.memoizedState}else e=mo.next;var t=ho===null?po.memoizedState:ho.next;if(t!==null)ho=t,mo=e;else{if(e===null)throw po.alternate===null?Error(i(467)):Error(i(310));mo=e,e={memoizedState:mo.memoizedState,baseState:mo.baseState,baseQueue:mo.baseQueue,queue:mo.queue,next:null},ho===null?po.memoizedState=ho=e:ho=ho.next=e}return ho}function Mo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function No(e){var t=yo;return yo+=1,bo===null&&(bo=[]),e=Ea(bo,e,t),t=po,(ho===null?t.memoizedState:ho.next)===null&&(t=t.alternate,j.H=t===null||t.memoizedState===null?Rs:zs),e}function Po(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return No(e);if(e.$$typeof===b)return ea(e)}throw Error(i(438,String(e)))}function Fo(e){var t=null,n=po.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=po.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=Mo(),po.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=ee;return t.index++,n}function Io(e,t){return typeof t==`function`?t(e):t}function Lo(e){return Ro(jo(),mo,e)}function Ro(e,t,n){var r=e.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=n;var a=e.baseQueue,o=r.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}t.baseQueue=a=o,r.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(fo&f)===f:(Hl&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===da&&(d=!0);else if((fo&p)===p){u=u.next,p===da&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=o):l=l.next=f,po.lanes|=p,Xl|=p;f=u.action,V&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,po.lanes|=f,Xl|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!xr(o,e.memoizedState)&&(nc=!0,d&&(n=fa,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function zo(e){var t=jo(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);xr(o,t.memoizedState)||(nc=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Bo(e,t,n){var r=po,a=jo(),o=Ni;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!xr((mo||a).memoizedState,n);if(s&&(a.memoizedState=n,nc=!0),a=a.queue,us(U.bind(null,r,a,e),[e]),a.getSnapshot!==t||s||ho!==null&&ho.memoizedState.tag&1){if(r.flags|=2048,as(9,{destroy:void 0},Ho.bind(null,r,a,n,t),null),Bl===null)throw Error(i(349));o||fo&127||Vo(r,t,n)}return n}function Vo(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=po.updateQueue,t===null?(t=Mo(),po.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Ho(e,t,n,r){t.value=n,t.getSnapshot=r,Uo(t)&&Wo(e)}function U(e,t,n){return n(function(){Uo(t)&&Wo(e)})}function Uo(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!xr(e,n)}catch{return!0}}function Wo(e){var t=ni(e,2);t!==null&&bu(t,e,2)}function Go(e){var t=Ao();if(typeof e==`function`){var n=e;if(e=n(),V){Le(!0);try{n()}finally{Le(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Io,lastRenderedState:e},t}function Ko(e,t,n,r){return e.baseState=n,Ro(e,mo,typeof r==`function`?r:Io)}function qo(e,t,n,r,a){if(Ps(e))throw Error(i(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};j.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,Jo(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Jo(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=j.T,o={};j.T=o;try{var s=n(i,r),c=j.S;c!==null&&c(o,s),Yo(e,t,s)}catch(n){Zo(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),j.T=a}}else try{a=n(i,r),Yo(e,t,a)}catch(n){Zo(e,t,n)}}function Yo(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){Xo(e,t,n)},function(n){return Zo(e,t,n)}):Xo(e,t,n)}function Xo(e,t,n){t.status=`fulfilled`,t.value=n,Qo(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Jo(e,n)))}function Zo(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,Qo(t),t=t.next;while(t!==r)}e.action=null}function Qo(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function $o(e,t){return t}function es(e,t){if(Ni){var n=Bl.formState;if(n!==null){a:{var r=po;if(Ni){if(Mi){b:{for(var i=Mi,a=Fi;i.nodeType!==8;){if(!a){i=null;break b}if(i=gf(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){Mi=gf(i.nextSibling),r=i.data===`F!`;break a}}Li(r)}r=!1}r&&(t=n[0])}}return n=Ao(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:$o,lastRenderedState:t},n.queue=r,n=js.bind(null,po,r),r.dispatch=n,r=Go(!1),a=Ns.bind(null,po,!1,r.queue),r=Ao(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=qo.bind(null,po,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function ts(e){return ns(jo(),mo,e)}function ns(e,t,n){if(t=Ro(e,t,$o)[0],e=Lo(Io)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=No(t)}catch(e){throw e===xa?Ca:e}else r=t;t=jo();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(po.flags|=2048,as(9,{destroy:void 0},rs.bind(null,i,n),null)),[r,a,e]}function rs(e,t){e.action=t}function is(e){var t=jo(),n=mo;if(n!==null)return ns(t,n,e);jo(),t=t.memoizedState,n=jo();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function as(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=po.updateQueue,t===null&&(t=Mo(),po.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function os(){return jo().memoizedState}function ss(e,t,n,r){var i=Ao();po.flags|=e,i.memoizedState=as(1|t,{destroy:void 0},n,r===void 0?null:r)}function cs(e,t,n,r){var i=jo();r=r===void 0?null:r;var a=i.memoizedState.inst;mo!==null&&r!==null&&Co(r,mo.memoizedState.deps)?i.memoizedState=as(t,a,n,r):(po.flags|=e,i.memoizedState=as(1|t,a,n,r))}function ls(e,t){ss(8390656,8,e,t)}function us(e,t){cs(2048,8,e,t)}function ds(e){po.flags|=4;var t=po.updateQueue;if(t===null)t=Mo(),po.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function fs(e){var t=jo().memoizedState;return ds({ref:t,nextImpl:e}),function(){if(zl&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function ps(e,t){return cs(4,2,e,t)}function ms(e,t){return cs(4,4,e,t)}function hs(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function gs(e,t,n){n=n==null?null:n.concat([e]),cs(4,4,hs.bind(null,t,e),n)}function _s(){}function vs(e,t){var n=jo();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&Co(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ys(e,t){var n=jo();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&Co(t,r[1]))return r[0];if(r=e(),V){Le(!0);try{e()}finally{Le(!1)}}return n.memoizedState=[r,t],r}function bs(e,t,n){return n===void 0||fo&1073741824&&!(Hl&261930)?e.memoizedState=t:(e.memoizedState=n,e=yu(),po.lanes|=e,Xl|=e,n)}function xs(e,t,n,r){return xr(n,t)?n:Za.current===null?!(fo&42)||fo&1073741824&&!(Hl&261930)?(nc=!0,e.memoizedState=n):(e=yu(),po.lanes|=e,Xl|=e,t):(e=bs(e,n,r),xr(e,t)||(nc=!0),e)}function Ss(e,t,n,r,i){var a=M.p;M.p=a!==0&&8>a?a:8;var o=j.T,s={};j.T=s,Ns(e,!1,t,n);try{var c=i(),l=j.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Ms(e,t,ha(c,r),vu(e)):Ms(e,t,r,vu(e))}catch(n){Ms(e,t,{then:function(){},status:`rejected`,reason:n},vu())}finally{M.p=a,o!==null&&s.types!==null&&(o.types=s.types),j.T=o}}function Cs(){}function ws(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=Ts(e).queue;Ss(e,a,t,ne,n===null?Cs:function(){return Es(e),n(r)})}function Ts(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ne,baseState:ne,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Io,lastRenderedState:ne},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Io,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Es(e){var t=Ts(e);t.next===null&&(t=e.alternate.memoizedState),Ms(e,t.next.queue,{},vu())}function W(){return ea(ap)}function Ds(){return jo().memoizedState}function Os(){return jo().memoizedState}function ks(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=vu();e=Ha(n);var r=Ua(t,e,n);r!==null&&(bu(r,t,n),Wa(r,t,n)),t={cache:sa()},e.payload=t;return}t=t.return}}function As(e,t,n){var r=vu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Ps(e)?Fs(t,n):(n=ti(e,t,n,r),n!==null&&(bu(n,e,r),Is(n,t,r)))}function js(e,t,n){Ms(e,t,n,vu())}function Ms(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ps(e))Fs(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,xr(s,o))return ei(e,t,i,0),Bl===null&&$r(),!1}catch{}if(n=ti(e,t,i,r),n!==null)return bu(n,e,r),Is(n,t,r),!0}return!1}function Ns(e,t,n,r){if(r={lane:2,revertLane:_d(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Ps(e)){if(t)throw Error(i(479))}else t=ti(e,n,r,2),t!==null&&bu(t,e,2)}function Ps(e){var t=e.alternate;return e===po||t!==null&&t===po}function Fs(e,t){_o=go=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Is(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,$e(e,n)}}var Ls={readContext:ea,use:Po,useCallback:So,useContext:So,useEffect:So,useImperativeHandle:So,useLayoutEffect:So,useInsertionEffect:So,useMemo:So,useReducer:So,useRef:So,useState:So,useDebugValue:So,useDeferredValue:So,useTransition:So,useSyncExternalStore:So,useId:So,useHostTransitionStatus:So,useFormState:So,useActionState:So,useOptimistic:So,useMemoCache:So,useCacheRefresh:So};Ls.useEffectEvent=So;var Rs={readContext:ea,use:Po,useCallback:function(e,t){return Ao().memoizedState=[e,t===void 0?null:t],e},useContext:ea,useEffect:ls,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),ss(4194308,4,hs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ss(4194308,4,e,t)},useInsertionEffect:function(e,t){ss(4,2,e,t)},useMemo:function(e,t){var n=Ao();t=t===void 0?null:t;var r=e();if(V){Le(!0);try{e()}finally{Le(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Ao();if(n!==void 0){var i=n(t);if(V){Le(!0);try{n(t)}finally{Le(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=As.bind(null,po,e),[r.memoizedState,e]},useRef:function(e){var t=Ao();return e={current:e},t.memoizedState=e},useState:function(e){e=Go(e);var t=e.queue,n=js.bind(null,po,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:_s,useDeferredValue:function(e,t){return bs(Ao(),e,t)},useTransition:function(){var e=Go(!1);return e=Ss.bind(null,po,e.queue,!0,!1),Ao().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=po,a=Ao();if(Ni){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),Bl===null)throw Error(i(349));Hl&127||Vo(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,ls(U.bind(null,r,o,e),[e]),r.flags|=2048,as(9,{destroy:void 0},Ho.bind(null,r,o,n,t),null),n},useId:function(){var e=Ao(),t=Bl.identifierPrefix;if(Ni){var n=Ei,r=Ti;n=(r&~(1<<32-Re(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=vo++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=xo++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:W,useFormState:es,useActionState:es,useOptimistic:function(e){var t=Ao();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Ns.bind(null,po,!0,n),n.dispatch=t,[e,t]},useMemoCache:Fo,useCacheRefresh:function(){return Ao().memoizedState=ks.bind(null,po)},useEffectEvent:function(e){var t=Ao(),n={impl:e};return t.memoizedState=n,function(){if(zl&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},zs={readContext:ea,use:Po,useCallback:vs,useContext:ea,useEffect:us,useImperativeHandle:gs,useInsertionEffect:ps,useLayoutEffect:ms,useMemo:ys,useReducer:Lo,useRef:os,useState:function(){return Lo(Io)},useDebugValue:_s,useDeferredValue:function(e,t){return xs(jo(),mo.memoizedState,e,t)},useTransition:function(){var e=Lo(Io)[0],t=jo().memoizedState;return[typeof e==`boolean`?e:No(e),t]},useSyncExternalStore:Bo,useId:Ds,useHostTransitionStatus:W,useFormState:ts,useActionState:ts,useOptimistic:function(e,t){return Ko(jo(),mo,e,t)},useMemoCache:Fo,useCacheRefresh:Os};zs.useEffectEvent=fs;var Bs={readContext:ea,use:Po,useCallback:vs,useContext:ea,useEffect:us,useImperativeHandle:gs,useInsertionEffect:ps,useLayoutEffect:ms,useMemo:ys,useReducer:zo,useRef:os,useState:function(){return zo(Io)},useDebugValue:_s,useDeferredValue:function(e,t){var n=jo();return mo===null?bs(n,e,t):xs(n,mo.memoizedState,e,t)},useTransition:function(){var e=zo(Io)[0],t=jo().memoizedState;return[typeof e==`boolean`?e:No(e),t]},useSyncExternalStore:Bo,useId:Ds,useHostTransitionStatus:W,useFormState:is,useActionState:is,useOptimistic:function(e,t){var n=jo();return mo===null?(n.baseState=e,[e,n.queue.dispatch]):Ko(n,mo,e,t)},useMemoCache:Fo,useCacheRefresh:Os};Bs.useEffectEvent=fs;function Vs(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:f({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Hs={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=vu(),i=Ha(r);i.payload=t,n!=null&&(i.callback=n),t=Ua(e,i,r),t!==null&&(bu(t,e,r),Wa(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=vu(),i=Ha(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Ua(e,i,r),t!==null&&(bu(t,e,r),Wa(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=vu(),r=Ha(n);r.tag=2,t!=null&&(r.callback=t),t=Ua(e,r,n),t!==null&&(bu(t,e,n),Wa(t,e,n))}};function Us(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!Sr(n,r)||!Sr(i,a):!0}function Ws(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Hs.enqueueReplaceState(t,t.state,null)}function Gs(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=f({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function Ks(e){Yr(e)}function qs(e){console.error(e)}function Js(e){Yr(e)}function Ys(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Xs(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function Zs(e,t,n){return n=Ha(n),n.tag=3,n.payload={element:null},n.callback=function(){Ys(e,t)},n}function Qs(e){return e=Ha(e),e.tag=3,e}function $s(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){Xs(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Xs(t,n,r),typeof i!=`function`&&(cu===null?cu=new Set([this]):cu.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function ec(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&Zi(t,n,a,!0),n=no.current,n!==null){switch(n.tag){case 31:case 13:return ro===null?Mu():n.alternate===null&&Yl===0&&(Yl=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===wa?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),Zu(e,r,a)),!1;case 22:return n.flags|=65536,r===wa?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),Zu(e,r,a)),!1}throw Error(i(435,n.tag))}return Zu(e,r,a),Mu(),!1}if(Ni)return t=no.current,t===null?(r!==Ii&&(t=Error(i(423),{cause:r}),Ui(_i(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=_i(r,n),a=Zs(e.stateNode,r,a),Ga(e,a),Yl!==4&&(Yl=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==Ii&&(e=Error(i(422),{cause:r}),Ui(_i(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=_i(o,n),tu===null?tu=[o]:tu.push(o),Yl!==4&&(Yl=2),t===null)return!0;r=_i(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=Zs(n.stateNode,r,e),Ga(n,e),!1;case 1:if(t=n.type,o=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||o!==null&&typeof o.componentDidCatch==`function`&&(cu===null||!cu.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=Qs(a),$s(a,e,n,r),Ga(n,a),!1}n=n.return}while(n!==null);return!1}var tc=Error(i(461)),nc=!1;function rc(e,t,n,r){t.child=e===null?Ra(t,null,n,r):La(t,e.child,n,r)}function ic(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return $i(t),r=wo(e,t,n,o,a,i),s=Do(),e!==null&&!nc?(Oo(e,t,i),Oc(e,t,i)):(Ni&&s&&Oi(t),t.flags|=1,rc(e,t,r,i),t.child)}function ac(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!ci(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,oc(e,t,a,r,i)):(e=di(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!kc(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?Sr:n,n(o,r)&&e.ref===t.ref)return Oc(e,t,i)}return t.flags|=1,e=li(a,r),e.ref=t.ref,e.return=t,t.child=e}function oc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Sr(a,r)&&e.ref===t.ref)if(nc=!1,t.pendingProps=r=a,kc(e,i))e.flags&131072&&(nc=!0);else return t.lanes=e.lanes,Oc(e,t,i)}return mc(e,t,n,r,i)}function sc(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return lc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ya(t,a===null?null:a.cachePool),a===null?eo():$a(t,a),oo(t);else return r=t.lanes=536870912,lc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&ya(t,null),eo(),so(t)):(ya(t,a.cachePool),$a(t,a),so(t),t.memoizedState=null);return rc(e,t,i,n),t.child}function cc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function lc(e,t,n,r,i){var a=va();return a=a===null?null:{parent:oa._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&ya(t,null),eo(),oo(t),e!==null&&Zi(e,t,r,!0),t.childLanes=i,null}function uc(e,t){return t=Cc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function dc(e,t,n){return La(t,e.child,null,n),e=uc(t,t.pendingProps),e.flags|=2,co(t),t.memoizedState=null,e}function fc(e,t,n){var r=t.pendingProps,a=(t.flags&128)!=0;if(t.flags&=-129,e===null){if(Ni){if(r.mode===`hidden`)return e=uc(t,r),t.lanes=536870912,cc(null,e);if(ao(t),(e=Mi)?(e=ff(e,Fi),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:wi===null?null:{id:Ti,overflow:Ei},retryLane:536870912,hydrationErrors:null},n=mi(e),n.return=t,t.child=n,ji=t,Mi=null)):e=null,e===null)throw Li(t);return t.lanes=536870912,null}return uc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(ao(t),a)if(t.flags&256)t.flags&=-257,t=dc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558));else if(nc||Zi(e,t,n,!1),a=(n&e.childLanes)!==0,nc||a){if(r=Bl,r!==null&&(s=et(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,ni(e,s),bu(r,e,s),tc;Mu(),t=dc(e,t,n)}else e=o.treeContext,Mi=gf(s.nextSibling),ji=t,Ni=!0,Pi=null,Fi=!1,e!==null&&Ai(t,e),t=uc(t,r),t.flags|=4096;return t}return e=li(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function pc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(i(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function mc(e,t,n,r,i){return $i(t),n=wo(e,t,n,r,void 0,i),r=Do(),e!==null&&!nc?(Oo(e,t,i),Oc(e,t,i)):(Ni&&r&&Oi(t),t.flags|=1,rc(e,t,n,i),t.child)}function hc(e,t,n,r,i,a){return $i(t),t.updateQueue=null,n=Eo(t,r,n,i),To(e),r=Do(),e!==null&&!nc?(Oo(e,t,a),Oc(e,t,a)):(Ni&&r&&Oi(t),t.flags|=1,rc(e,t,n,a),t.child)}function gc(e,t,n,r,i){if($i(t),t.stateNode===null){var a=ai,o=n.contextType;typeof o==`object`&&o&&(a=ea(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Hs,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},Ba(t),o=n.contextType,a.context=typeof o==`object`&&o?ea(o):ai,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(Vs(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&Hs.enqueueReplaceState(a,a.state,null),Ja(t,r,a,i),qa(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=Gs(n,s);a.props=c;var l=a.context,u=n.contextType;o=ai,typeof u==`object`&&u&&(o=ea(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&Ws(t,a,r,o),za=!1;var f=t.memoizedState;a.state=f,Ja(t,r,a,i),qa(),l=t.memoizedState,s||f!==l||za?(typeof d==`function`&&(Vs(t,n,d,r),l=t.memoizedState),(c=za||Us(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Va(e,t),o=t.memoizedProps,u=Gs(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=ai,typeof l==`object`&&l&&(c=ea(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&Ws(t,a,r,c),za=!1,f=t.memoizedState,a.state=f,Ja(t,r,a,i),qa();var p=t.memoizedState;o!==d||f!==p||za||e!==null&&e.dependencies!==null&&Qi(e.dependencies)?(typeof s==`function`&&(Vs(t,n,s,r),p=t.memoizedState),(u=za||Us(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&Qi(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,pc(e,t),r=(t.flags&128)!=0,a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=La(t,e.child,null,i),t.child=La(t,null,n,i)):rc(e,t,n,i),t.memoizedState=a.state,e=t.child):e=Oc(e,t,i),e}function _c(e,t,n,r){return Vi(),t.flags|=256,rc(e,t,n,r),t.child}var vc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function yc(e){return{baseLanes:e,cachePool:ba()}}function bc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=$l),e}function xc(e,t,n){var r=t.pendingProps,a=!1,o=(t.flags&128)!=0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(lo.current&2)!=0),s&&(a=!0,t.flags&=-129),s=(t.flags&32)!=0,t.flags&=-33,e===null){if(Ni){if(a?io(t):so(t),(e=Mi)?(e=ff(e,Fi),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:wi===null?null:{id:Ti,overflow:Ei},retryLane:536870912,hydrationErrors:null},n=mi(e),n.return=t,t.child=n,ji=t,Mi=null)):e=null,e===null)throw Li(t);return mf(e)?t.lanes=32:t.lanes=536870912,null}var c=r.children;return r=r.fallback,a?(so(t),a=t.mode,c=Cc({mode:`hidden`,children:c},a),r=fi(r,a,n,null),c.return=t,r.return=t,c.sibling=r,t.child=c,r=t.child,r.memoizedState=yc(n),r.childLanes=bc(e,s,n),t.memoizedState=vc,cc(null,r)):(io(t),Sc(t,c))}var l=e.memoizedState;if(l!==null&&(c=l.dehydrated,c!==null)){if(o)t.flags&256?(io(t),t.flags&=-257,t=wc(e,t,n)):t.memoizedState===null?(so(t),c=r.fallback,a=t.mode,r=Cc({mode:`visible`,children:r.children},a),c=fi(c,a,n,null),c.flags|=2,r.return=t,c.return=t,r.sibling=c,t.child=r,La(t,e.child,null,n),r=t.child,r.memoizedState=yc(n),r.childLanes=bc(e,s,n),t.memoizedState=vc,t=cc(null,r)):(so(t),t.child=e.child,t.flags|=128,t=null);else if(io(t),mf(c)){if(s=c.nextSibling&&c.nextSibling.dataset,s)var u=s.dgst;s=u,r=Error(i(419)),r.stack=``,r.digest=s,Ui({value:r,source:null,stack:null}),t=wc(e,t,n)}else if(nc||Zi(e,t,n,!1),s=(n&e.childLanes)!==0,nc||s){if(s=Bl,s!==null&&(r=et(s,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,ni(e,r),bu(s,e,r),tc;pf(c)||Mu(),t=wc(e,t,n)}else pf(c)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,Mi=gf(c.nextSibling),ji=t,Ni=!0,Pi=null,Fi=!1,e!==null&&Ai(t,e),t=Sc(t,r.children),t.flags|=4096);return t}return a?(so(t),c=r.fallback,a=t.mode,l=e.child,u=l.sibling,r=li(l,{mode:`hidden`,children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,u===null?(c=fi(c,a,n,null),c.flags|=2):c=li(u,c),c.return=t,r.return=t,r.sibling=c,t.child=r,cc(null,r),r=t.child,c=e.child.memoizedState,c===null?c=yc(n):(a=c.cachePool,a===null?a=ba():(l=oa._currentValue,a=a.parent===l?a:{parent:l,pool:l}),c={baseLanes:c.baseLanes|n,cachePool:a}),r.memoizedState=c,r.childLanes=bc(e,s,n),t.memoizedState=vc,cc(e.child,r)):(io(t),n=e.child,e=n.sibling,n=li(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=n,t.memoizedState=null,n)}function Sc(e,t){return t=Cc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function Cc(e,t){return e=si(22,e,null,t),e.lanes=0,e}function wc(e,t,n){return La(t,e.child,null,n),e=Sc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Tc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Yi(e.return,t,n)}function Ec(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function Dc(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=lo.current,s=(o&2)!=0;if(s?(o=o&1|2,t.flags|=128):o&=1,se(lo,o),rc(e,t,r,n),r=Ni?xi:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Tc(e,n,t);else if(e.tag===19)Tc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&uo(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Ec(t,!1,i,n,a,r);break;case`backwards`:case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&uo(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Ec(t,!0,n,null,a,r);break;case`together`:Ec(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function Oc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Xl|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Zi(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=li(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=li(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function kc(e,t){return(e.lanes&t)===0?(e=e.dependencies,!!(e!==null&&Qi(e))):!0}function Ac(e,t,n){switch(t.tag){case 3:de(t,t.stateNode.containerInfo),qi(t,oa,e.memoizedState.cache),Vi();break;case 27:case 5:pe(t);break;case 4:de(t,t.stateNode.containerInfo);break;case 10:qi(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,ao(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(io(t),e=Oc(e,t,n),e===null?null:e.sibling):xc(e,t,n):(io(t),t.flags|=128,null);io(t);break;case 19:var i=(e.flags&128)!=0;if(r=(n&t.childLanes)!==0,r||=(Zi(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return Dc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),se(lo,lo.current),r)break;return null;case 22:return t.lanes=0,sc(e,t,n,t.pendingProps);case 24:qi(t,oa,e.memoizedState.cache)}return Oc(e,t,n)}function jc(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)nc=!0;else{if(!kc(e,n)&&!(t.flags&128))return nc=!1,Ac(e,t,n);nc=!!(e.flags&131072)}else nc=!1,Ni&&t.flags&1048576&&Di(t,xi,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=Da(t.elementType),t.type=e,typeof e==`function`)ci(e)?(r=Gs(e,r),t.tag=1,t=gc(null,t,e,r,n)):(t.tag=0,t=mc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===x){t.tag=11,t=ic(null,t,e,r,n);break a}else if(a===w){t.tag=14,t=ac(null,t,e,r,n);break a}}throw t=te(e)||e,Error(i(306,t,``))}}return t;case 0:return mc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=Gs(r,t.pendingProps),gc(e,t,r,a,n);case 3:a:{if(de(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,Va(e,t),Ja(t,r,null,n);var s=t.memoizedState;if(r=s.cache,qi(t,oa,r),r!==o.cache&&Xi(t,[oa],n,!0),qa(),r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=_c(e,t,r,n);break a}else if(r!==a){a=_i(Error(i(424)),t),Ui(a),t=_c(e,t,r,n);break a}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(Mi=gf(e.firstChild),ji=t,Ni=!0,Pi=null,Fi=!0,n=Ra(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Vi(),r===a){t=Oc(e,t,n);break a}rc(e,t,r,n)}t=t.child}return t;case 26:return pc(e,t),e===null?(n=If(t.type,null,t.pendingProps,null))?t.memoizedState=n:Ni||(n=t.type,e=t.pendingProps,r=Jd(le.current).createElement(n),r[ot]=t,r[st]=e,Hd(r,n,e),St(r),t.stateNode=r):t.memoizedState=If(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return pe(t),e===null&&Ni&&(r=t.stateNode=bf(t.type,t.pendingProps,le.current),ji=t,Fi=!0,a=Mi,of(t.type)?(_f=a,Mi=gf(r.firstChild)):Mi=a),rc(e,t,t.pendingProps.children,n),pc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ni&&((a=r=Mi)&&(r=uf(r,t.type,t.pendingProps,Fi),r===null?a=!1:(t.stateNode=r,ji=t,Mi=gf(r.firstChild),Fi=!1,a=!0)),a||Li(t)),pe(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,Zd(a,o)?r=null:s!==null&&Zd(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=wo(e,t,H,null,null,n),ap._currentValue=a),pc(e,t),rc(e,t,r,n),t.child;case 6:return e===null&&Ni&&((e=n=Mi)&&(n=df(n,t.pendingProps,Fi),n===null?e=!1:(t.stateNode=n,ji=t,Mi=null,e=!0)),e||Li(t)),null;case 13:return xc(e,t,n);case 4:return de(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=La(t,null,r,n):rc(e,t,r,n),t.child;case 11:return ic(e,t,t.type,t.pendingProps,n);case 7:return rc(e,t,t.pendingProps,n),t.child;case 8:return rc(e,t,t.pendingProps.children,n),t.child;case 12:return rc(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,qi(t,t.type,r.value),rc(e,t,r.children,n),t.child;case 9:return a=t.type._context,r=t.pendingProps.children,$i(t),a=ea(a),r=r(a),t.flags|=1,rc(e,t,r,n),t.child;case 14:return ac(e,t,t.type,t.pendingProps,n);case 15:return oc(e,t,t.type,t.pendingProps,n);case 19:return Dc(e,t,n);case 31:return fc(e,t,n);case 22:return sc(e,t,n,t.pendingProps);case 24:return $i(t),r=ea(oa),e===null?(a=va(),a===null&&(a=Bl,o=sa(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},Ba(t),qi(t,oa,a)):((e.lanes&n)!==0&&(Va(e,t),Ja(t,null,null,n),qa()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,qi(t,oa,r),r!==a.cache&&Xi(t,[oa],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),qi(t,oa,r))),rc(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function Mc(e){e.flags|=4}function Nc(e,t,n,r,i){if((t=(e.mode&32)!=0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(ku())e.flags|=8192;else throw Oa=wa,Sa}else e.flags&=-16777217}function Pc(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Zf(t))if(ku())e.flags|=8192;else throw Oa=wa,Sa}function Fc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:Ye(),e.lanes|=t,eu|=t)}function Ic(e,t){if(!Ni)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Lc(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Rc(e,t,n){var r=t.pendingProps;switch(ki(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Lc(t),null;case 1:return Lc(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Ji(oa),fe(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Bi(t)?Mc(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Hi())),Lc(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(Mc(t),o===null?(Lc(t),Nc(t,a,null,r,n)):(Lc(t),Pc(t,o))):o?o===e.memoizedState?(Lc(t),t.flags&=-16777217):(Mc(t),Lc(t),Pc(t,o)):(e=e.memoizedProps,e!==r&&Mc(t),Lc(t),Nc(t,a,e,r,n)),null;case 27:if(me(t),n=le.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Mc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Lc(t),null}e=N.current,Bi(t)?Ri(t,e):(e=bf(a,r,n),t.stateNode=e,Mc(t))}return Lc(t),null;case 5:if(me(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Mc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Lc(t),null}if(o=N.current,Bi(t))Ri(t,o);else{var s=Jd(le.current);switch(o){case 1:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case 2:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;default:switch(a){case`svg`:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case`math`:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;case`script`:o=s.createElement(`div`),o.innerHTML=`<script><\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[ot]=t,o[st]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(Hd(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&Mc(t)}}return Lc(t),Nc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Mc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=le.current,Bi(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=ji,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[ot]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||zd(e.nodeValue,n)),e||Li(t,!0)}else e=Jd(e).createTextNode(r),e[ot]=t,t.stateNode=e}return Lc(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Bi(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[ot]=t}else Vi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Lc(t),e=!1}else n=Hi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(co(t),t):(co(t),null);if(t.flags&128)throw Error(i(558))}return Lc(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Bi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[ot]=t}else Vi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Lc(t),a=!1}else a=Hi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(co(t),t):(co(t),null)}return co(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Fc(t,t.updateQueue),Lc(t),null);case 4:return fe(),e===null&&kd(t.stateNode.containerInfo),Lc(t),null;case 10:return Ji(t.type),Lc(t),null;case 19:if(oe(lo),r=t.memoizedState,r===null)return Lc(t),null;if(a=(t.flags&128)!=0,o=r.rendering,o===null)if(a)Ic(r,!1);else{if(Yl!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=uo(e),o!==null){for(t.flags|=128,Ic(r,!1),e=o.updateQueue,t.updateQueue=e,Fc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)ui(n,e),n=n.sibling;return se(lo,lo.current&1|2),Ni&&B(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&De()>ou&&(t.flags|=128,a=!0,Ic(r,!1),t.lanes=4194304)}else{if(!a)if(e=uo(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Fc(t,e),Ic(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!Ni)return Lc(t),null}else 2*De()-r.renderingStartTime>ou&&n!==536870912&&(t.flags|=128,a=!0,Ic(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}return r.tail===null?(Lc(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=De(),e.sibling=null,n=lo.current,se(lo,a?n&1|2:n&1),Ni&&B(t,r.treeForkCount),e);case 22:case 23:return co(t),to(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Lc(t),t.subtreeFlags&6&&(t.flags|=8192)):Lc(t),n=t.updateQueue,n!==null&&Fc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&oe(_a),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Ji(oa),Lc(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function zc(e,t){switch(ki(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ji(oa),fe(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return me(t),null;case 31:if(t.memoizedState!==null){if(co(t),t.alternate===null)throw Error(i(340));Vi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(co(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));Vi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return oe(lo),null;case 4:return fe(),null;case 10:return Ji(t.type),null;case 22:case 23:return co(t),to(),e!==null&&oe(_a),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ji(oa),null;case 25:return null;default:return null}}function Bc(e,t){switch(ki(t),t.tag){case 3:Ji(oa),fe();break;case 26:case 27:case 5:me(t);break;case 4:fe();break;case 31:t.memoizedState!==null&&co(t);break;case 13:co(t);break;case 19:oe(lo);break;case 10:Ji(t.type);break;case 22:case 23:co(t),to(),e!==null&&oe(_a);break;case 24:Ji(oa)}}function Vc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){Xu(t,t.return,e)}}function Hc(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){Xu(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Xu(t,t.return,e)}}function Uc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Xa(t,n)}catch(t){Xu(e,e.return,t)}}}function Wc(e,t,n){n.props=Gs(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Xu(e,t,n)}}function Gc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){Xu(e,t,n)}}function G(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){Xu(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){Xu(e,t,n)}else n.current=null}function Kc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){Xu(e,e.return,t)}}function qc(e,t,n){try{var r=e.stateNode;Ud(r,e.type,n,t),r[st]=t}catch(t){Xu(e,e.return,t)}}function Jc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&of(e.type)||e.tag===4}function Yc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Jc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&of(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Xc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=tn));else if(r!==4&&(r===27&&of(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Xc(e,t,n),e=e.sibling;e!==null;)Xc(e,t,n),e=e.sibling}function Zc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&of(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Zc(e,t,n),e=e.sibling;e!==null;)Zc(e,t,n),e=e.sibling}function Qc(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Hd(t,r,n),t[ot]=e,t[st]=n}catch(t){Xu(e,e.return,t)}}var $c=!1,el=!1,tl=!1,nl=typeof WeakSet==`function`?WeakSet:Set,rl=null;function il(e,t){if(e=e.containerInfo,Kd=mp,e=Er(e),Dr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(qd={focusedElem:e,selectionRange:n},mp=!1,rl=t;rl!==null;)if(t=rl,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,rl=e;else for(;rl!==null;){switch(t=rl,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n<e.length;n++)a=e[n],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&o!==null){e=void 0,n=t,a=o.memoizedProps,o=o.memoizedState,r=n.stateNode;try{var h=Gs(n.type,a);e=r.getSnapshotBeforeUpdate(h,o),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){Xu(n,n.return,e)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)lf(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:lf(e);break;default:e.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(i(163))}if(e=t.sibling,e!==null){e.return=t.return,rl=e;break}rl=t.return}}function al(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:bl(e,n),r&4&&Vc(5,n);break;case 1:if(bl(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){Xu(n,n.return,e)}else{var i=Gs(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){Xu(n,n.return,e)}}r&64&&Uc(n),r&512&&Gc(n,n.return);break;case 3:if(bl(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Xa(e,t)}catch(e){Xu(n,n.return,e)}}break;case 27:t===null&&r&4&&Qc(n);case 26:case 5:bl(e,n),t===null&&r&4&&Kc(n),r&512&&Gc(n,n.return);break;case 12:bl(e,n);break;case 31:bl(e,n),r&4&&dl(e,n);break;case 13:bl(e,n),r&4&&fl(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=ed.bind(null,n),hf(e,n))));break;case 22:if(r=n.memoizedState!==null||$c,!r){t=t!==null&&t.memoizedState!==null||el,i=$c;var a=el;$c=r,(el=t)&&!a?Sl(e,n,(n.subtreeFlags&8772)!=0):bl(e,n),$c=i,el=a}break;case 30:break;default:bl(e,n)}}function ol(e){var t=e.alternate;t!==null&&(e.alternate=null,ol(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&mt(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var sl=null,cl=!1;function ll(e,t,n){for(n=n.child;n!==null;)ul(e,t,n),n=n.sibling}function ul(e,t,n){if(Ie&&typeof Ie.onCommitFiberUnmount==`function`)try{Ie.onCommitFiberUnmount(Fe,n)}catch{}switch(n.tag){case 26:el||G(n,t),ll(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:el||G(n,t);var r=sl,i=cl;of(n.type)&&(sl=n.stateNode,cl=!1),ll(e,t,n),xf(n.stateNode),sl=r,cl=i;break;case 5:el||G(n,t);case 6:if(r=sl,i=cl,sl=null,ll(e,t,n),sl=r,cl=i,sl!==null)if(cl)try{(sl.nodeType===9?sl.body:sl.nodeName===`HTML`?sl.ownerDocument.body:sl).removeChild(n.stateNode)}catch(e){Xu(n,t,e)}else try{sl.removeChild(n.stateNode)}catch(e){Xu(n,t,e)}break;case 18:sl!==null&&(cl?(e=sl,sf(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Bp(e)):sf(sl,n.stateNode));break;case 4:r=sl,i=cl,sl=n.stateNode.containerInfo,cl=!0,ll(e,t,n),sl=r,cl=i;break;case 0:case 11:case 14:case 15:Hc(2,n,t),el||Hc(4,n,t),ll(e,t,n);break;case 1:el||(G(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&Wc(n,t,r)),ll(e,t,n);break;case 21:ll(e,t,n);break;case 22:el=(r=el)||n.memoizedState!==null,ll(e,t,n),el=r;break;default:ll(e,t,n)}}function dl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Bp(e)}catch(e){Xu(t,t.return,e)}}}function fl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Bp(e)}catch(e){Xu(t,t.return,e)}}function pl(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new nl),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new nl),t;default:throw Error(i(435,e.tag))}}function ml(e,t){var n=pl(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=td.bind(null,e,t);t.then(r,r)}})}function hl(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var a=n[r],o=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 27:if(of(c.type)){sl=c.stateNode,cl=!1;break a}break;case 5:sl=c.stateNode,cl=!1;break a;case 3:case 4:sl=c.stateNode.containerInfo,cl=!0;break a}c=c.return}if(sl===null)throw Error(i(160));ul(o,s,a),sl=null,cl=!1,o=a.alternate,o!==null&&(o.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)_l(t,e),t=t.sibling}var gl=null;function _l(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:hl(t,e),vl(e),r&4&&(Hc(3,e,e.return),Vc(3,e),Hc(5,e,e.return));break;case 1:hl(t,e),vl(e),r&512&&(el||n===null||G(n,n.return)),r&64&&$c&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var a=gl;if(hl(t,e),vl(e),r&512&&(el||n===null||G(n,n.return)),r&4){var o=n===null?null:n.memoizedState;if(r=e.memoizedState,n===null)if(r===null)if(e.stateNode===null){a:{r=e.type,n=e.memoizedProps,a=a.ownerDocument||a;b:switch(r){case`title`:o=a.getElementsByTagName(`title`)[0],(!o||o[pt]||o[ot]||o.namespaceURI===`http://www.w3.org/2000/svg`||o.hasAttribute(`itemprop`))&&(o=a.createElement(r),a.head.insertBefore(o,a.querySelector(`head > title`))),Hd(o,r,n),o[ot]=e,St(o),r=o;break a;case`link`:var s=Jf(`link`,`href`,a).get(r+(n.href||``));if(s){for(var c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&o.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&o.getAttribute(`title`)===(n.title==null?null:n.title)&&o.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){s.splice(c,1);break b}}o=a.createElement(r),Hd(o,r,n),a.head.appendChild(o);break;case`meta`:if(s=Jf(`meta`,`content`,a).get(r+(n.content||``))){for(c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`content`)===(n.content==null?null:``+n.content)&&o.getAttribute(`name`)===(n.name==null?null:n.name)&&o.getAttribute(`property`)===(n.property==null?null:n.property)&&o.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){s.splice(c,1);break b}}o=a.createElement(r),Hd(o,r,n),a.head.appendChild(o);break;default:throw Error(i(468,r))}o[ot]=e,St(o),r=o}e.stateNode=r}else Yf(a,e.type,e.stateNode);else e.stateNode=Uf(a,r,e.memoizedProps);else o===r?r===null&&e.stateNode!==null&&qc(e,e.memoizedProps,n.memoizedProps):(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,r===null?Yf(a,e.type,e.stateNode):Uf(a,r,e.memoizedProps))}break;case 27:hl(t,e),vl(e),r&512&&(el||n===null||G(n,n.return)),n!==null&&r&4&&qc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(hl(t,e),vl(e),r&512&&(el||n===null||G(n,n.return)),e.flags&32){a=e.stateNode;try{qt(a,``)}catch(t){Xu(e,e.return,t)}}r&4&&e.stateNode!=null&&(a=e.memoizedProps,qc(e,a,n===null?a:n.memoizedProps)),r&1024&&(tl=!0);break;case 6:if(hl(t,e),vl(e),r&4){if(e.stateNode===null)throw Error(i(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){Xu(e,e.return,t)}}break;case 3:if(qf=null,a=gl,gl=Cf(t.containerInfo),hl(t,e),gl=a,vl(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Bp(t.containerInfo)}catch(t){Xu(e,e.return,t)}tl&&(tl=!1,yl(e));break;case 4:r=gl,gl=Cf(e.stateNode.containerInfo),hl(t,e),vl(e),gl=r;break;case 12:hl(t,e),vl(e);break;case 31:hl(t,e),vl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,ml(e,r)));break;case 13:hl(t,e),vl(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(iu=De()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,ml(e,r)));break;case 22:a=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=$c,d=el;if($c=u||a,el=d||l,hl(t,e),el=d,$c=u,vl(e),r&8192)a:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||l||$c||el||xl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){l=n=t;try{if(o=l.stateNode,a)s=o.style,typeof s.setProperty==`function`?s.setProperty(`display`,`none`,`important`):s.display=`none`;else{c=l.stateNode;var f=l.memoizedProps.style,p=f!=null&&f.hasOwnProperty(`display`)?f.display:null;c.style.display=p==null||typeof p==`boolean`?``:(``+p).trim()}}catch(e){Xu(l,l.return,e)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=a?``:l.memoizedProps}catch(e){Xu(l,l.return,e)}}}else if(t.tag===18){if(n===null){l=t;try{var m=l.stateNode;a?cf(m,!0):cf(l.stateNode,!1)}catch(e){Xu(l,l.return,e)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break a;for(;t.sibling===null;){if(t.return===null||t.return===e)break a;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,ml(e,n))));break;case 19:hl(t,e),vl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,ml(e,r)));break;case 30:break;case 21:break;default:hl(t,e),vl(e)}}function vl(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Jc(r)){n=r;break}r=r.return}if(n==null)throw Error(i(160));switch(n.tag){case 27:var a=n.stateNode;Zc(e,Yc(e),a);break;case 5:var o=n.stateNode;n.flags&32&&(qt(o,``),n.flags&=-33),Zc(e,Yc(e),o);break;case 3:case 4:var s=n.stateNode.containerInfo;Xc(e,Yc(e),s);break;default:throw Error(i(161))}}catch(t){Xu(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function yl(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;yl(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function bl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)al(e,t.alternate,t),t=t.sibling}function xl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Hc(4,t,t.return),xl(t);break;case 1:G(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount==`function`&&Wc(t,t.return,n),xl(t);break;case 27:xf(t.stateNode);case 26:case 5:G(t,t.return),xl(t);break;case 22:t.memoizedState===null&&xl(t);break;case 30:xl(t);break;default:xl(t)}e=e.sibling}}function Sl(e,t,n){for(n&&=(t.subtreeFlags&8772)!=0,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags;switch(a.tag){case 0:case 11:case 15:Sl(i,a,n),Vc(4,a);break;case 1:if(Sl(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){Xu(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var s=r.stateNode;try{var c=i.shared.hiddenCallbacks;if(c!==null)for(i.shared.hiddenCallbacks=null,i=0;i<c.length;i++)Ya(c[i],s)}catch(e){Xu(r,r.return,e)}}n&&o&64&&Uc(a),Gc(a,a.return);break;case 27:Qc(a);case 26:case 5:Sl(i,a,n),n&&r===null&&o&4&&Kc(a),Gc(a,a.return);break;case 12:Sl(i,a,n);break;case 31:Sl(i,a,n),n&&o&4&&dl(i,a);break;case 13:Sl(i,a,n),n&&o&4&&fl(i,a);break;case 22:a.memoizedState===null&&Sl(i,a,n),Gc(a,a.return);break;case 30:break;default:Sl(i,a,n)}t=t.sibling}}function Cl(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&ca(n))}function wl(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ca(e))}function Tl(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)El(e,t,n,r),t=t.sibling}function El(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Tl(e,t,n,r),i&2048&&Vc(9,t);break;case 1:Tl(e,t,n,r);break;case 3:Tl(e,t,n,r),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ca(e)));break;case 12:if(i&2048){Tl(e,t,n,r),e=t.stateNode;try{var a=t.memoizedProps,o=a.id,s=a.onPostCommit;typeof s==`function`&&s(o,t.alternate===null?`mount`:`update`,e.passiveEffectDuration,-0)}catch(e){Xu(t,t.return,e)}}else Tl(e,t,n,r);break;case 31:Tl(e,t,n,r);break;case 13:Tl(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,t.memoizedState===null?a._visibility&2?Tl(e,t,n,r):(a._visibility|=2,Dl(e,t,n,r,(t.subtreeFlags&10256)!=0||!1)):a._visibility&2?Tl(e,t,n,r):Ol(e,t),i&2048&&Cl(o,t);break;case 24:Tl(e,t,n,r),i&2048&&wl(t.alternate,t);break;default:Tl(e,t,n,r)}}function Dl(e,t,n,r,i){for(i&&=(t.subtreeFlags&10256)!=0||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:Dl(a,o,s,c,i),Vc(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,Dl(a,o,s,c,i)):u._visibility&2?Dl(a,o,s,c,i):Ol(a,o),i&&l&2048&&Cl(o.alternate,o);break;case 24:Dl(a,o,s,c,i),i&&l&2048&&wl(o.alternate,o);break;default:Dl(a,o,s,c,i)}t=t.sibling}}function Ol(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:Ol(n,r),i&2048&&Cl(r.alternate,r);break;case 24:Ol(n,r),i&2048&&wl(r.alternate,r);break;default:Ol(n,r)}t=t.sibling}}var kl=8192;function Al(e,t,n){if(e.subtreeFlags&kl)for(e=e.child;e!==null;)jl(e,t,n),e=e.sibling}function jl(e,t,n){switch(e.tag){case 26:Al(e,t,n),e.flags&kl&&e.memoizedState!==null&&Qf(n,gl,e.memoizedState,e.memoizedProps);break;case 5:Al(e,t,n);break;case 3:case 4:var r=gl;gl=Cf(e.stateNode.containerInfo),Al(e,t,n),gl=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=kl,kl=16777216,Al(e,t,n),kl=r):Al(e,t,n));break;default:Al(e,t,n)}}function Ml(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Nl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];rl=r,Il(r,e)}Ml(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Pl(e),e=e.sibling}function Pl(e){switch(e.tag){case 0:case 11:case 15:Nl(e),e.flags&2048&&Hc(9,e,e.return);break;case 3:Nl(e);break;case 12:Nl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Fl(e)):Nl(e);break;default:Nl(e)}}function Fl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];rl=r,Il(r,e)}Ml(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Hc(8,t,t.return),Fl(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Fl(t));break;default:Fl(t)}e=e.sibling}}function Il(e,t){for(;rl!==null;){var n=rl;switch(n.tag){case 0:case 11:case 15:Hc(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:ca(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,rl=r;else a:for(n=e;rl!==null;){r=rl;var i=r.sibling,a=r.return;if(ol(r),r===n){rl=null;break a}if(i!==null){i.return=a,rl=i;break a}rl=a}}}var Ll={getCacheForType:function(e){var t=ea(oa),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return ea(oa).controller.signal}},Rl=typeof WeakMap==`function`?WeakMap:Map,zl=0,Bl=null,Vl=null,Hl=0,Ul=0,Wl=null,Gl=!1,Kl=!1,ql=!1,Jl=0,Yl=0,Xl=0,Zl=0,Ql=0,$l=0,eu=0,tu=null,nu=null,ru=!1,iu=0,au=0,ou=1/0,su=null,cu=null,lu=0,uu=null,du=null,fu=0,pu=0,mu=null,hu=null,gu=0,_u=null;function vu(){return zl&2&&Hl!==0?Hl&-Hl:j.T===null?rt():_d()}function yu(){if($l===0)if(!(Hl&536870912)||Ni){var e=Ue;Ue<<=1,!(Ue&3932160)&&(Ue=262144),$l=e}else $l=536870912;return e=no.current,e!==null&&(e.flags|=32),$l}function bu(e,t,n){(e===Bl&&(Ul===2||Ul===9)||e.cancelPendingCommit!==null)&&(Du(e,0),wu(e,Hl,$l,!1)),Ze(e,n),(!(zl&2)||e!==Bl)&&(e===Bl&&(!(zl&2)&&(Zl|=n),Yl===4&&wu(e,Hl,$l,!1)),ld(e))}function xu(e,t,n){if(zl&6)throw Error(i(327));var r=!n&&(t&127)==0&&(t&e.expiredLanes)===0||qe(e,t),a=r?Fu(e,t):Nu(e,t,!0),o=r;do{if(a===0){Kl&&!r&&wu(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!Cu(n)){a=Nu(e,t,!1),o=!1;continue}if(a===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;a=tu;var l=c.current.memoizedState.isDehydrated;if(l&&(Du(c,s).flags|=256),s=Nu(c,s,!1),s!==2){if(ql&&!l){c.errorRecoveryDisabledLanes|=o,Zl|=o,a=4;break a}o=nu,nu=a,o!==null&&(nu===null?nu=o:nu.push.apply(nu,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){Du(e,0),wu(e,t,0,!0);break}a:{switch(r=e,o=a,o){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:wu(r,t,$l,!Gl);break a;case 2:nu=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=iu+300-De(),10<a)){if(wu(r,t,$l,!Gl),Ke(r,0,!0)!==0)break a;fu=t,r.timeoutHandle=ef(Su.bind(null,r,n,nu,su,ru,t,$l,Zl,eu,Gl,o,`Throttled`,-0,0),a);break a}Su(r,n,nu,su,ru,t,$l,Zl,eu,Gl,o,null,-0,0)}}break}while(1);ld(e)}function Su(e,t,n,r,i,a,o,s,c,l,u,d,f,p){if(e.timeoutHandle=-1,d=t.subtreeFlags,d&8192||(d&16785408)==16785408){d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:tn},jl(t,a,d);var m=(a&62914560)===a?iu-De():(a&4194048)===a?au-De():0;if(m=ep(d,m),m!==null){fu=a,e.cancelPendingCommit=m(Hu.bind(null,e,t,a,n,r,i,o,s,c,u,d,null,f,p)),wu(e,a,o,!l);return}}Hu(e,t,a,n,r,i,o,s,c)}function Cu(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!xr(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function wu(e,t,n,r){t&=~Ql,t&=~Zl,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-Re(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&F(e,n,t)}function Tu(){return zl&6?!0:(ud(0,!1),!1)}function Eu(){if(Vl!==null){if(Ul===0)var e=Vl.return;else e=Vl,Ki=Gi=null,ko(e),ja=null,Ma=0,e=Vl;for(;e!==null;)Bc(e.alternate,e),e=e.return;Vl=null}}function Du(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,tf(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),fu=0,Eu(),Bl=e,Vl=n=li(e.current,null),Hl=t,Ul=0,Wl=null,Gl=!1,Kl=qe(e,t),ql=!1,eu=$l=Ql=Zl=Xl=Yl=0,nu=tu=null,ru=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-Re(r),a=1<<i;t|=e[i],r&=~a}return Jl=t,$r(),n}function Ou(e,t){po=null,j.H=Ls,t===xa||t===Ca?(t=ka(),Ul=3):t===Sa?(t=ka(),Ul=4):Ul=t===tc?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,Wl=t,Vl===null&&(Yl=1,Ys(e,_i(t,e.current)))}function ku(){var e=no.current;return e===null?!0:(Hl&4194048)===Hl?ro===null:(Hl&62914560)===Hl||Hl&536870912?e===ro:!1}function Au(){var e=j.H;return j.H=Ls,e===null?Ls:e}function ju(){var e=j.A;return j.A=Ll,e}function Mu(){Yl=4,Gl||(Hl&4194048)!==Hl&&no.current!==null||(Kl=!0),!(Xl&134217727)&&!(Zl&134217727)||Bl===null||wu(Bl,Hl,$l,!1)}function Nu(e,t,n){var r=zl;zl|=2;var i=Au(),a=ju();(Bl!==e||Hl!==t)&&(su=null,Du(e,t)),t=!1;var o=Yl;a:do try{if(Ul!==0&&Vl!==null){var s=Vl,c=Wl;switch(Ul){case 8:Eu(),o=6;break a;case 3:case 2:case 9:case 6:no.current===null&&(t=!0);var l=Ul;if(Ul=0,Wl=null,zu(e,s,c,l),n&&Kl){o=0;break a}break;default:l=Ul,Ul=0,Wl=null,zu(e,s,c,l)}}Pu(),o=Yl;break}catch(t){Ou(e,t)}while(1);return t&&e.shellSuspendCounter++,Ki=Gi=null,zl=r,j.H=i,j.A=a,Vl===null&&(Bl=null,Hl=0,$r()),o}function Pu(){for(;Vl!==null;)Lu(Vl)}function Fu(e,t){var n=zl;zl|=2;var r=Au(),a=ju();Bl!==e||Hl!==t?(su=null,ou=De()+500,Du(e,t)):Kl=qe(e,t);a:do try{if(Ul!==0&&Vl!==null){t=Vl;var o=Wl;b:switch(Ul){case 1:Ul=0,Wl=null,zu(e,t,o,1);break;case 2:case 9:if(Ta(o)){Ul=0,Wl=null,Ru(t);break}t=function(){Ul!==2&&Ul!==9||Bl!==e||(Ul=7),ld(e)},o.then(t,t);break a;case 3:Ul=7;break a;case 4:Ul=5;break a;case 7:Ta(o)?(Ul=0,Wl=null,Ru(t)):(Ul=0,Wl=null,zu(e,t,o,7));break;case 5:var s=null;switch(Vl.tag){case 26:s=Vl.memoizedState;case 5:case 27:var c=Vl;if(s?Zf(s):c.stateNode.complete){Ul=0,Wl=null;var l=c.sibling;if(l!==null)Vl=l;else{var u=c.return;u===null?Vl=null:(Vl=u,Bu(u))}break b}}Ul=0,Wl=null,zu(e,t,o,5);break;case 6:Ul=0,Wl=null,zu(e,t,o,6);break;case 8:Eu(),Yl=6;break a;default:throw Error(i(462))}}Iu();break}catch(t){Ou(e,t)}while(1);return Ki=Gi=null,j.H=r,j.A=a,zl=n,Vl===null?(Bl=null,Hl=0,$r(),Yl):0}function Iu(){for(;Vl!==null&&!Te();)Lu(Vl)}function Lu(e){var t=jc(e.alternate,e,Jl);e.memoizedProps=e.pendingProps,t===null?Bu(e):Vl=t}function Ru(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=hc(n,t,t.pendingProps,t.type,void 0,Hl);break;case 11:t=hc(n,t,t.pendingProps,t.type.render,t.ref,Hl);break;case 5:ko(t);default:Bc(n,t),t=Vl=ui(t,Jl),t=jc(n,t,Jl)}e.memoizedProps=e.pendingProps,t===null?Bu(e):Vl=t}function zu(e,t,n,r){Ki=Gi=null,ko(t),ja=null,Ma=0;var i=t.return;try{if(ec(e,i,t,n,Hl)){Yl=1,Ys(e,_i(n,e.current)),Vl=null;return}}catch(t){if(i!==null)throw Vl=i,t;Yl=1,Ys(e,_i(n,e.current)),Vl=null;return}t.flags&32768?(Ni||r===1?e=!0:Kl||Hl&536870912?e=!1:(Gl=e=!0,(r===2||r===9||r===3||r===6)&&(r=no.current,r!==null&&r.tag===13&&(r.flags|=16384))),Vu(t,e)):Bu(t)}function Bu(e){var t=e;do{if(t.flags&32768){Vu(t,Gl);return}e=t.return;var n=Rc(t.alternate,t,Jl);if(n!==null){Vl=n;return}if(t=t.sibling,t!==null){Vl=t;return}Vl=t=e}while(t!==null);Yl===0&&(Yl=5)}function Vu(e,t){do{var n=zc(e.alternate,e);if(n!==null){n.flags&=32767,Vl=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Vl=e;return}Vl=e=n}while(e!==null);Yl=6,Vl=null}function Hu(e,t,n,r,a,o,s,c,l){e.cancelPendingCommit=null;do qu();while(lu!==0);if(zl&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(o=t.lanes|t.childLanes,o|=Qr,Qe(e,n,o,s,c,l),e===Bl&&(Vl=Bl=null,Hl=0),du=t,uu=e,fu=n,pu=o,mu=a,hu=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,nd(je,function(){return Ju(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!=0,t.subtreeFlags&13878||r){r=j.T,j.T=null,a=M.p,M.p=2,s=zl,zl|=4;try{il(e,t,n)}finally{zl=s,M.p=a,j.T=r}}lu=1,Uu(),Wu(),Gu()}}function Uu(){if(lu===1){lu=0;var e=uu,t=du,n=(t.flags&13878)!=0;if(t.subtreeFlags&13878||n){n=j.T,j.T=null;var r=M.p;M.p=2;var i=zl;zl|=4;try{_l(t,e);var a=qd,o=Er(e.containerInfo),s=a.focusedElem,c=a.selectionRange;if(o!==s&&s&&s.ownerDocument&&Tr(s.ownerDocument.documentElement,s)){if(c!==null&&Dr(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=wr(s,h),v=wr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}mp=!!Kd,qd=Kd=null}finally{zl=i,M.p=r,j.T=n}}e.current=t,lu=2}}function Wu(){if(lu===2){lu=0;var e=uu,t=du,n=(t.flags&8772)!=0;if(t.subtreeFlags&8772||n){n=j.T,j.T=null;var r=M.p;M.p=2;var i=zl;zl|=4;try{al(e,t.alternate,t)}finally{zl=i,M.p=r,j.T=n}}lu=3}}function Gu(){if(lu===4||lu===3){lu=0,Ee();var e=uu,t=du,n=fu,r=hu;t.subtreeFlags&10256||t.flags&10256?lu=5:(lu=0,du=uu=null,Ku(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(cu=null),nt(n),t=t.stateNode,Ie&&typeof Ie.onCommitFiberRoot==`function`)try{Ie.onCommitFiberRoot(Fe,t,void 0,(t.current.flags&128)==128)}catch{}if(r!==null){t=j.T,i=M.p,M.p=2,j.T=null;try{for(var a=e.onRecoverableError,o=0;o<r.length;o++){var s=r[o];a(s.value,{componentStack:s.stack})}}finally{j.T=t,M.p=i}}fu&3&&qu(),ld(e),i=e.pendingLanes,n&261930&&i&42?e===_u?gu++:(gu=0,_u=e):gu=0,ud(0,!1)}}function Ku(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ca(t)))}function qu(){return Uu(),Wu(),Gu(),Ju()}function Ju(){if(lu!==5)return!1;var e=uu,t=pu;pu=0;var n=nt(fu),r=j.T,a=M.p;try{M.p=32>n?32:n,j.T=null,n=mu,mu=null;var o=uu,s=fu;if(lu=0,du=uu=null,fu=0,zl&6)throw Error(i(331));var c=zl;if(zl|=4,Pl(o.current),El(o,o.current,s,n),zl=c,ud(0,!1),Ie&&typeof Ie.onPostCommitFiberRoot==`function`)try{Ie.onPostCommitFiberRoot(Fe,o)}catch{}return!0}finally{M.p=a,j.T=r,Ku(e,t)}}function Yu(e,t,n){t=_i(n,t),t=Zs(e.stateNode,t,2),e=Ua(e,t,2),e!==null&&(Ze(e,2),ld(e))}function Xu(e,t,n){if(e.tag===3)Yu(e,e,n);else for(;t!==null;){if(t.tag===3){Yu(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(cu===null||!cu.has(r))){e=_i(n,e),n=Qs(2),r=Ua(t,n,2),r!==null&&($s(n,r,t,e),Ze(r,2),ld(r));break}}t=t.return}}function Zu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Rl;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(ql=!0,i.add(n),e=Qu.bind(null,e,t,n),t.then(e,e))}function Qu(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Bl===e&&(Hl&n)===n&&(Yl===4||Yl===3&&(Hl&62914560)===Hl&&300>De()-iu?!(zl&2)&&Du(e,0):Ql|=n,eu===Hl&&(eu=0)),ld(e)}function $u(e,t){t===0&&(t=Ye()),e=ni(e,t),e!==null&&(Ze(e,t),ld(e))}function ed(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),$u(e,n)}function td(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),$u(e,n)}function nd(e,t){return Ce(e,t)}var rd=null,id=null,ad=!1,od=!1,sd=!1,cd=0;function ld(e){e!==id&&e.next===null&&(id===null?rd=id=e:id=id.next=e),od=!0,ad||(ad=!0,gd())}function ud(e,t){if(!sd&&od){sd=!0;do for(var n=!1,r=rd;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Re(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,hd(r,a))}else a=Hl,a=Ke(r,r===Bl?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||qe(r,a)||(n=!0,hd(r,a));r=r.next}while(n);sd=!1}}function dd(){fd()}function fd(){od=ad=!1;var e=0;cd!==0&&$d()&&(e=cd);for(var t=De(),n=null,r=rd;r!==null;){var i=r.next,a=pd(r,t);a===0?(r.next=null,n===null?rd=i:n.next=i,i===null&&(id=n)):(n=r,(e!==0||a&3)&&(od=!0)),r=i}lu!==0&&lu!==5||ud(e,!1),cd!==0&&(cd=0)}function pd(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Re(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=Je(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=Bl,n=Hl,n=Ke(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(Ul===2||Ul===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&we(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||qe(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&we(r),nt(n)){case 2:case 8:n=Ae;break;case 32:n=je;break;case 268435456:n=Me;break;default:n=je}return r=md.bind(null,e),n=Ce(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&we(r),e.callbackPriority=2,e.callbackNode=null,2}function md(e,t){if(lu!==0&&lu!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(qu()&&e.callbackNode!==n)return null;var r=Hl;return r=Ke(e,e===Bl?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(xu(e,r,t),pd(e,De()),e.callbackNode!=null&&e.callbackNode===n?md.bind(null,e):null)}function hd(e,t){if(qu())return null;xu(e,t,!0)}function gd(){rf(function(){zl&6?Ce(ke,dd):fd()})}function _d(){if(cd===0){var e=da;e===0&&(e=He,He<<=1,!(He&261888)&&(He=256)),cd=e}return cd}function vd(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:en(``+e)}function yd(e,t){var n=t.ownerDocument.createElement(`input`);return n.name=t.name,n.value=t.value,e.id&&n.setAttribute(`form`,e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function bd(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=vd((i[st]||null).action),o=r.submitter;o&&(t=(t=o[st]||null)?vd(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new xn(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(cd!==0){var e=o?yd(i,o):new FormData(i);ws(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=o?yd(i,o):new FormData(i),ws(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var xd=0;xd<qr.length;xd++){var Sd=qr[xd];Jr(Sd.toLowerCase(),`on`+(Sd[0].toUpperCase()+Sd.slice(1)))}Jr(zr,`onAnimationEnd`),Jr(Br,`onAnimationIteration`),Jr(Vr,`onAnimationStart`),Jr(`dblclick`,`onDoubleClick`),Jr(`focusin`,`onFocus`),Jr(`focusout`,`onBlur`),Jr(Hr,`onTransitionRun`),Jr(Ur,`onTransitionStart`),Jr(Wr,`onTransitionCancel`),Jr(Gr,`onTransitionEnd`),Et(`onMouseEnter`,[`mouseout`,`mouseover`]),Et(`onMouseLeave`,[`mouseout`,`mouseover`]),Et(`onPointerEnter`,[`pointerout`,`pointerover`]),Et(`onPointerLeave`,[`pointerout`,`pointerover`]),Tt(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),Tt(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),Tt(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),Tt(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),Tt(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),Tt(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var Cd=`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(` `),wd=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(Cd));function Td(e,t){t=(t&4)!=0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Yr(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Yr(e)}i.currentTarget=null,a=c}}}}function Ed(e,t){var n=t[lt];n===void 0&&(n=t[lt]=new Set);var r=e+`__bubble`;n.has(r)||(Ad(t,e,2,!1),n.add(r))}function Dd(e,t,n){var r=0;t&&(r|=4),Ad(n,e,r,t)}var Od=`_reactListening`+Math.random().toString(36).slice(2);function kd(e){if(!e[Od]){e[Od]=!0,Ct.forEach(function(t){t!==`selectionchange`&&(wd.has(t)||Dd(t,!1,e),Dd(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Od]||(t[Od]=!0,Dd(`selectionchange`,!1,t))}}function Ad(e,t,n,r){switch(xp(t)){case 2:var i=hp;break;case 8:i=gp;break;default:i=_p}n=i.bind(null,t,n,e),i=void 0,!dn||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function jd(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var c=r.stateNode.containerInfo;if(c===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&s.stateNode.containerInfo===i)return;s=s.return}for(;c!==null;){if(s=ht(c),s===null)return;if(l=s.tag,l===5||l===6||l===26||l===27){r=a=s;continue a}c=c.parentNode}}r=r.return}cn(function(){var r=a,i=rn(n),s=[];a:{var c=Kr.get(e);if(c!==void 0){var l=xn,u=e;switch(e){case`keypress`:if(_n(n)===0)break a;case`keydown`:case`keyup`:l=Rn;break;case`focusin`:u=`focus`,l=An;break;case`focusout`:u=`blur`,l=An;break;case`beforeblur`:case`afterblur`:l=An;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=On;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=kn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=Bn;break;case zr:case Br:case Vr:l=jn;break;case Gr:l=Vn;break;case`scroll`:case`scrollend`:l=Cn;break;case`wheel`:l=Hn;break;case`copy`:case`cut`:case`paste`:l=Mn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=zn;break;case`toggle`:case`beforetoggle`:l=Un}var d=(t&4)!=0,f=!d&&(e===`scroll`||e===`scrollend`),p=d?c===null?null:c+`Capture`:c;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=ln(m,p),g!=null&&d.push(Md(m,g,h))),f)break;m=m.return}0<d.length&&(c=new l(c,u,null,n,i),s.push({event:c,listeners:d}))}}if(!(t&7)){a:{if(c=e===`mouseover`||e===`pointerover`,l=e===`mouseout`||e===`pointerout`,c&&n!==nn&&(u=n.relatedTarget||n.fromElement)&&(ht(u)||u[ct]))break a;if((l||c)&&(c=i.window===i?i:(c=i.ownerDocument)?c.defaultView||c.parentWindow:window,l?(u=n.relatedTarget||n.toElement,l=r,u=u?ht(u):null,u!==null&&(f=o(u),d=u.tag,u!==f||d!==5&&d!==27&&d!==6)&&(u=null)):(l=null,u=r),l!==u)){if(d=On,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=zn,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=l==null?c:yt(l),h=u==null?c:yt(u),c=new d(g,m+`leave`,l,n,i),c.target=f,c.relatedTarget=h,g=null,ht(i)===r&&(d=new d(p,m+`enter`,u,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,l&&u)b:{for(d=Pd,p=l,m=u,h=0,g=p;g;g=d(g))h++;g=0;for(var _=m;_;_=d(_))g++;for(;0<h-g;)p=d(p),h--;for(;0<g-h;)m=d(m),g--;for(;h--;){if(p===m||m!==null&&p===m.alternate){d=p;break b}p=d(p),m=d(m)}d=null}else d=null;l!==null&&Fd(s,c,l,d,!1),u!==null&&f!==null&&Fd(s,f,u,d,!0)}}a:{if(c=r?yt(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var v=lr;else if(rr(c))if(ur)v=yr;else{v=_r;var y=gr}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&Zt(r.elementType)&&(v=lr):v=vr;if(v&&=v(e,r)){ir(s,v,n,i);break a}y&&y(e,c,r),e===`focusout`&&r&&c.type===`number`&&r.memoizedProps.value!=null&&Ut(c,`number`,c.value)}switch(y=r?yt(r):window,e){case`focusin`:(rr(y)||y.contentEditable===`true`)&&(kr=y,Ar=r,jr=null);break;case`focusout`:jr=Ar=kr=null;break;case`mousedown`:Mr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Mr=!1,Nr(s,n,i);break;case`selectionchange`:if(Or)break;case`keydown`:case`keyup`:Nr(s,n,i)}var b;if(Gn)b:{switch(e){case`compositionstart`:var x=`onCompositionStart`;break b;case`compositionend`:x=`onCompositionEnd`;break b;case`compositionupdate`:x=`onCompositionUpdate`;break b}x=void 0}else $n?Zn(e,n)&&(x=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(x=`onCompositionStart`);x&&(Jn&&n.locale!==`ko`&&($n||x!==`onCompositionStart`?x===`onCompositionEnd`&&$n&&(b=gn()):(pn=i,mn=`value`in pn?pn.value:pn.textContent,$n=!0)),y=Nd(r,x),0<y.length&&(x=new Nn(x,e,null,n,i),s.push({event:x,listeners:y}),b?x.data=b:(b=Qn(n),b!==null&&(x.data=b)))),(b=qn?er(e,n):tr(e,n))&&(x=Nd(r,`onBeforeInput`),0<x.length&&(y=new Nn(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:y,listeners:x}),y.data=b)),bd(s,e,r,n,i)}Td(s,t)})}function Md(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Nd(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=ln(e,n),i!=null&&r.unshift(Md(e,i,a)),i=ln(e,t),i!=null&&r.push(Md(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Pd(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Fd(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=ln(n,a),l!=null&&o.unshift(Md(n,l,c))):i||(l=ln(n,a),l!=null&&o.push(Md(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Id=/\r\n?/g,Ld=/\u0000|\uFFFD/g;function Rd(e){return(typeof e==`string`?e:``+e).replace(Id,`
|
|
10
|
-
`).replace(Ld,``)}function zd(e,t){return t=Rd(t),Rd(e)===t}function Bd(e,t,n,r,a,o){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||qt(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&qt(e,``+r);break;case`className`:jt(e,`class`,r);break;case`tabIndex`:jt(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:jt(e,n,r);break;case`style`:Xt(e,r,o);break;case`data`:if(t!==`object`){jt(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=en(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}else typeof o==`function`&&(n===`formAction`?(t!==`input`&&Bd(e,t,`name`,a.name,a,null),Bd(e,t,`formEncType`,a.formEncType,a,null),Bd(e,t,`formMethod`,a.formMethod,a,null),Bd(e,t,`formTarget`,a.formTarget,a,null)):(Bd(e,t,`encType`,a.encType,a,null),Bd(e,t,`method`,a.method,a,null),Bd(e,t,`target`,a.target,a,null)));if(r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=en(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=tn);break;case`onScroll`:r!=null&&Ed(`scroll`,e);break;case`onScrollEnd`:r!=null&&Ed(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=en(``+r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``+r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:Ed(`beforetoggle`,e),Ed(`toggle`,e),At(e,`popover`,r);break;case`xlinkActuate`:Mt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:Mt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:Mt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:Mt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:Mt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:Mt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:Mt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:Mt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:Mt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:At(e,`is`,r);break;case`innerText`:case`textContent`:break;default:(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)&&(n=Qt.get(n)||n,At(e,n,r))}}function Vd(e,t,n,r,a,o){switch(n){case`style`:Xt(e,r,o);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`children`:typeof r==`string`?qt(e,r):(typeof r==`number`||typeof r==`bigint`)&&qt(e,``+r);break;case`onScroll`:r!=null&&Ed(`scroll`,e);break;case`onScrollEnd`:r!=null&&Ed(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=tn);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(!wt.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),t=n.slice(2,a?n.length-7:void 0),o=e[st]||null,o=o==null?null:o[n],typeof o==`function`&&e.removeEventListener(t,o,a),typeof r==`function`)){typeof o!=`function`&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,a);break a}n in e?e[n]=r:!0===r?e.setAttribute(n,``):At(e,n,r)}}}function Hd(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:Ed(`error`,e),Ed(`load`,e);var r=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:a=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Bd(e,t,o,s,n,null)}}a&&Bd(e,t,`srcSet`,n.srcSet,n,null),r&&Bd(e,t,`src`,n.src,n,null);return;case`input`:Ed(`invalid`,e);var c=o=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:a=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(i(137,t));break;default:Bd(e,t,r,d,n,null)}}Ht(e,o,c,l,u,s,a,!1);return;case`select`:for(a in Ed(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:Bd(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&Wt(e,!!r,n,!0):Wt(e,!!r,t,!1);return;case`textarea`:for(s in Ed(`invalid`,e),o=a=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:a=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(i(91));break;default:Bd(e,t,s,c,n,null)}Kt(e,r,a,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:Bd(e,t,l,r,n,null)}return;case`dialog`:Ed(`beforetoggle`,e),Ed(`toggle`,e),Ed(`cancel`,e),Ed(`close`,e);break;case`iframe`:case`object`:Ed(`load`,e);break;case`video`:case`audio`:for(r=0;r<Cd.length;r++)Ed(Cd[r],e);break;case`image`:Ed(`error`,e),Ed(`load`,e);break;case`details`:Ed(`toggle`,e);break;case`embed`:case`source`:case`link`:Ed(`error`,e),Ed(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Bd(e,t,u,r,n,null)}return;default:if(Zt(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&Vd(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&Bd(e,t,c,r,n,null))}function Ud(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var a=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||Bd(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:o=m;break;case`name`:a=m;break;case`checked`:u=m;break;case`defaultChecked`:d=m;break;case`value`:s=m;break;case`defaultValue`:c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&Bd(e,t,p,m,r,f)}}Vt(e,s,c,l,u,d,o,a);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||Bd(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:p=o;break;case`defaultValue`:c=o;break;case`multiple`:s=o;default:o!==l&&Bd(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?Wt(e,!!n,n?[]:``,!1):Wt(e,!!n,t,!0)):Wt(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:Bd(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:p=a;break;case`defaultValue`:m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&Bd(e,t,s,a,r,o)}Gt(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:Bd(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:Bd(e,t,l,p,r,m)}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 g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&Bd(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(i(137,t));break;default:Bd(e,t,u,p,r,m)}return;default:if(Zt(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&Vd(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||Vd(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&Bd(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||Bd(e,t,f,p,r,m)}function Wd(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Gd(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&Wd(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&Wd(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var Kd=null,qd=null;function Jd(e){return e.nodeType===9?e:e.ownerDocument}function Yd(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function Xd(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function Zd(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Qd=null;function $d(){var e=window.event;return e&&e.type===`popstate`?e===Qd?!1:(Qd=e,!0):(Qd=null,!1)}var ef=typeof setTimeout==`function`?setTimeout:void 0,tf=typeof clearTimeout==`function`?clearTimeout:void 0,nf=typeof Promise==`function`?Promise:void 0,rf=typeof queueMicrotask==`function`?queueMicrotask:nf===void 0?ef:function(e){return nf.resolve(null).then(e).catch(af)};function af(e){setTimeout(function(){throw e})}function of(e){return e===`head`}function sf(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Bp(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)xf(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,xf(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[pt]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&xf(e.ownerDocument.body);n=i}while(n);Bp(t)}function cf(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8)if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++;n=r}while(n)}function lf(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:lf(n),mt(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function uf(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r)if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e;else if(!e[pt])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=gf(e.nextSibling),e===null)break}return null}function df(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=gf(e.nextSibling),e===null))return null;return e}function ff(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=gf(e.nextSibling),e===null))return null;return e}function pf(e){return e.data===`$?`||e.data===`$~`}function mf(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function hf(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function gf(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var _f=null;function vf(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return gf(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function yf(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function bf(e,t,n){switch(t=Jd(n),e){case`html`:if(e=t.documentElement,!e)throw Error(i(452));return e;case`head`:if(e=t.head,!e)throw Error(i(453));return e;case`body`:if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function xf(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);mt(e)}var Sf=new Map,K=new Set;function Cf(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var wf=M.d;M.d={f:Tf,r:Ef,D:kf,C:Af,L:jf,m:Mf,X:Pf,S:Nf,M:Ff};function Tf(){var e=wf.f(),t=Tu();return e||t}function Ef(e){var t=_t(e);t!==null&&t.tag===5&&t.type===`form`?Es(t):wf.r(e)}var Df=typeof document>`u`?null:document;function Of(e,t,n){var r=Df;if(r&&typeof t==`string`&&t){var i=Bt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),K.has(i)||(K.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Hd(t,`link`,e),St(t),r.head.appendChild(t)))}}function kf(e){wf.D(e),Of(`dns-prefetch`,e,null)}function Af(e,t){wf.C(e,t),Of(`preconnect`,e,t)}function jf(e,t,n){wf.L(e,t,n);var r=Df;if(r&&e&&t){var i=`link[rel="preload"][as="`+Bt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Bt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Bt(n.imageSizes)+`"]`)):i+=`[href="`+Bt(e)+`"]`;var a=i;switch(t){case`style`:a=Lf(e);break;case`script`:a=Vf(e)}Sf.has(a)||(e=f({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),Sf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Rf(a))||t===`script`&&r.querySelector(Hf(a))||(t=r.createElement(`link`),Hd(t,`link`,e),St(t),r.head.appendChild(t)))}}function Mf(e,t){wf.m(e,t);var n=Df;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Bt(r)+`"][href="`+Bt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Vf(e)}if(!Sf.has(a)&&(e=f({rel:`modulepreload`,href:e},t),Sf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Hf(a)))return}r=n.createElement(`link`),Hd(r,`link`,e),St(r),n.head.appendChild(r)}}}function Nf(e,t,n){wf.S(e,t,n);var r=Df;if(r&&e){var i=xt(r).hoistableStyles,a=Lf(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Rf(a)))s.loading=5;else{e=f({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=Sf.get(a))&&Gf(e,n);var c=o=r.createElement(`link`);St(c),Hd(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Wf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Pf(e,t){wf.X(e,t);var n=Df;if(n&&e){var r=xt(n).hoistableScripts,i=Vf(e),a=r.get(i);a||(a=n.querySelector(Hf(i)),a||(e=f({src:e,async:!0},t),(t=Sf.get(i))&&Kf(e,t),a=n.createElement(`script`),St(a),Hd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Ff(e,t){wf.M(e,t);var n=Df;if(n&&e){var r=xt(n).hoistableScripts,i=Vf(e),a=r.get(i);a||(a=n.querySelector(Hf(i)),a||(e=f({src:e,async:!0,type:`module`},t),(t=Sf.get(i))&&Kf(e,t),a=n.createElement(`script`),St(a),Hd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function If(e,t,n,r){var a=(a=le.current)?Cf(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=Lf(n.href),n=xt(a).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Lf(n.href);var o=xt(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(Rf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),Sf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Sf.set(e,n),o||Bf(a,e,n,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Vf(n),n=xt(a).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Lf(e){return`href="`+Bt(e)+`"`}function Rf(e){return`link[rel="stylesheet"][`+e+`]`}function zf(e){return f({},e,{"data-precedence":e.precedence,precedence:null})}function Bf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Hd(t,`link`,n),St(t),e.head.appendChild(t))}function Vf(e){return`[src="`+Bt(e)+`"]`}function Hf(e){return`script[async]`+e}function Uf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Bt(n.href)+`"]`);if(r)return t.instance=r,St(r),r;var a=f({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),St(r),Hd(r,`style`,a),Wf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Lf(n.href);var o=e.querySelector(Rf(a));if(o)return t.state.loading|=4,t.instance=o,St(o),o;r=zf(n),(a=Sf.get(a))&&Gf(r,a),o=(e.ownerDocument||e).createElement(`link`),St(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Hd(o,`link`,r),t.state.loading|=4,Wf(o,n.precedence,e),t.instance=o;case`script`:return o=Vf(n.src),(a=e.querySelector(Hf(o)))?(t.instance=a,St(a),a):(r=n,(a=Sf.get(o))&&(r=f({},n),Kf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),St(a),Hd(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Wf(r,n.precedence,e));return t.instance}function Wf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Gf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Kf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var qf=null;function Jf(e,t,n){if(qf===null){var r=new Map,i=qf=new Map;i.set(n,r)}else i=qf,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[pt]||a[ot]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Yf(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Xf(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Zf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Qf(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Lf(r.href),a=t.querySelector(Rf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=tp.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,St(a);return}a=t.ownerDocument||t,r=zf(r),(i=Sf.get(i))&&Gf(r,i),a=a.createElement(`link`),St(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Hd(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=tp.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var $f=0;function ep(e,t){return e.stylesheets&&e.count===0&&rp(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&rp(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&$f===0&&($f=62500*Gd());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&rp(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>$f?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function tp(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)rp(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var np=null;function rp(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,np=new Map,t.forEach(ip,e),np=null,tp.call(e))}function ip(e,t){if(!(t.state.loading&4)){var n=np.get(e);if(n)var r=n.get(null);else{n=new Map,np.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=tp.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var ap={$$typeof:b,Provider:null,Consumer:null,_currentValue:ne,_currentValue2:ne,_threadCount:0};function op(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Xe(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Xe(0),this.hiddenUpdates=Xe(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function sp(e,t,n,r,i,a,o,s,c,l,u,d){return e=new op(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=si(3,null,null,t),e.current=a,a.stateNode=e,t=sa(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},Ba(a),e}function cp(e){return e?(e=ai,e):ai}function lp(e,t,n,r,i,a){i=cp(i),r.context===null?r.context=i:r.pendingContext=i,r=Ha(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=Ua(e,r,t),n!==null&&(bu(n,e,t),Wa(n,e,t))}function up(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function dp(e,t){up(e,t),(e=e.alternate)&&up(e,t)}function fp(e){if(e.tag===13||e.tag===31){var t=ni(e,67108864);t!==null&&bu(t,e,67108864),dp(e,67108864)}}function pp(e){if(e.tag===13||e.tag===31){var t=vu();t=tt(t);var n=ni(e,t);n!==null&&bu(n,e,t),dp(e,t)}}var mp=!0;function hp(e,t,n,r){var i=j.T;j.T=null;var a=M.p;try{M.p=2,_p(e,t,n,r)}finally{M.p=a,j.T=i}}function gp(e,t,n,r){var i=j.T;j.T=null;var a=M.p;try{M.p=8,_p(e,t,n,r)}finally{M.p=a,j.T=i}}function _p(e,t,n,r){if(mp){var i=vp(r);if(i===null)jd(e,t,r,yp,n),Ap(e,r);else if(Mp(i,e,t,n,r))r.stopPropagation();else if(Ap(e,r),t&4&&-1<kp.indexOf(e)){for(;i!==null;){var a=_t(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=Ge(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Re(o);s.entanglements[1]|=c,o&=~c}ld(a),!(zl&6)&&(ou=De()+500,ud(0,!1))}}break;case 31:case 13:s=ni(a,2),s!==null&&bu(s,a,2),Tu(),dp(a,2)}if(a=vp(r),a===null&&jd(e,t,r,yp,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else jd(e,t,r,null,n)}}function vp(e){return e=rn(e),bp(e)}var yp=null;function bp(e){if(yp=null,e=ht(e),e!==null){var t=o(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=s(t),e!==null)return e;e=null}else if(n===31){if(e=c(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return yp=e,null}function xp(e){switch(e){case`beforetoggle`:case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`resize`:case`seeked`:case`submit`:case`toggle`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return 2;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(Oe()){case ke:return 2;case Ae:return 8;case je:case P:return 32;case Me:return 268435456;default:return 32}default:return 32}}var Sp=!1,Cp=null,wp=null,Tp=null,Ep=new Map,Dp=new Map,Op=[],kp=`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 Ap(e,t){switch(e){case`focusin`:case`focusout`:Cp=null;break;case`dragenter`:case`dragleave`:wp=null;break;case`mouseover`:case`mouseout`:Tp=null;break;case`pointerover`:case`pointerout`:Ep.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:Dp.delete(t.pointerId)}}function jp(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=_t(t),t!==null&&fp(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Mp(e,t,n,r,i){switch(t){case`focusin`:return Cp=jp(Cp,e,t,n,r,i),!0;case`dragenter`:return wp=jp(wp,e,t,n,r,i),!0;case`mouseover`:return Tp=jp(Tp,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return Ep.set(a,jp(Ep.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,Dp.set(a,jp(Dp.get(a)||null,e,t,n,r,i)),!0}return!1}function Np(e){var t=ht(e.target);if(t!==null){var n=o(t);if(n!==null){if(t=n.tag,t===13){if(t=s(n),t!==null){e.blockedOn=t,it(e.priority,function(){pp(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,it(e.priority,function(){pp(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Pp(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=vp(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);nn=r,n.target.dispatchEvent(r),nn=null}else return t=_t(n),t!==null&&fp(t),e.blockedOn=n,!1;t.shift()}return!0}function Fp(e,t,n){Pp(e)&&n.delete(t)}function Ip(){Sp=!1,Cp!==null&&Pp(Cp)&&(Cp=null),wp!==null&&Pp(wp)&&(wp=null),Tp!==null&&Pp(Tp)&&(Tp=null),Ep.forEach(Fp),Dp.forEach(Fp)}function Lp(e,n){e.blockedOn===n&&(e.blockedOn=null,Sp||(Sp=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Ip)))}var Rp=null;function zp(e){Rp!==e&&(Rp=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Rp===e&&(Rp=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(bp(r||n)===null)continue;break}var a=_t(n);a!==null&&(e.splice(t,3),t-=3,ws(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Bp(e){function t(t){return Lp(t,e)}Cp!==null&&Lp(Cp,e),wp!==null&&Lp(wp,e),Tp!==null&&Lp(Tp,e),Ep.forEach(t),Dp.forEach(t);for(var n=0;n<Op.length;n++){var r=Op[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Op.length&&(n=Op[0],n.blockedOn===null);)Np(n),n.blockedOn===null&&Op.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[st]||null;if(typeof a==`function`)o||zp(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[st]||null)s=o.formAction;else if(bp(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),zp(n)}}}function Vp(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function Hp(e){this._internalRoot=e}Up.prototype.render=Hp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;lp(n,vu(),e,t,null,null)},Up.prototype.unmount=Hp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;lp(e.current,2,null,e,null,null),Tu(),t[ct]=null}};function Up(e){this._internalRoot=e}Up.prototype.unstable_scheduleHydration=function(e){if(e){var t=rt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Op.length&&t!==0&&t<Op[n].priority;n++);Op.splice(n,0,e),n===0&&Np(e)}};var Wp=n.version;if(Wp!==`19.2.5`)throw Error(i(527,Wp,`19.2.5`));M.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=u(t),e=e===null?null:d(e),e=e===null?null:e.stateNode,e};var Gp={bundleType:0,version:`19.2.5`,rendererPackageName:`react-dom`,currentDispatcherRef:j,reconcilerVersion:`19.2.5`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Kp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Kp.isDisabled&&Kp.supportsFiber)try{Fe=Kp.inject(Gp),Ie=Kp}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=Ks,s=qs,c=Js;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=sp(e,1,!1,null,null,n,r,null,o,s,c,Vp),e[ct]=t.current,kd(e),new Hp(t)}})),St=dt(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=xt()})),Ct=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),wt=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),Tt=e=>{let t=wt(e);return t.charAt(0).toUpperCase()+t.slice(1)},Et=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),Dt=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0},Ot={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`},I=mt(gt()),kt=(0,I.forwardRef)(({color:e=`currentColor`,size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i=``,children:a,iconNode:o,...s},c)=>(0,I.createElement)(`svg`,{ref:c,...Ot,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Et(`lucide`,i),...!a&&!Dt(s)&&{"aria-hidden":`true`},...s},[...o.map(([e,t])=>(0,I.createElement)(e,t)),...Array.isArray(a)?a:[a]])),At=(e,t)=>{let n=(0,I.forwardRef)(({className:n,...r},i)=>(0,I.createElement)(kt,{ref:i,iconNode:t,className:Et(`lucide-${Ct(Tt(e))}`,`lucide-${e}`,n),...r}));return n.displayName=Tt(e),n},jt=At(`file-plus-2`,[[`path`,{d:`M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4`,key:`1pf5j1`}],[`path`,{d:`M14 2v4a2 2 0 0 0 2 2h4`,key:`tnqrlb`}],[`path`,{d:`M3 15h6`,key:`4e2qda`}],[`path`,{d:`M6 12v6`,key:`1u72j0`}]]),Mt=At(`file-text`,[[`path`,{d:`M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z`,key:`1rqfz7`}],[`path`,{d:`M14 2v4a2 2 0 0 0 2 2h4`,key:`tnqrlb`}],[`path`,{d:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]]),Nt=At(`files`,[[`path`,{d:`M15 2a2 2 0 0 1 1.414.586l4 4A2 2 0 0 1 21 8v7a2 2 0 0 1-2 2h-8a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2z`,key:`1vo8kb`}],[`path`,{d:`M15 2v4a2 2 0 0 0 2 2h4`,key:`sud9ri`}],[`path`,{d:`M5 7a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 1.732-1`,key:`l4dndm`}]]),Pt=At(`maximize-2`,[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`m21 3-7 7`,key:`1l2asr`}],[`path`,{d:`m3 21 7-7`,key:`tjx5ai`}],[`path`,{d:`M9 21H3v-6`,key:`wtvkvv`}]]),Ft=At(`minimize-2`,[[`path`,{d:`m14 10 7-7`,key:`oa77jy`}],[`path`,{d:`M20 10h-6V4`,key:`mjg0md`}],[`path`,{d:`m3 21 7-7`,key:`tjx5ai`}],[`path`,{d:`M4 14h6v6`,key:`rmj7iw`}]]),It=At(`refresh-cw`,[[`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`,key:`v9h5vc`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}],[`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`,key:`3uifl3`}],[`path`,{d:`M8 16H3v5`,key:`1cv678`}]]),Lt=At(`save`,[[`path`,{d:`M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z`,key:`1c8476`}],[`path`,{d:`M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7`,key:`1ydtos`}],[`path`,{d:`M7 3v4a1 1 0 0 0 1 1h7`,key:`t51u73`}]]),Rt=At(`trash-2`,[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]]),zt=At(`triangle-alert`,[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]),Bt=St();async function Vt(){return(await en(`/api/context-files`)).files}async function Ht(e){return(await en(`/api/context-files/${encodeURIComponent(e)}`)).file}async function Ut(e){return(await en(`/api/context-files`,{method:`POST`,headers:{"content-type":`application/json`},body:JSON.stringify(e)})).file}async function Wt(e,t={}){return(await en(`/api/context-files/${encodeURIComponent(e)}/link-from-plugin`,{method:`POST`,headers:{"content-type":`application/json`},body:JSON.stringify(t)})).file}async function Gt(e,t){return(await en(`/api/context-files/${encodeURIComponent(e)}`,{method:`PUT`,headers:{"content-type":`application/json`},body:JSON.stringify(t)})).file}async function Kt(e,t){return(await en(`/api/context-files/${encodeURIComponent(e)}`,{method:`PATCH`,headers:{"content-type":`application/json`},body:JSON.stringify(t)})).file}async function qt(e,t){await en(`/api/context-files/${encodeURIComponent(e)}`,{method:`DELETE`,headers:{"content-type":`application/json`},body:JSON.stringify({deleteFile:t})})}async function Jt(e){return en(`/api/context-files/${encodeURIComponent(e)}/revisions`)}async function Yt(e,t){return(await en(`/api/context-files/${encodeURIComponent(e)}/revisions`,{method:`POST`,headers:{"content-type":`application/json`},body:JSON.stringify({name:t})})).revision}async function Xt(e,t=`source`,n=`working`){let r=new URLSearchParams({base:t,target:n});return en(`/api/context-files/${encodeURIComponent(e)}/diff?${r.toString()}`)}async function Zt(e){return(await en(`/api/context-files/${encodeURIComponent(e)}/reset-to-source`,{method:`POST`,headers:{"content-type":`application/json`},body:`{}`})).file}async function Qt(e){return(await en(`/api/context-files/${encodeURIComponent(e)}/adopt-source`,{method:`POST`,headers:{"content-type":`application/json`},body:`{}`})).file}async function $t(e,t){return(await en(`/api/context-files/${encodeURIComponent(e)}/restore-revision`,{method:`POST`,headers:{"content-type":`application/json`},body:JSON.stringify({revisionId:t})})).file}async function en(e,t={}){let n=await fetch(e,{credentials:`same-origin`,...t,headers:{accept:`application/json`,...t.headers}}),r=await n.json().catch(()=>({}));if(!n.ok){let e=r&&typeof r==`object`&&`error`in r?String(r.error):n.statusText,t=Error(e);throw t.status=n.status,t.data=r,t}return r}var tn=mt(dt(((e,t)=>{var n=function(e){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,n=0,r={},i={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof a?new a(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,`&`).replace(/</g,`<`).replace(/\u00a0/g,` `)},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,`__id`,{value:++n}),e.__id},clone:function e(t,n){n||={};var r,a;switch(i.util.type(t)){case`Object`:if(a=i.util.objId(t),n[a])return n[a];for(var o in r={},n[a]=r,t)t.hasOwnProperty(o)&&(r[o]=e(t[o],n));return r;case`Array`:return a=i.util.objId(t),n[a]?n[a]:(r=[],n[a]=r,t.forEach(function(t,i){r[i]=e(t,n)}),r);default:return t}},getLanguage:function(e){for(;e;){var n=t.exec(e.className);if(n)return n[1].toLowerCase();e=e.parentElement}return`none`},setLanguage:function(e,n){e.className=e.className.replace(RegExp(t,`gi`),``),e.classList.add(`language-`+n)},currentScript:function(){if(typeof document>`u`)return null;if(document.currentScript&&document.currentScript.tagName===`SCRIPT`)return document.currentScript;try{throw Error()}catch(r){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(r.stack)||[])[1];if(e){var t=document.getElementsByTagName(`script`);for(var n in t)if(t[n].src==e)return t[n]}return null}},isActive:function(e,t,n){for(var r=`no-`+t;e;){var i=e.classList;if(i.contains(t))return!0;if(i.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:r,plaintext:r,text:r,txt:r,extend:function(e,t){var n=i.util.clone(i.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){r||=i.languages;var a=r[e],o={};for(var s in a)if(a.hasOwnProperty(s)){if(s==t)for(var c in n)n.hasOwnProperty(c)&&(o[c]=n[c]);n.hasOwnProperty(s)||(o[s]=a[s])}var l=r[e];return r[e]=o,i.languages.DFS(i.languages,function(t,n){n===l&&t!=e&&(this[t]=o)}),o},DFS:function e(t,n,r,a){a||={};var o=i.util.objId;for(var s in t)if(t.hasOwnProperty(s)){n.call(t,s,t[s],r||s);var c=t[s],l=i.util.type(c);l===`Object`&&!a[o(c)]?(a[o(c)]=!0,e(c,n,null,a)):l===`Array`&&!a[o(c)]&&(a[o(c)]=!0,e(c,n,s,a))}}},plugins:{},highlightAll:function(e,t){i.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var r={callback:n,container:e,selector:`code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code`};i.hooks.run(`before-highlightall`,r),r.elements=Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)),i.hooks.run(`before-all-elements-highlight`,r);for(var a=0,o;o=r.elements[a++];)i.highlightElement(o,t===!0,r.callback)},highlightElement:function(t,n,r){var a=i.util.getLanguage(t),o=i.languages[a];i.util.setLanguage(t,a);var s=t.parentElement;s&&s.nodeName.toLowerCase()===`pre`&&i.util.setLanguage(s,a);var c={element:t,language:a,grammar:o,code:t.textContent};function l(e){c.highlightedCode=e,i.hooks.run(`before-insert`,c),c.element.innerHTML=c.highlightedCode,i.hooks.run(`after-highlight`,c),i.hooks.run(`complete`,c),r&&r.call(c.element)}if(i.hooks.run(`before-sanity-check`,c),s=c.element.parentElement,s&&s.nodeName.toLowerCase()===`pre`&&!s.hasAttribute(`tabindex`)&&s.setAttribute(`tabindex`,`0`),!c.code){i.hooks.run(`complete`,c),r&&r.call(c.element);return}if(i.hooks.run(`before-highlight`,c),!c.grammar){l(i.util.encode(c.code));return}if(n&&e.Worker){var u=new Worker(i.filename);u.onmessage=function(e){l(e.data)},u.postMessage(JSON.stringify({language:c.language,code:c.code,immediateClose:!0}))}else l(i.highlight(c.code,c.grammar,c.language))},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};if(i.hooks.run(`before-tokenize`,r),!r.grammar)throw Error(`The language "`+r.language+`" has no grammar.`);return r.tokens=i.tokenize(r.code,r.grammar),i.hooks.run(`after-tokenize`,r),a.stringify(i.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var i=new c;return l(i,i.head,e),s(e,i,t,i.head,0),d(i)},hooks:{all:{},add:function(e,t){var n=i.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=i.hooks.all[e];if(!(!n||!n.length))for(var r=0,a;a=n[r++];)a(t)}},Token:a};e.Prism=i;function a(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=(r||``).length|0}a.stringify=function e(t,n){if(typeof t==`string`)return t;if(Array.isArray(t)){var r=``;return t.forEach(function(t){r+=e(t,n)}),r}var a={type:t.type,content:e(t.content,n),tag:`span`,classes:[`token`,t.type],attributes:{},language:n},o=t.alias;o&&(Array.isArray(o)?Array.prototype.push.apply(a.classes,o):a.classes.push(o)),i.hooks.run(`wrap`,a);var s=``;for(var c in a.attributes)s+=` `+c+`="`+(a.attributes[c]||``).replace(/"/g,`"`)+`"`;return`<`+a.tag+` class="`+a.classes.join(` `)+`"`+s+`>`+a.content+`</`+a.tag+`>`};function o(e,t,n,r){e.lastIndex=t;var i=e.exec(n);if(i&&r&&i[1]){var a=i[1].length;i.index+=a,i[0]=i[0].slice(a)}return i}function s(e,t,n,r,c,d){for(var f in n)if(!(!n.hasOwnProperty(f)||!n[f])){var p=n[f];p=Array.isArray(p)?p:[p];for(var m=0;m<p.length;++m){if(d&&d.cause==f+`,`+m)return;var h=p[m],g=h.inside,_=!!h.lookbehind,v=!!h.greedy,y=h.alias;if(v&&!h.pattern.global){var b=h.pattern.toString().match(/[imsuy]*$/)[0];h.pattern=RegExp(h.pattern.source,b+`g`)}for(var x=h.pattern||h,S=r.next,C=c;S!==t.tail&&!(d&&C>=d.reach);C+=S.value.length,S=S.next){var w=S.value;if(t.length>e.length)return;if(!(w instanceof a)){var T=1,E;if(v){if(E=o(x,C,e,_),!E||E.index>=e.length)break;var ee=E.index,D=E.index+E[0].length,O=C;for(O+=S.value.length;ee>=O;)S=S.next,O+=S.value.length;if(O-=S.value.length,C=O,S.value instanceof a)continue;for(var k=S;k!==t.tail&&(O<D||typeof k.value==`string`);k=k.next)T++,O+=k.value.length;T--,w=e.slice(C,O),E.index-=C}else if(E=o(x,0,w,_),!E)continue;var ee=E.index,te=E[0],A=w.slice(0,ee),j=w.slice(ee+te.length),M=C+w.length;d&&M>d.reach&&(d.reach=M);var ne=S.prev;A&&(ne=l(t,ne,A),C+=A.length),u(t,ne,T);var re=new a(f,g?i.tokenize(te,g):te,y,te);if(S=l(t,ne,re),j&&l(t,S,j),T>1){var ie={cause:f+`,`+m,reach:M};s(e,t,n,S.prev,C,ie),d&&ie.reach>d.reach&&(d.reach=ie.reach)}}}}}}function c(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function l(e,t,n){var r=t.next,i={value:n,prev:t,next:r};return t.next=i,r.prev=i,e.length++,i}function u(e,t,n){for(var r=t.next,i=0;i<n&&r!==e.tail;i++)r=r.next;t.next=r,r.prev=t,e.length-=i}function d(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}if(!e.document)return e.addEventListener&&(i.disableWorkerMessageHandler||e.addEventListener(`message`,function(t){var n=JSON.parse(t.data),r=n.language,a=n.code,o=n.immediateClose;e.postMessage(i.highlight(a,i.languages[r],r)),o&&e.close()},!1)),i;var f=i.util.currentScript();f&&(i.filename=f.src,f.hasAttribute(`data-manual`)&&(i.manual=!0));function p(){i.manual||i.highlightAll()}if(!i.manual){var m=document.readyState;m===`loading`||m===`interactive`&&f&&f.defer?document.addEventListener(`DOMContentLoaded`,p):window.requestAnimationFrame?window.requestAnimationFrame(p):window.setTimeout(p,16)}return i}(typeof window<`u`?window:typeof WorkerGlobalScope<`u`&&self instanceof WorkerGlobalScope?self:{});t!==void 0&&t.exports&&(t.exports=n),typeof global<`u`&&(global.Prism=n),n.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:`attr-equals`},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:`named-entity`},/&#x?[\da-f]{1,8};/i]},n.languages.markup.tag.inside[`attr-value`].inside.entity=n.languages.markup.entity,n.languages.markup.doctype.inside[`internal-subset`].inside=n.languages.markup,n.hooks.add(`wrap`,function(e){e.type===`entity`&&(e.attributes.title=e.content.replace(/&/,`&`))}),Object.defineProperty(n.languages.markup.tag,`addInlined`,{value:function(e,t){var r={};r[`language-`+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:n.languages[t]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var i={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};i[`language-`+t]={pattern:/[\s\S]+/,inside:n.languages[t]};var a={};a[e]={pattern:RegExp(`(<__[^>]*>)(?:<!\\[CDATA\\[(?:[^\\]]|\\](?!\\]>))*\\]\\]>|(?!<!\\[CDATA\\[)[\\s\\S])*?(?=<\\/__>)`.replace(/__/g,function(){return e}),`i`),lookbehind:!0,greedy:!0,inside:i},n.languages.insertBefore(`markup`,`cdata`,a)}}),Object.defineProperty(n.languages.markup.tag,`addAttribute`,{value:function(e,t){n.languages.markup.tag.inside[`special-attr`].push({pattern:RegExp(`(^|["'\\s])(?:`+e+`)\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s'">=]+(?=[\\s>]))`,`i`),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,`language-`+t],inside:n.languages[t]},punctuation:[{pattern:/^=/,alias:`attr-equals`},/"|'/]}}}})}}),n.languages.html=n.languages.markup,n.languages.mathml=n.languages.markup,n.languages.svg=n.languages.markup,n.languages.xml=n.languages.extend(`markup`,{}),n.languages.ssml=n.languages.xml,n.languages.atom=n.languages.xml,n.languages.rss=n.languages.xml,(function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp(`@[\\w-](?:[^;{\\s"']|\\s+(?!\\s)|`+t.source+`)*?(?:;|(?=\\s*\\{))`),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:`selector`},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp(`\\burl\\((?:`+t.source+`|(?:[^\\\\\\r\\n()"']|\\\\[\\s\\S])*)\\)`,`i`),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp(`^`+t.source+`$`),alias:`url`}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+t.source+`)*(?=\\s*\\{)`),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined(`style`,`css`),n.tag.addAttribute(`style`,`css`))})(n),n.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},n.languages.javascript=n.languages.extend(`clike`,{"class-name":[n.languages.clike[`class-name`],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(`(^|[^\\w$])(?:NaN|Infinity|0[bB][01]+(?:_[01]+)*n?|0[oO][0-7]+(?:_[0-7]+)*n?|0[xX][\\dA-Fa-f]+(?:_[\\dA-Fa-f]+)*n?|\\d+(?:_\\d+)*n|(?:\\d+(?:_\\d+)*(?:\\.(?:\\d+(?:_\\d+)*)?)?|\\.\\d+(?:_\\d+)*)(?:[Ee][+-]?\\d+(?:_\\d+)*)?)(?![\\w$])`),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),n.languages.javascript[`class-name`][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,n.languages.insertBefore(`javascript`,`keyword`,{regex:{pattern:RegExp(`((?:^|[^$\\w\\xA0-\\uFFFF."'\\])\\s]|\\b(?:return|yield))\\s*)\\/(?:(?:\\[(?:[^\\]\\\\\\r\\n]|\\\\.)*\\]|\\\\.|[^/\\\\\\[\\r\\n])+\\/[dgimyus]{0,7}|(?:\\[(?:[^[\\]\\\\\\r\\n]|\\\\.|\\[(?:[^[\\]\\\\\\r\\n]|\\\\.|\\[(?:[^[\\]\\\\\\r\\n]|\\\\.)*\\])*\\])*\\]|\\\\.|[^/\\\\\\[\\r\\n])+\\/[dgimyus]{0,7}v[dgimyus]{0,7})(?=(?:\\s|\\/\\*(?:[^*]|\\*(?!\\/))*\\*\\/)*(?:$|[\\r\\n,.;:})\\]]|\\/\\/))`),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:`language-regex`,inside:n.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:`function`},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:n.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:n.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:n.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:n.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),n.languages.insertBefore(`javascript`,`string`,{hashbang:{pattern:/^#!.*/,greedy:!0,alias:`comment`},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:`string`},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:`punctuation`},rest:n.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:`property`}}),n.languages.insertBefore(`javascript`,`operator`,{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:`property`}}),n.languages.markup&&(n.languages.markup.tag.addInlined(`script`,`javascript`),n.languages.markup.tag.addAttribute(`on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)`,`javascript`)),n.languages.js=n.languages.javascript,(function(){if(n===void 0||typeof document>`u`)return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var e=`Loading…`,t=function(e,t){return`✖ Error `+e+` while fetching file: `+t},r=`✖ Error: File does not exist or is empty`,i={js:`javascript`,py:`python`,rb:`ruby`,ps1:`powershell`,psm1:`powershell`,sh:`bash`,bat:`batch`,h:`c`,tex:`latex`},a=`data-src-status`,o=`loading`,s=`loaded`,c=`failed`,l=`pre[data-src]:not([`+a+`="`+s+`"]):not([`+a+`="`+o+`"])`;function u(e,n,i){var a=new XMLHttpRequest;a.open(`GET`,e,!0),a.onreadystatechange=function(){a.readyState==4&&(a.status<400&&a.responseText?n(a.responseText):a.status>=400?i(t(a.status,a.statusText)):i(r))},a.send(null)}function d(e){var t=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(e||``);if(t){var n=Number(t[1]),r=t[2],i=t[3];return r?i?[n,Number(i)]:[n,void 0]:[n,n]}}n.hooks.add(`before-highlightall`,function(e){e.selector+=`, `+l}),n.hooks.add(`before-sanity-check`,function(t){var r=t.element;if(r.matches(l)){t.code=``,r.setAttribute(a,o);var f=r.appendChild(document.createElement(`CODE`));f.textContent=e;var p=r.getAttribute(`data-src`),m=t.language;if(m===`none`){var h=(/\.(\w+)$/.exec(p)||[,`none`])[1];m=i[h]||h}n.util.setLanguage(f,m),n.util.setLanguage(r,m);var g=n.plugins.autoloader;g&&g.loadLanguages(m),u(p,function(e){r.setAttribute(a,s);var t=d(r.getAttribute(`data-range`));if(t){var i=e.split(/\r\n?|\n/g),o=t[0],c=t[1]==null?i.length:t[1];o<0&&(o+=i.length),o=Math.max(0,Math.min(o-1,i.length)),c<0&&(c+=i.length),c=Math.max(0,Math.min(c,i.length)),e=i.slice(o,c).join(`
|
|
11
|
-
`),r.hasAttribute(`data-start`)||r.setAttribute(`data-start`,String(o+1))}f.textContent=e,n.highlightElement(f)},function(e){r.setAttribute(a,c),f.textContent=e})}}),n.plugins.fileHighlight={highlight:function(e){for(var t=(e||document).querySelectorAll(l),r=0,i;i=t[r++];)n.highlightElement(i)}};var f=!1;n.fileHighlight=function(){f||=(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),!0),n.plugins.fileHighlight.highlight.apply(this,arguments)}})()}))(),1);function nn(e){return typeof e==`object`&&!!e&&`languages`in e}var rn=globalThis,an=nn(rn.Prism)?rn.Prism:tn.default;rn.Prism=an,typeof window<`u`&&(window.Prism=an);var on=dt((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),L=dt(((e,t)=>{t.exports=on()}))(),sn=Object.defineProperty,cn=(e,t,n)=>t in e?sn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ln=(e,t,n)=>cn(e,typeof t==`symbol`?t:t+``,n),un=class e{constructor(e=new Map){this.map=e}clone(){return new e(new Map(this.map))}increment(e){let t=this.map.get(e)??0;this.map.set(e,t+1)}decrement(e,t){let n=this.map.get(e);n!==void 0&&(--n,this.map.set(e,n),n===0&&t())}},dn=class{constructor(){ln(this,`map`,new Map)}getOrCreate(e){let t=this.map.get(e);return t===void 0&&(t=new Set,this.map.set(e,t)),t}get(e){return this.map.get(e)}use(e,t){let n=this.get(e);n!==void 0&&t(n)}delete(e){return this.map.delete(e)}};function fn(e,t){return t(e),e}function pn(){}var mn=`cell`;function hn(e,t){return e===t}var gn=new Map,_n,vn=class{constructor(e={}){ln(this,`subscriptions`,new dn),ln(this,`singletonSubscriptions`,new Map),ln(this,`graph`,new dn),ln(this,`state`,new Map),ln(this,`distinctNodes`,new Map),ln(this,`executionMaps`,new Map),ln(this,`definitionRegistry`,new Set),ln(this,`combinedCells`,[]);for(let t of Object.getOwnPropertySymbols(e))this.state.set(t,e[t])}cellInstance(e,t=!0,n=Symbol()){return this.state.has(n)||this.state.set(n,e),t!==!1&&!this.distinctNodes.has(n)&&this.distinctNodes.set(n,t===!0?hn:t),n}signalInstance(e=!0,t=Symbol()){return e!==!1&&this.distinctNodes.set(t,e===!0?hn:e),t}sub(e,t){this.register(e);let n=this.subscriptions.getOrCreate(e);return n.add(t),()=>n.delete(t)}singletonSub(e,t){return this.register(e),t===void 0?this.singletonSubscriptions.delete(e):this.singletonSubscriptions.set(e,t),()=>this.singletonSubscriptions.delete(e)}resetSingletonSubs(){this.singletonSubscriptions.clear()}subMultiple(e,t){let n=this.signalInstance();return this.connect({map:e=>(...t)=>{e(t)},sink:n,sources:e}),this.sub(n,t)}pubIn(e){var t;let n=Reflect.ownKeys(e),r=this.getExecutionMap(n),i=r.refCount.clone(),a=r.participatingNodes.slice(),o=new Map(this.state),s=e=>{this.graph.use(e,t=>{for(let{sources:n,sink:r}of t)n.has(e)&&i.decrement(r,()=>{a.splice(a.indexOf(r),1),s(r)})})};for(;;){let n=a.shift();if(n===void 0)break;let i=n,c=!1,l=e=>{let t=this.distinctNodes.get(i);if(t!=null&&t(o.get(i),e)){c=!1;return}c=!0,o.set(i,e),this.state.has(i)&&this.state.set(i,e)};if(Object.prototype.hasOwnProperty.call(e,i)?l(e[i]):r.projections.use(i,e=>{for(let t of e){let e=[...Array.from(t.sources),...Array.from(t.pulls)].map(e=>o.get(e));t.map(l)(...e)}}),c){let e=o.get(i);this.inContext(()=>{this.subscriptions.use(i,t=>{for(let n of t)n(e)})}),(t=this.singletonSubscriptions.get(i))==null||t(e)}else s(i)}}connect({sources:e,pulls:t=[],map:n,sink:r}){let i={map:n,pulls:new Set(t),sink:this.register(r),sources:new Set(e)};for(let n of[...e,...t])this.register(n),this.graph.getOrCreate(n).add(i);this.executionMaps.clear()}pub(e,t){this.pubIn({[e]:t})}pipe(e,...t){return this.combineOperators(...t)(e)}transformer(...e){return t=>fn(this.signalInstance(),n=>(this.link(this.pipe(n,...e),t),n))}link(e,t){this.connect({map:e=>t=>{e(t)},sink:t,sources:[e]})}combine(...e){return fn(this.signalInstance(),t=>{this.connect({map:e=>(...t)=>{e(t)},sink:t,sources:e})})}combineCells(...e){let t=this.combinedCells.find(t=>e.length===t.sources.length&&e.every((e,n)=>e===t.sources[n]));if(t)return t.cell;let n=this.cellInstance(e.map(e=>this.getValue(e)),!0);return this.connect({map:e=>(...t)=>{e(t)},sink:n,sources:e}),this.combinedCells.push({sources:e,cell:n}),n}getValue(e){return this.register(e),this.state.get(e)}getValues(e){return e.map(e=>this.getValue(e))}register(e){let t=gn.get(e);return t===void 0||this.definitionRegistry.has(e)?e:(this.definitionRegistry.add(e),fn(t.type===mn?this.cellInstance(t.initial,t.distinct,e):this.signalInstance(t.distinct,e),e=>{this.inContext(()=>{t.init(this,e)})}))}inContext(e){let t=_n;_n=this;let n=e();return _n=t,n}changeWith(e,t,n){this.connect({sources:[t],pulls:[e],sink:e,map:e=>(t,r)=>{e(n(r,t))}})}calculateExecutionMap(e){let t=[],n=new Set,r=new dn,i=new un,a=new dn,o=(e,s=0)=>{i.increment(e),!n.has(e)&&(this.register(e),r.use(e,e=>{s=Math.max(...Array.from(e).map(e=>t.indexOf(e)))+1}),this.graph.use(e,t=>{for(let n of t)n.sources.has(e)?(a.getOrCreate(n.sink).add(n),o(n.sink,s)):r.getOrCreate(n.sink).add(e)}),n.add(e),t.splice(s,0,e))};return e.forEach(o),{participatingNodes:t,pendingPulls:r,projections:a,refCount:i}}getExecutionMap(e){let t=e;if(e.length===1){t=e[0];let n=this.executionMaps.get(t);if(n!==void 0)return n}else for(let[t,n]of this.executionMaps.entries())if(Array.isArray(t)&&t.length===e.length&&t.every(t=>e.includes(t)))return n;let n=this.calculateExecutionMap(e);return this.executionMaps.set(t,n),n}combineOperators(...e){return t=>{for(let n of e)t=n(t,this);return t}}};function R(e,t=pn,n=!0){return fn(Symbol(),r=>{gn.set(r,{type:mn,distinct:n,initial:e,init:t})})}function yn(e=pn,t=!1){return fn(Symbol(),n=>{gn.set(n,{type:`signal`,distinct:t,init:e})})}function bn(e=pn){return fn(Symbol(),t=>{gn.set(t,{type:`signal`,distinct:!1,init:e})})}var xn=I.createContext(null);function Sn(){let e=I.useContext(xn);if(e===null)throw Error(`useRealm must be used within a RealmContextProvider`);return e}function Cn(e){let t=Sn();t.register(e);let n=I.useCallback(n=>t.sub(e,n),[t,e]);return I.useSyncExternalStore(n,()=>t.getValue(e),()=>t.getValue(e))}function wn(...e){let t=Sn();return Cn(I.useMemo(()=>t.combineCells.apply(t,e),[t,...e]))}function Tn(e){let t=Sn();return t.register(e),I.useCallback(n=>{t.pub(e,n)},[t,e])}function En(e){return(t,n)=>{let r=n.signalInstance();return n.connect({map:t=>n=>{t(e(n))},sink:r,sources:[t]}),r}}function Dn(...e){return(t,n)=>{let r=n.signalInstance();return n.connect({map:e=>(...t)=>{e(t)},pulls:e,sink:r,sources:[t]}),r}}function On(e){return(t,n)=>{let r=n.signalInstance();return n.connect({map:t=>()=>{t(e)},sink:r,sources:[t]}),r}}function kn(e){return(t,n)=>{let r=n.signalInstance();return n.connect({map:t=>n=>{e(n)&&t(n)},sink:r,sources:[t]}),r}}function An(e,t){return(n,r)=>{let i=r.signalInstance();return r.connect({map:n=>r=>{n(t=e(t,r))},sink:i,sources:[n]}),i}}function jn(e,t){return t(e),e}function Mn(){}function Nn(e){return function(t){return{init:n=>e.init?.call(e,n,t),postInit:n=>e.postInit?.call(e,n,t),update:n=>e.update?.call(e,n,t)}}}function Pn({children:e,plugins:t}){let n=I.useMemo(()=>jn(new vn,e=>{var n,r;for(let r of t)(n=r.init)==null||n.call(r,e);for(let n of t)(r=n.postInit)==null||r.call(n,e)}),[]);return I.useEffect(()=>{var e;for(let r of t)(e=r.update)==null||e.call(r,n)}),I.createElement(xn.Provider,{value:n},e)}var Fn=(0,I.createContext)(null);function In(e,t){let n=null;return e!=null&&(n=e[1]),{getTheme:function(){return t??(n==null?null:n.getTheme())}}}function Ln(){let e=(0,I.useContext)(Fn);return e??function(e,...t){let n=new URL(`https://lexical.dev/docs/error`),r=new URLSearchParams;r.append(`code`,e);for(let e of t)r.append(`v`,e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(8),e}function z(e,...t){let n=new URL(`https://lexical.dev/docs/error`),r=new URLSearchParams;r.append(`code`,e);for(let e of t)r.append(`v`,e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}var Rn=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0,zn=Rn&&`documentMode`in document?document.documentMode:null,Bn=Rn&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),Vn=Rn&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),Hn=!(!Rn||!(`InputEvent`in window)||zn)&&`getTargetRanges`in new window.InputEvent(`input`),Un=Rn&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),Wn=Rn&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,Gn=Rn&&/Android/.test(navigator.userAgent),Kn=Rn&&/^(?=.*Chrome).*/i.test(navigator.userAgent),qn=Rn&&Gn&&Kn,Jn=Rn&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&!Kn;function Yn(...e){let t=[];for(let n of e)if(n&&typeof n==`string`)for(let[e]of n.matchAll(/\S+/g))t.push(e);return t}var Xn=1,Zn=3,Qn=9,$n=11,er=0,tr=1,nr=2,rr=0,ir=1,ar=2,or=1,sr=2,cr=3,lr=4,ur=5,dr=6,fr=Un||Wn||Jn?`\xA0`:``,pr=`
|
|
12
|
-
|
|
13
|
-
`,mr=Vn?`\xA0`:fr,hr={bold:1,capitalize:1024,code:16,highlight:128,italic:2,lowercase:256,strikethrough:4,subscript:32,superscript:64,underline:8,uppercase:512},gr={directionless:1,unmergeable:2},_r={center:sr,end:dr,justify:lr,left:or,right:cr,start:ur},vr={[sr]:`center`,[dr]:`end`,[lr]:`justify`,[or]:`left`,[cr]:`right`,[ur]:`start`},yr={normal:0,segmented:2,token:1},br={[rr]:`normal`,[ar]:`segmented`,[ir]:`token`},xr=`$config`;function Sr(e,t,n,r,i,a){let o=e.getFirstChild();for(;o!==null;){let e=o.__key;o.__parent===t&&(W(o)&&Sr(o,e,n,r,i,a),n.has(e)||a.delete(e),i.push(e)),o=o.getNextSibling()}}var Cr=100,wr=!1,Tr=0;function Er(e){Tr=e.timeStamp}function Dr(e,t,n){let r=e.nodeName===`BR`,i=t.__lexicalLineBreak;return i&&(e===i||r&&e.previousSibling===i)||r&&vc(e,n)!==void 0}function Or(e,t,n){let r=ll(el(n)),i=null,a=null;r!==null&&r.anchorNode===e&&(i=r.anchorOffset,a=r.focusOffset);let o=e.nodeValue;o!==null&&jc(t,o,i,a,!1)}function kr(e,t,n){if(H(e)){let t=e.anchor.getNode();if(t.is(n)&&e.format!==t.getFormat())return!1}return oc(t)&&n.isAttached()}function Ar(e,t,n,r){for(let i=e;i&&!Tl(i);i=Jc(i)){let e=vc(i,t);if(e!==void 0){let t=gc(e,n);if(t)return ks(t)||!fl(i)?void 0:[i,t]}else if(i===r)return[r,Cc(n)]}}function jr(e,t,n){wr=!0;let r=performance.now()-Tr>Cr;try{Cs(e,(()=>{let i=U()||function(e){return e.getEditorState().read((()=>{let e=U();return e===null?null:e.clone()}))}(e),a=new Map,o=e.getRootElement(),s=e._editorState,c=e._blockCursorElement,l=!1,u=``;for(let n=0;n<t.length;n++){let d=t[n],f=d.type,p=d.target,m=Ar(p,e,s,o);if(!m)continue;let[h,g]=m;if(f===`characterData`)r&&V(g)&&oc(p)&&kr(i,p,g)&&Or(p,g,e);else if(f===`childList`){l=!0;let t=d.addedNodes;for(let n=0;n<t.length;n++){let r=t[n],i=_c(r),a=r.parentNode;if(a!=null&&r!==c&&i===null&&!Dr(r,a,e)){if(Vn){let e=(fl(r)?r.innerText:null)||r.nodeValue;e&&(u+=e)}a.removeChild(r)}}let n=d.removedNodes,r=n.length;if(r>0){let t=0;for(let i=0;i<r;i++){let r=n[i];(Dr(r,p,e)||c===r)&&(p.appendChild(r),t++)}r!==t&&a.set(h,g)}}}if(a.size>0)for(let[t,n]of a)n.reconcileObservedMutation(t,e);let d=n.takeRecords();if(d.length>0){for(let t=0;t<d.length;t++){let n=d[t],r=n.addedNodes,i=n.target;for(let t=0;t<r.length;t++){let n=r[t],a=n.parentNode;a==null||n.nodeName!==`BR`||Dr(n,i,e)||a.removeChild(n)}}n.takeRecords()}i!==null&&(l&&wc(i),Vn&&Gc(e)&&i.insertRawText(u))}))}finally{wr=!1}}function Mr(e){let t=e._observer;t!==null&&jr(e,t.takeRecords(),t)}function Nr(e){(function(e){Tr===0&&el(e).addEventListener(`textInput`,Er,!0)})(e),e._observer=new MutationObserver(((t,n)=>{jr(e,t,n)}))}function Pr(e){let t=new Map,n=new Set;for(let r=typeof e==`function`?e:e.replace;r.prototype&&r.prototype.getType!==void 0;r=Object.getPrototypeOf(r)){let{ownNodeConfig:e}=Dl(r);if(e&&e.stateConfigs)for(let r of e.stateConfigs){let e;`stateConfig`in r?(e=r.stateConfig,r.flat&&n.add(e.key)):e=r,t.set(e.key,e)}}return{flatKeys:n,sharedConfigMap:t}}var Fr=class e{constructor(e,t,n=void 0,r=new Map,i=void 0){this.node=e,this.sharedNodeState=t,this.unknownState=n,this.knownState=r;let{sharedConfigMap:a}=this.sharedNodeState,o=i===void 0?function(e,t,n){let r=n.size;if(t)for(let i in t){let t=e.get(i);t&&n.has(t)||r++}return r}(a,n,r):i;this.size=o}getValue(e){let t=this.knownState.get(e);if(t!==void 0)return t;this.sharedNodeState.sharedConfigMap.set(e.key,e);let n=e.defaultValue;if(this.unknownState&&e.key in this.unknownState){let t=this.unknownState[e.key];t!==void 0&&(n=e.parse(t)),this.updateFromKnown(e,n)}return n}getInternalState(){return[this.unknownState,this.knownState]}toJSON(){let e={...this.unknownState},t={};for(let[t,n]of this.knownState)t.isEqual(n,t.defaultValue)?delete e[t.key]:e[t.key]=t.unparse(n);for(let n of this.sharedNodeState.flatKeys)n in e&&(t[n]=e[n],delete e[n]);return Rr(e)&&(t.$=e),t}getWritable(t){if(this.node===t)return this;let{sharedNodeState:n,unknownState:r}=this,i=new Map(this.knownState);return new e(t,n,function(e,t,n){let r;if(n)for(let[i,a]of Object.entries(n)){let n=e.get(i);n?t.has(n)||t.set(n,n.parse(a)):(r||={},r[i]=a)}return r}(n.sharedConfigMap,i,r),i,this.size)}updateFromKnown(e,t){let n=e.key;this.sharedNodeState.sharedConfigMap.set(n,e);let{knownState:r,unknownState:i}=this;r.has(e)||i&&n in i||(i&&(delete i[n],this.unknownState=Rr(i)),this.size++),r.set(e,t)}updateFromUnknown(e,t){let n=this.sharedNodeState.sharedConfigMap.get(e);n?this.updateFromKnown(n,n.parse(t)):(this.unknownState=this.unknownState||{},e in this.unknownState||this.size++,this.unknownState[e]=t)}updateFromJSON(e){let{knownState:t}=this;for(let e of t.keys())t.set(e,e.defaultValue);if(this.size=t.size,this.unknownState=void 0,e)for(let[t,n]of Object.entries(e))this.updateFromUnknown(t,n)}};function Ir(e){let t=e.getWritable(),n=t.__state?t.__state.getWritable(t):new Fr(t,Lr(t));return t.__state=n,n}function Lr(e){return e.__state?e.__state.sharedNodeState:Ys(yl(),e.getType()).sharedNodeState}function Rr(e){if(e)for(let t in e)return e}function zr(e,t,n){for(let[r,i]of t.knownState){if(e.has(r.key))continue;e.add(r.key);let t=n?n.getValue(r):r.defaultValue;if(t!==i&&!r.isEqual(t,i))return!0}return!1}function Br(e,t,n){let{unknownState:r}=t,i=n?n.unknownState:void 0;if(r){for(let[t,n]of Object.entries(r))if(!e.has(t)&&(e.add(t),n!==(i?i[t]:void 0)))return!0}return!1}function Vr(e,t){let n=e.__state;return n&&n.node===e?n.getWritable(t):n}function Hr(e,t){let n=e.__mode,r=e.__format,i=e.__style,a=t.__mode,o=t.__format,s=t.__style,c=e.__state,l=t.__state;return(n===null||n===a)&&(r===null||r===o)&&(i===null||i===s)&&(e.__state===null||c===l||function(e,t){if(e===t)return!0;if(e&&t&&e.size!==t.size)return!1;let n=new Set;return!(e&&zr(n,e,t)||t&&zr(n,t,e)||e&&Br(n,e,t)||t&&Br(n,t,e))}(c,l))}function Ur(e,t){let n=e.mergeWithSibling(t),r=us()._normalizedNodes;return r.add(e.__key),r.add(t.__key),n}function Wr(e){let t,n,r=e;if(r.__text!==``||!r.isSimpleText()||r.isUnmergeable()){for(;(t=r.getPreviousSibling())!==null&&V(t)&&t.isSimpleText()&&!t.isUnmergeable();){if(t.__text!==``){if(Hr(t,r)){r=Ur(t,r);break}break}t.remove()}for(;(n=r.getNextSibling())!==null&&V(n)&&n.isSimpleText()&&!n.isUnmergeable();){if(n.__text!==``){if(Hr(r,n)){r=Ur(r,n);break}break}n.remove()}}else r.remove()}function Gr(e){return Kr(e.anchor),Kr(e.focus),e}function Kr(e){for(;e.type===`element`;){let t=e.getNode(),n=e.offset,r,i;if(n===t.getChildrenSize()?(r=t.getChildAtIndex(n-1),i=!0):(r=t.getChildAtIndex(n),i=!1),V(r)){e.set(r.__key,i?r.getTextContentSize():0,`text`,!0);break}if(!W(r))break;e.set(r.__key,i?r.getChildrenSize():0,`element`,!0)}}var qr,Jr,Yr,Xr,Zr,Qr,$r,ei,ti,ni,ri=``,ii=null,ai=``,oi=``,si=!1,ci=!1;function li(e,t){let n=$r.get(e);if(t!==null){let n=Ei(e);n.parentNode===t&&t.removeChild(n)}if(ei.has(e)||Jr._keyToDOMMap.delete(e),W(n)){let e=xi(n,$r);ui(e,0,e.length-1,null)}n!==void 0&&Hc(ni,Yr,Xr,n,`destroyed`)}function ui(e,t,n,r){let i=t;for(;i<=n;++i){let t=e[i];t!==void 0&&li(t,r)}}function di(e,t){e.setProperty(`text-align`,t)}var fi=`40px`;function pi(e,t){let n=qr.theme.indent;if(typeof n==`string`){let r=e.classList.contains(n);t>0&&!r?e.classList.add(n):t<1&&r&&e.classList.remove(n)}let r=getComputedStyle(e).getPropertyValue(`--lexical-indent-base-value`)||fi;e.style.setProperty(`padding-inline-start`,t===0?``:`calc(${t} * ${r})`)}function mi(e,t){let n=e.style;t===0?di(n,``):t===or?di(n,`left`):t===sr?di(n,`center`):t===cr?di(n,`right`):t===lr?di(n,`justify`):t===ur?di(n,`start`):t===dr&&di(n,`end`)}function hi(e,t){let n=function(e){let t=e.__dir;if(t!==null)return t;if(js(e))return null;let n=e.getParentOrThrow();return js(n)&&n.__dir===null?`auto`:null}(t);n===null?e.removeAttribute(`dir`):e.dir=n}function gi(e,t){let n=ei.get(e);n===void 0&&z(60);let r=n.createDOM(qr,Jr);if(function(e,t,n){let r=n._keyToDOMMap;(function(e,t,n){let r=`__lexicalKey_${t._key}`;e[r]=n})(t,n,e),r.set(e,t)}(e,r,Jr),V(n)?r.setAttribute(`data-lexical-text`,`true`):ks(n)&&r.setAttribute(`data-lexical-decorator`,`true`),W(n)){let e=n.__indent,t=n.__size;if(hi(r,n),e!==0&&pi(r,e),t!==0){let e=t-1;_i(xi(n,ei),n,0,e,n.getDOMSlot(r))}let i=n.__format;i!==0&&mi(r,i),n.isInline()||yi(null,n,r),Kc(n)&&(ri+=pr,oi+=pr)}else{let t=n.getTextContent();if(ks(n)){let t=n.decorate(Jr,qr);t!==null&&Ci(e,t),r.contentEditable=`false`}ri+=t,oi+=t}return t!==null&&t.insertChild(r),Hc(ni,Yr,Xr,n,`created`),r}function _i(e,t,n,r,i){let a=ri;ri=``;let o=n;for(;o<=r;++o){gi(e[o],i);let t=ei.get(e[o]);t!==null&&V(t)&&(ii===null&&(ii=t.getFormat()),ai===``&&(ai=t.getStyle()))}Kc(t)&&(ri+=pr),i.element.__lexicalTextContent=ri,ri=a+ri}function vi(e,t){if(e){let n=e.__last;if(n){let e=t.get(n);if(e)return $a(e)?`line-break`:ks(e)&&e.isInline()?`decorator`:null}return`empty`}return null}function yi(e,t,n){let r=vi(e,$r),i=vi(t,ei);r!==i&&t.getDOMSlot(n).setManagedLineBreak(i)}function bi(e,t,n){var r;ii=null,ai=``,function(e,t,n){let r=ri,i=e.__size,a=t.__size;ri=``;let o=n.element;if(i===1&&a===1){let n=e.__first,r=t.__first;if(n===r)Si(n,o);else{let e=Ei(n),t=gi(r,null);try{o.replaceChild(t,e)}catch(i){if(typeof i==`object`&&i){let a=`${i.toString()} Parent: ${o.tagName}, new child: {tag: ${t.tagName} key: ${r}}, old child: {tag: ${e.tagName}, key: ${n}}.`;throw Error(a)}throw i}li(n,null)}let i=ei.get(r);V(i)&&(ii===null&&(ii=i.getFormat()),ai===``&&(ai=i.getStyle()))}else{let r=xi(e,$r),s=xi(t,ei);if(r.length!==i&&z(227),s.length!==a&&z(228),i===0)a!==0&&_i(s,t,0,a-1,n);else if(a===0){if(i!==0){let e=n.after==null&&n.before==null&&n.element.__lexicalLineBreak==null;ui(r,0,i-1,e?null:o),e&&(o.textContent=``)}}else (function(e,t,n,r,i,a){let o=r-1,s=i-1,c,l,u=a.getFirstChild(),d=0,f=0;for(;d<=o&&f<=s;){let e=t[d],r=n[f];if(e===r)u=wi(Si(r,a.element)),d++,f++;else{c===void 0&&(c=new Set(t)),l===void 0&&(l=new Set(n));let i=l.has(e),o=c.has(r);if(i)if(o){let e=qc(Jr,r);e===u?u=wi(Si(r,a.element)):(a.withBefore(u).insertChild(e),Si(r,a.element)),d++,f++}else gi(r,a.withBefore(u)),f++;else u=wi(Ei(e)),li(e,a.element),d++}let i=ei.get(r);i!==null&&V(i)&&(ii===null&&(ii=i.getFormat()),ai===``&&(ai=i.getStyle()))}let p=d>o,m=f>s;if(p&&!m){let t=n[s+1],r=t===void 0?null:Jr.getElementByKey(t);_i(n,e,f,s,a.withBefore(r))}else m&&!p&&ui(t,d,o,a.element)})(t,r,s,i,a,n)}Kc(t)&&(ri+=pr),o.__lexicalTextContent=ri,ri=r+ri}(e,t,t.getDOMSlot(n)),r=t,ii==null||ii===r.__textFormat||ci||r.setTextFormat(ii),function(e){ai===``||ai===e.__textStyle||ci||e.setTextStyle(ai)}(t)}function xi(e,t){let n=[],r=e.__first;for(;r!==null;){let e=t.get(r);e===void 0&&z(101),n.push(r),r=e.__next}return n}function Si(e,t){let n=$r.get(e),r=ei.get(e);n!==void 0&&r!==void 0||z(61);let i=si||Qr.has(e)||Zr.has(e),a=qc(Jr,e);if(n===r&&!i){if(W(n)){let e=a.__lexicalTextContent;e!==void 0&&(ri+=e,oi+=e)}else{let e=n.getTextContent();oi+=e,ri+=e}return a}if(n!==r&&i&&Hc(ni,Yr,Xr,r,`updated`),r.updateDOM(n,a,qr)){let n=gi(e,null);return t===null&&z(62),t.replaceChild(n,a),li(e,null),n}if(W(n)&&W(r)){let e=r.__indent;(si||e!==n.__indent)&&pi(a,e);let t=r.__format;if((si||t!==n.__format)&&mi(a,t),i&&(bi(n,r,a),js(r)||r.isInline()||yi(n,r,a)),Kc(r)&&(ri+=pr,oi+=pr),(si||r.__dir!==n.__dir)&&(hi(a,r),js(r)&&!si))for(let e of r.getChildren())W(e)&&hi(qc(Jr,e.getKey()),e)}else{let t=r.getTextContent();if(ks(r)){let t=r.decorate(Jr,qr);t!==null&&Ci(e,t)}ri+=t,oi+=t}if(!ci&&js(r)&&r.__cachedText!==oi){let e=r.getWritable();e.__cachedText=oi,r=e}return a}function Ci(e,t){let n=Jr._pendingDecorators,r=Jr._decorators;if(n===null){if(r[e]===t)return;n=bc(Jr)}n[e]=t}function wi(e){let t=e.nextSibling;return t!==null&&t===Jr._blockCursorElement&&(t=t.nextSibling),t}function Ti(e,t,n,r,i,a){ri=``,oi=``,si=r===nr,Jr=n,qr=n._config,Yr=n._nodes,Xr=Jr._listeners.mutation,Zr=i,Qr=a,$r=e._nodeMap,ei=t._nodeMap,ci=t._readOnly,ti=new Map(n._keyToDOMMap);let o=new Map;return ni=o,Si(`root`,null),Jr=void 0,Yr=void 0,Zr=void 0,Qr=void 0,$r=void 0,ei=void 0,qr=void 0,ti=void 0,ni=void 0,o}function Ei(e){let t=ti.get(e);return t===void 0&&z(75,e),t}function B(e){return{type:e}}var Di=B(`SELECTION_CHANGE_COMMAND`),Oi=B(`SELECTION_INSERT_CLIPBOARD_NODES_COMMAND`),ki=B(`CLICK_COMMAND`),Ai=B(`DELETE_CHARACTER_COMMAND`),ji=B(`INSERT_LINE_BREAK_COMMAND`),Mi=B(`INSERT_PARAGRAPH_COMMAND`),Ni=B(`CONTROLLED_TEXT_INSERTION_COMMAND`),Pi=B(`PASTE_COMMAND`),Fi=B(`REMOVE_TEXT_COMMAND`),Ii=B(`DELETE_WORD_COMMAND`),Li=B(`DELETE_LINE_COMMAND`),Ri=B(`FORMAT_TEXT_COMMAND`),zi=B(`UNDO_COMMAND`),Bi=B(`REDO_COMMAND`),Vi=B(`KEYDOWN_COMMAND`),Hi=B(`KEY_ARROW_RIGHT_COMMAND`),Ui=B(`MOVE_TO_END`),Wi=B(`KEY_ARROW_LEFT_COMMAND`),Gi=B(`MOVE_TO_START`),Ki=B(`KEY_ARROW_UP_COMMAND`),qi=B(`KEY_ARROW_DOWN_COMMAND`),Ji=B(`KEY_ENTER_COMMAND`),Yi=B(`KEY_SPACE_COMMAND`),Xi=B(`KEY_BACKSPACE_COMMAND`),Zi=B(`KEY_ESCAPE_COMMAND`),Qi=B(`KEY_DELETE_COMMAND`),$i=B(`KEY_TAB_COMMAND`),ea=B(`INSERT_TAB_COMMAND`),ta=B(`INDENT_CONTENT_COMMAND`),na=B(`OUTDENT_CONTENT_COMMAND`),ra=B(`DROP_COMMAND`),ia=B(`FORMAT_ELEMENT_COMMAND`),aa=B(`DRAGSTART_COMMAND`),oa=B(`DRAGOVER_COMMAND`),sa=B(`DRAGEND_COMMAND`),ca=B(`COPY_COMMAND`),la=B(`CUT_COMMAND`),ua=B(`SELECT_ALL_COMMAND`),da=B(`CLEAR_EDITOR_COMMAND`),fa=B(`CLEAR_HISTORY_COMMAND`),pa=B(`CAN_REDO_COMMAND`),ma=B(`CAN_UNDO_COMMAND`),ha=B(`FOCUS_COMMAND`),ga=B(`BLUR_COMMAND`),_a=B(`KEY_MODIFIER_COMMAND`),va=Object.freeze({}),ya=30,ba=[[`keydown`,function(e,t){if(xa=e.timeStamp,Sa=e.key,!t.isComposing()&&!G(t,Vi,e)&&e.key!=null){if(Aa&&Rc(e))return Cs(t,(()=>{Ba(t,ja)})),Aa=!1,void(ja=``);if(function(e){return Fc(e,`ArrowRight`,{shiftKey:`any`})}(e))G(t,Hi,e);else if(function(e){return Fc(e,`ArrowRight`,Ic)}(e))G(t,Ui,e);else if(function(e){return Fc(e,`ArrowLeft`,{shiftKey:`any`})}(e))G(t,Wi,e);else if(function(e){return Fc(e,`ArrowLeft`,Ic)}(e))G(t,Gi,e);else if(function(e){return Fc(e,`ArrowUp`,{altKey:`any`,shiftKey:`any`})}(e))G(t,Ki,e);else if(function(e){return Fc(e,`ArrowDown`,{altKey:`any`,shiftKey:`any`})}(e))G(t,qi,e);else if(function(e){return Fc(e,`Enter`,{altKey:`any`,ctrlKey:`any`,metaKey:`any`,shiftKey:!0})}(e))Oa=!0,G(t,Ji,e);else if(function(e){return e.key===` `}(e))G(t,Yi,e);else if(function(e){return Bn&&Fc(e,`o`,{ctrlKey:!0})}(e))e.preventDefault(),Oa=!0,G(t,ji,!0);else if(function(e){return Fc(e,`Enter`,{altKey:`any`,ctrlKey:`any`,metaKey:`any`})}(e))Oa=!1,G(t,Ji,e);else if(function(e){return Fc(e,`Backspace`,{shiftKey:`any`})||Bn&&Fc(e,`h`,{ctrlKey:!0})}(e))Rc(e)?G(t,Xi,e):(e.preventDefault(),G(t,Ai,!0));else if(function(e){return e.key===`Escape`}(e))G(t,Zi,e);else if(function(e){return Fc(e,`Delete`,{})||Bn&&Fc(e,`d`,{ctrlKey:!0})}(e))(function(e){return e.key===`Delete`})(e)?G(t,Qi,e):(e.preventDefault(),G(t,Ai,!1));else if(function(e){return Fc(e,`Backspace`,Lc)}(e))e.preventDefault(),G(t,Ii,!0);else if(function(e){return Fc(e,`Delete`,Lc)}(e))e.preventDefault(),G(t,Ii,!1);else if(function(e){return Bn&&Fc(e,`Backspace`,{metaKey:!0})}(e))e.preventDefault(),G(t,Li,!0);else if(function(e){return Bn&&(Fc(e,`Delete`,{metaKey:!0})||Fc(e,`k`,{ctrlKey:!0}))}(e))e.preventDefault(),G(t,Li,!1);else if(function(e){return Fc(e,`b`,Ic)}(e))e.preventDefault(),G(t,Ri,`bold`);else if(function(e){return Fc(e,`u`,Ic)}(e))e.preventDefault(),G(t,Ri,`underline`);else if(function(e){return Fc(e,`i`,Ic)}(e))e.preventDefault(),G(t,Ri,`italic`);else if(function(e){return Fc(e,`Tab`,{shiftKey:`any`})}(e))G(t,$i,e);else if(function(e){return Fc(e,`z`,Ic)}(e))e.preventDefault(),G(t,zi,void 0);else if(function(e){return Bn?Fc(e,`z`,{metaKey:!0,shiftKey:!0}):Fc(e,`y`,{ctrlKey:!0})||Fc(e,`z`,{ctrlKey:!0,shiftKey:!0})}(e))e.preventDefault(),G(t,Bi,void 0);else{let n=t._editorState._selection;n===null||H(n)?zc(e)&&(e.preventDefault(),G(t,ua,e)):function(e){return Fc(e,`c`,Ic)}(e)?(e.preventDefault(),G(t,ca,e)):function(e){return Fc(e,`x`,Ic)}(e)?(e.preventDefault(),G(t,la,e)):zc(e)&&(e.preventDefault(),G(t,ua,e))}(function(e){return e.ctrlKey||e.shiftKey||e.altKey||e.metaKey})(e)&&G(t,_a,e)}}],[`pointerdown`,function(e,t){let n=e.target,r=e.pointerType;pl(n)&&r!==`touch`&&r!==`pen`&&e.button===0&&Cs(t,(()=>{Qs(n)||(Da=!0)}))}],[`compositionstart`,function(e,t){Cs(t,(()=>{let n=U();if(H(n)&&!t.isComposing()){let r=n.anchor,i=n.anchor.getNode();mc(r.key),(e.timeStamp<xa+ya||r.type===`element`||!n.isCollapsed()||i.getFormat()!==n.format||V(i)&&i.getStyle()!==n.style)&&G(t,Ni,mr)}}))}],[`compositionend`,function(e,t){Vn?ka=!0:Wn||!Un&&!Jn?Cs(t,(()=>{Ba(t,e.data)})):(Aa=!0,ja=e.data)}],[`input`,function(e,t){e.stopPropagation(),Cs(t,(()=>{if(fl(e.target)&&Qs(e.target))return;let n=U(),r=e.data,i=za(e);if(r!=null&&H(n)&&Pa(n,i,r,e.timeStamp,!1)){ka&&=(Ba(t,r),!1);let i=n.anchor.getNode(),a=ll(el(t));if(a===null)return;let o=n.isBackward(),s=o?n.anchor.offset:n.focus.offset,c=o?n.focus.offset:n.anchor.offset;Hn&&!n.isCollapsed()&&V(i)&&a.anchorNode!==null&&i.getTextContent().slice(0,s)+r+i.getTextContent().slice(s+c)===kc(a.anchorNode)||G(t,Ni,r);let l=r.length;Vn&&l>1&&e.inputType===`insertCompositionText`&&!t.isComposing()&&(n.anchor.offset-=l),Un||Wn||Jn||!t.isComposing()||(xa=0,mc(null))}else Ac(!1,t,r===null?void 0:r),ka&&=(Ba(t,r||void 0),!1);(function(){ss(),Mr(us())})()}),{event:e}),wa=null}],[`click`,function(e,t){Cs(t,(()=>{let n=U(),r=ll(el(t)),i=Uo();if(r){if(H(n)){let t=n.anchor,a=t.getNode();if(t.type===`element`&&t.offset===0&&n.isCollapsed()&&!js(a)&&Sc().getChildrenSize()===1&&a.getTopLevelElementOrThrow().isEmpty()&&i!==null&&n.is(i))r.removeAllRanges(),n.dirty=!0;else if(e.detail===3&&!n.isCollapsed()&&a!==n.focus.getNode()){let e=function(e,t){let n=e;for(;n!==Sc()&&n!=null;){if(t(n))return n;n=n.getParent()}return null}(a,(e=>W(e)&&!e.isInline()));W(e)&&e.select(0)}}else if(e.pointerType===`touch`||e.pointerType===`pen`){let n=r.anchorNode;(fl(n)||oc(n))&&wc(Ho(i,r,t,e))}}G(t,ki,e)}))}],[`cut`,va],[`copy`,va],[`dragstart`,va],[`dragover`,va],[`dragend`,va],[`paste`,va],[`focus`,va],[`blur`,va],[`drop`,va]];Hn&&ba.push([`beforeinput`,(e,t)=>function(e,t){let n=e.inputType,r=za(e);n===`deleteCompositionText`||Vn&&Gc(t)||n!==`insertCompositionText`&&Cs(t,(()=>{let i=U();if(n===`deleteContentBackward`){if(i===null){let e=Uo();if(!H(e))return;wc(e.clone())}if(H(i)){let n=i.anchor.key===i.focus.key;if(a=e.timeStamp,Sa===`MediaLast`&&a<xa+ya&&t.isComposing()&&n){if(mc(null),xa=0,setTimeout((()=>{Cs(t,(()=>{mc(null)}))}),ya),H(i)){let e=i.anchor.getNode();e.markDirty(),V(e)||z(142),Ra(i,e)}}else{mc(null),e.preventDefault();let r=i.anchor.getNode(),a=r.getTextContent(),o=r.canInsertTextAfter(),s=i.anchor.offset===0&&i.focus.offset===a.length,c=qn&&n&&!s&&o;if(c&&i.isCollapsed()&&(c=!ks(Wc(i.anchor,!0))),!c){G(t,Ai,!0);let e=U();qn&&H(e)&&e.isCollapsed()&&(Ma=e,setTimeout((()=>Ma=null)))}}return}}var a;if(!H(i))return;let o=e.data;wa!==null&&Ac(!1,t,wa),i.dirty&&wa===null||!i.isCollapsed()||js(i.anchor.getNode())||r===null||i.applyDOMRange(r),wa=null;let s=i.anchor,c=i.focus,l=s.getNode(),u=c.getNode();if(n!==`insertText`&&n!==`insertTranspose`)switch(e.preventDefault(),n){case`insertFromYank`:case`insertFromDrop`:case`insertReplacementText`:G(t,Ni,e);break;case`insertFromComposition`:mc(null),G(t,Ni,e);break;case`insertLineBreak`:mc(null),G(t,ji,!1);break;case`insertParagraph`:mc(null),Oa&&!Wn?(Oa=!1,G(t,ji,!1)):G(t,Mi,void 0);break;case`insertFromPaste`:case`insertFromPasteAsQuotation`:G(t,Pi,e);break;case`deleteByComposition`:(function(e,t){return e!==t||W(e)||W(t)||!ic(e)||!ic(t)})(l,u)&&G(t,Fi,e);break;case`deleteByDrag`:case`deleteByCut`:G(t,Fi,e);break;case`deleteContent`:G(t,Ai,!1);break;case`deleteWordBackward`:G(t,Ii,!0);break;case`deleteWordForward`:G(t,Ii,!1);break;case`deleteHardLineBackward`:case`deleteSoftLineBackward`:G(t,Li,!0);break;case`deleteContentForward`:case`deleteHardLineForward`:case`deleteSoftLineForward`:G(t,Li,!1);break;case`formatStrikeThrough`:G(t,Ri,`strikethrough`);break;case`formatBold`:G(t,Ri,`bold`);break;case`formatItalic`:G(t,Ri,`italic`);break;case`formatUnderline`:G(t,Ri,`underline`);break;case`historyUndo`:G(t,zi,void 0);break;case`historyRedo`:G(t,Bi,void 0)}else{if(o===`
|
|
14
|
-
`)e.preventDefault(),G(t,ji,!1);else if(o===pr)e.preventDefault(),G(t,Mi,void 0);else if(o==null&&e.dataTransfer){let t=e.dataTransfer.getData(`text/plain`);e.preventDefault(),i.insertRawText(t)}else o!=null&&Pa(i,r,o,e.timeStamp,!0)?(e.preventDefault(),G(t,Ni,o)):wa=o;Ca=e.timeStamp}}))}(e,t)]);var xa=0,Sa=null,Ca=0,wa=null,Ta=new WeakMap,Ea=!1,Da=!1,Oa=!1,ka=!1,Aa=!1,ja=``,Ma=null,Na=[0,``,0,`root`,0];function Pa(e,t,n,r,i){let a=e.anchor,o=e.focus,s=a.getNode(),c=us(),l=ll(el(c)),u=l===null?null:l.anchorNode,d=a.key,f=c.getElementByKey(d),p=n.length;return d!==o.key||!V(s)||(!i&&(!Hn||Ca<r+50)||s.isDirty()&&p<2||Ec(n))&&a.offset!==o.offset&&!s.isComposing()||ac(s)||s.isDirty()&&p>1||(i||!Hn)&&f!==null&&!s.isComposing()&&u!==cc(f)||l!==null&&t!==null&&(!t.collapsed||t.startContainer!==l.anchorNode||t.startOffset!==l.anchorOffset)||s.getFormat()!==e.format||s.getStyle()!==e.style||function(e,t){if(t.isSegmented())return!0;if(!e.isCollapsed())return!1;let n=e.anchor.offset,r=t.getParentOrThrow(),i=ic(t);return n===0?!t.canInsertTextBefore()||!r.canInsertTextBefore()&&!t.isComposing()||i||function(e){let t=e.getPreviousSibling();return(V(t)||W(t)&&t.isInline())&&!t.canInsertTextAfter()}(t):n===t.getTextContentSize()&&(!t.canInsertTextAfter()||!r.canInsertTextAfter()&&!t.isComposing()||i)}(e,s)}function Fa(e,t){return oc(e)&&e.nodeValue!==null&&t!==0&&t!==e.nodeValue.length}function Ia(e,t,n){let{anchorNode:r,anchorOffset:i,focusNode:a,focusOffset:o}=e;Ea&&(Ea=!1,Fa(r,i)&&Fa(a,o)&&!Ma)||Cs(t,(()=>{if(!n)return void wc(null);if(!ec(t,r,a))return;let s=U();if(Ma&&H(s)&&s.isCollapsed()){let e=s.anchor,t=Ma.anchor;(e.key===t.key&&e.offset===t.offset+1||e.offset===1&&t.getNode().is(e.getNode().getPreviousSibling()))&&(s=Ma.clone(),wc(s))}if(Ma=null,H(s)){let n=s.anchor,r=n.getNode();if(s.isCollapsed()){e.type===`Range`&&e.anchorNode===e.focusNode&&(s.dirty=!0);let i=el(t).event,a=i?i.timeStamp:performance.now(),[o,c,l,u,d]=Na,f=Sc(),p=!1===t.isComposing()&&f.getTextContent()===``;if(a<d+200&&n.offset===l&&n.key===u)La(s,o,c);else if(n.type===`text`)V(r)||z(141),Ra(s,r);else if(n.type===`element`&&!p){W(r)||z(259);let e=n.getNode();e.isEmpty()?function(e,t){La(e,t.getTextFormat(),t.getTextStyle())}(s,e):La(s,0,``)}}else{let e=n.key,t=s.focus.key,r=s.getNodes(),a=r.length,c=s.isBackward(),l=c?o:i,u=c?i:o,d=c?t:e,f=c?e:t,p=2047,m=!1;for(let e=0;e<a;e++){let t=r[e],n=t.getTextContentSize();if(V(t)&&n!==0&&!(e===0&&t.__key===d&&l===n||e===a-1&&t.__key===f&&u===0)&&(m=!0,p&=t.getFormat(),p===0))break}s.format=m?p:0}}G(t,Di,void 0)}))}function La(e,t,n){e.format===t&&e.style===n||(e.format=t,e.style=n,e.dirty=!0)}function Ra(e,t){La(e,t.getFormat(),t.getStyle())}function za(e){if(!e.getTargetRanges)return null;let t=e.getTargetRanges();return t.length===0?null:t[0]}function Ba(e,t){let n=e._compositionKey;if(mc(null),n!==null&&t!=null){if(t===``){let t=gc(n),r=cc(e.getElementByKey(n));r!==null&&r.nodeValue!==null&&V(t)&&jc(t,r.nodeValue,null,null,!0);return}if(t[t.length-1]===`
|
|
15
|
-
`){let t=U();if(H(t)){let n=t.focus;t.anchor.set(n.key,n.offset,n.type),G(e,Ji,null);return}}}Ac(!0,e,t)}function Va(e){let t=e.__lexicalEventHandles;return t===void 0&&(t=[],e.__lexicalEventHandles=t),t}var Ha=new Map;function Ua(e){let t=ul(e.target);if(t===null)return;let n=nc(t.anchorNode);if(n===null)return;Da&&(Da=!1,Cs(n,(()=>{let r=Uo(),i=t.anchorNode;(fl(i)||oc(i))&&wc(Ho(r,t,n,e))})));let r=Dc(n),i=r[r.length-1],a=i._key,o=Ha.get(a),s=o||i;s!==n&&Ia(t,s,!1),Ia(t,n,!0),n===i?o&&Ha.delete(a):Ha.set(a,n)}function Wa(e){e._lexicalHandled=!0}function Ga(e){return!0===e._lexicalHandled}function Ka(e){let t=e.ownerDocument,n=Ta.get(t);if(n===void 0)return;let r=n-1;r>=0||z(164),Ta.set(t,r),r===0&&t.removeEventListener(`selectionchange`,Ua);let i=rc(e);tc(i)?(function(e){if(e._parentEditor!==null){let t=Dc(e),n=t[t.length-1]._key;Ha.get(n)===e&&Ha.delete(n)}else Ha.delete(e._key)}(i),e.__lexicalEditor=null):i&&z(198);let a=Va(e);for(let e=0;e<a.length;e++)a[e]();e.__lexicalEventHandles=[]}function qa(e,t,n){ss();let r=e.__key,i=e.getParent();if(i===null)return;let a=function(e){let t=U();if(!H(t)||!W(e))return t;let{anchor:n,focus:r}=t,i=n.getNode(),a=r.getNode();return Qc(i,e)&&n.set(e.__key,0,`element`),Qc(a,e)&&r.set(e.__key,0,`element`),t}(e),o=!1;if(H(a)&&t){let t=a.anchor,n=a.focus;t.key===r&&(Ko(t,e,i,e.getPreviousSibling(),e.getNextSibling()),o=!0),n.key===r&&(Ko(n,e,i,e.getPreviousSibling(),e.getNextSibling()),o=!0)}else Oo(a)&&t&&e.isSelected()&&e.selectPrevious();if(H(a)&&t&&!o){let t=e.getIndexWithinParent();fc(e),Wo(a,i,t,-1)}else fc(e);n||nl(i)||i.canBeEmpty()||!i.isEmpty()||qa(i,t),t&&a&&js(i)&&i.isEmpty()&&i.selectEnd()}function Ja(e){return e}var Ya=class{static getType(){let{ownNodeType:e}=Dl(this);return e===void 0&&z(64,this.name),e}static clone(e){z(65,this.name)}$config(){return{}}config(e,t){let n=t.extends||Object.getPrototypeOf(this.constructor);return Object.assign(t,{extends:n,type:e}),{[e]:t}}afterCloneFrom(e){this.__key===e.__key?(this.__parent=e.__parent,this.__next=e.__next,this.__prev=e.__prev,this.__state=e.__state):e.__state&&(this.__state=e.__state.getWritable(this))}constructor(e){this.__type=this.constructor.getType(),this.__parent=null,this.__prev=null,this.__next=null,Object.defineProperty(this,`__state`,{configurable:!0,enumerable:!1,value:void 0,writable:!0}),dc(this,e)}getType(){return this.__type}isInline(){z(137,this.constructor.name)}isAttached(){let e=this.__key;for(;e!==null;){if(e===`root`)return!0;let t=gc(e);if(t===null)break;e=t.__parent}return!1}isSelected(e){let t=e||U();if(t==null)return!1;let n=t.getNodes().some((e=>e.__key===this.__key));if(V(this))return n;if(H(t)&&t.anchor.type===`element`&&t.focus.type===`element`){if(t.isCollapsed())return!1;let e=this.getParent();if(ks(this)&&this.isInline()&&e){let n=t.isBackward()?t.focus:t.anchor;if(e.is(n.getNode())&&n.offset===e.getChildrenSize()&&this.is(e.getLastChild()))return!1}}return n}getKey(){return this.__key}getIndexWithinParent(){let e=this.getParent();if(e===null)return-1;let t=e.getFirstChild(),n=0;for(;t!==null;){if(this.is(t))return n;n++,t=t.getNextSibling()}return-1}getParent(){let e=this.getLatest().__parent;return e===null?null:gc(e)}getParentOrThrow(){let e=this.getParent();return e===null&&z(66,this.__key),e}getTopLevelElement(){let e=this;for(;e!==null;){let t=e.getParent();if(nl(t))return W(e)||e===this&&ks(e)||z(194),e;e=t}return null}getTopLevelElementOrThrow(){let e=this.getTopLevelElement();return e===null&&z(67,this.__key),e}getParents(){let e=[],t=this.getParent();for(;t!==null;)e.push(t),t=t.getParent();return e}getParentKeys(){let e=[],t=this.getParent();for(;t!==null;)e.push(t.__key),t=t.getParent();return e}getPreviousSibling(){let e=this.getLatest().__prev;return e===null?null:gc(e)}getPreviousSiblings(){let e=[],t=this.getParent();if(t===null)return e;let n=t.getFirstChild();for(;n!==null&&!n.is(this);)e.push(n),n=n.getNextSibling();return e}getNextSibling(){let e=this.getLatest().__next;return e===null?null:gc(e)}getNextSiblings(){let e=[],t=this.getNextSibling();for(;t!==null;)e.push(t),t=t.getNextSibling();return e}getCommonAncestor(e){let t=W(this)?this:this.getParent(),n=W(e)?e:e.getParent(),r=t&&n?ou(t,n):null;return r?r.commonAncestor:null}is(e){return e!=null&&this.__key===e.__key}isBefore(e){let t=ou(this,e);return t!==null&&(t.type===`descendant`||(t.type===`branch`?ru(t)===-1:(t.type!==`same`&&t.type!==`ancestor`&&z(279),!1)))}isParentOf(e){let t=ou(this,e);return t!==null&&t.type===`ancestor`}getNodesBetween(e){let t=this.isBefore(e),n=[],r=new Set,i=this;for(;i!==null;){let a=i.__key;if(r.has(a)||(r.add(a),n.push(i)),i===e)break;let o=W(i)?t?i.getFirstChild():i.getLastChild():null;if(o!==null){i=o;continue}let s=t?i.getNextSibling():i.getPreviousSibling();if(s!==null){i=s;continue}let c=i.getParentOrThrow();if(r.has(c.__key)||n.push(c),c===e)break;let l=null,u=c;do{if(u===null&&z(68),l=t?u.getNextSibling():u.getPreviousSibling(),u=u.getParent(),u===null)break;l!==null||r.has(u.__key)||n.push(u)}while(l===null);i=l}return t||n.reverse(),n}isDirty(){let e=us()._dirtyLeaves;return e!==null&&e.has(this.__key)}getLatest(){let e=gc(this.__key);return e===null&&z(113),e}getWritable(){ss();let e=ls(),t=us(),n=e._nodeMap,r=this.__key,i=this.getLatest(),a=t._cloneNotNeeded,o=U();if(o!==null&&o.setCachedNodes(null),a.has(r))return pc(i),i;let s=Cl(i);return a.add(r),pc(s),n.set(r,s),s}getTextContent(){return``}getTextContentSize(){return this.getTextContent().length}createDOM(e,t){z(70)}updateDOM(e,t,n){z(71)}exportDOM(e){return{element:this.createDOM(e._config,e)}}exportJSON(){let e=this.__state?this.__state.toJSON():void 0;return{type:this.__type,version:1,...e}}static importJSON(e){z(18,this.name)}updateFromJSON(e){return function(e,t){let n=e.getWritable(),r=t.$,i=r;for(let e of Lr(n).flatKeys)e in t&&(i!==void 0&&i!==r||(i={...r}),i[e]=t[e]);return(n.__state||i)&&Ir(e).updateFromJSON(i),n}(this,e)}static transform(){return null}remove(e){qa(this,!0,e)}replace(e,t){ss();let n=U();n!==null&&(n=n.clone()),al(this,e);let r=this.getLatest(),i=this.__key,a=e.__key,o=e.getWritable(),s=this.getParentOrThrow().getWritable(),c=s.__size;fc(o);let l=r.getPreviousSibling(),u=r.getNextSibling(),d=r.__prev,f=r.__next,p=r.__parent;if(qa(r,!1,!0),l===null?s.__first=a:l.getWritable().__next=a,o.__prev=d,u===null?s.__last=a:u.getWritable().__prev=a,o.__next=f,o.__parent=p,s.__size=c,t&&(W(this)&&W(o)||z(139),this.getChildren().forEach((e=>{o.append(e)}))),H(n)){wc(n);let e=n.anchor,t=n.focus;e.key===i&&To(e,o),t.key===i&&To(t,o)}return hc()===i&&mc(a),o}insertAfter(e,t=!0){ss(),al(this,e);let n=this.getWritable(),r=e.getWritable(),i=r.getParent(),a=U(),o=!1,s=!1;if(i!==null){let t=e.getIndexWithinParent();if(fc(r),H(a)){let e=i.__key,n=a.anchor,r=a.focus;o=n.type===`element`&&n.key===e&&n.offset===t+1,s=r.type===`element`&&r.key===e&&r.offset===t+1}}let c=this.getNextSibling(),l=this.getParentOrThrow().getWritable(),u=r.__key,d=n.__next;if(c===null?l.__last=u:c.getWritable().__prev=u,l.__size++,n.__next=u,r.__next=d,r.__prev=n.__key,r.__parent=n.__parent,t&&H(a)){let e=this.getIndexWithinParent();Wo(a,l,e+1);let t=l.__key;o&&a.anchor.set(t,e+2,`element`),s&&a.focus.set(t,e+2,`element`)}return e}insertBefore(e,t=!0){ss(),al(this,e);let n=this.getWritable(),r=e.getWritable(),i=r.__key;fc(r);let a=this.getPreviousSibling(),o=this.getParentOrThrow().getWritable(),s=n.__prev,c=this.getIndexWithinParent();a===null?o.__first=i:a.getWritable().__next=i,o.__size++,n.__prev=i,r.__prev=s,r.__next=n.__key,r.__parent=n.__parent;let l=U();return t&&H(l)&&Wo(l,this.getParentOrThrow(),c),e}isParentRequired(){return!1}createParentElementNode(){return Vs()}selectStart(){return this.selectPrevious()}selectEnd(){return this.selectNext(0,0)}selectPrevious(e,t){ss();let n=this.getPreviousSibling(),r=this.getParentOrThrow();if(n===null)return r.select(0,0);if(W(n))return n.select();if(!V(n)){let e=n.getIndexWithinParent()+1;return r.select(e,e)}return n.select(e,t)}selectNext(e,t){ss();let n=this.getNextSibling(),r=this.getParentOrThrow();if(n===null)return r.select();if(W(n))return n.select(0,0);if(!V(n)){let e=n.getIndexWithinParent();return r.select(e,e)}return n.select(e,t)}markDirty(){this.getWritable()}reconcileObservedMutation(e,t){this.markDirty()}},Xa=class e extends Ya{static getType(){return`linebreak`}static clone(t){return new e(t.__key)}constructor(e){super(e)}getTextContent(){return`
|
|
16
|
-
`}createDOM(){return document.createElement(`br`)}updateDOM(){return!1}isInline(){return!0}static importDOM(){return{br:e=>function(e){let t=e.parentElement;if(t!==null&&gl(t)){let n=t.firstChild;if(n===e||n.nextSibling===e&&eo(n)){let n=t.lastChild;if(n===e||n.previousSibling===e&&eo(n))return!0}}return!1}(e)||function(e){let t=e.parentElement;if(t!==null&&gl(t)){let n=t.firstChild;if(n===e||n.nextSibling===e&&eo(n))return!1;let r=t.lastChild;if(r===e||r.previousSibling===e&&eo(r))return!0}return!1}(e)?null:{conversion:Za,priority:0}}}static importJSON(e){return Qa().updateFromJSON(e)}};function Za(e){return{node:Qa()}}function Qa(){return il(new Xa)}function $a(e){return e instanceof Xa}function eo(e){return oc(e)&&/^( |\t|\r?\n)+$/.test(e.textContent||``)}function to(e,t){return 16&t?`code`:t&128?`mark`:32&t?`sub`:64&t?`sup`:null}function no(e,t){return 1&t?`strong`:2&t?`em`:`span`}function ro(e,t,n,r,i){let a=r.classList,o=Vc(i,`base`);o!==void 0&&a.add(...o),o=Vc(i,`underlineStrikethrough`);let s=!1,c=t&8&&t&4;o!==void 0&&(n&8&&n&4?(s=!0,c||a.add(...o)):c&&a.remove(...o));for(let e in hr){let r=hr[e];if(o=Vc(i,e),o!==void 0)if(n&r){if(s&&(e===`underline`||e===`strikethrough`)){t&r&&a.remove(...o);continue}t&r&&(!c||e!==`underline`)&&e!==`strikethrough`||a.add(...o)}else t&r&&a.remove(...o)}}function io(e,t,n){let r=t.firstChild,i=n.isComposing(),a=e+(i?fr:``);if(r==null)t.textContent=a;else{let e=r.nodeValue;if(e!==a)if(i||Vn){let[t,n,i]=function(e,t){let n=e.length,r=t.length,i=0,a=0;for(;i<n&&i<r&&e[i]===t[i];)i++;for(;a+i<n&&a+i<r&&e[n-a-1]===t[r-a-1];)a++;return[i,n-i-a,t.slice(i,r-a)]}(e,a);n!==0&&r.deleteData(t,n),r.insertData(t,i)}else r.nodeValue=a}}function ao(e,t,n,r,i,a){io(i,e,t);let o=a.theme.text;o!==void 0&&ro(0,0,r,e,o)}function oo(e,t){let n=document.createElement(t);return n.appendChild(e),n}var so=class e extends Ya{static getType(){return`text`}static clone(t){return new e(t.__text,t.__key)}afterCloneFrom(e){super.afterCloneFrom(e),this.__text=e.__text,this.__format=e.__format,this.__style=e.__style,this.__mode=e.__mode,this.__detail=e.__detail}constructor(e=``,t){super(t),this.__text=e,this.__format=0,this.__style=``,this.__mode=0,this.__detail=0}getFormat(){return this.getLatest().__format}getDetail(){return this.getLatest().__detail}getMode(){return br[this.getLatest().__mode]}getStyle(){return this.getLatest().__style}isToken(){return this.getLatest().__mode===1}isComposing(){return this.__key===hc()}isSegmented(){return this.getLatest().__mode===2}isDirectionless(){return!!(1&this.getLatest().__detail)}isUnmergeable(){return!!(2&this.getLatest().__detail)}hasFormat(e){let t=hr[e];return!!(this.getFormat()&t)}isSimpleText(){return this.__type===`text`&&this.__mode===0}getTextContent(){return this.getLatest().__text}getFormatFlags(e,t){return lc(this.getLatest().__format,e,t)}canHaveFormat(){return!0}isInline(){return!0}createDOM(e,t){let n=this.__format,r=to(0,n),i=no(0,n),a=r===null?i:r,o=document.createElement(a),s=o;this.hasFormat(`code`)&&o.setAttribute(`spellcheck`,`false`),r!==null&&(s=document.createElement(i),o.appendChild(s)),ao(s,this,0,n,this.__text,e);let c=this.__style;return c!==``&&(o.style.cssText=c),o}updateDOM(e,t,n){let r=this.__text,i=e.__format,a=this.__format,o=to(0,i),s=to(0,a),c=no(0,i),l=no(0,a);if((o===null?c:o)!==(s===null?l:s))return!0;if(o===s&&c!==l){let e=t.firstChild;e??z(48);let i=document.createElement(l);return ao(i,this,0,a,r,n),t.replaceChild(i,e),!1}let u=t;s!==null&&o!==null&&(u=t.firstChild,u??z(49)),io(r,u,this);let d=n.theme.text;d!==void 0&&i!==a&&ro(0,i,a,u,d);let f=e.__style,p=this.__style;return f!==p&&(t.style.cssText=p),!1}static importDOM(){return{"#text":()=>({conversion:po,priority:0}),b:()=>({conversion:lo,priority:0}),code:()=>({conversion:go,priority:0}),em:()=>({conversion:go,priority:0}),i:()=>({conversion:go,priority:0}),mark:()=>({conversion:go,priority:0}),s:()=>({conversion:go,priority:0}),span:()=>({conversion:co,priority:0}),strong:()=>({conversion:go,priority:0}),sub:()=>({conversion:go,priority:0}),sup:()=>({conversion:go,priority:0}),u:()=>({conversion:go,priority:0})}}static importJSON(e){return _o().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setTextContent(e.text).setFormat(e.format).setDetail(e.detail).setMode(e.mode).setStyle(e.style)}exportDOM(e){let{element:t}=super.exportDOM(e);return fl(t)||z(132),t.style.whiteSpace=`pre-wrap`,this.hasFormat(`lowercase`)?t.style.textTransform=`lowercase`:this.hasFormat(`uppercase`)?t.style.textTransform=`uppercase`:this.hasFormat(`capitalize`)&&(t.style.textTransform=`capitalize`),this.hasFormat(`bold`)&&(t=oo(t,`b`)),this.hasFormat(`italic`)&&(t=oo(t,`i`)),this.hasFormat(`strikethrough`)&&(t=oo(t,`s`)),this.hasFormat(`underline`)&&(t=oo(t,`u`)),{element:t}}exportJSON(){return{detail:this.getDetail(),format:this.getFormat(),mode:this.getMode(),style:this.getStyle(),text:this.getTextContent(),...super.exportJSON()}}selectionTransform(e,t){}setFormat(e){let t=this.getWritable();return t.__format=typeof e==`string`?hr[e]:e,t}setDetail(e){let t=this.getWritable();return t.__detail=typeof e==`string`?gr[e]:e,t}setStyle(e){let t=this.getWritable();return t.__style=e,t}toggleFormat(e){let t=lc(this.getFormat(),e,null);return this.setFormat(t)}toggleDirectionless(){let e=this.getWritable();return e.__detail^=1,e}toggleUnmergeable(){let e=this.getWritable();return e.__detail^=2,e}setMode(e){let t=yr[e];if(this.__mode===t)return this;let n=this.getWritable();return n.__mode=t,n}setTextContent(e){if(this.__text===e)return this;let t=this.getWritable();return t.__text=e,t}select(e,t){ss();let n=e,r=t,i=U(),a=this.getTextContent(),o=this.__key;if(typeof a==`string`){let e=a.length;n===void 0&&(n=e),r===void 0&&(r=e)}else n=0,r=0;if(!H(i))return zo(o,n,o,r,`text`,`text`);{let e=hc();e!==i.anchor.key&&e!==i.focus.key||mc(o),i.setTextNodeRange(this,n,this,r)}return i}selectStart(){return this.select(0,0)}selectEnd(){let e=this.getTextContentSize();return this.select(e,e)}spliceText(e,t,n,r){let i=this.getWritable(),a=i.__text,o=n.length,s=e;s<0&&(s=o+s,s<0&&(s=0));let c=U();if(r&&H(c)){let t=e+o;c.setTextNodeRange(i,t,i,t)}return i.__text=a.slice(0,s)+n+a.slice(s+t),i}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}splitText(...e){ss();let t=this.getLatest(),n=t.getTextContent();if(n===``)return[];let r=t.__key,i=hc(),a=n.length;e.sort(((e,t)=>e-t)),e.push(a);let o=[],s=e.length;for(let t=0,r=0;t<a&&r<=s;r++){let i=e[r];i>t&&(o.push(n.slice(t,i)),t=i)}let c=o.length;if(c===1)return[t];let l=o[0],u=t.getParent(),d,f=t.getFormat(),p=t.getStyle(),m=t.__detail,h=!1,g=null,_=null,v=U();if(H(v)){let[e,t]=v.isBackward()?[v.focus,v.anchor]:[v.anchor,v.focus];e.type===`text`&&e.key===r&&(g=e),t.type===`text`&&t.key===r&&(_=t)}t.isSegmented()?(d=_o(l),d.__format=f,d.__style=p,d.__detail=m,d.__state=Vr(t,d),h=!0):d=t.setTextContent(l);let y=[d];for(let e=1;e<c;e++){let n=_o(o[e]);n.__format=f,n.__style=p,n.__detail=m,n.__state=Vr(t,n);let a=n.__key;i===r&&mc(a),y.push(n)}let b=g?g.offset:null,x=_?_.offset:null,S=0;for(let e of y){if(!g&&!_)break;let t=S+e.getTextContentSize();if(g!==null&&b!==null&&b<=t&&b>=S&&(g.set(e.getKey(),b-S,`text`),b<t&&(g=null)),_!==null&&x!==null&&x<=t&&x>=S){_.set(e.getKey(),x-S,`text`);break}S=t}if(u!==null){(function(e){let t=e.getPreviousSibling(),n=e.getNextSibling();t!==null&&pc(t),n!==null&&pc(n)})(this);let e=u.getWritable(),t=this.getIndexWithinParent();h?(e.splice(t,0,y),this.remove()):e.splice(t,1,y),H(v)&&Wo(v,u,t,c-1)}return y}mergeWithSibling(e){let t=e===this.getPreviousSibling();t||e===this.getNextSibling()||z(50);let n=this.__key,r=e.__key,i=this.__text,a=i.length;hc()===r&&mc(n);let o=U();if(H(o)){let i=o.anchor,s=o.focus;i!==null&&i.key===r&&qo(i,t,n,e,a),s!==null&&s.key===r&&qo(s,t,n,e,a)}let s=e.__text,c=t?s+i:i+s;this.setTextContent(c);let l=this.getWritable();return e.remove(),l}isTextEntity(){return!1}};function co(e){return{forChild:vo(e.style),node:null}}function lo(e){let t=e,n=t.style.fontWeight===`normal`;return{forChild:vo(t.style,n?void 0:`bold`),node:null}}var uo=new WeakMap;function fo(e){if(!fl(e))return!1;if(e.nodeName===`PRE`)return!0;let t=e.style.whiteSpace;return typeof t==`string`&&t.startsWith(`pre`)}function po(e){let t=e;e.parentElement===null&&z(129);let n=t.textContent||``;if(function(e){let t,n=e.parentNode,r=[e];for(;n!==null&&(t=uo.get(n))===void 0&&!fo(n);)r.push(n),n=n.parentNode;let i=t===void 0?n:t;for(let e=0;e<r.length;e++)uo.set(r[e],i);return i}(t)!==null){let e=n.split(/(\r?\n|\t)/),t=[],r=e.length;for(let n=0;n<r;n++){let r=e[n];r===`
|
|
17
|
-
`||r===`\r
|
|
18
|
-
`?t.push(Qa()):r===` `?t.push(bo()):r!==``&&t.push(_o(r))}return{node:t}}if(n=n.replace(/\r/g,``).replace(/[ \t\n]+/g,` `),n===``)return{node:null};if(n[0]===` `){let e=t,r=!0;for(;e!==null&&(e=mo(e,!1))!==null;){let t=e.textContent||``;if(t.length>0){/[ \t\n]$/.test(t)&&(n=n.slice(1)),r=!1;break}}r&&(n=n.slice(1))}if(n[n.length-1]===` `){let e=t,r=!0;for(;e!==null&&(e=mo(e,!0))!==null;)if((e.textContent||``).replace(/^( |\t|\r?\n)+/,``).length>0){r=!1;break}r&&(n=n.slice(0,n.length-1))}return n===``?{node:null}:{node:_o(n)}}function mo(e,t){let n=e;for(;;){let e;for(;(e=t?n.nextSibling:n.previousSibling)===null;){let e=n.parentElement;if(e===null)return null;n=e}if(n=e,fl(n)){let e=n.style.display;if(e===``&&!hl(n)||e!==``&&!e.startsWith(`inline`))return null}let r=n;for(;(r=t?n.firstChild:n.lastChild)!==null;)n=r;if(oc(n))return n;if(n.nodeName===`BR`)return null}}var ho={code:`code`,em:`italic`,i:`italic`,mark:`highlight`,s:`strikethrough`,strong:`bold`,sub:`subscript`,sup:`superscript`,u:`underline`};function go(e){let t=ho[e.nodeName.toLowerCase()];return t===void 0?{node:null}:{forChild:vo(e.style,t),node:null}}function _o(e=``){return il(new so(e))}function V(e){return e instanceof so}function vo(e,t){let n=e.fontWeight,r=e.textDecoration.split(` `),i=n===`700`||n===`bold`,a=r.includes(`line-through`),o=e.fontStyle===`italic`,s=r.includes(`underline`),c=e.verticalAlign;return e=>V(e)?(i&&!e.hasFormat(`bold`)&&e.toggleFormat(`bold`),a&&!e.hasFormat(`strikethrough`)&&e.toggleFormat(`strikethrough`),o&&!e.hasFormat(`italic`)&&e.toggleFormat(`italic`),s&&!e.hasFormat(`underline`)&&e.toggleFormat(`underline`),c!==`sub`||e.hasFormat(`subscript`)||e.toggleFormat(`subscript`),c!==`super`||e.hasFormat(`superscript`)||e.toggleFormat(`superscript`),t&&!e.hasFormat(t)&&e.toggleFormat(t),e):e}var yo=class e extends so{static getType(){return`tab`}static clone(t){return new e(t.__key)}constructor(e){super(` `,e),this.__detail=2}static importDOM(){return null}createDOM(e){let t=super.createDOM(e),n=Vc(e.theme,`tab`);return n!==void 0&&t.classList.add(...n),t}static importJSON(e){return bo().updateFromJSON(e)}setTextContent(e){return e!==` `&&e!==``&&z(126),super.setTextContent(` `)}spliceText(e,t,n,r){return n===``&&t===0||n===` `&&t===1||z(286),this}setDetail(e){return e!==2&&z(127),this}setMode(e){return e!==`normal`&&z(128),this}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}};function bo(){return il(new yo)}function xo(e){return e instanceof yo}var So=class{constructor(e,t,n){this._selection=null,this.key=e,this.offset=t,this.type=n}is(e){return this.key===e.key&&this.offset===e.offset&&this.type===e.type}isBefore(e){return this.key===e.key?this.offset<e.offset:nu(gu(su(this,`next`)),gu(su(e,`next`)))<0}getNode(){let e=gc(this.key);return e===null&&z(20),e}set(e,t,n,r){let i=this._selection,a=this.key;r&&this.key===e&&this.offset===t&&this.type===n||(this.key=e,this.offset=t,this.type=n,os()||(hc()===a&&mc(e),i!==null&&(i.setCachedNodes(null),i.dirty=!0)))}};function Co(e,t,n){return new So(e,t,n)}function wo(e,t){let n=t.__key,r=e.offset,i=`element`;if(V(t)){i=`text`;let e=t.getTextContentSize();r>e&&(r=e)}else if(!W(t)){let e=t.getNextSibling();if(V(e))n=e.__key,r=0,i=`text`;else{let e=t.getParent();e&&(n=e.__key,r=t.getIndexWithinParent()+1)}}e.set(n,r,i)}function To(e,t){if(W(t)){let n=t.getLastDescendant();W(n)||V(n)?wo(e,n):wo(e,t)}else wo(e,t)}var Eo=class e{constructor(e){this._cachedNodes=null,this._nodes=e,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){if(!Oo(e))return!1;let t=this._nodes,n=e._nodes;return t.size===n.size&&Array.from(t).every((e=>n.has(e)))}isCollapsed(){return!1}isBackward(){return!1}getStartEndPoints(){return null}add(e){this.dirty=!0,this._nodes.add(e),this._cachedNodes=null}delete(e){this.dirty=!0,this._nodes.delete(e),this._cachedNodes=null}clear(){this.dirty=!0,this._nodes.clear(),this._cachedNodes=null}has(e){return this._nodes.has(e)}clone(){return new e(new Set(this._nodes))}extract(){return this.getNodes()}insertRawText(e){}insertText(){}insertNodes(e){let t=this.getNodes(),n=t.length,r=t[n-1],i;if(V(r))i=r.select();else{let e=r.getIndexWithinParent()+1;i=r.getParentOrThrow().select(e,e)}i.insertNodes(e);for(let e=0;e<n;e++)t[e].remove()}getNodes(){let e=this._cachedNodes;if(e!==null)return e;let t=this._nodes,n=[];for(let e of t){let t=gc(e);t!==null&&n.push(t)}return os()||(this._cachedNodes=n),n}getTextContent(){let e=this.getNodes(),t=``;for(let n=0;n<e.length;n++)t+=e[n].getTextContent();return t}deleteNodes(){let e=this.getNodes();if((U()||Uo())===this&&e[0]){let t=Ul(e[0],`next`);lu(eu(t,t))}for(let t of e)t.remove()}};function H(e){return e instanceof Do}var Do=class e{constructor(e,t,n,r){this.anchor=e,this.focus=t,e._selection=this,t._selection=this,this._cachedNodes=null,this.format=n,this.style=r,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){return!!H(e)&&this.anchor.is(e.anchor)&&this.focus.is(e.focus)&&this.format===e.format&&this.style===e.style}isCollapsed(){return this.anchor.is(this.focus)}getNodes(){let e=this._cachedNodes;if(e!==null)return e;let t=function(e){let t=[],[n,r]=e.getTextSlices();n&&t.push(n.caret.origin);let i=new Set,a=new Set;for(let n of e)if(zl(n)){let{origin:e}=n;t.length===0?i.add(e):(a.add(e),t.push(e))}else{let{origin:e}=n;W(e)&&a.has(e)||t.push(e)}if(r&&t.push(r.caret.origin),Rl(e.focus)&&W(e.focus.origin)&&e.focus.getNodeAtCaret()===null)for(let n=ql(e.focus.origin,`previous`);zl(n)&&i.has(n.origin)&&!n.origin.isEmpty()&&n.origin.is(t[t.length-1]);n=Yl(n))i.delete(n.origin),t.pop();for(;t.length>1;){let e=t[t.length-1];if(!W(e)||a.has(e)||e.isEmpty()||i.has(e))break;t.pop()}if(t.length===0&&e.isCollapsed()){let n=gu(e.anchor),r=gu(e.anchor.getFlipped()),i=e=>Ll(e)?e.origin:e.getNodeAtCaret(),a=i(n)||i(r)||(e.anchor.getNodeAtCaret()?n.origin:r.origin);t.push(a)}return t}(yu(du(this),`next`));return os()||(this._cachedNodes=t),t}setTextNodeRange(e,t,n,r){this.anchor.set(e.__key,t,`text`),this.focus.set(n.__key,r,`text`)}getTextContent(){let e=this.getNodes();if(e.length===0)return``;let t=e[0],n=e[e.length-1],r=this.anchor,i=this.focus,a=r.isBefore(i),[o,s]=Ao(this),c=``,l=!0;for(let u=0;u<e.length;u++){let d=e[u];if(W(d)&&!d.isInline())l||(c+=`
|
|
19
|
-
`),l=!d.isEmpty();else if(l=!1,V(d)){let e=d.getTextContent();d===t?d===n?r.type===`element`&&i.type===`element`&&i.offset!==r.offset||(e=o<s?e.slice(o,s):e.slice(s,o)):e=a?e.slice(o):e.slice(s):d===n&&(e=a?e.slice(0,s):e.slice(0,o)),c+=e}else !ks(d)&&!$a(d)||d===n&&this.isCollapsed()||(c+=d.getTextContent())}return c}applyDOMRange(e){let t=us(),n=t.getEditorState()._selection,r=Lo(e.startContainer,e.startOffset,e.endContainer,e.endOffset,t,n);if(r===null)return;let[i,a]=r;this.anchor.set(i.key,i.offset,i.type,!0),this.focus.set(a.key,a.offset,a.type,!0),Gr(this)}clone(){let t=this.anchor,n=this.focus;return new e(Co(t.key,t.offset,t.type),Co(n.key,n.offset,n.type),this.format,this.style)}toggleFormat(e){this.format=lc(this.format,e,null),this.dirty=!0}setFormat(e){this.format=e,this.dirty=!0}setStyle(e){this.style=e,this.dirty=!0}hasFormat(e){let t=hr[e];return!!(this.format&t)}insertRawText(e){let t=e.split(/(\r?\n|\t)/),n=[],r=t.length;for(let e=0;e<r;e++){let r=t[e];r===`
|
|
20
|
-
`||r===`\r
|
|
21
|
-
`?n.push(Qa()):r===` `?n.push(bo()):n.push(_o(r))}this.insertNodes(n)}insertText(e){let t=this.anchor,n=this.focus,r=this.format,i=this.style,a=t,o=n;!this.isCollapsed()&&n.isBefore(t)&&(a=n,o=t),a.type===`element`&&function(e,t,n,r){let i=e.getNode(),a=i.getChildAtIndex(e.offset),o=_o();if(o.setFormat(n),o.setStyle(r),Hs(a))a.splice(0,0,[o]);else{let e=js(i)?Vs().append(o):o;a===null?i.append(e):a.insertBefore(e)}e.is(t)&&t.set(o.__key,0,`text`),e.set(o.__key,0,`text`)}(a,o,r,i),o.type===`element`&&cu(o,gu(su(o,`next`)));let s=a.offset,c=o.offset,l=this.getNodes(),u=l.length,d=l[0];V(d)||z(26);let f=d.getTextContent().length,p=d.getParentOrThrow(),m=l[u-1];if(u===1&&o.type===`element`&&(c=f,o.set(a.key,c,`text`)),this.isCollapsed()&&s===f&&(ac(d)||!d.canInsertTextAfter()||!p.canInsertTextAfter()&&d.getNextSibling()===null)){let t=d.getNextSibling();if(V(t)&&t.canInsertTextBefore()&&!ac(t)||(t=_o(),t.setFormat(r),t.setStyle(i),p.canInsertTextAfter()?d.insertAfter(t):p.insertAfter(t)),t.select(0,0),d=t,e!==``)return void this.insertText(e)}else if(this.isCollapsed()&&s===0&&(ac(d)||!d.canInsertTextBefore()||!p.canInsertTextBefore()&&d.getPreviousSibling()===null)){let t=d.getPreviousSibling();if(V(t)&&!ac(t)||(t=_o(),t.setFormat(r),p.canInsertTextBefore()?d.insertBefore(t):p.insertBefore(t)),t.select(),d=t,e!==``)return void this.insertText(e)}else if(d.isSegmented()&&s!==f){let e=_o(d.getTextContent());e.setFormat(r),d.replace(e),d=e}else if(!this.isCollapsed()&&e!==``){let t=m.getParent();if(!p.canInsertTextBefore()||!p.canInsertTextAfter()||W(t)&&(!t.canInsertTextBefore()||!t.canInsertTextAfter()))return this.insertText(``),Io(this.anchor,this.focus,null),void this.insertText(e)}if(u===1){if(ic(d)){let t=_o(e);t.select(),d.replace(t);return}let t=d.getFormat(),n=d.getStyle();if(s!==c||t===r&&n===i){if(xo(d)){let t=_o(e);t.setFormat(r),t.setStyle(i),t.select(),d.replace(t);return}}else{if(d.getTextContent()!==``){let t=_o(e);if(t.setFormat(r),t.setStyle(i),t.select(),s===0)d.insertBefore(t,!1);else{let[e]=d.splitText(s);e.insertAfter(t,!1)}t.isComposing()&&this.anchor.type===`text`&&(this.anchor.offset-=e.length);return}d.setFormat(r),d.setStyle(i)}let a=c-s;d=d.spliceText(s,a,e,!0),d.getTextContent()===``?d.remove():this.anchor.type===`text`&&(d.isComposing()?this.anchor.offset-=e.length:(this.format=t,this.style=n))}else{let t=new Set([...d.getParentKeys(),...m.getParentKeys()]),n=W(d)?d:d.getParentOrThrow(),r=W(m)?m:m.getParentOrThrow(),i=m;if(!n.is(r)&&r.isInline())do i=r,r=r.getParentOrThrow();while(r.isInline());if(o.type===`text`&&(c!==0||m.getTextContent()===``)||o.type===`element`&&m.getIndexWithinParent()<c)if(V(m)&&!ic(m)&&c!==m.getTextContentSize()){if(m.isSegmented()){let e=_o(m.getTextContent());m.replace(e),m=e}js(o.getNode())||o.type!==`text`||(m=m.spliceText(0,c,``)),t.add(m.__key)}else{let e=m.getParentOrThrow();e.canBeEmpty()||e.getChildrenSize()!==1?m.remove():e.remove()}else t.add(m.__key);let a=r.getChildren(),p=new Set(l),h=n.is(r),g=n.isInline()&&d.getNextSibling()===null?n:d;for(let e=a.length-1;e>=0;e--){let t=a[e];if(t.is(d)||W(t)&&t.isParentOf(d))break;t.isAttached()&&(!p.has(t)||t.is(i)?h||g.insertAfter(t,!1):t.remove())}if(!h){let e=r,n=null;for(;e!==null;){let r=e.getChildren(),i=r.length;(i===0||r[i-1].is(n))&&(t.delete(e.__key),n=e),e=e.getParent()}}if(ic(d))if(s===f)d.select();else{let t=_o(e);t.select(),d.replace(t)}else d=d.spliceText(s,f-s,e,!0),d.getTextContent()===``?d.remove():d.isComposing()&&this.anchor.type===`text`&&(this.anchor.offset-=e.length);for(let e=1;e<u;e++){let n=l[e],r=n.__key;t.has(r)||n.remove()}}}removeText(){let e=U()===this;uu(this,hu(du(this))),e&&U()!==this&&wc(this)}formatText(e,t=null){if(this.isCollapsed())return this.toggleFormat(e),void mc(null);let n=this.getNodes(),r=[];for(let e of n)V(e)&&r.push(e);let i=t=>{n.forEach((n=>{if(W(n)){let r=n.getFormatFlags(e,t);n.setTextFormat(r)}}))},a=r.length;if(a===0)return this.toggleFormat(e),mc(null),void i(t);let o=this.anchor,s=this.focus,c=this.isBackward(),l=c?s:o,u=c?o:s,d=0,f=r[0],p=l.type===`element`?0:l.offset;if(l.type===`text`&&p===f.getTextContentSize()&&(d=1,f=r[1],p=0),f==null)return;let m=f.getFormatFlags(e,t);i(m);let h=a-1,g=r[h],_=u.type===`text`?u.offset:g.getTextContentSize();if(f.is(g)){if(p===_)return;if(ac(f)||p===0&&_===f.getTextContentSize())f.setFormat(m);else{let e=f.splitText(p,_),t=p===0?e[0]:e[1];t.setFormat(m),l.type===`text`&&l.set(t.__key,0,`text`),u.type===`text`&&u.set(t.__key,_-p,`text`)}this.format=m;return}p===0||ac(f)||([,f]=f.splitText(p),p=0),f.setFormat(m);let v=g.getFormatFlags(e,m);_>0&&(_===g.getTextContentSize()||ac(g)||([g]=g.splitText(_)),g.setFormat(v));for(let t=d+1;t<h;t++){let n=r[t],i=n.getFormatFlags(e,v);n.setFormat(i)}l.type===`text`&&l.set(f.__key,p,`text`),u.type===`text`&&u.set(g.__key,_,`text`),this.format=m|v}insertNodes(e){if(e.length===0)return;if(this.isCollapsed()||this.removeText(),this.anchor.key===`root`){this.insertParagraph();let t=U();return H(t)||z(134),t.insertNodes(e)}let t=(this.isBackward()?this.focus:this.anchor).getNode(),n=vl(t,_l),r=e[e.length-1];if(W(n)&&`__language`in n){if(`__language`in e[0])this.insertText(e[0].getTextContent());else{let t=Zo(this);n.splice(t,0,e),r.selectEnd()}return}if(!e.some((e=>(W(e)||ks(e))&&!e.isInline()))){W(n)||z(211,t.constructor.name,t.getType());let i=Zo(this);n.splice(i,0,e),r.selectEnd();return}let i=function(e){let t=Vs(),n=null;for(let r=0;r<e.length;r++){let i=e[r],a=$a(i);if(a||ks(i)&&i.isInline()||W(i)&&i.isInline()||V(i)||i.isParentRequired()){if(n===null&&(n=i.createParentElementNode(),t.append(n),a))continue;n!==null&&n.append(i)}else t.append(i),n=null}return t}(e),a=i.getLastDescendant(),o=i.getChildren(),s=!W(n)||!n.isEmpty()?this.insertParagraph():null,c=o[o.length-1],l=o[0];var u;W(u=l)&&_l(u)&&!u.isEmpty()&&W(n)&&(!n.isEmpty()||n.canMergeWhenEmpty())&&(W(n)||z(211,t.constructor.name,t.getType()),n.append(...l.getChildren()),l=o[1]),l&&(n===null&&z(212,t.constructor.name,t.getType()),function(e,t,n){let r=t.getParentOrThrow().getLastChild(),i=t,a=[t];for(;i!==r;)i.getNextSibling()||z(140),i=i.getNextSibling(),a.push(i);let o=e;for(let e of a)o=o.insertAfter(e)}(n,l));let d=vl(a,_l);s&&W(d)&&(s.canMergeWhenEmpty()||_l(c))&&(d.append(...s.getChildren()),s.remove()),W(n)&&n.isEmpty()&&n.remove(),a.selectEnd();let f=W(n)?n.getLastChild():null;$a(f)&&d!==n&&f.remove()}insertParagraph(){if(this.anchor.key===`root`){let e=Vs();return Sc().splice(this.anchor.offset,0,[e]),e.select(),e}let e=Zo(this),t=vl(this.anchor.getNode(),_l);W(t)||z(213);let n=t.getChildAtIndex(e),r=n?[n,...n.getNextSiblings()]:[],i=t.insertNewAfter(this,!1);return i?(i.append(...r),i.selectStart(),i):null}insertLineBreak(e){let t=Qa();if(this.insertNodes([t]),e){let e=t.getParentOrThrow(),n=t.getIndexWithinParent();e.select(n,n)}}extract(){let e=this.getNodes(),t=e.length,n=t-1,r=this.anchor,i=this.focus,a=e[0],o=e[n],[s,c]=Ao(this);if(t===0)return[];if(t===1){if(V(a)&&!this.isCollapsed()){let e=s>c?c:s,t=s>c?s:c,n=a.splitText(e,t),r=e===0?n[0]:n[1];return r==null?[]:[r]}return[a]}let l=r.isBefore(i);if(V(a)){let t=l?s:c;t===a.getTextContentSize()?e.shift():t!==0&&([,a]=a.splitText(t),e[0]=a)}if(V(o)){let t=o.getTextContent().length,r=l?c:s;r===0?e.pop():r!==t&&([o]=o.splitText(r),e[n]=o)}return e}modify(e,t,n){if($o(this,e,t,n))return;let r=e===`move`,i=us(),a=ll(el(i));if(!a)return;let o=i._blockCursorElement,s=i._rootElement,c=this.focus.getNode();if(s===null||o===null||!W(c)||c.isInline()||c.canBeEmpty()||cl(o,i,s),this.dirty){let e=qc(i,this.anchor.key),t=qc(i,this.focus.key);this.anchor.type===`text`&&(e=cc(e)),this.focus.type===`text`&&(t=cc(t)),e&&t&&Jo(a,e,this.anchor.offset,t,this.focus.offset)}if(function(e,t,n,r){e.modify(t,n,r)}(a,e,t?`backward`:`forward`,n),a.rangeCount>0){let e=a.getRangeAt(0),n=this.anchor.getNode(),i=js(n)?n:tl(n);if(this.applyDOMRange(e),this.dirty=!0,!r){let n=this.getNodes(),r=[],o=!1;for(let e=0;e<n.length;e++){let t=n[e];Qc(t,i)?r.push(t):o=!0}if(o&&r.length>0)if(t){let e=r[0];W(e)?e.selectStart():e.getParentOrThrow().selectStart()}else{let e=r[r.length-1];W(e)?e.selectEnd():e.getParentOrThrow().selectEnd()}a.anchorNode===e.startContainer&&a.anchorOffset===e.startOffset||function(e){let t=e.focus,n=e.anchor,r=n.key,i=n.offset,a=n.type;n.set(t.key,t.offset,t.type,!0),t.set(r,i,a,!0)}(this)}}n===`lineboundary`&&$o(this,e,t,n,`decorators`)}forwardDeletion(e,t,n){if(!n&&(e.type===`element`&&W(t)&&e.offset===t.getChildrenSize()||e.type===`text`&&e.offset===t.getTextContentSize())){let e=t.getParent(),n=t.getNextSibling()||(e===null?null:e.getNextSibling());if(W(n)&&n.isShadowRoot())return!0}return!1}deleteCharacter(e){let t=this.isCollapsed();if(this.isCollapsed()){let t=this.anchor,n=t.getNode();if(this.forwardDeletion(t,n,e))return;let r=Ql(su(t,e?`previous`:`next`));if(r.getTextSlices().every((e=>e===null||e.distance===0))){let e={type:`initial`};for(let t of r.iterNodeCarets(`shadowRoot`))if(zl(t)){if(!t.origin.isInline()){if(t.origin.isShadowRoot()){if(e.type===`merge-block`)break;if(W(r.anchor.origin)&&r.anchor.origin.isEmpty()){let e=gu(t);uu(this,eu(e,e)),r.anchor.origin.remove()}return}e.type!==`merge-next-block`&&e.type!==`merge-block`||(e={block:e.block,caret:t,type:`merge-block`})}}else{if(e.type===`merge-block`)break;if(Rl(t)){if(W(t.origin)){if(t.origin.isInline()){if(!t.origin.isParentOf(r.anchor.origin))break}else e={block:t.origin,type:`merge-next-block`};continue}if(ks(t.origin)){if(!t.origin.isIsolated())if(e.type===`merge-next-block`&&(t.origin.isKeyboardSelectable()||!t.origin.isInline())&&W(r.anchor.origin)&&r.anchor.origin.isEmpty()){r.anchor.origin.remove();let e=Vo();e.add(t.origin.getKey()),wc(e)}else t.origin.remove();return}break}}if(e.type===`merge-block`){let{caret:t,block:n}=e;return uu(this,eu(!t.origin.isEmpty()&&n.isEmpty()?fu(Ul(n,t.direction)):r.anchor,t)),this.removeText()}}let i=this.focus;if(this.modify(`extend`,e,`character`),this.isCollapsed()){if(e&&t.offset===0&&jo(this,t.getNode()))return}else{let r=i.type===`text`?i.getNode():null;if(n=t.type===`text`?t.getNode():null,r!==null&&r.isSegmented()){let t=i.offset,a=r.getTextContentSize();if(r.is(n)||e&&t!==a||!e&&t!==0)return void No(r,e,t)}else if(n!==null&&n.isSegmented()){let i=t.offset,a=n.getTextContentSize();if(n.is(r)||e&&i!==0||!e&&i!==a)return void No(n,e,i)}(function(e,t){let n=e.anchor,r=e.focus,i=n.getNode();if(i===r.getNode()&&n.type===`text`&&r.type===`text`){let e=n.offset,a=r.offset,o=e<a,s=o?e:a,c=o?a:e,l=c-1;s!==l&&(function(e){return!(Ec(e)||Mo(e))})(i.getTextContent().slice(s,c))&&(t?r.set(r.key,l,r.type):n.set(n.key,l,n.type))}})(this,e)}}if(this.removeText(),e&&!t&&this.isCollapsed()&&this.anchor.type===`element`&&this.anchor.offset===0){let e=this.anchor.getNode();e.isEmpty()&&js(e.getParent())&&e.getPreviousSibling()===null&&jo(this,e)}}deleteLine(e){this.isCollapsed()&&this.modify(`extend`,e,`lineboundary`),this.isCollapsed()?this.deleteCharacter(e):this.removeText()}deleteWord(e){if(this.isCollapsed()){let t=this.anchor,n=t.getNode();if(this.forwardDeletion(t,n,e))return;this.modify(`extend`,e,`word`)}this.removeText()}isBackward(){return this.focus.isBefore(this.anchor)}getStartEndPoints(){return[this.anchor,this.focus]}};function Oo(e){return e instanceof Eo}function ko(e){let t=e.offset;if(e.type===`text`)return t;let n=e.getNode();return t===n.getChildrenSize()?n.getTextContent().length:0}function Ao(e){let t=e.getStartEndPoints();if(t===null)return[0,0];let[n,r]=t;return n.type===`element`&&r.type===`element`&&n.key===r.key&&n.offset===r.offset?[0,0]:[ko(n),ko(r)]}function jo(e,t){for(let n=t;n;n=n.getParent()){if(W(n)){if(n.collapseAtStart(e))return!0;if(nl(n))break}if(n.getPreviousSibling())break}return!1}var Mo=(()=>{try{let e=RegExp(`\\p{Emoji}`,`u`),t=e.test.bind(e);if(t(`❤️`)&&t(`#️⃣`)&&t(`👍`))return t}catch{}return()=>!1})();function No(e,t,n){let r=e,i=r.getTextContent().split(/(?=\s)/g),a=i.length,o=0,s=0;for(let e=0;e<a;e++){let r=e===a-1;if(s=o,o+=i[e].length,t&&o===n||o>n||r){i.splice(e,1),r&&(s=void 0);break}}let c=i.join(``).trim();c===``?r.remove():(r.setTextContent(c),r.select(s,s))}function Po(e,t,n,r){let i,a=t;if(fl(e)){let o=!1,s=e.childNodes,c=s.length,l=r._blockCursorElement;a===c&&(o=!0,a=c-1);let u=s[a],d=!1;if(u===l)u=s[a+1],d=!0;else if(l!==null){let n=l.parentNode;e===n&&t>Array.prototype.indexOf.call(n.children,l)&&a--}if(i=Tc(u),V(i))a=Gl(i,o?`next`:`previous`);else{let s=Tc(e);if(s===null)return null;if(W(s)){let c=r.getElementByKey(s.getKey());c===null&&z(214);let l=s.getDOMSlot(c);[s,a]=l.resolveChildIndex(s,c,e,t),W(s)||z(215),o&&a>=s.getChildrenSize()&&(a=Math.max(0,s.getChildrenSize()-1));let u=s.getChildAtIndex(a);if(W(u)&&function(e,t,n){let r=e.getParent();return n===null||r===null||!r.canBeEmpty()||r!==n.getNode()}(u,0,n)){let e=o?u.getLastDescendant():u.getFirstDescendant();e===null?s=u:(u=e,s=W(u)?u:u.getParentOrThrow()),a=0}V(u)?(i=u,s=null,a=Gl(u,o?`next`:`previous`)):u!==s&&o&&!d&&(W(s)||z(216),a=Math.min(s.getChildrenSize(),a+1))}else{let n=s.getIndexWithinParent();a=t===0&&ks(s)&&Tc(e)===s?n:n+1,s=s.getParentOrThrow()}if(W(s))return Co(s.__key,a,`element`)}}else i=Tc(e);return V(i)?Co(i.__key,Gl(i,a,`clamp`),`text`):null}function Fo(e,t,n){let r=e.offset,i=e.getNode();if(r===0){let r=i.getPreviousSibling(),a=i.getParent();if(t){if((n||!t)&&r===null&&W(a)&&a.isInline()){let t=a.getPreviousSibling();V(t)&&e.set(t.__key,t.getTextContent().length,`text`)}}else W(r)&&!n&&r.isInline()?e.set(r.__key,r.getChildrenSize(),`element`):V(r)&&e.set(r.__key,r.getTextContent().length,`text`)}else if(r===i.getTextContent().length){let r=i.getNextSibling(),a=i.getParent();if(t&&W(r)&&r.isInline())e.set(r.__key,0,`element`);else if((n||t)&&r===null&&W(a)&&a.isInline()&&!a.canInsertTextAfter()){let t=a.getNextSibling();V(t)&&e.set(t.__key,0,`text`)}}}function Io(e,t,n){if(e.type===`text`&&t.type===`text`){let r=e.isBefore(t),i=e.is(t);Fo(e,r,i),Fo(t,!r,i),i&&t.set(e.key,e.offset,e.type);let a=us();if(a.isComposing()&&a._compositionKey!==e.key&&H(n)){let r=n.anchor,i=n.focus;e.set(r.key,r.offset,r.type,!0),t.set(i.key,i.offset,i.type,!0)}}}function Lo(e,t,n,r,i,a){if(e===null||n===null||!ec(i,e,n))return null;let o=Po(e,t,H(a)?a.anchor:null,i);if(o===null)return null;let s=Po(n,r,H(a)?a.focus:null,i);if(s===null)return null;if(o.type===`element`&&s.type===`element`){let t=Tc(e),r=Tc(n);if(ks(t)&&ks(r))return null}return Io(o,s,a),[o,s]}function Ro(e){return W(e)&&!e.isInline()}function zo(e,t,n,r,i,a){let o=ls(),s=new Do(Co(e,t,i),Co(n,r,a),0,``);return s.dirty=!0,o._selection=s,s}function Bo(){return new Do(Co(`root`,0,`element`),Co(`root`,0,`element`),0,``)}function Vo(){return new Eo(new Set)}function Ho(e,t,n,r){let i=n._window;if(i===null)return null;let a=r||i.event,o=a?a.type:void 0,s=o===`selectionchange`,c=!wr&&(s||o===`beforeinput`||o===`compositionstart`||o===`compositionend`||o===`click`&&a&&a.detail===3||o===`drop`||o===void 0),l,u,d,f;if(H(e)&&!c)return e.clone();if(t===null)return null;if(l=t.anchorNode,u=t.focusNode,d=t.anchorOffset,f=t.focusOffset,s&&H(e)&&!ec(n,l,u))return e.clone();let p=Lo(l,d,u,f,n,e);if(p===null)return null;let[m,h]=p;return new Do(m,h,H(e)?e.format:0,H(e)?e.style:``)}function U(){return ls()._selection}function Uo(){return us()._editorState._selection}function Wo(e,t,n,r=1){let i=e.anchor,a=e.focus,o=i.getNode(),s=a.getNode();if(!t.is(o)&&!t.is(s))return;let c=t.__key;if(e.isCollapsed()){let t=i.offset;if(n<=t&&r>0||n<t&&r<0){let n=Math.max(0,t+r);i.set(c,n,`element`),a.set(c,n,`element`),Go(e)}}else{let o=e.isBackward(),s=o?a:i,l=s.getNode(),u=o?i:a,d=u.getNode();if(t.is(l)){let e=s.offset;(n<=e&&r>0||n<e&&r<0)&&s.set(c,Math.max(0,e+r),`element`)}if(t.is(d)){let e=u.offset;(n<=e&&r>0||n<e&&r<0)&&u.set(c,Math.max(0,e+r),`element`)}}Go(e)}function Go(e){let t=e.anchor,n=t.offset,r=e.focus,i=r.offset,a=t.getNode(),o=r.getNode();if(e.isCollapsed()){if(!W(a))return;let e=a.getChildrenSize(),i=n>=e,o=i?a.getChildAtIndex(e-1):a.getChildAtIndex(n);if(V(o)){let e=0;i&&(e=o.getTextContentSize()),t.set(o.__key,e,`text`),r.set(o.__key,e,`text`)}}else{if(W(a)){let e=a.getChildrenSize(),r=n>=e,i=r?a.getChildAtIndex(e-1):a.getChildAtIndex(n);if(V(i)){let e=0;r&&(e=i.getTextContentSize()),t.set(i.__key,e,`text`)}}if(W(o)){let e=o.getChildrenSize(),t=i>=e,n=t?o.getChildAtIndex(e-1):o.getChildAtIndex(i);if(V(n)){let e=0;t&&(e=n.getTextContentSize()),r.set(n.__key,e,`text`)}}}}function Ko(e,t,n,r,i){let a=null,o=0,s=null;r===null?i!==null&&(a=i.__key,V(i)?s=`text`:W(i)&&(s=`element`)):(a=r.__key,V(r)?(o=r.getTextContentSize(),s=`text`):W(r)&&(o=r.getChildrenSize(),s=`element`)),a!==null&&s!==null?e.set(a,o,s):(o=t.getIndexWithinParent(),o===-1&&(o=n.getChildrenSize()),e.set(n.__key,o,`element`))}function qo(e,t,n,r,i){e.type===`text`?e.set(n,e.offset+(t?0:i),`text`):e.offset>r.getIndexWithinParent()&&e.set(e.key,e.offset-1,`element`)}function Jo(e,t,n,r,i){try{e.setBaseAndExtent(t,n,r,i)}catch{}}function Yo(e,t,n,r,i,a,o){let s=r.anchorNode,c=r.focusNode,l=r.anchorOffset,u=r.focusOffset,d=document.activeElement;if(i.has(`collaboration`)&&d!==a||d!==null&&$s(d))return;if(!H(t))return void(e!==null&&ec(n,s,c)&&r.removeAllRanges());let f=t.anchor,p=t.focus,m=f.key,h=p.key,g=qc(n,m),_=qc(n,h),v=f.offset,y=p.offset,b=t.format,x=t.style,S=t.isCollapsed(),C=g,w=_,T=!1;if(f.type===`text`){C=cc(g);let e=f.getNode();T=e.getFormat()!==b||e.getStyle()!==x}else H(e)&&e.anchor.type===`text`&&(T=!0);var E,ee,D,O,k;if((p.type===`text`&&(w=cc(_)),C!==null&&w!==null)&&(S&&(e===null||T||H(e)&&(e.format!==b||e.style!==x))&&(E=b,ee=x,D=v,O=m,k=performance.now(),Na=[E,ee,D,O,k]),l!==v||u!==y||s!==C||c!==w||r.type===`Range`&&S||(d!==null&&a.contains(d)||a.focus({preventScroll:!0}),f.type===`element`))){if(Jo(r,C,v,w,y),!i.has(`skip-scroll-into-view`)&&t.isCollapsed()&&a!==null&&a===document.activeElement){let e=H(t)&&t.anchor.type===`element`?C.childNodes[v]||null:r.rangeCount>0?r.getRangeAt(0):null;if(e!==null){let t;if(e instanceof Text){let n=document.createRange();n.selectNode(e),t=n.getBoundingClientRect()}else t=e.getBoundingClientRect();(function(e,t,n){let r=Yc(n),i=$c(r);if(r===null||i===null)return;let{top:a,bottom:o}=t,s=0,c=0,l=n;for(;l!==null;){let t=l===r.body;if(t)s=0,c=el(e).innerHeight;else{let e=l.getBoundingClientRect();s=e.top,c=e.bottom}let n=0;if(a<s?n=-(s-a):o>c&&(n=o-c),n!==0)if(t)i.scrollBy(0,n);else{let e=l.scrollTop;l.scrollTop+=n;let t=l.scrollTop-e;a-=t,o-=t}if(t)break;l=Jc(l)}})(n,t,a)}}Ea=!0}}function Xo(e){let t=U()||Uo();t===null&&(t=Sc().selectEnd()),t.insertNodes(e)}function Zo(e){let t=e;e.isCollapsed()||t.removeText();let n=U();H(n)&&(t=n),H(t)||z(161);let r=t.anchor,i=r.getNode(),a=r.offset;for(;!_l(i);){let e=i;if([i,a]=Qo(i,a),e.is(i))break}return a}function Qo(e,t){let n=e.getParent();if(!n){let e=Vs();return Sc().append(e),e.select(),[Sc(),0]}if(V(e)){let r=e.splitText(t);if(r.length===0)return[n,e.getIndexWithinParent()];let i=t===0?0:1;return[n,r[0].getIndexWithinParent()+i]}if(!W(e)||t===0)return[n,e.getIndexWithinParent()];let r=e.getChildAtIndex(t);if(r){let n=new Do(Co(e.__key,t,`element`),Co(e.__key,t,`element`),0,``),i=e.insertNewAfter(n);i&&i.append(r,...r.getNextSiblings())}return[n,e.getIndexWithinParent()+1]}function $o(e,t,n,r,i=`decorators-and-blocks`){if(t===`move`&&r===`character`&&!e.isCollapsed()){let[t,r]=n===e.isBackward()?[e.focus,e.anchor]:[e.anchor,e.focus];return r.set(t.key,t.offset,t.type),!0}let a=su(e.focus,n?`previous`:`next`),o=r===`lineboundary`,s=t===`move`,c=a,l=i===`decorators-and-blocks`;if(!_u(c)){for(let e of c){l=!1;let{origin:t}=e;if(!ks(t)||t.isIsolated()||(c=e,!o||!t.isInline()))break}if(l)for(let e of Ql(a).iterNodeCarets(t===`extend`?`shadowRoot`:`root`)){if(zl(e))e.origin.isInline()||(c=e);else{if(W(e.origin))continue;ks(e.origin)&&!e.origin.isInline()&&(c=e)}break}}if(c===a)return!1;if(s&&!o&&ks(c.origin)&&c.origin.isKeyboardSelectable()){let e=Vo();return e.add(c.origin.getKey()),wc(e),!0}return c=gu(c),s&&cu(e.anchor,c),cu(e.focus,c),l||!o}var es=null,ts=null,ns=!1,rs=!1,is=0,as={characterData:!0,childList:!0,subtree:!0};function os(){return ns||es!==null&&es._readOnly}function ss(){ns&&z(13)}function cs(){is>99&&z(14)}function ls(){return es===null&&z(195,ds()),es}function us(){return ts===null&&z(196,ds()),ts}function ds(){let e=0,t=new Set,n=Gs.version;if(typeof window<`u`)for(let r of document.querySelectorAll(`[contenteditable]`)){let i=rc(r);if(tc(i))e++;else if(i){let e=String(i.constructor.version||`<0.17.1`);e===n&&(e+=` (separately built, likely a bundler configuration issue)`),t.add(e)}}let r=` Detected on the page: ${e} compatible editor(s) with version ${n}`;return t.size&&(r+=` and incompatible editors with versions ${Array.from(t).join(`, `)}`),r}function fs(){return ts}function ps(e,t,n){let r=t.__type,i=Ys(e,r),a=n.get(r);a===void 0&&(a=Array.from(i.transforms),n.set(r,a));let o=a.length;for(let e=0;e<o&&(a[e](t),t.isAttached());e++);}function ms(e,t){return e!==void 0&&e.__key!==t&&e.isAttached()}function hs(e,t){if(!t)return;let n=e._updateTags,r=t;Array.isArray(t)||(r=[t]);for(let e of r)n.add(e)}function gs(e){return _s(e,us()._nodes)}function _s(e,t){let n=e.type,r=t.get(n);r===void 0&&z(17,n);let i=r.klass;e.type!==i.getType()&&z(18,i.name);let a=i.importJSON(e),o=e.children;if(W(a)&&Array.isArray(o))for(let e=0;e<o.length;e++){let n=_s(o[e],t);a.append(n)}return a}function vs(e,t,n){let r=es,i=ns,a=ts;es=t,ns=!0,ts=e;try{return n()}finally{es=r,ns=i,ts=a}}function ys(e,t){let n=e._pendingEditorState,r=e._rootElement,i=e._headless||r===null;if(n===null)return;let a=e._editorState,o=a._selection,s=n._selection,c=e._dirtyType!==er,l=es,u=ns,d=ts,f=e._updating,p=e._observer,m=null;if(e._pendingEditorState=null,e._editorState=n,!i&&c&&p!==null){ts=e,es=n,ns=!1,e._updating=!0;try{let t=e._dirtyType,r=e._dirtyElements,i=e._dirtyLeaves;p.disconnect(),m=Ti(a,n,e,t,r,i)}catch(t){if(t instanceof Error&&e._onError(t),rs)throw t;Us(e,null,r,n),Nr(e),e._dirtyType=nr,rs=!0,ys(e,a),rs=!1;return}finally{p.observe(r,as),e._updating=f,es=l,ns=u,ts=d}}n._readOnly||=!0;let h=e._dirtyLeaves,g=e._dirtyElements,_=e._normalizedNodes,v=e._updateTags,y=e._deferred;c&&(e._dirtyType=er,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements=new Map,e._normalizedNodes=new Set,e._updateTags=new Set),function(e,t){let n=e._decorators,r=e._pendingDecorators||n,i=t._nodeMap,a;for(a in r)i.has(a)||(r===n&&(r=bc(e)),delete r[a])}(e,n);let b=i?null:ll(el(e));if(e._editable&&b!==null&&(c||s===null||s.dirty)&&r!==null&&!v.has(`skip-dom-selection`)){ts=e,es=n;try{if(p!==null&&p.disconnect(),c||s===null||s.dirty){let t=e._blockCursorElement;t!==null&&cl(t,e,r),Yo(o,s,e,b,v,r)}(function(e,t,n){let r=e._blockCursorElement;if(H(n)&&n.isCollapsed()&&n.anchor.type===`element`&&t.contains(document.activeElement)){let i=n.anchor,a=i.getNode(),o=i.offset,s=!1,c=null;if(o===a.getChildrenSize())sl(a.getChildAtIndex(o-1))&&(s=!0);else{let t=a.getChildAtIndex(o);if(t!==null&&sl(t)){let n=t.getPreviousSibling();(n===null||sl(n))&&(s=!0,c=e.getElementByKey(t.__key))}}if(s){let n=e.getElementByKey(a.__key);r===null&&(e._blockCursorElement=r=function(e){let t=e.theme,n=document.createElement(`div`);n.contentEditable=`false`,n.setAttribute(`data-lexical-cursor`,`true`);let r=t.blockCursor;return r!==void 0&&(typeof r==`string`&&(r=t.blockCursor=Yn(r)),r!==void 0&&n.classList.add(...r)),n}(e._config)),t.style.caretColor=`transparent`,c===null?n.appendChild(r):n.insertBefore(r,c);return}}r!==null&&cl(r,e,t)})(e,r,s)}finally{p!==null&&p.observe(r,as),ts=d,es=l}}m!==null&&function(e,t,n,r,i){let a=Array.from(e._listeners.mutation),o=a.length;for(let e=0;e<o;e++){let[o,s]=a[e];for(let e of s){let a=t.get(e);a!==void 0&&o(a,{dirtyLeaves:r,prevEditorState:i,updateTags:n})}}}(e,m,v,h,a),H(s)||s===null||o!==null&&o.is(s)||e.dispatchCommand(Di,void 0);let x=e._pendingDecorators;x!==null&&(e._decorators=x,e._pendingDecorators=null,bs(`decorator`,e,!0,x)),function(e,t,n){let r=xc(t),i=xc(n);r!==i&&bs(`textcontent`,e,!0,i)}(e,t||a,n),bs(`update`,e,!0,{dirtyElements:g,dirtyLeaves:h,editorState:n,mutatedNodes:m,normalizedNodes:_,prevEditorState:t||a,tags:v}),function(e,t){if(e._deferred=[],t.length!==0){let n=e._updating;e._updating=!0;try{for(let e=0;e<t.length;e++)t[e]()}finally{e._updating=n}}}(e,y),function(e){let t=e._updates;if(t.length!==0){let n=t.shift();if(n){let[t,r]=n;Ss(e,t,r)}}}(e)}function bs(e,t,n,...r){let i=t._updating;t._updating=n;try{let n=Array.from(t._listeners[e]);for(let e=0;e<n.length;e++)n[e].apply(null,r)}finally{t._updating=i}}function xs(e,t){let n=e._updates,r=t||!1;for(;n.length!==0;){let t=n.shift();if(t){let[n,i]=t,a=e._pendingEditorState,o;i!==void 0&&(o=i.onUpdate,i.skipTransforms&&(r=!0),i.discrete&&(a===null&&z(191),a._flushSync=!0),o&&e._deferred.push(o),hs(e,i.tag)),a==null?Ss(e,n,i):n()}}return r}function Ss(e,t,n){let r=e._updateTags,i,a=!1,o=!1;n!==void 0&&(i=n.onUpdate,hs(e,n.tag),a=n.skipTransforms||!1,o=n.discrete||!1),i&&e._deferred.push(i);let s=e._editorState,c=e._pendingEditorState,l=!1;(c===null||c._readOnly)&&(c=e._pendingEditorState=Ms(c||s),l=!0),c._flushSync=o;let u=es,d=ns,f=ts,p=e._updating;es=c,ns=!1,e._updating=!0,ts=e;let m=e._headless||e.getRootElement()===null;qs(null);try{l&&(m?s._selection!==null&&(c._selection=s._selection.clone()):c._selection=function(e,t){let n=e.getEditorState()._selection,r=ll(el(e));return H(n)||n==null?Ho(n,r,e,t):n.clone()}(e,n&&n.event||null));let r=e._compositionKey;t(),a=xs(e,a),function(e,t){let n=t.getEditorState()._selection,r=e._selection;if(H(r)){let e=r.anchor,t=r.focus,i;if(e.type===`text`&&(i=e.getNode(),i.selectionTransform(n,r)),t.type===`text`){let e=t.getNode();i!==e&&e.selectionTransform(n,r)}}}(c,e),e._dirtyType!==er&&(a?function(e,t){let n=t._dirtyLeaves,r=e._nodeMap;for(let e of n){let t=r.get(e);V(t)&&t.isAttached()&&t.isSimpleText()&&!t.isUnmergeable()&&Wr(t)}}(c,e):function(e,t){let n=t._dirtyLeaves,r=t._dirtyElements,i=e._nodeMap,a=hc(),o=new Map,s=n,c=s.size,l=r,u=l.size;for(;c>0||u>0;){if(c>0){t._dirtyLeaves=new Set;for(let e of s){let r=i.get(e);V(r)&&r.isAttached()&&r.isSimpleText()&&!r.isUnmergeable()&&Wr(r),r!==void 0&&ms(r,a)&&ps(t,r,o),n.add(e)}if(s=t._dirtyLeaves,c=s.size,c>0){is++;continue}}t._dirtyLeaves=new Set,t._dirtyElements=new Map,l.delete(`root`)&&l.set(`root`,!0);for(let e of l){let n=e[0],s=e[1];if(r.set(n,s),!s)continue;let c=i.get(n);c!==void 0&&ms(c,a)&&ps(t,c,o)}s=t._dirtyLeaves,c=s.size,l=t._dirtyElements,u=l.size,is++}t._dirtyLeaves=n,t._dirtyElements=r}(c,e),xs(e),function(e,t,n,r){let i=e._nodeMap,a=t._nodeMap,o=[];for(let[e]of r){let t=a.get(e);t!==void 0&&(t.isAttached()||(W(t)&&Sr(t,e,i,a,o,r),i.has(e)||r.delete(e),o.push(e)))}for(let e of o)a.delete(e);for(let e of n){let t=a.get(e);t===void 0||t.isAttached()||(i.has(e)||n.delete(e),a.delete(e))}}(s,c,e._dirtyLeaves,e._dirtyElements)),r!==e._compositionKey&&(c._flushSync=!0);let i=c._selection;if(H(i)){let e=c._nodeMap,t=i.anchor.key,n=i.focus.key;e.get(t)!==void 0&&e.get(n)!==void 0||z(19)}else Oo(i)&&i._nodes.size===0&&(c._selection=null)}catch(t){t instanceof Error&&e._onError(t),e._pendingEditorState=s,e._dirtyType=nr,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements.clear(),ys(e);return}finally{es=u,ns=d,ts=f,e._updating=p,is=0}e._dirtyType!==er||e._deferred.length>0||function(e,t){let n=t.getEditorState()._selection,r=e._selection;if(r!==null){if(r.dirty||!r.is(n))return!0}else if(n!==null)return!0;return!1}(c,e)?c._flushSync?(c._flushSync=!1,ys(e)):l&&Zs((()=>{ys(e)})):(c._flushSync=!1,l&&(r.clear(),e._deferred=[],e._pendingEditorState=null))}function Cs(e,t,n){ts===e&&n===void 0?t():Ss(e,t,n)}var ws=class e{constructor(e,t,n){this.element=e,this.before=t||null,this.after=n||null}withBefore(t){return new e(this.element,t,this.after)}withAfter(t){return new e(this.element,this.before,t)}withElement(t){return this.element===t?this:new e(t,this.before,this.after)}insertChild(e){let t=this.before||this.getManagedLineBreak();return t!==null&&t.parentElement!==this.element&&z(222),this.element.insertBefore(e,t),this}removeChild(e){return e.parentElement!==this.element&&z(223),this.element.removeChild(e),this}replaceChild(e,t){return t.parentElement!==this.element&&z(224),this.element.replaceChild(e,t),this}getFirstChild(){let e=this.after?this.after.nextSibling:this.element.firstChild;return e===this.before||e===this.getManagedLineBreak()?null:e}getManagedLineBreak(){return this.element.__lexicalLineBreak||null}setManagedLineBreak(e){if(e===null)this.removeManagedLineBreak();else{let t=e===`decorator`&&(Wn||Un);this.insertManagedLineBreak(t)}}removeManagedLineBreak(){let e=this.getManagedLineBreak();if(e){let t=this.element,n=e.nodeName===`IMG`?e.nextSibling:null;n&&t.removeChild(n),t.removeChild(e),t.__lexicalLineBreak=void 0}}insertManagedLineBreak(e){let t=this.getManagedLineBreak();if(t){if(e===(t.nodeName===`IMG`))return;this.removeManagedLineBreak()}let n=this.element,r=this.before,i=document.createElement(`br`);if(n.insertBefore(i,r),e){let e=document.createElement(`img`);e.setAttribute(`data-lexical-linebreak`,`true`),e.style.cssText=`display: inline !important; border: 0px !important; margin: 0px !important;`,e.alt=``,n.insertBefore(e,i),n.__lexicalLineBreak=e}else n.__lexicalLineBreak=i}getFirstChildOffset(){let e=0;for(let t=this.after;t!==null;t=t.previousSibling)e++;return e}resolveChildIndex(e,t,n,r){if(n===this.element){let t=this.getFirstChildOffset();return[e,Math.min(t+e.getChildrenSize(),Math.max(t,r))]}let i=Ts(t,n);i.push(r);let a=Ts(t,this.element),o=e.getIndexWithinParent();for(let e=0;e<a.length;e++){let t=i[e],n=a[e];if(t===void 0||t<n)break;if(t>n){o+=1;break}}return[e.getParentOrThrow(),o]}};function Ts(e,t){let n=[],r=t;for(;r!==e&&r!==null;r=r.parentNode){let e=0;for(let t=r.previousSibling;t!==null;t=t.previousSibling)e++;n.push(e)}return r!==e&&z(225),n.reverse()}var Es=class extends Ya{constructor(e){super(e),this.__first=null,this.__last=null,this.__size=0,this.__format=0,this.__style=``,this.__indent=0,this.__dir=null,this.__textFormat=0,this.__textStyle=``}afterCloneFrom(e){super.afterCloneFrom(e),this.__key===e.__key&&(this.__first=e.__first,this.__last=e.__last,this.__size=e.__size),this.__indent=e.__indent,this.__format=e.__format,this.__style=e.__style,this.__dir=e.__dir,this.__textFormat=e.__textFormat,this.__textStyle=e.__textStyle}getFormat(){return this.getLatest().__format}getFormatType(){return vr[this.getFormat()]||``}getStyle(){return this.getLatest().__style}getIndent(){return this.getLatest().__indent}getChildren(){let e=[],t=this.getFirstChild();for(;t!==null;)e.push(t),t=t.getNextSibling();return e}getChildrenKeys(){let e=[],t=this.getFirstChild();for(;t!==null;)e.push(t.__key),t=t.getNextSibling();return e}getChildrenSize(){return this.getLatest().__size}isEmpty(){return this.getChildrenSize()===0}isDirty(){let e=us()._dirtyElements;return e!==null&&e.has(this.__key)}isLastChild(){let e=this.getLatest(),t=this.getParentOrThrow().getLastChild();return t!==null&&t.is(e)}getAllTextNodes(){let e=[],t=this.getFirstChild();for(;t!==null;){if(V(t)&&e.push(t),W(t)){let n=t.getAllTextNodes();e.push(...n)}t=t.getNextSibling()}return e}getFirstDescendant(){let e=this.getFirstChild();for(;W(e);){let t=e.getFirstChild();if(t===null)break;e=t}return e}getLastDescendant(){let e=this.getLastChild();for(;W(e);){let t=e.getLastChild();if(t===null)break;e=t}return e}getDescendantByIndex(e){let t=this.getChildren(),n=t.length;if(e>=n){let e=t[n-1];return W(e)&&e.getLastDescendant()||e||null}let r=t[e];return W(r)&&r.getFirstDescendant()||r||null}getFirstChild(){let e=this.getLatest().__first;return e===null?null:gc(e)}getFirstChildOrThrow(){let e=this.getFirstChild();return e===null&&z(45,this.__key),e}getLastChild(){let e=this.getLatest().__last;return e===null?null:gc(e)}getLastChildOrThrow(){let e=this.getLastChild();return e===null&&z(96,this.__key),e}getChildAtIndex(e){let t=this.getChildrenSize(),n,r;if(e<t/2){for(n=this.getFirstChild(),r=0;n!==null&&r<=e;){if(r===e)return n;n=n.getNextSibling(),r++}return null}for(n=this.getLastChild(),r=t-1;n!==null&&r>=e;){if(r===e)return n;n=n.getPreviousSibling(),r--}return null}getTextContent(){let e=``,t=this.getChildren(),n=t.length;for(let r=0;r<n;r++){let i=t[r];e+=i.getTextContent(),W(i)&&r!==n-1&&!i.isInline()&&(e+=pr)}return e}getTextContentSize(){let e=0,t=this.getChildren(),n=t.length;for(let r=0;r<n;r++){let i=t[r];e+=i.getTextContentSize(),W(i)&&r!==n-1&&!i.isInline()&&(e+=2)}return e}getDirection(){return this.getLatest().__dir}getTextFormat(){return this.getLatest().__textFormat}hasFormat(e){if(e!==``){let t=_r[e];return!!(this.getFormat()&t)}return!1}hasTextFormat(e){let t=hr[e];return!!(this.getTextFormat()&t)}getFormatFlags(e,t){return lc(this.getLatest().__textFormat,e,t)}getTextStyle(){return this.getLatest().__textStyle}select(e,t){ss();let n=U(),r=e,i=t,a=this.getChildrenSize();if(!this.canBeEmpty()){if(e===0&&t===0){let e=this.getFirstChild();if(V(e)||W(e))return e.select(0,0)}else if(!(e!==void 0&&e!==a||t!==void 0&&t!==a)){let e=this.getLastChild();if(V(e)||W(e))return e.select()}}r===void 0&&(r=a),i===void 0&&(i=a);let o=this.__key;return H(n)?(n.anchor.set(o,r,`element`),n.focus.set(o,i,`element`),n.dirty=!0,n):zo(o,r,o,i,`element`,`element`)}selectStart(){let e=this.getFirstDescendant();return e?e.selectStart():this.select()}selectEnd(){let e=this.getLastDescendant();return e?e.selectEnd():this.select()}clear(){let e=this.getWritable();return this.getChildren().forEach((e=>e.remove())),e}append(...e){return this.splice(this.getChildrenSize(),0,e)}setDirection(e){let t=this.getWritable();return t.__dir=e,t}setFormat(e){return this.getWritable().__format=e===``?0:_r[e],this}setStyle(e){return this.getWritable().__style=e||``,this}setTextFormat(e){let t=this.getWritable();return t.__textFormat=e,t}setTextStyle(e){let t=this.getWritable();return t.__textStyle=e,t}setIndent(e){return this.getWritable().__indent=e,this}splice(e,t,n){let r=n.length,i=this.getChildrenSize(),a=this.getWritable();e+t<=i||z(226,String(e),String(t),String(i));let o=a.__key,s=[],c=[],l=this.getChildAtIndex(e+t),u=null,d=i-t+r;if(e!==0)if(e===i)u=this.getLastChild();else{let t=this.getChildAtIndex(e);t!==null&&(u=t.getPreviousSibling())}if(t>0){let e=u===null?this.getFirstChild():u.getNextSibling();for(let n=0;n<t;n++){e===null&&z(100);let t=e.getNextSibling(),n=e.__key;fc(e.getWritable()),c.push(n),e=t}}let f=u;for(let e=0;e<r;e++){let t=n[e];f!==null&&t.is(f)&&(u=f=f.getPreviousSibling());let r=t.getWritable();r.__parent===o&&d--,fc(r);let i=t.__key;if(f===null)a.__first=i,r.__prev=null;else{let e=f.getWritable();e.__next=i,r.__prev=e.__key}t.__key===o&&z(76),r.__parent=o,s.push(i),f=t}if(e+t===i)f!==null&&(f.getWritable().__next=null,a.__last=f.__key);else if(l!==null){let e=l.getWritable();if(f!==null){let t=f.getWritable();e.__prev=f.__key,t.__next=l.__key}else e.__prev=null}if(a.__size=d,c.length){let e=U();if(H(e)){let t=new Set(c),n=new Set(s),{anchor:r,focus:i}=e;Ds(r,t,n)&&Ko(r,r.getNode(),this,u,l),Ds(i,t,n)&&Ko(i,i.getNode(),this,u,l),d!==0||this.canBeEmpty()||nl(this)||this.remove()}}return a}getDOMSlot(e){return new ws(e)}exportDOM(e){let{element:t}=super.exportDOM(e);if(fl(t)){let e=this.getIndent();e>0&&(t.style.paddingInlineStart=40*e+`px`);let n=this.getDirection();n&&(t.dir=n)}return{element:t}}exportJSON(){let e={children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),...super.exportJSON()},t=this.getTextFormat(),n=this.getTextStyle();return t!==0&&(e.textFormat=t),n!==``&&(e.textStyle=n),e}updateFromJSON(e){return super.updateFromJSON(e).setFormat(e.format).setIndent(e.indent).setDirection(e.direction).setTextFormat(e.textFormat||0).setTextStyle(e.textStyle||``)}insertNewAfter(e,t){return null}canIndent(){return!0}collapseAtStart(e){return!1}excludeFromCopy(e){return!1}canReplaceWith(e){return!0}canInsertAfter(e){return!0}canBeEmpty(){return!0}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}isInline(){return!1}isShadowRoot(){return!1}canMergeWith(e){return!1}extractWithChild(e,t,n){return!1}canMergeWhenEmpty(){return!1}reconcileObservedMutation(e,t){let n=this.getDOMSlot(e),r=n.getFirstChild();for(let e=this.getFirstChild();e;e=e.getNextSibling()){let i=t.getElementByKey(e.getKey());i!==null&&(r==null?(n.insertChild(i),r=i):r!==i&&n.replaceChild(i,r),r=r.nextSibling)}}};function W(e){return e instanceof Es}function Ds(e,t,n){let r=e.getNode();for(;r;){let e=r.__key;if(t.has(e)&&!n.has(e))return!0;r=r.getParent()}return!1}var Os=class extends Ya{decorate(e,t){z(47)}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}};function ks(e){return e instanceof Os}var As=class e extends Es{static getType(){return`root`}static clone(){return new e}constructor(){super(`root`),this.__cachedText=null}getTopLevelElementOrThrow(){z(51)}getTextContent(){let e=this.__cachedText;return!os()&&us()._dirtyType!==er||e===null?super.getTextContent():e}remove(){z(52)}replace(e){z(53)}insertBefore(e){z(54)}insertAfter(e){z(55)}updateDOM(e,t){return!1}splice(e,t,n){for(let e of n)W(e)||ks(e)||z(282);return super.splice(e,t,n)}static importJSON(e){return Sc().updateFromJSON(e)}collapseAtStart(){return!0}};function js(e){return e instanceof As}function Ms(e){return new Fs(new Map(e._nodeMap))}function Ns(){return new Fs(new Map([[`root`,new As]]))}function Ps(e){let t=e.exportJSON(),n=e.constructor;if(t.type!==n.getType()&&z(130,n.name),W(e)){let r=t.children;Array.isArray(r)||z(59,n.name);let i=e.getChildren();for(let e=0;e<i.length;e++){let t=Ps(i[e]);r.push(t)}}return t}var Fs=class e{constructor(e,t){this._nodeMap=e,this._selection=t||null,this._flushSync=!1,this._readOnly=!1}isEmpty(){return this._nodeMap.size===1&&this._selection===null}read(e,t){return vs(t&&t.editor||null,this,e)}clone(t){let n=new e(this._nodeMap,t===void 0?this._selection:t);return n._readOnly=!0,n}toJSON(){return vs(null,this,(()=>({root:Ps(Sc())})))}},Is=`history-push`,Ls=`history-merge`,Rs=class extends Es{static getType(){return`artificial`}createDOM(e){return document.createElement(`div`)}},zs=class e extends Es{static getType(){return`paragraph`}static clone(t){return new e(t.__key)}createDOM(e){let t=document.createElement(`p`),n=Vc(e.theme,`paragraph`);return n!==void 0&&t.classList.add(...n),t}updateDOM(e,t,n){return!1}static importDOM(){return{p:e=>({conversion:Bs,priority:0})}}exportDOM(e){let{element:t}=super.exportDOM(e);if(fl(t)){this.isEmpty()&&t.append(document.createElement(`br`));let e=this.getFormatType();e&&(t.style.textAlign=e)}return{element:t}}static importJSON(e){return Vs().updateFromJSON(e)}exportJSON(){return{...super.exportJSON(),textFormat:this.getTextFormat(),textStyle:this.getTextStyle()}}insertNewAfter(e,t){let n=Vs();n.setTextFormat(e.format),n.setTextStyle(e.style);let r=this.getDirection();return n.setDirection(r),n.setFormat(this.getFormatType()),n.setStyle(this.getStyle()),this.insertAfter(n,t),n}collapseAtStart(){let e=this.getChildren();if(e.length===0||V(e[0])&&e[0].getTextContent().trim()===``){if(this.getNextSibling()!==null)return this.selectNext(),this.remove(),!0;if(this.getPreviousSibling()!==null)return this.selectPrevious(),this.remove(),!0}return!1}};function Bs(e){let t=Vs();return e.style&&(t.setFormat(e.style.textAlign),wl(e,t)),{node:t}}function Vs(){return il(new zs)}function Hs(e){return e instanceof zs}function Us(e,t,n,r){let i=e._keyToDOMMap;i.clear(),e._editorState=Ns(),e._pendingEditorState=r,e._compositionKey=null,e._dirtyType=er,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements.clear(),e._normalizedNodes=new Set,e._updateTags=new Set,e._updates=[],e._blockCursorElement=null;let a=e._observer;a!==null&&(a.disconnect(),e._observer=null),t!==null&&(t.textContent=``),n!==null&&(n.textContent=``,i.set(`root`,n))}function Ws(e){let t=e||{},n=fs(),r=t.theme||{},i=e===void 0?n:t.parentEditor||null,a=t.disableEvents||!1,o=Ns(),s=t.namespace||(i===null?Oc():i._config.namespace),c=t.editorState,l=[As,so,Xa,yo,zs,Rs,...t.nodes||[]],{onError:u,html:d}=t,f=t.editable===void 0||t.editable,p;if(e===void 0&&n!==null)p=n._nodes;else{p=new Map;for(let e=0;e<l.length;e++){let t=l[e],n=null,r=null;if(typeof t!=`function`){let e=t;t=e.replace,n=e.with,r=e.withKlass||null}let{ownNodeConfig:i}=Dl(t),a=t.getType(),o=t.transform(),s=new Set;i&&i.$transform&&s.add(i.$transform),o!==null&&s.add(o),p.set(a,{exportDOM:d&&d.export?d.export.get(t):void 0,klass:t,replace:n,replaceWithKlass:r,sharedNodeState:Pr(l[e]),transforms:s})}}let m=new Gs(o,i,p,{disableEvents:a,namespace:s,theme:r},u||console.error,function(e,t){let n=new Map,r=new Set,i=e=>{Object.keys(e).forEach((t=>{let r=n.get(t);r===void 0&&(r=[],n.set(t,r)),r.push(e[t])}))};return e.forEach((e=>{let t=e.klass.importDOM;if(t==null||r.has(t))return;r.add(t);let n=t.call(e.klass);n!==null&&i(n)})),t&&i(t),n}(p,d?d.import:void 0),f,e);return c!==void 0&&(m._pendingEditorState=c,m._dirtyType=nr),m}var Gs=class{constructor(e,t,n,r,i,a,o,s){this._createEditorArgs=s,this._parentEditor=t,this._rootElement=null,this._editorState=e,this._pendingEditorState=null,this._compositionKey=null,this._deferred=[],this._keyToDOMMap=new Map,this._updates=[],this._updating=!1,this._listeners={decorator:new Set,editable:new Set,mutation:new Map,root:new Set,textcontent:new Set,update:new Set},this._commands=new Map,this._config=r,this._nodes=n,this._decorators={},this._pendingDecorators=null,this._dirtyType=er,this._cloneNotNeeded=new Set,this._dirtyLeaves=new Set,this._dirtyElements=new Map,this._normalizedNodes=new Set,this._updateTags=new Set,this._observer=null,this._key=Oc(),this._onError=i,this._htmlConversions=a,this._editable=o,this._headless=t!==null&&t._headless,this._window=null,this._blockCursorElement=null}isComposing(){return this._compositionKey!=null}registerUpdateListener(e){let t=this._listeners.update;return t.add(e),()=>{t.delete(e)}}registerEditableListener(e){let t=this._listeners.editable;return t.add(e),()=>{t.delete(e)}}registerDecoratorListener(e){let t=this._listeners.decorator;return t.add(e),()=>{t.delete(e)}}registerTextContentListener(e){let t=this._listeners.textcontent;return t.add(e),()=>{t.delete(e)}}registerRootListener(e){let t=this._listeners.root;return e(this._rootElement,null),t.add(e),()=>{e(null,this._rootElement),t.delete(e)}}registerCommand(e,t,n){n===void 0&&z(35);let r=this._commands;r.has(e)||r.set(e,[new Set,new Set,new Set,new Set,new Set]);let i=r.get(e);i===void 0&&z(36,String(e));let a=i[n];return a.add(t),()=>{a.delete(t),i.every((e=>e.size===0))&&r.delete(e)}}registerMutationListener(e,t,n){let r=this.resolveRegisteredNodeAfterReplacements(this.getRegisteredNode(e)).klass,i=this._listeners.mutation,a=i.get(t);a===void 0&&(a=new Set,i.set(t,a)),a.add(r);let o=n&&n.skipInitialization;return o!==void 0&&o||this.initializeMutationListener(t,r),()=>{a.delete(r),a.size===0&&i.delete(t)}}getRegisteredNode(e){let t=this._nodes.get(e.getType());return t===void 0&&z(37,e.name),t}resolveRegisteredNodeAfterReplacements(e){for(;e.replaceWithKlass;)e=this.getRegisteredNode(e.replaceWithKlass);return e}initializeMutationListener(e,t){let n=this._editorState,r=Sl(n).get(t.getType());if(!r)return;let i=new Map;for(let e of r.keys())i.set(e,`created`);i.size>0&&e(i,{dirtyLeaves:new Set,prevEditorState:n,updateTags:new Set([`registerMutationListener`])})}registerNodeTransformToKlass(e,t){let n=this.getRegisteredNode(e);return n.transforms.add(t),n}registerNodeTransform(e,t){let n=this.registerNodeTransformToKlass(e,t),r=[n],i=n.replaceWithKlass;if(i!=null){let e=this.registerNodeTransformToKlass(i,t);r.push(e)}return function(e,t){let n=Sl(e.getEditorState()),r=[];for(let e of t){let t=n.get(e);t&&r.push(t)}r.length!==0&&e.update((()=>{for(let e of r)for(let t of e.keys()){let e=gc(t);e&&e.markDirty()}}),e._pendingEditorState===null?{tag:Ls}:void 0)}(this,r.map((e=>e.klass.getType()))),()=>{r.forEach((e=>e.transforms.delete(t)))}}hasNode(e){return this._nodes.has(e.getType())}hasNodes(e){return e.every(this.hasNode.bind(this))}dispatchCommand(e,t){return G(this,e,t)}getDecorators(){return this._decorators}getRootElement(){return this._rootElement}getKey(){return this._key}setRootElement(e){let t=this._rootElement;if(e!==t){let n=Vc(this._config.theme,`root`),r=this._pendingEditorState||this._editorState;if(this._rootElement=e,Us(this,t,e,r),t!==null&&(this._config.disableEvents||Ka(t),n!=null&&t.classList.remove(...n)),e!==null){let t=$c(e),r=e.style;r.userSelect=`text`,r.whiteSpace=`pre-wrap`,r.wordBreak=`break-word`,e.setAttribute(`data-lexical-editor`,`true`),this._window=t,this._dirtyType=nr,Nr(this),this._updateTags.add(Ls),ys(this),this._config.disableEvents||function(e,t){let n=e.ownerDocument,r=Ta.get(n);(r===void 0||r<1)&&n.addEventListener(`selectionchange`,Ua),Ta.set(n,(r||0)+1),e.__lexicalEditor=t;let i=Va(e);for(let n=0;n<ba.length;n++){let[r,a]=ba[n],o=typeof a==`function`?e=>{Ga(e)||(Wa(e),(t.isEditable()||r===`click`)&&a(e,t))}:e=>{if(Ga(e))return;Wa(e);let n=t.isEditable();switch(r){case`cut`:return n&&G(t,la,e);case`copy`:return G(t,ca,e);case`paste`:return n&&G(t,Pi,e);case`dragstart`:return n&&G(t,aa,e);case`dragover`:return n&&G(t,oa,e);case`dragend`:return n&&G(t,sa,e);case`focus`:return n&&G(t,ha,e);case`blur`:return n&&G(t,ga,e);case`drop`:return n&&G(t,ra,e)}};e.addEventListener(r,o),i.push((()=>{e.removeEventListener(r,o)}))}}(e,this),n!=null&&e.classList.add(...n)}else this._window=null,this._updateTags.add(Ls),ys(this);bs(`root`,this,!1,e,t)}}getElementByKey(e){return this._keyToDOMMap.get(e)||null}getEditorState(){return this._editorState}setEditorState(e,t){e.isEmpty()&&z(38);let n=e;n._readOnly&&(n=Ms(e),n._selection=e._selection?e._selection.clone():null),Mr(this);let r=this._pendingEditorState,i=this._updateTags,a=t===void 0?null:t.tag;r===null||r.isEmpty()||(a!=null&&i.add(a),ys(this)),this._pendingEditorState=n,this._dirtyType=nr,this._dirtyElements.set(`root`,!1),this._compositionKey=null,a!=null&&i.add(a),this._updating||ys(this)}parseEditorState(e,t){return function(e,t,n){let r=Ns(),i=es,a=ns,o=ts,s=t._dirtyElements,c=t._dirtyLeaves,l=t._cloneNotNeeded,u=t._dirtyType;t._dirtyElements=new Map,t._dirtyLeaves=new Set,t._cloneNotNeeded=new Set,t._dirtyType=0,es=r,ns=!1,ts=t,qs(null);try{let i=t._nodes;_s(e.root,i),n&&n(),r._readOnly=!0}catch(e){e instanceof Error&&t._onError(e)}finally{t._dirtyElements=s,t._dirtyLeaves=c,t._cloneNotNeeded=l,t._dirtyType=u,es=i,ns=a,ts=o}return r}(typeof e==`string`?JSON.parse(e):e,this,t)}read(e){return ys(this),this.getEditorState().read(e,{editor:this})}update(e,t){(function(e,t,n){e._updating?e._updates.push([t,n]):Ss(e,t,n)})(this,e,t)}focus(e,t={}){let n=this._rootElement;n!==null&&(n.setAttribute(`autocapitalize`,`off`),Cs(this,(()=>{let r=U(),i=Sc();r===null?i.getChildrenSize()!==0&&(t.defaultSelection===`rootStart`?i.selectStart():i.selectEnd()):r.dirty||wc(r.clone()),Xc(`focus`),Zc((()=>{n.removeAttribute(`autocapitalize`),e&&e()}))})),this._pendingEditorState===null&&n.removeAttribute(`autocapitalize`))}blur(){let e=this._rootElement;e!==null&&e.blur();let t=ll(this._window);t!==null&&t.removeAllRanges()}isEditable(){return this._editable}setEditable(e){this._editable!==e&&(this._editable=e,bs(`editable`,this,!0,e))}toJSON(){return{editorState:this._editorState.toJSON()}}};Gs.version=`0.35.0+prod.esm`;var Ks=null;function qs(e){Ks=e}var Js=1;function Ys(e,t){let n=Xs(e,t);return n===void 0&&z(30,t),n}function Xs(e,t){return e._nodes.get(t)}var Zs=typeof queueMicrotask==`function`?queueMicrotask:e=>{Promise.resolve().then(e)};function Qs(e){return ks(yc(e))}function $s(e){let t=document.activeElement;if(!fl(t))return!1;let n=t.nodeName;return ks(yc(e))&&(n===`INPUT`||n===`TEXTAREA`||t.contentEditable===`true`&&rc(t)==null)}function ec(e,t,n){let r=e.getRootElement();try{return r!==null&&r.contains(t)&&r.contains(n)&&t!==null&&!$s(t)&&nc(t)===e}catch{return!1}}function tc(e){return e instanceof Gs}function nc(e){let t=e;for(;t!=null;){let e=rc(t);if(tc(e))return e;t=Jc(t)}return null}function rc(e){return e?e.__lexicalEditor:null}function ic(e){return xo(e)||e.isToken()}function ac(e){return ic(e)||e.isSegmented()}function oc(e){return pl(e)&&e.nodeType===Zn}function sc(e){return pl(e)&&e.nodeType===Qn}function cc(e){let t=e;for(;t!=null;){if(oc(t))return t;t=t.firstChild}return null}function lc(e,t,n){let r=hr[t];if(n!==null&&(e&r)==(n&r))return e;let i=e^r;return t===`subscript`?i&=~hr.superscript:t===`superscript`?i&=~hr.subscript:t===`lowercase`?(i&=~hr.uppercase,i&=~hr.capitalize):t===`uppercase`?(i&=~hr.lowercase,i&=~hr.capitalize):t===`capitalize`&&(i&=~hr.lowercase,i&=~hr.uppercase),i}function uc(e){return V(e)||$a(e)||ks(e)}function dc(e,t){let n=function(){let e=Ks;return Ks=null,e}();if((t||=n&&n.__key)!=null)return void(e.__key=t);ss(),cs();let r=us(),i=ls(),a=``+ Js++;i._nodeMap.set(a,e),W(e)?r._dirtyElements.set(a,!0):r._dirtyLeaves.add(a),r._cloneNotNeeded.add(a),r._dirtyType=tr,e.__key=a}function fc(e){let t=e.getParent();if(t!==null){let n=e.getWritable(),r=t.getWritable(),i=e.getPreviousSibling(),a=e.getNextSibling(),o=a===null?null:a.__key,s=i===null?null:i.__key,c=i===null?null:i.getWritable(),l=a===null?null:a.getWritable();i===null&&(r.__first=o),a===null&&(r.__last=s),c!==null&&(c.__next=o),l!==null&&(l.__prev=s),n.__prev=null,n.__next=null,n.__parent=null,r.__size--}}function pc(e){cs();let t=e.getLatest(),n=t.__parent,r=ls(),i=us(),a=r._nodeMap,o=i._dirtyElements;n!==null&&function(e,t,n){let r=e;for(;r!==null;){if(n.has(r))return;let e=t.get(r);if(e===void 0)break;n.set(r,!1),r=e.__parent}}(n,a,o);let s=t.__key;i._dirtyType=tr,W(e)?o.set(s,!0):i._dirtyLeaves.add(s)}function mc(e){ss();let t=us(),n=t._compositionKey;if(e!==n){if(t._compositionKey=e,n!==null){let e=gc(n);e!==null&&e.getWritable()}if(e!==null){let t=gc(e);t!==null&&t.getWritable()}}}function hc(){return os()?null:us()._compositionKey}function gc(e,t){let n=(t||ls())._nodeMap.get(e);return n===void 0?null:n}function _c(e,t){let n=vc(e,us());return n===void 0?null:gc(n,t)}function vc(e,t){return e[`__lexicalKey_${t._key}`]}function yc(e,t){let n=e;for(;n!=null;){let e=_c(n,t);if(e!==null)return e;n=Jc(n)}return null}function bc(e){let t=e._decorators,n=Object.assign({},t);return e._pendingDecorators=n,n}function xc(e){return e.read((()=>Sc().getTextContent()))}function Sc(){return Cc(ls())}function Cc(e){return e._nodeMap.get(`root`)}function wc(e){ss();let t=ls();e!==null&&(e.dirty=!0,e.setCachedNodes(null)),t._selection=e}function Tc(e){let t=us(),n=function(e,t){let n=e;for(;n!=null;){let e=vc(n,t);if(e!==void 0)return e;n=Jc(n)}return null}(e,t);return n===null?e===t.getRootElement()?gc(`root`):null:gc(n)}function Ec(e){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(e)}function Dc(e){let t=[],n=e;for(;n!==null;)t.push(n),n=n._parentEditor;return t}function Oc(){return Math.random().toString(36).replace(/[^a-z]+/g,``).substring(0,5)}function kc(e){return oc(e)?e.nodeValue:null}function Ac(e,t,n){let r=ll(el(t));if(r===null)return;let i=r.anchorNode,{anchorOffset:a,focusOffset:o}=r;if(i!==null){let t=kc(i),r=yc(i);if(t!==null&&V(r)){if(t===fr&&n){let e=n.length;t=n,a=e,o=e}t!==null&&jc(r,t,a,o,e)}}}function jc(e,t,n,r,i){let a=e;if(a.isAttached()&&(i||!a.isDirty())){let o=a.isComposing(),s=t;(o||i)&&t[t.length-1]===fr&&(s=t.slice(0,-1));let c=a.getTextContent();if(i||s!==c){if(s===``){if(mc(null),Un||Wn||Jn)a.remove();else{let e=us();setTimeout((()=>{e.update((()=>{a.isAttached()&&a.remove()}))}),20)}return}let t=a.getParent(),i=Uo(),c=a.getTextContentSize(),l=hc(),u=a.getKey();if(a.isToken()||l!==null&&u===l&&!o||H(i)&&(t!==null&&!t.canInsertTextBefore()&&i.anchor.offset===0||i.anchor.key===e.__key&&i.anchor.offset===0&&!a.canInsertTextBefore()&&!o||i.focus.key===e.__key&&i.focus.offset===c&&!a.canInsertTextAfter()&&!o))return void a.markDirty();let d=U();if(!H(d)||n===null||r===null)return void Mc(a,s,d);if(d.setTextNodeRange(a,n,a,r),a.isSegmented()){let e=_o(a.getTextContent());a.replace(e),a=e}Mc(a,s,d)}}}function Mc(e,t,n){if(e.setTextContent(t),H(n)){let t=e.getKey();for(let r of[`anchor`,`focus`]){let i=n[r];i.type===`text`&&i.key===t&&(i.offset=Gl(e,i.offset,`clamp`))}}}function Nc(e,t,n){let r=t[n]||!1;return r===`any`||r===e[n]}function Pc(e,t){return Nc(e,t,`altKey`)&&Nc(e,t,`ctrlKey`)&&Nc(e,t,`shiftKey`)&&Nc(e,t,`metaKey`)}function Fc(e,t,n){return Pc(e,n)&&e.key.toLowerCase()===t.toLowerCase()}var Ic={ctrlKey:!Bn,metaKey:Bn},Lc={altKey:Bn,ctrlKey:!Bn};function Rc(e){return e.key===`Backspace`}function zc(e){return Fc(e,`a`,Ic)}function Bc(e){let t=Sc();if(H(e)){let t=e.anchor,n=e.focus,r=t.getNode().getTopLevelElementOrThrow().getParentOrThrow();return t.set(r.getKey(),0,`element`),n.set(r.getKey(),r.getChildrenSize(),`element`),Gr(e),e}{let e=t.select(0,t.getChildrenSize());return wc(Gr(e)),e}}function Vc(e,t){e.__lexicalClassNameCache===void 0&&(e.__lexicalClassNameCache={});let n=e.__lexicalClassNameCache,r=n[t];if(r!==void 0)return r;let i=e[t];if(typeof i==`string`){let e=Yn(i);return n[t]=e,e}return i}function Hc(e,t,n,r,i){if(n.size===0)return;let a=r.__type,o=r.__key,s=t.get(a);s===void 0&&z(33,a);let c=s.klass,l=e.get(c);l===void 0&&(l=new Map,e.set(c,l));let u=l.get(o),d=u===`destroyed`&&i===`created`;(u===void 0||d)&&l.set(o,d?`updated`:i)}function Uc(e,t,n){let r=e.getParent(),i=n,a=e;return r!==null&&(t&&n===0?(i=a.getIndexWithinParent(),a=r):t||n!==a.getChildrenSize()||(i=a.getIndexWithinParent()+1,a=r)),a.getChildAtIndex(t?i-1:i)}function Wc(e,t){let n=e.offset;if(e.type===`element`)return Uc(e.getNode(),t,n);{let r=e.getNode();if(t&&n===0||!t&&n===r.getTextContentSize()){let e=t?r.getPreviousSibling():r.getNextSibling();return e===null?Uc(r.getParentOrThrow(),t,r.getIndexWithinParent()+ +!t):e}}return null}function Gc(e){let t=el(e).event,n=t&&t.inputType;return n===`insertFromPaste`||n===`insertFromPasteAsQuotation`}function G(e,t,n){return function(e,t,n){let r=Dc(e);for(let i=4;i>=0;i--)for(let a=0;a<r.length;a++){let o=r[a],s=o._commands.get(t);if(s!==void 0){let t=s[i];if(t!==void 0){let r=Array.from(t),i=r.length,a=!1;if(Cs(o,(()=>{for(let t=0;t<i;t++)if(r[t](n,e))return void(a=!0)})),a)return a}}}return!1}(e,t,n)}function Kc(e){return!js(e)&&!e.isLastChild()&&!e.isInline()}function qc(e,t){let n=e._keyToDOMMap.get(t);return n===void 0&&z(75,t),n}function Jc(e){let t=e.assignedSlot||e.parentElement;return ml(t)?t.host:t}function Yc(e){return sc(e)?e:fl(e)?e.ownerDocument:null}function Xc(e){ss(),us()._updateTags.add(e)}function Zc(e){ss(),us()._deferred.push(e)}function Qc(e,t){let n=e.getParent();for(;n!==null;){if(n.is(t))return!0;n=n.getParent()}return!1}function $c(e){let t=Yc(e);return t?t.defaultView:null}function el(e){let t=e._window;return t===null&&z(78),t}function tl(e){let t=e.getParentOrThrow();for(;t!==null;){if(nl(t))return t;t=t.getParentOrThrow()}return t}function nl(e){return js(e)||W(e)&&e.isShadowRoot()}function rl(e){let t=e.constructor.clone(e);return dc(t,null),t.afterCloneFrom(e),t}function il(e){let t=us(),n=e.getType(),r=Xs(t,n);r===void 0&&z(200,e.constructor.name,n);let{replace:i,replaceWithKlass:a}=r;if(i!==null){let t=i(e),r=t.constructor;return a===null?t instanceof e.constructor&&r!==e.constructor||z(202,r.name,r.getType(),e.constructor.name,n):t instanceof a||z(201,a.name,a.getType(),r.name,r.getType(),e.constructor.name,n),t.__key===e.__key&&z(203,e.constructor.name,n,r.name,r.getType()),t}return e}function al(e,t){!js(e.getParent())||W(t)||ks(t)||z(99)}function ol(e){let t=gc(e);return t===null&&z(63,e),t}function sl(e){return(ks(e)||W(e)&&!e.canBeEmpty())&&!e.isInline()}function cl(e,t,n){n.style.removeProperty(`caret-color`),t._blockCursorElement=null;let r=e.parentElement;r!==null&&r.removeChild(e)}function ll(e){return Rn?(e||window).getSelection():null}function ul(e){let t=$c(e);return t?t.getSelection():null}function dl(e){return fl(e)&&e.tagName===`A`}function fl(e){return pl(e)&&e.nodeType===Xn}function pl(e){return typeof e==`object`&&!!e&&`nodeType`in e&&typeof e.nodeType==`number`}function ml(e){return pl(e)&&e.nodeType===$n}function hl(e){let t=new RegExp(/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|mark|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var|#text)$/,`i`);return e.nodeName.match(t)!==null}function gl(e){let t=new RegExp(/^(address|article|aside|blockquote|canvas|dd|div|dl|dt|fieldset|figcaption|figure|footer|form|h1|h2|h3|h4|h5|h6|header|hr|li|main|nav|noscript|ol|p|pre|section|table|td|tfoot|ul|video)$/,`i`);return e.nodeName.match(t)!==null}function _l(e){if(ks(e)&&!e.isInline())return!0;if(!W(e)||nl(e))return!1;let t=e.getFirstChild(),n=t===null||$a(t)||V(t)||t.isInline();return!e.isInline()&&!1!==e.canBeEmpty()&&n}function vl(e,t){let n=e;for(;n!==null&&n.getParent()!==null&&!t(n);)n=n.getParentOrThrow();return t(n)?n:null}function yl(){return us()}var bl=new WeakMap,xl=new Map;function Sl(e){if(!e._readOnly&&e.isEmpty())return xl;e._readOnly||z(192);let t=bl.get(e);return t||(t=function(e){let t=new Map;for(let[n,r]of e._nodeMap){let e=r.__type,i=t.get(e);i||(i=new Map,t.set(e,i)),i.set(n,r)}return t}(e),bl.set(e,t)),t}function Cl(e){let t=e.constructor.clone(e);return t.afterCloneFrom(e),t}function wl(e,t){let n=parseInt(e.style.paddingInlineStart,10)||0,r=Math.round(n/40);t.setIndent(r)}function Tl(e){return!0===e.__lexicalUnmanaged}function El(e,t){return function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}(e,t)&&e[t]!==Ya[t]}function Dl(e){let t=xr in e.prototype?e.prototype[xr]():void 0,n=function(e){return e===Os||e===Es||e===Ya}(e),r=!n&&El(e,`getType`)?e.getType():void 0,i,a=r;if(t)if(r)i=t[r];else for(let[e,n]of Object.entries(t))a=e,i=n;if(!n&&a&&(El(e,`getType`)||(e.getType=()=>a),El(e,`clone`)||(e.clone=t=>(qs(t),new e)),El(e,`importJSON`)||(e.importJSON=i&&i.$importJSON||(t=>new e().updateFromJSON(t))),!El(e,`importDOM`)&&i)){let{importDOM:t}=i;t&&(e.importDOM=()=>t)}return{ownNodeConfig:i,ownNodeType:a}}function Ol(e){let t=yl();return ss(),new(t.resolveRegisteredNodeAfterReplacements(t.getRegisteredNode(e))).klass}var kl={next:`previous`,previous:`next`},Al=class{constructor(e){this.origin=e}[Symbol.iterator](){return tu({hasNext:Rl,initial:this.getAdjacentCaret(),map:e=>e,step:e=>e.getAdjacentCaret()})}getAdjacentCaret(){return Ul(this.getNodeAtCaret(),this.direction)}getSiblingCaret(){return Ul(this.origin,this.direction)}remove(){let e=this.getNodeAtCaret();return e&&e.remove(),this}replaceOrInsert(e,t){let n=this.getNodeAtCaret();return e.is(this.origin)||e.is(n)||(n===null?this.insert(e):n.replace(e,t)),this}splice(e,t,n=`next`){let r=n===this.direction?t:Array.from(t).reverse(),i=this,a=this.getParentAtCaret(),o=new Map;for(let t=i.getAdjacentCaret();t!==null&&o.size<e;t=t.getAdjacentCaret()){let e=t.origin.getWritable();o.set(e.getKey(),e)}for(let e of r){if(o.size>0){let t=i.getNodeAtCaret();if(t){if(o.delete(t.getKey()),o.delete(e.getKey()),!(t.is(e)||i.origin.is(e))){let n=e.getParent();n&&n.is(a)&&e.remove(),t.replace(e)}}else t===null&&z(263,Array.from(o).join(` `))}else i.insert(e);i=Ul(e,this.direction)}for(let e of o.values())e.remove();return this}},jl=class e extends Al{type=`child`;getLatest(){let e=this.origin.getLatest();return e===this.origin?this:ql(e,this.direction)}getParentCaret(e=`root`){return Ul(Pl(this.getParentAtCaret(),e),this.direction)}getFlipped(){let e=Nl(this.direction);return Ul(this.getNodeAtCaret(),e)||ql(this.origin,e)}getParentAtCaret(){return this.origin}getChildCaret(){return this}isSameNodeCaret(t){return t instanceof e&&this.direction===t.direction&&this.origin.is(t.origin)}isSamePointCaret(e){return this.isSameNodeCaret(e)}},Ml={root:js,shadowRoot:nl};function Nl(e){return kl[e]}function Pl(e,t=`root`){return Ml[t](e)?null:e}var Fl=class e extends Al{type=`sibling`;getLatest(){let e=this.origin.getLatest();return e===this.origin?this:Ul(e,this.direction)}getSiblingCaret(){return this}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return W(this.origin)?ql(this.origin,this.direction):null}getParentCaret(e=`root`){return Ul(Pl(this.getParentAtCaret(),e),this.direction)}getFlipped(){let e=Nl(this.direction);return Ul(this.getNodeAtCaret(),e)||ql(this.origin.getParentOrThrow(),e)}isSamePointCaret(t){return t instanceof e&&this.direction===t.direction&&this.origin.is(t.origin)}isSameNodeCaret(t){return(t instanceof e||t instanceof Il)&&this.direction===t.direction&&this.origin.is(t.origin)}},Il=class e extends Al{type=`text`;constructor(e,t){super(e),this.offset=t}getLatest(){let e=this.origin.getLatest();return e===this.origin?this:Wl(e,this.direction,this.offset)}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return null}getParentCaret(e=`root`){return Ul(Pl(this.getParentAtCaret(),e),this.direction)}getFlipped(){return Wl(this.origin,Nl(this.direction),this.offset)}isSamePointCaret(t){return t instanceof e&&this.direction===t.direction&&this.origin.is(t.origin)&&this.offset===t.offset}isSameNodeCaret(t){return(t instanceof Fl||t instanceof e)&&this.direction===t.direction&&this.origin.is(t.origin)}getSiblingCaret(){return Ul(this.origin,this.direction)}};function Ll(e){return e instanceof Il}function Rl(e){return e instanceof Fl}function zl(e){return e instanceof jl}var Bl={next:class extends Il{direction=`next`;getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends Il{direction=`previous`;getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},Vl={next:class extends Fl{direction=`next`;getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends Fl{direction=`previous`;getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},Hl={next:class extends jl{direction=`next`;getNodeAtCaret(){return this.origin.getFirstChild()}insert(e){return this.origin.splice(0,0,[e]),this}},previous:class extends jl{direction=`previous`;getNodeAtCaret(){return this.origin.getLastChild()}insert(e){return this.origin.splice(this.origin.getChildrenSize(),0,[e]),this}}};function Ul(e,t){return e?new Vl[t](e):null}function Wl(e,t,n){return e?new Bl[t](e,Gl(e,n)):null}function Gl(e,t,n=`error`){let r=e.getTextContentSize(),i=t===`next`?r:t===`previous`?0:t;return(i<0||i>r)&&(n!==`clamp`&&function(e,...t){let n=new URL(`https://lexical.dev/docs/error`),r=new URLSearchParams;r.append(`code`,e);for(let e of t)r.append(`v`,e);n.search=r.toString(),console.warn(`Minified Lexical warning #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(284,String(t),String(r),e.getKey()),i=i<0?0:r),i}function Kl(e,t){return new Zl(e,t)}function ql(e,t){return W(e)?new Hl[t](e):null}function Jl(e){return e&&e.getChildCaret()||e}function Yl(e){return e&&Jl(e.getAdjacentCaret())}var Xl=class e{type=`node-caret-range`;constructor(e,t,n){this.anchor=e,this.focus=t,this.direction=n}getLatest(){let t=this.anchor.getLatest(),n=this.focus.getLatest();return t===this.anchor&&n===this.focus?this:new e(t,n,this.direction)}isCollapsed(){return this.anchor.isSamePointCaret(this.focus)}getTextSlices(){let e=e=>{let t=this[e].getLatest();return Ll(t)?function(e,t){let{direction:n,origin:r}=e;return Kl(e,Gl(r,t===`focus`?Nl(n):n)-e.offset)}(t,e):null},t=e(`anchor`),n=e(`focus`);if(t&&n){let{caret:e}=t,{caret:r}=n;if(e.isSameNodeCaret(r))return[Kl(e,r.offset-e.offset),null]}return[t,n]}iterNodeCarets(e=`root`){let t=Ll(this.anchor)?this.anchor.getSiblingCaret():this.anchor.getLatest(),n=this.focus.getLatest(),r=Ll(n),i=t=>t.isSameNodeCaret(n)?null:Yl(t)||t.getParentCaret(e);return tu({hasNext:e=>e!==null&&!(r&&n.isSameNodeCaret(e)),initial:t.isSameNodeCaret(n)?null:i(t),map:e=>e,step:i})}[Symbol.iterator](){return this.iterNodeCarets(`root`)}},Zl=class{type=`slice`;constructor(e,t){this.caret=e,this.distance=t}getSliceIndices(){let{distance:e,caret:{offset:t}}=this,n=t+e;return n<t?[n,t]:[t,n]}getTextContent(){let[e,t]=this.getSliceIndices();return this.caret.origin.getTextContent().slice(e,t)}getTextContentSize(){return Math.abs(this.distance)}removeTextSlice(){let{caret:{origin:e,direction:t}}=this,[n,r]=this.getSliceIndices(),i=e.getTextContent();return Wl(e.setTextContent(i.slice(0,n)+i.slice(r)),t,n)}};function Ql(e){return eu(e,Ul(Sc(),e.direction))}function $l(e){return eu(e,e)}function eu(e,t){return e.direction!==t.direction&&z(265),new Xl(e,t,e.direction)}function tu(e){let{initial:t,hasNext:n,step:r,map:i}=e,a=t;return{[Symbol.iterator](){return this},next(){if(!n(a))return{done:!0,value:void 0};let e={done:!1,value:i(a)};return a=r(a),e}}}function nu(e,t){let n=ou(e.origin,t.origin);switch(n===null&&z(275,e.origin.getKey(),t.origin.getKey()),n.type){case`same`:{let n=e.type===`text`,r=t.type===`text`;return n&&r?function(e,t){return Math.sign(e-t)}(e.offset,t.offset):e.type===t.type?0:n?-1:r?1:e.type===`child`?-1:1}case`ancestor`:return e.type===`child`?-1:1;case`descendant`:return t.type===`child`?1:-1;case`branch`:return ru(n)}}function ru(e){let{a:t,b:n}=e,r=t.__key,i=n.__key,a=t,o=n;for(;a&&o;a=a.getNextSibling(),o=o.getNextSibling()){if(a.__key===i)return-1;if(o.__key===r)return 1}return a===null?1:-1}function iu(e,t){return t.is(e)}function au(e){return W(e)?[e.getLatest(),null]:[e.getParent(),e.getLatest()]}function ou(e,t){if(e.is(t))return{commonAncestor:e,type:`same`};let n=new Map;for(let[t,r]=au(e);t;r=t,t=t.getParent())n.set(t,r);for(let[r,i]=au(t);r;i=r,r=r.getParent()){let a=n.get(r);if(a!==void 0)return a===null?(iu(e,r)||z(276),{commonAncestor:r,type:`ancestor`}):i===null?(iu(t,r)||z(277),{commonAncestor:r,type:`descendant`}):((W(a)||iu(e,a))&&(W(i)||iu(t,i))&&r.is(a.getParent())&&r.is(i.getParent())||z(278),{a,b:i,commonAncestor:r,type:`branch`})}return null}function su(e,t){let{type:n,key:r,offset:i}=e,a=ol(e.key);return n===`text`?(V(a)||z(266,a.getType(),r),Wl(a,t,i)):(W(a)||z(267,a.getType(),r),bu(a,e.offset,t))}function cu(e,t){let{origin:n,direction:r}=t,i=r===`next`;Ll(t)?e.set(n.getKey(),t.offset,`text`):Rl(t)?V(n)?e.set(n.getKey(),Gl(n,r),`text`):e.set(n.getParentOrThrow().getKey(),n.getIndexWithinParent()+ +!!i,`element`):(zl(t)&&W(n)||z(268),e.set(n.getKey(),i?0:n.getChildrenSize(),`element`))}function lu(e){let t=U(),n=H(t)?t:Bo();return uu(n,e),wc(n),n}function uu(e,t){cu(e.anchor,t.anchor),cu(e.focus,t.focus)}function du(e){let{anchor:t,focus:n}=e,r=su(t,`next`),i=su(n,`next`),a=nu(r,i)<=0?`next`:`previous`;return eu(vu(r,a),vu(i,a))}function fu(e){let{direction:t,origin:n}=e,r=Ul(n,Nl(t)).getNodeAtCaret();return r?Ul(r,t):ql(n.getParentOrThrow(),t)}function pu(e,t=`root`){let n=[e];for(let r=zl(e)?e.getParentCaret(t):e.getSiblingCaret();r!==null;r=r.getParentCaret(t))n.push(fu(r));return n}function mu(e){return!!e&&e.origin.isAttached()}function hu(e,t=`removeEmptySlices`){if(e.isCollapsed())return e;let n=`root`,r=`next`,i=t,a=yu(e,r),o=pu(a.anchor,n),s=pu(a.focus.getFlipped(),n),c=new Set,l=[];for(let e of a.iterNodeCarets(n))if(zl(e))c.add(e.origin.getKey());else if(Rl(e)){let{origin:t}=e;W(t)&&!c.has(t.getKey())||l.push(t)}for(let e of l)e.remove();for(let e of a.getTextSlices()){if(!e)continue;let{origin:t}=e.caret,n=t.getTextContentSize(),a=fu(Ul(t,r)),c=t.getMode();if(Math.abs(e.distance)===n&&i===`removeEmptySlices`||c===`token`&&e.distance!==0)a.remove();else if(e.distance!==0){i=`removeEmptySlices`;let t=e.removeTextSlice(),n=e.caret.origin;if(c===`segmented`){let e=t.origin,n=_o(e.getTextContent()).setStyle(e.getStyle()).setFormat(e.getFormat());a.replaceOrInsert(n),t=Wl(n,r,t.offset)}n.is(o[0].origin)&&(o[0]=t),n.is(s[0].origin)&&(s[0]=t.getFlipped())}}let u,d;for(let e of o)if(mu(e)){u=gu(e);break}for(let e of s)if(mu(e)){d=gu(e);break}let f=function(e,t,n){if(!e||!t)return null;let r=e.getParentAtCaret(),i=t.getParentAtCaret();if(!r||!i)return null;let a=r.getParents().reverse();a.push(r);let o=i.getParents().reverse();o.push(i);let s=Math.min(a.length,o.length),c;for(c=0;c<s&&a[c]===o[c];c++);let l=(e,t)=>{let n;for(let r=c;r<e.length;r++){let i=e[r];if(nl(i))return;!n&&t(i)&&(n=i)}return n},u=l(a,_l),d=u&&l(o,(e=>n.has(e.getKey())&&_l(e)));return u&&d?[u,d]:null}(u,d,c);if(f){let[e,t]=f;ql(e,`previous`).splice(0,t.getChildren()),t.remove()}let p=[u,d,...o,...s].find(mu);if(p)return $l(vu(gu(p),e.direction));z(269,JSON.stringify(o.map((e=>e.origin.__key))))}function gu(e){let t=function(e){let t=e;for(;zl(t);){let e=Yl(t);if(!zl(e))break;t=e}return t}(e.getLatest()),{direction:n}=t;if(V(t.origin))return Ll(t)?t:Wl(t.origin,n,n);let r=t.getAdjacentCaret();return Rl(r)&&V(r.origin)?Wl(r.origin,n,Nl(n)):t}function _u(e){return Ll(e)&&e.offset!==Gl(e.origin,e.direction)}function vu(e,t){return e.direction===t?e:e.getFlipped()}function yu(e,t){return e.direction===t?e:eu(vu(e.focus,t),vu(e.anchor,t))}function bu(e,t,n){let r=ql(e,`next`);for(let e=0;e<t;e++){let e=r.getAdjacentCaret();if(e===null)break;r=e}return vu(r,n)}function xu(e){let{origin:t,offset:n,direction:r}=e;if(n===Gl(t,r))return e.getSiblingCaret();if(n===Gl(t,Nl(r)))return fu(e.getSiblingCaret());let[i]=t.splitText(n);return V(i)||z(281),vu(Ul(i,`next`),r)}function Su(e,t){return!0}function Cu(e,{$copyElementNode:t=rl,$splitTextPointCaretNext:n=xu,rootMode:r=`shadowRoot`,$shouldSplit:i=Su}={}){if(Ll(e))return n(e);let a=e.getParentCaret(r);if(a){let{origin:n}=a;if(zl(e)&&(!n.canBeEmpty()||!i(n,`first`)))return fu(a);let r=function(e){let t=[];for(let n=e.getAdjacentCaret();n;n=n.getAdjacentCaret())t.push(n.origin);return t}(e);(r.length>0||n.canBeEmpty()&&i(n,`last`))&&a.insert(t(n).splice(0,0,r))}return a}function wu(e,...t){let n=new URL(`https://lexical.dev/docs/error`),r=new URLSearchParams;r.append(`code`,e);for(let e of t)r.append(`v`,e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}var Tu=new Map;function Eu(e){let t={};if(!e)return t;let n=e.split(`;`);for(let e of n)if(e!==``){let[n,r]=e.split(/:([^]+)/);n&&r&&(t[n.trim()]=r.trim())}return t}function Du(e){let t=Tu.get(e);return t===void 0&&(t=Eu(e),Tu.set(e,t)),t}function Ou(e){let t=yl().getElementByKey(e.getKey());if(t===null)return null;let n=t.ownerDocument.defaultView;return n===null?null:n.getComputedStyle(t)}function ku(e){return Ou(js(e)?e:e.getParentOrThrow())}function Au(e){let t=ku(e);return t!==null&&t.direction===`rtl`}function ju(e,t){let n=e.getStartEndPoints();if(t.isSelected(e)&&!ac(t)&&n!==null){let[r,i]=n,a=e.isBackward(),o=r.getNode(),s=i.getNode(),c=t.is(o),l=t.is(s);if(c||l){let[n,r]=Ao(e),i=o.is(s),c=t.is(a?s:o),l=t.is(a?o:s),u,d=0;i?(d=n>r?r:n,u=n>r?n:r):c?(d=a?r:n,u=void 0):l&&(d=0,u=a?n:r),t.__text=t.__text.slice(d,u)}}return t}function Mu(e){if(e.type===`text`)return e.offset===e.getNode().getTextContentSize();let t=e.getNode();return W(t)||wu(177),e.offset===t.getChildrenSize()}function Nu(e){let t=e.getStyle(),n=Eu(t);Tu.set(t,n)}function Pu(e,t){let n=e.getFormatType(),r=e.getIndent();n!==t.getFormatType()&&t.setFormat(n),r!==t.getIndent()&&t.setIndent(r)}function Fu(e,t,n=Pu){if(e===null)return;let r=e.getStartEndPoints(),i=new Map,a=null;if(r){let[e,t]=r;a=Bo(),a.anchor.set(e.key,e.offset,e.type),a.focus.set(t.key,t.offset,t.type);let n=Hu(e.getNode(),_l),o=Hu(t.getNode(),_l);W(n)&&i.set(n.getKey(),n),W(o)&&i.set(o.getKey(),o)}for(let t of e.getNodes())if(W(t)&&_l(t))i.set(t.getKey(),t);else if(r===null){let e=Hu(t,_l);W(e)&&i.set(e.getKey(),e)}for(let[e,r]of i){let i=t();n(r,i),r.replace(i,!0),a&&(e===a.anchor.key&&a.anchor.set(i.getKey(),a.anchor.offset,a.anchor.type),e===a.focus.key&&a.focus.set(i.getKey(),a.focus.offset,a.focus.type))}a&&e.is(U())&&wc(a)}function Iu(e){let t=Lu(e);return t!==null&&t.writingMode===`vertical-rl`}function Lu(e){let t=e.anchor.getNode();return W(t)?Ou(t):ku(t)}function Ru(e,t){let n=Iu(e)?!t:t;Bu(e)&&(n=!n);let r=su(e.focus,n?`previous`:`next`);if(_u(r))return!1;for(let e of Ql(r)){if(zl(e))return!e.origin.isInline();if(!W(e.origin)){if(ks(e.origin))return!0;break}}return!1}function zu(e,t,n,r){e.modify(t?`extend`:`move`,n,r)}function Bu(e){let t=Lu(e);return t!==null&&t.direction===`rtl`}function Vu(e,t,n){let r=Bu(e),i;i=Iu(e)||r?!n:n,zu(e,t,i,`character`)}function Hu(e,t){let n=e;for(;n!==null&&n.getParent()!==null&&!t(n);)n=n.getParentOrThrow();return t(n)?n:null}function Uu(e,...t){let n=new URL(`https://lexical.dev/docs/error`),r=new URLSearchParams;r.append(`code`,e);for(let e of t)r.append(`v`,e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}var Wu=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0,Gu=Wu&&`documentMode`in document?document.documentMode:null;Wu&&/Mac|iPod|iPhone|iPad/.test(navigator.platform);var Ku=Wu&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent);!(!Wu||!(`InputEvent`in window)||Gu)&&`getTargetRanges`in new window.InputEvent(`input`),Wu&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),Wu&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&window.MSStream,Wu&&/Android/.test(navigator.userAgent),Wu&&/^(?=.*Chrome).*/i.test(navigator.userAgent),Wu&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent);function qu(...e){let t=[];for(let n of e)if(n&&typeof n==`string`)for(let[e]of n.matchAll(/\S+/g))t.push(e);return t}function Ju(...e){return()=>{for(let t=e.length-1;t>=0;t--)e[t]();e.length=0}}var Yu=Wu,Xu=Ku;function Zu(e,...t){let n=qu(...t);n.length>0&&e.classList.add(...n)}function Qu(e,...t){let n=qu(...t);n.length>0&&e.classList.remove(...n)}function $u(e){return e?e.getAdjacentCaret():null}function ed(e,t){let n=e;for(;n!=null;){if(n instanceof t)return n;n=n.getParent()}return null}function td(e){let t=nd(e,(e=>W(e)&&!e.isInline()));return W(t)||Uu(4,e.__key),t}var nd=(e,t)=>{let n=e;for(;n!==Sc()&&n!=null;){if(t(n))return n;n=n.getParent()}return null};function rd(e){let t=U()||Uo(),n;if(H(t))n=su(t.focus,`next`);else{if(t!=null){let e=t.getNodes(),r=e[e.length-1];r&&(n=Ul(r,`next`))}n||=ql(Sc(),`previous`).getFlipped().insert(Vs())}let r=id(e,n),i=Yl(r);return lu($l(zl(i)?gu(i):r)),e.getLatest()}function id(e,t,n){let r=vu(t,`next`);for(let e=r;e;e=Cu(e,n))r=e;return Ll(r)&&Uu(283),r.insert(e.isInline()?Vs().append(e):e),vu(Ul(e.getLatest(),`next`),t.direction)}function ad(e,t){let n=t();return e.replace(n),n.append(e),n}function od(e,t){return e!==null&&Object.getPrototypeOf(e).constructor.name===t.name}function sd(e,t){let n=[];for(let r=0;r<e.length;r++){let i=t(e[r]);i!==null&&n.push(i)}return n}var cd=!(Xu||!Yu)&&void 0;function ld(e){let t=1;if(function(){if(cd===void 0){let e=document.createElement(`div`);e.style.cssText=`position: absolute; opacity: 0; width: 100px; left: -1000px;`,document.body.appendChild(e);let t=e.getBoundingClientRect();e.style.setProperty(`zoom`,`2`),cd=e.getBoundingClientRect().width===t.width,document.body.removeChild(e)}return cd}())for(;e;)t*=Number(window.getComputedStyle(e).getPropertyValue(`zoom`)),e=e.parentElement;return t}var ud=0,dd=1,fd=2,pd=0,md=1,hd=2,gd=3,_d=4;function vd(e,t,n,r,i){if(e===null||n.size===0&&r.size===0&&!i)return pd;let a=t._selection,o=e._selection;if(i)return md;if(!(H(a)&&H(o)&&o.isCollapsed()&&a.isCollapsed()))return pd;let s=function(e,t,n){let r=e._nodeMap,i=[];for(let e of t){let t=r.get(e);t!==void 0&&i.push(t)}for(let[e,t]of n){if(!t)continue;let n=r.get(e);n===void 0||js(n)||i.push(n)}return i}(t,n,r);if(s.length===0)return pd;if(s.length>1){let n=t._nodeMap,r=n.get(a.anchor.key),i=n.get(o.anchor.key);return r&&i&&!e._nodeMap.has(r.__key)&&V(r)&&r.__text.length===1&&a.anchor.offset===1?hd:pd}let c=s[0],l=e._nodeMap.get(c.__key);if(!V(l)||!V(c)||l.__mode!==c.__mode)return pd;let u=l.__text,d=c.__text;if(u===d)return pd;let f=a.anchor,p=o.anchor;if(f.key!==p.key||f.type!==`text`)return pd;let m=f.offset,h=p.offset,g=d.length-u.length;return g===1&&h===m-1?hd:g===-1&&h===m+1?gd:g===-1&&h===m?_d:pd}function yd(e,t){let n=Date.now(),r=pd;return(i,a,o,s,c,l)=>{let u=Date.now();if(l.has(`historic`))return r=pd,n=u,fd;let d=vd(i,a,s,c,e.isComposing()),f=(()=>{let f=o===null||o.editor===e,p=l.has(Is);if(!p&&f&&l.has(`history-merge`))return ud;if(i===null)return dd;let m=a._selection;return s.size>0||c.size>0?!1===p&&d!==pd&&d===r&&u<n+t&&f||s.size===1&&function(e,t,n){let r=t._nodeMap.get(e),i=n._nodeMap.get(e),a=t._selection,o=n._selection;return!(H(a)&&H(o)&&a.anchor.type===`element`&&a.focus.type===`element`&&o.anchor.type===`text`&&o.focus.type===`text`||!V(r)||!V(i)||r.__parent!==i.__parent)&&JSON.stringify(t.read((()=>r.exportJSON())))===JSON.stringify(n.read((()=>i.exportJSON())))}(Array.from(s)[0],i,a)?ud:dd:m===null?fd:ud})();return n=u,r=d,f}}function bd(e){e.undoStack=[],e.redoStack=[],e.current=null}function xd(e,t,n){let r=yd(e,n);return Ju(e.registerCommand(zi,(()=>(function(e,t){let n=t.redoStack,r=t.undoStack;if(r.length!==0){let i=t.current,a=r.pop();i!==null&&(n.push(i),e.dispatchCommand(pa,!0)),r.length===0&&e.dispatchCommand(ma,!1),t.current=a||null,a&&a.editor.setEditorState(a.editorState,{tag:`historic`})}}(e,t),!0)),0),e.registerCommand(Bi,(()=>(function(e,t){let n=t.redoStack,r=t.undoStack;if(n.length!==0){let i=t.current;i!==null&&(r.push(i),e.dispatchCommand(ma,!0));let a=n.pop();n.length===0&&e.dispatchCommand(pa,!1),t.current=a||null,a&&a.editor.setEditorState(a.editorState,{tag:`historic`})}}(e,t),!0)),0),e.registerCommand(da,(()=>(bd(t),!1)),0),e.registerCommand(fa,(()=>(bd(t),e.dispatchCommand(pa,!1),e.dispatchCommand(ma,!1),!0)),0),e.registerUpdateListener((({editorState:n,prevEditorState:i,dirtyLeaves:a,dirtyElements:o,tags:s})=>{let c=t.current,l=t.redoStack,u=t.undoStack,d=c===null?null:c.editorState;if(c!==null&&n===d)return;let f=r(i,n,c,a,o,s);if(f===dd)l.length!==0&&(t.redoStack=[],e.dispatchCommand(pa,!1)),c!==null&&(u.push({...c}),e.dispatchCommand(ma,!0));else if(f===fd)return;t.current={editor:e,editorState:n}})))}function Sd(){return{current:null,redoStack:[],undoStack:[]}}function Cd({delay:e,externalHistoryState:t}){let[n]=Ln();return function(e,t,n=1e3){let r=(0,I.useMemo)((()=>t||Sd()),[t]);(0,I.useEffect)((()=>xd(e,r,n)),[n,e,r])}(n,t,e),null}function wd(e,t){let n=t.body?t.body.childNodes:[],r=[],i=[];for(let t=0;t<n.length;t++){let a=n[t];if(!Dd.has(a.nodeName)){let t=Od(a,e,i,!1);t!==null&&(r=r.concat(t))}}return function(e){for(let t of e)t.getNextSibling()instanceof Rs&&t.insertAfter(Qa());for(let t of e){let e=t.getChildren();for(let n of e)t.insertBefore(n);t.remove()}}(i),r}function Td(e,t){if(typeof document>`u`||typeof window>`u`&&global.window===void 0)throw Error(`To use $generateHtmlFromNodes in headless mode please initialize a headless browser implementation such as JSDom before calling this function.`);let n=document.createElement(`div`),r=Sc().getChildren();for(let i=0;i<r.length;i++)Ed(e,r[i],n,t);return n.innerHTML}function Ed(e,t,n,r=null){let i=r===null||t.isSelected(r),a=W(t)&&t.excludeFromCopy(`html`),o=t;if(r!==null){let e=Cl(t);e=V(e)&&r!==null?ju(r,e):e,o=e}let s=W(o)?o.getChildren():[],c=Xs(e,o.getType()),l;l=c&&c.exportDOM!==void 0?c.exportDOM(e,o):o.exportDOM(e);let{element:u,after:d}=l;if(!u)return!1;let f=document.createDocumentFragment();for(let n=0;n<s.length;n++){let a=s[n],o=Ed(e,a,f,r);!i&&W(t)&&o&&t.extractWithChild(a,r,`html`)&&(i=!0)}if(i&&!a){if((fl(u)||ml(u))&&u.append(f),n.append(u),d){let e=d.call(o,u);e&&(ml(u)?u.replaceChildren(e):u.replaceWith(e))}}else n.append(f);return i}var Dd=new Set([`STYLE`,`SCRIPT`]);function Od(e,t,n,r,i=new Map,a){let o=[];if(Dd.has(e.nodeName))return o;let s=null,c=function(e,t){let{nodeName:n}=e,r=t._htmlConversions.get(n.toLowerCase()),i=null;if(r!==void 0)for(let t of r){let n=t(e);n!==null&&(i===null||(i.priority||0)<=(n.priority||0))&&(i=n)}return i===null?null:i.conversion}(e,t),l=c?c(e):null,u=null;if(l!==null){u=l.after;let t=l.node;if(s=Array.isArray(t)?t[t.length-1]:t,s!==null){for(let[,e]of i)if(s=e(s,a),!s)break;s&&o.push(...Array.isArray(t)?t:[s])}l.forChild!=null&&i.set(e.nodeName,l.forChild)}let d=e.childNodes,f=[],p=(s==null||!nl(s))&&(s!=null&&Ro(s)||r);for(let e=0;e<d.length;e++)f.push(...Od(d[e],t,n,p,new Map(i),s));return u!=null&&(f=u(f)),gl(e)&&(f=kd(e,f,p?()=>{let e=new Rs;return n.push(e),e}:Vs)),s==null?f.length>0?o=o.concat(f):gl(e)&&function(e){return e.nextSibling==null||e.previousSibling==null?!1:hl(e.nextSibling)&&hl(e.previousSibling)}(e)&&(o=o.concat(Qa())):W(s)&&s.append(...f),o}function kd(e,t,n){let r=e.style.textAlign,i=[],a=[];for(let e=0;e<t.length;e++){let o=t[e];if(Ro(o))r&&!o.getFormat()&&o.setFormat(r),i.push(o);else if(a.push(o),e===t.length-1||e<t.length-1&&Ro(t[e+1])){let e=n();e.setFormat(r),e.append(...a),i.push(e),a=[]}}return i}function Ad(e,...t){let n=new URL(`https://lexical.dev/docs/error`),r=new URLSearchParams;r.append(`code`,e);for(let e of t)r.append(`v`,e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function jd(e,t=U()){return t??Ad(166),H(t)&&t.isCollapsed()||t.getNodes().length===0?``:Td(e,t)}function Md(e,t=U()){return t??Ad(166),H(t)&&t.isCollapsed()||t.getNodes().length===0?null:JSON.stringify(Id(e,t))}function Nd(e,t,n){let r=e.getData(`application/x-lexical-editor`);if(r)try{let e=JSON.parse(r);if(e.namespace===n._config.namespace&&Array.isArray(e.nodes))return Pd(n,Ld(e.nodes),t)}catch{}let i=e.getData(`text/html`),a=e.getData(`text/plain`);if(i&&a!==i)try{return Pd(n,wd(n,new DOMParser().parseFromString(function(e){return window.trustedTypes&&window.trustedTypes.createPolicy?window.trustedTypes.createPolicy(`lexical`,{createHTML:e=>e}).createHTML(e):e}(i),`text/html`)),t)}catch{}let o=a||e.getData(`text/uri-list`);if(o!=null)if(H(t)){let e=o.split(/(\r?\n|\t)/);e[e.length-1]===``&&e.pop();for(let t=0;t<e.length;t++){let n=U();if(H(n)){let r=e[t];r===`
|
|
22
|
-
`||r===`\r
|
|
23
|
-
`?n.insertParagraph():r===` `?n.insertNodes([bo()]):n.insertText(r)}}}else t.insertRawText(o)}function Pd(e,t,n){e.dispatchCommand(Oi,{nodes:t,selection:n})||(n.insertNodes(t),function(e){if(H(e)&&e.isCollapsed()){let t=e.anchor,n=null,r=su(t,`previous`);if(r)if(Ll(r))n=r.origin;else{let e=eu(r,ql(Sc(),`next`).getFlipped());for(let t of e){if(V(t.origin)){n=t.origin;break}if(W(t.origin)&&!t.origin.isInline())break}}if(n&&V(n)){let t=n.getFormat(),r=n.getStyle();e.format===t&&e.style===r||(e.format=t,e.style=r,e.dirty=!0)}}}(n))}function Fd(e,t,n,r=[]){let i=t===null||n.isSelected(t),a=W(n)&&n.excludeFromCopy(`html`),o=n;if(t!==null){let e=Cl(n);e=V(e)&&t!==null?ju(t,e):e,o=e}let s=W(o)?o.getChildren():[],c=function(e){let t=e.exportJSON(),n=e.constructor;if(t.type!==n.getType()&&Ad(58,n.name),W(e)){let e=t.children;Array.isArray(e)||Ad(59,n.name)}return t}(o);if(V(o)){let e=o.__text;e.length>0?c.text=e:i=!1}for(let r=0;r<s.length;r++){let a=s[r],o=Fd(e,t,a,c.children);!i&&W(n)&&o&&n.extractWithChild(a,t,`clone`)&&(i=!0)}if(i&&!a)r.push(c);else if(Array.isArray(c.children))for(let e=0;e<c.children.length;e++){let t=c.children[e];r.push(t)}return i}function Id(e,t){let n=[],r=Sc().getChildren();for(let i=0;i<r.length;i++)Fd(e,t,r[i],n);return{namespace:e._config.namespace,nodes:n}}function Ld(e){let t=[];for(let n=0;n<e.length;n++){let r=e[n],i=gs(r);V(i)&&Nu(i),t.push(i)}return t}var Rd=null;async function zd(e,t,n){if(Rd!==null)return!1;if(t!==null)return new Promise(((r,i)=>{e.update((()=>{r(Bd(e,t,n))}))}));let r=e.getRootElement(),i=e._window||window,a=window.document,o=ll(i);if(r===null||o===null)return!1;let s=a.createElement(`span`);s.style.cssText=`position: fixed; top: -1000px;`,s.append(a.createTextNode(`#`)),r.append(s);let c=new Range;return c.setStart(s,0),c.setEnd(s,1),o.removeAllRanges(),o.addRange(c),new Promise(((t,r)=>{let i=e.registerCommand(ca,(r=>(od(r,ClipboardEvent)&&(i(),Rd!==null&&(window.clearTimeout(Rd),Rd=null),t(Bd(e,r,n))),!0)),4);Rd=window.setTimeout((()=>{i(),Rd=null,t(!1)}),50),a.execCommand(`copy`),s.remove()}))}function Bd(e,t,n){if(n===void 0){let t=ll(e._window);if(!t)return!1;let r=t.anchorNode,i=t.focusNode;if(r!==null&&i!==null&&!ec(e,r,i))return!1;let a=U();if(a===null)return!1;n=Hd(a)}t.preventDefault();let r=t.clipboardData;return r!==null&&(Ud(r,n),!0)}var Vd=[[`text/html`,jd],[`application/x-lexical-editor`,Md]];function Hd(e=U()){let t={"text/plain":e?e.getTextContent():``};if(e){let n=yl();for(let[r,i]of Vd){let a=i(n,e);a!==null&&(t[r]=a)}}return t}function Ud(e,t){for(let n in t){let r=t[n];r!==void 0&&e.setData(n,r)}}function Wd(e,t){if(document.caretRangeFromPoint!==void 0){let n=document.caretRangeFromPoint(e,t);return n===null?null:{node:n.startContainer,offset:n.startOffset}}if(document.caretPositionFromPoint!==`undefined`){let n=document.caretPositionFromPoint(e,t);return n===null?null:{node:n.offsetNode,offset:n.offset}}return null}var Gd=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0,Kd=Gd&&`documentMode`in document?document.documentMode:null,qd=!(!Gd||!(`InputEvent`in window)||Kd)&&`getTargetRanges`in new window.InputEvent(`input`),Jd=Gd&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),Yd=Gd&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,Xd=Gd&&/^(?=.*Chrome).*/i.test(navigator.userAgent),Zd=Gd&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&!Xd,Qd=B(`DRAG_DROP_PASTE_FILE`),$d=class e extends Es{static getType(){return`quote`}static clone(t){return new e(t.__key)}createDOM(e){let t=document.createElement(`blockquote`);return Zu(t,e.theme.quote),t}updateDOM(e,t){return!1}static importDOM(){return{blockquote:e=>({conversion:of,priority:0})}}exportDOM(e){let{element:t}=super.exportDOM(e);if(fl(t)){this.isEmpty()&&t.append(document.createElement(`br`));let e=this.getFormatType();e&&(t.style.textAlign=e);let n=this.getDirection();n&&(t.dir=n)}return{element:t}}static importJSON(e){return ef().updateFromJSON(e)}insertNewAfter(e,t){let n=Vs(),r=this.getDirection();return n.setDirection(r),this.insertAfter(n,t),n}collapseAtStart(){let e=Vs();return this.getChildren().forEach((t=>e.append(t))),this.replace(e),!0}canMergeWhenEmpty(){return!0}};function ef(){return il(new $d)}function tf(e){return e instanceof $d}var nf=class e extends Es{static getType(){return`heading`}static clone(t){return new e(t.__tag,t.__key)}constructor(e,t){super(t),this.__tag=e}getTag(){return this.__tag}setTag(e){let t=this.getWritable();return this.__tag=e,t}createDOM(e){let t=this.__tag,n=document.createElement(t),r=e.theme.heading;if(r!==void 0){let e=r[t];Zu(n,e)}return n}updateDOM(e,t,n){return e.__tag!==this.__tag}static importDOM(){return{h1:e=>({conversion:af,priority:0}),h2:e=>({conversion:af,priority:0}),h3:e=>({conversion:af,priority:0}),h4:e=>({conversion:af,priority:0}),h5:e=>({conversion:af,priority:0}),h6:e=>({conversion:af,priority:0}),p:e=>{let t=e.firstChild;return t!==null&&rf(t)?{conversion:()=>({node:null}),priority:3}:null},span:e=>rf(e)?{conversion:e=>({node:sf(`h1`)}),priority:3}:null}}exportDOM(e){let{element:t}=super.exportDOM(e);if(fl(t)){this.isEmpty()&&t.append(document.createElement(`br`));let e=this.getFormatType();e&&(t.style.textAlign=e);let n=this.getDirection();n&&(t.dir=n)}return{element:t}}static importJSON(e){return sf(e.tag).updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setTag(e.tag)}exportJSON(){return{...super.exportJSON(),tag:this.getTag()}}insertNewAfter(e,t=!0){let n=e?e.anchor.offset:0,r=this.getLastDescendant(),i=!r||e&&e.anchor.key===r.getKey()&&n===r.getTextContentSize()||!e?Vs():sf(this.getTag()),a=this.getDirection();if(i.setDirection(a),this.insertAfter(i,t),n===0&&!this.isEmpty()&&e){let e=Vs();e.select(),this.replace(e,!0)}return i}collapseAtStart(){let e=this.isEmpty()?Vs():sf(this.getTag());return this.getChildren().forEach((t=>e.append(t))),this.replace(e),!0}extractWithChild(){return!0}};function rf(e){return e.nodeName.toLowerCase()===`span`&&e.style.fontSize===`26pt`}function af(e){let t=e.nodeName.toLowerCase(),n=null;return t!==`h1`&&t!==`h2`&&t!==`h3`&&t!==`h4`&&t!==`h5`&&t!==`h6`||(n=sf(t),e.style!==null&&(wl(e,n),n.setFormat(e.style.textAlign))),{node:n}}function of(e){let t=ef();return e.style!==null&&(t.setFormat(e.style.textAlign),wl(e,t)),{node:t}}function sf(e=`h1`){return il(new nf(e))}function cf(e){return e instanceof nf}function lf(e){let t=null;if(od(e,DragEvent)?t=e.dataTransfer:od(e,ClipboardEvent)&&(t=e.clipboardData),t===null)return[!1,[],!1];let n=t.types,r=n.includes(`Files`),i=n.includes(`text/html`)||n.includes(`text/plain`);return[r,Array.from(t.files),i]}function uf(e){let t=U();if(!H(t))return!1;let n=new Set,r=t.getNodes();for(let t=0;t<r.length;t++){let i=r[t],a=i.getKey();if(n.has(a))continue;let o=nd(i,(e=>W(e)&&!e.isInline()));if(o===null)continue;let s=o.getKey();o.canIndent()&&!n.has(s)&&(n.add(s),e(o))}return n.size>0}function df(e){return ks(yc(e))}function ff(e){for(let t of[`lowercase`,`uppercase`,`capitalize`])e.hasFormat(t)&&e.toggleFormat(t)}function pf(e){return Ju(e.registerCommand(ki,(e=>{let t=U();return!!Oo(t)&&(t.clear(),!0)}),0),e.registerCommand(Ai,(e=>{let t=U();return H(t)?(t.deleteCharacter(e),!0):!!Oo(t)&&(t.deleteNodes(),!0)}),0),e.registerCommand(Ii,(e=>{let t=U();return!!H(t)&&(t.deleteWord(e),!0)}),0),e.registerCommand(Li,(e=>{let t=U();return!!H(t)&&(t.deleteLine(e),!0)}),0),e.registerCommand(Ni,(t=>{let n=U();if(typeof t==`string`)n!==null&&n.insertText(t);else{if(n===null)return!1;let r=t.dataTransfer;if(r!=null)Nd(r,n,e);else if(H(n)){let e=t.data;return e&&n.insertText(e),!0}}return!0}),0),e.registerCommand(Fi,(()=>{let e=U();return!!H(e)&&(e.removeText(),!0)}),0),e.registerCommand(Ri,(e=>{let t=U();return!!H(t)&&(t.formatText(e),!0)}),0),e.registerCommand(ia,(e=>{let t=U();if(!H(t)&&!Oo(t))return!1;let n=t.getNodes();for(let t of n){let n=nd(t,(e=>W(e)&&!e.isInline()));n!==null&&n.setFormat(e)}return!0}),0),e.registerCommand(ji,(e=>{let t=U();return!!H(t)&&(t.insertLineBreak(e),!0)}),0),e.registerCommand(Mi,(()=>{let e=U();return!!H(e)&&(e.insertParagraph(),!0)}),0),e.registerCommand(ea,(()=>(Xo([bo()]),!0)),0),e.registerCommand(ta,(()=>uf((e=>{let t=e.getIndent();e.setIndent(t+1)}))),0),e.registerCommand(na,(()=>uf((e=>{let t=e.getIndent();t>0&&e.setIndent(Math.max(0,t-1))}))),0),e.registerCommand(Ki,(e=>{let t=U();if(Oo(t)){let e=t.getNodes();if(e.length>0)return e[0].selectPrevious(),!0}else if(H(t)){let n=Wc(t.focus,!0);if(!e.shiftKey&&ks(n)&&!n.isIsolated()&&!n.isInline())return n.selectPrevious(),e.preventDefault(),!0}return!1}),0),e.registerCommand(qi,(e=>{let t=U();if(Oo(t)){let e=t.getNodes();if(e.length>0)return e[0].selectNext(0,0),!0}else if(H(t)){if(function(e){let t=e.focus;return t.key===`root`&&t.offset===Sc().getChildrenSize()}(t))return e.preventDefault(),!0;let n=Wc(t.focus,!1);if(!e.shiftKey&&ks(n)&&!n.isIsolated()&&!n.isInline())return n.selectNext(),e.preventDefault(),!0}return!1}),0),e.registerCommand(Wi,(e=>{let t=U();if(Oo(t)){let n=t.getNodes();if(n.length>0)return e.preventDefault(),Au(n[0])?n[0].selectNext(0,0):n[0].selectPrevious(),!0}if(!H(t))return!1;if(Ru(t,!0)){let n=e.shiftKey;return e.preventDefault(),Vu(t,n,!0),!0}return!1}),0),e.registerCommand(Hi,(e=>{let t=U();if(Oo(t)){let n=t.getNodes();if(n.length>0)return e.preventDefault(),Au(n[0])?n[0].selectPrevious():n[0].selectNext(0,0),!0}if(!H(t))return!1;let n=e.shiftKey;return!!Ru(t,!1)&&(e.preventDefault(),Vu(t,n,!1),!0)}),0),e.registerCommand(Xi,(t=>{if(df(t.target))return!1;let n=U();if(H(n)){if(function(e){if(!e.isCollapsed())return!1;let{anchor:t}=e;if(t.offset!==0)return!1;let n=t.getNode();if(js(n))return!1;let r=td(n);return r.getIndent()>0&&(r.is(n)||n.is(r.getFirstDescendant()))}(n))return t.preventDefault(),e.dispatchCommand(na,void 0);if(Yd&&navigator.language===`ko-KR`)return!1}else if(!Oo(n))return!1;return t.preventDefault(),e.dispatchCommand(Ai,!0)}),0),e.registerCommand(Qi,(t=>{if(df(t.target))return!1;let n=U();return!(!H(n)&&!Oo(n))&&(t.preventDefault(),e.dispatchCommand(Ai,!1))}),0),e.registerCommand(Ji,(t=>{let n=U();if(!H(n))return!1;if(ff(n),t!==null){if((Yd||Jd||Zd)&&qd)return!1;if(t.preventDefault(),t.shiftKey)return e.dispatchCommand(ji,!1)}return e.dispatchCommand(Mi,void 0)}),0),e.registerCommand(Zi,(()=>!!H(U())&&(e.blur(),!0)),0),e.registerCommand(ra,(t=>{let[,n]=lf(t);if(n.length>0){let r=Wd(t.clientX,t.clientY);if(r!==null){let{offset:t,node:i}=r,a=yc(i);if(a!==null){let e=Bo();if(V(a))e.anchor.set(a.getKey(),t,`text`),e.focus.set(a.getKey(),t,`text`);else{let t=a.getParentOrThrow().getKey(),n=a.getIndexWithinParent()+1;e.anchor.set(t,n,`element`),e.focus.set(t,n,`element`)}wc(Gr(e))}e.dispatchCommand(Qd,n)}return t.preventDefault(),!0}return!!H(U())}),0),e.registerCommand(aa,(e=>{let[t]=lf(e),n=U();return!(t&&!H(n))}),0),e.registerCommand(oa,(e=>{let[t]=lf(e),n=U();if(t&&!H(n))return!1;let r=Wd(e.clientX,e.clientY);return r!==null&&ks(yc(r.node))&&e.preventDefault(),!0}),0),e.registerCommand(ua,(()=>(Bc(),!0)),0),e.registerCommand(ca,(t=>(zd(e,od(t,ClipboardEvent)?t:null),!0)),0),e.registerCommand(la,(t=>(async function(e,t){await zd(t,od(e,ClipboardEvent)?e:null),t.update((()=>{let e=U();H(e)?e.removeText():Oo(e)&&e.getNodes().forEach((e=>e.remove()))}))}(t,e),!0)),0),e.registerCommand(Pi,(t=>{let[,n,r]=lf(t);return n.length>0&&!r?(e.dispatchCommand(Qd,n),!0):pl(t.target)&&$s(t.target)?!1:U()!==null&&(function(e,t){e.preventDefault(),t.update((()=>{let n=U(),r=od(e,InputEvent)||od(e,KeyboardEvent)?null:e.clipboardData;r!=null&&n!==null&&Nd(r,n,t)}),{tag:`paste`})}(t,e),!0)}),0),e.registerCommand(Yi,(e=>{let t=U();return H(t)&&ff(t),!1}),0),e.registerCommand($i,(e=>{let t=U();return H(t)&&ff(t),!1}),0))}function mf(e,t,n,r){let i=e.length,a=0,o;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a<r.length;)o=r.slice(a,a+1e4),o.unshift(t,0),e.splice(...o),a+=1e4,t+=1e4}function hf(e,t){return e.length>0?(mf(e,e.length,0,t),e):t}var gf=Df(/[A-Za-z]/),_f=Df(/[\dA-Za-z]/),vf=Df(/[#-'*+\--9=?A-Z^-~]/);function yf(e){return e!==null&&(e<32||e===127)}var bf=Df(/\d/),xf=Df(/[\dA-Fa-f]/),Sf=Df(/[!-/:-@[-`{-~]/);function K(e){return e!==null&&e<-2}function Cf(e){return e!==null&&(e<0||e===32)}function wf(e){return e===-2||e===-1||e===32}var Tf=Df(/\p{P}|\p{S}/u),Ef=Df(/\s/);function Df(e){return t;function t(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function Of(e){if(e===null||Cf(e)||Ef(e))return 1;if(Tf(e))return 2}function kf(e,t,n){let r=[],i=-1;for(;++i<e.length;){let a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}function Af(e){let t=(e||{}).singleTilde,n={name:`strikethrough`,tokenize:i,resolveAll:r};return t??=!0,{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function r(e,t){let n=-1;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`strikethroughSequenceTemporary`&&e[n][1]._close){let r=n;for(;r--;)if(e[r][0]===`exit`&&e[r][1].type===`strikethroughSequenceTemporary`&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset===e[r][1].end.offset-e[r][1].start.offset){e[n][1].type=`strikethroughSequence`,e[r][1].type=`strikethroughSequence`;let i={type:`strikethrough`,start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},a={type:`strikethroughText`,start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},o=[[`enter`,i,t],[`enter`,e[r][1],t],[`exit`,e[r][1],t],[`enter`,a,t]],s=t.parser.constructs.insideSpan.null;s&&mf(o,o.length,0,kf(s,e.slice(r+1,n),t)),mf(o,o.length,0,[[`exit`,a,t],[`enter`,e[n][1],t],[`exit`,e[n][1],t],[`exit`,i,t]]),mf(e,r-1,n-r+3,o),n=r+o.length-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`strikethroughSequenceTemporary`&&(e[n][1].type=`data`);return e}function i(e,n,r){let i=this.previous,a=this.events,o=0;return s;function s(t){return i===126&&a[a.length-1][1].type!==`characterEscape`?r(t):(e.enter(`strikethroughSequenceTemporary`),c(t))}function c(a){let s=Of(i);if(a===126)return o>1?r(a):(e.consume(a),o++,c);if(o<2&&!t)return r(a);let l=e.exit(`strikethroughSequenceTemporary`),u=Of(a);return l._open=!u||u===2&&!!s,l._close=!s||s===2&&!!u,n(a)}}}var jf=[`autolink`,`destinationLiteral`,`destinationRaw`,`reference`,`titleQuote`,`titleApostrophe`];If.peek=Lf;function Mf(){return{canContainEols:[`delete`],enter:{strikethrough:Pf},exit:{strikethrough:Ff}}}function Nf(){return{unsafe:[{character:`~`,inConstruct:`phrasing`,notInConstruct:jf}],handlers:{delete:If}}}function Pf(e){this.enter({type:`delete`,children:[]},e)}function Ff(e){this.exit(e)}function If(e,t,n,r){let i=n.createTracker(r),a=n.enter(`strikethrough`),o=i.move(`~~`);return o+=n.containerPhrasing(e,{...i.current(),before:o,after:`~`}),o+=i.move(`~~`),a(),o}function Lf(){return`~`}Uf.peek=Wf;var Rf=[`autolink`,`destinationLiteral`,`destinationRaw`,`reference`,`titleQuote`,`titleApostrophe`],zf={canContainEols:[`highlight`],enter:{highlight:Bf},exit:{highlight:Vf}};function Bf(e){this.enter({type:`highlight`,children:[]},e)}function Vf(e){this.exit(e)}var Hf={unsafe:[{character:`=`,inConstruct:`phrasing`,notInConstruct:Rf}],handlers:{highlight:Uf}};function Uf(e,t,n,r){let i=n.createTracker(r),a=n.enter(`highlight`),o=i.move(`==`);return o+=i.move(n.containerPhrasing(e,{before:o,after:`=`,...i.current()})),o+=i.move(`==`),a(),o}function Wf(){return`=`}function Gf(e,t){let n=String(e);if(typeof t!=`string`)throw TypeError(`Expected character`);let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}var Kf=`AElig.AMP.Aacute.Acirc.Agrave.Aring.Atilde.Auml.COPY.Ccedil.ETH.Eacute.Ecirc.Egrave.Euml.GT.Iacute.Icirc.Igrave.Iuml.LT.Ntilde.Oacute.Ocirc.Ograve.Oslash.Otilde.Ouml.QUOT.REG.THORN.Uacute.Ucirc.Ugrave.Uuml.Yacute.aacute.acirc.acute.aelig.agrave.amp.aring.atilde.auml.brvbar.ccedil.cedil.cent.copy.curren.deg.divide.eacute.ecirc.egrave.eth.euml.frac12.frac14.frac34.gt.iacute.icirc.iexcl.igrave.iquest.iuml.laquo.lt.macr.micro.middot.nbsp.not.ntilde.oacute.ocirc.ograve.ordf.ordm.oslash.otilde.ouml.para.plusmn.pound.quot.raquo.reg.sect.shy.sup1.sup2.sup3.szlig.thorn.times.uacute.ucirc.ugrave.uml.uuml.yacute.yen.yuml`.split(`.`),qf={0:`�`,128:`€`,130:`‚`,131:`ƒ`,132:`„`,133:`…`,134:`†`,135:`‡`,136:`ˆ`,137:`‰`,138:`Š`,139:`‹`,140:`Œ`,142:`Ž`,145:`‘`,146:`’`,147:`“`,148:`”`,149:`•`,150:`–`,151:`—`,152:`˜`,153:`™`,154:`š`,155:`›`,156:`œ`,158:`ž`,159:`Ÿ`};function Jf(e){let t=typeof e==`string`?e.charCodeAt(0):e;return t>=48&&t<=57}function Yf(e){let t=typeof e==`string`?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function Xf(e){let t=typeof e==`string`?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}function Zf(e){return Xf(e)||Jf(e)}var Qf=document.createElement(`i`);function $f(e){let t=`&`+e+`;`;Qf.innerHTML=t;let n=Qf.textContent;return n.charCodeAt(n.length-1)===59&&e!==`semi`||n===t?!1:n}var ep=[``,`Named character references must be terminated by a semicolon`,`Numeric character references must be terminated by a semicolon`,`Named character references cannot be empty`,`Numeric character references cannot be empty`,`Named character references must be known`,`Numeric character references cannot be disallowed`,`Numeric character references cannot be outside the permissible Unicode range`];function tp(e,t){let n=t||{},r=typeof n.additional==`string`?n.additional.charCodeAt(0):n.additional,i=[],a=0,o=-1,s=``,c,l;n.position&&(`start`in n.position||`indent`in n.position?(l=n.position.indent,c=n.position.start):c=n.position);let u=(c?c.line:0)||1,d=(c?c.column:0)||1,f=m(),p;for(a--;++a<=e.length;)if(p===10&&(d=(l?l[o]:0)||1),p=e.charCodeAt(a),p===38){let t=e.charCodeAt(a+1);if(t===9||t===10||t===12||t===32||t===38||t===60||Number.isNaN(t)||r&&t===r){s+=String.fromCharCode(p),d++;continue}let o=a+1,c=o,l=o,u;if(t===35){l=++c;let t=e.charCodeAt(l);t===88||t===120?(u=`hexadecimal`,l=++c):u=`decimal`}else u=`named`;let _=``,v=``,y=``,b=u===`named`?Zf:u===`decimal`?Jf:Yf;for(l--;++l<=e.length;){let t=e.charCodeAt(l);if(!b(t))break;y+=String.fromCharCode(t),u===`named`&&Kf.includes(y)&&(_=y,v=$f(y))}let x=e.charCodeAt(l)===59;if(x){l++;let e=u===`named`?$f(y):!1;e&&(_=y,v=e)}let S=1+l-o,C=``;if(!(!x&&n.nonTerminated===!1))if(!y)u!==`named`&&h(4,S);else if(u===`named`){if(x&&!v)h(5,1);else if(_!==y&&(l=c+_.length,S=1+l-c,x=!1),!x){let t=_?1:3;if(n.attribute){let n=e.charCodeAt(l);n===61?(h(t,S),v=``):Zf(n)?v=``:h(t,S)}else h(t,S)}C=v}else{x||h(2,S);let e=Number.parseInt(y,u===`hexadecimal`?16:10);if(np(e))h(7,S),C=`�`;else if(e in qf)h(6,S),C=qf[e];else{let t=``;rp(e)&&h(6,S),e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10|55296),e=56320|e&1023),C=t+String.fromCharCode(e)}}if(C){g(),f=m(),a=l-1,d+=l-o+1,i.push(C);let t=m();t.offset++,n.reference&&n.reference.call(n.referenceContext||void 0,C,{start:f,end:t},e.slice(o-1,l)),f=t}else y=e.slice(o-1,l),s+=y,d+=y.length,a=l-1}else p===10&&(u++,o++,d=0),Number.isNaN(p)?g():(s+=String.fromCharCode(p),d++);return i.join(``);function m(){return{line:u,column:d,offset:a+((c?c.offset:0)||0)}}function h(e,t){let r;n.warning&&(r=m(),r.column+=t,r.offset+=t,n.warning.call(n.warningContext||void 0,ep[e],r,e))}function g(){s&&=(i.push(s),n.text&&n.text.call(n.textContext||void 0,s,{start:f,end:m()}),``)}}function np(e){return e>=55296&&e<=57343||e>1114111}function rp(e){return e>=1&&e<=8||e===11||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(e&65535)==65535||(e&65535)==65534}var ip=/["&'<>`]/g,ap=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,op=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,sp=/[|\\{}()[\]^$+*?.]/g,cp=new WeakMap;function lp(e,t){if(e=e.replace(t.subset?up(t.subset):ip,r),t.subset||t.escapeOnly)return e;return e.replace(ap,n).replace(op,r);function n(e,n,r){return t.format((e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536,r.charCodeAt(n+2),t)}function r(e,n,r){return t.format(e.charCodeAt(0),r.charCodeAt(n+1),t)}}function up(e){let t=cp.get(e);return t||(t=dp(e),cp.set(e,t)),t}function dp(e){let t=[],n=-1;for(;++n<e.length;)t.push(e[n].replace(sp,`\\$&`));return RegExp(`(?:`+t.join(`|`)+`)`,`g`)}function fp(e){return`&#x`+e.toString(16).toUpperCase()+`;`}function pp(e,t){return lp(e,Object.assign({format:fp},t))}function mp(e){return!e||typeof e!=`object`?``:`position`in e||`type`in e?gp(e.position):`start`in e||`end`in e?gp(e):`line`in e||`column`in e?hp(e):``}function hp(e){return _p(e&&e.line)+`:`+_p(e&&e.column)}function gp(e){return hp(e&&e.start)+`-`+hp(e&&e.end)}function _p(e){return e&&typeof e==`number`?e:1}var vp=class extends Error{constructor(e,t,n){super(),typeof t==`string`&&(n=t,t=void 0);let r=``,i={},a=!1;if(t&&(i=`line`in t&&`column`in t||`start`in t&&`end`in t?{place:t}:`type`in t?{ancestors:[t],place:t.position}:{...t}),typeof e==`string`?r=e:!i.cause&&e&&(a=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&typeof n==`string`){let e=n.indexOf(`:`);e===-1?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let o=i.place&&`start`in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file=``,this.message=r,this.line=o?o.line:void 0,this.name=mp(i.place)||`1:1`,this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=a&&i.cause&&typeof i.cause.stack==`string`?i.cause.stack:``,this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};vp.prototype.file=``,vp.prototype.name=``,vp.prototype.reason=``,vp.prototype.message=``,vp.prototype.stack=``,vp.prototype.column=void 0,vp.prototype.line=void 0,vp.prototype.ancestors=void 0,vp.prototype.cause=void 0,vp.prototype.fatal=void 0,vp.prototype.place=void 0,vp.prototype.ruleId=void 0,vp.prototype.source=void 0;var yp=` `;function bp(){return{canContainEols:[`mdxJsxTextElement`],enter:{mdxJsxFlowTag:r,mdxJsxFlowTagClosingMarker:i,mdxJsxFlowTagAttribute:d,mdxJsxFlowTagExpressionAttribute:f,mdxJsxFlowTagAttributeValueLiteral:e,mdxJsxFlowTagAttributeValueExpression:e,mdxJsxFlowTagSelfClosingMarker:o,mdxJsxTextTag:r,mdxJsxTextTagClosingMarker:i,mdxJsxTextTagAttribute:d,mdxJsxTextTagExpressionAttribute:f,mdxJsxTextTagAttributeValueLiteral:e,mdxJsxTextTagAttributeValueExpression:e,mdxJsxTextTagSelfClosingMarker:o},exit:{mdxJsxFlowTagClosingMarker:s,mdxJsxFlowTagNamePrimary:c,mdxJsxFlowTagNameMember:l,mdxJsxFlowTagNameLocal:u,mdxJsxFlowTagExpressionAttribute:p,mdxJsxFlowTagExpressionAttributeValue:n,mdxJsxFlowTagAttributeNamePrimary:m,mdxJsxFlowTagAttributeNameLocal:h,mdxJsxFlowTagAttributeValueLiteral:g,mdxJsxFlowTagAttributeValueLiteralValue:n,mdxJsxFlowTagAttributeValueExpression:_,mdxJsxFlowTagAttributeValueExpressionValue:n,mdxJsxFlowTagSelfClosingMarker:v,mdxJsxFlowTag:y,mdxJsxTextTagClosingMarker:s,mdxJsxTextTagNamePrimary:c,mdxJsxTextTagNameMember:l,mdxJsxTextTagNameLocal:u,mdxJsxTextTagExpressionAttribute:p,mdxJsxTextTagExpressionAttributeValue:n,mdxJsxTextTagAttributeNamePrimary:m,mdxJsxTextTagAttributeNameLocal:h,mdxJsxTextTagAttributeValueLiteral:g,mdxJsxTextTagAttributeValueLiteralValue:n,mdxJsxTextTagAttributeValueExpression:_,mdxJsxTextTagAttributeValueExpressionValue:n,mdxJsxTextTagSelfClosingMarker:v,mdxJsxTextTag:y}};function e(){this.buffer()}function t(e){return{line:e.line,column:e.column,offset:e.offset}}function n(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function r(e){let t={name:void 0,attributes:[],close:!1,selfClosing:!1,start:e.start,end:e.end};this.data.mdxJsxTagStack||(this.data.mdxJsxTagStack=[]),this.data.mdxJsxTag=t,this.buffer()}function i(e){if(this.data.mdxJsxTagStack.length===0)throw new vp("Unexpected closing slash `/` in tag, expected an open tag first",{start:e.start,end:e.end},`mdast-util-mdx-jsx:unexpected-closing-slash`)}function a(e){if(this.data.mdxJsxTag.close)throw new vp(`Unexpected attribute in closing tag, expected the end of the tag`,{start:e.start,end:e.end},`mdast-util-mdx-jsx:unexpected-attribute`)}function o(e){if(this.data.mdxJsxTag.close)throw new vp("Unexpected self-closing slash `/` in closing tag, expected the end of the tag",{start:e.start,end:e.end},`mdast-util-mdx-jsx:unexpected-self-closing-slash`)}function s(){let e=this.data.mdxJsxTag;e.close=!0}function c(e){let t=this.data.mdxJsxTag;t.name=this.sliceSerialize(e)}function l(e){let t=this.data.mdxJsxTag;t.name+=`.`+this.sliceSerialize(e)}function u(e){let t=this.data.mdxJsxTag;t.name+=`:`+this.sliceSerialize(e)}function d(e){let n=this.data.mdxJsxTag;a.call(this,e),n.attributes.push({type:`mdxJsxAttribute`,name:``,value:null,position:{start:t(e.start),end:void 0}})}function f(e){let n=this.data.mdxJsxTag;a.call(this,e),n.attributes.push({type:`mdxJsxExpressionAttribute`,value:``,position:{start:t(e.start),end:void 0}}),this.buffer()}function p(e){let n=this.data.mdxJsxTag,r=n.attributes[n.attributes.length-1];r.type;let i=e.estree;r.value=this.resume(),r.position,r.position.end=t(e.end),i&&(r.data={estree:i})}function m(e){let n=this.data.mdxJsxTag,r=n.attributes[n.attributes.length-1];r.type,r.name=this.sliceSerialize(e),r.position,r.position.end=t(e.end)}function h(e){let n=this.data.mdxJsxTag,r=n.attributes[n.attributes.length-1];r.type,r.name+=`:`+this.sliceSerialize(e),r.position,r.position.end=t(e.end)}function g(e){let n=this.data.mdxJsxTag,r=n.attributes[n.attributes.length-1];r.value=tp(this.resume(),{nonTerminated:!1}),r.position,r.position.end=t(e.end)}function _(e){let n=this.data.mdxJsxTag,r=n.attributes[n.attributes.length-1];r.type;let i={type:`mdxJsxAttributeValueExpression`,value:this.resume()},a=e.estree;a&&(i.data={estree:a}),r.value=i,r.position,r.position.end=t(e.end)}function v(){let e=this.data.mdxJsxTag;e.selfClosing=!0}function y(e){let t=this.data.mdxJsxTag,n=this.data.mdxJsxTagStack,r=n[n.length-1];if(t.close&&r.name!==t.name)throw new vp("Unexpected closing tag `"+S(t)+"`, expected corresponding closing tag for `"+S(r)+"` ("+mp(r)+`)`,{start:e.start,end:e.end},`mdast-util-mdx-jsx:end-tag-mismatch`);this.resume(),t.close?n.pop():this.enter({type:e.type===`mdxJsxTextTag`?`mdxJsxTextElement`:`mdxJsxFlowElement`,name:t.name||null,attributes:t.attributes,children:[]},e,b),t.selfClosing||t.close?this.exit(e,x):n.push(t)}function b(e,t){let n=this.data.mdxJsxTagStack,r=n[n.length-1],i=e?" before the end of `"+e.type+"`":``,a=e?{start:e.start,end:e.end}:void 0;throw new vp("Expected a closing tag for `"+S(r)+"` ("+mp({start:t.start,end:t.end})+`)`+i,a,`mdast-util-mdx-jsx:end-tag-mismatch`)}function x(e,t){let n=this.data.mdxJsxTag;throw new vp("Expected the closing tag `"+S(n)+"` either after the end of `"+t.type+"` ("+mp(t.end)+") or another opening tag after the start of `"+t.type+"` ("+mp(t.start)+`)`,{start:e.start,end:e.end},`mdast-util-mdx-jsx:end-tag-mismatch`)}function S(e){return`<`+(e.close?`/`:``)+(e.name||``)+`>`}}function xp(e){let t=e||{},n=t.quote||`"`,r=t.quoteSmart||!1,i=t.tightSelfClosing||!1,a=t.printWidth||1/0,o=n===`"`?`'`:`"`;if(n!==`"`&&n!==`'`)throw Error("Cannot serialize attribute values with `"+n+"` for `options.quote`, expected `\"`, or `'`");return s.peek=Tp,{handlers:{mdxJsxFlowElement:s,mdxJsxTextElement:s},unsafe:[{character:`<`,inConstruct:[`phrasing`]},{atBreak:!0,character:`<`}],fences:!0,resourceLink:!0};function s(e,t,s,c){let l=e.type===`mdxJsxFlowElement`,u=e.name?!e.children||e.children.length===0:!1,d=wp(Cp(s)),f=s.createTracker(c),p=s.createTracker(c),m=[],h=(l?d:``)+`<`+(e.name||``),g=s.enter(e.type);if(f.move(h),p.move(h),e.attributes&&e.attributes.length>0){if(!e.name)throw Error(`Cannot serialize fragment w/ attributes`);let t=-1;for(;++t<e.attributes.length;){let i=e.attributes[t],a;if(i.type===`mdxJsxExpressionAttribute`)a=`{`+(i.value||``)+`}`;else{if(!i.name)throw Error(`Cannot serialize attribute w/o name`);let e=i.value,t=i.name,s=``;if(e!=null)if(typeof e==`object`)s=`{`+(e.value||``)+`}`;else{let t=r&&Gf(e,n)>Gf(e,o)?o:n;s=t+pp(e,{subset:[t]})+t}a=t+(s?`=`:``)+s}m.push(a)}}let _=!1,v=m.join(` `);l&&(/\r?\n|\r/.test(v)||f.current().now.column+v.length+(u?i?2:3:1)>a)&&(_=!0);let y=f,b=h;if(_){y=p;let e=-1;for(;++e<m.length;)m[e]=d+yp+m[e];b+=y.move(`
|
|
24
|
-
`+m.join(`
|
|
25
|
-
`)+`
|
|
26
|
-
`+d)}else v&&(b+=y.move(` `+v));return u&&(b+=y.move((i||_?``:` `)+`/`)),b+=y.move(`>`),e.children&&e.children.length>0&&(e.type===`mdxJsxTextElement`?b+=y.move(s.containerPhrasing(e,{...y.current(),before:`>`,after:`<`})):(y.shift(2),b+=y.move(`
|
|
27
|
-
`),b+=y.move(Sp(e,s,y.current())),b+=y.move(`
|
|
28
|
-
`))),u||(b+=y.move((l?d:``)+`</`+(e.name||``)+`>`)),g(),b}}function Sp(e,t,n){let r=t.indexStack,i=e.children,a=t.createTracker(n),o=wp(Cp(t)),s=[],c=-1;for(r.push(-1);++c<i.length;){let n=i[c];r[r.length-1]=c;let l={before:`
|
|
29
|
-
`,after:`
|
|
30
|
-
`,...a.current()},u=t.handle(n,e,t,l),d=n.type===`mdxJsxFlowElement`?u:t.indentLines(u,function(e,t,n){return(n?``:o)+e});s.push(a.move(d)),n.type!==`list`&&(t.bulletLastUsed=void 0),c<i.length-1&&s.push(a.move(`
|
|
31
|
-
|
|
32
|
-
`))}return r.pop(),s.join(``)}function Cp(e){let t=0,n=e.stack.length;for(;--n>-1;){let r=e.stack[n];if(r===`blockquote`||r===`listItem`)break;r===`mdxJsxFlowElement`&&t++}return t}function wp(e){return yp.repeat(e)}function Tp(){return`<`}var Ep=Object.prototype.hasOwnProperty;function Dp(e,t,n){for(n of e.keys())if(Op(n,t))return n}function Op(e,t){var n,r,i;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&Op(e[r],t[r]););return r===-1}if(n===Set){if(e.size!==t.size)return!1;for(r of e)if(i=r,i&&typeof i==`object`&&(i=Dp(t,i),!i)||!t.has(i))return!1;return!0}if(n===Map){if(e.size!==t.size)return!1;for(r of e)if(i=r[0],i&&typeof i==`object`&&(i=Dp(t,i),!i)||!Op(r[1],t.get(i)))return!1;return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((r=e.byteLength)===t.byteLength)for(;r--&&e.getInt8(r)===t.getInt8(r););return r===-1}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===t.byteLength)for(;r--&&e[r]===t[r];);return r===-1}if(!n||typeof e==`object`){for(n in r=0,e)if(Ep.call(e,n)&&++r&&!Ep.call(t,n)||!(n in t)||!Op(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}var kp,Ap,jp,Mp,Np=!0;typeof process<`u`&&({FORCE_COLOR:kp,NODE_DISABLE_COLORS:Ap,NO_COLOR:jp,TERM:Mp}={},Np=process.stdout&&process.stdout.isTTY);var Pp={enabled:!Ap&&jp==null&&Mp!==`dumb`&&(kp!=null&&kp!==`0`||Np),reset:Lp(0,0),bold:Lp(1,22),dim:Lp(2,22),italic:Lp(3,23),underline:Lp(4,24),inverse:Lp(7,27),hidden:Lp(8,28),strikethrough:Lp(9,29),black:Lp(30,39),red:Lp(31,39),green:Lp(32,39),yellow:Lp(33,39),blue:Lp(34,39),magenta:Lp(35,39),cyan:Lp(36,39),white:Lp(37,39),gray:Lp(90,39),grey:Lp(90,39),bgBlack:Lp(40,49),bgRed:Lp(41,49),bgGreen:Lp(42,49),bgYellow:Lp(43,49),bgBlue:Lp(44,49),bgMagenta:Lp(45,49),bgCyan:Lp(46,49),bgWhite:Lp(47,49)};function Fp(e,t){let n=0,r,i=``,a=``;for(;n<e.length;n++)r=e[n],i+=r.open,a+=r.close,~t.indexOf(r.close)&&(t=t.replace(r.rgx,r.close+r.open));return i+t+a}function Ip(e,t){let n={has:e,keys:t};return n.reset=Pp.reset.bind(n),n.bold=Pp.bold.bind(n),n.dim=Pp.dim.bind(n),n.italic=Pp.italic.bind(n),n.underline=Pp.underline.bind(n),n.inverse=Pp.inverse.bind(n),n.hidden=Pp.hidden.bind(n),n.strikethrough=Pp.strikethrough.bind(n),n.black=Pp.black.bind(n),n.red=Pp.red.bind(n),n.green=Pp.green.bind(n),n.yellow=Pp.yellow.bind(n),n.blue=Pp.blue.bind(n),n.magenta=Pp.magenta.bind(n),n.cyan=Pp.cyan.bind(n),n.white=Pp.white.bind(n),n.gray=Pp.gray.bind(n),n.grey=Pp.grey.bind(n),n.bgBlack=Pp.bgBlack.bind(n),n.bgRed=Pp.bgRed.bind(n),n.bgGreen=Pp.bgGreen.bind(n),n.bgYellow=Pp.bgYellow.bind(n),n.bgBlue=Pp.bgBlue.bind(n),n.bgMagenta=Pp.bgMagenta.bind(n),n.bgCyan=Pp.bgCyan.bind(n),n.bgWhite=Pp.bgWhite.bind(n),n}function Lp(e,t){let n={open:`\x1b[${e}m`,close:`\x1b[${t}m`,rgx:RegExp(`\\x1b\\[${t}m`,`g`)};return function(t){return this!==void 0&&this.has!==void 0?(~this.has.indexOf(e)||(this.has.push(e),this.keys.push(n)),t===void 0?this:Pp.enabled?Fp(this.keys,t+``):t+``):t===void 0?Ip([e],[n]):Pp.enabled?Fp([n],t+``):t+``}}function Rp(){}Rp.prototype={diff:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.callback;typeof n==`function`&&(r=n,n={}),this.options=n;var i=this;function a(e){return r?(setTimeout(function(){r(void 0,e)},0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e)),t=this.removeEmpty(this.tokenize(t));var o=t.length,s=e.length,c=1,l=o+s;n.maxEditLength&&(l=Math.min(l,n.maxEditLength));var u=n.timeout??1/0,d=Date.now()+u,f=[{oldPos:-1,lastComponent:void 0}],p=this.extractCommon(f[0],t,e,0);if(f[0].oldPos+1>=s&&p+1>=o)return a([{value:this.join(t),count:t.length}]);var m=-1/0,h=1/0;function g(){for(var n=Math.max(m,-c);n<=Math.min(h,c);n+=2){var r=void 0,l=f[n-1],u=f[n+1];l&&(f[n-1]=void 0);var d=!1;if(u){var g=u.oldPos-n;d=u&&0<=g&&g<o}var _=l&&l.oldPos+1<s;if(!d&&!_){f[n]=void 0;continue}if(r=!_||d&&l.oldPos+1<u.oldPos?i.addToPath(u,!0,void 0,0):i.addToPath(l,void 0,!0,1),p=i.extractCommon(r,t,e,n),r.oldPos+1>=s&&p+1>=o)return a(zp(i,r.lastComponent,t,e,i.useLongestToken));f[n]=r,r.oldPos+1>=s&&(h=Math.min(h,n-1)),p+1>=o&&(m=Math.max(m,n+1))}c++}if(r)(function e(){setTimeout(function(){if(c>l||Date.now()>d)return r();g()||e()},0)})();else for(;c<=l&&Date.now()<=d;){var _=g();if(_)return _}},addToPath:function(e,t,n,r){var i=e.lastComponent;return i&&i.added===t&&i.removed===n?{oldPos:e.oldPos+r,lastComponent:{count:i.count+1,added:t,removed:n,previousComponent:i.previousComponent}}:{oldPos:e.oldPos+r,lastComponent:{count:1,added:t,removed:n,previousComponent:i}}},extractCommon:function(e,t,n,r){for(var i=t.length,a=n.length,o=e.oldPos,s=o-r,c=0;s+1<i&&o+1<a&&this.equals(t[s+1],n[o+1]);)s++,o++,c++;return c&&(e.lastComponent={count:c,previousComponent:e.lastComponent}),e.oldPos=o,s},equals:function(e,t){return this.options.comparator?this.options.comparator(e,t):e===t||this.options.ignoreCase&&e.toLowerCase()===t.toLowerCase()},removeEmpty:function(e){for(var t=[],n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t},castInput:function(e){return e},tokenize:function(e){return e.split(``)},join:function(e){return e.join(``)}};function zp(e,t,n,r,i){for(var a=[],o;t;)a.push(t),o=t.previousComponent,delete t.previousComponent,t=o;a.reverse();for(var s=0,c=a.length,l=0,u=0;s<c;s++){var d=a[s];if(!d.removed){if(!d.added&&i){var f=n.slice(l,l+d.count);f=f.map(function(e,t){var n=r[u+t];return n.length>e.length?n:e}),d.value=e.join(f)}else d.value=e.join(n.slice(l,l+d.count));l+=d.count,d.added||(u+=d.count)}else if(d.value=e.join(r.slice(u,u+d.count)),u+=d.count,s&&a[s-1].added){var p=a[s-1];a[s-1]=a[s],a[s]=p}}var m=a[c-1];return c>1&&typeof m.value==`string`&&(m.added||m.removed)&&e.equals(``,m.value)&&(a[c-2].value+=m.value,a.pop()),a}var Bp=new Rp;function Vp(e,t,n){return Bp.diff(e,t,n)}var Hp=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,Up=/\S/,Wp=new Rp;Wp.equals=function(e,t){return this.options.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e===t||this.options.ignoreWhitespace&&!Up.test(e)&&!Up.test(t)},Wp.tokenize=function(e){for(var t=e.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),n=0;n<t.length-1;n++)!t[n+1]&&t[n+2]&&Hp.test(t[n])&&Hp.test(t[n+2])&&(t[n]+=t[n+2],t.splice(n+1,2),n--);return t};var Gp=new Rp;Gp.tokenize=function(e){this.options.stripTrailingCr&&(e=e.replace(/\r\n/g,`
|
|
33
|
-
`));var t=[],n=e.split(/(\n|\r\n)/);n[n.length-1]||n.pop();for(var r=0;r<n.length;r++){var i=n[r];r%2&&!this.options.newlineIsToken?t[t.length-1]+=i:(this.options.ignoreWhitespace&&(i=i.trim()),t.push(i))}return t};function Kp(e,t,n){return Gp.diff(e,t,n)}var qp=new Rp;qp.tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)};var Jp=new Rp;Jp.tokenize=function(e){return e.split(/([{}:;,]|\s+)/)};function Yp(e){"@babel/helpers - typeof";return Yp=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Yp(e)}var Xp=Object.prototype.toString,Zp=new Rp;Zp.useLongestToken=!0,Zp.tokenize=Gp.tokenize,Zp.castInput=function(e){var t=this.options,n=t.undefinedReplacement,r=t.stringifyReplacer,i=r===void 0?function(e,t){return t===void 0?n:t}:r;return typeof e==`string`?e:JSON.stringify(Qp(e,null,null,i),i,` `)},Zp.equals=function(e,t){return Rp.prototype.equals.call(Zp,e.replace(/,([\r\n])/g,`$1`),t.replace(/,([\r\n])/g,`$1`))};function Qp(e,t,n,r,i){t||=[],n||=[],r&&(e=r(i,e));var a;for(a=0;a<t.length;a+=1)if(t[a]===e)return n[a];var o;if(Xp.call(e)===`[object Array]`){for(t.push(e),o=Array(e.length),n.push(o),a=0;a<e.length;a+=1)o[a]=Qp(e[a],t,n,r,i);return t.pop(),n.pop(),o}if(e&&e.toJSON&&(e=e.toJSON()),Yp(e)===`object`&&e!==null){t.push(e),o={},n.push(o);var s=[],c;for(c in e)e.hasOwnProperty(c)&&s.push(c);for(s.sort(),a=0;a<s.length;a+=1)c=s[a],o[c]=Qp(e[c],t,n,r,c);t.pop(),n.pop()}else o=e;return o}var $p=new Rp;$p.tokenize=function(e){return e.slice()},$p.join=$p.removeEmpty=function(e){return e};function em(e,t,n){return $p.diff(e,t,n)}var tm={"--":Pp.red,"··":Pp.grey,"++":Pp.green},nm=Pp.dim().italic,rm=Pp.dim(`→`),im=Pp.dim(`·`),am=Pp.dim(`↵`),om=(e,t)=>tm[e](e+cm(t))+`
|
|
34
|
-
`,sm=(e,t)=>Pp.dim(`L`+String(e).padStart(t,`0`)+` `),cm=e=>e.replace(/[ ]/g,im).replace(/\t/g,rm).replace(/(\r?\n)/g,am);function lm(e,t,n){let r=e.removed?`--`:e.added?`++`:`··`,i=e.value.replace(/\r?\n$/,``).split(`
|
|
35
|
-
`),a=0,o,s=``;for(e.added?s+=tm[r]().underline(nm(`Expected:`))+`
|
|
36
|
-
`:e.removed&&(s+=tm[r]().underline(nm(`Actual:`))+`
|
|
37
|
-
`);a<i.length;a++)o=i[a],o!=null&&(t&&(s+=sm(t+a,n)),s+=om(r,o||`
|
|
38
|
-
`));return s}function um(e,t){let n=em(e,t),r=0,i=0,a=0,o,s,c,l,u,d=om(`··`,`[`);for(;r<n.length;r++)for(c=(o=n[r]).removed?`--`:o.added?`++`:`··`,o.added?d+=tm[c]().underline(nm(`Expected:`))+`
|
|
39
|
-
`:o.removed&&(d+=tm[c]().underline(nm(`Actual:`))+`
|
|
40
|
-
`),i=0;i<o.value.length;i++)for(l=o.value[i]&&typeof o.value[i]==`object`,s=gm(o.value[i]).split(/\r?\n/g),a=0;a<s.length;)u=` `+s[a++]+(l?``:`,`),l&&a===s.length&&i+1<o.value.length&&(u+=`,`),d+=om(c,u);return d+om(`··`,`]`)}function dm(e,t,n=0){let r=0,i,a=``,o=Kp(e,t),s=String(t.split(/\r?\n/g).length-n).length;for(;r<o.length;r++)a+=lm(i=o[r],n,s),n&&!i.removed&&(n+=i.count);return a}function fm(e,t){let n=Vp(e,t),r=0,i=``,a,o=e.length,s=t.length,c=cm(e),l=cm(t);if(a=n[r],o!==s&&a.removed&&n[r+1]){let i=a.count-n[r+1].count;i==0||(i>0?(t=` `.repeat(i)+t,l=` `.repeat(i)+l,s+=i):i<0&&(e=` `.repeat(-i)+e,c=` `.repeat(-i)+c,o+=-i))}if(i+=pm(c,l,o,s),o===s)for(a=` `;r<o;r++)a+=e[r]===t[r]?` `:`^`;else for(a=` `;r<n.length;r++)a+=(n[r].added||n[r].removed?`^`:` `).repeat(Math.max(n[r].count,0)),r+1<n.length&&(n[r].added&&n[r+1].removed||n[r].removed&&n[r+1].added)&&(n[r+1].count-=n[r].count);return i+Pp.red(a)}function pm(e,t,n=String(e).length,r=String(t).length){let i=4,a=Math.max(n,r),o=typeof e,s=typeof t;if(o!==s){i=2;let c=i+a-n,l=i+a-r;e+=` `.repeat(c)+Pp.dim(`[${o}]`),t+=` `.repeat(l)+Pp.dim(`[${s}]`),n+=c+o.length+2,r+=l+s.length+2,a=Math.max(n,r)}return tm[`++`](`++`+t+` `.repeat(i+a-r)+nm(`(Expected)`))+`
|
|
41
|
-
`+tm[`--`](`--`+e+` `.repeat(i+a-n)+nm(`(Actual)`))+`
|
|
42
|
-
`}function mm(e,t){var n,r=0,i,a=Array.isArray(e),o=[],s=a?Array(e.length):{};if(a)for(r=0;r<s.length;r++)i=e[r],!i||typeof i!=`object`?s[r]=i:s[r]=mm(i,t[r]);else{for(n in t)o.push(n);for(;r<o.length;r++)Object.prototype.hasOwnProperty.call(e,n=o[r])&&(!(i=e[n])||typeof i!=`object`?s[n]=i:s[n]=mm(i,t[n]));for(n in e)s.hasOwnProperty(n)||(s[n]=e[n])}return s}function hm(){var e=new Set;return function(t,n){return n===void 0?`[__VOID__]`:typeof n==`number`&&n!==n?`[__NAN__]`:typeof n==`bigint`?n.toString():!n||typeof n!=`object`?n:e.has(n)?`[Circular]`:(e.add(n),n)}}function gm(e){return JSON.stringify(e,hm(),2).replace(/"\[__NAN__\]"/g,`NaN`).replace(/"\[__VOID__\]"/g,`undefined`)}function _m(e,t){if(Array.isArray(t)&&Array.isArray(e))return um(e,t);if(t instanceof RegExp)return fm(``+e,``+t);let n=e&&typeof e==`object`,r=t&&typeof t==`object`;return n&&r&&(e=mm(e,t)),r&&(t=gm(t)),n&&(e=gm(e)),t&&typeof t==`object`&&(e=gm(mm(e,t)),t=gm(t)),n=typeof e==`string`,r=typeof t==`string`,n&&/\r?\n/.test(e)?dm(e,``+t):r&&/\r?\n/.test(t)?dm(``+e,t):n&&r?fm(e,t):pm(e,t)}function vm(e){e=e.replace(/\r?\n/g,`
|
|
43
|
-
`);let t=e.match(/^[ \t]*(?=\S)/gm),n=0,r=1/0,i=(t||[]).length;for(;n<i;n++)r=Math.min(r,t[n].length);return i&&r?e.replace(RegExp(`^[ \\t]{${r}}`,`gm`),``):e}var ym=class extends Error{constructor(e={}){super(e.message),this.name=`Assertion`,this.code=`ERR_ASSERTION`,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.details=e.details||!1,this.generated=!!e.generated,this.operator=e.operator,this.expects=e.expects,this.actual=e.actual}};function bm(e,t,n,r,i,a,o){if(e)return;let s=o||a;throw o instanceof Error?o:new ym({actual:t,expects:n,operator:r,message:s,details:i&&i(t,n),generated:!o})}function xm(e,t){bm(!!e,!1,!0,`ok`,!1,`Expected value to be truthy`,t)}function Sm(e,t,n){bm(e===t,e,t,`is`,_m,`Expected values to be strictly equal:`,n)}function Cm(e,t){bm(!e,!0,!1,`not`,!1,`Expected value to be falsey`,t)}Cm.ok=Cm,Sm.not=function(e,t,n){bm(e!==t,e,t,`is.not`,!1,`Expected values not to be strictly equal`,n)},Cm.equal=function(e,t,n){bm(!Op(e,t),e,t,`not.equal`,!1,`Expected values not to be deeply equal`,n)},Cm.type=function(e,t,n){let r=typeof e;bm(r!==t,r,t,`not.type`,!1,`Expected "${r}" not to be "${t}"`,n)},Cm.instance=function(e,t,n){let r="`"+(t.name||t.constructor.name)+"`";bm(!(e instanceof t),e,t,`not.instance`,!1,`Expected value not to be an instance of ${r}`,n)},Cm.snapshot=function(e,t,n){e=vm(e),t=vm(t),bm(e!==t,e,t,`not.snapshot`,!1,`Expected value not to match snapshot`,n)},Cm.fixture=function(e,t,n){e=vm(e),t=vm(t),bm(e!==t,e,t,`not.fixture`,!1,`Expected value not to match fixture`,n)},Cm.match=function(e,t,n){typeof t==`string`?bm(!e.includes(t),e,t,`not.match`,!1,`Expected value not to include "${t}" substring`,n):bm(!t.test(e),e,t,`not.match`,!1,`Expected value not to match \`${String(t)}\` pattern`,n)},Cm.throws=function(e,t,n){!n&&typeof t==`string`&&(n=t,t=null);try{e()}catch(e){typeof t==`function`?bm(!t(e),!0,!1,`not.throws`,!1,`Expected function not to throw matching exception`,n):t instanceof RegExp?bm(!t.test(e.message),!0,!1,`not.throws`,!1,`Expected function not to throw exception matching \`${String(t)}\` pattern`,n):t||bm(!1,!0,!1,`not.throws`,!1,`Expected function not to throw`,n)}};var wm={carriageReturn:-5,lineFeed:-4,carriageReturnLineFeed:-3,horizontalTab:-2,virtualSpace:-1,eof:null,nul:0,soh:1,stx:2,etx:3,eot:4,enq:5,ack:6,bel:7,bs:8,ht:9,lf:10,vt:11,ff:12,cr:13,so:14,si:15,dle:16,dc1:17,dc2:18,dc3:19,dc4:20,nak:21,syn:22,etb:23,can:24,em:25,sub:26,esc:27,fs:28,gs:29,rs:30,us:31,space:32,exclamationMark:33,quotationMark:34,numberSign:35,dollarSign:36,percentSign:37,ampersand:38,apostrophe:39,leftParenthesis:40,rightParenthesis:41,asterisk:42,plusSign:43,comma:44,dash:45,dot:46,slash:47,digit0:48,digit1:49,digit2:50,digit3:51,digit4:52,digit5:53,digit6:54,digit7:55,digit8:56,digit9:57,colon:58,semicolon:59,lessThan:60,equalsTo:61,greaterThan:62,questionMark:63,atSign:64,uppercaseA:65,uppercaseB:66,uppercaseC:67,uppercaseD:68,uppercaseE:69,uppercaseF:70,uppercaseG:71,uppercaseH:72,uppercaseI:73,uppercaseJ:74,uppercaseK:75,uppercaseL:76,uppercaseM:77,uppercaseN:78,uppercaseO:79,uppercaseP:80,uppercaseQ:81,uppercaseR:82,uppercaseS:83,uppercaseT:84,uppercaseU:85,uppercaseV:86,uppercaseW:87,uppercaseX:88,uppercaseY:89,uppercaseZ:90,leftSquareBracket:91,backslash:92,rightSquareBracket:93,caret:94,underscore:95,graveAccent:96,lowercaseA:97,lowercaseB:98,lowercaseC:99,lowercaseD:100,lowercaseE:101,lowercaseF:102,lowercaseG:103,lowercaseH:104,lowercaseI:105,lowercaseJ:106,lowercaseK:107,lowercaseL:108,lowercaseM:109,lowercaseN:110,lowercaseO:111,lowercaseP:112,lowercaseQ:113,lowercaseR:114,lowercaseS:115,lowercaseT:116,lowercaseU:117,lowercaseV:118,lowercaseW:119,lowercaseX:120,lowercaseY:121,lowercaseZ:122,leftCurlyBrace:123,verticalBar:124,rightCurlyBrace:125,tilde:126,del:127,byteOrderMarker:65279,replacementCharacter:65533},Tm={attentionSideAfter:2,attentionSideBefore:1,atxHeadingOpeningFenceSizeMax:6,autolinkDomainSizeMax:63,autolinkSchemeSizeMax:32,cdataOpeningString:`CDATA[`,characterGroupPunctuation:2,characterGroupWhitespace:1,characterReferenceDecimalSizeMax:7,characterReferenceHexadecimalSizeMax:6,characterReferenceNamedSizeMax:31,codeFencedSequenceSizeMin:3,contentTypeContent:`content`,contentTypeDocument:`document`,contentTypeFlow:`flow`,contentTypeString:`string`,contentTypeText:`text`,hardBreakPrefixSizeMin:2,htmlBasic:6,htmlCdata:5,htmlComment:2,htmlComplete:7,htmlDeclaration:4,htmlInstruction:3,htmlRawSizeMax:8,htmlRaw:1,linkResourceDestinationBalanceMax:32,linkReferenceSizeMax:999,listItemValueSizeMax:10,numericBaseDecimal:10,numericBaseHexadecimal:16,tabSize:4,thematicBreakMarkerCountMin:3,v8MaxSafeChunkSize:1e4},Em={data:`data`,whitespace:`whitespace`,lineEnding:`lineEnding`,lineEndingBlank:`lineEndingBlank`,linePrefix:`linePrefix`,lineSuffix:`lineSuffix`,atxHeading:`atxHeading`,atxHeadingSequence:`atxHeadingSequence`,atxHeadingText:`atxHeadingText`,autolink:`autolink`,autolinkEmail:`autolinkEmail`,autolinkMarker:`autolinkMarker`,autolinkProtocol:`autolinkProtocol`,characterEscape:`characterEscape`,characterEscapeValue:`characterEscapeValue`,characterReference:`characterReference`,characterReferenceMarker:`characterReferenceMarker`,characterReferenceMarkerNumeric:`characterReferenceMarkerNumeric`,characterReferenceMarkerHexadecimal:`characterReferenceMarkerHexadecimal`,characterReferenceValue:`characterReferenceValue`,codeFenced:`codeFenced`,codeFencedFence:`codeFencedFence`,codeFencedFenceSequence:`codeFencedFenceSequence`,codeFencedFenceInfo:`codeFencedFenceInfo`,codeFencedFenceMeta:`codeFencedFenceMeta`,codeFlowValue:`codeFlowValue`,codeIndented:`codeIndented`,codeText:`codeText`,codeTextData:`codeTextData`,codeTextPadding:`codeTextPadding`,codeTextSequence:`codeTextSequence`,content:`content`,definition:`definition`,definitionDestination:`definitionDestination`,definitionDestinationLiteral:`definitionDestinationLiteral`,definitionDestinationLiteralMarker:`definitionDestinationLiteralMarker`,definitionDestinationRaw:`definitionDestinationRaw`,definitionDestinationString:`definitionDestinationString`,definitionLabel:`definitionLabel`,definitionLabelMarker:`definitionLabelMarker`,definitionLabelString:`definitionLabelString`,definitionMarker:`definitionMarker`,definitionTitle:`definitionTitle`,definitionTitleMarker:`definitionTitleMarker`,definitionTitleString:`definitionTitleString`,emphasis:`emphasis`,emphasisSequence:`emphasisSequence`,emphasisText:`emphasisText`,escapeMarker:`escapeMarker`,hardBreakEscape:`hardBreakEscape`,hardBreakTrailing:`hardBreakTrailing`,htmlFlow:`htmlFlow`,htmlFlowData:`htmlFlowData`,htmlText:`htmlText`,htmlTextData:`htmlTextData`,image:`image`,label:`label`,labelText:`labelText`,labelLink:`labelLink`,labelImage:`labelImage`,labelMarker:`labelMarker`,labelImageMarker:`labelImageMarker`,labelEnd:`labelEnd`,link:`link`,paragraph:`paragraph`,reference:`reference`,referenceMarker:`referenceMarker`,referenceString:`referenceString`,resource:`resource`,resourceDestination:`resourceDestination`,resourceDestinationLiteral:`resourceDestinationLiteral`,resourceDestinationLiteralMarker:`resourceDestinationLiteralMarker`,resourceDestinationRaw:`resourceDestinationRaw`,resourceDestinationString:`resourceDestinationString`,resourceMarker:`resourceMarker`,resourceTitle:`resourceTitle`,resourceTitleMarker:`resourceTitleMarker`,resourceTitleString:`resourceTitleString`,setextHeading:`setextHeading`,setextHeadingText:`setextHeadingText`,setextHeadingLine:`setextHeadingLine`,setextHeadingLineSequence:`setextHeadingLineSequence`,strong:`strong`,strongSequence:`strongSequence`,strongText:`strongText`,thematicBreak:`thematicBreak`,thematicBreakSequence:`thematicBreakSequence`,blockQuote:`blockQuote`,blockQuotePrefix:`blockQuotePrefix`,blockQuoteMarker:`blockQuoteMarker`,blockQuotePrefixWhitespace:`blockQuotePrefixWhitespace`,listOrdered:`listOrdered`,listUnordered:`listUnordered`,listItemIndent:`listItemIndent`,listItemMarker:`listItemMarker`,listItemPrefix:`listItemPrefix`,listItemPrefixWhitespace:`listItemPrefixWhitespace`,listItemValue:`listItemValue`,chunkDocument:`chunkDocument`,chunkContent:`chunkContent`,chunkFlow:`chunkFlow`,chunkText:`chunkText`,chunkString:`chunkString`},Dm=`highlightSequenceTemporary`,Om=`highlightSequence`,km=`highlight`,Am=`highlightText`;function jm(){let e={name:`highlight`,tokenize:n,resolveAll:t};return{text:{[wm.equalsTo]:e},insideSpan:{null:[e]},attentionMarkers:{null:[wm.equalsTo]}};function t(e,t){let n=-1;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===Dm&&e[n][1]._close){let r=n;for(;r--;)if(e[r][0]===`exit`&&e[r][1].type===Dm&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset===e[r][1].end.offset-e[r][1].start.offset){e[n][1].type=Om,e[r][1].type=Om;let i={type:km,start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},a={type:Am,start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},o=[[`enter`,i,t],[`enter`,e[r][1],t],[`exit`,e[r][1],t],[`enter`,a,t]],s=t.parser.constructs.insideSpan.null;s&&mf(o,o.length,0,kf(s,e.slice(r+1,n),t)),mf(o,o.length,0,[[`exit`,a,t],[`enter`,e[n][1],t],[`exit`,e[n][1],t],[`exit`,i,t]]),mf(e,r-1,n-r+3,o),n=r+o.length-2;break}}for(n=-1;++n<e.length;)e[n][1].type===Dm&&(e[n][1].type=Em.data);return e}function n(e,t,n){let r=this.previous,i=this.events,a=0;return o;function o(t){return xm(t===wm.equalsTo,"expected `=`"),r===wm.equalsTo&&i[i.length-1][1].type!==Em.characterEscape?n(t):(e.enter(Dm),s(t))}function s(i){let o=Of(r);if(i===wm.equalsTo)return a>1?n(i):(e.consume(i),a++,s);if(a<2)return n(i);let c=e.exit(Dm),l=Of(i);return c._open=!l||l===Tm.attentionSideAfter&&!!o,c._close=!o||o===Tm.attentionSideAfter&&!!l,t(i)}}}var Mm=/[$_\p{ID_Start}]/u,Nm=/[$_\u{200C}\u{200D}\p{ID_Continue}]/u,Pm=/[-$_\u{200C}\u{200D}\p{ID_Continue}]/u,Fm={};function Im(e){return e?Mm.test(String.fromCodePoint(e)):!1}function Lm(e,t){let n=(t||Fm).jsx?Pm:Nm;return e?n.test(String.fromCodePoint(e)):!1}function Rm(e,t,n,r){let i=r?r-1:1/0,a=0;return o;function o(r){return wf(r)?(e.enter(n),s(r)):t(r)}function s(r){return wf(r)&&a++<i?(e.consume(r),s):(e.exit(n),t(r))}}function zm(e){return e}var Bm={}.hasOwnProperty,Vm=Symbol(`continue`),Hm=Symbol(`exit`),Um=Symbol(`skip`);function Wm(e,t){let n,r;typeof t==`function`?n=t:t&&typeof t==`object`&&(t.enter&&(n=t.enter),t.leave&&(r=t.leave)),i(e,void 0,void 0,[])();function i(e,t,a,o){return Km(e)&&(s.displayName=`node (`+zm(e.type)+`)`),s;function s(){let s=n?Gm(n(e,t,a,o)):[];if(s[0]===Hm)return s;if(s[0]!==Um){let t;for(t in e)if(Bm.call(e,t)&&e[t]&&typeof e[t]==`object`&&t!==`data`&&t!==`position`){let n=o.concat(e),r=e[t];if(Array.isArray(r)){let e=r,a=0;for(;a>-1&&a<e.length;){let r=e[a];if(Km(r)){let e=i(r,t,a,n)();if(e[0]===Hm)return e;a=typeof e[1]==`number`?e[1]:a+1}else a++}}else if(Km(r)){let e=i(r,t,void 0,n)();if(e[0]===Hm)return e}}}return r?Gm(r(e,t,a,o)):s}}}function Gm(e){return Array.isArray(e)?e:typeof e==`number`?[Vm,e]:[e]}function Km(e){return!!(e&&typeof e==`object`&&`type`in e&&typeof e.type==`string`&&e.type.length>0)}function qm(e,t){let n=t.prefix||``,r=t.suffix||``,i=Object.assign({},t.acornOptions),a=[],o=[],s=i.onComment,c=i.onToken,l=!1,u,d,f=Object.assign({},i,{onComment:a,preserveParens:!0});c&&(f.onToken=o);let p=Ym(e,t.tokenTypes),m=p.value,h=n+m+r,g=t.expression&&Jm(m);if(g&&!t.allowEmpty)throw new vp(`Unexpected empty expression`,{place:v(0),ruleId:`unexpected-empty-expression`,source:`micromark-extension-mdx-expression`});try{u=t.expression&&!g?t.acorn.parseExpressionAt(h,0,f):t.acorn.parse(h,f)}catch(e){let t=e,r=v(t.pos);t.message=String(t.message).replace(/ \(\d+:\d+\)$/,``),t.pos=r.offset,t.loc={line:r.line,column:r.column-1},d=t,l=t.raisedAt>=n.length+m.length||t.message===`Unterminated comment`}if(u&&t.expression&&!g)if(Jm(h.slice(u.end,h.length-r.length)))u={type:`Program`,start:0,end:n.length+m.length,body:[{type:`ExpressionStatement`,expression:u,start:0,end:n.length+m.length}],sourceType:`module`,comments:[]};else{let e=v(u.end),t=Error(`Unexpected content after expression`);t.pos=e.offset,t.loc={line:e.line,column:e.column-1},d=t,u=void 0}if(u){if(u.comments=a,Wm(u,function(e,t,n,r){let i=r[r.length-1],a=t;e.type===`ParenthesizedExpression`&&i&&a&&(typeof n==`number`&&(i=i[a],a=n),i[a]=e.expression),_(e)}),Array.isArray(s))s.push(...a);else if(typeof s==`function`)for(let e of a)s(e.type===`Block`,e.value,e.start,e.end,e.loc.start,e.loc.end);for(let e of o)e.end<=n.length||e.start-n.length>=m.length||(_(e),Array.isArray(c)?c.push(e):c(e))}return{estree:u,error:d,swallow:l};function _(e){let t=v(e.start),n=v(e.end);e.start=t.offset,e.end=n.offset,e.loc={start:{line:t.line,column:t.column-1,offset:t.offset},end:{line:n.line,column:n.column-1,offset:n.offset}},e.range=[e.start,e.end]}function v(e){let r=e-n.length;r<0?r=0:r>m.length&&(r=m.length);let i=Xm(p.stops,r);return i||={line:t.start.line,column:t.start.column,offset:t.start.offset},i}}function Jm(e){return/^\s*$/.test(e.replace(/\/\*[\s\S]*?\*\//g,``).replace(/\/\/[^\r\n]*(\r\n|\n|\r)/g,``))}function Ym(e,t){let n={value:``,stops:[]},r=-1;for(;++r<e.length;){let i=e[r];if(i[0]===`enter`){let e=i[1].type;if(e===`lineEnding`||t.includes(e)){let e=i[2].sliceStream(i[1]);for(;e.length>0&&e[0]===-1;)e.shift();let t=Zm(e);n.stops.push([n.value.length,i[1].start]),n.value+=t,n.stops.push([n.value.length,i[1].end])}}}return n}function Xm(e,t){let n=0;for(;n<e.length&&e[n][0]<=t;)n+=1;if(n===0)return;let[r,i]=e[n-1],a=t-r;return{line:i.line,column:i.column+a,offset:i.offset+a}}function Zm(e){let t=-1,n=[],r;for(;++t<e.length;){let i=e[t],a;if(typeof i==`string`)a=i;else switch(i){case-5:a=`\r`;break;case-4:a=`
|
|
44
|
-
`;break;case-3:a=`\r
|
|
45
|
-
`;break;case-2:a=` `;break;case-1:if(r)continue;a=` `;break;default:a=String.fromCharCode(i)}r=i===-2,n.push(a)}return n.join(``)}function Qm(e){let t=e||{},n=t.loc||{},r=t.range||[void 0,void 0],i=$m(n.start,r[0]||t.start),a=$m(n.end,r[1]||t.end);if(i&&a)return{start:i,end:a}}function $m(e,t){if(e&&typeof e==`object`){let n=`line`in e?eh(e.line):void 0,r=`column`in e?eh(e.column):void 0;if(n&&r!==void 0)return{line:n,column:r+1,offset:eh(t)}}}function eh(e){return typeof e==`number`&&e>-1?e:void 0}var th=2,nh=`https://github.com/micromark/micromark-extension-mdx-expression/tree/main/packages/micromark-extension-mdx-expression`,rh=`#unexpected-end-of-file-in-expression-expected-a-corresponding-closing-brace-for-`,ih=`#unexpected-lazy-line-in-expression-in-container-expected-line-to-be-prefixed`,ah=`#unexpected-type-in-code-expected-an-object-spread-spread`,oh=`#unexpected-extra-content-in-spread-only-a-single-spread-is-supported`,sh=`#could-not-parse-expression-with-acorn`;function ch(e,t,n,r,i,a,o,s,c,l,u){let d=this,f=this.events.length+3,p=0,m,h;return g;function g(t){return e.enter(n),e.enter(r),e.consume(t),e.exit(r),m=d.now(),_}function _(u){if(u===null){if(h)throw h;let e=new vp("Unexpected end of file in expression, expected a corresponding closing brace for `{`",{place:d.now(),ruleId:`unexpected-eof`,source:`micromark-extension-mdx-expression`});throw e.url=nh+rh,e}if(K(u))return e.enter(`lineEnding`),e.consume(u),e.exit(`lineEnding`),y;if(u===125&&p===0){let p=a?lh.call(d,a,o,i,f,m,l||!1,c||!1):{type:`ok`,estree:void 0};if(p.type===`ok`){e.enter(r),e.consume(u),e.exit(r);let i=e.exit(n);return s&&p.estree&&Object.assign(i,{estree:p.estree}),t}return h=p.message,e.enter(i),e.consume(u),v}return e.enter(i),v(u)}function v(t){return t===125&&p===0||t===null||K(t)?(e.exit(i),_(t)):(t===123&&!a?p+=1:t===125&&--p,e.consume(t),v)}function y(t){let n=d.now();if(n.line!==m.line&&!u&&d.parser.lazy[n.line]){let e=new vp("Unexpected lazy line in expression in container, expected line to be prefixed with `>` when in a block quote, whitespace when in a list, etc",{place:d.now(),ruleId:`unexpected-lazy`,source:`micromark-extension-mdx-expression`});throw e.url=nh+ih,e}return wf(t)?Rm(e,_,`linePrefix`,th+1)(t):_(t)}}function lh(e,t,n,r,i,a,o){let s=qm(this.events.slice(r),{acorn:e,tokenTypes:[n],acornOptions:t,start:i,expression:!0,allowEmpty:a,prefix:o?`({`:``,suffix:o?`})`:``}),c=s.estree;if(o&&c){let e=c.body[0];if(e.type!==`ExpressionStatement`||e.expression.type!==`ObjectExpression`){let t=Qm(e),n=new vp("Unexpected `"+e.type+"` in code: expected an object spread (`{...spread}`)",{place:t.start,ruleId:`non-spread`,source:`micromark-extension-mdx-expression`});throw n.url=nh+ah,n}if(e.expression.properties[1]){let t=new vp(`Unexpected extra content in spread: only a single spread is supported`,{place:Qm(e.expression.properties[1]).start,ruleId:`spread-extra`,source:`micromark-extension-mdx-expression`});throw t.url=nh+oh,t}if(e.expression.properties[0]&&e.expression.properties[0].type!==`SpreadElement`){let t=Qm(e.expression.properties[0]),n=new vp("Unexpected `"+e.expression.properties[0].type+"` in code: only spread elements are supported",{place:t.start,ruleId:`non-spread`,source:`micromark-extension-mdx-expression`});throw n.url=nh+ah,n}}if(s.error){let e=new vp(`Could not parse expression with acorn`,{cause:s.error,place:{line:s.error.loc.line,column:s.error.loc.column+1,offset:s.error.pos},ruleId:`acorn`,source:`micromark-extension-mdx-expression`});return e.url=nh+sh,{type:`nok`,message:e}}return{type:`ok`,estree:c}}var uh=`https://github.com/micromark/micromark-extension-mdx-jsx`;function dh(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E,ee,D,O,k,te){let A=this,j,M;return ne;function ne(t){return e.enter(s),e.enter(c),e.consume(t),e.exit(c),re}function re(e){return Cf(e)?n(e):(j=ie,Ee(e))}function ie(t){if(t===47)return e.enter(l),e.consume(t),e.exit(l),j=ae,Ee;if(t===62)return Te(t);if(t!==null&&t>=0&&Im(t))return e.enter(d),e.enter(f),e.consume(t),oe;ke(t,`before name`,"a character that can start a name, such as a letter, `$`, or `_`"+(t===33?" (note: to create a comment in MDX, use `{/* text */}`)":``))}function ae(t){if(t===62)return Te(t);if(t!==null&&t>=0&&Im(t))return e.enter(d),e.enter(f),e.consume(t),oe;ke(t,`before name`,"a character that can start a name, such as a letter, `$`, or `_`"+(t===42||t===47?` (note: JS comments in JSX tags are not supported in MDX)`:``))}function oe(t){if(t!==null&&t>=0&&Lm(t,{jsx:!0}))return e.consume(t),oe;if(t===46||t===47||t===58||t===62||t===123||Cf(t)||Ef(t))return e.exit(f),j=se,Ee(t);ke(t,`in name`,"a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag"+(t===64?" (note: to create a link in MDX, use `[text](url)`)":``))}function se(t){if(t===46)return e.enter(p),e.consume(t),e.exit(p),j=N,Ee;if(t===58)return e.enter(h),e.consume(t),e.exit(h),j=ue,Ee;if(t===47||t===62||t===123||t!==null&&t>=0&&Im(t))return e.exit(d),pe(t);ke(t,`after name`,"a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function N(t){if(t!==null&&t>=0&&Im(t))return e.enter(m),e.consume(t),ce;ke(t,`before member name`,"a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function ce(t){if(t!==null&&t>=0&&Lm(t,{jsx:!0}))return e.consume(t),ce;if(t===46||t===47||t===62||t===123||Cf(t)||Ef(t))return e.exit(m),j=le,Ee(t);ke(t,`in member name`,"a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag"+(t===64?" (note: to create a link in MDX, use `[text](url)`)":``))}function le(t){if(t===46)return e.enter(p),e.consume(t),e.exit(p),j=N,Ee;if(t===47||t===62||t===123||t!==null&&t>=0&&Im(t))return e.exit(d),pe(t);ke(t,`after member name`,"a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function ue(t){if(t!==null&&t>=0&&Im(t))return e.enter(g),e.consume(t),de;ke(t,`before local name`,"a character that can start a name, such as a letter, `$`, or `_`"+(t===43||t!==null&&t>46&&t<58?" (note: to create a link in MDX, use `[text](url)`)":``))}function de(t){if(t!==null&&t>=0&&Lm(t,{jsx:!0}))return e.consume(t),de;if(t===47||t===62||t===123||Cf(t)||Ef(t))return e.exit(g),j=fe,Ee(t);ke(t,`in local name`,"a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag")}function fe(t){if(t===47||t===62||t===123||t!==null&&t>=0&&Im(t))return e.exit(d),pe(t);ke(t,`after local name`,"a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function pe(t){if(t===47)return e.enter(u),e.consume(t),e.exit(u),j=we,Ee;if(t===62)return Te(t);if(t===123)return ch.call(A,e,me,_,v,y,r,i,a,!0,!1,o)(t);if(t!==null&&t>=0&&Im(t))return e.enter(b),e.enter(x),e.enter(S),e.consume(t),he;ke(t,`before attribute name`,"a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function me(e){return j=pe,Ee(e)}function he(t){if(t!==null&&t>=0&&Lm(t,{jsx:!0}))return e.consume(t),he;if(t===47||t===58||t===61||t===62||t===123||Cf(t)||Ef(t))return e.exit(S),j=ge,Ee(t);ke(t,`in attribute name`,"an attribute name character such as letters, digits, `$`, or `_`; `=` to initialize a value; whitespace before attributes; or the end of the tag")}function ge(t){if(t===58)return e.enter(C),e.consume(t),e.exit(C),j=_e,Ee;if(t===61)return e.exit(x),e.enter(T),e.consume(t),e.exit(T),j=be,Ee;if(t===47||t===62||t===123||Cf(t)||Ef(t)||t!==null&&t>=0&&Im(t))return e.exit(x),e.exit(b),j=pe,Ee(t);ke(t,`after attribute name`,"a character that can start an attribute name, such as a letter, `$`, or `_`; `=` to initialize a value; or the end of the tag")}function _e(t){if(t!==null&&t>=0&&Im(t))return e.enter(w),e.consume(t),ve;ke(t,`before local attribute name`,"a character that can start an attribute name, such as a letter, `$`, or `_`; `=` to initialize a value; or the end of the tag")}function ve(t){if(t!==null&&t>=0&&Lm(t,{jsx:!0}))return e.consume(t),ve;if(t===47||t===61||t===62||t===123||Cf(t)||Ef(t))return e.exit(w),e.exit(x),j=ye,Ee(t);ke(t,`in local attribute name`,"an attribute name character such as letters, digits, `$`, or `_`; `=` to initialize a value; whitespace before attributes; or the end of the tag")}function ye(t){if(t===61)return e.enter(T),e.consume(t),e.exit(T),j=be,Ee;if(t===47||t===62||t===123||t!==null&&t>=0&&Im(t))return e.exit(b),pe(t);ke(t,`after local attribute name`,"a character that can start an attribute name, such as a letter, `$`, or `_`; `=` to initialize a value; or the end of the tag")}function be(t){if(t===34||t===39)return e.enter(E),e.enter(ee),e.consume(t),e.exit(ee),M=t,Se;if(t===123)return ch.call(A,e,xe,O,k,te,r,i,a,!1,!1,o)(t);ke(t,`before attribute value`,"a character that can start an attribute value, such as `\"`, `'`, or `{`"+(t===60?" (note: to use an element or fragment as a prop value in MDX, use `{<element />}`)":``))}function xe(t){return e.exit(b),j=pe,Ee(t)}function Se(t){return t===null&&ke(t,`in attribute value`,"a corresponding closing quote `"+String.fromCodePoint(M)+"`"),t===M?(e.enter(ee),e.consume(t),e.exit(ee),e.exit(E),e.exit(b),M=void 0,j=pe,Ee):K(t)?(j=Se,Ee(t)):(e.enter(D),Ce(t))}function Ce(t){return t===null||t===M||K(t)?(e.exit(D),Se(t)):(e.consume(t),Ce)}function we(e){if(e===62)return Te(e);ke(e,`after self-closing slash`,"`>` to end the tag"+(e===42||e===47?` (note: JS comments in JSX tags are not supported in MDX)`:``))}function Te(n){return e.enter(c),e.consume(n),e.exit(c),e.exit(s),t}function Ee(t){return K(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),Oe):wf(t)||Ef(t)?(e.enter(`esWhitespace`),De(t)):j(t)}function De(t){return K(t)?(e.exit(`esWhitespace`),Ee(t)):wf(t)||Ef(t)?(e.consume(t),De):(e.exit(`esWhitespace`),j(t))}function Oe(e){if(!o&&A.parser.lazy[A.now().line]){let e=new vp("Unexpected lazy line in container, expected line to be prefixed with `>` when in a block quote, whitespace when in a list, etc",A.now(),`micromark-extension-mdx-jsx:unexpected-lazy`);throw e.url=uh+`#unexpected-lazy-line-in-container-expected-line-to-be`,e}return Ee(e)}function ke(e,t,n){let r=new vp(`Unexpected `+(e===null?`end of file`:"character `"+(e===96?"` ` `":String.fromCodePoint(e))+"` ("+fh(e)+`)`)+` `+t+`, expected `+n,A.now(),`micromark-extension-mdx-jsx:unexpected-`+(e===null?`eof`:`character`));throw r.url=uh+(e===null?`#unexpected-end-of-file-at-expected-expect`:`#unexpected-character-at-expected-expect`),r}}function fh(e){return`U+`+e.toString(16).toUpperCase().padStart(4,`0`)}function ph(e,t){return{name:`mdxJsxTextTag`,tokenize:n};function n(n,r,i){return dh.call(this,n,r,i,e,t.acornOptions,t.addResult,!0,`mdxJsxTextTag`,`mdxJsxTextTagMarker`,`mdxJsxTextTagClosingMarker`,`mdxJsxTextTagSelfClosingMarker`,`mdxJsxTextTagName`,`mdxJsxTextTagNamePrimary`,`mdxJsxTextTagNameMemberMarker`,`mdxJsxTextTagNameMember`,`mdxJsxTextTagNamePrefixMarker`,`mdxJsxTextTagNameLocal`,`mdxJsxTextTagExpressionAttribute`,`mdxJsxTextTagExpressionAttributeMarker`,`mdxJsxTextTagExpressionAttributeValue`,`mdxJsxTextTagAttribute`,`mdxJsxTextTagAttributeName`,`mdxJsxTextTagAttributeNamePrimary`,`mdxJsxTextTagAttributeNamePrefixMarker`,`mdxJsxTextTagAttributeNameLocal`,`mdxJsxTextTagAttributeInitializerMarker`,`mdxJsxTextTagAttributeValueLiteral`,`mdxJsxTextTagAttributeValueLiteralMarker`,`mdxJsxTextTagAttributeValueLiteralValue`,`mdxJsxTextTagAttributeValueExpression`,`mdxJsxTextTagAttributeValueExpressionMarker`,`mdxJsxTextTagAttributeValueExpressionValue`)}}function mh(e,t){return{concrete:!0,name:`mdxJsxFlowTag`,tokenize:n};function n(n,r,i){let a=this;return o;function o(e){return s(e)}function s(r){return dh.call(a,n,c,i,e,t.acornOptions,t.addResult,!1,`mdxJsxFlowTag`,`mdxJsxFlowTagMarker`,`mdxJsxFlowTagClosingMarker`,`mdxJsxFlowTagSelfClosingMarker`,`mdxJsxFlowTagName`,`mdxJsxFlowTagNamePrimary`,`mdxJsxFlowTagNameMemberMarker`,`mdxJsxFlowTagNameMember`,`mdxJsxFlowTagNamePrefixMarker`,`mdxJsxFlowTagNameLocal`,`mdxJsxFlowTagExpressionAttribute`,`mdxJsxFlowTagExpressionAttributeMarker`,`mdxJsxFlowTagExpressionAttributeValue`,`mdxJsxFlowTagAttribute`,`mdxJsxFlowTagAttributeName`,`mdxJsxFlowTagAttributeNamePrimary`,`mdxJsxFlowTagAttributeNamePrefixMarker`,`mdxJsxFlowTagAttributeNameLocal`,`mdxJsxFlowTagAttributeInitializerMarker`,`mdxJsxFlowTagAttributeValueLiteral`,`mdxJsxFlowTagAttributeValueLiteralMarker`,`mdxJsxFlowTagAttributeValueLiteralValue`,`mdxJsxFlowTagAttributeValueExpression`,`mdxJsxFlowTagAttributeValueExpressionMarker`,`mdxJsxFlowTagAttributeValueExpressionValue`)(r)}function c(e){return wf(e)?Rm(n,l,`whitespace`)(e):l(e)}function l(e){let t=a.parser.constructs.flow[123],s=Array.isArray(t)?t:t?[t]:[],c;for(let e of s)if(e.name===`mdxFlowExpression`){c=e;break}return e===60?o(e):e===123&&c?n.attempt(c,l,i)(e):e===null||K(e)?r(e):i(e)}}}function hh(e){let t=e||{},n=t.acorn,r;if(n){if(!n.parse||!n.parseExpressionAt)throw Error("Expected a proper `acorn` instance passed in as `options.acorn`");r=Object.assign({ecmaVersion:2024,sourceType:`module`},t.acornOptions,{locations:!0})}else if(t.acornOptions||t.addResult)throw Error("Expected an `acorn` instance passed in as `options.acorn`");return{flow:{60:mh(n||void 0,{acornOptions:r,addResult:t.addResult||void 0})},text:{60:ph(n||void 0,{acornOptions:r,addResult:t.addResult||void 0})}}}function gh(){return{disable:{null:[`autolink`,`codeIndented`,`htmlFlow`,`htmlText`]}}}var _h={}.hasOwnProperty;function vh(e,t){let n=t||{};function r(t,...n){let i=r.invalid,a=r.handlers;if(t&&_h.call(t,e)){let n=String(t[e]);i=_h.call(a,n)?a[n]:r.unknown}if(i)return i.call(this,t,...n)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}var yh={}.hasOwnProperty;function bh(e,t){let n=-1,r;if(t.extensions)for(;++n<t.extensions.length;)bh(e,t.extensions[n]);for(r in t)if(yh.call(t,r))switch(r){case`extensions`:break;case`unsafe`:xh(e[r],t[r]);break;case`join`:xh(e[r],t[r]);break;case`handlers`:Sh(e[r],t[r]);break;default:e.options[r]=t[r]}return e}function xh(e,t){t&&e.push(...t)}function Sh(e,t){t&&Object.assign(e,t)}function Ch(e,t,n,r){let i=n.enter(`blockquote`),a=n.createTracker(r);a.move(`> `),a.shift(2);let o=n.indentLines(n.containerFlow(e,a.current()),wh);return i(),o}function wh(e,t,n){return`>`+(n?``:` `)+e}function Th(e,t){return Eh(e,t.inConstruct,!0)&&!Eh(e,t.notInConstruct,!1)}function Eh(e,t,n){if(typeof t==`string`&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function Dh(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
|
|
46
|
-
`&&Th(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?``:` `;return`\\
|
|
47
|
-
`}function Oh(e,t){let n=String(e),r=n.indexOf(t),i=r,a=0,o=0;if(typeof t!=`string`)throw TypeError(`Expected substring`);for(;r!==-1;)r===i?++a>o&&(o=a):a=1,i=r+t.length,r=n.indexOf(t,i);return o}function kh(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function Ah(e){let t=e.options.fence||"`";if(t!=="`"&&t!==`~`)throw Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function jh(e,t,n,r){let i=Ah(n),a=e.value||``,o=i==="`"?`GraveAccent`:`Tilde`;if(kh(e,n)){let e=n.enter(`codeIndented`),t=n.indentLines(a,Mh);return e(),t}let s=n.createTracker(r),c=i.repeat(Math.max(Oh(a,i)+1,3)),l=n.enter(`codeFenced`),u=s.move(c);if(e.lang){let t=n.enter(`codeFencedLang${o}`);u+=s.move(n.safe(e.lang,{before:u,after:` `,encode:["`"],...s.current()})),t()}if(e.lang&&e.meta){let t=n.enter(`codeFencedMeta${o}`);u+=s.move(` `),u+=s.move(n.safe(e.meta,{before:u,after:`
|
|
48
|
-
`,encode:["`"],...s.current()})),t()}return u+=s.move(`
|
|
49
|
-
`),a&&(u+=s.move(a+`
|
|
50
|
-
`)),u+=s.move(c),l(),u}function Mh(e,t,n){return(n?``:` `)+e}function Nh(e){let t=e.options.quote||`"`;if(t!==`"`&&t!==`'`)throw Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function Ph(e,t,n,r){let i=Nh(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.enter(`definition`),s=n.enter(`label`),c=n.createTracker(r),l=c.move(`[`);return l+=c.move(n.safe(n.associationId(e),{before:l,after:`]`,...c.current()})),l+=c.move(`]: `),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter(`destinationLiteral`),l+=c.move(`<`),l+=c.move(n.safe(e.url,{before:l,after:`>`,...c.current()})),l+=c.move(`>`)):(s=n.enter(`destinationRaw`),l+=c.move(n.safe(e.url,{before:l,after:e.title?` `:`
|
|
51
|
-
`,...c.current()}))),s(),e.title&&(s=n.enter(`title${a}`),l+=c.move(` `+i),l+=c.move(n.safe(e.title,{before:l,after:i,...c.current()})),l+=c.move(i),s()),o(),l}function Fh(e){let t=e.options.emphasis||`*`;if(t!==`*`&&t!==`_`)throw Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function Ih(e){return`&#x`+e.toString(16).toUpperCase()+`;`}function Lh(e,t,n){let r=Of(e),i=Of(t);return r===void 0?i===void 0?n===`_`?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Rh.peek=zh;function Rh(e,t,n,r){let i=Fh(n),a=n.enter(`emphasis`),o=n.createTracker(r),s=o.move(i),c=o.move(n.containerPhrasing(e,{after:i,before:s,...o.current()})),l=c.charCodeAt(0),u=Lh(r.before.charCodeAt(r.before.length-1),l,i);u.inside&&(c=Ih(l)+c.slice(1));let d=c.charCodeAt(c.length-1),f=Lh(r.after.charCodeAt(0),d,i);f.inside&&(c=c.slice(0,-1)+Ih(d));let p=o.move(i);return a(),n.attentionEncodeSurroundingInfo={after:f.outside,before:u.outside},s+c+p}function zh(e,t,n){return n.options.emphasis||`*`}var Bh=(function(e){if(e==null)return Gh;if(typeof e==`function`)return Wh(e);if(typeof e==`object`)return Array.isArray(e)?Vh(e):Hh(e);if(typeof e==`string`)return Uh(e);throw Error(`Expected function, string, or object as test`)});function Vh(e){let t=[],n=-1;for(;++n<e.length;)t[n]=Bh(e[n]);return Wh(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}function Hh(e){let t=e;return Wh(n);function n(n){let r=n,i;for(i in e)if(r[i]!==t[i])return!1;return!0}}function Uh(e){return Wh(t);function t(t){return t&&t.type===e}}function Wh(e){return t;function t(t,n,r){return!!(Kh(t)&&e.call(this,t,typeof n==`number`?n:void 0,r||void 0))}}function Gh(){return!0}function Kh(e){return typeof e==`object`&&!!e&&`type`in e}function qh(e){return e}var Jh=[];function Yh(e,t,n,r){let i;typeof t==`function`&&typeof n!=`function`?(r=n,n=t):i=t;let a=Bh(i),o=r?-1:1;s(e,void 0,[])();function s(e,i,c){let l=e&&typeof e==`object`?e:{};if(typeof l.type==`string`){let t=typeof l.tagName==`string`?l.tagName:typeof l.name==`string`?l.name:void 0;Object.defineProperty(u,`name`,{value:`node (`+qh(e.type+(t?`<`+t+`>`:``))+`)`})}return u;function u(){let l=Jh,u,d,f;if((!t||a(e,i,c[c.length-1]||void 0))&&(l=Xh(n(e,c)),l[0]===!1))return l;if(`children`in e&&e.children){let t=e;if(t.children&&l[0]!==`skip`)for(d=(r?t.children.length:-1)+o,f=c.concat(t);d>-1&&d<t.children.length;){let e=t.children[d];if(u=s(e,d,f)(),u[0]===!1)return u;d=typeof u[1]==`number`?u[1]:d+o}}return l}}}function Xh(e){return Array.isArray(e)?e:typeof e==`number`?[!0,e]:e==null?Jh:[e]}function Zh(e,t,n,r){let i,a,o;typeof t==`function`&&typeof n!=`function`?(a=void 0,o=t,i=n):(a=t,o=n,i=r),Yh(e,a,s,i);function s(e,t){let n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return o(e,r,n)}}var Qh={};function $h(e,t){let n=t||Qh;return eg(e,typeof n.includeImageAlt==`boolean`?n.includeImageAlt:!0,typeof n.includeHtml==`boolean`?n.includeHtml:!0)}function eg(e,t,n){if(ng(e)){if(`value`in e)return e.type===`html`&&!n?``:e.value;if(t&&`alt`in e&&e.alt)return e.alt;if(`children`in e)return tg(e.children,t,n)}return Array.isArray(e)?tg(e,t,n):``}function tg(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=eg(e[i],t,n);return r.join(``)}function ng(e){return!!(e&&typeof e==`object`)}function rg(e,t){let n=!1;return Zh(e,function(e){if(`value`in e&&/\r?\n|\r/.test(e.value)||e.type===`break`)return n=!0,!1}),!!((!e.depth||e.depth<3)&&$h(e)&&(t.options.setext||n))}function ig(e,t,n,r){let i=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(r);if(rg(e,n)){let t=n.enter(`headingSetext`),r=n.enter(`phrasing`),o=n.containerPhrasing(e,{...a.current(),before:`
|
|
52
|
-
`,after:`
|
|
53
|
-
`});return r(),t(),o+`
|
|
54
|
-
`+(i===1?`=`:`-`).repeat(o.length-(Math.max(o.lastIndexOf(`\r`),o.lastIndexOf(`
|
|
55
|
-
`))+1))}let o=`#`.repeat(i),s=n.enter(`headingAtx`),c=n.enter(`phrasing`);a.move(o+` `);let l=n.containerPhrasing(e,{before:`# `,after:`
|
|
56
|
-
`,...a.current()});return/^[\t ]/.test(l)&&(l=Ih(l.charCodeAt(0))+l.slice(1)),l=l?o+` `+l:o,n.options.closeAtx&&(l+=` `+o),c(),s(),l}ag.peek=og;function ag(e){return e.value||``}function og(){return`<`}sg.peek=cg;function sg(e,t,n,r){let i=Nh(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.enter(`image`),s=n.enter(`label`),c=n.createTracker(r),l=c.move(`![`);return l+=c.move(n.safe(e.alt,{before:l,after:`]`,...c.current()})),l+=c.move(`](`),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter(`destinationLiteral`),l+=c.move(`<`),l+=c.move(n.safe(e.url,{before:l,after:`>`,...c.current()})),l+=c.move(`>`)):(s=n.enter(`destinationRaw`),l+=c.move(n.safe(e.url,{before:l,after:e.title?` `:`)`,...c.current()}))),s(),e.title&&(s=n.enter(`title${a}`),l+=c.move(` `+i),l+=c.move(n.safe(e.title,{before:l,after:i,...c.current()})),l+=c.move(i),s()),l+=c.move(`)`),o(),l}function cg(){return`!`}lg.peek=ug;function lg(e,t,n,r){let i=e.referenceType,a=n.enter(`imageReference`),o=n.enter(`label`),s=n.createTracker(r),c=s.move(`![`),l=n.safe(e.alt,{before:c,after:`]`,...s.current()});c+=s.move(l+`][`),o();let u=n.stack;n.stack=[],o=n.enter(`reference`);let d=n.safe(n.associationId(e),{before:c,after:`]`,...s.current()});return o(),n.stack=u,a(),i===`full`||!l||l!==d?c+=s.move(d+`]`):i===`shortcut`?c=c.slice(0,-1):c+=s.move(`]`),c}function ug(){return`!`}dg.peek=fg;function dg(e,t,n){let r=e.value||``,i="`",a=-1;for(;RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=` `+r+` `);++a<n.unsafe.length;){let e=n.unsafe[a],t=n.compilePattern(e),i;if(e.atBreak)for(;i=t.exec(r);){let e=i.index;r.charCodeAt(e)===10&&r.charCodeAt(e-1)===13&&e--,r=r.slice(0,e)+` `+r.slice(i.index+1)}}return i+r+i}function fg(){return"`"}function pg(e,t){let n=$h(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type===`text`&&(n===e.url||`mailto:`+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}mg.peek=hg;function mg(e,t,n,r){let i=Nh(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.createTracker(r),s,c;if(pg(e,n)){let t=n.stack;n.stack=[],s=n.enter(`autolink`);let r=o.move(`<`);return r+=o.move(n.containerPhrasing(e,{before:r,after:`>`,...o.current()})),r+=o.move(`>`),s(),n.stack=t,r}s=n.enter(`link`),c=n.enter(`label`);let l=o.move(`[`);return l+=o.move(n.containerPhrasing(e,{before:l,after:`](`,...o.current()})),l+=o.move(`](`),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter(`destinationLiteral`),l+=o.move(`<`),l+=o.move(n.safe(e.url,{before:l,after:`>`,...o.current()})),l+=o.move(`>`)):(c=n.enter(`destinationRaw`),l+=o.move(n.safe(e.url,{before:l,after:e.title?` `:`)`,...o.current()}))),c(),e.title&&(c=n.enter(`title${a}`),l+=o.move(` `+i),l+=o.move(n.safe(e.title,{before:l,after:i,...o.current()})),l+=o.move(i),c()),l+=o.move(`)`),s(),l}function hg(e,t,n){return pg(e,n)?`<`:`[`}gg.peek=_g;function gg(e,t,n,r){let i=e.referenceType,a=n.enter(`linkReference`),o=n.enter(`label`),s=n.createTracker(r),c=s.move(`[`),l=n.containerPhrasing(e,{before:c,after:`]`,...s.current()});c+=s.move(l+`][`),o();let u=n.stack;n.stack=[],o=n.enter(`reference`);let d=n.safe(n.associationId(e),{before:c,after:`]`,...s.current()});return o(),n.stack=u,a(),i===`full`||!l||l!==d?c+=s.move(d+`]`):i===`shortcut`?c=c.slice(0,-1):c+=s.move(`]`),c}function _g(){return`[`}function vg(e){let t=e.options.bullet||`*`;if(t!==`*`&&t!==`+`&&t!==`-`)throw Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function yg(e){let t=vg(e),n=e.options.bulletOther;if(!n)return t===`*`?`-`:`*`;if(n!==`*`&&n!==`+`&&n!==`-`)throw Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function bg(e){let t=e.options.bulletOrdered||`.`;if(t!==`.`&&t!==`)`)throw Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function xg(e){let t=e.options.rule||`*`;if(t!==`*`&&t!==`-`&&t!==`_`)throw Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function Sg(e,t,n,r){let i=n.enter(`list`),a=n.bulletCurrent,o=e.ordered?bg(n):vg(n),s=e.ordered?o===`.`?`)`:`.`:yg(n),c=t&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!e.ordered){let t=e.children?e.children[0]:void 0;if((o===`*`||o===`-`)&&t&&(!t.children||!t.children[0])&&n.stack[n.stack.length-1]===`list`&&n.stack[n.stack.length-2]===`listItem`&&n.stack[n.stack.length-3]===`list`&&n.stack[n.stack.length-4]===`listItem`&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(c=!0),xg(n)===o&&t){let t=-1;for(;++t<e.children.length;){let n=e.children[t];if(n&&n.type===`listItem`&&n.children&&n.children[0]&&n.children[0].type===`thematicBreak`){c=!0;break}}}}c&&(o=s),n.bulletCurrent=o;let l=n.containerFlow(e,r);return n.bulletLastUsed=o,n.bulletCurrent=a,i(),l}function Cg(e){let t=e.options.listItemIndent||`one`;if(t!==`tab`&&t!==`one`&&t!==`mixed`)throw Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function wg(e,t,n,r){let i=Cg(n),a=n.bulletCurrent||vg(n);t&&t.type===`list`&&t.ordered&&(a=(typeof t.start==`number`&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let o=a.length+1;(i===`tab`||i===`mixed`&&(t&&t.type===`list`&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);let s=n.createTracker(r);s.move(a+` `.repeat(o-a.length)),s.shift(o);let c=n.enter(`listItem`),l=n.indentLines(n.containerFlow(e,s.current()),u);return c(),l;function u(e,t,n){return t?(n?``:` `.repeat(o))+e:(n?a:a+` `.repeat(o-a.length))+e}}function Tg(e,t,n,r){let i=n.enter(`paragraph`),a=n.enter(`phrasing`),o=n.containerPhrasing(e,r);return a(),i(),o}var Eg=Bh([`break`,`delete`,`emphasis`,`footnote`,`footnoteReference`,`image`,`imageReference`,`inlineCode`,`inlineMath`,`link`,`linkReference`,`mdxJsxTextElement`,`mdxTextExpression`,`strong`,`text`,`textDirective`]);function Dg(e,t,n,r){return(e.children.some(function(e){return Eg(e)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function Og(e){let t=e.options.strong||`*`;if(t!==`*`&&t!==`_`)throw Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}kg.peek=Ag;function kg(e,t,n,r){let i=Og(n),a=n.enter(`strong`),o=n.createTracker(r),s=o.move(i+i),c=o.move(n.containerPhrasing(e,{after:i,before:s,...o.current()})),l=c.charCodeAt(0),u=Lh(r.before.charCodeAt(r.before.length-1),l,i);u.inside&&(c=Ih(l)+c.slice(1));let d=c.charCodeAt(c.length-1),f=Lh(r.after.charCodeAt(0),d,i);f.inside&&(c=c.slice(0,-1)+Ih(d));let p=o.move(i+i);return a(),n.attentionEncodeSurroundingInfo={after:f.outside,before:u.outside},s+c+p}function Ag(e,t,n){return n.options.strong||`*`}function jg(e,t,n,r){return n.safe(e.value,r)}function Mg(e){let t=e.options.ruleRepetition||3;if(t<3)throw Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function Ng(e,t,n){let r=(xg(n)+(n.options.ruleSpaces?` `:``)).repeat(Mg(n));return n.options.ruleSpaces?r.slice(0,-1):r}var Pg={blockquote:Ch,break:Dh,code:jh,definition:Ph,emphasis:Rh,hardBreak:Dh,heading:ig,html:ag,image:sg,imageReference:lg,inlineCode:dg,link:mg,linkReference:gg,list:Sg,listItem:wg,paragraph:Tg,root:Dg,strong:kg,text:jg,thematicBreak:Ng},Fg=[Ig];function Ig(e,t,n,r){if(t.type===`code`&&kh(t,r)&&(e.type===`list`||e.type===t.type&&kh(e,r)))return!1;if(`spread`in n&&typeof n.spread==`boolean`)return e.type===`paragraph`&&(e.type===t.type||t.type===`definition`||t.type===`heading`&&rg(t,r))?void 0:+!!n.spread}var Lg=[`autolink`,`destinationLiteral`,`destinationRaw`,`reference`,`titleQuote`,`titleApostrophe`],Rg=[{character:` `,after:`[\\r\\n]`,inConstruct:`phrasing`},{character:` `,before:`[\\r\\n]`,inConstruct:`phrasing`},{character:` `,inConstruct:[`codeFencedLangGraveAccent`,`codeFencedLangTilde`]},{character:`\r`,inConstruct:[`codeFencedLangGraveAccent`,`codeFencedLangTilde`,`codeFencedMetaGraveAccent`,`codeFencedMetaTilde`,`destinationLiteral`,`headingAtx`]},{character:`
|
|
57
|
-
`,inConstruct:[`codeFencedLangGraveAccent`,`codeFencedLangTilde`,`codeFencedMetaGraveAccent`,`codeFencedMetaTilde`,`destinationLiteral`,`headingAtx`]},{character:` `,after:`[\\r\\n]`,inConstruct:`phrasing`},{character:` `,before:`[\\r\\n]`,inConstruct:`phrasing`},{character:` `,inConstruct:[`codeFencedLangGraveAccent`,`codeFencedLangTilde`]},{character:`!`,after:`\\[`,inConstruct:`phrasing`,notInConstruct:Lg},{character:`"`,inConstruct:`titleQuote`},{atBreak:!0,character:`#`},{character:`#`,inConstruct:`headingAtx`,after:`(?:[\r
|
|
58
|
-
]|$)`},{character:`&`,after:`[#A-Za-z]`,inConstruct:`phrasing`},{character:`'`,inConstruct:`titleApostrophe`},{character:`(`,inConstruct:`destinationRaw`},{before:`\\]`,character:`(`,inConstruct:`phrasing`,notInConstruct:Lg},{atBreak:!0,before:`\\d+`,character:`)`},{character:`)`,inConstruct:`destinationRaw`},{atBreak:!0,character:`*`,after:`(?:[ \r
|
|
59
|
-
*])`},{character:`*`,inConstruct:`phrasing`,notInConstruct:Lg},{atBreak:!0,character:`+`,after:`(?:[ \r
|
|
60
|
-
])`},{atBreak:!0,character:`-`,after:`(?:[ \r
|
|
61
|
-
-])`},{atBreak:!0,before:`\\d+`,character:`.`,after:`(?:[ \r
|
|
62
|
-
]|$)`},{atBreak:!0,character:`<`,after:`[!/?A-Za-z]`},{character:`<`,after:`[!/?A-Za-z]`,inConstruct:`phrasing`,notInConstruct:Lg},{character:`<`,inConstruct:`destinationLiteral`},{atBreak:!0,character:`=`},{atBreak:!0,character:`>`},{character:`>`,inConstruct:`destinationLiteral`},{atBreak:!0,character:`[`},{character:`[`,inConstruct:`phrasing`,notInConstruct:Lg},{character:`[`,inConstruct:[`label`,`reference`]},{character:`\\`,after:`[\\r\\n]`,inConstruct:`phrasing`},{character:`]`,inConstruct:[`label`,`reference`]},{atBreak:!0,character:`_`},{character:`_`,inConstruct:`phrasing`,notInConstruct:Lg},{atBreak:!0,character:"`"},{character:"`",inConstruct:[`codeFencedLangGraveAccent`,`codeFencedMetaGraveAccent`]},{character:"`",inConstruct:`phrasing`,notInConstruct:Lg},{atBreak:!0,character:`~`}];function zg(e,t){let n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)==65535||(n&65535)==65534||n>1114111?`�`:String.fromCodePoint(n)}var Bg=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Vg(e){return e.replace(Bg,Hg)}function Hg(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){let e=n.charCodeAt(1),t=e===120||e===88;return zg(n.slice(t?2:1),t?16:10)}return $f(n)||e}function Ug(e){return e.label||!e.identifier?e.label||``:Vg(e.identifier)}function Wg(e){if(!e._compiled){let t=(e.atBreak?`[\\r\\n][\\t ]*`:``)+(e.before?`(?:`+e.before+`)`:``);e._compiled=RegExp((t?`(`+t+`)`:``)+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?`\\`:``)+e.character+(e.after?`(?:`+e.after+`)`:``),`g`)}return e._compiled}function Gg(e,t,n){let r=t.indexStack,i=e.children||[],a=[],o=-1,s=n.before,c;r.push(-1);let l=t.createTracker(n);for(;++o<i.length;){let u=i[o],d;if(r[r.length-1]=o,o+1<i.length){let n=t.handle.handlers[i[o+1].type];n&&n.peek&&(n=n.peek),d=n?n(i[o+1],e,t,{before:``,after:``,...l.current()}).charAt(0):``}else d=n.after;a.length>0&&(s===`\r`||s===`
|
|
63
|
-
`)&&u.type===`html`&&(a[a.length-1]=a[a.length-1].replace(/(\r?\n|\r)$/,` `),s=` `,l=t.createTracker(n),l.move(a.join(``)));let f=t.handle(u,e,t,{...l.current(),after:d,before:s});c&&c===f.slice(0,1)&&(f=Ih(c.charCodeAt(0))+f.slice(1));let p=t.attentionEncodeSurroundingInfo;t.attentionEncodeSurroundingInfo=void 0,c=void 0,p&&(a.length>0&&p.before&&s===a[a.length-1].slice(-1)&&(a[a.length-1]=a[a.length-1].slice(0,-1)+Ih(s.charCodeAt(0))),p.after&&(c=d)),l.move(f),a.push(f),s=f.slice(-1)}return r.pop(),a.join(``)}function Kg(e,t,n){let r=t.indexStack,i=e.children||[],a=t.createTracker(n),o=[],s=-1;for(r.push(-1);++s<i.length;){let n=i[s];r[r.length-1]=s,o.push(a.move(t.handle(n,e,t,{before:`
|
|
64
|
-
`,after:`
|
|
65
|
-
`,...a.current()}))),n.type!==`list`&&(t.bulletLastUsed=void 0),s<i.length-1&&o.push(a.move(qg(n,i[s+1],e,t)))}return r.pop(),o.join(``)}function qg(e,t,n,r){let i=r.join.length;for(;i--;){let a=r.join[i](e,t,n,r);if(a===!0||a===1)break;if(typeof a==`number`)return`
|
|
66
|
-
`.repeat(1+a);if(a===!1)return`
|
|
67
|
-
|
|
68
|
-
<!---->
|
|
69
|
-
|
|
70
|
-
`}return`
|
|
71
|
-
|
|
72
|
-
`}var Jg=/\r?\n|\r/g;function Yg(e,t){let n=[],r=0,i=0,a;for(;a=Jg.exec(e);)o(e.slice(r,a.index)),n.push(a[0]),r=a.index+a[0].length,i++;return o(e.slice(r)),n.join(``);function o(e){n.push(t(e,i,!e))}}function Xg(e,t,n){let r=(n.before||``)+(t||``)+(n.after||``),i=[],a=[],o={},s=-1;for(;++s<e.unsafe.length;){let t=e.unsafe[s];if(!Th(e.stack,t))continue;let n=e.compilePattern(t),a;for(;a=n.exec(r);){let e=`before`in t||!!t.atBreak,n=`after`in t,r=a.index+(e?a[1].length:0);i.includes(r)?(o[r].before&&!e&&(o[r].before=!1),o[r].after&&!n&&(o[r].after=!1)):(i.push(r),o[r]={before:e,after:n})}}i.sort(Zg);let c=n.before?n.before.length:0,l=r.length-(n.after?n.after.length:0);for(s=-1;++s<i.length;){let e=i[s];e<c||e>=l||e+1<l&&i[s+1]===e+1&&o[e].after&&!o[e+1].before&&!o[e+1].after||i[s-1]===e-1&&o[e].before&&!o[e-1].before&&!o[e-1].after||(c!==e&&a.push(Qg(r.slice(c,e),`\\`)),c=e,/[!-/:-@[-`{-~]/.test(r.charAt(e))&&(!n.encode||!n.encode.includes(r.charAt(e)))?a.push(`\\`):(a.push(Ih(r.charCodeAt(e))),c++))}return a.push(Qg(r.slice(c,l),n.after)),a.join(``)}function Zg(e,t){return e-t}function Qg(e,t){let n=/\\(?=[!-/:-@[-`{-~])/g,r=[],i=[],a=e+t,o=-1,s=0,c;for(;c=n.exec(a);)r.push(c.index);for(;++o<r.length;)s!==r[o]&&i.push(e.slice(s,r[o])),i.push(`\\`),s=r[o];return i.push(e.slice(s)),i.join(``)}function $g(e){let t=e||{},n=t.now||{},r=t.lineShift||0,i=n.line||1,a=n.column||1;return{move:c,current:o,shift:s};function o(){return{now:{line:i,column:a},lineShift:r}}function s(e){r+=e}function c(e){let t=e||``,n=t.split(/\r?\n|\r/g),o=n[n.length-1];return i+=n.length-1,a=n.length===1?a+o.length:1+o.length+r,t}}function e_(e,t){let n=t||{},r={associationId:Ug,containerPhrasing:i_,containerFlow:a_,createTracker:$g,compilePattern:Wg,enter:a,handlers:{...Pg},handle:void 0,indentLines:Yg,indexStack:[],join:[...Fg],options:{},safe:o_,stack:[],unsafe:[...Rg]};bh(r,n),r.options.tightDefinitions&&r.join.push(r_),r.handle=vh(`type`,{invalid:t_,unknown:n_,handlers:r.handlers});let i=r.handle(e,void 0,r,{before:`
|
|
73
|
-
`,after:`
|
|
74
|
-
`,now:{line:1,column:1},lineShift:0});return i&&i.charCodeAt(i.length-1)!==10&&i.charCodeAt(i.length-1)!==13&&(i+=`
|
|
75
|
-
`),i;function a(e){return r.stack.push(e),t;function t(){r.stack.pop()}}}function t_(e){throw Error("Cannot handle value `"+e+"`, expected node")}function n_(e){throw Error("Cannot handle unknown node `"+e.type+"`")}function r_(e,t){if(e.type===`definition`&&e.type===t.type)return 0}function i_(e,t){return Gg(e,this,t)}function a_(e,t){return Kg(e,this,t)}function o_(e,t){return Xg(this,e,t)}var s_=[`mdxJsxTextElement`,`mdxJsxFlowElement`];function c_(e){return s_.includes(e.type)&&l_.includes(e.name)}var l_=`a.abbr.address.area.article.aside.audio.b.base.bdi.bdo.blockquote.body.br.button.canvas.caption.cite.code.col.colgroup.data.datalist.dd.del.details.dfn.dialog.div.dl.dt.em.embed.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.iframe.input.ins.kbd.label.legend.li.link.main.map.mark.meta.meter.nav.noscript.object.ol.optgroup.option.output.p.param.picture.pre.progress.q.rp.rt.ruby.s.samp.script.section.select.small.source.span.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.title.tr.track.u.ul.var.video.wbr`.split(`.`);function u_(e,t){let n=d_(e),r=d_(t);return f_({...n,...r})}function d_(e){let t={};return e.split(`;`).filter(e=>e.trim()!==``).forEach(e=>{let[n,r]=e.split(`:`).map(e=>e.trim());t[n]=r}),t}function f_(e){return Object.entries(e).map(([e,t])=>`${e}: ${t}`).join(`; `)}function p_(e){return e.children instanceof Array}function m_({root:e,visitors:t,jsxComponentDescriptors:n,jsxIsAvailable:r,addImportStatements:i=!0}){let a=null,o=new Set,s=new Map;t=t.sort((e,t)=>(t.priority??0)-(e.priority??0)),d(e,null);function c(e,t){o.add(e),t&&s.set(e,{...t})}function l(e,n){if(a===null)return a=n,a;if(!p_(e))throw Error(`Attempting to append children to a non-parent`);let r=e.children,i=r.at(-1);if(i){let e=t.find(e=>e.shouldJoin?.call(e,i,n));if(e){let t=e.join(i,n);return r.splice(r.length-1,1,t),t}}return r.push(n),n}function u(e,t){e.getChildren().forEach(e=>{d(e,t)})}function d(e,n,r=null){var i;let a=t.find((t,n)=>r?.has(n)?!1:t.testLexicalNode?.call(t,e));if(!a)throw Error(`no lexical visitor found for ${e.getType()}`,{cause:e});(i=a.visitLexicalNode)==null||i.call(a,{lexicalNode:e,mdastParent:n,actions:{addAndStepInto(t,r={},i=!0){let a={type:t,...r,...i?{children:[]}:{}};l(n,a),W(e)&&i&&u(e,a)},appendToParent:l,visitChildren:u,visit:d,registerReferredComponent:c,nextVisitor(){d(e,n,(r??new Set).add(t.indexOf(a)))}}})}if(a===null)throw Error(`traversal ended with no root element`);let f=new Map,p=new Map;for(let e of o){let t=n.find(t=>t.name===e)??s.get(e)??n.find(e=>e.name===`*`);if(!t)throw Error(`Component ${e} is used but not imported`);if(t.source)if(t.defaultExport)p.set(e,t.source);else{let{source:n}=t,r=f.get(n);r?r.push(e):f.set(n,[e])}}if(!i){for(let[e,t]of f.entries()){let n=t.filter(e=>s.has(e));n.length>0?f.set(e,n):f.delete(e)}for(let e of p.keys())s.has(e)||p.delete(e)}let m=Array.from(f).map(([e,t])=>({type:`mdxjsEsm`,value:`import { ${t.join(`, `)} } from '${e}'`}));m.push(...Array.from(p).map(([e,t])=>({type:`mdxjsEsm`,value:`import ${e} from '${t}'`})));let h=a,g=h.children.find(e=>e.type===`yaml`);return g?h.children.splice(h.children.indexOf(g)+1,0,...m):h.children.unshift(...m),y_(h,[]),h_(h),r||g_(h),h}function h_(e){if(`children`in e&&e.children.length>0){if(c_(e)&&e.children.length===1){let t=e.children[0];t.type===`mdxJsxTextElement`&&t.name===`span`&&(t.attributes.forEach(t=>{if(t.type===`mdxJsxAttribute`){let n=e.attributes.find(e=>e.type===`mdxJsxAttribute`&&e.name===t.name);if(n)if(t.name===`className`){let e=new Set([...n.value.split(` `),...t.value.split(` `)]);n.value=Array.from(e).join(` `)}else t.name===`style`&&(n.value=u_(n.value,t.value));else e.attributes.push(t)}}),e.children=t.children)}e.children.forEach(e=>{h_(e)})}}function g_(e){if(Object.hasOwn(e,`children`)){let t=e,n=[];t.children.forEach(e=>{e.type===`mdxJsxTextElement`&&e.name===`u`?n.push({type:`html`,value:`<u>`},...e.children,{type:`html`,value:`</u>`}):(n.push(e),g_(e))}),t.children=n}}var __=/\s+$/,v_=/^\s+/;function y_(e,t){if(e.type===`strong`||e.type===`emphasis`){let n=e.children.at(-1);if(n?.type===`text`){let r=__.exec(n.value);if(r){n.value=n.value.replace(__,``);let i=t.at(-1);i&&(i.children.splice(i.children.indexOf(e)+1,0,{type:`text`,value:r[0]}),y_(i,t.slice(0,-1)))}}let r=e.children.at(0);if(r?.type===`text`){let n=v_.exec(r.value);if(n){r.value=r.value.replace(v_,``);let i=t.at(-1);i&&(i.children.splice(i.children.indexOf(e),0,{type:`text`,value:n[0]}),y_(i,t.slice(0,-1)))}}}if(`children`in e&&e.children.length>0){let n=e;n.children.forEach(e=>{y_(e,[...t,n])})}}function b_({root:e,toMarkdownOptions:t,toMarkdownExtensions:n,visitors:r,jsxComponentDescriptors:i,jsxIsAvailable:a}){return e_(m_({root:e,visitors:r,jsxComponentDescriptors:i,jsxIsAvailable:a}),{extensions:n,...t})+`
|
|
76
|
-
`}var x_={}.hasOwnProperty;function S_(e){let t={},n=-1;for(;++n<e.length;)C_(t,e[n]);return t}function C_(e,t){let n;for(n in t){let r=(x_.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n],a;if(i)for(a in i){x_.call(r,a)||(r[a]=[]);let e=i[a];w_(r[a],Array.isArray(e)?e:e?[e]:[])}}}function w_(e,t){let n=-1,r=[];for(;++n<t.length;)(t[n].add===`after`?e:r).push(t[n]);mf(e,0,0,r)}function T_(e){return e.replace(/[\t\n\r ]+/g,` `).replace(/^ | $/g,``).toLowerCase().toUpperCase()}var E_={tokenize:D_};function D_(e){let t=e.attempt(this.parser.constructs.contentInitial,r,i),n;return t;function r(n){if(n===null){e.consume(n);return}return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),Rm(e,t,`linePrefix`)}function i(t){return e.enter(`paragraph`),a(t)}function a(t){let r=e.enter(`chunkText`,{contentType:`text`,previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){if(t===null){e.exit(`chunkText`),e.exit(`paragraph`),e.consume(t);return}return K(t)?(e.consume(t),e.exit(`chunkText`),a):(e.consume(t),o)}}var O_={tokenize:A_},k_={tokenize:j_};function A_(e){let t=this,n=[],r=0,i,a,o;return s;function s(i){if(r<n.length){let a=n[r];return t.containerState=a[1],e.attempt(a[0].continuation,c,l)(i)}return l(i)}function c(e){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&v();let n=t.events.length,a=n,o;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){o=t.events[a][1].end;break}_(r);let s=n;for(;s<t.events.length;)t.events[s][1].end={...o},s++;return mf(t.events,a+1,0,t.events.slice(n)),t.events.length=s,l(e)}return s(e)}function l(a){if(r===n.length){if(!i)return f(a);if(i.currentConstruct&&i.currentConstruct.concrete)return m(a);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(k_,u,d)(a)}function u(e){return i&&v(),_(r),f(e)}function d(e){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,m(e)}function f(n){return t.containerState={},e.attempt(k_,p,m)(n)}function p(e){return r++,n.push([t.currentConstruct,t.containerState]),f(e)}function m(n){if(n===null){i&&v(),_(0),e.consume(n);return}return i||=t.parser.flow(t.now()),e.enter(`chunkFlow`,{_tokenizer:i,contentType:`flow`,previous:a}),h(n)}function h(n){if(n===null){g(e.exit(`chunkFlow`),!0),_(0),e.consume(n);return}return K(n)?(e.consume(n),g(e.exit(`chunkFlow`)),r=0,t.interrupt=void 0,s):(e.consume(n),h)}function g(e,n){let s=t.sliceStream(e);if(n&&s.push(null),e.previous=a,a&&(a.next=e),a=e,i.defineSkip(e.start),i.write(s),t.parser.lazy[e.start.line]){let e=i.events.length;for(;e--;)if(i.events[e][1].start.offset<o&&(!i.events[e][1].end||i.events[e][1].end.offset>o))return;let n=t.events.length,a=n,s,c;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){if(s){c=t.events[a][1].end;break}s=!0}for(_(r),e=n;e<t.events.length;)t.events[e][1].end={...c},e++;mf(t.events,a+1,0,t.events.slice(n)),t.events.length=e}}function _(r){let i=n.length;for(;i-- >r;){let r=n[i];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function v(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function j_(e,t,n){return Rm(e,e.attempt(this.parser.constructs.document,t,n),`linePrefix`,this.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)}var M_={name:`attention`,resolveAll:N_,tokenize:P_};function N_(e,t){let n=-1,r,i,a,o,s,c,l,u;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`attentionSequence`&&e[n][1]._close){for(r=n;r--;)if(e[r][0]===`exit`&&e[r][1].type===`attentionSequence`&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;c=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;let d={...e[r][1].end},f={...e[n][1].start};F_(d,-c),F_(f,c),o={type:c>1?`strongSequence`:`emphasisSequence`,start:d,end:{...e[r][1].end}},s={type:c>1?`strongSequence`:`emphasisSequence`,start:{...e[n][1].start},end:f},a={type:c>1?`strongText`:`emphasisText`,start:{...e[r][1].end},end:{...e[n][1].start}},i={type:c>1?`strong`:`emphasis`,start:{...o.start},end:{...s.end}},e[r][1].end={...o.start},e[n][1].start={...s.end},l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=hf(l,[[`enter`,e[r][1],t],[`exit`,e[r][1],t]])),l=hf(l,[[`enter`,i,t],[`enter`,o,t],[`exit`,o,t],[`enter`,a,t]]),l=hf(l,kf(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),l=hf(l,[[`exit`,a,t],[`enter`,s,t],[`exit`,s,t],[`exit`,i,t]]),e[n][1].end.offset-e[n][1].start.offset?(u=2,l=hf(l,[[`enter`,e[n][1],t],[`exit`,e[n][1],t]])):u=0,mf(e,r-1,n-r+3,l),n=r+l.length-u-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`attentionSequence`&&(e[n][1].type=`data`);return e}function P_(e,t){let n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Of(r),a;return o;function o(t){return a=t,e.enter(`attentionSequence`),s(t)}function s(o){if(o===a)return e.consume(o),s;let c=e.exit(`attentionSequence`),l=Of(o),u=!l||l===2&&i||n.includes(o),d=!i||i===2&&l||n.includes(r);return c._open=!!(a===42?u:u&&(i||!d)),c._close=!!(a===42?d:d&&(l||!u)),t(o)}}function F_(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var I_={name:`autolink`,tokenize:L_};function L_(e,t,n){let r=0;return i;function i(t){return e.enter(`autolink`),e.enter(`autolinkMarker`),e.consume(t),e.exit(`autolinkMarker`),e.enter(`autolinkProtocol`),a}function a(t){return gf(t)?(e.consume(t),o):t===64?n(t):l(t)}function o(e){return e===43||e===45||e===46||_f(e)?(r=1,s(e)):l(e)}function s(t){return t===58?(e.consume(t),r=0,c):(t===43||t===45||t===46||_f(t))&&r++<32?(e.consume(t),s):(r=0,l(t))}function c(r){return r===62?(e.exit(`autolinkProtocol`),e.enter(`autolinkMarker`),e.consume(r),e.exit(`autolinkMarker`),e.exit(`autolink`),t):r===null||r===32||r===60||yf(r)?n(r):(e.consume(r),c)}function l(t){return t===64?(e.consume(t),u):vf(t)?(e.consume(t),l):n(t)}function u(e){return _f(e)?d(e):n(e)}function d(n){return n===46?(e.consume(n),r=0,u):n===62?(e.exit(`autolinkProtocol`).type=`autolinkEmail`,e.enter(`autolinkMarker`),e.consume(n),e.exit(`autolinkMarker`),e.exit(`autolink`),t):f(n)}function f(t){if((t===45||_f(t))&&r++<63){let n=t===45?f:d;return e.consume(t),n}return n(t)}}var R_={partial:!0,tokenize:z_};function z_(e,t,n){return r;function r(t){return wf(t)?Rm(e,i,`linePrefix`)(t):i(t)}function i(e){return e===null||K(e)?t(e):n(e)}}var B_={continuation:{tokenize:H_},exit:U_,name:`blockQuote`,tokenize:V_};function V_(e,t,n){let r=this;return i;function i(t){if(t===62){let n=r.containerState;return n.open||=(e.enter(`blockQuote`,{_container:!0}),!0),e.enter(`blockQuotePrefix`),e.enter(`blockQuoteMarker`),e.consume(t),e.exit(`blockQuoteMarker`),a}return n(t)}function a(n){return wf(n)?(e.enter(`blockQuotePrefixWhitespace`),e.consume(n),e.exit(`blockQuotePrefixWhitespace`),e.exit(`blockQuotePrefix`),t):(e.exit(`blockQuotePrefix`),t(n))}}function H_(e,t,n){let r=this;return i;function i(t){return wf(t)?Rm(e,a,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):a(t)}function a(r){return e.attempt(B_,t,n)(r)}}function U_(e){e.exit(`blockQuote`)}var W_={name:`characterEscape`,tokenize:G_};function G_(e,t,n){return r;function r(t){return e.enter(`characterEscape`),e.enter(`escapeMarker`),e.consume(t),e.exit(`escapeMarker`),i}function i(r){return Sf(r)?(e.enter(`characterEscapeValue`),e.consume(r),e.exit(`characterEscapeValue`),e.exit(`characterEscape`),t):n(r)}}var K_={name:`characterReference`,tokenize:q_};function q_(e,t,n){let r=this,i=0,a,o;return s;function s(t){return e.enter(`characterReference`),e.enter(`characterReferenceMarker`),e.consume(t),e.exit(`characterReferenceMarker`),c}function c(t){return t===35?(e.enter(`characterReferenceMarkerNumeric`),e.consume(t),e.exit(`characterReferenceMarkerNumeric`),l):(e.enter(`characterReferenceValue`),a=31,o=_f,u(t))}function l(t){return t===88||t===120?(e.enter(`characterReferenceMarkerHexadecimal`),e.consume(t),e.exit(`characterReferenceMarkerHexadecimal`),e.enter(`characterReferenceValue`),a=6,o=xf,u):(e.enter(`characterReferenceValue`),a=7,o=bf,u(t))}function u(s){if(s===59&&i){let i=e.exit(`characterReferenceValue`);return o===_f&&!$f(r.sliceSerialize(i))?n(s):(e.enter(`characterReferenceMarker`),e.consume(s),e.exit(`characterReferenceMarker`),e.exit(`characterReference`),t)}return o(s)&&i++<a?(e.consume(s),u):n(s)}}var J_={partial:!0,tokenize:Z_},Y_={concrete:!0,name:`codeFenced`,tokenize:X_};function X_(e,t,n){let r=this,i={partial:!0,tokenize:x},a=0,o=0,s;return c;function c(e){return l(e)}function l(t){let n=r.events[r.events.length-1];return a=n&&n[1].type===`linePrefix`?n[2].sliceSerialize(n[1],!0).length:0,s=t,e.enter(`codeFenced`),e.enter(`codeFencedFence`),e.enter(`codeFencedFenceSequence`),u(t)}function u(t){return t===s?(o++,e.consume(t),u):o<3?n(t):(e.exit(`codeFencedFenceSequence`),wf(t)?Rm(e,d,`whitespace`)(t):d(t))}function d(n){return n===null||K(n)?(e.exit(`codeFencedFence`),r.interrupt?t(n):e.check(J_,h,b)(n)):(e.enter(`codeFencedFenceInfo`),e.enter(`chunkString`,{contentType:`string`}),f(n))}function f(t){return t===null||K(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),d(t)):wf(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),Rm(e,p,`whitespace`)(t)):t===96&&t===s?n(t):(e.consume(t),f)}function p(t){return t===null||K(t)?d(t):(e.enter(`codeFencedFenceMeta`),e.enter(`chunkString`,{contentType:`string`}),m(t))}function m(t){return t===null||K(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceMeta`),d(t)):t===96&&t===s?n(t):(e.consume(t),m)}function h(t){return e.attempt(i,b,g)(t)}function g(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),_}function _(t){return a>0&&wf(t)?Rm(e,v,`linePrefix`,a+1)(t):v(t)}function v(t){return t===null||K(t)?e.check(J_,h,b)(t):(e.enter(`codeFlowValue`),y(t))}function y(t){return t===null||K(t)?(e.exit(`codeFlowValue`),v(t)):(e.consume(t),y)}function b(n){return e.exit(`codeFenced`),t(n)}function x(e,t,n){let i=0;return a;function a(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c}function c(t){return e.enter(`codeFencedFence`),wf(t)?Rm(e,l,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):l(t)}function l(t){return t===s?(e.enter(`codeFencedFenceSequence`),u(t)):n(t)}function u(t){return t===s?(i++,e.consume(t),u):i>=o?(e.exit(`codeFencedFenceSequence`),wf(t)?Rm(e,d,`whitespace`)(t):d(t)):n(t)}function d(r){return r===null||K(r)?(e.exit(`codeFencedFence`),t(r)):n(r)}}}function Z_(e,t,n){let r=this;return i;function i(t){return t===null?n(t):(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}var Q_={name:`codeIndented`,tokenize:ev},$_={partial:!0,tokenize:tv};function ev(e,t,n){let r=this;return i;function i(t){return e.enter(`codeIndented`),Rm(e,a,`linePrefix`,5)(t)}function a(e){let t=r.events[r.events.length-1];return t&&t[1].type===`linePrefix`&&t[2].sliceSerialize(t[1],!0).length>=4?o(e):n(e)}function o(t){return t===null?c(t):K(t)?e.attempt($_,o,c)(t):(e.enter(`codeFlowValue`),s(t))}function s(t){return t===null||K(t)?(e.exit(`codeFlowValue`),o(t)):(e.consume(t),s)}function c(n){return e.exit(`codeIndented`),t(n)}}function tv(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):K(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),i):Rm(e,a,`linePrefix`,5)(t)}function a(e){let a=r.events[r.events.length-1];return a&&a[1].type===`linePrefix`&&a[2].sliceSerialize(a[1],!0).length>=4?t(e):K(e)?i(e):n(e)}}var nv={name:`codeText`,previous:iv,resolve:rv,tokenize:av};function rv(e){let t=e.length-4,n=3,r,i;if((e[n][1].type===`lineEnding`||e[n][1].type===`space`)&&(e[t][1].type===`lineEnding`||e[t][1].type===`space`)){for(r=n;++r<t;)if(e[r][1].type===`codeTextData`){e[n][1].type=`codeTextPadding`,e[t][1].type=`codeTextPadding`,n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!==`lineEnding`&&(i=r):(r===t||e[r][1].type===`lineEnding`)&&(e[i][1].type=`codeTextData`,r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function iv(e){return e!==96||this.events[this.events.length-1][1].type===`characterEscape`}function av(e,t,n){let r=0,i,a;return o;function o(t){return e.enter(`codeText`),e.enter(`codeTextSequence`),s(t)}function s(t){return t===96?(e.consume(t),r++,s):(e.exit(`codeTextSequence`),c(t))}function c(t){return t===null?n(t):t===32?(e.enter(`space`),e.consume(t),e.exit(`space`),c):t===96?(a=e.enter(`codeTextSequence`),i=0,u(t)):K(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c):(e.enter(`codeTextData`),l(t))}function l(t){return t===null||t===32||t===96||K(t)?(e.exit(`codeTextData`),c(t)):(e.consume(t),l)}function u(n){return n===96?(e.consume(n),i++,u):i===r?(e.exit(`codeTextSequence`),e.exit(`codeText`),t(n)):(a.type=`codeTextData`,l(n))}}var ov=class{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=t??1/0;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){let r=t||0;this.setCursor(Math.trunc(e));let i=this.right.splice(this.right.length-r,1/0);return n&&sv(this.left,n),i.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),sv(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),sv(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0))if(e<this.left.length){let t=this.left.splice(e,1/0);sv(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);sv(this.left,t.reverse())}}};function sv(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function cv(e){let t={},n=-1,r,i,a,o,s,c,l,u=new ov(e);for(;++n<u.length;){for(;n in t;)n=t[n];if(r=u.get(n),n&&r[1].type===`chunkFlow`&&u.get(n-1)[1].type===`listItemPrefix`&&(c=r[1]._tokenizer.events,a=0,a<c.length&&c[a][1].type===`lineEndingBlank`&&(a+=2),a<c.length&&c[a][1].type===`content`))for(;++a<c.length&&c[a][1].type!==`content`;)c[a][1].type===`chunkText`&&(c[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]===`enter`)r[1].contentType&&(Object.assign(t,lv(u,n)),n=t[n],l=!0);else if(r[1]._container){for(a=n,i=void 0;a--;)if(o=u.get(a),o[1].type===`lineEnding`||o[1].type===`lineEndingBlank`)o[0]===`enter`&&(i&&(u.get(i)[1].type=`lineEndingBlank`),o[1].type=`lineEnding`,i=a);else if(!(o[1].type===`linePrefix`||o[1].type===`listItemIndent`))break;i&&(r[1].end={...u.get(i)[1].start},s=u.slice(i,n),s.unshift(r),u.splice(i,n-i+1,s))}}return mf(e,0,1/0,u.slice(0)),!l}function lv(e,t){let n=e.get(t)[1],r=e.get(t)[2],i=t-1,a=[],o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));let s=o.events,c=[],l={},u,d,f=-1,p=n,m=0,h=0,g=[h];for(;p;){for(;e.get(++i)[1]!==p;);a.push(i),p._tokenizer||(u=r.sliceStream(p),p.next||u.push(null),d&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(u),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++f<s.length;)s[f][0]===`exit`&&s[f-1][0]===`enter`&&s[f][1].type===s[f-1][1].type&&s[f][1].start.line!==s[f][1].end.line&&(h=f+1,g.push(h),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):g.pop(),f=g.length;f--;){let t=s.slice(g[f],g[f+1]),n=a.pop();c.push([n,n+t.length-1]),e.splice(n,2,t)}for(c.reverse(),f=-1;++f<c.length;)l[m+c[f][0]]=m+c[f][1],m+=c[f][1]-c[f][0]-1;return l}var uv={resolve:fv,tokenize:pv},dv={partial:!0,tokenize:mv};function fv(e){return cv(e),e}function pv(e,t){let n;return r;function r(t){return e.enter(`content`),n=e.enter(`chunkContent`,{contentType:`content`}),i(t)}function i(t){return t===null?a(t):K(t)?e.check(dv,o,a)(t):(e.consume(t),i)}function a(n){return e.exit(`chunkContent`),e.exit(`content`),t(n)}function o(t){return e.consume(t),e.exit(`chunkContent`),n.next=e.enter(`chunkContent`,{contentType:`content`,previous:n}),n=n.next,i}}function mv(e,t,n){let r=this;return i;function i(t){return e.exit(`chunkContent`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),Rm(e,a,`linePrefix`)}function a(i){if(i===null||K(i))return n(i);let a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes(`codeIndented`)&&a&&a[1].type===`linePrefix`&&a[2].sliceSerialize(a[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}function hv(e,t,n,r,i,a,o,s,c){let l=c||1/0,u=0;return d;function d(t){return t===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(t),e.exit(a),f):t===null||t===32||t===41||yf(t)?n(t):(e.enter(r),e.enter(o),e.enter(s),e.enter(`chunkString`,{contentType:`string`}),h(t))}function f(n){return n===62?(e.enter(a),e.consume(n),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter(`chunkString`,{contentType:`string`}),p(n))}function p(t){return t===62?(e.exit(`chunkString`),e.exit(s),f(t)):t===null||t===60||K(t)?n(t):(e.consume(t),t===92?m:p)}function m(t){return t===60||t===62||t===92?(e.consume(t),p):p(t)}function h(i){return!u&&(i===null||i===41||Cf(i))?(e.exit(`chunkString`),e.exit(s),e.exit(o),e.exit(r),t(i)):u<l&&i===40?(e.consume(i),u++,h):i===41?(e.consume(i),u--,h):i===null||i===32||i===40||yf(i)?n(i):(e.consume(i),i===92?g:h)}function g(t){return t===40||t===41||t===92?(e.consume(t),h):h(t)}}function gv(e,t,n,r,i,a){let o=this,s=0,c;return l;function l(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(a),u}function u(l){return s>999||l===null||l===91||l===93&&!c||l===94&&!s&&`_hiddenFootnoteSupport`in o.parser.constructs?n(l):l===93?(e.exit(a),e.enter(i),e.consume(l),e.exit(i),e.exit(r),t):K(l)?(e.enter(`lineEnding`),e.consume(l),e.exit(`lineEnding`),u):(e.enter(`chunkString`,{contentType:`string`}),d(l))}function d(t){return t===null||t===91||t===93||K(t)||s++>999?(e.exit(`chunkString`),u(t)):(e.consume(t),c||=!wf(t),t===92?f:d)}function f(t){return t===91||t===92||t===93?(e.consume(t),s++,d):d(t)}}function _v(e,t,n,r,i,a){let o;return s;function s(t){return t===34||t===39||t===40?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),o=t===40?41:t,c):n(t)}function c(n){return n===o?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(a),l(n))}function l(t){return t===o?(e.exit(a),c(o)):t===null?n(t):K(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),Rm(e,l,`linePrefix`)):(e.enter(`chunkString`,{contentType:`string`}),u(t))}function u(t){return t===o||t===null||K(t)?(e.exit(`chunkString`),l(t)):(e.consume(t),t===92?d:u)}function d(t){return t===o||t===92?(e.consume(t),u):u(t)}}function vv(e,t){let n;return r;function r(i){return K(i)?(e.enter(`lineEnding`),e.consume(i),e.exit(`lineEnding`),n=!0,r):wf(i)?Rm(e,r,n?`linePrefix`:`lineSuffix`)(i):t(i)}}var yv={name:`definition`,tokenize:xv},bv={partial:!0,tokenize:Sv};function xv(e,t,n){let r=this,i;return a;function a(t){return e.enter(`definition`),o(t)}function o(t){return gv.call(r,e,s,n,`definitionLabel`,`definitionLabelMarker`,`definitionLabelString`)(t)}function s(t){return i=T_(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),c):n(t)}function c(t){return Cf(t)?vv(e,l)(t):l(t)}function l(t){return hv(e,u,n,`definitionDestination`,`definitionDestinationLiteral`,`definitionDestinationLiteralMarker`,`definitionDestinationRaw`,`definitionDestinationString`)(t)}function u(t){return e.attempt(bv,d,d)(t)}function d(t){return wf(t)?Rm(e,f,`whitespace`)(t):f(t)}function f(a){return a===null||K(a)?(e.exit(`definition`),r.parser.defined.push(i),t(a)):n(a)}}function Sv(e,t,n){return r;function r(t){return Cf(t)?vv(e,i)(t):n(t)}function i(t){return _v(e,a,n,`definitionTitle`,`definitionTitleMarker`,`definitionTitleString`)(t)}function a(t){return wf(t)?Rm(e,o,`whitespace`)(t):o(t)}function o(e){return e===null||K(e)?t(e):n(e)}}var Cv={name:`hardBreakEscape`,tokenize:wv};function wv(e,t,n){return r;function r(t){return e.enter(`hardBreakEscape`),e.consume(t),i}function i(r){return K(r)?(e.exit(`hardBreakEscape`),t(r)):n(r)}}var Tv={name:`headingAtx`,resolve:Ev,tokenize:Dv};function Ev(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type===`whitespace`&&(r+=2),n-2>r&&e[n][1].type===`whitespace`&&(n-=2),e[n][1].type===`atxHeadingSequence`&&(r===n-1||n-4>r&&e[n-2][1].type===`whitespace`)&&(n-=r+1===n?2:4),n>r&&(i={type:`atxHeadingText`,start:e[r][1].start,end:e[n][1].end},a={type:`chunkText`,start:e[r][1].start,end:e[n][1].end,contentType:`text`},mf(e,r,n-r+1,[[`enter`,i,t],[`enter`,a,t],[`exit`,a,t],[`exit`,i,t]])),e}function Dv(e,t,n){let r=0;return i;function i(t){return e.enter(`atxHeading`),a(t)}function a(t){return e.enter(`atxHeadingSequence`),o(t)}function o(t){return t===35&&r++<6?(e.consume(t),o):t===null||Cf(t)?(e.exit(`atxHeadingSequence`),s(t)):n(t)}function s(n){return n===35?(e.enter(`atxHeadingSequence`),c(n)):n===null||K(n)?(e.exit(`atxHeading`),t(n)):wf(n)?Rm(e,s,`whitespace`)(n):(e.enter(`atxHeadingText`),l(n))}function c(t){return t===35?(e.consume(t),c):(e.exit(`atxHeadingSequence`),s(t))}function l(t){return t===null||t===35||Cf(t)?(e.exit(`atxHeadingText`),s(t)):(e.consume(t),l)}}var Ov=`address.article.aside.base.basefont.blockquote.body.caption.center.col.colgroup.dd.details.dialog.dir.div.dl.dt.fieldset.figcaption.figure.footer.form.frame.frameset.h1.h2.h3.h4.h5.h6.head.header.hr.html.iframe.legend.li.link.main.menu.menuitem.nav.noframes.ol.optgroup.option.p.param.search.section.summary.table.tbody.td.tfoot.th.thead.title.tr.track.ul`.split(`.`),kv=[`pre`,`script`,`style`,`textarea`],Av={concrete:!0,name:`htmlFlow`,resolveTo:Nv,tokenize:Pv},jv={partial:!0,tokenize:Iv},Mv={partial:!0,tokenize:Fv};function Nv(e){let t=e.length;for(;t--&&!(e[t][0]===`enter`&&e[t][1].type===`htmlFlow`););return t>1&&e[t-2][1].type===`linePrefix`&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function Pv(e,t,n){let r=this,i,a,o,s,c;return l;function l(e){return u(e)}function u(t){return e.enter(`htmlFlow`),e.enter(`htmlFlowData`),e.consume(t),d}function d(s){return s===33?(e.consume(s),f):s===47?(e.consume(s),a=!0,h):s===63?(e.consume(s),i=3,r.interrupt?t:re):gf(s)?(e.consume(s),o=String.fromCharCode(s),g):n(s)}function f(a){return a===45?(e.consume(a),i=2,p):a===91?(e.consume(a),i=5,s=0,m):gf(a)?(e.consume(a),i=4,r.interrupt?t:re):n(a)}function p(i){return i===45?(e.consume(i),r.interrupt?t:re):n(i)}function m(i){return i===`CDATA[`.charCodeAt(s++)?(e.consume(i),s===6?r.interrupt?t:D:m):n(i)}function h(t){return gf(t)?(e.consume(t),o=String.fromCharCode(t),g):n(t)}function g(s){if(s===null||s===47||s===62||Cf(s)){let c=s===47,l=o.toLowerCase();return!c&&!a&&kv.includes(l)?(i=1,r.interrupt?t(s):D(s)):Ov.includes(o.toLowerCase())?(i=6,c?(e.consume(s),_):r.interrupt?t(s):D(s)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):a?v(s):y(s))}return s===45||_f(s)?(e.consume(s),o+=String.fromCharCode(s),g):n(s)}function _(i){return i===62?(e.consume(i),r.interrupt?t:D):n(i)}function v(t){return wf(t)?(e.consume(t),v):E(t)}function y(t){return t===47?(e.consume(t),E):t===58||t===95||gf(t)?(e.consume(t),b):wf(t)?(e.consume(t),y):E(t)}function b(t){return t===45||t===46||t===58||t===95||_f(t)?(e.consume(t),b):x(t)}function x(t){return t===61?(e.consume(t),S):wf(t)?(e.consume(t),x):y(t)}function S(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),c=t,C):wf(t)?(e.consume(t),S):w(t)}function C(t){return t===c?(e.consume(t),c=null,T):t===null||K(t)?n(t):(e.consume(t),C)}function w(t){return t===null||t===34||t===39||t===47||t===60||t===61||t===62||t===96||Cf(t)?x(t):(e.consume(t),w)}function T(e){return e===47||e===62||wf(e)?y(e):n(e)}function E(t){return t===62?(e.consume(t),ee):n(t)}function ee(t){return t===null||K(t)?D(t):wf(t)?(e.consume(t),ee):n(t)}function D(t){return t===45&&i===2?(e.consume(t),A):t===60&&i===1?(e.consume(t),j):t===62&&i===4?(e.consume(t),ie):t===63&&i===3?(e.consume(t),re):t===93&&i===5?(e.consume(t),ne):K(t)&&(i===6||i===7)?(e.exit(`htmlFlowData`),e.check(jv,ae,O)(t)):t===null||K(t)?(e.exit(`htmlFlowData`),O(t)):(e.consume(t),D)}function O(t){return e.check(Mv,k,ae)(t)}function k(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),te}function te(t){return t===null||K(t)?O(t):(e.enter(`htmlFlowData`),D(t))}function A(t){return t===45?(e.consume(t),re):D(t)}function j(t){return t===47?(e.consume(t),o=``,M):D(t)}function M(t){if(t===62){let n=o.toLowerCase();return kv.includes(n)?(e.consume(t),ie):D(t)}return gf(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),M):D(t)}function ne(t){return t===93?(e.consume(t),re):D(t)}function re(t){return t===62?(e.consume(t),ie):t===45&&i===2?(e.consume(t),re):D(t)}function ie(t){return t===null||K(t)?(e.exit(`htmlFlowData`),ae(t)):(e.consume(t),ie)}function ae(n){return e.exit(`htmlFlow`),t(n)}}function Fv(e,t,n){let r=this;return i;function i(t){return K(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a):n(t)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}function Iv(e,t,n){return r;function r(r){return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),e.attempt(R_,t,n)}}var Lv={name:`htmlText`,tokenize:Rv};function Rv(e,t,n){let r=this,i,a,o;return s;function s(t){return e.enter(`htmlText`),e.enter(`htmlTextData`),e.consume(t),c}function c(t){return t===33?(e.consume(t),l):t===47?(e.consume(t),x):t===63?(e.consume(t),y):gf(t)?(e.consume(t),w):n(t)}function l(t){return t===45?(e.consume(t),u):t===91?(e.consume(t),a=0,m):gf(t)?(e.consume(t),v):n(t)}function u(t){return t===45?(e.consume(t),p):n(t)}function d(t){return t===null?n(t):t===45?(e.consume(t),f):K(t)?(o=d,j(t)):(e.consume(t),d)}function f(t){return t===45?(e.consume(t),p):d(t)}function p(e){return e===62?A(e):e===45?f(e):d(e)}function m(t){return t===`CDATA[`.charCodeAt(a++)?(e.consume(t),a===6?h:m):n(t)}function h(t){return t===null?n(t):t===93?(e.consume(t),g):K(t)?(o=h,j(t)):(e.consume(t),h)}function g(t){return t===93?(e.consume(t),_):h(t)}function _(t){return t===62?A(t):t===93?(e.consume(t),_):h(t)}function v(t){return t===null||t===62?A(t):K(t)?(o=v,j(t)):(e.consume(t),v)}function y(t){return t===null?n(t):t===63?(e.consume(t),b):K(t)?(o=y,j(t)):(e.consume(t),y)}function b(e){return e===62?A(e):y(e)}function x(t){return gf(t)?(e.consume(t),S):n(t)}function S(t){return t===45||_f(t)?(e.consume(t),S):C(t)}function C(t){return K(t)?(o=C,j(t)):wf(t)?(e.consume(t),C):A(t)}function w(t){return t===45||_f(t)?(e.consume(t),w):t===47||t===62||Cf(t)?T(t):n(t)}function T(t){return t===47?(e.consume(t),A):t===58||t===95||gf(t)?(e.consume(t),E):K(t)?(o=T,j(t)):wf(t)?(e.consume(t),T):A(t)}function E(t){return t===45||t===46||t===58||t===95||_f(t)?(e.consume(t),E):ee(t)}function ee(t){return t===61?(e.consume(t),D):K(t)?(o=ee,j(t)):wf(t)?(e.consume(t),ee):T(t)}function D(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),i=t,O):K(t)?(o=D,j(t)):wf(t)?(e.consume(t),D):(e.consume(t),k)}function O(t){return t===i?(e.consume(t),i=void 0,te):t===null?n(t):K(t)?(o=O,j(t)):(e.consume(t),O)}function k(t){return t===null||t===34||t===39||t===60||t===61||t===96?n(t):t===47||t===62||Cf(t)?T(t):(e.consume(t),k)}function te(e){return e===47||e===62||Cf(e)?T(e):n(e)}function A(r){return r===62?(e.consume(r),e.exit(`htmlTextData`),e.exit(`htmlText`),t):n(r)}function j(t){return e.exit(`htmlTextData`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),M}function M(t){return wf(t)?Rm(e,ne,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):ne(t)}function ne(t){return e.enter(`htmlTextData`),o(t)}}var zv={name:`labelEnd`,resolveAll:Uv,resolveTo:Wv,tokenize:Gv},Bv={tokenize:Kv},Vv={tokenize:qv},Hv={tokenize:Jv};function Uv(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),r.type===`labelImage`||r.type===`labelLink`||r.type===`labelEnd`){let e=r.type===`labelImage`?4:2;r.type=`data`,t+=e}}return e.length!==n.length&&mf(e,0,e.length,n),e}function Wv(e,t){let n=e.length,r=0,i,a,o,s;for(;n--;)if(i=e[n][1],a){if(i.type===`link`||i.type===`labelLink`&&i._inactive)break;e[n][0]===`enter`&&i.type===`labelLink`&&(i._inactive=!0)}else if(o){if(e[n][0]===`enter`&&(i.type===`labelImage`||i.type===`labelLink`)&&!i._balanced&&(a=n,i.type!==`labelLink`)){r=2;break}}else i.type===`labelEnd`&&(o=n);let c={type:e[a][1].type===`labelLink`?`link`:`image`,start:{...e[a][1].start},end:{...e[e.length-1][1].end}},l={type:`label`,start:{...e[a][1].start},end:{...e[o][1].end}},u={type:`labelText`,start:{...e[a+r+2][1].end},end:{...e[o-2][1].start}};return s=[[`enter`,c,t],[`enter`,l,t]],s=hf(s,e.slice(a+1,a+r+3)),s=hf(s,[[`enter`,u,t]]),s=hf(s,kf(t.parser.constructs.insideSpan.null,e.slice(a+r+4,o-3),t)),s=hf(s,[[`exit`,u,t],e[o-2],e[o-1],[`exit`,l,t]]),s=hf(s,e.slice(o+1)),s=hf(s,[[`exit`,c,t]]),mf(e,a,e.length,s),e}function Gv(e,t,n){let r=this,i=r.events.length,a,o;for(;i--;)if((r.events[i][1].type===`labelImage`||r.events[i][1].type===`labelLink`)&&!r.events[i][1]._balanced){a=r.events[i][1];break}return s;function s(t){return a?a._inactive?d(t):(o=r.parser.defined.includes(T_(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter(`labelEnd`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelEnd`),c):n(t)}function c(t){return t===40?e.attempt(Bv,u,o?u:d)(t):t===91?e.attempt(Vv,u,o?l:d)(t):o?u(t):d(t)}function l(t){return e.attempt(Hv,u,d)(t)}function u(e){return t(e)}function d(e){return a._balanced=!0,n(e)}}function Kv(e,t,n){return r;function r(t){return e.enter(`resource`),e.enter(`resourceMarker`),e.consume(t),e.exit(`resourceMarker`),i}function i(t){return Cf(t)?vv(e,a)(t):a(t)}function a(t){return t===41?u(t):hv(e,o,s,`resourceDestination`,`resourceDestinationLiteral`,`resourceDestinationLiteralMarker`,`resourceDestinationRaw`,`resourceDestinationString`,32)(t)}function o(t){return Cf(t)?vv(e,c)(t):u(t)}function s(e){return n(e)}function c(t){return t===34||t===39||t===40?_v(e,l,n,`resourceTitle`,`resourceTitleMarker`,`resourceTitleString`)(t):u(t)}function l(t){return Cf(t)?vv(e,u)(t):u(t)}function u(r){return r===41?(e.enter(`resourceMarker`),e.consume(r),e.exit(`resourceMarker`),e.exit(`resource`),t):n(r)}}function qv(e,t,n){let r=this;return i;function i(t){return gv.call(r,e,a,o,`reference`,`referenceMarker`,`referenceString`)(t)}function a(e){return r.parser.defined.includes(T_(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}function Jv(e,t,n){return r;function r(t){return e.enter(`reference`),e.enter(`referenceMarker`),e.consume(t),e.exit(`referenceMarker`),i}function i(r){return r===93?(e.enter(`referenceMarker`),e.consume(r),e.exit(`referenceMarker`),e.exit(`reference`),t):n(r)}}var Yv={name:`labelStartImage`,resolveAll:zv.resolveAll,tokenize:Xv};function Xv(e,t,n){let r=this;return i;function i(t){return e.enter(`labelImage`),e.enter(`labelImageMarker`),e.consume(t),e.exit(`labelImageMarker`),a}function a(t){return t===91?(e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelImage`),o):n(t)}function o(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):t(e)}}var Zv={name:`labelStartLink`,resolveAll:zv.resolveAll,tokenize:Qv};function Qv(e,t,n){let r=this;return i;function i(t){return e.enter(`labelLink`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelLink`),a}function a(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):t(e)}}var $v={name:`lineEnding`,tokenize:ey};function ey(e,t){return n;function n(n){return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),Rm(e,t,`linePrefix`)}}var ty={name:`thematicBreak`,tokenize:ny};function ny(e,t,n){let r=0,i;return a;function a(t){return e.enter(`thematicBreak`),o(t)}function o(e){return i=e,s(e)}function s(a){return a===i?(e.enter(`thematicBreakSequence`),c(a)):r>=3&&(a===null||K(a))?(e.exit(`thematicBreak`),t(a)):n(a)}function c(t){return t===i?(e.consume(t),r++,c):(e.exit(`thematicBreakSequence`),wf(t)?Rm(e,s,`whitespace`)(t):s(t))}}var ry={continuation:{tokenize:sy},exit:ly,name:`list`,tokenize:oy},iy={partial:!0,tokenize:uy},ay={partial:!0,tokenize:cy};function oy(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&i[1].type===`linePrefix`?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(t){let i=r.containerState.type||(t===42||t===43||t===45?`listUnordered`:`listOrdered`);if(i===`listUnordered`?!r.containerState.marker||t===r.containerState.marker:bf(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),i===`listUnordered`)return e.enter(`listItemPrefix`),t===42||t===45?e.check(ty,n,l)(t):l(t);if(!r.interrupt||t===49)return e.enter(`listItemPrefix`),e.enter(`listItemValue`),c(t)}return n(t)}function c(t){return bf(t)&&++o<10?(e.consume(t),c):(!r.interrupt||o<2)&&(r.containerState.marker?t===r.containerState.marker:t===41||t===46)?(e.exit(`listItemValue`),l(t)):n(t)}function l(t){return e.enter(`listItemMarker`),e.consume(t),e.exit(`listItemMarker`),r.containerState.marker=r.containerState.marker||t,e.check(R_,r.interrupt?n:u,e.attempt(iy,f,d))}function u(e){return r.containerState.initialBlankLine=!0,a++,f(e)}function d(t){return wf(t)?(e.enter(`listItemPrefixWhitespace`),e.consume(t),e.exit(`listItemPrefixWhitespace`),f):n(t)}function f(n){return r.containerState.size=a+r.sliceSerialize(e.exit(`listItemPrefix`),!0).length,t(n)}}function sy(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(R_,i,a);function i(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Rm(e,t,`listItemIndent`,r.containerState.size+1)(n)}function a(n){return r.containerState.furtherBlankLines||!wf(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(ay,t,o)(n))}function o(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,Rm(e,e.attempt(ry,t,n),`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(i)}}function cy(e,t,n){let r=this;return Rm(e,i,`listItemIndent`,r.containerState.size+1);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`listItemIndent`&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)}}function ly(e){e.exit(this.containerState.type)}function uy(e,t,n){let r=this;return Rm(e,i,`listItemPrefixWhitespace`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:5);function i(e){let i=r.events[r.events.length-1];return!wf(e)&&i&&i[1].type===`listItemPrefixWhitespace`?t(e):n(e)}}var dy={name:`setextUnderline`,resolveTo:fy,tokenize:py};function fy(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]===`enter`){if(e[n][1].type===`content`){r=n;break}e[n][1].type===`paragraph`&&(i=n)}else e[n][1].type===`content`&&e.splice(n,1),!a&&e[n][1].type===`definition`&&(a=n);let o={type:`setextHeading`,start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type=`setextHeadingText`,a?(e.splice(i,0,[`enter`,o,t]),e.splice(a+1,0,[`exit`,e[r][1],t]),e[r][1].end={...e[a][1].end}):e[r][1]=o,e.push([`exit`,o,t]),e}function py(e,t,n){let r=this,i;return a;function a(t){let a=r.events.length,s;for(;a--;)if(r.events[a][1].type!==`lineEnding`&&r.events[a][1].type!==`linePrefix`&&r.events[a][1].type!==`content`){s=r.events[a][1].type===`paragraph`;break}return!r.parser.lazy[r.now().line]&&(r.interrupt||s)?(e.enter(`setextHeadingLine`),i=t,o(t)):n(t)}function o(t){return e.enter(`setextHeadingLineSequence`),s(t)}function s(t){return t===i?(e.consume(t),s):(e.exit(`setextHeadingLineSequence`),wf(t)?Rm(e,c,`lineSuffix`)(t):c(t))}function c(r){return r===null||K(r)?(e.exit(`setextHeadingLine`),t(r)):n(r)}}var my={tokenize:hy};function hy(e){let t=this,n=e.attempt(R_,r,e.attempt(this.parser.constructs.flowInitial,i,Rm(e,e.attempt(this.parser.constructs.flow,i,e.attempt(uv,i)),`linePrefix`)));return n;function r(r){if(r===null){e.consume(r);return}return e.enter(`lineEndingBlank`),e.consume(r),e.exit(`lineEndingBlank`),t.currentConstruct=void 0,n}function i(r){if(r===null){e.consume(r);return}return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),t.currentConstruct=void 0,n}}var gy={resolveAll:by()},_y=yy(`string`),vy=yy(`text`);function yy(e){return{resolveAll:by(e===`text`?xy:void 0),tokenize:t};function t(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,a,o);return a;function a(e){return c(e)?i(e):o(e)}function o(e){if(e===null){t.consume(e);return}return t.enter(`data`),t.consume(e),s}function s(e){return c(e)?(t.exit(`data`),i(e)):(t.consume(e),s)}function c(e){if(e===null)return!0;let t=r[e],i=-1;if(t)for(;++i<t.length;){let e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}function by(e){return t;function t(t,n){let r=-1,i;for(;++r<=t.length;)i===void 0?t[r]&&t[r][1].type===`data`&&(i=r,r++):(!t[r]||t[r][1].type!==`data`)&&(r!==i+2&&(t[i][1].end=t[r-1][1].end,t.splice(i+2,r-i-2),r=i+2),i=void 0);return e?e(t,n):t}}function xy(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type===`lineEnding`)&&e[n-1][1].type===`data`){let r=e[n-1][1],i=t.sliceStream(r),a=i.length,o=-1,s=0,c;for(;a--;){let e=i[a];if(typeof e==`string`){for(o=e.length;e.charCodeAt(o-1)===32;)s++,o--;if(o)break;o=-1}else if(e===-2)c=!0,s++;else if(e!==-1){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){let i={type:n===e.length||c||s<2?`lineSuffix`:`hardBreakTrailing`,start:{_bufferIndex:a?o:r.start._bufferIndex+o,_index:r.start._index+a,line:r.end.line,column:r.end.column-s,offset:r.end.offset-s},end:{...r.end}};r.end={...i.start},r.start.offset===r.end.offset?Object.assign(r,i):(e.splice(n,0,[`enter`,i,t],[`exit`,i,t]),n+=2)}n++}return e}var Sy=ft({attentionMarkers:()=>Ay,contentInitial:()=>wy,disable:()=>jy,document:()=>Cy,flow:()=>Ey,flowInitial:()=>Ty,insideSpan:()=>ky,string:()=>Dy,text:()=>Oy}),Cy={42:ry,43:ry,45:ry,48:ry,49:ry,50:ry,51:ry,52:ry,53:ry,54:ry,55:ry,56:ry,57:ry,62:B_},wy={91:yv},Ty={[-2]:Q_,[-1]:Q_,32:Q_},Ey={35:Tv,42:ty,45:[dy,ty],60:Av,61:dy,95:ty,96:Y_,126:Y_},Dy={38:K_,92:W_},Oy={[-5]:$v,[-4]:$v,[-3]:$v,33:Yv,38:K_,42:M_,60:[I_,Lv],91:Zv,92:[Cv,W_],93:zv,95:M_,96:nv},ky={null:[M_,gy]},Ay={null:[42,95]},jy={null:[]};function My(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},i={},a=[],o=[],s=[],c={attempt:C(x),check:C(S),consume:v,enter:y,exit:b,interrupt:C(S,{interrupt:!0})},l={code:null,containerState:{},defineSkip:h,events:[],now:m,parser:e,previous:null,sliceSerialize:f,sliceStream:p,write:d},u=t.tokenize.call(l,c);return t.resolveAll&&a.push(t),l;function d(e){return o=hf(o,e),g(),o[o.length-1]===null?(w(t,0),l.events=kf(a,l.events,l),l.events):[]}function f(e,t){return Py(p(e),t)}function p(e){return Ny(o,e)}function m(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:a}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:a}}function h(e){i[e.line]=e.column,E()}function g(){let e;for(;r._index<o.length;){let t=o[r._index];if(typeof t==`string`)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)_(t.charCodeAt(r._bufferIndex));else _(t)}}function _(e){u=u(e)}function v(e){K(e)?(r.line++,r.column=1,r.offset+=e===-3?2:1,E()):e!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),l.previous=e}function y(e,t){let n=t||{};return n.type=e,n.start=m(),l.events.push([`enter`,n,l]),s.push(n),n}function b(e){let t=s.pop();return t.end=m(),l.events.push([`exit`,t,l]),t}function x(e,t){w(e,t.from)}function S(e,t){t.restore()}function C(e,t){return n;function n(n,r,i){let a,o,s,u;return Array.isArray(n)?f(n):`tokenize`in n?f([n]):d(n);function d(e){return t;function t(t){let n=t!==null&&e[t],r=t!==null&&e.null;return f([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}function f(e){return a=e,o=0,e.length===0?i:p(e[o])}function p(e){return n;function n(n){return u=T(),s=e,e.partial||(l.currentConstruct=e),e.name&&l.parser.constructs.disable.null.includes(e.name)?h(n):e.tokenize.call(t?Object.assign(Object.create(l),t):l,c,m,h)(n)}}function m(t){return e(s,u),r}function h(e){return u.restore(),++o<a.length?p(a[o]):i}}}function w(e,t){e.resolveAll&&!a.includes(e)&&a.push(e),e.resolve&&mf(l.events,t,l.events.length-t,e.resolve(l.events.slice(t),l)),e.resolveTo&&(l.events=e.resolveTo(l.events,l))}function T(){let e=m(),t=l.previous,n=l.currentConstruct,i=l.events.length,a=Array.from(s);return{from:i,restore:o};function o(){r=e,l.previous=t,l.currentConstruct=n,l.events.length=i,s=a,E()}}function E(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function Ny(e,t){let n=t.start._index,r=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex,o;if(n===i)o=[e[n].slice(r,a)];else{if(o=e.slice(n,i),r>-1){let e=o[0];typeof e==`string`?o[0]=e.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function Py(e,t){let n=-1,r=[],i;for(;++n<e.length;){let a=e[n],o;if(typeof a==`string`)o=a;else switch(a){case-5:o=`\r`;break;case-4:o=`
|
|
77
|
-
`;break;case-3:o=`\r
|
|
78
|
-
`;break;case-2:o=t?` `:` `;break;case-1:if(!t&&i)continue;o=` `;break;default:o=String.fromCharCode(a)}i=a===-2,r.push(o)}return r.join(``)}function Fy(e){let t={constructs:S_([Sy,...(e||{}).extensions||[]]),content:n(E_),defined:[],document:n(O_),flow:n(my),lazy:{},string:n(_y),text:n(vy)};return t;function n(e){return n;function n(n){return My(t,e,n)}}}function Iy(e){for(;!cv(e););return e}var Ly=/[\0\t\n\r]/g;function Ry(){let e=1,t=``,n=!0,r;return i;function i(i,a,o){let s=[],c,l,u,d,f;for(i=t+(typeof i==`string`?i.toString():new TextDecoder(a||void 0).decode(i)),u=0,t=``,n&&=(i.charCodeAt(0)===65279&&u++,void 0);u<i.length;){if(Ly.lastIndex=u,c=Ly.exec(i),d=c&&c.index!==void 0?c.index:i.length,f=i.charCodeAt(d),!c){t=i.slice(u);break}if(f===10&&u===d&&r)s.push(-3),r=void 0;else switch(r&&=(s.push(-5),void 0),u<d&&(s.push(i.slice(u,d)),e+=d-u),f){case 0:s.push(65533),e++;break;case 9:for(l=Math.ceil(e/4)*4,s.push(-2);e++<l;)s.push(-1);break;case 10:s.push(-4),e=1;break;default:r=!0,e=1}u=d+1}return o&&(r&&s.push(-5),t&&s.push(t),s.push(null)),s}}var zy={}.hasOwnProperty;function By(e,t,n){return t&&typeof t==`object`&&(n=t,t=void 0),Vy(n)(Iy(Fy(n).document().write(Ry()(e,t,!0))))}function Vy(e){let t={transforms:[],canContainEols:[`emphasis`,`fragment`,`heading`,`paragraph`,`strong`],enter:{autolink:a(xe),autolinkProtocol:T,autolinkEmail:T,atxHeading:a(_e),blockQuote:a(fe),characterEscape:T,characterReference:T,codeFenced:a(pe),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:a(pe,o),codeText:a(me,o),codeTextData:T,data:T,codeFlowValue:T,definition:a(he),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:a(ge),hardBreakEscape:a(ve),hardBreakTrailing:a(ve),htmlFlow:a(ye,o),htmlFlowData:T,htmlText:a(ye,o),htmlTextData:T,image:a(be),label:o,link:a(xe),listItem:a(Ce),listItemValue:f,listOrdered:a(Se,d),listUnordered:a(Se),paragraph:a(we),reference:oe,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:a(_e),strong:a(Te),thematicBreak:a(De)},exit:{atxHeading:c(),atxHeadingSequence:x,autolink:c(),autolinkEmail:de,autolinkProtocol:ue,blockQuote:c(),characterEscapeValue:E,characterReferenceMarkerHexadecimal:N,characterReferenceMarkerNumeric:N,characterReferenceValue:ce,characterReference:le,codeFenced:c(g),codeFencedFence:h,codeFencedFenceInfo:p,codeFencedFenceMeta:m,codeFlowValue:E,codeIndented:c(_),codeText:c(te),codeTextData:E,data:E,definition:c(),definitionDestinationString:b,definitionLabelString:v,definitionTitleString:y,emphasis:c(),hardBreakEscape:c(D),hardBreakTrailing:c(D),htmlFlow:c(O),htmlFlowData:E,htmlText:c(k),htmlTextData:E,image:c(j),label:ne,labelText:M,lineEnding:ee,link:c(A),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:se,resourceDestinationString:re,resourceTitleString:ie,resource:ae,setextHeading:c(w),setextHeadingLineSequence:C,setextHeadingText:S,strong:c(),thematicBreak:c()}};Uy(t,(e||{}).mdastExtensions||[]);let n={};return r;function r(e){let r={type:`root`,children:[]},a={stack:[r],tokenStack:[],config:t,enter:s,exit:l,buffer:o,resume:u,data:n},c=[],d=-1;for(;++d<e.length;)(e[d][1].type===`listOrdered`||e[d][1].type===`listUnordered`)&&(e[d][0]===`enter`?c.push(d):d=i(e,c.pop(),d));for(d=-1;++d<e.length;){let n=t[e[d][0]];zy.call(n,e[d][1].type)&&n[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},a),e[d][1])}if(a.tokenStack.length>0){let e=a.tokenStack[a.tokenStack.length-1];(e[1]||Gy).call(a,void 0,e[0])}for(r.position={start:Hy(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:Hy(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)r=t.transforms[d](r)||r;return r}function i(e,t,n){let r=t-1,i=-1,a=!1,o,s,c,l;for(;++r<=n;){let t=e[r];switch(t[1].type){case`listUnordered`:case`listOrdered`:case`blockQuote`:t[0]===`enter`?i++:i--,l=void 0;break;case`lineEndingBlank`:t[0]===`enter`&&(o&&!l&&!i&&!c&&(c=r),l=void 0);break;case`linePrefix`:case`listItemValue`:case`listItemMarker`:case`listItemPrefix`:case`listItemPrefixWhitespace`:break;default:l=void 0}if(!i&&t[0]===`enter`&&t[1].type===`listItemPrefix`||i===-1&&t[0]===`exit`&&(t[1].type===`listUnordered`||t[1].type===`listOrdered`)){if(o){let i=r;for(s=void 0;i--;){let t=e[i];if(t[1].type===`lineEnding`||t[1].type===`lineEndingBlank`){if(t[0]===`exit`)continue;s&&(e[s][1].type=`lineEndingBlank`,a=!0),t[1].type=`lineEnding`,s=i}else if(!(t[1].type===`linePrefix`||t[1].type===`blockQuotePrefix`||t[1].type===`blockQuotePrefixWhitespace`||t[1].type===`blockQuoteMarker`||t[1].type===`listItemIndent`))break}c&&(!s||c<s)&&(o._spread=!0),o.end=Object.assign({},s?e[s][1].start:t[1].end),e.splice(s||r,0,[`exit`,o,t[2]]),r++,n++}if(t[1].type===`listItemPrefix`){let i={type:`listItem`,_spread:!1,start:Object.assign({},t[1].start),end:void 0};o=i,e.splice(r,0,[`enter`,i,t[2]]),r++,n++,c=void 0,l=!0}}}return e[t][1]._spread=a,n}function a(e,t){return n;function n(n){s.call(this,e(n),n),t&&t.call(this,n)}}function o(){this.stack.push({type:`fragment`,children:[]})}function s(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:Hy(t.start),end:void 0}}function c(e){return t;function t(t){e&&e.call(this,t),l.call(this,t)}}function l(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(r)r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||Gy).call(this,e,r[0]));else throw Error("Cannot close `"+e.type+"` ("+mp({start:e.start,end:e.end})+`): it’s not open`);n.position.end=Hy(e.end)}function u(){return $h(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function f(e){if(this.data.expectingFirstListItemValue){let t=this.stack[this.stack.length-2];t.start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function p(){let e=this.resume(),t=this.stack[this.stack.length-1];t.lang=e}function m(){let e=this.resume(),t=this.stack[this.stack.length-1];t.meta=e}function h(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function g(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,``),this.data.flowCodeInside=void 0}function _(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/(\r?\n|\r)$/g,``)}function v(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=T_(this.sliceSerialize(e)).toLowerCase()}function y(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function b(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function x(e){let t=this.stack[this.stack.length-1];t.depth||=this.sliceSerialize(e).length}function S(){this.data.setextHeadingSlurpLineEnding=!0}function C(e){let t=this.stack[this.stack.length-1];t.depth=this.sliceSerialize(e).codePointAt(0)===61?1:2}function w(){this.data.setextHeadingSlurpLineEnding=void 0}function T(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];(!n||n.type!==`text`)&&(n=Ee(),n.position={start:Hy(e.start),end:void 0},t.push(n)),this.stack.push(n)}function E(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=Hy(e.end)}function ee(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){let t=n.children[n.children.length-1];t.position.end=Hy(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(T.call(this,e),E.call(this,e))}function D(){this.data.atHardBreak=!0}function O(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function k(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function te(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function A(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function j(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function M(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=Vg(t),n.identifier=T_(t).toLowerCase()}function ne(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,n.type===`link`?n.children=e.children:n.alt=t}function re(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function ie(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function ae(){this.data.inReference=void 0}function oe(){this.data.referenceType=`collapsed`}function se(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=T_(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType=`full`}function N(e){this.data.characterReferenceType=e.type}function ce(e){let t=this.sliceSerialize(e),n=this.data.characterReferenceType,r;n?(r=zg(t,n===`characterReferenceMarkerNumeric`?10:16),this.data.characterReferenceType=void 0):r=$f(t);let i=this.stack[this.stack.length-1];i.value+=r}function le(e){let t=this.stack.pop();t.position.end=Hy(e.end)}function ue(e){E.call(this,e);let t=this.stack[this.stack.length-1];t.url=this.sliceSerialize(e)}function de(e){E.call(this,e);let t=this.stack[this.stack.length-1];t.url=`mailto:`+this.sliceSerialize(e)}function fe(){return{type:`blockquote`,children:[]}}function pe(){return{type:`code`,lang:null,meta:null,value:``}}function me(){return{type:`inlineCode`,value:``}}function he(){return{type:`definition`,identifier:``,label:null,title:null,url:``}}function ge(){return{type:`emphasis`,children:[]}}function _e(){return{type:`heading`,depth:0,children:[]}}function ve(){return{type:`break`}}function ye(){return{type:`html`,value:``}}function be(){return{type:`image`,title:null,url:``,alt:null}}function xe(){return{type:`link`,title:null,url:``,children:[]}}function Se(e){return{type:`list`,ordered:e.type===`listOrdered`,start:null,spread:e._spread,children:[]}}function Ce(e){return{type:`listItem`,spread:e._spread,checked:null,children:[]}}function we(){return{type:`paragraph`,children:[]}}function Te(){return{type:`strong`,children:[]}}function Ee(){return{type:`text`,value:``}}function De(){return{type:`thematicBreak`}}}function Hy(e){return{line:e.line,column:e.column,offset:e.offset}}function Uy(e,t){let n=-1;for(;++n<t.length;){let r=t[n];Array.isArray(r)?Uy(e,r):Wy(e,r)}}function Wy(e,t){let n;for(n in t)if(zy.call(t,n))switch(n){case`canContainEols`:{let r=t[n];r&&e[n].push(...r);break}case`transforms`:{let r=t[n];r&&e[n].push(...r);break}case`enter`:case`exit`:{let r=t[n];r&&Object.assign(e[n],r);break}}}function Gy(e,t){throw Error(e?"Cannot close `"+e.type+"` ("+mp({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+mp({start:t.start,end:t.end})+`) is open`:"Cannot close document, a token (`"+t.type+"`, "+mp({start:t.start,end:t.end})+`) is still open`)}function Ky(e){return e.children instanceof Array}var qy=class extends Error{constructor(e,t){super(e),this.name=`MarkdownParseError`,this.cause=t}},Jy=class extends Error{constructor(e){super(e),this.name=`UnrecognizedMarkdownConstructError`}};function Yy(e){let t=new Map;return e.type===`root`?(e.children.filter(e=>e.type===`mdxjsEsm`).filter(e=>e.value.startsWith(`import `)).forEach(e=>{(e.data?.estree?.body??[]).forEach(e=>{e.type===`ImportDeclaration`&&e.specifiers.forEach(n=>{t.set(n.local.name,{source:`${e.source.value}`,defaultExport:n.type===`ImportDefaultSpecifier`})})})}),{importDeclarations:Object.fromEntries(t.entries())}):{importDeclarations:{}}}function Xy({root:e,markdown:t,visitors:n,syntaxExtensions:r,mdastExtensions:i,...a}){let o;try{o=By(t,{extensions:r,mdastExtensions:i})}catch(e){throw e instanceof Error?new qy(`Error parsing markdown: ${e.message}`,e):new qy(`Error parsing markdown: ${e}`,e)}o.children.length===0&&o.children.push({type:`paragraph`,children:[]}),o.children.at(-1)?.type!==`paragraph`&&o.children.push({type:`paragraph`,children:[]}),Zy({root:e,mdastRoot:o,visitors:n,...a})}function Zy({root:e,mdastRoot:t,visitors:n,...r}){let i=new WeakMap,a=new WeakMap,o=Yy(t);n=n.sort((e,t)=>(t.priority??0)-(e.priority??0));function s(e,t){if(!Ky(e))throw Error(`Attempting to visit children of a non-parent`);e.children.forEach(n=>{c(n,t,e)})}function c(e,t,l,u=null){let d=n.find((t,n)=>u?.has(n)?!1:typeof t.testNode==`string`?t.testNode===e.type:t.testNode(e,r));if(!d)try{throw new Jy(`Unsupported markdown syntax: ${e_(e)}`)}catch{throw new Jy(`Parsing of the following markdown structure failed: ${JSON.stringify({type:e.type,name:`name`in e?e.name:`N/A`})}`)}d.visitNode({mdastNode:e,lexicalParent:t,mdastParent:l,descriptors:r,metaData:o,actions:{visitChildren:s,nextVisitor(){c(e,t,l,(u??new Set).add(n.indexOf(d)))},addAndStepInto(n){t.append(n),Ky(e)&&s(e,n)},addFormatting(t,n){n||Ky(e)&&(n=e),n&&i.set(n,t|(i.get(l)??0))},removeFormatting(t,n){n||Ky(e)&&(n=e),n&&i.set(n,t^(i.get(l)??0))},getParentFormatting(){return i.get(l)??0},addStyle(t,n){n||Ky(e)&&(n=e),n&&a.set(n,t)},getParentStyle(){return a.get(l)??``}}})}c(t,e,null)}var Qy=Object.defineProperty,$y=(e,t,n)=>t in e?Qy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,eb=(e,t,n)=>($y(e,typeof t==`symbol`?t:t+``,n),n),tb=`generic-html`,nb=class e extends Es{constructor(e,t,n,r){super(r),eb(this,`__tag`),eb(this,`__nodeType`),eb(this,`__attributes`),this.__tag=e,this.__nodeType=t,this.__attributes=n}static getType(){return tb}static clone(t){return new e(t.__tag,t.__nodeType,t.__attributes,t.__key)}getTag(){return this.__tag}getNodeType(){return this.__nodeType}getAttributes(){return this.__attributes}updateAttributes(e){let t=this.getWritable();t.__attributes=e}getStyle(){return this.__attributes.find(e=>e.name===`style`)?.value}createDOM(){let e=this.__tag,t=document.createElement(e);return this.__attributes.forEach(e=>{t.setAttribute(e.name,e.value)}),t}updateDOM(){return!1}static importDOM(){return{}}exportDOM(e){let{element:t}=super.exportDOM(e);return{element:t}}static importJSON(e){let t=rb(e.tag,e.mdxType,e.attributes);return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t}exportJSON(){return{...super.exportJSON(),tag:this.getTag(),attributes:this.__attributes,mdxType:this.__nodeType,type:tb,version:1}}extractWithChild(){return!0}isInline(){return this.__nodeType===`mdxJsxTextElement`}};function rb(e,t,n){return il(new nb(e,t,n))}function ib(e){return e instanceof nb}var ab={testLexicalNode:ib,visitLexicalNode({actions:e,lexicalNode:t}){e.addAndStepInto(`mdxJsxTextElement`,{name:t.getTag(),type:t.getNodeType(),attributes:t.getAttributes()})},priority:-100},ob={testLexicalNode:$a,visitLexicalNode:({mdastParent:e,actions:t})=>{t.appendToParent(e,{type:`text`,value:`
|
|
79
|
-
`})}},sb={testLexicalNode:Hs,visitLexicalNode:({actions:e})=>{e.addAndStepInto(`paragraph`)}},cb={testLexicalNode:js,visitLexicalNode:({actions:e})=>{e.addAndStepInto(`root`)}};function lb(e){return e.type===`text`}var ub=[`u`,`span`,`sub`,`sup`],db={shouldJoin:(e,t)=>{if([`text`,`emphasis`,`strong`,`highlight`].includes(e.type))return e.type===t.type;if(e.type===`mdxJsxTextElement`&&t.type===`mdxJsxTextElement`&&ub.includes(t.name)){let n=t;return e.name===n.name&&JSON.stringify(e.attributes)===JSON.stringify(n.attributes)}return!1},join(e,t){return lb(e)&&lb(t)?{type:`text`,value:e.value+t.value}:{...e,children:[...e.children,...t.children]}},testLexicalNode:V,visitLexicalNode:({lexicalNode:e,mdastParent:t,actions:n})=>{let r=e.getPreviousSibling(),i=V(r)?r.getFormat():0,a=e.getTextContent(),o=e.getFormat(),s=e.getStyle(),c=t;if(s&&(c=n.appendToParent(c,{type:`mdxJsxTextElement`,name:`span`,children:[],attributes:[{type:`mdxJsxAttribute`,name:`style`,value:s}]})),i&o&8&&(c=n.appendToParent(c,{type:`mdxJsxTextElement`,name:`u`,children:[],attributes:[]})),i&o&64&&(c=n.appendToParent(c,{type:`mdxJsxTextElement`,name:`sup`,children:[],attributes:[]})),i&o&32&&(c=n.appendToParent(c,{type:`mdxJsxTextElement`,name:`sub`,children:[],attributes:[]})),i&o&2&&(c=n.appendToParent(c,{type:`emphasis`,children:[]})),i&o&1&&(c=n.appendToParent(c,{type:`strong`,children:[]})),i&o&4&&(c=n.appendToParent(c,{type:`delete`,children:[]})),i&o&128&&(c=n.appendToParent(c,{type:`highlight`,children:[]})),o&8&&!(i&8)&&(c=n.appendToParent(c,{type:`mdxJsxTextElement`,name:`u`,children:[],attributes:[]})),o&64&&!(i&64)&&(c=n.appendToParent(c,{type:`mdxJsxTextElement`,name:`sup`,children:[],attributes:[]})),o&32&&!(i&32)&&(c=n.appendToParent(c,{type:`mdxJsxTextElement`,name:`sub`,children:[],attributes:[]})),o&2&&!(i&2)&&(c=n.appendToParent(c,{type:`emphasis`,children:[]})),o&1&&!(i&1)&&(c=n.appendToParent(c,{type:`strong`,children:[]})),o&4&&!(i&4)&&(c=n.appendToParent(c,{type:`delete`,children:[]})),o&128&&!(i&128)&&(c=n.appendToParent(c,{type:`highlight`,children:[]})),o&16){n.appendToParent(c,{type:`inlineCode`,value:a});return}n.appendToParent(c,{type:`text`,value:a})}},fb={testNode:`break`,visitNode:function({lexicalParent:e}){e.append(Qa())}};function pb(e,t){return[{testNode:t=>t.type===`mdxJsxTextElement`&&t.name===e,visitNode({actions:e,mdastNode:n,lexicalParent:r}){e.addFormatting(t),e.visitChildren(n,r)}},{testNode:t=>t.type===`html`&&t.value===`<${e}>`,visitNode({actions:e,mdastParent:n}){e.addFormatting(t,n)}},{testNode:t=>t.type===`html`&&t.value===`</${e}>`,visitNode({actions:e,mdastParent:n}){e.removeFormatting(t,n)}}]}var mb={testNode:`delete`,visitNode({mdastNode:e,actions:t,lexicalParent:n}){t.addFormatting(4),t.visitChildren(e,n)}},hb={testNode:`highlight`,visitNode({mdastNode:e,actions:t,lexicalParent:n}){t.addFormatting(128),t.visitChildren(e,n)}},gb={testNode:`inlineCode`,visitNode({mdastNode:e,actions:t}){t.addAndStepInto(_o(e.value).setFormat(t.getParentFormatting()|16))}},_b=[{testNode:`emphasis`,visitNode({mdastNode:e,actions:t,lexicalParent:n}){t.addFormatting(2),t.visitChildren(e,n)}},{testNode:`strong`,visitNode({mdastNode:e,actions:t,lexicalParent:n}){t.addFormatting(1),t.visitChildren(e,n)}},...pb(`u`,8),...pb(`code`,16),gb,mb,hb,...pb(`sup`,64),...pb(`sub`,32)],vb={testNode:c_,visitNode:function({mdastNode:e,actions:t,lexicalParent:n}){e.name===`span`&&e.attributes.length===1&&e.attributes[0].type===`mdxJsxAttribute`&&e.attributes[0].name===`style`?(t.addStyle(e.attributes[0].value,e),t.visitChildren(e,n)):t.addAndStepInto(rb(e.name,e.type,e.attributes))},priority:-100},yb=[`listitem`,`admonition`],bb={testNode:`paragraph`,visitNode:function({mdastNode:e,lexicalParent:t,actions:n}){yb.includes(t.getType())?n.visitChildren(e,t):n.addAndStepInto(Vs())}},xb={testNode:`root`,visitNode({actions:e,mdastNode:t,lexicalParent:n}){e.visitChildren(t,n)}},Sb={testNode:`text`,visitNode({mdastNode:e,actions:t}){let n=_o(e.value);n.setFormat(t.getParentFormatting());let r=t.getParentStyle();r!==``&&n.setStyle(r),t.addAndStepInto(n)}},Cb=()=>I.createElement(Cd,{externalHistoryState:Cn(Vx)});function wb(e){return{canContainEols:[`comment`],enter:{comment(e){this.buffer()}},exit:{comment(e){this.resume()}}}}var Tb=(e,t,n)=>{return r;function r(t){return e.enter(`comment`),e.consume(t),i}function i(t){return t===wm.exclamationMark?(e.consume(t),a):n(t)}function a(t){return t===wm.dash?(e.consume(t),o):n(t)}function o(t){return t===wm.dash?(e.consume(t),s):n(t)}function s(t){return t===wm.greaterThan?n(t):K(t)?u(t):(e.enter(Em.data),t===wm.dash?(e.consume(t),c):l(t))}function c(e){return e===wm.greaterThan?n(e):l(e)}function l(t){return t===wm.eof?n(t):t===wm.dash?(e.consume(t),f):K(t)?(e.exit(Em.data),u(t)):(e.consume(t),l)}function u(t){return e.enter(Em.lineEnding),e.consume(t),e.exit(Em.lineEnding),Rm(e,d,Em.linePrefix)}function d(t){return K(t)?u(t):(e.enter(Em.data),l(t))}function f(t){return t===wm.dash?(e.consume(t),p):l(t)}function p(n){return n===wm.greaterThan?(e.exit(Em.data),e.enter(`commentEnd`),e.consume(n),e.exit(`commentEnd`),e.exit(`comment`),t(n)):n===wm.dash?(e.consume(n),p):l(n)}},Eb={flow:{60:{tokenize:Tb,concrete:!0}},text:{60:{tokenize:Tb}}},Db={bold:`_bold_1tncs_10`,italic:`_italic_1tncs_14`,underline:`_underline_1tncs_18`,strikethrough:`_strikethrough_1tncs_34`,underlineStrikethrough:`_underlineStrikethrough_1tncs_38`,subscript:`_subscript_1tncs_42`,superscript:`_superscript_1tncs_47`,code:`_code_1tncs_52`,nestedListItem:`_nestedListItem_1tncs_59`,listitem:`_listitem_1tncs_69`,listItemChecked:`_listItemChecked_1tncs_73`,listItemUnchecked:`_listItemUnchecked_1tncs_74`,admonitionDanger:`_admonitionDanger_1tncs_151`,admonitionInfo:`_admonitionInfo_1tncs_152`,admonitionNote:`_admonitionNote_1tncs_153`,admonitionTip:`_admonitionTip_1tncs_154`,admonitionCaution:`_admonitionCaution_1tncs_155`,mdxExpression:`_mdxExpression_1tncs_188`},Ob={text:{bold:Db.bold,italic:Db.italic,underline:Db.underline,code:Db.code,strikethrough:Db.strikethrough,subscript:Db.subscript,superscript:Db.superscript,underlineStrikethrough:Db.underlineStrikethrough},list:{listitem:Db.listitem,listitemChecked:Db.listItemChecked,listitemUnchecked:Db.listItemUnchecked,nested:{listitem:Db.nestedListItem}},admonition:{danger:Db.admonitionDanger,info:Db.admonitionInfo,note:Db.admonitionNote,tip:Db.admonitionTip,caution:Db.admonitionCaution}},kb=B(`NESTED_EDITOR_UPDATED_COMMAND`),Ab=R(null),jb=R(null),Mb=R(``),Nb=R(!0),Pb=R(!1,e=>{e.sub(e.pipe(Pb,Dn(Ab)),([e,t])=>{t?.setEditable(!e)})}),Fb=R(``),Ib=R(!1),Lb=R(!1),Rb=R(0),zb=R(null),Bb=yn(e=>{e.link(e.pipe(zb,kn(e=>e!==null)),Bb)}),Vb=yn(e=>{e.sub(e.pipe(Vb,Dn(jb)),([e,t])=>{t?.dispatchCommand(Ri,e)})}),Hb=R(null,e=>{e.sub(e.pipe(Hb,Dn(jb)),([t,n])=>{if(!t||!n)return;let r=t.anchor.getNode(),i=r.getKey()===`root`?r:nd(r,e=>{let t=e.getParent();return t!==null&&nl(t)});i??=r.getTopLevelElementOrThrow();let a=i.getKey();if(n.getElementByKey(a)!==null){let t=cf(i)?i.getTag():i.getType();e.pub(Hx,t)}})}),Ub=R(``),Wb=R(``),Gb=R(!1),Kb=yn(e=>{e.link(Wb,Kb),e.sub(Ub,t=>{e.pubIn({[Gb]:!0,[Wb]:t})})}),qb=yn(e=>{e.link(e.pipe(Kb,Dn(mx),kn(([,e])=>!e),En(([e])=>e)),qb)},!0),Jb=R([]),Yb=R([]),Xb=R([]),Zb=R([]),Qb=R([]),$b=R([]),ex=R({}),tx=R(!1),nx=R([]),rx=R([]),ix=R([]),ax=R(null),ox=R(null),sx=R(null),cx=wx(Yb),lx=wx(Jb),ux=wx(Xb),dx=wx(Zb),fx=wx(Qb),px=wx($b),mx=R(!1),hx=yn(e=>{e.sub(e.pipe(hx,Dn(Wb,Ab,Lb),kn(([e,t])=>e.trim()!==t.trim())),([t,,n,r])=>{e.pub(mx,!0),n?.update(()=>{Sc().clear(),Ox(e,Sc(),t),r?n.focus():wc(null)},{onUpdate:()=>{e.pub(mx,!1)}})})}),gx=yn(e=>{e.sub(e.pipe(gx,Dn(jb,Lb)),([t,n,r])=>{n?.update(()=>{let i=U();if(i!==null){let n={children:[],append(e){this.children.push(e)},getType(){return i.getNodes()[0].getType()}};Ox(e,n,t),Xo(n.children)}r?n.focus():wc(null)})})});function _x(){return An((e,[t,n])=>(e.forEach(e=>{if(!e)throw Error(`You have a subscription that does not return a teardown`);e()}),n?t.map(e=>e(n)):[]),[])}var vx=R(null),yx=R([],e=>{e.pipe(e.combine(yx,jb),_x())}),bx=R([],e=>{e.pipe(e.combine(bx,Ab),_x())}),xx=R(null,Mn,(e,t)=>!!(e&&t&&e.editorRef===t.editorRef)),Sx=yn(),Cx=R(e=>{throw Error(`No icon component for ${e}`)});function wx(e,t){return yn((n,r)=>{n.changeWith(e,r,(e,t)=>{Array.isArray(t)||(t=[t]);let n=e;for(let r of t)e.includes(r)||(n=[...n,r]);return n}),t?.(n,r)})}function Tx(e){let t=U();H(t)&&e.pubIn({[Hb]:t,[Rb]:t.format})}var Ex=wx(bx,(e,t)=>{e.pub(t,[t=>t.registerCommand(Di,(t,n)=>(e.pubIn({[jb]:n,[Lb]:!0}),n._parentEditor===null&&n.getEditorState().read(()=>{e.pub(xx,{rootNode:Sc(),editorType:`lexical`,editorRef:n})}),Tx(e),!1),4),t=>t.registerUpdateListener(({dirtyElements:n,dirtyLeaves:r,editorState:i})=>{if(e.getValue(zb)!==null||n.size===0&&r.size===0)return;let a;i.read(()=>{Sc().getLastChild()instanceof Os&&t.update(()=>{Sc().append(Vs())},{discrete:!0}),a=b_({root:Sc(),visitors:e.getValue(Qb),jsxComponentDescriptors:e.getValue(nx),toMarkdownExtensions:e.getValue($b),toMarkdownOptions:e.getValue(ex),jsxIsAvailable:e.getValue(tx)})}),e.pub(Wb,a.trim()),e.pub(Gb,!1)}),t=>t.registerCommand(ha,()=>(e.pub(Lb,!0),!1),4)])}),Dx=wx(yx,(e,t)=>{e.pub(t,[t=>t.registerUpdateListener(({editorState:t})=>{t.read(()=>{Tx(e)})}),t=>t.registerCommand(ga,t=>{let n=e.getValue(Ab);return n&&(n.getRootElement()?.contains(t.relatedTarget)||e.pubIn({[Lb]:!1,[Sx]:t})),!1},4)])});function Ox(e,t,n){try{Xy({root:t,visitors:e.getValue(Jb),mdastExtensions:e.getValue(Zb),markdown:n,syntaxExtensions:e.getValue(Xb),jsxComponentDescriptors:e.getValue(nx),directiveDescriptors:e.getValue(rx),codeBlockEditorDescriptors:e.getValue(ix)}),e.pub(zb,null)}catch(t){if(t instanceof qy||t instanceof Jy)e.pubIn({[Wb]:n,[zb]:{error:t.message,source:n}});else throw t}}var kx=R([]),Ax=wx(kx),jx=R([]),Mx=wx(jx),Nx=R([]),Px=wx(Nx),Fx=R([]),Ix=wx(Fx),Lx=wx(R([])),Rx=R([]),zx=wx(Rx),Bx=R(!1,e=>{e.link(e.pipe(jb,En(e=>[`td`,`th`].includes((e?.getRootElement()?.parentNode)?.nodeName.toLowerCase()??``))),Bx)}),Vx=R(Sd()),Hx=R(``);yn();var Ux=yn(e=>{e.sub(e.pipe(Ux,Dn(jb)),([e,t])=>{t?.update(()=>{let n=U();H(n)&&(Fu(n,e),setTimeout(()=>{t.focus()}))})})}),Wx=yn(e=>{e.sub(e.pipe(Wx,Dn(jb)),([e,t])=>{t?.focus(()=>{t.getEditorState().read(()=>{H(U())&&(t.update(()=>{let t=e();t.isInline()?(Xo([t]),nl(t.getParentOrThrow())&&ad(t,Vs).selectEnd()):rd(t),setTimeout(()=>{`select`in t&&typeof t.select==`function`&&t.select()})}),setTimeout(()=>{t.dispatchCommand(kb,void 0)}))})},{defaultSelection:`rootEnd`})})}),Gx=R(`rich-text`,e=>{function t(){return An((e,t)=>({current:e.next,next:t}),{current:`rich-text`,next:`rich-text`})}e.sub(e.pipe(Gx,t(),Dn(Kx)),([{current:t},n])=>{(t===`source`||t===`diff`)&&e.pub(hx,n)}),e.sub(e.pipe(Gx,t(),kn(e=>e.current===`rich-text`),Dn(jb)),([,e])=>{e?.dispatchCommand(kb,void 0)})}),Kx=R(``,e=>{e.link(Wb,Kx),e.link(Kx,Kb)},!0),qx=R([]),Jx=wx(qx),Yx=R(()=>{throw Error(`No translation function provided`)}),Xx=R(Ob),Zx=Nn({init(e,t){let n=t?.initialMarkdown??``;e.register(Ex),e.register(Dx),e.register(Kb),e.register(Kx),e.pubIn({[Ub]:t?.trim?n.trim():n,[Cx]:t?.iconComponentFor,[lx]:[xb,bb,Sb,fb,..._b],[cx]:[zs,so,nb],[fx]:[cb,sb,db,ob,ab],[Mb]:t?.contentEditableClassName,[Nb]:t?.spellCheck,[ex]:t?.toMarkdownOptions,[Ib]:t?.autoFocus,[Fb]:t?.placeholder,[Pb]:t?.readOnly,[Yx]:t?.translation,[dx]:[Mf(),zf],[ux]:[Af(),jm()],[px]:[xp(),Nf(),Hf],[Xx]:t?.lexicalTheme??Ob}),e.singletonSub(Bb,t?.onError),e.singletonSub(qb,n=>{t?.onChange(n,e.getValue(Gb))}),e.singletonSub(Sx,t?.onBlur),t?.suppressHtmlProcessing||e.pubIn({[dx]:[bp(),wb()],[ux]:[hh(),gh(),Eb],[lx]:vb}),t?.suppressSharedHistory||e.pub(Ax,Cb)},postInit(e,t){let n=Ws({editable:t?.readOnly!==!0,namespace:t?.lexicalEditorNamespace??`MDXEditor`,nodes:[...e.getValue(Yb),...t?.additionalLexicalNodes??[]],onError:e=>{throw e},theme:e.getValue(Xx)});t?.editorState!==null&&n.update(()=>{let r=t?.initialMarkdown.trim()??``;Ox(e,Sc(),r);let i=t?.autoFocus;if(i){if(i===!0){setTimeout(()=>{n.focus(Mn,{defaultSelection:`rootStart`})});return}setTimeout(()=>{n.focus(Mn,{defaultSelection:i.defaultSelection??`rootStart`})})}}),e.pub(Ab,n),e.pub(jb,n)},update(e,t){e.pubIn({[Mb]:t?.contentEditableClassName,[Nb]:t?.spellCheck,[ex]:t?.toMarkdownOptions,[Ib]:t?.autoFocus,[Fb]:t?.placeholder,[Pb]:t?.readOnly}),e.singletonSub(qb,n=>{t?.onChange(n,e.getValue(Gb))}),e.singletonSub(Sx,t?.onBlur),e.singletonSub(Bb,t?.onError)}});function Qx(){return Cn(Yx)}function $x(){return Sc().getTextContent()}function eS(e,t=!0){if(e)return!1;let n=$x();return t&&(n=n.trim()),n===``}function tS(e){if(!eS(e,!1))return!1;let t=Sc().getChildren(),n=t.length;if(n>1)return!1;for(let e=0;e<n;e++){let n=t[e];if(ks(n))return!1;if(W(n)){if(!Hs(n)||n.__indent!==0)return!1;let t=n.getChildren(),r=t.length;for(let n=0;n<r;n++){let n=t[e];if(!V(n))return!1}}}return!0}function nS(e){return()=>tS(e)}var rS=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0?I.useLayoutEffect:I.useEffect;function iS({editor:e,ariaActiveDescendant:t,ariaAutoComplete:n,ariaControls:r,ariaDescribedBy:i,ariaErrorMessage:a,ariaExpanded:o,ariaInvalid:s,ariaLabel:c,ariaLabelledBy:l,ariaMultiline:u,ariaOwns:d,ariaRequired:f,autoCapitalize:p,className:m,id:h,role:g=`textbox`,spellCheck:_=!0,style:v,tabIndex:y,"data-testid":b,...x},S){let[C,w]=(0,I.useState)(e.isEditable()),T=(0,I.useCallback)((t=>{t&&t.ownerDocument&&t.ownerDocument.defaultView?e.setRootElement(t):e.setRootElement(null)}),[e]),E=(0,I.useMemo)((()=>function(...e){return t=>{e.forEach((e=>{typeof e==`function`?e(t):e!=null&&(e.current=t)}))}}(S,T)),[T,S]);return rS((()=>(w(e.isEditable()),e.registerEditableListener((e=>{w(e)})))),[e]),(0,L.jsx)(`div`,{"aria-activedescendant":C?t:void 0,"aria-autocomplete":C?n:`none`,"aria-controls":C?r:void 0,"aria-describedby":i,...a==null?{}:{"aria-errormessage":a},"aria-expanded":C&&g===`combobox`?!!o:void 0,...s==null?{}:{"aria-invalid":s},"aria-label":c,"aria-labelledby":l,"aria-multiline":u,"aria-owns":C?d:void 0,"aria-readonly":!C||void 0,"aria-required":f,autoCapitalize:p,className:m,contentEditable:C,"data-testid":b,id:h,ref:E,role:g,spellCheck:_,style:v,tabIndex:y,...x})}var aS=(0,I.forwardRef)(iS);function oS(e){return e.getEditorState().read(nS(e.isComposing()))}var sS=(0,I.forwardRef)(cS);function cS(e,t){let{placeholder:n,...r}=e,[i]=Ln();return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(aS,{editor:i,...r,ref:t}),n!=null&&(0,L.jsx)(lS,{editor:i,content:n})]})}function lS({content:e,editor:t}){let n=function(e){let[t,n]=(0,I.useState)((()=>oS(e)));return rS((()=>{function t(){n(oS(e))}return t(),Ju(e.registerUpdateListener((()=>{t()})),e.registerEditableListener((()=>{t()})))}),[e]),t}(t),[r,i]=(0,I.useState)(t.isEditable());if((0,I.useLayoutEffect)((()=>(i(t.isEditable()),t.registerEditableListener((e=>{i(e)})))),[t]),!n)return null;let a=null;return typeof e==`function`?a=e(r):e!==null&&(a=e),a===null?null:(0,L.jsx)(`div`,{"aria-hidden":!0,children:a})}function uS(e,t){return uS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},uS(e,t)}var dS={error:null},fS=function(e){var t,n;function r(){for(var t,n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).state=dS,t.resetErrorBoundary=function(){for(var e,n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];t.props.onReset==null||(e=t.props).onReset.apply(e,r),t.reset()},t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,uS(t,n),r.getDerivedStateFromError=function(e){return{error:e}};var i=r.prototype;return i.reset=function(){this.setState(dS)},i.componentDidCatch=function(e,t){var n,r;(n=(r=this.props).onError)==null||n.call(r,e,t)},i.componentDidUpdate=function(e,t){var n,r,i,a,o=this.state.error,s=this.props.resetKeys;o!==null&&t.error!==null&&((i=e.resetKeys)===void 0&&(i=[]),(a=s)===void 0&&(a=[]),i.length!==a.length||i.some((function(e,t){return!Object.is(e,a[t])})))&&((n=(r=this.props).onResetKeysChange)==null||n.call(r,e.resetKeys,s),this.reset())},i.render=function(){var e=this.state.error,t=this.props,n=t.fallbackRender,r=t.FallbackComponent,i=t.fallback;if(e!==null){var a={error:e,resetErrorBoundary:this.resetErrorBoundary};if(I.isValidElement(i))return i;if(typeof n==`function`)return n(a);if(r)return I.createElement(r,a);throw Error(`react-error-boundary requires either a fallback, fallbackRender, or FallbackComponent prop`)}return this.props.children},r}(I.Component);function pS({children:e,onError:t}){return(0,L.jsx)(fS,{fallback:(0,L.jsx)(`div`,{style:{border:`1px solid #f00`,color:`#f00`,padding:`8px`},children:`An error was thrown.`}),onError:t,children:e})}var mS=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0?I.useLayoutEffect:I.useEffect;function hS(e){return{initialValueFn:()=>e.isEditable(),subscribe:t=>e.registerEditableListener(t)}}function gS(){return function(e){let[t]=Ln(),n=(0,I.useMemo)((()=>e(t)),[t,e]),[r,i]=(0,I.useState)((()=>n.initialValueFn())),a=(0,I.useRef)(r);return mS((()=>{let{initialValueFn:e,subscribe:t}=n,r=e();return a.current!==r&&(a.current=r,i(r)),t((e=>{a.current=e,i(e)}))}),[n,e]),r}(hS)}function _S(e){let t=window.location.origin,n=n=>{if(n.origin!==t)return;let r=e.getRootElement();if(document.activeElement!==r)return;let i=n.data;if(typeof i==`string`){let t;try{t=JSON.parse(i)}catch{return}if(t&&t.protocol===`nuanria_messaging`&&t.type===`request`){let r=t.payload;if(r&&r.functionId===`makeChanges`){let t=r.args;if(t){let[r,i,a,o,s,c]=t;e.update((()=>{let e=U();if(H(e)){let t=e.anchor,c=t.getNode(),l=0,u=0;if(V(c)&&r>=0&&i>=0&&(l=r,u=r+i,e.setTextNodeRange(c,l,c,u)),l===u&&a===``||(e.insertRawText(a),c=t.getNode()),V(c)){l=o,u=o+s;let t=c.getTextContentSize();l=l>t?t:l,u=u>t?t:u,e.setTextNodeRange(c,l,c,u)}n.stopImmediatePropagation()}}))}}}}};return window.addEventListener(`message`,n,!0),()=>{window.removeEventListener(`message`,n,!0)}}var vS=mt(bt(),1),yS=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0?I.useLayoutEffect:I.useEffect;function bS(e){return e.getEditorState().read(nS(e.isComposing()))}function xS({contentEditable:e,placeholder:t=null,ErrorBoundary:n}){let[r]=Ln(),i=function(e,t){let[n,r]=(0,I.useState)((()=>e.getDecorators()));return yS((()=>e.registerDecoratorListener((e=>{(0,vS.flushSync)((()=>{r(e)}))}))),[e]),(0,I.useEffect)((()=>{r(e.getDecorators())}),[e]),(0,I.useMemo)((()=>{let r=[],i=Object.keys(n);for(let a=0;a<i.length;a++){let o=i[a],s=(0,L.jsx)(t,{onError:t=>e._onError(t),children:(0,L.jsx)(I.Suspense,{fallback:null,children:n[o]})}),c=e.getElementByKey(o);c!==null&&r.push((0,vS.createPortal)(s,c,o))}return r}),[t,n,e])}(r,n);return function(e){yS((()=>Ju(pf(e),_S(e))),[e])}(r),(0,L.jsxs)(L.Fragment,{children:[e,(0,L.jsx)(SS,{content:t}),i]})}function SS({content:e}){let[t]=Ln(),n=function(e){let[t,n]=(0,I.useState)((()=>bS(e)));return yS((()=>{function t(){n(bS(e))}return t(),Ju(e.registerUpdateListener((()=>{t()})),e.registerEditableListener((()=>{t()})))}),[e]),t}(t),r=gS();return n?typeof e==`function`?e(r):e:null}var CS=dt(((e,t)=>{(function(){var e={}.hasOwnProperty;function n(){for(var e=``,t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=i(e,r(n)))}return e}function r(t){if(typeof t==`string`||typeof t==`number`)return t;if(typeof t!=`object`)return``;if(Array.isArray(t))return n.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes(`[native code]`))return t.toString();var r=``;for(var a in t)e.call(t,a)&&t[a]&&(r=i(r,a));return r}function i(e,t){return t?e?e+` `+t:e+t:e}t!==void 0&&t.exports?(n.default=n,t.exports=n):typeof define==`function`&&typeof define.amd==`object`&&define.amd?define(`classnames`,[],function(){return n}):window.classNames=n})()})),wS={undo:I.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},I.createElement(`path`,{d:`M7.202 18.5V17H14.3788C15.4224 17 16.3205 16.6554 17.073 15.9663C17.8257 15.2773 18.202 14.4263 18.202 13.4135C18.202 12.4007 17.8257 11.5512 17.073 10.8652C16.3205 10.1794 15.4224 9.8365 14.3788 9.8365H7.35775L10.1402 12.6193L9.0865 13.673L4.5 9.0865L9.0865 4.5L10.1402 5.55375L7.35775 8.3365H14.3788C15.8416 8.3365 17.0945 8.82467 18.1375 9.801C19.1805 10.7773 19.702 11.9815 19.702 13.4135C19.702 14.8455 19.1805 16.0513 18.1375 17.0308C17.0945 18.0103 15.8416 18.5 14.3788 18.5H7.202Z`,fill:`currentColor`})),redo:I.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},I.createElement(`path`,{d:`M9.6211 18.5C8.15827 18.5 6.90535 18.0103 5.86235 17.0308C4.81935 16.0513 4.29785 14.8455 4.29785 13.4135C4.29785 11.9815 4.81935 10.7773 5.86235 9.801C6.90535 8.82467 8.15827 8.3365 9.6211 8.3365H16.6421L13.8596 5.55375L14.9134 4.5L19.4999 9.0865L14.9134 13.673L13.8596 12.6193L16.6421 9.8365H9.6211C8.57744 9.8365 7.67935 10.1794 6.92685 10.8652C6.17418 11.5512 5.79785 12.4007 5.79785 13.4135C5.79785 14.4263 6.17418 15.2773 6.92685 15.9663C7.67935 16.6554 8.57744 17 9.6211 17H16.7979V18.5H9.6211Z`,fill:`currentColor`})),format_bold:I.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},I.createElement(`path`,{d:`M7.33838 18.625V5.375H12.1999C13.219 5.375 14.1405 5.69233 14.9644 6.327C15.788 6.9615 16.1999 7.816 16.1999 8.8905C16.1999 9.63783 16.0194 10.2471 15.6584 10.7182C15.2975 11.1894 14.9088 11.5314 14.4921 11.7442C15.005 11.9211 15.4947 12.2708 15.9614 12.7933C16.428 13.3158 16.6614 14.0193 16.6614 14.9038C16.6614 16.1819 16.1902 17.1217 15.2479 17.723C14.3055 18.3243 13.3562 18.625 12.3999 18.625H7.33838ZM9.48838 16.6328H12.3191C13.1063 16.6328 13.6627 16.4142 13.9884 15.977C14.314 15.5398 14.4769 15.1206 14.4769 14.7192C14.4769 14.3179 14.314 13.8987 13.9884 13.4615C13.6627 13.0243 13.0909 12.8058 12.2729 12.8058H9.48838V16.6328ZM9.48838 10.875H12.0826C12.6903 10.875 13.172 10.7013 13.5279 10.3538C13.8835 10.0064 14.0614 9.59042 14.0614 9.10575C14.0614 8.59042 13.8733 8.16925 13.4971 7.84225C13.1208 7.51542 12.6595 7.352 12.1134 7.352H9.48838V10.875Z`,fill:`currentColor`})),format_italic:I.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},I.createElement(`path`,{d:`M5.39404 18.625V16.8173H9.21129L12.4518 7.18275H8.63454V5.375H17.7883V7.18275H14.2785L11.0383 16.8173H14.5478V18.625H5.39404Z`,fill:`currentColor`})),format_underlined:I.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},I.createElement(`path`,{d:`M5.34619 22.125V20.625H18.6537V22.125H5.34619ZM11.9999 18.5287C10.4448 18.5287 9.23102 18.0566 8.35869 17.1125C7.48619 16.1683 7.04994 14.9032 7.04994 13.3172V5.41345H8.90369V13.4095C8.90369 14.4198 9.17228 15.2295 9.70944 15.8385C10.2466 16.4475 11.0101 16.752 11.9999 16.752C12.9898 16.752 13.7533 16.4475 14.2904 15.8385C14.8276 15.2295 15.0962 14.4198 15.0962 13.4095V5.41345H16.9499V13.3172C16.9499 14.9032 16.5137 16.1683 15.6412 17.1125C14.7689 18.0566 13.5551 18.5287 11.9999 18.5287Z`,fill:`currentColor`})),format_highlight:I.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.75`,strokeLinecap:`round`,strokeLinejoin:`round`},I.createElement(`path`,{d:`m9 11-6 6v3h9l3-3`}),I.createElement(`path`,{d:`m22 12-4.6 4.6a2 2 0 0 1-2.8 0l-5.2-5.2a2 2 0 0 1 0-2.8L14 4`})),code:I.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},I.createElement(`path`,{d:`M7.99994 17.6537L2.34619 11.9999L7.99994 6.34619L9.06919 7.41544L4.46919 12.0154L9.05369 16.5999L7.99994 17.6537ZM15.9999 17.6537L14.9307 16.5844L19.5307 11.9844L14.9462 7.39994L15.9999 6.34619L21.6537 11.9999L15.9999 17.6537Z`,fill:`currentColor`})),strikeThrough:I.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},I.createElement(`path`,{d:`M12.15 19.6923C10.9732 19.6923 9.9315 19.359 9.025 18.6923C8.11867 18.0256 7.45525 17.1128 7.03475 15.9538L8.6385 15.2635C8.91667 16.0444 9.3545 16.6867 9.952 17.1905C10.5493 17.6944 11.2923 17.9463 12.1808 17.9463C12.9578 17.9463 13.6744 17.7508 14.3307 17.3598C14.9872 16.9686 15.3155 16.3487 15.3155 15.5C15.3155 15.123 15.2555 14.7968 15.1355 14.5213C15.0157 14.2456 14.8462 13.9885 14.627 13.75H16.677C16.7987 13.9705 16.8932 14.2256 16.9605 14.5153C17.0278 14.8051 17.0615 15.1334 17.0615 15.5C17.0615 16.8372 16.5747 17.8702 15.601 18.599C14.6272 19.3279 13.4768 19.6923 12.15 19.6923ZM2.25 11.75V10.25H21.75V11.75H2.25ZM12.05 4.19629C13.0475 4.19629 13.9123 4.42704 14.6443 4.88854C15.3763 5.35004 15.9673 6.05896 16.4173 7.01529L14.823 7.73079C14.6218 7.26029 14.2978 6.84462 13.851 6.48379C13.4042 6.12279 12.8141 5.94229 12.0808 5.94229C11.2244 5.94229 10.5392 6.16221 10.025 6.60204C9.51083 7.04171 9.264 7.59104 9.2845 8.25004H7.5385C7.50133 7.16421 7.89783 6.21712 8.728 5.40879C9.558 4.60046 10.6653 4.19629 12.05 4.19629Z`,fill:`currentColor`})),superscript:I.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},I.createElement(`path`,{d:`M16.6924 8V6.2115C16.6924 5.95383 16.7786 5.73875 16.9511 5.56625C17.1235 5.39392 17.3385 5.30775 17.5961 5.30775H19.5001V4.38475H16.6924V3.5H19.4809C19.7385 3.5 19.9536 3.58625 20.1261 3.75875C20.2985 3.93108 20.3846 4.14617 20.3846 4.404V5.2885C20.3846 5.54617 20.2985 5.76125 20.1261 5.93375C19.9536 6.10608 19.7385 6.19225 19.4809 6.19225H17.5771V7.1155H20.3846V8H16.6924ZM4.44238 18.5L8.84638 11.6287L4.77713 5.30775H6.74438L9.95963 10.404H10.0214L13.2501 5.30775H15.2329L11.1194 11.6287L15.5579 18.5H13.5751L10.0214 12.9308H9.95963L6.42513 18.5H4.44238Z`,fill:`currentColor`})),subscript:I.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},I.createElement(`path`,{d:`M16.6924 20.5V18.7115C16.6924 18.4538 16.7786 18.2387 16.9511 18.0662C17.1235 17.8939 17.3385 17.8077 17.5961 17.8077H19.5001V16.8845H16.6924V16H19.4809C19.7385 16 19.9536 16.0863 20.1261 16.2587C20.2985 16.4311 20.3846 16.6461 20.3846 16.9038V17.7885C20.3846 18.0462 20.2985 18.2612 20.1261 18.4337C19.9536 18.6061 19.7385 18.6923 19.4809 18.6923H17.5771V19.6152H20.3846V20.5H16.6924ZM4.44238 18.6923L8.84638 11.8212L4.77713 5.5H6.74438L9.95963 10.5962H10.0214L13.2501 5.5H15.2329L11.1194 11.8212L15.5579 18.6923H13.5751L10.0214 13.123H9.95963L6.42513 18.6923H4.44238Z`,fill:`currentColor`})),format_list_bulleted:I.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},I.createElement(`path`,{d:`M9.30775 18.75V17.25H20.5V18.75H9.30775ZM9.30775 12.75V11.25H20.5V12.75H9.30775ZM9.30775 6.75005V5.25005H20.5V6.75005H9.30775ZM5.1635 19.6635C4.706 19.6635 4.31442 19.5006 3.98875 19.1748C3.66292 18.8491 3.5 18.4575 3.5 18C3.5 17.5425 3.66292 17.151 3.98875 16.8253C4.31442 16.4995 4.706 16.3365 5.1635 16.3365C5.621 16.3365 6.01258 16.4995 6.33825 16.8253C6.66408 17.151 6.827 17.5425 6.827 18C6.827 18.4575 6.66408 18.8491 6.33825 19.1748C6.01258 19.5006 5.621 19.6635 5.1635 19.6635ZM5.1635 13.6635C4.706 13.6635 4.31442 13.5006 3.98875 13.1748C3.66292 12.8491 3.5 12.4575 3.5 12C3.5 11.5425 3.66292 11.151 3.98875 10.8253C4.31442 10.4995 4.706 10.3365 5.1635 10.3365C5.621 10.3365 6.01258 10.4995 6.33825 10.8253C6.66408 11.151 6.827 11.5425 6.827 12C6.827 12.4575 6.66408 12.8491 6.33825 13.1748C6.01258 13.5006 5.621 13.6635 5.1635 13.6635ZM5.1635 7.66355C4.706 7.66355 4.31442 7.50063 3.98875 7.1748C3.66292 6.84913 3.5 6.45755 3.5 6.00005C3.5 5.54255 3.66292 5.15096 3.98875 4.8253C4.31442 4.49946 4.706 4.33655 5.1635 4.33655C5.621 4.33655 6.01258 4.49946 6.33825 4.8253C6.66408 5.15096 6.827 5.54255 6.827 6.00005C6.827 6.45755 6.66408 6.84913 6.33825 7.1748C6.01258 7.50063 5.621 7.66355 5.1635 7.66355Z`,fill:`currentColor`})),format_list_numbered:I.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},I.createElement(`path`,{d:`M3.5 21.5V20.3078H6V19.25H4.5V18.0577H6V17H3.5V15.8077H6.34625C6.58592 15.8077 6.78683 15.8888 6.949 16.051C7.11117 16.2132 7.19225 16.4141 7.19225 16.6538V17.8462C7.19225 18.0859 7.11117 18.2868 6.949 18.449C6.78683 18.6112 6.58592 18.6923 6.34625 18.6923C6.58592 18.6923 6.78683 18.7733 6.949 18.9355C7.11117 19.0977 7.19225 19.2987 7.19225 19.5385V20.6538C7.19225 20.8936 7.11117 21.0946 6.949 21.2568C6.78683 21.4189 6.58592 21.5 6.34625 21.5H3.5ZM3.5 14.8463V12.25C3.5 12.0103 3.58108 11.8093 3.74325 11.647C3.90542 11.4848 4.10642 11.4038 4.34625 11.4038H6V10.3462H3.5V9.15375H6.34625C6.58592 9.15375 6.78683 9.23483 6.949 9.397C7.11117 9.55933 7.19225 9.76033 7.19225 10V11.75C7.19225 11.9897 7.11117 12.1907 6.949 12.353C6.78683 12.5152 6.58592 12.5963 6.34625 12.5963H4.69225V13.6538H7.19225V14.8463H3.5ZM5 8.19225V3.69225H3.5V2.5H6.19225V8.19225H5ZM9.30775 18.75V17.25H20.5V18.75H9.30775ZM9.30775 12.75V11.25H20.5V12.75H9.30775ZM9.30775 6.75V5.25H20.5V6.75H9.30775Z`,fill:`currentColor`})),format_list_checked:I.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},I.createElement(`path`,{d:`M5.69425 18.452L2.5 15.2578L3.54425 14.2135L5.66925 16.3385L9.91925 12.0885L10.9635 13.1578L5.69425 18.452ZM5.69425 10.8365L2.5 7.64227L3.54425 6.59802L5.66925 8.72302L9.91925 4.47302L10.9635 5.54227L5.69425 10.8365ZM13.0095 16.5578V15.0578H21.5095V16.5578H13.0095ZM13.0095 8.94227V7.44227H21.5095V8.94227H13.0095Z`,fill:`currentColor`})),link:I.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},I.createElement(`path`,{d:`M10.8077 16.5385H7.0385C5.78283 16.5385 4.7125 16.096 3.8275 15.211C2.9425 14.3262 2.5 13.256 2.5 12.0005C2.5 10.745 2.9425 9.67471 3.8275 8.78955C4.7125 7.90421 5.78283 7.46155 7.0385 7.46155H10.8077V8.96155H7.0385C6.19867 8.96155 5.48233 9.25805 4.8895 9.85105C4.2965 10.444 4 11.1604 4 12C4 12.8397 4.2965 13.556 4.8895 14.149C5.48233 14.742 6.19867 15.0385 7.0385 15.0385H10.8077V16.5385ZM8.25 12.75V11.25H15.75V12.75H8.25ZM13.1923 16.5385V15.0385H16.9615C17.8013 15.0385 18.5177 14.742 19.1105 14.149C19.7035 13.556 20 12.8397 20 12C20 11.1604 19.7035 10.444 19.1105 9.85105C18.5177 9.25805 17.8013 8.96155 16.9615 8.96155H13.1923V7.46155H16.9615C18.2172 7.46155 19.2875 7.90405 20.1725 8.78905C21.0575 9.67388 21.5 10.744 21.5 11.9995C21.5 13.255 21.0575 14.3254 20.1725 15.2105C19.2875 16.0959 18.2172 16.5385 16.9615 16.5385H13.1923Z`,fill:`currentColor`})),add_photo:I.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},I.createElement(`path`,{d:`M5.11537 20.5C4.6182 20.5 4.19262 20.323 3.83862 19.969C3.48462 19.615 3.30762 19.1894 3.30762 18.6922V5.30773C3.30762 4.81056 3.48462 4.38498 3.83862 4.03098C4.19262 3.67698 4.6182 3.49998 5.11537 3.49998H13.8076V4.99998H5.11537C5.02553 4.99998 4.95178 5.02881 4.89412 5.08648C4.83645 5.14415 4.80762 5.2179 4.80762 5.30773V18.6922C4.80762 18.7821 4.83645 18.8558 4.89412 18.9135C4.95178 18.9711 5.02553 19 5.11537 19H18.4999C18.5895 19 18.6633 18.9711 18.7211 18.9135C18.7788 18.8558 18.8076 18.7821 18.8076 18.6922V9.99998H20.3076V18.6922C20.3076 19.1894 20.1306 19.615 19.7766 19.969C19.4226 20.323 18.997 20.5 18.4999 20.5H5.11537ZM17.1921 8.61523V6.61523H15.1921V5.11548H17.1921V3.11548H18.6921V5.11548H20.6921V6.61523H18.6921V8.61523H17.1921ZM6.55762 16.75H17.1344L13.8459 12.3655L11.0384 16.0192L9.03837 13.4615L6.55762 16.75Z`,fill:`currentColor`})),table:I.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},I.createElement(`path`,{d:`M3.5 18.6923V5.30775C3.5 4.81058 3.677 4.385 4.031 4.031C4.385 3.677 4.81058 3.5 5.30775 3.5H18.6923C19.1894 3.5 19.615 3.677 19.969 4.031C20.323 4.385 20.5 4.81058 20.5 5.30775V18.6923C20.5 19.1894 20.323 19.615 19.969 19.969C19.615 20.323 19.1894 20.5 18.6923 20.5H5.30775C4.81058 20.5 4.385 20.323 4.031 19.969C3.677 19.615 3.5 19.1894 3.5 18.6923ZM5 9.077H19V5.30775C19 5.21792 18.9712 5.14417 18.9135 5.0865C18.8558 5.02883 18.7821 5 18.6923 5H5.30775C5.21792 5 5.14417 5.02883 5.0865 5.0865C5.02883 5.14417 5 5.21792 5 5.30775V9.077ZM10.1615 14.0385H13.8385V10.577H10.1615V14.0385ZM10.1615 19H13.8385V15.5385H10.1615V19ZM5 14.0385H8.6615V10.577H5V14.0385ZM15.3385 14.0385H19V10.577H15.3385V14.0385ZM5.30775 19H8.6615V15.5385H5V18.6923C5 18.7821 5.02883 18.8558 5.0865 18.9135C5.14417 18.9712 5.21792 19 5.30775 19ZM15.3385 19H18.6923C18.7821 19 18.8558 18.9712 18.9135 18.9135C18.9712 18.8558 19 18.7821 19 18.6923V15.5385H15.3385V19Z`,fill:`currentColor`})),horizontal_rule:I.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},I.createElement(`path`,{d:`M4.5 12.75V11.25H19.5V12.75H4.5Z`,fill:`currentColor`})),frontmatter:I.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},I.createElement(`path`,{d:`M4.5 8.75V7.25H8.5V8.75H4.5Z`,fill:`currentColor`}),I.createElement(`path`,{d:`M4.5 14.75V13.25H8.5V14.75H4.5Z`,fill:`currentColor`}),I.createElement(`path`,{d:`M9.5 8.75V7.25H13.5V8.75H9.5Z`,fill:`currentColor`}),I.createElement(`path`,{d:`M9.5 14.75V13.25H13.5V14.75H9.5Z`,fill:`currentColor`}),I.createElement(`path`,{d:`M14.5 8.75V7.25H18.5V8.75H14.5Z`,fill:`currentColor`}),I.createElement(`path`,{d:`M14.5 14.75V13.25H18.5V14.75H14.5Z`,fill:`currentColor`})),frame_source:I.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},I.createElement(`path`,{d:`M8.6 15.2443L5.35575 12L8.6 8.75575L9.64425 9.825L7.46925 12L9.64425 14.175L8.6 15.2443ZM15.4 15.2443L14.3558 14.175L16.5307 12L14.3558 9.825L15.4 8.75575L18.6443 12L15.4 15.2443ZM5.30775 20.5C4.80258 20.5 4.375 20.325 4.025 19.975C3.675 19.625 3.5 19.1974 3.5 18.6923V15H5V18.6923C5 18.7692 5.03208 18.8398 5.09625 18.9038C5.16025 18.9679 5.23075 19 5.30775 19H9V20.5H5.30775ZM15 20.5V19H18.6923C18.7692 19 18.8398 18.9679 18.9038 18.9038C18.9679 18.8398 19 18.7692 19 18.6923V15H20.5V18.6923C20.5 19.1974 20.325 19.625 19.975 19.975C19.625 20.325 19.1974 20.5 18.6923 20.5H15ZM3.5 9V5.30775C3.5 4.80258 3.675 4.375 4.025 4.025C4.375 3.675 4.80258 3.5 5.30775 3.5H9V5H5.30775C5.23075 5 5.16025 5.03208 5.09625 5.09625C5.03208 5.16025 5 5.23075 5 5.30775V9H3.5ZM19 9V5.30775C19 5.23075 18.9679 5.16025 18.9038 5.09625C18.8398 5.03208 18.7692 5 18.6923 5H15V3.5H18.6923C19.1974 3.5 19.625 3.675 19.975 4.025C20.325 4.375 20.5 4.80258 20.5 5.30775V9H19Z`,fill:`currentColor`})),arrow_drop_down:I.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},I.createElement(`path`,{d:`M11.9999 14.6537L7.59619 10.25H16.4037L11.9999 14.6537Z`,fill:`currentColor`})),admonition:I.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},I.createElement(`path`,{d:`M12.0001 21.4C11.7654 21.4 11.5385 21.3548 11.3193 21.2645C11.1002 21.174 10.9002 21.0435 10.7193 20.873L3.1271 13.2807C2.9566 13.0999 2.8261 12.8999 2.7356 12.6807C2.64526 12.4616 2.6001 12.2346 2.6001 12C2.6001 11.7653 2.64526 11.5358 2.7356 11.3115C2.8261 11.0871 2.9566 10.8897 3.1271 10.7192L10.7193 3.12698C10.9002 2.94614 11.1002 2.81314 11.3193 2.72798C11.5385 2.64264 11.7654 2.59998 12.0001 2.59998C12.2348 2.59998 12.4643 2.64264 12.6886 2.72798C12.9129 2.81314 13.1103 2.94614 13.2808 3.12698L20.8731 10.7192C21.0539 10.8897 21.1869 11.0871 21.2721 11.3115C21.3574 11.5358 21.4001 11.7653 21.4001 12C21.4001 12.2346 21.3574 12.4616 21.2721 12.6807C21.1869 12.8999 21.0539 13.0999 20.8731 13.2807L13.2808 20.873C13.1103 21.0435 12.9129 21.174 12.6886 21.2645C12.4643 21.3548 12.2348 21.4 12.0001 21.4ZM12.2213 19.8037L19.8039 12.2212C19.8552 12.1699 19.8808 12.0961 19.8808 12C19.8808 11.9038 19.8552 11.8301 19.8039 11.7787L12.2213 4.19623C12.17 4.14489 12.0963 4.11923 12.0001 4.11923C11.9039 4.11923 11.8302 4.14489 11.7788 4.19623L4.19635 11.7787C4.14501 11.8301 4.11935 11.9038 4.11935 12C4.11935 12.0961 4.14501 12.1699 4.19635 12.2212L11.7788 19.8037C11.8302 19.8551 11.9039 19.8807 12.0001 19.8807C12.0963 19.8807 12.17 19.8551 12.2213 19.8037ZM11.2501 13.0865H12.7501V7.47123H11.2501V13.0865ZM12.0001 15.702C12.2258 15.702 12.4168 15.6237 12.5731 15.4672C12.7296 15.3109 12.8078 15.1199 12.8078 14.8942C12.8078 14.6686 12.7296 14.4776 12.5731 14.3212C12.4168 14.1647 12.2258 14.0865 12.0001 14.0865C11.7744 14.0865 11.5834 14.1647 11.4271 14.3212C11.2706 14.4776 11.1923 14.6686 11.1923 14.8942C11.1923 15.1199 11.2706 15.3109 11.4271 15.4672C11.5834 15.6237 11.7744 15.702 12.0001 15.702Z`,fill:`currentColor`})),sandpack:I.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},I.createElement(`path`,{d:`M12.9999 22.5C12.4947 22.5 12.0671 22.325 11.7171 21.975C11.3671 21.625 11.1921 21.1974 11.1921 20.6922V7.30775C11.1921 6.80258 11.3671 6.375 11.7171 6.025C12.0671 5.675 12.4947 5.5 12.9999 5.5H16.3844C16.8895 5.5 17.3171 5.675 17.6671 6.025C18.0171 6.375 18.1921 6.80258 18.1921 7.30775V20.6922C18.1921 21.1974 18.0171 21.625 17.6671 21.975C17.3171 22.325 16.8895 22.5 16.3844 22.5H12.9999ZM12.6921 7.30775V20.6922C12.6921 20.7692 12.7242 20.8398 12.7884 20.9038C12.8524 20.9679 12.9229 21 12.9999 21H16.3844C16.4614 21 16.5319 20.9679 16.5959 20.9038C16.66 20.8398 16.6921 20.7692 16.6921 20.6922V7.30775C16.6921 7.23075 16.66 7.16025 16.5959 7.09625C16.5319 7.03208 16.4614 7 16.3844 7H12.9999C12.9229 7 12.8524 7.03208 12.7884 7.09625C12.7242 7.16025 12.6921 7.23075 12.6921 7.30775ZM6.61537 18.5C6.1102 18.5 5.68262 18.325 5.33262 17.975C4.98262 17.625 4.80762 17.1974 4.80762 16.6923V3.30775C4.80762 2.80258 4.98262 2.375 5.33262 2.025C5.68262 1.675 6.1102 1.5 6.61537 1.5H9.99987C10.505 1.5 10.9326 1.675 11.2826 2.025C11.6326 2.375 11.8076 2.80258 11.8076 3.30775V16.6923C11.8076 17.1974 11.6326 17.625 11.2826 17.975C10.9326 18.325 10.505 18.5 9.99987 18.5H6.61537ZM6.30762 3.30775V16.6923C6.30762 16.7692 6.3397 16.8398 6.40387 16.9038C6.46787 16.9679 6.53837 17 6.61537 17H9.99987C10.0769 17 10.1474 16.9679 10.2114 16.9038C10.2755 16.8398 10.3076 16.7692 10.3076 16.6923V3.30775C10.3076 3.23075 10.2755 3.16025 10.2114 3.09625C10.1474 3.03208 10.0769 3 9.99987 3H6.61537C6.53837 3 6.46787 3.03208 6.40387 3.09625C6.3397 3.16025 6.30762 3.23075 6.30762 3.30775Z`,fill:`currentColor`})),rich_text:I.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},I.createElement(`path`,{d:`M5.30775 20.5C4.80258 20.5 4.375 20.325 4.025 19.975C3.675 19.625 3.5 19.1974 3.5 18.6923V5.30775C3.5 4.80258 3.675 4.375 4.025 4.025C4.375 3.675 4.80258 3.5 5.30775 3.5H18.6923C19.1974 3.5 19.625 3.675 19.975 4.025C20.325 4.375 20.5 4.80258 20.5 5.30775V18.6923C20.5 19.1974 20.325 19.625 19.975 19.975C19.625 20.325 19.1974 20.5 18.6923 20.5H5.30775ZM5.30775 19H18.6923C18.7692 19 18.8398 18.9679 18.9038 18.9038C18.9679 18.8398 19 18.7692 19 18.6923V5.30775C19 5.23075 18.9679 5.16025 18.9038 5.09625C18.8398 5.03208 18.7692 5 18.6923 5H5.30775C5.23075 5 5.16025 5.03208 5.09625 5.09625C5.03208 5.16025 5 5.23075 5 5.30775V18.6923C5 18.7692 5.03208 18.8398 5.09625 18.9038C5.16025 18.9679 5.23075 19 5.30775 19ZM6.75 17H17.3268L14 12.3655L11.2308 16.0192L9 13.4615L6.75 17Z`,fill:`currentColor`}),I.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M6 12V6.5H9.1925C9.5925 6.5 9.9425 6.65 10.2425 6.95C10.5425 7.25 10.6925 7.6 10.6925 8V8.6925C10.6925 9.03733 10.605 9.32675 10.43 9.56075C10.255 9.79458 10.0168 9.97817 9.7155 10.1115L10.6155 12H9.404L8.504 10.1925H7.1925V12H6ZM9.1925 9H7.1925V7.6925H9.1925C9.26933 7.6925 9.33983 7.7245 9.404 7.7885C9.468 7.85267 9.5 7.92317 9.5 8V8.6925C9.5 8.76933 9.468 8.83983 9.404 8.904C9.33983 8.968 9.26933 9 9.1925 9Z`,fill:`currentColor`}),I.createElement(`path`,{d:`M12.5 7H17.5V8.25H12.5V7Z`,fill:`currentColor`}),I.createElement(`path`,{d:`M12.5 9.25H17.5V10.5H12.5V9.25Z`,fill:`currentColor`})),difference:I.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},I.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M5.30775 20.5C4.80258 20.5 4.375 20.325 4.025 19.975C3.675 19.625 3.5 19.1974 3.5 18.6923V5.30775C3.5 4.80258 3.675 4.375 4.025 4.025C4.375 3.675 4.80258 3.5 5.30775 3.5H18.6923C19.1974 3.5 19.625 3.675 19.975 4.025C20.325 4.375 20.5 4.80258 20.5 5.30775V18.6923C20.5 19.1974 20.325 19.625 19.975 19.975C19.625 20.325 19.1974 20.5 18.6923 20.5H5.30775ZM18.6923 19H5.30775C5.23075 19 5.16025 18.9679 5.09625 18.9038C5.03208 18.8398 5 18.7692 5 18.6923V5.30775C5 5.23075 5.03208 5.16025 5.09625 5.09625C5.16025 5.03208 5.23075 5 5.30775 5H18.6923C18.7692 5 18.8398 5.03208 18.9038 5.09625C18.9679 5.16025 19 5.23075 19 5.30775V18.6923C19 18.7692 18.9679 18.8398 18.9038 18.9038C18.8398 18.9679 18.7692 19 18.6923 19Z`,fill:`currentColor`}),I.createElement(`rect`,{x:`9`,y:`10`,width:`5.5`,height:`1.5`,fill:`currentColor`}),I.createElement(`rect`,{x:`9`,y:`15`,width:`5.5`,height:`1.5`,fill:`currentColor`}),I.createElement(`rect`,{x:`11`,y:`8`,width:`1.5`,height:`5.5`,fill:`currentColor`})),markdown:I.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},I.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M5.30775 20.5C4.80258 20.5 4.375 20.325 4.025 19.975C3.675 19.625 3.5 19.1974 3.5 18.6923V5.30775C3.5 4.80258 3.675 4.375 4.025 4.025C4.375 3.675 4.80258 3.5 5.30775 3.5H18.6923C19.1974 3.5 19.625 3.675 19.975 4.025C20.325 4.375 20.5 4.80258 20.5 5.30775V18.6923C20.5 19.1974 20.325 19.625 19.975 19.975C19.625 20.325 19.1974 20.5 18.6923 20.5H5.30775ZM18.6923 19H5.30775C5.23075 19 5.16025 18.9679 5.09625 18.9038C5.03208 18.8398 5 18.7692 5 18.6923V5.30775C5 5.23075 5.03208 5.16025 5.09625 5.09625C5.16025 5.03208 5.23075 5 5.30775 5H18.6923C18.7692 5 18.8398 5.03208 18.9038 5.09625C18.9679 5.16025 19 5.23075 19 5.30775V18.6923C19 18.7692 18.9679 18.8398 18.9038 18.9038C18.8398 18.9679 18.7692 19 18.6923 19Z`,fill:`currentColor`}),I.createElement(`path`,{d:`M13 15H11.5V11L9.5 14L7.5 11V15H6V8H7.5L9.5 11L11.5 8H13V15Z`,fill:`currentColor`}),I.createElement(`path`,{d:`M15.9921 15.5833L13.2886 12.8797L14.0546 12.1137L15.4504 13.5016V7.99597L16.5336 7.99993V13.5016L17.9296 12.1137L18.6954 12.8797L15.9921 15.5833Z`,fill:`currentColor`})),open_in_new:I.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},I.createElement(`path`,{d:`M5.30775 20.5C4.80258 20.5 4.375 20.325 4.025 19.975C3.675 19.625 3.5 19.1974 3.5 18.6923V5.30775C3.5 4.80258 3.675 4.375 4.025 4.025C4.375 3.675 4.80258 3.5 5.30775 3.5H11.6152V5H5.30775C5.23075 5 5.16025 5.03208 5.09625 5.09625C5.03208 5.16025 5 5.23075 5 5.30775V18.6923C5 18.7692 5.03208 18.8398 5.09625 18.9038C5.16025 18.9679 5.23075 19 5.30775 19H18.6923C18.7692 19 18.8398 18.9679 18.9038 18.9038C18.9679 18.8398 19 18.7692 19 18.6923V12.3848H20.5V18.6923C20.5 19.1974 20.325 19.625 19.975 19.975C19.625 20.325 19.1974 20.5 18.6923 20.5H5.30775ZM9.71925 15.3345L8.6655 14.2808L17.9462 5H14V3.5H20.5V10H19V6.05375L9.71925 15.3345Z`,fill:`currentColor`})),link_off:I.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},I.createElement(`path`,{d:`M18.8843 16.1038L17.7498 14.9385C18.4228 14.7552 18.9661 14.3946 19.3796 13.8568C19.7931 13.319 19.9998 12.7 19.9998 12C19.9998 11.1604 19.705 10.444 19.1153 9.85105C18.5255 9.25805 17.8139 8.96155 16.9806 8.96155H13.1728V7.46155H16.9806C18.2293 7.46155 19.2947 7.90422 20.1768 8.78955C21.0588 9.67472 21.4998 10.7449 21.4998 12C21.4998 12.8859 21.262 13.6951 20.7863 14.4278C20.3107 15.1606 19.6767 15.7193 18.8843 16.1038ZM15.5806 12.75L14.0806 11.25H15.7306V12.75H15.5806ZM20.1461 22.2538L1.74609 3.8538L2.79984 2.80005L21.1998 21.2L20.1461 22.2538ZM10.8268 16.5386H7.03834C5.78318 16.5386 4.71301 16.0959 3.82784 15.2105C2.94251 14.3254 2.49984 13.2552 2.49984 12C2.49984 10.8885 2.85784 9.91322 3.57384 9.07405C4.28984 8.23505 5.18826 7.72838 6.26909 7.55405H6.49984L7.90759 8.96155H7.03834C6.19851 8.96155 5.48218 9.25805 4.88934 9.85105C4.29634 10.444 3.99984 11.1604 3.99984 12C3.99984 12.8397 4.29634 13.556 4.88934 14.149C5.48218 14.742 6.19851 15.0385 7.03834 15.0385H10.8268V16.5386ZM8.26909 12.75V11.25H10.2113L11.6863 12.75H8.26909Z`,fill:`currentColor`})),edit:I.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},I.createElement(`path`,{d:`M5 19H6.2615L16.498 8.7635L15.2365 7.502L5 17.7385V19ZM3.5 20.5V17.1155L16.6905 3.93075C16.8417 3.79342 17.0086 3.68733 17.1913 3.6125C17.3741 3.5375 17.5658 3.5 17.7663 3.5C17.9668 3.5 18.1609 3.53558 18.3488 3.60675C18.5367 3.67792 18.7032 3.79108 18.848 3.94625L20.0693 5.18275C20.2244 5.32758 20.335 5.49425 20.401 5.68275C20.467 5.87125 20.5 6.05975 20.5 6.24825C20.5 6.44942 20.4657 6.64133 20.397 6.824C20.3283 7.00683 20.2191 7.17383 20.0693 7.325L6.8845 20.5H3.5ZM15.8562 8.14375L15.2365 7.502L16.498 8.7635L15.8562 8.14375Z`,fill:`currentColor`})),content_copy:I.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},I.createElement(`path`,{d:`M9.05775 17.5C8.55258 17.5 8.125 17.325 7.775 16.975C7.425 16.625 7.25 16.1974 7.25 15.6923V4.30775C7.25 3.80258 7.425 3.375 7.775 3.025C8.125 2.675 8.55258 2.5 9.05775 2.5H17.4423C17.9474 2.5 18.375 2.675 18.725 3.025C19.075 3.375 19.25 3.80258 19.25 4.30775V15.6923C19.25 16.1974 19.075 16.625 18.725 16.975C18.375 17.325 17.9474 17.5 17.4423 17.5H9.05775ZM9.05775 16H17.4423C17.5192 16 17.5898 15.9679 17.6538 15.9038C17.7179 15.8398 17.75 15.7692 17.75 15.6923V4.30775C17.75 4.23075 17.7179 4.16025 17.6538 4.09625C17.5898 4.03208 17.5192 4 17.4423 4H9.05775C8.98075 4 8.91025 4.03208 8.84625 4.09625C8.78208 4.16025 8.75 4.23075 8.75 4.30775V15.6923C8.75 15.7692 8.78208 15.8398 8.84625 15.9038C8.91025 15.9679 8.98075 16 9.05775 16ZM5.55775 21C5.05258 21 4.625 20.825 4.275 20.475C3.925 20.125 3.75 19.6974 3.75 19.1923V6.30775H5.25V19.1923C5.25 19.2693 5.28208 19.3398 5.34625 19.4038C5.41025 19.4679 5.48075 19.5 5.55775 19.5H15.4423V21H5.55775Z`,fill:`currentColor`})),more_horiz:I.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},I.createElement(`path`,{d:`M6.23096 13.5C5.81846 13.5 5.46537 13.3531 5.17171 13.0592C4.87787 12.7656 4.73096 12.4125 4.73096 12C4.73096 11.5875 4.87787 11.2344 5.17171 10.9408C5.46537 10.6469 5.81846 10.5 6.23096 10.5C6.64346 10.5 6.99662 10.6469 7.29046 10.9408C7.58412 11.2344 7.73096 11.5875 7.73096 12C7.73096 12.4125 7.58412 12.7656 7.29046 13.0592C6.99662 13.3531 6.64346 13.5 6.23096 13.5ZM12.0002 13.5C11.5877 13.5 11.2346 13.3531 10.941 13.0592C10.6471 12.7656 10.5002 12.4125 10.5002 12C10.5002 11.5875 10.6471 11.2344 10.941 10.9408C11.2346 10.6469 11.5877 10.5 12.0002 10.5C12.4127 10.5 12.7658 10.6469 13.0595 10.9408C13.3533 11.2344 13.5002 11.5875 13.5002 12C13.5002 12.4125 13.3533 12.7656 13.0595 13.0592C12.7658 13.3531 12.4127 13.5 12.0002 13.5ZM17.7695 13.5C17.357 13.5 17.0038 13.3531 16.71 13.0592C16.4163 12.7656 16.2695 12.4125 16.2695 12C16.2695 11.5875 16.4163 11.2344 16.71 10.9408C17.0038 10.6469 17.357 10.5 17.7695 10.5C18.182 10.5 18.535 10.6469 18.8287 10.9408C19.1225 11.2344 19.2695 11.5875 19.2695 12C19.2695 12.4125 19.1225 12.7656 18.8287 13.0592C18.535 13.3531 18.182 13.5 17.7695 13.5Z`,fill:`currentColor`})),more_vert:I.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},I.createElement(`path`,{d:`M12 19.2692C11.5875 19.2692 11.2344 19.1223 10.9408 18.8285C10.6469 18.5348 10.5 18.1817 10.5 17.7692C10.5 17.3567 10.6469 17.0035 10.9408 16.7097C11.2344 16.416 11.5875 16.2692 12 16.2692C12.4125 16.2692 12.7656 16.416 13.0592 16.7097C13.3531 17.0035 13.5 17.3567 13.5 17.7692C13.5 18.1817 13.3531 18.5348 13.0592 18.8285C12.7656 19.1223 12.4125 19.2692 12 19.2692ZM12 13.5C11.5875 13.5 11.2344 13.353 10.9408 13.0592C10.6469 12.7655 10.5 12.4125 10.5 12C10.5 11.5875 10.6469 11.2344 10.9408 10.9407C11.2344 10.6469 11.5875 10.5 12 10.5C12.4125 10.5 12.7656 10.6469 13.0592 10.9407C13.3531 11.2344 13.5 11.5875 13.5 12C13.5 12.4125 13.3531 12.7655 13.0592 13.0592C12.7656 13.353 12.4125 13.5 12 13.5ZM12 7.73071C11.5875 7.73071 11.2344 7.58388 10.9408 7.29021C10.6469 6.99638 10.5 6.64321 10.5 6.23071C10.5 5.81821 10.6469 5.46513 10.9408 5.17146C11.2344 4.87763 11.5875 4.73071 12 4.73071C12.4125 4.73071 12.7656 4.87763 13.0592 5.17146C13.3531 5.46513 13.5 5.81821 13.5 6.23071C13.5 6.64321 13.3531 6.99638 13.0592 7.29021C12.7656 7.58388 12.4125 7.73071 12 7.73071Z`,fill:`currentColor`})),close:I.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},I.createElement(`path`,{d:`M6.39994 18.6538L5.34619 17.6L10.9462 12L5.34619 6.4L6.39994 5.34625L11.9999 10.9463L17.5999 5.34625L18.6537 6.4L13.0537 12L18.6537 17.6L17.5999 18.6538L11.9999 13.0538L6.39994 18.6538Z`,fill:`currentColor`})),settings:I.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},I.createElement(`path`,{d:`M9.69225 21.5L9.3115 18.4538C9.04367 18.3641 8.769 18.2385 8.4875 18.077C8.20617 17.9153 7.95459 17.7422 7.73275 17.5577L4.9115 18.75L2.604 14.75L5.04425 12.9058C5.02125 12.7571 5.00492 12.6077 4.99525 12.4578C4.98559 12.3078 4.98075 12.1583 4.98075 12.0095C4.98075 11.8673 4.98559 11.7228 4.99525 11.576C5.00492 11.4292 5.02125 11.2686 5.04425 11.0943L2.604 9.25L4.9115 5.26925L7.723 6.452C7.96417 6.261 8.22159 6.08633 8.49525 5.928C8.76892 5.76967 9.03784 5.64242 9.302 5.54625L9.69225 2.5H14.3078L14.6885 5.55575C14.9885 5.66475 15.2599 5.792 15.5028 5.9375C15.7458 6.083 15.991 6.2545 16.2385 6.452L19.0885 5.26925L21.396 9.25L18.9173 11.123C18.9531 11.2845 18.9727 11.4355 18.976 11.576C18.9792 11.7163 18.9808 11.8577 18.9808 12C18.9808 12.1358 18.9775 12.274 18.971 12.4145C18.9647 12.5548 18.9417 12.7154 18.902 12.8963L21.3615 14.75L19.0538 18.75L16.2385 17.548C15.991 17.7455 15.7384 17.9202 15.4808 18.072C15.2231 18.224 14.959 18.3481 14.6885 18.4443L14.3078 21.5H9.69225ZM11 20H12.9655L13.325 17.3212C13.8353 17.1879 14.3017 16.9985 14.724 16.753C15.1465 16.5073 15.5539 16.1916 15.9463 15.8057L18.4308 16.85L19.4155 15.15L17.2463 13.5155C17.3296 13.2565 17.3863 13.0026 17.4163 12.7537C17.4464 12.5051 17.4615 12.2538 17.4615 12C17.4615 11.7397 17.4464 11.4884 17.4163 11.2463C17.3863 11.0039 17.3296 10.7564 17.2463 10.5038L19.4345 8.85L18.45 7.15L15.9365 8.2095C15.6018 7.85183 15.2009 7.53583 14.7338 7.2615C14.2664 6.98717 13.7937 6.79292 13.3155 6.67875L13 4H11.0155L10.6845 6.66925C10.1743 6.78975 9.70325 6.97433 9.27125 7.223C8.83909 7.47183 8.42684 7.79233 8.0345 8.1845L5.55 7.15L4.5655 8.85L6.725 10.4595C6.64167 10.6968 6.58334 10.9437 6.55 11.2C6.51667 11.4563 6.5 11.7262 6.5 12.0095C6.5 12.2698 6.51667 12.525 6.55 12.775C6.58334 13.025 6.6385 13.2718 6.7155 13.5155L4.5655 15.15L5.55 16.85L8.025 15.8C8.4045 16.1897 8.81025 16.5089 9.24225 16.7578C9.67442 17.0064 10.152 17.1974 10.675 17.3307L11 20ZM12.0115 15C12.8435 15 13.5515 14.708 14.1355 14.124C14.7195 13.54 15.0115 12.832 15.0115 12C15.0115 11.168 14.7195 10.46 14.1355 9.876C13.5515 9.292 12.8435 9 12.0115 9C11.1692 9 10.4586 9.292 9.87975 9.876C9.30092 10.46 9.0115 11.168 9.0115 12C9.0115 12.832 9.30092 13.54 9.87975 14.124C10.4586 14.708 11.1692 15 12.0115 15Z`,fill:`currentColor`})),delete_big:I.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},I.createElement(`path`,{d:`M7.30775 20.5C6.80908 20.5 6.38308 20.3234 6.02975 19.9702C5.67658 19.6169 5.5 19.1909 5.5 18.6922V5.99998H4.5V4.49998H9V3.61548H15V4.49998H19.5V5.99998H18.5V18.6922C18.5 19.1974 18.325 19.625 17.975 19.975C17.625 20.325 17.1974 20.5 16.6923 20.5H7.30775ZM17 5.99998H7V18.6922C7 18.7821 7.02883 18.8558 7.0865 18.9135C7.14417 18.9711 7.21792 19 7.30775 19H16.6923C16.7692 19 16.8398 18.9679 16.9038 18.9037C16.9679 18.8397 17 18.7692 17 18.6922V5.99998ZM9.404 17H10.9037V7.99998H9.404V17ZM13.0962 17H14.596V7.99998H13.0962V17Z`,fill:`currentColor`})),delete_small:I.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},I.createElement(`path`,{d:`M7.30775 20.5C6.80908 20.5 6.38308 20.3234 6.02975 19.9702C5.67658 19.6169 5.5 19.1909 5.5 18.6922V5.99998H4.5V4.49998H9V3.61548H15V4.49998H19.5V5.99998H18.5V18.6922C18.5 19.1974 18.325 19.625 17.975 19.975C17.625 20.325 17.1974 20.5 16.6923 20.5H7.30775ZM17 5.99998H7V18.6922C7 18.7821 7.02883 18.8558 7.0865 18.9135C7.14417 18.9711 7.21792 19 7.30775 19H16.6923C16.7692 19 16.8398 18.9679 16.9038 18.9037C16.9679 18.8397 17 18.7692 17 18.6922V5.99998ZM9.404 17H10.9037V7.99998H9.404V17ZM13.0962 17H14.596V7.99998H13.0962V17Z`,fill:`currentColor`})),format_align_center:I.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},I.createElement(`path`,{d:`M3.5 20.5V19H20.5V20.5H3.5ZM7.5 16.625V15.125H16.5V16.625H7.5ZM3.5 12.75V11.25H20.5V12.75H3.5ZM7.5 8.875V7.375H16.5V8.875H7.5ZM3.5 5V3.5H20.5V5H3.5Z`,fill:`currentColor`})),format_align_left:I.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},I.createElement(`path`,{d:`M3.5 20.5V19H20.5V20.5H3.5ZM3.5 16.625V15.125H14.5V16.625H3.5ZM3.5 12.75V11.25H20.5V12.75H3.5ZM3.5 8.875V7.375H14.5V8.875H3.5ZM3.5 5V3.5H20.5V5H3.5Z`,fill:`currentColor`})),format_align_right:I.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},I.createElement(`path`,{d:`M3.5 5V3.5H20.5V5H3.5ZM9.5 8.875V7.375H20.5V8.875H9.5ZM3.5 12.75V11.25H20.5V12.75H3.5ZM9.5 16.625V15.125H20.5V16.625H9.5ZM3.5 20.5V19H20.5V20.5H3.5Z`,fill:`currentColor`})),add_row:I.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},I.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M4.025 10.2077C4.375 9.85775 4.80258 9.68275 5.30775 9.68275H6.5V11.1827H5.30775C5.21792 11.1827 5.14417 11.2116 5.0865 11.2693C5.02883 11.3269 5 11.4007 5 11.4905V16.1923C5 16.2821 5.02883 16.3558 5.0865 16.4135C5.14417 16.4712 5.21792 16.5 5.30775 16.5H18.6923C18.7821 16.5 18.8558 16.4712 18.9135 16.4135C18.9712 16.3558 19 16.2821 19 16.1923V11.4905C19 11.4007 18.9712 11.3269 18.9135 11.2693C18.8558 11.2116 18.7821 11.1827 18.6923 11.1827H17.6923V9.68275H18.6923C19.1974 9.68275 19.625 9.85775 19.975 10.2077C20.325 10.5577 20.5 10.9853 20.5 11.4905V16.1923C20.5 16.6974 20.325 17.125 19.975 17.475C19.625 17.825 19.1974 18 18.6923 18H5.30775C4.80258 18 4.375 17.825 4.025 17.475C3.675 17.125 3.5 16.6974 3.5 16.1923V11.4905C3.5 10.9853 3.675 10.5577 4.025 10.2077Z`,fill:`currentColor`}),I.createElement(`path`,{d:`M11.3848 9.68275V7.5H12.8848V9.68275H15V11.1827H12.8848V13.2307H11.3848V11.1827H9.26925V9.68275H11.3848Z`,fill:`currentColor`})),add_column:I.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},I.createElement(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M9.70775 4.025C9.35775 4.375 9.18275 4.80258 9.18275 5.30775V6.5H10.6827V5.30775C10.6827 5.21792 10.7116 5.14417 10.7693 5.0865C10.8269 5.02883 10.9007 5 10.9905 5H15.6923C15.7821 5 15.8558 5.02883 15.9135 5.0865C15.9712 5.14417 16 5.21792 16 5.30775V18.6923C16 18.7821 15.9712 18.8558 15.9135 18.9135C15.8558 18.9712 15.7821 19 15.6923 19H10.9905C10.9007 19 10.8269 18.9712 10.7693 18.9135C10.7116 18.8558 10.6827 18.7821 10.6827 18.6923V17.6923H9.18275V18.6923C9.18275 19.1974 9.35775 19.625 9.70775 19.975C10.0577 20.325 10.4853 20.5 10.9905 20.5H15.6923C16.1974 20.5 16.625 20.325 16.975 19.975C17.325 19.625 17.5 19.1974 17.5 18.6923V5.30775C17.5 4.80258 17.325 4.375 16.975 4.025C16.625 3.675 16.1974 3.5 15.6923 3.5H10.9905C10.4853 3.5 10.0577 3.675 9.70775 4.025Z`,fill:`currentColor`}),I.createElement(`path`,{d:`M9.18275 11.3848H7V12.8848H9.18275V15H10.6827V12.8848H12.7307V11.3848H10.6827V9.26925H9.18275V11.3848Z`,fill:`currentColor`})),insert_col_left:I.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},I.createElement(`path`,{d:`M13.0001 20.1152H8.67713H8.75388H8.69238H13.0001ZM7.19238 19.8075C7.19238 20.3127 7.36738 20.7402 7.71738 21.0902C8.06738 21.4402 8.49497 21.6152 9.00013 21.6152H12.6924C13.1975 21.6152 13.6251 21.4402 13.9751 21.0902C14.3251 20.7402 14.5001 20.3127 14.5001 19.8075V10.423H13.0001V19.8075C13.0001 19.8973 12.9713 19.9711 12.9136 20.0287C12.856 20.0864 12.7822 20.1152 12.6924 20.1152H9.00013C8.9103 20.1152 8.83655 20.0864 8.77888 20.0287C8.72122 19.9711 8.69238 19.8973 8.69238 19.8075V4.69223C8.26422 4.74357 7.90722 4.93299 7.62138 5.26048C7.33538 5.58798 7.19238 5.97548 7.19238 6.42298V19.8075ZM13.0001 2.49998V4.61523H10.8846V6.11523H13.0001V8.23073H14.5001V6.11523H16.6154V4.61523H14.5001V2.49998H13.0001Z`,fill:`currentColor`})),insert_row_above:I.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},I.createElement(`path`,{d:`M20.1152 9.99987V14.3229V14.2461V14.3076V9.99987ZM19.8075 15.8076C20.3127 15.8076 20.7402 15.6326 21.0902 15.2826C21.4402 14.9326 21.6152 14.505 21.6152 13.9999V10.3076C21.6152 9.80245 21.4402 9.37487 21.0902 9.02487C20.7402 8.67487 20.3127 8.49987 19.8075 8.49987H10.423V9.99987H19.8075C19.8973 9.99987 19.9711 10.0287 20.0287 10.0864C20.0864 10.144 20.1152 10.2178 20.1152 10.3076V13.9999C20.1152 14.0897 20.0864 14.1635 20.0287 14.2211C19.9711 14.2788 19.8973 14.3076 19.8075 14.3076H4.69223C4.74357 14.7358 4.93299 15.0928 5.26048 15.3786C5.58798 15.6646 5.97548 15.8076 6.42298 15.8076H19.8075ZM2.49998 9.99987H4.61523V12.1154H6.11523V9.99987H8.23073V8.49987H6.11523V6.38462H4.61523V8.49987H2.49998V9.99987Z`,fill:`currentColor`})),insert_row_below:I.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},I.createElement(`path`,{d:`M20.1152 14.1924V9.86939V9.94614V9.88464V14.1924ZM19.8075 8.38464C20.3127 8.38464 20.7402 8.55964 21.0902 8.90964C21.4402 9.25964 21.6152 9.68723 21.6152 10.1924V13.8846C21.6152 14.3898 21.4402 14.8174 21.0902 15.1674C20.7402 15.5174 20.3127 15.6924 19.8075 15.6924H10.423V14.1924H19.8075C19.8973 14.1924 19.9711 14.1636 20.0287 14.1059C20.0864 14.0482 20.1152 13.9745 20.1152 13.8846V10.1924C20.1152 10.1026 20.0864 10.0288 20.0287 9.97114C19.9711 9.91348 19.8973 9.88464 19.8075 9.88464H4.69223C4.74357 9.45648 4.93299 9.09948 5.26048 8.81364C5.58798 8.52764 5.97548 8.38464 6.42298 8.38464H19.8075ZM2.49998 14.1924H4.61523V12.0769H6.11523V14.1924H8.23073V15.6924H6.11523V17.8076H4.61523V15.6924H2.49998V14.1924Z`,fill:`currentColor`})),insert_col_right:I.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},I.createElement(`path`,{d:`M10.8075 20.1152H15.1305H15.0537H15.1152H10.8075ZM16.6152 19.8075C16.6152 20.3127 16.4402 20.7402 16.0902 21.0902C15.7402 21.4402 15.3127 21.6152 14.8075 21.6152H11.1152C10.6101 21.6152 10.1825 21.4402 9.83248 21.0902C9.48248 20.7402 9.30748 20.3127 9.30748 19.8075V10.423H10.8075V19.8075C10.8075 19.8973 10.8363 19.9711 10.894 20.0287C10.9517 20.0864 11.0254 20.1152 11.1152 20.1152H14.8075C14.8973 20.1152 14.9711 20.0864 15.0287 20.0287C15.0864 19.9711 15.1152 19.8973 15.1152 19.8075V4.69223C15.5434 4.74357 15.9004 4.93299 16.1862 5.26048C16.4722 5.58798 16.6152 5.97548 16.6152 6.42298V19.8075ZM10.8075 2.49998V4.61523H12.923V6.11523H10.8075V8.23073H9.30748V6.11523H7.19223V4.61523H9.30748V2.49998H10.8075Z`,fill:`currentColor`})),check:I.createElement(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},I.createElement(`path`,{d:`M9.54983 17.6537L4.21533 12.3192L5.28433 11.25L9.54983 15.5155L18.7153 6.34998L19.7843 7.41923L9.54983 17.6537Z`,fill:`currentColor`}))},q={editorRoot:`_editorRoot_1e2ox_53`,editorWrapper:`_editorWrapper_1e2ox_155`,toolbarRoot:`_toolbarRoot_1e2ox_162`,readOnlyToolbarRoot:`_readOnlyToolbarRoot_1e2ox_189`,toolbarToggleItem:`_toolbarToggleItem_1e2ox_208`,toolbarGroupOfGroups:`_toolbarGroupOfGroups_1e2ox_219`,toolbarToggleSingleGroup:`_toolbarToggleSingleGroup_1e2ox_224`,toolbarButton:`_toolbarButton_1e2ox_239`,activeToolbarButton:`_activeToolbarButton_1e2ox_275`,toolbarButtonDropdownContainer:`_toolbarButtonDropdownContainer_1e2ox_286`,selectContainer:`_selectContainer_1e2ox_288`,selectItem:`_selectItem_1e2ox_301`,toolbarButtonSelectTrigger:`_toolbarButtonSelectTrigger_1e2ox_307`,selectTrigger:`_selectTrigger_1e2ox_308`,selectDropdownArrow:`_selectDropdownArrow_1e2ox_374`,contentEditable:`_contentEditable_1e2ox_380`,codeMirrorWrapper:`_codeMirrorWrapper_1e2ox_392`,sandPackWrapper:`_sandPackWrapper_1e2ox_401`,codeMirrorToolbar:`_codeMirrorToolbar_1e2ox_409`,propertyPanelTitle:`_propertyPanelTitle_1e2ox_431`,propertyEditorTable:`_propertyEditorTable_1e2ox_439`,iconButton:`_iconButton_1e2ox_457`,readOnlyColumnCell:`_readOnlyColumnCell_1e2ox_462`,buttonsFooter:`_buttonsFooter_1e2ox_475`,propertyEditorInput:`_propertyEditorInput_1e2ox_481`,primaryButton:`_primaryButton_1e2ox_507`,secondaryButton:`_secondaryButton_1e2ox_508`,smallButton:`_smallButton_1e2ox_523`,dialogForm:`_dialogForm_1e2ox_535`,linkDialogEditForm:`_linkDialogEditForm_1e2ox_541`,linkDialogInputContainer:`_linkDialogInputContainer_1e2ox_549`,linkDialogInputWrapper:`_linkDialogInputWrapper_1e2ox_555`,linkDialogInput:`_linkDialogInput_1e2ox_549`,linkDialogAnchor:`_linkDialogAnchor_1e2ox_587`,linkDialogPopoverContent:`_linkDialogPopoverContent_1e2ox_601`,tableColumnEditorPopoverContent:`_tableColumnEditorPopoverContent_1e2ox_602`,dialogContent:`_dialogContent_1e2ox_603`,largeDialogContent:`_largeDialogContent_1e2ox_615`,dialogTitle:`_dialogTitle_1e2ox_625`,dialogCloseButton:`_dialogCloseButton_1e2ox_631`,popoverContent:`_popoverContent_1e2ox_638`,popoverArrow:`_popoverArrow_1e2ox_650`,linkDialogPreviewAnchor:`_linkDialogPreviewAnchor_1e2ox_654`,tooltipTrigger:`_tooltipTrigger_1e2ox_677`,tooltipContent:`_tooltipContent_1e2ox_681`,actionButton:`_actionButton_1e2ox_695`,primaryActionButton:`_primaryActionButton_1e2ox_702`,tableEditor:`_tableEditor_1e2ox_714`,toolCell:`_toolCell_1e2ox_725`,tableColumnEditorTrigger:`_tableColumnEditorTrigger_1e2ox_744`,addRowButton:`_addRowButton_1e2ox_746`,addColumnButton:`_addColumnButton_1e2ox_747`,tableColumnEditorToolbar:`_tableColumnEditorToolbar_1e2ox_789`,toggleGroupRoot:`_toggleGroupRoot_1e2ox_802`,tableToolsColumn:`_tableToolsColumn_1e2ox_820`,leftAlignedCell:`_leftAlignedCell_1e2ox_829`,rightAlignedCell:`_rightAlignedCell_1e2ox_833`,centeredCell:`_centeredCell_1e2ox_837`,dialogOverlay:`_dialogOverlay_1e2ox_870`,focusedImage:`_focusedImage_1e2ox_916`,imageWrapper:`_imageWrapper_1e2ox_920`,editImageToolbar:`_editImageToolbar_1e2ox_933`,editImageButton:`_editImageButton_1e2ox_937`,inlineEditor:`_inlineEditor_1e2ox_943`,blockEditor:`_blockEditor_1e2ox_952`,nestedEditor:`_nestedEditor_1e2ox_961`,genericComponentName:`_genericComponentName_1e2ox_980`,diffSourceToggleWrapper:`_diffSourceToggleWrapper_1e2ox_986`,ggDiffSourceToggle:`_ggDiffSourceToggle_1e2ox_994`,diffSourceToggle:`_diffSourceToggle_1e2ox_986`,selectWithLabel:`_selectWithLabel_1e2ox_1012`,toolbarTitleMode:`_toolbarTitleMode_1e2ox_1027`,imageControlWrapperResizing:`_imageControlWrapperResizing_1e2ox_1032`,imageResizer:`_imageResizer_1e2ox_1036`,imageResizerN:`_imageResizerN_1e2ox_1045`,imageResizerNe:`_imageResizerNe_1e2ox_1051`,imageResizerE:`_imageResizerE_1e2ox_1057`,imageResizerSe:`_imageResizerSe_1e2ox_1063`,imageResizerS:`_imageResizerS_1e2ox_1063`,imageResizerSw:`_imageResizerSw_1e2ox_1075`,imageResizerW:`_imageResizerW_1e2ox_1081`,imageResizerNw:`_imageResizerNw_1e2ox_1087`,imagePlaceholder:`_imagePlaceholder_1e2ox_1093`,imageDimensionsContainer:`_imageDimensionsContainer_1e2ox_1101`,placeholder:`_placeholder_1e2ox_1106`,rootContentEditableWrapper:`_rootContentEditableWrapper_1e2ox_1119`,downshiftInputWrapper:`_downshiftInputWrapper_1e2ox_1129`,downshiftInput:`_downshiftInput_1e2ox_1129`,downshiftAutocompleteContainer:`_downshiftAutocompleteContainer_1e2ox_1160`,textInput:`_textInput_1e2ox_1206`,multiFieldForm:`_multiFieldForm_1e2ox_1214`,formField:`_formField_1e2ox_1220`,markdownParseError:`_markdownParseError_1e2ox_1231`,popupContainer:`_popupContainer_1e2ox_1240`,inputSizer:`_inputSizer_1e2ox_1245`},TS=new Set([`http:`,`https:`,`mailto:`,`sms:`,`tel:`]),ES=class e extends Es{static getType(){return`link`}static clone(t){return new e(t.__url,{rel:t.__rel,target:t.__target,title:t.__title},t.__key)}constructor(e=``,t={},n){super(n);let{target:r=null,rel:i=null,title:a=null}=t;this.__url=e,this.__target=r,this.__rel=i,this.__title=a}createDOM(e){let t=document.createElement(`a`);return this.updateLinkDOM(null,t,e),Zu(t,e.theme.link),t}updateLinkDOM(e,t,n){if(dl(t)){e&&e.__url===this.__url||(t.href=this.sanitizeUrl(this.__url));for(let n of[`target`,`rel`,`title`]){let r=`__${n}`,i=this[r];e&&e[r]===i||(i?t[n]=i:t.removeAttribute(n))}}}updateDOM(e,t,n){return this.updateLinkDOM(e,t,n),!1}static importDOM(){return{a:e=>({conversion:DS,priority:1})}}static importJSON(e){return OS().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setURL(e.url).setRel(e.rel||null).setTarget(e.target||null).setTitle(e.title||null)}sanitizeUrl(e){e=RS(e);try{let t=new URL(RS(e));if(!TS.has(t.protocol))return`about:blank`}catch{return e}return e}exportJSON(){return{...super.exportJSON(),rel:this.getRel(),target:this.getTarget(),title:this.getTitle(),url:this.getURL()}}getURL(){return this.getLatest().__url}setURL(e){let t=this.getWritable();return t.__url=e,t}getTarget(){return this.getLatest().__target}setTarget(e){let t=this.getWritable();return t.__target=e,t}getRel(){return this.getLatest().__rel}setRel(e){let t=this.getWritable();return t.__rel=e,t}getTitle(){return this.getLatest().__title}setTitle(e){let t=this.getWritable();return t.__title=e,t}insertNewAfter(e,t=!0){let n=OS(this.__url,{rel:this.__rel,target:this.__target,title:this.__title});return this.insertAfter(n,t),n}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canBeEmpty(){return!1}isInline(){return!0}extractWithChild(e,t,n){if(!H(t))return!1;let r=t.anchor.getNode(),i=t.focus.getNode();return this.isParentOf(r)&&this.isParentOf(i)&&t.getTextContent().length>0}isEmailURI(){return this.__url.startsWith(`mailto:`)}isWebSiteURI(){return this.__url.startsWith(`https://`)||this.__url.startsWith(`http://`)}};function DS(e){let t=null;if(dl(e)){let n=e.textContent;(n!==null&&n!==``||e.children.length>0)&&(t=OS(e.getAttribute(`href`)||``,{rel:e.getAttribute(`rel`),target:e.getAttribute(`target`),title:e.getAttribute(`title`)}))}return{node:t}}function OS(e=``,t){return il(new ES(e,t))}function kS(e){return e instanceof ES}var AS=class e extends ES{constructor(e=``,t={},n){super(e,t,n),this.__isUnlinked=t.isUnlinked!==void 0&&t.isUnlinked!==null&&t.isUnlinked}static getType(){return`autolink`}static clone(t){return new e(t.__url,{isUnlinked:t.__isUnlinked,rel:t.__rel,target:t.__target,title:t.__title},t.__key)}getIsUnlinked(){return this.__isUnlinked}setIsUnlinked(e){let t=this.getWritable();return t.__isUnlinked=e,t}createDOM(e){return this.__isUnlinked?document.createElement(`span`):super.createDOM(e)}updateDOM(e,t,n){return super.updateDOM(e,t,n)||e.__isUnlinked!==this.__isUnlinked}static importJSON(e){return jS().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setIsUnlinked(e.isUnlinked||!1)}static importDOM(){return null}exportJSON(){return{...super.exportJSON(),isUnlinked:this.__isUnlinked}}insertNewAfter(e,t=!0){let n=this.getParentOrThrow().insertNewAfter(e,t);if(W(n)){let e=jS(this.__url,{isUnlinked:this.__isUnlinked,rel:this.__rel,target:this.__target,title:this.__title});return n.append(e),e}return null}};function jS(e=``,t){return il(new AS(e,t))}function MS(e){return e instanceof AS}var NS=B(`TOGGLE_LINK_COMMAND`);function PS(e,t){if(e.type===`element`){let n=e.getNode();return W(n)||function(e,...t){let n=new URL(`https://lexical.dev/docs/error`),r=new URLSearchParams;r.append(`code`,e);for(let e of t)r.append(`v`,e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(252),n.getChildren()[e.offset+t]||null}return null}function FS(e,t={}){let{target:n,title:r}=t,i=t.rel===void 0?`noreferrer`:t.rel,a=U();if(a===null||!H(a)&&!Oo(a))return;if(Oo(a)){let t=a.getNodes();if(t.length===0)return;t.forEach((t=>{if(e===null){let e=nd(t,(e=>!MS(e)&&kS(e)));e&&(e.insertBefore(t),e.getChildren().length===0&&e.remove())}else{let r=nd(t,(e=>!MS(e)&&kS(e)));if(r)r.setURL(e),n!==void 0&&r.setTarget(n),i!==void 0&&r.setRel(i);else{let r=OS(e,{rel:i,target:n});t.insertBefore(r),r.append(t)}}}));return}let o=a.extract();if(e===null)return void o.forEach((e=>{let t=nd(e,(e=>!MS(e)&&kS(e)));if(t){let e=t.getChildren();for(let n=0;n<e.length;n++)t.insertBefore(e[n]);t.remove()}}));let s=new Set,c=t=>{s.has(t.getKey())||(s.add(t.getKey()),t.setURL(e),n!==void 0&&t.setTarget(n),i!==void 0&&t.setRel(i),r!==void 0&&t.setTitle(r))};if(o.length===1){let e=IS(o[0],kS);if(e!==null)return c(e)}(function(e){let t=U();if(!H(t))return e();let n=Gr(t),r=n.isBackward(),i=PS(n.anchor,r?-1:0),a=PS(n.focus,r?0:-1);if(e(),i||a){let e=U();if(H(e)){let t=e.clone();if(i){let e=i.getParent();e&&t.anchor.set(e.getKey(),i.getIndexWithinParent()+ +!!r,`element`)}if(a){let e=a.getParent();e&&t.focus.set(e.getKey(),a.getIndexWithinParent()+ +!r,`element`)}wc(Gr(t))}}})((()=>{let t=null;for(let a of o){if(!a.isAttached())continue;let o=IS(a,kS);if(o){c(o);continue}if(W(a)){if(!a.isInline())continue;if(kS(a)){if(!(MS(a)||t!==null&&t.getParentOrThrow().isParentOf(a))){c(a),t=a;continue}for(let e of a.getChildren())a.insertBefore(e);a.remove();continue}}let s=a.getPreviousSibling();kS(s)&&s.is(t)?s.append(a):(t=OS(e,{rel:i,target:n,title:r}),a.insertAfter(t),t.append(a))}}))}function IS(e,t){let n=e;for(;n!==null&&n.getParent()!==null&&!t(n);)n=n.getParentOrThrow();return t(n)?n:null}var LS=/^\+?[0-9\s()-]{5,}$/;function RS(e){return e.match(/^[a-z][a-z0-9+.-]*:/i)||e.match(/^[/#.]/)?e:e.includes(`@`)?`mailto:${e}`:LS.test(e)?`tel:${e}`:`https://${e}`}function zS(e,...t){let n=new URL(`https://lexical.dev/docs/error`),r=new URLSearchParams;r.append(`code`,e);for(let e of t)r.append(`v`,e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function BS(e){let t=1,n=e.getParent();for(;n!=null;){if(oC(n)){let e=n.getParent();if(pC(e)){t++,n=e.getParent();continue}zS(40)}return t}return t}function VS(e){let t=e.getParent();pC(t)||zS(40);let n=t;for(;n!==null;)n=n.getParent(),pC(n)&&(t=n);return t}function HS(e){let t=[],n=e.getChildren().filter(oC);for(let e=0;e<n.length;e++){let r=n[e],i=r.getFirstChild();pC(i)?t=t.concat(HS(i)):t.push(r)}return t}function US(e){return oC(e)&&pC(e.getFirstChild())}function WS(e){return aC().append(e)}function GS(e,t){return oC(e)&&(t.length===0||t.length===1&&e.is(t[0])&&e.getChildrenSize()===0)}function KS(e){let t=U();if(t!==null){let n=t.getNodes();if(H(t)){let r=t.getStartEndPoints();r===null&&zS(143);let[i]=r,a=i.getNode(),o=a.getParent();if(nl(a)){let e=a.getFirstChild();if(e)n=e.selectStart().getNodes();else{let e=Vs();a.append(e),n=e.select().getNodes()}}else if(GS(a,n)){let t=fC(e);if(nl(o)){a.replace(t);let e=aC();W(a)&&(e.setFormat(a.getFormatType()),e.setIndent(a.getIndent())),t.append(e)}else if(oC(a)){let e=a.getParentOrThrow();qS(t,e.getChildren()),e.replace(t)}return}}let r=new Set;for(let t=0;t<n.length;t++){let i=n[t];if(W(i)&&i.isEmpty()&&!oC(i)&&!r.has(i.getKey())){JS(i,e);continue}let a=uc(i)?i.getParent():oC(i)&&i.isEmpty()?i:null;for(;a!=null;){let t=a.getKey();if(pC(a)){if(!r.has(t)){let n=fC(e);qS(n,a.getChildren()),a.replace(n),r.add(t)}break}{let n=a.getParent();if(nl(n)&&!r.has(t)){r.add(t),JS(a,e);break}a=n}}}}}function qS(e,t){e.splice(e.getChildrenSize(),0,t)}function JS(e,t){if(pC(e))return e;let n=e.getPreviousSibling(),r=e.getNextSibling(),i=aC(),a;if(qS(i,e.getChildren()),pC(n)&&t===n.getListType())n.append(i),pC(r)&&t===r.getListType()&&(qS(n,r.getChildren()),r.remove()),a=n;else if(pC(r)&&t===r.getListType())r.getFirstChildOrThrow().insertBefore(i),a=r;else{let n=fC(t);n.append(i),e.replace(n),a=n}return i.setFormat(e.getFormatType()),i.setIndent(e.getIndent()),e.remove(),a}function YS(e,t){let n=e.getLastChild(),r=t.getFirstChild();n&&r&&US(n)&&US(r)&&(YS(n.getFirstChild(),r.getFirstChild()),r.remove());let i=t.getChildren();i.length>0&&e.append(...i),t.remove()}function XS(){let e=U();if(H(e)){let t=new Set,n=e.getNodes(),r=e.anchor.getNode();if(GS(r,n))t.add(VS(r));else for(let e=0;e<n.length;e++){let r=n[e];if(uc(r)){let e=ed(r,nC);e!=null&&t.add(VS(e))}}for(let n of t){let t=n,r=HS(n);for(let n of r){let r=Vs().setTextStyle(e.style).setTextFormat(e.format);qS(r,n.getChildren()),t.insertAfter(r),t=r,n.__key===e.anchor.key&&cu(e.anchor,gu(ql(r,`next`))),n.__key===e.focus.key&&cu(e.focus,gu(ql(r,`next`))),n.remove()}n.remove()}}}function ZS(e){let t=e.getListType()!==`check`,n=e.getStart();for(let r of e.getChildren())oC(r)&&(r.getValue()!==n&&r.setValue(n),t&&r.getLatest().__checked!=null&&r.setChecked(void 0),pC(r.getFirstChild())||n++)}function QS(e){let t=new Set;if(US(e)||t.has(e.getKey()))return;let n=e.getParent(),r=e.getNextSibling(),i=e.getPreviousSibling();if(US(r)&&US(i)){let n=i.getFirstChild();if(pC(n)){n.append(e);let i=r.getFirstChild();pC(i)&&(qS(n,i.getChildren()),r.remove(),t.add(r.getKey()))}}else if(US(r)){let t=r.getFirstChild();if(pC(t)){let n=t.getFirstChild();n!==null&&n.insertBefore(e)}}else if(US(i)){let t=i.getFirstChild();pC(t)&&t.append(e)}else if(pC(n)){let t=aC().setTextFormat(e.getTextFormat()).setTextStyle(e.getTextStyle()),a=fC(n.getListType()).setTextFormat(n.getTextFormat()).setTextStyle(n.getTextStyle());t.append(a),a.append(e),i?i.insertAfter(t):r?r.insertBefore(t):n.append(t)}}function $S(e){if(US(e))return;let t=e.getParent(),n=t?t.getParent():void 0;if(pC(n?n.getParent():void 0)&&oC(n)&&pC(t)){let r=t?t.getFirstChild():void 0,i=t?t.getLastChild():void 0;if(e.is(r))n.insertBefore(e),t.isEmpty()&&n.remove();else if(e.is(i))n.insertAfter(e),t.isEmpty()&&n.remove();else{let r=t.getListType(),i=aC(),a=fC(r);i.append(a),e.getPreviousSiblings().forEach((e=>a.append(e)));let o=aC(),s=fC(r);o.append(s),qS(s,e.getNextSiblings()),n.insertBefore(i),n.insertAfter(o),n.replace(e)}}}function eC(){let e=U();if(!H(e)||!e.isCollapsed())return!1;let t=e.anchor.getNode();if(!oC(t)||t.getChildrenSize()!==0)return!1;let n=VS(t),r=t.getParent();pC(r)||zS(40);let i=r.getParent(),a;if(nl(i))a=Vs(),n.insertAfter(a);else{if(!oC(i))return!1;a=aC(),i.insertAfter(a)}a.setTextStyle(e.style).setTextFormat(e.format).select();let o=t.getNextSiblings();if(o.length>0){let e=fC(r.getListType());if(oC(a)){let t=aC();t.append(e),a.insertAfter(t)}else a.insertAfter(e);e.append(...o)}return function(e){let t=e;for(;t.getNextSibling()==null&&t.getPreviousSibling()==null;){let e=t.getParent();if(e==null||!oC(e)&&!pC(e))break;t=e}t.remove()}(t),!0}function tC(...e){let t=[];for(let n of e)if(n&&typeof n==`string`)for(let[e]of n.matchAll(/\S+/g))t.push(e);return t}var nC=class extends Es{$config(){return this.config(`listitem`,{$transform:e=>{if(e.__checked==null)return;let t=e.getParent();pC(t)&&t.getListType()!==`check`&&e.getChecked()!=null&&e.setChecked(void 0)},extends:Es,importDOM:Ja({li:()=>({conversion:rC,priority:0})})})}constructor(e=1,t=void 0,n){super(n),this.__value=e===void 0?1:e,this.__checked=t}afterCloneFrom(e){super.afterCloneFrom(e),this.__value=e.__value,this.__checked=e.__checked}createDOM(e){let t=document.createElement(`li`);return this.updateListItemDOM(null,t,e),t}updateListItemDOM(e,t,n){let r=this.getParent();pC(r)&&r.getListType()===`check`&&function(e,t,n,r){pC(t.getFirstChild())?(e.removeAttribute(`role`),e.removeAttribute(`tabIndex`),e.removeAttribute(`aria-checked`)):(e.setAttribute(`role`,`checkbox`),e.setAttribute(`tabIndex`,`-1`),n&&t.__checked===n.__checked||e.setAttribute(`aria-checked`,t.getChecked()?`true`:`false`))}(t,this,e),t.value=this.__value,function(e,t,n){let r=[],i=[],a=t.list,o=a?a.listitem:void 0,s;if(a&&a.nested&&(s=a.nested.listitem),o!==void 0&&r.push(...tC(o)),a){let e=n.getParent(),t=pC(e)&&e.getListType()===`check`,o=n.getChecked();t&&!o||i.push(a.listitemUnchecked),t&&o||i.push(a.listitemChecked),t&&r.push(o?a.listitemChecked:a.listitemUnchecked)}if(s!==void 0){let e=tC(s);n.getChildren().some((e=>pC(e)))?r.push(...e):i.push(...e)}i.length>0&&Qu(e,...i),r.length>0&&Zu(e,...r)}(t,n.theme,this);let i=e?e.__style:``,a=this.__style;i!==a&&(a===``?t.removeAttribute(`style`):t.style.cssText=a),function(e,t,n){let r=Du(t.__textStyle);for(let t in r)e.style.setProperty(`--listitem-marker-${t}`,r[t]);if(n)for(let t in Du(n.__textStyle))t in r||e.style.removeProperty(`--listitem-marker-${t}`)}(t,this,e)}updateDOM(e,t,n){let r=t;return this.updateListItemDOM(e,r,n),!1}updateFromJSON(e){return super.updateFromJSON(e).setValue(e.value).setChecked(e.checked)}exportDOM(e){let t=this.createDOM(e._config),n=this.getFormatType();n&&(t.style.textAlign=n);let r=this.getDirection();return r&&(t.dir=r),{element:t}}exportJSON(){return{...super.exportJSON(),checked:this.getChecked(),value:this.getValue()}}append(...e){for(let t=0;t<e.length;t++){let n=e[t];if(W(n)&&this.canMergeWith(n)){let e=n.getChildren();this.append(...e),n.remove()}else super.append(n)}return this}replace(e,t){if(oC(e))return super.replace(e);this.setIndent(0);let n=this.getParentOrThrow();if(!pC(n))return e;if(n.__first===this.getKey())n.insertBefore(e);else if(n.__last===this.getKey())n.insertAfter(e);else{let t=fC(n.getListType()),r=this.getNextSibling();for(;r;){let e=r;r=r.getNextSibling(),t.append(e)}n.insertAfter(e),e.insertAfter(t)}return t&&(W(e)||zS(139),this.getChildren().forEach((t=>{e.append(t)}))),this.remove(),n.getChildrenSize()===0&&n.remove(),e}insertAfter(e,t=!0){let n=this.getParentOrThrow();if(pC(n)||zS(39),oC(e))return super.insertAfter(e,t);let r=this.getNextSiblings();if(n.insertAfter(e,t),r.length!==0){let i=fC(n.getListType());r.forEach((e=>i.append(e))),e.insertAfter(i,t)}return e}remove(e){let t=this.getPreviousSibling(),n=this.getNextSibling();super.remove(e),t&&n&&US(t)&&US(n)&&(YS(t.getFirstChild(),n.getFirstChild()),n.remove())}insertNewAfter(e,t=!0){let n=aC().updateFromJSON(this.exportJSON()).setChecked(!this.getChecked()&&void 0);return this.insertAfter(n,t),n}collapseAtStart(e){let t=Vs();this.getChildren().forEach((e=>t.append(e)));let n=this.getParentOrThrow(),r=n.getParentOrThrow(),i=oC(r);if(n.getChildrenSize()===1)if(i)n.remove(),r.select();else{n.insertBefore(t),n.remove();let r=e.anchor,i=e.focus,a=t.getKey();r.type===`element`&&r.getNode().is(this)&&r.set(a,r.offset,`element`),i.type===`element`&&i.getNode().is(this)&&i.set(a,i.offset,`element`)}else n.insertBefore(t),this.remove();return!0}getValue(){return this.getLatest().__value}setValue(e){let t=this.getWritable();return t.__value=e,t}getChecked(){let e=this.getLatest(),t,n=this.getParent();return pC(n)&&(t=n.getListType()),t===`check`?!!e.__checked:void 0}setChecked(e){let t=this.getWritable();return t.__checked=e,t}toggleChecked(){let e=this.getWritable();return e.setChecked(!e.__checked)}getIndent(){let e=this.getParent();if(e===null||!this.isAttached())return this.getLatest().__indent;let t=e.getParentOrThrow(),n=0;for(;oC(t);)t=t.getParentOrThrow().getParentOrThrow(),n++;return n}setIndent(e){typeof e!=`number`&&zS(117),(e=Math.floor(e))>=0||zS(199);let t=this.getIndent();for(;t!==e;)t<e?(QS(this),t++):($S(this),t--);return this}canInsertAfter(e){return oC(e)}canReplaceWith(e){return oC(e)}canMergeWith(e){return oC(e)||Hs(e)}extractWithChild(e,t){if(!H(t))return!1;let n=t.anchor.getNode(),r=t.focus.getNode();return this.isParentOf(n)&&this.isParentOf(r)&&this.getTextContent().length===t.getTextContent().length}isParentRequired(){return!0}createParentElementNode(){return fC(`bullet`)}canMergeWhenEmpty(){return!0}};function rC(e){if(e.classList.contains(`task-list-item`)){for(let t of e.children)if(t.tagName===`INPUT`)return iC(t)}let t=e.getAttribute(`aria-checked`);return{node:aC(t===`true`||t!==`false`&&void 0)}}function iC(e){return e.getAttribute(`type`)===`checkbox`?{node:aC(e.hasAttribute(`checked`))}:{node:null}}function aC(e){return il(new nC(void 0,e))}function oC(e){return e instanceof nC}var sC=class extends Es{$config(){return this.config(`list`,{$transform:e=>{(function(e){let t=e.getNextSibling();pC(t)&&e.getListType()===t.getListType()&&YS(e,t)})(e),ZS(e)},extends:Es,importDOM:Ja({ol:()=>({conversion:uC,priority:0}),ul:()=>({conversion:uC,priority:0})})})}constructor(e=`number`,t=1,n){super(n);let r=dC[e]||e;this.__listType=r,this.__tag=r===`number`?`ol`:`ul`,this.__start=t}afterCloneFrom(e){super.afterCloneFrom(e),this.__listType=e.__listType,this.__tag=e.__tag,this.__start=e.__start}getTag(){return this.getLatest().__tag}setListType(e){let t=this.getWritable();return t.__listType=e,t.__tag=e===`number`?`ol`:`ul`,t}getListType(){return this.getLatest().__listType}getStart(){return this.getLatest().__start}setStart(e){let t=this.getWritable();return t.__start=e,t}createDOM(e,t){let n=this.__tag,r=document.createElement(n);return this.__start!==1&&r.setAttribute(`start`,String(this.__start)),r.__lexicalListType=this.__listType,cC(r,e.theme,this),r}updateDOM(e,t,n){return e.__tag!==this.__tag||(cC(t,n.theme,this),!1)}updateFromJSON(e){return super.updateFromJSON(e).setListType(e.listType).setStart(e.start)}exportDOM(e){let t=this.createDOM(e._config,e);return fl(t)&&(this.__start!==1&&t.setAttribute(`start`,String(this.__start)),this.__listType===`check`&&t.setAttribute(`__lexicalListType`,`check`)),{element:t}}exportJSON(){return{...super.exportJSON(),listType:this.getListType(),start:this.getStart(),tag:this.getTag()}}canBeEmpty(){return!1}canIndent(){return!1}splice(e,t,n){let r=n;for(let e=0;e<n.length;e++){let t=n[e];oC(t)||(r===n&&(r=[...n]),r[e]=aC().append(!W(t)||pC(t)||t.isInline()?t:_o(t.getTextContent())))}return super.splice(e,t,r)}extractWithChild(e){return oC(e)}};function cC(e,t,n){let r=[],i=[],a=t.list;if(a!==void 0){let e=a[`${n.__tag}Depth`]||[],t=BS(n)-1,o=t%e.length,s=e[o],c=a[n.__tag],l,u=a.nested,d=a.checklist;if(u!==void 0&&u.list&&(l=u.list),c!==void 0&&r.push(c),d!==void 0&&n.__listType===`check`&&r.push(d),s!==void 0){r.push(...tC(s));for(let t=0;t<e.length;t++)t!==o&&i.push(n.__tag+t)}if(l!==void 0){let e=tC(l);t>1?r.push(...e):i.push(...e)}}i.length>0&&Qu(e,...i),r.length>0&&Zu(e,...r)}function lC(e){let t=[];for(let n=0;n<e.length;n++){let r=e[n];if(oC(r)){t.push(r);let e=r.getChildren();e.length>1&&e.forEach((e=>{pC(e)&&t.push(WS(e))}))}else t.push(WS(r))}return t}function uC(e){let t=e.nodeName.toLowerCase(),n=null;return t===`ol`?n=fC(`number`,e.start):t===`ul`&&(n=function(e){if(e.getAttribute(`__lexicallisttype`)===`check`||e.classList.contains(`contains-task-list`))return!0;for(let t of e.childNodes)if(fl(t)&&t.hasAttribute(`aria-checked`))return!0;return!1}(e)?fC(`check`):fC(`bullet`)),{after:lC,node:n}}var dC={ol:`number`,ul:`bullet`};function fC(e=`number`,t=1){return il(new sC(e,t))}function pC(e){return e instanceof sC}var mC=B(`INSERT_CHECK_LIST_COMMAND`);function hC(e){return Ju(e.registerCommand(mC,(()=>(KS(`check`),!0)),1),e.registerCommand(qi,(t=>bC(t,e,!1)),1),e.registerCommand(Ki,(t=>bC(t,e,!0)),1),e.registerCommand(Zi,(()=>yC()==null?!1:(e.getRootElement()?.focus(),!0)),1),e.registerCommand(Yi,(t=>{let n=yC();return!(n==null||!e.isEditable())&&(e.update((()=>{let e=yc(n);oC(e)&&(t.preventDefault(),e.toggleChecked())})),!0)}),1),e.registerCommand(Wi,(t=>e.getEditorState().read((()=>{let n=U();if(H(n)&&n.isCollapsed()){let{anchor:r}=n,i=r.type===`element`;if(i||r.offset===0){let n=r.getNode(),a=nd(n,(e=>W(e)&&!e.isInline()));if(oC(a)){let r=a.getParent();if(pC(r)&&r.getListType()===`check`&&(i||a.getFirstDescendant()===n)){let n=e.getElementByKey(a.__key);if(n!=null&&document.activeElement!==n)return n.focus(),t.preventDefault(),!0}}}}return!1}))),1),e.registerRootListener(((e,t)=>{e!==null&&(e.addEventListener(`click`,_C),e.addEventListener(`pointerdown`,vC)),t!==null&&(t.removeEventListener(`click`,_C),t.removeEventListener(`pointerdown`,vC))})))}function gC(e,t){let n=e.target;if(!fl(n))return;let r=n.firstChild;if(fl(r)&&(r.tagName===`UL`||r.tagName===`OL`))return;let i=n.parentNode;if(!i||i.__lexicalListType!==`check`)return;let a=n.getBoundingClientRect(),o=ld(n),s=e.clientX/o,c=window.getComputedStyle?window.getComputedStyle(n,`::before`):{width:`0px`},l=parseFloat(c.width),u=e.pointerType===`touch`?32:0;(n.dir===`rtl`?s<a.right+u&&s>a.right-l-u:s>a.left-u&&s<a.left+l+u)&&t()}function _C(e){gC(e,(()=>{if(fl(e.target)){let t=e.target,n=nc(t);n!=null&&n.isEditable()&&n.update((()=>{let e=yc(t);oC(e)&&(t.focus(),e.toggleChecked())}))}}))}function vC(e){gC(e,(()=>{e.preventDefault()}))}function yC(){let e=document.activeElement;return fl(e)&&e.tagName===`LI`&&e.parentNode!=null&&e.parentNode.__lexicalListType===`check`?e:null}function bC(e,t,n){let r=yC();return r!=null&&t.update((()=>{let i=yc(r);if(!oC(i))return;let a=function(e,t){let n=t?e.getPreviousSibling():e.getNextSibling(),r=e;for(;n==null&&oC(r);)r=r.getParentOrThrow().getParent(),r!=null&&(n=t?r.getPreviousSibling():r.getNextSibling());for(;oC(n);){let e=t?n.getLastChild():n.getFirstChild();if(!pC(e))return n;n=t?e.getLastChild():e.getFirstChild()}return null}(i,n);if(a!=null){a.selectStart();let n=t.getElementByKey(a.__key);n!=null&&(e.preventDefault(),setTimeout((()=>{n.focus()}),0))}})),!1}var xC=B(`UPDATE_LIST_START_COMMAND`),SC=B(`INSERT_UNORDERED_LIST_COMMAND`),CC=B(`INSERT_ORDERED_LIST_COMMAND`),wC=B(`REMOVE_LIST_COMMAND`);function TC(e){return Ju(e.registerCommand(CC,(()=>(KS(`number`),!0)),1),e.registerCommand(xC,(e=>{let{listNodeKey:t,newStart:n}=e,r=gc(t);return!!pC(r)&&(r.getListType()===`number`&&(r.setStart(n),ZS(r)),!0)}),1),e.registerCommand(SC,(()=>(KS(`bullet`),!0)),1),e.registerCommand(wC,(()=>(XS(),!0)),1),e.registerCommand(Mi,(()=>eC()),1),e.registerNodeTransform(nC,(e=>{let t=e.getFirstChild();if(t){if(V(t)){let n=t.getStyle(),r=t.getFormat();e.getTextStyle()!==n&&e.setTextStyle(n),e.getTextFormat()!==r&&e.setTextFormat(r)}}else{let t=U();H(t)&&(t.style!==e.getTextStyle()||t.format!==e.getTextFormat())&&t.isCollapsed()&&e.is(t.anchor.getNode())&&e.setTextStyle(t.style).setTextFormat(t.format)}})),e.registerNodeTransform(so,(e=>{let t=e.getParent();if(oC(t)&&e.is(t.getFirstChild())){let n=e.getStyle(),r=e.getFormat();n===t.getTextStyle()&&r===t.getTextFormat()||t.setTextStyle(n).setTextFormat(r)}})))}function EC(e){let t=e=>{let t=e.getParent();if(pC(e.getFirstChild())||!pC(t))return;let n=nd(e,(e=>oC(e)&&pC(e.getParent())&&oC(e.getPreviousSibling())));if(n===null&&e.getIndent()>0)e.setIndent(0);else if(oC(n)){let r=n.getPreviousSibling();if(oC(r)){let n=function(e){let t=e,n=t.getFirstChild();for(;pC(n);){let e=n.getLastChild();if(!oC(e))break;t=e,n=t.getFirstChild()}return t}(r).getParent();if(pC(n)){let r=BS(n);r+1<BS(t)&&e.setIndent(r)}}}};return e.registerNodeTransform(sC,(e=>{let n=[e];for(;n.length>0;){let e=n.shift();if(pC(e)){for(let r of e.getChildren())if(oC(r)){t(r);let e=r.getFirstChild();pC(e)&&n.push(e)}}}}))}function DC(e){try{let t=e.anchor,n=e.focus,r=e.anchor.getNode(),i=e.focus.getNode();return r===i?r:e.isBackward()?Mu(n)?r:i:Mu(t)?r:i}catch{return null}}var OC=[`transform`,`perspective`,`filter`,`backdrop-filter`,`contain`,`container-type`],kC=[`layout`,`paint`,`strict`,`content`];function AC(e){let t=e?.parentElement;for(;t;){let e=window.getComputedStyle(t),n=e.willChange.split(`,`).map(e=>e.trim()).some(e=>OC.includes(e));if(e.transform!==`none`||e.perspective!==`none`||e.filter!==`none`||e.backdropFilter!==`none`||kC.includes(e.contain)||e.containerType!==`normal`||e.contentVisibility===`auto`||n)return t;t=t.parentElement}return null}function jC(e){let t=U(),n=window.getSelection(),r=document.activeElement,i=e.getRootElement();if(t!==null&&n!==null&&i!==null&&i.contains(n.anchorNode)&&e.isEditable()){let e=n.getRangeAt(0),t;if(n.isCollapsed){let e=n.anchorNode;e?.nodeType==3&&(e=e.parentNode),t=e.getBoundingClientRect(),t.width=0}else if(n.anchorNode===i){let e=i;for(;e.firstElementChild!=null;)e=e.firstElementChild;t=e.getBoundingClientRect()}else t=e.getBoundingClientRect();let r=AC(i);if(r){let e=r.getBoundingClientRect();return{top:Math.round(t.top-e.top),left:Math.round(t.left-e.left),width:Math.round(t.width),height:Math.round(t.height)}}return{top:Math.round(t.top),left:Math.round(t.left),width:Math.round(t.width),height:Math.round(t.height)}}else if(r?.className!==`link-input`)return null;return null}function MC(e,t){let n=``;return e.getEditorState().read(()=>{let e=U();if(!e||!H(e)||e.isCollapsed())return;let t=e.getNodes();if(t.length===0)return;let r=new Set;t.forEach(e=>{let t=e;for(;t;){if(cf(t)||oC(t)||t.getType()===`paragraph`||t.getType()===`quote`){W(t)&&r.add(t);break}t=t.getParent()}});let i=r.size>0?Array.from(r):t;function a(e){if(cf(e)){let t=parseInt(e.getTag().replace(`h`,``)),n=e.getChildren().map(e=>a(e)).join(``);return`#`.repeat(t)+` `+n+`
|
|
80
|
-
|
|
81
|
-
`}else if(oC(e)){let t=e.getParent();return(t&&pC(t)&&t.getListType()===`number`?`1. `:`- `)+e.getChildren().map(e=>a(e)).join(``)+`
|
|
82
|
-
`}else if(pC(e))return e.getChildren().map(e=>a(e)).join(``)+`
|
|
83
|
-
`;else if(V(e)){let t=e.getTextContent(),n=e.getFormat();return n&16?`\`${t}\``:(n&1&&(t=`**${t}**`),n&2&&(t=`*${t}*`),n&4&&(t=`~~${t}~~`),t)}else if(kS(e)){let t=e.getURL(),n=e.getTitle(),r=e.getChildren().map(e=>a(e)).join(``);return n?`[${r}](${t} "${n}")`:`[${r}](${t})`}else if(W(e))return e.getChildren().map(e=>a(e)).join(``);return e.getTextContent()}n=i.map(e=>a(e)).join(``)}),n.trim()}var NC=mt(CS(),1),PC=({children:e})=>{let t=Cn(Ab),n=I.useMemo(()=>[t,In(null,Ob)],[t]);return I.createElement(Fn.Provider,{value:n},e)},FC=()=>{let e=Qx(),t=Tn(sx),n=Tn(vx),r=e=>{n(e),t(e?{current:e}:null)},[i,a,o,s,c,l,u]=wn(Mb,Nb,kx,jx,Fx,Fb,Nx);return I.createElement(I.Fragment,null,s.map((e,t)=>I.createElement(e,{key:t})),I.createElement(zC,{wrappers:c},I.createElement(`div`,{className:(0,NC.default)(q.rootContentEditableWrapper,`mdxeditor-root-contenteditable`)},I.createElement(xS,{contentEditable:I.createElement(`div`,{ref:r},I.createElement(sS,{className:(0,NC.default)(q.contentEditable,i),ariaLabel:e(`contentArea.editableMarkdown`,`editable markdown`),spellCheck:a})),placeholder:I.createElement(`div`,{className:(0,NC.default)(q.contentEditable,q.placeholder,i)},I.createElement(`p`,null,l)),ErrorBoundary:pS}))),o.map((e,t)=>I.createElement(e,{key:t})),u.map((e,t)=>I.createElement(e,{key:t})))},IC={listItemIndent:`one`},LC=e=>wS[e];function RC(e,t,n={}){let r=t;for(let[e,t]of Object.entries(n))r=r.replaceAll(`{{${e}}}`,String(t));return r}var zC=({wrappers:e,children:t})=>{if(e.length===0)return I.createElement(I.Fragment,null,t);let n=e[0];return I.createElement(n,null,I.createElement(zC,{wrappers:e.slice(1)},t))},BC=({children:e,className:t,overlayContainer:n})=>{let r=I.useRef(null),i=I.useRef(null),a=Tn(ax),o=Tn(ox);return I.useEffect(()=>{let e=document.createElement(`div`);return e.classList.add(`mdxeditor-popup-container`,q.editorRoot,q.popupContainer,...(t??``).trim().split(` `).filter(Boolean)),(n??document.body).appendChild(e),r.current=e,a(r),o(i),()=>{e.remove()}},[t,r,n,a,o]),I.createElement(`div`,{className:(0,NC.default)(`mdxeditor`,q.editorRoot,q.editorWrapper,t),ref:i},e)},VC=({mdxRef:e})=>{let t=Sn();return I.useImperativeHandle(e,()=>({getMarkdown:()=>{let e=t.getValue(Gx);return e===`source`||e===`diff`?t.getValue(Kx):t.getValue(Wb)},setMarkdown:e=>{t.pub(hx,e)},insertMarkdown:e=>{t.pub(gx,e)},focus:(e,n)=>{var r;(r=t.getValue(Ab))==null||r.focus(e,n)},getContentEditableHTML:()=>t.getValue(sx)?.current.innerHTML??``,getSelectionMarkdown:()=>{let e=t.getValue(Gx);if(e===`source`||e===`diff`)return``;let n=t.getValue(jb);return n?(t.getValue(Qb),t.getValue($b),t.getValue(ex),t.getValue(nx),t.getValue(tx),MC(n)):``}}),[t]),null},HC=I.forwardRef((e,t)=>I.createElement(Pn,{plugins:[Zx({contentEditableClassName:e.contentEditableClassName??``,spellCheck:e.spellCheck??!0,initialMarkdown:e.markdown,onChange:e.onChange??Mn,onBlur:e.onBlur??Mn,toMarkdownOptions:e.toMarkdownOptions??IC,autoFocus:e.autoFocus??!1,placeholder:e.placeholder??``,readOnly:!!e.readOnly,iconComponentFor:e.iconComponentFor??LC,suppressHtmlProcessing:e.suppressHtmlProcessing??!1,onError:e.onError??Mn,translation:e.translation??RC,trim:e.trim??!0,lexicalTheme:e.lexicalTheme,...`editorState`in e?{editorState:e.editorState}:{},suppressSharedHistory:e.suppressSharedHistory??!1,additionalLexicalNodes:e.additionalLexicalNodes??[],lexicalEditorNamespace:e.lexicalEditorNamespace??`MDXEditor`}),...e.plugins??[]]},I.createElement(BC,{className:e.className,overlayContainer:e.overlayContainer},I.createElement(PC,null,I.createElement(FC,null))),I.createElement(VC,{mdxRef:t}))),UC=typeof window<`u`&&window.document.createElement!==void 0,WC=UC&&(()=>{let e=navigator.userAgentData?.platform;return e?/mac/i.test(e):/Mac|iPod|iPhone|iPad/.test(navigator.userAgent)})();function GC(e,t){return WC?e:t}var KC={testLexicalNode:cf,visitLexicalNode:({lexicalNode:e,actions:t})=>{let n=parseInt(e.getTag()[1],10);t.addAndStepInto(`heading`,{depth:n})}},qC={testNode:`heading`,visitNode:function({mdastNode:e,actions:t}){t.addAndStepInto(sf(`h${e.depth}`))}},JC=[`Digit0`,`Digit1`,`Digit2`,`Digit3`,`Digit4`,`Digit5`,`Digit6`],YC=[1,2,3,4,5,6],XC={Digit1:1,Digit2:2,Digit3:3,Digit4:4,Digit5:5,Digit6:6},ZC=R(YC,e=>{e.pub(Ex,t=>t.registerCommand(Vi,n=>{let{code:r,ctrlKey:i,metaKey:a,altKey:o}=n;return JC.includes(r)&&GC(a,i)&&o?(n.preventDefault(),t.update(()=>{if(r===`Digit0`)e.pub(Ux,()=>Vs());else{let t=e.getValue(ZC),n=XC[r];t.includes(n)&&e.pub(Ux,()=>sf(`h${n}`))}}),!0):!1},1))}),QC=Nn({init(e){e.pubIn({[Jx]:`headings`,[lx]:qC,[cx]:nf,[fx]:KC})},update(e,t){e.pub(ZC,t?.allowedHeadingLevels??YC)}});function $C(e,t){return e.getEditorState().read((()=>{let e=gc(t);return e!==null&&e.isSelected()}))}function ew(e){let[t]=Ln(),[n,r]=(0,I.useState)((()=>$C(t,e)));return(0,I.useEffect)((()=>{let n=!0,i=t.registerUpdateListener((()=>{n&&r($C(t,e))}));return()=>{n=!1,i()}}),[t,e]),[n,(0,I.useCallback)((n=>{t.update((()=>{let t=U();Oo(t)||(t=Vo(),wc(t)),Oo(t)&&(n?t.add(e):t.delete(e))}))}),[t,e]),(0,I.useCallback)((()=>{t.update((()=>{let e=U();Oo(e)&&e.clear()}))}),[t])]}var tw=B(`INSERT_HORIZONTAL_RULE_COMMAND`);function nw({nodeKey:e}){let[t]=Ln(),[n,r,i]=ew(e);return(0,I.useEffect)((()=>Ju(t.registerCommand(ki,(a=>{let o=t.getElementByKey(e);return a.target===o&&(a.shiftKey||i(),r(!n),!0)}),1))),[i,t,n,e,r]),(0,I.useEffect)((()=>{let r=t.getElementByKey(e),i=t._config.theme.hrSelected??`selected`;r!==null&&(n?Zu(r,i):Qu(r,i))}),[t,n,e]),null}var rw=class e extends Os{static getType(){return`horizontalrule`}static clone(t){return new e(t.__key)}static importJSON(e){return aw().updateFromJSON(e)}static importDOM(){return{hr:()=>({conversion:iw,priority:0})}}exportDOM(){return{element:document.createElement(`hr`)}}createDOM(e){let t=document.createElement(`hr`);return Zu(t,e.theme.hr),t}getTextContent(){return`
|
|
84
|
-
`}isInline(){return!1}updateDOM(){return!1}decorate(){return(0,L.jsx)(nw,{nodeKey:this.__key})}};function iw(){return{node:aw()}}function aw(){return il(new rw)}function ow(e){return e instanceof rw}function sw(){let[e]=Ln();return(0,I.useEffect)((()=>e.registerCommand(tw,(e=>{let t=U();return H(t)?(t.focus.getNode()!==null&&rd(aw()),!0):!1}),0)),[e]),null}var cw={testLexicalNode:ow,visitLexicalNode({actions:e}){e.addAndStepInto(`thematicBreak`)}},lw={testNode:`thematicBreak`,visitNode({actions:e}){e.addAndStepInto(aw())}},uw=bn(e=>{e.sub(e.pipe(uw,Dn(jb)),([,e])=>{e?.dispatchCommand(tw,void 0)})}),dw=Nn({init(e){e.pubIn({[Jx]:`thematicBreak`,[lx]:lw,[cx]:rw,[fx]:cw,[Ax]:sw})}}),fw={testNode:`list`,visitNode:function({mdastNode:e,lexicalParent:t,actions:n}){let r=fC(e.children.some(e=>typeof e.checked==`boolean`)?`check`:e.ordered?`number`:`bullet`);if(oC(t)){let e=aC();e.append(r),t.insertAfter(e)}else t.append(r);n.visitChildren(e,r)}},pw={testNode:`listItem`,visitNode({mdastNode:e,actions:t,lexicalParent:n}){let r=n.getListType()===`check`?e.checked??!1:void 0;t.addAndStepInto(aC(r))}},mw={testLexicalNode:pC,visitLexicalNode:({lexicalNode:e,actions:t})=>{t.addAndStepInto(`list`,{ordered:e.getListType()===`number`,spread:!1})}},hw={testLexicalNode:oC,visitLexicalNode:({lexicalNode:e,mdastParent:t,actions:n})=>{let r=e.getChildren(),i=r[0];if(r.length===1&&pC(i)){let r=t.children.at(-1);r?n.visitChildren(e,r):n.visitChildren(i,t)}else{let r=e.getParent(),i=n.appendToParent(t,{type:`listItem`,checked:r.getListType()===`check`?!!e.getChecked():void 0,spread:!1,children:[]}),a=null;for(let t of e.getChildren())V(t)||$a(t)||t.isInline()&&(W(t)||ks(t))?(a??=n.appendToParent(i,{type:`paragraph`,children:[]}),n.visit(t,a)):(a=null,n.visit(t,i))}}};function gw(e,t){return Ju(e.registerCommand($i,(t=>{let n=U();if(!H(n))return!1;t.preventDefault();let r=function(e){if(sd(e.getNodes(),(e=>Ro(e)&&e.canIndent()?e:null)).length>0)return!0;let t=e.anchor,n=e.focus,r=n.isBefore(t)?n:t,i=td(r.getNode());if(i.canIndent()){let e=i.getKey(),t=Bo();if(t.anchor.set(e,0,`element`),t.focus.set(e,0,`element`),t=Gr(t),t.anchor.is(r))return!0}return!1}(n)?t.shiftKey?na:ta:ea;return e.dispatchCommand(r,void 0)}),0),e.registerCommand(ta,(()=>{if(t==null)return!1;let e=U();if(!H(e))return!1;let n=e.getNodes().map((e=>td(e).getIndent()));return Math.max(...n)+1>=t}),4))}function _w({maxIndent:e}){let[t]=Ln();return(0,I.useEffect)((()=>gw(t,e)),[t,e]),null}function vw(){let[e]=Ln();return(0,I.useEffect)((()=>hC(e)),[e]),null}function yw({hasStrictIndent:e=!1}){let[t]=Ln();return(0,I.useEffect)((()=>{if(!t.hasNodes([sC,nC]))throw Error(`ListPlugin: ListNode and/or ListItemNode not registered on editor`)}),[t]),(0,I.useEffect)((()=>{if(e)return EC(t)}),[t,e]),function(e){(0,I.useEffect)((()=>TC(e)),[e])}(t),null}var bw={name:`tasklistCheck`,tokenize:Sw};function xw(){return{text:{91:bw}}}function Sw(e,t,n){let r=this;return i;function i(t){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(t):(e.enter(`taskListCheck`),e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),a)}function a(t){return Cf(t)?(e.enter(`taskListCheckValueUnchecked`),e.consume(t),e.exit(`taskListCheckValueUnchecked`),o):t===88||t===120?(e.enter(`taskListCheckValueChecked`),e.consume(t),e.exit(`taskListCheckValueChecked`),o):n(t)}function o(t){return t===93?(e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),e.exit(`taskListCheck`),s):n(t)}function s(r){return K(r)?t(r):wf(r)?e.check({tokenize:Cw},t,n)(r):n(r)}}function Cw(e,t,n){return Rm(e,r,`whitespace`);function r(e){return e===null?n(e):t(e)}}function ww(){return{exit:{taskListCheckValueChecked:Ew,taskListCheckValueUnchecked:Ew,paragraph:Dw}}}function Tw(){return{unsafe:[{atBreak:!0,character:`-`,after:`[:|-]`}],handlers:{listItem:Ow}}}function Ew(e){let t=this.stack[this.stack.length-2];t.type,t.checked=e.type===`taskListCheckValueChecked`}function Dw(e){let t=this.stack[this.stack.length-2];if(t&&t.type===`listItem`&&typeof t.checked==`boolean`){let e=this.stack[this.stack.length-1];e.type;let n=e.children[0];if(n&&n.type===`text`){let r=t.children,i=-1,a;for(;++i<r.length;){let e=r[i];if(e.type===`paragraph`){a=e;break}}a===e&&(n.value=n.value.slice(1),n.value.length===0?e.children.shift():e.position&&n.position&&typeof n.position.start.offset==`number`&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function Ow(e,t,n,r){let i=e.children[0],a=typeof e.checked==`boolean`&&i&&i.type===`paragraph`,o=`[`+(e.checked?`x`:` `)+`] `,s=n.createTracker(r);a&&s.move(o);let c=Pg.listItem(e,t,n,{...r,...s.current()});return a&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,l)),c;function l(e){return e+o}}var kw=new Map([[`number`,CC],[`bullet`,SC],[`check`,mC],[``,wC]]),Aw=R(``,e=>{e.sub(e.pipe(Hb,Dn(jb)),([t,n])=>{if(!t||!n)return;let r=t.anchor.getNode(),i=r.getKey()===`root`?r:nd(r,e=>{let t=e.getParent();return t!==null&&nl(t)});i??=r.getTopLevelElementOrThrow();let a=i.getKey();if(n.getElementByKey(a)!==null)if(pC(i)){let t=ed(r,sC),n=t?t.getListType():i.getListType();e.pub(Aw,n)}else e.pub(Aw,``)})}),jw=yn(e=>{e.sub(e.pipe(jw,Dn(jb)),([e,t])=>{t?.dispatchCommand(kw.get(e),void 0)})}),Mw=Nn({init(e){var t;(t=e.getValue(Ab))==null||t.registerCommand(ta,()=>!Pw(7),4),e.pubIn({[Jx]:`lists`,[dx]:ww(),[ux]:xw(),[lx]:[fw,pw],[cx]:[nC,sC],[fx]:[mw,hw],[px]:Tw(),[Ax]:[_w,yw,vw],[Lx]:[_w,yw,vw]})}});function Nw(e){let t=e.getNodes();return t.length===0?new Set([e.anchor.getNode().getParentOrThrow(),e.focus.getNode().getParentOrThrow()]):new Set(t.map(e=>W(e)?e:e.getParentOrThrow()))}function Pw(e){let t=U();if(!H(t))return!1;let n=Nw(t),r=0;for(let e of n)if(pC(e))r=Math.max(BS(e)+1,r);else if(oC(e)){let t=e.getParent();if(t?.getChildren().length===1){let e=t.getParent();if(oC(e)&&e.getChildren().length===1)return!1}if(!pC(t))throw Error(`ListMaxIndentLevelPlugin: A ListItemNode must have a ListNode for a parent.`);r=Math.max(BS(t)+1,r)}return r<=e}function Fw(e){return e.length}function Iw(e,t){let n=t||{},r=(n.align||[]).concat(),i=n.stringLength||Fw,a=[],o=[],s=[],c=[],l=0,u=-1;for(;++u<e.length;){let t=[],r=[],a=-1;for(e[u].length>l&&(l=e[u].length);++a<e[u].length;){let o=Lw(e[u][a]);if(n.alignDelimiters!==!1){let e=i(o);r[a]=e,(c[a]===void 0||e>c[a])&&(c[a]=e)}t.push(o)}o[u]=t,s[u]=r}let d=-1;if(typeof r==`object`&&`length`in r)for(;++d<l;)a[d]=Rw(r[d]);else{let e=Rw(r);for(;++d<l;)a[d]=e}d=-1;let f=[],p=[];for(;++d<l;){let e=a[d],t=``,r=``;e===99?(t=`:`,r=`:`):e===108?t=`:`:e===114&&(r=`:`);let i=n.alignDelimiters===!1?1:Math.max(1,c[d]-t.length-r.length),o=t+`-`.repeat(i)+r;n.alignDelimiters!==!1&&(i=t.length+i+r.length,i>c[d]&&(c[d]=i),p[d]=i),f[d]=o}o.splice(1,0,f),s.splice(1,0,p),u=-1;let m=[];for(;++u<o.length;){let e=o[u],t=s[u];d=-1;let r=[];for(;++d<l;){let i=e[d]||``,o=``,s=``;if(n.alignDelimiters!==!1){let e=c[d]-(t[d]||0),n=a[d];n===114?o=` `.repeat(e):n===99?e%2?(o=` `.repeat(e/2+.5),s=` `.repeat(e/2-.5)):(o=` `.repeat(e/2),s=o):s=` `.repeat(e)}n.delimiterStart!==!1&&!d&&r.push(`|`),n.padding!==!1&&!(n.alignDelimiters===!1&&i===``)&&(n.delimiterStart!==!1||d)&&r.push(` `),n.alignDelimiters!==!1&&r.push(o),r.push(i),n.alignDelimiters!==!1&&r.push(s),n.padding!==!1&&r.push(` `),(n.delimiterEnd!==!1||d!==l-1)&&r.push(`|`)}m.push(n.delimiterEnd===!1?r.join(``).replace(/ +$/,``):r.join(``))}return m.join(`
|
|
85
|
-
`)}function Lw(e){return e==null?``:String(e)}function Rw(e){let t=typeof e==`string`?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function zw(){return{enter:{table:Bw,tableData:Ww,tableHeader:Ww,tableRow:Hw},exit:{codeText:Gw,table:Vw,tableData:Uw,tableHeader:Uw,tableRow:Uw}}}function Bw(e){let t=e._align;this.enter({type:`table`,align:t.map(function(e){return e===`none`?null:e}),children:[]},e),this.data.inTable=!0}function Vw(e){this.exit(e),this.data.inTable=void 0}function Hw(e){this.enter({type:`tableRow`,children:[]},e)}function Uw(e){this.exit(e)}function Ww(e){this.enter({type:`tableCell`,children:[]},e)}function Gw(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,Kw));let n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function Kw(e,t){return t===`|`?t:e}function qw(e){let t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?` `:`|`;return{unsafe:[{character:`\r`,inConstruct:`tableCell`},{character:`
|
|
86
|
-
`,inConstruct:`tableCell`},{atBreak:!0,character:`|`,after:`[ :-]`},{character:`|`,inConstruct:`tableCell`},{atBreak:!0,character:`:`,after:`-`},{atBreak:!0,character:`-`,after:`[:|-]`}],handlers:{inlineCode:f,table:o,tableCell:c,tableRow:s}};function o(e,t,n,r){return l(u(e,n,r),e.align)}function s(e,t,n,r){let i=l([d(e,n,r)]);return i.slice(0,i.indexOf(`
|
|
87
|
-
`))}function c(e,t,n,r){let i=n.enter(`tableCell`),o=n.enter(`phrasing`),s=n.containerPhrasing(e,{...r,before:a,after:a});return o(),i(),s}function l(e,t){return Iw(e,{align:t,alignDelimiters:r,padding:n,stringLength:i})}function u(e,t,n){let r=e.children,i=-1,a=[],o=t.enter(`table`);for(;++i<r.length;)a[i]=d(r[i],t,n);return o(),a}function d(e,t,n){let r=e.children,i=-1,a=[],o=t.enter(`tableRow`);for(;++i<r.length;)a[i]=c(r[i],e,t,n);return o(),a}function f(e,t,n){let r=Pg.inlineCode(e,t,n);return n.stack.includes(`tableCell`)&&(r=r.replace(/\|/g,`\\$&`)),r}}var Jw=class{constructor(){this.map=[]}add(e,t,n){Yw(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),this.map.length===0)return;let t=this.map.length,n=[];for(;t>0;)--t,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0}};function Yw(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function Xw(e,t){let n=!1,r=[];for(;t<e.length;){let i=e[t];if(n){if(i[0]===`enter`)i[1].type===`tableContent`&&r.push(e[t+1][1].type===`tableDelimiterMarker`?`left`:`none`);else if(i[1].type===`tableContent`){if(e[t-1][1].type===`tableDelimiterMarker`){let e=r.length-1;r[e]=r[e]===`left`?`center`:`right`}}else if(i[1].type===`tableDelimiterRow`)break}else i[0]===`enter`&&i[1].type===`tableDelimiterRow`&&(n=!0);t+=1}return r}function Zw(){return{flow:{null:{name:`table`,tokenize:Qw,resolveAll:$w}}}}function Qw(e,t,n){let r=this,i=0,a=0,o;return s;function s(e){let t=r.events.length-1;for(;t>-1;){let e=r.events[t][1].type;if(e===`lineEnding`||e===`linePrefix`)t--;else break}let i=t>-1?r.events[t][1].type:null,a=i===`tableHead`||i===`tableRow`?S:c;return a===S&&r.parser.lazy[r.now().line]?n(e):a(e)}function c(t){return e.enter(`tableHead`),e.enter(`tableRow`),l(t)}function l(e){return e===124?u(e):(o=!0,a+=1,u(e))}function u(t){return t===null?n(t):K(t)?a>1?(a=0,r.interrupt=!0,e.exit(`tableRow`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),p):n(t):wf(t)?Rm(e,u,`whitespace`)(t):(a+=1,o&&(o=!1,i+=1),t===124?(e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),o=!0,u):(e.enter(`data`),d(t)))}function d(t){return t===null||t===124||Cf(t)?(e.exit(`data`),u(t)):(e.consume(t),t===92?f:d)}function f(t){return t===92||t===124?(e.consume(t),d):d(t)}function p(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter(`tableDelimiterRow`),o=!1,wf(t)?Rm(e,m,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):m(t))}function m(t){return t===45||t===58?g(t):t===124?(o=!0,e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),h):x(t)}function h(t){return wf(t)?Rm(e,g,`whitespace`)(t):g(t)}function g(t){return t===58?(a+=1,o=!0,e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),_):t===45?(a+=1,_(t)):t===null||K(t)?b(t):x(t)}function _(t){return t===45?(e.enter(`tableDelimiterFiller`),v(t)):x(t)}function v(t){return t===45?(e.consume(t),v):t===58?(o=!0,e.exit(`tableDelimiterFiller`),e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),y):(e.exit(`tableDelimiterFiller`),y(t))}function y(t){return wf(t)?Rm(e,b,`whitespace`)(t):b(t)}function b(n){return n===124?m(n):n===null||K(n)?!o||i!==a?x(n):(e.exit(`tableDelimiterRow`),e.exit(`tableHead`),t(n)):x(n)}function x(e){return n(e)}function S(t){return e.enter(`tableRow`),C(t)}function C(n){return n===124?(e.enter(`tableCellDivider`),e.consume(n),e.exit(`tableCellDivider`),C):n===null||K(n)?(e.exit(`tableRow`),t(n)):wf(n)?Rm(e,C,`whitespace`)(n):(e.enter(`data`),w(n))}function w(t){return t===null||t===124||Cf(t)?(e.exit(`data`),C(t)):(e.consume(t),t===92?T:w)}function T(t){return t===92||t===124?(e.consume(t),w):w(t)}}function $w(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],s=!1,c=0,l,u,d,f=new Jw;for(;++n<e.length;){let p=e[n],m=p[1];p[0]===`enter`?m.type===`tableHead`?(s=!1,c!==0&&(tT(f,t,c,l,u),u=void 0,c=0),l={type:`table`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,l,t]])):m.type===`tableRow`||m.type===`tableDelimiterRow`?(r=!0,d=void 0,a=[0,0,0,0],o=[0,n+1,0,0],s&&(s=!1,u={type:`tableBody`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,u,t]])),i=m.type===`tableDelimiterRow`?2:u?3:1):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)?(r=!1,o[2]===0&&(a[1]!==0&&(o[0]=o[1],d=eT(f,t,a,i,void 0,d),a=[0,0,0,0]),o[2]=n)):m.type===`tableCellDivider`&&(r?r=!1:(a[1]!==0&&(o[0]=o[1],d=eT(f,t,a,i,void 0,d)),a=o,o=[a[1],n,0,0])):m.type===`tableHead`?(s=!0,c=n):m.type===`tableRow`||m.type===`tableDelimiterRow`?(c=n,a[1]===0?o[1]!==0&&(d=eT(f,t,o,i,n,d)):(o[0]=o[1],d=eT(f,t,a,i,n,d)),i=0):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)&&(o[3]=n)}for(c!==0&&tT(f,t,c,l,u),f.consume(t.events),n=-1;++n<t.events.length;){let e=t.events[n];e[0]===`enter`&&e[1].type===`table`&&(e[1]._align=Xw(t.events,n))}return e}function eT(e,t,n,r,i,a){let o=r===1?`tableHeader`:r===2?`tableDelimiter`:`tableData`;n[0]!==0&&(a.end=Object.assign({},nT(t.events,n[0])),e.add(n[0],0,[[`exit`,a,t]]));let s=nT(t.events,n[1]);if(a={type:o,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[[`enter`,a,t]]),n[2]!==0){let i=nT(t.events,n[2]),a=nT(t.events,n[3]),o={type:`tableContent`,start:Object.assign({},i),end:Object.assign({},a)};if(e.add(n[2],0,[[`enter`,o,t]]),r!==2){let r=t.events[n[2]],i=t.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type=`chunkText`,r[1].contentType=`text`,n[3]>n[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[[`exit`,o,t]])}return i!==void 0&&(a.end=Object.assign({},nT(t.events,i)),e.add(i,0,[[`exit`,a,t]]),a=void 0),a}function tT(e,t,n,r,i){let a=[],o=nT(t.events,n);i&&(i.end=Object.assign({},o),a.push([`exit`,i,t])),r.end=Object.assign({},o),a.push([`exit`,r,t]),e.add(n+1,0,a)}function nT(e,t){let n=e[t],r=n[0]===`enter`?`start`:`end`;return n[1][r]}var rT=[[`Cat`,`rgb(125, 50, 0)`],[`Dog`,`rgb(100, 0, 0)`],[`Rabbit`,`rgb(150, 0, 0)`],[`Frog`,`rgb(200, 0, 0)`],[`Fox`,`rgb(200, 75, 0)`],[`Hedgehog`,`rgb(0, 75, 0)`],[`Pigeon`,`rgb(0, 125, 0)`],[`Squirrel`,`rgb(75, 100, 0)`],[`Bear`,`rgb(125, 100, 0)`],[`Tiger`,`rgb(0, 0, 150)`],[`Leopard`,`rgb(0, 0, 200)`],[`Zebra`,`rgb(0, 0, 250)`],[`Wolf`,`rgb(0, 100, 150)`],[`Owl`,`rgb(0, 100, 100)`],[`Gull`,`rgb(100, 0, 100)`],[`Squid`,`rgb(150, 0, 150)`]],iT=rT[Math.floor(Math.random()*rT.length)],aT=(0,I.createContext)({clientID:0,color:iT[1],isCollabActive:!1,name:iT[0],yjsDocMap:new Map});function oT(e,t){let n=(0,I.useContext)(aT);return e!=null&&(n.name=e),t!=null&&(n.color=t),n}function sT(e){let t=new Set,{ownNodeConfig:n}=Dl(e),r=e.transform();if(n){let e=n.$transform;e&&t.add(e)}return r&&t.add(r),t}function cT({initialEditor:e,children:t,initialNodes:n,initialTheme:r,skipCollabChecks:i,skipEditableListener:a}){let o=(0,I.useRef)(!1),s=(0,I.useContext)(Fn);s??function(e,...t){let n=new URL(`https://lexical.dev/docs/error`),r=new URLSearchParams;r.append(`code`,e);for(let e of t)r.append(`v`,e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(9);let[c,{getTheme:l}]=s,u=(0,I.useMemo)((()=>{let t=r||l()||void 0,i=In(s,t);t!==void 0&&(e._config.theme=t),e._parentEditor=e._parentEditor||c;let a=e._createEditorArgs,o=a&&a.namespace;if(n){o||(e._config.namespace=c._config.namespace);for(let t of n){let n=null,r=null;if(typeof t!=`function`){let e=t;t=e.replace,n=e.with,r=e.withKlass||null}let i=Xs(e,t.getType());e._nodes.set(t.getType(),{exportDOM:i?i.exportDOM:void 0,klass:t,replace:n,replaceWithKlass:r,sharedNodeState:Pr(t),transforms:sT(t)})}}else if(a&&a.nodes)o||(e._config.namespace=c._config.namespace);else{let t=e._nodes=new Map(c._nodes);o||(e._config.namespace=c._config.namespace);for(let[n,r]of t)e._nodes.set(n,{exportDOM:r.exportDOM,klass:r.klass,replace:r.replace,replaceWithKlass:r.replaceWithKlass,sharedNodeState:Pr(r.klass),transforms:sT(r.klass)})}return[e,i]}),[]),{isCollabActive:d,yjsDocMap:f}=oT(),p=i||o.current||f.has(e.getKey());return(0,I.useEffect)((()=>{p&&(o.current=!0)}),[p]),(0,I.useEffect)((()=>{if(!a){let t=t=>e.setEditable(t);return t(c.isEditable()),c.registerEditableListener(t)}}),[e,c,a]),(0,L.jsx)(Fn.Provider,{value:u,children:!d||p?t:null})}typeof window<`u`&&window.document&&window.document.createElement;function lT(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),n===!1||!r.defaultPrevented)return t?.(r)}}function uT(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function dT(...e){return t=>{let n=!1,r=e.map(e=>{let r=uT(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():uT(e[t],null)}}}}function fT(...e){return I.useCallback(dT(...e),e)}function pT(e,t){let n=I.createContext(t),r=e=>{let{children:t,...r}=e,i=I.useMemo(()=>r,Object.values(r));return(0,L.jsx)(n.Provider,{value:i,children:t})};r.displayName=e+`Provider`;function i(r){let i=I.useContext(n);if(i)return i;if(t!==void 0)return t;throw Error(`\`${r}\` must be used within \`${e}\``)}return[r,i]}function mT(e,t=[]){let n=[];function r(t,r){let i=I.createContext(r),a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=I.useMemo(()=>o,Object.values(o));return(0,L.jsx)(s.Provider,{value:c,children:r})};o.displayName=t+`Provider`;function s(n,o){let s=o?.[e]?.[a]||i,c=I.useContext(s);if(c)return c;if(r!==void 0)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}return[o,s]}let i=()=>{let t=n.map(e=>I.createContext(e));return function(n){let r=n?.[e]||t;return I.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return i.scopeName=e,[r,hT(i,...t)]}function hT(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return I.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}function gT(e){let t=_T(e),n=I.forwardRef((e,n)=>{let{children:r,...i}=e,a=I.Children.toArray(r),o=a.find(bT);if(o){let e=o.props.children,r=a.map(t=>t===o?I.Children.count(e)>1?I.Children.only(null):I.isValidElement(e)?e.props.children:null:t);return(0,L.jsx)(t,{...i,ref:n,children:I.isValidElement(e)?I.cloneElement(e,void 0,r):null})}return(0,L.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function _T(e){let t=I.forwardRef((e,t)=>{let{children:n,...r}=e;if(I.isValidElement(n)){let e=ST(n),i=xT(r,n.props);return n.type!==I.Fragment&&(i.ref=t?dT(t,e):e),I.cloneElement(n,i)}return I.Children.count(n)>1?I.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var vT=Symbol(`radix.slottable`);function yT(e){let t=({children:e})=>(0,L.jsx)(L.Fragment,{children:e});return t.displayName=`${e}.Slottable`,t.__radixId=vT,t}function bT(e){return I.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===vT}function xT(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function ST(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var CT=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=gT(`Primitive.${t}`),r=I.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,L.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function wT(e,t){e&&vS.flushSync(()=>e.dispatchEvent(t))}function TT(e){let t=I.useRef(e);return I.useEffect(()=>{t.current=e}),I.useMemo(()=>(...e)=>t.current?.(...e),[])}function ET(e,t=globalThis?.document){let n=TT(e);I.useEffect(()=>{let e=e=>{e.key===`Escape`&&n(e)};return t.addEventListener(`keydown`,e,{capture:!0}),()=>t.removeEventListener(`keydown`,e,{capture:!0})},[n,t])}var DT=`DismissableLayer`,OT=`dismissableLayer.update`,kT=`dismissableLayer.pointerDownOutside`,AT=`dismissableLayer.focusOutside`,jT,MT=I.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),NT=I.forwardRef((e,t)=>{let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:o,onDismiss:s,...c}=e,l=I.useContext(MT),[u,d]=I.useState(null),f=u?.ownerDocument??globalThis?.document,[,p]=I.useState({}),m=fT(t,e=>d(e)),h=Array.from(l.layers),[g]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),_=h.indexOf(g),v=u?h.indexOf(u):-1,y=l.layersWithOutsidePointerEventsDisabled.size>0,b=v>=_,x=IT(e=>{let t=e.target,n=[...l.branches].some(e=>e.contains(t));!b||n||(i?.(e),o?.(e),e.defaultPrevented||s?.())},f),S=LT(e=>{let t=e.target;[...l.branches].some(e=>e.contains(t))||(a?.(e),o?.(e),e.defaultPrevented||s?.())},f);return ET(e=>{v===l.layers.size-1&&(r?.(e),!e.defaultPrevented&&s&&(e.preventDefault(),s()))},f),I.useEffect(()=>{if(u)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(jT=f.body.style.pointerEvents,f.body.style.pointerEvents=`none`),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),RT(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=jT)}},[u,f,n,l]),I.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),RT())},[u,l]),I.useEffect(()=>{let e=()=>p({});return document.addEventListener(OT,e),()=>document.removeEventListener(OT,e)},[]),(0,L.jsx)(CT.div,{...c,ref:m,style:{pointerEvents:y?b?`auto`:`none`:void 0,...e.style},onFocusCapture:lT(e.onFocusCapture,S.onFocusCapture),onBlurCapture:lT(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:lT(e.onPointerDownCapture,x.onPointerDownCapture)})});NT.displayName=DT;var PT=`DismissableLayerBranch`,FT=I.forwardRef((e,t)=>{let n=I.useContext(MT),r=I.useRef(null),i=fT(t,r);return I.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,L.jsx)(CT.div,{...e,ref:i})});FT.displayName=PT;function IT(e,t=globalThis?.document){let n=TT(e),r=I.useRef(!1),i=I.useRef(()=>{});return I.useEffect(()=>{let e=e=>{if(e.target&&!r.current){let r=function(){zT(kT,n,a,{discrete:!0})},a={originalEvent:e};e.pointerType===`touch`?(t.removeEventListener(`click`,i.current),i.current=r,t.addEventListener(`click`,i.current,{once:!0})):r()}else t.removeEventListener(`click`,i.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener(`pointerdown`,e)},0);return()=>{window.clearTimeout(a),t.removeEventListener(`pointerdown`,e),t.removeEventListener(`click`,i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function LT(e,t=globalThis?.document){let n=TT(e),r=I.useRef(!1);return I.useEffect(()=>{let e=e=>{e.target&&!r.current&&zT(AT,n,{originalEvent:e},{discrete:!1})};return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function RT(){let e=new CustomEvent(OT);document.dispatchEvent(e)}function zT(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?wT(i,a):i.dispatchEvent(a)}var BT=0;function VT(){I.useEffect(()=>{let e=document.querySelectorAll(`[data-radix-focus-guard]`);return document.body.insertAdjacentElement(`afterbegin`,e[0]??HT()),document.body.insertAdjacentElement(`beforeend`,e[1]??HT()),BT++,()=>{BT===1&&document.querySelectorAll(`[data-radix-focus-guard]`).forEach(e=>e.remove()),BT--}},[])}function HT(){let e=document.createElement(`span`);return e.setAttribute(`data-radix-focus-guard`,``),e.tabIndex=0,e.style.outline=`none`,e.style.opacity=`0`,e.style.position=`fixed`,e.style.pointerEvents=`none`,e}var UT=`focusScope.autoFocusOnMount`,WT=`focusScope.autoFocusOnUnmount`,GT={bubbles:!1,cancelable:!0},KT=`FocusScope`,qT=I.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...o}=e,[s,c]=I.useState(null),l=TT(i),u=TT(a),d=I.useRef(null),f=fT(t,e=>c(e)),p=I.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;I.useEffect(()=>{if(r){let e=function(e){if(p.paused||!s)return;let t=e.target;s.contains(t)?d.current=t:eE(d.current,{select:!0})},t=function(e){if(p.paused||!s)return;let t=e.relatedTarget;t!==null&&(s.contains(t)||eE(d.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&eE(s)};document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[r,s,p.paused]),I.useEffect(()=>{if(s){tE.add(p);let e=document.activeElement;if(!s.contains(e)){let t=new CustomEvent(UT,GT);s.addEventListener(UT,l),s.dispatchEvent(t),t.defaultPrevented||(JT(iE(XT(s)),{select:!0}),document.activeElement===e&&eE(s))}return()=>{s.removeEventListener(UT,l),setTimeout(()=>{let t=new CustomEvent(WT,GT);s.addEventListener(WT,u),s.dispatchEvent(t),t.defaultPrevented||eE(e??document.body,{select:!0}),s.removeEventListener(WT,u),tE.remove(p)},0)}}},[s,l,u,p]);let m=I.useCallback(e=>{if(!n&&!r||p.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,a]=YT(t);r&&a?!e.shiftKey&&i===a?(e.preventDefault(),n&&eE(r,{select:!0})):e.shiftKey&&i===r&&(e.preventDefault(),n&&eE(a,{select:!0})):i===t&&e.preventDefault()}},[n,r,p.paused]);return(0,L.jsx)(CT.div,{tabIndex:-1,...o,ref:f,onKeyDown:m})});qT.displayName=KT;function JT(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(eE(r,{select:t}),document.activeElement!==n)return}function YT(e){let t=XT(e);return[ZT(t,e),ZT(t.reverse(),e)]}function XT(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function ZT(e,t){for(let n of e)if(!QT(n,{upTo:t}))return n}function QT(e,{upTo:t}){if(getComputedStyle(e).visibility===`hidden`)return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display===`none`)return!0;e=e.parentElement}return!1}function $T(e){return e instanceof HTMLInputElement&&`select`in e}function eE(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&$T(e)&&t&&e.select()}}var tE=nE();function nE(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=rE(e,t),e.unshift(t)},remove(t){e=rE(e,t),e[0]?.resume()}}}function rE(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function iE(e){return e.filter(e=>e.tagName!==`A`)}var aE=globalThis?.document?I.useLayoutEffect:()=>{},oE=I.useId||(()=>void 0),sE=0;function cE(e){let[t,n]=I.useState(oE());return aE(()=>{e||n(e=>e??String(sE++))},[e]),e||(t?`radix-${t}`:``)}var lE=[`top`,`right`,`bottom`,`left`],uE=Math.min,dE=Math.max,fE=Math.round,pE=Math.floor,mE=e=>({x:e,y:e}),hE={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function gE(e,t,n){return dE(e,uE(t,n))}function _E(e,t){return typeof e==`function`?e(t):e}function vE(e){return e.split(`-`)[0]}function yE(e){return e.split(`-`)[1]}function bE(e){return e===`x`?`y`:`x`}function xE(e){return e===`y`?`height`:`width`}function SE(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function CE(e){return bE(SE(e))}function wE(e,t,n){n===void 0&&(n=!1);let r=yE(e),i=CE(e),a=xE(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=NE(o)),[o,NE(o)]}function TE(e){let t=NE(e);return[EE(e),t,EE(t)]}function EE(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var DE=[`left`,`right`],OE=[`right`,`left`],kE=[`top`,`bottom`],AE=[`bottom`,`top`];function jE(e,t,n){switch(e){case`top`:case`bottom`:return n?t?OE:DE:t?DE:OE;case`left`:case`right`:return t?kE:AE;default:return[]}}function ME(e,t,n,r){let i=yE(e),a=jE(vE(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(EE)))),a}function NE(e){let t=vE(e);return hE[t]+e.slice(t.length)}function PE(e){return{top:0,right:0,bottom:0,left:0,...e}}function FE(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:PE(e)}function IE(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function LE(e,t,n){let{reference:r,floating:i}=e,a=SE(t),o=CE(t),s=xE(o),c=vE(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(yE(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1);break}return p}async function RE(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=_E(t,e),p=FE(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=IE(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=IE(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var zE=50,BE=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:RE},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=LE(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<zE&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=LE(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},VE=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=_E(e,t)||{};if(l==null)return{};let d=FE(u),f={x:n,y:r},p=CE(i),m=xE(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=uE(d[_],T),ee=uE(d[v],T),D=E,O=C-h[m]-ee,k=C/2-h[m]/2+w,te=gE(D,k,O),A=!c.arrow&&yE(i)!=null&&k!==te&&a.reference[m]/2-(k<D?E:ee)-h[m]/2<0,j=A?k<D?k-D:k-O:0;return{[p]:f[p]+j,data:{[p]:te,centerOffset:k-te-j,...A&&{alignmentOffset:j}},reset:A}}}),HE=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=_E(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=vE(r),_=SE(o),v=vE(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[NE(o)]:TE(o)),x=p!==`none`;!d&&x&&b.push(...ME(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=wE(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(!(u===`alignment`&&_!==SE(t))||T.every(e=>SE(e.placement)===_?e.overflows[0]>0:!0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=SE(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}};function UE(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function WE(e){return lE.some(t=>e[t]>=0)}var GE=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=_E(e,t);switch(i){case`referenceHidden`:{let e=UE(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:WE(e)}}}case`escaped`:{let e=UE(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:WE(e)}}}default:return{}}}}},KE=new Set([`left`,`top`]);async function qE(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=vE(n),s=yE(n),c=SE(n)===`y`,l=KE.has(o)?-1:1,u=a&&c?-1:1,d=_E(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var JE=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await qE(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},YE=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=_E(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=SE(vE(i)),p=bE(f),m=u[p],h=u[f];if(o){let e=p===`y`?`top`:`left`,t=p===`y`?`bottom`:`right`,n=m+d[e],r=m-d[t];m=gE(n,m,r)}if(s){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=h+d[e],r=h-d[t];h=gE(n,h,r)}let g=c.fn({...t,[p]:m,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:o,[f]:s}}}}}},XE=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=_E(e,t),u={x:n,y:r},d=SE(i),f=bE(d),p=u[f],m=u[d],h=_E(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=KE.has(vE(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},ZE=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,r;let{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=_E(e,t),u=await o.detectOverflow(t,l),d=vE(i),f=yE(i),p=SE(i)===`y`,{width:m,height:h}=a.floating,g,_;d===`top`||d===`bottom`?(g=d,_=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(_=d,g=f===`end`?`top`:`bottom`);let v=h-u.top-u.bottom,y=m-u.left-u.right,b=uE(h-u[g],v),x=uE(m-u[_],y),S=!t.middlewareData.shift,C=b,w=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(w=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=v),S&&!f){let e=dE(u.left,0),t=dE(u.right,0),n=dE(u.top,0),r=dE(u.bottom,0);p?w=m-2*(e!==0||t!==0?e+t:dE(u.left,u.right)):C=h-2*(n!==0||r!==0?n+r:dE(u.top,u.bottom))}await c({...t,availableWidth:w,availableHeight:C});let T=await o.getDimensions(s.floating);return m!==T.width||h!==T.height?{reset:{rects:!0}}:{}}}};function QE(){return typeof window<`u`}function $E(e){return nD(e)?(e.nodeName||``).toLowerCase():`#document`}function eD(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function tD(e){return((nD(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function nD(e){return QE()?e instanceof Node||e instanceof eD(e).Node:!1}function rD(e){return QE()?e instanceof Element||e instanceof eD(e).Element:!1}function iD(e){return QE()?e instanceof HTMLElement||e instanceof eD(e).HTMLElement:!1}function aD(e){return!QE()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof eD(e).ShadowRoot}function oD(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=_D(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function sD(e){return/^(table|td|th)$/.test($E(e))}function cD(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var lD=/transform|translate|scale|rotate|perspective|filter/,uD=/paint|layout|strict|content/,dD=e=>!!e&&e!==`none`,fD;function pD(e){let t=rD(e)?_D(e):e;return dD(t.transform)||dD(t.translate)||dD(t.scale)||dD(t.rotate)||dD(t.perspective)||!hD()&&(dD(t.backdropFilter)||dD(t.filter))||lD.test(t.willChange||``)||uD.test(t.contain||``)}function mD(e){let t=yD(e);for(;iD(t)&&!gD(t);){if(pD(t))return t;if(cD(t))return null;t=yD(t)}return null}function hD(){return fD??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),fD}function gD(e){return/^(html|body|#document)$/.test($E(e))}function _D(e){return eD(e).getComputedStyle(e)}function vD(e){return rD(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function yD(e){if($E(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||aD(e)&&e.host||tD(e);return aD(t)?t.host:t}function bD(e){let t=yD(e);return gD(t)?e.ownerDocument?e.ownerDocument.body:e.body:iD(t)&&oD(t)?t:bD(t)}function xD(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=bD(e),i=r===e.ownerDocument?.body,a=eD(r);if(i){let e=SD(a);return t.concat(a,a.visualViewport||[],oD(r)?r:[],e&&n?xD(e):[])}else return t.concat(r,xD(r,[],n))}function SD(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function CD(e){let t=_D(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=iD(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=fE(n)!==a||fE(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function wD(e){return rD(e)?e:e.contextElement}function TD(e){let t=wD(e);if(!iD(t))return mE(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=CD(t),o=(a?fE(n.width):n.width)/r,s=(a?fE(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var ED=mE(0);function DD(e){let t=eD(e);return!hD()||!t.visualViewport?ED:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function OD(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==eD(e)?!1:t}function kD(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=wD(e),o=mE(1);t&&(r?rD(r)&&(o=TD(r)):o=TD(e));let s=OD(a,n,r)?DD(a):mE(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=eD(a),t=r&&rD(r)?eD(r):r,n=e,i=SD(n);for(;i&&r&&t!==n;){let e=TD(i),t=i.getBoundingClientRect(),r=_D(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=eD(i),i=SD(n)}}return IE({width:u,height:d,x:c,y:l})}function AD(e,t){let n=vD(e).scrollLeft;return t?t.left+n:kD(tD(e)).left+n}function jD(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-AD(e,n),y:n.top+t.scrollTop}}function MD(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=tD(r),s=t?cD(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=mE(1),u=mE(0),d=iD(r);if((d||!d&&!a)&&(($E(r)!==`body`||oD(o))&&(c=vD(r)),d)){let e=kD(r);l=TD(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?jD(o,c):mE(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function ND(e){return Array.from(e.getClientRects())}function PD(e){let t=tD(e),n=vD(e),r=e.ownerDocument.body,i=dE(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=dE(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+AD(e),s=-n.scrollTop;return _D(r).direction===`rtl`&&(o+=dE(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var FD=25;function ID(e,t){let n=eD(e),r=tD(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=hD();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=AD(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=FD&&(a-=o)}else l<=FD&&(a+=l);return{width:a,height:o,x:s,y:c}}function LD(e,t){let n=kD(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=iD(e)?TD(e):mE(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function RD(e,t,n){let r;if(t===`viewport`)r=ID(e,n);else if(t===`document`)r=PD(tD(e));else if(rD(t))r=LD(t,n);else{let n=DD(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return IE(r)}function zD(e,t){let n=yD(e);return n===t||!rD(n)||gD(n)?!1:_D(n).position===`fixed`||zD(n,t)}function BD(e,t){let n=t.get(e);if(n)return n;let r=xD(e,[],!1).filter(e=>rD(e)&&$E(e)!==`body`),i=null,a=_D(e).position===`fixed`,o=a?yD(e):e;for(;rD(o)&&!gD(o);){let t=_D(o),n=pD(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||oD(o)&&!n&&zD(e,o))?r=r.filter(e=>e!==o):i=t,o=yD(o)}return t.set(e,r),r}function VD(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?cD(t)?[]:BD(t,this._c):[].concat(n),r],o=RD(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=RD(t,a[e],i);s=dE(n.top,s),c=uE(n.right,c),l=uE(n.bottom,l),u=dE(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function HD(e){let{width:t,height:n}=CD(e);return{width:t,height:n}}function UD(e,t,n){let r=iD(t),i=tD(t),a=n===`fixed`,o=kD(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=mE(0);function l(){c.x=AD(i)}if(r||!r&&!a)if(($E(t)!==`body`||oD(i))&&(s=vD(t)),r){let e=kD(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&l();a&&!r&&i&&l();let u=i&&!r&&!a?jD(i,s):mE(0);return{x:o.left+s.scrollLeft-c.x-u.x,y:o.top+s.scrollTop-c.y-u.y,width:o.width,height:o.height}}function WD(e){return _D(e).position===`static`}function GD(e,t){if(!iD(e)||_D(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return tD(e)===n&&(n=n.ownerDocument.body),n}function KD(e,t){let n=eD(e);if(cD(e))return n;if(!iD(e)){let t=yD(e);for(;t&&!gD(t);){if(rD(t)&&!WD(t))return t;t=yD(t)}return n}let r=GD(e,t);for(;r&&sD(r)&&WD(r);)r=GD(r,t);return r&&gD(r)&&WD(r)&&!pD(r)?n:r||mD(e)||n}var qD=async function(e){let t=this.getOffsetParent||KD,n=this.getDimensions,r=await n(e.floating);return{reference:UD(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function JD(e){return _D(e).direction===`rtl`}var YD={convertOffsetParentRelativeRectToViewportRelativeRect:MD,getDocumentElement:tD,getClippingRect:VD,getOffsetParent:KD,getElementRects:qD,getClientRects:ND,getDimensions:HD,getScale:TD,isElement:rD,isRTL:JD};function XD(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function ZD(e,t){let n=null,r,i=tD(e);function a(){var e;clearTimeout(r),(e=n)==null||e.disconnect(),n=null}function o(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(s||t(),!f||!p)return;let m=pE(d),h=pE(i.clientWidth-(u+f)),g=pE(i.clientHeight-(d+p)),_=pE(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:dE(0,uE(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(n!==c){if(!y)return o();n?o(!1,n):r=setTimeout(()=>{o(!1,1e-7)},1e3)}n===1&&!XD(l,e.getBoundingClientRect())&&o(),y=!1}try{n=new IntersectionObserver(b,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return o(!0),a}function QD(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=wD(e),u=i||a?[...l?xD(l):[],...t?xD(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?ZD(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?kD(e):null;c&&g();function g(){let t=kD(e);h&&!XD(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var $D=JE,eO=YE,tO=HE,nO=ZE,rO=GE,iO=VE,aO=XE,oO=(e,t,n)=>{let r=new Map,i={platform:YD,...n},a={...i.platform,_c:r};return BE(e,t,{...i,platform:a})},sO=typeof document<`u`?I.useLayoutEffect:function(){};function cO(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!cO(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!cO(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function lO(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function uO(e,t){let n=lO(e);return Math.round(t*n)/n}function dO(e){let t=I.useRef(e);return sO(()=>{t.current=e}),t}function fO(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=I.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=I.useState(r);cO(f,r)||p(r);let[m,h]=I.useState(null),[g,_]=I.useState(null),v=I.useCallback(e=>{e!==S.current&&(S.current=e,h(e))},[]),y=I.useCallback(e=>{e!==C.current&&(C.current=e,_(e))},[]),b=a||m,x=o||g,S=I.useRef(null),C=I.useRef(null),w=I.useRef(u),T=c!=null,E=dO(c),ee=dO(i),D=dO(l),O=I.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:f};ee.current&&(e.platform=ee.current),oO(S.current,C.current,e).then(e=>{let t={...e,isPositioned:D.current!==!1};k.current&&!cO(w.current,t)&&(w.current=t,vS.flushSync(()=>{d(t)}))})},[f,t,n,ee,D]);sO(()=>{l===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let k=I.useRef(!1);sO(()=>(k.current=!0,()=>{k.current=!1}),[]),sO(()=>{if(b&&(S.current=b),x&&(C.current=x),b&&x){if(E.current)return E.current(b,x,O);O()}},[b,x,O,E,T]);let te=I.useMemo(()=>({reference:S,floating:C,setReference:v,setFloating:y}),[v,y]),A=I.useMemo(()=>({reference:b,floating:x}),[b,x]),j=I.useMemo(()=>{let e={position:n,left:0,top:0};if(!A.floating)return e;let t=uO(A.floating,u.x),r=uO(A.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...lO(A.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,A.floating,u.x,u.y]);return I.useMemo(()=>({...u,update:O,refs:te,elements:A,floatingStyles:j}),[u,O,te,A,j])}var pO=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:iO({element:r.current,padding:i}).fn(n):r?iO({element:r,padding:i}).fn(n):{}}}},mO=(e,t)=>{let n=$D(e);return{name:n.name,fn:n.fn,options:[e,t]}},hO=(e,t)=>{let n=eO(e);return{name:n.name,fn:n.fn,options:[e,t]}},gO=(e,t)=>({fn:aO(e).fn,options:[e,t]}),_O=(e,t)=>{let n=tO(e);return{name:n.name,fn:n.fn,options:[e,t]}},vO=(e,t)=>{let n=nO(e);return{name:n.name,fn:n.fn,options:[e,t]}},yO=(e,t)=>{let n=rO(e);return{name:n.name,fn:n.fn,options:[e,t]}},bO=(e,t)=>{let n=pO(e);return{name:n.name,fn:n.fn,options:[e,t]}},xO=`Arrow`,SO=I.forwardRef((e,t)=>{let{children:n,width:r=10,height:i=5,...a}=e;return(0,L.jsx)(CT.svg,{...a,ref:t,width:r,height:i,viewBox:`0 0 30 10`,preserveAspectRatio:`none`,children:e.asChild?n:(0,L.jsx)(`polygon`,{points:`0,0 30,0 15,10`})})});SO.displayName=xO;var CO=SO;function wO(e){let[t,n]=I.useState(void 0);return aE(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{if(!Array.isArray(t)||!t.length)return;let r=t[0],i,a;if(`borderBoxSize`in r){let e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,a=t.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return t.observe(e,{box:`border-box`}),()=>t.unobserve(e)}else n(void 0)},[e]),t}var TO=`Popper`,[EO,DO]=mT(TO),[OO,kO]=EO(TO),AO=e=>{let{__scopePopper:t,children:n}=e,[r,i]=I.useState(null);return(0,L.jsx)(OO,{scope:t,anchor:r,onAnchorChange:i,children:n})};AO.displayName=TO;var jO=`PopperAnchor`,MO=I.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,a=kO(jO,n),o=I.useRef(null),s=fT(t,o),c=I.useRef(null);return I.useEffect(()=>{let e=c.current;c.current=r?.current||o.current,e!==c.current&&a.onAnchorChange(c.current)}),r?null:(0,L.jsx)(CT.div,{...i,ref:s})});MO.displayName=jO;var NO=`PopperContent`,[PO,FO]=EO(NO),IO=I.forwardRef((e,t)=>{let{__scopePopper:n,side:r=`bottom`,sideOffset:i=0,align:a=`center`,alignOffset:o=0,arrowPadding:s=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:u=0,sticky:d=`partial`,hideWhenDetached:f=!1,updatePositionStrategy:p=`optimized`,onPlaced:m,...h}=e,g=kO(NO,n),[_,v]=I.useState(null),y=fT(t,e=>v(e)),[b,x]=I.useState(null),S=wO(b),C=S?.width??0,w=S?.height??0,T=r+(a===`center`?``:`-`+a),E=typeof u==`number`?u:{top:0,right:0,bottom:0,left:0,...u},ee=Array.isArray(l)?l:[l],D=ee.length>0,O={padding:E,boundary:ee.filter(BO),altBoundary:D},{refs:k,floatingStyles:te,placement:A,isPositioned:j,middlewareData:M}=fO({strategy:`fixed`,placement:T,whileElementsMounted:(...e)=>QD(...e,{animationFrame:p===`always`}),elements:{reference:g.anchor},middleware:[mO({mainAxis:i+w,alignmentAxis:o}),c&&hO({mainAxis:!0,crossAxis:!1,limiter:d===`partial`?gO():void 0,...O}),c&&_O({...O}),vO({...O,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--radix-popper-available-width`,`${n}px`),o.setProperty(`--radix-popper-available-height`,`${r}px`),o.setProperty(`--radix-popper-anchor-width`,`${i}px`),o.setProperty(`--radix-popper-anchor-height`,`${a}px`)}}),b&&bO({element:b,padding:s}),VO({arrowWidth:C,arrowHeight:w}),f&&yO({strategy:`referenceHidden`,...O})]}),[ne,re]=HO(A),ie=TT(m);aE(()=>{j&&ie?.()},[j,ie]);let ae=M.arrow?.x,oe=M.arrow?.y,se=M.arrow?.centerOffset!==0,[N,ce]=I.useState();return aE(()=>{_&&ce(window.getComputedStyle(_).zIndex)},[_]),(0,L.jsx)(`div`,{ref:k.setFloating,"data-radix-popper-content-wrapper":``,style:{...te,transform:j?te.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:N,"--radix-popper-transform-origin":[M.transformOrigin?.x,M.transformOrigin?.y].join(` `),...M.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,L.jsx)(PO,{scope:n,placedSide:ne,onArrowChange:x,arrowX:ae,arrowY:oe,shouldHideArrow:se,children:(0,L.jsx)(CT.div,{"data-side":ne,"data-align":re,...h,ref:y,style:{...h.style,animation:j?void 0:`none`}})})})});IO.displayName=NO;var LO=`PopperArrow`,RO={top:`bottom`,right:`left`,bottom:`top`,left:`right`},zO=I.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=FO(LO,n),a=RO[i.placedSide];return(0,L.jsx)(`span`,{ref:i.onArrowChange,style:{position:`absolute`,left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:``,right:`0 0`,bottom:`center 0`,left:`100% 0`}[i.placedSide],transform:{top:`translateY(100%)`,right:`translateY(50%) rotate(90deg) translateX(-50%)`,bottom:`rotate(180deg)`,left:`translateY(50%) rotate(-90deg) translateX(50%)`}[i.placedSide],visibility:i.shouldHideArrow?`hidden`:void 0},children:(0,L.jsx)(CO,{...r,ref:t,style:{...r.style,display:`block`}})})});zO.displayName=LO;function BO(e){return e!==null}var VO=e=>({name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=HO(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}});function HO(e){let[t,n=`center`]=e.split(`-`);return[t,n]}var UO=AO,WO=MO,GO=IO,KO=zO,qO=`Portal`,JO=I.forwardRef((e,t)=>{let{container:n,...r}=e,[i,a]=I.useState(!1);aE(()=>a(!0),[]);let o=n||i&&globalThis?.document?.body;return o?vS.createPortal((0,L.jsx)(CT.div,{...r,ref:t}),o):null});JO.displayName=qO;function YO(e,t){return I.useReducer((e,n)=>t[e][n]??e,e)}var XO=e=>{let{present:t,children:n}=e,r=ZO(t),i=typeof n==`function`?n({present:r.isPresent}):I.Children.only(n),a=fT(r.ref,$O(i));return typeof n==`function`||r.isPresent?I.cloneElement(i,{ref:a}):null};XO.displayName=`Presence`;function ZO(e){let[t,n]=I.useState(),r=I.useRef(null),i=I.useRef(e),a=I.useRef(`none`),[o,s]=YO(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return I.useEffect(()=>{let e=QO(r.current);a.current=o===`mounted`?e:`none`},[o]),aE(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,o=QO(t);e?s(`MOUNT`):o===`none`||t?.display===`none`?s(`UNMOUNT`):s(n&&r!==o?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,s]),aE(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=a=>{let o=QO(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&o&&(s(`ANIMATION_END`),!i.current)){let r=t.style.animationFillMode;t.style.animationFillMode=`forwards`,e=n.setTimeout(()=>{t.style.animationFillMode===`forwards`&&(t.style.animationFillMode=r)})}},c=e=>{e.target===t&&(a.current=QO(r.current))};return t.addEventListener(`animationstart`,c),t.addEventListener(`animationcancel`,o),t.addEventListener(`animationend`,o),()=>{n.clearTimeout(e),t.removeEventListener(`animationstart`,c),t.removeEventListener(`animationcancel`,o),t.removeEventListener(`animationend`,o)}}else s(`ANIMATION_END`)},[t,s]),{isPresent:[`mounted`,`unmountSuspended`].includes(o),ref:I.useCallback(e=>{r.current=e?getComputedStyle(e):null,n(e)},[])}}function QO(e){return e?.animationName||`none`}function $O(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var ek=I.useInsertionEffect||aE;function tk({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[i,a,o]=nk({defaultProp:t,onChange:n}),s=e!==void 0,c=s?e:i;{let t=I.useRef(e!==void 0);I.useEffect(()=>{let e=t.current;e!==s&&console.warn(`${r} is changing from ${e?`controlled`:`uncontrolled`} to ${s?`controlled`:`uncontrolled`}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),t.current=s},[s,r])}return[c,I.useCallback(t=>{if(s){let n=rk(t)?t(e):t;n!==e&&o.current?.(n)}else a(t)},[s,e,a,o])]}function nk({defaultProp:e,onChange:t}){let[n,r]=I.useState(e),i=I.useRef(n),a=I.useRef(t);return ek(()=>{a.current=t},[t]),I.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}function rk(e){return typeof e==`function`}var ik=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},ak=new WeakMap,ok=new WeakMap,sk={},ck=0,lk=function(e){return e&&(e.host||lk(e.parentNode))},uk=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=lk(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},dk=function(e,t,n,r){var i=uk(t,Array.isArray(e)?e:[e]);sk[n]||(sk[n]=new WeakMap);var a=sk[n],o=[],s=new Set,c=new Set(i),l=function(e){!e||s.has(e)||(s.add(e),l(e.parentNode))};i.forEach(l);var u=function(e){!e||c.has(e)||Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=t!==null&&t!==`false`,c=(ak.get(e)||0)+1,l=(a.get(e)||0)+1;ak.set(e,c),a.set(e,l),o.push(e),c===1&&i&&ok.set(e,!0),l===1&&e.setAttribute(n,`true`),i||e.setAttribute(r,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return u(t),s.clear(),ck++,function(){o.forEach(function(e){var t=ak.get(e)-1,i=a.get(e)-1;ak.set(e,t),a.set(e,i),t||(ok.has(e)||e.removeAttribute(r),ok.delete(e)),i||e.removeAttribute(n)}),ck--,ck||(ak=new WeakMap,ak=new WeakMap,ok=new WeakMap,sk={})}},fk=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||ik(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),dk(r,i,n,`aria-hidden`)):function(){return null}},pk=function(){return pk=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},pk.apply(this,arguments)};function mk(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function hk(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var gk=`right-scroll-bar-position`,_k=`width-before-scroll-bar`,vk=`with-scroll-bars-hidden`,yk=`--removed-body-scroll-bar-size`;function bk(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function xk(e,t){var n=(0,I.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0];return n.callback=t,n.facade}var Sk=typeof window<`u`?I.useLayoutEffect:I.useEffect,Ck=new WeakMap;function wk(e,t){var n=xk(t||null,function(t){return e.forEach(function(e){return bk(e,t)})});return Sk(function(){var t=Ck.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||bk(e,null)}),i.forEach(function(e){r.has(e)||bk(e,a)})}Ck.set(n,e)},[e]),n}function Tk(e){return e}function Ek(e,t){t===void 0&&(t=Tk);var n=[],r=!1;return{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}}}function Dk(e){e===void 0&&(e={});var t=Ek(null);return t.options=pk({async:!0,ssr:!1},e),t}var Ok=function(e){var t=e.sideCar,n=mk(e,[`sideCar`]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error(`Sidecar medium not found`);return I.createElement(r,pk({},n))};Ok.isSideCarExport=!0;function kk(e,t){return e.useMedium(t),Ok}var Ak=Dk(),jk=function(){},Mk=I.forwardRef(function(e,t){var n=I.useRef(null),r=I.useState({onScrollCapture:jk,onWheelCapture:jk,onTouchMoveCapture:jk}),i=r[0],a=r[1],o=e.forwardProps,s=e.children,c=e.className,l=e.removeScrollBar,u=e.enabled,d=e.shards,f=e.sideCar,p=e.noRelative,m=e.noIsolation,h=e.inert,g=e.allowPinchZoom,_=e.as,v=_===void 0?`div`:_,y=e.gapMode,b=mk(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),x=f,S=wk([n,t]),C=pk(pk({},b),i);return I.createElement(I.Fragment,null,u&&I.createElement(x,{sideCar:Ak,removeScrollBar:l,shards:d,noRelative:p,noIsolation:m,inert:h,setCallbacks:a,allowPinchZoom:!!g,lockRef:n,gapMode:y}),o?I.cloneElement(I.Children.only(s),pk(pk({},C),{ref:S})):I.createElement(v,pk({},C,{className:c,ref:S}),s))});Mk.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Mk.classNames={fullWidth:_k,zeroRight:gk};var Nk,Pk=function(){if(Nk)return Nk;if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function Fk(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=Pk();return t&&e.setAttribute(`nonce`,t),e}function Ik(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Lk(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var Rk=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Fk())&&(Ik(t,n),Lk(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},zk=function(){var e=Rk();return function(t,n){I.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Bk=function(){var e=zk();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},Vk={left:0,top:0,right:0,gap:0},Hk=function(e){return parseInt(e||``,10)||0},Uk=function(e){var t=window.getComputedStyle(document.body),n=t[e===`padding`?`paddingLeft`:`marginLeft`],r=t[e===`padding`?`paddingTop`:`marginTop`],i=t[e===`padding`?`paddingRight`:`marginRight`];return[Hk(n),Hk(r),Hk(i)]},Wk=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return Vk;var t=Uk(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Gk=Bk(),Kk=`data-scroll-locked`,qk=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),`
|
|
88
|
-
.${vk} {
|
|
89
|
-
overflow: hidden ${r};
|
|
90
|
-
padding-right: ${s}px ${r};
|
|
91
|
-
}
|
|
92
|
-
body[${Kk}] {
|
|
93
|
-
overflow: hidden ${r};
|
|
94
|
-
overscroll-behavior: contain;
|
|
95
|
-
${[t&&`position: relative ${r};`,n===`margin`&&`
|
|
96
|
-
padding-left: ${i}px;
|
|
97
|
-
padding-top: ${a}px;
|
|
98
|
-
padding-right: ${o}px;
|
|
99
|
-
margin-left:0;
|
|
100
|
-
margin-top:0;
|
|
101
|
-
margin-right: ${s}px ${r};
|
|
102
|
-
`,n===`padding`&&`padding-right: ${s}px ${r};`].filter(Boolean).join(``)}
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.${gk} {
|
|
106
|
-
right: ${s}px ${r};
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
.${_k} {
|
|
110
|
-
margin-right: ${s}px ${r};
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.${gk} .${gk} {
|
|
114
|
-
right: 0 ${r};
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
.${_k} .${_k} {
|
|
118
|
-
margin-right: 0 ${r};
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
body[${Kk}] {
|
|
122
|
-
${yk}: ${s}px;
|
|
123
|
-
}
|
|
124
|
-
`},Jk=function(){var e=parseInt(document.body.getAttribute(`data-scroll-locked`)||`0`,10);return isFinite(e)?e:0},Yk=function(){I.useEffect(function(){return document.body.setAttribute(Kk,(Jk()+1).toString()),function(){var e=Jk()-1;e<=0?document.body.removeAttribute(Kk):document.body.setAttribute(Kk,e.toString())}},[])},Xk=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?`margin`:r;Yk();var a=I.useMemo(function(){return Wk(i)},[i]);return I.createElement(Gk,{styles:qk(a,!t,i,n?``:`!important`)})},Zk=!1;if(typeof window<`u`)try{var Qk=Object.defineProperty({},`passive`,{get:function(){return Zk=!0,!0}});window.addEventListener(`test`,Qk,Qk),window.removeEventListener(`test`,Qk,Qk)}catch{Zk=!1}var $k=Zk?{passive:!1}:!1,eA=function(e){return e.tagName===`TEXTAREA`},tA=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!eA(e)&&n[t]===`visible`)},nA=function(e){return tA(e,`overflowY`)},rA=function(e){return tA(e,`overflowX`)},iA=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),sA(e,r)){var i=cA(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},aA=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},oA=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},sA=function(e,t){return e===`v`?nA(t):rA(t)},cA=function(e,t){return e===`v`?aA(t):oA(t)},lA=function(e,t){return e===`h`&&t===`rtl`?-1:1},uA=function(e,t,n,r,i){var a=lA(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,c=t.contains(s),l=!1,u=o>0,d=0,f=0;do{if(!s)break;var p=cA(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&sA(e,s)&&(d+=h,f+=m);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(i&&Math.abs(d)<1||!i&&o>d)||!u&&(i&&Math.abs(f)<1||!i&&-o>f))&&(l=!0),l},dA=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},fA=function(e){return[e.deltaX,e.deltaY]},pA=function(e){return e&&`current`in e?e.current:e},mA=function(e,t){return e[0]===t[0]&&e[1]===t[1]},hA=function(e){return`
|
|
125
|
-
.block-interactivity-${e} {pointer-events: none;}
|
|
126
|
-
.allow-interactivity-${e} {pointer-events: all;}
|
|
127
|
-
`},gA=0,_A=[];function vA(e){var t=I.useRef([]),n=I.useRef([0,0]),r=I.useRef(),i=I.useState(gA++)[0],a=I.useState(Bk)[0],o=I.useRef(e);I.useEffect(function(){o.current=e},[e]),I.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${i}`);var t=hk([e.lockRef.current],(e.shards||[]).map(pA),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(`allow-interactivity-${i}`)}),function(){document.body.classList.remove(`block-interactivity-${i}`),t.forEach(function(e){return e.classList.remove(`allow-interactivity-${i}`)})}}},[e.inert,e.lockRef.current,e.shards]);var s=I.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!o.current.allowPinchZoom;var i=dA(e),a=n.current,s=`deltaX`in e?e.deltaX:a[0]-i[0],c=`deltaY`in e?e.deltaY:a[1]-i[1],l,u=e.target,d=Math.abs(s)>Math.abs(c)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=iA(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=iA(d,u)),!m)return!1;if(!r.current&&`changedTouches`in e&&(s||c)&&(r.current=l),!l)return!0;var h=r.current||l;return uA(h,t,e,h===`h`?s:c,!0)},[]),c=I.useCallback(function(e){var n=e;if(!(!_A.length||_A[_A.length-1]!==a)){var r=`deltaY`in n?fA(n):dA(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&mA(e.delta,r)})[0];if(i&&i.should){n.cancelable&&n.preventDefault();return}if(!i){var c=(o.current.shards||[]).map(pA).filter(Boolean).filter(function(e){return e.contains(n.target)});(c.length>0?s(n,c[0]):!o.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),l=I.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:yA(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),u=I.useCallback(function(e){n.current=dA(e),r.current=void 0},[]),d=I.useCallback(function(t){l(t.type,fA(t),t.target,s(t,e.lockRef.current))},[]),f=I.useCallback(function(t){l(t.type,dA(t),t.target,s(t,e.lockRef.current))},[]);I.useEffect(function(){return _A.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener(`wheel`,c,$k),document.addEventListener(`touchmove`,c,$k),document.addEventListener(`touchstart`,u,$k),function(){_A=_A.filter(function(e){return e!==a}),document.removeEventListener(`wheel`,c,$k),document.removeEventListener(`touchmove`,c,$k),document.removeEventListener(`touchstart`,u,$k)}},[]);var p=e.removeScrollBar,m=e.inert;return I.createElement(I.Fragment,null,m?I.createElement(a,{styles:hA(i)}):null,p?I.createElement(Xk,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function yA(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var bA=kk(Ak,vA),xA=I.forwardRef(function(e,t){return I.createElement(Mk,pk({},e,{ref:t,sideCar:bA}))});xA.classNames=Mk.classNames;var SA=`Popover`,[CA,wA]=mT(SA,[DO]),TA=DO(),[EA,DA]=CA(SA),OA=e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!1}=e,s=TA(t),c=I.useRef(null),[l,u]=I.useState(!1),[d,f]=tk({prop:r,defaultProp:i??!1,onChange:a,caller:SA});return(0,L.jsx)(UO,{...s,children:(0,L.jsx)(EA,{scope:t,contentId:cE(),triggerRef:c,open:d,onOpenChange:f,onOpenToggle:I.useCallback(()=>f(e=>!e),[f]),hasCustomAnchor:l,onCustomAnchorAdd:I.useCallback(()=>u(!0),[]),onCustomAnchorRemove:I.useCallback(()=>u(!1),[]),modal:o,children:n})})};OA.displayName=SA;var kA=`PopoverAnchor`,AA=I.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=DA(kA,n),a=TA(n),{onCustomAnchorAdd:o,onCustomAnchorRemove:s}=i;return I.useEffect(()=>(o(),()=>s()),[o,s]),(0,L.jsx)(WO,{...a,...r,ref:t})});AA.displayName=kA;var jA=`PopoverTrigger`,MA=I.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=DA(jA,n),a=TA(n),o=fT(t,i.triggerRef),s=(0,L.jsx)(CT.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.contentId,"data-state":qA(i.open),...r,ref:o,onClick:lT(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?s:(0,L.jsx)(WO,{asChild:!0,...a,children:s})});MA.displayName=jA;var NA=`PopoverPortal`,[PA,FA]=CA(NA,{forceMount:void 0}),IA=e=>{let{__scopePopover:t,forceMount:n,children:r,container:i}=e,a=DA(NA,t);return(0,L.jsx)(PA,{scope:t,forceMount:n,children:(0,L.jsx)(XO,{present:n||a.open,children:(0,L.jsx)(JO,{asChild:!0,container:i,children:r})})})};IA.displayName=NA;var LA=`PopoverContent`,RA=I.forwardRef((e,t)=>{let n=FA(LA,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,a=DA(LA,e.__scopePopover);return(0,L.jsx)(XO,{present:r||a.open,children:a.modal?(0,L.jsx)(BA,{...i,ref:t}):(0,L.jsx)(VA,{...i,ref:t})})});RA.displayName=LA;var zA=gT(`PopoverContent.RemoveScroll`),BA=I.forwardRef((e,t)=>{let n=DA(LA,e.__scopePopover),r=I.useRef(null),i=fT(t,r),a=I.useRef(!1);return I.useEffect(()=>{let e=r.current;if(e)return fk(e)},[]),(0,L.jsx)(xA,{as:zA,allowPinchZoom:!0,children:(0,L.jsx)(HA,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:lT(e.onCloseAutoFocus,e=>{e.preventDefault(),a.current||n.triggerRef.current?.focus()}),onPointerDownOutside:lT(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;a.current=t.button===2||n},{checkForDefaultPrevented:!1}),onFocusOutside:lT(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),VA=I.forwardRef((e,t)=>{let n=DA(LA,e.__scopePopover),r=I.useRef(!1),i=I.useRef(!1);return(0,L.jsx)(HA,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})}),HA=I.forwardRef((e,t)=>{let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:o,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onInteractOutside:u,...d}=e,f=DA(LA,n),p=TA(n);return VT(),(0,L.jsx)(qT,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,L.jsx)(NT,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:u,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onDismiss:()=>f.onOpenChange(!1),children:(0,L.jsx)(GO,{"data-state":qA(f.open),role:`dialog`,id:f.contentId,...p,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-popover-content-available-width":`var(--radix-popper-available-width)`,"--radix-popover-content-available-height":`var(--radix-popper-available-height)`,"--radix-popover-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-popover-trigger-height":`var(--radix-popper-anchor-height)`}})})})}),UA=`PopoverClose`,WA=I.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=DA(UA,n);return(0,L.jsx)(CT.button,{type:`button`,...r,ref:t,onClick:lT(e.onClick,()=>i.onOpenChange(!1))})});WA.displayName=UA;var GA=`PopoverArrow`,KA=I.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=TA(n);return(0,L.jsx)(KO,{...i,...r,ref:t})});KA.displayName=GA;function qA(e){return e?`open`:`closed`}var JA=OA,YA=AA,XA=IA,ZA=RA,QA=KA;function $A(e){let t=e+`CollectionProvider`,[n,r]=mT(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=e=>{let{scope:t,children:n}=e,r=I.useRef(null),a=I.useRef(new Map).current;return(0,L.jsx)(i,{scope:t,itemMap:a,collectionRef:r,children:n})};o.displayName=t;let s=e+`CollectionSlot`,c=gT(s),l=I.forwardRef((e,t)=>{let{scope:n,children:r}=e;return(0,L.jsx)(c,{ref:fT(t,a(s,n).collectionRef),children:r})});l.displayName=s;let u=e+`CollectionItemSlot`,d=`data-radix-collection-item`,f=gT(u),p=I.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=I.useRef(null),s=fT(t,o),c=a(u,n);return I.useEffect(()=>(c.itemMap.set(o,{ref:o,...i}),()=>void c.itemMap.delete(o))),(0,L.jsx)(f,{[d]:``,ref:s,children:r})});p.displayName=u;function m(t){let n=a(e+`CollectionConsumer`,t);return I.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${d}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return[{Provider:o,Slot:l,ItemSlot:p},m,r]}var ej=I.createContext(void 0);function tj(e){let t=I.useContext(ej);return e||t||`ltr`}var nj=`rovingFocusGroup.onEntryFocus`,rj={bubbles:!1,cancelable:!0},ij=`RovingFocusGroup`,[aj,oj,sj]=$A(ij),[cj,lj]=mT(ij,[sj]),[uj,dj]=cj(ij),fj=I.forwardRef((e,t)=>(0,L.jsx)(aj.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,L.jsx)(aj.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,L.jsx)(pj,{...e,ref:t})})}));fj.displayName=ij;var pj=I.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:a,currentTabStopId:o,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:c,onEntryFocus:l,preventScrollOnEntryFocus:u=!1,...d}=e,f=I.useRef(null),p=fT(t,f),m=tj(a),[h,g]=tk({prop:o,defaultProp:s??null,onChange:c,caller:ij}),[_,v]=I.useState(!1),y=TT(l),b=oj(n),x=I.useRef(!1),[S,C]=I.useState(0);return I.useEffect(()=>{let e=f.current;if(e)return e.addEventListener(nj,y),()=>e.removeEventListener(nj,y)},[y]),(0,L.jsx)(uj,{scope:n,orientation:r,dir:m,loop:i,currentTabStopId:h,onItemFocus:I.useCallback(e=>g(e),[g]),onItemShiftTab:I.useCallback(()=>v(!0),[]),onFocusableItemAdd:I.useCallback(()=>C(e=>e+1),[]),onFocusableItemRemove:I.useCallback(()=>C(e=>e-1),[]),children:(0,L.jsx)(CT.div,{tabIndex:_||S===0?-1:0,"data-orientation":r,...d,ref:p,style:{outline:`none`,...e.style},onMouseDown:lT(e.onMouseDown,()=>{x.current=!0}),onFocus:lT(e.onFocus,e=>{let t=!x.current;if(e.target===e.currentTarget&&t&&!_){let t=new CustomEvent(nj,rj);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=b().filter(e=>e.focusable);yj([e.find(e=>e.active),e.find(e=>e.id===h),...e].filter(Boolean).map(e=>e.ref.current),u)}}x.current=!1}),onBlur:lT(e.onBlur,()=>v(!1))})})}),mj=`RovingFocusGroupItem`,hj=I.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:a,children:o,...s}=e,c=cE(),l=a||c,u=dj(mj,n),d=u.currentTabStopId===l,f=oj(n),{onFocusableItemAdd:p,onFocusableItemRemove:m,currentTabStopId:h}=u;return I.useEffect(()=>{if(r)return p(),()=>m()},[r,p,m]),(0,L.jsx)(aj.ItemSlot,{scope:n,id:l,focusable:r,active:i,children:(0,L.jsx)(CT.span,{tabIndex:d?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:lT(e.onMouseDown,e=>{r?u.onItemFocus(l):e.preventDefault()}),onFocus:lT(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:lT(e.onKeyDown,e=>{if(e.key===`Tab`&&e.shiftKey){u.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=vj(e,u.orientation,u.dir);if(t!==void 0){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=f().filter(e=>e.focusable).map(e=>e.ref.current);if(t===`last`)n.reverse();else if(t===`prev`||t===`next`){t===`prev`&&n.reverse();let r=n.indexOf(e.currentTarget);n=u.loop?bj(n,r+1):n.slice(r+1)}setTimeout(()=>yj(n))}}),children:typeof o==`function`?o({isCurrentTabStop:d,hasTabStop:h!=null}):o})})});hj.displayName=mj;var gj={ArrowLeft:`prev`,ArrowUp:`prev`,ArrowRight:`next`,ArrowDown:`next`,PageUp:`first`,Home:`first`,PageDown:`last`,End:`last`};function _j(e,t){return t===`rtl`?e===`ArrowLeft`?`ArrowRight`:e===`ArrowRight`?`ArrowLeft`:e:e}function vj(e,t,n){let r=_j(e.key,n);if(!(t===`vertical`&&[`ArrowLeft`,`ArrowRight`].includes(r))&&!(t===`horizontal`&&[`ArrowUp`,`ArrowDown`].includes(r)))return gj[r]}function yj(e,t=!1){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function bj(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var xj=fj,Sj=hj,Cj=`Separator`,wj=`horizontal`,Tj=[`horizontal`,`vertical`],Ej=I.forwardRef((e,t)=>{let{decorative:n,orientation:r=wj,...i}=e,a=Dj(r)?r:wj,o=n?{role:`none`}:{"aria-orientation":a===`vertical`?a:void 0,role:`separator`};return(0,L.jsx)(CT.div,{"data-orientation":a,...o,...i,ref:t})});Ej.displayName=Cj;function Dj(e){return Tj.includes(e)}var Oj=Ej,kj=`Toggle`,Aj=I.forwardRef((e,t)=>{let{pressed:n,defaultPressed:r,onPressedChange:i,...a}=e,[o,s]=tk({prop:n,onChange:i,defaultProp:r??!1,caller:kj});return(0,L.jsx)(CT.button,{type:`button`,"aria-pressed":o,"data-state":o?`on`:`off`,"data-disabled":e.disabled?``:void 0,...a,ref:t,onClick:lT(e.onClick,()=>{e.disabled||s(!o)})})});Aj.displayName=kj;var jj=`ToggleGroup`,[Mj,Nj]=mT(jj,[lj]),Pj=lj(),Fj=I.forwardRef((e,t)=>{let{type:n,...r}=e;if(n===`single`)return(0,L.jsx)(Rj,{...r,ref:t});if(n===`multiple`)return(0,L.jsx)(zj,{...r,ref:t});throw Error(`Missing prop \`type\` expected on \`${jj}\``)});Fj.displayName=jj;var[Ij,Lj]=Mj(jj),Rj=I.forwardRef((e,t)=>{let{value:n,defaultValue:r,onValueChange:i=()=>{},...a}=e,[o,s]=tk({prop:n,defaultProp:r??``,onChange:i,caller:jj});return(0,L.jsx)(Ij,{scope:e.__scopeToggleGroup,type:`single`,value:I.useMemo(()=>o?[o]:[],[o]),onItemActivate:s,onItemDeactivate:I.useCallback(()=>s(``),[s]),children:(0,L.jsx)(Hj,{...a,ref:t})})}),zj=I.forwardRef((e,t)=>{let{value:n,defaultValue:r,onValueChange:i=()=>{},...a}=e,[o,s]=tk({prop:n,defaultProp:r??[],onChange:i,caller:jj}),c=I.useCallback(e=>s((t=[])=>[...t,e]),[s]),l=I.useCallback(e=>s((t=[])=>t.filter(t=>t!==e)),[s]);return(0,L.jsx)(Ij,{scope:e.__scopeToggleGroup,type:`multiple`,value:o,onItemActivate:c,onItemDeactivate:l,children:(0,L.jsx)(Hj,{...a,ref:t})})});Fj.displayName=jj;var[Bj,Vj]=Mj(jj),Hj=I.forwardRef((e,t)=>{let{__scopeToggleGroup:n,disabled:r=!1,rovingFocus:i=!0,orientation:a,dir:o,loop:s=!0,...c}=e,l=Pj(n),u=tj(o),d={role:`group`,dir:u,...c};return(0,L.jsx)(Bj,{scope:n,rovingFocus:i,disabled:r,children:i?(0,L.jsx)(xj,{asChild:!0,...l,orientation:a,dir:u,loop:s,children:(0,L.jsx)(CT.div,{...d,ref:t})}):(0,L.jsx)(CT.div,{...d,ref:t})})}),Uj=`ToggleGroupItem`,Wj=I.forwardRef((e,t)=>{let n=Lj(Uj,e.__scopeToggleGroup),r=Vj(Uj,e.__scopeToggleGroup),i=Pj(e.__scopeToggleGroup),a=n.value.includes(e.value),o=r.disabled||e.disabled,s={...e,pressed:a,disabled:o},c=I.useRef(null);return r.rovingFocus?(0,L.jsx)(Sj,{asChild:!0,...i,focusable:!o,active:a,ref:c,children:(0,L.jsx)(Gj,{...s,ref:t})}):(0,L.jsx)(Gj,{...s,ref:t})});Wj.displayName=Uj;var Gj=I.forwardRef((e,t)=>{let{__scopeToggleGroup:n,value:r,...i}=e,a=Lj(Uj,n),o={role:`radio`,"aria-checked":e.pressed,"aria-pressed":void 0};return(0,L.jsx)(Aj,{...a.type===`single`?o:void 0,...i,ref:t,onPressedChange:e=>{e?a.onItemActivate(r):a.onItemDeactivate(r)}})}),Kj=Fj,qj=Wj,Jj=`Toolbar`,[Yj,Xj]=mT(Jj,[lj,Nj]),Zj=lj(),Qj=Nj(),[$j,eM]=Yj(Jj),tM=I.forwardRef((e,t)=>{let{__scopeToolbar:n,orientation:r=`horizontal`,dir:i,loop:a=!0,...o}=e,s=Zj(n),c=tj(i);return(0,L.jsx)($j,{scope:n,orientation:r,dir:c,children:(0,L.jsx)(xj,{asChild:!0,...s,orientation:r,dir:c,loop:a,children:(0,L.jsx)(CT.div,{role:`toolbar`,"aria-orientation":r,dir:c,...o,ref:t})})})});tM.displayName=Jj;var nM=`ToolbarSeparator`,rM=I.forwardRef((e,t)=>{let{__scopeToolbar:n,...r}=e,i=eM(nM,n);return(0,L.jsx)(Oj,{orientation:i.orientation===`horizontal`?`vertical`:`horizontal`,...r,ref:t})});rM.displayName=nM;var iM=`ToolbarButton`,aM=I.forwardRef((e,t)=>{let{__scopeToolbar:n,...r}=e,i=Zj(n);return(0,L.jsx)(Sj,{asChild:!0,...i,focusable:!e.disabled,children:(0,L.jsx)(CT.button,{type:`button`,...r,ref:t})})});aM.displayName=iM;var oM=`ToolbarLink`,sM=I.forwardRef((e,t)=>{let{__scopeToolbar:n,...r}=e,i=Zj(n);return(0,L.jsx)(Sj,{asChild:!0,...i,focusable:!0,children:(0,L.jsx)(CT.a,{...r,ref:t,onKeyDown:lT(e.onKeyDown,e=>{e.key===` `&&e.currentTarget.click()})})})});sM.displayName=oM;var cM=`ToolbarToggleGroup`,lM=I.forwardRef((e,t)=>{let{__scopeToolbar:n,...r}=e,i=eM(cM,n),a=Qj(n);return(0,L.jsx)(Kj,{"data-orientation":i.orientation,dir:i.dir,...a,...r,ref:t,rovingFocus:!1})});lM.displayName=cM;var uM=`ToolbarToggleItem`,dM=I.forwardRef((e,t)=>{let{__scopeToolbar:n,...r}=e,i=Qj(n);return(0,L.jsx)(aM,{asChild:!0,__scopeToolbar:e.__scopeToolbar,children:(0,L.jsx)(qj,{...i,...r,ref:t})})});dM.displayName=uM;var fM=tM,pM=rM,mM=aM,hM=lM,gM=dM;function _M(e,t){return e===null||e===t?!1:e.dataset.editorDialog!==void 0||e.dataset.toolbarItem!==void 0||e.dataset.editorDropdown?!0:_M(e.parentElement,t)}function vM(){let e=[...Array(256).keys()].map(e=>e.toString(16).padStart(2,`0`)),t=crypto.getRandomValues(new Uint8Array(16));return t[6]=t[6]&15|64,t[8]=t[8]&63|128,[...t.entries()].map(([t,n])=>[4,6,8,10].includes(t)?`-${e[n]}`:e[n]).join(``)}var yM=e=>e===0?`th`:`td`,bM={center:q.centeredCell,left:q.leftAlignedCell,right:q.rightAlignedCell},xM=({mdastNode:e,parentEditor:t,lexicalTable:n})=>{let[r,i]=I.useState(null),[a,o]=wn(Cx,Pb),s=I.useMemo(()=>e=>(e.__cacheKey??=vM(),e.__cacheKey),[]),c=I.useCallback(e=>{let r=n.getColCount();if(e===null){i(null);return}let[a,o]=e;if(a>r-1&&(a=0,o++),a<0&&(a=r-1,--o),o>n.getRowCount()-1){i(null),t.update(()=>{if(n.getLatest().getNextSibling())n.getLatest().selectNext();else{let e=Vs();n.insertAfter(e),e.select()}});return}if(o<0){i(null),t.update(()=>{n.getLatest().selectPrevious()});return}i([a,o])},[n,t]);I.useEffect(()=>{n.focusEmitter.subscribe(c)},[n,c]);let l=I.useCallback(e=>{e.preventDefault(),t.update(()=>{n.addRowToBottom(),i([0,n.getRowCount()])})},[t,n]),u=I.useCallback(e=>{e.preventDefault(),t.update(()=>{n.addColumnToRight(),i([n.getColCount(),0])})},[t,n]),[d,f]=I.useState([-1,-1]),p=I.useCallback(e=>{let t=e.target;for(;t&&![`TH`,`TD`].includes(t.tagName);){if(t===e.currentTarget)return;t=t.parentElement}if(t===null)return;let n=t.parentElement;f([n.parentElement.tagName===`TFOOT`?-1:Array.from(n.children).indexOf(t),t.tagName===`TH`?-1:Array.from(n.parentElement.children).indexOf(n)])},[]),m=Qx();return I.createElement(`table`,{className:q.tableEditor,onMouseOver:p,onMouseLeave:()=>{f([-1,-1])}},I.createElement(`colgroup`,null,o?null:I.createElement(`col`,null),Array.from({length:e.children[0].children.length},(t,n)=>{let r=bM[(e.align??[])[n]??`left`];return I.createElement(`col`,{key:n,className:r})}),o?null:I.createElement(`col`,null)),o||I.createElement(`thead`,null,I.createElement(`tr`,null,I.createElement(`th`,{className:q.tableToolsColumn}),Array.from({length:e.children[0].children.length},(r,i)=>I.createElement(`th`,{key:i,"data-tool-cell":!0},I.createElement(wM,{setActiveCellWithBoundaries:c,parentEditor:t,colIndex:i,highlightedCoordinates:d,lexicalTable:n,align:(e.align??[])[i]}))),I.createElement(`th`,{className:q.tableToolsColumn,"data-tool-cell":!0},I.createElement(`button`,{className:q.iconButton,type:`button`,title:m(`table.deleteTable`,`Delete table`),onClick:e=>{e.preventDefault(),t.update(()=>{n.selectNext(),n.remove()})}},a(`delete_small`))))),I.createElement(`tbody`,null,e.children.map((i,l)=>{let f=yM(l);return I.createElement(`tr`,{key:l},o||I.createElement(f,{className:q.toolCell,"data-tool-cell":!0},I.createElement(TM,{setActiveCellWithBoundaries:c,parentEditor:t,rowIndex:l,highlightedCoordinates:d,lexicalTable:n})),i.children.map((i,a)=>I.createElement(SM,{align:e.align?.[a],key:s(i),contents:i.children,setActiveCell:c,rowIndex:l,colIndex:a,lexicalTable:n,parentEditor:t,activeCell:o?[-1,-1]:r})),o||l===0&&I.createElement(`th`,{rowSpan:n.getRowCount(),"data-tool-cell":!0},I.createElement(`button`,{type:`button`,className:q.addColumnButton,onClick:u},a(`add_column`))))})),o||I.createElement(`tfoot`,null,I.createElement(`tr`,null,I.createElement(`th`,null),I.createElement(`th`,{colSpan:n.getColCount(),"data-tool-cell":!0},I.createElement(`button`,{type:`button`,className:q.addRowButton,onClick:l},a(`add_row`))),I.createElement(`th`,null))))},SM=({align:e,...t})=>{let{activeCell:n,setActiveCell:r}=t,i=!!(n&&n[0]===t.colIndex&&n[1]===t.rowIndex),a=bM[e??`left`],o=yM(t.rowIndex);return I.createElement(o,{className:a,"data-active":i,onClick:()=>{r([t.colIndex,t.rowIndex])}},I.createElement(CM,{...t,focus:i}))},CM=({focus:e,setActiveCell:t,parentEditor:n,lexicalTable:r,contents:i,colIndex:a,rowIndex:o})=>{let[s,c,l,u,d,f,p,m,h]=wn(Jb,Qb,Yb,nx,rx,ix,tx,Ab,Rx),[g]=I.useState(()=>{let e=Ws({nodes:l,theme:Ob,namespace:`TableCellEditor`});return e.update(()=>{Zy({root:Sc(),mdastRoot:{type:`root`,children:[{type:`paragraph`,children:i}]},visitors:s,jsxComponentDescriptors:u,directiveDescriptors:d,codeBlockEditorDescriptors:f})}),e}),_=I.useCallback(e=>{g.getEditorState().read(()=>{let e=m_({root:Sc(),jsxComponentDescriptors:u,visitors:c,jsxIsAvailable:p});n.update(()=>{r.updateCellContents(a,o,e.children[0].children)},{discrete:!0}),n.dispatchCommand(kb,void 0)}),t(e)},[a,g,c,u,p,r,n,o,t]);return I.useEffect(()=>Ju(g.registerCommand($i,e=>(e.preventDefault(),_(e.shiftKey?[a-1,o]:[a+1,o]),!0),4),g.registerCommand(ha,()=>(t([a,o]),!1),1),g.registerCommand(Ji,e=>(e?.preventDefault(),_(e?.shiftKey?[a,o-1]:[a,o+1]),!0),4),g.registerCommand(ga,e=>{let t=e.relatedTarget;return _M(t,m.getRootElement())?!1:(_(null),!0)},0),g.registerCommand(kb,()=>(_(null),!0),0)),[a,g,m,o,_,t]),I.useEffect(()=>{e&&g.focus()},[e,g]),I.createElement(cT,{initialEditor:g},I.createElement(xS,{contentEditable:I.createElement(sS,null),placeholder:I.createElement(`div`,null),ErrorBoundary:pS}),h.map((e,t)=>I.createElement(e,{key:t})),I.createElement(Cd,null))},wM=({parentEditor:e,highlightedCoordinates:t,align:n,lexicalTable:r,colIndex:i,setActiveCellWithBoundaries:a})=>{let[o,s]=wn(ax,Cx),c=I.useCallback(t=>{e.update(()=>{r.insertColumnAt(t)}),a([t,0])},[e,r,a]),l=I.useCallback(t=>{e.update(()=>{r.deleteColumnAt(t)})},[e,r]),u=I.useCallback((t,n)=>{e.update(()=>{r.setColumnAlign(t,n)})},[e,r]),d=Qx();return I.createElement(JA,null,I.createElement(MA,{className:q.tableColumnEditorTrigger,"data-active":t[0]===i+1,title:d(`table.columnMenu`,`Column menu`)},s(`more_horiz`)),I.createElement(XA,{container:o?.current},I.createElement(RA,{className:(0,NC.default)(q.tableColumnEditorPopoverContent),onOpenAutoFocus:e=>{e.preventDefault()},sideOffset:5,side:`top`},I.createElement(fM,{className:q.tableColumnEditorToolbar},I.createElement(hM,{className:q.toggleGroupRoot,onValueChange:e=>{u(i,e)},value:n??`left`,type:`single`,"aria-label":d(`table.textAlignment`,`Text alignment`)},I.createElement(gM,{value:`left`,title:d(`table.alignLeft`,`Align left`)},s(`format_align_left`)),I.createElement(gM,{value:`center`,title:d(`table.alignCenter`,`Align center`)},s(`format_align_center`)),I.createElement(gM,{value:`right`,title:d(`table.alignRight`,`Align right`)},s(`format_align_right`))),I.createElement(pM,null),I.createElement(mM,{onClick:c.bind(null,i),title:d(`table.insertColumnLeft`,`Insert a column to the left of this one`)},s(`insert_col_left`)),I.createElement(mM,{onClick:c.bind(null,i+1),title:d(`table.insertColumnRight`,`Insert a column to the right of this one`)},s(`insert_col_right`)),I.createElement(mM,{onClick:l.bind(null,i),title:d(`table.deleteColumn`,`Delete this column`)},s(`delete_small`))),I.createElement(QA,{className:q.popoverArrow}))))},TM=({parentEditor:e,highlightedCoordinates:t,lexicalTable:n,rowIndex:r,setActiveCellWithBoundaries:i})=>{let[a,o]=wn(ax,Cx),s=I.useCallback(t=>{e.update(()=>{n.insertRowAt(t)}),i([0,t])},[e,n,i]),c=I.useCallback(t=>{e.update(()=>{n.deleteRowAt(t)})},[e,n]),l=Qx();return I.createElement(JA,null,I.createElement(MA,{className:q.tableColumnEditorTrigger,"data-active":t[1]===r,title:l(`table.rowMenu`,`Row menu`)},o(`more_horiz`)),I.createElement(XA,{container:a?.current},I.createElement(RA,{className:(0,NC.default)(q.tableColumnEditorPopoverContent),onOpenAutoFocus:e=>{e.preventDefault()},sideOffset:5,side:`bottom`},I.createElement(fM,{className:q.tableColumnEditorToolbar},I.createElement(mM,{onClick:s.bind(null,r),title:l(`table.insertRowAbove`,`Insert a row above this one`)},o(`insert_row_above`)),I.createElement(mM,{onClick:s.bind(null,r+1),title:l(`table.insertRowBelow`,`Insert a row below this one`)},o(`insert_row_below`)),I.createElement(mM,{onClick:c.bind(null,r),title:l(`table.deleteRow`,`Delete this row`)},o(`delete_small`))),I.createElement(QA,{className:q.popoverArrow}))))},EM=Object.defineProperty,DM=(e,t,n)=>t in e?EM(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,OM=(e,t,n)=>(DM(e,typeof t==`symbol`?t:t+``,n),n),kM={type:`tableCell`,children:[]};function AM(){let e=Mn;return{publish:t=>{e(t)},subscribe:t=>{e=t}}}var jM=class e extends Os{constructor(e,t){super(t),OM(this,`__mdastNode`),OM(this,`focusEmitter`,AM()),this.__mdastNode=e??{type:`table`,children:[]}}static getType(){return`table`}static clone(t){return new e(structuredClone(t.__mdastNode),t.__key)}static importJSON(e){return NM(e.mdastNode)}static importDOM(){return{table:()=>({conversion:PM,priority:3})}}exportJSON(){return{mdastNode:structuredClone(this.__mdastNode),type:`table`,version:1}}getMdastNode(){return this.__mdastNode}getRowCount(){return this.__mdastNode.children.length}getColCount(){return this.__mdastNode.children[0]?.children.length||0}createDOM(){return document.createElement(`div`)}updateDOM(){return!1}updateCellContents(e,t,n){let r=this.getWritable().__mdastNode,i=r.children[t],a=i.children,o=a[e],s=Array.from(a),c={...o,children:n},l={...i,children:s};s[e]=c,r.children[t]=l}insertColumnAt(e){let t=this.getWritable().__mdastNode;for(let n=0;n<t.children.length;n++){let r=t.children[n],i=r.children,a=Array.from(i),o={...r,children:a};a.splice(e,0,structuredClone(kM)),t.children[n]=o}t.align&&t.align.length>0&&t.align.splice(e,0,`left`)}deleteColumnAt(e){let t=this.getWritable().__mdastNode;for(let n=0;n<t.children.length;n++){let r=t.children[n],i=r.children,a=Array.from(i),o={...r,children:a};a.splice(e,1),t.children[n]=o}}insertRowAt(e){let t=this.getWritable().__mdastNode,n={type:`tableRow`,children:Array.from({length:this.getColCount()},()=>structuredClone(kM))};t.children.splice(e,0,n)}deleteRowAt(e){this.getRowCount()===1?(this.selectNext(),this.remove()):this.getWritable().__mdastNode.children.splice(e,1)}addRowToBottom(){this.insertRowAt(this.getRowCount())}addColumnToRight(){this.insertColumnAt(this.getColCount())}setColumnAlign(e,t){let n=this.getWritable().__mdastNode;n.align??=[],n.align[e]=t}decorate(e){return I.createElement(xM,{lexicalTable:this,mdastNode:this.__mdastNode,parentEditor:e})}select(e){this.focusEmitter.publish(e??[0,0])}isInline(){return!1}};function MM(e){return e instanceof jM}function NM(e){return new jM(e)}function PM(e){let t=e.querySelectorAll(`tr`);return{node:new jM({type:`table`,children:Array.from(t).map(e=>({type:`tableRow`,children:Array.from(e.querySelectorAll(`td, th`)).map(e=>({type:`tableCell`,children:[{type:`text`,value:e.textContent}]}))}))})}}var FM={testLexicalNode:MM,visitLexicalNode({actions:e,mdastParent:t,lexicalNode:n}){e.appendToParent(t,n.getMdastNode())}},IM={testNode:`table`,visitNode({mdastNode:e,lexicalParent:t}){t.append(NM(e))}};function LM(e=1,t=1){let n={type:`table`,children:[]};for(let r=0;r<e;r++){let e={type:`tableRow`,children:[]};for(let n=0;n<t;n++)e.children.push({type:`tableCell`,children:[]});n.children.push(e)}return n}var RM=yn(e=>{e.link(e.pipe(RM,En(({rows:e,columns:t})=>()=>NM(LM(e,t)))),Wx)}),zM=Nn({init(e,t){e.pubIn({[dx]:zw(),[ux]:Zw(),[lx]:IM,[cx]:jM,[fx]:FM,[px]:qw({tableCellPadding:t?.tableCellPadding??!0,tablePipeAlign:t?.tablePipeAlign??!0})})}}),BM={testNode:`link`,visitNode({mdastNode:e,actions:t}){t.addAndStepInto(OS(e.url,{title:e.title}))}},VM={testLexicalNode:kS,visitLexicalNode:({lexicalNode:e,actions:t})=>{t.addAndStepInto(`link`,{url:e.getURL(),title:e.getTitle()})}};function HM({validateUrl:e,attributes:t}){let[n]=Ln();return(0,I.useEffect)((()=>{if(!n.hasNodes([ES]))throw Error(`LinkPlugin: LinkNode not registered on editor`);return Ju(n.registerCommand(NS,(n=>{if(n===null)return FS(n),!0;if(typeof n==`string`)return!(e!==void 0&&!e(n))&&(FS(n,t),!0);{let{url:e,target:r,rel:i,title:a}=n;return FS(e,{...t,rel:i,target:r,title:a}),!0}}),1),e===void 0?()=>{}:n.registerCommand(Pi,(r=>{let i=U();if(!H(i)||i.isCollapsed()||!od(r,ClipboardEvent)||r.clipboardData===null)return!1;let a=r.clipboardData.getData(`text`);return!!e(a)&&!i.getNodes().some((e=>W(e)))&&(n.dispatchCommand(NS,{...t,url:a}),r.preventDefault(),!0)}),1))}),[n,e,t]),null}function UM(e,t=(e=>e)){return n=>{let r=e.exec(n);return r===null?null:{index:r.index,length:r[0].length,text:r[0],url:t(r[0])}}}function WM(e,t){for(let n=0;n<t.length;n++){let r=t[n](e);if(r)return r}return null}var GM=/[.,;\s]/;function KM(e){return GM.test(e)}function qM(e){return KM(e[e.length-1])}function JM(e){return KM(e[0])}function YM(e){let t=e.getPreviousSibling();return W(t)&&(t=t.getLastDescendant()),t===null||$a(t)||V(t)&&qM(t.getTextContent())}function XM(e){let t=e.getNextSibling();return W(t)&&(t=t.getFirstDescendant()),t===null||$a(t)||V(t)&&JM(t.getTextContent())}function ZM(e,t,n,r){return(e>0?KM(n[e-1]):YM(r[0]))?t<n.length?KM(n[t]):XM(r[r.length-1]):!1}function QM(e,t,n){let r=[],i=[],a=[],o=0,s=0,c=[...e];for(;c.length>0;){let e=c[0],l=e.getTextContent().length,u=s;s+l<=t?(r.push(e),o+=l):u>=n?a.push(e):i.push(e),s+=l,c.shift()}return[o,r,i,a]}function $M(e,t,n,r){let i=jS(r.url,r.attributes);if(e.length===1){let a,o=e[0];t===0?[a,o]=o.splitText(n):[,a,o]=o.splitText(t,n);let s=_o(r.text);return s.setFormat(a.getFormat()),s.setDetail(a.getDetail()),s.setStyle(a.getStyle()),i.append(s),a.replace(i),o}if(e.length>1){let r=e[0],a,o=r.getTextContent().length;t===0?a=r:[,a]=r.splitText(t);let s=[],c;for(let t=1;t<e.length;t++){let r=e[t],i=r.getTextContent().length,a=o;if(a<n)if(o+i<=n)s.push(r);else{let[e,t]=r.splitText(n-a);s.push(e),c=t}o+=i}let l=U(),u=l?l.getNodes().find(V):void 0,d=_o(a.getTextContent());return d.setFormat(a.getFormat()),d.setDetail(a.getDetail()),d.setStyle(a.getStyle()),i.append(d,...s),u&&u===a&&(H(l)?d.select(l.anchor.offset,l.focus.offset):Oo(l)&&d.select(0,d.getTextContent().length)),a.replace(i),c}}function eN(e,t,n){let r=e.getChildren(),i=r.length;for(let t=0;t<i;t++){let i=r[t];if(!V(i)||!i.isSimpleText())return tN(e),void n(null,e.getURL())}let a=e.getTextContent(),o=WM(a,t);if(o===null||o.text!==a||!YM(e)||!XM(e))return tN(e),void n(null,e.getURL());let s=e.getURL();if(s!==o.url&&(e.setURL(o.url),n(o.url,s)),o.attributes){let t=e.getRel();t!==o.attributes.rel&&(e.setRel(o.attributes.rel||null),n(o.attributes.rel||null,t));let r=e.getTarget();r!==o.attributes.target&&(e.setTarget(o.attributes.target||null),n(o.attributes.target||null,r))}}function tN(e){let t=e.getChildren();for(let n=t.length-1;n>=0;n--)e.insertAfter(t[n]);return e.remove(),t.map((e=>e.getLatest()))}function nN(e,t,n){(0,I.useEffect)((()=>{e.hasNodes([AS])||function(e,...t){let n=new URL(`https://lexical.dev/docs/error`),r=new URLSearchParams;r.append(`code`,e);for(let e of t)r.append(`v`,e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(77);let r=(e,t)=>{n&&n(e,t)};return Ju(e.registerNodeTransform(so,(e=>{let n=e.getParentOrThrow(),i=e.getPreviousSibling();MS(n)&&!n.getIsUnlinked()?eN(n,t,r):kS(n)||(e.isSimpleText()&&(JM(e.getTextContent())||!MS(i))&&(function(e,t,n){let r=[...e],i=r.map((e=>e.getTextContent())).join(``),a,o=i,s=0;for(;(a=WM(o,t))&&a!==null;){let e=a.index,t=e+a.length;if(ZM(s+e,s+t,i,r)){let[i,,o,c]=QM(r,s+e,s+t),l=$M(o,s+e-i,s+t-i,a);r=l?[l,...c]:c,n(a.url,null),s=0}else s+=t;o=o.substring(t)}})(function(e){let t=[e],n=e.getNextSibling();for(;n!==null&&V(n)&&n.isSimpleText()&&(t.push(n),!/[\s]/.test(n.getTextContent()));)n=n.getNextSibling();return t}(e),t,r),(function(e,t,n){let r=e.getPreviousSibling(),i=e.getNextSibling(),a=e.getTextContent();var o;!MS(r)||r.getIsUnlinked()||JM(a)&&(o=a,!(r.isEmailURI()?/^\.[a-zA-Z]{2,}/.test(o):/^\.[a-zA-Z0-9]{1,}/.test(o)))||(r.append(e),eN(r,t,n),n(null,r.getURL())),!MS(i)||i.getIsUnlinked()||qM(a)||(tN(i),eN(i,t,n),n(null,i.getURL()))})(e,t,r))})),e.registerCommand(NS,(e=>{let t=U();return e!==null||!H(t)||t.extract().forEach((e=>{let t=e.getParent();MS(t)&&(t.setIsUnlinked(!t.getIsUnlinked()),t.markDirty())})),!1}),1))}),[e,t,n])}function rN({matchers:e,onChange:t}){let[n]=Ln();return nN(n,e,t),null}var iN=[UM(/((https?:\/\/(www\.)?)|(www\.))[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&//=]*)/,e=>e.startsWith(`http`)?e:`https://${e}`),UM(/(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))/,e=>`mailto:${e}`)],aN=()=>I.createElement(rN,{matchers:iN}),oN=R(!1),sN=Nn({init(e,t){let n=!!t?.disableAutoLink,r=t?.validateUrl?{validateUrl:t.validateUrl}:{},i=()=>I.createElement(I.Fragment,null,I.createElement(HM,{...r}),n?null:I.createElement(aN,null));e.pubIn({[Jx]:`link`,[lx]:BM,[cx]:[ES,AS],[fx]:VM,[oN]:n,[Lx]:i,[zx]:i,[Ax]:i})}});function cN(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var lN=[`color`],uN=(0,I.forwardRef)(function(e,t){var n=e.color,r=n===void 0?`currentColor`:n,i=cN(e,lN);return(0,I.createElement)(`svg`,Object.assign({width:`15`,height:`15`,viewBox:`0 0 15 15`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},i,{ref:t}),(0,I.createElement)(`path`,{d:`M2.5 1H12.5C13.3284 1 14 1.67157 14 2.5V12.5C14 13.3284 13.3284 14 12.5 14H2.5C1.67157 14 1 13.3284 1 12.5V2.5C1 1.67157 1.67157 1 2.5 1ZM2.5 2C2.22386 2 2 2.22386 2 2.5V8.3636L3.6818 6.6818C3.76809 6.59551 3.88572 6.54797 4.00774 6.55007C4.12975 6.55216 4.24568 6.60372 4.32895 6.69293L7.87355 10.4901L10.6818 7.6818C10.8575 7.50607 11.1425 7.50607 11.3182 7.6818L13 9.3636V2.5C13 2.22386 12.7761 2 12.5 2H2.5ZM2 12.5V9.6364L3.98887 7.64753L7.5311 11.4421L8.94113 13H2.5C2.22386 13 2 12.7761 2 12.5ZM12.5 13H10.155L8.48336 11.153L11 8.6364L13 10.6364V12.5C13 12.7761 12.7761 13 12.5 13ZM6.64922 5.5C6.64922 5.03013 7.03013 4.64922 7.5 4.64922C7.96987 4.64922 8.35078 5.03013 8.35078 5.5C8.35078 5.96987 7.96987 6.35078 7.5 6.35078C7.03013 6.35078 6.64922 5.96987 6.64922 5.5ZM7.5 3.74922C6.53307 3.74922 5.74922 4.53307 5.74922 5.5C5.74922 6.46693 6.53307 7.25078 7.5 7.25078C8.46693 7.25078 9.25078 6.46693 9.25078 5.5C9.25078 4.53307 8.46693 3.74922 7.5 3.74922Z`,fill:r,fillRule:`evenodd`,clipRule:`evenodd`}))}),dN=()=>I.createElement(`div`,{className:q.imagePlaceholder},I.createElement(uN,null));function fN(e){let{nodeKey:t,imageSource:n,initialImagePath:r,title:i,alt:a,width:o,height:s}=e,[c,l,u]=wn(lz,Cx,Pb),[d]=Ln(),f=Tn(sz),p=Qx();return I.createElement(`div`,{className:q.editImageToolbar},I.createElement(`button`,{className:q.iconButton,type:`button`,title:p(`imageEditor.deleteImage`,`Delete image`),disabled:u,onClick:e=>{e.preventDefault(),d.update(()=>{var e;(e=gc(t))==null||e.remove()})}},l(`delete_small`)),!c&&I.createElement(`button`,{type:`button`,className:(0,NC.default)(q.iconButton,q.editImageButton),title:p(`imageEditor.editImage`,`Edit image`),disabled:u,onClick:()=>{f({nodeKey:t,initialValues:{src:r??n,title:i,altText:a,width:pz(o),height:pz(s)}})}},l(`settings`)))}var pN=`Dialog`,[mN,hN]=mT(pN),[gN,_N]=mN(pN),vN=e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!0}=e,s=I.useRef(null),c=I.useRef(null),[l,u]=tk({prop:r,defaultProp:i??!1,onChange:a,caller:pN});return(0,L.jsx)(gN,{scope:t,triggerRef:s,contentRef:c,contentId:cE(),titleId:cE(),descriptionId:cE(),open:l,onOpenChange:u,onOpenToggle:I.useCallback(()=>u(e=>!e),[u]),modal:o,children:n})};vN.displayName=pN;var yN=`DialogTrigger`,bN=I.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=_N(yN,n),a=fT(t,i.triggerRef);return(0,L.jsx)(CT.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.contentId,"data-state":BN(i.open),...r,ref:a,onClick:lT(e.onClick,i.onOpenToggle)})});bN.displayName=yN;var xN=`DialogPortal`,[SN,CN]=mN(xN,{forceMount:void 0}),wN=e=>{let{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=_N(xN,t);return(0,L.jsx)(SN,{scope:t,forceMount:n,children:I.Children.map(r,e=>(0,L.jsx)(XO,{present:n||a.open,children:(0,L.jsx)(JO,{asChild:!0,container:i,children:e})}))})};wN.displayName=xN;var TN=`DialogOverlay`,EN=I.forwardRef((e,t)=>{let n=CN(TN,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=_N(TN,e.__scopeDialog);return a.modal?(0,L.jsx)(XO,{present:r||a.open,children:(0,L.jsx)(ON,{...i,ref:t})}):null});EN.displayName=TN;var DN=gT(`DialogOverlay.RemoveScroll`),ON=I.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=_N(TN,n);return(0,L.jsx)(xA,{as:DN,allowPinchZoom:!0,shards:[i.contentRef],children:(0,L.jsx)(CT.div,{"data-state":BN(i.open),...r,ref:t,style:{pointerEvents:`auto`,...r.style}})})}),kN=`DialogContent`,AN=I.forwardRef((e,t)=>{let n=CN(kN,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=_N(kN,e.__scopeDialog);return(0,L.jsx)(XO,{present:r||a.open,children:a.modal?(0,L.jsx)(jN,{...i,ref:t}):(0,L.jsx)(MN,{...i,ref:t})})});AN.displayName=kN;var jN=I.forwardRef((e,t)=>{let n=_N(kN,e.__scopeDialog),r=I.useRef(null),i=fT(t,n.contentRef,r);return I.useEffect(()=>{let e=r.current;if(e)return fk(e)},[]),(0,L.jsx)(NN,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:lT(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:lT(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;(t.button===2||n)&&e.preventDefault()}),onFocusOutside:lT(e.onFocusOutside,e=>e.preventDefault())})}),MN=I.forwardRef((e,t)=>{let n=_N(kN,e.__scopeDialog),r=I.useRef(!1),i=I.useRef(!1);return(0,L.jsx)(NN,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})}),NN=I.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,...o}=e,s=_N(kN,n),c=I.useRef(null),l=fT(t,c);return VT(),(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(qT,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,L.jsx)(NT,{role:`dialog`,id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":BN(s.open),...o,ref:l,onDismiss:()=>s.onOpenChange(!1)})}),(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(WN,{titleId:s.titleId}),(0,L.jsx)(KN,{contentRef:c,descriptionId:s.descriptionId})]})]})}),PN=`DialogTitle`,FN=I.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=_N(PN,n);return(0,L.jsx)(CT.h2,{id:i.titleId,...r,ref:t})});FN.displayName=PN;var IN=`DialogDescription`,LN=I.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=_N(IN,n);return(0,L.jsx)(CT.p,{id:i.descriptionId,...r,ref:t})});LN.displayName=IN;var RN=`DialogClose`,zN=I.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=_N(RN,n);return(0,L.jsx)(CT.button,{type:`button`,...r,ref:t,onClick:lT(e.onClick,()=>i.onOpenChange(!1))})});zN.displayName=RN;function BN(e){return e?`open`:`closed`}var VN=`DialogTitleWarning`,[HN,UN]=pT(VN,{contentName:kN,titleName:PN,docsSlug:`dialog`}),WN=({titleId:e})=>{let t=UN(VN),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
128
|
-
|
|
129
|
-
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
130
|
-
|
|
131
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return I.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},GN=`DialogDescriptionWarning`,KN=({contentRef:e,descriptionId:t})=>{let n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${UN(GN).contentName}}.`;return I.useEffect(()=>{let r=e.current?.getAttribute(`aria-describedby`);t&&r&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},qN=vN,JN=wN,YN=EN,XN=AN,ZN=FN,QN=zN,$N=e=>e.type===`checkbox`,eP=e=>e instanceof Date,tP=e=>e==null,nP=e=>typeof e==`object`,rP=e=>!tP(e)&&!Array.isArray(e)&&nP(e)&&!eP(e),iP=e=>rP(e)&&e.target?$N(e.target)?e.target.checked:e.target.value:e,aP=(e,t)=>t.split(`.`).some((t,n,r)=>!isNaN(Number(t))&&e.has(r.slice(0,n).join(`.`))),oP=e=>{let t=e.constructor&&e.constructor.prototype;return rP(t)&&t.hasOwnProperty(`isPrototypeOf`)},sP=typeof window<`u`&&window.HTMLElement!==void 0&&typeof document<`u`;function cP(e){if(e instanceof Date)return new Date(e);let t=typeof FileList<`u`&&e instanceof FileList;if(sP&&(e instanceof Blob||t))return e;let n=Array.isArray(e);if(!n&&!(rP(e)&&oP(e)))return e;let r=n?[]:Object.create(Object.getPrototypeOf(e));for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=cP(e[t]));return r}var lP=e=>/^\w*$/.test(e),uP=e=>e===void 0,dP=e=>Array.isArray(e)?e.filter(Boolean):[],fP=e=>dP(e.replace(/["|']|\]/g,``).split(/\.|\[/)),J=(e,t,n)=>{if(!t||!rP(e))return n;let r=(lP(t)?[t]:fP(t)).reduce((e,t)=>tP(e)?void 0:e[t],e);return uP(r)||r===e?uP(e[t])?n:e[t]:r},pP=e=>typeof e==`boolean`,mP=e=>typeof e==`function`,hP=(e,t,n)=>{let r=-1,i=lP(t)?[t]:fP(t),a=i.length,o=a-1;for(;++r<a;){let t=i[r],a=n;if(r!==o){let n=e[t];a=rP(n)||Array.isArray(n)?n:isNaN(+i[r+1])?{}:[]}if(t===`__proto__`||t===`constructor`||t===`prototype`)return;e[t]=a,e=e[t]}},gP={BLUR:`blur`,FOCUS_OUT:`focusout`,CHANGE:`change`,SUBMIT:`submit`,TRIGGER:`trigger`,VALID:`valid`},_P={onBlur:`onBlur`,onChange:`onChange`,onSubmit:`onSubmit`,onTouched:`onTouched`,all:`all`},vP={max:`max`,min:`min`,maxLength:`maxLength`,minLength:`minLength`,pattern:`pattern`,required:`required`,validate:`validate`},yP=`form`,bP=`root`,xP=I.createContext(null);xP.displayName=`HookFormControlContext`;var SP=()=>I.useContext(xP),CP=(e,t,n,r=!0)=>{let i={defaultValues:t._defaultValues};for(let a in e)Object.defineProperty(i,a,{get:()=>{let i=a;return t._proxyFormState[i]!==_P.all&&(t._proxyFormState[i]=!r||_P.all),n&&(n[i]=!0),e[i]}});return i},wP=typeof window<`u`?I.useLayoutEffect:I.useEffect;function TP(e){let t=SP(),{control:n=t,disabled:r,name:i,exact:a}=e||{},[o,s]=I.useState(n._formState),c=I.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return wP(()=>n._subscribe({name:i,formState:c.current,exact:a,callback:e=>{!r&&s({...n._formState,...e})}}),[i,r,a]),I.useEffect(()=>{c.current.isValid&&n._setValid(!0)},[n]),I.useMemo(()=>CP(o,n,c.current,!1),[o,n])}var EP=e=>typeof e==`string`,DP=(e,t,n,r,i)=>EP(e)?(r&&t.watch.add(e),J(n,e,i)):Array.isArray(e)?e.map(e=>(r&&t.watch.add(e),J(n,e))):(r&&(t.watchAll=!0),n),OP=e=>tP(e)||!nP(e);function kP(e,t,n=new WeakSet){if(e===t)return!0;if(OP(e)||OP(t))return Object.is(e,t);if(eP(e)&&eP(t))return Object.is(e.getTime(),t.getTime());let r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;if(n.has(e)||n.has(t))return!0;n.add(e),n.add(t);for(let i of r){let r=e[i];if(!(i in t))return!1;if(i!==`ref`){let e=t[i];if(eP(r)&&eP(e)||(rP(r)||Array.isArray(r))&&(rP(e)||Array.isArray(e))?!kP(r,e,n):!Object.is(r,e))return!1}}return!0}function AP(e){let t=SP(),{control:n=t,name:r,defaultValue:i,disabled:a,exact:o,compute:s}=e||{},c=I.useRef(i),l=I.useRef(s),u=I.useRef(void 0),d=I.useRef(n),f=I.useRef(r);l.current=s;let[p,m]=I.useState(()=>{let e=n._getWatch(r,c.current);return l.current?l.current(e):e}),h=I.useCallback(e=>{let t=DP(r,n._names,e||n._formValues,!1,c.current);return l.current?l.current(t):t},[n._formValues,n._names,r]),g=I.useCallback(e=>{if(!a){let t=DP(r,n._names,e||n._formValues,!1,c.current);if(l.current){let e=l.current(t);kP(e,u.current)||(m(e),u.current=e)}else m(t)}},[n._formValues,n._names,a,r]);wP(()=>((d.current!==n||!kP(f.current,r))&&(d.current=n,f.current=r,g()),n._subscribe({name:r,formState:{values:!0},exact:o,callback:e=>{g(e.values)}})),[n,o,r,g]),I.useEffect(()=>n._removeUnmounted());let _=d.current!==n,v=f.current,y=I.useMemo(()=>{if(a)return null;let e=!_&&!kP(v,r);return _||e?h():null},[a,_,r,v,h]);return y===null?p:y}function jP(e){let t=SP(),{name:n,disabled:r,control:i=t,shouldUnregister:a,defaultValue:o,exact:s=!0}=e,c=aP(i._names.array,n),l=AP({control:i,name:n,defaultValue:I.useMemo(()=>J(i._formValues,n,J(i._defaultValues,n,o)),[i,n,o]),exact:s}),u=TP({control:i,name:n,exact:s}),d=I.useRef(e),f=I.useRef(i.register(n,{...e.rules,value:l,...pP(e.disabled)?{disabled:e.disabled}:{}}));d.current=e;let p=I.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!J(u.errors,n)},isDirty:{enumerable:!0,get:()=>!!J(u.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!J(u.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!J(u.validatingFields,n)},error:{enumerable:!0,get:()=>J(u.errors,n)}}),[u,n]),m=I.useCallback(e=>f.current.onChange({target:{value:iP(e),name:n},type:gP.CHANGE}),[n]),h=I.useCallback(()=>f.current.onBlur({target:{value:J(i._formValues,n),name:n},type:gP.BLUR}),[n,i._formValues]),g=I.useCallback(e=>{let t=J(i._fields,n);t&&t._f&&e&&(t._f.ref={focus:()=>mP(e.focus)&&e.focus(),select:()=>mP(e.select)&&e.select(),setCustomValidity:t=>mP(e.setCustomValidity)&&e.setCustomValidity(t),reportValidity:()=>mP(e.reportValidity)&&e.reportValidity()})},[i._fields,n]),_=I.useMemo(()=>({name:n,value:l,...pP(r)||u.disabled?{disabled:u.disabled||r}:{},onChange:m,onBlur:h,ref:g}),[n,r,u.disabled,m,h,g,l]);return I.useEffect(()=>{let e=i._options.shouldUnregister||a;i.register(n,{...d.current.rules,...pP(d.current.disabled)?{disabled:d.current.disabled}:{}});let t=(e,t)=>{let n=J(i._fields,e);n&&n._f&&(n._f.mount=t)};if(t(n,!0),e){let e=cP(J(i._options.defaultValues,n,d.current.defaultValue));hP(i._defaultValues,n,e),uP(J(i._formValues,n))&&hP(i._formValues,n,e)}return!c&&i.register(n),()=>{(c?e&&!i._state.action:e)?i.unregister(n):t(n,!1)}},[n,i,c,a]),I.useEffect(()=>{i._setDisabledField({disabled:r,name:n})},[r,n,i]),I.useMemo(()=>({field:_,formState:u,fieldState:p}),[_,u,p])}var MP=e=>e.render(jP(e)),NP=I.createContext(null);NP.displayName=`HookFormContext`;var PP=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},FP=e=>Array.isArray(e)?e:[e],IP=()=>{let e=[];return{get observers(){return e},next:t=>{for(let n of e)n.next&&n.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter(e=>e!==t)}}),unsubscribe:()=>{e=[]}}};function LP(e,t){let n={};for(let r in e)if(e.hasOwnProperty(r)){let i=e[r],a=t[r];if(i&&rP(i)&&a){let e=LP(i,a);rP(e)&&(n[r]=e)}else e[r]&&(n[r]=a)}return n}var RP=e=>rP(e)&&!Object.keys(e).length,zP=e=>e.type===`file`,BP=e=>{if(!sP)return!1;let t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},VP=e=>e.type===`select-multiple`,HP=e=>e.type===`radio`,UP=e=>HP(e)||$N(e),WP=e=>BP(e)&&e.isConnected;function GP(e,t){let n=t.slice(0,-1).length,r=0;for(;r<n;){if(tP(e)){e=void 0;break}e=e[t[r]],r++}return e}function KP(e){for(let t in e)if(e.hasOwnProperty(t)&&!uP(e[t]))return!1;return!0}function qP(e,t){if(EP(t)&&Object.prototype.hasOwnProperty.call(e,t))return delete e[t],e;let n=Array.isArray(t)?t:lP(t)?[t]:fP(t),r=n.length===1?e:GP(e,n),i=n.length-1,a=n[i];return r&&delete r[a],i!==0&&(rP(r)&&RP(r)||Array.isArray(r)&&KP(r))&&qP(e,n.slice(0,-1)),e}var JP=e=>{for(let t in e)if(mP(e[t]))return!0;return!1};function YP(e){return Array.isArray(e)||rP(e)&&!JP(e)}function XP(e,t={}){for(let n in e){let r=e[n];YP(r)?(t[n]=Array.isArray(r)?[]:{},XP(r,t[n])):uP(r)||(t[n]=!0)}return t}function ZP(e,t,n){n||=XP(t);for(let r in e){let i=e[r];if(YP(i))uP(t)||OP(n[r])?n[r]=XP(i,Array.isArray(i)?[]:{}):ZP(i,tP(t)?{}:t[r],n[r]);else{let e=t[r];n[r]=!kP(i,e)}}return n}var QP={value:!1,isValid:!1},$P={value:!0,isValid:!0},eF=e=>{if(Array.isArray(e)){if(e.length>1){let t=e.filter(e=>e&&e.checked&&!e.disabled).map(e=>e.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!uP(e[0].attributes.value)?uP(e[0].value)||e[0].value===``?$P:{value:e[0].value,isValid:!0}:$P:QP}return QP},tF=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>uP(e)?e:t?e===``?NaN:e&&+e:n&&EP(e)?new Date(e):r?r(e):e,nF={isValid:!1,value:null},rF=e=>Array.isArray(e)?e.reduce((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,nF):nF;function iF(e){let t=e.ref;return zP(t)?t.files:HP(t)?rF(e.refs).value:VP(t)?[...t.selectedOptions].map(({value:e})=>e):$N(t)?eF(e.refs).value:tF(uP(t.value)?e.ref.value:t.value,e)}var aF=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,oF=(e,t,n,r)=>{let i={};for(let n of e){let e=J(t,n);e&&hP(i,n,e._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},sF=e=>e instanceof RegExp,cF=e=>uP(e)?e:sF(e)?e.source:rP(e)?sF(e.value)?e.value.source:e.value:e,lF=e=>({isOnSubmit:!e||e===_P.onSubmit,isOnBlur:e===_P.onBlur,isOnChange:e===_P.onChange,isOnAll:e===_P.all,isOnTouch:e===_P.onTouched}),uF=`AsyncFunction`,dF=e=>!!e&&!!e.validate&&!!(mP(e.validate)&&e.validate.constructor.name===uF||rP(e.validate)&&Object.values(e.validate).find(e=>e.constructor.name===uF)),fF=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),pF=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length)))),mF=(e,t,n,r)=>{for(let i of n||Object.keys(e)){let n=J(e,i);if(n){let{_f:e,...a}=n;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],i)&&!r||e.ref&&t(e.ref,e.name)&&!r)return!0;if(mF(a,t))break}else if(rP(a)&&mF(a,t))break}}};function hF(e,t,n){let r=J(e,n);if(r||lP(n))return{error:r,name:n};let i=n.split(`.`);for(;i.length;){let r=i.join(`.`),a=J(t,r),o=J(e,r);if(a&&!Array.isArray(a)&&n!==r)return{name:n};if(o&&o.type)return{name:r,error:o};if(o&&o.root&&o.root.type)return{name:`${r}.root`,error:o.root};i.pop()}return{name:n}}var gF=(e,t,n,r)=>{n(e);let{name:i,...a}=e;return RP(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(e=>t[e]===(!r||_P.all))},_F=(e,t,n)=>!e||!t||e===t||FP(e).some(e=>e&&(n?e===t:e.startsWith(t)||t.startsWith(e))),vF=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?r.isOnChange:i.isOnChange)?e:!0,yF=(e,t)=>!dP(J(e,t)).length&&qP(e,t),bF=(e,t,n)=>{let r=FP(J(e,n));return hP(r,bP,t[n]),hP(e,n,r),e};function xF(e,t,n=`validate`){if(EP(e)||Array.isArray(e)&&e.every(EP)||pP(e)&&!e)return{type:n,message:EP(e)?e:``,ref:t}}var SF=e=>rP(e)&&!sF(e)?e:{value:e,message:``},CF=async(e,t,n,r,i,a)=>{let{ref:o,refs:s,required:c,maxLength:l,minLength:u,min:d,max:f,pattern:p,validate:m,name:h,valueAsNumber:g,mount:_}=e._f,v=J(n,h);if(!_||t.has(h))return{};let y=s?s[0]:o,b=e=>{i&&y.reportValidity&&(y.setCustomValidity(pP(e)?``:e||``),y.reportValidity())},x={},S=HP(o),C=$N(o),w=S||C,T=(g||zP(o))&&uP(o.value)&&uP(v)||BP(o)&&o.value===``||v===``||Array.isArray(v)&&!v.length||g&&typeof v==`number`&&isNaN(v),E=PP.bind(null,h,r,x),ee=(e,t,n,r=vP.maxLength,i=vP.minLength)=>{let a=e?t:n;x[h]={type:e?r:i,message:a,ref:o,...E(e?r:i,a)}};if(a?!Array.isArray(v)||!v.length:c&&(!w&&(T||tP(v))||pP(v)&&!v||C&&!eF(s).isValid||S&&!rF(s).isValid)){let{value:e,message:t}=EP(c)?{value:!!c,message:c}:SF(c);if(e&&(x[h]={type:vP.required,message:t,ref:y,...E(vP.required,t)},!r))return b(t),x}if(!T&&(!tP(d)||!tP(f))){let e,t,n=SF(f),i=SF(d);if(!tP(v)&&!isNaN(v)){let r=o.valueAsNumber||v&&+v;tP(n.value)||(e=r>n.value),tP(i.value)||(t=r<i.value)}else{let r=o.valueAsDate||new Date(v),a=e=>new Date(new Date().toDateString()+` `+e),s=o.type==`time`,c=o.type==`week`;EP(n.value)&&v&&(e=s?a(v)>a(n.value):c?v>n.value:r>new Date(n.value)),EP(i.value)&&v&&(t=s?a(v)<a(i.value):c?v<i.value:r<new Date(i.value))}if((e||t)&&(ee(!!e,n.message,i.message,vP.max,vP.min),!r))return b(x[h].message),x}if((l||u)&&!T&&(EP(v)||a&&Array.isArray(v))){let e=SF(l),t=SF(u),n=!tP(e.value)&&v.length>+e.value,i=!tP(t.value)&&v.length<+t.value;if((n||i)&&(ee(n,e.message,t.message),!r))return b(x[h].message),x}if(p&&!T&&EP(v)){let{value:e,message:t}=SF(p);if(sF(e)&&!v.match(e)&&(x[h]={type:vP.pattern,message:t,ref:o,...E(vP.pattern,t)},!r))return b(t),x}if(m){if(mP(m)){let e=xF(await m(v,n),y);if(e&&(x[h]={...e,...E(vP.validate,e.message)},!r))return b(e.message),x}else if(rP(m)){let e={};for(let t in m){if(!RP(e)&&!r)break;let i=xF(await m[t](v,n),y,t);i&&(e={...i,...E(t,i.message)},b(i.message),r&&(x[h]=e))}if(!RP(e)&&(x[h]={ref:y,...e},!r))return x}}return b(!0),x},wF={mode:_P.onSubmit,reValidateMode:_P.onChange,shouldFocusError:!0};function TF(e={}){let t={...wF,...e},n={submitCount:0,isDirty:!1,isReady:!1,isLoading:mP(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},i=(rP(t.defaultValues)||rP(t.values))&&cP(t.defaultValues||t.values)||{},a=t.shouldUnregister?{}:cP(i),o={action:!1,mount:!1,watch:!1,keepIsValid:!1},s={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set,registerName:new Set},c,l=0,u={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},d={...u},f={...d},p={array:IP(),state:IP()},m=t.criteriaMode===_P.all,h=e=>t=>{clearTimeout(l),l=setTimeout(e,t)},g=async e=>{if(!o.keepIsValid&&!t.disabled&&(d.isValid||f.isValid||e)){let e;t.resolver?(e=RP((await T()).errors),_()):e=await D({fields:r,onlyCheckValid:!0,eventType:gP.VALID}),e!==n.isValid&&p.state.next({isValid:e})}},_=(e,r)=>{!t.disabled&&(d.isValidating||d.validatingFields||f.isValidating||f.validatingFields)&&((e||Array.from(s.mount)).forEach(e=>{e&&(r?hP(n.validatingFields,e,r):qP(n.validatingFields,e))}),p.state.next({validatingFields:n.validatingFields,isValidating:!RP(n.validatingFields)}))},v=e=>{let t=ZP(i,a),r=aF(e);hP(n.dirtyFields,r,J(t,r))},y=(e,i=[],s,c,l=!0,u=!0)=>{if(c&&s&&!t.disabled){if(o.action=!0,u&&Array.isArray(J(r,e))){let t=s(J(r,e),c.argA,c.argB);l&&hP(r,e,t)}if(u&&Array.isArray(J(n.errors,e))){let t=s(J(n.errors,e),c.argA,c.argB);l&&hP(n.errors,e,t),yF(n.errors,e)}if((d.touchedFields||f.touchedFields)&&u&&Array.isArray(J(n.touchedFields,e))){let t=s(J(n.touchedFields,e),c.argA,c.argB);l&&hP(n.touchedFields,e,t)}(d.dirtyFields||f.dirtyFields)&&v(e),p.state.next({name:e,isDirty:k(e,i),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else hP(a,e,i)},b=(e,t)=>{hP(n.errors,e,t),p.state.next({errors:n.errors})},x=e=>{n.errors=e,p.state.next({errors:n.errors,isValid:!1})},S=(e,t,n,s)=>{let c=J(r,e);if(c){let r=J(a,e,uP(n)?J(i,e):n);uP(r)||s&&s.defaultChecked||t?hP(a,e,t?r:iF(c._f)):j(e,r),o.mount&&!o.action&&g()}},C=(e,r,a,o,s)=>{let c=!1,l=!1,u={name:e};if(!t.disabled){if(!a||o){(d.isDirty||f.isDirty)&&(l=n.isDirty,n.isDirty=u.isDirty=k(),c=l!==u.isDirty);let t=kP(J(i,e),r);l=!!J(n.dirtyFields,e),t?qP(n.dirtyFields,e):hP(n.dirtyFields,e,!0),u.dirtyFields=n.dirtyFields,c||=(d.dirtyFields||f.dirtyFields)&&l!==!t}if(a){let t=J(n.touchedFields,e);t||(hP(n.touchedFields,e,a),u.touchedFields=n.touchedFields,c||=(d.touchedFields||f.touchedFields)&&t!==a)}c&&s&&p.state.next(u)}return c?u:{}},w=(e,r,i,a)=>{let o=J(n.errors,e),s=(d.isValid||f.isValid)&&pP(r)&&n.isValid!==r;if(t.delayError&&i?(c=h(()=>b(e,i)),c(t.delayError)):(clearTimeout(l),c=null,i?hP(n.errors,e,i):qP(n.errors,e)),(i?!kP(o,i):o)||!RP(a)||s){let t={...a,...s&&pP(r)?{isValid:r}:{},errors:n.errors,name:e};n={...n,...t},p.state.next(t)}},T=async e=>(_(e,!0),await t.resolver(a,t.context,oF(e||s.mount,r,t.criteriaMode,t.shouldUseNativeValidation))),E=async e=>{let{errors:t}=await T(e);if(_(e),e)for(let r of e){let e=J(t,r);e?hP(n.errors,r,e):qP(n.errors,r)}else n.errors=t;return t},ee=async({name:t,eventType:r})=>{if(e.validate){let i=await e.validate({formValues:a,formState:n,name:t,eventType:r});if(rP(i))for(let e in i)i[e]&&le(`${yP}.${e}`,{message:EP(i.message)?i.message:``,type:vP.validate});else EP(i)||!i?le(yP,{message:i||``,type:vP.validate}):ce(yP);return i}return!0},D=async({fields:r,onlyCheckValid:i,name:o,eventType:c,context:l={valid:!0,runRootValidation:!1}})=>{if(e.validate&&(l.runRootValidation=!0,!await ee({name:o,eventType:c})&&(l.valid=!1,i)))return l.valid;for(let o in r){let u=r[o];if(u){let{_f:r,...f}=u;if(r){let o=s.array.has(r.name),c=u._f&&dF(u._f);c&&d.validatingFields&&_([r.name],!0);let f=await CF(u,s.disabled,a,m,t.shouldUseNativeValidation&&!i,o);if(c&&d.validatingFields&&_([r.name]),f[r.name]&&(l.valid=!1,i)||(!i&&(J(f,r.name)?o?bF(n.errors,f,r.name):hP(n.errors,r.name,f[r.name]):qP(n.errors,r.name)),e.shouldUseNativeValidation&&f[r.name]))break}!RP(f)&&await D({context:l,onlyCheckValid:i,fields:f,name:o,eventType:c})}}return l.valid},O=()=>{for(let e of s.unMount){let t=J(r,e);t&&(t._f.refs?t._f.refs.every(e=>!WP(e)):!WP(t._f.ref))&&pe(e)}s.unMount=new Set},k=(e,n)=>!t.disabled&&(e&&n&&hP(a,e,n),!kP(se(),i)),te=(e,t,n)=>DP(e,s,{...o.mount?a:uP(t)?i:EP(e)?{[e]:t}:t},n,t),A=e=>dP(J(o.mount?a:i,e,t.shouldUnregister?J(i,e,[]):[])),j=(e,t,n={})=>{let i=J(r,e),o=t;if(i){let n=i._f;n&&(!n.disabled&&hP(a,e,tF(t,n)),o=BP(n.ref)&&tP(t)?``:t,VP(n.ref)?[...n.ref.options].forEach(e=>e.selected=o.includes(e.value)):n.refs?$N(n.ref)?n.refs.forEach(e=>{(!e.defaultChecked||!e.disabled)&&(Array.isArray(o)?e.checked=!!o.find(t=>t===e.value):e.checked=o===e.value||!!o)}):n.refs.forEach(e=>e.checked=e.value===o):zP(n.ref)?n.ref.value=``:(n.ref.value=o,n.ref.type||p.state.next({name:e,values:cP(a)})))}(n.shouldDirty||n.shouldTouch)&&C(e,o,n.shouldTouch,n.shouldDirty,!0),n.shouldValidate&&oe(e)},M=(e,t,n)=>{for(let i in t){if(!t.hasOwnProperty(i))return;let a=t[i],o=e+`.`+i,c=J(r,o);(s.array.has(e)||rP(a)||c&&!c._f)&&!eP(a)?M(o,a,n):j(o,a,n)}},ne=(e,t,i={})=>{let c=J(r,e),l=s.array.has(e),u=cP(t),d=kP(J(a,e),u);if(hP(a,e,u),l)p.array.next({name:e,values:cP(a)}),i.shouldDirty&&(v(e),p.state.next({name:e,dirtyFields:n.dirtyFields,isDirty:k(e,u)}));else{let t=Array.isArray(u)&&!u.length||RP(u);!c||c._f||tP(u)||t?j(e,u,i):M(e,u,i)}d||(pF(e,s)?p.state.next({...n,name:e,values:cP(a)}):p.state.next({name:o.mount?e:void 0,values:cP(a)}))},re=e=>{let t=mP(e)?e(a):e;kP(a,t)||(a={...a,...t},p.state.next({...n,values:a}))},ie=async i=>{o.mount=!0;let l=i.target,u=l.name,h=!0,v=J(r,u),y=e=>{h=Number.isNaN(e)||eP(e)&&isNaN(e.getTime())||kP(e,J(a,u,e))},b=lF(t.mode),x=lF(t.reValidateMode);if(v){let o,S,E=l.type?iF(v._f):iP(i),O=i.type===gP.BLUR||i.type===gP.FOCUS_OUT,k=!fF(v._f)&&!e.validate&&!t.resolver&&!J(n.errors,u)&&!v._f.deps||vF(O,J(n.touchedFields,u),n.isSubmitted,x,b),te=pF(u,s,O);hP(a,u,E),O?(!l||!l.readOnly)&&(v._f.onBlur&&v._f.onBlur(i),c&&c(0)):v._f.onChange&&v._f.onChange(i);let A=C(u,E,O),j=!RP(A)||te;if(!O&&p.state.next({name:u,type:i.type,values:cP(a)}),k)return(d.isValid||f.isValid)&&(t.mode===`onBlur`?O&&g():O||g()),j&&p.state.next({name:u,...te?{}:A});if(!t.resolver&&e.validate&&await ee({name:u,eventType:i.type}),!O&&te&&p.state.next({...n}),t.resolver){let{errors:e}=await T([u]);if(_([u]),y(E),h){let t=hF(n.errors,r,u),i=hF(e,r,t.name||u);o=i.error,u=i.name,S=RP(e)}}else _([u],!0),o=(await CF(v,s.disabled,a,m,t.shouldUseNativeValidation))[u],_([u]),y(E),h&&(o?S=!1:(d.isValid||f.isValid)&&(S=await D({fields:r,onlyCheckValid:!0,name:u,eventType:i.type})));h&&(v._f.deps&&(!Array.isArray(v._f.deps)||v._f.deps.length>0)&&oe(v._f.deps),w(u,S,o,A))}},ae=(e,t)=>{if(J(n.errors,t)&&e.focus)return e.focus(),1},oe=async(e,i={})=>{let a,o,c=FP(e);if(t.resolver){let t=await E(uP(e)?e:c);a=RP(t),o=e?!c.some(e=>J(t,e)):a}else e?(o=(await Promise.all(c.map(async e=>{let t=J(r,e);return await D({fields:t&&t._f?{[e]:t}:t,eventType:gP.TRIGGER})}))).every(Boolean),!(!o&&!n.isValid)&&g()):o=a=await D({fields:r,name:e,eventType:gP.TRIGGER});return p.state.next({...!EP(e)||(d.isValid||f.isValid)&&a!==n.isValid?{}:{name:e},...t.resolver||!e?{isValid:a}:{},errors:n.errors}),i.shouldFocus&&!o&&mF(r,ae,e?c:s.mount),o},se=(e,t)=>{let r={...o.mount?a:i};return t&&(r=LP(t.dirtyFields?n.dirtyFields:n.touchedFields,r)),uP(e)?r:EP(e)?J(r,e):e.map(e=>J(r,e))},N=(e,t)=>({invalid:!!J((t||n).errors,e),isDirty:!!J((t||n).dirtyFields,e),error:J((t||n).errors,e),isValidating:!!J(n.validatingFields,e),isTouched:!!J((t||n).touchedFields,e)}),ce=e=>{let t=e?FP(e):void 0;t?.forEach(e=>qP(n.errors,e)),t?t.forEach(e=>{p.state.next({name:e,errors:n.errors})}):p.state.next({errors:{}})},le=(e,t,i)=>{let a=(J(r,e,{_f:{}})._f||{}).ref,{ref:o,message:s,type:c,...l}=J(n.errors,e)||{};hP(n.errors,e,{...l,...t,ref:a}),p.state.next({name:e,errors:n.errors,isValid:!1}),i&&i.shouldFocus&&a&&a.focus&&a.focus()},ue=(e,t)=>mP(e)?p.state.subscribe({next:n=>`values`in n&&e(n.values||te(void 0,t),n)}):te(e,t,!0),de=e=>p.state.subscribe({next:t=>{if(_F(e.name,t.name,e.exact)&&gF(t,e.formState||d,Ce,e.reRenderRoot)){let r={...a};e.callback({values:r,...n,...t,defaultValues:i})}}}).unsubscribe,fe=e=>(o.mount=!0,f={...f,...e.formState},de({...e,formState:{...u,...e.formState}})),pe=(e,o={})=>{for(let c of e?FP(e):s.mount)s.mount.delete(c),s.array.delete(c),o.keepValue||(qP(r,c),qP(a,c)),!o.keepError&&qP(n.errors,c),!o.keepDirty&&qP(n.dirtyFields,c),!o.keepTouched&&qP(n.touchedFields,c),!o.keepIsValidating&&qP(n.validatingFields,c),!t.shouldUnregister&&!o.keepDefaultValue&&qP(i,c);p.state.next({values:cP(a)}),p.state.next({...n,...o.keepDirty?{isDirty:k()}:{}}),!o.keepIsValid&&g()},me=({disabled:e,name:t})=>{if(pP(e)&&o.mount||e||s.disabled.has(t)){let n=s.disabled.has(t)!==!!e;e?s.disabled.add(t):s.disabled.delete(t),n&&o.mount&&!o.action&&g()}},he=(e,n={})=>{let a=J(r,e),c=pP(n.disabled)||pP(t.disabled),l=!s.registerName.has(e)&&a&&a._f&&!a._f.mount;return hP(r,e,{...a||{},_f:{...a&&a._f?a._f:{ref:{name:e}},name:e,mount:!0,...n}}),s.mount.add(e),a&&!l?me({disabled:pP(n.disabled)?n.disabled:t.disabled,name:e}):S(e,!0,n.value),{...c?{disabled:n.disabled||t.disabled}:{},...t.progressive?{required:!!n.required,min:cF(n.min),max:cF(n.max),minLength:cF(n.minLength),maxLength:cF(n.maxLength),pattern:cF(n.pattern)}:{},name:e,onChange:ie,onBlur:ie,ref:c=>{if(c){s.registerName.add(e),he(e,n),s.registerName.delete(e),a=J(r,e);let t=uP(c.value)&&c.querySelectorAll&&c.querySelectorAll(`input,select,textarea`)[0]||c,o=UP(t),l=a._f.refs||[];if(o?l.find(e=>e===t):t===a._f.ref)return;hP(r,e,{_f:{...a._f,...o?{refs:[...l.filter(WP),t,...Array.isArray(J(i,e))?[{}]:[]],ref:{type:t.type,name:e}}:{ref:t}}}),S(e,!1,void 0,t)}else a=J(r,e,{}),a._f&&(a._f.mount=!1),(t.shouldUnregister||n.shouldUnregister)&&!(aP(s.array,e)&&o.action)&&s.unMount.add(e)}}},ge=()=>t.shouldFocusError&&mF(r,ae,s.mount),_e=e=>{pP(e)&&(p.state.next({disabled:e}),mF(r,(t,n)=>{let i=J(r,n);i&&(t.disabled=i._f.disabled||e,Array.isArray(i._f.refs)&&i._f.refs.forEach(t=>{t.disabled=i._f.disabled||e}))},0,!1))},ve=(e,i)=>async o=>{let c;o&&(o.preventDefault&&o.preventDefault(),o.persist&&o.persist());let l=cP(a);if(p.state.next({isSubmitting:!0}),t.resolver){let{errors:e,values:t}=await T();_(),n.errors=e,l=cP(t)}else await D({fields:r,eventType:gP.SUBMIT});if(s.disabled.size)for(let e of s.disabled)qP(l,e);if(qP(n.errors,bP),RP(n.errors)){p.state.next({errors:{}});try{await e(l,o)}catch(e){c=e}}else i&&await i({...n.errors},o),ge(),setTimeout(ge);if(p.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:RP(n.errors)&&!c,submitCount:n.submitCount+1,errors:n.errors}),c)throw c},ye=(e,t={})=>{J(r,e)&&(uP(t.defaultValue)?ne(e,cP(J(i,e))):(ne(e,t.defaultValue),hP(i,e,cP(t.defaultValue))),t.keepTouched||qP(n.touchedFields,e),t.keepDirty||(qP(n.dirtyFields,e),n.isDirty=t.defaultValue?k(e,cP(J(i,e))):k()),t.keepError||(qP(n.errors,e),d.isValid&&g()),p.state.next({...n}))},be=(e,c={})=>{let l=e?cP(e):i,u=cP(l),f=RP(e),m=f?i:u;if(c.keepDefaultValues||(i=l),!c.keepValues){if(c.keepDirtyValues){let e=new Set([...s.mount,...Object.keys(ZP(i,a))]);for(let t of Array.from(e)){let e=J(n.dirtyFields,t),r=J(a,t),i=J(m,t);e&&!uP(r)?hP(m,t,r):!e&&!uP(i)&&ne(t,i)}}else{if(sP&&uP(e))for(let e of s.mount){let t=J(r,e);if(t&&t._f){let e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(BP(e)){let t=e.closest(`form`);if(t){t.reset();break}}}}if(c.keepFieldsRef)for(let e of s.mount)ne(e,J(m,e));else r={}}a=t.shouldUnregister?c.keepDefaultValues?cP(i):{}:cP(m),p.array.next({values:{...m}}),p.state.next({values:{...m}})}s={mount:c.keepDirtyValues?s.mount:new Set,unMount:new Set,array:new Set,registerName:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:``},o.mount=!d.isValid||!!c.keepIsValid||!!c.keepDirtyValues||!t.shouldUnregister&&!RP(m),o.watch=!!t.shouldUnregister,o.keepIsValid=!!c.keepIsValid,o.action=!1,c.keepErrors||(n.errors={}),p.state.next({submitCount:c.keepSubmitCount?n.submitCount:0,isDirty:f?!1:c.keepDirty?n.isDirty:!!(c.keepDefaultValues&&!kP(e,i)),isSubmitted:c.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:f?{}:c.keepDirtyValues?c.keepDefaultValues&&a?ZP(i,a):n.dirtyFields:c.keepDefaultValues&&e?ZP(i,e):c.keepDirty?n.dirtyFields:{},touchedFields:c.keepTouched?n.touchedFields:{},errors:c.keepErrors?n.errors:{},isSubmitSuccessful:c.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:i})},xe=(e,n)=>be(mP(e)?e(a):e,{...t.resetOptions,...n}),Se=(e,t={})=>{let n=J(r,e),i=n&&n._f;if(i){let e=i.refs?i.refs[0]:i.ref;e.focus&&setTimeout(()=>{e.focus(),t.shouldSelect&&mP(e.select)&&e.select()})}},Ce=e=>{n={...n,...e}},we={control:{register:he,unregister:pe,getFieldState:N,handleSubmit:ve,setError:le,_subscribe:de,_runSchema:T,_updateIsValidating:_,_focusError:ge,_getWatch:te,_getDirty:k,_setValid:g,_setFieldArray:y,_setDisabledField:me,_setErrors:x,_getFieldArray:A,_reset:be,_resetDefaultValues:()=>mP(t.defaultValues)&&t.defaultValues().then(e=>{xe(e,t.resetOptions),p.state.next({isLoading:!1})}),_removeUnmounted:O,_disableForm:_e,_subjects:p,_proxyFormState:d,get _fields(){return r},get _formValues(){return a},get _state(){return o},set _state(e){o=e},get _defaultValues(){return i},get _names(){return s},set _names(e){s=e},get _formState(){return n},get _options(){return t},set _options(e){t={...t,...e}}},subscribe:fe,trigger:oe,register:he,handleSubmit:ve,watch:ue,setValue:ne,setValues:re,getValues:se,reset:xe,resetField:ye,clearErrors:ce,unregister:pe,setError:le,setFocus:Se,getFieldState:N};return{...we,formControl:we}}var EF=()=>{if(typeof crypto<`u`&&crypto.randomUUID)return crypto.randomUUID();let e=typeof performance>`u`?Date.now():performance.now()*1e3;return`xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx`.replace(/[xy]/g,t=>{let n=(Math.random()*16+e)%16|0;return(t==`x`?n:n&3|8).toString(16)})},DF=(e,t,n={})=>n.shouldFocus||uP(n.shouldFocus)?n.focusName||`${e}.${uP(n.focusIndex)?t:n.focusIndex}.`:``,OF=(e,t)=>[...e,...FP(t)],kF=e=>Array.isArray(e)?e.map(()=>void 0):void 0;function AF(e,t,n){return[...e.slice(0,t),...FP(n),...e.slice(t)]}var jF=(e,t,n)=>Array.isArray(e)?(uP(e[n])&&(e[n]=void 0),e.splice(n,0,e.splice(t,1)[0]),e):[],MF=(e,t)=>[...FP(t),...FP(e)];function NF(e,t){let n=0,r=[...e];for(let e of t)r.splice(e-n,1),n++;return dP(r).length?r:[]}var PF=(e,t)=>uP(t)?[]:NF(e,FP(t).sort((e,t)=>e-t)),FF=(e,t,n)=>{[e[t],e[n]]=[e[n],e[t]]},IF=(e,t,n)=>(e[t]=n,e);function LF(e){let t=SP(),{control:n=t,name:r,keyName:i=`id`,shouldUnregister:a,rules:o}=e,[s,c]=I.useState(n._getFieldArray(r)),l=I.useRef(n._getFieldArray(r).map(EF)),u=I.useRef(!1);n._names.array.add(r),I.useMemo(()=>o&&s.length>=0&&n.register(r,o),[n,r,s.length,o]),wP(()=>n._subjects.array.subscribe({next:({values:e,name:t})=>{if(t===r||!t){let t=J(e,r);Array.isArray(t)&&(c(t),l.current=t.map(EF))}}}).unsubscribe,[n,r]);let d=I.useCallback(e=>{u.current=!0,n._setFieldArray(r,e)},[n,r]);return I.useEffect(()=>{n._state.action=!1,pF(r,n._names)&&n._subjects.state.next({...n._formState});let e=lF(n._options.mode);if(u.current&&(!e.isOnSubmit||n._formState.isSubmitted)&&!lF(n._options.reValidateMode).isOnSubmit&&!e.isOnBlur)if(n._options.resolver)n._runSchema([r]).then(e=>{n._updateIsValidating([r]);let t=J(e.errors,r),i=J(n._formState.errors,r);(i?!t&&i.type||t&&(i.type!==t.type||i.message!==t.message):t&&t.type)&&(t?hP(n._formState.errors,r,t):qP(n._formState.errors,r),n._subjects.state.next({errors:n._formState.errors}))});else{let e=J(n._fields,r);e&&e._f&&!(lF(n._options.reValidateMode).isOnSubmit&&lF(n._options.mode).isOnSubmit)&&CF(e,n._names.disabled,n._formValues,n._options.criteriaMode===_P.all,n._options.shouldUseNativeValidation,!0).then(e=>!RP(e)&&n._subjects.state.next({errors:bF(n._formState.errors,e,r)}))}n._subjects.state.next({name:r,values:cP(n._formValues)}),n._names.focus&&mF(n._fields,(e,t)=>{if(n._names.focus&&t.startsWith(n._names.focus)&&e.focus)return e.focus(),1}),n._names.focus=``,n._setValid(),u.current=!1},[s,r,n]),I.useEffect(()=>(!J(n._formValues,r)&&n._setFieldArray(r),()=>{n._options.shouldUnregister||a?n.unregister(r):((e,t)=>{let r=J(n._fields,e);r&&r._f&&(r._f.mount=t)})(r,!1)}),[r,n,i,a]),{swap:I.useCallback((e,t)=>{let i=n._getFieldArray(r);FF(i,e,t),FF(l.current,e,t),d(i),c(i),n._setFieldArray(r,i,FF,{argA:e,argB:t},!1)},[d,r,n]),move:I.useCallback((e,t)=>{let i=n._getFieldArray(r);jF(i,e,t),jF(l.current,e,t),d(i),c(i),n._setFieldArray(r,i,jF,{argA:e,argB:t},!1)},[d,r,n]),prepend:I.useCallback((e,t)=>{let i=FP(cP(e)),a=MF(n._getFieldArray(r),i);n._names.focus=DF(r,0,t),l.current=MF(l.current,i.map(EF)),d(a),c(a),n._setFieldArray(r,a,MF,{argA:kF(e)})},[d,r,n]),append:I.useCallback((e,t)=>{let i=FP(cP(e)),a=OF(n._getFieldArray(r),i);n._names.focus=DF(r,a.length-1,t),l.current=OF(l.current,i.map(EF)),d(a),c(a),n._setFieldArray(r,a,OF,{argA:kF(e)})},[d,r,n]),remove:I.useCallback(e=>{let t=PF(n._getFieldArray(r),e);l.current=PF(l.current,e),d(t),c(t),!Array.isArray(J(n._fields,r))&&hP(n._fields,r,void 0),n._setFieldArray(r,t,PF,{argA:e})},[d,r,n]),insert:I.useCallback((e,t,i)=>{let a=FP(cP(t)),o=AF(n._getFieldArray(r),e,a);n._names.focus=DF(r,e,i),l.current=AF(l.current,e,a.map(EF)),d(o),c(o),n._setFieldArray(r,o,AF,{argA:e,argB:kF(t)})},[d,r,n]),update:I.useCallback((e,t)=>{let i=cP(t),a=IF(n._getFieldArray(r),e,i);l.current=[...a].map((t,n)=>!t||n===e?EF():l.current[n]),d(a),c([...a]),n._setFieldArray(r,a,IF,{argA:e,argB:i},!0,!1)},[d,r,n]),replace:I.useCallback(e=>{let t=FP(cP(e));l.current=t.map(EF),d([...t]),c([...t]),n._setFieldArray(r,[...t],e=>e,{},!0,!1)},[d,r,n]),fields:I.useMemo(()=>s.map((e,t)=>({...e,[i]:l.current[t]||EF()})),[s,i])}}function RF(e={}){let t=I.useRef(void 0),n=I.useRef(void 0),[r,i]=I.useState({isDirty:!1,isValidating:!1,isLoading:mP(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:mP(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:r},e.defaultValues&&!mP(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{let{formControl:n,...i}=TF(e);t.current={...i,formState:r}}let a=t.current.control;return a._options=e,wP(()=>{let e=a._subscribe({formState:a._proxyFormState,callback:()=>i({...a._formState}),reRenderRoot:!0});return i(e=>({...e,isReady:!0})),a._formState.isReady=!0,e},[a]),I.useEffect(()=>a._disableForm(e.disabled),[a,e.disabled]),I.useEffect(()=>{e.mode&&(a._options.mode=e.mode),e.reValidateMode&&(a._options.reValidateMode=e.reValidateMode)},[a,e.mode,e.reValidateMode]),I.useEffect(()=>{e.errors&&(a._setErrors(e.errors),a._focusError())},[a,e.errors]),I.useEffect(()=>{e.shouldUnregister&&a._subjects.state.next({values:a._getWatch()})},[a,e.shouldUnregister]),I.useEffect(()=>{if(a._proxyFormState.isDirty){let e=a._getDirty();e!==r.isDirty&&a._subjects.state.next({isDirty:e})}},[a,r.isDirty]),I.useEffect(()=>{e.values&&!kP(e.values,n.current)?(a._reset(e.values,{keepFieldsRef:!0,...a._options.resetOptions}),a._options.resetOptions?.keepIsValid||a._setValid(),n.current=e.values,i(e=>({...e}))):a._resetDefaultValues()},[a,e.values]),I.useEffect(()=>{a._state.mount||(a._setValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),t.current.formState=I.useMemo(()=>CP(r,a),[a,r]),t.current}function zF(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function BF(){return BF=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},BF.apply(null,arguments)}var VF=dt(((e,t)=>{t.exports=`SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED`})),HF=dt(((e,t)=>{var n=VF();function r(){}function i(){}i.resetWarningCache=r,t.exports=function(){function e(e,t,r,i,a,o){if(o!==n){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name=`Invariant Violation`,s}}e.isRequired=e;function t(){return e}var a={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return a.PropTypes=a,a}})),UF=dt(((e,t)=>{t.exports=HF()()})),WF=dt((e=>{if(typeof Symbol==`function`&&Symbol.for){var t=Symbol.for;t(`react.element`),t(`react.portal`),t(`react.fragment`),t(`react.strict_mode`),t(`react.profiler`),t(`react.provider`),t(`react.context`),t(`react.forward_ref`),t(`react.suspense`),t(`react.suspense_list`),t(`react.memo`),t(`react.lazy`),t(`react.block`),t(`react.server.block`),t(`react.fundamental`),t(`react.debug_trace_mode`),t(`react.legacy_hidden`)}})),GF=dt(((e,t)=>{t.exports=WF()})),KF=e=>typeof e==`object`&&!!e&&e.nodeType===1,qF=(e,t)=>(!t||e!==`hidden`)&&e!==`visible`&&e!==`clip`,JF=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){let n=getComputedStyle(e,null);return qF(n.overflowY,t)||qF(n.overflowX,t)||(e=>{let t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch{return null}})(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)})(e)}return!1},YF=(e,t,n,r,i,a,o,s)=>a<e&&o>t||a>e&&o<t?0:a<=e&&s<=n||o>=t&&s>=n?a-e-r:o>t&&s<n||a<e&&s>n?o-t+i:0,XF=e=>e.parentElement??(e.getRootNode().host||null),ZF=(e,t)=>{if(typeof document>`u`)return[];let{scrollMode:n,block:r,inline:i,boundary:a,skipOverflowHiddenElements:o}=t,s=typeof a==`function`?a:e=>e!==a;if(!KF(e))throw TypeError(`Invalid target`);let c=document.scrollingElement||document.documentElement,l=[],u=e;for(;KF(u)&&s(u);){if(u=XF(u),u===c){l.push(u);break}u!=null&&u===document.body&&JF(u)&&!JF(document.documentElement)||u!=null&&JF(u,o)&&l.push(u)}let d=window.visualViewport?.width??innerWidth,f=window.visualViewport?.height??innerHeight,p=window.scrollX??pageXOffset,m=window.scrollY??pageYOffset,{height:h,width:g,top:_,right:v,bottom:y,left:b}=e.getBoundingClientRect(),x=r===`start`||r===`nearest`?_:r===`end`?y:_+h/2,S=i===`center`?b+g/2:i===`end`?v:b,C=[];for(let e=0;e<l.length;e++){let t=l[e],{height:a,width:o,top:s,right:u,bottom:w,left:T}=t.getBoundingClientRect();if(n===`if-needed`&&_>=0&&b>=0&&y<=f&&v<=d&&_>=s&&y<=w&&b>=T&&v<=u)return C;let E=getComputedStyle(t),ee=parseInt(E.borderLeftWidth,10),D=parseInt(E.borderTopWidth,10),O=parseInt(E.borderRightWidth,10),k=parseInt(E.borderBottomWidth,10),te=0,A=0,j=`offsetWidth`in t?t.offsetWidth-t.clientWidth-ee-O:0,M=`offsetHeight`in t?t.offsetHeight-t.clientHeight-D-k:0,ne=`offsetWidth`in t?t.offsetWidth===0?0:o/t.offsetWidth:0,re=`offsetHeight`in t?t.offsetHeight===0?0:a/t.offsetHeight:0;if(c===t)te=r===`start`?x:r===`end`?x-f:r===`nearest`?YF(m,m+f,f,D,k,m+x,m+x+h,h):x-f/2,A=i===`start`?S:i===`center`?S-d/2:i===`end`?S-d:YF(p,p+d,d,ee,O,p+S,p+S+g,g),te=Math.max(0,te+m),A=Math.max(0,A+p);else{te=r===`start`?x-s-D:r===`end`?x-w+k+M:r===`nearest`?YF(s,w,a,D,k+M,x,x+h,h):x-(s+a/2)+M/2,A=i===`start`?S-T-ee:i===`center`?S-(T+o/2)+j/2:i===`end`?S-u+O+j:YF(T,u,o,ee,O+j,S,S+g,g);let{scrollLeft:e,scrollTop:n}=t;te=Math.max(0,Math.min(n+te/re,t.scrollHeight-a/re+M)),A=Math.max(0,Math.min(e+A/ne,t.scrollWidth-o/ne+j)),x+=n-te,S+=e-A}C.push({el:t,top:te,left:A})}return C},Y=mt(UF());GF();var QF=0;function $F(){}function eI(e,t){e&&ZF(e,{boundary:t,block:`nearest`,scrollMode:`if-needed`}).forEach(function(e){var t=e.el,n=e.top,r=e.left;t.scrollTop=n,t.scrollLeft=r})}function tI(e,t,n){return e===t||t instanceof n.Node&&e.contains&&e.contains(t)}function nI(e,t){var n;function r(){n&&clearTimeout(n)}function i(){var i=[...arguments];r(),n=setTimeout(function(){n=null,e.apply(void 0,i)},t)}return i.cancel=r,i}function rI(){var e=[...arguments];return function(t){var n=[...arguments].slice(1);return e.some(function(e){return e&&e.apply(void 0,[t].concat(n)),t.preventDownshiftDefault||t.hasOwnProperty(`nativeEvent`)&&t.nativeEvent.preventDownshiftDefault})}}function iI(){var e=[...arguments];return function(t){e.forEach(function(e){typeof e==`function`?e(t):e&&(e.current=t)})}}function aI(){return String(QF++)}function oI(e){var t=e.isOpen,n=e.resultCount,r=e.previousResultCount;return t?n?n===r?``:n+` result`+(n===1?` is`:`s are`)+` available, use up and down arrow keys to navigate. Press Enter key to select.`:`No results are available.`:``}function sI(e,t){return Object.keys(e).reduce(function(n,r){return n[r]=cI(t,r)?t[r]:e[r],n},{})}function cI(e,t){return e[t]!==void 0}function lI(e){var t=e.key,n=e.keyCode;return n>=37&&n<=40&&t.indexOf(`Arrow`)!==0?`Arrow`+t:t}function uI(e,t,n,r,i){if(i===void 0&&(i=!0),n===0)return-1;var a=n-1;(typeof t!=`number`||t<0||t>=n)&&(t=e>0?-1:a+1);var o=t+e;o<0?o=i?a:0:o>a&&(o=i?0:a);var s=dI(e,o,n,r,i);return s===-1?t>=n?-1:t:s}function dI(e,t,n,r,i){var a=r(t);if(!a||!a.hasAttribute(`disabled`))return t;if(e>0){for(var o=t+1;o<n;o++)if(!r(o).hasAttribute(`disabled`))return o}else for(var s=t-1;s>=0;s--)if(!r(s).hasAttribute(`disabled`))return s;return i?e>0?dI(1,0,n,r,!1):dI(-1,n-1,n,r,!1):-1}function fI(e,t,n,r){return r===void 0&&(r=!0),t.some(function(t){return t&&(tI(t,e,n)||r&&tI(t,n.document.activeElement,n))})}var pI=nI(function(e){hI(e).textContent=``},500);function mI(e,t){var n=hI(t);e&&(n.textContent=e,pI(t))}function hI(e){e===void 0&&(e=document);var t=e.getElementById(`a11y-status-message`);return t||(t=e.createElement(`div`),t.setAttribute(`id`,`a11y-status-message`),t.setAttribute(`role`,`status`),t.setAttribute(`aria-live`,`polite`),t.setAttribute(`aria-relevant`,`additions text`),Object.assign(t.style,{border:`0`,clip:`rect(0 0 0 0)`,height:`1px`,margin:`-1px`,overflow:`hidden`,padding:`0`,position:`absolute`,width:`1px`}),e.body.appendChild(t),t)}var gI=[`isInitialMount`,`highlightedIndex`,`items`,`environment`],_I={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:``};function vI(e,t,n){var r=e.props,i=e.type,a={};Object.keys(t).forEach(function(r){yI(r,e,t,n),n[r]!==t[r]&&(a[r]=n[r])}),r.onStateChange&&Object.keys(a).length&&r.onStateChange(BF({type:i},a))}function yI(e,t,n,r){var i=t.props,a=t.type,o=`on`+OI(e)+`Change`;i[o]&&r[e]!==void 0&&r[e]!==n[e]&&i[o](BF({type:a},r))}function bI(e,t){return t.changes}function xI(e){var t=e.selectedItem,n=e.itemToString;return t?n(t)+` has been selected.`:``}var SI=nI(function(e,t){mI(e(),t)},200),CI=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0?I.useLayoutEffect:I.useEffect;function wI(e){var t=e.id,n=t===void 0?`downshift-`+aI():t,r=e.labelId,i=e.menuId,a=e.getItemId,o=e.toggleButtonId,s=e.inputId;return(0,I.useRef)({labelId:r||n+`-label`,menuId:i||n+`-menu`,getItemId:a||function(e){return n+`-item-`+e},toggleButtonId:o||n+`-toggle-button`,inputId:s||n+`-input`}).current}function TI(e,t,n,r){var i,a;if(e===void 0){if(t===void 0)throw Error(r);i=n[t],a=t}else a=t===void 0?n.indexOf(e):t,i=e;return[i,a]}function EI(e){return e?String(e):``}function DI(e){return/^\S{1}$/.test(e)}function OI(e){return``+e.slice(0,1).toUpperCase()+e.slice(1)}function kI(e){var t=(0,I.useRef)(e);return t.current=e,t}function AI(e,t,n){var r=(0,I.useRef)(),i=(0,I.useRef)(),a=(0,I.useReducer)((0,I.useCallback)(function(t,n){i.current=n,t=sI(t,n.props);var r=e(t,n);return n.props.stateReducer(t,BF({},n,{changes:r}))},[e]),t),o=a[0],s=a[1],c=kI(n),l=(0,I.useCallback)(function(e){return s(BF({props:c.current},e))},[c]),u=i.current;return(0,I.useEffect)(function(){u&&r.current&&r.current!==o&&vI(u,sI(r.current,u.props),o),r.current=o},[o,n,u]),[o,l]}function jI(e,t,n){var r=AI(e,t,n),i=r[0],a=r[1];return[sI(i,n),a]}var MI={itemToString:EI,stateReducer:bI,getA11ySelectionMessage:xI,scrollIntoView:eI,environment:typeof window>`u`?{}:window};function NI(e,t,n){n===void 0&&(n=_I);var r=e[`default`+OI(t)];return r===void 0?n[t]:r}function PI(e,t,n){n===void 0&&(n=_I);var r=e[t];if(r!==void 0)return r;var i=e[`initial`+OI(t)];return i===void 0?NI(e,t,n):i}function FI(e){var t=PI(e,`selectedItem`),n=PI(e,`isOpen`),r=PI(e,`highlightedIndex`),i=PI(e,`inputValue`);return{highlightedIndex:r<0&&t&&n?e.items.indexOf(t):r,isOpen:n,selectedItem:t,inputValue:i}}function II(e,t,n){var r=e.items,i=e.initialHighlightedIndex,a=e.defaultHighlightedIndex,o=t.selectedItem,s=t.highlightedIndex;return r.length===0?-1:i!==void 0&&s===i?i:a===void 0?o?r.indexOf(o):n===0?-1:n<0?r.length-1:0:a}function LI(e,t,n,r){var i=(0,I.useRef)({isMouseDown:!1,isTouchMove:!1});return(0,I.useEffect)(function(){if(n?.addEventListener!=null){var a=function(){i.current.isMouseDown=!0},o=function(a){i.current.isMouseDown=!1,e&&!fI(a.target,t.map(function(e){return e.current}),n)&&r()},s=function(){i.current.isTouchMove=!1},c=function(){i.current.isTouchMove=!0},l=function(a){e&&!i.current.isTouchMove&&!fI(a.target,t.map(function(e){return e.current}),n,!1)&&r()};return n.addEventListener(`mousedown`,a),n.addEventListener(`mouseup`,o),n.addEventListener(`touchstart`,s),n.addEventListener(`touchmove`,c),n.addEventListener(`touchend`,l),function(){n.removeEventListener(`mousedown`,a),n.removeEventListener(`mouseup`,o),n.removeEventListener(`touchstart`,s),n.removeEventListener(`touchmove`,c),n.removeEventListener(`touchend`,l)}}},[e,n]),i}var RI=function(){return $F};function zI(e,t,n){var r=n.isInitialMount,i=n.highlightedIndex,a=n.items,o=n.environment,s=zF(n,gI);(0,I.useEffect)(function(){r||SI(function(){return e(BF({highlightedIndex:i,highlightedItem:a[i],resultCount:a.length},s))},o.document)},t)}function BI(e){var t=e.highlightedIndex,n=e.isOpen,r=e.itemRefs,i=e.getItemNodeFromIndex,a=e.menuElement,o=e.scrollIntoView,s=(0,I.useRef)(!0);return CI(function(){t<0||!n||!Object.keys(r.current).length||(s.current===!1?s.current=!0:o(i(t),a))},[t]),s}var VI=$F;function HI(e,t,n){return n===void 0&&(n=!0),BF({isOpen:!1,highlightedIndex:-1},e.items?.length&&t>=0&&BF({selectedItem:e.items[t],isOpen:NI(e,`isOpen`),highlightedIndex:NI(e,`highlightedIndex`)},n&&{inputValue:e.itemToString(e.items[t])}))}function UI(e,t,n){var r=t.type,i=t.props,a;switch(r){case n.ItemMouseMove:a={highlightedIndex:t.disabled?-1:t.index};break;case n.MenuMouseLeave:a={highlightedIndex:-1};break;case n.ToggleButtonClick:case n.FunctionToggleMenu:a={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:II(i,e,0)};break;case n.FunctionOpenMenu:a={isOpen:!0,highlightedIndex:II(i,e,0)};break;case n.FunctionCloseMenu:a={isOpen:!1};break;case n.FunctionSetHighlightedIndex:a={highlightedIndex:t.highlightedIndex};break;case n.FunctionSetInputValue:a={inputValue:t.inputValue};break;case n.FunctionReset:a={highlightedIndex:NI(i,`highlightedIndex`),isOpen:NI(i,`isOpen`),selectedItem:NI(i,`selectedItem`),inputValue:NI(i,`inputValue`)};break;default:throw Error(`Reducer called without proper action type.`)}return BF({},e,a)}function WI(e){for(var t=e.keysSoFar,n=e.highlightedIndex,r=e.items,i=e.itemToString,a=e.getItemNodeFromIndex,o=t.toLowerCase(),s=0;s<r.length;s++){var c=(s+n+ +(t.length<2))%r.length,l=r[c];if(l!==void 0&&i(l).toLowerCase().startsWith(o)&&!a(c)?.hasAttribute(`disabled`))return c}return n}Y.default.array.isRequired,Y.default.func,Y.default.func,Y.default.func,Y.default.number,Y.default.number,Y.default.number,Y.default.bool,Y.default.bool,Y.default.bool,Y.default.any,Y.default.any,Y.default.any,Y.default.string,Y.default.string,Y.default.string,Y.default.func,Y.default.string,Y.default.func,Y.default.func,Y.default.func,Y.default.func,Y.default.func,Y.default.shape({addEventListener:Y.default.func,removeEventListener:Y.default.func,document:Y.default.shape({getElementById:Y.default.func,activeElement:Y.default.any,body:Y.default.any})});function GI(e){var t=e.isOpen,n=e.resultCount,r=e.previousResultCount;return t?n?n===r?``:`${n} result${n===1?` is`:`s are`} available, use up and down arrow keys to navigate. Press Enter or Space Bar keys to select.`:`No results are available.`:``}var KI=pk(pk({},MI),{getA11yStatusMessage:GI}),qI=$F,JI=0,YI=1,XI=2,ZI=3,QI=4,$I=5,eL=6,tL=7,nL=8,rL=9,iL=10,aL=11,oL=12,sL=13,cL=14,lL=15,uL=16,dL=17,fL=18,pL=19,mL=20,hL=21,gL=Object.freeze({__proto__:null,ToggleButtonClick:JI,ToggleButtonKeyDownArrowDown:YI,ToggleButtonKeyDownArrowUp:XI,ToggleButtonKeyDownCharacter:ZI,ToggleButtonKeyDownEscape:QI,ToggleButtonKeyDownHome:$I,ToggleButtonKeyDownEnd:eL,ToggleButtonKeyDownEnter:tL,ToggleButtonKeyDownSpaceButton:nL,ToggleButtonKeyDownPageUp:rL,ToggleButtonKeyDownPageDown:iL,ToggleButtonBlur:aL,MenuMouseLeave:oL,ItemMouseMove:sL,ItemClick:cL,FunctionToggleMenu:lL,FunctionOpenMenu:uL,FunctionCloseMenu:dL,FunctionSetHighlightedIndex:fL,FunctionSelectItem:pL,FunctionSetInputValue:mL,FunctionReset:hL});function _L(e,t){var n=t.type,r=t.props,i=t.altKey,a;switch(n){case cL:a={isOpen:NI(r,`isOpen`),highlightedIndex:NI(r,`highlightedIndex`),selectedItem:r.items[t.index]};break;case ZI:var o=t.key,s=``+e.inputValue+o;a={inputValue:s,highlightedIndex:WI({keysSoFar:s,highlightedIndex:!e.isOpen&&e.selectedItem?r.items.indexOf(e.selectedItem):e.highlightedIndex,items:r.items,itemToString:r.itemToString,getItemNodeFromIndex:t.getItemNodeFromIndex}),isOpen:!0};break;case YI:a={highlightedIndex:e.isOpen?uI(1,e.highlightedIndex,r.items.length,t.getItemNodeFromIndex,!1):i&&e.selectedItem==null?-1:II(r,e,1),isOpen:!0};break;case XI:a=e.isOpen&&i?HI(r,e.highlightedIndex,!1):{highlightedIndex:e.isOpen?uI(-1,e.highlightedIndex,r.items.length,t.getItemNodeFromIndex,!1):II(r,e,-1),isOpen:!0};break;case tL:case nL:a=HI(r,e.highlightedIndex,!1);break;case $I:a={highlightedIndex:dI(1,0,r.items.length,t.getItemNodeFromIndex,!1),isOpen:!0};break;case eL:a={highlightedIndex:dI(-1,r.items.length-1,r.items.length,t.getItemNodeFromIndex,!1),isOpen:!0};break;case rL:a={highlightedIndex:uI(-10,e.highlightedIndex,r.items.length,t.getItemNodeFromIndex,!1)};break;case iL:a={highlightedIndex:uI(10,e.highlightedIndex,r.items.length,t.getItemNodeFromIndex,!1)};break;case QI:a={isOpen:!1,highlightedIndex:-1};break;case aL:a=BF({isOpen:!1,highlightedIndex:-1},e.highlightedIndex>=0&&r.items?.length&&{selectedItem:r.items[e.highlightedIndex]});break;case pL:a={selectedItem:t.selectedItem};break;default:return UI(e,t,gL)}return BF({},e,a)}var vL=[`onMouseLeave`,`refKey`,`onKeyDown`,`onBlur`,`ref`],yL=[`onBlur`,`onClick`,`onPress`,`onKeyDown`,`refKey`,`ref`],bL=[`item`,`index`,`onMouseMove`,`onClick`,`onPress`,`refKey`,`ref`,`disabled`];xL.stateChangeTypes=gL;function xL(e){e===void 0&&(e={}),qI(e,xL);var t=BF({},KI,e),n=t.items,r=t.scrollIntoView,i=t.environment,a=t.itemToString,o=t.getA11ySelectionMessage,s=t.getA11yStatusMessage,c=jI(_L,FI(t),t),l=c[0],u=c[1],d=l.isOpen,f=l.highlightedIndex,p=l.selectedItem,m=l.inputValue,h=(0,I.useRef)(null),g=(0,I.useRef)(null),_=(0,I.useRef)({}),v=(0,I.useRef)(null),y=wI(t),b=(0,I.useRef)(),x=(0,I.useRef)(!0),S=kI({state:l,props:t}),C=(0,I.useCallback)(function(e){return _.current[y.getItemId(e)]},[y]);zI(s,[d,f,m,n],BF({isInitialMount:x.current,previousResultCount:b.current,items:n,environment:i,itemToString:a},l)),zI(o,[p],BF({isInitialMount:x.current,previousResultCount:b.current,items:n,environment:i,itemToString:a},l));var w=BI({menuElement:g.current,highlightedIndex:f,isOpen:d,itemRefs:_,scrollIntoView:r,getItemNodeFromIndex:C});(0,I.useEffect)(function(){return v.current=nI(function(e){e({type:mL,inputValue:``})},500),function(){v.current.cancel()}},[]),(0,I.useEffect)(function(){m&&v.current(u)},[u,m]),VI({isInitialMount:x.current,props:t,state:l}),(0,I.useEffect)(function(){x.current||(b.current=n.length)});var T=LI(d,[g,h],i,function(){u({type:aL})}),E=RI(`getMenuProps`,`getToggleButtonProps`);(0,I.useEffect)(function(){return x.current=!1,function(){x.current=!0}},[]),(0,I.useEffect)(function(){d||(_.current={})},[d]);var ee=(0,I.useMemo)(function(){return{ArrowDown:function(e){e.preventDefault(),u({type:YI,getItemNodeFromIndex:C,altKey:e.altKey})},ArrowUp:function(e){e.preventDefault(),u({type:XI,getItemNodeFromIndex:C,altKey:e.altKey})},Home:function(e){e.preventDefault(),u({type:$I,getItemNodeFromIndex:C})},End:function(e){e.preventDefault(),u({type:eL,getItemNodeFromIndex:C})},Escape:function(){S.current.state.isOpen&&u({type:QI})},Enter:function(e){e.preventDefault(),u({type:S.current.state.isOpen?tL:JI})},PageUp:function(e){S.current.state.isOpen&&(e.preventDefault(),u({type:rL,getItemNodeFromIndex:C}))},PageDown:function(e){S.current.state.isOpen&&(e.preventDefault(),u({type:iL,getItemNodeFromIndex:C}))}," ":function(e){e.preventDefault();var t=S.current.state;if(!t.isOpen){u({type:JI});return}t.inputValue?u({type:ZI,key:` `,getItemNodeFromIndex:C}):u({type:nL})}}},[u,C,S]),D=(0,I.useCallback)(function(){u({type:lL})},[u]),O=(0,I.useCallback)(function(){u({type:dL})},[u]),k=(0,I.useCallback)(function(){u({type:uL})},[u]),te=(0,I.useCallback)(function(e){u({type:fL,highlightedIndex:e})},[u]),A=(0,I.useCallback)(function(e){u({type:pL,selectedItem:e})},[u]),j=(0,I.useCallback)(function(){u({type:hL})},[u]),M=(0,I.useCallback)(function(e){u({type:mL,inputValue:e})},[u]),ne=(0,I.useCallback)(function(e){return BF({id:y.labelId,htmlFor:y.toggleButtonId},e)},[y]),re=(0,I.useCallback)(function(e,t){var n,r=e===void 0?{}:e,i=r.onMouseLeave,a=r.refKey,o=a===void 0?`ref`:a;r.onKeyDown,r.onBlur;var s=r.ref,c=zF(r,vL),l=(t===void 0?{}:t).suppressRefError;return E(`getMenuProps`,l===void 0?!1:l,o,g),BF((n={},n[o]=iI(s,function(e){g.current=e}),n.id=y.menuId,n.role=`listbox`,n[`aria-labelledby`]=c&&c[`aria-label`]?void 0:``+y.labelId,n.onMouseLeave=rI(i,function(){u({type:oL})}),n),c)},[u,E,y]);return{getToggleButtonProps:(0,I.useCallback)(function(e,t){var n,r=e===void 0?{}:e,i=r.onBlur,a=r.onClick;r.onPress;var o=r.onKeyDown,s=r.refKey,c=s===void 0?`ref`:s,l=r.ref,d=zF(r,yL),f=(t===void 0?{}:t).suppressRefError,p=f===void 0?!1:f,m=S.current.state,g=function(){u({type:JI})},_=function(){m.isOpen&&!T.current.isMouseDown&&u({type:aL})},v=function(e){var t=lI(e);t&&ee[t]?ee[t](e):DI(t)&&u({type:ZI,key:t,getItemNodeFromIndex:C})},b=BF((n={},n[c]=iI(l,function(e){h.current=e}),n[`aria-activedescendant`]=m.isOpen&&m.highlightedIndex>-1?y.getItemId(m.highlightedIndex):``,n[`aria-controls`]=y.menuId,n[`aria-expanded`]=S.current.state.isOpen,n[`aria-haspopup`]=`listbox`,n[`aria-labelledby`]=d&&d[`aria-label`]?void 0:``+y.labelId,n.id=y.toggleButtonId,n.role=`combobox`,n.tabIndex=0,n.onBlur=rI(i,_),n),d);return d.disabled||(b.onClick=rI(a,g),b.onKeyDown=rI(o,v)),E(`getToggleButtonProps`,p,c,h),b},[S,y,E,u,T,ee,C]),getLabelProps:ne,getMenuProps:re,getItemProps:(0,I.useCallback)(function(e){var t,n=e===void 0?{}:e,r=n.item,i=n.index,a=n.onMouseMove,o=n.onClick;n.onPress;var s=n.refKey,c=s===void 0?`ref`:s,l=n.ref,d=n.disabled,f=zF(n,bL),m=S.current,h=m.state,g=m.props,v=TI(r,i,g.items,`Pass either item or index to getItemProps!`),b=v[0],x=v[1],C=function(){x!==h.highlightedIndex&&(w.current=!1,u({type:sL,index:x,disabled:d}))},T=function(){u({type:cL,index:x})},E=BF((t={disabled:d,role:`option`,"aria-selected":``+(b===p),id:y.getItemId(x)},t[c]=iI(l,function(e){e&&(_.current[y.getItemId(x)]=e)}),t),f);return d||(E.onClick=rI(o,T)),E.onMouseMove=rI(a,C),E},[S,p,y,w,u]),toggleMenu:D,openMenu:k,closeMenu:O,setHighlightedIndex:te,selectItem:A,reset:j,setInputValue:M,highlightedIndex:f,isOpen:d,selectedItem:p,inputValue:m}}var SL=0,CL=1,wL=2,TL=3,EL=4,DL=5,OL=6,kL=7,AL=8,jL=9,ML=10,NL=11,PL=12,FL=13,IL=14,LL=15,RL=16,zL=17,BL=18,VL=19,HL=20,UL=21,WL=22,GL=Object.freeze({__proto__:null,InputKeyDownArrowDown:SL,InputKeyDownArrowUp:CL,InputKeyDownEscape:wL,InputKeyDownHome:TL,InputKeyDownEnd:EL,InputKeyDownPageUp:DL,InputKeyDownPageDown:OL,InputKeyDownEnter:kL,InputChange:AL,InputBlur:jL,InputFocus:ML,MenuMouseLeave:NL,ItemMouseMove:PL,ItemClick:FL,ToggleButtonClick:IL,FunctionToggleMenu:LL,FunctionOpenMenu:RL,FunctionCloseMenu:zL,FunctionSetHighlightedIndex:BL,FunctionSelectItem:VL,FunctionSetInputValue:HL,FunctionReset:UL,ControlledPropUpdatedSelectedItem:WL});function KL(e){var t=FI(e),n=t.selectedItem,r=t.inputValue;return r===``&&n&&e.defaultInputValue===void 0&&e.initialInputValue===void 0&&e.inputValue===void 0&&(r=e.itemToString(n)),BF({},t,{inputValue:r})}Y.default.array.isRequired,Y.default.func,Y.default.func,Y.default.func,Y.default.func,Y.default.number,Y.default.number,Y.default.number,Y.default.bool,Y.default.bool,Y.default.bool,Y.default.any,Y.default.any,Y.default.any,Y.default.string,Y.default.string,Y.default.string,Y.default.string,Y.default.string,Y.default.string,Y.default.func,Y.default.string,Y.default.string,Y.default.func,Y.default.func,Y.default.func,Y.default.func,Y.default.func,Y.default.func,Y.default.shape({addEventListener:Y.default.func,removeEventListener:Y.default.func,document:Y.default.shape({getElementById:Y.default.func,activeElement:Y.default.any,body:Y.default.any})});function qL(e,t,n){var r=(0,I.useRef)(),i=AI(e,t,n),a=i[0],o=i[1];return(0,I.useEffect)(function(){cI(n,`selectedItem`)&&(n.selectedItemChanged(r.current,n.selectedItem)&&o({type:WL,inputValue:n.itemToString(n.selectedItem)}),r.current=a.selectedItem===r.current?n.selectedItem:a.selectedItem)},[a.selectedItem,n.selectedItem]),[sI(a,n),o]}var JL=$F,YL=BF({},MI,{selectedItemChanged:function(e,t){return e!==t},getA11yStatusMessage:oI});function XL(e,t){var n=t.type,r=t.props,i=t.altKey,a;switch(n){case FL:a={isOpen:NI(r,`isOpen`),highlightedIndex:NI(r,`highlightedIndex`),selectedItem:r.items[t.index],inputValue:r.itemToString(r.items[t.index])};break;case SL:a=e.isOpen?{highlightedIndex:uI(1,e.highlightedIndex,r.items.length,t.getItemNodeFromIndex,!0)}:{highlightedIndex:i&&e.selectedItem==null?-1:II(r,e,1,t.getItemNodeFromIndex),isOpen:r.items.length>=0};break;case CL:a=e.isOpen?i?HI(r,e.highlightedIndex):{highlightedIndex:uI(-1,e.highlightedIndex,r.items.length,t.getItemNodeFromIndex,!0)}:{highlightedIndex:II(r,e,-1,t.getItemNodeFromIndex),isOpen:r.items.length>=0};break;case kL:a=HI(r,e.highlightedIndex);break;case wL:a=BF({isOpen:!1,highlightedIndex:-1},!e.isOpen&&{selectedItem:null,inputValue:``});break;case DL:a={highlightedIndex:uI(-10,e.highlightedIndex,r.items.length,t.getItemNodeFromIndex,!1)};break;case OL:a={highlightedIndex:uI(10,e.highlightedIndex,r.items.length,t.getItemNodeFromIndex,!1)};break;case TL:a={highlightedIndex:dI(1,0,r.items.length,t.getItemNodeFromIndex,!1)};break;case EL:a={highlightedIndex:dI(-1,r.items.length-1,r.items.length,t.getItemNodeFromIndex,!1)};break;case jL:a=BF({isOpen:!1,highlightedIndex:-1},e.highlightedIndex>=0&&r.items?.length&&t.selectItem&&{selectedItem:r.items[e.highlightedIndex],inputValue:r.itemToString(r.items[e.highlightedIndex])});break;case AL:a={isOpen:!0,highlightedIndex:NI(r,`highlightedIndex`),inputValue:t.inputValue};break;case ML:a={isOpen:!0,highlightedIndex:II(r,e,0)};break;case VL:a={selectedItem:t.selectedItem,inputValue:r.itemToString(t.selectedItem)};break;case WL:a={inputValue:t.inputValue};break;default:return UI(e,t,GL)}return BF({},e,a)}var ZL=[`onMouseLeave`,`refKey`,`ref`],QL=[`item`,`index`,`refKey`,`ref`,`onMouseMove`,`onMouseDown`,`onClick`,`onPress`,`disabled`],$L=[`onClick`,`onPress`,`refKey`,`ref`],eR=[`onKeyDown`,`onChange`,`onInput`,`onFocus`,`onBlur`,`onChangeText`,`refKey`,`ref`];tR.stateChangeTypes=GL;function tR(e){e===void 0&&(e={}),JL(e,tR);var t=BF({},YL,e),n=t.initialIsOpen,r=t.defaultIsOpen,i=t.items,a=t.scrollIntoView,o=t.environment,s=t.getA11yStatusMessage,c=t.getA11ySelectionMessage,l=t.itemToString,u=qL(XL,KL(t),t),d=u[0],f=u[1],p=d.isOpen,m=d.highlightedIndex,h=d.selectedItem,g=d.inputValue,_=(0,I.useRef)(null),v=(0,I.useRef)({}),y=(0,I.useRef)(null),b=(0,I.useRef)(null),x=(0,I.useRef)(!0),S=wI(t),C=(0,I.useRef)(),w=kI({state:d,props:t}),T=(0,I.useCallback)(function(e){return v.current[S.getItemId(e)]},[S]);zI(s,[p,m,g,i],BF({isInitialMount:x.current,previousResultCount:C.current,items:i,environment:o,itemToString:l},d)),zI(c,[h],BF({isInitialMount:x.current,previousResultCount:C.current,items:i,environment:o,itemToString:l},d));var E=BI({menuElement:_.current,highlightedIndex:m,isOpen:p,itemRefs:v,scrollIntoView:a,getItemNodeFromIndex:T});VI({isInitialMount:x.current,props:t,state:d}),(0,I.useEffect)(function(){(n||r||p)&&y.current&&y.current.focus()},[]),(0,I.useEffect)(function(){x.current||(C.current=i.length)});var ee=LI(p,[y,_,b],o,function(){f({type:jL,selectItem:!1})}),D=RI(`getInputProps`,`getMenuProps`);(0,I.useEffect)(function(){return x.current=!1,function(){x.current=!0}},[]),(0,I.useEffect)(function(){if(!p)v.current={};else if(o.document?.activeElement!==y.current){var e;y==null||(e=y.current)==null||e.focus()}},[p,o]);var O=(0,I.useMemo)(function(){return{ArrowDown:function(e){e.preventDefault(),f({type:SL,altKey:e.altKey,getItemNodeFromIndex:T})},ArrowUp:function(e){e.preventDefault(),f({type:CL,altKey:e.altKey,getItemNodeFromIndex:T})},Home:function(e){w.current.state.isOpen&&(e.preventDefault(),f({type:TL,getItemNodeFromIndex:T}))},End:function(e){w.current.state.isOpen&&(e.preventDefault(),f({type:EL,getItemNodeFromIndex:T}))},Escape:function(e){var t=w.current.state;(t.isOpen||t.inputValue||t.selectedItem||t.highlightedIndex>-1)&&(e.preventDefault(),f({type:wL}))},Enter:function(e){!w.current.state.isOpen||e.which===229||(e.preventDefault(),f({type:kL,getItemNodeFromIndex:T}))},PageUp:function(e){w.current.state.isOpen&&(e.preventDefault(),f({type:DL,getItemNodeFromIndex:T}))},PageDown:function(e){w.current.state.isOpen&&(e.preventDefault(),f({type:OL,getItemNodeFromIndex:T}))}}},[f,w,T]),k=(0,I.useCallback)(function(e){return BF({id:S.labelId,htmlFor:S.inputId},e)},[S]),te=(0,I.useCallback)(function(e,t){var n,r=e===void 0?{}:e,i=r.onMouseLeave,a=r.refKey,o=a===void 0?`ref`:a,s=r.ref,c=zF(r,ZL),l=(t===void 0?{}:t).suppressRefError;return D(`getMenuProps`,l===void 0?!1:l,o,_),BF((n={},n[o]=iI(s,function(e){_.current=e}),n.id=S.menuId,n.role=`listbox`,n[`aria-labelledby`]=c&&c[`aria-label`]?void 0:``+S.labelId,n.onMouseLeave=rI(i,function(){f({type:NL})}),n),c)},[f,D,S]),A=(0,I.useCallback)(function(e){var t,n,r=e===void 0?{}:e,i=r.item,a=r.index,o=r.refKey,s=o===void 0?`ref`:o,c=r.ref,l=r.onMouseMove,u=r.onMouseDown,d=r.onClick;r.onPress;var p=r.disabled,m=zF(r,QL),h=w.current,g=h.props,_=h.state,y=TI(i,a,g.items,`Pass either item or index to getItemProps!`)[1],b=`onClick`,x=d;return BF((t={},t[s]=iI(c,function(e){e&&(v.current[S.getItemId(y)]=e)}),t.disabled=p,t.role=`option`,t[`aria-selected`]=``+(y===_.highlightedIndex),t.id=S.getItemId(y),t),!p&&(n={},n[b]=rI(x,function(){f({type:FL,index:y})}),n),{onMouseMove:rI(l,function(){y!==_.highlightedIndex&&(E.current=!1,f({type:PL,index:y,disabled:p}))}),onMouseDown:rI(u,function(e){return e.preventDefault()})},m)},[f,w,E,S]),j=(0,I.useCallback)(function(e){var t,n=e===void 0?{}:e,r=n.onClick;n.onPress;var i=n.refKey,a=i===void 0?`ref`:i,o=n.ref,s=zF(n,$L),c=w.current.state;return BF((t={},t[a]=iI(o,function(e){b.current=e}),t[`aria-controls`]=S.menuId,t[`aria-expanded`]=c.isOpen,t.id=S.toggleButtonId,t.tabIndex=-1,t),!s.disabled&&BF({},{onClick:rI(r,function(){f({type:IL})})}),s)},[f,w,S]),M=(0,I.useCallback)(function(e,t){var n,r=e===void 0?{}:e,i=r.onKeyDown,a=r.onChange,s=r.onInput,c=r.onFocus,l=r.onBlur;r.onChangeText;var u=r.refKey,d=u===void 0?`ref`:u,p=r.ref,m=zF(r,eR),h=(t===void 0?{}:t).suppressRefError;D(`getInputProps`,h===void 0?!1:h,d,y);var g=w.current.state,_=function(e){var t=lI(e);t&&O[t]&&O[t](e)},v=function(e){f({type:AL,inputValue:e.target.value})},b=function(e){g.isOpen&&!ee.current.isMouseDown&&f({type:jL,selectItem:!(e.relatedTarget===null&&o.document.activeElement!==o.document.body)})},x=function(){g.isOpen||f({type:ML})},C=`onChange`,T={};if(!m.disabled){var E;T=(E={},E[C]=rI(a,s,v),E.onKeyDown=rI(i,_),E.onBlur=rI(l,b),E.onFocus=rI(c,x),E)}return BF((n={},n[d]=iI(p,function(e){y.current=e}),n[`aria-activedescendant`]=g.isOpen&&g.highlightedIndex>-1?S.getItemId(g.highlightedIndex):``,n[`aria-autocomplete`]=`list`,n[`aria-controls`]=S.menuId,n[`aria-expanded`]=g.isOpen,n[`aria-labelledby`]=m&&m[`aria-label`]?void 0:``+S.labelId,n.autoComplete=`off`,n.id=S.inputId,n.role=`combobox`,n.value=g.inputValue,n),T,m)},[D,w,S,O,f,ee,o]),ne=(0,I.useCallback)(function(){f({type:LL})},[f]),re=(0,I.useCallback)(function(){f({type:zL})},[f]),ie=(0,I.useCallback)(function(){f({type:RL})},[f]),ae=(0,I.useCallback)(function(e){f({type:BL,highlightedIndex:e})},[f]),oe=(0,I.useCallback)(function(e){f({type:VL,selectedItem:e})},[f]);return{getItemProps:A,getLabelProps:k,getMenuProps:te,getInputProps:M,getToggleButtonProps:j,toggleMenu:ne,openMenu:ie,closeMenu:re,setHighlightedIndex:ae,setInputValue:(0,I.useCallback)(function(e){f({type:HL,inputValue:e})},[f]),selectItem:oe,reset:(0,I.useCallback)(function(){f({type:UL})},[f]),highlightedIndex:m,isOpen:p,selectedItem:h,inputValue:g}}var nR={activeIndex:-1,selectedItems:[]};function rR(e,t){return PI(e,t,nR)}function iR(e,t){return NI(e,t,nR)}function aR(e){return{activeIndex:rR(e,`activeIndex`),selectedItems:rR(e,`selectedItems`)}}function oR(e){if(e.shiftKey||e.metaKey||e.ctrlKey||e.altKey)return!1;var t=e.target;return!(t instanceof HTMLInputElement&&t.value!==``&&(t.selectionStart!==0||t.selectionEnd!==0))}function sR(e){var t=e.removedSelectedItem,n=e.itemToString;return n(t)+` has been removed.`}Y.default.array,Y.default.array,Y.default.array,Y.default.func,Y.default.func,Y.default.func,Y.default.number,Y.default.number,Y.default.number,Y.default.func,Y.default.func,Y.default.string,Y.default.string,Y.default.shape({addEventListener:Y.default.func,removeEventListener:Y.default.func,document:Y.default.shape({getElementById:Y.default.func,activeElement:Y.default.any,body:Y.default.any})});var cR={itemToString:MI.itemToString,stateReducer:MI.stateReducer,environment:MI.environment,getA11yRemovalMessage:sR,keyNavigationNext:`ArrowRight`,keyNavigationPrevious:`ArrowLeft`},lR=$F,uR=0,dR=1,fR=2,pR=3,mR=4,hR=5,gR=6,_R=7,vR=8,yR=9,bR=10,xR=11,SR=12,CR=Object.freeze({__proto__:null,SelectedItemClick:uR,SelectedItemKeyDownDelete:dR,SelectedItemKeyDownBackspace:fR,SelectedItemKeyDownNavigationNext:pR,SelectedItemKeyDownNavigationPrevious:mR,DropdownKeyDownNavigationPrevious:hR,DropdownKeyDownBackspace:gR,DropdownClick:_R,FunctionAddSelectedItem:vR,FunctionRemoveSelectedItem:yR,FunctionSetSelectedItems:bR,FunctionSetActiveIndex:xR,FunctionReset:SR});function wR(e,t){var n=t.type,r=t.index,i=t.props,a=t.selectedItem,o=e.activeIndex,s=e.selectedItems,c;switch(n){case uR:c={activeIndex:r};break;case mR:c={activeIndex:o-1<0?0:o-1};break;case pR:c={activeIndex:o+1>=s.length?-1:o+1};break;case fR:case dR:if(o<0)break;var l=o;s.length===1?l=-1:o===s.length-1&&(l=s.length-2),c=BF({selectedItems:[].concat(s.slice(0,o),s.slice(o+1))},{activeIndex:l});break;case hR:c={activeIndex:s.length-1};break;case gR:c={selectedItems:s.slice(0,s.length-1)};break;case vR:c={selectedItems:[].concat(s,[a])};break;case _R:c={activeIndex:-1};break;case yR:var u=o,d=s.indexOf(a);if(d<0)break;s.length===1?u=-1:d===s.length-1&&(u=s.length-2),c={selectedItems:[].concat(s.slice(0,d),s.slice(d+1)),activeIndex:u};break;case bR:c={selectedItems:t.selectedItems};break;case xR:c={activeIndex:t.activeIndex};break;case SR:c={activeIndex:iR(i,`activeIndex`),selectedItems:iR(i,`selectedItems`)};break;default:throw Error(`Reducer called without proper action type.`)}return BF({},e,c)}var TR=[`refKey`,`ref`,`onClick`,`onKeyDown`,`selectedItem`,`index`],ER=[`refKey`,`ref`,`onKeyDown`,`onClick`,`preventKeyAction`];DR.stateChangeTypes=CR;function DR(e){e===void 0&&(e={}),lR(e,DR);var t=BF({},cR,e),n=t.getA11yRemovalMessage,r=t.itemToString,i=t.environment,a=t.keyNavigationNext,o=t.keyNavigationPrevious,s=jI(wR,aR(t),t),c=s[0],l=s[1],u=c.activeIndex,d=c.selectedItems,f=(0,I.useRef)(!0),p=(0,I.useRef)(null),m=(0,I.useRef)(d),h=(0,I.useRef)();h.current=[];var g=kI({state:c,props:t});(0,I.useEffect)(function(){if(!f.current){if(d.length<m.current.length){var e=m.current.find(function(e){return d.indexOf(e)<0});mI(n({itemToString:r,resultCount:d.length,removedSelectedItem:e,activeIndex:u,activeSelectedItem:d[u]}),i.document)}m.current=d}},[d.length]),(0,I.useEffect)(function(){f.current||(u===-1&&p.current?p.current.focus():h.current[u]&&h.current[u].focus())},[u]),VI({isInitialMount:f.current,props:t,state:c});var _=RI(`getDropdownProps`);(0,I.useEffect)(function(){return f.current=!1,function(){f.current=!0}},[]);var v=(0,I.useMemo)(function(){var e;return e={},e[o]=function(){l({type:mR})},e[a]=function(){l({type:pR})},e.Delete=function(){l({type:dR})},e.Backspace=function(){l({type:fR})},e},[l,a,o]),y=(0,I.useMemo)(function(){var e;return e={},e[o]=function(e){oR(e)&&l({type:hR})},e.Backspace=function(e){oR(e)&&l({type:gR})},e},[l,o]);return{getSelectedItemProps:(0,I.useCallback)(function(e){var t,n=e===void 0?{}:e,r=n.refKey,i=r===void 0?`ref`:r,a=n.ref,o=n.onClick,s=n.onKeyDown,c=n.selectedItem,u=n.index,d=zF(n,TR),f=g.current.state,p=TI(c,u,f.selectedItems,`Pass either item or index to getSelectedItemProps!`)[1],m=p>-1&&p===f.activeIndex;return BF((t={},t[i]=iI(a,function(e){e&&h.current.push(e)}),t.tabIndex=m?0:-1,t.onClick=rI(o,function(){l({type:uR,index:p})}),t.onKeyDown=rI(s,function(e){var t=lI(e);t&&v[t]&&v[t](e)}),t),d)},[l,g,v]),getDropdownProps:(0,I.useCallback)(function(e,t){var n,r=e===void 0?{}:e,i=r.refKey,a=i===void 0?`ref`:i,o=r.ref,s=r.onKeyDown,c=r.onClick,u=r.preventKeyAction,d=u===void 0?!1:u,f=zF(r,ER),m=(t===void 0?{}:t).suppressRefError;return _(`getDropdownProps`,m===void 0?!1:m,a,p),BF((n={},n[a]=iI(o,function(e){e&&(p.current=e)}),n),!d&&{onKeyDown:rI(s,function(e){var t=lI(e);t&&y[t]&&y[t](e)}),onClick:rI(c,function(){l({type:_R})})},f)},[l,y,_]),addSelectedItem:(0,I.useCallback)(function(e){l({type:vR,selectedItem:e})},[l]),removeSelectedItem:(0,I.useCallback)(function(e){l({type:yR,selectedItem:e})},[l]),setSelectedItems:(0,I.useCallback)(function(e){l({type:bR,selectedItems:e})},[l]),setActiveIndex:(0,I.useCallback)(function(e){l({type:xR,activeIndex:e})},[l]),reset:(0,I.useCallback)(function(){l({type:SR})},[l]),selectedItems:d,activeIndex:u}}var OR=20,kR=e=>e.suggestions.length>0?I.createElement(AR,{...e}):I.createElement(`input`,{className:q.textInput,size:40,autoFocus:!0,...e.register(e.inputName)}),AR=({autofocus:e,suggestions:t,control:n,inputName:r,placeholder:i,initialInputValue:a,setValue:o})=>{let[s,c]=I.useState(t.slice(0,OR)),l=Cn(Cx),u=t.length>0,{isOpen:d,getToggleButtonProps:f,getMenuProps:p,getInputProps:m,highlightedIndex:h,getItemProps:g,selectedItem:_}=tR({initialInputValue:a,onInputValueChange({inputValue:e=``}){o(r,e),e=e.toLowerCase()||``;let n=[];for(let r of t)if(r.toLowerCase().includes(e)&&(n.push(r),n.length>=OR))break;c(n)},items:s,itemToString(e){return e??``}}),v=d&&s.length>0;return I.createElement(`div`,{className:q.downshiftAutocompleteContainer},I.createElement(`div`,{"data-visible-dropdown":v,className:q.downshiftInputWrapper},I.createElement(MP,{name:r,control:n,render:({field:t})=>{let n=m();return I.createElement(`input`,{...n,name:t.name,placeholder:i,className:q.downshiftInput,size:30,"data-editor-dialog":!0,autoFocus:e})}}),u&&I.createElement(`button`,{"aria-label":`toggle menu`,type:`button`,...f()},l(`arrow_drop_down`))),I.createElement(`div`,{className:q.downshiftAutocompleteContainer},I.createElement(`ul`,{...p(),"data-visible":v},s.map((e,t)=>I.createElement(`li`,{"data-selected":_===e,"data-highlighted":h===t,key:`${e}${t}`,...g({item:e,index:t})},e)))))},jR=()=>{let[e,t,n,r,i]=wn(ez,az,ax,nz,uz),a=Tn(dz),o=Tn(cz),s=Qx(),{register:c,handleSubmit:l,control:u,setValue:d,reset:f}=RF({values:t.type===`editing`?t.initialValues:{}}),p=()=>{f({src:``,title:``,altText:``,width:void 0,height:void 0})};return t.type===`inactive`?null:I.createElement(qN,{open:!0,onOpenChange:e=>{e||(o(),p())}},I.createElement(JN,{container:n?.current},I.createElement(YN,{className:q.dialogOverlay}),I.createElement(XN,{className:q.dialogContent,onOpenAutoFocus:e=>{e.preventDefault()}},I.createElement(ZN,null,s(`uploadImage.dialogTitle`,`Upload an image`)),I.createElement(`form`,{onSubmit:async e=>{e.preventDefault(),e.stopPropagation(),await l(a)(e),p()},className:q.multiFieldForm},r===null?I.createElement(`input`,{type:`hidden`,accept:`image/*`,...c(`file`)}):I.createElement(`div`,{className:q.formField},I.createElement(`label`,{htmlFor:`file`},s(`uploadImage.uploadInstructions`,`Upload an image from your device:`)),I.createElement(`input`,{type:`file`,accept:`image/*`,...c(`file`)})),I.createElement(`div`,{className:q.formField},I.createElement(`label`,{htmlFor:`src`},r===null?s(`uploadImage.addViaUrlInstructionsNoUpload`,`Add an image from an URL:`):s(`uploadImage.addViaUrlInstructions`,`Or add an image from an URL:`)),I.createElement(kR,{register:c,initialInputValue:t.type===`editing`?t.initialValues.src??``:``,inputName:`src`,suggestions:e,setValue:d,control:u,placeholder:s(`uploadImage.autoCompletePlaceholder`,`Select or paste an image src`)})),I.createElement(`div`,{className:q.formField},I.createElement(`label`,{htmlFor:`alt`},s(`uploadImage.alt`,`Alt:`)),I.createElement(`input`,{type:`text`,...c(`altText`),className:q.textInput})),I.createElement(`div`,{className:q.formField},I.createElement(`label`,{htmlFor:`title`},s(`uploadImage.title`,`Title:`)),I.createElement(`input`,{type:`text`,...c(`title`),className:q.textInput})),i&&I.createElement(`div`,{className:q.imageDimensionsContainer},I.createElement(`div`,{className:q.formField},I.createElement(`label`,{htmlFor:`width`},s(`uploadImage.width`,`Width:`)),I.createElement(`input`,{type:`number`,min:0,...c(`width`),className:q.textInput})),I.createElement(`div`,{className:q.formField},I.createElement(`label`,{htmlFor:`height`},s(`uploadImage.height`,`Height:`)),I.createElement(`input`,{type:`number`,min:0,...c(`height`),className:q.textInput}))),I.createElement(`div`,{style:{display:`flex`,justifyContent:`flex-end`,gap:`var(--spacing-2)`}},I.createElement(`button`,{type:`submit`,title:s(`dialogControls.save`,`Save`),"aria-label":s(`dialogControls.save`,`Save`),className:(0,NC.default)(q.primaryButton)},s(`dialogControls.save`,`Save`)),I.createElement(QN,{asChild:!0},I.createElement(`button`,{type:`reset`,title:s(`dialogControls.cancel`,`Cancel`),"aria-label":s(`dialogControls.cancel`,`Cancel`),className:(0,NC.default)(q.secondaryButton)},s(`dialogControls.cancel`,`Cancel`))))))))};function MR(e,t,n){return Math.min(Math.max(e,t),n)}var NR={east:1,north:8,south:2,west:4};function PR({onResizeStart:e,onResizeEnd:t,imageRef:n,maxWidth:r,editor:i}){let a=(0,I.useRef)(null),o=(0,I.useRef)({priority:``,value:`default`}),s=(0,I.useRef)({currentHeight:0,currentWidth:0,direction:0,isResizing:!1,ratio:0,startHeight:0,startWidth:0,startX:0,startY:0}),c=i.getRootElement(),l=r??(c===null?100:c.getBoundingClientRect().width-20),u=c===null?100:c.getBoundingClientRect().height-20,d=e=>{let t=e===NR.east||e===NR.west,n=e===NR.north||e===NR.south,r=e&NR.north&&e&NR.west||e&NR.south&&e&NR.east,i=t?`ew`:n?`ns`:r?`nwse`:`nesw`;c!==null&&c.style.setProperty(`cursor`,`${i}-resize`,`important`),document.body!==null&&(document.body.style.setProperty(`cursor`,`${i}-resize`,`important`),o.current.value=document.body.style.getPropertyValue(`-webkit-user-select`),o.current.priority=document.body.style.getPropertyPriority(`-webkit-user-select`),document.body.style.setProperty(`-webkit-user-select`,`none`,`important`))},f=()=>{c!==null&&c.style.setProperty(`cursor`,`text`),document.body!==null&&(document.body.style.setProperty(`cursor`,`default`),document.body.style.setProperty(`-webkit-user-select`,o.current.value,o.current.priority))},p=(t,r)=>{if(!i.isEditable())return;let o=n.current,c=a.current;if(o!==null&&c!==null){t.preventDefault();let{width:n,height:i}=o.getBoundingClientRect(),a=s.current;a.startWidth=n,a.startHeight=i,a.ratio=n/i,a.currentWidth=n,a.currentHeight=i,a.startX=t.clientX,a.startY=t.clientY,a.isResizing=!0,a.direction=r,d(r),e(),c.classList.add(q.imageControlWrapperResizing),o.style.height=`${i}px`,o.style.width=`${n}px`,document.addEventListener(`pointermove`,m),document.addEventListener(`pointerup`,h)}},m=e=>{let t=n.current,r=s.current,i=r.direction&(NR.east|NR.west),a=r.direction&(NR.south|NR.north);if(t!==null&&r.isResizing)if(i&&a){let n=Math.floor(r.startX-e.clientX);n=r.direction&NR.east?-n:n;let i=MR(r.startWidth+n,100,l),a=i/r.ratio;t.style.width=`${i}px`,t.style.height=`${a}px`,r.currentHeight=a,r.currentWidth=i}else if(a){let n=Math.floor(r.startY-e.clientY);n=r.direction&NR.south?-n:n;let i=MR(r.startHeight+n,100,u);t.style.height=`${i}px`,r.currentHeight=i}else{let n=Math.floor(r.startX-e.clientX);n=r.direction&NR.east?-n:n;let i=MR(r.startWidth+n,100,l);t.style.width=`${i}px`,r.currentWidth=i}},h=()=>{let e=n.current,r=s.current,i=a.current;if(e!==null&&i!==null&&r.isResizing){let e=r.currentWidth,n=r.currentHeight;r.startWidth=0,r.startHeight=0,r.ratio=0,r.startX=0,r.startY=0,r.currentWidth=0,r.currentHeight=0,r.isResizing=!1,i.classList.remove(q.imageControlWrapperResizing),f(),t(e,n),document.removeEventListener(`pointermove`,m),document.removeEventListener(`pointerup`,h)}};return I.createElement(`div`,{ref:a},I.createElement(`div`,{className:(0,NC.default)(q.imageResizer,q.imageResizerN),onPointerDown:e=>{p(e,NR.north)}}),I.createElement(`div`,{className:(0,NC.default)(q.imageResizer,q.imageResizerNe),onPointerDown:e=>{p(e,NR.north|NR.east)}}),I.createElement(`div`,{className:(0,NC.default)(q.imageResizer,q.imageResizerE),onPointerDown:e=>{p(e,NR.east)}}),I.createElement(`div`,{className:(0,NC.default)(q.imageResizer,q.imageResizerSe),onPointerDown:e=>{p(e,NR.south|NR.east)}}),I.createElement(`div`,{className:(0,NC.default)(q.imageResizer,q.imageResizerS),onPointerDown:e=>{p(e,NR.south)}}),I.createElement(`div`,{className:(0,NC.default)(q.imageResizer,q.imageResizerSw),onPointerDown:e=>{p(e,NR.south|NR.west)}}),I.createElement(`div`,{className:(0,NC.default)(q.imageResizer,q.imageResizerW),onPointerDown:e=>{p(e,NR.west)}}),I.createElement(`div`,{className:(0,NC.default)(q.imageResizer,q.imageResizerNw),onPointerDown:e=>{p(e,NR.north|NR.west)}}))}var FR=`data:image/svg+xml;charset=utf-8,%0A%20%20%20%20%3Csvg%20id%3D%22imgLoadError%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22100%22%20height%3D%22100%22%3E%0A%20%20%20%20%20%20%3Crect%20x%3D%220%22%20y%3D%220%22%20width%3D%22100%22%20height%3D%22100%22%20fill%3D%22none%22%20stroke%3D%22red%22%20stroke-width%3D%224%22%20stroke-dasharray%3D%224%22%20%2F%3E%0A%20%20%20%20%20%20%3Ctext%20x%3D%2250%22%20y%3D%2255%22%20text-anchor%3D%22middle%22%20font-size%3D%2220%22%20fill%3D%22red%22%3E%E2%9A%A0%EF%B8%8F%3C%2Ftext%3E%0A%20%20%20%20%3C%2Fsvg%3E%0A`,IR={__cache:{},read(e){if(this.__cache[e]||(this.__cache[e]=new Promise(t=>{let n=new Image;n.onerror=()=>{this.__cache[e]=FR,t()},n.onload=()=>{this.__cache[e]=e,t()},n.src=e})),this.__cache[e]instanceof Promise)throw this.__cache[e];return this.__cache[e]}};function LR({title:e,alt:t,className:n,imageRef:r,src:i,width:a,height:o}){return I.createElement(`img`,{className:n??void 0,alt:t,src:IR.read(i),title:e,ref:r,draggable:`false`,width:a,height:o})}function RR({src:e,title:t,alt:n,nodeKey:r,width:i,height:a,rest:o}){let[s,c,l,u,d,f]=wn(iz,tz,uz,rz,Pb,fz),p=I.useRef(null),m=I.useRef(null),[h,g,_]=ew(r),[v]=Ln(),[y,b]=I.useState(null),x=I.useRef(null),[S,C]=I.useState(!1),[w,T]=I.useState(null),[E,ee]=I.useState(null),D=I.useCallback(e=>{if(h&&Oo(U())){e.preventDefault();let t=gc(r);KR(t)&&t.remove()}return!1},[h,r]),O=I.useCallback(e=>{let t=U(),n=m.current;return h&&Oo(t)&&t.getNodes().length===1&&n!==null&&n!==document.activeElement?(e.preventDefault(),n.focus(),!0):!1},[h]),k=I.useCallback(e=>m.current===e.target?(wc(null),v.update(()=>{g(!0);let e=v.getRootElement();e!==null&&e.focus()}),!0):!1,[v,g]);I.useEffect(()=>{u?(async()=>{E||ee(e),T(await u(e))})().catch(e=>{console.error(e)}):T(e)},[e,u,E]),I.useEffect(()=>{if(l&&p.current){let{current:e}=p;zR(e,`width`,i),zR(e,`height`,a)}},[l,i,a]),I.useEffect(()=>{let e=!0,t=Ju(v.registerUpdateListener(({editorState:t})=>{e&&b(t.read(()=>U()))}),v.registerCommand(Di,(e,t)=>(x.current=t,!1),1),v.registerCommand(ki,e=>{let t=e;return S?!0:t.target===p.current?(t.shiftKey?g(!h):(_(),g(!0)),!0):!1},1),v.registerCommand(aa,e=>e.target===p.current?(e.preventDefault(),!0):!1,1),v.registerCommand(Qi,D,1),v.registerCommand(Xi,D,1),v.registerCommand(Ji,O,1),v.registerCommand(Zi,k,1));return()=>{e=!1,t()}},[_,v,S,h,r,D,O,k,g]);let te=(e,t)=>{setTimeout(()=>{C(!1)},200),v.update(()=>{let n=gc(r);KR(n)&&n.setWidthAndHeight(e,t)})},A=()=>{C(!0)},j=Oo(y),M=h,ne=I.useMemo(()=>{if(o.length===0)return null;let e=o.find(e=>e.type===`mdxJsxAttribute`&&(e.name===`class`||e.name===`className`));return e?e.value:null},[o]);return w===null?null:I.createElement(I.Suspense,{fallback:s?I.createElement(s,null):null},I.createElement(`div`,{className:q.imageWrapper,"data-editor-block-type":`image`},I.createElement(`div`,{draggable:j},I.createElement(LR,{width:i,height:a,className:(0,NC.default)({[q.focusedImage]:M},ne),src:w,title:t??``,alt:n??``,imageRef:p})),j&&M&&!c&&I.createElement(PR,{editor:v,imageRef:p,onResizeStart:A,onResizeEnd:te}),d||I.createElement(f,{nodeKey:r,imageSource:w,initialImagePath:E,title:t??``,alt:n??``,width:i,height:a})))}var zR=(e,t,n)=>{typeof n==`number`?e.style[t]=`${n}px`:e.style.removeProperty(t)},BR=Object.defineProperty,VR=(e,t,n)=>t in e?BR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,HR=(e,t,n)=>(VR(e,typeof t==`symbol`?t:t+``,n),n);function UR(e){if(e instanceof HTMLImageElement){let{alt:t,src:n,title:r,width:i,height:a}=e;return{node:GR({altText:t,src:n,title:r,width:i||void 0,height:a||void 0})}}return null}var WR=class e extends Os{constructor(e,t,n,r,i,a,o){super(o),HR(this,`__src`),HR(this,`__altText`),HR(this,`__title`),HR(this,`__width`),HR(this,`__height`),HR(this,`__rest`),this.__src=e,this.__title=n,this.__altText=t,this.__width=r??`inherit`,this.__height=i??`inherit`,this.__rest=a??[]}static getType(){return`image`}static clone(t){return new e(t.__src,t.__altText,t.__title,t.__width,t.__height,t.__rest,t.__key)}afterCloneFrom(e){super.afterCloneFrom(e),this.__src=e.__src,this.__altText=e.__altText,this.__title=e.__title,this.__width=e.__width,this.__height=e.__height,this.__rest=e.__rest}static importJSON(e){let{altText:t,title:n,src:r,width:i,rest:a,height:o}=e;return GR({altText:t,title:n,src:r,height:o,width:i,rest:a})}exportDOM(){let e=document.createElement(`img`);return e.setAttribute(`src`,this.__src),e.setAttribute(`alt`,this.__altText),this.__title&&e.setAttribute(`title`,this.__title),this.__width!==`inherit`&&this.__width&&e.setAttribute(`width`,this.__width.toString()),this.__height!==`inherit`&&this.__height&&e.setAttribute(`height`,this.__height.toString()),{element:e}}static importDOM(){return{img:()=>({conversion:UR,priority:0})}}exportJSON(){return{altText:this.getAltText(),title:this.getTitle(),height:this.__height===`inherit`?void 0:this.__height,width:this.__width===`inherit`?void 0:this.__width,src:this.getSrc(),rest:this.__rest,type:`image`,version:1}}setWidthAndHeight(e,t){let n=this.getWritable();n.__width=e,n.__height=t}createDOM(e,t){let n=document.createElement(`span`),r=e.theme.image;return r!==void 0&&(n.className=r),n}updateDOM(){return!1}getSrc(){return this.__src}getAltText(){return this.__altText}getTitle(){return this.__title}getHeight(){return this.__height}getWidth(){return this.__width}getRest(){return this.__rest}setTitle(e){this.getWritable().__title=e}setSrc(e){this.getWritable().__src=e}setAltText(e){this.getWritable().__altText=e??``}shouldBeSerializedAsElement(){return this.__width!==`inherit`||this.__height!==`inherit`||this.__rest.length>0}decorate(e){return I.createElement(RR,{src:this.getSrc(),title:this.getTitle(),nodeKey:this.getKey(),width:this.__width,height:this.__height,alt:this.__altText,rest:this.__rest})}};function GR(e){let{altText:t,title:n,src:r,key:i,width:a,height:o,rest:s}=e;return new WR(r,t,n,a,o,s,i)}function KR(e){return e instanceof WR}var qR={testLexicalNode:KR,visitLexicalNode({mdastParent:e,lexicalNode:t,actions:n}){if(t.shouldBeSerializedAsElement()){let r=new Image;t.getHeight()!==`inherit`&&(r.height=t.getHeight()),t.getWidth()!==`inherit`&&(r.width=t.getWidth()),t.getAltText()&&(r.alt=t.getAltText()),t.getTitle()&&(r.title=t.getTitle());for(let e of t.getRest())e.type===`mdxJsxAttribute`&&typeof e.value==`string`&&r.setAttribute(e.name,e.value);n.appendToParent(e,{type:`html`,value:r.outerHTML.replace(/>$/,` src="${t.getSrc()}" />`)})}else n.appendToParent(e,{type:`image`,url:t.getSrc(),alt:t.getAltText(),title:t.getTitle()})}},JR={testNode:`image`,visitNode({mdastNode:e,actions:t}){t.addAndStepInto(GR({src:e.url,altText:e.alt??``,title:e.title??``}))}},YR={testNode:e=>e.type===`html`&&e.value.trim().startsWith(`<img`),visitNode({mdastNode:e,lexicalParent:t}){let n=document.createElement(`div`);n.innerHTML=e.value;let r=n.querySelector(`img`);if(!r)throw Error(`Invalid HTML image`);let i=r.src,a=r.alt,o=r.title,s=r.width,c=r.height,l=GR({src:i||``,altText:a,title:o,width:s||void 0,height:c||void 0});if(t.getType()===`root`){let e=Vs();e.append(l),t.append(e)}else t.append(l)}};function XR(e,t){let n=e.attributes.find(e=>e.type===`mdxJsxAttribute`&&e.name===t);if(n)return n.value}var ZR={testNode:e=>(e.type===`mdxJsxTextElement`||e.type===`mdxJsxFlowElement`)&&e.name===`img`,visitNode({mdastNode:e,lexicalParent:t}){let n=XR(e,`src`);if(!n)return;let r=XR(e,`alt`)??``,i=XR(e,`title`),a=XR(e,`height`),o=XR(e,`width`),s=e.attributes.filter(e=>e.type===`mdxJsxAttribute`&&![`src`,`alt`,`title`,`height`,`width`].includes(e.name)),c=GR({src:n,altText:r,title:i,width:o?parseInt(o,10):void 0,height:a?parseInt(a,10):void 0,rest:s});if(t.getType()===`root`){let e=Vs();e.append(c),t.append(e)}else t.append(c)}},QR=yn(e=>{e.sub(e.pipe(QR,Dn(jb)),([e,t])=>{t?.update(()=>{let t=GR({altText:e.altText??``,src:e.src,title:e.title??``,width:pz(e.width),height:pz(e.height)});Xo([t]),nl(t.getParentOrThrow())&&ad(t,Vs).selectEnd()})})}),$R=yn(e=>{e.sub(e.pipe($R,Dn(nz)),([t,n])=>{let r=n=>{e.pub(QR,{...t,src:n})};`file`in t?n?.(t.file).then(r).catch(e=>{throw e}):r(t.src)})}),ez=R([]),tz=R(!1),nz=R(null),rz=R(null),iz=R(null),az=R({type:`inactive`},e=>{e.sub(e.pipe(dz,Dn(jb,nz,az,uz)),([t,n,r,i,a])=>{let o=i.type===`editing`?r=>{n?.update(()=>{let{nodeKey:e}=i,n=gc(e);if(n.setTitle(t.title),n.setAltText(t.altText),n.setSrc(r),a){let e=pz(t.width),r=pz(t.height);n.setWidthAndHeight(e??`inherit`,r??`inherit`)}}),e.pub(az,{type:`inactive`})}:n=>{e.pub(QR,{...t,src:n}),e.pub(az,{type:`inactive`})};t.file&&t.file.length>0?r?.(t.file.item(0)).then(o).catch(e=>{throw e}):t.src&&o(t.src)}),e.pub(Dx,t=>{let n=e.getValue(nz);return Ju(t.registerCommand(gz,e=>{let t=GR(e);return Xo([t]),nl(t.getParentOrThrow())&&ad(t,Vs).selectEnd(),!0},0),t.registerCommand(aa,e=>vz(e),3),t.registerCommand(oa,e=>yz(e,!!n),1),t.registerCommand(ra,n=>bz(n,t,e.getValue(nz)),3),t.registerCommand(Pi,r=>{if(!n){let e=Array.from(r.clipboardData?.items??[]);return e=e.filter(e=>e.type.includes(`text`)),!e.length||e.length===0}let i=Array.from(r.clipboardData?.items??[]);if(i.some(e=>!e.type.includes(`image`))||!i.length||i.length===0)return!1;let a=e.getValue(nz);return Promise.all(i.map(e=>a(e.getAsFile()))).then(e=>{e.forEach(e=>{t.dispatchCommand(gz,{src:e,altText:``})})}).catch(e=>{throw e}),!0},4))})}),oz=bn(e=>{e.link(e.pipe(oz,On({type:`new`})),az)}),sz=yn(e=>{e.link(e.pipe(sz,En(e=>({type:`editing`,...e}))),az)}),cz=bn(e=>{e.link(e.pipe(cz,On({type:`inactive`})),az)}),lz=R(!1),uz=R(!1),dz=yn(),fz=R(fN),pz=e=>{if(e===void 0)return;let t=parseInt(String(e),10);return Number.isNaN(t)?void 0:t},mz=Nn({init(e,t){e.pubIn({[lx]:[JR,YR,ZR],[cx]:WR,[fx]:qR,[Ax]:t?.ImageDialog??jR,[nz]:t?.imageUploadHandler??null,[ez]:t?.imageAutocompleteSuggestions??[],[tz]:!!t?.disableImageResize,[lz]:!!t?.disableImageSettingsButton,[uz]:!!t?.allowSetImageDimensions,[rz]:t?.imagePreviewHandler??null,[fz]:t?.EditImageToolbar??fN,[iz]:t?.imagePlaceholder??dN})},update(e,t){e.pubIn({[nz]:t?.imageUploadHandler??null,[ez]:t?.imageAutocompleteSuggestions??[],[tz]:!!t?.disableImageResize,[rz]:t?.imagePreviewHandler??null,[uz]:!!t?.allowSetImageDimensions,[fz]:t?.EditImageToolbar??fN,[iz]:t?.imagePlaceholder??dN})}}),hz=e=>UC?(e??window).getSelection():null,gz=B(`INSERT_IMAGE_COMMAND`),_z=`data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7`;function vz(e){let t=xz();if(!t)return!1;let n=e.dataTransfer;if(!n)return!1;n.setData(`text/plain`,`_`);let r=document.createElement(`img`);return r.src=_z,n.setDragImage(r,0,0),n.setData(`application/x-lexical-drag`,JSON.stringify({data:{altText:t.__altText,title:t.__title,key:t.getKey(),src:t.__src},type:`image`})),!0}function yz(e,t){if(t){let t=Array.from(e.dataTransfer?.items??[]);if(t=t.filter(e=>e.type.includes(`image`)),t.length>0)return e.preventDefault(),!0}return xz()?(Cz(e)||e.preventDefault(),!0):!1}function bz(e,t,n){let r=Array.from(e.dataTransfer?.items??[]);if(r=r.filter(e=>e.type.includes(`image`)),r.length>0&&n!==null)return e.preventDefault(),Promise.all(r.map(e=>e.kind===`string`?new Promise(t=>{e.getAsString(t)}):n(e.getAsFile()))).then(e=>{e.forEach(e=>{t.dispatchCommand(gz,{src:e,altText:``})})}).catch(e=>{throw e}),!0;let i=xz();if(!i)return!1;let a=Sz(e);if(!a)return!1;if(e.preventDefault(),Cz(e)){let n=wz(e);i.remove();let r=Bo();n!=null&&r.applyDOMRange(n),wc(r),t.dispatchCommand(gz,a)}return!0}function xz(){let e=U();if(!Oo(e))return null;let t=e.getNodes()[0];return KR(t)?t:null}function Sz(e){let t=e.dataTransfer?.getData(`application/x-lexical-drag`);if(!t)return null;let{type:n,data:r}=JSON.parse(t);return n===`image`?r:null}function Cz(e){let t=e.target;return!!(t&&t instanceof HTMLElement&&t.parentElement)}function wz(e){let t,n=e.target,r=hz(n==null?null:n.nodeType===9?n.defaultView:n.ownerDocument.defaultView);if(document.caretRangeFromPoint)t=document.caretRangeFromPoint(e.clientX,e.clientY);else if(e.rangeParent&&r!==null)r.collapse(e.rangeParent,e.rangeOffset??0),t=r.getRangeAt(0);else throw Error(`Cannot get the selection when dragging`);return t}var Tz=mt(dt(((e,t)=>{(function(){var e=t===void 0?function(){return this||(0,eval)(`this`)}():t.exports=i;e.format=i,e.vsprintf=r,typeof console<`u`&&typeof console.log==`function`&&(e.printf=n);function n(){console.log(i.apply(null,arguments))}function r(e,t){return i.apply(null,[e].concat(t))}function i(e){for(var t=1,n=[].slice.call(arguments),r=0,i=e.length,a=``,o,s=!1,c,l,u=!1,d,f=function(){return n[t++]},p=function(){for(var t=``;/\d/.test(e[r]);)t+=e[r++],o=e[r];return t.length>0?parseInt(t):null};r<i;++r)if(o=e[r],s)switch(s=!1,o==`.`?(u=!1,o=e[++r]):o==`0`&&e[r+1]==`.`?(u=!0,r+=2,o=e[r]):u=!0,d=p(),o){case`b`:a+=parseInt(f(),10).toString(2);break;case`c`:c=f(),typeof c==`string`||c instanceof String?a+=c:a+=String.fromCharCode(parseInt(c,10));break;case`d`:a+=parseInt(f(),10);break;case`f`:l=String(parseFloat(f()).toFixed(d||6)),a+=u?l:l.replace(/^0/,``);break;case`j`:a+=JSON.stringify(f());break;case`o`:a+=`0`+parseInt(f(),10).toString(8);break;case`s`:a+=f();break;case`x`:a+=`0x`+parseInt(f(),10).toString(16);break;case`X`:a+=`0x`+parseInt(f(),10).toString(16).toUpperCase();break;default:a+=o;break}else o===`%`?s=!0:a+=o;return a}})()}))(),1),Ez=Object.assign(Dz(Error),{eval:Dz(EvalError),range:Dz(RangeError),reference:Dz(ReferenceError),syntax:Dz(SyntaxError),type:Dz(TypeError),uri:Dz(URIError)});function Dz(e){return t.displayName=e.displayName||e.name,t;function t(t,...n){return new e(t&&(0,Tz.default)(t,...n))}}var Oz={}.hasOwnProperty,kz={yaml:`-`,toml:`+`};function Az(e){let t=[],n=-1,r=Array.isArray(e)?e:e?[e]:[`yaml`];for(;++n<r.length;)t[n]=jz(r[n]);return t}function jz(e){let t=e;if(typeof t==`string`){if(!Oz.call(kz,t))throw Ez("Missing matter definition for `%s`",t);t={type:t,marker:kz[t]}}else if(typeof t!=`object`)throw Ez("Expected matter to be an object, not `%j`",t);if(!Oz.call(t,`type`))throw Ez("Missing `type` in matter `%j`",t);if(!Oz.call(t,`fence`)&&!Oz.call(t,`marker`))throw Ez("Missing `marker` or `fence` in matter `%j`",t);return t}function Mz(e){let t=Az(e),n={},r=-1;for(;++r<t.length;){let e=t[r],i=Pz(e,`open`).charCodeAt(0),a=Nz(e),o=n[i];Array.isArray(o)?o.push(a):n[i]=[a]}return{flow:n}}function Nz(e){let t=e.anywhere,n=e.type,r=n+`Fence`,i=r+`Sequence`,a=n+`Value`,o={tokenize:u,partial:!0},s,c=0;return{tokenize:l,concrete:!0};function l(l,u,d){let f=this;return p;function p(a){let o=f.now();return o.column===1&&(o.line===1||t)&&(s=Pz(e,`open`),c=0,a===s.charCodeAt(c))?(l.enter(n),l.enter(r),l.enter(i),m(a)):d(a)}function m(e){return c===s.length?(l.exit(i),wf(e)?(l.enter(`whitespace`),h(e)):g(e)):e===s.charCodeAt(c++)?(l.consume(e),m):d(e)}function h(e){return wf(e)?(l.consume(e),h):(l.exit(`whitespace`),g(e))}function g(t){return K(t)?(l.exit(r),l.enter(`lineEnding`),l.consume(t),l.exit(`lineEnding`),s=Pz(e,`close`),c=0,l.attempt(o,b,_)):d(t)}function _(e){return e===null||K(e)?y(e):(l.enter(a),v(e))}function v(e){return e===null||K(e)?(l.exit(a),y(e)):(l.consume(e),v)}function y(e){return e===null?d(e):(l.enter(`lineEnding`),l.consume(e),l.exit(`lineEnding`),l.attempt(o,b,_))}function b(e){return l.exit(n),u(e)}}function u(e,t,n){let a=0;return o;function o(t){return t===s.charCodeAt(a)?(e.enter(r),e.enter(i),c(t)):n(t)}function c(t){return a===s.length?(e.exit(i),wf(t)?(e.enter(`whitespace`),l(t)):u(t)):t===s.charCodeAt(a++)?(e.consume(t),c):n(t)}function l(t){return wf(t)?(e.consume(t),l):(e.exit(`whitespace`),u(t))}function u(i){return i===null||K(i)?(e.exit(r),t(i)):n(i)}}}function Pz(e,t){return e.marker?Fz(e.marker,t).repeat(3):Fz(e.fence,t)}function Fz(e,t){return typeof e==`string`?e:e[t]}function Iz(e){if(typeof e!=`string`)throw TypeError(`Expected a string`);return e.replace(/[|\\{}()[\]^$+*?.]/g,`\\$&`).replace(/-/g,`\\x2d`)}function Lz(e){let t=Az(e),n={},r={},i=-1;for(;++i<t.length;){let e=t[i];n[e.type]=Rz(e),r[e.type]=zz,r[e.type+`Value`]=Bz}return{enter:n,exit:r}}function Rz(e){return t;function t(t){this.enter({type:e.type,value:``},t),this.buffer()}}function zz(e){let t=this.resume(),n=this.stack[this.stack.length-1];`value`in n,this.exit(e),n.value=t.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,``)}function Bz(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function Vz(e){let t=[],n={},r=Az(e),i=-1;for(;++i<r.length;){let e=r[i];n[e.type]=Hz(e);let a=Uz(e,`open`);t.push({atBreak:!0,character:a.charAt(0),after:Iz(a.charAt(1))})}return{unsafe:t,handlers:n}}function Hz(e){let t=Uz(e,`open`),n=Uz(e,`close`);return r;function r(e){return t+(e.value?`
|
|
132
|
-
`+e.value:``)+`
|
|
133
|
-
`+n}}function Uz(e,t){return e.marker?Wz(e.marker,t).repeat(3):Wz(e.fence,t)}function Wz(e,t){return typeof e==`string`?e:e[t]}function Gz(e){return e==null}function Kz(e){return typeof e==`object`&&!!e}function qz(e){return Array.isArray(e)?e:Gz(e)?[]:[e]}function Jz(e,t){var n,r,i,a;if(t)for(a=Object.keys(t),n=0,r=a.length;n<r;n+=1)i=a[n],e[i]=t[i];return e}function Yz(e,t){var n=``,r;for(r=0;r<t;r+=1)n+=e;return n}function Xz(e){return e===0&&1/e==-1/0}var Zz={isNothing:Gz,isObject:Kz,toArray:qz,repeat:Yz,isNegativeZero:Xz,extend:Jz};function Qz(e,t){var n=``,r=e.reason||`(unknown reason)`;return e.mark?(e.mark.name&&(n+=`in "`+e.mark.name+`" `),n+=`(`+(e.mark.line+1)+`:`+(e.mark.column+1)+`)`,!t&&e.mark.snippet&&(n+=`
|
|
134
|
-
|
|
135
|
-
`+e.mark.snippet),r+` `+n):r}function $z(e,t){Error.call(this),this.name=`YAMLException`,this.reason=e,this.mark=t,this.message=Qz(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack||``}$z.prototype=Object.create(Error.prototype),$z.prototype.constructor=$z,$z.prototype.toString=function(e){return this.name+`: `+Qz(this,e)};var eB=$z;function tB(e,t,n,r,i){var a=``,o=``,s=Math.floor(i/2)-1;return r-t>s&&(a=` ... `,t=r-s+a.length),n-r>s&&(o=` ...`,n=r+s-o.length),{str:a+e.slice(t,n).replace(/\t/g,`→`)+o,pos:r-t+a.length}}function nB(e,t){return Zz.repeat(` `,t-e.length)+e}function rB(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||=79,typeof t.indent!=`number`&&(t.indent=1),typeof t.linesBefore!=`number`&&(t.linesBefore=3),typeof t.linesAfter!=`number`&&(t.linesAfter=2);for(var n=/\r?\n|\r|\0/g,r=[0],i=[],a,o=-1;a=n.exec(e.buffer);)i.push(a.index),r.push(a.index+a[0].length),e.position<=a.index&&o<0&&(o=r.length-2);o<0&&(o=r.length-1);var s=``,c,l,u=Math.min(e.line+t.linesAfter,i.length).toString().length,d=t.maxLength-(t.indent+u+3);for(c=1;c<=t.linesBefore&&!(o-c<0);c++)l=tB(e.buffer,r[o-c],i[o-c],e.position-(r[o]-r[o-c]),d),s=Zz.repeat(` `,t.indent)+nB((e.line-c+1).toString(),u)+` | `+l.str+`
|
|
136
|
-
`+s;for(l=tB(e.buffer,r[o],i[o],e.position,d),s+=Zz.repeat(` `,t.indent)+nB((e.line+1).toString(),u)+` | `+l.str+`
|
|
137
|
-
`,s+=Zz.repeat(`-`,t.indent+u+3+l.pos)+`^
|
|
138
|
-
`,c=1;c<=t.linesAfter&&!(o+c>=i.length);c++)l=tB(e.buffer,r[o+c],i[o+c],e.position-(r[o]-r[o+c]),d),s+=Zz.repeat(` `,t.indent)+nB((e.line+c+1).toString(),u)+` | `+l.str+`
|
|
139
|
-
`;return s.replace(/\n$/,``)}var iB=rB,aB=[`kind`,`multi`,`resolve`,`construct`,`instanceOf`,`predicate`,`represent`,`representName`,`defaultStyle`,`styleAliases`],oB=[`scalar`,`sequence`,`mapping`];function sB(e){var t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(e){t[String(e)]=n})}),t}function cB(e,t){if(t||={},Object.keys(t).forEach(function(t){if(aB.indexOf(t)===-1)throw new eB(`Unknown option "`+t+`" is met in definition of "`+e+`" YAML type.`)}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=sB(t.styleAliases||null),oB.indexOf(this.kind)===-1)throw new eB(`Unknown kind "`+this.kind+`" is specified for "`+e+`" YAML type.`)}var lB=cB;function uB(e,t){var n=[];return e[t].forEach(function(e){var t=n.length;n.forEach(function(n,r){n.tag===e.tag&&n.kind===e.kind&&n.multi===e.multi&&(t=r)}),n[t]=e}),n}function dB(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,n;function r(t){t.multi?(e.multi[t.kind].push(t),e.multi.fallback.push(t)):e[t.kind][t.tag]=e.fallback[t.tag]=t}for(t=0,n=arguments.length;t<n;t+=1)arguments[t].forEach(r);return e}function fB(e){return this.extend(e)}fB.prototype.extend=function(e){var t=[],n=[];if(e instanceof lB)n.push(e);else if(Array.isArray(e))n=n.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(t=t.concat(e.implicit)),e.explicit&&(n=n.concat(e.explicit));else throw new eB(`Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })`);t.forEach(function(e){if(!(e instanceof lB))throw new eB(`Specified list of YAML types (or a single Type object) contains a non-Type object.`);if(e.loadKind&&e.loadKind!==`scalar`)throw new eB(`There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.`);if(e.multi)throw new eB(`There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.`)}),n.forEach(function(e){if(!(e instanceof lB))throw new eB(`Specified list of YAML types (or a single Type object) contains a non-Type object.`)});var r=Object.create(fB.prototype);return r.implicit=(this.implicit||[]).concat(t),r.explicit=(this.explicit||[]).concat(n),r.compiledImplicit=uB(r,`implicit`),r.compiledExplicit=uB(r,`explicit`),r.compiledTypeMap=dB(r.compiledImplicit,r.compiledExplicit),r};var pB=fB,mB=new lB(`tag:yaml.org,2002:str`,{kind:`scalar`,construct:function(e){return e===null?``:e}}),hB=new lB(`tag:yaml.org,2002:seq`,{kind:`sequence`,construct:function(e){return e===null?[]:e}}),gB=new lB(`tag:yaml.org,2002:map`,{kind:`mapping`,construct:function(e){return e===null?{}:e}}),_B=new pB({explicit:[mB,hB,gB]});function vB(e){if(e===null)return!0;var t=e.length;return t===1&&e===`~`||t===4&&(e===`null`||e===`Null`||e===`NULL`)}function yB(){return null}function bB(e){return e===null}var xB=new lB(`tag:yaml.org,2002:null`,{kind:`scalar`,resolve:vB,construct:yB,predicate:bB,represent:{canonical:function(){return`~`},lowercase:function(){return`null`},uppercase:function(){return`NULL`},camelcase:function(){return`Null`},empty:function(){return``}},defaultStyle:`lowercase`});function SB(e){if(e===null)return!1;var t=e.length;return t===4&&(e===`true`||e===`True`||e===`TRUE`)||t===5&&(e===`false`||e===`False`||e===`FALSE`)}function CB(e){return e===`true`||e===`True`||e===`TRUE`}function wB(e){return Object.prototype.toString.call(e)===`[object Boolean]`}var TB=new lB(`tag:yaml.org,2002:bool`,{kind:`scalar`,resolve:SB,construct:CB,predicate:wB,represent:{lowercase:function(e){return e?`true`:`false`},uppercase:function(e){return e?`TRUE`:`FALSE`},camelcase:function(e){return e?`True`:`False`}},defaultStyle:`lowercase`});function EB(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function DB(e){return 48<=e&&e<=55}function OB(e){return 48<=e&&e<=57}function kB(e){if(e===null)return!1;var t=e.length,n=0,r=!1,i;if(!t)return!1;if(i=e[n],(i===`-`||i===`+`)&&(i=e[++n]),i===`0`){if(n+1===t)return!0;if(i=e[++n],i===`b`){for(n++;n<t;n++)if(i=e[n],i!==`_`){if(i!==`0`&&i!==`1`)return!1;r=!0}return r&&i!==`_`}if(i===`x`){for(n++;n<t;n++)if(i=e[n],i!==`_`){if(!EB(e.charCodeAt(n)))return!1;r=!0}return r&&i!==`_`}if(i===`o`){for(n++;n<t;n++)if(i=e[n],i!==`_`){if(!DB(e.charCodeAt(n)))return!1;r=!0}return r&&i!==`_`}}if(i===`_`)return!1;for(;n<t;n++)if(i=e[n],i!==`_`){if(!OB(e.charCodeAt(n)))return!1;r=!0}return!(!r||i===`_`)}function AB(e){var t=e,n=1,r;if(t.indexOf(`_`)!==-1&&(t=t.replace(/_/g,``)),r=t[0],(r===`-`||r===`+`)&&(r===`-`&&(n=-1),t=t.slice(1),r=t[0]),t===`0`)return 0;if(r===`0`){if(t[1]===`b`)return n*parseInt(t.slice(2),2);if(t[1]===`x`)return n*parseInt(t.slice(2),16);if(t[1]===`o`)return n*parseInt(t.slice(2),8)}return n*parseInt(t,10)}function jB(e){return Object.prototype.toString.call(e)===`[object Number]`&&e%1==0&&!Zz.isNegativeZero(e)}var MB=new lB(`tag:yaml.org,2002:int`,{kind:`scalar`,resolve:kB,construct:AB,predicate:jB,represent:{binary:function(e){return e>=0?`0b`+e.toString(2):`-0b`+e.toString(2).slice(1)},octal:function(e){return e>=0?`0o`+e.toString(8):`-0o`+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?`0x`+e.toString(16).toUpperCase():`-0x`+e.toString(16).toUpperCase().slice(1)}},defaultStyle:`decimal`,styleAliases:{binary:[2,`bin`],octal:[8,`oct`],decimal:[10,`dec`],hexadecimal:[16,`hex`]}}),NB=RegExp(`^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`);function PB(e){return!(e===null||!NB.test(e)||e[e.length-1]===`_`)}function FB(e){var t=e.replace(/_/g,``).toLowerCase(),n=t[0]===`-`?-1:1;return`+-`.indexOf(t[0])>=0&&(t=t.slice(1)),t===`.inf`?n===1?1/0:-1/0:t===`.nan`?NaN:n*parseFloat(t,10)}var IB=/^[-+]?[0-9]+e/;function LB(e,t){var n;if(isNaN(e))switch(t){case`lowercase`:return`.nan`;case`uppercase`:return`.NAN`;case`camelcase`:return`.NaN`}else if(e===1/0)switch(t){case`lowercase`:return`.inf`;case`uppercase`:return`.INF`;case`camelcase`:return`.Inf`}else if(e===-1/0)switch(t){case`lowercase`:return`-.inf`;case`uppercase`:return`-.INF`;case`camelcase`:return`-.Inf`}else if(Zz.isNegativeZero(e))return`-0.0`;return n=e.toString(10),IB.test(n)?n.replace(`e`,`.e`):n}function RB(e){return Object.prototype.toString.call(e)===`[object Number]`&&(e%1!=0||Zz.isNegativeZero(e))}var zB=new lB(`tag:yaml.org,2002:float`,{kind:`scalar`,resolve:PB,construct:FB,predicate:RB,represent:LB,defaultStyle:`lowercase`}),BB=_B.extend({implicit:[xB,TB,MB,zB]}),VB=BB,HB=RegExp(`^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$`),UB=RegExp(`^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$`);function WB(e){return e===null?!1:HB.exec(e)!==null||UB.exec(e)!==null}function GB(e){var t,n,r,i,a,o,s,c=0,l=null,u,d,f;if(t=HB.exec(e),t===null&&(t=UB.exec(e)),t===null)throw Error(`Date resolve error`);if(n=+t[1],r=t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(n,r,i));if(a=+t[4],o=+t[5],s=+t[6],t[7]){for(c=t[7].slice(0,3);c.length<3;)c+=`0`;c=+c}return t[9]&&(u=+t[10],d=+(t[11]||0),l=(u*60+d)*6e4,t[9]===`-`&&(l=-l)),f=new Date(Date.UTC(n,r,i,a,o,s,c)),l&&f.setTime(f.getTime()-l),f}function KB(e){return e.toISOString()}var qB=new lB(`tag:yaml.org,2002:timestamp`,{kind:`scalar`,resolve:WB,construct:GB,instanceOf:Date,represent:KB});function JB(e){return e===`<<`||e===null}var YB=new lB(`tag:yaml.org,2002:merge`,{kind:`scalar`,resolve:JB}),XB=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
140
|
-
\r`;function ZB(e){if(e===null)return!1;var t,n,r=0,i=e.length,a=XB;for(n=0;n<i;n++)if(t=a.indexOf(e.charAt(n)),!(t>64)){if(t<0)return!1;r+=6}return r%8==0}function QB(e){var t,n,r=e.replace(/[\r\n=]/g,``),i=r.length,a=XB,o=0,s=[];for(t=0;t<i;t++)t%4==0&&t&&(s.push(o>>16&255),s.push(o>>8&255),s.push(o&255)),o=o<<6|a.indexOf(r.charAt(t));return n=i%4*6,n===0?(s.push(o>>16&255),s.push(o>>8&255),s.push(o&255)):n===18?(s.push(o>>10&255),s.push(o>>2&255)):n===12&&s.push(o>>4&255),new Uint8Array(s)}function $B(e){var t=``,n=0,r,i,a=e.length,o=XB;for(r=0;r<a;r++)r%3==0&&r&&(t+=o[n>>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]),n=(n<<8)+e[r];return i=a%3,i===0?(t+=o[n>>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]):i===2?(t+=o[n>>10&63],t+=o[n>>4&63],t+=o[n<<2&63],t+=o[64]):i===1&&(t+=o[n>>2&63],t+=o[n<<4&63],t+=o[64],t+=o[64]),t}function eV(e){return Object.prototype.toString.call(e)===`[object Uint8Array]`}var tV=new lB(`tag:yaml.org,2002:binary`,{kind:`scalar`,resolve:ZB,construct:QB,predicate:eV,represent:$B}),nV=Object.prototype.hasOwnProperty,rV=Object.prototype.toString;function iV(e){if(e===null)return!0;var t=[],n,r,i,a,o,s=e;for(n=0,r=s.length;n<r;n+=1){if(i=s[n],o=!1,rV.call(i)!==`[object Object]`)return!1;for(a in i)if(nV.call(i,a))if(!o)o=!0;else return!1;if(!o)return!1;if(t.indexOf(a)===-1)t.push(a);else return!1}return!0}function aV(e){return e===null?[]:e}var oV=new lB(`tag:yaml.org,2002:omap`,{kind:`sequence`,resolve:iV,construct:aV}),sV=Object.prototype.toString;function cV(e){if(e===null)return!0;var t,n,r,i,a,o=e;for(a=Array(o.length),t=0,n=o.length;t<n;t+=1){if(r=o[t],sV.call(r)!==`[object Object]`||(i=Object.keys(r),i.length!==1))return!1;a[t]=[i[0],r[i[0]]]}return!0}function lV(e){if(e===null)return[];var t,n,r,i,a,o=e;for(a=Array(o.length),t=0,n=o.length;t<n;t+=1)r=o[t],i=Object.keys(r),a[t]=[i[0],r[i[0]]];return a}var uV=new lB(`tag:yaml.org,2002:pairs`,{kind:`sequence`,resolve:cV,construct:lV}),dV=Object.prototype.hasOwnProperty;function fV(e){if(e===null)return!0;var t,n=e;for(t in n)if(dV.call(n,t)&&n[t]!==null)return!1;return!0}function pV(e){return e===null?{}:e}var mV=new lB(`tag:yaml.org,2002:set`,{kind:`mapping`,resolve:fV,construct:pV}),hV=VB.extend({implicit:[qB,YB],explicit:[tV,oV,uV,mV]}),gV=Object.prototype.hasOwnProperty,_V=1,vV=2,yV=3,bV=4,xV=1,SV=2,CV=3,wV=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,TV=/[\x85\u2028\u2029]/,EV=/[,\[\]\{\}]/,DV=/^(?:!|!!|![a-z\-]+!)$/i,OV=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function kV(e){return Object.prototype.toString.call(e)}function AV(e){return e===10||e===13}function jV(e){return e===9||e===32}function MV(e){return e===9||e===32||e===10||e===13}function NV(e){return e===44||e===91||e===93||e===123||e===125}function PV(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function FV(e){return e===120?2:e===117?4:e===85?8:0}function IV(e){return 48<=e&&e<=57?e-48:-1}function LV(e){return e===48?`\0`:e===97?`\x07`:e===98?`\b`:e===116||e===9?` `:e===110?`
|
|
141
|
-
`:e===118?`\v`:e===102?`\f`:e===114?`\r`:e===101?`\x1B`:e===32?` `:e===34?`"`:e===47?`/`:e===92?`\\`:e===78?`
`:e===95?`\xA0`:e===76?`\u2028`:e===80?`\u2029`:``}function RV(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function zV(e,t,n){t===`__proto__`?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:n}):e[t]=n}for(var BV=Array(256),VV=Array(256),HV=0;HV<256;HV++)BV[HV]=+!!LV(HV),VV[HV]=LV(HV);function UV(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||hV,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function WV(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=iB(n),new eB(t,n)}function GV(e,t){throw WV(e,t)}function KV(e,t){e.onWarning&&e.onWarning.call(null,WV(e,t))}var qV={YAML:function(e,t,n){var r,i,a;e.version!==null&&GV(e,`duplication of %YAML directive`),n.length!==1&&GV(e,`YAML directive accepts exactly one argument`),r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),r===null&&GV(e,`ill-formed argument of the YAML directive`),i=parseInt(r[1],10),a=parseInt(r[2],10),i!==1&&GV(e,`unacceptable YAML version of the document`),e.version=n[0],e.checkLineBreaks=a<2,a!==1&&a!==2&&KV(e,`unsupported YAML version of the document`)},TAG:function(e,t,n){var r,i;n.length!==2&&GV(e,`TAG directive accepts exactly two arguments`),r=n[0],i=n[1],DV.test(r)||GV(e,`ill-formed tag handle (first argument) of the TAG directive`),gV.call(e.tagMap,r)&&GV(e,`there is a previously declared suffix for "`+r+`" tag handle`),OV.test(i)||GV(e,`ill-formed tag prefix (second argument) of the TAG directive`);try{i=decodeURIComponent(i)}catch{GV(e,`tag prefix is malformed: `+i)}e.tagMap[r]=i}};function JV(e,t,n,r){var i,a,o,s;if(t<n){if(s=e.input.slice(t,n),r)for(i=0,a=s.length;i<a;i+=1)o=s.charCodeAt(i),o===9||32<=o&&o<=1114111||GV(e,`expected valid JSON character`);else wV.test(s)&&GV(e,`the stream contains non-printable characters`);e.result+=s}}function YV(e,t,n,r){var i,a,o,s;for(Zz.isObject(n)||GV(e,`cannot merge mappings; the provided source object is unacceptable`),i=Object.keys(n),o=0,s=i.length;o<s;o+=1)a=i[o],gV.call(t,a)||(zV(t,a,n[a]),r[a]=!0)}function XV(e,t,n,r,i,a,o,s,c){var l,u;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),l=0,u=i.length;l<u;l+=1)Array.isArray(i[l])&&GV(e,`nested arrays are not supported inside keys`),typeof i==`object`&&kV(i[l])===`[object Object]`&&(i[l]=`[object Object]`);if(typeof i==`object`&&kV(i)===`[object Object]`&&(i=`[object Object]`),i=String(i),t===null&&(t={}),r===`tag:yaml.org,2002:merge`)if(Array.isArray(a))for(l=0,u=a.length;l<u;l+=1)YV(e,t,a[l],n);else YV(e,t,a,n);else !e.json&&!gV.call(n,i)&&gV.call(t,i)&&(e.line=o||e.line,e.lineStart=s||e.lineStart,e.position=c||e.position,GV(e,`duplicated mapping key`)),zV(t,i,a),delete n[i];return t}function ZV(e){var t=e.input.charCodeAt(e.position);t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):GV(e,`a line break is expected`),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function QV(e,t,n){for(var r=0,i=e.input.charCodeAt(e.position);i!==0;){for(;jV(i);)i===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(t&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(AV(i))for(ZV(e),i=e.input.charCodeAt(e.position),r++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return n!==-1&&r!==0&&e.lineIndent<n&&KV(e,`deficient indentation`),r}function $V(e){var t=e.position,n=e.input.charCodeAt(t);return!!((n===45||n===46)&&n===e.input.charCodeAt(t+1)&&n===e.input.charCodeAt(t+2)&&(t+=3,n=e.input.charCodeAt(t),n===0||MV(n)))}function eH(e,t){t===1?e.result+=` `:t>1&&(e.result+=Zz.repeat(`
|
|
142
|
-
`,t-1))}function tH(e,t,n){var r,i,a,o,s,c,l,u,d=e.kind,f=e.result,p=e.input.charCodeAt(e.position);if(MV(p)||NV(p)||p===35||p===38||p===42||p===33||p===124||p===62||p===39||p===34||p===37||p===64||p===96||(p===63||p===45)&&(i=e.input.charCodeAt(e.position+1),MV(i)||n&&NV(i)))return!1;for(e.kind=`scalar`,e.result=``,a=o=e.position,s=!1;p!==0;){if(p===58){if(i=e.input.charCodeAt(e.position+1),MV(i)||n&&NV(i))break}else if(p===35){if(r=e.input.charCodeAt(e.position-1),MV(r))break}else if(e.position===e.lineStart&&$V(e)||n&&NV(p))break;else if(AV(p))if(c=e.line,l=e.lineStart,u=e.lineIndent,QV(e,!1,-1),e.lineIndent>=t){s=!0,p=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=c,e.lineStart=l,e.lineIndent=u;break}s&&=(JV(e,a,o,!1),eH(e,e.line-c),a=o=e.position,!1),jV(p)||(o=e.position+1),p=e.input.charCodeAt(++e.position)}return JV(e,a,o,!1),e.result?!0:(e.kind=d,e.result=f,!1)}function nH(e,t){var n=e.input.charCodeAt(e.position),r,i;if(n!==39)return!1;for(e.kind=`scalar`,e.result=``,e.position++,r=i=e.position;(n=e.input.charCodeAt(e.position))!==0;)if(n===39)if(JV(e,r,e.position,!0),n=e.input.charCodeAt(++e.position),n===39)r=e.position,e.position++,i=e.position;else return!0;else AV(n)?(JV(e,r,i,!0),eH(e,QV(e,!1,t)),r=i=e.position):e.position===e.lineStart&&$V(e)?GV(e,`unexpected end of the document within a single quoted scalar`):(e.position++,i=e.position);GV(e,`unexpected end of the stream within a single quoted scalar`)}function rH(e,t){var n,r,i,a,o,s=e.input.charCodeAt(e.position);if(s!==34)return!1;for(e.kind=`scalar`,e.result=``,e.position++,n=r=e.position;(s=e.input.charCodeAt(e.position))!==0;)if(s===34)return JV(e,n,e.position,!0),e.position++,!0;else if(s===92){if(JV(e,n,e.position,!0),s=e.input.charCodeAt(++e.position),AV(s))QV(e,!1,t);else if(s<256&&BV[s])e.result+=VV[s],e.position++;else if((o=FV(s))>0){for(i=o,a=0;i>0;i--)s=e.input.charCodeAt(++e.position),(o=PV(s))>=0?a=(a<<4)+o:GV(e,`expected hexadecimal character`);e.result+=RV(a),e.position++}else GV(e,`unknown escape sequence`);n=r=e.position}else AV(s)?(JV(e,n,r,!0),eH(e,QV(e,!1,t)),n=r=e.position):e.position===e.lineStart&&$V(e)?GV(e,`unexpected end of the document within a double quoted scalar`):(e.position++,r=e.position);GV(e,`unexpected end of the stream within a double quoted scalar`)}function iH(e,t){var n=!0,r,i,a,o=e.tag,s,c=e.anchor,l,u,d,f,p,m=Object.create(null),h,g,_,v=e.input.charCodeAt(e.position);if(v===91)u=93,p=!1,s=[];else if(v===123)u=125,p=!0,s={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),v=e.input.charCodeAt(++e.position);v!==0;){if(QV(e,!0,t),v=e.input.charCodeAt(e.position),v===u)return e.position++,e.tag=o,e.anchor=c,e.kind=p?`mapping`:`sequence`,e.result=s,!0;n?v===44&&GV(e,`expected the node content, but found ','`):GV(e,`missed comma between flow collection entries`),g=h=_=null,d=f=!1,v===63&&(l=e.input.charCodeAt(e.position+1),MV(l)&&(d=f=!0,e.position++,QV(e,!0,t))),r=e.line,i=e.lineStart,a=e.position,dH(e,t,_V,!1,!0),g=e.tag,h=e.result,QV(e,!0,t),v=e.input.charCodeAt(e.position),(f||e.line===r)&&v===58&&(d=!0,v=e.input.charCodeAt(++e.position),QV(e,!0,t),dH(e,t,_V,!1,!0),_=e.result),p?XV(e,s,m,g,h,_,r,i,a):d?s.push(XV(e,null,m,g,h,_,r,i,a)):s.push(h),QV(e,!0,t),v=e.input.charCodeAt(e.position),v===44?(n=!0,v=e.input.charCodeAt(++e.position)):n=!1}GV(e,`unexpected end of the stream within a flow collection`)}function aH(e,t){var n,r,i=xV,a=!1,o=!1,s=t,c=0,l=!1,u,d=e.input.charCodeAt(e.position);if(d===124)r=!1;else if(d===62)r=!0;else return!1;for(e.kind=`scalar`,e.result=``;d!==0;)if(d=e.input.charCodeAt(++e.position),d===43||d===45)xV===i?i=d===43?CV:SV:GV(e,`repeat of a chomping mode identifier`);else if((u=IV(d))>=0)u===0?GV(e,`bad explicit indentation width of a block scalar; it cannot be less than one`):o?GV(e,`repeat of an indentation width identifier`):(s=t+u-1,o=!0);else break;if(jV(d)){do d=e.input.charCodeAt(++e.position);while(jV(d));if(d===35)do d=e.input.charCodeAt(++e.position);while(!AV(d)&&d!==0)}for(;d!==0;){for(ZV(e),e.lineIndent=0,d=e.input.charCodeAt(e.position);(!o||e.lineIndent<s)&&d===32;)e.lineIndent++,d=e.input.charCodeAt(++e.position);if(!o&&e.lineIndent>s&&(s=e.lineIndent),AV(d)){c++;continue}if(e.lineIndent<s){i===CV?e.result+=Zz.repeat(`
|
|
143
|
-
`,a?1+c:c):i===xV&&a&&(e.result+=`
|
|
144
|
-
`);break}for(r?jV(d)?(l=!0,e.result+=Zz.repeat(`
|
|
145
|
-
`,a?1+c:c)):l?(l=!1,e.result+=Zz.repeat(`
|
|
146
|
-
`,c+1)):c===0?a&&(e.result+=` `):e.result+=Zz.repeat(`
|
|
147
|
-
`,c):e.result+=Zz.repeat(`
|
|
148
|
-
`,a?1+c:c),a=!0,o=!0,c=0,n=e.position;!AV(d)&&d!==0;)d=e.input.charCodeAt(++e.position);JV(e,n,e.position,!1)}return!0}function oH(e,t){var n,r=e.tag,i=e.anchor,a=[],o,s=!1,c;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=a),c=e.input.charCodeAt(e.position);c!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,GV(e,`tab characters must not be used in indentation`)),!(c!==45||(o=e.input.charCodeAt(e.position+1),!MV(o))));){if(s=!0,e.position++,QV(e,!0,-1)&&e.lineIndent<=t){a.push(null),c=e.input.charCodeAt(e.position);continue}if(n=e.line,dH(e,t,yV,!1,!0),a.push(e.result),QV(e,!0,-1),c=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&c!==0)GV(e,`bad indentation of a sequence entry`);else if(e.lineIndent<t)break}return s?(e.tag=r,e.anchor=i,e.kind=`sequence`,e.result=a,!0):!1}function sH(e,t,n){var r,i,a,o,s,c,l=e.tag,u=e.anchor,d={},f=Object.create(null),p=null,m=null,h=null,g=!1,_=!1,v;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=d),v=e.input.charCodeAt(e.position);v!==0;){if(!g&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,GV(e,`tab characters must not be used in indentation`)),r=e.input.charCodeAt(e.position+1),a=e.line,(v===63||v===58)&&MV(r))v===63?(g&&(XV(e,d,f,p,m,null,o,s,c),p=m=h=null),_=!0,g=!0,i=!0):g?(g=!1,i=!0):GV(e,`incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line`),e.position+=1,v=r;else{if(o=e.line,s=e.lineStart,c=e.position,!dH(e,n,vV,!1,!0))break;if(e.line===a){for(v=e.input.charCodeAt(e.position);jV(v);)v=e.input.charCodeAt(++e.position);if(v===58)v=e.input.charCodeAt(++e.position),MV(v)||GV(e,`a whitespace character is expected after the key-value separator within a block mapping`),g&&(XV(e,d,f,p,m,null,o,s,c),p=m=h=null),_=!0,g=!1,i=!1,p=e.tag,m=e.result;else if(_)GV(e,`can not read an implicit mapping pair; a colon is missed`);else return e.tag=l,e.anchor=u,!0}else if(_)GV(e,`can not read a block mapping entry; a multiline key may not be an implicit key`);else return e.tag=l,e.anchor=u,!0}if((e.line===a||e.lineIndent>t)&&(g&&(o=e.line,s=e.lineStart,c=e.position),dH(e,t,bV,!0,i)&&(g?m=e.result:h=e.result),g||(XV(e,d,f,p,m,h,o,s,c),p=m=h=null),QV(e,!0,-1),v=e.input.charCodeAt(e.position)),(e.line===a||e.lineIndent>t)&&v!==0)GV(e,`bad indentation of a mapping entry`);else if(e.lineIndent<t)break}return g&&XV(e,d,f,p,m,null,o,s,c),_&&(e.tag=l,e.anchor=u,e.kind=`mapping`,e.result=d),_}function cH(e){var t,n=!1,r=!1,i,a,o=e.input.charCodeAt(e.position);if(o!==33)return!1;if(e.tag!==null&&GV(e,`duplication of a tag property`),o=e.input.charCodeAt(++e.position),o===60?(n=!0,o=e.input.charCodeAt(++e.position)):o===33?(r=!0,i=`!!`,o=e.input.charCodeAt(++e.position)):i=`!`,t=e.position,n){do o=e.input.charCodeAt(++e.position);while(o!==0&&o!==62);e.position<e.length?(a=e.input.slice(t,e.position),o=e.input.charCodeAt(++e.position)):GV(e,`unexpected end of the stream within a verbatim tag`)}else{for(;o!==0&&!MV(o);)o===33&&(r?GV(e,`tag suffix cannot contain exclamation marks`):(i=e.input.slice(t-1,e.position+1),DV.test(i)||GV(e,`named tag handle cannot contain such characters`),r=!0,t=e.position+1)),o=e.input.charCodeAt(++e.position);a=e.input.slice(t,e.position),EV.test(a)&&GV(e,`tag suffix cannot contain flow indicator characters`)}a&&!OV.test(a)&&GV(e,`tag name cannot contain such characters: `+a);try{a=decodeURIComponent(a)}catch{GV(e,`tag name is malformed: `+a)}return n?e.tag=a:gV.call(e.tagMap,i)?e.tag=e.tagMap[i]+a:i===`!`?e.tag=`!`+a:i===`!!`?e.tag=`tag:yaml.org,2002:`+a:GV(e,`undeclared tag handle "`+i+`"`),!0}function lH(e){var t,n=e.input.charCodeAt(e.position);if(n!==38)return!1;for(e.anchor!==null&&GV(e,`duplication of an anchor property`),n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!MV(n)&&!NV(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&GV(e,`name of an anchor node must contain at least one character`),e.anchor=e.input.slice(t,e.position),!0}function uH(e){var t,n,r=e.input.charCodeAt(e.position);if(r!==42)return!1;for(r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!MV(r)&&!NV(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&GV(e,`name of an alias node must contain at least one character`),n=e.input.slice(t,e.position),gV.call(e.anchorMap,n)||GV(e,`unidentified alias "`+n+`"`),e.result=e.anchorMap[n],QV(e,!0,-1),!0}function dH(e,t,n,r,i){var a,o,s,c=1,l=!1,u=!1,d,f,p,m,h,g;if(e.listener!==null&&e.listener(`open`,e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,a=o=s=bV===n||yV===n,r&&QV(e,!0,-1)&&(l=!0,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)),c===1)for(;cH(e)||lH(e);)QV(e,!0,-1)?(l=!0,s=a,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)):s=!1;if(s&&=l||i,(c===1||bV===n)&&(h=_V===n||vV===n?t:t+1,g=e.position-e.lineStart,c===1?s&&(oH(e,g)||sH(e,g,h))||iH(e,h)?u=!0:(o&&aH(e,h)||nH(e,h)||rH(e,h)?u=!0:uH(e)?(u=!0,(e.tag!==null||e.anchor!==null)&&GV(e,`alias node should not have any properties`)):tH(e,h,_V===n)&&(u=!0,e.tag===null&&(e.tag=`?`)),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):c===0&&(u=s&&oH(e,g))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag===`?`){for(e.result!==null&&e.kind!==`scalar`&&GV(e,`unacceptable node kind for !<?> tag; it should be "scalar", not "`+e.kind+`"`),d=0,f=e.implicitTypes.length;d<f;d+=1)if(m=e.implicitTypes[d],m.resolve(e.result)){e.result=m.construct(e.result),e.tag=m.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!==`!`){if(gV.call(e.typeMap[e.kind||`fallback`],e.tag))m=e.typeMap[e.kind||`fallback`][e.tag];else for(m=null,p=e.typeMap.multi[e.kind||`fallback`],d=0,f=p.length;d<f;d+=1)if(e.tag.slice(0,p[d].tag.length)===p[d].tag){m=p[d];break}m||GV(e,`unknown tag !<`+e.tag+`>`),e.result!==null&&m.kind!==e.kind&&GV(e,`unacceptable node kind for !<`+e.tag+`> tag; it should be "`+m.kind+`", not "`+e.kind+`"`),m.resolve(e.result,e.tag)?(e.result=m.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):GV(e,`cannot resolve a node with !<`+e.tag+`> explicit tag`)}return e.listener!==null&&e.listener(`close`,e),e.tag!==null||e.anchor!==null||u}function fH(e){var t=e.position,n,r,i,a=!1,o;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(o=e.input.charCodeAt(e.position))!==0&&(QV(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||o!==37));){for(a=!0,o=e.input.charCodeAt(++e.position),n=e.position;o!==0&&!MV(o);)o=e.input.charCodeAt(++e.position);for(r=e.input.slice(n,e.position),i=[],r.length<1&&GV(e,`directive name must not be less than one character in length`);o!==0;){for(;jV(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!AV(o));break}if(AV(o))break;for(n=e.position;o!==0&&!MV(o);)o=e.input.charCodeAt(++e.position);i.push(e.input.slice(n,e.position))}o!==0&&ZV(e),gV.call(qV,r)?qV[r](e,r,i):KV(e,`unknown document directive "`+r+`"`)}if(QV(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,QV(e,!0,-1)):a&&GV(e,`directives end mark is expected`),dH(e,e.lineIndent-1,bV,!1,!0),QV(e,!0,-1),e.checkLineBreaks&&TV.test(e.input.slice(t,e.position))&&KV(e,`non-ASCII line breaks are interpreted as content`),e.documents.push(e.result),e.position===e.lineStart&&$V(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,QV(e,!0,-1));return}if(e.position<e.length-1)GV(e,`end of the stream or a document separator is expected`);else return}function pH(e,t){e=String(e),t||={},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
|
|
149
|
-
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var n=new UV(e,t),r=e.indexOf(`\0`);for(r!==-1&&(n.position=r,GV(n,`null byte is not allowed in input`)),n.input+=`\0`;n.input.charCodeAt(n.position)===32;)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)fH(n);return n.documents}function mH(e,t,n){typeof t==`object`&&t&&n===void 0&&(n=t,t=null);var r=pH(e,n);if(typeof t!=`function`)return r;for(var i=0,a=r.length;i<a;i+=1)t(r[i])}function hH(e,t){var n=pH(e,t);if(n.length!==0){if(n.length===1)return n[0];throw new eB(`expected a single document in the stream, but found more`)}}var gH={loadAll:mH,load:hH},_H=Object.prototype.toString,vH=Object.prototype.hasOwnProperty,yH=65279,bH=9,xH=10,SH=13,CH=32,wH=33,TH=34,EH=35,DH=37,OH=38,kH=39,AH=42,jH=44,MH=45,NH=58,PH=61,FH=62,IH=63,LH=64,RH=91,zH=93,BH=96,VH=123,HH=124,UH=125,WH={};WH[0]=`\\0`,WH[7]=`\\a`,WH[8]=`\\b`,WH[9]=`\\t`,WH[10]=`\\n`,WH[11]=`\\v`,WH[12]=`\\f`,WH[13]=`\\r`,WH[27]=`\\e`,WH[34]=`\\"`,WH[92]=`\\\\`,WH[133]=`\\N`,WH[160]=`\\_`,WH[8232]=`\\L`,WH[8233]=`\\P`;var GH=[`y`,`Y`,`yes`,`Yes`,`YES`,`on`,`On`,`ON`,`n`,`N`,`no`,`No`,`NO`,`off`,`Off`,`OFF`],KH=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function qH(e,t){var n,r,i,a,o,s,c;if(t===null)return{};for(n={},r=Object.keys(t),i=0,a=r.length;i<a;i+=1)o=r[i],s=String(t[o]),o.slice(0,2)===`!!`&&(o=`tag:yaml.org,2002:`+o.slice(2)),c=e.compiledTypeMap.fallback[o],c&&vH.call(c.styleAliases,s)&&(s=c.styleAliases[s]),n[o]=s;return n}function JH(e){var t=e.toString(16).toUpperCase(),n,r;if(e<=255)n=`x`,r=2;else if(e<=65535)n=`u`,r=4;else if(e<=4294967295)n=`U`,r=8;else throw new eB(`code point within a string may not be greater than 0xFFFFFFFF`);return`\\`+n+Zz.repeat(`0`,r-t.length)+t}var YH=1,XH=2;function ZH(e){this.schema=e.schema||hV,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Zz.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=qH(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType===`"`?XH:YH,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer==`function`?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result=``,this.duplicates=[],this.usedDuplicates=null}function QH(e,t){for(var n=Zz.repeat(` `,t),r=0,i=-1,a=``,o,s=e.length;r<s;)i=e.indexOf(`
|
|
150
|
-
`,r),i===-1?(o=e.slice(r),r=s):(o=e.slice(r,i+1),r=i+1),o.length&&o!==`
|
|
151
|
-
`&&(a+=n),a+=o;return a}function $H(e,t){return`
|
|
152
|
-
`+Zz.repeat(` `,e.indent*t)}function eU(e,t){var n,r,i;for(n=0,r=e.implicitTypes.length;n<r;n+=1)if(i=e.implicitTypes[n],i.resolve(t))return!0;return!1}function tU(e){return e===CH||e===bH}function nU(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==yH||65536<=e&&e<=1114111}function rU(e){return nU(e)&&e!==yH&&e!==SH&&e!==xH}function iU(e,t,n){var r=rU(e),i=r&&!tU(e);return(n?r:r&&e!==jH&&e!==RH&&e!==zH&&e!==VH&&e!==UH)&&e!==EH&&!(t===NH&&!i)||rU(t)&&!tU(t)&&e===EH||t===NH&&i}function aU(e){return nU(e)&&e!==yH&&!tU(e)&&e!==MH&&e!==IH&&e!==NH&&e!==jH&&e!==RH&&e!==zH&&e!==VH&&e!==UH&&e!==EH&&e!==OH&&e!==AH&&e!==wH&&e!==HH&&e!==PH&&e!==FH&&e!==kH&&e!==TH&&e!==DH&&e!==LH&&e!==BH}function oU(e){return!tU(e)&&e!==NH}function sU(e,t){var n=e.charCodeAt(t),r;return n>=55296&&n<=56319&&t+1<e.length&&(r=e.charCodeAt(t+1),r>=56320&&r<=57343)?(n-55296)*1024+r-56320+65536:n}function cU(e){return/^\n* /.test(e)}var lU=1,uU=2,dU=3,fU=4,pU=5;function mU(e,t,n,r,i,a,o,s){var c,l=0,u=null,d=!1,f=!1,p=r!==-1,m=-1,h=aU(sU(e,0))&&oU(sU(e,e.length-1));if(t||o)for(c=0;c<e.length;l>=65536?c+=2:c++){if(l=sU(e,c),!nU(l))return pU;h&&=iU(l,u,s),u=l}else{for(c=0;c<e.length;l>=65536?c+=2:c++){if(l=sU(e,c),l===xH)d=!0,p&&(f||=c-m-1>r&&e[m+1]!==` `,m=c);else if(!nU(l))return pU;h&&=iU(l,u,s),u=l}f||=p&&c-m-1>r&&e[m+1]!==` `}return!d&&!f?h&&!o&&!i(e)?lU:a===XH?pU:uU:n>9&&cU(e)?pU:o?a===XH?pU:uU:f?fU:dU}function hU(e,t,n,r,i){e.dump=function(){if(t.length===0)return e.quotingType===XH?`""`:`''`;if(!e.noCompatMode&&(GH.indexOf(t)!==-1||KH.test(t)))return e.quotingType===XH?`"`+t+`"`:`'`+t+`'`;var a=e.indent*Math.max(1,n),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-a),s=r||e.flowLevel>-1&&n>=e.flowLevel;function c(t){return eU(e,t)}switch(mU(t,s,e.indent,o,c,e.quotingType,e.forceQuotes&&!r,i)){case lU:return t;case uU:return`'`+t.replace(/'/g,`''`)+`'`;case dU:return`|`+gU(t,e.indent)+_U(QH(t,a));case fU:return`>`+gU(t,e.indent)+_U(QH(vU(t,o),a));case pU:return`"`+bU(t)+`"`;default:throw new eB(`impossible error: invalid scalar style`)}}()}function gU(e,t){var n=cU(e)?String(t):``,r=e[e.length-1]===`
|
|
153
|
-
`;return n+(r&&(e[e.length-2]===`
|
|
154
|
-
`||e===`
|
|
155
|
-
`)?`+`:r?``:`-`)+`
|
|
156
|
-
`}function _U(e){return e[e.length-1]===`
|
|
157
|
-
`?e.slice(0,-1):e}function vU(e,t){for(var n=/(\n+)([^\n]*)/g,r=function(){var r=e.indexOf(`
|
|
158
|
-
`);return r=r===-1?e.length:r,n.lastIndex=r,yU(e.slice(0,r),t)}(),i=e[0]===`
|
|
159
|
-
`||e[0]===` `,a,o;o=n.exec(e);){var s=o[1],c=o[2];a=c[0]===` `,r+=s+(!i&&!a&&c!==``?`
|
|
160
|
-
`:``)+yU(c,t),i=a}return r}function yU(e,t){if(e===``||e[0]===` `)return e;for(var n=/ [^ ]/g,r,i=0,a,o=0,s=0,c=``;r=n.exec(e);)s=r.index,s-i>t&&(a=o>i?o:s,c+=`
|
|
161
|
-
`+e.slice(i,a),i=a+1),o=s;return c+=`
|
|
162
|
-
`,e.length-i>t&&o>i?c+=e.slice(i,o)+`
|
|
163
|
-
`+e.slice(o+1):c+=e.slice(i),c.slice(1)}function bU(e){for(var t=``,n=0,r,i=0;i<e.length;n>=65536?i+=2:i++)n=sU(e,i),r=WH[n],!r&&nU(n)?(t+=e[i],n>=65536&&(t+=e[i+1])):t+=r||JH(n);return t}function xU(e,t,n){var r=``,i=e.tag,a,o,s;for(a=0,o=n.length;a<o;a+=1)s=n[a],e.replacer&&(s=e.replacer.call(n,String(a),s)),(EU(e,t,s,!1,!1)||s===void 0&&EU(e,t,null,!1,!1))&&(r!==``&&(r+=`,`+(e.condenseFlow?``:` `)),r+=e.dump);e.tag=i,e.dump=`[`+r+`]`}function SU(e,t,n,r){var i=``,a=e.tag,o,s,c;for(o=0,s=n.length;o<s;o+=1)c=n[o],e.replacer&&(c=e.replacer.call(n,String(o),c)),(EU(e,t+1,c,!0,!0,!1,!0)||c===void 0&&EU(e,t+1,null,!0,!0,!1,!0))&&((!r||i!==``)&&(i+=$H(e,t)),e.dump&&xH===e.dump.charCodeAt(0)?i+=`-`:i+=`- `,i+=e.dump);e.tag=a,e.dump=i||`[]`}function CU(e,t,n){var r=``,i=e.tag,a=Object.keys(n),o,s,c,l,u;for(o=0,s=a.length;o<s;o+=1)u=``,r!==``&&(u+=`, `),e.condenseFlow&&(u+=`"`),c=a[o],l=n[c],e.replacer&&(l=e.replacer.call(n,c,l)),EU(e,t,c,!1,!1)&&(e.dump.length>1024&&(u+=`? `),u+=e.dump+(e.condenseFlow?`"`:``)+`:`+(e.condenseFlow?``:` `),EU(e,t,l,!1,!1)&&(u+=e.dump,r+=u));e.tag=i,e.dump=`{`+r+`}`}function wU(e,t,n,r){var i=``,a=e.tag,o=Object.keys(n),s,c,l,u,d,f;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys==`function`)o.sort(e.sortKeys);else if(e.sortKeys)throw new eB(`sortKeys must be a boolean or a function`);for(s=0,c=o.length;s<c;s+=1)f=``,(!r||i!==``)&&(f+=$H(e,t)),l=o[s],u=n[l],e.replacer&&(u=e.replacer.call(n,l,u)),EU(e,t+1,l,!0,!0,!0)&&(d=e.tag!==null&&e.tag!==`?`||e.dump&&e.dump.length>1024,d&&(e.dump&&xH===e.dump.charCodeAt(0)?f+=`?`:f+=`? `),f+=e.dump,d&&(f+=$H(e,t)),EU(e,t+1,u,!0,d)&&(e.dump&&xH===e.dump.charCodeAt(0)?f+=`:`:f+=`: `,f+=e.dump,i+=f));e.tag=a,e.dump=i||`{}`}function TU(e,t,n){var r,i=n?e.explicitTypes:e.implicitTypes,a,o,s,c;for(a=0,o=i.length;a<o;a+=1)if(s=i[a],(s.instanceOf||s.predicate)&&(!s.instanceOf||typeof t==`object`&&t instanceof s.instanceOf)&&(!s.predicate||s.predicate(t))){if(n?s.multi&&s.representName?e.tag=s.representName(t):e.tag=s.tag:e.tag=`?`,s.represent){if(c=e.styleMap[s.tag]||s.defaultStyle,_H.call(s.represent)===`[object Function]`)r=s.represent(t,c);else if(vH.call(s.represent,c))r=s.represent[c](t,c);else throw new eB(`!<`+s.tag+`> tag resolver accepts not "`+c+`" style`);e.dump=r}return!0}return!1}function EU(e,t,n,r,i,a,o){e.tag=null,e.dump=n,TU(e,n,!1)||TU(e,n,!0);var s=_H.call(e.dump),c=r,l;r&&=e.flowLevel<0||e.flowLevel>t;var u=s===`[object Object]`||s===`[object Array]`,d,f;if(u&&(d=e.duplicates.indexOf(n),f=d!==-1),(e.tag!==null&&e.tag!==`?`||f||e.indent!==2&&t>0)&&(i=!1),f&&e.usedDuplicates[d])e.dump=`*ref_`+d;else{if(u&&f&&!e.usedDuplicates[d]&&(e.usedDuplicates[d]=!0),s===`[object Object]`)r&&Object.keys(e.dump).length!==0?(wU(e,t,e.dump,i),f&&(e.dump=`&ref_`+d+e.dump)):(CU(e,t,e.dump),f&&(e.dump=`&ref_`+d+` `+e.dump));else if(s===`[object Array]`)r&&e.dump.length!==0?(e.noArrayIndent&&!o&&t>0?SU(e,t-1,e.dump,i):SU(e,t,e.dump,i),f&&(e.dump=`&ref_`+d+e.dump)):(xU(e,t,e.dump),f&&(e.dump=`&ref_`+d+` `+e.dump));else if(s===`[object String]`)e.tag!==`?`&&hU(e,e.dump,t,a,c);else if(s===`[object Undefined]`)return!1;else{if(e.skipInvalid)return!1;throw new eB(`unacceptable kind of an object to dump `+s)}e.tag!==null&&e.tag!==`?`&&(l=encodeURI(e.tag[0]===`!`?e.tag.slice(1):e.tag).replace(/!/g,`%21`),l=e.tag[0]===`!`?`!`+l:l.slice(0,18)===`tag:yaml.org,2002:`?`!!`+l.slice(18):`!<`+l+`>`,e.dump=l+` `+e.dump)}return!0}function DU(e,t){var n=[],r=[],i,a;for(OU(e,n,r),i=0,a=r.length;i<a;i+=1)t.duplicates.push(n[r[i]]);t.usedDuplicates=Array(a)}function OU(e,t,n){var r,i,a;if(typeof e==`object`&&e)if(i=t.indexOf(e),i!==-1)n.indexOf(i)===-1&&n.push(i);else if(t.push(e),Array.isArray(e))for(i=0,a=e.length;i<a;i+=1)OU(e[i],t,n);else for(r=Object.keys(e),i=0,a=r.length;i<a;i+=1)OU(e[r[i]],t,n)}function kU(e,t){t||={};var n=new ZH(t);n.noRefs||DU(e,n);var r=e;return n.replacer&&(r=n.replacer.call({"":r},``,r)),EU(n,0,r,!0,!0)?n.dump+`
|
|
164
|
-
`:``}var AU={dump:kU};function jU(e,t){return function(){throw Error(`Function yaml.`+e+` is removed in js-yaml 4. Use yaml.`+t+` instead, which is now safe by default.`)}}var MU={Type:lB,Schema:pB,FAILSAFE_SCHEMA:_B,JSON_SCHEMA:BB,CORE_SCHEMA:VB,DEFAULT_SCHEMA:hV,load:gH.load,loadAll:gH.loadAll,dump:AU.dump,YAMLException:eB,types:{binary:tV,float:zB,map:gB,null:xB,pairs:uV,set:mV,timestamp:qB,bool:TB,int:MB,merge:YB,omap:oV,seq:hB,str:mB},safeLoad:jU(`safeLoad`,`load`),safeLoadAll:jU(`safeLoadAll`,`loadAll`),safeDump:jU(`safeDump`,`dump`)},NU=({yaml:e,onChange:t})=>{let[n,r,i,a]=wn(Pb,ax,Cx,UU),o=Qx(),s=Tn(UU),c=Tn(GU),{register:l,control:u,handleSubmit:d}=RF({defaultValues:{yamlConfig:I.useMemo(()=>e?Object.entries(MU.load(e)).map(([e,t])=>({key:e,value:t})):[],[e])}}),{fields:f,append:p,remove:m}=LF({control:u,name:`yamlConfig`}),h=I.useCallback(({yamlConfig:e})=>{if(e.length===0){c(),s(!1);return}let n=e.reduce((e,{key:t,value:n})=>(t&&n&&(e[t]=n),e),{});t(MU.dump(n).trim()),s(!1)},[t,s,c]);return I.createElement(I.Fragment,null,I.createElement(qN,{open:a,onOpenChange:e=>{s(e)}},I.createElement(JN,{container:r?.current},I.createElement(YN,{className:q.dialogOverlay}),I.createElement(XN,{className:q.largeDialogContent,"data-editor-type":`frontmatter`},I.createElement(ZN,{className:q.dialogTitle},o(`frontmatterEditor.title`,`Edit document frontmatter`)),I.createElement(`form`,{onSubmit:e=>{d(h)(e),e.stopPropagation()},onReset:e=>{e.stopPropagation(),s(!1)}},I.createElement(`table`,{className:q.propertyEditorTable},I.createElement(`colgroup`,null,I.createElement(`col`,null),I.createElement(`col`,null),I.createElement(`col`,null)),I.createElement(`thead`,null,I.createElement(`tr`,null,I.createElement(`th`,null,o(`frontmatterEditor.key`,`Key`)),I.createElement(`th`,null,o(`frontmatterEditor.value`,`Value`)),I.createElement(`th`,null))),I.createElement(`tbody`,null,f.map((e,t)=>I.createElement(`tr`,{key:e.id},I.createElement(`td`,null,I.createElement(PU,{...l(`yamlConfig.${t}.key`,{required:!0}),autofocusIfEmpty:!0,readOnly:n})),I.createElement(`td`,null,I.createElement(PU,{...l(`yamlConfig.${t}.value`,{required:!0}),readOnly:n})),I.createElement(`td`,null,I.createElement(`button`,{type:`button`,onClick:()=>{m(t)},className:q.iconButton,disabled:n},i(`delete_big`)))))),I.createElement(`tfoot`,null,I.createElement(`tr`,null,I.createElement(`td`,null,I.createElement(`button`,{disabled:n,className:(0,NC.default)(q.primaryButton,q.smallButton),type:`button`,onClick:()=>{p({key:``,value:``})}},o(`frontmatterEditor.addEntry`,`Add entry`)))))),I.createElement(`div`,{style:{display:`flex`,justifyContent:`flex-end`,gap:`var(--spacing-2)`}},I.createElement(`button`,{type:`submit`,className:q.primaryButton},o(`dialogControls.save`,`Save`)),I.createElement(`button`,{type:`reset`,className:q.secondaryButton},o(`dialogControls.cancel`,`Cancel`)))),I.createElement(QN,{asChild:!0},I.createElement(`button`,{className:q.dialogCloseButton,"aria-label":o(`dialogControls.cancel`,`Cancel`)},i(`close`)))))))},PU=I.forwardRef(({className:e,autofocusIfEmpty:t,...n},r)=>I.createElement(`input`,{className:(0,NC.default)(q.propertyEditorInput,e),...n,ref:r})),FU=Object.defineProperty,IU=(e,t,n)=>t in e?FU(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,LU=(e,t,n)=>(IU(e,typeof t==`symbol`?t:t+``,n),n),RU=class e extends Os{constructor(e,t){super(t),LU(this,`__yaml`),this.__yaml=e}static getType(){return`frontmatter`}static clone(t){return new e(t.__yaml,t.__key)}static importJSON(e){let{yaml:t}=e;return zU(t)}exportJSON(){return{yaml:this.getYaml(),type:`frontmatter`,version:1}}createDOM(e){return document.createElement(`div`)}updateDOM(){return!1}getYaml(){return this.getLatest().__yaml}setYaml(e){e!==this.__yaml&&(this.getWritable().__yaml=e)}decorate(e){return I.createElement(NU,{yaml:this.getYaml(),onChange:t=>{e.update(()=>{this.setYaml(t)})}})}isKeyboardSelectable(){return!1}};function zU(e){return new RU(e)}function BU(e){return e instanceof RU}var VU={testLexicalNode:BU,visitLexicalNode:({actions:e,lexicalNode:t})=>{e.addAndStepInto(`yaml`,{value:t.getYaml()})}},HU={testNode:`yaml`,visitNode({mdastNode:e,actions:t}){t.addAndStepInto(zU(e.value))}},UU=R(!1),WU=bn(e=>{e.sub(e.pipe(WU,Dn(Ab)),([,t])=>{t?.update(()=>{let e=Sc().getFirstChild();if(!BU(e)){let t=zU(`"": ""`);e?e.insertBefore(t):Sc().append(t)}}),e.pub(UU,!0)})}),GU=bn(e=>{e.sub(e.pipe(GU,Dn(Ab)),([,t])=>{t?.update(()=>{let e=Sc().getFirstChild();BU(e)&&e.remove()}),e.pub(UU,!1)})}),KU=R(!1,e=>{e.pub(Ex,t=>t.registerUpdateListener(({editorState:t})=>{t.read(()=>{e.pub(KU,BU(Sc().getFirstChild()))})}))}),qU=Nn({init:e=>{e.pubIn({[dx]:Lz(`yaml`),[ux]:Mz(),[cx]:RU,[lx]:HU,[fx]:VU,[px]:Vz(`yaml`),[Ex]:e=>e.registerCommand(Vi,t=>{let n=!1;return e.read(()=>{let r=U();if(H(r))if(r.isCollapsed()&&r.anchor.offset===0&&r.focus.offset===0&&t.key===`Backspace`){let e=r.getNodes()[0];V(e)&&(e=e.getParent()),BU(e?.getPreviousSibling())&&(n=!0,t.preventDefault())}else{let t=r.getNodes()[0];if(BU(t)){let n=t.getYaml();setTimeout(()=>{e.update(()=>{BU(Sc().getFirstChild())||Sc().splice(0,0,[zU(n)])},{discrete:!0})})}}}),!!n},4)})}}),JU={testNode:`blockquote`,visitNode({actions:e}){e.addAndStepInto(ef())}},YU={testLexicalNode:tf,visitLexicalNode:({actions:e})=>{e.addAndStepInto(`blockquote`)}},XU=Nn({init(e){e.pubIn({[Jx]:`quote`,[lx]:JU,[cx]:$d,[fx]:YU})}});function ZU(){let e=Mn;return{publish:()=>{e()},subscribe:t=>{e=t}}}var QU=Object.defineProperty,$U=(e,t,n)=>t in e?QU(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,eW=(e,t,n)=>($U(e,typeof t==`symbol`?t:t+``,n),n),tW=class e extends Os{constructor(e,t,n,r){super(r),eW(this,`__code`),eW(this,`__meta`),eW(this,`__language`),eW(this,`__focusEmitter`,ZU()),eW(this,`setCode`,e=>{e!==this.__code&&(this.getWritable().__code=e)}),eW(this,`setMeta`,e=>{e!==this.__meta&&(this.getWritable().__meta=e)}),eW(this,`setLanguage`,e=>{e!==this.__language&&(this.getWritable().__language=e)}),eW(this,`select`,()=>{this.__focusEmitter.publish()}),this.__code=e,this.__meta=n,this.__language=t}static getType(){return`codeblock`}static clone(t){return new e(t.__code,t.__language,t.__meta,t.__key)}afterCloneFrom(e){super.afterCloneFrom(e),this.__code=e.__code,this.__meta=e.__meta,this.__language=e.__language,this.__focusEmitter=ZU()}static importJSON(e){let{code:t,meta:n,language:r}=e;return oW({code:t,language:r,meta:n})}static importDOM(){return{pre:()=>({conversion:cW,priority:3})}}exportJSON(){return{code:this.getCode(),language:this.getLanguage(),meta:this.getMeta(),type:`codeblock`,version:1}}createDOM(e,t){return document.createElement(`div`)}updateDOM(){return!1}getCode(){return this.__code}getMeta(){return this.__meta}getLanguage(){return this.__language}decorate(e){return I.createElement(aW,{parentEditor:e,code:this.getCode(),meta:this.getMeta(),language:this.getLanguage(),codeBlockNode:this,nodeKey:this.getKey(),focusEmitter:this.__focusEmitter})}isInline(){return!1}},nW=I.createContext(null),rW=({parentEditor:e,lexicalNode:t,children:n})=>{let r=I.useMemo(()=>({lexicalNode:t,parentEditor:e,setCode:n=>{e.update(()=>{t.setCode(n),setTimeout(()=>{e.dispatchCommand(kb,void 0)},0)})},setLanguage:n=>{e.update(()=>{t.setLanguage(n)})},setMeta:n=>{e.update(()=>{t.setMeta(n)})}}),[t,e]);return I.createElement(nW.Provider,{value:r},n)};function iW(){let e=I.useContext(nW);if(!e)throw Error(`useCodeBlockEditor must be used within a CodeBlockEditor`);return e}var aW=e=>{let t=Cn(ix),n=Cn(dW),r=t.sort((e,t)=>t.priority-e.priority).find(t=>t.match(e.language||``,e.meta||``));if(r??=t.find(t=>t.match(n||``,e.meta||``)),!r)throw Error(`No CodeBlockEditor registered for language=${e.language} meta=${e.meta}`);let i=r.Editor,{codeBlockNode:a,parentEditor:o,...s}=e;return I.createElement(rW,{parentEditor:e.parentEditor,lexicalNode:e.codeBlockNode},I.createElement(i,{...s}))};function oW(e){let{code:t=``,language:n=``,meta:r=``}=e;return new tW(t,n,r)}function sW(e){return e instanceof tW}function cW(e){let t=e,n=t.textContent,r=e.getAttribute(`class`)??``,i=e.getAttribute(`data-language`)??``,a=/language-(\w+)/.exec(r);return{node:oW({code:n,language:a?a[1]:i,meta:t.getAttribute(`data-meta`)??``})}}var lW={testLexicalNode:sW,visitLexicalNode:({lexicalNode:e,actions:t})=>{t.addAndStepInto(`code`,{value:e.getCode(),lang:e.getLanguage(),meta:e.getMeta()})}},uW={testNode:(e,{codeBlockEditorDescriptors:t})=>e.type===`code`?t.find(t=>t.match(e.lang,e.meta))!==void 0:!1,visitNode({mdastNode:e,actions:t}){t.addAndStepInto(oW({code:e.value,language:e.lang??``,meta:e.meta??``}))}},dW=R(``),fW=yn(e=>{e.link(e.pipe(fW,Dn(dW),En(([e,t])=>()=>oW({language:t,...e}))),Wx)}),pW=wx(ix),mW=Nn({update(e,t){e.pub(dW,t?.defaultCodeBlockLanguage??``)},init(e,t){e.pubIn({[Jx]:`codeblock`,[ix]:t?.codeBlockEditorDescriptors??[],[lx]:uW,[cx]:tW,[fx]:lW})}}),hW=`modulepreload`,gW=function(e){return`/apps/context-files/`+e},_W={},X=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}r=o(t.map(t=>{if(t=gW(t,n),t in _W)return;_W[t]=!0;let r=t.endsWith(`.css`),i=r?`[rel="stylesheet"]`:``;if(n)for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;let o=document.createElement(`link`);if(o.rel=r?`stylesheet`:hW,r||(o.as=`script`),o.crossOrigin=``,o.href=t,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),r)return new Promise((e,n)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},vW=class{constructor(e,t,n,r){this.state=e,this.pos=t,this.explicit=n,this.view=r,this.abortListeners=[],this.abortOnDocChange=!1}tokenBefore(e){let t=d(this.state).resolveInner(this.pos,-1);for(;t&&e.indexOf(t.name)<0;)t=t.parent;return t?{from:t.from,to:this.pos,text:this.state.sliceDoc(t.from,this.pos),type:t.type}:null}matchBefore(e){let t=this.state.doc.lineAt(this.pos),n=Math.max(t.from,this.pos-250),r=t.text.slice(n-t.from,this.pos-t.from),i=r.search(TW(e,!1));return i<0?null:{from:n+i,to:this.pos,text:r.slice(i)}}get aborted(){return this.abortListeners==null}addEventListener(e,t,n){e==`abort`&&this.abortListeners&&(this.abortListeners.push(t),n&&n.onDocChange&&(this.abortOnDocChange=!0))}};function yW(e){let t=Object.keys(e).join(``),n=/\w/.test(t);return n&&(t=t.replace(/\w/g,``)),`[${n?`\\w`:``}${t.replace(/[^\w\s]/g,`\\$&`)}]`}function bW(e){let t=Object.create(null),n=Object.create(null);for(let{label:r}of e){t[r[0]]=!0;for(let e=1;e<r.length;e++)n[r[e]]=!0}let r=yW(t)+yW(n)+`*$`;return[RegExp(`^`+r),new RegExp(r)]}function xW(e){let t=e.map(e=>typeof e==`string`?{label:e}:e),[n,r]=t.every(e=>/^\w+$/.test(e.label))?[/\w*$/,/\w+$/]:bW(t);return e=>{let i=e.matchBefore(r);return i||e.explicit?{from:i?i.from:e.pos,options:t,validFor:n}:null}}function SW(e,t){return n=>{for(let t=d(n.state).resolveInner(n.pos,-1);t;t=t.parent){if(e.indexOf(t.name)>-1)return null;if(t.type.isTop)break}return t(n)}}var CW=class{constructor(e,t,n,r){this.completion=e,this.source=t,this.match=n,this.score=r}};function wW(e){return e.selection.main.from}function TW(e,t){let{source:n}=e,r=t&&n[0]!=`^`,i=n[n.length-1]!=`$`;return!r&&!i?e:RegExp(`${r?`^`:``}(?:${n})${i?`$`:``}`,e.flags??(e.ignoreCase?`i`:``))}var EW=nt.define();function DW(e,t,n,r){let{main:i}=e.selection,a=n-i.from,o=r-i.from;return{...e.changeByRange(s=>{if(s!=i&&n!=r&&e.sliceDoc(s.from+a,s.from+o)!=e.sliceDoc(n,r))return{range:s};let c=e.toText(t);return{changes:{from:s.from+a,to:r==i.from?s.to:s.from+o,insert:c},range:F.cursor(s.from+a+c.length)}}),scrollIntoView:!0,userEvent:`input.complete`}}var OW=new WeakMap;function kW(e){if(!Array.isArray(e))return e;let t=OW.get(e);return t||OW.set(e,t=xW(e)),t}var AW=S.define(),jW=S.define(),MW=class{constructor(e){this.pattern=e,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let t=0;t<e.length;){let n=g(e,t),r=b(n);this.chars.push(n);let i=e.slice(t,t+r),a=i.toUpperCase();this.folded.push(g(a==i?i.toLowerCase():a,0)),t+=r}this.astral=e.length!=this.chars.length}ret(e,t){return this.score=e,this.matched=t,this}match(e){if(this.pattern.length==0)return this.ret(-100,[]);if(e.length<this.pattern.length)return null;let{chars:t,folded:n,any:r,precise:i,byWord:a}=this;if(t.length==1){let r=g(e,0),i=b(r),a=i==e.length?0:-100;if(r!=t[0])if(r==n[0])a+=-200;else return null;return this.ret(a,[0,i])}let o=e.indexOf(this.pattern);if(o==0)return this.ret(e.length==this.pattern.length?0:-100,[0,this.pattern.length]);let s=t.length,c=0;if(o<0){for(let i=0,a=Math.min(e.length,200);i<a&&c<s;){let a=g(e,i);(a==t[c]||a==n[c])&&(r[c++]=i),i+=b(a)}if(c<s)return null}let l=0,u=0,d=!1,f=0,p=-1,m=-1,h=/[a-z]/.test(e),_=!0;for(let r=0,c=Math.min(e.length,200),v=0;r<c&&u<s;){let c=g(e,r);o<0&&(l<s&&c==t[l]&&(i[l++]=r),f<s&&(c==t[f]||c==n[f]?(f==0&&(p=r),m=r+1,f++):f=0));let y,x=c<255?c>=48&&c<=57||c>=97&&c<=122?2:+(c>=65&&c<=90):(y=ae(c))==y.toLowerCase()?y==y.toUpperCase()?0:2:1;(!r||x==1&&h||v==0&&x!=0)&&(t[u]==c||n[u]==c&&(d=!0)?a[u++]=r:a.length&&(_=!1)),v=x,r+=b(c)}return u==s&&a[0]==0&&_?this.result(-100+(d?-200:0),a,e):f==s&&p==0?this.ret(-200-e.length+(m==e.length?0:-100),[0,m]):o>-1?this.ret(-700-e.length,[o,o+this.pattern.length]):f==s?this.ret(-900-e.length,[p,m]):u==s?this.result(-100+(d?-200:0)+-700+(_?0:-1100),a,e):t.length==2?null:this.result((r[0]?-700:0)+-200+-1100,r,e)}result(e,t,n){let r=[],i=0;for(let e of t){let t=e+(this.astral?b(g(n,e)):1);i&&r[i-1]==e?r[i-1]=t:(r[i++]=e,r[i++]=t)}return this.ret(e-n.length,r)}},NW=class{constructor(e){this.pattern=e,this.matched=[],this.score=0,this.folded=e.toLowerCase()}match(e){if(e.length<this.pattern.length)return null;let t=e.slice(0,this.pattern.length),n=t==this.pattern?0:t.toLowerCase()==this.folded?-200:null;return n==null?null:(this.matched=[0,t.length],this.score=n+(e.length==this.pattern.length?0:-100),this)}},PW=u.define({combine(e){return te(e,{activateOnTyping:!0,activateOnCompletion:()=>!1,activateOnTypingDelay:100,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>``,optionClass:()=>``,aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:IW,filterStrict:!1,compareCompletions:(e,t)=>(e.sortText||e.label).localeCompare(t.sortText||t.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(e,t)=>e&&t,closeOnBlur:(e,t)=>e&&t,icons:(e,t)=>e&&t,tooltipClass:(e,t)=>n=>FW(e(n),t(n)),optionClass:(e,t)=>n=>FW(e(n),t(n)),addToOptions:(e,t)=>e.concat(t),filterStrict:(e,t)=>e||t})}});function FW(e,t){return e?t?e+` `+t:e:t}function IW(e,t,n,r,i,a){let o=e.textDirection==_.RTL,s=o,c=!1,l=`top`,u,d,f=t.left-i.left,p=i.right-t.right,m=r.right-r.left,h=r.bottom-r.top;if(s&&f<Math.min(m,p)?s=!1:!s&&p<Math.min(m,f)&&(s=!0),m<=(s?f:p))u=Math.max(i.top,Math.min(n.top,i.bottom-h))-t.top,d=Math.min(400,s?f:p);else{c=!0,d=Math.min(400,(o?t.right:i.right-t.left)-30);let e=i.bottom-t.bottom;e>=h||e>t.top?u=n.bottom-t.top:(l=`bottom`,u=t.bottom-n.top)}let g=(t.bottom-t.top)/a.offsetHeight,v=(t.right-t.left)/a.offsetWidth;return{style:`${l}: ${u/g}px; max-width: ${d/v}px`,class:`cm-completionInfo-`+(c?o?`left-narrow`:`right-narrow`:s?`left`:`right`)}}var LW=S.define();function RW(e){let t=e.addToOptions.slice();return e.icons&&t.push({render(e){let t=document.createElement(`div`);return t.classList.add(`cm-completionIcon`),e.type&&t.classList.add(...e.type.split(/\s+/g).map(e=>`cm-completionIcon-`+e)),t.setAttribute(`aria-hidden`,`true`),t},position:20}),t.push({render(e,t,n,r){let i=document.createElement(`span`);i.className=`cm-completionLabel`;let a=e.displayLabel||e.label,o=0;for(let e=0;e<r.length;){let t=r[e++],n=r[e++];t>o&&i.appendChild(document.createTextNode(a.slice(o,t)));let s=i.appendChild(document.createElement(`span`));s.appendChild(document.createTextNode(a.slice(t,n))),s.className=`cm-completionMatchedText`,o=n}return o<a.length&&i.appendChild(document.createTextNode(a.slice(o))),i},position:50},{render(e){if(!e.detail)return null;let t=document.createElement(`span`);return t.className=`cm-completionDetail`,t.textContent=e.detail,t},position:80}),t.sort((e,t)=>e.position-t.position).map(e=>e.render)}function zW(e,t,n){if(e<=n)return{from:0,to:e};if(t<0&&(t=0),t<=e>>1){let e=Math.floor(t/n);return{from:e*n,to:(e+1)*n}}let r=Math.floor((e-t)/n);return{from:e-(r+1)*n,to:e-r*n}}var BW=class{constructor(e,t,n){this.view=e,this.stateField=t,this.applyCompletion=n,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:e=>this.placeInfo(e),key:this},this.space=null,this.currentClass=``;let r=e.state.field(t),{options:i,selected:a}=r.open,o=e.state.facet(PW);this.optionContent=RW(o),this.optionClass=o.optionClass,this.tooltipClass=o.tooltipClass,this.range=zW(i.length,a,o.maxRenderedOptions),this.dom=document.createElement(`div`),this.dom.className=`cm-tooltip-autocomplete`,this.updateTooltipClass(e.state),this.dom.addEventListener(`mousedown`,n=>{let{options:r}=e.state.field(t).open;for(let t=n.target,i;t&&t!=this.dom;t=t.parentNode)if(t.nodeName==`LI`&&(i=/-(\d+)$/.exec(t.id))&&+i[1]<r.length){this.applyCompletion(e,r[+i[1]]),n.preventDefault();return}if(n.target==this.list){let t=this.list.classList.contains(`cm-completionListIncompleteTop`)&&n.clientY<this.list.firstChild.getBoundingClientRect().top?this.range.from-1:this.list.classList.contains(`cm-completionListIncompleteBottom`)&&n.clientY>this.list.lastChild.getBoundingClientRect().bottom?this.range.to:null;t!=null&&(e.dispatch({effects:LW.of(t)}),n.preventDefault())}}),this.dom.addEventListener(`focusout`,t=>{let n=e.state.field(this.stateField,!1);n&&n.tooltip&&e.state.facet(PW).closeOnBlur&&t.relatedTarget!=e.contentDOM&&e.dispatch({effects:jW.of(null)})}),this.showOptions(i,r.id)}mount(){this.updateSel()}showOptions(e,t){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(e,t,this.range)),this.list.addEventListener(`scroll`,()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})}update(e){let t=e.state.field(this.stateField),n=e.startState.field(this.stateField);if(this.updateTooltipClass(e.state),t!=n){let{options:r,selected:i,disabled:a}=t.open;(!n.open||n.open.options!=r)&&(this.range=zW(r.length,i,e.state.facet(PW).maxRenderedOptions),this.showOptions(r,t.id)),this.updateSel(),a!=n.open?.disabled&&this.dom.classList.toggle(`cm-tooltip-autocomplete-disabled`,!!a)}}updateTooltipClass(e){let t=this.tooltipClass(e);if(t!=this.currentClass){for(let e of this.currentClass.split(` `))e&&this.dom.classList.remove(e);for(let e of t.split(` `))e&&this.dom.classList.add(e);this.currentClass=t}}positioned(e){this.space=e,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let e=this.view.state.field(this.stateField),t=e.open;(t.selected>-1&&t.selected<this.range.from||t.selected>=this.range.to)&&(this.range=zW(t.options.length,t.selected,this.view.state.facet(PW).maxRenderedOptions),this.showOptions(t.options,e.id));let n=this.updateSelectedOption(t.selected);if(n){this.destroyInfo();let{completion:r}=t.options[t.selected],{info:i}=r;if(!i)return;let a=typeof i==`string`?document.createTextNode(i):i(r);if(!a)return;`then`in a?a.then(t=>{t&&this.view.state.field(this.stateField,!1)==e&&this.addInfoPane(t,r)}).catch(e=>ve(this.view.state,e,`completion info`)):(this.addInfoPane(a,r),n.setAttribute(`aria-describedby`,this.info.id))}}addInfoPane(e,t){this.destroyInfo();let n=this.info=document.createElement(`div`);if(n.className=`cm-tooltip cm-completionInfo`,n.id=`cm-completionInfo-`+Math.floor(Math.random()*65535).toString(16),e.nodeType!=null)n.appendChild(e),this.infoDestroy=null;else{let{dom:t,destroy:r}=e;n.appendChild(t),this.infoDestroy=r||null}this.dom.appendChild(n),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(e){let t=null;for(let n=this.list.firstChild,r=this.range.from;n;n=n.nextSibling,r++)n.nodeName!=`LI`||!n.id?r--:r==e?n.hasAttribute(`aria-selected`)||(n.setAttribute(`aria-selected`,`true`),t=n):n.hasAttribute(`aria-selected`)&&(n.removeAttribute(`aria-selected`),n.removeAttribute(`aria-describedby`));return t&&HW(this.list,t),t}measureInfo(){let e=this.dom.querySelector(`[aria-selected]`);if(!e||!this.info)return null;let t=this.dom.getBoundingClientRect(),n=this.info.getBoundingClientRect(),r=e.getBoundingClientRect(),i=this.space;if(!i){let e=this.dom.ownerDocument.documentElement;i={left:0,top:0,right:e.clientWidth,bottom:e.clientHeight}}return r.top>Math.min(i.bottom,t.bottom)-10||r.bottom<Math.max(i.top,t.top)+10?null:this.view.state.facet(PW).positionInfo(this.view,t,r,n,i,this.dom)}placeInfo(e){this.info&&(e?(e.style&&(this.info.style.cssText=e.style),this.info.className=`cm-tooltip cm-completionInfo `+(e.class||``)):this.info.style.cssText=`top: -1e6px`)}createListBox(e,t,n){let r=document.createElement(`ul`);r.id=t,r.setAttribute(`role`,`listbox`),r.setAttribute(`aria-expanded`,`true`),r.setAttribute(`aria-label`,this.view.state.phrase(`Completions`)),r.addEventListener(`mousedown`,e=>{e.target==r&&e.preventDefault()});let i=null;for(let a=n.from;a<n.to;a++){let{completion:o,match:s}=e[a],{section:c}=o;if(c){let e=typeof c==`string`?c:c.name;if(e!=i&&(a>n.from||n.from==0))if(i=e,typeof c!=`string`&&c.header)r.appendChild(c.header(c));else{let t=r.appendChild(document.createElement(`completion-section`));t.textContent=e}}let l=r.appendChild(document.createElement(`li`));l.id=t+`-`+a,l.setAttribute(`role`,`option`);let u=this.optionClass(o);u&&(l.className=u);for(let e of this.optionContent){let t=e(o,this.view.state,this.view,s);t&&l.appendChild(t)}}return n.from&&r.classList.add(`cm-completionListIncompleteTop`),n.to<e.length&&r.classList.add(`cm-completionListIncompleteBottom`),r}destroyInfo(){this.info&&=(this.infoDestroy&&this.infoDestroy(),this.info.remove(),null)}destroy(){this.destroyInfo()}};function VW(e,t){return n=>new BW(n,e,t)}function HW(e,t){let n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=n.height/e.offsetHeight;r.top<n.top?e.scrollTop-=(n.top-r.top)/i:r.bottom>n.bottom&&(e.scrollTop+=(r.bottom-n.bottom)/i)}function UW(e){return(e.boost||0)*100+(e.apply?10:0)+(e.info?5:0)+ +!!e.type}function WW(e,t){let n=[],r=null,i=null,a=e=>{n.push(e);let{section:t}=e.completion;if(t){r||=[];let e=typeof t==`string`?t:t.name;r.some(t=>t.name==e)||r.push(typeof t==`string`?{name:e}:t)}},o=t.facet(PW);for(let r of e)if(r.hasResult()){let e=r.result.getMatch;if(r.result.filter===!1)for(let t of r.result.options)a(new CW(t,r.source,e?e(t):[],1e9-n.length));else{let n=t.sliceDoc(r.from,r.to),s,c=o.filterStrict?new NW(n):new MW(n);for(let t of r.result.options)if(s=c.match(t.label)){let n=t.displayLabel?e?e(t,s.matched):[]:s.matched,o=s.score+(t.boost||0);if(a(new CW(t,r.source,n,o)),typeof t.section==`object`&&t.section.rank===`dynamic`){let{name:e}=t.section;i||=Object.create(null),i[e]=Math.max(o,i[e]||-1e9)}}}}if(r){let e=Object.create(null),t=0,a=(e,t)=>(e.rank===`dynamic`&&t.rank===`dynamic`?i[t.name]-i[e.name]:0)||(typeof e.rank==`number`?e.rank:1e9)-(typeof t.rank==`number`?t.rank:1e9)||(e.name<t.name?-1:1);for(let n of r.sort(a))t-=1e5,e[n.name]=t;for(let t of n){let{section:n}=t.completion;n&&(t.score+=e[typeof n==`string`?n:n.name])}}let s=[],c=null,l=o.compareCompletions;for(let e of n.sort((e,t)=>t.score-e.score||l(e.completion,t.completion))){let t=e.completion;!c||c.label!=t.label||c.detail!=t.detail||c.type!=null&&t.type!=null&&c.type!=t.type||c.apply!=t.apply||c.boost!=t.boost?s.push(e):UW(e.completion)>UW(c)&&(s[s.length-1]=e),c=e.completion}return s}var GW=class e{constructor(e,t,n,r,i,a){this.options=e,this.attrs=t,this.tooltip=n,this.timestamp=r,this.selected=i,this.disabled=a}setSelected(t,n){return t==this.selected||t>=this.options.length?this:new e(this.options,XW(n,t),this.tooltip,this.timestamp,t,this.disabled)}static build(t,n,r,i,a,o){if(i&&!o&&t.some(e=>e.isPending))return i.setDisabled();let s=WW(t,n);if(!s.length)return i&&t.some(e=>e.isPending)?i.setDisabled():null;let c=n.facet(PW).selectOnOpen?0:-1;if(i&&i.selected!=c&&i.selected!=-1){let e=i.options[i.selected].completion;for(let t=0;t<s.length;t++)if(s[t].completion==e){c=t;break}}return new e(s,XW(r,c),{pos:t.reduce((e,t)=>t.hasResult()?Math.min(e,t.from):e,1e8),create:aG,above:a.aboveCursor},i?i.timestamp:Date.now(),c,!1)}map(t){return new e(this.options,this.attrs,{...this.tooltip,pos:t.mapPos(this.tooltip.pos)},this.timestamp,this.selected,this.disabled)}setDisabled(){return new e(this.options,this.attrs,this.tooltip,this.timestamp,this.selected,!0)}},KW=class e{constructor(e,t,n){this.active=e,this.id=t,this.open=n}static start(){return new e(ZW,`cm-ac-`+Math.floor(Math.random()*2e6).toString(36),null)}update(t){let{state:n}=t,r=n.facet(PW),i=(r.override||n.languageDataAt(`autocomplete`,wW(n)).map(kW)).map(e=>(this.active.find(t=>t.source==e)||new $W(e,+!!this.active.some(e=>e.state!=0))).update(t,r));i.length==this.active.length&&i.every((e,t)=>e==this.active[t])&&(i=this.active);let a=this.open,o=t.effects.some(e=>e.is(nG));a&&t.docChanged&&(a=a.map(t.changes)),t.selection||i.some(e=>e.hasResult()&&t.changes.touchesRange(e.from,e.to))||!qW(i,this.active)||o?a=GW.build(i,n,this.id,a,r,o):a&&a.disabled&&!i.some(e=>e.isPending)&&(a=null),!a&&i.every(e=>!e.isPending)&&i.some(e=>e.hasResult())&&(i=i.map(e=>e.hasResult()?new $W(e.source,0):e));for(let e of t.effects)e.is(LW)&&(a&&=a.setSelected(e.value,this.id));return i==this.active&&a==this.open?this:new e(i,this.id,a)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:this.active.length?JW:YW}};function qW(e,t){if(e==t)return!0;for(let n=0,r=0;;){for(;n<e.length&&!e[n].hasResult();)n++;for(;r<t.length&&!t[r].hasResult();)r++;let i=n==e.length,a=r==t.length;if(i||a)return i==a;if(e[n++].result!=t[r++].result)return!1}}var JW={"aria-autocomplete":`list`},YW={};function XW(e,t){let n={"aria-autocomplete":`list`,"aria-haspopup":`listbox`,"aria-controls":e};return t>-1&&(n[`aria-activedescendant`]=e+`-`+t),n}var ZW=[];function QW(e,t){if(e.isUserEvent(`input.complete`)){let n=e.annotation(EW);if(n&&t.activateOnCompletion(n))return 12}let n=e.isUserEvent(`input.type`);return n&&t.activateOnTyping?5:n?1:e.isUserEvent(`delete.backward`)?2:e.selection?8:e.docChanged?16:0}var $W=class e{constructor(e,t,n=!1){this.source=e,this.state=t,this.explicit=n}hasResult(){return!1}get isPending(){return this.state==1}update(t,n){let r=QW(t,n),i=this;(r&8||r&16&&this.touches(t))&&(i=new e(i.source,0)),r&4&&i.state==0&&(i=new e(this.source,1)),i=i.updateFor(t,r);for(let n of t.effects)if(n.is(AW))i=new e(i.source,1,n.value);else if(n.is(jW))i=new e(i.source,0);else if(n.is(nG))for(let e of n.value)e.source==i.source&&(i=e);return i}updateFor(e,t){return this.map(e.changes)}map(e){return this}touches(e){return e.changes.touchesRange(wW(e.state))}},eG=class e extends $W{constructor(e,t,n,r,i,a){super(e,3,t),this.limit=n,this.result=r,this.from=i,this.to=a}hasResult(){return!0}updateFor(t,n){if(!(n&3))return this.map(t.changes);let r=this.result;r.map&&!t.changes.empty&&(r=r.map(r,t.changes));let i=t.changes.mapPos(this.from),a=t.changes.mapPos(this.to,1),o=wW(t.state);if(o>a||!r||n&2&&(wW(t.startState)==this.from||o<this.limit))return new $W(this.source,n&4?1:0);let s=t.changes.mapPos(this.limit);return tG(r.validFor,t.state,i,a)?new e(this.source,this.explicit,s,r,i,a):r.update&&(r=r.update(r,i,a,new vW(t.state,o,!1)))?new e(this.source,this.explicit,s,r,r.from,r.to??wW(t.state)):new $W(this.source,1,this.explicit)}map(t){return t.empty?this:(this.result.map?this.result.map(this.result,t):this.result)?new e(this.source,this.explicit,t.mapPos(this.limit),this.result,t.mapPos(this.from),t.mapPos(this.to,1)):new $W(this.source,0)}touches(e){return e.changes.touchesRange(this.from,this.to)}};function tG(e,t,n,r){if(!e)return!1;let i=t.sliceDoc(n,r);return typeof e==`function`?e(i,n,r,t):TW(e,!0).test(i)}var nG=S.define({map(e,t){return e.map(e=>e.map(t))}}),rG=w.define({create(){return KW.start()},update(e,t){return e.update(t)},provide:e=>[Ce.from(e,e=>e.tooltip),N.contentAttributes.from(e,e=>e.attrs)]});function iG(e,t){let n=t.completion.apply||t.completion.label,r=e.state.field(rG).active.find(e=>e.source==t.source);return r instanceof eG?(typeof n==`string`?e.dispatch({...DW(e.state,n,r.from,r.to),annotations:EW.of(t.completion)}):n(e,t.completion,r.from,r.to),!0):!1}var aG=VW(rG,iG);function oG(e,t=`option`){return n=>{let r=n.state.field(rG,!1);if(!r||!r.open||r.open.disabled||Date.now()-r.open.timestamp<n.state.facet(PW).interactionDelay)return!1;let i=1,a;t==`page`&&(a=Ue(n,r.open.tooltip))&&(i=Math.max(2,Math.floor(a.dom.offsetHeight/a.dom.querySelector(`li`).offsetHeight)-1));let{length:o}=r.open.options,s=r.open.selected>-1?r.open.selected+i*(e?1:-1):e?0:o-1;return s<0?s=t==`page`?0:o-1:s>=o&&(s=t==`page`?o-1:0),n.dispatch({effects:LW.of(s)}),!0}}var sG=e=>{let t=e.state.field(rG,!1);return e.state.readOnly||!t||!t.open||t.open.selected<0||t.open.disabled||Date.now()-t.open.timestamp<e.state.facet(PW).interactionDelay?!1:iG(e,t.open.options[t.open.selected])},cG=e=>e.state.field(rG,!1)?(e.dispatch({effects:AW.of(!0)}),!0):!1,lG=e=>{let t=e.state.field(rG,!1);return!t||!t.active.some(e=>e.state!=0)?!1:(e.dispatch({effects:jW.of(null)}),!0)},uG=class{constructor(e,t){this.active=e,this.context=t,this.time=Date.now(),this.updates=[],this.done=void 0}},dG=50,fG=1e3,pG=ce.fromClass(class{constructor(e){this.view=e,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.pendingStart=!1,this.composing=0;for(let t of e.state.field(rG).active)t.isPending&&this.startQuery(t)}update(e){let t=e.state.field(rG),n=e.state.facet(PW);if(!e.selectionSet&&!e.docChanged&&e.startState.field(rG)==t)return;let r=e.transactions.some(e=>{let t=QW(e,n);return t&8||(e.selection||e.docChanged)&&!(t&3)});for(let t=0;t<this.running.length;t++){let n=this.running[t];if(r||n.context.abortOnDocChange&&e.docChanged||n.updates.length+e.transactions.length>dG&&Date.now()-n.time>fG){for(let e of n.context.abortListeners)try{e()}catch(e){ve(this.view.state,e)}n.context.abortListeners=null,this.running.splice(t--,1)}else n.updates.push(...e.transactions)}this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),e.transactions.some(e=>e.effects.some(e=>e.is(AW)))&&(this.pendingStart=!0);let i=this.pendingStart?50:n.activateOnTypingDelay;if(this.debounceUpdate=t.active.some(e=>e.isPending&&!this.running.some(t=>t.active.source==e.source))?setTimeout(()=>this.startUpdate(),i):-1,this.composing!=0)for(let t of e.transactions)t.isUserEvent(`input.type`)?this.composing=2:this.composing==2&&t.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1,this.pendingStart=!1;let{state:e}=this.view,t=e.field(rG);for(let e of t.active)e.isPending&&!this.running.some(t=>t.active.source==e.source)&&this.startQuery(e);this.running.length&&t.open&&t.open.disabled&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(PW).updateSyncTime))}startQuery(e){let{state:t}=this.view,n=new vW(t,wW(t),e.explicit,this.view),r=new uG(e,n);this.running.push(r),Promise.resolve(e.source(n)).then(e=>{r.context.aborted||(r.done=e||null,this.scheduleAccept())},e=>{this.view.dispatch({effects:jW.of(null)}),ve(this.view.state,e)})}scheduleAccept(){this.running.every(e=>e.done!==void 0)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(PW).updateSyncTime))}accept(){this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let e=[],t=this.view.state.facet(PW),n=this.view.state.field(rG);for(let r=0;r<this.running.length;r++){let i=this.running[r];if(i.done===void 0)continue;if(this.running.splice(r--,1),i.done){let n=wW(i.updates.length?i.updates[0].startState:this.view.state),r=Math.min(n,i.done.from+ +!i.active.explicit),a=new eG(i.active.source,i.active.explicit,r,i.done,i.done.from,i.done.to??n);for(let e of i.updates)a=a.update(e,t);if(a.hasResult()){e.push(a);continue}}let a=n.active.find(e=>e.source==i.active.source);if(a&&a.isPending)if(i.done==null){let n=new $W(i.active.source,0);for(let e of i.updates)n=n.update(e,t);n.isPending||e.push(n)}else this.startQuery(a)}(e.length||n.open&&n.open.disabled)&&this.view.dispatch({effects:nG.of(e)})}},{eventHandlers:{blur(e){let t=this.view.state.field(rG,!1);if(t&&t.tooltip&&this.view.state.facet(PW).closeOnBlur){let n=t.open&&Ue(this.view,t.open.tooltip);(!n||!n.dom.contains(e.relatedTarget))&&setTimeout(()=>this.view.dispatch({effects:jW.of(null)}),10)}},compositionstart(){this.composing=1},compositionend(){this.composing==3&&setTimeout(()=>this.view.dispatch({effects:AW.of(!1)}),20),this.composing=0}}}),mG=typeof navigator==`object`&&/Win/.test(navigator.platform),hG=E.highest(N.domEventHandlers({keydown(e,t){let n=t.state.field(rG,!1);if(!n||!n.open||n.open.disabled||n.open.selected<0||e.key.length>1||e.ctrlKey&&!(mG&&e.altKey)||e.metaKey)return!1;let r=n.open.options[n.open.selected],i=n.active.find(e=>e.source==r.source),a=r.completion.commitCharacters||i.result.commitCharacters;return a&&a.indexOf(e.key)>-1&&iG(t,r),!1}})),gG=N.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:`monospace`,whiteSpace:`nowrap`,overflow:`hidden auto`,maxWidth_fallback:`700px`,maxWidth:`min(700px, 95vw)`,minWidth:`250px`,maxHeight:`10em`,height:`100%`,listStyle:`none`,margin:0,padding:0,"& > li, & > completion-section":{padding:`1px 3px`,lineHeight:1.2},"& > li":{overflowX:`hidden`,textOverflow:`ellipsis`,cursor:`pointer`},"& > completion-section":{display:`list-item`,borderBottom:`1px solid silver`,paddingLeft:`0.5em`,opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:`#17c`,color:`white`},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:`#777`},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:`#347`,color:`white`},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:`#444`},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:`"···"`,opacity:.5,display:`block`,textAlign:`center`},".cm-tooltip.cm-completionInfo":{position:`absolute`,padding:`3px 9px`,width:`max-content`,maxWidth:`400px`,boxSizing:`border-box`,whiteSpace:`pre-line`},".cm-completionInfo.cm-completionInfo-left":{right:`100%`},".cm-completionInfo.cm-completionInfo-right":{left:`100%`},".cm-completionInfo.cm-completionInfo-left-narrow":{right:`30px`},".cm-completionInfo.cm-completionInfo-right-narrow":{left:`30px`},"&light .cm-snippetField":{backgroundColor:`#00000022`},"&dark .cm-snippetField":{backgroundColor:`#ffffff22`},".cm-snippetFieldPosition":{verticalAlign:`text-top`,width:0,height:`1.15em`,display:`inline-block`,margin:`0 -0.7px -.7em`,borderLeft:`1.4px dotted #888`},".cm-completionMatchedText":{textDecoration:`underline`},".cm-completionDetail":{marginLeft:`0.5em`,fontStyle:`italic`},".cm-completionIcon":{fontSize:`90%`,width:`.8em`,display:`inline-block`,textAlign:`center`,paddingRight:`.6em`,opacity:`0.6`,boxSizing:`content-box`},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:`'ƒ'`}},".cm-completionIcon-class":{"&:after":{content:`'○'`}},".cm-completionIcon-interface":{"&:after":{content:`'◌'`}},".cm-completionIcon-variable":{"&:after":{content:`'𝑥'`}},".cm-completionIcon-constant":{"&:after":{content:`'𝐶'`}},".cm-completionIcon-type":{"&:after":{content:`'𝑡'`}},".cm-completionIcon-enum":{"&:after":{content:`'∪'`}},".cm-completionIcon-property":{"&:after":{content:`'□'`}},".cm-completionIcon-keyword":{"&:after":{content:`'🔑︎'`}},".cm-completionIcon-namespace":{"&:after":{content:`'▢'`}},".cm-completionIcon-text":{"&:after":{content:`'abc'`,fontSize:`50%`,verticalAlign:`middle`}}}),_G=class{constructor(e,t,n,r){this.field=e,this.line=t,this.from=n,this.to=r}},vG=class e{constructor(e,t,n){this.field=e,this.from=t,this.to=n}map(t){let n=t.mapPos(this.from,-1,c.TrackDel),r=t.mapPos(this.to,1,c.TrackDel);return n==null||r==null?null:new e(this.field,n,r)}},yG=class e{constructor(e,t){this.lines=e,this.fieldPositions=t}instantiate(e,n){let r=[],i=[n],a=e.doc.lineAt(n),o=/^\s*/.exec(a.text)[0];for(let a of this.lines){if(r.length){let r=o,s=/^\t*/.exec(a)[0].length;for(let n=0;n<s;n++)r+=e.facet(t);i.push(n+r.length-s),a=r+a.slice(s)}r.push(a),n+=a.length+1}return{text:r,ranges:this.fieldPositions.map(e=>new vG(e.field,i[e.line]+e.from,i[e.line]+e.to))}}static parse(t){let n=[],r=[],i=[],a;for(let e of t.split(/\r\n?|\n/)){for(;a=/[#$]\{(?:(\d+)(?::([^{}]*))?|((?:\\[{}]|[^{}])*))\}/.exec(e);){let t=a[1]?+a[1]:null,o=a[2]||a[3]||``,s=-1,c=o.replace(/\\[{}]/g,e=>e[1]);for(let e=0;e<n.length;e++)(t==null?c&&n[e].name==c:n[e].seq==t)&&(s=e);if(s<0){let e=0;for(;e<n.length&&(t==null||n[e].seq!=null&&n[e].seq<t);)e++;n.splice(e,0,{seq:t,name:c}),s=e;for(let e of i)e.field>=s&&e.field++}for(let e of i)if(e.line==r.length&&e.from>a.index){let t=a[2]?3+(a[1]||``).length:2;e.from-=t,e.to-=t}i.push(new _G(s,r.length,a.index,a.index+c.length)),e=e.slice(0,a.index)+o+e.slice(a.index+a[0].length)}e=e.replace(/\\([{}])/g,(e,t,n)=>{for(let e of i)e.line==r.length&&e.from>n&&(e.from--,e.to--);return t}),r.push(e)}return new e(r,i)}},bG=Ve.widget({widget:new class extends O{toDOM(){let e=document.createElement(`span`);return e.className=`cm-snippetFieldPosition`,e}ignoreEvent(){return!1}}}),xG=Ve.mark({class:`cm-snippetField`}),SG=class e{constructor(e,t){this.ranges=e,this.active=t,this.deco=Ve.set(e.map(e=>(e.from==e.to?bG:xG).range(e.from,e.to)),!0)}map(t){let n=[];for(let e of this.ranges){let r=e.map(t);if(!r)return null;n.push(r)}return new e(n,this.active)}selectionInsideField(e){return e.ranges.every(e=>this.ranges.some(t=>t.field==this.active&&t.from<=e.from&&t.to>=e.to))}},CG=S.define({map(e,t){return e&&e.map(t)}}),wG=S.define(),TG=w.define({create(){return null},update(e,t){for(let n of t.effects){if(n.is(CG))return n.value;if(n.is(wG)&&e)return new SG(e.ranges,n.value)}return e&&t.docChanged&&(e=e.map(t.changes)),e&&t.selection&&!e.selectionInsideField(t.selection)&&(e=null),e},provide:e=>N.decorations.from(e,e=>e?e.deco:Ve.none)});function EG(e,t){return F.create(e.filter(e=>e.field==t).map(e=>F.range(e.from,e.to)))}function DG(e){let t=yG.parse(e);return(e,n,r,i)=>{let{text:a,ranges:o}=t.instantiate(e.state,r),{main:s}=e.state.selection,c={changes:{from:r,to:i==s.from?s.to:i,insert:D.of(a)},scrollIntoView:!0,annotations:n?[EW.of(n),f.userEvent.of(`input.complete`)]:void 0};if(o.length&&(c.selection=EG(o,0)),o.some(e=>e.field>0)){let t=new SG(o,0),n=c.effects=[CG.of(t)];e.state.field(TG,!1)===void 0&&n.push(S.appendConfig.of([TG,jG,NG,gG]))}e.dispatch(e.state.update(c))}}function OG(e){return({state:t,dispatch:n})=>{let r=t.field(TG,!1);if(!r||e<0&&r.active==0)return!1;let i=r.active+e,a=e>0&&!r.ranges.some(t=>t.field==i+e);return n(t.update({selection:EG(r.ranges,i),effects:CG.of(a?null:new SG(r.ranges,i)),scrollIntoView:!0})),!0}}var kG=[{key:`Tab`,run:OG(1),shift:OG(-1)},{key:`Escape`,run:({state:e,dispatch:t})=>e.field(TG,!1)?(t(e.update({effects:CG.of(null)})),!0):!1}],AG=u.define({combine(e){return e.length?e[0]:kG}}),jG=E.highest(Me.compute([AG],e=>e.facet(AG)));function MG(e,t){return{...t,apply:DG(e)}}var NG=N.domEventHandlers({mousedown(e,t){let n=t.state.field(TG,!1),r;if(!n||(r=t.posAtCoords({x:e.clientX,y:e.clientY}))==null)return!1;let i=n.ranges.find(e=>e.from<=r&&e.to>=r);return!i||i.field==n.active?!1:(t.dispatch({selection:EG(n.ranges,i.field),effects:CG.of(n.ranges.some(e=>e.field>i.field)?new SG(n.ranges,i.field):null),scrollIntoView:!0}),!0)}}),PG={brackets:[`(`,`[`,`{`,`'`,`"`],before:`)]}:;>`,stringPrefixes:[]},FG=S.define({map(e,t){return t.mapPos(e,-1,c.TrackAfter)??void 0}}),IG=new class extends ke{};IG.startSide=1,IG.endSide=-1;var LG=w.define({create(){return je.empty},update(e,t){if(e=e.map(t.changes),t.selection){let n=t.state.doc.lineAt(t.selection.main.head);e=e.update({filter:e=>e>=n.from&&e<=n.to})}for(let n of t.effects)n.is(FG)&&(e=e.update({add:[IG.range(n.value,n.value+1)]}));return e}});function RG(){return[UG,LG]}var zG=`()[]{}<>«»»«[]{}`;function BG(e){for(let t=0;t<16;t+=2)if(zG.charCodeAt(t)==e)return zG.charAt(t+1);return ae(e<128?e:e+1)}function VG(e,t){return e.languageDataAt(`closeBrackets`,t)[0]||PG}var HG=typeof navigator==`object`&&/Android\b/.test(navigator.userAgent),UG=N.inputHandler.of((e,t,n,r)=>{if((HG?e.composing:e.compositionStarted)||e.state.readOnly)return!1;let i=e.state.selection.main;if(r.length>2||r.length==2&&b(g(r,0))==1||t!=i.from||n!=i.to)return!1;let a=GG(e.state,r);return a?(e.dispatch(a),!0):!1}),WG=[{key:`Backspace`,run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=VG(e,e.selection.main.head).brackets||PG.brackets,r=null,i=e.changeByRange(t=>{if(t.empty){let r=JG(e.doc,t.head);for(let i of n)if(i==r&&qG(e.doc,t.head)==BG(g(i,0)))return{changes:{from:t.head-i.length,to:t.head+i.length},range:F.cursor(t.head-i.length)}}return{range:r=t}});return r||t(e.update(i,{scrollIntoView:!0,userEvent:`delete.backward`})),!r}}];function GG(e,t){let n=VG(e,e.selection.main.head),r=n.brackets||PG.brackets;for(let i of r){let a=BG(g(i,0));if(t==i)return a==i?ZG(e,i,r.indexOf(i+i+i)>-1,n):YG(e,i,a,n.before||PG.before);if(t==a&&KG(e,e.selection.main.from))return XG(e,i,a)}return null}function KG(e,t){let n=!1;return e.field(LG).between(0,e.doc.length,e=>{e==t&&(n=!0)}),n}function qG(e,t){let n=e.sliceString(t,t+2);return n.slice(0,b(g(n,0)))}function JG(e,t){let n=e.sliceString(t-2,t);return b(g(n,0))==n.length?n:n.slice(1)}function YG(e,t,n,r){let i=null,a=e.changeByRange(a=>{if(!a.empty)return{changes:[{insert:t,from:a.from},{insert:n,from:a.to}],effects:FG.of(a.to+t.length),range:F.range(a.anchor+t.length,a.head+t.length)};let o=qG(e.doc,a.head);return!o||/\s/.test(o)||r.indexOf(o)>-1?{changes:{insert:t+n,from:a.head},effects:FG.of(a.head+t.length),range:F.cursor(a.head+t.length)}:{range:i=a}});return i?null:e.update(a,{scrollIntoView:!0,userEvent:`input.type`})}function XG(e,t,n){let r=null,i=e.changeByRange(t=>t.empty&&qG(e.doc,t.head)==n?{changes:{from:t.head,to:t.head+n.length,insert:n},range:F.cursor(t.head+n.length)}:r={range:t});return r?null:e.update(i,{scrollIntoView:!0,userEvent:`input.type`})}function ZG(e,t,n,r){let i=r.stringPrefixes||PG.stringPrefixes,a=null,o=e.changeByRange(r=>{if(!r.empty)return{changes:[{insert:t,from:r.from},{insert:t,from:r.to}],effects:FG.of(r.to+t.length),range:F.range(r.anchor+t.length,r.head+t.length)};let o=r.head,s=qG(e.doc,o),c;if(s==t){if(QG(e,o))return{changes:{insert:t+t,from:o},effects:FG.of(o+t.length),range:F.cursor(o+t.length)};if(KG(e,o)){let r=n&&e.sliceDoc(o,o+t.length*3)==t+t+t?t+t+t:t;return{changes:{from:o,to:o+r.length,insert:r},range:F.cursor(o+r.length)}}}else if(n&&e.sliceDoc(o-2*t.length,o)==t+t&&(c=eK(e,o-2*t.length,i))>-1&&QG(e,c))return{changes:{insert:t+t+t+t,from:o},effects:FG.of(o+t.length),range:F.cursor(o+t.length)};else if(e.charCategorizer(o)(s)!=j.Word&&eK(e,o,i)>-1&&!$G(e,o,t,i))return{changes:{insert:t+t,from:o},effects:FG.of(o+t.length),range:F.cursor(o+t.length)};return{range:a=r}});return a?null:e.update(o,{scrollIntoView:!0,userEvent:`input.type`})}function QG(e,t){let n=d(e).resolveInner(t+1);return n.parent&&n.from==t}function $G(e,t,n,r){let i=d(e).resolveInner(t,-1),a=r.reduce((e,t)=>Math.max(e,t.length),0);for(let o=0;o<5;o++){let o=e.sliceDoc(i.from,Math.min(i.to,i.from+n.length+a)),s=o.indexOf(n);if(!s||s>-1&&r.indexOf(o.slice(0,s))>-1){let t=i.firstChild;for(;t&&t.from==i.from&&t.to-t.from>n.length+s;){if(e.sliceDoc(t.to-n.length,t.to)==n)return!1;t=t.firstChild}return!0}let c=i.to==t&&i.parent;if(!c)break;i=c}return!1}function eK(e,t,n){let r=e.charCategorizer(t);if(r(e.sliceDoc(t-1,t))!=j.Word)return t;for(let i of n){let n=t-i.length;if(e.sliceDoc(n,t)==i&&r(e.sliceDoc(n-1,n))!=j.Word)return n}return-1}function tK(e={}){return[hG,rG,PW.of(e),pG,rK,gG]}var nK=[{key:`Ctrl-Space`,run:cG},{mac:"Alt-`",run:cG},{mac:`Alt-i`,run:cG},{key:`Escape`,run:lG},{key:`ArrowDown`,run:oG(!0)},{key:`ArrowUp`,run:oG(!1)},{key:`PageDown`,run:oG(!0,`page`)},{key:`PageUp`,run:oG(!1,`page`)},{key:`Enter`,run:sG}],rK=E.highest(Me.computeN([PW],e=>e.facet(PW).defaultKeymap?[nK]:[])),iK=e=>{let{state:t}=e,n=t.doc.lineAt(t.selection.main.from),r=lK(e.state,n.from);return r.line?oK(e):r.block?cK(e):!1};function aK(e,t){return({state:n,dispatch:r})=>{if(n.readOnly)return!1;let i=e(t,n);return i?(r(n.update(i)),!0):!1}}var oK=aK(mK,0),sK=aK(pK,0),cK=aK((e,t)=>pK(e,t,fK(t)),0);function lK(e,t){let n=e.languageDataAt(`commentTokens`,t,1);return n.length?n[0]:{}}var uK=50;function dK(e,{open:t,close:n},r,i){let a=e.sliceDoc(r-uK,r),o=e.sliceDoc(i,i+uK),s=/\s*$/.exec(a)[0].length,c=/^\s*/.exec(o)[0].length,l=a.length-s;if(a.slice(l-t.length,l)==t&&o.slice(c,c+n.length)==n)return{open:{pos:r-s,margin:s&&1},close:{pos:i+c,margin:c&&1}};let u,d;i-r<=2*uK?u=d=e.sliceDoc(r,i):(u=e.sliceDoc(r,r+uK),d=e.sliceDoc(i-uK,i));let f=/^\s*/.exec(u)[0].length,p=/\s*$/.exec(d)[0].length,m=d.length-p-n.length;return u.slice(f,f+t.length)==t&&d.slice(m,m+n.length)==n?{open:{pos:r+f+t.length,margin:+!!/\s/.test(u.charAt(f+t.length))},close:{pos:i-p-n.length,margin:+!!/\s/.test(d.charAt(m-1))}}:null}function fK(e){let t=[];for(let n of e.selection.ranges){let r=e.doc.lineAt(n.from),i=n.to<=r.to?r:e.doc.lineAt(n.to);i.from>r.from&&i.from==n.to&&(i=n.to==r.to+1?r:e.doc.lineAt(n.to-1));let a=t.length-1;a>=0&&t[a].to>r.from?t[a].to=i.to:t.push({from:r.from+/^\s*/.exec(r.text)[0].length,to:i.to})}return t}function pK(e,t,n=t.selection.ranges){let r=n.map(e=>lK(t,e.from).block);if(!r.every(e=>e))return null;let i=n.map((e,n)=>dK(t,r[n],e.from,e.to));if(e!=2&&!i.every(e=>e))return{changes:t.changes(n.map((e,t)=>i[t]?[]:[{from:e.from,insert:r[t].open+` `},{from:e.to,insert:` `+r[t].close}]))};if(e!=1&&i.some(e=>e)){let e=[];for(let t=0,n;t<i.length;t++)if(n=i[t]){let i=r[t],{open:a,close:o}=n;e.push({from:a.pos-i.open.length,to:a.pos+a.margin},{from:o.pos-o.margin,to:o.pos+i.close.length})}return{changes:e}}return null}function mK(e,t,n=t.selection.ranges){let r=[],i=-1;ranges:for(let{from:e,to:a}of n){let n=r.length,o=1e9,s;for(let n=e;n<=a;){let c=t.doc.lineAt(n);if(s==null&&(s=lK(t,c.from).line,!s))continue ranges;if(c.from>i&&(e==a||a>c.from)){i=c.from;let e=/^\s*/.exec(c.text)[0].length,t=e==c.length,n=c.text.slice(e,e+s.length)==s?e:-1;e<c.text.length&&e<o&&(o=e),r.push({line:c,comment:n,token:s,indent:e,empty:t,single:!1})}n=c.to+1}if(o<1e9)for(let e=n;e<r.length;e++)r[e].indent<r[e].line.text.length&&(r[e].indent=o);r.length==n+1&&(r[n].single=!0)}if(e!=2&&r.some(e=>e.comment<0&&(!e.empty||e.single))){let e=[];for(let{line:t,token:n,indent:i,empty:a,single:o}of r)(o||!a)&&e.push({from:t.from+i,insert:n+` `});let n=t.changes(e);return{changes:n,selection:t.selection.map(n,1)}}else if(e!=1&&r.some(e=>e.comment>=0)){let e=[];for(let{line:t,comment:n,token:i}of r)if(n>=0){let r=t.from+n,a=r+i.length;t.text[a-t.from]==` `&&a++,e.push({from:r,to:a})}return{changes:e}}return null}var hK=nt.define(),gK=nt.define(),_K=u.define(),vK=u.define({combine(e){return te(e,{minDepth:100,newGroupDelay:500,joinToEvent:(e,t)=>t},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,t)=>(n,r)=>e(n,r)||t(n,r)})}}),yK=w.define({create(){return RK.empty},update(e,t){let n=t.state.facet(vK),r=t.annotation(hK);if(r){let i=EK.fromTransaction(t,r.selection),a=r.side,o=a==0?e.undone:e.done;return o=i?DK(o,o.length,n.minDepth,i):NK(o,t.startState.selection),new RK(a==0?r.rest:o,a==0?o:r.rest)}let i=t.annotation(gK);if((i==`full`||i==`before`)&&(e=e.isolate()),t.annotation(f.addToHistory)===!1)return t.changes.empty?e:e.addMapping(t.changes.desc);let a=EK.fromTransaction(t),o=t.annotation(f.time),s=t.annotation(f.userEvent);return a?e=e.addChanges(a,o,s,n,t):t.selection&&(e=e.addSelection(t.startState.selection,o,s,n.newGroupDelay)),(i==`full`||i==`after`)&&(e=e.isolate()),e},toJSON(e){return{done:e.done.map(e=>e.toJSON()),undone:e.undone.map(e=>e.toJSON())}},fromJSON(e){return new RK(e.done.map(EK.fromJSON),e.undone.map(EK.fromJSON))}});function bK(e={}){return[yK,vK.of(e),N.domEventHandlers({beforeinput(e,t){let n=e.inputType==`historyUndo`?SK:e.inputType==`historyRedo`?CK:null;return n?(e.preventDefault(),n(t)):!1}})]}function xK(e,t){return function({state:n,dispatch:r}){if(!t&&n.readOnly)return!1;let i=n.field(yK,!1);if(!i)return!1;let a=i.pop(e,n,t);return a?(r(a),!0):!1}}var SK=xK(0,!1),CK=xK(1,!1),wK=xK(0,!0),TK=xK(1,!0),EK=class e{constructor(e,t,n,r,i){this.changes=e,this.effects=t,this.mapped=n,this.startSelection=r,this.selectionsAfter=i}setSelAfter(t){return new e(this.changes,this.effects,this.mapped,this.startSelection,t)}toJSON(){return{changes:this.changes?.toJSON(),mapped:this.mapped?.toJSON(),startSelection:this.startSelection?.toJSON(),selectionsAfter:this.selectionsAfter.map(e=>e.toJSON())}}static fromJSON(t){return new e(t.changes&&et.fromJSON(t.changes),[],t.mapped&&me.fromJSON(t.mapped),t.startSelection&&F.fromJSON(t.startSelection),t.selectionsAfter.map(F.fromJSON))}static fromTransaction(t,n){let r=jK;for(let e of t.startState.facet(_K)){let n=e(t);n.length&&(r=r.concat(n))}return!r.length&&t.changes.empty?null:new e(t.changes.invert(t.startState.doc),r,void 0,n||t.startState.selection,jK)}static selection(t){return new e(void 0,jK,void 0,void 0,t)}};function DK(e,t,n,r){let i=t+1>n+20?t-n-1:0,a=e.slice(i,t);return a.push(r),a}function OK(e,t){let n=[],r=!1;return e.iterChangedRanges((e,t)=>n.push(e,t)),t.iterChangedRanges((e,t,i,a)=>{for(let e=0;e<n.length;){let t=n[e++],o=n[e++];a>=t&&i<=o&&(r=!0)}}),r}function kK(e,t){return e.ranges.length==t.ranges.length&&e.ranges.filter((e,n)=>e.empty!=t.ranges[n].empty).length===0}function AK(e,t){return e.length?t.length?e.concat(t):e:t}var jK=[],MK=200;function NK(e,t){if(e.length){let n=e[e.length-1],r=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-MK));return r.length&&r[r.length-1].eq(t)?e:(r.push(t),DK(e,e.length-1,1e9,n.setSelAfter(r)))}else return[EK.selection([t])]}function PK(e){let t=e[e.length-1],n=e.slice();return n[e.length-1]=t.setSelAfter(t.selectionsAfter.slice(0,t.selectionsAfter.length-1)),n}function FK(e,t){if(!e.length)return e;let n=e.length,r=jK;for(;n;){let i=IK(e[n-1],t,r);if(i.changes&&!i.changes.empty||i.effects.length){let t=e.slice(0,n);return t[n-1]=i,t}else t=i.mapped,n--,r=i.selectionsAfter}return r.length?[EK.selection(r)]:jK}function IK(e,t,n){let r=AK(e.selectionsAfter.length?e.selectionsAfter.map(e=>e.map(t)):jK,n);if(!e.changes)return EK.selection(r);let i=e.changes.map(t),a=t.mapDesc(e.changes,!0),o=e.mapped?e.mapped.composeDesc(a):a;return new EK(i,S.mapEffects(e.effects,t),o,e.startSelection.map(a),r)}var LK=/^(input\.type|delete)($|\.)/,RK=class e{constructor(e,t,n=0,r=void 0){this.done=e,this.undone=t,this.prevTime=n,this.prevUserEvent=r}isolate(){return this.prevTime?new e(this.done,this.undone):this}addChanges(t,n,r,i,a){let o=this.done,s=o[o.length-1];return o=s&&s.changes&&!s.changes.empty&&t.changes&&(!r||LK.test(r))&&(!s.selectionsAfter.length&&n-this.prevTime<i.newGroupDelay&&i.joinToEvent(a,OK(s.changes,t.changes))||r==`input.type.compose`)?DK(o,o.length-1,i.minDepth,new EK(t.changes.compose(s.changes),AK(S.mapEffects(t.effects,s.changes),s.effects),s.mapped,s.startSelection,jK)):DK(o,o.length,i.minDepth,t),new e(o,jK,n,r)}addSelection(t,n,r,i){let a=this.done.length?this.done[this.done.length-1].selectionsAfter:jK;return a.length>0&&n-this.prevTime<i&&r==this.prevUserEvent&&r&&/^select($|\.)/.test(r)&&kK(a[a.length-1],t)?this:new e(NK(this.done,t),this.undone,n,r)}addMapping(t){return new e(FK(this.done,t),FK(this.undone,t),this.prevTime,this.prevUserEvent)}pop(e,t,n){let r=e==0?this.done:this.undone;if(r.length==0)return null;let i=r[r.length-1],a=i.selectionsAfter[0]||(i.startSelection?i.startSelection.map(i.changes.invertedDesc,1):t.selection);if(n&&i.selectionsAfter.length)return t.update({selection:i.selectionsAfter[i.selectionsAfter.length-1],annotations:hK.of({side:e,rest:PK(r),selection:a}),userEvent:e==0?`select.undo`:`select.redo`,scrollIntoView:!0});if(i.changes){let n=r.length==1?jK:r.slice(0,r.length-1);return i.mapped&&(n=FK(n,i.mapped)),t.update({changes:i.changes,selection:i.startSelection,effects:i.effects,annotations:hK.of({side:e,rest:n,selection:a}),filter:!1,userEvent:e==0?`undo`:`redo`,scrollIntoView:!0})}else return null}};RK.empty=new RK(jK,jK);var zK=[{key:`Mod-z`,run:SK,preventDefault:!0},{key:`Mod-y`,mac:`Mod-Shift-z`,run:CK,preventDefault:!0},{linux:`Ctrl-Shift-z`,run:CK,preventDefault:!0},{key:`Mod-u`,run:wK,preventDefault:!0},{key:`Alt-u`,mac:`Mod-Shift-u`,run:TK,preventDefault:!0}];function BK(e,t){return F.create(e.ranges.map(t),e.mainIndex)}function VK(e,t){return e.update({selection:t,scrollIntoView:!0,userEvent:`select`})}function HK({state:e,dispatch:t},n){let r=BK(e.selection,n);return r.eq(e.selection,!0)?!1:(t(VK(e,r)),!0)}function UK(e,t){return F.cursor(t?e.to:e.from)}function WK(e,t){return HK(e,n=>n.empty?e.moveByChar(n,t):UK(n,t))}function GK(e){return e.textDirectionAt(e.state.selection.main.head)==_.LTR}var KK=e=>WK(e,!GK(e)),qK=e=>WK(e,GK(e));function JK(e,t){return HK(e,n=>n.empty?e.moveByGroup(n,t):UK(n,t))}var YK=e=>JK(e,!GK(e)),XK=e=>JK(e,GK(e));typeof Intl<`u`&&Intl.Segmenter;function ZK(e,t,n){if(t.type.prop(n))return!0;let r=t.to-t.from;return r&&(r>2||/[^\s,.;:]/.test(e.sliceDoc(t.from,t.to)))||t.firstChild}function QK(e,t,n){let i=d(e).resolveInner(t.head),a=n?r.closedBy:r.openedBy;for(let r=t.head;;){let t=n?i.childAfter(r):i.childBefore(r);if(!t)break;ZK(e,t,a)?i=t:r=n?t.to:t.from}let o=i.type.prop(a),s,c;return c=o&&(s=n?x(e,i.from,1):x(e,i.to,-1))&&s.matched?n?s.end.to:s.end.from:n?i.to:i.from,F.cursor(c,n?-1:1)}var $K=e=>HK(e,t=>QK(e.state,t,!GK(e))),eq=e=>HK(e,t=>QK(e.state,t,GK(e)));function tq(e,t){return HK(e,n=>{if(!n.empty)return UK(n,t);let r=e.moveVertically(n,t);return r.head==n.head?e.moveToLineBoundary(n,t):r})}var nq=e=>tq(e,!1),rq=e=>tq(e,!0);function iq(e){let t=e.scrollDOM.clientHeight<e.scrollDOM.scrollHeight-2,n=0,r=0,i;if(t){for(let t of e.state.facet(N.scrollMargins)){let i=t(e);i?.top&&(n=Math.max(i?.top,n)),i?.bottom&&(r=Math.max(i?.bottom,r))}i=e.scrollDOM.clientHeight-n-r}else i=(e.dom.ownerDocument.defaultView||window).innerHeight;return{marginTop:n,marginBottom:r,selfScroll:t,height:Math.max(e.defaultLineHeight,i-5)}}function aq(e,t){let n=iq(e),{state:r}=e,i=BK(r.selection,r=>r.empty?e.moveVertically(r,t,n.height):UK(r,t));if(i.eq(r.selection))return!1;let a;if(n.selfScroll){let t=e.coordsAtPos(r.selection.main.head),o=e.scrollDOM.getBoundingClientRect(),s=o.top+n.marginTop,c=o.bottom-n.marginBottom;t&&t.top>s&&t.bottom<c&&(a=N.scrollIntoView(i.main.head,{y:`start`,yMargin:t.top-s}))}return e.dispatch(VK(r,i),{effects:a}),!0}var oq=e=>aq(e,!1),sq=e=>aq(e,!0);function cq(e,t,n){let r=e.lineBlockAt(t.head),i=e.moveToLineBoundary(t,n);if(i.head==t.head&&i.head!=(n?r.to:r.from)&&(i=e.moveToLineBoundary(t,n,!1)),!n&&i.head==r.from&&r.length){let n=/^\s*/.exec(e.state.sliceDoc(r.from,Math.min(r.from+100,r.to)))[0].length;n&&t.head!=r.from+n&&(i=F.cursor(r.from+n))}return i}var lq=e=>HK(e,t=>cq(e,t,!0)),uq=e=>HK(e,t=>cq(e,t,!1)),dq=e=>HK(e,t=>cq(e,t,!GK(e))),fq=e=>HK(e,t=>cq(e,t,GK(e))),pq=e=>HK(e,t=>F.cursor(e.lineBlockAt(t.head).from,1)),mq=e=>HK(e,t=>F.cursor(e.lineBlockAt(t.head).to,-1));function hq(e,t,n){let r=!1,i=BK(e.selection,t=>{let i=x(e,t.head,-1)||x(e,t.head,1)||t.head>0&&x(e,t.head-1,1)||t.head<e.doc.length&&x(e,t.head+1,-1);if(!i||!i.end)return t;r=!0;let a=i.start.from==t.head?i.end.to:i.end.from;return n?F.range(t.anchor,a):F.cursor(a)});return r?(t(VK(e,i)),!0):!1}var gq=({state:e,dispatch:t})=>hq(e,t,!1);function _q(e,t){let n=BK(e.state.selection,e=>{let n=t(e);return F.range(e.anchor,n.head,n.goalColumn,n.bidiLevel||void 0,n.assoc)});return n.eq(e.state.selection)?!1:(e.dispatch(VK(e.state,n)),!0)}function vq(e,t){return _q(e,n=>e.moveByChar(n,t))}var yq=e=>vq(e,!GK(e)),bq=e=>vq(e,GK(e));function xq(e,t){return _q(e,n=>e.moveByGroup(n,t))}var Sq=e=>xq(e,!GK(e)),Cq=e=>xq(e,GK(e)),wq=e=>_q(e,t=>QK(e.state,t,!GK(e))),Tq=e=>_q(e,t=>QK(e.state,t,GK(e)));function Eq(e,t){return _q(e,n=>e.moveVertically(n,t))}var Dq=e=>Eq(e,!1),Oq=e=>Eq(e,!0);function kq(e,t){return _q(e,n=>e.moveVertically(n,t,iq(e).height))}var Aq=e=>kq(e,!1),jq=e=>kq(e,!0),Mq=e=>_q(e,t=>cq(e,t,!0)),Nq=e=>_q(e,t=>cq(e,t,!1)),Pq=e=>_q(e,t=>cq(e,t,!GK(e))),Fq=e=>_q(e,t=>cq(e,t,GK(e))),Iq=e=>_q(e,t=>F.cursor(e.lineBlockAt(t.head).from)),Lq=e=>_q(e,t=>F.cursor(e.lineBlockAt(t.head).to)),Rq=({state:e,dispatch:t})=>(t(VK(e,{anchor:0})),!0),zq=({state:e,dispatch:t})=>(t(VK(e,{anchor:e.doc.length})),!0),Bq=({state:e,dispatch:t})=>(t(VK(e,{anchor:e.selection.main.anchor,head:0})),!0),Vq=({state:e,dispatch:t})=>(t(VK(e,{anchor:e.selection.main.anchor,head:e.doc.length})),!0),Hq=({state:e,dispatch:t})=>(t(e.update({selection:{anchor:0,head:e.doc.length},userEvent:`select`})),!0),Uq=({state:e,dispatch:t})=>{let n=cJ(e).map(({from:t,to:n})=>F.range(t,Math.min(n+1,e.doc.length)));return t(e.update({selection:F.create(n),userEvent:`select`})),!0},Wq=({state:e,dispatch:t})=>{let n=BK(e.selection,t=>{let n=d(e),r=n.resolveStack(t.from,1);if(t.empty){let e=n.resolveStack(t.from,-1);e.node.from>=r.node.from&&e.node.to<=r.node.to&&(r=e)}for(let e=r;e;e=e.next){let{node:n}=e;if((n.from<t.from&&n.to>=t.to||n.to>t.to&&n.from<=t.from)&&e.next)return F.range(n.to,n.from)}return t});return n.eq(e.selection)?!1:(t(VK(e,n)),!0)};function Gq(e,t){let{state:n}=e,r=n.selection,i=n.selection.ranges.slice();for(let r of n.selection.ranges){let a=n.doc.lineAt(r.head);if(t?a.to<e.state.doc.length:a.from>0)for(let n=r;;){let r=e.moveVertically(n,t);if(r.head<a.from||r.head>a.to){i.some(e=>e.head==r.head)||i.push(r);break}else if(r.head==n.head)break;else n=r}}return i.length==r.ranges.length?!1:(e.dispatch(VK(n,F.create(i,i.length-1))),!0)}var Kq=e=>Gq(e,!1),qq=e=>Gq(e,!0),Jq=({state:e,dispatch:t})=>{let n=e.selection,r=null;return n.ranges.length>1?r=F.create([n.main]):n.main.empty||(r=F.create([F.cursor(n.main.head)])),r?(t(VK(e,r)),!0):!1};function Yq(e,t){if(e.state.readOnly)return!1;let n=`delete.selection`,{state:r}=e,i=r.changeByRange(r=>{let{from:i,to:a}=r;if(i==a){let o=t(r);o<i?(n=`delete.backward`,o=Xq(e,o,!1)):o>i&&(n=`delete.forward`,o=Xq(e,o,!0)),i=Math.min(i,o),a=Math.max(a,o)}else i=Xq(e,i,!1),a=Xq(e,a,!0);return i==a?{range:r}:{changes:{from:i,to:a},range:F.cursor(i,i<r.head?-1:1)}});return i.changes.empty?!1:(e.dispatch(r.update(i,{scrollIntoView:!0,userEvent:n,effects:n==`delete.selection`?N.announce.of(r.phrase(`Selection deleted`)):void 0})),!0)}function Xq(e,t,n){if(e instanceof N)for(let r of e.state.facet(N.atomicRanges).map(t=>t(e)))r.between(t,t,(e,r)=>{e<t&&r>t&&(t=n?r:e)});return t}var Zq=(e,t,n)=>Yq(e,r=>{let a=r.from,{state:o}=e,s=o.doc.lineAt(a),c,l;if(n&&!t&&a>s.from&&a<s.from+200&&!/[^ \t]/.test(c=s.text.slice(0,a-s.from))){if(c[c.length-1]==` `)return a-1;let e=it(c,o.tabSize)%M(o)||M(o);for(let t=0;t<e&&c[c.length-1-t]==` `;t++)a--;l=a}else l=i(s.text,a-s.from,t,t)+s.from,l==a&&s.number!=(t?o.doc.lines:1)?l+=t?1:-1:!t&&/[\ufe00-\ufe0f]/.test(s.text.slice(l-s.from,a-s.from))&&(l=i(s.text,l-s.from,!1,!1)+s.from);return l}),Qq=e=>Zq(e,!1,!0),$q=e=>Zq(e,!0,!1),eJ=(e,t)=>Yq(e,n=>{let r=n.head,{state:a}=e,o=a.doc.lineAt(r),s=a.charCategorizer(r);for(let e=null;;){if(r==(t?o.to:o.from)){r==n.head&&o.number!=(t?a.doc.lines:1)&&(r+=t?1:-1);break}let c=i(o.text,r-o.from,t)+o.from,l=o.text.slice(Math.min(r,c)-o.from,Math.max(r,c)-o.from),u=s(l);if(e!=null&&u!=e)break;(l!=` `||r!=n.head)&&(e=u),r=c}return r}),tJ=e=>eJ(e,!1),nJ=e=>eJ(e,!0),rJ=e=>Yq(e,t=>{let n=e.lineBlockAt(t.head).to;return t.head<n?n:Math.min(e.state.doc.length,t.head+1)}),iJ=e=>Yq(e,t=>{let n=e.moveToLineBoundary(t,!1).head;return t.head>n?n:Math.max(0,t.head-1)}),aJ=e=>Yq(e,t=>{let n=e.moveToLineBoundary(t,!0).head;return t.head<n?n:Math.min(e.state.doc.length,t.head+1)}),oJ=({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange(e=>({changes:{from:e.from,to:e.to,insert:D.of([``,``])},range:F.cursor(e.from)}));return t(e.update(n,{scrollIntoView:!0,userEvent:`input`})),!0},sJ=({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange(t=>{if(!t.empty||t.from==0||t.from==e.doc.length)return{range:t};let n=t.from,r=e.doc.lineAt(n),a=n==r.from?n-1:i(r.text,n-r.from,!1)+r.from,o=n==r.to?n+1:i(r.text,n-r.from,!0)+r.from;return{changes:{from:a,to:o,insert:e.doc.slice(n,o).append(e.doc.slice(a,n))},range:F.cursor(o)}});return n.changes.empty?!1:(t(e.update(n,{scrollIntoView:!0,userEvent:`move.character`})),!0)};function cJ(e){let t=[],n=-1;for(let r of e.selection.ranges){let i=e.doc.lineAt(r.from),a=e.doc.lineAt(r.to);if(!r.empty&&r.to==a.from&&(a=e.doc.lineAt(r.to-1)),n>=i.number){let e=t[t.length-1];e.to=a.to,e.ranges.push(r)}else t.push({from:i.from,to:a.to,ranges:[r]});n=a.number+1}return t}function lJ(e,t,n){if(e.readOnly)return!1;let r=[],i=[];for(let t of cJ(e)){if(n?t.to==e.doc.length:t.from==0)continue;let a=e.doc.lineAt(n?t.to+1:t.from-1),o=a.length+1;if(n){r.push({from:t.to,to:a.to},{from:t.from,insert:a.text+e.lineBreak});for(let n of t.ranges)i.push(F.range(Math.min(e.doc.length,n.anchor+o),Math.min(e.doc.length,n.head+o)))}else{r.push({from:a.from,to:t.from},{from:t.to,insert:e.lineBreak+a.text});for(let e of t.ranges)i.push(F.range(e.anchor-o,e.head-o))}}return r.length?(t(e.update({changes:r,scrollIntoView:!0,selection:F.create(i,e.selection.mainIndex),userEvent:`move.line`})),!0):!1}var uJ=({state:e,dispatch:t})=>lJ(e,t,!1),dJ=({state:e,dispatch:t})=>lJ(e,t,!0);function fJ(e,t,n){if(e.readOnly)return!1;let r=[];for(let t of cJ(e))n?r.push({from:t.from,insert:e.doc.slice(t.from,t.to)+e.lineBreak}):r.push({from:t.to,insert:e.lineBreak+e.doc.slice(t.from,t.to)});let i=e.changes(r);return t(e.update({changes:i,selection:e.selection.map(i,n?1:-1),scrollIntoView:!0,userEvent:`input.copyline`})),!0}var pJ=({state:e,dispatch:t})=>fJ(e,t,!1),mJ=({state:e,dispatch:t})=>fJ(e,t,!0),hJ=e=>{if(e.state.readOnly)return!1;let{state:t}=e,n=t.changes(cJ(t).map(({from:e,to:n})=>(e>0?e--:n<t.doc.length&&n++,{from:e,to:n}))),r=BK(t.selection,t=>{let n;if(e.lineWrapping){let r=e.lineBlockAt(t.head),i=e.coordsAtPos(t.head,t.assoc||1);i&&(n=r.bottom+e.documentTop-i.bottom+e.defaultLineHeight/2)}return e.moveVertically(t,!0,n)}).map(n);return e.dispatch({changes:n,selection:r,scrollIntoView:!0,userEvent:`delete.line`}),!0};function gJ(e,t){if(/\(\)|\[\]|\{\}/.test(e.sliceDoc(t-1,t+1)))return{from:t,to:t};let n=d(e).resolveInner(t),i=n.childBefore(t),a=n.childAfter(t),o;return i&&a&&i.to<=t&&a.from>=t&&(o=i.type.prop(r.closedBy))&&o.indexOf(a.name)>-1&&e.doc.lineAt(i.to).from==e.doc.lineAt(a.from).from&&!/\S/.test(e.sliceDoc(i.to,a.from))?{from:i.to,to:a.from}:null}var _J=yJ(!1),vJ=yJ(!0);function yJ(e){return({state:t,dispatch:n})=>{if(t.readOnly)return!1;let r=t.changeByRange(n=>{let{from:r,to:i}=n,a=t.doc.lineAt(r),o=!e&&r==i&&gJ(t,r);e&&(r=i=(i<=a.to?a:t.doc.lineAt(i)).to);let s=new Le(t,{simulateBreak:r,simulateDoubleBreak:!!o}),c=l(s,r);for(c??=it(/^\s*/.exec(t.doc.lineAt(r).text)[0],t.tabSize);i<a.to&&/\s/.test(a.text[i-a.from]);)i++;o?{from:r,to:i}=o:r>a.from&&r<a.from+100&&!/\S/.test(a.text.slice(0,r))&&(r=a.from);let u=[``,Ae(t,c)];return o&&u.push(Ae(t,s.lineIndent(a.from,-1))),{changes:{from:r,to:i,insert:D.of(u)},range:F.cursor(r+1+u[1].length)}});return n(t.update(r,{scrollIntoView:!0,userEvent:`input`})),!0}}function bJ(e,t){let n=-1;return e.changeByRange(r=>{let i=[];for(let a=r.from;a<=r.to;){let o=e.doc.lineAt(a);o.number>n&&(r.empty||r.to>o.from)&&(t(o,i,r),n=o.number),a=o.to+1}let a=e.changes(i);return{changes:i,range:F.range(a.mapPos(r.anchor,1),a.mapPos(r.head,1))}})}var xJ=({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=Object.create(null),r=new Le(e,{overrideIndentation:e=>n[e]??-1}),i=bJ(e,(t,i,a)=>{let o=l(r,t.from);if(o==null)return;/\S/.test(t.text)||(o=0);let s=/^\s*/.exec(t.text)[0],c=Ae(e,o);(s!=c||a.from<t.from+s.length)&&(n[t.from]=o,i.push({from:t.from,to:t.from+s.length,insert:c}))});return i.changes.empty||t(e.update(i,{userEvent:`indent`})),!0},SJ=({state:e,dispatch:n})=>e.readOnly?!1:(n(e.update(bJ(e,(n,r)=>{r.push({from:n.from,insert:e.facet(t)})}),{userEvent:`input.indent`})),!0),CJ=({state:e,dispatch:t})=>e.readOnly?!1:(t(e.update(bJ(e,(t,n)=>{let r=/^\s*/.exec(t.text)[0];if(!r)return;let i=it(r,e.tabSize),a=0,o=Ae(e,Math.max(0,i-M(e)));for(;a<r.length&&a<o.length&&r.charCodeAt(a)==o.charCodeAt(a);)a++;n.push({from:t.from+a,to:t.from+r.length,insert:o.slice(a)})}),{userEvent:`delete.dedent`})),!0),wJ=e=>(e.setTabFocusMode(),!0),TJ=[{key:`Ctrl-b`,run:KK,shift:yq,preventDefault:!0},{key:`Ctrl-f`,run:qK,shift:bq},{key:`Ctrl-p`,run:nq,shift:Dq},{key:`Ctrl-n`,run:rq,shift:Oq},{key:`Ctrl-a`,run:pq,shift:Iq},{key:`Ctrl-e`,run:mq,shift:Lq},{key:`Ctrl-d`,run:$q},{key:`Ctrl-h`,run:Qq},{key:`Ctrl-k`,run:rJ},{key:`Ctrl-Alt-h`,run:tJ},{key:`Ctrl-o`,run:oJ},{key:`Ctrl-t`,run:sJ},{key:`Ctrl-v`,run:sq}],EJ=[{key:`ArrowLeft`,run:KK,shift:yq,preventDefault:!0},{key:`Mod-ArrowLeft`,mac:`Alt-ArrowLeft`,run:YK,shift:Sq,preventDefault:!0},{mac:`Cmd-ArrowLeft`,run:dq,shift:Pq,preventDefault:!0},{key:`ArrowRight`,run:qK,shift:bq,preventDefault:!0},{key:`Mod-ArrowRight`,mac:`Alt-ArrowRight`,run:XK,shift:Cq,preventDefault:!0},{mac:`Cmd-ArrowRight`,run:fq,shift:Fq,preventDefault:!0},{key:`ArrowUp`,run:nq,shift:Dq,preventDefault:!0},{mac:`Cmd-ArrowUp`,run:Rq,shift:Bq},{mac:`Ctrl-ArrowUp`,run:oq,shift:Aq},{key:`ArrowDown`,run:rq,shift:Oq,preventDefault:!0},{mac:`Cmd-ArrowDown`,run:zq,shift:Vq},{mac:`Ctrl-ArrowDown`,run:sq,shift:jq},{key:`PageUp`,run:oq,shift:Aq},{key:`PageDown`,run:sq,shift:jq},{key:`Home`,run:uq,shift:Nq,preventDefault:!0},{key:`Mod-Home`,run:Rq,shift:Bq},{key:`End`,run:lq,shift:Mq,preventDefault:!0},{key:`Mod-End`,run:zq,shift:Vq},{key:`Enter`,run:_J,shift:_J},{key:`Mod-a`,run:Hq},{key:`Backspace`,run:Qq,shift:Qq,preventDefault:!0},{key:`Delete`,run:$q,preventDefault:!0},{key:`Mod-Backspace`,mac:`Alt-Backspace`,run:tJ,preventDefault:!0},{key:`Mod-Delete`,mac:`Alt-Delete`,run:nJ,preventDefault:!0},{mac:`Mod-Backspace`,run:iJ,preventDefault:!0},{mac:`Mod-Delete`,run:aJ,preventDefault:!0}].concat(TJ.map(e=>({mac:e.key,run:e.run,shift:e.shift}))),DJ=[{key:`Alt-ArrowLeft`,mac:`Ctrl-ArrowLeft`,run:$K,shift:wq},{key:`Alt-ArrowRight`,mac:`Ctrl-ArrowRight`,run:eq,shift:Tq},{key:`Alt-ArrowUp`,run:uJ},{key:`Shift-Alt-ArrowUp`,run:pJ},{key:`Alt-ArrowDown`,run:dJ},{key:`Shift-Alt-ArrowDown`,run:mJ},{key:`Mod-Alt-ArrowUp`,run:Kq},{key:`Mod-Alt-ArrowDown`,run:qq},{key:`Escape`,run:Jq},{key:`Mod-Enter`,run:vJ},{key:`Alt-l`,mac:`Ctrl-l`,run:Uq},{key:`Mod-i`,run:Wq,preventDefault:!0},{key:`Mod-[`,run:CJ},{key:`Mod-]`,run:SJ},{key:`Mod-Alt-\\`,run:xJ},{key:`Shift-Mod-k`,run:hJ},{key:`Shift-Mod-\\`,run:gq},{key:`Mod-/`,run:iK},{key:`Alt-A`,run:sK},{key:`Ctrl-m`,mac:`Shift-Alt-m`,run:wJ}].concat(EJ),OJ={key:`Tab`,run:SJ,shift:CJ},kJ=135,AJ=1,jJ=136,MJ=137,NJ=2,PJ=138,FJ=3,IJ=4,LJ=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],RJ=58,zJ=40,BJ=95,VJ=91,HJ=45,UJ=46,WJ=35,GJ=37,KJ=38,qJ=92,JJ=10,YJ=42;function XJ(e){return e>=65&&e<=90||e>=97&&e<=122||e>=161}function ZJ(e){return e>=48&&e<=57}function QJ(e){return ZJ(e)||e>=97&&e<=102||e>=65&&e<=70}var $J=(e,t,n)=>(r,i)=>{for(let a=!1,o=0,s=0;;s++){let{next:c}=r;if(XJ(c)||c==HJ||c==BJ||a&&ZJ(c))!a&&(c!=HJ||s>0)&&(a=!0),o===s&&c==HJ&&o++,r.advance();else if(c==qJ&&r.peek(1)!=JJ){if(r.advance(),QJ(r.next)){do r.advance();while(QJ(r.next));r.next==32&&r.advance()}else r.next>-1&&r.advance();a=!0}else{a&&r.acceptToken(o==2&&i.canShift(NJ)?t:c==zJ?n:e);break}}},eY=new Fe($J(jJ,NJ,MJ),{contextual:!0}),tY=new Fe($J(PJ,FJ,IJ),{contextual:!0}),nY=new Fe(e=>{if(LJ.includes(e.peek(-1))){let{next:t}=e;(XJ(t)||t==BJ||t==WJ||t==UJ||t==YJ||t==VJ||t==RJ&&XJ(e.peek(1))||t==HJ||t==KJ)&&e.acceptToken(kJ)}}),rY=new Fe(e=>{if(!LJ.includes(e.peek(-1))){let{next:t}=e;if(t==GJ&&(e.advance(),e.acceptToken(AJ)),XJ(t)){do e.advance();while(XJ(e.next)||ZJ(e.next));e.acceptToken(AJ)}}}),iY=y({"AtKeyword import charset namespace keyframes media supports font-feature-values":k.definitionKeyword,"from to selector scope MatchFlag":k.keyword,NamespaceName:k.namespace,KeyframeName:k.labelName,KeyframeRangeName:k.operatorKeyword,TagName:k.tagName,ClassName:k.className,PseudoClassName:k.constant(k.className),IdName:k.labelName,"FeatureName PropertyName":k.propertyName,AttributeName:k.attributeName,NumberLiteral:k.number,KeywordQuery:k.keyword,UnaryQueryOp:k.operatorKeyword,"CallTag ValueName FontName":k.atom,VariableName:k.variableName,Callee:k.operatorKeyword,Unit:k.unit,"UniversalSelector NestingSelector":k.definitionOperator,"MatchOp CompareOp":k.compareOperator,"ChildOp SiblingOp, LogicOp":k.logicOperator,BinOp:k.arithmeticOperator,Important:k.modifier,Comment:k.blockComment,ColorLiteral:k.color,"ParenthesizedContent StringLiteral":k.string,":":k.punctuation,"PseudoOp #":k.derefOperator,"; , |":k.separator,"( )":k.paren,"[ ]":k.squareBracket,"{ }":k.brace}),aY={__proto__:null,lang:44,"nth-child":44,"nth-last-child":44,"nth-of-type":44,"nth-last-of-type":44,dir:44,"host-context":44,if:90,url:132,"url-prefix":132,domain:132,regexp:132},oY={__proto__:null,or:104,and:104,not:112,only:112,layer:186},sY={__proto__:null,selector:118,layer:182},cY={__proto__:null,"@import":178,"@media":190,"@charset":194,"@namespace":198,"@keyframes":204,"@supports":216,"@scope":220,"@font-feature-values":226},lY={__proto__:null,to:223},uY=He.deserialize({version:14,states:"IpQYQdOOO#}QdOOP$UO`OOO%OQaO'#CfOOQP'#Ce'#CeO%VQdO'#CgO%[Q`O'#CgO%aQaO'#FdO&XQdO'#CkO&xQaO'#CcO'SQdO'#CnO'_QdO'#DtO'dQdO'#DvO'oQdO'#D}O'oQdO'#EQOOQP'#Fd'#FdO)OQhO'#EsOOQS'#Fc'#FcOOQS'#Ev'#EvQYQdOOO)VQdO'#EWO*cQhO'#E^O)VQdO'#E`O*jQdO'#EbO*uQdO'#EeO)zQhO'#EkO*}QdO'#EmO+YQdO'#EpO+_QaO'#CfO+fQ`O'#ETO+kQ`O'#FnO+vQdO'#FnQOQ`OOP,QO&jO'#CaPOOO)CAR)CAROOQP'#Ci'#CiOOQP,59R,59RO%VQdO,59ROOQP'#Cm'#CmOOQP,59V,59VO&XQdO,59V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P&wR#XkQ#_qR%Q#_QcOSoP!RU!kco$}R$}#ZQ%Z#pY&`%Z&f'U'^'sQ&f%_Q'U&aQ'^&kR's'kQ$Y!mQ$[!nQ$^!oV%j$Y$[$^Q%t$gR&t%tQ&j%gS']&j'lR'l'^Q&b%ZR'V&bQ&^%WR'T&^Q!QXR#l!QQ&W$yR'O&WQ#[nS%O#[%PR%P#]Q'`&nR'n'`Q$k!xR%x$kQ&P$pR&z&PQ&x&OR'g&xQ#WkR$w#WQ$O!dR%d$O_bOPco!R#Z$}^XOPco!R#Z$}Q!`]Q!a^Q#h|Q#i}Q#j!OQ#k!PQ$s#RQ%W#oR'S&]R%[#pQ!qdQ!zf[$V!m!n!o$Y$[$^Q$y#Yd%Y#p%Z%_&a&f&k'U'^'k'sQ%^#uQ%n$aS&U$y&WQ&[%UQ&}&VR'b&p]$X!m!n!o$Y$[$^Q!d`U!xe!q$eQ#QiQ#x!cS#{!d$OQ$Q!eQ%b#|Q%c#}Q%g$RS%r$g%tQ%w$jR'Z&iQ#z!cQ&h%`R'j'YR%i$RR%X#oQpPR#n!RQ!yeQ$d!qR%q$e",nodeNames:`⚠ Unit VariableName VariableName QueryCallee Comment StyleSheet RuleSet UniversalSelector TagSelector TagName NamespacedTagSelector NamespaceName TagName NestingSelector ClassSelector . ClassName PseudoClassSelector : :: PseudoClassName PseudoClassName ) ( ArgList ValueName ParenthesizedValue AtKeyword # ; ] [ BracketedValue } { BracedValue ColorLiteral NumberLiteral StringLiteral BinaryExpression BinOp CallExpression Callee IfExpression if ArgList IfBranch KeywordQuery FeatureQuery FeatureName BinaryQuery LogicOp ComparisonQuery CompareOp UnaryQuery UnaryQueryOp ParenthesizedQuery SelectorQuery selector ParenthesizedSelector CallQuery ArgList , PseudoQuery CallLiteral CallTag ParenthesizedContent PseudoClassName ArgList IdSelector IdName AttributeSelector AttributeName NamespacedAttribute NamespaceName AttributeName MatchOp MatchFlag ChildSelector ChildOp DescendantSelector SiblingSelector SiblingOp Block Declaration PropertyName Important ImportStatement import Layer layer LayerName layer MediaStatement media CharsetStatement charset NamespaceStatement namespace NamespaceName KeyframesStatement keyframes KeyframeName KeyframeList KeyframeSelector KeyframeRangeName SupportsStatement supports ScopeStatement scope to FontFeatureStatement font-feature-values FontName AtRule Styles`,maxTerm:159,nodeProps:[[`isolate`,-2,5,39,``],[`openedBy`,23,`(`,31,`[`,34,`{`],[`closedBy`,24,`)`,32,`]`,35,`}`]],propSources:[iY],skippedNodes:[0,5,117],repeatNodeCount:17,tokenData:"K`~R!bOX%ZX^&R^p%Zpq&Rqr)ers)vst+jtu2Xuv%Zvw3Rwx3dxy5Ryz5dz{5i{|6S|}:u}!O;W!O!P;u!P!Q<^!Q![=V![!]>Q!]!^>|!^!_?_!_!`@Z!`!a@n!a!b%Z!b!cAo!c!k%Z!k!lC|!l!u%Z!u!vC|!v!}%Z!}#OD_#O#P%Z#P#QDp#Q#R2X#R#]%Z#]#^ER#^#g%Z#g#hC|#h#o%Z#o#pIf#p#qIw#q#rJ`#r#sJq#s#y%Z#y#z&R#z$f%Z$f$g&R$g#BY%Z#BY#BZ&R#BZ$IS%Z$IS$I_&R$I_$I|%Z$I|$JO&R$JO$JT%Z$JT$JU&R$JU$KV%Z$KV$KW&R$KW&FU%Z&FU&FV&R&FV;'S%Z;'S;=`KY<%lO%Z`%^SOy%jz;'S%j;'S;=`%{<%lO%j`%oS!e`Oy%jz;'S%j;'S;=`%{<%lO%j`&OP;=`<%l%j~&Wh$Q~OX%jX^'r^p%jpq'rqy%jz#y%j#y#z'r#z$f%j$f$g'r$g#BY%j#BY#BZ'r#BZ$IS%j$IS$I_'r$I_$I|%j$I|$JO'r$JO$JT%j$JT$JU'r$JU$KV%j$KV$KW'r$KW&FU%j&FU&FV'r&FV;'S%j;'S;=`%{<%lO%j~'yh$Q~!e`OX%jX^'r^p%jpq'rqy%jz#y%j#y#z'r#z$f%j$f$g'r$g#BY%j#BY#BZ'r#BZ$IS%j$IS$I_'r$I_$I|%j$I|$JO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,142)],topRules:{StyleSheet:[0,6],Styles:[1,116]},dynamicPrecedences:{84:1},specialized:[{term:137,get:e=>aY[e]||-1},{term:138,get:e=>oY[e]||-1},{term:4,get:e=>sY[e]||-1},{term:28,get:e=>cY[e]||-1},{term:136,get:e=>lY[e]||-1}],tokenPrec:2256}),dY=ft({css:()=>OY,cssCompletionSource:()=>EY,cssLanguage:()=>DY,defineCSSCompletionSource:()=>TY}),fY=null;function pY(){if(!fY&&typeof document==`object`&&document.body){let{style:e}=document.body,t=[],n=new Set;for(let r in e)r!=`cssText`&&r!=`cssFloat`&&typeof e[r]==`string`&&(/[A-Z]/.test(r)&&(r=r.replace(/[A-Z]/g,e=>`-`+e.toLowerCase())),n.has(r)||(t.push(r),n.add(r)));fY=t.sort().map(e=>({type:`property`,label:e,apply:e+`: `}))}return fY||[]}var mY=`active.after.any-link.autofill.backdrop.before.checked.cue.default.defined.disabled.empty.enabled.file-selector-button.first.first-child.first-letter.first-line.first-of-type.focus.focus-visible.focus-within.fullscreen.has.host.host-context.hover.in-range.indeterminate.invalid.is.lang.last-child.last-of-type.left.link.marker.modal.not.nth-child.nth-last-child.nth-last-of-type.nth-of-type.only-child.only-of-type.optional.out-of-range.part.placeholder.placeholder-shown.read-only.read-write.required.right.root.scope.selection.slotted.target.target-text.valid.visited.where`.split(`.`).map(e=>({type:`class`,label:e})),hY=`above.absolute.activeborder.additive.activecaption.after-white-space.ahead.alias.all.all-scroll.alphabetic.alternate.always.antialiased.appworkspace.asterisks.attr.auto.auto-flow.avoid.avoid-column.avoid-page.avoid-region.axis-pan.background.backwards.baseline.below.bidi-override.blink.block.block-axis.bold.bolder.border.border-box.both.bottom.break.break-all.break-word.bullets.button.button-bevel.buttonface.buttonhighlight.buttonshadow.buttontext.calc.capitalize.caps-lock-indicator.caption.captiontext.caret.cell.center.checkbox.circle.cjk-decimal.clear.clip.close-quote.col-resize.collapse.color.color-burn.color-dodge.column.column-reverse.compact.condensed.contain.content.contents.content-box.context-menu.continuous.copy.counter.counters.cover.crop.cross.crosshair.currentcolor.cursive.cyclic.darken.dashed.decimal.decimal-leading-zero.default.default-button.dense.destination-atop.destination-in.destination-out.destination-over.difference.disc.discard.disclosure-closed.disclosure-open.document.dot-dash.dot-dot-dash.dotted.double.down.e-resize.ease.ease-in.ease-in-out.ease-out.element.ellipse.ellipsis.embed.end.ethiopic-abegede-gez.ethiopic-halehame-aa-er.ethiopic-halehame-gez.ew-resize.exclusion.expanded.extends.extra-condensed.extra-expanded.fantasy.fast.fill.fill-box.fixed.flat.flex.flex-end.flex-start.footnotes.forwards.from.geometricPrecision.graytext.grid.groove.hand.hard-light.help.hidden.hide.higher.highlight.highlighttext.horizontal.hsl.hsla.hue.icon.ignore.inactiveborder.inactivecaption.inactivecaptiontext.infinite.infobackground.infotext.inherit.initial.inline.inline-axis.inline-block.inline-flex.inline-grid.inline-table.inset.inside.intrinsic.invert.italic.justify.keep-all.landscape.large.larger.left.level.lighter.lighten.line-through.linear.linear-gradient.lines.list-item.listbox.listitem.local.logical.loud.lower.lower-hexadecimal.lower-latin.lower-norwegian.lowercase.ltr.luminosity.manipulation.match.matrix.matrix3d.medium.menu.menutext.message-box.middle.min-intrinsic.mix.monospace.move.multiple.multiple_mask_images.multiply.n-resize.narrower.ne-resize.nesw-resize.no-close-quote.no-drop.no-open-quote.no-repeat.none.normal.not-allowed.nowrap.ns-resize.numbers.numeric.nw-resize.nwse-resize.oblique.opacity.open-quote.optimizeLegibility.optimizeSpeed.outset.outside.outside-shape.overlay.overline.padding.padding-box.painted.page.paused.perspective.pinch-zoom.plus-darker.plus-lighter.pointer.polygon.portrait.pre.pre-line.pre-wrap.preserve-3d.progress.push-button.radial-gradient.radio.read-only.read-write.read-write-plaintext-only.rectangle.region.relative.repeat.repeating-linear-gradient.repeating-radial-gradient.repeat-x.repeat-y.reset.reverse.rgb.rgba.ridge.right.rotate.rotate3d.rotateX.rotateY.rotateZ.round.row.row-resize.row-reverse.rtl.run-in.running.s-resize.sans-serif.saturation.scale.scale3d.scaleX.scaleY.scaleZ.screen.scroll.scrollbar.scroll-position.se-resize.self-start.self-end.semi-condensed.semi-expanded.separate.serif.show.single.skew.skewX.skewY.skip-white-space.slide.slider-horizontal.slider-vertical.sliderthumb-horizontal.sliderthumb-vertical.slow.small.small-caps.small-caption.smaller.soft-light.solid.source-atop.source-in.source-out.source-over.space.space-around.space-between.space-evenly.spell-out.square.start.static.status-bar.stretch.stroke.stroke-box.sub.subpixel-antialiased.svg_masks.super.sw-resize.symbolic.symbols.system-ui.table.table-caption.table-cell.table-column.table-column-group.table-footer-group.table-header-group.table-row.table-row-group.text.text-bottom.text-top.textarea.textfield.thick.thin.threeddarkshadow.threedface.threedhighlight.threedlightshadow.threedshadow.to.top.transform.translate.translate3d.translateX.translateY.translateZ.transparent.ultra-condensed.ultra-expanded.underline.unidirectional-pan.unset.up.upper-latin.uppercase.url.var.vertical.vertical-text.view-box.visible.visibleFill.visiblePainted.visibleStroke.visual.w-resize.wait.wave.wider.window.windowframe.windowtext.words.wrap.wrap-reverse.x-large.x-small.xor.xx-large.xx-small`.split(`.`).map(e=>({type:`keyword`,label:e})).concat(`aliceblue.antiquewhite.aqua.aquamarine.azure.beige.bisque.black.blanchedalmond.blue.blueviolet.brown.burlywood.cadetblue.chartreuse.chocolate.coral.cornflowerblue.cornsilk.crimson.cyan.darkblue.darkcyan.darkgoldenrod.darkgray.darkgreen.darkkhaki.darkmagenta.darkolivegreen.darkorange.darkorchid.darkred.darksalmon.darkseagreen.darkslateblue.darkslategray.darkturquoise.darkviolet.deeppink.deepskyblue.dimgray.dodgerblue.firebrick.floralwhite.forestgreen.fuchsia.gainsboro.ghostwhite.gold.goldenrod.gray.grey.green.greenyellow.honeydew.hotpink.indianred.indigo.ivory.khaki.lavender.lavenderblush.lawngreen.lemonchiffon.lightblue.lightcoral.lightcyan.lightgoldenrodyellow.lightgray.lightgreen.lightpink.lightsalmon.lightseagreen.lightskyblue.lightslategray.lightsteelblue.lightyellow.lime.limegreen.linen.magenta.maroon.mediumaquamarine.mediumblue.mediumorchid.mediumpurple.mediumseagreen.mediumslateblue.mediumspringgreen.mediumturquoise.mediumvioletred.midnightblue.mintcream.mistyrose.moccasin.navajowhite.navy.oldlace.olive.olivedrab.orange.orangered.orchid.palegoldenrod.palegreen.paleturquoise.palevioletred.papayawhip.peachpuff.peru.pink.plum.powderblue.purple.rebeccapurple.red.rosybrown.royalblue.saddlebrown.salmon.sandybrown.seagreen.seashell.sienna.silver.skyblue.slateblue.slategray.snow.springgreen.steelblue.tan.teal.thistle.tomato.turquoise.violet.wheat.white.whitesmoke.yellow.yellowgreen`.split(`.`).map(e=>({type:`constant`,label:e}))),gY=`a.abbr.address.article.aside.b.bdi.bdo.blockquote.body.br.button.canvas.caption.cite.code.col.colgroup.dd.del.details.dfn.dialog.div.dl.dt.em.figcaption.figure.footer.form.header.hgroup.h1.h2.h3.h4.h5.h6.hr.html.i.iframe.img.input.ins.kbd.label.legend.li.main.meter.nav.ol.output.p.pre.ruby.section.select.small.source.span.strong.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.tr.u.ul`.split(`.`).map(e=>({type:`type`,label:e})),_Y=[`@charset`,`@color-profile`,`@container`,`@counter-style`,`@font-face`,`@font-feature-values`,`@font-palette-values`,`@import`,`@keyframes`,`@layer`,`@media`,`@namespace`,`@page`,`@position-try`,`@property`,`@scope`,`@starting-style`,`@supports`,`@view-transition`].map(e=>({type:`keyword`,label:e})),vY=/^(\w[\w-]*|-\w[\w-]*|)$/,yY=/^-(-[\w-]*)?$/;function bY(e,t){if((e.name==`(`||e.type.isError)&&(e=e.parent||e),e.name!=`ArgList`)return!1;let n=e.parent?.firstChild;return n?.name==`Callee`?t.sliceString(n.from,n.to)==`var`:!1}var xY=new re,SY=[`Declaration`];function CY(e){for(let t=e;;){if(t.type.isTop)return t;if(!(t=t.parent))return e}}function wY(e,t,n){if(t.to-t.from>4096){let r=xY.get(t);if(r)return r;let i=[],a=new Set,o=t.cursor(rt.IncludeAnonymous);if(o.firstChild())do for(let t of wY(e,o.node,n))a.has(t.label)||(a.add(t.label),i.push(t));while(o.nextSibling());return xY.set(t,i),i}else{let r=[],i=new Set;return t.cursor().iterate(t=>{if(n(t)&&t.matchContext(SY)&&t.node.nextSibling?.name==`:`){let n=e.sliceString(t.from,t.to);i.has(n)||(i.add(n),r.push({label:n,type:`variable`}))}}),r}}var TY=e=>t=>{let{state:n,pos:r}=t,i=d(n).resolveInner(r,-1),a=i.type.isError&&i.from==i.to-1&&n.doc.sliceString(i.from,i.to)==`-`;if(i.name==`PropertyName`||(a||i.name==`TagName`)&&/^(Block|Styles)$/.test(i.resolve(i.to).name))return{from:i.from,options:pY(),validFor:vY};if(i.name==`ValueName`)return{from:i.from,options:hY,validFor:vY};if(i.name==`PseudoClassName`)return{from:i.from,options:mY,validFor:vY};if(e(i)||(t.explicit||a)&&bY(i,n.doc))return{from:e(i)||a?i.from:r,options:wY(n.doc,CY(i),e),validFor:yY};if(i.name==`TagName`){for(let{parent:e}=i;e;e=e.parent)if(e.name==`Block`)return{from:i.from,options:pY(),validFor:vY};return{from:i.from,options:gY,validFor:vY}}if(i.name==`AtKeyword`)return{from:i.from,options:_Y,validFor:vY};if(!t.explicit)return null;let o=i.resolve(r),s=o.childBefore(r);return s&&s.name==`:`&&o.name==`PseudoClassSelector`?{from:r,options:mY,validFor:vY}:s&&s.name==`:`&&o.name==`Declaration`||o.name==`ArgList`?{from:r,options:hY,validFor:vY}:o.name==`Block`||o.name==`Styles`?{from:r,options:pY(),validFor:vY}:null},EY=TY(e=>e.name==`VariableName`),DY=We.define({name:`css`,parser:uY.configure({props:[s.add({Declaration:we()}),a.add({"Block KeyframeList":$e})]}),languageData:{commentTokens:{block:{open:`/*`,close:`*/`}},indentOnInput:/^\s*\}$/,wordChars:`-`}});function OY(){return new Je(DY,DY.data.of({autocomplete:EY}))}var kY=55,AY=1,jY=56,MY=2,NY=57,PY=3,FY=4,IY=5,LY=6,RY=7,zY=8,BY=9,VY=10,HY=11,UY=12,WY=13,GY=58,KY=14,qY=15,JY=59,YY=21,XY=23,ZY=24,QY=25,$Y=27,eX=28,tX=29,nX=32,rX=35,iX=37,aX=38,oX=0,sX=1,cX={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},lX={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},uX={dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}};function dX(e){return e==45||e==46||e==58||e>=65&&e<=90||e==95||e>=97&&e<=122||e>=161}var fX=null,pX=null,mX=0;function hX(e,t){let n=e.pos+t;if(mX==n&&pX==e)return fX;let r=e.peek(t),i=``;for(;dX(r);)i+=String.fromCharCode(r),r=e.peek(++t);return pX=e,mX=n,fX=i?i.toLowerCase():r==yX||r==bX?void 0:null}var gX=60,_X=62,vX=47,yX=63,bX=33,xX=45;function SX(e,t){this.name=e,this.parent=t}var CX=[LY,VY,RY,zY,BY],wX=new Ke({start:null,shift(e,t,n,r){return CX.indexOf(t)>-1?new SX(hX(r,1)||``,e):e},reduce(e,t){return t==YY&&e?e.parent:e},reuse(e,t,n,r){let i=t.type.id;return i==LY||i==iX?new SX(hX(r,1)||``,e):e},strict:!1}),TX=new Fe((e,t)=>{if(e.next!=gX){e.next<0&&t.context&&e.acceptToken(GY);return}e.advance();let n=e.next==vX;n&&e.advance();let r=hX(e,0);if(r===void 0)return;if(!r)return e.acceptToken(n?qY:KY);let i=t.context?t.context.name:null;if(n){if(r==i)return e.acceptToken(HY);if(i&&lX[i])return e.acceptToken(GY,-2);if(t.dialectEnabled(oX))return e.acceptToken(UY);for(let e=t.context;e;e=e.parent)if(e.name==r)return;e.acceptToken(WY)}else{if(r==`script`)return e.acceptToken(RY);if(r==`style`)return e.acceptToken(zY);if(r==`textarea`)return e.acceptToken(BY);if(cX.hasOwnProperty(r))return e.acceptToken(VY);i&&uX[i]&&uX[i][r]?e.acceptToken(GY,-1):e.acceptToken(LY)}},{contextual:!0}),EX=new Fe(e=>{for(let t=0,n=0;;n++){if(e.next<0){n&&e.acceptToken(JY);break}if(e.next==xX)t++;else if(e.next==_X&&t>=2){n>=3&&e.acceptToken(JY,-2);break}else t=0;e.advance()}});function DX(e){for(;e;e=e.parent)if(e.name==`svg`||e.name==`math`)return!0;return!1}var OX=new Fe((e,t)=>{if(e.next==vX&&e.peek(1)==_X){let n=t.dialectEnabled(sX)||DX(t.context);e.acceptToken(n?IY:FY,2)}else e.next==_X&&e.acceptToken(FY,1)});function kX(e,t,n){let r=2+e.length;return new Fe(i=>{for(let a=0,o=0,s=0;;s++){if(i.next<0){s&&i.acceptToken(t);break}if(a==0&&i.next==gX||a==1&&i.next==vX||a>=2&&a<r&&i.next==e.charCodeAt(a-2))a++,o++;else if(a==r&&i.next==_X){s>o?i.acceptToken(t,-o):i.acceptToken(n,-(o-2));break}else if((i.next==10||i.next==13)&&s){i.acceptToken(t,1);break}else a=o=0;i.advance()}})}var AX=kX(`script`,kY,AY),jX=kX(`style`,jY,MY),MX=kX(`textarea`,NY,PY),NX=y({"Text RawText IncompleteTag IncompleteCloseTag":k.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":k.angleBracket,TagName:k.tagName,"MismatchedCloseTag/TagName":[k.tagName,k.invalid],AttributeName:k.attributeName,"AttributeValue UnquotedAttributeValue":k.attributeValue,Is:k.definitionOperator,"EntityReference CharacterReference":k.character,Comment:k.blockComment,ProcessingInst:k.processingInstruction,DoctypeDecl:k.documentMeta}),PX=He.deserialize({version:14,states:",xOVO!rOOO!ZQ#tO'#CrO!`Q#tO'#C{O!eQ#tO'#DOO!jQ#tO'#DRO!oQ#tO'#DTO!tOaO'#CqO#PObO'#CqO#[OdO'#CqO$kO!rO'#CqOOO`'#Cq'#CqO$rO$fO'#DUO$zQ#tO'#DWO%PQ#tO'#DXOOO`'#Dl'#DlOOO`'#DZ'#DZQVO!rOOO%UQ&rO,59^O%aQ&rO,59gO%lQ&rO,59jO%wQ&rO,59mO&SQ&rO,59oOOOa'#D_'#D_O&_OaO'#CyO&jOaO,59]OOOb'#D`'#D`O&rObO'#C|O&}ObO,59]OOOd'#Da'#DaO'VOdO'#DPO'bOdO,59]OOO`'#Db'#DbO'jO!rO,59]O'qQ#tO'#DSOOO`,59],59]OOOp'#Dc'#DcO'vO$fO,59pOOO`,59p,59pO(OQ#|O,59rO(TQ#|O,59sOOO`-E7X-E7XO(YQ&rO'#CtOOQW'#D['#D[O(hQ&rO1G.xOOOa1G.x1G.xOOO`1G/Z1G/ZO(sQ&rO1G/ROOOb1G/R1G/RO)OQ&rO1G/UOOOd1G/U1G/UO)ZQ&rO1G/XOOO`1G/X1G/XO)fQ&rO1G/ZOOOa-E7]-E7]O)qQ#tO'#CzOOO`1G.w1G.wOOOb-E7^-E7^O)vQ#tO'#C}OOOd-E7_-E7_O){Q#tO'#DQOOO`-E7`-E7`O*QQ#|O,59nOOOp-E7a-E7aOOO`1G/[1G/[OOO`1G/^1G/^OOO`1G/_1G/_O*VQ,UO,59`OOQW-E7Y-E7YOOOa7+$d7+$dOOO`7+$u7+$uOOOb7+$m7+$mOOOd7+$p7+$pOOO`7+$s7+$sO*bQ#|O,59fO*gQ#|O,59iO*lQ#|O,59l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Q!S!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",nodeNames:`⚠ StartCloseTag StartCloseTag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl`,maxTerm:68,context:wX,nodeProps:[[`closedBy`,-10,1,2,3,7,8,9,10,11,12,13,`EndTag`,6,`EndTag SelfClosingEndTag`,-4,22,31,34,37,`CloseTag`],[`openedBy`,4,`StartTag StartCloseTag`,5,`StartTag`,-4,30,33,36,38,`OpenTag`],[`group`,-10,14,15,18,19,20,21,40,41,42,43,`Entity`,17,`Entity TextContent`,-3,29,32,35,`TextContent Entity`],[`isolate`,-11,22,30,31,33,34,36,37,38,39,42,43,`ltr`,-3,27,28,40,``]],propSources:[NX],skippedNodes:[0],repeatNodeCount:9,tokenData:"!<p!aR!YOX$qXY,QYZ,QZ[$q[]&X]^,Q^p$qpq,Qqr-_rs3_sv-_vw3}wxHYx}-_}!OH{!O!P-_!P!Q$q!Q![-_![!]Mz!]!^-_!^!_!$S!_!`!;x!`!a&X!a!c-_!c!}Mz!}#R-_#R#SMz#S#T1k#T#oMz#o#s-_#s$f$q$f%W-_%W%oMz%o%p-_%p&aMz&a&b-_&b1pMz1p4U-_4U4dMz4d4e-_4e$ISMz$IS$I`-_$I`$IbMz$Ib$Kh-_$Kh%#tMz%#t&/x-_&/x&EtMz&Et&FV-_&FV;'SMz;'S;:j!#|;:j;=`3X<%l?&r-_?&r?AhMz?Ah?BY$q?BY?MnMz?MnO$q!Z$|caPlW!b`!dpOX$qXZ&XZ[$q[^&X^p$qpq&X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noMatch:0,selfClosing:515},tokenPrec:517});function FX(e,t){let n=Object.create(null);for(let r of e.getChildren(ZY)){let e=r.getChild(QY),i=r.getChild($Y)||r.getChild(eX);e&&(n[t.read(e.from,e.to)]=i?i.type.id==$Y?t.read(i.from+1,i.to-1):t.read(i.from,i.to):``)}return n}function IX(e,t){let n=e.getChild(XY);return n?t.read(n.from,n.to):` `}function LX(e,t,n){let r;for(let i of n)if(!i.attrs||i.attrs(r||=FX(e.node.parent.firstChild,t)))return{parser:i.parser,bracketed:!0};return null}function RX(e=[],t=[]){let n=[],r=[],i=[],a=[];for(let t of e)(t.tag==`script`?n:t.tag==`style`?r:t.tag==`textarea`?i:a).push(t);let o=t.length?Object.create(null):null;for(let e of t)(o[e.name]||(o[e.name]=[])).push(e);return v((e,t)=>{let s=e.type.id;if(s==tX)return LX(e,t,n);if(s==nX)return LX(e,t,r);if(s==rX)return LX(e,t,i);if(s==YY&&a.length){let n=e.node,r=n.firstChild,i=r&&IX(r,t),o;if(i){for(let e of a)if(e.tag==i&&(!e.attrs||e.attrs(o||=FX(r,t)))){let t=n.lastChild,i=t.type.id==aX?t.from:n.to;if(i>r.to)return{parser:e.parser,overlay:[{from:r.to,to:i}]}}}}if(o&&s==ZY){let n=e.node,r;if(r=n.firstChild){let e=o[t.read(r.from,r.to)];if(e)for(let r of e){if(r.tagName&&r.tagName!=IX(n.parent,t))continue;let e=n.lastChild;if(e.type.id==$Y){let t=e.from+1,n=e.lastChild,i=e.to-(n&&n.isError?0:1);if(i>t)return{parser:r.parser,overlay:[{from:t,to:i}],bracketed:!0}}else if(e.type.id==eX)return{parser:r.parser,overlay:[{from:e.from,to:e.to}]}}}}return null})}var zX=316,BX=317,VX=1,HX=2,UX=3,WX=4,GX=318,KX=320,qX=321,JX=5,YX=6,XX=0,ZX=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],QX=125,$X=59,eZ=47,tZ=42,nZ=43,rZ=45,iZ=60,aZ=44,oZ=63,sZ=46,cZ=91,lZ=new Ke({start:!1,shift(e,t){return t==JX||t==YX||t==KX?e:t==qX},strict:!1}),uZ=new Fe((e,t)=>{let{next:n}=e;(n==QX||n==-1||t.context)&&e.acceptToken(GX)},{contextual:!0,fallback:!0}),dZ=new Fe((e,t)=>{let{next:n}=e,r;ZX.indexOf(n)>-1||n==eZ&&((r=e.peek(1))==eZ||r==tZ)||n!=QX&&n!=$X&&n!=-1&&!t.context&&e.acceptToken(zX)},{contextual:!0}),fZ=new Fe((e,t)=>{e.next==cZ&&!t.context&&e.acceptToken(BX)},{contextual:!0}),pZ=new Fe((e,t)=>{let{next:n}=e;if(n==nZ||n==rZ){if(e.advance(),n==e.next){e.advance();let n=!t.context&&t.canShift(VX);e.acceptToken(n?VX:HX)}}else n==oZ&&e.peek(1)==sZ&&(e.advance(),e.advance(),(e.next<48||e.next>57)&&e.acceptToken(UX))},{contextual:!0});function mZ(e,t){return e>=65&&e<=90||e>=97&&e<=122||e==95||e>=192||!t&&e>=48&&e<=57}var hZ=new Fe((e,t)=>{if(e.next!=iZ||!t.dialectEnabled(XX)||(e.advance(),e.next==eZ))return;let n=0;for(;ZX.indexOf(e.next)>-1;)e.advance(),n++;if(mZ(e.next,!0)){for(e.advance(),n++;mZ(e.next,!1);)e.advance(),n++;for(;ZX.indexOf(e.next)>-1;)e.advance(),n++;if(e.next==aZ)return;for(let t=0;;t++){if(t==7){if(!mZ(e.next,!0))return;break}if(e.next!=`extends`.charCodeAt(t))break;e.advance(),n++}}e.acceptToken(WX,-n)}),gZ=y({"get set async static":k.modifier,"for while do if else switch try catch finally return throw break continue default case defer":k.controlKeyword,"in of await yield void typeof delete instanceof as satisfies":k.operatorKeyword,"let var const using function class extends":k.definitionKeyword,"import export from":k.moduleKeyword,"with debugger new":k.keyword,TemplateString:k.special(k.string),super:k.atom,BooleanLiteral:k.bool,this:k.self,null:k.null,Star:k.modifier,VariableName:k.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":k.function(k.variableName),VariableDefinition:k.definition(k.variableName),Label:k.labelName,PropertyName:k.propertyName,PrivatePropertyName:k.special(k.propertyName),"CallExpression/MemberExpression/PropertyName":k.function(k.propertyName),"FunctionDeclaration/VariableDefinition":k.function(k.definition(k.variableName)),"ClassDeclaration/VariableDefinition":k.definition(k.className),"NewExpression/VariableName":k.className,PropertyDefinition:k.definition(k.propertyName),PrivatePropertyDefinition:k.definition(k.special(k.propertyName)),UpdateOp:k.updateOperator,"LineComment Hashbang":k.lineComment,BlockComment:k.blockComment,Number:k.number,String:k.string,Escape:k.escape,ArithOp:k.arithmeticOperator,LogicOp:k.logicOperator,BitOp:k.bitwiseOperator,CompareOp:k.compareOperator,RegExp:k.regexp,Equals:k.definitionOperator,Arrow:k.function(k.punctuation),": Spread":k.punctuation,"( )":k.paren,"[ ]":k.squareBracket,"{ }":k.brace,"InterpolationStart InterpolationEnd":k.special(k.brace),".":k.derefOperator,", ;":k.separator,"@":k.meta,TypeName:k.typeName,TypeDefinition:k.definition(k.typeName),"type enum interface implements namespace module declare":k.definitionKeyword,"abstract global Privacy readonly override":k.modifier,"is keyof unique infer asserts":k.operatorKeyword,JSXAttributeValue:k.attributeValue,JSXText:k.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":k.angleBracket,"JSXIdentifier JSXNameSpacedName":k.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":k.attributeName,"JSXBuiltin/JSXIdentifier":k.standard(k.tagName)}),_Z={__proto__:null,export:20,as:25,from:33,default:36,async:41,function:42,in:52,out:55,const:56,extends:60,this:64,true:72,false:72,null:84,void:88,typeof:92,super:108,new:142,delete:154,yield:163,await:167,class:172,public:235,private:235,protected:235,readonly:237,instanceof:256,satisfies:259,import:292,keyof:349,unique:353,infer:359,asserts:395,is:397,abstract:417,implements:419,type:421,let:424,var:426,using:429,interface:435,enum:439,namespace:445,module:447,declare:451,global:455,defer:471,for:476,of:485,while:488,with:492,do:496,if:500,else:502,switch:506,case:512,try:518,catch:522,finally:526,return:530,throw:534,break:538,continue:542,debugger:546},vZ={__proto__:null,async:129,get:131,set:133,declare:195,public:197,private:197,protected:197,static:199,abstract:201,override:203,readonly:209,accessor:211,new:401},yZ={__proto__:null,"<":193},bZ=He.deserialize({version:14,states:"$F|Q%TQlOOO%[QlOOO'_QpOOP(lO`OOO*zQ!0MxO'#CiO+RO#tO'#CjO+aO&jO'#CjO+oO#@ItO'#DaO.QQlO'#DgO.bQlO'#DrO%[QlO'#DzO0fQlO'#ESOOQ!0Lf'#E['#E[O1PQ`O'#EXOOQO'#Ep'#EpOOQO'#Il'#IlO1XQ`O'#GsO1dQ`O'#EoO1iQ`O'#EoO3hQ!0MxO'#JrO6[Q!0MxO'#JsO6uQ`O'#F]O6zQ,UO'#FtOOQ!0Lf'#Ff'#FfO7VO7dO'#FfO9XQMhO'#F|O9`Q`O'#F{OOQ!0Lf'#Js'#JsOOQ!0Lb'#Jr'#JrO9eQ`O'#GwOOQ['#K_'#K_O9pQ`O'#IYO9uQ!0LrO'#IZOOQ['#J`'#J`OOQ['#I_'#I_Q`QlOOQ`QlOOO9}Q!L^O'#DvO:UQlO'#EOO:]QlO'#EQO9kQ`O'#GsO:dQMhO'#CoO:rQ`O'#EnO:}Q`O'#EyO;hQMhO'#FeO;xQ`O'#GsOOQO'#K`'#K`O;}Q`O'#K`O<]Q`O'#G{O<]Q`O'#G|O<]Q`O'#HOO9kQ`O'#HRO=SQ`O'#HUO>kQ`O'#CeO>{Q`O'#HcO?TQ`O'#HiO?TQ`O'#HkO`QlO'#HmO?TQ`O'#HoO?TQ`O'#HrO?YQ`O'#HxO?_Q!0LsO'#IOO%[QlO'#IQO?jQ!0LsO'#ISO?uQ!0LsO'#IUO9uQ!0LrO'#IWO@QQ!0MxO'#CiOASQpO'#DlQOQ`OOO%[QlO'#EQOAjQ`O'#ETO:dQMhO'#EnOAuQ`O'#EnOBQQ!bO'#FeOOQ['#Cg'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&itmOXst!U!V!Z#d%m&i&r&t&u&w,s,x2[2_R,o&oT%lm,oR1k,XR,g&gQ&U|S+}&V&WR1^,OR+s&PT&p!W&sT&q!W&sT2^,x2_",nodeNames:`⚠ ArithOp ArithOp ?. JSXStartTag LineComment BlockComment Script Hashbang ExportDeclaration export Star as VariableName String Escape from ; default FunctionDeclaration async function VariableDefinition > < TypeParamList in out const TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewTarget new NewExpression ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression TypeArgList CompareOp < declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression InstantiationExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast < ArrowFunction TypeParamList SequenceExpression InstantiationExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate asserts is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration defer ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem`,maxTerm:380,context:lZ,nodeProps:[[`isolate`,-8,5,6,14,37,39,51,53,55,``],[`group`,-26,9,17,19,68,207,211,215,216,218,221,224,234,237,243,245,247,249,252,258,264,266,268,270,272,274,275,`Statement`,-34,13,14,32,35,36,42,51,54,55,57,62,70,72,76,80,82,84,85,110,111,120,121,136,139,141,142,143,144,145,147,148,167,169,171,`Expression`,-23,31,33,37,41,43,45,173,175,177,178,180,181,182,184,185,186,188,189,190,201,203,205,206,`Type`,-3,88,103,109,`ClassItem`],[`openedBy`,23,`<`,38,`InterpolationStart`,56,`[`,60,`{`,73,`(`,160,`JSXStartCloseTag`],[`closedBy`,-2,24,168,`>`,40,`InterpolationEnd`,50,`]`,61,`}`,74,`)`,165,`JSXEndTag`]],propSources:[gZ],skippedNodes:[0,5,6,278],repeatNodeCount:37,tokenData:"$Fq07[R!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tuEruvJSvwLkwx! Yxy!'iyz!(sz{!)}{|!,q|}!.O}!O!,q!O!P!/Y!P!Q!9j!Q!R#:O!R![#<_![!]#I_!]!^#Jk!^!_#Ku!_!`$![!`!a$$v!a!b$*T!b!c$,r!c!}Er!}#O$-|#O#P$/W#P#Q$4o#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zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$f%Z$f$g+g$g#BYEr#BY#BZ$A`#BZ$ISEr$IS$I_$A`$I_$JTEr$JT$JU$A`$JU$KVEr$KV$KW$A`$KW&FUEr&FU&FV$A`&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$A`?HUOEr07[$D|k$i&j(Wp(Z!b'}0/l$]#t(T,2j(e$I[OY%ZYZ&cZr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$g%Z$g;'SEr;'S;=`I|<%lOEr",tokenizers:[dZ,fZ,pZ,hZ,2,3,4,5,6,7,8,9,10,11,12,13,14,uZ,new Ee("$S~RRtu[#O#Pg#S#T#|~_P#o#pb~gOx~~jVO#i!P#i#j!U#j#l!P#l#m!q#m;'S!P;'S;=`#v<%lO!P~!UO!U~~!XS!Q![!e!c!i!e#T#Z!e#o#p#Z~!hR!Q![!q!c!i!q#T#Z!q~!tR!Q![!}!c!i!}#T#Z!}~#QR!Q![!P!c!i!P#T#Z!P~#^R!Q![#g!c!i#g#T#Z#g~#jS!Q![#g!c!i#g#T#Z#g#q#r!P~#yP;=`<%l!P~$RO(c~~",141,340),new Ee(`j~RQYZXz{^~^O(Q~~aP!P!Qd~iO(R~~`,25,323)],topRules:{Script:[0,7],SingleExpression:[1,276],SingleClassItem:[2,277]},dialects:{jsx:0,ts:15175},dynamicPrecedences:{80:1,82:1,94:1,169:1,199:1},specialized:[{term:327,get:e=>_Z[e]||-1},{term:343,get:e=>vZ[e]||-1},{term:95,get:e=>yZ[e]||-1}],tokenPrec:15201}),xZ=ft({autoCloseTags:()=>GZ,javascript:()=>VZ,javascriptLanguage:()=>NZ,jsxLanguage:()=>IZ,localCompletionSource:()=>MZ,snippets:()=>SZ,tsxLanguage:()=>LZ,typescriptLanguage:()=>FZ,typescriptSnippets:()=>CZ}),SZ=[MG("function ${name}(${params}) {\n ${}\n}",{label:`function`,detail:`definition`,type:`keyword`}),MG("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:`for`,detail:`loop`,type:`keyword`}),MG("for (let ${name} of ${collection}) {\n ${}\n}",{label:`for`,detail:`of loop`,type:`keyword`}),MG(`do {
|
|
165
|
-
\${}
|
|
166
|
-
} while (\${})`,{label:`do`,detail:`loop`,type:`keyword`}),MG(`while (\${}) {
|
|
167
|
-
\${}
|
|
168
|
-
}`,{label:`while`,detail:`loop`,type:`keyword`}),MG(`try {
|
|
169
|
-
\${}
|
|
170
|
-
} catch (\${error}) {
|
|
171
|
-
\${}
|
|
172
|
-
}`,{label:`try`,detail:`/ catch block`,type:`keyword`}),MG(`if (\${}) {
|
|
173
|
-
\${}
|
|
174
|
-
}`,{label:`if`,detail:`block`,type:`keyword`}),MG(`if (\${}) {
|
|
175
|
-
\${}
|
|
176
|
-
} else {
|
|
177
|
-
\${}
|
|
178
|
-
}`,{label:`if`,detail:`/ else block`,type:`keyword`}),MG(`class \${name} {
|
|
179
|
-
constructor(\${params}) {
|
|
180
|
-
\${}
|
|
181
|
-
}
|
|
182
|
-
}`,{label:`class`,detail:`definition`,type:`keyword`}),MG('import {${names}} from "${module}"\n${}',{label:`import`,detail:`named`,type:`keyword`}),MG('import ${name} from "${module}"\n${}',{label:`import`,detail:`default`,type:`keyword`})],CZ=SZ.concat([MG(`interface \${name} {
|
|
183
|
-
\${}
|
|
184
|
-
}`,{label:`interface`,detail:`definition`,type:`keyword`}),MG("type ${name} = ${type}",{label:`type`,detail:`definition`,type:`keyword`}),MG(`enum \${name} {
|
|
185
|
-
\${}
|
|
186
|
-
}`,{label:`enum`,detail:`definition`,type:`keyword`})]),wZ=new re,TZ=new Set([`Script`,`Block`,`FunctionExpression`,`FunctionDeclaration`,`ArrowFunction`,`MethodDeclaration`,`ForStatement`]);function EZ(e){return(t,n)=>{let r=t.node.getChild(`VariableDefinition`);return r&&n(r,e),!0}}var DZ=[`FunctionDeclaration`],OZ={FunctionDeclaration:EZ(`function`),ClassDeclaration:EZ(`class`),ClassExpression:()=>!0,EnumDeclaration:EZ(`constant`),TypeAliasDeclaration:EZ(`type`),NamespaceDeclaration:EZ(`namespace`),VariableDefinition(e,t){e.matchContext(DZ)||t(e,`variable`)},TypeDefinition(e,t){t(e,`type`)},__proto__:null};function kZ(e,t){let n=wZ.get(t);if(n)return n;let r=[],i=!0;function a(t,n){let i=e.sliceString(t.from,t.to);r.push({label:i,type:n})}return t.cursor(rt.IncludeAnonymous).iterate(t=>{if(i)i=!1;else if(t.name){let e=OZ[t.name];if(e&&e(t,a)||TZ.has(t.name))return!1}else if(t.to-t.from>8192){for(let n of kZ(e,t.node))r.push(n);return!1}}),wZ.set(t,r),r}var AZ=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,jZ=[`TemplateString`,`String`,`RegExp`,`LineComment`,`BlockComment`,`VariableDefinition`,`TypeDefinition`,`Label`,`PropertyDefinition`,`PropertyName`,`PrivatePropertyDefinition`,`PrivatePropertyName`,`JSXText`,`JSXAttributeValue`,`JSXOpenTag`,`JSXCloseTag`,`JSXSelfClosingTag`,`.`,`?.`];function MZ(e){let t=d(e.state).resolveInner(e.pos,-1);if(jZ.indexOf(t.name)>-1)return null;let n=t.name==`VariableName`||t.to-t.from<20&&AZ.test(e.state.sliceDoc(t.from,t.to));if(!n&&!e.explicit)return null;let r=[];for(let n=t;n;n=n.parent)TZ.has(n.name)&&(r=r.concat(kZ(e.state.doc,n)));return{options:r,from:n?t.from:e.pos,validFor:AZ}}var NZ=We.define({name:`javascript`,parser:bZ.configure({props:[s.add({IfStatement:we({except:/^\s*({|else\b)/}),TryStatement:we({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:tt,SwitchBody:e=>{let t=e.textAfter,n=/^\s*\}/.test(t),r=/^\s*(case|default)\b/.test(t);return e.baseIndent+(n?0:r?1:2)*e.unit},Block:Xe({closing:`}`}),ArrowFunction:e=>e.baseIndent+e.unit,"TemplateString BlockComment":()=>null,"Statement Property":we({except:/^\s*{/}),JSXElement(e){let t=/^\s*<\//.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},JSXEscape(e){let t=/\s*\}/.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},"JSXOpenTag JSXSelfClosingTag"(e){return e.column(e.node.from)+e.unit}}),a.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":$e,BlockComment(e){return{from:e.from+2,to:e.to-2}},JSXElement(e){let t=e.firstChild;if(!t||t.name==`JSXSelfClosingTag`)return null;let n=e.lastChild;return{from:t.to,to:n.type.isError?e.to:n.from}},"JSXSelfClosingTag JSXOpenTag"(e){let t=e.firstChild?.nextSibling,n=e.lastChild;return!t||t.type.isError?null:{from:t.to,to:n.type.isError?e.to:n.from}}})]}),languageData:{closeBrackets:{brackets:[`(`,`[`,`{`,`'`,`"`,"`"]},commentTokens:{line:`//`,block:{open:`/*`,close:`*/`}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:`$`}}),PZ={test:e=>/^JSX/.test(e.name),facet:le({commentTokens:{block:{open:`{/*`,close:`*/}`}}})},FZ=NZ.configure({dialect:`ts`},`typescript`),IZ=NZ.configure({dialect:`jsx`,props:[C.add(e=>e.isTop?[PZ]:void 0)]}),LZ=NZ.configure({dialect:`jsx ts`,props:[C.add(e=>e.isTop?[PZ]:void 0)]},`typescript`),RZ=e=>({label:e,type:`keyword`}),zZ=`break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield`.split(` `).map(RZ),BZ=zZ.concat([`declare`,`implements`,`private`,`protected`,`public`].map(RZ));function VZ(e={}){let t=e.jsx?e.typescript?LZ:IZ:e.typescript?FZ:NZ,n=e.typescript?CZ.concat(BZ):SZ.concat(zZ);return new Je(t,[NZ.data.of({autocomplete:SW(jZ,xW(n))}),NZ.data.of({autocomplete:MZ}),e.jsx?GZ:[]])}function HZ(e){for(;;){if(e.name==`JSXOpenTag`||e.name==`JSXSelfClosingTag`||e.name==`JSXFragmentTag`)return e;if(e.name==`JSXEscape`||!e.parent)return null;e=e.parent}}function UZ(e,t,n=e.length){for(let r=t?.firstChild;r;r=r.nextSibling)if(r.name==`JSXIdentifier`||r.name==`JSXBuiltin`||r.name==`JSXNamespacedName`||r.name==`JSXMemberExpression`)return e.sliceString(r.from,Math.min(r.to,n));return``}var WZ=typeof navigator==`object`&&/Android\b/.test(navigator.userAgent),GZ=N.inputHandler.of((e,t,n,r,i)=>{if((WZ?e.composing:e.compositionStarted)||e.state.readOnly||t!=n||r!=`>`&&r!=`/`||!NZ.isActiveAt(e.state,t,-1))return!1;let a=i(),{state:o}=a,s=o.changeByRange(e=>{let{head:t}=e,n=d(o).resolveInner(t-1,-1),i;if(n.name==`JSXStartTag`&&(n=n.parent),!(o.doc.sliceString(t-1,t)!=r||n.name==`JSXAttributeValue`&&n.to>t)){if(r==`>`&&n.name==`JSXFragmentTag`)return{range:e,changes:{from:t,insert:`</>`}};if(r==`/`&&n.name==`JSXStartCloseTag`){let e=n.parent,r=e.parent;if(r&&e.from==t-2&&((i=UZ(o.doc,r.firstChild,t))||r.firstChild?.name==`JSXFragmentTag`)){let e=`${i}>`;return{range:F.cursor(t+e.length,-1),changes:{from:t,insert:e}}}}else if(r==`>`){let r=HZ(n);if(r&&r.name==`JSXOpenTag`&&!/^\/?>|^<\//.test(o.doc.sliceString(t,t+2))&&(i=UZ(o.doc,r,t)))return{range:e,changes:{from:t,insert:`</${i}>`}}}}return{range:e}});return s.changes.empty?!1:(e.dispatch([a,o.update(s,{userEvent:`input.complete`,scrollIntoView:!0})]),!0)}),KZ=ft({autoCloseTags:()=>SQ,html:()=>bQ,htmlCompletionSource:()=>pQ,htmlCompletionSourceWith:()=>mQ,htmlLanguage:()=>yQ}),qZ=[`_blank`,`_self`,`_top`,`_parent`],JZ=[`ascii`,`utf-8`,`utf-16`,`latin1`,`latin1`],YZ=[`get`,`post`,`put`,`delete`],XZ=[`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`],ZZ=[`true`,`false`],Z={},QZ={a:{attrs:{href:null,ping:null,type:null,media:null,target:qZ,hreflang:null}},abbr:Z,address:Z,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:[`default`,`rect`,`circle`,`poly`]}},article:Z,aside:Z,audio:{attrs:{src:null,mediagroup:null,crossorigin:[`anonymous`,`use-credentials`],preload:[`none`,`metadata`,`auto`],autoplay:[`autoplay`],loop:[`loop`],controls:[`controls`]}},b:Z,base:{attrs:{href:null,target:qZ}},bdi:Z,bdo:Z,blockquote:{attrs:{cite:null}},body:Z,br:Z,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:[`autofocus`],disabled:[`autofocus`],formenctype:XZ,formmethod:YZ,formnovalidate:[`novalidate`],formtarget:qZ,type:[`submit`,`reset`,`button`]}},canvas:{attrs:{width:null,height:null}},caption:Z,center:Z,cite:Z,code:Z,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:[`command`,`checkbox`,`radio`],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:[`disabled`],checked:[`checked`]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:[`disabled`],multiple:[`multiple`]}},datalist:{attrs:{data:null}},dd:Z,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:[`open`]}},dfn:Z,div:Z,dl:Z,dt:Z,em:Z,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:[`disabled`],form:null,name:null}},figcaption:Z,figure:Z,footer:Z,form:{attrs:{action:null,name:null,"accept-charset":JZ,autocomplete:[`on`,`off`],enctype:XZ,method:YZ,novalidate:[`novalidate`],target:qZ}},h1:Z,h2:Z,h3:Z,h4:Z,h5:Z,h6:Z,head:{children:[`title`,`base`,`link`,`style`,`meta`,`script`,`noscript`,`command`]},header:Z,hgroup:Z,hr:Z,html:{attrs:{manifest:null}},i:Z,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:[`allow-top-navigation`,`allow-same-origin`,`allow-forms`,`allow-scripts`],seamless:[`seamless`]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:[`anonymous`,`use-credentials`]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:[`audio/*`,`video/*`,`image/*`],autocomplete:[`on`,`off`],autofocus:[`autofocus`],checked:[`checked`],disabled:[`disabled`],formenctype:XZ,formmethod:YZ,formnovalidate:[`novalidate`],formtarget:qZ,multiple:[`multiple`],readonly:[`readonly`],required:[`required`],type:[`hidden`,`text`,`search`,`tel`,`url`,`email`,`password`,`datetime`,`date`,`month`,`week`,`time`,`datetime-local`,`number`,`range`,`color`,`checkbox`,`radio`,`file`,`submit`,`image`,`reset`,`button`]}},ins:{attrs:{cite:null,datetime:null}},kbd:Z,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:[`autofocus`],disabled:[`disabled`],keytype:[`RSA`]}},label:{attrs:{for:null,form:null}},legend:Z,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:null,media:null,sizes:[`all`,`16x16`,`16x16 32x32`,`16x16 32x32 64x64`]}},map:{attrs:{name:null}},mark:Z,menu:{attrs:{label:null,type:[`list`,`context`,`toolbar`]}},meta:{attrs:{content:null,charset:JZ,name:[`viewport`,`application-name`,`author`,`description`,`generator`,`keywords`],"http-equiv":[`content-language`,`content-type`,`default-style`,`refresh`]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:Z,noscript:Z,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:[`typemustmatch`]}},ol:{attrs:{reversed:[`reversed`],start:null,type:[`1`,`a`,`A`,`i`,`I`]},children:[`li`,`script`,`template`,`ul`,`ol`]},optgroup:{attrs:{disabled:[`disabled`],label:null}},option:{attrs:{disabled:[`disabled`],label:null,selected:[`selected`],value:null}},output:{attrs:{for:null,form:null,name:null}},p:Z,param:{attrs:{name:null,value:null}},pre:Z,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:Z,rt:Z,ruby:Z,samp:Z,script:{attrs:{type:[`text/javascript`],src:null,async:[`async`],defer:[`defer`],charset:JZ}},section:Z,select:{attrs:{form:null,name:null,size:null,autofocus:[`autofocus`],disabled:[`disabled`],multiple:[`multiple`]}},slot:{attrs:{name:null}},small:Z,source:{attrs:{src:null,type:null,media:null}},span:Z,strong:Z,style:{attrs:{type:[`text/css`],media:null,scoped:null}},sub:Z,summary:Z,sup:Z,table:Z,tbody:Z,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:Z,textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:[`autofocus`],disabled:[`disabled`],readonly:[`readonly`],required:[`required`],wrap:[`soft`,`hard`]}},tfoot:Z,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:[`row`,`col`,`rowgroup`,`colgroup`]}},thead:Z,time:{attrs:{datetime:null}},title:Z,tr:Z,track:{attrs:{src:null,label:null,default:null,kind:[`subtitles`,`captions`,`descriptions`,`chapters`,`metadata`],srclang:null}},ul:{children:[`li`,`script`,`template`,`ul`,`ol`]},var:Z,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:[`anonymous`,`use-credentials`],preload:[`auto`,`metadata`,`none`],autoplay:[`autoplay`],mediagroup:[`movie`],muted:[`muted`],controls:[`controls`]}},wbr:Z},$Z={accesskey:null,class:null,contenteditable:ZZ,contextmenu:null,dir:[`ltr`,`rtl`,`auto`],draggable:[`true`,`false`,`auto`],dropzone:[`copy`,`move`,`link`,`string:`,`file:`],hidden:[`hidden`],id:null,inert:[`inert`],itemid:null,itemprop:null,itemref:null,itemscope:[`itemscope`],itemtype:null,lang:[`ar`,`bn`,`de`,`en-GB`,`en-US`,`es`,`fr`,`hi`,`id`,`ja`,`pa`,`pt`,`ru`,`tr`,`zh`],spellcheck:ZZ,autocorrect:ZZ,autocapitalize:ZZ,style:null,tabindex:null,title:null,translate:[`yes`,`no`],rel:[`stylesheet`,`alternate`,`author`,`bookmark`,`help`,`license`,`next`,`nofollow`,`noreferrer`,`prefetch`,`prev`,`search`,`tag`],role:`alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer`.split(` `),"aria-activedescendant":null,"aria-atomic":ZZ,"aria-autocomplete":[`inline`,`list`,`both`,`none`],"aria-busy":ZZ,"aria-checked":[`true`,`false`,`mixed`,`undefined`],"aria-controls":null,"aria-describedby":null,"aria-disabled":ZZ,"aria-dropeffect":null,"aria-expanded":[`true`,`false`,`undefined`],"aria-flowto":null,"aria-grabbed":[`true`,`false`,`undefined`],"aria-haspopup":ZZ,"aria-hidden":ZZ,"aria-invalid":[`true`,`false`,`grammar`,`spelling`],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":[`off`,`polite`,`assertive`],"aria-multiline":ZZ,"aria-multiselectable":ZZ,"aria-owns":null,"aria-posinset":null,"aria-pressed":[`true`,`false`,`mixed`,`undefined`],"aria-readonly":ZZ,"aria-relevant":null,"aria-required":ZZ,"aria-selected":[`true`,`false`,`undefined`],"aria-setsize":null,"aria-sort":[`ascending`,`descending`,`none`,`other`],"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null},eQ=`beforeunload copy cut dragstart dragover dragleave dragenter dragend drag paste focus blur change click load mousedown mouseenter mouseleave mouseup keydown keyup resize scroll unload`.split(` `).map(e=>`on`+e);for(let e of eQ)$Z[e]=null;var tQ=class{constructor(e,t){this.tags={...QZ,...e},this.globalAttrs={...$Z,...t},this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}};tQ.default=new tQ;function nQ(e,t,n=e.length){if(!t)return``;let r=t.firstChild,i=r&&r.getChild(`TagName`);return i?e.sliceString(i.from,Math.min(i.to,n)):``}function rQ(e,t=!1){for(;e;e=e.parent)if(e.name==`Element`)if(t)t=!1;else return e;return null}function iQ(e,t,n){return n.tags[nQ(e,rQ(t))]?.children||n.allTags}function aQ(e,t){let n=[];for(let r=rQ(t);r&&!r.type.isTop;r=rQ(r.parent)){let i=nQ(e,r);if(i&&r.lastChild.name==`CloseTag`)break;i&&n.indexOf(i)<0&&(t.name==`EndTag`||t.from>=r.firstChild.to)&&n.push(i)}return n}var oQ=/^[:\-\.\w\u00b7-\uffff]*$/;function sQ(e,t,n,r,i){let a=/\s*>/.test(e.sliceDoc(i,i+5))?``:`>`,o=rQ(n,n.name==`StartTag`||n.name==`TagName`);return{from:r,to:i,options:iQ(e.doc,o,t).map(e=>({label:e,type:`type`})).concat(aQ(e.doc,n).map((e,t)=>({label:`/`+e,apply:`/`+e+a,type:`type`,boost:99-t}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function cQ(e,t,n,r){let i=/\s*>/.test(e.sliceDoc(r,r+5))?``:`>`;return{from:n,to:r,options:aQ(e.doc,t).map((e,t)=>({label:e,apply:e+i,type:`type`,boost:99-t})),validFor:oQ}}function lQ(e,t,n,r){let i=[],a=0;for(let r of iQ(e.doc,n,t))i.push({label:`<`+r,type:`type`});for(let t of aQ(e.doc,n))i.push({label:`</`+t+`>`,type:`type`,boost:99-a++});return{from:r,to:r,options:i,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}function uQ(e,t,n,r,i){let a=rQ(n),o=a?t.tags[nQ(e.doc,a)]:null,s=o&&o.attrs?Object.keys(o.attrs):[];return{from:r,to:i,options:(o&&o.globalAttrs===!1?s:s.length?s.concat(t.globalAttrNames):t.globalAttrNames).map(e=>({label:e,type:`property`})),validFor:oQ}}function dQ(e,t,n,r,i){let a=n.parent?.getChild(`AttributeName`),o=[],s;if(a){let c=e.sliceDoc(a.from,a.to),l=t.globalAttrs[c];if(!l){let r=rQ(n),i=r?t.tags[nQ(e.doc,r)]:null;l=i?.attrs&&i.attrs[c]}if(l){let t=e.sliceDoc(r,i).toLowerCase(),n=`"`,a=`"`;/^['"]/.test(t)?(s=t[0]==`"`?/^[^"]*$/:/^[^']*$/,n=``,a=e.sliceDoc(i,i+1)==t[0]?``:t[0],t=t.slice(1),r++):s=/^[^\s<>='"]*$/;for(let e of l)o.push({label:e,apply:n+e+a,type:`constant`})}}return{from:r,to:i,options:o,validFor:s}}function fQ(e,t){let{state:n,pos:r}=t,i=d(n).resolveInner(r,-1),a=i.resolve(r);for(let e=r,t;a==i&&(t=i.childBefore(e));){let n=t.lastChild;if(!n||!n.type.isError||n.from<n.to)break;a=i=t,e=n.from}return i.name==`TagName`?i.parent&&/CloseTag$/.test(i.parent.name)?cQ(n,i,i.from,r):sQ(n,e,i,i.from,r):i.name==`StartTag`||i.name==`IncompleteTag`?sQ(n,e,i,r,r):i.name==`StartCloseTag`||i.name==`IncompleteCloseTag`?cQ(n,i,r,r):i.name==`OpenTag`||i.name==`SelfClosingTag`||i.name==`AttributeName`?uQ(n,e,i,i.name==`AttributeName`?i.from:r,r):i.name==`Is`||i.name==`AttributeValue`||i.name==`UnquotedAttributeValue`?dQ(n,e,i,i.name==`Is`?r:i.from,r):t.explicit&&(a.name==`Element`||a.name==`Text`||a.name==`Document`)?lQ(n,e,i,r):null}function pQ(e){return fQ(tQ.default,e)}function mQ(e){let{extraTags:t,extraGlobalAttributes:n}=e,r=n||t?new tQ(t,n):tQ.default;return e=>fQ(r,e)}var hQ=NZ.parser.configure({top:`SingleExpression`}),gQ=[{tag:`script`,attrs:e=>e.type==`text/typescript`||e.lang==`ts`,parser:FZ.parser},{tag:`script`,attrs:e=>e.type==`text/babel`||e.type==`text/jsx`,parser:IZ.parser},{tag:`script`,attrs:e=>e.type==`text/typescript-jsx`,parser:LZ.parser},{tag:`script`,attrs(e){return/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(e.type)},parser:hQ},{tag:`script`,attrs(e){return!e.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(e.type)},parser:NZ.parser},{tag:`style`,attrs(e){return(!e.lang||e.lang==`css`)&&(!e.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(e.type))},parser:DY.parser}],_Q=[{name:`style`,parser:DY.parser.configure({top:`Styles`})}].concat(eQ.map(e=>({name:e,parser:NZ.parser}))),vQ=We.define({name:`html`,parser:PX.configure({props:[s.add({Element(e){let t=/^(\s*)(<\/)?/.exec(e.textAfter);return e.node.to<=e.pos+t[0].length?e.continue():e.lineIndent(e.node.from)+(t[2]?0:e.unit)},"OpenTag CloseTag SelfClosingTag"(e){return e.column(e.node.from)+e.unit},Document(e){if(e.pos+/\s*/.exec(e.textAfter)[0].length<e.node.to)return e.continue();let t=null,n;for(let n=e.node;;){let e=n.lastChild;if(!e||e.name!=`Element`||e.to!=n.to)break;t=n=e}return t&&!((n=t.lastChild)&&(n.name==`CloseTag`||n.name==`SelfClosingTag`))?e.lineIndent(t.from)+e.unit:null}}),a.add({Element(e){let t=e.firstChild,n=e.lastChild;return!t||t.name!=`OpenTag`?null:{from:t.to,to:n.name==`CloseTag`?n.from:e.to}}}),Ne.add({"OpenTag CloseTag":e=>e.getChild(`TagName`)})]}),languageData:{commentTokens:{block:{open:`<!--`,close:`-->`}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:`-_`}}),yQ=vQ.configure({wrap:RX(gQ,_Q)});function bQ(e={}){let t=``,n;return e.matchClosingTags===!1&&(t=`noMatch`),e.selfClosingTags===!0&&(t=(t?t+` `:``)+`selfClosing`),(e.nestedLanguages&&e.nestedLanguages.length||e.nestedAttributes&&e.nestedAttributes.length)&&(n=RX((e.nestedLanguages||[]).concat(gQ),(e.nestedAttributes||[]).concat(_Q))),new Je(n?vQ.configure({wrap:n,dialect:t}):t?yQ.configure({dialect:t}):yQ,[yQ.data.of({autocomplete:mQ(e)}),e.autoCloseTags===!1?[]:SQ,VZ().support,OY().support])}var xQ=new Set(`area base br col command embed frame hr img input keygen link meta param source track wbr menuitem`.split(` `)),SQ=N.inputHandler.of((e,t,n,r,i)=>{if(e.composing||e.state.readOnly||t!=n||r!=`>`&&r!=`/`||!yQ.isActiveAt(e.state,t,-1))return!1;let a=i(),{state:o}=a,s=o.changeByRange(e=>{let t=o.doc.sliceString(e.from-1,e.to)==r,{head:n}=e,i=d(o).resolveInner(n,-1),a;if(t&&r==`>`&&i.name==`EndTag`){let t=i.parent;if(t.parent?.lastChild?.name!=`CloseTag`&&(a=nQ(o.doc,t.parent,n))&&!xQ.has(a))return{range:e,changes:{from:n,to:n+ +(o.doc.sliceString(n,n+1)===`>`),insert:`</${a}>`}}}else if(t&&r==`/`&&i.name==`IncompleteCloseTag`){let e=i.parent;if(i.from==n-2&&e.lastChild?.name!=`CloseTag`&&(a=nQ(o.doc,e,n))&&!xQ.has(a)){let e=n+ +(o.doc.sliceString(n,n+1)===`>`),t=`${a}>`;return{range:F.cursor(n+t.length,-1),changes:{from:n,to:e,insert:t}}}}return{range:e}});return s.changes.empty?!1:(e.dispatch([a,o.update(s,{userEvent:`input.complete`,scrollIntoView:!0})]),!0)});function CQ(e,t,n,r){let i=Cn(jb),a=Tn(xx),o=I.useRef(null),{lexicalNode:s}=iW(),c=I.useRef(!1),l=I.useRef(!1),u=I.useCallback(()=>{a({editorType:t,rootNode:s,editorRef:o.current})},[t,s,a]),d=I.useCallback(t=>{if(t.key===`ArrowDown`){let t=o.current?.getCodemirror()?.state;t&&t.doc.length===t.selection.ranges[0].to&&(c.current?(i?.update(()=>{var t;let n=gc(e);n.getNextSibling()?((t=o.current?.getCodemirror())==null||t.contentDOM.blur(),n.selectNext()):n.insertAfter(Vs())}),c.current=!1):c.current=!0)}else if(t.key===`ArrowUp`){let t=o.current?.getCodemirror()?.state;t&&t.selection.ranges[0].from===0&&(l.current?(i?.update(()=>{var t;let n=gc(e);n.getPreviousSibling()&&((t=o.current?.getCodemirror())==null||t.contentDOM.blur(),n.selectPrevious())}),l.current=!1):l.current=!0)}else t.key===`Enter`?t.stopPropagation():(t.key===`Backspace`||t.key===`Delete`)&&(o.current?.getCodemirror()?.state)?.doc.length===0&&i?.update(()=>{gc(e).remove()})},[i,e]);return I.useEffect(()=>{let e=o.current;return setTimeout(()=>{var t,n;(t=e?.getCodemirror())==null||t.contentDOM.addEventListener(`focus`,u),(n=e?.getCodemirror())==null||n.contentDOM.addEventListener(`keydown`,d)},300),()=>{var t,n;(t=e?.getCodemirror())==null||t.contentDOM.removeEventListener(`focus`,u),(n=e?.getCodemirror())==null||n.contentDOM.removeEventListener(`keydown`,d)}},[o,u,d,n]),I.useEffect(()=>{r.subscribe(()=>{var e;(e=o.current?.getCodemirror())==null||e.focus(),u()})},[r,o,e,u]),o}function Q(e){return new Je(be.define(e))}function wQ(e){return X(()=>import(`./dist-kPuQud7t.js`).then(t=>t.sql({dialect:t[e]})),__vite__mapDeps([0,1]))}var TQ=[P.of({name:`C`,extensions:[`c`,`h`,`ino`],load(){return X(()=>import(`./dist-QQuDy4KA.js`).then(e=>e.cpp()),__vite__mapDeps([2,1]))}}),P.of({name:`C++`,alias:[`cpp`],extensions:[`cpp`,`c++`,`cc`,`cxx`,`hpp`,`h++`,`hh`,`hxx`],load(){return X(()=>import(`./dist-QQuDy4KA.js`).then(e=>e.cpp()),__vite__mapDeps([2,1]))}}),P.of({name:`CQL`,alias:[`cassandra`],extensions:[`cql`],load(){return wQ(`Cassandra`)}}),P.of({name:`CSS`,extensions:[`css`],load(){return X(()=>Promise.resolve().then(()=>dY).then(e=>e.css()),void 0)}}),P.of({name:`Go`,extensions:[`go`],load(){return X(()=>import(`./dist-CULMH-fB.js`).then(e=>e.go()),__vite__mapDeps([3,1]))}}),P.of({name:`HTML`,alias:[`xhtml`],extensions:[`html`,`htm`,`handlebars`,`hbs`],load(){return X(()=>Promise.resolve().then(()=>KZ).then(e=>e.html()),void 0)}}),P.of({name:`Java`,extensions:[`java`],load(){return X(()=>import(`./dist-DKoyMSNr.js`).then(e=>e.java()),__vite__mapDeps([4,1]))}}),P.of({name:`JavaScript`,alias:[`ecmascript`,`js`,`node`],extensions:[`js`,`mjs`,`cjs`],load(){return X(()=>Promise.resolve().then(()=>xZ).then(e=>e.javascript()),void 0)}}),P.of({name:`Jinja`,extensions:[`j2`,`jinja`,`jinja2`],load(){return X(()=>import(`./dist-Cjq6RWEt.js`).then(e=>e.jinja()),__vite__mapDeps([5,1]))}}),P.of({name:`JSON`,alias:[`json5`],extensions:[`json`,`map`],load(){return X(()=>import(`./dist-DotDq_kD.js`).then(e=>e.json()),__vite__mapDeps([6,1]))}}),P.of({name:`JSX`,extensions:[`jsx`],load(){return X(()=>Promise.resolve().then(()=>xZ).then(e=>e.javascript({jsx:!0})),void 0)}}),P.of({name:`LESS`,extensions:[`less`],load(){return X(()=>import(`./dist-BD262Ouw.js`).then(e=>e.less()),__vite__mapDeps([7,1]))}}),P.of({name:`Liquid`,extensions:[`liquid`],load(){return X(()=>import(`./dist-B7gXtTZC.js`).then(e=>e.liquid()),__vite__mapDeps([8,1]))}}),P.of({name:`MariaDB SQL`,load(){return wQ(`MariaSQL`)}}),P.of({name:`Markdown`,extensions:[`md`,`markdown`,`mkd`],load(){return X(()=>Promise.resolve().then(()=>V8).then(e=>e.markdown()),void 0)}}),P.of({name:`MS SQL`,load(){return wQ(`MSSQL`)}}),P.of({name:`MySQL`,load(){return wQ(`MySQL`)}}),P.of({name:`PHP`,extensions:[`php`,`php3`,`php4`,`php5`,`php7`,`phtml`],load(){return X(()=>import(`./dist-DxEGebCR.js`).then(e=>e.php()),__vite__mapDeps([9,1]))}}),P.of({name:`PLSQL`,extensions:[`pls`],load(){return wQ(`PLSQL`)}}),P.of({name:`PostgreSQL`,load(){return wQ(`PostgreSQL`)}}),P.of({name:`Python`,extensions:[`BUILD`,`bzl`,`py`,`pyw`],filename:/^(BUCK|BUILD)$/,load(){return X(()=>import(`./dist-BKuGdcnX.js`).then(e=>e.python()),__vite__mapDeps([10,1]))}}),P.of({name:`Rust`,extensions:[`rs`],load(){return X(()=>import(`./dist-B5ZAfwf5.js`).then(e=>e.rust()),__vite__mapDeps([11,1]))}}),P.of({name:`Sass`,extensions:[`sass`],load(){return X(()=>import(`./dist-CntqFySz.js`).then(e=>e.sass({indented:!0})),__vite__mapDeps([12,1]))}}),P.of({name:`SCSS`,extensions:[`scss`],load(){return X(()=>import(`./dist-CntqFySz.js`).then(e=>e.sass()),__vite__mapDeps([12,1]))}}),P.of({name:`SQL`,extensions:[`sql`],load(){return wQ(`StandardSQL`)}}),P.of({name:`SQLite`,load(){return wQ(`SQLite`)}}),P.of({name:`TSX`,extensions:[`tsx`],load(){return X(()=>Promise.resolve().then(()=>xZ).then(e=>e.javascript({jsx:!0,typescript:!0})),void 0)}}),P.of({name:`TypeScript`,alias:[`ts`],extensions:[`ts`,`mts`,`cts`],load(){return X(()=>Promise.resolve().then(()=>xZ).then(e=>e.javascript({typescript:!0})),void 0)}}),P.of({name:`WebAssembly`,extensions:[`wat`,`wast`],load(){return X(()=>import(`./dist-DLMjd26T.js`).then(e=>e.wast()),__vite__mapDeps([13,1]))}}),P.of({name:`XML`,alias:[`rss`,`wsdl`,`xsd`],extensions:[`xml`,`xsl`,`xsd`,`svg`],load(){return X(()=>import(`./dist-BkUONE3N.js`).then(e=>e.xml()),__vite__mapDeps([14,1]))}}),P.of({name:`YAML`,alias:[`yml`],extensions:[`yaml`,`yml`],load(){return X(()=>import(`./dist-B5PTVnox.js`).then(e=>e.yaml()),__vite__mapDeps([15,1]))}}),P.of({name:`APL`,extensions:[`dyalog`,`apl`],load(){return X(()=>import(`./apl-14BqhLYK.js`).then(e=>Q(e.apl)),[])}}),P.of({name:`PGP`,alias:[`asciiarmor`],extensions:[`asc`,`pgp`,`sig`],load(){return X(()=>import(`./asciiarmor-WLvjqI7d.js`).then(e=>Q(e.asciiArmor)),[])}}),P.of({name:`ASN.1`,extensions:[`asn`,`asn1`],load(){return X(()=>import(`./asn1-Bg4FbdCg.js`).then(e=>Q(e.asn1({}))),[])}}),P.of({name:`Asterisk`,filename:/^extensions\.conf$/i,load(){return X(()=>import(`./asterisk-B2MO-X4d.js`).then(e=>Q(e.asterisk)),[])}}),P.of({name:`Brainfuck`,extensions:[`b`,`bf`],load(){return X(()=>import(`./brainfuck-CV9kufud.js`).then(e=>Q(e.brainfuck)),[])}}),P.of({name:`Cobol`,extensions:[`cob`,`cpy`],load(){return X(()=>import(`./cobol-BwO6DF08.js`).then(e=>Q(e.cobol)),[])}}),P.of({name:`C#`,alias:[`csharp`,`cs`],extensions:[`cs`],load(){return X(()=>import(`./clike-CjmcUpt6.js`).then(e=>Q(e.csharp)),[])}}),P.of({name:`Clojure`,extensions:[`clj`,`cljc`,`cljx`],load(){return X(()=>import(`./clojure-De3QGfx6.js`).then(e=>Q(e.clojure)),[])}}),P.of({name:`ClojureScript`,extensions:[`cljs`],load(){return X(()=>import(`./clojure-De3QGfx6.js`).then(e=>Q(e.clojure)),[])}}),P.of({name:`Closure Stylesheets (GSS)`,extensions:[`gss`],load(){return X(()=>import(`./css-CbMZAQ1W.js`).then(e=>Q(e.gss)),[])}}),P.of({name:`CMake`,extensions:[`cmake`,`cmake.in`],filename:/^CMakeLists\.txt$/,load(){return X(()=>import(`./cmake-i2VDNaRq.js`).then(e=>Q(e.cmake)),[])}}),P.of({name:`CoffeeScript`,alias:[`coffee`,`coffee-script`],extensions:[`coffee`],load(){return X(()=>import(`./coffeescript-BtivDvRz.js`).then(e=>Q(e.coffeeScript)),[])}}),P.of({name:`Common Lisp`,alias:[`lisp`],extensions:[`cl`,`lisp`,`el`],load(){return X(()=>import(`./commonlisp-DFkEQdLP.js`).then(e=>Q(e.commonLisp)),[])}}),P.of({name:`Cypher`,extensions:[`cyp`,`cypher`],load(){return X(()=>import(`./cypher-Dke5QOzv.js`).then(e=>Q(e.cypher)),[])}}),P.of({name:`Cython`,extensions:[`pyx`,`pxd`,`pxi`],load(){return X(()=>import(`./python-Cs7sNzy_.js`).then(e=>Q(e.cython)),[])}}),P.of({name:`Crystal`,extensions:[`cr`],load(){return X(()=>import(`./crystal-CU0NkcVL.js`).then(e=>Q(e.crystal)),[])}}),P.of({name:`D`,extensions:[`d`],load(){return X(()=>import(`./d-TPqSVaHM.js`).then(e=>Q(e.d)),[])}}),P.of({name:`Dart`,extensions:[`dart`],load(){return X(()=>import(`./clike-CjmcUpt6.js`).then(e=>Q(e.dart)),[])}}),P.of({name:`diff`,extensions:[`diff`,`patch`],load(){return X(()=>import(`./diff-B365LSoZ.js`).then(e=>Q(e.diff)),[])}}),P.of({name:`Dockerfile`,filename:/^Dockerfile$/,load(){return X(()=>import(`./dockerfile-CJb2sekW.js`).then(e=>Q(e.dockerFile)),__vite__mapDeps([16,17]))}}),P.of({name:`DTD`,extensions:[`dtd`],load(){return X(()=>import(`./dtd-CBMymJ7O.js`).then(e=>Q(e.dtd)),[])}}),P.of({name:`Dylan`,extensions:[`dylan`,`dyl`,`intr`],load(){return X(()=>import(`./dylan-08Azy1NK.js`).then(e=>Q(e.dylan)),[])}}),P.of({name:`EBNF`,load(){return X(()=>import(`./ebnf-Dkum_1J8.js`).then(e=>Q(e.ebnf)),[])}}),P.of({name:`ECL`,extensions:[`ecl`],load(){return X(()=>import(`./ecl-dhxjHL8y.js`).then(e=>Q(e.ecl)),[])}}),P.of({name:`edn`,extensions:[`edn`],load(){return X(()=>import(`./clojure-De3QGfx6.js`).then(e=>Q(e.clojure)),[])}}),P.of({name:`Eiffel`,extensions:[`e`],load(){return X(()=>import(`./eiffel-C446m6dI.js`).then(e=>Q(e.eiffel)),[])}}),P.of({name:`Elm`,extensions:[`elm`],load(){return X(()=>import(`./elm-po1E9de0.js`).then(e=>Q(e.elm)),[])}}),P.of({name:`Erlang`,extensions:[`erl`],load(){return X(()=>import(`./erlang-BD5LkVkR.js`).then(e=>Q(e.erlang)),[])}}),P.of({name:`Esper`,load(){return X(()=>import(`./sql-DYI2GwJR.js`).then(e=>Q(e.esper)),[])}}),P.of({name:`Factor`,extensions:[`factor`],load(){return X(()=>import(`./factor-B2EMQZkP.js`).then(e=>Q(e.factor)),__vite__mapDeps([18,17]))}}),P.of({name:`FCL`,load(){return X(()=>import(`./fcl-DkEOamHd.js`).then(e=>Q(e.fcl)),[])}}),P.of({name:`Forth`,extensions:[`forth`,`fth`,`4th`],load(){return X(()=>import(`./forth-dCg2_HVB.js`).then(e=>Q(e.forth)),[])}}),P.of({name:`Fortran`,extensions:[`f`,`for`,`f77`,`f90`,`f95`],load(){return X(()=>import(`./fortran-3ZpXLFh1.js`).then(e=>Q(e.fortran)),[])}}),P.of({name:`F#`,alias:[`fsharp`],extensions:[`fs`],load(){return X(()=>import(`./mllike-Cw3Iccsb.js`).then(e=>Q(e.fSharp)),[])}}),P.of({name:`Gas`,extensions:[`s`],load(){return X(()=>import(`./gas-DMmxLZRI.js`).then(e=>Q(e.gas)),[])}}),P.of({name:`Gherkin`,extensions:[`feature`],load(){return X(()=>import(`./gherkin-DUSFg2R6.js`).then(e=>Q(e.gherkin)),[])}}),P.of({name:`Groovy`,extensions:[`groovy`,`gradle`],filename:/^Jenkinsfile$/,load(){return X(()=>import(`./groovy-Cmduloe1.js`).then(e=>Q(e.groovy)),[])}}),P.of({name:`Haskell`,extensions:[`hs`],load(){return X(()=>import(`./haskell-Cyr255R9.js`).then(e=>Q(e.haskell)),[])}}),P.of({name:`Haxe`,extensions:[`hx`],load(){return X(()=>import(`./haxe-BJVKtprM.js`).then(e=>Q(e.haxe)),[])}}),P.of({name:`HXML`,extensions:[`hxml`],load(){return X(()=>import(`./haxe-BJVKtprM.js`).then(e=>Q(e.hxml)),[])}}),P.of({name:`HTTP`,load(){return X(()=>import(`./http-DszHFpc-.js`).then(e=>Q(e.http)),[])}}),P.of({name:`IDL`,extensions:[`pro`],load(){return X(()=>import(`./idl-Cati9Nrv.js`).then(e=>Q(e.idl)),[])}}),P.of({name:`JSON-LD`,alias:[`jsonld`],extensions:[`jsonld`],load(){return X(()=>import(`./javascript-C5pDVaoP.js`).then(e=>Q(e.jsonld)),[])}}),P.of({name:`Julia`,extensions:[`jl`],load(){return X(()=>import(`./julia-DlqY1cTU.js`).then(e=>Q(e.julia)),[])}}),P.of({name:`Kotlin`,extensions:[`kt`,`kts`],load(){return X(()=>import(`./clike-CjmcUpt6.js`).then(e=>Q(e.kotlin)),[])}}),P.of({name:`LiveScript`,alias:[`ls`],extensions:[`ls`],load(){return X(()=>import(`./livescript-C6p8-2W1.js`).then(e=>Q(e.liveScript)),[])}}),P.of({name:`Lua`,extensions:[`lua`],load(){return X(()=>import(`./lua-BxuTHaF7.js`).then(e=>Q(e.lua)),[])}}),P.of({name:`mIRC`,extensions:[`mrc`],load(){return X(()=>import(`./mirc-CCA0FRfl.js`).then(e=>Q(e.mirc)),[])}}),P.of({name:`Mathematica`,extensions:[`m`,`nb`,`wl`,`wls`],load(){return X(()=>import(`./mathematica-nDHZUMJT.js`).then(e=>Q(e.mathematica)),[])}}),P.of({name:`Modelica`,extensions:[`mo`],load(){return X(()=>import(`./modelica-Czx80fNR.js`).then(e=>Q(e.modelica)),[])}}),P.of({name:`MUMPS`,extensions:[`mps`],load(){return X(()=>import(`./mumps-Ds_ZaumL.js`).then(e=>Q(e.mumps)),[])}}),P.of({name:`Mbox`,extensions:[`mbox`],load(){return X(()=>import(`./mbox-DAaR0Hcz.js`).then(e=>Q(e.mbox)),[])}}),P.of({name:`Nginx`,filename:/nginx.*\.conf$/i,load(){return X(()=>import(`./nginx-D9M2PQ4U.js`).then(e=>Q(e.nginx)),[])}}),P.of({name:`NSIS`,extensions:[`nsh`,`nsi`],load(){return X(()=>import(`./nsis-DOo3SJmd.js`).then(e=>Q(e.nsis)),__vite__mapDeps([19,17]))}}),P.of({name:`NTriples`,extensions:[`nt`,`nq`],load(){return X(()=>import(`./ntriples-DLHGTvHs.js`).then(e=>Q(e.ntriples)),[])}}),P.of({name:`Objective-C`,alias:[`objective-c`,`objc`],extensions:[`m`],load(){return X(()=>import(`./clike-CjmcUpt6.js`).then(e=>Q(e.objectiveC)),[])}}),P.of({name:`Objective-C++`,alias:[`objective-c++`,`objc++`],extensions:[`mm`],load(){return X(()=>import(`./clike-CjmcUpt6.js`).then(e=>Q(e.objectiveCpp)),[])}}),P.of({name:`OCaml`,extensions:[`ml`,`mli`,`mll`,`mly`],load(){return X(()=>import(`./mllike-Cw3Iccsb.js`).then(e=>Q(e.oCaml)),[])}}),P.of({name:`Octave`,extensions:[`m`],load(){return X(()=>import(`./octave-8jj96JiC.js`).then(e=>Q(e.octave)),[])}}),P.of({name:`Oz`,extensions:[`oz`],load(){return X(()=>import(`./oz-BmMq7iC4.js`).then(e=>Q(e.oz)),[])}}),P.of({name:`Pascal`,extensions:[`p`,`pas`],load(){return X(()=>import(`./pascal-BgMr6XpT.js`).then(e=>Q(e.pascal)),[])}}),P.of({name:`Perl`,extensions:[`pl`,`pm`],load(){return X(()=>import(`./perl-D6YJObi_.js`).then(e=>Q(e.perl)),[])}}),P.of({name:`Pig`,extensions:[`pig`],load(){return X(()=>import(`./pig-nx7uchs8.js`).then(e=>Q(e.pig)),[])}}),P.of({name:`PowerShell`,extensions:[`ps1`,`psd1`,`psm1`],load(){return X(()=>import(`./powershell-B4IPkVxR.js`).then(e=>Q(e.powerShell)),[])}}),P.of({name:`Properties files`,alias:[`ini`,`properties`],extensions:[`properties`,`ini`,`in`],load(){return X(()=>import(`./properties-CoavQdLC.js`).then(e=>Q(e.properties)),[])}}),P.of({name:`ProtoBuf`,extensions:[`proto`],load(){return X(()=>import(`./protobuf-D5EWhcmc.js`).then(e=>Q(e.protobuf)),[])}}),P.of({name:`Pug`,alias:[`jade`],extensions:[`pug`,`jade`],load(){return X(()=>import(`./pug-QU72BPAa.js`).then(e=>Q(e.pug)),__vite__mapDeps([20,21]))}}),P.of({name:`Puppet`,extensions:[`pp`],load(){return X(()=>import(`./puppet-B_0GFuyD.js`).then(e=>Q(e.puppet)),[])}}),P.of({name:`Q`,extensions:[`q`],load(){return X(()=>import(`./q-BIB9pPtI.js`).then(e=>Q(e.q)),[])}}),P.of({name:`R`,alias:[`rscript`],extensions:[`r`,`R`],load(){return X(()=>import(`./r-CN5s4f3o.js`).then(e=>Q(e.r)),[])}}),P.of({name:`RPM Changes`,load(){return X(()=>import(`./rpm-Ct_Ck8mQ.js`).then(e=>Q(e.rpmChanges)),[])}}),P.of({name:`RPM Spec`,extensions:[`spec`],load(){return X(()=>import(`./rpm-Ct_Ck8mQ.js`).then(e=>Q(e.rpmSpec)),[])}}),P.of({name:`Ruby`,alias:[`jruby`,`macruby`,`rake`,`rb`,`rbx`],extensions:[`rb`],filename:/^(Gemfile|Rakefile)$/,load(){return X(()=>import(`./ruby-BVPradRk.js`).then(e=>Q(e.ruby)),[])}}),P.of({name:`SAS`,extensions:[`sas`],load(){return X(()=>import(`./sas-DN4j74IF.js`).then(e=>Q(e.sas)),[])}}),P.of({name:`Scala`,extensions:[`scala`],load(){return X(()=>import(`./clike-CjmcUpt6.js`).then(e=>Q(e.scala)),[])}}),P.of({name:`Scheme`,extensions:[`scm`,`ss`],load(){return X(()=>import(`./scheme-CvNgHAnh.js`).then(e=>Q(e.scheme)),[])}}),P.of({name:`Shell`,alias:[`bash`,`sh`,`zsh`],extensions:[`sh`,`ksh`,`bash`],filename:/^PKGBUILD$/,load(){return X(()=>import(`./shell-BjiMLAaM.js`).then(e=>Q(e.shell)),[])}}),P.of({name:`Sieve`,extensions:[`siv`,`sieve`],load(){return X(()=>import(`./sieve-C2U1O5Z4.js`).then(e=>Q(e.sieve)),[])}}),P.of({name:`Smalltalk`,extensions:[`st`],load(){return X(()=>import(`./smalltalk-DkYwYufV.js`).then(e=>Q(e.smalltalk)),[])}}),P.of({name:`Solr`,load(){return X(()=>import(`./solr-BopnSD-v.js`).then(e=>Q(e.solr)),[])}}),P.of({name:`SML`,extensions:[`sml`,`sig`,`fun`,`smackspec`],load(){return X(()=>import(`./mllike-Cw3Iccsb.js`).then(e=>Q(e.sml)),[])}}),P.of({name:`SPARQL`,alias:[`sparul`],extensions:[`rq`,`sparql`],load(){return X(()=>import(`./sparql-Cpg3YQfd.js`).then(e=>Q(e.sparql)),[])}}),P.of({name:`Spreadsheet`,alias:[`excel`,`formula`],load(){return X(()=>import(`./spreadsheet-kRxtVt9J.js`).then(e=>Q(e.spreadsheet)),[])}}),P.of({name:`Squirrel`,extensions:[`nut`],load(){return X(()=>import(`./clike-CjmcUpt6.js`).then(e=>Q(e.squirrel)),[])}}),P.of({name:`Stylus`,extensions:[`styl`],load(){return X(()=>import(`./stylus-CARoeVE9.js`).then(e=>Q(e.stylus)),[])}}),P.of({name:`Swift`,extensions:[`swift`],load(){return X(()=>import(`./swift-DKNaLAK6.js`).then(e=>Q(e.swift)),[])}}),P.of({name:`sTeX`,load(){return X(()=>import(`./stex-BCRT8IJ3.js`).then(e=>Q(e.stex)),[])}}),P.of({name:`LaTeX`,alias:[`tex`],extensions:[`text`,`ltx`,`tex`],load(){return X(()=>import(`./stex-BCRT8IJ3.js`).then(e=>Q(e.stex)),[])}}),P.of({name:`SystemVerilog`,extensions:[`v`,`sv`,`svh`],load(){return X(()=>import(`./verilog-DVCHmufx.js`).then(e=>Q(e.verilog)),[])}}),P.of({name:`Tcl`,extensions:[`tcl`],load(){return X(()=>import(`./tcl-CQyXkgMH.js`).then(e=>Q(e.tcl)),[])}}),P.of({name:`Textile`,extensions:[`textile`],load(){return X(()=>import(`./textile-Yg_UWn-t.js`).then(e=>Q(e.textile)),[])}}),P.of({name:`TiddlyWiki`,load(){return X(()=>import(`./tiddlywiki-dqVbkfX4.js`).then(e=>Q(e.tiddlyWiki)),[])}}),P.of({name:`Tiki wiki`,load(){return X(()=>import(`./tiki-CC_ic8g0.js`).then(e=>Q(e.tiki)),[])}}),P.of({name:`TOML`,extensions:[`toml`],load(){return X(()=>import(`./toml-B7gGzVkJ.js`).then(e=>Q(e.toml)),[])}}),P.of({name:`Troff`,extensions:[`1`,`2`,`3`,`4`,`5`,`6`,`7`,`8`,`9`],load(){return X(()=>import(`./troff-Bq3z6oAu.js`).then(e=>Q(e.troff)),[])}}),P.of({name:`TTCN`,extensions:[`ttcn`,`ttcn3`,`ttcnpp`],load(){return X(()=>import(`./ttcn-GvRgs2AT.js`).then(e=>Q(e.ttcn)),[])}}),P.of({name:`TTCN_CFG`,extensions:[`cfg`],load(){return X(()=>import(`./ttcn-cfg-CGCXz7Vo.js`).then(e=>Q(e.ttcnCfg)),[])}}),P.of({name:`Turtle`,extensions:[`ttl`],load(){return X(()=>import(`./turtle-CwIpz2yy.js`).then(e=>Q(e.turtle)),[])}}),P.of({name:`Web IDL`,extensions:[`webidl`],load(){return X(()=>import(`./webidl-egXQEWlC.js`).then(e=>Q(e.webIDL)),[])}}),P.of({name:`VB.NET`,extensions:[`vb`],load(){return X(()=>import(`./vb-BmcHUM2C.js`).then(e=>Q(e.vb)),[])}}),P.of({name:`VBScript`,extensions:[`vbs`],load(){return X(()=>import(`./vbscript-Cs9dylre.js`).then(e=>Q(e.vbScript)),[])}}),P.of({name:`Velocity`,extensions:[`vtl`],load(){return X(()=>import(`./velocity-CBWU0VCy.js`).then(e=>Q(e.velocity)),[])}}),P.of({name:`Verilog`,extensions:[`v`],load(){return X(()=>import(`./verilog-DVCHmufx.js`).then(e=>Q(e.verilog)),[])}}),P.of({name:`VHDL`,extensions:[`vhd`,`vhdl`],load(){return X(()=>import(`./vhdl-BGDk4f1d.js`).then(e=>Q(e.vhdl)),[])}}),P.of({name:`XQuery`,extensions:[`xy`,`xquery`,`xq`,`xqm`,`xqy`],load(){return X(()=>import(`./xquery-5f0hn7cg.js`).then(e=>Q(e.xQuery)),[])}}),P.of({name:`Yacas`,extensions:[`ys`],load(){return X(()=>import(`./yacas-DNs9XkmQ.js`).then(e=>Q(e.yacas)),[])}}),P.of({name:`Z80`,extensions:[`z80`],load(){return X(()=>import(`./z80-B7Dfb4UO.js`).then(e=>Q(e.z80)),[])}}),P.of({name:`MscGen`,extensions:[`mscgen`,`mscin`,`msc`],load(){return X(()=>import(`./mscgen-BmfuTbzG.js`).then(e=>Q(e.mscgen)),[])}}),P.of({name:`Xù`,extensions:[`xu`],load(){return X(()=>import(`./mscgen-BmfuTbzG.js`).then(e=>Q(e.xu)),[])}}),P.of({name:`MsGenny`,extensions:[`msgenny`],load(){return X(()=>import(`./mscgen-BmfuTbzG.js`).then(e=>Q(e.msgenny)),[])}}),P.of({name:`Vue`,extensions:[`vue`],load(){return X(()=>import(`./dist-C-Jm45P4.js`).then(e=>e.vue()),__vite__mapDeps([22,1]))}}),P.of({name:`Angular Template`,load(){return X(()=>import(`./dist-CHdx1Jri.js`).then(e=>e.angular()),__vite__mapDeps([23,1]))}})],EQ=`#2e3440`,DQ=`#3b4252`,OQ=`#434c5e`,kQ=`#4c566a`,AQ=`#e5e9f0`,jQ=`#eceff4`,MQ=`#8fbcbb`,NQ=`#88c0d0`,PQ=`#81a1c1`,FQ=`#5e81ac`,IQ=`#bf616a`,LQ=`#d08770`,RQ=`#ebcb8b`,zQ=`#a3be8c`,BQ=`#b48ead`,VQ=`#d30102`,HQ=jQ,UQ=HQ,WQ=`#ffffff`,GQ=DQ,KQ=HQ,qQ=DQ,JQ=[N.theme({"&":{color:EQ,backgroundColor:WQ},".cm-content":{caretColor:qQ},".cm-cursor, .cm-dropCursor":{borderLeftColor:qQ},"&.cm-focused .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:KQ},".cm-panels":{backgroundColor:HQ,color:kQ},".cm-panels.cm-panels-top":{borderBottom:`2px solid black`},".cm-panels.cm-panels-bottom":{borderTop:`2px solid black`},".cm-searchMatch":{backgroundColor:`#72a1ff59`,outline:`1px solid ${kQ}`},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:AQ},".cm-activeLine":{backgroundColor:UQ},".cm-selectionMatch":{backgroundColor:AQ},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{outline:`1px solid ${kQ}`},"&.cm-focused .cm-matchingBracket":{backgroundColor:jQ},".cm-gutters":{backgroundColor:jQ,color:EQ,border:`none`},".cm-activeLineGutter":{backgroundColor:UQ},".cm-foldPlaceholder":{backgroundColor:`transparent`,border:`none`,color:`#ddd`},".cm-tooltip":{border:`none`,backgroundColor:GQ},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:`transparent`,borderBottomColor:`transparent`},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:GQ,borderBottomColor:GQ},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:UQ,color:kQ}}},{dark:!1}),ee(de.define([{tag:k.keyword,color:FQ},{tag:[k.name,k.deleted,k.character,k.propertyName,k.macroName],color:LQ},{tag:[k.variableName],color:LQ},{tag:[k.function(k.variableName)],color:FQ},{tag:[k.labelName],color:PQ},{tag:[k.color,k.constant(k.name),k.standard(k.name)],color:FQ},{tag:[k.definition(k.name),k.separator],color:zQ},{tag:[k.brace],color:MQ},{tag:[k.annotation],color:VQ},{tag:[k.number,k.changed,k.annotation,k.modifier,k.self,k.namespace],color:NQ},{tag:[k.typeName,k.className],color:RQ},{tag:[k.operator,k.operatorKeyword],color:zQ},{tag:[k.tagName],color:BQ},{tag:[k.squareBracket],color:IQ},{tag:[k.angleBracket],color:LQ},{tag:[k.attributeName],color:RQ},{tag:[k.regexp],color:FQ},{tag:[k.quote],color:DQ},{tag:[k.string],color:LQ},{tag:k.link,color:MQ,textDecoration:`underline`,textUnderlinePosition:`under`},{tag:[k.url,k.escape,k.special(k.string)],color:LQ},{tag:[k.meta],color:NQ},{tag:[k.comment],color:OQ,fontStyle:`italic`},{tag:k.strong,fontWeight:`bold`,color:FQ},{tag:k.emphasis,fontStyle:`italic`,color:FQ},{tag:k.strikethrough,textDecoration:`line-through`},{tag:k.heading,fontWeight:`bold`,color:FQ},{tag:k.special(k.heading1),fontWeight:`bold`,color:FQ},{tag:k.heading1,fontWeight:`bold`,color:FQ},{tag:[k.heading2,k.heading3,k.heading4],fontWeight:`bold`,color:FQ},{tag:[k.heading5,k.heading6],color:FQ},{tag:[k.atom,k.bool,k.special(k.variableName)],color:LQ},{tag:[k.processingInstruction,k.inserted],color:MQ},{tag:[k.contentSeparator],color:RQ},{tag:k.invalid,color:OQ,borderBottom:`1px dotted ${VQ}`}]))],YQ=typeof String.prototype.normalize==`function`?e=>e.normalize(`NFKD`):e=>e,XQ=class{constructor(e,t,n=0,r=e.length,i,a){this.test=a,this.value={from:0,to:0,precise:!1},this.done=!1,this.matches=[],this.buffer=``,this.bufferPos=0,this.iter=e.iterRange(n,r),this.bufferStart=n,this.normalize=i?e=>i(YQ(e)):YQ,this.query=this.normalize(t)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return g(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0)return this.done=!0,this;let t=ae(e),n=this.bufferStart+this.bufferPos;this.bufferPos+=b(e);let r=this.normalize(t);if(r.length)for(let e=0,i=n,a=!0;;e++){let n=r.charCodeAt(e),o=this.match(n,i,a,this.bufferPos+this.bufferStart,e==r.length-1);if(o)return this.value=o,this;if(e==r.length-1)break;a&&e<t.length&&t.charCodeAt(e)==n?i++:a=!1}}}match(e,t,n,r,i){let a=null;for(let t=0;t<this.matches.length;){let n=this.matches[t],o=!1;this.query.charCodeAt(n.index)==e&&(n.index==this.query.length-1?a={from:n.from,to:r,precise:i&&n.precise}:(n.index++,o=!0)),o?t++:this.matches.splice(t,1)}return this.query.charCodeAt(0)==e&&(this.query.length==1?a={from:t,to:r,precise:n&&i}:this.matches.push({from:t,index:1,precise:n})),a&&this.test&&!this.test(a.from,a.to,this.buffer,this.bufferStart)&&(a=null),a}};typeof Symbol<`u`&&(XQ.prototype[Symbol.iterator]=function(){return this});var ZQ={from:-1,to:-1,match:/.*/.exec(``),precise:!0},QQ=`gm`+(/x/.unicode==null?``:`u`),$Q=class{constructor(e,t,n,r=0,i=e.length){if(this.text=e,this.to=i,this.curLine=``,this.done=!1,this.value=ZQ,/\\[sWDnr]|\n|\r|\[\^/.test(t))return new n$(e,t,n,r,i);this.re=new RegExp(t,QQ+(n?.ignoreCase?`i`:``)),this.test=n?.test,this.iter=e.iter();let a=e.lineAt(r);this.curLineStart=a.from,this.matchPos=i$(e,r),this.getLine(this.curLineStart)}getLine(e){this.iter.next(e),this.iter.lineBreak?this.curLine=``:(this.curLine=this.iter.value,this.curLineStart+this.curLine.length>this.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine=``:this.getLine(0)}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let t=this.matchPos<=this.to&&this.re.exec(this.curLine);if(t){let n=this.curLineStart+t.index,r=n+t[0].length;if(this.matchPos=i$(this.text,r+ +(n==r)),n==this.curLineStart+this.curLine.length&&this.nextLine(),(n<r||n>this.value.to)&&(!this.test||this.test(n,r,t)))return this.value={from:n,to:r,precise:!0,match:t},this;e=this.matchPos-this.curLineStart}else if(this.curLineStart+this.curLine.length<this.to)this.nextLine(),e=0;else return this.done=!0,this}}},e$=new WeakMap,t$=class e{constructor(e,t){this.from=e,this.text=t}get to(){return this.from+this.text.length}static get(t,n,r){let i=e$.get(t);if(!i||i.from>=r||i.to<=n){let i=new e(n,t.sliceString(n,r));return e$.set(t,i),i}if(i.from==n&&i.to==r)return i;let{text:a,from:o}=i;return o>n&&(a=t.sliceString(n,o)+a,o=n),i.to<r&&(a+=t.sliceString(i.to,r)),e$.set(t,new e(o,a)),new e(n,a.slice(n-o,r-o))}},n$=class{constructor(e,t,n,r,i){this.text=e,this.to=i,this.done=!1,this.value=ZQ,this.matchPos=i$(e,r),this.re=new RegExp(t,QQ+(n?.ignoreCase?`i`:``)),this.test=n?.test,this.flat=t$.get(e,r,this.chunkEnd(r+5e3))}chunkEnd(e){return e>=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from,t=this.re.exec(this.flat.text);if(t&&!t[0]&&t.index==e&&(this.re.lastIndex=e+1,t=this.re.exec(this.flat.text)),t){let e=this.flat.from+t.index,n=e+t[0].length;if((this.flat.to>=this.to||t.index+t[0].length<=this.flat.text.length-10)&&(!this.test||this.test(e,n,t)))return this.value={from:e,to:n,precise:!0,match:t},this.matchPos=i$(this.text,n+ +(e==n)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=t$.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+this.flat.text.length*2))}}};typeof Symbol<`u`&&($Q.prototype[Symbol.iterator]=n$.prototype[Symbol.iterator]=function(){return this});function r$(e){try{return new RegExp(e,QQ),!0}catch{return!1}}function i$(e,t){if(t>=e.length)return t;let n=e.lineAt(t),r;for(;t<n.to&&(r=n.text.charCodeAt(t-n.from))>=56320&&r<57344;)t++;return t}var a$=e=>{let{state:t}=e,n=String(t.doc.lineAt(e.state.selection.main.head).number),{close:r,result:i}=Pe(e,{label:t.phrase(`Go to line`),input:{type:`text`,name:`line`,value:n},focus:!0,submitLabel:t.phrase(`go`)});return i.then(n=>{let i=n&&/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(n.elements.line.value);if(!i){e.dispatch({effects:r});return}let a=t.doc.lineAt(t.selection.main.head),[,o,s,c,l]=i,u=c?+c.slice(1):0,d=s?+s:a.number;if(s&&l){let e=d/100;o&&(e=e*(o==`-`?-1:1)+a.number/t.doc.lines),d=Math.round(t.doc.lines*e)}else s&&o&&(d=d*(o==`-`?-1:1)+a.number);let f=t.doc.line(Math.max(1,Math.min(t.doc.lines,d))),p=F.cursor(f.from+Math.max(0,Math.min(u,f.length)));e.dispatch({effects:[r,N.scrollIntoView(p.from,{y:`center`})],selection:p})}),!0},o$={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},s$=u.define({combine(e){return te(e,o$,{highlightWordAroundCursor:(e,t)=>e||t,minSelectionLength:Math.min,maxMatches:Math.min})}});function c$(e){let t=[m$,p$];return e&&t.push(s$.of(e)),t}var l$=Ve.mark({class:`cm-selectionMatch`}),u$=Ve.mark({class:`cm-selectionMatch cm-selectionMatch-main`});function d$(e,t,n,r){return(n==0||e(t.sliceDoc(n-1,n))!=j.Word)&&(r==t.doc.length||e(t.sliceDoc(r,r+1))!=j.Word)}function f$(e,t,n,r){return e(t.sliceDoc(n,n+1))==j.Word&&e(t.sliceDoc(r-1,r))==j.Word}var p$=ce.fromClass(class{constructor(e){this.decorations=this.getDeco(e)}update(e){(e.selectionSet||e.docChanged||e.viewportChanged)&&(this.decorations=this.getDeco(e.view))}getDeco(e){let t=e.state.facet(s$),{state:n}=e,r=n.selection;if(r.ranges.length>1)return Ve.none;let i=r.main,a,o=null;if(i.empty){if(!t.highlightWordAroundCursor)return Ve.none;let e=n.wordAt(i.head);if(!e)return Ve.none;o=n.charCategorizer(i.head),a=n.sliceDoc(e.from,e.to)}else{let e=i.to-i.from;if(e<t.minSelectionLength||e>200)return Ve.none;if(t.wholeWords){if(a=n.sliceDoc(i.from,i.to),o=n.charCategorizer(i.head),!(d$(o,n,i.from,i.to)&&f$(o,n,i.from,i.to)))return Ve.none}else if(a=n.sliceDoc(i.from,i.to),!a)return Ve.none}let s=[];for(let r of e.visibleRanges){let e=new XQ(n.doc,a,r.from,r.to);for(;!e.next().done;){let{from:r,to:a}=e.value;if((!o||d$(o,n,r,a))&&(i.empty&&r<=i.from&&a>=i.to?s.push(u$.range(r,a)):(r>=i.to||a<=i.from)&&s.push(l$.range(r,a)),s.length>t.maxMatches))return Ve.none}}return Ve.set(s)}},{decorations:e=>e.decorations}),m$=N.baseTheme({".cm-selectionMatch":{backgroundColor:`#99ff7780`},".cm-searchMatch .cm-selectionMatch":{backgroundColor:`transparent`}}),h$=({state:e,dispatch:t})=>{let{selection:n}=e,r=F.create(n.ranges.map(t=>e.wordAt(t.head)||F.cursor(t.head)),n.mainIndex);return r.eq(n)?!1:(t(e.update({selection:r})),!0)};function g$(e,t){let{main:n,ranges:r}=e.selection,i=e.wordAt(n.head),a=i&&i.from==n.from&&i.to==n.to;for(let n=!1,i=new XQ(e.doc,t,r[r.length-1].to);;)if(i.next(),i.done){if(n)return null;i=new XQ(e.doc,t,0,Math.max(0,r[r.length-1].from-1)),n=!0}else{if(n&&r.some(e=>e.from==i.value.from))continue;if(a){let t=e.wordAt(i.value.from);if(!t||t.from!=i.value.from||t.to!=i.value.to)continue}return i.value}}var _$=({state:e,dispatch:t})=>{let{ranges:n}=e.selection;if(n.some(e=>e.from===e.to))return h$({state:e,dispatch:t});let r=e.sliceDoc(n[0].from,n[0].to);if(e.selection.ranges.some(t=>e.sliceDoc(t.from,t.to)!=r))return!1;let i=g$(e,r);return i?(t(e.update({selection:e.selection.addRange(F.range(i.from,i.to),!1),effects:N.scrollIntoView(i.to)})),!0):!1},v$=u.define({combine(e){return te(e,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:e=>new Q$(e),scrollToMatch:e=>N.scrollIntoView(e)})}}),y$=class{constructor(e){this.search=e.search,this.caseSensitive=!!e.caseSensitive,this.literal=!!e.literal,this.regexp=!!e.regexp,this.replace=e.replace||``,this.valid=!!this.search&&(!this.regexp||r$(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!e.wholeWord,this.test=e.test}unquote(e){return this.literal?e:e.replace(/\\([nrt\\])/g,(e,t)=>t==`n`?`
|
|
187
|
-
`:t==`r`?`\r`:t==`t`?` `:`\\`)}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord&&this.test==e.test}create(){return this.regexp?new A$(this):new w$(this)}getCursor(e,t=0,n){let r=e.doc?e:ne.create({doc:e});return n??=r.doc.length,this.regexp?E$(this,r,t,n):S$(this,r,t,n)}},b$=class{constructor(e){this.spec=e}};function x$(e,t,n){return(r,i,a,o)=>n&&!n(r,i,a,o)?!1:e(r>=o&&i<=o+a.length?a.slice(r-o,i-o):t.doc.sliceString(r,i),t,r,i)}function S$(e,t,n,r){let i;return e.wholeWord&&(i=C$(t.doc,t.charCategorizer(t.selection.main.head))),e.test&&(i=x$(e.test,t,i)),new XQ(t.doc,e.unquoted,n,r,e.caseSensitive?void 0:e=>e.toLowerCase(),i)}function C$(e,t){return(n,r,i,a)=>((a>n||a+i.length<r)&&(a=Math.max(0,n-2),i=e.sliceString(a,Math.min(e.length,r+2))),(t(D$(i,n-a))!=j.Word||t(O$(i,n-a))!=j.Word)&&(t(O$(i,r-a))!=j.Word||t(D$(i,r-a))!=j.Word))}var w$=class extends b${constructor(e){super(e)}nextMatch(e,t,n){let r=S$(this.spec,e,n,e.doc.length).nextOverlapping();if(r.done){let n=Math.min(e.doc.length,t+this.spec.unquoted.length);r=S$(this.spec,e,0,n).nextOverlapping()}return r.done||r.value.from==t&&r.value.to==n?null:r.value}prevMatchInRange(e,t,n){for(let r=n;;){let n=Math.max(t,r-1e4-this.spec.unquoted.length),i=S$(this.spec,e,n,r),a=null;for(;!i.nextOverlapping().done;)a=i.value;if(a)return a;if(n==t)return null;r-=1e4}}prevMatch(e,t,n){let r=this.prevMatchInRange(e,0,t);return r||=this.prevMatchInRange(e,Math.max(0,n-this.spec.unquoted.length),e.doc.length),r&&(r.from!=t||r.to!=n)?r:null}getReplacement(e){return this.spec.unquote(this.spec.replace)}matchAll(e,t){let n=S$(this.spec,e,0,e.doc.length),r=[];for(;!n.next().done;){if(r.length>=t)return null;r.push(n.value)}return r}highlight(e,t,n,r){let i=S$(this.spec,e,Math.max(0,t-this.spec.unquoted.length),Math.min(n+this.spec.unquoted.length,e.doc.length));for(;!i.next().done;)r(i.value.from,i.value.to)}};function T$(e,t,n){return(r,i,a)=>(!n||n(r,i,a))&&e(a[0],t,r,i)}function E$(e,t,n,r){let i;return e.wholeWord&&(i=k$(t.charCategorizer(t.selection.main.head))),e.test&&(i=T$(e.test,t,i)),new $Q(t.doc,e.search,{ignoreCase:!e.caseSensitive,test:i},n,r)}function D$(e,t){return e.slice(i(e,t,!1),t)}function O$(e,t){return e.slice(t,i(e,t))}function k$(e){return(t,n,r)=>!r[0].length||(e(D$(r.input,r.index))!=j.Word||e(O$(r.input,r.index))!=j.Word)&&(e(O$(r.input,r.index+r[0].length))!=j.Word||e(D$(r.input,r.index+r[0].length))!=j.Word)}var A$=class extends b${nextMatch(e,t,n){let r=E$(this.spec,e,n,e.doc.length).next();return r.done&&(r=E$(this.spec,e,0,t).next()),r.done?null:r.value}prevMatchInRange(e,t,n){for(let r=1;;r++){let i=Math.max(t,n-r*1e4),a=E$(this.spec,e,i,n),o=null;for(;!a.next().done;)o=a.value;if(o&&(i==t||o.from>i+10))return o;if(i==t)return null}}prevMatch(e,t,n){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,n,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&]|\d+)/g,(t,n)=>{if(n==`&`)return e.match[0];if(n==`$`)return`$`;for(let t=n.length;t>0;t--){let r=+n.slice(0,t);if(r>0&&r<e.match.length)return e.match[r]+n.slice(t)}return t})}matchAll(e,t){let n=E$(this.spec,e,0,e.doc.length),r=[];for(;!n.next().done;){if(r.length>=t)return null;r.push(n.value)}return r}highlight(e,t,n,r){let i=E$(this.spec,e,Math.max(0,t-250),Math.min(n+250,e.doc.length));for(;!i.next().done;)r(i.value.from,i.value.to)}},j$=S.define(),M$=S.define(),N$=w.define({create(e){return new P$(K$(e).create(),null)},update(e,t){for(let n of t.effects)n.is(j$)?e=new P$(n.value.create(),e.panel):n.is(M$)&&(e=new P$(e.query,n.value?G$:null));return e},provide:e=>Te.from(e,e=>e.panel)}),P$=class{constructor(e,t){this.query=e,this.panel=t}},F$=Ve.mark({class:`cm-searchMatch`}),I$=Ve.mark({class:`cm-searchMatch cm-searchMatch-selected`}),L$=ce.fromClass(class{constructor(e){this.view=e,this.decorations=this.highlight(e.state.field(N$))}update(e){let t=e.state.field(N$);(t!=e.startState.field(N$)||e.docChanged||e.selectionSet||e.viewportChanged)&&(this.decorations=this.highlight(t))}highlight({query:e,panel:t}){if(!t||!e.spec.valid)return Ve.none;let{view:r}=this,i=new n;for(let t=0,n=r.visibleRanges,a=n.length;t<a;t++){let{from:o,to:s}=n[t];for(;t<a-1&&s>n[t+1].from-500;)s=n[++t].to;e.highlight(r.state,o,s,(e,t)=>{let n=r.state.selection.ranges.some(n=>n.from==e&&n.to==t);i.add(e,t,n?I$:F$)})}return i.finish()}},{decorations:e=>e.decorations});function R$(e){return t=>{let n=t.state.field(N$,!1);return n&&n.query.spec.valid?e(t,n):Y$(t)}}var z$=R$((e,{query:t})=>{let{to:n}=e.state.selection.main,r=t.nextMatch(e.state,n,n);if(!r)return!1;let i=F.single(r.from,r.to),a=e.state.facet(v$);return e.dispatch({selection:i,effects:[n1(e,r),a.scrollToMatch(i.main,e)],userEvent:`select.search`}),J$(e),!0}),B$=R$((e,{query:t})=>{let{state:n}=e,{from:r}=n.selection.main,i=t.prevMatch(n,r,r);if(!i)return!1;let a=F.single(i.from,i.to),o=e.state.facet(v$);return e.dispatch({selection:a,effects:[n1(e,i),o.scrollToMatch(a.main,e)],userEvent:`select.search`}),J$(e),!0}),V$=R$((e,{query:t})=>{let n=t.matchAll(e.state,1e3);return!n||!n.length?!1:(e.dispatch({selection:F.create(n.map(e=>F.range(e.from,e.to))),userEvent:`select.search.matches`}),!0)}),H$=({state:e,dispatch:t})=>{let n=e.selection;if(n.ranges.length>1||n.main.empty)return!1;let{from:r,to:i}=n.main,a=[],o=0;for(let t=new XQ(e.doc,e.sliceDoc(r,i));!t.next().done;){if(a.length>1e3)return!1;t.value.from==r&&(o=a.length),a.push(F.range(t.value.from,t.value.to))}return t(e.update({selection:F.create(a,o),userEvent:`select.search.matches`})),!0},U$=R$((e,{query:t})=>{let{state:n}=e,{from:r,to:i}=n.selection.main;if(n.readOnly)return!1;let a=t.nextMatch(n,r,r);if(!a)return!1;let o=a,s=[],c,l,u=[];o.precise?o.from==r&&o.to==i&&(l=n.toText(t.getReplacement(o)),s.push({from:o.from,to:o.to,insert:l}),u.push(N.announce.of(n.phrase(`replaced match on line $`,n.doc.lineAt(r).number)+`.`))):o=t.nextMatch(n,o.from,o.to);let d=e.state.changes(s);return o&&(c=F.single(o.from,o.to).map(d),u.push(n1(e,o)),u.push(n.facet(v$).scrollToMatch(c.main,e))),e.dispatch({changes:d,selection:c,effects:u,userEvent:`input.replace`}),!0}),W$=R$((e,{query:t})=>{if(e.state.readOnly)return!1;let n=[];for(let r of t.matchAll(e.state,1e9)){let{from:e,to:i,precise:a}=r;a&&n.push({from:e,to:i,insert:t.getReplacement(r)})}if(!n.length)return!1;let r=e.state.phrase(`replaced $ matches`,n.length)+`.`;return e.dispatch({changes:n,effects:N.announce.of(r),userEvent:`input.replace.all`}),!0});function G$(e){return e.state.facet(v$).createPanel(e)}function K$(e,t){let n=e.selection.main,r=n.empty||n.to>n.from+100?``:e.sliceDoc(n.from,n.to);if(t&&!r)return t;let i=e.facet(v$);return new y$({search:t?.literal??i.literal?r:r.replace(/\n/g,`\\n`),caseSensitive:t?.caseSensitive??i.caseSensitive,literal:t?.literal??i.literal,regexp:t?.regexp??i.regexp,wholeWord:t?.wholeWord??i.wholeWord})}function q$(e){let t=Ie(e,G$);return t&&t.dom.querySelector(`[main-field]`)}function J$(e){let t=q$(e);t&&t==e.root.activeElement&&t.select()}var Y$=e=>{let t=e.state.field(N$,!1);if(t&&t.panel){let n=q$(e);if(n&&n!=e.root.activeElement){let r=K$(e.state,t.query.spec);r.valid&&e.dispatch({effects:j$.of(r)}),n.focus(),n.select()}}else e.dispatch({effects:[M$.of(!0),t?j$.of(K$(e.state,t.query.spec)):S.appendConfig.of(i1)]});return!0},X$=e=>{let t=e.state.field(N$,!1);if(!t||!t.panel)return!1;let n=Ie(e,G$);return n&&n.dom.contains(e.root.activeElement)&&e.focus(),e.dispatch({effects:M$.of(!1)}),!0},Z$=[{key:`Mod-f`,run:Y$,scope:`editor search-panel`},{key:`F3`,run:z$,shift:B$,scope:`editor search-panel`,preventDefault:!0},{key:`Mod-g`,run:z$,shift:B$,scope:`editor search-panel`,preventDefault:!0},{key:`Escape`,run:X$,scope:`editor search-panel`},{key:`Mod-Shift-l`,run:H$},{key:`Mod-Alt-g`,run:a$},{key:`Mod-d`,run:_$,preventDefault:!0}],Q$=class{constructor(e){this.view=e;let t=this.query=e.state.field(N$).query.spec;this.commit=this.commit.bind(this),this.searchField=ue(`input`,{value:t.search,placeholder:$$(e,`Find`),"aria-label":$$(e,`Find`),class:`cm-textfield`,name:`search`,form:``,"main-field":`true`,onchange:this.commit,onkeyup:this.commit}),this.replaceField=ue(`input`,{value:t.replace,placeholder:$$(e,`Replace`),"aria-label":$$(e,`Replace`),class:`cm-textfield`,name:`replace`,form:``,onchange:this.commit,onkeyup:this.commit}),this.caseField=ue(`input`,{type:`checkbox`,name:`case`,form:``,checked:t.caseSensitive,onchange:this.commit}),this.reField=ue(`input`,{type:`checkbox`,name:`re`,form:``,checked:t.regexp,onchange:this.commit}),this.wordField=ue(`input`,{type:`checkbox`,name:`word`,form:``,checked:t.wholeWord,onchange:this.commit});function n(e,t,n){return ue(`button`,{class:`cm-button`,name:e,onclick:t,type:`button`},n)}this.dom=ue(`div`,{onkeydown:e=>this.keydown(e),class:`cm-search`},[this.searchField,n(`next`,()=>z$(e),[$$(e,`next`)]),n(`prev`,()=>B$(e),[$$(e,`previous`)]),n(`select`,()=>V$(e),[$$(e,`all`)]),ue(`label`,null,[this.caseField,$$(e,`match case`)]),ue(`label`,null,[this.reField,$$(e,`regexp`)]),ue(`label`,null,[this.wordField,$$(e,`by word`)]),...e.state.readOnly?[]:[ue(`br`),this.replaceField,n(`replace`,()=>U$(e),[$$(e,`replace`)]),n(`replaceAll`,()=>W$(e),[$$(e,`replace all`)])],ue(`button`,{name:`close`,onclick:()=>X$(e),"aria-label":$$(e,`close`),type:`button`},[`×`])])}commit(){let e=new y$({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});e.eq(this.query)||(this.query=e,this.view.dispatch({effects:j$.of(e)}))}keydown(e){Be(this.view,e,`search-panel`)?e.preventDefault():e.keyCode==13&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?B$:z$)(this.view)):e.keyCode==13&&e.target==this.replaceField&&(e.preventDefault(),U$(this.view))}update(e){for(let t of e.transactions)for(let e of t.effects)e.is(j$)&&!e.value.eq(this.query)&&this.setQuery(e.value)}setQuery(e){this.query=e,this.searchField.value=e.search,this.replaceField.value=e.replace,this.caseField.checked=e.caseSensitive,this.reField.checked=e.regexp,this.wordField.checked=e.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(v$).top}};function $$(e,t){return e.state.phrase(t)}var e1=30,t1=/[\s\.,:;?!]/;function n1(e,{from:t,to:n}){let r=e.state.doc.lineAt(t),i=e.state.doc.lineAt(n).to,a=Math.max(r.from,t-e1),o=Math.min(i,n+e1),s=e.state.sliceDoc(a,o);if(a!=r.from){for(let e=0;e<e1;e++)if(!t1.test(s[e+1])&&t1.test(s[e])){s=s.slice(e);break}}if(o!=i){for(let e=s.length-1;e>s.length-e1;e--)if(!t1.test(s[e-1])&&t1.test(s[e])){s=s.slice(0,e);break}}return N.announce.of(`${e.state.phrase(`current match`)}. ${s} ${e.state.phrase(`on line`)} ${r.number}.`)}var r1=N.baseTheme({".cm-panel.cm-search":{padding:`2px 6px 4px`,position:`relative`,"& [name=close]":{position:`absolute`,top:`0`,right:`4px`,backgroundColor:`inherit`,border:`none`,font:`inherit`,padding:0,margin:0},"& input, & button, & label":{margin:`.2em .6em .2em 0`},"& input[type=checkbox]":{marginRight:`.2em`},"& label":{fontSize:`80%`,whiteSpace:`pre`}},"&light .cm-searchMatch":{backgroundColor:`#ffff0054`},"&dark .cm-searchMatch":{backgroundColor:`#00ffff8a`},"&light .cm-searchMatch-selected":{backgroundColor:`#ff6a0054`},"&dark .cm-searchMatch-selected":{backgroundColor:`#ff00ff8a`}}),i1=[N$,E.low(L$),r1],a1=class{constructor(e,t,n){this.from=e,this.to=t,this.diagnostic=n}},o1=class e{constructor(e,t,n){this.diagnostics=e,this.panel=t,this.selected=n}static init(t,r,i){let a=i.facet(b1).markerFilter;a&&(t=a(t,i));let o=t.slice().sort((e,t)=>e.from-t.from||e.to-t.to),s=new n,c=[],l=0,u=i.doc.iter(),d=0,f=i.doc.length;for(let e=0;;){let t=e==o.length?null:o[e];if(!t&&!c.length)break;let n,r;if(c.length)n=l,r=c.reduce((e,t)=>Math.min(e,t.to),t&&t.from>n?t.from:1e8);else{if(n=t.from,n>f)break;r=t.to,c.push(t),e++}for(;e<o.length;){let t=o[e];if(t.from==n&&(t.to>t.from||t.to==n))c.push(t),e++,r=Math.min(t.to,r);else{r=Math.min(t.from,r);break}}r=Math.min(r,f);let i=!1;if(c.some(e=>e.from==n&&(e.to==r||r==f))&&(i=n==r,!i&&r-n<10)){let e=n-(d+u.value.length);e>0&&(u.next(e),d=n);for(let e=n;;){if(e>=r){i=!0;break}if(!u.lineBreak&&d+u.value.length>e)break;e=d+u.value.length,d+=u.value.length,u.next()}}let a=j1(c);if(i)s.add(n,n,Ve.widget({widget:new w1(a),diagnostics:c.slice()}));else{let e=c.reduce((e,t)=>t.markClass?e+` `+t.markClass:e,``);s.add(n,r,Ve.mark({class:`cm-lintRange cm-lintRange-`+a+e,diagnostics:c.slice(),inclusiveEnd:c.some(e=>e.to>r)}))}if(l=r,l==f)break;for(let e=0;e<c.length;e++)c[e].to<=l&&c.splice(e--,1)}let p=s.finish();return new e(p,r,s1(p))}};function s1(e,t=null,n=0){let r=null;return e.between(n,1e9,(e,n,{spec:i})=>{if(!(t&&i.diagnostics.indexOf(t)<0))if(!r)r=new a1(e,n,t||i.diagnostics[0]);else if(i.diagnostics.indexOf(r.diagnostic)<0)return!1;else r=new a1(r.from,n,r.diagnostic)}),r}function c1(e,t){let n=t.pos,r=t.end||n,i=e.state.facet(b1).hideOn(e,n,r);if(i!=null)return i;let a=e.startState.doc.lineAt(t.pos);return!!(e.effects.some(e=>e.is(u1))||e.changes.touchesRange(a.from,Math.max(a.to,r)))}function l1(e,t){return e.field(p1,!1)?t:t.concat(S.appendConfig.of(M1))}var u1=S.define(),d1=S.define(),f1=S.define(),p1=w.define({create(){return new o1(Ve.none,null,null)},update(e,t){if(t.docChanged&&e.diagnostics.size){let n=e.diagnostics.map(t.changes),r=null,i=e.panel;if(e.selected){let i=t.changes.mapPos(e.selected.from,1);r=s1(n,e.selected.diagnostic,i)||s1(n,null,i)}!n.size&&i&&t.state.facet(b1).autoPanel&&(i=null),e=new o1(n,i,r)}for(let n of t.effects)if(n.is(u1)){let r=t.state.facet(b1).autoPanel?n.value.length?E1.open:null:e.panel;e=o1.init(n.value,r,t.state)}else n.is(d1)?e=new o1(e.diagnostics,n.value?E1.open:null,e.selected):n.is(f1)&&(e=new o1(e.diagnostics,e.panel,n.value));return e},provide:e=>[Te.from(e,e=>e.panel),N.decorations.from(e,e=>e.diagnostics)]}),m1=Ve.mark({class:`cm-lintRange cm-lintRange-active`});function h1(e,t,n){let{diagnostics:r}=e.state.field(p1),i,a=-1,o=-1;r.between(t-+(n<0),t+ +(n>0),(e,r,{spec:s})=>{if(t>=e&&t<=r&&(e==r||(t>e||n>0)&&(t<r||n<0)))return i=s.diagnostics,a=e,o=r,!1});let s=e.state.facet(b1).tooltipFilter;return i&&s&&(i=s(i,e.state)),i?{pos:a,end:o,above:e.state.doc.lineAt(a).to<o,create(){return{dom:g1(e,i)}}}:null}function g1(e,t){return ue(`ul`,{class:`cm-tooltip-lint`},t.map(t=>C1(e,t,!1)))}var _1=e=>{let t=e.state.field(p1,!1);(!t||!t.panel)&&e.dispatch({effects:l1(e.state,[d1.of(!0)])});let n=Ie(e,E1.open);return n&&n.dom.querySelector(`.cm-panel-lint ul`).focus(),!0},v1=e=>{let t=e.state.field(p1,!1);return!t||!t.panel?!1:(e.dispatch({effects:d1.of(!1)}),!0)},y1=[{key:`Mod-Shift-m`,run:_1,preventDefault:!0},{key:`F8`,run:e=>{let t=e.state.field(p1,!1);if(!t)return!1;let n=e.state.selection.main,r=s1(t.diagnostics,null,n.to+1);return!r&&(r=s1(t.diagnostics,null,0),!r||r.from==n.from&&r.to==n.to)?!1:(e.dispatch({selection:{anchor:r.from,head:r.to},scrollIntoView:!0}),!0)}}],b1=u.define({combine(e){return{sources:e.map(e=>e.source).filter(e=>e!=null),...te(e.map(e=>e.config),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null,hideOn:()=>null},{delay:Math.max,markerFilter:x1,tooltipFilter:x1,needsRefresh:(e,t)=>e?t?n=>e(n)||t(n):e:t,hideOn:(e,t)=>e?t?(n,r,i)=>e(n,r,i)||t(n,r,i):e:t,autoPanel:(e,t)=>e||t})}}});function x1(e,t){return e?t?(n,r)=>t(e(n,r),r):e:t}function S1(e){let t=[];if(e)actions:for(let{name:n}of e){for(let e=0;e<n.length;e++){let r=n[e];if(/[a-zA-Z]/.test(r)&&!t.some(e=>e.toLowerCase()==r.toLowerCase())){t.push(r);continue actions}}t.push(``)}return t}function C1(e,t,n){let r=n?S1(t.actions):[];return ue(`li`,{class:`cm-diagnostic cm-diagnostic-`+t.severity},ue(`span`,{class:`cm-diagnosticText`},t.renderMessage?t.renderMessage(e):t.message),t.actions?.map((n,i)=>{let a=!1,o=r=>{if(r.preventDefault(),a)return;a=!0;let i=s1(e.state.field(p1).diagnostics,t);i&&n.apply(e,i.from,i.to)},{name:s}=n,c=r[i]?s.indexOf(r[i]):-1,l=c<0?s:[s.slice(0,c),ue(`u`,s.slice(c,c+1)),s.slice(c+1)];return ue(`button`,{type:`button`,class:`cm-diagnosticAction`+(n.markClass?` `+n.markClass:``),onclick:o,onmousedown:o,"aria-label":` Action: ${s}${c<0?``:` (access key "${r[i]})"`}.`},l)}),t.source&&ue(`div`,{class:`cm-diagnosticSource`},t.source))}var w1=class extends O{constructor(e){super(),this.sev=e}eq(e){return e.sev==this.sev}toDOM(){return ue(`span`,{class:`cm-lintPoint cm-lintPoint-`+this.sev})}},T1=class{constructor(e,t){this.diagnostic=t,this.id=`item_`+Math.floor(Math.random()*4294967295).toString(16),this.dom=C1(e,t,!0),this.dom.id=this.id,this.dom.setAttribute(`role`,`option`)}},E1=class e{constructor(e){this.view=e,this.items=[];let t=t=>{if(!(t.ctrlKey||t.altKey||t.metaKey)){if(t.keyCode==27)v1(this.view),this.view.focus();else if(t.keyCode==38||t.keyCode==33)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(t.keyCode==40||t.keyCode==34)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(t.keyCode==36)this.moveSelection(0);else if(t.keyCode==35)this.moveSelection(this.items.length-1);else if(t.keyCode==13)this.view.focus();else if(t.keyCode>=65&&t.keyCode<=90&&this.selectedIndex>=0){let{diagnostic:n}=this.items[this.selectedIndex],r=S1(n.actions);for(let i=0;i<r.length;i++)if(r[i].toUpperCase().charCodeAt(0)==t.keyCode){let t=s1(this.view.state.field(p1).diagnostics,n);t&&n.actions[i].apply(e,t.from,t.to)}}else return;t.preventDefault()}},n=e=>{for(let t=0;t<this.items.length;t++)this.items[t].dom.contains(e.target)&&this.moveSelection(t)};this.list=ue(`ul`,{tabIndex:0,role:`listbox`,"aria-label":this.view.state.phrase(`Diagnostics`),onkeydown:t,onclick:n}),this.dom=ue(`div`,{class:`cm-panel-lint`},this.list,ue(`button`,{type:`button`,name:`close`,"aria-label":this.view.state.phrase(`close`),onclick:()=>v1(this.view)},`×`)),this.update()}get selectedIndex(){let e=this.view.state.field(p1).selected;if(!e)return-1;for(let t=0;t<this.items.length;t++)if(this.items[t].diagnostic==e.diagnostic)return t;return-1}update(){let{diagnostics:e,selected:t}=this.view.state.field(p1),n=0,r=!1,i=null,a=new Set;for(e.between(0,this.view.state.doc.length,(e,o,{spec:s})=>{for(let e of s.diagnostics){if(a.has(e))continue;a.add(e);let o=-1,s;for(let t=n;t<this.items.length;t++)if(this.items[t].diagnostic==e){o=t;break}o<0?(s=new T1(this.view,e),this.items.splice(n,0,s),r=!0):(s=this.items[o],o>n&&(this.items.splice(n,o-n),r=!0)),t&&s.diagnostic==t.diagnostic?s.dom.hasAttribute(`aria-selected`)||(s.dom.setAttribute(`aria-selected`,`true`),i=s):s.dom.hasAttribute(`aria-selected`)&&s.dom.removeAttribute(`aria-selected`),n++}});n<this.items.length&&!(this.items.length==1&&this.items[0].diagnostic.from<0);)r=!0,this.items.pop();this.items.length==0&&(this.items.push(new T1(this.view,{from:-1,to:-1,severity:`info`,message:this.view.state.phrase(`No diagnostics`)})),r=!0),i?(this.list.setAttribute(`aria-activedescendant`,i.id),this.view.requestMeasure({key:this,read:()=>({sel:i.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:e,panel:t})=>{let n=t.height/this.list.offsetHeight;e.top<t.top?this.list.scrollTop-=(t.top-e.top)/n:e.bottom>t.bottom&&(this.list.scrollTop+=(e.bottom-t.bottom)/n)}})):this.selectedIndex<0&&this.list.removeAttribute(`aria-activedescendant`),r&&this.sync()}sync(){let e=this.list.firstChild;function t(){let t=e;e=t.nextSibling,t.remove()}for(let n of this.items)if(n.dom.parentNode==this.list){for(;e!=n.dom;)t();e=n.dom.nextSibling}else this.list.insertBefore(n.dom,e);for(;e;)t()}moveSelection(e){if(this.selectedIndex<0)return;let t=s1(this.view.state.field(p1).diagnostics,this.items[e].diagnostic);t&&this.view.dispatch({selection:{anchor:t.from,head:t.to},scrollIntoView:!0,effects:f1.of(t)})}static open(t){return new e(t)}};function D1(e,t=`viewBox="0 0 40 40"`){return`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" ${t}>${encodeURIComponent(e)}</svg>')`}function O1(e){return D1(`<path d="m0 2.5 l2 -1.5 l1 0 l2 1.5 l1 0" stroke="${e}" fill="none" stroke-width=".7"/>`,`width="6" height="3"`)}var k1=N.baseTheme({".cm-diagnostic":{padding:`3px 6px 3px 8px`,marginLeft:`-1px`,display:`block`,whiteSpace:`pre-wrap`},".cm-diagnostic-error":{borderLeft:`5px solid #d11`},".cm-diagnostic-warning":{borderLeft:`5px solid orange`},".cm-diagnostic-info":{borderLeft:`5px solid #999`},".cm-diagnostic-hint":{borderLeft:`5px solid #66d`},".cm-diagnosticAction":{font:`inherit`,border:`none`,padding:`2px 4px`,backgroundColor:`#444`,color:`white`,borderRadius:`3px`,marginLeft:`8px`,cursor:`pointer`},".cm-diagnosticSource":{fontSize:`70%`,opacity:.7},".cm-lintRange":{backgroundPosition:`left bottom`,backgroundRepeat:`repeat-x`,paddingBottom:`0.7px`},".cm-lintRange-error":{backgroundImage:O1(`#d11`)},".cm-lintRange-warning":{backgroundImage:O1(`orange`)},".cm-lintRange-info":{backgroundImage:O1(`#999`)},".cm-lintRange-hint":{backgroundImage:O1(`#66d`)},".cm-lintRange-active":{backgroundColor:`#ffdd9980`},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:`relative`,"&:after":{content:`""`,position:`absolute`,bottom:0,left:`-2px`,borderLeft:`3px solid transparent`,borderRight:`3px solid transparent`,borderBottom:`4px solid #d11`}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:`orange`}},".cm-lintPoint-info":{"&:after":{borderBottomColor:`#999`}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:`#66d`}},".cm-panel.cm-panel-lint":{position:`relative`,"& ul":{maxHeight:`100px`,overflowY:`auto`,"& [aria-selected]":{backgroundColor:`#ddd`,"& u":{textDecoration:`underline`}},"&:focus [aria-selected]":{background_fallback:`#bdf`,backgroundColor:`Highlight`,color_fallback:`white`,color:`HighlightText`},"& u":{textDecoration:`none`},padding:0,margin:0},"& [name=close]":{position:`absolute`,top:`0`,right:`2px`,background:`inherit`,border:`none`,font:`inherit`,padding:0,margin:0}},"&dark .cm-lintRange-active":{backgroundColor:`#86714a80`},"&dark .cm-panel.cm-panel-lint ul":{"& [aria-selected]":{backgroundColor:`#2e343e`}}});function A1(e){return e==`error`?4:e==`warning`?3:e==`info`?2:1}function j1(e){let t=`hint`,n=1;for(let r of e){let e=A1(r.severity);e>n&&(n=e,t=r.severity)}return t}var M1=[p1,N.decorations.compute([p1],e=>{let{selected:t,panel:n}=e.field(p1);return!t||!n||t.from==t.to?Ve.none:Ve.set([m1.range(t.from,t.to)])}),ge(h1,{hideOn:c1}),k1],N1=[Ye(),Re(),Ge(),bK(),pe(),ye(),qe(),ne.allowMultipleSelections.of(!0),T(),ee(Se,{fallback:!0}),ze(),RG(),tK(),xe(),e(),fe(),c$(),Me.of([...WG,...DJ,...Z$,...zK,...A,...nK,...y1])];Ge(),bK(),ye(),ee(Se,{fallback:!0}),Me.of([...DJ,...zK]);function P1(e,[t,n]){return Math.min(n,Math.max(t,e))}function F1(e){let t=I.useRef({value:e,previous:e});return I.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var I1=Object.freeze({position:`absolute`,border:0,width:1,height:1,padding:0,margin:-1,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,wordWrap:`normal`}),L1=`VisuallyHidden`,R1=I.forwardRef((e,t)=>(0,L.jsx)(CT.span,{...e,ref:t,style:{...I1,...e.style}}));R1.displayName=L1;var z1=R1,B1=[` `,`Enter`,`ArrowUp`,`ArrowDown`],V1=[` `,`Enter`],H1=`Select`,[U1,W1,G1]=$A(H1),[K1,q1]=mT(H1,[G1,DO]),J1=DO(),[Y1,X1]=K1(H1),[Z1,Q1]=K1(H1),$1=e=>{let{__scopeSelect:t,children:n,open:r,defaultOpen:i,onOpenChange:a,value:o,defaultValue:s,onValueChange:c,dir:l,name:u,autoComplete:d,disabled:f,required:p,form:m}=e,h=J1(t),[g,_]=I.useState(null),[v,y]=I.useState(null),[b,x]=I.useState(!1),S=tj(l),[C,w]=tk({prop:r,defaultProp:i??!1,onChange:a,caller:H1}),[T,E]=tk({prop:o,defaultProp:s,onChange:c,caller:H1}),ee=I.useRef(null),D=g?m||!!g.closest(`form`):!0,[O,k]=I.useState(new Set),te=Array.from(O).map(e=>e.props.value).join(`;`);return(0,L.jsx)(UO,{...h,children:(0,L.jsxs)(Y1,{required:p,scope:t,trigger:g,onTriggerChange:_,valueNode:v,onValueNodeChange:y,valueNodeHasChildren:b,onValueNodeHasChildrenChange:x,contentId:cE(),value:T,onValueChange:E,open:C,onOpenChange:w,dir:S,triggerPointerDownPosRef:ee,disabled:f,children:[(0,L.jsx)(U1.Provider,{scope:t,children:(0,L.jsx)(Z1,{scope:e.__scopeSelect,onNativeOptionAdd:I.useCallback(e=>{k(t=>new Set(t).add(e))},[]),onNativeOptionRemove:I.useCallback(e=>{k(t=>{let n=new Set(t);return n.delete(e),n})},[]),children:n})}),D?(0,L.jsxs)(J0,{"aria-hidden":!0,required:p,tabIndex:-1,name:u,autoComplete:d,value:T,onChange:e=>E(e.target.value),disabled:f,form:m,children:[T===void 0?(0,L.jsx)(`option`,{value:``}):null,Array.from(O)]},te):null]})})};$1.displayName=H1;var e0=`SelectTrigger`,t0=I.forwardRef((e,t)=>{let{__scopeSelect:n,disabled:r=!1,...i}=e,a=J1(n),o=X1(e0,n),s=o.disabled||r,c=fT(t,o.onTriggerChange),l=W1(n),u=I.useRef(`touch`),[d,f,p]=X0(e=>{let t=l().filter(e=>!e.disabled),n=Z0(t,e,t.find(e=>e.value===o.value));n!==void 0&&o.onValueChange(n.value)}),m=e=>{s||(o.onOpenChange(!0),p()),e&&(o.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,L.jsx)(WO,{asChild:!0,...a,children:(0,L.jsx)(CT.button,{type:`button`,role:`combobox`,"aria-controls":o.contentId,"aria-expanded":o.open,"aria-required":o.required,"aria-autocomplete":`none`,dir:o.dir,"data-state":o.open?`open`:`closed`,disabled:s,"data-disabled":s?``:void 0,"data-placeholder":Y0(o.value)?``:void 0,...i,ref:c,onClick:lT(i.onClick,e=>{e.currentTarget.focus(),u.current!==`mouse`&&m(e)}),onPointerDown:lT(i.onPointerDown,e=>{u.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),e.button===0&&e.ctrlKey===!1&&e.pointerType===`mouse`&&(m(e),e.preventDefault())}),onKeyDown:lT(i.onKeyDown,e=>{let t=d.current!==``;!(e.ctrlKey||e.altKey||e.metaKey)&&e.key.length===1&&f(e.key),!(t&&e.key===` `)&&B1.includes(e.key)&&(m(),e.preventDefault())})})})});t0.displayName=e0;var n0=`SelectValue`,r0=I.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:i,children:a,placeholder:o=``,...s}=e,c=X1(n0,n),{onValueNodeHasChildrenChange:l}=c,u=a!==void 0,d=fT(t,c.onValueNodeChange);return aE(()=>{l(u)},[l,u]),(0,L.jsx)(CT.span,{...s,ref:d,style:{pointerEvents:`none`},children:Y0(c.value)?(0,L.jsx)(L.Fragment,{children:o}):a})});r0.displayName=n0;var i0=`SelectIcon`,a0=I.forwardRef((e,t)=>{let{__scopeSelect:n,children:r,...i}=e;return(0,L.jsx)(CT.span,{"aria-hidden":!0,...i,ref:t,children:r||`▼`})});a0.displayName=i0;var o0=`SelectPortal`,s0=e=>(0,L.jsx)(JO,{asChild:!0,...e});s0.displayName=o0;var c0=`SelectContent`,l0=I.forwardRef((e,t)=>{let n=X1(c0,e.__scopeSelect),[r,i]=I.useState();if(aE(()=>{i(new DocumentFragment)},[]),!n.open){let t=r;return t?vS.createPortal((0,L.jsx)(d0,{scope:e.__scopeSelect,children:(0,L.jsx)(U1.Slot,{scope:e.__scopeSelect,children:(0,L.jsx)(`div`,{children:e.children})})}),t):null}return(0,L.jsx)(h0,{...e,ref:t})});l0.displayName=c0;var u0=10,[d0,f0]=K1(c0),p0=`SelectContentImpl`,m0=gT(`SelectContent.RemoveScroll`),h0=I.forwardRef((e,t)=>{let{__scopeSelect:n,position:r=`item-aligned`,onCloseAutoFocus:i,onEscapeKeyDown:a,onPointerDownOutside:o,side:s,sideOffset:c,align:l,alignOffset:u,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:m,hideWhenDetached:h,avoidCollisions:g,..._}=e,v=X1(c0,n),[y,b]=I.useState(null),[x,S]=I.useState(null),C=fT(t,e=>b(e)),[w,T]=I.useState(null),[E,ee]=I.useState(null),D=W1(n),[O,k]=I.useState(!1),te=I.useRef(!1);I.useEffect(()=>{if(y)return fk(y)},[y]),VT();let A=I.useCallback(e=>{let[t,...n]=D().map(e=>e.ref.current),[r]=n.slice(-1),i=document.activeElement;for(let n of e)if(n===i||(n?.scrollIntoView({block:`nearest`}),n===t&&x&&(x.scrollTop=0),n===r&&x&&(x.scrollTop=x.scrollHeight),n?.focus(),document.activeElement!==i))return},[D,x]),j=I.useCallback(()=>A([w,y]),[A,w,y]);I.useEffect(()=>{O&&j()},[O,j]);let{onOpenChange:M,triggerPointerDownPosRef:ne}=v;I.useEffect(()=>{if(y){let e={x:0,y:0},t=t=>{e={x:Math.abs(Math.round(t.pageX)-(ne.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(ne.current?.y??0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():y.contains(n.target)||M(!1),document.removeEventListener(`pointermove`,t),ne.current=null};return ne.current!==null&&(document.addEventListener(`pointermove`,t),document.addEventListener(`pointerup`,n,{capture:!0,once:!0})),()=>{document.removeEventListener(`pointermove`,t),document.removeEventListener(`pointerup`,n,{capture:!0})}}},[y,M,ne]),I.useEffect(()=>{let e=()=>M(!1);return window.addEventListener(`blur`,e),window.addEventListener(`resize`,e),()=>{window.removeEventListener(`blur`,e),window.removeEventListener(`resize`,e)}},[M]);let[re,ie]=X0(e=>{let t=D().filter(e=>!e.disabled),n=Z0(t,e,t.find(e=>e.ref.current===document.activeElement));n&&setTimeout(()=>n.ref.current.focus())}),ae=I.useCallback((e,t,n)=>{let r=!te.current&&!n;(v.value!==void 0&&v.value===t||r)&&(T(e),r&&(te.current=!0))},[v.value]),oe=I.useCallback(()=>y?.focus(),[y]),se=I.useCallback((e,t,n)=>{let r=!te.current&&!n;(v.value!==void 0&&v.value===t||r)&&ee(e)},[v.value]),N=r===`popper`?y0:_0,ce=N===y0?{side:s,sideOffset:c,align:l,alignOffset:u,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:m,hideWhenDetached:h,avoidCollisions:g}:{};return(0,L.jsx)(d0,{scope:n,content:y,viewport:x,onViewportChange:S,itemRefCallback:ae,selectedItem:w,onItemLeave:oe,itemTextRefCallback:se,focusSelectedItem:j,selectedItemText:E,position:r,isPositioned:O,searchRef:re,children:(0,L.jsx)(xA,{as:m0,allowPinchZoom:!0,children:(0,L.jsx)(qT,{asChild:!0,trapped:v.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:lT(i,e=>{v.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,L.jsx)(NT,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>v.onOpenChange(!1),children:(0,L.jsx)(N,{role:`listbox`,id:v.contentId,"data-state":v.open?`open`:`closed`,dir:v.dir,onContextMenu:e=>e.preventDefault(),..._,...ce,onPlaced:()=>k(!0),ref:C,style:{display:`flex`,flexDirection:`column`,outline:`none`,..._.style},onKeyDown:lT(_.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if(e.key===`Tab`&&e.preventDefault(),!t&&e.key.length===1&&ie(e.key),[`ArrowUp`,`ArrowDown`,`Home`,`End`].includes(e.key)){let t=D().filter(e=>!e.disabled).map(e=>e.ref.current);if([`ArrowUp`,`End`].includes(e.key)&&(t=t.slice().reverse()),[`ArrowUp`,`ArrowDown`].includes(e.key)){let n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>A(t)),e.preventDefault()}})})})})})})});h0.displayName=p0;var g0=`SelectItemAlignedPosition`,_0=I.forwardRef((e,t)=>{let{__scopeSelect:n,onPlaced:r,...i}=e,a=X1(c0,n),o=f0(c0,n),[s,c]=I.useState(null),[l,u]=I.useState(null),d=fT(t,e=>u(e)),f=W1(n),p=I.useRef(!1),m=I.useRef(!0),{viewport:h,selectedItem:g,selectedItemText:_,focusSelectedItem:v}=o,y=I.useCallback(()=>{if(a.trigger&&a.valueNode&&s&&l&&h&&g&&_){let e=a.trigger.getBoundingClientRect(),t=l.getBoundingClientRect(),n=a.valueNode.getBoundingClientRect(),i=_.getBoundingClientRect();if(a.dir!==`rtl`){let r=i.left-t.left,a=n.left-r,o=e.left-a,c=e.width+o,l=Math.max(c,t.width),u=window.innerWidth-u0,d=P1(a,[u0,Math.max(u0,u-l)]);s.style.minWidth=c+`px`,s.style.left=d+`px`}else{let r=t.right-i.right,a=window.innerWidth-n.right-r,o=window.innerWidth-e.right-a,c=e.width+o,l=Math.max(c,t.width),u=window.innerWidth-u0,d=P1(a,[u0,Math.max(u0,u-l)]);s.style.minWidth=c+`px`,s.style.right=d+`px`}let o=f(),c=window.innerHeight-u0*2,u=h.scrollHeight,d=window.getComputedStyle(l),m=parseInt(d.borderTopWidth,10),v=parseInt(d.paddingTop,10),y=parseInt(d.borderBottomWidth,10),b=parseInt(d.paddingBottom,10),x=m+v+u+b+y,S=Math.min(g.offsetHeight*5,x),C=window.getComputedStyle(h),w=parseInt(C.paddingTop,10),T=parseInt(C.paddingBottom,10),E=e.top+e.height/2-u0,ee=c-E,D=g.offsetHeight/2,O=g.offsetTop+D,k=m+v+O,te=x-k;if(k<=E){let e=o.length>0&&g===o[o.length-1].ref.current;s.style.bottom=`0px`;let t=l.clientHeight-h.offsetTop-h.offsetHeight,n=k+Math.max(ee,D+(e?T:0)+t+y);s.style.height=n+`px`}else{let e=o.length>0&&g===o[0].ref.current;s.style.top=`0px`;let t=Math.max(E,m+h.offsetTop+(e?w:0)+D)+te;s.style.height=t+`px`,h.scrollTop=k-E+h.offsetTop}s.style.margin=`${u0}px 0`,s.style.minHeight=S+`px`,s.style.maxHeight=c+`px`,r?.(),requestAnimationFrame(()=>p.current=!0)}},[f,a.trigger,a.valueNode,s,l,h,g,_,a.dir,r]);aE(()=>y(),[y]);let[b,x]=I.useState();return aE(()=>{l&&x(window.getComputedStyle(l).zIndex)},[l]),(0,L.jsx)(b0,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:p,onScrollButtonChange:I.useCallback(e=>{e&&m.current===!0&&(y(),v?.(),m.current=!1)},[y,v]),children:(0,L.jsx)(`div`,{ref:c,style:{display:`flex`,flexDirection:`column`,position:`fixed`,zIndex:b},children:(0,L.jsx)(CT.div,{...i,ref:d,style:{boxSizing:`border-box`,maxHeight:`100%`,...i.style}})})})});_0.displayName=g0;var v0=`SelectPopperPosition`,y0=I.forwardRef((e,t)=>{let{__scopeSelect:n,align:r=`start`,collisionPadding:i=u0,...a}=e,o=J1(n);return(0,L.jsx)(GO,{...o,...a,ref:t,align:r,collisionPadding:i,style:{boxSizing:`border-box`,...a.style,"--radix-select-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-select-content-available-width":`var(--radix-popper-available-width)`,"--radix-select-content-available-height":`var(--radix-popper-available-height)`,"--radix-select-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-select-trigger-height":`var(--radix-popper-anchor-height)`}})});y0.displayName=v0;var[b0,x0]=K1(c0,{}),S0=`SelectViewport`,C0=I.forwardRef((e,t)=>{let{__scopeSelect:n,nonce:r,...i}=e,a=f0(S0,n),o=x0(S0,n),s=fT(t,a.onViewportChange),c=I.useRef(0);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(`style`,{dangerouslySetInnerHTML:{__html:`[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}`},nonce:r}),(0,L.jsx)(U1.Slot,{scope:n,children:(0,L.jsx)(CT.div,{"data-radix-select-viewport":``,role:`presentation`,...i,ref:s,style:{position:`relative`,flex:1,overflow:`hidden auto`,...i.style},onScroll:lT(i.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=o;if(r?.current&&n){let e=Math.abs(c.current-t.scrollTop);if(e>0){let r=window.innerHeight-u0*2,i=parseFloat(n.style.minHeight),a=parseFloat(n.style.height),o=Math.max(i,a);if(o<r){let i=o+e,a=Math.min(r,i),s=i-a;n.style.height=a+`px`,n.style.bottom===`0px`&&(t.scrollTop=s>0?s:0,n.style.justifyContent=`flex-end`)}}}c.current=t.scrollTop})})})]})});C0.displayName=S0;var w0=`SelectGroup`,[T0,E0]=K1(w0),D0=I.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,i=cE();return(0,L.jsx)(T0,{scope:n,id:i,children:(0,L.jsx)(CT.div,{role:`group`,"aria-labelledby":i,...r,ref:t})})});D0.displayName=w0;var O0=`SelectLabel`,k0=I.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,i=E0(O0,n);return(0,L.jsx)(CT.div,{id:i.id,...r,ref:t})});k0.displayName=O0;var A0=`SelectItem`,[j0,M0]=K1(A0),N0=I.forwardRef((e,t)=>{let{__scopeSelect:n,value:r,disabled:i=!1,textValue:a,...o}=e,s=X1(A0,n),c=f0(A0,n),l=s.value===r,[u,d]=I.useState(a??``),[f,p]=I.useState(!1),m=fT(t,e=>c.itemRefCallback?.(e,r,i)),h=cE(),g=I.useRef(`touch`),_=()=>{i||(s.onValueChange(r),s.onOpenChange(!1))};if(r===``)throw Error(`A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.`);return(0,L.jsx)(j0,{scope:n,value:r,disabled:i,textId:h,isSelected:l,onItemTextChange:I.useCallback(e=>{d(t=>t||(e?.textContent??``).trim())},[]),children:(0,L.jsx)(U1.ItemSlot,{scope:n,value:r,disabled:i,textValue:u,children:(0,L.jsx)(CT.div,{role:`option`,"aria-labelledby":h,"data-highlighted":f?``:void 0,"aria-selected":l&&f,"data-state":l?`checked`:`unchecked`,"aria-disabled":i||void 0,"data-disabled":i?``:void 0,tabIndex:i?void 0:-1,...o,ref:m,onFocus:lT(o.onFocus,()=>p(!0)),onBlur:lT(o.onBlur,()=>p(!1)),onClick:lT(o.onClick,()=>{g.current!==`mouse`&&_()}),onPointerUp:lT(o.onPointerUp,()=>{g.current===`mouse`&&_()}),onPointerDown:lT(o.onPointerDown,e=>{g.current=e.pointerType}),onPointerMove:lT(o.onPointerMove,e=>{g.current=e.pointerType,i?c.onItemLeave?.():g.current===`mouse`&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:lT(o.onPointerLeave,e=>{e.currentTarget===document.activeElement&&c.onItemLeave?.()}),onKeyDown:lT(o.onKeyDown,e=>{c.searchRef?.current!==``&&e.key===` `||(V1.includes(e.key)&&_(),e.key===` `&&e.preventDefault())})})})})});N0.displayName=A0;var P0=`SelectItemText`,F0=I.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:i,...a}=e,o=X1(P0,n),s=f0(P0,n),c=M0(P0,n),l=Q1(P0,n),[u,d]=I.useState(null),f=fT(t,e=>d(e),c.onItemTextChange,e=>s.itemTextRefCallback?.(e,c.value,c.disabled)),p=u?.textContent,m=I.useMemo(()=>(0,L.jsx)(`option`,{value:c.value,disabled:c.disabled,children:p},c.value),[c.disabled,c.value,p]),{onNativeOptionAdd:h,onNativeOptionRemove:g}=l;return aE(()=>(h(m),()=>g(m)),[h,g,m]),(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(CT.span,{id:c.textId,...a,ref:f}),c.isSelected&&o.valueNode&&!o.valueNodeHasChildren?vS.createPortal(a.children,o.valueNode):null]})});F0.displayName=P0;var I0=`SelectItemIndicator`,L0=I.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return M0(I0,n).isSelected?(0,L.jsx)(CT.span,{"aria-hidden":!0,...r,ref:t}):null});L0.displayName=I0;var R0=`SelectScrollUpButton`,z0=I.forwardRef((e,t)=>{let n=f0(R0,e.__scopeSelect),r=x0(R0,e.__scopeSelect),[i,a]=I.useState(!1),o=fT(t,r.onScrollButtonChange);return aE(()=>{if(n.viewport&&n.isPositioned){let e=function(){a(t.scrollTop>0)},t=n.viewport;return e(),t.addEventListener(`scroll`,e),()=>t.removeEventListener(`scroll`,e)}},[n.viewport,n.isPositioned]),i?(0,L.jsx)(H0,{...e,ref:o,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop-=t.offsetHeight)}}):null});z0.displayName=R0;var B0=`SelectScrollDownButton`,V0=I.forwardRef((e,t)=>{let n=f0(B0,e.__scopeSelect),r=x0(B0,e.__scopeSelect),[i,a]=I.useState(!1),o=fT(t,r.onScrollButtonChange);return aE(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight;a(Math.ceil(t.scrollTop)<e)},t=n.viewport;return e(),t.addEventListener(`scroll`,e),()=>t.removeEventListener(`scroll`,e)}},[n.viewport,n.isPositioned]),i?(0,L.jsx)(H0,{...e,ref:o,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop+=t.offsetHeight)}}):null});V0.displayName=B0;var H0=I.forwardRef((e,t)=>{let{__scopeSelect:n,onAutoScroll:r,...i}=e,a=f0(`SelectScrollButton`,n),o=I.useRef(null),s=W1(n),c=I.useCallback(()=>{o.current!==null&&(window.clearInterval(o.current),o.current=null)},[]);return I.useEffect(()=>()=>c(),[c]),aE(()=>{s().find(e=>e.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:`nearest`})},[s]),(0,L.jsx)(CT.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:lT(i.onPointerDown,()=>{o.current===null&&(o.current=window.setInterval(r,50))}),onPointerMove:lT(i.onPointerMove,()=>{a.onItemLeave?.(),o.current===null&&(o.current=window.setInterval(r,50))}),onPointerLeave:lT(i.onPointerLeave,()=>{c()})})}),U0=`SelectSeparator`,W0=I.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return(0,L.jsx)(CT.div,{"aria-hidden":!0,...r,ref:t})});W0.displayName=U0;var G0=`SelectArrow`,K0=I.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,i=J1(n),a=X1(G0,n),o=f0(G0,n);return a.open&&o.position===`popper`?(0,L.jsx)(KO,{...i,...r,ref:t}):null});K0.displayName=G0;var q0=`SelectBubbleInput`,J0=I.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{let i=I.useRef(null),a=fT(r,i),o=F1(t);return I.useEffect(()=>{let e=i.current;if(!e)return;let n=window.HTMLSelectElement.prototype,r=Object.getOwnPropertyDescriptor(n,`value`).set;if(o!==t&&r){let n=new Event(`change`,{bubbles:!0});r.call(e,t),e.dispatchEvent(n)}},[o,t]),(0,L.jsx)(CT.select,{...n,style:{...I1,...n.style},ref:a,defaultValue:t})});J0.displayName=q0;function Y0(e){return e===``||e===void 0}function X0(e){let t=TT(e),n=I.useRef(``),r=I.useRef(0),i=I.useCallback(e=>{let i=n.current+e;t(i),(function e(t){n.current=t,window.clearTimeout(r.current),t!==``&&(r.current=window.setTimeout(()=>e(``),1e3))})(i)},[t]),a=I.useCallback(()=>{n.current=``,window.clearTimeout(r.current)},[]);return I.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,a]}function Z0(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=Q0(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.textValue.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}function Q0(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var $0=$1,e2=t0,t2=r0,n2=a0,r2=s0,i2=l0,a2=C0,o2=N0,s2=F0,c2=W0,[l2,u2]=mT(`Tooltip`,[DO]),d2=DO(),f2=`TooltipProvider`,p2=700,m2=`tooltip.open`,[h2,g2]=l2(f2),_2=e=>{let{__scopeTooltip:t,delayDuration:n=p2,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:a}=e,o=I.useRef(!0),s=I.useRef(!1),c=I.useRef(0);return I.useEffect(()=>{let e=c.current;return()=>window.clearTimeout(e)},[]),(0,L.jsx)(h2,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:I.useCallback(()=>{window.clearTimeout(c.current),o.current=!1},[]),onClose:I.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>o.current=!0,r)},[r]),isPointerInTransitRef:s,onPointerInTransitChange:I.useCallback(e=>{s.current=e},[]),disableHoverableContent:i,children:a})};_2.displayName=f2;var v2=`Tooltip`,[y2,b2]=l2(v2),x2=e=>{let{__scopeTooltip:t,children:n,open:r,defaultOpen:i,onOpenChange:a,disableHoverableContent:o,delayDuration:s}=e,c=g2(v2,e.__scopeTooltip),l=d2(t),[u,d]=I.useState(null),f=cE(),p=I.useRef(0),m=o??c.disableHoverableContent,h=s??c.delayDuration,g=I.useRef(!1),[_,v]=tk({prop:r,defaultProp:i??!1,onChange:e=>{e?(c.onOpen(),document.dispatchEvent(new CustomEvent(m2))):c.onClose(),a?.(e)},caller:v2}),y=I.useMemo(()=>_?g.current?`delayed-open`:`instant-open`:`closed`,[_]),b=I.useCallback(()=>{window.clearTimeout(p.current),p.current=0,g.current=!1,v(!0)},[v]),x=I.useCallback(()=>{window.clearTimeout(p.current),p.current=0,v(!1)},[v]),S=I.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>{g.current=!0,v(!0),p.current=0},h)},[h,v]);return I.useEffect(()=>()=>{p.current&&=(window.clearTimeout(p.current),0)},[]),(0,L.jsx)(UO,{...l,children:(0,L.jsx)(y2,{scope:t,contentId:f,open:_,stateAttribute:y,trigger:u,onTriggerChange:d,onTriggerEnter:I.useCallback(()=>{c.isOpenDelayedRef.current?S():b()},[c.isOpenDelayedRef,S,b]),onTriggerLeave:I.useCallback(()=>{m?x():(window.clearTimeout(p.current),p.current=0)},[x,m]),onOpen:b,onClose:x,disableHoverableContent:m,children:n})})};x2.displayName=v2;var S2=`TooltipTrigger`,C2=I.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,i=b2(S2,n),a=g2(S2,n),o=d2(n),s=fT(t,I.useRef(null),i.onTriggerChange),c=I.useRef(!1),l=I.useRef(!1),u=I.useCallback(()=>c.current=!1,[]);return I.useEffect(()=>()=>document.removeEventListener(`pointerup`,u),[u]),(0,L.jsx)(WO,{asChild:!0,...o,children:(0,L.jsx)(CT.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:s,onPointerMove:lT(e.onPointerMove,e=>{e.pointerType!==`touch`&&!l.current&&!a.isPointerInTransitRef.current&&(i.onTriggerEnter(),l.current=!0)}),onPointerLeave:lT(e.onPointerLeave,()=>{i.onTriggerLeave(),l.current=!1}),onPointerDown:lT(e.onPointerDown,()=>{i.open&&i.onClose(),c.current=!0,document.addEventListener(`pointerup`,u,{once:!0})}),onFocus:lT(e.onFocus,()=>{c.current||i.onOpen()}),onBlur:lT(e.onBlur,i.onClose),onClick:lT(e.onClick,i.onClose)})})});C2.displayName=S2;var w2=`TooltipPortal`,[T2,E2]=l2(w2,{forceMount:void 0}),D2=e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,a=b2(w2,t);return(0,L.jsx)(T2,{scope:t,forceMount:n,children:(0,L.jsx)(XO,{present:n||a.open,children:(0,L.jsx)(JO,{asChild:!0,container:i,children:r})})})};D2.displayName=w2;var O2=`TooltipContent`,k2=I.forwardRef((e,t)=>{let n=E2(O2,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i=`top`,...a}=e,o=b2(O2,e.__scopeTooltip);return(0,L.jsx)(XO,{present:r||o.open,children:o.disableHoverableContent?(0,L.jsx)(P2,{side:i,...a,ref:t}):(0,L.jsx)(A2,{side:i,...a,ref:t})})}),A2=I.forwardRef((e,t)=>{let n=b2(O2,e.__scopeTooltip),r=g2(O2,e.__scopeTooltip),i=I.useRef(null),a=fT(t,i),[o,s]=I.useState(null),{trigger:c,onClose:l}=n,u=i.current,{onPointerInTransitChange:d}=r,f=I.useCallback(()=>{s(null),d(!1)},[d]),p=I.useCallback((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},i=R2(r,L2(r,n.getBoundingClientRect())),a=z2(t.getBoundingClientRect());s(V2([...i,...a])),d(!0)},[d]);return I.useEffect(()=>()=>f(),[f]),I.useEffect(()=>{if(c&&u){let e=e=>p(e,u),t=e=>p(e,c);return c.addEventListener(`pointerleave`,e),u.addEventListener(`pointerleave`,t),()=>{c.removeEventListener(`pointerleave`,e),u.removeEventListener(`pointerleave`,t)}}},[c,u,p,f]),I.useEffect(()=>{if(o){let e=e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=c?.contains(t)||u?.contains(t),i=!B2(n,o);r?f():i&&(f(),l())};return document.addEventListener(`pointermove`,e),()=>document.removeEventListener(`pointermove`,e)}},[c,u,o,l,f]),(0,L.jsx)(P2,{...e,ref:a})}),[j2,M2]=l2(v2,{isInside:!1}),N2=yT(`TooltipContent`),P2=I.forwardRef((e,t)=>{let{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:a,onPointerDownOutside:o,...s}=e,c=b2(O2,n),l=d2(n),{onClose:u}=c;return I.useEffect(()=>(document.addEventListener(m2,u),()=>document.removeEventListener(m2,u)),[u]),I.useEffect(()=>{if(c.trigger){let e=e=>{e.target?.contains(c.trigger)&&u()};return window.addEventListener(`scroll`,e,{capture:!0}),()=>window.removeEventListener(`scroll`,e,{capture:!0})}},[c.trigger,u]),(0,L.jsx)(NT,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:e=>e.preventDefault(),onDismiss:u,children:(0,L.jsxs)(GO,{"data-state":c.stateAttribute,...l,...s,ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-tooltip-content-available-width":`var(--radix-popper-available-width)`,"--radix-tooltip-content-available-height":`var(--radix-popper-available-height)`,"--radix-tooltip-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-tooltip-trigger-height":`var(--radix-popper-anchor-height)`},children:[(0,L.jsx)(N2,{children:r}),(0,L.jsx)(j2,{scope:n,isInside:!0,children:(0,L.jsx)(z1,{id:c.contentId,role:`tooltip`,children:i||r})})]})})});k2.displayName=O2;var F2=`TooltipArrow`,I2=I.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,i=d2(n);return M2(F2,n).isInside?null:(0,L.jsx)(KO,{...i,...r,ref:t})});I2.displayName=F2;function L2(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,i,a)){case a:return`left`;case i:return`right`;case n:return`top`;case r:return`bottom`;default:throw Error(`unreachable`)}}function R2(e,t,n=5){let r=[];switch(t){case`top`:r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case`bottom`:r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case`left`:r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case`right`:r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function z2(e){let{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function B2(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e],s=t[a],c=o.x,l=o.y,u=s.x,d=s.y;l>r!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}function V2(e){let t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:+(e.y>t.y)),H2(t)}function H2(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n<e.length;n++){let r=e[n];for(;t.length>=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var U2=_2,W2=x2,G2=C2,K2=D2,q2=k2,J2=I2,Y2=I.forwardRef(({title:e,children:t},n)=>{let r=Cn(ax);return I.createElement(U2,{delayDuration:100},I.createElement(W2,null,I.createElement(G2,{ref:n,asChild:!0},I.createElement(`span`,{className:q.tooltipTrigger},t)),I.createElement(K2,{container:r?.current},I.createElement(q2,{className:(0,NC.default)(q.tooltipContent),sideOffset:10},e))))}),X2=I.forwardRef(({children:e,className:t,...n},r)=>I.createElement(o2,{...n,ref:r,className:(0,NC.default)(t,q.selectItem)},I.createElement(s2,null,e))),Z2=({title:e,placeholder:t,className:n})=>{let[r,i]=wn(Pb,Cx);return I.createElement(Y2,{title:e},I.createElement(e2,{"aria-label":t,className:(0,NC.default)(q.selectTrigger,n),"data-toolbar-item":!0,disabled:r},I.createElement(t2,{placeholder:t}),I.createElement(n2,{className:q.selectDropdownArrow},i(`arrow_drop_down`))))},Q2=({children:e,className:t=q.selectContainer})=>{let n=Cn(ax);return I.createElement(r2,{container:n?.current},I.createElement(i2,{className:(0,NC.default)(t,`mdxeditor-select-content`),onCloseAutoFocus:e=>{e.preventDefault()},position:`popper`},I.createElement(a2,{"data-editor-dropdown":!0,style:{maxHeight:`var(--radix-select-content-available-height)`}},e)))},$2=e=>I.createElement($0,{value:e.value||``,onValueChange:e.onChange,disabled:e.disabled},I.createElement(Z2,{title:e.triggerTitle,placeholder:e.placeholder}),I.createElement(Q2,null,e.items.map((e,t)=>e===`separator`?I.createElement(c2,{key:t}):I.createElement(X2,{key:t,value:e.value},e.label)))),e4=({language:e,nodeKey:t,code:n,focusEmitter:r})=>{let i=Qx(),{parentEditor:a,lexicalNode:o}=iW(),[s,c,l,u,d]=wn(Pb,o4,s4,Cx,i4),f=CQ(t,`codeblock`,e,r),{setCode:p}=iW(),m=I.useRef(null),h=I.useRef(null),{value:g,items:_}=I.useMemo(()=>r4(d,e),[d,e]),v=I.useRef(p);return v.current=p,f.current={getCodemirror:()=>m.current},I.useEffect(()=>{let t=h.current;return(async()=>{let r=[...c,N1,JQ,Ye(),Me.of([OJ]),N.lineWrapping,N.updateListener.of(({state:e})=>{v.current(e.doc.toString())}),N.domEventHandlers({focus:()=>{a.update(()=>{wc(null)})}})];if(s&&r.push(ne.readOnly.of(!0)),e!==``){let t=d.keyMap[e]??e,n=d.supportMap[t];if(n)r.push(n.extension);else if(l){let t=TQ.find(t=>t.name===e||t.alias.includes(e)||t.extensions.includes(e));if(t)try{let e=await t.load();r.push(e.extension)}catch{console.warn(`failed to load language support for`,e)}}}t.innerHTML=``,m.current=new N({parent:t,state:ne.create({doc:n,extensions:r})}),t.addEventListener(`keydown`,t4)})(),()=>{var e;(e=m.current)==null||e.destroy(),m.current=null,t.removeEventListener(`keydown`,t4)}},[s,e,...c]),I.createElement(`div`,{className:q.codeMirrorWrapper},I.createElement(`div`,{className:q.codeMirrorToolbar},I.createElement($2,{disabled:s,value:g,onChange:e=>{a.update(()=>{o.setLanguage(e===`__EMPTY_VALUE__`?``:e),setTimeout(()=>{a.update(()=>{o.getLatest().select()})})})},triggerTitle:i(`codeBlock.selectLanguage`,`Select code block language`),placeholder:i(`codeBlock.inlineLanguage`,`Language`),items:_}),I.createElement(`button`,{className:q.iconButton,type:`button`,disabled:s,title:i(`codeblock.delete`,`Delete code block`),onClick:e=>{e.preventDefault(),a.update(()=>{o.remove()})}},u(`delete_small`))),I.createElement(`div`,{ref:h}))};function t4(e){e.stopPropagation()}function n4(e){let t=[],n={},r={};if(Array.isArray(e))for(let i of e){let e=i.alias?.[0]??i.name.toLowerCase(),a=e||`__EMPTY_VALUE__`;if(t.push({value:a,label:i.name}),n[e]=a,i.alias)for(let e of i.alias)n[e]=a;if(i.extensions)for(let e of i.extensions)n[e]=a;n[i.name.toLowerCase()]=a,i.support&&(r[a]=i.support)}else{let r={};for(let[i,a]of Object.entries(e))a in r||(r[a]=i,t.push({value:i||`__EMPTY_VALUE__`,label:a})),n[i]=r[a]||`__EMPTY_VALUE__`}return{items:t,keyMap:n,supportMap:r}}function r4(e,t){let n=e.keyMap[t]??t;return!n||e.items.some(e=>e.value===n)?{value:n,items:e.items}:{value:n,items:[...e.items,{value:n,label:t}]}}var i4=R(n4({js:`JavaScript`,ts:`TypeScript`,tsx:`TypeScript (React)`,jsx:`JavaScript (React)`,css:`CSS`})),a4=yn(e=>{e.link(e.pipe(a4,En(({language:e,code:t})=>({code:t,language:e,meta:``}))),fW)}),o4=R([]),s4=R(!0),c4=Nn({update(e,t){e.pubIn({[i4]:n4(t?.codeBlockLanguages??{}),[o4]:t?.codeMirrorExtensions??[],[s4]:t?.autoLoadLanguageSupport??!0})},init(e,t){let n=n4(t?.codeBlockLanguages??{});e.pubIn({[i4]:n,[o4]:t?.codeMirrorExtensions??[],[pW]:l4(),[s4]:t?.autoLoadLanguageSupport??!0})}});function l4(e){return{match(e,t){return!t},priority:1,Editor:e4}}function u4({url:e,title:t,text:n,onSubmit:r,onCancel:i,linkAutocompleteSuggestions:a,showLinkTitleField:o,showAnchorTextField:s}){let{register:c,handleSubmit:l,control:u,setValue:d,reset:f}=RF({values:{url:e,title:t,text:n}}),p=Qx();return I.createElement(`form`,{onSubmit:e=>{l(r)(e),e.stopPropagation(),e.preventDefault()},onReset:e=>{e.stopPropagation(),i()},onKeyDown:e=>{e.key===`Escape`&&(e.stopPropagation(),i())},className:(0,NC.default)(q.multiFieldForm,q.linkDialogEditForm)},I.createElement(`div`,{className:q.formField},I.createElement(`label`,{htmlFor:`link-url`},p(`createLink.url`,`URL`)),I.createElement(kR,{register:c,initialInputValue:e,inputName:`url`,suggestions:a,setValue:d,control:u,placeholder:p(`createLink.urlPlaceholder`,`Select or paste an URL`),autofocus:!0})),s?I.createElement(`div`,{className:q.formField},I.createElement(`label`,{htmlFor:`link-text`,title:p(`createLink.textTooltip`,`The text to be displayed for the link`)},p(`createLink.text`,`Anchor text`)),I.createElement(`input`,{id:`link-text`,className:q.textInput,size:40,...c(`text`)})):null,o?I.createElement(`div`,{className:q.formField},I.createElement(`label`,{htmlFor:`link-title`,title:p(`createLink.titleTooltip`,`The link's title attribute, shown on hover`)},p(`createLink.title`,`Link title`)),I.createElement(`input`,{id:`link-title`,className:q.textInput,size:40,...c(`title`)})):null,I.createElement(`div`,{style:{display:`flex`,justifyContent:`flex-end`,gap:`var(--spacing-2)`}},I.createElement(`button`,{type:`submit`,title:p(`createLink.saveTooltip`,`Set URL`),"aria-label":p(`createLink.saveTooltip`,`Set URL`),className:(0,NC.default)(q.primaryButton)},p(`dialogControls.save`,`Save`)),I.createElement(`button`,{type:`reset`,title:p(`createLink.cancelTooltip`,`Cancel change`),"aria-label":p(`createLink.cancelTooltip`,`Cancel change`),className:(0,NC.default)(q.secondaryButton)},p(`dialogControls.cancel`,`Cancel`))))}var d4=()=>{let[e,t,n,r,i,a,o]=wn(ax,jb,Cx,h4,x4,S4,T4),s=Tn(m4),c=Tn(g4),l=Tn(_4),u=Tn(v4),d=Tn(y4);I.useEffect(()=>{let e=()=>{t?.getEditorState().read(()=>{s(!0)})};return window.addEventListener(`resize`,e),window.addEventListener(`scroll`,e),()=>{window.removeEventListener(`resize`,e),window.removeEventListener(`scroll`,e)}},[t,s]);let[f,p]=I.useState(!1),m=Qx();if(r.type===`inactive`)return null;let h=r.rectangle,g=r.type===`preview`&&r.url.startsWith(`http`);return I.createElement(JA,{open:!0},I.createElement(YA,{"data-visible":r.type===`edit`,className:q.linkDialogAnchor,style:{top:`${h.top}px`,left:`${h.left}px`,width:`${h.width}px`,height:`${h.height}px`}}),I.createElement(XA,{container:e?.current},I.createElement(ZA,{className:(0,NC.default)(q.linkDialogPopoverContent),sideOffset:5,onOpenAutoFocus:e=>{e.preventDefault()},key:r.linkNodeKey},r.type===`edit`&&I.createElement(u4,{url:r.url,title:r.title,text:r.text,onSubmit:c,onCancel:l.bind(null),linkAutocompleteSuggestions:i,showLinkTitleField:o,showAnchorTextField:r.withAnchorText}),r.type===`preview`&&I.createElement(I.Fragment,null,I.createElement(`a`,{className:q.linkDialogPreviewAnchor,href:r.url,...g?{target:`_blank`,rel:`noreferrer`}:{},onClick:e=>{a!==null&&(e.preventDefault(),a(r.url))},title:g?m(`linkPreview.open`,`Open {{url}} in new window`,{url:r.url}):r.url},I.createElement(`span`,null,r.url),g&&n(`open_in_new`)),I.createElement(f4,{onClick:()=>{u()},title:m(`linkPreview.edit`,`Edit link URL`),"aria-label":m(`linkPreview.edit`,`Edit link URL`)},n(`edit`)),I.createElement(U2,null,I.createElement(W2,{open:f},I.createElement(G2,{asChild:!0},I.createElement(f4,{title:m(`linkPreview.copyToClipboard`,`Copy to clipboard`),"aria-label":m(`linkPreview.copyToClipboard`,`Copy to clipboard`),onClick:()=>{window.navigator.clipboard.writeText(r.url).then(()=>{p(!0),setTimeout(()=>{p(!1)},1e3)})}},n(f?`check`:`content_copy`))),I.createElement(K2,{container:e?.current},I.createElement(q2,{className:(0,NC.default)(q.tooltipContent),sideOffset:5},m(`linkPreview.copied`,`Copied!`),I.createElement(J2,null))))),I.createElement(f4,{title:m(`linkPreview.remove`,`Remove link`),"aria-label":m(`linkPreview.remove`,`Remove link`),onClick:()=>{d()}},n(`link_off`))),I.createElement(QA,{className:q.popoverArrow}))))},f4=I.forwardRef(({className:e,...t},n)=>I.createElement(`button`,{className:(0,NC.default)(q.actionButton,e),ref:n,...t}));function p4(e){if(!e)return null;let t=DC(e);if(t===null)return null;let n=t.getParent();return kS(n)?n:kS(t)?t:null}var m4=yn(),h4=R({type:`inactive`},e=>{e.pub(Dx,t=>t.registerCommand(Zi,()=>e.getValue(h4).type===`preview`?(e.pub(h4,{type:`inactive`}),!0):!1,1)),e.sub(e.pipe(Gx),t=>{t!==`rich-text`&&e.pub(h4,{type:`inactive`})}),e.pub(Dx,t=>t.registerCommand(Vi,t=>t.key===`k`&&(WC?t.metaKey:t.ctrlKey)&&!e.getValue(Pb)&&H(U())?(e.pub(b4),t.stopPropagation(),t.preventDefault(),!0):!1,3)),e.sub(e.pipe(v4,Dn(h4,jb)),([,t,n])=>{if(t.type===`preview`)setTimeout(()=>{n?.getEditorState().read(()=>{let n=gc(t.linkNodeKey),r=kS(n)?n.getTextContent().length>0&&n.getChildrenSize()<=1:!1,i=r&&n?n.getTextContent():``;e.pub(h4,{type:`edit`,initialUrl:t.url,url:t.url,title:t.title,text:i,withAnchorText:r,linkNodeKey:t.linkNodeKey,rectangle:t.rectangle})})});else throw Error(`Cannot switch to edit mode when not in preview mode`)}),e.sub(e.pipe(g4,Dn(jb,h4,Hb)),([t,n,r,i])=>{let a=t.text?.trim()??``,o=t.url?.trim()??``,s=t.title?.trim()??``;if(o!==``){if(i?.isCollapsed()){let e=a||s||o;n?.update(()=>{let t=p4(i);if(!t){let t=OS(o,{title:s});t.append(_o(e)),Xo([t]),t.select()}else if(MS(t)){let e=OS(o,{title:s});e.append(_o(a)),t.replace(e),e.select()}else t.setURL(o),t.setTitle(s),w4(t.getFirstChild(),a)},{discrete:!0})}else n?.update(()=>{w4(i?.anchor.getNode(),a)}),n?.dispatchCommand(NS,{url:o,title:s});e.pub(h4,{type:`preview`,linkNodeKey:r.linkNodeKey,rectangle:r.rectangle,title:s,url:o})}else r.type===`edit`&&r.initialUrl!==``&&n?.dispatchCommand(NS,null),e.pub(h4,{type:`inactive`})}),e.link(e.pipe(_4,Dn(h4,jb),En(([,e,t])=>{if(e.type===`edit`)return t?.focus(),e.initialUrl===``?{type:`inactive`}:{type:`preview`,url:e.initialUrl,linkNodeKey:e.linkNodeKey,rectangle:e.rectangle};throw Error(`Cannot cancel edit when not in edit mode`)})),h4),e.link(e.pipe(e.combine(Hb,m4),Dn(jb,h4,Pb),En(([[e],t,n,r])=>{if(H(e)&&t&&!r){let n=p4(e);if(!e.isCollapsed())return{type:`inactive`};if(n){let e=jC(t);return e?{type:`preview`,url:n.getURL(),linkNodeKey:n.getKey(),title:n.getTitle(),rectangle:e}:{type:`inactive`}}else return{type:`inactive`}}else return{type:`inactive`}})),h4)}),g4=yn(),_4=bn();bn();var v4=bn(),y4=bn(e=>{e.sub(e.pipe(y4,Dn(jb)),([,e])=>{e?.dispatchCommand(NS,null)})}),b4=bn(e=>{e.sub(e.pipe(b4,Dn(Hb,jb),kn(([,e])=>H(e))),([,t,n])=>{n?.focus(()=>{setTimeout(()=>{n.getEditorState().read(()=>{let r=p4(t),i=jC(n),a=r?.getURL()??``,o=r?.getURL()??``,s=r?.getTitle()??``,c=r?.getKey()??``,l=r?r.getTextContent().length>0&&r.getChildrenSize()<=1:!!t?.isCollapsed(),u=l&&r?r.getTextContent():``;e.pub(h4,{type:`edit`,initialUrl:a,url:o,title:s,text:u,withAnchorText:l,linkNodeKey:c,rectangle:i})})})})})}),x4=R([]),S4=R(null),C4=R(null,e=>{e.pub(Dx,t=>{function n(n){let[r,i]=e.getValues([Pb,C4]);!r||i===null||t.update(()=>{let e=yc(n.target);if(e!==null){let t=nd(e,e=>e instanceof ES);t!==null&&i(n,t,t.getURL())}})}return t.registerRootListener((e,t)=>{e&&e.addEventListener(`click`,n),t&&t.removeEventListener(`click`,n)})})});function w4(e,t){V(e)&&t&&(e.setTextContent(t),e.selectStart())}var T4=R(!0),E4=Nn({init(e,t){e.pub(Ax,t?.LinkDialog??d4),e.pub(S4,t?.onClickLinkCallback??null),e.pub(C4,t?.onReadOnlyClickLinkCallback??null),e.pub(T4,t?.showLinkTitleField??!0)},update(e,t={}){e.pub(x4,t.linkAutocompleteSuggestions??[])}});function D4(e,t){return I.forwardRef((n,r)=>{let i=(0,NC.default)(t.className,n.className);return I.createElement(e,{...t,...n,className:i,ref:r})})}function O4(e){return({title:t,children:n,...r})=>I.createElement(e,{"aria-label":t,...r},I.createElement(Y2,{title:t},n))}var k4=({readOnly:e,children:t,className:n})=>I.createElement(fM,{className:(0,NC.default)(`mdxeditor-toolbar`,q.toolbarRoot,{[q.readOnlyToolbarRoot]:e},n),...e?{tabIndex:-1}:{}},t),A4=O4(D4(mM,{className:q.toolbarButton,"data-toolbar-item":!0})),j4=D4(gM,{className:q.toolbarToggleItem,"data-toolbar-item":!0});D4(hM,{type:`single`,className:q.toolbarToggleSingleGroup});var M4=I.forwardRef(({on:e,title:t,children:n,disabled:r,...i},a)=>I.createElement(hM,{type:`single`,className:q.toolbarToggleSingleGroup,...i,value:e?`on`:`off`,ref:a},I.createElement(j4,{"aria-label":t,value:`on`,disabled:r},I.createElement(Y2,{title:t},n)))),N4=({items:e})=>I.createElement(`div`,{className:q.toolbarGroupOfGroups},e.map((e,t)=>I.createElement(M4,{key:t,title:e.title,on:e.active,onValueChange:t=>{e.onChange(t===`on`)},disabled:e.disabled},e.contents))),P4=({value:e,onChange:t,className:n,ggClassName:r,items:i,disabled:a})=>{let o=Qx();return I.createElement(`div`,{className:(0,NC.default)(q.toolbarGroupOfGroups,r)},I.createElement(hM,{"aria-label":o(`toolbar.toggleGroup`,`toggle group`),type:`single`,className:(0,NC.default)(q.toolbarToggleSingleGroup,n),onValueChange:t,value:e||``,disabled:a,onFocus:e=>{e.preventDefault()}},i.map((e,t)=>I.createElement(j4,{key:t,"aria-label":e.title,value:e.value},I.createElement(Y2,{title:e.title},e.contents)))))};function F4(e){return Object.hasOwn(e,`when`)}var I4=({options:e})=>{let t=Cn(xx),n=I.useMemo(()=>{let n=e.find(e=>{if(F4(e)){if(e.when(t))return!0}else return!0});return n?F4(n)?n.contents():n.fallback():null},[e,t]);return I.createElement(`div`,{style:{display:`flex`}},n)},L4=pM,R4=R(()=>null),z4=R(``),B4=()=>"This is an empty toolbar. Pass `{toolbarContents: () => { return <>toolbar components</> }}` to the toolbarPlugin to customize it.",V4=Nn({init(e,t){let n=t?.toolbarPosition===`bottom`?Px:Mx;e.pubIn({[R4]:t?.toolbarContents??B4,[z4]:t?.toolbarClassName??``,[n]:()=>{let[e,t,n]=wn(R4,Pb,z4);return I.createElement(k4,{className:n,readOnly:t},e())}})},update(e,t){e.pub(R4,t?.toolbarContents??B4),e.pub(z4,t?.toolbarClassName??``)}}),H4=class e{constructor(e,t,n,r){this.fromA=e,this.toA=t,this.fromB=n,this.toB=r}offset(t,n=t){return new e(this.fromA+t,this.toA+t,this.fromB+n,this.toB+n)}};function U4(e,t,n,r,i,a){if(e==r)return[];let o=$4(e,t,n,r,i,a),s=e3(e,t+o,n,r,i+o,a);t+=o,n-=s,i+=o,a-=s;let c=n-t,l=a-i;if(!c||!l)return[new H4(t,n,i,a)];if(c>l){let o=e.slice(t,n).indexOf(r.slice(i,a));if(o>-1)return[new H4(t,t+o,i,i),new H4(t+o+l,n,a,a)]}else if(l>c){let o=r.slice(i,a).indexOf(e.slice(t,n));if(o>-1)return[new H4(t,t,i,i+o),new H4(n,n,i+o+c,a)]}if(c==1||l==1)return[new H4(t,n,i,a)];let u=n3(e,t,n,r,i,a);if(u){let[o,s,c]=u;return U4(e,t,o,r,i,s).concat(U4(e,o+c,n,r,s+c,a))}return q4(e,t,n,r,i,a)}var W4=1e9,G4=0,K4=!1;function q4(e,t,n,r,i,a){let o=n-t,s=a-i;if(W4<1e9&&Math.min(o,s)>W4*16||G4>0&&Date.now()>G4)return Math.min(o,s)>W4*64?[new H4(t,n,i,a)]:r3(e,t,n,r,i,a);let c=Math.ceil((o+s)/2);Y4.reset(c),X4.reset(c);let l=(n,a)=>e.charCodeAt(t+n)==r.charCodeAt(i+a),u=(t,i)=>e.charCodeAt(n-t-1)==r.charCodeAt(a-i-1),d=(o-s)%2==0?null:X4,f=d?null:Y4;for(let p=0;p<c;p++){if(p>W4||G4>0&&!(p&63)&&Date.now()>G4)return r3(e,t,n,r,i,a);let m=Y4.advance(p,o,s,c,d,!1,l)||X4.advance(p,o,s,c,f,!0,u);if(m)return Z4(e,t,n,t+m[0],r,i,a,i+m[1])}return[new H4(t,n,i,a)]}var J4=class{constructor(){this.vec=[]}reset(e){this.len=e<<1;for(let e=0;e<this.len;e++)this.vec[e]=-1;this.vec[e+1]=0,this.start=this.end=0}advance(e,t,n,r,i,a,o){for(let s=-e+this.start;s<=e-this.end;s+=2){let c=r+s,l=s==-e||s!=e&&this.vec[c-1]<this.vec[c+1]?this.vec[c+1]:this.vec[c-1]+1,u=l-s;for(;l<t&&u<n&&o(l,u);)l++,u++;if(this.vec[c]=l,l>t)this.end+=2;else if(u>n)this.start+=2;else if(i){let e=r+(t-n)-s;if(e>=0&&e<this.len&&i.vec[e]!=-1)if(a){let n=i.vec[e];if(n>=t-l)return[n,r+n-e]}else{let n=t-i.vec[e];if(l>=n)return[l,u]}}}return null}},Y4=new J4,X4=new J4;function Z4(e,t,n,r,i,a,o,s){let c=!1;return!v3(e,r)&&++r==n&&(c=!0),!v3(i,s)&&++s==o&&(c=!0),c?[new H4(t,n,a,o)]:U4(e,t,r,i,a,s).concat(U4(e,r,n,i,s,o))}function Q4(e,t){let n=1,r=Math.min(e,t);for(;n<r;)n<<=1;return n}function $4(e,t,n,r,i,a){if(t==n||t==a||e.charCodeAt(t)!=r.charCodeAt(i))return 0;let o=Q4(n-t,a-i);for(let s=t,c=i;;){let i=s+o,l=c+o;if(i>n||l>a||e.slice(s,i)!=r.slice(c,l)){if(o==1)return s-t-+!v3(e,s);o>>=1}else if(i==n||l==a)return i-t;else s=i,c=l}}function e3(e,t,n,r,i,a){if(t==n||i==a||e.charCodeAt(n-1)!=r.charCodeAt(a-1))return 0;let o=Q4(n-t,a-i);for(let s=n,c=a;;){let a=s-o,l=c-o;if(a<t||l<i||e.slice(a,s)!=r.slice(l,c)){if(o==1)return n-s-+!v3(e,s);o>>=1}else if(a==t||l==i)return n-a;else s=a,c=l}}function t3(e,t,n,r,i,a,o,s){let c=r.slice(i,a),l=null;for(;;){if(l||o<s)return l;for(let s=t+o;;){v3(e,s)||s++;let u=s+o;if(v3(e,u)||(u+=u==s+1?1:-1),u>=n)break;let d=e.slice(s,u),f=-1;for(;(f=c.indexOf(d,f+1))!=-1;){let o=$4(e,u,n,r,i+f+d.length,a),c=e3(e,t,s,r,i,i+f),p=d.length+o+c;(!l||l[2]<p)&&(l=[s-c,i+f-c,p])}s=u}if(s<0)return l;o>>=1}}function n3(e,t,n,r,i,a){let o=n-t,s=a-i;if(o<s){let o=n3(r,i,a,e,t,n);return o&&[o[1],o[0],o[2]]}return o<4||s*2<o?null:t3(e,t,n,r,i,a,Math.floor(o/4),-1)}function r3(e,t,n,r,i,a){K4=!0;let o=n-t,s=a-i,c;if(o<s){let s=t3(r,i,a,e,t,n,Math.floor(o/6),50);c=s&&[s[1],s[0],s[2]]}else c=t3(e,t,n,r,i,a,Math.floor(s/6),50);if(!c)return[new H4(t,n,i,a)];let[l,u,d]=c;return U4(e,t,l,r,i,u).concat(U4(e,l+d,n,r,u+d,a))}function i3(e,t){for(let n=1;n<e.length;n++){let r=e[n-1],i=e[n];r.toA>i.fromA-t&&r.toB>i.fromB-t&&(e[n-1]=new H4(r.fromA,i.toA,r.fromB,i.toB),e.splice(n--,1))}}function a3(e,t,n){for(;;){i3(n,1);let r=!1;for(let i=0;i<n.length;i++){let a=n[i],o,s;(o=$4(e,a.fromA,a.toA,t,a.fromB,a.toB))&&(a=n[i]=new H4(a.fromA+o,a.toA,a.fromB+o,a.toB)),(s=e3(e,a.fromA,a.toA,t,a.fromB,a.toB))&&(a=n[i]=new H4(a.fromA,a.toA-s,a.fromB,a.toB-s));let c=a.toA-a.fromA,l=a.toB-a.fromB;if(c&&l)continue;let u=a.fromA-(i?n[i-1].toA:0),d=(i<n.length-1?n[i+1].fromA:e.length)-a.toA;if(!u||!d)continue;let f=c?e.slice(a.fromA,a.toA):t.slice(a.fromB,a.toB);u<=f.length&&e.slice(a.fromA-u,a.fromA)==f.slice(f.length-u)?(n[i]=new H4(a.fromA-u,a.toA-u,a.fromB-u,a.toB-u),r=!0):d<=f.length&&e.slice(a.toA,a.toA+d)==f.slice(0,d)&&(n[i]=new H4(a.fromA+d,a.toA+d,a.fromB+d,a.toB+d),r=!0)}if(!r)break}return n}function o3(e,t,n){for(let r=0,i=0;i<e.length;i++){let a=e[i],o=a.toA-a.fromA,s=a.toB-a.fromB;if(o&&s||o>3||s>3){let c=i==e.length-1?t.length:e[i+1].fromA,l=a.fromA-r,u=c-a.toA,d=p3(t,a.fromA,l),f=f3(t,a.toA,u),p=a.fromA-d,m=f-a.toA;if((!o||!s)&&p&&m){let l=Math.max(o,s),[u,h,g]=o?[t,a.fromA,a.toA]:[n,a.fromB,a.toB];l>p&&t.slice(d,a.fromA)==u.slice(g-p,g)?(a=e[i]=new H4(d,d+o,a.fromB-p,a.toB-p),d=a.fromA,f=f3(t,a.toA,c-a.toA)):l>m&&t.slice(a.toA,f)==u.slice(h,h+m)&&(a=e[i]=new H4(f-o,f,a.fromB+m,a.toB+m),f=a.toA,d=p3(t,a.fromA,a.fromA-r)),p=a.fromA-d,m=f-a.toA}if(p||m)a=e[i]=new H4(a.fromA-p,a.toA+m,a.fromB-p,a.toB+m);else if(!o){let t=h3(n,a.fromB,a.toB),r,o=t<0?-1:m3(n,a.toB,a.fromB);t>-1&&(r=t-a.fromB)<=u&&n.slice(a.fromB,t)==n.slice(a.toB,a.toB+r)?a=e[i]=a.offset(r):o>-1&&(r=a.toB-o)<=l&&n.slice(a.fromB-r,a.fromB)==n.slice(o,a.toB)&&(a=e[i]=a.offset(-r))}else if(!s){let n=h3(t,a.fromA,a.toA),r,o=n<0?-1:m3(t,a.toA,a.fromA);n>-1&&(r=n-a.fromA)<=u&&t.slice(a.fromA,n)==t.slice(a.toA,a.toA+r)?a=e[i]=a.offset(r):o>-1&&(r=a.toA-o)<=l&&t.slice(a.fromA-r,a.fromA)==t.slice(o,a.toA)&&(a=e[i]=a.offset(-r))}}r=a.toA}return i3(e,3),e}var s3;try{s3=RegExp(`[\\p{Alphabetic}\\p{Number}]`,`u`)}catch{}function c3(e){return e>48&&e<58||e>64&&e<91||e>96&&e<123}function l3(e,t){if(t==e.length)return 0;let n=e.charCodeAt(t);return n<192?+!!c3(n):s3?!g3(n)||t==e.length-1?+!!s3.test(String.fromCharCode(n)):s3.test(e.slice(t,t+2))?2:0:0}function u3(e,t){if(!t)return 0;let n=e.charCodeAt(t-1);return n<192?+!!c3(n):s3?!_3(n)||t==1?+!!s3.test(String.fromCharCode(n)):s3.test(e.slice(t-2,t))?2:0:0}var d3=8;function f3(e,t,n){if(t==e.length||!u3(e,t))return t;for(let r=t,i=t+n,a=0;a<d3;a++){let t=l3(e,r);if(!t||r+t>i)return r;r+=t}return t}function p3(e,t,n){if(!t||!l3(e,t))return t;for(let r=t,i=t-n,a=0;a<d3;a++){let t=u3(e,r);if(!t||r-t<i)return r;r-=t}return t}function m3(e,t,n){for(;t!=n;t--)if(e.charCodeAt(t-1)==10)return t;return-1}function h3(e,t,n){for(;t!=n;t++)if(e.charCodeAt(t)==10)return t;return-1}var g3=e=>e>=55296&&e<=56319,_3=e=>e>=56320&&e<=57343;function v3(e,t){return!t||t==e.length||!g3(e.charCodeAt(t-1))||!_3(e.charCodeAt(t))}function y3(e,t,n){let r=n?.override;return r?r(e,t):(W4=(n?.scanLimit??1e9)>>1,G4=n?.timeout?Date.now()+n.timeout:0,K4=!1,a3(e,t,U4(e,0,e.length,t,0,t.length)))}function b3(){return!K4}function x3(e,t,n){return o3(y3(e,t,n),e,t)}var S3=u.define({combine:e=>e[0]}),C3=S.define(),w3=u.define(),T3=w.define({create(e){return null},update(e,t){for(let n of t.effects)n.is(C3)&&(e=n.value);for(let n of t.state.facet(w3))e=n(e,t);return e}}),E3=class e{constructor(e,t,n,r,i,a=!0){this.changes=e,this.fromA=t,this.toA=n,this.fromB=r,this.toB=i,this.precise=a}offset(t,n){return t||n?new e(this.changes,this.fromA+t,this.toA+t,this.fromB+n,this.toB+n,this.precise):this}get endA(){return Math.max(this.fromA,this.toA-1)}get endB(){return Math.max(this.fromB,this.toB-1)}static build(e,t,n){return k3(x3(e.toString(),t.toString(),n),e,t,0,0,b3())}static updateA(e,t,n,r,i){return N3(M3(e,r,!0,n.length),e,t,n,i)}static updateB(e,t,n,r,i){return N3(M3(e,r,!1,t.length),e,t,n,i)}};function D3(e,t,n,r){let i=n.lineAt(e),a=r.lineAt(t);return i.to==e&&a.to==t&&e<n.length&&t<r.length?[e+1,t+1]:[i.from,a.from]}function O3(e,t,n,r){let i=n.lineAt(e),a=r.lineAt(t);return i.from==e&&a.from==t?[e,t]:[i.to+1,a.to+1]}function k3(e,t,n,r,i,a){let o=[];for(let s=0;s<e.length;s++){let c=e[s],[l,u]=D3(c.fromA+r,c.fromB+i,t,n),[d,f]=O3(c.toA+r,c.toB+i,t,n),p=[c.offset(-l+r,-u+i)];for(;s<e.length-1;){let a=e[s+1],[o,c]=D3(a.fromA+r,a.fromB+i,t,n);if(o>d+1&&c>f+1)break;p.push(a.offset(-l+r,-u+i)),[d,f]=O3(a.toA+r,a.toB+i,t,n),s++}o.push(new E3(p,l,Math.max(l,d),u,Math.max(u,f),a))}return o}var A3=1e3;function j3(e,t,n,r){let i=0,a=e.length;for(;;){if(i==a){let r=0,a=0;i&&({toA:r,toB:a}=e[i-1]);let o=t-(n?r:a);return[r+o,a+o]}let o=i+a>>1,s=e[o],[c,l]=n?[s.fromA,s.toA]:[s.fromB,s.toB];if(c>t)a=o;else if(l<=t)i=o+1;else return r?[s.fromA,s.fromB]:[s.toA,s.toB]}}function M3(e,t,n,r){let i=[];return t.iterChangedRanges((a,o,s,c)=>{let l=0,u=n?t.length:r,d=0,f=n?r:t.length;a>A3&&([l,d]=j3(e,a-A3,n,!0)),o<t.length-A3&&([u,f]=j3(e,o+A3,n,!1));let p=c-s-(o-a),m,[h,g]=n?[p,0]:[0,p];i.length&&(m=i[i.length-1]).toA>=l?i[i.length-1]={fromA:m.fromA,fromB:m.fromB,toA:u,toB:f,diffA:m.diffA+h,diffB:m.diffB+g}:i.push({fromA:l,toA:u,fromB:d,toB:f,diffA:h,diffB:g})}),i}function N3(e,t,n,r,i){if(!e.length)return t;let a=[];for(let o=0,s=0,c=0,l=0;;o++){let u=o==e.length?null:e[o],d=u?u.fromA+s:n.length,f=u?u.fromB+c:r.length;for(;l<t.length;){let e=t[l];if(u&&(e.toA+s>d||e.toB+c>f))break;a.push(e.offset(s,c)),l++}if(!u)break;let p=u.toA+s+u.diffA,m=u.toB+c+u.diffB,h=x3(n.sliceString(d,p),r.sliceString(f,m),i);for(let e of k3(h,n,r,d,f,b3()))a.push(e);for(s+=u.diffA,c+=u.diffB;l<t.length;){let e=t[l];if(e.fromA+s>p&&e.fromB+c>m)break;l++}}return a}var P3={scanLimit:500},F3=ce.fromClass(class{constructor(e){({deco:this.deco,gutter:this.gutter}=G3(e))}update(e){(e.docChanged||e.viewportChanged||L3(e.startState,e.state)||R3(e.startState,e.state))&&({deco:this.deco,gutter:this.gutter}=G3(e.view))}},{decorations:e=>e.deco}),I3=E.low(De({class:`cm-changeGutter`,markers:e=>e.plugin(F3)?.gutter||je.empty}));function L3(e,t){return e.field(T3,!1)!=t.field(T3,!1)}function R3(e,t){return e.facet(S3)!=t.facet(S3)}var z3=Ve.line({class:`cm-changedLine`}),B3=Ve.mark({class:`cm-changedText`}),V3=Ve.mark({tagName:`ins`,class:`cm-insertedLine`}),H3=Ve.mark({tagName:`del`,class:`cm-deletedLine`}),U3=new class extends se{constructor(){super(...arguments),this.elementClass=`cm-changedLineGutter`}};function W3(e,t,n,r,i,a){let o=n?e.fromA:e.fromB,s=n?e.toA:e.toB,c=0;if(o!=s){i.add(o,o,z3),i.add(o,s,n?H3:V3),a&&a.add(o,o,U3);for(let l=t.iterRange(o,s-1),u=o;!l.next().done;){if(l.lineBreak){u++,i.add(u,u,z3),a&&a.add(u,u,U3);continue}let t=u+l.value.length;if(r)for(;c<e.changes.length;){let r=e.changes[c],a=o+(n?r.fromA:r.fromB),s=o+(n?r.toA:r.toB),l=Math.max(u,a),d=Math.min(t,s);if(l<d&&i.add(l,d,B3),s<t)c++;else break}u=t}}}function G3(e){let t=e.state.field(T3),{side:r,highlightChanges:i,markGutter:a,overrideChunk:o}=e.state.facet(S3),s=r==`a`,c=new n,l=a?new n:null,{from:u,to:d}=e.viewport;for(let n of t){if((s?n.fromA:n.fromB)>=d)break;(s?n.toA:n.toB)>u&&(!o||!o(e.state,n,c,l))&&W3(n,e.state.doc,s,i,c,l)}return{deco:c.finish(),gutter:l&&l.finish()}}var K3=class extends O{constructor(e){super(),this.height=e}eq(e){return this.height==e.height}toDOM(){let e=document.createElement(`div`);return e.className=`cm-mergeSpacer`,e.style.height=this.height+`px`,e}updateDOM(e){return e.style.height=this.height+`px`,!0}get estimatedHeight(){return this.height}ignoreEvent(){return!1}},q3=S.define({map:(e,t)=>e.map(t)}),J3=w.define({create:()=>Ve.none,update:(e,t)=>{for(let e of t.effects)if(e.is(q3))return e.value;return e.map(t.changes)},provide:e=>N.decorations.from(e)}),Y3=.01;function X3(e,t){if(e.size!=t.size)return!1;let n=e.iter(),r=t.iter();for(;n.value;){if(n.from!=r.from||Math.abs(n.value.spec.widget.height-r.value.spec.widget.height)>1)return!1;n.next(),r.next()}return!0}function Z3(e,t,r){let i=new n,a=new n,o=e.state.field(J3).iter(),s=t.state.field(J3).iter(),c=0,l=0,u=0,d=0,f=e.viewport,p=t.viewport;for(let n=0;;n++){let m=n<r.length?r[n]:null,h=m?m.fromA:e.state.doc.length,g=m?m.fromB:t.state.doc.length;if(c<h){let n=e.lineBlockAt(c).top+u-(t.lineBlockAt(l).top+d);n<-Y3?(u-=n,i.add(c,c,Ve.widget({widget:new K3(-n),block:!0,side:-1}))):n>Y3&&(d+=n,a.add(l,l,Ve.widget({widget:new K3(n),block:!0,side:-1})))}if(h>c+1e3&&c<f.from&&h>f.from&&l<p.from&&g>p.from){let e=Math.min(f.from-c,p.from-l);c+=e,l+=e,n--}else if(m)c=m.toA,l=m.toB;else break;for(;o.value&&o.from<c;)u-=o.value.spec.widget.height,o.next();for(;s.value&&s.from<l;)d-=s.value.spec.widget.height,s.next()}for(;o.value;)u-=o.value.spec.widget.height,o.next();for(;s.value;)d-=s.value.spec.widget.height,s.next();let m=e.contentHeight+u-(t.contentHeight+d);m<Y3?i.add(e.state.doc.length,e.state.doc.length,Ve.widget({widget:new K3(-m),block:!0,side:1})):m>Y3&&a.add(t.state.doc.length,t.state.doc.length,Ve.widget({widget:new K3(m),block:!0,side:1}));let h=i.finish(),g=a.finish();X3(h,e.state.field(J3))||e.dispatch({effects:q3.of(h)}),X3(g,t.state.field(J3))||t.dispatch({effects:q3.of(g)})}var Q3=S.define({map:(e,t)=>t.mapPos(e)}),$3=class extends O{constructor(e){super(),this.lines=e}eq(e){return this.lines==e.lines}toDOM(e){let t=document.createElement(`div`);return t.className=`cm-collapsedLines`,t.textContent=e.state.phrase(`$ unchanged lines`,this.lines),t.addEventListener(`click`,t=>{let n=e.posAtDOM(t.target);e.dispatch({effects:Q3.of(n)});let{side:r,sibling:i}=e.state.facet(S3);i&&i().dispatch({effects:Q3.of(e6(n,e.state.field(T3),r==`a`))})}),t}ignoreEvent(e){return e instanceof MouseEvent}get estimatedHeight(){return 27}get type(){return`collapsed-unchanged-code`}};function e6(e,t,n){let r=0,i=0;for(let a=0;;a++){let o=a<t.length?t[a]:null;if(!o||(n?o.fromA:o.fromB)>=e)return i+(e-r);[r,i]=n?[o.toA,o.toB]:[o.toB,o.toA]}}var t6=w.define({create(e){return Ve.none},update(e,t){e=e.map(t.changes);for(let n of t.effects)n.is(Q3)&&(e=e.update({filter:e=>e!=n.value}));return e},provide:e=>N.decorations.from(e)});function n6({margin:e=3,minSize:t=4}){return t6.init(n=>r6(n,e,t))}function r6(e,t,r){let i=new n,a=e.facet(S3).side==`a`,o=e.field(T3),s=1;for(let n=0;;n++){let c=n<o.length?o[n]:null,l=n?s+t:1,u=c?e.doc.lineAt(a?c.fromA:c.fromB).number-1-t:e.doc.lines,d=u-l+1;if(d>=r&&i.add(e.doc.line(l).from,e.doc.line(u).to,Ve.replace({widget:new $3(d),block:!0})),!c)break;s=e.doc.lineAt(Math.min(e.doc.length,a?c.toA:c.toB)).number}return i.finish()}var i6=N.styleModule.of(new Ze({".cm-mergeView":{overflowY:`auto`},".cm-mergeViewEditors":{display:`flex`,alignItems:`stretch`},".cm-mergeViewEditor":{flexGrow:1,flexBasis:0,overflow:`hidden`},".cm-merge-revert":{width:`1.6em`,flexGrow:0,flexShrink:0,position:`relative`},".cm-merge-revert button":{position:`absolute`,display:`block`,width:`100%`,boxSizing:`border-box`,textAlign:`center`,background:`none`,border:`none`,font:`inherit`,cursor:`pointer`}})),a6=N.baseTheme({".cm-mergeView & .cm-scroller, .cm-mergeView &":{height:`auto !important`,overflowY:`visible !important`},"&.cm-merge-a .cm-changedLine, .cm-deletedChunk":{backgroundColor:`rgba(160, 128, 100, .08)`},"&.cm-merge-b .cm-changedLine, .cm-inlineChangedLine":{backgroundColor:`rgba(100, 160, 128, .08)`},"&light.cm-merge-a .cm-changedText, &light .cm-deletedChunk .cm-deletedText":{background:`linear-gradient(#ee443366, #ee443366) bottom/100% 2px no-repeat`},"&dark.cm-merge-a .cm-changedText, &dark .cm-deletedChunk .cm-deletedText":{background:`linear-gradient(#ffaa9966, #ffaa9966) bottom/100% 2px no-repeat`},"&light.cm-merge-b .cm-changedText":{background:`linear-gradient(#22bb22aa, #22bb22aa) bottom/100% 2px no-repeat`},"&dark.cm-merge-b .cm-changedText":{background:`linear-gradient(#88ff88aa, #88ff88aa) bottom/100% 2px no-repeat`},"&.cm-merge-b .cm-deletedText":{background:`#ff000033`},".cm-insertedLine, .cm-deletedLine, .cm-deletedLine del":{textDecoration:`none`},".cm-deletedChunk":{paddingLeft:`6px`,"& .cm-chunkButtons":{position:`absolute`,insetInlineEnd:`5px`},"& button":{border:`none`,cursor:`pointer`,color:`white`,margin:`0 2px`,borderRadius:`3px`,"&[name=accept]":{background:`#2a2`},"&[name=reject]":{background:`#d43`}}},".cm-collapsedLines":{padding:`5px 5px 5px 10px`,cursor:`pointer`,"&:before":{content:`"⦚"`,marginInlineEnd:`7px`},"&:after":{content:`"⦚"`,marginInlineStart:`7px`}},"&light .cm-collapsedLines":{color:`#444`,background:`linear-gradient(to bottom, transparent 0, #f3f3f3 30%, #f3f3f3 70%, transparent 100%)`},"&dark .cm-collapsedLines":{color:`#ddd`,background:`linear-gradient(to bottom, transparent 0, #222 30%, #222 70%, transparent 100%)`},".cm-changeGutter":{width:`3px`,paddingLeft:`1px`},"&light.cm-merge-a .cm-changedLineGutter, &light .cm-deletedLineGutter":{background:`#e43`},"&dark.cm-merge-a .cm-changedLineGutter, &dark .cm-deletedLineGutter":{background:`#fa9`},"&light.cm-merge-b .cm-changedLineGutter":{background:`#2b2`},"&dark.cm-merge-b .cm-changedLineGutter":{background:`#8f8`},".cm-inlineChangedLineGutter":{background:`#75d`}}),o6=new o,s6=new o,c6=class{constructor(e){this.revertDOM=null,this.revertToA=!1,this.revertToLeft=!1,this.measuring=-1,this.diffConf=e.diffConfig||P3;let t=[E.low(F3),a6,i6,J3,N.updateListener.of(e=>{this.measuring<0&&(e.heightChanged||e.viewportChanged)&&!e.transactions.some(e=>e.effects.some(e=>e.is(q3)))&&this.measure()})],n=[S3.of({side:`a`,sibling:()=>this.b,highlightChanges:e.highlightChanges!==!1,markGutter:e.gutter!==!1})];e.gutter!==!1&&n.push(I3);let r=ne.create({doc:e.a.doc,selection:e.a.selection,extensions:[e.a.extensions||[],N.editorAttributes.of({class:`cm-merge-a`}),s6.of(n),t]}),i=[S3.of({side:`b`,sibling:()=>this.a,highlightChanges:e.highlightChanges!==!1,markGutter:e.gutter!==!1})];e.gutter!==!1&&i.push(I3);let a=ne.create({doc:e.b.doc,selection:e.b.selection,extensions:[e.b.extensions||[],N.editorAttributes.of({class:`cm-merge-b`}),s6.of(i),t]});this.chunks=E3.build(r.doc,a.doc,this.diffConf);let o=[T3.init(()=>this.chunks),o6.of(e.collapseUnchanged?n6(e.collapseUnchanged):[])];r=r.update({effects:S.appendConfig.of(o)}).state,a=a.update({effects:S.appendConfig.of(o)}).state,this.dom=document.createElement(`div`),this.dom.className=`cm-mergeView`,this.editorDOM=this.dom.appendChild(document.createElement(`div`)),this.editorDOM.className=`cm-mergeViewEditors`;let s=e.orientation||`a-b`,c=document.createElement(`div`);c.className=`cm-mergeViewEditor`;let l=document.createElement(`div`);l.className=`cm-mergeViewEditor`,this.editorDOM.appendChild(s==`a-b`?c:l),this.editorDOM.appendChild(s==`a-b`?l:c),this.a=new N({state:r,parent:c,root:e.root,dispatchTransactions:e=>this.dispatch(e,this.a)}),this.b=new N({state:a,parent:l,root:e.root,dispatchTransactions:e=>this.dispatch(e,this.b)}),this.setupRevertControls(!!e.revertControls,e.revertControls==`b-to-a`,e.renderRevertControl),e.parent&&e.parent.appendChild(this.dom),this.scheduleMeasure()}dispatch(e,t){if(e.some(e=>e.docChanged)){let n=e[e.length-1],r=e.reduce((e,t)=>e.compose(t.changes),et.empty(e[0].startState.doc.length));this.chunks=t==this.a?E3.updateA(this.chunks,n.newDoc,this.b.state.doc,r,this.diffConf):E3.updateB(this.chunks,this.a.state.doc,n.newDoc,r,this.diffConf),t.update([...e,n.state.update({effects:C3.of(this.chunks)})]);let i=t==this.a?this.b:this.a;i.update([i.state.update({effects:C3.of(this.chunks)})]),this.scheduleMeasure()}else t.update(e)}reconfigure(e){if(`diffConfig`in e&&(this.diffConf=e.diffConfig),`orientation`in e){let t=e.orientation!=`b-a`;if(t!=(this.editorDOM.firstChild==this.a.dom.parentNode)){let e=this.a.dom.parentNode,n=this.b.dom.parentNode;e.remove(),n.remove(),this.editorDOM.insertBefore(t?e:n,this.editorDOM.firstChild),this.editorDOM.appendChild(t?n:e),this.revertToLeft=!this.revertToLeft,this.revertDOM&&(this.revertDOM.textContent=``)}}if(`revertControls`in e||`renderRevertControl`in e){let t=!!this.revertDOM,n=this.revertToA,r=this.renderRevert;`revertControls`in e&&(t=!!e.revertControls,n=e.revertControls==`b-to-a`),`renderRevertControl`in e&&(r=e.renderRevertControl),this.setupRevertControls(t,n,r)}let t=`highlightChanges`in e,n=`gutter`in e,r=`collapseUnchanged`in e;if(t||n||r){let i=[],a=[];if(t||n){let r=this.a.state.facet(S3),o=n?e.gutter!==!1:r.markGutter,s=t?e.highlightChanges!==!1:r.highlightChanges;i.push(s6.reconfigure([S3.of({side:`a`,sibling:()=>this.b,highlightChanges:s,markGutter:o}),o?I3:[]])),a.push(s6.reconfigure([S3.of({side:`b`,sibling:()=>this.a,highlightChanges:s,markGutter:o}),o?I3:[]]))}if(r){let t=o6.reconfigure(e.collapseUnchanged?n6(e.collapseUnchanged):[]);i.push(t),a.push(t)}this.a.dispatch({effects:i}),this.b.dispatch({effects:a})}this.scheduleMeasure()}setupRevertControls(e,t,n){this.revertToA=t,this.revertToLeft=this.revertToA==(this.editorDOM.firstChild==this.a.dom.parentNode),this.renderRevert=n,!e&&this.revertDOM?(this.revertDOM.remove(),this.revertDOM=null):e&&!this.revertDOM?(this.revertDOM=this.editorDOM.insertBefore(document.createElement(`div`),this.editorDOM.firstChild.nextSibling),this.revertDOM.addEventListener(`mousedown`,e=>this.revertClicked(e)),this.revertDOM.className=`cm-merge-revert`):this.revertDOM&&(this.revertDOM.textContent=``)}scheduleMeasure(){if(this.measuring<0){let e=this.dom.ownerDocument.defaultView||window;this.measuring=e.requestAnimationFrame(()=>{this.measuring=-1,this.measure()})}}measure(){Z3(this.a,this.b,this.chunks),this.revertDOM&&this.updateRevertButtons()}updateRevertButtons(){let e=this.revertDOM,t=e.firstChild,n=this.a.viewport,r=this.b.viewport;for(let i=0;i<this.chunks.length;i++){let a=this.chunks[i];if(a.fromA>n.to||a.fromB>r.to)break;if(a.fromA<n.from||a.fromB<r.from)continue;let o=this.a.lineBlockAt(a.fromA).top+`px`;for(;t&&+t.dataset.chunk<i;)t=l6(t);t&&t.dataset.chunk==String(i)?(t.style.top!=o&&(t.style.top=o),t=t.nextSibling):e.insertBefore(this.renderRevertButton(o,i),t)}for(;t;)t=l6(t)}renderRevertButton(e,t){let n;if(this.renderRevert)n=this.renderRevert();else{n=document.createElement(`button`);let e=this.a.state.phrase(`Revert this chunk`);n.setAttribute(`aria-label`,e),n.setAttribute(`title`,e),n.textContent=this.revertToLeft?`⇜`:`⇝`}return n.style.top=e,n.setAttribute(`data-chunk`,String(t)),n}revertClicked(e){let t=e.target,n;for(;t&&t.parentNode!=this.revertDOM;)t=t.parentNode;if(t&&(n=this.chunks[t.dataset.chunk])){let[t,r,i,a,o,s]=this.revertToA?[this.b,this.a,n.fromB,n.toB,n.fromA,n.toA]:[this.a,this.b,n.fromA,n.toA,n.fromB,n.toB],c=t.state.sliceDoc(i,Math.max(i,a-1));i!=a&&s<=r.state.doc.length&&(c+=t.state.lineBreak),r.dispatch({changes:{from:o,to:Math.min(r.state.doc.length,s),insert:c},userEvent:`revert`}),e.preventDefault()}}destroy(){this.a.destroy(),this.b.destroy(),this.measuring>-1&&(this.dom.ownerDocument.defaultView||window).cancelAnimationFrame(this.measuring),this.dom.remove()}};function l6(e){let t=e.nextSibling;return e.remove(),t}var u6=class e{static create(t,n,r,i,a){return new e(t,n,r,i+(i<<8)+t+(n<<4)|0,a,[],[])}constructor(e,t,n,i,a,o,s){this.type=e,this.value=t,this.from=n,this.hash=i,this.end=a,this.children=o,this.positions=s,this.hashProp=[[r.contextHash,i]]}addChild(e,t){e.prop(r.contextHash)!=this.hash&&(e=new p(e.type,e.children,e.positions,e.length,this.hashProp)),this.children.push(e),this.positions.push(t)}toTree(e,t=this.end){let n=this.children.length-1;return n>=0&&(t=Math.max(t,this.positions[n]+this.children[n].length+this.from)),new p(e.types[this.type],this.children,this.positions,t-this.from).balance({makeTree:(e,t,n)=>new p(m.none,e,t,n,this.hashProp)})}},$;(function(e){e[e.Document=1]=`Document`,e[e.CodeBlock=2]=`CodeBlock`,e[e.FencedCode=3]=`FencedCode`,e[e.Blockquote=4]=`Blockquote`,e[e.HorizontalRule=5]=`HorizontalRule`,e[e.BulletList=6]=`BulletList`,e[e.OrderedList=7]=`OrderedList`,e[e.ListItem=8]=`ListItem`,e[e.ATXHeading1=9]=`ATXHeading1`,e[e.ATXHeading2=10]=`ATXHeading2`,e[e.ATXHeading3=11]=`ATXHeading3`,e[e.ATXHeading4=12]=`ATXHeading4`,e[e.ATXHeading5=13]=`ATXHeading5`,e[e.ATXHeading6=14]=`ATXHeading6`,e[e.SetextHeading1=15]=`SetextHeading1`,e[e.SetextHeading2=16]=`SetextHeading2`,e[e.HTMLBlock=17]=`HTMLBlock`,e[e.LinkReference=18]=`LinkReference`,e[e.Paragraph=19]=`Paragraph`,e[e.CommentBlock=20]=`CommentBlock`,e[e.ProcessingInstructionBlock=21]=`ProcessingInstructionBlock`,e[e.Escape=22]=`Escape`,e[e.Entity=23]=`Entity`,e[e.HardBreak=24]=`HardBreak`,e[e.Emphasis=25]=`Emphasis`,e[e.StrongEmphasis=26]=`StrongEmphasis`,e[e.Link=27]=`Link`,e[e.Image=28]=`Image`,e[e.InlineCode=29]=`InlineCode`,e[e.HTMLTag=30]=`HTMLTag`,e[e.Comment=31]=`Comment`,e[e.ProcessingInstruction=32]=`ProcessingInstruction`,e[e.Autolink=33]=`Autolink`,e[e.HeaderMark=34]=`HeaderMark`,e[e.QuoteMark=35]=`QuoteMark`,e[e.ListMark=36]=`ListMark`,e[e.LinkMark=37]=`LinkMark`,e[e.EmphasisMark=38]=`EmphasisMark`,e[e.CodeMark=39]=`CodeMark`,e[e.CodeText=40]=`CodeText`,e[e.CodeInfo=41]=`CodeInfo`,e[e.LinkTitle=42]=`LinkTitle`,e[e.LinkLabel=43]=`LinkLabel`,e[e.URL=44]=`URL`})($||={});var d6=class{constructor(e,t){this.start=e,this.content=t,this.marks=[],this.parsers=[]}},f6=class{constructor(){this.text=``,this.baseIndent=0,this.basePos=0,this.depth=0,this.markers=[],this.pos=0,this.indent=0,this.next=-1}forward(){this.basePos>this.pos&&this.forwardInner()}forwardInner(){let e=this.skipSpace(this.basePos);this.indent=this.countIndent(e,this.pos,this.indent),this.pos=e,this.next=e==this.text.length?-1:this.text.charCodeAt(e)}skipSpace(e){return g6(this.text,e)}reset(e){for(this.text=e,this.baseIndent=this.basePos=this.pos=this.indent=0,this.forwardInner(),this.depth=1;this.markers.length;)this.markers.pop()}moveBase(e){this.basePos=e,this.baseIndent=this.countIndent(e,this.pos,this.indent)}moveBaseColumn(e){this.baseIndent=e,this.basePos=this.findColumn(e)}addMarker(e){this.markers.push(e)}countIndent(e,t=0,n=0){for(let r=t;r<e;r++)n+=this.text.charCodeAt(r)==9?4-n%4:1;return n}findColumn(e){let t=0;for(let n=0;t<this.text.length&&n<e;t++)n+=this.text.charCodeAt(t)==9?4-n%4:1;return t}scrub(){if(!this.baseIndent)return this.text;let e=``;for(let t=0;t<this.basePos;t++)e+=` `;return e+this.text.slice(this.basePos)}};function p6(e,t,n){if(n.pos==n.text.length||e!=t.block&&n.indent>=t.stack[n.depth+1].value+n.baseIndent)return!0;if(n.indent>=n.baseIndent+4)return!1;let r=(e.type==$.OrderedList?C6:S6)(n,t,!1);return r>0&&(e.type!=$.BulletList||b6(n,t,!1)<0)&&n.text.charCodeAt(n.pos+r-1)==e.value}var m6={[$.Blockquote](e,t,n){return n.next==62?(n.markers.push(Z6($.QuoteMark,t.lineStart+n.pos,t.lineStart+n.pos+1)),n.moveBase(n.pos+(h6(n.text.charCodeAt(n.pos+1))?2:1)),e.end=t.lineStart+n.text.length,!0):!1},[$.ListItem](e,t,n){return n.indent<n.baseIndent+e.value&&n.next>-1?!1:(n.moveBaseColumn(n.baseIndent+e.value),!0)},[$.OrderedList]:p6,[$.BulletList]:p6,[$.Document](){return!0}};function h6(e){return e==32||e==9||e==10||e==13}function g6(e,t=0){for(;t<e.length&&h6(e.charCodeAt(t));)t++;return t}function _6(e,t,n){for(;t>n&&h6(e.charCodeAt(t-1));)t--;return t}function v6(e){if(e.next!=96&&e.next!=126)return-1;let t=e.pos+1;for(;t<e.text.length&&e.text.charCodeAt(t)==e.next;)t++;if(t<e.pos+3)return-1;if(e.next==96){for(let n=t;n<e.text.length;n++)if(e.text.charCodeAt(n)==96)return-1}return t}function y6(e){return e.next==62?e.text.charCodeAt(e.pos+1)==32?2:1:-1}function b6(e,t,n){if(e.next!=42&&e.next!=45&&e.next!=95)return-1;let r=1;for(let t=e.pos+1;t<e.text.length;t++){let n=e.text.charCodeAt(t);if(n==e.next)r++;else if(!h6(n))return-1}return n&&e.next==45&&T6(e)>-1&&e.depth==t.stack.length&&t.parser.leafBlockParsers.indexOf(L6.SetextHeading)>-1||r<3?-1:1}function x6(e,t){for(let n=e.stack.length-1;n>=0;n--)if(e.stack[n].type==t)return!0;return!1}function S6(e,t,n){return(e.next==45||e.next==43||e.next==42)&&(e.pos==e.text.length-1||h6(e.text.charCodeAt(e.pos+1)))&&(!n||x6(t,$.BulletList)||e.skipSpace(e.pos+2)<e.text.length)?1:-1}function C6(e,t,n){let r=e.pos,i=e.next;for(;i>=48&&i<=57;){if(r++,r==e.text.length)return-1;i=e.text.charCodeAt(r)}return r==e.pos||r>e.pos+9||i!=46&&i!=41||r<e.text.length-1&&!h6(e.text.charCodeAt(r+1))||n&&!x6(t,$.OrderedList)&&(e.skipSpace(r+1)==e.text.length||r>e.pos+1||e.next!=49)?-1:r+1-e.pos}function w6(e){if(e.next!=35)return-1;let t=e.pos+1;for(;t<e.text.length&&e.text.charCodeAt(t)==35;)t++;if(t<e.text.length&&e.text.charCodeAt(t)!=32)return-1;let n=t-e.pos;return n>6?-1:n}function T6(e){if(e.next!=45&&e.next!=61||e.indent>=e.baseIndent+4)return-1;let t=e.pos+1;for(;t<e.text.length&&e.text.charCodeAt(t)==e.next;)t++;let n=t;for(;t<e.text.length&&h6(e.text.charCodeAt(t));)t++;return t==e.text.length?n:-1}var E6=/^[ \t]*$/,D6=/-->/,O6=/\?>/,k6=[[/^<(?:script|pre|style)(?:\s|>|$)/i,/<\/(?:script|pre|style)>/i],[/^\s*<!--/,D6],[/^\s*<\?/,O6],[/^\s*<![A-Z]/,/>/],[/^\s*<!\[CDATA\[/,/\]\]>/],[/^\s*<\/?(?:address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h1|h2|h3|h4|h5|h6|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul)(?:\s|\/?>|$)/i,E6],[/^\s*(?:<\/[a-z][\w-]*\s*>|<[a-z][\w-]*(\s+[a-z:_][\w-.]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*>)\s*$/i,E6]];function A6(e,t,n){if(e.next!=60)return-1;let r=e.text.slice(e.pos);for(let e=0,t=k6.length-+!!n;e<t;e++)if(k6[e][0].test(r))return e;return-1}function j6(e,t){let n=e.countIndent(t,e.pos,e.indent),r=e.countIndent(e.skipSpace(t),t,n);return r>=n+5?n+1:r}function M6(e,t,n){let r=e.length-1;r>=0&&e[r].to==t&&e[r].type==$.CodeText?e[r].to=n:e.push(Z6($.CodeText,t,n))}var N6={LinkReference:void 0,IndentedCode(e,t){let n=t.baseIndent+4;if(t.indent<n)return!1;let r=t.findColumn(n),i=e.lineStart+r,a=e.lineStart+t.text.length,o=[],s=[];for(M6(o,i,a);e.nextLine()&&t.depth>=e.stack.length;)if(t.pos==t.text.length){M6(s,e.lineStart-1,e.lineStart);for(let e of t.markers)s.push(e)}else if(t.indent<n)break;else{if(s.length){for(let e of s)e.type==$.CodeText?M6(o,e.from,e.to):o.push(e);s=[]}M6(o,e.lineStart-1,e.lineStart);for(let e of t.markers)o.push(e);a=e.lineStart+t.text.length;let n=e.lineStart+t.findColumn(t.baseIndent+4);n<a&&M6(o,n,a)}return s.length&&(s=s.filter(e=>e.type!=$.CodeText),s.length&&(t.markers=s.concat(t.markers))),e.addNode(e.buffer.writeElements(o,-i).finish($.CodeBlock,a-i),i),!0},FencedCode(e,t){let n=v6(t);if(n<0)return!1;let r=e.lineStart+t.pos,i=t.next,a=n-t.pos,o=t.skipSpace(n),s=_6(t.text,t.text.length,o),c=[Z6($.CodeMark,r,r+a)];o<s&&c.push(Z6($.CodeInfo,e.lineStart+o,e.lineStart+s));for(let n=!0,r=!0,o=!1;e.nextLine()&&t.depth>=e.stack.length;n=!1){let s=t.pos;if(t.indent-t.baseIndent<4)for(;s<t.text.length&&t.text.charCodeAt(s)==i;)s++;if(s-t.pos>=a&&t.skipSpace(s)==t.text.length){for(let e of t.markers)c.push(e);r&&o&&M6(c,e.lineStart-1,e.lineStart),c.push(Z6($.CodeMark,e.lineStart+t.pos,e.lineStart+s)),e.nextLine();break}else{o=!0,n||(M6(c,e.lineStart-1,e.lineStart),r=!1);for(let e of t.markers)c.push(e);let i=e.lineStart+t.basePos,a=e.lineStart+t.text.length;i<a&&(M6(c,i,a),r=!1)}}return e.addNode(e.buffer.writeElements(c,-r).finish($.FencedCode,e.prevLineEnd()-r),r),!0},Blockquote(e,t){let n=y6(t);return n<0?!1:(e.startContext($.Blockquote,t.pos),e.addNode($.QuoteMark,e.lineStart+t.pos,e.lineStart+t.pos+1),t.moveBase(t.pos+n),null)},HorizontalRule(e,t){if(b6(t,e,!1)<0)return!1;let n=e.lineStart+t.pos;return e.nextLine(),e.addNode($.HorizontalRule,n),!0},BulletList(e,t){let n=S6(t,e,!1);if(n<0)return!1;e.block.type!=$.BulletList&&e.startContext($.BulletList,t.basePos,t.next);let r=j6(t,t.pos+1);return e.startContext($.ListItem,t.basePos,r-t.baseIndent),e.addNode($.ListMark,e.lineStart+t.pos,e.lineStart+t.pos+n),t.moveBaseColumn(r),null},OrderedList(e,t){let n=C6(t,e,!1);if(n<0)return!1;e.block.type!=$.OrderedList&&e.startContext($.OrderedList,t.basePos,t.text.charCodeAt(t.pos+n-1));let r=j6(t,t.pos+n);return e.startContext($.ListItem,t.basePos,r-t.baseIndent),e.addNode($.ListMark,e.lineStart+t.pos,e.lineStart+t.pos+n),t.moveBaseColumn(r),null},ATXHeading(e,t){let n=w6(t);if(n<0)return!1;let r=t.pos,i=e.lineStart+r,a=_6(t.text,t.text.length,r),o=a;for(;o>r&&t.text.charCodeAt(o-1)==t.next;)o--;(o==a||o==r||!h6(t.text.charCodeAt(o-1)))&&(o=t.text.length);let s=e.buffer.write($.HeaderMark,0,n).writeElements(e.parser.parseInline(t.text.slice(r+n+1,o),i+n+1),-i);o<t.text.length&&s.write($.HeaderMark,o-r,a-r);let c=s.finish($.ATXHeading1-1+n,t.text.length-r);return e.nextLine(),e.addNode(c,i),!0},HTMLBlock(e,t){let n=A6(t,e,!1);if(n<0)return!1;let r=e.lineStart+t.pos,i=k6[n][1],a=[],o=i!=E6;for(;!i.test(t.text)&&e.nextLine();){if(t.depth<e.stack.length){o=!1;break}for(let e of t.markers)a.push(e)}o&&e.nextLine();let s=i==D6?$.CommentBlock:i==O6?$.ProcessingInstructionBlock:$.HTMLBlock,c=e.prevLineEnd();return e.addNode(e.buffer.writeElements(a,-r).finish(s,c-r),r),!0},SetextHeading:void 0},P6=class{constructor(e){this.stage=0,this.elts=[],this.pos=0,this.start=e.start,this.advance(e.content)}nextLine(e,t,n){if(this.stage==-1)return!1;let r=n.content+`
|
|
188
|
-
`+t.scrub(),i=this.advance(r);return i>-1&&i<r.length?this.complete(e,n,i):!1}finish(e,t){return(this.stage==2||this.stage==3)&&g6(t.content,this.pos)==t.content.length?this.complete(e,t,t.content.length):!1}complete(e,t,n){return e.addLeafElement(t,Z6($.LinkReference,this.start,this.start+n,this.elts)),!0}nextStage(e){return e?(this.pos=e.to-this.start,this.elts.push(e),this.stage++,!0):(e===!1&&(this.stage=-1),!1)}advance(e){for(;;)if(this.stage==-1)return-1;else if(this.stage==0){if(!this.nextStage(l8(e,this.pos,this.start,!0)))return-1;if(e.charCodeAt(this.pos)!=58)return this.stage=-1;this.elts.push(Z6($.LinkMark,this.pos+this.start,this.pos+this.start+1)),this.pos++}else if(this.stage==1){if(!this.nextStage(s8(e,g6(e,this.pos),this.start)))return-1}else if(this.stage==2){let t=g6(e,this.pos),n=0;if(t>this.pos){let r=c8(e,t,this.start);if(r){let t=F6(e,r.to-this.start);t>0&&(this.nextStage(r),n=t)}}return n||=F6(e,this.pos),n>0&&n<e.length?n:-1}else return F6(e,this.pos)}};function F6(e,t){for(;t<e.length;t++){let n=e.charCodeAt(t);if(n==10)break;if(!h6(n))return-1}return t}var I6=class{nextLine(e,t,n){let r=t.depth<e.stack.length?-1:T6(t),i=t.next;if(r<0)return!1;let a=Z6($.HeaderMark,e.lineStart+t.pos,e.lineStart+r);return e.nextLine(),e.addLeafElement(n,Z6(i==61?$.SetextHeading1:$.SetextHeading2,n.start,e.prevLineEnd(),[...e.parser.parseInline(n.content,n.start),a])),!0}finish(){return!1}},L6={LinkReference(e,t){return t.content.charCodeAt(0)==91?new P6(t):null},SetextHeading(){return new I6}},R6=[(e,t)=>w6(t)>=0,(e,t)=>v6(t)>=0,(e,t)=>y6(t)>=0,(e,t)=>S6(t,e,!0)>=0,(e,t)=>C6(t,e,!0)>=0,(e,t)=>b6(t,e,!0)>=0,(e,t)=>A6(t,e,!0)>=0],z6={text:``,end:0},B6=class{constructor(e,t,n,r){this.parser=e,this.input=t,this.ranges=r,this.line=new f6,this.atEnd=!1,this.reusePlaceholders=new Map,this.stoppedAt=null,this.rangeI=0,this.to=r[r.length-1].to,this.lineStart=this.absoluteLineStart=this.absoluteLineEnd=r[0].from,this.block=u6.create($.Document,0,this.lineStart,0,0),this.stack=[this.block],this.fragments=n.length?new p8(n,t):null,this.readLine()}get parsedPos(){return this.absoluteLineStart}advance(){if(this.stoppedAt!=null&&this.absoluteLineStart>this.stoppedAt)return this.finish();let{line:e}=this;for(;;){for(let t=0;;){let n=e.depth<this.stack.length?this.stack[this.stack.length-1]:null;for(;t<e.markers.length&&(!n||e.markers[t].from<n.end);){let n=e.markers[t++];this.addNode(n.type,n.from,n.to)}if(!n)break;this.finishContext()}if(e.pos<e.text.length)break;if(!this.nextLine())return this.finish()}if(this.fragments&&this.reuseFragment(e.basePos))return null;start:for(;;){for(let t of this.parser.blockParsers)if(t){let n=t(this,e);if(n!=0){if(n==1)return null;e.forward();continue start}}break}let t=new d6(this.lineStart+e.pos,e.text.slice(e.pos));for(let e of this.parser.leafBlockParsers)if(e){let n=e(this,t);n&&t.parsers.push(n)}lines:for(;this.nextLine()&&e.pos!=e.text.length;){if(e.indent<e.baseIndent+4){for(let n of this.parser.endLeafBlock)if(n(this,e,t))break lines}for(let n of t.parsers)if(n.nextLine(this,e,t))return null;t.content+=`
|
|
189
|
-
`+e.scrub();for(let n of e.markers)t.marks.push(n)}return this.finishLeaf(t),null}stopAt(e){if(this.stoppedAt!=null&&this.stoppedAt<e)throw RangeError(`Can't move stoppedAt forward`);this.stoppedAt=e}reuseFragment(e){if(!this.fragments.moveTo(this.absoluteLineStart+e,this.absoluteLineStart)||!this.fragments.matches(this.block.hash))return!1;let t=this.fragments.takeNodes(this);return t?(this.absoluteLineStart+=t,this.lineStart=m8(this.absoluteLineStart,this.ranges),this.moveRangeI(),this.absoluteLineStart<this.to?(this.lineStart++,this.absoluteLineStart++,this.readLine()):(this.atEnd=!0,this.readLine()),!0):!1}get depth(){return this.stack.length}parentType(e=this.depth-1){return this.parser.nodeSet.types[this.stack[e].type]}nextLine(){return this.lineStart+=this.line.text.length,this.absoluteLineEnd>=this.to?(this.absoluteLineStart=this.absoluteLineEnd,this.atEnd=!0,this.readLine(),!1):(this.lineStart++,this.absoluteLineStart=this.absoluteLineEnd+1,this.moveRangeI(),this.readLine(),!0)}peekLine(){return this.scanLine(this.absoluteLineEnd+1).text}moveRangeI(){for(;this.rangeI<this.ranges.length-1&&this.absoluteLineStart>=this.ranges[this.rangeI].to;)this.rangeI++,this.absoluteLineStart=Math.max(this.absoluteLineStart,this.ranges[this.rangeI].from)}scanLine(e){let t=z6;if(t.end=e,e>=this.to)t.text=``;else if(t.text=this.lineChunkAt(e),t.end+=t.text.length,this.ranges.length>1){let e=this.absoluteLineStart,n=this.rangeI;for(;this.ranges[n].to<t.end;){n++;let r=this.ranges[n].from,i=this.lineChunkAt(r);t.end=r+i.length,t.text=t.text.slice(0,this.ranges[n-1].to-e)+i,e=t.end-t.text.length}}return t}readLine(){let{line:e}=this,{text:t,end:n}=this.scanLine(this.absoluteLineStart);for(this.absoluteLineEnd=n,e.reset(t);e.depth<this.stack.length;e.depth++){let t=this.stack[e.depth],n=this.parser.skipContextMarkup[t.type];if(!n)throw Error(`Unhandled block context `+$[t.type]);let r=this.line.markers.length;if(!n(t,this,e)){this.line.markers.length>r&&(t.end=this.line.markers[this.line.markers.length-1].to),e.forward();break}e.forward()}}lineChunkAt(e){let t=this.input.chunk(e),n;if(this.input.lineChunks)n=t==`
|
|
190
|
-
`?``:t;else{let e=t.indexOf(`
|
|
191
|
-
`);n=e<0?t:t.slice(0,e)}return e+n.length>this.to?n.slice(0,this.to-e):n}prevLineEnd(){return this.atEnd?this.lineStart:this.lineStart-1}startContext(e,t,n=0){this.block=u6.create(e,n,this.lineStart+t,this.block.hash,this.lineStart+this.line.text.length),this.stack.push(this.block)}startComposite(e,t,n=0){this.startContext(this.parser.getNodeType(e),t,n)}addNode(e,t,n){typeof e==`number`&&(e=new p(this.parser.nodeSet.types[e],q6,q6,(n??this.prevLineEnd())-t)),this.block.addChild(e,t-this.block.from)}addElement(e){this.block.addChild(e.toTree(this.parser.nodeSet),e.from-this.block.from)}addLeafElement(e,t){this.addNode(this.buffer.writeElements(d8(t.children,e.marks),-t.from).finish(t.type,t.to-t.from),t.from)}finishContext(){let e=this.stack.pop(),t=this.stack[this.stack.length-1];t.addChild(e.toTree(this.parser.nodeSet),e.from-t.from),this.block=t}finish(){for(;this.stack.length>1;)this.finishContext();return this.addGaps(this.block.toTree(this.parser.nodeSet,this.lineStart))}addGaps(e){return this.ranges.length>1?V6(this.ranges,0,e.topNode,this.ranges[0].from,this.reusePlaceholders):e}finishLeaf(e){for(let t of e.parsers)if(t.finish(this,e))return;let t=d8(this.parser.parseInline(e.content,e.start),e.marks);this.addNode(this.buffer.writeElements(t,-e.start).finish($.Paragraph,e.content.length),e.start)}elt(e,t,n,r){return typeof e==`string`?Z6(this.parser.getNodeType(e),t,n,r):new X6(e,t)}get buffer(){return new J6(this.parser.nodeSet)}};function V6(e,t,n,r,i){let a=e[t].to,o=[],s=[],c=n.from+r;function l(n,i){for(;i?n>=a:n>a;){let i=e[t+1].from-a;r+=i,n+=i,t++,a=e[t].to}}for(let u=n.firstChild;u;u=u.nextSibling){l(u.from+r,!0);let n=u.from+r,d,f=i.get(u.tree);f?d=f:u.to+r>a?(d=V6(e,t,u,r,i),l(u.to+r,!1)):d=u.toTree(),o.push(d),s.push(n-c)}return l(n.to+r,!1),new p(n.type,o,s,n.to+r-c,n.tree?n.tree.propValues:void 0)}var H6=class e extends oe{constructor(e,t,n,r,i,a,o,s,c){super(),this.nodeSet=e,this.blockParsers=t,this.leafBlockParsers=n,this.blockNames=r,this.endLeafBlock=i,this.skipContextMarkup=a,this.inlineParsers=o,this.inlineNames=s,this.wrappers=c,this.nodeTypes=Object.create(null);for(let t of e.types)this.nodeTypes[t.name]=t.id}createParse(e,t,n){let r=new B6(this,e,t,n);for(let i of this.wrappers)r=i(r,e,t,n);return r}configure(t){let n=W6(t);if(!n)return this;let{nodeSet:i,skipContextMarkup:a}=this,o=this.blockParsers.slice(),s=this.leafBlockParsers.slice(),c=this.blockNames.slice(),l=this.inlineParsers.slice(),u=this.inlineNames.slice(),d=this.endLeafBlock.slice(),f=this.wrappers;if(U6(n.defineNodes)){a=Object.assign({},a);let e=i.types.slice(),t;for(let i of n.defineNodes){let{name:n,block:o,composite:s,style:c}=typeof i==`string`?{name:i}:i;if(e.some(e=>e.name==n))continue;s&&(a[e.length]=(e,t,n)=>s(t,n,e.value));let l=e.length,u=s?[`Block`,`BlockContext`]:o?l>=$.ATXHeading1&&l<=$.SetextHeading2?[`Block`,`LeafBlock`,`Heading`]:[`Block`,`LeafBlock`]:void 0;e.push(m.define({id:l,name:n,props:u&&[[r.group,u]]})),c&&(t||={},Array.isArray(c)||c instanceof h?t[n]=c:Object.assign(t,c))}i=new ie(e),t&&(i=i.extend(y(t)))}if(U6(n.props)&&(i=i.extend(...n.props)),U6(n.remove))for(let e of n.remove){let t=this.blockNames.indexOf(e),n=this.inlineNames.indexOf(e);t>-1&&(o[t]=s[t]=void 0),n>-1&&(l[n]=void 0)}if(U6(n.parseBlock))for(let e of n.parseBlock){let t=c.indexOf(e.name);if(t>-1)o[t]=e.parse,s[t]=e.leaf;else{let t=e.before?G6(c,e.before):e.after?G6(c,e.after)+1:c.length-1;o.splice(t,0,e.parse),s.splice(t,0,e.leaf),c.splice(t,0,e.name)}e.endLeaf&&d.push(e.endLeaf)}if(U6(n.parseInline))for(let e of n.parseInline){let t=u.indexOf(e.name);if(t>-1)l[t]=e.parse;else{let t=e.before?G6(u,e.before):e.after?G6(u,e.after)+1:u.length-1;l.splice(t,0,e.parse),u.splice(t,0,e.name)}}return n.wrap&&(f=f.concat(n.wrap)),new e(i,o,s,c,d,a,l,u,f)}getNodeType(e){let t=this.nodeTypes[e];if(t==null)throw RangeError(`Unknown node type '${e}'`);return t}parseInline(e,t){let n=new u8(this,e,t);outer:for(let e=t;e<n.end;){let t=n.char(e);for(let r of this.inlineParsers)if(r){let i=r(n,t,e);if(i>=0){e=i;continue outer}}e++}return n.resolveMarkers(0)}};function U6(e){return e!=null&&e.length>0}function W6(e){if(!Array.isArray(e))return e;if(e.length==0)return null;let t=W6(e[0]);if(e.length==1)return t;let n=W6(e.slice(1));if(!n||!t)return t||n;let r=(e,t)=>(e||q6).concat(t||q6),i=t.wrap,a=n.wrap;return{props:r(t.props,n.props),defineNodes:r(t.defineNodes,n.defineNodes),parseBlock:r(t.parseBlock,n.parseBlock),parseInline:r(t.parseInline,n.parseInline),remove:r(t.remove,n.remove),wrap:i?a?(e,t,n,r)=>i(a(e,t,n,r),t,n,r):i:a}}function G6(e,t){let n=e.indexOf(t);if(n<0)throw RangeError(`Position specified relative to unknown parser ${t}`);return n}var K6=[m.none];for(let e=1,t;t=$[e];e++)K6[e]=m.define({id:e,name:t,props:e>=$.Escape?[]:[[r.group,e in m6?[`Block`,`BlockContext`]:[`Block`,`LeafBlock`]]],top:t==`Document`});var q6=[],J6=class{constructor(e){this.nodeSet=e,this.content=[],this.nodes=[]}write(e,t,n,r=0){return this.content.push(e,t,n,4+r*4),this}writeElements(e,t=0){for(let n of e)n.writeTo(this,t);return this}finish(e,t){return p.build({buffer:this.content,nodeSet:this.nodeSet,reused:this.nodes,topID:e,length:t})}},Y6=class{constructor(e,t,n,r=q6){this.type=e,this.from=t,this.to=n,this.children=r}writeTo(e,t){let n=e.content.length;e.writeElements(this.children,t),e.content.push(this.type,this.from+t,this.to+t,e.content.length+4-n)}toTree(e){return new J6(e).writeElements(this.children,-this.from).finish(this.type,this.to-this.from)}},X6=class{constructor(e,t){this.tree=e,this.from=t}get to(){return this.from+this.tree.length}get type(){return this.tree.type.id}get children(){return q6}writeTo(e,t){e.nodes.push(this.tree),e.content.push(e.nodes.length-1,this.from+t,this.to+t,-1)}toTree(){return this.tree}};function Z6(e,t,n,r){return new Y6(e,t,n,r)}var Q6={resolve:`Emphasis`,mark:`EmphasisMark`},$6={resolve:`Emphasis`,mark:`EmphasisMark`},e8={},t8={},n8=class{constructor(e,t,n,r){this.type=e,this.from=t,this.to=n,this.side=r}},r8=`!"#$%&'()*+,-./:;<=>?@[\\]^_\`{|}~`,i8=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\u2010-\u2027]/;try{i8=RegExp(`[\\p{S}|\\p{P}]`,`u`)}catch{}var a8={Escape(e,t,n){if(t!=92||n==e.end-1)return-1;let r=e.char(n+1);for(let t=0;t<32;t++)if(r8.charCodeAt(t)==r)return e.append(Z6($.Escape,n,n+2));return-1},Entity(e,t,n){if(t!=38)return-1;let r=/^(?:#\d+|#x[a-f\d]+|\w+);/i.exec(e.slice(n+1,n+31));return r?e.append(Z6($.Entity,n,n+1+r[0].length)):-1},InlineCode(e,t,n){if(t!=96||n&&e.char(n-1)==96)return-1;let r=n+1;for(;r<e.end&&e.char(r)==96;)r++;let i=r-n,a=0;for(;r<e.end;r++)if(e.char(r)==96){if(a++,a==i&&e.char(r+1)!=96)return e.append(Z6($.InlineCode,n,r+1,[Z6($.CodeMark,n,n+i),Z6($.CodeMark,r+1-i,r+1)]))}else a=0;return-1},HTMLTag(e,t,n){if(t!=60||n==e.end-1)return-1;let r=e.slice(n+1,e.end),i=/^(?:[a-z][-\w+.]+:[^\s>]+|[a-z\d.!#$%&'*+/=?^_`{|}~-]+@[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?(?:\.[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?)*)>/i.exec(r);if(i)return e.append(Z6($.Autolink,n,n+1+i[0].length,[Z6($.LinkMark,n,n+1),Z6($.URL,n+1,n+i[0].length),Z6($.LinkMark,n+i[0].length,n+1+i[0].length)]));let a=/^!--[^>](?:-[^-]|[^-])*?-->/i.exec(r);if(a)return e.append(Z6($.Comment,n,n+1+a[0].length));let o=/^\?[^]*?\?>/.exec(r);if(o)return e.append(Z6($.ProcessingInstruction,n,n+1+o[0].length));let s=/^(?:![A-Z][^]*?>|!\[CDATA\[[^]*?\]\]>|\/\s*[a-zA-Z][\w-]*\s*>|\s*[a-zA-Z][\w-]*(\s+[a-zA-Z:_][\w-.:]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*(\/\s*)?>)/.exec(r);return s?e.append(Z6($.HTMLTag,n,n+1+s[0].length)):-1},Emphasis(e,t,n){if(t!=95&&t!=42)return-1;let r=n+1;for(;e.char(r)==t;)r++;let i=e.slice(n-1,n),a=e.slice(r,r+1),o=i8.test(i),s=i8.test(a),c=/\s|^$/.test(i),l=/\s|^$/.test(a),u=!l&&(!s||c||o),d=!c&&(!o||l||s),f=u&&(t==42||!d||o),p=d&&(t==42||!u||s);return e.append(new n8(t==95?Q6:$6,n,r,!!f|(p?2:0)))},HardBreak(e,t,n){if(t==92&&e.char(n+1)==10)return e.append(Z6($.HardBreak,n,n+2));if(t==32){let t=n+1;for(;e.char(t)==32;)t++;if(e.char(t)==10&&t>=n+2)return e.append(Z6($.HardBreak,n,t+1))}return-1},Link(e,t,n){return t==91?e.append(new n8(e8,n,n+1,1)):-1},Image(e,t,n){return t==33&&e.char(n+1)==91?e.append(new n8(t8,n,n+2,1)):-1},LinkEnd(e,t,n){if(t!=93)return-1;for(let t=e.parts.length-1;t>=0;t--){let r=e.parts[t];if(r instanceof n8&&(r.type==e8||r.type==t8)){if(!r.side||e.skipSpace(r.to)==n&&!/[(\[]/.test(e.slice(n+1,n+2)))return e.parts[t]=null,-1;let i=e.takeContent(t),a=e.parts[t]=o8(e,i,r.type==e8?$.Link:$.Image,r.from,n+1);if(r.type==e8)for(let n=0;n<t;n++){let t=e.parts[n];t instanceof n8&&t.type==e8&&(t.side=0)}return a.to}}return-1}};function o8(e,t,n,r,i){let{text:a}=e,o=e.char(i),s=i;if(t.unshift(Z6($.LinkMark,r,r+(n==$.Image?2:1))),t.push(Z6($.LinkMark,i-1,i)),o==40){let n=e.skipSpace(i+1),r=s8(a,n-e.offset,e.offset),o;r&&(n=e.skipSpace(r.to),n!=r.to&&(o=c8(a,n-e.offset,e.offset),o&&(n=e.skipSpace(o.to)))),e.char(n)==41&&(t.push(Z6($.LinkMark,i,i+1)),s=n+1,r&&t.push(r),o&&t.push(o),t.push(Z6($.LinkMark,n,s)))}else if(o==91){let n=l8(a,i-e.offset,e.offset,!1);n&&(t.push(n),s=n.to)}return Z6(n,r,s,t)}function s8(e,t,n){if(e.charCodeAt(t)==60){for(let r=t+1;r<e.length;r++){let i=e.charCodeAt(r);if(i==62)return Z6($.URL,t+n,r+1+n);if(i==60||i==10)return!1}return null}else{let r=0,i=t;for(let t=!1;i<e.length;i++){let n=e.charCodeAt(i);if(h6(n))break;if(t)t=!1;else if(n==40)r++;else if(n==41){if(!r)break;r--}else n==92&&(t=!0)}return i>t?Z6($.URL,t+n,i+n):i==e.length?null:!1}}function c8(e,t,n){let r=e.charCodeAt(t);if(r!=39&&r!=34&&r!=40)return!1;let i=r==40?41:r;for(let r=t+1,a=!1;r<e.length;r++){let o=e.charCodeAt(r);if(a)a=!1;else if(o==i)return Z6($.LinkTitle,t+n,r+1+n);else o==92&&(a=!0)}return null}function l8(e,t,n,r){for(let i=!1,a=t+1,o=Math.min(e.length,a+999);a<o;a++){let o=e.charCodeAt(a);if(i)i=!1;else if(o==93)return r?!1:Z6($.LinkLabel,t+n,a+1+n);else{if(r&&!h6(o)&&(r=!1),o==91)return!1;o==92&&(i=!0)}}return null}var u8=class{constructor(e,t,n){this.parser=e,this.text=t,this.offset=n,this.parts=[]}char(e){return e>=this.end?-1:this.text.charCodeAt(e-this.offset)}get end(){return this.offset+this.text.length}slice(e,t){return this.text.slice(e-this.offset,t-this.offset)}append(e){return this.parts.push(e),e.to}addDelimiter(e,t,n,r,i){return this.append(new n8(e,t,n,!!r|(i?2:0)))}get hasOpenLink(){for(let e=this.parts.length-1;e>=0;e--){let t=this.parts[e];if(t instanceof n8&&(t.type==e8||t.type==t8))return!0}return!1}addElement(e){return this.append(e)}resolveMarkers(e){for(let t=e;t<this.parts.length;t++){let n=this.parts[t];if(!(n instanceof n8&&n.type.resolve&&n.side&2))continue;let r=n.type==Q6||n.type==$6,i=n.to-n.from,a,o=t-1;for(;o>=e;o--){let e=this.parts[o];if(e instanceof n8&&e.side&1&&e.type==n.type&&!(r&&(n.side&1||e.side&2)&&(e.to-e.from+i)%3==0&&((e.to-e.from)%3||i%3))){a=e;break}}if(!a)continue;let s=n.type.resolve,c=[],l=a.from,u=n.to;if(r){let e=Math.min(2,a.to-a.from,i);l=a.to-e,u=n.from+e,s=e==1?`Emphasis`:`StrongEmphasis`}a.type.mark&&c.push(this.elt(a.type.mark,l,a.to));for(let e=o+1;e<t;e++)this.parts[e]instanceof Y6&&c.push(this.parts[e]),this.parts[e]=null;n.type.mark&&c.push(this.elt(n.type.mark,n.from,u));let d=this.elt(s,l,u,c);this.parts[o]=r&&a.from!=l?new n8(a.type,a.from,l,a.side):null,(this.parts[t]=r&&n.to!=u?new n8(n.type,u,n.to,n.side):null)?this.parts.splice(t,0,d):this.parts[t]=d}let t=[];for(let n=e;n<this.parts.length;n++){let e=this.parts[n];e instanceof Y6&&t.push(e)}return t}findOpeningDelimiter(e){for(let t=this.parts.length-1;t>=0;t--){let n=this.parts[t];if(n instanceof n8&&n.type==e&&n.side&1)return t}return null}takeContent(e){let t=this.resolveMarkers(e);return this.parts.length=e,t}getDelimiterAt(e){let t=this.parts[e];return t instanceof n8?t:null}skipSpace(e){return g6(this.text,e-this.offset)+this.offset}elt(e,t,n,r){return typeof e==`string`?Z6(this.parser.getNodeType(e),t,n,r):new X6(e,t)}};u8.linkStart=e8,u8.imageStart=t8;function d8(e,t){if(!t.length)return e;if(!e.length)return t;let n=e.slice(),r=0;for(let e of t){for(;r<n.length&&n[r].to<e.to;)r++;if(r<n.length&&n[r].from<e.from){let t=n[r];t instanceof Y6&&(n[r]=new Y6(t.type,t.from,t.to,d8(t.children,[e])))}else n.splice(r++,0,e)}return n}var f8=[$.CodeBlock,$.ListItem,$.OrderedList,$.BulletList],p8=class{constructor(e,t){this.fragments=e,this.input=t,this.i=0,this.fragment=null,this.fragmentEnd=-1,this.cursor=null,e.length&&(this.fragment=e[this.i++])}nextFragment(){this.fragment=this.i<this.fragments.length?this.fragments[this.i++]:null,this.cursor=null,this.fragmentEnd=-1}moveTo(e,t){for(;this.fragment&&this.fragment.to<=e;)this.nextFragment();if(!this.fragment||this.fragment.from>(e?e-1:0))return!1;if(this.fragmentEnd<0){let e=this.fragment.to;for(;e>0&&this.input.read(e-1,e)!=`
|
|
192
|
-
`;)e--;this.fragmentEnd=e?e-1:0}let n=this.cursor;n||(n=this.cursor=this.fragment.tree.cursor(),n.firstChild());let r=e+this.fragment.offset;for(;n.to<=r;)if(!n.parent())return!1;for(;;){if(n.from>=r)return this.fragment.from<=t;if(!n.childAfter(r))return!1}}matches(e){let t=this.cursor.tree;return t&&t.prop(r.contextHash)==e}takeNodes(e){let t=this.cursor,n=this.fragment.offset,r=this.fragmentEnd-+!!this.fragment.openEnd,i=e.absoluteLineStart,a=i,o=e.block.children.length,s=a,c=o;for(;;){if(t.to-n>r){if(t.type.isAnonymous&&t.firstChild())continue;break}let i=m8(t.from-n,e.ranges);if(t.to-n<=e.ranges[e.rangeI].to)e.addNode(t.tree,i);else{let n=new p(e.parser.nodeSet.types[$.Paragraph],[],[],0,e.block.hashProp);e.reusePlaceholders.set(n,t.tree),e.addNode(n,i)}if(t.type.is(`Block`)&&(f8.indexOf(t.type.id)<0?(a=t.to-n,o=e.block.children.length):(a=s,o=c),s=t.to-n,c=e.block.children.length),!t.nextSibling())break}for(;e.block.children.length>o;)e.block.children.pop(),e.block.positions.pop();return a-i}};function m8(e,t){let n=e;for(let r=1;r<t.length;r++){let i=t[r-1].to,a=t[r].from;i<e&&(n-=a-i)}return n}var h8=y({"Blockquote/...":k.quote,HorizontalRule:k.contentSeparator,"ATXHeading1/... SetextHeading1/...":k.heading1,"ATXHeading2/... SetextHeading2/...":k.heading2,"ATXHeading3/...":k.heading3,"ATXHeading4/...":k.heading4,"ATXHeading5/...":k.heading5,"ATXHeading6/...":k.heading6,"Comment CommentBlock":k.comment,Escape:k.escape,Entity:k.character,"Emphasis/...":k.emphasis,"StrongEmphasis/...":k.strong,"Link/... Image/...":k.link,"OrderedList/... BulletList/...":k.list,"BlockQuote/...":k.quote,"InlineCode CodeText":k.monospace,"URL Autolink":k.url,"HeaderMark HardBreak QuoteMark ListMark LinkMark EmphasisMark CodeMark":k.processingInstruction,"CodeInfo LinkLabel":k.labelName,LinkTitle:k.string,Paragraph:k.content}),g8=new H6(new ie(K6).extend(h8),Object.keys(N6).map(e=>N6[e]),Object.keys(N6).map(e=>L6[e]),Object.keys(N6),R6,m6,Object.keys(a8).map(e=>a8[e]),Object.keys(a8),[]);function _8(e,t,n){let r=[];for(let i=e.firstChild,a=t;;i=i.nextSibling){let e=i?i.from:n;if(e>a&&r.push({from:a,to:e}),!i)break;a=i.to}return r}function v8(e){let{codeParser:t,htmlParser:n}=e;return{wrap:v((e,r)=>{let i=e.type.id;if(t&&(i==$.CodeBlock||i==$.FencedCode)){let n=``;if(i==$.FencedCode){let t=e.node.getChild($.CodeInfo);t&&(n=r.read(t.from,t.to))}let a=t(n);if(a)return{parser:a,overlay:e=>e.type.id==$.CodeText,bracketed:i==$.FencedCode}}else if(n&&(i==$.HTMLBlock||i==$.HTMLTag||i==$.CommentBlock))return{parser:n,overlay:_8(e.node,e.from,e.to)};return null})}}var y8={resolve:`Strikethrough`,mark:`StrikethroughMark`},b8={defineNodes:[{name:`Strikethrough`,style:{"Strikethrough/...":k.strikethrough}},{name:`StrikethroughMark`,style:k.processingInstruction}],parseInline:[{name:`Strikethrough`,parse(e,t,n){if(t!=126||e.char(n+1)!=126||e.char(n+2)==126)return-1;let r=e.slice(n-1,n),i=e.slice(n+2,n+3),a=/\s|^$/.test(r),o=/\s|^$/.test(i),s=i8.test(r),c=i8.test(i);return e.addDelimiter(y8,n,n+2,!o&&(!c||a||s),!a&&(!s||o||c))},after:`Emphasis`}]};function x8(e,t,n=0,r,i=0){let a=0,o=!0,s=-1,c=-1,l=!1,u=()=>{r.push(e.elt(`TableCell`,i+s,i+c,e.parser.parseInline(t.slice(s,c),i+s)))};for(let d=n;d<t.length;d++){let n=t.charCodeAt(d);n==124&&!l?((!o||s>-1)&&a++,o=!1,r&&(s>-1&&u(),r.push(e.elt(`TableDelimiter`,d+i,d+i+1))),s=c=-1):(l||n!=32&&n!=9)&&(s<0&&(s=d),c=d+1),l=!l&&n==92}return s>-1&&(a++,r&&u()),a}function S8(e,t){for(let n=t;n<e.length;n++){let t=e.charCodeAt(n);if(t==124)return!0;t==92&&n++}return!1}var C8=/^\|?(\s*:?-+:?\s*\|)+(\s*:?-+:?\s*)?$/,w8=class{constructor(){this.rows=null}nextLine(e,t,n){if(this.rows==null){this.rows=!1;let r;if((t.next==45||t.next==58||t.next==124)&&C8.test(r=t.text.slice(t.pos))){let i=[];x8(e,n.content,0,i,n.start)==x8(e,r,t.pos)&&(this.rows=[e.elt(`TableHeader`,n.start,n.start+n.content.length,i),e.elt(`TableDelimiter`,e.lineStart+t.pos,e.lineStart+t.text.length)])}}else if(this.rows){let n=[];x8(e,t.text,t.pos,n,e.lineStart),this.rows.push(e.elt(`TableRow`,e.lineStart+t.pos,e.lineStart+t.text.length,n))}return!1}finish(e,t){return this.rows?(e.addLeafElement(t,e.elt(`Table`,t.start,t.start+t.content.length,this.rows)),!0):!1}},T8={defineNodes:[{name:`Table`,block:!0},{name:`TableHeader`,style:{"TableHeader/...":k.heading}},`TableRow`,{name:`TableCell`,style:k.content},{name:`TableDelimiter`,style:k.processingInstruction}],parseBlock:[{name:`Table`,leaf(e,t){return S8(t.content,0)?new w8:null},endLeaf(e,t,n){if(n.parsers.some(e=>e instanceof w8)||!S8(t.text,t.basePos))return!1;let r=e.peekLine();return C8.test(r)&&x8(e,t.text,t.basePos)==x8(e,r,t.basePos)},before:`SetextHeading`}]},E8=class{nextLine(){return!1}finish(e,t){return e.addLeafElement(t,e.elt(`Task`,t.start,t.start+t.content.length,[e.elt(`TaskMarker`,t.start,t.start+3),...e.parser.parseInline(t.content.slice(3),t.start+3)])),!0}},D8={defineNodes:[{name:`Task`,block:!0,style:k.list},{name:`TaskMarker`,style:k.atom}],parseBlock:[{name:`TaskList`,leaf(e,t){return/^\[[ xX]\][ \t]/.test(t.content)&&e.parentType().name==`ListItem`?new E8:null},after:`SetextHeading`}]},O8=/(www\.)|(https?:\/\/)|([\w.+-]{1,100}@)|(mailto:|xmpp:)/gy,k8=/[\w-]+(\.[\w-]+)+(\/[^\s<]*)?/gy,A8=/[\w-]+\.[\w-]+($|\/)/,j8=/[\w.+-]+@[\w-]+(\.[\w.-]+)+/gy,M8=/\/[a-zA-Z\d@.]+/gy;function N8(e,t,n,r){let i=0;for(let a=t;a<n;a++)e[a]==r&&i++;return i}function P8(e,t){k8.lastIndex=t;let n=k8.exec(e);if(!n||A8.exec(n[0])[0].indexOf(`_`)>-1)return-1;let r=t+n[0].length;for(;;){let n=e[r-1],i;if(/[?!.,:*_~]/.test(n)||n==`)`&&N8(e,t,r,`)`)>N8(e,t,r,`(`))r--;else if(n==`;`&&(i=/&(?:#\d+|#x[a-f\d]+|\w+);$/.exec(e.slice(t,r))))r=t+i.index;else break}return r}function F8(e,t){j8.lastIndex=t;let n=j8.exec(e);if(!n)return-1;let r=n[0][n[0].length-1];return r==`_`||r==`-`?-1:t+n[0].length-+(r==`.`)}var I8=[T8,D8,b8,{parseInline:[{name:`Autolink`,parse(e,t,n){let r=n-e.offset;if(r&&/\w/.test(e.text[r-1]))return-1;O8.lastIndex=r;let i=O8.exec(e.text),a=-1;return!i||(i[1]||i[2]?(a=P8(e.text,r+i[0].length),a>-1&&e.hasOpenLink&&(a=r+/([^\[\]]|\[[^\]]*\])*/.exec(e.text.slice(r,a))[0].length)):i[3]?a=F8(e.text,r):(a=F8(e.text,r+i[0].length),a>-1&&i[0]==`xmpp:`&&(M8.lastIndex=a,i=M8.exec(e.text),i&&(a=i.index+i[0].length))),a<0)?-1:(e.addElement(e.elt(`URL`,n,a+e.offset)),a+e.offset)}}]}];function L8(e,t,n){return(r,i,a)=>{if(i!=e||r.char(a+1)==e)return-1;let o=[r.elt(n,a,a+1)];for(let i=a+1;i<r.end;i++){let s=r.char(i);if(s==e)return r.addElement(r.elt(t,a,i+1,o.concat(r.elt(n,i,i+1))));if(s==92&&o.push(r.elt(`Escape`,i,i+++2)),h6(s))break}return-1}}var R8={defineNodes:[{name:`Superscript`,style:k.special(k.content)},{name:`SuperscriptMark`,style:k.processingInstruction}],parseInline:[{name:`Superscript`,parse:L8(94,`Superscript`,`SuperscriptMark`)}]},z8={defineNodes:[{name:`Subscript`,style:k.special(k.content)},{name:`SubscriptMark`,style:k.processingInstruction}],parseInline:[{name:`Subscript`,parse:L8(126,`Subscript`,`SubscriptMark`)}]},B8={defineNodes:[{name:`Emoji`,style:k.character}],parseInline:[{name:`Emoji`,parse(e,t,n){let r;return t!=58||!(r=/^[a-zA-Z_0-9]+:/.exec(e.slice(n+1,e.end)))?-1:e.addElement(e.elt(`Emoji`,n,n+1+r[0].length))}}]},V8=ft({commonmarkLanguage:()=>X8,deleteMarkupBackward:()=>u5,insertNewlineContinueMarkup:()=>a5,insertNewlineContinueMarkupCommand:()=>i5,markdown:()=>p5,markdownKeymap:()=>d5,markdownLanguage:()=>Z8,pasteURLAsLink:()=>v5}),H8=le({commentTokens:{block:{open:`<!--`,close:`-->`}}}),U8=new r,W8=g8.configure({props:[a.add(e=>!e.is(`Block`)||e.is(`Document`)||G8(e)!=null||K8(e)?void 0:(e,t)=>({from:t.doc.lineAt(e.from).to,to:e.to})),U8.add(G8),s.add({Document:()=>null}),Oe.add({Document:H8})]});function G8(e){let t=/^(?:ATX|Setext)Heading(\d)$/.exec(e.name);return t?+t[1]:void 0}function K8(e){return e.name==`OrderedList`||e.name==`BulletList`}function q8(e,t){let n=e;for(;;){let e=n.nextSibling,r;if(!e||(r=G8(e.type))!=null&&r<=t)break;n=e}return n.to}var J8=Qe.of((e,t,n)=>{for(let r=d(e).resolveInner(n,-1);r&&!(r.from<t);r=r.parent){let e=r.type.prop(U8);if(e==null)continue;let t=q8(r,e);if(t>n)return{from:n,to:t}}return null});function Y8(e){return new he(H8,e,[],`markdown`)}var X8=Y8(W8),Z8=Y8(W8.configure([I8,z8,R8,B8,{props:[a.add({Table:(e,t)=>({from:t.doc.lineAt(e.from).to,to:e.to})})]}]));function Q8(e,t){return n=>{if(n&&e){let t=null;if(n=/\S*/.exec(n)[0],t=typeof e==`function`?e(n):P.matchLanguageName(e,n,!0),t instanceof P)return t.support?t.support.language.parser:_e.getSkippingParser(t.load());if(t)return t.parser}return t?t.parser:null}}var $8=class{constructor(e,t,n,r,i,a,o){this.node=e,this.from=t,this.to=n,this.spaceBefore=r,this.spaceAfter=i,this.type=a,this.item=o}blank(e,t=!0){let n=this.spaceBefore+(this.node.name==`Blockquote`?`>`:``);if(e!=null){for(;n.length<e;)n+=` `;return n}else{for(let e=this.to-this.from-n.length-this.spaceAfter.length;e>0;e--)n+=` `;return n+(t?this.spaceAfter:``)}}marker(e,t){let n=this.node.name==`OrderedList`?String(+t5(this.item,e)[2]+t):``;return this.spaceBefore+n+this.type+this.spaceAfter}};function e5(e,t){let n=[],r=[];for(let t=e;t;t=t.parent){if(t.name==`FencedCode`)return r;(t.name==`ListItem`||t.name==`Blockquote`)&&n.push(t)}for(let e=n.length-1;e>=0;e--){let i=n[e],a,o=t.lineAt(i.from),s=i.from-o.from;if(i.name==`Blockquote`&&(a=/^ *>( ?)/.exec(o.text.slice(s))))r.push(new $8(i,s,s+a[0].length,``,a[1],`>`,null));else if(i.name==`ListItem`&&i.parent.name==`OrderedList`&&(a=/^( *)\d+([.)])( *)/.exec(o.text.slice(s)))){let e=a[3],t=a[0].length;e.length>=4&&(e=e.slice(0,e.length-4),t-=4),r.push(new $8(i.parent,s,s+t,a[1],e,a[2],i))}else if(i.name==`ListItem`&&i.parent.name==`BulletList`&&(a=/^( *)([-+*])( {1,4}\[[ xX]\])?( +)/.exec(o.text.slice(s)))){let e=a[4],t=a[0].length;e.length>4&&(e=e.slice(0,e.length-4),t-=4);let n=a[2];a[3]&&(n+=a[3].replace(/[xX]/,` `)),r.push(new $8(i.parent,s,s+t,a[1],e,n,i))}}return r}function t5(e,t){return/^(\s*)(\d+)(?=[.)])/.exec(t.sliceString(e.from,e.from+10))}function n5(e,t,n,r=0){for(let i=-1,a=e;;){if(a.name==`ListItem`){let e=t5(a,t),o=+e[2];if(i>=0){if(o!=i+1)return;n.push({from:a.from+e[1].length,to:a.from+e[0].length,insert:String(i+2+r)})}i=o}let e=a.nextSibling;if(!e)break;a=e}}function r5(e,n){let r=/^[ \t]*/.exec(e)[0].length;if(!r||n.facet(t)!=` `)return e;let i=it(e,4,r),a=``;for(let e=i;e>0;)e>=4?(a+=` `,e-=4):(a+=` `,e--);return a+e.slice(r)}var i5=(e={})=>({state:t,dispatch:n})=>{let r=d(t),{doc:i}=t,a=null,o=t.changeByRange(n=>{if(!n.empty||!Z8.isActiveAt(t,n.from,-1)&&!Z8.isActiveAt(t,n.from,1))return a={range:n};let o=n.from,s=i.lineAt(o),c=e5(r.resolveInner(o,-1),i);for(;c.length&&c[c.length-1].from>o-s.from;)c.pop();if(!c.length)return a={range:n};let l=c[c.length-1];if(l.to-l.spaceAfter.length>o-s.from)return a={range:n};let u=o>=l.to-l.spaceAfter.length&&!/\S/.test(s.text.slice(l.to));if(l.item&&u){let n=l.node.firstChild,r=l.node.getChild(`ListItem`,`ListItem`);if(n.to>=o||r&&r.to<o||s.from>0&&!/[^\s>]/.test(i.lineAt(s.from-1).text)||e.nonTightLists===!1){let e=c.length>1?c[c.length-2]:null,t,n=``;e&&e.item?(t=s.from+e.from,n=e.marker(i,1)):t=s.from+(e?e.to:0);let r=[{from:t,to:o,insert:n}];return l.node.name==`OrderedList`&&n5(l.item,i,r,-2),e&&e.node.name==`OrderedList`&&n5(e.item,i,r),{range:F.cursor(t+n.length),changes:r}}else{let e=c5(c,t,s);return{range:F.cursor(o+e.length+1),changes:{from:s.from,insert:e+t.lineBreak}}}}if(l.node.name==`Blockquote`&&u&&s.from){let e=i.lineAt(s.from-1),r=/>\s*$/.exec(e.text);if(r&&r.index==l.from){let i=t.changes([{from:e.from+r.index,to:e.to},{from:s.from+l.from,to:s.to}]);return{range:n.map(i),changes:i}}}let d=[];l.node.name==`OrderedList`&&n5(l.item,i,d);let f=l.item&&l.item.from<s.from,p=``;if(!f||/^[\s\d.)\-+*>]*/.exec(s.text)[0].length>=l.to)for(let e=0,t=c.length-1;e<=t;e++)p+=e==t&&!f?c[e].marker(i,1):c[e].blank(e<t?it(s.text,4,c[e+1].from)-p.length:null);let m=o;for(;m>s.from&&/\s/.test(s.text.charAt(m-s.from-1));)m--;return p=r5(p,t),s5(l.node,t.doc)&&(p=c5(c,t,s)+t.lineBreak+p),d.push({from:m,to:o,insert:t.lineBreak+p}),{range:F.cursor(m+p.length+1),changes:d}});return a?!1:(n(t.update(o,{scrollIntoView:!0,userEvent:`input`})),!0)},a5=i5();function o5(e){return e.name==`QuoteMark`||e.name==`ListMark`}function s5(e,t){if(e.name!=`OrderedList`&&e.name!=`BulletList`)return!1;let n=e.firstChild,r=e.getChild(`ListItem`,`ListItem`);if(!r)return!1;let i=t.lineAt(n.to),a=t.lineAt(r.from),o=/^[\s>]*$/.test(i.text);return i.number+ +!o<a.number}function c5(e,t,n){let r=``;for(let t=0,i=e.length-2;t<=i;t++)r+=e[t].blank(t<i?it(n.text,4,e[t+1].from)-r.length:null,t<i);return r5(r,t)}function l5(e,t){let n=e.resolveInner(t,-1),r=t;o5(n)&&(r=n.from,n=n.parent);for(let e;e=n.childBefore(r);)if(o5(e))r=e.from;else if(e.name==`OrderedList`||e.name==`BulletList`)n=e.lastChild,r=n.to;else break;return n}var u5=({state:e,dispatch:t})=>{let n=d(e),r=null,i=e.changeByRange(t=>{let i=t.from,{doc:a}=e;if(t.empty&&Z8.isActiveAt(e,t.from)){let t=a.lineAt(i),r=e5(l5(n,i),a);if(r.length){let n=r[r.length-1],a=n.to-n.spaceAfter.length+ +!!n.spaceAfter;if(i-t.from>a&&!/\S/.test(t.text.slice(a,i-t.from)))return{range:F.cursor(t.from+a),changes:{from:t.from+a,to:i}};if(i-t.from==a&&(!n.item||t.from<=n.item.from||!/\S/.test(t.text.slice(0,n.to)))){let r=t.from+n.from;if(n.item&&n.node.from<n.item.from&&/\S/.test(t.text.slice(n.from,n.to))){let i=n.blank(it(t.text,4,n.to)-it(t.text,4,n.from));return r==t.from&&(i=r5(i,e)),{range:F.cursor(r+i.length),changes:{from:r,to:t.from+n.to,insert:i}}}if(r<i)return{range:F.cursor(r),changes:{from:r,to:i}}}}}return r={range:t}});return r?!1:(t(e.update(i,{scrollIntoView:!0,userEvent:`delete`})),!0)},d5=[{key:`Enter`,run:a5},{key:`Backspace`,run:u5}],f5=bQ({matchClosingTags:!1});function p5(e={}){let{codeLanguages:t,defaultCodeLanguage:n,addKeymap:r=!0,base:{parser:i}=X8,completeHTMLTags:a=!0,pasteURLAsLink:o=!0,htmlTagLanguage:s=f5}=e;if(!(i instanceof H6))throw RangeError("Base parser provided to `markdown` should be a Markdown parser");let c=e.extensions?[e.extensions]:[],l=[s.support,J8],u;o&&l.push(v5),n instanceof Je?(l.push(n.support),u=n.language):n&&(u=n);let d=t||u?Q8(t,u):void 0;c.push(v8({codeParser:d,htmlParser:s.language.parser})),r&&l.push(E.high(Me.of(d5)));let f=Y8(i.configure(c));return a&&l.push(f.data.of({autocomplete:m5})),new Je(f,l)}function m5(e){let{state:t,pos:n}=e,r=/<[:\-\.\w\u00b7-\uffff]*$/.exec(t.sliceDoc(n-25,n));if(!r)return null;let i=d(t).resolveInner(n,-1);for(;i&&!i.type.isTop;){if(i.name==`CodeBlock`||i.name==`FencedCode`||i.name==`ProcessingInstructionBlock`||i.name==`CommentBlock`||i.name==`Link`||i.name==`Image`)return null;i=i.parent}return{from:n-r[0].length,to:n,options:g5(),validFor:/^<[:\-\.\w\u00b7-\uffff]*$/}}var h5=null;function g5(){if(h5)return h5;let e=pQ(new vW(ne.create({extensions:f5}),0,!0));return h5=e?e.options:[]}var _5=/code|horizontalrule|html|link|comment|processing|escape|entity|image|mark|url/i,v5=N.domEventHandlers({paste:(e,t)=>{let{main:n}=t.state.selection;if(n.empty)return!1;let r=e.clipboardData?.getData(`text/plain`);if(!r||!/^(https?:\/\/|mailto:|xmpp:|www\.)/.test(r)||(/^www\./.test(r)&&(r=`https://`+r),!Z8.isActiveAt(t.state,n.from,1)))return!1;let i=d(t.state),a=!1;return i.iterate({from:n.from,to:n.to,enter:e=>{(e.from>n.from||_5.test(e.name))&&(a=!0)},leave:e=>{e.to<n.to&&(a=!0)}}),a?!1:(t.dispatch({changes:[{from:n.from,insert:`[`},{from:n.to,insert:`](${r})`}],userEvent:`input.paste`,scrollIntoView:!0}),!0)}}),y5=[N1,JQ,p5(),Ye(),N.lineWrapping],b5=()=>{let[e,t,n]=wn(Wb,Pb,T5),r=Tn(Kx),i=Tn(Sx),a=I.useRef(null),o=I.useCallback(o=>{var s;if(o!==null){let s=[...n,...y5,N.updateListener.of(({state:e})=>{r(e.doc.toString())}),N.focusChangeEffect.of((e,t)=>(t||i(new FocusEvent(`blur`)),null))];t&&s.push(ne.readOnly.of(!0)),o.innerHTML=``,a.current=new N({parent:o,state:ne.create({doc:e,extensions:s})})}else (s=a.current)==null||s.destroy(),a.current=null},[e,t,r,n,i]);return I.createElement(`div`,{ref:o,className:`cm-sourceView mdxeditor-source-editor`})};function x5(e,t){e!==void 0&&e.dispatch({changes:{from:0,to:e.state.doc.length,insert:t}})}var S5=()=>{let e=Sn(),[t,n,r,i]=wn(Wb,w5,Pb,E5),a=Tn(Kx),o=I.useRef(null),s=I.useRef(null),c=Cn(T5),l=Tn(Sx);return I.useEffect(()=>e.sub(w5,e=>{x5(s.current?.a,e)}),[e]),I.useEffect(()=>e.sub(Wb,e=>{x5(s.current?.b,e)}),[e]),I.useEffect(()=>{let e=r||i;return s.current=new c6({...e?{renderRevertControl:void 0,revertControls:void 0}:{renderRevertControl:()=>{let e=document.createElement(`button`);return e.classList.add(`cm-merge-revert`),e.appendChild(document.createTextNode(`⮕`)),e},revertControls:`a-to-b`},parent:o.current,orientation:`a-b`,gutter:!0,a:{doc:n,extensions:[...c,...y5,ne.readOnly.of(!0)]},b:{doc:t,extensions:[...c,...y5,ne.readOnly.of(e),N.updateListener.of(({state:e})=>{a(e.doc.toString())}),N.focusChangeEffect.of((e,t)=>(t||l(new FocusEvent(`blur`)),null))]}}),()=>{var e;(e=s.current)==null||e.destroy(),s.current=null}},[a,c]),I.createElement(`div`,{ref:o,className:`mdxeditor-diff-editor`})},C5=({children:e})=>{let[t,n]=wn(zb,Gx);return I.createElement(`div`,{className:`mdxeditor-diff-source-wrapper`},t?I.createElement(`div`,{className:q.markdownParseError},I.createElement(`p`,null,t.error,`.`),I.createElement(`p`,null,`You can fix the errors in source mode and switch to rich text mode when you are ready.`)):null,I.createElement(`div`,{className:`mdxeditor-rich-text-editor`,style:{display:n===`rich-text`&&t==null?`block`:`none`}},e),n===`diff`?I.createElement(S5,null):null,n===`source`?I.createElement(b5,null):null)},w5=R(``),T5=R([]),E5=R(!1),D5=Nn({update:(e,t)=>{e.pub(w5,t?.diffMarkdown??``)},init(e,t){e.pubIn({[w5]:t?.diffMarkdown??``,[T5]:t?.codeMirrorExtensions??[],[Ix]:C5,[E5]:t?.readOnlyDiff??!1,[Gx]:t?.viewMode??`rich-text`})}});Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},Prism.languages.javascript=Prism.languages.extend(`clike`,{"class-name":[Prism.languages.clike[`class-name`],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(`(^|[^\\w$])(?:NaN|Infinity|0[bB][01]+(?:_[01]+)*n?|0[oO][0-7]+(?:_[0-7]+)*n?|0[xX][\\dA-Fa-f]+(?:_[\\dA-Fa-f]+)*n?|\\d+(?:_\\d+)*n|(?:\\d+(?:_\\d+)*(?:\\.(?:\\d+(?:_\\d+)*)?)?|\\.\\d+(?:_\\d+)*)(?:[Ee][+-]?\\d+(?:_\\d+)*)?)(?![\\w$])`),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Prism.languages.javascript[`class-name`][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,Prism.languages.insertBefore(`javascript`,`keyword`,{regex:{pattern:RegExp(`((?:^|[^$\\w\\xA0-\\uFFFF."'\\])\\s]|\\b(?:return|yield))\\s*)\\/(?:(?:\\[(?:[^\\]\\\\\\r\\n]|\\\\.)*\\]|\\\\.|[^/\\\\\\[\\r\\n])+\\/[dgimyus]{0,7}|(?:\\[(?:[^[\\]\\\\\\r\\n]|\\\\.|\\[(?:[^[\\]\\\\\\r\\n]|\\\\.|\\[(?:[^[\\]\\\\\\r\\n]|\\\\.)*\\])*\\])*\\]|\\\\.|[^/\\\\\\[\\r\\n])+\\/[dgimyus]{0,7}v[dgimyus]{0,7})(?=(?:\\s|\\/\\*(?:[^*]|\\*(?!\\/))*\\*\\/)*(?:$|[\\r\\n,.;:})\\]]|\\/\\/))`),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:`language-regex`,inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:`function`},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Prism.languages.insertBefore(`javascript`,`string`,{hashbang:{pattern:/^#!.*/,greedy:!0,alias:`comment`},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:`string`},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:`punctuation`},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:`property`}}),Prism.languages.insertBefore(`javascript`,`operator`,{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:`property`}}),Prism.languages.markup&&(Prism.languages.markup.tag.addInlined(`script`,`javascript`),Prism.languages.markup.tag.addAttribute(`on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)`,`javascript`)),Prism.languages.js=Prism.languages.javascript,Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:`attr-equals`},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:`named-entity`},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside[`attr-value`].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside[`internal-subset`].inside=Prism.languages.markup,Prism.hooks.add(`wrap`,function(e){e.type===`entity`&&(e.attributes.title=e.content.replace(/&/,`&`))}),Object.defineProperty(Prism.languages.markup.tag,`addInlined`,{value:function(e,t){var n={};n[`language-`+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r[`language-`+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var i={};i[e]={pattern:RegExp(`(<__[^>]*>)(?:<!\\[CDATA\\[(?:[^\\]]|\\](?!\\]>))*\\]\\]>|(?!<!\\[CDATA\\[)[\\s\\S])*?(?=<\\/__>)`.replace(/__/g,function(){return e}),`i`),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore(`markup`,`cdata`,i)}}),Object.defineProperty(Prism.languages.markup.tag,`addAttribute`,{value:function(e,t){Prism.languages.markup.tag.inside[`special-attr`].push({pattern:RegExp(`(^|["'\\s])(?:`+e+`)\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s'">=]+(?=[\\s>]))`,`i`),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,`language-`+t],inside:Prism.languages[t]},punctuation:[{pattern:/^=/,alias:`attr-equals`},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend(`markup`,{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml,(function(e){var t=`(?:\\\\.|[^\\\\\\n\\r]|(?:\\n|\\r\\n?)(?![\\r\\n]))`;function n(e){return e=e.replace(/<inner>/g,function(){return t}),RegExp(`((?:^|[^\\\\])(?:\\\\{2})*)(?:`+e+`)`)}var r="(?:\\\\.|``(?:[^`\\r\\n]|`(?!`))+``|`[^`\\r\\n]+`|[^\\\\|\\r\\n`])+",i=`\\|?__(?:\\|__)+\\|?(?:(?:\\n|\\r\\n?)|(?![\\s\\S]))`.replace(/__/g,function(){return r}),a=`\\|?[ \\t]*:?-{3,}:?[ \\t]*(?:\\|[ \\t]*:?-{3,}:?[ \\t]*)+\\|?(?:\\n|\\r\\n?)`;e.languages.markdown=e.languages.extend(`markup`,{}),e.languages.insertBefore(`markdown`,`prolog`,{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:[`yaml`,`language-yaml`],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:`punctuation`},table:{pattern:RegExp(`^`+i+a+`(?:`+i+`)*`,`m`),inside:{"table-data-rows":{pattern:RegExp(`^(`+i+a+`)(?:`+i+`)*$`),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp(`^(`+i+`)`+a+`$`),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp(`^`+i+`$`),inside:{"table-header":{pattern:RegExp(r),alias:`important`,inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:`keyword`},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:`important`,inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:`important`,inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:`punctuation`},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:`punctuation`},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:`url`},bold:{pattern:n(`\\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\\b|\\*\\*(?:(?!\\*)<inner>|\\*(?:(?!\\*)<inner>)+\\*)+\\*\\*`),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(`\\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\\b|\\*(?:(?!\\*)<inner>|\\*\\*(?:(?!\\*)<inner>)+\\*\\*)+\\*`),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(`(~~?)(?:(?!~)<inner>)+\\2`),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:[`code`,`keyword`]},url:{pattern:n(`!?\\[(?:(?!\\])<inner>)+\\](?:\\([^\\s)]+(?:[\\t ]+"(?:\\\\.|[^"\\\\])*")?\\)|[ \\t]?\\[(?:(?!\\])<inner>)+\\])`),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),[`url`,`bold`,`italic`,`strike`].forEach(function(t){[`url`,`bold`,`italic`,`strike`,`code-snippet`].forEach(function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])})}),e.hooks.add(`after-tokenize`,function(e){if(e.language!==`markdown`&&e.language!==`md`)return;function t(e){if(!(!e||typeof e==`string`))for(var n=0,r=e.length;n<r;n++){var i=e[n];if(i.type!==`code`){t(i.content);continue}var a=i.content[1],o=i.content[3];if(a&&o&&a.type===`code-language`&&o.type===`code-block`&&typeof a.content==`string`){var s=a.content.replace(/\b#/g,`sharp`).replace(/\b\+\+/g,`pp`);s=(/[a-z][\w-]*/i.exec(s)||[``])[0].toLowerCase();var c=`language-`+s;o.alias?typeof o.alias==`string`?o.alias=[o.alias,c]:o.alias.push(c):o.alias=[c]}}}t(e.tokens)}),e.hooks.add(`wrap`,function(t){if(t.type===`code-block`){for(var n=``,r=0,i=t.classes.length;r<i;r++){var a=t.classes[r],o=/language-(.+)/.exec(a);if(o){n=o[1];break}}var s=e.languages[n];if(s)t.content=e.highlight(l(t.content),s,n);else if(n&&n!==`none`&&e.plugins.autoloader){var c=`md-`+new Date().valueOf()+`-`+Math.floor(Math.random()*0x2386f26fc10000);t.attributes.id=c,e.plugins.autoloader.loadLanguages(n,function(){var t=document.getElementById(c);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))})}}});var o=RegExp(e.languages.markup.tag.pattern.source,`gi`),s={amp:`&`,lt:`<`,gt:`>`,quot:`"`},c=String.fromCodePoint||String.fromCharCode;function l(e){var t=e.replace(o,``);return t=t.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(e,t){return t=t.toLowerCase(),t[0]===`#`?c(t[1]===`x`?parseInt(t.slice(2),16):Number(t.slice(1))):s[t]||e}),t}e.languages.md=e.languages.markdown})(Prism),Prism.languages.c=Prism.languages.extend(`clike`,{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Prism.languages.insertBefore(`c`,`string`,{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),Prism.languages.insertBefore(`c`,`string`,{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:`property`,inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],char:Prism.languages.c.char,comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:`function`}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:`keyword`},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}}}),Prism.languages.insertBefore(`c`,`function`,{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete Prism.languages.c.boolean,(function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp(`@[\\w-](?:[^;{\\s"']|\\s+(?!\\s)|`+t.source+`)*?(?:;|(?=\\s*\\{))`),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:`selector`},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp(`\\burl\\((?:`+t.source+`|(?:[^\\\\\\r\\n()"']|\\\\[\\s\\S])*)\\)`,`i`),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp(`^`+t.source+`$`),alias:`url`}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+t.source+`)*(?=\\s*\\{)`),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined(`style`,`css`),n.tag.addAttribute(`style`,`css`))})(Prism),Prism.languages.objectivec=Prism.languages.extend(`c`,{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete Prism.languages.objectivec[`class-name`],Prism.languages.objc=Prism.languages.objectivec,Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},(function(e){var t=e.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:null},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/};t.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:t},boolean:t.boolean,variable:t.variable}})(Prism),Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:`punctuation`},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:`string`},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:[`annotation`,`punctuation`],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python[`string-interpolation`].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python,(function(e){for(var t=`\\/\\*(?:[^*/]|\\*(?!\\/)|\\/(?!\\*)|<self>)*\\*\\/`,n=0;n<2;n++)t=t.replace(/<self>/g,function(){return t});t=t.replace(/<self>/g,function(){return`[^\\s\\S]`}),e.languages.rust={comment:[{pattern:RegExp(`(^|[^\\\\])`+t),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:`attr-name`,inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:`punctuation`},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:`symbol`},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:`punctuation`},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:`function`},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:`class-name`},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:`namespace`},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:`namespace`,inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:`property`},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},e.languages.rust[`closure-params`].inside.rest=e.languages.rust,e.languages.rust.attribute.inside.string=e.languages.rust.string})(Prism),Prism.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(`(^|[^"#])(?:"(?:\\\\(?:\\((?:[^()]|\\([^()]*\\))*\\)|\\r\\n|[^(])|[^\\\\\\r\\n"])*"|"""(?:\\\\(?:\\((?:[^()]|\\([^()]*\\))*\\)|[^(])|[^\\\\"]|"(?!""))*""")(?!["#])`),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:`punctuation`},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(`(^|[^"#])(#+)(?:"(?:\\\\(?:#+\\((?:[^()]|\\([^()]*\\))*\\)|\\r\\n|[^#])|[^\\\\\\r\\n])*?"|"""(?:\\\\(?:#+\\((?:[^()]|\\([^()]*\\))*\\)|[^#])|[^\\\\])*?""")\\2`),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:`punctuation`},string:/[\s\S]+/}}],directive:{pattern:RegExp(`#(?:(?:elseif|if)\\b(?:[ ]*(?:![ \\t]*)?(?:\\b\\w+\\b(?:[ \\t]*\\((?:[^()]|\\([^()]*\\))*\\))?|\\((?:[^()]|\\([^()]*\\))*\\))(?:[ \\t]*(?:&&|\\|\\|))?)+|(?:else|endif)\\b)`),alias:`property`,inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:`constant`},"other-directive":{pattern:/#\w+\b/,alias:`property`},attribute:{pattern:/@\w+/,alias:`atrule`},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:`function`},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:`important`},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:`constant`},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:`keyword`},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},Prism.languages.swift[`string-literal`].forEach(function(e){e.inside.interpolation.inside=Prism.languages.swift}),(function(e){e.languages.typescript=e.languages.extend(`javascript`,{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript[`literal-property`];var t=e.languages.extend(`typescript`,{});delete t[`class-name`],e.languages.typescript[`class-name`].inside=t,e.languages.insertBefore(`typescript`,`function`,{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:`operator`},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:`class-name`,inside:t}}}}),e.languages.ts=e.languages.typescript})(Prism),(function(e){var t=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=`(?:[a-z]\\w*\\s*\\.\\s*)*(?:[A-Z]\\w*\\s*\\.\\s*)*`,r={pattern:RegExp(`(^|[^\\w.])`+n+`[A-Z](?:[\\d_A-Z]*[a-z]\\w*)?\\b`),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};e.languages.java=e.languages.extend(`clike`,{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[r,{pattern:RegExp(`(^|[^\\w.])`+n+`[A-Z]\\w*(?=\\s+\\w+\\s*[;,=()]|\\s*(?:\\[[\\s,]*\\]\\s*)?::\\s*new\\b)`),lookbehind:!0,inside:r.inside},{pattern:RegExp(`(\\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\\s+)`+n+`[A-Z]\\w*\\b`),lookbehind:!0,inside:r.inside}],keyword:t,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),e.languages.insertBefore(`java`,`string`,{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:`string`},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),e.languages.insertBefore(`java`,`class-name`,{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:`punctuation`},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":r,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(`(\\bimport\\s+)`+n+`(?:[A-Z]\\w*|\\*)(?=\\s*;)`),lookbehind:!0,inside:{namespace:r.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(`(\\bimport\\s+static\\s+)`+n+`(?:\\w+|\\*)(?=\\s*;)`),lookbehind:!0,alias:`static`,inside:{namespace:r.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(`(\\b(?:exports|import(?:\\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\\s+)(?!<keyword>)[a-z]\\w*(?:\\.[a-z]\\w*)*\\.?`.replace(/<keyword>/g,function(){return t.source})),lookbehind:!0,inside:{punctuation:/\./}}})})(Prism),(function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=`\\b(?!<keyword>)\\w+(?:\\s*\\.\\s*\\w+)*\\b`.replace(/<keyword>/g,function(){return t.source});e.languages.cpp=e.languages.extend(`c`,{"class-name":[{pattern:RegExp(`(\\b(?:class|concept|enum|struct|typename)\\s+)(?!<keyword>)\\w+`.replace(/<keyword>/g,function(){return t.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore(`cpp`,`string`,{module:{pattern:RegExp(`(\\b(?:import|module)\\s+)(?:"(?:\\\\(?:\\r\\n|[\\s\\S])|[^"\\\\\\r\\n])*"|<[^<>\\r\\n]*>|`+`<mod-name>(?:\\s*:\\s*<mod-name>)?|:\\s*<mod-name>`.replace(/<mod-name>/g,function(){return n})+`)`),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:`string`,greedy:!0}}),e.languages.insertBefore(`cpp`,`keyword`,{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:`class-name`,inside:e.languages.cpp}}}}),e.languages.insertBefore(`cpp`,`operator`,{"double-colon":{pattern:/::/,alias:`punctuation`}}),e.languages.insertBefore(`cpp`,`class-name`,{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend(`cpp`,{})}}),e.languages.insertBefore(`inside`,`double-colon`,{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp[`base-clause`])})(Prism);function O5(e,t){for(let n of e.childNodes){if(fl(n)&&n.tagName===t)return!0;O5(n,t)}return!1}var k5=`data-language`,A5=`data-highlight-language`,j5=`data-theme`,M5=class e extends Es{static getType(){return`code`}static clone(t){return new e(t.__language,t.__key)}constructor(e,t){super(t),this.__language=e||void 0,this.__isSyntaxHighlightSupported=!1,this.__theme=void 0}afterCloneFrom(e){super.afterCloneFrom(e),this.__language=e.__language,this.__theme=e.__theme,this.__isSyntaxHighlightSupported=e.__isSyntaxHighlightSupported}createDOM(e){let t=document.createElement(`code`);Zu(t,e.theme.code),t.setAttribute(`spellcheck`,`false`);let n=this.getLanguage();n&&(t.setAttribute(k5,n),this.getIsSyntaxHighlightSupported()&&t.setAttribute(A5,n));let r=this.getTheme();r&&t.setAttribute(j5,r);let i=this.getStyle();return i&&t.setAttribute(`style`,i),t}updateDOM(e,t,n){let r=this.__language,i=e.__language;r?r!==i&&t.setAttribute(k5,r):i&&t.removeAttribute(k5);let a=this.__isSyntaxHighlightSupported;e.__isSyntaxHighlightSupported&&i?a&&r?r!==i&&t.setAttribute(A5,r):t.removeAttribute(A5):a&&r&&t.setAttribute(A5,r);let o=this.__theme,s=e.__theme;o?o!==s&&t.setAttribute(j5,o):s&&t.removeAttribute(j5);let c=this.__style,l=e.__style;return c?c!==l&&t.setAttribute(`style`,c):l&&t.removeAttribute(`style`),!1}exportDOM(e){let t=document.createElement(`pre`);Zu(t,e._config.theme.code),t.setAttribute(`spellcheck`,`false`);let n=this.getLanguage();n&&(t.setAttribute(k5,n),this.getIsSyntaxHighlightSupported()&&t.setAttribute(A5,n));let r=this.getTheme();r&&t.setAttribute(j5,r);let i=this.getStyle();return i&&t.setAttribute(`style`,i),{element:t}}static importDOM(){return{code:e=>e.textContent!=null&&(/\r?\n/.test(e.textContent)||O5(e,`BR`))?{conversion:F5,priority:1}:null,div:()=>({conversion:I5,priority:1}),pre:()=>({conversion:F5,priority:0}),table:e=>B5(e)?{conversion:L5,priority:3}:null,td:e=>{let t=e,n=t.closest(`table`);return t.classList.contains(`js-file-line`)||n&&B5(n)?{conversion:R5,priority:3}:null},tr:e=>{let t=e.closest(`table`);return t&&B5(t)?{conversion:R5,priority:3}:null}}}static importJSON(e){return N5().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setLanguage(e.language).setTheme(e.theme)}exportJSON(){return{...super.exportJSON(),language:this.getLanguage(),theme:this.getTheme()}}insertNewAfter(e,t=!0){let n=this.getChildren(),r=n.length;if(r>=2&&n[r-1].getTextContent()===`
|
|
193
|
-
`&&n[r-2].getTextContent()===`
|
|
194
|
-
`&&e.isCollapsed()&&e.anchor.key===this.__key&&e.anchor.offset===r){n[r-1].remove(),n[r-2].remove();let e=Vs();return this.insertAfter(e,t),e}let{anchor:i,focus:a}=e,o=(i.isBefore(a)?i:a).getNode();if(V(o)){let e=K5(o),t=[];for(;;)if(xo(e))t.push(bo()),e=e.getNextSibling();else{if(!W5(e))break;{let n=0,r=e.getTextContent(),i=e.getTextContentSize();for(;n<i&&r[n]===` `;)n++;if(n!==0&&t.push(U5(` `.repeat(n))),n!==i)break;e=e.getNextSibling()}}let n=o.splitText(i.offset)[0],r=i.offset===0?0:1,a=n.getIndexWithinParent()+r,s=o.getParentOrThrow(),c=[Qa(),...t];s.splice(a,0,c);let l=t[t.length-1];l?l.select():i.offset===0?n.selectPrevious():n.getNextSibling().selectNext(0,0)}if(P5(o)){let{offset:t}=e.anchor;o.splice(t,0,[Qa()]),o.select(t+1,t+1)}return null}canIndent(){return!1}collapseAtStart(){let e=Vs();return this.getChildren().forEach((t=>e.append(t))),this.replace(e),!0}setLanguage(e){let t=this.getWritable();return t.__language=e||void 0,t}getLanguage(){return this.getLatest().__language}setIsSyntaxHighlightSupported(e){let t=this.getWritable();return t.__isSyntaxHighlightSupported=e,t}getIsSyntaxHighlightSupported(){return this.getLatest().__isSyntaxHighlightSupported}setTheme(e){let t=this.getWritable();return t.__theme=e||void 0,t}getTheme(){return this.getLatest().__theme}};function N5(e,t){return Ol(M5).setLanguage(e).setTheme(t)}function P5(e){return e instanceof M5}function F5(e){return{node:N5(e.getAttribute(k5))}}function I5(e){let t=e,n=z5(t);return n||function(e){let t=e.parentElement;for(;t!==null;){if(z5(t))return!0;t=t.parentElement}return!1}(t)?{node:n?N5():null}:{node:null}}function L5(){return{node:N5()}}function R5(){return{node:null}}function z5(e){return e.style.fontFamily.match(`monospace`)!==null}function B5(e){return e.classList.contains(`js-file-line-container`)}var V5=class e extends so{constructor(e=``,t,n){super(e,n),this.__highlightType=t}static getType(){return`code-highlight`}static clone(t){return new e(t.__text,t.__highlightType||void 0,t.__key)}getHighlightType(){return this.getLatest().__highlightType}setHighlightType(e){let t=this.getWritable();return t.__highlightType=e||void 0,t}canHaveFormat(){return!1}createDOM(e){let t=super.createDOM(e);return Zu(t,H5(e.theme,this.__highlightType)),t}updateDOM(e,t,n){let r=super.updateDOM(e,t,n),i=H5(n.theme,e.__highlightType),a=H5(n.theme,this.__highlightType);return i!==a&&(i&&Qu(t,i),a&&Zu(t,a)),r}static importJSON(e){return U5().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setHighlightType(e.highlightType)}exportJSON(){return{...super.exportJSON(),highlightType:this.getHighlightType()}}setFormat(e){return this}isParentRequired(){return!0}createParentElementNode(){return N5()}};function H5(e,t){return t&&e&&e.codeHighlight&&e.codeHighlight[t]}function U5(e=``,t){return il(new V5(e,t))}function W5(e){return e instanceof V5}function G5(e,t){let n=e;for(let r=Ul(e,t);r&&(W5(r.origin)||xo(r.origin));r=$u(r))n=r.origin;return n}function K5(e){return G5(e,`previous`)}(function(e){e.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var t={"deleted-sign":`-`,"deleted-arrow":`<`,"inserted-sign":`+`,"inserted-arrow":`>`,unchanged:` `,diff:`!`};Object.keys(t).forEach((function(n){var r=t[n],i=[];/^\w+$/.test(n)||i.push(/\w+/.exec(n)[0]),n===`diff`&&i.push(`bold`),e.languages.diff[n]={pattern:RegExp(`^(?:[`+r+`].*(?:\r
|
|
195
|
-
?|
|
|
196
|
-
|(?![\\s\\S])))+`,`m`),alias:i,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(n)[0]}}}})),Object.defineProperty(e.languages.diff,`PREFIXES`,{value:t})})(Prism),globalThis.Prism||window.Prism;function q5(e,t){let n={};for(let r of e){let e=t(r);e&&(n[e]?n[e].push(r):n[e]=[r])}return n}function J5(e){let t=q5(e,(e=>e.type));return{element:t.element||[],multilineElement:t[`multiline-element`]||[],textFormat:t[`text-format`]||[],textMatch:t[`text-match`]||[]}}var Y5=/[!-/:-@[-`{-~\s]/;function X5(e){return V(e)&&!e.hasFormat(`code`)}function Z5(e,...t){let n=new URL(`https://lexical.dev/docs/error`),r=new URLSearchParams;r.append(`code`,e);for(let e of t)r.append(`v`,e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function Q5(e,t,n){let r=n.length;for(let i=t;i>=r;i--){let t=i-r;if($5(e,t,n,0,r)&&e[t+r]!==` `)return t}return-1}function $5(e,t,n,r,i){for(let a=0;a<i;a++)if(e[t+a]!==n[r+a])return!1;return!0}function e7(e,t=j7){let n=J5(t),r=q5(n.textFormat,(({tag:e})=>e[e.length-1])),i=q5(n.textMatch,(({trigger:e})=>e));for(let n of t){let t=n.type;if(t===`element`||t===`text-match`||t===`multiline-element`){let t=n.dependencies;for(let n of t)e.hasNode(n)||Z5(173,n.getType())}}let a=(e,t,a)=>{(function(e,t,n,r){if(!nl(e.getParent())||e.getFirstChild()!==t)return!1;let i=t.getTextContent();if(i[n-1]!==` `)return!1;for(let{regExp:a,replace:o}of r){let r=i.match(a);if(r&&r[0].length===(r[0].endsWith(` `)?n:n-1)){let i=t.getNextSiblings(),[a,s]=t.splitText(n);if(!1!==o(e,s?[s,...i]:i,r,!1))return a.remove(),!0}}return!1})(e,t,a,n.element)||function(e,t,n,r){if(!nl(e.getParent())||e.getFirstChild()!==t)return!1;let i=t.getTextContent();if(i[n-1]!==` `)return!1;for(let{regExpStart:a,replace:o,regExpEnd:s}of r){if(s&&!(`optional`in s)||s&&`optional`in s&&!s.optional)continue;let r=i.match(a);if(r&&r[0].length===(r[0].endsWith(` `)?n:n-1)){let i=t.getNextSiblings(),[a,s]=t.splitText(n);if(!1!==o(e,s?[s,...i]:i,r,null,null,!1))return a.remove(),!0}}return!1}(e,t,a,n.multilineElement)||function(e,t,n){let r=e.getTextContent(),i=n[r[t-1]];if(i==null)return!1;t<r.length&&(r=r.slice(0,t));for(let t of i){if(!t.replace||!t.regExp)continue;let n=r.match(t.regExp);if(n===null)continue;let i=n.index||0,a=i+n[0].length,o;return i===0?[o]=e.splitText(a):[,o]=e.splitText(i,a),o.selectNext(0,0),t.replace(o,n),!0}return!1}(t,a,i)||function(e,t,n){let r=e.getTextContent(),i=t-1,a=r[i],o=n[a];if(!o)return!1;for(let t of o){let{tag:n}=t,o=n.length,s=i-o+1;if(o>1&&!$5(r,s,n,0,o)||r[s-1]===` `)continue;let c=r[i+1];if(!1===t.intraword&&c&&!Y5.test(c))continue;let l=e,u=l,d=Q5(r,s,n),f=u;for(;d<0&&(f=f.getPreviousSibling())&&!$a(f);)if(V(f)){if(f.hasFormat(`code`))continue;let e=f.getTextContent();u=f,d=Q5(e,e.length,n)}if(d<0||u===l&&d+o===s)continue;let p=u.getTextContent();if(d>0&&p[d-1]===a)continue;let m=p[d-1];if(!1===t.intraword&&m&&!Y5.test(m))continue;let h=l.getTextContent(),g=h.slice(0,s)+h.slice(i+1);l.setTextContent(g);let _=u===l?g:p;u.setTextContent(_.slice(0,d)+_.slice(d+o));let v=U(),y=Bo();wc(y);let b=i-o*(u===l?2:1)+1;y.anchor.set(u.__key,d,`text`),y.focus.set(l.__key,b,`text`);for(let e of t.format)y.hasFormat(e)||y.formatText(e);y.anchor.set(y.focus.key,y.focus.offset,y.focus.type);for(let e of t.format)y.hasFormat(e)&&y.toggleFormat(e);return H(v)&&(y.format=v.format),!0}}(t,a,r)};return e.registerUpdateListener((({tags:t,dirtyLeaves:n,editorState:r,prevEditorState:i})=>{if(t.has(`collaboration`)||t.has(`historic`)||e.isComposing())return;let o=r.read(U),s=i.read(U);if(!H(s)||!H(o)||!o.isCollapsed()||o.is(s))return;let c=o.anchor.key,l=o.anchor.offset,u=r._nodeMap.get(c);!V(u)||!n.has(c)||l!==1&&l>s.anchor.offset+1||e.update((()=>{if(!X5(u))return;let e=u.getParent();e===null||P5(e)||a(e,u,o.anchor.offset)}))}))}var t7=/^(\s*)(\d{1,})\.\s/,n7=/^(\s*)[-*+]\s/,r7=/^(\s*)(?:-\s)?\s?(\[(\s|x)?\])\s/i,i7=/^(#{1,6})\s/,a7=/^>\s/,o7=/^[ \t]*```([\w-]+)?/,s7=/[ \t]*```$/,c7=e=>(t,n,r,i)=>{let a=e(r);a.append(...n),t.replace(a),i||a.select(0,0)},l7=e=>(t,n,r,i)=>{let a=t.getPreviousSibling(),o=t.getNextSibling(),s=aC(e===`check`?r[3]===`x`:void 0);if(pC(o)&&o.getListType()===e){let e=o.getFirstChild();e===null?o.append(s):e.insertBefore(s),t.remove()}else if(pC(a)&&a.getListType()===e)a.append(s),t.remove();else{let n=fC(e,e===`number`?Number(r[2]):void 0);n.append(s),t.replace(n)}s.append(...n),i||s.select(0,0);let c=function(e){let t=e.match(/\t/g),n=e.match(/ /g),r=0;return t&&(r+=t.length),n&&(r+=Math.floor(n.length/4)),r}(r[1]);c&&s.setIndent(c)},u7=(e,t,n)=>{let r=[],i=e.getChildren(),a=0;for(let o of i)if(oC(o)){if(o.getChildrenSize()===1){let e=o.getFirstChild();if(pC(e)){r.push(u7(e,t,n+1));continue}}let i=` `.repeat(4*n),s=e.getListType(),c=s===`number`?`${e.getStart()+a}. `:s===`check`?`- [${o.getChecked()?`x`:` `}] `:`- `;r.push(i+c+t(o)),a++}return r.join(`
|
|
197
|
-
`)},d7={dependencies:[nf],export:(e,t)=>{if(!cf(e))return null;let n=Number(e.getTag().slice(1));return`#`.repeat(n)+` `+t(e)},regExp:i7,replace:c7((e=>sf(`h`+e[1].length))),type:`element`},f7={dependencies:[$d],export:(e,t)=>{if(!tf(e))return null;let n=t(e).split(`
|
|
198
|
-
`),r=[];for(let e of n)r.push(`> `+e);return r.join(`
|
|
199
|
-
`)},regExp:a7,replace:(e,t,n,r)=>{if(r){let n=e.getPreviousSibling();if(tf(n))return n.splice(n.getChildrenSize(),0,[Qa(),...t]),void e.remove()}let i=ef();i.append(...t),e.replace(i),r||i.select(0,0)},type:`element`},p7={dependencies:[M5],export:e=>{if(!P5(e))return null;let t=e.getTextContent();return"```"+(e.getLanguage()||``)+(t?`
|
|
200
|
-
`+t:``)+"\n```"},regExpEnd:{optional:!0,regExp:s7},regExpStart:o7,replace:(e,t,n,r,i,a)=>{let o,s;if(!t&&i){if(i.length===1)r?(o=N5(),s=n[1]+i[0]):(o=N5(n[1]),s=i[0].startsWith(` `)?i[0].slice(1):i[0]);else{if(o=N5(n[1]),i[0].trim().length===0)for(;i.length>0&&!i[0].length;)i.shift();else i[0]=i[0].startsWith(` `)?i[0].slice(1):i[0];for(;i.length>0&&!i[i.length-1].length;)i.pop();s=i.join(`
|
|
201
|
-
`)}let t=_o(s);o.append(t),e.append(o)}else t&&c7((e=>N5(e?e[1]:void 0)))(e,t,n,a)},type:`multiline-element`},m7={dependencies:[sC,nC],export:(e,t)=>pC(e)?u7(e,t,0):null,regExp:n7,replace:l7(`bullet`),type:`element`},h7={dependencies:[sC,nC],export:(e,t)=>pC(e)?u7(e,t,0):null,regExp:r7,replace:l7(`check`),type:`element`},g7={dependencies:[sC,nC],export:(e,t)=>pC(e)?u7(e,t,0):null,regExp:t7,replace:l7(`number`),type:`element`},_7={format:[`code`],tag:"`",type:`text-format`},v7={format:[`highlight`],tag:`==`,type:`text-format`},y7={format:[`bold`,`italic`],tag:`***`,type:`text-format`},b7={format:[`bold`,`italic`],intraword:!1,tag:`___`,type:`text-format`},x7={format:[`bold`],tag:`**`,type:`text-format`},S7={format:[`bold`],intraword:!1,tag:`__`,type:`text-format`},C7={format:[`strikethrough`],tag:`~~`,type:`text-format`},w7={format:[`italic`],tag:`*`,type:`text-format`},T7={format:[`italic`],intraword:!1,tag:`_`,type:`text-format`},E7={dependencies:[ES],export:(e,t,n)=>{if(!kS(e)||MS(e))return null;let r=e.getTitle(),i=t(e);return r?`[${i}](${e.getURL()} "${r}")`:`[${i}](${e.getURL()})`},importRegExp:/(?:\[(.*?)\])(?:\((?:([^()\s]+)(?:\s"((?:[^"]*\\")*[^"]*)"\s*)?)\))/,regExp:/(?:\[(.*?)\])(?:\((?:([^()\s]+)(?:\s"((?:[^"]*\\")*[^"]*)"\s*)?)\))$/,replace:(e,t)=>{let[,n,r,i]=t,a=OS(r,{title:i}),o=n.split(`[`).length-1,s=n.split(`]`).length-1,c=n,l=``;if(o<s)return;if(o>s){let e=n.split(`[`);l=`[`+e[0],c=e.slice(1).join(`[`)}let u=_o(c);return u.setFormat(e.getFormat()),a.append(u),e.replace(a),l&&a.insertBefore(_o(l)),u},trigger:`)`,type:`text-match`},D7=[d7,f7,m7,g7],O7=[p7],k7=[_7,y7,b7,x7,S7,v7,w7,T7,C7],A7=[E7],j7=[...D7,...O7,...k7,...A7],M7=[{dependencies:[rw],export:e=>ow(e)?`***`:null,regExp:/^(---|\*\*\*|___)\s?$/,replace:(e,t,n,r)=>{let i=aw();r||e.getNextSibling()!=null?e.replace(i):e.insertBefore(i),i.selectNext()},type:`element`},...j7];function N7({transformers:e=M7}){let[t]=Ln();return(0,I.useEffect)((()=>e7(t,e)),[t,e]),null}var P7=Nn({init(e){let t=e.getValue(qx),n=R7(t,t.includes(`headings`)?e.getValue(ZC):[]),r=n.filter(e=>!L7.has(e));e.pubIn({[Ax]:()=>I.createElement(N7,{transformers:n}),[Lx]:()=>I.createElement(N7,{transformers:n}),[zx]:()=>I.createElement(N7,{transformers:r})})}}),F7=e=>(t,n,r)=>{let i=e(r);i.append(...n),t.replace(i),i.select(0,0)},I7={dependencies:[rw],export:e=>ow(e)?`***`:null,regExp:/^(---|\*\*\*|___)\s?$/,replace:(e,t,n,r)=>{let i=aw();r||e.getNextSibling()!=null?e.replace(i):e.insertBefore(i),i.selectNext()},type:`element`},L7=new Set([g7,m7,h7]);function R7(e,t){let n=[y7,b7,x7,S7,_7,w7,T7];if(e.includes(`headings`)){let e=Math.min(...t),r=Math.max(...t),i=RegExp(`^(#{${e},${r}})\\s`),a={dependencies:[nf],export:(e,t)=>{if(!cf(e))return null;let n=Number(e.getTag().slice(1));return`#`.repeat(n)+` `+t(e)},regExp:i,replace:F7(e=>sf(`h${e[1].length}`)),type:`element`};n.push(a)}if(e.includes(`thematicBreak`)&&n.push(I7),e.includes(`quote`)&&n.push(f7),e.includes(`link`)&&n.push(E7),e.includes(`lists`)&&n.push(g7,m7,h7),e.includes(`codeblock`)){let e={...p7,dependencies:[tW],replace:(e,t,n)=>{let r=oW({code:``,language:n[1]??``,meta:``});e.selectPrevious(),e.replace(r),setTimeout(()=>{r.select()},80)}};n.push(e)}return n}var z7=()=>{let e=Tn(Ux),t=Cn(Hx),n=Cn(qx),r=n.includes(`quote`),i=n.includes(`headings`),a=Qx();if(!r&&!i)return null;let o=[{label:a(`toolbar.blockTypes.paragraph`,`Paragraph`),value:`paragraph`}];if(r&&o.push({label:a(`toolbar.blockTypes.quote`,`Quote`),value:`quote`}),i){let e=Cn(ZC);o.push(...e.map(e=>({label:a(`toolbar.blockTypes.heading`,`Heading {{level}}`,{level:e}),value:`h${e}`})))}return I.createElement($2,{value:t,onChange:t=>{switch(t){case`quote`:e(()=>ef());break;case`paragraph`:e(()=>Vs());break;case``:break;default:if(t.startsWith(`h`))e(()=>sf(t));else throw Error(`Unknown block type: ${t}`)}},triggerTitle:a(`toolbar.blockTypeSelect.selectBlockTypeTooltip`,`Select block type`),placeholder:a(`toolbar.blockTypeSelect.placeholder`,`Block type`),items:o})},B7=({format:e,addTitle:t,removeTitle:n,icon:r,formatName:i})=>{let[a,o]=wn(Rb,Cx),s=Tn(Vb),c=(a&e)!==0;return I.createElement(M4,{title:c?n:t,on:c,onValueChange:()=>{s(i)}},o(r))},V7=({options:e})=>{let t=Qx(),n=e===void 0;return I.createElement(`div`,{className:q.toolbarGroupOfGroups},n||e.includes(`Bold`)?I.createElement(B7,{format:1,addTitle:t(`toolbar.bold`,`Bold`),removeTitle:t(`toolbar.removeBold`,`Remove bold`),icon:`format_bold`,formatName:`bold`}):null,n||e.includes(`Italic`)?I.createElement(B7,{format:2,addTitle:t(`toolbar.italic`,`Italic`),removeTitle:t(`toolbar.removeItalic`,`Remove italic`),icon:`format_italic`,formatName:`italic`}):null,n||e.includes(`Underline`)?I.createElement(B7,{format:8,addTitle:t(`toolbar.underline`,`Underline`),removeTitle:t(`toolbar.removeUnderline`,`Remove underline`),icon:`format_underlined`,formatName:`underline`}):null)},H7=({options:e})=>{let t=Qx(),n=e===void 0;return I.createElement(`div`,{className:q.toolbarGroupOfGroups},n||e.includes(`Strikethrough`)?I.createElement(B7,{format:4,addTitle:t(`toolbar.strikethrough`,`Strikethrough`),removeTitle:t(`toolbar.removeStrikethrough`,`Remove strikethrough`),icon:`strikeThrough`,formatName:`strikethrough`}):null,n||e.includes(`Sup`)?I.createElement(B7,{format:64,addTitle:t(`toolbar.superscript`,`Superscript`),removeTitle:t(`toolbar.removeSuperscript`,`Remove superscript`),icon:`superscript`,formatName:`superscript`}):null,n||e.includes(`Sub`)?I.createElement(B7,{format:32,addTitle:t(`toolbar.subscript`,`Subscript`),removeTitle:t(`toolbar.removeSubscript`,`Remove subscript`),icon:`subscript`,formatName:`subscript`}):null)},U7=()=>{let[e,t,n]=wn(xx,jb,i4),r=sW(e.rootNode)?e.rootNode:null,i=Qx();if(!r)return null;let{value:a,items:o}=r4(n,r.getLanguage());return I.createElement(`div`,{className:q.selectWithLabel},I.createElement(`label`,null,i(`codeBlock.language`,`Code block language`)),I.createElement($2,{value:a||`__EMPTY_VALUE__`,onChange:e=>{t?.update(()=>{r.setLanguage(e===`__EMPTY_VALUE__`?``:e),setTimeout(()=>{t.update(()=>{r.getLatest().select()})})})},triggerTitle:i(`codeBlock.selectLanguage`,`Select code block language`),placeholder:i(`codeBlock.language`,`Code block language`),items:o}))},W7=()=>{let[e,t]=wn(Rb,Cx),n=Tn(Vb),r=Qx(),i=(e&16)!=0,a=i?r(`toolbar.removeInlineCode`,`Remove code format`):r(`toolbar.inlineCode`,`Inline code format`);return I.createElement(N4,{items:[{title:a,contents:t(`code`),active:i,onChange:n.bind(null,`code`)}]})},G7=()=>{let e=Tn(b4),t=Cn(Cx),n=Qx();return I.createElement(A4,{"aria-label":n(`toolbar.link`,`Create link`),title:n(`toolbar.link`,`Create link`),onClick:t=>{e()}},t(`link`))},K7=({children:e,SourceToolbar:t,options:n=[`rich-text`,`diff`,`source`]})=>{let[r,i]=wn(Gx,Cx),a=Tn(Gx),o=Qx(),s=[];return n.includes(`rich-text`)&&s.push({title:o(`toolbar.richText`,`Rich text`),contents:i(`rich_text`),value:`rich-text`}),n.includes(`diff`)&&s.push({title:o(`toolbar.diffMode`,`Diff mode`),contents:i(`difference`),value:`diff`}),n.includes(`source`)&&s.push({title:o(`toolbar.source`,`Source mode`),contents:i(`markdown`),value:`source`}),I.createElement(I.Fragment,null,r===`rich-text`?e:r===`diff`?I.createElement(`span`,{className:q.toolbarTitleMode},o(`toolbar.diffMode`,`Diff mode`)):t??I.createElement(`span`,{className:q.toolbarTitleMode},o(`toolbar.source`,`Source mode`)),I.createElement(`div`,{className:q.diffSourceToggleWrapper},I.createElement(P4,{className:q.diffSourceToggle,ggClassName:q.ggDiffSourceToggle,value:r,items:s,onChange:e=>{a(e===``?`rich-text`:e)}})))},q7=()=>{let e=Tn(fW),t=Cn(Cx),n=Qx();return I.createElement(A4,{title:n(`toolbar.codeBlock`,`Insert Code Block`),onClick:()=>{e({})}},t(`frame_source`))},J7=()=>{let e=Tn(WU),[t,n]=wn(KU,Cx),r=Qx();return I.createElement(A4,{title:t?r(`toolbar.editFrontmatter`,`Edit frontmatter`):r(`toolbar.insertFrontmatter`,`Insert frontmatter`),className:(0,NC.default)({[q.activeToolbarButton]:t}),onClick:()=>{e()}},n(`frontmatter`))},Y7=I.forwardRef((e,t)=>{let n=Tn(oz),[r,i]=wn(Pb,Cx),a=Qx();return I.createElement(mM,{"aria-label":a(`toolbar.image`,`Insert image`),className:q.toolbarButton,ref:t,disabled:r,onClick:()=>{n()}},I.createElement(Y2,{title:a(`toolbar.image`,`Insert image`)},i(`add_photo`)))}),X7=()=>{let e=Cn(Cx),t=Tn(RM),n=Qx(),r=Cn(Bx);return I.createElement(A4,{title:n(`toolbar.table`,`Insert Table`),onClick:()=>{t({rows:3,columns:3})},...r?{"aria-disabled":!0,"data-disabled":!0,disabled:!0}:{}},e(`table`))},Z7=()=>{let e=Tn(uw),t=Cn(Cx),n=Qx();return I.createElement(A4,{title:n(`toolbar.thematicBreak`,`Insert thematic break`),onClick:()=>{e()}},t(`horizontal_rule`))},Q7={bullet:`format_list_bulleted`,number:`format_list_numbered`,check:`format_list_checked`},$7=({options:e=[`bullet`,`number`,`check`]})=>{let[t,n,r]=wn(Aw,Cx,Bx),i=Tn(jw),a=Qx(),o={bullet:a(`toolbar.bulletedList`,`Bulleted list`),number:a(`toolbar.numberedList`,`Numbered list`),check:a(`toolbar.checkList`,`Check list`)},s=e.map(e=>({value:e,title:o[e],contents:n(Q7[e])}));return I.createElement(P4,{value:t||``,items:s,onChange:i,disabled:r})},e9=()=>{let[e,t]=wn(Cx,jb),[n,r]=I.useState(!1),[i,a]=I.useState(!1),o=Qx();return I.useEffect(()=>{if(t)return Ju(t.registerCommand(ma,e=>(r(e),!1),4),t.registerCommand(pa,e=>(a(e),!1),4))},[t]),I.createElement(N4,{items:[{title:o(`toolbar.undo`,`Undo {{shortcut}}`,{shortcut:WC?`⌘Z`:`Ctrl+Z`}),disabled:!n,contents:e(`undo`),active:!1,onChange:()=>t?.dispatchCommand(zi,void 0)},{title:o(`toolbar.redo`,`Redo {{shortcut}}`,{shortcut:WC?`⌘Y`:`Ctrl+Y`}),disabled:!i,contents:e(`redo`),active:!1,onChange:()=>t?.dispatchCommand(Bi,void 0)}]})},t9=900,n9={txt:`Text`,text:`Text`,plaintext:`Plain Text`,md:`Markdown`,tsx:`TSX`,ts:`TypeScript`,js:`JavaScript`,json:`JSON`,css:`CSS`,bash:`Bash`,sh:`Shell`,shell:`Shell`,yaml:`YAML`,yml:`YAML`,toml:`TOML`,cron:`Cron`};function r9(e){let t=e,n=!1;for(;;){let e=t.getParent();if(e===null||nl(e))return null;let r=t.getNextSibling();if(r!==null)return!n&&V(r)?null:{parent:e,offset:t.getIndexWithinParent()+1};if(!e.isInline())return{parent:e,offset:t.getIndexWithinParent()+1};t=e,n=!0}}var i9=Nn({init(e){e.pub(Ex,e=>e.registerCommand(Hi,t=>{let n=t;if(n.shiftKey||n.altKey||n.ctrlKey||n.metaKey)return!1;let r=!1;return e.update(()=>{let e=U();if(!H(e)||!e.isCollapsed()||e.anchor.type!==`text`)return;let t=e.anchor.getNode();if(!V(t)||!(t.getFormat()&16)||e.anchor.offset!==t.getTextContentSize())return;let n=r9(t);n&&(e.anchor.set(n.parent.getKey(),n.offset,`element`),e.focus.set(n.parent.getKey(),n.offset,`element`),e.setFormat(e.format&-17),r=!0)}),r?(n.preventDefault(),!0):!1},3))}});function a9(){return(0,L.jsx)(I4,{options:[{when:e=>e?.editorType===`codeblock`,contents:()=>(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(e9,{}),(0,L.jsx)(L4,{}),(0,L.jsx)(U7,{}),(0,L.jsx)(L4,{}),(0,L.jsx)(q7,{})]})},{fallback:()=>(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(e9,{}),(0,L.jsx)(L4,{}),(0,L.jsx)(V7,{options:[`Bold`,`Italic`]}),(0,L.jsx)(H7,{options:[`Strikethrough`]}),(0,L.jsx)(W7,{}),(0,L.jsx)(L4,{}),(0,L.jsx)(z7,{}),(0,L.jsx)($7,{}),(0,L.jsx)(G7,{}),(0,L.jsx)(L4,{}),(0,L.jsx)(Y7,{}),(0,L.jsx)(X7,{}),(0,L.jsx)(Z7,{}),(0,L.jsx)(q7,{}),(0,L.jsx)(J7,{})]})}]})}var o9=(0,I.memo)((0,I.forwardRef)(function({documentKey:e,initialMarkdown:t,onPersist:n,onSaveStateChange:r,readOnly:i=!1,ariaLabel:a=`Markdown editor`},o){let s=(0,I.useRef)(null),c=(0,I.useRef)(null),l=(0,I.useRef)(e),u=(0,I.useRef)(t),d=(0,I.useRef)(t),f=(0,I.useRef)(null),p=(0,I.useRef)(null),m=(0,I.useRef)(null),[h,g]=(0,I.useState)(`rich`),[_,v]=(0,I.useState)(t),[y,b]=(0,I.useState)(0),[x,S]=(0,I.useState)(!1),[C,w]=(0,I.useState)(null),T=(0,I.useCallback)(()=>{m.current!==null&&(window.clearTimeout(m.current),m.current=null)},[]),E=(0,I.useCallback)(async()=>{if(i){r(`saved`);return}p.current&&await p.current;let e=u.current;if(e===d.current){r(`saved`);return}r(`saving`),f.current=e;let t=(async()=>{await n(e),d.current=e})();p.current=t;try{if(await t,u.current===d.current){r(`saved`);return}await E()}catch(e){throw r(`error`),e instanceof Error?e:Error(`Autosave failed`)}finally{p.current===t&&(p.current=null,f.current=null)}},[n,r,i]),ee=(0,I.useCallback)(()=>{i||(T(),m.current=window.setTimeout(()=>{m.current=null,E().catch(()=>void 0)},t9))},[T,E,i]),D=(0,I.useCallback)((e,t)=>{if(u.current=e,v(e),t){d.current=e,r(`saved`);return}if(i){r(`saved`);return}if(e===d.current){T(),r(`saved`);return}r(`idle`),ee()},[T,r,i,ee]),O=(0,I.useMemo)(()=>[QC(),Mw(),XU(),dw(),sN(),E4(),mz(),zM(),mW({defaultCodeBlockLanguage:`txt`,codeBlockEditorDescriptors:[{priority:-10,match:()=>!0,Editor:e4}]}),c4({codeBlockLanguages:n9}),qU(),D5({viewMode:`rich-text`}),P7(),i9(),V4({toolbarContents:()=>(0,L.jsx)(K7,{options:[`rich-text`,`source`],children:(0,L.jsx)(a9,{})})})],[]);(0,I.useImperativeHandle)(o,()=>({flushSave:async()=>{T(),await E()},getMarkdown:()=>u.current})),(0,I.useEffect)(()=>()=>T(),[T]),(0,I.useEffect)(()=>{let n=l.current!==e,i=t!==d.current,a=!n&&p.current!==null&&t===f.current;!n&&!i||a||(l.current=e,T(),p.current=null,f.current=null,u.current=t,d.current=t,v(t),g(`rich`),n||b(e=>e+1),r(`saved`))},[e,t,r,T]),(0,I.useEffect)(()=>{if(!x)return;let e=document.body.style.overflow;document.body.style.overflow=`hidden`;let t=e=>{e.key===`Escape`&&(e.preventDefault(),S(!1))};window.addEventListener(`keydown`,t);let n=window.requestAnimationFrame(()=>{h===`plain`||i?c.current?.focus({preventScroll:!0}):s.current?.focus(void 0,{preventScroll:!0})});return()=>{window.cancelAnimationFrame(n),window.removeEventListener(`keydown`,t),document.body.style.overflow=e}},[h,x,i]);let k=h===`plain`||i?(0,L.jsxs)(`div`,{className:`markdown-editor__plain-fallback`,children:[(0,L.jsx)(`p`,{className:`markdown-editor__plain-notice`,children:i?`This document is read-only. Create a managed copy to edit it.`:`The rich editor could not safely load this document. You are editing raw Markdown.`}),(0,L.jsx)(`textarea`,{ref:c,className:`markdown-editor__plain-textarea`,"aria-label":`${a} source`,value:i?t:_,readOnly:i,onChange:e=>{if(i)return;let t=e.currentTarget.value;if(v(t),u.current=t,t===d.current){T(),r(`saved`);return}r(`idle`),ee()},spellCheck:!1})]}):(0,L.jsx)(HC,{ref:s,className:`markdown-editor__mdx`,markdown:t,onChange:D,onError:e=>{console.error(`MDXEditor error`,e.error);let t=e.source||u.current;u.current=t,v(t),g(`plain`)},contentEditableClassName:`markdown-editor__content`,placeholder:(0,L.jsx)(`span`,{children:`Type # + Space for a heading or - + Space for a list…`}),overlayContainer:C,plugins:O},`${e}:${y}`);return(0,L.jsxs)(L.Fragment,{children:[x?(0,L.jsx)(`button`,{type:`button`,className:`markdown-editor__backdrop`,"aria-label":`Exit focused Markdown editor`,onClick:()=>S(!1)}):null,(0,L.jsxs)(`div`,{ref:w,className:`markdown-editor-shell${x?` markdown-editor-shell--expanded`:``}`,"aria-label":a,"data-expanded":x?`true`:`false`,"data-read-only":i?`true`:`false`,children:[(0,L.jsxs)(`div`,{className:`markdown-editor__utility-bar`,children:[(0,L.jsxs)(`div`,{className:`markdown-editor__identity`,children:[(0,L.jsx)(Mt,{size:14,"aria-hidden":`true`}),(0,L.jsx)(`span`,{children:`Markdown`}),(0,L.jsx)(`span`,{className:`markdown-editor__mode-label`,children:i?`Read only`:h===`plain`?`Source fallback`:`Rich + source`})]}),(0,L.jsxs)(`button`,{type:`button`,className:`markdown-editor__expand-button`,"aria-label":x?`Exit focused editor`:`Open focused editor`,"aria-pressed":x,title:x?`Exit focused editor (Esc)`:`Open focused editor`,onClick:()=>S(e=>!e),children:[x?(0,L.jsx)(Ft,{size:16,"aria-hidden":`true`}):(0,L.jsx)(Pt,{size:16,"aria-hidden":`true`}),(0,L.jsx)(`span`,{children:x?`Exit focus`:`Focus`})]})]}),k]})]})}));function s9(){let e=(0,I.useRef)(null),t=(0,I.useRef)(`saved`),[n,r]=(0,I.useState)([]),[i,a]=(0,I.useState)(null),[o,s]=(0,I.useState)(null),[c,l]=(0,I.useState)([]),[u,d]=(0,I.useState)(``),[f,p]=(0,I.useState)(null),[m,h]=(0,I.useState)(`saved`),[g,_]=(0,I.useState)(null),[v,y]=(0,I.useState)(null),[b,x]=(0,I.useState)(!0),[S,C]=(0,I.useState)(!1),[w,T]=(0,I.useState)(``),[E,ee]=(0,I.useState)(`global`),[D,O]=(0,I.useState)(``),[k,te]=(0,I.useState)(``);(0,I.useEffect)(()=>{t.current=m},[m]);let A=(0,I.useCallback)(async e=>{if(s(e),a(e.key),_(null),y(null),!e.managed){l([]),p(null);return}let[t,n]=await Promise.all([Jt(e.key),e.sourceRef?Xt(e.key).catch(()=>null):Promise.resolve(null)]);l(t.revisions),p(n)},[]),j=(0,I.useCallback)(async()=>{let e=await Vt();r(e),a(t=>t??e[0]?.key??null)},[]),M=(0,I.useCallback)(async e=>{await A(await Ht(e))},[A]);(0,I.useEffect)(()=>{j().catch(e=>y(e instanceof Error?e.message:String(e))).finally(()=>x(!1))},[j]),(0,I.useEffect)(()=>{if(!i){s(null);return}M(i).catch(e=>y(e instanceof Error?e.message:String(e)))},[i,M]),(0,I.useEffect)(()=>{let e=new EventSource(`/api/context-files/events`);return e.addEventListener(`pibo-product`,e=>{let n=f9(e);if(!n?.type.startsWith(`context-file.`))return;j().catch(e=>y(e instanceof Error?e.message:String(e)));let r=n.payload?.key;if(!(!r||r!==i)&&n.source!==`web`){if(t.current===`idle`||t.current===`saving`){_(`This file changed on disk while you had local edits. Review before saving again.`);return}M(r).catch(e=>y(e instanceof Error?e.message:String(e)))}}),e.onerror=()=>{y(`Live context-file updates disconnected.`)},()=>e.close()},[M,j,i]);let ne=(0,I.useMemo)(()=>n.find(e=>e.key===i)??null,[n,i]);(0,I.useEffect)(()=>{te(o?.agentProfileName??``),d(``)},[o?.agentProfileName,o?.key]);let re=(0,I.useCallback)(async t=>{try{await e.current?.flushSave(),a(t)}catch(e){y(e instanceof Error?e.message:String(e))}},[]),ie=(0,I.useCallback)(async()=>{try{await e.current?.flushSave();let t=await Ut({label:w,scope:E,agentProfileName:E===`agent`?D:void 0,markdown:``});T(``),O(``),await j(),await A(t),y(null)}catch(e){y(e instanceof Error?e.message:String(e))}},[D,w,E,A,j]),ae=(0,I.useCallback)(async e=>{if(o)try{await A(await Gt(o.key,{markdown:e,expectedVersion:o.version})),_(null),await j()}catch(e){throw p9(e)&&(await A(e.data.file),_(`The file changed before save. The editor reloaded the latest disk version.`)),e}},[o,A,j]),oe=(0,I.useCallback)(async()=>{i&&(await M(i),await j())},[M,j,i]),se=(0,I.useCallback)(async()=>{if(ne?.removable)try{await qt(ne.key,!0),a(null),s(null),await j(),y(null)}catch(e){y(e instanceof Error?e.message:String(e))}},[j,ne]),N=(0,I.useCallback)(async e=>{if(o?.managed)try{await A(await Kt(o.key,{scope:e,agentProfileName:e===`agent`?k:void 0})),await j(),y(null)}catch(e){y(e instanceof Error?e.message:String(e))}},[o,A,k,j]),ce=(0,I.useCallback)(async()=>{if(!(!ne||ne.source!==`plugin`)){C(!0);try{let e=await Wt(ne.key);await j(),await A(e),y(null)}catch(e){y(e instanceof Error?e.message:String(e))}finally{C(!1)}}},[A,j,ne]),le=(0,I.useCallback)(async()=>{if(!(!o?.managed||!o.sourceRef)){C(!0);try{let e=await Zt(o.key);await j(),await A(e)}catch(e){y(e instanceof Error?e.message:String(e))}finally{C(!1)}}},[o,A,j]),ue=(0,I.useCallback)(async()=>{if(!(!o?.managed||o.linkState!==`linked-stale`)){C(!0);try{let e=await Qt(o.key);await j(),await A(e)}catch(e){y(e instanceof Error?e.message:String(e))}finally{C(!1)}}},[o,A,j]),de=(0,I.useCallback)(async()=>{if(!(!o?.managed||!u.trim())){C(!0);try{await e.current?.flushSave(),await Yt(o.key,u.trim()),l((await Jt(o.key)).revisions),d(``),y(null)}catch(e){y(e instanceof Error?e.message:String(e))}finally{C(!1)}}},[o,u]),fe=(0,I.useCallback)(async e=>{if(o?.managed){C(!0);try{let t=await $t(o.key,e);await j(),await A(t)}catch(e){y(e instanceof Error?e.message:String(e))}finally{C(!1)}}},[o,A,j]);return(0,L.jsxs)(`div`,{className:`app-shell`,children:[(0,L.jsxs)(`aside`,{className:`sidebar`,children:[(0,L.jsxs)(`div`,{className:`sidebar-header`,children:[(0,L.jsxs)(`div`,{children:[(0,L.jsx)(`p`,{className:`eyebrow`,children:`Pibo`}),(0,L.jsx)(`h1`,{children:`Context Files`})]}),(0,L.jsx)(`a`,{className:`chat-link`,href:`/apps/chat`,children:`Chat`})]}),(0,L.jsxs)(`section`,{className:`tool-panel`,children:[(0,L.jsxs)(`div`,{className:`segmented`,children:[(0,L.jsxs)(`button`,{className:E===`global`?`active`:``,type:`button`,onClick:()=>ee(`global`),children:[(0,L.jsx)(jt,{size:15}),`Global`]}),(0,L.jsxs)(`button`,{className:E===`agent`?`active`:``,type:`button`,onClick:()=>ee(`agent`),children:[(0,L.jsx)(Nt,{size:15}),`Agent`]})]}),(0,L.jsx)(`input`,{value:w,onChange:e=>T(e.currentTarget.value),placeholder:`Context file name`}),E===`agent`?(0,L.jsx)(`input`,{value:D,onChange:e=>O(e.currentTarget.value),placeholder:`agent-profile-name`}):null,(0,L.jsx)(`button`,{className:`primary-action`,type:`button`,disabled:!w.trim()||E===`agent`&&!D.trim(),onClick:()=>void ie(),children:`Create File`})]}),(0,L.jsxs)(`section`,{className:`file-list`,"aria-label":`Context files`,children:[(0,L.jsxs)(`div`,{className:`list-title`,children:[(0,L.jsx)(Nt,{size:15}),(0,L.jsxs)(`span`,{children:[n.length,` files`]})]}),b?(0,L.jsx)(`div`,{className:`empty`,children:`Loading`}):null,n.map(e=>(0,L.jsxs)(`button`,{type:`button`,className:e.key===i?`file-row selected`:`file-row`,onClick:()=>void re(e.key),children:[(0,L.jsx)(`span`,{className:`file-name`,children:e.label||e.key}),(0,L.jsx)(`span`,{className:`file-path`,children:e.path}),(0,L.jsx)(`span`,{className:`scope-badge scope-badge--${e.scope}`,children:u9(e)}),(0,L.jsx)(`span`,{className:`scope-badge scope-badge--${e.scope}`,children:d9(e.linkState)}),e.exists?null:(0,L.jsx)(`span`,{className:`missing`,children:`missing`})]},e.key)),!b&&n.length===0?(0,L.jsx)(`div`,{className:`empty`,children:`No context files registered`}):null]})]}),(0,L.jsxs)(`main`,{className:`editor-pane`,children:[(0,L.jsxs)(`header`,{className:`editor-header`,children:[(0,L.jsxs)(`div`,{className:`editor-title`,children:[(0,L.jsx)(`p`,{className:`eyebrow`,children:ne?u9(ne):`Context File`}),(0,L.jsx)(`h2`,{children:o?.label||o?.key||`No file selected`}),o?(0,L.jsx)(`p`,{className:`path-line`,children:o.path}):null]}),(0,L.jsxs)(`div`,{className:`editor-actions`,children:[(0,L.jsxs)(`span`,{className:`save-pill save-pill--${m}`,children:[(0,L.jsx)(Lt,{size:15}),l9(m)]}),(0,L.jsx)(`button`,{className:`icon-button`,type:`button`,title:`Reload`,onClick:()=>void oe(),children:(0,L.jsx)(It,{size:16})}),(0,L.jsx)(`button`,{className:`icon-button danger`,type:`button`,title:`Remove managed file`,disabled:!ne?.removable,onClick:()=>void se(),children:(0,L.jsx)(Rt,{size:16})})]})]}),v?(0,L.jsx)(c9,{tone:`error`,text:v}):null,g?(0,L.jsx)(c9,{tone:`warning`,text:g}):null,o?(0,L.jsxs)(`div`,{className:`scope-controls`,children:[(0,L.jsxs)(`div`,{children:[`State: `,(0,L.jsx)(`strong`,{children:d9(o.linkState)})]}),o.sourceRef?(0,L.jsxs)(`div`,{children:[`Source: `,(0,L.jsx)(`code`,{children:o.sourceRef})]}):null,o.sourceHash?(0,L.jsxs)(`div`,{children:[`Hash: `,(0,L.jsx)(`code`,{children:o.sourceHash})]}):null]}):null,o?.source===`plugin`?(0,L.jsxs)(`div`,{className:`scope-controls`,children:[(0,L.jsx)(`div`,{children:`This is a plugin-owned source file. Create a managed copy before editing.`}),(0,L.jsx)(`button`,{className:`primary-action`,type:`button`,disabled:S,onClick:()=>void ce(),children:`Create Managed Copy`})]}):null,o?.managed?(0,L.jsxs)(`div`,{className:`scope-controls`,children:[(0,L.jsxs)(`div`,{className:`segmented`,children:[(0,L.jsx)(`button`,{type:`button`,className:o.scope===`global`?`active`:``,onClick:()=>void N(`global`),children:`Global`}),(0,L.jsx)(`button`,{type:`button`,className:o.scope===`agent`?`active`:``,onClick:()=>void N(`agent`),disabled:!k.trim(),children:`Agent`})]}),(0,L.jsx)(`input`,{value:k,onChange:e=>te(e.currentTarget.value),placeholder:`agent-profile-name`}),o.sourceRef?(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(`button`,{className:`primary-action`,type:`button`,disabled:S,onClick:()=>void le(),children:`Reset To Source`}),o.linkState===`linked-stale`?(0,L.jsx)(`button`,{className:`primary-action`,type:`button`,disabled:S,onClick:()=>void ue(),children:`Adopt Source`}):null]}):null]}):null,o?.exists?(0,L.jsx)(`div`,{className:`editor-frame`,children:(0,L.jsx)(o9,{ref:e,documentKey:o.key,initialMarkdown:o.markdown,onPersist:ae,onSaveStateChange:h,readOnly:!o.editable,ariaLabel:o.label?`${o.label} Markdown editor`:`Context file Markdown editor`})}):(0,L.jsxs)(`div`,{className:`empty-editor`,children:[(0,L.jsx)(zt,{size:20}),o?`The selected file is missing on disk.`:`Select or create a context file.`]}),o?.managed?(0,L.jsxs)(`div`,{className:`scope-controls`,children:[(0,L.jsx)(`h3`,{children:`Revision History`}),(0,L.jsxs)(`div`,{className:`file-list`,children:[(0,L.jsxs)(`div`,{className:`file-row`,children:[(0,L.jsx)(`input`,{value:u,onChange:e=>d(e.currentTarget.value),placeholder:`Version name`,"aria-label":`Version name`,maxLength:120}),(0,L.jsx)(`button`,{className:`primary-action`,type:`button`,disabled:S||!u.trim(),onClick:()=>void de(),children:`Save Version`})]}),c.length===0?(0,L.jsx)(`div`,{className:`empty`,children:`No manual versions saved yet.`}):c.map(e=>(0,L.jsxs)(`div`,{className:`file-row`,children:[(0,L.jsx)(`div`,{children:(0,L.jsx)(`strong`,{children:e.name})}),(0,L.jsx)(`time`,{dateTime:e.createdAt,children:e.createdAt}),(0,L.jsx)(`button`,{className:`primary-action`,type:`button`,disabled:S,onClick:()=>void fe(e.id),children:`Restore`})]},e.id))]})]}):null,o?.managed&&f?(0,L.jsxs)(`div`,{className:`scope-controls`,children:[(0,L.jsx)(`h3`,{children:`Diff`}),(0,L.jsx)(`div`,{className:`file-list`,children:f.chunks.map((e,t)=>(0,L.jsx)(`pre`,{className:`file-row`,children:e.lines.map(t=>`${e.type===`add`?`+`:e.type===`remove`?`-`:` `} ${t}`).join(`
|
|
202
|
-
`)},`${e.type}-${t}`))})]}):null]})]})}function c9({tone:e,text:t}){return(0,L.jsx)(`div`,{className:`status-banner status-banner--${e}`,children:t})}function l9(e){return e===`saving`?`Saving`:e===`saved`?`Saved`:e===`error`?`Error`:`Unsaved`}function u9(e){return e.source===`plugin`?`Plugin Global`:e.scope===`agent`?e.agentProfileName?`Agent ${e.agentProfileName}`:`Agent Local`:`Global`}function d9(e){return e===`plugin-only`?`Plugin Only`:e===`linked-clean`?`Linked Clean`:e===`linked-dirty`?`Linked Dirty`:e===`linked-stale`?`Linked Stale`:e===`orphaned`?`Orphaned`:`Managed Unlinked`}function f9(e){try{let t=JSON.parse(e.data);return t&&typeof t.type==`string`?t:void 0}catch{return}}function p9(e){return typeof e==`object`&&!!e&&`status`in e&&e.status===409&&`data`in e&&typeof e.data==`object`&&e.data?.file!==void 0}(0,Bt.createRoot)(document.getElementById(`root`)).render((0,L.jsx)(I.StrictMode,{children:(0,L.jsx)(s9,{})}));export{SW as a,xW as i,NZ as n,MG as o,TY as r,bQ as t};
|