@mastra/deployer-cloud 1.0.0-beta.22 → 1.0.0-beta.23
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/CHANGELOG.md +8 -0
- package/dist/studio/assets/{abap-y-8ImYjt.js → abap-B4utKeZN.js} +1 -1
- package/dist/studio/assets/{abnf-D-JGoAEM.js → abnf-CHBMOLe5.js} +1 -1
- package/dist/studio/assets/{actionscript-gZGm6tnN.js → actionscript-BeS5sKcs.js} +1 -1
- package/dist/studio/assets/{ada-CLECaETO.js → ada-CX8S56Tq.js} +1 -1
- package/dist/studio/assets/{agda-BSc-5Cim.js → agda-CHxv32ij.js} +1 -1
- package/dist/studio/assets/{al-CIxXqvLn.js → al-COD6Pi95.js} +1 -1
- package/dist/studio/assets/{antlr4-B26hRwES.js → antlr4-Dfo_wkmG.js} +1 -1
- package/dist/studio/assets/{apacheconf-B4yYa3EM.js → apacheconf-fa_MYonN.js} +1 -1
- package/dist/studio/assets/{apex-BOsBPpb3.js → apex-C98GozUp.js} +1 -1
- package/dist/studio/assets/{apl-B3HE4fJw.js → apl-CLNAdB0s.js} +1 -1
- package/dist/studio/assets/{applescript-BMwrOjSc.js → applescript-CpTypQdX.js} +1 -1
- package/dist/studio/assets/{aql-NHA99rjm.js → aql-BNDDMgxi.js} +1 -1
- package/dist/studio/assets/{arduino-By9WEwNm.js → arduino-BjZPbEvY.js} +1 -1
- package/dist/studio/assets/{arff-C3Od5fzD.js → arff-CKUQ6eUJ.js} +1 -1
- package/dist/studio/assets/{asciidoc-CHkt7aoP.js → asciidoc-BohKkEYP.js} +1 -1
- package/dist/studio/assets/{asm6502-D01doBIG.js → asm6502-BFvz1oQv.js} +1 -1
- package/dist/studio/assets/{asmatmel-BZWnJDVQ.js → asmatmel-P3oiezKI.js} +1 -1
- package/dist/studio/assets/{aspnet-BUaZpVW9.js → aspnet-C9-Y8eY3.js} +1 -1
- package/dist/studio/assets/{autohotkey-DF8k-wYg.js → autohotkey-Bb7DesMF.js} +1 -1
- package/dist/studio/assets/{autoit-CW66VRiU.js → autoit-BRUND8jf.js} +1 -1
- package/dist/studio/assets/{avisynth--n4NT_ZS.js → avisynth-BE1FROZ8.js} +1 -1
- package/dist/studio/assets/{avro-idl-CyMzzmuC.js → avro-idl-BGJJq0mG.js} +1 -1
- package/dist/studio/assets/{bash-2ves6XUP.js → bash-Xfq1WUcj.js} +1 -1
- package/dist/studio/assets/{basic-5rgk9rvl.js → basic-CwxAqBQt.js} +1 -1
- package/dist/studio/assets/{batch-pwJt9_l2.js → batch-Cd0GXFBC.js} +1 -1
- package/dist/studio/assets/{bbcode-BhiViXHg.js → bbcode-VosN1oI3.js} +1 -1
- package/dist/studio/assets/{bicep-DxiEjUHi.js → bicep-Bsgnxhdm.js} +1 -1
- package/dist/studio/assets/{birb-BcPez0r2.js → birb-BmHfgdke.js} +1 -1
- package/dist/studio/assets/{bison-BLnkwE9N.js → bison-C4uvVnx7.js} +1 -1
- package/dist/studio/assets/{bnf-GwCLc994.js → bnf-BLKF2URR.js} +1 -1
- package/dist/studio/assets/{brainfuck-CW6f1Sgk.js → brainfuck-CgYsxCpj.js} +1 -1
- package/dist/studio/assets/{brightscript-wAmgELD8.js → brightscript-vgR7d60b.js} +1 -1
- package/dist/studio/assets/{bro-BjtLtqIE.js → bro-C0S35xPL.js} +1 -1
- package/dist/studio/assets/{bsl-BBdNqQIj.js → bsl-CXaAUWvp.js} +1 -1
- package/dist/studio/assets/{c-Bwyo0bV8.js → c-DTjiY7iT.js} +1 -1
- package/dist/studio/assets/{cfscript-CJjViRT0.js → cfscript-CtBxJrtV.js} +1 -1
- package/dist/studio/assets/{chaiscript-CC8YxZA9.js → chaiscript-DnCZz1fN.js} +1 -1
- package/dist/studio/assets/{chunk-55VPMN3N-C6D-FCqV-DthKqnhT.js → chunk-55VPMN3N-C6D-FCqV-DpzfIqmN.js} +1 -1
- package/dist/studio/assets/{chunk-55VPMN3N-CHOuKr8m.js → chunk-55VPMN3N-CE0ex8RR.js} +1 -1
- package/dist/studio/assets/{cil-CUkA7GSk.js → cil-Bl_bE5_V.js} +1 -1
- package/dist/studio/assets/{clike-CNa1M6mG.js → clike-Bxu1ofuX.js} +1 -1
- package/dist/studio/assets/{clojure-B-UGQ70K.js → clojure-D885yR7N.js} +1 -1
- package/dist/studio/assets/{cmake-CvzB-hoU.js → cmake-BldYrf-U.js} +1 -1
- package/dist/studio/assets/{cobol-CaIQ2Aqy.js → cobol-B9Fvxq1t.js} +1 -1
- package/dist/studio/assets/{coffeescript-C59rJW9X.js → coffeescript-DCc-puce.js} +1 -1
- package/dist/studio/assets/{concurnas--J6y23eU.js → concurnas-BcsmozdF.js} +1 -1
- package/dist/studio/assets/{coq-DsKa_0E6.js → coq-nZ_tJmwN.js} +1 -1
- package/dist/studio/assets/{core-ChRNmOZr.js → core-COst5k2o.js} +1 -1
- package/dist/studio/assets/{cpp-k3_0Fban.js → cpp-DP28QsBf.js} +1 -1
- package/dist/studio/assets/{crystal-CDc74P5Y.js → crystal-D7fe-vg1.js} +1 -1
- package/dist/studio/assets/{csharp-CtktuRFB.js → csharp-CqqTy2qZ.js} +1 -1
- package/dist/studio/assets/{cshtml-CTHNjxV-.js → cshtml-Dh_AvBa7.js} +1 -1
- package/dist/studio/assets/{csp-Y4xH8wlS.js → csp-CiJU6-Zb.js} +1 -1
- package/dist/studio/assets/{css-D5DQ63e2.js → css-CR2gKa6b.js} +1 -1
- package/dist/studio/assets/{css-extras-Dp6SYWlw.js → css-extras-DE1aExbR.js} +1 -1
- package/dist/studio/assets/{csv-Ch4K6EC9.js → csv-Dcjca_4w.js} +1 -1
- package/dist/studio/assets/{cypher-CFMuVWiu.js → cypher-JptSC4cn.js} +1 -1
- package/dist/studio/assets/{d-gL5qISEH.js → d-DQrhbEXE.js} +1 -1
- package/dist/studio/assets/{dart-Cu56JbO4.js → dart-DEsgnZLp.js} +1 -1
- package/dist/studio/assets/{dataweave-CCYoeri5.js → dataweave-DeCwEHfg.js} +1 -1
- package/dist/studio/assets/{dax-c8f5mfym.js → dax-DWfJD2ba.js} +1 -1
- package/dist/studio/assets/{dhall-Bf9u9KV4.js → dhall-CebJ9cek.js} +1 -1
- package/dist/studio/assets/{diff-B_ASjdFR.js → diff-DnRzfLYw.js} +1 -1
- package/dist/studio/assets/{django-DWMmkyVv.js → django-D21kaDEA.js} +1 -1
- package/dist/studio/assets/{dns-zone-file-BIQ0tkGh.js → dns-zone-file-DxZFUaK9.js} +1 -1
- package/dist/studio/assets/{docker-BDuCgbM9.js → docker-BCKrg-H2.js} +1 -1
- package/dist/studio/assets/{dot-D03joFB3.js → dot-CLbpXig6.js} +1 -1
- package/dist/studio/assets/{ebnf-B5mqpyJg.js → ebnf-B33PAMyH.js} +1 -1
- package/dist/studio/assets/{editorconfig-BY1I1W3G.js → editorconfig-NiMAlzuI.js} +1 -1
- package/dist/studio/assets/{eiffel-BFcTRGl8.js → eiffel-BawfD_wF.js} +1 -1
- package/dist/studio/assets/{ejs-BHF5DtBJ.js → ejs-J0y5SHgc.js} +1 -1
- package/dist/studio/assets/{elixir-BaSxmyWK.js → elixir-DMrudcUa.js} +1 -1
- package/dist/studio/assets/{elm-BSWywdCW.js → elm-D__Mvmq3.js} +1 -1
- package/dist/studio/assets/{erb-xZXI1nf1.js → erb-BkU8bVfl.js} +1 -1
- package/dist/studio/assets/{erlang-BiX3rtUb.js → erlang-B4e8qJ_1.js} +1 -1
- package/dist/studio/assets/{etlua-BZ2nA5J-.js → etlua-4Oi6wyBM.js} +1 -1
- package/dist/studio/assets/{excel-formula-D1nIcQyt.js → excel-formula-CTjjy-Ht.js} +1 -1
- package/dist/studio/assets/{factor-DvCAgpak.js → factor-RAvg-Zyu.js} +1 -1
- package/dist/studio/assets/{false-DN8rcNu2.js → false-De65KeA5.js} +1 -1
- package/dist/studio/assets/{firestore-security-rules-jLVt2IsC.js → firestore-security-rules-D84NXCBz.js} +1 -1
- package/dist/studio/assets/{flow-C6Qfypir.js → flow-DgSNq8Kc.js} +1 -1
- package/dist/studio/assets/{fortran-UkV_iBOq.js → fortran-D5v4IQsH.js} +1 -1
- package/dist/studio/assets/{fsharp-4cWtXGa2.js → fsharp-skZBjmOD.js} +1 -1
- package/dist/studio/assets/{ftl-CM137AB-.js → ftl-DDfen3_J.js} +1 -1
- package/dist/studio/assets/{gap-CTUilook.js → gap-ChtK8xDo.js} +1 -1
- package/dist/studio/assets/{gcode-XhsrHqjW.js → gcode-CjegtVvV.js} +1 -1
- package/dist/studio/assets/{gdscript-Dh5v2f4B.js → gdscript-CoxKeSoy.js} +1 -1
- package/dist/studio/assets/{gedcom-BrF_vjSE.js → gedcom-U9D2U1AS.js} +1 -1
- package/dist/studio/assets/{gherkin-YxJMr9g3.js → gherkin-BiAE0Wn6.js} +1 -1
- package/dist/studio/assets/{git-BnZVJ5cm.js → git-toZ4npre.js} +1 -1
- package/dist/studio/assets/{glsl-BCHTNbxg.js → glsl-u06xQTm6.js} +1 -1
- package/dist/studio/assets/{gml-DEEYPBzT.js → gml-By44Ca3e.js} +1 -1
- package/dist/studio/assets/{gn-D62FUuZy.js → gn-B-0iFia9.js} +1 -1
- package/dist/studio/assets/{go-CCvMYMgT.js → go-SKb7j6EV.js} +1 -1
- package/dist/studio/assets/{go-module-B1ZYhDgK.js → go-module-CTbnoR5V.js} +1 -1
- package/dist/studio/assets/{graphql-B4D99BRF.js → graphql-BRgSUYQw.js} +1 -1
- package/dist/studio/assets/{groovy-ngDvYghR.js → groovy-CajhmGH7.js} +1 -1
- package/dist/studio/assets/{haml-DShsl3TQ.js → haml-BCKfzi5f.js} +1 -1
- package/dist/studio/assets/{handlebars-B-CfyJwi.js → handlebars-CsgMle6k.js} +1 -1
- package/dist/studio/assets/{haskell-CoNJbgzL.js → haskell-CmfutXG-.js} +1 -1
- package/dist/studio/assets/{haxe-BpQpMlpH.js → haxe-B2Qt99xl.js} +1 -1
- package/dist/studio/assets/{hcl-Cn2A-WYA.js → hcl-Cnuhe4sH.js} +1 -1
- package/dist/studio/assets/{hlsl-DXclGV78.js → hlsl-JAFINkFz.js} +1 -1
- package/dist/studio/assets/{hoon--VxpOQ3j.js → hoon-DB0BmeK4.js} +1 -1
- package/dist/studio/assets/{hpkp-CJ7114g_.js → hpkp-BEUyfI5Z.js} +1 -1
- package/dist/studio/assets/{hsts-BUzSi62G.js → hsts-GWJ_rKlo.js} +1 -1
- package/dist/studio/assets/{http-2GPrfOqL.js → http-QZ-HS9U_.js} +1 -1
- package/dist/studio/assets/{ichigojam-1uW54ydk.js → ichigojam-DqMpv1sl.js} +1 -1
- package/dist/studio/assets/{icon-IkxzinY1.js → icon-DeQO3BRp.js} +1 -1
- package/dist/studio/assets/{icu-message-format-DevAYLTZ.js → icu-message-format-Bm0TA4i-.js} +1 -1
- package/dist/studio/assets/{idris-CdhIQDLP.js → idris-CPOUHvfX.js} +1 -1
- package/dist/studio/assets/{iecst-C-Kjuhju.js → iecst-CAOL3amk.js} +1 -1
- package/dist/studio/assets/{ignore-CyXXKGcl.js → ignore-o57uXs7O.js} +1 -1
- package/dist/studio/assets/{index-3ylcPSeA.js → index-BGbdvLQM.js} +1 -1
- package/dist/studio/assets/{index-BEL-b_gA.js → index-BU0sifM3.js} +1 -1
- package/dist/studio/assets/{index-Zov34v2X.js → index-C1owqOak.js} +1 -1
- package/dist/studio/assets/{index-CxeRT-bC.js → index-C9PV0HKg.js} +1 -1
- package/dist/studio/assets/{index-B7AE8A8c.js → index-D3PY5bwl.js} +1 -1
- package/dist/studio/assets/{index-BvW0nC8B.js → index-DFLRvAOV.js} +1 -1
- package/dist/studio/assets/{index-BR61ZB6b.js → index-DNcZewIc.js} +1 -1
- package/dist/studio/assets/{index-CsxxpPST.js → index-DQdddF7W.js} +1 -1
- package/dist/studio/assets/{index-BlcAKisU.js → index-Da7v5bPM.js} +1 -1
- package/dist/studio/assets/{index-CCMabarK.js → index-DghduufX.js} +1 -1
- package/dist/studio/assets/{index-eYB1XCup.js → index-DhSYKJqM.js} +1 -1
- package/dist/studio/assets/{index-BDA9C1Vx.js → index-DhqtEarq.js} +1 -1
- package/dist/studio/assets/{index-By180EDo.js → index-Dpsx1QC7.js} +1 -1
- package/dist/studio/assets/{index-BZAJ5_9r.js → index-Ds7yBiGy.js} +1 -1
- package/dist/studio/assets/{index-BcVVzVId.js → index-IQaufVDf.js} +1 -1
- package/dist/studio/assets/{index-CxKwNP2P.js → index-JCSfWXom.js} +1 -1
- package/dist/studio/assets/{index-BTeuX5Lb.js → index-MYvqyHFC.js} +1 -1
- package/dist/studio/assets/{index-CkVao6FZ.js → index-lkDge679.js} +1 -1
- package/dist/studio/assets/{inform7-D6nPG9cR.js → inform7-qb4xR-Fs.js} +1 -1
- package/dist/studio/assets/{ini-D4v6_7-V.js → ini-ClbKYzpr.js} +1 -1
- package/dist/studio/assets/{io-DJR-Oh9T.js → io-gIpsqv3h.js} +1 -1
- package/dist/studio/assets/{j-rpsr1NQT.js → j-CWZ6MtR6.js} +1 -1
- package/dist/studio/assets/{java-CyIGmbMu.js → java-Dt7I9LEh.js} +1 -1
- package/dist/studio/assets/{javadoc-DNAYiZXn.js → javadoc-B-u1DW_a.js} +1 -1
- package/dist/studio/assets/{javadoclike-D7cZYfF8.js → javadoclike-D6bOoyOt.js} +1 -1
- package/dist/studio/assets/{javascript-D_NU1Kyk.js → javascript-D0sG_Ohj.js} +1 -1
- package/dist/studio/assets/{javastacktrace-DG9TtAzL.js → javastacktrace-Bg8dH-Up.js} +1 -1
- package/dist/studio/assets/{jexl-lQfd1Lkb.js → jexl-DcuWekp7.js} +1 -1
- package/dist/studio/assets/{jolie-DxM1GjRl.js → jolie-BRdDlhrR.js} +1 -1
- package/dist/studio/assets/{jq-CFzwdKlP.js → jq-DeXz_ltk.js} +1 -1
- package/dist/studio/assets/{js-extras-CRSWuHre.js → js-extras-DQAy-FUy.js} +1 -1
- package/dist/studio/assets/{js-templates-Bfc02CmR.js → js-templates-BMhjaRlX.js} +1 -1
- package/dist/studio/assets/{jsdoc-DuLX6v3Y.js → jsdoc-CIdLS_YW.js} +1 -1
- package/dist/studio/assets/{json-C0cQKN0F.js → json-Dg3GaZVD.js} +1 -1
- package/dist/studio/assets/{json5-Gchm5mlB.js → json5-CqRLmYN6.js} +1 -1
- package/dist/studio/assets/{jsonp-Z5ZbgHO4.js → jsonp-BSCByjeo.js} +1 -1
- package/dist/studio/assets/{jsstacktrace-CYye373e.js → jsstacktrace-BnMrNTVr.js} +1 -1
- package/dist/studio/assets/{jsx-DLeMJauk.js → jsx-Bw9l37V2.js} +1 -1
- package/dist/studio/assets/{julia-CmsXcL-N.js → julia-DNj9oUQC.js} +1 -1
- package/dist/studio/assets/{keepalived-nJ4sJvm6.js → keepalived-TepNOUNK.js} +1 -1
- package/dist/studio/assets/{keyman-C5Pj4IIJ.js → keyman-Bh1v_658.js} +1 -1
- package/dist/studio/assets/{kotlin-DpvRDZoA.js → kotlin-DCsuRlJx.js} +1 -1
- package/dist/studio/assets/{kumir-DWzkqk9L.js → kumir-WaOsgJ7a.js} +1 -1
- package/dist/studio/assets/{kusto-CNELoNQs.js → kusto-C_L_1Mmv.js} +1 -1
- package/dist/studio/assets/{latex-BX_TUh4t.js → latex-JgM-9Gu2.js} +1 -1
- package/dist/studio/assets/{latte-Dz70J0mX.js → latte-DJHODm7Y.js} +1 -1
- package/dist/studio/assets/{less-Dj9SkEn3.js → less-v4kMI3Lf.js} +1 -1
- package/dist/studio/assets/{lilypond-1zoZeACX.js → lilypond-DXTVwhll.js} +1 -1
- package/dist/studio/assets/{liquid-Bs9suIhM.js → liquid-B4cXqhVC.js} +1 -1
- package/dist/studio/assets/{lisp-B0tW-1Qt.js → lisp-Da01akxG.js} +1 -1
- package/dist/studio/assets/{livescript-CGVnLnRz.js → livescript-Bzi2hWBW.js} +1 -1
- package/dist/studio/assets/{llvm-BSuFX6sy.js → llvm-59kta1R-.js} +1 -1
- package/dist/studio/assets/{log-C37aUa02.js → log-BGppg3Dx.js} +1 -1
- package/dist/studio/assets/{lolcode-DeuK4uYH.js → lolcode-hwzIQIml.js} +1 -1
- package/dist/studio/assets/{lua-C5XODOCv.js → lua-D5jtIJlW.js} +1 -1
- package/dist/studio/assets/{magma-bJC2nzBZ.js → magma-BrCgOWyH.js} +1 -1
- package/dist/studio/assets/{main-BWrt59ut.js → main-CwCu3pdG.js} +8 -8
- package/dist/studio/assets/{makefile-DCqQREl2.js → makefile-74utt6mh.js} +1 -1
- package/dist/studio/assets/{markdown-CAdtP1Hl.js → markdown-CYm2V9zp.js} +1 -1
- package/dist/studio/assets/{markup-DKpfVDK2.js → markup-EbSvgVab.js} +1 -1
- package/dist/studio/assets/{markup-templating-BArSOTMR.js → markup-templating-DaAVpOLY.js} +1 -1
- package/dist/studio/assets/{matlab-Dbcp1Mz7.js → matlab-YiudmkWi.js} +1 -1
- package/dist/studio/assets/{maxscript-DO_Ksfb6.js → maxscript-DVkuy83-.js} +1 -1
- package/dist/studio/assets/{mel-aWmO1ZHT.js → mel-CjY1yICp.js} +1 -1
- package/dist/studio/assets/{mermaid-CjCuG-rO.js → mermaid-D1wW4irL.js} +1 -1
- package/dist/studio/assets/{mizar-B9qSArMV.js → mizar-2UDUhDwN.js} +1 -1
- package/dist/studio/assets/{mongodb-XBdRvIxb.js → mongodb-CI5sM3nc.js} +1 -1
- package/dist/studio/assets/{monkey-Cb9uR72S.js → monkey-DPUrPpEL.js} +1 -1
- package/dist/studio/assets/{moonscript-C6Ynu-yF.js → moonscript-Dk0Of86l.js} +1 -1
- package/dist/studio/assets/{n1ql-BXCsiWJ1.js → n1ql-DA9MK8wL.js} +1 -1
- package/dist/studio/assets/{n4js-DhJKzRKp.js → n4js-DS1s8Eyr.js} +1 -1
- package/dist/studio/assets/{nand2tetris-hdl-DRGRHozb.js → nand2tetris-hdl-C88XY4cY.js} +1 -1
- package/dist/studio/assets/{naniscript-CM-nqxJB.js → naniscript-D4kAldRC.js} +1 -1
- package/dist/studio/assets/{nasm-Bb4iFUVk.js → nasm-CPWaI9G9.js} +1 -1
- package/dist/studio/assets/{neon-Dsq4M0Z0.js → neon-LWyAB2f4.js} +1 -1
- package/dist/studio/assets/{nevod-FNDBVyO6.js → nevod-B26ug0Mp.js} +1 -1
- package/dist/studio/assets/{nginx-DOquvDwF.js → nginx-SzxFsSDw.js} +1 -1
- package/dist/studio/assets/{nim-CMHpkUbE.js → nim-Eb1dW3er.js} +1 -1
- package/dist/studio/assets/{nix-BP79qbN8.js → nix-C-8ntf5b.js} +1 -1
- package/dist/studio/assets/{nsis-BbF22jsS.js → nsis-Xxk13EtC.js} +1 -1
- package/dist/studio/assets/{objectivec-C8A_GSLo.js → objectivec-BUaEnvnI.js} +1 -1
- package/dist/studio/assets/{ocaml-C8XEXnm3.js → ocaml-BA2xlpF2.js} +1 -1
- package/dist/studio/assets/{opencl-Bwclr1-q.js → opencl-EmCSOQ0x.js} +1 -1
- package/dist/studio/assets/{openqasm-Dheq1YzS.js → openqasm-BzrlqF_g.js} +1 -1
- package/dist/studio/assets/{oz-GWLoiy_W.js → oz-CvnqIg8C.js} +1 -1
- package/dist/studio/assets/{parigp-Bx5pj1WM.js → parigp-B1jdXiS-.js} +1 -1
- package/dist/studio/assets/{parser-CKGbIv3K.js → parser-Dz9Rc5vn.js} +1 -1
- package/dist/studio/assets/{pascal-Bv0Mvdur.js → pascal-C5MeKfxe.js} +1 -1
- package/dist/studio/assets/{pascaligo-B2q2OC0f.js → pascaligo-CTpq62OS.js} +1 -1
- package/dist/studio/assets/{pcaxis-BYNEOzQC.js → pcaxis-AXEXkRZS.js} +1 -1
- package/dist/studio/assets/{peoplecode-DzESzOxV.js → peoplecode-BtMaikF4.js} +1 -1
- package/dist/studio/assets/{perl-xryVmbKA.js → perl-DVq7h9Qm.js} +1 -1
- package/dist/studio/assets/{php-B5zFi1JN.js → php-B7M2WypM.js} +1 -1
- package/dist/studio/assets/{php-extras-DTQFp4QA.js → php-extras-DyDO0oE6.js} +1 -1
- package/dist/studio/assets/{phpdoc-CLVGEAKP.js → phpdoc-D7_4-AJc.js} +1 -1
- package/dist/studio/assets/{plsql-nQvQRBBx.js → plsql-CYAt5gAw.js} +1 -1
- package/dist/studio/assets/{powerquery-BlIeoJBN.js → powerquery-CKCiUaQd.js} +1 -1
- package/dist/studio/assets/{powershell-DqepFzJz.js → powershell-D1d8ezv6.js} +1 -1
- package/dist/studio/assets/{processing-ekqm-wa9.js → processing-9zHwXBw1.js} +1 -1
- package/dist/studio/assets/{prolog-BYRpaQYx.js → prolog-CO0BCjYv.js} +1 -1
- package/dist/studio/assets/{promql-CTal6Yov.js → promql-4289INr2.js} +1 -1
- package/dist/studio/assets/{properties-Dfwdfq41.js → properties-BBnpt9VQ.js} +1 -1
- package/dist/studio/assets/{protobuf-2lyP8NY4.js → protobuf-vRZjebxq.js} +1 -1
- package/dist/studio/assets/{psl-rKbsnOQr.js → psl-SYgLfjFh.js} +1 -1
- package/dist/studio/assets/{pug-CP02H934.js → pug-GyJPxHb7.js} +1 -1
- package/dist/studio/assets/{puppet-B0dP6Ayh.js → puppet-BHhXINeu.js} +1 -1
- package/dist/studio/assets/{pure-TFDXcsWi.js → pure-DcLhYdAx.js} +1 -1
- package/dist/studio/assets/{purebasic-B9PegNm3.js → purebasic-Bqjy9Eus.js} +1 -1
- package/dist/studio/assets/{purescript-BzT_sySt.js → purescript-C3zghzD2.js} +1 -1
- package/dist/studio/assets/{python-rfqRhRfH.js → python-BAHlX1CE.js} +1 -1
- package/dist/studio/assets/{q-Bg79E83T.js → q-WJSuviKU.js} +1 -1
- package/dist/studio/assets/{qml-Di6SdEQm.js → qml-Cys9fF86.js} +1 -1
- package/dist/studio/assets/{qore-h1SlzARB.js → qore-CnbyuoB-.js} +1 -1
- package/dist/studio/assets/{qsharp-nOQyZ_Sp.js → qsharp-CdHzE9HQ.js} +1 -1
- package/dist/studio/assets/{r-Bc3FwOeA.js → r-B8hFUt0n.js} +1 -1
- package/dist/studio/assets/{racket-Drq4j1Xy.js → racket-DXkJu4YB.js} +1 -1
- package/dist/studio/assets/{reason-CUyqX66W.js → reason-CPs_1H3E.js} +1 -1
- package/dist/studio/assets/{regex-BvDcrCk9.js → regex-jjkTnuky.js} +1 -1
- package/dist/studio/assets/{rego-D-xolyUL.js → rego-DhJW_eIj.js} +1 -1
- package/dist/studio/assets/{renpy-C47pwzUH.js → renpy-PdbQy9CK.js} +1 -1
- package/dist/studio/assets/{rest-uzT-PmOc.js → rest-CaNWPj2b.js} +1 -1
- package/dist/studio/assets/{rip-DIfJV8jy.js → rip-Bhw-336n.js} +1 -1
- package/dist/studio/assets/{roboconf-BATyA3GQ.js → roboconf-CYmGXviF.js} +1 -1
- package/dist/studio/assets/{robotframework-CDeie-TI.js → robotframework-DMSP8UCo.js} +1 -1
- package/dist/studio/assets/{ruby-DkrNYOiX.js → ruby-Bp5S4Sb5.js} +1 -1
- package/dist/studio/assets/{rust-drVGG_9d.js → rust-CL0lelyf.js} +1 -1
- package/dist/studio/assets/{sas-DOiau82I.js → sas-DIeNQmET.js} +1 -1
- package/dist/studio/assets/{sass-B2y3_XLY.js → sass-UxEFvi8r.js} +1 -1
- package/dist/studio/assets/{scala-ho3qoh4X.js → scala-LqUyXRZv.js} +1 -1
- package/dist/studio/assets/{scheme-7ciw-HnV.js → scheme-D3ufZ3DO.js} +1 -1
- package/dist/studio/assets/{scss-pWS_fuF-.js → scss-Ffmvj_PI.js} +1 -1
- package/dist/studio/assets/{shell-session-CgJSBarC.js → shell-session-Dr9tuVPL.js} +1 -1
- package/dist/studio/assets/{smali-BDVe0_mg.js → smali-BYn-Jvt1.js} +1 -1
- package/dist/studio/assets/{smalltalk-msO8YMwZ.js → smalltalk-CBKjtigp.js} +1 -1
- package/dist/studio/assets/{smarty-BbRSF6YR.js → smarty-DlxCRZso.js} +1 -1
- package/dist/studio/assets/{sml-CdynI_ti.js → sml-G1U29o_k.js} +1 -1
- package/dist/studio/assets/{solidity-R1ZFg6dl.js → solidity-Wd4yBZMS.js} +1 -1
- package/dist/studio/assets/{solution-file-Bxf_0jQ9.js → solution-file-Cxf8cX_T.js} +1 -1
- package/dist/studio/assets/{soy-236XFjnx.js → soy-D0u4FwpF.js} +1 -1
- package/dist/studio/assets/{sparql-Dd9LET0z.js → sparql-Er6DMZei.js} +1 -1
- package/dist/studio/assets/{splunk-spl-CxoVenxM.js → splunk-spl-Deh-9EVG.js} +1 -1
- package/dist/studio/assets/{sqf-JyexFgRc.js → sqf-CqumexR_.js} +1 -1
- package/dist/studio/assets/{sql-B7zZIgUj.js → sql-D9VQm_cU.js} +1 -1
- package/dist/studio/assets/{squirrel-M1prubG8.js → squirrel-LHN35ZEf.js} +1 -1
- package/dist/studio/assets/{stan-Cx9BwNXx.js → stan-BgqohLvg.js} +1 -1
- package/dist/studio/assets/{stylus-CsDiSCDH.js → stylus-wxvepQY2.js} +1 -1
- package/dist/studio/assets/{swift-c4-D4LN8.js → swift-DgDNNSna.js} +1 -1
- package/dist/studio/assets/{systemd-BPfErfPd.js → systemd-C75pK1N8.js} +1 -1
- package/dist/studio/assets/{t4-cs-Dmdb1ptn.js → t4-cs-DiP71OxA.js} +1 -1
- package/dist/studio/assets/{t4-templating-18KDs2s6.js → t4-templating-Cbt8qd6E.js} +1 -1
- package/dist/studio/assets/{t4-vb-Cj_ty2Bq.js → t4-vb-CmZbmSEF.js} +1 -1
- package/dist/studio/assets/{tap-CgQPhjrO.js → tap-BNVGfvB-.js} +1 -1
- package/dist/studio/assets/{tcl-jz5V4l46.js → tcl-_lY2-BMp.js} +1 -1
- package/dist/studio/assets/{textile-aAu3Nopk.js → textile-B2LfbKPq.js} +1 -1
- package/dist/studio/assets/{token-6GSAFR2W-SPYPLMBM-BeIpRVyM-l2VMiUfh.js → token-6GSAFR2W-SPYPLMBM-BeIpRVyM-CtQjpQT4.js} +1 -1
- package/dist/studio/assets/{token-6GSAFR2W-SPYPLMBM-CRQGKrUz.js → token-6GSAFR2W-SPYPLMBM-ykq54GDP.js} +1 -1
- package/dist/studio/assets/token-util-NEHG7TUY-JRJTGTAB-7lMdCBB2.js +1 -0
- package/dist/studio/assets/token-util-NEHG7TUY-JRJTGTAB-N8sYk0L_-DsQWNtNi.js +1 -0
- package/dist/studio/assets/{toml-ERxQOHP_.js → toml-BHZKvLBY.js} +1 -1
- package/dist/studio/assets/{tremor-CPScYQMQ.js → tremor-CfuUrG84.js} +1 -1
- package/dist/studio/assets/{tsx-DJ9ZJ5Vn.js → tsx-DdQm2BWK.js} +1 -1
- package/dist/studio/assets/{tt2-DBiuDt9b.js → tt2-Ow17HAHq.js} +1 -1
- package/dist/studio/assets/{turtle-BZJq147J.js → turtle-CcA2wOxF.js} +1 -1
- package/dist/studio/assets/{twig-D9NUKKRr.js → twig-Dm1E7WCn.js} +1 -1
- package/dist/studio/assets/{typescript-ChowMqhi.js → typescript-CKH70J6v.js} +1 -1
- package/dist/studio/assets/{typoscript-DbNdYYfz.js → typoscript-D8UlxPYB.js} +1 -1
- package/dist/studio/assets/{unrealscript-CTDgRg5K.js → unrealscript-DXgw-6kT.js} +1 -1
- package/dist/studio/assets/{uorazor-BPxNIHOv.js → uorazor-BWLHs4Kp.js} +1 -1
- package/dist/studio/assets/{uri-D-J0jc7x.js → uri-BksKTrOl.js} +1 -1
- package/dist/studio/assets/{v-CWKZhyYe.js → v-LX5wtmHF.js} +1 -1
- package/dist/studio/assets/{vala-Bl_fbgFX.js → vala-BY3LK85L.js} +1 -1
- package/dist/studio/assets/{vbnet-BSAbvEo2.js → vbnet-k2UpKhQV.js} +1 -1
- package/dist/studio/assets/{velocity-BfAQLXen.js → velocity-CsKMHo-i.js} +1 -1
- package/dist/studio/assets/{verilog-hKkJRXq3.js → verilog-F6tb7Sjb.js} +1 -1
- package/dist/studio/assets/{vhdl-DJ69D5nO.js → vhdl-Bk4Ye3Jw.js} +1 -1
- package/dist/studio/assets/{vim-4Wvkf4Y_.js → vim-DyqicWlG.js} +1 -1
- package/dist/studio/assets/{visual-basic-CrOjjN8g.js → visual-basic-DN5wSXPq.js} +1 -1
- package/dist/studio/assets/{warpscript-BKzgrhyC.js → warpscript-Bjphaung.js} +1 -1
- package/dist/studio/assets/{wasm-Cxt9vdd4.js → wasm-CAWD3Zrv.js} +1 -1
- package/dist/studio/assets/{web-idl-t1AVyAT2.js → web-idl-Y1jRjioD.js} +1 -1
- package/dist/studio/assets/{wiki-Bev3kc4u.js → wiki-DQ2Z3uFS.js} +1 -1
- package/dist/studio/assets/{wolfram-DsVRp6LK.js → wolfram-0mySoVDJ.js} +1 -1
- package/dist/studio/assets/{wren-CNnCDr6o.js → wren-BxO6Z5RO.js} +1 -1
- package/dist/studio/assets/{xeora-CMBpCcty.js → xeora-DxQbZgMF.js} +1 -1
- package/dist/studio/assets/{xml-doc-DWVVMoo3.js → xml-doc-D1QYrgi-.js} +1 -1
- package/dist/studio/assets/{xojo-BbRsPyCL.js → xojo-0y0N-2U9.js} +1 -1
- package/dist/studio/assets/{xquery-Bl0aJ2u7.js → xquery-nB6YE7Vb.js} +1 -1
- package/dist/studio/assets/{yaml-DxEpisQp.js → yaml-CX68Oi3o.js} +1 -1
- package/dist/studio/assets/{yang-COJ3YcNh.js → yang-CpNWmxDi.js} +1 -1
- package/dist/studio/assets/{zig-MoXVJ0ax.js → zig-ByT44zf2.js} +1 -1
- package/dist/studio/index.html +1 -1
- package/package.json +4 -4
- package/dist/studio/assets/token-util-NEHG7TUY-JRJTGTAB-DXHBOKC_.js +0 -1
- package/dist/studio/assets/token-util-NEHG7TUY-JRJTGTAB-N8sYk0L_-CDuvMfUE.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./apex-
|
|
2
|
-
import{_ as G}from"./index-Zov34v2X.js";function dXe(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const i in n)if(i!=="default"&&!(i in e)){const s=Object.getOwnPropertyDescriptor(n,i);s&&Object.defineProperty(e,i,s.get?s:{enumerable:!0,get:()=>n[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var bRr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Qh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var fj={exports:{}},pO={};var xse;function fXe(){if(xse)return pO;xse=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,i,s){var o=null;if(s!==void 0&&(o=""+s),i.key!==void 0&&(o=""+i.key),"key"in i){s={};for(var a in i)a!=="key"&&(s[a]=i[a])}else s=i;return i=s.ref,{$$typeof:e,type:n,key:o,ref:i!==void 0?i:null,props:s}}return pO.Fragment=t,pO.jsx=r,pO.jsxs=r,pO}var wse;function pXe(){return wse||(wse=1,fj.exports=fXe()),fj.exports}var p=pXe(),pj={exports:{}},yr={},Sse;function hXe(){if(Sse)return yr;Sse=1;var e={env:{}};var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),f=Symbol.for("react.activity"),m=Symbol.iterator;function g(q){return q===null||typeof q!="object"?null:(q=m&&q[m]||q["@@iterator"],typeof q=="function"?q:null)}var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,w={};function S(q,j,W){this.props=q,this.context=j,this.refs=w,this.updater=W||v}S.prototype.isReactComponent={},S.prototype.setState=function(q,j){if(typeof q!="object"&&typeof q!="function"&&q!=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,q,j,"setState")},S.prototype.forceUpdate=function(q){this.updater.enqueueForceUpdate(this,q,"forceUpdate")};function O(){}O.prototype=S.prototype;function k(q,j,W){this.props=q,this.context=j,this.refs=w,this.updater=W||v}var C=k.prototype=new O;C.constructor=k,b(C,S.prototype),C.isPureReactComponent=!0;var T=Array.isArray;function P(){}var A={H:null,A:null,T:null,S:null},R=Object.prototype.hasOwnProperty;function M(q,j,W){var K=W.ref;return{$$typeof:t,type:q,key:j,ref:K!==void 0?K:null,props:W}}function z(q,j){return M(q.type,j,q.props)}function U(q){return typeof q=="object"&&q!==null&&q.$$typeof===t}function V(q){var j={"=":"=0",":":"=2"};return"$"+q.replace(/[=:]/g,function(W){return j[W]})}var L=/\/+/g;function Q(q,j){return typeof q=="object"&&q!==null&&q.key!=null?V(""+q.key):j.toString(36)}function F(q){switch(q.status){case"fulfilled":return q.value;case"rejected":throw q.reason;default:switch(typeof q.status=="string"?q.then(P,P):(q.status="pending",q.then(function(j){q.status==="pending"&&(q.status="fulfilled",q.value=j)},function(j){q.status==="pending"&&(q.status="rejected",q.reason=j)})),q.status){case"fulfilled":return q.value;case"rejected":throw q.reason}}throw q}function N(q,j,W,K,ne){var X=typeof q;(X==="undefined"||X==="boolean")&&(q=null);var te=!1;if(q===null)te=!0;else switch(X){case"bigint":case"string":case"number":te=!0;break;case"object":switch(q.$$typeof){case t:case r:te=!0;break;case d:return te=q._init,N(te(q._payload),j,W,K,ne)}}if(te)return ne=ne(q),te=K===""?"."+Q(q,0):K,T(ne)?(W="",te!=null&&(W=te.replace(L,"$&/")+"/"),N(ne,j,W,"",function(De){return De})):ne!=null&&(U(ne)&&(ne=z(ne,W+(ne.key==null||q&&q.key===ne.key?"":(""+ne.key).replace(L,"$&/")+"/")+te)),j.push(ne)),1;te=0;var ue=K===""?".":K+":";if(T(q))for(var de=0;de<q.length;de++)K=q[de],X=ue+Q(K,de),te+=N(K,j,W,X,ne);else if(de=g(q),typeof de=="function")for(q=de.call(q),de=0;!(K=q.next()).done;)K=K.value,X=ue+Q(K,de++),te+=N(K,j,W,X,ne);else if(X==="object"){if(typeof q.then=="function")return N(F(q),j,W,K,ne);throw j=String(q),Error("Objects are not valid as a React child (found: "+(j==="[object Object]"?"object with keys {"+Object.keys(q).join(", ")+"}":j)+"). If you meant to render a collection of children, use an array instead.")}return te}function I(q,j,W){if(q==null)return q;var K=[],ne=0;return N(q,K,"","",function(X){return j.call(W,X,ne++)}),K}function H(q){if(q._status===-1){var j=q._result;j=j(),j.then(function(W){(q._status===0||q._status===-1)&&(q._status=1,q._result=W)},function(W){(q._status===0||q._status===-1)&&(q._status=2,q._result=W)}),q._status===-1&&(q._status=0,q._result=j)}if(q._status===1)return q._result.default;throw q._result}var B=typeof reportError=="function"?reportError:function(q){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var j=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof q=="object"&&q!==null&&typeof q.message=="string"?String(q.message):String(q),error:q});if(!window.dispatchEvent(j))return}else if(typeof e=="object"&&typeof e.emit=="function"){e.emit("uncaughtException",q);return}console.error(q)},J={map:I,forEach:function(q,j,W){I(q,function(){j.apply(this,arguments)},W)},count:function(q){var j=0;return I(q,function(){j++}),j},toArray:function(q){return I(q,function(j){return j})||[]},only:function(q){if(!U(q))throw Error("React.Children.only expected to receive a single React element child.");return q}};return yr.Activity=f,yr.Children=J,yr.Component=S,yr.Fragment=n,yr.Profiler=s,yr.PureComponent=k,yr.StrictMode=i,yr.Suspense=c,yr.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=A,yr.__COMPILER_RUNTIME={__proto__:null,c:function(q){return A.H.useMemoCache(q)}},yr.cache=function(q){return function(){return q.apply(null,arguments)}},yr.cacheSignal=function(){return null},yr.cloneElement=function(q,j,W){if(q==null)throw Error("The argument must be a React element, but you passed "+q+".");var K=b({},q.props),ne=q.key;if(j!=null)for(X in j.key!==void 0&&(ne=""+j.key),j)!R.call(j,X)||X==="key"||X==="__self"||X==="__source"||X==="ref"&&j.ref===void 0||(K[X]=j[X]);var X=arguments.length-2;if(X===1)K.children=W;else if(1<X){for(var te=Array(X),ue=0;ue<X;ue++)te[ue]=arguments[ue+2];K.children=te}return M(q.type,ne,K)},yr.createContext=function(q){return q={$$typeof:a,_currentValue:q,_currentValue2:q,_threadCount:0,Provider:null,Consumer:null},q.Provider=q,q.Consumer={$$typeof:o,_context:q},q},yr.createElement=function(q,j,W){var K,ne={},X=null;if(j!=null)for(K in j.key!==void 0&&(X=""+j.key),j)R.call(j,K)&&K!=="key"&&K!=="__self"&&K!=="__source"&&(ne[K]=j[K]);var te=arguments.length-2;if(te===1)ne.children=W;else if(1<te){for(var ue=Array(te),de=0;de<te;de++)ue[de]=arguments[de+2];ne.children=ue}if(q&&q.defaultProps)for(K in te=q.defaultProps,te)ne[K]===void 0&&(ne[K]=te[K]);return M(q,X,ne)},yr.createRef=function(){return{current:null}},yr.forwardRef=function(q){return{$$typeof:l,render:q}},yr.isValidElement=U,yr.lazy=function(q){return{$$typeof:d,_payload:{_status:-1,_result:q},_init:H}},yr.memo=function(q,j){return{$$typeof:u,type:q,compare:j===void 0?null:j}},yr.startTransition=function(q){var j=A.T,W={};A.T=W;try{var K=q(),ne=A.S;ne!==null&&ne(W,K),typeof K=="object"&&K!==null&&typeof K.then=="function"&&K.then(P,B)}catch(X){B(X)}finally{j!==null&&W.types!==null&&(j.types=W.types),A.T=j}},yr.unstable_useCacheRefresh=function(){return A.H.useCacheRefresh()},yr.use=function(q){return A.H.use(q)},yr.useActionState=function(q,j,W){return A.H.useActionState(q,j,W)},yr.useCallback=function(q,j){return A.H.useCallback(q,j)},yr.useContext=function(q){return A.H.useContext(q)},yr.useDebugValue=function(){},yr.useDeferredValue=function(q,j){return A.H.useDeferredValue(q,j)},yr.useEffect=function(q,j){return A.H.useEffect(q,j)},yr.useEffectEvent=function(q){return A.H.useEffectEvent(q)},yr.useId=function(){return A.H.useId()},yr.useImperativeHandle=function(q,j,W){return A.H.useImperativeHandle(q,j,W)},yr.useInsertionEffect=function(q,j){return A.H.useInsertionEffect(q,j)},yr.useLayoutEffect=function(q,j){return A.H.useLayoutEffect(q,j)},yr.useMemo=function(q,j){return A.H.useMemo(q,j)},yr.useOptimistic=function(q,j){return A.H.useOptimistic(q,j)},yr.useReducer=function(q,j,W){return A.H.useReducer(q,j,W)},yr.useRef=function(q){return A.H.useRef(q)},yr.useState=function(q){return A.H.useState(q)},yr.useSyncExternalStore=function(q,j,W){return A.H.useSyncExternalStore(q,j,W)},yr.useTransition=function(){return A.H.useTransition()},yr.version="19.2.3",yr}var Ose;function Sw(){return Ose||(Ose=1,pj.exports=hXe()),pj.exports}var E=Sw();const me=Qh(E),Cq=dXe({__proto__:null,default:me},[E]);var hj={exports:{}},hO={},mj={exports:{}},gj={};var _se;function mXe(){return _se||(_se=1,(function(e){function t(F,N){var I=F.length;F.push(N);e:for(;0<I;){var H=I-1>>>1,B=F[H];if(0<i(B,N))F[H]=N,F[I]=B,I=H;else break e}}function r(F){return F.length===0?null:F[0]}function n(F){if(F.length===0)return null;var N=F[0],I=F.pop();if(I!==N){F[0]=I;e:for(var H=0,B=F.length,J=B>>>1;H<J;){var q=2*(H+1)-1,j=F[q],W=q+1,K=F[W];if(0>i(j,I))W<B&&0>i(K,j)?(F[H]=K,F[W]=I,H=W):(F[H]=j,F[q]=I,H=q);else if(W<B&&0>i(K,I))F[H]=K,F[W]=I,H=W;else break e}}return N}function i(F,N){var I=F.sortIndex-N.sortIndex;return I!==0?I:F.id-N.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var l=[],c=[],u=1,d=null,f=3,m=!1,g=!1,v=!1,b=!1,w=typeof setTimeout=="function"?setTimeout:null,S=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;function k(F){for(var N=r(c);N!==null;){if(N.callback===null)n(c);else if(N.startTime<=F)n(c),N.sortIndex=N.expirationTime,t(l,N);else break;N=r(c)}}function C(F){if(v=!1,k(F),!g)if(r(l)!==null)g=!0,T||(T=!0,U());else{var N=r(c);N!==null&&Q(C,N.startTime-F)}}var T=!1,P=-1,A=5,R=-1;function M(){return b?!0:!(e.unstable_now()-R<A)}function z(){if(b=!1,T){var F=e.unstable_now();R=F;var N=!0;try{e:{g=!1,v&&(v=!1,S(P),P=-1),m=!0;var I=f;try{t:{for(k(F),d=r(l);d!==null&&!(d.expirationTime>F&&M());){var H=d.callback;if(typeof H=="function"){d.callback=null,f=d.priorityLevel;var B=H(d.expirationTime<=F);if(F=e.unstable_now(),typeof B=="function"){d.callback=B,k(F),N=!0;break t}d===r(l)&&n(l),k(F)}else n(l);d=r(l)}if(d!==null)N=!0;else{var J=r(c);J!==null&&Q(C,J.startTime-F),N=!1}}break e}finally{d=null,f=I,m=!1}N=void 0}}finally{N?U():T=!1}}}var U;if(typeof O=="function")U=function(){O(z)};else if(typeof MessageChannel<"u"){var V=new MessageChannel,L=V.port2;V.port1.onmessage=z,U=function(){L.postMessage(null)}}else U=function(){w(z,0)};function Q(F,N){P=w(function(){F(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(F){F.callback=null},e.unstable_forceFrameRate=function(F){0>F||125<F?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A=0<F?Math.floor(1e3/F):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(F){switch(f){case 1:case 2:case 3:var N=3;break;default:N=f}var I=f;f=N;try{return F()}finally{f=I}},e.unstable_requestPaint=function(){b=!0},e.unstable_runWithPriority=function(F,N){switch(F){case 1:case 2:case 3:case 4:case 5:break;default:F=3}var I=f;f=F;try{return N()}finally{f=I}},e.unstable_scheduleCallback=function(F,N,I){var H=e.unstable_now();switch(typeof I=="object"&&I!==null?(I=I.delay,I=typeof I=="number"&&0<I?H+I:H):I=H,F){case 1:var B=-1;break;case 2:B=250;break;case 5:B=1073741823;break;case 4:B=1e4;break;default:B=5e3}return B=I+B,F={id:u++,callback:N,priorityLevel:F,startTime:I,expirationTime:B,sortIndex:-1},I>H?(F.sortIndex=I,t(c,F),r(l)===null&&F===r(c)&&(v?(S(P),P=-1):v=!0,Q(C,I-H))):(F.sortIndex=B,t(l,F),g||m||(g=!0,T||(T=!0,U()))),F},e.unstable_shouldYield=M,e.unstable_wrapCallback=function(F){var N=f;return function(){var I=f;f=N;try{return F.apply(this,arguments)}finally{f=I}}}})(gj)),gj}var kse;function gXe(){return kse||(kse=1,mj.exports=mXe()),mj.exports}var yj={exports:{}},Fo={};var Ese;function yXe(){if(Ese)return Fo;Ese=1;var e=Sw();function t(l){var c="https://react.dev/errors/"+l;if(1<arguments.length){c+="?args[]="+encodeURIComponent(arguments[1]);for(var u=2;u<arguments.length;u++)c+="&args[]="+encodeURIComponent(arguments[u])}return"Minified React error #"+l+"; visit "+c+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var n={d:{f:r,r:function(){throw Error(t(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},i=Symbol.for("react.portal");function s(l,c,u){var d=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:i,key:d==null?null:""+d,children:l,containerInfo:c,implementation:u}}var o=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function a(l,c){if(l==="font")return"";if(typeof c=="string")return c==="use-credentials"?c:""}return Fo.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=n,Fo.createPortal=function(l,c){var u=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!c||c.nodeType!==1&&c.nodeType!==9&&c.nodeType!==11)throw Error(t(299));return s(l,c,null,u)},Fo.flushSync=function(l){var c=o.T,u=n.p;try{if(o.T=null,n.p=2,l)return l()}finally{o.T=c,n.p=u,n.d.f()}},Fo.preconnect=function(l,c){typeof l=="string"&&(c?(c=c.crossOrigin,c=typeof c=="string"?c==="use-credentials"?c:"":void 0):c=null,n.d.C(l,c))},Fo.prefetchDNS=function(l){typeof l=="string"&&n.d.D(l)},Fo.preinit=function(l,c){if(typeof l=="string"&&c&&typeof c.as=="string"){var u=c.as,d=a(u,c.crossOrigin),f=typeof c.integrity=="string"?c.integrity:void 0,m=typeof c.fetchPriority=="string"?c.fetchPriority:void 0;u==="style"?n.d.S(l,typeof c.precedence=="string"?c.precedence:void 0,{crossOrigin:d,integrity:f,fetchPriority:m}):u==="script"&&n.d.X(l,{crossOrigin:d,integrity:f,fetchPriority:m,nonce:typeof c.nonce=="string"?c.nonce:void 0})}},Fo.preinitModule=function(l,c){if(typeof l=="string")if(typeof c=="object"&&c!==null){if(c.as==null||c.as==="script"){var u=a(c.as,c.crossOrigin);n.d.M(l,{crossOrigin:u,integrity:typeof c.integrity=="string"?c.integrity:void 0,nonce:typeof c.nonce=="string"?c.nonce:void 0})}}else c==null&&n.d.M(l)},Fo.preload=function(l,c){if(typeof l=="string"&&typeof c=="object"&&c!==null&&typeof c.as=="string"){var u=c.as,d=a(u,c.crossOrigin);n.d.L(l,u,{crossOrigin:d,integrity:typeof c.integrity=="string"?c.integrity:void 0,nonce:typeof c.nonce=="string"?c.nonce:void 0,type:typeof c.type=="string"?c.type:void 0,fetchPriority:typeof c.fetchPriority=="string"?c.fetchPriority:void 0,referrerPolicy:typeof c.referrerPolicy=="string"?c.referrerPolicy:void 0,imageSrcSet:typeof c.imageSrcSet=="string"?c.imageSrcSet:void 0,imageSizes:typeof c.imageSizes=="string"?c.imageSizes:void 0,media:typeof c.media=="string"?c.media:void 0})}},Fo.preloadModule=function(l,c){if(typeof l=="string")if(c){var u=a(c.as,c.crossOrigin);n.d.m(l,{as:typeof c.as=="string"&&c.as!=="script"?c.as:void 0,crossOrigin:u,integrity:typeof c.integrity=="string"?c.integrity:void 0})}else n.d.m(l)},Fo.requestFormReset=function(l){n.d.r(l)},Fo.unstable_batchedUpdates=function(l,c){return l(c)},Fo.useFormState=function(l,c,u){return o.H.useFormState(l,c,u)},Fo.useFormStatus=function(){return o.H.useHostTransitionStatus()},Fo.version="19.2.3",Fo}var Cse;function L1e(){if(Cse)return yj.exports;Cse=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),yj.exports=yXe(),yj.exports}var Tse;function vXe(){if(Tse)return hO;Tse=1;var e={env:{}};var t=gXe(),r=Sw(),n=L1e();function i(h){var y="https://react.dev/errors/"+h;if(1<arguments.length){y+="?args[]="+encodeURIComponent(arguments[1]);for(var x=2;x<arguments.length;x++)y+="&args[]="+encodeURIComponent(arguments[x])}return"Minified React error #"+h+"; visit "+y+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(h){return!(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)}function o(h){var y=h,x=h;if(h.alternate)for(;y.return;)y=y.return;else{h=y;do y=h,(y.flags&4098)!==0&&(x=y.return),h=y.return;while(h)}return y.tag===3?x:null}function a(h){if(h.tag===13){var y=h.memoizedState;if(y===null&&(h=h.alternate,h!==null&&(y=h.memoizedState)),y!==null)return y.dehydrated}return null}function l(h){if(h.tag===31){var y=h.memoizedState;if(y===null&&(h=h.alternate,h!==null&&(y=h.memoizedState)),y!==null)return y.dehydrated}return null}function c(h){if(o(h)!==h)throw Error(i(188))}function u(h){var y=h.alternate;if(!y){if(y=o(h),y===null)throw Error(i(188));return y!==h?null:h}for(var x=h,_=y;;){var D=x.return;if(D===null)break;var $=D.alternate;if($===null){if(_=D.return,_!==null){x=_;continue}break}if(D.child===$.child){for($=D.child;$;){if($===x)return c(D),h;if($===_)return c(D),y;$=$.sibling}throw Error(i(188))}if(x.return!==_.return)x=D,_=$;else{for(var Z=!1,ee=D.child;ee;){if(ee===x){Z=!0,x=D,_=$;break}if(ee===_){Z=!0,_=D,x=$;break}ee=ee.sibling}if(!Z){for(ee=$.child;ee;){if(ee===x){Z=!0,x=$,_=D;break}if(ee===_){Z=!0,_=$,x=D;break}ee=ee.sibling}if(!Z)throw Error(i(189))}}if(x.alternate!==_)throw Error(i(190))}if(x.tag!==3)throw Error(i(188));return x.stateNode.current===x?h:y}function d(h){var y=h.tag;if(y===5||y===26||y===27||y===6)return h;for(h=h.child;h!==null;){if(y=d(h),y!==null)return y;h=h.sibling}return null}var f=Object.assign,m=Symbol.for("react.element"),g=Symbol.for("react.transitional.element"),v=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),O=Symbol.for("react.consumer"),k=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),A=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),M=Symbol.for("react.activity"),z=Symbol.for("react.memo_cache_sentinel"),U=Symbol.iterator;function V(h){return h===null||typeof h!="object"?null:(h=U&&h[U]||h["@@iterator"],typeof h=="function"?h:null)}var L=Symbol.for("react.client.reference");function Q(h){if(h==null)return null;if(typeof h=="function")return h.$$typeof===L?null:h.displayName||h.name||null;if(typeof h=="string")return h;switch(h){case b:return"Fragment";case S:return"Profiler";case w:return"StrictMode";case T:return"Suspense";case P:return"SuspenseList";case M:return"Activity"}if(typeof h=="object")switch(h.$$typeof){case v:return"Portal";case k:return h.displayName||"Context";case O:return(h._context.displayName||"Context")+".Consumer";case C:var y=h.render;return h=h.displayName,h||(h=y.displayName||y.name||"",h=h!==""?"ForwardRef("+h+")":"ForwardRef"),h;case A:return y=h.displayName||null,y!==null?y:Q(h.type)||"Memo";case R:y=h._payload,h=h._init;try{return Q(h(y))}catch{}}return null}var F=Array.isArray,N=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,H={pending:!1,data:null,method:null,action:null},B=[],J=-1;function q(h){return{current:h}}function j(h){0>J||(h.current=B[J],B[J]=null,J--)}function W(h,y){J++,B[J]=h.current,h.current=y}var K=q(null),ne=q(null),X=q(null),te=q(null);function ue(h,y){switch(W(X,y),W(ne,h),W(K,null),y.nodeType){case 9:case 11:h=(h=y.documentElement)&&(h=h.namespaceURI)?Uie(h):0;break;default:if(h=y.tagName,y=y.namespaceURI)y=Uie(y),h=Qie(y,h);else switch(h){case"svg":h=1;break;case"math":h=2;break;default:h=0}}j(K),W(K,h)}function de(){j(K),j(ne),j(X)}function De(h){h.memoizedState!==null&&W(te,h);var y=K.current,x=Qie(y,h.type);y!==x&&(W(ne,h),W(K,x))}function we(h){ne.current===h&&(j(K),j(ne)),te.current===h&&(j(te),cO._currentValue=H)}var Ae,Fe;function rt(h){if(Ae===void 0)try{throw Error()}catch(x){var y=x.stack.trim().match(/\n( *(at )?)/);Ae=y&&y[1]||"",Fe=-1<x.stack.indexOf(`
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./apex-C98GozUp.js","./sql-CJATM1Qp.js","./arduino-BjZPbEvY.js","./cpp-BdJVwJpi.js","./c-kgVuzdLE.js","./aspnet-C9-Y8eY3.js","./csharp-Cd5Udg29.js","./bash-Xfq1WUcj.js","./bash-CefCgV5_.js","./basic-CwxAqBQt.js","./basic-DBS9NaGG.js","./bison-C4uvVnx7.js","./c-DTjiY7iT.js","./chaiscript-DnCZz1fN.js","./clike-Bxu1ofuX.js","./clike-B5tY_8Hg.js","./cpp-DP28QsBf.js","./crystal-D7fe-vg1.js","./ruby-DYsn9XfW.js","./csharp-CqqTy2qZ.js","./cshtml-Dh_AvBa7.js","./css-CR2gKa6b.js","./css-CF9HHZb0.js","./django-D21kaDEA.js","./markup-templating-BxAVv-bL.js","./ejs-J0y5SHgc.js","./erb-BkU8bVfl.js","./etlua-4Oi6wyBM.js","./lua-DER4jxlW.js","./ftl-DDfen3_J.js","./glsl-u06xQTm6.js","./haml-BCKfzi5f.js","./handlebars-CsgMle6k.js","./haskell-CmfutXG-.js","./haskell-Ds42Eazu.js","./hlsl-JAFINkFz.js","./idris-CPOUHvfX.js","./java-Dt7I9LEh.js","./java-BxMbkJZ_.js","./javadoc-B-u1DW_a.js","./javadoclike-myFApC35.js","./javadoclike-D6bOoyOt.js","./javascript-D0sG_Ohj.js","./javascript-D8vYUPHd.js","./jsdoc-CIdLS_YW.js","./typescript-CVO-8GEc.js","./json-Dg3GaZVD.js","./json-BESjz4hO.js","./json5-CqRLmYN6.js","./jsonp-BSCByjeo.js","./jsx-Bw9l37V2.js","./jsx-CWP8P1mH.js","./latte-DJHODm7Y.js","./php-iTdQntIy.js","./lilypond-DXTVwhll.js","./scheme-Cscf027c.js","./liquid-B4cXqhVC.js","./lua-D5jtIJlW.js","./markup-templating-DaAVpOLY.js","./markup-EbSvgVab.js","./markup-BONeskWm.js","./objectivec-BUaEnvnI.js","./opencl-EmCSOQ0x.js","./php-extras-DyDO0oE6.js","./php-B7M2WypM.js","./phpdoc-D7_4-AJc.js","./plsql-CYAt5gAw.js","./purescript-C3zghzD2.js","./racket-DXkJu4YB.js","./ruby-Bp5S4Sb5.js","./scala-LqUyXRZv.js","./scheme-D3ufZ3DO.js","./shell-session-Dr9tuVPL.js","./smarty-DlxCRZso.js","./soy-D0u4FwpF.js","./sparql-Er6DMZei.js","./turtle-Ro1R6Je7.js","./sql-D9VQm_cU.js","./t4-cs-DiP71OxA.js","./t4-templating-B5EzSFYT.js","./t4-templating-Cbt8qd6E.js","./t4-vb-CmZbmSEF.js","./vbnet-BhrUc4aD.js","./tap-BNVGfvB-.js","./yaml-pHjxJgpq.js","./tsx-DdQm2BWK.js","./tt2-Ow17HAHq.js","./turtle-CcA2wOxF.js","./twig-Dm1E7WCn.js","./typescript-CKH70J6v.js","./vbnet-k2UpKhQV.js","./yaml-CX68Oi3o.js","./core-COst5k2o.js","./token-util-NEHG7TUY-JRJTGTAB-N8sYk0L_-DsQWNtNi.js","./chunk-55VPMN3N-C6D-FCqV-DpzfIqmN.js","./index-C1owqOak.js","./token-6GSAFR2W-SPYPLMBM-BeIpRVyM-CtQjpQT4.js","./token-util-NEHG7TUY-JRJTGTAB-7lMdCBB2.js","./chunk-55VPMN3N-CE0ex8RR.js","./token-6GSAFR2W-SPYPLMBM-ykq54GDP.js","./index-DhSYKJqM.js","./index-Da7v5bPM.js","./index-IQaufVDf.js","./index-MYvqyHFC.js","./index-Ds7yBiGy.js","./index-DNcZewIc.js","./index-Dpsx1QC7.js","./index-DghduufX.js","./index-DFLRvAOV.js","./index-JCSfWXom.js","./index-lkDge679.js","./index-C9PV0HKg.js","./index-BGbdvLQM.js","./index-BU0sifM3.js","./dockerfile-BKs6k2Af.js","./simple-mode-GW_nhZxv.js","./factor-kuTfRLto.js","./nsis-LdVXkNf5.js","./pug-DeIclll2.js","./javascript-iXu5QeM3.js","./index-D3PY5bwl.js","./index-DQdddF7W.js","./index-DhqtEarq.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{_ as G}from"./index-C1owqOak.js";function dXe(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const i in n)if(i!=="default"&&!(i in e)){const s=Object.getOwnPropertyDescriptor(n,i);s&&Object.defineProperty(e,i,s.get?s:{enumerable:!0,get:()=>n[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var bRr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Qh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var fj={exports:{}},pO={};var xse;function fXe(){if(xse)return pO;xse=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,i,s){var o=null;if(s!==void 0&&(o=""+s),i.key!==void 0&&(o=""+i.key),"key"in i){s={};for(var a in i)a!=="key"&&(s[a]=i[a])}else s=i;return i=s.ref,{$$typeof:e,type:n,key:o,ref:i!==void 0?i:null,props:s}}return pO.Fragment=t,pO.jsx=r,pO.jsxs=r,pO}var wse;function pXe(){return wse||(wse=1,fj.exports=fXe()),fj.exports}var p=pXe(),pj={exports:{}},yr={},Sse;function hXe(){if(Sse)return yr;Sse=1;var e={env:{}};var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),f=Symbol.for("react.activity"),m=Symbol.iterator;function g(q){return q===null||typeof q!="object"?null:(q=m&&q[m]||q["@@iterator"],typeof q=="function"?q:null)}var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,w={};function S(q,j,W){this.props=q,this.context=j,this.refs=w,this.updater=W||v}S.prototype.isReactComponent={},S.prototype.setState=function(q,j){if(typeof q!="object"&&typeof q!="function"&&q!=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,q,j,"setState")},S.prototype.forceUpdate=function(q){this.updater.enqueueForceUpdate(this,q,"forceUpdate")};function O(){}O.prototype=S.prototype;function k(q,j,W){this.props=q,this.context=j,this.refs=w,this.updater=W||v}var C=k.prototype=new O;C.constructor=k,b(C,S.prototype),C.isPureReactComponent=!0;var T=Array.isArray;function P(){}var A={H:null,A:null,T:null,S:null},R=Object.prototype.hasOwnProperty;function M(q,j,W){var K=W.ref;return{$$typeof:t,type:q,key:j,ref:K!==void 0?K:null,props:W}}function z(q,j){return M(q.type,j,q.props)}function U(q){return typeof q=="object"&&q!==null&&q.$$typeof===t}function V(q){var j={"=":"=0",":":"=2"};return"$"+q.replace(/[=:]/g,function(W){return j[W]})}var L=/\/+/g;function Q(q,j){return typeof q=="object"&&q!==null&&q.key!=null?V(""+q.key):j.toString(36)}function F(q){switch(q.status){case"fulfilled":return q.value;case"rejected":throw q.reason;default:switch(typeof q.status=="string"?q.then(P,P):(q.status="pending",q.then(function(j){q.status==="pending"&&(q.status="fulfilled",q.value=j)},function(j){q.status==="pending"&&(q.status="rejected",q.reason=j)})),q.status){case"fulfilled":return q.value;case"rejected":throw q.reason}}throw q}function N(q,j,W,K,ne){var X=typeof q;(X==="undefined"||X==="boolean")&&(q=null);var te=!1;if(q===null)te=!0;else switch(X){case"bigint":case"string":case"number":te=!0;break;case"object":switch(q.$$typeof){case t:case r:te=!0;break;case d:return te=q._init,N(te(q._payload),j,W,K,ne)}}if(te)return ne=ne(q),te=K===""?"."+Q(q,0):K,T(ne)?(W="",te!=null&&(W=te.replace(L,"$&/")+"/"),N(ne,j,W,"",function(De){return De})):ne!=null&&(U(ne)&&(ne=z(ne,W+(ne.key==null||q&&q.key===ne.key?"":(""+ne.key).replace(L,"$&/")+"/")+te)),j.push(ne)),1;te=0;var ue=K===""?".":K+":";if(T(q))for(var de=0;de<q.length;de++)K=q[de],X=ue+Q(K,de),te+=N(K,j,W,X,ne);else if(de=g(q),typeof de=="function")for(q=de.call(q),de=0;!(K=q.next()).done;)K=K.value,X=ue+Q(K,de++),te+=N(K,j,W,X,ne);else if(X==="object"){if(typeof q.then=="function")return N(F(q),j,W,K,ne);throw j=String(q),Error("Objects are not valid as a React child (found: "+(j==="[object Object]"?"object with keys {"+Object.keys(q).join(", ")+"}":j)+"). If you meant to render a collection of children, use an array instead.")}return te}function I(q,j,W){if(q==null)return q;var K=[],ne=0;return N(q,K,"","",function(X){return j.call(W,X,ne++)}),K}function H(q){if(q._status===-1){var j=q._result;j=j(),j.then(function(W){(q._status===0||q._status===-1)&&(q._status=1,q._result=W)},function(W){(q._status===0||q._status===-1)&&(q._status=2,q._result=W)}),q._status===-1&&(q._status=0,q._result=j)}if(q._status===1)return q._result.default;throw q._result}var B=typeof reportError=="function"?reportError:function(q){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var j=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof q=="object"&&q!==null&&typeof q.message=="string"?String(q.message):String(q),error:q});if(!window.dispatchEvent(j))return}else if(typeof e=="object"&&typeof e.emit=="function"){e.emit("uncaughtException",q);return}console.error(q)},J={map:I,forEach:function(q,j,W){I(q,function(){j.apply(this,arguments)},W)},count:function(q){var j=0;return I(q,function(){j++}),j},toArray:function(q){return I(q,function(j){return j})||[]},only:function(q){if(!U(q))throw Error("React.Children.only expected to receive a single React element child.");return q}};return yr.Activity=f,yr.Children=J,yr.Component=S,yr.Fragment=n,yr.Profiler=s,yr.PureComponent=k,yr.StrictMode=i,yr.Suspense=c,yr.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=A,yr.__COMPILER_RUNTIME={__proto__:null,c:function(q){return A.H.useMemoCache(q)}},yr.cache=function(q){return function(){return q.apply(null,arguments)}},yr.cacheSignal=function(){return null},yr.cloneElement=function(q,j,W){if(q==null)throw Error("The argument must be a React element, but you passed "+q+".");var K=b({},q.props),ne=q.key;if(j!=null)for(X in j.key!==void 0&&(ne=""+j.key),j)!R.call(j,X)||X==="key"||X==="__self"||X==="__source"||X==="ref"&&j.ref===void 0||(K[X]=j[X]);var X=arguments.length-2;if(X===1)K.children=W;else if(1<X){for(var te=Array(X),ue=0;ue<X;ue++)te[ue]=arguments[ue+2];K.children=te}return M(q.type,ne,K)},yr.createContext=function(q){return q={$$typeof:a,_currentValue:q,_currentValue2:q,_threadCount:0,Provider:null,Consumer:null},q.Provider=q,q.Consumer={$$typeof:o,_context:q},q},yr.createElement=function(q,j,W){var K,ne={},X=null;if(j!=null)for(K in j.key!==void 0&&(X=""+j.key),j)R.call(j,K)&&K!=="key"&&K!=="__self"&&K!=="__source"&&(ne[K]=j[K]);var te=arguments.length-2;if(te===1)ne.children=W;else if(1<te){for(var ue=Array(te),de=0;de<te;de++)ue[de]=arguments[de+2];ne.children=ue}if(q&&q.defaultProps)for(K in te=q.defaultProps,te)ne[K]===void 0&&(ne[K]=te[K]);return M(q,X,ne)},yr.createRef=function(){return{current:null}},yr.forwardRef=function(q){return{$$typeof:l,render:q}},yr.isValidElement=U,yr.lazy=function(q){return{$$typeof:d,_payload:{_status:-1,_result:q},_init:H}},yr.memo=function(q,j){return{$$typeof:u,type:q,compare:j===void 0?null:j}},yr.startTransition=function(q){var j=A.T,W={};A.T=W;try{var K=q(),ne=A.S;ne!==null&&ne(W,K),typeof K=="object"&&K!==null&&typeof K.then=="function"&&K.then(P,B)}catch(X){B(X)}finally{j!==null&&W.types!==null&&(j.types=W.types),A.T=j}},yr.unstable_useCacheRefresh=function(){return A.H.useCacheRefresh()},yr.use=function(q){return A.H.use(q)},yr.useActionState=function(q,j,W){return A.H.useActionState(q,j,W)},yr.useCallback=function(q,j){return A.H.useCallback(q,j)},yr.useContext=function(q){return A.H.useContext(q)},yr.useDebugValue=function(){},yr.useDeferredValue=function(q,j){return A.H.useDeferredValue(q,j)},yr.useEffect=function(q,j){return A.H.useEffect(q,j)},yr.useEffectEvent=function(q){return A.H.useEffectEvent(q)},yr.useId=function(){return A.H.useId()},yr.useImperativeHandle=function(q,j,W){return A.H.useImperativeHandle(q,j,W)},yr.useInsertionEffect=function(q,j){return A.H.useInsertionEffect(q,j)},yr.useLayoutEffect=function(q,j){return A.H.useLayoutEffect(q,j)},yr.useMemo=function(q,j){return A.H.useMemo(q,j)},yr.useOptimistic=function(q,j){return A.H.useOptimistic(q,j)},yr.useReducer=function(q,j,W){return A.H.useReducer(q,j,W)},yr.useRef=function(q){return A.H.useRef(q)},yr.useState=function(q){return A.H.useState(q)},yr.useSyncExternalStore=function(q,j,W){return A.H.useSyncExternalStore(q,j,W)},yr.useTransition=function(){return A.H.useTransition()},yr.version="19.2.3",yr}var Ose;function Sw(){return Ose||(Ose=1,pj.exports=hXe()),pj.exports}var E=Sw();const me=Qh(E),Cq=dXe({__proto__:null,default:me},[E]);var hj={exports:{}},hO={},mj={exports:{}},gj={};var _se;function mXe(){return _se||(_se=1,(function(e){function t(F,N){var I=F.length;F.push(N);e:for(;0<I;){var H=I-1>>>1,B=F[H];if(0<i(B,N))F[H]=N,F[I]=B,I=H;else break e}}function r(F){return F.length===0?null:F[0]}function n(F){if(F.length===0)return null;var N=F[0],I=F.pop();if(I!==N){F[0]=I;e:for(var H=0,B=F.length,J=B>>>1;H<J;){var q=2*(H+1)-1,j=F[q],W=q+1,K=F[W];if(0>i(j,I))W<B&&0>i(K,j)?(F[H]=K,F[W]=I,H=W):(F[H]=j,F[q]=I,H=q);else if(W<B&&0>i(K,I))F[H]=K,F[W]=I,H=W;else break e}}return N}function i(F,N){var I=F.sortIndex-N.sortIndex;return I!==0?I:F.id-N.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var l=[],c=[],u=1,d=null,f=3,m=!1,g=!1,v=!1,b=!1,w=typeof setTimeout=="function"?setTimeout:null,S=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;function k(F){for(var N=r(c);N!==null;){if(N.callback===null)n(c);else if(N.startTime<=F)n(c),N.sortIndex=N.expirationTime,t(l,N);else break;N=r(c)}}function C(F){if(v=!1,k(F),!g)if(r(l)!==null)g=!0,T||(T=!0,U());else{var N=r(c);N!==null&&Q(C,N.startTime-F)}}var T=!1,P=-1,A=5,R=-1;function M(){return b?!0:!(e.unstable_now()-R<A)}function z(){if(b=!1,T){var F=e.unstable_now();R=F;var N=!0;try{e:{g=!1,v&&(v=!1,S(P),P=-1),m=!0;var I=f;try{t:{for(k(F),d=r(l);d!==null&&!(d.expirationTime>F&&M());){var H=d.callback;if(typeof H=="function"){d.callback=null,f=d.priorityLevel;var B=H(d.expirationTime<=F);if(F=e.unstable_now(),typeof B=="function"){d.callback=B,k(F),N=!0;break t}d===r(l)&&n(l),k(F)}else n(l);d=r(l)}if(d!==null)N=!0;else{var J=r(c);J!==null&&Q(C,J.startTime-F),N=!1}}break e}finally{d=null,f=I,m=!1}N=void 0}}finally{N?U():T=!1}}}var U;if(typeof O=="function")U=function(){O(z)};else if(typeof MessageChannel<"u"){var V=new MessageChannel,L=V.port2;V.port1.onmessage=z,U=function(){L.postMessage(null)}}else U=function(){w(z,0)};function Q(F,N){P=w(function(){F(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(F){F.callback=null},e.unstable_forceFrameRate=function(F){0>F||125<F?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A=0<F?Math.floor(1e3/F):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(F){switch(f){case 1:case 2:case 3:var N=3;break;default:N=f}var I=f;f=N;try{return F()}finally{f=I}},e.unstable_requestPaint=function(){b=!0},e.unstable_runWithPriority=function(F,N){switch(F){case 1:case 2:case 3:case 4:case 5:break;default:F=3}var I=f;f=F;try{return N()}finally{f=I}},e.unstable_scheduleCallback=function(F,N,I){var H=e.unstable_now();switch(typeof I=="object"&&I!==null?(I=I.delay,I=typeof I=="number"&&0<I?H+I:H):I=H,F){case 1:var B=-1;break;case 2:B=250;break;case 5:B=1073741823;break;case 4:B=1e4;break;default:B=5e3}return B=I+B,F={id:u++,callback:N,priorityLevel:F,startTime:I,expirationTime:B,sortIndex:-1},I>H?(F.sortIndex=I,t(c,F),r(l)===null&&F===r(c)&&(v?(S(P),P=-1):v=!0,Q(C,I-H))):(F.sortIndex=B,t(l,F),g||m||(g=!0,T||(T=!0,U()))),F},e.unstable_shouldYield=M,e.unstable_wrapCallback=function(F){var N=f;return function(){var I=f;f=N;try{return F.apply(this,arguments)}finally{f=I}}}})(gj)),gj}var kse;function gXe(){return kse||(kse=1,mj.exports=mXe()),mj.exports}var yj={exports:{}},Fo={};var Ese;function yXe(){if(Ese)return Fo;Ese=1;var e=Sw();function t(l){var c="https://react.dev/errors/"+l;if(1<arguments.length){c+="?args[]="+encodeURIComponent(arguments[1]);for(var u=2;u<arguments.length;u++)c+="&args[]="+encodeURIComponent(arguments[u])}return"Minified React error #"+l+"; visit "+c+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var n={d:{f:r,r:function(){throw Error(t(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},i=Symbol.for("react.portal");function s(l,c,u){var d=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:i,key:d==null?null:""+d,children:l,containerInfo:c,implementation:u}}var o=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function a(l,c){if(l==="font")return"";if(typeof c=="string")return c==="use-credentials"?c:""}return Fo.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=n,Fo.createPortal=function(l,c){var u=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!c||c.nodeType!==1&&c.nodeType!==9&&c.nodeType!==11)throw Error(t(299));return s(l,c,null,u)},Fo.flushSync=function(l){var c=o.T,u=n.p;try{if(o.T=null,n.p=2,l)return l()}finally{o.T=c,n.p=u,n.d.f()}},Fo.preconnect=function(l,c){typeof l=="string"&&(c?(c=c.crossOrigin,c=typeof c=="string"?c==="use-credentials"?c:"":void 0):c=null,n.d.C(l,c))},Fo.prefetchDNS=function(l){typeof l=="string"&&n.d.D(l)},Fo.preinit=function(l,c){if(typeof l=="string"&&c&&typeof c.as=="string"){var u=c.as,d=a(u,c.crossOrigin),f=typeof c.integrity=="string"?c.integrity:void 0,m=typeof c.fetchPriority=="string"?c.fetchPriority:void 0;u==="style"?n.d.S(l,typeof c.precedence=="string"?c.precedence:void 0,{crossOrigin:d,integrity:f,fetchPriority:m}):u==="script"&&n.d.X(l,{crossOrigin:d,integrity:f,fetchPriority:m,nonce:typeof c.nonce=="string"?c.nonce:void 0})}},Fo.preinitModule=function(l,c){if(typeof l=="string")if(typeof c=="object"&&c!==null){if(c.as==null||c.as==="script"){var u=a(c.as,c.crossOrigin);n.d.M(l,{crossOrigin:u,integrity:typeof c.integrity=="string"?c.integrity:void 0,nonce:typeof c.nonce=="string"?c.nonce:void 0})}}else c==null&&n.d.M(l)},Fo.preload=function(l,c){if(typeof l=="string"&&typeof c=="object"&&c!==null&&typeof c.as=="string"){var u=c.as,d=a(u,c.crossOrigin);n.d.L(l,u,{crossOrigin:d,integrity:typeof c.integrity=="string"?c.integrity:void 0,nonce:typeof c.nonce=="string"?c.nonce:void 0,type:typeof c.type=="string"?c.type:void 0,fetchPriority:typeof c.fetchPriority=="string"?c.fetchPriority:void 0,referrerPolicy:typeof c.referrerPolicy=="string"?c.referrerPolicy:void 0,imageSrcSet:typeof c.imageSrcSet=="string"?c.imageSrcSet:void 0,imageSizes:typeof c.imageSizes=="string"?c.imageSizes:void 0,media:typeof c.media=="string"?c.media:void 0})}},Fo.preloadModule=function(l,c){if(typeof l=="string")if(c){var u=a(c.as,c.crossOrigin);n.d.m(l,{as:typeof c.as=="string"&&c.as!=="script"?c.as:void 0,crossOrigin:u,integrity:typeof c.integrity=="string"?c.integrity:void 0})}else n.d.m(l)},Fo.requestFormReset=function(l){n.d.r(l)},Fo.unstable_batchedUpdates=function(l,c){return l(c)},Fo.useFormState=function(l,c,u){return o.H.useFormState(l,c,u)},Fo.useFormStatus=function(){return o.H.useHostTransitionStatus()},Fo.version="19.2.3",Fo}var Cse;function L1e(){if(Cse)return yj.exports;Cse=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),yj.exports=yXe(),yj.exports}var Tse;function vXe(){if(Tse)return hO;Tse=1;var e={env:{}};var t=gXe(),r=Sw(),n=L1e();function i(h){var y="https://react.dev/errors/"+h;if(1<arguments.length){y+="?args[]="+encodeURIComponent(arguments[1]);for(var x=2;x<arguments.length;x++)y+="&args[]="+encodeURIComponent(arguments[x])}return"Minified React error #"+h+"; visit "+y+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(h){return!(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)}function o(h){var y=h,x=h;if(h.alternate)for(;y.return;)y=y.return;else{h=y;do y=h,(y.flags&4098)!==0&&(x=y.return),h=y.return;while(h)}return y.tag===3?x:null}function a(h){if(h.tag===13){var y=h.memoizedState;if(y===null&&(h=h.alternate,h!==null&&(y=h.memoizedState)),y!==null)return y.dehydrated}return null}function l(h){if(h.tag===31){var y=h.memoizedState;if(y===null&&(h=h.alternate,h!==null&&(y=h.memoizedState)),y!==null)return y.dehydrated}return null}function c(h){if(o(h)!==h)throw Error(i(188))}function u(h){var y=h.alternate;if(!y){if(y=o(h),y===null)throw Error(i(188));return y!==h?null:h}for(var x=h,_=y;;){var D=x.return;if(D===null)break;var $=D.alternate;if($===null){if(_=D.return,_!==null){x=_;continue}break}if(D.child===$.child){for($=D.child;$;){if($===x)return c(D),h;if($===_)return c(D),y;$=$.sibling}throw Error(i(188))}if(x.return!==_.return)x=D,_=$;else{for(var Z=!1,ee=D.child;ee;){if(ee===x){Z=!0,x=D,_=$;break}if(ee===_){Z=!0,_=D,x=$;break}ee=ee.sibling}if(!Z){for(ee=$.child;ee;){if(ee===x){Z=!0,x=$,_=D;break}if(ee===_){Z=!0,_=$,x=D;break}ee=ee.sibling}if(!Z)throw Error(i(189))}}if(x.alternate!==_)throw Error(i(190))}if(x.tag!==3)throw Error(i(188));return x.stateNode.current===x?h:y}function d(h){var y=h.tag;if(y===5||y===26||y===27||y===6)return h;for(h=h.child;h!==null;){if(y=d(h),y!==null)return y;h=h.sibling}return null}var f=Object.assign,m=Symbol.for("react.element"),g=Symbol.for("react.transitional.element"),v=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),O=Symbol.for("react.consumer"),k=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),A=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),M=Symbol.for("react.activity"),z=Symbol.for("react.memo_cache_sentinel"),U=Symbol.iterator;function V(h){return h===null||typeof h!="object"?null:(h=U&&h[U]||h["@@iterator"],typeof h=="function"?h:null)}var L=Symbol.for("react.client.reference");function Q(h){if(h==null)return null;if(typeof h=="function")return h.$$typeof===L?null:h.displayName||h.name||null;if(typeof h=="string")return h;switch(h){case b:return"Fragment";case S:return"Profiler";case w:return"StrictMode";case T:return"Suspense";case P:return"SuspenseList";case M:return"Activity"}if(typeof h=="object")switch(h.$$typeof){case v:return"Portal";case k:return h.displayName||"Context";case O:return(h._context.displayName||"Context")+".Consumer";case C:var y=h.render;return h=h.displayName,h||(h=y.displayName||y.name||"",h=h!==""?"ForwardRef("+h+")":"ForwardRef"),h;case A:return y=h.displayName||null,y!==null?y:Q(h.type)||"Memo";case R:y=h._payload,h=h._init;try{return Q(h(y))}catch{}}return null}var F=Array.isArray,N=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,H={pending:!1,data:null,method:null,action:null},B=[],J=-1;function q(h){return{current:h}}function j(h){0>J||(h.current=B[J],B[J]=null,J--)}function W(h,y){J++,B[J]=h.current,h.current=y}var K=q(null),ne=q(null),X=q(null),te=q(null);function ue(h,y){switch(W(X,y),W(ne,h),W(K,null),y.nodeType){case 9:case 11:h=(h=y.documentElement)&&(h=h.namespaceURI)?Uie(h):0;break;default:if(h=y.tagName,y=y.namespaceURI)y=Uie(y),h=Qie(y,h);else switch(h){case"svg":h=1;break;case"math":h=2;break;default:h=0}}j(K),W(K,h)}function de(){j(K),j(ne),j(X)}function De(h){h.memoizedState!==null&&W(te,h);var y=K.current,x=Qie(y,h.type);y!==x&&(W(ne,h),W(K,x))}function we(h){ne.current===h&&(j(K),j(ne)),te.current===h&&(j(te),cO._currentValue=H)}var Ae,Fe;function rt(h){if(Ae===void 0)try{throw Error()}catch(x){var y=x.stack.trim().match(/\n( *(at )?)/);Ae=y&&y[1]||"",Fe=-1<x.stack.indexOf(`
|
|
3
3
|
at`)?" (<anonymous>)":-1<x.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
4
4
|
`+Ae+h+Fe}var yt=!1;function lt(h,y){if(!h||yt)return"";yt=!0;var x=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var _={DetermineComponentFrameRoot:function(){try{if(y){var Be=function(){throw Error()};if(Object.defineProperty(Be.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Be,[])}catch(Ce){var _e=Ce}Reflect.construct(h,[],Be)}else{try{Be.call()}catch(Ce){_e=Ce}h.call(Be.prototype)}}else{try{throw Error()}catch(Ce){_e=Ce}(Be=h())&&typeof Be.catch=="function"&&Be.catch(function(){})}}catch(Ce){if(Ce&&_e&&typeof Ce.stack=="string")return[Ce.stack,_e.stack]}return[null,null]}};_.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var D=Object.getOwnPropertyDescriptor(_.DetermineComponentFrameRoot,"name");D&&D.configurable&&Object.defineProperty(_.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var $=_.DetermineComponentFrameRoot(),Z=$[0],ee=$[1];if(Z&&ee){var ce=Z.split(`
|
|
5
5
|
`),Se=ee.split(`
|
|
@@ -110,7 +110,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
110
110
|
`))})}function xbt(e){var t=e.codeString,r=e.codeStyle,n=e.containerStyle,i=n===void 0?{float:"left",paddingRight:"10px"}:n,s=e.numberStyle,o=s===void 0?{}:s,a=e.startingLineNumber;return me.createElement("code",{style:Object.assign({},r,i)},bbt({lines:t.replace(/\n$/,"").split(`
|
|
111
111
|
`),style:o,startingLineNumber:a}))}function wbt(e){return"".concat(e.toString().length,".25em")}function RDe(e,t){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(e),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:t},children:[{type:"text",value:e}]}}function MDe(e,t,r){var n={display:"inline-block",minWidth:wbt(r),paddingRight:"1em",textAlign:"right",userSelect:"none"},i=typeof e=="function"?e(t):e,s=ig(ig({},n),i);return s}function d$(e){var t=e.children,r=e.lineNumber,n=e.lineNumberStyle,i=e.largestLineNumber,s=e.showInlineLineNumbers,o=e.lineProps,a=o===void 0?{}:o,l=e.className,c=l===void 0?[]:l,u=e.showLineNumbers,d=e.wrapLongLines,f=e.wrapLines,m=f===void 0?!1:f,g=m?ig({},typeof a=="function"?a(r):a):{};if(g.className=g.className?[].concat(YB(g.className.trim().split(/\s+/)),YB(c)):c,r&&s){var v=MDe(n,r,i);t.unshift(RDe(r,v))}return d&u&&(g.style=ig({display:"flex"},g.style)),{type:"element",tagName:"span",properties:g,children:t}}function jDe(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],n=0;n<e.length;n++){var i=e[n];if(i.type==="text")r.push(d$({children:[i],className:YB(new Set(t))}));else if(i.children){var s=t.concat(i.properties.className);jDe(i.children,s).forEach(function(o){return r.push(o)})}}return r}function Sbt(e,t,r,n,i,s,o,a,l){var c,u=jDe(e.value),d=[],f=-1,m=0;function g(C,T){var P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return d$({children:C,lineNumber:T,lineNumberStyle:a,largestLineNumber:o,showInlineLineNumbers:i,lineProps:r,className:P,showLineNumbers:n,wrapLongLines:l,wrapLines:t})}function v(C,T){if(n&&T&&i){var P=MDe(a,T,o);C.unshift(RDe(T,P))}return C}function b(C,T){var P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return t||P.length>0?g(C,T,P):v(C,T)}for(var w=function(){var T=u[m],P=T.children[0].value,A=vbt(P);if(A){var R=P.split(`
|
|
112
112
|
`);R.forEach(function(M,z){var U=n&&d.length+s,V={type:"text",value:"".concat(M,`
|
|
113
|
-
`)};if(z===0){var L=u.slice(f+1,m).concat(d$({children:[V],className:T.properties.className})),Q=b(L,U);d.push(Q)}else if(z===R.length-1){var F=u[m+1]&&u[m+1].children&&u[m+1].children[0],N={type:"text",value:"".concat(M)};if(F){var I=d$({children:[N],className:T.properties.className});u.splice(m+1,0,I)}else{var H=[N],B=b(H,U,T.properties.className);d.push(B)}}else{var J=[V],q=b(J,U,T.properties.className);d.push(q)}}),f=m}m++};m<u.length;)w();if(f!==u.length-1){var S=u.slice(f+1,u.length);if(S&&S.length){var O=n&&d.length+s,k=b(S,O);d.push(k)}}return t?d:(c=[]).concat.apply(c,d)}function Obt(e){var t=e.rows,r=e.stylesheet,n=e.useInlineStyles;return t.map(function(i,s){return NDe({node:i,stylesheet:r,useInlineStyles:n,key:"code-segment-".concat(s)})})}function FDe(e){return e&&typeof e.highlightAuto<"u"}function _bt(e){var t=e.astGenerator,r=e.language,n=e.code,i=e.defaultCodeValue;if(FDe(t)){var s=mbt(t,r);return r==="text"?{value:i,language:"text"}:s?t.highlight(r,n):t.highlightAuto(n)}try{return r&&r!=="text"?{value:t.highlight(n,r)}:{value:i}}catch{return{value:i}}}function kbt(e,t){return function(n){var i,s,o=n.language,a=n.children,l=n.style,c=l===void 0?t:l,u=n.customStyle,d=u===void 0?{}:u,f=n.codeTagProps,m=f===void 0?{className:o?"language-".concat(o):void 0,style:ig(ig({},c['code[class*="language-"]']),c['code[class*="language-'.concat(o,'"]')])}:f,g=n.useInlineStyles,v=g===void 0?!0:g,b=n.showLineNumbers,w=b===void 0?!1:b,S=n.showInlineLineNumbers,O=S===void 0?!0:S,k=n.startingLineNumber,C=k===void 0?1:k,T=n.lineNumberContainerStyle,P=n.lineNumberStyle,A=P===void 0?{}:P,R=n.wrapLines,M=n.wrapLongLines,z=M===void 0?!1:M,U=n.lineProps,V=U===void 0?{}:U,L=n.renderer,Q=n.PreTag,F=Q===void 0?"pre":Q,N=n.CodeTag,I=N===void 0?"code":N,H=n.code,B=H===void 0?(Array.isArray(a)?a[0]:a)||"":H,J=n.astGenerator,q=sbt(n,gbt);J=J||e;var j=w?me.createElement(xbt,{containerStyle:T,codeStyle:m.style||{},numberStyle:A,startingLineNumber:C,codeString:B}):null,W=c.hljs||c['pre[class*="language-"]']||{backgroundColor:"#fff"},K=FDe(J)?"hljs":"prismjs",ne=v?Object.assign({},q,{style:Object.assign({},W,d)}):Object.assign({},q,{className:q.className?"".concat(K," ").concat(q.className):K,style:Object.assign({},d)});if(z?m.style=ig({whiteSpace:"pre-wrap"},m.style):m.style=ig({whiteSpace:"pre"},m.style),!J)return me.createElement(F,ne,j,me.createElement(I,m,B));(R===void 0&&L||z)&&(R=!0),L=L||Obt;var X=[{type:"text",value:B}],te=_bt({astGenerator:J,language:o,code:B,defaultCodeValue:X});te.language===null&&(te.value=X);var ue=(i=(s=B.match(/\n/g))===null||s===void 0?void 0:s.length)!==null&&i!==void 0?i:0,de=C+ue,De=Sbt(te,R,V,w,O,C,de,A,z);return me.createElement(F,ne,me.createElement(I,m,!O&&j,L({rows:De,stylesheet:c,useInlineStyles:v})))}}function Lle(e,t,r,n,i,s,o){try{var a=e[s](o),l=a.value}catch(c){return void r(c)}a.done?t(l):Promise.resolve(l).then(n,i)}function LDe(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var s=e.apply(t,r);function o(l){Lle(s,n,i,o,a,"next",l)}function a(l){Lle(s,n,i,o,a,"throw",l)}o(void 0)})}}function Ebt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zle(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,IDe(n.key),n)}}function Cbt(e,t,r){return t&&zle(e.prototype,t),r&&zle(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Tbt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Dbt(e,t){if(t&&(Ff(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Tbt(e)}function DI(e){return DI=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},DI(e)}function JB(e,t){return JB=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},JB(e,t)}function Abt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&JB(e,t)}function KB(){KB=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(F,N,I){F[N]=I.value},s=typeof Symbol=="function"?Symbol:{},o=s.iterator||"@@iterator",a=s.asyncIterator||"@@asyncIterator",l=s.toStringTag||"@@toStringTag";function c(F,N,I){return Object.defineProperty(F,N,{value:I,enumerable:!0,configurable:!0,writable:!0}),F[N]}try{c({},"")}catch{c=function(I,H,B){return I[H]=B}}function u(F,N,I,H){var B=N&&N.prototype instanceof w?N:w,J=Object.create(B.prototype),q=new L(H||[]);return i(J,"_invoke",{value:M(F,I,q)}),J}function d(F,N,I){try{return{type:"normal",arg:F.call(N,I)}}catch(H){return{type:"throw",arg:H}}}t.wrap=u;var f="suspendedStart",m="suspendedYield",g="executing",v="completed",b={};function w(){}function S(){}function O(){}var k={};c(k,o,function(){return this});var C=Object.getPrototypeOf,T=C&&C(C(Q([])));T&&T!==r&&n.call(T,o)&&(k=T);var P=O.prototype=w.prototype=Object.create(k);function A(F){["next","throw","return"].forEach(function(N){c(F,N,function(I){return this._invoke(N,I)})})}function R(F,N){function I(B,J,q,j){var W=d(F[B],F,J);if(W.type!=="throw"){var K=W.arg,ne=K.value;return ne&&Ff(ne)=="object"&&n.call(ne,"__await")?N.resolve(ne.__await).then(function(X){I("next",X,q,j)},function(X){I("throw",X,q,j)}):N.resolve(ne).then(function(X){K.value=X,q(K)},function(X){return I("throw",X,q,j)})}j(W.arg)}var H;i(this,"_invoke",{value:function(J,q){function j(){return new N(function(W,K){I(J,q,W,K)})}return H=H?H.then(j,j):j()}})}function M(F,N,I){var H=f;return function(B,J){if(H===g)throw Error("Generator is already running");if(H===v){if(B==="throw")throw J;return{value:e,done:!0}}for(I.method=B,I.arg=J;;){var q=I.delegate;if(q){var j=z(q,I);if(j){if(j===b)continue;return j}}if(I.method==="next")I.sent=I._sent=I.arg;else if(I.method==="throw"){if(H===f)throw H=v,I.arg;I.dispatchException(I.arg)}else I.method==="return"&&I.abrupt("return",I.arg);H=g;var W=d(F,N,I);if(W.type==="normal"){if(H=I.done?v:m,W.arg===b)continue;return{value:W.arg,done:I.done}}W.type==="throw"&&(H=v,I.method="throw",I.arg=W.arg)}}}function z(F,N){var I=N.method,H=F.iterator[I];if(H===e)return N.delegate=null,I==="throw"&&F.iterator.return&&(N.method="return",N.arg=e,z(F,N),N.method==="throw")||I!=="return"&&(N.method="throw",N.arg=new TypeError("The iterator does not provide a '"+I+"' method")),b;var B=d(H,F.iterator,N.arg);if(B.type==="throw")return N.method="throw",N.arg=B.arg,N.delegate=null,b;var J=B.arg;return J?J.done?(N[F.resultName]=J.value,N.next=F.nextLoc,N.method!=="return"&&(N.method="next",N.arg=e),N.delegate=null,b):J:(N.method="throw",N.arg=new TypeError("iterator result is not an object"),N.delegate=null,b)}function U(F){var N={tryLoc:F[0]};1 in F&&(N.catchLoc=F[1]),2 in F&&(N.finallyLoc=F[2],N.afterLoc=F[3]),this.tryEntries.push(N)}function V(F){var N=F.completion||{};N.type="normal",delete N.arg,F.completion=N}function L(F){this.tryEntries=[{tryLoc:"root"}],F.forEach(U,this),this.reset(!0)}function Q(F){if(F||F===""){var N=F[o];if(N)return N.call(F);if(typeof F.next=="function")return F;if(!isNaN(F.length)){var I=-1,H=function B(){for(;++I<F.length;)if(n.call(F,I))return B.value=F[I],B.done=!1,B;return B.value=e,B.done=!0,B};return H.next=H}}throw new TypeError(Ff(F)+" is not iterable")}return S.prototype=O,i(P,"constructor",{value:O,configurable:!0}),i(O,"constructor",{value:S,configurable:!0}),S.displayName=c(O,l,"GeneratorFunction"),t.isGeneratorFunction=function(F){var N=typeof F=="function"&&F.constructor;return!!N&&(N===S||(N.displayName||N.name)==="GeneratorFunction")},t.mark=function(F){return Object.setPrototypeOf?Object.setPrototypeOf(F,O):(F.__proto__=O,c(F,l,"GeneratorFunction")),F.prototype=Object.create(P),F},t.awrap=function(F){return{__await:F}},A(R.prototype),c(R.prototype,a,function(){return this}),t.AsyncIterator=R,t.async=function(F,N,I,H,B){B===void 0&&(B=Promise);var J=new R(u(F,N,I,H),B);return t.isGeneratorFunction(N)?J:J.next().then(function(q){return q.done?q.value:J.next()})},A(P),c(P,l,"Generator"),c(P,o,function(){return this}),c(P,"toString",function(){return"[object Generator]"}),t.keys=function(F){var N=Object(F),I=[];for(var H in N)I.push(H);return I.reverse(),function B(){for(;I.length;){var J=I.pop();if(J in N)return B.value=J,B.done=!1,B}return B.done=!0,B}},t.values=Q,L.prototype={constructor:L,reset:function(N){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(V),!N)for(var I in this)I.charAt(0)==="t"&&n.call(this,I)&&!isNaN(+I.slice(1))&&(this[I]=e)},stop:function(){this.done=!0;var N=this.tryEntries[0].completion;if(N.type==="throw")throw N.arg;return this.rval},dispatchException:function(N){if(this.done)throw N;var I=this;function H(K,ne){return q.type="throw",q.arg=N,I.next=K,ne&&(I.method="next",I.arg=e),!!ne}for(var B=this.tryEntries.length-1;B>=0;--B){var J=this.tryEntries[B],q=J.completion;if(J.tryLoc==="root")return H("end");if(J.tryLoc<=this.prev){var j=n.call(J,"catchLoc"),W=n.call(J,"finallyLoc");if(j&&W){if(this.prev<J.catchLoc)return H(J.catchLoc,!0);if(this.prev<J.finallyLoc)return H(J.finallyLoc)}else if(j){if(this.prev<J.catchLoc)return H(J.catchLoc,!0)}else{if(!W)throw Error("try statement without catch or finally");if(this.prev<J.finallyLoc)return H(J.finallyLoc)}}}},abrupt:function(N,I){for(var H=this.tryEntries.length-1;H>=0;--H){var B=this.tryEntries[H];if(B.tryLoc<=this.prev&&n.call(B,"finallyLoc")&&this.prev<B.finallyLoc){var J=B;break}}J&&(N==="break"||N==="continue")&&J.tryLoc<=I&&I<=J.finallyLoc&&(J=null);var q=J?J.completion:{};return q.type=N,q.arg=I,J?(this.method="next",this.next=J.finallyLoc,b):this.complete(q)},complete:function(N,I){if(N.type==="throw")throw N.arg;return N.type==="break"||N.type==="continue"?this.next=N.arg:N.type==="return"?(this.rval=this.arg=N.arg,this.method="return",this.next="end"):N.type==="normal"&&I&&(this.next=I),b},finish:function(N){for(var I=this.tryEntries.length-1;I>=0;--I){var H=this.tryEntries[I];if(H.finallyLoc===N)return this.complete(H.completion,H.afterLoc),V(H),b}},catch:function(N){for(var I=this.tryEntries.length-1;I>=0;--I){var H=this.tryEntries[I];if(H.tryLoc===N){var B=H.completion;if(B.type==="throw"){var J=B.arg;V(H)}return J}}throw Error("illegal catch attempt")},delegateYield:function(N,I,H){return this.delegate={iterator:Q(N),resultName:I,nextLoc:H},this.method==="next"&&(this.arg=e),b}},t}function Pbt(e,t,r){return t=DI(t),Dbt(e,zDe()?Reflect.construct(t,r||[],DI(e).constructor):t.apply(e,r))}function zDe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(zDe=function(){return!!e})()}const $bt=(function(e){var t,r=e.loader,n=e.isLanguageRegistered,i=e.registerLanguage,s=e.languageLoaders,o=e.noAsyncLoadingLanguages,a=(function(l){function c(){return Ebt(this,c),Pbt(this,c,arguments)}return Abt(c,l),Cbt(c,[{key:"componentDidUpdate",value:function(){!c.isRegistered(this.props.language)&&s&&this.loadLanguage()}},{key:"componentDidMount",value:function(){var d=this;c.astGeneratorPromise||c.loadAstGenerator(),c.astGenerator||c.astGeneratorPromise.then(function(){d.forceUpdate()}),!c.isRegistered(this.props.language)&&s&&this.loadLanguage()}},{key:"loadLanguage",value:function(){var d=this,f=this.props.language;f!=="text"&&c.loadLanguage(f).then(function(){return d.forceUpdate()}).catch(function(){})}},{key:"normalizeLanguage",value:function(d){return c.isSupportedLanguage(d)?d:"text"}},{key:"render",value:function(){return me.createElement(c.highlightInstance,gd({},this.props,{language:this.normalizeLanguage(this.props.language),astGenerator:c.astGenerator}))}}],[{key:"preload",value:function(){return c.loadAstGenerator()}},{key:"loadLanguage",value:(function(){var u=LDe(KB().mark(function f(m){var g;return KB().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:if(g=s[m],typeof g!="function"){b.next=5;break}return b.abrupt("return",g(c.registerLanguage));case 5:throw new Error("Language ".concat(m," not supported"));case 6:case"end":return b.stop()}},f)}));function d(f){return u.apply(this,arguments)}return d})()},{key:"isSupportedLanguage",value:function(d){return c.isRegistered(d)||typeof s[d]=="function"}},{key:"loadAstGenerator",value:function(){return c.astGeneratorPromise=r().then(function(d){c.astGenerator=d,i&&c.languages.forEach(function(f,m){return i(d,m,f)})}),c.astGeneratorPromise}}])})(me.PureComponent);return t=a,nh(a,"astGenerator",null),nh(a,"highlightInstance",kbt(null,{})),nh(a,"astGeneratorPromise",null),nh(a,"languages",new Map),nh(a,"supportedLanguages",e.supportedLanguages||Object.keys(s||{})),nh(a,"isRegistered",function(l){if(o)return!0;if(!i)throw new Error("Current syntax highlighter doesn't support registration of languages");return t.astGenerator?n(t.astGenerator,l):t.languages.has(l)}),nh(a,"registerLanguage",function(l,c){if(!i)throw new Error("Current syntax highlighter doesn't support registration of languages");if(t.astGenerator)return i(t.astGenerator,l,c);t.languages.set(l,c)}),a});function eV(){eV=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(F,N,I){F[N]=I.value},s=typeof Symbol=="function"?Symbol:{},o=s.iterator||"@@iterator",a=s.asyncIterator||"@@asyncIterator",l=s.toStringTag||"@@toStringTag";function c(F,N,I){return Object.defineProperty(F,N,{value:I,enumerable:!0,configurable:!0,writable:!0}),F[N]}try{c({},"")}catch{c=function(I,H,B){return I[H]=B}}function u(F,N,I,H){var B=N&&N.prototype instanceof w?N:w,J=Object.create(B.prototype),q=new L(H||[]);return i(J,"_invoke",{value:M(F,I,q)}),J}function d(F,N,I){try{return{type:"normal",arg:F.call(N,I)}}catch(H){return{type:"throw",arg:H}}}t.wrap=u;var f="suspendedStart",m="suspendedYield",g="executing",v="completed",b={};function w(){}function S(){}function O(){}var k={};c(k,o,function(){return this});var C=Object.getPrototypeOf,T=C&&C(C(Q([])));T&&T!==r&&n.call(T,o)&&(k=T);var P=O.prototype=w.prototype=Object.create(k);function A(F){["next","throw","return"].forEach(function(N){c(F,N,function(I){return this._invoke(N,I)})})}function R(F,N){function I(B,J,q,j){var W=d(F[B],F,J);if(W.type!=="throw"){var K=W.arg,ne=K.value;return ne&&Ff(ne)=="object"&&n.call(ne,"__await")?N.resolve(ne.__await).then(function(X){I("next",X,q,j)},function(X){I("throw",X,q,j)}):N.resolve(ne).then(function(X){K.value=X,q(K)},function(X){return I("throw",X,q,j)})}j(W.arg)}var H;i(this,"_invoke",{value:function(J,q){function j(){return new N(function(W,K){I(J,q,W,K)})}return H=H?H.then(j,j):j()}})}function M(F,N,I){var H=f;return function(B,J){if(H===g)throw Error("Generator is already running");if(H===v){if(B==="throw")throw J;return{value:e,done:!0}}for(I.method=B,I.arg=J;;){var q=I.delegate;if(q){var j=z(q,I);if(j){if(j===b)continue;return j}}if(I.method==="next")I.sent=I._sent=I.arg;else if(I.method==="throw"){if(H===f)throw H=v,I.arg;I.dispatchException(I.arg)}else I.method==="return"&&I.abrupt("return",I.arg);H=g;var W=d(F,N,I);if(W.type==="normal"){if(H=I.done?v:m,W.arg===b)continue;return{value:W.arg,done:I.done}}W.type==="throw"&&(H=v,I.method="throw",I.arg=W.arg)}}}function z(F,N){var I=N.method,H=F.iterator[I];if(H===e)return N.delegate=null,I==="throw"&&F.iterator.return&&(N.method="return",N.arg=e,z(F,N),N.method==="throw")||I!=="return"&&(N.method="throw",N.arg=new TypeError("The iterator does not provide a '"+I+"' method")),b;var B=d(H,F.iterator,N.arg);if(B.type==="throw")return N.method="throw",N.arg=B.arg,N.delegate=null,b;var J=B.arg;return J?J.done?(N[F.resultName]=J.value,N.next=F.nextLoc,N.method!=="return"&&(N.method="next",N.arg=e),N.delegate=null,b):J:(N.method="throw",N.arg=new TypeError("iterator result is not an object"),N.delegate=null,b)}function U(F){var N={tryLoc:F[0]};1 in F&&(N.catchLoc=F[1]),2 in F&&(N.finallyLoc=F[2],N.afterLoc=F[3]),this.tryEntries.push(N)}function V(F){var N=F.completion||{};N.type="normal",delete N.arg,F.completion=N}function L(F){this.tryEntries=[{tryLoc:"root"}],F.forEach(U,this),this.reset(!0)}function Q(F){if(F||F===""){var N=F[o];if(N)return N.call(F);if(typeof F.next=="function")return F;if(!isNaN(F.length)){var I=-1,H=function B(){for(;++I<F.length;)if(n.call(F,I))return B.value=F[I],B.done=!1,B;return B.value=e,B.done=!0,B};return H.next=H}}throw new TypeError(Ff(F)+" is not iterable")}return S.prototype=O,i(P,"constructor",{value:O,configurable:!0}),i(O,"constructor",{value:S,configurable:!0}),S.displayName=c(O,l,"GeneratorFunction"),t.isGeneratorFunction=function(F){var N=typeof F=="function"&&F.constructor;return!!N&&(N===S||(N.displayName||N.name)==="GeneratorFunction")},t.mark=function(F){return Object.setPrototypeOf?Object.setPrototypeOf(F,O):(F.__proto__=O,c(F,l,"GeneratorFunction")),F.prototype=Object.create(P),F},t.awrap=function(F){return{__await:F}},A(R.prototype),c(R.prototype,a,function(){return this}),t.AsyncIterator=R,t.async=function(F,N,I,H,B){B===void 0&&(B=Promise);var J=new R(u(F,N,I,H),B);return t.isGeneratorFunction(N)?J:J.next().then(function(q){return q.done?q.value:J.next()})},A(P),c(P,l,"Generator"),c(P,o,function(){return this}),c(P,"toString",function(){return"[object Generator]"}),t.keys=function(F){var N=Object(F),I=[];for(var H in N)I.push(H);return I.reverse(),function B(){for(;I.length;){var J=I.pop();if(J in N)return B.value=J,B.done=!1,B}return B.done=!0,B}},t.values=Q,L.prototype={constructor:L,reset:function(N){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(V),!N)for(var I in this)I.charAt(0)==="t"&&n.call(this,I)&&!isNaN(+I.slice(1))&&(this[I]=e)},stop:function(){this.done=!0;var N=this.tryEntries[0].completion;if(N.type==="throw")throw N.arg;return this.rval},dispatchException:function(N){if(this.done)throw N;var I=this;function H(K,ne){return q.type="throw",q.arg=N,I.next=K,ne&&(I.method="next",I.arg=e),!!ne}for(var B=this.tryEntries.length-1;B>=0;--B){var J=this.tryEntries[B],q=J.completion;if(J.tryLoc==="root")return H("end");if(J.tryLoc<=this.prev){var j=n.call(J,"catchLoc"),W=n.call(J,"finallyLoc");if(j&&W){if(this.prev<J.catchLoc)return H(J.catchLoc,!0);if(this.prev<J.finallyLoc)return H(J.finallyLoc)}else if(j){if(this.prev<J.catchLoc)return H(J.catchLoc,!0)}else{if(!W)throw Error("try statement without catch or finally");if(this.prev<J.finallyLoc)return H(J.finallyLoc)}}}},abrupt:function(N,I){for(var H=this.tryEntries.length-1;H>=0;--H){var B=this.tryEntries[H];if(B.tryLoc<=this.prev&&n.call(B,"finallyLoc")&&this.prev<B.finallyLoc){var J=B;break}}J&&(N==="break"||N==="continue")&&J.tryLoc<=I&&I<=J.finallyLoc&&(J=null);var q=J?J.completion:{};return q.type=N,q.arg=I,J?(this.method="next",this.next=J.finallyLoc,b):this.complete(q)},complete:function(N,I){if(N.type==="throw")throw N.arg;return N.type==="break"||N.type==="continue"?this.next=N.arg:N.type==="return"?(this.rval=this.arg=N.arg,this.method="return",this.next="end"):N.type==="normal"&&I&&(this.next=I),b},finish:function(N){for(var I=this.tryEntries.length-1;I>=0;--I){var H=this.tryEntries[I];if(H.finallyLoc===N)return this.complete(H.completion,H.afterLoc),V(H),b}},catch:function(N){for(var I=this.tryEntries.length-1;I>=0;--I){var H=this.tryEntries[I];if(H.tryLoc===N){var B=H.completion;if(B.type==="throw"){var J=B.arg;V(H)}return J}}throw Error("illegal catch attempt")},delegateYield:function(N,I,H){return this.delegate={iterator:Q(N),resultName:I,nextLoc:H},this.method==="next"&&(this.arg=e),b}},t}const se=(function(e,t){return(function(){var r=LDe(eV().mark(function n(i){var s;return eV().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,t();case 2:s=a.sent,i(e,s.default||s);case 4:case"end":return a.stop()}},n)}));return function(n){return r.apply(this,arguments)}})()}),Ibt={abap:se("abap",function(){return G(()=>import("./abap-y-8ImYjt.js").then(e=>e.a),[],import.meta.url)}),abnf:se("abnf",function(){return G(()=>import("./abnf-D-JGoAEM.js").then(e=>e.a),[],import.meta.url)}),actionscript:se("actionscript",function(){return G(()=>import("./actionscript-gZGm6tnN.js").then(e=>e.a),[],import.meta.url)}),ada:se("ada",function(){return G(()=>import("./ada-CLECaETO.js").then(e=>e.a),[],import.meta.url)}),agda:se("agda",function(){return G(()=>import("./agda-BSc-5Cim.js").then(e=>e.a),[],import.meta.url)}),al:se("al",function(){return G(()=>import("./al-CIxXqvLn.js").then(e=>e.a),[],import.meta.url)}),antlr4:se("antlr4",function(){return G(()=>import("./antlr4-B26hRwES.js").then(e=>e.a),[],import.meta.url)}),apacheconf:se("apacheconf",function(){return G(()=>import("./apacheconf-B4yYa3EM.js").then(e=>e.a),[],import.meta.url)}),apex:se("apex",function(){return G(()=>import("./apex-BOsBPpb3.js").then(e=>e.a),__vite__mapDeps([0,1]),import.meta.url)}),apl:se("apl",function(){return G(()=>import("./apl-B3HE4fJw.js").then(e=>e.a),[],import.meta.url)}),applescript:se("applescript",function(){return G(()=>import("./applescript-BMwrOjSc.js").then(e=>e.a),[],import.meta.url)}),aql:se("aql",function(){return G(()=>import("./aql-NHA99rjm.js").then(e=>e.a),[],import.meta.url)}),arduino:se("arduino",function(){return G(()=>import("./arduino-By9WEwNm.js").then(e=>e.a),__vite__mapDeps([2,3,4]),import.meta.url)}),arff:se("arff",function(){return G(()=>import("./arff-C3Od5fzD.js").then(e=>e.a),[],import.meta.url)}),asciidoc:se("asciidoc",function(){return G(()=>import("./asciidoc-CHkt7aoP.js").then(e=>e.a),[],import.meta.url)}),asm6502:se("asm6502",function(){return G(()=>import("./asm6502-D01doBIG.js").then(e=>e.a),[],import.meta.url)}),asmatmel:se("asmatmel",function(){return G(()=>import("./asmatmel-BZWnJDVQ.js").then(e=>e.a),[],import.meta.url)}),aspnet:se("aspnet",function(){return G(()=>import("./aspnet-BUaZpVW9.js").then(e=>e.a),__vite__mapDeps([5,6]),import.meta.url)}),autohotkey:se("autohotkey",function(){return G(()=>import("./autohotkey-DF8k-wYg.js").then(e=>e.a),[],import.meta.url)}),autoit:se("autoit",function(){return G(()=>import("./autoit-CW66VRiU.js").then(e=>e.a),[],import.meta.url)}),avisynth:se("avisynth",function(){return G(()=>import("./avisynth--n4NT_ZS.js").then(e=>e.a),[],import.meta.url)}),avroIdl:se("avroIdl",function(){return G(()=>import("./avro-idl-CyMzzmuC.js").then(e=>e.a),[],import.meta.url)}),bash:se("bash",function(){return G(()=>import("./bash-2ves6XUP.js").then(e=>e.b),__vite__mapDeps([7,8]),import.meta.url)}),basic:se("basic",function(){return G(()=>import("./basic-5rgk9rvl.js").then(e=>e.b),__vite__mapDeps([9,10]),import.meta.url)}),batch:se("batch",function(){return G(()=>import("./batch-pwJt9_l2.js").then(e=>e.b),[],import.meta.url)}),bbcode:se("bbcode",function(){return G(()=>import("./bbcode-BhiViXHg.js").then(e=>e.b),[],import.meta.url)}),bicep:se("bicep",function(){return G(()=>import("./bicep-DxiEjUHi.js").then(e=>e.b),[],import.meta.url)}),birb:se("birb",function(){return G(()=>import("./birb-BcPez0r2.js").then(e=>e.b),[],import.meta.url)}),bison:se("bison",function(){return G(()=>import("./bison-BLnkwE9N.js").then(e=>e.b),__vite__mapDeps([11,4]),import.meta.url)}),bnf:se("bnf",function(){return G(()=>import("./bnf-GwCLc994.js").then(e=>e.b),[],import.meta.url)}),brainfuck:se("brainfuck",function(){return G(()=>import("./brainfuck-CW6f1Sgk.js").then(e=>e.b),[],import.meta.url)}),brightscript:se("brightscript",function(){return G(()=>import("./brightscript-wAmgELD8.js").then(e=>e.b),[],import.meta.url)}),bro:se("bro",function(){return G(()=>import("./bro-BjtLtqIE.js").then(e=>e.b),[],import.meta.url)}),bsl:se("bsl",function(){return G(()=>import("./bsl-BBdNqQIj.js").then(e=>e.b),[],import.meta.url)}),c:se("c",function(){return G(()=>import("./c-Bwyo0bV8.js").then(e=>e.c),__vite__mapDeps([12,4]),import.meta.url)}),cfscript:se("cfscript",function(){return G(()=>import("./cfscript-CJjViRT0.js").then(e=>e.c),[],import.meta.url)}),chaiscript:se("chaiscript",function(){return G(()=>import("./chaiscript-CC8YxZA9.js").then(e=>e.c),__vite__mapDeps([13,3,4]),import.meta.url)}),cil:se("cil",function(){return G(()=>import("./cil-CUkA7GSk.js").then(e=>e.c),[],import.meta.url)}),clike:se("clike",function(){return G(()=>import("./clike-CNa1M6mG.js").then(e=>e.c),__vite__mapDeps([14,15]),import.meta.url)}),clojure:se("clojure",function(){return G(()=>import("./clojure-B-UGQ70K.js").then(e=>e.c),[],import.meta.url)}),cmake:se("cmake",function(){return G(()=>import("./cmake-CvzB-hoU.js").then(e=>e.c),[],import.meta.url)}),cobol:se("cobol",function(){return G(()=>import("./cobol-CaIQ2Aqy.js").then(e=>e.c),[],import.meta.url)}),coffeescript:se("coffeescript",function(){return G(()=>import("./coffeescript-C59rJW9X.js").then(e=>e.c),[],import.meta.url)}),concurnas:se("concurnas",function(){return G(()=>import("./concurnas--J6y23eU.js").then(e=>e.c),[],import.meta.url)}),coq:se("coq",function(){return G(()=>import("./coq-DsKa_0E6.js").then(e=>e.c),[],import.meta.url)}),cpp:se("cpp",function(){return G(()=>import("./cpp-k3_0Fban.js").then(e=>e.c),__vite__mapDeps([16,3,4]),import.meta.url)}),crystal:se("crystal",function(){return G(()=>import("./crystal-CDc74P5Y.js").then(e=>e.c),__vite__mapDeps([17,18]),import.meta.url)}),csharp:se("csharp",function(){return G(()=>import("./csharp-CtktuRFB.js").then(e=>e.c),__vite__mapDeps([19,6]),import.meta.url)}),cshtml:se("cshtml",function(){return G(()=>import("./cshtml-CTHNjxV-.js").then(e=>e.c),__vite__mapDeps([20,6]),import.meta.url)}),csp:se("csp",function(){return G(()=>import("./csp-Y4xH8wlS.js").then(e=>e.c),[],import.meta.url)}),cssExtras:se("cssExtras",function(){return G(()=>import("./css-extras-Dp6SYWlw.js").then(e=>e.c),[],import.meta.url)}),css:se("css",function(){return G(()=>import("./css-D5DQ63e2.js").then(e=>e.c),__vite__mapDeps([21,22]),import.meta.url)}),csv:se("csv",function(){return G(()=>import("./csv-Ch4K6EC9.js").then(e=>e.c),[],import.meta.url)}),cypher:se("cypher",function(){return G(()=>import("./cypher-CFMuVWiu.js").then(e=>e.c),[],import.meta.url)}),d:se("d",function(){return G(()=>import("./d-gL5qISEH.js").then(e=>e.d),[],import.meta.url)}),dart:se("dart",function(){return G(()=>import("./dart-Cu56JbO4.js").then(e=>e.d),[],import.meta.url)}),dataweave:se("dataweave",function(){return G(()=>import("./dataweave-CCYoeri5.js").then(e=>e.d),[],import.meta.url)}),dax:se("dax",function(){return G(()=>import("./dax-c8f5mfym.js").then(e=>e.d),[],import.meta.url)}),dhall:se("dhall",function(){return G(()=>import("./dhall-Bf9u9KV4.js").then(e=>e.d),[],import.meta.url)}),diff:se("diff",function(){return G(()=>import("./diff-B_ASjdFR.js").then(e=>e.d),[],import.meta.url)}),django:se("django",function(){return G(()=>import("./django-DWMmkyVv.js").then(e=>e.d),__vite__mapDeps([23,24]),import.meta.url)}),dnsZoneFile:se("dnsZoneFile",function(){return G(()=>import("./dns-zone-file-BIQ0tkGh.js").then(e=>e.d),[],import.meta.url)}),docker:se("docker",function(){return G(()=>import("./docker-BDuCgbM9.js").then(e=>e.d),[],import.meta.url)}),dot:se("dot",function(){return G(()=>import("./dot-D03joFB3.js").then(e=>e.d),[],import.meta.url)}),ebnf:se("ebnf",function(){return G(()=>import("./ebnf-B5mqpyJg.js").then(e=>e.e),[],import.meta.url)}),editorconfig:se("editorconfig",function(){return G(()=>import("./editorconfig-BY1I1W3G.js").then(e=>e.e),[],import.meta.url)}),eiffel:se("eiffel",function(){return G(()=>import("./eiffel-BFcTRGl8.js").then(e=>e.e),[],import.meta.url)}),ejs:se("ejs",function(){return G(()=>import("./ejs-BHF5DtBJ.js").then(e=>e.e),__vite__mapDeps([25,24]),import.meta.url)}),elixir:se("elixir",function(){return G(()=>import("./elixir-BaSxmyWK.js").then(e=>e.e),[],import.meta.url)}),elm:se("elm",function(){return G(()=>import("./elm-BSWywdCW.js").then(e=>e.e),[],import.meta.url)}),erb:se("erb",function(){return G(()=>import("./erb-xZXI1nf1.js").then(e=>e.e),__vite__mapDeps([26,18,24]),import.meta.url)}),erlang:se("erlang",function(){return G(()=>import("./erlang-BiX3rtUb.js").then(e=>e.e),[],import.meta.url)}),etlua:se("etlua",function(){return G(()=>import("./etlua-BZ2nA5J-.js").then(e=>e.e),__vite__mapDeps([27,28,24]),import.meta.url)}),excelFormula:se("excelFormula",function(){return G(()=>import("./excel-formula-D1nIcQyt.js").then(e=>e.e),[],import.meta.url)}),factor:se("factor",function(){return G(()=>import("./factor-DvCAgpak.js").then(e=>e.f),[],import.meta.url)}),falselang:se("falselang",function(){return G(()=>import("./false-DN8rcNu2.js").then(e=>e._),[],import.meta.url)}),firestoreSecurityRules:se("firestoreSecurityRules",function(){return G(()=>import("./firestore-security-rules-jLVt2IsC.js").then(e=>e.f),[],import.meta.url)}),flow:se("flow",function(){return G(()=>import("./flow-C6Qfypir.js").then(e=>e.f),[],import.meta.url)}),fortran:se("fortran",function(){return G(()=>import("./fortran-UkV_iBOq.js").then(e=>e.f),[],import.meta.url)}),fsharp:se("fsharp",function(){return G(()=>import("./fsharp-4cWtXGa2.js").then(e=>e.f),[],import.meta.url)}),ftl:se("ftl",function(){return G(()=>import("./ftl-CM137AB-.js").then(e=>e.f),__vite__mapDeps([29,24]),import.meta.url)}),gap:se("gap",function(){return G(()=>import("./gap-CTUilook.js").then(e=>e.g),[],import.meta.url)}),gcode:se("gcode",function(){return G(()=>import("./gcode-XhsrHqjW.js").then(e=>e.g),[],import.meta.url)}),gdscript:se("gdscript",function(){return G(()=>import("./gdscript-Dh5v2f4B.js").then(e=>e.g),[],import.meta.url)}),gedcom:se("gedcom",function(){return G(()=>import("./gedcom-BrF_vjSE.js").then(e=>e.g),[],import.meta.url)}),gherkin:se("gherkin",function(){return G(()=>import("./gherkin-YxJMr9g3.js").then(e=>e.g),[],import.meta.url)}),git:se("git",function(){return G(()=>import("./git-BnZVJ5cm.js").then(e=>e.g),[],import.meta.url)}),glsl:se("glsl",function(){return G(()=>import("./glsl-BCHTNbxg.js").then(e=>e.g),__vite__mapDeps([30,4]),import.meta.url)}),gml:se("gml",function(){return G(()=>import("./gml-DEEYPBzT.js").then(e=>e.g),[],import.meta.url)}),gn:se("gn",function(){return G(()=>import("./gn-D62FUuZy.js").then(e=>e.g),[],import.meta.url)}),goModule:se("goModule",function(){return G(()=>import("./go-module-B1ZYhDgK.js").then(e=>e.g),[],import.meta.url)}),go:se("go",function(){return G(()=>import("./go-CCvMYMgT.js").then(e=>e.g),[],import.meta.url)}),graphql:se("graphql",function(){return G(()=>import("./graphql-B4D99BRF.js").then(e=>e.g),[],import.meta.url)}),groovy:se("groovy",function(){return G(()=>import("./groovy-ngDvYghR.js").then(e=>e.g),[],import.meta.url)}),haml:se("haml",function(){return G(()=>import("./haml-DShsl3TQ.js").then(e=>e.h),__vite__mapDeps([31,18]),import.meta.url)}),handlebars:se("handlebars",function(){return G(()=>import("./handlebars-B-CfyJwi.js").then(e=>e.h),__vite__mapDeps([32,24]),import.meta.url)}),haskell:se("haskell",function(){return G(()=>import("./haskell-CoNJbgzL.js").then(e=>e.h),__vite__mapDeps([33,34]),import.meta.url)}),haxe:se("haxe",function(){return G(()=>import("./haxe-BpQpMlpH.js").then(e=>e.h),[],import.meta.url)}),hcl:se("hcl",function(){return G(()=>import("./hcl-Cn2A-WYA.js").then(e=>e.h),[],import.meta.url)}),hlsl:se("hlsl",function(){return G(()=>import("./hlsl-DXclGV78.js").then(e=>e.h),__vite__mapDeps([35,4]),import.meta.url)}),hoon:se("hoon",function(){return G(()=>import("./hoon--VxpOQ3j.js").then(e=>e.h),[],import.meta.url)}),hpkp:se("hpkp",function(){return G(()=>import("./hpkp-CJ7114g_.js").then(e=>e.h),[],import.meta.url)}),hsts:se("hsts",function(){return G(()=>import("./hsts-BUzSi62G.js").then(e=>e.h),[],import.meta.url)}),http:se("http",function(){return G(()=>import("./http-2GPrfOqL.js").then(e=>e.h),[],import.meta.url)}),ichigojam:se("ichigojam",function(){return G(()=>import("./ichigojam-1uW54ydk.js").then(e=>e.i),[],import.meta.url)}),icon:se("icon",function(){return G(()=>import("./icon-IkxzinY1.js").then(e=>e.i),[],import.meta.url)}),icuMessageFormat:se("icuMessageFormat",function(){return G(()=>import("./icu-message-format-DevAYLTZ.js").then(e=>e.i),[],import.meta.url)}),idris:se("idris",function(){return G(()=>import("./idris-CdhIQDLP.js").then(e=>e.i),__vite__mapDeps([36,34]),import.meta.url)}),iecst:se("iecst",function(){return G(()=>import("./iecst-C-Kjuhju.js").then(e=>e.i),[],import.meta.url)}),ignore:se("ignore",function(){return G(()=>import("./ignore-CyXXKGcl.js").then(e=>e.i),[],import.meta.url)}),inform7:se("inform7",function(){return G(()=>import("./inform7-D6nPG9cR.js").then(e=>e.i),[],import.meta.url)}),ini:se("ini",function(){return G(()=>import("./ini-D4v6_7-V.js").then(e=>e.i),[],import.meta.url)}),io:se("io",function(){return G(()=>import("./io-DJR-Oh9T.js").then(e=>e.i),[],import.meta.url)}),j:se("j",function(){return G(()=>import("./j-rpsr1NQT.js").then(e=>e.j),[],import.meta.url)}),java:se("java",function(){return G(()=>import("./java-CyIGmbMu.js").then(e=>e.j),__vite__mapDeps([37,38]),import.meta.url)}),javadoc:se("javadoc",function(){return G(()=>import("./javadoc-DNAYiZXn.js").then(e=>e.j),__vite__mapDeps([39,38,40]),import.meta.url)}),javadoclike:se("javadoclike",function(){return G(()=>import("./javadoclike-D7cZYfF8.js").then(e=>e.j),__vite__mapDeps([41,40]),import.meta.url)}),javascript:se("javascript",function(){return G(()=>import("./javascript-D_NU1Kyk.js").then(e=>e.j),__vite__mapDeps([42,43]),import.meta.url)}),javastacktrace:se("javastacktrace",function(){return G(()=>import("./javastacktrace-DG9TtAzL.js").then(e=>e.j),[],import.meta.url)}),jexl:se("jexl",function(){return G(()=>import("./jexl-lQfd1Lkb.js").then(e=>e.j),[],import.meta.url)}),jolie:se("jolie",function(){return G(()=>import("./jolie-DxM1GjRl.js").then(e=>e.j),[],import.meta.url)}),jq:se("jq",function(){return G(()=>import("./jq-CFzwdKlP.js").then(e=>e.j),[],import.meta.url)}),jsExtras:se("jsExtras",function(){return G(()=>import("./js-extras-CRSWuHre.js").then(e=>e.j),[],import.meta.url)}),jsTemplates:se("jsTemplates",function(){return G(()=>import("./js-templates-Bfc02CmR.js").then(e=>e.j),[],import.meta.url)}),jsdoc:se("jsdoc",function(){return G(()=>import("./jsdoc-DuLX6v3Y.js").then(e=>e.j),__vite__mapDeps([44,40,45]),import.meta.url)}),json:se("json",function(){return G(()=>import("./json-C0cQKN0F.js").then(e=>e.j),__vite__mapDeps([46,47]),import.meta.url)}),json5:se("json5",function(){return G(()=>import("./json5-Gchm5mlB.js").then(e=>e.j),__vite__mapDeps([48,47]),import.meta.url)}),jsonp:se("jsonp",function(){return G(()=>import("./jsonp-Z5ZbgHO4.js").then(e=>e.j),__vite__mapDeps([49,47]),import.meta.url)}),jsstacktrace:se("jsstacktrace",function(){return G(()=>import("./jsstacktrace-CYye373e.js").then(e=>e.j),[],import.meta.url)}),jsx:se("jsx",function(){return G(()=>import("./jsx-DLeMJauk.js").then(e=>e.j),__vite__mapDeps([50,51]),import.meta.url)}),julia:se("julia",function(){return G(()=>import("./julia-CmsXcL-N.js").then(e=>e.j),[],import.meta.url)}),keepalived:se("keepalived",function(){return G(()=>import("./keepalived-nJ4sJvm6.js").then(e=>e.k),[],import.meta.url)}),keyman:se("keyman",function(){return G(()=>import("./keyman-C5Pj4IIJ.js").then(e=>e.k),[],import.meta.url)}),kotlin:se("kotlin",function(){return G(()=>import("./kotlin-DpvRDZoA.js").then(e=>e.k),[],import.meta.url)}),kumir:se("kumir",function(){return G(()=>import("./kumir-DWzkqk9L.js").then(e=>e.k),[],import.meta.url)}),kusto:se("kusto",function(){return G(()=>import("./kusto-CNELoNQs.js").then(e=>e.k),[],import.meta.url)}),latex:se("latex",function(){return G(()=>import("./latex-BX_TUh4t.js").then(e=>e.l),[],import.meta.url)}),latte:se("latte",function(){return G(()=>import("./latte-Dz70J0mX.js").then(e=>e.l),__vite__mapDeps([52,24,53]),import.meta.url)}),less:se("less",function(){return G(()=>import("./less-Dj9SkEn3.js").then(e=>e.l),[],import.meta.url)}),lilypond:se("lilypond",function(){return G(()=>import("./lilypond-1zoZeACX.js").then(e=>e.l),__vite__mapDeps([54,55]),import.meta.url)}),liquid:se("liquid",function(){return G(()=>import("./liquid-Bs9suIhM.js").then(e=>e.l),__vite__mapDeps([56,24]),import.meta.url)}),lisp:se("lisp",function(){return G(()=>import("./lisp-B0tW-1Qt.js").then(e=>e.l),[],import.meta.url)}),livescript:se("livescript",function(){return G(()=>import("./livescript-CGVnLnRz.js").then(e=>e.l),[],import.meta.url)}),llvm:se("llvm",function(){return G(()=>import("./llvm-BSuFX6sy.js").then(e=>e.l),[],import.meta.url)}),log:se("log",function(){return G(()=>import("./log-C37aUa02.js").then(e=>e.l),[],import.meta.url)}),lolcode:se("lolcode",function(){return G(()=>import("./lolcode-DeuK4uYH.js").then(e=>e.l),[],import.meta.url)}),lua:se("lua",function(){return G(()=>import("./lua-C5XODOCv.js").then(e=>e.l),__vite__mapDeps([57,28]),import.meta.url)}),magma:se("magma",function(){return G(()=>import("./magma-bJC2nzBZ.js").then(e=>e.m),[],import.meta.url)}),makefile:se("makefile",function(){return G(()=>import("./makefile-DCqQREl2.js").then(e=>e.m),[],import.meta.url)}),markdown:se("markdown",function(){return G(()=>import("./markdown-CAdtP1Hl.js").then(e=>e.m),[],import.meta.url)}),markupTemplating:se("markupTemplating",function(){return G(()=>import("./markup-templating-BArSOTMR.js").then(e=>e.m),__vite__mapDeps([58,24]),import.meta.url)}),markup:se("markup",function(){return G(()=>import("./markup-DKpfVDK2.js").then(e=>e.m),__vite__mapDeps([59,60]),import.meta.url)}),matlab:se("matlab",function(){return G(()=>import("./matlab-Dbcp1Mz7.js").then(e=>e.m),[],import.meta.url)}),maxscript:se("maxscript",function(){return G(()=>import("./maxscript-DO_Ksfb6.js").then(e=>e.m),[],import.meta.url)}),mel:se("mel",function(){return G(()=>import("./mel-aWmO1ZHT.js").then(e=>e.m),[],import.meta.url)}),mermaid:se("mermaid",function(){return G(()=>import("./mermaid-CjCuG-rO.js").then(e=>e.m),[],import.meta.url)}),mizar:se("mizar",function(){return G(()=>import("./mizar-B9qSArMV.js").then(e=>e.m),[],import.meta.url)}),mongodb:se("mongodb",function(){return G(()=>import("./mongodb-XBdRvIxb.js").then(e=>e.m),[],import.meta.url)}),monkey:se("monkey",function(){return G(()=>import("./monkey-Cb9uR72S.js").then(e=>e.m),[],import.meta.url)}),moonscript:se("moonscript",function(){return G(()=>import("./moonscript-C6Ynu-yF.js").then(e=>e.m),[],import.meta.url)}),n1ql:se("n1ql",function(){return G(()=>import("./n1ql-BXCsiWJ1.js").then(e=>e.n),[],import.meta.url)}),n4js:se("n4js",function(){return G(()=>import("./n4js-DhJKzRKp.js").then(e=>e.n),[],import.meta.url)}),nand2tetrisHdl:se("nand2tetrisHdl",function(){return G(()=>import("./nand2tetris-hdl-DRGRHozb.js").then(e=>e.n),[],import.meta.url)}),naniscript:se("naniscript",function(){return G(()=>import("./naniscript-CM-nqxJB.js").then(e=>e.n),[],import.meta.url)}),nasm:se("nasm",function(){return G(()=>import("./nasm-Bb4iFUVk.js").then(e=>e.n),[],import.meta.url)}),neon:se("neon",function(){return G(()=>import("./neon-Dsq4M0Z0.js").then(e=>e.n),[],import.meta.url)}),nevod:se("nevod",function(){return G(()=>import("./nevod-FNDBVyO6.js").then(e=>e.n),[],import.meta.url)}),nginx:se("nginx",function(){return G(()=>import("./nginx-DOquvDwF.js").then(e=>e.n),[],import.meta.url)}),nim:se("nim",function(){return G(()=>import("./nim-CMHpkUbE.js").then(e=>e.n),[],import.meta.url)}),nix:se("nix",function(){return G(()=>import("./nix-BP79qbN8.js").then(e=>e.n),[],import.meta.url)}),nsis:se("nsis",function(){return G(()=>import("./nsis-BbF22jsS.js").then(e=>e.n),[],import.meta.url)}),objectivec:se("objectivec",function(){return G(()=>import("./objectivec-C8A_GSLo.js").then(e=>e.o),__vite__mapDeps([61,4]),import.meta.url)}),ocaml:se("ocaml",function(){return G(()=>import("./ocaml-C8XEXnm3.js").then(e=>e.o),[],import.meta.url)}),opencl:se("opencl",function(){return G(()=>import("./opencl-Bwclr1-q.js").then(e=>e.o),__vite__mapDeps([62,4]),import.meta.url)}),openqasm:se("openqasm",function(){return G(()=>import("./openqasm-Dheq1YzS.js").then(e=>e.o),[],import.meta.url)}),oz:se("oz",function(){return G(()=>import("./oz-GWLoiy_W.js").then(e=>e.o),[],import.meta.url)}),parigp:se("parigp",function(){return G(()=>import("./parigp-Bx5pj1WM.js").then(e=>e.p),[],import.meta.url)}),parser:se("parser",function(){return G(()=>import("./parser-CKGbIv3K.js").then(e=>e.p),[],import.meta.url)}),pascal:se("pascal",function(){return G(()=>import("./pascal-Bv0Mvdur.js").then(e=>e.p),[],import.meta.url)}),pascaligo:se("pascaligo",function(){return G(()=>import("./pascaligo-B2q2OC0f.js").then(e=>e.p),[],import.meta.url)}),pcaxis:se("pcaxis",function(){return G(()=>import("./pcaxis-BYNEOzQC.js").then(e=>e.p),[],import.meta.url)}),peoplecode:se("peoplecode",function(){return G(()=>import("./peoplecode-DzESzOxV.js").then(e=>e.p),[],import.meta.url)}),perl:se("perl",function(){return G(()=>import("./perl-xryVmbKA.js").then(e=>e.p),[],import.meta.url)}),phpExtras:se("phpExtras",function(){return G(()=>import("./php-extras-DTQFp4QA.js").then(e=>e.p),__vite__mapDeps([63,53,24]),import.meta.url)}),php:se("php",function(){return G(()=>import("./php-B5zFi1JN.js").then(e=>e.p),__vite__mapDeps([64,53,24]),import.meta.url)}),phpdoc:se("phpdoc",function(){return G(()=>import("./phpdoc-CLVGEAKP.js").then(e=>e.p),__vite__mapDeps([65,53,24,40]),import.meta.url)}),plsql:se("plsql",function(){return G(()=>import("./plsql-nQvQRBBx.js").then(e=>e.p),__vite__mapDeps([66,1]),import.meta.url)}),powerquery:se("powerquery",function(){return G(()=>import("./powerquery-BlIeoJBN.js").then(e=>e.p),[],import.meta.url)}),powershell:se("powershell",function(){return G(()=>import("./powershell-DqepFzJz.js").then(e=>e.p),[],import.meta.url)}),processing:se("processing",function(){return G(()=>import("./processing-ekqm-wa9.js").then(e=>e.p),[],import.meta.url)}),prolog:se("prolog",function(){return G(()=>import("./prolog-BYRpaQYx.js").then(e=>e.p),[],import.meta.url)}),promql:se("promql",function(){return G(()=>import("./promql-CTal6Yov.js").then(e=>e.p),[],import.meta.url)}),properties:se("properties",function(){return G(()=>import("./properties-Dfwdfq41.js").then(e=>e.p),[],import.meta.url)}),protobuf:se("protobuf",function(){return G(()=>import("./protobuf-2lyP8NY4.js").then(e=>e.p),[],import.meta.url)}),psl:se("psl",function(){return G(()=>import("./psl-rKbsnOQr.js").then(e=>e.p),[],import.meta.url)}),pug:se("pug",function(){return G(()=>import("./pug-CP02H934.js").then(e=>e.p),[],import.meta.url)}),puppet:se("puppet",function(){return G(()=>import("./puppet-B0dP6Ayh.js").then(e=>e.p),[],import.meta.url)}),pure:se("pure",function(){return G(()=>import("./pure-TFDXcsWi.js").then(e=>e.p),[],import.meta.url)}),purebasic:se("purebasic",function(){return G(()=>import("./purebasic-B9PegNm3.js").then(e=>e.p),[],import.meta.url)}),purescript:se("purescript",function(){return G(()=>import("./purescript-BzT_sySt.js").then(e=>e.p),__vite__mapDeps([67,34]),import.meta.url)}),python:se("python",function(){return G(()=>import("./python-rfqRhRfH.js").then(e=>e.p),[],import.meta.url)}),q:se("q",function(){return G(()=>import("./q-Bg79E83T.js").then(e=>e.q),[],import.meta.url)}),qml:se("qml",function(){return G(()=>import("./qml-Di6SdEQm.js").then(e=>e.q),[],import.meta.url)}),qore:se("qore",function(){return G(()=>import("./qore-h1SlzARB.js").then(e=>e.q),[],import.meta.url)}),qsharp:se("qsharp",function(){return G(()=>import("./qsharp-nOQyZ_Sp.js").then(e=>e.q),[],import.meta.url)}),r:se("r",function(){return G(()=>import("./r-Bc3FwOeA.js").then(e=>e.r),[],import.meta.url)}),racket:se("racket",function(){return G(()=>import("./racket-Drq4j1Xy.js").then(e=>e.r),__vite__mapDeps([68,55]),import.meta.url)}),reason:se("reason",function(){return G(()=>import("./reason-CUyqX66W.js").then(e=>e.r),[],import.meta.url)}),regex:se("regex",function(){return G(()=>import("./regex-BvDcrCk9.js").then(e=>e.r),[],import.meta.url)}),rego:se("rego",function(){return G(()=>import("./rego-D-xolyUL.js").then(e=>e.r),[],import.meta.url)}),renpy:se("renpy",function(){return G(()=>import("./renpy-C47pwzUH.js").then(e=>e.r),[],import.meta.url)}),rest:se("rest",function(){return G(()=>import("./rest-uzT-PmOc.js").then(e=>e.r),[],import.meta.url)}),rip:se("rip",function(){return G(()=>import("./rip-DIfJV8jy.js").then(e=>e.r),[],import.meta.url)}),roboconf:se("roboconf",function(){return G(()=>import("./roboconf-BATyA3GQ.js").then(e=>e.r),[],import.meta.url)}),robotframework:se("robotframework",function(){return G(()=>import("./robotframework-CDeie-TI.js").then(e=>e.r),[],import.meta.url)}),ruby:se("ruby",function(){return G(()=>import("./ruby-DkrNYOiX.js").then(e=>e.r),__vite__mapDeps([69,18]),import.meta.url)}),rust:se("rust",function(){return G(()=>import("./rust-drVGG_9d.js").then(e=>e.r),[],import.meta.url)}),sas:se("sas",function(){return G(()=>import("./sas-DOiau82I.js").then(e=>e.s),[],import.meta.url)}),sass:se("sass",function(){return G(()=>import("./sass-B2y3_XLY.js").then(e=>e.s),[],import.meta.url)}),scala:se("scala",function(){return G(()=>import("./scala-ho3qoh4X.js").then(e=>e.s),__vite__mapDeps([70,38]),import.meta.url)}),scheme:se("scheme",function(){return G(()=>import("./scheme-7ciw-HnV.js").then(e=>e.s),__vite__mapDeps([71,55]),import.meta.url)}),scss:se("scss",function(){return G(()=>import("./scss-pWS_fuF-.js").then(e=>e.s),[],import.meta.url)}),shellSession:se("shellSession",function(){return G(()=>import("./shell-session-CgJSBarC.js").then(e=>e.s),__vite__mapDeps([72,8]),import.meta.url)}),smali:se("smali",function(){return G(()=>import("./smali-BDVe0_mg.js").then(e=>e.s),[],import.meta.url)}),smalltalk:se("smalltalk",function(){return G(()=>import("./smalltalk-msO8YMwZ.js").then(e=>e.s),[],import.meta.url)}),smarty:se("smarty",function(){return G(()=>import("./smarty-BbRSF6YR.js").then(e=>e.s),__vite__mapDeps([73,24]),import.meta.url)}),sml:se("sml",function(){return G(()=>import("./sml-CdynI_ti.js").then(e=>e.s),[],import.meta.url)}),solidity:se("solidity",function(){return G(()=>import("./solidity-R1ZFg6dl.js").then(e=>e.s),[],import.meta.url)}),solutionFile:se("solutionFile",function(){return G(()=>import("./solution-file-Bxf_0jQ9.js").then(e=>e.s),[],import.meta.url)}),soy:se("soy",function(){return G(()=>import("./soy-236XFjnx.js").then(e=>e.s),__vite__mapDeps([74,24]),import.meta.url)}),sparql:se("sparql",function(){return G(()=>import("./sparql-Dd9LET0z.js").then(e=>e.s),__vite__mapDeps([75,76]),import.meta.url)}),splunkSpl:se("splunkSpl",function(){return G(()=>import("./splunk-spl-CxoVenxM.js").then(e=>e.s),[],import.meta.url)}),sqf:se("sqf",function(){return G(()=>import("./sqf-JyexFgRc.js").then(e=>e.s),[],import.meta.url)}),sql:se("sql",function(){return G(()=>import("./sql-B7zZIgUj.js").then(e=>e.s),__vite__mapDeps([77,1]),import.meta.url)}),squirrel:se("squirrel",function(){return G(()=>import("./squirrel-M1prubG8.js").then(e=>e.s),[],import.meta.url)}),stan:se("stan",function(){return G(()=>import("./stan-Cx9BwNXx.js").then(e=>e.s),[],import.meta.url)}),stylus:se("stylus",function(){return G(()=>import("./stylus-CsDiSCDH.js").then(e=>e.s),[],import.meta.url)}),swift:se("swift",function(){return G(()=>import("./swift-c4-D4LN8.js").then(e=>e.s),[],import.meta.url)}),systemd:se("systemd",function(){return G(()=>import("./systemd-BPfErfPd.js").then(e=>e.s),[],import.meta.url)}),t4Cs:se("t4Cs",function(){return G(()=>import("./t4-cs-Dmdb1ptn.js").then(e=>e.t),__vite__mapDeps([78,79,6]),import.meta.url)}),t4Templating:se("t4Templating",function(){return G(()=>import("./t4-templating-18KDs2s6.js").then(e=>e.t),__vite__mapDeps([80,79]),import.meta.url)}),t4Vb:se("t4Vb",function(){return G(()=>import("./t4-vb-Cj_ty2Bq.js").then(e=>e.t),__vite__mapDeps([81,79,82,10]),import.meta.url)}),tap:se("tap",function(){return G(()=>import("./tap-CgQPhjrO.js").then(e=>e.t),__vite__mapDeps([83,84]),import.meta.url)}),tcl:se("tcl",function(){return G(()=>import("./tcl-jz5V4l46.js").then(e=>e.t),[],import.meta.url)}),textile:se("textile",function(){return G(()=>import("./textile-aAu3Nopk.js").then(e=>e.t),[],import.meta.url)}),toml:se("toml",function(){return G(()=>import("./toml-ERxQOHP_.js").then(e=>e.t),[],import.meta.url)}),tremor:se("tremor",function(){return G(()=>import("./tremor-CPScYQMQ.js").then(e=>e.t),[],import.meta.url)}),tsx:se("tsx",function(){return G(()=>import("./tsx-DJ9ZJ5Vn.js").then(e=>e.t),__vite__mapDeps([85,51,45]),import.meta.url)}),tt2:se("tt2",function(){return G(()=>import("./tt2-DBiuDt9b.js").then(e=>e.t),__vite__mapDeps([86,24]),import.meta.url)}),turtle:se("turtle",function(){return G(()=>import("./turtle-BZJq147J.js").then(e=>e.t),__vite__mapDeps([87,76]),import.meta.url)}),twig:se("twig",function(){return G(()=>import("./twig-D9NUKKRr.js").then(e=>e.t),__vite__mapDeps([88,24]),import.meta.url)}),typescript:se("typescript",function(){return G(()=>import("./typescript-ChowMqhi.js").then(e=>e.t),__vite__mapDeps([89,45]),import.meta.url)}),typoscript:se("typoscript",function(){return G(()=>import("./typoscript-DbNdYYfz.js").then(e=>e.t),[],import.meta.url)}),unrealscript:se("unrealscript",function(){return G(()=>import("./unrealscript-CTDgRg5K.js").then(e=>e.u),[],import.meta.url)}),uorazor:se("uorazor",function(){return G(()=>import("./uorazor-BPxNIHOv.js").then(e=>e.u),[],import.meta.url)}),uri:se("uri",function(){return G(()=>import("./uri-D-J0jc7x.js").then(e=>e.u),[],import.meta.url)}),v:se("v",function(){return G(()=>import("./v-CWKZhyYe.js").then(e=>e.v),[],import.meta.url)}),vala:se("vala",function(){return G(()=>import("./vala-Bl_fbgFX.js").then(e=>e.v),[],import.meta.url)}),vbnet:se("vbnet",function(){return G(()=>import("./vbnet-BSAbvEo2.js").then(e=>e.v),__vite__mapDeps([90,82,10]),import.meta.url)}),velocity:se("velocity",function(){return G(()=>import("./velocity-BfAQLXen.js").then(e=>e.v),[],import.meta.url)}),verilog:se("verilog",function(){return G(()=>import("./verilog-hKkJRXq3.js").then(e=>e.v),[],import.meta.url)}),vhdl:se("vhdl",function(){return G(()=>import("./vhdl-DJ69D5nO.js").then(e=>e.v),[],import.meta.url)}),vim:se("vim",function(){return G(()=>import("./vim-4Wvkf4Y_.js").then(e=>e.v),[],import.meta.url)}),visualBasic:se("visualBasic",function(){return G(()=>import("./visual-basic-CrOjjN8g.js").then(e=>e.v),[],import.meta.url)}),warpscript:se("warpscript",function(){return G(()=>import("./warpscript-BKzgrhyC.js").then(e=>e.w),[],import.meta.url)}),wasm:se("wasm",function(){return G(()=>import("./wasm-Cxt9vdd4.js").then(e=>e.w),[],import.meta.url)}),webIdl:se("webIdl",function(){return G(()=>import("./web-idl-t1AVyAT2.js").then(e=>e.w),[],import.meta.url)}),wiki:se("wiki",function(){return G(()=>import("./wiki-Bev3kc4u.js").then(e=>e.w),[],import.meta.url)}),wolfram:se("wolfram",function(){return G(()=>import("./wolfram-DsVRp6LK.js").then(e=>e.w),[],import.meta.url)}),wren:se("wren",function(){return G(()=>import("./wren-CNnCDr6o.js").then(e=>e.w),[],import.meta.url)}),xeora:se("xeora",function(){return G(()=>import("./xeora-CMBpCcty.js").then(e=>e.x),[],import.meta.url)}),xmlDoc:se("xmlDoc",function(){return G(()=>import("./xml-doc-DWVVMoo3.js").then(e=>e.x),[],import.meta.url)}),xojo:se("xojo",function(){return G(()=>import("./xojo-BbRsPyCL.js").then(e=>e.x),[],import.meta.url)}),xquery:se("xquery",function(){return G(()=>import("./xquery-Bl0aJ2u7.js").then(e=>e.x),[],import.meta.url)}),yaml:se("yaml",function(){return G(()=>import("./yaml-DxEpisQp.js").then(e=>e.y),__vite__mapDeps([91,84]),import.meta.url)}),yang:se("yang",function(){return G(()=>import("./yang-COJ3YcNh.js").then(e=>e.y),[],import.meta.url)}),zig:se("zig",function(){return G(()=>import("./zig-MoXVJ0ax.js").then(e=>e.z),[],import.meta.url)})},Nbt=$bt({loader:function(){return G(()=>import("./core-ChRNmOZr.js").then(t=>t.c),__vite__mapDeps([92,60,22,15,43]),import.meta.url).then(function(t){return t.default||t})},isLanguageRegistered:function(t,r){return t.registered(r)},languageLoaders:Ibt,registerLanguage:function(t,r,n){return t.register(n)}});var Rbt=e=>t=>{const r=({components:{Pre:n,Code:i},language:s,code:o})=>p.jsx(e,{PreTag:n,CodeTag:i,...t,language:s,children:o});return r.displayName="PrismSyntaxHighlighter",r},Mbt=Rbt(Nbt);const BDe=1024;let jbt=0,Uc=class{constructor(t,r){this.from=t,this.to=r}};class hr{constructor(t={}){this.id=jbt++,this.perNode=!!t.perNode,this.deserialize=t.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")}),this.combine=t.combine||null}add(t){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof t!="function"&&(t=Rs.match(t)),r=>{let n=t(r);return n===void 0?null:[this,n]}}}hr.closedBy=new hr({deserialize:e=>e.split(" ")});hr.openedBy=new hr({deserialize:e=>e.split(" ")});hr.group=new hr({deserialize:e=>e.split(" ")});hr.isolate=new hr({deserialize:e=>{if(e&&e!="rtl"&&e!="ltr"&&e!="auto")throw new RangeError("Invalid value for isolate: "+e);return e||"auto"}});hr.contextHash=new hr({perNode:!0});hr.lookAhead=new hr({perNode:!0});hr.mounted=new hr({perNode:!0});class Bk{constructor(t,r,n){this.tree=t,this.overlay=r,this.parser=n}static get(t){return t&&t.props&&t.props[hr.mounted.id]}}const Fbt=Object.create(null);class Rs{constructor(t,r,n,i=0){this.name=t,this.props=r,this.id=n,this.flags=i}static define(t){let r=t.props&&t.props.length?Object.create(null):Fbt,n=(t.top?1:0)|(t.skipped?2:0)|(t.error?4:0)|(t.name==null?8:0),i=new Rs(t.name||"",r,t.id,n);if(t.props){for(let s of t.props)if(Array.isArray(s)||(s=s(i)),s){if(s[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");r[s[0].id]=s[1]}}return i}prop(t){return this.props[t.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(t){if(typeof t=="string"){if(this.name==t)return!0;let r=this.prop(hr.group);return r?r.indexOf(t)>-1:!1}return this.id==t}static match(t){let r=Object.create(null);for(let n in t)for(let i of n.split(" "))r[i]=t[n];return n=>{for(let i=n.prop(hr.group),s=-1;s<(i?i.length:0);s++){let o=r[s<0?n.name:i[s]];if(o)return o}}}}Rs.none=new Rs("",Object.create(null),0,8);class Bw{constructor(t){this.types=t;for(let r=0;r<t.length;r++)if(t[r].id!=r)throw new RangeError("Node type ids should correspond to array positions when creating a node set")}extend(...t){let r=[];for(let n of this.types){let i=null;for(let s of t){let o=s(n);if(o){i||(i=Object.assign({},n.props));let a=o[1],l=o[0];l.combine&&l.id in i&&(a=l.combine(i[l.id],a)),i[l.id]=a}}r.push(i?new Rs(n.name,i,n.id,n.flags):n)}return new Bw(r)}}const O2=new WeakMap,Ble=new WeakMap;var pi;(function(e){e[e.ExcludeBuffers=1]="ExcludeBuffers",e[e.IncludeAnonymous=2]="IncludeAnonymous",e[e.IgnoreMounts=4]="IgnoreMounts",e[e.IgnoreOverlays=8]="IgnoreOverlays"})(pi||(pi={}));class Ur{constructor(t,r,n,i,s){if(this.type=t,this.children=r,this.positions=n,this.length=i,this.props=null,s&&s.length){this.props=Object.create(null);for(let[o,a]of s)this.props[typeof o=="number"?o:o.id]=a}}toString(){let t=Bk.get(this);if(t&&!t.overlay)return t.tree.toString();let r="";for(let n of this.children){let i=n.toString();i&&(r&&(r+=","),r+=i)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(r.length?"("+r+")":""):r}cursor(t=0){return new AI(this.topNode,t)}cursorAt(t,r=0,n=0){let i=O2.get(this)||this.topNode,s=new AI(i);return s.moveTo(t,r),O2.set(this,s._tree),s}get topNode(){return new Go(this,0,0,null)}resolve(t,r=0){let n=Vk(O2.get(this)||this.topNode,t,r,!1);return O2.set(this,n),n}resolveInner(t,r=0){let n=Vk(Ble.get(this)||this.topNode,t,r,!0);return Ble.set(this,n),n}resolveStack(t,r=0){return Bbt(this,t,r)}iterate(t){let{enter:r,leave:n,from:i=0,to:s=this.length}=t,o=t.mode||0,a=(o&pi.IncludeAnonymous)>0;for(let l=this.cursor(o|pi.IncludeAnonymous);;){let c=!1;if(l.from<=s&&l.to>=i&&(!a&&l.type.isAnonymous||r(l)!==!1)){if(l.firstChild())continue;c=!0}for(;c&&n&&(a||!l.type.isAnonymous)&&n(l),!l.nextSibling();){if(!l.parent())return;c=!0}}}prop(t){return t.perNode?this.props?this.props[t.id]:void 0:this.type.prop(t)}get propValues(){let t=[];if(this.props)for(let r in this.props)t.push([+r,this.props[r]]);return t}balance(t={}){return this.children.length<=8?this:CG(Rs.none,this.children,this.positions,0,this.children.length,0,this.length,(r,n,i)=>new Ur(this.type,r,n,i,this.propValues),t.makeTree||((r,n,i)=>new Ur(Rs.none,r,n,i)))}static build(t){return Vbt(t)}}Ur.empty=new Ur(Rs.none,[],[],0);class kG{constructor(t,r){this.buffer=t,this.index=r}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new kG(this.buffer,this.index)}}class Ig{constructor(t,r,n){this.buffer=t,this.length=r,this.set=n}get type(){return Rs.none}toString(){let t=[];for(let r=0;r<this.buffer.length;)t.push(this.childString(r)),r=this.buffer[r+3];return t.join(",")}childString(t){let r=this.buffer[t],n=this.buffer[t+3],i=this.set.types[r],s=i.name;if(/\W/.test(s)&&!i.isError&&(s=JSON.stringify(s)),t+=4,n==t)return s;let o=[];for(;t<n;)o.push(this.childString(t)),t=this.buffer[t+3];return s+"("+o.join(",")+")"}findChild(t,r,n,i,s){let{buffer:o}=this,a=-1;for(let l=t;l!=r&&!(VDe(s,i,o[l+1],o[l+2])&&(a=l,n>0));l=o[l+3]);return a}slice(t,r,n){let i=this.buffer,s=new Uint16Array(r-t),o=0;for(let a=t,l=0;a<r;){s[l++]=i[a++],s[l++]=i[a++]-n;let c=s[l++]=i[a++]-n;s[l++]=i[a++]-t,o=Math.max(o,c)}return new Ig(s,o,this.set)}}function VDe(e,t,r,n){switch(e){case-2:return r<t;case-1:return n>=t&&r<t;case 0:return r<t&&n>t;case 1:return r<=t&&n>t;case 2:return n>t;case 4:return!0}}function Vk(e,t,r,n){for(var i;e.from==e.to||(r<1?e.from>=t:e.from>t)||(r>-1?e.to<=t:e.to<t);){let o=!n&&e instanceof Go&&e.index<0?null:e.parent;if(!o)return e;e=o}let s=n?0:pi.IgnoreOverlays;if(n)for(let o=e,a=o.parent;a;o=a,a=o.parent)o instanceof Go&&o.index<0&&((i=a.enter(t,r,s))===null||i===void 0?void 0:i.from)!=o.from&&(e=a);for(;;){let o=e.enter(t,r,s);if(!o)return e;e=o}}class UDe{cursor(t=0){return new AI(this,t)}getChild(t,r=null,n=null){let i=Vle(this,t,r,n);return i.length?i[0]:null}getChildren(t,r=null,n=null){return Vle(this,t,r,n)}resolve(t,r=0){return Vk(this,t,r,!1)}resolveInner(t,r=0){return Vk(this,t,r,!0)}matchContext(t){return tV(this.parent,t)}enterUnfinishedNodesBefore(t){let r=this.childBefore(t),n=this;for(;r;){let i=r.lastChild;if(!i||i.to!=r.to)break;i.type.isError&&i.from==i.to?(n=r,r=i.prevSibling):r=i}return n}get node(){return this}get next(){return this.parent}}class Go extends UDe{constructor(t,r,n,i){super(),this._tree=t,this.from=r,this.index=n,this._parent=i}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(t,r,n,i,s=0){for(let o=this;;){for(let{children:a,positions:l}=o._tree,c=r>0?a.length:-1;t!=c;t+=r){let u=a[t],d=l[t]+o.from;if(VDe(i,n,d,d+u.length)){if(u instanceof Ig){if(s&pi.ExcludeBuffers)continue;let f=u.findChild(0,u.buffer.length,r,n-d,i);if(f>-1)return new vf(new Lbt(o,u,t,d),null,f)}else if(s&pi.IncludeAnonymous||!u.type.isAnonymous||EG(u)){let f;if(!(s&pi.IgnoreMounts)&&(f=Bk.get(u))&&!f.overlay)return new Go(f.tree,d,t,o);let m=new Go(u,d,t,o);return s&pi.IncludeAnonymous||!m.type.isAnonymous?m:m.nextChild(r<0?u.children.length-1:0,r,n,i)}}}if(s&pi.IncludeAnonymous||!o.type.isAnonymous||(o.index>=0?t=o.index+r:t=r<0?-1:o._parent._tree.children.length,o=o._parent,!o))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(t){return this.nextChild(0,1,t,2)}childBefore(t){return this.nextChild(this._tree.children.length-1,-1,t,-2)}enter(t,r,n=0){let i;if(!(n&pi.IgnoreOverlays)&&(i=Bk.get(this._tree))&&i.overlay){let s=t-this.from;for(let{from:o,to:a}of i.overlay)if((r>0?o<=s:o<s)&&(r<0?a>=s:a>s))return new Go(i.tree,i.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,t,r,n)}nextSignificantParent(){let t=this;for(;t.type.isAnonymous&&t._parent;)t=t._parent;return t}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function Vle(e,t,r,n){let i=e.cursor(),s=[];if(!i.firstChild())return s;if(r!=null){for(let o=!1;!o;)if(o=i.type.is(r),!i.nextSibling())return s}for(;;){if(n!=null&&i.type.is(n))return s;if(i.type.is(t)&&s.push(i.node),!i.nextSibling())return n==null?s:[]}}function tV(e,t,r=t.length-1){for(let n=e;r>=0;n=n.parent){if(!n)return!1;if(!n.type.isAnonymous){if(t[r]&&t[r]!=n.name)return!1;r--}}return!0}class Lbt{constructor(t,r,n,i){this.parent=t,this.buffer=r,this.index=n,this.start=i}}class vf extends UDe{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(t,r,n){super(),this.context=t,this._parent=r,this.index=n,this.type=t.buffer.set.types[t.buffer.buffer[n]]}child(t,r,n){let{buffer:i}=this.context,s=i.findChild(this.index+4,i.buffer[this.index+3],t,r-this.context.start,n);return s<0?null:new vf(this.context,this,s)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(t){return this.child(1,t,2)}childBefore(t){return this.child(-1,t,-2)}enter(t,r,n=0){if(n&pi.ExcludeBuffers)return null;let{buffer:i}=this.context,s=i.findChild(this.index+4,i.buffer[this.index+3],r>0?1:-1,t-this.context.start,r);return s<0?null:new vf(this.context,this,s)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(t){return this._parent?null:this.context.parent.nextChild(this.context.index+t,t,0,4)}get nextSibling(){let{buffer:t}=this.context,r=t.buffer[this.index+3];return r<(this._parent?t.buffer[this._parent.index+3]:t.buffer.length)?new vf(this.context,this._parent,r):this.externalSibling(1)}get prevSibling(){let{buffer:t}=this.context,r=this._parent?this._parent.index+4:0;return this.index==r?this.externalSibling(-1):new vf(this.context,this._parent,t.findChild(r,this.index,-1,0,4))}get tree(){return null}toTree(){let t=[],r=[],{buffer:n}=this.context,i=this.index+4,s=n.buffer[this.index+3];if(s>i){let o=n.buffer[this.index+1];t.push(n.slice(i,s,o)),r.push(0)}return new Ur(this.type,t,r,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function QDe(e){if(!e.length)return null;let t=0,r=e[0];for(let s=1;s<e.length;s++){let o=e[s];(o.from>r.from||o.to<r.to)&&(r=o,t=s)}let n=r instanceof Go&&r.index<0?null:r.parent,i=e.slice();return n?i[t]=n:i.splice(t,1),new zbt(i,r)}class zbt{constructor(t,r){this.heads=t,this.node=r}get next(){return QDe(this.heads)}}function Bbt(e,t,r){let n=e.resolveInner(t,r),i=null;for(let s=n instanceof Go?n:n.context.parent;s;s=s.parent)if(s.index<0){let o=s.parent;(i||(i=[n])).push(o.resolve(t,r)),s=o}else{let o=Bk.get(s.tree);if(o&&o.overlay&&o.overlay[0].from<=t&&o.overlay[o.overlay.length-1].to>=t){let a=new Go(o.tree,o.overlay[0].from+s.from,-1,s);(i||(i=[n])).push(Vk(a,t,r,!1))}}return i?QDe(i):n}class AI{get name(){return this.type.name}constructor(t,r=0){if(this.mode=r,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,t instanceof Go)this.yieldNode(t);else{this._tree=t.context.parent,this.buffer=t.context;for(let n=t._parent;n;n=n._parent)this.stack.unshift(n.index);this.bufferNode=t,this.yieldBuf(t.index)}}yieldNode(t){return t?(this._tree=t,this.type=t.type,this.from=t.from,this.to=t.to,!0):!1}yieldBuf(t,r){this.index=t;let{start:n,buffer:i}=this.buffer;return this.type=r||i.set.types[i.buffer[t]],this.from=n+i.buffer[t+1],this.to=n+i.buffer[t+2],!0}yield(t){return t?t instanceof Go?(this.buffer=null,this.yieldNode(t)):(this.buffer=t.context,this.yieldBuf(t.index,t.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(t,r,n){if(!this.buffer)return this.yield(this._tree.nextChild(t<0?this._tree._tree.children.length-1:0,t,r,n,this.mode));let{buffer:i}=this.buffer,s=i.findChild(this.index+4,i.buffer[this.index+3],t,r-this.buffer.start,n);return s<0?!1:(this.stack.push(this.index),this.yieldBuf(s))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(t){return this.enterChild(1,t,2)}childBefore(t){return this.enterChild(-1,t,-2)}enter(t,r,n=this.mode){return this.buffer?n&pi.ExcludeBuffers?!1:this.enterChild(1,t,r):this.yield(this._tree.enter(t,r,n))}parent(){if(!this.buffer)return this.yieldNode(this.mode&pi.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let t=this.mode&pi.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(t)}sibling(t){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+t,t,0,4,this.mode)):!1;let{buffer:r}=this.buffer,n=this.stack.length-1;if(t<0){let i=n<0?0:this.stack[n]+4;if(this.index!=i)return this.yieldBuf(r.findChild(i,this.index,-1,0,4))}else{let i=r.buffer[this.index+3];if(i<(n<0?r.buffer.length:r.buffer[this.stack[n]+3]))return this.yieldBuf(i)}return n<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+t,t,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(t){let r,n,{buffer:i}=this;if(i){if(t>0){if(this.index<i.buffer.buffer.length)return!1}else for(let s=0;s<this.index;s++)if(i.buffer.buffer[s+3]<this.index)return!1;({index:r,parent:n}=i)}else({index:r,_parent:n}=this._tree);for(;n;{index:r,_parent:n}=n)if(r>-1)for(let s=r+t,o=t<0?-1:n._tree.children.length;s!=o;s+=t){let a=n._tree.children[s];if(this.mode&pi.IncludeAnonymous||a instanceof Ig||!a.type.isAnonymous||EG(a))return!1}return!0}move(t,r){if(r&&this.enterChild(t,0,4))return!0;for(;;){if(this.sibling(t))return!0;if(this.atLastNode(t)||!this.parent())return!1}}next(t=!0){return this.move(1,t)}prev(t=!0){return this.move(-1,t)}moveTo(t,r=0){for(;(this.from==this.to||(r<1?this.from>=t:this.from>t)||(r>-1?this.to<=t:this.to<t))&&this.parent(););for(;this.enterChild(1,t,r););return this}get node(){if(!this.buffer)return this._tree;let t=this.bufferNode,r=null,n=0;if(t&&t.context==this.buffer)e:for(let i=this.index,s=this.stack.length;s>=0;){for(let o=t;o;o=o._parent)if(o.index==i){if(i==this.index)return o;r=o,n=s+1;break e}i=this.stack[--s]}for(let i=n;i<this.stack.length;i++)r=new vf(this.buffer,r,this.stack[i]);return this.bufferNode=new vf(this.buffer,r,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(t,r){for(let n=0;;){let i=!1;if(this.type.isAnonymous||t(this)!==!1){if(this.firstChild()){n++;continue}this.type.isAnonymous||(i=!0)}for(;;){if(i&&r&&r(this),i=this.type.isAnonymous,!n)return;if(this.nextSibling())break;this.parent(),n--,i=!0}}}matchContext(t){if(!this.buffer)return tV(this.node.parent,t);let{buffer:r}=this.buffer,{types:n}=r.set;for(let i=t.length-1,s=this.stack.length-1;i>=0;s--){if(s<0)return tV(this._tree,t,i);let o=n[r.buffer[this.stack[s]]];if(!o.isAnonymous){if(t[i]&&t[i]!=o.name)return!1;i--}}return!0}}function EG(e){return e.children.some(t=>t instanceof Ig||!t.type.isAnonymous||EG(t))}function Vbt(e){var t;let{buffer:r,nodeSet:n,maxBufferLength:i=BDe,reused:s=[],minRepeatType:o=n.types.length}=e,a=Array.isArray(r)?new kG(r,r.length):r,l=n.types,c=0,u=0;function d(C,T,P,A,R,M){let{id:z,start:U,end:V,size:L}=a,Q=u,F=c;if(L<0)if(a.next(),L==-1){let J=s[z];P.push(J),A.push(U-C);return}else if(L==-3){c=z;return}else if(L==-4){u=z;return}else throw new RangeError(`Unrecognized record size: ${L}`);let N=l[z],I,H,B=U-C;if(V-U<=i&&(H=b(a.pos-T,R))){let J=new Uint16Array(H.size-H.skip),q=a.pos-H.size,j=J.length;for(;a.pos>q;)j=w(H.start,J,j);I=new Ig(J,V-H.start,n),B=H.start-C}else{let J=a.pos-L;a.next();let q=[],j=[],W=z>=o?z:-1,K=0,ne=V;for(;a.pos>J;)W>=0&&a.id==W&&a.size>=0?(a.end<=ne-i&&(g(q,j,U,K,a.end,ne,W,Q,F),K=q.length,ne=a.end),a.next()):M>2500?f(U,J,q,j):d(U,J,q,j,W,M+1);if(W>=0&&K>0&&K<q.length&&g(q,j,U,K,U,ne,W,Q,F),q.reverse(),j.reverse(),W>-1&&K>0){let X=m(N,F);I=CG(N,q,j,0,q.length,0,V-U,X,X)}else I=v(N,q,j,V-U,Q-V,F)}P.push(I),A.push(B)}function f(C,T,P,A){let R=[],M=0,z=-1;for(;a.pos>T;){let{id:U,start:V,end:L,size:Q}=a;if(Q>4)a.next();else{if(z>-1&&V<z)break;z<0&&(z=L-i),R.push(U,V,L),M++,a.next()}}if(M){let U=new Uint16Array(M*4),V=R[R.length-2];for(let L=R.length-3,Q=0;L>=0;L-=3)U[Q++]=R[L],U[Q++]=R[L+1]-V,U[Q++]=R[L+2]-V,U[Q++]=Q;P.push(new Ig(U,R[2]-V,n)),A.push(V-C)}}function m(C,T){return(P,A,R)=>{let M=0,z=P.length-1,U,V;if(z>=0&&(U=P[z])instanceof Ur){if(!z&&U.type==C&&U.length==R)return U;(V=U.prop(hr.lookAhead))&&(M=A[z]+U.length+V)}return v(C,P,A,R,M,T)}}function g(C,T,P,A,R,M,z,U,V){let L=[],Q=[];for(;C.length>A;)L.push(C.pop()),Q.push(T.pop()+P-R);C.push(v(n.types[z],L,Q,M-R,U-M,V)),T.push(R-P)}function v(C,T,P,A,R,M,z){if(M){let U=[hr.contextHash,M];z=z?[U].concat(z):[U]}if(R>25){let U=[hr.lookAhead,R];z=z?[U].concat(z):[U]}return new Ur(C,T,P,A,z)}function b(C,T){let P=a.fork(),A=0,R=0,M=0,z=P.end-i,U={size:0,start:0,skip:0};e:for(let V=P.pos-C;P.pos>V;){let L=P.size;if(P.id==T&&L>=0){U.size=A,U.start=R,U.skip=M,M+=4,A+=4,P.next();continue}let Q=P.pos-L;if(L<0||Q<V||P.start<z)break;let F=P.id>=o?4:0,N=P.start;for(P.next();P.pos>Q;){if(P.size<0)if(P.size==-3)F+=4;else break e;else P.id>=o&&(F+=4);P.next()}R=N,A+=L,M+=F}return(T<0||A==C)&&(U.size=A,U.start=R,U.skip=M),U.size>4?U:void 0}function w(C,T,P){let{id:A,start:R,end:M,size:z}=a;if(a.next(),z>=0&&A<o){let U=P;if(z>4){let V=a.pos-(z-4);for(;a.pos>V;)P=w(C,T,P)}T[--P]=U,T[--P]=M-C,T[--P]=R-C,T[--P]=A}else z==-3?c=A:z==-4&&(u=A);return P}let S=[],O=[];for(;a.pos>0;)d(e.start||0,e.bufferStart||0,S,O,-1,0);let k=(t=e.length)!==null&&t!==void 0?t:S.length?O[0]+S[0].length:0;return new Ur(l[e.topID],S.reverse(),O.reverse(),k)}const Ule=new WeakMap;function f$(e,t){if(!e.isAnonymous||t instanceof Ig||t.type!=e)return 1;let r=Ule.get(t);if(r==null){r=1;for(let n of t.children){if(n.type!=e||!(n instanceof Ur)){r=1;break}r+=f$(e,n)}Ule.set(t,r)}return r}function CG(e,t,r,n,i,s,o,a,l){let c=0;for(let g=n;g<i;g++)c+=f$(e,t[g]);let u=Math.ceil(c*1.5/8),d=[],f=[];function m(g,v,b,w,S){for(let O=b;O<w;){let k=O,C=v[O],T=f$(e,g[O]);for(O++;O<w;O++){let P=f$(e,g[O]);if(T+P>=u)break;T+=P}if(O==k+1){if(T>u){let P=g[k];m(P.children,P.positions,0,P.children.length,v[k]+S);continue}d.push(g[k])}else{let P=v[O-1]+g[O-1].length-C;d.push(CG(e,g,v,k,O,C,P,null,l))}f.push(C+S-s)}}return m(t,r,n,i,0),(a||l)(d,f,o)}class ZDe{constructor(){this.map=new WeakMap}setBuffer(t,r,n){let i=this.map.get(t);i||this.map.set(t,i=new Map),i.set(r,n)}getBuffer(t,r){let n=this.map.get(t);return n&&n.get(r)}set(t,r){t instanceof vf?this.setBuffer(t.context.buffer,t.index,r):t instanceof Go&&this.map.set(t.tree,r)}get(t){return t instanceof vf?this.getBuffer(t.context.buffer,t.index):t instanceof Go?this.map.get(t.tree):void 0}cursorSet(t,r){t.buffer?this.setBuffer(t.buffer.buffer,t.index,r):this.map.set(t.tree,r)}cursorGet(t){return t.buffer?this.getBuffer(t.buffer.buffer,t.index):this.map.get(t.tree)}}class Oh{constructor(t,r,n,i,s=!1,o=!1){this.from=t,this.to=r,this.tree=n,this.offset=i,this.open=(s?1:0)|(o?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(t,r=[],n=!1){let i=[new Oh(0,t.length,t,0,!1,n)];for(let s of r)s.to>t.length&&i.push(s);return i}static applyChanges(t,r,n=128){if(!r.length)return t;let i=[],s=1,o=t.length?t[0]:null;for(let a=0,l=0,c=0;;a++){let u=a<r.length?r[a]:null,d=u?u.fromA:1e9;if(d-l>=n)for(;o&&o.from<d;){let f=o;if(l>=f.from||d<=f.to||c){let m=Math.max(f.from,l)-c,g=Math.min(f.to,d)-c;f=m>=g?null:new Oh(m,g,f.tree,f.offset+c,a>0,!!u)}if(f&&i.push(f),o.to>d)break;o=s<t.length?t[s++]:null}if(!u)break;l=u.toA,c=u.toA-u.toB}return i}}class ZN{startParse(t,r,n){return typeof t=="string"&&(t=new Ubt(t)),n=n?n.length?n.map(i=>new Uc(i.from,i.to)):[new Uc(0,0)]:[new Uc(0,t.length)],this.createParse(t,r||[],n)}parse(t,r,n){let i=this.startParse(t,r,n);for(;;){let s=i.advance();if(s)return s}}}class Ubt{constructor(t){this.string=t}get length(){return this.string.length}chunk(t){return this.string.slice(t)}get lineChunks(){return!1}read(t,r){return this.string.slice(t,r)}}function qDe(e){return(t,r,n,i)=>new Zbt(t,e,r,n,i)}class Qle{constructor(t,r,n,i,s){this.parser=t,this.parse=r,this.overlay=n,this.target=i,this.from=s}}function Zle(e){if(!e.length||e.some(t=>t.from>=t.to))throw new RangeError("Invalid inner parse ranges given: "+JSON.stringify(e))}class Qbt{constructor(t,r,n,i,s,o,a){this.parser=t,this.predicate=r,this.mounts=n,this.index=i,this.start=s,this.target=o,this.prev=a,this.depth=0,this.ranges=[]}}const rV=new hr({perNode:!0});class Zbt{constructor(t,r,n,i,s){this.nest=r,this.input=n,this.fragments=i,this.ranges=s,this.inner=[],this.innerDone=0,this.baseTree=null,this.stoppedAt=null,this.baseParse=t}advance(){if(this.baseParse){let n=this.baseParse.advance();if(!n)return null;if(this.baseParse=null,this.baseTree=n,this.startInner(),this.stoppedAt!=null)for(let i of this.inner)i.parse.stopAt(this.stoppedAt)}if(this.innerDone==this.inner.length){let n=this.baseTree;return this.stoppedAt!=null&&(n=new Ur(n.type,n.children,n.positions,n.length,n.propValues.concat([[rV,this.stoppedAt]]))),n}let t=this.inner[this.innerDone],r=t.parse.advance();if(r){this.innerDone++;let n=Object.assign(Object.create(null),t.target.props);n[hr.mounted.id]=new Bk(r,t.overlay,t.parser),t.target.props=n}return null}get parsedPos(){if(this.baseParse)return 0;let t=this.input.length;for(let r=this.innerDone;r<this.inner.length;r++)this.inner[r].from<t&&(t=Math.min(t,this.inner[r].parse.parsedPos));return t}stopAt(t){if(this.stoppedAt=t,this.baseParse)this.baseParse.stopAt(t);else for(let r=this.innerDone;r<this.inner.length;r++)this.inner[r].parse.stopAt(t)}startInner(){let t=new Wbt(this.fragments),r=null,n=null,i=new AI(new Go(this.baseTree,this.ranges[0].from,0,null),pi.IncludeAnonymous|pi.IgnoreMounts);e:for(let s,o;;){let a=!0,l;if(this.stoppedAt!=null&&i.from>=this.stoppedAt)a=!1;else if(t.hasNode(i)){if(r){let c=r.mounts.find(u=>u.frag.from<=i.from&&u.frag.to>=i.to&&u.mount.overlay);if(c)for(let u of c.mount.overlay){let d=u.from+c.pos,f=u.to+c.pos;d>=i.from&&f<=i.to&&!r.ranges.some(m=>m.from<f&&m.to>d)&&r.ranges.push({from:d,to:f})}}a=!1}else if(n&&(o=qbt(n.ranges,i.from,i.to)))a=o!=2;else if(!i.type.isAnonymous&&(s=this.nest(i,this.input))&&(i.from<i.to||!s.overlay)){i.tree||(Hbt(i),r&&r.depth++,n&&n.depth++);let c=t.findMounts(i.from,s.parser);if(typeof s.overlay=="function")r=new Qbt(s.parser,s.overlay,c,this.inner.length,i.from,i.tree,r);else{let u=Wle(this.ranges,s.overlay||(i.from<i.to?[new Uc(i.from,i.to)]:[]));u.length&&Zle(u),(u.length||!s.overlay)&&this.inner.push(new Qle(s.parser,u.length?s.parser.startParse(this.input,Gle(c,u),u):s.parser.startParse(""),s.overlay?s.overlay.map(d=>new Uc(d.from-i.from,d.to-i.from)):null,i.tree,u.length?u[0].from:i.from)),s.overlay?u.length&&(n={ranges:u,depth:0,prev:n}):a=!1}}else if(r&&(l=r.predicate(i))&&(l===!0&&(l=new Uc(i.from,i.to)),l.from<l.to)){let c=r.ranges.length-1;c>=0&&r.ranges[c].to==l.from?r.ranges[c]={from:r.ranges[c].from,to:l.to}:r.ranges.push(l)}if(a&&i.firstChild())r&&r.depth++,n&&n.depth++;else for(;!i.nextSibling();){if(!i.parent())break e;if(r&&!--r.depth){let c=Wle(this.ranges,r.ranges);c.length&&(Zle(c),this.inner.splice(r.index,0,new Qle(r.parser,r.parser.startParse(this.input,Gle(r.mounts,c),c),r.ranges.map(u=>new Uc(u.from-r.start,u.to-r.start)),r.target,c[0].from))),r=r.prev}n&&!--n.depth&&(n=n.prev)}}}}function qbt(e,t,r){for(let n of e){if(n.from>=r)break;if(n.to>t)return n.from<=t&&n.to>=r?2:1}return 0}function qle(e,t,r,n,i,s){if(t<r){let o=e.buffer[t+1];n.push(e.slice(t,r,o)),i.push(o-s)}}function Hbt(e){let{node:t}=e,r=[],n=t.context.buffer;do r.push(e.index),e.parent();while(!e.tree);let i=e.tree,s=i.children.indexOf(n),o=i.children[s],a=o.buffer,l=[s];function c(u,d,f,m,g,v){let b=r[v],w=[],S=[];qle(o,u,b,w,S,m);let O=a[b+1],k=a[b+2];l.push(w.length);let C=v?c(b+4,a[b+3],o.set.types[a[b]],O,k-O,v-1):t.toTree();return w.push(C),S.push(O-m),qle(o,a[b+3],d,w,S,m),new Ur(f,w,S,g)}i.children[s]=c(0,a.length,Rs.none,0,o.length,r.length-1);for(let u of l){let d=e.tree.children[u],f=e.tree.positions[u];e.yield(new Go(d,f+e.from,u,e._tree))}}class Hle{constructor(t,r){this.offset=r,this.done=!1,this.cursor=t.cursor(pi.IncludeAnonymous|pi.IgnoreMounts)}moveTo(t){let{cursor:r}=this,n=t-this.offset;for(;!this.done&&r.from<n;)r.to>=t&&r.enter(n,1,pi.IgnoreOverlays|pi.ExcludeBuffers)||r.next(!1)||(this.done=!0)}hasNode(t){if(this.moveTo(t.from),!this.done&&this.cursor.from+this.offset==t.from&&this.cursor.tree)for(let r=this.cursor.tree;;){if(r==t.tree)return!0;if(r.children.length&&r.positions[0]==0&&r.children[0]instanceof Ur)r=r.children[0];else break}return!1}}let Wbt=class{constructor(t){var r;if(this.fragments=t,this.curTo=0,this.fragI=0,t.length){let n=this.curFrag=t[0];this.curTo=(r=n.tree.prop(rV))!==null&&r!==void 0?r:n.to,this.inner=new Hle(n.tree,-n.offset)}else this.curFrag=this.inner=null}hasNode(t){for(;this.curFrag&&t.from>=this.curTo;)this.nextFrag();return this.curFrag&&this.curFrag.from<=t.from&&this.curTo>=t.to&&this.inner.hasNode(t)}nextFrag(){var t;if(this.fragI++,this.fragI==this.fragments.length)this.curFrag=this.inner=null;else{let r=this.curFrag=this.fragments[this.fragI];this.curTo=(t=r.tree.prop(rV))!==null&&t!==void 0?t:r.to,this.inner=new Hle(r.tree,-r.offset)}}findMounts(t,r){var n;let i=[];if(this.inner){this.inner.cursor.moveTo(t,1);for(let s=this.inner.cursor.node;s;s=s.parent){let o=(n=s.tree)===null||n===void 0?void 0:n.prop(hr.mounted);if(o&&o.parser==r)for(let a=this.fragI;a<this.fragments.length;a++){let l=this.fragments[a];if(l.from>=s.to)break;l.tree==this.curFrag.tree&&i.push({frag:l,pos:s.from-l.offset,mount:o})}}}return i}};function Wle(e,t){let r=null,n=t;for(let i=1,s=0;i<e.length;i++){let o=e[i-1].to,a=e[i].from;for(;s<n.length;s++){let l=n[s];if(l.from>=a)break;l.to<=o||(r||(n=r=t.slice()),l.from<o?(r[s]=new Uc(l.from,o),l.to>a&&r.splice(s+1,0,new Uc(a,l.to))):l.to>a?r[s--]=new Uc(a,l.to):r.splice(s--,1))}}return n}function Gbt(e,t,r,n){let i=0,s=0,o=!1,a=!1,l=-1e9,c=[];for(;;){let u=i==e.length?1e9:o?e[i].to:e[i].from,d=s==t.length?1e9:a?t[s].to:t[s].from;if(o!=a){let f=Math.max(l,r),m=Math.min(u,d,n);f<m&&c.push(new Uc(f,m))}if(l=Math.min(u,d),l==1e9)break;u==l&&(o?(o=!1,i++):o=!0),d==l&&(a?(a=!1,s++):a=!0)}return c}function Gle(e,t){let r=[];for(let{pos:n,mount:i,frag:s}of e){let o=n+(i.overlay?i.overlay[0].from:0),a=o+i.tree.length,l=Math.max(s.from,o),c=Math.min(s.to,a);if(i.overlay){let u=i.overlay.map(f=>new Uc(f.from+n,f.to+n)),d=Gbt(t,u,l,c);for(let f=0,m=l;;f++){let g=f==d.length,v=g?c:d[f].from;if(v>m&&r.push(new Oh(m,v,i.tree,-o,s.from>=m||s.openStart,s.to<=v||s.openEnd)),g)break;m=d[f].to}}else r.push(new Oh(l,c,i.tree,-o,s.from>=o||s.openStart,s.to<=a||s.openEnd))}return r}var Xbt={},Xle={};let Ybt=class nV{constructor(t,r,n,i,s,o,a,l,c,u=0,d){this.p=t,this.stack=r,this.state=n,this.reducePos=i,this.pos=s,this.score=o,this.buffer=a,this.bufferBase=l,this.curContext=c,this.lookAhead=u,this.parent=d}toString(){return`[${this.stack.filter((t,r)=>r%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(t,r,n=0){let i=t.parser.context;return new nV(t,[],r,n,n,0,[],0,i?new Yle(i,i.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(t,r){this.stack.push(this.state,r,this.bufferBase+this.buffer.length),this.state=t}reduce(t){var r;let n=t>>19,i=t&65535,{parser:s}=this.p,o=this.reducePos<this.pos-25;o&&this.setLookAhead(this.pos);let a=s.dynamicPrecedence(i);if(a&&(this.score+=a),n==0){this.pushState(s.getGoto(this.state,i,!0),this.reducePos),i<s.minRepeatTerm&&this.storeNode(i,this.reducePos,this.reducePos,o?8:4,!0),this.reduceContext(i,this.reducePos);return}let l=this.stack.length-(n-1)*3-(t&262144?6:0),c=l?this.stack[l-2]:this.p.ranges[0].from,u=this.reducePos-c;u>=2e3&&!(!((r=this.p.parser.nodeSet.types[i])===null||r===void 0)&&r.isAnonymous)&&(c==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=u):this.p.lastBigReductionSize<u&&(this.p.bigReductionCount=1,this.p.lastBigReductionStart=c,this.p.lastBigReductionSize=u));let d=l?this.stack[l-1]:0,f=this.bufferBase+this.buffer.length-d;if(i<s.minRepeatTerm||t&131072){let m=s.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(i,c,m,f+4,!0)}if(t&262144)this.state=this.stack[l];else{let m=this.stack[l-3];this.state=s.getGoto(m,i,!0)}for(;this.stack.length>l;)this.stack.pop();this.reduceContext(i,c)}storeNode(t,r,n,i=4,s=!1){if(t==0&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){let o=this,a=this.buffer.length;if(a==0&&o.parent&&(a=o.bufferBase-o.parent.bufferBase,o=o.parent),a>0&&o.buffer[a-4]==0&&o.buffer[a-1]>-1){if(r==n)return;if(o.buffer[a-2]>=r){o.buffer[a-2]=n;return}}}if(!s||this.pos==n)this.buffer.push(t,r,n,i);else{let o=this.buffer.length;if(o>0&&this.buffer[o-4]!=0){let a=!1;for(let l=o;l>0&&this.buffer[l-2]>n;l-=4)if(this.buffer[l-1]>=0){a=!0;break}if(a)for(;o>0&&this.buffer[o-2]>n;)this.buffer[o]=this.buffer[o-4],this.buffer[o+1]=this.buffer[o-3],this.buffer[o+2]=this.buffer[o-2],this.buffer[o+3]=this.buffer[o-1],o-=4,i>4&&(i-=4)}this.buffer[o]=t,this.buffer[o+1]=r,this.buffer[o+2]=n,this.buffer[o+3]=i}}shift(t,r,n,i){if(t&131072)this.pushState(t&65535,this.pos);else if((t&262144)==0){let s=t,{parser:o}=this.p;(i>this.pos||r<=o.maxNode)&&(this.pos=i,o.stateFlag(s,1)||(this.reducePos=i)),this.pushState(s,n),this.shiftContext(r,n),r<=o.maxNode&&this.buffer.push(r,n,i,4)}else this.pos=i,this.shiftContext(r,n),r<=this.p.parser.maxNode&&this.buffer.push(r,n,i,4)}apply(t,r,n,i){t&65536?this.reduce(t):this.shift(t,r,n,i)}useNode(t,r){let n=this.p.reused.length-1;(n<0||this.p.reused[n]!=t)&&(this.p.reused.push(t),n++);let i=this.pos;this.reducePos=this.pos=i+t.length,this.pushState(r,i),this.buffer.push(n,i,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,t,this,this.p.stream.reset(this.pos-t.length)))}split(){let t=this,r=t.buffer.length;for(;r>0&&t.buffer[r-2]>t.reducePos;)r-=4;let n=t.buffer.slice(r),i=t.bufferBase+r;for(;t&&i==t.bufferBase;)t=t.parent;return new nV(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,n,i,this.curContext,this.lookAhead,t)}recoverByDelete(t,r){let n=t<=this.p.parser.maxNode;n&&this.storeNode(t,this.pos,r,4),this.storeNode(0,this.pos,r,n?8:4),this.pos=this.reducePos=r,this.score-=190}canShift(t){for(let r=new Jbt(this);;){let n=this.p.parser.stateSlot(r.state,4)||this.p.parser.hasAction(r.state,t);if(n==0)return!1;if((n&65536)==0)return!0;r.reduce(n)}}recoverByInsert(t){if(this.stack.length>=300)return[];let r=this.p.parser.nextStates(this.state);if(r.length>8||this.stack.length>=120){let i=[];for(let s=0,o;s<r.length;s+=2)(o=r[s+1])!=this.state&&this.p.parser.hasAction(o,t)&&i.push(r[s],o);if(this.stack.length<120)for(let s=0;i.length<8&&s<r.length;s+=2){let o=r[s+1];i.some((a,l)=>l&1&&a==o)||i.push(r[s],o)}r=i}let n=[];for(let i=0;i<r.length&&n.length<4;i+=2){let s=r[i+1];if(s==this.state)continue;let o=this.split();o.pushState(s,this.pos),o.storeNode(0,o.pos,o.pos,4,!0),o.shiftContext(r[i],this.pos),o.reducePos=this.pos,o.score-=200,n.push(o)}return n}forceReduce(){let{parser:t}=this.p,r=t.stateSlot(this.state,5);if((r&65536)==0)return!1;if(!t.validAction(this.state,r)){let n=r>>19,i=r&65535,s=this.stack.length-n*3;if(s<0||t.getGoto(this.stack[s],i,!1)<0){let o=this.findForcedReduction();if(o==null)return!1;r=o}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(r),!0}findForcedReduction(){let{parser:t}=this.p,r=[],n=(i,s)=>{if(!r.includes(i))return r.push(i),t.allActions(i,o=>{if(!(o&393216))if(o&65536){let a=(o>>19)-s;if(a>1){let l=o&65535,c=this.stack.length-a*3;if(c>=0&&t.getGoto(this.stack[c],l,!1)>=0)return a<<19|65536|l}}else{let a=n(o,s+1);if(a!=null)return a}})};return n(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:t}=this.p;return t.data[t.stateSlot(this.state,1)]==65535&&!t.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(t){if(this.state!=t.state||this.stack.length!=t.stack.length)return!1;for(let r=0;r<this.stack.length;r+=3)if(this.stack[r]!=t.stack[r])return!1;return!0}get parser(){return this.p.parser}dialectEnabled(t){return this.p.parser.dialect.flags[t]}shiftContext(t,r){this.curContext&&this.updateContext(this.curContext.tracker.shift(this.curContext.context,t,this,this.p.stream.reset(r)))}reduceContext(t,r){this.curContext&&this.updateContext(this.curContext.tracker.reduce(this.curContext.context,t,this,this.p.stream.reset(r)))}emitContext(){let t=this.buffer.length-1;(t<0||this.buffer[t]!=-3)&&this.buffer.push(this.curContext.hash,this.pos,this.pos,-3)}emitLookAhead(){let t=this.buffer.length-1;(t<0||this.buffer[t]!=-4)&&this.buffer.push(this.lookAhead,this.pos,this.pos,-4)}updateContext(t){if(t!=this.curContext.context){let r=new Yle(this.curContext.tracker,t);r.hash!=this.curContext.hash&&this.emitContext(),this.curContext=r}}setLookAhead(t){t>this.lookAhead&&(this.emitLookAhead(),this.lookAhead=t)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}};class Yle{constructor(t,r){this.tracker=t,this.context=r,this.hash=t.strict?t.hash(r):0}}class Jbt{constructor(t){this.start=t,this.state=t.state,this.stack=t.stack,this.base=this.stack.length}reduce(t){let r=t&65535,n=t>>19;n==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(n-1)*3;let i=this.start.p.parser.getGoto(this.stack[this.base-3],r,!0);this.state=i}}class PI{constructor(t,r,n){this.stack=t,this.pos=r,this.index=n,this.buffer=t.buffer,this.index==0&&this.maybeNext()}static create(t,r=t.bufferBase+t.buffer.length){return new PI(t,r,r-t.bufferBase)}maybeNext(){let t=this.stack.parent;t!=null&&(this.index=this.stack.bufferBase-t.bufferBase,this.stack=t,this.buffer=t.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new PI(this.stack,this.pos,this.index)}}function m_(e,t=Uint16Array){if(typeof e!="string")return e;let r=null;for(let n=0,i=0;n<e.length;){let s=0;for(;;){let o=e.charCodeAt(n++),a=!1;if(o==126){s=65535;break}o>=92&&o--,o>=34&&o--;let l=o-32;if(l>=46&&(l-=46,a=!0),s+=l,a)break;s*=46}r?r[i++]=s:r=new t(s)}return r}class p${constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const Jle=new p$;class Kbt{constructor(t,r){this.input=t,this.ranges=r,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=Jle,this.rangeIndex=0,this.pos=this.chunkPos=r[0].from,this.range=r[0],this.end=r[r.length-1].to,this.readNext()}resolveOffset(t,r){let n=this.range,i=this.rangeIndex,s=this.pos+t;for(;s<n.from;){if(!i)return null;let o=this.ranges[--i];s-=n.from-o.to,n=o}for(;r<0?s>n.to:s>=n.to;){if(i==this.ranges.length-1)return null;let o=this.ranges[++i];s+=o.from-n.to,n=o}return s}clipPos(t){if(t>=this.range.from&&t<this.range.to)return t;for(let r of this.ranges)if(r.to>t)return Math.max(t,r.from);return this.end}peek(t){let r=this.chunkOff+t,n,i;if(r>=0&&r<this.chunk.length)n=this.pos+t,i=this.chunk.charCodeAt(r);else{let s=this.resolveOffset(t,1);if(s==null)return-1;if(n=s,n>=this.chunk2Pos&&n<this.chunk2Pos+this.chunk2.length)i=this.chunk2.charCodeAt(n-this.chunk2Pos);else{let o=this.rangeIndex,a=this.range;for(;a.to<=n;)a=this.ranges[++o];this.chunk2=this.input.chunk(this.chunk2Pos=n),n+this.chunk2.length>a.to&&(this.chunk2=this.chunk2.slice(0,a.to-n)),i=this.chunk2.charCodeAt(0)}}return n>=this.token.lookAhead&&(this.token.lookAhead=n+1),i}acceptToken(t,r=0){let n=r?this.resolveOffset(r,-1):this.pos;if(n==null||n<this.token.start)throw new RangeError("Token end out of bounds");this.token.value=t,this.token.end=n}acceptTokenTo(t,r){this.token.value=t,this.token.end=r}getChunk(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){let{chunk:t,chunkPos:r}=this;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=t,this.chunk2Pos=r,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;let t=this.input.chunk(this.pos),r=this.pos+t.length;this.chunk=r>this.range.to?t.slice(0,this.range.to-this.pos):t,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(t=1){for(this.chunkOff+=t;this.pos+t>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();t-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=t,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(t,r){if(r?(this.token=r,r.start=t,r.lookAhead=t+1,r.value=r.extended=-1):this.token=Jle,this.pos!=t){if(this.pos=t,t==this.end)return this.setDone(),this;for(;t<this.range.from;)this.range=this.ranges[--this.rangeIndex];for(;t>=this.range.to;)this.range=this.ranges[++this.rangeIndex];t>=this.chunkPos&&t<this.chunkPos+this.chunk.length?this.chunkOff=t-this.chunkPos:(this.chunk="",this.chunkOff=0),this.readNext()}return this}read(t,r){if(t>=this.chunkPos&&r<=this.chunkPos+this.chunk.length)return this.chunk.slice(t-this.chunkPos,r-this.chunkPos);if(t>=this.chunk2Pos&&r<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(t-this.chunk2Pos,r-this.chunk2Pos);if(t>=this.range.from&&r<=this.range.to)return this.input.read(t,r);let n="";for(let i of this.ranges){if(i.from>=r)break;i.to>t&&(n+=this.input.read(Math.max(i.from,t),Math.min(i.to,r)))}return n}}class Ux{constructor(t,r){this.data=t,this.id=r}token(t,r){let{parser:n}=r.p;HDe(this.data,t,r,this.id,n.data,n.tokenPrecTable)}}Ux.prototype.contextual=Ux.prototype.fallback=Ux.prototype.extend=!1;class $I{constructor(t,r,n){this.precTable=r,this.elseToken=n,this.data=typeof t=="string"?m_(t):t}token(t,r){let n=t.pos,i=0;for(;;){let s=t.next<0,o=t.resolveOffset(1,1);if(HDe(this.data,t,r,0,this.data,this.precTable),t.token.value>-1)break;if(this.elseToken==null)return;if(s||i++,o==null)break;t.reset(o,t.token)}i&&(t.reset(n,t.token),t.acceptToken(this.elseToken,i))}}$I.prototype.contextual=Ux.prototype.fallback=Ux.prototype.extend=!1;class bc{constructor(t,r={}){this.token=t,this.contextual=!!r.contextual,this.fallback=!!r.fallback,this.extend=!!r.extend}}function HDe(e,t,r,n,i,s){let o=0,a=1<<n,{dialect:l}=r.p.parser;e:for(;(a&e[o])!=0;){let c=e[o+1];for(let m=o+3;m<c;m+=2)if((e[m+1]&a)>0){let g=e[m];if(l.allows(g)&&(t.token.value==-1||t.token.value==g||ext(g,t.token.value,i,s))){t.acceptToken(g);break}}let u=t.next,d=0,f=e[o+2];if(t.next<0&&f>d&&e[c+f*3-3]==65535){o=e[c+f*3-1];continue e}for(;d<f;){let m=d+f>>1,g=c+m+(m<<1),v=e[g],b=e[g+1]||65536;if(u<v)f=m;else if(u>=b)d=m+1;else{o=e[g+2],t.advance();continue e}}break}}function Kle(e,t,r){for(let n=t,i;(i=e[n])!=65535;n++)if(i==r)return n-t;return-1}function ext(e,t,r,n){let i=Kle(r,n,t);return i<0||Kle(r,n,e)<i}const Pl=typeof Xbt<"u"&&Xle&&/\bparse\b/.test(Xle.LOG);let Z9=null;function ece(e,t,r){let n=e.cursor(pi.IncludeAnonymous);for(n.moveTo(t);;)if(!(r<0?n.childBefore(t):n.childAfter(t)))for(;;){if((r<0?n.to<t:n.from>t)&&!n.type.isError)return r<0?Math.max(0,Math.min(n.to-1,t-25)):Math.min(e.length,Math.max(n.from+1,t+25));if(r<0?n.prevSibling():n.nextSibling())break;if(!n.parent())return r<0?0:e.length}}let txt=class{constructor(t,r){this.fragments=t,this.nodeSet=r,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let t=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(t){for(this.safeFrom=t.openStart?ece(t.tree,t.from+t.offset,1)-t.offset:t.from,this.safeTo=t.openEnd?ece(t.tree,t.to+t.offset,-1)-t.offset:t.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(t.tree),this.start.push(-t.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(t){if(t<this.nextStart)return null;for(;this.fragment&&this.safeTo<=t;)this.nextFragment();if(!this.fragment)return null;for(;;){let r=this.trees.length-1;if(r<0)return this.nextFragment(),null;let n=this.trees[r],i=this.index[r];if(i==n.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}let s=n.children[i],o=this.start[r]+n.positions[i];if(o>t)return this.nextStart=o,null;if(s instanceof Ur){if(o==t){if(o<this.safeFrom)return null;let a=o+s.length;if(a<=this.safeTo){let l=s.prop(hr.lookAhead);if(!l||a+l<this.fragment.to)return s}}this.index[r]++,o+s.length>=Math.max(this.safeFrom,t)&&(this.trees.push(s),this.start.push(o),this.index.push(0))}else this.index[r]++,this.nextStart=o+s.length}}};class rxt{constructor(t,r){this.stream=r,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=t.tokenizers.map(n=>new p$)}getActions(t){let r=0,n=null,{parser:i}=t.p,{tokenizers:s}=i,o=i.stateSlot(t.state,3),a=t.curContext?t.curContext.hash:0,l=0;for(let c=0;c<s.length;c++){if((1<<c&o)==0)continue;let u=s[c],d=this.tokens[c];if(!(n&&!u.fallback)&&((u.contextual||d.start!=t.pos||d.mask!=o||d.context!=a)&&(this.updateCachedToken(d,u,t),d.mask=o,d.context=a),d.lookAhead>d.end+25&&(l=Math.max(d.lookAhead,l)),d.value!=0)){let f=r;if(d.extended>-1&&(r=this.addActions(t,d.extended,d.end,r)),r=this.addActions(t,d.value,d.end,r),!u.extend&&(n=d,r>f))break}}for(;this.actions.length>r;)this.actions.pop();return l&&t.setLookAhead(l),!n&&t.pos==this.stream.end&&(n=new p$,n.value=t.p.parser.eofTerm,n.start=n.end=t.pos,r=this.addActions(t,n.value,n.end,r)),this.mainToken=n,this.actions}getMainToken(t){if(this.mainToken)return this.mainToken;let r=new p$,{pos:n,p:i}=t;return r.start=n,r.end=Math.min(n+1,i.stream.end),r.value=n==i.stream.end?i.parser.eofTerm:0,r}updateCachedToken(t,r,n){let i=this.stream.clipPos(n.pos);if(r.token(this.stream.reset(i,t),n),t.value>-1){let{parser:s}=n.p;for(let o=0;o<s.specialized.length;o++)if(s.specialized[o]==t.value){let a=s.specializers[o](this.stream.read(t.start,t.end),n);if(a>=0&&n.p.parser.dialect.allows(a>>1)){(a&1)==0?t.value=a>>1:t.extended=a>>1;break}}}else t.value=0,t.end=this.stream.clipPos(i+1)}putAction(t,r,n,i){for(let s=0;s<i;s+=3)if(this.actions[s]==t)return i;return this.actions[i++]=t,this.actions[i++]=r,this.actions[i++]=n,i}addActions(t,r,n,i){let{state:s}=t,{parser:o}=t.p,{data:a}=o;for(let l=0;l<2;l++)for(let c=o.stateSlot(s,l?2:1);;c+=3){if(a[c]==65535)if(a[c+1]==1)c=uh(a,c+2);else{i==0&&a[c+1]==2&&(i=this.putAction(uh(a,c+2),r,n,i));break}a[c]==r&&(i=this.putAction(uh(a,c+1),r,n,i))}return i}}let nxt=class{constructor(t,r,n,i){this.parser=t,this.input=r,this.ranges=i,this.recovering=0,this.nextStackID=9812,this.minStackPos=0,this.reused=[],this.stoppedAt=null,this.lastBigReductionStart=-1,this.lastBigReductionSize=0,this.bigReductionCount=0,this.stream=new Kbt(r,i),this.tokens=new rxt(t,this.stream),this.topTerm=t.top[1];let{from:s}=i[0];this.stacks=[Ybt.start(this,t.top[0],s)],this.fragments=n.length&&this.stream.end-s>t.bufferLength*4?new txt(n,t.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let t=this.stacks,r=this.minStackPos,n=this.stacks=[],i,s;if(this.bigReductionCount>300&&t.length==1){let[o]=t;for(;o.forceReduce()&&o.stack.length&&o.stack[o.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let o=0;o<t.length;o++){let a=t[o];for(;;){if(this.tokens.mainToken=null,a.pos>r)n.push(a);else{if(this.advanceStack(a,n,t))continue;{i||(i=[],s=[]),i.push(a);let l=this.tokens.getMainToken(a);s.push(l.value,l.end)}}break}}if(!n.length){let o=i&&sxt(i);if(o)return Pl&&console.log("Finish with "+this.stackID(o)),this.stackToTree(o);if(this.parser.strict)throw Pl&&i&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+r);this.recovering||(this.recovering=5)}if(this.recovering&&i){let o=this.stoppedAt!=null&&i[0].pos>this.stoppedAt?i[0]:this.runRecovery(i,s,n);if(o)return Pl&&console.log("Force-finish "+this.stackID(o)),this.stackToTree(o.forceAll())}if(this.recovering){let o=this.recovering==1?1:this.recovering*3;if(n.length>o)for(n.sort((a,l)=>l.score-a.score);n.length>o;)n.pop();n.some(a=>a.reducePos>r)&&this.recovering--}else if(n.length>1){e:for(let o=0;o<n.length-1;o++){let a=n[o];for(let l=o+1;l<n.length;l++){let c=n[l];if(a.sameState(c)||a.buffer.length>500&&c.buffer.length>500)if((a.score-c.score||a.buffer.length-c.buffer.length)>0)n.splice(l--,1);else{n.splice(o--,1);continue e}}}n.length>12&&n.splice(12,n.length-12)}this.minStackPos=n[0].pos;for(let o=1;o<n.length;o++)n[o].pos<this.minStackPos&&(this.minStackPos=n[o].pos);return null}stopAt(t){if(this.stoppedAt!=null&&this.stoppedAt<t)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=t}advanceStack(t,r,n){let i=t.pos,{parser:s}=this,o=Pl?this.stackID(t)+" -> ":"";if(this.stoppedAt!=null&&i>this.stoppedAt)return t.forceReduce()?t:null;if(this.fragments){let c=t.curContext&&t.curContext.tracker.strict,u=c?t.curContext.hash:0;for(let d=this.fragments.nodeAt(i);d;){let f=this.parser.nodeSet.types[d.type.id]==d.type?s.getGoto(t.state,d.type.id):-1;if(f>-1&&d.length&&(!c||(d.prop(hr.contextHash)||0)==u))return t.useNode(d,f),Pl&&console.log(o+this.stackID(t)+` (via reuse of ${s.getName(d.type.id)})`),!0;if(!(d instanceof Ur)||d.children.length==0||d.positions[0]>0)break;let m=d.children[0];if(m instanceof Ur&&d.positions[0]==0)d=m;else break}}let a=s.stateSlot(t.state,4);if(a>0)return t.reduce(a),Pl&&console.log(o+this.stackID(t)+` (via always-reduce ${s.getName(a&65535)})`),!0;if(t.stack.length>=8400)for(;t.stack.length>6e3&&t.forceReduce(););let l=this.tokens.getActions(t);for(let c=0;c<l.length;){let u=l[c++],d=l[c++],f=l[c++],m=c==l.length||!n,g=m?t:t.split(),v=this.tokens.mainToken;if(g.apply(u,d,v?v.start:g.pos,f),Pl&&console.log(o+this.stackID(g)+` (via ${(u&65536)==0?"shift":`reduce of ${s.getName(u&65535)}`} for ${s.getName(d)} @ ${i}${g==t?"":", split"})`),m)return!0;g.pos>i?r.push(g):n.push(g)}return!1}advanceFully(t,r){let n=t.pos;for(;;){if(!this.advanceStack(t,null,null))return!1;if(t.pos>n)return tce(t,r),!0}}runRecovery(t,r,n){let i=null,s=!1;for(let o=0;o<t.length;o++){let a=t[o],l=r[o<<1],c=r[(o<<1)+1],u=Pl?this.stackID(a)+" -> ":"";if(a.deadEnd&&(s||(s=!0,a.restart(),Pl&&console.log(u+this.stackID(a)+" (restarted)"),this.advanceFully(a,n))))continue;let d=a.split(),f=u;for(let m=0;d.forceReduce()&&m<10&&(Pl&&console.log(f+this.stackID(d)+" (via force-reduce)"),!this.advanceFully(d,n));m++)Pl&&(f=this.stackID(d)+" -> ");for(let m of a.recoverByInsert(l))Pl&&console.log(u+this.stackID(m)+" (via recover-insert)"),this.advanceFully(m,n);this.stream.end>a.pos?(c==a.pos&&(c++,l=0),a.recoverByDelete(l,c),Pl&&console.log(u+this.stackID(a)+` (via recover-delete ${this.parser.getName(l)})`),tce(a,n)):(!i||i.score<a.score)&&(i=a)}return i}stackToTree(t){return t.close(),Ur.build({buffer:PI.create(t),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:t.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}stackID(t){let r=(Z9||(Z9=new WeakMap)).get(t);return r||Z9.set(t,r=String.fromCodePoint(this.nextStackID++)),r+t}};function tce(e,t){for(let r=0;r<t.length;r++){let n=t[r];if(n.pos==e.pos&&n.sameState(e)){t[r].score<e.score&&(t[r]=e);return}}t.push(e)}class ixt{constructor(t,r,n){this.source=t,this.flags=r,this.disabled=n}allows(t){return!this.disabled||this.disabled[t]==0}}const q9=e=>e;class WDe{constructor(t){this.start=t.start,this.shift=t.shift||q9,this.reduce=t.reduce||q9,this.reuse=t.reuse||q9,this.hash=t.hash||(()=>0),this.strict=t.strict!==!1}}class Qv extends ZN{constructor(t){if(super(),this.wrappers=[],t.version!=14)throw new RangeError(`Parser version (${t.version}) doesn't match runtime version (14)`);let r=t.nodeNames.split(" ");this.minRepeatTerm=r.length;for(let a=0;a<t.repeatNodeCount;a++)r.push("");let n=Object.keys(t.topRules).map(a=>t.topRules[a][1]),i=[];for(let a=0;a<r.length;a++)i.push([]);function s(a,l,c){i[a].push([l,l.deserialize(String(c))])}if(t.nodeProps)for(let a of t.nodeProps){let l=a[0];typeof l=="string"&&(l=hr[l]);for(let c=1;c<a.length;){let u=a[c++];if(u>=0)s(u,l,a[c++]);else{let d=a[c+-u];for(let f=-u;f>0;f--)s(a[c++],l,d);c++}}}this.nodeSet=new Bw(r.map((a,l)=>Rs.define({name:l>=this.minRepeatTerm?void 0:a,id:l,props:i[l],top:n.indexOf(l)>-1,error:l==0,skipped:t.skippedNodes&&t.skippedNodes.indexOf(l)>-1}))),t.propSources&&(this.nodeSet=this.nodeSet.extend(...t.propSources)),this.strict=!1,this.bufferLength=BDe;let o=m_(t.tokenData);this.context=t.context,this.specializerSpecs=t.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let a=0;a<this.specializerSpecs.length;a++)this.specialized[a]=this.specializerSpecs[a].term;this.specializers=this.specializerSpecs.map(rce),this.states=m_(t.states,Uint32Array),this.data=m_(t.stateData),this.goto=m_(t.goto),this.maxTerm=t.maxTerm,this.tokenizers=t.tokenizers.map(a=>typeof a=="number"?new Ux(o,a):a),this.topRules=t.topRules,this.dialects=t.dialects||{},this.dynamicPrecedences=t.dynamicPrecedences||null,this.tokenPrecTable=t.tokenPrec,this.termNames=t.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(t,r,n){let i=new nxt(this,t,r,n);for(let s of this.wrappers)i=s(i,t,r,n);return i}getGoto(t,r,n=!1){let i=this.goto;if(r>=i[0])return-1;for(let s=i[r+1];;){let o=i[s++],a=o&1,l=i[s++];if(a&&n)return l;for(let c=s+(o>>1);s<c;s++)if(i[s]==t)return l;if(a)return-1}}hasAction(t,r){let n=this.data;for(let i=0;i<2;i++)for(let s=this.stateSlot(t,i?2:1),o;;s+=3){if((o=n[s])==65535)if(n[s+1]==1)o=n[s=uh(n,s+2)];else{if(n[s+1]==2)return uh(n,s+2);break}if(o==r||o==0)return uh(n,s+1)}return 0}stateSlot(t,r){return this.states[t*6+r]}stateFlag(t,r){return(this.stateSlot(t,0)&r)>0}validAction(t,r){return!!this.allActions(t,n=>n==r?!0:null)}allActions(t,r){let n=this.stateSlot(t,4),i=n?r(n):void 0;for(let s=this.stateSlot(t,1);i==null;s+=3){if(this.data[s]==65535)if(this.data[s+1]==1)s=uh(this.data,s+2);else break;i=r(uh(this.data,s+1))}return i}nextStates(t){let r=[];for(let n=this.stateSlot(t,1);;n+=3){if(this.data[n]==65535)if(this.data[n+1]==1)n=uh(this.data,n+2);else break;if((this.data[n+2]&1)==0){let i=this.data[n+1];r.some((s,o)=>o&1&&s==i)||r.push(this.data[n],i)}}return r}configure(t){let r=Object.assign(Object.create(Qv.prototype),this);if(t.props&&(r.nodeSet=this.nodeSet.extend(...t.props)),t.top){let n=this.topRules[t.top];if(!n)throw new RangeError(`Invalid top rule name ${t.top}`);r.top=n}return t.tokenizers&&(r.tokenizers=this.tokenizers.map(n=>{let i=t.tokenizers.find(s=>s.from==n);return i?i.to:n})),t.specializers&&(r.specializers=this.specializers.slice(),r.specializerSpecs=this.specializerSpecs.map((n,i)=>{let s=t.specializers.find(a=>a.from==n.external);if(!s)return n;let o=Object.assign(Object.assign({},n),{external:s.to});return r.specializers[i]=rce(o),o})),t.contextTracker&&(r.context=t.contextTracker),t.dialect&&(r.dialect=this.parseDialect(t.dialect)),t.strict!=null&&(r.strict=t.strict),t.wrap&&(r.wrappers=r.wrappers.concat(t.wrap)),t.bufferLength!=null&&(r.bufferLength=t.bufferLength),r}hasWrappers(){return this.wrappers.length>0}getName(t){return this.termNames?this.termNames[t]:String(t<=this.maxNode&&this.nodeSet.types[t].name||t)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(t){let r=this.dynamicPrecedences;return r==null?0:r[t]||0}parseDialect(t){let r=Object.keys(this.dialects),n=r.map(()=>!1);if(t)for(let s of t.split(" ")){let o=r.indexOf(s);o>=0&&(n[o]=!0)}let i=null;for(let s=0;s<r.length;s++)if(!n[s])for(let o=this.dialects[r[s]],a;(a=this.data[o++])!=65535;)(i||(i=new Uint8Array(this.maxTerm+1)))[a]=1;return new ixt(t,n,i)}static deserialize(t){return new Qv(t)}}function uh(e,t){return e[t]|e[t+1]<<16}function sxt(e){let t=null;for(let r of e){let n=r.p.stoppedAt;(r.pos==r.p.stream.end||n!=null&&r.pos>n)&&r.p.parser.stateFlag(r.state,2)&&(!t||t.score<r.score)&&(t=r)}return t}function rce(e){if(e.external){let t=e.extend?1:0;return(r,n)=>e.external(r,n)<<1|t}return e.get}let oxt=0;class Ql{constructor(t,r,n,i){this.name=t,this.set=r,this.base=n,this.modified=i,this.id=oxt++}toString(){let{name:t}=this;for(let r of this.modified)r.name&&(t=`${r.name}(${t})`);return t}static define(t,r){let n=typeof t=="string"?t:"?";if(t instanceof Ql&&(r=t),r?.base)throw new Error("Can not derive from a modified tag");let i=new Ql(n,[],null,[]);if(i.set.push(i),r)for(let s of r.set)i.set.push(s);return i}static defineModifier(t){let r=new II(t);return n=>n.modified.indexOf(r)>-1?n:II.get(n.base||n,n.modified.concat(r).sort((i,s)=>i.id-s.id))}}let axt=0;class II{constructor(t){this.name=t,this.instances=[],this.id=axt++}static get(t,r){if(!r.length)return t;let n=r[0].instances.find(a=>a.base==t&&lxt(r,a.modified));if(n)return n;let i=[],s=new Ql(t.name,i,t,r);for(let a of r)a.instances.push(s);let o=cxt(r);for(let a of t.set)if(!a.modified.length)for(let l of o)i.push(II.get(a,l));return s}}function lxt(e,t){return e.length==t.length&&e.every((r,n)=>r==t[n])}function cxt(e){let t=[[]];for(let r=0;r<e.length;r++)for(let n=0,i=t.length;n<i;n++)t.push(t[n].concat(e[r]));return t.sort((r,n)=>n.length-r.length)}function E0(e){let t=Object.create(null);for(let r in e){let n=e[r];Array.isArray(n)||(n=[n]);for(let i of r.split(" "))if(i){let s=[],o=2,a=i;for(let d=0;;){if(a=="..."&&d>0&&d+3==i.length){o=1;break}let f=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(a);if(!f)throw new RangeError("Invalid path: "+i);if(s.push(f[0]=="*"?"":f[0][0]=='"'?JSON.parse(f[0]):f[0]),d+=f[0].length,d==i.length)break;let m=i[d++];if(d==i.length&&m=="!"){o=0;break}if(m!="/")throw new RangeError("Invalid path: "+i);a=i.slice(d)}let l=s.length-1,c=s[l];if(!c)throw new RangeError("Invalid path: "+i);let u=new Uk(n,o,l>0?s.slice(0,l):null);t[c]=u.sort(t[c])}}return GDe.add(t)}const GDe=new hr({combine(e,t){let r,n,i;for(;e||t;){if(!e||t&&e.depth>=t.depth?(i=t,t=t.next):(i=e,e=e.next),r&&r.mode==i.mode&&!i.context&&!r.context)continue;let s=new Uk(i.tags,i.mode,i.context);r?r.next=s:n=s,r=s}return n}});class Uk{constructor(t,r,n,i){this.tags=t,this.mode=r,this.context=n,this.next=i}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(t){return!t||t.depth<this.depth?(this.next=t,this):(t.next=this.sort(t.next),t)}get depth(){return this.context?this.context.length:0}}Uk.empty=new Uk([],2,null);function XDe(e,t){let r=Object.create(null);for(let s of e)if(!Array.isArray(s.tag))r[s.tag.id]=s.class;else for(let o of s.tag)r[o.id]=s.class;let{scope:n,all:i=null}=t||{};return{style:s=>{let o=i;for(let a of s)for(let l of a.set){let c=r[l.id];if(c){o=o?o+" "+c:c;break}}return o},scope:n}}function uxt(e,t){let r=null;for(let n of e){let i=n.style(t);i&&(r=r?r+" "+i:i)}return r}function dxt(e,t,r,n=0,i=e.length){let s=new fxt(n,Array.isArray(t)?t:[t],r);s.highlightRange(e.cursor(),n,i,"",s.highlighters),s.flush(i)}class fxt{constructor(t,r,n){this.at=t,this.highlighters=r,this.span=n,this.class=""}startSpan(t,r){r!=this.class&&(this.flush(t),t>this.at&&(this.at=t),this.class=r)}flush(t){t>this.at&&this.class&&this.span(this.at,t,this.class)}highlightRange(t,r,n,i,s){let{type:o,from:a,to:l}=t;if(a>=n||l<=r)return;o.isTop&&(s=this.highlighters.filter(m=>!m.scope||m.scope(o)));let c=i,u=pxt(t)||Uk.empty,d=uxt(s,u.tags);if(d&&(c&&(c+=" "),c+=d,u.mode==1&&(i+=(i?" ":"")+d)),this.startSpan(Math.max(r,a),c),u.opaque)return;let f=t.tree&&t.tree.prop(hr.mounted);if(f&&f.overlay){let m=t.node.enter(f.overlay[0].from+a,1),g=this.highlighters.filter(b=>!b.scope||b.scope(f.tree.type)),v=t.firstChild();for(let b=0,w=a;;b++){let S=b<f.overlay.length?f.overlay[b]:null,O=S?S.from+a:l,k=Math.max(r,w),C=Math.min(n,O);if(k<C&&v)for(;t.from<C&&(this.highlightRange(t,k,C,i,s),this.startSpan(Math.min(C,t.to),c),!(t.to>=O||!t.nextSibling())););if(!S||O>n)break;w=S.to+a,w>r&&(this.highlightRange(m.cursor(),Math.max(r,S.from+a),Math.min(n,w),"",g),this.startSpan(Math.min(n,w),c))}v&&t.parent()}else if(t.firstChild()){f&&(i="");do if(!(t.to<=r)){if(t.from>=n)break;this.highlightRange(t,r,n,i,s),this.startSpan(Math.min(n,t.to),c)}while(t.nextSibling());t.parent()}}}function pxt(e){let t=e.type.prop(GDe);for(;t&&t.context&&!e.matchContext(t.context);)t=t.next;return t||null}const mt=Ql.define,_2=mt(),Jm=mt(),nce=mt(Jm),ice=mt(Jm),Km=mt(),k2=mt(Km),H9=mt(Km),Kd=mt(),Vy=mt(Kd),Wd=mt(),Gd=mt(),iV=mt(),SO=mt(iV),E2=mt(),Y={comment:_2,lineComment:mt(_2),blockComment:mt(_2),docComment:mt(_2),name:Jm,variableName:mt(Jm),typeName:nce,tagName:mt(nce),propertyName:ice,attributeName:mt(ice),className:mt(Jm),labelName:mt(Jm),namespace:mt(Jm),macroName:mt(Jm),literal:Km,string:k2,docString:mt(k2),character:mt(k2),attributeValue:mt(k2),number:H9,integer:mt(H9),float:mt(H9),bool:mt(Km),regexp:mt(Km),escape:mt(Km),color:mt(Km),url:mt(Km),keyword:Wd,self:mt(Wd),null:mt(Wd),atom:mt(Wd),unit:mt(Wd),modifier:mt(Wd),operatorKeyword:mt(Wd),controlKeyword:mt(Wd),definitionKeyword:mt(Wd),moduleKeyword:mt(Wd),operator:Gd,derefOperator:mt(Gd),arithmeticOperator:mt(Gd),logicOperator:mt(Gd),bitwiseOperator:mt(Gd),compareOperator:mt(Gd),updateOperator:mt(Gd),definitionOperator:mt(Gd),typeOperator:mt(Gd),controlOperator:mt(Gd),punctuation:iV,separator:mt(iV),bracket:SO,angleBracket:mt(SO),squareBracket:mt(SO),paren:mt(SO),brace:mt(SO),content:Kd,heading:Vy,heading1:mt(Vy),heading2:mt(Vy),heading3:mt(Vy),heading4:mt(Vy),heading5:mt(Vy),heading6:mt(Vy),contentSeparator:mt(Kd),list:mt(Kd),quote:mt(Kd),emphasis:mt(Kd),strong:mt(Kd),link:mt(Kd),monospace:mt(Kd),strikethrough:mt(Kd),inserted:mt(),deleted:mt(),changed:mt(),invalid:mt(),meta:E2,documentMeta:mt(E2),annotation:mt(E2),processingInstruction:mt(E2),definition:Ql.defineModifier("definition"),constant:Ql.defineModifier("constant"),function:Ql.defineModifier("function"),standard:Ql.defineModifier("standard"),local:Ql.defineModifier("local"),special:Ql.defineModifier("special")};for(let e in Y){let t=Y[e];t instanceof Ql&&(t.name=e)}XDe([{tag:Y.link,class:"tok-link"},{tag:Y.heading,class:"tok-heading"},{tag:Y.emphasis,class:"tok-emphasis"},{tag:Y.strong,class:"tok-strong"},{tag:Y.keyword,class:"tok-keyword"},{tag:Y.atom,class:"tok-atom"},{tag:Y.bool,class:"tok-bool"},{tag:Y.url,class:"tok-url"},{tag:Y.labelName,class:"tok-labelName"},{tag:Y.inserted,class:"tok-inserted"},{tag:Y.deleted,class:"tok-deleted"},{tag:Y.literal,class:"tok-literal"},{tag:Y.string,class:"tok-string"},{tag:Y.number,class:"tok-number"},{tag:[Y.regexp,Y.escape,Y.special(Y.string)],class:"tok-string2"},{tag:Y.variableName,class:"tok-variableName"},{tag:Y.local(Y.variableName),class:"tok-variableName tok-local"},{tag:Y.definition(Y.variableName),class:"tok-variableName tok-definition"},{tag:Y.special(Y.variableName),class:"tok-variableName2"},{tag:Y.definition(Y.propertyName),class:"tok-propertyName tok-definition"},{tag:Y.typeName,class:"tok-typeName"},{tag:Y.namespace,class:"tok-namespace"},{tag:Y.className,class:"tok-className"},{tag:Y.macroName,class:"tok-macroName"},{tag:Y.propertyName,class:"tok-propertyName"},{tag:Y.operator,class:"tok-operator"},{tag:Y.comment,class:"tok-comment"},{tag:Y.meta,class:"tok-meta"},{tag:Y.invalid,class:"tok-invalid"},{tag:Y.punctuation,class:"tok-punctuation"}]);const hxt=E0({String:Y.string,Number:Y.number,"True False":Y.bool,PropertyName:Y.propertyName,Null:Y.null,", :":Y.separator,"[ ]":Y.squareBracket,"{ }":Y.brace}),mxt=Qv.deserialize({version:14,states:"$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#ClOOQO'#Cr'#CrQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CtOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59W,59WO!iQPO,59WOVQPO,59QOqQPO'#CmO!nQPO,59`OOQO1G.k1G.kOVQPO'#CnO!vQPO,59aOOQO1G.r1G.rOOQO1G.l1G.lOOQO,59X,59XOOQO-E6k-E6kOOQO,59Y,59YOOQO-E6l-E6l",stateData:"#O~OeOS~OQSORSOSSOTSOWQO_ROgPO~OVXOgUO~O^[O~PVO[^O~O]_OVhX~OVaO~O]bO^iX~O^dO~O]_OVha~O]bO^ia~O",goto:"!kjPPPPPPkPPkqwPPPPk{!RPPP!XP!e!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",nodeNames:"⚠ JsonText True False Null Number String } { Object Property PropertyName : , ] [ Array",maxTerm:25,nodeProps:[["isolate",-2,6,11,""],["openedBy",7,"{",14,"["],["closedBy",8,"}",15,"]"]],propSources:[hxt],skippedNodes:[0],repeatNodeCount:2,tokenData:"(|~RaXY!WYZ!W]^!Wpq!Wrs!]|}$u}!O$z!Q!R%T!R![&c![!]&t!}#O&y#P#Q'O#Y#Z'T#b#c'r#h#i(Z#o#p(r#q#r(w~!]Oe~~!`Wpq!]qr!]rs!xs#O!]#O#P!}#P;'S!];'S;=`$o<%lO!]~!}Og~~#QXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#m~#pR!Q![#y!c!i#y#T#Z#y~#|R!Q![$V!c!i$V#T#Z$V~$YR!Q![$c!c!i$c#T#Z$c~$fR!Q![!]!c!i!]#T#Z!]~$rP;=`<%l!]~$zO]~~$}Q!Q!R%T!R![&c~%YRT~!O!P%c!g!h%w#X#Y%w~%fP!Q![%i~%nRT~!Q![%i!g!h%w#X#Y%w~%zR{|&T}!O&T!Q![&Z~&WP!Q![&Z~&`PT~!Q![&Z~&hST~!O!P%c!Q![&c!g!h%w#X#Y%w~&yO[~~'OO_~~'TO^~~'WP#T#U'Z~'^P#`#a'a~'dP#g#h'g~'jP#X#Y'm~'rOR~~'uP#i#j'x~'{P#`#a(O~(RP#`#a(U~(ZOS~~(^P#f#g(a~(dP#i#j(g~(jP#X#Y(m~(rOQ~~(wOW~~(|OV~",tokenizers:[0],topRules:{JsonText:[0,1]},tokenPrec:0});let sV=[],YDe=[];(()=>{let e="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(t=>t?parseInt(t,36):1);for(let t=0,r=0;t<e.length;t++)(t%2?YDe:sV).push(r=r+e[t])})();function gxt(e){if(e<768)return!1;for(let t=0,r=sV.length;;){let n=t+r>>1;if(e<sV[n])r=n;else if(e>=YDe[n])t=n+1;else return!0;if(t==r)return!1}}function sce(e){return e>=127462&&e<=127487}const oce=8205;function yxt(e,t,r=!0,n=!0){return(r?JDe:vxt)(e,t,n)}function JDe(e,t,r){if(t==e.length)return t;t&&KDe(e.charCodeAt(t))&&eAe(e.charCodeAt(t-1))&&t--;let n=W9(e,t);for(t+=ace(n);t<e.length;){let i=W9(e,t);if(n==oce||i==oce||r&&gxt(i))t+=ace(i),n=i;else if(sce(i)){let s=0,o=t-2;for(;o>=0&&sce(W9(e,o));)s++,o-=2;if(s%2==0)break;t+=2}else break}return t}function vxt(e,t,r){for(;t>0;){let n=JDe(e,t-2,r);if(n<t)return n;t--}return 0}function W9(e,t){let r=e.charCodeAt(t);if(!eAe(r)||t+1==e.length)return r;let n=e.charCodeAt(t+1);return KDe(n)?(r-55296<<10)+(n-56320)+65536:r}function KDe(e){return e>=56320&&e<57344}function eAe(e){return e>=55296&&e<56320}function ace(e){return e<65536?1:2}class rn{lineAt(t){if(t<0||t>this.length)throw new RangeError(`Invalid position ${t} in document of length ${this.length}`);return this.lineInner(t,!1,1,0)}line(t){if(t<1||t>this.lines)throw new RangeError(`Invalid line number ${t} in ${this.lines}-line document`);return this.lineInner(t,!0,1,0)}replace(t,r,n){[t,r]=x1(this,t,r);let i=[];return this.decompose(0,t,i,2),n.length&&n.decompose(0,n.length,i,3),this.decompose(r,this.length,i,1),df.from(i,this.length-(r-t)+n.length)}append(t){return this.replace(this.length,this.length,t)}slice(t,r=this.length){[t,r]=x1(this,t,r);let n=[];return this.decompose(t,r,n,0),df.from(n,r-t)}eq(t){if(t==this)return!0;if(t.length!=this.length||t.lines!=this.lines)return!1;let r=this.scanIdentical(t,1),n=this.length-this.scanIdentical(t,-1),i=new Q_(this),s=new Q_(t);for(let o=r,a=r;;){if(i.next(o),s.next(o),o=0,i.lineBreak!=s.lineBreak||i.done!=s.done||i.value!=s.value)return!1;if(a+=i.value.length,i.done||a>=n)return!0}}iter(t=1){return new Q_(this,t)}iterRange(t,r=this.length){return new tAe(this,t,r)}iterLines(t,r){let n;if(t==null)n=this.iter();else{r==null&&(r=this.lines+1);let i=this.line(t).from;n=this.iterRange(i,Math.max(i,r==this.lines+1?this.length:r<=1?0:this.line(r-1).to))}return new rAe(n)}toString(){return this.sliceString(0)}toJSON(){let t=[];return this.flatten(t),t}constructor(){}static of(t){if(t.length==0)throw new RangeError("A document must have at least one line");return t.length==1&&!t[0]?rn.empty:t.length<=32?new ms(t):df.from(ms.split(t,[]))}}class ms extends rn{constructor(t,r=bxt(t)){super(),this.text=t,this.length=r}get lines(){return this.text.length}get children(){return null}lineInner(t,r,n,i){for(let s=0;;s++){let o=this.text[s],a=i+o.length;if((r?n:a)>=t)return new xxt(i,a,n,o);i=a+1,n++}}decompose(t,r,n,i){let s=t<=0&&r>=this.length?this:new ms(lce(this.text,t,r),Math.min(r,this.length)-Math.max(0,t));if(i&1){let o=n.pop(),a=h$(s.text,o.text.slice(),0,s.length);if(a.length<=32)n.push(new ms(a,o.length+s.length));else{let l=a.length>>1;n.push(new ms(a.slice(0,l)),new ms(a.slice(l)))}}else n.push(s)}replace(t,r,n){if(!(n instanceof ms))return super.replace(t,r,n);[t,r]=x1(this,t,r);let i=h$(this.text,h$(n.text,lce(this.text,0,t)),r),s=this.length+n.length-(r-t);return i.length<=32?new ms(i,s):df.from(ms.split(i,[]),s)}sliceString(t,r=this.length,n=`
|
|
113
|
+
`)};if(z===0){var L=u.slice(f+1,m).concat(d$({children:[V],className:T.properties.className})),Q=b(L,U);d.push(Q)}else if(z===R.length-1){var F=u[m+1]&&u[m+1].children&&u[m+1].children[0],N={type:"text",value:"".concat(M)};if(F){var I=d$({children:[N],className:T.properties.className});u.splice(m+1,0,I)}else{var H=[N],B=b(H,U,T.properties.className);d.push(B)}}else{var J=[V],q=b(J,U,T.properties.className);d.push(q)}}),f=m}m++};m<u.length;)w();if(f!==u.length-1){var S=u.slice(f+1,u.length);if(S&&S.length){var O=n&&d.length+s,k=b(S,O);d.push(k)}}return t?d:(c=[]).concat.apply(c,d)}function Obt(e){var t=e.rows,r=e.stylesheet,n=e.useInlineStyles;return t.map(function(i,s){return NDe({node:i,stylesheet:r,useInlineStyles:n,key:"code-segment-".concat(s)})})}function FDe(e){return e&&typeof e.highlightAuto<"u"}function _bt(e){var t=e.astGenerator,r=e.language,n=e.code,i=e.defaultCodeValue;if(FDe(t)){var s=mbt(t,r);return r==="text"?{value:i,language:"text"}:s?t.highlight(r,n):t.highlightAuto(n)}try{return r&&r!=="text"?{value:t.highlight(n,r)}:{value:i}}catch{return{value:i}}}function kbt(e,t){return function(n){var i,s,o=n.language,a=n.children,l=n.style,c=l===void 0?t:l,u=n.customStyle,d=u===void 0?{}:u,f=n.codeTagProps,m=f===void 0?{className:o?"language-".concat(o):void 0,style:ig(ig({},c['code[class*="language-"]']),c['code[class*="language-'.concat(o,'"]')])}:f,g=n.useInlineStyles,v=g===void 0?!0:g,b=n.showLineNumbers,w=b===void 0?!1:b,S=n.showInlineLineNumbers,O=S===void 0?!0:S,k=n.startingLineNumber,C=k===void 0?1:k,T=n.lineNumberContainerStyle,P=n.lineNumberStyle,A=P===void 0?{}:P,R=n.wrapLines,M=n.wrapLongLines,z=M===void 0?!1:M,U=n.lineProps,V=U===void 0?{}:U,L=n.renderer,Q=n.PreTag,F=Q===void 0?"pre":Q,N=n.CodeTag,I=N===void 0?"code":N,H=n.code,B=H===void 0?(Array.isArray(a)?a[0]:a)||"":H,J=n.astGenerator,q=sbt(n,gbt);J=J||e;var j=w?me.createElement(xbt,{containerStyle:T,codeStyle:m.style||{},numberStyle:A,startingLineNumber:C,codeString:B}):null,W=c.hljs||c['pre[class*="language-"]']||{backgroundColor:"#fff"},K=FDe(J)?"hljs":"prismjs",ne=v?Object.assign({},q,{style:Object.assign({},W,d)}):Object.assign({},q,{className:q.className?"".concat(K," ").concat(q.className):K,style:Object.assign({},d)});if(z?m.style=ig({whiteSpace:"pre-wrap"},m.style):m.style=ig({whiteSpace:"pre"},m.style),!J)return me.createElement(F,ne,j,me.createElement(I,m,B));(R===void 0&&L||z)&&(R=!0),L=L||Obt;var X=[{type:"text",value:B}],te=_bt({astGenerator:J,language:o,code:B,defaultCodeValue:X});te.language===null&&(te.value=X);var ue=(i=(s=B.match(/\n/g))===null||s===void 0?void 0:s.length)!==null&&i!==void 0?i:0,de=C+ue,De=Sbt(te,R,V,w,O,C,de,A,z);return me.createElement(F,ne,me.createElement(I,m,!O&&j,L({rows:De,stylesheet:c,useInlineStyles:v})))}}function Lle(e,t,r,n,i,s,o){try{var a=e[s](o),l=a.value}catch(c){return void r(c)}a.done?t(l):Promise.resolve(l).then(n,i)}function LDe(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var s=e.apply(t,r);function o(l){Lle(s,n,i,o,a,"next",l)}function a(l){Lle(s,n,i,o,a,"throw",l)}o(void 0)})}}function Ebt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zle(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,IDe(n.key),n)}}function Cbt(e,t,r){return t&&zle(e.prototype,t),r&&zle(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Tbt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Dbt(e,t){if(t&&(Ff(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Tbt(e)}function DI(e){return DI=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},DI(e)}function JB(e,t){return JB=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},JB(e,t)}function Abt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&JB(e,t)}function KB(){KB=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(F,N,I){F[N]=I.value},s=typeof Symbol=="function"?Symbol:{},o=s.iterator||"@@iterator",a=s.asyncIterator||"@@asyncIterator",l=s.toStringTag||"@@toStringTag";function c(F,N,I){return Object.defineProperty(F,N,{value:I,enumerable:!0,configurable:!0,writable:!0}),F[N]}try{c({},"")}catch{c=function(I,H,B){return I[H]=B}}function u(F,N,I,H){var B=N&&N.prototype instanceof w?N:w,J=Object.create(B.prototype),q=new L(H||[]);return i(J,"_invoke",{value:M(F,I,q)}),J}function d(F,N,I){try{return{type:"normal",arg:F.call(N,I)}}catch(H){return{type:"throw",arg:H}}}t.wrap=u;var f="suspendedStart",m="suspendedYield",g="executing",v="completed",b={};function w(){}function S(){}function O(){}var k={};c(k,o,function(){return this});var C=Object.getPrototypeOf,T=C&&C(C(Q([])));T&&T!==r&&n.call(T,o)&&(k=T);var P=O.prototype=w.prototype=Object.create(k);function A(F){["next","throw","return"].forEach(function(N){c(F,N,function(I){return this._invoke(N,I)})})}function R(F,N){function I(B,J,q,j){var W=d(F[B],F,J);if(W.type!=="throw"){var K=W.arg,ne=K.value;return ne&&Ff(ne)=="object"&&n.call(ne,"__await")?N.resolve(ne.__await).then(function(X){I("next",X,q,j)},function(X){I("throw",X,q,j)}):N.resolve(ne).then(function(X){K.value=X,q(K)},function(X){return I("throw",X,q,j)})}j(W.arg)}var H;i(this,"_invoke",{value:function(J,q){function j(){return new N(function(W,K){I(J,q,W,K)})}return H=H?H.then(j,j):j()}})}function M(F,N,I){var H=f;return function(B,J){if(H===g)throw Error("Generator is already running");if(H===v){if(B==="throw")throw J;return{value:e,done:!0}}for(I.method=B,I.arg=J;;){var q=I.delegate;if(q){var j=z(q,I);if(j){if(j===b)continue;return j}}if(I.method==="next")I.sent=I._sent=I.arg;else if(I.method==="throw"){if(H===f)throw H=v,I.arg;I.dispatchException(I.arg)}else I.method==="return"&&I.abrupt("return",I.arg);H=g;var W=d(F,N,I);if(W.type==="normal"){if(H=I.done?v:m,W.arg===b)continue;return{value:W.arg,done:I.done}}W.type==="throw"&&(H=v,I.method="throw",I.arg=W.arg)}}}function z(F,N){var I=N.method,H=F.iterator[I];if(H===e)return N.delegate=null,I==="throw"&&F.iterator.return&&(N.method="return",N.arg=e,z(F,N),N.method==="throw")||I!=="return"&&(N.method="throw",N.arg=new TypeError("The iterator does not provide a '"+I+"' method")),b;var B=d(H,F.iterator,N.arg);if(B.type==="throw")return N.method="throw",N.arg=B.arg,N.delegate=null,b;var J=B.arg;return J?J.done?(N[F.resultName]=J.value,N.next=F.nextLoc,N.method!=="return"&&(N.method="next",N.arg=e),N.delegate=null,b):J:(N.method="throw",N.arg=new TypeError("iterator result is not an object"),N.delegate=null,b)}function U(F){var N={tryLoc:F[0]};1 in F&&(N.catchLoc=F[1]),2 in F&&(N.finallyLoc=F[2],N.afterLoc=F[3]),this.tryEntries.push(N)}function V(F){var N=F.completion||{};N.type="normal",delete N.arg,F.completion=N}function L(F){this.tryEntries=[{tryLoc:"root"}],F.forEach(U,this),this.reset(!0)}function Q(F){if(F||F===""){var N=F[o];if(N)return N.call(F);if(typeof F.next=="function")return F;if(!isNaN(F.length)){var I=-1,H=function B(){for(;++I<F.length;)if(n.call(F,I))return B.value=F[I],B.done=!1,B;return B.value=e,B.done=!0,B};return H.next=H}}throw new TypeError(Ff(F)+" is not iterable")}return S.prototype=O,i(P,"constructor",{value:O,configurable:!0}),i(O,"constructor",{value:S,configurable:!0}),S.displayName=c(O,l,"GeneratorFunction"),t.isGeneratorFunction=function(F){var N=typeof F=="function"&&F.constructor;return!!N&&(N===S||(N.displayName||N.name)==="GeneratorFunction")},t.mark=function(F){return Object.setPrototypeOf?Object.setPrototypeOf(F,O):(F.__proto__=O,c(F,l,"GeneratorFunction")),F.prototype=Object.create(P),F},t.awrap=function(F){return{__await:F}},A(R.prototype),c(R.prototype,a,function(){return this}),t.AsyncIterator=R,t.async=function(F,N,I,H,B){B===void 0&&(B=Promise);var J=new R(u(F,N,I,H),B);return t.isGeneratorFunction(N)?J:J.next().then(function(q){return q.done?q.value:J.next()})},A(P),c(P,l,"Generator"),c(P,o,function(){return this}),c(P,"toString",function(){return"[object Generator]"}),t.keys=function(F){var N=Object(F),I=[];for(var H in N)I.push(H);return I.reverse(),function B(){for(;I.length;){var J=I.pop();if(J in N)return B.value=J,B.done=!1,B}return B.done=!0,B}},t.values=Q,L.prototype={constructor:L,reset:function(N){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(V),!N)for(var I in this)I.charAt(0)==="t"&&n.call(this,I)&&!isNaN(+I.slice(1))&&(this[I]=e)},stop:function(){this.done=!0;var N=this.tryEntries[0].completion;if(N.type==="throw")throw N.arg;return this.rval},dispatchException:function(N){if(this.done)throw N;var I=this;function H(K,ne){return q.type="throw",q.arg=N,I.next=K,ne&&(I.method="next",I.arg=e),!!ne}for(var B=this.tryEntries.length-1;B>=0;--B){var J=this.tryEntries[B],q=J.completion;if(J.tryLoc==="root")return H("end");if(J.tryLoc<=this.prev){var j=n.call(J,"catchLoc"),W=n.call(J,"finallyLoc");if(j&&W){if(this.prev<J.catchLoc)return H(J.catchLoc,!0);if(this.prev<J.finallyLoc)return H(J.finallyLoc)}else if(j){if(this.prev<J.catchLoc)return H(J.catchLoc,!0)}else{if(!W)throw Error("try statement without catch or finally");if(this.prev<J.finallyLoc)return H(J.finallyLoc)}}}},abrupt:function(N,I){for(var H=this.tryEntries.length-1;H>=0;--H){var B=this.tryEntries[H];if(B.tryLoc<=this.prev&&n.call(B,"finallyLoc")&&this.prev<B.finallyLoc){var J=B;break}}J&&(N==="break"||N==="continue")&&J.tryLoc<=I&&I<=J.finallyLoc&&(J=null);var q=J?J.completion:{};return q.type=N,q.arg=I,J?(this.method="next",this.next=J.finallyLoc,b):this.complete(q)},complete:function(N,I){if(N.type==="throw")throw N.arg;return N.type==="break"||N.type==="continue"?this.next=N.arg:N.type==="return"?(this.rval=this.arg=N.arg,this.method="return",this.next="end"):N.type==="normal"&&I&&(this.next=I),b},finish:function(N){for(var I=this.tryEntries.length-1;I>=0;--I){var H=this.tryEntries[I];if(H.finallyLoc===N)return this.complete(H.completion,H.afterLoc),V(H),b}},catch:function(N){for(var I=this.tryEntries.length-1;I>=0;--I){var H=this.tryEntries[I];if(H.tryLoc===N){var B=H.completion;if(B.type==="throw"){var J=B.arg;V(H)}return J}}throw Error("illegal catch attempt")},delegateYield:function(N,I,H){return this.delegate={iterator:Q(N),resultName:I,nextLoc:H},this.method==="next"&&(this.arg=e),b}},t}function Pbt(e,t,r){return t=DI(t),Dbt(e,zDe()?Reflect.construct(t,r||[],DI(e).constructor):t.apply(e,r))}function zDe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(zDe=function(){return!!e})()}const $bt=(function(e){var t,r=e.loader,n=e.isLanguageRegistered,i=e.registerLanguage,s=e.languageLoaders,o=e.noAsyncLoadingLanguages,a=(function(l){function c(){return Ebt(this,c),Pbt(this,c,arguments)}return Abt(c,l),Cbt(c,[{key:"componentDidUpdate",value:function(){!c.isRegistered(this.props.language)&&s&&this.loadLanguage()}},{key:"componentDidMount",value:function(){var d=this;c.astGeneratorPromise||c.loadAstGenerator(),c.astGenerator||c.astGeneratorPromise.then(function(){d.forceUpdate()}),!c.isRegistered(this.props.language)&&s&&this.loadLanguage()}},{key:"loadLanguage",value:function(){var d=this,f=this.props.language;f!=="text"&&c.loadLanguage(f).then(function(){return d.forceUpdate()}).catch(function(){})}},{key:"normalizeLanguage",value:function(d){return c.isSupportedLanguage(d)?d:"text"}},{key:"render",value:function(){return me.createElement(c.highlightInstance,gd({},this.props,{language:this.normalizeLanguage(this.props.language),astGenerator:c.astGenerator}))}}],[{key:"preload",value:function(){return c.loadAstGenerator()}},{key:"loadLanguage",value:(function(){var u=LDe(KB().mark(function f(m){var g;return KB().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:if(g=s[m],typeof g!="function"){b.next=5;break}return b.abrupt("return",g(c.registerLanguage));case 5:throw new Error("Language ".concat(m," not supported"));case 6:case"end":return b.stop()}},f)}));function d(f){return u.apply(this,arguments)}return d})()},{key:"isSupportedLanguage",value:function(d){return c.isRegistered(d)||typeof s[d]=="function"}},{key:"loadAstGenerator",value:function(){return c.astGeneratorPromise=r().then(function(d){c.astGenerator=d,i&&c.languages.forEach(function(f,m){return i(d,m,f)})}),c.astGeneratorPromise}}])})(me.PureComponent);return t=a,nh(a,"astGenerator",null),nh(a,"highlightInstance",kbt(null,{})),nh(a,"astGeneratorPromise",null),nh(a,"languages",new Map),nh(a,"supportedLanguages",e.supportedLanguages||Object.keys(s||{})),nh(a,"isRegistered",function(l){if(o)return!0;if(!i)throw new Error("Current syntax highlighter doesn't support registration of languages");return t.astGenerator?n(t.astGenerator,l):t.languages.has(l)}),nh(a,"registerLanguage",function(l,c){if(!i)throw new Error("Current syntax highlighter doesn't support registration of languages");if(t.astGenerator)return i(t.astGenerator,l,c);t.languages.set(l,c)}),a});function eV(){eV=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(F,N,I){F[N]=I.value},s=typeof Symbol=="function"?Symbol:{},o=s.iterator||"@@iterator",a=s.asyncIterator||"@@asyncIterator",l=s.toStringTag||"@@toStringTag";function c(F,N,I){return Object.defineProperty(F,N,{value:I,enumerable:!0,configurable:!0,writable:!0}),F[N]}try{c({},"")}catch{c=function(I,H,B){return I[H]=B}}function u(F,N,I,H){var B=N&&N.prototype instanceof w?N:w,J=Object.create(B.prototype),q=new L(H||[]);return i(J,"_invoke",{value:M(F,I,q)}),J}function d(F,N,I){try{return{type:"normal",arg:F.call(N,I)}}catch(H){return{type:"throw",arg:H}}}t.wrap=u;var f="suspendedStart",m="suspendedYield",g="executing",v="completed",b={};function w(){}function S(){}function O(){}var k={};c(k,o,function(){return this});var C=Object.getPrototypeOf,T=C&&C(C(Q([])));T&&T!==r&&n.call(T,o)&&(k=T);var P=O.prototype=w.prototype=Object.create(k);function A(F){["next","throw","return"].forEach(function(N){c(F,N,function(I){return this._invoke(N,I)})})}function R(F,N){function I(B,J,q,j){var W=d(F[B],F,J);if(W.type!=="throw"){var K=W.arg,ne=K.value;return ne&&Ff(ne)=="object"&&n.call(ne,"__await")?N.resolve(ne.__await).then(function(X){I("next",X,q,j)},function(X){I("throw",X,q,j)}):N.resolve(ne).then(function(X){K.value=X,q(K)},function(X){return I("throw",X,q,j)})}j(W.arg)}var H;i(this,"_invoke",{value:function(J,q){function j(){return new N(function(W,K){I(J,q,W,K)})}return H=H?H.then(j,j):j()}})}function M(F,N,I){var H=f;return function(B,J){if(H===g)throw Error("Generator is already running");if(H===v){if(B==="throw")throw J;return{value:e,done:!0}}for(I.method=B,I.arg=J;;){var q=I.delegate;if(q){var j=z(q,I);if(j){if(j===b)continue;return j}}if(I.method==="next")I.sent=I._sent=I.arg;else if(I.method==="throw"){if(H===f)throw H=v,I.arg;I.dispatchException(I.arg)}else I.method==="return"&&I.abrupt("return",I.arg);H=g;var W=d(F,N,I);if(W.type==="normal"){if(H=I.done?v:m,W.arg===b)continue;return{value:W.arg,done:I.done}}W.type==="throw"&&(H=v,I.method="throw",I.arg=W.arg)}}}function z(F,N){var I=N.method,H=F.iterator[I];if(H===e)return N.delegate=null,I==="throw"&&F.iterator.return&&(N.method="return",N.arg=e,z(F,N),N.method==="throw")||I!=="return"&&(N.method="throw",N.arg=new TypeError("The iterator does not provide a '"+I+"' method")),b;var B=d(H,F.iterator,N.arg);if(B.type==="throw")return N.method="throw",N.arg=B.arg,N.delegate=null,b;var J=B.arg;return J?J.done?(N[F.resultName]=J.value,N.next=F.nextLoc,N.method!=="return"&&(N.method="next",N.arg=e),N.delegate=null,b):J:(N.method="throw",N.arg=new TypeError("iterator result is not an object"),N.delegate=null,b)}function U(F){var N={tryLoc:F[0]};1 in F&&(N.catchLoc=F[1]),2 in F&&(N.finallyLoc=F[2],N.afterLoc=F[3]),this.tryEntries.push(N)}function V(F){var N=F.completion||{};N.type="normal",delete N.arg,F.completion=N}function L(F){this.tryEntries=[{tryLoc:"root"}],F.forEach(U,this),this.reset(!0)}function Q(F){if(F||F===""){var N=F[o];if(N)return N.call(F);if(typeof F.next=="function")return F;if(!isNaN(F.length)){var I=-1,H=function B(){for(;++I<F.length;)if(n.call(F,I))return B.value=F[I],B.done=!1,B;return B.value=e,B.done=!0,B};return H.next=H}}throw new TypeError(Ff(F)+" is not iterable")}return S.prototype=O,i(P,"constructor",{value:O,configurable:!0}),i(O,"constructor",{value:S,configurable:!0}),S.displayName=c(O,l,"GeneratorFunction"),t.isGeneratorFunction=function(F){var N=typeof F=="function"&&F.constructor;return!!N&&(N===S||(N.displayName||N.name)==="GeneratorFunction")},t.mark=function(F){return Object.setPrototypeOf?Object.setPrototypeOf(F,O):(F.__proto__=O,c(F,l,"GeneratorFunction")),F.prototype=Object.create(P),F},t.awrap=function(F){return{__await:F}},A(R.prototype),c(R.prototype,a,function(){return this}),t.AsyncIterator=R,t.async=function(F,N,I,H,B){B===void 0&&(B=Promise);var J=new R(u(F,N,I,H),B);return t.isGeneratorFunction(N)?J:J.next().then(function(q){return q.done?q.value:J.next()})},A(P),c(P,l,"Generator"),c(P,o,function(){return this}),c(P,"toString",function(){return"[object Generator]"}),t.keys=function(F){var N=Object(F),I=[];for(var H in N)I.push(H);return I.reverse(),function B(){for(;I.length;){var J=I.pop();if(J in N)return B.value=J,B.done=!1,B}return B.done=!0,B}},t.values=Q,L.prototype={constructor:L,reset:function(N){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(V),!N)for(var I in this)I.charAt(0)==="t"&&n.call(this,I)&&!isNaN(+I.slice(1))&&(this[I]=e)},stop:function(){this.done=!0;var N=this.tryEntries[0].completion;if(N.type==="throw")throw N.arg;return this.rval},dispatchException:function(N){if(this.done)throw N;var I=this;function H(K,ne){return q.type="throw",q.arg=N,I.next=K,ne&&(I.method="next",I.arg=e),!!ne}for(var B=this.tryEntries.length-1;B>=0;--B){var J=this.tryEntries[B],q=J.completion;if(J.tryLoc==="root")return H("end");if(J.tryLoc<=this.prev){var j=n.call(J,"catchLoc"),W=n.call(J,"finallyLoc");if(j&&W){if(this.prev<J.catchLoc)return H(J.catchLoc,!0);if(this.prev<J.finallyLoc)return H(J.finallyLoc)}else if(j){if(this.prev<J.catchLoc)return H(J.catchLoc,!0)}else{if(!W)throw Error("try statement without catch or finally");if(this.prev<J.finallyLoc)return H(J.finallyLoc)}}}},abrupt:function(N,I){for(var H=this.tryEntries.length-1;H>=0;--H){var B=this.tryEntries[H];if(B.tryLoc<=this.prev&&n.call(B,"finallyLoc")&&this.prev<B.finallyLoc){var J=B;break}}J&&(N==="break"||N==="continue")&&J.tryLoc<=I&&I<=J.finallyLoc&&(J=null);var q=J?J.completion:{};return q.type=N,q.arg=I,J?(this.method="next",this.next=J.finallyLoc,b):this.complete(q)},complete:function(N,I){if(N.type==="throw")throw N.arg;return N.type==="break"||N.type==="continue"?this.next=N.arg:N.type==="return"?(this.rval=this.arg=N.arg,this.method="return",this.next="end"):N.type==="normal"&&I&&(this.next=I),b},finish:function(N){for(var I=this.tryEntries.length-1;I>=0;--I){var H=this.tryEntries[I];if(H.finallyLoc===N)return this.complete(H.completion,H.afterLoc),V(H),b}},catch:function(N){for(var I=this.tryEntries.length-1;I>=0;--I){var H=this.tryEntries[I];if(H.tryLoc===N){var B=H.completion;if(B.type==="throw"){var J=B.arg;V(H)}return J}}throw Error("illegal catch attempt")},delegateYield:function(N,I,H){return this.delegate={iterator:Q(N),resultName:I,nextLoc:H},this.method==="next"&&(this.arg=e),b}},t}const se=(function(e,t){return(function(){var r=LDe(eV().mark(function n(i){var s;return eV().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,t();case 2:s=a.sent,i(e,s.default||s);case 4:case"end":return a.stop()}},n)}));return function(n){return r.apply(this,arguments)}})()}),Ibt={abap:se("abap",function(){return G(()=>import("./abap-B4utKeZN.js").then(e=>e.a),[],import.meta.url)}),abnf:se("abnf",function(){return G(()=>import("./abnf-CHBMOLe5.js").then(e=>e.a),[],import.meta.url)}),actionscript:se("actionscript",function(){return G(()=>import("./actionscript-BeS5sKcs.js").then(e=>e.a),[],import.meta.url)}),ada:se("ada",function(){return G(()=>import("./ada-CX8S56Tq.js").then(e=>e.a),[],import.meta.url)}),agda:se("agda",function(){return G(()=>import("./agda-CHxv32ij.js").then(e=>e.a),[],import.meta.url)}),al:se("al",function(){return G(()=>import("./al-COD6Pi95.js").then(e=>e.a),[],import.meta.url)}),antlr4:se("antlr4",function(){return G(()=>import("./antlr4-Dfo_wkmG.js").then(e=>e.a),[],import.meta.url)}),apacheconf:se("apacheconf",function(){return G(()=>import("./apacheconf-fa_MYonN.js").then(e=>e.a),[],import.meta.url)}),apex:se("apex",function(){return G(()=>import("./apex-C98GozUp.js").then(e=>e.a),__vite__mapDeps([0,1]),import.meta.url)}),apl:se("apl",function(){return G(()=>import("./apl-CLNAdB0s.js").then(e=>e.a),[],import.meta.url)}),applescript:se("applescript",function(){return G(()=>import("./applescript-CpTypQdX.js").then(e=>e.a),[],import.meta.url)}),aql:se("aql",function(){return G(()=>import("./aql-BNDDMgxi.js").then(e=>e.a),[],import.meta.url)}),arduino:se("arduino",function(){return G(()=>import("./arduino-BjZPbEvY.js").then(e=>e.a),__vite__mapDeps([2,3,4]),import.meta.url)}),arff:se("arff",function(){return G(()=>import("./arff-CKUQ6eUJ.js").then(e=>e.a),[],import.meta.url)}),asciidoc:se("asciidoc",function(){return G(()=>import("./asciidoc-BohKkEYP.js").then(e=>e.a),[],import.meta.url)}),asm6502:se("asm6502",function(){return G(()=>import("./asm6502-BFvz1oQv.js").then(e=>e.a),[],import.meta.url)}),asmatmel:se("asmatmel",function(){return G(()=>import("./asmatmel-P3oiezKI.js").then(e=>e.a),[],import.meta.url)}),aspnet:se("aspnet",function(){return G(()=>import("./aspnet-C9-Y8eY3.js").then(e=>e.a),__vite__mapDeps([5,6]),import.meta.url)}),autohotkey:se("autohotkey",function(){return G(()=>import("./autohotkey-Bb7DesMF.js").then(e=>e.a),[],import.meta.url)}),autoit:se("autoit",function(){return G(()=>import("./autoit-BRUND8jf.js").then(e=>e.a),[],import.meta.url)}),avisynth:se("avisynth",function(){return G(()=>import("./avisynth-BE1FROZ8.js").then(e=>e.a),[],import.meta.url)}),avroIdl:se("avroIdl",function(){return G(()=>import("./avro-idl-BGJJq0mG.js").then(e=>e.a),[],import.meta.url)}),bash:se("bash",function(){return G(()=>import("./bash-Xfq1WUcj.js").then(e=>e.b),__vite__mapDeps([7,8]),import.meta.url)}),basic:se("basic",function(){return G(()=>import("./basic-CwxAqBQt.js").then(e=>e.b),__vite__mapDeps([9,10]),import.meta.url)}),batch:se("batch",function(){return G(()=>import("./batch-Cd0GXFBC.js").then(e=>e.b),[],import.meta.url)}),bbcode:se("bbcode",function(){return G(()=>import("./bbcode-VosN1oI3.js").then(e=>e.b),[],import.meta.url)}),bicep:se("bicep",function(){return G(()=>import("./bicep-Bsgnxhdm.js").then(e=>e.b),[],import.meta.url)}),birb:se("birb",function(){return G(()=>import("./birb-BmHfgdke.js").then(e=>e.b),[],import.meta.url)}),bison:se("bison",function(){return G(()=>import("./bison-C4uvVnx7.js").then(e=>e.b),__vite__mapDeps([11,4]),import.meta.url)}),bnf:se("bnf",function(){return G(()=>import("./bnf-BLKF2URR.js").then(e=>e.b),[],import.meta.url)}),brainfuck:se("brainfuck",function(){return G(()=>import("./brainfuck-CgYsxCpj.js").then(e=>e.b),[],import.meta.url)}),brightscript:se("brightscript",function(){return G(()=>import("./brightscript-vgR7d60b.js").then(e=>e.b),[],import.meta.url)}),bro:se("bro",function(){return G(()=>import("./bro-C0S35xPL.js").then(e=>e.b),[],import.meta.url)}),bsl:se("bsl",function(){return G(()=>import("./bsl-CXaAUWvp.js").then(e=>e.b),[],import.meta.url)}),c:se("c",function(){return G(()=>import("./c-DTjiY7iT.js").then(e=>e.c),__vite__mapDeps([12,4]),import.meta.url)}),cfscript:se("cfscript",function(){return G(()=>import("./cfscript-CtBxJrtV.js").then(e=>e.c),[],import.meta.url)}),chaiscript:se("chaiscript",function(){return G(()=>import("./chaiscript-DnCZz1fN.js").then(e=>e.c),__vite__mapDeps([13,3,4]),import.meta.url)}),cil:se("cil",function(){return G(()=>import("./cil-Bl_bE5_V.js").then(e=>e.c),[],import.meta.url)}),clike:se("clike",function(){return G(()=>import("./clike-Bxu1ofuX.js").then(e=>e.c),__vite__mapDeps([14,15]),import.meta.url)}),clojure:se("clojure",function(){return G(()=>import("./clojure-D885yR7N.js").then(e=>e.c),[],import.meta.url)}),cmake:se("cmake",function(){return G(()=>import("./cmake-BldYrf-U.js").then(e=>e.c),[],import.meta.url)}),cobol:se("cobol",function(){return G(()=>import("./cobol-B9Fvxq1t.js").then(e=>e.c),[],import.meta.url)}),coffeescript:se("coffeescript",function(){return G(()=>import("./coffeescript-DCc-puce.js").then(e=>e.c),[],import.meta.url)}),concurnas:se("concurnas",function(){return G(()=>import("./concurnas-BcsmozdF.js").then(e=>e.c),[],import.meta.url)}),coq:se("coq",function(){return G(()=>import("./coq-nZ_tJmwN.js").then(e=>e.c),[],import.meta.url)}),cpp:se("cpp",function(){return G(()=>import("./cpp-DP28QsBf.js").then(e=>e.c),__vite__mapDeps([16,3,4]),import.meta.url)}),crystal:se("crystal",function(){return G(()=>import("./crystal-D7fe-vg1.js").then(e=>e.c),__vite__mapDeps([17,18]),import.meta.url)}),csharp:se("csharp",function(){return G(()=>import("./csharp-CqqTy2qZ.js").then(e=>e.c),__vite__mapDeps([19,6]),import.meta.url)}),cshtml:se("cshtml",function(){return G(()=>import("./cshtml-Dh_AvBa7.js").then(e=>e.c),__vite__mapDeps([20,6]),import.meta.url)}),csp:se("csp",function(){return G(()=>import("./csp-CiJU6-Zb.js").then(e=>e.c),[],import.meta.url)}),cssExtras:se("cssExtras",function(){return G(()=>import("./css-extras-DE1aExbR.js").then(e=>e.c),[],import.meta.url)}),css:se("css",function(){return G(()=>import("./css-CR2gKa6b.js").then(e=>e.c),__vite__mapDeps([21,22]),import.meta.url)}),csv:se("csv",function(){return G(()=>import("./csv-Dcjca_4w.js").then(e=>e.c),[],import.meta.url)}),cypher:se("cypher",function(){return G(()=>import("./cypher-JptSC4cn.js").then(e=>e.c),[],import.meta.url)}),d:se("d",function(){return G(()=>import("./d-DQrhbEXE.js").then(e=>e.d),[],import.meta.url)}),dart:se("dart",function(){return G(()=>import("./dart-DEsgnZLp.js").then(e=>e.d),[],import.meta.url)}),dataweave:se("dataweave",function(){return G(()=>import("./dataweave-DeCwEHfg.js").then(e=>e.d),[],import.meta.url)}),dax:se("dax",function(){return G(()=>import("./dax-DWfJD2ba.js").then(e=>e.d),[],import.meta.url)}),dhall:se("dhall",function(){return G(()=>import("./dhall-CebJ9cek.js").then(e=>e.d),[],import.meta.url)}),diff:se("diff",function(){return G(()=>import("./diff-DnRzfLYw.js").then(e=>e.d),[],import.meta.url)}),django:se("django",function(){return G(()=>import("./django-D21kaDEA.js").then(e=>e.d),__vite__mapDeps([23,24]),import.meta.url)}),dnsZoneFile:se("dnsZoneFile",function(){return G(()=>import("./dns-zone-file-DxZFUaK9.js").then(e=>e.d),[],import.meta.url)}),docker:se("docker",function(){return G(()=>import("./docker-BCKrg-H2.js").then(e=>e.d),[],import.meta.url)}),dot:se("dot",function(){return G(()=>import("./dot-CLbpXig6.js").then(e=>e.d),[],import.meta.url)}),ebnf:se("ebnf",function(){return G(()=>import("./ebnf-B33PAMyH.js").then(e=>e.e),[],import.meta.url)}),editorconfig:se("editorconfig",function(){return G(()=>import("./editorconfig-NiMAlzuI.js").then(e=>e.e),[],import.meta.url)}),eiffel:se("eiffel",function(){return G(()=>import("./eiffel-BawfD_wF.js").then(e=>e.e),[],import.meta.url)}),ejs:se("ejs",function(){return G(()=>import("./ejs-J0y5SHgc.js").then(e=>e.e),__vite__mapDeps([25,24]),import.meta.url)}),elixir:se("elixir",function(){return G(()=>import("./elixir-DMrudcUa.js").then(e=>e.e),[],import.meta.url)}),elm:se("elm",function(){return G(()=>import("./elm-D__Mvmq3.js").then(e=>e.e),[],import.meta.url)}),erb:se("erb",function(){return G(()=>import("./erb-BkU8bVfl.js").then(e=>e.e),__vite__mapDeps([26,18,24]),import.meta.url)}),erlang:se("erlang",function(){return G(()=>import("./erlang-B4e8qJ_1.js").then(e=>e.e),[],import.meta.url)}),etlua:se("etlua",function(){return G(()=>import("./etlua-4Oi6wyBM.js").then(e=>e.e),__vite__mapDeps([27,28,24]),import.meta.url)}),excelFormula:se("excelFormula",function(){return G(()=>import("./excel-formula-CTjjy-Ht.js").then(e=>e.e),[],import.meta.url)}),factor:se("factor",function(){return G(()=>import("./factor-RAvg-Zyu.js").then(e=>e.f),[],import.meta.url)}),falselang:se("falselang",function(){return G(()=>import("./false-De65KeA5.js").then(e=>e._),[],import.meta.url)}),firestoreSecurityRules:se("firestoreSecurityRules",function(){return G(()=>import("./firestore-security-rules-D84NXCBz.js").then(e=>e.f),[],import.meta.url)}),flow:se("flow",function(){return G(()=>import("./flow-DgSNq8Kc.js").then(e=>e.f),[],import.meta.url)}),fortran:se("fortran",function(){return G(()=>import("./fortran-D5v4IQsH.js").then(e=>e.f),[],import.meta.url)}),fsharp:se("fsharp",function(){return G(()=>import("./fsharp-skZBjmOD.js").then(e=>e.f),[],import.meta.url)}),ftl:se("ftl",function(){return G(()=>import("./ftl-DDfen3_J.js").then(e=>e.f),__vite__mapDeps([29,24]),import.meta.url)}),gap:se("gap",function(){return G(()=>import("./gap-ChtK8xDo.js").then(e=>e.g),[],import.meta.url)}),gcode:se("gcode",function(){return G(()=>import("./gcode-CjegtVvV.js").then(e=>e.g),[],import.meta.url)}),gdscript:se("gdscript",function(){return G(()=>import("./gdscript-CoxKeSoy.js").then(e=>e.g),[],import.meta.url)}),gedcom:se("gedcom",function(){return G(()=>import("./gedcom-U9D2U1AS.js").then(e=>e.g),[],import.meta.url)}),gherkin:se("gherkin",function(){return G(()=>import("./gherkin-BiAE0Wn6.js").then(e=>e.g),[],import.meta.url)}),git:se("git",function(){return G(()=>import("./git-toZ4npre.js").then(e=>e.g),[],import.meta.url)}),glsl:se("glsl",function(){return G(()=>import("./glsl-u06xQTm6.js").then(e=>e.g),__vite__mapDeps([30,4]),import.meta.url)}),gml:se("gml",function(){return G(()=>import("./gml-By44Ca3e.js").then(e=>e.g),[],import.meta.url)}),gn:se("gn",function(){return G(()=>import("./gn-B-0iFia9.js").then(e=>e.g),[],import.meta.url)}),goModule:se("goModule",function(){return G(()=>import("./go-module-CTbnoR5V.js").then(e=>e.g),[],import.meta.url)}),go:se("go",function(){return G(()=>import("./go-SKb7j6EV.js").then(e=>e.g),[],import.meta.url)}),graphql:se("graphql",function(){return G(()=>import("./graphql-BRgSUYQw.js").then(e=>e.g),[],import.meta.url)}),groovy:se("groovy",function(){return G(()=>import("./groovy-CajhmGH7.js").then(e=>e.g),[],import.meta.url)}),haml:se("haml",function(){return G(()=>import("./haml-BCKfzi5f.js").then(e=>e.h),__vite__mapDeps([31,18]),import.meta.url)}),handlebars:se("handlebars",function(){return G(()=>import("./handlebars-CsgMle6k.js").then(e=>e.h),__vite__mapDeps([32,24]),import.meta.url)}),haskell:se("haskell",function(){return G(()=>import("./haskell-CmfutXG-.js").then(e=>e.h),__vite__mapDeps([33,34]),import.meta.url)}),haxe:se("haxe",function(){return G(()=>import("./haxe-B2Qt99xl.js").then(e=>e.h),[],import.meta.url)}),hcl:se("hcl",function(){return G(()=>import("./hcl-Cnuhe4sH.js").then(e=>e.h),[],import.meta.url)}),hlsl:se("hlsl",function(){return G(()=>import("./hlsl-JAFINkFz.js").then(e=>e.h),__vite__mapDeps([35,4]),import.meta.url)}),hoon:se("hoon",function(){return G(()=>import("./hoon-DB0BmeK4.js").then(e=>e.h),[],import.meta.url)}),hpkp:se("hpkp",function(){return G(()=>import("./hpkp-BEUyfI5Z.js").then(e=>e.h),[],import.meta.url)}),hsts:se("hsts",function(){return G(()=>import("./hsts-GWJ_rKlo.js").then(e=>e.h),[],import.meta.url)}),http:se("http",function(){return G(()=>import("./http-QZ-HS9U_.js").then(e=>e.h),[],import.meta.url)}),ichigojam:se("ichigojam",function(){return G(()=>import("./ichigojam-DqMpv1sl.js").then(e=>e.i),[],import.meta.url)}),icon:se("icon",function(){return G(()=>import("./icon-DeQO3BRp.js").then(e=>e.i),[],import.meta.url)}),icuMessageFormat:se("icuMessageFormat",function(){return G(()=>import("./icu-message-format-Bm0TA4i-.js").then(e=>e.i),[],import.meta.url)}),idris:se("idris",function(){return G(()=>import("./idris-CPOUHvfX.js").then(e=>e.i),__vite__mapDeps([36,34]),import.meta.url)}),iecst:se("iecst",function(){return G(()=>import("./iecst-CAOL3amk.js").then(e=>e.i),[],import.meta.url)}),ignore:se("ignore",function(){return G(()=>import("./ignore-o57uXs7O.js").then(e=>e.i),[],import.meta.url)}),inform7:se("inform7",function(){return G(()=>import("./inform7-qb4xR-Fs.js").then(e=>e.i),[],import.meta.url)}),ini:se("ini",function(){return G(()=>import("./ini-ClbKYzpr.js").then(e=>e.i),[],import.meta.url)}),io:se("io",function(){return G(()=>import("./io-gIpsqv3h.js").then(e=>e.i),[],import.meta.url)}),j:se("j",function(){return G(()=>import("./j-CWZ6MtR6.js").then(e=>e.j),[],import.meta.url)}),java:se("java",function(){return G(()=>import("./java-Dt7I9LEh.js").then(e=>e.j),__vite__mapDeps([37,38]),import.meta.url)}),javadoc:se("javadoc",function(){return G(()=>import("./javadoc-B-u1DW_a.js").then(e=>e.j),__vite__mapDeps([39,38,40]),import.meta.url)}),javadoclike:se("javadoclike",function(){return G(()=>import("./javadoclike-D6bOoyOt.js").then(e=>e.j),__vite__mapDeps([41,40]),import.meta.url)}),javascript:se("javascript",function(){return G(()=>import("./javascript-D0sG_Ohj.js").then(e=>e.j),__vite__mapDeps([42,43]),import.meta.url)}),javastacktrace:se("javastacktrace",function(){return G(()=>import("./javastacktrace-Bg8dH-Up.js").then(e=>e.j),[],import.meta.url)}),jexl:se("jexl",function(){return G(()=>import("./jexl-DcuWekp7.js").then(e=>e.j),[],import.meta.url)}),jolie:se("jolie",function(){return G(()=>import("./jolie-BRdDlhrR.js").then(e=>e.j),[],import.meta.url)}),jq:se("jq",function(){return G(()=>import("./jq-DeXz_ltk.js").then(e=>e.j),[],import.meta.url)}),jsExtras:se("jsExtras",function(){return G(()=>import("./js-extras-DQAy-FUy.js").then(e=>e.j),[],import.meta.url)}),jsTemplates:se("jsTemplates",function(){return G(()=>import("./js-templates-BMhjaRlX.js").then(e=>e.j),[],import.meta.url)}),jsdoc:se("jsdoc",function(){return G(()=>import("./jsdoc-CIdLS_YW.js").then(e=>e.j),__vite__mapDeps([44,40,45]),import.meta.url)}),json:se("json",function(){return G(()=>import("./json-Dg3GaZVD.js").then(e=>e.j),__vite__mapDeps([46,47]),import.meta.url)}),json5:se("json5",function(){return G(()=>import("./json5-CqRLmYN6.js").then(e=>e.j),__vite__mapDeps([48,47]),import.meta.url)}),jsonp:se("jsonp",function(){return G(()=>import("./jsonp-BSCByjeo.js").then(e=>e.j),__vite__mapDeps([49,47]),import.meta.url)}),jsstacktrace:se("jsstacktrace",function(){return G(()=>import("./jsstacktrace-BnMrNTVr.js").then(e=>e.j),[],import.meta.url)}),jsx:se("jsx",function(){return G(()=>import("./jsx-Bw9l37V2.js").then(e=>e.j),__vite__mapDeps([50,51]),import.meta.url)}),julia:se("julia",function(){return G(()=>import("./julia-DNj9oUQC.js").then(e=>e.j),[],import.meta.url)}),keepalived:se("keepalived",function(){return G(()=>import("./keepalived-TepNOUNK.js").then(e=>e.k),[],import.meta.url)}),keyman:se("keyman",function(){return G(()=>import("./keyman-Bh1v_658.js").then(e=>e.k),[],import.meta.url)}),kotlin:se("kotlin",function(){return G(()=>import("./kotlin-DCsuRlJx.js").then(e=>e.k),[],import.meta.url)}),kumir:se("kumir",function(){return G(()=>import("./kumir-WaOsgJ7a.js").then(e=>e.k),[],import.meta.url)}),kusto:se("kusto",function(){return G(()=>import("./kusto-C_L_1Mmv.js").then(e=>e.k),[],import.meta.url)}),latex:se("latex",function(){return G(()=>import("./latex-JgM-9Gu2.js").then(e=>e.l),[],import.meta.url)}),latte:se("latte",function(){return G(()=>import("./latte-DJHODm7Y.js").then(e=>e.l),__vite__mapDeps([52,24,53]),import.meta.url)}),less:se("less",function(){return G(()=>import("./less-v4kMI3Lf.js").then(e=>e.l),[],import.meta.url)}),lilypond:se("lilypond",function(){return G(()=>import("./lilypond-DXTVwhll.js").then(e=>e.l),__vite__mapDeps([54,55]),import.meta.url)}),liquid:se("liquid",function(){return G(()=>import("./liquid-B4cXqhVC.js").then(e=>e.l),__vite__mapDeps([56,24]),import.meta.url)}),lisp:se("lisp",function(){return G(()=>import("./lisp-Da01akxG.js").then(e=>e.l),[],import.meta.url)}),livescript:se("livescript",function(){return G(()=>import("./livescript-Bzi2hWBW.js").then(e=>e.l),[],import.meta.url)}),llvm:se("llvm",function(){return G(()=>import("./llvm-59kta1R-.js").then(e=>e.l),[],import.meta.url)}),log:se("log",function(){return G(()=>import("./log-BGppg3Dx.js").then(e=>e.l),[],import.meta.url)}),lolcode:se("lolcode",function(){return G(()=>import("./lolcode-hwzIQIml.js").then(e=>e.l),[],import.meta.url)}),lua:se("lua",function(){return G(()=>import("./lua-D5jtIJlW.js").then(e=>e.l),__vite__mapDeps([57,28]),import.meta.url)}),magma:se("magma",function(){return G(()=>import("./magma-BrCgOWyH.js").then(e=>e.m),[],import.meta.url)}),makefile:se("makefile",function(){return G(()=>import("./makefile-74utt6mh.js").then(e=>e.m),[],import.meta.url)}),markdown:se("markdown",function(){return G(()=>import("./markdown-CYm2V9zp.js").then(e=>e.m),[],import.meta.url)}),markupTemplating:se("markupTemplating",function(){return G(()=>import("./markup-templating-DaAVpOLY.js").then(e=>e.m),__vite__mapDeps([58,24]),import.meta.url)}),markup:se("markup",function(){return G(()=>import("./markup-EbSvgVab.js").then(e=>e.m),__vite__mapDeps([59,60]),import.meta.url)}),matlab:se("matlab",function(){return G(()=>import("./matlab-YiudmkWi.js").then(e=>e.m),[],import.meta.url)}),maxscript:se("maxscript",function(){return G(()=>import("./maxscript-DVkuy83-.js").then(e=>e.m),[],import.meta.url)}),mel:se("mel",function(){return G(()=>import("./mel-CjY1yICp.js").then(e=>e.m),[],import.meta.url)}),mermaid:se("mermaid",function(){return G(()=>import("./mermaid-D1wW4irL.js").then(e=>e.m),[],import.meta.url)}),mizar:se("mizar",function(){return G(()=>import("./mizar-2UDUhDwN.js").then(e=>e.m),[],import.meta.url)}),mongodb:se("mongodb",function(){return G(()=>import("./mongodb-CI5sM3nc.js").then(e=>e.m),[],import.meta.url)}),monkey:se("monkey",function(){return G(()=>import("./monkey-DPUrPpEL.js").then(e=>e.m),[],import.meta.url)}),moonscript:se("moonscript",function(){return G(()=>import("./moonscript-Dk0Of86l.js").then(e=>e.m),[],import.meta.url)}),n1ql:se("n1ql",function(){return G(()=>import("./n1ql-DA9MK8wL.js").then(e=>e.n),[],import.meta.url)}),n4js:se("n4js",function(){return G(()=>import("./n4js-DS1s8Eyr.js").then(e=>e.n),[],import.meta.url)}),nand2tetrisHdl:se("nand2tetrisHdl",function(){return G(()=>import("./nand2tetris-hdl-C88XY4cY.js").then(e=>e.n),[],import.meta.url)}),naniscript:se("naniscript",function(){return G(()=>import("./naniscript-D4kAldRC.js").then(e=>e.n),[],import.meta.url)}),nasm:se("nasm",function(){return G(()=>import("./nasm-CPWaI9G9.js").then(e=>e.n),[],import.meta.url)}),neon:se("neon",function(){return G(()=>import("./neon-LWyAB2f4.js").then(e=>e.n),[],import.meta.url)}),nevod:se("nevod",function(){return G(()=>import("./nevod-B26ug0Mp.js").then(e=>e.n),[],import.meta.url)}),nginx:se("nginx",function(){return G(()=>import("./nginx-SzxFsSDw.js").then(e=>e.n),[],import.meta.url)}),nim:se("nim",function(){return G(()=>import("./nim-Eb1dW3er.js").then(e=>e.n),[],import.meta.url)}),nix:se("nix",function(){return G(()=>import("./nix-C-8ntf5b.js").then(e=>e.n),[],import.meta.url)}),nsis:se("nsis",function(){return G(()=>import("./nsis-Xxk13EtC.js").then(e=>e.n),[],import.meta.url)}),objectivec:se("objectivec",function(){return G(()=>import("./objectivec-BUaEnvnI.js").then(e=>e.o),__vite__mapDeps([61,4]),import.meta.url)}),ocaml:se("ocaml",function(){return G(()=>import("./ocaml-BA2xlpF2.js").then(e=>e.o),[],import.meta.url)}),opencl:se("opencl",function(){return G(()=>import("./opencl-EmCSOQ0x.js").then(e=>e.o),__vite__mapDeps([62,4]),import.meta.url)}),openqasm:se("openqasm",function(){return G(()=>import("./openqasm-BzrlqF_g.js").then(e=>e.o),[],import.meta.url)}),oz:se("oz",function(){return G(()=>import("./oz-CvnqIg8C.js").then(e=>e.o),[],import.meta.url)}),parigp:se("parigp",function(){return G(()=>import("./parigp-B1jdXiS-.js").then(e=>e.p),[],import.meta.url)}),parser:se("parser",function(){return G(()=>import("./parser-Dz9Rc5vn.js").then(e=>e.p),[],import.meta.url)}),pascal:se("pascal",function(){return G(()=>import("./pascal-C5MeKfxe.js").then(e=>e.p),[],import.meta.url)}),pascaligo:se("pascaligo",function(){return G(()=>import("./pascaligo-CTpq62OS.js").then(e=>e.p),[],import.meta.url)}),pcaxis:se("pcaxis",function(){return G(()=>import("./pcaxis-AXEXkRZS.js").then(e=>e.p),[],import.meta.url)}),peoplecode:se("peoplecode",function(){return G(()=>import("./peoplecode-BtMaikF4.js").then(e=>e.p),[],import.meta.url)}),perl:se("perl",function(){return G(()=>import("./perl-DVq7h9Qm.js").then(e=>e.p),[],import.meta.url)}),phpExtras:se("phpExtras",function(){return G(()=>import("./php-extras-DyDO0oE6.js").then(e=>e.p),__vite__mapDeps([63,53,24]),import.meta.url)}),php:se("php",function(){return G(()=>import("./php-B7M2WypM.js").then(e=>e.p),__vite__mapDeps([64,53,24]),import.meta.url)}),phpdoc:se("phpdoc",function(){return G(()=>import("./phpdoc-D7_4-AJc.js").then(e=>e.p),__vite__mapDeps([65,53,24,40]),import.meta.url)}),plsql:se("plsql",function(){return G(()=>import("./plsql-CYAt5gAw.js").then(e=>e.p),__vite__mapDeps([66,1]),import.meta.url)}),powerquery:se("powerquery",function(){return G(()=>import("./powerquery-CKCiUaQd.js").then(e=>e.p),[],import.meta.url)}),powershell:se("powershell",function(){return G(()=>import("./powershell-D1d8ezv6.js").then(e=>e.p),[],import.meta.url)}),processing:se("processing",function(){return G(()=>import("./processing-9zHwXBw1.js").then(e=>e.p),[],import.meta.url)}),prolog:se("prolog",function(){return G(()=>import("./prolog-CO0BCjYv.js").then(e=>e.p),[],import.meta.url)}),promql:se("promql",function(){return G(()=>import("./promql-4289INr2.js").then(e=>e.p),[],import.meta.url)}),properties:se("properties",function(){return G(()=>import("./properties-BBnpt9VQ.js").then(e=>e.p),[],import.meta.url)}),protobuf:se("protobuf",function(){return G(()=>import("./protobuf-vRZjebxq.js").then(e=>e.p),[],import.meta.url)}),psl:se("psl",function(){return G(()=>import("./psl-SYgLfjFh.js").then(e=>e.p),[],import.meta.url)}),pug:se("pug",function(){return G(()=>import("./pug-GyJPxHb7.js").then(e=>e.p),[],import.meta.url)}),puppet:se("puppet",function(){return G(()=>import("./puppet-BHhXINeu.js").then(e=>e.p),[],import.meta.url)}),pure:se("pure",function(){return G(()=>import("./pure-DcLhYdAx.js").then(e=>e.p),[],import.meta.url)}),purebasic:se("purebasic",function(){return G(()=>import("./purebasic-Bqjy9Eus.js").then(e=>e.p),[],import.meta.url)}),purescript:se("purescript",function(){return G(()=>import("./purescript-C3zghzD2.js").then(e=>e.p),__vite__mapDeps([67,34]),import.meta.url)}),python:se("python",function(){return G(()=>import("./python-BAHlX1CE.js").then(e=>e.p),[],import.meta.url)}),q:se("q",function(){return G(()=>import("./q-WJSuviKU.js").then(e=>e.q),[],import.meta.url)}),qml:se("qml",function(){return G(()=>import("./qml-Cys9fF86.js").then(e=>e.q),[],import.meta.url)}),qore:se("qore",function(){return G(()=>import("./qore-CnbyuoB-.js").then(e=>e.q),[],import.meta.url)}),qsharp:se("qsharp",function(){return G(()=>import("./qsharp-CdHzE9HQ.js").then(e=>e.q),[],import.meta.url)}),r:se("r",function(){return G(()=>import("./r-B8hFUt0n.js").then(e=>e.r),[],import.meta.url)}),racket:se("racket",function(){return G(()=>import("./racket-DXkJu4YB.js").then(e=>e.r),__vite__mapDeps([68,55]),import.meta.url)}),reason:se("reason",function(){return G(()=>import("./reason-CPs_1H3E.js").then(e=>e.r),[],import.meta.url)}),regex:se("regex",function(){return G(()=>import("./regex-jjkTnuky.js").then(e=>e.r),[],import.meta.url)}),rego:se("rego",function(){return G(()=>import("./rego-DhJW_eIj.js").then(e=>e.r),[],import.meta.url)}),renpy:se("renpy",function(){return G(()=>import("./renpy-PdbQy9CK.js").then(e=>e.r),[],import.meta.url)}),rest:se("rest",function(){return G(()=>import("./rest-CaNWPj2b.js").then(e=>e.r),[],import.meta.url)}),rip:se("rip",function(){return G(()=>import("./rip-Bhw-336n.js").then(e=>e.r),[],import.meta.url)}),roboconf:se("roboconf",function(){return G(()=>import("./roboconf-CYmGXviF.js").then(e=>e.r),[],import.meta.url)}),robotframework:se("robotframework",function(){return G(()=>import("./robotframework-DMSP8UCo.js").then(e=>e.r),[],import.meta.url)}),ruby:se("ruby",function(){return G(()=>import("./ruby-Bp5S4Sb5.js").then(e=>e.r),__vite__mapDeps([69,18]),import.meta.url)}),rust:se("rust",function(){return G(()=>import("./rust-CL0lelyf.js").then(e=>e.r),[],import.meta.url)}),sas:se("sas",function(){return G(()=>import("./sas-DIeNQmET.js").then(e=>e.s),[],import.meta.url)}),sass:se("sass",function(){return G(()=>import("./sass-UxEFvi8r.js").then(e=>e.s),[],import.meta.url)}),scala:se("scala",function(){return G(()=>import("./scala-LqUyXRZv.js").then(e=>e.s),__vite__mapDeps([70,38]),import.meta.url)}),scheme:se("scheme",function(){return G(()=>import("./scheme-D3ufZ3DO.js").then(e=>e.s),__vite__mapDeps([71,55]),import.meta.url)}),scss:se("scss",function(){return G(()=>import("./scss-Ffmvj_PI.js").then(e=>e.s),[],import.meta.url)}),shellSession:se("shellSession",function(){return G(()=>import("./shell-session-Dr9tuVPL.js").then(e=>e.s),__vite__mapDeps([72,8]),import.meta.url)}),smali:se("smali",function(){return G(()=>import("./smali-BYn-Jvt1.js").then(e=>e.s),[],import.meta.url)}),smalltalk:se("smalltalk",function(){return G(()=>import("./smalltalk-CBKjtigp.js").then(e=>e.s),[],import.meta.url)}),smarty:se("smarty",function(){return G(()=>import("./smarty-DlxCRZso.js").then(e=>e.s),__vite__mapDeps([73,24]),import.meta.url)}),sml:se("sml",function(){return G(()=>import("./sml-G1U29o_k.js").then(e=>e.s),[],import.meta.url)}),solidity:se("solidity",function(){return G(()=>import("./solidity-Wd4yBZMS.js").then(e=>e.s),[],import.meta.url)}),solutionFile:se("solutionFile",function(){return G(()=>import("./solution-file-Cxf8cX_T.js").then(e=>e.s),[],import.meta.url)}),soy:se("soy",function(){return G(()=>import("./soy-D0u4FwpF.js").then(e=>e.s),__vite__mapDeps([74,24]),import.meta.url)}),sparql:se("sparql",function(){return G(()=>import("./sparql-Er6DMZei.js").then(e=>e.s),__vite__mapDeps([75,76]),import.meta.url)}),splunkSpl:se("splunkSpl",function(){return G(()=>import("./splunk-spl-Deh-9EVG.js").then(e=>e.s),[],import.meta.url)}),sqf:se("sqf",function(){return G(()=>import("./sqf-CqumexR_.js").then(e=>e.s),[],import.meta.url)}),sql:se("sql",function(){return G(()=>import("./sql-D9VQm_cU.js").then(e=>e.s),__vite__mapDeps([77,1]),import.meta.url)}),squirrel:se("squirrel",function(){return G(()=>import("./squirrel-LHN35ZEf.js").then(e=>e.s),[],import.meta.url)}),stan:se("stan",function(){return G(()=>import("./stan-BgqohLvg.js").then(e=>e.s),[],import.meta.url)}),stylus:se("stylus",function(){return G(()=>import("./stylus-wxvepQY2.js").then(e=>e.s),[],import.meta.url)}),swift:se("swift",function(){return G(()=>import("./swift-DgDNNSna.js").then(e=>e.s),[],import.meta.url)}),systemd:se("systemd",function(){return G(()=>import("./systemd-C75pK1N8.js").then(e=>e.s),[],import.meta.url)}),t4Cs:se("t4Cs",function(){return G(()=>import("./t4-cs-DiP71OxA.js").then(e=>e.t),__vite__mapDeps([78,79,6]),import.meta.url)}),t4Templating:se("t4Templating",function(){return G(()=>import("./t4-templating-Cbt8qd6E.js").then(e=>e.t),__vite__mapDeps([80,79]),import.meta.url)}),t4Vb:se("t4Vb",function(){return G(()=>import("./t4-vb-CmZbmSEF.js").then(e=>e.t),__vite__mapDeps([81,79,82,10]),import.meta.url)}),tap:se("tap",function(){return G(()=>import("./tap-BNVGfvB-.js").then(e=>e.t),__vite__mapDeps([83,84]),import.meta.url)}),tcl:se("tcl",function(){return G(()=>import("./tcl-_lY2-BMp.js").then(e=>e.t),[],import.meta.url)}),textile:se("textile",function(){return G(()=>import("./textile-B2LfbKPq.js").then(e=>e.t),[],import.meta.url)}),toml:se("toml",function(){return G(()=>import("./toml-BHZKvLBY.js").then(e=>e.t),[],import.meta.url)}),tremor:se("tremor",function(){return G(()=>import("./tremor-CfuUrG84.js").then(e=>e.t),[],import.meta.url)}),tsx:se("tsx",function(){return G(()=>import("./tsx-DdQm2BWK.js").then(e=>e.t),__vite__mapDeps([85,51,45]),import.meta.url)}),tt2:se("tt2",function(){return G(()=>import("./tt2-Ow17HAHq.js").then(e=>e.t),__vite__mapDeps([86,24]),import.meta.url)}),turtle:se("turtle",function(){return G(()=>import("./turtle-CcA2wOxF.js").then(e=>e.t),__vite__mapDeps([87,76]),import.meta.url)}),twig:se("twig",function(){return G(()=>import("./twig-Dm1E7WCn.js").then(e=>e.t),__vite__mapDeps([88,24]),import.meta.url)}),typescript:se("typescript",function(){return G(()=>import("./typescript-CKH70J6v.js").then(e=>e.t),__vite__mapDeps([89,45]),import.meta.url)}),typoscript:se("typoscript",function(){return G(()=>import("./typoscript-D8UlxPYB.js").then(e=>e.t),[],import.meta.url)}),unrealscript:se("unrealscript",function(){return G(()=>import("./unrealscript-DXgw-6kT.js").then(e=>e.u),[],import.meta.url)}),uorazor:se("uorazor",function(){return G(()=>import("./uorazor-BWLHs4Kp.js").then(e=>e.u),[],import.meta.url)}),uri:se("uri",function(){return G(()=>import("./uri-BksKTrOl.js").then(e=>e.u),[],import.meta.url)}),v:se("v",function(){return G(()=>import("./v-LX5wtmHF.js").then(e=>e.v),[],import.meta.url)}),vala:se("vala",function(){return G(()=>import("./vala-BY3LK85L.js").then(e=>e.v),[],import.meta.url)}),vbnet:se("vbnet",function(){return G(()=>import("./vbnet-k2UpKhQV.js").then(e=>e.v),__vite__mapDeps([90,82,10]),import.meta.url)}),velocity:se("velocity",function(){return G(()=>import("./velocity-CsKMHo-i.js").then(e=>e.v),[],import.meta.url)}),verilog:se("verilog",function(){return G(()=>import("./verilog-F6tb7Sjb.js").then(e=>e.v),[],import.meta.url)}),vhdl:se("vhdl",function(){return G(()=>import("./vhdl-Bk4Ye3Jw.js").then(e=>e.v),[],import.meta.url)}),vim:se("vim",function(){return G(()=>import("./vim-DyqicWlG.js").then(e=>e.v),[],import.meta.url)}),visualBasic:se("visualBasic",function(){return G(()=>import("./visual-basic-DN5wSXPq.js").then(e=>e.v),[],import.meta.url)}),warpscript:se("warpscript",function(){return G(()=>import("./warpscript-Bjphaung.js").then(e=>e.w),[],import.meta.url)}),wasm:se("wasm",function(){return G(()=>import("./wasm-CAWD3Zrv.js").then(e=>e.w),[],import.meta.url)}),webIdl:se("webIdl",function(){return G(()=>import("./web-idl-Y1jRjioD.js").then(e=>e.w),[],import.meta.url)}),wiki:se("wiki",function(){return G(()=>import("./wiki-DQ2Z3uFS.js").then(e=>e.w),[],import.meta.url)}),wolfram:se("wolfram",function(){return G(()=>import("./wolfram-0mySoVDJ.js").then(e=>e.w),[],import.meta.url)}),wren:se("wren",function(){return G(()=>import("./wren-BxO6Z5RO.js").then(e=>e.w),[],import.meta.url)}),xeora:se("xeora",function(){return G(()=>import("./xeora-DxQbZgMF.js").then(e=>e.x),[],import.meta.url)}),xmlDoc:se("xmlDoc",function(){return G(()=>import("./xml-doc-D1QYrgi-.js").then(e=>e.x),[],import.meta.url)}),xojo:se("xojo",function(){return G(()=>import("./xojo-0y0N-2U9.js").then(e=>e.x),[],import.meta.url)}),xquery:se("xquery",function(){return G(()=>import("./xquery-nB6YE7Vb.js").then(e=>e.x),[],import.meta.url)}),yaml:se("yaml",function(){return G(()=>import("./yaml-CX68Oi3o.js").then(e=>e.y),__vite__mapDeps([91,84]),import.meta.url)}),yang:se("yang",function(){return G(()=>import("./yang-CpNWmxDi.js").then(e=>e.y),[],import.meta.url)}),zig:se("zig",function(){return G(()=>import("./zig-ByT44zf2.js").then(e=>e.z),[],import.meta.url)})},Nbt=$bt({loader:function(){return G(()=>import("./core-COst5k2o.js").then(t=>t.c),__vite__mapDeps([92,60,22,15,43]),import.meta.url).then(function(t){return t.default||t})},isLanguageRegistered:function(t,r){return t.registered(r)},languageLoaders:Ibt,registerLanguage:function(t,r,n){return t.register(n)}});var Rbt=e=>t=>{const r=({components:{Pre:n,Code:i},language:s,code:o})=>p.jsx(e,{PreTag:n,CodeTag:i,...t,language:s,children:o});return r.displayName="PrismSyntaxHighlighter",r},Mbt=Rbt(Nbt);const BDe=1024;let jbt=0,Uc=class{constructor(t,r){this.from=t,this.to=r}};class hr{constructor(t={}){this.id=jbt++,this.perNode=!!t.perNode,this.deserialize=t.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")}),this.combine=t.combine||null}add(t){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof t!="function"&&(t=Rs.match(t)),r=>{let n=t(r);return n===void 0?null:[this,n]}}}hr.closedBy=new hr({deserialize:e=>e.split(" ")});hr.openedBy=new hr({deserialize:e=>e.split(" ")});hr.group=new hr({deserialize:e=>e.split(" ")});hr.isolate=new hr({deserialize:e=>{if(e&&e!="rtl"&&e!="ltr"&&e!="auto")throw new RangeError("Invalid value for isolate: "+e);return e||"auto"}});hr.contextHash=new hr({perNode:!0});hr.lookAhead=new hr({perNode:!0});hr.mounted=new hr({perNode:!0});class Bk{constructor(t,r,n){this.tree=t,this.overlay=r,this.parser=n}static get(t){return t&&t.props&&t.props[hr.mounted.id]}}const Fbt=Object.create(null);class Rs{constructor(t,r,n,i=0){this.name=t,this.props=r,this.id=n,this.flags=i}static define(t){let r=t.props&&t.props.length?Object.create(null):Fbt,n=(t.top?1:0)|(t.skipped?2:0)|(t.error?4:0)|(t.name==null?8:0),i=new Rs(t.name||"",r,t.id,n);if(t.props){for(let s of t.props)if(Array.isArray(s)||(s=s(i)),s){if(s[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");r[s[0].id]=s[1]}}return i}prop(t){return this.props[t.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(t){if(typeof t=="string"){if(this.name==t)return!0;let r=this.prop(hr.group);return r?r.indexOf(t)>-1:!1}return this.id==t}static match(t){let r=Object.create(null);for(let n in t)for(let i of n.split(" "))r[i]=t[n];return n=>{for(let i=n.prop(hr.group),s=-1;s<(i?i.length:0);s++){let o=r[s<0?n.name:i[s]];if(o)return o}}}}Rs.none=new Rs("",Object.create(null),0,8);class Bw{constructor(t){this.types=t;for(let r=0;r<t.length;r++)if(t[r].id!=r)throw new RangeError("Node type ids should correspond to array positions when creating a node set")}extend(...t){let r=[];for(let n of this.types){let i=null;for(let s of t){let o=s(n);if(o){i||(i=Object.assign({},n.props));let a=o[1],l=o[0];l.combine&&l.id in i&&(a=l.combine(i[l.id],a)),i[l.id]=a}}r.push(i?new Rs(n.name,i,n.id,n.flags):n)}return new Bw(r)}}const O2=new WeakMap,Ble=new WeakMap;var pi;(function(e){e[e.ExcludeBuffers=1]="ExcludeBuffers",e[e.IncludeAnonymous=2]="IncludeAnonymous",e[e.IgnoreMounts=4]="IgnoreMounts",e[e.IgnoreOverlays=8]="IgnoreOverlays"})(pi||(pi={}));class Ur{constructor(t,r,n,i,s){if(this.type=t,this.children=r,this.positions=n,this.length=i,this.props=null,s&&s.length){this.props=Object.create(null);for(let[o,a]of s)this.props[typeof o=="number"?o:o.id]=a}}toString(){let t=Bk.get(this);if(t&&!t.overlay)return t.tree.toString();let r="";for(let n of this.children){let i=n.toString();i&&(r&&(r+=","),r+=i)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(r.length?"("+r+")":""):r}cursor(t=0){return new AI(this.topNode,t)}cursorAt(t,r=0,n=0){let i=O2.get(this)||this.topNode,s=new AI(i);return s.moveTo(t,r),O2.set(this,s._tree),s}get topNode(){return new Go(this,0,0,null)}resolve(t,r=0){let n=Vk(O2.get(this)||this.topNode,t,r,!1);return O2.set(this,n),n}resolveInner(t,r=0){let n=Vk(Ble.get(this)||this.topNode,t,r,!0);return Ble.set(this,n),n}resolveStack(t,r=0){return Bbt(this,t,r)}iterate(t){let{enter:r,leave:n,from:i=0,to:s=this.length}=t,o=t.mode||0,a=(o&pi.IncludeAnonymous)>0;for(let l=this.cursor(o|pi.IncludeAnonymous);;){let c=!1;if(l.from<=s&&l.to>=i&&(!a&&l.type.isAnonymous||r(l)!==!1)){if(l.firstChild())continue;c=!0}for(;c&&n&&(a||!l.type.isAnonymous)&&n(l),!l.nextSibling();){if(!l.parent())return;c=!0}}}prop(t){return t.perNode?this.props?this.props[t.id]:void 0:this.type.prop(t)}get propValues(){let t=[];if(this.props)for(let r in this.props)t.push([+r,this.props[r]]);return t}balance(t={}){return this.children.length<=8?this:CG(Rs.none,this.children,this.positions,0,this.children.length,0,this.length,(r,n,i)=>new Ur(this.type,r,n,i,this.propValues),t.makeTree||((r,n,i)=>new Ur(Rs.none,r,n,i)))}static build(t){return Vbt(t)}}Ur.empty=new Ur(Rs.none,[],[],0);class kG{constructor(t,r){this.buffer=t,this.index=r}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new kG(this.buffer,this.index)}}class Ig{constructor(t,r,n){this.buffer=t,this.length=r,this.set=n}get type(){return Rs.none}toString(){let t=[];for(let r=0;r<this.buffer.length;)t.push(this.childString(r)),r=this.buffer[r+3];return t.join(",")}childString(t){let r=this.buffer[t],n=this.buffer[t+3],i=this.set.types[r],s=i.name;if(/\W/.test(s)&&!i.isError&&(s=JSON.stringify(s)),t+=4,n==t)return s;let o=[];for(;t<n;)o.push(this.childString(t)),t=this.buffer[t+3];return s+"("+o.join(",")+")"}findChild(t,r,n,i,s){let{buffer:o}=this,a=-1;for(let l=t;l!=r&&!(VDe(s,i,o[l+1],o[l+2])&&(a=l,n>0));l=o[l+3]);return a}slice(t,r,n){let i=this.buffer,s=new Uint16Array(r-t),o=0;for(let a=t,l=0;a<r;){s[l++]=i[a++],s[l++]=i[a++]-n;let c=s[l++]=i[a++]-n;s[l++]=i[a++]-t,o=Math.max(o,c)}return new Ig(s,o,this.set)}}function VDe(e,t,r,n){switch(e){case-2:return r<t;case-1:return n>=t&&r<t;case 0:return r<t&&n>t;case 1:return r<=t&&n>t;case 2:return n>t;case 4:return!0}}function Vk(e,t,r,n){for(var i;e.from==e.to||(r<1?e.from>=t:e.from>t)||(r>-1?e.to<=t:e.to<t);){let o=!n&&e instanceof Go&&e.index<0?null:e.parent;if(!o)return e;e=o}let s=n?0:pi.IgnoreOverlays;if(n)for(let o=e,a=o.parent;a;o=a,a=o.parent)o instanceof Go&&o.index<0&&((i=a.enter(t,r,s))===null||i===void 0?void 0:i.from)!=o.from&&(e=a);for(;;){let o=e.enter(t,r,s);if(!o)return e;e=o}}class UDe{cursor(t=0){return new AI(this,t)}getChild(t,r=null,n=null){let i=Vle(this,t,r,n);return i.length?i[0]:null}getChildren(t,r=null,n=null){return Vle(this,t,r,n)}resolve(t,r=0){return Vk(this,t,r,!1)}resolveInner(t,r=0){return Vk(this,t,r,!0)}matchContext(t){return tV(this.parent,t)}enterUnfinishedNodesBefore(t){let r=this.childBefore(t),n=this;for(;r;){let i=r.lastChild;if(!i||i.to!=r.to)break;i.type.isError&&i.from==i.to?(n=r,r=i.prevSibling):r=i}return n}get node(){return this}get next(){return this.parent}}class Go extends UDe{constructor(t,r,n,i){super(),this._tree=t,this.from=r,this.index=n,this._parent=i}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(t,r,n,i,s=0){for(let o=this;;){for(let{children:a,positions:l}=o._tree,c=r>0?a.length:-1;t!=c;t+=r){let u=a[t],d=l[t]+o.from;if(VDe(i,n,d,d+u.length)){if(u instanceof Ig){if(s&pi.ExcludeBuffers)continue;let f=u.findChild(0,u.buffer.length,r,n-d,i);if(f>-1)return new vf(new Lbt(o,u,t,d),null,f)}else if(s&pi.IncludeAnonymous||!u.type.isAnonymous||EG(u)){let f;if(!(s&pi.IgnoreMounts)&&(f=Bk.get(u))&&!f.overlay)return new Go(f.tree,d,t,o);let m=new Go(u,d,t,o);return s&pi.IncludeAnonymous||!m.type.isAnonymous?m:m.nextChild(r<0?u.children.length-1:0,r,n,i)}}}if(s&pi.IncludeAnonymous||!o.type.isAnonymous||(o.index>=0?t=o.index+r:t=r<0?-1:o._parent._tree.children.length,o=o._parent,!o))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(t){return this.nextChild(0,1,t,2)}childBefore(t){return this.nextChild(this._tree.children.length-1,-1,t,-2)}enter(t,r,n=0){let i;if(!(n&pi.IgnoreOverlays)&&(i=Bk.get(this._tree))&&i.overlay){let s=t-this.from;for(let{from:o,to:a}of i.overlay)if((r>0?o<=s:o<s)&&(r<0?a>=s:a>s))return new Go(i.tree,i.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,t,r,n)}nextSignificantParent(){let t=this;for(;t.type.isAnonymous&&t._parent;)t=t._parent;return t}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function Vle(e,t,r,n){let i=e.cursor(),s=[];if(!i.firstChild())return s;if(r!=null){for(let o=!1;!o;)if(o=i.type.is(r),!i.nextSibling())return s}for(;;){if(n!=null&&i.type.is(n))return s;if(i.type.is(t)&&s.push(i.node),!i.nextSibling())return n==null?s:[]}}function tV(e,t,r=t.length-1){for(let n=e;r>=0;n=n.parent){if(!n)return!1;if(!n.type.isAnonymous){if(t[r]&&t[r]!=n.name)return!1;r--}}return!0}class Lbt{constructor(t,r,n,i){this.parent=t,this.buffer=r,this.index=n,this.start=i}}class vf extends UDe{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(t,r,n){super(),this.context=t,this._parent=r,this.index=n,this.type=t.buffer.set.types[t.buffer.buffer[n]]}child(t,r,n){let{buffer:i}=this.context,s=i.findChild(this.index+4,i.buffer[this.index+3],t,r-this.context.start,n);return s<0?null:new vf(this.context,this,s)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(t){return this.child(1,t,2)}childBefore(t){return this.child(-1,t,-2)}enter(t,r,n=0){if(n&pi.ExcludeBuffers)return null;let{buffer:i}=this.context,s=i.findChild(this.index+4,i.buffer[this.index+3],r>0?1:-1,t-this.context.start,r);return s<0?null:new vf(this.context,this,s)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(t){return this._parent?null:this.context.parent.nextChild(this.context.index+t,t,0,4)}get nextSibling(){let{buffer:t}=this.context,r=t.buffer[this.index+3];return r<(this._parent?t.buffer[this._parent.index+3]:t.buffer.length)?new vf(this.context,this._parent,r):this.externalSibling(1)}get prevSibling(){let{buffer:t}=this.context,r=this._parent?this._parent.index+4:0;return this.index==r?this.externalSibling(-1):new vf(this.context,this._parent,t.findChild(r,this.index,-1,0,4))}get tree(){return null}toTree(){let t=[],r=[],{buffer:n}=this.context,i=this.index+4,s=n.buffer[this.index+3];if(s>i){let o=n.buffer[this.index+1];t.push(n.slice(i,s,o)),r.push(0)}return new Ur(this.type,t,r,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function QDe(e){if(!e.length)return null;let t=0,r=e[0];for(let s=1;s<e.length;s++){let o=e[s];(o.from>r.from||o.to<r.to)&&(r=o,t=s)}let n=r instanceof Go&&r.index<0?null:r.parent,i=e.slice();return n?i[t]=n:i.splice(t,1),new zbt(i,r)}class zbt{constructor(t,r){this.heads=t,this.node=r}get next(){return QDe(this.heads)}}function Bbt(e,t,r){let n=e.resolveInner(t,r),i=null;for(let s=n instanceof Go?n:n.context.parent;s;s=s.parent)if(s.index<0){let o=s.parent;(i||(i=[n])).push(o.resolve(t,r)),s=o}else{let o=Bk.get(s.tree);if(o&&o.overlay&&o.overlay[0].from<=t&&o.overlay[o.overlay.length-1].to>=t){let a=new Go(o.tree,o.overlay[0].from+s.from,-1,s);(i||(i=[n])).push(Vk(a,t,r,!1))}}return i?QDe(i):n}class AI{get name(){return this.type.name}constructor(t,r=0){if(this.mode=r,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,t instanceof Go)this.yieldNode(t);else{this._tree=t.context.parent,this.buffer=t.context;for(let n=t._parent;n;n=n._parent)this.stack.unshift(n.index);this.bufferNode=t,this.yieldBuf(t.index)}}yieldNode(t){return t?(this._tree=t,this.type=t.type,this.from=t.from,this.to=t.to,!0):!1}yieldBuf(t,r){this.index=t;let{start:n,buffer:i}=this.buffer;return this.type=r||i.set.types[i.buffer[t]],this.from=n+i.buffer[t+1],this.to=n+i.buffer[t+2],!0}yield(t){return t?t instanceof Go?(this.buffer=null,this.yieldNode(t)):(this.buffer=t.context,this.yieldBuf(t.index,t.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(t,r,n){if(!this.buffer)return this.yield(this._tree.nextChild(t<0?this._tree._tree.children.length-1:0,t,r,n,this.mode));let{buffer:i}=this.buffer,s=i.findChild(this.index+4,i.buffer[this.index+3],t,r-this.buffer.start,n);return s<0?!1:(this.stack.push(this.index),this.yieldBuf(s))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(t){return this.enterChild(1,t,2)}childBefore(t){return this.enterChild(-1,t,-2)}enter(t,r,n=this.mode){return this.buffer?n&pi.ExcludeBuffers?!1:this.enterChild(1,t,r):this.yield(this._tree.enter(t,r,n))}parent(){if(!this.buffer)return this.yieldNode(this.mode&pi.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let t=this.mode&pi.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(t)}sibling(t){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+t,t,0,4,this.mode)):!1;let{buffer:r}=this.buffer,n=this.stack.length-1;if(t<0){let i=n<0?0:this.stack[n]+4;if(this.index!=i)return this.yieldBuf(r.findChild(i,this.index,-1,0,4))}else{let i=r.buffer[this.index+3];if(i<(n<0?r.buffer.length:r.buffer[this.stack[n]+3]))return this.yieldBuf(i)}return n<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+t,t,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(t){let r,n,{buffer:i}=this;if(i){if(t>0){if(this.index<i.buffer.buffer.length)return!1}else for(let s=0;s<this.index;s++)if(i.buffer.buffer[s+3]<this.index)return!1;({index:r,parent:n}=i)}else({index:r,_parent:n}=this._tree);for(;n;{index:r,_parent:n}=n)if(r>-1)for(let s=r+t,o=t<0?-1:n._tree.children.length;s!=o;s+=t){let a=n._tree.children[s];if(this.mode&pi.IncludeAnonymous||a instanceof Ig||!a.type.isAnonymous||EG(a))return!1}return!0}move(t,r){if(r&&this.enterChild(t,0,4))return!0;for(;;){if(this.sibling(t))return!0;if(this.atLastNode(t)||!this.parent())return!1}}next(t=!0){return this.move(1,t)}prev(t=!0){return this.move(-1,t)}moveTo(t,r=0){for(;(this.from==this.to||(r<1?this.from>=t:this.from>t)||(r>-1?this.to<=t:this.to<t))&&this.parent(););for(;this.enterChild(1,t,r););return this}get node(){if(!this.buffer)return this._tree;let t=this.bufferNode,r=null,n=0;if(t&&t.context==this.buffer)e:for(let i=this.index,s=this.stack.length;s>=0;){for(let o=t;o;o=o._parent)if(o.index==i){if(i==this.index)return o;r=o,n=s+1;break e}i=this.stack[--s]}for(let i=n;i<this.stack.length;i++)r=new vf(this.buffer,r,this.stack[i]);return this.bufferNode=new vf(this.buffer,r,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(t,r){for(let n=0;;){let i=!1;if(this.type.isAnonymous||t(this)!==!1){if(this.firstChild()){n++;continue}this.type.isAnonymous||(i=!0)}for(;;){if(i&&r&&r(this),i=this.type.isAnonymous,!n)return;if(this.nextSibling())break;this.parent(),n--,i=!0}}}matchContext(t){if(!this.buffer)return tV(this.node.parent,t);let{buffer:r}=this.buffer,{types:n}=r.set;for(let i=t.length-1,s=this.stack.length-1;i>=0;s--){if(s<0)return tV(this._tree,t,i);let o=n[r.buffer[this.stack[s]]];if(!o.isAnonymous){if(t[i]&&t[i]!=o.name)return!1;i--}}return!0}}function EG(e){return e.children.some(t=>t instanceof Ig||!t.type.isAnonymous||EG(t))}function Vbt(e){var t;let{buffer:r,nodeSet:n,maxBufferLength:i=BDe,reused:s=[],minRepeatType:o=n.types.length}=e,a=Array.isArray(r)?new kG(r,r.length):r,l=n.types,c=0,u=0;function d(C,T,P,A,R,M){let{id:z,start:U,end:V,size:L}=a,Q=u,F=c;if(L<0)if(a.next(),L==-1){let J=s[z];P.push(J),A.push(U-C);return}else if(L==-3){c=z;return}else if(L==-4){u=z;return}else throw new RangeError(`Unrecognized record size: ${L}`);let N=l[z],I,H,B=U-C;if(V-U<=i&&(H=b(a.pos-T,R))){let J=new Uint16Array(H.size-H.skip),q=a.pos-H.size,j=J.length;for(;a.pos>q;)j=w(H.start,J,j);I=new Ig(J,V-H.start,n),B=H.start-C}else{let J=a.pos-L;a.next();let q=[],j=[],W=z>=o?z:-1,K=0,ne=V;for(;a.pos>J;)W>=0&&a.id==W&&a.size>=0?(a.end<=ne-i&&(g(q,j,U,K,a.end,ne,W,Q,F),K=q.length,ne=a.end),a.next()):M>2500?f(U,J,q,j):d(U,J,q,j,W,M+1);if(W>=0&&K>0&&K<q.length&&g(q,j,U,K,U,ne,W,Q,F),q.reverse(),j.reverse(),W>-1&&K>0){let X=m(N,F);I=CG(N,q,j,0,q.length,0,V-U,X,X)}else I=v(N,q,j,V-U,Q-V,F)}P.push(I),A.push(B)}function f(C,T,P,A){let R=[],M=0,z=-1;for(;a.pos>T;){let{id:U,start:V,end:L,size:Q}=a;if(Q>4)a.next();else{if(z>-1&&V<z)break;z<0&&(z=L-i),R.push(U,V,L),M++,a.next()}}if(M){let U=new Uint16Array(M*4),V=R[R.length-2];for(let L=R.length-3,Q=0;L>=0;L-=3)U[Q++]=R[L],U[Q++]=R[L+1]-V,U[Q++]=R[L+2]-V,U[Q++]=Q;P.push(new Ig(U,R[2]-V,n)),A.push(V-C)}}function m(C,T){return(P,A,R)=>{let M=0,z=P.length-1,U,V;if(z>=0&&(U=P[z])instanceof Ur){if(!z&&U.type==C&&U.length==R)return U;(V=U.prop(hr.lookAhead))&&(M=A[z]+U.length+V)}return v(C,P,A,R,M,T)}}function g(C,T,P,A,R,M,z,U,V){let L=[],Q=[];for(;C.length>A;)L.push(C.pop()),Q.push(T.pop()+P-R);C.push(v(n.types[z],L,Q,M-R,U-M,V)),T.push(R-P)}function v(C,T,P,A,R,M,z){if(M){let U=[hr.contextHash,M];z=z?[U].concat(z):[U]}if(R>25){let U=[hr.lookAhead,R];z=z?[U].concat(z):[U]}return new Ur(C,T,P,A,z)}function b(C,T){let P=a.fork(),A=0,R=0,M=0,z=P.end-i,U={size:0,start:0,skip:0};e:for(let V=P.pos-C;P.pos>V;){let L=P.size;if(P.id==T&&L>=0){U.size=A,U.start=R,U.skip=M,M+=4,A+=4,P.next();continue}let Q=P.pos-L;if(L<0||Q<V||P.start<z)break;let F=P.id>=o?4:0,N=P.start;for(P.next();P.pos>Q;){if(P.size<0)if(P.size==-3)F+=4;else break e;else P.id>=o&&(F+=4);P.next()}R=N,A+=L,M+=F}return(T<0||A==C)&&(U.size=A,U.start=R,U.skip=M),U.size>4?U:void 0}function w(C,T,P){let{id:A,start:R,end:M,size:z}=a;if(a.next(),z>=0&&A<o){let U=P;if(z>4){let V=a.pos-(z-4);for(;a.pos>V;)P=w(C,T,P)}T[--P]=U,T[--P]=M-C,T[--P]=R-C,T[--P]=A}else z==-3?c=A:z==-4&&(u=A);return P}let S=[],O=[];for(;a.pos>0;)d(e.start||0,e.bufferStart||0,S,O,-1,0);let k=(t=e.length)!==null&&t!==void 0?t:S.length?O[0]+S[0].length:0;return new Ur(l[e.topID],S.reverse(),O.reverse(),k)}const Ule=new WeakMap;function f$(e,t){if(!e.isAnonymous||t instanceof Ig||t.type!=e)return 1;let r=Ule.get(t);if(r==null){r=1;for(let n of t.children){if(n.type!=e||!(n instanceof Ur)){r=1;break}r+=f$(e,n)}Ule.set(t,r)}return r}function CG(e,t,r,n,i,s,o,a,l){let c=0;for(let g=n;g<i;g++)c+=f$(e,t[g]);let u=Math.ceil(c*1.5/8),d=[],f=[];function m(g,v,b,w,S){for(let O=b;O<w;){let k=O,C=v[O],T=f$(e,g[O]);for(O++;O<w;O++){let P=f$(e,g[O]);if(T+P>=u)break;T+=P}if(O==k+1){if(T>u){let P=g[k];m(P.children,P.positions,0,P.children.length,v[k]+S);continue}d.push(g[k])}else{let P=v[O-1]+g[O-1].length-C;d.push(CG(e,g,v,k,O,C,P,null,l))}f.push(C+S-s)}}return m(t,r,n,i,0),(a||l)(d,f,o)}class ZDe{constructor(){this.map=new WeakMap}setBuffer(t,r,n){let i=this.map.get(t);i||this.map.set(t,i=new Map),i.set(r,n)}getBuffer(t,r){let n=this.map.get(t);return n&&n.get(r)}set(t,r){t instanceof vf?this.setBuffer(t.context.buffer,t.index,r):t instanceof Go&&this.map.set(t.tree,r)}get(t){return t instanceof vf?this.getBuffer(t.context.buffer,t.index):t instanceof Go?this.map.get(t.tree):void 0}cursorSet(t,r){t.buffer?this.setBuffer(t.buffer.buffer,t.index,r):this.map.set(t.tree,r)}cursorGet(t){return t.buffer?this.getBuffer(t.buffer.buffer,t.index):this.map.get(t.tree)}}class Oh{constructor(t,r,n,i,s=!1,o=!1){this.from=t,this.to=r,this.tree=n,this.offset=i,this.open=(s?1:0)|(o?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(t,r=[],n=!1){let i=[new Oh(0,t.length,t,0,!1,n)];for(let s of r)s.to>t.length&&i.push(s);return i}static applyChanges(t,r,n=128){if(!r.length)return t;let i=[],s=1,o=t.length?t[0]:null;for(let a=0,l=0,c=0;;a++){let u=a<r.length?r[a]:null,d=u?u.fromA:1e9;if(d-l>=n)for(;o&&o.from<d;){let f=o;if(l>=f.from||d<=f.to||c){let m=Math.max(f.from,l)-c,g=Math.min(f.to,d)-c;f=m>=g?null:new Oh(m,g,f.tree,f.offset+c,a>0,!!u)}if(f&&i.push(f),o.to>d)break;o=s<t.length?t[s++]:null}if(!u)break;l=u.toA,c=u.toA-u.toB}return i}}class ZN{startParse(t,r,n){return typeof t=="string"&&(t=new Ubt(t)),n=n?n.length?n.map(i=>new Uc(i.from,i.to)):[new Uc(0,0)]:[new Uc(0,t.length)],this.createParse(t,r||[],n)}parse(t,r,n){let i=this.startParse(t,r,n);for(;;){let s=i.advance();if(s)return s}}}class Ubt{constructor(t){this.string=t}get length(){return this.string.length}chunk(t){return this.string.slice(t)}get lineChunks(){return!1}read(t,r){return this.string.slice(t,r)}}function qDe(e){return(t,r,n,i)=>new Zbt(t,e,r,n,i)}class Qle{constructor(t,r,n,i,s){this.parser=t,this.parse=r,this.overlay=n,this.target=i,this.from=s}}function Zle(e){if(!e.length||e.some(t=>t.from>=t.to))throw new RangeError("Invalid inner parse ranges given: "+JSON.stringify(e))}class Qbt{constructor(t,r,n,i,s,o,a){this.parser=t,this.predicate=r,this.mounts=n,this.index=i,this.start=s,this.target=o,this.prev=a,this.depth=0,this.ranges=[]}}const rV=new hr({perNode:!0});class Zbt{constructor(t,r,n,i,s){this.nest=r,this.input=n,this.fragments=i,this.ranges=s,this.inner=[],this.innerDone=0,this.baseTree=null,this.stoppedAt=null,this.baseParse=t}advance(){if(this.baseParse){let n=this.baseParse.advance();if(!n)return null;if(this.baseParse=null,this.baseTree=n,this.startInner(),this.stoppedAt!=null)for(let i of this.inner)i.parse.stopAt(this.stoppedAt)}if(this.innerDone==this.inner.length){let n=this.baseTree;return this.stoppedAt!=null&&(n=new Ur(n.type,n.children,n.positions,n.length,n.propValues.concat([[rV,this.stoppedAt]]))),n}let t=this.inner[this.innerDone],r=t.parse.advance();if(r){this.innerDone++;let n=Object.assign(Object.create(null),t.target.props);n[hr.mounted.id]=new Bk(r,t.overlay,t.parser),t.target.props=n}return null}get parsedPos(){if(this.baseParse)return 0;let t=this.input.length;for(let r=this.innerDone;r<this.inner.length;r++)this.inner[r].from<t&&(t=Math.min(t,this.inner[r].parse.parsedPos));return t}stopAt(t){if(this.stoppedAt=t,this.baseParse)this.baseParse.stopAt(t);else for(let r=this.innerDone;r<this.inner.length;r++)this.inner[r].parse.stopAt(t)}startInner(){let t=new Wbt(this.fragments),r=null,n=null,i=new AI(new Go(this.baseTree,this.ranges[0].from,0,null),pi.IncludeAnonymous|pi.IgnoreMounts);e:for(let s,o;;){let a=!0,l;if(this.stoppedAt!=null&&i.from>=this.stoppedAt)a=!1;else if(t.hasNode(i)){if(r){let c=r.mounts.find(u=>u.frag.from<=i.from&&u.frag.to>=i.to&&u.mount.overlay);if(c)for(let u of c.mount.overlay){let d=u.from+c.pos,f=u.to+c.pos;d>=i.from&&f<=i.to&&!r.ranges.some(m=>m.from<f&&m.to>d)&&r.ranges.push({from:d,to:f})}}a=!1}else if(n&&(o=qbt(n.ranges,i.from,i.to)))a=o!=2;else if(!i.type.isAnonymous&&(s=this.nest(i,this.input))&&(i.from<i.to||!s.overlay)){i.tree||(Hbt(i),r&&r.depth++,n&&n.depth++);let c=t.findMounts(i.from,s.parser);if(typeof s.overlay=="function")r=new Qbt(s.parser,s.overlay,c,this.inner.length,i.from,i.tree,r);else{let u=Wle(this.ranges,s.overlay||(i.from<i.to?[new Uc(i.from,i.to)]:[]));u.length&&Zle(u),(u.length||!s.overlay)&&this.inner.push(new Qle(s.parser,u.length?s.parser.startParse(this.input,Gle(c,u),u):s.parser.startParse(""),s.overlay?s.overlay.map(d=>new Uc(d.from-i.from,d.to-i.from)):null,i.tree,u.length?u[0].from:i.from)),s.overlay?u.length&&(n={ranges:u,depth:0,prev:n}):a=!1}}else if(r&&(l=r.predicate(i))&&(l===!0&&(l=new Uc(i.from,i.to)),l.from<l.to)){let c=r.ranges.length-1;c>=0&&r.ranges[c].to==l.from?r.ranges[c]={from:r.ranges[c].from,to:l.to}:r.ranges.push(l)}if(a&&i.firstChild())r&&r.depth++,n&&n.depth++;else for(;!i.nextSibling();){if(!i.parent())break e;if(r&&!--r.depth){let c=Wle(this.ranges,r.ranges);c.length&&(Zle(c),this.inner.splice(r.index,0,new Qle(r.parser,r.parser.startParse(this.input,Gle(r.mounts,c),c),r.ranges.map(u=>new Uc(u.from-r.start,u.to-r.start)),r.target,c[0].from))),r=r.prev}n&&!--n.depth&&(n=n.prev)}}}}function qbt(e,t,r){for(let n of e){if(n.from>=r)break;if(n.to>t)return n.from<=t&&n.to>=r?2:1}return 0}function qle(e,t,r,n,i,s){if(t<r){let o=e.buffer[t+1];n.push(e.slice(t,r,o)),i.push(o-s)}}function Hbt(e){let{node:t}=e,r=[],n=t.context.buffer;do r.push(e.index),e.parent();while(!e.tree);let i=e.tree,s=i.children.indexOf(n),o=i.children[s],a=o.buffer,l=[s];function c(u,d,f,m,g,v){let b=r[v],w=[],S=[];qle(o,u,b,w,S,m);let O=a[b+1],k=a[b+2];l.push(w.length);let C=v?c(b+4,a[b+3],o.set.types[a[b]],O,k-O,v-1):t.toTree();return w.push(C),S.push(O-m),qle(o,a[b+3],d,w,S,m),new Ur(f,w,S,g)}i.children[s]=c(0,a.length,Rs.none,0,o.length,r.length-1);for(let u of l){let d=e.tree.children[u],f=e.tree.positions[u];e.yield(new Go(d,f+e.from,u,e._tree))}}class Hle{constructor(t,r){this.offset=r,this.done=!1,this.cursor=t.cursor(pi.IncludeAnonymous|pi.IgnoreMounts)}moveTo(t){let{cursor:r}=this,n=t-this.offset;for(;!this.done&&r.from<n;)r.to>=t&&r.enter(n,1,pi.IgnoreOverlays|pi.ExcludeBuffers)||r.next(!1)||(this.done=!0)}hasNode(t){if(this.moveTo(t.from),!this.done&&this.cursor.from+this.offset==t.from&&this.cursor.tree)for(let r=this.cursor.tree;;){if(r==t.tree)return!0;if(r.children.length&&r.positions[0]==0&&r.children[0]instanceof Ur)r=r.children[0];else break}return!1}}let Wbt=class{constructor(t){var r;if(this.fragments=t,this.curTo=0,this.fragI=0,t.length){let n=this.curFrag=t[0];this.curTo=(r=n.tree.prop(rV))!==null&&r!==void 0?r:n.to,this.inner=new Hle(n.tree,-n.offset)}else this.curFrag=this.inner=null}hasNode(t){for(;this.curFrag&&t.from>=this.curTo;)this.nextFrag();return this.curFrag&&this.curFrag.from<=t.from&&this.curTo>=t.to&&this.inner.hasNode(t)}nextFrag(){var t;if(this.fragI++,this.fragI==this.fragments.length)this.curFrag=this.inner=null;else{let r=this.curFrag=this.fragments[this.fragI];this.curTo=(t=r.tree.prop(rV))!==null&&t!==void 0?t:r.to,this.inner=new Hle(r.tree,-r.offset)}}findMounts(t,r){var n;let i=[];if(this.inner){this.inner.cursor.moveTo(t,1);for(let s=this.inner.cursor.node;s;s=s.parent){let o=(n=s.tree)===null||n===void 0?void 0:n.prop(hr.mounted);if(o&&o.parser==r)for(let a=this.fragI;a<this.fragments.length;a++){let l=this.fragments[a];if(l.from>=s.to)break;l.tree==this.curFrag.tree&&i.push({frag:l,pos:s.from-l.offset,mount:o})}}}return i}};function Wle(e,t){let r=null,n=t;for(let i=1,s=0;i<e.length;i++){let o=e[i-1].to,a=e[i].from;for(;s<n.length;s++){let l=n[s];if(l.from>=a)break;l.to<=o||(r||(n=r=t.slice()),l.from<o?(r[s]=new Uc(l.from,o),l.to>a&&r.splice(s+1,0,new Uc(a,l.to))):l.to>a?r[s--]=new Uc(a,l.to):r.splice(s--,1))}}return n}function Gbt(e,t,r,n){let i=0,s=0,o=!1,a=!1,l=-1e9,c=[];for(;;){let u=i==e.length?1e9:o?e[i].to:e[i].from,d=s==t.length?1e9:a?t[s].to:t[s].from;if(o!=a){let f=Math.max(l,r),m=Math.min(u,d,n);f<m&&c.push(new Uc(f,m))}if(l=Math.min(u,d),l==1e9)break;u==l&&(o?(o=!1,i++):o=!0),d==l&&(a?(a=!1,s++):a=!0)}return c}function Gle(e,t){let r=[];for(let{pos:n,mount:i,frag:s}of e){let o=n+(i.overlay?i.overlay[0].from:0),a=o+i.tree.length,l=Math.max(s.from,o),c=Math.min(s.to,a);if(i.overlay){let u=i.overlay.map(f=>new Uc(f.from+n,f.to+n)),d=Gbt(t,u,l,c);for(let f=0,m=l;;f++){let g=f==d.length,v=g?c:d[f].from;if(v>m&&r.push(new Oh(m,v,i.tree,-o,s.from>=m||s.openStart,s.to<=v||s.openEnd)),g)break;m=d[f].to}}else r.push(new Oh(l,c,i.tree,-o,s.from>=o||s.openStart,s.to<=a||s.openEnd))}return r}var Xbt={},Xle={};let Ybt=class nV{constructor(t,r,n,i,s,o,a,l,c,u=0,d){this.p=t,this.stack=r,this.state=n,this.reducePos=i,this.pos=s,this.score=o,this.buffer=a,this.bufferBase=l,this.curContext=c,this.lookAhead=u,this.parent=d}toString(){return`[${this.stack.filter((t,r)=>r%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(t,r,n=0){let i=t.parser.context;return new nV(t,[],r,n,n,0,[],0,i?new Yle(i,i.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(t,r){this.stack.push(this.state,r,this.bufferBase+this.buffer.length),this.state=t}reduce(t){var r;let n=t>>19,i=t&65535,{parser:s}=this.p,o=this.reducePos<this.pos-25;o&&this.setLookAhead(this.pos);let a=s.dynamicPrecedence(i);if(a&&(this.score+=a),n==0){this.pushState(s.getGoto(this.state,i,!0),this.reducePos),i<s.minRepeatTerm&&this.storeNode(i,this.reducePos,this.reducePos,o?8:4,!0),this.reduceContext(i,this.reducePos);return}let l=this.stack.length-(n-1)*3-(t&262144?6:0),c=l?this.stack[l-2]:this.p.ranges[0].from,u=this.reducePos-c;u>=2e3&&!(!((r=this.p.parser.nodeSet.types[i])===null||r===void 0)&&r.isAnonymous)&&(c==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=u):this.p.lastBigReductionSize<u&&(this.p.bigReductionCount=1,this.p.lastBigReductionStart=c,this.p.lastBigReductionSize=u));let d=l?this.stack[l-1]:0,f=this.bufferBase+this.buffer.length-d;if(i<s.minRepeatTerm||t&131072){let m=s.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(i,c,m,f+4,!0)}if(t&262144)this.state=this.stack[l];else{let m=this.stack[l-3];this.state=s.getGoto(m,i,!0)}for(;this.stack.length>l;)this.stack.pop();this.reduceContext(i,c)}storeNode(t,r,n,i=4,s=!1){if(t==0&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){let o=this,a=this.buffer.length;if(a==0&&o.parent&&(a=o.bufferBase-o.parent.bufferBase,o=o.parent),a>0&&o.buffer[a-4]==0&&o.buffer[a-1]>-1){if(r==n)return;if(o.buffer[a-2]>=r){o.buffer[a-2]=n;return}}}if(!s||this.pos==n)this.buffer.push(t,r,n,i);else{let o=this.buffer.length;if(o>0&&this.buffer[o-4]!=0){let a=!1;for(let l=o;l>0&&this.buffer[l-2]>n;l-=4)if(this.buffer[l-1]>=0){a=!0;break}if(a)for(;o>0&&this.buffer[o-2]>n;)this.buffer[o]=this.buffer[o-4],this.buffer[o+1]=this.buffer[o-3],this.buffer[o+2]=this.buffer[o-2],this.buffer[o+3]=this.buffer[o-1],o-=4,i>4&&(i-=4)}this.buffer[o]=t,this.buffer[o+1]=r,this.buffer[o+2]=n,this.buffer[o+3]=i}}shift(t,r,n,i){if(t&131072)this.pushState(t&65535,this.pos);else if((t&262144)==0){let s=t,{parser:o}=this.p;(i>this.pos||r<=o.maxNode)&&(this.pos=i,o.stateFlag(s,1)||(this.reducePos=i)),this.pushState(s,n),this.shiftContext(r,n),r<=o.maxNode&&this.buffer.push(r,n,i,4)}else this.pos=i,this.shiftContext(r,n),r<=this.p.parser.maxNode&&this.buffer.push(r,n,i,4)}apply(t,r,n,i){t&65536?this.reduce(t):this.shift(t,r,n,i)}useNode(t,r){let n=this.p.reused.length-1;(n<0||this.p.reused[n]!=t)&&(this.p.reused.push(t),n++);let i=this.pos;this.reducePos=this.pos=i+t.length,this.pushState(r,i),this.buffer.push(n,i,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,t,this,this.p.stream.reset(this.pos-t.length)))}split(){let t=this,r=t.buffer.length;for(;r>0&&t.buffer[r-2]>t.reducePos;)r-=4;let n=t.buffer.slice(r),i=t.bufferBase+r;for(;t&&i==t.bufferBase;)t=t.parent;return new nV(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,n,i,this.curContext,this.lookAhead,t)}recoverByDelete(t,r){let n=t<=this.p.parser.maxNode;n&&this.storeNode(t,this.pos,r,4),this.storeNode(0,this.pos,r,n?8:4),this.pos=this.reducePos=r,this.score-=190}canShift(t){for(let r=new Jbt(this);;){let n=this.p.parser.stateSlot(r.state,4)||this.p.parser.hasAction(r.state,t);if(n==0)return!1;if((n&65536)==0)return!0;r.reduce(n)}}recoverByInsert(t){if(this.stack.length>=300)return[];let r=this.p.parser.nextStates(this.state);if(r.length>8||this.stack.length>=120){let i=[];for(let s=0,o;s<r.length;s+=2)(o=r[s+1])!=this.state&&this.p.parser.hasAction(o,t)&&i.push(r[s],o);if(this.stack.length<120)for(let s=0;i.length<8&&s<r.length;s+=2){let o=r[s+1];i.some((a,l)=>l&1&&a==o)||i.push(r[s],o)}r=i}let n=[];for(let i=0;i<r.length&&n.length<4;i+=2){let s=r[i+1];if(s==this.state)continue;let o=this.split();o.pushState(s,this.pos),o.storeNode(0,o.pos,o.pos,4,!0),o.shiftContext(r[i],this.pos),o.reducePos=this.pos,o.score-=200,n.push(o)}return n}forceReduce(){let{parser:t}=this.p,r=t.stateSlot(this.state,5);if((r&65536)==0)return!1;if(!t.validAction(this.state,r)){let n=r>>19,i=r&65535,s=this.stack.length-n*3;if(s<0||t.getGoto(this.stack[s],i,!1)<0){let o=this.findForcedReduction();if(o==null)return!1;r=o}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(r),!0}findForcedReduction(){let{parser:t}=this.p,r=[],n=(i,s)=>{if(!r.includes(i))return r.push(i),t.allActions(i,o=>{if(!(o&393216))if(o&65536){let a=(o>>19)-s;if(a>1){let l=o&65535,c=this.stack.length-a*3;if(c>=0&&t.getGoto(this.stack[c],l,!1)>=0)return a<<19|65536|l}}else{let a=n(o,s+1);if(a!=null)return a}})};return n(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:t}=this.p;return t.data[t.stateSlot(this.state,1)]==65535&&!t.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(t){if(this.state!=t.state||this.stack.length!=t.stack.length)return!1;for(let r=0;r<this.stack.length;r+=3)if(this.stack[r]!=t.stack[r])return!1;return!0}get parser(){return this.p.parser}dialectEnabled(t){return this.p.parser.dialect.flags[t]}shiftContext(t,r){this.curContext&&this.updateContext(this.curContext.tracker.shift(this.curContext.context,t,this,this.p.stream.reset(r)))}reduceContext(t,r){this.curContext&&this.updateContext(this.curContext.tracker.reduce(this.curContext.context,t,this,this.p.stream.reset(r)))}emitContext(){let t=this.buffer.length-1;(t<0||this.buffer[t]!=-3)&&this.buffer.push(this.curContext.hash,this.pos,this.pos,-3)}emitLookAhead(){let t=this.buffer.length-1;(t<0||this.buffer[t]!=-4)&&this.buffer.push(this.lookAhead,this.pos,this.pos,-4)}updateContext(t){if(t!=this.curContext.context){let r=new Yle(this.curContext.tracker,t);r.hash!=this.curContext.hash&&this.emitContext(),this.curContext=r}}setLookAhead(t){t>this.lookAhead&&(this.emitLookAhead(),this.lookAhead=t)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}};class Yle{constructor(t,r){this.tracker=t,this.context=r,this.hash=t.strict?t.hash(r):0}}class Jbt{constructor(t){this.start=t,this.state=t.state,this.stack=t.stack,this.base=this.stack.length}reduce(t){let r=t&65535,n=t>>19;n==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(n-1)*3;let i=this.start.p.parser.getGoto(this.stack[this.base-3],r,!0);this.state=i}}class PI{constructor(t,r,n){this.stack=t,this.pos=r,this.index=n,this.buffer=t.buffer,this.index==0&&this.maybeNext()}static create(t,r=t.bufferBase+t.buffer.length){return new PI(t,r,r-t.bufferBase)}maybeNext(){let t=this.stack.parent;t!=null&&(this.index=this.stack.bufferBase-t.bufferBase,this.stack=t,this.buffer=t.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new PI(this.stack,this.pos,this.index)}}function m_(e,t=Uint16Array){if(typeof e!="string")return e;let r=null;for(let n=0,i=0;n<e.length;){let s=0;for(;;){let o=e.charCodeAt(n++),a=!1;if(o==126){s=65535;break}o>=92&&o--,o>=34&&o--;let l=o-32;if(l>=46&&(l-=46,a=!0),s+=l,a)break;s*=46}r?r[i++]=s:r=new t(s)}return r}class p${constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const Jle=new p$;class Kbt{constructor(t,r){this.input=t,this.ranges=r,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=Jle,this.rangeIndex=0,this.pos=this.chunkPos=r[0].from,this.range=r[0],this.end=r[r.length-1].to,this.readNext()}resolveOffset(t,r){let n=this.range,i=this.rangeIndex,s=this.pos+t;for(;s<n.from;){if(!i)return null;let o=this.ranges[--i];s-=n.from-o.to,n=o}for(;r<0?s>n.to:s>=n.to;){if(i==this.ranges.length-1)return null;let o=this.ranges[++i];s+=o.from-n.to,n=o}return s}clipPos(t){if(t>=this.range.from&&t<this.range.to)return t;for(let r of this.ranges)if(r.to>t)return Math.max(t,r.from);return this.end}peek(t){let r=this.chunkOff+t,n,i;if(r>=0&&r<this.chunk.length)n=this.pos+t,i=this.chunk.charCodeAt(r);else{let s=this.resolveOffset(t,1);if(s==null)return-1;if(n=s,n>=this.chunk2Pos&&n<this.chunk2Pos+this.chunk2.length)i=this.chunk2.charCodeAt(n-this.chunk2Pos);else{let o=this.rangeIndex,a=this.range;for(;a.to<=n;)a=this.ranges[++o];this.chunk2=this.input.chunk(this.chunk2Pos=n),n+this.chunk2.length>a.to&&(this.chunk2=this.chunk2.slice(0,a.to-n)),i=this.chunk2.charCodeAt(0)}}return n>=this.token.lookAhead&&(this.token.lookAhead=n+1),i}acceptToken(t,r=0){let n=r?this.resolveOffset(r,-1):this.pos;if(n==null||n<this.token.start)throw new RangeError("Token end out of bounds");this.token.value=t,this.token.end=n}acceptTokenTo(t,r){this.token.value=t,this.token.end=r}getChunk(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){let{chunk:t,chunkPos:r}=this;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=t,this.chunk2Pos=r,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;let t=this.input.chunk(this.pos),r=this.pos+t.length;this.chunk=r>this.range.to?t.slice(0,this.range.to-this.pos):t,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(t=1){for(this.chunkOff+=t;this.pos+t>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();t-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=t,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(t,r){if(r?(this.token=r,r.start=t,r.lookAhead=t+1,r.value=r.extended=-1):this.token=Jle,this.pos!=t){if(this.pos=t,t==this.end)return this.setDone(),this;for(;t<this.range.from;)this.range=this.ranges[--this.rangeIndex];for(;t>=this.range.to;)this.range=this.ranges[++this.rangeIndex];t>=this.chunkPos&&t<this.chunkPos+this.chunk.length?this.chunkOff=t-this.chunkPos:(this.chunk="",this.chunkOff=0),this.readNext()}return this}read(t,r){if(t>=this.chunkPos&&r<=this.chunkPos+this.chunk.length)return this.chunk.slice(t-this.chunkPos,r-this.chunkPos);if(t>=this.chunk2Pos&&r<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(t-this.chunk2Pos,r-this.chunk2Pos);if(t>=this.range.from&&r<=this.range.to)return this.input.read(t,r);let n="";for(let i of this.ranges){if(i.from>=r)break;i.to>t&&(n+=this.input.read(Math.max(i.from,t),Math.min(i.to,r)))}return n}}class Ux{constructor(t,r){this.data=t,this.id=r}token(t,r){let{parser:n}=r.p;HDe(this.data,t,r,this.id,n.data,n.tokenPrecTable)}}Ux.prototype.contextual=Ux.prototype.fallback=Ux.prototype.extend=!1;class $I{constructor(t,r,n){this.precTable=r,this.elseToken=n,this.data=typeof t=="string"?m_(t):t}token(t,r){let n=t.pos,i=0;for(;;){let s=t.next<0,o=t.resolveOffset(1,1);if(HDe(this.data,t,r,0,this.data,this.precTable),t.token.value>-1)break;if(this.elseToken==null)return;if(s||i++,o==null)break;t.reset(o,t.token)}i&&(t.reset(n,t.token),t.acceptToken(this.elseToken,i))}}$I.prototype.contextual=Ux.prototype.fallback=Ux.prototype.extend=!1;class bc{constructor(t,r={}){this.token=t,this.contextual=!!r.contextual,this.fallback=!!r.fallback,this.extend=!!r.extend}}function HDe(e,t,r,n,i,s){let o=0,a=1<<n,{dialect:l}=r.p.parser;e:for(;(a&e[o])!=0;){let c=e[o+1];for(let m=o+3;m<c;m+=2)if((e[m+1]&a)>0){let g=e[m];if(l.allows(g)&&(t.token.value==-1||t.token.value==g||ext(g,t.token.value,i,s))){t.acceptToken(g);break}}let u=t.next,d=0,f=e[o+2];if(t.next<0&&f>d&&e[c+f*3-3]==65535){o=e[c+f*3-1];continue e}for(;d<f;){let m=d+f>>1,g=c+m+(m<<1),v=e[g],b=e[g+1]||65536;if(u<v)f=m;else if(u>=b)d=m+1;else{o=e[g+2],t.advance();continue e}}break}}function Kle(e,t,r){for(let n=t,i;(i=e[n])!=65535;n++)if(i==r)return n-t;return-1}function ext(e,t,r,n){let i=Kle(r,n,t);return i<0||Kle(r,n,e)<i}const Pl=typeof Xbt<"u"&&Xle&&/\bparse\b/.test(Xle.LOG);let Z9=null;function ece(e,t,r){let n=e.cursor(pi.IncludeAnonymous);for(n.moveTo(t);;)if(!(r<0?n.childBefore(t):n.childAfter(t)))for(;;){if((r<0?n.to<t:n.from>t)&&!n.type.isError)return r<0?Math.max(0,Math.min(n.to-1,t-25)):Math.min(e.length,Math.max(n.from+1,t+25));if(r<0?n.prevSibling():n.nextSibling())break;if(!n.parent())return r<0?0:e.length}}let txt=class{constructor(t,r){this.fragments=t,this.nodeSet=r,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let t=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(t){for(this.safeFrom=t.openStart?ece(t.tree,t.from+t.offset,1)-t.offset:t.from,this.safeTo=t.openEnd?ece(t.tree,t.to+t.offset,-1)-t.offset:t.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(t.tree),this.start.push(-t.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(t){if(t<this.nextStart)return null;for(;this.fragment&&this.safeTo<=t;)this.nextFragment();if(!this.fragment)return null;for(;;){let r=this.trees.length-1;if(r<0)return this.nextFragment(),null;let n=this.trees[r],i=this.index[r];if(i==n.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}let s=n.children[i],o=this.start[r]+n.positions[i];if(o>t)return this.nextStart=o,null;if(s instanceof Ur){if(o==t){if(o<this.safeFrom)return null;let a=o+s.length;if(a<=this.safeTo){let l=s.prop(hr.lookAhead);if(!l||a+l<this.fragment.to)return s}}this.index[r]++,o+s.length>=Math.max(this.safeFrom,t)&&(this.trees.push(s),this.start.push(o),this.index.push(0))}else this.index[r]++,this.nextStart=o+s.length}}};class rxt{constructor(t,r){this.stream=r,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=t.tokenizers.map(n=>new p$)}getActions(t){let r=0,n=null,{parser:i}=t.p,{tokenizers:s}=i,o=i.stateSlot(t.state,3),a=t.curContext?t.curContext.hash:0,l=0;for(let c=0;c<s.length;c++){if((1<<c&o)==0)continue;let u=s[c],d=this.tokens[c];if(!(n&&!u.fallback)&&((u.contextual||d.start!=t.pos||d.mask!=o||d.context!=a)&&(this.updateCachedToken(d,u,t),d.mask=o,d.context=a),d.lookAhead>d.end+25&&(l=Math.max(d.lookAhead,l)),d.value!=0)){let f=r;if(d.extended>-1&&(r=this.addActions(t,d.extended,d.end,r)),r=this.addActions(t,d.value,d.end,r),!u.extend&&(n=d,r>f))break}}for(;this.actions.length>r;)this.actions.pop();return l&&t.setLookAhead(l),!n&&t.pos==this.stream.end&&(n=new p$,n.value=t.p.parser.eofTerm,n.start=n.end=t.pos,r=this.addActions(t,n.value,n.end,r)),this.mainToken=n,this.actions}getMainToken(t){if(this.mainToken)return this.mainToken;let r=new p$,{pos:n,p:i}=t;return r.start=n,r.end=Math.min(n+1,i.stream.end),r.value=n==i.stream.end?i.parser.eofTerm:0,r}updateCachedToken(t,r,n){let i=this.stream.clipPos(n.pos);if(r.token(this.stream.reset(i,t),n),t.value>-1){let{parser:s}=n.p;for(let o=0;o<s.specialized.length;o++)if(s.specialized[o]==t.value){let a=s.specializers[o](this.stream.read(t.start,t.end),n);if(a>=0&&n.p.parser.dialect.allows(a>>1)){(a&1)==0?t.value=a>>1:t.extended=a>>1;break}}}else t.value=0,t.end=this.stream.clipPos(i+1)}putAction(t,r,n,i){for(let s=0;s<i;s+=3)if(this.actions[s]==t)return i;return this.actions[i++]=t,this.actions[i++]=r,this.actions[i++]=n,i}addActions(t,r,n,i){let{state:s}=t,{parser:o}=t.p,{data:a}=o;for(let l=0;l<2;l++)for(let c=o.stateSlot(s,l?2:1);;c+=3){if(a[c]==65535)if(a[c+1]==1)c=uh(a,c+2);else{i==0&&a[c+1]==2&&(i=this.putAction(uh(a,c+2),r,n,i));break}a[c]==r&&(i=this.putAction(uh(a,c+1),r,n,i))}return i}}let nxt=class{constructor(t,r,n,i){this.parser=t,this.input=r,this.ranges=i,this.recovering=0,this.nextStackID=9812,this.minStackPos=0,this.reused=[],this.stoppedAt=null,this.lastBigReductionStart=-1,this.lastBigReductionSize=0,this.bigReductionCount=0,this.stream=new Kbt(r,i),this.tokens=new rxt(t,this.stream),this.topTerm=t.top[1];let{from:s}=i[0];this.stacks=[Ybt.start(this,t.top[0],s)],this.fragments=n.length&&this.stream.end-s>t.bufferLength*4?new txt(n,t.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let t=this.stacks,r=this.minStackPos,n=this.stacks=[],i,s;if(this.bigReductionCount>300&&t.length==1){let[o]=t;for(;o.forceReduce()&&o.stack.length&&o.stack[o.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let o=0;o<t.length;o++){let a=t[o];for(;;){if(this.tokens.mainToken=null,a.pos>r)n.push(a);else{if(this.advanceStack(a,n,t))continue;{i||(i=[],s=[]),i.push(a);let l=this.tokens.getMainToken(a);s.push(l.value,l.end)}}break}}if(!n.length){let o=i&&sxt(i);if(o)return Pl&&console.log("Finish with "+this.stackID(o)),this.stackToTree(o);if(this.parser.strict)throw Pl&&i&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+r);this.recovering||(this.recovering=5)}if(this.recovering&&i){let o=this.stoppedAt!=null&&i[0].pos>this.stoppedAt?i[0]:this.runRecovery(i,s,n);if(o)return Pl&&console.log("Force-finish "+this.stackID(o)),this.stackToTree(o.forceAll())}if(this.recovering){let o=this.recovering==1?1:this.recovering*3;if(n.length>o)for(n.sort((a,l)=>l.score-a.score);n.length>o;)n.pop();n.some(a=>a.reducePos>r)&&this.recovering--}else if(n.length>1){e:for(let o=0;o<n.length-1;o++){let a=n[o];for(let l=o+1;l<n.length;l++){let c=n[l];if(a.sameState(c)||a.buffer.length>500&&c.buffer.length>500)if((a.score-c.score||a.buffer.length-c.buffer.length)>0)n.splice(l--,1);else{n.splice(o--,1);continue e}}}n.length>12&&n.splice(12,n.length-12)}this.minStackPos=n[0].pos;for(let o=1;o<n.length;o++)n[o].pos<this.minStackPos&&(this.minStackPos=n[o].pos);return null}stopAt(t){if(this.stoppedAt!=null&&this.stoppedAt<t)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=t}advanceStack(t,r,n){let i=t.pos,{parser:s}=this,o=Pl?this.stackID(t)+" -> ":"";if(this.stoppedAt!=null&&i>this.stoppedAt)return t.forceReduce()?t:null;if(this.fragments){let c=t.curContext&&t.curContext.tracker.strict,u=c?t.curContext.hash:0;for(let d=this.fragments.nodeAt(i);d;){let f=this.parser.nodeSet.types[d.type.id]==d.type?s.getGoto(t.state,d.type.id):-1;if(f>-1&&d.length&&(!c||(d.prop(hr.contextHash)||0)==u))return t.useNode(d,f),Pl&&console.log(o+this.stackID(t)+` (via reuse of ${s.getName(d.type.id)})`),!0;if(!(d instanceof Ur)||d.children.length==0||d.positions[0]>0)break;let m=d.children[0];if(m instanceof Ur&&d.positions[0]==0)d=m;else break}}let a=s.stateSlot(t.state,4);if(a>0)return t.reduce(a),Pl&&console.log(o+this.stackID(t)+` (via always-reduce ${s.getName(a&65535)})`),!0;if(t.stack.length>=8400)for(;t.stack.length>6e3&&t.forceReduce(););let l=this.tokens.getActions(t);for(let c=0;c<l.length;){let u=l[c++],d=l[c++],f=l[c++],m=c==l.length||!n,g=m?t:t.split(),v=this.tokens.mainToken;if(g.apply(u,d,v?v.start:g.pos,f),Pl&&console.log(o+this.stackID(g)+` (via ${(u&65536)==0?"shift":`reduce of ${s.getName(u&65535)}`} for ${s.getName(d)} @ ${i}${g==t?"":", split"})`),m)return!0;g.pos>i?r.push(g):n.push(g)}return!1}advanceFully(t,r){let n=t.pos;for(;;){if(!this.advanceStack(t,null,null))return!1;if(t.pos>n)return tce(t,r),!0}}runRecovery(t,r,n){let i=null,s=!1;for(let o=0;o<t.length;o++){let a=t[o],l=r[o<<1],c=r[(o<<1)+1],u=Pl?this.stackID(a)+" -> ":"";if(a.deadEnd&&(s||(s=!0,a.restart(),Pl&&console.log(u+this.stackID(a)+" (restarted)"),this.advanceFully(a,n))))continue;let d=a.split(),f=u;for(let m=0;d.forceReduce()&&m<10&&(Pl&&console.log(f+this.stackID(d)+" (via force-reduce)"),!this.advanceFully(d,n));m++)Pl&&(f=this.stackID(d)+" -> ");for(let m of a.recoverByInsert(l))Pl&&console.log(u+this.stackID(m)+" (via recover-insert)"),this.advanceFully(m,n);this.stream.end>a.pos?(c==a.pos&&(c++,l=0),a.recoverByDelete(l,c),Pl&&console.log(u+this.stackID(a)+` (via recover-delete ${this.parser.getName(l)})`),tce(a,n)):(!i||i.score<a.score)&&(i=a)}return i}stackToTree(t){return t.close(),Ur.build({buffer:PI.create(t),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:t.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}stackID(t){let r=(Z9||(Z9=new WeakMap)).get(t);return r||Z9.set(t,r=String.fromCodePoint(this.nextStackID++)),r+t}};function tce(e,t){for(let r=0;r<t.length;r++){let n=t[r];if(n.pos==e.pos&&n.sameState(e)){t[r].score<e.score&&(t[r]=e);return}}t.push(e)}class ixt{constructor(t,r,n){this.source=t,this.flags=r,this.disabled=n}allows(t){return!this.disabled||this.disabled[t]==0}}const q9=e=>e;class WDe{constructor(t){this.start=t.start,this.shift=t.shift||q9,this.reduce=t.reduce||q9,this.reuse=t.reuse||q9,this.hash=t.hash||(()=>0),this.strict=t.strict!==!1}}class Qv extends ZN{constructor(t){if(super(),this.wrappers=[],t.version!=14)throw new RangeError(`Parser version (${t.version}) doesn't match runtime version (14)`);let r=t.nodeNames.split(" ");this.minRepeatTerm=r.length;for(let a=0;a<t.repeatNodeCount;a++)r.push("");let n=Object.keys(t.topRules).map(a=>t.topRules[a][1]),i=[];for(let a=0;a<r.length;a++)i.push([]);function s(a,l,c){i[a].push([l,l.deserialize(String(c))])}if(t.nodeProps)for(let a of t.nodeProps){let l=a[0];typeof l=="string"&&(l=hr[l]);for(let c=1;c<a.length;){let u=a[c++];if(u>=0)s(u,l,a[c++]);else{let d=a[c+-u];for(let f=-u;f>0;f--)s(a[c++],l,d);c++}}}this.nodeSet=new Bw(r.map((a,l)=>Rs.define({name:l>=this.minRepeatTerm?void 0:a,id:l,props:i[l],top:n.indexOf(l)>-1,error:l==0,skipped:t.skippedNodes&&t.skippedNodes.indexOf(l)>-1}))),t.propSources&&(this.nodeSet=this.nodeSet.extend(...t.propSources)),this.strict=!1,this.bufferLength=BDe;let o=m_(t.tokenData);this.context=t.context,this.specializerSpecs=t.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let a=0;a<this.specializerSpecs.length;a++)this.specialized[a]=this.specializerSpecs[a].term;this.specializers=this.specializerSpecs.map(rce),this.states=m_(t.states,Uint32Array),this.data=m_(t.stateData),this.goto=m_(t.goto),this.maxTerm=t.maxTerm,this.tokenizers=t.tokenizers.map(a=>typeof a=="number"?new Ux(o,a):a),this.topRules=t.topRules,this.dialects=t.dialects||{},this.dynamicPrecedences=t.dynamicPrecedences||null,this.tokenPrecTable=t.tokenPrec,this.termNames=t.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(t,r,n){let i=new nxt(this,t,r,n);for(let s of this.wrappers)i=s(i,t,r,n);return i}getGoto(t,r,n=!1){let i=this.goto;if(r>=i[0])return-1;for(let s=i[r+1];;){let o=i[s++],a=o&1,l=i[s++];if(a&&n)return l;for(let c=s+(o>>1);s<c;s++)if(i[s]==t)return l;if(a)return-1}}hasAction(t,r){let n=this.data;for(let i=0;i<2;i++)for(let s=this.stateSlot(t,i?2:1),o;;s+=3){if((o=n[s])==65535)if(n[s+1]==1)o=n[s=uh(n,s+2)];else{if(n[s+1]==2)return uh(n,s+2);break}if(o==r||o==0)return uh(n,s+1)}return 0}stateSlot(t,r){return this.states[t*6+r]}stateFlag(t,r){return(this.stateSlot(t,0)&r)>0}validAction(t,r){return!!this.allActions(t,n=>n==r?!0:null)}allActions(t,r){let n=this.stateSlot(t,4),i=n?r(n):void 0;for(let s=this.stateSlot(t,1);i==null;s+=3){if(this.data[s]==65535)if(this.data[s+1]==1)s=uh(this.data,s+2);else break;i=r(uh(this.data,s+1))}return i}nextStates(t){let r=[];for(let n=this.stateSlot(t,1);;n+=3){if(this.data[n]==65535)if(this.data[n+1]==1)n=uh(this.data,n+2);else break;if((this.data[n+2]&1)==0){let i=this.data[n+1];r.some((s,o)=>o&1&&s==i)||r.push(this.data[n],i)}}return r}configure(t){let r=Object.assign(Object.create(Qv.prototype),this);if(t.props&&(r.nodeSet=this.nodeSet.extend(...t.props)),t.top){let n=this.topRules[t.top];if(!n)throw new RangeError(`Invalid top rule name ${t.top}`);r.top=n}return t.tokenizers&&(r.tokenizers=this.tokenizers.map(n=>{let i=t.tokenizers.find(s=>s.from==n);return i?i.to:n})),t.specializers&&(r.specializers=this.specializers.slice(),r.specializerSpecs=this.specializerSpecs.map((n,i)=>{let s=t.specializers.find(a=>a.from==n.external);if(!s)return n;let o=Object.assign(Object.assign({},n),{external:s.to});return r.specializers[i]=rce(o),o})),t.contextTracker&&(r.context=t.contextTracker),t.dialect&&(r.dialect=this.parseDialect(t.dialect)),t.strict!=null&&(r.strict=t.strict),t.wrap&&(r.wrappers=r.wrappers.concat(t.wrap)),t.bufferLength!=null&&(r.bufferLength=t.bufferLength),r}hasWrappers(){return this.wrappers.length>0}getName(t){return this.termNames?this.termNames[t]:String(t<=this.maxNode&&this.nodeSet.types[t].name||t)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(t){let r=this.dynamicPrecedences;return r==null?0:r[t]||0}parseDialect(t){let r=Object.keys(this.dialects),n=r.map(()=>!1);if(t)for(let s of t.split(" ")){let o=r.indexOf(s);o>=0&&(n[o]=!0)}let i=null;for(let s=0;s<r.length;s++)if(!n[s])for(let o=this.dialects[r[s]],a;(a=this.data[o++])!=65535;)(i||(i=new Uint8Array(this.maxTerm+1)))[a]=1;return new ixt(t,n,i)}static deserialize(t){return new Qv(t)}}function uh(e,t){return e[t]|e[t+1]<<16}function sxt(e){let t=null;for(let r of e){let n=r.p.stoppedAt;(r.pos==r.p.stream.end||n!=null&&r.pos>n)&&r.p.parser.stateFlag(r.state,2)&&(!t||t.score<r.score)&&(t=r)}return t}function rce(e){if(e.external){let t=e.extend?1:0;return(r,n)=>e.external(r,n)<<1|t}return e.get}let oxt=0;class Ql{constructor(t,r,n,i){this.name=t,this.set=r,this.base=n,this.modified=i,this.id=oxt++}toString(){let{name:t}=this;for(let r of this.modified)r.name&&(t=`${r.name}(${t})`);return t}static define(t,r){let n=typeof t=="string"?t:"?";if(t instanceof Ql&&(r=t),r?.base)throw new Error("Can not derive from a modified tag");let i=new Ql(n,[],null,[]);if(i.set.push(i),r)for(let s of r.set)i.set.push(s);return i}static defineModifier(t){let r=new II(t);return n=>n.modified.indexOf(r)>-1?n:II.get(n.base||n,n.modified.concat(r).sort((i,s)=>i.id-s.id))}}let axt=0;class II{constructor(t){this.name=t,this.instances=[],this.id=axt++}static get(t,r){if(!r.length)return t;let n=r[0].instances.find(a=>a.base==t&&lxt(r,a.modified));if(n)return n;let i=[],s=new Ql(t.name,i,t,r);for(let a of r)a.instances.push(s);let o=cxt(r);for(let a of t.set)if(!a.modified.length)for(let l of o)i.push(II.get(a,l));return s}}function lxt(e,t){return e.length==t.length&&e.every((r,n)=>r==t[n])}function cxt(e){let t=[[]];for(let r=0;r<e.length;r++)for(let n=0,i=t.length;n<i;n++)t.push(t[n].concat(e[r]));return t.sort((r,n)=>n.length-r.length)}function E0(e){let t=Object.create(null);for(let r in e){let n=e[r];Array.isArray(n)||(n=[n]);for(let i of r.split(" "))if(i){let s=[],o=2,a=i;for(let d=0;;){if(a=="..."&&d>0&&d+3==i.length){o=1;break}let f=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(a);if(!f)throw new RangeError("Invalid path: "+i);if(s.push(f[0]=="*"?"":f[0][0]=='"'?JSON.parse(f[0]):f[0]),d+=f[0].length,d==i.length)break;let m=i[d++];if(d==i.length&&m=="!"){o=0;break}if(m!="/")throw new RangeError("Invalid path: "+i);a=i.slice(d)}let l=s.length-1,c=s[l];if(!c)throw new RangeError("Invalid path: "+i);let u=new Uk(n,o,l>0?s.slice(0,l):null);t[c]=u.sort(t[c])}}return GDe.add(t)}const GDe=new hr({combine(e,t){let r,n,i;for(;e||t;){if(!e||t&&e.depth>=t.depth?(i=t,t=t.next):(i=e,e=e.next),r&&r.mode==i.mode&&!i.context&&!r.context)continue;let s=new Uk(i.tags,i.mode,i.context);r?r.next=s:n=s,r=s}return n}});class Uk{constructor(t,r,n,i){this.tags=t,this.mode=r,this.context=n,this.next=i}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(t){return!t||t.depth<this.depth?(this.next=t,this):(t.next=this.sort(t.next),t)}get depth(){return this.context?this.context.length:0}}Uk.empty=new Uk([],2,null);function XDe(e,t){let r=Object.create(null);for(let s of e)if(!Array.isArray(s.tag))r[s.tag.id]=s.class;else for(let o of s.tag)r[o.id]=s.class;let{scope:n,all:i=null}=t||{};return{style:s=>{let o=i;for(let a of s)for(let l of a.set){let c=r[l.id];if(c){o=o?o+" "+c:c;break}}return o},scope:n}}function uxt(e,t){let r=null;for(let n of e){let i=n.style(t);i&&(r=r?r+" "+i:i)}return r}function dxt(e,t,r,n=0,i=e.length){let s=new fxt(n,Array.isArray(t)?t:[t],r);s.highlightRange(e.cursor(),n,i,"",s.highlighters),s.flush(i)}class fxt{constructor(t,r,n){this.at=t,this.highlighters=r,this.span=n,this.class=""}startSpan(t,r){r!=this.class&&(this.flush(t),t>this.at&&(this.at=t),this.class=r)}flush(t){t>this.at&&this.class&&this.span(this.at,t,this.class)}highlightRange(t,r,n,i,s){let{type:o,from:a,to:l}=t;if(a>=n||l<=r)return;o.isTop&&(s=this.highlighters.filter(m=>!m.scope||m.scope(o)));let c=i,u=pxt(t)||Uk.empty,d=uxt(s,u.tags);if(d&&(c&&(c+=" "),c+=d,u.mode==1&&(i+=(i?" ":"")+d)),this.startSpan(Math.max(r,a),c),u.opaque)return;let f=t.tree&&t.tree.prop(hr.mounted);if(f&&f.overlay){let m=t.node.enter(f.overlay[0].from+a,1),g=this.highlighters.filter(b=>!b.scope||b.scope(f.tree.type)),v=t.firstChild();for(let b=0,w=a;;b++){let S=b<f.overlay.length?f.overlay[b]:null,O=S?S.from+a:l,k=Math.max(r,w),C=Math.min(n,O);if(k<C&&v)for(;t.from<C&&(this.highlightRange(t,k,C,i,s),this.startSpan(Math.min(C,t.to),c),!(t.to>=O||!t.nextSibling())););if(!S||O>n)break;w=S.to+a,w>r&&(this.highlightRange(m.cursor(),Math.max(r,S.from+a),Math.min(n,w),"",g),this.startSpan(Math.min(n,w),c))}v&&t.parent()}else if(t.firstChild()){f&&(i="");do if(!(t.to<=r)){if(t.from>=n)break;this.highlightRange(t,r,n,i,s),this.startSpan(Math.min(n,t.to),c)}while(t.nextSibling());t.parent()}}}function pxt(e){let t=e.type.prop(GDe);for(;t&&t.context&&!e.matchContext(t.context);)t=t.next;return t||null}const mt=Ql.define,_2=mt(),Jm=mt(),nce=mt(Jm),ice=mt(Jm),Km=mt(),k2=mt(Km),H9=mt(Km),Kd=mt(),Vy=mt(Kd),Wd=mt(),Gd=mt(),iV=mt(),SO=mt(iV),E2=mt(),Y={comment:_2,lineComment:mt(_2),blockComment:mt(_2),docComment:mt(_2),name:Jm,variableName:mt(Jm),typeName:nce,tagName:mt(nce),propertyName:ice,attributeName:mt(ice),className:mt(Jm),labelName:mt(Jm),namespace:mt(Jm),macroName:mt(Jm),literal:Km,string:k2,docString:mt(k2),character:mt(k2),attributeValue:mt(k2),number:H9,integer:mt(H9),float:mt(H9),bool:mt(Km),regexp:mt(Km),escape:mt(Km),color:mt(Km),url:mt(Km),keyword:Wd,self:mt(Wd),null:mt(Wd),atom:mt(Wd),unit:mt(Wd),modifier:mt(Wd),operatorKeyword:mt(Wd),controlKeyword:mt(Wd),definitionKeyword:mt(Wd),moduleKeyword:mt(Wd),operator:Gd,derefOperator:mt(Gd),arithmeticOperator:mt(Gd),logicOperator:mt(Gd),bitwiseOperator:mt(Gd),compareOperator:mt(Gd),updateOperator:mt(Gd),definitionOperator:mt(Gd),typeOperator:mt(Gd),controlOperator:mt(Gd),punctuation:iV,separator:mt(iV),bracket:SO,angleBracket:mt(SO),squareBracket:mt(SO),paren:mt(SO),brace:mt(SO),content:Kd,heading:Vy,heading1:mt(Vy),heading2:mt(Vy),heading3:mt(Vy),heading4:mt(Vy),heading5:mt(Vy),heading6:mt(Vy),contentSeparator:mt(Kd),list:mt(Kd),quote:mt(Kd),emphasis:mt(Kd),strong:mt(Kd),link:mt(Kd),monospace:mt(Kd),strikethrough:mt(Kd),inserted:mt(),deleted:mt(),changed:mt(),invalid:mt(),meta:E2,documentMeta:mt(E2),annotation:mt(E2),processingInstruction:mt(E2),definition:Ql.defineModifier("definition"),constant:Ql.defineModifier("constant"),function:Ql.defineModifier("function"),standard:Ql.defineModifier("standard"),local:Ql.defineModifier("local"),special:Ql.defineModifier("special")};for(let e in Y){let t=Y[e];t instanceof Ql&&(t.name=e)}XDe([{tag:Y.link,class:"tok-link"},{tag:Y.heading,class:"tok-heading"},{tag:Y.emphasis,class:"tok-emphasis"},{tag:Y.strong,class:"tok-strong"},{tag:Y.keyword,class:"tok-keyword"},{tag:Y.atom,class:"tok-atom"},{tag:Y.bool,class:"tok-bool"},{tag:Y.url,class:"tok-url"},{tag:Y.labelName,class:"tok-labelName"},{tag:Y.inserted,class:"tok-inserted"},{tag:Y.deleted,class:"tok-deleted"},{tag:Y.literal,class:"tok-literal"},{tag:Y.string,class:"tok-string"},{tag:Y.number,class:"tok-number"},{tag:[Y.regexp,Y.escape,Y.special(Y.string)],class:"tok-string2"},{tag:Y.variableName,class:"tok-variableName"},{tag:Y.local(Y.variableName),class:"tok-variableName tok-local"},{tag:Y.definition(Y.variableName),class:"tok-variableName tok-definition"},{tag:Y.special(Y.variableName),class:"tok-variableName2"},{tag:Y.definition(Y.propertyName),class:"tok-propertyName tok-definition"},{tag:Y.typeName,class:"tok-typeName"},{tag:Y.namespace,class:"tok-namespace"},{tag:Y.className,class:"tok-className"},{tag:Y.macroName,class:"tok-macroName"},{tag:Y.propertyName,class:"tok-propertyName"},{tag:Y.operator,class:"tok-operator"},{tag:Y.comment,class:"tok-comment"},{tag:Y.meta,class:"tok-meta"},{tag:Y.invalid,class:"tok-invalid"},{tag:Y.punctuation,class:"tok-punctuation"}]);const hxt=E0({String:Y.string,Number:Y.number,"True False":Y.bool,PropertyName:Y.propertyName,Null:Y.null,", :":Y.separator,"[ ]":Y.squareBracket,"{ }":Y.brace}),mxt=Qv.deserialize({version:14,states:"$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#ClOOQO'#Cr'#CrQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CtOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59W,59WO!iQPO,59WOVQPO,59QOqQPO'#CmO!nQPO,59`OOQO1G.k1G.kOVQPO'#CnO!vQPO,59aOOQO1G.r1G.rOOQO1G.l1G.lOOQO,59X,59XOOQO-E6k-E6kOOQO,59Y,59YOOQO-E6l-E6l",stateData:"#O~OeOS~OQSORSOSSOTSOWQO_ROgPO~OVXOgUO~O^[O~PVO[^O~O]_OVhX~OVaO~O]bO^iX~O^dO~O]_OVha~O]bO^ia~O",goto:"!kjPPPPPPkPPkqwPPPPk{!RPPP!XP!e!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",nodeNames:"⚠ JsonText True False Null Number String } { Object Property PropertyName : , ] [ Array",maxTerm:25,nodeProps:[["isolate",-2,6,11,""],["openedBy",7,"{",14,"["],["closedBy",8,"}",15,"]"]],propSources:[hxt],skippedNodes:[0],repeatNodeCount:2,tokenData:"(|~RaXY!WYZ!W]^!Wpq!Wrs!]|}$u}!O$z!Q!R%T!R![&c![!]&t!}#O&y#P#Q'O#Y#Z'T#b#c'r#h#i(Z#o#p(r#q#r(w~!]Oe~~!`Wpq!]qr!]rs!xs#O!]#O#P!}#P;'S!];'S;=`$o<%lO!]~!}Og~~#QXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#m~#pR!Q![#y!c!i#y#T#Z#y~#|R!Q![$V!c!i$V#T#Z$V~$YR!Q![$c!c!i$c#T#Z$c~$fR!Q![!]!c!i!]#T#Z!]~$rP;=`<%l!]~$zO]~~$}Q!Q!R%T!R![&c~%YRT~!O!P%c!g!h%w#X#Y%w~%fP!Q![%i~%nRT~!Q![%i!g!h%w#X#Y%w~%zR{|&T}!O&T!Q![&Z~&WP!Q![&Z~&`PT~!Q![&Z~&hST~!O!P%c!Q![&c!g!h%w#X#Y%w~&yO[~~'OO_~~'TO^~~'WP#T#U'Z~'^P#`#a'a~'dP#g#h'g~'jP#X#Y'm~'rOR~~'uP#i#j'x~'{P#`#a(O~(RP#`#a(U~(ZOS~~(^P#f#g(a~(dP#i#j(g~(jP#X#Y(m~(rOQ~~(wOW~~(|OV~",tokenizers:[0],topRules:{JsonText:[0,1]},tokenPrec:0});let sV=[],YDe=[];(()=>{let e="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(t=>t?parseInt(t,36):1);for(let t=0,r=0;t<e.length;t++)(t%2?YDe:sV).push(r=r+e[t])})();function gxt(e){if(e<768)return!1;for(let t=0,r=sV.length;;){let n=t+r>>1;if(e<sV[n])r=n;else if(e>=YDe[n])t=n+1;else return!0;if(t==r)return!1}}function sce(e){return e>=127462&&e<=127487}const oce=8205;function yxt(e,t,r=!0,n=!0){return(r?JDe:vxt)(e,t,n)}function JDe(e,t,r){if(t==e.length)return t;t&&KDe(e.charCodeAt(t))&&eAe(e.charCodeAt(t-1))&&t--;let n=W9(e,t);for(t+=ace(n);t<e.length;){let i=W9(e,t);if(n==oce||i==oce||r&&gxt(i))t+=ace(i),n=i;else if(sce(i)){let s=0,o=t-2;for(;o>=0&&sce(W9(e,o));)s++,o-=2;if(s%2==0)break;t+=2}else break}return t}function vxt(e,t,r){for(;t>0;){let n=JDe(e,t-2,r);if(n<t)return n;t--}return 0}function W9(e,t){let r=e.charCodeAt(t);if(!eAe(r)||t+1==e.length)return r;let n=e.charCodeAt(t+1);return KDe(n)?(r-55296<<10)+(n-56320)+65536:r}function KDe(e){return e>=56320&&e<57344}function eAe(e){return e>=55296&&e<56320}function ace(e){return e<65536?1:2}class rn{lineAt(t){if(t<0||t>this.length)throw new RangeError(`Invalid position ${t} in document of length ${this.length}`);return this.lineInner(t,!1,1,0)}line(t){if(t<1||t>this.lines)throw new RangeError(`Invalid line number ${t} in ${this.lines}-line document`);return this.lineInner(t,!0,1,0)}replace(t,r,n){[t,r]=x1(this,t,r);let i=[];return this.decompose(0,t,i,2),n.length&&n.decompose(0,n.length,i,3),this.decompose(r,this.length,i,1),df.from(i,this.length-(r-t)+n.length)}append(t){return this.replace(this.length,this.length,t)}slice(t,r=this.length){[t,r]=x1(this,t,r);let n=[];return this.decompose(t,r,n,0),df.from(n,r-t)}eq(t){if(t==this)return!0;if(t.length!=this.length||t.lines!=this.lines)return!1;let r=this.scanIdentical(t,1),n=this.length-this.scanIdentical(t,-1),i=new Q_(this),s=new Q_(t);for(let o=r,a=r;;){if(i.next(o),s.next(o),o=0,i.lineBreak!=s.lineBreak||i.done!=s.done||i.value!=s.value)return!1;if(a+=i.value.length,i.done||a>=n)return!0}}iter(t=1){return new Q_(this,t)}iterRange(t,r=this.length){return new tAe(this,t,r)}iterLines(t,r){let n;if(t==null)n=this.iter();else{r==null&&(r=this.lines+1);let i=this.line(t).from;n=this.iterRange(i,Math.max(i,r==this.lines+1?this.length:r<=1?0:this.line(r-1).to))}return new rAe(n)}toString(){return this.sliceString(0)}toJSON(){let t=[];return this.flatten(t),t}constructor(){}static of(t){if(t.length==0)throw new RangeError("A document must have at least one line");return t.length==1&&!t[0]?rn.empty:t.length<=32?new ms(t):df.from(ms.split(t,[]))}}class ms extends rn{constructor(t,r=bxt(t)){super(),this.text=t,this.length=r}get lines(){return this.text.length}get children(){return null}lineInner(t,r,n,i){for(let s=0;;s++){let o=this.text[s],a=i+o.length;if((r?n:a)>=t)return new xxt(i,a,n,o);i=a+1,n++}}decompose(t,r,n,i){let s=t<=0&&r>=this.length?this:new ms(lce(this.text,t,r),Math.min(r,this.length)-Math.max(0,t));if(i&1){let o=n.pop(),a=h$(s.text,o.text.slice(),0,s.length);if(a.length<=32)n.push(new ms(a,o.length+s.length));else{let l=a.length>>1;n.push(new ms(a.slice(0,l)),new ms(a.slice(l)))}}else n.push(s)}replace(t,r,n){if(!(n instanceof ms))return super.replace(t,r,n);[t,r]=x1(this,t,r);let i=h$(this.text,h$(n.text,lce(this.text,0,t)),r),s=this.length+n.length-(r-t);return i.length<=32?new ms(i,s):df.from(ms.split(i,[]),s)}sliceString(t,r=this.length,n=`
|
|
114
114
|
`){[t,r]=x1(this,t,r);let i="";for(let s=0,o=0;s<=r&&o<this.text.length;o++){let a=this.text[o],l=s+a.length;s>t&&o&&(i+=n),t<l&&r>s&&(i+=a.slice(Math.max(0,t-s),r-s)),s=l+1}return i}flatten(t){for(let r of this.text)t.push(r)}scanIdentical(){return 0}static split(t,r){let n=[],i=-1;for(let s of t)n.push(s),i+=s.length+1,n.length==32&&(r.push(new ms(n,i)),n=[],i=-1);return i>-1&&r.push(new ms(n,i)),r}}class df extends rn{constructor(t,r){super(),this.children=t,this.length=r,this.lines=0;for(let n of t)this.lines+=n.lines}lineInner(t,r,n,i){for(let s=0;;s++){let o=this.children[s],a=i+o.length,l=n+o.lines-1;if((r?l:a)>=t)return o.lineInner(t,r,n,i);i=a+1,n=l+1}}decompose(t,r,n,i){for(let s=0,o=0;o<=r&&s<this.children.length;s++){let a=this.children[s],l=o+a.length;if(t<=l&&r>=o){let c=i&((o<=t?1:0)|(l>=r?2:0));o>=t&&l<=r&&!c?n.push(a):a.decompose(t-o,r-o,n,c)}o=l+1}}replace(t,r,n){if([t,r]=x1(this,t,r),n.lines<this.lines)for(let i=0,s=0;i<this.children.length;i++){let o=this.children[i],a=s+o.length;if(t>=s&&r<=a){let l=o.replace(t-s,r-s,n),c=this.lines-o.lines+l.lines;if(l.lines<c>>4&&l.lines>c>>6){let u=this.children.slice();return u[i]=l,new df(u,this.length-(r-t)+n.length)}return super.replace(s,a,l)}s=a+1}return super.replace(t,r,n)}sliceString(t,r=this.length,n=`
|
|
115
115
|
`){[t,r]=x1(this,t,r);let i="";for(let s=0,o=0;s<this.children.length&&o<=r;s++){let a=this.children[s],l=o+a.length;o>t&&s&&(i+=n),t<l&&r>o&&(i+=a.sliceString(t-o,r-o,n)),o=l+1}return i}flatten(t){for(let r of this.children)r.flatten(t)}scanIdentical(t,r){if(!(t instanceof df))return 0;let n=0,[i,s,o,a]=r>0?[0,0,this.children.length,t.children.length]:[this.children.length-1,t.children.length-1,-1,-1];for(;;i+=r,s+=r){if(i==o||s==a)return n;let l=this.children[i],c=t.children[s];if(l!=c)return n+l.scanIdentical(c,r);n+=l.length+1}}static from(t,r=t.reduce((n,i)=>n+i.length+1,-1)){let n=0;for(let m of t)n+=m.lines;if(n<32){let m=[];for(let g of t)g.flatten(m);return new ms(m,r)}let i=Math.max(32,n>>5),s=i<<1,o=i>>1,a=[],l=0,c=-1,u=[];function d(m){let g;if(m.lines>s&&m instanceof df)for(let v of m.children)d(v);else m.lines>o&&(l>o||!l)?(f(),a.push(m)):m instanceof ms&&l&&(g=u[u.length-1])instanceof ms&&m.lines+g.lines<=32?(l+=m.lines,c+=m.length+1,u[u.length-1]=new ms(g.text.concat(m.text),g.length+1+m.length)):(l+m.lines>i&&f(),l+=m.lines,c+=m.length+1,u.push(m))}function f(){l!=0&&(a.push(u.length==1?u[0]:df.from(u,c)),c=-1,l=u.length=0)}for(let m of t)d(m);return f(),a.length==1?a[0]:new df(a,r)}}rn.empty=new ms([""],0);function bxt(e){let t=-1;for(let r of e)t+=r.length+1;return t}function h$(e,t,r=0,n=1e9){for(let i=0,s=0,o=!0;s<e.length&&i<=n;s++){let a=e[s],l=i+a.length;l>=r&&(l>n&&(a=a.slice(0,n-i)),i<r&&(a=a.slice(r-i)),o?(t[t.length-1]+=a,o=!1):t.push(a)),i=l+1}return t}function lce(e,t,r){return h$(e,[""],t,r)}class Q_{constructor(t,r=1){this.dir=r,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[t],this.offsets=[r>0?1:(t instanceof ms?t.text.length:t.children.length)<<1]}nextInner(t,r){for(this.done=this.lineBreak=!1;;){let n=this.nodes.length-1,i=this.nodes[n],s=this.offsets[n],o=s>>1,a=i instanceof ms?i.text.length:i.children.length;if(o==(r>0?a:0)){if(n==0)return this.done=!0,this.value="",this;r>0&&this.offsets[n-1]++,this.nodes.pop(),this.offsets.pop()}else if((s&1)==(r>0?0:1)){if(this.offsets[n]+=r,t==0)return this.lineBreak=!0,this.value=`
|
|
116
116
|
`,this;t--}else if(i instanceof ms){let l=i.text[o+(r<0?-1:0)];if(this.offsets[n]+=r,l.length>Math.max(0,t))return this.value=t==0?l:r>0?l.slice(t):l.slice(0,l.length-t),this;t-=l.length}else{let l=i.children[o+(r<0?-1:0)];t>l.length?(t-=l.length,this.offsets[n]+=r):(r<0&&this.offsets[n]--,this.nodes.push(l),this.offsets.push(r>0?1:(l instanceof ms?l.text.length:l.children.length)<<1))}}}next(t=0){return t<0&&(this.nextInner(-t,-this.dir),t=this.value.length),this.nextInner(t,this.dir)}}class tAe{constructor(t,r,n){this.value="",this.done=!1,this.cursor=new Q_(t,r>n?-1:1),this.pos=r>n?t.length:0,this.from=Math.min(r,n),this.to=Math.max(r,n)}nextInner(t,r){if(r<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;t+=Math.max(0,r<0?this.pos-this.to:this.from-this.pos);let n=r<0?this.pos-this.from:this.to-this.pos;t>n&&(t=n),n-=t;let{value:i}=this.cursor.next(t);return this.pos+=(i.length+t)*r,this.value=i.length<=n?i:r<0?i.slice(i.length-n):i.slice(0,n),this.done=!this.value,this}next(t=0){return t<0?t=Math.max(t,this.from-this.pos):t>0&&(t=Math.min(t,this.to-this.pos)),this.nextInner(t,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class rAe{constructor(t){this.inner=t,this.afterBreak=!0,this.value="",this.done=!1}next(t=0){let{done:r,lineBreak:n,value:i}=this.inner.next(t);return r&&this.afterBreak?(this.value="",this.afterBreak=!1):r?(this.done=!0,this.value=""):n?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=i,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(rn.prototype[Symbol.iterator]=function(){return this.iter()},Q_.prototype[Symbol.iterator]=tAe.prototype[Symbol.iterator]=rAe.prototype[Symbol.iterator]=function(){return this});let xxt=class{constructor(t,r,n,i){this.from=t,this.to=r,this.number=n,this.text=i}get length(){return this.to-this.from}};function x1(e,t,r){return t=Math.max(0,Math.min(e.length,t)),[t,Math.max(t,Math.min(e.length,r))]}function To(e,t,r=!0,n=!0){return yxt(e,t,r,n)}function wxt(e){return e>=56320&&e<57344}function Sxt(e){return e>=55296&&e<56320}function Xa(e,t){let r=e.charCodeAt(t);if(!Sxt(r)||t+1==e.length)return r;let n=e.charCodeAt(t+1);return wxt(n)?(r-55296<<10)+(n-56320)+65536:r}function TG(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}function ff(e){return e<65536?1:2}const oV=/\r\n?|\n/;var Co=(function(e){return e[e.Simple=0]="Simple",e[e.TrackDel=1]="TrackDel",e[e.TrackBefore=2]="TrackBefore",e[e.TrackAfter=3]="TrackAfter",e})(Co||(Co={}));class Df{constructor(t){this.sections=t}get length(){let t=0;for(let r=0;r<this.sections.length;r+=2)t+=this.sections[r];return t}get newLength(){let t=0;for(let r=0;r<this.sections.length;r+=2){let n=this.sections[r+1];t+=n<0?this.sections[r]:n}return t}get empty(){return this.sections.length==0||this.sections.length==2&&this.sections[1]<0}iterGaps(t){for(let r=0,n=0,i=0;r<this.sections.length;){let s=this.sections[r++],o=this.sections[r++];o<0?(t(n,i,s),i+=s):i+=o,n+=s}}iterChangedRanges(t,r=!1){aV(this,t,r)}get invertedDesc(){let t=[];for(let r=0;r<this.sections.length;){let n=this.sections[r++],i=this.sections[r++];i<0?t.push(n,i):t.push(i,n)}return new Df(t)}composeDesc(t){return this.empty?t:t.empty?this:nAe(this,t)}mapDesc(t,r=!1){return t.empty?this:lV(this,t,r)}mapPos(t,r=-1,n=Co.Simple){let i=0,s=0;for(let o=0;o<this.sections.length;){let a=this.sections[o++],l=this.sections[o++],c=i+a;if(l<0){if(c>t)return s+(t-i);s+=a}else{if(n!=Co.Simple&&c>=t&&(n==Co.TrackDel&&i<t&&c>t||n==Co.TrackBefore&&i<t||n==Co.TrackAfter&&c>t))return null;if(c>t||c==t&&r<0&&!a)return t==i||r<0?s:s+l;s+=l}i=c}if(t>i)throw new RangeError(`Position ${t} is out of range for changeset of length ${i}`);return s}touchesRange(t,r=t){for(let n=0,i=0;n<this.sections.length&&i<=r;){let s=this.sections[n++],o=this.sections[n++],a=i+s;if(o>=0&&i<=r&&a>=t)return i<t&&a>r?"cover":!0;i=a}return!1}toString(){let t="";for(let r=0;r<this.sections.length;){let n=this.sections[r++],i=this.sections[r++];t+=(t?" ":"")+n+(i>=0?":"+i:"")}return t}toJSON(){return this.sections}static fromJSON(t){if(!Array.isArray(t)||t.length%2||t.some(r=>typeof r!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new Df(t)}static create(t){return new Df(t)}}class Ws extends Df{constructor(t,r){super(t),this.inserted=r}apply(t){if(this.length!=t.length)throw new RangeError("Applying change set to a document with the wrong length");return aV(this,(r,n,i,s,o)=>t=t.replace(i,i+(n-r),o),!1),t}mapDesc(t,r=!1){return lV(this,t,r,!0)}invert(t){let r=this.sections.slice(),n=[];for(let i=0,s=0;i<r.length;i+=2){let o=r[i],a=r[i+1];if(a>=0){r[i]=a,r[i+1]=o;let l=i>>1;for(;n.length<l;)n.push(rn.empty);n.push(o?t.slice(s,s+o):rn.empty)}s+=o}return new Ws(r,n)}compose(t){return this.empty?t:t.empty?this:nAe(this,t,!0)}map(t,r=!1){return t.empty?this:lV(this,t,r,!0)}iterChanges(t,r=!1){aV(this,t,r)}get desc(){return Df.create(this.sections)}filter(t){let r=[],n=[],i=[],s=new Qk(this);e:for(let o=0,a=0;;){let l=o==t.length?1e9:t[o++];for(;a<l||a==l&&s.len==0;){if(s.done)break e;let u=Math.min(s.len,l-a);Qo(i,u,-1);let d=s.ins==-1?-1:s.off==0?s.ins:0;Qo(r,u,d),d>0&&sg(n,r,s.text),s.forward(u),a+=u}let c=t[o++];for(;a<c;){if(s.done)break e;let u=Math.min(s.len,c-a);Qo(r,u,-1),Qo(i,u,s.ins==-1?-1:s.off==0?s.ins:0),s.forward(u),a+=u}}return{changes:new Ws(r,n),filtered:Df.create(i)}}toJSON(){let t=[];for(let r=0;r<this.sections.length;r+=2){let n=this.sections[r],i=this.sections[r+1];i<0?t.push(n):i==0?t.push([n]):t.push([n].concat(this.inserted[r>>1].toJSON()))}return t}static of(t,r,n){let i=[],s=[],o=0,a=null;function l(u=!1){if(!u&&!i.length)return;o<r&&Qo(i,r-o,-1);let d=new Ws(i,s);a=a?a.compose(d.map(a)):d,i=[],s=[],o=0}function c(u){if(Array.isArray(u))for(let d of u)c(d);else if(u instanceof Ws){if(u.length!=r)throw new RangeError(`Mismatched change set length (got ${u.length}, expected ${r})`);l(),a=a?a.compose(u.map(a)):u}else{let{from:d,to:f=d,insert:m}=u;if(d>f||d<0||f>r)throw new RangeError(`Invalid change range ${d} to ${f} (in doc of length ${r})`);let g=m?typeof m=="string"?rn.of(m.split(n||oV)):m:rn.empty,v=g.length;if(d==f&&v==0)return;d<o&&l(),d>o&&Qo(i,d-o,-1),Qo(i,f-d,v),sg(s,i,g),o=f}}return c(t),l(!a),a}static empty(t){return new Ws(t?[t,-1]:[],[])}static fromJSON(t){if(!Array.isArray(t))throw new RangeError("Invalid JSON representation of ChangeSet");let r=[],n=[];for(let i=0;i<t.length;i++){let s=t[i];if(typeof s=="number")r.push(s,-1);else{if(!Array.isArray(s)||typeof s[0]!="number"||s.some((o,a)=>a&&typeof o!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(s.length==1)r.push(s[0],0);else{for(;n.length<i;)n.push(rn.empty);n[i]=rn.of(s.slice(1)),r.push(s[0],n[i].length)}}}return new Ws(r,n)}static createSet(t,r){return new Ws(t,r)}}function Qo(e,t,r,n=!1){if(t==0&&r<=0)return;let i=e.length-2;i>=0&&r<=0&&r==e[i+1]?e[i]+=t:i>=0&&t==0&&e[i]==0?e[i+1]+=r:n?(e[i]+=t,e[i+1]+=r):e.push(t,r)}function sg(e,t,r){if(r.length==0)return;let n=t.length-2>>1;if(n<e.length)e[e.length-1]=e[e.length-1].append(r);else{for(;e.length<n;)e.push(rn.empty);e.push(r)}}function aV(e,t,r){let n=e.inserted;for(let i=0,s=0,o=0;o<e.sections.length;){let a=e.sections[o++],l=e.sections[o++];if(l<0)i+=a,s+=a;else{let c=i,u=s,d=rn.empty;for(;c+=a,u+=l,l&&n&&(d=d.append(n[o-2>>1])),!(r||o==e.sections.length||e.sections[o+1]<0);)a=e.sections[o++],l=e.sections[o++];t(i,c,s,u,d),i=c,s=u}}}function lV(e,t,r,n=!1){let i=[],s=n?[]:null,o=new Qk(e),a=new Qk(t);for(let l=-1;;){if(o.done&&a.len||a.done&&o.len)throw new Error("Mismatched change set lengths");if(o.ins==-1&&a.ins==-1){let c=Math.min(o.len,a.len);Qo(i,c,-1),o.forward(c),a.forward(c)}else if(a.ins>=0&&(o.ins<0||l==o.i||o.off==0&&(a.len<o.len||a.len==o.len&&!r))){let c=a.len;for(Qo(i,a.ins,-1);c;){let u=Math.min(o.len,c);o.ins>=0&&l<o.i&&o.len<=u&&(Qo(i,0,o.ins),s&&sg(s,i,o.text),l=o.i),o.forward(u),c-=u}a.next()}else if(o.ins>=0){let c=0,u=o.len;for(;u;)if(a.ins==-1){let d=Math.min(u,a.len);c+=d,u-=d,a.forward(d)}else if(a.ins==0&&a.len<u)u-=a.len,a.next();else break;Qo(i,c,l<o.i?o.ins:0),s&&l<o.i&&sg(s,i,o.text),l=o.i,o.forward(o.len-u)}else{if(o.done&&a.done)return s?Ws.createSet(i,s):Df.create(i);throw new Error("Mismatched change set lengths")}}}function nAe(e,t,r=!1){let n=[],i=r?[]:null,s=new Qk(e),o=new Qk(t);for(let a=!1;;){if(s.done&&o.done)return i?Ws.createSet(n,i):Df.create(n);if(s.ins==0)Qo(n,s.len,0,a),s.next();else if(o.len==0&&!o.done)Qo(n,0,o.ins,a),i&&sg(i,n,o.text),o.next();else{if(s.done||o.done)throw new Error("Mismatched change set lengths");{let l=Math.min(s.len2,o.len),c=n.length;if(s.ins==-1){let u=o.ins==-1?-1:o.off?0:o.ins;Qo(n,l,u,a),i&&u&&sg(i,n,o.text)}else o.ins==-1?(Qo(n,s.off?0:s.len,l,a),i&&sg(i,n,s.textBit(l))):(Qo(n,s.off?0:s.len,o.off?0:o.ins,a),i&&!o.off&&sg(i,n,o.text));a=(s.ins>l||o.ins>=0&&o.len>l)&&(a||n.length>c),s.forward2(l),o.forward(l)}}}}class Qk{constructor(t){this.set=t,this.i=0,this.next()}next(){let{sections:t}=this.set;this.i<t.length?(this.len=t[this.i++],this.ins=t[this.i++]):(this.len=0,this.ins=-2),this.off=0}get done(){return this.ins==-2}get len2(){return this.ins<0?this.len:this.ins}get text(){let{inserted:t}=this.set,r=this.i-2>>1;return r>=t.length?rn.empty:t[r]}textBit(t){let{inserted:r}=this.set,n=this.i-2>>1;return n>=r.length&&!t?rn.empty:r[n].slice(this.off,t==null?void 0:this.off+t)}forward(t){t==this.len?this.next():(this.len-=t,this.off+=t)}forward2(t){this.ins==-1?this.forward(t):t==this.ins?this.next():(this.ins-=t,this.off+=t)}}class dv{constructor(t,r,n){this.from=t,this.to=r,this.flags=n}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get bidiLevel(){let t=this.flags&7;return t==7?null:t}get goalColumn(){let t=this.flags>>6;return t==16777215?void 0:t}map(t,r=-1){let n,i;return this.empty?n=i=t.mapPos(this.from,r):(n=t.mapPos(this.from,1),i=t.mapPos(this.to,-1)),n==this.from&&i==this.to?this:new dv(n,i,this.flags)}extend(t,r=t){if(t<=this.anchor&&r>=this.anchor)return Ne.range(t,r);let n=Math.abs(t-this.anchor)>Math.abs(r-this.anchor)?t:r;return Ne.range(this.anchor,n)}eq(t,r=!1){return this.anchor==t.anchor&&this.head==t.head&&(!r||!this.empty||this.assoc==t.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(t){if(!t||typeof t.anchor!="number"||typeof t.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return Ne.range(t.anchor,t.head)}static create(t,r,n){return new dv(t,r,n)}}class Ne{constructor(t,r){this.ranges=t,this.mainIndex=r}map(t,r=-1){return t.empty?this:Ne.create(this.ranges.map(n=>n.map(t,r)),this.mainIndex)}eq(t,r=!1){if(this.ranges.length!=t.ranges.length||this.mainIndex!=t.mainIndex)return!1;for(let n=0;n<this.ranges.length;n++)if(!this.ranges[n].eq(t.ranges[n],r))return!1;return!0}get main(){return this.ranges[this.mainIndex]}asSingle(){return this.ranges.length==1?this:new Ne([this.main],0)}addRange(t,r=!0){return Ne.create([t].concat(this.ranges),r?0:this.mainIndex+1)}replaceRange(t,r=this.mainIndex){let n=this.ranges.slice();return n[r]=t,Ne.create(n,this.mainIndex)}toJSON(){return{ranges:this.ranges.map(t=>t.toJSON()),main:this.mainIndex}}static fromJSON(t){if(!t||!Array.isArray(t.ranges)||typeof t.main!="number"||t.main>=t.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new Ne(t.ranges.map(r=>dv.fromJSON(r)),t.main)}static single(t,r=t){return new Ne([Ne.range(t,r)],0)}static create(t,r=0){if(t.length==0)throw new RangeError("A selection needs at least one range");for(let n=0,i=0;i<t.length;i++){let s=t[i];if(s.empty?s.from<=n:s.from<n)return Ne.normalized(t.slice(),r);n=s.to}return new Ne(t,r)}static cursor(t,r=0,n,i){return dv.create(t,t,(r==0?0:r<0?8:16)|(n==null?7:Math.min(6,n))|(i??16777215)<<6)}static range(t,r,n,i){let s=(n??16777215)<<6|(i==null?7:Math.min(6,i));return r<t?dv.create(r,t,48|s):dv.create(t,r,(r>t?8:0)|s)}static normalized(t,r=0){let n=t[r];t.sort((i,s)=>i.from-s.from),r=t.indexOf(n);for(let i=1;i<t.length;i++){let s=t[i],o=t[i-1];if(s.empty?s.from<=o.to:s.from<o.to){let a=o.from,l=Math.max(s.to,o.to);i<=r&&r--,t.splice(--i,2,s.anchor>s.head?Ne.range(l,a):Ne.range(a,l))}}return new Ne(t,r)}}function iAe(e,t){for(let r of e.ranges)if(r.to>t)throw new RangeError("Selection points outside of document")}let DG=0;class Et{constructor(t,r,n,i,s){this.combine=t,this.compareInput=r,this.compare=n,this.isStatic=i,this.id=DG++,this.default=t([]),this.extensions=typeof s=="function"?s(this):s}get reader(){return this}static define(t={}){return new Et(t.combine||(r=>r),t.compareInput||((r,n)=>r===n),t.compare||(t.combine?(r,n)=>r===n:AG),!!t.static,t.enables)}of(t){return new m$([],this,0,t)}compute(t,r){if(this.isStatic)throw new Error("Can't compute a static facet");return new m$(t,this,1,r)}computeN(t,r){if(this.isStatic)throw new Error("Can't compute a static facet");return new m$(t,this,2,r)}from(t,r){return r||(r=n=>n),this.compute([t],n=>r(n.field(t)))}}function AG(e,t){return e==t||e.length==t.length&&e.every((r,n)=>r===t[n])}class m${constructor(t,r,n,i){this.dependencies=t,this.facet=r,this.type=n,this.value=i,this.id=DG++}dynamicSlot(t){var r;let n=this.value,i=this.facet.compareInput,s=this.id,o=t[s]>>1,a=this.type==2,l=!1,c=!1,u=[];for(let d of this.dependencies)d=="doc"?l=!0:d=="selection"?c=!0:(((r=t[d.id])!==null&&r!==void 0?r:1)&1)==0&&u.push(t[d.id]);return{create(d){return d.values[o]=n(d),1},update(d,f){if(l&&f.docChanged||c&&(f.docChanged||f.selection)||cV(d,u)){let m=n(d);if(a?!cce(m,d.values[o],i):!i(m,d.values[o]))return d.values[o]=m,1}return 0},reconfigure:(d,f)=>{let m,g=f.config.address[s];if(g!=null){let v=RI(f,g);if(this.dependencies.every(b=>b instanceof Et?f.facet(b)===d.facet(b):b instanceof uo?f.field(b,!1)==d.field(b,!1):!0)||(a?cce(m=n(d),v,i):i(m=n(d),v)))return d.values[o]=v,0}else m=n(d);return d.values[o]=m,1}}}}function cce(e,t,r){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!r(e[n],t[n]))return!1;return!0}function cV(e,t){let r=!1;for(let n of t)Z_(e,n)&1&&(r=!0);return r}function Oxt(e,t,r){let n=r.map(l=>e[l.id]),i=r.map(l=>l.type),s=n.filter(l=>!(l&1)),o=e[t.id]>>1;function a(l){let c=[];for(let u=0;u<n.length;u++){let d=RI(l,n[u]);if(i[u]==2)for(let f of d)c.push(f);else c.push(d)}return t.combine(c)}return{create(l){for(let c of n)Z_(l,c);return l.values[o]=a(l),1},update(l,c){if(!cV(l,s))return 0;let u=a(l);return t.compare(u,l.values[o])?0:(l.values[o]=u,1)},reconfigure(l,c){let u=cV(l,n),d=c.config.facets[t.id],f=c.facet(t);if(d&&!u&&AG(r,d))return l.values[o]=f,0;let m=a(l);return t.compare(m,f)?(l.values[o]=f,0):(l.values[o]=m,1)}}}const C2=Et.define({static:!0});class uo{constructor(t,r,n,i,s){this.id=t,this.createF=r,this.updateF=n,this.compareF=i,this.spec=s,this.provides=void 0}static define(t){let r=new uo(DG++,t.create,t.update,t.compare||((n,i)=>n===i),t);return t.provide&&(r.provides=t.provide(r)),r}create(t){let r=t.facet(C2).find(n=>n.field==this);return(r?.create||this.createF)(t)}slot(t){let r=t[this.id]>>1;return{create:n=>(n.values[r]=this.create(n),1),update:(n,i)=>{let s=n.values[r],o=this.updateF(s,i);return this.compareF(s,o)?0:(n.values[r]=o,1)},reconfigure:(n,i)=>{let s=n.facet(C2),o=i.facet(C2),a;return(a=s.find(l=>l.field==this))&&a!=o.find(l=>l.field==this)?(n.values[r]=a.create(n),1):i.config.address[this.id]!=null?(n.values[r]=i.field(this),0):(n.values[r]=this.create(n),1)}}}init(t){return[this,C2.of({field:this,create:t})]}get extension(){return this}}const sv={lowest:4,low:3,default:2,high:1,highest:0};function OO(e){return t=>new sAe(t,e)}const Hh={highest:OO(sv.highest),high:OO(sv.high),default:OO(sv.default),low:OO(sv.low),lowest:OO(sv.lowest)};class sAe{constructor(t,r){this.inner=t,this.prec=r}}class qN{of(t){return new uV(this,t)}reconfigure(t){return qN.reconfigure.of({compartment:this,extension:t})}get(t){return t.config.compartments.get(this)}}class uV{constructor(t,r){this.compartment=t,this.inner=r}}class NI{constructor(t,r,n,i,s,o){for(this.base=t,this.compartments=r,this.dynamicSlots=n,this.address=i,this.staticValues=s,this.facets=o,this.statusTemplate=[];this.statusTemplate.length<n.length;)this.statusTemplate.push(0)}staticFacet(t){let r=this.address[t.id];return r==null?t.default:this.staticValues[r>>1]}static resolve(t,r,n){let i=[],s=Object.create(null),o=new Map;for(let f of _xt(t,r,o))f instanceof uo?i.push(f):(s[f.facet.id]||(s[f.facet.id]=[])).push(f);let a=Object.create(null),l=[],c=[];for(let f of i)a[f.id]=c.length<<1,c.push(m=>f.slot(m));let u=n?.config.facets;for(let f in s){let m=s[f],g=m[0].facet,v=u&&u[f]||[];if(m.every(b=>b.type==0))if(a[g.id]=l.length<<1|1,AG(v,m))l.push(n.facet(g));else{let b=g.combine(m.map(w=>w.value));l.push(n&&g.compare(b,n.facet(g))?n.facet(g):b)}else{for(let b of m)b.type==0?(a[b.id]=l.length<<1|1,l.push(b.value)):(a[b.id]=c.length<<1,c.push(w=>b.dynamicSlot(w)));a[g.id]=c.length<<1,c.push(b=>Oxt(b,g,m))}}let d=c.map(f=>f(a));return new NI(t,o,d,a,l,s)}}function _xt(e,t,r){let n=[[],[],[],[],[]],i=new Map;function s(o,a){let l=i.get(o);if(l!=null){if(l<=a)return;let c=n[l].indexOf(o);c>-1&&n[l].splice(c,1),o instanceof uV&&r.delete(o.compartment)}if(i.set(o,a),Array.isArray(o))for(let c of o)s(c,a);else if(o instanceof uV){if(r.has(o.compartment))throw new RangeError("Duplicate use of compartment in extensions");let c=t.get(o.compartment)||o.inner;r.set(o.compartment,c),s(c,a)}else if(o instanceof sAe)s(o.inner,o.prec);else if(o instanceof uo)n[a].push(o),o.provides&&s(o.provides,a);else if(o instanceof m$)n[a].push(o),o.facet.extensions&&s(o.facet.extensions,sv.default);else{let c=o.extension;if(!c)throw new Error(`Unrecognized extension value in extension set (${o}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);s(c,a)}}return s(e,sv.default),n.reduce((o,a)=>o.concat(a))}function Z_(e,t){if(t&1)return 2;let r=t>>1,n=e.status[r];if(n==4)throw new Error("Cyclic dependency between fields and/or facets");if(n&2)return n;e.status[r]=4;let i=e.computeSlot(e,e.config.dynamicSlots[r]);return e.status[r]=2|i}function RI(e,t){return t&1?e.config.staticValues[t>>1]:e.values[t>>1]}const oAe=Et.define(),dV=Et.define({combine:e=>e.some(t=>t),static:!0}),aAe=Et.define({combine:e=>e.length?e[0]:void 0,static:!0}),lAe=Et.define(),cAe=Et.define(),uAe=Et.define(),dAe=Et.define({combine:e=>e.length?e[0]:!1});class rp{constructor(t,r){this.type=t,this.value=r}static define(){return new kxt}}class kxt{of(t){return new rp(this,t)}}class Ext{constructor(t){this.map=t}of(t){return new gr(this,t)}}class gr{constructor(t,r){this.type=t,this.value=r}map(t){let r=this.type.map(this.value,t);return r===void 0?void 0:r==this.value?this:new gr(this.type,r)}is(t){return this.type==t}static define(t={}){return new Ext(t.map||(r=>r))}static mapEffects(t,r){if(!t.length)return t;let n=[];for(let i of t){let s=i.map(r);s&&n.push(s)}return n}}gr.reconfigure=gr.define();gr.appendConfig=gr.define();class $s{constructor(t,r,n,i,s,o){this.startState=t,this.changes=r,this.selection=n,this.effects=i,this.annotations=s,this.scrollIntoView=o,this._doc=null,this._state=null,n&&iAe(n,r.newLength),s.some(a=>a.type==$s.time)||(this.annotations=s.concat($s.time.of(Date.now())))}static create(t,r,n,i,s,o){return new $s(t,r,n,i,s,o)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(t){for(let r of this.annotations)if(r.type==t)return r.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(t){let r=this.annotation($s.userEvent);return!!(r&&(r==t||r.length>t.length&&r.slice(0,t.length)==t&&r[t.length]=="."))}}$s.time=rp.define();$s.userEvent=rp.define();$s.addToHistory=rp.define();$s.remote=rp.define();function Cxt(e,t){let r=[];for(let n=0,i=0;;){let s,o;if(n<e.length&&(i==t.length||t[i]>=e[n]))s=e[n++],o=e[n++];else if(i<t.length)s=t[i++],o=t[i++];else return r;!r.length||r[r.length-1]<s?r.push(s,o):r[r.length-1]<o&&(r[r.length-1]=o)}}function fAe(e,t,r){var n;let i,s,o;return r?(i=t.changes,s=Ws.empty(t.changes.length),o=e.changes.compose(t.changes)):(i=t.changes.map(e.changes),s=e.changes.mapDesc(t.changes,!0),o=e.changes.compose(i)),{changes:o,selection:t.selection?t.selection.map(s):(n=e.selection)===null||n===void 0?void 0:n.map(i),effects:gr.mapEffects(e.effects,i).concat(gr.mapEffects(t.effects,s)),annotations:e.annotations.length?e.annotations.concat(t.annotations):t.annotations,scrollIntoView:e.scrollIntoView||t.scrollIntoView}}function fV(e,t,r){let n=t.selection,i=Qx(t.annotations);return t.userEvent&&(i=i.concat($s.userEvent.of(t.userEvent))),{changes:t.changes instanceof Ws?t.changes:Ws.of(t.changes||[],r,e.facet(aAe)),selection:n&&(n instanceof Ne?n:Ne.single(n.anchor,n.head)),effects:Qx(t.effects),annotations:i,scrollIntoView:!!t.scrollIntoView}}function pAe(e,t,r){let n=fV(e,t.length?t[0]:{},e.doc.length);t.length&&t[0].filter===!1&&(r=!1);for(let s=1;s<t.length;s++){t[s].filter===!1&&(r=!1);let o=!!t[s].sequential;n=fAe(n,fV(e,t[s],o?n.changes.newLength:e.doc.length),o)}let i=$s.create(e,n.changes,n.selection,n.effects,n.annotations,n.scrollIntoView);return Dxt(r?Txt(i):i)}function Txt(e){let t=e.startState,r=!0;for(let i of t.facet(lAe)){let s=i(e);if(s===!1){r=!1;break}Array.isArray(s)&&(r=r===!0?s:Cxt(r,s))}if(r!==!0){let i,s;if(r===!1)s=e.changes.invertedDesc,i=Ws.empty(t.doc.length);else{let o=e.changes.filter(r);i=o.changes,s=o.filtered.mapDesc(o.changes).invertedDesc}e=$s.create(t,i,e.selection&&e.selection.map(s),gr.mapEffects(e.effects,s),e.annotations,e.scrollIntoView)}let n=t.facet(cAe);for(let i=n.length-1;i>=0;i--){let s=n[i](e);s instanceof $s?e=s:Array.isArray(s)&&s.length==1&&s[0]instanceof $s?e=s[0]:e=pAe(t,Qx(s),!1)}return e}function Dxt(e){let t=e.startState,r=t.facet(uAe),n=e;for(let i=r.length-1;i>=0;i--){let s=r[i](e);s&&Object.keys(s).length&&(n=fAe(n,fV(t,s,e.changes.newLength),!0))}return n==e?e:$s.create(t,e.changes,e.selection,n.effects,n.annotations,n.scrollIntoView)}const Axt=[];function Qx(e){return e==null?Axt:Array.isArray(e)?e:[e]}var zi=(function(e){return e[e.Word=0]="Word",e[e.Space=1]="Space",e[e.Other=2]="Other",e})(zi||(zi={}));const Pxt=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let pV;try{pV=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function $xt(e){if(pV)return pV.test(e);for(let t=0;t<e.length;t++){let r=e[t];if(/\w/.test(r)||r>""&&(r.toUpperCase()!=r.toLowerCase()||Pxt.test(r)))return!0}return!1}function Ixt(e){return t=>{if(!/\S/.test(t))return zi.Space;if($xt(t))return zi.Word;for(let r=0;r<e.length;r++)if(t.indexOf(e[r])>-1)return zi.Word;return zi.Other}}class Hr{constructor(t,r,n,i,s,o){this.config=t,this.doc=r,this.selection=n,this.values=i,this.status=t.statusTemplate.slice(),this.computeSlot=s,o&&(o._state=this);for(let a=0;a<this.config.dynamicSlots.length;a++)Z_(this,a<<1);this.computeSlot=null}field(t,r=!0){let n=this.config.address[t.id];if(n==null){if(r)throw new RangeError("Field is not present in this state");return}return Z_(this,n),RI(this,n)}update(...t){return pAe(this,t,!0)}applyTransaction(t){let r=this.config,{base:n,compartments:i}=r;for(let a of t.effects)a.is(qN.reconfigure)?(r&&(i=new Map,r.compartments.forEach((l,c)=>i.set(c,l)),r=null),i.set(a.value.compartment,a.value.extension)):a.is(gr.reconfigure)?(r=null,n=a.value):a.is(gr.appendConfig)&&(r=null,n=Qx(n).concat(a.value));let s;r?s=t.startState.values.slice():(r=NI.resolve(n,i,this),s=new Hr(r,this.doc,this.selection,r.dynamicSlots.map(()=>null),(l,c)=>c.reconfigure(l,this),null).values);let o=t.startState.facet(dV)?t.newSelection:t.newSelection.asSingle();new Hr(r,t.newDoc,o,s,(a,l)=>l.update(a,t),t)}replaceSelection(t){return typeof t=="string"&&(t=this.toText(t)),this.changeByRange(r=>({changes:{from:r.from,to:r.to,insert:t},range:Ne.cursor(r.from+t.length)}))}changeByRange(t){let r=this.selection,n=t(r.ranges[0]),i=this.changes(n.changes),s=[n.range],o=Qx(n.effects);for(let a=1;a<r.ranges.length;a++){let l=t(r.ranges[a]),c=this.changes(l.changes),u=c.map(i);for(let f=0;f<a;f++)s[f]=s[f].map(u);let d=i.mapDesc(c,!0);s.push(l.range.map(d)),i=i.compose(u),o=gr.mapEffects(o,u).concat(gr.mapEffects(Qx(l.effects),d))}return{changes:i,selection:Ne.create(s,r.mainIndex),effects:o}}changes(t=[]){return t instanceof Ws?t:Ws.of(t,this.doc.length,this.facet(Hr.lineSeparator))}toText(t){return rn.of(t.split(this.facet(Hr.lineSeparator)||oV))}sliceDoc(t=0,r=this.doc.length){return this.doc.sliceString(t,r,this.lineBreak)}facet(t){let r=this.config.address[t.id];return r==null?t.default:(Z_(this,r),RI(this,r))}toJSON(t){let r={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(t)for(let n in t){let i=t[n];i instanceof uo&&this.config.address[i.id]!=null&&(r[n]=i.spec.toJSON(this.field(t[n]),this))}return r}static fromJSON(t,r={},n){if(!t||typeof t.doc!="string")throw new RangeError("Invalid JSON representation for EditorState");let i=[];if(n){for(let s in n)if(Object.prototype.hasOwnProperty.call(t,s)){let o=n[s],a=t[s];i.push(o.init(l=>o.spec.fromJSON(a,l)))}}return Hr.create({doc:t.doc,selection:Ne.fromJSON(t.selection),extensions:r.extensions?i.concat([r.extensions]):i})}static create(t={}){let r=NI.resolve(t.extensions||[],new Map),n=t.doc instanceof rn?t.doc:rn.of((t.doc||"").split(r.staticFacet(Hr.lineSeparator)||oV)),i=t.selection?t.selection instanceof Ne?t.selection:Ne.single(t.selection.anchor,t.selection.head):Ne.single(0);return iAe(i,n.length),r.staticFacet(dV)||(i=i.asSingle()),new Hr(r,n,i,r.dynamicSlots.map(()=>null),(s,o)=>o.create(s),null)}get tabSize(){return this.facet(Hr.tabSize)}get lineBreak(){return this.facet(Hr.lineSeparator)||`
|
|
@@ -190,7 +190,7 @@ Error message: ${jX(r)}`,cause:r}),this[R3e]=!0,this.value=t}static isInstance(t
|
|
|
190
190
|
]))`;continue}else if(i[c]==="$"){s+=`($|(?=[\r
|
|
191
191
|
]))`;continue}}if(n.s&&i[c]==="."){s+=a?`${i[c]}\r
|
|
192
192
|
`:`[${i[c]}\r
|
|
193
|
-
]`;continue}s+=i[c],i[c]==="\\"?o=!0:a&&i[c]==="]"?a=!1:!a&&i[c]==="["&&(a=!0)}return s}function U3e(e,t){var r,n,i,s,o,a;const l={type:"object",additionalProperties:(r=jn(e.valueType._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]}))!=null?r:t.allowedAdditionalProperties};if(((n=e.keyType)==null?void 0:n._def.typeName)===re.ZodString&&((i=e.keyType._def.checks)!=null&&i.length)){const{type:c,...u}=V3e(e.keyType._def,t);return{...l,propertyNames:u}}else{if(((s=e.keyType)==null?void 0:s._def.typeName)===re.ZodEnum)return{...l,propertyNames:{enum:e.keyType._def.values}};if(((o=e.keyType)==null?void 0:o._def.typeName)===re.ZodBranded&&e.keyType._def.type._def.typeName===re.ZodString&&((a=e.keyType._def.type._def.checks)!=null&&a.length)){const{type:c,...u}=z3e(e.keyType._def,t);return{...l,propertyNames:u}}}return l}function T4t(e,t){if(t.mapStrategy==="record")return U3e(e,t);const r=jn(e.keyType._def,{...t,currentPath:[...t.currentPath,"items","items","0"]})||ac(),n=jn(e.valueType._def,{...t,currentPath:[...t.currentPath,"items","items","1"]})||ac();return{type:"array",maxItems:125,items:{type:"array",items:[r,n],minItems:2,maxItems:2}}}function D4t(e){const t=e.values,n=Object.keys(e.values).filter(s=>typeof t[t[s]]!="number").map(s=>t[s]),i=Array.from(new Set(n.map(s=>typeof s)));return{type:i.length===1?i[0]==="string"?"string":"number":["string","number"],enum:n}}function A4t(){return{not:ac()}}function P4t(){return{type:"null"}}var CU={ZodString:"string",ZodNumber:"number",ZodBigInt:"integer",ZodBoolean:"boolean",ZodNull:"null"};function $4t(e,t){const r=e.options instanceof Map?Array.from(e.options.values()):e.options;if(r.every(n=>n._def.typeName in CU&&(!n._def.checks||!n._def.checks.length))){const n=r.reduce((i,s)=>{const o=CU[s._def.typeName];return o&&!i.includes(o)?[...i,o]:i},[]);return{type:n.length>1?n:n[0]}}else if(r.every(n=>n._def.typeName==="ZodLiteral"&&!n.description)){const n=r.reduce((i,s)=>{const o=typeof s._def.value;switch(o){case"string":case"number":case"boolean":return[...i,o];case"bigint":return[...i,"integer"];case"object":if(s._def.value===null)return[...i,"null"];default:return i}},[]);if(n.length===r.length){const i=n.filter((s,o,a)=>a.indexOf(s)===o);return{type:i.length>1?i:i[0],enum:r.reduce((s,o)=>s.includes(o._def.value)?s:[...s,o._def.value],[])}}}else if(r.every(n=>n._def.typeName==="ZodEnum"))return{type:"string",enum:r.reduce((n,i)=>[...n,...i._def.values.filter(s=>!n.includes(s))],[])};return I4t(e,t)}var I4t=(e,t)=>{const r=(e.options instanceof Map?Array.from(e.options.values()):e.options).map((n,i)=>jn(n._def,{...t,currentPath:[...t.currentPath,"anyOf",`${i}`]})).filter(n=>!!n&&(!t.strictUnions||typeof n=="object"&&Object.keys(n).length>0));return r.length?{anyOf:r}:void 0};function N4t(e,t){if(["ZodString","ZodNumber","ZodBigInt","ZodBoolean","ZodNull"].includes(e.innerType._def.typeName)&&(!e.innerType._def.checks||!e.innerType._def.checks.length))return{type:[CU[e.innerType._def.typeName],"null"]};const r=jn(e.innerType._def,{...t,currentPath:[...t.currentPath,"anyOf","0"]});return r&&{anyOf:[r,{type:"null"}]}}function R4t(e){const t={type:"number"};if(!e.checks)return t;for(const r of e.checks)switch(r.kind){case"int":t.type="integer";break;case"min":r.inclusive?t.minimum=r.value:t.exclusiveMinimum=r.value;break;case"max":r.inclusive?t.maximum=r.value:t.exclusiveMaximum=r.value;break;case"multipleOf":t.multipleOf=r.value;break}return t}function M4t(e,t){const r={type:"object",properties:{}},n=[],i=e.shape();for(const o in i){let a=i[o];if(a===void 0||a._def===void 0)continue;const l=F4t(a),c=jn(a._def,{...t,currentPath:[...t.currentPath,"properties",o],propertyPath:[...t.currentPath,"properties",o]});c!==void 0&&(r.properties[o]=c,l||n.push(o))}n.length&&(r.required=n);const s=j4t(e,t);return s!==void 0&&(r.additionalProperties=s),r}function j4t(e,t){if(e.catchall._def.typeName!=="ZodNever")return jn(e.catchall._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]});switch(e.unknownKeys){case"passthrough":return t.allowedAdditionalProperties;case"strict":return t.rejectedAdditionalProperties;case"strip":return t.removeAdditionalStrategy==="strict"?t.allowedAdditionalProperties:t.rejectedAdditionalProperties}}function F4t(e){try{return e.isOptional()}catch{return!0}}var L4t=(e,t)=>{var r;if(t.currentPath.toString()===((r=t.propertyPath)==null?void 0:r.toString()))return jn(e.innerType._def,t);const n=jn(e.innerType._def,{...t,currentPath:[...t.currentPath,"anyOf","1"]});return n?{anyOf:[{not:ac()},n]}:ac()},z4t=(e,t)=>{if(t.pipeStrategy==="input")return jn(e.in._def,t);if(t.pipeStrategy==="output")return jn(e.out._def,t);const r=jn(e.in._def,{...t,currentPath:[...t.currentPath,"allOf","0"]}),n=jn(e.out._def,{...t,currentPath:[...t.currentPath,"allOf",r?"1":"0"]});return{allOf:[r,n].filter(i=>i!==void 0)}};function B4t(e,t){return jn(e.type._def,t)}function V4t(e,t){const n={type:"array",uniqueItems:!0,items:jn(e.valueType._def,{...t,currentPath:[...t.currentPath,"items"]})};return e.minSize&&(n.minItems=e.minSize.value),e.maxSize&&(n.maxItems=e.maxSize.value),n}function U4t(e,t){return e.rest?{type:"array",minItems:e.items.length,items:e.items.map((r,n)=>jn(r._def,{...t,currentPath:[...t.currentPath,"items",`${n}`]})).reduce((r,n)=>n===void 0?r:[...r,n],[]),additionalItems:jn(e.rest._def,{...t,currentPath:[...t.currentPath,"additionalItems"]})}:{type:"array",minItems:e.items.length,maxItems:e.items.length,items:e.items.map((r,n)=>jn(r._def,{...t,currentPath:[...t.currentPath,"items",`${n}`]})).reduce((r,n)=>n===void 0?r:[...r,n],[])}}function Q4t(){return{not:ac()}}function Z4t(){return ac()}var q4t=(e,t)=>jn(e.innerType._def,t),H4t=(e,t,r)=>{switch(t){case re.ZodString:return V3e(e,r);case re.ZodNumber:return R4t(e);case re.ZodObject:return M4t(e,r);case re.ZodBigInt:return g4t(e);case re.ZodBoolean:return y4t();case re.ZodDate:return B3e(e,r);case re.ZodUndefined:return Q4t();case re.ZodNull:return P4t();case re.ZodArray:return m4t(e,r);case re.ZodUnion:case re.ZodDiscriminatedUnion:return $4t(e,r);case re.ZodIntersection:return _4t(e,r);case re.ZodTuple:return U4t(e,r);case re.ZodRecord:return U3e(e,r);case re.ZodLiteral:return k4t(e);case re.ZodEnum:return S4t(e);case re.ZodNativeEnum:return D4t(e);case re.ZodNullable:return N4t(e,r);case re.ZodOptional:return L4t(e,r);case re.ZodMap:return T4t(e,r);case re.ZodSet:return V4t(e,r);case re.ZodLazy:return()=>e.getter()._def;case re.ZodPromise:return B4t(e,r);case re.ZodNaN:case re.ZodNever:return A4t();case re.ZodEffects:return w4t(e,r);case re.ZodAny:return ac();case re.ZodUnknown:return Z4t();case re.ZodDefault:return x4t(e,r);case re.ZodBranded:return z3e(e,r);case re.ZodReadonly:return q4t(e,r);case re.ZodCatch:return v4t(e,r);case re.ZodPipeline:return z4t(e,r);case re.ZodFunction:case re.ZodVoid:case re.ZodSymbol:return;default:return(n=>{})()}};function jn(e,t,r=!1){var n;const i=t.seen.get(e);if(t.override){const l=(n=t.override)==null?void 0:n.call(t,e,t,i,r);if(l!==p4t)return l}if(i&&!r){const l=W4t(i,t);if(l!==void 0)return l}const s={def:e,path:t.currentPath,jsonSchema:void 0};t.seen.set(e,s);const o=H4t(e,e.typeName,t),a=typeof o=="function"?jn(o(),t):o;if(a&&G4t(e,t,a),t.postProcess){const l=t.postProcess(a,e,t);return s.jsonSchema=a,l}return s.jsonSchema=a,a}var W4t=(e,t)=>{switch(t.$refStrategy){case"root":return{$ref:e.path.join("/")};case"relative":return{$ref:f4t(t.currentPath,e.path)};case"none":case"seen":return e.path.length<t.currentPath.length&&e.path.every((r,n)=>t.currentPath[n]===r)?(console.warn(`Recursive reference detected at ${t.currentPath.join("/")}! Defaulting to any`),ac()):t.$refStrategy==="seen"?ac():void 0}},G4t=(e,t,r)=>(e.description&&(r.description=e.description),r),X4t=e=>{const t=h4t(e),r=t.name!==void 0?[...t.basePath,t.definitionPath,t.name]:t.basePath;return{...t,currentPath:r,propertyPath:void 0,seen:new Map(Object.entries(t.definitions).map(([n,i])=>[i._def,{def:i._def,path:[...t.basePath,t.definitionPath,n],jsonSchema:void 0}]))}},Y4t=(e,t)=>{var r;const n=X4t(t);let i=typeof t=="object"&&t.definitions?Object.entries(t.definitions).reduce((c,[u,d])=>{var f;return{...c,[u]:(f=jn(d._def,{...n,currentPath:[...n.basePath,n.definitionPath,u]},!0))!=null?f:ac()}},{}):void 0;const s=typeof t=="string"?t:t?.nameStrategy==="title"?void 0:t?.name,o=(r=jn(e._def,s===void 0?n:{...n,currentPath:[...n.basePath,n.definitionPath,s]},!1))!=null?r:ac(),a=typeof t=="object"&&t.name!==void 0&&t.nameStrategy==="title"?t.name:void 0;a!==void 0&&(o.title=a);const l=s===void 0?i?{...o,[n.definitionPath]:i}:o:{$ref:[...n.$refStrategy==="relative"?[]:n.basePath,n.definitionPath,s].join("/"),[n.definitionPath]:{...i,[s]:o}};return l.$schema="http://json-schema.org/draft-07/schema#",l},J4t=Y4t;function K4t(e,t){var r;const n=(r=void 0)!=null?r:!1;return LX(()=>J4t(e,{$refStrategy:n?"root":"none"}),{validate:async i=>{const s=await e.safeParseAsync(i);return s.success?{success:!0,value:s.data}:{success:!1,error:s.error}}})}function eNt(e,t){var r;const n=(r=void 0)!=null?r:!1;return LX(()=>QIe(e,{target:"draft-7",io:"output",reused:n?"ref":"inline"}),{validate:async i=>{const s=await IX(e,i);return s.success?{success:!0,value:s.data}:{success:!1,error:s.error}}})}function tNt(e){return"_zod"in e}function I0(e,t){return tNt(e)?eNt(e):K4t(e)}var TU=Symbol.for("vercel.ai.schema");function LX(e,{validate:t}={}){return{[TU]:!0,_type:void 0,[m3]:!0,get jsonSchema(){return typeof e=="function"&&(e=e()),e},validate:t}}function rNt(e){return typeof e=="object"&&e!==null&&TU in e&&e[TU]===!0&&"jsonSchema"in e&&"validate"in e}function nNt(e){return e==null?LX({properties:{},additionalProperties:!1}):rNt(e)?e:typeof e=="function"?e():I0(e)}function iNt(e){return e?.replace(/\/$/,"")}var Q3e=v5({"../../../node_modules/.pnpm/@vercel+oidc@3.0.5/node_modules/@vercel/oidc/dist/get-context.js"(e,t){var r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,o=(f,m)=>{for(var g in m)r(f,g,{get:m[g],enumerable:!0})},a=(f,m,g,v)=>{if(m&&typeof m=="object"||typeof m=="function")for(let b of i(m))!s.call(f,b)&&b!==g&&r(f,b,{get:()=>m[b],enumerable:!(v=n(m,b))||v.enumerable});return f},l=f=>a(r({},"__esModule",{value:!0}),f),c={};o(c,{SYMBOL_FOR_REQ_CONTEXT:()=>u,getContext:()=>d}),t.exports=l(c);var u=Symbol.for("@vercel/request-context");function d(){return globalThis[u]?.get?.()??{}}}}),sNt=v5({"../../../node_modules/.pnpm/@vercel+oidc@3.0.5/node_modules/@vercel/oidc/dist/get-vercel-oidc-token.js"(e,t){var r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,o=(g,v)=>{for(var b in v)r(g,b,{get:v[b],enumerable:!0})},a=(g,v,b,w)=>{if(v&&typeof v=="object"||typeof v=="function")for(let S of i(v))!s.call(g,S)&&S!==b&&r(g,S,{get:()=>v[S],enumerable:!(w=n(v,S))||w.enumerable});return g},l=g=>a(r({},"__esModule",{value:!0}),g),c={};o(c,{getVercelOidcToken:()=>f,getVercelOidcTokenSync:()=>m}),t.exports=l(c);var u=Q3e(),d=M3t();async function f(){let g="",v;try{g=m()}catch(b){v=b}try{const[{getTokenPayload:b,isExpired:w},{refreshToken:S}]=await Promise.all([await G(()=>import("./token-util-NEHG7TUY-JRJTGTAB-N8sYk0L_-CDuvMfUE.js"),__vite__mapDeps([93,94,95]),import.meta.url),await G(()=>import("./token-6GSAFR2W-SPYPLMBM-BeIpRVyM-l2VMiUfh.js"),__vite__mapDeps([96,94,95]),import.meta.url)]);(!g||w(b(g)))&&(await S(),g=m())}catch(b){throw v?.message&&b instanceof Error&&(b.message=`${v.message}
|
|
193
|
+
]`;continue}s+=i[c],i[c]==="\\"?o=!0:a&&i[c]==="]"?a=!1:!a&&i[c]==="["&&(a=!0)}return s}function U3e(e,t){var r,n,i,s,o,a;const l={type:"object",additionalProperties:(r=jn(e.valueType._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]}))!=null?r:t.allowedAdditionalProperties};if(((n=e.keyType)==null?void 0:n._def.typeName)===re.ZodString&&((i=e.keyType._def.checks)!=null&&i.length)){const{type:c,...u}=V3e(e.keyType._def,t);return{...l,propertyNames:u}}else{if(((s=e.keyType)==null?void 0:s._def.typeName)===re.ZodEnum)return{...l,propertyNames:{enum:e.keyType._def.values}};if(((o=e.keyType)==null?void 0:o._def.typeName)===re.ZodBranded&&e.keyType._def.type._def.typeName===re.ZodString&&((a=e.keyType._def.type._def.checks)!=null&&a.length)){const{type:c,...u}=z3e(e.keyType._def,t);return{...l,propertyNames:u}}}return l}function T4t(e,t){if(t.mapStrategy==="record")return U3e(e,t);const r=jn(e.keyType._def,{...t,currentPath:[...t.currentPath,"items","items","0"]})||ac(),n=jn(e.valueType._def,{...t,currentPath:[...t.currentPath,"items","items","1"]})||ac();return{type:"array",maxItems:125,items:{type:"array",items:[r,n],minItems:2,maxItems:2}}}function D4t(e){const t=e.values,n=Object.keys(e.values).filter(s=>typeof t[t[s]]!="number").map(s=>t[s]),i=Array.from(new Set(n.map(s=>typeof s)));return{type:i.length===1?i[0]==="string"?"string":"number":["string","number"],enum:n}}function A4t(){return{not:ac()}}function P4t(){return{type:"null"}}var CU={ZodString:"string",ZodNumber:"number",ZodBigInt:"integer",ZodBoolean:"boolean",ZodNull:"null"};function $4t(e,t){const r=e.options instanceof Map?Array.from(e.options.values()):e.options;if(r.every(n=>n._def.typeName in CU&&(!n._def.checks||!n._def.checks.length))){const n=r.reduce((i,s)=>{const o=CU[s._def.typeName];return o&&!i.includes(o)?[...i,o]:i},[]);return{type:n.length>1?n:n[0]}}else if(r.every(n=>n._def.typeName==="ZodLiteral"&&!n.description)){const n=r.reduce((i,s)=>{const o=typeof s._def.value;switch(o){case"string":case"number":case"boolean":return[...i,o];case"bigint":return[...i,"integer"];case"object":if(s._def.value===null)return[...i,"null"];default:return i}},[]);if(n.length===r.length){const i=n.filter((s,o,a)=>a.indexOf(s)===o);return{type:i.length>1?i:i[0],enum:r.reduce((s,o)=>s.includes(o._def.value)?s:[...s,o._def.value],[])}}}else if(r.every(n=>n._def.typeName==="ZodEnum"))return{type:"string",enum:r.reduce((n,i)=>[...n,...i._def.values.filter(s=>!n.includes(s))],[])};return I4t(e,t)}var I4t=(e,t)=>{const r=(e.options instanceof Map?Array.from(e.options.values()):e.options).map((n,i)=>jn(n._def,{...t,currentPath:[...t.currentPath,"anyOf",`${i}`]})).filter(n=>!!n&&(!t.strictUnions||typeof n=="object"&&Object.keys(n).length>0));return r.length?{anyOf:r}:void 0};function N4t(e,t){if(["ZodString","ZodNumber","ZodBigInt","ZodBoolean","ZodNull"].includes(e.innerType._def.typeName)&&(!e.innerType._def.checks||!e.innerType._def.checks.length))return{type:[CU[e.innerType._def.typeName],"null"]};const r=jn(e.innerType._def,{...t,currentPath:[...t.currentPath,"anyOf","0"]});return r&&{anyOf:[r,{type:"null"}]}}function R4t(e){const t={type:"number"};if(!e.checks)return t;for(const r of e.checks)switch(r.kind){case"int":t.type="integer";break;case"min":r.inclusive?t.minimum=r.value:t.exclusiveMinimum=r.value;break;case"max":r.inclusive?t.maximum=r.value:t.exclusiveMaximum=r.value;break;case"multipleOf":t.multipleOf=r.value;break}return t}function M4t(e,t){const r={type:"object",properties:{}},n=[],i=e.shape();for(const o in i){let a=i[o];if(a===void 0||a._def===void 0)continue;const l=F4t(a),c=jn(a._def,{...t,currentPath:[...t.currentPath,"properties",o],propertyPath:[...t.currentPath,"properties",o]});c!==void 0&&(r.properties[o]=c,l||n.push(o))}n.length&&(r.required=n);const s=j4t(e,t);return s!==void 0&&(r.additionalProperties=s),r}function j4t(e,t){if(e.catchall._def.typeName!=="ZodNever")return jn(e.catchall._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]});switch(e.unknownKeys){case"passthrough":return t.allowedAdditionalProperties;case"strict":return t.rejectedAdditionalProperties;case"strip":return t.removeAdditionalStrategy==="strict"?t.allowedAdditionalProperties:t.rejectedAdditionalProperties}}function F4t(e){try{return e.isOptional()}catch{return!0}}var L4t=(e,t)=>{var r;if(t.currentPath.toString()===((r=t.propertyPath)==null?void 0:r.toString()))return jn(e.innerType._def,t);const n=jn(e.innerType._def,{...t,currentPath:[...t.currentPath,"anyOf","1"]});return n?{anyOf:[{not:ac()},n]}:ac()},z4t=(e,t)=>{if(t.pipeStrategy==="input")return jn(e.in._def,t);if(t.pipeStrategy==="output")return jn(e.out._def,t);const r=jn(e.in._def,{...t,currentPath:[...t.currentPath,"allOf","0"]}),n=jn(e.out._def,{...t,currentPath:[...t.currentPath,"allOf",r?"1":"0"]});return{allOf:[r,n].filter(i=>i!==void 0)}};function B4t(e,t){return jn(e.type._def,t)}function V4t(e,t){const n={type:"array",uniqueItems:!0,items:jn(e.valueType._def,{...t,currentPath:[...t.currentPath,"items"]})};return e.minSize&&(n.minItems=e.minSize.value),e.maxSize&&(n.maxItems=e.maxSize.value),n}function U4t(e,t){return e.rest?{type:"array",minItems:e.items.length,items:e.items.map((r,n)=>jn(r._def,{...t,currentPath:[...t.currentPath,"items",`${n}`]})).reduce((r,n)=>n===void 0?r:[...r,n],[]),additionalItems:jn(e.rest._def,{...t,currentPath:[...t.currentPath,"additionalItems"]})}:{type:"array",minItems:e.items.length,maxItems:e.items.length,items:e.items.map((r,n)=>jn(r._def,{...t,currentPath:[...t.currentPath,"items",`${n}`]})).reduce((r,n)=>n===void 0?r:[...r,n],[])}}function Q4t(){return{not:ac()}}function Z4t(){return ac()}var q4t=(e,t)=>jn(e.innerType._def,t),H4t=(e,t,r)=>{switch(t){case re.ZodString:return V3e(e,r);case re.ZodNumber:return R4t(e);case re.ZodObject:return M4t(e,r);case re.ZodBigInt:return g4t(e);case re.ZodBoolean:return y4t();case re.ZodDate:return B3e(e,r);case re.ZodUndefined:return Q4t();case re.ZodNull:return P4t();case re.ZodArray:return m4t(e,r);case re.ZodUnion:case re.ZodDiscriminatedUnion:return $4t(e,r);case re.ZodIntersection:return _4t(e,r);case re.ZodTuple:return U4t(e,r);case re.ZodRecord:return U3e(e,r);case re.ZodLiteral:return k4t(e);case re.ZodEnum:return S4t(e);case re.ZodNativeEnum:return D4t(e);case re.ZodNullable:return N4t(e,r);case re.ZodOptional:return L4t(e,r);case re.ZodMap:return T4t(e,r);case re.ZodSet:return V4t(e,r);case re.ZodLazy:return()=>e.getter()._def;case re.ZodPromise:return B4t(e,r);case re.ZodNaN:case re.ZodNever:return A4t();case re.ZodEffects:return w4t(e,r);case re.ZodAny:return ac();case re.ZodUnknown:return Z4t();case re.ZodDefault:return x4t(e,r);case re.ZodBranded:return z3e(e,r);case re.ZodReadonly:return q4t(e,r);case re.ZodCatch:return v4t(e,r);case re.ZodPipeline:return z4t(e,r);case re.ZodFunction:case re.ZodVoid:case re.ZodSymbol:return;default:return(n=>{})()}};function jn(e,t,r=!1){var n;const i=t.seen.get(e);if(t.override){const l=(n=t.override)==null?void 0:n.call(t,e,t,i,r);if(l!==p4t)return l}if(i&&!r){const l=W4t(i,t);if(l!==void 0)return l}const s={def:e,path:t.currentPath,jsonSchema:void 0};t.seen.set(e,s);const o=H4t(e,e.typeName,t),a=typeof o=="function"?jn(o(),t):o;if(a&&G4t(e,t,a),t.postProcess){const l=t.postProcess(a,e,t);return s.jsonSchema=a,l}return s.jsonSchema=a,a}var W4t=(e,t)=>{switch(t.$refStrategy){case"root":return{$ref:e.path.join("/")};case"relative":return{$ref:f4t(t.currentPath,e.path)};case"none":case"seen":return e.path.length<t.currentPath.length&&e.path.every((r,n)=>t.currentPath[n]===r)?(console.warn(`Recursive reference detected at ${t.currentPath.join("/")}! Defaulting to any`),ac()):t.$refStrategy==="seen"?ac():void 0}},G4t=(e,t,r)=>(e.description&&(r.description=e.description),r),X4t=e=>{const t=h4t(e),r=t.name!==void 0?[...t.basePath,t.definitionPath,t.name]:t.basePath;return{...t,currentPath:r,propertyPath:void 0,seen:new Map(Object.entries(t.definitions).map(([n,i])=>[i._def,{def:i._def,path:[...t.basePath,t.definitionPath,n],jsonSchema:void 0}]))}},Y4t=(e,t)=>{var r;const n=X4t(t);let i=typeof t=="object"&&t.definitions?Object.entries(t.definitions).reduce((c,[u,d])=>{var f;return{...c,[u]:(f=jn(d._def,{...n,currentPath:[...n.basePath,n.definitionPath,u]},!0))!=null?f:ac()}},{}):void 0;const s=typeof t=="string"?t:t?.nameStrategy==="title"?void 0:t?.name,o=(r=jn(e._def,s===void 0?n:{...n,currentPath:[...n.basePath,n.definitionPath,s]},!1))!=null?r:ac(),a=typeof t=="object"&&t.name!==void 0&&t.nameStrategy==="title"?t.name:void 0;a!==void 0&&(o.title=a);const l=s===void 0?i?{...o,[n.definitionPath]:i}:o:{$ref:[...n.$refStrategy==="relative"?[]:n.basePath,n.definitionPath,s].join("/"),[n.definitionPath]:{...i,[s]:o}};return l.$schema="http://json-schema.org/draft-07/schema#",l},J4t=Y4t;function K4t(e,t){var r;const n=(r=void 0)!=null?r:!1;return LX(()=>J4t(e,{$refStrategy:n?"root":"none"}),{validate:async i=>{const s=await e.safeParseAsync(i);return s.success?{success:!0,value:s.data}:{success:!1,error:s.error}}})}function eNt(e,t){var r;const n=(r=void 0)!=null?r:!1;return LX(()=>QIe(e,{target:"draft-7",io:"output",reused:n?"ref":"inline"}),{validate:async i=>{const s=await IX(e,i);return s.success?{success:!0,value:s.data}:{success:!1,error:s.error}}})}function tNt(e){return"_zod"in e}function I0(e,t){return tNt(e)?eNt(e):K4t(e)}var TU=Symbol.for("vercel.ai.schema");function LX(e,{validate:t}={}){return{[TU]:!0,_type:void 0,[m3]:!0,get jsonSchema(){return typeof e=="function"&&(e=e()),e},validate:t}}function rNt(e){return typeof e=="object"&&e!==null&&TU in e&&e[TU]===!0&&"jsonSchema"in e&&"validate"in e}function nNt(e){return e==null?LX({properties:{},additionalProperties:!1}):rNt(e)?e:typeof e=="function"?e():I0(e)}function iNt(e){return e?.replace(/\/$/,"")}var Q3e=v5({"../../../node_modules/.pnpm/@vercel+oidc@3.0.5/node_modules/@vercel/oidc/dist/get-context.js"(e,t){var r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,o=(f,m)=>{for(var g in m)r(f,g,{get:m[g],enumerable:!0})},a=(f,m,g,v)=>{if(m&&typeof m=="object"||typeof m=="function")for(let b of i(m))!s.call(f,b)&&b!==g&&r(f,b,{get:()=>m[b],enumerable:!(v=n(m,b))||v.enumerable});return f},l=f=>a(r({},"__esModule",{value:!0}),f),c={};o(c,{SYMBOL_FOR_REQ_CONTEXT:()=>u,getContext:()=>d}),t.exports=l(c);var u=Symbol.for("@vercel/request-context");function d(){return globalThis[u]?.get?.()??{}}}}),sNt=v5({"../../../node_modules/.pnpm/@vercel+oidc@3.0.5/node_modules/@vercel/oidc/dist/get-vercel-oidc-token.js"(e,t){var r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,o=(g,v)=>{for(var b in v)r(g,b,{get:v[b],enumerable:!0})},a=(g,v,b,w)=>{if(v&&typeof v=="object"||typeof v=="function")for(let S of i(v))!s.call(g,S)&&S!==b&&r(g,S,{get:()=>v[S],enumerable:!(w=n(v,S))||w.enumerable});return g},l=g=>a(r({},"__esModule",{value:!0}),g),c={};o(c,{getVercelOidcToken:()=>f,getVercelOidcTokenSync:()=>m}),t.exports=l(c);var u=Q3e(),d=M3t();async function f(){let g="",v;try{g=m()}catch(b){v=b}try{const[{getTokenPayload:b,isExpired:w},{refreshToken:S}]=await Promise.all([await G(()=>import("./token-util-NEHG7TUY-JRJTGTAB-N8sYk0L_-DsQWNtNi.js"),__vite__mapDeps([93,94,95]),import.meta.url),await G(()=>import("./token-6GSAFR2W-SPYPLMBM-BeIpRVyM-CtQjpQT4.js"),__vite__mapDeps([96,94,95]),import.meta.url)]);(!g||w(b(g)))&&(await S(),g=m())}catch(b){throw v?.message&&b instanceof Error&&(b.message=`${v.message}
|
|
194
194
|
${b.message}`),new d.VercelOidcTokenError("Failed to refresh OIDC token",b)}return g}function m(){const g=(0,u.getContext)().headers?.["x-vercel-oidc-token"]??u3e.VERCEL_OIDC_TOKEN;if(!g)throw new Error("The 'x-vercel-oidc-token' header is missing from the request. Do you have the OIDC option enabled in the Vercel project settings?");return g}}}),Z3e=v5({"../../../node_modules/.pnpm/@vercel+oidc@3.0.5/node_modules/@vercel/oidc/dist/index.js"(e,t){var r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,o=(f,m)=>{for(var g in m)r(f,g,{get:m[g],enumerable:!0})},a=(f,m,g,v)=>{if(m&&typeof m=="object"||typeof m=="function")for(let b of i(m))!s.call(f,b)&&b!==g&&r(f,b,{get:()=>m[b],enumerable:!(v=n(m,b))||v.enumerable});return f},l=f=>a(r({},"__esModule",{value:!0}),f),c={};o(c,{getContext:()=>d.getContext,getVercelOidcToken:()=>u.getVercelOidcToken,getVercelOidcTokenSync:()=>u.getVercelOidcTokenSync}),t.exports=l(c);var u=sNt(),d=Q3e()}}),oNt=y3e(Z3e()),aNt=y3e(Z3e()),lNt="vercel.ai.gateway.error",$8=Symbol.for(lNt),Gde,Xde,lc=class q3e extends(Xde=Error,Gde=$8,Xde){constructor({message:t,statusCode:r=500,cause:n}){super(t),this[Gde]=!0,this.statusCode=r,this.cause=n}static isInstance(t){return q3e.hasMarker(t)}static hasMarker(t){return typeof t=="object"&&t!==null&&$8 in t&&t[$8]===!0}},H3e="GatewayAuthenticationError",cNt=`vercel.ai.gateway.error.${H3e}`,Yde=Symbol.for(cNt),Jde,Kde,W3e=class G3e extends(Kde=lc,Jde=Yde,Kde){constructor({message:t="Authentication failed",statusCode:r=401,cause:n}={}){super({message:t,statusCode:r,cause:n}),this[Jde]=!0,this.name=H3e,this.type="authentication_error"}static isInstance(t){return lc.hasMarker(t)&&Yde in t}static createContextualError({apiKeyProvided:t,oidcTokenProvided:r,message:n="Authentication failed",statusCode:i=401,cause:s}){let o;return t?o=`AI Gateway authentication failed: Invalid API key.
|
|
195
195
|
|
|
196
196
|
Create a new API key: https://vercel.com/d?to=%2F%5Bteam%5D%2F%7E%2Fai%2Fapi-keys
|
|
@@ -456,7 +456,7 @@ Error message: ${WK(r)}`,cause:r}),this[uze]=!0,this.value=t}static isInstance(t
|
|
|
456
456
|
]))`;continue}else if(i[c]==="$"){s+=`($|(?=[\r
|
|
457
457
|
]))`;continue}}if(n.s&&i[c]==="."){s+=a?`${i[c]}\r
|
|
458
458
|
`:`[${i[c]}\r
|
|
459
|
-
]`;continue}s+=i[c],i[c]==="\\"?o=!0:a&&i[c]==="]"?a=!1:!a&&i[c]==="["&&(a=!0)}return s}function vze(e,t){var r,n,i,s,o,a;const l={type:"object",additionalProperties:(r=Fn(e.valueType._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]}))!=null?r:t.allowedAdditionalProperties};if(((n=e.keyType)==null?void 0:n._def.typeName)===re.ZodString&&((i=e.keyType._def.checks)!=null&&i.length)){const{type:c,...u}=yze(e.keyType._def,t);return{...l,propertyNames:u}}else{if(((s=e.keyType)==null?void 0:s._def.typeName)===re.ZodEnum)return{...l,propertyNames:{enum:e.keyType._def.values}};if(((o=e.keyType)==null?void 0:o._def.typeName)===re.ZodBranded&&e.keyType._def.type._def.typeName===re.ZodString&&((a=e.keyType._def.type._def.checks)!=null&&a.length)){const{type:c,...u}=mze(e.keyType._def,t);return{...l,propertyNames:u}}}return l}function $yr(e,t){if(t.mapStrategy==="record")return vze(e,t);const r=Fn(e.keyType._def,{...t,currentPath:[...t.currentPath,"items","items","0"]})||mc(),n=Fn(e.valueType._def,{...t,currentPath:[...t.currentPath,"items","items","1"]})||mc();return{type:"array",maxItems:125,items:{type:"array",items:[r,n],minItems:2,maxItems:2}}}function Iyr(e){const t=e.values,n=Object.keys(e.values).filter(s=>typeof t[t[s]]!="number").map(s=>t[s]),i=Array.from(new Set(n.map(s=>typeof s)));return{type:i.length===1?i[0]==="string"?"string":"number":["string","number"],enum:n}}function Nyr(){return{not:mc()}}function Ryr(){return{type:"null"}}var mZ={ZodString:"string",ZodNumber:"number",ZodBigInt:"integer",ZodBoolean:"boolean",ZodNull:"null"};function Myr(e,t){const r=e.options instanceof Map?Array.from(e.options.values()):e.options;if(r.every(n=>n._def.typeName in mZ&&(!n._def.checks||!n._def.checks.length))){const n=r.reduce((i,s)=>{const o=mZ[s._def.typeName];return o&&!i.includes(o)?[...i,o]:i},[]);return{type:n.length>1?n:n[0]}}else if(r.every(n=>n._def.typeName==="ZodLiteral"&&!n.description)){const n=r.reduce((i,s)=>{const o=typeof s._def.value;switch(o){case"string":case"number":case"boolean":return[...i,o];case"bigint":return[...i,"integer"];case"object":if(s._def.value===null)return[...i,"null"];default:return i}},[]);if(n.length===r.length){const i=n.filter((s,o,a)=>a.indexOf(s)===o);return{type:i.length>1?i:i[0],enum:r.reduce((s,o)=>s.includes(o._def.value)?s:[...s,o._def.value],[])}}}else if(r.every(n=>n._def.typeName==="ZodEnum"))return{type:"string",enum:r.reduce((n,i)=>[...n,...i._def.values.filter(s=>!n.includes(s))],[])};return jyr(e,t)}var jyr=(e,t)=>{const r=(e.options instanceof Map?Array.from(e.options.values()):e.options).map((n,i)=>Fn(n._def,{...t,currentPath:[...t.currentPath,"anyOf",`${i}`]})).filter(n=>!!n&&(!t.strictUnions||typeof n=="object"&&Object.keys(n).length>0));return r.length?{anyOf:r}:void 0};function Fyr(e,t){if(["ZodString","ZodNumber","ZodBigInt","ZodBoolean","ZodNull"].includes(e.innerType._def.typeName)&&(!e.innerType._def.checks||!e.innerType._def.checks.length))return{type:[mZ[e.innerType._def.typeName],"null"]};const r=Fn(e.innerType._def,{...t,currentPath:[...t.currentPath,"anyOf","0"]});return r&&{anyOf:[r,{type:"null"}]}}function Lyr(e){const t={type:"number"};if(!e.checks)return t;for(const r of e.checks)switch(r.kind){case"int":t.type="integer";break;case"min":r.inclusive?t.minimum=r.value:t.exclusiveMinimum=r.value;break;case"max":r.inclusive?t.maximum=r.value:t.exclusiveMaximum=r.value;break;case"multipleOf":t.multipleOf=r.value;break}return t}function zyr(e,t){const r={type:"object",properties:{}},n=[],i=e.shape();for(const o in i){let a=i[o];if(a===void 0||a._def===void 0)continue;const l=Vyr(a),c=Fn(a._def,{...t,currentPath:[...t.currentPath,"properties",o],propertyPath:[...t.currentPath,"properties",o]});c!==void 0&&(r.properties[o]=c,l||n.push(o))}n.length&&(r.required=n);const s=Byr(e,t);return s!==void 0&&(r.additionalProperties=s),r}function Byr(e,t){if(e.catchall._def.typeName!=="ZodNever")return Fn(e.catchall._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]});switch(e.unknownKeys){case"passthrough":return t.allowedAdditionalProperties;case"strict":return t.rejectedAdditionalProperties;case"strip":return t.removeAdditionalStrategy==="strict"?t.allowedAdditionalProperties:t.rejectedAdditionalProperties}}function Vyr(e){try{return e.isOptional()}catch{return!0}}var Uyr=(e,t)=>{var r;if(t.currentPath.toString()===((r=t.propertyPath)==null?void 0:r.toString()))return Fn(e.innerType._def,t);const n=Fn(e.innerType._def,{...t,currentPath:[...t.currentPath,"anyOf","1"]});return n?{anyOf:[{not:mc()},n]}:mc()},Qyr=(e,t)=>{if(t.pipeStrategy==="input")return Fn(e.in._def,t);if(t.pipeStrategy==="output")return Fn(e.out._def,t);const r=Fn(e.in._def,{...t,currentPath:[...t.currentPath,"allOf","0"]}),n=Fn(e.out._def,{...t,currentPath:[...t.currentPath,"allOf",r?"1":"0"]});return{allOf:[r,n].filter(i=>i!==void 0)}};function Zyr(e,t){return Fn(e.type._def,t)}function qyr(e,t){const n={type:"array",uniqueItems:!0,items:Fn(e.valueType._def,{...t,currentPath:[...t.currentPath,"items"]})};return e.minSize&&(n.minItems=e.minSize.value),e.maxSize&&(n.maxItems=e.maxSize.value),n}function Hyr(e,t){return e.rest?{type:"array",minItems:e.items.length,items:e.items.map((r,n)=>Fn(r._def,{...t,currentPath:[...t.currentPath,"items",`${n}`]})).reduce((r,n)=>n===void 0?r:[...r,n],[]),additionalItems:Fn(e.rest._def,{...t,currentPath:[...t.currentPath,"additionalItems"]})}:{type:"array",minItems:e.items.length,maxItems:e.items.length,items:e.items.map((r,n)=>Fn(r._def,{...t,currentPath:[...t.currentPath,"items",`${n}`]})).reduce((r,n)=>n===void 0?r:[...r,n],[])}}function Wyr(){return{not:mc()}}function Gyr(){return mc()}var Xyr=(e,t)=>Fn(e.innerType._def,t),Yyr=(e,t,r)=>{switch(t){case re.ZodString:return yze(e,r);case re.ZodNumber:return Lyr(e);case re.ZodObject:return zyr(e,r);case re.ZodBigInt:return xyr(e);case re.ZodBoolean:return wyr();case re.ZodDate:return gze(e,r);case re.ZodUndefined:return Wyr();case re.ZodNull:return Ryr();case re.ZodArray:return byr(e,r);case re.ZodUnion:case re.ZodDiscriminatedUnion:return Myr(e,r);case re.ZodIntersection:return Tyr(e,r);case re.ZodTuple:return Hyr(e,r);case re.ZodRecord:return vze(e,r);case re.ZodLiteral:return Dyr(e);case re.ZodEnum:return Eyr(e);case re.ZodNativeEnum:return Iyr(e);case re.ZodNullable:return Fyr(e,r);case re.ZodOptional:return Uyr(e,r);case re.ZodMap:return $yr(e,r);case re.ZodSet:return qyr(e,r);case re.ZodLazy:return()=>e.getter()._def;case re.ZodPromise:return Zyr(e,r);case re.ZodNaN:case re.ZodNever:return Nyr();case re.ZodEffects:return kyr(e,r);case re.ZodAny:return mc();case re.ZodUnknown:return Gyr();case re.ZodDefault:return _yr(e,r);case re.ZodBranded:return mze(e,r);case re.ZodReadonly:return Xyr(e,r);case re.ZodCatch:return Syr(e,r);case re.ZodPipeline:return Qyr(e,r);case re.ZodFunction:case re.ZodVoid:case re.ZodSymbol:return;default:return(n=>{})()}};function Fn(e,t,r=!1){var n;const i=t.seen.get(e);if(t.override){const l=(n=t.override)==null?void 0:n.call(t,e,t,i,r);if(l!==yyr)return l}if(i&&!r){const l=Jyr(i,t);if(l!==void 0)return l}const s={def:e,path:t.currentPath,jsonSchema:void 0};t.seen.set(e,s);const o=Yyr(e,e.typeName,t),a=typeof o=="function"?Fn(o(),t):o;if(a&&Kyr(e,t,a),t.postProcess){const l=t.postProcess(a,e,t);return s.jsonSchema=a,l}return s.jsonSchema=a,a}var Jyr=(e,t)=>{switch(t.$refStrategy){case"root":return{$ref:e.path.join("/")};case"relative":return{$ref:gyr(t.currentPath,e.path)};case"none":case"seen":return e.path.length<t.currentPath.length&&e.path.every((r,n)=>t.currentPath[n]===r)?(console.warn(`Recursive reference detected at ${t.currentPath.join("/")}! Defaulting to any`),mc()):t.$refStrategy==="seen"?mc():void 0}},Kyr=(e,t,r)=>(e.description&&(r.description=e.description),r),evr=e=>{const t=vyr(e),r=t.name!==void 0?[...t.basePath,t.definitionPath,t.name]:t.basePath;return{...t,currentPath:r,propertyPath:void 0,seen:new Map(Object.entries(t.definitions).map(([n,i])=>[i._def,{def:i._def,path:[...t.basePath,t.definitionPath,n],jsonSchema:void 0}]))}},tvr=(e,t)=>{var r;const n=evr(t);let i=typeof t=="object"&&t.definitions?Object.entries(t.definitions).reduce((c,[u,d])=>{var f;return{...c,[u]:(f=Fn(d._def,{...n,currentPath:[...n.basePath,n.definitionPath,u]},!0))!=null?f:mc()}},{}):void 0;const s=typeof t=="string"?t:t?.nameStrategy==="title"?void 0:t?.name,o=(r=Fn(e._def,s===void 0?n:{...n,currentPath:[...n.basePath,n.definitionPath,s]},!1))!=null?r:mc(),a=typeof t=="object"&&t.name!==void 0&&t.nameStrategy==="title"?t.name:void 0;a!==void 0&&(o.title=a);const l=s===void 0?i?{...o,[n.definitionPath]:i}:o:{$ref:[...n.$refStrategy==="relative"?[]:n.basePath,n.definitionPath,s].join("/"),[n.definitionPath]:{...i,[s]:o}};return l.$schema="http://json-schema.org/draft-07/schema#",l},rvr=tvr;function nvr(e,t){var r;const n=(r=void 0)!=null?r:!1;return XK(()=>rvr(e,{$refStrategy:n?"root":"none"}),{validate:async i=>{const s=await e.safeParseAsync(i);return s.success?{success:!0,value:s.data}:{success:!1,error:s.error}}})}function ivr(e,t){var r;const n=(r=void 0)!=null?r:!1;return XK(()=>QIe(e,{target:"draft-7",io:"output",reused:n?"ref":"inline"}),{validate:async i=>{const s=await IX(e,i);return s.success?{success:!0,value:s.data}:{success:!1,error:s.error}}})}function svr(e){return"_zod"in e}function H0(e,t){return svr(e)?ivr(e):nvr(e)}var gZ=Symbol.for("vercel.ai.schema");function XK(e,{validate:t}={}){return{[gZ]:!0,_type:void 0,[o4]:!0,get jsonSchema(){return typeof e=="function"&&(e=e()),e},validate:t}}function ovr(e){return typeof e=="object"&&e!==null&&gZ in e&&e[gZ]===!0&&"jsonSchema"in e&&"validate"in e}function avr(e){return e==null?XK({properties:{},additionalProperties:!1}):ovr(e)?e:typeof e=="function"?e():H0(e)}function lvr(e){return e?.replace(/\/$/,"")}var cvr={},bze=y6({"../../../node_modules/.pnpm/@vercel+oidc@3.0.5/node_modules/@vercel/oidc/dist/get-context.js"(e,t){var r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,o=(f,m)=>{for(var g in m)r(f,g,{get:m[g],enumerable:!0})},a=(f,m,g,v)=>{if(m&&typeof m=="object"||typeof m=="function")for(let b of i(m))!s.call(f,b)&&b!==g&&r(f,b,{get:()=>m[b],enumerable:!(v=n(m,b))||v.enumerable});return f},l=f=>a(r({},"__esModule",{value:!0}),f),c={};o(c,{SYMBOL_FOR_REQ_CONTEXT:()=>u,getContext:()=>d}),t.exports=l(c);var u=Symbol.for("@vercel/request-context");function d(){return globalThis[u]?.get?.()??{}}}}),uvr=y6({"../../../node_modules/.pnpm/@vercel+oidc@3.0.5/node_modules/@vercel/oidc/dist/get-vercel-oidc-token.js"(e,t){var r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,o=(g,v)=>{for(var b in v)r(g,b,{get:v[b],enumerable:!0})},a=(g,v,b,w)=>{if(v&&typeof v=="object"||typeof v=="function")for(let S of i(v))!s.call(g,S)&&S!==b&&r(g,S,{get:()=>v[S],enumerable:!(w=n(v,S))||w.enumerable});return g},l=g=>a(r({},"__esModule",{value:!0}),g),c={};o(c,{getVercelOidcToken:()=>f,getVercelOidcTokenSync:()=>m}),t.exports=l(c);var u=bze(),d=Fgr();async function f(){let g="",v;try{g=m()}catch(b){v=b}try{const[{getTokenPayload:b,isExpired:w},{refreshToken:S}]=await Promise.all([await G(()=>import("./token-util-NEHG7TUY-JRJTGTAB-DXHBOKC_.js"),__vite__mapDeps([97,98,95]),import.meta.url),await G(()=>import("./token-6GSAFR2W-SPYPLMBM-CRQGKrUz.js"),__vite__mapDeps([99,98,95]),import.meta.url)]);(!g||w(b(g)))&&(await S(),g=m())}catch(b){throw v?.message&&b instanceof Error&&(b.message=`${v.message}
|
|
459
|
+
]`;continue}s+=i[c],i[c]==="\\"?o=!0:a&&i[c]==="]"?a=!1:!a&&i[c]==="["&&(a=!0)}return s}function vze(e,t){var r,n,i,s,o,a;const l={type:"object",additionalProperties:(r=Fn(e.valueType._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]}))!=null?r:t.allowedAdditionalProperties};if(((n=e.keyType)==null?void 0:n._def.typeName)===re.ZodString&&((i=e.keyType._def.checks)!=null&&i.length)){const{type:c,...u}=yze(e.keyType._def,t);return{...l,propertyNames:u}}else{if(((s=e.keyType)==null?void 0:s._def.typeName)===re.ZodEnum)return{...l,propertyNames:{enum:e.keyType._def.values}};if(((o=e.keyType)==null?void 0:o._def.typeName)===re.ZodBranded&&e.keyType._def.type._def.typeName===re.ZodString&&((a=e.keyType._def.type._def.checks)!=null&&a.length)){const{type:c,...u}=mze(e.keyType._def,t);return{...l,propertyNames:u}}}return l}function $yr(e,t){if(t.mapStrategy==="record")return vze(e,t);const r=Fn(e.keyType._def,{...t,currentPath:[...t.currentPath,"items","items","0"]})||mc(),n=Fn(e.valueType._def,{...t,currentPath:[...t.currentPath,"items","items","1"]})||mc();return{type:"array",maxItems:125,items:{type:"array",items:[r,n],minItems:2,maxItems:2}}}function Iyr(e){const t=e.values,n=Object.keys(e.values).filter(s=>typeof t[t[s]]!="number").map(s=>t[s]),i=Array.from(new Set(n.map(s=>typeof s)));return{type:i.length===1?i[0]==="string"?"string":"number":["string","number"],enum:n}}function Nyr(){return{not:mc()}}function Ryr(){return{type:"null"}}var mZ={ZodString:"string",ZodNumber:"number",ZodBigInt:"integer",ZodBoolean:"boolean",ZodNull:"null"};function Myr(e,t){const r=e.options instanceof Map?Array.from(e.options.values()):e.options;if(r.every(n=>n._def.typeName in mZ&&(!n._def.checks||!n._def.checks.length))){const n=r.reduce((i,s)=>{const o=mZ[s._def.typeName];return o&&!i.includes(o)?[...i,o]:i},[]);return{type:n.length>1?n:n[0]}}else if(r.every(n=>n._def.typeName==="ZodLiteral"&&!n.description)){const n=r.reduce((i,s)=>{const o=typeof s._def.value;switch(o){case"string":case"number":case"boolean":return[...i,o];case"bigint":return[...i,"integer"];case"object":if(s._def.value===null)return[...i,"null"];default:return i}},[]);if(n.length===r.length){const i=n.filter((s,o,a)=>a.indexOf(s)===o);return{type:i.length>1?i:i[0],enum:r.reduce((s,o)=>s.includes(o._def.value)?s:[...s,o._def.value],[])}}}else if(r.every(n=>n._def.typeName==="ZodEnum"))return{type:"string",enum:r.reduce((n,i)=>[...n,...i._def.values.filter(s=>!n.includes(s))],[])};return jyr(e,t)}var jyr=(e,t)=>{const r=(e.options instanceof Map?Array.from(e.options.values()):e.options).map((n,i)=>Fn(n._def,{...t,currentPath:[...t.currentPath,"anyOf",`${i}`]})).filter(n=>!!n&&(!t.strictUnions||typeof n=="object"&&Object.keys(n).length>0));return r.length?{anyOf:r}:void 0};function Fyr(e,t){if(["ZodString","ZodNumber","ZodBigInt","ZodBoolean","ZodNull"].includes(e.innerType._def.typeName)&&(!e.innerType._def.checks||!e.innerType._def.checks.length))return{type:[mZ[e.innerType._def.typeName],"null"]};const r=Fn(e.innerType._def,{...t,currentPath:[...t.currentPath,"anyOf","0"]});return r&&{anyOf:[r,{type:"null"}]}}function Lyr(e){const t={type:"number"};if(!e.checks)return t;for(const r of e.checks)switch(r.kind){case"int":t.type="integer";break;case"min":r.inclusive?t.minimum=r.value:t.exclusiveMinimum=r.value;break;case"max":r.inclusive?t.maximum=r.value:t.exclusiveMaximum=r.value;break;case"multipleOf":t.multipleOf=r.value;break}return t}function zyr(e,t){const r={type:"object",properties:{}},n=[],i=e.shape();for(const o in i){let a=i[o];if(a===void 0||a._def===void 0)continue;const l=Vyr(a),c=Fn(a._def,{...t,currentPath:[...t.currentPath,"properties",o],propertyPath:[...t.currentPath,"properties",o]});c!==void 0&&(r.properties[o]=c,l||n.push(o))}n.length&&(r.required=n);const s=Byr(e,t);return s!==void 0&&(r.additionalProperties=s),r}function Byr(e,t){if(e.catchall._def.typeName!=="ZodNever")return Fn(e.catchall._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]});switch(e.unknownKeys){case"passthrough":return t.allowedAdditionalProperties;case"strict":return t.rejectedAdditionalProperties;case"strip":return t.removeAdditionalStrategy==="strict"?t.allowedAdditionalProperties:t.rejectedAdditionalProperties}}function Vyr(e){try{return e.isOptional()}catch{return!0}}var Uyr=(e,t)=>{var r;if(t.currentPath.toString()===((r=t.propertyPath)==null?void 0:r.toString()))return Fn(e.innerType._def,t);const n=Fn(e.innerType._def,{...t,currentPath:[...t.currentPath,"anyOf","1"]});return n?{anyOf:[{not:mc()},n]}:mc()},Qyr=(e,t)=>{if(t.pipeStrategy==="input")return Fn(e.in._def,t);if(t.pipeStrategy==="output")return Fn(e.out._def,t);const r=Fn(e.in._def,{...t,currentPath:[...t.currentPath,"allOf","0"]}),n=Fn(e.out._def,{...t,currentPath:[...t.currentPath,"allOf",r?"1":"0"]});return{allOf:[r,n].filter(i=>i!==void 0)}};function Zyr(e,t){return Fn(e.type._def,t)}function qyr(e,t){const n={type:"array",uniqueItems:!0,items:Fn(e.valueType._def,{...t,currentPath:[...t.currentPath,"items"]})};return e.minSize&&(n.minItems=e.minSize.value),e.maxSize&&(n.maxItems=e.maxSize.value),n}function Hyr(e,t){return e.rest?{type:"array",minItems:e.items.length,items:e.items.map((r,n)=>Fn(r._def,{...t,currentPath:[...t.currentPath,"items",`${n}`]})).reduce((r,n)=>n===void 0?r:[...r,n],[]),additionalItems:Fn(e.rest._def,{...t,currentPath:[...t.currentPath,"additionalItems"]})}:{type:"array",minItems:e.items.length,maxItems:e.items.length,items:e.items.map((r,n)=>Fn(r._def,{...t,currentPath:[...t.currentPath,"items",`${n}`]})).reduce((r,n)=>n===void 0?r:[...r,n],[])}}function Wyr(){return{not:mc()}}function Gyr(){return mc()}var Xyr=(e,t)=>Fn(e.innerType._def,t),Yyr=(e,t,r)=>{switch(t){case re.ZodString:return yze(e,r);case re.ZodNumber:return Lyr(e);case re.ZodObject:return zyr(e,r);case re.ZodBigInt:return xyr(e);case re.ZodBoolean:return wyr();case re.ZodDate:return gze(e,r);case re.ZodUndefined:return Wyr();case re.ZodNull:return Ryr();case re.ZodArray:return byr(e,r);case re.ZodUnion:case re.ZodDiscriminatedUnion:return Myr(e,r);case re.ZodIntersection:return Tyr(e,r);case re.ZodTuple:return Hyr(e,r);case re.ZodRecord:return vze(e,r);case re.ZodLiteral:return Dyr(e);case re.ZodEnum:return Eyr(e);case re.ZodNativeEnum:return Iyr(e);case re.ZodNullable:return Fyr(e,r);case re.ZodOptional:return Uyr(e,r);case re.ZodMap:return $yr(e,r);case re.ZodSet:return qyr(e,r);case re.ZodLazy:return()=>e.getter()._def;case re.ZodPromise:return Zyr(e,r);case re.ZodNaN:case re.ZodNever:return Nyr();case re.ZodEffects:return kyr(e,r);case re.ZodAny:return mc();case re.ZodUnknown:return Gyr();case re.ZodDefault:return _yr(e,r);case re.ZodBranded:return mze(e,r);case re.ZodReadonly:return Xyr(e,r);case re.ZodCatch:return Syr(e,r);case re.ZodPipeline:return Qyr(e,r);case re.ZodFunction:case re.ZodVoid:case re.ZodSymbol:return;default:return(n=>{})()}};function Fn(e,t,r=!1){var n;const i=t.seen.get(e);if(t.override){const l=(n=t.override)==null?void 0:n.call(t,e,t,i,r);if(l!==yyr)return l}if(i&&!r){const l=Jyr(i,t);if(l!==void 0)return l}const s={def:e,path:t.currentPath,jsonSchema:void 0};t.seen.set(e,s);const o=Yyr(e,e.typeName,t),a=typeof o=="function"?Fn(o(),t):o;if(a&&Kyr(e,t,a),t.postProcess){const l=t.postProcess(a,e,t);return s.jsonSchema=a,l}return s.jsonSchema=a,a}var Jyr=(e,t)=>{switch(t.$refStrategy){case"root":return{$ref:e.path.join("/")};case"relative":return{$ref:gyr(t.currentPath,e.path)};case"none":case"seen":return e.path.length<t.currentPath.length&&e.path.every((r,n)=>t.currentPath[n]===r)?(console.warn(`Recursive reference detected at ${t.currentPath.join("/")}! Defaulting to any`),mc()):t.$refStrategy==="seen"?mc():void 0}},Kyr=(e,t,r)=>(e.description&&(r.description=e.description),r),evr=e=>{const t=vyr(e),r=t.name!==void 0?[...t.basePath,t.definitionPath,t.name]:t.basePath;return{...t,currentPath:r,propertyPath:void 0,seen:new Map(Object.entries(t.definitions).map(([n,i])=>[i._def,{def:i._def,path:[...t.basePath,t.definitionPath,n],jsonSchema:void 0}]))}},tvr=(e,t)=>{var r;const n=evr(t);let i=typeof t=="object"&&t.definitions?Object.entries(t.definitions).reduce((c,[u,d])=>{var f;return{...c,[u]:(f=Fn(d._def,{...n,currentPath:[...n.basePath,n.definitionPath,u]},!0))!=null?f:mc()}},{}):void 0;const s=typeof t=="string"?t:t?.nameStrategy==="title"?void 0:t?.name,o=(r=Fn(e._def,s===void 0?n:{...n,currentPath:[...n.basePath,n.definitionPath,s]},!1))!=null?r:mc(),a=typeof t=="object"&&t.name!==void 0&&t.nameStrategy==="title"?t.name:void 0;a!==void 0&&(o.title=a);const l=s===void 0?i?{...o,[n.definitionPath]:i}:o:{$ref:[...n.$refStrategy==="relative"?[]:n.basePath,n.definitionPath,s].join("/"),[n.definitionPath]:{...i,[s]:o}};return l.$schema="http://json-schema.org/draft-07/schema#",l},rvr=tvr;function nvr(e,t){var r;const n=(r=void 0)!=null?r:!1;return XK(()=>rvr(e,{$refStrategy:n?"root":"none"}),{validate:async i=>{const s=await e.safeParseAsync(i);return s.success?{success:!0,value:s.data}:{success:!1,error:s.error}}})}function ivr(e,t){var r;const n=(r=void 0)!=null?r:!1;return XK(()=>QIe(e,{target:"draft-7",io:"output",reused:n?"ref":"inline"}),{validate:async i=>{const s=await IX(e,i);return s.success?{success:!0,value:s.data}:{success:!1,error:s.error}}})}function svr(e){return"_zod"in e}function H0(e,t){return svr(e)?ivr(e):nvr(e)}var gZ=Symbol.for("vercel.ai.schema");function XK(e,{validate:t}={}){return{[gZ]:!0,_type:void 0,[o4]:!0,get jsonSchema(){return typeof e=="function"&&(e=e()),e},validate:t}}function ovr(e){return typeof e=="object"&&e!==null&&gZ in e&&e[gZ]===!0&&"jsonSchema"in e&&"validate"in e}function avr(e){return e==null?XK({properties:{},additionalProperties:!1}):ovr(e)?e:typeof e=="function"?e():H0(e)}function lvr(e){return e?.replace(/\/$/,"")}var cvr={},bze=y6({"../../../node_modules/.pnpm/@vercel+oidc@3.0.5/node_modules/@vercel/oidc/dist/get-context.js"(e,t){var r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,o=(f,m)=>{for(var g in m)r(f,g,{get:m[g],enumerable:!0})},a=(f,m,g,v)=>{if(m&&typeof m=="object"||typeof m=="function")for(let b of i(m))!s.call(f,b)&&b!==g&&r(f,b,{get:()=>m[b],enumerable:!(v=n(m,b))||v.enumerable});return f},l=f=>a(r({},"__esModule",{value:!0}),f),c={};o(c,{SYMBOL_FOR_REQ_CONTEXT:()=>u,getContext:()=>d}),t.exports=l(c);var u=Symbol.for("@vercel/request-context");function d(){return globalThis[u]?.get?.()??{}}}}),uvr=y6({"../../../node_modules/.pnpm/@vercel+oidc@3.0.5/node_modules/@vercel/oidc/dist/get-vercel-oidc-token.js"(e,t){var r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,o=(g,v)=>{for(var b in v)r(g,b,{get:v[b],enumerable:!0})},a=(g,v,b,w)=>{if(v&&typeof v=="object"||typeof v=="function")for(let S of i(v))!s.call(g,S)&&S!==b&&r(g,S,{get:()=>v[S],enumerable:!(w=n(v,S))||w.enumerable});return g},l=g=>a(r({},"__esModule",{value:!0}),g),c={};o(c,{getVercelOidcToken:()=>f,getVercelOidcTokenSync:()=>m}),t.exports=l(c);var u=bze(),d=Fgr();async function f(){let g="",v;try{g=m()}catch(b){v=b}try{const[{getTokenPayload:b,isExpired:w},{refreshToken:S}]=await Promise.all([await G(()=>import("./token-util-NEHG7TUY-JRJTGTAB-7lMdCBB2.js"),__vite__mapDeps([97,98,95]),import.meta.url),await G(()=>import("./token-6GSAFR2W-SPYPLMBM-ykq54GDP.js"),__vite__mapDeps([99,98,95]),import.meta.url)]);(!g||w(b(g)))&&(await S(),g=m())}catch(b){throw v?.message&&b instanceof Error&&(b.message=`${v.message}
|
|
460
460
|
${b.message}`),new d.VercelOidcTokenError("Failed to refresh OIDC token",b)}return g}function m(){const g=(0,u.getContext)().headers?.["x-vercel-oidc-token"]??cvr.VERCEL_OIDC_TOKEN;if(!g)throw new Error("The 'x-vercel-oidc-token' header is missing from the request. Do you have the OIDC option enabled in the Vercel project settings?");return g}}}),xze=y6({"../../../node_modules/.pnpm/@vercel+oidc@3.0.5/node_modules/@vercel/oidc/dist/index.js"(e,t){var r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,o=(f,m)=>{for(var g in m)r(f,g,{get:m[g],enumerable:!0})},a=(f,m,g,v)=>{if(m&&typeof m=="object"||typeof m=="function")for(let b of i(m))!s.call(f,b)&&b!==g&&r(f,b,{get:()=>m[b],enumerable:!(v=n(m,b))||v.enumerable});return f},l=f=>a(r({},"__esModule",{value:!0}),f),c={};o(c,{getContext:()=>d.getContext,getVercelOidcToken:()=>u.getVercelOidcToken,getVercelOidcTokenSync:()=>u.getVercelOidcTokenSync}),t.exports=l(c);var u=uvr(),d=bze()}}),dvr=qLe(xze()),fvr=qLe(xze()),pvr="vercel.ai.gateway.error",cL=Symbol.for(pvr),rve,nve,gc=class wze extends(nve=Error,rve=cL,nve){constructor({message:t,statusCode:r=500,cause:n}){super(t),this[rve]=!0,this.statusCode=r,this.cause=n}static isInstance(t){return wze.hasMarker(t)}static hasMarker(t){return typeof t=="object"&&t!==null&&cL in t&&t[cL]===!0}},Sze="GatewayAuthenticationError",hvr=`vercel.ai.gateway.error.${Sze}`,ive=Symbol.for(hvr),sve,ove,Oze=class _ze extends(ove=gc,sve=ive,ove){constructor({message:t="Authentication failed",statusCode:r=401,cause:n}={}){super({message:t,statusCode:r,cause:n}),this[sve]=!0,this.name=Sze,this.type="authentication_error"}static isInstance(t){return gc.hasMarker(t)&&ive in t}static createContextualError({apiKeyProvided:t,oidcTokenProvided:r,message:n="Authentication failed",statusCode:i=401,cause:s}){let o;return t?o=`AI Gateway authentication failed: Invalid API key.
|
|
461
461
|
|
|
462
462
|
Create a new API key: https://vercel.com/d?to=%2F%5Bteam%5D%2F%7E%2Fai%2Fapi-keys
|
|
@@ -545,13 +545,13 @@ ${ne.current.stack}
|
|
|
545
545
|
`+t.scrub();for(let n of t.markers)r.marks.push(n)}return this.finishLeaf(r),null}stopAt(t){if(this.stoppedAt!=null&&this.stoppedAt<t)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=t}reuseFragment(t){if(!this.fragments.moveTo(this.absoluteLineStart+t,this.absoluteLineStart)||!this.fragments.matches(this.block.hash))return!1;let r=this.fragments.takeNodes(this);return r?(this.absoluteLineStart+=r,this.lineStart=QUe(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(t=this.depth-1){return this.parser.nodeSet.types[this.stack[t].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(t){let r=bCr;if(r.end=t,t>=this.to)r.text="";else if(r.text=this.lineChunkAt(t),r.end+=r.text.length,this.ranges.length>1){let n=this.absoluteLineStart,i=this.rangeI;for(;this.ranges[i].to<r.end;){i++;let s=this.ranges[i].from,o=this.lineChunkAt(s);r.end=s+o.length,r.text=r.text.slice(0,this.ranges[i-1].to-n)+o,n=r.end-r.text.length}}return r}readLine(){let{line:t}=this,{text:r,end:n}=this.scanLine(this.absoluteLineStart);for(this.absoluteLineEnd=n,t.reset(r);t.depth<this.stack.length;t.depth++){let i=this.stack[t.depth],s=this.parser.skipContextMarkup[i.type];if(!s)throw new Error("Unhandled block context "+ot[i.type]);if(!s(i,this,t))break;t.forward()}}lineChunkAt(t){let r=this.input.chunk(t),n;if(this.input.lineChunks)n=r==`
|
|
546
546
|
`?"":r;else{let i=r.indexOf(`
|
|
547
547
|
`);n=i<0?r:r.slice(0,i)}return t+n.length>this.to?n.slice(0,this.to-t):n}prevLineEnd(){return this.atEnd?this.lineStart:this.lineStart-1}startContext(t,r,n=0){this.block=O4.create(t,n,this.lineStart+r,this.block.hash,this.lineStart+this.line.text.length),this.stack.push(this.block)}startComposite(t,r,n=0){this.startContext(this.parser.getNodeType(t),r,n)}addNode(t,r,n){typeof t=="number"&&(t=new Ur(this.parser.nodeSet.types[t],hw,hw,(n??this.prevLineEnd())-r)),this.block.addChild(t,r-this.block.from)}addElement(t){this.block.addChild(t.toTree(this.parser.nodeSet),t.from-this.block.from)}addLeafElement(t,r){this.addNode(this.buffer.writeElements(jZ(r.children,t.marks),-r.from).finish(r.type,r.to-r.from),r.from)}finishContext(){let t=this.stack.pop(),r=this.stack[this.stack.length-1];r.addChild(t.toTree(this.parser.nodeSet),t.from-r.from),this.block=r}finish(){for(;this.stack.length>1;)this.finishContext();return this.addGaps(this.block.toTree(this.parser.nodeSet,this.lineStart))}addGaps(t){return this.ranges.length>1?RUe(this.ranges,0,t.topNode,this.ranges[0].from,this.reusePlaceholders):t}finishLeaf(t){for(let n of t.parsers)if(n.finish(this,t))return;let r=jZ(this.parser.parseInline(t.content,t.start),t.marks);this.addNode(this.buffer.writeElements(r,-t.start).finish(ot.Paragraph,t.content.length),t.start)}elt(t,r,n,i){return typeof t=="string"?en(this.parser.getNodeType(t),r,n,i):new FUe(t,r)}get buffer(){return new jUe(this.parser.nodeSet)}}function RUe(e,t,r,n,i){let s=e[t].to,o=[],a=[],l=r.from+n;function c(u,d){for(;d?u>=s:u>s;){let f=e[t+1].from-s;n+=f,u+=f,t++,s=e[t].to}}for(let u=r.firstChild;u;u=u.nextSibling){c(u.from+n,!0);let d=u.from+n,f,m=i.get(u.tree);m?f=m:u.to+n>s?(f=RUe(e,t,u,n,i),c(u.to+n,!1)):f=u.toTree(),o.push(f),a.push(d-l)}return c(r.to+n,!1),new Ur(r.type,o,a,r.to+n-l,r.tree?r.tree.propValues:void 0)}class P6 extends ZN{constructor(t,r,n,i,s,o,a,l,c){super(),this.nodeSet=t,this.blockParsers=r,this.leafBlockParsers=n,this.blockNames=i,this.endLeafBlock=s,this.skipContextMarkup=o,this.inlineParsers=a,this.inlineNames=l,this.wrappers=c,this.nodeTypes=Object.create(null);for(let u of t.types)this.nodeTypes[u.name]=u.id}createParse(t,r,n){let i=new xCr(this,t,r,n);for(let s of this.wrappers)i=s(i,t,r,n);return i}configure(t){let r=RZ(t);if(!r)return this;let{nodeSet:n,skipContextMarkup:i}=this,s=this.blockParsers.slice(),o=this.leafBlockParsers.slice(),a=this.blockNames.slice(),l=this.inlineParsers.slice(),c=this.inlineNames.slice(),u=this.endLeafBlock.slice(),d=this.wrappers;if(JO(r.defineNodes)){i=Object.assign({},i);let f=n.types.slice(),m;for(let g of r.defineNodes){let{name:v,block:b,composite:w,style:S}=typeof g=="string"?{name:g}:g;if(f.some(C=>C.name==v))continue;w&&(i[f.length]=(C,T,P)=>w(T,P,C.value));let O=f.length,k=w?["Block","BlockContext"]:b?O>=ot.ATXHeading1&&O<=ot.SetextHeading2?["Block","LeafBlock","Heading"]:["Block","LeafBlock"]:void 0;f.push(Rs.define({id:O,name:v,props:k&&[[hr.group,k]]})),S&&(m||(m={}),Array.isArray(S)||S instanceof Ql?m[v]=S:Object.assign(m,S))}n=new Bw(f),m&&(n=n.extend(E0(m)))}if(JO(r.props)&&(n=n.extend(...r.props)),JO(r.remove))for(let f of r.remove){let m=this.blockNames.indexOf(f),g=this.inlineNames.indexOf(f);m>-1&&(s[m]=o[m]=void 0),g>-1&&(l[g]=void 0)}if(JO(r.parseBlock))for(let f of r.parseBlock){let m=a.indexOf(f.name);if(m>-1)s[m]=f.parse,o[m]=f.leaf;else{let g=f.before?NP(a,f.before):f.after?NP(a,f.after)+1:a.length-1;s.splice(g,0,f.parse),o.splice(g,0,f.leaf),a.splice(g,0,f.name)}f.endLeaf&&u.push(f.endLeaf)}if(JO(r.parseInline))for(let f of r.parseInline){let m=c.indexOf(f.name);if(m>-1)l[m]=f.parse;else{let g=f.before?NP(c,f.before):f.after?NP(c,f.after)+1:c.length-1;l.splice(g,0,f.parse),c.splice(g,0,f.name)}}return r.wrap&&(d=d.concat(r.wrap)),new P6(n,s,o,a,u,i,l,c,d)}getNodeType(t){let r=this.nodeTypes[t];if(r==null)throw new RangeError(`Unknown node type '${t}'`);return r}parseInline(t,r){let n=new SCr(this,t,r);e:for(let i=r;i<n.end;){let s=n.char(i);for(let o of this.inlineParsers)if(o){let a=o(n,s,i);if(a>=0){i=a;continue e}}i++}return n.resolveMarkers(0)}}function JO(e){return e!=null&&e.length>0}function RZ(e){if(!Array.isArray(e))return e;if(e.length==0)return null;let t=RZ(e[0]);if(e.length==1)return t;let r=RZ(e.slice(1));if(!r||!t)return t||r;let n=(o,a)=>(o||hw).concat(a||hw),i=t.wrap,s=r.wrap;return{props:n(t.props,r.props),defineNodes:n(t.defineNodes,r.defineNodes),parseBlock:n(t.parseBlock,r.parseBlock),parseInline:n(t.parseInline,r.parseInline),remove:n(t.remove,r.remove),wrap:i?s?(o,a,l,c)=>i(s(o,a,l,c),a,l,c):i:s}}function NP(e,t){let r=e.indexOf(t);if(r<0)throw new RangeError(`Position specified relative to unknown parser ${t}`);return r}let MUe=[Rs.none];for(let e=1,t;t=ot[e];e++)MUe[e]=Rs.define({id:e,name:t,props:e>=ot.Escape?[]:[[hr.group,e in kUe?["Block","BlockContext"]:["Block","LeafBlock"]]],top:t=="Document"});const hw=[];let jUe=class{constructor(t){this.nodeSet=t,this.content=[],this.nodes=[]}write(t,r,n,i=0){return this.content.push(t,r,n,4+i*4),this}writeElements(t,r=0){for(let n of t)n.writeTo(this,r);return this}finish(t,r){return Ur.build({buffer:this.content,nodeSet:this.nodeSet,reused:this.nodes,topID:t,length:r})}},FC=class{constructor(t,r,n,i=hw){this.type=t,this.from=r,this.to=n,this.children=i}writeTo(t,r){let n=t.content.length;t.writeElements(this.children,r),t.content.push(this.type,this.from+r,this.to+r,t.content.length+4-n)}toTree(t){return new jUe(t).writeElements(this.children,-this.from).finish(this.type,this.to-this.from)}};class FUe{constructor(t,r){this.tree=t,this.from=r}get to(){return this.from+this.tree.length}get type(){return this.tree.type.id}get children(){return hw}writeTo(t,r){t.nodes.push(this.tree),t.content.push(t.nodes.length-1,this.from+r,this.to+r,-1)}toTree(){return this.tree}}function en(e,t,r,n){return new FC(e,t,r,n)}const LUe={resolve:"Emphasis",mark:"EmphasisMark"},zUe={resolve:"Emphasis",mark:"EmphasisMark"},hx={},MZ={};class Vl{constructor(t,r,n,i){this.type=t,this.from=r,this.to=n,this.side=i}}const Q0e="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~";let LC=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\u2010-\u2027]/;try{LC=new RegExp("[\\p{S}|\\p{P}]","u")}catch{}const ML={Escape(e,t,r){if(t!=92||r==e.end-1)return-1;let n=e.char(r+1);for(let i=0;i<Q0e.length;i++)if(Q0e.charCodeAt(i)==n)return e.append(en(ot.Escape,r,r+2));return-1},Entity(e,t,r){if(t!=38)return-1;let n=/^(?:#\d+|#x[a-f\d]+|\w+);/i.exec(e.slice(r+1,r+31));return n?e.append(en(ot.Entity,r,r+1+n[0].length)):-1},InlineCode(e,t,r){if(t!=96||r&&e.char(r-1)==96)return-1;let n=r+1;for(;n<e.end&&e.char(n)==96;)n++;let i=n-r,s=0;for(;n<e.end;n++)if(e.char(n)==96){if(s++,s==i&&e.char(n+1)!=96)return e.append(en(ot.InlineCode,r,n+1,[en(ot.CodeMark,r,r+i),en(ot.CodeMark,n+1-i,n+1)]))}else s=0;return-1},HTMLTag(e,t,r){if(t!=60||r==e.end-1)return-1;let n=e.slice(r+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(n);if(i)return e.append(en(ot.Autolink,r,r+1+i[0].length,[en(ot.LinkMark,r,r+1),en(ot.URL,r+1,r+i[0].length),en(ot.LinkMark,r+i[0].length,r+1+i[0].length)]));let s=/^!--[^>](?:-[^-]|[^-])*?-->/i.exec(n);if(s)return e.append(en(ot.Comment,r,r+1+s[0].length));let o=/^\?[^]*?\?>/.exec(n);if(o)return e.append(en(ot.ProcessingInstruction,r,r+1+o[0].length));let a=/^(?:![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(n);return a?e.append(en(ot.HTMLTag,r,r+1+a[0].length)):-1},Emphasis(e,t,r){if(t!=95&&t!=42)return-1;let n=r+1;for(;e.char(n)==t;)n++;let i=e.slice(r-1,r),s=e.slice(n,n+1),o=LC.test(i),a=LC.test(s),l=/\s|^$/.test(i),c=/\s|^$/.test(s),u=!c&&(!a||l||o),d=!l&&(!o||c||a),f=u&&(t==42||!d||o),m=d&&(t==42||!u||a);return e.append(new Vl(t==95?LUe:zUe,r,n,(f?1:0)|(m?2:0)))},HardBreak(e,t,r){if(t==92&&e.char(r+1)==10)return e.append(en(ot.HardBreak,r,r+2));if(t==32){let n=r+1;for(;e.char(n)==32;)n++;if(e.char(n)==10&&n>=r+2)return e.append(en(ot.HardBreak,r,n+1))}return-1},Link(e,t,r){return t==91?e.append(new Vl(hx,r,r+1,1)):-1},Image(e,t,r){return t==33&&e.char(r+1)==91?e.append(new Vl(MZ,r,r+2,1)):-1},LinkEnd(e,t,r){if(t!=93)return-1;for(let n=e.parts.length-1;n>=0;n--){let i=e.parts[n];if(i instanceof Vl&&(i.type==hx||i.type==MZ)){if(!i.side||e.skipSpace(i.to)==r&&!/[(\[]/.test(e.slice(r+1,r+2)))return e.parts[n]=null,-1;let s=e.takeContent(n),o=e.parts[n]=wCr(e,s,i.type==hx?ot.Link:ot.Image,i.from,r+1);if(i.type==hx)for(let a=0;a<n;a++){let l=e.parts[a];l instanceof Vl&&l.type==hx&&(l.side=0)}return o.to}}return-1}};function wCr(e,t,r,n,i){let{text:s}=e,o=e.char(i),a=i;if(t.unshift(en(ot.LinkMark,n,n+(r==ot.Image?2:1))),t.push(en(ot.LinkMark,i-1,i)),o==40){let l=e.skipSpace(i+1),c=BUe(s,l-e.offset,e.offset),u;c&&(l=e.skipSpace(c.to),l!=c.to&&(u=VUe(s,l-e.offset,e.offset),u&&(l=e.skipSpace(u.to)))),e.char(l)==41&&(t.push(en(ot.LinkMark,i,i+1)),a=l+1,c&&t.push(c),u&&t.push(u),t.push(en(ot.LinkMark,l,a)))}else if(o==91){let l=UUe(s,i-e.offset,e.offset,!1);l&&(t.push(l),a=l.to)}return en(r,n,a,t)}function BUe(e,t,r){if(e.charCodeAt(t)==60){for(let i=t+1;i<e.length;i++){let s=e.charCodeAt(i);if(s==62)return en(ot.URL,t+r,i+1+r);if(s==60||s==10)return!1}return null}else{let i=0,s=t;for(let o=!1;s<e.length;s++){let a=e.charCodeAt(s);if(bu(a))break;if(o)o=!1;else if(a==40)i++;else if(a==41){if(!i)break;i--}else a==92&&(o=!0)}return s>t?en(ot.URL,t+r,s+r):s==e.length?null:!1}}function VUe(e,t,r){let n=e.charCodeAt(t);if(n!=39&&n!=34&&n!=40)return!1;let i=n==40?41:n;for(let s=t+1,o=!1;s<e.length;s++){let a=e.charCodeAt(s);if(o)o=!1;else{if(a==i)return en(ot.LinkTitle,t+r,s+1+r);a==92&&(o=!0)}}return null}function UUe(e,t,r,n){for(let i=!1,s=t+1,o=Math.min(e.length,s+999);s<o;s++){let a=e.charCodeAt(s);if(i)i=!1;else{if(a==93)return n?!1:en(ot.LinkLabel,t+r,s+1+r);if(n&&!bu(a)&&(n=!1),a==91)return!1;a==92&&(i=!0)}}return null}class SCr{constructor(t,r,n){this.parser=t,this.text=r,this.offset=n,this.parts=[]}char(t){return t>=this.end?-1:this.text.charCodeAt(t-this.offset)}get end(){return this.offset+this.text.length}slice(t,r){return this.text.slice(t-this.offset,r-this.offset)}append(t){return this.parts.push(t),t.to}addDelimiter(t,r,n,i,s){return this.append(new Vl(t,r,n,(i?1:0)|(s?2:0)))}get hasOpenLink(){for(let t=this.parts.length-1;t>=0;t--){let r=this.parts[t];if(r instanceof Vl&&(r.type==hx||r.type==MZ))return!0}return!1}addElement(t){return this.append(t)}resolveMarkers(t){for(let n=t;n<this.parts.length;n++){let i=this.parts[n];if(!(i instanceof Vl&&i.type.resolve&&i.side&2))continue;let s=i.type==LUe||i.type==zUe,o=i.to-i.from,a,l=n-1;for(;l>=t;l--){let v=this.parts[l];if(v instanceof Vl&&v.side&1&&v.type==i.type&&!(s&&(i.side&1||v.side&2)&&(v.to-v.from+o)%3==0&&((v.to-v.from)%3||o%3))){a=v;break}}if(!a)continue;let c=i.type.resolve,u=[],d=a.from,f=i.to;if(s){let v=Math.min(2,a.to-a.from,o);d=a.to-v,f=i.from+v,c=v==1?"Emphasis":"StrongEmphasis"}a.type.mark&&u.push(this.elt(a.type.mark,d,a.to));for(let v=l+1;v<n;v++)this.parts[v]instanceof FC&&u.push(this.parts[v]),this.parts[v]=null;i.type.mark&&u.push(this.elt(i.type.mark,i.from,f));let m=this.elt(c,d,f,u);this.parts[l]=s&&a.from!=d?new Vl(a.type,a.from,d,a.side):null,(this.parts[n]=s&&i.to!=f?new Vl(i.type,f,i.to,i.side):null)?this.parts.splice(n,0,m):this.parts[n]=m}let r=[];for(let n=t;n<this.parts.length;n++){let i=this.parts[n];i instanceof FC&&r.push(i)}return r}findOpeningDelimiter(t){for(let r=this.parts.length-1;r>=0;r--){let n=this.parts[r];if(n instanceof Vl&&n.type==t&&n.side&1)return r}return null}takeContent(t){let r=this.resolveMarkers(t);return this.parts.length=t,r}getDelimiterAt(t){let r=this.parts[t];return r instanceof Vl?r:null}skipSpace(t){return bk(this.text,t-this.offset)+this.offset}elt(t,r,n,i){return typeof t=="string"?en(this.parser.getNodeType(t),r,n,i):new FUe(t,r)}}function jZ(e,t){if(!t.length)return e;if(!e.length)return t;let r=e.slice(),n=0;for(let i of t){for(;n<r.length&&r[n].to<i.to;)n++;if(n<r.length&&r[n].from<i.from){let s=r[n];s instanceof FC&&(r[n]=new FC(s.type,s.from,s.to,jZ(s.children,[i])))}else r.splice(n++,0,i)}return r}const OCr=[ot.CodeBlock,ot.ListItem,ot.OrderedList,ot.BulletList];class _Cr{constructor(t,r){this.fragments=t,this.input=r,this.i=0,this.fragment=null,this.fragmentEnd=-1,this.cursor=null,t.length&&(this.fragment=t[this.i++])}nextFragment(){this.fragment=this.i<this.fragments.length?this.fragments[this.i++]:null,this.cursor=null,this.fragmentEnd=-1}moveTo(t,r){for(;this.fragment&&this.fragment.to<=t;)this.nextFragment();if(!this.fragment||this.fragment.from>(t?t-1:0))return!1;if(this.fragmentEnd<0){let s=this.fragment.to;for(;s>0&&this.input.read(s-1,s)!=`
|
|
548
|
-
`;)s--;this.fragmentEnd=s?s-1:0}let n=this.cursor;n||(n=this.cursor=this.fragment.tree.cursor(),n.firstChild());let i=t+this.fragment.offset;for(;n.to<=i;)if(!n.parent())return!1;for(;;){if(n.from>=i)return this.fragment.from<=r;if(!n.childAfter(i))return!1}}matches(t){let r=this.cursor.tree;return r&&r.prop(hr.contextHash)==t}takeNodes(t){let r=this.cursor,n=this.fragment.offset,i=this.fragmentEnd-(this.fragment.openEnd?1:0),s=t.absoluteLineStart,o=s,a=t.block.children.length,l=o,c=a;for(;;){if(r.to-n>i){if(r.type.isAnonymous&&r.firstChild())continue;break}let u=QUe(r.from-n,t.ranges);if(r.to-n<=t.ranges[t.rangeI].to)t.addNode(r.tree,u);else{let d=new Ur(t.parser.nodeSet.types[ot.Paragraph],[],[],0,t.block.hashProp);t.reusePlaceholders.set(d,r.tree),t.addNode(d,u)}if(r.type.is("Block")&&(OCr.indexOf(r.type.id)<0?(o=r.to-n,a=t.block.children.length):(o=l,a=c,l=r.to-n,c=t.block.children.length)),!r.nextSibling())break}for(;t.block.children.length>a;)t.block.children.pop(),t.block.positions.pop();return o-s}}function QUe(e,t){let r=e;for(let n=1;n<t.length;n++){let i=t[n-1].to,s=t[n].from;i<e&&(r-=s-i)}return r}const kCr=E0({"Blockquote/...":Y.quote,HorizontalRule:Y.contentSeparator,"ATXHeading1/... SetextHeading1/...":Y.heading1,"ATXHeading2/... SetextHeading2/...":Y.heading2,"ATXHeading3/...":Y.heading3,"ATXHeading4/...":Y.heading4,"ATXHeading5/...":Y.heading5,"ATXHeading6/...":Y.heading6,"Comment CommentBlock":Y.comment,Escape:Y.escape,Entity:Y.character,"Emphasis/...":Y.emphasis,"StrongEmphasis/...":Y.strong,"Link/... Image/...":Y.link,"OrderedList/... BulletList/...":Y.list,"BlockQuote/...":Y.quote,"InlineCode CodeText":Y.monospace,"URL Autolink":Y.url,"HeaderMark HardBreak QuoteMark ListMark LinkMark EmphasisMark CodeMark":Y.processingInstruction,"CodeInfo LinkLabel":Y.labelName,LinkTitle:Y.string,Paragraph:Y.content}),ECr=new P6(new Bw(MUe).extend(kCr),Object.keys(IP).map(e=>IP[e]),Object.keys(IP).map(e=>NUe[e]),Object.keys(IP),vCr,kUe,Object.keys(ML).map(e=>ML[e]),Object.keys(ML),[]);function CCr(e,t,r){let n=[];for(let i=e.firstChild,s=t;;i=i.nextSibling){let o=i?i.from:r;if(o>s&&n.push({from:s,to:o}),!i)break;s=i.to}return n}function TCr(e){let{codeParser:t,htmlParser:r}=e;return{wrap:qDe((i,s)=>{let o=i.type.id;if(t&&(o==ot.CodeBlock||o==ot.FencedCode)){let a="";if(o==ot.FencedCode){let c=i.node.getChild(ot.CodeInfo);c&&(a=s.read(c.from,c.to))}let l=t(a);if(l)return{parser:l,overlay:c=>c.type.id==ot.CodeText}}else if(r&&(o==ot.HTMLBlock||o==ot.HTMLTag||o==ot.CommentBlock))return{parser:r,overlay:CCr(i.node,i.from,i.to)};return null})}}const DCr={resolve:"Strikethrough",mark:"StrikethroughMark"},ACr={defineNodes:[{name:"Strikethrough",style:{"Strikethrough/...":Y.strikethrough}},{name:"StrikethroughMark",style:Y.processingInstruction}],parseInline:[{name:"Strikethrough",parse(e,t,r){if(t!=126||e.char(r+1)!=126||e.char(r+2)==126)return-1;let n=e.slice(r-1,r),i=e.slice(r+2,r+3),s=/\s|^$/.test(n),o=/\s|^$/.test(i),a=LC.test(n),l=LC.test(i);return e.addDelimiter(DCr,r,r+2,!o&&(!l||s||a),!s&&(!a||o||l))},after:"Emphasis"}]};function xk(e,t,r=0,n,i=0){let s=0,o=!0,a=-1,l=-1,c=!1,u=()=>{n.push(e.elt("TableCell",i+a,i+l,e.parser.parseInline(t.slice(a,l),i+a)))};for(let d=r;d<t.length;d++){let f=t.charCodeAt(d);f==124&&!c?((!o||a>-1)&&s++,o=!1,n&&(a>-1&&u(),n.push(e.elt("TableDelimiter",d+i,d+i+1))),a=l=-1):(c||f!=32&&f!=9)&&(a<0&&(a=d),l=d+1),c=!c&&f==92}return a>-1&&(s++,n&&u()),s}function Z0e(e,t){for(let r=t;r<e.length;r++){let n=e.charCodeAt(r);if(n==124)return!0;n==92&&r++}return!1}const ZUe=/^\|?(\s*:?-+:?\s*\|)+(\s*:?-+:?\s*)?$/;class q0e{constructor(){this.rows=null}nextLine(t,r,n){if(this.rows==null){this.rows=!1;let i;if((r.next==45||r.next==58||r.next==124)&&ZUe.test(i=r.text.slice(r.pos))){let s=[];xk(t,n.content,0,s,n.start)==xk(t,i,r.pos)&&(this.rows=[t.elt("TableHeader",n.start,n.start+n.content.length,s),t.elt("TableDelimiter",t.lineStart+r.pos,t.lineStart+r.text.length)])}}else if(this.rows){let i=[];xk(t,r.text,r.pos,i,t.lineStart),this.rows.push(t.elt("TableRow",t.lineStart+r.pos,t.lineStart+r.text.length,i))}return!1}finish(t,r){return this.rows?(t.addLeafElement(r,t.elt("Table",r.start,r.start+r.content.length,this.rows)),!0):!1}}const PCr={defineNodes:[{name:"Table",block:!0},{name:"TableHeader",style:{"TableHeader/...":Y.heading}},"TableRow",{name:"TableCell",style:Y.content},{name:"TableDelimiter",style:Y.processingInstruction}],parseBlock:[{name:"Table",leaf(e,t){return Z0e(t.content,0)?new q0e:null},endLeaf(e,t,r){if(r.parsers.some(i=>i instanceof q0e)||!Z0e(t.text,t.basePos))return!1;let n=e.peekLine();return ZUe.test(n)&&xk(e,t.text,t.basePos)==xk(e,n,t.basePos)},before:"SetextHeading"}]};class $Cr{nextLine(){return!1}finish(t,r){return t.addLeafElement(r,t.elt("Task",r.start,r.start+r.content.length,[t.elt("TaskMarker",r.start,r.start+3),...t.parser.parseInline(r.content.slice(3),r.start+3)])),!0}}const ICr={defineNodes:[{name:"Task",block:!0,style:Y.list},{name:"TaskMarker",style:Y.atom}],parseBlock:[{name:"TaskList",leaf(e,t){return/^\[[ xX]\][ \t]/.test(t.content)&&e.parentType().name=="ListItem"?new $Cr:null},after:"SetextHeading"}]},H0e=/(www\.)|(https?:\/\/)|([\w.+-]{1,100}@)|(mailto:|xmpp:)/gy,W0e=/[\w-]+(\.[\w-]+)+(\/[^\s<]*)?/gy,NCr=/[\w-]+\.[\w-]+($|\/)/,G0e=/[\w.+-]+@[\w-]+(\.[\w.-]+)+/gy,X0e=/\/[a-zA-Z\d@.]+/gy;function Y0e(e,t,r,n){let i=0;for(let s=t;s<r;s++)e[s]==n&&i++;return i}function RCr(e,t){W0e.lastIndex=t;let r=W0e.exec(e);if(!r||NCr.exec(r[0])[0].indexOf("_")>-1)return-1;let n=t+r[0].length;for(;;){let i=e[n-1],s;if(/[?!.,:*_~]/.test(i)||i==")"&&Y0e(e,t,n,")")>Y0e(e,t,n,"("))n--;else if(i==";"&&(s=/&(?:#\d+|#x[a-f\d]+|\w+);$/.exec(e.slice(t,n))))n=t+s.index;else break}return n}function J0e(e,t){G0e.lastIndex=t;let r=G0e.exec(e);if(!r)return-1;let n=r[0][r[0].length-1];return n=="_"||n=="-"?-1:t+r[0].length-(n=="."?1:0)}const MCr={parseInline:[{name:"Autolink",parse(e,t,r){let n=r-e.offset;if(n&&/\w/.test(e.text[n-1]))return-1;H0e.lastIndex=n;let i=H0e.exec(e.text),s=-1;if(!i)return-1;if(i[1]||i[2]){if(s=RCr(e.text,n+i[0].length),s>-1&&e.hasOpenLink){let o=/([^\[\]]|\[[^\]]*\])*/.exec(e.text.slice(n,s));s=n+o[0].length}}else i[3]?s=J0e(e.text,n):(s=J0e(e.text,n+i[0].length),s>-1&&i[0]=="xmpp:"&&(X0e.lastIndex=s,i=X0e.exec(e.text),i&&(s=i.index+i[0].length)));return s<0?-1:(e.addElement(e.elt("URL",r,s+e.offset)),s+e.offset)}}]},jCr=[PCr,ICr,ACr,MCr];function qUe(e,t,r){return(n,i,s)=>{if(i!=e||n.char(s+1)==e)return-1;let o=[n.elt(r,s,s+1)];for(let a=s+1;a<n.end;a++){let l=n.char(a);if(l==e)return n.addElement(n.elt(t,s,a+1,o.concat(n.elt(r,a,a+1))));if(l==92&&o.push(n.elt("Escape",a,a+++2)),bu(l))break}return-1}}const FCr={defineNodes:[{name:"Superscript",style:Y.special(Y.content)},{name:"SuperscriptMark",style:Y.processingInstruction}],parseInline:[{name:"Superscript",parse:qUe(94,"Superscript","SuperscriptMark")}]},LCr={defineNodes:[{name:"Subscript",style:Y.special(Y.content)},{name:"SubscriptMark",style:Y.processingInstruction}],parseInline:[{name:"Subscript",parse:qUe(126,"Subscript","SubscriptMark")}]},zCr={defineNodes:[{name:"Emoji",style:Y.character}],parseInline:[{name:"Emoji",parse(e,t,r){let n;return t!=58||!(n=/^[a-zA-Z_0-9]+:/.exec(e.slice(r+1,e.end)))?-1:e.addElement(e.elt("Emoji",r,r+1+n[0].length))}}]},BCr=55,VCr=1,UCr=56,QCr=2,ZCr=57,qCr=3,K0e=4,HCr=5,zee=6,HUe=7,WUe=8,GUe=9,XUe=10,WCr=11,GCr=12,XCr=13,jL=58,YCr=14,JCr=15,ebe=59,YUe=21,KCr=23,JUe=24,eTr=25,FZ=27,KUe=28,tTr=29,rTr=32,nTr=35,iTr=37,sTr=38,oTr=0,aTr=1,lTr={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},cTr={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},tbe={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 uTr(e){return e==45||e==46||e==58||e>=65&&e<=90||e==95||e>=97&&e<=122||e>=161}let rbe=null,nbe=null,ibe=0;function LZ(e,t){let r=e.pos+t;if(ibe==r&&nbe==e)return rbe;let n=e.peek(t),i="";for(;uTr(n);)i+=String.fromCharCode(n),n=e.peek(++t);return nbe=e,ibe=r,rbe=i?i.toLowerCase():n==dTr||n==fTr?void 0:null}const eQe=60,_4=62,Bee=47,dTr=63,fTr=33,pTr=45;function sbe(e,t){this.name=e,this.parent=t}const hTr=[zee,XUe,HUe,WUe,GUe],mTr=new WDe({start:null,shift(e,t,r,n){return hTr.indexOf(t)>-1?new sbe(LZ(n,1)||"",e):e},reduce(e,t){return t==YUe&&e?e.parent:e},reuse(e,t,r,n){let i=t.type.id;return i==zee||i==iTr?new sbe(LZ(n,1)||"",e):e},strict:!1}),gTr=new bc((e,t)=>{if(e.next!=eQe){e.next<0&&t.context&&e.acceptToken(jL);return}e.advance();let r=e.next==Bee;r&&e.advance();let n=LZ(e,0);if(n===void 0)return;if(!n)return e.acceptToken(r?JCr:YCr);let i=t.context?t.context.name:null;if(r){if(n==i)return e.acceptToken(WCr);if(i&&cTr[i])return e.acceptToken(jL,-2);if(t.dialectEnabled(oTr))return e.acceptToken(GCr);for(let s=t.context;s;s=s.parent)if(s.name==n)return;e.acceptToken(XCr)}else{if(n=="script")return e.acceptToken(HUe);if(n=="style")return e.acceptToken(WUe);if(n=="textarea")return e.acceptToken(GUe);if(lTr.hasOwnProperty(n))return e.acceptToken(XUe);i&&tbe[i]&&tbe[i][n]?e.acceptToken(jL,-1):e.acceptToken(zee)}},{contextual:!0}),yTr=new bc(e=>{for(let t=0,r=0;;r++){if(e.next<0){r&&e.acceptToken(ebe);break}if(e.next==pTr)t++;else if(e.next==_4&&t>=2){r>=3&&e.acceptToken(ebe,-2);break}else t=0;e.advance()}});function vTr(e){for(;e;e=e.parent)if(e.name=="svg"||e.name=="math")return!0;return!1}const bTr=new bc((e,t)=>{if(e.next==Bee&&e.peek(1)==_4){let r=t.dialectEnabled(aTr)||vTr(t.context);e.acceptToken(r?HCr:K0e,2)}else e.next==_4&&e.acceptToken(K0e,1)});function Vee(e,t,r){let n=2+e.length;return new bc(i=>{for(let s=0,o=0,a=0;;a++){if(i.next<0){a&&i.acceptToken(t);break}if(s==0&&i.next==eQe||s==1&&i.next==Bee||s>=2&&s<n&&i.next==e.charCodeAt(s-2))s++,o++;else if(s==n&&i.next==_4){a>o?i.acceptToken(t,-o):i.acceptToken(r,-(o-2));break}else if((i.next==10||i.next==13)&&a){i.acceptToken(t,1);break}else s=o=0;i.advance()}})}const xTr=Vee("script",BCr,VCr),wTr=Vee("style",UCr,QCr),STr=Vee("textarea",ZCr,qCr),OTr=E0({"Text RawText IncompleteTag IncompleteCloseTag":Y.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":Y.angleBracket,TagName:Y.tagName,"MismatchedCloseTag/TagName":[Y.tagName,Y.invalid],AttributeName:Y.attributeName,"AttributeValue UnquotedAttributeValue":Y.attributeValue,Is:Y.definitionOperator,"EntityReference CharacterReference":Y.character,Comment:Y.blockComment,ProcessingInst:Y.processingInstruction,DoctypeDecl:Y.documentMeta}),_Tr=Qv.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,59lOOO`1G/Y1G/YO*qO7[O'#CwO+SOMhO'#CwOOQW1G.z1G.zOOO`1G/Q1G/QOOO`1G/T1G/TOOO`1G/W1G/WOOOO'#D]'#D]O+eO7[O,59cOOQW,59c,59cOOOO'#D^'#D^O+vOMhO,59cOOOO-E7Z-E7ZOOQW1G.}1G.}OOOO-E7[-E7[",stateData:",c~O!_OS~OUSOVPOWQOXROYTO[]O][O^^O_^Oa^Ob^Oc^Od^Oy^O|_O!eZO~OgaO~OgbO~OgcO~OgdO~OgeO~O!XfOPmP![mP~O!YiOQpP![pP~O!ZlORsP![sP~OUSOVPOWQOXROYTOZqO[]O][O^^O_^Oa^Ob^Oc^Od^Oy^O!eZO~O![rO~P#gO!]sO!fuO~OgvO~OgwO~OS|OT}OiyO~OS!POT}OiyO~OS!ROT}OiyO~OS!TOT}OiyO~OS}OT}OiyO~O!XfOPmX![mX~OP!WO![!XO~O!YiOQpX![pX~OQ!ZO![!XO~O!ZlORsX![sX~OR!]O![!XO~O![!XO~P#gOg!_O~O!]sO!f!aO~OS!bO~OS!cO~Oj!dOShXThXihX~OS!fOT!gOiyO~OS!hOT!gOiyO~OS!iOT!gOiyO~OS!jOT!gOiyO~OS!gOT!gOiyO~Og!kO~Og!lO~Og!mO~OS!nO~Ol!qO!a!oO!c!pO~OS!rO~OS!sO~OS!tO~Ob!uOc!uOd!uO!a!wO!b!uO~Ob!xOc!xOd!xO!c!wO!d!xO~Ob!uOc!uOd!uO!a!{O!b!uO~Ob!xOc!xOd!xO!c!{O!d!xO~OT~cbd!ey|!e~",goto:"%q!aPPPPPPPPPPPPPPPPPPPPP!b!hP!nPP!zP!}#Q#T#Z#^#a#g#j#m#s#y!bP!b!bP$P$V$m$s$y%P%V%]%cPPPPPPPP%iX^OX`pXUOX`pezabcde{!O!Q!S!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ!ObQ!QcQ!SdQ!UeZ!e{!O!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:mTr,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:[OTr],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&Xqr$qrs&}sv$qvw+Pwx(tx!^$q!^!_*V!_!a&X!a#S$q#S#T&X#T;'S$q;'S;=`+z<%lO$q!R&bXaP!b`!dpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&Xq'UVaP!dpOv&}wx'kx!^&}!^!_(V!_;'S&};'S;=`(n<%lO&}P'pTaPOv'kw!^'k!_;'S'k;'S;=`(P<%lO'kP(SP;=`<%l'kp([S!dpOv(Vx;'S(V;'S;=`(h<%lO(Vp(kP;=`<%l(Vq(qP;=`<%l&}a({WaP!b`Or(trs'ksv(tw!^(t!^!_)e!_;'S(t;'S;=`*P<%lO(t`)jT!b`Or)esv)ew;'S)e;'S;=`)y<%lO)e`)|P;=`<%l)ea*SP;=`<%l(t!Q*^V!b`!dpOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!Q*vP;=`<%l*V!R*|P;=`<%l&XW+UYlWOX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+PW+wP;=`<%l+P!Z+}P;=`<%l$q!a,]`aP!b`!dp!_^OX&XXY,QYZ,QZ]&X]^,Q^p&Xpq,Qqr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X!_-ljiSaPlW!b`!dpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx!P-_!P!Q$q!Q!^-_!^!_*V!_!a&X!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q[/ebiSlWOX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+PS0rXiSqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0mS1bP;=`<%l0m[1hP;=`<%l/^!V1vciSaP!b`!dpOq&Xqr1krs&}sv1kvw0mwx(tx!P1k!P!Q&X!Q!^1k!^!_*V!_!a&X!a#s1k#s$f&X$f;'S1k;'S;=`3R<%l?Ah1k?Ah?BY&X?BY?Mn1k?MnO&X!V3UP;=`<%l1k!_3[P;=`<%l-_!Z3hV!ahaP!dpOv&}wx'kx!^&}!^!_(V!_;'S&};'S;=`(n<%lO&}!_4WiiSlWd!ROX5uXZ7SZ[5u[^7S^p5uqr8trs7Sst>]tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^/^!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!Z5zblWOX5uXZ7SZ[5u[^7S^p5uqr5urs7Sst+Ptw5uwx7Sx!]5u!]!^7w!^!a7S!a#S5u#S#T7S#T;'S5u;'S;=`8n<%lO5u!R7VVOp7Sqs7St!]7S!]!^7l!^;'S7S;'S;=`7q<%lO7S!R7qOb!R!R7tP;=`<%l7S!Z8OYlWb!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!Z8qP;=`<%l5u!_8{iiSlWOX5uXZ7SZ[5u[^7S^p5uqr8trs7Sst/^tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^:j!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!_:sbiSlWb!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!V<QciSOp7Sqr;{rs7Sst0mtw;{wx7Sx!P;{!P!Q7S!Q!];{!]!^=]!^!a7S!a#s;{#s$f7S$f;'S;{;'S;=`>P<%l?Ah;{?Ah?BY7S?BY?Mn;{?MnO7S!V=dXiSb!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!V>SP;=`<%l;{!_>YP;=`<%l8t!_>dhiSlWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^/^!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;'SBw;'S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!Z@TalWOX@OXZAYZ[@O[^AY^p@Oqr@OrsAYsw@OwxAYx!]@O!]!^Az!^!aAY!a#S@O#S#TAY#T;'S@O;'S;=`Bq<%lO@O!RA]UOpAYq!]AY!]!^Ao!^;'SAY;'S;=`At<%lOAY!RAtOc!R!RAwP;=`<%lAY!ZBRYlWc!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!ZBtP;=`<%l@O!_COhiSlWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^Dj!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;'SBw;'S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!_DsbiSlWc!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!VFQbiSOpAYqrE{rsAYswE{wxAYx!PE{!P!QAY!Q!]E{!]!^GY!^!aAY!a#sE{#s$fAY$f;'SE{;'S;=`G|<%l?AhE{?Ah?BYAY?BY?MnE{?MnOAY!VGaXiSc!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!VHPP;=`<%lE{!_HVP;=`<%lBw!ZHcW!cxaP!b`Or(trs'ksv(tw!^(t!^!_)e!_;'S(t;'S;=`*P<%lO(t!aIYliSaPlW!b`!dpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OKQ!O!P-_!P!Q$q!Q!^-_!^!_*V!_!a&X!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!aK_kiSaPlW!b`!dpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx!P-_!P!Q$q!Q!^-_!^!_*V!_!`&X!`!aMS!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!TM_XaP!b`!dp!fQOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X!aNZ!ZiSgQaPlW!b`!dpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OMz!O!PMz!P!Q$q!Q![Mz![!]Mz!]!^-_!^!_*V!_!a&X!a!c-_!c!}Mz!}#R-_#R#SMz#S#T1k#T#oMz#o#s-_#s$f$q$f$}-_$}%OMz%O%W-_%W%oMz%o%p-_%p&aMz&a&b-_&b1pMz1p4UMz4U4dMz4d4e-_4e$ISMz$IS$I`-_$I`$IbMz$Ib$Je-_$Je$JgMz$Jg$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!a!$PP;=`<%lMz!R!$ZY!b`!dpOq*Vqr!$yrs(Vsv*Vwx)ex!a*V!a!b!4t!b;'S*V;'S;=`*s<%lO*V!R!%Q]!b`!dpOr*Vrs(Vsv*Vwx)ex}*V}!O!%y!O!f*V!f!g!']!g#W*V#W#X!0`#X;'S*V;'S;=`*s<%lO*V!R!&QX!b`!dpOr*Vrs(Vsv*Vwx)ex}*V}!O!&m!O;'S*V;'S;=`*s<%lO*V!R!&vV!b`!dp!ePOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!'dX!b`!dpOr*Vrs(Vsv*Vwx)ex!q*V!q!r!(P!r;'S*V;'S;=`*s<%lO*V!R!(WX!b`!dpOr*Vrs(Vsv*Vwx)ex!e*V!e!f!(s!f;'S*V;'S;=`*s<%lO*V!R!(zX!b`!dpOr*Vrs(Vsv*Vwx)ex!v*V!v!w!)g!w;'S*V;'S;=`*s<%lO*V!R!)nX!b`!dpOr*Vrs(Vsv*Vwx)ex!{*V!{!|!*Z!|;'S*V;'S;=`*s<%lO*V!R!*bX!b`!dpOr*Vrs(Vsv*Vwx)ex!r*V!r!s!*}!s;'S*V;'S;=`*s<%lO*V!R!+UX!b`!dpOr*Vrs(Vsv*Vwx)ex!g*V!g!h!+q!h;'S*V;'S;=`*s<%lO*V!R!+xY!b`!dpOr!+qrs!,hsv!+qvw!-Swx!.[x!`!+q!`!a!/j!a;'S!+q;'S;=`!0Y<%lO!+qq!,mV!dpOv!,hvx!-Sx!`!,h!`!a!-q!a;'S!,h;'S;=`!.U<%lO!,hP!-VTO!`!-S!`!a!-f!a;'S!-S;'S;=`!-k<%lO!-SP!-kO|PP!-nP;=`<%l!-Sq!-xS!dp|POv(Vx;'S(V;'S;=`(h<%lO(Vq!.XP;=`<%l!,ha!.aX!b`Or!.[rs!-Ssv!.[vw!-Sw!`!.[!`!a!.|!a;'S!.[;'S;=`!/d<%lO!.[a!/TT!b`|POr)esv)ew;'S)e;'S;=`)y<%lO)ea!/gP;=`<%l!.[!R!/sV!b`!dp|POr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!0]P;=`<%l!+q!R!0gX!b`!dpOr*Vrs(Vsv*Vwx)ex#c*V#c#d!1S#d;'S*V;'S;=`*s<%lO*V!R!1ZX!b`!dpOr*Vrs(Vsv*Vwx)ex#V*V#V#W!1v#W;'S*V;'S;=`*s<%lO*V!R!1}X!b`!dpOr*Vrs(Vsv*Vwx)ex#h*V#h#i!2j#i;'S*V;'S;=`*s<%lO*V!R!2qX!b`!dpOr*Vrs(Vsv*Vwx)ex#m*V#m#n!3^#n;'S*V;'S;=`*s<%lO*V!R!3eX!b`!dpOr*Vrs(Vsv*Vwx)ex#d*V#d#e!4Q#e;'S*V;'S;=`*s<%lO*V!R!4XX!b`!dpOr*Vrs(Vsv*Vwx)ex#X*V#X#Y!+q#Y;'S*V;'S;=`*s<%lO*V!R!4{Y!b`!dpOr!4trs!5ksv!4tvw!6Vwx!8]x!a!4t!a!b!:]!b;'S!4t;'S;=`!;r<%lO!4tq!5pV!dpOv!5kvx!6Vx!a!5k!a!b!7W!b;'S!5k;'S;=`!8V<%lO!5kP!6YTO!a!6V!a!b!6i!b;'S!6V;'S;=`!7Q<%lO!6VP!6lTO!`!6V!`!a!6{!a;'S!6V;'S;=`!7Q<%lO!6VP!7QOyPP!7TP;=`<%l!6Vq!7]V!dpOv!5kvx!6Vx!`!5k!`!a!7r!a;'S!5k;'S;=`!8V<%lO!5kq!7yS!dpyPOv(Vx;'S(V;'S;=`(h<%lO(Vq!8YP;=`<%l!5ka!8bX!b`Or!8]rs!6Vsv!8]vw!6Vw!a!8]!a!b!8}!b;'S!8];'S;=`!:V<%lO!8]a!9SX!b`Or!8]rs!6Vsv!8]vw!6Vw!`!8]!`!a!9o!a;'S!8];'S;=`!:V<%lO!8]a!9vT!b`yPOr)esv)ew;'S)e;'S;=`)y<%lO)ea!:YP;=`<%l!8]!R!:dY!b`!dpOr!4trs!5ksv!4tvw!6Vwx!8]x!`!4t!`!a!;S!a;'S!4t;'S;=`!;r<%lO!4t!R!;]V!b`!dpyPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!;uP;=`<%l!4t!V!<TXjSaP!b`!dpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X",tokenizers:[xTr,wTr,STr,bTr,gTr,yTr,0,1,2,3,4,5],topRules:{Document:[0,16]},dialects:{noMatch:0,selfClosing:515},tokenPrec:517});function tQe(e,t){let r=Object.create(null);for(let n of e.getChildren(JUe)){let i=n.getChild(eTr),s=n.getChild(FZ)||n.getChild(KUe);i&&(r[t.read(i.from,i.to)]=s?s.type.id==FZ?t.read(s.from+1,s.to-1):t.read(s.from,s.to):"")}return r}function obe(e,t){let r=e.getChild(KCr);return r?t.read(r.from,r.to):" "}function FL(e,t,r){let n;for(let i of r)if(!i.attrs||i.attrs(n||(n=tQe(e.node.parent.firstChild,t))))return{parser:i.parser};return null}function rQe(e=[],t=[]){let r=[],n=[],i=[],s=[];for(let a of e)(a.tag=="script"?r:a.tag=="style"?n:a.tag=="textarea"?i:s).push(a);let o=t.length?Object.create(null):null;for(let a of t)(o[a.name]||(o[a.name]=[])).push(a);return qDe((a,l)=>{let c=a.type.id;if(c==tTr)return FL(a,l,r);if(c==rTr)return FL(a,l,n);if(c==nTr)return FL(a,l,i);if(c==YUe&&s.length){let u=a.node,d=u.firstChild,f=d&&obe(d,l),m;if(f){for(let g of s)if(g.tag==f&&(!g.attrs||g.attrs(m||(m=tQe(d,l))))){let v=u.lastChild,b=v.type.id==sTr?v.from:u.to;if(b>d.to)return{parser:g.parser,overlay:[{from:d.to,to:b}]}}}}if(o&&c==JUe){let u=a.node,d;if(d=u.firstChild){let f=o[l.read(d.from,d.to)];if(f)for(let m of f){if(m.tagName&&m.tagName!=obe(u.parent,l))continue;let g=u.lastChild;if(g.type.id==FZ){let v=g.from+1,b=g.lastChild,w=g.to-(b&&b.isError?0:1);if(w>v)return{parser:m.parser,overlay:[{from:v,to:w}]}}else if(g.type.id==KUe)return{parser:m.parser,overlay:[{from:g.from,to:g.to}]}}}}return null})}const kTr=122,abe=1,ETr=123,CTr=124,nQe=2,TTr=125,DTr=3,ATr=4,iQe=[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],PTr=58,$Tr=40,sQe=95,ITr=91,G$=45,NTr=46,RTr=35,MTr=37,jTr=38,FTr=92,LTr=10,zTr=42;function zC(e){return e>=65&&e<=90||e>=97&&e<=122||e>=161}function Uee(e){return e>=48&&e<=57}function lbe(e){return Uee(e)||e>=97&&e<=102||e>=65&&e<=70}const oQe=(e,t,r)=>(n,i)=>{for(let s=!1,o=0,a=0;;a++){let{next:l}=n;if(zC(l)||l==G$||l==sQe||s&&Uee(l))!s&&(l!=G$||a>0)&&(s=!0),o===a&&l==G$&&o++,n.advance();else if(l==FTr&&n.peek(1)!=LTr){if(n.advance(),lbe(n.next)){do n.advance();while(lbe(n.next));n.next==32&&n.advance()}else n.next>-1&&n.advance();s=!0}else{s&&n.acceptToken(o==2&&i.canShift(nQe)?t:l==$Tr?r:e);break}}},BTr=new bc(oQe(ETr,nQe,CTr)),VTr=new bc(oQe(TTr,DTr,ATr)),UTr=new bc(e=>{if(iQe.includes(e.peek(-1))){let{next:t}=e;(zC(t)||t==sQe||t==RTr||t==NTr||t==zTr||t==ITr||t==PTr&&zC(e.peek(1))||t==G$||t==jTr)&&e.acceptToken(kTr)}}),QTr=new bc(e=>{if(!iQe.includes(e.peek(-1))){let{next:t}=e;if(t==MTr&&(e.advance(),e.acceptToken(abe)),zC(t)){do e.advance();while(zC(e.next)||Uee(e.next));e.acceptToken(abe)}}}),ZTr=E0({"AtKeyword import charset namespace keyframes media supports":Y.definitionKeyword,"from to selector":Y.keyword,NamespaceName:Y.namespace,KeyframeName:Y.labelName,KeyframeRangeName:Y.operatorKeyword,TagName:Y.tagName,ClassName:Y.className,PseudoClassName:Y.constant(Y.className),IdName:Y.labelName,"FeatureName PropertyName":Y.propertyName,AttributeName:Y.attributeName,NumberLiteral:Y.number,KeywordQuery:Y.keyword,UnaryQueryOp:Y.operatorKeyword,"CallTag ValueName":Y.atom,VariableName:Y.variableName,Callee:Y.operatorKeyword,Unit:Y.unit,"UniversalSelector NestingSelector":Y.definitionOperator,"MatchOp CompareOp":Y.compareOperator,"ChildOp SiblingOp, LogicOp":Y.logicOperator,BinOp:Y.arithmeticOperator,Important:Y.modifier,Comment:Y.blockComment,ColorLiteral:Y.color,"ParenthesizedContent StringLiteral":Y.string,":":Y.punctuation,"PseudoOp #":Y.derefOperator,"; ,":Y.separator,"( )":Y.paren,"[ ]":Y.squareBracket,"{ }":Y.brace}),qTr={__proto__:null,lang:38,"nth-child":38,"nth-last-child":38,"nth-of-type":38,"nth-last-of-type":38,dir:38,"host-context":38,if:84,url:124,"url-prefix":124,domain:124,regexp:124},HTr={__proto__:null,or:98,and:98,not:106,only:106,layer:170},WTr={__proto__:null,selector:112,layer:166},GTr={__proto__:null,"@import":162,"@media":174,"@charset":178,"@namespace":182,"@keyframes":188,"@supports":200,"@scope":204},XTr={__proto__:null,to:207},YTr=Qv.deserialize({version:14,states:"EbQYQdOOO#qQdOOP#xO`OOOOQP'#Cf'#CfOOQP'#Ce'#CeO#}QdO'#ChO$nQaO'#CcO$xQdO'#CkO%TQdO'#DpO%YQdO'#DrO%_QdO'#DuO%_QdO'#DxOOQP'#FV'#FVO&eQhO'#EhOOQS'#FU'#FUOOQS'#Ek'#EkQYQdOOO&lQdO'#EOO&PQhO'#EUO&lQdO'#EWO'aQdO'#EYO'lQdO'#E]O'tQhO'#EcO(VQdO'#EeO(bQaO'#CfO)VQ`O'#D{O)[Q`O'#F`O)gQdO'#F`QOQ`OOP)qO&jO'#CaPOOO)C@t)C@tOOQP'#Cj'#CjOOQP,59S,59SO#}QdO,59SO)|QdO,59VO%TQdO,5:[O%YQdO,5:^O%_QdO,5:aO%_QdO,5:cO%_QdO,5:dO%_QdO'#ErO*XQ`O,58}O*aQdO'#DzOOQS,58},58}OOQP'#Cn'#CnOOQO'#Dn'#DnOOQP,59V,59VO*hQ`O,59VO*mQ`O,59VOOQP'#Dq'#DqOOQP,5:[,5:[OOQO'#Ds'#DsO*rQpO,5:^O+]QaO,5:aO+sQaO,5:dOOQW'#DZ'#DZO,ZQhO'#DdO,xQhO'#FaO'tQhO'#DbO-WQ`O'#DhOOQW'#F['#F[O-]Q`O,5;SO-eQ`O'#DeOOQS-E8i-E8iOOQ['#Cs'#CsO-jQdO'#CtO.QQdO'#CzO.hQdO'#C}O/OQ!pO'#DPO1RQ!jO,5:jOOQO'#DU'#DUO*mQ`O'#DTO1cQ!nO'#FXO3`Q`O'#DVO3eQ`O'#DkOOQ['#FX'#FXO-`Q`O,5:pO3jQ!bO,5:rOOQS'#E['#E[O3rQ`O,5:tO3wQdO,5:tOOQO'#E_'#E_O4PQ`O,5:wO4UQhO,5:}O%_QdO'#DgOOQS,5;P,5;PO-eQ`O,5;PO4^QdO,5;PO4fQdO,5:gO4vQdO'#EtO5TQ`O,5;zO5TQ`O,5;zPOOO'#Ej'#EjP5`O&jO,58{POOO,58{,58{OOQP1G.n1G.nOOQP1G.q1G.qO*hQ`O1G.qO*mQ`O1G.qOOQP1G/v1G/vO5kQpO1G/xO5sQaO1G/{O6ZQaO1G/}O6qQaO1G0OO7XQaO,5;^OOQO-E8p-E8pOOQS1G.i1G.iO7cQ`O,5:fO7hQdO'#DoO7oQdO'#CrOOQP1G/x1G/xO&lQdO1G/xO7vQ!jO'#DZO8UQ!bO,59vO8^QhO,5:OOOQO'#F]'#F]O8XQ!bO,59zO'tQhO,59xO8fQhO'#EvO8sQ`O,5;{O9OQhO,59|O9uQhO'#DiOOQW,5:S,5:SOOQS1G0n1G0nOOQW,5:P,5:PO9|Q!fO'#FYOOQS'#FY'#FYOOQS'#Em'#EmO;^QdO,59`OOQ[,59`,59`O;tQdO,59fOOQ[,59f,59fO<[QdO,59iOOQ[,59i,59iOOQ[,59k,59kO&lQdO,59mO<rQhO'#EQOOQW'#EQ'#EQO=WQ`O1G0UO1[QhO1G0UOOQ[,59o,59oO'tQhO'#DXOOQ[,59q,59qO=]Q#tO,5:VOOQS1G0[1G0[OOQS1G0^1G0^OOQS1G0`1G0`O=hQ`O1G0`O=mQdO'#E`OOQS1G0c1G0cOOQS1G0i1G0iO=xQaO,5:RO-`Q`O1G0kOOQS1G0k1G0kO-eQ`O1G0kO>PQ!fO1G0ROOQO1G0R1G0ROOQO,5;`,5;`O>gQdO,5;`OOQO-E8r-E8rO>tQ`O1G1fPOOO-E8h-E8hPOOO1G.g1G.gOOQP7+$]7+$]OOQP7+%d7+%dO&lQdO7+%dOOQS1G0Q1G0QO?PQaO'#F_O?ZQ`O,5:ZO?`Q!fO'#ElO@^QdO'#FWO@hQ`O,59^O@mQ!bO7+%dO&lQdO1G/bO@uQhO1G/fOOQW1G/j1G/jOOQW1G/d1G/dOAWQhO,5;bOOQO-E8t-E8tOAfQhO'#DZOAtQhO'#F^OBPQ`O'#F^OBUQ`O,5:TOOQS-E8k-E8kOOQ[1G.z1G.zOOQ[1G/Q1G/QOOQ[1G/T1G/TOOQ[1G/X1G/XOBZQdO,5:lOOQS7+%p7+%pOB`Q`O7+%pOBeQhO'#DYOBmQ`O,59sO'tQhO,59sOOQ[1G/q1G/qOBuQ`O1G/qOOQS7+%z7+%zOBzQbO'#DPOOQO'#Eb'#EbOCYQ`O'#EaOOQO'#Ea'#EaOCeQ`O'#EwOCmQdO,5:zOOQS,5:z,5:zOOQ[1G/m1G/mOOQS7+&V7+&VO-`Q`O7+&VOCxQ!fO'#EsO&lQdO'#EsOEPQdO7+%mOOQO7+%m7+%mOOQO1G0z1G0zOEdQ!bO<<IOOElQdO'#EqOEvQ`O,5;yOOQP1G/u1G/uOOQS-E8j-E8jOFOQdO'#EpOFYQ`O,5;rOOQ]1G.x1G.xOOQP<<IO<<IOOFbQdO7+$|OOQO'#D]'#D]OFiQ!bO7+%QOFqQhO'#EoOF{Q`O,5;xO&lQdO,5;xOOQW1G/o1G/oOOQO'#ES'#ESOGTQ`O1G0WOOQS<<I[<<I[O&lQdO,59tOGnQhO1G/_OOQ[1G/_1G/_OGuQ`O1G/_OOQW-E8l-E8lOOQ[7+%]7+%]OOQO,5:{,5:{O=pQdO'#ExOCeQ`O,5;cOOQS,5;c,5;cOOQS-E8u-E8uOOQS1G0f1G0fOOQS<<Iq<<IqOG}Q!fO,5;_OOQS-E8q-E8qOOQO<<IX<<IXOOQPAN>jAN>jOIUQaO,5;]OOQO-E8o-E8oOI`QdO,5;[OOQO-E8n-E8nOOQW<<Hh<<HhOOQW<<Hl<<HlOIjQhO<<HlOI{QhO,5;ZOJWQ`O,5;ZOOQO-E8m-E8mOJ]QdO1G1dOBZQdO'#EuOJgQ`O7+%rOOQW7+%r7+%rOJoQ!bO1G/`OOQ[7+$y7+$yOJzQhO7+$yPKRQ`O'#EnOOQO,5;d,5;dOOQO-E8v-E8vOOQS1G0}1G0}OKWQ`OAN>WO&lQdO1G0uOK]Q`O7+'OOOQO,5;a,5;aOOQO-E8s-E8sOOQW<<I^<<I^OOQ[<<He<<HePOQW,5;Y,5;YOOQWG23rG23rOKeQdO7+&a",stateData:"Kx~O#sOS#tQQ~OW[OZ[O]TO`VOaVOi]OjWOmXO!jYO!mZO!saO!ybO!{cO!}dO#QeO#WfO#YgO#oRO~OQiOW[OZ[O]TO`VOaVOi]OjWOmXO!jYO!mZO!saO!ybO!{cO!}dO#QeO#WfO#YgO#ohO~O#m$SP~P!dO#tmO~O#ooO~O]qO`rOarOjsOmtO!juO!mwO#nvO~OpzO!^xO~P$SOc!QO#o|O#p}O~O#o!RO~O#o!TO~OW[OZ[O]TO`VOaVOjWOmXO!jYO!mZO#oRO~OS!]Oe!YO!V![O!Y!`O#q!XOp$TP~Ok$TP~P&POQ!jOe!cOm!dOp!eOr!mOt!mOz!kO!`!lO#o!bO#p!hO#}!fO~Ot!qO!`!lO#o!pO~Ot!sO#o!sO~OS!]Oe!YO!V![O!Y!`O#q!XO~Oe!vOpzO#Z!xO~O]YX`YX`!pXaYXjYXmYXpYX!^YX!jYX!mYX#nYX~O`!zO~Ok!{O#m$SXo$SX~O#m$SXo$SX~P!dO#u#OO#v#OO#w#QO~Oc#UO#o|O#p}O~OpzO!^xO~Oo$SP~P!dOe#`O~Oe#aO~Ol#bO!h#cO~O]qO`rOarOjsOmtO~Op!ia!^!ia!j!ia!m!ia#n!iad!ia~P*zOp!la!^!la!j!la!m!la#n!lad!la~P*zOR#gOS!]Oe!YOr#gOt#gO!V![O!Y!`O#q#dO#}!fO~O!R#iO!^#jOk$TXp$TX~Oe#mO~Ok#oOpzO~Oe!vO~O]#rO`#rOd#uOi#rOj#rOk#rO~P&lO]#rO`#rOi#rOj#rOk#rOl#wO~P&lO]#rO`#rOi#rOj#rOk#rOo#yO~P&lOP#zOSsXesXksXvsX!VsX!YsX!usX!wsX#qsX!TsXQsX]sX`sXdsXisXjsXmsXpsXrsXtsXzsX!`sX#osX#psX#}sXlsXosX!^sX!qsX#msX~Ov#{O!u#|O!w#}Ok$TP~P'tOe#aOS#{Xk#{Xv#{X!V#{X!Y#{X!u#{X!w#{X#q#{XQ#{X]#{X`#{Xd#{Xi#{Xj#{Xm#{Xp#{Xr#{Xt#{Xz#{X!`#{X#o#{X#p#{X#}#{Xl#{Xo#{X!^#{X!q#{X#m#{X~Oe$RO~Oe$TO~Ok$VOv#{O~Ok$WO~Ot$XO!`!lO~Op$YO~OpzO!R#iO~OpzO#Z$`O~O!q$bOk!oa#m!oao!oa~P&lOk#hX#m#hXo#hX~P!dOk!{O#m$Sao$Sa~O#u#OO#v#OO#w$hO~Ol$jO!h$kO~Op!ii!^!ii!j!ii!m!ii#n!iid!ii~P*zOp!ki!^!ki!j!ki!m!ki#n!kid!ki~P*zOp!li!^!li!j!li!m!li#n!lid!li~P*zOp#fa!^#fa~P$SOo$lO~Od$RP~P%_Od#zP~P&lO`!PXd}X!R}X!T!PX~O`$sO!T$tO~Od$uO!R#iO~Ok#jXp#jX!^#jX~P'tO!^#jOk$Tap$Ta~O!R#iOk!Uap!Ua!^!Uad!Ua`!Ua~OS!]Oe!YO!V![O!Y!`O#q$yO~Od$QP~P9dOv#{OQ#|X]#|X`#|Xd#|Xe#|Xi#|Xj#|Xk#|Xm#|Xp#|Xr#|Xt#|Xz#|X!`#|X#o#|X#p#|X#}#|Xl#|Xo#|X~O]#rO`#rOd%OOi#rOj#rOk#rO~P&lO]#rO`#rOi#rOj#rOk#rOl%PO~P&lO]#rO`#rOi#rOj#rOk#rOo%QO~P&lOe%SOS!tXk!tX!V!tX!Y!tX#q!tX~Ok%TO~Od%YOt%ZO!a%ZO~Ok%[O~Oo%cO#o%^O#}%]O~Od%dO~P$SOv#{O!^%hO!q%jOk!oi#m!oio!oi~P&lOk#ha#m#hao#ha~P!dOk!{O#m$Sio$Si~O!^%mOd$RX~P$SOd%oO~Ov#{OQ#`Xd#`Xe#`Xm#`Xp#`Xr#`Xt#`Xz#`X!^#`X!`#`X#o#`X#p#`X#}#`X~O!^%qOd#zX~P&lOd%sO~Ol%tOv#{O~OR#gOr#gOt#gO#q%vO#}!fO~O!R#iOk#jap#ja!^#ja~O`!PXd}X!R}X!^}X~O!R#iO!^%xOd$QX~O`%zO~Od%{O~O#o%|O~Ok&OO~O`&PO!R#iO~Od&ROk&QO~Od&UO~OP#zOpsX!^sXdsX~O#}%]Op#TX!^#TX~OpzO!^&WO~Oo&[O#o%^O#}%]O~Ov#{OQ#gXe#gXk#gXm#gXp#gXr#gXt#gXz#gX!^#gX!`#gX!q#gX#m#gX#o#gX#p#gX#}#gXo#gX~O!^%hO!q&`Ok!oq#m!oqo!oq~P&lOl&aOv#{O~Od#eX!^#eX~P%_O!^%mOd$Ra~Od#dX!^#dX~P&lO!^%qOd#za~Od&fO~P&lOd&gO!T&hO~Od#cX!^#cX~P9dO!^%xOd$Qa~O]&mOd&oO~OS#bae#ba!V#ba!Y#ba#q#ba~Od&qO~PG]Od&qOk&rO~Ov#{OQ#gae#gak#gam#gap#gar#gat#gaz#ga!^#ga!`#ga!q#ga#m#ga#o#ga#p#ga#}#gao#ga~Od#ea!^#ea~P$SOd#da!^#da~P&lOR#gOr#gOt#gO#q%vO#}%]O~O!R#iOd#ca!^#ca~O`&xO~O!^%xOd$Qi~P&lO]&mOd&|O~Ov#{Od|ik|i~Od&}O~PG]Ok'OO~Od'PO~O!^%xOd$Qq~Od#cq!^#cq~P&lO#s!a#t#}]#}v!m~",goto:"2h$UPPPPP$VP$YP$c$uP$cP%X$cPP%_PPP%e%o%oPPPPP%oPP%oP&]P%oP%o'W%oP't'w'}'}(^'}P'}P'}P'}'}P(m'}(yP(|PP)p)v$c)|$c*SP$cP$c$cP*Y*{+YP$YP+aP+dP$YP$YP$YP+j$YP+m+p+s+z$YP$YPP$YP,P,V,f,|-[-b-l-r-x.O.U.`.f.l.rPPPPPPPPPPP.x/R/w/z0|P1U1u2O2R2U2[RnQ_^OP`kz!{$dq[OPYZ`kuvwxz!v!{#`$d%mqSOPYZ`kuvwxz!v!{#`$d%mQpTR#RqQ!OVR#SrQ#S!QS$Q!i!jR$i#U!V!mac!c!d!e!z#a#c#t#v#x#{$a$k$p$s%h%i%q%u%z&P&d&l&x'Q!U!mac!c!d!e!z#a#c#t#v#x#{$a$k$p$s%h%i%q%u%z&P&d&l&x'QU#g!Y$t&hU%`$Y%b&WR&V%_!V!iac!c!d!e!z#a#c#t#v#x#{$a$k$p$s%h%i%q%u%z&P&d&l&x'QR$S!kQ%W$RR&S%Xk!^]bf!Y![!g#i#j#m$P$R%X%xQ#e!YQ${#mQ%w$tQ&j%xR&w&hQ!ygQ#p!`Q$^!xR%f$`R#n!]!U!mac!c!d!e!z#a#c#t#v#x#{$a$k$p$s%h%i%q%u%z&P&d&l&x'QQ!qdR$X!rQ!PVR#TrQ#S!PR$i#TQ!SWR#VsQ!UXR#WtQ{UQ!wgQ#^yQ#o!_Q$U!nQ$[!uQ$_!yQ%e$^Q&Y%aQ&]%fR&v&XSjPzQ!}kQ$c!{R%k$dZiPkz!{$dR$P!gQ%}%SR&z&mR!rdR!teR$Z!tS%a$Y%bR&t&WV%_$Y%b&WQ#PmR$g#PQ`OSkPzU!a`k$dR$d!{Q$p#aY%p$p%u&d&l'QQ%u$sQ&d%qQ&l%zR'Q&xQ#t!cQ#v!dQ#x!eV$}#t#v#xQ%X$RR&T%XQ%y$zS&k%y&yR&y&lQ%r$pR&e%rQ%n$mR&c%nQyUR#]yQ%i$aR&_%iQ!|jS$e!|$fR$f!}Q&n%}R&{&nQ#k!ZR$x#kQ%b$YR&Z%bQ&X%aR&u&X__OP`kz!{$d^UOP`kz!{$dQ!VYQ!WZQ#XuQ#YvQ#ZwQ#[xQ$]!vQ$m#`R&b%mR$q#aQ!gaQ!oc[#q!c!d!e#t#v#xQ$a!zd$o#a$p$s%q%u%z&d&l&x'QQ$r#cQ%R#{S%g$a%iQ%l$kQ&^%hR&p&P]#s!c!d!e#t#v#xW!Z]b!g$PQ!ufQ#f!YQ#l![Q$v#iQ$w#jQ$z#mS%V$R%XR&i%xQ#h!YQ%w$tR&w&hR$|#mR$n#`QlPR#_zQ!_]Q!nbQ$O!gR%U$P",nodeNames:"⚠ Unit VariableName VariableName QueryCallee Comment StyleSheet RuleSet UniversalSelector TagSelector 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 , CallLiteral CallTag ParenthesizedContent PseudoClassName ArgList IdSelector IdName AttributeSelector AttributeName MatchOp 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 AtRule Styles",maxTerm:143,nodeProps:[["isolate",-2,5,36,""],["openedBy",20,"(",28,"[",31,"{"],["closedBy",21,")",29,"]",32,"}"]],propSources:[ZTr],skippedNodes:[0,5,106],repeatNodeCount:15,tokenData:"JQ~R!YOX$qX^%i^p$qpq%iqr({rs-ust/itu6Wuv$qvw7Qwx7cxy9Qyz9cz{9h{|:R|}>t}!O?V!O!P?t!P!Q@]!Q![AU![!]BP!]!^B{!^!_C^!_!`DY!`!aDm!a!b$q!b!cEn!c!}$q!}#OG{#O#P$q#P#QH^#Q#R6W#R#o$q#o#pHo#p#q6W#q#rIQ#r#sIc#s#y$q#y#z%i#z$f$q$f$g%i$g#BY$q#BY#BZ%i#BZ$IS$q$IS$I_%i$I_$I|$q$I|$JO%i$JO$JT$q$JT$JU%i$JU$KV$q$KV$KW%i$KW&FU$q&FU&FV%i&FV;'S$q;'S;=`Iz<%lO$q`$tSOy%Qz;'S%Q;'S;=`%c<%lO%Q`%VS!a`Oy%Qz;'S%Q;'S;=`%c<%lO%Q`%fP;=`<%l%Q~%nh#s~OX%QX^'Y^p%Qpq'Yqy%Qz#y%Q#y#z'Y#z$f%Q$f$g'Y$g#BY%Q#BY#BZ'Y#BZ$IS%Q$IS$I_'Y$I_$I|%Q$I|$JO'Y$JO$JT%Q$JT$JU'Y$JU$KV%Q$KV$KW'Y$KW&FU%Q&FU&FV'Y&FV;'S%Q;'S;=`%c<%lO%Q~'ah#s~!a`OX%QX^'Y^p%Qpq'Yqy%Qz#y%Q#y#z'Y#z$f%Q$f$g'Y$g#BY%Q#BY#BZ'Y#BZ$IS%Q$IS$I_'Y$I_$I|%Q$I|$JO'Y$JO$JT%Q$JT$JU'Y$JU$KV%Q$KV$KW'Y$KW&FU%Q&FU&FV'Y&FV;'S%Q;'S;=`%c<%lO%Qj)OUOy%Qz#]%Q#]#^)b#^;'S%Q;'S;=`%c<%lO%Qj)gU!a`Oy%Qz#a%Q#a#b)y#b;'S%Q;'S;=`%c<%lO%Qj*OU!a`Oy%Qz#d%Q#d#e*b#e;'S%Q;'S;=`%c<%lO%Qj*gU!a`Oy%Qz#c%Q#c#d*y#d;'S%Q;'S;=`%c<%lO%Qj+OU!a`Oy%Qz#f%Q#f#g+b#g;'S%Q;'S;=`%c<%lO%Qj+gU!a`Oy%Qz#h%Q#h#i+y#i;'S%Q;'S;=`%c<%lO%Qj,OU!a`Oy%Qz#T%Q#T#U,b#U;'S%Q;'S;=`%c<%lO%Qj,gU!a`Oy%Qz#b%Q#b#c,y#c;'S%Q;'S;=`%c<%lO%Qj-OU!a`Oy%Qz#h%Q#h#i-b#i;'S%Q;'S;=`%c<%lO%Qj-iS!qY!a`Oy%Qz;'S%Q;'S;=`%c<%lO%Q~-xWOY-uZr-urs.bs#O-u#O#P.g#P;'S-u;'S;=`/c<%lO-u~.gOt~~.jRO;'S-u;'S;=`.s;=`O-u~.vXOY-uZr-urs.bs#O-u#O#P.g#P;'S-u;'S;=`/c;=`<%l-u<%lO-u~/fP;=`<%l-uj/nYjYOy%Qz!Q%Q!Q![0^![!c%Q!c!i0^!i#T%Q#T#Z0^#Z;'S%Q;'S;=`%c<%lO%Qj0cY!a`Oy%Qz!Q%Q!Q![1R![!c%Q!c!i1R!i#T%Q#T#Z1R#Z;'S%Q;'S;=`%c<%lO%Qj1WY!a`Oy%Qz!Q%Q!Q![1v![!c%Q!c!i1v!i#T%Q#T#Z1v#Z;'S%Q;'S;=`%c<%lO%Qj1}YrY!a`Oy%Qz!Q%Q!Q![2m![!c%Q!c!i2m!i#T%Q#T#Z2m#Z;'S%Q;'S;=`%c<%lO%Qj2tYrY!a`Oy%Qz!Q%Q!Q![3d![!c%Q!c!i3d!i#T%Q#T#Z3d#Z;'S%Q;'S;=`%c<%lO%Qj3iY!a`Oy%Qz!Q%Q!Q![4X![!c%Q!c!i4X!i#T%Q#T#Z4X#Z;'S%Q;'S;=`%c<%lO%Qj4`YrY!a`Oy%Qz!Q%Q!Q![5O![!c%Q!c!i5O!i#T%Q#T#Z5O#Z;'S%Q;'S;=`%c<%lO%Qj5TY!a`Oy%Qz!Q%Q!Q![5s![!c%Q!c!i5s!i#T%Q#T#Z5s#Z;'S%Q;'S;=`%c<%lO%Qj5zSrY!a`Oy%Qz;'S%Q;'S;=`%c<%lO%Qd6ZUOy%Qz!_%Q!_!`6m!`;'S%Q;'S;=`%c<%lO%Qd6tS!hS!a`Oy%Qz;'S%Q;'S;=`%c<%lO%Qb7VSZQOy%Qz;'S%Q;'S;=`%c<%lO%Q~7fWOY7cZw7cwx.bx#O7c#O#P8O#P;'S7c;'S;=`8z<%lO7c~8RRO;'S7c;'S;=`8[;=`O7c~8_XOY7cZw7cwx.bx#O7c#O#P8O#P;'S7c;'S;=`8z;=`<%l7c<%lO7c~8}P;=`<%l7cj9VSeYOy%Qz;'S%Q;'S;=`%c<%lO%Q~9hOd~n9oUWQvWOy%Qz!_%Q!_!`6m!`;'S%Q;'S;=`%c<%lO%Qj:YWvW!mQOy%Qz!O%Q!O!P:r!P!Q%Q!Q![=w![;'S%Q;'S;=`%c<%lO%Qj:wU!a`Oy%Qz!Q%Q!Q![;Z![;'S%Q;'S;=`%c<%lO%Qj;bY!a`#}YOy%Qz!Q%Q!Q![;Z![!g%Q!g!h<Q!h#X%Q#X#Y<Q#Y;'S%Q;'S;=`%c<%lO%Qj<VY!a`Oy%Qz{%Q{|<u|}%Q}!O<u!O!Q%Q!Q![=^![;'S%Q;'S;=`%c<%lO%Qj<zU!a`Oy%Qz!Q%Q!Q![=^![;'S%Q;'S;=`%c<%lO%Qj=eU!a`#}YOy%Qz!Q%Q!Q![=^![;'S%Q;'S;=`%c<%lO%Qj>O[!a`#}YOy%Qz!O%Q!O!P;Z!P!Q%Q!Q![=w![!g%Q!g!h<Q!h#X%Q#X#Y<Q#Y;'S%Q;'S;=`%c<%lO%Qj>yS!^YOy%Qz;'S%Q;'S;=`%c<%lO%Qj?[WvWOy%Qz!O%Q!O!P:r!P!Q%Q!Q![=w![;'S%Q;'S;=`%c<%lO%Qj?yU]YOy%Qz!Q%Q!Q![;Z![;'S%Q;'S;=`%c<%lO%Q~@bTvWOy%Qz{@q{;'S%Q;'S;=`%c<%lO%Q~@xS!a`#t~Oy%Qz;'S%Q;'S;=`%c<%lO%QjAZ[#}YOy%Qz!O%Q!O!P;Z!P!Q%Q!Q![=w![!g%Q!g!h<Q!h#X%Q#X#Y<Q#Y;'S%Q;'S;=`%c<%lO%QjBUU`YOy%Qz![%Q![!]Bh!];'S%Q;'S;=`%c<%lO%QbBoSaQ!a`Oy%Qz;'S%Q;'S;=`%c<%lO%QjCQSkYOy%Qz;'S%Q;'S;=`%c<%lO%QhCcU!TWOy%Qz!_%Q!_!`Cu!`;'S%Q;'S;=`%c<%lO%QhC|S!TW!a`Oy%Qz;'S%Q;'S;=`%c<%lO%QlDaS!TW!hSOy%Qz;'S%Q;'S;=`%c<%lO%QjDtV!jQ!TWOy%Qz!_%Q!_!`Cu!`!aEZ!a;'S%Q;'S;=`%c<%lO%QbEbS!jQ!a`Oy%Qz;'S%Q;'S;=`%c<%lO%QjEqYOy%Qz}%Q}!OFa!O!c%Q!c!}GO!}#T%Q#T#oGO#o;'S%Q;'S;=`%c<%lO%QjFfW!a`Oy%Qz!c%Q!c!}GO!}#T%Q#T#oGO#o;'S%Q;'S;=`%c<%lO%QjGV[iY!a`Oy%Qz}%Q}!OGO!O!Q%Q!Q![GO![!c%Q!c!}GO!}#T%Q#T#oGO#o;'S%Q;'S;=`%c<%lO%QjHQSmYOy%Qz;'S%Q;'S;=`%c<%lO%QnHcSl^Oy%Qz;'S%Q;'S;=`%c<%lO%QjHtSpYOy%Qz;'S%Q;'S;=`%c<%lO%QjIVSoYOy%Qz;'S%Q;'S;=`%c<%lO%QfIhU!mQOy%Qz!_%Q!_!`6m!`;'S%Q;'S;=`%c<%lO%Q`I}P;=`<%l$q",tokenizers:[UTr,QTr,BTr,VTr,1,2,3,4,new $I("m~RRYZ[z{a~~g~aO#v~~dP!P!Qg~lO#w~~",28,129)],topRules:{StyleSheet:[0,6],Styles:[1,105]},specialized:[{term:124,get:e=>qTr[e]||-1},{term:125,get:e=>HTr[e]||-1},{term:4,get:e=>WTr[e]||-1},{term:25,get:e=>GTr[e]||-1},{term:123,get:e=>XTr[e]||-1}],tokenPrec:1963});let LL=null;function zL(){if(!LL&&typeof document=="object"&&document.body){let{style:e}=document.body,t=[],r=new Set;for(let n in e)n!="cssText"&&n!="cssFloat"&&typeof e[n]=="string"&&(/[A-Z]/.test(n)&&(n=n.replace(/[A-Z]/g,i=>"-"+i.toLowerCase())),r.has(n)||(t.push(n),r.add(n)));LL=t.sort().map(n=>({type:"property",label:n,apply:n+": "}))}return LL||[]}const cbe=["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"].map(e=>({type:"class",label:e})),ube=["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"].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"].map(e=>({type:"constant",label:e}))),JTr=["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"].map(e=>({type:"type",label:e})),KTr=["@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})),Gp=/^(\w[\w-]*|-\w[\w-]*|)$/,eDr=/^-(-[\w-]*)?$/;function tDr(e,t){var r;if((e.name=="("||e.type.isError)&&(e=e.parent||e),e.name!="ArgList")return!1;let n=(r=e.parent)===null||r===void 0?void 0:r.firstChild;return n?.name!="Callee"?!1:t.sliceString(n.from,n.to)=="var"}const dbe=new ZDe,rDr=["Declaration"];function nDr(e){for(let t=e;;){if(t.type.isTop)return t;if(!(t=t.parent))return e}}function aQe(e,t,r){if(t.to-t.from>4096){let n=dbe.get(t);if(n)return n;let i=[],s=new Set,o=t.cursor(pi.IncludeAnonymous);if(o.firstChild())do for(let a of aQe(e,o.node,r))s.has(a.label)||(s.add(a.label),i.push(a));while(o.nextSibling());return dbe.set(t,i),i}else{let n=[],i=new Set;return t.cursor().iterate(s=>{var o;if(r(s)&&s.matchContext(rDr)&&((o=s.node.nextSibling)===null||o===void 0?void 0:o.name)==":"){let a=e.sliceString(s.from,s.to);i.has(a)||(i.add(a),n.push({label:a,type:"variable"}))}}),n}}const lQe=e=>t=>{let{state:r,pos:n}=t,i=Wn(r).resolveInner(n,-1),s=i.type.isError&&i.from==i.to-1&&r.doc.sliceString(i.from,i.to)=="-";if(i.name=="PropertyName"||(s||i.name=="TagName")&&/^(Block|Styles)$/.test(i.resolve(i.to).name))return{from:i.from,options:zL(),validFor:Gp};if(i.name=="ValueName")return{from:i.from,options:ube,validFor:Gp};if(i.name=="PseudoClassName")return{from:i.from,options:cbe,validFor:Gp};if(e(i)||(t.explicit||s)&&tDr(i,r.doc))return{from:e(i)||s?i.from:n,options:aQe(r.doc,nDr(i),e),validFor:eDr};if(i.name=="TagName"){for(let{parent:l}=i;l;l=l.parent)if(l.name=="Block")return{from:i.from,options:zL(),validFor:Gp};return{from:i.from,options:JTr,validFor:Gp}}if(i.name=="AtKeyword")return{from:i.from,options:KTr,validFor:Gp};if(!t.explicit)return null;let o=i.resolve(n),a=o.childBefore(n);return a&&a.name==":"&&o.name=="PseudoClassSelector"?{from:n,options:cbe,validFor:Gp}:a&&a.name==":"&&o.name=="Declaration"||o.name=="ArgList"?{from:n,options:ube,validFor:Gp}:o.name=="Block"||o.name=="Styles"?{from:n,options:zL(),validFor:Gp}:null},cQe=lQe(e=>e.name=="VariableName"),BC=Gv.define({name:"css",parser:YTr.configure({props:[C0.add({Declaration:Hx()}),T0.add({"Block KeyframeList":qG})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function uQe(){return new Yv(BC,BC.data.of({autocomplete:cQe}))}const iDr=Object.freeze(Object.defineProperty({__proto__:null,css:uQe,cssCompletionSource:cQe,cssLanguage:BC,defineCSSCompletionSource:lQe},Symbol.toStringTag,{value:"Module"})),KO=["_blank","_self","_top","_parent"],BL=["ascii","utf-8","utf-16","latin1","latin1"],VL=["get","post","put","delete"],UL=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],Nl=["true","false"],Vt={},sDr={a:{attrs:{href:null,ping:null,type:null,media:null,target:KO,hreflang:null}},abbr:Vt,address:Vt,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:Vt,aside:Vt,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:Vt,base:{attrs:{href:null,target:KO}},bdi:Vt,bdo:Vt,blockquote:{attrs:{cite:null}},body:Vt,br:Vt,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:UL,formmethod:VL,formnovalidate:["novalidate"],formtarget:KO,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:Vt,center:Vt,cite:Vt,code:Vt,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:Vt,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:Vt,div:Vt,dl:Vt,dt:Vt,em:Vt,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:Vt,figure:Vt,footer:Vt,form:{attrs:{action:null,name:null,"accept-charset":BL,autocomplete:["on","off"],enctype:UL,method:VL,novalidate:["novalidate"],target:KO}},h1:Vt,h2:Vt,h3:Vt,h4:Vt,h5:Vt,h6:Vt,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:Vt,hgroup:Vt,hr:Vt,html:{attrs:{manifest:null}},i:Vt,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:UL,formmethod:VL,formnovalidate:["novalidate"],formtarget:KO,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:Vt,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:Vt,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:Vt,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:BL,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:Vt,noscript:Vt,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:Vt,param:{attrs:{name:null,value:null}},pre:Vt,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:Vt,rt:Vt,ruby:Vt,samp:Vt,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:BL}},section:Vt,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:Vt,source:{attrs:{src:null,type:null,media:null}},span:Vt,strong:Vt,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:Vt,summary:Vt,sup:Vt,table:Vt,tbody:Vt,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:Vt,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:Vt,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:Vt,time:{attrs:{datetime:null}},title:Vt,tr:Vt,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:Vt,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:Vt},dQe={accesskey:null,class:null,contenteditable:Nl,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:Nl,autocorrect:Nl,autocapitalize:Nl,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":Nl,"aria-autocomplete":["inline","list","both","none"],"aria-busy":Nl,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":Nl,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":Nl,"aria-hidden":Nl,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":Nl,"aria-multiselectable":Nl,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":Nl,"aria-relevant":null,"aria-required":Nl,"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},fQe="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 fQe)dQe[e]=null;class VC{constructor(t,r){this.tags={...sDr,...t},this.globalAttrs={...dQe,...r},this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}}VC.default=new VC;function mw(e,t,r=e.length){if(!t)return"";let n=t.firstChild,i=n&&n.getChild("TagName");return i?e.sliceString(i.from,Math.min(i.to,r)):""}function gw(e,t=!1){for(;e;e=e.parent)if(e.name=="Element")if(t)t=!1;else return e;return null}function pQe(e,t,r){let n=r.tags[mw(e,gw(t))];return n?.children||r.allTags}function Qee(e,t){let r=[];for(let n=gw(t);n&&!n.type.isTop;n=gw(n.parent)){let i=mw(e,n);if(i&&n.lastChild.name=="CloseTag")break;i&&r.indexOf(i)<0&&(t.name=="EndTag"||t.from>=n.firstChild.to)&&r.push(i)}return r}const hQe=/^[:\-\.\w\u00b7-\uffff]*$/;function fbe(e,t,r,n,i){let s=/\s*>/.test(e.sliceDoc(i,i+5))?"":">",o=gw(r,r.name=="StartTag"||r.name=="TagName");return{from:n,to:i,options:pQe(e.doc,o,t).map(a=>({label:a,type:"type"})).concat(Qee(e.doc,r).map((a,l)=>({label:"/"+a,apply:"/"+a+s,type:"type",boost:99-l}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function pbe(e,t,r,n){let i=/\s*>/.test(e.sliceDoc(n,n+5))?"":">";return{from:r,to:n,options:Qee(e.doc,t).map((s,o)=>({label:s,apply:s+i,type:"type",boost:99-o})),validFor:hQe}}function oDr(e,t,r,n){let i=[],s=0;for(let o of pQe(e.doc,r,t))i.push({label:"<"+o,type:"type"});for(let o of Qee(e.doc,r))i.push({label:"</"+o+">",type:"type",boost:99-s++});return{from:n,to:n,options:i,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}function aDr(e,t,r,n,i){let s=gw(r),o=s?t.tags[mw(e.doc,s)]:null,a=o&&o.attrs?Object.keys(o.attrs):[],l=o&&o.globalAttrs===!1?a:a.length?a.concat(t.globalAttrNames):t.globalAttrNames;return{from:n,to:i,options:l.map(c=>({label:c,type:"property"})),validFor:hQe}}function lDr(e,t,r,n,i){var s;let o=(s=r.parent)===null||s===void 0?void 0:s.getChild("AttributeName"),a=[],l;if(o){let c=e.sliceDoc(o.from,o.to),u=t.globalAttrs[c];if(!u){let d=gw(r),f=d?t.tags[mw(e.doc,d)]:null;u=f?.attrs&&f.attrs[c]}if(u){let d=e.sliceDoc(n,i).toLowerCase(),f='"',m='"';/^['"]/.test(d)?(l=d[0]=='"'?/^[^"]*$/:/^[^']*$/,f="",m=e.sliceDoc(i,i+1)==d[0]?"":d[0],d=d.slice(1),n++):l=/^[^\s<>='"]*$/;for(let g of u)a.push({label:g,apply:f+g+m,type:"constant"})}}return{from:n,to:i,options:a,validFor:l}}function mQe(e,t){let{state:r,pos:n}=t,i=Wn(r).resolveInner(n,-1),s=i.resolve(n);for(let o=n,a;s==i&&(a=i.childBefore(o));){let l=a.lastChild;if(!l||!l.type.isError||l.from<l.to)break;s=i=a,o=l.from}return i.name=="TagName"?i.parent&&/CloseTag$/.test(i.parent.name)?pbe(r,i,i.from,n):fbe(r,e,i,i.from,n):i.name=="StartTag"||i.name=="IncompleteTag"?fbe(r,e,i,n,n):i.name=="StartCloseTag"||i.name=="IncompleteCloseTag"?pbe(r,i,n,n):i.name=="OpenTag"||i.name=="SelfClosingTag"||i.name=="AttributeName"?aDr(r,e,i,i.name=="AttributeName"?i.from:n,n):i.name=="Is"||i.name=="AttributeValue"||i.name=="UnquotedAttributeValue"?lDr(r,e,i,i.name=="Is"?n:i.from,n):t.explicit&&(s.name=="Element"||s.name=="Text"||s.name=="Document")?oDr(r,e,i,n):null}function gQe(e){return mQe(VC.default,e)}function yQe(e){let{extraTags:t,extraGlobalAttributes:r}=e,n=r||t?new VC(t,r):VC.default;return i=>mQe(n,i)}const cDr=Xc.parser.configure({top:"SingleExpression"}),vQe=[{tag:"script",attrs:e=>e.type=="text/typescript"||e.lang=="ts",parser:VY.parser},{tag:"script",attrs:e=>e.type=="text/babel"||e.type=="text/jsx",parser:UY.parser},{tag:"script",attrs:e=>e.type=="text/typescript-jsx",parser:QY.parser},{tag:"script",attrs(e){return/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(e.type)},parser:cDr},{tag:"script",attrs(e){return!e.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(e.type)},parser:Xc.parser},{tag:"style",attrs(e){return(!e.lang||e.lang=="css")&&(!e.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(e.type))},parser:BC.parser}],bQe=[{name:"style",parser:BC.parser.configure({top:"Styles"})}].concat(fQe.map(e=>({name:e,parser:Xc.parser}))),xQe=Gv.define({name:"html",parser:_Tr.configure({props:[C0.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,r;for(let n=e.node;;){let i=n.lastChild;if(!i||i.name!="Element"||i.to!=n.to)break;t=n=i}return t&&!((r=t.lastChild)&&(r.name=="CloseTag"||r.name=="SelfClosingTag"))?e.lineIndent(t.from)+e.unit:null}}),T0.add({Element(e){let t=e.firstChild,r=e.lastChild;return!t||t.name!="OpenTag"?null:{from:t.to,to:r.name=="CloseTag"?r.from:e.to}}}),z2e.add({"OpenTag CloseTag":e=>e.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:"<!--",close:"-->"}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:"-_"}}),wk=xQe.configure({wrap:rQe(vQe,bQe)});function wQe(e={}){let t="",r;e.matchClosingTags===!1&&(t="noMatch"),e.selfClosingTags===!0&&(t=(t?t+" ":"")+"selfClosing"),(e.nestedLanguages&&e.nestedLanguages.length||e.nestedAttributes&&e.nestedAttributes.length)&&(r=rQe((e.nestedLanguages||[]).concat(vQe),(e.nestedAttributes||[]).concat(bQe)));let n=r?xQe.configure({wrap:r,dialect:t}):t?wk.configure({dialect:t}):wk;return new Yv(n,[wk.data.of({autocomplete:yQe(e)}),e.autoCloseTags!==!1?SQe:[],B3().support,uQe().support])}const hbe=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")),SQe=et.inputHandler.of((e,t,r,n,i)=>{if(e.composing||e.state.readOnly||t!=r||n!=">"&&n!="/"||!wk.isActiveAt(e.state,t,-1))return!1;let s=i(),{state:o}=s,a=o.changeByRange(l=>{var c,u,d;let f=o.doc.sliceString(l.from-1,l.to)==n,{head:m}=l,g=Wn(o).resolveInner(m,-1),v;if(f&&n==">"&&g.name=="EndTag"){let b=g.parent;if(((u=(c=b.parent)===null||c===void 0?void 0:c.lastChild)===null||u===void 0?void 0:u.name)!="CloseTag"&&(v=mw(o.doc,b.parent,m))&&!hbe.has(v)){let w=m+(o.doc.sliceString(m,m+1)===">"?1:0),S=`</${v}>`;return{range:l,changes:{from:m,to:w,insert:S}}}}else if(f&&n=="/"&&g.name=="IncompleteCloseTag"){let b=g.parent;if(g.from==m-2&&((d=b.lastChild)===null||d===void 0?void 0:d.name)!="CloseTag"&&(v=mw(o.doc,b,m))&&!hbe.has(v)){let w=m+(o.doc.sliceString(m,m+1)===">"?1:0),S=`${v}>`;return{range:Ne.cursor(m+S.length,-1),changes:{from:m,to:w,insert:S}}}}return{range:l}});return a.changes.empty?!1:(e.dispatch([s,o.update(a,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),uDr=Object.freeze(Object.defineProperty({__proto__:null,autoCloseTags:SQe,html:wQe,htmlCompletionSource:gQe,htmlCompletionSourceWith:yQe,htmlLanguage:wk},Symbol.toStringTag,{value:"Module"})),OQe=XN({commentTokens:{block:{open:"<!--",close:"-->"}}}),_Qe=new hr,kQe=ECr.configure({props:[T0.add(e=>!e.is("Block")||e.is("Document")||zZ(e)!=null||dDr(e)?void 0:(t,r)=>({from:r.doc.lineAt(t.from).to,to:t.to})),_Qe.add(zZ),C0.add({Document:()=>null}),lg.add({Document:OQe})]});function zZ(e){let t=/^(?:ATX|Setext)Heading(\d)$/.exec(e.name);return t?+t[1]:void 0}function dDr(e){return e.name=="OrderedList"||e.name=="BulletList"}function fDr(e,t){let r=e;for(;;){let n=r.nextSibling,i;if(!n||(i=zZ(n.type))!=null&&i<=t)break;r=n}return r.to}const pDr=T2e.of((e,t,r)=>{for(let n=Wn(e).resolveInner(r,-1);n&&!(n.from<t);n=n.parent){let i=n.type.prop(_Qe);if(i==null)continue;let s=fDr(n,i);if(s>r)return{from:r,to:s}}return null});function Zee(e){return new Gl(OQe,e,[],"markdown")}const EQe=Zee(kQe),hDr=kQe.configure([jCr,LCr,FCr,zCr,{props:[T0.add({Table:(e,t)=>({from:t.doc.lineAt(e.from).to,to:e.to})})]}]),yw=Zee(hDr);function mDr(e,t){return r=>{if(r&&e){let n=null;if(r=/\S*/.exec(r)[0],typeof e=="function"?n=e(r):n=Ee.matchLanguageName(e,r,!0),n instanceof Ee)return n.support?n.support.language.parser:Xv.getSkippingParser(n.load());if(n)return n.parser}return t?t.parser:null}}class QL{constructor(t,r,n,i,s,o,a){this.node=t,this.from=r,this.to=n,this.spaceBefore=i,this.spaceAfter=s,this.type=o,this.item=a}blank(t,r=!0){let n=this.spaceBefore+(this.node.name=="Blockquote"?">":"");if(t!=null){for(;n.length<t;)n+=" ";return n}else{for(let i=this.to-this.from-n.length-this.spaceAfter.length;i>0;i--)n+=" ";return n+(r?this.spaceAfter:"")}}marker(t,r){let n=this.node.name=="OrderedList"?String(+TQe(this.item,t)[2]+r):"";return this.spaceBefore+n+this.type+this.spaceAfter}}function CQe(e,t){let r=[],n=[];for(let i=e;i;i=i.parent){if(i.name=="FencedCode")return n;(i.name=="ListItem"||i.name=="Blockquote")&&r.push(i)}for(let i=r.length-1;i>=0;i--){let s=r[i],o,a=t.lineAt(s.from),l=s.from-a.from;if(s.name=="Blockquote"&&(o=/^ *>( ?)/.exec(a.text.slice(l))))n.push(new QL(s,l,l+o[0].length,"",o[1],">",null));else if(s.name=="ListItem"&&s.parent.name=="OrderedList"&&(o=/^( *)\d+([.)])( *)/.exec(a.text.slice(l)))){let c=o[3],u=o[0].length;c.length>=4&&(c=c.slice(0,c.length-4),u-=4),n.push(new QL(s.parent,l,l+u,o[1],c,o[2],s))}else if(s.name=="ListItem"&&s.parent.name=="BulletList"&&(o=/^( *)([-+*])( {1,4}\[[ xX]\])?( +)/.exec(a.text.slice(l)))){let c=o[4],u=o[0].length;c.length>4&&(c=c.slice(0,c.length-4),u-=4);let d=o[2];o[3]&&(d+=o[3].replace(/[xX]/," ")),n.push(new QL(s.parent,l,l+u,o[1],c,d,s))}}return n}function TQe(e,t){return/^(\s*)(\d+)(?=[.)])/.exec(t.sliceString(e.from,e.from+10))}function ZL(e,t,r,n=0){for(let i=-1,s=e;;){if(s.name=="ListItem"){let a=TQe(s,t),l=+a[2];if(i>=0){if(l!=i+1)return;r.push({from:s.from+a[1].length,to:s.from+a[0].length,insert:String(i+2+n)})}i=l}let o=s.nextSibling;if(!o)break;s=o}}function qee(e,t){let r=/^[ \t]*/.exec(e)[0].length;if(!r||t.facet(Uw)!=" ")return e;let n=bd(e,4,r),i="";for(let s=n;s>0;)s>=4?(i+=" ",s-=4):(i+=" ",s--);return i+e.slice(r)}const DQe=(e={})=>({state:t,dispatch:r})=>{let n=Wn(t),{doc:i}=t,s=null,o=t.changeByRange(a=>{if(!a.empty||!yw.isActiveAt(t,a.from,-1)&&!yw.isActiveAt(t,a.from,1))return s={range:a};let l=a.from,c=i.lineAt(l),u=CQe(n.resolveInner(l,-1),i);for(;u.length&&u[u.length-1].from>l-c.from;)u.pop();if(!u.length)return s={range:a};let d=u[u.length-1];if(d.to-d.spaceAfter.length>l-c.from)return s={range:a};let f=l>=d.to-d.spaceAfter.length&&!/\S/.test(c.text.slice(d.to));if(d.item&&f){let w=d.node.firstChild,S=d.node.getChild("ListItem","ListItem");if(w.to>=l||S&&S.to<l||c.from>0&&!/[^\s>]/.test(i.lineAt(c.from-1).text)||e.nonTightLists===!1){let O=u.length>1?u[u.length-2]:null,k,C="";O&&O.item?(k=c.from+O.from,C=O.marker(i,1)):k=c.from+(O?O.to:0);let T=[{from:k,to:l,insert:C}];return d.node.name=="OrderedList"&&ZL(d.item,i,T,-2),O&&O.node.name=="OrderedList"&&ZL(O.item,i,T),{range:Ne.cursor(k+C.length),changes:T}}else{let O=gbe(u,t,c);return{range:Ne.cursor(l+O.length+1),changes:{from:c.from,insert:O+t.lineBreak}}}}if(d.node.name=="Blockquote"&&f&&c.from){let w=i.lineAt(c.from-1),S=/>\s*$/.exec(w.text);if(S&&S.index==d.from){let O=t.changes([{from:w.from+S.index,to:w.to},{from:c.from+d.from,to:c.to}]);return{range:a.map(O),changes:O}}}let m=[];d.node.name=="OrderedList"&&ZL(d.item,i,m);let g=d.item&&d.item.from<c.from,v="";if(!g||/^[\s\d.)\-+*>]*/.exec(c.text)[0].length>=d.to)for(let w=0,S=u.length-1;w<=S;w++)v+=w==S&&!g?u[w].marker(i,1):u[w].blank(w<S?bd(c.text,4,u[w+1].from)-v.length:null);let b=l;for(;b>c.from&&/\s/.test(c.text.charAt(b-c.from-1));)b--;return v=qee(v,t),gDr(d.node,t.doc)&&(v=gbe(u,t,c)+t.lineBreak+v),m.push({from:b,to:l,insert:t.lineBreak+v}),{range:Ne.cursor(b+v.length+1),changes:m}});return s?!1:(r(t.update(o,{scrollIntoView:!0,userEvent:"input"})),!0)},AQe=DQe();function mbe(e){return e.name=="QuoteMark"||e.name=="ListMark"}function gDr(e,t){if(e.name!="OrderedList"&&e.name!="BulletList")return!1;let r=e.firstChild,n=e.getChild("ListItem","ListItem");if(!n)return!1;let i=t.lineAt(r.to),s=t.lineAt(n.from),o=/^[\s>]*$/.test(i.text);return i.number+(o?0:1)<s.number}function gbe(e,t,r){let n="";for(let i=0,s=e.length-2;i<=s;i++)n+=e[i].blank(i<s?bd(r.text,4,e[i+1].from)-n.length:null,i<s);return qee(n,t)}function yDr(e,t){let r=e.resolveInner(t,-1),n=t;mbe(r)&&(n=r.from,r=r.parent);for(let i;i=r.childBefore(n);)if(mbe(i))n=i.from;else if(i.name=="OrderedList"||i.name=="BulletList")r=i.lastChild,n=r.to;else break;return r}const PQe=({state:e,dispatch:t})=>{let r=Wn(e),n=null,i=e.changeByRange(s=>{let o=s.from,{doc:a}=e;if(s.empty&&yw.isActiveAt(e,s.from)){let l=a.lineAt(o),c=CQe(yDr(r,o),a);if(c.length){let u=c[c.length-1],d=u.to-u.spaceAfter.length+(u.spaceAfter?1:0);if(o-l.from>d&&!/\S/.test(l.text.slice(d,o-l.from)))return{range:Ne.cursor(l.from+d),changes:{from:l.from+d,to:o}};if(o-l.from==d&&(!u.item||l.from<=u.item.from||!/\S/.test(l.text.slice(0,u.to)))){let f=l.from+u.from;if(u.item&&u.node.from<u.item.from&&/\S/.test(l.text.slice(u.from,u.to))){let m=u.blank(bd(l.text,4,u.to)-bd(l.text,4,u.from));return f==l.from&&(m=qee(m,e)),{range:Ne.cursor(f+m.length),changes:{from:f,to:l.from+u.to,insert:m}}}if(f<o)return{range:Ne.cursor(f),changes:{from:f,to:o}}}}}return n={range:s}});return n?!1:(t(e.update(i,{scrollIntoView:!0,userEvent:"delete"})),!0)},$Qe=[{key:"Enter",run:AQe},{key:"Backspace",run:PQe}],IQe=wQe({matchClosingTags:!1});function NQe(e={}){let{codeLanguages:t,defaultCodeLanguage:r,addKeymap:n=!0,base:{parser:i}=EQe,completeHTMLTags:s=!0,pasteURLAsLink:o=!0,htmlTagLanguage:a=IQe}=e;if(!(i instanceof P6))throw new RangeError("Base parser provided to `markdown` should be a Markdown parser");let l=e.extensions?[e.extensions]:[],c=[a.support,pDr],u;o&&c.push(RQe),r instanceof Yv?(c.push(r.support),u=r.language):r&&(u=r);let d=t||u?mDr(t,u):void 0;l.push(TCr({codeParser:d,htmlParser:a.language.parser})),n&&c.push(Hh.high(Vw.of($Qe)));let f=Zee(i.configure(l));return s&&c.push(f.data.of({autocomplete:vDr})),new Yv(f,c)}function vDr(e){let{state:t,pos:r}=e,n=/<[:\-\.\w\u00b7-\uffff]*$/.exec(t.sliceDoc(r-25,r));if(!n)return null;let i=Wn(t).resolveInner(r,-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:r-n[0].length,to:r,options:bDr(),validFor:/^<[:\-\.\w\u00b7-\uffff]*$/}}let qL=null;function bDr(){if(qL)return qL;let e=gQe(new iX(Hr.create({extensions:IQe}),0,!0));return qL=e?e.options:[]}const xDr=/code|horizontalrule|html|link|comment|processing|escape|entity|image|mark|url/i,RQe=et.domEventHandlers({paste:(e,t)=>{var r;let{main:n}=t.state.selection;if(n.empty)return!1;let i=(r=e.clipboardData)===null||r===void 0?void 0:r.getData("text/plain");if(!i||!/^(https?:\/\/|mailto:|xmpp:|www\.)/.test(i)||(/^www\./.test(i)&&(i="https://"+i),!yw.isActiveAt(t.state,n.from,1)))return!1;let s=Wn(t.state),o=!1;return s.iterate({from:n.from,to:n.to,enter:a=>{(a.from>n.from||xDr.test(a.name))&&(o=!0)},leave:a=>{a.to<n.to&&(o=!0)}}),o?!1:(t.dispatch({changes:[{from:n.from,insert:"["},{from:n.to,insert:`](${i})`}],userEvent:"input.paste",scrollIntoView:!0}),!0)}}),wDr=Object.freeze(Object.defineProperty({__proto__:null,commonmarkLanguage:EQe,deleteMarkupBackward:PQe,insertNewlineContinueMarkup:AQe,insertNewlineContinueMarkupCommand:DQe,markdown:NQe,markdownKeymap:$Qe,markdownLanguage:yw,pasteURLAsLink:RQe},Symbol.toStringTag,{value:"Module"}));function Qe(e){return new Yv(HG.define(e))}function Um(e){return G(()=>import("./index-eYB1XCup.js"),__vite__mapDeps([100,95]),import.meta.url).then(t=>t.sql({dialect:t[e]}))}const SDr=[Ee.of({name:"C",extensions:["c","h","ino"],load(){return G(()=>import("./index-BlcAKisU.js"),__vite__mapDeps([101,95]),import.meta.url).then(e=>e.cpp())}}),Ee.of({name:"C++",alias:["cpp"],extensions:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],load(){return G(()=>import("./index-BlcAKisU.js"),__vite__mapDeps([101,95]),import.meta.url).then(e=>e.cpp())}}),Ee.of({name:"CQL",alias:["cassandra"],extensions:["cql"],load(){return Um("Cassandra")}}),Ee.of({name:"CSS",extensions:["css"],load(){return G(()=>Promise.resolve().then(()=>iDr),void 0,import.meta.url).then(e=>e.css())}}),Ee.of({name:"Go",extensions:["go"],load(){return G(()=>import("./index-BcVVzVId.js"),__vite__mapDeps([102,95]),import.meta.url).then(e=>e.go())}}),Ee.of({name:"HTML",alias:["xhtml"],extensions:["html","htm","handlebars","hbs"],load(){return G(()=>Promise.resolve().then(()=>uDr),void 0,import.meta.url).then(e=>e.html())}}),Ee.of({name:"Java",extensions:["java"],load(){return G(()=>import("./index-BTeuX5Lb.js"),__vite__mapDeps([103,95]),import.meta.url).then(e=>e.java())}}),Ee.of({name:"JavaScript",alias:["ecmascript","js","node"],extensions:["js","mjs","cjs"],load(){return G(()=>Promise.resolve().then(()=>fP),void 0,import.meta.url).then(e=>e.javascript())}}),Ee.of({name:"Jinja",extensions:["j2","jinja","jinja2"],load(){return G(()=>import("./index-BZAJ5_9r.js"),__vite__mapDeps([104,95]),import.meta.url).then(e=>e.jinja())}}),Ee.of({name:"JSON",alias:["json5"],extensions:["json","map"],load(){return G(()=>Promise.resolve().then(()=>uOt),void 0,import.meta.url).then(e=>e.json())}}),Ee.of({name:"JSX",extensions:["jsx"],load(){return G(()=>Promise.resolve().then(()=>fP),void 0,import.meta.url).then(e=>e.javascript({jsx:!0}))}}),Ee.of({name:"LESS",extensions:["less"],load(){return G(()=>import("./index-BR61ZB6b.js"),__vite__mapDeps([105,95]),import.meta.url).then(e=>e.less())}}),Ee.of({name:"Liquid",extensions:["liquid"],load(){return G(()=>import("./index-By180EDo.js"),__vite__mapDeps([106,95]),import.meta.url).then(e=>e.liquid())}}),Ee.of({name:"MariaDB SQL",load(){return Um("MariaSQL")}}),Ee.of({name:"Markdown",extensions:["md","markdown","mkd"],load(){return G(()=>Promise.resolve().then(()=>wDr),void 0,import.meta.url).then(e=>e.markdown())}}),Ee.of({name:"MS SQL",load(){return Um("MSSQL")}}),Ee.of({name:"MySQL",load(){return Um("MySQL")}}),Ee.of({name:"PHP",extensions:["php","php3","php4","php5","php7","phtml"],load(){return G(()=>import("./index-CCMabarK.js"),__vite__mapDeps([107,95]),import.meta.url).then(e=>e.php())}}),Ee.of({name:"PLSQL",extensions:["pls"],load(){return Um("PLSQL")}}),Ee.of({name:"PostgreSQL",load(){return Um("PostgreSQL")}}),Ee.of({name:"Python",extensions:["BUILD","bzl","py","pyw"],filename:/^(BUCK|BUILD)$/,load(){return G(()=>import("./index-BvW0nC8B.js"),__vite__mapDeps([108,95]),import.meta.url).then(e=>e.python())}}),Ee.of({name:"Rust",extensions:["rs"],load(){return G(()=>import("./index-CxKwNP2P.js"),__vite__mapDeps([109,95]),import.meta.url).then(e=>e.rust())}}),Ee.of({name:"Sass",extensions:["sass"],load(){return G(()=>import("./index-CkVao6FZ.js"),__vite__mapDeps([110,95]),import.meta.url).then(e=>e.sass({indented:!0}))}}),Ee.of({name:"SCSS",extensions:["scss"],load(){return G(()=>import("./index-CkVao6FZ.js"),__vite__mapDeps([110,95]),import.meta.url).then(e=>e.sass())}}),Ee.of({name:"SQL",extensions:["sql"],load(){return Um("StandardSQL")}}),Ee.of({name:"SQLite",load(){return Um("SQLite")}}),Ee.of({name:"TSX",extensions:["tsx"],load(){return G(()=>Promise.resolve().then(()=>fP),void 0,import.meta.url).then(e=>e.javascript({jsx:!0,typescript:!0}))}}),Ee.of({name:"TypeScript",alias:["ts"],extensions:["ts","mts","cts"],load(){return G(()=>Promise.resolve().then(()=>fP),void 0,import.meta.url).then(e=>e.javascript({typescript:!0}))}}),Ee.of({name:"WebAssembly",extensions:["wat","wast"],load(){return G(()=>import("./index-CxeRT-bC.js"),__vite__mapDeps([111,95]),import.meta.url).then(e=>e.wast())}}),Ee.of({name:"XML",alias:["rss","wsdl","xsd"],extensions:["xml","xsl","xsd","svg"],load(){return G(()=>import("./index-3ylcPSeA.js"),__vite__mapDeps([112,95]),import.meta.url).then(e=>e.xml())}}),Ee.of({name:"YAML",alias:["yml"],extensions:["yaml","yml"],load(){return G(()=>import("./index-BEL-b_gA.js"),__vite__mapDeps([113,95]),import.meta.url).then(e=>e.yaml())}}),Ee.of({name:"APL",extensions:["dyalog","apl"],load(){return G(()=>import("./apl-B4CMkyY2.js"),[],import.meta.url).then(e=>Qe(e.apl))}}),Ee.of({name:"PGP",alias:["asciiarmor"],extensions:["asc","pgp","sig"],load(){return G(()=>import("./asciiarmor-Df11BRmG.js"),[],import.meta.url).then(e=>Qe(e.asciiArmor))}}),Ee.of({name:"ASN.1",extensions:["asn","asn1"],load(){return G(()=>import("./asn1-EdZsLKOL.js"),[],import.meta.url).then(e=>Qe(e.asn1({})))}}),Ee.of({name:"Asterisk",filename:/^extensions\.conf$/i,load(){return G(()=>import("./asterisk-B-8jnY81.js"),[],import.meta.url).then(e=>Qe(e.asterisk))}}),Ee.of({name:"Brainfuck",extensions:["b","bf"],load(){return G(()=>import("./brainfuck-C4LP7Hcl.js"),[],import.meta.url).then(e=>Qe(e.brainfuck))}}),Ee.of({name:"Cobol",extensions:["cob","cpy"],load(){return G(()=>import("./cobol-CWcv1MsR.js"),[],import.meta.url).then(e=>Qe(e.cobol))}}),Ee.of({name:"C#",alias:["csharp","cs"],extensions:["cs"],load(){return G(()=>import("./clike-B9uivgTg.js"),[],import.meta.url).then(e=>Qe(e.csharp))}}),Ee.of({name:"Clojure",extensions:["clj","cljc","cljx"],load(){return G(()=>import("./clojure-BMjYHr_A.js"),[],import.meta.url).then(e=>Qe(e.clojure))}}),Ee.of({name:"ClojureScript",extensions:["cljs"],load(){return G(()=>import("./clojure-BMjYHr_A.js"),[],import.meta.url).then(e=>Qe(e.clojure))}}),Ee.of({name:"Closure Stylesheets (GSS)",extensions:["gss"],load(){return G(()=>import("./css-BnMrqG3P.js"),[],import.meta.url).then(e=>Qe(e.gss))}}),Ee.of({name:"CMake",extensions:["cmake","cmake.in"],filename:/^CMakeLists\.txt$/,load(){return G(()=>import("./cmake-BQqOBYOt.js"),[],import.meta.url).then(e=>Qe(e.cmake))}}),Ee.of({name:"CoffeeScript",alias:["coffee","coffee-script"],extensions:["coffee"],load(){return G(()=>import("./coffeescript-S37ZYGWr.js"),[],import.meta.url).then(e=>Qe(e.coffeeScript))}}),Ee.of({name:"Common Lisp",alias:["lisp"],extensions:["cl","lisp","el"],load(){return G(()=>import("./commonlisp-DBKNyK5s.js"),[],import.meta.url).then(e=>Qe(e.commonLisp))}}),Ee.of({name:"Cypher",extensions:["cyp","cypher"],load(){return G(()=>import("./cypher-C_CwsFkJ.js"),[],import.meta.url).then(e=>Qe(e.cypher))}}),Ee.of({name:"Cython",extensions:["pyx","pxd","pxi"],load(){return G(()=>import("./python-BuPzkPfP.js"),[],import.meta.url).then(e=>Qe(e.cython))}}),Ee.of({name:"Crystal",extensions:["cr"],load(){return G(()=>import("./crystal-SjHAIU92.js"),[],import.meta.url).then(e=>Qe(e.crystal))}}),Ee.of({name:"D",extensions:["d"],load(){return G(()=>import("./d-pRatUO7H.js"),[],import.meta.url).then(e=>Qe(e.d))}}),Ee.of({name:"Dart",extensions:["dart"],load(){return G(()=>import("./clike-B9uivgTg.js"),[],import.meta.url).then(e=>Qe(e.dart))}}),Ee.of({name:"diff",extensions:["diff","patch"],load(){return G(()=>import("./diff-DbItnlRl.js"),[],import.meta.url).then(e=>Qe(e.diff))}}),Ee.of({name:"Dockerfile",filename:/^Dockerfile$/,load(){return G(()=>import("./dockerfile-BKs6k2Af.js"),__vite__mapDeps([114,115]),import.meta.url).then(e=>Qe(e.dockerFile))}}),Ee.of({name:"DTD",extensions:["dtd"],load(){return G(()=>import("./dtd-DF_7sFjM.js"),[],import.meta.url).then(e=>Qe(e.dtd))}}),Ee.of({name:"Dylan",extensions:["dylan","dyl","intr"],load(){return G(()=>import("./dylan-DwRh75JA.js"),[],import.meta.url).then(e=>Qe(e.dylan))}}),Ee.of({name:"EBNF",load(){return G(()=>import("./ebnf-CDyGwa7X.js"),[],import.meta.url).then(e=>Qe(e.ebnf))}}),Ee.of({name:"ECL",extensions:["ecl"],load(){return G(()=>import("./ecl-Cabwm37j.js"),[],import.meta.url).then(e=>Qe(e.ecl))}}),Ee.of({name:"edn",extensions:["edn"],load(){return G(()=>import("./clojure-BMjYHr_A.js"),[],import.meta.url).then(e=>Qe(e.clojure))}}),Ee.of({name:"Eiffel",extensions:["e"],load(){return G(()=>import("./eiffel-CnydiIhH.js"),[],import.meta.url).then(e=>Qe(e.eiffel))}}),Ee.of({name:"Elm",extensions:["elm"],load(){return G(()=>import("./elm-vLlmbW-K.js"),[],import.meta.url).then(e=>Qe(e.elm))}}),Ee.of({name:"Erlang",extensions:["erl"],load(){return G(()=>import("./erlang-BNw1qcRV.js"),[],import.meta.url).then(e=>Qe(e.erlang))}}),Ee.of({name:"Esper",load(){return G(()=>import("./sql-D0XecflT.js"),[],import.meta.url).then(e=>Qe(e.esper))}}),Ee.of({name:"Factor",extensions:["factor"],load(){return G(()=>import("./factor-kuTfRLto.js"),__vite__mapDeps([116,115]),import.meta.url).then(e=>Qe(e.factor))}}),Ee.of({name:"FCL",load(){return G(()=>import("./fcl-Kvtd6kyn.js"),[],import.meta.url).then(e=>Qe(e.fcl))}}),Ee.of({name:"Forth",extensions:["forth","fth","4th"],load(){return G(()=>import("./forth-Ffai-XNe.js"),[],import.meta.url).then(e=>Qe(e.forth))}}),Ee.of({name:"Fortran",extensions:["f","for","f77","f90","f95"],load(){return G(()=>import("./fortran-DYz_wnZ1.js"),[],import.meta.url).then(e=>Qe(e.fortran))}}),Ee.of({name:"F#",alias:["fsharp"],extensions:["fs"],load(){return G(()=>import("./mllike-BO34x3tv.js"),[],import.meta.url).then(e=>Qe(e.fSharp))}}),Ee.of({name:"Gas",extensions:["s"],load(){return G(()=>import("./gas-Bneqetm1.js"),[],import.meta.url).then(e=>Qe(e.gas))}}),Ee.of({name:"Gherkin",extensions:["feature"],load(){return G(()=>import("./gherkin-heZmZLOM.js"),[],import.meta.url).then(e=>Qe(e.gherkin))}}),Ee.of({name:"Groovy",extensions:["groovy","gradle"],filename:/^Jenkinsfile$/,load(){return G(()=>import("./groovy-D9Dt4D0W.js"),[],import.meta.url).then(e=>Qe(e.groovy))}}),Ee.of({name:"Haskell",extensions:["hs"],load(){return G(()=>import("./haskell-Cw1EW3IL.js"),[],import.meta.url).then(e=>Qe(e.haskell))}}),Ee.of({name:"Haxe",extensions:["hx"],load(){return G(()=>import("./haxe-H-WmDvRZ.js"),[],import.meta.url).then(e=>Qe(e.haxe))}}),Ee.of({name:"HXML",extensions:["hxml"],load(){return G(()=>import("./haxe-H-WmDvRZ.js"),[],import.meta.url).then(e=>Qe(e.hxml))}}),Ee.of({name:"HTTP",load(){return G(()=>import("./http-DBlCnlav.js"),[],import.meta.url).then(e=>Qe(e.http))}}),Ee.of({name:"IDL",extensions:["pro"],load(){return G(()=>import("./idl-BEugSyMb.js"),[],import.meta.url).then(e=>Qe(e.idl))}}),Ee.of({name:"JSON-LD",alias:["jsonld"],extensions:["jsonld"],load(){return G(()=>import("./javascript-iXu5QeM3.js"),[],import.meta.url).then(e=>Qe(e.jsonld))}}),Ee.of({name:"Julia",extensions:["jl"],load(){return G(()=>import("./julia-DuME0IfC.js"),[],import.meta.url).then(e=>Qe(e.julia))}}),Ee.of({name:"Kotlin",extensions:["kt","kts"],load(){return G(()=>import("./clike-B9uivgTg.js"),[],import.meta.url).then(e=>Qe(e.kotlin))}}),Ee.of({name:"LiveScript",alias:["ls"],extensions:["ls"],load(){return G(()=>import("./livescript-BwQOo05w.js"),[],import.meta.url).then(e=>Qe(e.liveScript))}}),Ee.of({name:"Lua",extensions:["lua"],load(){return G(()=>import("./lua-BgMRiT3U.js"),[],import.meta.url).then(e=>Qe(e.lua))}}),Ee.of({name:"mIRC",extensions:["mrc"],load(){return G(()=>import("./mirc-CjQqDB4T.js"),[],import.meta.url).then(e=>Qe(e.mirc))}}),Ee.of({name:"Mathematica",extensions:["m","nb","wl","wls"],load(){return G(()=>import("./mathematica-DTrFuWx2.js"),[],import.meta.url).then(e=>Qe(e.mathematica))}}),Ee.of({name:"Modelica",extensions:["mo"],load(){return G(()=>import("./modelica-Dc1JOy9r.js"),[],import.meta.url).then(e=>Qe(e.modelica))}}),Ee.of({name:"MUMPS",extensions:["mps"],load(){return G(()=>import("./mumps-BT43cFF4.js"),[],import.meta.url).then(e=>Qe(e.mumps))}}),Ee.of({name:"Mbox",extensions:["mbox"],load(){return G(()=>import("./mbox-CNhZ1qSd.js"),[],import.meta.url).then(e=>Qe(e.mbox))}}),Ee.of({name:"Nginx",filename:/nginx.*\.conf$/i,load(){return G(()=>import("./nginx-DdIZxoE0.js"),[],import.meta.url).then(e=>Qe(e.nginx))}}),Ee.of({name:"NSIS",extensions:["nsh","nsi"],load(){return G(()=>import("./nsis-LdVXkNf5.js"),__vite__mapDeps([117,115]),import.meta.url).then(e=>Qe(e.nsis))}}),Ee.of({name:"NTriples",extensions:["nt","nq"],load(){return G(()=>import("./ntriples-BfvgReVJ.js"),[],import.meta.url).then(e=>Qe(e.ntriples))}}),Ee.of({name:"Objective-C",alias:["objective-c","objc"],extensions:["m"],load(){return G(()=>import("./clike-B9uivgTg.js"),[],import.meta.url).then(e=>Qe(e.objectiveC))}}),Ee.of({name:"Objective-C++",alias:["objective-c++","objc++"],extensions:["mm"],load(){return G(()=>import("./clike-B9uivgTg.js"),[],import.meta.url).then(e=>Qe(e.objectiveCpp))}}),Ee.of({name:"OCaml",extensions:["ml","mli","mll","mly"],load(){return G(()=>import("./mllike-BO34x3tv.js"),[],import.meta.url).then(e=>Qe(e.oCaml))}}),Ee.of({name:"Octave",extensions:["m"],load(){return G(()=>import("./octave-Ck1zUtKM.js"),[],import.meta.url).then(e=>Qe(e.octave))}}),Ee.of({name:"Oz",extensions:["oz"],load(){return G(()=>import("./oz-BzwKVEFT.js"),[],import.meta.url).then(e=>Qe(e.oz))}}),Ee.of({name:"Pascal",extensions:["p","pas"],load(){return G(()=>import("./pascal--L3eBynH.js"),[],import.meta.url).then(e=>Qe(e.pascal))}}),Ee.of({name:"Perl",extensions:["pl","pm"],load(){return G(()=>import("./perl-CdXCOZ3F.js"),[],import.meta.url).then(e=>Qe(e.perl))}}),Ee.of({name:"Pig",extensions:["pig"],load(){return G(()=>import("./pig-CevX1Tat.js"),[],import.meta.url).then(e=>Qe(e.pig))}}),Ee.of({name:"PowerShell",extensions:["ps1","psd1","psm1"],load(){return G(()=>import("./powershell-CaxLzxiJ.js"),[],import.meta.url).then(e=>Qe(e.powerShell))}}),Ee.of({name:"Properties files",alias:["ini","properties"],extensions:["properties","ini","in"],load(){return G(()=>import("./properties-C78fOPTZ.js"),[],import.meta.url).then(e=>Qe(e.properties))}}),Ee.of({name:"ProtoBuf",extensions:["proto"],load(){return G(()=>import("./protobuf-ChK-085T.js"),[],import.meta.url).then(e=>Qe(e.protobuf))}}),Ee.of({name:"Pug",alias:["jade"],extensions:["pug","jade"],load(){return G(()=>import("./pug-DeIclll2.js"),__vite__mapDeps([118,119]),import.meta.url).then(e=>Qe(e.pug))}}),Ee.of({name:"Puppet",extensions:["pp"],load(){return G(()=>import("./puppet-DMA9R1ak.js"),[],import.meta.url).then(e=>Qe(e.puppet))}}),Ee.of({name:"Q",extensions:["q"],load(){return G(()=>import("./q-pXgVlZs6.js"),[],import.meta.url).then(e=>Qe(e.q))}}),Ee.of({name:"R",alias:["rscript"],extensions:["r","R"],load(){return G(()=>import("./r-B6wPVr8A.js"),[],import.meta.url).then(e=>Qe(e.r))}}),Ee.of({name:"RPM Changes",load(){return G(()=>import("./rpm-CTu-6PCP.js"),[],import.meta.url).then(e=>Qe(e.rpmChanges))}}),Ee.of({name:"RPM Spec",extensions:["spec"],load(){return G(()=>import("./rpm-CTu-6PCP.js"),[],import.meta.url).then(e=>Qe(e.rpmSpec))}}),Ee.of({name:"Ruby",alias:["jruby","macruby","rake","rb","rbx"],extensions:["rb"],filename:/^(Gemfile|Rakefile)$/,load(){return G(()=>import("./ruby-B2Rjki9n.js"),[],import.meta.url).then(e=>Qe(e.ruby))}}),Ee.of({name:"SAS",extensions:["sas"],load(){return G(()=>import("./sas-B4kiWyti.js"),[],import.meta.url).then(e=>Qe(e.sas))}}),Ee.of({name:"Scala",extensions:["scala"],load(){return G(()=>import("./clike-B9uivgTg.js"),[],import.meta.url).then(e=>Qe(e.scala))}}),Ee.of({name:"Scheme",extensions:["scm","ss"],load(){return G(()=>import("./scheme-C41bIUwD.js"),[],import.meta.url).then(e=>Qe(e.scheme))}}),Ee.of({name:"Shell",alias:["bash","sh","zsh"],extensions:["sh","ksh","bash"],filename:/^PKGBUILD$/,load(){return G(()=>import("./shell-CjFT_Tl9.js"),[],import.meta.url).then(e=>Qe(e.shell))}}),Ee.of({name:"Sieve",extensions:["siv","sieve"],load(){return G(()=>import("./sieve-C3Gn_uJK.js"),[],import.meta.url).then(e=>Qe(e.sieve))}}),Ee.of({name:"Smalltalk",extensions:["st"],load(){return G(()=>import("./smalltalk-CnHTOXQT.js"),[],import.meta.url).then(e=>Qe(e.smalltalk))}}),Ee.of({name:"Solr",load(){return G(()=>import("./solr-DehyRSwq.js"),[],import.meta.url).then(e=>Qe(e.solr))}}),Ee.of({name:"SML",extensions:["sml","sig","fun","smackspec"],load(){return G(()=>import("./mllike-BO34x3tv.js"),[],import.meta.url).then(e=>Qe(e.sml))}}),Ee.of({name:"SPARQL",alias:["sparul"],extensions:["rq","sparql"],load(){return G(()=>import("./sparql-DkYu6x3z.js"),[],import.meta.url).then(e=>Qe(e.sparql))}}),Ee.of({name:"Spreadsheet",alias:["excel","formula"],load(){return G(()=>import("./spreadsheet-BCZA_wO0.js"),[],import.meta.url).then(e=>Qe(e.spreadsheet))}}),Ee.of({name:"Squirrel",extensions:["nut"],load(){return G(()=>import("./clike-B9uivgTg.js"),[],import.meta.url).then(e=>Qe(e.squirrel))}}),Ee.of({name:"Stylus",extensions:["styl"],load(){return G(()=>import("./stylus-B533Al4x.js"),[],import.meta.url).then(e=>Qe(e.stylus))}}),Ee.of({name:"Swift",extensions:["swift"],load(){return G(()=>import("./swift-BzpIVaGY.js"),[],import.meta.url).then(e=>Qe(e.swift))}}),Ee.of({name:"sTeX",load(){return G(()=>import("./stex-C3f8Ysf7.js"),[],import.meta.url).then(e=>Qe(e.stex))}}),Ee.of({name:"LaTeX",alias:["tex"],extensions:["text","ltx","tex"],load(){return G(()=>import("./stex-C3f8Ysf7.js"),[],import.meta.url).then(e=>Qe(e.stex))}}),Ee.of({name:"SystemVerilog",extensions:["v","sv","svh"],load(){return G(()=>import("./verilog-C6RDOZhf.js"),[],import.meta.url).then(e=>Qe(e.verilog))}}),Ee.of({name:"Tcl",extensions:["tcl"],load(){return G(()=>import("./tcl-DVfN8rqt.js"),[],import.meta.url).then(e=>Qe(e.tcl))}}),Ee.of({name:"Textile",extensions:["textile"],load(){return G(()=>import("./textile-CnDTJFAw.js"),[],import.meta.url).then(e=>Qe(e.textile))}}),Ee.of({name:"TiddlyWiki",load(){return G(()=>import("./tiddlywiki-DO-Gjzrf.js"),[],import.meta.url).then(e=>Qe(e.tiddlyWiki))}}),Ee.of({name:"Tiki wiki",load(){return G(()=>import("./tiki-DGYXhP31.js"),[],import.meta.url).then(e=>Qe(e.tiki))}}),Ee.of({name:"TOML",extensions:["toml"],load(){return G(()=>import("./toml-Bm5Em-hy.js"),[],import.meta.url).then(e=>Qe(e.toml))}}),Ee.of({name:"Troff",extensions:["1","2","3","4","5","6","7","8","9"],load(){return G(()=>import("./troff-wAsdV37c.js"),[],import.meta.url).then(e=>Qe(e.troff))}}),Ee.of({name:"TTCN",extensions:["ttcn","ttcn3","ttcnpp"],load(){return G(()=>import("./ttcn-CfJYG6tj.js"),[],import.meta.url).then(e=>Qe(e.ttcn))}}),Ee.of({name:"TTCN_CFG",extensions:["cfg"],load(){return G(()=>import("./ttcn-cfg-B9xdYoR4.js"),[],import.meta.url).then(e=>Qe(e.ttcnCfg))}}),Ee.of({name:"Turtle",extensions:["ttl"],load(){return G(()=>import("./turtle-B1tBg_DP.js"),[],import.meta.url).then(e=>Qe(e.turtle))}}),Ee.of({name:"Web IDL",extensions:["webidl"],load(){return G(()=>import("./webidl-ZXfAyPTL.js"),[],import.meta.url).then(e=>Qe(e.webIDL))}}),Ee.of({name:"VB.NET",extensions:["vb"],load(){return G(()=>import("./vb-CmGdzxic.js"),[],import.meta.url).then(e=>Qe(e.vb))}}),Ee.of({name:"VBScript",extensions:["vbs"],load(){return G(()=>import("./vbscript-BuJXcnF6.js"),[],import.meta.url).then(e=>Qe(e.vbScript))}}),Ee.of({name:"Velocity",extensions:["vtl"],load(){return G(()=>import("./velocity-D8B20fx6.js"),[],import.meta.url).then(e=>Qe(e.velocity))}}),Ee.of({name:"Verilog",extensions:["v"],load(){return G(()=>import("./verilog-C6RDOZhf.js"),[],import.meta.url).then(e=>Qe(e.verilog))}}),Ee.of({name:"VHDL",extensions:["vhd","vhdl"],load(){return G(()=>import("./vhdl-lSbBsy5d.js"),[],import.meta.url).then(e=>Qe(e.vhdl))}}),Ee.of({name:"XQuery",extensions:["xy","xquery","xq","xqm","xqy"],load(){return G(()=>import("./xquery-DzFWVndE.js"),[],import.meta.url).then(e=>Qe(e.xQuery))}}),Ee.of({name:"Yacas",extensions:["ys"],load(){return G(()=>import("./yacas-BJ4BC0dw.js"),[],import.meta.url).then(e=>Qe(e.yacas))}}),Ee.of({name:"Z80",extensions:["z80"],load(){return G(()=>import("./z80-Hz9HOZM7.js"),[],import.meta.url).then(e=>Qe(e.z80))}}),Ee.of({name:"MscGen",extensions:["mscgen","mscin","msc"],load(){return G(()=>import("./mscgen-BA5vi2Kp.js"),[],import.meta.url).then(e=>Qe(e.mscgen))}}),Ee.of({name:"Xù",extensions:["xu"],load(){return G(()=>import("./mscgen-BA5vi2Kp.js"),[],import.meta.url).then(e=>Qe(e.xu))}}),Ee.of({name:"MsGenny",extensions:["msgenny"],load(){return G(()=>import("./mscgen-BA5vi2Kp.js"),[],import.meta.url).then(e=>Qe(e.msgenny))}}),Ee.of({name:"Vue",extensions:["vue"],load(){return G(()=>import("./index-B7AE8A8c.js"),__vite__mapDeps([120,95]),import.meta.url).then(e=>e.vue())}}),Ee.of({name:"Angular Template",load(){return G(()=>import("./index-CsxxpPST.js"),__vite__mapDeps([121,95]),import.meta.url).then(e=>e.angular())}})];var MQe=e=>{var{theme:t,settings:r={},styles:n=[]}=e,i={".cm-gutters":{}},s={};r.background&&(s.backgroundColor=r.background),r.backgroundImage&&(s.backgroundImage=r.backgroundImage),r.foreground&&(s.color=r.foreground),r.fontSize&&(s.fontSize=r.fontSize),(r.background||r.foreground)&&(i["&"]=s),r.fontFamily&&(i["&.cm-editor .cm-scroller"]={fontFamily:r.fontFamily}),r.gutterBackground&&(i[".cm-gutters"].backgroundColor=r.gutterBackground),r.gutterForeground&&(i[".cm-gutters"].color=r.gutterForeground),r.gutterBorder&&(i[".cm-gutters"].borderRightColor=r.gutterBorder),r.caret&&(i[".cm-content"]={caretColor:r.caret},i[".cm-cursor, .cm-dropCursor"]={borderLeftColor:r.caret});var o={};r.gutterActiveForeground&&(o.color=r.gutterActiveForeground),r.lineHighlight&&(i[".cm-activeLine"]={backgroundColor:r.lineHighlight},o.backgroundColor=r.lineHighlight),i[".cm-activeLineGutter"]=o,r.selection&&(i["&.cm-focused .cm-selectionBackground, & .cm-line::selection, & .cm-selectionLayer .cm-selectionBackground, .cm-content ::selection"]={background:r.selection+" !important"}),r.selectionMatch&&(i["& .cm-selectionMatch"]={backgroundColor:r.selectionMatch});var a=et.theme(i,{dark:t==="dark"}),l=D0.define(n),c=[a,KN(l)];return c},ODr={background:"#fff",foreground:"#24292e",selection:"#BBDFFF",selectionMatch:"#BBDFFF",gutterBackground:"#fff",gutterForeground:"#6e7781"},_Dr=[{tag:[Y.standard(Y.tagName),Y.tagName],color:"#116329"},{tag:[Y.comment,Y.bracket],color:"#6a737d"},{tag:[Y.className,Y.propertyName],color:"#6f42c1"},{tag:[Y.variableName,Y.attributeName,Y.number,Y.operator],color:"#005cc5"},{tag:[Y.keyword,Y.typeName,Y.typeOperator,Y.typeName],color:"#d73a49"},{tag:[Y.string,Y.meta,Y.regexp],color:"#032f62"},{tag:[Y.name,Y.quote],color:"#22863a"},{tag:[Y.heading,Y.strong],color:"#24292e",fontWeight:"bold"},{tag:[Y.emphasis],color:"#24292e",fontStyle:"italic"},{tag:[Y.deleted],color:"#b31d28",backgroundColor:"ffeef0"},{tag:[Y.atom,Y.bool,Y.special(Y.variableName)],color:"#e36209"},{tag:[Y.url,Y.escape,Y.regexp,Y.link],color:"#032f62"},{tag:Y.link,textDecoration:"underline"},{tag:Y.strikethrough,textDecoration:"line-through"},{tag:Y.invalid,color:"#cb2431"}],kDr=e=>{var{theme:t="light",settings:r={},styles:n=[]}={};return MQe({theme:t,settings:gd({},ODr,r),styles:[..._Dr,...n]})};kDr();var EDr={background:"#0d1117",foreground:"#c9d1d9",caret:"#c9d1d9",selection:"#003d73",selectionMatch:"#003d73",lineHighlight:"#36334280"},CDr=[{tag:[Y.standard(Y.tagName),Y.tagName],color:"#7ee787"},{tag:[Y.comment,Y.bracket],color:"#8b949e"},{tag:[Y.className,Y.propertyName],color:"#d2a8ff"},{tag:[Y.variableName,Y.attributeName,Y.number,Y.operator],color:"#79c0ff"},{tag:[Y.keyword,Y.typeName,Y.typeOperator,Y.typeName],color:"#ff7b72"},{tag:[Y.string,Y.meta,Y.regexp],color:"#a5d6ff"},{tag:[Y.name,Y.quote],color:"#7ee787"},{tag:[Y.heading,Y.strong],color:"#d2a8ff",fontWeight:"bold"},{tag:[Y.emphasis],color:"#d2a8ff",fontStyle:"italic"},{tag:[Y.deleted],color:"#ffdcd7",backgroundColor:"ffeef0"},{tag:[Y.atom,Y.bool,Y.special(Y.variableName)],color:"#ffab70"},{tag:Y.link,textDecoration:"underline"},{tag:Y.strikethrough,textDecoration:"line-through"},{tag:Y.invalid,color:"#f97583"}],jQe=e=>{var{theme:t="dark",settings:r={},styles:n=[]}=e||{};return MQe({theme:t,settings:gd({},EDr,r),styles:[...CDr,...n]})};jQe();var FQe="AlertDialog",[TDr]=Ro(FQe,[JPe]),nm=JPe(),LQe=e=>{const{__scopeAlertDialog:t,...r}=e,n=nm(t);return p.jsx(gX,{...n,...r,modal:!0})};LQe.displayName=FQe;var DDr="AlertDialogTrigger",zQe=E.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,i=nm(r);return p.jsx(h$e,{...i,...n,ref:t})});zQe.displayName=DDr;var ADr="AlertDialogPortal",BQe=e=>{const{__scopeAlertDialog:t,...r}=e,n=nm(t);return p.jsx(yX,{...n,...r})};BQe.displayName=ADr;var PDr="AlertDialogOverlay",VQe=E.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,i=nm(r);return p.jsx(o5,{...i,...n,ref:t})});VQe.displayName=PDr;var n1="AlertDialogContent",[$Dr,IDr]=TDr(n1),NDr=$Ee("AlertDialogContent"),UQe=E.forwardRef((e,t)=>{const{__scopeAlertDialog:r,children:n,...i}=e,s=nm(r),o=E.useRef(null),a=er(t,o),l=E.useRef(null);return p.jsx(uCt,{contentName:n1,titleName:QQe,docsSlug:"alert-dialog",children:p.jsx($Dr,{scope:r,cancelRef:l,children:p.jsxs(a5,{role:"alertdialog",...s,...i,ref:a,onOpenAutoFocus:dt(i.onOpenAutoFocus,c=>{c.preventDefault(),l.current?.focus({preventScroll:!0})}),onPointerDownOutside:c=>c.preventDefault(),onInteractOutside:c=>c.preventDefault(),children:[p.jsx(NDr,{children:n}),p.jsx(MDr,{contentRef:o})]})})})});UQe.displayName=n1;var QQe="AlertDialogTitle",ZQe=E.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,i=nm(r);return p.jsx(l5,{...i,...n,ref:t})});ZQe.displayName=QQe;var qQe="AlertDialogDescription",HQe=E.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,i=nm(r);return p.jsx(c5,{...i,...n,ref:t})});HQe.displayName=qQe;var RDr="AlertDialogAction",WQe=E.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,i=nm(r);return p.jsx(u5,{...i,...n,ref:t})});WQe.displayName=RDr;var GQe="AlertDialogCancel",XQe=E.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,{cancelRef:i}=IDr(GQe,r),s=nm(r),o=er(t,i);return p.jsx(u5,{...s,...n,ref:o})});XQe.displayName=GQe;var MDr=({contentRef:e})=>{const t=`\`${n1}\` requires a description for the component to be accessible for screen reader users.
|
|
548
|
+
`;)s--;this.fragmentEnd=s?s-1:0}let n=this.cursor;n||(n=this.cursor=this.fragment.tree.cursor(),n.firstChild());let i=t+this.fragment.offset;for(;n.to<=i;)if(!n.parent())return!1;for(;;){if(n.from>=i)return this.fragment.from<=r;if(!n.childAfter(i))return!1}}matches(t){let r=this.cursor.tree;return r&&r.prop(hr.contextHash)==t}takeNodes(t){let r=this.cursor,n=this.fragment.offset,i=this.fragmentEnd-(this.fragment.openEnd?1:0),s=t.absoluteLineStart,o=s,a=t.block.children.length,l=o,c=a;for(;;){if(r.to-n>i){if(r.type.isAnonymous&&r.firstChild())continue;break}let u=QUe(r.from-n,t.ranges);if(r.to-n<=t.ranges[t.rangeI].to)t.addNode(r.tree,u);else{let d=new Ur(t.parser.nodeSet.types[ot.Paragraph],[],[],0,t.block.hashProp);t.reusePlaceholders.set(d,r.tree),t.addNode(d,u)}if(r.type.is("Block")&&(OCr.indexOf(r.type.id)<0?(o=r.to-n,a=t.block.children.length):(o=l,a=c,l=r.to-n,c=t.block.children.length)),!r.nextSibling())break}for(;t.block.children.length>a;)t.block.children.pop(),t.block.positions.pop();return o-s}}function QUe(e,t){let r=e;for(let n=1;n<t.length;n++){let i=t[n-1].to,s=t[n].from;i<e&&(r-=s-i)}return r}const kCr=E0({"Blockquote/...":Y.quote,HorizontalRule:Y.contentSeparator,"ATXHeading1/... SetextHeading1/...":Y.heading1,"ATXHeading2/... SetextHeading2/...":Y.heading2,"ATXHeading3/...":Y.heading3,"ATXHeading4/...":Y.heading4,"ATXHeading5/...":Y.heading5,"ATXHeading6/...":Y.heading6,"Comment CommentBlock":Y.comment,Escape:Y.escape,Entity:Y.character,"Emphasis/...":Y.emphasis,"StrongEmphasis/...":Y.strong,"Link/... Image/...":Y.link,"OrderedList/... BulletList/...":Y.list,"BlockQuote/...":Y.quote,"InlineCode CodeText":Y.monospace,"URL Autolink":Y.url,"HeaderMark HardBreak QuoteMark ListMark LinkMark EmphasisMark CodeMark":Y.processingInstruction,"CodeInfo LinkLabel":Y.labelName,LinkTitle:Y.string,Paragraph:Y.content}),ECr=new P6(new Bw(MUe).extend(kCr),Object.keys(IP).map(e=>IP[e]),Object.keys(IP).map(e=>NUe[e]),Object.keys(IP),vCr,kUe,Object.keys(ML).map(e=>ML[e]),Object.keys(ML),[]);function CCr(e,t,r){let n=[];for(let i=e.firstChild,s=t;;i=i.nextSibling){let o=i?i.from:r;if(o>s&&n.push({from:s,to:o}),!i)break;s=i.to}return n}function TCr(e){let{codeParser:t,htmlParser:r}=e;return{wrap:qDe((i,s)=>{let o=i.type.id;if(t&&(o==ot.CodeBlock||o==ot.FencedCode)){let a="";if(o==ot.FencedCode){let c=i.node.getChild(ot.CodeInfo);c&&(a=s.read(c.from,c.to))}let l=t(a);if(l)return{parser:l,overlay:c=>c.type.id==ot.CodeText}}else if(r&&(o==ot.HTMLBlock||o==ot.HTMLTag||o==ot.CommentBlock))return{parser:r,overlay:CCr(i.node,i.from,i.to)};return null})}}const DCr={resolve:"Strikethrough",mark:"StrikethroughMark"},ACr={defineNodes:[{name:"Strikethrough",style:{"Strikethrough/...":Y.strikethrough}},{name:"StrikethroughMark",style:Y.processingInstruction}],parseInline:[{name:"Strikethrough",parse(e,t,r){if(t!=126||e.char(r+1)!=126||e.char(r+2)==126)return-1;let n=e.slice(r-1,r),i=e.slice(r+2,r+3),s=/\s|^$/.test(n),o=/\s|^$/.test(i),a=LC.test(n),l=LC.test(i);return e.addDelimiter(DCr,r,r+2,!o&&(!l||s||a),!s&&(!a||o||l))},after:"Emphasis"}]};function xk(e,t,r=0,n,i=0){let s=0,o=!0,a=-1,l=-1,c=!1,u=()=>{n.push(e.elt("TableCell",i+a,i+l,e.parser.parseInline(t.slice(a,l),i+a)))};for(let d=r;d<t.length;d++){let f=t.charCodeAt(d);f==124&&!c?((!o||a>-1)&&s++,o=!1,n&&(a>-1&&u(),n.push(e.elt("TableDelimiter",d+i,d+i+1))),a=l=-1):(c||f!=32&&f!=9)&&(a<0&&(a=d),l=d+1),c=!c&&f==92}return a>-1&&(s++,n&&u()),s}function Z0e(e,t){for(let r=t;r<e.length;r++){let n=e.charCodeAt(r);if(n==124)return!0;n==92&&r++}return!1}const ZUe=/^\|?(\s*:?-+:?\s*\|)+(\s*:?-+:?\s*)?$/;class q0e{constructor(){this.rows=null}nextLine(t,r,n){if(this.rows==null){this.rows=!1;let i;if((r.next==45||r.next==58||r.next==124)&&ZUe.test(i=r.text.slice(r.pos))){let s=[];xk(t,n.content,0,s,n.start)==xk(t,i,r.pos)&&(this.rows=[t.elt("TableHeader",n.start,n.start+n.content.length,s),t.elt("TableDelimiter",t.lineStart+r.pos,t.lineStart+r.text.length)])}}else if(this.rows){let i=[];xk(t,r.text,r.pos,i,t.lineStart),this.rows.push(t.elt("TableRow",t.lineStart+r.pos,t.lineStart+r.text.length,i))}return!1}finish(t,r){return this.rows?(t.addLeafElement(r,t.elt("Table",r.start,r.start+r.content.length,this.rows)),!0):!1}}const PCr={defineNodes:[{name:"Table",block:!0},{name:"TableHeader",style:{"TableHeader/...":Y.heading}},"TableRow",{name:"TableCell",style:Y.content},{name:"TableDelimiter",style:Y.processingInstruction}],parseBlock:[{name:"Table",leaf(e,t){return Z0e(t.content,0)?new q0e:null},endLeaf(e,t,r){if(r.parsers.some(i=>i instanceof q0e)||!Z0e(t.text,t.basePos))return!1;let n=e.peekLine();return ZUe.test(n)&&xk(e,t.text,t.basePos)==xk(e,n,t.basePos)},before:"SetextHeading"}]};class $Cr{nextLine(){return!1}finish(t,r){return t.addLeafElement(r,t.elt("Task",r.start,r.start+r.content.length,[t.elt("TaskMarker",r.start,r.start+3),...t.parser.parseInline(r.content.slice(3),r.start+3)])),!0}}const ICr={defineNodes:[{name:"Task",block:!0,style:Y.list},{name:"TaskMarker",style:Y.atom}],parseBlock:[{name:"TaskList",leaf(e,t){return/^\[[ xX]\][ \t]/.test(t.content)&&e.parentType().name=="ListItem"?new $Cr:null},after:"SetextHeading"}]},H0e=/(www\.)|(https?:\/\/)|([\w.+-]{1,100}@)|(mailto:|xmpp:)/gy,W0e=/[\w-]+(\.[\w-]+)+(\/[^\s<]*)?/gy,NCr=/[\w-]+\.[\w-]+($|\/)/,G0e=/[\w.+-]+@[\w-]+(\.[\w.-]+)+/gy,X0e=/\/[a-zA-Z\d@.]+/gy;function Y0e(e,t,r,n){let i=0;for(let s=t;s<r;s++)e[s]==n&&i++;return i}function RCr(e,t){W0e.lastIndex=t;let r=W0e.exec(e);if(!r||NCr.exec(r[0])[0].indexOf("_")>-1)return-1;let n=t+r[0].length;for(;;){let i=e[n-1],s;if(/[?!.,:*_~]/.test(i)||i==")"&&Y0e(e,t,n,")")>Y0e(e,t,n,"("))n--;else if(i==";"&&(s=/&(?:#\d+|#x[a-f\d]+|\w+);$/.exec(e.slice(t,n))))n=t+s.index;else break}return n}function J0e(e,t){G0e.lastIndex=t;let r=G0e.exec(e);if(!r)return-1;let n=r[0][r[0].length-1];return n=="_"||n=="-"?-1:t+r[0].length-(n=="."?1:0)}const MCr={parseInline:[{name:"Autolink",parse(e,t,r){let n=r-e.offset;if(n&&/\w/.test(e.text[n-1]))return-1;H0e.lastIndex=n;let i=H0e.exec(e.text),s=-1;if(!i)return-1;if(i[1]||i[2]){if(s=RCr(e.text,n+i[0].length),s>-1&&e.hasOpenLink){let o=/([^\[\]]|\[[^\]]*\])*/.exec(e.text.slice(n,s));s=n+o[0].length}}else i[3]?s=J0e(e.text,n):(s=J0e(e.text,n+i[0].length),s>-1&&i[0]=="xmpp:"&&(X0e.lastIndex=s,i=X0e.exec(e.text),i&&(s=i.index+i[0].length)));return s<0?-1:(e.addElement(e.elt("URL",r,s+e.offset)),s+e.offset)}}]},jCr=[PCr,ICr,ACr,MCr];function qUe(e,t,r){return(n,i,s)=>{if(i!=e||n.char(s+1)==e)return-1;let o=[n.elt(r,s,s+1)];for(let a=s+1;a<n.end;a++){let l=n.char(a);if(l==e)return n.addElement(n.elt(t,s,a+1,o.concat(n.elt(r,a,a+1))));if(l==92&&o.push(n.elt("Escape",a,a+++2)),bu(l))break}return-1}}const FCr={defineNodes:[{name:"Superscript",style:Y.special(Y.content)},{name:"SuperscriptMark",style:Y.processingInstruction}],parseInline:[{name:"Superscript",parse:qUe(94,"Superscript","SuperscriptMark")}]},LCr={defineNodes:[{name:"Subscript",style:Y.special(Y.content)},{name:"SubscriptMark",style:Y.processingInstruction}],parseInline:[{name:"Subscript",parse:qUe(126,"Subscript","SubscriptMark")}]},zCr={defineNodes:[{name:"Emoji",style:Y.character}],parseInline:[{name:"Emoji",parse(e,t,r){let n;return t!=58||!(n=/^[a-zA-Z_0-9]+:/.exec(e.slice(r+1,e.end)))?-1:e.addElement(e.elt("Emoji",r,r+1+n[0].length))}}]},BCr=55,VCr=1,UCr=56,QCr=2,ZCr=57,qCr=3,K0e=4,HCr=5,zee=6,HUe=7,WUe=8,GUe=9,XUe=10,WCr=11,GCr=12,XCr=13,jL=58,YCr=14,JCr=15,ebe=59,YUe=21,KCr=23,JUe=24,eTr=25,FZ=27,KUe=28,tTr=29,rTr=32,nTr=35,iTr=37,sTr=38,oTr=0,aTr=1,lTr={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},cTr={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},tbe={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 uTr(e){return e==45||e==46||e==58||e>=65&&e<=90||e==95||e>=97&&e<=122||e>=161}let rbe=null,nbe=null,ibe=0;function LZ(e,t){let r=e.pos+t;if(ibe==r&&nbe==e)return rbe;let n=e.peek(t),i="";for(;uTr(n);)i+=String.fromCharCode(n),n=e.peek(++t);return nbe=e,ibe=r,rbe=i?i.toLowerCase():n==dTr||n==fTr?void 0:null}const eQe=60,_4=62,Bee=47,dTr=63,fTr=33,pTr=45;function sbe(e,t){this.name=e,this.parent=t}const hTr=[zee,XUe,HUe,WUe,GUe],mTr=new WDe({start:null,shift(e,t,r,n){return hTr.indexOf(t)>-1?new sbe(LZ(n,1)||"",e):e},reduce(e,t){return t==YUe&&e?e.parent:e},reuse(e,t,r,n){let i=t.type.id;return i==zee||i==iTr?new sbe(LZ(n,1)||"",e):e},strict:!1}),gTr=new bc((e,t)=>{if(e.next!=eQe){e.next<0&&t.context&&e.acceptToken(jL);return}e.advance();let r=e.next==Bee;r&&e.advance();let n=LZ(e,0);if(n===void 0)return;if(!n)return e.acceptToken(r?JCr:YCr);let i=t.context?t.context.name:null;if(r){if(n==i)return e.acceptToken(WCr);if(i&&cTr[i])return e.acceptToken(jL,-2);if(t.dialectEnabled(oTr))return e.acceptToken(GCr);for(let s=t.context;s;s=s.parent)if(s.name==n)return;e.acceptToken(XCr)}else{if(n=="script")return e.acceptToken(HUe);if(n=="style")return e.acceptToken(WUe);if(n=="textarea")return e.acceptToken(GUe);if(lTr.hasOwnProperty(n))return e.acceptToken(XUe);i&&tbe[i]&&tbe[i][n]?e.acceptToken(jL,-1):e.acceptToken(zee)}},{contextual:!0}),yTr=new bc(e=>{for(let t=0,r=0;;r++){if(e.next<0){r&&e.acceptToken(ebe);break}if(e.next==pTr)t++;else if(e.next==_4&&t>=2){r>=3&&e.acceptToken(ebe,-2);break}else t=0;e.advance()}});function vTr(e){for(;e;e=e.parent)if(e.name=="svg"||e.name=="math")return!0;return!1}const bTr=new bc((e,t)=>{if(e.next==Bee&&e.peek(1)==_4){let r=t.dialectEnabled(aTr)||vTr(t.context);e.acceptToken(r?HCr:K0e,2)}else e.next==_4&&e.acceptToken(K0e,1)});function Vee(e,t,r){let n=2+e.length;return new bc(i=>{for(let s=0,o=0,a=0;;a++){if(i.next<0){a&&i.acceptToken(t);break}if(s==0&&i.next==eQe||s==1&&i.next==Bee||s>=2&&s<n&&i.next==e.charCodeAt(s-2))s++,o++;else if(s==n&&i.next==_4){a>o?i.acceptToken(t,-o):i.acceptToken(r,-(o-2));break}else if((i.next==10||i.next==13)&&a){i.acceptToken(t,1);break}else s=o=0;i.advance()}})}const xTr=Vee("script",BCr,VCr),wTr=Vee("style",UCr,QCr),STr=Vee("textarea",ZCr,qCr),OTr=E0({"Text RawText IncompleteTag IncompleteCloseTag":Y.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":Y.angleBracket,TagName:Y.tagName,"MismatchedCloseTag/TagName":[Y.tagName,Y.invalid],AttributeName:Y.attributeName,"AttributeValue UnquotedAttributeValue":Y.attributeValue,Is:Y.definitionOperator,"EntityReference CharacterReference":Y.character,Comment:Y.blockComment,ProcessingInst:Y.processingInstruction,DoctypeDecl:Y.documentMeta}),_Tr=Qv.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,59lOOO`1G/Y1G/YO*qO7[O'#CwO+SOMhO'#CwOOQW1G.z1G.zOOO`1G/Q1G/QOOO`1G/T1G/TOOO`1G/W1G/WOOOO'#D]'#D]O+eO7[O,59cOOQW,59c,59cOOOO'#D^'#D^O+vOMhO,59cOOOO-E7Z-E7ZOOQW1G.}1G.}OOOO-E7[-E7[",stateData:",c~O!_OS~OUSOVPOWQOXROYTO[]O][O^^O_^Oa^Ob^Oc^Od^Oy^O|_O!eZO~OgaO~OgbO~OgcO~OgdO~OgeO~O!XfOPmP![mP~O!YiOQpP![pP~O!ZlORsP![sP~OUSOVPOWQOXROYTOZqO[]O][O^^O_^Oa^Ob^Oc^Od^Oy^O!eZO~O![rO~P#gO!]sO!fuO~OgvO~OgwO~OS|OT}OiyO~OS!POT}OiyO~OS!ROT}OiyO~OS!TOT}OiyO~OS}OT}OiyO~O!XfOPmX![mX~OP!WO![!XO~O!YiOQpX![pX~OQ!ZO![!XO~O!ZlORsX![sX~OR!]O![!XO~O![!XO~P#gOg!_O~O!]sO!f!aO~OS!bO~OS!cO~Oj!dOShXThXihX~OS!fOT!gOiyO~OS!hOT!gOiyO~OS!iOT!gOiyO~OS!jOT!gOiyO~OS!gOT!gOiyO~Og!kO~Og!lO~Og!mO~OS!nO~Ol!qO!a!oO!c!pO~OS!rO~OS!sO~OS!tO~Ob!uOc!uOd!uO!a!wO!b!uO~Ob!xOc!xOd!xO!c!wO!d!xO~Ob!uOc!uOd!uO!a!{O!b!uO~Ob!xOc!xOd!xO!c!{O!d!xO~OT~cbd!ey|!e~",goto:"%q!aPPPPPPPPPPPPPPPPPPPPP!b!hP!nPP!zP!}#Q#T#Z#^#a#g#j#m#s#y!bP!b!bP$P$V$m$s$y%P%V%]%cPPPPPPPP%iX^OX`pXUOX`pezabcde{!O!Q!S!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ!ObQ!QcQ!SdQ!UeZ!e{!O!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:mTr,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:[OTr],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&Xqr$qrs&}sv$qvw+Pwx(tx!^$q!^!_*V!_!a&X!a#S$q#S#T&X#T;'S$q;'S;=`+z<%lO$q!R&bXaP!b`!dpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&Xq'UVaP!dpOv&}wx'kx!^&}!^!_(V!_;'S&};'S;=`(n<%lO&}P'pTaPOv'kw!^'k!_;'S'k;'S;=`(P<%lO'kP(SP;=`<%l'kp([S!dpOv(Vx;'S(V;'S;=`(h<%lO(Vp(kP;=`<%l(Vq(qP;=`<%l&}a({WaP!b`Or(trs'ksv(tw!^(t!^!_)e!_;'S(t;'S;=`*P<%lO(t`)jT!b`Or)esv)ew;'S)e;'S;=`)y<%lO)e`)|P;=`<%l)ea*SP;=`<%l(t!Q*^V!b`!dpOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!Q*vP;=`<%l*V!R*|P;=`<%l&XW+UYlWOX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+PW+wP;=`<%l+P!Z+}P;=`<%l$q!a,]`aP!b`!dp!_^OX&XXY,QYZ,QZ]&X]^,Q^p&Xpq,Qqr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X!_-ljiSaPlW!b`!dpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx!P-_!P!Q$q!Q!^-_!^!_*V!_!a&X!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q[/ebiSlWOX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+PS0rXiSqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0mS1bP;=`<%l0m[1hP;=`<%l/^!V1vciSaP!b`!dpOq&Xqr1krs&}sv1kvw0mwx(tx!P1k!P!Q&X!Q!^1k!^!_*V!_!a&X!a#s1k#s$f&X$f;'S1k;'S;=`3R<%l?Ah1k?Ah?BY&X?BY?Mn1k?MnO&X!V3UP;=`<%l1k!_3[P;=`<%l-_!Z3hV!ahaP!dpOv&}wx'kx!^&}!^!_(V!_;'S&};'S;=`(n<%lO&}!_4WiiSlWd!ROX5uXZ7SZ[5u[^7S^p5uqr8trs7Sst>]tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^/^!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!Z5zblWOX5uXZ7SZ[5u[^7S^p5uqr5urs7Sst+Ptw5uwx7Sx!]5u!]!^7w!^!a7S!a#S5u#S#T7S#T;'S5u;'S;=`8n<%lO5u!R7VVOp7Sqs7St!]7S!]!^7l!^;'S7S;'S;=`7q<%lO7S!R7qOb!R!R7tP;=`<%l7S!Z8OYlWb!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!Z8qP;=`<%l5u!_8{iiSlWOX5uXZ7SZ[5u[^7S^p5uqr8trs7Sst/^tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^:j!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!_:sbiSlWb!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!V<QciSOp7Sqr;{rs7Sst0mtw;{wx7Sx!P;{!P!Q7S!Q!];{!]!^=]!^!a7S!a#s;{#s$f7S$f;'S;{;'S;=`>P<%l?Ah;{?Ah?BY7S?BY?Mn;{?MnO7S!V=dXiSb!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!V>SP;=`<%l;{!_>YP;=`<%l8t!_>dhiSlWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^/^!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;'SBw;'S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!Z@TalWOX@OXZAYZ[@O[^AY^p@Oqr@OrsAYsw@OwxAYx!]@O!]!^Az!^!aAY!a#S@O#S#TAY#T;'S@O;'S;=`Bq<%lO@O!RA]UOpAYq!]AY!]!^Ao!^;'SAY;'S;=`At<%lOAY!RAtOc!R!RAwP;=`<%lAY!ZBRYlWc!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!ZBtP;=`<%l@O!_COhiSlWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^Dj!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;'SBw;'S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!_DsbiSlWc!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!VFQbiSOpAYqrE{rsAYswE{wxAYx!PE{!P!QAY!Q!]E{!]!^GY!^!aAY!a#sE{#s$fAY$f;'SE{;'S;=`G|<%l?AhE{?Ah?BYAY?BY?MnE{?MnOAY!VGaXiSc!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!VHPP;=`<%lE{!_HVP;=`<%lBw!ZHcW!cxaP!b`Or(trs'ksv(tw!^(t!^!_)e!_;'S(t;'S;=`*P<%lO(t!aIYliSaPlW!b`!dpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OKQ!O!P-_!P!Q$q!Q!^-_!^!_*V!_!a&X!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!aK_kiSaPlW!b`!dpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx!P-_!P!Q$q!Q!^-_!^!_*V!_!`&X!`!aMS!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!TM_XaP!b`!dp!fQOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X!aNZ!ZiSgQaPlW!b`!dpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OMz!O!PMz!P!Q$q!Q![Mz![!]Mz!]!^-_!^!_*V!_!a&X!a!c-_!c!}Mz!}#R-_#R#SMz#S#T1k#T#oMz#o#s-_#s$f$q$f$}-_$}%OMz%O%W-_%W%oMz%o%p-_%p&aMz&a&b-_&b1pMz1p4UMz4U4dMz4d4e-_4e$ISMz$IS$I`-_$I`$IbMz$Ib$Je-_$Je$JgMz$Jg$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!a!$PP;=`<%lMz!R!$ZY!b`!dpOq*Vqr!$yrs(Vsv*Vwx)ex!a*V!a!b!4t!b;'S*V;'S;=`*s<%lO*V!R!%Q]!b`!dpOr*Vrs(Vsv*Vwx)ex}*V}!O!%y!O!f*V!f!g!']!g#W*V#W#X!0`#X;'S*V;'S;=`*s<%lO*V!R!&QX!b`!dpOr*Vrs(Vsv*Vwx)ex}*V}!O!&m!O;'S*V;'S;=`*s<%lO*V!R!&vV!b`!dp!ePOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!'dX!b`!dpOr*Vrs(Vsv*Vwx)ex!q*V!q!r!(P!r;'S*V;'S;=`*s<%lO*V!R!(WX!b`!dpOr*Vrs(Vsv*Vwx)ex!e*V!e!f!(s!f;'S*V;'S;=`*s<%lO*V!R!(zX!b`!dpOr*Vrs(Vsv*Vwx)ex!v*V!v!w!)g!w;'S*V;'S;=`*s<%lO*V!R!)nX!b`!dpOr*Vrs(Vsv*Vwx)ex!{*V!{!|!*Z!|;'S*V;'S;=`*s<%lO*V!R!*bX!b`!dpOr*Vrs(Vsv*Vwx)ex!r*V!r!s!*}!s;'S*V;'S;=`*s<%lO*V!R!+UX!b`!dpOr*Vrs(Vsv*Vwx)ex!g*V!g!h!+q!h;'S*V;'S;=`*s<%lO*V!R!+xY!b`!dpOr!+qrs!,hsv!+qvw!-Swx!.[x!`!+q!`!a!/j!a;'S!+q;'S;=`!0Y<%lO!+qq!,mV!dpOv!,hvx!-Sx!`!,h!`!a!-q!a;'S!,h;'S;=`!.U<%lO!,hP!-VTO!`!-S!`!a!-f!a;'S!-S;'S;=`!-k<%lO!-SP!-kO|PP!-nP;=`<%l!-Sq!-xS!dp|POv(Vx;'S(V;'S;=`(h<%lO(Vq!.XP;=`<%l!,ha!.aX!b`Or!.[rs!-Ssv!.[vw!-Sw!`!.[!`!a!.|!a;'S!.[;'S;=`!/d<%lO!.[a!/TT!b`|POr)esv)ew;'S)e;'S;=`)y<%lO)ea!/gP;=`<%l!.[!R!/sV!b`!dp|POr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!0]P;=`<%l!+q!R!0gX!b`!dpOr*Vrs(Vsv*Vwx)ex#c*V#c#d!1S#d;'S*V;'S;=`*s<%lO*V!R!1ZX!b`!dpOr*Vrs(Vsv*Vwx)ex#V*V#V#W!1v#W;'S*V;'S;=`*s<%lO*V!R!1}X!b`!dpOr*Vrs(Vsv*Vwx)ex#h*V#h#i!2j#i;'S*V;'S;=`*s<%lO*V!R!2qX!b`!dpOr*Vrs(Vsv*Vwx)ex#m*V#m#n!3^#n;'S*V;'S;=`*s<%lO*V!R!3eX!b`!dpOr*Vrs(Vsv*Vwx)ex#d*V#d#e!4Q#e;'S*V;'S;=`*s<%lO*V!R!4XX!b`!dpOr*Vrs(Vsv*Vwx)ex#X*V#X#Y!+q#Y;'S*V;'S;=`*s<%lO*V!R!4{Y!b`!dpOr!4trs!5ksv!4tvw!6Vwx!8]x!a!4t!a!b!:]!b;'S!4t;'S;=`!;r<%lO!4tq!5pV!dpOv!5kvx!6Vx!a!5k!a!b!7W!b;'S!5k;'S;=`!8V<%lO!5kP!6YTO!a!6V!a!b!6i!b;'S!6V;'S;=`!7Q<%lO!6VP!6lTO!`!6V!`!a!6{!a;'S!6V;'S;=`!7Q<%lO!6VP!7QOyPP!7TP;=`<%l!6Vq!7]V!dpOv!5kvx!6Vx!`!5k!`!a!7r!a;'S!5k;'S;=`!8V<%lO!5kq!7yS!dpyPOv(Vx;'S(V;'S;=`(h<%lO(Vq!8YP;=`<%l!5ka!8bX!b`Or!8]rs!6Vsv!8]vw!6Vw!a!8]!a!b!8}!b;'S!8];'S;=`!:V<%lO!8]a!9SX!b`Or!8]rs!6Vsv!8]vw!6Vw!`!8]!`!a!9o!a;'S!8];'S;=`!:V<%lO!8]a!9vT!b`yPOr)esv)ew;'S)e;'S;=`)y<%lO)ea!:YP;=`<%l!8]!R!:dY!b`!dpOr!4trs!5ksv!4tvw!6Vwx!8]x!`!4t!`!a!;S!a;'S!4t;'S;=`!;r<%lO!4t!R!;]V!b`!dpyPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!;uP;=`<%l!4t!V!<TXjSaP!b`!dpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X",tokenizers:[xTr,wTr,STr,bTr,gTr,yTr,0,1,2,3,4,5],topRules:{Document:[0,16]},dialects:{noMatch:0,selfClosing:515},tokenPrec:517});function tQe(e,t){let r=Object.create(null);for(let n of e.getChildren(JUe)){let i=n.getChild(eTr),s=n.getChild(FZ)||n.getChild(KUe);i&&(r[t.read(i.from,i.to)]=s?s.type.id==FZ?t.read(s.from+1,s.to-1):t.read(s.from,s.to):"")}return r}function obe(e,t){let r=e.getChild(KCr);return r?t.read(r.from,r.to):" "}function FL(e,t,r){let n;for(let i of r)if(!i.attrs||i.attrs(n||(n=tQe(e.node.parent.firstChild,t))))return{parser:i.parser};return null}function rQe(e=[],t=[]){let r=[],n=[],i=[],s=[];for(let a of e)(a.tag=="script"?r:a.tag=="style"?n:a.tag=="textarea"?i:s).push(a);let o=t.length?Object.create(null):null;for(let a of t)(o[a.name]||(o[a.name]=[])).push(a);return qDe((a,l)=>{let c=a.type.id;if(c==tTr)return FL(a,l,r);if(c==rTr)return FL(a,l,n);if(c==nTr)return FL(a,l,i);if(c==YUe&&s.length){let u=a.node,d=u.firstChild,f=d&&obe(d,l),m;if(f){for(let g of s)if(g.tag==f&&(!g.attrs||g.attrs(m||(m=tQe(d,l))))){let v=u.lastChild,b=v.type.id==sTr?v.from:u.to;if(b>d.to)return{parser:g.parser,overlay:[{from:d.to,to:b}]}}}}if(o&&c==JUe){let u=a.node,d;if(d=u.firstChild){let f=o[l.read(d.from,d.to)];if(f)for(let m of f){if(m.tagName&&m.tagName!=obe(u.parent,l))continue;let g=u.lastChild;if(g.type.id==FZ){let v=g.from+1,b=g.lastChild,w=g.to-(b&&b.isError?0:1);if(w>v)return{parser:m.parser,overlay:[{from:v,to:w}]}}else if(g.type.id==KUe)return{parser:m.parser,overlay:[{from:g.from,to:g.to}]}}}}return null})}const kTr=122,abe=1,ETr=123,CTr=124,nQe=2,TTr=125,DTr=3,ATr=4,iQe=[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],PTr=58,$Tr=40,sQe=95,ITr=91,G$=45,NTr=46,RTr=35,MTr=37,jTr=38,FTr=92,LTr=10,zTr=42;function zC(e){return e>=65&&e<=90||e>=97&&e<=122||e>=161}function Uee(e){return e>=48&&e<=57}function lbe(e){return Uee(e)||e>=97&&e<=102||e>=65&&e<=70}const oQe=(e,t,r)=>(n,i)=>{for(let s=!1,o=0,a=0;;a++){let{next:l}=n;if(zC(l)||l==G$||l==sQe||s&&Uee(l))!s&&(l!=G$||a>0)&&(s=!0),o===a&&l==G$&&o++,n.advance();else if(l==FTr&&n.peek(1)!=LTr){if(n.advance(),lbe(n.next)){do n.advance();while(lbe(n.next));n.next==32&&n.advance()}else n.next>-1&&n.advance();s=!0}else{s&&n.acceptToken(o==2&&i.canShift(nQe)?t:l==$Tr?r:e);break}}},BTr=new bc(oQe(ETr,nQe,CTr)),VTr=new bc(oQe(TTr,DTr,ATr)),UTr=new bc(e=>{if(iQe.includes(e.peek(-1))){let{next:t}=e;(zC(t)||t==sQe||t==RTr||t==NTr||t==zTr||t==ITr||t==PTr&&zC(e.peek(1))||t==G$||t==jTr)&&e.acceptToken(kTr)}}),QTr=new bc(e=>{if(!iQe.includes(e.peek(-1))){let{next:t}=e;if(t==MTr&&(e.advance(),e.acceptToken(abe)),zC(t)){do e.advance();while(zC(e.next)||Uee(e.next));e.acceptToken(abe)}}}),ZTr=E0({"AtKeyword import charset namespace keyframes media supports":Y.definitionKeyword,"from to selector":Y.keyword,NamespaceName:Y.namespace,KeyframeName:Y.labelName,KeyframeRangeName:Y.operatorKeyword,TagName:Y.tagName,ClassName:Y.className,PseudoClassName:Y.constant(Y.className),IdName:Y.labelName,"FeatureName PropertyName":Y.propertyName,AttributeName:Y.attributeName,NumberLiteral:Y.number,KeywordQuery:Y.keyword,UnaryQueryOp:Y.operatorKeyword,"CallTag ValueName":Y.atom,VariableName:Y.variableName,Callee:Y.operatorKeyword,Unit:Y.unit,"UniversalSelector NestingSelector":Y.definitionOperator,"MatchOp CompareOp":Y.compareOperator,"ChildOp SiblingOp, LogicOp":Y.logicOperator,BinOp:Y.arithmeticOperator,Important:Y.modifier,Comment:Y.blockComment,ColorLiteral:Y.color,"ParenthesizedContent StringLiteral":Y.string,":":Y.punctuation,"PseudoOp #":Y.derefOperator,"; ,":Y.separator,"( )":Y.paren,"[ ]":Y.squareBracket,"{ }":Y.brace}),qTr={__proto__:null,lang:38,"nth-child":38,"nth-last-child":38,"nth-of-type":38,"nth-last-of-type":38,dir:38,"host-context":38,if:84,url:124,"url-prefix":124,domain:124,regexp:124},HTr={__proto__:null,or:98,and:98,not:106,only:106,layer:170},WTr={__proto__:null,selector:112,layer:166},GTr={__proto__:null,"@import":162,"@media":174,"@charset":178,"@namespace":182,"@keyframes":188,"@supports":200,"@scope":204},XTr={__proto__:null,to:207},YTr=Qv.deserialize({version:14,states:"EbQYQdOOO#qQdOOP#xO`OOOOQP'#Cf'#CfOOQP'#Ce'#CeO#}QdO'#ChO$nQaO'#CcO$xQdO'#CkO%TQdO'#DpO%YQdO'#DrO%_QdO'#DuO%_QdO'#DxOOQP'#FV'#FVO&eQhO'#EhOOQS'#FU'#FUOOQS'#Ek'#EkQYQdOOO&lQdO'#EOO&PQhO'#EUO&lQdO'#EWO'aQdO'#EYO'lQdO'#E]O'tQhO'#EcO(VQdO'#EeO(bQaO'#CfO)VQ`O'#D{O)[Q`O'#F`O)gQdO'#F`QOQ`OOP)qO&jO'#CaPOOO)C@t)C@tOOQP'#Cj'#CjOOQP,59S,59SO#}QdO,59SO)|QdO,59VO%TQdO,5:[O%YQdO,5:^O%_QdO,5:aO%_QdO,5:cO%_QdO,5:dO%_QdO'#ErO*XQ`O,58}O*aQdO'#DzOOQS,58},58}OOQP'#Cn'#CnOOQO'#Dn'#DnOOQP,59V,59VO*hQ`O,59VO*mQ`O,59VOOQP'#Dq'#DqOOQP,5:[,5:[OOQO'#Ds'#DsO*rQpO,5:^O+]QaO,5:aO+sQaO,5:dOOQW'#DZ'#DZO,ZQhO'#DdO,xQhO'#FaO'tQhO'#DbO-WQ`O'#DhOOQW'#F['#F[O-]Q`O,5;SO-eQ`O'#DeOOQS-E8i-E8iOOQ['#Cs'#CsO-jQdO'#CtO.QQdO'#CzO.hQdO'#C}O/OQ!pO'#DPO1RQ!jO,5:jOOQO'#DU'#DUO*mQ`O'#DTO1cQ!nO'#FXO3`Q`O'#DVO3eQ`O'#DkOOQ['#FX'#FXO-`Q`O,5:pO3jQ!bO,5:rOOQS'#E['#E[O3rQ`O,5:tO3wQdO,5:tOOQO'#E_'#E_O4PQ`O,5:wO4UQhO,5:}O%_QdO'#DgOOQS,5;P,5;PO-eQ`O,5;PO4^QdO,5;PO4fQdO,5:gO4vQdO'#EtO5TQ`O,5;zO5TQ`O,5;zPOOO'#Ej'#EjP5`O&jO,58{POOO,58{,58{OOQP1G.n1G.nOOQP1G.q1G.qO*hQ`O1G.qO*mQ`O1G.qOOQP1G/v1G/vO5kQpO1G/xO5sQaO1G/{O6ZQaO1G/}O6qQaO1G0OO7XQaO,5;^OOQO-E8p-E8pOOQS1G.i1G.iO7cQ`O,5:fO7hQdO'#DoO7oQdO'#CrOOQP1G/x1G/xO&lQdO1G/xO7vQ!jO'#DZO8UQ!bO,59vO8^QhO,5:OOOQO'#F]'#F]O8XQ!bO,59zO'tQhO,59xO8fQhO'#EvO8sQ`O,5;{O9OQhO,59|O9uQhO'#DiOOQW,5:S,5:SOOQS1G0n1G0nOOQW,5:P,5:PO9|Q!fO'#FYOOQS'#FY'#FYOOQS'#Em'#EmO;^QdO,59`OOQ[,59`,59`O;tQdO,59fOOQ[,59f,59fO<[QdO,59iOOQ[,59i,59iOOQ[,59k,59kO&lQdO,59mO<rQhO'#EQOOQW'#EQ'#EQO=WQ`O1G0UO1[QhO1G0UOOQ[,59o,59oO'tQhO'#DXOOQ[,59q,59qO=]Q#tO,5:VOOQS1G0[1G0[OOQS1G0^1G0^OOQS1G0`1G0`O=hQ`O1G0`O=mQdO'#E`OOQS1G0c1G0cOOQS1G0i1G0iO=xQaO,5:RO-`Q`O1G0kOOQS1G0k1G0kO-eQ`O1G0kO>PQ!fO1G0ROOQO1G0R1G0ROOQO,5;`,5;`O>gQdO,5;`OOQO-E8r-E8rO>tQ`O1G1fPOOO-E8h-E8hPOOO1G.g1G.gOOQP7+$]7+$]OOQP7+%d7+%dO&lQdO7+%dOOQS1G0Q1G0QO?PQaO'#F_O?ZQ`O,5:ZO?`Q!fO'#ElO@^QdO'#FWO@hQ`O,59^O@mQ!bO7+%dO&lQdO1G/bO@uQhO1G/fOOQW1G/j1G/jOOQW1G/d1G/dOAWQhO,5;bOOQO-E8t-E8tOAfQhO'#DZOAtQhO'#F^OBPQ`O'#F^OBUQ`O,5:TOOQS-E8k-E8kOOQ[1G.z1G.zOOQ[1G/Q1G/QOOQ[1G/T1G/TOOQ[1G/X1G/XOBZQdO,5:lOOQS7+%p7+%pOB`Q`O7+%pOBeQhO'#DYOBmQ`O,59sO'tQhO,59sOOQ[1G/q1G/qOBuQ`O1G/qOOQS7+%z7+%zOBzQbO'#DPOOQO'#Eb'#EbOCYQ`O'#EaOOQO'#Ea'#EaOCeQ`O'#EwOCmQdO,5:zOOQS,5:z,5:zOOQ[1G/m1G/mOOQS7+&V7+&VO-`Q`O7+&VOCxQ!fO'#EsO&lQdO'#EsOEPQdO7+%mOOQO7+%m7+%mOOQO1G0z1G0zOEdQ!bO<<IOOElQdO'#EqOEvQ`O,5;yOOQP1G/u1G/uOOQS-E8j-E8jOFOQdO'#EpOFYQ`O,5;rOOQ]1G.x1G.xOOQP<<IO<<IOOFbQdO7+$|OOQO'#D]'#D]OFiQ!bO7+%QOFqQhO'#EoOF{Q`O,5;xO&lQdO,5;xOOQW1G/o1G/oOOQO'#ES'#ESOGTQ`O1G0WOOQS<<I[<<I[O&lQdO,59tOGnQhO1G/_OOQ[1G/_1G/_OGuQ`O1G/_OOQW-E8l-E8lOOQ[7+%]7+%]OOQO,5:{,5:{O=pQdO'#ExOCeQ`O,5;cOOQS,5;c,5;cOOQS-E8u-E8uOOQS1G0f1G0fOOQS<<Iq<<IqOG}Q!fO,5;_OOQS-E8q-E8qOOQO<<IX<<IXOOQPAN>jAN>jOIUQaO,5;]OOQO-E8o-E8oOI`QdO,5;[OOQO-E8n-E8nOOQW<<Hh<<HhOOQW<<Hl<<HlOIjQhO<<HlOI{QhO,5;ZOJWQ`O,5;ZOOQO-E8m-E8mOJ]QdO1G1dOBZQdO'#EuOJgQ`O7+%rOOQW7+%r7+%rOJoQ!bO1G/`OOQ[7+$y7+$yOJzQhO7+$yPKRQ`O'#EnOOQO,5;d,5;dOOQO-E8v-E8vOOQS1G0}1G0}OKWQ`OAN>WO&lQdO1G0uOK]Q`O7+'OOOQO,5;a,5;aOOQO-E8s-E8sOOQW<<I^<<I^OOQ[<<He<<HePOQW,5;Y,5;YOOQWG23rG23rOKeQdO7+&a",stateData:"Kx~O#sOS#tQQ~OW[OZ[O]TO`VOaVOi]OjWOmXO!jYO!mZO!saO!ybO!{cO!}dO#QeO#WfO#YgO#oRO~OQiOW[OZ[O]TO`VOaVOi]OjWOmXO!jYO!mZO!saO!ybO!{cO!}dO#QeO#WfO#YgO#ohO~O#m$SP~P!dO#tmO~O#ooO~O]qO`rOarOjsOmtO!juO!mwO#nvO~OpzO!^xO~P$SOc!QO#o|O#p}O~O#o!RO~O#o!TO~OW[OZ[O]TO`VOaVOjWOmXO!jYO!mZO#oRO~OS!]Oe!YO!V![O!Y!`O#q!XOp$TP~Ok$TP~P&POQ!jOe!cOm!dOp!eOr!mOt!mOz!kO!`!lO#o!bO#p!hO#}!fO~Ot!qO!`!lO#o!pO~Ot!sO#o!sO~OS!]Oe!YO!V![O!Y!`O#q!XO~Oe!vOpzO#Z!xO~O]YX`YX`!pXaYXjYXmYXpYX!^YX!jYX!mYX#nYX~O`!zO~Ok!{O#m$SXo$SX~O#m$SXo$SX~P!dO#u#OO#v#OO#w#QO~Oc#UO#o|O#p}O~OpzO!^xO~Oo$SP~P!dOe#`O~Oe#aO~Ol#bO!h#cO~O]qO`rOarOjsOmtO~Op!ia!^!ia!j!ia!m!ia#n!iad!ia~P*zOp!la!^!la!j!la!m!la#n!lad!la~P*zOR#gOS!]Oe!YOr#gOt#gO!V![O!Y!`O#q#dO#}!fO~O!R#iO!^#jOk$TXp$TX~Oe#mO~Ok#oOpzO~Oe!vO~O]#rO`#rOd#uOi#rOj#rOk#rO~P&lO]#rO`#rOi#rOj#rOk#rOl#wO~P&lO]#rO`#rOi#rOj#rOk#rOo#yO~P&lOP#zOSsXesXksXvsX!VsX!YsX!usX!wsX#qsX!TsXQsX]sX`sXdsXisXjsXmsXpsXrsXtsXzsX!`sX#osX#psX#}sXlsXosX!^sX!qsX#msX~Ov#{O!u#|O!w#}Ok$TP~P'tOe#aOS#{Xk#{Xv#{X!V#{X!Y#{X!u#{X!w#{X#q#{XQ#{X]#{X`#{Xd#{Xi#{Xj#{Xm#{Xp#{Xr#{Xt#{Xz#{X!`#{X#o#{X#p#{X#}#{Xl#{Xo#{X!^#{X!q#{X#m#{X~Oe$RO~Oe$TO~Ok$VOv#{O~Ok$WO~Ot$XO!`!lO~Op$YO~OpzO!R#iO~OpzO#Z$`O~O!q$bOk!oa#m!oao!oa~P&lOk#hX#m#hXo#hX~P!dOk!{O#m$Sao$Sa~O#u#OO#v#OO#w$hO~Ol$jO!h$kO~Op!ii!^!ii!j!ii!m!ii#n!iid!ii~P*zOp!ki!^!ki!j!ki!m!ki#n!kid!ki~P*zOp!li!^!li!j!li!m!li#n!lid!li~P*zOp#fa!^#fa~P$SOo$lO~Od$RP~P%_Od#zP~P&lO`!PXd}X!R}X!T!PX~O`$sO!T$tO~Od$uO!R#iO~Ok#jXp#jX!^#jX~P'tO!^#jOk$Tap$Ta~O!R#iOk!Uap!Ua!^!Uad!Ua`!Ua~OS!]Oe!YO!V![O!Y!`O#q$yO~Od$QP~P9dOv#{OQ#|X]#|X`#|Xd#|Xe#|Xi#|Xj#|Xk#|Xm#|Xp#|Xr#|Xt#|Xz#|X!`#|X#o#|X#p#|X#}#|Xl#|Xo#|X~O]#rO`#rOd%OOi#rOj#rOk#rO~P&lO]#rO`#rOi#rOj#rOk#rOl%PO~P&lO]#rO`#rOi#rOj#rOk#rOo%QO~P&lOe%SOS!tXk!tX!V!tX!Y!tX#q!tX~Ok%TO~Od%YOt%ZO!a%ZO~Ok%[O~Oo%cO#o%^O#}%]O~Od%dO~P$SOv#{O!^%hO!q%jOk!oi#m!oio!oi~P&lOk#ha#m#hao#ha~P!dOk!{O#m$Sio$Si~O!^%mOd$RX~P$SOd%oO~Ov#{OQ#`Xd#`Xe#`Xm#`Xp#`Xr#`Xt#`Xz#`X!^#`X!`#`X#o#`X#p#`X#}#`X~O!^%qOd#zX~P&lOd%sO~Ol%tOv#{O~OR#gOr#gOt#gO#q%vO#}!fO~O!R#iOk#jap#ja!^#ja~O`!PXd}X!R}X!^}X~O!R#iO!^%xOd$QX~O`%zO~Od%{O~O#o%|O~Ok&OO~O`&PO!R#iO~Od&ROk&QO~Od&UO~OP#zOpsX!^sXdsX~O#}%]Op#TX!^#TX~OpzO!^&WO~Oo&[O#o%^O#}%]O~Ov#{OQ#gXe#gXk#gXm#gXp#gXr#gXt#gXz#gX!^#gX!`#gX!q#gX#m#gX#o#gX#p#gX#}#gXo#gX~O!^%hO!q&`Ok!oq#m!oqo!oq~P&lOl&aOv#{O~Od#eX!^#eX~P%_O!^%mOd$Ra~Od#dX!^#dX~P&lO!^%qOd#za~Od&fO~P&lOd&gO!T&hO~Od#cX!^#cX~P9dO!^%xOd$Qa~O]&mOd&oO~OS#bae#ba!V#ba!Y#ba#q#ba~Od&qO~PG]Od&qOk&rO~Ov#{OQ#gae#gak#gam#gap#gar#gat#gaz#ga!^#ga!`#ga!q#ga#m#ga#o#ga#p#ga#}#gao#ga~Od#ea!^#ea~P$SOd#da!^#da~P&lOR#gOr#gOt#gO#q%vO#}%]O~O!R#iOd#ca!^#ca~O`&xO~O!^%xOd$Qi~P&lO]&mOd&|O~Ov#{Od|ik|i~Od&}O~PG]Ok'OO~Od'PO~O!^%xOd$Qq~Od#cq!^#cq~P&lO#s!a#t#}]#}v!m~",goto:"2h$UPPPPP$VP$YP$c$uP$cP%X$cPP%_PPP%e%o%oPPPPP%oPP%oP&]P%oP%o'W%oP't'w'}'}(^'}P'}P'}P'}'}P(m'}(yP(|PP)p)v$c)|$c*SP$cP$c$cP*Y*{+YP$YP+aP+dP$YP$YP$YP+j$YP+m+p+s+z$YP$YPP$YP,P,V,f,|-[-b-l-r-x.O.U.`.f.l.rPPPPPPPPPPP.x/R/w/z0|P1U1u2O2R2U2[RnQ_^OP`kz!{$dq[OPYZ`kuvwxz!v!{#`$d%mqSOPYZ`kuvwxz!v!{#`$d%mQpTR#RqQ!OVR#SrQ#S!QS$Q!i!jR$i#U!V!mac!c!d!e!z#a#c#t#v#x#{$a$k$p$s%h%i%q%u%z&P&d&l&x'Q!U!mac!c!d!e!z#a#c#t#v#x#{$a$k$p$s%h%i%q%u%z&P&d&l&x'QU#g!Y$t&hU%`$Y%b&WR&V%_!V!iac!c!d!e!z#a#c#t#v#x#{$a$k$p$s%h%i%q%u%z&P&d&l&x'QR$S!kQ%W$RR&S%Xk!^]bf!Y![!g#i#j#m$P$R%X%xQ#e!YQ${#mQ%w$tQ&j%xR&w&hQ!ygQ#p!`Q$^!xR%f$`R#n!]!U!mac!c!d!e!z#a#c#t#v#x#{$a$k$p$s%h%i%q%u%z&P&d&l&x'QQ!qdR$X!rQ!PVR#TrQ#S!PR$i#TQ!SWR#VsQ!UXR#WtQ{UQ!wgQ#^yQ#o!_Q$U!nQ$[!uQ$_!yQ%e$^Q&Y%aQ&]%fR&v&XSjPzQ!}kQ$c!{R%k$dZiPkz!{$dR$P!gQ%}%SR&z&mR!rdR!teR$Z!tS%a$Y%bR&t&WV%_$Y%b&WQ#PmR$g#PQ`OSkPzU!a`k$dR$d!{Q$p#aY%p$p%u&d&l'QQ%u$sQ&d%qQ&l%zR'Q&xQ#t!cQ#v!dQ#x!eV$}#t#v#xQ%X$RR&T%XQ%y$zS&k%y&yR&y&lQ%r$pR&e%rQ%n$mR&c%nQyUR#]yQ%i$aR&_%iQ!|jS$e!|$fR$f!}Q&n%}R&{&nQ#k!ZR$x#kQ%b$YR&Z%bQ&X%aR&u&X__OP`kz!{$d^UOP`kz!{$dQ!VYQ!WZQ#XuQ#YvQ#ZwQ#[xQ$]!vQ$m#`R&b%mR$q#aQ!gaQ!oc[#q!c!d!e#t#v#xQ$a!zd$o#a$p$s%q%u%z&d&l&x'QQ$r#cQ%R#{S%g$a%iQ%l$kQ&^%hR&p&P]#s!c!d!e#t#v#xW!Z]b!g$PQ!ufQ#f!YQ#l![Q$v#iQ$w#jQ$z#mS%V$R%XR&i%xQ#h!YQ%w$tR&w&hR$|#mR$n#`QlPR#_zQ!_]Q!nbQ$O!gR%U$P",nodeNames:"⚠ Unit VariableName VariableName QueryCallee Comment StyleSheet RuleSet UniversalSelector TagSelector 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 , CallLiteral CallTag ParenthesizedContent PseudoClassName ArgList IdSelector IdName AttributeSelector AttributeName MatchOp 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 AtRule Styles",maxTerm:143,nodeProps:[["isolate",-2,5,36,""],["openedBy",20,"(",28,"[",31,"{"],["closedBy",21,")",29,"]",32,"}"]],propSources:[ZTr],skippedNodes:[0,5,106],repeatNodeCount:15,tokenData:"JQ~R!YOX$qX^%i^p$qpq%iqr({rs-ust/itu6Wuv$qvw7Qwx7cxy9Qyz9cz{9h{|:R|}>t}!O?V!O!P?t!P!Q@]!Q![AU![!]BP!]!^B{!^!_C^!_!`DY!`!aDm!a!b$q!b!cEn!c!}$q!}#OG{#O#P$q#P#QH^#Q#R6W#R#o$q#o#pHo#p#q6W#q#rIQ#r#sIc#s#y$q#y#z%i#z$f$q$f$g%i$g#BY$q#BY#BZ%i#BZ$IS$q$IS$I_%i$I_$I|$q$I|$JO%i$JO$JT$q$JT$JU%i$JU$KV$q$KV$KW%i$KW&FU$q&FU&FV%i&FV;'S$q;'S;=`Iz<%lO$q`$tSOy%Qz;'S%Q;'S;=`%c<%lO%Q`%VS!a`Oy%Qz;'S%Q;'S;=`%c<%lO%Q`%fP;=`<%l%Q~%nh#s~OX%QX^'Y^p%Qpq'Yqy%Qz#y%Q#y#z'Y#z$f%Q$f$g'Y$g#BY%Q#BY#BZ'Y#BZ$IS%Q$IS$I_'Y$I_$I|%Q$I|$JO'Y$JO$JT%Q$JT$JU'Y$JU$KV%Q$KV$KW'Y$KW&FU%Q&FU&FV'Y&FV;'S%Q;'S;=`%c<%lO%Q~'ah#s~!a`OX%QX^'Y^p%Qpq'Yqy%Qz#y%Q#y#z'Y#z$f%Q$f$g'Y$g#BY%Q#BY#BZ'Y#BZ$IS%Q$IS$I_'Y$I_$I|%Q$I|$JO'Y$JO$JT%Q$JT$JU'Y$JU$KV%Q$KV$KW'Y$KW&FU%Q&FU&FV'Y&FV;'S%Q;'S;=`%c<%lO%Qj)OUOy%Qz#]%Q#]#^)b#^;'S%Q;'S;=`%c<%lO%Qj)gU!a`Oy%Qz#a%Q#a#b)y#b;'S%Q;'S;=`%c<%lO%Qj*OU!a`Oy%Qz#d%Q#d#e*b#e;'S%Q;'S;=`%c<%lO%Qj*gU!a`Oy%Qz#c%Q#c#d*y#d;'S%Q;'S;=`%c<%lO%Qj+OU!a`Oy%Qz#f%Q#f#g+b#g;'S%Q;'S;=`%c<%lO%Qj+gU!a`Oy%Qz#h%Q#h#i+y#i;'S%Q;'S;=`%c<%lO%Qj,OU!a`Oy%Qz#T%Q#T#U,b#U;'S%Q;'S;=`%c<%lO%Qj,gU!a`Oy%Qz#b%Q#b#c,y#c;'S%Q;'S;=`%c<%lO%Qj-OU!a`Oy%Qz#h%Q#h#i-b#i;'S%Q;'S;=`%c<%lO%Qj-iS!qY!a`Oy%Qz;'S%Q;'S;=`%c<%lO%Q~-xWOY-uZr-urs.bs#O-u#O#P.g#P;'S-u;'S;=`/c<%lO-u~.gOt~~.jRO;'S-u;'S;=`.s;=`O-u~.vXOY-uZr-urs.bs#O-u#O#P.g#P;'S-u;'S;=`/c;=`<%l-u<%lO-u~/fP;=`<%l-uj/nYjYOy%Qz!Q%Q!Q![0^![!c%Q!c!i0^!i#T%Q#T#Z0^#Z;'S%Q;'S;=`%c<%lO%Qj0cY!a`Oy%Qz!Q%Q!Q![1R![!c%Q!c!i1R!i#T%Q#T#Z1R#Z;'S%Q;'S;=`%c<%lO%Qj1WY!a`Oy%Qz!Q%Q!Q![1v![!c%Q!c!i1v!i#T%Q#T#Z1v#Z;'S%Q;'S;=`%c<%lO%Qj1}YrY!a`Oy%Qz!Q%Q!Q![2m![!c%Q!c!i2m!i#T%Q#T#Z2m#Z;'S%Q;'S;=`%c<%lO%Qj2tYrY!a`Oy%Qz!Q%Q!Q![3d![!c%Q!c!i3d!i#T%Q#T#Z3d#Z;'S%Q;'S;=`%c<%lO%Qj3iY!a`Oy%Qz!Q%Q!Q![4X![!c%Q!c!i4X!i#T%Q#T#Z4X#Z;'S%Q;'S;=`%c<%lO%Qj4`YrY!a`Oy%Qz!Q%Q!Q![5O![!c%Q!c!i5O!i#T%Q#T#Z5O#Z;'S%Q;'S;=`%c<%lO%Qj5TY!a`Oy%Qz!Q%Q!Q![5s![!c%Q!c!i5s!i#T%Q#T#Z5s#Z;'S%Q;'S;=`%c<%lO%Qj5zSrY!a`Oy%Qz;'S%Q;'S;=`%c<%lO%Qd6ZUOy%Qz!_%Q!_!`6m!`;'S%Q;'S;=`%c<%lO%Qd6tS!hS!a`Oy%Qz;'S%Q;'S;=`%c<%lO%Qb7VSZQOy%Qz;'S%Q;'S;=`%c<%lO%Q~7fWOY7cZw7cwx.bx#O7c#O#P8O#P;'S7c;'S;=`8z<%lO7c~8RRO;'S7c;'S;=`8[;=`O7c~8_XOY7cZw7cwx.bx#O7c#O#P8O#P;'S7c;'S;=`8z;=`<%l7c<%lO7c~8}P;=`<%l7cj9VSeYOy%Qz;'S%Q;'S;=`%c<%lO%Q~9hOd~n9oUWQvWOy%Qz!_%Q!_!`6m!`;'S%Q;'S;=`%c<%lO%Qj:YWvW!mQOy%Qz!O%Q!O!P:r!P!Q%Q!Q![=w![;'S%Q;'S;=`%c<%lO%Qj:wU!a`Oy%Qz!Q%Q!Q![;Z![;'S%Q;'S;=`%c<%lO%Qj;bY!a`#}YOy%Qz!Q%Q!Q![;Z![!g%Q!g!h<Q!h#X%Q#X#Y<Q#Y;'S%Q;'S;=`%c<%lO%Qj<VY!a`Oy%Qz{%Q{|<u|}%Q}!O<u!O!Q%Q!Q![=^![;'S%Q;'S;=`%c<%lO%Qj<zU!a`Oy%Qz!Q%Q!Q![=^![;'S%Q;'S;=`%c<%lO%Qj=eU!a`#}YOy%Qz!Q%Q!Q![=^![;'S%Q;'S;=`%c<%lO%Qj>O[!a`#}YOy%Qz!O%Q!O!P;Z!P!Q%Q!Q![=w![!g%Q!g!h<Q!h#X%Q#X#Y<Q#Y;'S%Q;'S;=`%c<%lO%Qj>yS!^YOy%Qz;'S%Q;'S;=`%c<%lO%Qj?[WvWOy%Qz!O%Q!O!P:r!P!Q%Q!Q![=w![;'S%Q;'S;=`%c<%lO%Qj?yU]YOy%Qz!Q%Q!Q![;Z![;'S%Q;'S;=`%c<%lO%Q~@bTvWOy%Qz{@q{;'S%Q;'S;=`%c<%lO%Q~@xS!a`#t~Oy%Qz;'S%Q;'S;=`%c<%lO%QjAZ[#}YOy%Qz!O%Q!O!P;Z!P!Q%Q!Q![=w![!g%Q!g!h<Q!h#X%Q#X#Y<Q#Y;'S%Q;'S;=`%c<%lO%QjBUU`YOy%Qz![%Q![!]Bh!];'S%Q;'S;=`%c<%lO%QbBoSaQ!a`Oy%Qz;'S%Q;'S;=`%c<%lO%QjCQSkYOy%Qz;'S%Q;'S;=`%c<%lO%QhCcU!TWOy%Qz!_%Q!_!`Cu!`;'S%Q;'S;=`%c<%lO%QhC|S!TW!a`Oy%Qz;'S%Q;'S;=`%c<%lO%QlDaS!TW!hSOy%Qz;'S%Q;'S;=`%c<%lO%QjDtV!jQ!TWOy%Qz!_%Q!_!`Cu!`!aEZ!a;'S%Q;'S;=`%c<%lO%QbEbS!jQ!a`Oy%Qz;'S%Q;'S;=`%c<%lO%QjEqYOy%Qz}%Q}!OFa!O!c%Q!c!}GO!}#T%Q#T#oGO#o;'S%Q;'S;=`%c<%lO%QjFfW!a`Oy%Qz!c%Q!c!}GO!}#T%Q#T#oGO#o;'S%Q;'S;=`%c<%lO%QjGV[iY!a`Oy%Qz}%Q}!OGO!O!Q%Q!Q![GO![!c%Q!c!}GO!}#T%Q#T#oGO#o;'S%Q;'S;=`%c<%lO%QjHQSmYOy%Qz;'S%Q;'S;=`%c<%lO%QnHcSl^Oy%Qz;'S%Q;'S;=`%c<%lO%QjHtSpYOy%Qz;'S%Q;'S;=`%c<%lO%QjIVSoYOy%Qz;'S%Q;'S;=`%c<%lO%QfIhU!mQOy%Qz!_%Q!_!`6m!`;'S%Q;'S;=`%c<%lO%Q`I}P;=`<%l$q",tokenizers:[UTr,QTr,BTr,VTr,1,2,3,4,new $I("m~RRYZ[z{a~~g~aO#v~~dP!P!Qg~lO#w~~",28,129)],topRules:{StyleSheet:[0,6],Styles:[1,105]},specialized:[{term:124,get:e=>qTr[e]||-1},{term:125,get:e=>HTr[e]||-1},{term:4,get:e=>WTr[e]||-1},{term:25,get:e=>GTr[e]||-1},{term:123,get:e=>XTr[e]||-1}],tokenPrec:1963});let LL=null;function zL(){if(!LL&&typeof document=="object"&&document.body){let{style:e}=document.body,t=[],r=new Set;for(let n in e)n!="cssText"&&n!="cssFloat"&&typeof e[n]=="string"&&(/[A-Z]/.test(n)&&(n=n.replace(/[A-Z]/g,i=>"-"+i.toLowerCase())),r.has(n)||(t.push(n),r.add(n)));LL=t.sort().map(n=>({type:"property",label:n,apply:n+": "}))}return LL||[]}const cbe=["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"].map(e=>({type:"class",label:e})),ube=["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"].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"].map(e=>({type:"constant",label:e}))),JTr=["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"].map(e=>({type:"type",label:e})),KTr=["@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})),Gp=/^(\w[\w-]*|-\w[\w-]*|)$/,eDr=/^-(-[\w-]*)?$/;function tDr(e,t){var r;if((e.name=="("||e.type.isError)&&(e=e.parent||e),e.name!="ArgList")return!1;let n=(r=e.parent)===null||r===void 0?void 0:r.firstChild;return n?.name!="Callee"?!1:t.sliceString(n.from,n.to)=="var"}const dbe=new ZDe,rDr=["Declaration"];function nDr(e){for(let t=e;;){if(t.type.isTop)return t;if(!(t=t.parent))return e}}function aQe(e,t,r){if(t.to-t.from>4096){let n=dbe.get(t);if(n)return n;let i=[],s=new Set,o=t.cursor(pi.IncludeAnonymous);if(o.firstChild())do for(let a of aQe(e,o.node,r))s.has(a.label)||(s.add(a.label),i.push(a));while(o.nextSibling());return dbe.set(t,i),i}else{let n=[],i=new Set;return t.cursor().iterate(s=>{var o;if(r(s)&&s.matchContext(rDr)&&((o=s.node.nextSibling)===null||o===void 0?void 0:o.name)==":"){let a=e.sliceString(s.from,s.to);i.has(a)||(i.add(a),n.push({label:a,type:"variable"}))}}),n}}const lQe=e=>t=>{let{state:r,pos:n}=t,i=Wn(r).resolveInner(n,-1),s=i.type.isError&&i.from==i.to-1&&r.doc.sliceString(i.from,i.to)=="-";if(i.name=="PropertyName"||(s||i.name=="TagName")&&/^(Block|Styles)$/.test(i.resolve(i.to).name))return{from:i.from,options:zL(),validFor:Gp};if(i.name=="ValueName")return{from:i.from,options:ube,validFor:Gp};if(i.name=="PseudoClassName")return{from:i.from,options:cbe,validFor:Gp};if(e(i)||(t.explicit||s)&&tDr(i,r.doc))return{from:e(i)||s?i.from:n,options:aQe(r.doc,nDr(i),e),validFor:eDr};if(i.name=="TagName"){for(let{parent:l}=i;l;l=l.parent)if(l.name=="Block")return{from:i.from,options:zL(),validFor:Gp};return{from:i.from,options:JTr,validFor:Gp}}if(i.name=="AtKeyword")return{from:i.from,options:KTr,validFor:Gp};if(!t.explicit)return null;let o=i.resolve(n),a=o.childBefore(n);return a&&a.name==":"&&o.name=="PseudoClassSelector"?{from:n,options:cbe,validFor:Gp}:a&&a.name==":"&&o.name=="Declaration"||o.name=="ArgList"?{from:n,options:ube,validFor:Gp}:o.name=="Block"||o.name=="Styles"?{from:n,options:zL(),validFor:Gp}:null},cQe=lQe(e=>e.name=="VariableName"),BC=Gv.define({name:"css",parser:YTr.configure({props:[C0.add({Declaration:Hx()}),T0.add({"Block KeyframeList":qG})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function uQe(){return new Yv(BC,BC.data.of({autocomplete:cQe}))}const iDr=Object.freeze(Object.defineProperty({__proto__:null,css:uQe,cssCompletionSource:cQe,cssLanguage:BC,defineCSSCompletionSource:lQe},Symbol.toStringTag,{value:"Module"})),KO=["_blank","_self","_top","_parent"],BL=["ascii","utf-8","utf-16","latin1","latin1"],VL=["get","post","put","delete"],UL=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],Nl=["true","false"],Vt={},sDr={a:{attrs:{href:null,ping:null,type:null,media:null,target:KO,hreflang:null}},abbr:Vt,address:Vt,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:Vt,aside:Vt,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:Vt,base:{attrs:{href:null,target:KO}},bdi:Vt,bdo:Vt,blockquote:{attrs:{cite:null}},body:Vt,br:Vt,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:UL,formmethod:VL,formnovalidate:["novalidate"],formtarget:KO,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:Vt,center:Vt,cite:Vt,code:Vt,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:Vt,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:Vt,div:Vt,dl:Vt,dt:Vt,em:Vt,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:Vt,figure:Vt,footer:Vt,form:{attrs:{action:null,name:null,"accept-charset":BL,autocomplete:["on","off"],enctype:UL,method:VL,novalidate:["novalidate"],target:KO}},h1:Vt,h2:Vt,h3:Vt,h4:Vt,h5:Vt,h6:Vt,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:Vt,hgroup:Vt,hr:Vt,html:{attrs:{manifest:null}},i:Vt,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:UL,formmethod:VL,formnovalidate:["novalidate"],formtarget:KO,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:Vt,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:Vt,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:Vt,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:BL,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:Vt,noscript:Vt,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:Vt,param:{attrs:{name:null,value:null}},pre:Vt,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:Vt,rt:Vt,ruby:Vt,samp:Vt,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:BL}},section:Vt,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:Vt,source:{attrs:{src:null,type:null,media:null}},span:Vt,strong:Vt,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:Vt,summary:Vt,sup:Vt,table:Vt,tbody:Vt,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:Vt,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:Vt,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:Vt,time:{attrs:{datetime:null}},title:Vt,tr:Vt,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:Vt,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:Vt},dQe={accesskey:null,class:null,contenteditable:Nl,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:Nl,autocorrect:Nl,autocapitalize:Nl,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":Nl,"aria-autocomplete":["inline","list","both","none"],"aria-busy":Nl,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":Nl,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":Nl,"aria-hidden":Nl,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":Nl,"aria-multiselectable":Nl,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":Nl,"aria-relevant":null,"aria-required":Nl,"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},fQe="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 fQe)dQe[e]=null;class VC{constructor(t,r){this.tags={...sDr,...t},this.globalAttrs={...dQe,...r},this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}}VC.default=new VC;function mw(e,t,r=e.length){if(!t)return"";let n=t.firstChild,i=n&&n.getChild("TagName");return i?e.sliceString(i.from,Math.min(i.to,r)):""}function gw(e,t=!1){for(;e;e=e.parent)if(e.name=="Element")if(t)t=!1;else return e;return null}function pQe(e,t,r){let n=r.tags[mw(e,gw(t))];return n?.children||r.allTags}function Qee(e,t){let r=[];for(let n=gw(t);n&&!n.type.isTop;n=gw(n.parent)){let i=mw(e,n);if(i&&n.lastChild.name=="CloseTag")break;i&&r.indexOf(i)<0&&(t.name=="EndTag"||t.from>=n.firstChild.to)&&r.push(i)}return r}const hQe=/^[:\-\.\w\u00b7-\uffff]*$/;function fbe(e,t,r,n,i){let s=/\s*>/.test(e.sliceDoc(i,i+5))?"":">",o=gw(r,r.name=="StartTag"||r.name=="TagName");return{from:n,to:i,options:pQe(e.doc,o,t).map(a=>({label:a,type:"type"})).concat(Qee(e.doc,r).map((a,l)=>({label:"/"+a,apply:"/"+a+s,type:"type",boost:99-l}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function pbe(e,t,r,n){let i=/\s*>/.test(e.sliceDoc(n,n+5))?"":">";return{from:r,to:n,options:Qee(e.doc,t).map((s,o)=>({label:s,apply:s+i,type:"type",boost:99-o})),validFor:hQe}}function oDr(e,t,r,n){let i=[],s=0;for(let o of pQe(e.doc,r,t))i.push({label:"<"+o,type:"type"});for(let o of Qee(e.doc,r))i.push({label:"</"+o+">",type:"type",boost:99-s++});return{from:n,to:n,options:i,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}function aDr(e,t,r,n,i){let s=gw(r),o=s?t.tags[mw(e.doc,s)]:null,a=o&&o.attrs?Object.keys(o.attrs):[],l=o&&o.globalAttrs===!1?a:a.length?a.concat(t.globalAttrNames):t.globalAttrNames;return{from:n,to:i,options:l.map(c=>({label:c,type:"property"})),validFor:hQe}}function lDr(e,t,r,n,i){var s;let o=(s=r.parent)===null||s===void 0?void 0:s.getChild("AttributeName"),a=[],l;if(o){let c=e.sliceDoc(o.from,o.to),u=t.globalAttrs[c];if(!u){let d=gw(r),f=d?t.tags[mw(e.doc,d)]:null;u=f?.attrs&&f.attrs[c]}if(u){let d=e.sliceDoc(n,i).toLowerCase(),f='"',m='"';/^['"]/.test(d)?(l=d[0]=='"'?/^[^"]*$/:/^[^']*$/,f="",m=e.sliceDoc(i,i+1)==d[0]?"":d[0],d=d.slice(1),n++):l=/^[^\s<>='"]*$/;for(let g of u)a.push({label:g,apply:f+g+m,type:"constant"})}}return{from:n,to:i,options:a,validFor:l}}function mQe(e,t){let{state:r,pos:n}=t,i=Wn(r).resolveInner(n,-1),s=i.resolve(n);for(let o=n,a;s==i&&(a=i.childBefore(o));){let l=a.lastChild;if(!l||!l.type.isError||l.from<l.to)break;s=i=a,o=l.from}return i.name=="TagName"?i.parent&&/CloseTag$/.test(i.parent.name)?pbe(r,i,i.from,n):fbe(r,e,i,i.from,n):i.name=="StartTag"||i.name=="IncompleteTag"?fbe(r,e,i,n,n):i.name=="StartCloseTag"||i.name=="IncompleteCloseTag"?pbe(r,i,n,n):i.name=="OpenTag"||i.name=="SelfClosingTag"||i.name=="AttributeName"?aDr(r,e,i,i.name=="AttributeName"?i.from:n,n):i.name=="Is"||i.name=="AttributeValue"||i.name=="UnquotedAttributeValue"?lDr(r,e,i,i.name=="Is"?n:i.from,n):t.explicit&&(s.name=="Element"||s.name=="Text"||s.name=="Document")?oDr(r,e,i,n):null}function gQe(e){return mQe(VC.default,e)}function yQe(e){let{extraTags:t,extraGlobalAttributes:r}=e,n=r||t?new VC(t,r):VC.default;return i=>mQe(n,i)}const cDr=Xc.parser.configure({top:"SingleExpression"}),vQe=[{tag:"script",attrs:e=>e.type=="text/typescript"||e.lang=="ts",parser:VY.parser},{tag:"script",attrs:e=>e.type=="text/babel"||e.type=="text/jsx",parser:UY.parser},{tag:"script",attrs:e=>e.type=="text/typescript-jsx",parser:QY.parser},{tag:"script",attrs(e){return/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(e.type)},parser:cDr},{tag:"script",attrs(e){return!e.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(e.type)},parser:Xc.parser},{tag:"style",attrs(e){return(!e.lang||e.lang=="css")&&(!e.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(e.type))},parser:BC.parser}],bQe=[{name:"style",parser:BC.parser.configure({top:"Styles"})}].concat(fQe.map(e=>({name:e,parser:Xc.parser}))),xQe=Gv.define({name:"html",parser:_Tr.configure({props:[C0.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,r;for(let n=e.node;;){let i=n.lastChild;if(!i||i.name!="Element"||i.to!=n.to)break;t=n=i}return t&&!((r=t.lastChild)&&(r.name=="CloseTag"||r.name=="SelfClosingTag"))?e.lineIndent(t.from)+e.unit:null}}),T0.add({Element(e){let t=e.firstChild,r=e.lastChild;return!t||t.name!="OpenTag"?null:{from:t.to,to:r.name=="CloseTag"?r.from:e.to}}}),z2e.add({"OpenTag CloseTag":e=>e.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:"<!--",close:"-->"}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:"-_"}}),wk=xQe.configure({wrap:rQe(vQe,bQe)});function wQe(e={}){let t="",r;e.matchClosingTags===!1&&(t="noMatch"),e.selfClosingTags===!0&&(t=(t?t+" ":"")+"selfClosing"),(e.nestedLanguages&&e.nestedLanguages.length||e.nestedAttributes&&e.nestedAttributes.length)&&(r=rQe((e.nestedLanguages||[]).concat(vQe),(e.nestedAttributes||[]).concat(bQe)));let n=r?xQe.configure({wrap:r,dialect:t}):t?wk.configure({dialect:t}):wk;return new Yv(n,[wk.data.of({autocomplete:yQe(e)}),e.autoCloseTags!==!1?SQe:[],B3().support,uQe().support])}const hbe=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")),SQe=et.inputHandler.of((e,t,r,n,i)=>{if(e.composing||e.state.readOnly||t!=r||n!=">"&&n!="/"||!wk.isActiveAt(e.state,t,-1))return!1;let s=i(),{state:o}=s,a=o.changeByRange(l=>{var c,u,d;let f=o.doc.sliceString(l.from-1,l.to)==n,{head:m}=l,g=Wn(o).resolveInner(m,-1),v;if(f&&n==">"&&g.name=="EndTag"){let b=g.parent;if(((u=(c=b.parent)===null||c===void 0?void 0:c.lastChild)===null||u===void 0?void 0:u.name)!="CloseTag"&&(v=mw(o.doc,b.parent,m))&&!hbe.has(v)){let w=m+(o.doc.sliceString(m,m+1)===">"?1:0),S=`</${v}>`;return{range:l,changes:{from:m,to:w,insert:S}}}}else if(f&&n=="/"&&g.name=="IncompleteCloseTag"){let b=g.parent;if(g.from==m-2&&((d=b.lastChild)===null||d===void 0?void 0:d.name)!="CloseTag"&&(v=mw(o.doc,b,m))&&!hbe.has(v)){let w=m+(o.doc.sliceString(m,m+1)===">"?1:0),S=`${v}>`;return{range:Ne.cursor(m+S.length,-1),changes:{from:m,to:w,insert:S}}}}return{range:l}});return a.changes.empty?!1:(e.dispatch([s,o.update(a,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),uDr=Object.freeze(Object.defineProperty({__proto__:null,autoCloseTags:SQe,html:wQe,htmlCompletionSource:gQe,htmlCompletionSourceWith:yQe,htmlLanguage:wk},Symbol.toStringTag,{value:"Module"})),OQe=XN({commentTokens:{block:{open:"<!--",close:"-->"}}}),_Qe=new hr,kQe=ECr.configure({props:[T0.add(e=>!e.is("Block")||e.is("Document")||zZ(e)!=null||dDr(e)?void 0:(t,r)=>({from:r.doc.lineAt(t.from).to,to:t.to})),_Qe.add(zZ),C0.add({Document:()=>null}),lg.add({Document:OQe})]});function zZ(e){let t=/^(?:ATX|Setext)Heading(\d)$/.exec(e.name);return t?+t[1]:void 0}function dDr(e){return e.name=="OrderedList"||e.name=="BulletList"}function fDr(e,t){let r=e;for(;;){let n=r.nextSibling,i;if(!n||(i=zZ(n.type))!=null&&i<=t)break;r=n}return r.to}const pDr=T2e.of((e,t,r)=>{for(let n=Wn(e).resolveInner(r,-1);n&&!(n.from<t);n=n.parent){let i=n.type.prop(_Qe);if(i==null)continue;let s=fDr(n,i);if(s>r)return{from:r,to:s}}return null});function Zee(e){return new Gl(OQe,e,[],"markdown")}const EQe=Zee(kQe),hDr=kQe.configure([jCr,LCr,FCr,zCr,{props:[T0.add({Table:(e,t)=>({from:t.doc.lineAt(e.from).to,to:e.to})})]}]),yw=Zee(hDr);function mDr(e,t){return r=>{if(r&&e){let n=null;if(r=/\S*/.exec(r)[0],typeof e=="function"?n=e(r):n=Ee.matchLanguageName(e,r,!0),n instanceof Ee)return n.support?n.support.language.parser:Xv.getSkippingParser(n.load());if(n)return n.parser}return t?t.parser:null}}class QL{constructor(t,r,n,i,s,o,a){this.node=t,this.from=r,this.to=n,this.spaceBefore=i,this.spaceAfter=s,this.type=o,this.item=a}blank(t,r=!0){let n=this.spaceBefore+(this.node.name=="Blockquote"?">":"");if(t!=null){for(;n.length<t;)n+=" ";return n}else{for(let i=this.to-this.from-n.length-this.spaceAfter.length;i>0;i--)n+=" ";return n+(r?this.spaceAfter:"")}}marker(t,r){let n=this.node.name=="OrderedList"?String(+TQe(this.item,t)[2]+r):"";return this.spaceBefore+n+this.type+this.spaceAfter}}function CQe(e,t){let r=[],n=[];for(let i=e;i;i=i.parent){if(i.name=="FencedCode")return n;(i.name=="ListItem"||i.name=="Blockquote")&&r.push(i)}for(let i=r.length-1;i>=0;i--){let s=r[i],o,a=t.lineAt(s.from),l=s.from-a.from;if(s.name=="Blockquote"&&(o=/^ *>( ?)/.exec(a.text.slice(l))))n.push(new QL(s,l,l+o[0].length,"",o[1],">",null));else if(s.name=="ListItem"&&s.parent.name=="OrderedList"&&(o=/^( *)\d+([.)])( *)/.exec(a.text.slice(l)))){let c=o[3],u=o[0].length;c.length>=4&&(c=c.slice(0,c.length-4),u-=4),n.push(new QL(s.parent,l,l+u,o[1],c,o[2],s))}else if(s.name=="ListItem"&&s.parent.name=="BulletList"&&(o=/^( *)([-+*])( {1,4}\[[ xX]\])?( +)/.exec(a.text.slice(l)))){let c=o[4],u=o[0].length;c.length>4&&(c=c.slice(0,c.length-4),u-=4);let d=o[2];o[3]&&(d+=o[3].replace(/[xX]/," ")),n.push(new QL(s.parent,l,l+u,o[1],c,d,s))}}return n}function TQe(e,t){return/^(\s*)(\d+)(?=[.)])/.exec(t.sliceString(e.from,e.from+10))}function ZL(e,t,r,n=0){for(let i=-1,s=e;;){if(s.name=="ListItem"){let a=TQe(s,t),l=+a[2];if(i>=0){if(l!=i+1)return;r.push({from:s.from+a[1].length,to:s.from+a[0].length,insert:String(i+2+n)})}i=l}let o=s.nextSibling;if(!o)break;s=o}}function qee(e,t){let r=/^[ \t]*/.exec(e)[0].length;if(!r||t.facet(Uw)!=" ")return e;let n=bd(e,4,r),i="";for(let s=n;s>0;)s>=4?(i+=" ",s-=4):(i+=" ",s--);return i+e.slice(r)}const DQe=(e={})=>({state:t,dispatch:r})=>{let n=Wn(t),{doc:i}=t,s=null,o=t.changeByRange(a=>{if(!a.empty||!yw.isActiveAt(t,a.from,-1)&&!yw.isActiveAt(t,a.from,1))return s={range:a};let l=a.from,c=i.lineAt(l),u=CQe(n.resolveInner(l,-1),i);for(;u.length&&u[u.length-1].from>l-c.from;)u.pop();if(!u.length)return s={range:a};let d=u[u.length-1];if(d.to-d.spaceAfter.length>l-c.from)return s={range:a};let f=l>=d.to-d.spaceAfter.length&&!/\S/.test(c.text.slice(d.to));if(d.item&&f){let w=d.node.firstChild,S=d.node.getChild("ListItem","ListItem");if(w.to>=l||S&&S.to<l||c.from>0&&!/[^\s>]/.test(i.lineAt(c.from-1).text)||e.nonTightLists===!1){let O=u.length>1?u[u.length-2]:null,k,C="";O&&O.item?(k=c.from+O.from,C=O.marker(i,1)):k=c.from+(O?O.to:0);let T=[{from:k,to:l,insert:C}];return d.node.name=="OrderedList"&&ZL(d.item,i,T,-2),O&&O.node.name=="OrderedList"&&ZL(O.item,i,T),{range:Ne.cursor(k+C.length),changes:T}}else{let O=gbe(u,t,c);return{range:Ne.cursor(l+O.length+1),changes:{from:c.from,insert:O+t.lineBreak}}}}if(d.node.name=="Blockquote"&&f&&c.from){let w=i.lineAt(c.from-1),S=/>\s*$/.exec(w.text);if(S&&S.index==d.from){let O=t.changes([{from:w.from+S.index,to:w.to},{from:c.from+d.from,to:c.to}]);return{range:a.map(O),changes:O}}}let m=[];d.node.name=="OrderedList"&&ZL(d.item,i,m);let g=d.item&&d.item.from<c.from,v="";if(!g||/^[\s\d.)\-+*>]*/.exec(c.text)[0].length>=d.to)for(let w=0,S=u.length-1;w<=S;w++)v+=w==S&&!g?u[w].marker(i,1):u[w].blank(w<S?bd(c.text,4,u[w+1].from)-v.length:null);let b=l;for(;b>c.from&&/\s/.test(c.text.charAt(b-c.from-1));)b--;return v=qee(v,t),gDr(d.node,t.doc)&&(v=gbe(u,t,c)+t.lineBreak+v),m.push({from:b,to:l,insert:t.lineBreak+v}),{range:Ne.cursor(b+v.length+1),changes:m}});return s?!1:(r(t.update(o,{scrollIntoView:!0,userEvent:"input"})),!0)},AQe=DQe();function mbe(e){return e.name=="QuoteMark"||e.name=="ListMark"}function gDr(e,t){if(e.name!="OrderedList"&&e.name!="BulletList")return!1;let r=e.firstChild,n=e.getChild("ListItem","ListItem");if(!n)return!1;let i=t.lineAt(r.to),s=t.lineAt(n.from),o=/^[\s>]*$/.test(i.text);return i.number+(o?0:1)<s.number}function gbe(e,t,r){let n="";for(let i=0,s=e.length-2;i<=s;i++)n+=e[i].blank(i<s?bd(r.text,4,e[i+1].from)-n.length:null,i<s);return qee(n,t)}function yDr(e,t){let r=e.resolveInner(t,-1),n=t;mbe(r)&&(n=r.from,r=r.parent);for(let i;i=r.childBefore(n);)if(mbe(i))n=i.from;else if(i.name=="OrderedList"||i.name=="BulletList")r=i.lastChild,n=r.to;else break;return r}const PQe=({state:e,dispatch:t})=>{let r=Wn(e),n=null,i=e.changeByRange(s=>{let o=s.from,{doc:a}=e;if(s.empty&&yw.isActiveAt(e,s.from)){let l=a.lineAt(o),c=CQe(yDr(r,o),a);if(c.length){let u=c[c.length-1],d=u.to-u.spaceAfter.length+(u.spaceAfter?1:0);if(o-l.from>d&&!/\S/.test(l.text.slice(d,o-l.from)))return{range:Ne.cursor(l.from+d),changes:{from:l.from+d,to:o}};if(o-l.from==d&&(!u.item||l.from<=u.item.from||!/\S/.test(l.text.slice(0,u.to)))){let f=l.from+u.from;if(u.item&&u.node.from<u.item.from&&/\S/.test(l.text.slice(u.from,u.to))){let m=u.blank(bd(l.text,4,u.to)-bd(l.text,4,u.from));return f==l.from&&(m=qee(m,e)),{range:Ne.cursor(f+m.length),changes:{from:f,to:l.from+u.to,insert:m}}}if(f<o)return{range:Ne.cursor(f),changes:{from:f,to:o}}}}}return n={range:s}});return n?!1:(t(e.update(i,{scrollIntoView:!0,userEvent:"delete"})),!0)},$Qe=[{key:"Enter",run:AQe},{key:"Backspace",run:PQe}],IQe=wQe({matchClosingTags:!1});function NQe(e={}){let{codeLanguages:t,defaultCodeLanguage:r,addKeymap:n=!0,base:{parser:i}=EQe,completeHTMLTags:s=!0,pasteURLAsLink:o=!0,htmlTagLanguage:a=IQe}=e;if(!(i instanceof P6))throw new RangeError("Base parser provided to `markdown` should be a Markdown parser");let l=e.extensions?[e.extensions]:[],c=[a.support,pDr],u;o&&c.push(RQe),r instanceof Yv?(c.push(r.support),u=r.language):r&&(u=r);let d=t||u?mDr(t,u):void 0;l.push(TCr({codeParser:d,htmlParser:a.language.parser})),n&&c.push(Hh.high(Vw.of($Qe)));let f=Zee(i.configure(l));return s&&c.push(f.data.of({autocomplete:vDr})),new Yv(f,c)}function vDr(e){let{state:t,pos:r}=e,n=/<[:\-\.\w\u00b7-\uffff]*$/.exec(t.sliceDoc(r-25,r));if(!n)return null;let i=Wn(t).resolveInner(r,-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:r-n[0].length,to:r,options:bDr(),validFor:/^<[:\-\.\w\u00b7-\uffff]*$/}}let qL=null;function bDr(){if(qL)return qL;let e=gQe(new iX(Hr.create({extensions:IQe}),0,!0));return qL=e?e.options:[]}const xDr=/code|horizontalrule|html|link|comment|processing|escape|entity|image|mark|url/i,RQe=et.domEventHandlers({paste:(e,t)=>{var r;let{main:n}=t.state.selection;if(n.empty)return!1;let i=(r=e.clipboardData)===null||r===void 0?void 0:r.getData("text/plain");if(!i||!/^(https?:\/\/|mailto:|xmpp:|www\.)/.test(i)||(/^www\./.test(i)&&(i="https://"+i),!yw.isActiveAt(t.state,n.from,1)))return!1;let s=Wn(t.state),o=!1;return s.iterate({from:n.from,to:n.to,enter:a=>{(a.from>n.from||xDr.test(a.name))&&(o=!0)},leave:a=>{a.to<n.to&&(o=!0)}}),o?!1:(t.dispatch({changes:[{from:n.from,insert:"["},{from:n.to,insert:`](${i})`}],userEvent:"input.paste",scrollIntoView:!0}),!0)}}),wDr=Object.freeze(Object.defineProperty({__proto__:null,commonmarkLanguage:EQe,deleteMarkupBackward:PQe,insertNewlineContinueMarkup:AQe,insertNewlineContinueMarkupCommand:DQe,markdown:NQe,markdownKeymap:$Qe,markdownLanguage:yw,pasteURLAsLink:RQe},Symbol.toStringTag,{value:"Module"}));function Qe(e){return new Yv(HG.define(e))}function Um(e){return G(()=>import("./index-DhSYKJqM.js"),__vite__mapDeps([100,95]),import.meta.url).then(t=>t.sql({dialect:t[e]}))}const SDr=[Ee.of({name:"C",extensions:["c","h","ino"],load(){return G(()=>import("./index-Da7v5bPM.js"),__vite__mapDeps([101,95]),import.meta.url).then(e=>e.cpp())}}),Ee.of({name:"C++",alias:["cpp"],extensions:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],load(){return G(()=>import("./index-Da7v5bPM.js"),__vite__mapDeps([101,95]),import.meta.url).then(e=>e.cpp())}}),Ee.of({name:"CQL",alias:["cassandra"],extensions:["cql"],load(){return Um("Cassandra")}}),Ee.of({name:"CSS",extensions:["css"],load(){return G(()=>Promise.resolve().then(()=>iDr),void 0,import.meta.url).then(e=>e.css())}}),Ee.of({name:"Go",extensions:["go"],load(){return G(()=>import("./index-IQaufVDf.js"),__vite__mapDeps([102,95]),import.meta.url).then(e=>e.go())}}),Ee.of({name:"HTML",alias:["xhtml"],extensions:["html","htm","handlebars","hbs"],load(){return G(()=>Promise.resolve().then(()=>uDr),void 0,import.meta.url).then(e=>e.html())}}),Ee.of({name:"Java",extensions:["java"],load(){return G(()=>import("./index-MYvqyHFC.js"),__vite__mapDeps([103,95]),import.meta.url).then(e=>e.java())}}),Ee.of({name:"JavaScript",alias:["ecmascript","js","node"],extensions:["js","mjs","cjs"],load(){return G(()=>Promise.resolve().then(()=>fP),void 0,import.meta.url).then(e=>e.javascript())}}),Ee.of({name:"Jinja",extensions:["j2","jinja","jinja2"],load(){return G(()=>import("./index-Ds7yBiGy.js"),__vite__mapDeps([104,95]),import.meta.url).then(e=>e.jinja())}}),Ee.of({name:"JSON",alias:["json5"],extensions:["json","map"],load(){return G(()=>Promise.resolve().then(()=>uOt),void 0,import.meta.url).then(e=>e.json())}}),Ee.of({name:"JSX",extensions:["jsx"],load(){return G(()=>Promise.resolve().then(()=>fP),void 0,import.meta.url).then(e=>e.javascript({jsx:!0}))}}),Ee.of({name:"LESS",extensions:["less"],load(){return G(()=>import("./index-DNcZewIc.js"),__vite__mapDeps([105,95]),import.meta.url).then(e=>e.less())}}),Ee.of({name:"Liquid",extensions:["liquid"],load(){return G(()=>import("./index-Dpsx1QC7.js"),__vite__mapDeps([106,95]),import.meta.url).then(e=>e.liquid())}}),Ee.of({name:"MariaDB SQL",load(){return Um("MariaSQL")}}),Ee.of({name:"Markdown",extensions:["md","markdown","mkd"],load(){return G(()=>Promise.resolve().then(()=>wDr),void 0,import.meta.url).then(e=>e.markdown())}}),Ee.of({name:"MS SQL",load(){return Um("MSSQL")}}),Ee.of({name:"MySQL",load(){return Um("MySQL")}}),Ee.of({name:"PHP",extensions:["php","php3","php4","php5","php7","phtml"],load(){return G(()=>import("./index-DghduufX.js"),__vite__mapDeps([107,95]),import.meta.url).then(e=>e.php())}}),Ee.of({name:"PLSQL",extensions:["pls"],load(){return Um("PLSQL")}}),Ee.of({name:"PostgreSQL",load(){return Um("PostgreSQL")}}),Ee.of({name:"Python",extensions:["BUILD","bzl","py","pyw"],filename:/^(BUCK|BUILD)$/,load(){return G(()=>import("./index-DFLRvAOV.js"),__vite__mapDeps([108,95]),import.meta.url).then(e=>e.python())}}),Ee.of({name:"Rust",extensions:["rs"],load(){return G(()=>import("./index-JCSfWXom.js"),__vite__mapDeps([109,95]),import.meta.url).then(e=>e.rust())}}),Ee.of({name:"Sass",extensions:["sass"],load(){return G(()=>import("./index-lkDge679.js"),__vite__mapDeps([110,95]),import.meta.url).then(e=>e.sass({indented:!0}))}}),Ee.of({name:"SCSS",extensions:["scss"],load(){return G(()=>import("./index-lkDge679.js"),__vite__mapDeps([110,95]),import.meta.url).then(e=>e.sass())}}),Ee.of({name:"SQL",extensions:["sql"],load(){return Um("StandardSQL")}}),Ee.of({name:"SQLite",load(){return Um("SQLite")}}),Ee.of({name:"TSX",extensions:["tsx"],load(){return G(()=>Promise.resolve().then(()=>fP),void 0,import.meta.url).then(e=>e.javascript({jsx:!0,typescript:!0}))}}),Ee.of({name:"TypeScript",alias:["ts"],extensions:["ts","mts","cts"],load(){return G(()=>Promise.resolve().then(()=>fP),void 0,import.meta.url).then(e=>e.javascript({typescript:!0}))}}),Ee.of({name:"WebAssembly",extensions:["wat","wast"],load(){return G(()=>import("./index-C9PV0HKg.js"),__vite__mapDeps([111,95]),import.meta.url).then(e=>e.wast())}}),Ee.of({name:"XML",alias:["rss","wsdl","xsd"],extensions:["xml","xsl","xsd","svg"],load(){return G(()=>import("./index-BGbdvLQM.js"),__vite__mapDeps([112,95]),import.meta.url).then(e=>e.xml())}}),Ee.of({name:"YAML",alias:["yml"],extensions:["yaml","yml"],load(){return G(()=>import("./index-BU0sifM3.js"),__vite__mapDeps([113,95]),import.meta.url).then(e=>e.yaml())}}),Ee.of({name:"APL",extensions:["dyalog","apl"],load(){return G(()=>import("./apl-B4CMkyY2.js"),[],import.meta.url).then(e=>Qe(e.apl))}}),Ee.of({name:"PGP",alias:["asciiarmor"],extensions:["asc","pgp","sig"],load(){return G(()=>import("./asciiarmor-Df11BRmG.js"),[],import.meta.url).then(e=>Qe(e.asciiArmor))}}),Ee.of({name:"ASN.1",extensions:["asn","asn1"],load(){return G(()=>import("./asn1-EdZsLKOL.js"),[],import.meta.url).then(e=>Qe(e.asn1({})))}}),Ee.of({name:"Asterisk",filename:/^extensions\.conf$/i,load(){return G(()=>import("./asterisk-B-8jnY81.js"),[],import.meta.url).then(e=>Qe(e.asterisk))}}),Ee.of({name:"Brainfuck",extensions:["b","bf"],load(){return G(()=>import("./brainfuck-C4LP7Hcl.js"),[],import.meta.url).then(e=>Qe(e.brainfuck))}}),Ee.of({name:"Cobol",extensions:["cob","cpy"],load(){return G(()=>import("./cobol-CWcv1MsR.js"),[],import.meta.url).then(e=>Qe(e.cobol))}}),Ee.of({name:"C#",alias:["csharp","cs"],extensions:["cs"],load(){return G(()=>import("./clike-B9uivgTg.js"),[],import.meta.url).then(e=>Qe(e.csharp))}}),Ee.of({name:"Clojure",extensions:["clj","cljc","cljx"],load(){return G(()=>import("./clojure-BMjYHr_A.js"),[],import.meta.url).then(e=>Qe(e.clojure))}}),Ee.of({name:"ClojureScript",extensions:["cljs"],load(){return G(()=>import("./clojure-BMjYHr_A.js"),[],import.meta.url).then(e=>Qe(e.clojure))}}),Ee.of({name:"Closure Stylesheets (GSS)",extensions:["gss"],load(){return G(()=>import("./css-BnMrqG3P.js"),[],import.meta.url).then(e=>Qe(e.gss))}}),Ee.of({name:"CMake",extensions:["cmake","cmake.in"],filename:/^CMakeLists\.txt$/,load(){return G(()=>import("./cmake-BQqOBYOt.js"),[],import.meta.url).then(e=>Qe(e.cmake))}}),Ee.of({name:"CoffeeScript",alias:["coffee","coffee-script"],extensions:["coffee"],load(){return G(()=>import("./coffeescript-S37ZYGWr.js"),[],import.meta.url).then(e=>Qe(e.coffeeScript))}}),Ee.of({name:"Common Lisp",alias:["lisp"],extensions:["cl","lisp","el"],load(){return G(()=>import("./commonlisp-DBKNyK5s.js"),[],import.meta.url).then(e=>Qe(e.commonLisp))}}),Ee.of({name:"Cypher",extensions:["cyp","cypher"],load(){return G(()=>import("./cypher-C_CwsFkJ.js"),[],import.meta.url).then(e=>Qe(e.cypher))}}),Ee.of({name:"Cython",extensions:["pyx","pxd","pxi"],load(){return G(()=>import("./python-BuPzkPfP.js"),[],import.meta.url).then(e=>Qe(e.cython))}}),Ee.of({name:"Crystal",extensions:["cr"],load(){return G(()=>import("./crystal-SjHAIU92.js"),[],import.meta.url).then(e=>Qe(e.crystal))}}),Ee.of({name:"D",extensions:["d"],load(){return G(()=>import("./d-pRatUO7H.js"),[],import.meta.url).then(e=>Qe(e.d))}}),Ee.of({name:"Dart",extensions:["dart"],load(){return G(()=>import("./clike-B9uivgTg.js"),[],import.meta.url).then(e=>Qe(e.dart))}}),Ee.of({name:"diff",extensions:["diff","patch"],load(){return G(()=>import("./diff-DbItnlRl.js"),[],import.meta.url).then(e=>Qe(e.diff))}}),Ee.of({name:"Dockerfile",filename:/^Dockerfile$/,load(){return G(()=>import("./dockerfile-BKs6k2Af.js"),__vite__mapDeps([114,115]),import.meta.url).then(e=>Qe(e.dockerFile))}}),Ee.of({name:"DTD",extensions:["dtd"],load(){return G(()=>import("./dtd-DF_7sFjM.js"),[],import.meta.url).then(e=>Qe(e.dtd))}}),Ee.of({name:"Dylan",extensions:["dylan","dyl","intr"],load(){return G(()=>import("./dylan-DwRh75JA.js"),[],import.meta.url).then(e=>Qe(e.dylan))}}),Ee.of({name:"EBNF",load(){return G(()=>import("./ebnf-CDyGwa7X.js"),[],import.meta.url).then(e=>Qe(e.ebnf))}}),Ee.of({name:"ECL",extensions:["ecl"],load(){return G(()=>import("./ecl-Cabwm37j.js"),[],import.meta.url).then(e=>Qe(e.ecl))}}),Ee.of({name:"edn",extensions:["edn"],load(){return G(()=>import("./clojure-BMjYHr_A.js"),[],import.meta.url).then(e=>Qe(e.clojure))}}),Ee.of({name:"Eiffel",extensions:["e"],load(){return G(()=>import("./eiffel-CnydiIhH.js"),[],import.meta.url).then(e=>Qe(e.eiffel))}}),Ee.of({name:"Elm",extensions:["elm"],load(){return G(()=>import("./elm-vLlmbW-K.js"),[],import.meta.url).then(e=>Qe(e.elm))}}),Ee.of({name:"Erlang",extensions:["erl"],load(){return G(()=>import("./erlang-BNw1qcRV.js"),[],import.meta.url).then(e=>Qe(e.erlang))}}),Ee.of({name:"Esper",load(){return G(()=>import("./sql-D0XecflT.js"),[],import.meta.url).then(e=>Qe(e.esper))}}),Ee.of({name:"Factor",extensions:["factor"],load(){return G(()=>import("./factor-kuTfRLto.js"),__vite__mapDeps([116,115]),import.meta.url).then(e=>Qe(e.factor))}}),Ee.of({name:"FCL",load(){return G(()=>import("./fcl-Kvtd6kyn.js"),[],import.meta.url).then(e=>Qe(e.fcl))}}),Ee.of({name:"Forth",extensions:["forth","fth","4th"],load(){return G(()=>import("./forth-Ffai-XNe.js"),[],import.meta.url).then(e=>Qe(e.forth))}}),Ee.of({name:"Fortran",extensions:["f","for","f77","f90","f95"],load(){return G(()=>import("./fortran-DYz_wnZ1.js"),[],import.meta.url).then(e=>Qe(e.fortran))}}),Ee.of({name:"F#",alias:["fsharp"],extensions:["fs"],load(){return G(()=>import("./mllike-BO34x3tv.js"),[],import.meta.url).then(e=>Qe(e.fSharp))}}),Ee.of({name:"Gas",extensions:["s"],load(){return G(()=>import("./gas-Bneqetm1.js"),[],import.meta.url).then(e=>Qe(e.gas))}}),Ee.of({name:"Gherkin",extensions:["feature"],load(){return G(()=>import("./gherkin-heZmZLOM.js"),[],import.meta.url).then(e=>Qe(e.gherkin))}}),Ee.of({name:"Groovy",extensions:["groovy","gradle"],filename:/^Jenkinsfile$/,load(){return G(()=>import("./groovy-D9Dt4D0W.js"),[],import.meta.url).then(e=>Qe(e.groovy))}}),Ee.of({name:"Haskell",extensions:["hs"],load(){return G(()=>import("./haskell-Cw1EW3IL.js"),[],import.meta.url).then(e=>Qe(e.haskell))}}),Ee.of({name:"Haxe",extensions:["hx"],load(){return G(()=>import("./haxe-H-WmDvRZ.js"),[],import.meta.url).then(e=>Qe(e.haxe))}}),Ee.of({name:"HXML",extensions:["hxml"],load(){return G(()=>import("./haxe-H-WmDvRZ.js"),[],import.meta.url).then(e=>Qe(e.hxml))}}),Ee.of({name:"HTTP",load(){return G(()=>import("./http-DBlCnlav.js"),[],import.meta.url).then(e=>Qe(e.http))}}),Ee.of({name:"IDL",extensions:["pro"],load(){return G(()=>import("./idl-BEugSyMb.js"),[],import.meta.url).then(e=>Qe(e.idl))}}),Ee.of({name:"JSON-LD",alias:["jsonld"],extensions:["jsonld"],load(){return G(()=>import("./javascript-iXu5QeM3.js"),[],import.meta.url).then(e=>Qe(e.jsonld))}}),Ee.of({name:"Julia",extensions:["jl"],load(){return G(()=>import("./julia-DuME0IfC.js"),[],import.meta.url).then(e=>Qe(e.julia))}}),Ee.of({name:"Kotlin",extensions:["kt","kts"],load(){return G(()=>import("./clike-B9uivgTg.js"),[],import.meta.url).then(e=>Qe(e.kotlin))}}),Ee.of({name:"LiveScript",alias:["ls"],extensions:["ls"],load(){return G(()=>import("./livescript-BwQOo05w.js"),[],import.meta.url).then(e=>Qe(e.liveScript))}}),Ee.of({name:"Lua",extensions:["lua"],load(){return G(()=>import("./lua-BgMRiT3U.js"),[],import.meta.url).then(e=>Qe(e.lua))}}),Ee.of({name:"mIRC",extensions:["mrc"],load(){return G(()=>import("./mirc-CjQqDB4T.js"),[],import.meta.url).then(e=>Qe(e.mirc))}}),Ee.of({name:"Mathematica",extensions:["m","nb","wl","wls"],load(){return G(()=>import("./mathematica-DTrFuWx2.js"),[],import.meta.url).then(e=>Qe(e.mathematica))}}),Ee.of({name:"Modelica",extensions:["mo"],load(){return G(()=>import("./modelica-Dc1JOy9r.js"),[],import.meta.url).then(e=>Qe(e.modelica))}}),Ee.of({name:"MUMPS",extensions:["mps"],load(){return G(()=>import("./mumps-BT43cFF4.js"),[],import.meta.url).then(e=>Qe(e.mumps))}}),Ee.of({name:"Mbox",extensions:["mbox"],load(){return G(()=>import("./mbox-CNhZ1qSd.js"),[],import.meta.url).then(e=>Qe(e.mbox))}}),Ee.of({name:"Nginx",filename:/nginx.*\.conf$/i,load(){return G(()=>import("./nginx-DdIZxoE0.js"),[],import.meta.url).then(e=>Qe(e.nginx))}}),Ee.of({name:"NSIS",extensions:["nsh","nsi"],load(){return G(()=>import("./nsis-LdVXkNf5.js"),__vite__mapDeps([117,115]),import.meta.url).then(e=>Qe(e.nsis))}}),Ee.of({name:"NTriples",extensions:["nt","nq"],load(){return G(()=>import("./ntriples-BfvgReVJ.js"),[],import.meta.url).then(e=>Qe(e.ntriples))}}),Ee.of({name:"Objective-C",alias:["objective-c","objc"],extensions:["m"],load(){return G(()=>import("./clike-B9uivgTg.js"),[],import.meta.url).then(e=>Qe(e.objectiveC))}}),Ee.of({name:"Objective-C++",alias:["objective-c++","objc++"],extensions:["mm"],load(){return G(()=>import("./clike-B9uivgTg.js"),[],import.meta.url).then(e=>Qe(e.objectiveCpp))}}),Ee.of({name:"OCaml",extensions:["ml","mli","mll","mly"],load(){return G(()=>import("./mllike-BO34x3tv.js"),[],import.meta.url).then(e=>Qe(e.oCaml))}}),Ee.of({name:"Octave",extensions:["m"],load(){return G(()=>import("./octave-Ck1zUtKM.js"),[],import.meta.url).then(e=>Qe(e.octave))}}),Ee.of({name:"Oz",extensions:["oz"],load(){return G(()=>import("./oz-BzwKVEFT.js"),[],import.meta.url).then(e=>Qe(e.oz))}}),Ee.of({name:"Pascal",extensions:["p","pas"],load(){return G(()=>import("./pascal--L3eBynH.js"),[],import.meta.url).then(e=>Qe(e.pascal))}}),Ee.of({name:"Perl",extensions:["pl","pm"],load(){return G(()=>import("./perl-CdXCOZ3F.js"),[],import.meta.url).then(e=>Qe(e.perl))}}),Ee.of({name:"Pig",extensions:["pig"],load(){return G(()=>import("./pig-CevX1Tat.js"),[],import.meta.url).then(e=>Qe(e.pig))}}),Ee.of({name:"PowerShell",extensions:["ps1","psd1","psm1"],load(){return G(()=>import("./powershell-CaxLzxiJ.js"),[],import.meta.url).then(e=>Qe(e.powerShell))}}),Ee.of({name:"Properties files",alias:["ini","properties"],extensions:["properties","ini","in"],load(){return G(()=>import("./properties-C78fOPTZ.js"),[],import.meta.url).then(e=>Qe(e.properties))}}),Ee.of({name:"ProtoBuf",extensions:["proto"],load(){return G(()=>import("./protobuf-ChK-085T.js"),[],import.meta.url).then(e=>Qe(e.protobuf))}}),Ee.of({name:"Pug",alias:["jade"],extensions:["pug","jade"],load(){return G(()=>import("./pug-DeIclll2.js"),__vite__mapDeps([118,119]),import.meta.url).then(e=>Qe(e.pug))}}),Ee.of({name:"Puppet",extensions:["pp"],load(){return G(()=>import("./puppet-DMA9R1ak.js"),[],import.meta.url).then(e=>Qe(e.puppet))}}),Ee.of({name:"Q",extensions:["q"],load(){return G(()=>import("./q-pXgVlZs6.js"),[],import.meta.url).then(e=>Qe(e.q))}}),Ee.of({name:"R",alias:["rscript"],extensions:["r","R"],load(){return G(()=>import("./r-B6wPVr8A.js"),[],import.meta.url).then(e=>Qe(e.r))}}),Ee.of({name:"RPM Changes",load(){return G(()=>import("./rpm-CTu-6PCP.js"),[],import.meta.url).then(e=>Qe(e.rpmChanges))}}),Ee.of({name:"RPM Spec",extensions:["spec"],load(){return G(()=>import("./rpm-CTu-6PCP.js"),[],import.meta.url).then(e=>Qe(e.rpmSpec))}}),Ee.of({name:"Ruby",alias:["jruby","macruby","rake","rb","rbx"],extensions:["rb"],filename:/^(Gemfile|Rakefile)$/,load(){return G(()=>import("./ruby-B2Rjki9n.js"),[],import.meta.url).then(e=>Qe(e.ruby))}}),Ee.of({name:"SAS",extensions:["sas"],load(){return G(()=>import("./sas-B4kiWyti.js"),[],import.meta.url).then(e=>Qe(e.sas))}}),Ee.of({name:"Scala",extensions:["scala"],load(){return G(()=>import("./clike-B9uivgTg.js"),[],import.meta.url).then(e=>Qe(e.scala))}}),Ee.of({name:"Scheme",extensions:["scm","ss"],load(){return G(()=>import("./scheme-C41bIUwD.js"),[],import.meta.url).then(e=>Qe(e.scheme))}}),Ee.of({name:"Shell",alias:["bash","sh","zsh"],extensions:["sh","ksh","bash"],filename:/^PKGBUILD$/,load(){return G(()=>import("./shell-CjFT_Tl9.js"),[],import.meta.url).then(e=>Qe(e.shell))}}),Ee.of({name:"Sieve",extensions:["siv","sieve"],load(){return G(()=>import("./sieve-C3Gn_uJK.js"),[],import.meta.url).then(e=>Qe(e.sieve))}}),Ee.of({name:"Smalltalk",extensions:["st"],load(){return G(()=>import("./smalltalk-CnHTOXQT.js"),[],import.meta.url).then(e=>Qe(e.smalltalk))}}),Ee.of({name:"Solr",load(){return G(()=>import("./solr-DehyRSwq.js"),[],import.meta.url).then(e=>Qe(e.solr))}}),Ee.of({name:"SML",extensions:["sml","sig","fun","smackspec"],load(){return G(()=>import("./mllike-BO34x3tv.js"),[],import.meta.url).then(e=>Qe(e.sml))}}),Ee.of({name:"SPARQL",alias:["sparul"],extensions:["rq","sparql"],load(){return G(()=>import("./sparql-DkYu6x3z.js"),[],import.meta.url).then(e=>Qe(e.sparql))}}),Ee.of({name:"Spreadsheet",alias:["excel","formula"],load(){return G(()=>import("./spreadsheet-BCZA_wO0.js"),[],import.meta.url).then(e=>Qe(e.spreadsheet))}}),Ee.of({name:"Squirrel",extensions:["nut"],load(){return G(()=>import("./clike-B9uivgTg.js"),[],import.meta.url).then(e=>Qe(e.squirrel))}}),Ee.of({name:"Stylus",extensions:["styl"],load(){return G(()=>import("./stylus-B533Al4x.js"),[],import.meta.url).then(e=>Qe(e.stylus))}}),Ee.of({name:"Swift",extensions:["swift"],load(){return G(()=>import("./swift-BzpIVaGY.js"),[],import.meta.url).then(e=>Qe(e.swift))}}),Ee.of({name:"sTeX",load(){return G(()=>import("./stex-C3f8Ysf7.js"),[],import.meta.url).then(e=>Qe(e.stex))}}),Ee.of({name:"LaTeX",alias:["tex"],extensions:["text","ltx","tex"],load(){return G(()=>import("./stex-C3f8Ysf7.js"),[],import.meta.url).then(e=>Qe(e.stex))}}),Ee.of({name:"SystemVerilog",extensions:["v","sv","svh"],load(){return G(()=>import("./verilog-C6RDOZhf.js"),[],import.meta.url).then(e=>Qe(e.verilog))}}),Ee.of({name:"Tcl",extensions:["tcl"],load(){return G(()=>import("./tcl-DVfN8rqt.js"),[],import.meta.url).then(e=>Qe(e.tcl))}}),Ee.of({name:"Textile",extensions:["textile"],load(){return G(()=>import("./textile-CnDTJFAw.js"),[],import.meta.url).then(e=>Qe(e.textile))}}),Ee.of({name:"TiddlyWiki",load(){return G(()=>import("./tiddlywiki-DO-Gjzrf.js"),[],import.meta.url).then(e=>Qe(e.tiddlyWiki))}}),Ee.of({name:"Tiki wiki",load(){return G(()=>import("./tiki-DGYXhP31.js"),[],import.meta.url).then(e=>Qe(e.tiki))}}),Ee.of({name:"TOML",extensions:["toml"],load(){return G(()=>import("./toml-Bm5Em-hy.js"),[],import.meta.url).then(e=>Qe(e.toml))}}),Ee.of({name:"Troff",extensions:["1","2","3","4","5","6","7","8","9"],load(){return G(()=>import("./troff-wAsdV37c.js"),[],import.meta.url).then(e=>Qe(e.troff))}}),Ee.of({name:"TTCN",extensions:["ttcn","ttcn3","ttcnpp"],load(){return G(()=>import("./ttcn-CfJYG6tj.js"),[],import.meta.url).then(e=>Qe(e.ttcn))}}),Ee.of({name:"TTCN_CFG",extensions:["cfg"],load(){return G(()=>import("./ttcn-cfg-B9xdYoR4.js"),[],import.meta.url).then(e=>Qe(e.ttcnCfg))}}),Ee.of({name:"Turtle",extensions:["ttl"],load(){return G(()=>import("./turtle-B1tBg_DP.js"),[],import.meta.url).then(e=>Qe(e.turtle))}}),Ee.of({name:"Web IDL",extensions:["webidl"],load(){return G(()=>import("./webidl-ZXfAyPTL.js"),[],import.meta.url).then(e=>Qe(e.webIDL))}}),Ee.of({name:"VB.NET",extensions:["vb"],load(){return G(()=>import("./vb-CmGdzxic.js"),[],import.meta.url).then(e=>Qe(e.vb))}}),Ee.of({name:"VBScript",extensions:["vbs"],load(){return G(()=>import("./vbscript-BuJXcnF6.js"),[],import.meta.url).then(e=>Qe(e.vbScript))}}),Ee.of({name:"Velocity",extensions:["vtl"],load(){return G(()=>import("./velocity-D8B20fx6.js"),[],import.meta.url).then(e=>Qe(e.velocity))}}),Ee.of({name:"Verilog",extensions:["v"],load(){return G(()=>import("./verilog-C6RDOZhf.js"),[],import.meta.url).then(e=>Qe(e.verilog))}}),Ee.of({name:"VHDL",extensions:["vhd","vhdl"],load(){return G(()=>import("./vhdl-lSbBsy5d.js"),[],import.meta.url).then(e=>Qe(e.vhdl))}}),Ee.of({name:"XQuery",extensions:["xy","xquery","xq","xqm","xqy"],load(){return G(()=>import("./xquery-DzFWVndE.js"),[],import.meta.url).then(e=>Qe(e.xQuery))}}),Ee.of({name:"Yacas",extensions:["ys"],load(){return G(()=>import("./yacas-BJ4BC0dw.js"),[],import.meta.url).then(e=>Qe(e.yacas))}}),Ee.of({name:"Z80",extensions:["z80"],load(){return G(()=>import("./z80-Hz9HOZM7.js"),[],import.meta.url).then(e=>Qe(e.z80))}}),Ee.of({name:"MscGen",extensions:["mscgen","mscin","msc"],load(){return G(()=>import("./mscgen-BA5vi2Kp.js"),[],import.meta.url).then(e=>Qe(e.mscgen))}}),Ee.of({name:"Xù",extensions:["xu"],load(){return G(()=>import("./mscgen-BA5vi2Kp.js"),[],import.meta.url).then(e=>Qe(e.xu))}}),Ee.of({name:"MsGenny",extensions:["msgenny"],load(){return G(()=>import("./mscgen-BA5vi2Kp.js"),[],import.meta.url).then(e=>Qe(e.msgenny))}}),Ee.of({name:"Vue",extensions:["vue"],load(){return G(()=>import("./index-D3PY5bwl.js"),__vite__mapDeps([120,95]),import.meta.url).then(e=>e.vue())}}),Ee.of({name:"Angular Template",load(){return G(()=>import("./index-DQdddF7W.js"),__vite__mapDeps([121,95]),import.meta.url).then(e=>e.angular())}})];var MQe=e=>{var{theme:t,settings:r={},styles:n=[]}=e,i={".cm-gutters":{}},s={};r.background&&(s.backgroundColor=r.background),r.backgroundImage&&(s.backgroundImage=r.backgroundImage),r.foreground&&(s.color=r.foreground),r.fontSize&&(s.fontSize=r.fontSize),(r.background||r.foreground)&&(i["&"]=s),r.fontFamily&&(i["&.cm-editor .cm-scroller"]={fontFamily:r.fontFamily}),r.gutterBackground&&(i[".cm-gutters"].backgroundColor=r.gutterBackground),r.gutterForeground&&(i[".cm-gutters"].color=r.gutterForeground),r.gutterBorder&&(i[".cm-gutters"].borderRightColor=r.gutterBorder),r.caret&&(i[".cm-content"]={caretColor:r.caret},i[".cm-cursor, .cm-dropCursor"]={borderLeftColor:r.caret});var o={};r.gutterActiveForeground&&(o.color=r.gutterActiveForeground),r.lineHighlight&&(i[".cm-activeLine"]={backgroundColor:r.lineHighlight},o.backgroundColor=r.lineHighlight),i[".cm-activeLineGutter"]=o,r.selection&&(i["&.cm-focused .cm-selectionBackground, & .cm-line::selection, & .cm-selectionLayer .cm-selectionBackground, .cm-content ::selection"]={background:r.selection+" !important"}),r.selectionMatch&&(i["& .cm-selectionMatch"]={backgroundColor:r.selectionMatch});var a=et.theme(i,{dark:t==="dark"}),l=D0.define(n),c=[a,KN(l)];return c},ODr={background:"#fff",foreground:"#24292e",selection:"#BBDFFF",selectionMatch:"#BBDFFF",gutterBackground:"#fff",gutterForeground:"#6e7781"},_Dr=[{tag:[Y.standard(Y.tagName),Y.tagName],color:"#116329"},{tag:[Y.comment,Y.bracket],color:"#6a737d"},{tag:[Y.className,Y.propertyName],color:"#6f42c1"},{tag:[Y.variableName,Y.attributeName,Y.number,Y.operator],color:"#005cc5"},{tag:[Y.keyword,Y.typeName,Y.typeOperator,Y.typeName],color:"#d73a49"},{tag:[Y.string,Y.meta,Y.regexp],color:"#032f62"},{tag:[Y.name,Y.quote],color:"#22863a"},{tag:[Y.heading,Y.strong],color:"#24292e",fontWeight:"bold"},{tag:[Y.emphasis],color:"#24292e",fontStyle:"italic"},{tag:[Y.deleted],color:"#b31d28",backgroundColor:"ffeef0"},{tag:[Y.atom,Y.bool,Y.special(Y.variableName)],color:"#e36209"},{tag:[Y.url,Y.escape,Y.regexp,Y.link],color:"#032f62"},{tag:Y.link,textDecoration:"underline"},{tag:Y.strikethrough,textDecoration:"line-through"},{tag:Y.invalid,color:"#cb2431"}],kDr=e=>{var{theme:t="light",settings:r={},styles:n=[]}={};return MQe({theme:t,settings:gd({},ODr,r),styles:[..._Dr,...n]})};kDr();var EDr={background:"#0d1117",foreground:"#c9d1d9",caret:"#c9d1d9",selection:"#003d73",selectionMatch:"#003d73",lineHighlight:"#36334280"},CDr=[{tag:[Y.standard(Y.tagName),Y.tagName],color:"#7ee787"},{tag:[Y.comment,Y.bracket],color:"#8b949e"},{tag:[Y.className,Y.propertyName],color:"#d2a8ff"},{tag:[Y.variableName,Y.attributeName,Y.number,Y.operator],color:"#79c0ff"},{tag:[Y.keyword,Y.typeName,Y.typeOperator,Y.typeName],color:"#ff7b72"},{tag:[Y.string,Y.meta,Y.regexp],color:"#a5d6ff"},{tag:[Y.name,Y.quote],color:"#7ee787"},{tag:[Y.heading,Y.strong],color:"#d2a8ff",fontWeight:"bold"},{tag:[Y.emphasis],color:"#d2a8ff",fontStyle:"italic"},{tag:[Y.deleted],color:"#ffdcd7",backgroundColor:"ffeef0"},{tag:[Y.atom,Y.bool,Y.special(Y.variableName)],color:"#ffab70"},{tag:Y.link,textDecoration:"underline"},{tag:Y.strikethrough,textDecoration:"line-through"},{tag:Y.invalid,color:"#f97583"}],jQe=e=>{var{theme:t="dark",settings:r={},styles:n=[]}=e||{};return MQe({theme:t,settings:gd({},EDr,r),styles:[...CDr,...n]})};jQe();var FQe="AlertDialog",[TDr]=Ro(FQe,[JPe]),nm=JPe(),LQe=e=>{const{__scopeAlertDialog:t,...r}=e,n=nm(t);return p.jsx(gX,{...n,...r,modal:!0})};LQe.displayName=FQe;var DDr="AlertDialogTrigger",zQe=E.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,i=nm(r);return p.jsx(h$e,{...i,...n,ref:t})});zQe.displayName=DDr;var ADr="AlertDialogPortal",BQe=e=>{const{__scopeAlertDialog:t,...r}=e,n=nm(t);return p.jsx(yX,{...n,...r})};BQe.displayName=ADr;var PDr="AlertDialogOverlay",VQe=E.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,i=nm(r);return p.jsx(o5,{...i,...n,ref:t})});VQe.displayName=PDr;var n1="AlertDialogContent",[$Dr,IDr]=TDr(n1),NDr=$Ee("AlertDialogContent"),UQe=E.forwardRef((e,t)=>{const{__scopeAlertDialog:r,children:n,...i}=e,s=nm(r),o=E.useRef(null),a=er(t,o),l=E.useRef(null);return p.jsx(uCt,{contentName:n1,titleName:QQe,docsSlug:"alert-dialog",children:p.jsx($Dr,{scope:r,cancelRef:l,children:p.jsxs(a5,{role:"alertdialog",...s,...i,ref:a,onOpenAutoFocus:dt(i.onOpenAutoFocus,c=>{c.preventDefault(),l.current?.focus({preventScroll:!0})}),onPointerDownOutside:c=>c.preventDefault(),onInteractOutside:c=>c.preventDefault(),children:[p.jsx(NDr,{children:n}),p.jsx(MDr,{contentRef:o})]})})})});UQe.displayName=n1;var QQe="AlertDialogTitle",ZQe=E.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,i=nm(r);return p.jsx(l5,{...i,...n,ref:t})});ZQe.displayName=QQe;var qQe="AlertDialogDescription",HQe=E.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,i=nm(r);return p.jsx(c5,{...i,...n,ref:t})});HQe.displayName=qQe;var RDr="AlertDialogAction",WQe=E.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,i=nm(r);return p.jsx(u5,{...i,...n,ref:t})});WQe.displayName=RDr;var GQe="AlertDialogCancel",XQe=E.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,{cancelRef:i}=IDr(GQe,r),s=nm(r),o=er(t,i);return p.jsx(u5,{...s,...n,ref:o})});XQe.displayName=GQe;var MDr=({contentRef:e})=>{const t=`\`${n1}\` requires a description for the component to be accessible for screen reader users.
|
|
549
549
|
|
|
550
550
|
You can add a description to the \`${n1}\` by passing a \`${qQe}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
|
|
551
551
|
|
|
552
552
|
Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${n1}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
|
|
553
553
|
|
|
554
|
-
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return E.useEffect(()=>{document.getElementById(e.current?.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},jDr=LQe,FDr=zQe,LDr=BQe,YQe=VQe,JQe=UQe,KQe=WQe,eZe=XQe,tZe=ZQe,rZe=HQe,RP={exports:{}},HL,ybe;function $6(){if(ybe)return HL;ybe=1;const e="2.0.0",t=256,r=Number.MAX_SAFE_INTEGER||9007199254740991,n=16,i=t-6;return HL={MAX_LENGTH:t,MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:i,MAX_SAFE_INTEGER:r,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:e,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},HL}var WL,vbe;function I6(){if(vbe)return WL;vbe=1;var e={},t={};return WL=typeof e=="object"&&t&&t.NODE_DEBUG&&/\bsemver\b/i.test(t.NODE_DEBUG)?(...n)=>console.error("SEMVER",...n):()=>{},WL}var bbe;function wD(){return bbe||(bbe=1,(function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:n,MAX_LENGTH:i}=$6(),s=I6();t=e.exports={};const o=t.re=[],a=t.safeRe=[],l=t.src=[],c=t.safeSrc=[],u=t.t={};let d=0;const f="[a-zA-Z0-9-]",m=[["\\s",1],["\\d",i],[f,n]],g=b=>{for(const[w,S]of m)b=b.split(`${w}*`).join(`${w}{0,${S}}`).split(`${w}+`).join(`${w}{1,${S}}`);return b},v=(b,w,S)=>{const O=g(w),k=d++;s(b,k,w),u[b]=k,l[k]=w,c[k]=O,o[k]=new RegExp(w,S?"g":void 0),a[k]=new RegExp(O,S?"g":void 0)};v("NUMERICIDENTIFIER","0|[1-9]\\d*"),v("NUMERICIDENTIFIERLOOSE","\\d+"),v("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${f}*`),v("MAINVERSION",`(${l[u.NUMERICIDENTIFIER]})\\.(${l[u.NUMERICIDENTIFIER]})\\.(${l[u.NUMERICIDENTIFIER]})`),v("MAINVERSIONLOOSE",`(${l[u.NUMERICIDENTIFIERLOOSE]})\\.(${l[u.NUMERICIDENTIFIERLOOSE]})\\.(${l[u.NUMERICIDENTIFIERLOOSE]})`),v("PRERELEASEIDENTIFIER",`(?:${l[u.NONNUMERICIDENTIFIER]}|${l[u.NUMERICIDENTIFIER]})`),v("PRERELEASEIDENTIFIERLOOSE",`(?:${l[u.NONNUMERICIDENTIFIER]}|${l[u.NUMERICIDENTIFIERLOOSE]})`),v("PRERELEASE",`(?:-(${l[u.PRERELEASEIDENTIFIER]}(?:\\.${l[u.PRERELEASEIDENTIFIER]})*))`),v("PRERELEASELOOSE",`(?:-?(${l[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[u.PRERELEASEIDENTIFIERLOOSE]})*))`),v("BUILDIDENTIFIER",`${f}+`),v("BUILD",`(?:\\+(${l[u.BUILDIDENTIFIER]}(?:\\.${l[u.BUILDIDENTIFIER]})*))`),v("FULLPLAIN",`v?${l[u.MAINVERSION]}${l[u.PRERELEASE]}?${l[u.BUILD]}?`),v("FULL",`^${l[u.FULLPLAIN]}$`),v("LOOSEPLAIN",`[v=\\s]*${l[u.MAINVERSIONLOOSE]}${l[u.PRERELEASELOOSE]}?${l[u.BUILD]}?`),v("LOOSE",`^${l[u.LOOSEPLAIN]}$`),v("GTLT","((?:<|>)?=?)"),v("XRANGEIDENTIFIERLOOSE",`${l[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),v("XRANGEIDENTIFIER",`${l[u.NUMERICIDENTIFIER]}|x|X|\\*`),v("XRANGEPLAIN",`[v=\\s]*(${l[u.XRANGEIDENTIFIER]})(?:\\.(${l[u.XRANGEIDENTIFIER]})(?:\\.(${l[u.XRANGEIDENTIFIER]})(?:${l[u.PRERELEASE]})?${l[u.BUILD]}?)?)?`),v("XRANGEPLAINLOOSE",`[v=\\s]*(${l[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[u.XRANGEIDENTIFIERLOOSE]})(?:${l[u.PRERELEASELOOSE]})?${l[u.BUILD]}?)?)?`),v("XRANGE",`^${l[u.GTLT]}\\s*${l[u.XRANGEPLAIN]}$`),v("XRANGELOOSE",`^${l[u.GTLT]}\\s*${l[u.XRANGEPLAINLOOSE]}$`),v("COERCEPLAIN",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`),v("COERCE",`${l[u.COERCEPLAIN]}(?:$|[^\\d])`),v("COERCEFULL",l[u.COERCEPLAIN]+`(?:${l[u.PRERELEASE]})?(?:${l[u.BUILD]})?(?:$|[^\\d])`),v("COERCERTL",l[u.COERCE],!0),v("COERCERTLFULL",l[u.COERCEFULL],!0),v("LONETILDE","(?:~>?)"),v("TILDETRIM",`(\\s*)${l[u.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",v("TILDE",`^${l[u.LONETILDE]}${l[u.XRANGEPLAIN]}$`),v("TILDELOOSE",`^${l[u.LONETILDE]}${l[u.XRANGEPLAINLOOSE]}$`),v("LONECARET","(?:\\^)"),v("CARETTRIM",`(\\s*)${l[u.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",v("CARET",`^${l[u.LONECARET]}${l[u.XRANGEPLAIN]}$`),v("CARETLOOSE",`^${l[u.LONECARET]}${l[u.XRANGEPLAINLOOSE]}$`),v("COMPARATORLOOSE",`^${l[u.GTLT]}\\s*(${l[u.LOOSEPLAIN]})$|^$`),v("COMPARATOR",`^${l[u.GTLT]}\\s*(${l[u.FULLPLAIN]})$|^$`),v("COMPARATORTRIM",`(\\s*)${l[u.GTLT]}\\s*(${l[u.LOOSEPLAIN]}|${l[u.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",v("HYPHENRANGE",`^\\s*(${l[u.XRANGEPLAIN]})\\s+-\\s+(${l[u.XRANGEPLAIN]})\\s*$`),v("HYPHENRANGELOOSE",`^\\s*(${l[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${l[u.XRANGEPLAINLOOSE]})\\s*$`),v("STAR","(<|>)?=?\\s*\\*"),v("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),v("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(RP,RP.exports)),RP.exports}var GL,xbe;function Hee(){if(xbe)return GL;xbe=1;const e=Object.freeze({loose:!0}),t=Object.freeze({});return GL=n=>n?typeof n!="object"?e:n:t,GL}var XL,wbe;function nZe(){if(wbe)return XL;wbe=1;const e=/^[0-9]+$/,t=(n,i)=>{if(typeof n=="number"&&typeof i=="number")return n===i?0:n<i?-1:1;const s=e.test(n),o=e.test(i);return s&&o&&(n=+n,i=+i),n===i?0:s&&!o?-1:o&&!s?1:n<i?-1:1};return XL={compareIdentifiers:t,rcompareIdentifiers:(n,i)=>t(i,n)},XL}var YL,Sbe;function $a(){if(Sbe)return YL;Sbe=1;const e=I6(),{MAX_LENGTH:t,MAX_SAFE_INTEGER:r}=$6(),{safeRe:n,t:i}=wD(),s=Hee(),{compareIdentifiers:o}=nZe();class a{constructor(c,u){if(u=s(u),c instanceof a){if(c.loose===!!u.loose&&c.includePrerelease===!!u.includePrerelease)return c;c=c.version}else if(typeof c!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof c}".`);if(c.length>t)throw new TypeError(`version is longer than ${t} characters`);e("SemVer",c,u),this.options=u,this.loose=!!u.loose,this.includePrerelease=!!u.includePrerelease;const d=c.trim().match(u.loose?n[i.LOOSE]:n[i.FULL]);if(!d)throw new TypeError(`Invalid Version: ${c}`);if(this.raw=c,this.major=+d[1],this.minor=+d[2],this.patch=+d[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");d[4]?this.prerelease=d[4].split(".").map(f=>{if(/^[0-9]+$/.test(f)){const m=+f;if(m>=0&&m<r)return m}return f}):this.prerelease=[],this.build=d[5]?d[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(c){if(e("SemVer.compare",this.version,this.options,c),!(c instanceof a)){if(typeof c=="string"&&c===this.version)return 0;c=new a(c,this.options)}return c.version===this.version?0:this.compareMain(c)||this.comparePre(c)}compareMain(c){return c instanceof a||(c=new a(c,this.options)),this.major<c.major?-1:this.major>c.major?1:this.minor<c.minor?-1:this.minor>c.minor?1:this.patch<c.patch?-1:this.patch>c.patch?1:0}comparePre(c){if(c instanceof a||(c=new a(c,this.options)),this.prerelease.length&&!c.prerelease.length)return-1;if(!this.prerelease.length&&c.prerelease.length)return 1;if(!this.prerelease.length&&!c.prerelease.length)return 0;let u=0;do{const d=this.prerelease[u],f=c.prerelease[u];if(e("prerelease compare",u,d,f),d===void 0&&f===void 0)return 0;if(f===void 0)return 1;if(d===void 0)return-1;if(d===f)continue;return o(d,f)}while(++u)}compareBuild(c){c instanceof a||(c=new a(c,this.options));let u=0;do{const d=this.build[u],f=c.build[u];if(e("build compare",u,d,f),d===void 0&&f===void 0)return 0;if(f===void 0)return 1;if(d===void 0)return-1;if(d===f)continue;return o(d,f)}while(++u)}inc(c,u,d){if(c.startsWith("pre")){if(!u&&d===!1)throw new Error("invalid increment argument: identifier is empty");if(u){const f=`-${u}`.match(this.options.loose?n[i.PRERELEASELOOSE]:n[i.PRERELEASE]);if(!f||f[1]!==u)throw new Error(`invalid identifier: ${u}`)}}switch(c){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",u,d);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",u,d);break;case"prepatch":this.prerelease.length=0,this.inc("patch",u,d),this.inc("pre",u,d);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",u,d),this.inc("pre",u,d);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const f=Number(d)?1:0;if(this.prerelease.length===0)this.prerelease=[f];else{let m=this.prerelease.length;for(;--m>=0;)typeof this.prerelease[m]=="number"&&(this.prerelease[m]++,m=-2);if(m===-1){if(u===this.prerelease.join(".")&&d===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(f)}}if(u){let m=[u,f];d===!1&&(m=[u]),o(this.prerelease[0],u)===0?isNaN(this.prerelease[1])&&(this.prerelease=m):this.prerelease=m}break}default:throw new Error(`invalid increment argument: ${c}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}return YL=a,YL}var JL,Obe;function hS(){if(Obe)return JL;Obe=1;const e=$a();return JL=(r,n,i=!1)=>{if(r instanceof e)return r;try{return new e(r,n)}catch(s){if(!i)return null;throw s}},JL}var KL,_be;function zDr(){if(_be)return KL;_be=1;const e=hS();return KL=(r,n)=>{const i=e(r,n);return i?i.version:null},KL}var ez,kbe;function BDr(){if(kbe)return ez;kbe=1;const e=hS();return ez=(r,n)=>{const i=e(r.trim().replace(/^[=v]+/,""),n);return i?i.version:null},ez}var tz,Ebe;function VDr(){if(Ebe)return tz;Ebe=1;const e=$a();return tz=(r,n,i,s,o)=>{typeof i=="string"&&(o=s,s=i,i=void 0);try{return new e(r instanceof e?r.version:r,i).inc(n,s,o).version}catch{return null}},tz}var rz,Cbe;function UDr(){if(Cbe)return rz;Cbe=1;const e=hS();return rz=(r,n)=>{const i=e(r,null,!0),s=e(n,null,!0),o=i.compare(s);if(o===0)return null;const a=o>0,l=a?i:s,c=a?s:i,u=!!l.prerelease.length;if(!!c.prerelease.length&&!u){if(!c.patch&&!c.minor)return"major";if(c.compareMain(l)===0)return c.minor&&!c.patch?"minor":"patch"}const f=u?"pre":"";return i.major!==s.major?f+"major":i.minor!==s.minor?f+"minor":i.patch!==s.patch?f+"patch":"prerelease"},rz}var nz,Tbe;function QDr(){if(Tbe)return nz;Tbe=1;const e=$a();return nz=(r,n)=>new e(r,n).major,nz}var iz,Dbe;function ZDr(){if(Dbe)return iz;Dbe=1;const e=$a();return iz=(r,n)=>new e(r,n).minor,iz}var sz,Abe;function qDr(){if(Abe)return sz;Abe=1;const e=$a();return sz=(r,n)=>new e(r,n).patch,sz}var oz,Pbe;function HDr(){if(Pbe)return oz;Pbe=1;const e=hS();return oz=(r,n)=>{const i=e(r,n);return i&&i.prerelease.length?i.prerelease:null},oz}var az,$be;function Bd(){if($be)return az;$be=1;const e=$a();return az=(r,n,i)=>new e(r,i).compare(new e(n,i)),az}var lz,Ibe;function WDr(){if(Ibe)return lz;Ibe=1;const e=Bd();return lz=(r,n,i)=>e(n,r,i),lz}var cz,Nbe;function GDr(){if(Nbe)return cz;Nbe=1;const e=Bd();return cz=(r,n)=>e(r,n,!0),cz}var uz,Rbe;function Wee(){if(Rbe)return uz;Rbe=1;const e=$a();return uz=(r,n,i)=>{const s=new e(r,i),o=new e(n,i);return s.compare(o)||s.compareBuild(o)},uz}var dz,Mbe;function XDr(){if(Mbe)return dz;Mbe=1;const e=Wee();return dz=(r,n)=>r.sort((i,s)=>e(i,s,n)),dz}var fz,jbe;function YDr(){if(jbe)return fz;jbe=1;const e=Wee();return fz=(r,n)=>r.sort((i,s)=>e(s,i,n)),fz}var pz,Fbe;function N6(){if(Fbe)return pz;Fbe=1;const e=Bd();return pz=(r,n,i)=>e(r,n,i)>0,pz}var hz,Lbe;function Gee(){if(Lbe)return hz;Lbe=1;const e=Bd();return hz=(r,n,i)=>e(r,n,i)<0,hz}var mz,zbe;function iZe(){if(zbe)return mz;zbe=1;const e=Bd();return mz=(r,n,i)=>e(r,n,i)===0,mz}var gz,Bbe;function sZe(){if(Bbe)return gz;Bbe=1;const e=Bd();return gz=(r,n,i)=>e(r,n,i)!==0,gz}var yz,Vbe;function Xee(){if(Vbe)return yz;Vbe=1;const e=Bd();return yz=(r,n,i)=>e(r,n,i)>=0,yz}var vz,Ube;function Yee(){if(Ube)return vz;Ube=1;const e=Bd();return vz=(r,n,i)=>e(r,n,i)<=0,vz}var bz,Qbe;function oZe(){if(Qbe)return bz;Qbe=1;const e=iZe(),t=sZe(),r=N6(),n=Xee(),i=Gee(),s=Yee();return bz=(a,l,c,u)=>{switch(l){case"===":return typeof a=="object"&&(a=a.version),typeof c=="object"&&(c=c.version),a===c;case"!==":return typeof a=="object"&&(a=a.version),typeof c=="object"&&(c=c.version),a!==c;case"":case"=":case"==":return e(a,c,u);case"!=":return t(a,c,u);case">":return r(a,c,u);case">=":return n(a,c,u);case"<":return i(a,c,u);case"<=":return s(a,c,u);default:throw new TypeError(`Invalid operator: ${l}`)}},bz}var xz,Zbe;function JDr(){if(Zbe)return xz;Zbe=1;const e=$a(),t=hS(),{safeRe:r,t:n}=wD();return xz=(s,o)=>{if(s instanceof e)return s;if(typeof s=="number"&&(s=String(s)),typeof s!="string")return null;o=o||{};let a=null;if(!o.rtl)a=s.match(o.includePrerelease?r[n.COERCEFULL]:r[n.COERCE]);else{const m=o.includePrerelease?r[n.COERCERTLFULL]:r[n.COERCERTL];let g;for(;(g=m.exec(s))&&(!a||a.index+a[0].length!==s.length);)(!a||g.index+g[0].length!==a.index+a[0].length)&&(a=g),m.lastIndex=g.index+g[1].length+g[2].length;m.lastIndex=-1}if(a===null)return null;const l=a[2],c=a[3]||"0",u=a[4]||"0",d=o.includePrerelease&&a[5]?`-${a[5]}`:"",f=o.includePrerelease&&a[6]?`+${a[6]}`:"";return t(`${l}.${c}.${u}${d}${f}`,o)},xz}var wz,qbe;function KDr(){if(qbe)return wz;qbe=1;class e{constructor(){this.max=1e3,this.map=new Map}get(r){const n=this.map.get(r);if(n!==void 0)return this.map.delete(r),this.map.set(r,n),n}delete(r){return this.map.delete(r)}set(r,n){if(!this.delete(r)&&n!==void 0){if(this.map.size>=this.max){const s=this.map.keys().next().value;this.delete(s)}this.map.set(r,n)}return this}}return wz=e,wz}var Sz,Hbe;function Vd(){if(Hbe)return Sz;Hbe=1;const e=/\s+/g;class t{constructor(Q,F){if(F=i(F),Q instanceof t)return Q.loose===!!F.loose&&Q.includePrerelease===!!F.includePrerelease?Q:new t(Q.raw,F);if(Q instanceof s)return this.raw=Q.value,this.set=[[Q]],this.formatted=void 0,this;if(this.options=F,this.loose=!!F.loose,this.includePrerelease=!!F.includePrerelease,this.raw=Q.trim().replace(e," "),this.set=this.raw.split("||").map(N=>this.parseRange(N.trim())).filter(N=>N.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const N=this.set[0];if(this.set=this.set.filter(I=>!v(I[0])),this.set.length===0)this.set=[N];else if(this.set.length>1){for(const I of this.set)if(I.length===1&&b(I[0])){this.set=[I];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let Q=0;Q<this.set.length;Q++){Q>0&&(this.formatted+="||");const F=this.set[Q];for(let N=0;N<F.length;N++)N>0&&(this.formatted+=" "),this.formatted+=F[N].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(Q){const N=((this.options.includePrerelease&&m)|(this.options.loose&&g))+":"+Q,I=n.get(N);if(I)return I;const H=this.options.loose,B=H?l[c.HYPHENRANGELOOSE]:l[c.HYPHENRANGE];Q=Q.replace(B,U(this.options.includePrerelease)),o("hyphen replace",Q),Q=Q.replace(l[c.COMPARATORTRIM],u),o("comparator trim",Q),Q=Q.replace(l[c.TILDETRIM],d),o("tilde trim",Q),Q=Q.replace(l[c.CARETTRIM],f),o("caret trim",Q);let J=Q.split(" ").map(K=>S(K,this.options)).join(" ").split(/\s+/).map(K=>z(K,this.options));H&&(J=J.filter(K=>(o("loose invalid filter",K,this.options),!!K.match(l[c.COMPARATORLOOSE])))),o("range list",J);const q=new Map,j=J.map(K=>new s(K,this.options));for(const K of j){if(v(K))return[K];q.set(K.value,K)}q.size>1&&q.has("")&&q.delete("");const W=[...q.values()];return n.set(N,W),W}intersects(Q,F){if(!(Q instanceof t))throw new TypeError("a Range is required");return this.set.some(N=>w(N,F)&&Q.set.some(I=>w(I,F)&&N.every(H=>I.every(B=>H.intersects(B,F)))))}test(Q){if(!Q)return!1;if(typeof Q=="string")try{Q=new a(Q,this.options)}catch{return!1}for(let F=0;F<this.set.length;F++)if(V(this.set[F],Q,this.options))return!0;return!1}}Sz=t;const r=KDr(),n=new r,i=Hee(),s=R6(),o=I6(),a=$a(),{safeRe:l,t:c,comparatorTrimReplace:u,tildeTrimReplace:d,caretTrimReplace:f}=wD(),{FLAG_INCLUDE_PRERELEASE:m,FLAG_LOOSE:g}=$6(),v=L=>L.value==="<0.0.0-0",b=L=>L.value==="",w=(L,Q)=>{let F=!0;const N=L.slice();let I=N.pop();for(;F&&N.length;)F=N.every(H=>I.intersects(H,Q)),I=N.pop();return F},S=(L,Q)=>(L=L.replace(l[c.BUILD],""),o("comp",L,Q),L=T(L,Q),o("caret",L),L=k(L,Q),o("tildes",L),L=A(L,Q),o("xrange",L),L=M(L,Q),o("stars",L),L),O=L=>!L||L.toLowerCase()==="x"||L==="*",k=(L,Q)=>L.trim().split(/\s+/).map(F=>C(F,Q)).join(" "),C=(L,Q)=>{const F=Q.loose?l[c.TILDELOOSE]:l[c.TILDE];return L.replace(F,(N,I,H,B,J)=>{o("tilde",L,N,I,H,B,J);let q;return O(I)?q="":O(H)?q=`>=${I}.0.0 <${+I+1}.0.0-0`:O(B)?q=`>=${I}.${H}.0 <${I}.${+H+1}.0-0`:J?(o("replaceTilde pr",J),q=`>=${I}.${H}.${B}-${J} <${I}.${+H+1}.0-0`):q=`>=${I}.${H}.${B} <${I}.${+H+1}.0-0`,o("tilde return",q),q})},T=(L,Q)=>L.trim().split(/\s+/).map(F=>P(F,Q)).join(" "),P=(L,Q)=>{o("caret",L,Q);const F=Q.loose?l[c.CARETLOOSE]:l[c.CARET],N=Q.includePrerelease?"-0":"";return L.replace(F,(I,H,B,J,q)=>{o("caret",L,I,H,B,J,q);let j;return O(H)?j="":O(B)?j=`>=${H}.0.0${N} <${+H+1}.0.0-0`:O(J)?H==="0"?j=`>=${H}.${B}.0${N} <${H}.${+B+1}.0-0`:j=`>=${H}.${B}.0${N} <${+H+1}.0.0-0`:q?(o("replaceCaret pr",q),H==="0"?B==="0"?j=`>=${H}.${B}.${J}-${q} <${H}.${B}.${+J+1}-0`:j=`>=${H}.${B}.${J}-${q} <${H}.${+B+1}.0-0`:j=`>=${H}.${B}.${J}-${q} <${+H+1}.0.0-0`):(o("no pr"),H==="0"?B==="0"?j=`>=${H}.${B}.${J}${N} <${H}.${B}.${+J+1}-0`:j=`>=${H}.${B}.${J}${N} <${H}.${+B+1}.0-0`:j=`>=${H}.${B}.${J} <${+H+1}.0.0-0`),o("caret return",j),j})},A=(L,Q)=>(o("replaceXRanges",L,Q),L.split(/\s+/).map(F=>R(F,Q)).join(" ")),R=(L,Q)=>{L=L.trim();const F=Q.loose?l[c.XRANGELOOSE]:l[c.XRANGE];return L.replace(F,(N,I,H,B,J,q)=>{o("xRange",L,N,I,H,B,J,q);const j=O(H),W=j||O(B),K=W||O(J),ne=K;return I==="="&&ne&&(I=""),q=Q.includePrerelease?"-0":"",j?I===">"||I==="<"?N="<0.0.0-0":N="*":I&&ne?(W&&(B=0),J=0,I===">"?(I=">=",W?(H=+H+1,B=0,J=0):(B=+B+1,J=0)):I==="<="&&(I="<",W?H=+H+1:B=+B+1),I==="<"&&(q="-0"),N=`${I+H}.${B}.${J}${q}`):W?N=`>=${H}.0.0${q} <${+H+1}.0.0-0`:K&&(N=`>=${H}.${B}.0${q} <${H}.${+B+1}.0-0`),o("xRange return",N),N})},M=(L,Q)=>(o("replaceStars",L,Q),L.trim().replace(l[c.STAR],"")),z=(L,Q)=>(o("replaceGTE0",L,Q),L.trim().replace(l[Q.includePrerelease?c.GTE0PRE:c.GTE0],"")),U=L=>(Q,F,N,I,H,B,J,q,j,W,K,ne)=>(O(N)?F="":O(I)?F=`>=${N}.0.0${L?"-0":""}`:O(H)?F=`>=${N}.${I}.0${L?"-0":""}`:B?F=`>=${F}`:F=`>=${F}${L?"-0":""}`,O(j)?q="":O(W)?q=`<${+j+1}.0.0-0`:O(K)?q=`<${j}.${+W+1}.0-0`:ne?q=`<=${j}.${W}.${K}-${ne}`:L?q=`<${j}.${W}.${+K+1}-0`:q=`<=${q}`,`${F} ${q}`.trim()),V=(L,Q,F)=>{for(let N=0;N<L.length;N++)if(!L[N].test(Q))return!1;if(Q.prerelease.length&&!F.includePrerelease){for(let N=0;N<L.length;N++)if(o(L[N].semver),L[N].semver!==s.ANY&&L[N].semver.prerelease.length>0){const I=L[N].semver;if(I.major===Q.major&&I.minor===Q.minor&&I.patch===Q.patch)return!0}return!1}return!0};return Sz}var Oz,Wbe;function R6(){if(Wbe)return Oz;Wbe=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(u,d){if(d=r(d),u instanceof t){if(u.loose===!!d.loose)return u;u=u.value}u=u.trim().split(/\s+/).join(" "),o("comparator",u,d),this.options=d,this.loose=!!d.loose,this.parse(u),this.semver===e?this.value="":this.value=this.operator+this.semver.version,o("comp",this)}parse(u){const d=this.options.loose?n[i.COMPARATORLOOSE]:n[i.COMPARATOR],f=u.match(d);if(!f)throw new TypeError(`Invalid comparator: ${u}`);this.operator=f[1]!==void 0?f[1]:"",this.operator==="="&&(this.operator=""),f[2]?this.semver=new a(f[2],this.options.loose):this.semver=e}toString(){return this.value}test(u){if(o("Comparator.test",u,this.options.loose),this.semver===e||u===e)return!0;if(typeof u=="string")try{u=new a(u,this.options)}catch{return!1}return s(u,this.operator,this.semver,this.options)}intersects(u,d){if(!(u instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new l(u.value,d).test(this.value):u.operator===""?u.value===""?!0:new l(this.value,d).test(u.semver):(d=r(d),d.includePrerelease&&(this.value==="<0.0.0-0"||u.value==="<0.0.0-0")||!d.includePrerelease&&(this.value.startsWith("<0.0.0")||u.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&u.operator.startsWith(">")||this.operator.startsWith("<")&&u.operator.startsWith("<")||this.semver.version===u.semver.version&&this.operator.includes("=")&&u.operator.includes("=")||s(this.semver,"<",u.semver,d)&&this.operator.startsWith(">")&&u.operator.startsWith("<")||s(this.semver,">",u.semver,d)&&this.operator.startsWith("<")&&u.operator.startsWith(">")))}}Oz=t;const r=Hee(),{safeRe:n,t:i}=wD(),s=oZe(),o=I6(),a=$a(),l=Vd();return Oz}var _z,Gbe;function M6(){if(Gbe)return _z;Gbe=1;const e=Vd();return _z=(r,n,i)=>{try{n=new e(n,i)}catch{return!1}return n.test(r)},_z}var kz,Xbe;function eAr(){if(Xbe)return kz;Xbe=1;const e=Vd();return kz=(r,n)=>new e(r,n).set.map(i=>i.map(s=>s.value).join(" ").trim().split(" ")),kz}var Ez,Ybe;function tAr(){if(Ybe)return Ez;Ybe=1;const e=$a(),t=Vd();return Ez=(n,i,s)=>{let o=null,a=null,l=null;try{l=new t(i,s)}catch{return null}return n.forEach(c=>{l.test(c)&&(!o||a.compare(c)===-1)&&(o=c,a=new e(o,s))}),o},Ez}var Cz,Jbe;function rAr(){if(Jbe)return Cz;Jbe=1;const e=$a(),t=Vd();return Cz=(n,i,s)=>{let o=null,a=null,l=null;try{l=new t(i,s)}catch{return null}return n.forEach(c=>{l.test(c)&&(!o||a.compare(c)===1)&&(o=c,a=new e(o,s))}),o},Cz}var Tz,Kbe;function nAr(){if(Kbe)return Tz;Kbe=1;const e=$a(),t=Vd(),r=N6();return Tz=(i,s)=>{i=new t(i,s);let o=new e("0.0.0");if(i.test(o)||(o=new e("0.0.0-0"),i.test(o)))return o;o=null;for(let a=0;a<i.set.length;++a){const l=i.set[a];let c=null;l.forEach(u=>{const d=new e(u.semver.version);switch(u.operator){case">":d.prerelease.length===0?d.patch++:d.prerelease.push(0),d.raw=d.format();case"":case">=":(!c||r(d,c))&&(c=d);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${u.operator}`)}}),c&&(!o||r(o,c))&&(o=c)}return o&&i.test(o)?o:null},Tz}var Dz,exe;function iAr(){if(exe)return Dz;exe=1;const e=Vd();return Dz=(r,n)=>{try{return new e(r,n).range||"*"}catch{return null}},Dz}var Az,txe;function Jee(){if(txe)return Az;txe=1;const e=$a(),t=R6(),{ANY:r}=t,n=Vd(),i=M6(),s=N6(),o=Gee(),a=Yee(),l=Xee();return Az=(u,d,f,m)=>{u=new e(u,m),d=new n(d,m);let g,v,b,w,S;switch(f){case">":g=s,v=a,b=o,w=">",S=">=";break;case"<":g=o,v=l,b=s,w="<",S="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(i(u,d,m))return!1;for(let O=0;O<d.set.length;++O){const k=d.set[O];let C=null,T=null;if(k.forEach(P=>{P.semver===r&&(P=new t(">=0.0.0")),C=C||P,T=T||P,g(P.semver,C.semver,m)?C=P:b(P.semver,T.semver,m)&&(T=P)}),C.operator===w||C.operator===S||(!T.operator||T.operator===w)&&v(u,T.semver))return!1;if(T.operator===S&&b(u,T.semver))return!1}return!0},Az}var Pz,rxe;function sAr(){if(rxe)return Pz;rxe=1;const e=Jee();return Pz=(r,n,i)=>e(r,n,">",i),Pz}var $z,nxe;function oAr(){if(nxe)return $z;nxe=1;const e=Jee();return $z=(r,n,i)=>e(r,n,"<",i),$z}var Iz,ixe;function aAr(){if(ixe)return Iz;ixe=1;const e=Vd();return Iz=(r,n,i)=>(r=new e(r,i),n=new e(n,i),r.intersects(n,i)),Iz}var Nz,sxe;function lAr(){if(sxe)return Nz;sxe=1;const e=M6(),t=Bd();return Nz=(r,n,i)=>{const s=[];let o=null,a=null;const l=r.sort((f,m)=>t(f,m,i));for(const f of l)e(f,n,i)?(a=f,o||(o=f)):(a&&s.push([o,a]),a=null,o=null);o&&s.push([o,null]);const c=[];for(const[f,m]of s)f===m?c.push(f):!m&&f===l[0]?c.push("*"):m?f===l[0]?c.push(`<=${m}`):c.push(`${f} - ${m}`):c.push(`>=${f}`);const u=c.join(" || "),d=typeof n.raw=="string"?n.raw:String(n);return u.length<d.length?u:n},Nz}var Rz,oxe;function cAr(){if(oxe)return Rz;oxe=1;const e=Vd(),t=R6(),{ANY:r}=t,n=M6(),i=Bd(),s=(d,f,m={})=>{if(d===f)return!0;d=new e(d,m),f=new e(f,m);let g=!1;e:for(const v of d.set){for(const b of f.set){const w=l(v,b,m);if(g=g||w!==null,w)continue e}if(g)return!1}return!0},o=[new t(">=0.0.0-0")],a=[new t(">=0.0.0")],l=(d,f,m)=>{if(d===f)return!0;if(d.length===1&&d[0].semver===r){if(f.length===1&&f[0].semver===r)return!0;m.includePrerelease?d=o:d=a}if(f.length===1&&f[0].semver===r){if(m.includePrerelease)return!0;f=a}const g=new Set;let v,b;for(const A of d)A.operator===">"||A.operator===">="?v=c(v,A,m):A.operator==="<"||A.operator==="<="?b=u(b,A,m):g.add(A.semver);if(g.size>1)return null;let w;if(v&&b){if(w=i(v.semver,b.semver,m),w>0)return null;if(w===0&&(v.operator!==">="||b.operator!=="<="))return null}for(const A of g){if(v&&!n(A,String(v),m)||b&&!n(A,String(b),m))return null;for(const R of f)if(!n(A,String(R),m))return!1;return!0}let S,O,k,C,T=b&&!m.includePrerelease&&b.semver.prerelease.length?b.semver:!1,P=v&&!m.includePrerelease&&v.semver.prerelease.length?v.semver:!1;T&&T.prerelease.length===1&&b.operator==="<"&&T.prerelease[0]===0&&(T=!1);for(const A of f){if(C=C||A.operator===">"||A.operator===">=",k=k||A.operator==="<"||A.operator==="<=",v){if(P&&A.semver.prerelease&&A.semver.prerelease.length&&A.semver.major===P.major&&A.semver.minor===P.minor&&A.semver.patch===P.patch&&(P=!1),A.operator===">"||A.operator===">="){if(S=c(v,A,m),S===A&&S!==v)return!1}else if(v.operator===">="&&!n(v.semver,String(A),m))return!1}if(b){if(T&&A.semver.prerelease&&A.semver.prerelease.length&&A.semver.major===T.major&&A.semver.minor===T.minor&&A.semver.patch===T.patch&&(T=!1),A.operator==="<"||A.operator==="<="){if(O=u(b,A,m),O===A&&O!==b)return!1}else if(b.operator==="<="&&!n(b.semver,String(A),m))return!1}if(!A.operator&&(b||v)&&w!==0)return!1}return!(v&&k&&!b&&w!==0||b&&C&&!v&&w!==0||P||T)},c=(d,f,m)=>{if(!d)return f;const g=i(d.semver,f.semver,m);return g>0?d:g<0||f.operator===">"&&d.operator===">="?f:d},u=(d,f,m)=>{if(!d)return f;const g=i(d.semver,f.semver,m);return g<0?d:g>0||f.operator==="<"&&d.operator==="<="?f:d};return Rz=s,Rz}var Mz,axe;function uAr(){if(axe)return Mz;axe=1;const e=wD(),t=$6(),r=$a(),n=nZe(),i=hS(),s=zDr(),o=BDr(),a=VDr(),l=UDr(),c=QDr(),u=ZDr(),d=qDr(),f=HDr(),m=Bd(),g=WDr(),v=GDr(),b=Wee(),w=XDr(),S=YDr(),O=N6(),k=Gee(),C=iZe(),T=sZe(),P=Xee(),A=Yee(),R=oZe(),M=JDr(),z=R6(),U=Vd(),V=M6(),L=eAr(),Q=tAr(),F=rAr(),N=nAr(),I=iAr(),H=Jee(),B=sAr(),J=oAr(),q=aAr(),j=lAr(),W=cAr();return Mz={parse:i,valid:s,clean:o,inc:a,diff:l,major:c,minor:u,patch:d,prerelease:f,compare:m,rcompare:g,compareLoose:v,compareBuild:b,sort:w,rsort:S,gt:O,lt:k,eq:C,neq:T,gte:P,lte:A,cmp:R,coerce:M,Comparator:z,Range:U,satisfies:V,toComparators:L,maxSatisfying:Q,minSatisfying:F,minVersion:N,validRange:I,outside:H,gtr:B,ltr:J,intersects:q,simplifyRange:j,subset:W,SemVer:r,re:e.re,src:e.src,tokens:e.t,SEMVER_SPEC_VERSION:t.SEMVER_SPEC_VERSION,RELEASE_TYPES:t.RELEASE_TYPES,compareIdentifiers:n.compareIdentifiers,rcompareIdentifiers:n.rcompareIdentifiers},Mz}var dAr=uAr();const e_=Qh(dAr);function aZe(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=aZe(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function lZe(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=aZe(e))&&(n&&(n+=" "),n+=t);return n}const Kee="-",fAr=e=>{const t=hAr(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:o=>{const a=o.split(Kee);return a[0]===""&&a.length!==1&&a.shift(),cZe(a,t)||pAr(o)},getConflictingClassGroupIds:(o,a)=>{const l=r[o]||[];return a&&n[o]?[...l,...n[o]]:l}}},cZe=(e,t)=>{if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),i=n?cZe(e.slice(1),n):void 0;if(i)return i;if(t.validators.length===0)return;const s=e.join(Kee);return t.validators.find(({validator:o})=>o(s))?.classGroupId},lxe=/^\[(.+)\]$/,pAr=e=>{if(lxe.test(e)){const t=lxe.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},hAr=e=>{const{theme:t,classGroups:r}=e,n={nextPart:new Map,validators:[]};for(const i in r)BZ(r[i],n,i,t);return n},BZ=(e,t,r,n)=>{e.forEach(i=>{if(typeof i=="string"){const s=i===""?t:cxe(t,i);s.classGroupId=r;return}if(typeof i=="function"){if(mAr(i)){BZ(i(n),t,r,n);return}t.validators.push({validator:i,classGroupId:r});return}Object.entries(i).forEach(([s,o])=>{BZ(o,cxe(t,s),r,n)})})},cxe=(e,t)=>{let r=e;return t.split(Kee).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},mAr=e=>e.isThemeGetter,gAr=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const i=(s,o)=>{r.set(s,o),t++,t>e&&(t=0,n=r,r=new Map)};return{get(s){let o=r.get(s);if(o!==void 0)return o;if((o=n.get(s))!==void 0)return i(s,o),o},set(s,o){r.has(s)?r.set(s,o):i(s,o)}}},VZ="!",UZ=":",yAr=UZ.length,vAr=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=i=>{const s=[];let o=0,a=0,l=0,c;for(let g=0;g<i.length;g++){let v=i[g];if(o===0&&a===0){if(v===UZ){s.push(i.slice(l,g)),l=g+yAr;continue}if(v==="/"){c=g;continue}}v==="["?o++:v==="]"?o--:v==="("?a++:v===")"&&a--}const u=s.length===0?i:i.substring(l),d=bAr(u),f=d!==u,m=c&&c>l?c-l:void 0;return{modifiers:s,hasImportantModifier:f,baseClassName:d,maybePostfixModifierPosition:m}};if(t){const i=t+UZ,s=n;n=o=>o.startsWith(i)?s(o.substring(i.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:o,maybePostfixModifierPosition:void 0}}if(r){const i=n;n=s=>r({className:s,parseClassName:i})}return n},bAr=e=>e.endsWith(VZ)?e.substring(0,e.length-1):e.startsWith(VZ)?e.substring(1):e,xAr=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(n=>[n,!0]));return n=>{if(n.length<=1)return n;const i=[];let s=[];return n.forEach(o=>{o[0]==="["||t[o]?(i.push(...s.sort(),o),s=[]):s.push(o)}),i.push(...s.sort()),i}},wAr=e=>({cache:gAr(e.cacheSize),parseClassName:vAr(e),sortModifiers:xAr(e),...fAr(e)}),SAr=/\s+/,OAr=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:i,sortModifiers:s}=t,o=[],a=e.trim().split(SAr);let l="";for(let c=a.length-1;c>=0;c-=1){const u=a[c],{isExternal:d,modifiers:f,hasImportantModifier:m,baseClassName:g,maybePostfixModifierPosition:v}=r(u);if(d){l=u+(l.length>0?" "+l:l);continue}let b=!!v,w=n(b?g.substring(0,v):g);if(!w){if(!b){l=u+(l.length>0?" "+l:l);continue}if(w=n(g),!w){l=u+(l.length>0?" "+l:l);continue}b=!1}const S=s(f).join(":"),O=m?S+VZ:S,k=O+w;if(o.includes(k))continue;o.push(k);const C=i(w,b);for(let T=0;T<C.length;++T){const P=C[T];o.push(O+P)}l=u+(l.length>0?" "+l:l)}return l};function _Ar(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=uZe(t))&&(n&&(n+=" "),n+=r);return n}const uZe=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=uZe(e[n]))&&(r&&(r+=" "),r+=t);return r};function uxe(e,...t){let r,n,i,s=o;function o(l){const c=t.reduce((u,d)=>d(u),e());return r=wAr(c),n=r.cache.get,i=r.cache.set,s=a,a(l)}function a(l){const c=n(l);if(c)return c;const u=OAr(l,r);return i(l,u),u}return function(){return s(_Ar.apply(null,arguments))}}const Vs=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},dZe=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,fZe=/^\((?:(\w[\w-]*):)?(.+)\)$/i,kAr=/^\d+\/\d+$/,EAr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,CAr=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,TAr=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,DAr=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,AAr=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,rx=e=>kAr.test(e),Nr=e=>!!e&&!Number.isNaN(Number(e)),Qm=e=>!!e&&Number.isInteger(Number(e)),jz=e=>e.endsWith("%")&&Nr(e.slice(0,-1)),Xp=e=>EAr.test(e),PAr=()=>!0,$Ar=e=>CAr.test(e)&&!TAr.test(e),pZe=()=>!1,IAr=e=>DAr.test(e),NAr=e=>AAr.test(e),RAr=e=>!Nt(e)&&!Rt(e),MAr=e=>mS(e,gZe,pZe),Nt=e=>dZe.test(e),Wy=e=>mS(e,yZe,$Ar),Fz=e=>mS(e,BAr,Nr),dxe=e=>mS(e,hZe,pZe),jAr=e=>mS(e,mZe,NAr),MP=e=>mS(e,vZe,IAr),Rt=e=>fZe.test(e),t_=e=>gS(e,yZe),FAr=e=>gS(e,VAr),fxe=e=>gS(e,hZe),LAr=e=>gS(e,gZe),zAr=e=>gS(e,mZe),jP=e=>gS(e,vZe,!0),mS=(e,t,r)=>{const n=dZe.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},gS=(e,t,r=!1)=>{const n=fZe.exec(e);return n?n[1]?t(n[1]):r:!1},hZe=e=>e==="position"||e==="percentage",mZe=e=>e==="image"||e==="url",gZe=e=>e==="length"||e==="size"||e==="bg-size",yZe=e=>e==="length",BAr=e=>e==="number",VAr=e=>e==="family-name",vZe=e=>e==="shadow",pxe=()=>{const e=Vs("color"),t=Vs("font"),r=Vs("text"),n=Vs("font-weight"),i=Vs("tracking"),s=Vs("leading"),o=Vs("breakpoint"),a=Vs("container"),l=Vs("spacing"),c=Vs("radius"),u=Vs("shadow"),d=Vs("inset-shadow"),f=Vs("text-shadow"),m=Vs("drop-shadow"),g=Vs("blur"),v=Vs("perspective"),b=Vs("aspect"),w=Vs("ease"),S=Vs("animate"),O=()=>["auto","avoid","all","avoid-page","page","left","right","column"],k=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],C=()=>[...k(),Rt,Nt],T=()=>["auto","hidden","clip","visible","scroll"],P=()=>["auto","contain","none"],A=()=>[Rt,Nt,l],R=()=>[rx,"full","auto",...A()],M=()=>[Qm,"none","subgrid",Rt,Nt],z=()=>["auto",{span:["full",Qm,Rt,Nt]},Qm,Rt,Nt],U=()=>[Qm,"auto",Rt,Nt],V=()=>["auto","min","max","fr",Rt,Nt],L=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Q=()=>["start","end","center","stretch","center-safe","end-safe"],F=()=>["auto",...A()],N=()=>[rx,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...A()],I=()=>[e,Rt,Nt],H=()=>[...k(),fxe,dxe,{position:[Rt,Nt]}],B=()=>["no-repeat",{repeat:["","x","y","space","round"]}],J=()=>["auto","cover","contain",LAr,MAr,{size:[Rt,Nt]}],q=()=>[jz,t_,Wy],j=()=>["","none","full",c,Rt,Nt],W=()=>["",Nr,t_,Wy],K=()=>["solid","dashed","dotted","double"],ne=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],X=()=>[Nr,jz,fxe,dxe],te=()=>["","none",g,Rt,Nt],ue=()=>["none",Nr,Rt,Nt],de=()=>["none",Nr,Rt,Nt],De=()=>[Nr,Rt,Nt],we=()=>[rx,"full",...A()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Xp],breakpoint:[Xp],color:[PAr],container:[Xp],"drop-shadow":[Xp],ease:["in","out","in-out"],font:[RAr],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Xp],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Xp],shadow:[Xp],spacing:["px",Nr],text:[Xp],"text-shadow":[Xp],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",rx,Nt,Rt,b]}],container:["container"],columns:[{columns:[Nr,Nt,Rt,a]}],"break-after":[{"break-after":O()}],"break-before":[{"break-before":O()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:C()}],overflow:[{overflow:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],overscroll:[{overscroll:P()}],"overscroll-x":[{"overscroll-x":P()}],"overscroll-y":[{"overscroll-y":P()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:R()}],"inset-x":[{"inset-x":R()}],"inset-y":[{"inset-y":R()}],start:[{start:R()}],end:[{end:R()}],top:[{top:R()}],right:[{right:R()}],bottom:[{bottom:R()}],left:[{left:R()}],visibility:["visible","invisible","collapse"],z:[{z:[Qm,"auto",Rt,Nt]}],basis:[{basis:[rx,"full","auto",a,...A()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Nr,rx,"auto","initial","none",Nt]}],grow:[{grow:["",Nr,Rt,Nt]}],shrink:[{shrink:["",Nr,Rt,Nt]}],order:[{order:[Qm,"first","last","none",Rt,Nt]}],"grid-cols":[{"grid-cols":M()}],"col-start-end":[{col:z()}],"col-start":[{"col-start":U()}],"col-end":[{"col-end":U()}],"grid-rows":[{"grid-rows":M()}],"row-start-end":[{row:z()}],"row-start":[{"row-start":U()}],"row-end":[{"row-end":U()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":V()}],"auto-rows":[{"auto-rows":V()}],gap:[{gap:A()}],"gap-x":[{"gap-x":A()}],"gap-y":[{"gap-y":A()}],"justify-content":[{justify:[...L(),"normal"]}],"justify-items":[{"justify-items":[...Q(),"normal"]}],"justify-self":[{"justify-self":["auto",...Q()]}],"align-content":[{content:["normal",...L()]}],"align-items":[{items:[...Q(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Q(),{baseline:["","last"]}]}],"place-content":[{"place-content":L()}],"place-items":[{"place-items":[...Q(),"baseline"]}],"place-self":[{"place-self":["auto",...Q()]}],p:[{p:A()}],px:[{px:A()}],py:[{py:A()}],ps:[{ps:A()}],pe:[{pe:A()}],pt:[{pt:A()}],pr:[{pr:A()}],pb:[{pb:A()}],pl:[{pl:A()}],m:[{m:F()}],mx:[{mx:F()}],my:[{my:F()}],ms:[{ms:F()}],me:[{me:F()}],mt:[{mt:F()}],mr:[{mr:F()}],mb:[{mb:F()}],ml:[{ml:F()}],"space-x":[{"space-x":A()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":A()}],"space-y-reverse":["space-y-reverse"],size:[{size:N()}],w:[{w:[a,"screen",...N()]}],"min-w":[{"min-w":[a,"screen","none",...N()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[o]},...N()]}],h:[{h:["screen","lh",...N()]}],"min-h":[{"min-h":["screen","lh","none",...N()]}],"max-h":[{"max-h":["screen","lh",...N()]}],"font-size":[{text:["base",r,t_,Wy]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,Rt,Fz]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",jz,Nt]}],"font-family":[{font:[FAr,Nt,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,Rt,Nt]}],"line-clamp":[{"line-clamp":[Nr,"none",Rt,Fz]}],leading:[{leading:[s,...A()]}],"list-image":[{"list-image":["none",Rt,Nt]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Rt,Nt]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:I()}],"text-color":[{text:I()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...K(),"wavy"]}],"text-decoration-thickness":[{decoration:[Nr,"from-font","auto",Rt,Wy]}],"text-decoration-color":[{decoration:I()}],"underline-offset":[{"underline-offset":[Nr,"auto",Rt,Nt]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:A()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Rt,Nt]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Rt,Nt]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:H()}],"bg-repeat":[{bg:B()}],"bg-size":[{bg:J()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Qm,Rt,Nt],radial:["",Rt,Nt],conic:[Qm,Rt,Nt]},zAr,jAr]}],"bg-color":[{bg:I()}],"gradient-from-pos":[{from:q()}],"gradient-via-pos":[{via:q()}],"gradient-to-pos":[{to:q()}],"gradient-from":[{from:I()}],"gradient-via":[{via:I()}],"gradient-to":[{to:I()}],rounded:[{rounded:j()}],"rounded-s":[{"rounded-s":j()}],"rounded-e":[{"rounded-e":j()}],"rounded-t":[{"rounded-t":j()}],"rounded-r":[{"rounded-r":j()}],"rounded-b":[{"rounded-b":j()}],"rounded-l":[{"rounded-l":j()}],"rounded-ss":[{"rounded-ss":j()}],"rounded-se":[{"rounded-se":j()}],"rounded-ee":[{"rounded-ee":j()}],"rounded-es":[{"rounded-es":j()}],"rounded-tl":[{"rounded-tl":j()}],"rounded-tr":[{"rounded-tr":j()}],"rounded-br":[{"rounded-br":j()}],"rounded-bl":[{"rounded-bl":j()}],"border-w":[{border:W()}],"border-w-x":[{"border-x":W()}],"border-w-y":[{"border-y":W()}],"border-w-s":[{"border-s":W()}],"border-w-e":[{"border-e":W()}],"border-w-t":[{"border-t":W()}],"border-w-r":[{"border-r":W()}],"border-w-b":[{"border-b":W()}],"border-w-l":[{"border-l":W()}],"divide-x":[{"divide-x":W()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":W()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...K(),"hidden","none"]}],"divide-style":[{divide:[...K(),"hidden","none"]}],"border-color":[{border:I()}],"border-color-x":[{"border-x":I()}],"border-color-y":[{"border-y":I()}],"border-color-s":[{"border-s":I()}],"border-color-e":[{"border-e":I()}],"border-color-t":[{"border-t":I()}],"border-color-r":[{"border-r":I()}],"border-color-b":[{"border-b":I()}],"border-color-l":[{"border-l":I()}],"divide-color":[{divide:I()}],"outline-style":[{outline:[...K(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Nr,Rt,Nt]}],"outline-w":[{outline:["",Nr,t_,Wy]}],"outline-color":[{outline:I()}],shadow:[{shadow:["","none",u,jP,MP]}],"shadow-color":[{shadow:I()}],"inset-shadow":[{"inset-shadow":["none",d,jP,MP]}],"inset-shadow-color":[{"inset-shadow":I()}],"ring-w":[{ring:W()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:I()}],"ring-offset-w":[{"ring-offset":[Nr,Wy]}],"ring-offset-color":[{"ring-offset":I()}],"inset-ring-w":[{"inset-ring":W()}],"inset-ring-color":[{"inset-ring":I()}],"text-shadow":[{"text-shadow":["none",f,jP,MP]}],"text-shadow-color":[{"text-shadow":I()}],opacity:[{opacity:[Nr,Rt,Nt]}],"mix-blend":[{"mix-blend":[...ne(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ne()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Nr]}],"mask-image-linear-from-pos":[{"mask-linear-from":X()}],"mask-image-linear-to-pos":[{"mask-linear-to":X()}],"mask-image-linear-from-color":[{"mask-linear-from":I()}],"mask-image-linear-to-color":[{"mask-linear-to":I()}],"mask-image-t-from-pos":[{"mask-t-from":X()}],"mask-image-t-to-pos":[{"mask-t-to":X()}],"mask-image-t-from-color":[{"mask-t-from":I()}],"mask-image-t-to-color":[{"mask-t-to":I()}],"mask-image-r-from-pos":[{"mask-r-from":X()}],"mask-image-r-to-pos":[{"mask-r-to":X()}],"mask-image-r-from-color":[{"mask-r-from":I()}],"mask-image-r-to-color":[{"mask-r-to":I()}],"mask-image-b-from-pos":[{"mask-b-from":X()}],"mask-image-b-to-pos":[{"mask-b-to":X()}],"mask-image-b-from-color":[{"mask-b-from":I()}],"mask-image-b-to-color":[{"mask-b-to":I()}],"mask-image-l-from-pos":[{"mask-l-from":X()}],"mask-image-l-to-pos":[{"mask-l-to":X()}],"mask-image-l-from-color":[{"mask-l-from":I()}],"mask-image-l-to-color":[{"mask-l-to":I()}],"mask-image-x-from-pos":[{"mask-x-from":X()}],"mask-image-x-to-pos":[{"mask-x-to":X()}],"mask-image-x-from-color":[{"mask-x-from":I()}],"mask-image-x-to-color":[{"mask-x-to":I()}],"mask-image-y-from-pos":[{"mask-y-from":X()}],"mask-image-y-to-pos":[{"mask-y-to":X()}],"mask-image-y-from-color":[{"mask-y-from":I()}],"mask-image-y-to-color":[{"mask-y-to":I()}],"mask-image-radial":[{"mask-radial":[Rt,Nt]}],"mask-image-radial-from-pos":[{"mask-radial-from":X()}],"mask-image-radial-to-pos":[{"mask-radial-to":X()}],"mask-image-radial-from-color":[{"mask-radial-from":I()}],"mask-image-radial-to-color":[{"mask-radial-to":I()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":k()}],"mask-image-conic-pos":[{"mask-conic":[Nr]}],"mask-image-conic-from-pos":[{"mask-conic-from":X()}],"mask-image-conic-to-pos":[{"mask-conic-to":X()}],"mask-image-conic-from-color":[{"mask-conic-from":I()}],"mask-image-conic-to-color":[{"mask-conic-to":I()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:H()}],"mask-repeat":[{mask:B()}],"mask-size":[{mask:J()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Rt,Nt]}],filter:[{filter:["","none",Rt,Nt]}],blur:[{blur:te()}],brightness:[{brightness:[Nr,Rt,Nt]}],contrast:[{contrast:[Nr,Rt,Nt]}],"drop-shadow":[{"drop-shadow":["","none",m,jP,MP]}],"drop-shadow-color":[{"drop-shadow":I()}],grayscale:[{grayscale:["",Nr,Rt,Nt]}],"hue-rotate":[{"hue-rotate":[Nr,Rt,Nt]}],invert:[{invert:["",Nr,Rt,Nt]}],saturate:[{saturate:[Nr,Rt,Nt]}],sepia:[{sepia:["",Nr,Rt,Nt]}],"backdrop-filter":[{"backdrop-filter":["","none",Rt,Nt]}],"backdrop-blur":[{"backdrop-blur":te()}],"backdrop-brightness":[{"backdrop-brightness":[Nr,Rt,Nt]}],"backdrop-contrast":[{"backdrop-contrast":[Nr,Rt,Nt]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Nr,Rt,Nt]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Nr,Rt,Nt]}],"backdrop-invert":[{"backdrop-invert":["",Nr,Rt,Nt]}],"backdrop-opacity":[{"backdrop-opacity":[Nr,Rt,Nt]}],"backdrop-saturate":[{"backdrop-saturate":[Nr,Rt,Nt]}],"backdrop-sepia":[{"backdrop-sepia":["",Nr,Rt,Nt]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":A()}],"border-spacing-x":[{"border-spacing-x":A()}],"border-spacing-y":[{"border-spacing-y":A()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Rt,Nt]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Nr,"initial",Rt,Nt]}],ease:[{ease:["linear","initial",w,Rt,Nt]}],delay:[{delay:[Nr,Rt,Nt]}],animate:[{animate:["none",S,Rt,Nt]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[v,Rt,Nt]}],"perspective-origin":[{"perspective-origin":C()}],rotate:[{rotate:ue()}],"rotate-x":[{"rotate-x":ue()}],"rotate-y":[{"rotate-y":ue()}],"rotate-z":[{"rotate-z":ue()}],scale:[{scale:de()}],"scale-x":[{"scale-x":de()}],"scale-y":[{"scale-y":de()}],"scale-z":[{"scale-z":de()}],"scale-3d":["scale-3d"],skew:[{skew:De()}],"skew-x":[{"skew-x":De()}],"skew-y":[{"skew-y":De()}],transform:[{transform:[Rt,Nt,"","none","gpu","cpu"]}],"transform-origin":[{origin:C()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:we()}],"translate-x":[{"translate-x":we()}],"translate-y":[{"translate-y":we()}],"translate-z":[{"translate-z":we()}],"translate-none":["translate-none"],accent:[{accent:I()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:I()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Rt,Nt]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":A()}],"scroll-mx":[{"scroll-mx":A()}],"scroll-my":[{"scroll-my":A()}],"scroll-ms":[{"scroll-ms":A()}],"scroll-me":[{"scroll-me":A()}],"scroll-mt":[{"scroll-mt":A()}],"scroll-mr":[{"scroll-mr":A()}],"scroll-mb":[{"scroll-mb":A()}],"scroll-ml":[{"scroll-ml":A()}],"scroll-p":[{"scroll-p":A()}],"scroll-px":[{"scroll-px":A()}],"scroll-py":[{"scroll-py":A()}],"scroll-ps":[{"scroll-ps":A()}],"scroll-pe":[{"scroll-pe":A()}],"scroll-pt":[{"scroll-pt":A()}],"scroll-pr":[{"scroll-pr":A()}],"scroll-pb":[{"scroll-pb":A()}],"scroll-pl":[{"scroll-pl":A()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Rt,Nt]}],fill:[{fill:["none",...I()]}],"stroke-w":[{stroke:[Nr,t_,Wy,Fz]}],stroke:[{stroke:["none",...I()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},UAr=(e,{cacheSize:t,prefix:r,experimentalParseClassName:n,extend:i={},override:s={}})=>(A_(e,"cacheSize",t),A_(e,"prefix",r),A_(e,"experimentalParseClassName",n),FP(e.theme,s.theme),FP(e.classGroups,s.classGroups),FP(e.conflictingClassGroups,s.conflictingClassGroups),FP(e.conflictingClassGroupModifiers,s.conflictingClassGroupModifiers),A_(e,"orderSensitiveModifiers",s.orderSensitiveModifiers),LP(e.theme,i.theme),LP(e.classGroups,i.classGroups),LP(e.conflictingClassGroups,i.conflictingClassGroups),LP(e.conflictingClassGroupModifiers,i.conflictingClassGroupModifiers),bZe(e,i,"orderSensitiveModifiers"),e),A_=(e,t,r)=>{r!==void 0&&(e[t]=r)},FP=(e,t)=>{if(t)for(const r in t)A_(e,r,t[r])},LP=(e,t)=>{if(t)for(const r in t)bZe(e,t,r)},bZe=(e,t,r)=>{const n=t[r];n!==void 0&&(e[r]=e[r]?e[r].concat(n):n)},QAr=(e,...t)=>typeof e=="function"?uxe(pxe,e,...t):uxe(()=>UAr(pxe(),e),...t),ZAr=Object.keys({...dTe,...rft}),qAr=Object.keys(oft),HAr=Object.keys(nft),WAr=Object.keys(ift),GAr=Object.keys(tft),Gy=Object.keys(sft),XAr=QAr({extend:{theme:{color:ZAr,spacing:qAr,radius:GAr,leading:WAr},classGroups:{"font-size":[{text:HAr}],h:[{h:Gy}],w:[{w:Gy}],size:[{size:Gy}],"min-h":[{"min-h":Gy}],"min-w":[{"min-w":Gy}],"max-h":[{"max-h":Gy}],"max-w":[{"max-w":Gy}]}}});function ie(...e){return XAr(lZe(e))}const Ea={sm:"h-form-sm",md:"h-form-md",lg:"h-form-lg"},yS="focus:outline focus:outline-1 focus:outline-accent1",YAr="focus-within:outline focus-within:outline-1 focus-within:outline-accent1 focus-within:-outline-offset-2",SD="rounded-md",xZe={sm:`${Ea.sm} gap-0.5`,md:`${Ea.md} gap-1`,lg:`${Ea.lg} gap-2`},wZe={default:"bg-surface2 hover:bg-surface4 text-neutral3 hover:text-neutral6 disabled:opacity-50",light:"bg-surface3 hover:bg-surface5 text-neutral6 disabled:opacity-50",outline:"bg-transparent hover:bg-surface2 text-neutral3 hover:text-neutral6 disabled:opacity-50",ghost:"bg-transparent border-transparent hover:bg-surface2 text-neutral3 hover:text-neutral6 disabled:opacity-50"};function SZe(e){const t=e?.variant||"default",r=e?.size||"md";return ie("bg-surface2 border border-border1 px-2 text-ui-md inline-flex items-center justify-center rounded-md border",yS,wZe[t],xZe[r])}const Ke=me.forwardRef(({className:e,as:t,size:r="md",variant:n="default",...i},s)=>{const o=t||"button";return p.jsx(o,{ref:s,className:ie("bg-surface2 border border-border1 px-2 text-ui-md inline-flex items-center justify-center rounded-md border",yS,wZe[n],xZe[r],e,{"cursor-not-allowed":i.disabled}),...i})});Ke.displayName="Button";const xu=_ft,$i=kft,Ii=Eft,gi=E.forwardRef(({className:e,sideOffset:t=4,...r},n)=>p.jsx(Cft,{children:p.jsx(wTe,{ref:n,sideOffset:t,className:ie("z-50 overflow-hidden rounded-md bg-neutral6 px-3 py-1.5 text-xs text-surface2 animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r})}));gi.displayName=wTe.displayName;const dd=E.forwardRef(({children:e,tooltip:t,side:r="bottom",className:n,...i},s)=>p.jsx(xu,{children:p.jsxs($i,{children:[p.jsx(Ii,{asChild:!0,children:p.jsx(Ke,{...i,className:ie("size-6 p-1",n),ref:s,"aria-label":t,children:e})}),p.jsx(gi,{side:r,children:t})]})}));dd.displayName="TooltipIconButton";const JAr={"ui-xs":"text-ui-xs leading-ui-xs","ui-sm":"text-ui-sm leading-ui-sm","ui-md":"text-ui-md leading-ui-md","ui-lg":"text-ui-lg leading-ui-lg","header-sm":"text-header-sm leading-header-sm","header-md":"text-header-md leading-header-md","header-lg":"text-header-lg leading-header-lg","header-xl":"text-header-xl leading-header-xl"},KAr={mono:"font-mono"},Ye=({as:e="p",className:t,variant:r="ui-md",font:n,...i})=>p.jsx(e,{className:ie(JAr[r],n&&KAr[n],t),...i}),e2r={sm:"h-avatar-sm w-avatar-sm",md:"h-avatar-md w-avatar-md",lg:"h-avatar-lg w-avatar-lg"},t2r=({src:e,name:t,size:r="sm"})=>p.jsx("div",{className:`${e2r[r]} border border-border1 bg-surface3 shrink-0 overflow-hidden rounded-full flex items-center justify-center`,children:e?p.jsx("img",{src:e,alt:t,className:"h-full w-full object-cover"}):p.jsx(Ye,{variant:"ui-md",className:"text-center",children:t[0].toUpperCase()})}),r2r=Mbt({style:ibt.coldarkDark,customStyle:{margin:0,backgroundColor:"black"}}),n2r=()=>p.jsx(nyt,{remarkPlugins:[$De],className:"aui-md",components:a2r}),hxe=E.memo(n2r),i2r=({language:e,code:t})=>{const{isCopied:r,copyToClipboard:n}=s2r(),i=()=>{!t||r||n(t)};return p.jsxs("div",{style:{background:"hsl(0 0% 100% / 0.06)",borderTopRightRadius:"0.5rem",borderTopLeftRadius:"0.5rem",marginTop:"0.5rem",border:"1px solid hsl(0 0% 20.4%)",borderBottom:"none"},className:"flex items-center justify-between gap-4 px-4 py-2 text-sm font-semibold text-white",children:[p.jsx("span",{className:"lowercase [&>span]:text-xs",children:e}),p.jsx(dd,{tooltip:"Copy",onClick:i,children:p.jsxs("span",{className:"grid",children:[p.jsx("span",{style:{gridArea:"1/1"},className:ie("transition-transform",r?"scale-100":"scale-0"),children:p.jsx(yd,{size:14})},"checkmark"),p.jsx("span",{style:{gridArea:"1/1"},className:ie("transition-transform",r?"scale-0":"scale-100"),children:p.jsx(nu,{size:14})},"copy")]})})]})},s2r=({copiedDuration:e=1500}={})=>{const[t,r]=E.useState(!1);return{isCopied:t,copyToClipboard:i=>{i&&navigator.clipboard.writeText(i).then(()=>{r(!0),setTimeout(()=>r(!1),e)})}}},o2r=({alt:e,src:t,...r})=>{const[n,i]=E.useState(!1);return E.useEffect(()=>{i(!1)},[t]),n||!t?p.jsxs("div",{children:[p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",width:"150",height:"150",children:p.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m2.25 15.75 5.159-5.159a2.25 2.25 0 0 1 3.182 0l5.159 5.159m-1.5-1.5 1.409-1.409a2.25 2.25 0 0 1 3.182 0l2.909 2.909m-18 3.75h16.5a1.5 1.5 0 0 0 1.5-1.5V6a1.5 1.5 0 0 0-1.5-1.5H3.75A1.5 1.5 0 0 0 2.25 6v12a1.5 1.5 0 0 0 1.5 1.5Zm10.5-11.25h.008v.008h-.008V8.25Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Z"})}),p.jsx("p",{className:"text-xs italic text-neutral3 -mt-2.5 mb-2.5",children:"Image link is broken"})]}):p.jsx("img",{src:t,alt:e,...r,onError:()=>{i(!0)}})},a2r=Bgt({h1:({className:e,...t})=>p.jsx("h1",{className:ie("mb-8 scroll-m-20 text-4xl font-extrabold tracking-tight last:mb-0",e),...t,style:{marginBottom:"2rem"}}),h2:({className:e,...t})=>p.jsx("h2",{className:ie("mb-4 mt-8 scroll-m-20 text-3xl font-semibold tracking-tight first:mt-0 last:mb-0",e),...t,style:{marginBottom:"1rem",marginTop:"2rem"}}),h3:({className:e,...t})=>p.jsx("h3",{className:ie("scroll-m-20 text-2xl font-semibold tracking-tight first:mt-0 last:mb-0",e),...t,style:{marginBottom:"1rem",marginTop:"1.5rem"}}),h4:({className:e,...t})=>p.jsx("h4",{className:ie("scroll-m-20 text-xl font-semibold tracking-tight first:mt-0 last:mb-0",e),...t,style:{marginBottom:"1rem",marginTop:"1.5rem"}}),h5:({className:e,...t})=>p.jsx("h5",{className:ie("font-semibold first:mt-0 last:mb-0",e),...t,style:{marginBottom:"1rem",marginTop:"1rem"}}),h6:({className:e,...t})=>p.jsx("h6",{className:ie("font-semibold first:mt-0 last:mb-0",e),...t,style:{marginBottom:"1rem",marginTop:"1rem"}}),p:({className:e,...t})=>p.jsx("p",{className:ie("leading-7 first:mt-0 last:mb-0",e),...t}),a:({className:e,...t})=>p.jsx("a",{className:ie("text-neutral6 font-medium underline underline-offset-4",e),...t}),blockquote:({className:e,...t})=>p.jsx("blockquote",{className:ie("border-l-2 pl-6 italic",e),...t}),ul:({className:e,...t})=>p.jsx("ul",{className:ie("my-5 ml-6 list-disc [&>li]:mt-2",e),...t}),ol:({className:e,...t})=>p.jsx("ol",{className:ie("my-5 ml-6 list-decimal [&>li]:mt-2",e),...t}),hr:({className:e,...t})=>p.jsx("hr",{className:ie("my-5 border-b",e),...t}),table:({className:e,...t})=>p.jsx("table",{className:ie("my-5 w-full border-separate border-spacing-0 overflow-y-auto",e),...t}),th:({className:e,...t})=>p.jsx("th",{className:ie("bg-surface4 px-4 py-2 text-left font-bold first:rounded-tl-lg last:rounded-tr-lg [&[align=center]]:text-center [&[align=right]]:text-right",e),...t}),td:({className:e,...t})=>p.jsx("td",{className:ie("border-b border-l px-4 py-2 text-left last:border-r [&[align=center]]:text-center [&[align=right]]:text-right",e),...t}),tr:({className:e,...t})=>p.jsx("tr",{className:ie("m-0 border-b p-0 first:border-t [&:last-child>td:first-child]:rounded-bl-lg [&:last-child>td:last-child]:rounded-br-lg",e),...t}),sup:({className:e,...t})=>p.jsx("sup",{className:ie("[&>a]:text-xs [&>a]:no-underline",e),...t}),pre:({className:e,...t})=>p.jsx("pre",{...t,style:{borderBottomRightRadius:"0.5rem",borderBottomLeftRadius:"0.5rem",background:"transparent",fontSize:"0.875rem",marginBottom:"0.5rem",border:"1px solid hsl(0 0% 20.4%)"},className:ie("overflow-x-auto p-4 text-white",e)}),code:function({className:t,...r}){const n=oDe();return p.jsxs("pre",{style:{fontSize:"0.875rem",display:"inline"},children:[p.jsx("code",{className:ie(!n&&"bg-surface4 rounded border font-semibold",t),...r,style:{fontWeight:"400",paddingBlock:n?0:"0.1em",paddingInline:n?0:"0.3em"}})," "]})},CodeHeader:i2r,SyntaxHighlighter:r2r,img:o2r}),l2r=({reason:e,tripwire:t})=>{const[r,n]=E.useState(!1),i=t&&(t.retry!==void 0||t.tripwirePayload||t.processorId);return p.jsxs("div",{className:"rounded-lg border border-amber-500/30 bg-amber-950/20 overflow-hidden",children:[p.jsxs("div",{className:"flex items-start gap-3 p-4",children:[p.jsx(OT,{className:"w-5 h-5 text-amber-400 mt-0.5 flex-shrink-0"}),p.jsxs("div",{className:"flex-1 min-w-0",children:[p.jsx("p",{className:"text-sm font-medium text-amber-200 mb-1",children:"Content Blocked"}),p.jsx("p",{className:"text-sm text-amber-300/90",children:e})]})]}),i&&p.jsxs(p.Fragment,{children:[p.jsxs("button",{onClick:()=>n(!r),className:"w-full flex items-center gap-2 px-4 py-2 text-xs text-amber-400/70 hover:text-amber-400 hover:bg-amber-900/20 transition-colors border-t border-amber-500/20",children:[r?p.jsx(Rd,{className:"w-3.5 h-3.5"}):p.jsx(IN,{className:"w-3.5 h-3.5"}),p.jsx("span",{children:"Details"})]}),r&&p.jsxs("div",{className:"px-4 pb-4 space-y-3 border-t border-amber-500/20 bg-amber-950/10",children:[t.retry!==void 0&&p.jsxs("div",{className:"flex items-center gap-2 pt-3",children:[p.jsx(RN,{className:"w-3.5 h-3.5 text-amber-400/60"}),p.jsxs("span",{className:"text-xs text-amber-300/70",children:["Retry:"," ",t.retry?p.jsx("span",{className:"text-green-400",children:"Allowed"}):p.jsx("span",{className:"text-red-400",children:"Not allowed"})]})]}),t.processorId&&p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx(cTe,{className:"w-3.5 h-3.5 text-amber-400/60"}),p.jsxs("span",{className:"text-xs text-amber-300/70",children:["Processor:"," ",p.jsx("code",{className:"px-1.5 py-0.5 rounded bg-amber-900/30 text-amber-200 font-mono",children:t.processorId})]})]}),t.tripwirePayload!==void 0&&t.tripwirePayload!==null&&p.jsxs("div",{className:"pt-1",children:[p.jsx("p",{className:"text-xs text-amber-400/60 mb-1.5",children:"Metadata:"}),p.jsx("pre",{className:"text-xs text-amber-200/80 bg-amber-900/30 rounded p-2 overflow-x-auto font-mono",children:String(JSON.stringify(t.tripwirePayload,null,2))})]})]})]})]})},ea=e=>p.jsxs("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[p.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.5 15C10.3565 15 12.137 14.2625 13.4497 12.9497C14.7625 11.637 15.5 9.85652 15.5 8C15.5 6.14348 14.7625 4.36301 13.4497 3.05025C12.137 1.7375 10.3565 1 8.5 1C6.64348 1 4.86301 1.7375 3.55025 3.05025C2.2375 4.36301 1.5 6.14348 1.5 8C1.5 9.85652 2.2375 11.637 3.55025 12.9497C4.86301 14.2625 6.64348 15 8.5 15ZM5.621 10.879L4.611 11.889C3.84179 11.1198 3.31794 10.1398 3.1057 9.07291C2.89346 8.00601 3.00236 6.90013 3.41864 5.89512C3.83491 4.89012 4.53986 4.03112 5.44434 3.42676C6.34881 2.8224 7.41219 2.49983 8.5 2.49983C9.58781 2.49983 10.6512 2.8224 11.5557 3.42676C12.4601 4.03112 13.1651 4.89012 13.5814 5.89512C13.9976 6.90013 14.1065 8.00601 13.8943 9.07291C13.6821 10.1398 13.1582 11.1198 12.389 11.889L11.379 10.879C11.1004 10.6003 10.7696 10.3792 10.4055 10.2284C10.0414 10.0776 9.6511 9.99995 9.257 10H7.743C7.3489 9.99995 6.95865 10.0776 6.59455 10.2284C6.23045 10.3792 5.89963 10.6003 5.621 10.879Z",fill:"currentColor"}),p.jsx("path",{d:"M8.5 4C7.96957 4 7.46086 4.21071 7.08579 4.58579C6.71071 4.96086 6.5 5.46957 6.5 6V6.5C6.5 7.03043 6.71071 7.53914 7.08579 7.91421C7.46086 8.28929 7.96957 8.5 8.5 8.5C9.03043 8.5 9.53914 8.28929 9.91421 7.91421C10.2893 7.53914 10.5 7.03043 10.5 6.5V6C10.5 5.46957 10.2893 4.96086 9.91421 4.58579C9.53914 4.21071 9.03043 4 8.5 4Z",fill:"currentColor"})]}),OZe=e=>p.jsxs("svg",{width:"126",height:"85",viewBox:"0 0 126 85",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[p.jsx("path",{d:"M63.0002 0.968262C28.5152 0.968262 0.55957 15.6484 0.55957 33.7573V51.2428C0.55957 69.3517 28.5152 84.0319 63.0002 84.0319C97.4853 84.0319 125.441 69.3517 125.441 51.2428V33.7573C125.441 15.6484 97.4853 0.968262 63.0002 0.968262Z",stroke:"#707070"}),p.jsx("path",{d:"M119.322 35.1636C119.322 50.3595 94.1055 62.6782 62.9998 62.6782C31.894 62.6782 6.67773 50.3595 6.67773 35.1636V49.8363C6.67773 65.0322 31.894 77.351 62.9998 77.351C94.1055 77.351 119.322 65.0322 119.322 49.8363V35.1636Z",fill:"#2E2E2E",fillOpacity:"0.9"}),p.jsx("path",{d:"M119.322 35.1636C119.322 50.3595 94.1055 62.6782 62.9998 62.6782C31.894 62.6782 6.67773 50.3595 6.67773 35.1636M119.322 35.1636C119.322 19.9677 94.1055 7.64893 62.9998 7.64893C31.894 7.64893 6.67773 19.9677 6.67773 35.1636M119.322 35.1636V49.8363C119.322 65.0322 94.1055 77.351 62.9998 77.351C31.894 77.351 6.67773 65.0322 6.67773 49.8363V35.1636",stroke:"#424242"}),p.jsxs("g",{clipPath:"url(#clip0_21421_19519)",children:[p.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M38.5383 47.0955C45.0714 50.3122 53.9322 52.1193 63.1714 52.1193C72.4106 52.1193 81.2714 50.3122 87.8045 47.0955C94.3376 43.8787 98.0078 39.5159 98.0078 34.9668C98.0078 30.4177 94.3376 26.0549 87.8045 22.8381C81.2714 19.6214 72.4106 17.8143 63.1714 17.8143C53.9322 17.8143 45.0714 19.6214 38.5383 22.8381C32.0052 26.0549 28.3349 30.4177 28.3349 34.9668C28.3349 39.5159 32.0052 43.8787 38.5383 47.0955ZM42.9089 34.9668L35.8005 34.9668C35.8004 32.3013 37.4056 29.6956 40.4132 27.4793C43.4207 25.263 47.6956 23.5355 52.6971 22.5154C57.6986 21.4954 63.2022 21.2285 68.5118 21.7485C73.8214 22.2685 78.6986 23.552 82.5266 25.4368C86.3546 27.3216 88.9615 29.723 90.0176 32.3373C91.0737 34.9517 90.5316 37.6614 88.4599 40.1241C86.3881 42.5867 82.8797 44.6915 78.3784 46.1723C73.8771 47.6532 68.585 48.4435 63.1714 48.4435V44.9435C63.1717 43.9778 62.7855 43.0215 62.035 42.1293C61.2845 41.2372 60.1843 40.4265 58.7973 39.7438L53.4695 37.1205C52.0828 36.4376 50.4364 35.8959 48.6244 35.5263C46.8124 35.1568 44.8702 34.9667 42.9089 34.9668Z",fill:"#A9A9A9"}),p.jsx("path",{d:"M77.2474 28.0361C75.3808 27.1171 72.8492 26.6007 70.2094 26.6007C67.5696 26.6007 65.038 27.1171 63.1714 28.0361L61.4119 28.9025C59.5453 29.8215 58.4966 31.068 58.4966 32.3678C58.4966 33.6676 59.5453 34.9141 61.4119 35.8331C63.2785 36.7522 65.8101 37.2685 68.4499 37.2685C71.0897 37.2685 73.6213 36.7522 75.4879 35.8331L77.2474 34.9668C79.114 34.0477 80.1627 32.8012 80.1627 31.5015C80.1627 30.2017 79.114 28.9552 77.2474 28.0361Z",fill:"#A9A9A9"})]}),p.jsx("defs",{children:p.jsx("clipPath",{id:"clip0_21421_19519",children:p.jsx("rect",{width:"62.7591",height:"62.7591",fill:"white",transform:"matrix(0.897148 0.441731 -0.897148 0.441731 63.1714 7.24365)"})})})]}),c2r=e=>p.jsxs("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[p.jsx("path",{d:"M11.0313 7.97578C11.0313 9.34436 9.92183 10.4538 8.55324 10.4538C7.18466 10.4538 6.0752 9.34436 6.0752 7.97578C6.0752 6.60719 7.18466 5.49773 8.55324 5.49773C9.92183 5.49773 11.0313 6.60719 11.0313 7.97578ZM11.0313 7.97578H14.573",stroke:"currentColor",strokeWidth:"1.33333",strokeLinecap:"round"}),p.jsx("path",{d:"M12.967 4.46154C11.9273 3.14431 10.3165 2.29883 8.50814 2.29883C5.37277 2.29883 2.83105 4.84055 2.83105 7.97591C2.83105 11.1113 5.37277 13.653 8.50814 13.653C10.3165 13.653 11.9273 12.8075 12.967 11.4903",stroke:"currentColor",strokeWidth:"1.33333",strokeLinecap:"round"})]}),ete=e=>p.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[p.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.99982 2.0625C3.8252 2.0625 2.06232 3.82538 2.06232 6C2.06232 8.17462 3.8252 9.9375 5.99982 9.9375C8.17444 9.9375 9.93732 8.17462 9.93732 6C9.93732 3.82538 8.17444 2.0625 5.99982 2.0625ZM0.937317 6C0.937317 3.20406 3.20388 0.9375 5.99982 0.9375C8.79576 0.9375 11.0623 3.20406 11.0623 6C11.0623 8.79594 8.79576 11.0625 5.99982 11.0625C3.20388 11.0625 0.937317 8.79594 0.937317 6Z",fill:"currentColor"}),p.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.97865 4.57004C8.22604 4.75795 8.27426 5.11082 8.08635 5.35821L6.05486 8.03279C5.94873 8.17251 5.78348 8.25471 5.60803 8.25505C5.43257 8.2554 5.267 8.17385 5.16032 8.03454L3.80937 6.27034C3.6205 6.02369 3.66733 5.67063 3.91398 5.48176C4.16063 5.29288 4.51369 5.33972 4.70257 5.58637L5.6051 6.76498L7.19048 4.67774C7.37839 4.43036 7.73126 4.38213 7.97865 4.57004Z",fill:"currentColor"})]}),tte=e=>p.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[p.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.99982 2.0625C3.8252 2.0625 2.06232 3.82538 2.06232 6C2.06232 8.17462 3.8252 9.9375 5.99982 9.9375C8.17444 9.9375 9.93732 8.17462 9.93732 6C9.93732 3.82538 8.17444 2.0625 5.99982 2.0625ZM0.937317 6C0.937317 3.20406 3.20388 0.9375 5.99982 0.9375C8.79576 0.9375 11.0623 3.20406 11.0623 6C11.0623 8.79594 8.79576 11.0625 5.99982 11.0625C3.20388 11.0625 0.937317 8.79594 0.937317 6Z",fill:"currentColor"}),p.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.89741 4.10293C8.11707 4.32261 8.11706 4.67877 7.89738 4.89843L6.79517 6.00058L7.8962 7.10155C8.11588 7.32122 8.11589 7.67737 7.89623 7.89705C7.67656 8.11673 7.32041 8.11674 7.10073 7.89707L5.99965 6.79605L4.89856 7.89707C4.67889 8.11673 4.32273 8.11672 4.10307 7.89704C3.88341 7.67737 3.88342 7.32121 4.10309 7.10155L5.20413 6.00058L4.10191 4.89843C3.88224 4.67877 3.88223 4.32262 4.10189 4.10294C4.32155 3.88326 4.67771 3.88325 4.89738 4.10292L5.99965 5.20511L7.10191 4.10291C7.32159 3.88325 7.67774 3.88326 7.89741 4.10293Z",fill:"currentColor"})]}),k4=e=>p.jsx("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:p.jsx("path",{d:"M8.5 3V13",stroke:"currentColor",strokeWidth:"0.5"})}),Sc=e=>p.jsx("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:p.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.1747 3.18598L7.02554 1.95209C7.11557 1.89207 7.31087 1.87106 7.41016 1.90924L12.4139 3.83377C12.4683 3.85467 12.546 3.96798 12.546 4.03118V13.0167C12.546 13.265 12.7473 13.4663 12.9956 13.4663C13.2439 13.4663 13.4452 13.265 13.4452 13.0167V4.03118C13.4452 3.59605 13.1384 3.14906 12.7367 2.99456L7.73293 1.07004C7.36225 0.927472 6.86056 0.981451 6.52679 1.20396L4.20445 2.75219L3.90419 2.95236L3.90647 2.95824C3.69329 3.05449 3.55469 3.27599 3.55469 3.57581V11.7119C3.55469 12.2084 3.93067 12.7499 4.39251 12.9206L9.89804 14.955C10.3608 15.126 10.7359 14.8596 10.7359 14.3659V5.83295C10.7359 5.33662 10.3498 4.81289 9.88389 4.66643L5.1747 3.18598Z",fill:"currentColor"})}),rte=e=>p.jsxs("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[p.jsx("g",{clipPath:"url(#clip0_21999_22095)",children:p.jsx("path",{d:"M7.5 0.75C3.6325 0.75 0.5 3.8825 0.5 7.75C0.5 10.8475 2.50375 13.4637 5.28625 14.3912C5.63625 14.4525 5.7675 14.2425 5.7675 14.0587C5.7675 13.8925 5.75875 13.3412 5.75875 12.755C4 13.0787 3.545 12.3262 3.405 11.9325C3.32625 11.7312 2.985 11.11 2.6875 10.9437C2.4425 10.8125 2.0925 10.4887 2.67875 10.48C3.23 10.4712 3.62375 10.9875 3.755 11.1975C4.385 12.2562 5.39125 11.9587 5.79375 11.775C5.855 11.32 6.03875 11.0137 6.24 10.8387C4.6825 10.6637 3.055 10.06 3.055 7.3825C3.055 6.62125 3.32625 5.99125 3.7725 5.50125C3.7025 5.32625 3.4575 4.60875 3.8425 3.64625C3.8425 3.64625 4.42875 3.4625 5.7675 4.36375C6.3275 4.20625 6.9225 4.1275 7.5175 4.1275C8.1125 4.1275 8.7075 4.20625 9.2675 4.36375C10.6062 3.45375 11.1925 3.64625 11.1925 3.64625C11.5775 4.60875 11.3325 5.32625 11.2625 5.50125C11.7087 5.99125 11.98 6.6125 11.98 7.3825C11.98 10.0687 10.3438 10.6637 8.78625 10.8387C9.04 11.0575 9.25875 11.4775 9.25875 12.1337C9.25875 13.07 9.25 13.8225 9.25 14.0587C9.25 14.2425 9.38125 14.4612 9.73125 14.3912C11.1209 13.9221 12.3284 13.029 13.1839 11.8377C14.0393 10.6463 14.4996 9.21668 14.5 7.75C14.5 3.8825 11.3675 0.75 7.5 0.75Z",fill:"currentColor"})}),p.jsx("defs",{children:p.jsx("clipPath",{id:"clip0_21999_22095",children:p.jsx("rect",{width:"14",height:"14",fill:"currentColor",transform:"translate(0.5 0.75)"})})})]}),u2r=e=>p.jsxs("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[p.jsxs("g",{clipPath:"url(#clip0_21999_20513)",children:[p.jsx("path",{d:"M13.5037 7.54867C13.5037 7.1144 13.4648 6.69683 13.3924 6.29596H7.62436V8.66776H10.9204C10.7756 9.43052 10.3413 10.0764 9.68994 10.5106V12.0529H11.6776C12.8356 10.9839 13.5037 9.41382 13.5037 7.54867Z",fill:"white"}),p.jsx("path",{d:"M7.62415 13.5339C9.27773 13.5339 10.6643 12.9882 11.6776 12.0529L9.68994 10.5106C9.14431 10.8781 8.44816 11.1009 7.62415 11.1009C6.03182 11.1009 4.67889 10.0263 4.19451 8.57877H2.15677V10.16C3.1645 12.1587 5.23008 13.5339 7.62415 13.5339Z",fill:"white"}),p.jsx("path",{d:"M4.19472 8.57315C4.07223 8.20569 3.99985 7.81595 3.99985 7.40952C3.99985 7.00308 4.07223 6.61335 4.19472 6.24589V4.66469H2.15698C1.73941 5.4887 1.5 6.41849 1.5 7.40952C1.5 8.40055 1.73941 9.33034 2.15698 10.1543L3.74374 8.91834L4.19472 8.57315Z",fill:"white"}),p.jsx("path",{d:"M7.62415 3.72376C8.5261 3.72376 9.32783 4.03555 9.96811 4.63685L11.7219 2.88306C10.6585 1.89202 9.27773 1.28516 7.62415 1.28516C5.23008 1.28516 3.16471 2.66036 2.15698 4.66469L4.19472 6.24589C4.6791 4.79832 6.03182 3.72376 7.62415 3.72376Z",fill:"white"})]}),p.jsx("defs",{children:p.jsx("clipPath",{id:"clip0_21999_20513",children:p.jsx("rect",{width:"12.2487",height:"12.2487",fill:"white",transform:"translate(1.375 1.28516)"})})})]}),d2r={sm:"[&>svg]:h-icon-sm [&>svg]:w-icon-sm",default:"[&>svg]:h-icon-default [&>svg]:w-icon-default",lg:"[&>svg]:h-icon-lg [&>svg]:w-icon-lg"},He=({children:e,className:t,size:r="default",...n})=>p.jsx("span",{className:ie("block",d2r[r],t),...n,children:e}),f2r=e=>p.jsx("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:p.jsx("path",{d:"M3.8674 9.19968L4.14554 10.8649C4.23965 11.4283 4.75254 11.8237 5.32137 11.7713L5.58252 11.7472C6.56555 11.6567 7.43309 12.3868 7.51181 13.3708L7.59308 14.3867C7.60422 14.5259 7.71868 14.6342 7.85825 14.6376L9.91053 14.6876C10.1066 14.6924 10.2434 14.4948 10.17 14.3129L8.90452 11.1782C8.80956 10.9429 8.65085 10.7389 8.44626 10.5889L7.90134 10.1895C7.70604 10.0464 7.55223 9.85411 7.45759 9.63124C7.15011 8.90712 6.6579 7.71234 6.37054 6.88944C6.19204 6.3783 5.79931 6.29158 5.45492 6.21553C4.98179 6.11106 4.5999 6.02673 4.99001 4.88985C5.66408 2.92541 8.06015 2.07904 10.6601 3.33088C12.6488 4.2884 13.1187 6.35416 13.0328 7.58237C13.0297 7.62768 13.0214 7.67186 13.0094 7.71566C12.8829 8.17534 12.368 8.40491 11.9415 8.19169L10.3022 7.37201C10.2069 7.32439 10.0927 7.33657 10.0096 7.40322L8.64809 8.49559C8.55405 8.57104 8.52072 8.69931 8.56615 8.811L10.8995 14.5478C10.9404 14.6483 11.0369 14.715 11.1454 14.7177L12.0572 14.7399C12.2581 14.7448 12.3951 14.5382 12.3124 14.3551L11.8681 13.3706C11.4211 12.3803 11.6047 11.2192 12.3354 10.4151L13.4616 9.17575C13.7473 8.86125 13.9224 8.46187 13.9599 8.03858L13.9763 7.85359C14.2866 4.35298 11.377 1.41272 7.87336 1.68639C6.03919 1.82965 4.45399 3.02228 3.80807 4.74492L3.70275 5.02579C3.5828 5.34571 3.62741 5.70411 3.82213 5.98485L3.88946 6.08192C4.12183 6.41695 4.0958 6.86726 3.82637 7.17328L3.06705 8.03572C2.96261 8.15435 2.98058 8.33664 3.10617 8.43259L3.66059 8.85617C3.77064 8.94026 3.84458 9.06307 3.8674 9.19968Z",fill:"currentColor"})}),p2r=e=>p.jsx("svg",{width:"12",height:"13",viewBox:"0 0 12 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:p.jsx("path",{d:"M10.1266 5.67745C10.3409 5.0225 10.2695 4.2961 9.92413 3.70069C9.40017 2.78376 8.34034 2.31934 7.30433 2.53369C6.85182 2.02164 6.18496 1.73584 5.49428 1.73584C4.43445 1.73584 3.50561 2.41461 3.17218 3.4149C2.49342 3.55779 1.90992 3.97458 1.56458 4.5819C1.04062 5.49883 1.1597 6.64202 1.86228 7.42796C1.64793 8.09482 1.73129 8.80931 2.07663 9.40472C2.60059 10.3217 3.66042 10.798 4.69643 10.5717C5.16085 11.0838 5.8158 11.3815 6.50648 11.3815C7.56631 11.3815 8.49515 10.7027 8.82858 9.70243C9.50735 9.55953 10.0908 9.14274 10.4362 8.53542C10.9601 7.61849 10.8411 6.46339 10.1266 5.67745ZM6.50648 10.7503C6.07778 10.7503 5.67291 10.6074 5.35138 10.3336C5.36329 10.3217 5.39902 10.3097 5.41093 10.2978L7.32815 9.19037C7.42341 9.13083 7.48295 9.03557 7.48295 8.91648V6.21332L8.29271 6.67774C8.30462 6.67774 8.30462 6.68965 8.30462 6.70156V8.9403C8.31653 9.94059 7.50677 10.7503 6.50648 10.7503ZM2.62441 9.09511C2.41006 8.72595 2.33861 8.29726 2.41006 7.88047C2.42197 7.89238 2.44578 7.90429 2.4696 7.91619L4.38682 9.02366C4.48209 9.0832 4.60117 9.0832 4.69643 9.02366L7.04235 7.66612V8.60687C7.04235 8.61878 7.04235 8.63069 7.03044 8.63069L5.0894 9.75006C4.23201 10.2502 3.12455 9.9525 2.62441 9.09511ZM2.12426 4.90342C2.33861 4.53427 2.67204 4.26038 3.06501 4.10557V6.39195C3.06501 6.49912 3.12455 6.60629 3.21982 6.66583L5.56573 8.02337L4.75597 8.48779C4.74407 8.48779 4.73216 8.4997 4.73216 8.48779L2.79112 7.36842C1.90992 6.86827 1.62412 5.76081 2.12426 4.90342ZM8.79285 6.45149L6.44694 5.09395L7.2567 4.62953C7.2686 4.62953 7.28051 4.61762 7.28051 4.62953L9.22155 5.7489C10.0908 6.24905 10.3766 7.35651 9.8765 8.2139C9.66215 8.58305 9.32872 8.85694 8.93575 8.99984V6.72538C8.94766 6.6182 8.88812 6.51103 8.79285 6.45149ZM9.5907 5.23685C9.5788 5.22494 9.55498 5.21303 9.53116 5.20113L7.61394 4.09366C7.51868 4.03412 7.39959 4.03412 7.30433 4.09366L4.95841 5.4512V4.51045C4.95841 4.49854 4.95841 4.48663 4.97032 4.48663L6.91136 3.36726C7.78066 2.86712 8.87621 3.16482 9.37636 4.03412C9.5907 4.39137 9.66215 4.82006 9.5907 5.23685ZM4.51781 6.904L3.70805 6.43958C3.69615 6.43958 3.69615 6.42767 3.69615 6.41576V4.17702C3.69615 3.17673 4.5059 2.36697 5.50619 2.36697C5.93489 2.36697 6.33977 2.50987 6.66129 2.78376C6.64938 2.79567 6.62556 2.80758 6.60175 2.81949L4.68453 3.92695C4.58926 3.98649 4.52972 4.08176 4.52972 4.20084V6.904H4.51781ZM4.95841 5.95134L6.00634 5.34402L7.05426 5.95134V7.15407L6.00634 7.76139L4.95841 7.15407V5.95134Z",fill:"currentColor"})}),_Ze=e=>p.jsx("svg",{width:"17",height:"18",viewBox:"0 0 17 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:p.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.40864 11.9983C7.58064 11.9733 6.84164 11.6153 6.31564 11.0563C6.31464 11.0563 6.31464 11.0553 6.31464 11.0553C5.78864 10.4963 5.47564 9.73633 5.50064 8.90833C5.52564 8.08033 5.88464 7.34133 6.44364 6.81533C7.00264 6.28833 7.76264 5.97633 8.59064 6.00133C9.41864 6.02633 10.1576 6.38433 10.6836 6.94333H10.6846C11.2106 7.50333 11.5236 8.26233 11.4986 9.09033C11.4726 9.91833 11.1146 10.6583 10.5556 11.1843C9.99664 11.7103 9.23664 12.0233 8.40864 11.9983ZM16.1266 8.15033L14.3606 7.74033C14.2316 7.14133 14.0146 6.57633 13.7216 6.05733L14.7726 4.57933C14.9116 4.38533 14.8926 4.12033 14.7296 3.94633L13.9206 3.08733C13.7576 2.91333 13.4946 2.87933 13.2916 3.00533L11.7526 3.96533C11.2526 3.64133 10.7016 3.39033 10.1116 3.22633L9.80964 1.43833C9.76964 1.20333 9.56964 1.02833 9.33164 1.02133L8.15264 0.985326C7.91364 0.978326 7.70364 1.14033 7.64964 1.37233L7.24064 3.13933C6.64164 3.26733 6.07664 3.48433 5.55664 3.77733L4.07864 2.72633C3.88464 2.58833 3.61964 2.60633 3.44664 2.76933L2.58664 3.57833C2.41364 3.74133 2.37964 4.00533 2.50564 4.20733L3.46564 5.74633C3.14164 6.24633 2.89064 6.79833 2.72564 7.38833L0.937635 7.68933C0.702635 7.72933 0.528635 7.92933 0.520635 8.16733L0.485635 9.34733C0.477635 9.58533 0.639635 9.79533 0.872635 9.84933L2.63864 10.2583C2.76764 10.8573 2.98464 11.4233 3.27764 11.9423L2.22564 13.4203C2.08764 13.6143 2.10564 13.8793 2.26964 14.0523L3.07864 14.9123C3.24164 15.0853 3.50464 15.1203 3.70664 14.9933L5.24564 14.0333C5.74663 14.3583 6.29764 14.6093 6.88764 14.7733L7.18964 16.5613C7.22864 16.7963 7.42864 16.9713 7.66764 16.9783L8.84663 17.0143C9.08564 17.0213 9.29564 16.8593 9.34964 16.6273L9.75864 14.8603C10.3576 14.7323 10.9226 14.5153 11.4416 14.2213L12.9206 15.2733C13.1146 15.4113 13.3786 15.3933 13.5526 15.2293L14.4116 14.4213C14.5856 14.2573 14.6196 13.9943 14.4936 13.7923L13.5336 12.2533C13.8576 11.7523 14.1086 11.2013 14.2726 10.6113L16.0616 10.3103C16.2966 10.2703 16.4706 10.0703 16.4776 9.83233L16.5136 8.65233C16.5206 8.41433 16.3586 8.20433 16.1266 8.15033Z",fill:"currentColor"})}),h2r=e=>p.jsx("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:p.jsx("path",{d:"M5.25684 12.6387L10.4003 3.36133H11.7432L6.5997 12.6387H5.25684Z",fill:"currentColor"})}),wu=e=>p.jsx("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:p.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.5605 1.42351C8.0791 0.904904 8.92215 0.906157 9.4395 1.42351L10.6922 2.67617C11.2108 3.19477 11.2095 4.03782 10.6922 4.55517L9.4395 5.80783C8.9209 6.32643 8.07785 6.32518 7.5605 5.80783L6.30784 4.55517C5.78923 4.03656 5.79049 3.19352 6.30784 2.67617L7.5605 1.42351ZM3.17618 5.80783C3.69478 5.28923 4.53782 5.29048 5.05517 5.80783L6.30784 7.0605C6.82644 7.5791 6.82519 8.42214 6.30784 8.93949L5.05517 10.1922C4.53657 10.7108 3.69353 10.7095 3.17618 10.1922L1.92351 8.93949C1.40491 8.42089 1.40616 7.57785 1.92351 7.0605L3.17618 5.80783ZM11.9448 5.80783C12.4634 5.28923 13.3065 5.29048 13.8238 5.80783L15.0765 7.0605C15.5951 7.5791 15.5938 8.42214 15.0765 8.93949L13.8238 10.1922C13.3052 10.7108 12.4622 10.7095 11.9448 10.1922L10.6922 8.93949C10.1736 8.42089 10.1748 7.57785 10.6922 7.0605L11.9448 5.80783ZM7.5605 10.1922C8.0791 9.67355 8.92215 9.67481 9.4395 10.1922L10.6922 11.4448C11.2108 11.9634 11.2095 12.8065 10.6922 13.3238L9.4395 14.5765C8.9209 15.0951 8.07785 15.0938 7.5605 14.5765L6.30784 13.3238C5.78923 12.8052 5.79049 11.9622 6.30784 11.4448L7.5605 10.1922Z",fill:"currentColor"})}),Su=e=>p.jsx("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:p.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.24388 2.4018C6.24388 2.0394 6.53767 1.74561 6.90008 1.74561H10.0991C10.4614 1.74561 10.7553 2.0394 10.7553 2.4018V4.57546C10.7553 4.93787 10.4614 5.23166 10.0991 5.23166H9.31982V7.35469L10.0033 9.22664C9.90442 9.20146 9.80035 9.1761 9.6915 9.14986L9.62652 9.13422C9.30473 9.05687 8.92256 8.96501 8.61993 8.84491C8.5819 8.82981 8.54147 8.81292 8.49957 8.79391C8.45767 8.81292 8.41724 8.82981 8.3792 8.84491C8.07657 8.96501 7.6944 9.05687 7.37261 9.13422L7.30763 9.14986C7.19879 9.1761 7.09471 9.20146 6.99577 9.22664L7.67932 7.35469V5.23166H6.90008C6.53767 5.23166 6.24388 4.93787 6.24388 4.57546V2.4018ZM6.99577 9.22664C6.99577 9.22664 6.99578 9.22664 6.99577 9.22664L6.43283 10.7683H6.81806C7.18047 10.7683 7.47426 11.0622 7.47426 11.4245V13.5982C7.47426 13.9606 7.18047 14.2544 6.81806 14.2544H3.61909C3.25668 14.2544 2.96289 13.9606 2.96289 13.5982V11.4245C2.96289 11.0622 3.25668 10.7683 3.61909 10.7683H4.26617C4.2921 10.4663 4.32783 10.1494 4.37744 9.85171C4.43762 9.49063 4.52982 9.08135 4.68998 8.76102C4.93975 8.2615 5.44743 8.01751 5.7771 7.88788C6.14684 7.74249 6.57537 7.63889 6.92317 7.55505C7.24707 7.47696 7.49576 7.41679 7.67932 7.35469L6.99577 9.22664ZM6.43283 10.7683L6.99577 9.22664C6.75846 9.28705 6.55067 9.34646 6.37745 9.41458C6.22784 9.47341 6.1623 9.51712 6.14023 9.53254C6.09752 9.63631 6.04409 9.83055 5.99562 10.1214C5.96201 10.3231 5.93498 10.5439 5.91341 10.7683H6.43283ZM10.0033 9.22664L9.31982 7.35469C9.50338 7.41679 9.75206 7.47696 10.076 7.55505C10.4238 7.63889 10.8523 7.74249 11.2221 7.88788C11.5517 8.01751 12.0594 8.2615 12.3091 8.76102C12.4693 9.08135 12.5615 9.49063 12.6217 9.85171C12.6713 10.1494 12.707 10.4663 12.733 10.7683H13.38C13.7424 10.7683 14.0362 11.0622 14.0362 11.4245V13.5982C14.0362 13.9606 13.7424 14.2544 13.38 14.2544H10.1811C9.81867 14.2544 9.52488 13.9606 9.52488 13.5982V11.4245C9.52488 11.0622 9.81867 10.7683 10.1811 10.7683H10.5663L10.0033 9.22664ZM10.0033 9.22664L10.5663 10.7683H11.0857C11.0642 10.5439 11.0372 10.3231 11.0035 10.1214C10.9551 9.83055 10.9016 9.63631 10.8589 9.53254C10.8369 9.51712 10.7713 9.47341 10.6217 9.41458C10.4485 9.34646 10.2407 9.28705 10.0033 9.22664Z",fill:"currentColor"})}),m2r=e=>p.jsxs("svg",{width:"126",height:"85",viewBox:"0 0 126 85",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[p.jsx("path",{d:"M119.322 35.1636C119.322 50.3595 94.1055 62.6782 62.9998 62.6782C31.894 62.6782 6.67773 50.3595 6.67773 35.1636V49.8363C6.67773 65.0322 31.894 77.351 62.9998 77.351C94.1055 77.351 119.322 65.0322 119.322 49.8363V35.1636Z",fill:"#2E2E2E",fillOpacity:"0.9"}),p.jsx("path",{d:"M119.322 35.1636C119.322 50.3595 94.1055 62.6782 62.9998 62.6782C31.894 62.6782 6.67773 50.3595 6.67773 35.1636M119.322 35.1636C119.322 19.9677 94.1055 7.64893 62.9998 7.64893C31.894 7.64893 6.67773 19.9677 6.67773 35.1636M119.322 35.1636V49.8363C119.322 65.0322 94.1055 77.351 62.9998 77.351C31.894 77.351 6.67773 65.0322 6.67773 49.8363V35.1636",stroke:"#424242"}),p.jsx("path",{d:"M63.0002 0.968262C28.5152 0.968262 0.55957 15.6484 0.55957 33.7573V51.2428C0.55957 69.3517 28.5152 84.0319 63.0002 84.0319C97.4853 84.0319 125.441 69.3517 125.441 51.2428V33.7573C125.441 15.6484 97.4853 0.968262 63.0002 0.968262Z",stroke:"#707070"}),p.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M74.9374 21.357C76.2127 20.7291 78.2804 20.7291 79.5557 21.357L90.8129 26.8997C92.0882 27.5276 92.0882 28.5458 90.8129 29.1737L83.1638 32.9399C81.8885 33.5678 79.8207 33.5678 78.5454 32.9399L75.8033 31.5898L68.3324 35.2682L64.1502 39.696C63.8908 39.481 63.6138 39.2568 63.3231 39.0227L63.1495 38.883C62.2893 38.1914 61.2677 37.3701 60.6254 36.6376C60.5446 36.5456 60.4618 36.4463 60.3812 36.3407C60.1669 36.3011 59.9652 36.2603 59.7782 36.2205C58.2906 35.9043 56.6225 35.4013 55.2179 34.9777L54.9342 34.8922C54.4589 34.7491 54.0034 34.6127 53.5666 34.4849L62.5594 32.4258L70.0304 28.7473L67.2882 27.3972C66.0129 26.7692 66.0129 25.7512 67.2882 25.1232L74.9374 21.357ZM53.5666 34.4849C53.5666 34.4849 53.5666 34.4849 53.5666 34.4849L46.1603 36.1808L47.516 36.8483C48.7913 37.4762 48.7912 38.4943 47.516 39.1222L39.8668 42.8884C38.5916 43.5163 36.5238 43.5164 35.2485 42.8884L23.9913 37.3457C22.7159 36.7177 22.716 35.6996 23.9913 35.0717L31.6404 31.3055C32.9156 30.6776 34.9834 30.6776 36.2587 31.3055L38.5358 32.4267C39.6899 31.9483 40.9309 31.4611 42.153 31.0313C43.6354 30.5099 45.4001 29.9605 47.091 29.683C49.7278 29.2502 52.3729 29.7072 53.9892 30.0537C55.8019 30.4425 57.6745 31.0055 59.1934 31.4628C60.6081 31.8887 61.6949 32.2154 62.5594 32.4258L53.5666 34.4849ZM46.1603 36.1808L53.5666 34.4849C52.5189 34.1784 51.5786 33.9213 50.7293 33.7392C49.9958 33.5819 49.6114 33.5441 49.4794 33.5326C48.964 33.6384 48.0924 33.8823 46.8983 34.3023C46.0703 34.5936 45.1981 34.9293 44.3325 35.2808L46.1603 36.1808ZM64.1502 39.696L68.3324 35.2682C68.7598 35.6939 69.4232 36.229 70.2883 36.9256C71.2171 37.6735 72.3605 38.5954 73.15 39.488C73.8539 40.2838 74.7818 41.5862 73.9029 42.8844C73.3394 43.717 72.2235 44.5859 71.1648 45.3159C70.2916 45.9175 69.3021 46.5286 68.3305 47.0968L70.6077 48.218C71.8829 48.8459 71.8829 49.864 70.6077 50.4919L62.9585 54.2582C61.6833 54.8861 59.6154 54.8861 58.3402 54.2582L47.083 48.7154C45.8077 48.0875 45.8077 47.0694 47.083 46.4415L54.7321 42.6752C56.0074 42.0474 58.0751 42.0473 59.3505 42.6752L60.7062 43.3428L64.1502 39.696ZM64.1502 39.696L60.7062 43.3428L62.5339 44.2427C63.2478 43.8165 63.9298 43.3871 64.5213 42.9794C65.3742 42.3914 65.8695 41.9622 66.0846 41.7085C66.0613 41.6436 65.9844 41.4543 65.6649 41.0931C65.295 40.6749 64.773 40.212 64.1502 39.696Z",fill:"#A9A9A9"})]}),G0=e=>p.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[p.jsx("path",{d:"M6.53918 9.32122C6.34324 9.51508 6.02724 9.51338 5.83338 9.31744C5.63952 9.1215 5.6412 8.80551 5.83713 8.61164L10.1958 4.29931C10.7996 3.70186 10.8017 2.72852 10.2041 2.12839L10.1899 2.11428C9.58767 1.52481 8.62251 1.53208 8.0292 2.13052L2.29396 7.91536C2.0999 8.1111 1.78388 8.11246 1.58813 7.9184C1.39239 7.72433 1.39103 7.40831 1.58509 7.21257L7.32036 1.42774C8.30005 0.439581 9.89369 0.427613 10.8881 1.40094L10.9116 1.42425C11.4942 2.00929 11.7316 2.80913 11.6232 3.56922C12.389 3.44866 13.1999 3.67918 13.7961 4.26273C14.804 5.24929 14.8147 6.86824 13.82 7.86808L8.5531 13.1619C8.50045 13.2148 8.50024 13.3002 8.55263 13.3534L9.65448 14.4717C9.84794 14.668 9.8456 14.984 9.64925 15.1775C9.45291 15.3709 9.13691 15.3686 8.94345 15.1723L7.84163 14.054C7.40505 13.6109 7.40677 12.8988 7.8455 12.4579L13.1124 7.16405C13.7161 6.55727 13.7095 5.57478 13.0979 4.97606C12.4925 4.38347 11.4942 4.40725 10.8978 5.00886L6.53918 9.32122Z",fill:"currentColor"}),p.jsx("path",{d:"M8.84622 2.75411C9.04697 2.56188 9.36555 2.56381 9.56395 2.76076C9.76234 2.95771 9.76658 3.27625 9.57582 3.4784L9.56661 3.48794L5.25912 7.82701C4.67023 8.42022 4.672 9.37798 5.26305 9.96904C5.85624 10.5622 6.81818 10.5615 7.41052 9.9675L11.6299 5.73599L11.6395 5.72671C11.8406 5.53493 12.1592 5.53756 12.3572 5.73496C12.5583 5.93548 12.5587 6.26104 12.3582 6.46214L8.13877 10.6937C7.14498 11.6903 5.53105 11.6915 4.53584 10.6963C3.5442 9.70461 3.54127 8.09774 4.52928 7.10248L8.83677 2.76342L8.84622 2.75411Z",fill:"currentColor"})]}),g2r=e=>p.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:p.jsx("path",{d:"M1.5 8.5V8C1.5 7.60218 1.65804 7.22064 1.93934 6.93934C2.22064 6.65804 2.60218 6.5 3 6.5H13C13.3978 6.5 13.7794 6.65804 14.0607 6.93934C14.342 7.22064 14.5 7.60218 14.5 8V8.5M8.70667 4.20667L7.29333 2.79333C7.20048 2.70037 7.09022 2.62661 6.96886 2.57628C6.84749 2.52595 6.71739 2.50003 6.586 2.5H3C2.60218 2.5 2.22064 2.65804 1.93934 2.93934C1.65804 3.22064 1.5 3.60218 1.5 4V12C1.5 12.3978 1.65804 12.7794 1.93934 13.0607C2.22064 13.342 2.60218 13.5 3 13.5H13C13.3978 13.5 13.7794 13.342 14.0607 13.0607C14.342 12.7794 14.5 12.3978 14.5 12V6C14.5 5.60218 14.342 5.22064 14.0607 4.93934C13.7794 4.65804 13.3978 4.5 13 4.5H9.414C9.14887 4.49977 8.89402 4.39426 8.70667 4.20667Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})}),y2r=e=>p.jsxs("svg",{width:"126",height:"85",viewBox:"0 0 126 85",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[p.jsx("path",{d:"M119.322 35.1641C119.322 50.36 94.1055 62.6787 62.9998 62.6787C31.894 62.6787 6.67773 50.36 6.67773 35.1641V49.8368C6.67773 65.0327 31.894 77.3514 62.9998 77.3514C94.1055 77.3514 119.322 65.0327 119.322 49.8368V35.1641Z",fill:"#2E2E2E",fillOpacity:"0.9"}),p.jsx("path",{d:"M119.322 35.1641C119.322 50.36 94.1055 62.6787 62.9998 62.6787C31.894 62.6787 6.67773 50.36 6.67773 35.1641M119.322 35.1641C119.322 19.9681 94.1055 7.64941 62.9998 7.64941C31.894 7.64941 6.67773 19.9681 6.67773 35.1641M119.322 35.1641V49.8368C119.322 65.0327 94.1055 77.3514 62.9998 77.3514C31.894 77.3514 6.67773 65.0327 6.67773 49.8368V35.1641",stroke:"#424242"}),p.jsx("path",{d:"M63.0002 0.96875C28.5152 0.96875 0.55957 15.6489 0.55957 33.7578V51.2433C0.55957 69.3522 28.5152 84.0323 63.0002 84.0323C97.4853 84.0323 125.441 69.3522 125.441 51.2433V33.7578C125.441 15.6489 97.4853 0.96875 63.0002 0.96875Z",stroke:"#707070"}),p.jsx("path",{d:"M51.5215 39.9726C50.5464 40.4477 48.9738 40.4435 48.009 39.9634C47.0442 39.4833 47.0526 38.709 48.0277 38.2339L69.7191 27.6672C72.7243 26.2032 72.7347 23.8181 69.7605 22.3476L69.6898 22.313C66.6927 20.8686 61.8895 20.8864 58.9368 22.3528L30.3946 36.5278C29.4288 37.0074 27.8561 37.0107 26.882 36.5352C25.9078 36.0597 25.901 35.2853 26.8668 34.8057L55.4092 20.6308C60.2847 18.2094 68.2157 18.1801 73.1645 20.5651L73.2814 20.6222C76.1808 22.0558 77.3624 24.0157 76.8227 25.8782C80.6339 25.5828 84.6694 26.1476 87.6364 27.5775C92.6525 29.9949 92.7059 33.962 87.7554 36.4119L61.5441 49.3836C61.282 49.5133 61.281 49.7227 61.5417 49.853L67.0252 52.5932C67.988 53.0743 67.9763 53.8486 66.9992 54.3226C66.0221 54.7966 64.4495 54.7909 63.4867 54.3098L58.0033 51.5695C55.8306 50.4838 55.8392 48.7391 58.0226 47.6585L84.2339 34.6868C87.2382 33.2 87.2058 30.7925 84.1617 29.3254C81.1488 27.8734 76.1811 27.9317 73.2127 29.4058L51.5215 39.9726Z",fill:"#A9A9A9"}),p.jsx("path",{d:"M63.0028 23.8809C64.0019 23.4098 65.5873 23.4146 66.5747 23.8972C67.562 24.3798 67.5831 25.1603 66.6338 25.6556L66.5879 25.679L45.1511 36.3113C42.2204 37.7649 42.2292 40.1117 45.1707 41.56C48.1228 43.0135 52.91 43.0118 55.8578 41.5563L76.8564 31.1875L76.9037 31.1648C77.9049 30.6949 79.4903 30.7013 80.4755 31.185C81.4763 31.6764 81.4785 32.4741 80.4806 32.9669L59.4821 43.3356C54.5363 45.7777 46.5044 45.7806 41.5516 43.342C36.6166 40.9121 36.602 36.9747 41.519 34.5359L62.9558 23.9037L63.0028 23.8809Z",fill:"#A9A9A9"})]}),v2r=e=>p.jsxs("svg",{width:"126",height:"85",viewBox:"0 0 126 85",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[p.jsx("path",{d:"M119.322 35.1641C119.322 50.36 94.1055 62.6787 62.9998 62.6787C31.894 62.6787 6.67773 50.36 6.67773 35.1641V49.8368C6.67773 65.0327 31.894 77.3514 62.9998 77.3514C94.1055 77.3514 119.322 65.0327 119.322 49.8368V35.1641Z",fill:"#2E2E2E",fillOpacity:"0.9"}),p.jsx("path",{d:"M119.322 35.1641C119.322 50.36 94.1055 62.6787 62.9998 62.6787C31.894 62.6787 6.67773 50.36 6.67773 35.1641M119.322 35.1641C119.322 19.9681 94.1055 7.64941 62.9998 7.64941C31.894 7.64941 6.67773 19.9681 6.67773 35.1641M119.322 35.1641V49.8368C119.322 65.0327 94.1055 77.3514 62.9998 77.3514C31.894 77.3514 6.67773 65.0327 6.67773 49.8368V35.1641",stroke:"#424242"}),p.jsx("path",{d:"M63.0002 0.96875C28.5152 0.96875 0.55957 15.6489 0.55957 33.7578V51.2433C0.55957 69.3522 28.5152 84.0323 63.0002 84.0323C97.4853 84.0323 125.441 69.3522 125.441 51.2433V33.7578C125.441 15.6489 97.4853 0.96875 63.0002 0.96875Z",stroke:"#707070"}),p.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M95.8997 32.6647C98.4806 33.9355 98.4744 36.0012 95.8997 37.2689L89.6657 40.3384C87.0848 41.6091 82.8892 41.6061 80.3146 40.3384L74.0805 37.2689C71.4996 35.9981 71.5059 33.9324 74.0805 32.6647L80.3146 29.5952C82.8955 28.3244 87.091 28.3275 89.6657 29.5952L95.8997 32.6647ZM74.0805 21.9215C76.6614 23.1923 76.6552 25.258 74.0805 26.5257L67.8465 29.5952C65.2656 30.866 61.0701 30.8629 58.4954 29.5952L52.2613 26.5257C49.6804 25.255 49.6867 23.1892 52.2613 21.9215L58.4954 18.852C61.0763 17.5813 65.2718 17.5843 67.8465 18.852L74.0805 21.9215ZM74.0805 43.4079C76.6614 44.6786 76.6552 46.7444 74.0805 48.0121L67.8465 51.0816C65.2656 52.3523 61.0701 52.3493 58.4954 51.0816L52.2613 48.0121C49.6804 46.7413 49.6867 44.6756 52.2613 43.4079L58.4954 40.3384C61.0763 39.0676 65.2718 39.0707 67.8465 40.3384L74.0805 43.4079ZM52.2613 32.6647C54.8422 33.9355 54.836 36.0012 52.2613 37.2689L46.0273 40.3384C43.4464 41.6091 39.2509 41.6061 36.6762 40.3384L30.4422 37.2689C27.8613 35.9981 27.8675 33.9324 30.4422 32.6647L36.6762 29.5952C39.2571 28.3244 43.4526 28.3275 46.0273 29.5952L52.2613 32.6647Z",fill:"#A9A9A9"})]}),b2r={warning:"bg-yellow-900/20 border border-yellow-200 text-yellow-200",destructive:"bg-red-900/20 border border-red-200 text-red-200",info:"bg-blue-900/20 border border-blue-200 text-blue-200"},x2r={warning:Fw,destructive:Lx,info:Wl},Nv=({children:e,variant:t="destructive"})=>{const r=x2r[t];return p.jsx("div",{className:ie(b2r[t],"p-2 rounded-md"),children:p.jsxs("div",{className:"flex items-start gap-2",children:[p.jsx(He,{className:"mt-0.5",children:p.jsx(r,{})}),p.jsx("div",{children:e})]})})},Rv=({children:e,as:t="h5"})=>p.jsx(Ye,{as:t,variant:"ui-md",className:"font-semibold",children:e}),UC=({children:e,as:t="p"})=>p.jsx(Ye,{as:t,variant:"ui-sm",children:e}),mxe={default:"text-neutral3",success:"text-accent1",error:"text-accent2",info:"text-accent3"},sr=({icon:e,variant:t="default",className:r,children:n,...i})=>p.jsxs("div",{className:ie("font-mono bg-surface4 text-ui-sm gap-1 h-badge-default inline-flex items-center rounded-md shrink-0",e?"pl-1 pr-1.5":"px-1.5",e||t==="default"?"text-neutral5":mxe[t],r),...i,children:[e&&p.jsx("span",{className:mxe[t],children:p.jsx(He,{children:e})}),n]}),w2r=()=>{const e=Wr(({part:s})=>s),[t,r]=E.useState(!1),n=e.text||"",i=e.metadata||{};if(i?.status==="tripwire")return p.jsx(l2r,{reason:n,tripwire:i.tripwire});if(i?.status==="warning")return p.jsxs(Nv,{variant:"warning",children:[p.jsx(Rv,{as:"h5",children:"Warning"}),p.jsx(UC,{as:"p",children:n})]});if(i?.status==="error")return p.jsxs(Nv,{variant:"destructive",children:[p.jsx(Rv,{as:"h5",children:"Error"}),p.jsx(UC,{as:"p",children:n})]});if(i?.mode==="network"&&i?.completionResult)return p.jsxs("div",{className:"mb-2 space-y-2",children:[p.jsxs("button",{onClick:()=>r(s=>!s),className:"flex items-center gap-2",children:[p.jsx(He,{children:p.jsx(NN,{className:ie("transition-all",t?"rotate-90":"rotate-180")})}),p.jsxs(sr,{variant:"info",icon:p.jsx(cut,{}),children:[t?"Show":"Hide"," completion check"]})]}),!t&&p.jsxs(Nv,{variant:"info",children:[p.jsx(Rv,{as:"h5",children:i.completionResult?.passed?"Complete":"Not Complete"}),p.jsx(hxe,{})]})]});try{const s=n.trim();if(s.startsWith("__ERROR__:")){const o=s.substring(10);return p.jsxs("div",{className:"flex items-start gap-3 p-4 rounded-lg bg-red-50 dark:bg-red-950/20 border border-red-200 dark:border-red-900/50",children:[p.jsx(Lx,{className:"w-5 h-5 text-red-500 dark:text-red-400 mt-0.5 flex-shrink-0"}),p.jsxs("div",{className:"flex-1",children:[p.jsx("p",{className:"text-sm font-medium text-red-800 dark:text-red-200 mb-1",children:"Error"}),p.jsx("p",{className:"text-sm text-red-700 dark:text-red-300",children:o})]})]})}else if(s.startsWith("Error:")){const o=s.substring(6).trim();return p.jsxs("div",{className:"flex items-start gap-3 p-4 rounded-lg bg-red-50 dark:bg-red-950/20 border border-red-200 dark:border-red-900/50",children:[p.jsx(Lx,{className:"w-5 h-5 text-red-500 dark:text-red-400 mt-0.5 flex-shrink-0"}),p.jsxs("div",{className:"flex-1",children:[p.jsx("p",{className:"text-sm font-medium text-red-800 dark:text-red-200 mb-1",children:"Error"}),p.jsx("p",{className:"text-sm text-red-700 dark:text-red-300",children:o})]})]})}return p.jsx(hxe,{})}catch{return p.jsxs("div",{className:"flex items-start gap-3 p-4 rounded-lg bg-red-50 dark:bg-red-950/20 border border-red-200 dark:border-red-900/50",children:[p.jsx(Lx,{className:"w-5 h-5 text-red-500 dark:text-red-400 mt-0.5 flex-shrink-0"}),p.jsxs("div",{className:"flex-1",children:[p.jsx("p",{className:"text-sm font-medium text-red-800 dark:text-red-200 mb-1",children:"Error"}),p.jsx("p",{className:"text-sm text-red-700 dark:text-red-300",children:String(n)})]})]})}};function Gf({text:e,copyMessage:t="Copied to clipboard!"}){const[r,n]=E.useState(!1),i=E.useRef(null),s=E.useCallback(()=>{navigator.clipboard.writeText(e).then(()=>{dn.success(t),n(!0),i.current&&(clearTimeout(i.current),i.current=null),i.current=setTimeout(()=>{n(!1)},2e3)}).catch(()=>{dn.error("Failed to copy to clipboard.")})},[e,t]);return{isCopied:r,handleCopy:s}}function Ch({content:e,copyMessage:t,tooltip:r="Copy to clipboard",iconSize:n="default",className:i}){const{handleCopy:s}=Gf({text:e,copyMessage:t});return p.jsxs($i,{children:[p.jsx(Ii,{asChild:!0,children:p.jsx("button",{onClick:s,type:"button",className:i,children:p.jsx(He,{className:"transition-colors hover:bg-surface4 rounded-lg text-neutral3 hover:text-neutral6",size:n,children:p.jsx(nu,{})})})}),p.jsx(gi,{children:r})]})}const X0=()=>E.useMemo(()=>{const e=XG({settings:{fontFamily:"var(--geist-mono)",fontSize:"0.8rem",lineHighlight:"transparent",gutterBackground:"transparent",gutterForeground:"#939393",background:"transparent"},styles:[{tag:[Y.className,Y.propertyName]}]}),t=et.theme({".cm-editor":{colorScheme:"dark",backgroundColor:"transparent"},".cm-lineNumbers .cm-gutterElement":{color:"#939393"}});return[e,t]},[]),Hc=({data:e,value:t,onChange:r,showCopyButton:n=!0,className:i,...s})=>{const o=X0(),a=e?JSON.stringify(e,null,2):t??"";return p.jsxs("div",{className:ie("rounded-md bg-surface4 p-1 font-mono relative",i),...s,children:[n&&p.jsx(Ch,{content:a,className:"absolute top-2 right-2 z-20"}),p.jsx(su,{value:a,theme:o,extensions:[Gc],onChange:r,"aria-label":"Code editor"})]})};async function S2r(e,t){const{codeToTokens:r,bundledLanguages:n}=await G(async()=>{const{codeToTokens:s,bundledLanguages:o}=await import("./index-BDA9C1Vx.js");return{codeToTokens:s,bundledLanguages:o}},__vite__mapDeps([122,95]),import.meta.url);if(!(t in n))return null;const{tokens:i}=await r(e,{lang:t,defaultColor:!1,themes:{light:"github-light",dark:"github-dark"}});return i}const j6=({children:e,initialCollapsed:t=!0,icon:r,title:n,collapsible:i=!0,extraInfo:s,"data-testid":o})=>{const[a,l]=E.useState(t);return E.useEffect(()=>{l(t)},[t]),p.jsxs("div",{className:"mb-4","data-testid":o,children:[p.jsxs("div",{className:"flex flex-row gap-2 items-center justify-between",children:[p.jsxs("button",{onClick:i?()=>l(c=>!c):void 0,className:"flex items-center gap-2 disabled:cursor-not-allowed",disabled:!i,type:"button",children:[p.jsx(He,{children:p.jsx(NN,{className:ie("transition-all",a?"rotate-90":"rotate-180")})}),p.jsx(sr,{icon:r,children:n})]}),s]}),!a&&p.jsx("div",{className:"pt-2",children:p.jsx("div",{className:"p-4 rounded-lg bg-surface2 flex flex-col gap-4",children:e})})]})},Uo=gX,O2r=h$e,_2r=yX,kZe=E.forwardRef(({className:e,...t},r)=>p.jsx(o5,{ref:r,className:ie("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));kZe.displayName=o5.displayName;const bo=E.forwardRef(({className:e,children:t,...r},n)=>p.jsxs(_2r,{children:[p.jsx(kZe,{}),p.jsxs(a5,{ref:n,className:ie("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border border-border1 bg-surface3 py-6 shadow-lg duration-200 rounded-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]",e),...r,children:[t,p.jsxs(u5,{className:"absolute right-4 top-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 disabled:pointer-events-none data-[state=open]:bg-surface5 data-[state=open]:text-neutral3",children:[p.jsx(Pa,{className:"h-4 w-4"}),p.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));bo.displayName=a5.displayName;const xo=({className:e,...t})=>p.jsx("div",{className:ie("flex flex-col space-y-1.5 text-center sm:text-left border-b border-border1 pb-4 px-6",e),...t});xo.displayName="DialogHeader";const wo=({className:e,...t})=>p.jsx("div",{className:ie("overflow-y-auto px-6 max-h-[50vh]",e),...t});wo.displayName="DialogBody";const So=E.forwardRef(({className:e,...t},r)=>p.jsx(l5,{ref:r,className:ie("text-lg font-semibold leading-none tracking-tight",e),...t}));So.displayName=l5.displayName;const Oo=E.forwardRef(({className:e,...t},r)=>p.jsx(c5,{ref:r,className:ie("sr-only",e),...t}));Oo.displayName=c5.displayName;const k2r=({selectionReason:e,open:t,onOpenChange:r,input:n})=>{let i=null;if(n)try{i=typeof n=="object"?p.jsx(Hc,{data:n}):p.jsx(Hc,{data:JSON.parse(n)})}catch{i=p.jsx("pre",{className:"whitespace-pre-wrap",children:n})}return p.jsx(Uo,{open:t,onOpenChange:r,children:p.jsxs(bo,{children:[p.jsxs(xo,{children:[p.jsx(So,{children:"Agent Network Metadata"}),p.jsx(Oo,{children:"View the metadata of the agent's network choice."})]}),p.jsxs(wo,{className:"space-y-4",children:[p.jsxs("div",{className:"space-y-2",children:[p.jsx(Ye,{className:"text-neutral3",children:"Selection Reason"}),p.jsx("div",{className:"text-neutral6 text-ui-md",children:e})]}),i&&p.jsxs("div",{className:"space-y-2",children:[p.jsx(Ye,{className:"text-neutral3",children:"Input"}),p.jsx("div",{className:"text-neutral6 text-ui-md",children:i})]})]})]})})},nte=({selectionReason:e,input:t})=>{const[r,n]=E.useState(!1);return p.jsxs(p.Fragment,{children:[p.jsx(dd,{tooltip:"Show selection reason",side:"top",onClick:()=>n(i=>!i),children:p.jsx(Hdt,{className:"text-neutral3 size-5"})}),p.jsx(k2r,{selectionReason:e||"",open:r,onOpenChange:n,input:t})]})},EZe=E.createContext(void 0);function E2r({children:e,approveToolcall:t,declineToolcall:r,approveNetworkToolcall:n,declineNetworkToolcall:i,isRunning:s,toolCallApprovals:o,networkToolCallApprovals:a}){return p.jsx(EZe.Provider,{value:{approveToolcall:t,declineToolcall:r,approveNetworkToolcall:n,declineNetworkToolcall:i,isRunning:s,toolCallApprovals:o,networkToolCallApprovals:a},children:e})}function C2r(){const e=E.useContext(EZe);if(!e)throw new Error("useToolCall must be used within a ToolCallProvider");return e}const ite=({toolCalled:e,toolCallId:t,toolApprovalMetadata:r,toolName:n,isNetwork:i})=>{const{approveToolcall:s,declineToolcall:o,isRunning:a,toolCallApprovals:l,approveNetworkToolcall:c,declineNetworkToolcall:u,networkToolCallApprovals:d}=C2r(),f=()=>{i?c(n,r?.runId):s(t)},m=()=>{i?u(n,r?.runId):o(t)},g=i?d?.[r?.runId?`${r.runId}-${n}`:n]?.status:l?.[t]?.status;return r&&!e?p.jsxs("div",{children:[p.jsx("p",{className:"font-medium pb-2",children:"Approval required"}),p.jsxs("div",{className:"flex gap-2 items-center",children:[p.jsxs(Ke,{onClick:f,disabled:a||!!g,className:g==="approved"?"!text-accent1":"",children:[p.jsx(He,{children:p.jsx(yd,{})}),"Approve"]}),p.jsxs(Ke,{onClick:m,disabled:a||!!g,className:g==="declined"?"!text-accent2":"",children:[p.jsx(He,{children:p.jsx(Pa,{})}),"Decline"]})]})]}):null},T2r=({toolName:e,args:t,result:r,metadata:n,toolOutput:i,toolCallId:s,toolApprovalMetadata:o,suspendPayload:a,isNetwork:l,toolCalled:c})=>{let u=null;try{const{__mastraMetadata:b,...w}=typeof t=="object"?t:JSON.parse(t);u=p.jsx(Hc,{data:w,"data-testid":"tool-args"})}catch{u=p.jsx("pre",{className:"whitespace-pre bg-surface4 p-4 rounded-md overflow-x-auto",children:t})}let d=typeof r=="string"?p.jsx("pre",{className:"whitespace-pre bg-surface4 p-4 rounded-md overflow-x-auto",children:r}):p.jsx(Hc,{data:r,"data-testid":"tool-result"}),f=typeof a=="string"?p.jsx("pre",{className:"whitespace-pre bg-surface4 p-4 rounded-md overflow-x-auto",children:a}):p.jsx(Hc,{data:a,"data-testid":"tool-suspend-payload"});const m=n?.mode==="network"?n.selectionReason:void 0,g=n?.mode==="network"?n.agentInput:void 0,v=c??(r||i.length>0);return p.jsx(j6,{"data-testid":"tool-badge",icon:p.jsx(wu,{className:"text-accent6"}),title:e,extraInfo:n?.mode==="network"&&p.jsx(nte,{selectionReason:m||"",input:g}),initialCollapsed:!(o??a),children:p.jsxs("div",{className:"space-y-4",children:[p.jsxs("div",{children:[p.jsx("p",{className:"font-medium pb-2",children:"Tool arguments"}),u]}),f!==void 0&&a&&p.jsxs("div",{children:[p.jsx("p",{className:"font-medium pb-2",children:"Tool suspend payload"}),f]}),d!==void 0&&r&&p.jsxs("div",{children:[p.jsx("p",{className:"font-medium pb-2",children:"Tool result"}),d]}),i.length>0&&p.jsxs("div",{children:[p.jsx("p",{className:"font-medium pb-2",children:"Tool output"}),p.jsx("div",{className:"h-40 overflow-y-auto",children:p.jsx(Hc,{data:i,"data-testid":"tool-output"})})]}),p.jsx(ite,{toolCalled:v,toolCallId:s,toolApprovalMetadata:o,toolName:e,isNetwork:l})]})})};function QZ(e){const t={},r=e.context||{};Object.entries(r).forEach(([o,a])=>{if(o!=="input"&&"status"in a){const l=a,c=l.status==="failed"&&l.tripwire!==void 0;t[o]={status:l.status,output:"output"in l?l.output:void 0,payload:"payload"in l?l.payload:void 0,suspendPayload:"suspendPayload"in l?l.suspendPayload:void 0,suspendOutput:"suspendOutput"in l?l.suspendOutput:void 0,resumePayload:"resumePayload"in l?l.resumePayload:void 0,error:c?void 0:"error"in l?l.error:void 0,tripwire:c?l.tripwire:void 0,startedAt:"startedAt"in l?l.startedAt:Date.now(),endedAt:"endedAt"in l?l.endedAt:void 0,suspendedAt:"suspendedAt"in l?l.suspendedAt:void 0,resumedAt:"resumedAt"in l?l.resumedAt:void 0}}});const n=Object.entries(t).flatMap(([o,a])=>{if(a?.status==="suspended"){const l=a?.suspendPayload?.__workflow_meta?.path;return l?[[o,...l]]:[[o]]}return[]}),i=n?.[0]?.[0],s=i?t[i]?.suspendPayload:void 0;return{input:r.input,steps:t,status:e.status,...e.status==="success"?{result:e.result}:{},...e.status==="failed"?{error:e.error}:{},...e.status==="suspended"?{suspended:n,suspendPayload:s}:{},...e.status==="tripwire"&&e.tripwire?{tripwire:{reason:e.tripwire.reason,retry:e.tripwire.retry,metadata:e.tripwire.metadata,processorId:e.tripwire.processorId}}:{}}}const wi=CW()(m7t(e=>({requestContext:{},setRequestContext:t=>e({requestContext:t})}),{name:"mastra-playground-store"})),F6=()=>{const e=or(),{requestContext:t}=wi();return Ri({queryKey:["workflows",t],queryFn:()=>e.listWorkflows(t)})},D2r={duration:5e3,cancel:{label:p.jsx(Pa,{size:"14"}),onClick:()=>{}},unstyled:!0,classNames:{toast:"bg-surface2 w-full backdrop-accent h-auto rounded-lg gap-2 border border p-4 flex items-start justify-between rounded-lg pointer-events-auto",title:"text-white font-semibold text-xs mb-1 -mt-1",description:"!text-text text-sm !font-light",cancelButton:"!bg-transparent !p-0 flex items-center justify-center !text-text opacity-50 hover:opacity-100 ml-4 shrink-0",actionButton:"!bg-white flex items-center justify-center font-medium !text-black order-last hover:opacity-80"}};function ic(e){const{classNames:t,...r}=D2r,{classNames:n,...i}=e||{};return{...r,classNames:{...t,title:ie(t?.title,n?.title),toast:ie(t?.toast,n?.toast),cancelButton:ie(t?.cancelButton,n?.cancelButton),actionButton:ie(t?.actionButton,n?.actionButton),description:ie(t?.description,n?.description)},...i}}const os=(e,t={})=>{if(Array.isArray(e))return e.forEach(r=>dn(r,ic(t)));if(me.isValidElement(e))return dn(e,ic(t));if(typeof e=="string")return dn(e,ic(t));throw new Error("Invalid message type")};os.success=(e,t={})=>{const r={...t,classNames:{...t.classNames,toast:ie("bg-green-950/20 border-green-900/50 dark:bg-green-950/20 dark:border-green-900/50",t.classNames?.toast),title:ie("text-green-200 dark:text-green-200",t.classNames?.title),description:ie("text-green-300 dark:text-green-300",t.classNames?.description)}};switch(typeof e){case"string":return dn.success(e,ic(r));case"object":return e.forEach(n=>dn.success(n,ic(r)))}};os.error=(e,t={})=>{const r={...t,classNames:{...t.classNames,toast:ie("bg-red-950/20 border-red-900/50 dark:bg-red-950/20 dark:border-red-900/50",t.classNames?.toast),title:ie("text-red-200 dark:text-red-200",t.classNames?.title),description:ie("text-red-300 dark:text-red-300",t.classNames?.description)}};switch(typeof e){case"string":return dn.error(e,ic(r));case"object":return e.forEach(n=>dn.error(n,ic(r)))}};os.warning=(e,t={})=>{const r={...t,classNames:{...t.classNames,toast:ie("bg-yellow-950/20 border-yellow-900/50 dark:bg-yellow-950/20 dark:border-yellow-900/50",t.classNames?.toast),title:ie("text-yellow-200 dark:text-yellow-200",t.classNames?.title),description:ie("text-yellow-300 dark:text-yellow-300",t.classNames?.description)}};switch(typeof e){case"string":return dn.warning(e,ic(r));case"object":return e.forEach(n=>dn.warning(n,ic(r)))}};os.info=(e,t={})=>{const r={...t,classNames:{...t.classNames,toast:ie("bg-blue-950/20 border-blue-900/50 dark:bg-blue-950/20 dark:border-blue-900/50",t.classNames?.toast),title:ie("text-blue-200 dark:text-blue-200",t.classNames?.title),description:ie("text-blue-300 dark:text-blue-300",t.classNames?.description)}};switch(typeof e){case"string":return dn.info(e,ic(r));case"object":return e.forEach(n=>dn.info(n,ic(r)))}};os.custom=(e,t={})=>dn(e,ic(t));os.dismiss=e=>{e&&dn.dismiss(e)};os.promise=({myPromise:e,loadingMessage:t,successMessage:r,errorMessage:n,onSuccess:i,onError:s,options:o={}})=>dn.promise(e,{loading:t??"Loading...",success:a=>(i?.(a),r),error:a=>(s?.(a),n||a?.message||"Error..."),...ic(o)});function A2r({entityId:e,entityType:t}){const[r,n]=E.useState(void 0),i=`tracing-options-${t}:${e}`;return E.useEffect(()=>{try{const a=localStorage.getItem(i);if(a){const l=JSON.parse(a);n(l||void 0)}}catch(a){console.error(a)}},[i]),{settings:r,setSettings:a=>{n(l=>({...l,...a})),localStorage.setItem(i,JSON.stringify({...a,entityId:e,entityType:t}))},resetAll:()=>{n(void 0),localStorage.removeItem(i)},entityType:t}}const CZe=E.createContext({setSettings:()=>{},resetAll:()=>{},settings:void 0,entityType:void 0}),TZe=({children:e,entityId:t,entityType:r})=>{const n=A2r({entityId:t,entityType:r});return p.jsx(CZe.Provider,{value:n,children:e})},ste=()=>E.useContext(CZe),P2r=()=>{const e=or(),t=Pi({mutationFn:async({workflowId:i,prevRunId:s})=>{try{const o=e.getWorkflow(i),{runId:a}=await o.createRun({runId:s});return{runId:a}}catch(o){throw console.error("Error creating workflow run:",o),o}}}),r=Pi({mutationFn:async({workflowId:i,runId:s,input:o,requestContext:a})=>{try{const l=new rl;Object.entries(a).forEach(([d,f])=>{l.set(d,f)}),await(await e.getWorkflow(i).createRun({runId:s})).start({inputData:o||{},requestContext:l})}catch(l){throw console.error("Error starting workflow run:",l),l}}}),n=Pi({mutationFn:async({workflowId:i,runId:s,input:o,requestContext:a})=>{try{const l=new rl;return Object.entries(a).forEach(([f,m])=>{l.set(f,m)}),await(await e.getWorkflow(i).createRun({runId:s})).startAsync({inputData:o||{},requestContext:l})}catch(l){throw console.error("Error starting workflow run:",l),l}}});return{startWorkflowRun:r,createWorkflowRun:t,startAsyncWorkflowRun:n}},$2r=({debugMode:e})=>{const t=or(),{settings:r}=ste(),[n,i]=E.useState({}),[s,o]=E.useState(!1),a=E.useRef(null),l=E.useRef(null),c=E.useRef(null),u=E.useRef(null),d=E.useRef(!0);E.useEffect(()=>(d.current=!0,()=>{if(d.current=!1,a.current){try{a.current.releaseLock()}catch{}a.current=null}if(l.current){try{l.current.releaseLock()}catch{}l.current=null}if(c.current){try{c.current.releaseLock()}catch{}c.current=null}if(u.current){try{u.current.releaseLock()}catch{}u.current=null}}),[]);const f=(O,k,C)=>{if(O instanceof TypeError)return;const T=O instanceof Error?O.message:k;os.error(T),C?.(!1)},m=O=>{if(O.type==="workflow-finish"){const k=O.payload?.workflowStatus,C=O.payload?.metadata;if(i(T=>({...T,status:k})),k==="failed")throw new Error(C?.errorMessage||"Workflow execution failed")}},g=Pi({mutationFn:async({workflowId:O,runId:k,inputData:C,initialState:T,requestContext:P,perStep:A})=>{if(a.current&&a.current.releaseLock(),!d.current)return;o(!0),i({input:C});const R=new rl;Object.entries(P).forEach(([L,Q])=>{R.set(L,Q)});const U=await(await t.getWorkflow(O).createRun({runId:k})).stream({inputData:C,initialState:T,requestContext:R,closeOnSuspend:!0,tracingOptions:r?.tracingOptions,perStep:A??e});if(!U)return f(new Error("No stream returned"),"No stream returned",o);const V=U.getReader();a.current=V;try{for(;d.current;){const{done:L,value:Q}=await V.read();if(L)break;d.current&&(i(F=>cg(F,Q)),Q.type==="workflow-step-start"&&o(!0),Q.type==="workflow-step-suspended"&&o(!1),Q.type==="workflow-finish"&&m(Q))}}catch(L){f(L,"Error streaming workflow")}finally{d.current&&o(!1),a.current&&(a.current.releaseLock(),a.current=null)}}}),v=Pi({mutationFn:async({workflowId:O,runId:k,storeRunResult:C})=>{if(l.current&&l.current.releaseLock(),!d.current)return;if(o(!0),i(C||{}),C?.status==="suspended"){o(!1);return}const A=await(await t.getWorkflow(O).createRun({runId:k})).observeStream();if(!A)return f(new Error("No stream returned"),"No stream returned",o);const R=A.getReader();l.current=R;try{for(;d.current;){const{done:M,value:z}=await R.read();if(M)break;d.current&&(i(U=>cg(U,z)),z.type==="workflow-step-start"&&o(!0),z.type==="workflow-step-suspended"&&o(!1),z.type==="workflow-finish"&&m(z))}}catch(M){f(M,"Error observing workflow")}finally{d.current&&o(!1),l.current&&(l.current.releaseLock(),l.current=null)}}}),b=Pi({mutationFn:async({workflowId:O,runId:k,step:C,resumeData:T,requestContext:P,perStep:A})=>{if(c.current&&c.current.releaseLock(),!d.current)return;o(!0);const R=t.getWorkflow(O),M=new rl;Object.entries(P).forEach(([L,Q])=>{M.set(L,Q)});const U=await(await R.createRun({runId:k})).resumeStream({step:C,resumeData:T,requestContext:M,tracingOptions:r?.tracingOptions,perStep:A??e});if(!U)return f(new Error("No stream returned"),"No stream returned",o);const V=U.getReader();c.current=V;try{for(;d.current;){const{done:L,value:Q}=await V.read();if(L)break;d.current&&(i(F=>cg(F,Q)),Q.type==="workflow-step-start"&&o(!0),Q.type==="workflow-step-suspended"&&o(!1),Q.type==="workflow-finish"&&m(Q))}}catch(L){f(L,"Error resuming workflow stream")}finally{d.current&&o(!1),c.current&&(c.current.releaseLock(),c.current=null)}}}),w=Pi({mutationFn:async({workflowId:O,requestContext:k,runId:C,perStep:T,...P})=>{if(u.current&&u.current.releaseLock(),!d.current)return;o(!0);const A=t.getWorkflow(O),R=new rl;Object.entries(k).forEach(([V,L])=>{R.set(V,L)});const z=await(await A.createRun({runId:C})).timeTravelStream({...P,perStep:T??e,requestContext:R,tracingOptions:r?.tracingOptions});if(!z)return f(new Error("No stream returned"),"No stream returned",o);const U=z.getReader();u.current=U;try{for(;d.current;){const{done:V,value:L}=await U.read();if(V)break;d.current&&(i(Q=>cg(Q,L)),L.type==="workflow-step-start"&&o(!0),L.type==="workflow-step-suspended"&&o(!1),L.type==="workflow-finish"&&m(L))}}catch(V){f(V,"Error time traveling workflow stream")}finally{d.current&&o(!1),u.current&&(u.current.releaseLock(),u.current=null)}}});return{streamWorkflow:g,streamResult:n,isStreaming:s,observeWorkflowStream:v,closeStreamsAndReset:()=>{if(o(!1),i({}),a.current){try{a.current.releaseLock()}catch{}a.current=null}if(l.current){try{l.current.releaseLock()}catch{}l.current=null}if(c.current){try{c.current.releaseLock()}catch{}c.current=null}if(u.current){try{u.current.releaseLock()}catch{}u.current=null}},resumeWorkflowStream:b,timeTravelWorkflowStream:w}},I2r=()=>{const e=or();return Pi({mutationFn:async({workflowId:r,runId:n})=>{try{return await(await e.getWorkflow(r).createRun({runId:n})).cancelRun()}catch(i){throw console.error("Error canceling workflow run:",i),i}}})},DZe=()=>{const[e,t]=E.useState(!1),r=E.useCallback(n=>{if(n){const i=new IntersectionObserver(([s])=>{t(s.isIntersecting)});return i.observe(n),()=>i.disconnect()}},[]);return{inView:e,setRef:r}},OD=e=>{const t=or(),{requestContext:r}=wi();return Ri({queryKey:["workflow",e],queryFn:()=>e?t.getWorkflow(e).details(r):null,enabled:!!e,retry:!1,refetchOnWindowFocus:!1,throwOnError:!1})},Lz=20,AZe=(e,{enabled:t=!0}={})=>{const r=or(),{inView:n,setRef:i}=DZe(),s=N$e({queryKey:["workflow-runs",e],queryFn:({pageParam:o})=>r.getWorkflow(e).runs({limit:Lz,offset:o*Lz}),initialPageParam:0,getNextPageParam:(o,a,l)=>{if(!(o.runs.length<Lz))return l+1},select:o=>o.pages.flatMap(a=>a.runs),retry:!1,enabled:t,refetchInterval:5e3,gcTime:0,staleTime:0});return E.useEffect(()=>{n&&s.hasNextPage&&!s.isFetchingNextPage&&s.fetchNextPage()},[n,s.hasNextPage,s.isFetchingNextPage]),{...s,setEndOfListElement:i}},PZe=(e,t,r)=>{const n=or();return Ri({queryKey:["workflow-run",e,t],queryFn:()=>n.getWorkflow(e).runById(t),enabled:!!(e&&t),gcTime:0,staleTime:0,refetchInterval:r})},N2r=e=>{const t=or(),r=sp();return Pi({mutationFn:({runId:n})=>t.getWorkflow(e).deleteRunById(n),onSuccess:()=>{r.invalidateQueries({queryKey:["workflow-runs",e]}),dn.success("Workflow run deleted successfully")},onError:()=>{dn.error("Failed to delete workflow run")}})},$Ze=E.createContext(null);function L6(){const e=E.useContext($Ze);if(!e)throw new Error("useWorkflowStepDetail must be used within WorkflowStepDetailProvider");return e}function R2r({children:e}){const[t,r]=E.useState(null),n=E.useCallback(({stepName:o,stepId:a,mapConfig:l})=>{r({type:"map-config",stepName:o,stepId:a,mapConfig:l})},[]),i=E.useCallback(({label:o,stepGraph:a,fullStep:l})=>{r({type:"nested-graph",stepName:o,nestedGraph:{label:o,stepGraph:a,fullStep:l}})},[]),s=E.useCallback(()=>{r(null)},[]);return p.jsx($Ze.Provider,{value:{stepDetail:t,showMapConfig:n,showNestedGraph:i,closeStepDetail:s},children:e})}const mp=E.createContext({});function ote({children:e,snapshot:t,workflowId:r,initialRunId:n,withoutTimeTravel:i=!1}){const[s,o]=E.useState(()=>t?QZ(t):null),[a,l]=E.useState(()=>t?.context?.input??null),[c,u]=E.useState(()=>n??""),[d,f]=E.useState(!1),[m,g]=E.useState(!1),v=d||["success","failed","canceled","bailed"].includes(s?.status??"")?void 0:5e3,{isLoading:b,data:w}=PZe(r,n??"",v),S=E.useMemo(()=>w&&n?{context:{input:w?.payload,...w?.steps},status:w?.status,result:w?.result,error:w?.error,runId:n,serializedStepGraph:w?.serializedStepGraph,value:w?.initialState}:void 0,[w,n]),{data:O,isLoading:k,error:C}=OD(r),{createWorkflowRun:T}=P2r(),{streamWorkflow:P,streamResult:A,isStreaming:R,observeWorkflowStream:M,closeStreamsAndReset:z,resumeWorkflowStream:U,timeTravelWorkflowStream:V}=$2r({debugMode:m}),{mutateAsync:L,isPending:Q}=I2r(),F=()=>{o(null),l(null)};return E.useEffect(()=>{f(!1)},[n]),E.useEffect(()=>{S?.runId&&(o(QZ(S)),S.value&&Object.keys(S.value).length>0?l({initialState:S.value,inputData:S.context?.input}):l(S.context?.input),u(S.runId))},[S]),p.jsx(mp.Provider,{value:{workflowId:r,result:s,setResult:o,payload:a,setPayload:l,clearData:F,snapshot:t,runId:c,setRunId:u,workflowError:C??null,workflow:O??void 0,isLoading:k,createWorkflowRun:T.mutateAsync,streamWorkflow:N=>(f(!0),P.mutateAsync(N)),resumeWorkflow:N=>(f(!0),U.mutateAsync(N)),streamResult:A,isStreamingWorkflow:R,isCancellingWorkflowRun:Q,cancelWorkflowRun:L,observeWorkflowStream:N=>(f(!0),M.mutate(N)),closeStreamsAndReset:z,timeTravelWorkflowStream:N=>(f(!0),V.mutateAsync(N)),runSnapshot:S,isLoadingRunExecutionResult:b,withoutTimeTravel:i,debugMode:m,setDebugMode:g},children:p.jsx(R2r,{children:e})})}function Rr({className:e,...t}){return p.jsx("div",{className:ie("animate-pulse rounded-md bg-surface4/50",e),...t})}const M2r=e=>e.replace(/[-_\s]+(.)?/g,(r,n)=>n?n.toUpperCase():"").replace(/^(.)/,r=>r.toLowerCase()).replace(/([A-Z])/g," $1").replace(/^./,r=>r.toUpperCase()).trim(),j2r=(e,t,r)=>{if(!e.startsWith("mapping_"))return e;const n=l=>l.split(" ").map(c=>c.charAt(0).toUpperCase()+c.slice(1)).join(" "),i=l=>{const c=l.replace(/Step$/,"").replace(/[-_]/g," ").trim();return n(c)},s=(l,c)=>l.length===0?c?"End":"Start":l.length===1?i(l[0]):`${l.length} Steps`,o=s(t,!1),a=s(r,!0);return`${o} → ${a} Map`},F2r=(e,t)=>{const r=new ime.graphlib.Graph().setDefaultEdgeLabel(()=>({}));r.setGraph({rankdir:"TB"}),t.forEach(s=>r.setEdge(s.source,s.target)),e.forEach(s=>r.setNode(s.id,{...s,width:s.measured?.width??274,height:s.measured?.height??(s?.data?.isLarge?260:100)})),ime.layout(r);const n=r.graph()?.width?r.graph().width/2:0,i=r.graph()?.height?r.graph().height/2:0;return{nodes:e.map(s=>{const o=r.node(s.id),a=o.x-(s.measured?.width??274)/2,l=o.y-(s.measured?.height??(s?.data?.isLarge?260:100))/2;return{...s,position:{x:a,y:l}}}),edges:t,fullWidth:n,fullHeight:i}},Lu={animated:!0,markerEnd:{type:WE.ArrowClosed,width:20,height:20,color:"#8e8e8e"}},ZZ=({stepFlow:e,xIndex:t,yIndex:r,prevNodeIds:n,prevStepIds:i,nextStepFlow:s,condition:o,allPrevNodeIds:a})=>{let l=[],c=[];if((s?.type==="step"||s?.type==="foreach"||s?.type==="loop")&&(l=[a?.includes(s.step.id)?`${s.step.id}-${r+1}`:s.step.id],c=[s.step.id]),(s?.type==="sleep"||s?.type==="sleepUntil")&&(l=[a?.includes(s.id)?`${s.id}-${r+1}`:s.id],c=[s.id]),s?.type==="parallel"&&(l=s?.steps.map(u=>{const d=u.step.id;return a?.includes(d)?`${d}-${r+1}`:d})||[],c=s?.steps.map(u=>u.step.id)||[]),s?.type==="conditional"&&(l=s?.serializedConditions.map(u=>u.id)||[],c=s?.steps?.map(u=>u.step.id)||[]),e.type==="step"||e.type==="foreach"){const u=e.step.component==="WORKFLOW",d=a?.includes(e.step.id)?`${e.step.id}-${r}`:e.step.id,f=[...o?[{id:o.id,position:{x:t*300,y:r*100},type:"condition-node",data:{label:o.id,previousStepId:i[i.length-1],nextStepId:e.step.id,withoutTopHandle:!n.length,withoutBottomHandle:!l.length,isLarge:!0,conditions:[{type:"when",fnString:o.fn}]}}]:[],{id:d,position:{x:t*300,y:(r+(o?1:0))*100},type:u?"nested-node":"default-node",data:{label:j2r(e.step.id,i,c),stepId:e.step.id,description:e.step.description,withoutTopHandle:o?!1:!n.length,withoutBottomHandle:!l.length,stepGraph:u?e.step.serializedStepFlow:void 0,mapConfig:e.step.mapConfig,canSuspend:e.step.canSuspend,isForEach:e.type==="foreach"}}],m=[...o?[...(n||[]).map((g,v)=>({id:`e${g}-${o.id}`,source:g,data:{previousStepId:i[v],nextStepId:e.step.id},target:o.id,...Lu})),{id:`e${o.id}-${d}`,source:o.id,data:{previousStepId:i[i.length-1],nextStepId:e.step.id,conditionNode:!0},target:d,...Lu}]:(n||[]).map((g,v)=>({id:`e${g}-${d}`,source:g,data:{previousStepId:i[v],nextStepId:e.step.id},target:d,...Lu})),...(l||[]).map((g,v)=>({id:`e${d}-${g}`,source:d,data:{previousStepId:e.step.id,nextStepId:c[v]},target:g,...Lu}))];return{nodes:f,edges:m,nextPrevNodeIds:[d],nextPrevStepIds:[e.step.id]}}if(e.type==="sleep"||e.type==="sleepUntil"){const u=a?.includes(e.id)?`${e.id}-${r}`:e.id,d=[...o?[{id:o.id,position:{x:t*300,y:r*100},type:"condition-node",data:{label:o.id,previousStepId:i[i.length-1],nextStepId:e.id,withoutTopHandle:!1,withoutBottomHandle:!l.length,isLarge:!0,conditions:[{type:"when",fnString:o.fn}]}}]:[],{id:u,position:{x:t*300,y:(r+(o?1:0))*100},type:"default-node",data:{label:e.id,withoutTopHandle:o?!1:!n.length,withoutBottomHandle:!l.length,...e.type==="sleepUntil"?{date:e.date}:{duration:e.duration}}}],f=[...n.length?o?[...n.map((m,g)=>({id:`e${m}-${o.id}`,source:m,data:{previousStepId:i[g],nextStepId:e.id},target:o.id,...Lu})),{id:`e${o.id}-${u}`,source:o.id,data:{previousStepId:i[i.length-1],nextStepId:e.id},target:u,...Lu}]:n.map((m,g)=>({id:`e${m}-${u}`,source:m,data:{previousStepId:i[g],nextStepId:e.id},target:u,...Lu})):[],...l.length?l.map((m,g)=>({id:`e${u}-${m}`,source:u,data:{previousStepId:e.id,nextStepId:c[g]},target:m,...Lu})):[]];return{nodes:d,edges:f,nextPrevNodeIds:[u],nextPrevStepIds:[e.id]}}if(e.type==="loop"){const{step:u,serializedCondition:d,loopType:f}=e,m=u.component==="WORKFLOW",g=[{id:u.id,position:{x:t*300,y:r*100},type:m?"nested-node":"default-node",data:{label:u.id,description:u.description,withoutTopHandle:!n.length,withoutBottomHandle:!1,stepGraph:m?u.serializedStepFlow:void 0,canSuspend:u.canSuspend}},{id:d.id,position:{x:t*300,y:(r+1)*100},type:"condition-node",data:{label:d.id,previousStepId:u.id,nextStepId:c[0],withoutTopHandle:!1,withoutBottomHandle:!l.length,isLarge:!0,conditions:[{type:f,fnString:d.fn}]}}],v=[...n.length?n.map((b,w)=>({id:`e${b}-${u.id}`,source:b,data:{previousStepId:i[w],nextStepId:u.id},target:u.id,...Lu})):[],{id:`e${u.id}-${d.id}`,source:u.id,data:{previousStepId:u.id,nextStepId:c[0]},target:d.id,...Lu},...l.length?l.map((b,w)=>({id:`e${d.id}-${b}`,source:d.id,data:{previousStepId:u.id,nextStepId:c[w]},target:b,...Lu})):[]];return{nodes:g,edges:v,nextPrevNodeIds:[d.id],nextPrevStepIds:[u.id]}}if(e.type==="parallel"){let u=[],d=[],f=[];return e.steps.forEach((m,g)=>{const{nodes:v,edges:b,nextPrevStepIds:w}=ZZ({stepFlow:m,xIndex:g,yIndex:r,prevNodeIds:n,prevStepIds:i,nextStepFlow:s,allPrevNodeIds:a}),S=v.map(O=>({...O,data:{...O.data,isParallel:!0}}));u.push(...S),d.push(...b),f.push(...w)}),{nodes:u,edges:d,nextPrevNodeIds:u.map(m=>m.id),nextPrevStepIds:f}}if(e.type==="conditional"){let u=[],d=[],f=[];return e.steps.forEach((m,g)=>{const{nodes:v,edges:b,nextPrevStepIds:w}=ZZ({stepFlow:m,xIndex:g,yIndex:r,prevNodeIds:n,prevStepIds:i,nextStepFlow:s,condition:e.serializedConditions[g],allPrevNodeIds:a});u.push(...v),d.push(...b),f.push(...w)}),{nodes:u,edges:d,nextPrevNodeIds:u.filter(({type:m})=>m!=="condition-node").map(m=>m.id),nextPrevStepIds:f}}return{nodes:[],edges:[],nextPrevNodeIds:[],nextPrevStepIds:[]}},IZe=({stepGraph:e})=>{if(!e)return{nodes:[],edges:[]};if(e.length===0)return{nodes:[],edges:[]};let t=[],r=[],n=[],i=[],s=[];for(let l=0;l<e.length;l++){const{nodes:c,edges:u,nextPrevNodeIds:d,nextPrevStepIds:f}=ZZ({stepFlow:e[l],xIndex:l,yIndex:l,prevNodeIds:n,prevStepIds:i,nextStepFlow:l===e.length-1?void 0:e[l+1],allPrevNodeIds:s});t.push(...c),r.push(...u),n=d,i=f,s.push(...n)}const{nodes:o,edges:a}=F2r(t,r);return{nodes:o,edges:a}},z6=lHt,B6=e=>{const{className:t,...r}=e;return p.jsx(gRe,{className:ie("-outline-offset-2",t),...r})},V6=yRe,gs={sleep:"#A855F7",forEach:"#F97316",map:"#F97316",parallel:"#3B82F6",suspend:"#EC4899",after:"#14B8A6",workflow:"#8B5CF6",when:"#ECB047",dountil:"#8B5CF6",dowhile:"#06B6D4",until:"#F59E0B",while:"#10B981",if:"#3B82F6",else:"#6B7280"},Gs={sleep:MB,sleepUntil:Bct,forEach:RB,map:RB,parallel:uTe,suspend:xut,after:KCe,workflow:idt,when:oTe,dountil:Fdt,dowhile:zdt,until:MB,while:RN,if:iTe,else:Nut},gxe=e=>{switch(e){case"when":return{icon:Gs.when,color:gs.when};case"dountil":return{icon:Gs.dountil,color:gs.dountil};case"dowhile":return{icon:Gs.dowhile,color:gs.dowhile};case"until":return{icon:Gs.until,color:gs.until};case"while":return{icon:Gs.while,color:gs.while};case"if":return{icon:Gs.if,color:gs.if};case"else":return{icon:Gs.else,color:gs.else};default:return{icon:void 0,color:void 0}}},NZe=e=>{const t=!!(e.duration||e.date),r=!!e.isForEach,n=!!(e.mapConfig&&!e.isForEach),i=!!e.stepGraph,s=t||e.canSuspend||e.isParallel||r||n||i;return{isSleepNode:t,isForEachNode:r,isMapNode:n,isNestedWorkflow:i,hasSpecialBadge:s}},RZe=(e,{enabled:t=!0})=>{const r=E.useRef(t);me.useEffect(()=>{if(!t||!e?.current)return;const n=e.current,i=new MutationObserver(()=>{r.current&&n.scrollTo({top:n.scrollHeight,behavior:"smooth"})});i.observe(n,{childList:!0,subtree:!0,characterData:!0});const s=o=>{const a=o.target,l=a.scrollTop+a.clientHeight,c=a.scrollHeight;l>=c-1?r.current=!0:r.current=!1};return n.addEventListener("scroll",s),()=>{n.removeEventListener("scroll",s),i.disconnect()}},[t,e])},_D=E.forwardRef(({className:e,children:t,viewPortClassName:r,maxHeight:n,autoScroll:i=!1,...s},o)=>{const a=E.useRef(null);return RZe(a,{enabled:i}),p.jsxs(ARe,{ref:o,className:ie("relative overflow-hidden",e),...s,children:[p.jsx(wHt,{ref:a,className:ie("h-full w-full rounded-[inherit] [&>div]:!block",r),style:n?{maxHeight:n}:void 0,children:t}),p.jsx(MZe,{}),p.jsx(SHt,{})]})});_D.displayName=ARe.displayName;const MZe=E.forwardRef(({className:e,orientation:t="vertical",...r},n)=>p.jsx(jY,{ref:n,orientation:t,className:ie("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-px",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-px",e),...r,children:p.jsx(kRe,{className:"relative flex-1 rounded-full bg-border1"})}));MZe.displayName=jY.displayName;const kD=()=>{const e=E.useContext(mp),t=e.result?.steps??{};return{steps:Object.entries(t).reduce((n,[i,s])=>{const o="tripwire"in s&&s.tripwire;return{...n,[i]:{error:o?void 0:"error"in s?s.error:void 0,tripwire:o?s.tripwire:void 0,startedAt:s.startedAt,endedAt:"endedAt"in s?s.endedAt:void 0,status:s.status,output:"output"in s?s.output:void 0,input:s.payload,resumeData:"resumePayload"in s?s.resumePayload:void 0,suspendOutput:"suspendOutput"in s?s.suspendOutput:void 0,suspendPayload:"suspendPayload"in s?s.suspendPayload:void 0}}},{}),runId:e.runId}},mx=({data:e,language:t="auto"})=>{const r=X0(),n=o=>{if(t==="javascript")return[B3(),et.lineWrapping];if(t==="json")return[Gc,et.lineWrapping];try{return JSON.parse(o),[Gc,et.lineWrapping]}catch{return o.includes("=>")||o.includes("function")||o.includes("const ")||o.includes("return ")?[B3(),et.lineWrapping]:[et.lineWrapping]}};if(typeof e!="string"){const o=JSON.stringify(e,null,2);return p.jsxs("div",{className:"max-h-[500px] overflow-auto relative",children:[p.jsx("div",{className:"absolute right-2 top-2 bg-surface4 rounded-full z-10",children:p.jsx(Ch,{content:o})}),p.jsx("div",{className:"bg-surface4 rounded-lg p-4",children:p.jsx(su,{value:o,theme:r,extensions:[Gc,et.lineWrapping]})})]})}const i=n(e);let s=e;try{const o=JSON.parse(e);s=JSON.stringify(o,null,2)}catch{}return p.jsxs("div",{className:"max-h-[500px] overflow-auto relative",children:[p.jsx("div",{className:"absolute right-2 top-2 bg-surface4 rounded-full z-10",children:p.jsx(Ch,{content:e})}),p.jsx("div",{className:"bg-surface4 rounded-lg p-4",children:p.jsx(su,{value:s,theme:r,extensions:i})})]})},L2r=me.forwardRef(({children:e,...t},r)=>p.jsx("form",{ref:r,className:"space-y-4",...t,children:e})),z2r=["boolean","object","array"],B2r=({label:e,children:t,id:r,field:n,error:i})=>{const s=z2r.includes(n.type);return p.jsxs("div",{className:"pb-4 last:pb-0",children:[!s&&p.jsxs(Ye,{as:"label",variant:"ui-sm",className:"text-neutral3 pb-1 block",htmlFor:r,children:[e,n.required&&p.jsx("span",{className:"text-accent2",children:" *"})]}),t,n.fieldConfig?.description&&p.jsx(Ye,{as:"p",variant:"ui-sm",className:"text-neutral6",children:n.fieldConfig.description}),i&&p.jsx(Ye,{as:"p",variant:"ui-sm",className:"text-accent2",children:i})]})},V2r=({error:e})=>p.jsx(Nv,{variant:"destructive",children:p.jsx(Rv,{children:e})}),U2r=({children:e})=>p.jsx(Ke,{type:"submit",children:e}),yxe=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,vxe=lZe,jZe=(e,t)=>r=>{var n;if(t?.variants==null)return vxe(e,r?.class,r?.className);const{variants:i,defaultVariants:s}=t,o=Object.keys(i).map(c=>{const u=r?.[c],d=s?.[c];if(u===null)return null;const f=yxe(u)||yxe(d);return i[c][f]}),a=r&&Object.entries(r).reduce((c,u)=>{let[d,f]=u;return f===void 0||(c[d]=f),c},{}),l=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((c,u)=>{let{class:d,className:f,...m}=u;return Object.entries(m).every(g=>{let[v,b]=g;return Array.isArray(b)?b.includes({...s,...a}[v]):{...s,...a}[v]===b})?[...c,d,f]:c},[]);return vxe(e,o,l,r?.class,r?.className)},Q2r=jZe(ie("flex w-full text-neutral6 border bg-transparent shadow-sm transition-colors disabled:cursor-not-allowed disabled:opacity-50",SD,yS),{variants:{variant:{default:"border border-border1 placeholder:text-neutral3",filled:"border bg-inputFill border-border1 placeholder:text-neutral3",unstyled:"border-0 bg-transparent placeholder:text-neutral3"},size:{sm:`${Ea.sm} px-2 text-ui-sm`,md:`${Ea.md} px-3 text-ui-sm`,lg:`${Ea.lg} px-4 text-ui-sm`}},defaultVariants:{variant:"default",size:"md"}}),ko=E.forwardRef(({className:e,size:t,testId:r,variant:n,type:i,...s},o)=>p.jsx("input",{type:i,className:ie(e,Q2r({variant:n,size:t,className:e})),"data-testid":r,ref:o,...s}));ko.displayName="Input";const Z2r=({inputProps:e,error:t,field:r,id:n})=>{const{key:i,...s}=e;return p.jsx(ko,{id:n,className:t?"border-accent2":"",...s,defaultValue:r.default})},q2r=({inputProps:e,error:t,field:r,id:n})=>{const{key:i,...s}=e;return p.jsx(ko,{id:n,type:"number",className:t?"border-accent2":"",...s,defaultValue:r.default!==void 0?Number(r.default):void 0,onChange:o=>{const a=o.target.value;a!==""&&!isNaN(Number(a))&&s.onChange({target:{value:a,name:e.name}})},onBlur:o=>{const a=o.target.value;a!==""&&!isNaN(Number(a))&&s.onChange({target:{value:Number(a),name:e.name}})}})},U6=E.forwardRef(({className:e,...t},r)=>p.jsx(qY,{ref:r,className:ie("peer h-4 w-4 shrink-0 rounded-sm border border-neutral6 shadow disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-neutral6 data-[state=checked]:text-surface2",e),...t,children:p.jsx(QRe,{className:ie("flex items-center justify-center text-current"),children:p.jsx(yd,{className:"h-4 w-4"})})}));U6.displayName=qY.displayName;const H2r=({field:e,label:t,id:r,inputProps:n,value:i})=>p.jsxs("div",{className:"flex items-center space-x-2",children:[p.jsx(U6,{id:r,onCheckedChange:s=>{const o={target:{name:n.name,value:s}};n.onChange(o)},defaultChecked:e.default,disabled:n.disabled||n.readOnly}),p.jsxs(Ye,{as:"label",variant:"ui-sm",className:"text-neutral3",htmlFor:r,children:[t,e.required&&p.jsx("span",{className:"text-accent2",children:" *"})]})]});function FZe({className:e,classNames:t,showOutsideDays:r=!0,...n}){return p.jsx(KXt,{showOutsideDays:r,className:ie("p-3",e),classNames:{months:"flex flex-col space-y-4 sm:space-y-0 ",month:"space-y-4 text-ui-sm ",caption:"flex justify-between pt-1 items-center pl-2",caption_label:"text-text font-medium ",nav:"flex items-center",nav_button_previous:ie("flex justify-center items-center h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_next:ie("flex justify-center items-center h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),dropdown_month:"w-full border-collapse space-y-1",weeknumber:"flex",day:ie("relative p-0 text-center focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-surface5 [&:has([aria-selected].day-outside)]:bg-surface5/50 [&:has([aria-selected].day-range-end)]:rounded-r-md",n.mode==="range"?"[&:has(>.day-range-end)]:rounded-r-md [&:has(>.day-range-start)]:rounded-l-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md":"[&:has([aria-selected])]:rounded-md","h-8 w-8 p-0 hover:bg-lightGray-7/50 font-normal aria-selected:opacity-100"),day_range_start:"day-range-start",day_range_end:"day-range-end",day_selected:"!bg-neutral6/50 !text-surface2 hover:bg-neutral6 rounded-md hover:text-surface2 focus:bg-neutral6 focus:text-surface2",day_today:"bg-neutral6/10 text-neutral5",day_outside:"day-outside text-neutral3 opacity-50 aria-selected:bg-surface5/50 aria-selected:text-neutral3 aria-selected:opacity-30",day_disabled:"text-neutral3 opacity-50",day_range_middle:"aria-selected:bg-surface5 aria-selected:text-neutral5",day_hidden:"invisible",head_cell:"text-ui-xs text-neutral3",...t},...n})}const QC=Tlt,ZC=Dlt,vw=E.forwardRef(({className:e,align:t="center",sideOffset:r=4,...n},i)=>p.jsx(Alt,{children:p.jsx(wCe,{ref:i,align:t,sideOffset:r,className:ie("z-50 w-72 rounded-md border border-border1 bg-surface3 text-neutral5 shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e&&/\bp-\S+/.test(e)?!1:"p-4",e),...n})}));vw.displayName=wCe.displayName;const ate=kYt,lte=EYt,W2r={sm:`${Ea.sm} px-2 text-ui-sm`,md:`${Ea.md} px-3 text-ui-sm`,lg:`${Ea.lg} px-3 text-ui-sm`},Q6=E.forwardRef(({className:e,children:t,size:r="md",...n},i)=>p.jsxs(jMe,{ref:i,className:ie("flex w-full items-center justify-between border border-border1 bg-transparent py-2 shadow-sm placeholder:text-neutral3 disabled:cursor-not-allowed disabled:opacity-50",SD,yS,W2r[r],e),...n,children:[t,p.jsx(CYt,{asChild:!0,children:p.jsx(Rd,{className:"h-4 w-4 opacity-50"})})]}));Q6.displayName=jMe.displayName;const Z6=E.forwardRef(({className:e,children:t,position:r="popper",...n},i)=>p.jsx(TYt,{children:p.jsx(FMe,{ref:i,className:ie("relative z-50 min-w-[8rem] max-h-dropdown-max-height overflow-y-auto overflow-x-hidden rounded-md border border-border1 bg-surface3 text-neutral5 shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:r,...n,children:p.jsx(DYt,{className:ie("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t})})}));Z6.displayName=FMe.displayName;const q6=E.forwardRef(({className:e,children:t,...r},n)=>p.jsxs(LMe,{ref:n,className:ie("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-neutral5 text-sm focus:bg-surface5 focus:text-neutral5 data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...r,children:[p.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:p.jsx(PYt,{children:p.jsx(yd,{className:"h-4 w-4"})})}),p.jsx(AYt,{children:t})]}));q6.displayName=LMe.displayName;function zz({name:e,onChange:t,value:r,options:n,placeholder:i}){return p.jsxs(ate,{name:e,onValueChange:t,value:r,children:[p.jsx(Q6,{children:p.jsx(lte,{placeholder:i||"Select..."})}),p.jsx(Z6,{children:(n||[]).map((s,o)=>p.jsx(q6,{value:`${o}`,children:p.jsx("div",{className:"flex items-center gap-2 [&>svg]:w-[1.2em] [&>svg]:h-[1.2em] [&>svg]:text-neutral3",children:s})},s))})]})}const Bz=["12","1","2","3","4","5","6","7","8","9","10","11"],zP=["00","15","30","45","59"],BP=["AM","PM"];function G2r({defaultValue:e,onValueChange:t,className:r}){const[n,i]=E.useState("12"),[s,o]=E.useState("00"),[a,l]=E.useState("AM");E.useEffect(()=>{if(e){const f=/^(\d{1,2}):(\d{2})(?::\d{2})?\s*(AM|PM|am|pm)?$/,m=e.match(f);if(m){let g=parseInt(m[1],10);const v=parseInt(m[2],10),b=m[3]?.toUpperCase();g>=1&&g<=12&&v>=0&&v<=59&&(i(g.toString()),o(v===0?"00":v.toString()),l(b||"AM"))}}},[e]);const c=f=>{i(f),t(`${Bz[+f]}:${s} ${a}`.trim())},u=f=>{o(zP[+f]),t(`${n}:${zP[+f]} ${a}`.trim())},d=f=>{l(BP[+f]),t(`${n}:${s} ${BP[+f]}`.trim())};return p.jsxs("div",{className:ie("flex gap-2 items-center",r),children:[p.jsx(zz,{name:"hour",value:Bz.indexOf(n).toString(),onChange:c,options:Bz}),":",p.jsx(zz,{name:"minute",value:zP.indexOf(s).toString(),onChange:u,options:zP}),p.jsx(zz,{name:"period",value:BP.indexOf(a).toString(),onChange:d,options:BP})]})}const X2r={sm:`${Ea.sm} px-2`,md:`${Ea.md} px-3`,lg:`${Ea.lg} px-3 py-2`};function y0({name:e,value:t,label:r,labelIsHidden:n=!1,className:i,testId:s,required:o,disabled:a,helpMsg:l,error:c,errorMsg:u,size:d="lg",...f}){const m=({children:g})=>n?p.jsx(vd,{children:g}):g;return p.jsxs("div",{className:ie("grid gap-2",{"grid-rows-[auto_1fr]":!n&&!l,"grid-rows-[auto_1fr_auto]":!n&&l},i),children:[p.jsx(m,{children:p.jsxs("label",{htmlFor:`input-${e}`,className:ie("text-ui-sm text-neutral3 flex justify-between items-center"),children:[r,o&&p.jsx("i",{className:"text-neutral2 text-xs",children:"(required)"})]})}),p.jsx("input",{id:`input-${e}`,name:e,value:t,className:ie("flex grow items-center cursor-pointer text-ui-md text-neutral5 border border-border1 leading-none bg-transparent w-full",SD,yS,X2r[d],"placeholder:text-neutral3 placeholder:text-ui-sm",{"cursor-not-allowed opacity-50":a,"border-red-800 focus:border-border1":c||u}),"data-testid":s,...f}),l&&p.jsx("p",{className:"text-neutral3 text-ui-sm",children:l}),u&&p.jsxs("p",{className:ie("text-ui-sm text-neutral4 flex items-center gap-2","[&>svg]:w-[1.2em] [&>svg]:h-[1.2em] [&>svg]:opacity-70 [&>svg]:text-red-400"),children:[p.jsx(Fw,{})," ",u]})]})}function LZe({onReset:e,...t}){return p.jsxs("div",{className:"relative",children:[p.jsx(y0,{labelIsHidden:!0,...t,className:"[&>input]:pl-10",style:{background:`url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='gray' viewBox='0 0 24 24'><path d='M21 20l-5.6-5.6a7 7 0 1 0-1.4 1.4L20 21zM4 10a6 6 0 1 1 12 0 6 6 0 0 1-12 0z'/></svg>") no-repeat 8px center`,backgroundSize:"1.5rem 1.5rem",paddingRight:e?"3rem":void 0}}),e&&t.value&&p.jsx("button",{type:"button",onClick:e,className:ie("absolute top-1/2 right-2 -translate-y-1/2 p-1","[&:hover>svg]:text-neutral5"),children:p.jsx(Pa,{className:"text-neutral3 w-[1rem] h-[1rem]"})})]})}function v0({name:e,value:t,label:r,className:n,required:i,disabled:s,helpMsg:o,options:a,onValueChange:l,placeholder:c="Select an option",size:u="lg"}){return p.jsxs("div",{className:ie("flex gap-2 items-center",{"grid-rows-[auto_1fr]":r,"grid-rows-[auto_1fr_auto]":o},n),children:[r&&p.jsxs("label",{className:ie("text-ui-sm text-neutral3 flex justify-between items-center shrink-0"),children:[r,i&&p.jsx("i",{className:"text-neutral2",children:"(required)"})]}),p.jsxs(ate,{name:e,value:t,onValueChange:l,disabled:s,children:[p.jsx(Q6,{id:"select-dataset",size:u,className:ie("w-full border border-border1 min-w-20 gap-2",SD,yS),children:p.jsx(lte,{placeholder:c})}),p.jsx(Z6,{children:a.map(d=>p.jsx(q6,{value:d.value,children:p.jsx("span",{className:"whitespace-nowrap truncate block",children:d.label})},d.label))})]}),o&&p.jsx("p",{className:"text-neutral3 text-ui-sm",children:o})]})}const bxe=({value:e,minValue:t,maxValue:r,defaultTimeStrValue:n,onValueChange:i,children:s,className:o,placeholder:a,...l})=>{const[c,u]=E.useState(!1);return p.jsxs(QC,{open:c,onOpenChange:u,children:[p.jsx(ZC,{asChild:!0,children:s||p.jsx(J2r,{value:e,placeholder:a,className:o,"data-testid":"datepicker-button"})}),p.jsx(vw,{className:"backdrop-blur-4xl w-auto !p-0 bg-surface4 max-w-[16.5rem]",align:"start","data-testid":"datepicker-calendar",children:p.jsx(Y2r,{value:e,minValue:t,maxValue:r,onValueChange:i,setOpenPopover:u,defaultTimeStrValue:n,...l})})]})};function VP({date:e,timeStr:t=""}){if(!ug(e))return null;if(t){const r=Mn(e,"yyyy-MM-dd"),n=new Date(`${r} ${t}`);if(ug(n))return n}return e}const Y2r=({value:e,minValue:t,maxValue:r,onValueChange:n,setOpenPopover:i,placeholder:s,className:o,defaultTimeStrValue:a,...l})=>{const[c,u]=E.useState(null),[d,f]=E.useState(e?Mn(VP({date:e,timeStr:a})||"","PP p"):""),[m,g]=E.useState(a||""),[v,b]=E.useState(e?new Date(e):void 0),w=KY(V=>{ug(V)&&(b(V),n?.(V),i?.(!1))},500),S=V=>{f(V.currentTarget.value);const L=new Date(V.currentTarget.value);w(L)},O=V=>{ug(V)?r&&V>r?(u(`The selected date should be before ${Mn(r,"PP p")}`),f("")):t&&V<t?(u(`The selected date should be after ${Mn(t,"PP p")}`),f("")):(f(Mn(V,"PP p")),u("")):(f(""),u(""))},k=new Date(d),C=ug(k),T=C&&k.getTime()!==e?.getTime(),P=V=>{if(b(V),V){const L=VP({date:V,timeStr:m});O(L||"")}else O("")},A=V=>{if(b(V),V){const L=VP({date:V,timeStr:m});O(L||"")}else O("")},R=V=>{if(g(V),C){const L=VP({date:k,timeStr:V});O(L||"")}},M=()=>{i?.(!1)},z=()=>{ug(k)&&n(k),i?.(!1)},U=()=>{n(void 0),b(void 0),f(""),g(""),i?.(!1)};return p.jsxs("div",{"aria-label":"Choose date",className:ie("relative flex flex-col",o),onKeyDown:V=>{V.stopPropagation(),V.key==="Escape"&&i?.(!1)},children:[p.jsx(y0,{type:"text",value:d,onChange:S,placeholder:s,className:"m-4 mb-0 !w-auto"}),c&&p.jsxs("div",{className:ie("text-ui-md m-4 mb-0 text-neutral3","[&>svg]:w-[1.1em] [&>svg]:h-[1.1em] [&>svg]:mt-0.5 [&>svg]:text-red-500 [&>svg]:float-left [&>svg]:mr-2"),children:[p.jsx(Lx,{})," ",c]}),p.jsx(FZe,{mode:"single",month:v,selected:v,onMonthChange:A,onSelect:P,...l}),p.jsx(G2r,{onValueChange:R,className:"m-4 mt-0 w-auto",defaultValue:e?Mn(new Date(e),"hh:mm a"):a}),p.jsxs("div",{className:"grid grid-cols-[1fr_auto] gap-2 m-4 mt-0",children:[p.jsx(Ke,{variant:"light",size:"lg",tabIndex:0,onClick:()=>{C?z():M()},children:T?"Apply":"Cancel"}),T&&p.jsx(Ke,{tabIndex:0,onClick:U,children:"Clear"})]})]})},J2r=E.forwardRef(({value:e,placeholder:t,className:r,...n},i)=>p.jsxs(Ke,{ref:i,className:ie("justify-start",r),variant:"light",size:"lg",...n,children:[p.jsx(WCe,{className:"h-4 w-4"}),e?p.jsx("span",{className:"text-white",children:Mn(e,"PP p")}):p.jsx("span",{className:"text-gray",children:t??"Pick a date"})]})),K2r=({inputProps:e,field:t,error:r,id:n})=>{const{key:i,...s}=e,[o,a]=E.useState(void 0),[l,c]=E.useState(!1);E.useEffect(()=>{if(t.default){const f=new Date(t.default);ug(f)&&a(f)}},[t]);const u=f=>{a(f),f&&s.onChange({target:{value:f.toISOString(),name:e.name}}),c(!1)},d=()=>{a(void 0),s.onChange({target:{value:"",name:e.name}}),c(!1)};return p.jsxs(QC,{open:l,onOpenChange:c,children:[p.jsx(ZC,{asChild:!0,children:p.jsxs(Ke,{id:n,variant:"light",size:"lg",className:ie("w-full",r?"border-accent2":""),children:[p.jsx(WCe,{className:"h-4 w-4"}),o?p.jsx("span",{className:"text-white",children:Mn(o,"PPP")}):p.jsx("span",{className:"text-gray",children:"Pick a date"})]})}),p.jsxs(vw,{className:"w-auto p-0 bg-surface4",align:"start",children:[p.jsx(FZe,{mode:"single",selected:o,onSelect:u,month:o,onMonthChange:a}),o&&p.jsx("div",{className:"p-3 pt-0",children:p.jsx(Ke,{variant:"light",size:"lg",className:"w-full",onClick:d,children:"Clear"})})]})]})},ePr=({field:e,inputProps:t,error:r,id:n,value:i})=>{const{key:s,...o}=t;return p.jsxs(ate,{...o,value:i,onValueChange:a=>{const l={target:{value:a,name:t.name}};o.onChange(l)},children:[p.jsx(Q6,{id:n,className:r?"border-accent2":"",children:p.jsx(lte,{placeholder:"Select an option"})}),p.jsx(Z6,{children:(e.options||[]).map(([a,l])=>p.jsx(q6,{value:a,children:l},a))})]})},tPr=({label:e,children:t})=>{const r=e!==""&&e!=="",[n,i]=E.useState(!1);return p.jsxs("div",{className:"",children:[p.jsxs("div",{className:"flex items-center",children:[r&&p.jsxs(Ye,{as:"h3",variant:"ui-sm",className:"text-neutral3 flex items-center gap-1 pb-2",children:[p.jsx(He,{size:"sm",children:p.jsx(Vv,{})}),e]}),p.jsx(Ke,{onClick:()=>i(!n),type:"button",className:"ml-auto",children:p.jsx(He,{size:"sm",children:p.jsx(Rd,{className:ie("transition-all",n?"rotate-180":"rotate-0")})})})]}),n&&p.jsx("div",{className:r?"flex flex-col gap-1 [&>*]:border-dashed [&>*]:border-l [&>*]:border-l-border1 [&>*]:pl-4":"",children:t})]})},rPr=({label:e,children:t,onAddItem:r})=>p.jsxs("div",{children:[p.jsxs("div",{className:"flex gap-2 justify-between",children:[p.jsxs(Ye,{as:"h3",variant:"ui-sm",className:"text-neutral3 pb-2 flex items-center gap-1",children:[p.jsx(He,{size:"sm",children:p.jsx(jct,{})}),e]}),p.jsx(xu,{children:p.jsxs($i,{delayDuration:0,children:[p.jsx(Ii,{asChild:!0,children:p.jsx("button",{onClick:r,type:"button",className:"text-neutral3 bg-surface3 rounded-md p-1 hover:bg-surface4 hover:text-neutral6 h-icon-sm w-icon-sm",children:p.jsx(He,{size:"sm",children:p.jsx(_0,{})})})}),p.jsx(gi,{children:"Add item"})]})})]}),p.jsx("div",{className:"flex flex-col gap-1",children:t})]}),nPr=({children:e,onRemove:t})=>p.jsxs("div",{className:"pl-4 border-l border-border1",children:[e,p.jsxs(Ke,{onClick:t,type:"button",children:[p.jsx(He,{size:"sm",children:p.jsx(tG,{})}),"Delete"]})]}),iPr=({inputProps:e,field:t,error:r,id:n})=>{const{key:i,onChange:s,...o}=e,[a,l]=E.useState(()=>Object.entries(t.default||{}).map(([g,v])=>({id:g||qo(),key:g,value:v})));E.useEffect(()=>{a.length===0&&l([{id:qo(),key:"",value:""}])},[a]);const c=E.useCallback(g=>{const v=g.reduce((b,w)=>(w.key&&(b[w.key]=w.value),b),{});s?.({target:{value:v,name:e.name}})},[s,e.name]),u=(g,v,b)=>{l(w=>w.map(S=>S.id===g?{...S,[v]:b}:S))},d=()=>{c(a)},f=()=>{const g=[...a,{id:qo(),key:"",value:""}];l(g),c(g)},m=g=>{const v=a.filter(b=>b.id!==g);v.length===0&&v.push({id:qo(),key:"",value:""}),l(v),c(v)};return p.jsxs("div",{className:"space-y-3",children:[a.map(g=>p.jsxs("div",{className:"relative space-y-2 rounded-lg border p-4",children:[p.jsx(Ke,{type:"button",className:"absolute right-2 top-2",onClick:()=>m(g.id),children:p.jsx(tG,{className:"h-4 w-4"})}),p.jsxs("div",{className:"space-y-2 pt-6",children:[p.jsx(ko,{placeholder:"Key",value:g.key,onChange:v=>u(g.id,"key",v.target.value),onBlur:d}),p.jsx(ko,{placeholder:"Value",value:g.value,onChange:v=>u(g.id,"value",v.target.value),onBlur:d})]})]},g.id)),p.jsxs(Ke,{type:"button",className:"w-full",onClick:f,children:[p.jsx(_0,{className:"mr-2 h-4 w-4"}),"Add Key-Value Pair"]})]})},sPr=({field:e,path:t})=>{const{uiComponents:r}=gJ();return p.jsx(r.ObjectWrapper,{label:H3(e),field:e,children:Object.entries(e.schema).map(([n,i])=>p.jsx(Mv,{field:i,path:[...t,i.key]},`${t.join(".")}.${i.key}`))})},oPr=({field:e,path:t})=>{const{uiComponents:r}=gJ(),{control:n}=H5(),{fields:i,append:s,remove:o}=eJt({control:n,name:t.join(".")}),a=e.schema?.[0]?.type;let l;return a==="object"?l={}:a==="array"?l=[]:l=null,p.jsx(r.ArrayWrapper,{label:H3(e),field:e,onAddItem:()=>s(l),children:i.map((c,u)=>p.jsx(r.ArrayElementWrapper,{onRemove:()=>o(u),index:u,children:p.jsx(Mv,{field:e.schema[0],path:[...t,u.toString()]})},c.id))})},Mv=({field:e,path:t})=>{const{formComponents:r,uiComponents:n}=gJ(),{register:i,formState:{errors:s},getValues:o}=H5(),a=t.join("."),l=NJt(s,t)?.message,c=o(a),u=e.fieldConfig?.fieldWrapper||n.FieldWrapper;let d=()=>p.jsx(n.ErrorMessage,{error:`[AutoForm Configuration Error] No component found for type "${e.type}" nor a fallback`});return e.type==="array"?d=oPr:e.type==="object"?d=sPr:e.type in r?d=r[e.type]:"fallback"in r&&(d=r.fallback),p.jsx(u,{label:H3(e),error:l,id:a,field:e,children:p.jsx(d,{label:H3(e),field:e,value:c,error:l,id:a,path:t,inputProps:{required:e.required,error:l,key:`${a}-input`,...e.fieldConfig?.inputProps,...i(a)}},a)})},aPr=({field:e,inputProps:t})=>{const r=t.name?.split(".")??[];return e.schema?.map((n,i)=>p.jsxs("div",{children:[p.jsx(Mv,{field:n,path:r},r.join(".")),i<(e.schema?.length??0)-1&&p.jsx(Ye,{variant:"ui-xs",className:"text-center",children:"OR"})]},n.key))},lPr=({field:e,path:t})=>{const{watch:r}=H5(),n=t.join("."),i=r(n),o=(e.schema?.flatMap(f=>f.schema||[])||[])?.filter(f=>f.fieldConfig?.customData?.isLiteral)||[],a=o[0],l=o?.reduce((f,m)=>{const g=(m.fieldConfig?.customData?.literalValues??[]).map(v=>[v,v]);return f.options?.push(...g),f},{key:a.key,required:a.required,type:"select",default:a.default,description:a.description,options:[],fieldConfig:a.fieldConfig}),c=e.schema?.reduce((f,m)=>{const g=m.schema?.find(w=>w.fieldConfig?.customData?.isLiteral),v=g?.fieldConfig?.customData?.literalValues?.[0],b=m.schema?.filter(w=>w.key!==g?.key)??[];return v&&(f[v]=b),f},{}),u=e.schema?.filter(f=>!f.schema?.find(g=>g.fieldConfig?.customData?.isLiteral)),d=i?.[l.key];return p.jsxs("div",{children:[p.jsx(Mv,{field:l,path:[...t,l.key]},`${n}.${l.key}`),d&&c?.[d]&&c[d].map(f=>p.jsx(Mv,{field:f,path:[...t,f.key]},`${n}.${f.key}`)),u&&u.map(f=>p.jsx(Mv,{field:f,path:[...t,f.key]},`${n}.${f.key}`))]},e.key)};function E4(e){const t={};for(const r in e){const n=e[r];if(![null,void 0,"",[],{}].includes(n))if(Array.isArray(n)){const s=n.map(o=>{if(typeof o=="object"){const a=E4(o);return Object.keys(a).length>0?a:null}return o}).filter(o=>o!==null);s.length>0&&(t[r]=s)}else if(typeof n=="object"){const i=E4(n);Object.keys(i).length>0&&(t[r]=i)}else t[r]=n}return t}function kg(e){return Function("z",`"use strict";return (${e});`)(Pk)}function cPr({schema:e,onSubmit:t=()=>{},defaultValues:r,values:n,children:i,uiComponents:s,formComponents:o,withSubmit:a=!1,onFormInit:l=()=>{},formProps:c={}}){const u=nJt(e),d=tJt({defaultValues:{...iJt(e),...r},values:n});E.useEffect(()=>{l&&l(d)},[l,d]);const f=async m=>{const g=E4(m),v=e.validateSchema(g);if(v.success)await t(v.data,d);else{d.clearErrors();let b=!1;v.errors?.forEach(w=>{const S=w.path.join(".");d.setError(S,{type:"custom",message:w.message},{shouldFocus:!b}),b=!0;const O=w.path?.slice?.(0,-1);O?.length>0&&d.setError(O.join("."),{type:"custom",message:w.message})})}};return p.jsx(MYt,{...d,children:p.jsx(pJt,{value:{schema:u,uiComponents:s,formComponents:o},children:p.jsxs(s.Form,{onSubmit:d.handleSubmit(f),...c,children:[u.fields.map(m=>p.jsx(Mv,{field:m,path:[m.key]},m.key)),i,a&&p.jsx(s.SubmitButton,{children:"Submit"})]})})})}const uPr={Form:L2r,FieldWrapper:B2r,ErrorMessage:V2r,SubmitButton:U2r,ObjectWrapper:tPr,ArrayWrapper:rPr,ArrayElementWrapper:nPr};function dPr({uiComponents:e,formComponents:t,readOnly:r,...n}){return p.jsx(cPr,{...n,uiComponents:{...uPr,...e},formComponents:{string:i=>p.jsx(Z2r,{...i,inputProps:{...i.inputProps,readOnly:r}}),number:i=>p.jsx(q2r,{...i,inputProps:{...i.inputProps,readOnly:r}}),boolean:i=>p.jsx(H2r,{...i,inputProps:{...i.inputProps,readOnly:r}}),date:i=>p.jsx(K2r,{...i,inputProps:{...i.inputProps,readOnly:r}}),select:i=>p.jsx(ePr,{...i,inputProps:{...i.inputProps,readOnly:r}}),record:i=>p.jsx(iPr,{...i,inputProps:{...i.inputProps,readOnly:r}}),union:i=>p.jsx(aPr,{...i,inputProps:{...i.inputProps,readOnly:r}}),"discriminated-union":i=>p.jsx(lPr,{...i,inputProps:{...i.inputProps,readOnly:r}}),...t}})}const fPr=jZe("text-sm leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),kf=E.forwardRef(({className:e,...t},r)=>p.jsx(fje,{ref:r,className:ie(fPr(),e),...t}));kf.displayName=fje.displayName;function pPr(e,t){if(t?.fieldType)return t.fieldType;if(e instanceof Jf||e instanceof hT)return"object";if(e instanceof Dw)return"number";if(e instanceof Pw)return"boolean";if(e instanceof Tw)return(e._zod.def.checks||[]).some(i=>i._zod.def.check==="string_format"&&i._zod.def.format==="datetime")?"date":"string";if(e instanceof zv||e instanceof _Q)return"select";if(e instanceof $w)return"array";if(e instanceof gN)return"record";if(e instanceof pT)return e._zod.def.options.every(i=>"shape"in i._zod.def?Object.values(i._zod.def.shape).some(s=>s instanceof Ak):!1)?"discriminated-union":"union";if(e instanceof yW)return"discriminated-union";if(e instanceof Ak){const r=e._zod?.def?.values,n=e._def?.value,i=r!==void 0?Array.isArray(r)?r[0]:r:n;return typeof i=="number"?"number":typeof i=="boolean"?"boolean":"string"}return"string"}function Sk(e){if(e instanceof Pk.core.$ZodDefault)return e._zod.def.defaultValue;if(e instanceof Pk.core.$ZodLiteral){const t=e._zod.def.values;return Array.isArray(t)?t[0]:t}else{if("innerType"in e._zod.def)return Sk(e._zod.def.innerType);if("shape"in e._zod.def)return X$(e);if("left"in e._zod.def&&"right"in e._zod.def){const t=e._zod.def.left,r=e._zod.def.right,n="shape"in t?X$(t):Sk(t),i="shape"in r?X$(r):Sk(r);return{...n,...i}}}}function X$(e){const t=e._zod.def.shape,r={};for(const[n,i]of Object.entries(t)){const s=Sk(i);s!==void 0&&(r[n]=s)}return r}function Xm(e,t){const r=qZ(t),n=hje(t);let i=pPr(r,n);const s=Sk(t),o=r._zod.def?.entries;let a=[];o&&(Array.isArray(o)?a=o.map(d=>[d,d]):a=Object.entries(o));let l=[];if((r instanceof As||r instanceof Jf)&&(l=Object.entries(r.shape).map(([d,f])=>Xm(d,f))),(r instanceof iC||r instanceof pT)&&(l=Object.entries(r.def.options).map(([d,f])=>Xm(d,f))),r instanceof sC||r instanceof hT){const d="left"in r.def?r.def.left:null,f="right"in r.def?r.def.right:null;let m=[],g=[];if(d)if("shape"in d&&d.shape)g=Object.entries(d.shape).map(([v,b])=>Xm(v,b));else{const v=Xm(e,d);g=v.schema??[v],i=v.type}if(f)if("shape"in f&&f.shape)m=Object.entries(f.shape).map(([v,b])=>Xm(v,b));else{const v=Xm(e,f);m=v.schema??[v],i=v.type}l=[...g,...m]}(r instanceof ld||r instanceof $w)&&(l=[Xm("0",r._zod.def.element)]);const c=r instanceof Ak,u=c?r._zod.def.values:void 0;return{key:e,type:i,required:!t.optional(),default:s,description:r.description,fieldConfig:c||Object.keys(n??{})?.length>0?{...n,customData:{...n?.customData??{},...c?{isLiteral:c,literalValues:u}:{}}}:void 0,options:a,schema:l}}function qZ(e){return"innerType"in e._zod.def?qZ(e._zod.def.innerType):"schema"in e._zod.def?qZ(e._zod.def.schema):e}function hPr(e){const t=e.shape;return{fields:Object.entries(t).map(([n,i])=>Xm(n,i))}}class mPr extends zJt{_schema;constructor(t){super(t),this._schema=t}getDefaultValues(){return X$(this._schema)}validateSchema(t){const r=E4(t);try{const n=this._schema.safeParse(r);return n.success?{success:!0,data:n.data}:{success:!1,errors:n.error.issues.map(i=>({path:i.path,message:i.message}))}}catch(n){throw n}}parseSchema(){return hPr(this._schema)}}function HZ(e){return e instanceof Jf?Object.keys(e.shape).length===0:e instanceof hT?HZ(e._def.left)||HZ(e._def.right):!1}function zZe({schema:e,onSubmit:t,defaultValues:r,isSubmitLoading:n,submitButtonLabel:i,className:s,readOnly:o,children:a}){const l=!(e instanceof Jf);if(!e)return console.error("no form schema found"),null;const c=f=>HZ(f)?Pk.object({}):l?Pk.object({"":f}):f,d={schema:new mPr(c(e)),onSubmit:async f=>{await t?.(l?f[""]||{}:f)},defaultValues:l?r?{"":r}:void 0:r,formProps:{className:s,noValidate:!0},uiComponents:{SubmitButton:({children:f})=>t?p.jsx(Ke,{variant:"light",className:"w-full",size:"md",disabled:n,children:n?p.jsx(He,{children:p.jsx(Sh,{className:"animate-spin"})}):i||f}):null},formComponents:{Label:({value:f})=>p.jsx(kf,{className:"text-sm font-normal",children:f})},withSubmit:!0,children:a};return p.jsx(dPr,{...d,readOnly:o})}const cte=E.forwardRef(({className:e,...t},r)=>p.jsx(Fje,{className:ie("grid gap-2",e),...t,ref:r}));cte.displayName=Fje.displayName;const fg=E.forwardRef(({className:e,...t},r)=>p.jsx(Lje,{ref:r,className:ie("aspect-square h-4 w-4 rounded-full border border-neutral6 text-neutral6 disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:p.jsx($Kt,{className:"flex items-center justify-center",children:p.jsx(Eut,{className:"h-2.5 w-2.5 fill-current text-current"})})}));fg.displayName=Lje.displayName;const WZ=({schema:e,defaultValues:t,withoutSubmit:r,isSubmitLoading:n,submitButtonLabel:i,onSubmit:s,children:o})=>{const[a,l]=E.useState("form");return p.jsxs("div",{children:[p.jsx(cte,{disabled:n,value:a,onValueChange:c=>l(c),className:"pb-4",children:p.jsxs("div",{className:"flex flex-row gap-4",children:[p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx(fg,{value:"form",id:"form"}),p.jsx(kf,{htmlFor:"form",className:"!text-neutral3 text-ui-sm",children:"Form"})]}),p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx(fg,{value:"json",id:"json"}),p.jsx(kf,{htmlFor:"json",className:"!text-neutral3 text-ui-sm",children:"JSON"})]})]})}),p.jsx("div",{className:ie({"opacity-50 pointer-events-none":n}),children:a==="form"?p.jsx(zZe,{schema:e,defaultValues:t,isSubmitLoading:n,submitButtonLabel:i,onSubmit:r?void 0:s,children:o}):p.jsx(gPr,{schema:e,defaultValues:t,isSubmitLoading:n,submitButtonLabel:i,onSubmit:s,withoutSubmit:r,children:o})})]})},gPr=({schema:e,defaultValues:t,isSubmitLoading:r,submitButtonLabel:n,onSubmit:i,withoutSubmit:s,children:o})=>{const[a,l]=E.useState([]),[c,u]=E.useState(()=>JSON.stringify(t??{},null,2)),d=()=>{l([]);try{const m=e.safeParse(JSON.parse(c));m.success?i(m.data):l(m.error.issues.map(g=>`[${g.path.join(".")}] ${g.message}`))}catch{l(["Invalid JSON provided"])}};let f={};try{f=JSON.parse(c)}catch{f={}}return p.jsxs("div",{className:"flex flex-col gap-4",children:[a.length>0&&p.jsxs("div",{className:"border border-accent2 rounded-lg p-2",children:[p.jsxs(Ye,{as:"p",variant:"ui-md",className:"text-accent2 font-semibold",children:[a.length," errors found"]}),p.jsx("ul",{className:"list-disc list-inside",children:a.map((m,g)=>p.jsx("li",{className:"text-ui-sm text-accent2",children:m},g))})]}),p.jsx(Hc,{data:f,onChange:u}),o,s?null:p.jsx(Ke,{variant:"light",onClick:d,className:"w-full",size:"lg",children:r?p.jsx(Sh,{className:"animate-spin"}):n})]})},qC=async e=>await zje.format(e,{semi:!1,parser:"json",printWidth:80,tabWidth:2,plugins:[B9e,O8e]}),HC=e=>{try{const t=JSON.parse(e);return!!t&&typeof t=="object"}catch{return!1}},r_="text-neutral3 hover:text-neutral6",xxe=e=>{try{return e==null?"{}":JSON.stringify(e,null,2)}catch{return"{}"}},Vz=({label:e,value:t,onChange:r,helperText:n,exampleCode:i})=>{const s=X0(),{handleCopy:o}=Gf({text:t}),{handleCopy:a}=Gf({text:i??"{}"}),[l,c]=E.useState(null),[u,d]=E.useState(!1),[f,m]=E.useState(!1),g=async()=>{if(c(null),!t.trim()){r("{}");return}if(!HC(t)){c("Invalid JSON");return}try{const v=await qC(t);r(v)}catch{c("Unable to format JSON")}};return p.jsxs(p.Fragment,{children:[f&&p.jsxs("div",{className:"border border-border1 rounded-lg bg-surface3 p-3 space-y-2",children:[p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsxs(Ye,{as:"p",variant:"ui-sm",className:"text-neutral3",children:["Example ",e]}),p.jsxs($i,{children:[p.jsx(Ii,{asChild:!0,children:p.jsx("button",{type:"button",onClick:a,className:r_,"aria-label":"Copy example JSON",children:p.jsx(He,{children:p.jsx(nu,{})})})}),p.jsx(gi,{children:"Copy example JSON"})]})]}),p.jsx(su,{value:i,theme:s,extensions:[Gc],className:"h-[150px] w-full overflow-y-scroll bg-surface3 rounded-lg overflow-scroll p-3"})]}),p.jsxs(z6,{className:"border border-border1 rounded-lg bg-surface3",open:u,onOpenChange:d,children:[p.jsxs("div",{className:"flex items-center justify-between w-full px-3",children:[p.jsxs("div",{children:[p.jsx(Ye,{as:"label",variant:"ui-md",className:"text-neutral3",children:e}),n&&p.jsx(Ye,{variant:"ui-xs",className:"text-neutral3",children:n})]}),p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsxs($i,{children:[p.jsx(Ii,{asChild:!0,children:p.jsx("button",{type:"button",onClick:g,className:r_,"aria-label":"Format JSON",children:p.jsx(He,{children:p.jsx(Vv,{})})})}),p.jsx(gi,{children:"Format JSON"})]}),p.jsxs($i,{children:[p.jsx(Ii,{asChild:!0,children:p.jsx("button",{type:"button",onClick:o,className:r_,"aria-label":"Copy JSON",children:p.jsx(He,{children:p.jsx(nu,{})})})}),p.jsx(gi,{children:"Copy JSON"})]}),i&&p.jsxs($i,{children:[p.jsx(Ii,{asChild:!0,children:p.jsx("button",{type:"button",onClick:()=>m(!f),className:r_,"aria-label":f?"Hide example JSON":"View example JSON",children:p.jsx(He,{children:f?p.jsx(Fut,{}):p.jsx(zx,{})})})}),p.jsx(gi,{children:"View example JSON"})]}),p.jsx(B6,{asChild:!0,children:p.jsx("button",{type:"button",className:r_,"aria-label":u?`Collapse ${e}`:`Expand ${e}`,children:p.jsx(He,{className:ie("transition-transform",u?"rotate-0":"-rotate-90"),children:p.jsx(Rd,{})})})})]})]}),p.jsxs(V6,{className:"space-y-2",children:[p.jsx(su,{value:t,onChange:r,theme:s,extensions:[Gc],className:"h-[260px] overflow-y-scroll bg-surface3 rounded-lg overflow-hidden p-3"}),l&&p.jsx(Ye,{variant:"ui-sm",className:"text-accent2",children:l})]})]})]})},Uz=({stepKey:e,closeModal:t,isPerStepRun:r,isContinueRun:n,buttonText:i="Start time travel",inputData:s})=>{const{result:o,workflow:a,timeTravelWorkflowStream:l,runId:c,workflowId:u,setDebugMode:d}=E.useContext(mp),{requestContext:f}=wi(),m=s?{payload:s}:o?.steps?.[e],[g,v]=E.useState(()=>"{}"),[b,w]=E.useState(()=>"{}"),[S,O]=E.useState(()=>"{}"),[k,C]=E.useState(null),[T,P]=E.useState(!1),A=a?.allSteps?.[e],{schema:R}=E.useMemo(()=>{if(!A?.inputSchema)return{schema:Dk(f1(),dI())};try{const z=$v(A.inputSchema),U=a?.stateSchema?kg(Sg($v(a.stateSchema))):null,V=kg(Sg(z));return{schema:U?Iw({inputData:V,initialState:U.optional()}):V,schemaError:null}}catch(z){return console.error("Failed to parse step schema",z),{schema:Dk(f1(),dI())}}},[A?.inputSchema,a?.stateSchema]),M=async z=>{C(null),P(!0);try{const U=g.trim()?JSON.parse(g):{},V=b.trim()?JSON.parse(b):{},L=S.trim()?JSON.parse(S):{},{initialState:Q,inputData:F}=z??{},N=a?.stateSchema?F:z,I={runId:c,workflowId:u,step:e,inputData:N,initialState:Q,resumeData:Object.keys(U)?.length>0?U:void 0,context:Object.keys(V)?.length>0?V:void 0,nestedStepsContext:Object.keys(L)?.length>0?L:void 0,requestContext:f,...n?{perStep:!1}:{}};n&&d(!1),l(I),t()}catch(U){console.error("Invalid JSON provided",U),C(U instanceof Error?U.message:"Error time traveling workflow")}finally{P(!1)}};return p.jsx(xu,{children:p.jsxs("div",{className:"space-y-4",children:[p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsx(Ye,{as:"p",variant:"ui-lg",className:"text-neutral3",children:"Input data"}),p.jsxs(Ye,{variant:"ui-xs",className:"text-neutral3",children:["Step: ",e]})]}),p.jsx(WZ,{schema:R,defaultValues:m?.payload,isSubmitLoading:T,submitButtonLabel:i,onSubmit:M,children:p.jsxs("div",{className:"space-y-4 pb-4",children:[r||n?null:p.jsxs(p.Fragment,{children:[p.jsx(Vz,{label:"Resume Data (JSON)",value:g,onChange:v,helperText:"Provide any resume payloads that should be passed to the step."}),p.jsx(Vz,{label:"Context (JSON)",value:b,onChange:w,helperText:"Only include top level steps (no nested workflow steps) that are required in the time travel execution.",exampleCode:xxe({stepId:{status:"success",payload:{value:"test value"},output:{value:"test output"}}})}),p.jsx(Vz,{label:"Nested Step Context (JSON)",value:S,onChange:O,helperText:"Includes nested workflow steps that are required in the time travel execution.",exampleCode:xxe({nestedWorkflowId:{stepId:{status:"success",payload:{value:"test value"},output:{value:"test output"}}}})})]}),k&&p.jsx(Ye,{variant:"ui-sm",className:"text-accent2",children:k})]})})]})})},ute=({input:e,output:t,resumeData:r,suspendOutput:n,error:i,tripwire:s,mapConfig:o,stepName:a,stepId:l,onShowNestedGraph:c,status:u,stepKey:d,stepsFlow:f})=>{const[m,g]=E.useState(!1),[v,b]=E.useState(!1),[w,S]=E.useState(!1),[O,k]=E.useState(!1),[C,T]=E.useState(!1),[P,A]=E.useState(!1),[R,M]=E.useState(!1),[z,U]=E.useState(!1),{withoutTimeTravel:V,debugMode:L,result:Q,runSnapshot:F,timeTravelWorkflowStream:N,runId:I,workflowId:H,setDebugMode:B}=E.useContext(mp),{showMapConfig:J,stepDetail:q,closeStepDetail:j}=L6(),{requestContext:W}=wi(),K=Q?.status??F?.status,ne="max-w-4xl w-full",X=!V&&d&&!o&&K!=="running"&&K!=="paused",te=d&&L&&K==="paused",ue=E.useMemo(()=>{if(!d||!te)return;const lt=f?.[d]??[];if(lt.length===0)return;if(lt.length>1)return{hasMultiSteps:!0,input:lt.reduce((ur,le)=>(Q?.steps?.[le]?.status==="success"&&(ur[le]=Q?.steps?.[le].output),ur),{})};const wr=lt[0];if(Q?.steps?.[wr]?.status==="success")return{hasMultiSteps:!1,input:Q?.steps?.[wr].output}},[d,f,te,Q]),de=te&&ue&&!Q?.steps[d],De=q?.type==="map-config"&&q?.stepName===a,we=q?.type==="nested-graph"&&q?.stepName===a,Ae="ring-2 ring-accent1 ring-offset-1 ring-offset-transparent",Fe=()=>{De?j():J({stepName:a,stepId:l,mapConfig:o})},rt=()=>{we?j():c?.()},yt=lt=>{const wr={runId:I,workflowId:H,step:d,inputData:ue?.hasMultiSteps?void 0:ue?.input,requestContext:W,...lt?{perStep:!1}:{},...ue?.hasMultiSteps?{context:Object.keys(ue.input)?.reduce((ur,le)=>(ur[le]={output:ue.input[le]},ur),{})}:{}};lt&&B(!1),N(wr)};return p.jsx(p.Fragment,{children:(e||t||i||s||o||r||c||X||de)&&p.jsxs("div",{className:ie("flex flex-wrap items-center bg-surface4 border-t border-border1 px-2 py-1 gap-2 rounded-b-lg",u==="success"&&"bg-accent1Dark",u==="failed"&&"bg-accent2Dark",u==="tripwire"&&"bg-amber-900/40 border-amber-500/20",u==="suspended"&&"bg-accent3Dark",u==="waiting"&&"bg-accent5Dark",u==="running"&&"bg-accent6Dark"),children:[c&&p.jsx(Ke,{onClick:rt,className:ie(we&&Ae),size:"sm",children:"View nested graph"}),X&&p.jsxs(p.Fragment,{children:[p.jsx(Ke,{onClick:()=>A(!0),size:"sm",children:"Time travel"}),p.jsx(Uo,{open:P,onOpenChange:A,children:p.jsxs(bo,{className:ne,children:[p.jsxs(xo,{children:[p.jsxs(So,{children:["Time travel to ",d]}),p.jsx(Oo,{children:"Time travel to a specific workflow step"})]}),p.jsx(wo,{className:"max-h-[600px]",children:p.jsx(Uz,{stepKey:d,closeModal:()=>A(!1)})})]})})]}),de&&p.jsxs(p.Fragment,{children:[p.jsx(Ke,{onClick:()=>{o?yt():U(!0)},size:"sm",children:"Run step"}),p.jsx(Uo,{open:z,onOpenChange:U,children:p.jsxs(bo,{className:ne,children:[p.jsxs(xo,{children:[p.jsxs(So,{children:["Run step ",d]}),p.jsx(Oo,{children:"Run a specific workflow step"})]}),p.jsx(wo,{className:"max-h-[600px]",children:p.jsx(Uz,{stepKey:d,closeModal:()=>U(!1),isPerStepRun:!0,buttonText:"Run step",inputData:ue?.input})})]})}),p.jsx(Ke,{onClick:()=>{o?yt(!0):M(!0)},size:"sm",children:"Continue run"}),p.jsx(Uo,{open:R,onOpenChange:M,children:p.jsxs(bo,{className:ne,children:[p.jsxs(xo,{children:[p.jsxs(So,{children:["Continue run ",d]}),p.jsx(Oo,{children:"Continue the workflow run from this step"})]}),p.jsx(wo,{className:"max-h-[600px]",children:p.jsx(Uz,{stepKey:d,closeModal:()=>M(!1),isContinueRun:!0,buttonText:"Continue run",inputData:ue?.input})})]})})]}),o&&p.jsx(Ke,{onClick:Fe,className:ie(De&&Ae),size:"sm",children:"Map config"}),e&&p.jsxs(p.Fragment,{children:[p.jsx(Ke,{onClick:()=>g(!0),size:"sm",children:"Input"}),p.jsx(Uo,{open:m,onOpenChange:g,children:p.jsxs(bo,{className:ne,children:[p.jsxs(xo,{children:[p.jsxs(So,{children:[a," input"]}),p.jsx(Oo,{children:"View the input data for this step"})]}),p.jsx(wo,{children:p.jsx(mx,{data:e})})]})})]}),r&&p.jsxs(p.Fragment,{children:[p.jsx(Ke,{onClick:()=>S(!0),size:"sm",children:"Resume data"}),p.jsx(Uo,{open:w,onOpenChange:S,children:p.jsxs(bo,{className:ne,children:[p.jsxs(xo,{children:[p.jsxs(So,{children:[a," resume data"]}),p.jsx(Oo,{children:"View the resume data for this step"})]}),p.jsx(wo,{children:p.jsx(mx,{data:r})})]})})]}),(t??n)&&p.jsxs(p.Fragment,{children:[p.jsx(Ke,{onClick:()=>b(!0),size:"sm",children:"Output"}),p.jsx(Uo,{open:v,onOpenChange:b,children:p.jsxs(bo,{className:ne,children:[p.jsxs(xo,{children:[p.jsxs(So,{children:[a," output"]}),p.jsx(Oo,{children:"View the output data for this step"})]}),p.jsx(wo,{children:p.jsx(mx,{data:t??n})})]})})]}),i&&p.jsxs(p.Fragment,{children:[p.jsx(Ke,{onClick:()=>k(!0),size:"sm",children:"Error"}),p.jsx(Uo,{open:O,onOpenChange:k,children:p.jsxs(bo,{className:ne,children:[p.jsxs(xo,{children:[p.jsxs(So,{children:[a," error"]}),p.jsx(Oo,{children:"View the error details for this step"})]}),p.jsx(wo,{children:p.jsx(mx,{data:i})})]})})]}),s&&p.jsxs(p.Fragment,{children:[p.jsx(Ke,{onClick:()=>T(!0),className:"text-amber-400 hover:text-amber-300",size:"sm",children:"Tripwire"}),p.jsx(Uo,{open:C,onOpenChange:T,children:p.jsxs(bo,{className:ne,children:[p.jsxs(xo,{children:[p.jsxs(So,{children:[a," tripwire"]}),p.jsx(Oo,{children:"View the tripwire details for this step"})]}),p.jsx(wo,{children:p.jsx(mx,{data:{reason:s.reason,retry:s.retry,metadata:s.metadata,processorId:s.processorId}})})]})})]})]})})};function BZe({data:e}){const{conditions:t,previousStepId:r,nextStepId:n,withoutTopHandle:i}=e,[s,o]=E.useState(!0),[a,l]=E.useState(!1),c=t[0]?.type,u=(t.some(S=>S.fnString)||t?.length>1)&&c!=="else",{steps:d}=kD(),f=d[r],m=d[n],g=f?.status==="failed"&&f?.tripwire!==void 0,v=g?"tripwire":f?.status,{icon:b,color:w}=gxe(c);return p.jsxs(p.Fragment,{children:[!i&&p.jsx(gl,{type:"target",position:jt.Top,style:{visibility:"hidden"}}),p.jsxs("div",{"data-workflow-node":!0,"data-workflow-step-status":v,"data-testid":"workflow-condition-node",className:ie("bg-surface3 rounded-lg w-[300px] border border-border1",v==="success"&&m&&"bg-accent1Darker",v==="failed"&&m&&"bg-accent2Darker",v==="tripwire"&&m&&"bg-amber-950/40 border-amber-500/30",!f&&!!m?.status&&"bg-accent1Darker"),children:[p.jsxs(z6,{open:u?s:!0,onOpenChange:S=>{u&&o(S)},children:[p.jsxs(B6,{className:"flex items-center justify-between w-full px-3 py-2",children:[p.jsx(sr,{icon:b?p.jsx(b,{className:"text-current",...w?{style:{color:w}}:{}}):null,children:c?.toUpperCase()}),u&&p.jsx(He,{children:p.jsx(Rd,{className:ie("transition-transform text-neutral3",{"transform rotate-180":s})})})]}),c==="else"?null:p.jsx(V6,{className:"flex flex-col gap-2 pb-2",children:t.map((S,O)=>{const k=S.conj||c,{icon:C,color:T}=gxe(k),P=O===0?null:p.jsx(sr,{icon:C?p.jsx(C,{className:"text-current",...T?{style:{color:T}}:{}}):null,children:S.conj?.toLocaleUpperCase()||"WHEN"});return S.fnString?p.jsxs("div",{className:"px-3",children:[p.jsx(cme,{theme:oQ.oneDark,code:String(S.fnString).trim(),language:"javascript",children:({className:A,style:R,tokens:M,getLineProps:z,getTokenProps:U})=>p.jsx("pre",{className:ie("relative font-mono p-3 w-full cursor-pointer rounded-lg text-xs !bg-surface4 whitespace-pre-wrap break-words",A,v==="success"&&m&&"!bg-accent1Dark",v==="failed"&&m&&"!bg-accent2Dark",v==="tripwire"&&m&&"!bg-amber-900/40"),onClick:()=>l(!0),style:R,children:M.map((V,L)=>p.jsxs("div",{...z({line:V}),children:[p.jsx("span",{className:"inline-block mr-2 text-neutral3",children:L+1}),V.map((Q,F)=>p.jsx("span",{...U({token:Q})},F))]},L))})}),p.jsx(Uo,{open:a,onOpenChange:l,children:p.jsxs(bo,{className:"max-w-[30rem]",children:[p.jsxs(xo,{children:[p.jsx(So,{className:"sr-only",children:"Condition Function"}),p.jsx(Oo,{children:"View the condition function code"})]}),p.jsx(wo,{children:p.jsx(_D,{className:"w-full",maxHeight:"400px",children:p.jsx(cme,{theme:oQ.oneDark,code:String(S.fnString).trim(),language:"javascript",children:({className:A,style:R,tokens:M,getLineProps:z,getTokenProps:U})=>p.jsx("pre",{className:`${A} relative font-mono text-sm overflow-x-auto p-3 w-full rounded-lg mt-2 dark:bg-zinc-800`,style:{...R,backgroundColor:"#121212",padding:"0 0.75rem 0 0"},children:M.map((V,L)=>p.jsxs("div",{...z({line:V}),children:[p.jsx("span",{className:"inline-block mr-2 text-neutral3",children:L+1}),V.map((Q,F)=>p.jsx("span",{...U({token:Q})},F))]},L))})})})})]})})]},`${S.fnString}-${O}`):p.jsx(E.Fragment,{children:S.ref?.step?p.jsxs("div",{className:"flex items-center gap-1",children:[P,p.jsxs(Ye,{variant:"ui-xs",className:" text-neutral3 flex-1",children:[S.ref.step.id||S.ref.step,"'s ",S.ref.path," ",Object.entries(S.query).map(([A,R])=>`${A} ${String(R)}`)]})]}):null},`${S.ref?.path}-${O}`)})})]}),p.jsx(ute,{stepName:n,input:f?.output,mapConfig:e.mapConfig,tripwire:g?f?.tripwire:void 0,status:m?v:void 0})]}),p.jsx(gl,{type:"source",position:jt.Bottom,style:{visibility:"hidden"}})]})}const yPr=(e,t)=>Number(e.toPrecision(t)),VZe=({startedAt:e,endedAt:t})=>{const[r,n]=E.useState(e);E.useEffect(()=>{const s=setInterval(()=>{n(Date.now())},100);return()=>clearInterval(s)},[e]);const i=t?t-e:r-e;return p.jsxs("span",{className:"text-xs text-neutral3",children:[yPr(i,3),"ms"]})};function UZe({data:e,parentWorkflowName:t,stepsFlow:r}){const{steps:n}=kD(),{label:i,stepId:s,description:o,withoutTopHandle:a,withoutBottomHandle:l,mapConfig:c,duration:u,date:d,isParallel:f,canSuspend:m,isForEach:g}=e,v=t?`${t}.${s||i}`:s||i,b=n[v],w=b?.status==="failed"&&b?.tripwire!==void 0,S=w?"tripwire":b?.status,{isSleepNode:O,isForEachNode:k,isMapNode:C,hasSpecialBadge:T}=NZe({duration:u,date:d,isForEach:g,mapConfig:c,canSuspend:m,isParallel:f});return p.jsxs(p.Fragment,{children:[!a&&p.jsx(gl,{type:"target",position:jt.Top,style:{visibility:"hidden"}}),p.jsxs("div",{"data-workflow-node":!0,"data-workflow-step-status":S??"idle","data-testid":"workflow-default-node",className:ie("bg-surface3 rounded-lg w-[274px] border border-border1",T?"pt-0":"pt-2",S==="success"&&"bg-accent1Darker",S==="failed"&&"bg-accent2Darker",S==="tripwire"&&"bg-amber-950/40 border-amber-500/30",S==="suspended"&&"bg-accent3Darker",S==="waiting"&&"bg-accent5Darker",S==="running"&&"bg-accent6Darker"),children:[T&&p.jsxs("div",{className:"px-3 pt-2 pb-1 flex gap-1.5 flex-wrap",children:[O&&p.jsx(sr,{icon:d?p.jsx(Gs.sleepUntil,{className:"text-current",style:{color:gs.sleep}}):p.jsx(Gs.sleep,{className:"text-current",style:{color:gs.sleep}}),children:d?"SLEEP UNTIL":"SLEEP"}),m&&p.jsx(sr,{icon:p.jsx(Gs.suspend,{className:"text-current",style:{color:gs.suspend}}),children:"SUSPEND/RESUME"}),f&&p.jsx(sr,{icon:p.jsx(Gs.parallel,{className:"text-current",style:{color:gs.parallel}}),children:"PARALLEL"}),k&&p.jsx(sr,{icon:p.jsx(Gs.forEach,{className:"text-current",style:{color:gs.forEach}}),children:"FOREACH"}),C&&p.jsx(sr,{icon:p.jsx(Gs.map,{className:"text-current",style:{color:gs.map}}),children:"MAP"})]}),p.jsxs("div",{className:ie("flex items-center gap-2 px-3",!o&&"pb-2"),children:[p.jsxs(He,{children:[S==="tripwire"&&p.jsx(OT,{className:"text-amber-400"}),S==="failed"&&p.jsx(tte,{className:"text-accent2"}),S==="success"&&p.jsx(ete,{className:"text-accent1"}),S==="suspended"&&p.jsx(lTe,{className:"text-accent3"}),S==="waiting"&&p.jsx(JW,{className:"text-accent5"}),S==="running"&&p.jsx(Sh,{className:"text-accent6 animate-spin"}),!b&&p.jsx(YW,{className:"text-neutral2"})]}),p.jsxs(Ye,{variant:"ui-lg",className:"text-neutral6 font-medium inline-flex items-center gap-1 justify-between w-full",children:[i," ",b?.startedAt&&p.jsx(VZe,{startedAt:b.startedAt,endedAt:b.endedAt})]})]}),o&&p.jsx(Ye,{variant:"ui-sm",className:"text-neutral3 px-3 pb-2",children:o}),u&&p.jsxs(Ye,{variant:"ui-sm",className:"text-neutral3 px-3 pb-2",children:["sleeps for ",p.jsxs("strong",{children:[u,"ms"]})]}),d&&p.jsxs(Ye,{variant:"ui-sm",className:"text-neutral3 px-3 pb-2",children:["sleeps until ",p.jsx("strong",{children:new Date(d).toLocaleString()})]}),p.jsx(ute,{stepName:i,stepId:s,input:b?.input,resumeData:b?.resumeData,output:b?.output,suspendOutput:b?.suspendOutput,error:w?void 0:b?.error,tripwire:w?b?.tripwire:void 0,mapConfig:c,status:S,stepKey:v,stepsFlow:r})]}),!l&&p.jsx(gl,{type:"source",position:jt.Bottom,style:{visibility:"hidden",color:"red"}})]})}function QZe({data:e}){const{steps:t}=e,[r,n]=E.useState(!0);return p.jsxs(z6,{open:r,onOpenChange:n,className:ie("bg-surface4 rounded-md w-[274px] flex flex-col p-2 gap-2"),children:[p.jsx(gl,{type:"target",position:jt.Top,style:{visibility:"hidden"}}),p.jsxs(B6,{className:"flex items-center justify-between w-full",children:[p.jsx(sr,{icon:p.jsx(Gs.after,{className:"text-current",style:{color:gs.after}}),children:"AFTER"}),p.jsx(He,{children:p.jsx(Rd,{className:ie("transition-transform text-neutral3",{"transform rotate-180":r})})})]}),p.jsx(V6,{className:"flex flex-col gap-2",children:t.map(i=>p.jsxs("div",{className:"text-sm bg-surface5 flex items-center gap-1.5 rounded-sm p-2",children:[p.jsx(nTe,{className:"text-current w-4 h-4"}),p.jsx(Ye,{variant:"ui-xs",className:"text-neutral6 capitalize",children:i})]},i))}),p.jsx(gl,{type:"source",position:jt.Bottom,style:{visibility:"hidden"}})]})}function ZZe({data:e}){const{result:t}=e;return p.jsxs("div",{"data-testid":"workflow-loop-result-node","data-workflow-step-status":t?"success":"failed",className:ie("bg-surface4 rounded-md w-[274px]"),"data-workflow-node":!0,children:[p.jsx(gl,{type:"target",position:jt.Top,style:{visibility:"hidden"}}),p.jsx("div",{className:"p-2",children:p.jsxs("div",{className:"text-sm bg-surface5 flex items-center gap-1.5 rounded-sm p-2",children:[t?p.jsx(dut,{className:"text-current w-4 h-4"}):p.jsx(JCe,{className:"text-current w-4 h-4"}),p.jsx(Ye,{variant:"ui-xs",className:"text-neutral6 capitalize",children:String(t)})]})}),p.jsx(gl,{type:"source",position:jt.Bottom,style:{visibility:"hidden"}})]})}function qZe({data:e,parentWorkflowName:t,stepsFlow:r}){const{steps:n}=kD(),{showNestedGraph:i}=L6(),{label:s,stepId:o,description:a,withoutTopHandle:l,withoutBottomHandle:c,stepGraph:u,mapConfig:d,isParallel:f,canSuspend:m,isForEach:g}=e,v=t?`${t}.${s}`:s,b=t?`${t}.${o||s}`:o||s,w=n[b],S=w?.status==="failed"&&w?.tripwire!==void 0,O=S?"tripwire":w?.status,{isForEachNode:k,isMapNode:C,isNestedWorkflow:T,hasSpecialBadge:P}=NZe({isForEach:g,mapConfig:d,canSuspend:m,isParallel:f,stepGraph:u});return p.jsxs(p.Fragment,{children:[!l&&p.jsx(gl,{type:"target",position:jt.Top,style:{visibility:"hidden"}}),p.jsxs("div",{"data-testid":"workflow-nested-node","data-workflow-node":!0,"data-workflow-step-status":O,className:ie("bg-surface3 rounded-lg w-[274px] border border-border1",P?"pt-0":"pt-2",O==="success"&&"bg-accent1Darker",O==="failed"&&"bg-accent2Darker",O==="tripwire"&&"bg-amber-950/40 border-amber-500/30",O==="suspended"&&"bg-accent3Darker",O==="waiting"&&"bg-accent5Darker",O==="running"&&"bg-accent6Darker"),children:[P&&p.jsxs("div",{className:"px-3 pt-2 pb-1 flex gap-1.5 flex-wrap",children:[m&&p.jsx(sr,{icon:p.jsx(Gs.suspend,{className:"text-current",style:{color:gs.suspend}}),children:"SUSPEND/RESUME"}),f&&p.jsx(sr,{icon:p.jsx(Gs.parallel,{className:"text-current",style:{color:gs.parallel}}),children:"PARALLEL"}),T&&p.jsx(sr,{icon:p.jsx(Gs.workflow,{className:"text-current",style:{color:gs.workflow}}),children:"WORKFLOW"}),k&&p.jsx(sr,{icon:p.jsx(Gs.forEach,{className:"text-current",style:{color:gs.forEach}}),children:"FOREACH"}),C&&p.jsx(sr,{icon:p.jsx(Gs.map,{className:"text-current",style:{color:gs.map}}),children:"MAP"})]}),p.jsxs("div",{className:ie("flex items-center gap-2 px-3",!a&&"pb-2"),children:[p.jsxs(He,{children:[O==="failed"&&p.jsx(tte,{className:"text-accent2"}),O==="success"&&p.jsx(ete,{className:"text-accent1"}),O==="tripwire"&&p.jsx(OT,{className:"text-amber-400"}),O==="suspended"&&p.jsx(lTe,{className:"text-accent3"}),O==="waiting"&&p.jsx(JW,{className:"text-accent5"}),O==="running"&&p.jsx(Sh,{className:"text-accent6 animate-spin"}),!w&&p.jsx(YW,{className:"text-neutral2"})]}),p.jsxs(Ye,{variant:"ui-lg",className:"text-neutral6 font-medium inline-flex items-center gap-1 justify-between w-full",children:[s," ",w?.startedAt&&p.jsx(VZe,{startedAt:w.startedAt,endedAt:w.endedAt})]})]}),a&&p.jsx(Ye,{variant:"ui-sm",className:"text-neutral3 px-3 pb-2",children:a}),p.jsx(ute,{stepName:s,stepId:o,input:w?.input,resumeData:w?.resumeData,output:w?.output,suspendOutput:w?.suspendOutput,error:w?.error,tripwire:S?w?.tripwire:void 0,mapConfig:d,onShowNestedGraph:()=>i({label:s,fullStep:v,stepGraph:u}),status:O,stepKey:b,stepsFlow:r})]}),!c&&p.jsx(gl,{type:"source",position:jt.Bottom,style:{visibility:"hidden"}})]})}const C4=E.forwardRef(({className:e,...t},r)=>p.jsxs(aLe,{ref:r,className:ie("relative flex w-full touch-none select-none items-center",e),...t,children:[p.jsx(Khr,{className:"relative h-1.5 w-full grow overflow-hidden rounded-full bg-neutral6/20",children:p.jsx(emr,{className:"absolute h-full bg-neutral6/50"})}),p.jsx(tmr,{className:"block h-4 w-4 rounded-full border border-neutral6/50 bg-white shadow transition-colors disabled:pointer-events-none disabled:opacity-50"})]}));C4.displayName=aLe.displayName;const dte=E.forwardRef(({className:e,...t})=>{const{zoom:r}=qQt(),{zoomTo:n,zoomIn:i,zoomOut:s,fitView:o}=$5();return p.jsxs(XT,{className:ie("flex gap-1 rounded-md bg-surface2 p-1 text-neutral6",e),...t,children:[p.jsx(Ke,{onClick:()=>s({duration:300}),children:p.jsx(ydt,{className:"h-4 w-4"})}),p.jsx(C4,{className:"w-[140px]",value:[r],min:.01,max:1,step:.01,onValueChange:a=>{n(a[0])}}),p.jsx(Ke,{onClick:()=>i({duration:300}),children:p.jsx(_0,{className:"h-4 w-4"})}),p.jsxs(Ke,{className:"min-w-20 tabular-nums",onClick:()=>n(1,{duration:300}),children:[(100*r).toFixed(0),"%"]}),p.jsx(Ke,{onClick:()=>o({duration:300,maxZoom:1}),children:p.jsx(pdt,{className:"h-4 w-4"})})]})});dte.displayName="ZoomSlider";function vPr({workflow:e}){const{nodes:t,edges:r}=IZe(e),[n,i,s]=X6e(t),[o]=Y6e(r),{steps:a}=kD(),l=E.useMemo(()=>r.reduce((u,d)=>{if(d.data){const f=d.data.nextStepId,m=d.data.previousStepId;return{...u,[f]:[...new Set([...u[f]||[],m])]}}return u},{}),[r]),c={"default-node":u=>p.jsx(UZe,{...u,stepsFlow:l}),"condition-node":BZe,"after-node":QZe,"loop-result-node":ZZe,"nested-node":u=>p.jsx(qZe,{...u,stepsFlow:l})};return p.jsx("div",{className:"w-full h-full bg-surface1",children:p.jsxs(G6e,{nodes:n,edges:o.map(u=>({...u,style:{...u.style,stroke:a[u.data?.previousStepId]?.status==="success"&&a[u.data?.nextStepId]||u.data?.conditionNode&&!a[u.data?.previousStepId]&&a[u.data?.nextStepId]?.status?"#22c55e":void 0}})),nodeTypes:c,onNodesChange:s,fitView:!0,fitViewOptions:{maxZoom:1},minZoom:.01,maxZoom:1,children:[p.jsx(dte,{position:"bottom-left"}),p.jsx(K6e,{variant:$f.Dots,gap:12,size:.5})]})})}function HZe({workflowId:e,workflow:t,isLoading:r}){const{snapshot:n}=E.useContext(mp);return r?p.jsx("div",{className:"p-4",children:p.jsx(Rr,{className:"h-full"})}):t?p.jsx(AY,{children:p.jsx(vPr,{workflow:n?.serializedStepGraph?{stepGraph:n?.serializedStepGraph}:t})}):p.jsx("div",{className:"grid h-full place-items-center",children:p.jsxs("div",{className:"flex flex-col items-center gap-2",children:[p.jsx(Lx,{}),p.jsxs("div",{children:["We couldn't find ",M2r(e)," workflow."]})]})})}const bPr=({header:e,children:t,footer:r})=>{const[n,i]=E.useState(!1);return p.jsxs("div",{className:"rounded-lg border border-border1 bg-surface4",children:[p.jsxs("button",{className:"py-1 px-2 flex items-center gap-3 justify-between w-full",onClick:()=>i(s=>!s),children:[p.jsx("div",{className:"w-full",children:e}),p.jsx(He,{children:p.jsx(Rd,{className:ie("text-neutral3 transition-transform -rotate-90",n&&"rotate-0")})})]}),t&&n&&p.jsx("div",{className:"border-t border-border1 max-h-[400px] overflow-y-auto",children:t}),r&&p.jsx("div",{className:"py-1 px-2 border-t border-border1",children:r})]})},xPr=({stepId:e,status:t,result:r,tripwire:n})=>{const[i,s]=E.useState(!1),o=t==="tripwire",a=!!(n&&(n.retry!==void 0||n.metadata!==void 0||n.processorId!==void 0));return p.jsx(bPr,{header:p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsxs(He,{children:[t==="success"&&p.jsx(ete,{className:"text-accent1"}),t==="failed"&&p.jsx(tte,{className:"text-accent2"}),t==="tripwire"&&p.jsx(OT,{className:"text-amber-400"}),t==="suspended"&&p.jsx(XCe,{className:"text-accent3"}),t==="waiting"&&p.jsx(JW,{className:"text-accent5"}),t==="running"&&p.jsx(Sh,{className:"text-accent6 animate-spin"})]}),p.jsx(Ye,{as:"span",variant:"ui-lg",className:"text-neutral6 font-medium",children:e.charAt(0).toUpperCase()+e.slice(1)})]}),children:o&&n?p.jsx(wPr,{tripwire:n,isExpanded:i,onToggleExpand:()=>s(!i),hasMetadata:a}):p.jsx(Hc,{data:r})})},wPr=({tripwire:e,isExpanded:t,onToggleExpand:r,hasMetadata:n})=>p.jsxs("div",{className:"rounded-lg border border-amber-500/30 bg-amber-950/20 overflow-hidden",children:[p.jsxs("div",{className:"flex items-start gap-3 p-4",children:[p.jsx(OT,{className:"w-5 h-5 text-amber-400 mt-0.5 flex-shrink-0"}),p.jsxs("div",{className:"flex-1 min-w-0",children:[p.jsx("p",{className:"text-sm font-medium text-amber-200 mb-1",children:"Content Blocked"}),p.jsx("p",{className:"text-sm text-amber-300/90",children:e.reason||"Tripwire triggered"})]})]}),n&&p.jsxs(p.Fragment,{children:[p.jsxs("button",{onClick:r,className:"w-full flex items-center gap-2 px-4 py-2 text-xs text-amber-400/70 hover:text-amber-400 hover:bg-amber-900/20 transition-colors border-t border-amber-500/20",children:[t?p.jsx(Rd,{className:"w-3.5 h-3.5"}):p.jsx(IN,{className:"w-3.5 h-3.5"}),p.jsx("span",{children:"Details"})]}),t&&p.jsxs("div",{className:"px-4 pb-4 space-y-3 border-t border-amber-500/20 bg-amber-950/10",children:[e.retry!==void 0&&p.jsxs("div",{className:"flex items-center gap-2 pt-3",children:[p.jsx(RN,{className:"w-3.5 h-3.5 text-amber-400/60"}),p.jsxs("span",{className:"text-xs text-amber-300/70",children:["Retry:"," ",e.retry?p.jsx("span",{className:"text-green-400",children:"Allowed"}):p.jsx("span",{className:"text-red-400",children:"Not allowed"})]})]}),e.processorId&&p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx(cTe,{className:"w-3.5 h-3.5 text-amber-400/60"}),p.jsxs("span",{className:"text-xs text-amber-300/70",children:["Processor:"," ",p.jsx("code",{className:"px-1.5 py-0.5 rounded bg-amber-900/30 text-amber-200 font-mono",children:e.processorId})]})]}),e.metadata!==void 0&&e.metadata!==null&&p.jsxs("div",{className:"pt-1",children:[p.jsx("p",{className:"text-xs text-amber-400/60 mb-1.5",children:"Metadata:"}),p.jsx("pre",{className:"text-xs text-amber-200/80 bg-amber-900/30 rounded p-2 overflow-x-auto font-mono",children:String(JSON.stringify(e.metadata,null,2))})]})]})]})]}),SPr=e=>e&&Object.keys(e).length===0&&e.constructor===Object;function WZe({workflowId:e,paramsRunId:t,setRunId:r,workflow:n,isLoading:i,createWorkflowRun:s,resumeWorkflow:o,streamWorkflow:a,observeWorkflowStream:l,isStreamingWorkflow:c,streamResult:u,isCancellingWorkflowRun:d,cancelWorkflowRun:f}){const{requestContext:m}=wi(),{result:g,setResult:v,payload:b,setPayload:w,setRunId:S}=E.useContext(mp),[O,k]=E.useState(!1),[C,T]=E.useState(""),[P,A]=E.useState(null),R=n?.inputSchema,M=n?.stateSchema,z=async j=>{try{if(!n)return;k(!0),A(null),v(null);const W=await s({workflowId:e});r?.(W.runId),T(W.runId),S(W.runId);const{initialState:K,inputData:ne}=j??{},X=M?ne:j;a({workflowId:e,runId:W.runId,inputData:X,initialState:K,requestContext:m})}catch{k(!1),dn.error("Error executing workflow")}},U=async j=>{if(!n)return;A(null);const{stepId:W,runId:K,resumeData:ne}=j,X=await s({workflowId:e,prevRunId:K});await o({step:W,runId:X.runId,resumeData:ne,workflowId:e,requestContext:m})},V=async()=>{const j=await f({workflowId:e,runId:C});A(j)},L=g??u,Q=Object.entries(L?.steps||{}).filter(([j,{status:W}])=>W==="suspended").map(([j,{suspendPayload:W}])=>({stepId:j,runId:C,suspendPayload:W,isLoading:!1}));if(E.useEffect(()=>{t&&l&&(l({workflowId:e,runId:t}),T(t),S(t))},[t]),E.useEffect(()=>{k(c)},[c]),E.useEffect(()=>{u&&v(u)},[u]),i)return p.jsx(_D,{className:"h-[calc(100vh-126px)] pt-2 px-4 pb-4 text-xs",children:p.jsxs("div",{className:"space-y-4",children:[p.jsx(Rr,{className:"h-10"}),p.jsx(Rr,{className:"h-10"})]})});if(!n)return null;const F=Q.length>0,N=R?kg(Sg($v(R))):null,I=M?kg(Sg($v(M))):null,H=I?Iw({inputData:N,initialState:I.optional()}):N,B=L?.steps??{},J=Object.values(B).length>0,q=["success","failed","canceled","tripwire"];return p.jsxs("div",{className:"h-full pt-3 overflow-y-auto",children:[p.jsxs("div",{className:"space-y-4 px-5 pb-5 border-b border-border1",children:[F&&c&&p.jsxs("div",{className:"py-2 px-5 flex items-center gap-2 bg-surface5 -mx-5 -mt-5 border-b border-border1",children:[p.jsx(He,{children:p.jsx(Sh,{className:"animate-spin text-neutral6"})}),p.jsx(Ye,{children:"Resuming workflow"})]}),!F&&p.jsx(p.Fragment,{children:H?p.jsx(WZ,{schema:H,defaultValues:b,isSubmitLoading:c,submitButtonLabel:"Run",onSubmit:j=>{w(j),z(j)},withoutSubmit:!!t}):t?null:p.jsx(Ke,{className:"w-full",variant:"light",disabled:O,onClick:()=>z(null),children:O?p.jsx(He,{children:p.jsx(Sh,{className:"animate-spin"})}):"Trigger"})}),!c&&F&&Q?.map(j=>{const W=n.allSteps[j.stepId];if(!W||W.isWorkflow)return null;const K=W?.resumeSchema?kg(Sg($v(W.resumeSchema))):Dk(f1(),dI());return p.jsxs("div",{className:"flex flex-col px-4",children:[p.jsx(Ye,{variant:"ui-xs",className:"text-neutral3",children:j.stepId}),j.suspendPayload&&p.jsx("div",{"data-testid":"suspended-payload",children:p.jsx(Hc,{data:j.suspendPayload,className:"w-full overflow-x-auto p-2",showCopyButton:!1})}),p.jsx(WZ,{schema:K,isSubmitLoading:c,submitButtonLabel:"Resume workflow",onSubmit:ne=>{const X=j.stepId?.split(".");U({stepId:X,runId:j.runId,suspendPayload:j.suspendPayload,resumeData:ne})}})]},j.stepId)}),g?.status==="running"&&p.jsxs(Ke,{variant:"light",className:"w-full",onClick:V,disabled:!!P?.message||d||g?.status&&q.includes(g?.status),children:[d?p.jsx(He,{children:p.jsx(Sh,{className:"animate-spin"})}):p.jsx(He,{children:p.jsx(YCe,{})}),P?.message||"Cancel Workflow Run"]}),J&&p.jsx(p.Fragment,{children:p.jsxs("div",{className:"flex flex-col gap-2 pt-5 border-t border-border1",children:[p.jsx(Ye,{variant:"ui-xs",className:"text-neutral3",children:"Status"}),p.jsx("div",{className:"flex flex-col gap-4",children:Object.entries(B).filter(([j,W])=>j!=="input"&&!j.endsWith(".input")).map(([j,W])=>{const{status:K}=W;let ne,X,te;W.status==="suspended"&&(X=W.suspendOutput),W.status==="success"&&(ne=W.output),W.status==="failed"&&(te=W.error);const ue=W.status==="failed"&&W.tripwire?W.tripwire:L?.status==="tripwire"?{reason:L?.tripwire?.reason,retry:L?.tripwire?.retry,metadata:L?.tripwire?.metadata,processorId:L?.tripwire?.processorId}:void 0,de=W.status==="failed"&&W.tripwire?"tripwire":K;return p.jsx(xPr,{stepId:j,status:de,result:ne??X??te??{},tripwire:ue},j)})})]})})]}),g&&!SPr(g)&&p.jsx("div",{className:"p-5 border-b border-border1",children:p.jsx(OPr,{result:g})})]})}const OPr=({result:e})=>{const[t,r]=E.useState(!1);return p.jsxs(p.Fragment,{children:[p.jsxs(Ke,{variant:"light",onClick:()=>r(!0),className:"w-full",children:[p.jsx(He,{children:p.jsx(Vv,{className:"text-neutral3"})}),"Open Workflow Execution (JSON)"]}),p.jsx(Uo,{open:t,onOpenChange:r,children:p.jsxs(bo,{className:"max-w-6xl",children:[p.jsxs(xo,{children:[p.jsx(So,{children:"Workflow Execution (JSON)"}),p.jsx(Oo,{children:"JSON view of the workflow execution result"})]}),p.jsx(wo,{className:"max-h-[90vh]",children:p.jsx(Hc,{data:e,className:"p-4"})})]})})]})},_Pr=({workflowId:e,runId:t,observeWorkflowStream:r,...n})=>{const{runSnapshot:i,isLoadingRunExecutionResult:s}=E.useContext(mp);if(s)return p.jsx("div",{className:"p-4",children:p.jsx(Rr,{className:"h-[600px]"})});if(!i||!t)return p.jsx("div",{className:"p-4",children:p.jsx(Ye,{variant:"ui-md",className:"text-neutral6 text-center",children:"No previous run"})});const o=QZ(i),a=o?.status;if(t)return p.jsx("div",{className:"h-full grid grid-rows-[1fr_auto]",children:p.jsx(WZe,{...n,paramsRunId:t,workflowId:e,observeWorkflowStream:()=>{a!=="success"&&a!=="failed"&&a!=="canceled"&&r?.({workflowId:e,runId:t,storeRunResult:o})}})})},ED=({iconSlot:e,titleSlot:t,descriptionSlot:r,actionSlot:n,as:i="div"})=>p.jsxs("div",{className:"flex w-[340px] flex-col items-center justify-center text-center",children:[p.jsx("div",{className:"h-auto [&>svg]:w-[126px]",children:e}),p.jsx(i,{className:"text-neutral6 pt-8 font-serif text-header-xl font-semibold",children:t}),p.jsx(Ye,{variant:"ui-lg",className:"text-neutral3 pb-8",children:r}),n]}),kPr={default:"[&>tbody>tr]:h-table-row",small:"[&>tbody>tr]:h-table-row-small"},gp=({className:e,children:t,size:r="default",style:n})=>p.jsx("table",{className:ie("w-full",kPr[r],e),style:n,children:t}),yp=({className:e,children:t})=>p.jsx("thead",{children:p.jsx("tr",{className:ie("h-table-header border-b border-border1 bg-surface2",e),children:t})}),Xo=({className:e,children:t,...r})=>p.jsx("th",{className:ie("text-neutral3 text-ui-sm h-full whitespace-nowrap text-left font-normal uppercase first:pl-3 last:pr-3",e),...r,children:t}),vp=({className:e,children:t})=>p.jsx("tbody",{className:ie("",e),children:t}),bp=E.forwardRef(({className:e,children:t,selected:r=!1,style:n,onClick:i,...s},o)=>{const a=l=>{l.key==="Enter"&&i&&i()};return p.jsx("tr",{className:ie("border-b border-border1 hover:bg-surface3 focus:bg-surface3 -outline-offset-2",r&&"bg-surface4",i&&"cursor-pointer",e),style:n,onClick:i,ref:o,tabIndex:i?0:void 0,onKeyDown:a,...s,children:t})}),so=({className:e,children:t,...r})=>p.jsx("td",{className:ie("text-neutral5 first:pl-3 last:pr-3",e),...r,children:p.jsx("div",{className:ie("flex h-full w-full shrink-0 items-center"),children:t})}),CD=({name:e,description:t,icon:r,meta:n,...i})=>p.jsx(so,{...i,children:p.jsxs("div",{className:"flex items-center gap-3.5",children:[r&&p.jsx(He,{size:"lg",className:"text-neutral5",children:r}),p.jsxs("div",{className:"flex flex-col gap-0",children:[p.jsx(Ye,{as:"span",variant:"ui-md",className:"text-neutral6 !leading-tight",children:e}),t&&p.jsx(Ye,{as:"span",variant:"ui-xs",className:"text-neutral3 w-full max-w-[300px] truncate !leading-tight pt-1",children:t})]}),n]})}),wxe=40,UP=150,Sxe=10,TD=({className:e,children:t,scrollSpeed:r=100,scrollIntervalTime:n=20})=>{const i=E.useRef(null),s=E.useRef(null),[o,a]=E.useState(0),[l,c]=E.useState(0),[u,d]=E.useState(0),[f,m]=E.useState(0),[g,v]=E.useState(!1),[b,w]=E.useState(!1);E.useEffect(()=>{const C=()=>{if(!i.current)return;const R=i.current.scrollLeft<i.current.scrollWidth-i.current.clientWidth;v(R),a(i.current.clientHeight);const M=i.current.getBoundingClientRect();c(M.right),m(M.left),d(M.top)};C();const T=new ResizeObserver(C);i.current&&T.observe(i.current);const P=()=>{if(!i.current)return;const R=i.current.scrollLeft>0,M=i.current.scrollLeft<i.current.scrollWidth-i.current.clientWidth;w(R),v(M),C()};i?.current?.addEventListener("scroll",P);const A=i.current;return()=>{A&&(T.unobserve(A),A.removeEventListener("scroll",P))}},[]);const S=({isVisible:C,position:T,containerHeight:P,containerTop:A,containerRight:R,onStartScrolling:M,onStopScrolling:z})=>{if(!C)return null;const U={top:P<UP?A:A+(P-UP)/2,width:wxe,height:P<UP?`${P}px`:`${UP}px`};return p.jsxs("button",{onMouseDown:M,onTouchStart:M,onMouseUp:z,onTouchEnd:z,onTouchCancel:z,className:"bg-surface4 text-neutral3 border-surface5 hover:border-neutral3 fixed z-10 flex items-center justify-center rounded-lg border text-2xl hover:text-white",style:{...U,left:T==="left"?f+Sxe:R-wxe-Sxe},children:[" ",T==="left"?"«":"»"]})},O=E.useCallback((C,T)=>{T?.preventDefault(),T?.stopPropagation(),s.current&&(clearInterval(s.current),s.current=null),i.current&&i.current.scrollBy({left:C==="right"?r*2:-r*2,behavior:"smooth"}),s.current=setInterval(()=>{i.current&&i.current.scrollBy({left:C==="right"?r:-r,behavior:"smooth"})},n)},[r,n]),k=E.useCallback(()=>{s.current&&(clearInterval(s.current),s.current=null)},[]);return p.jsxs("div",{ref:i,className:ie("relative max-h-full overflow-auto",e),children:[t,p.jsx(S,{isVisible:b,position:"left",containerHeight:o,containerTop:u,containerRight:l,onStartScrolling:C=>O("left",C),onStopScrolling:k}),p.jsx(S,{isVisible:g,position:"right",containerHeight:o,containerTop:u,containerRight:l,onStartScrolling:C=>O("right",C),onStopScrolling:k})]})},GZe=E.createContext({Link:E.forwardRef(()=>null),navigate:()=>{},paths:{agentLink:()=>"",agentsLink:()=>"",agentToolLink:()=>"",agentThreadLink:()=>"",agentNewThreadLink:()=>"",workflowsLink:()=>"",workflowLink:()=>"",networkLink:()=>"",networkNewThreadLink:()=>"",networkThreadLink:()=>"",scorerLink:()=>"",toolLink:()=>"",mcpServerLink:()=>"",mcpServerToolLink:()=>"",workflowRunLink:()=>""}}),EPr=({children:e,Link:t,navigate:r,paths:n})=>p.jsx(GZe.Provider,{value:{Link:t,navigate:r,paths:n},children:e}),Gr=()=>{const e=E.useContext(GZe);if(!e)throw new Error("useLinkComponent must be used within a LinkComponentProvider");return e},CPr=[{id:"name",header:"Name",cell:({row:e})=>{const{Link:t,paths:r}=Gr(),n=e.original;return p.jsx(CD,{name:p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx(t,{href:r.workflowLink(e.original.id),children:e.original.name}),n.isProcessorWorkflow&&p.jsx(sr,{icon:p.jsx(eTe,{className:"h-3 w-3"}),className:"!h-badge-sm bg-violet-500/20 text-violet-400",children:"Processor"})]}),description:n.description,meta:void 0})},meta:{width:"auto"}},{id:"stepsCount",header:"Steps",size:300,cell:({row:e})=>{const t=e.original,r=Object.keys(t.steps??{}).length;return p.jsx(so,{children:p.jsx("div",{className:"flex justify-end items-center gap-2",children:p.jsxs(sr,{icon:p.jsx(nTe,{}),className:"!h-form-sm",children:[r," step",r>1?"s":""]})})})}}],Oxe={sm:Ea.sm,md:Ea.md,lg:Ea.lg},DD=({onSearch:e,label:t,placeholder:r,debounceMs:n=300,size:i="md"})=>{const s=E.useId(),o=E.useRef(null),a=KY(c=>{e(c)},n);E.useEffect(()=>()=>{a.cancel()},[a]),E.useEffect(()=>{const c=o.current;if(!c)return;const u=d=>{d.key.toLowerCase()==="f"&&d.shiftKey&&(d.ctrlKey||d.metaKey)&&(d.preventDefault(),c.focus())};return window.addEventListener("keydown",u),()=>{window.removeEventListener("keydown",u)}},[]);const l=c=>{a(c.target.value)};return p.jsxs("div",{className:ie("border border-border1 flex w-full items-center gap-2 overflow-hidden pl-2 pr-1",SD,YAr,Oxe[i]),children:[p.jsx(eG,{className:"text-neutral3 h-4 w-4"}),p.jsxs("div",{className:"flex-1",children:[p.jsx("label",{htmlFor:s,className:"sr-only",children:t}),p.jsx("input",{id:s,type:"text",placeholder:r,className:ie("bg-surface2 text-ui-md placeholder:text-icon-3 block w-full px-2 outline-none",Oxe[i]),name:s,ref:o,onChange:l})]})]})},AD=({children:e})=>p.jsx("div",{className:"px-3 py-2.5 border-b border-border1",children:e});function TPr({workflows:e,isLoading:t}){const[r,n]=E.useState(""),{navigate:i,paths:s}=Gr(),o=E.useMemo(()=>Object.keys(e??{}).map(f=>{const m=e[f];return{id:f,...m}}),[e]),a=gD({data:o,columns:CPr,getCoreRowModel:mD()}),l=a.getHeaderGroups()[0],c=a.getRowModel().rows.concat();if(c.length===0&&!t)return p.jsx(APr,{});const u=c.filter(d=>d.original.name.toLowerCase().includes(r.toLowerCase()));return p.jsxs("div",{children:[p.jsx(AD,{children:p.jsx(DD,{onSearch:n,label:"Search workflows",placeholder:"Search workflows"})}),t?p.jsx(DPr,{}):p.jsx(TD,{children:p.jsxs(gp,{children:[p.jsx(yp,{className:"sticky top-0",children:l.headers.map(d=>p.jsx(Xo,{style:{width:d.index===0?"auto":d.column.getSize()},children:Hf(d.column.columnDef.header,d.getContext())},d.id))}),p.jsx(vp,{children:u.map(d=>p.jsx(bp,{onClick:()=>i(s.workflowLink(d.original.id)),children:d.getVisibleCells().map(f=>p.jsx(me.Fragment,{children:Hf(f.column.columnDef.cell,f.getContext())},f.id))},d.id))})]})})]})}const DPr=()=>p.jsxs(gp,{children:[p.jsxs(yp,{children:[p.jsx(Xo,{children:"Name"}),p.jsx(Xo,{width:300,children:"Steps"})]}),p.jsx(vp,{children:Array.from({length:3}).map((e,t)=>p.jsxs(bp,{children:[p.jsx(so,{children:p.jsx(Rr,{className:"h-4 w-1/2"})}),p.jsx(so,{width:300,children:p.jsx(Rr,{className:"h-4 w-1/2"})})]},t))})]}),APr=()=>p.jsx("div",{className:"flex h-full items-center justify-center",children:p.jsx(ED,{iconSlot:p.jsx(m2r,{}),titleSlot:"Configure Workflows",descriptionSlot:"Mastra workflows are not configured yet. You can find more information in the documentation.",actionSlot:p.jsxs(Ke,{size:"lg",className:"w-full",variant:"light",as:"a",href:"https://mastra.ai/en/docs/workflows/overview",target:"_blank",children:[p.jsx(He,{children:p.jsx(Su,{})}),"Docs"]})})}),XZe=({icon:e,title:t,isLoading:r,children:n})=>p.jsxs("div",{className:"p-5 w-full overflow-x-hidden",children:[p.jsxs("div",{className:"text-neutral6 flex items-center gap-2",children:[p.jsx(He,{size:"lg",className:"bg-surface4 rounded-md p-1",children:e}),r?p.jsx(Rr,{className:"h-3 w-1/3"}):p.jsx("div",{className:"flex min-w-0 items-center gap-4",children:p.jsx(Ye,{variant:"header-md",as:"h2",className:"truncate font-medium",children:t})})]}),n&&p.jsx("div",{className:"pt-2",children:n})]}),fte=({children:e,defaultTab:t,value:r,onValueChange:n,className:i})=>{const[s,o]=E.useState(t),a=r!==void 0&&n!==void 0,l=a?r:s,c=u=>{const d=u;a?n(d):o(d)};return p.jsx(Hmr,{value:l,onValueChange:c,className:ie("overflow-y-auto",i),children:e})},pte=({children:e,variant:t="default",className:r})=>p.jsx("div",{className:ie("w-full overflow-x-auto",r),children:p.jsx(Wmr,{className:ie("flex items-center",{"text-ui-lg":t==="default","[&>button]:py-2 [&>button]:px-6 [&>button]:font-normal [&>button]:text-neutral3 [&>button]:flex-1 [&>button]:border-b [&>button]:border-border1":t==="default","[&>button[data-state=active]]:text-neutral5 [&>button[data-state=active]]:transition-colors [&>button[data-state=active]]:duration-200 [&>button[data-state=active]]:border-neutral3":t==="default","border border-border1 flex justify-stretch rounded-md overflow-hidden text-ui-md min-h-[2.5rem]":t==="buttons","[&>button]:flex-1 [&>button]:py-2 [&>button]:px-4 [&>button]:text-neutral3":t==="buttons","[&>button[data-state=active]]:text-neutral5 [&>button[data-state=active]]:bg-surface4":t==="buttons"},r),children:e})}),bh=({children:e,value:t,onClick:r,onClose:n,className:i})=>p.jsxs(Gmr,{value:t,className:ie("text-xs p-3 text-neutral3 data-[state=active]:text-neutral5 data-[state=active]:border-b-2 whitespace-nowrap flex-shrink-0 flex items-center justify-center gap-1.5",i),onClick:r,children:[e,n&&p.jsx("button",{onClick:s=>{s.stopPropagation(),n()},className:"p-0.5 hover:bg-surface3 rounded transition-colors","aria-label":"Close tab",children:p.jsx(Pa,{className:"w-3 h-3"})})]}),xh=({children:e,value:t,className:r})=>p.jsx(Xmr,{value:t,className:ie("grid py-3 overflow-y-auto ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:none",r),children:e}),PPr=()=>{const{debugMode:e,setDebugMode:t}=E.useContext(mp);return p.jsxs(p.Fragment,{children:[p.jsx(Ye,{as:"h3",variant:"ui-md",className:"text-neutral3",children:"Debug Mode"}),p.jsx(U6,{checked:e,onCheckedChange:r=>t(r)})]})},YZe=()=>{const e=X0(),{settings:t,setSettings:r,entityType:n}=ste(),i=o=>{if(!o)return r({...t,tracingOptions:void 0});try{const a=JSON.parse(o);typeof a=="object"&&a!==null&&r({...t,tracingOptions:a})}catch{}};let s="{}";try{s=JSON.stringify(t?.tracingOptions,null,2)}catch{}return p.jsxs("div",{className:"space-y-2 px-5 py-2",children:[p.jsx(Ye,{as:"h3",variant:"ui-md",className:"text-neutral3",children:"Tracing Options"}),p.jsx(su,{value:s,onChange:i,theme:e,extensions:[Gc],className:"h-[400px] overflow-y-scroll bg-surface3 rounded-lg overflow-hidden p-3"}),n==="workflow"&&p.jsx(PPr,{})]})};function Aa({color:e="#fff",className:t}){return p.jsx("svg",{className:ie("animate-spin duration-700",t),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",children:p.jsx("path",{d:"M21 12a9 9 0 1 1-6.219-8.56",stroke:e})})}function $Pr({stepGraph:e,open:t,workflowName:r}){const{nodes:n,edges:i}=IZe({stepGraph:e}),[s,o]=E.useState(!1),[a,l,c]=X6e(n),[u]=Y6e(i),{steps:d}=kD(),f=E.useMemo(()=>i.reduce((g,v)=>{if(v.data){const b=v.data.nextStepId,w=v.data.previousStepId;return{...g,[b]:[...new Set([...g[b]||[],w])]}}return g},{}),[i]),m={"default-node":g=>p.jsx(UZe,{parentWorkflowName:r,...g,stepsFlow:f}),"condition-node":BZe,"after-node":QZe,"loop-result-node":ZZe,"nested-node":g=>p.jsx(qZe,{parentWorkflowName:r,...g,stepsFlow:f})};return E.useEffect(()=>{t&&setTimeout(()=>{o(!0)},500)},[t]),p.jsx("div",{className:"w-full h-full relative bg-surface1",children:s?p.jsxs(G6e,{nodes:a,edges:u.map(g=>({...g,style:{...g.style,stroke:d[`${r}.${g.data?.previousStepId}`]?.status==="success"&&d[`${r}.${g.data?.nextStepId}`]||g.data?.conditionNode&&!d[`${r}.${g.data?.previousStepId}`]&&d[`${r}.${g.data?.nextStepId}`]?.status?"#22c55e":void 0}})),fitView:!0,fitViewOptions:{maxZoom:1},minZoom:.01,maxZoom:1,nodeTypes:m,onNodesChange:c,children:[p.jsx(dte,{position:"bottom-left"}),p.jsx(K6e,{variant:$f.Lines,gap:12,size:.5})]}):p.jsx("div",{className:"w-full h-full flex items-center justify-center",children:p.jsx(Aa,{})})})}function IPr(){const{stepDetail:e,closeStepDetail:t}=L6();return e?p.jsxs("div",{className:"flex flex-col h-full",children:[p.jsxs("div",{className:"flex items-center justify-between px-4 py-3 border-b border-border1 bg-surface1",children:[p.jsxs("div",{className:"flex items-center gap-2",children:[e.type==="map-config"&&p.jsx(RB,{className:"w-4 h-4",style:{color:gs.map}}),e.type==="nested-graph"&&p.jsx(Su,{className:"w-4 h-4",style:{color:gs.workflow}}),p.jsxs("div",{className:"flex flex-col",children:[p.jsx(Ye,{variant:"ui-md",className:"text-neutral6 font-medium",children:e.type==="map-config"?`${e.stepName} Config`:`${e.stepName} Workflow`}),e.type==="map-config"&&e.stepId&&e.stepId!==e.stepName&&p.jsx(Ye,{variant:"ui-xs",className:"text-neutral3",children:e.stepId})]})]}),p.jsx("button",{onClick:t,className:"p-1 hover:bg-surface3 rounded transition-colors","aria-label":"Close",children:p.jsx(Pa,{className:"w-4 h-4 text-neutral3"})})]}),p.jsxs("div",{className:"flex-1 overflow-auto",children:[e.type==="map-config"&&e.mapConfig&&p.jsx(mx,{data:e.mapConfig}),e.type==="nested-graph"&&e.nestedGraph&&p.jsx("div",{className:"h-full min-h-[400px]",children:p.jsx(AY,{children:p.jsx($Pr,{stepGraph:e.nestedGraph.stepGraph,open:!0,workflowName:e.nestedGraph.fullStep})},e.nestedGraph.fullStep)})]})]}):null}function NPr({workflowId:e,initialRunId:t}){const{data:r,isLoading:n,error:i}=OD(e),{createWorkflowRun:s,streamWorkflow:o,streamResult:a,isStreamingWorkflow:l,observeWorkflowStream:c,closeStreamsAndReset:u,resumeWorkflow:d,cancelWorkflowRun:f,isCancellingWorkflowRun:m}=E.useContext(mp),{stepDetail:g,closeStepDetail:v}=L6(),[b,w]=E.useState("current-run"),[S,O]=E.useState(""),{handleCopy:k}=Gf({text:e}),C=Object.keys(r?.steps??{}).length,T=E.useMemo(()=>g?g.type==="map-config"?"Map Config":g.type==="nested-graph"?"Nested Workflow":"Node":null,[g]);E.useEffect(()=>{!S&&!t&&u()},[S,t]),E.useEffect(()=>{if(i){const A=i instanceof Error?i.message:"Failed to load workflow";os.error(`Error loading workflow: ${A}`)}},[i]),E.useEffect(()=>{g?w("node-details"):b==="node-details"&&w("current-run")},[g]);const P=A=>{b==="node-details"&&A!=="node-details"&&v(),w(A)};return i?null:p.jsxs("div",{className:"grid grid-rows-[auto_1fr] h-full overflow-y-auto",children:[p.jsx(XZe,{icon:p.jsx(Su,{}),title:r?.name||"",isLoading:n,children:p.jsxs("div",{className:"flex items-center gap-2 pt-2",children:[p.jsxs($i,{children:[p.jsx(Ii,{asChild:!0,children:p.jsx("button",{onClick:k,className:"h-badge-default",children:p.jsx(sr,{icon:p.jsx(nu,{}),variant:"default",children:e})})}),p.jsx(gi,{children:"Copy Workflow ID for use in code"})]}),p.jsxs(sr,{children:[C," step",C>1?"s":""]}),r?.isProcessorWorkflow&&p.jsx(sr,{icon:p.jsx(eTe,{className:"h-3 w-3"}),className:"bg-violet-500/20 text-violet-400",children:"Processor"})]})}),p.jsx("div",{className:"flex-1 overflow-auto border-t border-border1 flex flex-col",children:p.jsxs(fte,{defaultTab:"current-run",value:b,onValueChange:P,className:"h-full",children:[p.jsxs(pte,{children:[p.jsx(bh,{value:"current-run",children:"Current Run"}),p.jsx(bh,{value:"run-options",children:"Run Options"}),g&&T&&p.jsxs(bh,{value:"node-details",onClose:()=>{v(),w("current-run")},children:[T," Details"]})]}),p.jsx(xh,{value:"current-run",children:e?t?p.jsx(_Pr,{workflowId:e,runId:t,setRunId:O,workflow:r??void 0,isLoading:n,createWorkflowRun:s,streamWorkflow:o,resumeWorkflow:d,streamResult:a,isStreamingWorkflow:l,isCancellingWorkflowRun:m,cancelWorkflowRun:f,observeWorkflowStream:c}):p.jsx(WZe,{workflowId:e,setRunId:O,workflow:r??void 0,isLoading:n,createWorkflowRun:s,streamWorkflow:o,resumeWorkflow:d,streamResult:a,isStreamingWorkflow:l,isCancellingWorkflowRun:m,cancelWorkflowRun:f}):null}),p.jsx(xh,{value:"run-options",children:p.jsx(YZe,{})}),g&&p.jsx(xh,{value:"node-details",children:p.jsx(IPr,{})})]})})]})}function PD({options:e,value:t,onValueChange:r,placeholder:n="Select option...",searchPlaceholder:i="Search...",emptyText:s="No option found.",className:o,disabled:a=!1,variant:l="default",size:c="md"}){const[u,d]=E.useState(!1),[f,m]=E.useState(""),[g,v]=E.useState(0),b=E.useRef(null),[w,S]=E.useState(void 0),O=E.useRef(null),k=E.useRef(null),C=e.find(R=>R.value===t),T=R=>{r?.(R),d(!1),m(""),v(0)};E.useEffect(()=>{b.current&&S(b.current.offsetWidth)},[u]),E.useEffect(()=>{u&&O.current&&O.current.focus()},[u]);const P=E.useMemo(()=>f?e.filter(R=>R.label.toLowerCase().includes(f.toLowerCase())):e,[e,f]);E.useEffect(()=>{v(0)},[P]);const A=R=>{if(u)switch(R.key){case"ArrowDown":R.preventDefault(),v(M=>M<P.length-1?M+1:M);break;case"ArrowUp":R.preventDefault(),v(M=>M>0?M-1:M);break;case"Enter":R.preventDefault(),P[g]&&T(P[g].value);break;case"Escape":R.preventDefault(),d(!1),m("");break;case"Home":R.preventDefault(),v(0);break;case"End":R.preventDefault(),v(P.length-1);break}};return E.useEffect(()=>{if(k.current&&g>=0){const R=k.current.children[g];R&&R.scrollIntoView({block:"nearest"})}},[g]),p.jsxs(QC,{open:u,onOpenChange:d,children:[p.jsx(ZC,{asChild:!0,children:p.jsxs(Ke,{ref:b,role:"combobox","aria-expanded":u,variant:l,size:c,className:ie("w-full justify-between",o),disabled:a,children:[p.jsx("span",{className:"truncate",children:C?C.label:n}),p.jsx(iut,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),p.jsx(vw,{className:"p-0 w-fit",align:"start",children:p.jsxs("div",{className:"flex h-full w-full flex-col overflow-hidden rounded-md bg-surface3 text-neutral5",children:[p.jsxs("div",{className:"flex items-center border-b px-3 py-2",children:[p.jsx(eG,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),p.jsx("input",{ref:O,className:"flex h-8 w-full rounded-md bg-transparent py-1 text-sm placeholder:text-neutral3 disabled:cursor-not-allowed disabled:opacity-50 outline-none",placeholder:i,value:f,onChange:R=>m(R.target.value),onKeyDown:A,role:"combobox","aria-autocomplete":"list","aria-controls":"combobox-options","aria-expanded":u})]}),p.jsx("div",{ref:k,id:"combobox-options",role:"listbox",className:"max-h-dropdown-max-height overflow-y-auto overflow-x-hidden p-1",children:P.length===0?p.jsx("div",{className:"py-6 text-center text-sm",children:s}):P.map((R,M)=>{const z=t===R.value,U=M===g;return p.jsxs("div",{role:"option","aria-selected":z,className:ie("relative flex cursor-pointer select-none items-center rounded-sm px-2 py-1.5 text-sm transition-colors","hover:bg-surface5 hover:text-neutral5",U&&"bg-surface5 text-neutral5",z&&!U&&"bg-surface5/50"),onClick:()=>T(R.value),onMouseEnter:()=>v(M),children:[p.jsx(yd,{className:ie("mr-2 h-4 w-4",z?"opacity-100":"opacity-0")}),R.label]},R.value)})})]})})]})}function RPr({value:e,onValueChange:t,placeholder:r="Select a workflow...",searchPlaceholder:n="Search workflows...",emptyText:i="No workflows found.",className:s,disabled:o=!1}){const{data:a={},isLoading:l,isError:c,error:u}=F6(),{navigate:d,paths:f}=Gr();E.useEffect(()=>{if(c){const v=u instanceof Error?u.message:"Failed to load workflows";os.error(`Error loading workflows: ${v}`)}},[c,u]);const m=Object.keys(a).map(v=>({label:a[v]?.name||v,value:v})),g=v=>{t?t(v):v&&v!==e&&d(f.workflowLink(v))};return p.jsx(PD,{options:m,value:e,onValueChange:g,placeholder:l?"Loading workflows...":r,searchPlaceholder:n,emptyText:i,className:s,disabled:o||l||c})}function $o({children:e,className:t,style:r}){const n=JZe("MainContentLayout");return p.jsx("main",{className:ie("grid grid-rows-[auto_1fr] h-full items-start content-start",t),style:{...r,...n?{border:"3px dotted red"}:{}},children:e})}function Dd({children:e,className:t,isCentered:r=!1,isDivided:n=!1,hasLeftServiceColumn:i=!1,style:s}){const o=JZe("MainContentContent"),a=hte({isCentered:r,isDivided:n,hasLeftServiceColumn:i,className:t});return p.jsx("div",{className:a,style:{...s,...o?{border:"3px dotted orange"}:{}},children:e})}const hte=({isCentered:e,isDivided:t,hasLeftServiceColumn:r,className:n})=>ie("grid overflow-y-auto h-full ","overflow-x-auto min-w-[min-content]",{"items-start content-start":!e&&!t&&!r,"grid place-items-center":e,"grid-cols-[1fr_1fr]":t&&!r,"grid-cols-[12rem_1fr_1fr]":t&&r,"grid-cols-[auto_1fr]":!t&&r},n);function JZe(e){try{const t=localStorage.getItem("add-dev-style-to-components");return t?t.split(",").map(n=>n.trim()).filter(Boolean).includes(e):!1}catch(t){return console.error("Error reading or parsing localStorage:",t),!1}}const T4=()=>p.jsx($gr,{className:ie("w-1.5 bg-surface3","[&[data-separator='hover']]:!bg-surface4","[&[data-separator='active']]:!bg-surface5","focus:outline-none")}),D4=({collapsedSize:e,children:t,direction:r,...n})=>{const[i,s]=E.useState(!1),o=Agr(),a=()=>{o.current&&o.current.expand()};return p.jsx(HK,{panelRef:o,collapsedSize:e,...n,onResize:l=>{e&&typeof e=="number"&&(l.inPixels<=e?s(!0):i&&s(!1))},children:i?p.jsxs($i,{children:[p.jsx("div",{className:"flex items-center justify-center h-full",children:p.jsx(Ii,{asChild:!0,children:p.jsx(Ke,{onClick:a,className:"!h-48 border-none",children:p.jsx(He,{children:r==="left"?p.jsx(Fx,{}):p.jsx(ZCe,{})})})})}),p.jsx(gi,{children:"Expand"})]}):t})},MPr=({workflowId:e,children:t,leftSlot:r,rightSlot:n})=>{const{defaultLayout:i,onLayoutChange:s}=ULe({id:`workflow-layout-${e}`,storage:localStorage}),o=hte({isCentered:!1,isDivided:!0,hasLeftServiceColumn:!!r});return p.jsxs(VLe,{className:o,defaultLayout:i,onLayoutChange:s,children:[r&&p.jsxs(p.Fragment,{children:[p.jsx(D4,{direction:"left",id:"left-slot",minSize:200,maxSize:"30%",defaultSize:200,collapsedSize:60,collapsible:!0,children:r}),p.jsx(T4,{})]}),p.jsx(HK,{id:"main-slot",children:t}),n&&p.jsxs(p.Fragment,{children:[p.jsx(T4,{}),p.jsx(D4,{direction:"right",id:"right-slot",minSize:300,maxSize:"50%",defaultSize:300,collapsedSize:60,collapsible:!0,children:n})]})]})},mte=()=>p.jsx(j6,{icon:p.jsx(Aa,{color:dTe.neutral3}),title:p.jsx(Rr,{className:"ml-2 w-12 h-2"}),collapsible:!1}),jPr=({result:e,workflowId:t,isStreaming:r,metadata:n,toolCallId:i,toolApprovalMetadata:s,suspendPayload:o,toolName:a,isNetwork:l,toolCalled:c})=>{const{runId:u,status:d}=e||{},{data:f,isLoading:m}=OD(t),{data:g,isLoading:v}=AZe(t,{enabled:!!u&&!r}),b=g?.find(T=>T.runId===u),w=v||!b,S=typeof b?.snapshot=="object"?b?.snapshot:void 0,O=n?.mode==="network"?n.selectionReason:void 0,k=n?.mode==="network"?n.agentInput:void 0;let C=typeof o=="string"?p.jsx("pre",{className:"whitespace-pre bg-surface4 p-4 rounded-md overflow-x-auto",children:o}):p.jsx(Hc,{data:o,"data-testid":"tool-suspend-payload"});return m||!f?p.jsx(mte,{}):p.jsxs(j6,{"data-testid":"workflow-badge",icon:p.jsx(Su,{className:"text-accent3"}),title:f.name,initialCollapsed:!1,extraInfo:n?.mode==="network"&&p.jsx(nte,{selectionReason:O??"",input:k}),children:[!r&&!w&&p.jsx(ote,{snapshot:S,workflowId:t,initialRunId:u,withoutTimeTravel:!0,children:p.jsx(_xe,{workflowId:t,workflow:f,runId:u})}),r&&p.jsx(_xe,{workflowId:t,workflow:f,runId:u}),C!==void 0&&o&&p.jsxs("div",{children:[p.jsx("p",{className:"font-medium pb-2",children:"Workflow suspend payload"}),C]}),p.jsx(ite,{toolCalled:c??!!d,toolCallId:i,toolApprovalMetadata:s,toolName:a,isNetwork:l})]})},_xe=({workflowId:e,workflow:t,runId:r})=>{const{Link:n}=Gr();return p.jsxs(p.Fragment,{children:[p.jsxs("div",{className:"flex items-center gap-2 pb-2",children:[p.jsx(Ke,{as:n,href:`/workflows/${e}/graph`,children:"Go to workflow"}),r&&p.jsx(Ke,{as:n,href:`/workflows/${e}/graph/${r}`,children:"See run"})]}),p.jsx("div",{className:"rounded-md overflow-hidden h-[60vh] w-full",children:p.jsx(HZe,{workflowId:e,workflow:t})})]})},FPr=e=>{const{setResult:t}=E.useContext(mp);E.useEffect(()=>{e&&t(e)},[e])},LPr=({agentId:e,messages:t=[],metadata:r,toolCallId:n,toolApprovalMetadata:i,toolName:s,isNetwork:o,suspendPayload:a,toolCalled:l})=>{const c=r?.mode==="network"?r.selectionReason:void 0,u=r?.mode==="network"?r.agentInput:void 0;let d=t.length>0;o&&(d=l??t.every(m=>m.type==="text"?!0:!!m.toolOutput));let f=typeof a=="string"?p.jsx("pre",{className:"whitespace-pre bg-surface4 p-4 rounded-md overflow-x-auto",children:a}):p.jsx(Hc,{data:a,"data-testid":"tool-suspend-payload"});return p.jsxs(j6,{"data-testid":"agent-badge",icon:p.jsx(ea,{className:"text-accent1"}),title:e,initialCollapsed:!1,extraInfo:r?.mode==="network"&&p.jsx(nte,{selectionReason:c??"",input:u}),children:[t.map((m,g)=>{if(m.type==="text")return p.jsx(XBe,{children:m.content},g);let v;try{v=typeof m.toolOutput=="string"?JSON.parse(m.toolOutput):m.toolOutput}catch{v=m.toolOutput}return p.jsx(me.Fragment,{children:p.jsx(eqe,{toolName:m.toolName,argsText:typeof m.args=="string"?m.args:JSON.stringify(m.args),result:v,args:m.args,status:{type:"complete"},type:"tool-call",toolCallId:m.toolCallId,addResult:()=>{},resume:()=>{},metadata:{mode:"stream"}})},g)}),f!==void 0&&a&&p.jsxs("div",{children:[p.jsx("p",{className:"font-medium pb-2",children:"Agent suspend payload"}),f]}),p.jsx(ite,{toolCalled:d,toolCallId:n,toolApprovalMetadata:i,toolName:s,isNetwork:o})]})},KZe=({threadId:e,agentId:t,memory:r})=>{const n=or(),{requestContext:i}=wi();return Ri({queryKey:["memory","messages",e,t,"requestContext"],queryFn:()=>e?n.listThreadMessages(e,{agentId:t,requestContext:i}):null,enabled:r&&!!e,staleTime:0,gcTime:0,retry:!1,refetchOnWindowFocus:!1})},zPr=({agentId:e,result:t,metadata:r,toolCallId:n,toolApprovalMetadata:i,toolName:s,isNetwork:o,suspendPayload:a,toolCalled:l})=>{const{data:c,isLoading:u}=KZe({threadId:t?.subAgentThreadId,agentId:e,memory:!0});if(u)return p.jsx(mte,{});const d=c?.messages?GBe(c.messages):[],f=t?.childMessages??_3t(d);return p.jsx(LPr,{agentId:e,messages:f,metadata:r,toolCallId:n,toolApprovalMetadata:i,toolName:s,isNetwork:o,suspendPayload:a,toolCalled:l})},eqe=({toolName:e,result:t,args:r,...n})=>p.jsx(ote,{workflowId:"",withoutTimeTravel:!0,children:p.jsx(BPr,{toolName:e,result:t,args:r,...n})}),BPr=({toolName:e,result:t,args:r,metadata:n,toolCallId:i,...s})=>{const o=n?.mode==="network"&&n.from==="AGENT"||e.startsWith("agent-"),a=n?.mode==="network"&&n.from==="WORKFLOW"||e.startsWith("workflow-"),l=n?.mode==="network",c=e.startsWith("agent-")?e.substring(6):e,u=e.startsWith("workflow-")?e.substring(9):e,d=(n?.mode==="stream"||n?.mode==="network")&&n?.requireApprovalMetadata,f=(n?.mode==="stream"||n?.mode==="network")&&n?.suspendedTools,m=d?d?.[e]??d?.[i]:void 0,g=f?f?.[e]:void 0,v=n?.mode==="network"&&n?.hasMoreMessages?!0:void 0;if(FPr(t),o)return p.jsx(zPr,{agentId:c,result:t,metadata:n,toolCallId:i,toolApprovalMetadata:m,toolName:e,isNetwork:l,suspendPayload:g?.suspendPayload,toolCalled:v});if(a){const b=n?.mode==="stream"||n?.mode==="network";return p.jsx(jPr,{workflowId:u,isStreaming:b,result:t,metadata:n,toolCallId:i,toolApprovalMetadata:m,suspendPayload:g?.suspendPayload,toolName:e,isNetwork:l,toolCalled:v})}return p.jsx(T2r,{toolName:e,args:r,result:t,toolOutput:t?.toolOutput||[],metadata:n,toolCallId:i,toolApprovalMetadata:m,suspendPayload:g?.suspendPayload,isNetwork:l,toolCalled:v})},VPr=({text:e})=>{const[t,r]=E.useState(!1);return p.jsxs("div",{className:"mb-2 space-y-2",children:[p.jsxs("button",{onClick:()=>r(n=>!n),className:"flex items-center gap-2",children:[p.jsx(He,{children:p.jsx(NN,{className:ie("transition-all",t?"rotate-90":"rotate-180")})}),p.jsxs(sr,{icon:p.jsx(HCe,{}),children:[t?"Show":"Hide"," reasoning"]})]}),t?null:p.jsx("div",{className:"rounded-lg bg-surface4 p-2 border border-border-1",children:p.jsx("pre",{className:"whitespace-pre-wrap text-ui-sm leading-ui-sm text-neutral6",children:e})})]})},kxe=e=>p.jsx("svg",{className:"h-3 w-3",viewBox:"0 0 320 320",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",...e,children:p.jsx("path",{d:"m297.06 130.97c7.26-21.79 4.76-45.66-6.85-65.48-17.46-30.4-52.56-46.04-86.84-38.68-15.25-17.18-37.16-26.95-60.13-26.81-35.04-.08-66.13 22.48-76.91 55.82-22.51 4.61-41.94 18.7-53.31 38.67-17.59 30.32-13.58 68.54 9.92 94.54-7.26 21.79-4.76 45.66 6.85 65.48 17.46 30.4 52.56 46.04 86.84 38.68 15.24 17.18 37.16 26.95 60.13 26.8 35.06.09 66.16-22.49 76.94-55.86 22.51-4.61 41.94-18.7 53.31-38.67 17.57-30.32 13.55-68.51-9.94-94.51zm-120.28 168.11c-14.03.02-27.62-4.89-38.39-13.88.49-.26 1.34-.73 1.89-1.07l63.72-36.8c3.26-1.85 5.26-5.32 5.24-9.07v-89.83l26.93 15.55c.29.14.48.42.52.74v74.39c-.04 33.08-26.83 59.9-59.91 59.97zm-128.84-55.03c-7.03-12.14-9.56-26.37-7.15-40.18.47.28 1.3.79 1.89 1.13l63.72 36.8c3.23 1.89 7.23 1.89 10.47 0l77.79-44.92v31.1c.02.32-.13.63-.38.83l-64.41 37.19c-28.69 16.52-65.33 6.7-81.92-21.95zm-16.77-139.09c7-12.16 18.05-21.46 31.21-26.29 0 .55-.03 1.52-.03 2.2v73.61c-.02 3.74 1.98 7.21 5.23 9.06l77.79 44.91-26.93 15.55c-.27.18-.61.21-.91.08l-64.42-37.22c-28.63-16.58-38.45-53.21-21.95-81.89zm221.26 51.49-77.79-44.92 26.93-15.54c.27-.18.61-.21.91-.08l64.42 37.19c28.68 16.57 38.51 53.26 21.94 81.94-7.01 12.14-18.05 21.44-31.2 26.28v-75.81c.03-3.74-1.96-7.2-5.2-9.06zm26.8-40.34c-.47-.29-1.3-.79-1.89-1.13l-63.72-36.8c-3.23-1.89-7.23-1.89-10.47 0l-77.79 44.92v-31.1c-.02-.32.13-.63.38-.83l64.41-37.16c28.69-16.55 65.37-6.7 81.91 22 6.99 12.12 9.52 26.31 7.15 40.1zm-168.51 55.43-26.94-15.55c-.29-.14-.48-.42-.52-.74v-74.39c.02-33.12 26.89-59.96 60.01-59.94 14.01 0 27.57 4.92 38.34 13.88-.49.26-1.33.73-1.89 1.07l-63.72 36.8c-3.26 1.85-5.26 5.31-5.24 9.06l-.04 89.79zm14.63-31.54 34.65-20.01 34.65 20v40.01l-34.65 20-34.65-20z"})}),UPr=e=>p.jsx("svg",{className:"h-3 w-3",viewBox:"0 0 320 320",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",...e,children:p.jsx("path",{d:"m297.06 130.97c7.26-21.79 4.76-45.66-6.85-65.48-17.46-30.4-52.56-46.04-86.84-38.68-15.25-17.18-37.16-26.95-60.13-26.81-35.04-.08-66.13 22.48-76.91 55.82-22.51 4.61-41.94 18.7-53.31 38.67-17.59 30.32-13.58 68.54 9.92 94.54-7.26 21.79-4.76 45.66 6.85 65.48 17.46 30.4 52.56 46.04 86.84 38.68 15.24 17.18 37.16 26.95 60.13 26.8 35.06.09 66.16-22.49 76.94-55.86 22.51-4.61 41.94-18.7 53.31-38.67 17.57-30.32 13.55-68.51-9.94-94.51zm-120.28 168.11c-14.03.02-27.62-4.89-38.39-13.88.49-.26 1.34-.73 1.89-1.07l63.72-36.8c3.26-1.85 5.26-5.32 5.24-9.07v-89.83l26.93 15.55c.29.14.48.42.52.74v74.39c-.04 33.08-26.83 59.9-59.91 59.97zm-128.84-55.03c-7.03-12.14-9.56-26.37-7.15-40.18.47.28 1.3.79 1.89 1.13l63.72 36.8c3.23 1.89 7.23 1.89 10.47 0l77.79-44.92v31.1c.02.32-.13.63-.38.83l-64.41 37.19c-28.69 16.52-65.33 6.7-81.92-21.95zm-16.77-139.09c7-12.16 18.05-21.46 31.21-26.29 0 .55-.03 1.52-.03 2.2v73.61c-.02 3.74 1.98 7.21 5.23 9.06l77.79 44.91-26.93 15.55c-.27.18-.61.21-.91.08l-64.42-37.22c-28.63-16.58-38.45-53.21-21.95-81.89zm221.26 51.49-77.79-44.92 26.93-15.54c.27-.18.61-.21.91-.08l64.42 37.19c28.68 16.57 38.51 53.26 21.94 81.94-7.01 12.14-18.05 21.44-31.2 26.28v-75.81c.03-3.74-1.96-7.2-5.2-9.06zm26.8-40.34c-.47-.29-1.3-.79-1.89-1.13l-63.72-36.8c-3.23-1.89-7.23-1.89-10.47 0l-77.79 44.92v-31.1c-.02-.32.13-.63.38-.83l64.41-37.16c28.69-16.55 65.37-6.7 81.91 22 6.99 12.12 9.52 26.31 7.15 40.1zm-168.51 55.43-26.94-15.55c-.29-.14-.48-.42-.52-.74v-74.39c.02-33.12 26.89-59.96 60.01-59.94 14.01 0 27.57 4.92 38.34 13.88-.49.26-1.33.73-1.89 1.07l-63.72 36.8c-3.26 1.85-5.26 5.31-5.24 9.06l-.04 89.79zm14.63-31.54 34.65-20.01 34.65 20v40.01l-34.65 20-34.65-20z"})}),QPr=e=>p.jsx("svg",{className:"h-3 w-3",fill:"white",height:"78",strokeLinejoin:"round",viewBox:"0 0 16 16",width:"78",style:{color:"currentcolor"},...e,children:p.jsx("g",{transform:"translate(0,2)",children:p.jsx("path",{d:"M11.375 0h-2.411L13.352 11.13h2.411L11.375 0ZM4.4 0 0 11.13h2.46l0.9-2.336h4.604l0.9 2.336h2.46L6.924 0H4.4Zm-0.244 6.723 1.506-3.909 1.506 3.909H4.156Z",fill:"currentColor"})})}),ZPr=e=>p.jsx("svg",{className:"h-3 w-3",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",...e,children:p.jsx("path",{d:"M7.402 13.8777C9.45763 13.4674 11.1555 13.128 11.175 13.1233L11.2104 13.1148L9.2697 10.507C8.2023 9.07276 7.32898 7.8937 7.32898 7.88691C7.32898 7.87404 9.33293 1.63997 9.3442 1.61779C9.34797 1.61037 10.7117 4.27017 12.65 8.06532C14.4647 11.6184 15.9608 14.5479 15.9747 14.5754L16 14.6253L9.83224 14.6244L3.66449 14.6235L7.402 13.8777ZM0 13.0824C0 13.0787 0.914457 11.2855 2.03212 9.09735L4.06425 5.11896L6.43245 2.87384C7.73497 1.63902 8.80417 0.627201 8.80845 0.625356C8.81274 0.623511 8.79561 0.672228 8.77038 0.733617C8.74515 0.795006 7.58796 3.59893 6.19884 6.96455L3.67317 13.0839L1.83659 13.0865C0.826464 13.0879 0 13.0861 0 13.0824Z",fill:"#0089D6",style:{fill:"#0089D6",fillOpacity:1}})}),qPr=e=>p.jsxs("svg",{className:"h-3 w-3",width:"16",height:"16",viewBox:"0 0 181 108",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[p.jsxs("g",{clipPath:"url(#clip0_1480_1723)",children:[p.jsx("path",{d:"M51.2203 39.3158C51.2203 41.5066 51.4572 43.2829 51.8717 44.5856C52.3453 45.8882 52.9374 47.3093 53.7664 48.8487C54.0624 49.3224 54.1809 49.7961 54.1809 50.2106C54.1809 50.8027 53.8256 51.3948 53.0559 51.9869L49.3256 54.4737C48.7927 54.829 48.2598 55.0066 47.7861 55.0066C47.194 55.0066 46.6019 54.7106 46.0098 54.1777C45.1809 53.2895 44.4703 52.3422 43.8782 51.3948C43.2861 50.3882 42.694 49.2632 42.0427 47.9014C37.4243 53.3487 31.6217 56.0724 24.6348 56.0724C19.6611 56.0724 15.694 54.6514 12.7927 51.8093C9.8914 48.9672 8.41113 45.1777 8.41113 40.4408C8.41113 35.4079 10.1874 31.3224 13.7993 28.2435C17.4111 25.1645 22.2072 23.6251 28.3059 23.6251C30.319 23.6251 32.3914 23.8027 34.5822 24.0987C36.773 24.3948 39.023 24.8685 41.3914 25.4014V21.079C41.3914 16.579 40.444 13.4408 38.6085 11.6053C36.7138 9.76979 33.5164 8.88163 28.9572 8.88163C26.8848 8.88163 24.7532 9.11847 22.5624 9.65137C20.3717 10.1843 18.2401 10.8356 16.1677 11.6645C15.2203 12.079 14.5098 12.3158 14.0953 12.4343C13.6809 12.5527 13.3848 12.6119 13.148 12.6119C12.319 12.6119 11.9046 12.0198 11.9046 10.7764V7.87505C11.9046 6.92768 12.023 6.21716 12.319 5.80268C12.6151 5.38821 13.148 4.97374 13.9769 4.55926C16.0493 3.49347 18.5361 2.60531 21.4374 1.89479C24.3388 1.12505 27.4177 0.769788 30.6743 0.769788C37.7203 0.769788 42.8717 2.36847 46.1875 5.56584C49.444 8.76321 51.1019 13.6185 51.1019 20.1316V39.3158H51.2203ZM27.1809 48.3158C29.1348 48.3158 31.148 47.9606 33.2796 47.2501C35.4111 46.5395 37.3059 45.2369 38.9046 43.4606C39.8519 42.3356 40.5625 41.0922 40.9177 39.6711C41.273 38.2501 41.5098 36.5329 41.5098 34.5198V32.0329C39.7927 31.6185 37.9572 31.2632 36.0624 31.0264C34.1677 30.7895 32.3322 30.6711 30.4967 30.6711C26.5296 30.6711 23.6282 31.4408 21.6743 33.0395C19.7203 34.6382 18.773 36.8882 18.773 39.8487C18.773 42.6316 19.4835 44.704 20.9638 46.1251C22.3848 47.6053 24.4572 48.3158 27.1809 48.3158ZM74.7269 54.7106C73.6611 54.7106 72.9506 54.5329 72.4769 54.1185C72.0032 53.7632 71.5888 52.9343 71.2335 51.8093L57.319 6.03953C56.9638 4.85531 56.7861 4.08558 56.7861 3.6711C56.7861 2.72374 57.2598 2.19084 58.2072 2.19084H64.0098C65.1348 2.19084 65.9046 2.36847 66.319 2.78295C66.7927 3.13821 67.148 3.96716 67.5032 5.09216L77.4506 44.2895L86.6874 5.09216C86.9835 3.90795 87.3388 3.13821 87.8124 2.78295C88.2861 2.42768 89.1151 2.19084 90.1809 2.19084H94.9177C96.0427 2.19084 96.8124 2.36847 97.2861 2.78295C97.7598 3.13821 98.1743 3.96716 98.4111 5.09216L107.766 44.7632L118.01 5.09216C118.365 3.90795 118.78 3.13821 119.194 2.78295C119.668 2.42768 120.437 2.19084 121.503 2.19084H127.01C127.957 2.19084 128.49 2.66453 128.49 3.6711C128.49 3.96716 128.431 4.26321 128.372 4.61847C128.312 4.97374 128.194 5.44742 127.957 6.09874L113.687 51.8685C113.332 53.0527 112.918 53.8224 112.444 54.1777C111.97 54.5329 111.201 54.7698 110.194 54.7698H105.102C103.977 54.7698 103.207 54.5922 102.733 54.1777C102.26 53.7632 101.845 52.9935 101.608 51.8093L92.4309 13.6185L83.3125 51.7501C83.0164 52.9343 82.6611 53.704 82.1874 54.1185C81.7138 54.5329 80.8848 54.7106 79.819 54.7106H74.7269ZM150.812 56.3093C147.734 56.3093 144.655 55.954 141.694 55.2435C138.733 54.5329 136.424 53.7632 134.885 52.8751C133.937 52.3422 133.286 51.7501 133.049 51.2172C132.812 50.6843 132.694 50.0922 132.694 49.5593V46.5395C132.694 45.2961 133.168 44.704 134.056 44.704C134.411 44.704 134.766 44.7632 135.122 44.8816C135.477 45.0001 136.01 45.2369 136.602 45.4737C138.615 46.3619 140.806 47.0724 143.115 47.5461C145.484 48.0198 147.793 48.2566 150.161 48.2566C153.891 48.2566 156.793 47.6053 158.806 46.3027C160.819 45 161.885 43.1053 161.885 40.6777C161.885 39.0198 161.352 37.6579 160.286 36.5329C159.22 35.4079 157.207 34.4014 154.306 33.454L145.72 30.7895C141.398 29.4277 138.201 27.4145 136.247 24.7501C134.293 22.1448 133.286 19.2435 133.286 16.1645C133.286 13.6777 133.819 11.4869 134.885 9.59216C135.951 7.69742 137.372 6.03953 139.148 4.73689C140.924 3.37505 142.937 2.36847 145.306 1.65795C147.674 0.94742 150.161 0.651367 152.766 0.651367C154.069 0.651367 155.431 0.710578 156.734 0.888209C158.095 1.06584 159.339 1.30268 160.582 1.53953C161.766 1.83558 162.891 2.13163 163.957 2.48689C165.023 2.84216 165.852 3.19742 166.444 3.55268C167.273 4.02637 167.865 4.50005 168.22 5.03295C168.576 5.50663 168.753 6.15795 168.753 6.98689V9.76979C168.753 11.0132 168.28 11.6645 167.391 11.6645C166.918 11.6645 166.148 11.4277 165.141 10.954C161.766 9.41453 157.977 8.64479 153.773 8.64479C150.398 8.64479 147.734 9.17768 145.898 10.3027C144.062 11.4277 143.115 13.1448 143.115 15.5724C143.115 17.2303 143.707 18.6514 144.891 19.7764C146.076 20.9014 148.266 22.0264 151.405 23.0329L159.812 25.6974C164.076 27.0593 167.155 28.954 168.99 31.3816C170.826 33.8093 171.714 36.5922 171.714 39.6711C171.714 42.2172 171.181 44.5264 170.174 46.5395C169.108 48.5527 167.687 50.329 165.852 51.7501C164.016 53.2303 161.826 54.2961 159.28 55.0658C156.615 55.8948 153.832 56.3093 150.812 56.3093Z",fill:"currentColor"}),p.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M162.004 85.0856C142.524 99.4738 114.221 107.112 89.8855 107.112C55.7803 107.112 25.05 94.5001 1.83948 73.5396C0.00394917 71.8817 1.66184 69.6317 3.85263 70.9343C28.9579 85.5001 59.925 94.3225 91.9579 94.3225C113.57 94.3225 137.313 89.8225 159.162 80.5856C162.418 79.1054 165.201 82.7172 162.004 85.0856Z",fill:"#FF9900"}),p.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M170.115 75.8487C167.628 72.6513 153.654 74.3092 147.319 75.079C145.424 75.3158 145.128 73.6579 146.845 72.4145C157.976 64.5987 176.272 66.8487 178.404 69.454C180.536 72.1184 177.812 90.4145 167.391 99.1776C165.792 100.539 164.253 99.8289 164.963 98.0526C167.332 92.1908 172.601 78.9868 170.115 75.8487Z",fill:"#FF9900"})]}),p.jsx("defs",{children:p.jsx("clipPath",{id:"clip0_1480_1723",children:p.jsx("rect",{width:"180",height:"107.763",fill:"white",transform:"translate(0.0625)"})})})]}),HPr=e=>p.jsxs("svg",{className:"h-3 w-3",xmlns:"http://www.w3.org/2000/svg",width:"17",height:"18",fill:"none",...e,children:[p.jsx("mask",{id:"mask0_174_2406",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"17",height:"18",children:p.jsx("path",{d:"M17 0.5H0V17.5H17V0.5Z",fill:"white"})}),p.jsxs("g",{mask:"url(#mask0_174_2406)",children:[p.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.50773 10.6219C5.9653 10.6219 6.8755 10.5968 8.13362 10.0788C9.59973 9.47518 12.5166 8.37942 14.6208 7.2539C16.0924 6.46668 16.7375 5.42553 16.7375 4.02344C16.7375 2.07751 15.16 0.5 13.2141 0.5H5.06095C2.26586 0.5 0 2.76586 0 5.56095C0 8.35604 2.12151 10.6219 5.50773 10.6219Z",fill:"#39594D"}),p.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.88672 14.107C6.88672 12.7369 7.71155 11.5016 8.97699 10.9764L11.5446 9.9108C14.1417 8.83294 17.0003 10.7415 17.0003 13.5535C17.0003 15.732 15.2339 17.4979 13.0553 17.4973L10.2754 17.4966C8.40372 17.4961 6.88672 15.9787 6.88672 14.107Z",fill:"#D18EE2"}),p.jsx("path",{d:"M2.91749 11.2891C1.30623 11.2891 0 12.5952 0 14.2065V14.5844C0 16.1956 1.30618 17.5018 2.91744 17.5018C4.5287 17.5018 5.83493 16.1956 5.83493 14.5844V14.2065C5.83493 12.5952 4.52875 11.2891 2.91749 11.2891Z",fill:"#FF7759"})]})]}),WPr=e=>p.jsxs("svg",{className:"h-3 w-3","data-testid":"geist-icon",height:"78",strokeLinejoin:"round",viewBox:"0 0 160 59",width:"104",style:{color:"currentcolor"},...e,children:[p.jsx("mask",{id:"mask0_4345_1846",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"160",height:"59",style:{maskType:"luminance"},children:p.jsx("path",{d:"M0.273438 0.219727H159.216V58.1817H0.273438V0.219727Z",fill:"white"})}),p.jsx("g",{mask:"url(#mask0_4345_1846)",children:p.jsx("path",{d:"M95.4635 0.314595C84.4822 0.314595 75.5599 9.19525 75.5599 20.1677C75.5599 31.1402 84.4632 40.0208 95.4635 40.0208C106.464 40.0208 115.367 31.1402 115.367 20.1677C115.348 9.21427 106.445 0.333611 95.4635 0.314595ZM95.4635 32.5664C88.6002 32.5664 83.0333 27.0136 83.0333 20.1677C83.0333 13.3218 88.6002 7.76902 95.4635 7.76902C102.327 7.76902 107.894 13.3218 107.894 20.1677C107.894 27.0136 102.327 32.5664 95.4635 32.5664ZM67.9912 0.39066C67.3049 0.314595 66.6376 0.276562 65.9513 0.276562C65.6081 0.276562 65.284 0.276562 64.9599 0.295578C64.6358 0.314595 64.2926 0.333611 63.9685 0.352628C62.634 0.44771 61.2995 0.675906 60.0031 1.03722C57.3531 1.74082 54.8556 2.99591 52.7013 4.68836C50.4898 6.43787 48.7358 8.68181 47.5347 11.23C46.9437 12.5041 46.5052 13.8543 46.2193 15.2234C46.0858 15.908 45.9905 16.5926 45.9142 17.2772C45.8952 17.6195 45.857 17.9618 45.857 18.3041L45.838 18.8175V19.293L45.8761 32.5854L45.9142 39.2221H53.3685L53.4067 32.5854L53.4448 19.293V18.5893C53.4448 18.3802 53.4829 18.171 53.4829 17.9618C53.5211 17.5434 53.5973 17.1441 53.6736 16.7257C53.8452 15.9271 54.093 15.1474 54.4362 14.4057C55.1225 12.9225 56.152 11.6293 57.4293 10.6025C58.7639 9.53755 60.3081 8.75787 61.9477 8.3205C62.7865 8.0923 63.6635 7.94017 64.5405 7.8641C64.7693 7.84509 64.979 7.82607 65.2078 7.82607C65.4365 7.82607 65.6653 7.80705 65.875 7.80705C66.2944 7.80705 66.7329 7.82607 67.1524 7.8641C68.8491 8.03525 70.4887 8.54869 71.9948 9.38541L75.7124 2.93886C73.3484 1.56968 70.7175 0.694923 67.9912 0.39066ZM20.3484 0.219513C9.36711 0.124431 0.36855 8.92902 0.273226 19.8825C0.177902 30.8359 9.00488 39.8116 19.9862 39.9067H26.8876V32.4713H20.3484C13.4851 32.5474 7.84193 27.0707 7.76567 20.2057C7.68941 13.3408 13.1801 7.73099 20.0624 7.65492H20.3484C27.2117 7.65492 32.7786 13.2077 32.8167 20.0536V38.3284C32.8167 45.1172 27.2689 50.651 20.4819 50.7271C17.2218 50.708 14.1142 49.3959 11.8265 47.0949L6.54553 52.3625C10.206 56.0326 15.1628 58.1244 20.3484 58.1625H20.6153C31.4632 58.0103 40.1757 49.2248 40.2329 38.4044V19.5592C39.966 8.81492 31.1391 0.238529 20.3484 0.219513ZM139.389 0.314595C128.407 0.314595 119.485 9.19525 119.504 20.1677C119.504 31.1212 128.407 40.0018 139.389 40.0018H146.195V32.5664H139.389C132.525 32.5664 126.958 27.0136 126.958 20.1677C126.958 13.3218 132.525 7.76902 139.389 7.76902C145.833 7.76902 151.209 12.6943 151.781 19.1028H151.762V57.2116H159.216V20.1677C159.216 9.21427 150.351 0.314595 139.389 0.314595Z",fill:"currentColor"})})]}),GPr=e=>p.jsx("svg",{className:"h-3 w-3",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1000 1000",width:"78",height:"78",style:{color:"currentcolor"},...e,children:p.jsxs("g",{children:[p.jsx("polygon",{fill:"currentColor",points:"226.83 411.15 501.31 803.15 623.31 803.15 348.82 411.15 226.83 411.15"}),p.jsx("polygon",{fill:"currentColor",points:"348.72 628.87 226.69 803.15 348.77 803.15 409.76 716.05 348.72 628.87"}),p.jsx("polygon",{fill:"currentColor",points:"651.23 196.85 440.28 498.12 501.32 585.29 773.31 196.85 651.23 196.85"}),p.jsx("polygon",{fill:"currentColor",points:"673.31 383.25 673.31 803.15 773.31 803.15 773.31 240.44 673.31 383.25"})]})}),XPr=e=>p.jsxs("svg",{className:"h-3 w-3",xmlns:"http://www.w3.org/2000/svg",width:"176",height:"162",viewBox:"0 0 176 162",fill:"none",...e,children:[p.jsx("rect",{x:"15",y:"1",width:"32",height:"32",fill:"#FFCD00",stroke:"#636363","stroke-opacity":"0.2",strokeWidth:"0.5"}),p.jsx("rect",{x:"143",y:"1",width:"32",height:"32",fill:"#FFCD00",stroke:"#636363","stroke-opacity":"0.2",strokeWidth:"0.5"}),p.jsx("rect",{x:"15",y:"33",width:"32",height:"32",fill:"#FFA400",stroke:"#636363","stroke-opacity":"0.2",strokeWidth:"0.5"}),p.jsx("rect",{x:"47",y:"33",width:"32",height:"32",fill:"#FFA400",stroke:"#636363","stroke-opacity":"0.2",strokeWidth:"0.5"}),p.jsx("rect",{x:"111",y:"33",width:"32",height:"32",fill:"#FFA400",stroke:"#636363","stroke-opacity":"0.2",strokeWidth:"0.5"}),p.jsx("rect",{x:"143",y:"33",width:"32",height:"32",fill:"#FFA400",stroke:"#636363","stroke-opacity":"0.2",strokeWidth:"0.5"}),p.jsx("rect",{x:"15",y:"65",width:"32",height:"32",fill:"#FF7100",stroke:"#636363","stroke-opacity":"0.2",strokeWidth:"0.5"}),p.jsx("rect",{x:"47",y:"65",width:"32",height:"32",fill:"#FF7100",stroke:"#636363","stroke-opacity":"0.2",strokeWidth:"0.5"}),p.jsx("rect",{x:"79",y:"65",width:"32",height:"32",fill:"#FF7100",stroke:"#636363","stroke-opacity":"0.2",strokeWidth:"0.5"}),p.jsx("rect",{x:"111",y:"65",width:"32",height:"32",fill:"#FF7100",stroke:"#636363","stroke-opacity":"0.2",strokeWidth:"0.5"}),p.jsx("rect",{x:"143",y:"65",width:"32",height:"32",fill:"#FF7100",stroke:"#636363","stroke-opacity":"0.2",strokeWidth:"0.5"}),p.jsx("rect",{x:"15",y:"97",width:"32",height:"32",fill:"#FF4902",stroke:"#636363","stroke-opacity":"0.2",strokeWidth:"0.5"}),p.jsx("rect",{x:"79",y:"97",width:"32",height:"32",fill:"#FF4902",stroke:"#636363","stroke-opacity":"0.2",strokeWidth:"0.5"}),p.jsx("rect",{x:"143",y:"97",width:"32",height:"32",fill:"#FF4902",stroke:"#636363","stroke-opacity":"0.2",strokeWidth:"0.5"}),p.jsx("rect",{x:"15",y:"129",width:"32",height:"32",fill:"#FF0006",stroke:"#636363","stroke-opacity":"0.2",strokeWidth:"0.5"}),p.jsx("rect",{x:"143",y:"129",width:"32",height:"32",fill:"#FF0006",stroke:"#636363","stroke-opacity":"0.2",strokeWidth:"0.5"}),p.jsx("rect",{y:"1",width:"16",height:"160",fill:"black"}),p.jsx("rect",{x:"63",y:"97",width:"16",height:"32",fill:"black"}),p.jsx("rect",{x:"95",y:"33",width:"16",height:"32",fill:"black"}),p.jsx("rect",{x:"127",y:"1",width:"16",height:"32",fill:"black"}),p.jsx("rect",{x:"127",y:"97",width:"16",height:"64",fill:"black"})]}),YPr=e=>p.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"128",height:"113",viewBox:"0 0 128 113",children:[p.jsxs("g",{clipPath:"url(#clip0_236_138)",...e,children:[p.jsx("path",{d:"M34.593 94.0509H33.3844L27.3514 88.0179V86.8094L36.5743 77.5866H42.9639L43.8158 78.4385V84.8281L34.593 94.0509Z",fill:e.fill||"#05BDBA"}),p.jsx("path",{d:"M27.3514 25.816V24.6074L33.3844 18.5744H34.593L43.8158 27.7972V34.1868L42.9639 35.0388H36.5743L27.3514 25.816Z",fill:e.fill||"#05BDBA"}),p.jsx("path",{d:"M80.4594 74.6047H71.6824L70.9493 73.8717V53.3259C70.9493 49.6705 69.5129 46.8372 65.1046 46.7382C62.836 46.6787 60.2405 46.7382 57.4668 46.8471L57.0507 47.2731V73.8618L56.3176 74.5948H47.5406L46.8075 73.8618V38.7636L47.5406 38.0305H67.2939C74.9713 38.0305 81.1925 44.2517 81.1925 51.9291V73.8717L80.4594 74.6047Z",fill:e.fill||"#014847"}),p.jsx("path",{d:"M35.8412 61.4491H0.73307L0 60.716V51.9192L0.73307 51.1861H35.8412L36.5743 51.9192V60.716L35.8412 61.4491Z",fill:e.fill||"#05BDBA"}),p.jsx("path",{d:"M127.277 61.4491H92.1687L91.4356 60.716V51.9192L92.1687 51.1861H127.277L128.01 51.9192V60.716L127.277 61.4491Z",fill:e.fill||"#05BDBA"}),p.jsx("path",{d:"M58.9428 27.0642V0.73307L59.6759 0H68.4727L69.2058 0.73307V27.0642L68.4727 27.7972H59.6759L58.9428 27.0642Z",fill:e.fill||"#05BDBA"}),p.jsx("path",{d:"M58.9428 111.902V85.5711L59.6759 84.838H68.4727L69.2058 85.5711V111.902L68.4727 112.635H59.6759L58.9428 111.902Z",fill:e.fill||"#05BDBA"})]}),p.jsx("defs",{children:p.jsx("clipPath",{id:"clip0_236_138",children:p.jsx("rect",{width:"128",height:"112.635",fill:"white"})})})]}),A4={"openai.chat":p.jsx(kxe,{}),"openai.responses":p.jsx(kxe,{}),"anthropic.chat":p.jsx(UPr,{}),"anthropic.messages":p.jsx(QPr,{}),AZURE:p.jsx(ZPr,{}),AMAZON:p.jsx(qPr,{}),GOOGLE:p.jsx(u2r,{}),COHERE:p.jsx(HPr,{}),GROQ:p.jsx(WPr,{}),X_GROK:p.jsx(GPr,{}),MISTRAL:p.jsx(XPr,{}),netlify:p.jsx(YPr,{fill:"white"})},cf=e=>e.includes(".")?e.split(".")[0]:e,GZ=({providerId:e,className:t="",size:r=20})=>{const[n,i]=E.useState(!1),s=cf(e),o=s.replace(/\//g,"-").toLowerCase(),l=(u=>({openai:"openai.chat",anthropic:"anthropic.messages",google:"GOOGLE",xai:"X_GROK",groq:"GROQ",deepseek:"deepseek",together:"together",mistral:"mistral",perplexity:"perplexity",fireworks_ai:"fireworks",openrouter:"openrouter",netlify:"netlify"})[u]||"DEFAULT")(s);return["netlify"].includes(o)||n||!e?A4[l]?p.jsx(He,{children:A4[l]}):p.jsx("div",{className:`w-[${r}px] h-[${r}px] bg-gray-200 rounded ${t}`}):p.jsx("img",{src:`https://models.dev/logos/${o}.svg`,alt:`${e} logo`,width:r,height:r,className:t,onError:()=>i(!0),loading:"lazy",style:{width:`${r}px`,height:`${r}px`,objectFit:"contain",filter:"brightness(0) invert(1)",opacity:.9}})},JPr=({hasModelList:e})=>{const t=yEe(),r=t.id,n=t.content.every(({type:o,metadata:a})=>o==="tool-call"||o==="reasoning"||o==="text"&&a?.mode==="network"&&a?.completionResult),i=t.metadata?.custom?.modelMetadata,s=e&&i;return p.jsxs(ZW,{className:"max-w-full","data-message-id":r,children:[p.jsx("div",{className:"text-neutral6 text-ui-lg leading-ui-lg",children:p.jsx(qW,{components:{Text:w2r,tools:{Fallback:eqe},Reasoning:VPr}})}),!n&&p.jsxs("div",{className:ie("h-6 pt-4 flex gap-2 items-center",{"pb-1":s}),children:[s&&p.jsxs("div",{className:"flex items-center gap-1.5",children:[p.jsx(GZ,{providerId:i.modelProvider,size:14}),p.jsxs("span",{className:"text-ui-xs leading-ui-xs",children:[i.modelProvider,"/",i.modelId]})]}),p.jsx(KPr,{})]})]})},KPr=()=>p.jsxs(TEe,{hideWhenRunning:!0,autohide:"always",autohideFloat:"single-branch",className:"flex gap-1 items-center transition-all relative",children:[p.jsx(h_,{speaking:!1,children:p.jsx(Mst,{asChild:!0,children:p.jsx(dd,{tooltip:"Read aloud",children:p.jsx(Nct,{})})})}),p.jsx(h_,{speaking:!0,children:p.jsx(AEe,{asChild:!0,children:p.jsx(dd,{tooltip:"Stop",children:p.jsx(YCe,{})})})}),p.jsx(DEe,{asChild:!0,children:p.jsxs(dd,{tooltip:"Copy",className:"bg-transparent text-neutral3 hover:text-neutral6",children:[p.jsx(h_,{copied:!0,children:p.jsx(yd,{})}),p.jsx(h_,{copied:!1,children:p.jsx(nu,{})})]})})]}),P4="h-full w-full flex items-center justify-center",tqe=({data:e,url:t})=>{const[r,n]=E.useState(!1);return t?p.jsx("a",{href:t,className:P4,target:"_blank",rel:"noreferrer noopener",children:p.jsx(NB,{className:"text-accent2","aria-label":"View PDF"})}):p.jsxs(p.Fragment,{children:[p.jsx("button",{onClick:()=>n(!0),className:P4,type:"button",children:p.jsx(NB,{className:"text-accent2","aria-label":"View PDF"})}),p.jsx(e$r,{data:e,open:r,onOpenChange:n})]})},e$r=({data:e,open:t,onOpenChange:r})=>p.jsx(Uo,{open:t,onOpenChange:r,children:p.jsxs(bo,{className:"max-w-4xl",children:[p.jsxs(xo,{children:[p.jsx(So,{children:"PDF preview"}),p.jsx(Oo,{children:"Preview of the PDF document"})]}),p.jsx(wo,{children:t&&p.jsx("iframe",{src:e,width:"100%",height:"600px"})})]})}),rqe=({src:e})=>{const[t,r]=E.useState(!1);return p.jsxs(p.Fragment,{children:[p.jsx("button",{onClick:()=>r(!0),type:"button",className:P4,children:p.jsx("img",{src:e,className:"object-cover aspect-ratio max-h-[140px] max-w-[320px]",alt:"Preview"})}),p.jsx(t$r,{src:e,open:t,onOpenChange:r})]})},t$r=({src:e,open:t,onOpenChange:r})=>p.jsx(Uo,{open:t,onOpenChange:r,children:p.jsxs(bo,{className:"max-w-4xl",children:[p.jsxs(xo,{children:[p.jsx(So,{children:"Image preview"}),p.jsx(Oo,{children:"Preview of the image"})]}),p.jsx(wo,{children:t&&p.jsx("img",{src:e,alt:"Image"})})]})}),nqe=({data:e})=>{const[t,r]=E.useState(!1),n=e.replace(/<attachment[^>]*>/,"").replace(/<\/attachment>/g,"");return p.jsxs(p.Fragment,{children:[p.jsx("button",{onClick:()=>r(!0),className:P4,type:"button",children:p.jsx(NB,{className:"text-neutral3"})}),p.jsx(r$r,{data:n,open:t,onOpenChange:r})]})},r$r=({data:e,open:t,onOpenChange:r})=>p.jsx(Uo,{open:t,onOpenChange:r,children:p.jsxs(bo,{className:"max-w-4xl h-[80vh]",children:[p.jsxs(xo,{children:[p.jsx(So,{children:"Text preview"}),p.jsx(Oo,{children:"Preview of the text file"})]}),p.jsx(wo,{children:t&&p.jsx("div",{className:"whitespace-pre-wrap",children:e})})]})}),Qz=({type:e,contentType:t,nameSlot:r,src:n,data:i})=>p.jsx(FN,{children:p.jsxs($i,{children:[p.jsx(Ii,{asChild:!0,children:p.jsx("div",{className:"h-full w-full overflow-hidden rounded-lg",children:e==="image"?p.jsx(rqe,{src:n??""}):e==="document"&&t==="application/pdf"?p.jsx(tqe,{data:i??"",url:n}):p.jsx(nqe,{data:i??""})})}),p.jsx(gi,{side:"top",children:r})]})}),n$r=()=>{const t=yEe()?.id;return p.jsx(ZW,{className:"w-full flex items-end pb-4 flex-col","data-message-id":t,children:p.jsx("div",{className:"max-w-[366px] px-5 py-3 text-neutral6 text-ui-lg leading-ui-lg rounded-lg bg-surface3",children:p.jsx(qW,{components:{File:r=>{const n=r.data,i=n?.startsWith("https://");return p.jsx(Qz,{type:"document",contentType:r.mimeType,nameSlot:"Unknown filename",src:i?n:void 0,data:r.data})},Image:r=>p.jsx(Qz,{type:"image",nameSlot:"Unknown filename",src:r.image}),Text:r=>r.text.includes("<attachment name=")?p.jsx(Qz,{type:"document",contentType:"text/plain",nameSlot:"Unknown filename",src:void 0,data:r.text}):r.text}})})})};async function i$r(e){const t=await navigator.mediaDevices.getUserMedia({audio:!0}),r=new MediaRecorder(t);let n=[];return r.ondataavailable=i=>{n.push(i.data)},r.onstop=()=>{const i=new Blob(n,{type:"audio/webm"}),s=new File([i],`recording-${Date.now()}.webm`,{type:"audio/webm",lastModified:Date.now()});t.getTracks().forEach(o=>o.stop()),e(s)},r}const s$r=({language:e="en-US",agentId:t})=>{const r=or(),[n,i]=E.useState(null),{requestContext:s}=wi();E.useEffect(()=>{if(!t)return;const g=r.getAgent(t);(async()=>{try{(await g.voice.getSpeakers(s)).length>0?i(g):i(null)}catch{i(null)}})()},[t]);const{start:o,stop:a,isListening:l,transcript:c}=o$r({language:e}),{start:u,stop:d,isListening:f,transcript:m}=a$r({agent:n});return n?{start:u,stop:d,isListening:f,transcript:m}:{start:o,stop:a,isListening:l,transcript:c}},o$r=({language:e="en-US"})=>{const t=E.useRef(null),[r,n]=E.useState({isListening:!1,transcript:"",error:null}),i=()=>{t.current&&t.current.start()},s=()=>{t.current&&t.current.stop()};return E.useEffect(()=>{if(!("webkitSpeechRecognition"in window)&&!("SpeechRecognition"in window)){n(l=>({...l,error:"Speech Recognition not supported in this browser"}));return}const o=window.SpeechRecognition||window.webkitSpeechRecognition,a=new o;t.current=a,a.continuous=!0,a.lang=e,a.onstart=()=>{n(l=>({...l,isListening:!0}))},a.onresult=l=>{let c="";for(let u=l.resultIndex;u<l.results.length;u++){const d=l.results[u][0].transcript;l.results[u].isFinal&&(c+=d+" ")}n(u=>({...u,transcript:c}))},a.onerror=l=>{n(c=>({...c,error:`Error: ${l.error}`}))},a.onend=()=>n(l=>({...l,isListening:!1}))},[e]),{...r,start:i,stop:s}},a$r=({agent:e})=>{const[t,r]=E.useState(""),[n,i]=E.useState(null);if(!e)return{start:()=>{},stop:()=>{},isListening:!1,transcript:""};const s=l=>{e.voice.listen(l).then(c=>{r(c.text)})};return{start:()=>{i$r(s).then(l=>{i(l),l.start()})},stop:()=>{n?.stop(),i(null)},isListening:!!n,transcript:t}},l$r=()=>{const e=gT(),[t,r]=E.useState(!1);return E.useEffect(()=>{e.subscribe(()=>{const n=e.getState().attachments;r(n.length>0)})},[e]),t},c$r=e=>{const[t,r]=E.useState(void 0);return E.useEffect(()=>{if(!e){r(void 0);return}const n=URL.createObjectURL(e);return r(n),()=>{URL.revokeObjectURL(n)}},[e]),t},u$r=()=>{const{file:e,src:t}=s$(ACe(r=>{if(r.file)return r.file.name.startsWith("https://")?{src:r.file.name}:{file:r.file};const n=r.content?.filter(i=>i.type==="image")[0]?.image;return n?{src:n}:{}}));return c$r(e)??t},d$r=e=>{const[t,r]=E.useState({isLoading:!1,text:""});return E.useEffect(()=>{if(!e)return;(async()=>{r(s=>({...s,isLoading:!0}));const i=await e.text();r(s=>({...s,isLoading:!1,text:i}))})()},[e]),t},iqe=async e=>new Promise((t,r)=>{const n=new FileReader;n.onload=()=>{const i=n.result;typeof i=="string"?t(i):r(new Error("Failed to convert file to base64."))},n.onerror=i=>{r(i)},n.readAsDataURL(e)}),f$r=({document:e})=>{const{isLoading:t,text:r}=d$r(e.file);return p.jsx("div",{className:"flex items-center justify-center h-full w-full",children:t?p.jsx(Aa,{className:"animate-spin"}):p.jsx(nqe,{data:r})})},p$r=({document:e})=>{const[t,r]=E.useState({isLoading:!1,text:""});E.useEffect(()=>{let i=!1;return(async()=>{if(!e.file)return;r(a=>({...a,isLoading:!0}));const o=await iqe(e.file);i||r(a=>({...a,isLoading:!1,text:o}))})(),()=>{i=!0}},[e]);const n=e.file?.name.startsWith("https://");return p.jsx("div",{className:"flex items-center justify-center h-full w-full",children:t.isLoading?p.jsx(Aa,{className:"animate-spin"}):p.jsx(tqe,{data:t.text,url:n?e.file?.name:void 0})})},h$r=()=>{const e=s$(o=>o.type==="image"),t=s$(o=>o.type==="document"?o:void 0),r=u$r(),n=s$(o=>o.source!=="message"),s=t?.file?.name.startsWith("https://")?t?.file?.name:r;return p.jsx(p.Fragment,{children:p.jsxs("div",{className:"relative",children:[p.jsx(FN,{children:p.jsxs($i,{children:[p.jsx(SCe,{children:p.jsx(Ii,{asChild:!0,children:p.jsx("div",{className:"overflow-hidden size-16 rounded-lg bg-surface3 border border-border1 ",children:e?p.jsx(rqe,{src:s??""}):t?.contentType==="application/pdf"?p.jsx(p$r,{document:t}):t?p.jsx(f$r,{document:t}):null})})}),p.jsx(gi,{side:"top",children:p.jsx(OCe,{})})]})}),n&&p.jsx(m$r,{})]})})},m$r=()=>p.jsx($lt,{asChild:!0,children:p.jsx(dd,{tooltip:"Remove file",className:"absolute -right-3 -top-3 text-neutral3 hover:text-neutral6 rounded-full bg-surface1 hover:bg-surface2 rounded-full p-1",side:"top",children:p.jsx(He,{children:p.jsx(JCe,{})})})}),g$r=()=>l$r()?p.jsx("div",{className:"flex w-full flex-row items-center gap-4 pb-2",children:p.jsx(MCe,{components:{Attachment:h$r}})}):null,y$r=({multiple:e=!0,onChange:t}={})=>{const r=Wit(s=>!s.isEditing),n=gT(),i=E.useCallback(()=>{const s=document.createElement("input");s.type="file",s.multiple=e,s.hidden=!0;const o=n.getState().attachmentAccept;o&&o!=="*"&&(s.accept=o),document.body.appendChild(s),s.onchange=a=>{const l=a.target.files;if(l){for(const c of l)n.addAttachment(c),t?.(Array.from(l));document.body.removeChild(s)}},s.oncancel=()=>{(!s.files||s.files.length===0)&&document.body.removeChild(s)},s.click()},[n,e]);if(!r)return i},v$r={jpg:"image/jpg",jpeg:"image/jpeg",png:"image/png",gif:"image/gif",webp:"image/webp",svg:"image/svg+xml",bmp:"image/bmp",ico:"image/x-icon",pdf:"application/pdf"},b$r=async e=>{try{const t=await fetch(e,{method:"HEAD"});if(!t.ok)throw new Error("Failed to get file content type");const r=t.headers.get("content-type");if(!r)throw new Error("Failed to get file content type");return r}catch{const n=new URL(e).pathname.split(".").pop();if(!n)return;const i=n.toLowerCase();return v$r[i]}},x$r=({onOpenChange:e,open:t})=>{const r=gT(),n=y$r({onChange:()=>e(!1)}),i=async s=>{s.preventDefault();const a=new FormData(s.target).get("url-attachment")?.toString();if(a){const l=new File([],a,{type:await b$r(a)});r.addAttachment(l),e(!1)}};return p.jsx(Uo,{onOpenChange:e,open:t,children:p.jsxs(bo,{children:[p.jsxs(xo,{children:[p.jsx(So,{children:"Add attachment"}),p.jsx(Oo,{children:"Add a file attachment via URL or from your computer"})]}),p.jsxs(wo,{children:[p.jsxs("form",{onSubmit:i,className:"flex flex-row items-end gap-4",children:[p.jsxs("div",{className:"w-full space-y-1",children:[p.jsx(kf,{htmlFor:"url-attachment",className:"text-neutral3 text-ui-md",children:"Public URL"}),p.jsx(ko,{type:"text",name:"url-attachment",id:"url-attachment",className:"w-full",placeholder:"https://placehold.co/600x400/png"})]}),p.jsxs(Ke,{type:"submit",className:"!h-8",variant:"light",children:[p.jsx(He,{children:p.jsx(sTe,{})}),"Add"]})]}),p.jsx("hr",{className:"my-2 border border-border1"}),p.jsxs("div",{className:"space-y-2",children:[p.jsx(Ye,{variant:"ui-md",className:"text-neutral3",children:"Or from your computer"}),p.jsxs("button",{onClick:n,className:"w-full h-40 border border-border1 rounded-lg text-neutral3 border-dashed flex flex-col items-center justify-center gap-2 hover:bg-surface2 active:bg-surface3",children:[p.jsx(Dut,{className:"size-12"}),p.jsx(Ye,{variant:"header-md",children:"Add a local file"})]})]})]})]})})},sqe=E.createContext({threadInput:"",setThreadInput:()=>{}}),w$r=({children:e})=>{const[t,r]=E.useState("");return p.jsx(sqe.Provider,{value:{threadInput:t,setThreadInput:r},children:e})},oqe=()=>E.useContext(sqe),S$r=({agentName:e,agentId:t,hasMemory:r,hasModelList:n})=>{const i=E.useRef(null);RZe(i,{enabled:!0});const s=o=>p.jsx(JPr,{...o,hasModelList:n});return p.jsxs(O$r,{children:[p.jsxs(zCe,{ref:i,autoScroll:!1,className:"overflow-y-scroll scroll-smooth h-full",children:[p.jsx(_$r,{agentName:e}),p.jsx("div",{className:"max-w-3xl w-full mx-auto px-4 pb-7",children:p.jsx(bct,{components:{UserMessage:n$r,EditComposer:T$r,AssistantMessage:s}})}),p.jsx(wI,{empty:!1,children:p.jsx("div",{})})]}),p.jsx(k$r,{hasMemory:r,agentId:t})]})},O$r=({children:e})=>p.jsx(jCe,{className:"grid grid-rows-[1fr_auto] h-full overflow-y-auto","data-testid":"thread-wrapper",children:e}),_$r=({agentName:e})=>p.jsx(FCe,{children:p.jsxs("div",{className:"flex w-full flex-grow flex-col items-center justify-center",children:[p.jsx(t2r,{name:e||"Agent",size:"lg"}),p.jsx("p",{className:"mt-4 font-medium",children:"How can I help you today?"})]})}),k$r=({hasMemory:e,agentId:t})=>{const{setThreadInput:r}=oqe(),n=E.useRef(null);return p.jsx("div",{className:"mx-4",children:p.jsxs(HW,{children:[p.jsx("div",{className:"max-w-3xl w-full mx-auto pb-2",children:p.jsx(g$r,{})}),p.jsxs("div",{className:"bg-surface3 rounded-lg border border-border1 py-4 mt-auto max-w-3xl w-full mx-auto px-4 focus-within:outline focus-within:outline-accent1 -outline-offset-2",onClick:()=>{n.current?.focus()},children:[p.jsx(XW,{asChild:!0,className:"w-full",children:p.jsx("textarea",{ref:n,className:"text-ui-lg leading-ui-lg placeholder:text-neutral3 text-neutral6 bg-transparent focus:outline-none resize-none outline-none",autoFocus:document.activeElement===document.body,placeholder:"Enter your message...",name:"",id:"",onChange:i=>r?.(i.target.value)})}),p.jsxs("div",{className:"flex justify-end gap-2",children:[p.jsx(E$r,{agentId:t}),p.jsx(C$r,{})]})]})]})})},E$r=({agentId:e})=>{const t=gT(),{start:r,stop:n,isListening:i,transcript:s}=s$r({agentId:e});return E.useEffect(()=>{s&&t.setText(s)},[t,s]),p.jsx(dd,{type:"button",tooltip:i?"Stop dictation":"Start dictation",className:"rounded-full",onClick:()=>i?n():r(),children:i?p.jsx(aqe,{}):p.jsx(mdt,{className:"h-6 w-6 text-neutral3 hover:text-neutral6"})})},C$r=()=>{const[e,t]=E.useState(!1);return p.jsxs(p.Fragment,{children:[p.jsx(dd,{type:"button",tooltip:"Add attachment",className:"rounded-full",onClick:()=>t(!0),children:p.jsx(_0,{className:"h-6 w-6 text-neutral3 hover:text-neutral6"})}),p.jsx(x$r,{open:e,onOpenChange:t}),p.jsx(wI,{running:!1,children:p.jsx($Ce,{asChild:!0,children:p.jsx(dd,{tooltip:"Send",variant:"default",className:"rounded-full border border-border1 bg-surface5",children:p.jsx(qCe,{className:"h-6 w-6 text-neutral3 hover:text-neutral6"})})})}),p.jsx(wI,{running:!0,children:p.jsx(NCe,{asChild:!0,children:p.jsx(dd,{tooltip:"Cancel",variant:"default",children:p.jsx(aqe,{})})})})]})},T$r=()=>p.jsxs(HW,{children:[p.jsx(XW,{}),p.jsxs("div",{children:[p.jsx(NCe,{asChild:!0,children:p.jsx("button",{className:"bg-surface2 border border-border1 px-2 text-ui-md inline-flex items-center justify-center rounded-md border h-form-sm gap-1 hover:bg-surface4 text-neutral3 hover:text-neutral6",children:"Cancel"})}),p.jsx($Ce,{asChild:!0,children:p.jsx("button",{className:"bg-surface2 border border-border1 px-2 text-ui-md inline-flex items-center justify-center rounded-md border h-form-sm gap-1 hover:bg-surface4 text-neutral3 hover:text-neutral6",children:"Send"})})]})]}),aqe=()=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",width:"16",height:"16",children:p.jsx("rect",{width:"10",height:"10",x:"3",y:"3",rx:"2"})});function Exe(e){try{return JSON.stringify(JSON.parse(e),null,2)}catch{return e}}function D$r(e,t,r){const n=or(),[i,s]=E.useState(!1),[o,a]=E.useState(null),[l,c]=E.useState("thread"),[u,d]=E.useState("markdown"),[f,m]=E.useState(!0),[g,v]=E.useState(!1),{requestContext:b}=wi(),w=E.useCallback(async()=>{m(!0);try{if(!e||!t){a(null),m(!1);return}const O=await n.getWorkingMemory({agentId:e,threadId:t,resourceId:r,requestContext:b}),{workingMemory:k,source:C,workingMemoryTemplate:T,threadExists:P}=O;if(s(P),a(k),c(C),d(T?.format||"markdown"),T?.format==="json"){let A="";k?A=Exe(k):T?.content?A=Exe(T.content):A="",a(A)}else a(k||T?.content||"")}catch(O){a(null),console.error("Error fetching working memory",O)}finally{m(!1)}},[e,t,r]);return E.useEffect(()=>{w()},[w]),{threadExists:i,workingMemoryData:o,workingMemorySource:l,workingMemoryFormat:u,isLoading:f,isUpdating:g,refetch:w,updateWorkingMemory:async O=>{v(!0);try{if(u==="json")try{JSON.parse(O)}catch{throw new Error("Invalid JSON working memory")}await n.updateWorkingMemory({agentId:e,threadId:t,workingMemory:O,resourceId:r,requestContext:b}),w()}catch(k){throw console.error("Error updating working memory",k),k}finally{v(!1)}}}}const lqe=E.createContext({threadExists:!1,workingMemoryData:null,workingMemorySource:"thread",isLoading:!1,isUpdating:!1,updateWorkingMemory:()=>Promise.resolve(),refetch:()=>Promise.resolve()});function A$r({agentId:e,threadId:t,resourceId:r,children:n}){const i=D$r(e,t,r);return p.jsx(lqe.Provider,{value:i,children:n})}function cqe(){const e=E.useContext(lqe);if(!e)throw new Error("useWorkingMemory must be used within a WorkingMemoryProvider");return e}class P$r{constructor(t){this.agent=t}speak(t){let r=()=>{};const n=(s,o)=>{i.status.type!=="ended"&&(i.status={type:"ended",reason:s,error:o},r())},i={status:{type:"running"},cancel:()=>{n("cancelled")},subscribe:s=>(this.agent.voice.speak(t).then(o=>{if(o)return o.body}).then(o=>{if(o)return $$r(o)}).then(o=>{o&&(r=o),s()}).catch(o=>{n("error",o)}),()=>{})};return i}}async function $$r(e){const t=new window.AudioContext,r=e.getReader(),n=[];for(;;){const{done:c,value:u}=await r.read();if(c)break;n.push(u)}const i=n.reduce((c,u)=>c+u.length,0),s=new Uint8Array(i);let o=0;for(const c of n)s.set(c,o),o+=c.length;const a=await t.decodeAudioData(s.buffer),l=t.createBufferSource();return l.buffer=a,l.connect(t.destination),l.start(),()=>{l.stop(),t.close()}}class I$r{accept="application/pdf";async add({file:t}){if(t.size>20971520)throw new Error("PDF size exceeds 20MB limit");return{id:crypto.randomUUID(),type:"document",name:t.name,file:t,status:{type:"running",reason:"uploading",progress:0},contentType:"application/pdf"}}async send(t){const r=await this.fileToBase64(t.file);return{id:t.id,type:"document",name:t.name,content:[{type:"text",text:r}],status:{type:"complete"},contentType:"application/pdf"}}async remove(t){}async fileToBase64(t){const r=await t.arrayBuffer(),n=new Uint8Array(r);let i="";return n.forEach(s=>{i+=String.fromCharCode(s)}),btoa(i)}async extractTextFromPDF(t){return"Extracted PDF text content"}}const N$r=e=>{const[t,r]=E.useState(!1),[n,i]=E.useState(void 0),s=or(),{requestContext:o}=wi();return E.useEffect(()=>{(async()=>{const l=s.getAgent(e);try{(await l.voice.getSpeakers(o)).length>0?i(new P$r(l)):i(new qse),r(!0)}catch{i(new qse),r(!0)}})()},[e]),{isReady:t,adapters:{attachments:new bKe([new mKe,new yKe,new I$r]),speech:n}}},Cxe={modelSettings:{maxRetries:2,maxSteps:5,temperature:.5,topP:1,chatWithGenerateLegacy:!1,chatWithGenerate:!1}};function R$r({agentId:e,defaultSettings:t}){const[r,n]=E.useState(t),i=`mastra-agent-store-${e}`;return E.useEffect(()=>{try{const a=localStorage.getItem(i),l=a?JSON.parse(a):{},c={...l,modelSettings:{...Cxe.modelSettings,...l?.modelSettings??{},...t?.modelSettings??{}}};n(c)}catch{}},[i,t]),{settings:r,setSettings:a=>{n(l=>({...l,...a})),localStorage.setItem(i,JSON.stringify({...a,agentId:e}))},resetAll:()=>{const a={modelSettings:{...Cxe.modelSettings,...t?.modelSettings??{}}};n(a),localStorage.removeItem(i)}}}const uqe=E.createContext({});function M$r({children:e,agentId:t,defaultSettings:r}){const{settings:n,setSettings:i,resetAll:s}=R$r({agentId:t,defaultSettings:r});return p.jsx(uqe.Provider,{value:{settings:n,setSettings:i,resetAll:s},children:e})}const H6=()=>E.useContext(uqe),j$r=e=>typeof e=="string"?e.trim():e.text?.trim()||"",gte=e=>typeof e=="string"?e.trim():typeof e=="object"&&"content"in e?Array.isArray(e.content)?e.content.map(j$r).join(`
|
|
554
|
+
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return E.useEffect(()=>{document.getElementById(e.current?.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},jDr=LQe,FDr=zQe,LDr=BQe,YQe=VQe,JQe=UQe,KQe=WQe,eZe=XQe,tZe=ZQe,rZe=HQe,RP={exports:{}},HL,ybe;function $6(){if(ybe)return HL;ybe=1;const e="2.0.0",t=256,r=Number.MAX_SAFE_INTEGER||9007199254740991,n=16,i=t-6;return HL={MAX_LENGTH:t,MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:i,MAX_SAFE_INTEGER:r,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:e,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},HL}var WL,vbe;function I6(){if(vbe)return WL;vbe=1;var e={},t={};return WL=typeof e=="object"&&t&&t.NODE_DEBUG&&/\bsemver\b/i.test(t.NODE_DEBUG)?(...n)=>console.error("SEMVER",...n):()=>{},WL}var bbe;function wD(){return bbe||(bbe=1,(function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:n,MAX_LENGTH:i}=$6(),s=I6();t=e.exports={};const o=t.re=[],a=t.safeRe=[],l=t.src=[],c=t.safeSrc=[],u=t.t={};let d=0;const f="[a-zA-Z0-9-]",m=[["\\s",1],["\\d",i],[f,n]],g=b=>{for(const[w,S]of m)b=b.split(`${w}*`).join(`${w}{0,${S}}`).split(`${w}+`).join(`${w}{1,${S}}`);return b},v=(b,w,S)=>{const O=g(w),k=d++;s(b,k,w),u[b]=k,l[k]=w,c[k]=O,o[k]=new RegExp(w,S?"g":void 0),a[k]=new RegExp(O,S?"g":void 0)};v("NUMERICIDENTIFIER","0|[1-9]\\d*"),v("NUMERICIDENTIFIERLOOSE","\\d+"),v("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${f}*`),v("MAINVERSION",`(${l[u.NUMERICIDENTIFIER]})\\.(${l[u.NUMERICIDENTIFIER]})\\.(${l[u.NUMERICIDENTIFIER]})`),v("MAINVERSIONLOOSE",`(${l[u.NUMERICIDENTIFIERLOOSE]})\\.(${l[u.NUMERICIDENTIFIERLOOSE]})\\.(${l[u.NUMERICIDENTIFIERLOOSE]})`),v("PRERELEASEIDENTIFIER",`(?:${l[u.NONNUMERICIDENTIFIER]}|${l[u.NUMERICIDENTIFIER]})`),v("PRERELEASEIDENTIFIERLOOSE",`(?:${l[u.NONNUMERICIDENTIFIER]}|${l[u.NUMERICIDENTIFIERLOOSE]})`),v("PRERELEASE",`(?:-(${l[u.PRERELEASEIDENTIFIER]}(?:\\.${l[u.PRERELEASEIDENTIFIER]})*))`),v("PRERELEASELOOSE",`(?:-?(${l[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[u.PRERELEASEIDENTIFIERLOOSE]})*))`),v("BUILDIDENTIFIER",`${f}+`),v("BUILD",`(?:\\+(${l[u.BUILDIDENTIFIER]}(?:\\.${l[u.BUILDIDENTIFIER]})*))`),v("FULLPLAIN",`v?${l[u.MAINVERSION]}${l[u.PRERELEASE]}?${l[u.BUILD]}?`),v("FULL",`^${l[u.FULLPLAIN]}$`),v("LOOSEPLAIN",`[v=\\s]*${l[u.MAINVERSIONLOOSE]}${l[u.PRERELEASELOOSE]}?${l[u.BUILD]}?`),v("LOOSE",`^${l[u.LOOSEPLAIN]}$`),v("GTLT","((?:<|>)?=?)"),v("XRANGEIDENTIFIERLOOSE",`${l[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),v("XRANGEIDENTIFIER",`${l[u.NUMERICIDENTIFIER]}|x|X|\\*`),v("XRANGEPLAIN",`[v=\\s]*(${l[u.XRANGEIDENTIFIER]})(?:\\.(${l[u.XRANGEIDENTIFIER]})(?:\\.(${l[u.XRANGEIDENTIFIER]})(?:${l[u.PRERELEASE]})?${l[u.BUILD]}?)?)?`),v("XRANGEPLAINLOOSE",`[v=\\s]*(${l[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[u.XRANGEIDENTIFIERLOOSE]})(?:${l[u.PRERELEASELOOSE]})?${l[u.BUILD]}?)?)?`),v("XRANGE",`^${l[u.GTLT]}\\s*${l[u.XRANGEPLAIN]}$`),v("XRANGELOOSE",`^${l[u.GTLT]}\\s*${l[u.XRANGEPLAINLOOSE]}$`),v("COERCEPLAIN",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`),v("COERCE",`${l[u.COERCEPLAIN]}(?:$|[^\\d])`),v("COERCEFULL",l[u.COERCEPLAIN]+`(?:${l[u.PRERELEASE]})?(?:${l[u.BUILD]})?(?:$|[^\\d])`),v("COERCERTL",l[u.COERCE],!0),v("COERCERTLFULL",l[u.COERCEFULL],!0),v("LONETILDE","(?:~>?)"),v("TILDETRIM",`(\\s*)${l[u.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",v("TILDE",`^${l[u.LONETILDE]}${l[u.XRANGEPLAIN]}$`),v("TILDELOOSE",`^${l[u.LONETILDE]}${l[u.XRANGEPLAINLOOSE]}$`),v("LONECARET","(?:\\^)"),v("CARETTRIM",`(\\s*)${l[u.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",v("CARET",`^${l[u.LONECARET]}${l[u.XRANGEPLAIN]}$`),v("CARETLOOSE",`^${l[u.LONECARET]}${l[u.XRANGEPLAINLOOSE]}$`),v("COMPARATORLOOSE",`^${l[u.GTLT]}\\s*(${l[u.LOOSEPLAIN]})$|^$`),v("COMPARATOR",`^${l[u.GTLT]}\\s*(${l[u.FULLPLAIN]})$|^$`),v("COMPARATORTRIM",`(\\s*)${l[u.GTLT]}\\s*(${l[u.LOOSEPLAIN]}|${l[u.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",v("HYPHENRANGE",`^\\s*(${l[u.XRANGEPLAIN]})\\s+-\\s+(${l[u.XRANGEPLAIN]})\\s*$`),v("HYPHENRANGELOOSE",`^\\s*(${l[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${l[u.XRANGEPLAINLOOSE]})\\s*$`),v("STAR","(<|>)?=?\\s*\\*"),v("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),v("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(RP,RP.exports)),RP.exports}var GL,xbe;function Hee(){if(xbe)return GL;xbe=1;const e=Object.freeze({loose:!0}),t=Object.freeze({});return GL=n=>n?typeof n!="object"?e:n:t,GL}var XL,wbe;function nZe(){if(wbe)return XL;wbe=1;const e=/^[0-9]+$/,t=(n,i)=>{if(typeof n=="number"&&typeof i=="number")return n===i?0:n<i?-1:1;const s=e.test(n),o=e.test(i);return s&&o&&(n=+n,i=+i),n===i?0:s&&!o?-1:o&&!s?1:n<i?-1:1};return XL={compareIdentifiers:t,rcompareIdentifiers:(n,i)=>t(i,n)},XL}var YL,Sbe;function $a(){if(Sbe)return YL;Sbe=1;const e=I6(),{MAX_LENGTH:t,MAX_SAFE_INTEGER:r}=$6(),{safeRe:n,t:i}=wD(),s=Hee(),{compareIdentifiers:o}=nZe();class a{constructor(c,u){if(u=s(u),c instanceof a){if(c.loose===!!u.loose&&c.includePrerelease===!!u.includePrerelease)return c;c=c.version}else if(typeof c!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof c}".`);if(c.length>t)throw new TypeError(`version is longer than ${t} characters`);e("SemVer",c,u),this.options=u,this.loose=!!u.loose,this.includePrerelease=!!u.includePrerelease;const d=c.trim().match(u.loose?n[i.LOOSE]:n[i.FULL]);if(!d)throw new TypeError(`Invalid Version: ${c}`);if(this.raw=c,this.major=+d[1],this.minor=+d[2],this.patch=+d[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");d[4]?this.prerelease=d[4].split(".").map(f=>{if(/^[0-9]+$/.test(f)){const m=+f;if(m>=0&&m<r)return m}return f}):this.prerelease=[],this.build=d[5]?d[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(c){if(e("SemVer.compare",this.version,this.options,c),!(c instanceof a)){if(typeof c=="string"&&c===this.version)return 0;c=new a(c,this.options)}return c.version===this.version?0:this.compareMain(c)||this.comparePre(c)}compareMain(c){return c instanceof a||(c=new a(c,this.options)),this.major<c.major?-1:this.major>c.major?1:this.minor<c.minor?-1:this.minor>c.minor?1:this.patch<c.patch?-1:this.patch>c.patch?1:0}comparePre(c){if(c instanceof a||(c=new a(c,this.options)),this.prerelease.length&&!c.prerelease.length)return-1;if(!this.prerelease.length&&c.prerelease.length)return 1;if(!this.prerelease.length&&!c.prerelease.length)return 0;let u=0;do{const d=this.prerelease[u],f=c.prerelease[u];if(e("prerelease compare",u,d,f),d===void 0&&f===void 0)return 0;if(f===void 0)return 1;if(d===void 0)return-1;if(d===f)continue;return o(d,f)}while(++u)}compareBuild(c){c instanceof a||(c=new a(c,this.options));let u=0;do{const d=this.build[u],f=c.build[u];if(e("build compare",u,d,f),d===void 0&&f===void 0)return 0;if(f===void 0)return 1;if(d===void 0)return-1;if(d===f)continue;return o(d,f)}while(++u)}inc(c,u,d){if(c.startsWith("pre")){if(!u&&d===!1)throw new Error("invalid increment argument: identifier is empty");if(u){const f=`-${u}`.match(this.options.loose?n[i.PRERELEASELOOSE]:n[i.PRERELEASE]);if(!f||f[1]!==u)throw new Error(`invalid identifier: ${u}`)}}switch(c){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",u,d);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",u,d);break;case"prepatch":this.prerelease.length=0,this.inc("patch",u,d),this.inc("pre",u,d);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",u,d),this.inc("pre",u,d);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const f=Number(d)?1:0;if(this.prerelease.length===0)this.prerelease=[f];else{let m=this.prerelease.length;for(;--m>=0;)typeof this.prerelease[m]=="number"&&(this.prerelease[m]++,m=-2);if(m===-1){if(u===this.prerelease.join(".")&&d===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(f)}}if(u){let m=[u,f];d===!1&&(m=[u]),o(this.prerelease[0],u)===0?isNaN(this.prerelease[1])&&(this.prerelease=m):this.prerelease=m}break}default:throw new Error(`invalid increment argument: ${c}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}return YL=a,YL}var JL,Obe;function hS(){if(Obe)return JL;Obe=1;const e=$a();return JL=(r,n,i=!1)=>{if(r instanceof e)return r;try{return new e(r,n)}catch(s){if(!i)return null;throw s}},JL}var KL,_be;function zDr(){if(_be)return KL;_be=1;const e=hS();return KL=(r,n)=>{const i=e(r,n);return i?i.version:null},KL}var ez,kbe;function BDr(){if(kbe)return ez;kbe=1;const e=hS();return ez=(r,n)=>{const i=e(r.trim().replace(/^[=v]+/,""),n);return i?i.version:null},ez}var tz,Ebe;function VDr(){if(Ebe)return tz;Ebe=1;const e=$a();return tz=(r,n,i,s,o)=>{typeof i=="string"&&(o=s,s=i,i=void 0);try{return new e(r instanceof e?r.version:r,i).inc(n,s,o).version}catch{return null}},tz}var rz,Cbe;function UDr(){if(Cbe)return rz;Cbe=1;const e=hS();return rz=(r,n)=>{const i=e(r,null,!0),s=e(n,null,!0),o=i.compare(s);if(o===0)return null;const a=o>0,l=a?i:s,c=a?s:i,u=!!l.prerelease.length;if(!!c.prerelease.length&&!u){if(!c.patch&&!c.minor)return"major";if(c.compareMain(l)===0)return c.minor&&!c.patch?"minor":"patch"}const f=u?"pre":"";return i.major!==s.major?f+"major":i.minor!==s.minor?f+"minor":i.patch!==s.patch?f+"patch":"prerelease"},rz}var nz,Tbe;function QDr(){if(Tbe)return nz;Tbe=1;const e=$a();return nz=(r,n)=>new e(r,n).major,nz}var iz,Dbe;function ZDr(){if(Dbe)return iz;Dbe=1;const e=$a();return iz=(r,n)=>new e(r,n).minor,iz}var sz,Abe;function qDr(){if(Abe)return sz;Abe=1;const e=$a();return sz=(r,n)=>new e(r,n).patch,sz}var oz,Pbe;function HDr(){if(Pbe)return oz;Pbe=1;const e=hS();return oz=(r,n)=>{const i=e(r,n);return i&&i.prerelease.length?i.prerelease:null},oz}var az,$be;function Bd(){if($be)return az;$be=1;const e=$a();return az=(r,n,i)=>new e(r,i).compare(new e(n,i)),az}var lz,Ibe;function WDr(){if(Ibe)return lz;Ibe=1;const e=Bd();return lz=(r,n,i)=>e(n,r,i),lz}var cz,Nbe;function GDr(){if(Nbe)return cz;Nbe=1;const e=Bd();return cz=(r,n)=>e(r,n,!0),cz}var uz,Rbe;function Wee(){if(Rbe)return uz;Rbe=1;const e=$a();return uz=(r,n,i)=>{const s=new e(r,i),o=new e(n,i);return s.compare(o)||s.compareBuild(o)},uz}var dz,Mbe;function XDr(){if(Mbe)return dz;Mbe=1;const e=Wee();return dz=(r,n)=>r.sort((i,s)=>e(i,s,n)),dz}var fz,jbe;function YDr(){if(jbe)return fz;jbe=1;const e=Wee();return fz=(r,n)=>r.sort((i,s)=>e(s,i,n)),fz}var pz,Fbe;function N6(){if(Fbe)return pz;Fbe=1;const e=Bd();return pz=(r,n,i)=>e(r,n,i)>0,pz}var hz,Lbe;function Gee(){if(Lbe)return hz;Lbe=1;const e=Bd();return hz=(r,n,i)=>e(r,n,i)<0,hz}var mz,zbe;function iZe(){if(zbe)return mz;zbe=1;const e=Bd();return mz=(r,n,i)=>e(r,n,i)===0,mz}var gz,Bbe;function sZe(){if(Bbe)return gz;Bbe=1;const e=Bd();return gz=(r,n,i)=>e(r,n,i)!==0,gz}var yz,Vbe;function Xee(){if(Vbe)return yz;Vbe=1;const e=Bd();return yz=(r,n,i)=>e(r,n,i)>=0,yz}var vz,Ube;function Yee(){if(Ube)return vz;Ube=1;const e=Bd();return vz=(r,n,i)=>e(r,n,i)<=0,vz}var bz,Qbe;function oZe(){if(Qbe)return bz;Qbe=1;const e=iZe(),t=sZe(),r=N6(),n=Xee(),i=Gee(),s=Yee();return bz=(a,l,c,u)=>{switch(l){case"===":return typeof a=="object"&&(a=a.version),typeof c=="object"&&(c=c.version),a===c;case"!==":return typeof a=="object"&&(a=a.version),typeof c=="object"&&(c=c.version),a!==c;case"":case"=":case"==":return e(a,c,u);case"!=":return t(a,c,u);case">":return r(a,c,u);case">=":return n(a,c,u);case"<":return i(a,c,u);case"<=":return s(a,c,u);default:throw new TypeError(`Invalid operator: ${l}`)}},bz}var xz,Zbe;function JDr(){if(Zbe)return xz;Zbe=1;const e=$a(),t=hS(),{safeRe:r,t:n}=wD();return xz=(s,o)=>{if(s instanceof e)return s;if(typeof s=="number"&&(s=String(s)),typeof s!="string")return null;o=o||{};let a=null;if(!o.rtl)a=s.match(o.includePrerelease?r[n.COERCEFULL]:r[n.COERCE]);else{const m=o.includePrerelease?r[n.COERCERTLFULL]:r[n.COERCERTL];let g;for(;(g=m.exec(s))&&(!a||a.index+a[0].length!==s.length);)(!a||g.index+g[0].length!==a.index+a[0].length)&&(a=g),m.lastIndex=g.index+g[1].length+g[2].length;m.lastIndex=-1}if(a===null)return null;const l=a[2],c=a[3]||"0",u=a[4]||"0",d=o.includePrerelease&&a[5]?`-${a[5]}`:"",f=o.includePrerelease&&a[6]?`+${a[6]}`:"";return t(`${l}.${c}.${u}${d}${f}`,o)},xz}var wz,qbe;function KDr(){if(qbe)return wz;qbe=1;class e{constructor(){this.max=1e3,this.map=new Map}get(r){const n=this.map.get(r);if(n!==void 0)return this.map.delete(r),this.map.set(r,n),n}delete(r){return this.map.delete(r)}set(r,n){if(!this.delete(r)&&n!==void 0){if(this.map.size>=this.max){const s=this.map.keys().next().value;this.delete(s)}this.map.set(r,n)}return this}}return wz=e,wz}var Sz,Hbe;function Vd(){if(Hbe)return Sz;Hbe=1;const e=/\s+/g;class t{constructor(Q,F){if(F=i(F),Q instanceof t)return Q.loose===!!F.loose&&Q.includePrerelease===!!F.includePrerelease?Q:new t(Q.raw,F);if(Q instanceof s)return this.raw=Q.value,this.set=[[Q]],this.formatted=void 0,this;if(this.options=F,this.loose=!!F.loose,this.includePrerelease=!!F.includePrerelease,this.raw=Q.trim().replace(e," "),this.set=this.raw.split("||").map(N=>this.parseRange(N.trim())).filter(N=>N.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const N=this.set[0];if(this.set=this.set.filter(I=>!v(I[0])),this.set.length===0)this.set=[N];else if(this.set.length>1){for(const I of this.set)if(I.length===1&&b(I[0])){this.set=[I];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let Q=0;Q<this.set.length;Q++){Q>0&&(this.formatted+="||");const F=this.set[Q];for(let N=0;N<F.length;N++)N>0&&(this.formatted+=" "),this.formatted+=F[N].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(Q){const N=((this.options.includePrerelease&&m)|(this.options.loose&&g))+":"+Q,I=n.get(N);if(I)return I;const H=this.options.loose,B=H?l[c.HYPHENRANGELOOSE]:l[c.HYPHENRANGE];Q=Q.replace(B,U(this.options.includePrerelease)),o("hyphen replace",Q),Q=Q.replace(l[c.COMPARATORTRIM],u),o("comparator trim",Q),Q=Q.replace(l[c.TILDETRIM],d),o("tilde trim",Q),Q=Q.replace(l[c.CARETTRIM],f),o("caret trim",Q);let J=Q.split(" ").map(K=>S(K,this.options)).join(" ").split(/\s+/).map(K=>z(K,this.options));H&&(J=J.filter(K=>(o("loose invalid filter",K,this.options),!!K.match(l[c.COMPARATORLOOSE])))),o("range list",J);const q=new Map,j=J.map(K=>new s(K,this.options));for(const K of j){if(v(K))return[K];q.set(K.value,K)}q.size>1&&q.has("")&&q.delete("");const W=[...q.values()];return n.set(N,W),W}intersects(Q,F){if(!(Q instanceof t))throw new TypeError("a Range is required");return this.set.some(N=>w(N,F)&&Q.set.some(I=>w(I,F)&&N.every(H=>I.every(B=>H.intersects(B,F)))))}test(Q){if(!Q)return!1;if(typeof Q=="string")try{Q=new a(Q,this.options)}catch{return!1}for(let F=0;F<this.set.length;F++)if(V(this.set[F],Q,this.options))return!0;return!1}}Sz=t;const r=KDr(),n=new r,i=Hee(),s=R6(),o=I6(),a=$a(),{safeRe:l,t:c,comparatorTrimReplace:u,tildeTrimReplace:d,caretTrimReplace:f}=wD(),{FLAG_INCLUDE_PRERELEASE:m,FLAG_LOOSE:g}=$6(),v=L=>L.value==="<0.0.0-0",b=L=>L.value==="",w=(L,Q)=>{let F=!0;const N=L.slice();let I=N.pop();for(;F&&N.length;)F=N.every(H=>I.intersects(H,Q)),I=N.pop();return F},S=(L,Q)=>(L=L.replace(l[c.BUILD],""),o("comp",L,Q),L=T(L,Q),o("caret",L),L=k(L,Q),o("tildes",L),L=A(L,Q),o("xrange",L),L=M(L,Q),o("stars",L),L),O=L=>!L||L.toLowerCase()==="x"||L==="*",k=(L,Q)=>L.trim().split(/\s+/).map(F=>C(F,Q)).join(" "),C=(L,Q)=>{const F=Q.loose?l[c.TILDELOOSE]:l[c.TILDE];return L.replace(F,(N,I,H,B,J)=>{o("tilde",L,N,I,H,B,J);let q;return O(I)?q="":O(H)?q=`>=${I}.0.0 <${+I+1}.0.0-0`:O(B)?q=`>=${I}.${H}.0 <${I}.${+H+1}.0-0`:J?(o("replaceTilde pr",J),q=`>=${I}.${H}.${B}-${J} <${I}.${+H+1}.0-0`):q=`>=${I}.${H}.${B} <${I}.${+H+1}.0-0`,o("tilde return",q),q})},T=(L,Q)=>L.trim().split(/\s+/).map(F=>P(F,Q)).join(" "),P=(L,Q)=>{o("caret",L,Q);const F=Q.loose?l[c.CARETLOOSE]:l[c.CARET],N=Q.includePrerelease?"-0":"";return L.replace(F,(I,H,B,J,q)=>{o("caret",L,I,H,B,J,q);let j;return O(H)?j="":O(B)?j=`>=${H}.0.0${N} <${+H+1}.0.0-0`:O(J)?H==="0"?j=`>=${H}.${B}.0${N} <${H}.${+B+1}.0-0`:j=`>=${H}.${B}.0${N} <${+H+1}.0.0-0`:q?(o("replaceCaret pr",q),H==="0"?B==="0"?j=`>=${H}.${B}.${J}-${q} <${H}.${B}.${+J+1}-0`:j=`>=${H}.${B}.${J}-${q} <${H}.${+B+1}.0-0`:j=`>=${H}.${B}.${J}-${q} <${+H+1}.0.0-0`):(o("no pr"),H==="0"?B==="0"?j=`>=${H}.${B}.${J}${N} <${H}.${B}.${+J+1}-0`:j=`>=${H}.${B}.${J}${N} <${H}.${+B+1}.0-0`:j=`>=${H}.${B}.${J} <${+H+1}.0.0-0`),o("caret return",j),j})},A=(L,Q)=>(o("replaceXRanges",L,Q),L.split(/\s+/).map(F=>R(F,Q)).join(" ")),R=(L,Q)=>{L=L.trim();const F=Q.loose?l[c.XRANGELOOSE]:l[c.XRANGE];return L.replace(F,(N,I,H,B,J,q)=>{o("xRange",L,N,I,H,B,J,q);const j=O(H),W=j||O(B),K=W||O(J),ne=K;return I==="="&&ne&&(I=""),q=Q.includePrerelease?"-0":"",j?I===">"||I==="<"?N="<0.0.0-0":N="*":I&&ne?(W&&(B=0),J=0,I===">"?(I=">=",W?(H=+H+1,B=0,J=0):(B=+B+1,J=0)):I==="<="&&(I="<",W?H=+H+1:B=+B+1),I==="<"&&(q="-0"),N=`${I+H}.${B}.${J}${q}`):W?N=`>=${H}.0.0${q} <${+H+1}.0.0-0`:K&&(N=`>=${H}.${B}.0${q} <${H}.${+B+1}.0-0`),o("xRange return",N),N})},M=(L,Q)=>(o("replaceStars",L,Q),L.trim().replace(l[c.STAR],"")),z=(L,Q)=>(o("replaceGTE0",L,Q),L.trim().replace(l[Q.includePrerelease?c.GTE0PRE:c.GTE0],"")),U=L=>(Q,F,N,I,H,B,J,q,j,W,K,ne)=>(O(N)?F="":O(I)?F=`>=${N}.0.0${L?"-0":""}`:O(H)?F=`>=${N}.${I}.0${L?"-0":""}`:B?F=`>=${F}`:F=`>=${F}${L?"-0":""}`,O(j)?q="":O(W)?q=`<${+j+1}.0.0-0`:O(K)?q=`<${j}.${+W+1}.0-0`:ne?q=`<=${j}.${W}.${K}-${ne}`:L?q=`<${j}.${W}.${+K+1}-0`:q=`<=${q}`,`${F} ${q}`.trim()),V=(L,Q,F)=>{for(let N=0;N<L.length;N++)if(!L[N].test(Q))return!1;if(Q.prerelease.length&&!F.includePrerelease){for(let N=0;N<L.length;N++)if(o(L[N].semver),L[N].semver!==s.ANY&&L[N].semver.prerelease.length>0){const I=L[N].semver;if(I.major===Q.major&&I.minor===Q.minor&&I.patch===Q.patch)return!0}return!1}return!0};return Sz}var Oz,Wbe;function R6(){if(Wbe)return Oz;Wbe=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(u,d){if(d=r(d),u instanceof t){if(u.loose===!!d.loose)return u;u=u.value}u=u.trim().split(/\s+/).join(" "),o("comparator",u,d),this.options=d,this.loose=!!d.loose,this.parse(u),this.semver===e?this.value="":this.value=this.operator+this.semver.version,o("comp",this)}parse(u){const d=this.options.loose?n[i.COMPARATORLOOSE]:n[i.COMPARATOR],f=u.match(d);if(!f)throw new TypeError(`Invalid comparator: ${u}`);this.operator=f[1]!==void 0?f[1]:"",this.operator==="="&&(this.operator=""),f[2]?this.semver=new a(f[2],this.options.loose):this.semver=e}toString(){return this.value}test(u){if(o("Comparator.test",u,this.options.loose),this.semver===e||u===e)return!0;if(typeof u=="string")try{u=new a(u,this.options)}catch{return!1}return s(u,this.operator,this.semver,this.options)}intersects(u,d){if(!(u instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new l(u.value,d).test(this.value):u.operator===""?u.value===""?!0:new l(this.value,d).test(u.semver):(d=r(d),d.includePrerelease&&(this.value==="<0.0.0-0"||u.value==="<0.0.0-0")||!d.includePrerelease&&(this.value.startsWith("<0.0.0")||u.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&u.operator.startsWith(">")||this.operator.startsWith("<")&&u.operator.startsWith("<")||this.semver.version===u.semver.version&&this.operator.includes("=")&&u.operator.includes("=")||s(this.semver,"<",u.semver,d)&&this.operator.startsWith(">")&&u.operator.startsWith("<")||s(this.semver,">",u.semver,d)&&this.operator.startsWith("<")&&u.operator.startsWith(">")))}}Oz=t;const r=Hee(),{safeRe:n,t:i}=wD(),s=oZe(),o=I6(),a=$a(),l=Vd();return Oz}var _z,Gbe;function M6(){if(Gbe)return _z;Gbe=1;const e=Vd();return _z=(r,n,i)=>{try{n=new e(n,i)}catch{return!1}return n.test(r)},_z}var kz,Xbe;function eAr(){if(Xbe)return kz;Xbe=1;const e=Vd();return kz=(r,n)=>new e(r,n).set.map(i=>i.map(s=>s.value).join(" ").trim().split(" ")),kz}var Ez,Ybe;function tAr(){if(Ybe)return Ez;Ybe=1;const e=$a(),t=Vd();return Ez=(n,i,s)=>{let o=null,a=null,l=null;try{l=new t(i,s)}catch{return null}return n.forEach(c=>{l.test(c)&&(!o||a.compare(c)===-1)&&(o=c,a=new e(o,s))}),o},Ez}var Cz,Jbe;function rAr(){if(Jbe)return Cz;Jbe=1;const e=$a(),t=Vd();return Cz=(n,i,s)=>{let o=null,a=null,l=null;try{l=new t(i,s)}catch{return null}return n.forEach(c=>{l.test(c)&&(!o||a.compare(c)===1)&&(o=c,a=new e(o,s))}),o},Cz}var Tz,Kbe;function nAr(){if(Kbe)return Tz;Kbe=1;const e=$a(),t=Vd(),r=N6();return Tz=(i,s)=>{i=new t(i,s);let o=new e("0.0.0");if(i.test(o)||(o=new e("0.0.0-0"),i.test(o)))return o;o=null;for(let a=0;a<i.set.length;++a){const l=i.set[a];let c=null;l.forEach(u=>{const d=new e(u.semver.version);switch(u.operator){case">":d.prerelease.length===0?d.patch++:d.prerelease.push(0),d.raw=d.format();case"":case">=":(!c||r(d,c))&&(c=d);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${u.operator}`)}}),c&&(!o||r(o,c))&&(o=c)}return o&&i.test(o)?o:null},Tz}var Dz,exe;function iAr(){if(exe)return Dz;exe=1;const e=Vd();return Dz=(r,n)=>{try{return new e(r,n).range||"*"}catch{return null}},Dz}var Az,txe;function Jee(){if(txe)return Az;txe=1;const e=$a(),t=R6(),{ANY:r}=t,n=Vd(),i=M6(),s=N6(),o=Gee(),a=Yee(),l=Xee();return Az=(u,d,f,m)=>{u=new e(u,m),d=new n(d,m);let g,v,b,w,S;switch(f){case">":g=s,v=a,b=o,w=">",S=">=";break;case"<":g=o,v=l,b=s,w="<",S="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(i(u,d,m))return!1;for(let O=0;O<d.set.length;++O){const k=d.set[O];let C=null,T=null;if(k.forEach(P=>{P.semver===r&&(P=new t(">=0.0.0")),C=C||P,T=T||P,g(P.semver,C.semver,m)?C=P:b(P.semver,T.semver,m)&&(T=P)}),C.operator===w||C.operator===S||(!T.operator||T.operator===w)&&v(u,T.semver))return!1;if(T.operator===S&&b(u,T.semver))return!1}return!0},Az}var Pz,rxe;function sAr(){if(rxe)return Pz;rxe=1;const e=Jee();return Pz=(r,n,i)=>e(r,n,">",i),Pz}var $z,nxe;function oAr(){if(nxe)return $z;nxe=1;const e=Jee();return $z=(r,n,i)=>e(r,n,"<",i),$z}var Iz,ixe;function aAr(){if(ixe)return Iz;ixe=1;const e=Vd();return Iz=(r,n,i)=>(r=new e(r,i),n=new e(n,i),r.intersects(n,i)),Iz}var Nz,sxe;function lAr(){if(sxe)return Nz;sxe=1;const e=M6(),t=Bd();return Nz=(r,n,i)=>{const s=[];let o=null,a=null;const l=r.sort((f,m)=>t(f,m,i));for(const f of l)e(f,n,i)?(a=f,o||(o=f)):(a&&s.push([o,a]),a=null,o=null);o&&s.push([o,null]);const c=[];for(const[f,m]of s)f===m?c.push(f):!m&&f===l[0]?c.push("*"):m?f===l[0]?c.push(`<=${m}`):c.push(`${f} - ${m}`):c.push(`>=${f}`);const u=c.join(" || "),d=typeof n.raw=="string"?n.raw:String(n);return u.length<d.length?u:n},Nz}var Rz,oxe;function cAr(){if(oxe)return Rz;oxe=1;const e=Vd(),t=R6(),{ANY:r}=t,n=M6(),i=Bd(),s=(d,f,m={})=>{if(d===f)return!0;d=new e(d,m),f=new e(f,m);let g=!1;e:for(const v of d.set){for(const b of f.set){const w=l(v,b,m);if(g=g||w!==null,w)continue e}if(g)return!1}return!0},o=[new t(">=0.0.0-0")],a=[new t(">=0.0.0")],l=(d,f,m)=>{if(d===f)return!0;if(d.length===1&&d[0].semver===r){if(f.length===1&&f[0].semver===r)return!0;m.includePrerelease?d=o:d=a}if(f.length===1&&f[0].semver===r){if(m.includePrerelease)return!0;f=a}const g=new Set;let v,b;for(const A of d)A.operator===">"||A.operator===">="?v=c(v,A,m):A.operator==="<"||A.operator==="<="?b=u(b,A,m):g.add(A.semver);if(g.size>1)return null;let w;if(v&&b){if(w=i(v.semver,b.semver,m),w>0)return null;if(w===0&&(v.operator!==">="||b.operator!=="<="))return null}for(const A of g){if(v&&!n(A,String(v),m)||b&&!n(A,String(b),m))return null;for(const R of f)if(!n(A,String(R),m))return!1;return!0}let S,O,k,C,T=b&&!m.includePrerelease&&b.semver.prerelease.length?b.semver:!1,P=v&&!m.includePrerelease&&v.semver.prerelease.length?v.semver:!1;T&&T.prerelease.length===1&&b.operator==="<"&&T.prerelease[0]===0&&(T=!1);for(const A of f){if(C=C||A.operator===">"||A.operator===">=",k=k||A.operator==="<"||A.operator==="<=",v){if(P&&A.semver.prerelease&&A.semver.prerelease.length&&A.semver.major===P.major&&A.semver.minor===P.minor&&A.semver.patch===P.patch&&(P=!1),A.operator===">"||A.operator===">="){if(S=c(v,A,m),S===A&&S!==v)return!1}else if(v.operator===">="&&!n(v.semver,String(A),m))return!1}if(b){if(T&&A.semver.prerelease&&A.semver.prerelease.length&&A.semver.major===T.major&&A.semver.minor===T.minor&&A.semver.patch===T.patch&&(T=!1),A.operator==="<"||A.operator==="<="){if(O=u(b,A,m),O===A&&O!==b)return!1}else if(b.operator==="<="&&!n(b.semver,String(A),m))return!1}if(!A.operator&&(b||v)&&w!==0)return!1}return!(v&&k&&!b&&w!==0||b&&C&&!v&&w!==0||P||T)},c=(d,f,m)=>{if(!d)return f;const g=i(d.semver,f.semver,m);return g>0?d:g<0||f.operator===">"&&d.operator===">="?f:d},u=(d,f,m)=>{if(!d)return f;const g=i(d.semver,f.semver,m);return g<0?d:g>0||f.operator==="<"&&d.operator==="<="?f:d};return Rz=s,Rz}var Mz,axe;function uAr(){if(axe)return Mz;axe=1;const e=wD(),t=$6(),r=$a(),n=nZe(),i=hS(),s=zDr(),o=BDr(),a=VDr(),l=UDr(),c=QDr(),u=ZDr(),d=qDr(),f=HDr(),m=Bd(),g=WDr(),v=GDr(),b=Wee(),w=XDr(),S=YDr(),O=N6(),k=Gee(),C=iZe(),T=sZe(),P=Xee(),A=Yee(),R=oZe(),M=JDr(),z=R6(),U=Vd(),V=M6(),L=eAr(),Q=tAr(),F=rAr(),N=nAr(),I=iAr(),H=Jee(),B=sAr(),J=oAr(),q=aAr(),j=lAr(),W=cAr();return Mz={parse:i,valid:s,clean:o,inc:a,diff:l,major:c,minor:u,patch:d,prerelease:f,compare:m,rcompare:g,compareLoose:v,compareBuild:b,sort:w,rsort:S,gt:O,lt:k,eq:C,neq:T,gte:P,lte:A,cmp:R,coerce:M,Comparator:z,Range:U,satisfies:V,toComparators:L,maxSatisfying:Q,minSatisfying:F,minVersion:N,validRange:I,outside:H,gtr:B,ltr:J,intersects:q,simplifyRange:j,subset:W,SemVer:r,re:e.re,src:e.src,tokens:e.t,SEMVER_SPEC_VERSION:t.SEMVER_SPEC_VERSION,RELEASE_TYPES:t.RELEASE_TYPES,compareIdentifiers:n.compareIdentifiers,rcompareIdentifiers:n.rcompareIdentifiers},Mz}var dAr=uAr();const e_=Qh(dAr);function aZe(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=aZe(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function lZe(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=aZe(e))&&(n&&(n+=" "),n+=t);return n}const Kee="-",fAr=e=>{const t=hAr(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:o=>{const a=o.split(Kee);return a[0]===""&&a.length!==1&&a.shift(),cZe(a,t)||pAr(o)},getConflictingClassGroupIds:(o,a)=>{const l=r[o]||[];return a&&n[o]?[...l,...n[o]]:l}}},cZe=(e,t)=>{if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),i=n?cZe(e.slice(1),n):void 0;if(i)return i;if(t.validators.length===0)return;const s=e.join(Kee);return t.validators.find(({validator:o})=>o(s))?.classGroupId},lxe=/^\[(.+)\]$/,pAr=e=>{if(lxe.test(e)){const t=lxe.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},hAr=e=>{const{theme:t,classGroups:r}=e,n={nextPart:new Map,validators:[]};for(const i in r)BZ(r[i],n,i,t);return n},BZ=(e,t,r,n)=>{e.forEach(i=>{if(typeof i=="string"){const s=i===""?t:cxe(t,i);s.classGroupId=r;return}if(typeof i=="function"){if(mAr(i)){BZ(i(n),t,r,n);return}t.validators.push({validator:i,classGroupId:r});return}Object.entries(i).forEach(([s,o])=>{BZ(o,cxe(t,s),r,n)})})},cxe=(e,t)=>{let r=e;return t.split(Kee).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},mAr=e=>e.isThemeGetter,gAr=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const i=(s,o)=>{r.set(s,o),t++,t>e&&(t=0,n=r,r=new Map)};return{get(s){let o=r.get(s);if(o!==void 0)return o;if((o=n.get(s))!==void 0)return i(s,o),o},set(s,o){r.has(s)?r.set(s,o):i(s,o)}}},VZ="!",UZ=":",yAr=UZ.length,vAr=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=i=>{const s=[];let o=0,a=0,l=0,c;for(let g=0;g<i.length;g++){let v=i[g];if(o===0&&a===0){if(v===UZ){s.push(i.slice(l,g)),l=g+yAr;continue}if(v==="/"){c=g;continue}}v==="["?o++:v==="]"?o--:v==="("?a++:v===")"&&a--}const u=s.length===0?i:i.substring(l),d=bAr(u),f=d!==u,m=c&&c>l?c-l:void 0;return{modifiers:s,hasImportantModifier:f,baseClassName:d,maybePostfixModifierPosition:m}};if(t){const i=t+UZ,s=n;n=o=>o.startsWith(i)?s(o.substring(i.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:o,maybePostfixModifierPosition:void 0}}if(r){const i=n;n=s=>r({className:s,parseClassName:i})}return n},bAr=e=>e.endsWith(VZ)?e.substring(0,e.length-1):e.startsWith(VZ)?e.substring(1):e,xAr=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(n=>[n,!0]));return n=>{if(n.length<=1)return n;const i=[];let s=[];return n.forEach(o=>{o[0]==="["||t[o]?(i.push(...s.sort(),o),s=[]):s.push(o)}),i.push(...s.sort()),i}},wAr=e=>({cache:gAr(e.cacheSize),parseClassName:vAr(e),sortModifiers:xAr(e),...fAr(e)}),SAr=/\s+/,OAr=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:i,sortModifiers:s}=t,o=[],a=e.trim().split(SAr);let l="";for(let c=a.length-1;c>=0;c-=1){const u=a[c],{isExternal:d,modifiers:f,hasImportantModifier:m,baseClassName:g,maybePostfixModifierPosition:v}=r(u);if(d){l=u+(l.length>0?" "+l:l);continue}let b=!!v,w=n(b?g.substring(0,v):g);if(!w){if(!b){l=u+(l.length>0?" "+l:l);continue}if(w=n(g),!w){l=u+(l.length>0?" "+l:l);continue}b=!1}const S=s(f).join(":"),O=m?S+VZ:S,k=O+w;if(o.includes(k))continue;o.push(k);const C=i(w,b);for(let T=0;T<C.length;++T){const P=C[T];o.push(O+P)}l=u+(l.length>0?" "+l:l)}return l};function _Ar(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=uZe(t))&&(n&&(n+=" "),n+=r);return n}const uZe=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=uZe(e[n]))&&(r&&(r+=" "),r+=t);return r};function uxe(e,...t){let r,n,i,s=o;function o(l){const c=t.reduce((u,d)=>d(u),e());return r=wAr(c),n=r.cache.get,i=r.cache.set,s=a,a(l)}function a(l){const c=n(l);if(c)return c;const u=OAr(l,r);return i(l,u),u}return function(){return s(_Ar.apply(null,arguments))}}const Vs=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},dZe=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,fZe=/^\((?:(\w[\w-]*):)?(.+)\)$/i,kAr=/^\d+\/\d+$/,EAr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,CAr=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,TAr=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,DAr=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,AAr=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,rx=e=>kAr.test(e),Nr=e=>!!e&&!Number.isNaN(Number(e)),Qm=e=>!!e&&Number.isInteger(Number(e)),jz=e=>e.endsWith("%")&&Nr(e.slice(0,-1)),Xp=e=>EAr.test(e),PAr=()=>!0,$Ar=e=>CAr.test(e)&&!TAr.test(e),pZe=()=>!1,IAr=e=>DAr.test(e),NAr=e=>AAr.test(e),RAr=e=>!Nt(e)&&!Rt(e),MAr=e=>mS(e,gZe,pZe),Nt=e=>dZe.test(e),Wy=e=>mS(e,yZe,$Ar),Fz=e=>mS(e,BAr,Nr),dxe=e=>mS(e,hZe,pZe),jAr=e=>mS(e,mZe,NAr),MP=e=>mS(e,vZe,IAr),Rt=e=>fZe.test(e),t_=e=>gS(e,yZe),FAr=e=>gS(e,VAr),fxe=e=>gS(e,hZe),LAr=e=>gS(e,gZe),zAr=e=>gS(e,mZe),jP=e=>gS(e,vZe,!0),mS=(e,t,r)=>{const n=dZe.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},gS=(e,t,r=!1)=>{const n=fZe.exec(e);return n?n[1]?t(n[1]):r:!1},hZe=e=>e==="position"||e==="percentage",mZe=e=>e==="image"||e==="url",gZe=e=>e==="length"||e==="size"||e==="bg-size",yZe=e=>e==="length",BAr=e=>e==="number",VAr=e=>e==="family-name",vZe=e=>e==="shadow",pxe=()=>{const e=Vs("color"),t=Vs("font"),r=Vs("text"),n=Vs("font-weight"),i=Vs("tracking"),s=Vs("leading"),o=Vs("breakpoint"),a=Vs("container"),l=Vs("spacing"),c=Vs("radius"),u=Vs("shadow"),d=Vs("inset-shadow"),f=Vs("text-shadow"),m=Vs("drop-shadow"),g=Vs("blur"),v=Vs("perspective"),b=Vs("aspect"),w=Vs("ease"),S=Vs("animate"),O=()=>["auto","avoid","all","avoid-page","page","left","right","column"],k=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],C=()=>[...k(),Rt,Nt],T=()=>["auto","hidden","clip","visible","scroll"],P=()=>["auto","contain","none"],A=()=>[Rt,Nt,l],R=()=>[rx,"full","auto",...A()],M=()=>[Qm,"none","subgrid",Rt,Nt],z=()=>["auto",{span:["full",Qm,Rt,Nt]},Qm,Rt,Nt],U=()=>[Qm,"auto",Rt,Nt],V=()=>["auto","min","max","fr",Rt,Nt],L=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Q=()=>["start","end","center","stretch","center-safe","end-safe"],F=()=>["auto",...A()],N=()=>[rx,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...A()],I=()=>[e,Rt,Nt],H=()=>[...k(),fxe,dxe,{position:[Rt,Nt]}],B=()=>["no-repeat",{repeat:["","x","y","space","round"]}],J=()=>["auto","cover","contain",LAr,MAr,{size:[Rt,Nt]}],q=()=>[jz,t_,Wy],j=()=>["","none","full",c,Rt,Nt],W=()=>["",Nr,t_,Wy],K=()=>["solid","dashed","dotted","double"],ne=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],X=()=>[Nr,jz,fxe,dxe],te=()=>["","none",g,Rt,Nt],ue=()=>["none",Nr,Rt,Nt],de=()=>["none",Nr,Rt,Nt],De=()=>[Nr,Rt,Nt],we=()=>[rx,"full",...A()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Xp],breakpoint:[Xp],color:[PAr],container:[Xp],"drop-shadow":[Xp],ease:["in","out","in-out"],font:[RAr],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Xp],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Xp],shadow:[Xp],spacing:["px",Nr],text:[Xp],"text-shadow":[Xp],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",rx,Nt,Rt,b]}],container:["container"],columns:[{columns:[Nr,Nt,Rt,a]}],"break-after":[{"break-after":O()}],"break-before":[{"break-before":O()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:C()}],overflow:[{overflow:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],overscroll:[{overscroll:P()}],"overscroll-x":[{"overscroll-x":P()}],"overscroll-y":[{"overscroll-y":P()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:R()}],"inset-x":[{"inset-x":R()}],"inset-y":[{"inset-y":R()}],start:[{start:R()}],end:[{end:R()}],top:[{top:R()}],right:[{right:R()}],bottom:[{bottom:R()}],left:[{left:R()}],visibility:["visible","invisible","collapse"],z:[{z:[Qm,"auto",Rt,Nt]}],basis:[{basis:[rx,"full","auto",a,...A()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Nr,rx,"auto","initial","none",Nt]}],grow:[{grow:["",Nr,Rt,Nt]}],shrink:[{shrink:["",Nr,Rt,Nt]}],order:[{order:[Qm,"first","last","none",Rt,Nt]}],"grid-cols":[{"grid-cols":M()}],"col-start-end":[{col:z()}],"col-start":[{"col-start":U()}],"col-end":[{"col-end":U()}],"grid-rows":[{"grid-rows":M()}],"row-start-end":[{row:z()}],"row-start":[{"row-start":U()}],"row-end":[{"row-end":U()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":V()}],"auto-rows":[{"auto-rows":V()}],gap:[{gap:A()}],"gap-x":[{"gap-x":A()}],"gap-y":[{"gap-y":A()}],"justify-content":[{justify:[...L(),"normal"]}],"justify-items":[{"justify-items":[...Q(),"normal"]}],"justify-self":[{"justify-self":["auto",...Q()]}],"align-content":[{content:["normal",...L()]}],"align-items":[{items:[...Q(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Q(),{baseline:["","last"]}]}],"place-content":[{"place-content":L()}],"place-items":[{"place-items":[...Q(),"baseline"]}],"place-self":[{"place-self":["auto",...Q()]}],p:[{p:A()}],px:[{px:A()}],py:[{py:A()}],ps:[{ps:A()}],pe:[{pe:A()}],pt:[{pt:A()}],pr:[{pr:A()}],pb:[{pb:A()}],pl:[{pl:A()}],m:[{m:F()}],mx:[{mx:F()}],my:[{my:F()}],ms:[{ms:F()}],me:[{me:F()}],mt:[{mt:F()}],mr:[{mr:F()}],mb:[{mb:F()}],ml:[{ml:F()}],"space-x":[{"space-x":A()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":A()}],"space-y-reverse":["space-y-reverse"],size:[{size:N()}],w:[{w:[a,"screen",...N()]}],"min-w":[{"min-w":[a,"screen","none",...N()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[o]},...N()]}],h:[{h:["screen","lh",...N()]}],"min-h":[{"min-h":["screen","lh","none",...N()]}],"max-h":[{"max-h":["screen","lh",...N()]}],"font-size":[{text:["base",r,t_,Wy]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,Rt,Fz]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",jz,Nt]}],"font-family":[{font:[FAr,Nt,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,Rt,Nt]}],"line-clamp":[{"line-clamp":[Nr,"none",Rt,Fz]}],leading:[{leading:[s,...A()]}],"list-image":[{"list-image":["none",Rt,Nt]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Rt,Nt]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:I()}],"text-color":[{text:I()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...K(),"wavy"]}],"text-decoration-thickness":[{decoration:[Nr,"from-font","auto",Rt,Wy]}],"text-decoration-color":[{decoration:I()}],"underline-offset":[{"underline-offset":[Nr,"auto",Rt,Nt]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:A()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Rt,Nt]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Rt,Nt]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:H()}],"bg-repeat":[{bg:B()}],"bg-size":[{bg:J()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Qm,Rt,Nt],radial:["",Rt,Nt],conic:[Qm,Rt,Nt]},zAr,jAr]}],"bg-color":[{bg:I()}],"gradient-from-pos":[{from:q()}],"gradient-via-pos":[{via:q()}],"gradient-to-pos":[{to:q()}],"gradient-from":[{from:I()}],"gradient-via":[{via:I()}],"gradient-to":[{to:I()}],rounded:[{rounded:j()}],"rounded-s":[{"rounded-s":j()}],"rounded-e":[{"rounded-e":j()}],"rounded-t":[{"rounded-t":j()}],"rounded-r":[{"rounded-r":j()}],"rounded-b":[{"rounded-b":j()}],"rounded-l":[{"rounded-l":j()}],"rounded-ss":[{"rounded-ss":j()}],"rounded-se":[{"rounded-se":j()}],"rounded-ee":[{"rounded-ee":j()}],"rounded-es":[{"rounded-es":j()}],"rounded-tl":[{"rounded-tl":j()}],"rounded-tr":[{"rounded-tr":j()}],"rounded-br":[{"rounded-br":j()}],"rounded-bl":[{"rounded-bl":j()}],"border-w":[{border:W()}],"border-w-x":[{"border-x":W()}],"border-w-y":[{"border-y":W()}],"border-w-s":[{"border-s":W()}],"border-w-e":[{"border-e":W()}],"border-w-t":[{"border-t":W()}],"border-w-r":[{"border-r":W()}],"border-w-b":[{"border-b":W()}],"border-w-l":[{"border-l":W()}],"divide-x":[{"divide-x":W()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":W()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...K(),"hidden","none"]}],"divide-style":[{divide:[...K(),"hidden","none"]}],"border-color":[{border:I()}],"border-color-x":[{"border-x":I()}],"border-color-y":[{"border-y":I()}],"border-color-s":[{"border-s":I()}],"border-color-e":[{"border-e":I()}],"border-color-t":[{"border-t":I()}],"border-color-r":[{"border-r":I()}],"border-color-b":[{"border-b":I()}],"border-color-l":[{"border-l":I()}],"divide-color":[{divide:I()}],"outline-style":[{outline:[...K(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Nr,Rt,Nt]}],"outline-w":[{outline:["",Nr,t_,Wy]}],"outline-color":[{outline:I()}],shadow:[{shadow:["","none",u,jP,MP]}],"shadow-color":[{shadow:I()}],"inset-shadow":[{"inset-shadow":["none",d,jP,MP]}],"inset-shadow-color":[{"inset-shadow":I()}],"ring-w":[{ring:W()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:I()}],"ring-offset-w":[{"ring-offset":[Nr,Wy]}],"ring-offset-color":[{"ring-offset":I()}],"inset-ring-w":[{"inset-ring":W()}],"inset-ring-color":[{"inset-ring":I()}],"text-shadow":[{"text-shadow":["none",f,jP,MP]}],"text-shadow-color":[{"text-shadow":I()}],opacity:[{opacity:[Nr,Rt,Nt]}],"mix-blend":[{"mix-blend":[...ne(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ne()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Nr]}],"mask-image-linear-from-pos":[{"mask-linear-from":X()}],"mask-image-linear-to-pos":[{"mask-linear-to":X()}],"mask-image-linear-from-color":[{"mask-linear-from":I()}],"mask-image-linear-to-color":[{"mask-linear-to":I()}],"mask-image-t-from-pos":[{"mask-t-from":X()}],"mask-image-t-to-pos":[{"mask-t-to":X()}],"mask-image-t-from-color":[{"mask-t-from":I()}],"mask-image-t-to-color":[{"mask-t-to":I()}],"mask-image-r-from-pos":[{"mask-r-from":X()}],"mask-image-r-to-pos":[{"mask-r-to":X()}],"mask-image-r-from-color":[{"mask-r-from":I()}],"mask-image-r-to-color":[{"mask-r-to":I()}],"mask-image-b-from-pos":[{"mask-b-from":X()}],"mask-image-b-to-pos":[{"mask-b-to":X()}],"mask-image-b-from-color":[{"mask-b-from":I()}],"mask-image-b-to-color":[{"mask-b-to":I()}],"mask-image-l-from-pos":[{"mask-l-from":X()}],"mask-image-l-to-pos":[{"mask-l-to":X()}],"mask-image-l-from-color":[{"mask-l-from":I()}],"mask-image-l-to-color":[{"mask-l-to":I()}],"mask-image-x-from-pos":[{"mask-x-from":X()}],"mask-image-x-to-pos":[{"mask-x-to":X()}],"mask-image-x-from-color":[{"mask-x-from":I()}],"mask-image-x-to-color":[{"mask-x-to":I()}],"mask-image-y-from-pos":[{"mask-y-from":X()}],"mask-image-y-to-pos":[{"mask-y-to":X()}],"mask-image-y-from-color":[{"mask-y-from":I()}],"mask-image-y-to-color":[{"mask-y-to":I()}],"mask-image-radial":[{"mask-radial":[Rt,Nt]}],"mask-image-radial-from-pos":[{"mask-radial-from":X()}],"mask-image-radial-to-pos":[{"mask-radial-to":X()}],"mask-image-radial-from-color":[{"mask-radial-from":I()}],"mask-image-radial-to-color":[{"mask-radial-to":I()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":k()}],"mask-image-conic-pos":[{"mask-conic":[Nr]}],"mask-image-conic-from-pos":[{"mask-conic-from":X()}],"mask-image-conic-to-pos":[{"mask-conic-to":X()}],"mask-image-conic-from-color":[{"mask-conic-from":I()}],"mask-image-conic-to-color":[{"mask-conic-to":I()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:H()}],"mask-repeat":[{mask:B()}],"mask-size":[{mask:J()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Rt,Nt]}],filter:[{filter:["","none",Rt,Nt]}],blur:[{blur:te()}],brightness:[{brightness:[Nr,Rt,Nt]}],contrast:[{contrast:[Nr,Rt,Nt]}],"drop-shadow":[{"drop-shadow":["","none",m,jP,MP]}],"drop-shadow-color":[{"drop-shadow":I()}],grayscale:[{grayscale:["",Nr,Rt,Nt]}],"hue-rotate":[{"hue-rotate":[Nr,Rt,Nt]}],invert:[{invert:["",Nr,Rt,Nt]}],saturate:[{saturate:[Nr,Rt,Nt]}],sepia:[{sepia:["",Nr,Rt,Nt]}],"backdrop-filter":[{"backdrop-filter":["","none",Rt,Nt]}],"backdrop-blur":[{"backdrop-blur":te()}],"backdrop-brightness":[{"backdrop-brightness":[Nr,Rt,Nt]}],"backdrop-contrast":[{"backdrop-contrast":[Nr,Rt,Nt]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Nr,Rt,Nt]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Nr,Rt,Nt]}],"backdrop-invert":[{"backdrop-invert":["",Nr,Rt,Nt]}],"backdrop-opacity":[{"backdrop-opacity":[Nr,Rt,Nt]}],"backdrop-saturate":[{"backdrop-saturate":[Nr,Rt,Nt]}],"backdrop-sepia":[{"backdrop-sepia":["",Nr,Rt,Nt]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":A()}],"border-spacing-x":[{"border-spacing-x":A()}],"border-spacing-y":[{"border-spacing-y":A()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Rt,Nt]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Nr,"initial",Rt,Nt]}],ease:[{ease:["linear","initial",w,Rt,Nt]}],delay:[{delay:[Nr,Rt,Nt]}],animate:[{animate:["none",S,Rt,Nt]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[v,Rt,Nt]}],"perspective-origin":[{"perspective-origin":C()}],rotate:[{rotate:ue()}],"rotate-x":[{"rotate-x":ue()}],"rotate-y":[{"rotate-y":ue()}],"rotate-z":[{"rotate-z":ue()}],scale:[{scale:de()}],"scale-x":[{"scale-x":de()}],"scale-y":[{"scale-y":de()}],"scale-z":[{"scale-z":de()}],"scale-3d":["scale-3d"],skew:[{skew:De()}],"skew-x":[{"skew-x":De()}],"skew-y":[{"skew-y":De()}],transform:[{transform:[Rt,Nt,"","none","gpu","cpu"]}],"transform-origin":[{origin:C()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:we()}],"translate-x":[{"translate-x":we()}],"translate-y":[{"translate-y":we()}],"translate-z":[{"translate-z":we()}],"translate-none":["translate-none"],accent:[{accent:I()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:I()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Rt,Nt]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":A()}],"scroll-mx":[{"scroll-mx":A()}],"scroll-my":[{"scroll-my":A()}],"scroll-ms":[{"scroll-ms":A()}],"scroll-me":[{"scroll-me":A()}],"scroll-mt":[{"scroll-mt":A()}],"scroll-mr":[{"scroll-mr":A()}],"scroll-mb":[{"scroll-mb":A()}],"scroll-ml":[{"scroll-ml":A()}],"scroll-p":[{"scroll-p":A()}],"scroll-px":[{"scroll-px":A()}],"scroll-py":[{"scroll-py":A()}],"scroll-ps":[{"scroll-ps":A()}],"scroll-pe":[{"scroll-pe":A()}],"scroll-pt":[{"scroll-pt":A()}],"scroll-pr":[{"scroll-pr":A()}],"scroll-pb":[{"scroll-pb":A()}],"scroll-pl":[{"scroll-pl":A()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Rt,Nt]}],fill:[{fill:["none",...I()]}],"stroke-w":[{stroke:[Nr,t_,Wy,Fz]}],stroke:[{stroke:["none",...I()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},UAr=(e,{cacheSize:t,prefix:r,experimentalParseClassName:n,extend:i={},override:s={}})=>(A_(e,"cacheSize",t),A_(e,"prefix",r),A_(e,"experimentalParseClassName",n),FP(e.theme,s.theme),FP(e.classGroups,s.classGroups),FP(e.conflictingClassGroups,s.conflictingClassGroups),FP(e.conflictingClassGroupModifiers,s.conflictingClassGroupModifiers),A_(e,"orderSensitiveModifiers",s.orderSensitiveModifiers),LP(e.theme,i.theme),LP(e.classGroups,i.classGroups),LP(e.conflictingClassGroups,i.conflictingClassGroups),LP(e.conflictingClassGroupModifiers,i.conflictingClassGroupModifiers),bZe(e,i,"orderSensitiveModifiers"),e),A_=(e,t,r)=>{r!==void 0&&(e[t]=r)},FP=(e,t)=>{if(t)for(const r in t)A_(e,r,t[r])},LP=(e,t)=>{if(t)for(const r in t)bZe(e,t,r)},bZe=(e,t,r)=>{const n=t[r];n!==void 0&&(e[r]=e[r]?e[r].concat(n):n)},QAr=(e,...t)=>typeof e=="function"?uxe(pxe,e,...t):uxe(()=>UAr(pxe(),e),...t),ZAr=Object.keys({...dTe,...rft}),qAr=Object.keys(oft),HAr=Object.keys(nft),WAr=Object.keys(ift),GAr=Object.keys(tft),Gy=Object.keys(sft),XAr=QAr({extend:{theme:{color:ZAr,spacing:qAr,radius:GAr,leading:WAr},classGroups:{"font-size":[{text:HAr}],h:[{h:Gy}],w:[{w:Gy}],size:[{size:Gy}],"min-h":[{"min-h":Gy}],"min-w":[{"min-w":Gy}],"max-h":[{"max-h":Gy}],"max-w":[{"max-w":Gy}]}}});function ie(...e){return XAr(lZe(e))}const Ea={sm:"h-form-sm",md:"h-form-md",lg:"h-form-lg"},yS="focus:outline focus:outline-1 focus:outline-accent1",YAr="focus-within:outline focus-within:outline-1 focus-within:outline-accent1 focus-within:-outline-offset-2",SD="rounded-md",xZe={sm:`${Ea.sm} gap-0.5`,md:`${Ea.md} gap-1`,lg:`${Ea.lg} gap-2`},wZe={default:"bg-surface2 hover:bg-surface4 text-neutral3 hover:text-neutral6 disabled:opacity-50",light:"bg-surface3 hover:bg-surface5 text-neutral6 disabled:opacity-50",outline:"bg-transparent hover:bg-surface2 text-neutral3 hover:text-neutral6 disabled:opacity-50",ghost:"bg-transparent border-transparent hover:bg-surface2 text-neutral3 hover:text-neutral6 disabled:opacity-50"};function SZe(e){const t=e?.variant||"default",r=e?.size||"md";return ie("bg-surface2 border border-border1 px-2 text-ui-md inline-flex items-center justify-center rounded-md border",yS,wZe[t],xZe[r])}const Ke=me.forwardRef(({className:e,as:t,size:r="md",variant:n="default",...i},s)=>{const o=t||"button";return p.jsx(o,{ref:s,className:ie("bg-surface2 border border-border1 px-2 text-ui-md inline-flex items-center justify-center rounded-md border",yS,wZe[n],xZe[r],e,{"cursor-not-allowed":i.disabled}),...i})});Ke.displayName="Button";const xu=_ft,$i=kft,Ii=Eft,gi=E.forwardRef(({className:e,sideOffset:t=4,...r},n)=>p.jsx(Cft,{children:p.jsx(wTe,{ref:n,sideOffset:t,className:ie("z-50 overflow-hidden rounded-md bg-neutral6 px-3 py-1.5 text-xs text-surface2 animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r})}));gi.displayName=wTe.displayName;const dd=E.forwardRef(({children:e,tooltip:t,side:r="bottom",className:n,...i},s)=>p.jsx(xu,{children:p.jsxs($i,{children:[p.jsx(Ii,{asChild:!0,children:p.jsx(Ke,{...i,className:ie("size-6 p-1",n),ref:s,"aria-label":t,children:e})}),p.jsx(gi,{side:r,children:t})]})}));dd.displayName="TooltipIconButton";const JAr={"ui-xs":"text-ui-xs leading-ui-xs","ui-sm":"text-ui-sm leading-ui-sm","ui-md":"text-ui-md leading-ui-md","ui-lg":"text-ui-lg leading-ui-lg","header-sm":"text-header-sm leading-header-sm","header-md":"text-header-md leading-header-md","header-lg":"text-header-lg leading-header-lg","header-xl":"text-header-xl leading-header-xl"},KAr={mono:"font-mono"},Ye=({as:e="p",className:t,variant:r="ui-md",font:n,...i})=>p.jsx(e,{className:ie(JAr[r],n&&KAr[n],t),...i}),e2r={sm:"h-avatar-sm w-avatar-sm",md:"h-avatar-md w-avatar-md",lg:"h-avatar-lg w-avatar-lg"},t2r=({src:e,name:t,size:r="sm"})=>p.jsx("div",{className:`${e2r[r]} border border-border1 bg-surface3 shrink-0 overflow-hidden rounded-full flex items-center justify-center`,children:e?p.jsx("img",{src:e,alt:t,className:"h-full w-full object-cover"}):p.jsx(Ye,{variant:"ui-md",className:"text-center",children:t[0].toUpperCase()})}),r2r=Mbt({style:ibt.coldarkDark,customStyle:{margin:0,backgroundColor:"black"}}),n2r=()=>p.jsx(nyt,{remarkPlugins:[$De],className:"aui-md",components:a2r}),hxe=E.memo(n2r),i2r=({language:e,code:t})=>{const{isCopied:r,copyToClipboard:n}=s2r(),i=()=>{!t||r||n(t)};return p.jsxs("div",{style:{background:"hsl(0 0% 100% / 0.06)",borderTopRightRadius:"0.5rem",borderTopLeftRadius:"0.5rem",marginTop:"0.5rem",border:"1px solid hsl(0 0% 20.4%)",borderBottom:"none"},className:"flex items-center justify-between gap-4 px-4 py-2 text-sm font-semibold text-white",children:[p.jsx("span",{className:"lowercase [&>span]:text-xs",children:e}),p.jsx(dd,{tooltip:"Copy",onClick:i,children:p.jsxs("span",{className:"grid",children:[p.jsx("span",{style:{gridArea:"1/1"},className:ie("transition-transform",r?"scale-100":"scale-0"),children:p.jsx(yd,{size:14})},"checkmark"),p.jsx("span",{style:{gridArea:"1/1"},className:ie("transition-transform",r?"scale-0":"scale-100"),children:p.jsx(nu,{size:14})},"copy")]})})]})},s2r=({copiedDuration:e=1500}={})=>{const[t,r]=E.useState(!1);return{isCopied:t,copyToClipboard:i=>{i&&navigator.clipboard.writeText(i).then(()=>{r(!0),setTimeout(()=>r(!1),e)})}}},o2r=({alt:e,src:t,...r})=>{const[n,i]=E.useState(!1);return E.useEffect(()=>{i(!1)},[t]),n||!t?p.jsxs("div",{children:[p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",width:"150",height:"150",children:p.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m2.25 15.75 5.159-5.159a2.25 2.25 0 0 1 3.182 0l5.159 5.159m-1.5-1.5 1.409-1.409a2.25 2.25 0 0 1 3.182 0l2.909 2.909m-18 3.75h16.5a1.5 1.5 0 0 0 1.5-1.5V6a1.5 1.5 0 0 0-1.5-1.5H3.75A1.5 1.5 0 0 0 2.25 6v12a1.5 1.5 0 0 0 1.5 1.5Zm10.5-11.25h.008v.008h-.008V8.25Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Z"})}),p.jsx("p",{className:"text-xs italic text-neutral3 -mt-2.5 mb-2.5",children:"Image link is broken"})]}):p.jsx("img",{src:t,alt:e,...r,onError:()=>{i(!0)}})},a2r=Bgt({h1:({className:e,...t})=>p.jsx("h1",{className:ie("mb-8 scroll-m-20 text-4xl font-extrabold tracking-tight last:mb-0",e),...t,style:{marginBottom:"2rem"}}),h2:({className:e,...t})=>p.jsx("h2",{className:ie("mb-4 mt-8 scroll-m-20 text-3xl font-semibold tracking-tight first:mt-0 last:mb-0",e),...t,style:{marginBottom:"1rem",marginTop:"2rem"}}),h3:({className:e,...t})=>p.jsx("h3",{className:ie("scroll-m-20 text-2xl font-semibold tracking-tight first:mt-0 last:mb-0",e),...t,style:{marginBottom:"1rem",marginTop:"1.5rem"}}),h4:({className:e,...t})=>p.jsx("h4",{className:ie("scroll-m-20 text-xl font-semibold tracking-tight first:mt-0 last:mb-0",e),...t,style:{marginBottom:"1rem",marginTop:"1.5rem"}}),h5:({className:e,...t})=>p.jsx("h5",{className:ie("font-semibold first:mt-0 last:mb-0",e),...t,style:{marginBottom:"1rem",marginTop:"1rem"}}),h6:({className:e,...t})=>p.jsx("h6",{className:ie("font-semibold first:mt-0 last:mb-0",e),...t,style:{marginBottom:"1rem",marginTop:"1rem"}}),p:({className:e,...t})=>p.jsx("p",{className:ie("leading-7 first:mt-0 last:mb-0",e),...t}),a:({className:e,...t})=>p.jsx("a",{className:ie("text-neutral6 font-medium underline underline-offset-4",e),...t}),blockquote:({className:e,...t})=>p.jsx("blockquote",{className:ie("border-l-2 pl-6 italic",e),...t}),ul:({className:e,...t})=>p.jsx("ul",{className:ie("my-5 ml-6 list-disc [&>li]:mt-2",e),...t}),ol:({className:e,...t})=>p.jsx("ol",{className:ie("my-5 ml-6 list-decimal [&>li]:mt-2",e),...t}),hr:({className:e,...t})=>p.jsx("hr",{className:ie("my-5 border-b",e),...t}),table:({className:e,...t})=>p.jsx("table",{className:ie("my-5 w-full border-separate border-spacing-0 overflow-y-auto",e),...t}),th:({className:e,...t})=>p.jsx("th",{className:ie("bg-surface4 px-4 py-2 text-left font-bold first:rounded-tl-lg last:rounded-tr-lg [&[align=center]]:text-center [&[align=right]]:text-right",e),...t}),td:({className:e,...t})=>p.jsx("td",{className:ie("border-b border-l px-4 py-2 text-left last:border-r [&[align=center]]:text-center [&[align=right]]:text-right",e),...t}),tr:({className:e,...t})=>p.jsx("tr",{className:ie("m-0 border-b p-0 first:border-t [&:last-child>td:first-child]:rounded-bl-lg [&:last-child>td:last-child]:rounded-br-lg",e),...t}),sup:({className:e,...t})=>p.jsx("sup",{className:ie("[&>a]:text-xs [&>a]:no-underline",e),...t}),pre:({className:e,...t})=>p.jsx("pre",{...t,style:{borderBottomRightRadius:"0.5rem",borderBottomLeftRadius:"0.5rem",background:"transparent",fontSize:"0.875rem",marginBottom:"0.5rem",border:"1px solid hsl(0 0% 20.4%)"},className:ie("overflow-x-auto p-4 text-white",e)}),code:function({className:t,...r}){const n=oDe();return p.jsxs("pre",{style:{fontSize:"0.875rem",display:"inline"},children:[p.jsx("code",{className:ie(!n&&"bg-surface4 rounded border font-semibold",t),...r,style:{fontWeight:"400",paddingBlock:n?0:"0.1em",paddingInline:n?0:"0.3em"}})," "]})},CodeHeader:i2r,SyntaxHighlighter:r2r,img:o2r}),l2r=({reason:e,tripwire:t})=>{const[r,n]=E.useState(!1),i=t&&(t.retry!==void 0||t.tripwirePayload||t.processorId);return p.jsxs("div",{className:"rounded-lg border border-amber-500/30 bg-amber-950/20 overflow-hidden",children:[p.jsxs("div",{className:"flex items-start gap-3 p-4",children:[p.jsx(OT,{className:"w-5 h-5 text-amber-400 mt-0.5 flex-shrink-0"}),p.jsxs("div",{className:"flex-1 min-w-0",children:[p.jsx("p",{className:"text-sm font-medium text-amber-200 mb-1",children:"Content Blocked"}),p.jsx("p",{className:"text-sm text-amber-300/90",children:e})]})]}),i&&p.jsxs(p.Fragment,{children:[p.jsxs("button",{onClick:()=>n(!r),className:"w-full flex items-center gap-2 px-4 py-2 text-xs text-amber-400/70 hover:text-amber-400 hover:bg-amber-900/20 transition-colors border-t border-amber-500/20",children:[r?p.jsx(Rd,{className:"w-3.5 h-3.5"}):p.jsx(IN,{className:"w-3.5 h-3.5"}),p.jsx("span",{children:"Details"})]}),r&&p.jsxs("div",{className:"px-4 pb-4 space-y-3 border-t border-amber-500/20 bg-amber-950/10",children:[t.retry!==void 0&&p.jsxs("div",{className:"flex items-center gap-2 pt-3",children:[p.jsx(RN,{className:"w-3.5 h-3.5 text-amber-400/60"}),p.jsxs("span",{className:"text-xs text-amber-300/70",children:["Retry:"," ",t.retry?p.jsx("span",{className:"text-green-400",children:"Allowed"}):p.jsx("span",{className:"text-red-400",children:"Not allowed"})]})]}),t.processorId&&p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx(cTe,{className:"w-3.5 h-3.5 text-amber-400/60"}),p.jsxs("span",{className:"text-xs text-amber-300/70",children:["Processor:"," ",p.jsx("code",{className:"px-1.5 py-0.5 rounded bg-amber-900/30 text-amber-200 font-mono",children:t.processorId})]})]}),t.tripwirePayload!==void 0&&t.tripwirePayload!==null&&p.jsxs("div",{className:"pt-1",children:[p.jsx("p",{className:"text-xs text-amber-400/60 mb-1.5",children:"Metadata:"}),p.jsx("pre",{className:"text-xs text-amber-200/80 bg-amber-900/30 rounded p-2 overflow-x-auto font-mono",children:String(JSON.stringify(t.tripwirePayload,null,2))})]})]})]})]})},ea=e=>p.jsxs("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[p.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.5 15C10.3565 15 12.137 14.2625 13.4497 12.9497C14.7625 11.637 15.5 9.85652 15.5 8C15.5 6.14348 14.7625 4.36301 13.4497 3.05025C12.137 1.7375 10.3565 1 8.5 1C6.64348 1 4.86301 1.7375 3.55025 3.05025C2.2375 4.36301 1.5 6.14348 1.5 8C1.5 9.85652 2.2375 11.637 3.55025 12.9497C4.86301 14.2625 6.64348 15 8.5 15ZM5.621 10.879L4.611 11.889C3.84179 11.1198 3.31794 10.1398 3.1057 9.07291C2.89346 8.00601 3.00236 6.90013 3.41864 5.89512C3.83491 4.89012 4.53986 4.03112 5.44434 3.42676C6.34881 2.8224 7.41219 2.49983 8.5 2.49983C9.58781 2.49983 10.6512 2.8224 11.5557 3.42676C12.4601 4.03112 13.1651 4.89012 13.5814 5.89512C13.9976 6.90013 14.1065 8.00601 13.8943 9.07291C13.6821 10.1398 13.1582 11.1198 12.389 11.889L11.379 10.879C11.1004 10.6003 10.7696 10.3792 10.4055 10.2284C10.0414 10.0776 9.6511 9.99995 9.257 10H7.743C7.3489 9.99995 6.95865 10.0776 6.59455 10.2284C6.23045 10.3792 5.89963 10.6003 5.621 10.879Z",fill:"currentColor"}),p.jsx("path",{d:"M8.5 4C7.96957 4 7.46086 4.21071 7.08579 4.58579C6.71071 4.96086 6.5 5.46957 6.5 6V6.5C6.5 7.03043 6.71071 7.53914 7.08579 7.91421C7.46086 8.28929 7.96957 8.5 8.5 8.5C9.03043 8.5 9.53914 8.28929 9.91421 7.91421C10.2893 7.53914 10.5 7.03043 10.5 6.5V6C10.5 5.46957 10.2893 4.96086 9.91421 4.58579C9.53914 4.21071 9.03043 4 8.5 4Z",fill:"currentColor"})]}),OZe=e=>p.jsxs("svg",{width:"126",height:"85",viewBox:"0 0 126 85",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[p.jsx("path",{d:"M63.0002 0.968262C28.5152 0.968262 0.55957 15.6484 0.55957 33.7573V51.2428C0.55957 69.3517 28.5152 84.0319 63.0002 84.0319C97.4853 84.0319 125.441 69.3517 125.441 51.2428V33.7573C125.441 15.6484 97.4853 0.968262 63.0002 0.968262Z",stroke:"#707070"}),p.jsx("path",{d:"M119.322 35.1636C119.322 50.3595 94.1055 62.6782 62.9998 62.6782C31.894 62.6782 6.67773 50.3595 6.67773 35.1636V49.8363C6.67773 65.0322 31.894 77.351 62.9998 77.351C94.1055 77.351 119.322 65.0322 119.322 49.8363V35.1636Z",fill:"#2E2E2E",fillOpacity:"0.9"}),p.jsx("path",{d:"M119.322 35.1636C119.322 50.3595 94.1055 62.6782 62.9998 62.6782C31.894 62.6782 6.67773 50.3595 6.67773 35.1636M119.322 35.1636C119.322 19.9677 94.1055 7.64893 62.9998 7.64893C31.894 7.64893 6.67773 19.9677 6.67773 35.1636M119.322 35.1636V49.8363C119.322 65.0322 94.1055 77.351 62.9998 77.351C31.894 77.351 6.67773 65.0322 6.67773 49.8363V35.1636",stroke:"#424242"}),p.jsxs("g",{clipPath:"url(#clip0_21421_19519)",children:[p.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M38.5383 47.0955C45.0714 50.3122 53.9322 52.1193 63.1714 52.1193C72.4106 52.1193 81.2714 50.3122 87.8045 47.0955C94.3376 43.8787 98.0078 39.5159 98.0078 34.9668C98.0078 30.4177 94.3376 26.0549 87.8045 22.8381C81.2714 19.6214 72.4106 17.8143 63.1714 17.8143C53.9322 17.8143 45.0714 19.6214 38.5383 22.8381C32.0052 26.0549 28.3349 30.4177 28.3349 34.9668C28.3349 39.5159 32.0052 43.8787 38.5383 47.0955ZM42.9089 34.9668L35.8005 34.9668C35.8004 32.3013 37.4056 29.6956 40.4132 27.4793C43.4207 25.263 47.6956 23.5355 52.6971 22.5154C57.6986 21.4954 63.2022 21.2285 68.5118 21.7485C73.8214 22.2685 78.6986 23.552 82.5266 25.4368C86.3546 27.3216 88.9615 29.723 90.0176 32.3373C91.0737 34.9517 90.5316 37.6614 88.4599 40.1241C86.3881 42.5867 82.8797 44.6915 78.3784 46.1723C73.8771 47.6532 68.585 48.4435 63.1714 48.4435V44.9435C63.1717 43.9778 62.7855 43.0215 62.035 42.1293C61.2845 41.2372 60.1843 40.4265 58.7973 39.7438L53.4695 37.1205C52.0828 36.4376 50.4364 35.8959 48.6244 35.5263C46.8124 35.1568 44.8702 34.9667 42.9089 34.9668Z",fill:"#A9A9A9"}),p.jsx("path",{d:"M77.2474 28.0361C75.3808 27.1171 72.8492 26.6007 70.2094 26.6007C67.5696 26.6007 65.038 27.1171 63.1714 28.0361L61.4119 28.9025C59.5453 29.8215 58.4966 31.068 58.4966 32.3678C58.4966 33.6676 59.5453 34.9141 61.4119 35.8331C63.2785 36.7522 65.8101 37.2685 68.4499 37.2685C71.0897 37.2685 73.6213 36.7522 75.4879 35.8331L77.2474 34.9668C79.114 34.0477 80.1627 32.8012 80.1627 31.5015C80.1627 30.2017 79.114 28.9552 77.2474 28.0361Z",fill:"#A9A9A9"})]}),p.jsx("defs",{children:p.jsx("clipPath",{id:"clip0_21421_19519",children:p.jsx("rect",{width:"62.7591",height:"62.7591",fill:"white",transform:"matrix(0.897148 0.441731 -0.897148 0.441731 63.1714 7.24365)"})})})]}),c2r=e=>p.jsxs("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[p.jsx("path",{d:"M11.0313 7.97578C11.0313 9.34436 9.92183 10.4538 8.55324 10.4538C7.18466 10.4538 6.0752 9.34436 6.0752 7.97578C6.0752 6.60719 7.18466 5.49773 8.55324 5.49773C9.92183 5.49773 11.0313 6.60719 11.0313 7.97578ZM11.0313 7.97578H14.573",stroke:"currentColor",strokeWidth:"1.33333",strokeLinecap:"round"}),p.jsx("path",{d:"M12.967 4.46154C11.9273 3.14431 10.3165 2.29883 8.50814 2.29883C5.37277 2.29883 2.83105 4.84055 2.83105 7.97591C2.83105 11.1113 5.37277 13.653 8.50814 13.653C10.3165 13.653 11.9273 12.8075 12.967 11.4903",stroke:"currentColor",strokeWidth:"1.33333",strokeLinecap:"round"})]}),ete=e=>p.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[p.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.99982 2.0625C3.8252 2.0625 2.06232 3.82538 2.06232 6C2.06232 8.17462 3.8252 9.9375 5.99982 9.9375C8.17444 9.9375 9.93732 8.17462 9.93732 6C9.93732 3.82538 8.17444 2.0625 5.99982 2.0625ZM0.937317 6C0.937317 3.20406 3.20388 0.9375 5.99982 0.9375C8.79576 0.9375 11.0623 3.20406 11.0623 6C11.0623 8.79594 8.79576 11.0625 5.99982 11.0625C3.20388 11.0625 0.937317 8.79594 0.937317 6Z",fill:"currentColor"}),p.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.97865 4.57004C8.22604 4.75795 8.27426 5.11082 8.08635 5.35821L6.05486 8.03279C5.94873 8.17251 5.78348 8.25471 5.60803 8.25505C5.43257 8.2554 5.267 8.17385 5.16032 8.03454L3.80937 6.27034C3.6205 6.02369 3.66733 5.67063 3.91398 5.48176C4.16063 5.29288 4.51369 5.33972 4.70257 5.58637L5.6051 6.76498L7.19048 4.67774C7.37839 4.43036 7.73126 4.38213 7.97865 4.57004Z",fill:"currentColor"})]}),tte=e=>p.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[p.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.99982 2.0625C3.8252 2.0625 2.06232 3.82538 2.06232 6C2.06232 8.17462 3.8252 9.9375 5.99982 9.9375C8.17444 9.9375 9.93732 8.17462 9.93732 6C9.93732 3.82538 8.17444 2.0625 5.99982 2.0625ZM0.937317 6C0.937317 3.20406 3.20388 0.9375 5.99982 0.9375C8.79576 0.9375 11.0623 3.20406 11.0623 6C11.0623 8.79594 8.79576 11.0625 5.99982 11.0625C3.20388 11.0625 0.937317 8.79594 0.937317 6Z",fill:"currentColor"}),p.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.89741 4.10293C8.11707 4.32261 8.11706 4.67877 7.89738 4.89843L6.79517 6.00058L7.8962 7.10155C8.11588 7.32122 8.11589 7.67737 7.89623 7.89705C7.67656 8.11673 7.32041 8.11674 7.10073 7.89707L5.99965 6.79605L4.89856 7.89707C4.67889 8.11673 4.32273 8.11672 4.10307 7.89704C3.88341 7.67737 3.88342 7.32121 4.10309 7.10155L5.20413 6.00058L4.10191 4.89843C3.88224 4.67877 3.88223 4.32262 4.10189 4.10294C4.32155 3.88326 4.67771 3.88325 4.89738 4.10292L5.99965 5.20511L7.10191 4.10291C7.32159 3.88325 7.67774 3.88326 7.89741 4.10293Z",fill:"currentColor"})]}),k4=e=>p.jsx("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:p.jsx("path",{d:"M8.5 3V13",stroke:"currentColor",strokeWidth:"0.5"})}),Sc=e=>p.jsx("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:p.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.1747 3.18598L7.02554 1.95209C7.11557 1.89207 7.31087 1.87106 7.41016 1.90924L12.4139 3.83377C12.4683 3.85467 12.546 3.96798 12.546 4.03118V13.0167C12.546 13.265 12.7473 13.4663 12.9956 13.4663C13.2439 13.4663 13.4452 13.265 13.4452 13.0167V4.03118C13.4452 3.59605 13.1384 3.14906 12.7367 2.99456L7.73293 1.07004C7.36225 0.927472 6.86056 0.981451 6.52679 1.20396L4.20445 2.75219L3.90419 2.95236L3.90647 2.95824C3.69329 3.05449 3.55469 3.27599 3.55469 3.57581V11.7119C3.55469 12.2084 3.93067 12.7499 4.39251 12.9206L9.89804 14.955C10.3608 15.126 10.7359 14.8596 10.7359 14.3659V5.83295C10.7359 5.33662 10.3498 4.81289 9.88389 4.66643L5.1747 3.18598Z",fill:"currentColor"})}),rte=e=>p.jsxs("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[p.jsx("g",{clipPath:"url(#clip0_21999_22095)",children:p.jsx("path",{d:"M7.5 0.75C3.6325 0.75 0.5 3.8825 0.5 7.75C0.5 10.8475 2.50375 13.4637 5.28625 14.3912C5.63625 14.4525 5.7675 14.2425 5.7675 14.0587C5.7675 13.8925 5.75875 13.3412 5.75875 12.755C4 13.0787 3.545 12.3262 3.405 11.9325C3.32625 11.7312 2.985 11.11 2.6875 10.9437C2.4425 10.8125 2.0925 10.4887 2.67875 10.48C3.23 10.4712 3.62375 10.9875 3.755 11.1975C4.385 12.2562 5.39125 11.9587 5.79375 11.775C5.855 11.32 6.03875 11.0137 6.24 10.8387C4.6825 10.6637 3.055 10.06 3.055 7.3825C3.055 6.62125 3.32625 5.99125 3.7725 5.50125C3.7025 5.32625 3.4575 4.60875 3.8425 3.64625C3.8425 3.64625 4.42875 3.4625 5.7675 4.36375C6.3275 4.20625 6.9225 4.1275 7.5175 4.1275C8.1125 4.1275 8.7075 4.20625 9.2675 4.36375C10.6062 3.45375 11.1925 3.64625 11.1925 3.64625C11.5775 4.60875 11.3325 5.32625 11.2625 5.50125C11.7087 5.99125 11.98 6.6125 11.98 7.3825C11.98 10.0687 10.3438 10.6637 8.78625 10.8387C9.04 11.0575 9.25875 11.4775 9.25875 12.1337C9.25875 13.07 9.25 13.8225 9.25 14.0587C9.25 14.2425 9.38125 14.4612 9.73125 14.3912C11.1209 13.9221 12.3284 13.029 13.1839 11.8377C14.0393 10.6463 14.4996 9.21668 14.5 7.75C14.5 3.8825 11.3675 0.75 7.5 0.75Z",fill:"currentColor"})}),p.jsx("defs",{children:p.jsx("clipPath",{id:"clip0_21999_22095",children:p.jsx("rect",{width:"14",height:"14",fill:"currentColor",transform:"translate(0.5 0.75)"})})})]}),u2r=e=>p.jsxs("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[p.jsxs("g",{clipPath:"url(#clip0_21999_20513)",children:[p.jsx("path",{d:"M13.5037 7.54867C13.5037 7.1144 13.4648 6.69683 13.3924 6.29596H7.62436V8.66776H10.9204C10.7756 9.43052 10.3413 10.0764 9.68994 10.5106V12.0529H11.6776C12.8356 10.9839 13.5037 9.41382 13.5037 7.54867Z",fill:"white"}),p.jsx("path",{d:"M7.62415 13.5339C9.27773 13.5339 10.6643 12.9882 11.6776 12.0529L9.68994 10.5106C9.14431 10.8781 8.44816 11.1009 7.62415 11.1009C6.03182 11.1009 4.67889 10.0263 4.19451 8.57877H2.15677V10.16C3.1645 12.1587 5.23008 13.5339 7.62415 13.5339Z",fill:"white"}),p.jsx("path",{d:"M4.19472 8.57315C4.07223 8.20569 3.99985 7.81595 3.99985 7.40952C3.99985 7.00308 4.07223 6.61335 4.19472 6.24589V4.66469H2.15698C1.73941 5.4887 1.5 6.41849 1.5 7.40952C1.5 8.40055 1.73941 9.33034 2.15698 10.1543L3.74374 8.91834L4.19472 8.57315Z",fill:"white"}),p.jsx("path",{d:"M7.62415 3.72376C8.5261 3.72376 9.32783 4.03555 9.96811 4.63685L11.7219 2.88306C10.6585 1.89202 9.27773 1.28516 7.62415 1.28516C5.23008 1.28516 3.16471 2.66036 2.15698 4.66469L4.19472 6.24589C4.6791 4.79832 6.03182 3.72376 7.62415 3.72376Z",fill:"white"})]}),p.jsx("defs",{children:p.jsx("clipPath",{id:"clip0_21999_20513",children:p.jsx("rect",{width:"12.2487",height:"12.2487",fill:"white",transform:"translate(1.375 1.28516)"})})})]}),d2r={sm:"[&>svg]:h-icon-sm [&>svg]:w-icon-sm",default:"[&>svg]:h-icon-default [&>svg]:w-icon-default",lg:"[&>svg]:h-icon-lg [&>svg]:w-icon-lg"},He=({children:e,className:t,size:r="default",...n})=>p.jsx("span",{className:ie("block",d2r[r],t),...n,children:e}),f2r=e=>p.jsx("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:p.jsx("path",{d:"M3.8674 9.19968L4.14554 10.8649C4.23965 11.4283 4.75254 11.8237 5.32137 11.7713L5.58252 11.7472C6.56555 11.6567 7.43309 12.3868 7.51181 13.3708L7.59308 14.3867C7.60422 14.5259 7.71868 14.6342 7.85825 14.6376L9.91053 14.6876C10.1066 14.6924 10.2434 14.4948 10.17 14.3129L8.90452 11.1782C8.80956 10.9429 8.65085 10.7389 8.44626 10.5889L7.90134 10.1895C7.70604 10.0464 7.55223 9.85411 7.45759 9.63124C7.15011 8.90712 6.6579 7.71234 6.37054 6.88944C6.19204 6.3783 5.79931 6.29158 5.45492 6.21553C4.98179 6.11106 4.5999 6.02673 4.99001 4.88985C5.66408 2.92541 8.06015 2.07904 10.6601 3.33088C12.6488 4.2884 13.1187 6.35416 13.0328 7.58237C13.0297 7.62768 13.0214 7.67186 13.0094 7.71566C12.8829 8.17534 12.368 8.40491 11.9415 8.19169L10.3022 7.37201C10.2069 7.32439 10.0927 7.33657 10.0096 7.40322L8.64809 8.49559C8.55405 8.57104 8.52072 8.69931 8.56615 8.811L10.8995 14.5478C10.9404 14.6483 11.0369 14.715 11.1454 14.7177L12.0572 14.7399C12.2581 14.7448 12.3951 14.5382 12.3124 14.3551L11.8681 13.3706C11.4211 12.3803 11.6047 11.2192 12.3354 10.4151L13.4616 9.17575C13.7473 8.86125 13.9224 8.46187 13.9599 8.03858L13.9763 7.85359C14.2866 4.35298 11.377 1.41272 7.87336 1.68639C6.03919 1.82965 4.45399 3.02228 3.80807 4.74492L3.70275 5.02579C3.5828 5.34571 3.62741 5.70411 3.82213 5.98485L3.88946 6.08192C4.12183 6.41695 4.0958 6.86726 3.82637 7.17328L3.06705 8.03572C2.96261 8.15435 2.98058 8.33664 3.10617 8.43259L3.66059 8.85617C3.77064 8.94026 3.84458 9.06307 3.8674 9.19968Z",fill:"currentColor"})}),p2r=e=>p.jsx("svg",{width:"12",height:"13",viewBox:"0 0 12 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:p.jsx("path",{d:"M10.1266 5.67745C10.3409 5.0225 10.2695 4.2961 9.92413 3.70069C9.40017 2.78376 8.34034 2.31934 7.30433 2.53369C6.85182 2.02164 6.18496 1.73584 5.49428 1.73584C4.43445 1.73584 3.50561 2.41461 3.17218 3.4149C2.49342 3.55779 1.90992 3.97458 1.56458 4.5819C1.04062 5.49883 1.1597 6.64202 1.86228 7.42796C1.64793 8.09482 1.73129 8.80931 2.07663 9.40472C2.60059 10.3217 3.66042 10.798 4.69643 10.5717C5.16085 11.0838 5.8158 11.3815 6.50648 11.3815C7.56631 11.3815 8.49515 10.7027 8.82858 9.70243C9.50735 9.55953 10.0908 9.14274 10.4362 8.53542C10.9601 7.61849 10.8411 6.46339 10.1266 5.67745ZM6.50648 10.7503C6.07778 10.7503 5.67291 10.6074 5.35138 10.3336C5.36329 10.3217 5.39902 10.3097 5.41093 10.2978L7.32815 9.19037C7.42341 9.13083 7.48295 9.03557 7.48295 8.91648V6.21332L8.29271 6.67774C8.30462 6.67774 8.30462 6.68965 8.30462 6.70156V8.9403C8.31653 9.94059 7.50677 10.7503 6.50648 10.7503ZM2.62441 9.09511C2.41006 8.72595 2.33861 8.29726 2.41006 7.88047C2.42197 7.89238 2.44578 7.90429 2.4696 7.91619L4.38682 9.02366C4.48209 9.0832 4.60117 9.0832 4.69643 9.02366L7.04235 7.66612V8.60687C7.04235 8.61878 7.04235 8.63069 7.03044 8.63069L5.0894 9.75006C4.23201 10.2502 3.12455 9.9525 2.62441 9.09511ZM2.12426 4.90342C2.33861 4.53427 2.67204 4.26038 3.06501 4.10557V6.39195C3.06501 6.49912 3.12455 6.60629 3.21982 6.66583L5.56573 8.02337L4.75597 8.48779C4.74407 8.48779 4.73216 8.4997 4.73216 8.48779L2.79112 7.36842C1.90992 6.86827 1.62412 5.76081 2.12426 4.90342ZM8.79285 6.45149L6.44694 5.09395L7.2567 4.62953C7.2686 4.62953 7.28051 4.61762 7.28051 4.62953L9.22155 5.7489C10.0908 6.24905 10.3766 7.35651 9.8765 8.2139C9.66215 8.58305 9.32872 8.85694 8.93575 8.99984V6.72538C8.94766 6.6182 8.88812 6.51103 8.79285 6.45149ZM9.5907 5.23685C9.5788 5.22494 9.55498 5.21303 9.53116 5.20113L7.61394 4.09366C7.51868 4.03412 7.39959 4.03412 7.30433 4.09366L4.95841 5.4512V4.51045C4.95841 4.49854 4.95841 4.48663 4.97032 4.48663L6.91136 3.36726C7.78066 2.86712 8.87621 3.16482 9.37636 4.03412C9.5907 4.39137 9.66215 4.82006 9.5907 5.23685ZM4.51781 6.904L3.70805 6.43958C3.69615 6.43958 3.69615 6.42767 3.69615 6.41576V4.17702C3.69615 3.17673 4.5059 2.36697 5.50619 2.36697C5.93489 2.36697 6.33977 2.50987 6.66129 2.78376C6.64938 2.79567 6.62556 2.80758 6.60175 2.81949L4.68453 3.92695C4.58926 3.98649 4.52972 4.08176 4.52972 4.20084V6.904H4.51781ZM4.95841 5.95134L6.00634 5.34402L7.05426 5.95134V7.15407L6.00634 7.76139L4.95841 7.15407V5.95134Z",fill:"currentColor"})}),_Ze=e=>p.jsx("svg",{width:"17",height:"18",viewBox:"0 0 17 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:p.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.40864 11.9983C7.58064 11.9733 6.84164 11.6153 6.31564 11.0563C6.31464 11.0563 6.31464 11.0553 6.31464 11.0553C5.78864 10.4963 5.47564 9.73633 5.50064 8.90833C5.52564 8.08033 5.88464 7.34133 6.44364 6.81533C7.00264 6.28833 7.76264 5.97633 8.59064 6.00133C9.41864 6.02633 10.1576 6.38433 10.6836 6.94333H10.6846C11.2106 7.50333 11.5236 8.26233 11.4986 9.09033C11.4726 9.91833 11.1146 10.6583 10.5556 11.1843C9.99664 11.7103 9.23664 12.0233 8.40864 11.9983ZM16.1266 8.15033L14.3606 7.74033C14.2316 7.14133 14.0146 6.57633 13.7216 6.05733L14.7726 4.57933C14.9116 4.38533 14.8926 4.12033 14.7296 3.94633L13.9206 3.08733C13.7576 2.91333 13.4946 2.87933 13.2916 3.00533L11.7526 3.96533C11.2526 3.64133 10.7016 3.39033 10.1116 3.22633L9.80964 1.43833C9.76964 1.20333 9.56964 1.02833 9.33164 1.02133L8.15264 0.985326C7.91364 0.978326 7.70364 1.14033 7.64964 1.37233L7.24064 3.13933C6.64164 3.26733 6.07664 3.48433 5.55664 3.77733L4.07864 2.72633C3.88464 2.58833 3.61964 2.60633 3.44664 2.76933L2.58664 3.57833C2.41364 3.74133 2.37964 4.00533 2.50564 4.20733L3.46564 5.74633C3.14164 6.24633 2.89064 6.79833 2.72564 7.38833L0.937635 7.68933C0.702635 7.72933 0.528635 7.92933 0.520635 8.16733L0.485635 9.34733C0.477635 9.58533 0.639635 9.79533 0.872635 9.84933L2.63864 10.2583C2.76764 10.8573 2.98464 11.4233 3.27764 11.9423L2.22564 13.4203C2.08764 13.6143 2.10564 13.8793 2.26964 14.0523L3.07864 14.9123C3.24164 15.0853 3.50464 15.1203 3.70664 14.9933L5.24564 14.0333C5.74663 14.3583 6.29764 14.6093 6.88764 14.7733L7.18964 16.5613C7.22864 16.7963 7.42864 16.9713 7.66764 16.9783L8.84663 17.0143C9.08564 17.0213 9.29564 16.8593 9.34964 16.6273L9.75864 14.8603C10.3576 14.7323 10.9226 14.5153 11.4416 14.2213L12.9206 15.2733C13.1146 15.4113 13.3786 15.3933 13.5526 15.2293L14.4116 14.4213C14.5856 14.2573 14.6196 13.9943 14.4936 13.7923L13.5336 12.2533C13.8576 11.7523 14.1086 11.2013 14.2726 10.6113L16.0616 10.3103C16.2966 10.2703 16.4706 10.0703 16.4776 9.83233L16.5136 8.65233C16.5206 8.41433 16.3586 8.20433 16.1266 8.15033Z",fill:"currentColor"})}),h2r=e=>p.jsx("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:p.jsx("path",{d:"M5.25684 12.6387L10.4003 3.36133H11.7432L6.5997 12.6387H5.25684Z",fill:"currentColor"})}),wu=e=>p.jsx("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:p.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.5605 1.42351C8.0791 0.904904 8.92215 0.906157 9.4395 1.42351L10.6922 2.67617C11.2108 3.19477 11.2095 4.03782 10.6922 4.55517L9.4395 5.80783C8.9209 6.32643 8.07785 6.32518 7.5605 5.80783L6.30784 4.55517C5.78923 4.03656 5.79049 3.19352 6.30784 2.67617L7.5605 1.42351ZM3.17618 5.80783C3.69478 5.28923 4.53782 5.29048 5.05517 5.80783L6.30784 7.0605C6.82644 7.5791 6.82519 8.42214 6.30784 8.93949L5.05517 10.1922C4.53657 10.7108 3.69353 10.7095 3.17618 10.1922L1.92351 8.93949C1.40491 8.42089 1.40616 7.57785 1.92351 7.0605L3.17618 5.80783ZM11.9448 5.80783C12.4634 5.28923 13.3065 5.29048 13.8238 5.80783L15.0765 7.0605C15.5951 7.5791 15.5938 8.42214 15.0765 8.93949L13.8238 10.1922C13.3052 10.7108 12.4622 10.7095 11.9448 10.1922L10.6922 8.93949C10.1736 8.42089 10.1748 7.57785 10.6922 7.0605L11.9448 5.80783ZM7.5605 10.1922C8.0791 9.67355 8.92215 9.67481 9.4395 10.1922L10.6922 11.4448C11.2108 11.9634 11.2095 12.8065 10.6922 13.3238L9.4395 14.5765C8.9209 15.0951 8.07785 15.0938 7.5605 14.5765L6.30784 13.3238C5.78923 12.8052 5.79049 11.9622 6.30784 11.4448L7.5605 10.1922Z",fill:"currentColor"})}),Su=e=>p.jsx("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:p.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.24388 2.4018C6.24388 2.0394 6.53767 1.74561 6.90008 1.74561H10.0991C10.4614 1.74561 10.7553 2.0394 10.7553 2.4018V4.57546C10.7553 4.93787 10.4614 5.23166 10.0991 5.23166H9.31982V7.35469L10.0033 9.22664C9.90442 9.20146 9.80035 9.1761 9.6915 9.14986L9.62652 9.13422C9.30473 9.05687 8.92256 8.96501 8.61993 8.84491C8.5819 8.82981 8.54147 8.81292 8.49957 8.79391C8.45767 8.81292 8.41724 8.82981 8.3792 8.84491C8.07657 8.96501 7.6944 9.05687 7.37261 9.13422L7.30763 9.14986C7.19879 9.1761 7.09471 9.20146 6.99577 9.22664L7.67932 7.35469V5.23166H6.90008C6.53767 5.23166 6.24388 4.93787 6.24388 4.57546V2.4018ZM6.99577 9.22664C6.99577 9.22664 6.99578 9.22664 6.99577 9.22664L6.43283 10.7683H6.81806C7.18047 10.7683 7.47426 11.0622 7.47426 11.4245V13.5982C7.47426 13.9606 7.18047 14.2544 6.81806 14.2544H3.61909C3.25668 14.2544 2.96289 13.9606 2.96289 13.5982V11.4245C2.96289 11.0622 3.25668 10.7683 3.61909 10.7683H4.26617C4.2921 10.4663 4.32783 10.1494 4.37744 9.85171C4.43762 9.49063 4.52982 9.08135 4.68998 8.76102C4.93975 8.2615 5.44743 8.01751 5.7771 7.88788C6.14684 7.74249 6.57537 7.63889 6.92317 7.55505C7.24707 7.47696 7.49576 7.41679 7.67932 7.35469L6.99577 9.22664ZM6.43283 10.7683L6.99577 9.22664C6.75846 9.28705 6.55067 9.34646 6.37745 9.41458C6.22784 9.47341 6.1623 9.51712 6.14023 9.53254C6.09752 9.63631 6.04409 9.83055 5.99562 10.1214C5.96201 10.3231 5.93498 10.5439 5.91341 10.7683H6.43283ZM10.0033 9.22664L9.31982 7.35469C9.50338 7.41679 9.75206 7.47696 10.076 7.55505C10.4238 7.63889 10.8523 7.74249 11.2221 7.88788C11.5517 8.01751 12.0594 8.2615 12.3091 8.76102C12.4693 9.08135 12.5615 9.49063 12.6217 9.85171C12.6713 10.1494 12.707 10.4663 12.733 10.7683H13.38C13.7424 10.7683 14.0362 11.0622 14.0362 11.4245V13.5982C14.0362 13.9606 13.7424 14.2544 13.38 14.2544H10.1811C9.81867 14.2544 9.52488 13.9606 9.52488 13.5982V11.4245C9.52488 11.0622 9.81867 10.7683 10.1811 10.7683H10.5663L10.0033 9.22664ZM10.0033 9.22664L10.5663 10.7683H11.0857C11.0642 10.5439 11.0372 10.3231 11.0035 10.1214C10.9551 9.83055 10.9016 9.63631 10.8589 9.53254C10.8369 9.51712 10.7713 9.47341 10.6217 9.41458C10.4485 9.34646 10.2407 9.28705 10.0033 9.22664Z",fill:"currentColor"})}),m2r=e=>p.jsxs("svg",{width:"126",height:"85",viewBox:"0 0 126 85",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[p.jsx("path",{d:"M119.322 35.1636C119.322 50.3595 94.1055 62.6782 62.9998 62.6782C31.894 62.6782 6.67773 50.3595 6.67773 35.1636V49.8363C6.67773 65.0322 31.894 77.351 62.9998 77.351C94.1055 77.351 119.322 65.0322 119.322 49.8363V35.1636Z",fill:"#2E2E2E",fillOpacity:"0.9"}),p.jsx("path",{d:"M119.322 35.1636C119.322 50.3595 94.1055 62.6782 62.9998 62.6782C31.894 62.6782 6.67773 50.3595 6.67773 35.1636M119.322 35.1636C119.322 19.9677 94.1055 7.64893 62.9998 7.64893C31.894 7.64893 6.67773 19.9677 6.67773 35.1636M119.322 35.1636V49.8363C119.322 65.0322 94.1055 77.351 62.9998 77.351C31.894 77.351 6.67773 65.0322 6.67773 49.8363V35.1636",stroke:"#424242"}),p.jsx("path",{d:"M63.0002 0.968262C28.5152 0.968262 0.55957 15.6484 0.55957 33.7573V51.2428C0.55957 69.3517 28.5152 84.0319 63.0002 84.0319C97.4853 84.0319 125.441 69.3517 125.441 51.2428V33.7573C125.441 15.6484 97.4853 0.968262 63.0002 0.968262Z",stroke:"#707070"}),p.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M74.9374 21.357C76.2127 20.7291 78.2804 20.7291 79.5557 21.357L90.8129 26.8997C92.0882 27.5276 92.0882 28.5458 90.8129 29.1737L83.1638 32.9399C81.8885 33.5678 79.8207 33.5678 78.5454 32.9399L75.8033 31.5898L68.3324 35.2682L64.1502 39.696C63.8908 39.481 63.6138 39.2568 63.3231 39.0227L63.1495 38.883C62.2893 38.1914 61.2677 37.3701 60.6254 36.6376C60.5446 36.5456 60.4618 36.4463 60.3812 36.3407C60.1669 36.3011 59.9652 36.2603 59.7782 36.2205C58.2906 35.9043 56.6225 35.4013 55.2179 34.9777L54.9342 34.8922C54.4589 34.7491 54.0034 34.6127 53.5666 34.4849L62.5594 32.4258L70.0304 28.7473L67.2882 27.3972C66.0129 26.7692 66.0129 25.7512 67.2882 25.1232L74.9374 21.357ZM53.5666 34.4849C53.5666 34.4849 53.5666 34.4849 53.5666 34.4849L46.1603 36.1808L47.516 36.8483C48.7913 37.4762 48.7912 38.4943 47.516 39.1222L39.8668 42.8884C38.5916 43.5163 36.5238 43.5164 35.2485 42.8884L23.9913 37.3457C22.7159 36.7177 22.716 35.6996 23.9913 35.0717L31.6404 31.3055C32.9156 30.6776 34.9834 30.6776 36.2587 31.3055L38.5358 32.4267C39.6899 31.9483 40.9309 31.4611 42.153 31.0313C43.6354 30.5099 45.4001 29.9605 47.091 29.683C49.7278 29.2502 52.3729 29.7072 53.9892 30.0537C55.8019 30.4425 57.6745 31.0055 59.1934 31.4628C60.6081 31.8887 61.6949 32.2154 62.5594 32.4258L53.5666 34.4849ZM46.1603 36.1808L53.5666 34.4849C52.5189 34.1784 51.5786 33.9213 50.7293 33.7392C49.9958 33.5819 49.6114 33.5441 49.4794 33.5326C48.964 33.6384 48.0924 33.8823 46.8983 34.3023C46.0703 34.5936 45.1981 34.9293 44.3325 35.2808L46.1603 36.1808ZM64.1502 39.696L68.3324 35.2682C68.7598 35.6939 69.4232 36.229 70.2883 36.9256C71.2171 37.6735 72.3605 38.5954 73.15 39.488C73.8539 40.2838 74.7818 41.5862 73.9029 42.8844C73.3394 43.717 72.2235 44.5859 71.1648 45.3159C70.2916 45.9175 69.3021 46.5286 68.3305 47.0968L70.6077 48.218C71.8829 48.8459 71.8829 49.864 70.6077 50.4919L62.9585 54.2582C61.6833 54.8861 59.6154 54.8861 58.3402 54.2582L47.083 48.7154C45.8077 48.0875 45.8077 47.0694 47.083 46.4415L54.7321 42.6752C56.0074 42.0474 58.0751 42.0473 59.3505 42.6752L60.7062 43.3428L64.1502 39.696ZM64.1502 39.696L60.7062 43.3428L62.5339 44.2427C63.2478 43.8165 63.9298 43.3871 64.5213 42.9794C65.3742 42.3914 65.8695 41.9622 66.0846 41.7085C66.0613 41.6436 65.9844 41.4543 65.6649 41.0931C65.295 40.6749 64.773 40.212 64.1502 39.696Z",fill:"#A9A9A9"})]}),G0=e=>p.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[p.jsx("path",{d:"M6.53918 9.32122C6.34324 9.51508 6.02724 9.51338 5.83338 9.31744C5.63952 9.1215 5.6412 8.80551 5.83713 8.61164L10.1958 4.29931C10.7996 3.70186 10.8017 2.72852 10.2041 2.12839L10.1899 2.11428C9.58767 1.52481 8.62251 1.53208 8.0292 2.13052L2.29396 7.91536C2.0999 8.1111 1.78388 8.11246 1.58813 7.9184C1.39239 7.72433 1.39103 7.40831 1.58509 7.21257L7.32036 1.42774C8.30005 0.439581 9.89369 0.427613 10.8881 1.40094L10.9116 1.42425C11.4942 2.00929 11.7316 2.80913 11.6232 3.56922C12.389 3.44866 13.1999 3.67918 13.7961 4.26273C14.804 5.24929 14.8147 6.86824 13.82 7.86808L8.5531 13.1619C8.50045 13.2148 8.50024 13.3002 8.55263 13.3534L9.65448 14.4717C9.84794 14.668 9.8456 14.984 9.64925 15.1775C9.45291 15.3709 9.13691 15.3686 8.94345 15.1723L7.84163 14.054C7.40505 13.6109 7.40677 12.8988 7.8455 12.4579L13.1124 7.16405C13.7161 6.55727 13.7095 5.57478 13.0979 4.97606C12.4925 4.38347 11.4942 4.40725 10.8978 5.00886L6.53918 9.32122Z",fill:"currentColor"}),p.jsx("path",{d:"M8.84622 2.75411C9.04697 2.56188 9.36555 2.56381 9.56395 2.76076C9.76234 2.95771 9.76658 3.27625 9.57582 3.4784L9.56661 3.48794L5.25912 7.82701C4.67023 8.42022 4.672 9.37798 5.26305 9.96904C5.85624 10.5622 6.81818 10.5615 7.41052 9.9675L11.6299 5.73599L11.6395 5.72671C11.8406 5.53493 12.1592 5.53756 12.3572 5.73496C12.5583 5.93548 12.5587 6.26104 12.3582 6.46214L8.13877 10.6937C7.14498 11.6903 5.53105 11.6915 4.53584 10.6963C3.5442 9.70461 3.54127 8.09774 4.52928 7.10248L8.83677 2.76342L8.84622 2.75411Z",fill:"currentColor"})]}),g2r=e=>p.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:p.jsx("path",{d:"M1.5 8.5V8C1.5 7.60218 1.65804 7.22064 1.93934 6.93934C2.22064 6.65804 2.60218 6.5 3 6.5H13C13.3978 6.5 13.7794 6.65804 14.0607 6.93934C14.342 7.22064 14.5 7.60218 14.5 8V8.5M8.70667 4.20667L7.29333 2.79333C7.20048 2.70037 7.09022 2.62661 6.96886 2.57628C6.84749 2.52595 6.71739 2.50003 6.586 2.5H3C2.60218 2.5 2.22064 2.65804 1.93934 2.93934C1.65804 3.22064 1.5 3.60218 1.5 4V12C1.5 12.3978 1.65804 12.7794 1.93934 13.0607C2.22064 13.342 2.60218 13.5 3 13.5H13C13.3978 13.5 13.7794 13.342 14.0607 13.0607C14.342 12.7794 14.5 12.3978 14.5 12V6C14.5 5.60218 14.342 5.22064 14.0607 4.93934C13.7794 4.65804 13.3978 4.5 13 4.5H9.414C9.14887 4.49977 8.89402 4.39426 8.70667 4.20667Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})}),y2r=e=>p.jsxs("svg",{width:"126",height:"85",viewBox:"0 0 126 85",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[p.jsx("path",{d:"M119.322 35.1641C119.322 50.36 94.1055 62.6787 62.9998 62.6787C31.894 62.6787 6.67773 50.36 6.67773 35.1641V49.8368C6.67773 65.0327 31.894 77.3514 62.9998 77.3514C94.1055 77.3514 119.322 65.0327 119.322 49.8368V35.1641Z",fill:"#2E2E2E",fillOpacity:"0.9"}),p.jsx("path",{d:"M119.322 35.1641C119.322 50.36 94.1055 62.6787 62.9998 62.6787C31.894 62.6787 6.67773 50.36 6.67773 35.1641M119.322 35.1641C119.322 19.9681 94.1055 7.64941 62.9998 7.64941C31.894 7.64941 6.67773 19.9681 6.67773 35.1641M119.322 35.1641V49.8368C119.322 65.0327 94.1055 77.3514 62.9998 77.3514C31.894 77.3514 6.67773 65.0327 6.67773 49.8368V35.1641",stroke:"#424242"}),p.jsx("path",{d:"M63.0002 0.96875C28.5152 0.96875 0.55957 15.6489 0.55957 33.7578V51.2433C0.55957 69.3522 28.5152 84.0323 63.0002 84.0323C97.4853 84.0323 125.441 69.3522 125.441 51.2433V33.7578C125.441 15.6489 97.4853 0.96875 63.0002 0.96875Z",stroke:"#707070"}),p.jsx("path",{d:"M51.5215 39.9726C50.5464 40.4477 48.9738 40.4435 48.009 39.9634C47.0442 39.4833 47.0526 38.709 48.0277 38.2339L69.7191 27.6672C72.7243 26.2032 72.7347 23.8181 69.7605 22.3476L69.6898 22.313C66.6927 20.8686 61.8895 20.8864 58.9368 22.3528L30.3946 36.5278C29.4288 37.0074 27.8561 37.0107 26.882 36.5352C25.9078 36.0597 25.901 35.2853 26.8668 34.8057L55.4092 20.6308C60.2847 18.2094 68.2157 18.1801 73.1645 20.5651L73.2814 20.6222C76.1808 22.0558 77.3624 24.0157 76.8227 25.8782C80.6339 25.5828 84.6694 26.1476 87.6364 27.5775C92.6525 29.9949 92.7059 33.962 87.7554 36.4119L61.5441 49.3836C61.282 49.5133 61.281 49.7227 61.5417 49.853L67.0252 52.5932C67.988 53.0743 67.9763 53.8486 66.9992 54.3226C66.0221 54.7966 64.4495 54.7909 63.4867 54.3098L58.0033 51.5695C55.8306 50.4838 55.8392 48.7391 58.0226 47.6585L84.2339 34.6868C87.2382 33.2 87.2058 30.7925 84.1617 29.3254C81.1488 27.8734 76.1811 27.9317 73.2127 29.4058L51.5215 39.9726Z",fill:"#A9A9A9"}),p.jsx("path",{d:"M63.0028 23.8809C64.0019 23.4098 65.5873 23.4146 66.5747 23.8972C67.562 24.3798 67.5831 25.1603 66.6338 25.6556L66.5879 25.679L45.1511 36.3113C42.2204 37.7649 42.2292 40.1117 45.1707 41.56C48.1228 43.0135 52.91 43.0118 55.8578 41.5563L76.8564 31.1875L76.9037 31.1648C77.9049 30.6949 79.4903 30.7013 80.4755 31.185C81.4763 31.6764 81.4785 32.4741 80.4806 32.9669L59.4821 43.3356C54.5363 45.7777 46.5044 45.7806 41.5516 43.342C36.6166 40.9121 36.602 36.9747 41.519 34.5359L62.9558 23.9037L63.0028 23.8809Z",fill:"#A9A9A9"})]}),v2r=e=>p.jsxs("svg",{width:"126",height:"85",viewBox:"0 0 126 85",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[p.jsx("path",{d:"M119.322 35.1641C119.322 50.36 94.1055 62.6787 62.9998 62.6787C31.894 62.6787 6.67773 50.36 6.67773 35.1641V49.8368C6.67773 65.0327 31.894 77.3514 62.9998 77.3514C94.1055 77.3514 119.322 65.0327 119.322 49.8368V35.1641Z",fill:"#2E2E2E",fillOpacity:"0.9"}),p.jsx("path",{d:"M119.322 35.1641C119.322 50.36 94.1055 62.6787 62.9998 62.6787C31.894 62.6787 6.67773 50.36 6.67773 35.1641M119.322 35.1641C119.322 19.9681 94.1055 7.64941 62.9998 7.64941C31.894 7.64941 6.67773 19.9681 6.67773 35.1641M119.322 35.1641V49.8368C119.322 65.0327 94.1055 77.3514 62.9998 77.3514C31.894 77.3514 6.67773 65.0327 6.67773 49.8368V35.1641",stroke:"#424242"}),p.jsx("path",{d:"M63.0002 0.96875C28.5152 0.96875 0.55957 15.6489 0.55957 33.7578V51.2433C0.55957 69.3522 28.5152 84.0323 63.0002 84.0323C97.4853 84.0323 125.441 69.3522 125.441 51.2433V33.7578C125.441 15.6489 97.4853 0.96875 63.0002 0.96875Z",stroke:"#707070"}),p.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M95.8997 32.6647C98.4806 33.9355 98.4744 36.0012 95.8997 37.2689L89.6657 40.3384C87.0848 41.6091 82.8892 41.6061 80.3146 40.3384L74.0805 37.2689C71.4996 35.9981 71.5059 33.9324 74.0805 32.6647L80.3146 29.5952C82.8955 28.3244 87.091 28.3275 89.6657 29.5952L95.8997 32.6647ZM74.0805 21.9215C76.6614 23.1923 76.6552 25.258 74.0805 26.5257L67.8465 29.5952C65.2656 30.866 61.0701 30.8629 58.4954 29.5952L52.2613 26.5257C49.6804 25.255 49.6867 23.1892 52.2613 21.9215L58.4954 18.852C61.0763 17.5813 65.2718 17.5843 67.8465 18.852L74.0805 21.9215ZM74.0805 43.4079C76.6614 44.6786 76.6552 46.7444 74.0805 48.0121L67.8465 51.0816C65.2656 52.3523 61.0701 52.3493 58.4954 51.0816L52.2613 48.0121C49.6804 46.7413 49.6867 44.6756 52.2613 43.4079L58.4954 40.3384C61.0763 39.0676 65.2718 39.0707 67.8465 40.3384L74.0805 43.4079ZM52.2613 32.6647C54.8422 33.9355 54.836 36.0012 52.2613 37.2689L46.0273 40.3384C43.4464 41.6091 39.2509 41.6061 36.6762 40.3384L30.4422 37.2689C27.8613 35.9981 27.8675 33.9324 30.4422 32.6647L36.6762 29.5952C39.2571 28.3244 43.4526 28.3275 46.0273 29.5952L52.2613 32.6647Z",fill:"#A9A9A9"})]}),b2r={warning:"bg-yellow-900/20 border border-yellow-200 text-yellow-200",destructive:"bg-red-900/20 border border-red-200 text-red-200",info:"bg-blue-900/20 border border-blue-200 text-blue-200"},x2r={warning:Fw,destructive:Lx,info:Wl},Nv=({children:e,variant:t="destructive"})=>{const r=x2r[t];return p.jsx("div",{className:ie(b2r[t],"p-2 rounded-md"),children:p.jsxs("div",{className:"flex items-start gap-2",children:[p.jsx(He,{className:"mt-0.5",children:p.jsx(r,{})}),p.jsx("div",{children:e})]})})},Rv=({children:e,as:t="h5"})=>p.jsx(Ye,{as:t,variant:"ui-md",className:"font-semibold",children:e}),UC=({children:e,as:t="p"})=>p.jsx(Ye,{as:t,variant:"ui-sm",children:e}),mxe={default:"text-neutral3",success:"text-accent1",error:"text-accent2",info:"text-accent3"},sr=({icon:e,variant:t="default",className:r,children:n,...i})=>p.jsxs("div",{className:ie("font-mono bg-surface4 text-ui-sm gap-1 h-badge-default inline-flex items-center rounded-md shrink-0",e?"pl-1 pr-1.5":"px-1.5",e||t==="default"?"text-neutral5":mxe[t],r),...i,children:[e&&p.jsx("span",{className:mxe[t],children:p.jsx(He,{children:e})}),n]}),w2r=()=>{const e=Wr(({part:s})=>s),[t,r]=E.useState(!1),n=e.text||"",i=e.metadata||{};if(i?.status==="tripwire")return p.jsx(l2r,{reason:n,tripwire:i.tripwire});if(i?.status==="warning")return p.jsxs(Nv,{variant:"warning",children:[p.jsx(Rv,{as:"h5",children:"Warning"}),p.jsx(UC,{as:"p",children:n})]});if(i?.status==="error")return p.jsxs(Nv,{variant:"destructive",children:[p.jsx(Rv,{as:"h5",children:"Error"}),p.jsx(UC,{as:"p",children:n})]});if(i?.mode==="network"&&i?.completionResult)return p.jsxs("div",{className:"mb-2 space-y-2",children:[p.jsxs("button",{onClick:()=>r(s=>!s),className:"flex items-center gap-2",children:[p.jsx(He,{children:p.jsx(NN,{className:ie("transition-all",t?"rotate-90":"rotate-180")})}),p.jsxs(sr,{variant:"info",icon:p.jsx(cut,{}),children:[t?"Show":"Hide"," completion check"]})]}),!t&&p.jsxs(Nv,{variant:"info",children:[p.jsx(Rv,{as:"h5",children:i.completionResult?.passed?"Complete":"Not Complete"}),p.jsx(hxe,{})]})]});try{const s=n.trim();if(s.startsWith("__ERROR__:")){const o=s.substring(10);return p.jsxs("div",{className:"flex items-start gap-3 p-4 rounded-lg bg-red-50 dark:bg-red-950/20 border border-red-200 dark:border-red-900/50",children:[p.jsx(Lx,{className:"w-5 h-5 text-red-500 dark:text-red-400 mt-0.5 flex-shrink-0"}),p.jsxs("div",{className:"flex-1",children:[p.jsx("p",{className:"text-sm font-medium text-red-800 dark:text-red-200 mb-1",children:"Error"}),p.jsx("p",{className:"text-sm text-red-700 dark:text-red-300",children:o})]})]})}else if(s.startsWith("Error:")){const o=s.substring(6).trim();return p.jsxs("div",{className:"flex items-start gap-3 p-4 rounded-lg bg-red-50 dark:bg-red-950/20 border border-red-200 dark:border-red-900/50",children:[p.jsx(Lx,{className:"w-5 h-5 text-red-500 dark:text-red-400 mt-0.5 flex-shrink-0"}),p.jsxs("div",{className:"flex-1",children:[p.jsx("p",{className:"text-sm font-medium text-red-800 dark:text-red-200 mb-1",children:"Error"}),p.jsx("p",{className:"text-sm text-red-700 dark:text-red-300",children:o})]})]})}return p.jsx(hxe,{})}catch{return p.jsxs("div",{className:"flex items-start gap-3 p-4 rounded-lg bg-red-50 dark:bg-red-950/20 border border-red-200 dark:border-red-900/50",children:[p.jsx(Lx,{className:"w-5 h-5 text-red-500 dark:text-red-400 mt-0.5 flex-shrink-0"}),p.jsxs("div",{className:"flex-1",children:[p.jsx("p",{className:"text-sm font-medium text-red-800 dark:text-red-200 mb-1",children:"Error"}),p.jsx("p",{className:"text-sm text-red-700 dark:text-red-300",children:String(n)})]})]})}};function Gf({text:e,copyMessage:t="Copied to clipboard!"}){const[r,n]=E.useState(!1),i=E.useRef(null),s=E.useCallback(()=>{navigator.clipboard.writeText(e).then(()=>{dn.success(t),n(!0),i.current&&(clearTimeout(i.current),i.current=null),i.current=setTimeout(()=>{n(!1)},2e3)}).catch(()=>{dn.error("Failed to copy to clipboard.")})},[e,t]);return{isCopied:r,handleCopy:s}}function Ch({content:e,copyMessage:t,tooltip:r="Copy to clipboard",iconSize:n="default",className:i}){const{handleCopy:s}=Gf({text:e,copyMessage:t});return p.jsxs($i,{children:[p.jsx(Ii,{asChild:!0,children:p.jsx("button",{onClick:s,type:"button",className:i,children:p.jsx(He,{className:"transition-colors hover:bg-surface4 rounded-lg text-neutral3 hover:text-neutral6",size:n,children:p.jsx(nu,{})})})}),p.jsx(gi,{children:r})]})}const X0=()=>E.useMemo(()=>{const e=XG({settings:{fontFamily:"var(--geist-mono)",fontSize:"0.8rem",lineHighlight:"transparent",gutterBackground:"transparent",gutterForeground:"#939393",background:"transparent"},styles:[{tag:[Y.className,Y.propertyName]}]}),t=et.theme({".cm-editor":{colorScheme:"dark",backgroundColor:"transparent"},".cm-lineNumbers .cm-gutterElement":{color:"#939393"}});return[e,t]},[]),Hc=({data:e,value:t,onChange:r,showCopyButton:n=!0,className:i,...s})=>{const o=X0(),a=e?JSON.stringify(e,null,2):t??"";return p.jsxs("div",{className:ie("rounded-md bg-surface4 p-1 font-mono relative",i),...s,children:[n&&p.jsx(Ch,{content:a,className:"absolute top-2 right-2 z-20"}),p.jsx(su,{value:a,theme:o,extensions:[Gc],onChange:r,"aria-label":"Code editor"})]})};async function S2r(e,t){const{codeToTokens:r,bundledLanguages:n}=await G(async()=>{const{codeToTokens:s,bundledLanguages:o}=await import("./index-DhqtEarq.js");return{codeToTokens:s,bundledLanguages:o}},__vite__mapDeps([122,95]),import.meta.url);if(!(t in n))return null;const{tokens:i}=await r(e,{lang:t,defaultColor:!1,themes:{light:"github-light",dark:"github-dark"}});return i}const j6=({children:e,initialCollapsed:t=!0,icon:r,title:n,collapsible:i=!0,extraInfo:s,"data-testid":o})=>{const[a,l]=E.useState(t);return E.useEffect(()=>{l(t)},[t]),p.jsxs("div",{className:"mb-4","data-testid":o,children:[p.jsxs("div",{className:"flex flex-row gap-2 items-center justify-between",children:[p.jsxs("button",{onClick:i?()=>l(c=>!c):void 0,className:"flex items-center gap-2 disabled:cursor-not-allowed",disabled:!i,type:"button",children:[p.jsx(He,{children:p.jsx(NN,{className:ie("transition-all",a?"rotate-90":"rotate-180")})}),p.jsx(sr,{icon:r,children:n})]}),s]}),!a&&p.jsx("div",{className:"pt-2",children:p.jsx("div",{className:"p-4 rounded-lg bg-surface2 flex flex-col gap-4",children:e})})]})},Uo=gX,O2r=h$e,_2r=yX,kZe=E.forwardRef(({className:e,...t},r)=>p.jsx(o5,{ref:r,className:ie("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));kZe.displayName=o5.displayName;const bo=E.forwardRef(({className:e,children:t,...r},n)=>p.jsxs(_2r,{children:[p.jsx(kZe,{}),p.jsxs(a5,{ref:n,className:ie("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border border-border1 bg-surface3 py-6 shadow-lg duration-200 rounded-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]",e),...r,children:[t,p.jsxs(u5,{className:"absolute right-4 top-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 disabled:pointer-events-none data-[state=open]:bg-surface5 data-[state=open]:text-neutral3",children:[p.jsx(Pa,{className:"h-4 w-4"}),p.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));bo.displayName=a5.displayName;const xo=({className:e,...t})=>p.jsx("div",{className:ie("flex flex-col space-y-1.5 text-center sm:text-left border-b border-border1 pb-4 px-6",e),...t});xo.displayName="DialogHeader";const wo=({className:e,...t})=>p.jsx("div",{className:ie("overflow-y-auto px-6 max-h-[50vh]",e),...t});wo.displayName="DialogBody";const So=E.forwardRef(({className:e,...t},r)=>p.jsx(l5,{ref:r,className:ie("text-lg font-semibold leading-none tracking-tight",e),...t}));So.displayName=l5.displayName;const Oo=E.forwardRef(({className:e,...t},r)=>p.jsx(c5,{ref:r,className:ie("sr-only",e),...t}));Oo.displayName=c5.displayName;const k2r=({selectionReason:e,open:t,onOpenChange:r,input:n})=>{let i=null;if(n)try{i=typeof n=="object"?p.jsx(Hc,{data:n}):p.jsx(Hc,{data:JSON.parse(n)})}catch{i=p.jsx("pre",{className:"whitespace-pre-wrap",children:n})}return p.jsx(Uo,{open:t,onOpenChange:r,children:p.jsxs(bo,{children:[p.jsxs(xo,{children:[p.jsx(So,{children:"Agent Network Metadata"}),p.jsx(Oo,{children:"View the metadata of the agent's network choice."})]}),p.jsxs(wo,{className:"space-y-4",children:[p.jsxs("div",{className:"space-y-2",children:[p.jsx(Ye,{className:"text-neutral3",children:"Selection Reason"}),p.jsx("div",{className:"text-neutral6 text-ui-md",children:e})]}),i&&p.jsxs("div",{className:"space-y-2",children:[p.jsx(Ye,{className:"text-neutral3",children:"Input"}),p.jsx("div",{className:"text-neutral6 text-ui-md",children:i})]})]})]})})},nte=({selectionReason:e,input:t})=>{const[r,n]=E.useState(!1);return p.jsxs(p.Fragment,{children:[p.jsx(dd,{tooltip:"Show selection reason",side:"top",onClick:()=>n(i=>!i),children:p.jsx(Hdt,{className:"text-neutral3 size-5"})}),p.jsx(k2r,{selectionReason:e||"",open:r,onOpenChange:n,input:t})]})},EZe=E.createContext(void 0);function E2r({children:e,approveToolcall:t,declineToolcall:r,approveNetworkToolcall:n,declineNetworkToolcall:i,isRunning:s,toolCallApprovals:o,networkToolCallApprovals:a}){return p.jsx(EZe.Provider,{value:{approveToolcall:t,declineToolcall:r,approveNetworkToolcall:n,declineNetworkToolcall:i,isRunning:s,toolCallApprovals:o,networkToolCallApprovals:a},children:e})}function C2r(){const e=E.useContext(EZe);if(!e)throw new Error("useToolCall must be used within a ToolCallProvider");return e}const ite=({toolCalled:e,toolCallId:t,toolApprovalMetadata:r,toolName:n,isNetwork:i})=>{const{approveToolcall:s,declineToolcall:o,isRunning:a,toolCallApprovals:l,approveNetworkToolcall:c,declineNetworkToolcall:u,networkToolCallApprovals:d}=C2r(),f=()=>{i?c(n,r?.runId):s(t)},m=()=>{i?u(n,r?.runId):o(t)},g=i?d?.[r?.runId?`${r.runId}-${n}`:n]?.status:l?.[t]?.status;return r&&!e?p.jsxs("div",{children:[p.jsx("p",{className:"font-medium pb-2",children:"Approval required"}),p.jsxs("div",{className:"flex gap-2 items-center",children:[p.jsxs(Ke,{onClick:f,disabled:a||!!g,className:g==="approved"?"!text-accent1":"",children:[p.jsx(He,{children:p.jsx(yd,{})}),"Approve"]}),p.jsxs(Ke,{onClick:m,disabled:a||!!g,className:g==="declined"?"!text-accent2":"",children:[p.jsx(He,{children:p.jsx(Pa,{})}),"Decline"]})]})]}):null},T2r=({toolName:e,args:t,result:r,metadata:n,toolOutput:i,toolCallId:s,toolApprovalMetadata:o,suspendPayload:a,isNetwork:l,toolCalled:c})=>{let u=null;try{const{__mastraMetadata:b,...w}=typeof t=="object"?t:JSON.parse(t);u=p.jsx(Hc,{data:w,"data-testid":"tool-args"})}catch{u=p.jsx("pre",{className:"whitespace-pre bg-surface4 p-4 rounded-md overflow-x-auto",children:t})}let d=typeof r=="string"?p.jsx("pre",{className:"whitespace-pre bg-surface4 p-4 rounded-md overflow-x-auto",children:r}):p.jsx(Hc,{data:r,"data-testid":"tool-result"}),f=typeof a=="string"?p.jsx("pre",{className:"whitespace-pre bg-surface4 p-4 rounded-md overflow-x-auto",children:a}):p.jsx(Hc,{data:a,"data-testid":"tool-suspend-payload"});const m=n?.mode==="network"?n.selectionReason:void 0,g=n?.mode==="network"?n.agentInput:void 0,v=c??(r||i.length>0);return p.jsx(j6,{"data-testid":"tool-badge",icon:p.jsx(wu,{className:"text-accent6"}),title:e,extraInfo:n?.mode==="network"&&p.jsx(nte,{selectionReason:m||"",input:g}),initialCollapsed:!(o??a),children:p.jsxs("div",{className:"space-y-4",children:[p.jsxs("div",{children:[p.jsx("p",{className:"font-medium pb-2",children:"Tool arguments"}),u]}),f!==void 0&&a&&p.jsxs("div",{children:[p.jsx("p",{className:"font-medium pb-2",children:"Tool suspend payload"}),f]}),d!==void 0&&r&&p.jsxs("div",{children:[p.jsx("p",{className:"font-medium pb-2",children:"Tool result"}),d]}),i.length>0&&p.jsxs("div",{children:[p.jsx("p",{className:"font-medium pb-2",children:"Tool output"}),p.jsx("div",{className:"h-40 overflow-y-auto",children:p.jsx(Hc,{data:i,"data-testid":"tool-output"})})]}),p.jsx(ite,{toolCalled:v,toolCallId:s,toolApprovalMetadata:o,toolName:e,isNetwork:l})]})})};function QZ(e){const t={},r=e.context||{};Object.entries(r).forEach(([o,a])=>{if(o!=="input"&&"status"in a){const l=a,c=l.status==="failed"&&l.tripwire!==void 0;t[o]={status:l.status,output:"output"in l?l.output:void 0,payload:"payload"in l?l.payload:void 0,suspendPayload:"suspendPayload"in l?l.suspendPayload:void 0,suspendOutput:"suspendOutput"in l?l.suspendOutput:void 0,resumePayload:"resumePayload"in l?l.resumePayload:void 0,error:c?void 0:"error"in l?l.error:void 0,tripwire:c?l.tripwire:void 0,startedAt:"startedAt"in l?l.startedAt:Date.now(),endedAt:"endedAt"in l?l.endedAt:void 0,suspendedAt:"suspendedAt"in l?l.suspendedAt:void 0,resumedAt:"resumedAt"in l?l.resumedAt:void 0}}});const n=Object.entries(t).flatMap(([o,a])=>{if(a?.status==="suspended"){const l=a?.suspendPayload?.__workflow_meta?.path;return l?[[o,...l]]:[[o]]}return[]}),i=n?.[0]?.[0],s=i?t[i]?.suspendPayload:void 0;return{input:r.input,steps:t,status:e.status,...e.status==="success"?{result:e.result}:{},...e.status==="failed"?{error:e.error}:{},...e.status==="suspended"?{suspended:n,suspendPayload:s}:{},...e.status==="tripwire"&&e.tripwire?{tripwire:{reason:e.tripwire.reason,retry:e.tripwire.retry,metadata:e.tripwire.metadata,processorId:e.tripwire.processorId}}:{}}}const wi=CW()(m7t(e=>({requestContext:{},setRequestContext:t=>e({requestContext:t})}),{name:"mastra-playground-store"})),F6=()=>{const e=or(),{requestContext:t}=wi();return Ri({queryKey:["workflows",t],queryFn:()=>e.listWorkflows(t)})},D2r={duration:5e3,cancel:{label:p.jsx(Pa,{size:"14"}),onClick:()=>{}},unstyled:!0,classNames:{toast:"bg-surface2 w-full backdrop-accent h-auto rounded-lg gap-2 border border p-4 flex items-start justify-between rounded-lg pointer-events-auto",title:"text-white font-semibold text-xs mb-1 -mt-1",description:"!text-text text-sm !font-light",cancelButton:"!bg-transparent !p-0 flex items-center justify-center !text-text opacity-50 hover:opacity-100 ml-4 shrink-0",actionButton:"!bg-white flex items-center justify-center font-medium !text-black order-last hover:opacity-80"}};function ic(e){const{classNames:t,...r}=D2r,{classNames:n,...i}=e||{};return{...r,classNames:{...t,title:ie(t?.title,n?.title),toast:ie(t?.toast,n?.toast),cancelButton:ie(t?.cancelButton,n?.cancelButton),actionButton:ie(t?.actionButton,n?.actionButton),description:ie(t?.description,n?.description)},...i}}const os=(e,t={})=>{if(Array.isArray(e))return e.forEach(r=>dn(r,ic(t)));if(me.isValidElement(e))return dn(e,ic(t));if(typeof e=="string")return dn(e,ic(t));throw new Error("Invalid message type")};os.success=(e,t={})=>{const r={...t,classNames:{...t.classNames,toast:ie("bg-green-950/20 border-green-900/50 dark:bg-green-950/20 dark:border-green-900/50",t.classNames?.toast),title:ie("text-green-200 dark:text-green-200",t.classNames?.title),description:ie("text-green-300 dark:text-green-300",t.classNames?.description)}};switch(typeof e){case"string":return dn.success(e,ic(r));case"object":return e.forEach(n=>dn.success(n,ic(r)))}};os.error=(e,t={})=>{const r={...t,classNames:{...t.classNames,toast:ie("bg-red-950/20 border-red-900/50 dark:bg-red-950/20 dark:border-red-900/50",t.classNames?.toast),title:ie("text-red-200 dark:text-red-200",t.classNames?.title),description:ie("text-red-300 dark:text-red-300",t.classNames?.description)}};switch(typeof e){case"string":return dn.error(e,ic(r));case"object":return e.forEach(n=>dn.error(n,ic(r)))}};os.warning=(e,t={})=>{const r={...t,classNames:{...t.classNames,toast:ie("bg-yellow-950/20 border-yellow-900/50 dark:bg-yellow-950/20 dark:border-yellow-900/50",t.classNames?.toast),title:ie("text-yellow-200 dark:text-yellow-200",t.classNames?.title),description:ie("text-yellow-300 dark:text-yellow-300",t.classNames?.description)}};switch(typeof e){case"string":return dn.warning(e,ic(r));case"object":return e.forEach(n=>dn.warning(n,ic(r)))}};os.info=(e,t={})=>{const r={...t,classNames:{...t.classNames,toast:ie("bg-blue-950/20 border-blue-900/50 dark:bg-blue-950/20 dark:border-blue-900/50",t.classNames?.toast),title:ie("text-blue-200 dark:text-blue-200",t.classNames?.title),description:ie("text-blue-300 dark:text-blue-300",t.classNames?.description)}};switch(typeof e){case"string":return dn.info(e,ic(r));case"object":return e.forEach(n=>dn.info(n,ic(r)))}};os.custom=(e,t={})=>dn(e,ic(t));os.dismiss=e=>{e&&dn.dismiss(e)};os.promise=({myPromise:e,loadingMessage:t,successMessage:r,errorMessage:n,onSuccess:i,onError:s,options:o={}})=>dn.promise(e,{loading:t??"Loading...",success:a=>(i?.(a),r),error:a=>(s?.(a),n||a?.message||"Error..."),...ic(o)});function A2r({entityId:e,entityType:t}){const[r,n]=E.useState(void 0),i=`tracing-options-${t}:${e}`;return E.useEffect(()=>{try{const a=localStorage.getItem(i);if(a){const l=JSON.parse(a);n(l||void 0)}}catch(a){console.error(a)}},[i]),{settings:r,setSettings:a=>{n(l=>({...l,...a})),localStorage.setItem(i,JSON.stringify({...a,entityId:e,entityType:t}))},resetAll:()=>{n(void 0),localStorage.removeItem(i)},entityType:t}}const CZe=E.createContext({setSettings:()=>{},resetAll:()=>{},settings:void 0,entityType:void 0}),TZe=({children:e,entityId:t,entityType:r})=>{const n=A2r({entityId:t,entityType:r});return p.jsx(CZe.Provider,{value:n,children:e})},ste=()=>E.useContext(CZe),P2r=()=>{const e=or(),t=Pi({mutationFn:async({workflowId:i,prevRunId:s})=>{try{const o=e.getWorkflow(i),{runId:a}=await o.createRun({runId:s});return{runId:a}}catch(o){throw console.error("Error creating workflow run:",o),o}}}),r=Pi({mutationFn:async({workflowId:i,runId:s,input:o,requestContext:a})=>{try{const l=new rl;Object.entries(a).forEach(([d,f])=>{l.set(d,f)}),await(await e.getWorkflow(i).createRun({runId:s})).start({inputData:o||{},requestContext:l})}catch(l){throw console.error("Error starting workflow run:",l),l}}}),n=Pi({mutationFn:async({workflowId:i,runId:s,input:o,requestContext:a})=>{try{const l=new rl;return Object.entries(a).forEach(([f,m])=>{l.set(f,m)}),await(await e.getWorkflow(i).createRun({runId:s})).startAsync({inputData:o||{},requestContext:l})}catch(l){throw console.error("Error starting workflow run:",l),l}}});return{startWorkflowRun:r,createWorkflowRun:t,startAsyncWorkflowRun:n}},$2r=({debugMode:e})=>{const t=or(),{settings:r}=ste(),[n,i]=E.useState({}),[s,o]=E.useState(!1),a=E.useRef(null),l=E.useRef(null),c=E.useRef(null),u=E.useRef(null),d=E.useRef(!0);E.useEffect(()=>(d.current=!0,()=>{if(d.current=!1,a.current){try{a.current.releaseLock()}catch{}a.current=null}if(l.current){try{l.current.releaseLock()}catch{}l.current=null}if(c.current){try{c.current.releaseLock()}catch{}c.current=null}if(u.current){try{u.current.releaseLock()}catch{}u.current=null}}),[]);const f=(O,k,C)=>{if(O instanceof TypeError)return;const T=O instanceof Error?O.message:k;os.error(T),C?.(!1)},m=O=>{if(O.type==="workflow-finish"){const k=O.payload?.workflowStatus,C=O.payload?.metadata;if(i(T=>({...T,status:k})),k==="failed")throw new Error(C?.errorMessage||"Workflow execution failed")}},g=Pi({mutationFn:async({workflowId:O,runId:k,inputData:C,initialState:T,requestContext:P,perStep:A})=>{if(a.current&&a.current.releaseLock(),!d.current)return;o(!0),i({input:C});const R=new rl;Object.entries(P).forEach(([L,Q])=>{R.set(L,Q)});const U=await(await t.getWorkflow(O).createRun({runId:k})).stream({inputData:C,initialState:T,requestContext:R,closeOnSuspend:!0,tracingOptions:r?.tracingOptions,perStep:A??e});if(!U)return f(new Error("No stream returned"),"No stream returned",o);const V=U.getReader();a.current=V;try{for(;d.current;){const{done:L,value:Q}=await V.read();if(L)break;d.current&&(i(F=>cg(F,Q)),Q.type==="workflow-step-start"&&o(!0),Q.type==="workflow-step-suspended"&&o(!1),Q.type==="workflow-finish"&&m(Q))}}catch(L){f(L,"Error streaming workflow")}finally{d.current&&o(!1),a.current&&(a.current.releaseLock(),a.current=null)}}}),v=Pi({mutationFn:async({workflowId:O,runId:k,storeRunResult:C})=>{if(l.current&&l.current.releaseLock(),!d.current)return;if(o(!0),i(C||{}),C?.status==="suspended"){o(!1);return}const A=await(await t.getWorkflow(O).createRun({runId:k})).observeStream();if(!A)return f(new Error("No stream returned"),"No stream returned",o);const R=A.getReader();l.current=R;try{for(;d.current;){const{done:M,value:z}=await R.read();if(M)break;d.current&&(i(U=>cg(U,z)),z.type==="workflow-step-start"&&o(!0),z.type==="workflow-step-suspended"&&o(!1),z.type==="workflow-finish"&&m(z))}}catch(M){f(M,"Error observing workflow")}finally{d.current&&o(!1),l.current&&(l.current.releaseLock(),l.current=null)}}}),b=Pi({mutationFn:async({workflowId:O,runId:k,step:C,resumeData:T,requestContext:P,perStep:A})=>{if(c.current&&c.current.releaseLock(),!d.current)return;o(!0);const R=t.getWorkflow(O),M=new rl;Object.entries(P).forEach(([L,Q])=>{M.set(L,Q)});const U=await(await R.createRun({runId:k})).resumeStream({step:C,resumeData:T,requestContext:M,tracingOptions:r?.tracingOptions,perStep:A??e});if(!U)return f(new Error("No stream returned"),"No stream returned",o);const V=U.getReader();c.current=V;try{for(;d.current;){const{done:L,value:Q}=await V.read();if(L)break;d.current&&(i(F=>cg(F,Q)),Q.type==="workflow-step-start"&&o(!0),Q.type==="workflow-step-suspended"&&o(!1),Q.type==="workflow-finish"&&m(Q))}}catch(L){f(L,"Error resuming workflow stream")}finally{d.current&&o(!1),c.current&&(c.current.releaseLock(),c.current=null)}}}),w=Pi({mutationFn:async({workflowId:O,requestContext:k,runId:C,perStep:T,...P})=>{if(u.current&&u.current.releaseLock(),!d.current)return;o(!0);const A=t.getWorkflow(O),R=new rl;Object.entries(k).forEach(([V,L])=>{R.set(V,L)});const z=await(await A.createRun({runId:C})).timeTravelStream({...P,perStep:T??e,requestContext:R,tracingOptions:r?.tracingOptions});if(!z)return f(new Error("No stream returned"),"No stream returned",o);const U=z.getReader();u.current=U;try{for(;d.current;){const{done:V,value:L}=await U.read();if(V)break;d.current&&(i(Q=>cg(Q,L)),L.type==="workflow-step-start"&&o(!0),L.type==="workflow-step-suspended"&&o(!1),L.type==="workflow-finish"&&m(L))}}catch(V){f(V,"Error time traveling workflow stream")}finally{d.current&&o(!1),u.current&&(u.current.releaseLock(),u.current=null)}}});return{streamWorkflow:g,streamResult:n,isStreaming:s,observeWorkflowStream:v,closeStreamsAndReset:()=>{if(o(!1),i({}),a.current){try{a.current.releaseLock()}catch{}a.current=null}if(l.current){try{l.current.releaseLock()}catch{}l.current=null}if(c.current){try{c.current.releaseLock()}catch{}c.current=null}if(u.current){try{u.current.releaseLock()}catch{}u.current=null}},resumeWorkflowStream:b,timeTravelWorkflowStream:w}},I2r=()=>{const e=or();return Pi({mutationFn:async({workflowId:r,runId:n})=>{try{return await(await e.getWorkflow(r).createRun({runId:n})).cancelRun()}catch(i){throw console.error("Error canceling workflow run:",i),i}}})},DZe=()=>{const[e,t]=E.useState(!1),r=E.useCallback(n=>{if(n){const i=new IntersectionObserver(([s])=>{t(s.isIntersecting)});return i.observe(n),()=>i.disconnect()}},[]);return{inView:e,setRef:r}},OD=e=>{const t=or(),{requestContext:r}=wi();return Ri({queryKey:["workflow",e],queryFn:()=>e?t.getWorkflow(e).details(r):null,enabled:!!e,retry:!1,refetchOnWindowFocus:!1,throwOnError:!1})},Lz=20,AZe=(e,{enabled:t=!0}={})=>{const r=or(),{inView:n,setRef:i}=DZe(),s=N$e({queryKey:["workflow-runs",e],queryFn:({pageParam:o})=>r.getWorkflow(e).runs({limit:Lz,offset:o*Lz}),initialPageParam:0,getNextPageParam:(o,a,l)=>{if(!(o.runs.length<Lz))return l+1},select:o=>o.pages.flatMap(a=>a.runs),retry:!1,enabled:t,refetchInterval:5e3,gcTime:0,staleTime:0});return E.useEffect(()=>{n&&s.hasNextPage&&!s.isFetchingNextPage&&s.fetchNextPage()},[n,s.hasNextPage,s.isFetchingNextPage]),{...s,setEndOfListElement:i}},PZe=(e,t,r)=>{const n=or();return Ri({queryKey:["workflow-run",e,t],queryFn:()=>n.getWorkflow(e).runById(t),enabled:!!(e&&t),gcTime:0,staleTime:0,refetchInterval:r})},N2r=e=>{const t=or(),r=sp();return Pi({mutationFn:({runId:n})=>t.getWorkflow(e).deleteRunById(n),onSuccess:()=>{r.invalidateQueries({queryKey:["workflow-runs",e]}),dn.success("Workflow run deleted successfully")},onError:()=>{dn.error("Failed to delete workflow run")}})},$Ze=E.createContext(null);function L6(){const e=E.useContext($Ze);if(!e)throw new Error("useWorkflowStepDetail must be used within WorkflowStepDetailProvider");return e}function R2r({children:e}){const[t,r]=E.useState(null),n=E.useCallback(({stepName:o,stepId:a,mapConfig:l})=>{r({type:"map-config",stepName:o,stepId:a,mapConfig:l})},[]),i=E.useCallback(({label:o,stepGraph:a,fullStep:l})=>{r({type:"nested-graph",stepName:o,nestedGraph:{label:o,stepGraph:a,fullStep:l}})},[]),s=E.useCallback(()=>{r(null)},[]);return p.jsx($Ze.Provider,{value:{stepDetail:t,showMapConfig:n,showNestedGraph:i,closeStepDetail:s},children:e})}const mp=E.createContext({});function ote({children:e,snapshot:t,workflowId:r,initialRunId:n,withoutTimeTravel:i=!1}){const[s,o]=E.useState(()=>t?QZ(t):null),[a,l]=E.useState(()=>t?.context?.input??null),[c,u]=E.useState(()=>n??""),[d,f]=E.useState(!1),[m,g]=E.useState(!1),v=d||["success","failed","canceled","bailed"].includes(s?.status??"")?void 0:5e3,{isLoading:b,data:w}=PZe(r,n??"",v),S=E.useMemo(()=>w&&n?{context:{input:w?.payload,...w?.steps},status:w?.status,result:w?.result,error:w?.error,runId:n,serializedStepGraph:w?.serializedStepGraph,value:w?.initialState}:void 0,[w,n]),{data:O,isLoading:k,error:C}=OD(r),{createWorkflowRun:T}=P2r(),{streamWorkflow:P,streamResult:A,isStreaming:R,observeWorkflowStream:M,closeStreamsAndReset:z,resumeWorkflowStream:U,timeTravelWorkflowStream:V}=$2r({debugMode:m}),{mutateAsync:L,isPending:Q}=I2r(),F=()=>{o(null),l(null)};return E.useEffect(()=>{f(!1)},[n]),E.useEffect(()=>{S?.runId&&(o(QZ(S)),S.value&&Object.keys(S.value).length>0?l({initialState:S.value,inputData:S.context?.input}):l(S.context?.input),u(S.runId))},[S]),p.jsx(mp.Provider,{value:{workflowId:r,result:s,setResult:o,payload:a,setPayload:l,clearData:F,snapshot:t,runId:c,setRunId:u,workflowError:C??null,workflow:O??void 0,isLoading:k,createWorkflowRun:T.mutateAsync,streamWorkflow:N=>(f(!0),P.mutateAsync(N)),resumeWorkflow:N=>(f(!0),U.mutateAsync(N)),streamResult:A,isStreamingWorkflow:R,isCancellingWorkflowRun:Q,cancelWorkflowRun:L,observeWorkflowStream:N=>(f(!0),M.mutate(N)),closeStreamsAndReset:z,timeTravelWorkflowStream:N=>(f(!0),V.mutateAsync(N)),runSnapshot:S,isLoadingRunExecutionResult:b,withoutTimeTravel:i,debugMode:m,setDebugMode:g},children:p.jsx(R2r,{children:e})})}function Rr({className:e,...t}){return p.jsx("div",{className:ie("animate-pulse rounded-md bg-surface4/50",e),...t})}const M2r=e=>e.replace(/[-_\s]+(.)?/g,(r,n)=>n?n.toUpperCase():"").replace(/^(.)/,r=>r.toLowerCase()).replace(/([A-Z])/g," $1").replace(/^./,r=>r.toUpperCase()).trim(),j2r=(e,t,r)=>{if(!e.startsWith("mapping_"))return e;const n=l=>l.split(" ").map(c=>c.charAt(0).toUpperCase()+c.slice(1)).join(" "),i=l=>{const c=l.replace(/Step$/,"").replace(/[-_]/g," ").trim();return n(c)},s=(l,c)=>l.length===0?c?"End":"Start":l.length===1?i(l[0]):`${l.length} Steps`,o=s(t,!1),a=s(r,!0);return`${o} → ${a} Map`},F2r=(e,t)=>{const r=new ime.graphlib.Graph().setDefaultEdgeLabel(()=>({}));r.setGraph({rankdir:"TB"}),t.forEach(s=>r.setEdge(s.source,s.target)),e.forEach(s=>r.setNode(s.id,{...s,width:s.measured?.width??274,height:s.measured?.height??(s?.data?.isLarge?260:100)})),ime.layout(r);const n=r.graph()?.width?r.graph().width/2:0,i=r.graph()?.height?r.graph().height/2:0;return{nodes:e.map(s=>{const o=r.node(s.id),a=o.x-(s.measured?.width??274)/2,l=o.y-(s.measured?.height??(s?.data?.isLarge?260:100))/2;return{...s,position:{x:a,y:l}}}),edges:t,fullWidth:n,fullHeight:i}},Lu={animated:!0,markerEnd:{type:WE.ArrowClosed,width:20,height:20,color:"#8e8e8e"}},ZZ=({stepFlow:e,xIndex:t,yIndex:r,prevNodeIds:n,prevStepIds:i,nextStepFlow:s,condition:o,allPrevNodeIds:a})=>{let l=[],c=[];if((s?.type==="step"||s?.type==="foreach"||s?.type==="loop")&&(l=[a?.includes(s.step.id)?`${s.step.id}-${r+1}`:s.step.id],c=[s.step.id]),(s?.type==="sleep"||s?.type==="sleepUntil")&&(l=[a?.includes(s.id)?`${s.id}-${r+1}`:s.id],c=[s.id]),s?.type==="parallel"&&(l=s?.steps.map(u=>{const d=u.step.id;return a?.includes(d)?`${d}-${r+1}`:d})||[],c=s?.steps.map(u=>u.step.id)||[]),s?.type==="conditional"&&(l=s?.serializedConditions.map(u=>u.id)||[],c=s?.steps?.map(u=>u.step.id)||[]),e.type==="step"||e.type==="foreach"){const u=e.step.component==="WORKFLOW",d=a?.includes(e.step.id)?`${e.step.id}-${r}`:e.step.id,f=[...o?[{id:o.id,position:{x:t*300,y:r*100},type:"condition-node",data:{label:o.id,previousStepId:i[i.length-1],nextStepId:e.step.id,withoutTopHandle:!n.length,withoutBottomHandle:!l.length,isLarge:!0,conditions:[{type:"when",fnString:o.fn}]}}]:[],{id:d,position:{x:t*300,y:(r+(o?1:0))*100},type:u?"nested-node":"default-node",data:{label:j2r(e.step.id,i,c),stepId:e.step.id,description:e.step.description,withoutTopHandle:o?!1:!n.length,withoutBottomHandle:!l.length,stepGraph:u?e.step.serializedStepFlow:void 0,mapConfig:e.step.mapConfig,canSuspend:e.step.canSuspend,isForEach:e.type==="foreach"}}],m=[...o?[...(n||[]).map((g,v)=>({id:`e${g}-${o.id}`,source:g,data:{previousStepId:i[v],nextStepId:e.step.id},target:o.id,...Lu})),{id:`e${o.id}-${d}`,source:o.id,data:{previousStepId:i[i.length-1],nextStepId:e.step.id,conditionNode:!0},target:d,...Lu}]:(n||[]).map((g,v)=>({id:`e${g}-${d}`,source:g,data:{previousStepId:i[v],nextStepId:e.step.id},target:d,...Lu})),...(l||[]).map((g,v)=>({id:`e${d}-${g}`,source:d,data:{previousStepId:e.step.id,nextStepId:c[v]},target:g,...Lu}))];return{nodes:f,edges:m,nextPrevNodeIds:[d],nextPrevStepIds:[e.step.id]}}if(e.type==="sleep"||e.type==="sleepUntil"){const u=a?.includes(e.id)?`${e.id}-${r}`:e.id,d=[...o?[{id:o.id,position:{x:t*300,y:r*100},type:"condition-node",data:{label:o.id,previousStepId:i[i.length-1],nextStepId:e.id,withoutTopHandle:!1,withoutBottomHandle:!l.length,isLarge:!0,conditions:[{type:"when",fnString:o.fn}]}}]:[],{id:u,position:{x:t*300,y:(r+(o?1:0))*100},type:"default-node",data:{label:e.id,withoutTopHandle:o?!1:!n.length,withoutBottomHandle:!l.length,...e.type==="sleepUntil"?{date:e.date}:{duration:e.duration}}}],f=[...n.length?o?[...n.map((m,g)=>({id:`e${m}-${o.id}`,source:m,data:{previousStepId:i[g],nextStepId:e.id},target:o.id,...Lu})),{id:`e${o.id}-${u}`,source:o.id,data:{previousStepId:i[i.length-1],nextStepId:e.id},target:u,...Lu}]:n.map((m,g)=>({id:`e${m}-${u}`,source:m,data:{previousStepId:i[g],nextStepId:e.id},target:u,...Lu})):[],...l.length?l.map((m,g)=>({id:`e${u}-${m}`,source:u,data:{previousStepId:e.id,nextStepId:c[g]},target:m,...Lu})):[]];return{nodes:d,edges:f,nextPrevNodeIds:[u],nextPrevStepIds:[e.id]}}if(e.type==="loop"){const{step:u,serializedCondition:d,loopType:f}=e,m=u.component==="WORKFLOW",g=[{id:u.id,position:{x:t*300,y:r*100},type:m?"nested-node":"default-node",data:{label:u.id,description:u.description,withoutTopHandle:!n.length,withoutBottomHandle:!1,stepGraph:m?u.serializedStepFlow:void 0,canSuspend:u.canSuspend}},{id:d.id,position:{x:t*300,y:(r+1)*100},type:"condition-node",data:{label:d.id,previousStepId:u.id,nextStepId:c[0],withoutTopHandle:!1,withoutBottomHandle:!l.length,isLarge:!0,conditions:[{type:f,fnString:d.fn}]}}],v=[...n.length?n.map((b,w)=>({id:`e${b}-${u.id}`,source:b,data:{previousStepId:i[w],nextStepId:u.id},target:u.id,...Lu})):[],{id:`e${u.id}-${d.id}`,source:u.id,data:{previousStepId:u.id,nextStepId:c[0]},target:d.id,...Lu},...l.length?l.map((b,w)=>({id:`e${d.id}-${b}`,source:d.id,data:{previousStepId:u.id,nextStepId:c[w]},target:b,...Lu})):[]];return{nodes:g,edges:v,nextPrevNodeIds:[d.id],nextPrevStepIds:[u.id]}}if(e.type==="parallel"){let u=[],d=[],f=[];return e.steps.forEach((m,g)=>{const{nodes:v,edges:b,nextPrevStepIds:w}=ZZ({stepFlow:m,xIndex:g,yIndex:r,prevNodeIds:n,prevStepIds:i,nextStepFlow:s,allPrevNodeIds:a}),S=v.map(O=>({...O,data:{...O.data,isParallel:!0}}));u.push(...S),d.push(...b),f.push(...w)}),{nodes:u,edges:d,nextPrevNodeIds:u.map(m=>m.id),nextPrevStepIds:f}}if(e.type==="conditional"){let u=[],d=[],f=[];return e.steps.forEach((m,g)=>{const{nodes:v,edges:b,nextPrevStepIds:w}=ZZ({stepFlow:m,xIndex:g,yIndex:r,prevNodeIds:n,prevStepIds:i,nextStepFlow:s,condition:e.serializedConditions[g],allPrevNodeIds:a});u.push(...v),d.push(...b),f.push(...w)}),{nodes:u,edges:d,nextPrevNodeIds:u.filter(({type:m})=>m!=="condition-node").map(m=>m.id),nextPrevStepIds:f}}return{nodes:[],edges:[],nextPrevNodeIds:[],nextPrevStepIds:[]}},IZe=({stepGraph:e})=>{if(!e)return{nodes:[],edges:[]};if(e.length===0)return{nodes:[],edges:[]};let t=[],r=[],n=[],i=[],s=[];for(let l=0;l<e.length;l++){const{nodes:c,edges:u,nextPrevNodeIds:d,nextPrevStepIds:f}=ZZ({stepFlow:e[l],xIndex:l,yIndex:l,prevNodeIds:n,prevStepIds:i,nextStepFlow:l===e.length-1?void 0:e[l+1],allPrevNodeIds:s});t.push(...c),r.push(...u),n=d,i=f,s.push(...n)}const{nodes:o,edges:a}=F2r(t,r);return{nodes:o,edges:a}},z6=lHt,B6=e=>{const{className:t,...r}=e;return p.jsx(gRe,{className:ie("-outline-offset-2",t),...r})},V6=yRe,gs={sleep:"#A855F7",forEach:"#F97316",map:"#F97316",parallel:"#3B82F6",suspend:"#EC4899",after:"#14B8A6",workflow:"#8B5CF6",when:"#ECB047",dountil:"#8B5CF6",dowhile:"#06B6D4",until:"#F59E0B",while:"#10B981",if:"#3B82F6",else:"#6B7280"},Gs={sleep:MB,sleepUntil:Bct,forEach:RB,map:RB,parallel:uTe,suspend:xut,after:KCe,workflow:idt,when:oTe,dountil:Fdt,dowhile:zdt,until:MB,while:RN,if:iTe,else:Nut},gxe=e=>{switch(e){case"when":return{icon:Gs.when,color:gs.when};case"dountil":return{icon:Gs.dountil,color:gs.dountil};case"dowhile":return{icon:Gs.dowhile,color:gs.dowhile};case"until":return{icon:Gs.until,color:gs.until};case"while":return{icon:Gs.while,color:gs.while};case"if":return{icon:Gs.if,color:gs.if};case"else":return{icon:Gs.else,color:gs.else};default:return{icon:void 0,color:void 0}}},NZe=e=>{const t=!!(e.duration||e.date),r=!!e.isForEach,n=!!(e.mapConfig&&!e.isForEach),i=!!e.stepGraph,s=t||e.canSuspend||e.isParallel||r||n||i;return{isSleepNode:t,isForEachNode:r,isMapNode:n,isNestedWorkflow:i,hasSpecialBadge:s}},RZe=(e,{enabled:t=!0})=>{const r=E.useRef(t);me.useEffect(()=>{if(!t||!e?.current)return;const n=e.current,i=new MutationObserver(()=>{r.current&&n.scrollTo({top:n.scrollHeight,behavior:"smooth"})});i.observe(n,{childList:!0,subtree:!0,characterData:!0});const s=o=>{const a=o.target,l=a.scrollTop+a.clientHeight,c=a.scrollHeight;l>=c-1?r.current=!0:r.current=!1};return n.addEventListener("scroll",s),()=>{n.removeEventListener("scroll",s),i.disconnect()}},[t,e])},_D=E.forwardRef(({className:e,children:t,viewPortClassName:r,maxHeight:n,autoScroll:i=!1,...s},o)=>{const a=E.useRef(null);return RZe(a,{enabled:i}),p.jsxs(ARe,{ref:o,className:ie("relative overflow-hidden",e),...s,children:[p.jsx(wHt,{ref:a,className:ie("h-full w-full rounded-[inherit] [&>div]:!block",r),style:n?{maxHeight:n}:void 0,children:t}),p.jsx(MZe,{}),p.jsx(SHt,{})]})});_D.displayName=ARe.displayName;const MZe=E.forwardRef(({className:e,orientation:t="vertical",...r},n)=>p.jsx(jY,{ref:n,orientation:t,className:ie("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-px",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-px",e),...r,children:p.jsx(kRe,{className:"relative flex-1 rounded-full bg-border1"})}));MZe.displayName=jY.displayName;const kD=()=>{const e=E.useContext(mp),t=e.result?.steps??{};return{steps:Object.entries(t).reduce((n,[i,s])=>{const o="tripwire"in s&&s.tripwire;return{...n,[i]:{error:o?void 0:"error"in s?s.error:void 0,tripwire:o?s.tripwire:void 0,startedAt:s.startedAt,endedAt:"endedAt"in s?s.endedAt:void 0,status:s.status,output:"output"in s?s.output:void 0,input:s.payload,resumeData:"resumePayload"in s?s.resumePayload:void 0,suspendOutput:"suspendOutput"in s?s.suspendOutput:void 0,suspendPayload:"suspendPayload"in s?s.suspendPayload:void 0}}},{}),runId:e.runId}},mx=({data:e,language:t="auto"})=>{const r=X0(),n=o=>{if(t==="javascript")return[B3(),et.lineWrapping];if(t==="json")return[Gc,et.lineWrapping];try{return JSON.parse(o),[Gc,et.lineWrapping]}catch{return o.includes("=>")||o.includes("function")||o.includes("const ")||o.includes("return ")?[B3(),et.lineWrapping]:[et.lineWrapping]}};if(typeof e!="string"){const o=JSON.stringify(e,null,2);return p.jsxs("div",{className:"max-h-[500px] overflow-auto relative",children:[p.jsx("div",{className:"absolute right-2 top-2 bg-surface4 rounded-full z-10",children:p.jsx(Ch,{content:o})}),p.jsx("div",{className:"bg-surface4 rounded-lg p-4",children:p.jsx(su,{value:o,theme:r,extensions:[Gc,et.lineWrapping]})})]})}const i=n(e);let s=e;try{const o=JSON.parse(e);s=JSON.stringify(o,null,2)}catch{}return p.jsxs("div",{className:"max-h-[500px] overflow-auto relative",children:[p.jsx("div",{className:"absolute right-2 top-2 bg-surface4 rounded-full z-10",children:p.jsx(Ch,{content:e})}),p.jsx("div",{className:"bg-surface4 rounded-lg p-4",children:p.jsx(su,{value:s,theme:r,extensions:i})})]})},L2r=me.forwardRef(({children:e,...t},r)=>p.jsx("form",{ref:r,className:"space-y-4",...t,children:e})),z2r=["boolean","object","array"],B2r=({label:e,children:t,id:r,field:n,error:i})=>{const s=z2r.includes(n.type);return p.jsxs("div",{className:"pb-4 last:pb-0",children:[!s&&p.jsxs(Ye,{as:"label",variant:"ui-sm",className:"text-neutral3 pb-1 block",htmlFor:r,children:[e,n.required&&p.jsx("span",{className:"text-accent2",children:" *"})]}),t,n.fieldConfig?.description&&p.jsx(Ye,{as:"p",variant:"ui-sm",className:"text-neutral6",children:n.fieldConfig.description}),i&&p.jsx(Ye,{as:"p",variant:"ui-sm",className:"text-accent2",children:i})]})},V2r=({error:e})=>p.jsx(Nv,{variant:"destructive",children:p.jsx(Rv,{children:e})}),U2r=({children:e})=>p.jsx(Ke,{type:"submit",children:e}),yxe=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,vxe=lZe,jZe=(e,t)=>r=>{var n;if(t?.variants==null)return vxe(e,r?.class,r?.className);const{variants:i,defaultVariants:s}=t,o=Object.keys(i).map(c=>{const u=r?.[c],d=s?.[c];if(u===null)return null;const f=yxe(u)||yxe(d);return i[c][f]}),a=r&&Object.entries(r).reduce((c,u)=>{let[d,f]=u;return f===void 0||(c[d]=f),c},{}),l=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((c,u)=>{let{class:d,className:f,...m}=u;return Object.entries(m).every(g=>{let[v,b]=g;return Array.isArray(b)?b.includes({...s,...a}[v]):{...s,...a}[v]===b})?[...c,d,f]:c},[]);return vxe(e,o,l,r?.class,r?.className)},Q2r=jZe(ie("flex w-full text-neutral6 border bg-transparent shadow-sm transition-colors disabled:cursor-not-allowed disabled:opacity-50",SD,yS),{variants:{variant:{default:"border border-border1 placeholder:text-neutral3",filled:"border bg-inputFill border-border1 placeholder:text-neutral3",unstyled:"border-0 bg-transparent placeholder:text-neutral3"},size:{sm:`${Ea.sm} px-2 text-ui-sm`,md:`${Ea.md} px-3 text-ui-sm`,lg:`${Ea.lg} px-4 text-ui-sm`}},defaultVariants:{variant:"default",size:"md"}}),ko=E.forwardRef(({className:e,size:t,testId:r,variant:n,type:i,...s},o)=>p.jsx("input",{type:i,className:ie(e,Q2r({variant:n,size:t,className:e})),"data-testid":r,ref:o,...s}));ko.displayName="Input";const Z2r=({inputProps:e,error:t,field:r,id:n})=>{const{key:i,...s}=e;return p.jsx(ko,{id:n,className:t?"border-accent2":"",...s,defaultValue:r.default})},q2r=({inputProps:e,error:t,field:r,id:n})=>{const{key:i,...s}=e;return p.jsx(ko,{id:n,type:"number",className:t?"border-accent2":"",...s,defaultValue:r.default!==void 0?Number(r.default):void 0,onChange:o=>{const a=o.target.value;a!==""&&!isNaN(Number(a))&&s.onChange({target:{value:a,name:e.name}})},onBlur:o=>{const a=o.target.value;a!==""&&!isNaN(Number(a))&&s.onChange({target:{value:Number(a),name:e.name}})}})},U6=E.forwardRef(({className:e,...t},r)=>p.jsx(qY,{ref:r,className:ie("peer h-4 w-4 shrink-0 rounded-sm border border-neutral6 shadow disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-neutral6 data-[state=checked]:text-surface2",e),...t,children:p.jsx(QRe,{className:ie("flex items-center justify-center text-current"),children:p.jsx(yd,{className:"h-4 w-4"})})}));U6.displayName=qY.displayName;const H2r=({field:e,label:t,id:r,inputProps:n,value:i})=>p.jsxs("div",{className:"flex items-center space-x-2",children:[p.jsx(U6,{id:r,onCheckedChange:s=>{const o={target:{name:n.name,value:s}};n.onChange(o)},defaultChecked:e.default,disabled:n.disabled||n.readOnly}),p.jsxs(Ye,{as:"label",variant:"ui-sm",className:"text-neutral3",htmlFor:r,children:[t,e.required&&p.jsx("span",{className:"text-accent2",children:" *"})]})]});function FZe({className:e,classNames:t,showOutsideDays:r=!0,...n}){return p.jsx(KXt,{showOutsideDays:r,className:ie("p-3",e),classNames:{months:"flex flex-col space-y-4 sm:space-y-0 ",month:"space-y-4 text-ui-sm ",caption:"flex justify-between pt-1 items-center pl-2",caption_label:"text-text font-medium ",nav:"flex items-center",nav_button_previous:ie("flex justify-center items-center h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_next:ie("flex justify-center items-center h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),dropdown_month:"w-full border-collapse space-y-1",weeknumber:"flex",day:ie("relative p-0 text-center focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-surface5 [&:has([aria-selected].day-outside)]:bg-surface5/50 [&:has([aria-selected].day-range-end)]:rounded-r-md",n.mode==="range"?"[&:has(>.day-range-end)]:rounded-r-md [&:has(>.day-range-start)]:rounded-l-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md":"[&:has([aria-selected])]:rounded-md","h-8 w-8 p-0 hover:bg-lightGray-7/50 font-normal aria-selected:opacity-100"),day_range_start:"day-range-start",day_range_end:"day-range-end",day_selected:"!bg-neutral6/50 !text-surface2 hover:bg-neutral6 rounded-md hover:text-surface2 focus:bg-neutral6 focus:text-surface2",day_today:"bg-neutral6/10 text-neutral5",day_outside:"day-outside text-neutral3 opacity-50 aria-selected:bg-surface5/50 aria-selected:text-neutral3 aria-selected:opacity-30",day_disabled:"text-neutral3 opacity-50",day_range_middle:"aria-selected:bg-surface5 aria-selected:text-neutral5",day_hidden:"invisible",head_cell:"text-ui-xs text-neutral3",...t},...n})}const QC=Tlt,ZC=Dlt,vw=E.forwardRef(({className:e,align:t="center",sideOffset:r=4,...n},i)=>p.jsx(Alt,{children:p.jsx(wCe,{ref:i,align:t,sideOffset:r,className:ie("z-50 w-72 rounded-md border border-border1 bg-surface3 text-neutral5 shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e&&/\bp-\S+/.test(e)?!1:"p-4",e),...n})}));vw.displayName=wCe.displayName;const ate=kYt,lte=EYt,W2r={sm:`${Ea.sm} px-2 text-ui-sm`,md:`${Ea.md} px-3 text-ui-sm`,lg:`${Ea.lg} px-3 text-ui-sm`},Q6=E.forwardRef(({className:e,children:t,size:r="md",...n},i)=>p.jsxs(jMe,{ref:i,className:ie("flex w-full items-center justify-between border border-border1 bg-transparent py-2 shadow-sm placeholder:text-neutral3 disabled:cursor-not-allowed disabled:opacity-50",SD,yS,W2r[r],e),...n,children:[t,p.jsx(CYt,{asChild:!0,children:p.jsx(Rd,{className:"h-4 w-4 opacity-50"})})]}));Q6.displayName=jMe.displayName;const Z6=E.forwardRef(({className:e,children:t,position:r="popper",...n},i)=>p.jsx(TYt,{children:p.jsx(FMe,{ref:i,className:ie("relative z-50 min-w-[8rem] max-h-dropdown-max-height overflow-y-auto overflow-x-hidden rounded-md border border-border1 bg-surface3 text-neutral5 shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:r,...n,children:p.jsx(DYt,{className:ie("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t})})}));Z6.displayName=FMe.displayName;const q6=E.forwardRef(({className:e,children:t,...r},n)=>p.jsxs(LMe,{ref:n,className:ie("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-neutral5 text-sm focus:bg-surface5 focus:text-neutral5 data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...r,children:[p.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:p.jsx(PYt,{children:p.jsx(yd,{className:"h-4 w-4"})})}),p.jsx(AYt,{children:t})]}));q6.displayName=LMe.displayName;function zz({name:e,onChange:t,value:r,options:n,placeholder:i}){return p.jsxs(ate,{name:e,onValueChange:t,value:r,children:[p.jsx(Q6,{children:p.jsx(lte,{placeholder:i||"Select..."})}),p.jsx(Z6,{children:(n||[]).map((s,o)=>p.jsx(q6,{value:`${o}`,children:p.jsx("div",{className:"flex items-center gap-2 [&>svg]:w-[1.2em] [&>svg]:h-[1.2em] [&>svg]:text-neutral3",children:s})},s))})]})}const Bz=["12","1","2","3","4","5","6","7","8","9","10","11"],zP=["00","15","30","45","59"],BP=["AM","PM"];function G2r({defaultValue:e,onValueChange:t,className:r}){const[n,i]=E.useState("12"),[s,o]=E.useState("00"),[a,l]=E.useState("AM");E.useEffect(()=>{if(e){const f=/^(\d{1,2}):(\d{2})(?::\d{2})?\s*(AM|PM|am|pm)?$/,m=e.match(f);if(m){let g=parseInt(m[1],10);const v=parseInt(m[2],10),b=m[3]?.toUpperCase();g>=1&&g<=12&&v>=0&&v<=59&&(i(g.toString()),o(v===0?"00":v.toString()),l(b||"AM"))}}},[e]);const c=f=>{i(f),t(`${Bz[+f]}:${s} ${a}`.trim())},u=f=>{o(zP[+f]),t(`${n}:${zP[+f]} ${a}`.trim())},d=f=>{l(BP[+f]),t(`${n}:${s} ${BP[+f]}`.trim())};return p.jsxs("div",{className:ie("flex gap-2 items-center",r),children:[p.jsx(zz,{name:"hour",value:Bz.indexOf(n).toString(),onChange:c,options:Bz}),":",p.jsx(zz,{name:"minute",value:zP.indexOf(s).toString(),onChange:u,options:zP}),p.jsx(zz,{name:"period",value:BP.indexOf(a).toString(),onChange:d,options:BP})]})}const X2r={sm:`${Ea.sm} px-2`,md:`${Ea.md} px-3`,lg:`${Ea.lg} px-3 py-2`};function y0({name:e,value:t,label:r,labelIsHidden:n=!1,className:i,testId:s,required:o,disabled:a,helpMsg:l,error:c,errorMsg:u,size:d="lg",...f}){const m=({children:g})=>n?p.jsx(vd,{children:g}):g;return p.jsxs("div",{className:ie("grid gap-2",{"grid-rows-[auto_1fr]":!n&&!l,"grid-rows-[auto_1fr_auto]":!n&&l},i),children:[p.jsx(m,{children:p.jsxs("label",{htmlFor:`input-${e}`,className:ie("text-ui-sm text-neutral3 flex justify-between items-center"),children:[r,o&&p.jsx("i",{className:"text-neutral2 text-xs",children:"(required)"})]})}),p.jsx("input",{id:`input-${e}`,name:e,value:t,className:ie("flex grow items-center cursor-pointer text-ui-md text-neutral5 border border-border1 leading-none bg-transparent w-full",SD,yS,X2r[d],"placeholder:text-neutral3 placeholder:text-ui-sm",{"cursor-not-allowed opacity-50":a,"border-red-800 focus:border-border1":c||u}),"data-testid":s,...f}),l&&p.jsx("p",{className:"text-neutral3 text-ui-sm",children:l}),u&&p.jsxs("p",{className:ie("text-ui-sm text-neutral4 flex items-center gap-2","[&>svg]:w-[1.2em] [&>svg]:h-[1.2em] [&>svg]:opacity-70 [&>svg]:text-red-400"),children:[p.jsx(Fw,{})," ",u]})]})}function LZe({onReset:e,...t}){return p.jsxs("div",{className:"relative",children:[p.jsx(y0,{labelIsHidden:!0,...t,className:"[&>input]:pl-10",style:{background:`url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='gray' viewBox='0 0 24 24'><path d='M21 20l-5.6-5.6a7 7 0 1 0-1.4 1.4L20 21zM4 10a6 6 0 1 1 12 0 6 6 0 0 1-12 0z'/></svg>") no-repeat 8px center`,backgroundSize:"1.5rem 1.5rem",paddingRight:e?"3rem":void 0}}),e&&t.value&&p.jsx("button",{type:"button",onClick:e,className:ie("absolute top-1/2 right-2 -translate-y-1/2 p-1","[&:hover>svg]:text-neutral5"),children:p.jsx(Pa,{className:"text-neutral3 w-[1rem] h-[1rem]"})})]})}function v0({name:e,value:t,label:r,className:n,required:i,disabled:s,helpMsg:o,options:a,onValueChange:l,placeholder:c="Select an option",size:u="lg"}){return p.jsxs("div",{className:ie("flex gap-2 items-center",{"grid-rows-[auto_1fr]":r,"grid-rows-[auto_1fr_auto]":o},n),children:[r&&p.jsxs("label",{className:ie("text-ui-sm text-neutral3 flex justify-between items-center shrink-0"),children:[r,i&&p.jsx("i",{className:"text-neutral2",children:"(required)"})]}),p.jsxs(ate,{name:e,value:t,onValueChange:l,disabled:s,children:[p.jsx(Q6,{id:"select-dataset",size:u,className:ie("w-full border border-border1 min-w-20 gap-2",SD,yS),children:p.jsx(lte,{placeholder:c})}),p.jsx(Z6,{children:a.map(d=>p.jsx(q6,{value:d.value,children:p.jsx("span",{className:"whitespace-nowrap truncate block",children:d.label})},d.label))})]}),o&&p.jsx("p",{className:"text-neutral3 text-ui-sm",children:o})]})}const bxe=({value:e,minValue:t,maxValue:r,defaultTimeStrValue:n,onValueChange:i,children:s,className:o,placeholder:a,...l})=>{const[c,u]=E.useState(!1);return p.jsxs(QC,{open:c,onOpenChange:u,children:[p.jsx(ZC,{asChild:!0,children:s||p.jsx(J2r,{value:e,placeholder:a,className:o,"data-testid":"datepicker-button"})}),p.jsx(vw,{className:"backdrop-blur-4xl w-auto !p-0 bg-surface4 max-w-[16.5rem]",align:"start","data-testid":"datepicker-calendar",children:p.jsx(Y2r,{value:e,minValue:t,maxValue:r,onValueChange:i,setOpenPopover:u,defaultTimeStrValue:n,...l})})]})};function VP({date:e,timeStr:t=""}){if(!ug(e))return null;if(t){const r=Mn(e,"yyyy-MM-dd"),n=new Date(`${r} ${t}`);if(ug(n))return n}return e}const Y2r=({value:e,minValue:t,maxValue:r,onValueChange:n,setOpenPopover:i,placeholder:s,className:o,defaultTimeStrValue:a,...l})=>{const[c,u]=E.useState(null),[d,f]=E.useState(e?Mn(VP({date:e,timeStr:a})||"","PP p"):""),[m,g]=E.useState(a||""),[v,b]=E.useState(e?new Date(e):void 0),w=KY(V=>{ug(V)&&(b(V),n?.(V),i?.(!1))},500),S=V=>{f(V.currentTarget.value);const L=new Date(V.currentTarget.value);w(L)},O=V=>{ug(V)?r&&V>r?(u(`The selected date should be before ${Mn(r,"PP p")}`),f("")):t&&V<t?(u(`The selected date should be after ${Mn(t,"PP p")}`),f("")):(f(Mn(V,"PP p")),u("")):(f(""),u(""))},k=new Date(d),C=ug(k),T=C&&k.getTime()!==e?.getTime(),P=V=>{if(b(V),V){const L=VP({date:V,timeStr:m});O(L||"")}else O("")},A=V=>{if(b(V),V){const L=VP({date:V,timeStr:m});O(L||"")}else O("")},R=V=>{if(g(V),C){const L=VP({date:k,timeStr:V});O(L||"")}},M=()=>{i?.(!1)},z=()=>{ug(k)&&n(k),i?.(!1)},U=()=>{n(void 0),b(void 0),f(""),g(""),i?.(!1)};return p.jsxs("div",{"aria-label":"Choose date",className:ie("relative flex flex-col",o),onKeyDown:V=>{V.stopPropagation(),V.key==="Escape"&&i?.(!1)},children:[p.jsx(y0,{type:"text",value:d,onChange:S,placeholder:s,className:"m-4 mb-0 !w-auto"}),c&&p.jsxs("div",{className:ie("text-ui-md m-4 mb-0 text-neutral3","[&>svg]:w-[1.1em] [&>svg]:h-[1.1em] [&>svg]:mt-0.5 [&>svg]:text-red-500 [&>svg]:float-left [&>svg]:mr-2"),children:[p.jsx(Lx,{})," ",c]}),p.jsx(FZe,{mode:"single",month:v,selected:v,onMonthChange:A,onSelect:P,...l}),p.jsx(G2r,{onValueChange:R,className:"m-4 mt-0 w-auto",defaultValue:e?Mn(new Date(e),"hh:mm a"):a}),p.jsxs("div",{className:"grid grid-cols-[1fr_auto] gap-2 m-4 mt-0",children:[p.jsx(Ke,{variant:"light",size:"lg",tabIndex:0,onClick:()=>{C?z():M()},children:T?"Apply":"Cancel"}),T&&p.jsx(Ke,{tabIndex:0,onClick:U,children:"Clear"})]})]})},J2r=E.forwardRef(({value:e,placeholder:t,className:r,...n},i)=>p.jsxs(Ke,{ref:i,className:ie("justify-start",r),variant:"light",size:"lg",...n,children:[p.jsx(WCe,{className:"h-4 w-4"}),e?p.jsx("span",{className:"text-white",children:Mn(e,"PP p")}):p.jsx("span",{className:"text-gray",children:t??"Pick a date"})]})),K2r=({inputProps:e,field:t,error:r,id:n})=>{const{key:i,...s}=e,[o,a]=E.useState(void 0),[l,c]=E.useState(!1);E.useEffect(()=>{if(t.default){const f=new Date(t.default);ug(f)&&a(f)}},[t]);const u=f=>{a(f),f&&s.onChange({target:{value:f.toISOString(),name:e.name}}),c(!1)},d=()=>{a(void 0),s.onChange({target:{value:"",name:e.name}}),c(!1)};return p.jsxs(QC,{open:l,onOpenChange:c,children:[p.jsx(ZC,{asChild:!0,children:p.jsxs(Ke,{id:n,variant:"light",size:"lg",className:ie("w-full",r?"border-accent2":""),children:[p.jsx(WCe,{className:"h-4 w-4"}),o?p.jsx("span",{className:"text-white",children:Mn(o,"PPP")}):p.jsx("span",{className:"text-gray",children:"Pick a date"})]})}),p.jsxs(vw,{className:"w-auto p-0 bg-surface4",align:"start",children:[p.jsx(FZe,{mode:"single",selected:o,onSelect:u,month:o,onMonthChange:a}),o&&p.jsx("div",{className:"p-3 pt-0",children:p.jsx(Ke,{variant:"light",size:"lg",className:"w-full",onClick:d,children:"Clear"})})]})]})},ePr=({field:e,inputProps:t,error:r,id:n,value:i})=>{const{key:s,...o}=t;return p.jsxs(ate,{...o,value:i,onValueChange:a=>{const l={target:{value:a,name:t.name}};o.onChange(l)},children:[p.jsx(Q6,{id:n,className:r?"border-accent2":"",children:p.jsx(lte,{placeholder:"Select an option"})}),p.jsx(Z6,{children:(e.options||[]).map(([a,l])=>p.jsx(q6,{value:a,children:l},a))})]})},tPr=({label:e,children:t})=>{const r=e!==""&&e!=="",[n,i]=E.useState(!1);return p.jsxs("div",{className:"",children:[p.jsxs("div",{className:"flex items-center",children:[r&&p.jsxs(Ye,{as:"h3",variant:"ui-sm",className:"text-neutral3 flex items-center gap-1 pb-2",children:[p.jsx(He,{size:"sm",children:p.jsx(Vv,{})}),e]}),p.jsx(Ke,{onClick:()=>i(!n),type:"button",className:"ml-auto",children:p.jsx(He,{size:"sm",children:p.jsx(Rd,{className:ie("transition-all",n?"rotate-180":"rotate-0")})})})]}),n&&p.jsx("div",{className:r?"flex flex-col gap-1 [&>*]:border-dashed [&>*]:border-l [&>*]:border-l-border1 [&>*]:pl-4":"",children:t})]})},rPr=({label:e,children:t,onAddItem:r})=>p.jsxs("div",{children:[p.jsxs("div",{className:"flex gap-2 justify-between",children:[p.jsxs(Ye,{as:"h3",variant:"ui-sm",className:"text-neutral3 pb-2 flex items-center gap-1",children:[p.jsx(He,{size:"sm",children:p.jsx(jct,{})}),e]}),p.jsx(xu,{children:p.jsxs($i,{delayDuration:0,children:[p.jsx(Ii,{asChild:!0,children:p.jsx("button",{onClick:r,type:"button",className:"text-neutral3 bg-surface3 rounded-md p-1 hover:bg-surface4 hover:text-neutral6 h-icon-sm w-icon-sm",children:p.jsx(He,{size:"sm",children:p.jsx(_0,{})})})}),p.jsx(gi,{children:"Add item"})]})})]}),p.jsx("div",{className:"flex flex-col gap-1",children:t})]}),nPr=({children:e,onRemove:t})=>p.jsxs("div",{className:"pl-4 border-l border-border1",children:[e,p.jsxs(Ke,{onClick:t,type:"button",children:[p.jsx(He,{size:"sm",children:p.jsx(tG,{})}),"Delete"]})]}),iPr=({inputProps:e,field:t,error:r,id:n})=>{const{key:i,onChange:s,...o}=e,[a,l]=E.useState(()=>Object.entries(t.default||{}).map(([g,v])=>({id:g||qo(),key:g,value:v})));E.useEffect(()=>{a.length===0&&l([{id:qo(),key:"",value:""}])},[a]);const c=E.useCallback(g=>{const v=g.reduce((b,w)=>(w.key&&(b[w.key]=w.value),b),{});s?.({target:{value:v,name:e.name}})},[s,e.name]),u=(g,v,b)=>{l(w=>w.map(S=>S.id===g?{...S,[v]:b}:S))},d=()=>{c(a)},f=()=>{const g=[...a,{id:qo(),key:"",value:""}];l(g),c(g)},m=g=>{const v=a.filter(b=>b.id!==g);v.length===0&&v.push({id:qo(),key:"",value:""}),l(v),c(v)};return p.jsxs("div",{className:"space-y-3",children:[a.map(g=>p.jsxs("div",{className:"relative space-y-2 rounded-lg border p-4",children:[p.jsx(Ke,{type:"button",className:"absolute right-2 top-2",onClick:()=>m(g.id),children:p.jsx(tG,{className:"h-4 w-4"})}),p.jsxs("div",{className:"space-y-2 pt-6",children:[p.jsx(ko,{placeholder:"Key",value:g.key,onChange:v=>u(g.id,"key",v.target.value),onBlur:d}),p.jsx(ko,{placeholder:"Value",value:g.value,onChange:v=>u(g.id,"value",v.target.value),onBlur:d})]})]},g.id)),p.jsxs(Ke,{type:"button",className:"w-full",onClick:f,children:[p.jsx(_0,{className:"mr-2 h-4 w-4"}),"Add Key-Value Pair"]})]})},sPr=({field:e,path:t})=>{const{uiComponents:r}=gJ();return p.jsx(r.ObjectWrapper,{label:H3(e),field:e,children:Object.entries(e.schema).map(([n,i])=>p.jsx(Mv,{field:i,path:[...t,i.key]},`${t.join(".")}.${i.key}`))})},oPr=({field:e,path:t})=>{const{uiComponents:r}=gJ(),{control:n}=H5(),{fields:i,append:s,remove:o}=eJt({control:n,name:t.join(".")}),a=e.schema?.[0]?.type;let l;return a==="object"?l={}:a==="array"?l=[]:l=null,p.jsx(r.ArrayWrapper,{label:H3(e),field:e,onAddItem:()=>s(l),children:i.map((c,u)=>p.jsx(r.ArrayElementWrapper,{onRemove:()=>o(u),index:u,children:p.jsx(Mv,{field:e.schema[0],path:[...t,u.toString()]})},c.id))})},Mv=({field:e,path:t})=>{const{formComponents:r,uiComponents:n}=gJ(),{register:i,formState:{errors:s},getValues:o}=H5(),a=t.join("."),l=NJt(s,t)?.message,c=o(a),u=e.fieldConfig?.fieldWrapper||n.FieldWrapper;let d=()=>p.jsx(n.ErrorMessage,{error:`[AutoForm Configuration Error] No component found for type "${e.type}" nor a fallback`});return e.type==="array"?d=oPr:e.type==="object"?d=sPr:e.type in r?d=r[e.type]:"fallback"in r&&(d=r.fallback),p.jsx(u,{label:H3(e),error:l,id:a,field:e,children:p.jsx(d,{label:H3(e),field:e,value:c,error:l,id:a,path:t,inputProps:{required:e.required,error:l,key:`${a}-input`,...e.fieldConfig?.inputProps,...i(a)}},a)})},aPr=({field:e,inputProps:t})=>{const r=t.name?.split(".")??[];return e.schema?.map((n,i)=>p.jsxs("div",{children:[p.jsx(Mv,{field:n,path:r},r.join(".")),i<(e.schema?.length??0)-1&&p.jsx(Ye,{variant:"ui-xs",className:"text-center",children:"OR"})]},n.key))},lPr=({field:e,path:t})=>{const{watch:r}=H5(),n=t.join("."),i=r(n),o=(e.schema?.flatMap(f=>f.schema||[])||[])?.filter(f=>f.fieldConfig?.customData?.isLiteral)||[],a=o[0],l=o?.reduce((f,m)=>{const g=(m.fieldConfig?.customData?.literalValues??[]).map(v=>[v,v]);return f.options?.push(...g),f},{key:a.key,required:a.required,type:"select",default:a.default,description:a.description,options:[],fieldConfig:a.fieldConfig}),c=e.schema?.reduce((f,m)=>{const g=m.schema?.find(w=>w.fieldConfig?.customData?.isLiteral),v=g?.fieldConfig?.customData?.literalValues?.[0],b=m.schema?.filter(w=>w.key!==g?.key)??[];return v&&(f[v]=b),f},{}),u=e.schema?.filter(f=>!f.schema?.find(g=>g.fieldConfig?.customData?.isLiteral)),d=i?.[l.key];return p.jsxs("div",{children:[p.jsx(Mv,{field:l,path:[...t,l.key]},`${n}.${l.key}`),d&&c?.[d]&&c[d].map(f=>p.jsx(Mv,{field:f,path:[...t,f.key]},`${n}.${f.key}`)),u&&u.map(f=>p.jsx(Mv,{field:f,path:[...t,f.key]},`${n}.${f.key}`))]},e.key)};function E4(e){const t={};for(const r in e){const n=e[r];if(![null,void 0,"",[],{}].includes(n))if(Array.isArray(n)){const s=n.map(o=>{if(typeof o=="object"){const a=E4(o);return Object.keys(a).length>0?a:null}return o}).filter(o=>o!==null);s.length>0&&(t[r]=s)}else if(typeof n=="object"){const i=E4(n);Object.keys(i).length>0&&(t[r]=i)}else t[r]=n}return t}function kg(e){return Function("z",`"use strict";return (${e});`)(Pk)}function cPr({schema:e,onSubmit:t=()=>{},defaultValues:r,values:n,children:i,uiComponents:s,formComponents:o,withSubmit:a=!1,onFormInit:l=()=>{},formProps:c={}}){const u=nJt(e),d=tJt({defaultValues:{...iJt(e),...r},values:n});E.useEffect(()=>{l&&l(d)},[l,d]);const f=async m=>{const g=E4(m),v=e.validateSchema(g);if(v.success)await t(v.data,d);else{d.clearErrors();let b=!1;v.errors?.forEach(w=>{const S=w.path.join(".");d.setError(S,{type:"custom",message:w.message},{shouldFocus:!b}),b=!0;const O=w.path?.slice?.(0,-1);O?.length>0&&d.setError(O.join("."),{type:"custom",message:w.message})})}};return p.jsx(MYt,{...d,children:p.jsx(pJt,{value:{schema:u,uiComponents:s,formComponents:o},children:p.jsxs(s.Form,{onSubmit:d.handleSubmit(f),...c,children:[u.fields.map(m=>p.jsx(Mv,{field:m,path:[m.key]},m.key)),i,a&&p.jsx(s.SubmitButton,{children:"Submit"})]})})})}const uPr={Form:L2r,FieldWrapper:B2r,ErrorMessage:V2r,SubmitButton:U2r,ObjectWrapper:tPr,ArrayWrapper:rPr,ArrayElementWrapper:nPr};function dPr({uiComponents:e,formComponents:t,readOnly:r,...n}){return p.jsx(cPr,{...n,uiComponents:{...uPr,...e},formComponents:{string:i=>p.jsx(Z2r,{...i,inputProps:{...i.inputProps,readOnly:r}}),number:i=>p.jsx(q2r,{...i,inputProps:{...i.inputProps,readOnly:r}}),boolean:i=>p.jsx(H2r,{...i,inputProps:{...i.inputProps,readOnly:r}}),date:i=>p.jsx(K2r,{...i,inputProps:{...i.inputProps,readOnly:r}}),select:i=>p.jsx(ePr,{...i,inputProps:{...i.inputProps,readOnly:r}}),record:i=>p.jsx(iPr,{...i,inputProps:{...i.inputProps,readOnly:r}}),union:i=>p.jsx(aPr,{...i,inputProps:{...i.inputProps,readOnly:r}}),"discriminated-union":i=>p.jsx(lPr,{...i,inputProps:{...i.inputProps,readOnly:r}}),...t}})}const fPr=jZe("text-sm leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),kf=E.forwardRef(({className:e,...t},r)=>p.jsx(fje,{ref:r,className:ie(fPr(),e),...t}));kf.displayName=fje.displayName;function pPr(e,t){if(t?.fieldType)return t.fieldType;if(e instanceof Jf||e instanceof hT)return"object";if(e instanceof Dw)return"number";if(e instanceof Pw)return"boolean";if(e instanceof Tw)return(e._zod.def.checks||[]).some(i=>i._zod.def.check==="string_format"&&i._zod.def.format==="datetime")?"date":"string";if(e instanceof zv||e instanceof _Q)return"select";if(e instanceof $w)return"array";if(e instanceof gN)return"record";if(e instanceof pT)return e._zod.def.options.every(i=>"shape"in i._zod.def?Object.values(i._zod.def.shape).some(s=>s instanceof Ak):!1)?"discriminated-union":"union";if(e instanceof yW)return"discriminated-union";if(e instanceof Ak){const r=e._zod?.def?.values,n=e._def?.value,i=r!==void 0?Array.isArray(r)?r[0]:r:n;return typeof i=="number"?"number":typeof i=="boolean"?"boolean":"string"}return"string"}function Sk(e){if(e instanceof Pk.core.$ZodDefault)return e._zod.def.defaultValue;if(e instanceof Pk.core.$ZodLiteral){const t=e._zod.def.values;return Array.isArray(t)?t[0]:t}else{if("innerType"in e._zod.def)return Sk(e._zod.def.innerType);if("shape"in e._zod.def)return X$(e);if("left"in e._zod.def&&"right"in e._zod.def){const t=e._zod.def.left,r=e._zod.def.right,n="shape"in t?X$(t):Sk(t),i="shape"in r?X$(r):Sk(r);return{...n,...i}}}}function X$(e){const t=e._zod.def.shape,r={};for(const[n,i]of Object.entries(t)){const s=Sk(i);s!==void 0&&(r[n]=s)}return r}function Xm(e,t){const r=qZ(t),n=hje(t);let i=pPr(r,n);const s=Sk(t),o=r._zod.def?.entries;let a=[];o&&(Array.isArray(o)?a=o.map(d=>[d,d]):a=Object.entries(o));let l=[];if((r instanceof As||r instanceof Jf)&&(l=Object.entries(r.shape).map(([d,f])=>Xm(d,f))),(r instanceof iC||r instanceof pT)&&(l=Object.entries(r.def.options).map(([d,f])=>Xm(d,f))),r instanceof sC||r instanceof hT){const d="left"in r.def?r.def.left:null,f="right"in r.def?r.def.right:null;let m=[],g=[];if(d)if("shape"in d&&d.shape)g=Object.entries(d.shape).map(([v,b])=>Xm(v,b));else{const v=Xm(e,d);g=v.schema??[v],i=v.type}if(f)if("shape"in f&&f.shape)m=Object.entries(f.shape).map(([v,b])=>Xm(v,b));else{const v=Xm(e,f);m=v.schema??[v],i=v.type}l=[...g,...m]}(r instanceof ld||r instanceof $w)&&(l=[Xm("0",r._zod.def.element)]);const c=r instanceof Ak,u=c?r._zod.def.values:void 0;return{key:e,type:i,required:!t.optional(),default:s,description:r.description,fieldConfig:c||Object.keys(n??{})?.length>0?{...n,customData:{...n?.customData??{},...c?{isLiteral:c,literalValues:u}:{}}}:void 0,options:a,schema:l}}function qZ(e){return"innerType"in e._zod.def?qZ(e._zod.def.innerType):"schema"in e._zod.def?qZ(e._zod.def.schema):e}function hPr(e){const t=e.shape;return{fields:Object.entries(t).map(([n,i])=>Xm(n,i))}}class mPr extends zJt{_schema;constructor(t){super(t),this._schema=t}getDefaultValues(){return X$(this._schema)}validateSchema(t){const r=E4(t);try{const n=this._schema.safeParse(r);return n.success?{success:!0,data:n.data}:{success:!1,errors:n.error.issues.map(i=>({path:i.path,message:i.message}))}}catch(n){throw n}}parseSchema(){return hPr(this._schema)}}function HZ(e){return e instanceof Jf?Object.keys(e.shape).length===0:e instanceof hT?HZ(e._def.left)||HZ(e._def.right):!1}function zZe({schema:e,onSubmit:t,defaultValues:r,isSubmitLoading:n,submitButtonLabel:i,className:s,readOnly:o,children:a}){const l=!(e instanceof Jf);if(!e)return console.error("no form schema found"),null;const c=f=>HZ(f)?Pk.object({}):l?Pk.object({"":f}):f,d={schema:new mPr(c(e)),onSubmit:async f=>{await t?.(l?f[""]||{}:f)},defaultValues:l?r?{"":r}:void 0:r,formProps:{className:s,noValidate:!0},uiComponents:{SubmitButton:({children:f})=>t?p.jsx(Ke,{variant:"light",className:"w-full",size:"md",disabled:n,children:n?p.jsx(He,{children:p.jsx(Sh,{className:"animate-spin"})}):i||f}):null},formComponents:{Label:({value:f})=>p.jsx(kf,{className:"text-sm font-normal",children:f})},withSubmit:!0,children:a};return p.jsx(dPr,{...d,readOnly:o})}const cte=E.forwardRef(({className:e,...t},r)=>p.jsx(Fje,{className:ie("grid gap-2",e),...t,ref:r}));cte.displayName=Fje.displayName;const fg=E.forwardRef(({className:e,...t},r)=>p.jsx(Lje,{ref:r,className:ie("aspect-square h-4 w-4 rounded-full border border-neutral6 text-neutral6 disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:p.jsx($Kt,{className:"flex items-center justify-center",children:p.jsx(Eut,{className:"h-2.5 w-2.5 fill-current text-current"})})}));fg.displayName=Lje.displayName;const WZ=({schema:e,defaultValues:t,withoutSubmit:r,isSubmitLoading:n,submitButtonLabel:i,onSubmit:s,children:o})=>{const[a,l]=E.useState("form");return p.jsxs("div",{children:[p.jsx(cte,{disabled:n,value:a,onValueChange:c=>l(c),className:"pb-4",children:p.jsxs("div",{className:"flex flex-row gap-4",children:[p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx(fg,{value:"form",id:"form"}),p.jsx(kf,{htmlFor:"form",className:"!text-neutral3 text-ui-sm",children:"Form"})]}),p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx(fg,{value:"json",id:"json"}),p.jsx(kf,{htmlFor:"json",className:"!text-neutral3 text-ui-sm",children:"JSON"})]})]})}),p.jsx("div",{className:ie({"opacity-50 pointer-events-none":n}),children:a==="form"?p.jsx(zZe,{schema:e,defaultValues:t,isSubmitLoading:n,submitButtonLabel:i,onSubmit:r?void 0:s,children:o}):p.jsx(gPr,{schema:e,defaultValues:t,isSubmitLoading:n,submitButtonLabel:i,onSubmit:s,withoutSubmit:r,children:o})})]})},gPr=({schema:e,defaultValues:t,isSubmitLoading:r,submitButtonLabel:n,onSubmit:i,withoutSubmit:s,children:o})=>{const[a,l]=E.useState([]),[c,u]=E.useState(()=>JSON.stringify(t??{},null,2)),d=()=>{l([]);try{const m=e.safeParse(JSON.parse(c));m.success?i(m.data):l(m.error.issues.map(g=>`[${g.path.join(".")}] ${g.message}`))}catch{l(["Invalid JSON provided"])}};let f={};try{f=JSON.parse(c)}catch{f={}}return p.jsxs("div",{className:"flex flex-col gap-4",children:[a.length>0&&p.jsxs("div",{className:"border border-accent2 rounded-lg p-2",children:[p.jsxs(Ye,{as:"p",variant:"ui-md",className:"text-accent2 font-semibold",children:[a.length," errors found"]}),p.jsx("ul",{className:"list-disc list-inside",children:a.map((m,g)=>p.jsx("li",{className:"text-ui-sm text-accent2",children:m},g))})]}),p.jsx(Hc,{data:f,onChange:u}),o,s?null:p.jsx(Ke,{variant:"light",onClick:d,className:"w-full",size:"lg",children:r?p.jsx(Sh,{className:"animate-spin"}):n})]})},qC=async e=>await zje.format(e,{semi:!1,parser:"json",printWidth:80,tabWidth:2,plugins:[B9e,O8e]}),HC=e=>{try{const t=JSON.parse(e);return!!t&&typeof t=="object"}catch{return!1}},r_="text-neutral3 hover:text-neutral6",xxe=e=>{try{return e==null?"{}":JSON.stringify(e,null,2)}catch{return"{}"}},Vz=({label:e,value:t,onChange:r,helperText:n,exampleCode:i})=>{const s=X0(),{handleCopy:o}=Gf({text:t}),{handleCopy:a}=Gf({text:i??"{}"}),[l,c]=E.useState(null),[u,d]=E.useState(!1),[f,m]=E.useState(!1),g=async()=>{if(c(null),!t.trim()){r("{}");return}if(!HC(t)){c("Invalid JSON");return}try{const v=await qC(t);r(v)}catch{c("Unable to format JSON")}};return p.jsxs(p.Fragment,{children:[f&&p.jsxs("div",{className:"border border-border1 rounded-lg bg-surface3 p-3 space-y-2",children:[p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsxs(Ye,{as:"p",variant:"ui-sm",className:"text-neutral3",children:["Example ",e]}),p.jsxs($i,{children:[p.jsx(Ii,{asChild:!0,children:p.jsx("button",{type:"button",onClick:a,className:r_,"aria-label":"Copy example JSON",children:p.jsx(He,{children:p.jsx(nu,{})})})}),p.jsx(gi,{children:"Copy example JSON"})]})]}),p.jsx(su,{value:i,theme:s,extensions:[Gc],className:"h-[150px] w-full overflow-y-scroll bg-surface3 rounded-lg overflow-scroll p-3"})]}),p.jsxs(z6,{className:"border border-border1 rounded-lg bg-surface3",open:u,onOpenChange:d,children:[p.jsxs("div",{className:"flex items-center justify-between w-full px-3",children:[p.jsxs("div",{children:[p.jsx(Ye,{as:"label",variant:"ui-md",className:"text-neutral3",children:e}),n&&p.jsx(Ye,{variant:"ui-xs",className:"text-neutral3",children:n})]}),p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsxs($i,{children:[p.jsx(Ii,{asChild:!0,children:p.jsx("button",{type:"button",onClick:g,className:r_,"aria-label":"Format JSON",children:p.jsx(He,{children:p.jsx(Vv,{})})})}),p.jsx(gi,{children:"Format JSON"})]}),p.jsxs($i,{children:[p.jsx(Ii,{asChild:!0,children:p.jsx("button",{type:"button",onClick:o,className:r_,"aria-label":"Copy JSON",children:p.jsx(He,{children:p.jsx(nu,{})})})}),p.jsx(gi,{children:"Copy JSON"})]}),i&&p.jsxs($i,{children:[p.jsx(Ii,{asChild:!0,children:p.jsx("button",{type:"button",onClick:()=>m(!f),className:r_,"aria-label":f?"Hide example JSON":"View example JSON",children:p.jsx(He,{children:f?p.jsx(Fut,{}):p.jsx(zx,{})})})}),p.jsx(gi,{children:"View example JSON"})]}),p.jsx(B6,{asChild:!0,children:p.jsx("button",{type:"button",className:r_,"aria-label":u?`Collapse ${e}`:`Expand ${e}`,children:p.jsx(He,{className:ie("transition-transform",u?"rotate-0":"-rotate-90"),children:p.jsx(Rd,{})})})})]})]}),p.jsxs(V6,{className:"space-y-2",children:[p.jsx(su,{value:t,onChange:r,theme:s,extensions:[Gc],className:"h-[260px] overflow-y-scroll bg-surface3 rounded-lg overflow-hidden p-3"}),l&&p.jsx(Ye,{variant:"ui-sm",className:"text-accent2",children:l})]})]})]})},Uz=({stepKey:e,closeModal:t,isPerStepRun:r,isContinueRun:n,buttonText:i="Start time travel",inputData:s})=>{const{result:o,workflow:a,timeTravelWorkflowStream:l,runId:c,workflowId:u,setDebugMode:d}=E.useContext(mp),{requestContext:f}=wi(),m=s?{payload:s}:o?.steps?.[e],[g,v]=E.useState(()=>"{}"),[b,w]=E.useState(()=>"{}"),[S,O]=E.useState(()=>"{}"),[k,C]=E.useState(null),[T,P]=E.useState(!1),A=a?.allSteps?.[e],{schema:R}=E.useMemo(()=>{if(!A?.inputSchema)return{schema:Dk(f1(),dI())};try{const z=$v(A.inputSchema),U=a?.stateSchema?kg(Sg($v(a.stateSchema))):null,V=kg(Sg(z));return{schema:U?Iw({inputData:V,initialState:U.optional()}):V,schemaError:null}}catch(z){return console.error("Failed to parse step schema",z),{schema:Dk(f1(),dI())}}},[A?.inputSchema,a?.stateSchema]),M=async z=>{C(null),P(!0);try{const U=g.trim()?JSON.parse(g):{},V=b.trim()?JSON.parse(b):{},L=S.trim()?JSON.parse(S):{},{initialState:Q,inputData:F}=z??{},N=a?.stateSchema?F:z,I={runId:c,workflowId:u,step:e,inputData:N,initialState:Q,resumeData:Object.keys(U)?.length>0?U:void 0,context:Object.keys(V)?.length>0?V:void 0,nestedStepsContext:Object.keys(L)?.length>0?L:void 0,requestContext:f,...n?{perStep:!1}:{}};n&&d(!1),l(I),t()}catch(U){console.error("Invalid JSON provided",U),C(U instanceof Error?U.message:"Error time traveling workflow")}finally{P(!1)}};return p.jsx(xu,{children:p.jsxs("div",{className:"space-y-4",children:[p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsx(Ye,{as:"p",variant:"ui-lg",className:"text-neutral3",children:"Input data"}),p.jsxs(Ye,{variant:"ui-xs",className:"text-neutral3",children:["Step: ",e]})]}),p.jsx(WZ,{schema:R,defaultValues:m?.payload,isSubmitLoading:T,submitButtonLabel:i,onSubmit:M,children:p.jsxs("div",{className:"space-y-4 pb-4",children:[r||n?null:p.jsxs(p.Fragment,{children:[p.jsx(Vz,{label:"Resume Data (JSON)",value:g,onChange:v,helperText:"Provide any resume payloads that should be passed to the step."}),p.jsx(Vz,{label:"Context (JSON)",value:b,onChange:w,helperText:"Only include top level steps (no nested workflow steps) that are required in the time travel execution.",exampleCode:xxe({stepId:{status:"success",payload:{value:"test value"},output:{value:"test output"}}})}),p.jsx(Vz,{label:"Nested Step Context (JSON)",value:S,onChange:O,helperText:"Includes nested workflow steps that are required in the time travel execution.",exampleCode:xxe({nestedWorkflowId:{stepId:{status:"success",payload:{value:"test value"},output:{value:"test output"}}}})})]}),k&&p.jsx(Ye,{variant:"ui-sm",className:"text-accent2",children:k})]})})]})})},ute=({input:e,output:t,resumeData:r,suspendOutput:n,error:i,tripwire:s,mapConfig:o,stepName:a,stepId:l,onShowNestedGraph:c,status:u,stepKey:d,stepsFlow:f})=>{const[m,g]=E.useState(!1),[v,b]=E.useState(!1),[w,S]=E.useState(!1),[O,k]=E.useState(!1),[C,T]=E.useState(!1),[P,A]=E.useState(!1),[R,M]=E.useState(!1),[z,U]=E.useState(!1),{withoutTimeTravel:V,debugMode:L,result:Q,runSnapshot:F,timeTravelWorkflowStream:N,runId:I,workflowId:H,setDebugMode:B}=E.useContext(mp),{showMapConfig:J,stepDetail:q,closeStepDetail:j}=L6(),{requestContext:W}=wi(),K=Q?.status??F?.status,ne="max-w-4xl w-full",X=!V&&d&&!o&&K!=="running"&&K!=="paused",te=d&&L&&K==="paused",ue=E.useMemo(()=>{if(!d||!te)return;const lt=f?.[d]??[];if(lt.length===0)return;if(lt.length>1)return{hasMultiSteps:!0,input:lt.reduce((ur,le)=>(Q?.steps?.[le]?.status==="success"&&(ur[le]=Q?.steps?.[le].output),ur),{})};const wr=lt[0];if(Q?.steps?.[wr]?.status==="success")return{hasMultiSteps:!1,input:Q?.steps?.[wr].output}},[d,f,te,Q]),de=te&&ue&&!Q?.steps[d],De=q?.type==="map-config"&&q?.stepName===a,we=q?.type==="nested-graph"&&q?.stepName===a,Ae="ring-2 ring-accent1 ring-offset-1 ring-offset-transparent",Fe=()=>{De?j():J({stepName:a,stepId:l,mapConfig:o})},rt=()=>{we?j():c?.()},yt=lt=>{const wr={runId:I,workflowId:H,step:d,inputData:ue?.hasMultiSteps?void 0:ue?.input,requestContext:W,...lt?{perStep:!1}:{},...ue?.hasMultiSteps?{context:Object.keys(ue.input)?.reduce((ur,le)=>(ur[le]={output:ue.input[le]},ur),{})}:{}};lt&&B(!1),N(wr)};return p.jsx(p.Fragment,{children:(e||t||i||s||o||r||c||X||de)&&p.jsxs("div",{className:ie("flex flex-wrap items-center bg-surface4 border-t border-border1 px-2 py-1 gap-2 rounded-b-lg",u==="success"&&"bg-accent1Dark",u==="failed"&&"bg-accent2Dark",u==="tripwire"&&"bg-amber-900/40 border-amber-500/20",u==="suspended"&&"bg-accent3Dark",u==="waiting"&&"bg-accent5Dark",u==="running"&&"bg-accent6Dark"),children:[c&&p.jsx(Ke,{onClick:rt,className:ie(we&&Ae),size:"sm",children:"View nested graph"}),X&&p.jsxs(p.Fragment,{children:[p.jsx(Ke,{onClick:()=>A(!0),size:"sm",children:"Time travel"}),p.jsx(Uo,{open:P,onOpenChange:A,children:p.jsxs(bo,{className:ne,children:[p.jsxs(xo,{children:[p.jsxs(So,{children:["Time travel to ",d]}),p.jsx(Oo,{children:"Time travel to a specific workflow step"})]}),p.jsx(wo,{className:"max-h-[600px]",children:p.jsx(Uz,{stepKey:d,closeModal:()=>A(!1)})})]})})]}),de&&p.jsxs(p.Fragment,{children:[p.jsx(Ke,{onClick:()=>{o?yt():U(!0)},size:"sm",children:"Run step"}),p.jsx(Uo,{open:z,onOpenChange:U,children:p.jsxs(bo,{className:ne,children:[p.jsxs(xo,{children:[p.jsxs(So,{children:["Run step ",d]}),p.jsx(Oo,{children:"Run a specific workflow step"})]}),p.jsx(wo,{className:"max-h-[600px]",children:p.jsx(Uz,{stepKey:d,closeModal:()=>U(!1),isPerStepRun:!0,buttonText:"Run step",inputData:ue?.input})})]})}),p.jsx(Ke,{onClick:()=>{o?yt(!0):M(!0)},size:"sm",children:"Continue run"}),p.jsx(Uo,{open:R,onOpenChange:M,children:p.jsxs(bo,{className:ne,children:[p.jsxs(xo,{children:[p.jsxs(So,{children:["Continue run ",d]}),p.jsx(Oo,{children:"Continue the workflow run from this step"})]}),p.jsx(wo,{className:"max-h-[600px]",children:p.jsx(Uz,{stepKey:d,closeModal:()=>M(!1),isContinueRun:!0,buttonText:"Continue run",inputData:ue?.input})})]})})]}),o&&p.jsx(Ke,{onClick:Fe,className:ie(De&&Ae),size:"sm",children:"Map config"}),e&&p.jsxs(p.Fragment,{children:[p.jsx(Ke,{onClick:()=>g(!0),size:"sm",children:"Input"}),p.jsx(Uo,{open:m,onOpenChange:g,children:p.jsxs(bo,{className:ne,children:[p.jsxs(xo,{children:[p.jsxs(So,{children:[a," input"]}),p.jsx(Oo,{children:"View the input data for this step"})]}),p.jsx(wo,{children:p.jsx(mx,{data:e})})]})})]}),r&&p.jsxs(p.Fragment,{children:[p.jsx(Ke,{onClick:()=>S(!0),size:"sm",children:"Resume data"}),p.jsx(Uo,{open:w,onOpenChange:S,children:p.jsxs(bo,{className:ne,children:[p.jsxs(xo,{children:[p.jsxs(So,{children:[a," resume data"]}),p.jsx(Oo,{children:"View the resume data for this step"})]}),p.jsx(wo,{children:p.jsx(mx,{data:r})})]})})]}),(t??n)&&p.jsxs(p.Fragment,{children:[p.jsx(Ke,{onClick:()=>b(!0),size:"sm",children:"Output"}),p.jsx(Uo,{open:v,onOpenChange:b,children:p.jsxs(bo,{className:ne,children:[p.jsxs(xo,{children:[p.jsxs(So,{children:[a," output"]}),p.jsx(Oo,{children:"View the output data for this step"})]}),p.jsx(wo,{children:p.jsx(mx,{data:t??n})})]})})]}),i&&p.jsxs(p.Fragment,{children:[p.jsx(Ke,{onClick:()=>k(!0),size:"sm",children:"Error"}),p.jsx(Uo,{open:O,onOpenChange:k,children:p.jsxs(bo,{className:ne,children:[p.jsxs(xo,{children:[p.jsxs(So,{children:[a," error"]}),p.jsx(Oo,{children:"View the error details for this step"})]}),p.jsx(wo,{children:p.jsx(mx,{data:i})})]})})]}),s&&p.jsxs(p.Fragment,{children:[p.jsx(Ke,{onClick:()=>T(!0),className:"text-amber-400 hover:text-amber-300",size:"sm",children:"Tripwire"}),p.jsx(Uo,{open:C,onOpenChange:T,children:p.jsxs(bo,{className:ne,children:[p.jsxs(xo,{children:[p.jsxs(So,{children:[a," tripwire"]}),p.jsx(Oo,{children:"View the tripwire details for this step"})]}),p.jsx(wo,{children:p.jsx(mx,{data:{reason:s.reason,retry:s.retry,metadata:s.metadata,processorId:s.processorId}})})]})})]})]})})};function BZe({data:e}){const{conditions:t,previousStepId:r,nextStepId:n,withoutTopHandle:i}=e,[s,o]=E.useState(!0),[a,l]=E.useState(!1),c=t[0]?.type,u=(t.some(S=>S.fnString)||t?.length>1)&&c!=="else",{steps:d}=kD(),f=d[r],m=d[n],g=f?.status==="failed"&&f?.tripwire!==void 0,v=g?"tripwire":f?.status,{icon:b,color:w}=gxe(c);return p.jsxs(p.Fragment,{children:[!i&&p.jsx(gl,{type:"target",position:jt.Top,style:{visibility:"hidden"}}),p.jsxs("div",{"data-workflow-node":!0,"data-workflow-step-status":v,"data-testid":"workflow-condition-node",className:ie("bg-surface3 rounded-lg w-[300px] border border-border1",v==="success"&&m&&"bg-accent1Darker",v==="failed"&&m&&"bg-accent2Darker",v==="tripwire"&&m&&"bg-amber-950/40 border-amber-500/30",!f&&!!m?.status&&"bg-accent1Darker"),children:[p.jsxs(z6,{open:u?s:!0,onOpenChange:S=>{u&&o(S)},children:[p.jsxs(B6,{className:"flex items-center justify-between w-full px-3 py-2",children:[p.jsx(sr,{icon:b?p.jsx(b,{className:"text-current",...w?{style:{color:w}}:{}}):null,children:c?.toUpperCase()}),u&&p.jsx(He,{children:p.jsx(Rd,{className:ie("transition-transform text-neutral3",{"transform rotate-180":s})})})]}),c==="else"?null:p.jsx(V6,{className:"flex flex-col gap-2 pb-2",children:t.map((S,O)=>{const k=S.conj||c,{icon:C,color:T}=gxe(k),P=O===0?null:p.jsx(sr,{icon:C?p.jsx(C,{className:"text-current",...T?{style:{color:T}}:{}}):null,children:S.conj?.toLocaleUpperCase()||"WHEN"});return S.fnString?p.jsxs("div",{className:"px-3",children:[p.jsx(cme,{theme:oQ.oneDark,code:String(S.fnString).trim(),language:"javascript",children:({className:A,style:R,tokens:M,getLineProps:z,getTokenProps:U})=>p.jsx("pre",{className:ie("relative font-mono p-3 w-full cursor-pointer rounded-lg text-xs !bg-surface4 whitespace-pre-wrap break-words",A,v==="success"&&m&&"!bg-accent1Dark",v==="failed"&&m&&"!bg-accent2Dark",v==="tripwire"&&m&&"!bg-amber-900/40"),onClick:()=>l(!0),style:R,children:M.map((V,L)=>p.jsxs("div",{...z({line:V}),children:[p.jsx("span",{className:"inline-block mr-2 text-neutral3",children:L+1}),V.map((Q,F)=>p.jsx("span",{...U({token:Q})},F))]},L))})}),p.jsx(Uo,{open:a,onOpenChange:l,children:p.jsxs(bo,{className:"max-w-[30rem]",children:[p.jsxs(xo,{children:[p.jsx(So,{className:"sr-only",children:"Condition Function"}),p.jsx(Oo,{children:"View the condition function code"})]}),p.jsx(wo,{children:p.jsx(_D,{className:"w-full",maxHeight:"400px",children:p.jsx(cme,{theme:oQ.oneDark,code:String(S.fnString).trim(),language:"javascript",children:({className:A,style:R,tokens:M,getLineProps:z,getTokenProps:U})=>p.jsx("pre",{className:`${A} relative font-mono text-sm overflow-x-auto p-3 w-full rounded-lg mt-2 dark:bg-zinc-800`,style:{...R,backgroundColor:"#121212",padding:"0 0.75rem 0 0"},children:M.map((V,L)=>p.jsxs("div",{...z({line:V}),children:[p.jsx("span",{className:"inline-block mr-2 text-neutral3",children:L+1}),V.map((Q,F)=>p.jsx("span",{...U({token:Q})},F))]},L))})})})})]})})]},`${S.fnString}-${O}`):p.jsx(E.Fragment,{children:S.ref?.step?p.jsxs("div",{className:"flex items-center gap-1",children:[P,p.jsxs(Ye,{variant:"ui-xs",className:" text-neutral3 flex-1",children:[S.ref.step.id||S.ref.step,"'s ",S.ref.path," ",Object.entries(S.query).map(([A,R])=>`${A} ${String(R)}`)]})]}):null},`${S.ref?.path}-${O}`)})})]}),p.jsx(ute,{stepName:n,input:f?.output,mapConfig:e.mapConfig,tripwire:g?f?.tripwire:void 0,status:m?v:void 0})]}),p.jsx(gl,{type:"source",position:jt.Bottom,style:{visibility:"hidden"}})]})}const yPr=(e,t)=>Number(e.toPrecision(t)),VZe=({startedAt:e,endedAt:t})=>{const[r,n]=E.useState(e);E.useEffect(()=>{const s=setInterval(()=>{n(Date.now())},100);return()=>clearInterval(s)},[e]);const i=t?t-e:r-e;return p.jsxs("span",{className:"text-xs text-neutral3",children:[yPr(i,3),"ms"]})};function UZe({data:e,parentWorkflowName:t,stepsFlow:r}){const{steps:n}=kD(),{label:i,stepId:s,description:o,withoutTopHandle:a,withoutBottomHandle:l,mapConfig:c,duration:u,date:d,isParallel:f,canSuspend:m,isForEach:g}=e,v=t?`${t}.${s||i}`:s||i,b=n[v],w=b?.status==="failed"&&b?.tripwire!==void 0,S=w?"tripwire":b?.status,{isSleepNode:O,isForEachNode:k,isMapNode:C,hasSpecialBadge:T}=NZe({duration:u,date:d,isForEach:g,mapConfig:c,canSuspend:m,isParallel:f});return p.jsxs(p.Fragment,{children:[!a&&p.jsx(gl,{type:"target",position:jt.Top,style:{visibility:"hidden"}}),p.jsxs("div",{"data-workflow-node":!0,"data-workflow-step-status":S??"idle","data-testid":"workflow-default-node",className:ie("bg-surface3 rounded-lg w-[274px] border border-border1",T?"pt-0":"pt-2",S==="success"&&"bg-accent1Darker",S==="failed"&&"bg-accent2Darker",S==="tripwire"&&"bg-amber-950/40 border-amber-500/30",S==="suspended"&&"bg-accent3Darker",S==="waiting"&&"bg-accent5Darker",S==="running"&&"bg-accent6Darker"),children:[T&&p.jsxs("div",{className:"px-3 pt-2 pb-1 flex gap-1.5 flex-wrap",children:[O&&p.jsx(sr,{icon:d?p.jsx(Gs.sleepUntil,{className:"text-current",style:{color:gs.sleep}}):p.jsx(Gs.sleep,{className:"text-current",style:{color:gs.sleep}}),children:d?"SLEEP UNTIL":"SLEEP"}),m&&p.jsx(sr,{icon:p.jsx(Gs.suspend,{className:"text-current",style:{color:gs.suspend}}),children:"SUSPEND/RESUME"}),f&&p.jsx(sr,{icon:p.jsx(Gs.parallel,{className:"text-current",style:{color:gs.parallel}}),children:"PARALLEL"}),k&&p.jsx(sr,{icon:p.jsx(Gs.forEach,{className:"text-current",style:{color:gs.forEach}}),children:"FOREACH"}),C&&p.jsx(sr,{icon:p.jsx(Gs.map,{className:"text-current",style:{color:gs.map}}),children:"MAP"})]}),p.jsxs("div",{className:ie("flex items-center gap-2 px-3",!o&&"pb-2"),children:[p.jsxs(He,{children:[S==="tripwire"&&p.jsx(OT,{className:"text-amber-400"}),S==="failed"&&p.jsx(tte,{className:"text-accent2"}),S==="success"&&p.jsx(ete,{className:"text-accent1"}),S==="suspended"&&p.jsx(lTe,{className:"text-accent3"}),S==="waiting"&&p.jsx(JW,{className:"text-accent5"}),S==="running"&&p.jsx(Sh,{className:"text-accent6 animate-spin"}),!b&&p.jsx(YW,{className:"text-neutral2"})]}),p.jsxs(Ye,{variant:"ui-lg",className:"text-neutral6 font-medium inline-flex items-center gap-1 justify-between w-full",children:[i," ",b?.startedAt&&p.jsx(VZe,{startedAt:b.startedAt,endedAt:b.endedAt})]})]}),o&&p.jsx(Ye,{variant:"ui-sm",className:"text-neutral3 px-3 pb-2",children:o}),u&&p.jsxs(Ye,{variant:"ui-sm",className:"text-neutral3 px-3 pb-2",children:["sleeps for ",p.jsxs("strong",{children:[u,"ms"]})]}),d&&p.jsxs(Ye,{variant:"ui-sm",className:"text-neutral3 px-3 pb-2",children:["sleeps until ",p.jsx("strong",{children:new Date(d).toLocaleString()})]}),p.jsx(ute,{stepName:i,stepId:s,input:b?.input,resumeData:b?.resumeData,output:b?.output,suspendOutput:b?.suspendOutput,error:w?void 0:b?.error,tripwire:w?b?.tripwire:void 0,mapConfig:c,status:S,stepKey:v,stepsFlow:r})]}),!l&&p.jsx(gl,{type:"source",position:jt.Bottom,style:{visibility:"hidden",color:"red"}})]})}function QZe({data:e}){const{steps:t}=e,[r,n]=E.useState(!0);return p.jsxs(z6,{open:r,onOpenChange:n,className:ie("bg-surface4 rounded-md w-[274px] flex flex-col p-2 gap-2"),children:[p.jsx(gl,{type:"target",position:jt.Top,style:{visibility:"hidden"}}),p.jsxs(B6,{className:"flex items-center justify-between w-full",children:[p.jsx(sr,{icon:p.jsx(Gs.after,{className:"text-current",style:{color:gs.after}}),children:"AFTER"}),p.jsx(He,{children:p.jsx(Rd,{className:ie("transition-transform text-neutral3",{"transform rotate-180":r})})})]}),p.jsx(V6,{className:"flex flex-col gap-2",children:t.map(i=>p.jsxs("div",{className:"text-sm bg-surface5 flex items-center gap-1.5 rounded-sm p-2",children:[p.jsx(nTe,{className:"text-current w-4 h-4"}),p.jsx(Ye,{variant:"ui-xs",className:"text-neutral6 capitalize",children:i})]},i))}),p.jsx(gl,{type:"source",position:jt.Bottom,style:{visibility:"hidden"}})]})}function ZZe({data:e}){const{result:t}=e;return p.jsxs("div",{"data-testid":"workflow-loop-result-node","data-workflow-step-status":t?"success":"failed",className:ie("bg-surface4 rounded-md w-[274px]"),"data-workflow-node":!0,children:[p.jsx(gl,{type:"target",position:jt.Top,style:{visibility:"hidden"}}),p.jsx("div",{className:"p-2",children:p.jsxs("div",{className:"text-sm bg-surface5 flex items-center gap-1.5 rounded-sm p-2",children:[t?p.jsx(dut,{className:"text-current w-4 h-4"}):p.jsx(JCe,{className:"text-current w-4 h-4"}),p.jsx(Ye,{variant:"ui-xs",className:"text-neutral6 capitalize",children:String(t)})]})}),p.jsx(gl,{type:"source",position:jt.Bottom,style:{visibility:"hidden"}})]})}function qZe({data:e,parentWorkflowName:t,stepsFlow:r}){const{steps:n}=kD(),{showNestedGraph:i}=L6(),{label:s,stepId:o,description:a,withoutTopHandle:l,withoutBottomHandle:c,stepGraph:u,mapConfig:d,isParallel:f,canSuspend:m,isForEach:g}=e,v=t?`${t}.${s}`:s,b=t?`${t}.${o||s}`:o||s,w=n[b],S=w?.status==="failed"&&w?.tripwire!==void 0,O=S?"tripwire":w?.status,{isForEachNode:k,isMapNode:C,isNestedWorkflow:T,hasSpecialBadge:P}=NZe({isForEach:g,mapConfig:d,canSuspend:m,isParallel:f,stepGraph:u});return p.jsxs(p.Fragment,{children:[!l&&p.jsx(gl,{type:"target",position:jt.Top,style:{visibility:"hidden"}}),p.jsxs("div",{"data-testid":"workflow-nested-node","data-workflow-node":!0,"data-workflow-step-status":O,className:ie("bg-surface3 rounded-lg w-[274px] border border-border1",P?"pt-0":"pt-2",O==="success"&&"bg-accent1Darker",O==="failed"&&"bg-accent2Darker",O==="tripwire"&&"bg-amber-950/40 border-amber-500/30",O==="suspended"&&"bg-accent3Darker",O==="waiting"&&"bg-accent5Darker",O==="running"&&"bg-accent6Darker"),children:[P&&p.jsxs("div",{className:"px-3 pt-2 pb-1 flex gap-1.5 flex-wrap",children:[m&&p.jsx(sr,{icon:p.jsx(Gs.suspend,{className:"text-current",style:{color:gs.suspend}}),children:"SUSPEND/RESUME"}),f&&p.jsx(sr,{icon:p.jsx(Gs.parallel,{className:"text-current",style:{color:gs.parallel}}),children:"PARALLEL"}),T&&p.jsx(sr,{icon:p.jsx(Gs.workflow,{className:"text-current",style:{color:gs.workflow}}),children:"WORKFLOW"}),k&&p.jsx(sr,{icon:p.jsx(Gs.forEach,{className:"text-current",style:{color:gs.forEach}}),children:"FOREACH"}),C&&p.jsx(sr,{icon:p.jsx(Gs.map,{className:"text-current",style:{color:gs.map}}),children:"MAP"})]}),p.jsxs("div",{className:ie("flex items-center gap-2 px-3",!a&&"pb-2"),children:[p.jsxs(He,{children:[O==="failed"&&p.jsx(tte,{className:"text-accent2"}),O==="success"&&p.jsx(ete,{className:"text-accent1"}),O==="tripwire"&&p.jsx(OT,{className:"text-amber-400"}),O==="suspended"&&p.jsx(lTe,{className:"text-accent3"}),O==="waiting"&&p.jsx(JW,{className:"text-accent5"}),O==="running"&&p.jsx(Sh,{className:"text-accent6 animate-spin"}),!w&&p.jsx(YW,{className:"text-neutral2"})]}),p.jsxs(Ye,{variant:"ui-lg",className:"text-neutral6 font-medium inline-flex items-center gap-1 justify-between w-full",children:[s," ",w?.startedAt&&p.jsx(VZe,{startedAt:w.startedAt,endedAt:w.endedAt})]})]}),a&&p.jsx(Ye,{variant:"ui-sm",className:"text-neutral3 px-3 pb-2",children:a}),p.jsx(ute,{stepName:s,stepId:o,input:w?.input,resumeData:w?.resumeData,output:w?.output,suspendOutput:w?.suspendOutput,error:w?.error,tripwire:S?w?.tripwire:void 0,mapConfig:d,onShowNestedGraph:()=>i({label:s,fullStep:v,stepGraph:u}),status:O,stepKey:b,stepsFlow:r})]}),!c&&p.jsx(gl,{type:"source",position:jt.Bottom,style:{visibility:"hidden"}})]})}const C4=E.forwardRef(({className:e,...t},r)=>p.jsxs(aLe,{ref:r,className:ie("relative flex w-full touch-none select-none items-center",e),...t,children:[p.jsx(Khr,{className:"relative h-1.5 w-full grow overflow-hidden rounded-full bg-neutral6/20",children:p.jsx(emr,{className:"absolute h-full bg-neutral6/50"})}),p.jsx(tmr,{className:"block h-4 w-4 rounded-full border border-neutral6/50 bg-white shadow transition-colors disabled:pointer-events-none disabled:opacity-50"})]}));C4.displayName=aLe.displayName;const dte=E.forwardRef(({className:e,...t})=>{const{zoom:r}=qQt(),{zoomTo:n,zoomIn:i,zoomOut:s,fitView:o}=$5();return p.jsxs(XT,{className:ie("flex gap-1 rounded-md bg-surface2 p-1 text-neutral6",e),...t,children:[p.jsx(Ke,{onClick:()=>s({duration:300}),children:p.jsx(ydt,{className:"h-4 w-4"})}),p.jsx(C4,{className:"w-[140px]",value:[r],min:.01,max:1,step:.01,onValueChange:a=>{n(a[0])}}),p.jsx(Ke,{onClick:()=>i({duration:300}),children:p.jsx(_0,{className:"h-4 w-4"})}),p.jsxs(Ke,{className:"min-w-20 tabular-nums",onClick:()=>n(1,{duration:300}),children:[(100*r).toFixed(0),"%"]}),p.jsx(Ke,{onClick:()=>o({duration:300,maxZoom:1}),children:p.jsx(pdt,{className:"h-4 w-4"})})]})});dte.displayName="ZoomSlider";function vPr({workflow:e}){const{nodes:t,edges:r}=IZe(e),[n,i,s]=X6e(t),[o]=Y6e(r),{steps:a}=kD(),l=E.useMemo(()=>r.reduce((u,d)=>{if(d.data){const f=d.data.nextStepId,m=d.data.previousStepId;return{...u,[f]:[...new Set([...u[f]||[],m])]}}return u},{}),[r]),c={"default-node":u=>p.jsx(UZe,{...u,stepsFlow:l}),"condition-node":BZe,"after-node":QZe,"loop-result-node":ZZe,"nested-node":u=>p.jsx(qZe,{...u,stepsFlow:l})};return p.jsx("div",{className:"w-full h-full bg-surface1",children:p.jsxs(G6e,{nodes:n,edges:o.map(u=>({...u,style:{...u.style,stroke:a[u.data?.previousStepId]?.status==="success"&&a[u.data?.nextStepId]||u.data?.conditionNode&&!a[u.data?.previousStepId]&&a[u.data?.nextStepId]?.status?"#22c55e":void 0}})),nodeTypes:c,onNodesChange:s,fitView:!0,fitViewOptions:{maxZoom:1},minZoom:.01,maxZoom:1,children:[p.jsx(dte,{position:"bottom-left"}),p.jsx(K6e,{variant:$f.Dots,gap:12,size:.5})]})})}function HZe({workflowId:e,workflow:t,isLoading:r}){const{snapshot:n}=E.useContext(mp);return r?p.jsx("div",{className:"p-4",children:p.jsx(Rr,{className:"h-full"})}):t?p.jsx(AY,{children:p.jsx(vPr,{workflow:n?.serializedStepGraph?{stepGraph:n?.serializedStepGraph}:t})}):p.jsx("div",{className:"grid h-full place-items-center",children:p.jsxs("div",{className:"flex flex-col items-center gap-2",children:[p.jsx(Lx,{}),p.jsxs("div",{children:["We couldn't find ",M2r(e)," workflow."]})]})})}const bPr=({header:e,children:t,footer:r})=>{const[n,i]=E.useState(!1);return p.jsxs("div",{className:"rounded-lg border border-border1 bg-surface4",children:[p.jsxs("button",{className:"py-1 px-2 flex items-center gap-3 justify-between w-full",onClick:()=>i(s=>!s),children:[p.jsx("div",{className:"w-full",children:e}),p.jsx(He,{children:p.jsx(Rd,{className:ie("text-neutral3 transition-transform -rotate-90",n&&"rotate-0")})})]}),t&&n&&p.jsx("div",{className:"border-t border-border1 max-h-[400px] overflow-y-auto",children:t}),r&&p.jsx("div",{className:"py-1 px-2 border-t border-border1",children:r})]})},xPr=({stepId:e,status:t,result:r,tripwire:n})=>{const[i,s]=E.useState(!1),o=t==="tripwire",a=!!(n&&(n.retry!==void 0||n.metadata!==void 0||n.processorId!==void 0));return p.jsx(bPr,{header:p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsxs(He,{children:[t==="success"&&p.jsx(ete,{className:"text-accent1"}),t==="failed"&&p.jsx(tte,{className:"text-accent2"}),t==="tripwire"&&p.jsx(OT,{className:"text-amber-400"}),t==="suspended"&&p.jsx(XCe,{className:"text-accent3"}),t==="waiting"&&p.jsx(JW,{className:"text-accent5"}),t==="running"&&p.jsx(Sh,{className:"text-accent6 animate-spin"})]}),p.jsx(Ye,{as:"span",variant:"ui-lg",className:"text-neutral6 font-medium",children:e.charAt(0).toUpperCase()+e.slice(1)})]}),children:o&&n?p.jsx(wPr,{tripwire:n,isExpanded:i,onToggleExpand:()=>s(!i),hasMetadata:a}):p.jsx(Hc,{data:r})})},wPr=({tripwire:e,isExpanded:t,onToggleExpand:r,hasMetadata:n})=>p.jsxs("div",{className:"rounded-lg border border-amber-500/30 bg-amber-950/20 overflow-hidden",children:[p.jsxs("div",{className:"flex items-start gap-3 p-4",children:[p.jsx(OT,{className:"w-5 h-5 text-amber-400 mt-0.5 flex-shrink-0"}),p.jsxs("div",{className:"flex-1 min-w-0",children:[p.jsx("p",{className:"text-sm font-medium text-amber-200 mb-1",children:"Content Blocked"}),p.jsx("p",{className:"text-sm text-amber-300/90",children:e.reason||"Tripwire triggered"})]})]}),n&&p.jsxs(p.Fragment,{children:[p.jsxs("button",{onClick:r,className:"w-full flex items-center gap-2 px-4 py-2 text-xs text-amber-400/70 hover:text-amber-400 hover:bg-amber-900/20 transition-colors border-t border-amber-500/20",children:[t?p.jsx(Rd,{className:"w-3.5 h-3.5"}):p.jsx(IN,{className:"w-3.5 h-3.5"}),p.jsx("span",{children:"Details"})]}),t&&p.jsxs("div",{className:"px-4 pb-4 space-y-3 border-t border-amber-500/20 bg-amber-950/10",children:[e.retry!==void 0&&p.jsxs("div",{className:"flex items-center gap-2 pt-3",children:[p.jsx(RN,{className:"w-3.5 h-3.5 text-amber-400/60"}),p.jsxs("span",{className:"text-xs text-amber-300/70",children:["Retry:"," ",e.retry?p.jsx("span",{className:"text-green-400",children:"Allowed"}):p.jsx("span",{className:"text-red-400",children:"Not allowed"})]})]}),e.processorId&&p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx(cTe,{className:"w-3.5 h-3.5 text-amber-400/60"}),p.jsxs("span",{className:"text-xs text-amber-300/70",children:["Processor:"," ",p.jsx("code",{className:"px-1.5 py-0.5 rounded bg-amber-900/30 text-amber-200 font-mono",children:e.processorId})]})]}),e.metadata!==void 0&&e.metadata!==null&&p.jsxs("div",{className:"pt-1",children:[p.jsx("p",{className:"text-xs text-amber-400/60 mb-1.5",children:"Metadata:"}),p.jsx("pre",{className:"text-xs text-amber-200/80 bg-amber-900/30 rounded p-2 overflow-x-auto font-mono",children:String(JSON.stringify(e.metadata,null,2))})]})]})]})]}),SPr=e=>e&&Object.keys(e).length===0&&e.constructor===Object;function WZe({workflowId:e,paramsRunId:t,setRunId:r,workflow:n,isLoading:i,createWorkflowRun:s,resumeWorkflow:o,streamWorkflow:a,observeWorkflowStream:l,isStreamingWorkflow:c,streamResult:u,isCancellingWorkflowRun:d,cancelWorkflowRun:f}){const{requestContext:m}=wi(),{result:g,setResult:v,payload:b,setPayload:w,setRunId:S}=E.useContext(mp),[O,k]=E.useState(!1),[C,T]=E.useState(""),[P,A]=E.useState(null),R=n?.inputSchema,M=n?.stateSchema,z=async j=>{try{if(!n)return;k(!0),A(null),v(null);const W=await s({workflowId:e});r?.(W.runId),T(W.runId),S(W.runId);const{initialState:K,inputData:ne}=j??{},X=M?ne:j;a({workflowId:e,runId:W.runId,inputData:X,initialState:K,requestContext:m})}catch{k(!1),dn.error("Error executing workflow")}},U=async j=>{if(!n)return;A(null);const{stepId:W,runId:K,resumeData:ne}=j,X=await s({workflowId:e,prevRunId:K});await o({step:W,runId:X.runId,resumeData:ne,workflowId:e,requestContext:m})},V=async()=>{const j=await f({workflowId:e,runId:C});A(j)},L=g??u,Q=Object.entries(L?.steps||{}).filter(([j,{status:W}])=>W==="suspended").map(([j,{suspendPayload:W}])=>({stepId:j,runId:C,suspendPayload:W,isLoading:!1}));if(E.useEffect(()=>{t&&l&&(l({workflowId:e,runId:t}),T(t),S(t))},[t]),E.useEffect(()=>{k(c)},[c]),E.useEffect(()=>{u&&v(u)},[u]),i)return p.jsx(_D,{className:"h-[calc(100vh-126px)] pt-2 px-4 pb-4 text-xs",children:p.jsxs("div",{className:"space-y-4",children:[p.jsx(Rr,{className:"h-10"}),p.jsx(Rr,{className:"h-10"})]})});if(!n)return null;const F=Q.length>0,N=R?kg(Sg($v(R))):null,I=M?kg(Sg($v(M))):null,H=I?Iw({inputData:N,initialState:I.optional()}):N,B=L?.steps??{},J=Object.values(B).length>0,q=["success","failed","canceled","tripwire"];return p.jsxs("div",{className:"h-full pt-3 overflow-y-auto",children:[p.jsxs("div",{className:"space-y-4 px-5 pb-5 border-b border-border1",children:[F&&c&&p.jsxs("div",{className:"py-2 px-5 flex items-center gap-2 bg-surface5 -mx-5 -mt-5 border-b border-border1",children:[p.jsx(He,{children:p.jsx(Sh,{className:"animate-spin text-neutral6"})}),p.jsx(Ye,{children:"Resuming workflow"})]}),!F&&p.jsx(p.Fragment,{children:H?p.jsx(WZ,{schema:H,defaultValues:b,isSubmitLoading:c,submitButtonLabel:"Run",onSubmit:j=>{w(j),z(j)},withoutSubmit:!!t}):t?null:p.jsx(Ke,{className:"w-full",variant:"light",disabled:O,onClick:()=>z(null),children:O?p.jsx(He,{children:p.jsx(Sh,{className:"animate-spin"})}):"Trigger"})}),!c&&F&&Q?.map(j=>{const W=n.allSteps[j.stepId];if(!W||W.isWorkflow)return null;const K=W?.resumeSchema?kg(Sg($v(W.resumeSchema))):Dk(f1(),dI());return p.jsxs("div",{className:"flex flex-col px-4",children:[p.jsx(Ye,{variant:"ui-xs",className:"text-neutral3",children:j.stepId}),j.suspendPayload&&p.jsx("div",{"data-testid":"suspended-payload",children:p.jsx(Hc,{data:j.suspendPayload,className:"w-full overflow-x-auto p-2",showCopyButton:!1})}),p.jsx(WZ,{schema:K,isSubmitLoading:c,submitButtonLabel:"Resume workflow",onSubmit:ne=>{const X=j.stepId?.split(".");U({stepId:X,runId:j.runId,suspendPayload:j.suspendPayload,resumeData:ne})}})]},j.stepId)}),g?.status==="running"&&p.jsxs(Ke,{variant:"light",className:"w-full",onClick:V,disabled:!!P?.message||d||g?.status&&q.includes(g?.status),children:[d?p.jsx(He,{children:p.jsx(Sh,{className:"animate-spin"})}):p.jsx(He,{children:p.jsx(YCe,{})}),P?.message||"Cancel Workflow Run"]}),J&&p.jsx(p.Fragment,{children:p.jsxs("div",{className:"flex flex-col gap-2 pt-5 border-t border-border1",children:[p.jsx(Ye,{variant:"ui-xs",className:"text-neutral3",children:"Status"}),p.jsx("div",{className:"flex flex-col gap-4",children:Object.entries(B).filter(([j,W])=>j!=="input"&&!j.endsWith(".input")).map(([j,W])=>{const{status:K}=W;let ne,X,te;W.status==="suspended"&&(X=W.suspendOutput),W.status==="success"&&(ne=W.output),W.status==="failed"&&(te=W.error);const ue=W.status==="failed"&&W.tripwire?W.tripwire:L?.status==="tripwire"?{reason:L?.tripwire?.reason,retry:L?.tripwire?.retry,metadata:L?.tripwire?.metadata,processorId:L?.tripwire?.processorId}:void 0,de=W.status==="failed"&&W.tripwire?"tripwire":K;return p.jsx(xPr,{stepId:j,status:de,result:ne??X??te??{},tripwire:ue},j)})})]})})]}),g&&!SPr(g)&&p.jsx("div",{className:"p-5 border-b border-border1",children:p.jsx(OPr,{result:g})})]})}const OPr=({result:e})=>{const[t,r]=E.useState(!1);return p.jsxs(p.Fragment,{children:[p.jsxs(Ke,{variant:"light",onClick:()=>r(!0),className:"w-full",children:[p.jsx(He,{children:p.jsx(Vv,{className:"text-neutral3"})}),"Open Workflow Execution (JSON)"]}),p.jsx(Uo,{open:t,onOpenChange:r,children:p.jsxs(bo,{className:"max-w-6xl",children:[p.jsxs(xo,{children:[p.jsx(So,{children:"Workflow Execution (JSON)"}),p.jsx(Oo,{children:"JSON view of the workflow execution result"})]}),p.jsx(wo,{className:"max-h-[90vh]",children:p.jsx(Hc,{data:e,className:"p-4"})})]})})]})},_Pr=({workflowId:e,runId:t,observeWorkflowStream:r,...n})=>{const{runSnapshot:i,isLoadingRunExecutionResult:s}=E.useContext(mp);if(s)return p.jsx("div",{className:"p-4",children:p.jsx(Rr,{className:"h-[600px]"})});if(!i||!t)return p.jsx("div",{className:"p-4",children:p.jsx(Ye,{variant:"ui-md",className:"text-neutral6 text-center",children:"No previous run"})});const o=QZ(i),a=o?.status;if(t)return p.jsx("div",{className:"h-full grid grid-rows-[1fr_auto]",children:p.jsx(WZe,{...n,paramsRunId:t,workflowId:e,observeWorkflowStream:()=>{a!=="success"&&a!=="failed"&&a!=="canceled"&&r?.({workflowId:e,runId:t,storeRunResult:o})}})})},ED=({iconSlot:e,titleSlot:t,descriptionSlot:r,actionSlot:n,as:i="div"})=>p.jsxs("div",{className:"flex w-[340px] flex-col items-center justify-center text-center",children:[p.jsx("div",{className:"h-auto [&>svg]:w-[126px]",children:e}),p.jsx(i,{className:"text-neutral6 pt-8 font-serif text-header-xl font-semibold",children:t}),p.jsx(Ye,{variant:"ui-lg",className:"text-neutral3 pb-8",children:r}),n]}),kPr={default:"[&>tbody>tr]:h-table-row",small:"[&>tbody>tr]:h-table-row-small"},gp=({className:e,children:t,size:r="default",style:n})=>p.jsx("table",{className:ie("w-full",kPr[r],e),style:n,children:t}),yp=({className:e,children:t})=>p.jsx("thead",{children:p.jsx("tr",{className:ie("h-table-header border-b border-border1 bg-surface2",e),children:t})}),Xo=({className:e,children:t,...r})=>p.jsx("th",{className:ie("text-neutral3 text-ui-sm h-full whitespace-nowrap text-left font-normal uppercase first:pl-3 last:pr-3",e),...r,children:t}),vp=({className:e,children:t})=>p.jsx("tbody",{className:ie("",e),children:t}),bp=E.forwardRef(({className:e,children:t,selected:r=!1,style:n,onClick:i,...s},o)=>{const a=l=>{l.key==="Enter"&&i&&i()};return p.jsx("tr",{className:ie("border-b border-border1 hover:bg-surface3 focus:bg-surface3 -outline-offset-2",r&&"bg-surface4",i&&"cursor-pointer",e),style:n,onClick:i,ref:o,tabIndex:i?0:void 0,onKeyDown:a,...s,children:t})}),so=({className:e,children:t,...r})=>p.jsx("td",{className:ie("text-neutral5 first:pl-3 last:pr-3",e),...r,children:p.jsx("div",{className:ie("flex h-full w-full shrink-0 items-center"),children:t})}),CD=({name:e,description:t,icon:r,meta:n,...i})=>p.jsx(so,{...i,children:p.jsxs("div",{className:"flex items-center gap-3.5",children:[r&&p.jsx(He,{size:"lg",className:"text-neutral5",children:r}),p.jsxs("div",{className:"flex flex-col gap-0",children:[p.jsx(Ye,{as:"span",variant:"ui-md",className:"text-neutral6 !leading-tight",children:e}),t&&p.jsx(Ye,{as:"span",variant:"ui-xs",className:"text-neutral3 w-full max-w-[300px] truncate !leading-tight pt-1",children:t})]}),n]})}),wxe=40,UP=150,Sxe=10,TD=({className:e,children:t,scrollSpeed:r=100,scrollIntervalTime:n=20})=>{const i=E.useRef(null),s=E.useRef(null),[o,a]=E.useState(0),[l,c]=E.useState(0),[u,d]=E.useState(0),[f,m]=E.useState(0),[g,v]=E.useState(!1),[b,w]=E.useState(!1);E.useEffect(()=>{const C=()=>{if(!i.current)return;const R=i.current.scrollLeft<i.current.scrollWidth-i.current.clientWidth;v(R),a(i.current.clientHeight);const M=i.current.getBoundingClientRect();c(M.right),m(M.left),d(M.top)};C();const T=new ResizeObserver(C);i.current&&T.observe(i.current);const P=()=>{if(!i.current)return;const R=i.current.scrollLeft>0,M=i.current.scrollLeft<i.current.scrollWidth-i.current.clientWidth;w(R),v(M),C()};i?.current?.addEventListener("scroll",P);const A=i.current;return()=>{A&&(T.unobserve(A),A.removeEventListener("scroll",P))}},[]);const S=({isVisible:C,position:T,containerHeight:P,containerTop:A,containerRight:R,onStartScrolling:M,onStopScrolling:z})=>{if(!C)return null;const U={top:P<UP?A:A+(P-UP)/2,width:wxe,height:P<UP?`${P}px`:`${UP}px`};return p.jsxs("button",{onMouseDown:M,onTouchStart:M,onMouseUp:z,onTouchEnd:z,onTouchCancel:z,className:"bg-surface4 text-neutral3 border-surface5 hover:border-neutral3 fixed z-10 flex items-center justify-center rounded-lg border text-2xl hover:text-white",style:{...U,left:T==="left"?f+Sxe:R-wxe-Sxe},children:[" ",T==="left"?"«":"»"]})},O=E.useCallback((C,T)=>{T?.preventDefault(),T?.stopPropagation(),s.current&&(clearInterval(s.current),s.current=null),i.current&&i.current.scrollBy({left:C==="right"?r*2:-r*2,behavior:"smooth"}),s.current=setInterval(()=>{i.current&&i.current.scrollBy({left:C==="right"?r:-r,behavior:"smooth"})},n)},[r,n]),k=E.useCallback(()=>{s.current&&(clearInterval(s.current),s.current=null)},[]);return p.jsxs("div",{ref:i,className:ie("relative max-h-full overflow-auto",e),children:[t,p.jsx(S,{isVisible:b,position:"left",containerHeight:o,containerTop:u,containerRight:l,onStartScrolling:C=>O("left",C),onStopScrolling:k}),p.jsx(S,{isVisible:g,position:"right",containerHeight:o,containerTop:u,containerRight:l,onStartScrolling:C=>O("right",C),onStopScrolling:k})]})},GZe=E.createContext({Link:E.forwardRef(()=>null),navigate:()=>{},paths:{agentLink:()=>"",agentsLink:()=>"",agentToolLink:()=>"",agentThreadLink:()=>"",agentNewThreadLink:()=>"",workflowsLink:()=>"",workflowLink:()=>"",networkLink:()=>"",networkNewThreadLink:()=>"",networkThreadLink:()=>"",scorerLink:()=>"",toolLink:()=>"",mcpServerLink:()=>"",mcpServerToolLink:()=>"",workflowRunLink:()=>""}}),EPr=({children:e,Link:t,navigate:r,paths:n})=>p.jsx(GZe.Provider,{value:{Link:t,navigate:r,paths:n},children:e}),Gr=()=>{const e=E.useContext(GZe);if(!e)throw new Error("useLinkComponent must be used within a LinkComponentProvider");return e},CPr=[{id:"name",header:"Name",cell:({row:e})=>{const{Link:t,paths:r}=Gr(),n=e.original;return p.jsx(CD,{name:p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx(t,{href:r.workflowLink(e.original.id),children:e.original.name}),n.isProcessorWorkflow&&p.jsx(sr,{icon:p.jsx(eTe,{className:"h-3 w-3"}),className:"!h-badge-sm bg-violet-500/20 text-violet-400",children:"Processor"})]}),description:n.description,meta:void 0})},meta:{width:"auto"}},{id:"stepsCount",header:"Steps",size:300,cell:({row:e})=>{const t=e.original,r=Object.keys(t.steps??{}).length;return p.jsx(so,{children:p.jsx("div",{className:"flex justify-end items-center gap-2",children:p.jsxs(sr,{icon:p.jsx(nTe,{}),className:"!h-form-sm",children:[r," step",r>1?"s":""]})})})}}],Oxe={sm:Ea.sm,md:Ea.md,lg:Ea.lg},DD=({onSearch:e,label:t,placeholder:r,debounceMs:n=300,size:i="md"})=>{const s=E.useId(),o=E.useRef(null),a=KY(c=>{e(c)},n);E.useEffect(()=>()=>{a.cancel()},[a]),E.useEffect(()=>{const c=o.current;if(!c)return;const u=d=>{d.key.toLowerCase()==="f"&&d.shiftKey&&(d.ctrlKey||d.metaKey)&&(d.preventDefault(),c.focus())};return window.addEventListener("keydown",u),()=>{window.removeEventListener("keydown",u)}},[]);const l=c=>{a(c.target.value)};return p.jsxs("div",{className:ie("border border-border1 flex w-full items-center gap-2 overflow-hidden pl-2 pr-1",SD,YAr,Oxe[i]),children:[p.jsx(eG,{className:"text-neutral3 h-4 w-4"}),p.jsxs("div",{className:"flex-1",children:[p.jsx("label",{htmlFor:s,className:"sr-only",children:t}),p.jsx("input",{id:s,type:"text",placeholder:r,className:ie("bg-surface2 text-ui-md placeholder:text-icon-3 block w-full px-2 outline-none",Oxe[i]),name:s,ref:o,onChange:l})]})]})},AD=({children:e})=>p.jsx("div",{className:"px-3 py-2.5 border-b border-border1",children:e});function TPr({workflows:e,isLoading:t}){const[r,n]=E.useState(""),{navigate:i,paths:s}=Gr(),o=E.useMemo(()=>Object.keys(e??{}).map(f=>{const m=e[f];return{id:f,...m}}),[e]),a=gD({data:o,columns:CPr,getCoreRowModel:mD()}),l=a.getHeaderGroups()[0],c=a.getRowModel().rows.concat();if(c.length===0&&!t)return p.jsx(APr,{});const u=c.filter(d=>d.original.name.toLowerCase().includes(r.toLowerCase()));return p.jsxs("div",{children:[p.jsx(AD,{children:p.jsx(DD,{onSearch:n,label:"Search workflows",placeholder:"Search workflows"})}),t?p.jsx(DPr,{}):p.jsx(TD,{children:p.jsxs(gp,{children:[p.jsx(yp,{className:"sticky top-0",children:l.headers.map(d=>p.jsx(Xo,{style:{width:d.index===0?"auto":d.column.getSize()},children:Hf(d.column.columnDef.header,d.getContext())},d.id))}),p.jsx(vp,{children:u.map(d=>p.jsx(bp,{onClick:()=>i(s.workflowLink(d.original.id)),children:d.getVisibleCells().map(f=>p.jsx(me.Fragment,{children:Hf(f.column.columnDef.cell,f.getContext())},f.id))},d.id))})]})})]})}const DPr=()=>p.jsxs(gp,{children:[p.jsxs(yp,{children:[p.jsx(Xo,{children:"Name"}),p.jsx(Xo,{width:300,children:"Steps"})]}),p.jsx(vp,{children:Array.from({length:3}).map((e,t)=>p.jsxs(bp,{children:[p.jsx(so,{children:p.jsx(Rr,{className:"h-4 w-1/2"})}),p.jsx(so,{width:300,children:p.jsx(Rr,{className:"h-4 w-1/2"})})]},t))})]}),APr=()=>p.jsx("div",{className:"flex h-full items-center justify-center",children:p.jsx(ED,{iconSlot:p.jsx(m2r,{}),titleSlot:"Configure Workflows",descriptionSlot:"Mastra workflows are not configured yet. You can find more information in the documentation.",actionSlot:p.jsxs(Ke,{size:"lg",className:"w-full",variant:"light",as:"a",href:"https://mastra.ai/en/docs/workflows/overview",target:"_blank",children:[p.jsx(He,{children:p.jsx(Su,{})}),"Docs"]})})}),XZe=({icon:e,title:t,isLoading:r,children:n})=>p.jsxs("div",{className:"p-5 w-full overflow-x-hidden",children:[p.jsxs("div",{className:"text-neutral6 flex items-center gap-2",children:[p.jsx(He,{size:"lg",className:"bg-surface4 rounded-md p-1",children:e}),r?p.jsx(Rr,{className:"h-3 w-1/3"}):p.jsx("div",{className:"flex min-w-0 items-center gap-4",children:p.jsx(Ye,{variant:"header-md",as:"h2",className:"truncate font-medium",children:t})})]}),n&&p.jsx("div",{className:"pt-2",children:n})]}),fte=({children:e,defaultTab:t,value:r,onValueChange:n,className:i})=>{const[s,o]=E.useState(t),a=r!==void 0&&n!==void 0,l=a?r:s,c=u=>{const d=u;a?n(d):o(d)};return p.jsx(Hmr,{value:l,onValueChange:c,className:ie("overflow-y-auto",i),children:e})},pte=({children:e,variant:t="default",className:r})=>p.jsx("div",{className:ie("w-full overflow-x-auto",r),children:p.jsx(Wmr,{className:ie("flex items-center",{"text-ui-lg":t==="default","[&>button]:py-2 [&>button]:px-6 [&>button]:font-normal [&>button]:text-neutral3 [&>button]:flex-1 [&>button]:border-b [&>button]:border-border1":t==="default","[&>button[data-state=active]]:text-neutral5 [&>button[data-state=active]]:transition-colors [&>button[data-state=active]]:duration-200 [&>button[data-state=active]]:border-neutral3":t==="default","border border-border1 flex justify-stretch rounded-md overflow-hidden text-ui-md min-h-[2.5rem]":t==="buttons","[&>button]:flex-1 [&>button]:py-2 [&>button]:px-4 [&>button]:text-neutral3":t==="buttons","[&>button[data-state=active]]:text-neutral5 [&>button[data-state=active]]:bg-surface4":t==="buttons"},r),children:e})}),bh=({children:e,value:t,onClick:r,onClose:n,className:i})=>p.jsxs(Gmr,{value:t,className:ie("text-xs p-3 text-neutral3 data-[state=active]:text-neutral5 data-[state=active]:border-b-2 whitespace-nowrap flex-shrink-0 flex items-center justify-center gap-1.5",i),onClick:r,children:[e,n&&p.jsx("button",{onClick:s=>{s.stopPropagation(),n()},className:"p-0.5 hover:bg-surface3 rounded transition-colors","aria-label":"Close tab",children:p.jsx(Pa,{className:"w-3 h-3"})})]}),xh=({children:e,value:t,className:r})=>p.jsx(Xmr,{value:t,className:ie("grid py-3 overflow-y-auto ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:none",r),children:e}),PPr=()=>{const{debugMode:e,setDebugMode:t}=E.useContext(mp);return p.jsxs(p.Fragment,{children:[p.jsx(Ye,{as:"h3",variant:"ui-md",className:"text-neutral3",children:"Debug Mode"}),p.jsx(U6,{checked:e,onCheckedChange:r=>t(r)})]})},YZe=()=>{const e=X0(),{settings:t,setSettings:r,entityType:n}=ste(),i=o=>{if(!o)return r({...t,tracingOptions:void 0});try{const a=JSON.parse(o);typeof a=="object"&&a!==null&&r({...t,tracingOptions:a})}catch{}};let s="{}";try{s=JSON.stringify(t?.tracingOptions,null,2)}catch{}return p.jsxs("div",{className:"space-y-2 px-5 py-2",children:[p.jsx(Ye,{as:"h3",variant:"ui-md",className:"text-neutral3",children:"Tracing Options"}),p.jsx(su,{value:s,onChange:i,theme:e,extensions:[Gc],className:"h-[400px] overflow-y-scroll bg-surface3 rounded-lg overflow-hidden p-3"}),n==="workflow"&&p.jsx(PPr,{})]})};function Aa({color:e="#fff",className:t}){return p.jsx("svg",{className:ie("animate-spin duration-700",t),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",children:p.jsx("path",{d:"M21 12a9 9 0 1 1-6.219-8.56",stroke:e})})}function $Pr({stepGraph:e,open:t,workflowName:r}){const{nodes:n,edges:i}=IZe({stepGraph:e}),[s,o]=E.useState(!1),[a,l,c]=X6e(n),[u]=Y6e(i),{steps:d}=kD(),f=E.useMemo(()=>i.reduce((g,v)=>{if(v.data){const b=v.data.nextStepId,w=v.data.previousStepId;return{...g,[b]:[...new Set([...g[b]||[],w])]}}return g},{}),[i]),m={"default-node":g=>p.jsx(UZe,{parentWorkflowName:r,...g,stepsFlow:f}),"condition-node":BZe,"after-node":QZe,"loop-result-node":ZZe,"nested-node":g=>p.jsx(qZe,{parentWorkflowName:r,...g,stepsFlow:f})};return E.useEffect(()=>{t&&setTimeout(()=>{o(!0)},500)},[t]),p.jsx("div",{className:"w-full h-full relative bg-surface1",children:s?p.jsxs(G6e,{nodes:a,edges:u.map(g=>({...g,style:{...g.style,stroke:d[`${r}.${g.data?.previousStepId}`]?.status==="success"&&d[`${r}.${g.data?.nextStepId}`]||g.data?.conditionNode&&!d[`${r}.${g.data?.previousStepId}`]&&d[`${r}.${g.data?.nextStepId}`]?.status?"#22c55e":void 0}})),fitView:!0,fitViewOptions:{maxZoom:1},minZoom:.01,maxZoom:1,nodeTypes:m,onNodesChange:c,children:[p.jsx(dte,{position:"bottom-left"}),p.jsx(K6e,{variant:$f.Lines,gap:12,size:.5})]}):p.jsx("div",{className:"w-full h-full flex items-center justify-center",children:p.jsx(Aa,{})})})}function IPr(){const{stepDetail:e,closeStepDetail:t}=L6();return e?p.jsxs("div",{className:"flex flex-col h-full",children:[p.jsxs("div",{className:"flex items-center justify-between px-4 py-3 border-b border-border1 bg-surface1",children:[p.jsxs("div",{className:"flex items-center gap-2",children:[e.type==="map-config"&&p.jsx(RB,{className:"w-4 h-4",style:{color:gs.map}}),e.type==="nested-graph"&&p.jsx(Su,{className:"w-4 h-4",style:{color:gs.workflow}}),p.jsxs("div",{className:"flex flex-col",children:[p.jsx(Ye,{variant:"ui-md",className:"text-neutral6 font-medium",children:e.type==="map-config"?`${e.stepName} Config`:`${e.stepName} Workflow`}),e.type==="map-config"&&e.stepId&&e.stepId!==e.stepName&&p.jsx(Ye,{variant:"ui-xs",className:"text-neutral3",children:e.stepId})]})]}),p.jsx("button",{onClick:t,className:"p-1 hover:bg-surface3 rounded transition-colors","aria-label":"Close",children:p.jsx(Pa,{className:"w-4 h-4 text-neutral3"})})]}),p.jsxs("div",{className:"flex-1 overflow-auto",children:[e.type==="map-config"&&e.mapConfig&&p.jsx(mx,{data:e.mapConfig}),e.type==="nested-graph"&&e.nestedGraph&&p.jsx("div",{className:"h-full min-h-[400px]",children:p.jsx(AY,{children:p.jsx($Pr,{stepGraph:e.nestedGraph.stepGraph,open:!0,workflowName:e.nestedGraph.fullStep})},e.nestedGraph.fullStep)})]})]}):null}function NPr({workflowId:e,initialRunId:t}){const{data:r,isLoading:n,error:i}=OD(e),{createWorkflowRun:s,streamWorkflow:o,streamResult:a,isStreamingWorkflow:l,observeWorkflowStream:c,closeStreamsAndReset:u,resumeWorkflow:d,cancelWorkflowRun:f,isCancellingWorkflowRun:m}=E.useContext(mp),{stepDetail:g,closeStepDetail:v}=L6(),[b,w]=E.useState("current-run"),[S,O]=E.useState(""),{handleCopy:k}=Gf({text:e}),C=Object.keys(r?.steps??{}).length,T=E.useMemo(()=>g?g.type==="map-config"?"Map Config":g.type==="nested-graph"?"Nested Workflow":"Node":null,[g]);E.useEffect(()=>{!S&&!t&&u()},[S,t]),E.useEffect(()=>{if(i){const A=i instanceof Error?i.message:"Failed to load workflow";os.error(`Error loading workflow: ${A}`)}},[i]),E.useEffect(()=>{g?w("node-details"):b==="node-details"&&w("current-run")},[g]);const P=A=>{b==="node-details"&&A!=="node-details"&&v(),w(A)};return i?null:p.jsxs("div",{className:"grid grid-rows-[auto_1fr] h-full overflow-y-auto",children:[p.jsx(XZe,{icon:p.jsx(Su,{}),title:r?.name||"",isLoading:n,children:p.jsxs("div",{className:"flex items-center gap-2 pt-2",children:[p.jsxs($i,{children:[p.jsx(Ii,{asChild:!0,children:p.jsx("button",{onClick:k,className:"h-badge-default",children:p.jsx(sr,{icon:p.jsx(nu,{}),variant:"default",children:e})})}),p.jsx(gi,{children:"Copy Workflow ID for use in code"})]}),p.jsxs(sr,{children:[C," step",C>1?"s":""]}),r?.isProcessorWorkflow&&p.jsx(sr,{icon:p.jsx(eTe,{className:"h-3 w-3"}),className:"bg-violet-500/20 text-violet-400",children:"Processor"})]})}),p.jsx("div",{className:"flex-1 overflow-auto border-t border-border1 flex flex-col",children:p.jsxs(fte,{defaultTab:"current-run",value:b,onValueChange:P,className:"h-full",children:[p.jsxs(pte,{children:[p.jsx(bh,{value:"current-run",children:"Current Run"}),p.jsx(bh,{value:"run-options",children:"Run Options"}),g&&T&&p.jsxs(bh,{value:"node-details",onClose:()=>{v(),w("current-run")},children:[T," Details"]})]}),p.jsx(xh,{value:"current-run",children:e?t?p.jsx(_Pr,{workflowId:e,runId:t,setRunId:O,workflow:r??void 0,isLoading:n,createWorkflowRun:s,streamWorkflow:o,resumeWorkflow:d,streamResult:a,isStreamingWorkflow:l,isCancellingWorkflowRun:m,cancelWorkflowRun:f,observeWorkflowStream:c}):p.jsx(WZe,{workflowId:e,setRunId:O,workflow:r??void 0,isLoading:n,createWorkflowRun:s,streamWorkflow:o,resumeWorkflow:d,streamResult:a,isStreamingWorkflow:l,isCancellingWorkflowRun:m,cancelWorkflowRun:f}):null}),p.jsx(xh,{value:"run-options",children:p.jsx(YZe,{})}),g&&p.jsx(xh,{value:"node-details",children:p.jsx(IPr,{})})]})})]})}function PD({options:e,value:t,onValueChange:r,placeholder:n="Select option...",searchPlaceholder:i="Search...",emptyText:s="No option found.",className:o,disabled:a=!1,variant:l="default",size:c="md"}){const[u,d]=E.useState(!1),[f,m]=E.useState(""),[g,v]=E.useState(0),b=E.useRef(null),[w,S]=E.useState(void 0),O=E.useRef(null),k=E.useRef(null),C=e.find(R=>R.value===t),T=R=>{r?.(R),d(!1),m(""),v(0)};E.useEffect(()=>{b.current&&S(b.current.offsetWidth)},[u]),E.useEffect(()=>{u&&O.current&&O.current.focus()},[u]);const P=E.useMemo(()=>f?e.filter(R=>R.label.toLowerCase().includes(f.toLowerCase())):e,[e,f]);E.useEffect(()=>{v(0)},[P]);const A=R=>{if(u)switch(R.key){case"ArrowDown":R.preventDefault(),v(M=>M<P.length-1?M+1:M);break;case"ArrowUp":R.preventDefault(),v(M=>M>0?M-1:M);break;case"Enter":R.preventDefault(),P[g]&&T(P[g].value);break;case"Escape":R.preventDefault(),d(!1),m("");break;case"Home":R.preventDefault(),v(0);break;case"End":R.preventDefault(),v(P.length-1);break}};return E.useEffect(()=>{if(k.current&&g>=0){const R=k.current.children[g];R&&R.scrollIntoView({block:"nearest"})}},[g]),p.jsxs(QC,{open:u,onOpenChange:d,children:[p.jsx(ZC,{asChild:!0,children:p.jsxs(Ke,{ref:b,role:"combobox","aria-expanded":u,variant:l,size:c,className:ie("w-full justify-between",o),disabled:a,children:[p.jsx("span",{className:"truncate",children:C?C.label:n}),p.jsx(iut,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),p.jsx(vw,{className:"p-0 w-fit",align:"start",children:p.jsxs("div",{className:"flex h-full w-full flex-col overflow-hidden rounded-md bg-surface3 text-neutral5",children:[p.jsxs("div",{className:"flex items-center border-b px-3 py-2",children:[p.jsx(eG,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),p.jsx("input",{ref:O,className:"flex h-8 w-full rounded-md bg-transparent py-1 text-sm placeholder:text-neutral3 disabled:cursor-not-allowed disabled:opacity-50 outline-none",placeholder:i,value:f,onChange:R=>m(R.target.value),onKeyDown:A,role:"combobox","aria-autocomplete":"list","aria-controls":"combobox-options","aria-expanded":u})]}),p.jsx("div",{ref:k,id:"combobox-options",role:"listbox",className:"max-h-dropdown-max-height overflow-y-auto overflow-x-hidden p-1",children:P.length===0?p.jsx("div",{className:"py-6 text-center text-sm",children:s}):P.map((R,M)=>{const z=t===R.value,U=M===g;return p.jsxs("div",{role:"option","aria-selected":z,className:ie("relative flex cursor-pointer select-none items-center rounded-sm px-2 py-1.5 text-sm transition-colors","hover:bg-surface5 hover:text-neutral5",U&&"bg-surface5 text-neutral5",z&&!U&&"bg-surface5/50"),onClick:()=>T(R.value),onMouseEnter:()=>v(M),children:[p.jsx(yd,{className:ie("mr-2 h-4 w-4",z?"opacity-100":"opacity-0")}),R.label]},R.value)})})]})})]})}function RPr({value:e,onValueChange:t,placeholder:r="Select a workflow...",searchPlaceholder:n="Search workflows...",emptyText:i="No workflows found.",className:s,disabled:o=!1}){const{data:a={},isLoading:l,isError:c,error:u}=F6(),{navigate:d,paths:f}=Gr();E.useEffect(()=>{if(c){const v=u instanceof Error?u.message:"Failed to load workflows";os.error(`Error loading workflows: ${v}`)}},[c,u]);const m=Object.keys(a).map(v=>({label:a[v]?.name||v,value:v})),g=v=>{t?t(v):v&&v!==e&&d(f.workflowLink(v))};return p.jsx(PD,{options:m,value:e,onValueChange:g,placeholder:l?"Loading workflows...":r,searchPlaceholder:n,emptyText:i,className:s,disabled:o||l||c})}function $o({children:e,className:t,style:r}){const n=JZe("MainContentLayout");return p.jsx("main",{className:ie("grid grid-rows-[auto_1fr] h-full items-start content-start",t),style:{...r,...n?{border:"3px dotted red"}:{}},children:e})}function Dd({children:e,className:t,isCentered:r=!1,isDivided:n=!1,hasLeftServiceColumn:i=!1,style:s}){const o=JZe("MainContentContent"),a=hte({isCentered:r,isDivided:n,hasLeftServiceColumn:i,className:t});return p.jsx("div",{className:a,style:{...s,...o?{border:"3px dotted orange"}:{}},children:e})}const hte=({isCentered:e,isDivided:t,hasLeftServiceColumn:r,className:n})=>ie("grid overflow-y-auto h-full ","overflow-x-auto min-w-[min-content]",{"items-start content-start":!e&&!t&&!r,"grid place-items-center":e,"grid-cols-[1fr_1fr]":t&&!r,"grid-cols-[12rem_1fr_1fr]":t&&r,"grid-cols-[auto_1fr]":!t&&r},n);function JZe(e){try{const t=localStorage.getItem("add-dev-style-to-components");return t?t.split(",").map(n=>n.trim()).filter(Boolean).includes(e):!1}catch(t){return console.error("Error reading or parsing localStorage:",t),!1}}const T4=()=>p.jsx($gr,{className:ie("w-1.5 bg-surface3","[&[data-separator='hover']]:!bg-surface4","[&[data-separator='active']]:!bg-surface5","focus:outline-none")}),D4=({collapsedSize:e,children:t,direction:r,...n})=>{const[i,s]=E.useState(!1),o=Agr(),a=()=>{o.current&&o.current.expand()};return p.jsx(HK,{panelRef:o,collapsedSize:e,...n,onResize:l=>{e&&typeof e=="number"&&(l.inPixels<=e?s(!0):i&&s(!1))},children:i?p.jsxs($i,{children:[p.jsx("div",{className:"flex items-center justify-center h-full",children:p.jsx(Ii,{asChild:!0,children:p.jsx(Ke,{onClick:a,className:"!h-48 border-none",children:p.jsx(He,{children:r==="left"?p.jsx(Fx,{}):p.jsx(ZCe,{})})})})}),p.jsx(gi,{children:"Expand"})]}):t})},MPr=({workflowId:e,children:t,leftSlot:r,rightSlot:n})=>{const{defaultLayout:i,onLayoutChange:s}=ULe({id:`workflow-layout-${e}`,storage:localStorage}),o=hte({isCentered:!1,isDivided:!0,hasLeftServiceColumn:!!r});return p.jsxs(VLe,{className:o,defaultLayout:i,onLayoutChange:s,children:[r&&p.jsxs(p.Fragment,{children:[p.jsx(D4,{direction:"left",id:"left-slot",minSize:200,maxSize:"30%",defaultSize:200,collapsedSize:60,collapsible:!0,children:r}),p.jsx(T4,{})]}),p.jsx(HK,{id:"main-slot",children:t}),n&&p.jsxs(p.Fragment,{children:[p.jsx(T4,{}),p.jsx(D4,{direction:"right",id:"right-slot",minSize:300,maxSize:"50%",defaultSize:300,collapsedSize:60,collapsible:!0,children:n})]})]})},mte=()=>p.jsx(j6,{icon:p.jsx(Aa,{color:dTe.neutral3}),title:p.jsx(Rr,{className:"ml-2 w-12 h-2"}),collapsible:!1}),jPr=({result:e,workflowId:t,isStreaming:r,metadata:n,toolCallId:i,toolApprovalMetadata:s,suspendPayload:o,toolName:a,isNetwork:l,toolCalled:c})=>{const{runId:u,status:d}=e||{},{data:f,isLoading:m}=OD(t),{data:g,isLoading:v}=AZe(t,{enabled:!!u&&!r}),b=g?.find(T=>T.runId===u),w=v||!b,S=typeof b?.snapshot=="object"?b?.snapshot:void 0,O=n?.mode==="network"?n.selectionReason:void 0,k=n?.mode==="network"?n.agentInput:void 0;let C=typeof o=="string"?p.jsx("pre",{className:"whitespace-pre bg-surface4 p-4 rounded-md overflow-x-auto",children:o}):p.jsx(Hc,{data:o,"data-testid":"tool-suspend-payload"});return m||!f?p.jsx(mte,{}):p.jsxs(j6,{"data-testid":"workflow-badge",icon:p.jsx(Su,{className:"text-accent3"}),title:f.name,initialCollapsed:!1,extraInfo:n?.mode==="network"&&p.jsx(nte,{selectionReason:O??"",input:k}),children:[!r&&!w&&p.jsx(ote,{snapshot:S,workflowId:t,initialRunId:u,withoutTimeTravel:!0,children:p.jsx(_xe,{workflowId:t,workflow:f,runId:u})}),r&&p.jsx(_xe,{workflowId:t,workflow:f,runId:u}),C!==void 0&&o&&p.jsxs("div",{children:[p.jsx("p",{className:"font-medium pb-2",children:"Workflow suspend payload"}),C]}),p.jsx(ite,{toolCalled:c??!!d,toolCallId:i,toolApprovalMetadata:s,toolName:a,isNetwork:l})]})},_xe=({workflowId:e,workflow:t,runId:r})=>{const{Link:n}=Gr();return p.jsxs(p.Fragment,{children:[p.jsxs("div",{className:"flex items-center gap-2 pb-2",children:[p.jsx(Ke,{as:n,href:`/workflows/${e}/graph`,children:"Go to workflow"}),r&&p.jsx(Ke,{as:n,href:`/workflows/${e}/graph/${r}`,children:"See run"})]}),p.jsx("div",{className:"rounded-md overflow-hidden h-[60vh] w-full",children:p.jsx(HZe,{workflowId:e,workflow:t})})]})},FPr=e=>{const{setResult:t}=E.useContext(mp);E.useEffect(()=>{e&&t(e)},[e])},LPr=({agentId:e,messages:t=[],metadata:r,toolCallId:n,toolApprovalMetadata:i,toolName:s,isNetwork:o,suspendPayload:a,toolCalled:l})=>{const c=r?.mode==="network"?r.selectionReason:void 0,u=r?.mode==="network"?r.agentInput:void 0;let d=t.length>0;o&&(d=l??t.every(m=>m.type==="text"?!0:!!m.toolOutput));let f=typeof a=="string"?p.jsx("pre",{className:"whitespace-pre bg-surface4 p-4 rounded-md overflow-x-auto",children:a}):p.jsx(Hc,{data:a,"data-testid":"tool-suspend-payload"});return p.jsxs(j6,{"data-testid":"agent-badge",icon:p.jsx(ea,{className:"text-accent1"}),title:e,initialCollapsed:!1,extraInfo:r?.mode==="network"&&p.jsx(nte,{selectionReason:c??"",input:u}),children:[t.map((m,g)=>{if(m.type==="text")return p.jsx(XBe,{children:m.content},g);let v;try{v=typeof m.toolOutput=="string"?JSON.parse(m.toolOutput):m.toolOutput}catch{v=m.toolOutput}return p.jsx(me.Fragment,{children:p.jsx(eqe,{toolName:m.toolName,argsText:typeof m.args=="string"?m.args:JSON.stringify(m.args),result:v,args:m.args,status:{type:"complete"},type:"tool-call",toolCallId:m.toolCallId,addResult:()=>{},resume:()=>{},metadata:{mode:"stream"}})},g)}),f!==void 0&&a&&p.jsxs("div",{children:[p.jsx("p",{className:"font-medium pb-2",children:"Agent suspend payload"}),f]}),p.jsx(ite,{toolCalled:d,toolCallId:n,toolApprovalMetadata:i,toolName:s,isNetwork:o})]})},KZe=({threadId:e,agentId:t,memory:r})=>{const n=or(),{requestContext:i}=wi();return Ri({queryKey:["memory","messages",e,t,"requestContext"],queryFn:()=>e?n.listThreadMessages(e,{agentId:t,requestContext:i}):null,enabled:r&&!!e,staleTime:0,gcTime:0,retry:!1,refetchOnWindowFocus:!1})},zPr=({agentId:e,result:t,metadata:r,toolCallId:n,toolApprovalMetadata:i,toolName:s,isNetwork:o,suspendPayload:a,toolCalled:l})=>{const{data:c,isLoading:u}=KZe({threadId:t?.subAgentThreadId,agentId:e,memory:!0});if(u)return p.jsx(mte,{});const d=c?.messages?GBe(c.messages):[],f=t?.childMessages??_3t(d);return p.jsx(LPr,{agentId:e,messages:f,metadata:r,toolCallId:n,toolApprovalMetadata:i,toolName:s,isNetwork:o,suspendPayload:a,toolCalled:l})},eqe=({toolName:e,result:t,args:r,...n})=>p.jsx(ote,{workflowId:"",withoutTimeTravel:!0,children:p.jsx(BPr,{toolName:e,result:t,args:r,...n})}),BPr=({toolName:e,result:t,args:r,metadata:n,toolCallId:i,...s})=>{const o=n?.mode==="network"&&n.from==="AGENT"||e.startsWith("agent-"),a=n?.mode==="network"&&n.from==="WORKFLOW"||e.startsWith("workflow-"),l=n?.mode==="network",c=e.startsWith("agent-")?e.substring(6):e,u=e.startsWith("workflow-")?e.substring(9):e,d=(n?.mode==="stream"||n?.mode==="network")&&n?.requireApprovalMetadata,f=(n?.mode==="stream"||n?.mode==="network")&&n?.suspendedTools,m=d?d?.[e]??d?.[i]:void 0,g=f?f?.[e]:void 0,v=n?.mode==="network"&&n?.hasMoreMessages?!0:void 0;if(FPr(t),o)return p.jsx(zPr,{agentId:c,result:t,metadata:n,toolCallId:i,toolApprovalMetadata:m,toolName:e,isNetwork:l,suspendPayload:g?.suspendPayload,toolCalled:v});if(a){const b=n?.mode==="stream"||n?.mode==="network";return p.jsx(jPr,{workflowId:u,isStreaming:b,result:t,metadata:n,toolCallId:i,toolApprovalMetadata:m,suspendPayload:g?.suspendPayload,toolName:e,isNetwork:l,toolCalled:v})}return p.jsx(T2r,{toolName:e,args:r,result:t,toolOutput:t?.toolOutput||[],metadata:n,toolCallId:i,toolApprovalMetadata:m,suspendPayload:g?.suspendPayload,isNetwork:l,toolCalled:v})},VPr=({text:e})=>{const[t,r]=E.useState(!1);return p.jsxs("div",{className:"mb-2 space-y-2",children:[p.jsxs("button",{onClick:()=>r(n=>!n),className:"flex items-center gap-2",children:[p.jsx(He,{children:p.jsx(NN,{className:ie("transition-all",t?"rotate-90":"rotate-180")})}),p.jsxs(sr,{icon:p.jsx(HCe,{}),children:[t?"Show":"Hide"," reasoning"]})]}),t?null:p.jsx("div",{className:"rounded-lg bg-surface4 p-2 border border-border-1",children:p.jsx("pre",{className:"whitespace-pre-wrap text-ui-sm leading-ui-sm text-neutral6",children:e})})]})},kxe=e=>p.jsx("svg",{className:"h-3 w-3",viewBox:"0 0 320 320",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",...e,children:p.jsx("path",{d:"m297.06 130.97c7.26-21.79 4.76-45.66-6.85-65.48-17.46-30.4-52.56-46.04-86.84-38.68-15.25-17.18-37.16-26.95-60.13-26.81-35.04-.08-66.13 22.48-76.91 55.82-22.51 4.61-41.94 18.7-53.31 38.67-17.59 30.32-13.58 68.54 9.92 94.54-7.26 21.79-4.76 45.66 6.85 65.48 17.46 30.4 52.56 46.04 86.84 38.68 15.24 17.18 37.16 26.95 60.13 26.8 35.06.09 66.16-22.49 76.94-55.86 22.51-4.61 41.94-18.7 53.31-38.67 17.57-30.32 13.55-68.51-9.94-94.51zm-120.28 168.11c-14.03.02-27.62-4.89-38.39-13.88.49-.26 1.34-.73 1.89-1.07l63.72-36.8c3.26-1.85 5.26-5.32 5.24-9.07v-89.83l26.93 15.55c.29.14.48.42.52.74v74.39c-.04 33.08-26.83 59.9-59.91 59.97zm-128.84-55.03c-7.03-12.14-9.56-26.37-7.15-40.18.47.28 1.3.79 1.89 1.13l63.72 36.8c3.23 1.89 7.23 1.89 10.47 0l77.79-44.92v31.1c.02.32-.13.63-.38.83l-64.41 37.19c-28.69 16.52-65.33 6.7-81.92-21.95zm-16.77-139.09c7-12.16 18.05-21.46 31.21-26.29 0 .55-.03 1.52-.03 2.2v73.61c-.02 3.74 1.98 7.21 5.23 9.06l77.79 44.91-26.93 15.55c-.27.18-.61.21-.91.08l-64.42-37.22c-28.63-16.58-38.45-53.21-21.95-81.89zm221.26 51.49-77.79-44.92 26.93-15.54c.27-.18.61-.21.91-.08l64.42 37.19c28.68 16.57 38.51 53.26 21.94 81.94-7.01 12.14-18.05 21.44-31.2 26.28v-75.81c.03-3.74-1.96-7.2-5.2-9.06zm26.8-40.34c-.47-.29-1.3-.79-1.89-1.13l-63.72-36.8c-3.23-1.89-7.23-1.89-10.47 0l-77.79 44.92v-31.1c-.02-.32.13-.63.38-.83l64.41-37.16c28.69-16.55 65.37-6.7 81.91 22 6.99 12.12 9.52 26.31 7.15 40.1zm-168.51 55.43-26.94-15.55c-.29-.14-.48-.42-.52-.74v-74.39c.02-33.12 26.89-59.96 60.01-59.94 14.01 0 27.57 4.92 38.34 13.88-.49.26-1.33.73-1.89 1.07l-63.72 36.8c-3.26 1.85-5.26 5.31-5.24 9.06l-.04 89.79zm14.63-31.54 34.65-20.01 34.65 20v40.01l-34.65 20-34.65-20z"})}),UPr=e=>p.jsx("svg",{className:"h-3 w-3",viewBox:"0 0 320 320",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",...e,children:p.jsx("path",{d:"m297.06 130.97c7.26-21.79 4.76-45.66-6.85-65.48-17.46-30.4-52.56-46.04-86.84-38.68-15.25-17.18-37.16-26.95-60.13-26.81-35.04-.08-66.13 22.48-76.91 55.82-22.51 4.61-41.94 18.7-53.31 38.67-17.59 30.32-13.58 68.54 9.92 94.54-7.26 21.79-4.76 45.66 6.85 65.48 17.46 30.4 52.56 46.04 86.84 38.68 15.24 17.18 37.16 26.95 60.13 26.8 35.06.09 66.16-22.49 76.94-55.86 22.51-4.61 41.94-18.7 53.31-38.67 17.57-30.32 13.55-68.51-9.94-94.51zm-120.28 168.11c-14.03.02-27.62-4.89-38.39-13.88.49-.26 1.34-.73 1.89-1.07l63.72-36.8c3.26-1.85 5.26-5.32 5.24-9.07v-89.83l26.93 15.55c.29.14.48.42.52.74v74.39c-.04 33.08-26.83 59.9-59.91 59.97zm-128.84-55.03c-7.03-12.14-9.56-26.37-7.15-40.18.47.28 1.3.79 1.89 1.13l63.72 36.8c3.23 1.89 7.23 1.89 10.47 0l77.79-44.92v31.1c.02.32-.13.63-.38.83l-64.41 37.19c-28.69 16.52-65.33 6.7-81.92-21.95zm-16.77-139.09c7-12.16 18.05-21.46 31.21-26.29 0 .55-.03 1.52-.03 2.2v73.61c-.02 3.74 1.98 7.21 5.23 9.06l77.79 44.91-26.93 15.55c-.27.18-.61.21-.91.08l-64.42-37.22c-28.63-16.58-38.45-53.21-21.95-81.89zm221.26 51.49-77.79-44.92 26.93-15.54c.27-.18.61-.21.91-.08l64.42 37.19c28.68 16.57 38.51 53.26 21.94 81.94-7.01 12.14-18.05 21.44-31.2 26.28v-75.81c.03-3.74-1.96-7.2-5.2-9.06zm26.8-40.34c-.47-.29-1.3-.79-1.89-1.13l-63.72-36.8c-3.23-1.89-7.23-1.89-10.47 0l-77.79 44.92v-31.1c-.02-.32.13-.63.38-.83l64.41-37.16c28.69-16.55 65.37-6.7 81.91 22 6.99 12.12 9.52 26.31 7.15 40.1zm-168.51 55.43-26.94-15.55c-.29-.14-.48-.42-.52-.74v-74.39c.02-33.12 26.89-59.96 60.01-59.94 14.01 0 27.57 4.92 38.34 13.88-.49.26-1.33.73-1.89 1.07l-63.72 36.8c-3.26 1.85-5.26 5.31-5.24 9.06l-.04 89.79zm14.63-31.54 34.65-20.01 34.65 20v40.01l-34.65 20-34.65-20z"})}),QPr=e=>p.jsx("svg",{className:"h-3 w-3",fill:"white",height:"78",strokeLinejoin:"round",viewBox:"0 0 16 16",width:"78",style:{color:"currentcolor"},...e,children:p.jsx("g",{transform:"translate(0,2)",children:p.jsx("path",{d:"M11.375 0h-2.411L13.352 11.13h2.411L11.375 0ZM4.4 0 0 11.13h2.46l0.9-2.336h4.604l0.9 2.336h2.46L6.924 0H4.4Zm-0.244 6.723 1.506-3.909 1.506 3.909H4.156Z",fill:"currentColor"})})}),ZPr=e=>p.jsx("svg",{className:"h-3 w-3",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",...e,children:p.jsx("path",{d:"M7.402 13.8777C9.45763 13.4674 11.1555 13.128 11.175 13.1233L11.2104 13.1148L9.2697 10.507C8.2023 9.07276 7.32898 7.8937 7.32898 7.88691C7.32898 7.87404 9.33293 1.63997 9.3442 1.61779C9.34797 1.61037 10.7117 4.27017 12.65 8.06532C14.4647 11.6184 15.9608 14.5479 15.9747 14.5754L16 14.6253L9.83224 14.6244L3.66449 14.6235L7.402 13.8777ZM0 13.0824C0 13.0787 0.914457 11.2855 2.03212 9.09735L4.06425 5.11896L6.43245 2.87384C7.73497 1.63902 8.80417 0.627201 8.80845 0.625356C8.81274 0.623511 8.79561 0.672228 8.77038 0.733617C8.74515 0.795006 7.58796 3.59893 6.19884 6.96455L3.67317 13.0839L1.83659 13.0865C0.826464 13.0879 0 13.0861 0 13.0824Z",fill:"#0089D6",style:{fill:"#0089D6",fillOpacity:1}})}),qPr=e=>p.jsxs("svg",{className:"h-3 w-3",width:"16",height:"16",viewBox:"0 0 181 108",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[p.jsxs("g",{clipPath:"url(#clip0_1480_1723)",children:[p.jsx("path",{d:"M51.2203 39.3158C51.2203 41.5066 51.4572 43.2829 51.8717 44.5856C52.3453 45.8882 52.9374 47.3093 53.7664 48.8487C54.0624 49.3224 54.1809 49.7961 54.1809 50.2106C54.1809 50.8027 53.8256 51.3948 53.0559 51.9869L49.3256 54.4737C48.7927 54.829 48.2598 55.0066 47.7861 55.0066C47.194 55.0066 46.6019 54.7106 46.0098 54.1777C45.1809 53.2895 44.4703 52.3422 43.8782 51.3948C43.2861 50.3882 42.694 49.2632 42.0427 47.9014C37.4243 53.3487 31.6217 56.0724 24.6348 56.0724C19.6611 56.0724 15.694 54.6514 12.7927 51.8093C9.8914 48.9672 8.41113 45.1777 8.41113 40.4408C8.41113 35.4079 10.1874 31.3224 13.7993 28.2435C17.4111 25.1645 22.2072 23.6251 28.3059 23.6251C30.319 23.6251 32.3914 23.8027 34.5822 24.0987C36.773 24.3948 39.023 24.8685 41.3914 25.4014V21.079C41.3914 16.579 40.444 13.4408 38.6085 11.6053C36.7138 9.76979 33.5164 8.88163 28.9572 8.88163C26.8848 8.88163 24.7532 9.11847 22.5624 9.65137C20.3717 10.1843 18.2401 10.8356 16.1677 11.6645C15.2203 12.079 14.5098 12.3158 14.0953 12.4343C13.6809 12.5527 13.3848 12.6119 13.148 12.6119C12.319 12.6119 11.9046 12.0198 11.9046 10.7764V7.87505C11.9046 6.92768 12.023 6.21716 12.319 5.80268C12.6151 5.38821 13.148 4.97374 13.9769 4.55926C16.0493 3.49347 18.5361 2.60531 21.4374 1.89479C24.3388 1.12505 27.4177 0.769788 30.6743 0.769788C37.7203 0.769788 42.8717 2.36847 46.1875 5.56584C49.444 8.76321 51.1019 13.6185 51.1019 20.1316V39.3158H51.2203ZM27.1809 48.3158C29.1348 48.3158 31.148 47.9606 33.2796 47.2501C35.4111 46.5395 37.3059 45.2369 38.9046 43.4606C39.8519 42.3356 40.5625 41.0922 40.9177 39.6711C41.273 38.2501 41.5098 36.5329 41.5098 34.5198V32.0329C39.7927 31.6185 37.9572 31.2632 36.0624 31.0264C34.1677 30.7895 32.3322 30.6711 30.4967 30.6711C26.5296 30.6711 23.6282 31.4408 21.6743 33.0395C19.7203 34.6382 18.773 36.8882 18.773 39.8487C18.773 42.6316 19.4835 44.704 20.9638 46.1251C22.3848 47.6053 24.4572 48.3158 27.1809 48.3158ZM74.7269 54.7106C73.6611 54.7106 72.9506 54.5329 72.4769 54.1185C72.0032 53.7632 71.5888 52.9343 71.2335 51.8093L57.319 6.03953C56.9638 4.85531 56.7861 4.08558 56.7861 3.6711C56.7861 2.72374 57.2598 2.19084 58.2072 2.19084H64.0098C65.1348 2.19084 65.9046 2.36847 66.319 2.78295C66.7927 3.13821 67.148 3.96716 67.5032 5.09216L77.4506 44.2895L86.6874 5.09216C86.9835 3.90795 87.3388 3.13821 87.8124 2.78295C88.2861 2.42768 89.1151 2.19084 90.1809 2.19084H94.9177C96.0427 2.19084 96.8124 2.36847 97.2861 2.78295C97.7598 3.13821 98.1743 3.96716 98.4111 5.09216L107.766 44.7632L118.01 5.09216C118.365 3.90795 118.78 3.13821 119.194 2.78295C119.668 2.42768 120.437 2.19084 121.503 2.19084H127.01C127.957 2.19084 128.49 2.66453 128.49 3.6711C128.49 3.96716 128.431 4.26321 128.372 4.61847C128.312 4.97374 128.194 5.44742 127.957 6.09874L113.687 51.8685C113.332 53.0527 112.918 53.8224 112.444 54.1777C111.97 54.5329 111.201 54.7698 110.194 54.7698H105.102C103.977 54.7698 103.207 54.5922 102.733 54.1777C102.26 53.7632 101.845 52.9935 101.608 51.8093L92.4309 13.6185L83.3125 51.7501C83.0164 52.9343 82.6611 53.704 82.1874 54.1185C81.7138 54.5329 80.8848 54.7106 79.819 54.7106H74.7269ZM150.812 56.3093C147.734 56.3093 144.655 55.954 141.694 55.2435C138.733 54.5329 136.424 53.7632 134.885 52.8751C133.937 52.3422 133.286 51.7501 133.049 51.2172C132.812 50.6843 132.694 50.0922 132.694 49.5593V46.5395C132.694 45.2961 133.168 44.704 134.056 44.704C134.411 44.704 134.766 44.7632 135.122 44.8816C135.477 45.0001 136.01 45.2369 136.602 45.4737C138.615 46.3619 140.806 47.0724 143.115 47.5461C145.484 48.0198 147.793 48.2566 150.161 48.2566C153.891 48.2566 156.793 47.6053 158.806 46.3027C160.819 45 161.885 43.1053 161.885 40.6777C161.885 39.0198 161.352 37.6579 160.286 36.5329C159.22 35.4079 157.207 34.4014 154.306 33.454L145.72 30.7895C141.398 29.4277 138.201 27.4145 136.247 24.7501C134.293 22.1448 133.286 19.2435 133.286 16.1645C133.286 13.6777 133.819 11.4869 134.885 9.59216C135.951 7.69742 137.372 6.03953 139.148 4.73689C140.924 3.37505 142.937 2.36847 145.306 1.65795C147.674 0.94742 150.161 0.651367 152.766 0.651367C154.069 0.651367 155.431 0.710578 156.734 0.888209C158.095 1.06584 159.339 1.30268 160.582 1.53953C161.766 1.83558 162.891 2.13163 163.957 2.48689C165.023 2.84216 165.852 3.19742 166.444 3.55268C167.273 4.02637 167.865 4.50005 168.22 5.03295C168.576 5.50663 168.753 6.15795 168.753 6.98689V9.76979C168.753 11.0132 168.28 11.6645 167.391 11.6645C166.918 11.6645 166.148 11.4277 165.141 10.954C161.766 9.41453 157.977 8.64479 153.773 8.64479C150.398 8.64479 147.734 9.17768 145.898 10.3027C144.062 11.4277 143.115 13.1448 143.115 15.5724C143.115 17.2303 143.707 18.6514 144.891 19.7764C146.076 20.9014 148.266 22.0264 151.405 23.0329L159.812 25.6974C164.076 27.0593 167.155 28.954 168.99 31.3816C170.826 33.8093 171.714 36.5922 171.714 39.6711C171.714 42.2172 171.181 44.5264 170.174 46.5395C169.108 48.5527 167.687 50.329 165.852 51.7501C164.016 53.2303 161.826 54.2961 159.28 55.0658C156.615 55.8948 153.832 56.3093 150.812 56.3093Z",fill:"currentColor"}),p.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M162.004 85.0856C142.524 99.4738 114.221 107.112 89.8855 107.112C55.7803 107.112 25.05 94.5001 1.83948 73.5396C0.00394917 71.8817 1.66184 69.6317 3.85263 70.9343C28.9579 85.5001 59.925 94.3225 91.9579 94.3225C113.57 94.3225 137.313 89.8225 159.162 80.5856C162.418 79.1054 165.201 82.7172 162.004 85.0856Z",fill:"#FF9900"}),p.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M170.115 75.8487C167.628 72.6513 153.654 74.3092 147.319 75.079C145.424 75.3158 145.128 73.6579 146.845 72.4145C157.976 64.5987 176.272 66.8487 178.404 69.454C180.536 72.1184 177.812 90.4145 167.391 99.1776C165.792 100.539 164.253 99.8289 164.963 98.0526C167.332 92.1908 172.601 78.9868 170.115 75.8487Z",fill:"#FF9900"})]}),p.jsx("defs",{children:p.jsx("clipPath",{id:"clip0_1480_1723",children:p.jsx("rect",{width:"180",height:"107.763",fill:"white",transform:"translate(0.0625)"})})})]}),HPr=e=>p.jsxs("svg",{className:"h-3 w-3",xmlns:"http://www.w3.org/2000/svg",width:"17",height:"18",fill:"none",...e,children:[p.jsx("mask",{id:"mask0_174_2406",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"17",height:"18",children:p.jsx("path",{d:"M17 0.5H0V17.5H17V0.5Z",fill:"white"})}),p.jsxs("g",{mask:"url(#mask0_174_2406)",children:[p.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.50773 10.6219C5.9653 10.6219 6.8755 10.5968 8.13362 10.0788C9.59973 9.47518 12.5166 8.37942 14.6208 7.2539C16.0924 6.46668 16.7375 5.42553 16.7375 4.02344C16.7375 2.07751 15.16 0.5 13.2141 0.5H5.06095C2.26586 0.5 0 2.76586 0 5.56095C0 8.35604 2.12151 10.6219 5.50773 10.6219Z",fill:"#39594D"}),p.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.88672 14.107C6.88672 12.7369 7.71155 11.5016 8.97699 10.9764L11.5446 9.9108C14.1417 8.83294 17.0003 10.7415 17.0003 13.5535C17.0003 15.732 15.2339 17.4979 13.0553 17.4973L10.2754 17.4966C8.40372 17.4961 6.88672 15.9787 6.88672 14.107Z",fill:"#D18EE2"}),p.jsx("path",{d:"M2.91749 11.2891C1.30623 11.2891 0 12.5952 0 14.2065V14.5844C0 16.1956 1.30618 17.5018 2.91744 17.5018C4.5287 17.5018 5.83493 16.1956 5.83493 14.5844V14.2065C5.83493 12.5952 4.52875 11.2891 2.91749 11.2891Z",fill:"#FF7759"})]})]}),WPr=e=>p.jsxs("svg",{className:"h-3 w-3","data-testid":"geist-icon",height:"78",strokeLinejoin:"round",viewBox:"0 0 160 59",width:"104",style:{color:"currentcolor"},...e,children:[p.jsx("mask",{id:"mask0_4345_1846",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"160",height:"59",style:{maskType:"luminance"},children:p.jsx("path",{d:"M0.273438 0.219727H159.216V58.1817H0.273438V0.219727Z",fill:"white"})}),p.jsx("g",{mask:"url(#mask0_4345_1846)",children:p.jsx("path",{d:"M95.4635 0.314595C84.4822 0.314595 75.5599 9.19525 75.5599 20.1677C75.5599 31.1402 84.4632 40.0208 95.4635 40.0208C106.464 40.0208 115.367 31.1402 115.367 20.1677C115.348 9.21427 106.445 0.333611 95.4635 0.314595ZM95.4635 32.5664C88.6002 32.5664 83.0333 27.0136 83.0333 20.1677C83.0333 13.3218 88.6002 7.76902 95.4635 7.76902C102.327 7.76902 107.894 13.3218 107.894 20.1677C107.894 27.0136 102.327 32.5664 95.4635 32.5664ZM67.9912 0.39066C67.3049 0.314595 66.6376 0.276562 65.9513 0.276562C65.6081 0.276562 65.284 0.276562 64.9599 0.295578C64.6358 0.314595 64.2926 0.333611 63.9685 0.352628C62.634 0.44771 61.2995 0.675906 60.0031 1.03722C57.3531 1.74082 54.8556 2.99591 52.7013 4.68836C50.4898 6.43787 48.7358 8.68181 47.5347 11.23C46.9437 12.5041 46.5052 13.8543 46.2193 15.2234C46.0858 15.908 45.9905 16.5926 45.9142 17.2772C45.8952 17.6195 45.857 17.9618 45.857 18.3041L45.838 18.8175V19.293L45.8761 32.5854L45.9142 39.2221H53.3685L53.4067 32.5854L53.4448 19.293V18.5893C53.4448 18.3802 53.4829 18.171 53.4829 17.9618C53.5211 17.5434 53.5973 17.1441 53.6736 16.7257C53.8452 15.9271 54.093 15.1474 54.4362 14.4057C55.1225 12.9225 56.152 11.6293 57.4293 10.6025C58.7639 9.53755 60.3081 8.75787 61.9477 8.3205C62.7865 8.0923 63.6635 7.94017 64.5405 7.8641C64.7693 7.84509 64.979 7.82607 65.2078 7.82607C65.4365 7.82607 65.6653 7.80705 65.875 7.80705C66.2944 7.80705 66.7329 7.82607 67.1524 7.8641C68.8491 8.03525 70.4887 8.54869 71.9948 9.38541L75.7124 2.93886C73.3484 1.56968 70.7175 0.694923 67.9912 0.39066ZM20.3484 0.219513C9.36711 0.124431 0.36855 8.92902 0.273226 19.8825C0.177902 30.8359 9.00488 39.8116 19.9862 39.9067H26.8876V32.4713H20.3484C13.4851 32.5474 7.84193 27.0707 7.76567 20.2057C7.68941 13.3408 13.1801 7.73099 20.0624 7.65492H20.3484C27.2117 7.65492 32.7786 13.2077 32.8167 20.0536V38.3284C32.8167 45.1172 27.2689 50.651 20.4819 50.7271C17.2218 50.708 14.1142 49.3959 11.8265 47.0949L6.54553 52.3625C10.206 56.0326 15.1628 58.1244 20.3484 58.1625H20.6153C31.4632 58.0103 40.1757 49.2248 40.2329 38.4044V19.5592C39.966 8.81492 31.1391 0.238529 20.3484 0.219513ZM139.389 0.314595C128.407 0.314595 119.485 9.19525 119.504 20.1677C119.504 31.1212 128.407 40.0018 139.389 40.0018H146.195V32.5664H139.389C132.525 32.5664 126.958 27.0136 126.958 20.1677C126.958 13.3218 132.525 7.76902 139.389 7.76902C145.833 7.76902 151.209 12.6943 151.781 19.1028H151.762V57.2116H159.216V20.1677C159.216 9.21427 150.351 0.314595 139.389 0.314595Z",fill:"currentColor"})})]}),GPr=e=>p.jsx("svg",{className:"h-3 w-3",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1000 1000",width:"78",height:"78",style:{color:"currentcolor"},...e,children:p.jsxs("g",{children:[p.jsx("polygon",{fill:"currentColor",points:"226.83 411.15 501.31 803.15 623.31 803.15 348.82 411.15 226.83 411.15"}),p.jsx("polygon",{fill:"currentColor",points:"348.72 628.87 226.69 803.15 348.77 803.15 409.76 716.05 348.72 628.87"}),p.jsx("polygon",{fill:"currentColor",points:"651.23 196.85 440.28 498.12 501.32 585.29 773.31 196.85 651.23 196.85"}),p.jsx("polygon",{fill:"currentColor",points:"673.31 383.25 673.31 803.15 773.31 803.15 773.31 240.44 673.31 383.25"})]})}),XPr=e=>p.jsxs("svg",{className:"h-3 w-3",xmlns:"http://www.w3.org/2000/svg",width:"176",height:"162",viewBox:"0 0 176 162",fill:"none",...e,children:[p.jsx("rect",{x:"15",y:"1",width:"32",height:"32",fill:"#FFCD00",stroke:"#636363","stroke-opacity":"0.2",strokeWidth:"0.5"}),p.jsx("rect",{x:"143",y:"1",width:"32",height:"32",fill:"#FFCD00",stroke:"#636363","stroke-opacity":"0.2",strokeWidth:"0.5"}),p.jsx("rect",{x:"15",y:"33",width:"32",height:"32",fill:"#FFA400",stroke:"#636363","stroke-opacity":"0.2",strokeWidth:"0.5"}),p.jsx("rect",{x:"47",y:"33",width:"32",height:"32",fill:"#FFA400",stroke:"#636363","stroke-opacity":"0.2",strokeWidth:"0.5"}),p.jsx("rect",{x:"111",y:"33",width:"32",height:"32",fill:"#FFA400",stroke:"#636363","stroke-opacity":"0.2",strokeWidth:"0.5"}),p.jsx("rect",{x:"143",y:"33",width:"32",height:"32",fill:"#FFA400",stroke:"#636363","stroke-opacity":"0.2",strokeWidth:"0.5"}),p.jsx("rect",{x:"15",y:"65",width:"32",height:"32",fill:"#FF7100",stroke:"#636363","stroke-opacity":"0.2",strokeWidth:"0.5"}),p.jsx("rect",{x:"47",y:"65",width:"32",height:"32",fill:"#FF7100",stroke:"#636363","stroke-opacity":"0.2",strokeWidth:"0.5"}),p.jsx("rect",{x:"79",y:"65",width:"32",height:"32",fill:"#FF7100",stroke:"#636363","stroke-opacity":"0.2",strokeWidth:"0.5"}),p.jsx("rect",{x:"111",y:"65",width:"32",height:"32",fill:"#FF7100",stroke:"#636363","stroke-opacity":"0.2",strokeWidth:"0.5"}),p.jsx("rect",{x:"143",y:"65",width:"32",height:"32",fill:"#FF7100",stroke:"#636363","stroke-opacity":"0.2",strokeWidth:"0.5"}),p.jsx("rect",{x:"15",y:"97",width:"32",height:"32",fill:"#FF4902",stroke:"#636363","stroke-opacity":"0.2",strokeWidth:"0.5"}),p.jsx("rect",{x:"79",y:"97",width:"32",height:"32",fill:"#FF4902",stroke:"#636363","stroke-opacity":"0.2",strokeWidth:"0.5"}),p.jsx("rect",{x:"143",y:"97",width:"32",height:"32",fill:"#FF4902",stroke:"#636363","stroke-opacity":"0.2",strokeWidth:"0.5"}),p.jsx("rect",{x:"15",y:"129",width:"32",height:"32",fill:"#FF0006",stroke:"#636363","stroke-opacity":"0.2",strokeWidth:"0.5"}),p.jsx("rect",{x:"143",y:"129",width:"32",height:"32",fill:"#FF0006",stroke:"#636363","stroke-opacity":"0.2",strokeWidth:"0.5"}),p.jsx("rect",{y:"1",width:"16",height:"160",fill:"black"}),p.jsx("rect",{x:"63",y:"97",width:"16",height:"32",fill:"black"}),p.jsx("rect",{x:"95",y:"33",width:"16",height:"32",fill:"black"}),p.jsx("rect",{x:"127",y:"1",width:"16",height:"32",fill:"black"}),p.jsx("rect",{x:"127",y:"97",width:"16",height:"64",fill:"black"})]}),YPr=e=>p.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"128",height:"113",viewBox:"0 0 128 113",children:[p.jsxs("g",{clipPath:"url(#clip0_236_138)",...e,children:[p.jsx("path",{d:"M34.593 94.0509H33.3844L27.3514 88.0179V86.8094L36.5743 77.5866H42.9639L43.8158 78.4385V84.8281L34.593 94.0509Z",fill:e.fill||"#05BDBA"}),p.jsx("path",{d:"M27.3514 25.816V24.6074L33.3844 18.5744H34.593L43.8158 27.7972V34.1868L42.9639 35.0388H36.5743L27.3514 25.816Z",fill:e.fill||"#05BDBA"}),p.jsx("path",{d:"M80.4594 74.6047H71.6824L70.9493 73.8717V53.3259C70.9493 49.6705 69.5129 46.8372 65.1046 46.7382C62.836 46.6787 60.2405 46.7382 57.4668 46.8471L57.0507 47.2731V73.8618L56.3176 74.5948H47.5406L46.8075 73.8618V38.7636L47.5406 38.0305H67.2939C74.9713 38.0305 81.1925 44.2517 81.1925 51.9291V73.8717L80.4594 74.6047Z",fill:e.fill||"#014847"}),p.jsx("path",{d:"M35.8412 61.4491H0.73307L0 60.716V51.9192L0.73307 51.1861H35.8412L36.5743 51.9192V60.716L35.8412 61.4491Z",fill:e.fill||"#05BDBA"}),p.jsx("path",{d:"M127.277 61.4491H92.1687L91.4356 60.716V51.9192L92.1687 51.1861H127.277L128.01 51.9192V60.716L127.277 61.4491Z",fill:e.fill||"#05BDBA"}),p.jsx("path",{d:"M58.9428 27.0642V0.73307L59.6759 0H68.4727L69.2058 0.73307V27.0642L68.4727 27.7972H59.6759L58.9428 27.0642Z",fill:e.fill||"#05BDBA"}),p.jsx("path",{d:"M58.9428 111.902V85.5711L59.6759 84.838H68.4727L69.2058 85.5711V111.902L68.4727 112.635H59.6759L58.9428 111.902Z",fill:e.fill||"#05BDBA"})]}),p.jsx("defs",{children:p.jsx("clipPath",{id:"clip0_236_138",children:p.jsx("rect",{width:"128",height:"112.635",fill:"white"})})})]}),A4={"openai.chat":p.jsx(kxe,{}),"openai.responses":p.jsx(kxe,{}),"anthropic.chat":p.jsx(UPr,{}),"anthropic.messages":p.jsx(QPr,{}),AZURE:p.jsx(ZPr,{}),AMAZON:p.jsx(qPr,{}),GOOGLE:p.jsx(u2r,{}),COHERE:p.jsx(HPr,{}),GROQ:p.jsx(WPr,{}),X_GROK:p.jsx(GPr,{}),MISTRAL:p.jsx(XPr,{}),netlify:p.jsx(YPr,{fill:"white"})},cf=e=>e.includes(".")?e.split(".")[0]:e,GZ=({providerId:e,className:t="",size:r=20})=>{const[n,i]=E.useState(!1),s=cf(e),o=s.replace(/\//g,"-").toLowerCase(),l=(u=>({openai:"openai.chat",anthropic:"anthropic.messages",google:"GOOGLE",xai:"X_GROK",groq:"GROQ",deepseek:"deepseek",together:"together",mistral:"mistral",perplexity:"perplexity",fireworks_ai:"fireworks",openrouter:"openrouter",netlify:"netlify"})[u]||"DEFAULT")(s);return["netlify"].includes(o)||n||!e?A4[l]?p.jsx(He,{children:A4[l]}):p.jsx("div",{className:`w-[${r}px] h-[${r}px] bg-gray-200 rounded ${t}`}):p.jsx("img",{src:`https://models.dev/logos/${o}.svg`,alt:`${e} logo`,width:r,height:r,className:t,onError:()=>i(!0),loading:"lazy",style:{width:`${r}px`,height:`${r}px`,objectFit:"contain",filter:"brightness(0) invert(1)",opacity:.9}})},JPr=({hasModelList:e})=>{const t=yEe(),r=t.id,n=t.content.every(({type:o,metadata:a})=>o==="tool-call"||o==="reasoning"||o==="text"&&a?.mode==="network"&&a?.completionResult),i=t.metadata?.custom?.modelMetadata,s=e&&i;return p.jsxs(ZW,{className:"max-w-full","data-message-id":r,children:[p.jsx("div",{className:"text-neutral6 text-ui-lg leading-ui-lg",children:p.jsx(qW,{components:{Text:w2r,tools:{Fallback:eqe},Reasoning:VPr}})}),!n&&p.jsxs("div",{className:ie("h-6 pt-4 flex gap-2 items-center",{"pb-1":s}),children:[s&&p.jsxs("div",{className:"flex items-center gap-1.5",children:[p.jsx(GZ,{providerId:i.modelProvider,size:14}),p.jsxs("span",{className:"text-ui-xs leading-ui-xs",children:[i.modelProvider,"/",i.modelId]})]}),p.jsx(KPr,{})]})]})},KPr=()=>p.jsxs(TEe,{hideWhenRunning:!0,autohide:"always",autohideFloat:"single-branch",className:"flex gap-1 items-center transition-all relative",children:[p.jsx(h_,{speaking:!1,children:p.jsx(Mst,{asChild:!0,children:p.jsx(dd,{tooltip:"Read aloud",children:p.jsx(Nct,{})})})}),p.jsx(h_,{speaking:!0,children:p.jsx(AEe,{asChild:!0,children:p.jsx(dd,{tooltip:"Stop",children:p.jsx(YCe,{})})})}),p.jsx(DEe,{asChild:!0,children:p.jsxs(dd,{tooltip:"Copy",className:"bg-transparent text-neutral3 hover:text-neutral6",children:[p.jsx(h_,{copied:!0,children:p.jsx(yd,{})}),p.jsx(h_,{copied:!1,children:p.jsx(nu,{})})]})})]}),P4="h-full w-full flex items-center justify-center",tqe=({data:e,url:t})=>{const[r,n]=E.useState(!1);return t?p.jsx("a",{href:t,className:P4,target:"_blank",rel:"noreferrer noopener",children:p.jsx(NB,{className:"text-accent2","aria-label":"View PDF"})}):p.jsxs(p.Fragment,{children:[p.jsx("button",{onClick:()=>n(!0),className:P4,type:"button",children:p.jsx(NB,{className:"text-accent2","aria-label":"View PDF"})}),p.jsx(e$r,{data:e,open:r,onOpenChange:n})]})},e$r=({data:e,open:t,onOpenChange:r})=>p.jsx(Uo,{open:t,onOpenChange:r,children:p.jsxs(bo,{className:"max-w-4xl",children:[p.jsxs(xo,{children:[p.jsx(So,{children:"PDF preview"}),p.jsx(Oo,{children:"Preview of the PDF document"})]}),p.jsx(wo,{children:t&&p.jsx("iframe",{src:e,width:"100%",height:"600px"})})]})}),rqe=({src:e})=>{const[t,r]=E.useState(!1);return p.jsxs(p.Fragment,{children:[p.jsx("button",{onClick:()=>r(!0),type:"button",className:P4,children:p.jsx("img",{src:e,className:"object-cover aspect-ratio max-h-[140px] max-w-[320px]",alt:"Preview"})}),p.jsx(t$r,{src:e,open:t,onOpenChange:r})]})},t$r=({src:e,open:t,onOpenChange:r})=>p.jsx(Uo,{open:t,onOpenChange:r,children:p.jsxs(bo,{className:"max-w-4xl",children:[p.jsxs(xo,{children:[p.jsx(So,{children:"Image preview"}),p.jsx(Oo,{children:"Preview of the image"})]}),p.jsx(wo,{children:t&&p.jsx("img",{src:e,alt:"Image"})})]})}),nqe=({data:e})=>{const[t,r]=E.useState(!1),n=e.replace(/<attachment[^>]*>/,"").replace(/<\/attachment>/g,"");return p.jsxs(p.Fragment,{children:[p.jsx("button",{onClick:()=>r(!0),className:P4,type:"button",children:p.jsx(NB,{className:"text-neutral3"})}),p.jsx(r$r,{data:n,open:t,onOpenChange:r})]})},r$r=({data:e,open:t,onOpenChange:r})=>p.jsx(Uo,{open:t,onOpenChange:r,children:p.jsxs(bo,{className:"max-w-4xl h-[80vh]",children:[p.jsxs(xo,{children:[p.jsx(So,{children:"Text preview"}),p.jsx(Oo,{children:"Preview of the text file"})]}),p.jsx(wo,{children:t&&p.jsx("div",{className:"whitespace-pre-wrap",children:e})})]})}),Qz=({type:e,contentType:t,nameSlot:r,src:n,data:i})=>p.jsx(FN,{children:p.jsxs($i,{children:[p.jsx(Ii,{asChild:!0,children:p.jsx("div",{className:"h-full w-full overflow-hidden rounded-lg",children:e==="image"?p.jsx(rqe,{src:n??""}):e==="document"&&t==="application/pdf"?p.jsx(tqe,{data:i??"",url:n}):p.jsx(nqe,{data:i??""})})}),p.jsx(gi,{side:"top",children:r})]})}),n$r=()=>{const t=yEe()?.id;return p.jsx(ZW,{className:"w-full flex items-end pb-4 flex-col","data-message-id":t,children:p.jsx("div",{className:"max-w-[366px] px-5 py-3 text-neutral6 text-ui-lg leading-ui-lg rounded-lg bg-surface3",children:p.jsx(qW,{components:{File:r=>{const n=r.data,i=n?.startsWith("https://");return p.jsx(Qz,{type:"document",contentType:r.mimeType,nameSlot:"Unknown filename",src:i?n:void 0,data:r.data})},Image:r=>p.jsx(Qz,{type:"image",nameSlot:"Unknown filename",src:r.image}),Text:r=>r.text.includes("<attachment name=")?p.jsx(Qz,{type:"document",contentType:"text/plain",nameSlot:"Unknown filename",src:void 0,data:r.text}):r.text}})})})};async function i$r(e){const t=await navigator.mediaDevices.getUserMedia({audio:!0}),r=new MediaRecorder(t);let n=[];return r.ondataavailable=i=>{n.push(i.data)},r.onstop=()=>{const i=new Blob(n,{type:"audio/webm"}),s=new File([i],`recording-${Date.now()}.webm`,{type:"audio/webm",lastModified:Date.now()});t.getTracks().forEach(o=>o.stop()),e(s)},r}const s$r=({language:e="en-US",agentId:t})=>{const r=or(),[n,i]=E.useState(null),{requestContext:s}=wi();E.useEffect(()=>{if(!t)return;const g=r.getAgent(t);(async()=>{try{(await g.voice.getSpeakers(s)).length>0?i(g):i(null)}catch{i(null)}})()},[t]);const{start:o,stop:a,isListening:l,transcript:c}=o$r({language:e}),{start:u,stop:d,isListening:f,transcript:m}=a$r({agent:n});return n?{start:u,stop:d,isListening:f,transcript:m}:{start:o,stop:a,isListening:l,transcript:c}},o$r=({language:e="en-US"})=>{const t=E.useRef(null),[r,n]=E.useState({isListening:!1,transcript:"",error:null}),i=()=>{t.current&&t.current.start()},s=()=>{t.current&&t.current.stop()};return E.useEffect(()=>{if(!("webkitSpeechRecognition"in window)&&!("SpeechRecognition"in window)){n(l=>({...l,error:"Speech Recognition not supported in this browser"}));return}const o=window.SpeechRecognition||window.webkitSpeechRecognition,a=new o;t.current=a,a.continuous=!0,a.lang=e,a.onstart=()=>{n(l=>({...l,isListening:!0}))},a.onresult=l=>{let c="";for(let u=l.resultIndex;u<l.results.length;u++){const d=l.results[u][0].transcript;l.results[u].isFinal&&(c+=d+" ")}n(u=>({...u,transcript:c}))},a.onerror=l=>{n(c=>({...c,error:`Error: ${l.error}`}))},a.onend=()=>n(l=>({...l,isListening:!1}))},[e]),{...r,start:i,stop:s}},a$r=({agent:e})=>{const[t,r]=E.useState(""),[n,i]=E.useState(null);if(!e)return{start:()=>{},stop:()=>{},isListening:!1,transcript:""};const s=l=>{e.voice.listen(l).then(c=>{r(c.text)})};return{start:()=>{i$r(s).then(l=>{i(l),l.start()})},stop:()=>{n?.stop(),i(null)},isListening:!!n,transcript:t}},l$r=()=>{const e=gT(),[t,r]=E.useState(!1);return E.useEffect(()=>{e.subscribe(()=>{const n=e.getState().attachments;r(n.length>0)})},[e]),t},c$r=e=>{const[t,r]=E.useState(void 0);return E.useEffect(()=>{if(!e){r(void 0);return}const n=URL.createObjectURL(e);return r(n),()=>{URL.revokeObjectURL(n)}},[e]),t},u$r=()=>{const{file:e,src:t}=s$(ACe(r=>{if(r.file)return r.file.name.startsWith("https://")?{src:r.file.name}:{file:r.file};const n=r.content?.filter(i=>i.type==="image")[0]?.image;return n?{src:n}:{}}));return c$r(e)??t},d$r=e=>{const[t,r]=E.useState({isLoading:!1,text:""});return E.useEffect(()=>{if(!e)return;(async()=>{r(s=>({...s,isLoading:!0}));const i=await e.text();r(s=>({...s,isLoading:!1,text:i}))})()},[e]),t},iqe=async e=>new Promise((t,r)=>{const n=new FileReader;n.onload=()=>{const i=n.result;typeof i=="string"?t(i):r(new Error("Failed to convert file to base64."))},n.onerror=i=>{r(i)},n.readAsDataURL(e)}),f$r=({document:e})=>{const{isLoading:t,text:r}=d$r(e.file);return p.jsx("div",{className:"flex items-center justify-center h-full w-full",children:t?p.jsx(Aa,{className:"animate-spin"}):p.jsx(nqe,{data:r})})},p$r=({document:e})=>{const[t,r]=E.useState({isLoading:!1,text:""});E.useEffect(()=>{let i=!1;return(async()=>{if(!e.file)return;r(a=>({...a,isLoading:!0}));const o=await iqe(e.file);i||r(a=>({...a,isLoading:!1,text:o}))})(),()=>{i=!0}},[e]);const n=e.file?.name.startsWith("https://");return p.jsx("div",{className:"flex items-center justify-center h-full w-full",children:t.isLoading?p.jsx(Aa,{className:"animate-spin"}):p.jsx(tqe,{data:t.text,url:n?e.file?.name:void 0})})},h$r=()=>{const e=s$(o=>o.type==="image"),t=s$(o=>o.type==="document"?o:void 0),r=u$r(),n=s$(o=>o.source!=="message"),s=t?.file?.name.startsWith("https://")?t?.file?.name:r;return p.jsx(p.Fragment,{children:p.jsxs("div",{className:"relative",children:[p.jsx(FN,{children:p.jsxs($i,{children:[p.jsx(SCe,{children:p.jsx(Ii,{asChild:!0,children:p.jsx("div",{className:"overflow-hidden size-16 rounded-lg bg-surface3 border border-border1 ",children:e?p.jsx(rqe,{src:s??""}):t?.contentType==="application/pdf"?p.jsx(p$r,{document:t}):t?p.jsx(f$r,{document:t}):null})})}),p.jsx(gi,{side:"top",children:p.jsx(OCe,{})})]})}),n&&p.jsx(m$r,{})]})})},m$r=()=>p.jsx($lt,{asChild:!0,children:p.jsx(dd,{tooltip:"Remove file",className:"absolute -right-3 -top-3 text-neutral3 hover:text-neutral6 rounded-full bg-surface1 hover:bg-surface2 rounded-full p-1",side:"top",children:p.jsx(He,{children:p.jsx(JCe,{})})})}),g$r=()=>l$r()?p.jsx("div",{className:"flex w-full flex-row items-center gap-4 pb-2",children:p.jsx(MCe,{components:{Attachment:h$r}})}):null,y$r=({multiple:e=!0,onChange:t}={})=>{const r=Wit(s=>!s.isEditing),n=gT(),i=E.useCallback(()=>{const s=document.createElement("input");s.type="file",s.multiple=e,s.hidden=!0;const o=n.getState().attachmentAccept;o&&o!=="*"&&(s.accept=o),document.body.appendChild(s),s.onchange=a=>{const l=a.target.files;if(l){for(const c of l)n.addAttachment(c),t?.(Array.from(l));document.body.removeChild(s)}},s.oncancel=()=>{(!s.files||s.files.length===0)&&document.body.removeChild(s)},s.click()},[n,e]);if(!r)return i},v$r={jpg:"image/jpg",jpeg:"image/jpeg",png:"image/png",gif:"image/gif",webp:"image/webp",svg:"image/svg+xml",bmp:"image/bmp",ico:"image/x-icon",pdf:"application/pdf"},b$r=async e=>{try{const t=await fetch(e,{method:"HEAD"});if(!t.ok)throw new Error("Failed to get file content type");const r=t.headers.get("content-type");if(!r)throw new Error("Failed to get file content type");return r}catch{const n=new URL(e).pathname.split(".").pop();if(!n)return;const i=n.toLowerCase();return v$r[i]}},x$r=({onOpenChange:e,open:t})=>{const r=gT(),n=y$r({onChange:()=>e(!1)}),i=async s=>{s.preventDefault();const a=new FormData(s.target).get("url-attachment")?.toString();if(a){const l=new File([],a,{type:await b$r(a)});r.addAttachment(l),e(!1)}};return p.jsx(Uo,{onOpenChange:e,open:t,children:p.jsxs(bo,{children:[p.jsxs(xo,{children:[p.jsx(So,{children:"Add attachment"}),p.jsx(Oo,{children:"Add a file attachment via URL or from your computer"})]}),p.jsxs(wo,{children:[p.jsxs("form",{onSubmit:i,className:"flex flex-row items-end gap-4",children:[p.jsxs("div",{className:"w-full space-y-1",children:[p.jsx(kf,{htmlFor:"url-attachment",className:"text-neutral3 text-ui-md",children:"Public URL"}),p.jsx(ko,{type:"text",name:"url-attachment",id:"url-attachment",className:"w-full",placeholder:"https://placehold.co/600x400/png"})]}),p.jsxs(Ke,{type:"submit",className:"!h-8",variant:"light",children:[p.jsx(He,{children:p.jsx(sTe,{})}),"Add"]})]}),p.jsx("hr",{className:"my-2 border border-border1"}),p.jsxs("div",{className:"space-y-2",children:[p.jsx(Ye,{variant:"ui-md",className:"text-neutral3",children:"Or from your computer"}),p.jsxs("button",{onClick:n,className:"w-full h-40 border border-border1 rounded-lg text-neutral3 border-dashed flex flex-col items-center justify-center gap-2 hover:bg-surface2 active:bg-surface3",children:[p.jsx(Dut,{className:"size-12"}),p.jsx(Ye,{variant:"header-md",children:"Add a local file"})]})]})]})]})})},sqe=E.createContext({threadInput:"",setThreadInput:()=>{}}),w$r=({children:e})=>{const[t,r]=E.useState("");return p.jsx(sqe.Provider,{value:{threadInput:t,setThreadInput:r},children:e})},oqe=()=>E.useContext(sqe),S$r=({agentName:e,agentId:t,hasMemory:r,hasModelList:n})=>{const i=E.useRef(null);RZe(i,{enabled:!0});const s=o=>p.jsx(JPr,{...o,hasModelList:n});return p.jsxs(O$r,{children:[p.jsxs(zCe,{ref:i,autoScroll:!1,className:"overflow-y-scroll scroll-smooth h-full",children:[p.jsx(_$r,{agentName:e}),p.jsx("div",{className:"max-w-3xl w-full mx-auto px-4 pb-7",children:p.jsx(bct,{components:{UserMessage:n$r,EditComposer:T$r,AssistantMessage:s}})}),p.jsx(wI,{empty:!1,children:p.jsx("div",{})})]}),p.jsx(k$r,{hasMemory:r,agentId:t})]})},O$r=({children:e})=>p.jsx(jCe,{className:"grid grid-rows-[1fr_auto] h-full overflow-y-auto","data-testid":"thread-wrapper",children:e}),_$r=({agentName:e})=>p.jsx(FCe,{children:p.jsxs("div",{className:"flex w-full flex-grow flex-col items-center justify-center",children:[p.jsx(t2r,{name:e||"Agent",size:"lg"}),p.jsx("p",{className:"mt-4 font-medium",children:"How can I help you today?"})]})}),k$r=({hasMemory:e,agentId:t})=>{const{setThreadInput:r}=oqe(),n=E.useRef(null);return p.jsx("div",{className:"mx-4",children:p.jsxs(HW,{children:[p.jsx("div",{className:"max-w-3xl w-full mx-auto pb-2",children:p.jsx(g$r,{})}),p.jsxs("div",{className:"bg-surface3 rounded-lg border border-border1 py-4 mt-auto max-w-3xl w-full mx-auto px-4 focus-within:outline focus-within:outline-accent1 -outline-offset-2",onClick:()=>{n.current?.focus()},children:[p.jsx(XW,{asChild:!0,className:"w-full",children:p.jsx("textarea",{ref:n,className:"text-ui-lg leading-ui-lg placeholder:text-neutral3 text-neutral6 bg-transparent focus:outline-none resize-none outline-none",autoFocus:document.activeElement===document.body,placeholder:"Enter your message...",name:"",id:"",onChange:i=>r?.(i.target.value)})}),p.jsxs("div",{className:"flex justify-end gap-2",children:[p.jsx(E$r,{agentId:t}),p.jsx(C$r,{})]})]})]})})},E$r=({agentId:e})=>{const t=gT(),{start:r,stop:n,isListening:i,transcript:s}=s$r({agentId:e});return E.useEffect(()=>{s&&t.setText(s)},[t,s]),p.jsx(dd,{type:"button",tooltip:i?"Stop dictation":"Start dictation",className:"rounded-full",onClick:()=>i?n():r(),children:i?p.jsx(aqe,{}):p.jsx(mdt,{className:"h-6 w-6 text-neutral3 hover:text-neutral6"})})},C$r=()=>{const[e,t]=E.useState(!1);return p.jsxs(p.Fragment,{children:[p.jsx(dd,{type:"button",tooltip:"Add attachment",className:"rounded-full",onClick:()=>t(!0),children:p.jsx(_0,{className:"h-6 w-6 text-neutral3 hover:text-neutral6"})}),p.jsx(x$r,{open:e,onOpenChange:t}),p.jsx(wI,{running:!1,children:p.jsx($Ce,{asChild:!0,children:p.jsx(dd,{tooltip:"Send",variant:"default",className:"rounded-full border border-border1 bg-surface5",children:p.jsx(qCe,{className:"h-6 w-6 text-neutral3 hover:text-neutral6"})})})}),p.jsx(wI,{running:!0,children:p.jsx(NCe,{asChild:!0,children:p.jsx(dd,{tooltip:"Cancel",variant:"default",children:p.jsx(aqe,{})})})})]})},T$r=()=>p.jsxs(HW,{children:[p.jsx(XW,{}),p.jsxs("div",{children:[p.jsx(NCe,{asChild:!0,children:p.jsx("button",{className:"bg-surface2 border border-border1 px-2 text-ui-md inline-flex items-center justify-center rounded-md border h-form-sm gap-1 hover:bg-surface4 text-neutral3 hover:text-neutral6",children:"Cancel"})}),p.jsx($Ce,{asChild:!0,children:p.jsx("button",{className:"bg-surface2 border border-border1 px-2 text-ui-md inline-flex items-center justify-center rounded-md border h-form-sm gap-1 hover:bg-surface4 text-neutral3 hover:text-neutral6",children:"Send"})})]})]}),aqe=()=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",width:"16",height:"16",children:p.jsx("rect",{width:"10",height:"10",x:"3",y:"3",rx:"2"})});function Exe(e){try{return JSON.stringify(JSON.parse(e),null,2)}catch{return e}}function D$r(e,t,r){const n=or(),[i,s]=E.useState(!1),[o,a]=E.useState(null),[l,c]=E.useState("thread"),[u,d]=E.useState("markdown"),[f,m]=E.useState(!0),[g,v]=E.useState(!1),{requestContext:b}=wi(),w=E.useCallback(async()=>{m(!0);try{if(!e||!t){a(null),m(!1);return}const O=await n.getWorkingMemory({agentId:e,threadId:t,resourceId:r,requestContext:b}),{workingMemory:k,source:C,workingMemoryTemplate:T,threadExists:P}=O;if(s(P),a(k),c(C),d(T?.format||"markdown"),T?.format==="json"){let A="";k?A=Exe(k):T?.content?A=Exe(T.content):A="",a(A)}else a(k||T?.content||"")}catch(O){a(null),console.error("Error fetching working memory",O)}finally{m(!1)}},[e,t,r]);return E.useEffect(()=>{w()},[w]),{threadExists:i,workingMemoryData:o,workingMemorySource:l,workingMemoryFormat:u,isLoading:f,isUpdating:g,refetch:w,updateWorkingMemory:async O=>{v(!0);try{if(u==="json")try{JSON.parse(O)}catch{throw new Error("Invalid JSON working memory")}await n.updateWorkingMemory({agentId:e,threadId:t,workingMemory:O,resourceId:r,requestContext:b}),w()}catch(k){throw console.error("Error updating working memory",k),k}finally{v(!1)}}}}const lqe=E.createContext({threadExists:!1,workingMemoryData:null,workingMemorySource:"thread",isLoading:!1,isUpdating:!1,updateWorkingMemory:()=>Promise.resolve(),refetch:()=>Promise.resolve()});function A$r({agentId:e,threadId:t,resourceId:r,children:n}){const i=D$r(e,t,r);return p.jsx(lqe.Provider,{value:i,children:n})}function cqe(){const e=E.useContext(lqe);if(!e)throw new Error("useWorkingMemory must be used within a WorkingMemoryProvider");return e}class P$r{constructor(t){this.agent=t}speak(t){let r=()=>{};const n=(s,o)=>{i.status.type!=="ended"&&(i.status={type:"ended",reason:s,error:o},r())},i={status:{type:"running"},cancel:()=>{n("cancelled")},subscribe:s=>(this.agent.voice.speak(t).then(o=>{if(o)return o.body}).then(o=>{if(o)return $$r(o)}).then(o=>{o&&(r=o),s()}).catch(o=>{n("error",o)}),()=>{})};return i}}async function $$r(e){const t=new window.AudioContext,r=e.getReader(),n=[];for(;;){const{done:c,value:u}=await r.read();if(c)break;n.push(u)}const i=n.reduce((c,u)=>c+u.length,0),s=new Uint8Array(i);let o=0;for(const c of n)s.set(c,o),o+=c.length;const a=await t.decodeAudioData(s.buffer),l=t.createBufferSource();return l.buffer=a,l.connect(t.destination),l.start(),()=>{l.stop(),t.close()}}class I$r{accept="application/pdf";async add({file:t}){if(t.size>20971520)throw new Error("PDF size exceeds 20MB limit");return{id:crypto.randomUUID(),type:"document",name:t.name,file:t,status:{type:"running",reason:"uploading",progress:0},contentType:"application/pdf"}}async send(t){const r=await this.fileToBase64(t.file);return{id:t.id,type:"document",name:t.name,content:[{type:"text",text:r}],status:{type:"complete"},contentType:"application/pdf"}}async remove(t){}async fileToBase64(t){const r=await t.arrayBuffer(),n=new Uint8Array(r);let i="";return n.forEach(s=>{i+=String.fromCharCode(s)}),btoa(i)}async extractTextFromPDF(t){return"Extracted PDF text content"}}const N$r=e=>{const[t,r]=E.useState(!1),[n,i]=E.useState(void 0),s=or(),{requestContext:o}=wi();return E.useEffect(()=>{(async()=>{const l=s.getAgent(e);try{(await l.voice.getSpeakers(o)).length>0?i(new P$r(l)):i(new qse),r(!0)}catch{i(new qse),r(!0)}})()},[e]),{isReady:t,adapters:{attachments:new bKe([new mKe,new yKe,new I$r]),speech:n}}},Cxe={modelSettings:{maxRetries:2,maxSteps:5,temperature:.5,topP:1,chatWithGenerateLegacy:!1,chatWithGenerate:!1}};function R$r({agentId:e,defaultSettings:t}){const[r,n]=E.useState(t),i=`mastra-agent-store-${e}`;return E.useEffect(()=>{try{const a=localStorage.getItem(i),l=a?JSON.parse(a):{},c={...l,modelSettings:{...Cxe.modelSettings,...l?.modelSettings??{},...t?.modelSettings??{}}};n(c)}catch{}},[i,t]),{settings:r,setSettings:a=>{n(l=>({...l,...a})),localStorage.setItem(i,JSON.stringify({...a,agentId:e}))},resetAll:()=>{const a={modelSettings:{...Cxe.modelSettings,...t?.modelSettings??{}}};n(a),localStorage.removeItem(i)}}}const uqe=E.createContext({});function M$r({children:e,agentId:t,defaultSettings:r}){const{settings:n,setSettings:i,resetAll:s}=R$r({agentId:t,defaultSettings:r});return p.jsx(uqe.Provider,{value:{settings:n,setSettings:i,resetAll:s},children:e})}const H6=()=>E.useContext(uqe),j$r=e=>typeof e=="string"?e.trim():e.text?.trim()||"",gte=e=>typeof e=="string"?e.trim():typeof e=="object"&&"content"in e?Array.isArray(e.content)?e.content.map(j$r).join(`
|
|
555
555
|
|
|
556
556
|
`).trim():e.content.trim():Array.isArray(e)?e.map(gte).join(`
|
|
557
557
|
|
|
@@ -568,4 +568,4 @@ Token usage: ${r} input + ${n} output = ${i} total`:`The model stopped generatin
|
|
|
568
568
|
`),l=s;l<a.length;l++){var c=a[l];if(!(c.length>1024)){var u=qxe.test(c)?c.replace(qxe,"$1"):c;if(!u.match(/\S*Error: /)){for(var d of r){var f=d(u,e);if(f){o.push(f);break}}if(o.length>=Hxe)break}}}return(function(m){if(!m.length)return[];var g=Array.from(m);return g.reverse(),g.slice(0,Hxe).map((v=>{return At({},v,{filename:v.filename||(b=g,b[b.length-1]||{}).filename,function:v.function||bw});var b}))})(o)}}class VNr{match(t){return this.isDOMException(t)||this.isDOMError(t)}coerce(t,r){var n=Xs(t.stack);return{type:this.getType(t),value:this.getValue(t),stack:n?t.stack:void 0,cause:t.cause?r.next(t.cause):void 0,synthetic:!1}}getType(t){return this.isDOMError(t)?"DOMError":"DOMException"}getValue(t){var r=t.name||(this.isDOMError(t)?"DOMError":"DOMException");return t.message?r+": "+t.message:r}isDOMException(t){return R4(t,"DOMException")}isDOMError(t){return R4(t,"DOMError")}}class UNr{match(t){return(r=>r instanceof Error)(t)}coerce(t,r){return{type:this.getType(t),value:this.getMessage(t,r),stack:this.getStack(t),cause:t.cause?r.next(t.cause):void 0,synthetic:!1}}getType(t){return t.name||t.constructor.name}getMessage(t,r){var n=t.message;return n.error&&typeof n.error.message=="string"?String(n.error.message):String(n)}getStack(t){return t.stacktrace||t.stack||void 0}}class QNr{constructor(){}match(t){return R4(t,"ErrorEvent")&&t.error!=null}coerce(t,r){var n,i=r.apply(t.error);return i||{type:"ErrorEvent",value:t.message,stack:(n=r.syntheticException)==null?void 0:n.stack,synthetic:!0}}}var ZNr=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;class qNr{match(t){return typeof t=="string"}coerce(t,r){var n,[i,s]=this.getInfos(t);return{type:i??"Error",value:s??t,stack:(n=r.syntheticException)==null?void 0:n.stack,synthetic:!0}}getInfos(t){var r="Error",n=t,i=t.match(ZNr);return i&&(r=i[1],n=i[2]),[r,n]}}var HNr=["fatal","error","warning","log","info","debug"];function Kqe(e,t){t===void 0&&(t=40);var r=Object.keys(e);if(r.sort(),!r.length)return"[object has no keys]";for(var n=r.length;n>0;n--){var i=r.slice(0,n).join(", ");if(!(i.length>t))return n===r.length||i.length<=t?i:i.slice(0,t)+"..."}return""}class WNr{match(t){return typeof t=="object"&&t!==null}coerce(t,r){var n,i=this.getErrorPropertyFromObject(t);return i?r.apply(i):{type:this.getType(t),value:this.getValue(t),stack:(n=r.syntheticException)==null?void 0:n.stack,level:this.isSeverityLevel(t.level)?t.level:"error",synthetic:!0}}getType(t){return Yqe(t)?t.constructor.name:"Error"}getValue(t){if("name"in t&&typeof t.name=="string"){var r="'"+t.name+"' captured as exception";return"message"in t&&typeof t.message=="string"&&(r+=" with message: '"+t.message+"'"),r}if("message"in t&&typeof t.message=="string")return t.message;var n=this.getObjectClassName(t);return(n&&n!=="Object"?"'"+n+"'":"Object")+" captured as exception with keys: "+Kqe(t)}isSeverityLevel(t){return Xs(t)&&!nq(t)&&HNr.indexOf(t)>=0}getErrorPropertyFromObject(t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var n=t[r];if(PNr(n))return n}}getObjectClassName(t){try{var r=Object.getPrototypeOf(t);return r?r.constructor.name:void 0}catch{return}}}class GNr{match(t){return Yqe(t)}coerce(t,r){var n,i=t.constructor.name;return{type:i,value:i+" captured as exception with keys: "+Kqe(t),stack:(n=r.syntheticException)==null?void 0:n.stack,synthetic:!0}}}class XNr{match(t){return iq(t)}coerce(t,r){var n;return{type:"Error",value:"Primitive value captured as exception: "+String(t),stack:(n=r.syntheticException)==null?void 0:n.stack,synthetic:!0}}}class YNr{match(t){return R4(t,"PromiseRejectionEvent")}coerce(t,r){var n,i=this.getUnhandledRejectionReason(t);return iq(i)?{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(i),stack:(n=r.syntheticException)==null?void 0:n.stack,synthetic:!0}:r.apply(i)}getUnhandledRejectionReason(t){if(iq(t))return t;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch{}return t}}var eHe=function(e,t){var{debugEnabled:r}=t===void 0?{}:t,n={k:function(i){if($e&&(oh.DEBUG||pr.POSTHOG_DEBUG||r)&&!xt($e.console)&&$e.console){for(var s=("__rrweb_original__"in $e.console[i])?$e.console[i].__rrweb_original__:$e.console[i],o=arguments.length,a=new Array(o>1?o-1:0),l=1;l<o;l++)a[l-1]=arguments[l];s(e,...a)}},info:function(){for(var i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];n.k("log",...s)},warn:function(){for(var i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];n.k("warn",...s)},error:function(){for(var i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];n.k("error",...s)},critical:function(){for(var i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];console.error(e,...s)},uninitializedWarning:i=>{n.error("You must initialize PostHog before calling "+i)},createLogger:(i,s)=>eHe(e+" "+i,s)};return n},Ot=eHe("[PostHog.js]"),Js=Ot.createLogger,JNr=Js("[ExternalScriptsLoader]"),Wxe=(e,t,r)=>{if(e.config.disable_external_dependency_loading)return JNr.warn(t+" was requested but loading of external scripts is disabled."),r("Loading of external scripts is disabled");var n=St?.querySelectorAll("script");if(n){for(var i,s=function(){if(n[o].src===t){var l=n[o];return l.__posthog_loading_callback_fired?{v:r()}:(l.addEventListener("load",(c=>{l.__posthog_loading_callback_fired=!0,r(void 0,c)})),l.onerror=c=>r(c),{v:void 0})}},o=0;o<n.length;o++)if(i=s())return i.v}var a=()=>{if(!St)return r("document not found");var l=St.createElement("script");if(l.type="text/javascript",l.crossOrigin="anonymous",l.src=t,l.onload=d=>{l.__posthog_loading_callback_fired=!0,r(void 0,d)},l.onerror=d=>r(d),e.config.prepare_external_dependency_script&&(l=e.config.prepare_external_dependency_script(l)),!l)return r("prepare_external_dependency_script returned null");var c,u=St.querySelectorAll("body > script");u.length>0?(c=u[0].parentNode)==null||c.insertBefore(l,u[0]):St.body.appendChild(l)};St!=null&&St.body?a():St?.addEventListener("DOMContentLoaded",a)};pr.__PosthogExtensions__=pr.__PosthogExtensions__||{},pr.__PosthogExtensions__.loadExternalDependency=(e,t,r)=>{var n="/static/"+t+".js?v="+e.version;if(t==="remote-config"&&(n="/array/"+e.config.token+"/config.js"),t==="toolbar"){var i=3e5;n=n+"&t="+Math.floor(Date.now()/i)*i}var s=e.requestRouter.endpointFor("assets",n);Wxe(e,s,r)},pr.__PosthogExtensions__.loadSiteApp=(e,t,r)=>{var n=e.requestRouter.endpointFor("api",t);Wxe(e,n,r)};var M4={};function Tg(e,t,r){if(ei(e)){if(Lxe&&e.forEach===Lxe)e.forEach(t,r);else if("length"in e&&e.length===+e.length){for(var n=0,i=e.length;n<i;n++)if(n in e&&t.call(r,e[n],n)===M4)return}}}function fi(e,t,r){if(!qn(e)){if(ei(e))return Tg(e,t,r);if(ENr(e)){for(var n of e.entries())if(t.call(r,n[1],n[0])===M4)return}else for(var i in e)if(Xqe.call(e,i)&&t.call(r,e[i],i)===M4)return}}var ys=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return Tg(r,(function(i){for(var s in i)i[s]!==void 0&&(e[s]=i[s])})),e},vS=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return Tg(r,(function(i){Tg(i,(function(s){e.push(s)}))})),e};function K$(e){for(var t=Object.keys(e),r=t.length,n=new Array(r);r--;)n[r]=[t[r],e[t[r]]];return n}var Gxe=function(e){try{return e()}catch{return}},KNr=function(e){return function(){try{for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return e.apply(this,r)}catch(i){Ot.critical("Implementation error. Please turn on debug mode and open a ticket on https://app.posthog.com/home#panel=support%3Asupport%3A."),Ot.critical(i)}}},Cte=function(e){var t={};return fi(e,(function(r,n){(Xs(r)&&r.length>0||Xf(r))&&(t[n]=r)})),t};function e5r(e,t){return r=e,n=s=>Xs(s)&&!im(t)?s.slice(0,t):s,i=new Set,(function s(o,a){return o!==Object(o)?n?n(o,a):o:i.has(o)?void 0:(i.add(o),ei(o)?(l=[],Tg(o,(c=>{l.push(s(c))}))):(l={},fi(o,((c,u)=>{i.has(c)||(l[u]=s(c,u))}))),l);var l})(r);var r,n,i}var t5r=["herokuapp.com","vercel.app","netlify.app"];function r5r(e){var t=e?.hostname;if(!Xs(t))return!1;var r=t.split(".").slice(-2).join(".");for(var n of t5r)if(r===n)return!1;return!0}function tHe(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return e[r]}function Ps(e,t,r,n){var{capture:i=!1,passive:s=!0}=n??{};e?.addEventListener(t,r,{capture:i,passive:s})}var rHe="$people_distinct_id",P_="__alias",$_="__timers",Xxe="$autocapture_disabled_server_side",oq="$heatmaps_enabled_server_side",Yxe="$exception_capture_enabled_server_side",aq="$error_tracking_suppression_rules",Jxe="$error_tracking_capture_extension_exceptions",Kxe="$web_vitals_enabled_server_side",nHe="$dead_clicks_enabled_server_side",e1e="$web_vitals_allowed_metrics",Gz="$session_recording_remote_config",j4="$sesid",iHe="$session_is_sampled",$x="$enabled_feature_flags",I_="$early_access_features",lq="$feature_flag_details",N_="$stored_person_properties",iv="$stored_group_properties",cq="$surveys",HP="$surveys_activated",F4="$flag_call_reported",ah="$user_state",uq="$client_session_props",dq="$capture_rate_limit",fq="$initial_campaign_params",pq="$initial_referrer_info",L4="$initial_person_info",z4="$epp",sHe="__POSTHOG_TOOLBAR__",n_="$posthog_cookieless",n5r=[rHe,P_,"__cmpns",$_,"$session_recording_enabled_server_side",oq,j4,$x,aq,ah,I_,lq,iv,N_,cq,F4,uq,dq,fq,pq,z4,L4];function t1e(e){return e instanceof Element&&(e.id===sHe||!(e.closest==null||!e.closest(".toolbar-global-fade-container")))}function rR(e){return!!e&&e.nodeType===1}function Dg(e,t){return!!e&&!!e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function oHe(e){return!!e&&e.nodeType===3}function aHe(e){return!!e&&e.nodeType===11}function Tte(e){return e?eR(e).split(/\s+/):[]}function r1e(e){var t=$e?.location.href;return!!(t&&e&&e.some((r=>t.match(r))))}function B4(e){var t="";switch(typeof e.className){case"string":t=e.className;break;case"object":t=(e.className&&"baseVal"in e.className?e.className.baseVal:null)||e.getAttribute("class")||"";break;default:t=""}return Tte(t)}function lHe(e){return qn(e)?null:eR(e).split(/(\s+)/).filter((t=>WC(t))).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255)}function ND(e){var t="";return hq(e)&&!pHe(e)&&e.childNodes&&e.childNodes.length&&fi(e.childNodes,(function(r){var n;oHe(r)&&r.textContent&&(t+=(n=lHe(r.textContent))!==null&&n!==void 0?n:"")})),eR(t)}function cHe(e){return xt(e.target)?e.srcElement||null:(t=e.target)!=null&&t.shadowRoot?e.composedPath()[0]||null:e.target||null;var t}var Dte=["a","button","form","input","select","textarea","label"];function uHe(e,t){if(xt(t))return!0;var r,n=function(s){if(t.some((o=>s.matches(o))))return{v:!0}};for(var i of e)if(r=n(i))return r.v;return!1}function dHe(e){var t=e.parentNode;return!(!t||!rR(t))&&t}var i5r=["next","previous","prev",">","<"],n1e=10,i1e=[".ph-no-rageclick",".ph-no-capture"];function s5r(e,t){if(!$e||Ate(e))return!1;var r,n,i;if(Cg(t)?(r=!!t&&i1e,n=void 0):(r=(i=t?.css_selector_ignorelist)!==null&&i!==void 0?i:i1e,n=t?.content_ignorelist),r===!1)return!1;var{targetElementList:s}=fHe(e,!1);return!(function(o,a){if(o===!1||xt(o))return!1;var l;if(o===!0)l=i5r;else{if(!ei(o))return!1;if(o.length>n1e)return Ot.error("[PostHog] content_ignorelist array cannot exceed "+n1e+" items. Use css_selector_ignorelist for more complex matching."),!1;l=o.map((c=>c.toLowerCase()))}return a.some((c=>{var{safeText:u,ariaLabel:d}=c;return l.some((f=>u.includes(f)||d.includes(f)))}))})(n,s.map((o=>{var a;return{safeText:ND(o).toLowerCase(),ariaLabel:((a=o.getAttribute("aria-label"))==null?void 0:a.toLowerCase().trim())||""}})))&&!uHe(s,r)}var Ate=e=>!e||Dg(e,"html")||!rR(e),fHe=(e,t)=>{if(!$e||Ate(e))return{parentIsUsefulElement:!1,targetElementList:[]};for(var r=!1,n=[e],i=e;i.parentNode&&!Dg(i,"body");)if(aHe(i.parentNode))n.push(i.parentNode.host),i=i.parentNode.host;else{var s=dHe(i);if(!s)break;if(t||Dte.indexOf(s.tagName.toLowerCase())>-1)r=!0;else{var o=$e.getComputedStyle(s);o&&o.getPropertyValue("cursor")==="pointer"&&(r=!0)}n.push(s),i=s}return{parentIsUsefulElement:r,targetElementList:n}};function o5r(e,t,r,n,i){var s,o,a,l;if(r===void 0&&(r=void 0),!$e||Ate(e)||(s=r)!=null&&s.url_allowlist&&!r1e(r.url_allowlist)||(o=r)!=null&&o.url_ignorelist&&r1e(r.url_ignorelist))return!1;if((a=r)!=null&&a.dom_event_allowlist){var c=r.dom_event_allowlist;if(c&&!c.some((g=>t.type===g)))return!1}var{parentIsUsefulElement:u,targetElementList:d}=fHe(e,n);if(!(function(g,v){var b=v?.element_allowlist;if(xt(b))return!0;var w,S=function(k){if(b.some((C=>k.tagName.toLowerCase()===C)))return{v:!0}};for(var O of g)if(w=S(O))return w.v;return!1})(d,r)||!uHe(d,(l=r)==null?void 0:l.css_selector_allowlist))return!1;var f=$e.getComputedStyle(e);if(f&&f.getPropertyValue("cursor")==="pointer"&&t.type==="click")return!0;var m=e.tagName.toLowerCase();switch(m){case"html":return!1;case"form":return(i||["submit"]).indexOf(t.type)>=0;case"input":case"select":case"textarea":return(i||["change","click"]).indexOf(t.type)>=0;default:return u?(i||["click"]).indexOf(t.type)>=0:(i||["click"]).indexOf(t.type)>=0&&(Dte.indexOf(m)>-1||e.getAttribute("contenteditable")==="true")}}function hq(e){for(var t=e;t.parentNode&&!Dg(t,"body");t=t.parentNode){var r=B4(t);if(zr(r,"ph-sensitive")||zr(r,"ph-no-capture"))return!1}if(zr(B4(e),"ph-include"))return!0;var n=e.type||"";if(Xs(n))switch(n.toLowerCase()){case"hidden":case"password":return!1}var i=e.name||e.id||"";return!(Xs(i)&&/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(i.replace(/[^a-zA-Z0-9]/g,"")))}function pHe(e){return!!(Dg(e,"input")&&!["button","checkbox","submit","reset"].includes(e.type)||Dg(e,"select")||Dg(e,"textarea")||e.getAttribute("contenteditable")==="true")}var hHe="(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11})",a5r=new RegExp("^(?:"+hHe+")$"),l5r=new RegExp(hHe),mHe="\\d{3}-?\\d{2}-?\\d{4}",c5r=new RegExp("^("+mHe+")$"),u5r=new RegExp("("+mHe+")");function WC(e,t){return t===void 0&&(t=!0),!(qn(e)||Xs(e)&&(e=eR(e),(t?a5r:l5r).test((e||"").replace(/[- ]/g,""))||(t?c5r:u5r).test(e)))}function gHe(e){var t=ND(e);return WC(t=(t+" "+yHe(e)).trim())?t:""}function yHe(e){var t="";return e&&e.childNodes&&e.childNodes.length&&fi(e.childNodes,(function(r){var n;if(r&&((n=r.tagName)==null?void 0:n.toLowerCase())==="span")try{var i=ND(r);t=(t+" "+i).trim(),r.childNodes&&r.childNodes.length&&(t=(t+" "+yHe(r)).trim())}catch(s){Ot.error("[AutoCapture]",s)}})),t}function d5r(e){return(function(t){var r=t.map((n=>{var i,s,o="";if(n.tag_name&&(o+=n.tag_name),n.attr_class)for(var a of(n.attr_class.sort(),n.attr_class))o+="."+a.replace(/"/g,"");var l=At({},n.text?{text:n.text}:{},{"nth-child":(i=n.nth_child)!==null&&i!==void 0?i:0,"nth-of-type":(s=n.nth_of_type)!==null&&s!==void 0?s:0},n.href?{href:n.href}:{},n.attr_id?{attr_id:n.attr_id}:{},n.attributes),c={};return K$(l).sort(((u,d)=>{var[f]=u,[m]=d;return f.localeCompare(m)})).forEach((u=>{var[d,f]=u;return c[s1e(d.toString())]=s1e(f.toString())})),o+=":",o+=K$(c).map((u=>{var[d,f]=u;return d+'="'+f+'"'})).join("")}));return r.join(";")})((function(t){return t.map((r=>{var n,i,s={text:(n=r.$el_text)==null?void 0:n.slice(0,400),tag_name:r.tag_name,href:(i=r.attr__href)==null?void 0:i.slice(0,2048),attr_class:f5r(r),attr_id:r.attr__id,nth_child:r.nth_child,nth_of_type:r.nth_of_type,attributes:{}};return K$(r).filter((o=>{var[a]=o;return a.indexOf("attr__")===0})).forEach((o=>{var[a,l]=o;return s.attributes[a]=l})),s}))})(e))}function s1e(e){return e.replace(/"|\\"/g,'\\"')}function f5r(e){var t=e.attr__class;return t?ei(t)?t:Tte(t):void 0}class vHe{constructor(t){this.disabled=t===!1;var r=eo(t)?t:{};this.thresholdPx=r.threshold_px||30,this.timeoutMs=r.timeout_ms||1e3,this.clickCount=r.click_count||3,this.clicks=[]}isRageClick(t,r,n){if(this.disabled)return!1;var i=this.clicks[this.clicks.length-1];if(i&&Math.abs(t-i.x)+Math.abs(r-i.y)<this.thresholdPx&&n-i.timestamp<this.timeoutMs){if(this.clicks.push({x:t,y:r,timestamp:n}),this.clicks.length===this.clickCount)return!0}else this.clicks=[{x:t,y:r,timestamp:n}];return!1}}var Xz="$copy_autocapture",hh=(function(e){return e.GZipJS="gzip-js",e.Base64="base64",e})({}),V4=e=>{var t=St?.createElement("a");return xt(t)?null:(t.href=e,t)},p5r=function(e,t){var r,n;t===void 0&&(t="&");var i=[];return fi(e,(function(s,o){xt(s)||xt(o)||o==="undefined"||(r=encodeURIComponent((a=>a instanceof File)(s)?s.name:s.toString()),n=encodeURIComponent(o),i[i.length]=n+"="+r)})),i.join(t)},U4=function(e,t){for(var r,n=((e.split("#")[0]||"").split(/\?(.*)/)[1]||"").replace(/^\?+/g,"").split("&"),i=0;i<n.length;i++){var s=n[i].split("=");if(s[0]===t){r=s;break}}if(!ei(r)||r.length<2)return"";var o=r[1];try{o=decodeURIComponent(o)}catch{Ot.error("Skipping decoding for malformed query param: "+o)}return o.replace(/\+/g," ")},RD=function(e,t,r){if(!e||!t||!t.length)return e;for(var n=e.split("#"),i=n[0]||"",s=n[1],o=i.split("?"),a=o[1],l=o[0],c=(a||"").split("&"),u=[],d=0;d<c.length;d++){var f=c[d].split("=");ei(f)&&(t.includes(f[0])?u.push(f[0]+"="+r):u.push(c[d]))}var m=l;return a!=null&&(m+="?"+u.join("&")),s!=null&&(m+="#"+s),m},Q4=function(e,t){var r=e.match(new RegExp(t+"=([^&]*)"));return r?r[1]:null},o1e=Js("[AutoCapture]");function Yz(e,t){return t.length>e?t.slice(0,e)+"...":t}function h5r(e){if(e.previousElementSibling)return e.previousElementSibling;var t=e;do t=t.previousSibling;while(t&&!rR(t));return t}function m5r(e,t,r,n){var i=e.tagName.toLowerCase(),s={tag_name:i};Dte.indexOf(i)>-1&&!r&&(i.toLowerCase()==="a"||i.toLowerCase()==="button"?s.$el_text=Yz(1024,gHe(e)):s.$el_text=Yz(1024,ND(e)));var o=B4(e);o.length>0&&(s.classes=o.filter((function(u){return u!==""}))),fi(e.attributes,(function(u){var d;if((!pHe(e)||["name","id","class","aria-label"].indexOf(u.name)!==-1)&&(n==null||!n.includes(u.name))&&!t&&WC(u.value)&&(d=u.name,!Xs(d)||d.substring(0,10)!=="_ngcontent"&&d.substring(0,7)!=="_nghost")){var f=u.value;u.name==="class"&&(f=Tte(f).join(" ")),s["attr__"+u.name]=Yz(1024,f)}}));for(var a=1,l=1,c=e;c=h5r(c);)a++,c.tagName===e.tagName&&l++;return s.nth_child=a,s.nth_of_type=l,s}function g5r(e,t){for(var r,n,{e:i,maskAllElementAttributes:s,maskAllText:o,elementAttributeIgnoreList:a,elementsChainAsString:l}=t,c=[e],u=e;u.parentNode&&!Dg(u,"body");)aHe(u.parentNode)?(c.push(u.parentNode.host),u=u.parentNode.host):(c.push(u.parentNode),u=u.parentNode);var d,f=[],m={},g=!1,v=!1;if(fi(c,(k=>{var C=hq(k);k.tagName.toLowerCase()==="a"&&(g=k.getAttribute("href"),g=C&&g&&WC(g)&&g),zr(B4(k),"ph-no-capture")&&(v=!0),f.push(m5r(k,s,o,a));var T=(function(P){if(!hq(P))return{};var A={};return fi(P.attributes,(function(R){if(R.name&&R.name.indexOf("data-ph-capture-attribute")===0){var M=R.name.replace("data-ph-capture-attribute-",""),z=R.value;M&&z&&WC(z)&&(A[M]=z)}})),A})(k);ys(m,T)})),v)return{props:{},explicitNoCapture:v};if(o||(e.tagName.toLowerCase()==="a"||e.tagName.toLowerCase()==="button"?f[0].$el_text=gHe(e):f[0].$el_text=ND(e)),g){var b,w;f[0].attr__href=g;var S=(b=V4(g))==null?void 0:b.host,O=$e==null||(w=$e.location)==null?void 0:w.host;S&&O&&S!==O&&(d=g)}return{props:ys({$event_type:i.type,$ce_version:1},l?{}:{$elements:f},{$elements_chain:d5r(f)},(r=f[0])!=null&&r.$el_text?{$el_text:(n=f[0])==null?void 0:n.$el_text}:{},d&&i.type==="click"?{$external_click_url:d}:{},m)}}class y5r{constructor(t){this.P=!1,this.T=null,this.R=!1,this.instance=t,this.rageclicks=new vHe(t.config.rageclick),this.I=null}get F(){var t,r,n=eo(this.instance.config.autocapture)?this.instance.config.autocapture:{};return n.url_allowlist=(t=n.url_allowlist)==null?void 0:t.map((i=>new RegExp(i))),n.url_ignorelist=(r=n.url_ignorelist)==null?void 0:r.map((i=>new RegExp(i))),n}C(){if(this.isBrowserSupported()){if($e&&St){var t=n=>{n=n||$e?.event;try{this.M(n)}catch(i){o1e.error("Failed to capture event",i)}};if(Ps(St,"submit",t,{capture:!0}),Ps(St,"change",t,{capture:!0}),Ps(St,"click",t,{capture:!0}),this.F.capture_copied_text){var r=n=>{n=n||$e?.event,this.M(n,Xz)};Ps(St,"copy",r,{capture:!0}),Ps(St,"cut",r,{capture:!0})}}}else o1e.info("Disabling Automatic Event Collection because this browser is not supported")}startIfEnabled(){this.isEnabled&&!this.P&&(this.C(),this.P=!0)}onRemoteConfig(t){t.elementsChainAsString&&(this.R=t.elementsChainAsString),this.instance.persistence&&this.instance.persistence.register({[Xxe]:!!t.autocapture_opt_out}),this.T=!!t.autocapture_opt_out,this.startIfEnabled()}setElementSelectors(t){this.I=t}getElementSelectors(t){var r,n=[];return(r=this.I)==null||r.forEach((i=>{var s=St?.querySelectorAll(i);s?.forEach((o=>{t===o&&n.push(i)}))})),n}get isEnabled(){var t,r,n=(t=this.instance.persistence)==null?void 0:t.props[Xxe],i=this.T;if(im(i)&&!Cg(n)&&!this.instance.O())return!1;var s=(r=this.T)!==null&&r!==void 0?r:!!n;return!!this.instance.config.autocapture&&!s}M(t,r){if(r===void 0&&(r="$autocapture"),this.isEnabled){var n,i=cHe(t);oHe(i)&&(i=i.parentNode||null),r==="$autocapture"&&t.type==="click"&&t instanceof MouseEvent&&this.instance.config.rageclick&&(n=this.rageclicks)!=null&&n.isRageClick(t.clientX,t.clientY,t.timeStamp||new Date().getTime())&&s5r(i,this.instance.config.rageclick)&&this.M(t,"$rageclick");var s=r===Xz;if(i&&o5r(i,t,this.F,s,s?["copy","cut"]:void 0)){var{props:o,explicitNoCapture:a}=g5r(i,{e:t,maskAllElementAttributes:this.instance.config.mask_all_element_attributes,maskAllText:this.instance.config.mask_all_text,elementAttributeIgnoreList:this.F.element_attribute_ignorelist,elementsChainAsString:this.R});if(a)return!1;var l=this.getElementSelectors(i);if(l&&l.length>0&&(o.$element_selectors=l),r===Xz){var c,u=lHe($e==null||(c=$e.getSelection())==null?void 0:c.toString()),d=t.type||"clipboard";if(!u)return!1;o.$selected_content=u,o.$copy_type=d}return this.instance.capture(r,o),!0}}}isBrowserSupported(){return Eg(St?.querySelectorAll)}}Math.trunc||(Math.trunc=function(e){return e<0?Math.ceil(e):Math.floor(e)}),Number.isInteger||(Number.isInteger=function(e){return Xf(e)&&isFinite(e)&&Math.floor(e)===e});var a1e="0123456789abcdef";class Z4{constructor(t){if(this.bytes=t,t.length!==16)throw new TypeError("not 128-bit length")}static fromFieldsV7(t,r,n,i){if(!Number.isInteger(t)||!Number.isInteger(r)||!Number.isInteger(n)||!Number.isInteger(i)||t<0||r<0||n<0||i<0||t>0xffffffffffff||r>4095||n>1073741823||i>4294967295)throw new RangeError("invalid field value");var s=new Uint8Array(16);return s[0]=t/Math.pow(2,40),s[1]=t/Math.pow(2,32),s[2]=t/Math.pow(2,24),s[3]=t/Math.pow(2,16),s[4]=t/Math.pow(2,8),s[5]=t,s[6]=112|r>>>8,s[7]=r,s[8]=128|n>>>24,s[9]=n>>>16,s[10]=n>>>8,s[11]=n,s[12]=i>>>24,s[13]=i>>>16,s[14]=i>>>8,s[15]=i,new Z4(s)}toString(){for(var t="",r=0;r<this.bytes.length;r++)t=t+a1e.charAt(this.bytes[r]>>>4)+a1e.charAt(15&this.bytes[r]),r!==3&&r!==5&&r!==7&&r!==9||(t+="-");if(t.length!==36)throw new Error("Invalid UUIDv7 was generated");return t}clone(){return new Z4(this.bytes.slice(0))}equals(t){return this.compareTo(t)===0}compareTo(t){for(var r=0;r<16;r++){var n=this.bytes[r]-t.bytes[r];if(n!==0)return Math.sign(n)}return 0}}class v5r{constructor(){this.A=0,this.D=0,this.j=new b5r}generate(){var t=this.generateOrAbort();if(xt(t)){this.A=0;var r=this.generateOrAbort();if(xt(r))throw new Error("Could not generate UUID after timestamp reset");return r}return t}generateOrAbort(){var t=Date.now();if(t>this.A)this.A=t,this.L();else{if(!(t+1e4>this.A))return;this.D++,this.D>4398046511103&&(this.A++,this.L())}return Z4.fromFieldsV7(this.A,Math.trunc(this.D/Math.pow(2,30)),this.D&Math.pow(2,30)-1,this.j.nextUint32())}L(){this.D=1024*this.j.nextUint32()+(1023&this.j.nextUint32())}}var l1e,bHe=e=>{if(typeof UUIDV7_DENY_WEAK_RNG<"u"&&UUIDV7_DENY_WEAK_RNG)throw new Error("no cryptographically strong RNG available");for(var t=0;t<e.length;t++)e[t]=65536*Math.trunc(65536*Math.random())+Math.trunc(65536*Math.random());return e};$e&&!xt($e.crypto)&&crypto.getRandomValues&&(bHe=e=>crypto.getRandomValues(e));class b5r{constructor(){this.N=new Uint32Array(8),this.U=1/0}nextUint32(){return this.U>=this.N.length&&(bHe(this.N),this.U=0),this.N[this.U++]}}var pg=()=>x5r().toString(),x5r=()=>(l1e||(l1e=new v5r)).generate(),i_="",w5r=/[a-z0-9][a-z0-9-]+\.[a-z]{2,}$/i;function S5r(e,t){if(t){var r=(function(i,s){if(s===void 0&&(s=St),i_)return i_;if(!s||["localhost","127.0.0.1"].includes(i))return"";for(var o=i.split("."),a=Math.min(o.length,8),l="dmn_chk_"+pg();!i_&&a--;){var c=o.slice(a).join("."),u=l+"=1;domain=."+c+";path=/";s.cookie=u+";max-age=3",s.cookie.includes(l)&&(s.cookie=u+";max-age=0",i_=c)}return i_})(e);if(!r){var n=(i=>{var s=i.match(w5r);return s?s[0]:""})(e);n!==r&&Ot.info("Warning: cookie subdomain discovery mismatch",n,r),r=n}return r?"; domain=."+r:""}return""}var Rf={H:()=>!!St,B:function(e){Ot.error("cookieStore error: "+e)},q:function(e){if(St){try{for(var t=e+"=",r=St.cookie.split(";").filter((s=>s.length)),n=0;n<r.length;n++){for(var i=r[n];i.charAt(0)==" ";)i=i.substring(1,i.length);if(i.indexOf(t)===0)return decodeURIComponent(i.substring(t.length,i.length))}}catch{}return null}},W:function(e){var t;try{t=JSON.parse(Rf.q(e))||{}}catch{}return t},G:function(e,t,r,n,i){if(St)try{var s="",o="",a=S5r(St.location.hostname,n);if(r){var l=new Date;l.setTime(l.getTime()+24*r*60*60*1e3),s="; expires="+l.toUTCString()}i&&(o="; secure");var c=e+"="+encodeURIComponent(JSON.stringify(t))+s+"; SameSite=Lax; path=/"+a+o;return c.length>3686.4&&Ot.warn("cookieStore warning: large cookie, len="+c.length),St.cookie=c,c}catch{return}},V:function(e,t){if(St!=null&&St.cookie)try{Rf.G(e,"",-1,t)}catch{return}}},Jz=null,Gi={H:function(){if(!im(Jz))return Jz;var e=!0;if(xt($e))e=!1;else try{var t="__mplssupport__";Gi.G(t,"xyz"),Gi.q(t)!=='"xyz"'&&(e=!1),Gi.V(t)}catch{e=!1}return e||Ot.error("localStorage unsupported; falling back to cookie store"),Jz=e,e},B:function(e){Ot.error("localStorage error: "+e)},q:function(e){try{return $e?.localStorage.getItem(e)}catch(t){Gi.B(t)}return null},W:function(e){try{return JSON.parse(Gi.q(e))||{}}catch{}return null},G:function(e,t){try{$e?.localStorage.setItem(e,JSON.stringify(t))}catch(r){Gi.B(r)}},V:function(e){try{$e?.localStorage.removeItem(e)}catch(t){Gi.B(t)}}},O5r=["distinct_id",j4,iHe,z4,L4],WP=At({},Gi,{W:function(e){try{var t={};try{t=Rf.W(e)||{}}catch{}var r=ys(t,JSON.parse(Gi.q(e)||"{}"));return Gi.G(e,r),r}catch{}return null},G:function(e,t,r,n,i,s){try{Gi.G(e,t,void 0,void 0,s);var o={};O5r.forEach((a=>{t[a]&&(o[a]=t[a])})),Object.keys(o).length&&Rf.G(e,o,r,n,i,s)}catch(a){Gi.B(a)}},V:function(e,t){try{$e?.localStorage.removeItem(e),Rf.V(e,t)}catch(r){Gi.B(r)}}}),GP={},_5r={H:function(){return!0},B:function(e){Ot.error("memoryStorage error: "+e)},q:function(e){return GP[e]||null},W:function(e){return GP[e]||null},G:function(e,t){GP[e]=t},V:function(e){delete GP[e]}},Xy=null,_o={H:function(){if(!im(Xy))return Xy;if(Xy=!0,xt($e))Xy=!1;else try{var e="__support__";_o.G(e,"xyz"),_o.q(e)!=='"xyz"'&&(Xy=!1),_o.V(e)}catch{Xy=!1}return Xy},B:function(e){Ot.error("sessionStorage error: ",e)},q:function(e){try{return $e?.sessionStorage.getItem(e)}catch(t){_o.B(t)}return null},W:function(e){try{return JSON.parse(_o.q(e))||null}catch{}return null},G:function(e,t){try{$e?.sessionStorage.setItem(e,JSON.stringify(t))}catch(r){_o.B(r)}},V:function(e){try{$e?.sessionStorage.removeItem(e)}catch(t){_o.B(t)}}},lh=(function(e){return e[e.PENDING=-1]="PENDING",e[e.DENIED=0]="DENIED",e[e.GRANTED=1]="GRANTED",e})({});class k5r{constructor(t){this._instance=t}get F(){return this._instance.config}get consent(){return this.J()?lh.DENIED:this.K}isOptedOut(){return this.F.cookieless_mode==="always"||this.consent===lh.DENIED||this.consent===lh.PENDING&&(this.F.opt_out_capturing_by_default||this.F.cookieless_mode==="on_reject")}isOptedIn(){return!this.isOptedOut()}isExplicitlyOptedOut(){return this.consent===lh.DENIED}optInOut(t){this.Y.G(this.X,t?1:0,this.F.cookie_expiration,this.F.cross_subdomain_cookie,this.F.secure_cookie)}reset(){this.Y.V(this.X,this.F.cross_subdomain_cookie)}get X(){var{token:t,opt_out_capturing_cookie_prefix:r,consent_persistence_name:n}=this._instance.config;return n||(r?r+t:"__ph_opt_in_out_"+t)}get K(){var t=this.Y.q(this.X);return Hz(t)?lh.GRANTED:zr(DNr,t)?lh.DENIED:lh.PENDING}get Y(){if(!this.Z){var t=this.F.opt_out_capturing_persistence_type;this.Z=t==="localStorage"?Gi:Rf;var r=t==="localStorage"?Rf:Gi;r.q(this.X)&&(this.Z.q(this.X)||this.optInOut(Hz(r.q(this.X))),r.V(this.X,this.F.cross_subdomain_cookie))}return this.Z}J(){return!!this.F.respect_dnt&&!!tHe([Jl?.doNotTrack,Jl?.msDoNotTrack,pr.doNotTrack],(t=>Hz(t)))}}var XP=Js("[Dead Clicks]"),E5r=()=>!0,C5r=e=>{var t,r=!((t=e.instance.persistence)==null||!t.get_property(nHe)),n=e.instance.config.capture_dead_clicks;return Cg(n)?n:!!eo(n)||r};class xHe{get lazyLoadedDeadClicksAutocapture(){return this.tt}constructor(t,r,n){this.instance=t,this.isEnabled=r,this.onCapture=n,this.startIfEnabled()}onRemoteConfig(t){this.instance.persistence&&this.instance.persistence.register({[nHe]:t?.captureDeadClicks}),this.startIfEnabled()}startIfEnabled(){this.isEnabled(this)&&this.it((()=>{this.et()}))}it(t){var r,n;(r=pr.__PosthogExtensions__)!=null&&r.initDeadClicksAutocapture&&t(),(n=pr.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this.instance,"dead-clicks-autocapture",(i=>{i?XP.error("failed to load script",i):t()}))}et(){var t;if(St){if(!this.tt&&(t=pr.__PosthogExtensions__)!=null&&t.initDeadClicksAutocapture){var r=eo(this.instance.config.capture_dead_clicks)?this.instance.config.capture_dead_clicks:{};r.__onCapture=this.onCapture,this.tt=pr.__PosthogExtensions__.initDeadClicksAutocapture(this.instance,r),this.tt.start(St),XP.info("starting...")}}else XP.error("`document` not found. Cannot start.")}stop(){this.tt&&(this.tt.stop(),this.tt=void 0,XP.info("stopping..."))}}var s_=Js("[ExceptionAutocapture]");class T5r{constructor(t){var r,n,i;this.rt=()=>{var s;if($e&&this.isEnabled&&(s=pr.__PosthogExtensions__)!=null&&s.errorWrappingFunctions){var o=pr.__PosthogExtensions__.errorWrappingFunctions.wrapOnError,a=pr.__PosthogExtensions__.errorWrappingFunctions.wrapUnhandledRejection,l=pr.__PosthogExtensions__.errorWrappingFunctions.wrapConsoleError;try{!this.st&&this.F.capture_unhandled_errors&&(this.st=o(this.captureException.bind(this))),!this.nt&&this.F.capture_unhandled_rejections&&(this.nt=a(this.captureException.bind(this))),!this.ot&&this.F.capture_console_errors&&(this.ot=l(this.captureException.bind(this)))}catch(c){s_.error("failed to start",c),this.lt()}}},this._instance=t,this.ut=!((r=this._instance.persistence)==null||!r.props[Yxe]),this.F=this.ht(),this.vt=new ANr({refillRate:(n=this._instance.config.error_tracking.__exceptionRateLimiterRefillRate)!==null&&n!==void 0?n:1,bucketSize:(i=this._instance.config.error_tracking.__exceptionRateLimiterBucketSize)!==null&&i!==void 0?i:10,refillInterval:1e4,h:s_}),this.startIfEnabled()}ht(){var t=this._instance.config.capture_exceptions,r={capture_unhandled_errors:!1,capture_unhandled_rejections:!1,capture_console_errors:!1};return eo(t)?r=At({},r,t):(xt(t)?this.ut:t)&&(r=At({},r,{capture_unhandled_errors:!0,capture_unhandled_rejections:!0})),r}get isEnabled(){return this.F.capture_console_errors||this.F.capture_unhandled_errors||this.F.capture_unhandled_rejections}startIfEnabled(){this.isEnabled&&(s_.info("enabled"),this.it(this.rt))}it(t){var r,n;(r=pr.__PosthogExtensions__)!=null&&r.errorWrappingFunctions&&t(),(n=pr.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this._instance,"exception-autocapture",(i=>{if(i)return s_.error("failed to load script",i);t()}))}lt(){var t,r,n;(t=this.st)==null||t.call(this),this.st=void 0,(r=this.nt)==null||r.call(this),this.nt=void 0,(n=this.ot)==null||n.call(this),this.ot=void 0}onRemoteConfig(t){var r=t.autocaptureExceptions;this.ut=!!r||!1,this.F=this.ht(),this._instance.persistence&&this._instance.persistence.register({[Yxe]:this.ut}),this.startIfEnabled()}captureException(t){var r,n,i=(r=t==null||(n=t.$exception_list)==null||(n=n[0])==null?void 0:n.type)!==null&&r!==void 0?r:"Exception";this.vt.consumeRateLimit(i)?s_.info("Skipping exception capture because of client rate limiting.",{exception:i}):this._instance.exceptions.sendExceptionEvent(t)}}function c1e(e,t,r){try{if(!(t in e))return()=>{};var n=e[t],i=r(n);return Eg(i)&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__posthog_wrapped__:{enumerable:!1,value:!0}})),e[t]=i,()=>{e[t]=n}}catch{return()=>{}}}class D5r{constructor(t){var r;this._instance=t,this.dt=($e==null||(r=$e.location)==null?void 0:r.pathname)||""}get isEnabled(){return this._instance.config.capture_pageview==="history_change"}startIfEnabled(){this.isEnabled&&(Ot.info("History API monitoring enabled, starting..."),this.monitorHistoryChanges())}stop(){this.ct&&this.ct(),this.ct=void 0,Ot.info("History API monitoring stopped")}monitorHistoryChanges(){var t,r;if($e&&$e.history){var n=this;(t=$e.history.pushState)!=null&&t.__posthog_wrapped__||c1e($e.history,"pushState",(i=>function(s,o,a){i.call(this,s,o,a),n.ft("pushState")})),(r=$e.history.replaceState)!=null&&r.__posthog_wrapped__||c1e($e.history,"replaceState",(i=>function(s,o,a){i.call(this,s,o,a),n.ft("replaceState")})),this.gt()}}ft(t){try{var r,n=$e==null||(r=$e.location)==null?void 0:r.pathname;if(!n)return;n!==this.dt&&this.isEnabled&&this._instance.capture("$pageview",{navigation_type:t}),this.dt=n}catch(i){Ot.error("Error capturing "+t+" pageview",i)}}gt(){if(!this.ct){var t=()=>{this.ft("popstate")};Ps($e,"popstate",t),this.ct=()=>{$e&&$e.removeEventListener("popstate",t)}}}}var Kz=Js("[SegmentIntegration]");function A5r(e,t){var r=e.config.segment;if(!r)return t();(function(n,i){var s=n.config.segment;if(!s)return i();var o=l=>{var c=()=>l.anonymousId()||pg();n.config.get_device_id=c,l.id()&&(n.register({distinct_id:l.id(),$device_id:c()}),n.persistence.set_property(ah,"identified")),i()},a=s.user();"then"in a&&Eg(a.then)?a.then((l=>o(l))):o(a)})(e,(()=>{r.register((n=>{Promise&&Promise.resolve||Kz.warn("This browser does not have Promise support, and can not use the segment integration");var i=(s,o)=>{if(!o)return s;s.event.userId||s.event.anonymousId===n.get_distinct_id()||(Kz.info("No userId set, resetting PostHog"),n.reset()),s.event.userId&&s.event.userId!==n.get_distinct_id()&&(Kz.info("UserId set, identifying with PostHog"),n.identify(s.event.userId));var a=n.calculateEventProperties(o,s.event.properties);return s.event.properties=Object.assign({},a,s.event.properties),s};return{name:"PostHog JS",type:"enrichment",version:"1.0.0",isLoaded:()=>!0,load:()=>Promise.resolve(),track:s=>i(s,s.event.event),page:s=>i(s,"$pageview"),identify:s=>i(s,"$identify"),screen:s=>i(s,"$screen")}})(e)).then((()=>{t()}))}))}var wHe="posthog-js";function SHe(e,t){var{organization:r,projectId:n,prefix:i,severityAllowList:s=["error"],sendExceptionsToPostHog:o=!0}=t===void 0?{}:t;return a=>{var l,c,u,d,f;if(!(s==="*"||s.includes(a.level))||!e.__loaded)return a;a.tags||(a.tags={});var m=e.requestRouter.endpointFor("ui","/project/"+e.config.token+"/person/"+e.get_distinct_id());a.tags["PostHog Person URL"]=m,e.sessionRecordingStarted()&&(a.tags["PostHog Recording URL"]=e.get_session_replay_url({withTimestamp:!0}));var g=((l=a.exception)==null?void 0:l.values)||[],v=g.map((w=>At({},w,{stacktrace:w.stacktrace?At({},w.stacktrace,{type:"raw",frames:(w.stacktrace.frames||[]).map((S=>At({},S,{platform:"web:javascript"})))}):void 0}))),b={$exception_message:((c=g[0])==null?void 0:c.value)||a.message,$exception_type:(u=g[0])==null?void 0:u.type,$exception_level:a.level,$exception_list:v,$sentry_event_id:a.event_id,$sentry_exception:a.exception,$sentry_exception_message:((d=g[0])==null?void 0:d.value)||a.message,$sentry_exception_type:(f=g[0])==null?void 0:f.type,$sentry_tags:a.tags};return r&&n&&(b.$sentry_url=(i||"https://sentry.io/organizations/")+r+"/issues/?project="+n+"&query="+a.event_id),o&&e.exceptions.sendExceptionEvent(b),a}}class P5r{constructor(t,r,n,i,s,o){this.name=wHe,this.setupOnce=function(a){a(SHe(t,{organization:r,projectId:n,prefix:i,severityAllowList:s,sendExceptionsToPostHog:o==null||o}))}}}var $5r=$e!=null&&$e.location?Q4($e.location.hash,"__posthog")||Q4(location.hash,"state"):null,u1e="_postHogToolbarParams",d1e=Js("[Toolbar]"),Ym=(function(e){return e[e.UNINITIALIZED=0]="UNINITIALIZED",e[e.LOADING=1]="LOADING",e[e.LOADED=2]="LOADED",e})(Ym||{});class I5r{constructor(t){this.instance=t}_t(t){pr.ph_toolbar_state=t}yt(){var t;return(t=pr.ph_toolbar_state)!==null&&t!==void 0?t:Ym.UNINITIALIZED}maybeLoadToolbar(t,r,n){if(t===void 0&&(t=void 0),r===void 0&&(r=void 0),n===void 0&&(n=void 0),!$e||!St)return!1;t=t??$e.location,n=n??$e.history;try{if(!r){try{$e.localStorage.setItem("test","test"),$e.localStorage.removeItem("test")}catch{return!1}r=$e?.localStorage}var i,s=$5r||Q4(t.hash,"__posthog")||Q4(t.hash,"state"),o=s?Gxe((()=>JSON.parse(atob(decodeURIComponent(s)))))||Gxe((()=>JSON.parse(decodeURIComponent(s)))):null;return o&&o.action==="ph_authorize"?((i=o).source="url",i&&Object.keys(i).length>0&&(o.desiredHash?t.hash=o.desiredHash:n?n.replaceState(n.state,"",t.pathname+t.search):t.hash="")):((i=JSON.parse(r.getItem(u1e)||"{}")).source="localstorage",delete i.userIntent),!(!i.token||this.instance.config.token!==i.token)&&(this.loadToolbar(i),!0)}catch{return!1}}bt(t){var r=pr.ph_load_toolbar||pr.ph_load_editor;!qn(r)&&Eg(r)?r(t,this.instance):d1e.warn("No toolbar load function found")}loadToolbar(t){var r=!(St==null||!St.getElementById(sHe));if(!$e||r)return!1;var n=this.instance.requestRouter.region==="custom"&&this.instance.config.advanced_disable_toolbar_metrics,i=At({token:this.instance.config.token},t,{apiURL:this.instance.requestRouter.endpointFor("ui")},n?{instrument:!1}:{});if($e.localStorage.setItem(u1e,JSON.stringify(At({},i,{source:void 0}))),this.yt()===Ym.LOADED)this.bt(i);else if(this.yt()===Ym.UNINITIALIZED){var s;this._t(Ym.LOADING),(s=pr.__PosthogExtensions__)==null||s.loadExternalDependency==null||s.loadExternalDependency(this.instance,"toolbar",(o=>{if(o)return d1e.error("[Toolbar] Failed to load",o),void this._t(Ym.UNINITIALIZED);this._t(Ym.LOADED),this.bt(i)})),Ps($e,"turbolinks:load",(()=>{this._t(Ym.UNINITIALIZED),this.loadToolbar(i)}))}return!0}wt(t){return this.loadToolbar(t)}maybeLoadEditor(t,r,n){return t===void 0&&(t=void 0),r===void 0&&(r=void 0),n===void 0&&(n=void 0),this.maybeLoadToolbar(t,r,n)}}var N5r=Js("[TracingHeaders]");class R5r{constructor(t){this.xt=void 0,this.St=void 0,this.rt=()=>{var r,n;xt(this.xt)&&((r=pr.__PosthogExtensions__)==null||(r=r.tracingHeadersPatchFns)==null||r._patchXHR(this._instance.config.__add_tracing_headers||[],this._instance.get_distinct_id(),this._instance.sessionManager)),xt(this.St)&&((n=pr.__PosthogExtensions__)==null||(n=n.tracingHeadersPatchFns)==null||n._patchFetch(this._instance.config.__add_tracing_headers||[],this._instance.get_distinct_id(),this._instance.sessionManager))},this._instance=t}it(t){var r,n;(r=pr.__PosthogExtensions__)!=null&&r.tracingHeadersPatchFns&&t(),(n=pr.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this._instance,"tracing-headers",(i=>{if(i)return N5r.error("failed to load script",i);t()}))}startIfEnabledOrStop(){var t,r;this._instance.config.__add_tracing_headers?this.it(this.rt):((t=this.xt)==null||t.call(this),(r=this.St)==null||r.call(this),this.xt=void 0,this.St=void 0)}}var eu="Mobile",q4="iOS",Cf="Android",GC="Tablet",OHe=Cf+" "+GC,_He="iPad",kHe="Apple",EHe=kHe+" Watch",XC="Safari",xw="BlackBerry",CHe="Samsung",THe=CHe+"Browser",DHe=CHe+" Internet",b0="Chrome",M5r=b0+" OS",AHe=b0+" "+q4,Pte="Internet Explorer",PHe=Pte+" "+eu,$te="Opera",j5r=$te+" Mini",Ite="Edge",$He="Microsoft "+Ite,i1="Firefox",IHe=i1+" "+q4,YC="Nintendo",JC="PlayStation",s1="Xbox",NHe=Cf+" "+eu,RHe=eu+" "+XC,R_="Windows",mq=R_+" Phone",f1e="Nokia",gq="Ouya",MHe="Generic",F5r=MHe+" "+eu.toLowerCase(),jHe=MHe+" "+GC.toLowerCase(),yq="Konqueror",pa="(\\d+(\\.\\d+)?)",eB=new RegExp("Version/"+pa),L5r=new RegExp(s1,"i"),z5r=new RegExp(JC+" \\w+","i"),B5r=new RegExp(YC+" \\w+","i"),Nte=new RegExp(xw+"|PlayBook|BB10","i"),V5r={"NT3.51":"NT 3.11","NT4.0":"NT 4.0","5.0":"2000",5.1:"XP",5.2:"XP","6.0":"Vista",6.1:"7",6.2:"8",6.3:"8.1",6.4:"10","10.0":"10"},U5r=(e,t)=>t&&zr(t,kHe)||(function(r){return zr(r,XC)&&!zr(r,b0)&&!zr(r,Cf)})(e),FHe=function(e,t){return t=t||"",zr(e," OPR/")&&zr(e,"Mini")?j5r:zr(e," OPR/")?$te:Nte.test(e)?xw:zr(e,"IE"+eu)||zr(e,"WPDesktop")?PHe:zr(e,THe)?DHe:zr(e,Ite)||zr(e,"Edg/")?$He:zr(e,"FBIOS")?"Facebook "+eu:zr(e,"UCWEB")||zr(e,"UCBrowser")?"UC Browser":zr(e,"CriOS")?AHe:zr(e,"CrMo")||zr(e,b0)?b0:zr(e,Cf)&&zr(e,XC)?NHe:zr(e,"FxiOS")?IHe:zr(e.toLowerCase(),yq.toLowerCase())?yq:U5r(e,t)?zr(e,eu)?RHe:XC:zr(e,i1)?i1:zr(e,"MSIE")||zr(e,"Trident/")?Pte:zr(e,"Gecko")?i1:""},Q5r={[PHe]:[new RegExp("rv:"+pa)],[$He]:[new RegExp(Ite+"?\\/"+pa)],[b0]:[new RegExp("("+b0+"|CrMo)\\/"+pa)],[AHe]:[new RegExp("CriOS\\/"+pa)],"UC Browser":[new RegExp("(UCBrowser|UCWEB)\\/"+pa)],[XC]:[eB],[RHe]:[eB],[$te]:[new RegExp("(Opera|OPR)\\/"+pa)],[i1]:[new RegExp(i1+"\\/"+pa)],[IHe]:[new RegExp("FxiOS\\/"+pa)],[yq]:[new RegExp("Konqueror[:/]?"+pa,"i")],[xw]:[new RegExp(xw+" "+pa),eB],[NHe]:[new RegExp("android\\s"+pa,"i")],[DHe]:[new RegExp(THe+"\\/"+pa)],[Pte]:[new RegExp("(rv:|MSIE )"+pa)],Mozilla:[new RegExp("rv:"+pa)]},Z5r=function(e,t){var r=FHe(e,t),n=Q5r[r];if(xt(n))return null;for(var i=0;i<n.length;i++){var s=n[i],o=e.match(s);if(o)return parseFloat(o[o.length-2])}return null},p1e=[[new RegExp(s1+"; "+s1+" (.*?)[);]","i"),e=>[s1,e&&e[1]||""]],[new RegExp(YC,"i"),[YC,""]],[new RegExp(JC,"i"),[JC,""]],[Nte,[xw,""]],[new RegExp(R_,"i"),(e,t)=>{if(/Phone/.test(t)||/WPDesktop/.test(t))return[mq,""];if(new RegExp(eu).test(t)&&!/IEMobile\b/.test(t))return[R_+" "+eu,""];var r=/Windows NT ([0-9.]+)/i.exec(t);if(r&&r[1]){var n=r[1],i=V5r[n]||"";return/arm/i.test(t)&&(i="RT"),[R_,i]}return[R_,""]}],[/((iPhone|iPad|iPod).*?OS (\d+)_(\d+)_?(\d+)?|iPhone)/,e=>{if(e&&e[3]){var t=[e[3],e[4],e[5]||"0"];return[q4,t.join(".")]}return[q4,""]}],[/(watch.*\/(\d+\.\d+\.\d+)|watch os,(\d+\.\d+),)/i,e=>{var t="";return e&&e.length>=3&&(t=xt(e[2])?e[3]:e[2]),["watchOS",t]}],[new RegExp("("+Cf+" (\\d+)\\.(\\d+)\\.?(\\d+)?|"+Cf+")","i"),e=>{if(e&&e[2]){var t=[e[2],e[3],e[4]||"0"];return[Cf,t.join(".")]}return[Cf,""]}],[/Mac OS X (\d+)[_.](\d+)[_.]?(\d+)?/i,e=>{var t=["Mac OS X",""];if(e&&e[1]){var r=[e[1],e[2],e[3]||"0"];t[1]=r.join(".")}return t}],[/Mac/i,["Mac OS X",""]],[/CrOS/,[M5r,""]],[/Linux|debian/i,["Linux",""]]],h1e=function(e){return B5r.test(e)?YC:z5r.test(e)?JC:L5r.test(e)?s1:new RegExp(gq,"i").test(e)?gq:new RegExp("("+mq+"|WPDesktop)","i").test(e)?mq:/iPad/.test(e)?_He:/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(watch)(?: ?os[,/]|\d,\d\/)[\d.]+/i.test(e)?EHe:Nte.test(e)?xw:/(kobo)\s(ereader|touch)/i.test(e)?"Kobo":new RegExp(f1e,"i").test(e)?f1e:/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i.test(e)||/(kf[a-z]+)( bui|\)).+silk\//i.test(e)?"Kindle Fire":/(Android|ZTE)/i.test(e)?!new RegExp(eu).test(e)||/(9138B|TB782B|Nexus [97]|pixel c|HUAWEISHT|BTV|noble nook|smart ultra 6)/i.test(e)?/pixel[\daxl ]{1,6}/i.test(e)&&!/pixel c/i.test(e)||/(huaweimed-al00|tah-|APA|SM-G92|i980|zte|U304AA)/i.test(e)||/lmy47v/i.test(e)&&!/QTAQZ3/i.test(e)?Cf:OHe:Cf:new RegExp("(pda|"+eu+")","i").test(e)?F5r:new RegExp(GC,"i").test(e)&&!new RegExp(GC+" pc","i").test(e)?jHe:""},YP="https?://(.*)",bS=["gclid","gclsrc","dclid","gbraid","wbraid","fbclid","msclkid","twclid","li_fat_id","igshid","ttclid","rdt_cid","epik","qclid","sccid","irclid","_kx"],q5r=vS(["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gad_source","mc_cid"],bS),MD="<masked>",H5r=["li_fat_id"];function LHe(e,t,r){if(!St)return{};var n,i=t?vS([],bS,r||[]):[],s=zHe(RD(St.URL,i,MD),e),o=(n={},fi(H5r,(function(a){var l=Rf.q(a);n[a]=l||null})),n);return ys(o,s)}function zHe(e,t){var r=q5r.concat(t||[]),n={};return fi(r,(function(i){var s=U4(e,i);n[i]=s||null})),n}function BHe(e){var t=(function(s){return s?s.search(YP+"google.([^/?]*)")===0?"google":s.search(YP+"bing.com")===0?"bing":s.search(YP+"yahoo.com")===0?"yahoo":s.search(YP+"duckduckgo.com")===0?"duckduckgo":null:null})(e),r=t!="yahoo"?"q":"p",n={};if(!im(t)){n.$search_engine=t;var i=St?U4(St.referrer,r):"";i.length&&(n.ph_keyword=i)}return n}function m1e(){return navigator.language||navigator.userLanguage}function VHe(){return St?.referrer||"$direct"}function UHe(e,t){var r=e?vS([],bS,t||[]):[],n=Ja?.href.substring(0,1e3);return{r:VHe().substring(0,1e3),u:n?RD(n,r,MD):void 0}}function QHe(e){var t,{r,u:n}=e,i={$referrer:r,$referring_domain:r==null?void 0:r=="$direct"?"$direct":(t=V4(r))==null?void 0:t.host};if(n){i.$current_url=n;var s=V4(n);i.$host=s?.host,i.$pathname=s?.pathname;var o=zHe(n);ys(i,o)}if(r){var a=BHe(r);ys(i,a)}return i}function ZHe(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch{return}}function W5r(){try{return new Date().getTimezoneOffset()}catch{return}}function G5r(e,t){if(!Wa)return{};var r,n,i,s=e?vS([],bS,t||[]):[],[o,a]=(function(l){for(var c=0;c<p1e.length;c++){var[u,d]=p1e[c],f=u.exec(l),m=f&&(Eg(d)?d(f,l):d);if(m)return m}return["",""]})(Wa);return ys(Cte({$os:o,$os_version:a,$browser:FHe(Wa,navigator.vendor),$device:h1e(Wa),$device_type:(n=Wa,i=h1e(n),i===_He||i===OHe||i==="Kobo"||i==="Kindle Fire"||i===jHe?GC:i===YC||i===s1||i===JC||i===gq?"Console":i===EHe?"Wearable":i?eu:"Desktop"),$timezone:ZHe(),$timezone_offset:W5r()}),{$current_url:RD(Ja?.href,s,MD),$host:Ja?.host,$pathname:Ja?.pathname,$raw_user_agent:Wa.length>1e3?Wa.substring(0,997)+"...":Wa,$browser_version:Z5r(Wa,navigator.vendor),$browser_language:m1e(),$browser_language_prefix:(r=m1e(),typeof r=="string"?r.split("-")[0]:void 0),$screen_height:$e?.screen.height,$screen_width:$e?.screen.width,$viewport_height:$e?.innerHeight,$viewport_width:$e?.innerWidth,$lib:"web",$lib_version:oh.LIB_VERSION,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:Date.now()/1e3})}var Zm=Js("[Web Vitals]"),g1e=9e5;class X5r{constructor(t){var r;this.Et=!1,this.P=!1,this.N={url:void 0,metrics:[],firstMetricTimestamp:void 0},this.$t=()=>{clearTimeout(this.kt),this.N.metrics.length!==0&&(this._instance.capture("$web_vitals",this.N.metrics.reduce(((n,i)=>At({},n,{["$web_vitals_"+i.name+"_event"]:At({},i),["$web_vitals_"+i.name+"_value"]:i.value})),{})),this.N={url:void 0,metrics:[],firstMetricTimestamp:void 0})},this.Pt=n=>{var i,s=(i=this._instance.sessionManager)==null?void 0:i.checkAndGetSessionAndWindowId(!0);if(xt(s))Zm.error("Could not read session ID. Dropping metrics!");else{this.N=this.N||{url:void 0,metrics:[],firstMetricTimestamp:void 0};var o=this.Tt();xt(o)||(qn(n?.name)||qn(n?.value)?Zm.error("Invalid metric received",n):this.Rt&&n.value>=this.Rt?Zm.error("Ignoring metric with value >= "+this.Rt,n):(this.N.url!==o&&(this.$t(),this.kt=setTimeout(this.$t,this.flushToCaptureTimeoutMs)),xt(this.N.url)&&(this.N.url=o),this.N.firstMetricTimestamp=xt(this.N.firstMetricTimestamp)?Date.now():this.N.firstMetricTimestamp,n.attribution&&n.attribution.interactionTargetElement&&(n.attribution.interactionTargetElement=void 0),this.N.metrics.push(At({},n,{$current_url:o,$session_id:s.sessionId,$window_id:s.windowId,timestamp:Date.now()})),this.N.metrics.length===this.allowedMetrics.length&&this.$t()))}},this.rt=()=>{var n,i,s,o,a=pr.__PosthogExtensions__;xt(a)||xt(a.postHogWebVitalsCallbacks)||({onLCP:n,onCLS:i,onFCP:s,onINP:o}=a.postHogWebVitalsCallbacks),n&&i&&s&&o?(this.allowedMetrics.indexOf("LCP")>-1&&n(this.Pt.bind(this)),this.allowedMetrics.indexOf("CLS")>-1&&i(this.Pt.bind(this)),this.allowedMetrics.indexOf("FCP")>-1&&s(this.Pt.bind(this)),this.allowedMetrics.indexOf("INP")>-1&&o(this.Pt.bind(this)),this.P=!0):Zm.error("web vitals callbacks not loaded - not starting")},this._instance=t,this.Et=!((r=this._instance.persistence)==null||!r.props[Kxe]),this.startIfEnabled()}get allowedMetrics(){var t,r,n=eo(this._instance.config.capture_performance)?(t=this._instance.config.capture_performance)==null?void 0:t.web_vitals_allowed_metrics:void 0;return xt(n)?((r=this._instance.persistence)==null?void 0:r.props[e1e])||["CLS","FCP","INP","LCP"]:n}get flushToCaptureTimeoutMs(){return(eo(this._instance.config.capture_performance)?this._instance.config.capture_performance.web_vitals_delayed_flush_ms:void 0)||5e3}get Rt(){var t=eo(this._instance.config.capture_performance)&&Xf(this._instance.config.capture_performance.__web_vitals_max_value)?this._instance.config.capture_performance.__web_vitals_max_value:g1e;return 0<t&&t<=6e4?g1e:t}get isEnabled(){var t=Ja?.protocol;if(t!=="http:"&&t!=="https:")return Zm.info("Web Vitals are disabled on non-http/https protocols"),!1;var r=eo(this._instance.config.capture_performance)?this._instance.config.capture_performance.web_vitals:Cg(this._instance.config.capture_performance)?this._instance.config.capture_performance:void 0;return Cg(r)?r:this.Et}startIfEnabled(){this.isEnabled&&!this.P&&(Zm.info("enabled, starting..."),this.it(this.rt))}onRemoteConfig(t){var r=eo(t.capturePerformance)&&!!t.capturePerformance.web_vitals,n=eo(t.capturePerformance)?t.capturePerformance.web_vitals_allowed_metrics:void 0;this._instance.persistence&&(this._instance.persistence.register({[Kxe]:r}),this._instance.persistence.register({[e1e]:n})),this.Et=r,this.startIfEnabled()}it(t){var r,n;(r=pr.__PosthogExtensions__)!=null&&r.postHogWebVitalsCallbacks&&t(),(n=pr.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this._instance,"web-vitals",(i=>{i?Zm.error("failed to load script",i):t()}))}Tt(){var t=$e?$e.location.href:void 0;if(t){var r=this._instance.config.mask_personal_data_properties,n=this._instance.config.custom_personal_data_properties,i=r?vS([],bS,n||[]):[];return RD(t,i,MD)}Zm.error("Could not determine current URL")}}var Y5r=Js("[Heatmaps]");function y1e(e){return eo(e)&&"clientX"in e&&"clientY"in e&&Xf(e.clientX)&&Xf(e.clientY)}class J5r{constructor(t){var r;this.Et=!1,this.P=!1,this.It=null,this.instance=t,this.Et=!((r=this.instance.persistence)==null||!r.props[oq]),this.rageclicks=new vHe(t.config.rageclick)}get flushIntervalMilliseconds(){var t=5e3;return eo(this.instance.config.capture_heatmaps)&&this.instance.config.capture_heatmaps.flush_interval_milliseconds&&(t=this.instance.config.capture_heatmaps.flush_interval_milliseconds),t}get isEnabled(){return xt(this.instance.config.capture_heatmaps)?xt(this.instance.config.enable_heatmaps)?this.Et:this.instance.config.enable_heatmaps:this.instance.config.capture_heatmaps!==!1}startIfEnabled(){if(this.isEnabled){if(this.P)return;Y5r.info("starting..."),this.Ft(),this.Ct()}else{var t;clearInterval((t=this.It)!==null&&t!==void 0?t:void 0),this.Mt(),this.getAndClearBuffer()}}onRemoteConfig(t){var r=!!t.heatmaps;this.instance.persistence&&this.instance.persistence.register({[oq]:r}),this.Et=r,this.startIfEnabled()}getAndClearBuffer(){var t=this.N;return this.N=void 0,t}Ot(t){this.At(t.originalEvent,"deadclick")}Ct(){this.It&&clearInterval(this.It),this.It=(function(t){return t?.visibilityState==="visible"})(St)?setInterval(this.Dt.bind(this),this.flushIntervalMilliseconds):null}Ft(){$e&&St&&(this.jt=this.Dt.bind(this),Ps($e,"beforeunload",this.jt),this.Lt=t=>this.At(t||$e?.event),Ps(St,"click",this.Lt,{capture:!0}),this.Nt=t=>this.Ut(t||$e?.event),Ps(St,"mousemove",this.Nt,{capture:!0}),this.zt=new xHe(this.instance,E5r,this.Ot.bind(this)),this.zt.startIfEnabled(),this.Ht=this.Ct.bind(this),Ps(St,"visibilitychange",this.Ht),this.P=!0)}Mt(){var t;$e&&St&&(this.jt&&$e.removeEventListener("beforeunload",this.jt),this.Lt&&St.removeEventListener("click",this.Lt,{capture:!0}),this.Nt&&St.removeEventListener("mousemove",this.Nt,{capture:!0}),this.Ht&&St.removeEventListener("visibilitychange",this.Ht),clearTimeout(this.Bt),(t=this.zt)==null||t.stop(),this.P=!1)}qt(t,r){var n=this.instance.scrollManager.scrollY(),i=this.instance.scrollManager.scrollX(),s=this.instance.scrollManager.scrollElement(),o=(function(a,l,c){for(var u=a;u&&rR(u)&&!Dg(u,"body");){if(u===c)return!1;if(zr(l,$e?.getComputedStyle(u).position))return!0;u=dHe(u)}return!1})(cHe(t),["fixed","sticky"],s);return{x:t.clientX+(o?0:i),y:t.clientY+(o?0:n),target_fixed:o,type:r}}At(t,r){var n;if(r===void 0&&(r="click"),!t1e(t.target)&&y1e(t)){var i=this.qt(t,r);(n=this.rageclicks)!=null&&n.isRageClick(t.clientX,t.clientY,new Date().getTime())&&this.Wt(At({},i,{type:"rageclick"})),this.Wt(i)}}Ut(t){!t1e(t.target)&&y1e(t)&&(clearTimeout(this.Bt),this.Bt=setTimeout((()=>{this.Wt(this.qt(t,"mousemove"))}),500))}Wt(t){if($e){var r=$e.location.href,n=this.instance.config.mask_personal_data_properties,i=this.instance.config.custom_personal_data_properties,s=n?vS([],bS,i||[]):[],o=RD(r,s,MD);this.N=this.N||{},this.N[o]||(this.N[o]=[]),this.N[o].push(t)}}Dt(){this.N&&!Px(this.N)&&this.instance.capture("$$heatmap",{$heatmap_data:this.getAndClearBuffer()})}}class K5r{constructor(t){this._instance=t}doPageView(t,r){var n,i=this.Gt(t,r);return this.Vt={pathname:(n=$e?.location.pathname)!==null&&n!==void 0?n:"",pageViewId:r,timestamp:t},this._instance.scrollManager.resetContext(),i}doPageLeave(t){var r;return this.Gt(t,(r=this.Vt)==null?void 0:r.pageViewId)}doEvent(){var t;return{$pageview_id:(t=this.Vt)==null?void 0:t.pageViewId}}Gt(t,r){var n=this.Vt;if(!n)return{$pageview_id:r};var i={$pageview_id:r,$prev_pageview_id:n.pageViewId},s=this._instance.scrollManager.getContext();if(s&&!this._instance.config.disable_scroll_properties){var{maxScrollHeight:o,lastScrollY:a,maxScrollY:l,maxContentHeight:c,lastContentY:u,maxContentY:d}=s;if(!(xt(o)||xt(a)||xt(l)||xt(c)||xt(u)||xt(d))){o=Math.ceil(o),a=Math.ceil(a),l=Math.ceil(l),c=Math.ceil(c),u=Math.ceil(u),d=Math.ceil(d);var f=o<=1?1:Ef(a/o,0,1,Ot),m=o<=1?1:Ef(l/o,0,1,Ot),g=c<=1?1:Ef(u/c,0,1,Ot),v=c<=1?1:Ef(d/c,0,1,Ot);i=ys(i,{$prev_pageview_last_scroll:a,$prev_pageview_last_scroll_percentage:f,$prev_pageview_max_scroll:l,$prev_pageview_max_scroll_percentage:m,$prev_pageview_last_content:u,$prev_pageview_last_content_percentage:g,$prev_pageview_max_content:d,$prev_pageview_max_content_percentage:v})}}return n.pathname&&(i.$prev_pageview_pathname=n.pathname),n.timestamp&&(i.$prev_pageview_duration=(t.getTime()-n.timestamp.getTime())/1e3),i}}var tu=Uint8Array,al=Uint16Array,ww=Uint32Array,Rte=new tu([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Mte=new tu([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),v1e=new tu([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),qHe=function(e,t){for(var r=new al(31),n=0;n<31;++n)r[n]=t+=1<<e[n-1];var i=new ww(r[30]);for(n=1;n<30;++n)for(var s=r[n];s<r[n+1];++s)i[s]=s-r[n]<<5|n;return[r,i]},HHe=qHe(Rte,2),e6r=HHe[0],vq=HHe[1];e6r[28]=258,vq[258]=28;for(var b1e=qHe(Mte,0)[1],WHe=new al(32768),Di=0;Di<32768;++Di){var Yy=(43690&Di)>>>1|(21845&Di)<<1;Yy=(61680&(Yy=(52428&Yy)>>>2|(13107&Yy)<<2))>>>4|(3855&Yy)<<4,WHe[Di]=((65280&Yy)>>>8|(255&Yy)<<8)>>>1}var Ok=function(e,t,r){for(var n=e.length,i=0,s=new al(t);i<n;++i)++s[e[i]-1];var o,a=new al(t);for(i=0;i<t;++i)a[i]=a[i-1]+s[i-1]<<1;for(o=new al(n),i=0;i<n;++i)o[i]=WHe[a[e[i]-1]++]>>>15-e[i];return o},x0=new tu(288);for(Di=0;Di<144;++Di)x0[Di]=8;for(Di=144;Di<256;++Di)x0[Di]=9;for(Di=256;Di<280;++Di)x0[Di]=7;for(Di=280;Di<288;++Di)x0[Di]=8;var H4=new tu(32);for(Di=0;Di<32;++Di)H4[Di]=5;var t6r=Ok(x0,9),r6r=Ok(H4,5),GHe=function(e){return(e/8>>0)+(7&e&&1)},XHe=function(e,t,r){(r==null||r>e.length)&&(r=e.length);var n=new(e instanceof al?al:e instanceof ww?ww:tu)(r-t);return n.set(e.subarray(t,r)),n},Jp=function(e,t,r){r<<=7&t;var n=t/8>>0;e[n]|=r,e[n+1]|=r>>>8},o_=function(e,t,r){r<<=7&t;var n=t/8>>0;e[n]|=r,e[n+1]|=r>>>8,e[n+2]|=r>>>16},tB=function(e,t){for(var r=[],n=0;n<e.length;++n)e[n]&&r.push({s:n,f:e[n]});var i=r.length,s=r.slice();if(!i)return[new tu(0),0];if(i==1){var o=new tu(r[0].s+1);return o[r[0].s]=1,[o,1]}r.sort((function(C,T){return C.f-T.f})),r.push({s:-1,f:25001});var a=r[0],l=r[1],c=0,u=1,d=2;for(r[0]={s:-1,f:a.f+l.f,l:a,r:l};u!=i-1;)a=r[r[c].f<r[d].f?c++:d++],l=r[c!=u&&r[c].f<r[d].f?c++:d++],r[u++]={s:-1,f:a.f+l.f,l:a,r:l};var f=s[0].s;for(n=1;n<i;++n)s[n].s>f&&(f=s[n].s);var m=new al(f+1),g=bq(r[u-1],m,0);if(g>t){n=0;var v=0,b=g-t,w=1<<b;for(s.sort((function(C,T){return m[T.s]-m[C.s]||C.f-T.f}));n<i;++n){var S=s[n].s;if(!(m[S]>t))break;v+=w-(1<<g-m[S]),m[S]=t}for(v>>>=b;v>0;){var O=s[n].s;m[O]<t?v-=1<<t-m[O]++-1:++n}for(;n>=0&&v;--n){var k=s[n].s;m[k]==t&&(--m[k],++v)}g=t}return[new tu(m),g]},bq=function(e,t,r){return e.s==-1?Math.max(bq(e.l,t,r+1),bq(e.r,t,r+1)):t[e.s]=r},x1e=function(e){for(var t=e.length;t&&!e[--t];);for(var r=new al(++t),n=0,i=e[0],s=1,o=function(l){r[n++]=l},a=1;a<=t;++a)if(e[a]==i&&a!=t)++s;else{if(!i&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(i),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(i);s=1,i=e[a]}return[r.subarray(0,n),t]},a_=function(e,t){for(var r=0,n=0;n<t.length;++n)r+=e[n]*t[n];return r},xq=function(e,t,r){var n=r.length,i=GHe(t+2);e[i]=255&n,e[i+1]=n>>>8,e[i+2]=255^e[i],e[i+3]=255^e[i+1];for(var s=0;s<n;++s)e[i+s+4]=r[s];return 8*(i+4+n)},w1e=function(e,t,r,n,i,s,o,a,l,c,u){Jp(t,u++,r),++i[256];for(var d=tB(i,15),f=d[0],m=d[1],g=tB(s,15),v=g[0],b=g[1],w=x1e(f),S=w[0],O=w[1],k=x1e(v),C=k[0],T=k[1],P=new al(19),A=0;A<S.length;++A)P[31&S[A]]++;for(A=0;A<C.length;++A)P[31&C[A]]++;for(var R=tB(P,7),M=R[0],z=R[1],U=19;U>4&&!M[v1e[U-1]];--U);var V,L,Q,F,N=c+5<<3,I=a_(i,x0)+a_(s,H4)+o,H=a_(i,f)+a_(s,v)+o+14+3*U+a_(P,M)+(2*P[16]+3*P[17]+7*P[18]);if(N<=I&&N<=H)return xq(t,u,e.subarray(l,l+c));if(Jp(t,u,1+(H<I)),u+=2,H<I){V=Ok(f,m),L=f,Q=Ok(v,b),F=v;var B=Ok(M,z);for(Jp(t,u,O-257),Jp(t,u+5,T-1),Jp(t,u+10,U-4),u+=14,A=0;A<U;++A)Jp(t,u+3*A,M[v1e[A]]);u+=3*U;for(var J=[S,C],q=0;q<2;++q){var j=J[q];for(A=0;A<j.length;++A){var W=31&j[A];Jp(t,u,B[W]),u+=M[W],W>15&&(Jp(t,u,j[A]>>>5&127),u+=j[A]>>>12)}}}else V=t6r,L=x0,Q=r6r,F=H4;for(A=0;A<a;++A)if(n[A]>255){W=n[A]>>>18&31,o_(t,u,V[W+257]),u+=L[W+257],W>7&&(Jp(t,u,n[A]>>>23&31),u+=Rte[W]);var K=31&n[A];o_(t,u,Q[K]),u+=F[K],K>3&&(o_(t,u,n[A]>>>5&8191),u+=Mte[K])}else o_(t,u,V[n[A]]),u+=L[n[A]];return o_(t,u,V[256]),u+L[256]},n6r=new ww([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),i6r=(function(){for(var e=new ww(256),t=0;t<256;++t){for(var r=t,n=9;--n;)r=(1&r&&3988292384)^r>>>1;e[t]=r}return e})(),s6r=function(e,t,r,n,i){return(function(s,o,a,l,c,u){var d=s.length,f=new tu(l+d+5*(1+Math.floor(d/7e3))+c),m=f.subarray(l,f.length-c),g=0;if(!o||d<8)for(var v=0;v<=d;v+=65535){var b=v+65535;b<d?g=xq(m,g,s.subarray(v,b)):(m[v]=u,g=xq(m,g,s.subarray(v,d)))}else{for(var w=n6r[o-1],S=w>>>13,O=8191&w,k=(1<<a)-1,C=new al(32768),T=new al(k+1),P=Math.ceil(a/3),A=2*P,R=function(lt){return(s[lt]^s[lt+1]<<P^s[lt+2]<<A)&k},M=new ww(25e3),z=new al(288),U=new al(32),V=0,L=0,Q=(v=0,0),F=0,N=0;v<d;++v){var I=R(v),H=32767&v,B=T[I];if(C[H]=B,T[I]=H,F<=v){var J=d-v;if((V>7e3||Q>24576)&&J>423){g=w1e(s,m,0,M,z,U,L,Q,N,v-N,g),Q=V=L=0,N=v;for(var q=0;q<286;++q)z[q]=0;for(q=0;q<30;++q)U[q]=0}var j=2,W=0,K=O,ne=H-B&32767;if(J>2&&I==R(v-ne))for(var X=Math.min(S,J)-1,te=Math.min(32767,v),ue=Math.min(258,J);ne<=te&&--K&&H!=B;){if(s[v+j]==s[v+j-ne]){for(var de=0;de<ue&&s[v+de]==s[v+de-ne];++de);if(de>j){if(j=de,W=ne,de>X)break;var De=Math.min(ne,de-2),we=0;for(q=0;q<De;++q){var Ae=v-ne+q+32768&32767,Fe=Ae-C[Ae]+32768&32767;Fe>we&&(we=Fe,B=Ae)}}}ne+=(H=B)-(B=C[H])+32768&32767}if(W){M[Q++]=268435456|vq[j]<<18|b1e[W];var rt=31&vq[j],yt=31&b1e[W];L+=Rte[rt]+Mte[yt],++z[257+rt],++U[yt],F=v+j,++V}else M[Q++]=s[v],++z[s[v]]}}g=w1e(s,m,u,M,z,U,L,Q,N,v-N,g)}return XHe(f,0,l+GHe(g)+c)})(e,t.level==null?6:t.level,t.mem==null?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(e.length)))):12+t.mem,r,n,!0)},rB=function(e,t,r){for(;r;++t)e[t]=r,r>>>=8};function o6r(e,t){t===void 0&&(t={});var r=(function(){var a=4294967295;return{p:function(l){for(var c=a,u=0;u<l.length;++u)c=i6r[255&c^l[u]]^c>>>8;a=c},d:function(){return 4294967295^a}}})(),n=e.length;r.p(e);var i,s=s6r(e,t,10+((i=t).filename&&i.filename.length+1||0),8),o=s.length;return(function(a,l){var c=l.filename;if(a[0]=31,a[1]=139,a[2]=8,a[8]=l.level<2?4:l.level==9?2:0,a[9]=3,l.mtime!=0&&rB(a,4,Math.floor(new Date(l.mtime||Date.now())/1e3)),c){a[3]=8;for(var u=0;u<=c.length;++u)a[u+10]=c.charCodeAt(u)}})(s,t),rB(s,o-8,r.d()),rB(s,o-4,n),s}var a6r=function(e){var t,r,n,i,s="";for(t=r=0,n=(e=(e+"").replace(/\r\n/g,`
|
|
569
569
|
`).replace(/\r/g,`
|
|
570
570
|
`)).length,i=0;i<n;i++){var o=e.charCodeAt(i),a=null;o<128?r++:a=o>127&&o<2048?String.fromCharCode(o>>6|192,63&o|128):String.fromCharCode(o>>12|224,o>>6&63|128,63&o|128),im(a)||(r>t&&(s+=e.substring(t,r)),s+=a,t=r=i+1)}return r>t&&(s+=e.substring(t,e.length)),s},l6r=!!tq||!!eq,S1e="text/plain",W4=function(e,t,r){var n;r===void 0&&(r=!0);var[i,s]=e.split("?"),o=At({},t),a=(n=s?.split("&").map((c=>{var u,[d,f]=c.split("="),m=r&&(u=o[d])!==null&&u!==void 0?u:f;return delete o[d],d+"="+m})))!==null&&n!==void 0?n:[],l=p5r(o);return l&&a.push(l),i+"?"+a.join("&")},M_=(e,t)=>JSON.stringify(e,((r,n)=>typeof n=="bigint"?n.toString():n),t),nB=e=>{var{data:t,compression:r}=e;if(t){if(r===hh.GZipJS){var n=o6r((function(l,c){var u=l.length;if(typeof TextEncoder<"u")return new TextEncoder().encode(l);for(var d=new tu(l.length+(l.length>>>1)),f=0,m=function(w){d[f++]=w},g=0;g<u;++g){if(f+5>d.length){var v=new tu(f+8+(u-g<<1));v.set(d),d=v}var b=l.charCodeAt(g);b<128||c?m(b):b<2048?(m(192|b>>>6),m(128|63&b)):b>55295&&b<57344?(m(240|(b=65536+(1047552&b)|1023&l.charCodeAt(++g))>>>18),m(128|b>>>12&63),m(128|b>>>6&63),m(128|63&b)):(m(224|b>>>12),m(128|b>>>6&63),m(128|63&b))}return XHe(d,0,f)})(M_(t)),{mtime:0}),i=new Blob([n],{type:S1e});return{contentType:S1e,body:i,estimatedSize:i.size}}if(r===hh.Base64){var s=(function(l){var c,u,d,f,m,g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",v=0,b=0,w="",S=[];if(!l)return l;l=a6r(l);do c=(m=l.charCodeAt(v++)<<16|l.charCodeAt(v++)<<8|l.charCodeAt(v++))>>18&63,u=m>>12&63,d=m>>6&63,f=63&m,S[b++]=g.charAt(c)+g.charAt(u)+g.charAt(d)+g.charAt(f);while(v<l.length);switch(w=S.join(""),l.length%3){case 1:w=w.slice(0,-2)+"==";break;case 2:w=w.slice(0,-1)+"="}return w})(M_(t)),o=(l=>"data="+encodeURIComponent(typeof l=="string"?l:M_(l)))(s);return{contentType:"application/x-www-form-urlencoded",body:o,estimatedSize:new Blob([o]).size}}var a=M_(t);return{contentType:"application/json",body:a,estimatedSize:new Blob([a]).size}}},eI=[];eq&&eI.push({transport:"fetch",method:e=>{var t,r,{contentType:n,body:i,estimatedSize:s}=(t=nB(e))!==null&&t!==void 0?t:{},o=new Headers;fi(e.headers,(function(u,d){o.append(d,u)})),n&&o.append("Content-Type",n);var a=e.url,l=null;if(Bxe){var c=new Bxe;l={signal:c.signal,timeout:setTimeout((()=>c.abort()),e.timeout)}}eq(a,At({method:e?.method||"GET",headers:o,keepalive:e.method==="POST"&&(s||0)<52428.8,body:i,signal:(r=l)==null?void 0:r.signal},e.fetchOptions)).then((u=>u.text().then((d=>{var f={statusCode:u.status,text:d};if(u.status===200)try{f.json=JSON.parse(d)}catch(m){Ot.error(m)}e.callback==null||e.callback(f)})))).catch((u=>{Ot.error(u),e.callback==null||e.callback({statusCode:0,text:u})})).finally((()=>l?clearTimeout(l.timeout):null))}}),tq&&eI.push({transport:"XHR",method:e=>{var t,r=new tq;r.open(e.method||"GET",e.url,!0);var{contentType:n,body:i}=(t=nB(e))!==null&&t!==void 0?t:{};fi(e.headers,(function(s,o){r.setRequestHeader(o,s)})),n&&r.setRequestHeader("Content-Type",n),e.timeout&&(r.timeout=e.timeout),e.disableXHRCredentials||(r.withCredentials=!0),r.onreadystatechange=()=>{if(r.readyState===4){var s={statusCode:r.status,text:r.responseText};if(r.status===200)try{s.json=JSON.parse(r.responseText)}catch{}e.callback==null||e.callback(s)}},r.send(i)}}),Jl!=null&&Jl.sendBeacon&&eI.push({transport:"sendBeacon",method:e=>{var t=W4(e.url,{beacon:"1"});try{var r,{contentType:n,body:i}=(r=nB(e))!==null&&r!==void 0?r:{},s=typeof i=="string"?new Blob([i],{type:n}):i;Jl.sendBeacon(t,s)}catch{}}});var G4=function(e,t){if(!(function(r){try{new RegExp(r)}catch{return!1}return!0})(t))return!1;try{return new RegExp(t).test(e)}catch{return!1}};function O1e(e,t,r){return M_({distinct_id:e,userPropertiesToSet:t,userPropertiesToSetOnce:r})}var YHe={exact:(e,t)=>t.some((r=>e.some((n=>r===n)))),is_not:(e,t)=>t.every((r=>e.every((n=>r!==n)))),regex:(e,t)=>t.some((r=>e.some((n=>G4(r,n))))),not_regex:(e,t)=>t.every((r=>e.every((n=>!G4(r,n))))),icontains:(e,t)=>t.map(JP).some((r=>e.map(JP).some((n=>r.includes(n))))),not_icontains:(e,t)=>t.map(JP).every((r=>e.map(JP).every((n=>!r.includes(n)))))},JP=e=>e.toLowerCase();function JHe(e,t){return!e||Object.entries(e).every((r=>{var[n,i]=r,s=t?.[n];if(xt(s)||im(s))return!1;var o=[String(s)],a=YHe[i.operator];return!!a&&a(i.values,o)}))}var iB=Js("[Error tracking]");class c6r{constructor(t){var r,n;this.Jt=[],this.Kt=new INr([new VNr,new YNr,new QNr,new UNr,new GNr,new WNr,new qNr,new XNr],BNr("web:javascript",jNr,zNr)),this._instance=t,this.Jt=(r=(n=this._instance.persistence)==null?void 0:n.get_property(aq))!==null&&r!==void 0?r:[]}onRemoteConfig(t){var r,n,i,s=(r=(n=t.errorTracking)==null?void 0:n.suppressionRules)!==null&&r!==void 0?r:[],o=(i=t.errorTracking)==null?void 0:i.captureExtensionExceptions;this.Jt=s,this._instance.persistence&&this._instance.persistence.register({[aq]:this.Jt,[Jxe]:o})}get Yt(){var t,r=!!this._instance.get_property(Jxe),n=this._instance.config.error_tracking.captureExtensionExceptions;return(t=n??r)!==null&&t!==void 0&&t}buildProperties(t,r){return this.Kt.buildFromUnknown(t,{syntheticException:r?.syntheticException,mechanism:{handled:r?.handled}})}sendExceptionEvent(t){var r=t.$exception_list;if(this.Xt(r)){if(this.Qt(r))return void iB.info("Skipping exception capture because a suppression rule matched");if(!this.Yt&&this.Zt(r))return void iB.info("Skipping exception capture because it was thrown by an extension");if(!this._instance.config.error_tracking.__capturePostHogExceptions&&this.ti(r))return void iB.info("Skipping exception capture because it was thrown by the PostHog SDK")}return this._instance.capture("$exception",t,{_noTruncate:!0,_batchKey:"exceptionEvent"})}Qt(t){if(t.length===0)return!1;var r=t.reduce(((n,i)=>{var{type:s,value:o}=i;return Xs(s)&&s.length>0&&n.$exception_types.push(s),Xs(o)&&o.length>0&&n.$exception_values.push(o),n}),{$exception_types:[],$exception_values:[]});return this.Jt.some((n=>{var i=n.values.map((s=>{var o,a=YHe[s.operator],l=ei(s.value)?s.value:[s.value],c=(o=r[s.key])!==null&&o!==void 0?o:[];return l.length>0&&a(l,c)}));return n.type==="OR"?i.some(Boolean):i.every(Boolean)}))}Zt(t){return t.flatMap((r=>{var n,i;return(n=(i=r.stacktrace)==null?void 0:i.frames)!==null&&n!==void 0?n:[]})).some((r=>r.filename&&r.filename.startsWith("chrome-extension://")))}ti(t){if(t.length>0){var r,n,i,s,o=(r=(n=t[0].stacktrace)==null?void 0:n.frames)!==null&&r!==void 0?r:[],a=o[o.length-1];return(i=a==null||(s=a.filename)==null?void 0:s.includes("posthog.com/static"))!==null&&i!==void 0&&i}return!1}Xt(t){return!qn(t)&&ei(t)}}var Bu=Js("[FeatureFlags]"),l_=Js("[FeatureFlags]",{debugEnabled:!0}),sB="$active_feature_flags",nx="$override_feature_flags",_1e="$feature_flag_payloads",c_="$override_feature_flag_payloads",k1e="$feature_flag_request_id",E1e="$feature_flag_evaluated_at",C1e=e=>{var t={};for(var[r,n]of K$(e||{}))n&&(t[r]=n);return t},u6r=e=>{var t=e.flags;return t?(e.featureFlags=Object.fromEntries(Object.keys(t).map((r=>{var n;return[r,(n=t[r].variant)!==null&&n!==void 0?n:t[r].enabled]}))),e.featureFlagPayloads=Object.fromEntries(Object.keys(t).filter((r=>t[r].enabled)).filter((r=>{var n;return(n=t[r].metadata)==null?void 0:n.payload})).map((r=>{var n;return[r,(n=t[r].metadata)==null?void 0:n.payload]})))):Bu.warn("Using an older version of the feature flags endpoint. Please upgrade your PostHog server to the latest version"),e},d6r=(function(e){return e.FeatureFlags="feature_flags",e.Recordings="recordings",e})({});class f6r{constructor(t){this.ii=!1,this.ei=!1,this.ri=!1,this.si=!1,this.ni=!1,this.oi=!1,this.ai=!1,this._instance=t,this.featureFlagEventHandlers=[]}li(){var t=this._instance.config.evaluation_environments;return t!=null&&t.length?t.filter((r=>{var n=r&&typeof r=="string"&&r.trim().length>0;return n||Bu.error("Invalid evaluation environment found:",r,"Expected non-empty string"),n})):[]}ui(){return this.li().length>0}flags(){if(this._instance.config.__preview_remote_config)this.oi=!0;else{var t=!this.hi&&(this._instance.config.advanced_disable_feature_flags||this._instance.config.advanced_disable_feature_flags_on_first_load);this.vi({disableFlags:t})}}get hasLoadedFlags(){return this.ei}getFlags(){return Object.keys(this.getFlagVariants())}getFlagsWithDetails(){var t=this._instance.get_property(lq),r=this._instance.get_property(nx),n=this._instance.get_property(c_);if(!n&&!r)return t||{};var i=ys({},t||{}),s=[...new Set([...Object.keys(n||{}),...Object.keys(r||{})])];for(var o of s){var a,l,c=i[o],u=r?.[o],d=xt(u)?(a=c?.enabled)!==null&&a!==void 0&&a:!!u,f=xt(u)?c.variant:typeof u=="string"?u:void 0,m=n?.[o],g=At({},c,{enabled:d,variant:d?f??c?.variant:void 0});d!==c?.enabled&&(g.original_enabled=c?.enabled),f!==c?.variant&&(g.original_variant=c?.variant),m&&(g.metadata=At({},c?.metadata,{payload:m,original_payload:c==null||(l=c.metadata)==null?void 0:l.payload})),i[o]=g}return this.ii||(Bu.warn(" Overriding feature flag details!",{flagDetails:t,overriddenPayloads:n,finalDetails:i}),this.ii=!0),i}getFlagVariants(){var t=this._instance.get_property($x),r=this._instance.get_property(nx);if(!r)return t||{};for(var n=ys({},t),i=Object.keys(r),s=0;s<i.length;s++)n[i[s]]=r[i[s]];return this.ii||(Bu.warn(" Overriding feature flags!",{enabledFlags:t,overriddenFlags:r,finalFlags:n}),this.ii=!0),n}getFlagPayloads(){var t=this._instance.get_property(_1e),r=this._instance.get_property(c_);if(!r)return t||{};for(var n=ys({},t||{}),i=Object.keys(r),s=0;s<i.length;s++)n[i[s]]=r[i[s]];return this.ii||(Bu.warn(" Overriding feature flag payloads!",{flagPayloads:t,overriddenPayloads:r,finalPayloads:n}),this.ii=!0),n}reloadFeatureFlags(){this.si||this._instance.config.advanced_disable_feature_flags||this.hi||(this.hi=setTimeout((()=>{this.vi()}),5))}di(){clearTimeout(this.hi),this.hi=void 0}ensureFlagsLoaded(){this.ei||this.ri||this.hi||this.reloadFeatureFlags()}setAnonymousDistinctId(t){this.$anon_distinct_id=t}setReloadingPaused(t){this.si=t}vi(t){var r;if(this.di(),!this._instance.O())if(this.ri)this.ni=!0;else{var n={token:this._instance.config.token,distinct_id:this._instance.get_distinct_id(),groups:this._instance.getGroups(),$anon_distinct_id:this.$anon_distinct_id,person_properties:At({},((r=this._instance.persistence)==null?void 0:r.get_initial_props())||{},this._instance.get_property(N_)||{}),group_properties:this._instance.get_property(iv)};(t!=null&&t.disableFlags||this._instance.config.advanced_disable_feature_flags)&&(n.disable_flags=!0),this.ui()&&(n.evaluation_environments=this.li());var i=this._instance.config.__preview_remote_config,s=i?"/flags/?v=2":"/flags/?v=2&config=true",o=this._instance.config.advanced_only_evaluate_survey_feature_flags?"&only_evaluate_survey_feature_flags=true":"",a=this._instance.requestRouter.endpointFor("flags",s+o);i&&(n.timezone=ZHe()),this.ri=!0,this._instance.ci({method:"POST",url:a,data:n,compression:this._instance.config.disable_compression?void 0:hh.Base64,timeout:this._instance.config.feature_flag_request_timeout_ms,callback:l=>{var c,u,d=!0;if(l.statusCode===200&&(this.ni||(this.$anon_distinct_id=void 0),d=!1),this.ri=!1,this.oi||(this.oi=!0,this._instance.fi((u=l.json)!==null&&u!==void 0?u:{})),!n.disable_flags||this.ni)if(this.ai=!d,l.json&&(c=l.json.quotaLimited)!=null&&c.includes(d6r.FeatureFlags))Bu.warn("You have hit your feature flags quota limit, and will not be able to load feature flags until the quota is reset. Please visit https://posthog.com/docs/billing/limits-alerts to learn more.");else{var f;n.disable_flags||this.receivedFeatureFlags((f=l.json)!==null&&f!==void 0?f:{},d),this.ni&&(this.ni=!1,this.vi())}}})}}getFeatureFlag(t,r){if(r===void 0&&(r={}),this.ei||this.getFlags()&&this.getFlags().length>0){var n=this.getFlagVariants()[t],i=""+n,s=this._instance.get_property(k1e)||void 0,o=this._instance.get_property(E1e)||void 0,a=this._instance.get_property(F4)||{};if((r.send_event||!("send_event"in r))&&(!(t in a)||!a[t].includes(i))){var l,c,u,d,f,m,g,v,b;ei(a[t])?a[t].push(i):a[t]=[i],(l=this._instance.persistence)==null||l.register({[F4]:a});var w=this.getFeatureFlagDetails(t),S={$feature_flag:t,$feature_flag_response:n,$feature_flag_payload:this.getFeatureFlagPayload(t)||null,$feature_flag_request_id:s,$feature_flag_evaluated_at:o,$feature_flag_bootstrapped_response:((c=this._instance.config.bootstrap)==null||(c=c.featureFlags)==null?void 0:c[t])||null,$feature_flag_bootstrapped_payload:((u=this._instance.config.bootstrap)==null||(u=u.featureFlagPayloads)==null?void 0:u[t])||null,$used_bootstrap_value:!this.ai};xt(w==null||(d=w.metadata)==null?void 0:d.version)||(S.$feature_flag_version=w.metadata.version);var O,k=(f=w==null||(m=w.reason)==null?void 0:m.description)!==null&&f!==void 0?f:w==null||(g=w.reason)==null?void 0:g.code;k&&(S.$feature_flag_reason=k),w!=null&&(v=w.metadata)!=null&&v.id&&(S.$feature_flag_id=w.metadata.id),xt(w?.original_variant)&&xt(w?.original_enabled)||(S.$feature_flag_original_response=xt(w.original_variant)?w.original_enabled:w.original_variant),w!=null&&(b=w.metadata)!=null&&b.original_payload&&(S.$feature_flag_original_payload=w==null||(O=w.metadata)==null?void 0:O.original_payload),this._instance.capture("$feature_flag_called",S)}return n}Bu.warn('getFeatureFlag for key "'+t+`" failed. Feature flags didn't load in time.`)}getFeatureFlagDetails(t){return this.getFlagsWithDetails()[t]}getFeatureFlagPayload(t){return this.getFlagPayloads()[t]}getRemoteConfigPayload(t,r){var n=this._instance.config.token,i={distinct_id:this._instance.get_distinct_id(),token:n};this.ui()&&(i.evaluation_environments=this.li()),this._instance.ci({method:"POST",url:this._instance.requestRouter.endpointFor("flags","/flags/?v=2&config=true"),data:i,compression:this._instance.config.disable_compression?void 0:hh.Base64,timeout:this._instance.config.feature_flag_request_timeout_ms,callback:s=>{var o,a=(o=s.json)==null?void 0:o.featureFlagPayloads;r(a?.[t]||void 0)}})}isFeatureEnabled(t,r){if(r===void 0&&(r={}),this.ei||this.getFlags()&&this.getFlags().length>0){var n=this.getFeatureFlag(t,r);return xt(n)?void 0:!!n}Bu.warn('isFeatureEnabled for key "'+t+`" failed. Feature flags didn't load in time.`)}addFeatureFlagsHandler(t){this.featureFlagEventHandlers.push(t)}removeFeatureFlagsHandler(t){this.featureFlagEventHandlers=this.featureFlagEventHandlers.filter((r=>r!==t))}receivedFeatureFlags(t,r){if(this._instance.persistence){this.ei=!0;var n=this.getFlagVariants(),i=this.getFlagPayloads(),s=this.getFlagsWithDetails();(function(o,a,l,c,u){l===void 0&&(l={}),c===void 0&&(c={}),u===void 0&&(u={});var d=u6r(o),f=d.flags,m=d.featureFlags,g=d.featureFlagPayloads;if(m){var v=o.requestId,b=o.evaluatedAt;if(ei(m)){Bu.warn("v1 of the feature flags endpoint is deprecated. Please use the latest version.");var w={};if(m)for(var S=0;S<m.length;S++)w[m[S]]=!0;a&&a.register({[sB]:m,[$x]:w})}else{var O=m,k=g,C=f;o.errorsWhileComputingFlags&&(O=At({},l,O),k=At({},c,k),C=At({},u,C)),a&&a.register(At({[sB]:Object.keys(C1e(O)),[$x]:O||{},[_1e]:k||{},[lq]:C||{}},v?{[k1e]:v}:{},b?{[E1e]:b}:{}))}}})(t,this._instance.persistence,n,i,s),this.pi(r)}}override(t,r){r===void 0&&(r=!1),Bu.warn("override is deprecated. Please use overrideFeatureFlags instead."),this.overrideFeatureFlags({flags:t,suppressWarning:r})}overrideFeatureFlags(t){if(!this._instance.__loaded||!this._instance.persistence)return Bu.uninitializedWarning("posthog.featureFlags.overrideFeatureFlags");if(t===!1)return this._instance.persistence.unregister(nx),this._instance.persistence.unregister(c_),this.pi(),l_.info("All overrides cleared");if(t&&typeof t=="object"&&("flags"in t||"payloads"in t)){var r,n=t;if(this.ii=!!((r=n.suppressWarning)!==null&&r!==void 0&&r),"flags"in n){if(n.flags===!1)this._instance.persistence.unregister(nx),l_.info("Flag overrides cleared");else if(n.flags){if(ei(n.flags)){for(var i={},s=0;s<n.flags.length;s++)i[n.flags[s]]=!0;this._instance.persistence.register({[nx]:i})}else this._instance.persistence.register({[nx]:n.flags});l_.info("Flag overrides set",{flags:n.flags})}}return"payloads"in n&&(n.payloads===!1?(this._instance.persistence.unregister(c_),l_.info("Payload overrides cleared")):n.payloads&&(this._instance.persistence.register({[c_]:n.payloads}),l_.info("Payload overrides set",{payloads:n.payloads}))),void this.pi()}this.pi()}onFeatureFlags(t){if(this.addFeatureFlagsHandler(t),this.ei){var{flags:r,flagVariants:n}=this.gi();t(r,n)}return()=>this.removeFeatureFlagsHandler(t)}updateEarlyAccessFeatureEnrollment(t,r,n){var i,s=(this._instance.get_property(I_)||[]).find((c=>c.flagKey===t)),o={["$feature_enrollment/"+t]:r},a={$feature_flag:t,$feature_enrollment:r,$set:o};s&&(a.$early_access_feature_name=s.name),n&&(a.$feature_enrollment_stage=n),this._instance.capture("$feature_enrollment_update",a),this.setPersonPropertiesForFlags(o,!1);var l=At({},this.getFlagVariants(),{[t]:r});(i=this._instance.persistence)==null||i.register({[sB]:Object.keys(C1e(l)),[$x]:l}),this.pi()}getEarlyAccessFeatures(t,r,n){r===void 0&&(r=!1);var i=this._instance.get_property(I_),s=n?"&"+n.map((o=>"stage="+o)).join("&"):"";if(i&&!r)return t(i);this._instance.ci({url:this._instance.requestRouter.endpointFor("api","/api/early_access_features/?token="+this._instance.config.token+s),method:"GET",callback:o=>{var a,l;if(o.json){var c=o.json.earlyAccessFeatures;return(a=this._instance.persistence)==null||a.unregister(I_),(l=this._instance.persistence)==null||l.register({[I_]:c}),t(c)}}})}gi(){var t=this.getFlags(),r=this.getFlagVariants();return{flags:t.filter((n=>r[n])),flagVariants:Object.keys(r).filter((n=>r[n])).reduce(((n,i)=>(n[i]=r[i],n)),{})}}pi(t){var{flags:r,flagVariants:n}=this.gi();this.featureFlagEventHandlers.forEach((i=>i(r,n,{errorsLoading:t})))}setPersonPropertiesForFlags(t,r){r===void 0&&(r=!0);var n=this._instance.get_property(N_)||{};this._instance.register({[N_]:At({},n,t)}),r&&this._instance.reloadFeatureFlags()}resetPersonPropertiesForFlags(){this._instance.unregister(N_)}setGroupPropertiesForFlags(t,r){r===void 0&&(r=!0);var n=this._instance.get_property(iv)||{};Object.keys(n).length!==0&&Object.keys(n).forEach((i=>{n[i]=At({},n[i],t[i]),delete t[i]})),this._instance.register({[iv]:At({},n,t)}),r&&this._instance.reloadFeatureFlags()}resetGroupPropertiesForFlags(t){if(t){var r=this._instance.get_property(iv)||{};this._instance.register({[iv]:At({},r,{[t]:{}})})}else this._instance.unregister(iv)}reset(){this.ei=!1,this.ri=!1,this.si=!1,this.ni=!1,this.oi=!1,this.ai=!1,this.$anon_distinct_id=void 0,this.di(),this.ii=!1}}var p6r=["cookie","localstorage","localstorage+cookie","sessionstorage","memory"];class oB{constructor(t,r){this.F=t,this.props={},this.mi=!1,this.yi=(n=>{var i="";return n.token&&(i=n.token.replace(/\+/g,"PL").replace(/\//g,"SL").replace(/=/g,"EQ")),n.persistence_name?"ph_"+n.persistence_name:"ph_"+i+"_posthog"})(t),this.Y=this.bi(t),this.load(),t.debug&&Ot.info("Persistence loaded",t.persistence,At({},this.props)),this.update_config(t,t,r),this.save()}isDisabled(){return!!this.wi}bi(t){p6r.indexOf(t.persistence.toLowerCase())===-1&&(Ot.critical("Unknown persistence type "+t.persistence+"; falling back to localStorage+cookie"),t.persistence="localStorage+cookie");var r=t.persistence.toLowerCase();return r==="localstorage"&&Gi.H()?Gi:r==="localstorage+cookie"&&WP.H()?WP:r==="sessionstorage"&&_o.H()?_o:r==="memory"?_5r:r==="cookie"?Rf:WP.H()?WP:Rf}properties(){var t={};return fi(this.props,(function(r,n){if(n===$x&&eo(r))for(var i=Object.keys(r),s=0;s<i.length;s++)t["$feature/"+i[s]]=r[i[s]];else a=n,l=!1,(im(o=n5r)?l:zxe&&o.indexOf===zxe?o.indexOf(a)!=-1:(fi(o,(function(c){if(l||(l=c===a))return M4})),l))||(t[n]=r);var o,a,l})),t}load(){if(!this.wi){var t=this.Y.W(this.yi);t&&(this.props=ys({},t))}}save(){this.wi||this.Y.G(this.yi,this.props,this.xi,this.Si,this.Ei,this.F.debug)}remove(){this.Y.V(this.yi,!1),this.Y.V(this.yi,!0)}clear(){this.remove(),this.props={}}register_once(t,r,n){if(eo(t)){xt(r)&&(r="None"),this.xi=xt(n)?this.$i:n;var i=!1;if(fi(t,((s,o)=>{this.props.hasOwnProperty(o)&&this.props[o]!==r||(this.props[o]=s,i=!0)})),i)return this.save(),!0}return!1}register(t,r){if(eo(t)){this.xi=xt(r)?this.$i:r;var n=!1;if(fi(t,((i,s)=>{t.hasOwnProperty(s)&&this.props[s]!==i&&(this.props[s]=i,n=!0)})),n)return this.save(),!0}return!1}unregister(t){t in this.props&&(delete this.props[t],this.save())}update_campaign_params(){if(!this.mi){var t=LHe(this.F.custom_campaign_params,this.F.mask_personal_data_properties,this.F.custom_personal_data_properties);Px(Cte(t))||this.register(t),this.mi=!0}}update_search_keyword(){var t;this.register((t=St?.referrer)?BHe(t):{})}update_referrer_info(){var t;this.register_once({$referrer:VHe(),$referring_domain:St!=null&&St.referrer&&((t=V4(St.referrer))==null?void 0:t.host)||"$direct"},void 0)}set_initial_person_info(){this.props[fq]||this.props[pq]||this.register_once({[L4]:UHe(this.F.mask_personal_data_properties,this.F.custom_personal_data_properties)},void 0)}get_initial_props(){var t={};fi([pq,fq],(o=>{var a=this.props[o];a&&fi(a,(function(l,c){t["$initial_"+rq(c)]=l}))}));var r,n,i=this.props[L4];if(i){var s=(r=QHe(i),n={},fi(r,(function(o,a){n["$initial_"+rq(a)]=o})),n);ys(t,s)}return t}safe_merge(t){return fi(this.props,(function(r,n){n in t||(t[n]=r)})),t}update_config(t,r,n){if(this.$i=this.xi=t.cookie_expiration,this.set_disabled(t.disable_persistence||!!n),this.set_cross_subdomain(t.cross_subdomain_cookie),this.set_secure(t.secure_cookie),t.persistence!==r.persistence){var i=this.bi(t),s=this.props;this.clear(),this.Y=i,this.props=s,this.save()}}set_disabled(t){this.wi=t,this.wi?this.remove():this.save()}set_cross_subdomain(t){t!==this.Si&&(this.Si=t,this.remove(),this.save())}set_secure(t){t!==this.Ei&&(this.Ei=t,this.remove(),this.save())}set_event_timer(t,r){var n=this.props[$_]||{};n[t]=r,this.props[$_]=n,this.save()}remove_event_timer(t){var r=(this.props[$_]||{})[t];return xt(r)||(delete this.props[$_][t],this.save()),r}get_property(t){return this.props[t]}set_property(t,r){this.props[t]=r,this.save()}}var u_=(function(e){return e.Activation="events",e.Cancellation="cancelEvents",e})({});(function(e){return e.Button="button",e.Tab="tab",e.Selector="selector",e})({});(function(e){return e.TopLeft="top_left",e.TopRight="top_right",e.TopCenter="top_center",e.MiddleLeft="middle_left",e.MiddleRight="middle_right",e.MiddleCenter="middle_center",e.Left="left",e.Center="center",e.Right="right",e.NextToTrigger="next_to_trigger",e})({});(function(e){return e.Top="top",e.Left="left",e.Right="right",e.Bottom="bottom",e})({});var aB=(function(e){return e.Popover="popover",e.API="api",e.Widget="widget",e.ExternalSurvey="external_survey",e})({});(function(e){return e.Open="open",e.MultipleChoice="multiple_choice",e.SingleChoice="single_choice",e.Rating="rating",e.Link="link",e})({});(function(e){return e.NextQuestion="next_question",e.End="end",e.ResponseBased="response_based",e.SpecificQuestion="specific_question",e})({});(function(e){return e.Once="once",e.Recurring="recurring",e.Always="always",e})({});var tI=(function(e){return e.SHOWN="survey shown",e.DISMISSED="survey dismissed",e.SENT="survey sent",e})({}),T1e=(function(e){return e.SURVEY_ID="$survey_id",e.SURVEY_NAME="$survey_name",e.SURVEY_RESPONSE="$survey_response",e.SURVEY_ITERATION="$survey_iteration",e.SURVEY_ITERATION_START_DATE="$survey_iteration_start_date",e.SURVEY_PARTIALLY_COMPLETED="$survey_partially_completed",e.SURVEY_SUBMISSION_ID="$survey_submission_id",e.SURVEY_QUESTIONS="$survey_questions",e.SURVEY_COMPLETED="$survey_completed",e})({}),KHe=(function(e){return e.Popover="popover",e.Inline="inline",e})({});class jte{constructor(){this.ki={},this.ki={}}on(t,r){return this.ki[t]||(this.ki[t]=[]),this.ki[t].push(r),()=>{this.ki[t]=this.ki[t].filter((n=>n!==r))}}emit(t,r){for(var n of this.ki[t]||[])n(r);for(var i of this.ki["*"]||[])i(t,r)}}function ix(e,t,r){if(qn(e))return!1;switch(r){case"exact":return e===t;case"contains":var n=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/_/g,".").replace(/%/g,".*");return new RegExp(n,"i").test(e);case"regex":try{return new RegExp(t).test(e)}catch{return!1}default:return!1}}class h6r{constructor(t){this.Pi=new jte,this.Ti=(r,n)=>this.Ri(r,n)&&this.Ii(r,n)&&this.Fi(r,n)&&this.Ci(r,n),this.Ri=(r,n)=>n==null||!n.event||r?.event===n?.event,this._instance=t,this.Mi=new Set,this.Oi=new Set}init(){var t;if(!xt((t=this._instance)==null?void 0:t.Ai)){var r;(r=this._instance)==null||r.Ai(((n,i)=>{this.on(n,i)}))}}register(t){var r,n;if(!xt((r=this._instance)==null?void 0:r.Ai)&&(t.forEach((o=>{var a,l;(a=this.Oi)==null||a.add(o),(l=o.steps)==null||l.forEach((c=>{var u;(u=this.Mi)==null||u.add(c?.event||"")}))})),(n=this._instance)!=null&&n.autocapture)){var i,s=new Set;t.forEach((o=>{var a;(a=o.steps)==null||a.forEach((l=>{l!=null&&l.selector&&s.add(l?.selector)}))})),(i=this._instance)==null||i.autocapture.setElementSelectors(s)}}on(t,r){var n;r!=null&&t.length!=0&&(this.Mi.has(t)||this.Mi.has(r?.event))&&this.Oi&&((n=this.Oi)==null?void 0:n.size)>0&&this.Oi.forEach((i=>{this.Di(r,i)&&this.Pi.emit("actionCaptured",i.name)}))}ji(t){this.onAction("actionCaptured",(r=>t(r)))}Di(t,r){if(r?.steps==null)return!1;for(var n of r.steps)if(this.Ti(t,n))return!0;return!1}onAction(t,r){return this.Pi.on(t,r)}Ii(t,r){if(r!=null&&r.url){var n,i=t==null||(n=t.properties)==null?void 0:n.$current_url;if(!i||typeof i!="string"||!ix(i,r.url,r.url_matching||"contains"))return!1}return!0}Fi(t,r){return!!this.Li(t,r)&&!!this.Ni(t,r)&&!!this.Ui(t,r)}Li(t,r){var n;if(r==null||!r.href)return!0;var i=this.zi(t);if(i.length>0)return i.some((a=>ix(a.href,r.href,r.href_matching||"exact")));var s,o=(t==null||(n=t.properties)==null?void 0:n.$elements_chain)||"";return!!o&&ix((s=o.match(/(?::|")href="(.*?)"/))?s[1]:"",r.href,r.href_matching||"exact")}Ni(t,r){var n;if(r==null||!r.text)return!0;var i=this.zi(t);if(i.length>0)return i.some((c=>ix(c.text,r.text,r.text_matching||"exact")||ix(c.$el_text,r.text,r.text_matching||"exact")));var s,o,a,l=(t==null||(n=t.properties)==null?void 0:n.$elements_chain)||"";return!!l&&(s=(function(c){for(var u,d=[],f=/(?::|")text="(.*?)"/g;!qn(u=f.exec(c));)d.includes(u[1])||d.push(u[1]);return d})(l),o=r.text,a=r.text_matching||"exact",s.some((c=>ix(c,o,a))))}Ui(t,r){var n,i;if(r==null||!r.selector)return!0;var s=t==null||(n=t.properties)==null?void 0:n.$element_selectors;if(s!=null&&s.includes(r.selector))return!0;var o=(t==null||(i=t.properties)==null?void 0:i.$elements_chain)||"";if(r.selector_regex&&o)try{return new RegExp(r.selector_regex).test(o)}catch{return!1}return!1}zi(t){var r;return(t==null||(r=t.properties)==null?void 0:r.$elements)==null?[]:t?.properties.$elements}Ci(t,r){return r==null||!r.properties||r.properties.length===0||JHe(r.properties.reduce(((n,i)=>{var s=ei(i.value)?i.value.map(String):i.value!=null?[String(i.value)]:[];return n[i.key]={values:s,operator:i.operator||"exact"},n}),{}),t?.properties)}}var Dn=Js("[Surveys]"),wq="seenSurvey_",m6r=(e,t)=>{var r="$survey_"+t+"/"+e.id;return e.current_iteration&&e.current_iteration>0&&(r="$survey_"+t+"/"+e.id+"/"+e.current_iteration),r},D1e=e=>{var t=""+wq+e.id;return e.current_iteration&&e.current_iteration>0&&(t=""+wq+e.id+"_"+e.current_iteration),t},g6r=[aB.Popover,aB.Widget,aB.API],y6r={ignoreConditions:!1,ignoreDelay:!1,displayType:KHe.Popover};class v6r{constructor(t){this._instance=t,this.Hi=new Map,this.Bi=new Map,this.qi=new Map}Wi(t,r){return!!t&&JHe(t.propertyFilters,r?.properties)}Gi(t,r){var n=new Map;return t.forEach((i=>{var s;(s=i.conditions)==null||(s=s[r])==null||(s=s.values)==null||s.forEach((o=>{if(o!=null&&o.name){var a=n.get(o.name)||[];a.push(i.id),n.set(o.name,a)}}))})),n}Vi(t,r,n){var i,s=(n===u_.Activation?this.Hi:this.Bi).get(t),o=[];return(i=this._instance)==null||i.getSurveys((a=>{o=a.filter((l=>s?.includes(l.id)))})),o.filter((a=>{var l,c=(l=a.conditions)==null||(l=l[n])==null||(l=l.values)==null?void 0:l.find((u=>u.name===t));return this.Wi(c,r)}))}register(t){var r;xt((r=this._instance)==null?void 0:r.Ai)||(this.Ji(t),this.Ki(t))}Ki(t){var r=t.filter((n=>{var i,s;return((i=n.conditions)==null?void 0:i.actions)&&((s=n.conditions)==null||(s=s.actions)==null||(s=s.values)==null?void 0:s.length)>0}));r.length!==0&&(this.Yi==null&&(this.Yi=new h6r(this._instance),this.Yi.init(),this.Yi.ji((n=>{this.onAction(n)}))),r.forEach((n=>{var i,s,o,a,l;n.conditions&&(i=n.conditions)!=null&&i.actions&&(s=n.conditions)!=null&&(s=s.actions)!=null&&s.values&&((o=n.conditions)==null||(o=o.actions)==null||(o=o.values)==null?void 0:o.length)>0&&((a=this.Yi)==null||a.register(n.conditions.actions.values),(l=n.conditions)==null||(l=l.actions)==null||(l=l.values)==null||l.forEach((c=>{if(c&&c.name){var u=this.qi.get(c.name);u&&u.push(n.id),this.qi.set(c.name,u||[n.id])}})))})))}Ji(t){var r,n=t.filter((s=>{var o,a;return((o=s.conditions)==null?void 0:o.events)&&((a=s.conditions)==null||(a=a.events)==null||(a=a.values)==null?void 0:a.length)>0})),i=t.filter((s=>{var o,a;return((o=s.conditions)==null?void 0:o.cancelEvents)&&((a=s.conditions)==null||(a=a.cancelEvents)==null||(a=a.values)==null?void 0:a.length)>0}));(n.length!==0||i.length!==0)&&((r=this._instance)==null||r.Ai(((s,o)=>{this.onEvent(s,o)})),this.Hi=this.Gi(t,u_.Activation),this.Bi=this.Gi(t,u_.Cancellation))}onEvent(t,r){var n,i=((n=this._instance)==null||(n=n.persistence)==null?void 0:n.props[HP])||[];if(tI.SHOWN===t&&r&&i.length>0){var s;Dn.info("survey event matched, removing survey from activated surveys",{event:t,eventPayload:r,existingActivatedSurveys:i});var o=r==null||(s=r.properties)==null?void 0:s.$survey_id;if(o){var a=i.indexOf(o);a>=0&&(i.splice(a,1),this.Xi(i))}}else{if(this.Bi.has(t)){var l=this.Vi(t,r,u_.Cancellation);l.length>0&&(Dn.info("cancel event matched, cancelling surveys",{event:t,surveysToCancel:l.map((u=>u.id))}),l.forEach((u=>{var d,f=i.indexOf(u.id);f>=0&&i.splice(f,1),(d=this._instance)==null||d.cancelPendingSurvey(u.id)})),this.Xi(i))}if(this.Hi.has(t)){Dn.info("survey event name matched",{event:t,eventPayload:r,surveys:this.Hi.get(t)});var c=this.Vi(t,r,u_.Activation);this.Xi(i.concat(c.map((u=>u.id))||[]))}}}onAction(t){var r,n=((r=this._instance)==null||(r=r.persistence)==null?void 0:r.props[HP])||[];this.qi.has(t)&&this.Xi(n.concat(this.qi.get(t)||[]))}Xi(t){var r;Dn.info("updating activated surveys",{activatedSurveys:t}),(r=this._instance)==null||(r=r.persistence)==null||r.register({[HP]:[...new Set(t)]})}getSurveys(){var t,r=(t=this._instance)==null||(t=t.persistence)==null?void 0:t.props[HP];return r||[]}getEventToSurveys(){return this.Hi}Qi(){return this.Yi}}class b6r{constructor(t){this.Zi=void 0,this._surveyManager=null,this.te=!1,this.ie=!1,this.ee=[],this._instance=t,this._surveyEventReceiver=null}onRemoteConfig(t){if(!this._instance.config.disable_surveys){var r=t.surveys;if(qn(r))return Dn.warn("Flags not loaded yet. Not loading surveys.");var n=ei(r);this.Zi=n?r.length>0:r,Dn.info("flags response received, isSurveysEnabled: "+this.Zi),this.loadIfEnabled()}}reset(){localStorage.removeItem("lastSeenSurveyDate");for(var t=[],r=0;r<localStorage.length;r++){var n=localStorage.key(r);(n!=null&&n.startsWith(wq)||n!=null&&n.startsWith("inProgressSurvey_"))&&t.push(n)}t.forEach((i=>localStorage.removeItem(i)))}loadIfEnabled(){if(!this._surveyManager)if(this.ie)Dn.info("Already initializing surveys, skipping...");else if(this._instance.config.disable_surveys)Dn.info("Disabled. Not loading surveys.");else if(this._instance.config.cookieless_mode&&this._instance.consent.isOptedOut())Dn.info("Not loading surveys in cookieless mode without consent.");else{var t=pr?.__PosthogExtensions__;if(t){if(!xt(this.Zi)||this._instance.config.advanced_enable_surveys){var r=this.Zi||this._instance.config.advanced_enable_surveys;this.ie=!0;try{var n=t.generateSurveys;if(n)return void this.re(n,r);var i=t.loadExternalDependency;if(!i)return void this.se("PostHog loadExternalDependency extension not found.");i(this._instance,"surveys",(s=>{s||!t.generateSurveys?this.se("Could not load surveys script",s):this.re(t.generateSurveys,r)}))}catch(s){throw this.se("Error initializing surveys",s),s}finally{this.ie=!1}}}else Dn.error("PostHog Extensions not found.")}}re(t,r){this._surveyManager=t(this._instance,r),this._surveyEventReceiver=new v6r(this._instance),Dn.info("Surveys loaded successfully"),this.ne({isLoaded:!0})}se(t,r){Dn.error(t,r),this.ne({isLoaded:!1,error:t})}onSurveysLoaded(t){return this.ee.push(t),this._surveyManager&&this.ne({isLoaded:!0}),()=>{this.ee=this.ee.filter((r=>r!==t))}}getSurveys(t,r){if(r===void 0&&(r=!1),this._instance.config.disable_surveys)return Dn.info("Disabled. Not loading surveys."),t([]);var n=this._instance.get_property(cq);if(n&&!r)return t(n,{isLoaded:!0});if(this.te)return t([],{isLoaded:!1,error:"Surveys are already being loaded"});try{this.te=!0,this._instance.ci({url:this._instance.requestRouter.endpointFor("api","/api/surveys/?token="+this._instance.config.token),method:"GET",timeout:this._instance.config.surveys_request_timeout_ms,callback:i=>{var s;this.te=!1;var o=i.statusCode;if(o!==200||!i.json){var a="Surveys API could not be loaded, status: "+o;return Dn.error(a),t([],{isLoaded:!1,error:a})}var l,c=i.json.surveys||[],u=c.filter((d=>(function(f){return!(!f.start_date||f.end_date)})(d)&&((function(f){var m;return!((m=f.conditions)==null||(m=m.events)==null||(m=m.values)==null||!m.length)})(d)||(function(f){var m;return!((m=f.conditions)==null||(m=m.actions)==null||(m=m.values)==null||!m.length)})(d))));return u.length>0&&((l=this._surveyEventReceiver)==null||l.register(u)),(s=this._instance.persistence)==null||s.register({[cq]:c}),t(c,{isLoaded:!0})}})}catch(i){throw this.te=!1,i}}ne(t){for(var r of this.ee)try{if(!t.isLoaded)return r([],t);this.getSurveys(r)}catch(n){Dn.error("Error in survey callback",n)}}getActiveMatchingSurveys(t,r){if(r===void 0&&(r=!1),!qn(this._surveyManager))return this._surveyManager.getActiveMatchingSurveys(t,r);Dn.warn("init was not called")}oe(t){var r=null;return this.getSurveys((n=>{var i;r=(i=n.find((s=>s.id===t)))!==null&&i!==void 0?i:null})),r}ae(t){if(qn(this._surveyManager))return{eligible:!1,reason:"SDK is not enabled or survey functionality is not yet loaded"};var r=typeof t=="string"?this.oe(t):t;return r?this._surveyManager.checkSurveyEligibility(r):{eligible:!1,reason:"Survey not found"}}canRenderSurvey(t){if(qn(this._surveyManager))return Dn.warn("init was not called"),{visible:!1,disabledReason:"SDK is not enabled or survey functionality is not yet loaded"};var r=this.ae(t);return{visible:r.eligible,disabledReason:r.reason}}canRenderSurveyAsync(t,r){return qn(this._surveyManager)?(Dn.warn("init was not called"),Promise.resolve({visible:!1,disabledReason:"SDK is not enabled or survey functionality is not yet loaded"})):new Promise((n=>{this.getSurveys((i=>{var s,o=(s=i.find((l=>l.id===t)))!==null&&s!==void 0?s:null;if(o){var a=this.ae(o);n({visible:a.eligible,disabledReason:a.reason})}else n({visible:!1,disabledReason:"Survey not found"})}),r)}))}renderSurvey(t,r){var n;if(qn(this._surveyManager))Dn.warn("init was not called");else{var i=typeof t=="string"?this.oe(t):t;if(i!=null&&i.id)if(g6r.includes(i.type)){var s=St?.querySelector(r);if(s)return(n=i.appearance)!=null&&n.surveyPopupDelaySeconds?(Dn.info("Rendering survey "+i.id+" with delay of "+i.appearance.surveyPopupDelaySeconds+" seconds"),void setTimeout((()=>{var o,a;Dn.info("Rendering survey "+i.id+" with delay of "+((o=i.appearance)==null?void 0:o.surveyPopupDelaySeconds)+" seconds"),(a=this._surveyManager)==null||a.renderSurvey(i,s),Dn.info("Survey "+i.id+" rendered")}),1e3*i.appearance.surveyPopupDelaySeconds)):void this._surveyManager.renderSurvey(i,s);Dn.warn("Survey element not found")}else Dn.warn("Surveys of type "+i.type+" cannot be rendered in the app");else Dn.warn("Survey not found")}}displaySurvey(t,r){var n;if(qn(this._surveyManager))Dn.warn("init was not called");else{var i=this.oe(t);if(i){var s=i;if((n=i.appearance)!=null&&n.surveyPopupDelaySeconds&&r.ignoreDelay&&(s=At({},i,{appearance:At({},i.appearance,{surveyPopupDelaySeconds:0})})),r.ignoreConditions===!1){var o=this.canRenderSurvey(i);if(!o.visible)return void Dn.warn("Survey is not eligible to be displayed: ",o.disabledReason)}r.displayType!==KHe.Inline?this._surveyManager.handlePopoverSurvey(s):this.renderSurvey(s,r.selector)}else Dn.warn("Survey not found")}}cancelPendingSurvey(t){qn(this._surveyManager)?Dn.warn("init was not called"):this._surveyManager.cancelSurvey(t)}}var A1e=Js("[RateLimiter]");class x6r{constructor(t){var r,n;this.serverLimits={},this.lastEventRateLimited=!1,this.checkForLimiting=i=>{var s=i.text;if(s&&s.length)try{(JSON.parse(s).quota_limited||[]).forEach((o=>{A1e.info((o||"events")+" is quota limited."),this.serverLimits[o]=new Date().getTime()+6e4}))}catch(o){return void A1e.warn('could not rate limit - continuing. Error: "'+o?.message+'"',{text:s})}},this.instance=t,this.captureEventsPerSecond=((r=t.config.rate_limiting)==null?void 0:r.events_per_second)||10,this.captureEventsBurstLimit=Math.max(((n=t.config.rate_limiting)==null?void 0:n.events_burst_limit)||10*this.captureEventsPerSecond,this.captureEventsPerSecond),this.lastEventRateLimited=this.clientRateLimitContext(!0).isRateLimited}clientRateLimitContext(t){var r,n,i;t===void 0&&(t=!1);var s=new Date().getTime(),o=(r=(n=this.instance.persistence)==null?void 0:n.get_property(dq))!==null&&r!==void 0?r:{tokens:this.captureEventsBurstLimit,last:s};o.tokens+=(s-o.last)/1e3*this.captureEventsPerSecond,o.last=s,o.tokens>this.captureEventsBurstLimit&&(o.tokens=this.captureEventsBurstLimit);var a=o.tokens<1;return a||t||(o.tokens=Math.max(0,o.tokens-1)),!a||this.lastEventRateLimited||t||this.instance.capture("$$client_ingestion_warning",{$$client_ingestion_warning_message:"posthog-js client rate limited. Config is set to "+this.captureEventsPerSecond+" events per second and "+this.captureEventsBurstLimit+" events burst limit."},{skip_client_rate_limiting:!0}),this.lastEventRateLimited=a,(i=this.instance.persistence)==null||i.set_property(dq,o),{isRateLimited:a,remainingTokens:o.tokens}}isServerRateLimited(t){var r=this.serverLimits[t||"events"]||!1;return r!==!1&&new Date().getTime()<r}}var Jy=Js("[RemoteConfig]");class w6r{constructor(t){this._instance=t}get remoteConfig(){var t;return(t=pr._POSTHOG_REMOTE_CONFIG)==null||(t=t[this._instance.config.token])==null?void 0:t.config}le(t){var r,n;(r=pr.__PosthogExtensions__)!=null&&r.loadExternalDependency?(n=pr.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this._instance,"remote-config",(()=>t(this.remoteConfig))):(Jy.error("PostHog Extensions not found. Cannot load remote config."),t())}ue(t){this._instance.ci({method:"GET",url:this._instance.requestRouter.endpointFor("assets","/array/"+this._instance.config.token+"/config"),callback:r=>{t(r.json)}})}load(){try{if(this.remoteConfig)return Jy.info("Using preloaded remote config",this.remoteConfig),void this.fi(this.remoteConfig);if(this._instance.O())return void Jy.warn("Remote config is disabled. Falling back to local config.");this.le((t=>{if(!t)return Jy.info("No config found after loading remote JS config. Falling back to JSON."),void this.ue((r=>{this.fi(r)}));this.fi(t)}))}catch(t){Jy.error("Error loading remote config",t)}}fi(t){t?this._instance.config.__preview_remote_config?(this._instance.fi(t),t.hasFeatureFlags!==!1&&this._instance.featureFlags.ensureFlagsLoaded()):Jy.info("__preview_remote_config is disabled. Logging config instead",t):Jy.error("Failed to fetch remote config from PostHog.")}}var Sq=3e3;class S6r{constructor(t,r){this.he=!0,this.ve=[],this.de=Ef(r?.flush_interval_ms||Sq,250,5e3,Ot.createLogger("flush interval"),Sq),this.ce=t}enqueue(t){this.ve.push(t),this.fe||this.pe()}unload(){this.ge();var t=this.ve.length>0?this._e():{},r=Object.values(t);[...r.filter((n=>n.url.indexOf("/e")===0)),...r.filter((n=>n.url.indexOf("/e")!==0))].map((n=>{this.ce(At({},n,{transport:"sendBeacon"}))}))}enable(){this.he=!1,this.pe()}pe(){var t=this;this.he||(this.fe=setTimeout((()=>{if(this.ge(),this.ve.length>0){var r=this._e(),n=function(){var s=r[i],o=new Date().getTime();s.data&&ei(s.data)&&fi(s.data,(a=>{a.offset=Math.abs(a.timestamp-o),delete a.timestamp})),t.ce(s)};for(var i in r)n()}}),this.de))}ge(){clearTimeout(this.fe),this.fe=void 0}_e(){var t={};return fi(this.ve,(r=>{var n,i=r,s=(i?i.batchKey:null)||i.url;xt(t[s])&&(t[s]=At({},i,{data:[]})),(n=t[s].data)==null||n.push(i.data)})),this.ve=[],t}}var O6r=["retriesPerformedSoFar"];class _6r{constructor(t){this.me=!1,this.ye=3e3,this.ve=[],this._instance=t,this.ve=[],this.be=!0,!xt($e)&&"onLine"in $e.navigator&&(this.be=$e.navigator.onLine,this.we=()=>{this.be=!0,this.Dt()},this.xe=()=>{this.be=!1},Ps($e,"online",this.we),Ps($e,"offline",this.xe))}get length(){return this.ve.length}retriableRequest(t){var{retriesPerformedSoFar:r}=t,n=Wqe(t,O6r);Xf(r)&&r>0&&(n.url=W4(n.url,{retry_count:r})),this._instance.ci(At({},n,{callback:i=>{i.statusCode!==200&&(i.statusCode<400||i.statusCode>=500)&&(r??0)<10?this.Se(At({retriesPerformedSoFar:r},n)):n.callback==null||n.callback(i)}}))}Se(t){var r=t.retriesPerformedSoFar||0;t.retriesPerformedSoFar=r+1;var n=(function(o){var a=3e3*Math.pow(2,o),l=a/2,c=Math.min(18e5,a),u=(Math.random()-.5)*(c-l);return Math.ceil(c+u)})(r),i=Date.now()+n;this.ve.push({retryAt:i,requestOptions:t});var s="Enqueued failed request for retry in "+n;navigator.onLine||(s+=" (Browser is offline)"),Ot.warn(s),this.me||(this.me=!0,this.Ee())}Ee(){if(this.$e&&clearTimeout(this.$e),this.ve.length===0)return this.me=!1,void(this.$e=void 0);this.$e=setTimeout((()=>{this.be&&this.ve.length>0&&this.Dt(),this.Ee()}),this.ye)}Dt(){var t=Date.now(),r=[],n=this.ve.filter((s=>s.retryAt<t||(r.push(s),!1)));if(this.ve=r,n.length>0)for(var{requestOptions:i}of n)this.retriableRequest(i)}unload(){for(var{requestOptions:t}of(this.$e&&(clearTimeout(this.$e),this.$e=void 0),this.me=!1,xt($e)||(this.we&&($e.removeEventListener("online",this.we),this.we=void 0),this.xe&&($e.removeEventListener("offline",this.xe),this.xe=void 0)),this.ve))try{this._instance.ci(At({},t,{transport:"sendBeacon"}))}catch(r){Ot.error(r)}this.ve=[]}}class k6r{constructor(t){this.ke=()=>{var r,n,i,s;this.Pe||(this.Pe={});var o=this.scrollElement(),a=this.scrollY(),l=o?Math.max(0,o.scrollHeight-o.clientHeight):0,c=a+(o?.clientHeight||0),u=o?.scrollHeight||0;this.Pe.lastScrollY=Math.ceil(a),this.Pe.maxScrollY=Math.max(a,(r=this.Pe.maxScrollY)!==null&&r!==void 0?r:0),this.Pe.maxScrollHeight=Math.max(l,(n=this.Pe.maxScrollHeight)!==null&&n!==void 0?n:0),this.Pe.lastContentY=c,this.Pe.maxContentY=Math.max(c,(i=this.Pe.maxContentY)!==null&&i!==void 0?i:0),this.Pe.maxContentHeight=Math.max(u,(s=this.Pe.maxContentHeight)!==null&&s!==void 0?s:0)},this._instance=t}getContext(){return this.Pe}resetContext(){var t=this.Pe;return setTimeout(this.ke,0),t}startMeasuringScrollPosition(){Ps($e,"scroll",this.ke,{capture:!0}),Ps($e,"scrollend",this.ke,{capture:!0}),Ps($e,"resize",this.ke)}scrollElement(){if(!this._instance.config.scroll_root_selector)return $e?.document.documentElement;var t=ei(this._instance.config.scroll_root_selector)?this._instance.config.scroll_root_selector:[this._instance.config.scroll_root_selector];for(var r of t){var n=$e?.document.querySelector(r);if(n)return n}}scrollY(){if(this._instance.config.scroll_root_selector){var t=this.scrollElement();return t&&t.scrollTop||0}return $e&&($e.scrollY||$e.pageYOffset||$e.document.documentElement.scrollTop)||0}scrollX(){if(this._instance.config.scroll_root_selector){var t=this.scrollElement();return t&&t.scrollLeft||0}return $e&&($e.scrollX||$e.pageXOffset||$e.document.documentElement.scrollLeft)||0}}var E6r=e=>UHe(e?.config.mask_personal_data_properties,e?.config.custom_personal_data_properties);class P1e{constructor(t,r,n,i){this.Te=s=>{var o=this.Re();if(!o||o.sessionId!==s){var a={sessionId:s,props:this.Ie(this._instance)};this.Fe.register({[uq]:a})}},this._instance=t,this.Ce=r,this.Fe=n,this.Ie=i||E6r,this.Ce.onSessionId(this.Te)}Re(){return this.Fe.props[uq]}getSetOnceProps(){var t,r=(t=this.Re())==null?void 0:t.props;return r?"r"in r?QHe(r):{$referring_domain:r.referringDomain,$pathname:r.initialPathName,utm_source:r.utm_source,utm_campaign:r.utm_campaign,utm_medium:r.utm_medium,utm_content:r.utm_content,utm_term:r.utm_term}:{}}getSessionProps(){var t={};return fi(Cte(this.getSetOnceProps()),((r,n)=>{n==="$current_url"&&(n="url"),t["$session_entry_"+rq(n)]=r})),t}}var lB=Js("[SessionId]");class $1e{on(t,r){return this.Me.on(t,r)}constructor(t,r,n){var i;if(this.Oe=[],this.Ae=void 0,this.Me=new jte,this.De=(u,d)=>Math.abs(u-d)>this.sessionTimeoutMs,!t.persistence)throw new Error("SessionIdManager requires a PostHogPersistence instance");if(t.config.cookieless_mode==="always")throw new Error('SessionIdManager cannot be used with cookieless_mode="always"');this.F=t.config,this.Fe=t.persistence,this.je=void 0,this.Le=void 0,this._sessionStartTimestamp=null,this._sessionActivityTimestamp=null,this.Ne=r||pg,this.Ue=n||pg;var s=this.F.persistence_name||this.F.token,o=this.F.session_idle_timeout_seconds||1800;if(this._sessionTimeoutMs=1e3*Ef(o,60,36e3,lB.createLogger("session_idle_timeout_seconds"),1800),t.register({$configured_session_timeout_ms:this._sessionTimeoutMs}),this.ze(),this.He="ph_"+s+"_window_id",this.Be="ph_"+s+"_primary_window_exists",this.qe()){var a=_o.W(this.He),l=_o.W(this.Be);a&&!l?this.je=a:_o.V(this.He),_o.G(this.Be,!0)}if((i=this.F.bootstrap)!=null&&i.sessionID)try{var c=(u=>{var d=u.replace(/-/g,"");if(d.length!==32)throw new Error("Not a valid UUID");if(d[12]!=="7")throw new Error("Not a UUIDv7");return parseInt(d.substring(0,12),16)})(this.F.bootstrap.sessionID);this.We(this.F.bootstrap.sessionID,new Date().getTime(),c)}catch(u){lB.error("Invalid sessionID in bootstrap",u)}this.Ge()}get sessionTimeoutMs(){return this._sessionTimeoutMs}onSessionId(t){return xt(this.Oe)&&(this.Oe=[]),this.Oe.push(t),this.Le&&t(this.Le,this.je),()=>{this.Oe=this.Oe.filter((r=>r!==t))}}qe(){return this.F.persistence!=="memory"&&!this.Fe.wi&&_o.H()}Ve(t){t!==this.je&&(this.je=t,this.qe()&&_o.G(this.He,t))}Je(){return this.je?this.je:this.qe()?_o.W(this.He):null}We(t,r,n){t===this.Le&&r===this._sessionActivityTimestamp&&n===this._sessionStartTimestamp||(this._sessionStartTimestamp=n,this._sessionActivityTimestamp=r,this.Le=t,this.Fe.register({[j4]:[r,t,n]}))}Ke(){var t=this.Fe.props[j4];return ei(t)&&t.length===2&&t.push(t[0]),t||[0,null,0]}resetSessionId(){this.We(null,null,null)}destroy(){clearTimeout(this.Ye),this.Ye=void 0,this.Ae&&$e&&($e.removeEventListener("beforeunload",this.Ae,{capture:!1}),this.Ae=void 0),this.Oe=[]}Ge(){this.Ae=()=>{this.qe()&&_o.V(this.Be)},Ps($e,"beforeunload",this.Ae,{capture:!1})}checkAndGetSessionAndWindowId(t,r){if(t===void 0&&(t=!1),r===void 0&&(r=null),this.F.cookieless_mode==="always")throw new Error('checkAndGetSessionAndWindowId should not be called with cookieless_mode="always"');var n=r||new Date().getTime(),[i,s,o]=this.Ke(),a=this.Je(),l=Xf(o)&&o>0&&Math.abs(n-o)>864e5,c=!1,u=!s,d=!u&&!t&&this.De(n,i);u||d||l?(s=this.Ne(),a=this.Ue(),lB.info("new session ID generated",{sessionId:s,windowId:a,changeReason:{noSessionId:u,activityTimeout:d,sessionPastMaximumLength:l}}),o=n,c=!0):a||(a=this.Ue(),c=!0);var f=i===0||!t||l?n:i,m=o===0?new Date().getTime():o;return this.Ve(a),this.We(s,f,m),t||this.ze(),c&&this.Oe.forEach((g=>g(s,a,c?{noSessionId:u,activityTimeout:d,sessionPastMaximumLength:l}:void 0))),{sessionId:s,windowId:a,sessionStartTimestamp:m,changeReason:c?{noSessionId:u,activityTimeout:d,sessionPastMaximumLength:l}:void 0,lastActivityTimestamp:i}}ze(){clearTimeout(this.Ye),this.Ye=setTimeout((()=>{var[t]=this.Ke();if(this.De(new Date().getTime(),t)){var r=this.Le;this.resetSessionId(),this.Me.emit("forcedIdleReset",{idleSessionId:r})}}),1.1*this.sessionTimeoutMs)}}var C6r=["$set_once","$set"],qm=Js("[SiteApps]");class T6r{constructor(t){this._instance=t,this.Xe=[],this.apps={}}get isEnabled(){return!!this._instance.config.opt_in_site_apps}Qe(t,r){if(r){var n=this.globalsForEvent(r);this.Xe.push(n),this.Xe.length>1e3&&(this.Xe=this.Xe.slice(10))}}get siteAppLoaders(){var t;return(t=pr._POSTHOG_REMOTE_CONFIG)==null||(t=t[this._instance.config.token])==null?void 0:t.siteApps}init(){if(this.isEnabled){var t=this._instance.Ai(this.Qe.bind(this));this.Ze=()=>{t(),this.Xe=[],this.Ze=void 0}}}globalsForEvent(t){var r,n,i,s,o,a,l;if(!t)throw new Error("Event payload is required");var c={},u=this._instance.get_property("$groups")||[],d=this._instance.get_property("$stored_group_properties")||{};for(var[f,m]of Object.entries(d))c[f]={id:u[f],type:f,properties:m};var{$set_once:g,$set:v}=t;return{event:At({},Wqe(t,C6r),{properties:At({},t.properties,v?{$set:At({},(r=(n=t.properties)==null?void 0:n.$set)!==null&&r!==void 0?r:{},v)}:{},g?{$set_once:At({},(i=(s=t.properties)==null?void 0:s.$set_once)!==null&&i!==void 0?i:{},g)}:{}),elements_chain:(o=(a=t.properties)==null?void 0:a.$elements_chain)!==null&&o!==void 0?o:"",distinct_id:(l=t.properties)==null?void 0:l.distinct_id}),person:{properties:this._instance.get_property("$stored_person_properties")},groups:c}}setupSiteApp(t){var r=this.apps[t.id],n=()=>{var a;!r.errored&&this.Xe.length&&(qm.info("Processing "+this.Xe.length+" events for site app with id "+t.id),this.Xe.forEach((l=>r.processEvent==null?void 0:r.processEvent(l))),r.processedBuffer=!0),Object.values(this.apps).every((l=>l.processedBuffer||l.errored))&&((a=this.Ze)==null||a.call(this))},i=!1,s=a=>{r.errored=!a,r.loaded=!0,qm.info("Site app with id "+t.id+" "+(a?"loaded":"errored")),i&&n()};try{var{processEvent:o}=t.init({posthog:this._instance,callback:a=>{s(a)}});o&&(r.processEvent=o),i=!0}catch(a){qm.error("Error while initializing PostHog app with config id "+t.id,a),s(!1)}if(i&&r.loaded)try{n()}catch(a){qm.error("Error while processing buffered events PostHog app with config id "+t.id,a),r.errored=!0}}tr(){var t=this.siteAppLoaders||[];for(var r of t)this.apps[r.id]={id:r.id,loaded:!1,errored:!1,processedBuffer:!1};for(var n of t)this.setupSiteApp(n)}ir(t){if(Object.keys(this.apps).length!==0){var r=this.globalsForEvent(t);for(var n of Object.values(this.apps))try{n.processEvent==null||n.processEvent(r)}catch(i){qm.error("Error while processing event "+t.event+" for site app "+n.id,i)}}}onRemoteConfig(t){var r,n,i,s=this;if((r=this.siteAppLoaders)!=null&&r.length)return this.isEnabled?(this.tr(),void this._instance.on("eventCaptured",(c=>this.ir(c)))):void qm.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.');if((n=this.Ze)==null||n.call(this),(i=t.siteApps)!=null&&i.length)if(this.isEnabled){var o=function(c){var u;pr["__$$ph_site_app_"+c]=s._instance,(u=pr.__PosthogExtensions__)==null||u.loadSiteApp==null||u.loadSiteApp(s._instance,l,(d=>{if(d)return qm.error("Error while initializing PostHog app with config id "+c,d)}))};for(var{id:a,url:l}of t.siteApps)o(a)}else qm.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}}var eWe=function(e,t){if(!e)return!1;var r=e.userAgent;if(r&&Qxe(r,t))return!0;try{var n=e?.userAgentData;if(n!=null&&n.brands&&n.brands.some((i=>Qxe(i?.brand,t))))return!0}catch{}return!!e.webdriver},j_=(function(e){return e.US="us",e.EU="eu",e.CUSTOM="custom",e})({}),I1e="i.posthog.com";class D6r{constructor(t){this.er={},this.instance=t}get apiHost(){var t=this.instance.config.api_host.trim().replace(/\/$/,"");return t==="https://app.posthog.com"?"https://us.i.posthog.com":t}get flagsApiHost(){var t=this.instance.config.flags_api_host;return t?t.trim().replace(/\/$/,""):this.apiHost}get uiHost(){var t,r=(t=this.instance.config.ui_host)==null?void 0:t.replace(/\/$/,"");return r||(r=this.apiHost.replace("."+I1e,".posthog.com")),r==="https://app.posthog.com"?"https://us.posthog.com":r}get region(){return this.er[this.apiHost]||(/https:\/\/(app|us|us-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?this.er[this.apiHost]=j_.US:/https:\/\/(eu|eu-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?this.er[this.apiHost]=j_.EU:this.er[this.apiHost]=j_.CUSTOM),this.er[this.apiHost]}endpointFor(t,r){if(r===void 0&&(r=""),r&&(r=r[0]==="/"?r:"/"+r),t==="ui")return this.uiHost+r;if(t==="flags")return this.flagsApiHost+r;if(this.region===j_.CUSTOM)return this.apiHost+r;var n=I1e+r;switch(t){case"assets":return"https://"+this.region+"-assets."+n;case"api":return"https://"+this.region+"."+n}}}var A6r={icontains:(e,t)=>!!$e&&t.href.toLowerCase().indexOf(e.toLowerCase())>-1,not_icontains:(e,t)=>!!$e&&t.href.toLowerCase().indexOf(e.toLowerCase())===-1,regex:(e,t)=>!!$e&&G4(t.href,e),not_regex:(e,t)=>!!$e&&!G4(t.href,e),exact:(e,t)=>t.href===e,is_not:(e,t)=>t.href!==e};class zo{constructor(t){var r=this;this.getWebExperimentsAndEvaluateDisplayLogic=function(n){n===void 0&&(n=!1),r.getWebExperiments((i=>{zo.rr("retrieved web experiments from the server"),r.sr=new Map,i.forEach((s=>{if(s.feature_flag_key){var o;r.sr&&(zo.rr("setting flag key ",s.feature_flag_key," to web experiment ",s),(o=r.sr)==null||o.set(s.feature_flag_key,s));var a=r._instance.getFeatureFlag(s.feature_flag_key);Xs(a)&&s.variants[a]&&r.nr(s.name,a,s.variants[a].transforms)}else if(s.variants)for(var l in s.variants){var c=s.variants[l];zo.ar(c)&&r.nr(s.name,l,c.transforms)}}))}),n)},this._instance=t,this._instance.onFeatureFlags((n=>{this.onFeatureFlags(n)}))}onFeatureFlags(t){if(this._is_bot())zo.rr("Refusing to render web experiment since the viewer is a likely bot");else if(!this._instance.config.disable_web_experiments){if(qn(this.sr))return this.sr=new Map,this.loadIfEnabled(),void this.previewWebExperiment();zo.rr("applying feature flags",t),t.forEach((r=>{var n;if(this.sr&&(n=this.sr)!=null&&n.has(r)){var i,s=this._instance.getFeatureFlag(r),o=(i=this.sr)==null?void 0:i.get(r);s&&o!=null&&o.variants[s]&&this.nr(o.name,s,o.variants[s].transforms)}}))}}previewWebExperiment(){var t=zo.getWindowLocation();if(t!=null&&t.search){var r=U4(t?.search,"__experiment_id"),n=U4(t?.search,"__experiment_variant");r&&n&&(zo.rr("previewing web experiments "+r+" && "+n),this.getWebExperiments((i=>{this.lr(parseInt(r),n,i)}),!1,!0))}}loadIfEnabled(){this._instance.config.disable_web_experiments||this.getWebExperimentsAndEvaluateDisplayLogic()}getWebExperiments(t,r,n){if(this._instance.config.disable_web_experiments&&!n)return t([]);var i=this._instance.get_property("$web_experiments");if(i&&!r)return t(i);this._instance.ci({url:this._instance.requestRouter.endpointFor("api","/api/web_experiments/?token="+this._instance.config.token),method:"GET",callback:s=>{if(s.statusCode!==200||!s.json)return t([]);var o=s.json.experiments||[];return t(o)}})}lr(t,r,n){var i=n.filter((s=>s.id===t));i&&i.length>0&&(zo.rr("Previewing web experiment ["+i[0].name+"] with variant ["+r+"]"),this.nr(i[0].name,r,i[0].variants[r].transforms))}static ar(t){return!qn(t.conditions)&&zo.ur(t)&&zo.hr(t)}static ur(t){var r;if(qn(t.conditions)||qn((r=t.conditions)==null?void 0:r.url))return!0;var n,i,s,o=zo.getWindowLocation();return!!o&&((n=t.conditions)==null||!n.url||A6r[(i=(s=t.conditions)==null?void 0:s.urlMatchType)!==null&&i!==void 0?i:"icontains"](t.conditions.url,o))}static getWindowLocation(){return $e?.location}static hr(t){var r;if(qn(t.conditions)||qn((r=t.conditions)==null?void 0:r.utm))return!0;var n=LHe();if(n.utm_source){var i,s,o,a,l,c,u,d,f=(i=t.conditions)==null||(i=i.utm)==null||!i.utm_campaign||((s=t.conditions)==null||(s=s.utm)==null?void 0:s.utm_campaign)==n.utm_campaign,m=(o=t.conditions)==null||(o=o.utm)==null||!o.utm_source||((a=t.conditions)==null||(a=a.utm)==null?void 0:a.utm_source)==n.utm_source,g=(l=t.conditions)==null||(l=l.utm)==null||!l.utm_medium||((c=t.conditions)==null||(c=c.utm)==null?void 0:c.utm_medium)==n.utm_medium,v=(u=t.conditions)==null||(u=u.utm)==null||!u.utm_term||((d=t.conditions)==null||(d=d.utm)==null?void 0:d.utm_term)==n.utm_term;return f&&g&&v&&m}return!1}static rr(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];Ot.info("[WebExperiments] "+t,n)}nr(t,r,n){this._is_bot()?zo.rr("Refusing to render web experiment since the viewer is a likely bot"):r!=="control"?n.forEach((i=>{if(i.selector){var s;zo.rr("applying transform of variant "+r+" for experiment "+t+" ",i);var o=(s=document)==null?void 0:s.querySelectorAll(i.selector);o?.forEach((a=>{var l=a;i.html&&(l.innerHTML=i.html),i.css&&l.setAttribute("style",i.css)}))}})):zo.rr("Control variants leave the page unmodified.")}_is_bot(){return Jl&&this._instance?eWe(Jl,this._instance.config.custom_blocked_useragents):void 0}}var P6r=Js("[PostHog ExternalIntegrations]"),$6r={intercom:"intercom-integration",crispChat:"crisp-chat-integration"};class I6r{constructor(t){this._instance=t}it(t,r){var n;(n=pr.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this._instance,t,(i=>{if(i)return P6r.error("failed to load script",i);r()}))}startIfEnabledOrStop(){var t=this,r=function(o){var a,l,c;!i||(a=pr.__PosthogExtensions__)!=null&&(a=a.integrations)!=null&&a[o]||t.it($6r[o],(()=>{var u;(u=pr.__PosthogExtensions__)==null||(u=u.integrations)==null||(u=u[o])==null||u.start(t._instance)})),!i&&(l=pr.__PosthogExtensions__)!=null&&(l=l.integrations)!=null&&l[o]&&((c=pr.__PosthogExtensions__)==null||(c=c.integrations)==null||(c=c[o])==null||c.stop())};for(var[n,i]of Object.entries((s=this._instance.config.integrations)!==null&&s!==void 0?s:{})){var s;r(n)}}}var Oq="[SessionRecording]",d_=Js(Oq);class N1e{get started(){var t;return!((t=this.vr)==null||!t.isStarted)}get status(){return this.vr?this.vr.status:this.dr&&!this.cr?"disabled":"lazy_loading"}constructor(t){if(this._forceAllowLocalhostNetworkCapture=!1,this.dr=!1,this.pr=void 0,this._instance=t,!this._instance.sessionManager)throw d_.error("started without valid sessionManager"),new Error(Oq+" started without valid sessionManager. This is a bug.");if(this._instance.config.cookieless_mode==="always")throw new Error(Oq+' cannot be used with cookieless_mode="always"')}get cr(){var t,r=!((t=this._instance.get_property(Gz))==null||!t.enabled),n=!this._instance.config.disable_session_recording,i=this._instance.config.disable_session_recording||this._instance.consent.isOptedOut();return $e&&r&&n&&!i}startIfEnabledOrStop(t){var r;if(!this.cr||(r=this.vr)==null||!r.isStarted){var n=!xt(Object.assign)&&!xt(Array.from);this.cr&&n?(this.gr(t),d_.info("starting")):this.stopRecording()}}gr(t){var r,n,i;this.cr&&(pr!=null&&(r=pr.__PosthogExtensions__)!=null&&(r=r.rrweb)!=null&&r.record&&(n=pr.__PosthogExtensions__)!=null&&n.initSessionRecording?this._r(t):(i=pr.__PosthogExtensions__)==null||i.loadExternalDependency==null||i.loadExternalDependency(this._instance,this.mr,(s=>{if(s)return d_.error("could not load recorder",s);this._r(t)})))}stopRecording(){var t,r;(t=this.pr)==null||t.call(this),this.pr=void 0,(r=this.vr)==null||r.stop()}yr(){var t;(t=this._instance.persistence)==null||t.unregister(iHe)}br(t){if(this._instance.persistence){var r,n,i=this._instance.persistence,s=()=>{var o=t.sessionRecording===!1?void 0:t.sessionRecording,a=o?.sampleRate,l=qn(a)?null:parseFloat(a);qn(l)&&this.yr();var c=o?.minimumDurationMilliseconds;i.register({[Gz]:At({enabled:!!o},o,{networkPayloadCapture:At({capturePerformance:t.capturePerformance},o?.networkPayloadCapture),canvasRecording:{enabled:o?.recordCanvas,fps:o?.canvasFps,quality:o?.canvasQuality},sampleRate:l,minimumDurationMilliseconds:xt(c)?null:c,endpoint:o?.endpoint,triggerMatchType:o?.triggerMatchType,masking:o?.masking,urlTriggers:o?.urlTriggers})})};s(),(r=this.pr)==null||r.call(this),this.pr=(n=this._instance.sessionManager)==null?void 0:n.onSessionId(s)}}onRemoteConfig(t){"sessionRecording"in t?t.sessionRecording!==!1?(this.br(t),this.dr=!0,this.startIfEnabledOrStop()):this.dr=!0:d_.info("skipping remote config with no sessionRecording",t)}log(t,r){var n;r===void 0&&(r="log"),(n=this.vr)!=null&&n.log?this.vr.log(t,r):d_.warn("log called before recorder was ready")}get mr(){var t,r,n=(t=this._instance)==null||(t=t.persistence)==null?void 0:t.get_property(Gz);return(n==null||(r=n.scriptConfig)==null?void 0:r.script)||"lazy-recorder"}_r(t){var r,n;if((r=pr.__PosthogExtensions__)==null||!r.initSessionRecording)throw Error("Called on script loaded before session recording is available");this.vr||(this.vr=(n=pr.__PosthogExtensions__)==null?void 0:n.initSessionRecording(this._instance),this.vr._forceAllowLocalhostNetworkCapture=this._forceAllowLocalhostNetworkCapture),this.vr.start(t)}onRRwebEmit(t){var r;(r=this.vr)==null||r.onRRwebEmit==null||r.onRRwebEmit(t)}overrideLinkedFlag(){var t,r;this.vr||(r=this._instance.persistence)==null||r.register({$replay_override_linked_flag:!0}),(t=this.vr)==null||t.overrideLinkedFlag()}overrideSampling(){var t,r;this.vr||(r=this._instance.persistence)==null||r.register({$replay_override_sampling:!0}),(t=this.vr)==null||t.overrideSampling()}overrideTrigger(t){var r,n;this.vr||(n=this._instance.persistence)==null||n.register({[t==="url"?"$replay_override_url_trigger":"$replay_override_event_trigger"]:!0}),(r=this.vr)==null||r.overrideTrigger(t)}get sdkDebugProperties(){var t;return((t=this.vr)==null?void 0:t.sdkDebugProperties)||{$recording_status:this.status}}tryAddCustomEvent(t,r){var n;return!((n=this.vr)==null||!n.tryAddCustomEvent(t,r))}}var _k={},_q=()=>{},gx="posthog",tWe=!l6r&&Wa?.indexOf("MSIE")===-1&&Wa?.indexOf("Mozilla")===-1,R1e=e=>{var t;return At({api_host:"https://us.i.posthog.com",flags_api_host:null,ui_host:null,token:"",autocapture:!0,cross_subdomain_cookie:r5r(St?.location),persistence:"localStorage+cookie",persistence_name:"",loaded:_q,save_campaign_params:!0,custom_campaign_params:[],custom_blocked_useragents:[],save_referrer:!0,capture_pageleave:"if_capture_pageview",defaults:e??"unset",__preview_deferred_init_extensions:!1,debug:Ja&&Xs(Ja?.search)&&Ja.search.indexOf("__posthog_debug=true")!==-1||!1,cookie_expiration:365,upgrade:!1,disable_session_recording:!1,disable_persistence:!1,disable_web_experiments:!0,disable_surveys:!1,disable_surveys_automatic_display:!1,disable_external_dependency_loading:!1,enable_recording_console_log:void 0,secure_cookie:($e==null||(t=$e.location)==null?void 0:t.protocol)==="https:",ip:!1,opt_out_capturing_by_default:!1,opt_out_persistence_by_default:!1,opt_out_useragent_filter:!1,opt_out_capturing_persistence_type:"localStorage",consent_persistence_name:null,opt_out_capturing_cookie_prefix:null,opt_in_site_apps:!1,property_denylist:[],respect_dnt:!1,sanitize_properties:null,request_headers:{},request_batching:!0,properties_string_max_length:65535,mask_all_element_attributes:!1,mask_all_text:!1,mask_personal_data_properties:!1,custom_personal_data_properties:[],advanced_disable_flags:!1,advanced_disable_decide:!1,advanced_disable_feature_flags:!1,advanced_disable_feature_flags_on_first_load:!1,advanced_only_evaluate_survey_feature_flags:!1,advanced_enable_surveys:!1,advanced_disable_toolbar_metrics:!1,feature_flag_request_timeout_ms:3e3,surveys_request_timeout_ms:1e4,on_request_error:r=>{var n="Bad HTTP status: "+r.statusCode+" "+r.text;Ot.error(n)},get_device_id:r=>r,capture_performance:void 0,name:"posthog",bootstrap:{},disable_compression:!1,session_idle_timeout_seconds:1800,person_profiles:"identified_only",before_send:void 0,request_queue_config:{flush_interval_ms:Sq},error_tracking:{},_onCapture:_q,__preview_eager_load_replay:!1},(r=>({rageclick:!(r&&r>="2025-11-30")||{content_ignorelist:!0},capture_pageview:!(r&&r>="2025-05-24")||"history_change",session_recording:r&&r>="2025-11-30"?{strictMinimumDuration:!0}:{}}))(e))},M1e=e=>{var t={};xt(e.process_person)||(t.person_profiles=e.process_person),xt(e.xhr_headers)||(t.request_headers=e.xhr_headers),xt(e.cookie_name)||(t.persistence_name=e.cookie_name),xt(e.disable_cookie)||(t.disable_persistence=e.disable_cookie),xt(e.store_google)||(t.save_campaign_params=e.store_google),xt(e.verbose)||(t.debug=e.verbose);var r=ys({},t,e);return ei(e.property_blacklist)&&(xt(e.property_denylist)?r.property_denylist=e.property_blacklist:ei(e.property_denylist)?r.property_denylist=[...e.property_blacklist,...e.property_denylist]:Ot.error("Invalid value for property_denylist config: "+e.property_denylist)),r};class N6r{constructor(){this.__forceAllowLocalhost=!1}get wr(){return this.__forceAllowLocalhost}set wr(t){Ot.error("WebPerformanceObserver is deprecated and has no impact on network capture. Use `_forceAllowLocalhostNetworkCapture` on `posthog.sessionRecording`"),this.__forceAllowLocalhost=t}}class nR{get decideEndpointWasHit(){var t,r;return(t=(r=this.featureFlags)==null?void 0:r.hasLoadedFlags)!==null&&t!==void 0&&t}get flagsEndpointWasHit(){var t,r;return(t=(r=this.featureFlags)==null?void 0:r.hasLoadedFlags)!==null&&t!==void 0&&t}constructor(){this.webPerformance=new N6r,this.Sr=!1,this.version=oh.LIB_VERSION,this.Er=new jte,this._calculate_event_properties=this.calculateEventProperties.bind(this),this.config=R1e(),this.SentryIntegration=P5r,this.sentryIntegration=t=>(function(r,n){var i=SHe(r,n);return{name:wHe,processEvent:s=>i(s)}})(this,t),this.__request_queue=[],this.__loaded=!1,this.analyticsDefaultEndpoint="/e/",this.$r=!1,this.kr=null,this.Pr=null,this.Tr=null,this.featureFlags=new f6r(this),this.toolbar=new I5r(this),this.scrollManager=new k6r(this),this.pageViewManager=new K5r(this),this.surveys=new b6r(this),this.experiments=new zo(this),this.exceptions=new c6r(this),this.rateLimiter=new x6r(this),this.requestRouter=new D6r(this),this.consent=new k5r(this),this.externalIntegrations=new I6r(this),this.people={set:(t,r,n)=>{var i=Xs(t)?{[t]:r}:t;this.setPersonProperties(i),n?.({})},set_once:(t,r,n)=>{var i=Xs(t)?{[t]:r}:t;this.setPersonProperties(void 0,i),n?.({})}},this.on("eventCaptured",(t=>Ot.info('send "'+t?.event+'"',t)))}init(t,r,n){if(n&&n!==gx){var i,s=(i=_k[n])!==null&&i!==void 0?i:new nR;return s._init(t,r,n),_k[n]=s,_k[gx][n]=s,s}return this._init(t,r,n)}_init(t,r,n){var i;if(r===void 0&&(r={}),xt(t)||nq(t))return Ot.critical("PostHog was initialized without a token. This likely indicates a misconfiguration. Please check the first argument passed to posthog.init()"),this;if(this.__loaded)return console.warn("[PostHog.js]","You have already initialized PostHog! Re-initializing is a no-op"),this;this.__loaded=!0,this.config={},r.debug=this.Rr(r.debug),this.Ir=r,this.Fr=[],r.person_profiles&&(this.Pr=r.person_profiles),this.set_config(ys({},R1e(r.defaults),M1e(r),{name:n,token:t})),this.config.on_xhr_error&&Ot.error("on_xhr_error is deprecated. Use on_request_error instead"),this.compression=r.disable_compression?void 0:hh.GZipJS;var s=this.Cr();this.persistence=new oB(this.config,s),this.sessionPersistence=this.config.persistence==="sessionStorage"||this.config.persistence==="memory"?this.persistence:new oB(At({},this.config,{persistence:"sessionStorage"}),s);var o=At({},this.persistence.props),a=At({},this.sessionPersistence.props);this.register({$initialization_time:new Date().toISOString()}),this.Mr=new S6r((S=>this.Or(S)),this.config.request_queue_config),this.Ar=new _6r(this),this.__request_queue=[];var l=this.config.cookieless_mode==="always"||this.config.cookieless_mode==="on_reject"&&this.consent.isExplicitlyOptedOut();if(l||(this.sessionManager=new $1e(this),this.sessionPropsManager=new P1e(this,this.sessionManager,this.persistence)),this.config.__preview_deferred_init_extensions?(Ot.info("Deferring extension initialization to improve startup performance"),setTimeout((()=>{this.Dr(l)}),0)):(Ot.info("Initializing extensions synchronously"),this.Dr(l)),oh.DEBUG=oh.DEBUG||this.config.debug,oh.DEBUG&&Ot.info("Starting in debug mode",{this:this,config:r,thisC:At({},this.config),p:o,s:a}),((i=r.bootstrap)==null?void 0:i.distinctID)!==void 0){var c,u,d=this.config.get_device_id(pg()),f=(c=r.bootstrap)!=null&&c.isIdentifiedID?d:r.bootstrap.distinctID;this.persistence.set_property(ah,(u=r.bootstrap)!=null&&u.isIdentifiedID?"identified":"anonymous"),this.register({distinct_id:r.bootstrap.distinctID,$device_id:f})}if(this.jr()){var m,g,v=Object.keys(((m=r.bootstrap)==null?void 0:m.featureFlags)||{}).filter((S=>{var O;return!((O=r.bootstrap)==null||(O=O.featureFlags)==null||!O[S])})).reduce(((S,O)=>{var k;return S[O]=((k=r.bootstrap)==null||(k=k.featureFlags)==null?void 0:k[O])||!1,S}),{}),b=Object.keys(((g=r.bootstrap)==null?void 0:g.featureFlagPayloads)||{}).filter((S=>v[S])).reduce(((S,O)=>{var k,C;return(k=r.bootstrap)!=null&&(k=k.featureFlagPayloads)!=null&&k[O]&&(S[O]=(C=r.bootstrap)==null||(C=C.featureFlagPayloads)==null?void 0:C[O]),S}),{});this.featureFlags.receivedFeatureFlags({featureFlags:v,featureFlagPayloads:b})}if(l)this.register_once({distinct_id:n_,$device_id:null},"");else if(!this.get_distinct_id()){var w=this.config.get_device_id(pg());this.register_once({distinct_id:w,$device_id:w},""),this.persistence.set_property(ah,"anonymous")}return Ps($e,"onpagehide"in self?"pagehide":"unload",this._handle_unload.bind(this),{passive:!1}),this.toolbar.maybeLoadToolbar(),r.segment?A5r(this,(()=>this.Lr())):this.Lr(),Eg(this.config._onCapture)&&this.config._onCapture!==_q&&(Ot.warn("onCapture is deprecated. Please use `before_send` instead"),this.on("eventCaptured",(S=>this.config._onCapture(S.event,S)))),this.config.ip&&Ot.warn('The `ip` config option has NO EFFECT AT ALL and has been deprecated. Use a custom transformation or "Discard IP data" project setting instead. See https://posthog.com/tutorials/web-redact-properties#hiding-customer-ip-address for more information.'),this}Dr(t){var r=performance.now();this.historyAutocapture=new D5r(this),this.historyAutocapture.startIfEnabled();var n=[];n.push((()=>{new R5r(this).startIfEnabledOrStop()})),n.push((()=>{var i;this.siteApps=new T6r(this),(i=this.siteApps)==null||i.init()})),t||n.push((()=>{this.sessionRecording=new N1e(this),this.sessionRecording.startIfEnabledOrStop()})),this.config.disable_scroll_properties||n.push((()=>{this.scrollManager.startMeasuringScrollPosition()})),n.push((()=>{this.autocapture=new y5r(this),this.autocapture.startIfEnabled()})),n.push((()=>{this.surveys.loadIfEnabled()})),n.push((()=>{this.heatmaps=new J5r(this),this.heatmaps.startIfEnabled()})),n.push((()=>{this.webVitalsAutocapture=new X5r(this)})),n.push((()=>{this.exceptionObserver=new T5r(this),this.exceptionObserver.startIfEnabled()})),n.push((()=>{this.deadClicksAutocapture=new xHe(this,C5r),this.deadClicksAutocapture.startIfEnabled()})),n.push((()=>{if(this.Nr){var i=this.Nr;this.Nr=void 0,this.fi(i)}})),this.Ur(n,r)}Ur(t,r){for(;t.length>0;){if(this.config.__preview_deferred_init_extensions&&performance.now()-r>=30&&t.length>0)return void setTimeout((()=>{this.Ur(t,r)}),0);var n=t.shift();if(n)try{n()}catch(s){Ot.error("Error initializing extension:",s)}}var i=Math.round(performance.now()-r);this.register_for_session({$sdk_debug_extensions_init_method:this.config.__preview_deferred_init_extensions?"deferred":"synchronous",$sdk_debug_extensions_init_time_ms:i}),this.config.__preview_deferred_init_extensions&&Ot.info("PostHog extensions initialized ("+i+"ms)")}fi(t){var r,n,i,s,o,a,l,c;if(!St||!St.body)return Ot.info("document not ready yet, trying again in 500 milliseconds..."),void setTimeout((()=>{this.fi(t)}),500);this.config.__preview_deferred_init_extensions&&(this.Nr=t),this.compression=void 0,t.supportedCompression&&!this.config.disable_compression&&(this.compression=zr(t.supportedCompression,hh.GZipJS)?hh.GZipJS:zr(t.supportedCompression,hh.Base64)?hh.Base64:void 0),(r=t.analytics)!=null&&r.endpoint&&(this.analyticsDefaultEndpoint=t.analytics.endpoint),this.set_config({person_profiles:this.Pr?this.Pr:"identified_only"}),(n=this.siteApps)==null||n.onRemoteConfig(t),(i=this.sessionRecording)==null||i.onRemoteConfig(t),(s=this.autocapture)==null||s.onRemoteConfig(t),(o=this.heatmaps)==null||o.onRemoteConfig(t),this.surveys.onRemoteConfig(t),(a=this.webVitalsAutocapture)==null||a.onRemoteConfig(t),(l=this.exceptionObserver)==null||l.onRemoteConfig(t),this.exceptions.onRemoteConfig(t),(c=this.deadClicksAutocapture)==null||c.onRemoteConfig(t)}Lr(){try{this.config.loaded(this)}catch(t){Ot.critical("`loaded` function failed",t)}this.zr(),this.config.capture_pageview&&setTimeout((()=>{(this.consent.isOptedIn()||this.config.cookieless_mode==="always")&&this.Hr()}),1),new w6r(this).load(),this.featureFlags.flags()}zr(){var t;this.is_capturing()&&this.config.request_batching&&((t=this.Mr)==null||t.enable())}_dom_loaded(){this.is_capturing()&&Tg(this.__request_queue,(t=>this.Or(t))),this.__request_queue=[],this.zr()}_handle_unload(){var t,r;this.config.request_batching?(this.Br()&&this.capture("$pageleave"),(t=this.Mr)==null||t.unload(),(r=this.Ar)==null||r.unload()):this.Br()&&this.capture("$pageleave",null,{transport:"sendBeacon"})}ci(t){this.__loaded&&(tWe?this.__request_queue.push(t):this.rateLimiter.isServerRateLimited(t.batchKey)||(t.transport=t.transport||this.config.api_transport,t.url=W4(t.url,{ip:this.config.ip?1:0}),t.headers=At({},this.config.request_headers),t.compression=t.compression==="best-available"?this.compression:t.compression,t.disableXHRCredentials=this.config.__preview_disable_xhr_credentials,this.config.__preview_disable_beacon&&(t.disableTransport=["sendBeacon"]),t.fetchOptions=t.fetchOptions||this.config.fetch_options,(r=>{var n,i,s,o=At({},r);o.timeout=o.timeout||6e4,o.url=W4(o.url,{_:new Date().getTime().toString(),ver:oh.LIB_VERSION,compression:o.compression});var a=(n=o.transport)!==null&&n!==void 0?n:"fetch",l=eI.filter((u=>!o.disableTransport||!u.transport||!o.disableTransport.includes(u.transport))),c=(i=(s=tHe(l,(u=>u.transport===a)))==null?void 0:s.method)!==null&&i!==void 0?i:l[0].method;if(!c)throw new Error("No available transport method");c(o)})(At({},t,{callback:r=>{var n,i;this.rateLimiter.checkForLimiting(r),r.statusCode>=400&&((n=(i=this.config).on_request_error)==null||n.call(i,r)),t.callback==null||t.callback(r)}}))))}Or(t){this.Ar?this.Ar.retriableRequest(t):this.ci(t)}_execute_array(t){var r,n=[],i=[],s=[];Tg(t,(a=>{a&&(r=a[0],ei(r)?s.push(a):Eg(a)?a.call(this):ei(a)&&r==="alias"?n.push(a):ei(a)&&r.indexOf("capture")!==-1&&Eg(this[r])?s.push(a):i.push(a))}));var o=function(a,l){Tg(a,(function(c){if(ei(c[0])){var u=l;fi(c,(function(d){u=u[d[0]].apply(u,d.slice(1))}))}else this[c[0]].apply(this,c.slice(1))}),l)};o(n,this),o(i,this),o(s,this)}jr(){var t,r;return((t=this.config.bootstrap)==null?void 0:t.featureFlags)&&Object.keys((r=this.config.bootstrap)==null?void 0:r.featureFlags).length>0||!1}push(t){this._execute_array([t])}capture(t,r,n){var i;if(this.__loaded&&this.persistence&&this.sessionPersistence&&this.Mr){if(this.is_capturing())if(!xt(t)&&Xs(t)){var s=!this.config.opt_out_useragent_filter&&this._is_bot();if(!(s&&!this.config.__preview_capture_bot_pageviews)){var o=n!=null&&n.skip_client_rate_limiting?void 0:this.rateLimiter.clientRateLimitContext();if(o==null||!o.isRateLimited){r!=null&&r.$current_url&&!Xs(r?.$current_url)&&(Ot.error("Invalid `$current_url` property provided to `posthog.capture`. Input must be a string. Ignoring provided value."),r==null||delete r.$current_url),this.sessionPersistence.update_search_keyword(),this.config.save_campaign_params&&this.sessionPersistence.update_campaign_params(),this.config.save_referrer&&this.sessionPersistence.update_referrer_info(),(this.config.save_campaign_params||this.config.save_referrer)&&this.persistence.set_initial_person_info();var a=new Date,l=n?.timestamp||a,c=pg(),u={uuid:c,event:t,properties:this.calculateEventProperties(t,r||{},l,c)};t==="$pageview"&&this.config.__preview_capture_bot_pageviews&&s&&(u.event="$bot_pageview",u.properties.$browser_type="bot"),o&&(u.properties.$lib_rate_limit_remaining_tokens=o.remainingTokens),n?.$set&&(u.$set=n?.$set);var d,f=this.qr(n?.$set_once);if(f&&(u.$set_once=f),(u=e5r(u,n!=null&&n._noTruncate?null:this.config.properties_string_max_length)).timestamp=l,xt(n?.timestamp)||(u.properties.$event_time_override_provided=!0,u.properties.$event_time_override_system_time=a),t===tI.DISMISSED||t===tI.SENT){var m=r?.[T1e.SURVEY_ID],g=r?.[T1e.SURVEY_ITERATION];d={id:m,current_iteration:g},localStorage.getItem(D1e(d))||localStorage.setItem(D1e(d),"true"),u.$set=At({},u.$set,{[m6r({id:m,current_iteration:g},t===tI.SENT?"responded":"dismissed")]:!0})}var v=At({},u.properties.$set,u.$set);if(Px(v)||this.setPersonPropertiesForFlags(v),!qn(this.config.before_send)){var b=this.Wr(u);if(!b)return;u=b}this.Er.emit("eventCaptured",u);var w={method:"POST",url:(i=n?._url)!==null&&i!==void 0?i:this.requestRouter.endpointFor("api",this.analyticsDefaultEndpoint),data:u,compression:"best-available",batchKey:n?._batchKey};return!this.config.request_batching||n&&(n==null||!n._batchKey)||n!=null&&n.send_instantly?this.Or(w):this.Mr.enqueue(w),u}Ot.critical("This capture call is ignored due to client rate limiting.")}}else Ot.error("No event name provided to posthog.capture")}else Ot.uninitializedWarning("posthog.capture")}Ai(t){return this.on("eventCaptured",(r=>t(r.event,r)))}calculateEventProperties(t,r,n,i,s){if(n=n||new Date,!this.persistence||!this.sessionPersistence)return r;var o=s?void 0:this.persistence.remove_event_timer(t),a=At({},r);if(a.token=this.config.token,a.$config_defaults=this.config.defaults,(this.config.cookieless_mode=="always"||this.config.cookieless_mode=="on_reject"&&this.consent.isExplicitlyOptedOut())&&(a.$cookieless_mode=!0),t==="$snapshot"){var l=At({},this.persistence.properties(),this.sessionPersistence.properties());return a.distinct_id=l.distinct_id,(!Xs(a.distinct_id)&&!Xf(a.distinct_id)||nq(a.distinct_id))&&Ot.error("Invalid distinct_id for replay event. This indicates a bug in your implementation"),a}var c,u=G5r(this.config.mask_personal_data_properties,this.config.custom_personal_data_properties);if(this.sessionManager){var{sessionId:d,windowId:f}=this.sessionManager.checkAndGetSessionAndWindowId(s,n.getTime());a.$session_id=d,a.$window_id=f}this.sessionPropsManager&&ys(a,this.sessionPropsManager.getSessionProps());try{var m;this.sessionRecording&&ys(a,this.sessionRecording.sdkDebugProperties),a.$sdk_debug_retry_queue_size=(m=this.Ar)==null?void 0:m.length}catch(w){a.$sdk_debug_error_capturing_properties=String(w)}if(this.requestRouter.region===j_.CUSTOM&&(a.$lib_custom_api_host=this.config.api_host),c=t!=="$pageview"||s?t!=="$pageleave"||s?this.pageViewManager.doEvent():this.pageViewManager.doPageLeave(n):this.pageViewManager.doPageView(n,i),a=ys(a,c),t==="$pageview"&&St&&(a.title=St.title),!xt(o)){var g=n.getTime()-o;a.$duration=parseFloat((g/1e3).toFixed(3))}Wa&&this.config.opt_out_useragent_filter&&(a.$browser_type=this._is_bot()?"bot":"browser"),(a=ys({},u,this.persistence.properties(),this.sessionPersistence.properties(),a)).$is_identified=this._isIdentified(),ei(this.config.property_denylist)?fi(this.config.property_denylist,(function(w){delete a[w]})):Ot.error("Invalid value for property_denylist config: "+this.config.property_denylist+" or property_blacklist config: "+this.config.property_blacklist);var v=this.config.sanitize_properties;v&&(Ot.error("sanitize_properties is deprecated. Use before_send instead"),a=v(a,t));var b=this.Gr();return a.$process_person_profile=b,b&&!s&&this.Vr("_calculate_event_properties"),a}qr(t){var r;if(!this.persistence||!this.Gr()||this.Sr)return t;var n=this.persistence.get_initial_props(),i=(r=this.sessionPropsManager)==null?void 0:r.getSetOnceProps(),s=ys({},n,i||{},t||{}),o=this.config.sanitize_properties;return o&&(Ot.error("sanitize_properties is deprecated. Use before_send instead"),s=o(s,"$set_once")),this.Sr=!0,Px(s)?void 0:s}register(t,r){var n;(n=this.persistence)==null||n.register(t,r)}register_once(t,r,n){var i;(i=this.persistence)==null||i.register_once(t,r,n)}register_for_session(t){var r;(r=this.sessionPersistence)==null||r.register(t)}unregister(t){var r;(r=this.persistence)==null||r.unregister(t)}unregister_for_session(t){var r;(r=this.sessionPersistence)==null||r.unregister(t)}Jr(t,r){this.register({[t]:r})}getFeatureFlag(t,r){return this.featureFlags.getFeatureFlag(t,r)}getFeatureFlagPayload(t){var r=this.featureFlags.getFeatureFlagPayload(t);try{return JSON.parse(r)}catch{return r}}isFeatureEnabled(t,r){return this.featureFlags.isFeatureEnabled(t,r)}reloadFeatureFlags(){this.featureFlags.reloadFeatureFlags()}updateEarlyAccessFeatureEnrollment(t,r,n){this.featureFlags.updateEarlyAccessFeatureEnrollment(t,r,n)}getEarlyAccessFeatures(t,r,n){return r===void 0&&(r=!1),this.featureFlags.getEarlyAccessFeatures(t,r,n)}on(t,r){return this.Er.on(t,r)}onFeatureFlags(t){return this.featureFlags.onFeatureFlags(t)}onSurveysLoaded(t){return this.surveys.onSurveysLoaded(t)}onSessionId(t){var r,n;return(r=(n=this.sessionManager)==null?void 0:n.onSessionId(t))!==null&&r!==void 0?r:()=>{}}getSurveys(t,r){r===void 0&&(r=!1),this.surveys.getSurveys(t,r)}getActiveMatchingSurveys(t,r){r===void 0&&(r=!1),this.surveys.getActiveMatchingSurveys(t,r)}renderSurvey(t,r){this.surveys.renderSurvey(t,r)}displaySurvey(t,r){r===void 0&&(r=y6r),this.surveys.displaySurvey(t,r)}cancelPendingSurvey(t){this.surveys.cancelPendingSurvey(t)}canRenderSurvey(t){return this.surveys.canRenderSurvey(t)}canRenderSurveyAsync(t,r){return r===void 0&&(r=!1),this.surveys.canRenderSurveyAsync(t,r)}identify(t,r,n){if(!this.__loaded||!this.persistence)return Ot.uninitializedWarning("posthog.identify");if(Xf(t)&&(t=t.toString(),Ot.warn("The first argument to posthog.identify was a number, but it should be a string. It has been converted to a string.")),t)if(["distinct_id","distinctid"].includes(t.toLowerCase()))Ot.critical('The string "'+t+'" was set in posthog.identify which indicates an error. This ID should be unique to the user and not a hardcoded string.');else if(t!==n_){if(this.Vr("posthog.identify")){var i=this.get_distinct_id();if(this.register({$user_id:t}),!this.get_property("$device_id")){var s=i;this.register_once({$had_persisted_distinct_id:!0,$device_id:s},"")}t!==i&&t!==this.get_property(P_)&&(this.unregister(P_),this.register({distinct_id:t}));var o=(this.persistence.get_property(ah)||"anonymous")==="anonymous";t!==i&&o?(this.persistence.set_property(ah,"identified"),this.setPersonPropertiesForFlags(At({},n||{},r||{}),!1),this.capture("$identify",{distinct_id:t,$anon_distinct_id:i},{$set:r||{},$set_once:n||{}}),this.Tr=O1e(t,r,n),this.featureFlags.setAnonymousDistinctId(i)):(r||n)&&this.setPersonProperties(r,n),t!==i&&(this.reloadFeatureFlags(),this.unregister(F4))}}else Ot.critical('The string "'+n_+'" was set in posthog.identify which indicates an error. This ID is only used as a sentinel value.');else Ot.error("Unique user id has not been set in posthog.identify")}setPersonProperties(t,r){if((t||r)&&this.Vr("posthog.setPersonProperties")){var n=O1e(this.get_distinct_id(),t,r);this.Tr!==n?(this.setPersonPropertiesForFlags(At({},r||{},t||{})),this.capture("$set",{$set:t||{},$set_once:r||{}}),this.Tr=n):Ot.info("A duplicate setPersonProperties call was made with the same properties. It has been ignored.")}}group(t,r,n){if(t&&r){if(this.Vr("posthog.group")){var i=this.getGroups();i[t]!==r&&this.resetGroupPropertiesForFlags(t),this.register({$groups:At({},i,{[t]:r})}),n&&(this.capture("$groupidentify",{$group_type:t,$group_key:r,$group_set:n}),this.setGroupPropertiesForFlags({[t]:n})),i[t]===r||n||this.reloadFeatureFlags()}}else Ot.error("posthog.group requires a group type and group key")}resetGroups(){this.register({$groups:{}}),this.resetGroupPropertiesForFlags(),this.reloadFeatureFlags()}setPersonPropertiesForFlags(t,r){r===void 0&&(r=!0),this.featureFlags.setPersonPropertiesForFlags(t,r)}resetPersonPropertiesForFlags(){this.featureFlags.resetPersonPropertiesForFlags()}setGroupPropertiesForFlags(t,r){r===void 0&&(r=!0),this.Vr("posthog.setGroupPropertiesForFlags")&&this.featureFlags.setGroupPropertiesForFlags(t,r)}resetGroupPropertiesForFlags(t){this.featureFlags.resetGroupPropertiesForFlags(t)}reset(t){var r,n,i,s;if(Ot.info("reset"),!this.__loaded)return Ot.uninitializedWarning("posthog.reset");var o=this.get_property("$device_id");if(this.consent.reset(),(r=this.persistence)==null||r.clear(),(n=this.sessionPersistence)==null||n.clear(),this.surveys.reset(),this.featureFlags.reset(),(i=this.persistence)==null||i.set_property(ah,"anonymous"),(s=this.sessionManager)==null||s.resetSessionId(),this.Tr=null,this.config.cookieless_mode==="always")this.register_once({distinct_id:n_,$device_id:null},"");else{var a=this.config.get_device_id(pg());this.register_once({distinct_id:a,$device_id:t?a:o},"")}this.register({$last_posthog_reset:new Date().toISOString()},1)}get_distinct_id(){return this.get_property("distinct_id")}getGroups(){return this.get_property("$groups")||{}}get_session_id(){var t,r;return(t=(r=this.sessionManager)==null?void 0:r.checkAndGetSessionAndWindowId(!0).sessionId)!==null&&t!==void 0?t:""}get_session_replay_url(t){if(!this.sessionManager)return"";var{sessionId:r,sessionStartTimestamp:n}=this.sessionManager.checkAndGetSessionAndWindowId(!0),i=this.requestRouter.endpointFor("ui","/project/"+this.config.token+"/replay/"+r);if(t!=null&&t.withTimestamp&&n){var s,o=(s=t.timestampLookBack)!==null&&s!==void 0?s:10;if(!n)return i;i+="?t="+Math.max(Math.floor((new Date().getTime()-n)/1e3)-o,0)}return i}alias(t,r){return t===this.get_property(rHe)?(Ot.critical("Attempting to create alias for existing People user - aborting."),-2):this.Vr("posthog.alias")?(xt(r)&&(r=this.get_distinct_id()),t!==r?(this.Jr(P_,t),this.capture("$create_alias",{alias:t,distinct_id:r})):(Ot.warn("alias matches current distinct_id - skipping api call."),this.identify(t),-1)):void 0}set_config(t){var r=At({},this.config);if(eo(t)){var n,i,s,o,a;ys(this.config,M1e(t));var l=this.Cr();(n=this.persistence)==null||n.update_config(this.config,r,l),this.sessionPersistence=this.config.persistence==="sessionStorage"||this.config.persistence==="memory"?this.persistence:new oB(At({},this.config,{persistence:"sessionStorage"}),l);var c=this.Rr(this.config.debug);Cg(c)&&(this.config.debug=c),Cg(this.config.debug)&&(this.config.debug?(oh.DEBUG=!0,Gi.H()&&Gi.G("ph_debug","true"),Ot.info("set_config",{config:t,oldConfig:r,newConfig:At({},this.config)})):(oh.DEBUG=!1,Gi.H()&&Gi.V("ph_debug"))),(i=this.sessionRecording)==null||i.startIfEnabledOrStop(),(s=this.autocapture)==null||s.startIfEnabled(),(o=this.heatmaps)==null||o.startIfEnabled(),this.surveys.loadIfEnabled(),this.Kr(),(a=this.externalIntegrations)==null||a.startIfEnabledOrStop()}}startSessionRecording(t){var r=t===!0,n={sampling:r||!(t==null||!t.sampling),linked_flag:r||!(t==null||!t.linked_flag),url_trigger:r||!(t==null||!t.url_trigger),event_trigger:r||!(t==null||!t.event_trigger)};if(Object.values(n).some(Boolean)){var i,s,o,a,l;(i=this.sessionManager)==null||i.checkAndGetSessionAndWindowId(),n.sampling&&((s=this.sessionRecording)==null||s.overrideSampling()),n.linked_flag&&((o=this.sessionRecording)==null||o.overrideLinkedFlag()),n.url_trigger&&((a=this.sessionRecording)==null||a.overrideTrigger("url")),n.event_trigger&&((l=this.sessionRecording)==null||l.overrideTrigger("event"))}this.set_config({disable_session_recording:!1})}stopSessionRecording(){this.set_config({disable_session_recording:!0})}sessionRecordingStarted(){var t;return!((t=this.sessionRecording)==null||!t.started)}captureException(t,r){var n=new Error("PostHog syntheticException"),i=this.exceptions.buildProperties(t,{handled:!0,syntheticException:n});return this.exceptions.sendExceptionEvent(At({},i,r))}loadToolbar(t){return this.toolbar.loadToolbar(t)}get_property(t){var r;return(r=this.persistence)==null?void 0:r.props[t]}getSessionProperty(t){var r;return(r=this.sessionPersistence)==null?void 0:r.props[t]}toString(){var t,r=(t=this.config.name)!==null&&t!==void 0?t:gx;return r!==gx&&(r=gx+"."+r),r}_isIdentified(){var t,r;return((t=this.persistence)==null?void 0:t.get_property(ah))==="identified"||((r=this.sessionPersistence)==null?void 0:r.get_property(ah))==="identified"}Gr(){var t,r;return!(this.config.person_profiles==="never"||this.config.person_profiles==="identified_only"&&!this._isIdentified()&&Px(this.getGroups())&&((t=this.persistence)==null||(t=t.props)==null||!t[P_])&&((r=this.persistence)==null||(r=r.props)==null||!r[z4]))}Br(){return this.config.capture_pageleave===!0||this.config.capture_pageleave==="if_capture_pageview"&&(this.config.capture_pageview===!0||this.config.capture_pageview==="history_change")}createPersonProfile(){this.Gr()||this.Vr("posthog.createPersonProfile")&&this.setPersonProperties({},{})}Vr(t){return this.config.person_profiles==="never"?(Ot.error(t+' was called, but process_person is set to "never". This call will be ignored.'),!1):(this.Jr(z4,!0),!0)}Cr(){if(this.config.cookieless_mode==="always")return!0;var t=this.consent.isOptedOut(),r=this.config.opt_out_persistence_by_default||this.config.cookieless_mode==="on_reject";return this.config.disable_persistence||t&&!!r}Kr(){var t,r,n,i,s=this.Cr();return((t=this.persistence)==null?void 0:t.wi)!==s&&((n=this.persistence)==null||n.set_disabled(s)),((r=this.sessionPersistence)==null?void 0:r.wi)!==s&&((i=this.sessionPersistence)==null||i.set_disabled(s)),s}opt_in_capturing(t){var r;if(this.config.cookieless_mode!=="always"){var n,i;this.config.cookieless_mode==="on_reject"&&this.consent.isExplicitlyOptedOut()&&(this.reset(!0),(n=this.sessionManager)==null||n.destroy(),this.sessionManager=new $1e(this),this.persistence&&(this.sessionPropsManager=new P1e(this,this.sessionManager,this.persistence)),this.sessionRecording=new N1e(this),this.sessionRecording.startIfEnabledOrStop()),this.consent.optInOut(!0),this.Kr(),this.zr(),(r=this.sessionRecording)==null||r.startIfEnabledOrStop(),this.config.cookieless_mode=="on_reject"&&this.surveys.loadIfEnabled(),(xt(t?.captureEventName)||t!=null&&t.captureEventName)&&this.capture((i=t?.captureEventName)!==null&&i!==void 0?i:"$opt_in",t?.captureProperties,{send_instantly:!0}),this.config.capture_pageview&&this.Hr()}else Ot.warn('Consent opt in/out is not valid with cookieless_mode="always" and will be ignored')}opt_out_capturing(){var t,r;this.config.cookieless_mode!=="always"?(this.config.cookieless_mode==="on_reject"&&this.consent.isOptedIn()&&this.reset(!0),this.consent.optInOut(!1),this.Kr(),this.config.cookieless_mode==="on_reject"&&(this.register({distinct_id:n_,$device_id:null}),(t=this.sessionManager)==null||t.destroy(),this.sessionManager=void 0,this.sessionPropsManager=void 0,(r=this.sessionRecording)==null||r.stopRecording(),this.sessionRecording=void 0,this.Hr())):Ot.warn('Consent opt in/out is not valid with cookieless_mode="always" and will be ignored')}has_opted_in_capturing(){return this.consent.isOptedIn()}has_opted_out_capturing(){return this.consent.isOptedOut()}get_explicit_consent_status(){var t=this.consent.consent;return t===lh.GRANTED?"granted":t===lh.DENIED?"denied":"pending"}is_capturing(){return this.config.cookieless_mode==="always"||(this.config.cookieless_mode==="on_reject"?this.consent.isExplicitlyOptedOut()||this.consent.isOptedIn():!this.has_opted_out_capturing())}clear_opt_in_out_capturing(){this.consent.reset(),this.Kr()}_is_bot(){return Jl?eWe(Jl,this.config.custom_blocked_useragents):void 0}Hr(){St&&(St.visibilityState==="visible"?this.$r||(this.$r=!0,this.capture("$pageview",{title:St.title},{send_instantly:!0}),this.kr&&(St.removeEventListener("visibilitychange",this.kr),this.kr=null)):this.kr||(this.kr=this.Hr.bind(this),Ps(St,"visibilitychange",this.kr)))}debug(t){t===!1?($e?.console.log("You've disabled debug mode."),this.set_config({debug:!1})):($e?.console.log("You're now in debug mode. All calls to PostHog will be logged in your console.\nYou can disable this with `posthog.debug(false)`."),this.set_config({debug:!0}))}O(){var t,r,n,i,s,o,a,l=this.Ir||{};return"advanced_disable_flags"in l?!!l.advanced_disable_flags:this.config.advanced_disable_flags!==!1?!!this.config.advanced_disable_flags:this.config.advanced_disable_decide===!0?(Ot.warn("Config field 'advanced_disable_decide' is deprecated. Please use 'advanced_disable_flags' instead. The old field will be removed in a future major version."),!0):(n="advanced_disable_decide",i=!1,s=Ot,o=(r="advanced_disable_flags")in(t=l)&&!xt(t[r]),a=n in t&&!xt(t[n]),o?t[r]:a?(s&&s.warn("Config field '"+n+"' is deprecated. Please use '"+r+"' instead. The old field will be removed in a future major version."),t[n]):i)}Wr(t){if(qn(this.config.before_send))return t;var r=ei(this.config.before_send)?this.config.before_send:[this.config.before_send],n=t;for(var i of r){if(n=i(n),qn(n)){var s="Event '"+t.event+"' was rejected in beforeSend function";return CNr(t.event)?Ot.warn(s+". This can cause unexpected behavior."):Ot.info(s),null}n.properties&&!Px(n.properties)||Ot.warn("Event '"+t.event+"' has no properties after beforeSend function, this is likely an error.")}return n}getPageViewId(){var t;return(t=this.pageViewManager.Vt)==null?void 0:t.pageViewId}captureTraceFeedback(t,r){this.capture("$ai_feedback",{$ai_trace_id:String(t),$ai_feedback_text:r})}captureTraceMetric(t,r,n){this.capture("$ai_metric",{$ai_trace_id:String(t),$ai_metric_name:r,$ai_metric_value:String(n)})}Rr(t){var r=Cg(t)&&!t,n=Gi.H()&&Gi.q("ph_debug")==="true";return!r&&(!!n||t)}}(function(e,t){for(var r=0;r<t.length;r++)e.prototype[t[r]]=KNr(e.prototype[t[r]])})(nR,["identify"]);var j1e,mh=(j1e=_k[gx]=new nR,(function(){function e(){e.done||(e.done=!0,tWe=!1,fi(_k,(function(t){t._dom_loaded()})))}St!=null&&St.addEventListener?St.readyState==="complete"?e():Ps(St,"DOMContentLoaded",e,{capture:!1}):$e&&Ot.error("Browser doesn't support `document.addEventListener` so PostHog couldn't be initialized")})(),j1e),rWe=E.createContext({client:mh,bootstrap:void 0});function nWe(e,t,r){if(r===void 0&&(r=new WeakMap),e===t)return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;if(r.has(e)&&r.get(e)===t)return!0;r.set(e,t);var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(var s=0,o=n;s<o.length;s++){var a=o[s];if(!i.includes(a)||!nWe(e[a],t[a],r))return!1}return!0}function R6r(e){var t,r,n=e.children,i=e.client,s=e.apiKey,o=e.options,a=E.useRef(null),l=E.useMemo(function(){return i?(s&&console.warn("[PostHog.js] You have provided both `client` and `apiKey` to `PostHogProvider`. `apiKey` will be ignored in favour of `client`."),o&&console.warn("[PostHog.js] You have provided both `client` and `options` to `PostHogProvider`. `options` will be ignored in favour of `client`."),i):(s||console.warn("[PostHog.js] No `apiKey` or `client` were provided to `PostHogProvider`. Using default global `window.posthog` instance. You must initialize it manually. This is not recommended behavior."),mh)},[i,s,JSON.stringify(o)]);return E.useEffect(function(){if(!i){var c=a.current;c?(s!==c.apiKey&&console.warn("[PostHog.js] You have provided a different `apiKey` to `PostHogProvider` than the one that was already initialized. This is not supported by our provider and we'll keep using the previous key. If you need to toggle between API Keys you need to control the `client` yourself and pass it in as a prop rather than an `apiKey` prop."),o&&!nWe(o,c.options)&&mh.set_config(o),a.current={apiKey:s,options:o??{}}):(mh.__loaded&&console.warn("[PostHog.js] `posthog` was already loaded elsewhere. This may cause issues."),mh.init(s,o),a.current={apiKey:s,options:o??{}})}},[i,s,JSON.stringify(o)]),me.createElement(rWe.Provider,{value:{client:l,bootstrap:(t=o?.bootstrap)!==null&&t!==void 0?t:(r=i?.config)===null||r===void 0?void 0:r.bootstrap}},n)}var cB=function(e){return typeof e=="function"},kq=function(e,t){return kq=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},kq(e,t)};function M6r(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");kq(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var j6r={componentStack:null,exceptionEvent:null,error:null},F6r={INVALID_FALLBACK:"[PostHog.js][PostHogErrorBoundary] Invalid fallback prop, provide a valid React element or a function that returns a valid React element."};(function(e){M6r(t,e);function t(r){var n=e.call(this,r)||this;return n.state=j6r,n}return t.prototype.componentDidCatch=function(r,n){var i=this.props.additionalProperties,s;cB(i)?s=i(r):typeof i=="object"&&(s=i);var o=this.context.client,a=o.captureException(r,s),l=n.componentStack;this.setState({error:r,componentStack:l,exceptionEvent:a})},t.prototype.render=function(){var r=this.props,n=r.children,i=r.fallback,s=this.state;if(s.componentStack==null)return cB(n)?n():n;var o=cB(i)?me.createElement(i,{error:s.error,componentStack:s.componentStack,exceptionEvent:s.exceptionEvent}):i;return me.isValidElement(o)?o:(console.warn(F6r.INVALID_FALLBACK),me.createElement(me.Fragment,null))},t.contextType=rWe,t})(me.Component);function L6r({children:e}){return E.useEffect(()=>{if("brave"in navigator){console.info("[Analytics]: Telemetry is disabled for browser constraints.");return}if(window.MASTRA_TELEMETRY_DISABLED){console.info("[Analytics]: Telemetry is disabled.");return}mh.init("phc_SBLpZVAB6jmHOct9CABq3PF0Yn5FU3G2FgT4xUr2XrT",{api_host:"https://us.posthog.com"}),mh.register({mastraSource:"playground"})},[]),p.jsx(R6r,{client:mh,children:e})}function z6r(){return p.jsxs($o,{children:[p.jsx(js,{children:p.jsxs(pu,{children:[p.jsx(He,{children:p.jsx(twe,{})}),"Request Context"]})}),p.jsx(Dd,{children:p.jsx(sIr,{children:p.jsx(iIr,{})})})]})}const B6r=()=>{const{data:e=[],isLoading:t}=K6(),r=!t&&e.length===0;return p.jsxs($o,{children:[p.jsxs(js,{children:[p.jsxs(pu,{children:[p.jsx(He,{children:p.jsx(G0,{})}),"MCP Servers"]}),p.jsx(Oc,{children:p.jsxs(Ke,{as:an,to:"https://mastra.ai/en/docs/tools-mcp/mcp-overview",target:"_blank",children:[p.jsx(He,{children:p.jsx(Sc,{})}),"MCP documentation"]})})]}),p.jsx(Dd,{isCentered:r,children:p.jsx(L4r,{mcpServers:e,isLoading:t})})]})},V6r=()=>{const{data:e}=K6(),{serverId:t,toolId:r}=Pd(),{data:n,isLoading:i}=Uqe(t,r),s=e?.find(l=>l.id===t),o=n?.name,a=s?.name||"";return i||!n?null:p.jsxs("div",{className:"h-full w-full bg-surface2 overflow-y-hidden",children:[p.jsxs(js,{children:[p.jsxs(by,{children:[p.jsxs(sc,{as:an,to:"/mcps",children:[p.jsx(He,{children:p.jsx(G0,{})}),"MCP Servers"]}),p.jsx(sc,{as:an,to:`/mcps/${t}`,children:a}),p.jsx(sc,{as:"span",to:"",isCurrent:!0,children:o})]}),p.jsx(Oc,{children:p.jsxs(Ke,{as:an,to:"https://mastra.ai/en/docs/tools-mcp/mcp-overview",target:"_blank",children:[p.jsx(He,{children:p.jsx(Sc,{})}),"MCP documentation"]})})]}),p.jsx(U4r,{toolId:r,serverId:t})]})},U6r=()=>{const{serverId:e}=Pd(),{data:t=[],isLoading:r}=K6(),n=t.find(i=>i.id===e);return p.jsxs($o,{children:[p.jsxs(js,{children:[p.jsx(by,{children:p.jsxs(sc,{as:an,to:"/mcps",isCurrent:!0,children:[p.jsx(He,{children:p.jsx(G0,{})}),"MCP Servers"]})}),p.jsx(ID,{children:p.jsx("div",{className:"w-48",children:p.jsx(H4r,{value:e})})}),p.jsx(Oc,{children:p.jsxs(Ke,{as:an,to:"https://mastra.ai/en/docs/tools-mcp/mcp-overview",target:"_blank",children:[p.jsx(He,{children:p.jsx(Sc,{})}),"MCP documentation"]})})]}),p.jsx(Q4r,{isLoading:r,server:n})]})},uB=({to:e,options:t})=>{const r=Pd(),n=Q6r(e);let i=e;for(const s of n)i=i.replace(`:${s}`,r[s]);return p.jsx(dYe,{to:i,...t})};function Q6r(e){const t=[],r=e.split("/");for(const n of r)n.startsWith(":")&&t.push(n.slice(1));return t}const Z6r=E.forwardRef(({children:e,href:t,...r},n)=>p.jsx(an,{ref:n,to:t,...r,children:e}));function q6r(){const{data:e={},isLoading:t}=Y6();return p.jsxs($o,{children:[p.jsxs(js,{children:[p.jsxs(pu,{children:[p.jsx(He,{children:p.jsx(nI,{})}),"Scorers"]}),p.jsx(Oc,{children:p.jsxs(Ke,{as:an,to:"https://mastra.ai/en/docs/scorers/overview",target:"_blank",children:[p.jsx(He,{children:p.jsx(Sc,{})}),"Scorers documentation"]})})]}),p.jsx(Dd,{isCentered:!t&&Object.keys(e||{}).length===0,children:p.jsx(IIr,{isLoading:t,scorers:e})})]})}function H6r(){const{scorerId:e}=Pd(),[t,r]=J4(),[n,i]=E.useState(),[s,o]=E.useState(0),[a,l]=E.useState(!1),[c,u]=E.useState({value:"all",label:"All",type:"ALL"}),{scorer:d,isLoading:f,error:m}=DIr(e),{data:g={},isLoading:v,error:b}=J0(),{data:w,isLoading:S,error:O}=F6(),{data:k,isLoading:C,error:T}=TIr({scorerId:e,page:s,entityId:c?.value==="all"?void 0:c?.value,entityType:c?.type==="ALL"?void 0:c?.type}),P=d?.agentIds?.map(B=>({value:B,label:g[B].name,type:"AGENT"}))||[],A=d?.workflowIds?.map(B=>({value:B,label:B,type:"WORKFLOW"}))||[],R=[{value:"all",label:"All",type:"ALL"},...P,...A];if(E.useEffect(()=>{if(R){const B=t.get("entity"),J=R.find(q=>q.value===B);J&&J.value!==c?.value&&u(J)}},[t,c,R]),E.useEffect(()=>{if(m){const B=m instanceof Error?m.message:"Failed to load scorer";os.error(`Error loading scorer: ${B}`)}},[m]),E.useEffect(()=>{if(b){const B=b instanceof Error?b.message:"Failed to load agents";os.error(`Error loading agents: ${B}`)}},[b]),E.useEffect(()=>{if(O){const B=O instanceof Error?O.message:"Failed to load workflows";os.error(`Error loading workflows: ${B}`)}},[O]),f||m||b||O)return null;const M=d?.agentIds.map(B=>({name:B,id:Object.entries(g).find(([J,q])=>q.name===B)?.[0]}))||[],z=d?.workflowIds.map(B=>({name:B,id:Object.entries(w||{}).find(([J,q])=>q.name===B)?.[0]}))||[],V=[{key:"entities",label:"Entities",value:([...M.map(B=>({id:B.id,name:B.name,type:"AGENT"})),...z.map(B=>({id:B.id,name:B.name,type:"WORKFLOW"}))]||[]).map(B=>({id:B.id,name:B.name||B.id,path:`${B.type==="AGENT"?"/agents":"/workflows"}/${B.name}`}))}],L=B=>{B?.value&&r({entity:B?.value})},Q=k?.scores||[],F=k?.pagination,N=B=>{i(B),l(!0)},I=xte({entries:Q,id:n,update:i}),H=wte({entries:Q,id:n,update:i});return p.jsxs(p.Fragment,{children:[p.jsxs($o,{children:[p.jsxs(js,{children:[p.jsx(by,{children:p.jsxs(sc,{as:an,to:"/scorers",isCurrent:!0,children:[p.jsx(He,{children:p.jsx(nI,{})}),"Scorers"]})}),p.jsx(ID,{children:p.jsx("div",{className:"w-48",children:p.jsx(AIr,{value:e})})}),p.jsx(Oc,{children:p.jsxs(Ke,{as:an,to:"https://mastra.ai/en/docs/scorers/overview",target:"_blank",children:[p.jsx(He,{children:p.jsx(Sc,{})}),"Scorers documentation"]})})]}),p.jsx("div",{className:ie("grid overflow-y-auto h-full"),children:p.jsxs("div",{className:ie("max-w-[100rem] w-full px-12 mx-auto grid content-start gap-8 h-full"),children:[p.jsx(Bqe,{title:d?.scorer?.config?.name||"loading",description:d?.scorer?.config?.description||"loading",icon:p.jsx(nI,{})}),p.jsx(Y0,{data:V,LinkComponent:an,isLoading:v||S}),p.jsx(CIr,{selectedEntity:c,entityOptions:R,onEntityChange:L,onReset:()=>r({entity:"all"}),isLoading:C||v||S}),C?p.jsx(bte,{columns:Y$}):p.jsx(hIr,{scores:Q,selectedScoreId:n,pagination:F,onScoreClick:N,onPageChange:o,errorMsg:T?.message})]})})]}),p.jsx(vqe,{scorerName:d?.scorer?.config?.name,score:Q.find(B=>B.id===n),isOpen:a,onClose:()=>l(!1),onNext:I,onPrevious:H,computeTraceLink:(B,J)=>`/observability?traceId=${B}${J?`&spanId=${J}`:""}`})]})}var Eq=(e=>(e.AGENT="agent",e.EVAL="eval",e.INPUT_PROCESSOR="input_processor",e.INPUT_STEP_PROCESSOR="input_step_processor",e.OUTPUT_PROCESSOR="output_processor",e.OUTPUT_STEP_PROCESSOR="output_step_processor",e.WORKFLOW_STEP="workflow_step",e.TOOL="tool",e.WORKFLOW_RUN="workflow_run",e))(Eq||{});const W6r=async({client:e,page:t,perPage:r,filters:n})=>(await e.listTraces({pagination:{page:t,perPage:r},filters:n})).spans||[],G6r=({filters:e})=>{const t=or(),{inView:r,setRef:n}=DZe(),i=N$e({queryKey:["traces",e],queryFn:({pageParam:s})=>W6r({client:t,page:s,perPage:25,filters:e}),initialPageParam:0,getNextPageParam:(s,o,a)=>{if(s?.length)return a+1},staleTime:0,gcTime:0,select:s=>s.pages.flatMap(o=>o),retry:!1,refetchInterval:3e3});return E.useEffect(()=>{r&&i.hasNextPage&&!i.isFetchingNextPage&&i.fetchNextPage()},[r,i.hasNextPage,i.isFetchingNextPage]),{...i,setEndOfListElement:n}},X6r=(e,t)=>{const r=or();return Ri({queryKey:["trace",e],queryFn:async()=>{if(!e)throw new Error("Trace ID is required");return await r.getTrace(e)},enabled:!!e,refetchInterval:3e3,...t})};function Y6r(){const e=Ew(),[t,r]=J4(),[n,i]=E.useState(),[s,o]=E.useState({value:"all",label:"All",type:"all"}),[a,l]=E.useState(void 0),[c,u]=E.useState(void 0),[d,f]=E.useState(!1),{data:m={},isLoading:g}=J0(),{data:v,isLoading:b}=F6(),{data:w={},isLoading:S}=Y6(),{data:O,isLoading:k}=X6r(n,{enabled:!!n}),C=t.get("traceId"),T=t.get("spanId"),P=t.get("tab"),A=t.get("scoreId"),{data:R=[],isLoading:M,isFetchingNextPage:z,hasNextPage:U,setEndOfListElement:V,error:L,isError:Q}=G6r({filters:{...s?.type!=="all"&&{entityId:s?.value,entityType:s?.type},...a&&{startedAt:{start:a}},...c&&{endedAt:{end:c}}}});E.useEffect(()=>{C&&(i(C),f(!0))},[C]);const F=(Object.entries(m)||[]).map(([X,te])=>({value:te.id,label:te.name,type:Eq.AGENT})),N=(Object.entries(v||{})||[]).map(([,X])=>({value:X.name,label:X.name,type:Eq.WORKFLOW_RUN})),I=[{value:"all",label:"All",type:"all"},...F,...N];E.useEffect(()=>{if(I){const X=t.get("entity"),te=I.find(ue=>ue.value===X);te&&te.value!==s?.value&&o(te)}},[t,s,I]);const H=()=>{i(void 0),r({entity:"all",traceId:""}),f(!1),l(void 0),u(void 0)},B=(X,te)=>{if(te==="from")return l(X);u(X)},J=X=>{X?.value&&r({entity:X?.value})},q=X=>{if(X===n)return i(void 0);i(X),f(!0)},j=Q?I4r(L):void 0,W=s?.value!=="all"||a||c,K=xte({entries:R.map(X=>({id:X.traceId})),id:n,update:i}),ne=wte({entries:R.map(X=>({id:X.traceId})),id:n,update:i});return p.jsxs(p.Fragment,{children:[p.jsxs($o,{children:[p.jsxs(js,{children:[p.jsxs(pu,{children:[p.jsx(He,{children:p.jsx(hB,{})}),"Observability"]}),p.jsx(Oc,{children:p.jsxs(Ke,{as:an,to:"https://mastra.ai/en/docs/observability/tracing/overview",target:"_blank",children:[p.jsx(He,{children:p.jsx(Sc,{})}),"Observability documentation"]})})]}),p.jsx("div",{className:ie("grid overflow-y-auto h-full"),children:p.jsxs("div",{className:ie("max-w-[100rem] px-12 mx-auto grid content-start gap-8 h-full"),children:[p.jsx(Bqe,{title:"Observability",description:"Explore observability traces for your entities",icon:p.jsx(hB,{})}),p.jsx(p4r,{onEntityChange:J,onReset:H,selectedEntity:s,entityOptions:I,onDateChange:B,selectedDateFrom:a,selectedDateTo:c,isLoading:M||g||b}),M?p.jsx(bte,{columns:J$}):p.jsx(h4r,{traces:R,selectedTraceId:n,onTraceClick:q,errorMsg:j?.error,setEndOfListElement:V,filtersApplied:!!W,isFetchingNextPage:z,hasNextPage:U})]})})]}),p.jsx(f4r,{traceSpans:O?.spans,traceId:n,initialSpanId:T||void 0,initialSpanTab:P==="scores"?"scores":"details",initialScoreId:A||void 0,traceDetails:R.find(X=>X.traceId===n),isOpen:d,onClose:()=>{e("/observability"),f(!1)},onNext:K,onPrevious:ne,isLoadingSpans:k,computeTraceLink:(X,te)=>`/observability?traceId=${X}${te?`&spanId=${te}`:""}`,scorers:w,isLoadingScorers:S})]})}async function iWe(){const e=await fetch("https://mastra.ai/api/templates.json");if(!e.ok)throw new Error(`Failed to fetch templates: ${e.statusText}`);const t=await e.json(),r=[{title:"Weather Agent",slug:"weather-agent",githubUrl:"https://github.com/mastra-ai/weather-agent",description:"Get weather information of any city.",longDescription:"One Agent, one Workflow and one Tool to bring you the weather in your city.",imageURL:"",tags:["Agent","Workflow","Tool"],useCase:"",supportedProviders:["openai","anthropic","google","groq"],agents:["weatherAgent"],tools:["weatherTool"],workflows:["weatherWorkflow"]},...t],n=Array.from(new Set(r.flatMap(s=>s.tags))),i=Array.from(new Set(r.flatMap(s=>s.supportedProviders)));return{templates:r,tags:n,providers:i}}async function J6r({repo:e,owner:t}){const r=await fetch(`https://api.github.com/repos/${t}/${e}`);if(!r.ok)throw new Error(`Failed to fetch template: ${r.statusText}`);const n=await r.json();if(!n.is_template)throw new Error("Repo is not a template, please update the repo settings to make it a template");return{title:n.name,slug:n.name,description:n.description??"",imageURL:"",tags:[],useCase:"",longDescription:n.description??"",githubUrl:n.html_url,supportedProviders:[]}}async function K6r({repoOrSlug:e,owner:t}){const{templates:r}=await iWe(),n=r.find(i=>i.slug===e);if(!n){if(e.startsWith("template-")){const s=r.find(o=>`template-${o.slug}`===e);if(s)return s}const i=await J6r({repo:e,owner:t});if(i)return i;throw new Error(`Template ${e} not found`)}return n}async function eRr({repo:e,owner:t,branch:r}){const n=`https://raw.githubusercontent.com/${t}/${e}/${r}/.env.example`,i=await fetch(n);return i.ok?(await i.text()).split(`
|
|
571
|
-
`).reduce((a,l)=>{if(!l||l.startsWith("#"))return a;const[c,u]=l.split("=");return c&&(a[c]=u?.split("")?.every(d=>d==="*")?"":u?.replaceAll('"',"")),a},{}):{}}const tRr=()=>Ri({queryKey:["mastra-templates"],queryFn:iWe}),rRr=({repoOrSlug:e,owner:t})=>Ri({queryKey:["template-repo",e,t],queryFn:()=>K6r({repoOrSlug:e,owner:t})}),nRr=({repo:e,owner:t,branch:r})=>Ri({queryKey:["template-repo-env-vars",e,t,r],queryFn:()=>eRr({repo:e,owner:t,branch:r})}),iRr=()=>{const e=or();return Ri({queryKey:["agent-builder-workflow"],queryFn:async()=>await e.getAgentBuilderAction("merge-template").details()})},sRr=()=>{const e=or();return Pi({mutationFn:async({runId:t})=>await e.getAgentBuilderAction("merge-template").createRun({runId:t})})},oRr=()=>{const e=or();return Pi({mutationFn:async({runId:t})=>await e.getAgentBuilderAction("merge-template").runById(t)})},F1e=(e,t,r)=>{let n={...t};if(!(n.payload?.workflowState?.steps&&Object.keys(n.payload.workflowState.steps).length>0)&&r?.allSteps&&(n.payload={...n.payload,workflowState:{...n.payload?.workflowState,steps:Object.keys(r.allSteps).reduce((s,o)=>(s[o]={id:o,description:r.allSteps[o].description,status:"pending"},s),{})}}),e.type==="start"||e.type==="workflow-start"){const s={};r?.allSteps&&Object.entries(r.allSteps).forEach(([a,l])=>{s[a]={id:l.id,description:l.description,status:"pending"}});const o=e.runId||e.payload?.runId;n={...n,runId:o,eventTimestamp:new Date().toISOString(),status:"running",phase:"initializing",payload:{workflowState:{status:"running",steps:s},currentStep:null}}}if(e.type==="step-start"||e.type==="workflow-step-start"){const s=e.payload.id;n={...n,phase:"processing",payload:{...n.payload,currentStep:{id:s,status:"running",startTime:new Date,...e.payload},workflowState:{...n.payload.workflowState,steps:{...n.payload.workflowState.steps,[s]:{...n.payload.workflowState.steps[s],status:"running",startTime:new Date,...e.payload}}}}}}if(e.type==="step-result"||e.type==="workflow-step-result"){const s=e.payload.id,o=e.payload.status,a=e.payload.error;n={...n,payload:{...n.payload,currentStep:{...n.payload.currentStep,status:e.payload.status,output:e.payload.output,error:e.payload.error,endTime:new Date},workflowState:{...n.payload.workflowState,steps:{...n.payload.workflowState.steps,[s]:{...n.payload.workflowState.steps[s],status:e.payload.status,output:e.payload.output,error:e.payload.error,endTime:new Date}}}}},o==="failed"&&a&&(n={...n,status:"failed",error:a,phase:"error",failedStep:{id:s,error:a,description:e.payload.description||s},payload:{...n.payload,workflowState:{...n.payload.workflowState,status:"failed"}},errorTimestamp:new Date})}return(e.type==="step-finish"||e.type==="workflow-step-finish")&&(n={...n,payload:{...n.payload,currentStep:null}}),(e.type==="finish"||e.type==="workflow-finish")&&(n.phase==="error"||n.status==="failed"?n={...n,completedAt:new Date}:n={...n,status:e.payload.status||"completed",phase:"completed",payload:{...n.payload,currentStep:null,workflowState:{...n.payload.workflowState,status:e.payload.status||"completed"}},completedAt:new Date}),e.type==="error"&&(n={...n,status:"failed",error:e.payload.error,phase:"error",payload:{...n.payload,workflowState:{...n.payload.workflowState,status:"failed"}},errorTimestamp:new Date}),{newState:n}},aRr=(e,t)=>{try{localStorage.setItem(`template-install-${e}`,JSON.stringify({state:t,timestamp:Date.now()}))}catch(r){console.warn("Failed to save template state to localStorage:",r)}},sWe=(e,t)=>{const[r,n]=E.useState({}),[i,s]=E.useState(!1);return{streamResult:r,isStreaming:i,processStream:async(a,l)=>{if(s(!0),n({}),!a)throw new Error("No stream returned");const c=a.getReader();let u={runId:l||t,eventTimestamp:new Date().toISOString(),phase:"running",payload:{workflowState:{steps:{}},currentStep:null}};try{for(;;){const{done:d,value:f}=await c.read();if(d)break;const{newState:m}=F1e(f,u,e);if(u=m,n(m),f.runId||l||t){const g=f.runId||l||t;aRr(g,m)}}}catch(d){console.error("💥 [processStream] Error processing template installation stream:",d);const{newState:f}=F1e({type:"error",payload:{error:d instanceof Error?d.message:"Unknown error"}},u,e);n(f)}finally{s(!1),c.releaseLock()}}}},lRr=e=>{const t=or(),{streamResult:r,isStreaming:n,processStream:i}=sWe(e);return{streamInstall:Pi({mutationFn:async({inputData:o,selectedModel:a,runId:l})=>{for(let u=1;u<=3;u++)try{const d=t.getAgentBuilderAction("merge-template"),f=new rl;f.set("selectedModel",a);const m=await d.stream({inputData:o,requestContext:f},l);await i(m,l);return}catch(d){console.error(`💥 [streamInstall] Attempt ${u} failed:`,d);const f=d?.message?.includes("Failed to fetch")||d?.message?.includes("NetworkError")||d?.message?.includes("network error")||d?.message?.includes("fetch")||d?.code==="NETWORK_ERROR"||d?.name==="TypeError";if(console.warn(`Stream attempt ${u}/3 failed:`,d),f){const m=l?`Network error during template installation (likely hot reload). Please refresh the page to resume from where you left off using runId: ${l}`:"Network error during template installation (likely hot reload). Please try again.";throw console.error("🔌 Stream network error:",m),new Error(m)}throw console.error("❌ [streamInstall] Non-network error or max retries reached, throwing:",d),d}}}),streamResult:r,isStreaming:n}},cRr=e=>{const t=or(),{streamResult:r,isStreaming:n,processStream:i}=sWe(e);return{observeInstall:Pi({mutationFn:async({runId:o})=>{for(let c=1;c<=3;c++)try{const d=await t.getAgentBuilderAction("merge-template").observeStream({runId:o});await i(d,o);return}catch(u){console.error(`💥 [observeInstall] Attempt ${c} failed:`,u);const d=u?.message?.includes("Failed to fetch")||u?.message?.includes("NetworkError")||u?.message?.includes("network error")||u?.message?.includes("fetch")||u?.code==="NETWORK_ERROR"||u?.name==="TypeError";if(console.warn(`ObserveStream attempt ${c}/3 failed:`,u),d&&c<3){console.log(`🔄 ObserveStream network error detected (likely hot reload), retrying in 2000ms... (attempt ${c+1}/3)`),await new Promise(f=>setTimeout(f,2e3));continue}throw console.error("❌ [observeInstall] Non-network error or max retries reached, throwing:",u),u}}}),streamResult:r,isStreaming:n}};function uRr(){const{data:e,isLoading:t}=tRr(),{templates:r,tags:n,providers:i}=e??{templates:[],tags:[],providers:[]},[s,o]=E.useState("all"),[a,l]=E.useState("all"),[c,u]=E.useState(""),d=[{value:"all",label:"All"}];(n||[]).forEach(S=>{d.push({value:S,label:S})});const f=[{value:"all",label:"All"}];(i||[]).forEach(S=>{f.push({value:S,label:S})});const m=(S,O)=>{O==="tag"?o(S):O==="provider"&&l(S)},g=S=>{u(S)},v=()=>{o("all"),l("all"),u("")},b=r.filter(S=>!(c&&!S.title.toLowerCase().includes(c)&&!S.description.toLowerCase().includes(c)||s!=="all"&&!S.tags.includes(s)||a!=="all"&&!S.supportedProviders.includes(a))),w=c||s!=="all"||a!=="all";return p.jsxs($o,{children:[p.jsx(js,{children:p.jsxs(pu,{children:[p.jsx(He,{children:p.jsx(Mq,{})}),"Templates"]})}),p.jsxs("div",{className:ie("overflow-y-auto w-full h-full px-8 pb-12 z-10"),children:[p.jsx(j3r,{selectedTag:s,onTagChange:S=>m(S,"tag"),tagOptions:d,selectedProvider:a,onProviderChange:S=>m(S,"provider"),providerOptions:f,searchTerm:c,onSearchChange:g,onReset:w?v:void 0,className:"max-w-[80rem]",isLoading:t}),p.jsx(L3r,{templates:b,linkComponent:an,className:"max-w-[80rem] mx-auto",isLoading:t})]})]})}const dRr="1.0.0-beta.22";function fRr(){const{templateSlug:e}=Pd(),[t,r]=J4(),[n,i]=E.useState(""),[s,o]=E.useState(""),[a,l]=E.useState(""),[c,u]=E.useState({}),[d,f]=E.useState([]),[m,g]=E.useState(null),[v,b]=E.useState(!1),[w,S]=E.useState(""),[O,k]=E.useState(!1),[C,T]=E.useState(!1),[P,A]=E.useState([]),{data:R,isLoading:M}=rRr({repoOrSlug:e,owner:"mastra-ai"}),U=dRr?.includes("beta")??!1?"beta":"main",{data:V,isLoading:L}=nRr({repo:R?.githubUrl?new URL(R.githubUrl).pathname.split("/")[2]:`template-${e}`,owner:"mastra-ai",branch:U}),{data:Q,isLoading:F}=iRr(),{mutateAsync:N,isPending:I}=sRr(),{mutateAsync:H,isPending:B}=oRr(),{streamInstall:J,streamResult:q,isStreaming:j}=lRr(Q),{observeInstall:W,streamResult:K,isStreaming:ne}=cRr(Q);E.useEffect(()=>{const Fe=t.get("runId");Fe&&!v&&!m&&!j&&!ne&&(console.log("🔄 Checking completed run after hot reload:",{runId:Fe}),S(Fe),H({runId:Fe}).then(rt=>{const yt=rt.snapshot;if(yt?.status==="success"&&yt?.result?.success)b(!0);else if(yt?.result?.success===!1)if(yt?.result?.validationResults&&!yt?.result?.validationResults?.valid&&yt?.result?.validationResults?.remainingErrors>0){const{remainingErrors:wr,errors:ur}=yt.result.validationResults,le=`Template installation completed but ${wr} validation issue${wr>1?"s":""} remain unresolved.`;g(le),A(ur||[])}else g(yt?.result?.message||yt?.result?.error||"Template installation failed")}).catch(rt=>{console.error("❌ Failed to fetch run details:",rt),g("Failed to retrieve installation status after reload")}))},[t,v,m,j,ne,H]),E.useEffect(()=>{const Fe=t.get("runId"),rt=t.get("resume"),yt=t.get("provider");if(Fe&&rt==="true"&&yt&&!j&&!ne&&!O&&!C&&Q){S(Fe),k(!0);try{H({runId:Fe}).then(lt=>{if(lt.snapshot?.status==="running")return W.mutateAsync({runId:Fe})}).then(()=>{r(lt=>{const wr=new URLSearchParams(lt);return wr.delete("resume"),wr})}).catch(lt=>{console.error("❌ Failed to resume template installation:",lt),lt.message?.includes("404")||lt.message?.includes("not found")?g("Template installation run not found. It may have expired or been completed."):g("Failed to resume template installation. Please try again.")})}catch(lt){console.error("❌ Auto-resume failed with error:",lt),g("Failed to resume template installation. Please refresh and try again.")}}},[t,e,j,ne,O,C,Q,H,W,r]);const X=[{value:"openai",label:"OpenAI"},{value:"anthropic",label:"Anthropic"},{value:"groq",label:"Groq"},{value:"google",label:"Google"}],te=[{key:"tools",label:"Tools",value:R?.tools?.length?R.tools.map(Fe=>Fe).join(", "):"n/a",icon:p.jsx(wu,{})},{key:"agents",label:"Agents",value:R?.agents?.length?R.agents.map(Fe=>Fe).join(", "):"n/a",icon:p.jsx(ea,{})},{key:"workflows",label:"Workflows",value:R?.workflows?.length?R.workflows.map(Fe=>Fe).join(", "):"n/a",icon:p.jsx(mJe,{})},{key:"providers",label:"Providers",value:R?.supportedProviders?.length?R.supportedProviders.join(", "):"n/a",icon:p.jsx(tJe,{})},{key:"tags",label:"Tags",value:R?.tags?.length?R.tags.join(", "):"n/a",icon:p.jsx(pJe,{})}],ue=[{...te[0]},{...te[1]},{...te[2]}].filter(Fe=>Fe.value!=="n/a");E.useEffect(()=>{V&&u(V)},[V]),E.useEffect(()=>{const Fe=q||K;Fe?.phase==="error"&&Fe?.error&&g(Fe.error)},[q?.phase,q?.error,K?.phase,K?.error]);const de=Fe=>{i(Fe)},De=async Fe=>(o(Fe.provider),l(Fe.modelId),{message:"Model updated successfully"}),we=async()=>{const Fe=Object.entries(c).reduce((rt,[yt,lt])=>(lt===""&&rt.push(yt),rt),[]);if(Fe.length>0){f(Fe);return}if(R){g(null),b(!1),S(""),T(!0);try{const yt={repo:R.githubUrl||`https://github.com/mastra-ai/template-${R.slug}`,ref:U,slug:R.slug,variables:c},{runId:lt}=await N({});S(lt),r(wr=>{const ur=new URLSearchParams(wr);return ur.set("runId",lt),ur.set("resume","true"),ur.set("provider",n||"openai"),ur}),await J.mutateAsync({inputData:yt,selectedModel:{provider:s,modelId:a},runId:lt})}catch(rt){T(!1),g(rt?.message||"Template installation failed"),console.error("Template installation failed",rt)}}},Ae=Fe=>{const{name:rt,value:yt}=Fe.target;yt.trim()===""?f(lt=>[...lt,rt]):f(lt=>lt.filter(wr=>wr!==rt)),u(lt=>({...lt,[rt]:yt}))};return p.jsxs($o,{children:[p.jsx(js,{children:p.jsxs(by,{children:[p.jsxs(sc,{as:an,to:"/templates",children:[p.jsx(He,{children:p.jsx(Mq,{})}),"Templates"]}),p.jsx(sc,{as:an,to:`/templates/${R?.slug}`,isCurrent:!0,children:R?.title&&R.title})]})}),p.jsx("div",{className:ie("w-full lg:px-12 h-full overflow-y-scroll"),children:p.jsxs("div",{className:"p-6 w-full max-w-[80rem] mx-auto grid gap-y-4",children:[p.jsx(z3r,{isLoading:M,title:R?.title,description:R?.longDescription,imageURL:R?.imageURL,githubUrl:R?.githubUrl,infoData:te,templateSlug:e}),R&&p.jsxs(p.Fragment,{children:[(j||ne)&&p.jsx(q3r,{name:R.title,streamResult:ne?K:q,runId:w,workflowInfo:Q}),v&&p.jsx(H3r,{name:R.title,installedEntities:ue,linkComponent:an}),m&&p.jsx(W3r,{errorMsg:m,validationErrors:P.length>0?P:q?.validationResults?.errors||K?.validationResults?.errors}),!j&&!ne&&!v&&!m&&p.jsx(B3r,{providerOptions:X,selectedProvider:n,onProviderChange:de,variables:c,setVariables:u,errors:d,setErrors:f,handleInstallTemplate:we,handleVariableChange:Ae,isLoadingEnvVars:L||F,isInstalling:I,defaultModelProvider:s,defaultModelId:a,onModelUpdate:De})]})]})})]})}const pRr=()=>{const{baseUrl:e,headers:t}=Ete();return p.jsxs($o,{children:[p.jsx(js,{children:p.jsxs(pu,{children:[p.jsx(He,{children:p.jsx(_Ze,{})}),"Settings"]})}),p.jsx(Dd,{children:p.jsx("div",{className:"p-5",children:p.jsx("div",{className:"max-w-2xl p-5 w-full bg-surface3 border border-border1 rounded-lg",children:p.jsx(Zqe,{initialConfig:{baseUrl:e,headers:t}})})})})]})},hRr={agentLink:e=>`/agents/${e}`,agentToolLink:(e,t)=>`/agents/${e}/tools/${t}`,agentsLink:()=>"/agents",agentNewThreadLink:e=>`/agents/${e}/chat/${qo()}?new=true`,agentThreadLink:(e,t,r)=>r?`/agents/${e}/chat/${t}?messageId=${r}`:`/agents/${e}/chat/${t}`,workflowsLink:()=>"/workflows",workflowLink:e=>`/workflows/${e}`,networkLink:e=>`/networks/v-next/${e}/chat`,networkNewThreadLink:e=>`/networks/v-next/${e}/chat/${qo()}`,networkThreadLink:(e,t)=>`/networks/v-next/${e}/chat/${t}`,scorerLink:e=>`/scorers/${e}`,toolLink:e=>`/tools/${e}`,mcpServerLink:e=>`/mcps/${e}`,mcpServerToolLink:(e,t)=>`/mcps/${e}/tools/${t}`,workflowRunLink:(e,t)=>`/workflows/${e}/graph/${t}`},mRr=({children:e})=>{const t=Ew(),r=n=>{t(n)};return p.jsx(EPr,{Link:Z6r,navigate:r,paths:hRr,children:e})};function gRr(){const e=window.MASTRA_STUDIO_BASE_PATH||"",{baseUrl:t,headers:r,isLoading:n}=Ete(),{isMastraPlatform:i}=qqe();return n?null:t?p.jsx(x3t,{baseUrl:t,headers:r,children:p.jsx(L6r,{children:p.jsx(jYe,{basename:e,children:p.jsx(mRr,{children:p.jsx(pYe,{children:p.jsxs(ai,{element:p.jsx(fNr,{children:p.jsx(bj,{})}),children:[i?null:p.jsxs(p.Fragment,{children:[p.jsx(ai,{path:"/settings",element:p.jsx(pRr,{})}),p.jsx(ai,{path:"/templates",element:p.jsx(uRr,{})}),p.jsx(ai,{path:"/templates/:templateSlug",element:p.jsx(fRr,{})})]}),p.jsx(ai,{path:"/scorers",element:p.jsx(q6r,{})}),p.jsx(ai,{path:"/scorers/:scorerId",element:p.jsx(H6r,{})}),p.jsx(ai,{path:"/observability",element:p.jsx(Y6r,{})}),p.jsx(ai,{path:"/agents",element:p.jsx(gNr,{})}),p.jsx(ai,{path:"/agents/:agentId",element:p.jsx(uB,{to:"/agents/:agentId/chat"})}),p.jsx(ai,{path:"/agents/:agentId/tools/:toolId",element:p.jsx(vNr,{})}),p.jsxs(ai,{path:"/agents/:agentId",element:p.jsx(hNr,{children:p.jsx(bj,{})}),children:[p.jsx(ai,{path:"chat",element:p.jsx(jxe,{})}),p.jsx(ai,{path:"chat/:threadId",element:p.jsx(jxe,{})})]}),p.jsx(ai,{path:"/tools",element:p.jsx(mNr,{})}),p.jsx(ai,{path:"/tools/:toolId",element:p.jsx(bNr,{})}),p.jsx(ai,{path:"/mcps",element:p.jsx(B6r,{})}),p.jsx(ai,{path:"/mcps/:serverId",element:p.jsx(U6r,{})}),p.jsx(ai,{path:"/mcps/:serverId/tools/:toolId",element:p.jsx(V6r,{})}),p.jsx(ai,{path:"/workflows",element:p.jsx(xNr,{})}),p.jsx(ai,{path:"/workflows/:workflowId",element:p.jsx(uB,{to:"/workflows/:workflowId/graph"})}),p.jsxs(ai,{path:"/workflows/:workflowId",element:p.jsx(SNr,{children:p.jsx(bj,{})}),children:[p.jsx(ai,{path:"/workflows/:workflowId/graph",element:p.jsx(Fxe,{})}),p.jsx(ai,{path:"/workflows/:workflowId/graph/:runId",element:p.jsx(Fxe,{})})]}),p.jsx(ai,{path:"/",element:p.jsx(uB,{to:"/agents"})}),p.jsx(ai,{path:"/request-context",element:p.jsx(z6r,{})})]})})})})})}):p.jsx(oNr,{})}function yRr(){const e=window.MASTRA_SERVER_PROTOCOL||"http",t=window.MASTRA_SERVER_HOST||"localhost",r=window.MASTRA_SERVER_PORT||4111,i=window.MASTRA_CLOUD_API_ENDPOINT||""||`${e}://${t}:${r}`;return p.jsx($4r,{children:p.jsx(X4r,{endpoint:i,children:p.jsx(gRr,{})})})}xXe.createRoot(document.getElementById("root")).render(p.jsx(E.StrictMode,{children:p.jsx(yRr,{})}));const Yjr=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));export{wQe as A,qDe as B,WDe as C,lQe as D,bc as E,z2e as F,Xc as G,bRr as H,pi as I,Qh as J,y6 as K,Gv as L,Ujr as M,ZDe as N,Fgr as O,Yjr as P,v5 as _,Tft as a,Qft as b,jae as c,gMr as d,Qv as e,zft as f,Yv as g,Uft as h,C0 as i,T0 as j,E0 as k,Hx as l,rkt as m,MPe as n,Wn as o,ESt as p,CSt as q,M3t as r,sG as s,Y as t,qG as u,$I as v,Ift as w,Qa as x,et as y,Ne as z};
|
|
571
|
+
`).reduce((a,l)=>{if(!l||l.startsWith("#"))return a;const[c,u]=l.split("=");return c&&(a[c]=u?.split("")?.every(d=>d==="*")?"":u?.replaceAll('"',"")),a},{}):{}}const tRr=()=>Ri({queryKey:["mastra-templates"],queryFn:iWe}),rRr=({repoOrSlug:e,owner:t})=>Ri({queryKey:["template-repo",e,t],queryFn:()=>K6r({repoOrSlug:e,owner:t})}),nRr=({repo:e,owner:t,branch:r})=>Ri({queryKey:["template-repo-env-vars",e,t,r],queryFn:()=>eRr({repo:e,owner:t,branch:r})}),iRr=()=>{const e=or();return Ri({queryKey:["agent-builder-workflow"],queryFn:async()=>await e.getAgentBuilderAction("merge-template").details()})},sRr=()=>{const e=or();return Pi({mutationFn:async({runId:t})=>await e.getAgentBuilderAction("merge-template").createRun({runId:t})})},oRr=()=>{const e=or();return Pi({mutationFn:async({runId:t})=>await e.getAgentBuilderAction("merge-template").runById(t)})},F1e=(e,t,r)=>{let n={...t};if(!(n.payload?.workflowState?.steps&&Object.keys(n.payload.workflowState.steps).length>0)&&r?.allSteps&&(n.payload={...n.payload,workflowState:{...n.payload?.workflowState,steps:Object.keys(r.allSteps).reduce((s,o)=>(s[o]={id:o,description:r.allSteps[o].description,status:"pending"},s),{})}}),e.type==="start"||e.type==="workflow-start"){const s={};r?.allSteps&&Object.entries(r.allSteps).forEach(([a,l])=>{s[a]={id:l.id,description:l.description,status:"pending"}});const o=e.runId||e.payload?.runId;n={...n,runId:o,eventTimestamp:new Date().toISOString(),status:"running",phase:"initializing",payload:{workflowState:{status:"running",steps:s},currentStep:null}}}if(e.type==="step-start"||e.type==="workflow-step-start"){const s=e.payload.id;n={...n,phase:"processing",payload:{...n.payload,currentStep:{id:s,status:"running",startTime:new Date,...e.payload},workflowState:{...n.payload.workflowState,steps:{...n.payload.workflowState.steps,[s]:{...n.payload.workflowState.steps[s],status:"running",startTime:new Date,...e.payload}}}}}}if(e.type==="step-result"||e.type==="workflow-step-result"){const s=e.payload.id,o=e.payload.status,a=e.payload.error;n={...n,payload:{...n.payload,currentStep:{...n.payload.currentStep,status:e.payload.status,output:e.payload.output,error:e.payload.error,endTime:new Date},workflowState:{...n.payload.workflowState,steps:{...n.payload.workflowState.steps,[s]:{...n.payload.workflowState.steps[s],status:e.payload.status,output:e.payload.output,error:e.payload.error,endTime:new Date}}}}},o==="failed"&&a&&(n={...n,status:"failed",error:a,phase:"error",failedStep:{id:s,error:a,description:e.payload.description||s},payload:{...n.payload,workflowState:{...n.payload.workflowState,status:"failed"}},errorTimestamp:new Date})}return(e.type==="step-finish"||e.type==="workflow-step-finish")&&(n={...n,payload:{...n.payload,currentStep:null}}),(e.type==="finish"||e.type==="workflow-finish")&&(n.phase==="error"||n.status==="failed"?n={...n,completedAt:new Date}:n={...n,status:e.payload.status||"completed",phase:"completed",payload:{...n.payload,currentStep:null,workflowState:{...n.payload.workflowState,status:e.payload.status||"completed"}},completedAt:new Date}),e.type==="error"&&(n={...n,status:"failed",error:e.payload.error,phase:"error",payload:{...n.payload,workflowState:{...n.payload.workflowState,status:"failed"}},errorTimestamp:new Date}),{newState:n}},aRr=(e,t)=>{try{localStorage.setItem(`template-install-${e}`,JSON.stringify({state:t,timestamp:Date.now()}))}catch(r){console.warn("Failed to save template state to localStorage:",r)}},sWe=(e,t)=>{const[r,n]=E.useState({}),[i,s]=E.useState(!1);return{streamResult:r,isStreaming:i,processStream:async(a,l)=>{if(s(!0),n({}),!a)throw new Error("No stream returned");const c=a.getReader();let u={runId:l||t,eventTimestamp:new Date().toISOString(),phase:"running",payload:{workflowState:{steps:{}},currentStep:null}};try{for(;;){const{done:d,value:f}=await c.read();if(d)break;const{newState:m}=F1e(f,u,e);if(u=m,n(m),f.runId||l||t){const g=f.runId||l||t;aRr(g,m)}}}catch(d){console.error("💥 [processStream] Error processing template installation stream:",d);const{newState:f}=F1e({type:"error",payload:{error:d instanceof Error?d.message:"Unknown error"}},u,e);n(f)}finally{s(!1),c.releaseLock()}}}},lRr=e=>{const t=or(),{streamResult:r,isStreaming:n,processStream:i}=sWe(e);return{streamInstall:Pi({mutationFn:async({inputData:o,selectedModel:a,runId:l})=>{for(let u=1;u<=3;u++)try{const d=t.getAgentBuilderAction("merge-template"),f=new rl;f.set("selectedModel",a);const m=await d.stream({inputData:o,requestContext:f},l);await i(m,l);return}catch(d){console.error(`💥 [streamInstall] Attempt ${u} failed:`,d);const f=d?.message?.includes("Failed to fetch")||d?.message?.includes("NetworkError")||d?.message?.includes("network error")||d?.message?.includes("fetch")||d?.code==="NETWORK_ERROR"||d?.name==="TypeError";if(console.warn(`Stream attempt ${u}/3 failed:`,d),f){const m=l?`Network error during template installation (likely hot reload). Please refresh the page to resume from where you left off using runId: ${l}`:"Network error during template installation (likely hot reload). Please try again.";throw console.error("🔌 Stream network error:",m),new Error(m)}throw console.error("❌ [streamInstall] Non-network error or max retries reached, throwing:",d),d}}}),streamResult:r,isStreaming:n}},cRr=e=>{const t=or(),{streamResult:r,isStreaming:n,processStream:i}=sWe(e);return{observeInstall:Pi({mutationFn:async({runId:o})=>{for(let c=1;c<=3;c++)try{const d=await t.getAgentBuilderAction("merge-template").observeStream({runId:o});await i(d,o);return}catch(u){console.error(`💥 [observeInstall] Attempt ${c} failed:`,u);const d=u?.message?.includes("Failed to fetch")||u?.message?.includes("NetworkError")||u?.message?.includes("network error")||u?.message?.includes("fetch")||u?.code==="NETWORK_ERROR"||u?.name==="TypeError";if(console.warn(`ObserveStream attempt ${c}/3 failed:`,u),d&&c<3){console.log(`🔄 ObserveStream network error detected (likely hot reload), retrying in 2000ms... (attempt ${c+1}/3)`),await new Promise(f=>setTimeout(f,2e3));continue}throw console.error("❌ [observeInstall] Non-network error or max retries reached, throwing:",u),u}}}),streamResult:r,isStreaming:n}};function uRr(){const{data:e,isLoading:t}=tRr(),{templates:r,tags:n,providers:i}=e??{templates:[],tags:[],providers:[]},[s,o]=E.useState("all"),[a,l]=E.useState("all"),[c,u]=E.useState(""),d=[{value:"all",label:"All"}];(n||[]).forEach(S=>{d.push({value:S,label:S})});const f=[{value:"all",label:"All"}];(i||[]).forEach(S=>{f.push({value:S,label:S})});const m=(S,O)=>{O==="tag"?o(S):O==="provider"&&l(S)},g=S=>{u(S)},v=()=>{o("all"),l("all"),u("")},b=r.filter(S=>!(c&&!S.title.toLowerCase().includes(c)&&!S.description.toLowerCase().includes(c)||s!=="all"&&!S.tags.includes(s)||a!=="all"&&!S.supportedProviders.includes(a))),w=c||s!=="all"||a!=="all";return p.jsxs($o,{children:[p.jsx(js,{children:p.jsxs(pu,{children:[p.jsx(He,{children:p.jsx(Mq,{})}),"Templates"]})}),p.jsxs("div",{className:ie("overflow-y-auto w-full h-full px-8 pb-12 z-10"),children:[p.jsx(j3r,{selectedTag:s,onTagChange:S=>m(S,"tag"),tagOptions:d,selectedProvider:a,onProviderChange:S=>m(S,"provider"),providerOptions:f,searchTerm:c,onSearchChange:g,onReset:w?v:void 0,className:"max-w-[80rem]",isLoading:t}),p.jsx(L3r,{templates:b,linkComponent:an,className:"max-w-[80rem] mx-auto",isLoading:t})]})]})}const dRr="1.0.0-beta.23";function fRr(){const{templateSlug:e}=Pd(),[t,r]=J4(),[n,i]=E.useState(""),[s,o]=E.useState(""),[a,l]=E.useState(""),[c,u]=E.useState({}),[d,f]=E.useState([]),[m,g]=E.useState(null),[v,b]=E.useState(!1),[w,S]=E.useState(""),[O,k]=E.useState(!1),[C,T]=E.useState(!1),[P,A]=E.useState([]),{data:R,isLoading:M}=rRr({repoOrSlug:e,owner:"mastra-ai"}),U=dRr?.includes("beta")??!1?"beta":"main",{data:V,isLoading:L}=nRr({repo:R?.githubUrl?new URL(R.githubUrl).pathname.split("/")[2]:`template-${e}`,owner:"mastra-ai",branch:U}),{data:Q,isLoading:F}=iRr(),{mutateAsync:N,isPending:I}=sRr(),{mutateAsync:H,isPending:B}=oRr(),{streamInstall:J,streamResult:q,isStreaming:j}=lRr(Q),{observeInstall:W,streamResult:K,isStreaming:ne}=cRr(Q);E.useEffect(()=>{const Fe=t.get("runId");Fe&&!v&&!m&&!j&&!ne&&(console.log("🔄 Checking completed run after hot reload:",{runId:Fe}),S(Fe),H({runId:Fe}).then(rt=>{const yt=rt.snapshot;if(yt?.status==="success"&&yt?.result?.success)b(!0);else if(yt?.result?.success===!1)if(yt?.result?.validationResults&&!yt?.result?.validationResults?.valid&&yt?.result?.validationResults?.remainingErrors>0){const{remainingErrors:wr,errors:ur}=yt.result.validationResults,le=`Template installation completed but ${wr} validation issue${wr>1?"s":""} remain unresolved.`;g(le),A(ur||[])}else g(yt?.result?.message||yt?.result?.error||"Template installation failed")}).catch(rt=>{console.error("❌ Failed to fetch run details:",rt),g("Failed to retrieve installation status after reload")}))},[t,v,m,j,ne,H]),E.useEffect(()=>{const Fe=t.get("runId"),rt=t.get("resume"),yt=t.get("provider");if(Fe&&rt==="true"&&yt&&!j&&!ne&&!O&&!C&&Q){S(Fe),k(!0);try{H({runId:Fe}).then(lt=>{if(lt.snapshot?.status==="running")return W.mutateAsync({runId:Fe})}).then(()=>{r(lt=>{const wr=new URLSearchParams(lt);return wr.delete("resume"),wr})}).catch(lt=>{console.error("❌ Failed to resume template installation:",lt),lt.message?.includes("404")||lt.message?.includes("not found")?g("Template installation run not found. It may have expired or been completed."):g("Failed to resume template installation. Please try again.")})}catch(lt){console.error("❌ Auto-resume failed with error:",lt),g("Failed to resume template installation. Please refresh and try again.")}}},[t,e,j,ne,O,C,Q,H,W,r]);const X=[{value:"openai",label:"OpenAI"},{value:"anthropic",label:"Anthropic"},{value:"groq",label:"Groq"},{value:"google",label:"Google"}],te=[{key:"tools",label:"Tools",value:R?.tools?.length?R.tools.map(Fe=>Fe).join(", "):"n/a",icon:p.jsx(wu,{})},{key:"agents",label:"Agents",value:R?.agents?.length?R.agents.map(Fe=>Fe).join(", "):"n/a",icon:p.jsx(ea,{})},{key:"workflows",label:"Workflows",value:R?.workflows?.length?R.workflows.map(Fe=>Fe).join(", "):"n/a",icon:p.jsx(mJe,{})},{key:"providers",label:"Providers",value:R?.supportedProviders?.length?R.supportedProviders.join(", "):"n/a",icon:p.jsx(tJe,{})},{key:"tags",label:"Tags",value:R?.tags?.length?R.tags.join(", "):"n/a",icon:p.jsx(pJe,{})}],ue=[{...te[0]},{...te[1]},{...te[2]}].filter(Fe=>Fe.value!=="n/a");E.useEffect(()=>{V&&u(V)},[V]),E.useEffect(()=>{const Fe=q||K;Fe?.phase==="error"&&Fe?.error&&g(Fe.error)},[q?.phase,q?.error,K?.phase,K?.error]);const de=Fe=>{i(Fe)},De=async Fe=>(o(Fe.provider),l(Fe.modelId),{message:"Model updated successfully"}),we=async()=>{const Fe=Object.entries(c).reduce((rt,[yt,lt])=>(lt===""&&rt.push(yt),rt),[]);if(Fe.length>0){f(Fe);return}if(R){g(null),b(!1),S(""),T(!0);try{const yt={repo:R.githubUrl||`https://github.com/mastra-ai/template-${R.slug}`,ref:U,slug:R.slug,variables:c},{runId:lt}=await N({});S(lt),r(wr=>{const ur=new URLSearchParams(wr);return ur.set("runId",lt),ur.set("resume","true"),ur.set("provider",n||"openai"),ur}),await J.mutateAsync({inputData:yt,selectedModel:{provider:s,modelId:a},runId:lt})}catch(rt){T(!1),g(rt?.message||"Template installation failed"),console.error("Template installation failed",rt)}}},Ae=Fe=>{const{name:rt,value:yt}=Fe.target;yt.trim()===""?f(lt=>[...lt,rt]):f(lt=>lt.filter(wr=>wr!==rt)),u(lt=>({...lt,[rt]:yt}))};return p.jsxs($o,{children:[p.jsx(js,{children:p.jsxs(by,{children:[p.jsxs(sc,{as:an,to:"/templates",children:[p.jsx(He,{children:p.jsx(Mq,{})}),"Templates"]}),p.jsx(sc,{as:an,to:`/templates/${R?.slug}`,isCurrent:!0,children:R?.title&&R.title})]})}),p.jsx("div",{className:ie("w-full lg:px-12 h-full overflow-y-scroll"),children:p.jsxs("div",{className:"p-6 w-full max-w-[80rem] mx-auto grid gap-y-4",children:[p.jsx(z3r,{isLoading:M,title:R?.title,description:R?.longDescription,imageURL:R?.imageURL,githubUrl:R?.githubUrl,infoData:te,templateSlug:e}),R&&p.jsxs(p.Fragment,{children:[(j||ne)&&p.jsx(q3r,{name:R.title,streamResult:ne?K:q,runId:w,workflowInfo:Q}),v&&p.jsx(H3r,{name:R.title,installedEntities:ue,linkComponent:an}),m&&p.jsx(W3r,{errorMsg:m,validationErrors:P.length>0?P:q?.validationResults?.errors||K?.validationResults?.errors}),!j&&!ne&&!v&&!m&&p.jsx(B3r,{providerOptions:X,selectedProvider:n,onProviderChange:de,variables:c,setVariables:u,errors:d,setErrors:f,handleInstallTemplate:we,handleVariableChange:Ae,isLoadingEnvVars:L||F,isInstalling:I,defaultModelProvider:s,defaultModelId:a,onModelUpdate:De})]})]})})]})}const pRr=()=>{const{baseUrl:e,headers:t}=Ete();return p.jsxs($o,{children:[p.jsx(js,{children:p.jsxs(pu,{children:[p.jsx(He,{children:p.jsx(_Ze,{})}),"Settings"]})}),p.jsx(Dd,{children:p.jsx("div",{className:"p-5",children:p.jsx("div",{className:"max-w-2xl p-5 w-full bg-surface3 border border-border1 rounded-lg",children:p.jsx(Zqe,{initialConfig:{baseUrl:e,headers:t}})})})})]})},hRr={agentLink:e=>`/agents/${e}`,agentToolLink:(e,t)=>`/agents/${e}/tools/${t}`,agentsLink:()=>"/agents",agentNewThreadLink:e=>`/agents/${e}/chat/${qo()}?new=true`,agentThreadLink:(e,t,r)=>r?`/agents/${e}/chat/${t}?messageId=${r}`:`/agents/${e}/chat/${t}`,workflowsLink:()=>"/workflows",workflowLink:e=>`/workflows/${e}`,networkLink:e=>`/networks/v-next/${e}/chat`,networkNewThreadLink:e=>`/networks/v-next/${e}/chat/${qo()}`,networkThreadLink:(e,t)=>`/networks/v-next/${e}/chat/${t}`,scorerLink:e=>`/scorers/${e}`,toolLink:e=>`/tools/${e}`,mcpServerLink:e=>`/mcps/${e}`,mcpServerToolLink:(e,t)=>`/mcps/${e}/tools/${t}`,workflowRunLink:(e,t)=>`/workflows/${e}/graph/${t}`},mRr=({children:e})=>{const t=Ew(),r=n=>{t(n)};return p.jsx(EPr,{Link:Z6r,navigate:r,paths:hRr,children:e})};function gRr(){const e=window.MASTRA_STUDIO_BASE_PATH||"",{baseUrl:t,headers:r,isLoading:n}=Ete(),{isMastraPlatform:i}=qqe();return n?null:t?p.jsx(x3t,{baseUrl:t,headers:r,children:p.jsx(L6r,{children:p.jsx(jYe,{basename:e,children:p.jsx(mRr,{children:p.jsx(pYe,{children:p.jsxs(ai,{element:p.jsx(fNr,{children:p.jsx(bj,{})}),children:[i?null:p.jsxs(p.Fragment,{children:[p.jsx(ai,{path:"/settings",element:p.jsx(pRr,{})}),p.jsx(ai,{path:"/templates",element:p.jsx(uRr,{})}),p.jsx(ai,{path:"/templates/:templateSlug",element:p.jsx(fRr,{})})]}),p.jsx(ai,{path:"/scorers",element:p.jsx(q6r,{})}),p.jsx(ai,{path:"/scorers/:scorerId",element:p.jsx(H6r,{})}),p.jsx(ai,{path:"/observability",element:p.jsx(Y6r,{})}),p.jsx(ai,{path:"/agents",element:p.jsx(gNr,{})}),p.jsx(ai,{path:"/agents/:agentId",element:p.jsx(uB,{to:"/agents/:agentId/chat"})}),p.jsx(ai,{path:"/agents/:agentId/tools/:toolId",element:p.jsx(vNr,{})}),p.jsxs(ai,{path:"/agents/:agentId",element:p.jsx(hNr,{children:p.jsx(bj,{})}),children:[p.jsx(ai,{path:"chat",element:p.jsx(jxe,{})}),p.jsx(ai,{path:"chat/:threadId",element:p.jsx(jxe,{})})]}),p.jsx(ai,{path:"/tools",element:p.jsx(mNr,{})}),p.jsx(ai,{path:"/tools/:toolId",element:p.jsx(bNr,{})}),p.jsx(ai,{path:"/mcps",element:p.jsx(B6r,{})}),p.jsx(ai,{path:"/mcps/:serverId",element:p.jsx(U6r,{})}),p.jsx(ai,{path:"/mcps/:serverId/tools/:toolId",element:p.jsx(V6r,{})}),p.jsx(ai,{path:"/workflows",element:p.jsx(xNr,{})}),p.jsx(ai,{path:"/workflows/:workflowId",element:p.jsx(uB,{to:"/workflows/:workflowId/graph"})}),p.jsxs(ai,{path:"/workflows/:workflowId",element:p.jsx(SNr,{children:p.jsx(bj,{})}),children:[p.jsx(ai,{path:"/workflows/:workflowId/graph",element:p.jsx(Fxe,{})}),p.jsx(ai,{path:"/workflows/:workflowId/graph/:runId",element:p.jsx(Fxe,{})})]}),p.jsx(ai,{path:"/",element:p.jsx(uB,{to:"/agents"})}),p.jsx(ai,{path:"/request-context",element:p.jsx(z6r,{})})]})})})})})}):p.jsx(oNr,{})}function yRr(){const e=window.MASTRA_SERVER_PROTOCOL||"http",t=window.MASTRA_SERVER_HOST||"localhost",r=window.MASTRA_SERVER_PORT||4111,i=window.MASTRA_CLOUD_API_ENDPOINT||""||`${e}://${t}:${r}`;return p.jsx($4r,{children:p.jsx(X4r,{endpoint:i,children:p.jsx(gRr,{})})})}xXe.createRoot(document.getElementById("root")).render(p.jsx(E.StrictMode,{children:p.jsx(yRr,{})}));const Yjr=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));export{wQe as A,qDe as B,WDe as C,lQe as D,bc as E,z2e as F,Xc as G,bRr as H,pi as I,Qh as J,y6 as K,Gv as L,Ujr as M,ZDe as N,Fgr as O,Yjr as P,v5 as _,Tft as a,Qft as b,jae as c,gMr as d,Qv as e,zft as f,Yv as g,Uft as h,C0 as i,T0 as j,E0 as k,Hx as l,rkt as m,MPe as n,Wn as o,ESt as p,CSt as q,M3t as r,sG as s,Y as t,qG as u,$I as v,Ift as w,Qa as x,et as y,Ne as z};
|