From a2a8e7a18406469f452e465eb2af87936a80c56a Mon Sep 17 00:00:00 2001 From: Falko Schindler Date: Fri, 30 Aug 2024 15:14:52 +0200 Subject: [PATCH] restore accidentally removed codemirror dependencies --- nicegui/elements/lib/codemirror/apl-CXdQSnD-.js | 1 + nicegui/elements/lib/codemirror/asciiarmor-D5V0T9Cu.js | 1 + nicegui/elements/lib/codemirror/asn1-BhA3SgW2.js | 1 + nicegui/elements/lib/codemirror/asterisk-B46aRdXb.js | 1 + nicegui/elements/lib/codemirror/brainfuck-CtZaYBKt.js | 1 + nicegui/elements/lib/codemirror/clike-BPCXT8V3.js | 1 + nicegui/elements/lib/codemirror/clojure-DR_hEDJv.js | 1 + nicegui/elements/lib/codemirror/cmake-DXn5xaP-.js | 1 + nicegui/elements/lib/codemirror/cobol-DJhTY0fG.js | 1 + nicegui/elements/lib/codemirror/coffeescript-BTDxI-eT.js | 1 + nicegui/elements/lib/codemirror/commonlisp-vq6DHwts.js | 1 + nicegui/elements/lib/codemirror/crystal-CRzZ78HM.js | 1 + nicegui/elements/lib/codemirror/css-ZjFoif2m.js | 1 + nicegui/elements/lib/codemirror/cypher-gJDei3ni.js | 1 + nicegui/elements/lib/codemirror/d-BShv7fp-.js | 1 + nicegui/elements/lib/codemirror/diff-UJJ5BM9S.js | 1 + nicegui/elements/lib/codemirror/dockerfile-DbSFhNEh.js | 1 + nicegui/elements/lib/codemirror/dtd-DI9Herc-.js | 1 + nicegui/elements/lib/codemirror/dylan-CHJ5qNM_.js | 1 + nicegui/elements/lib/codemirror/ebnf-B-Df8AvO.js | 1 + nicegui/elements/lib/codemirror/ecl-DPFc0Uaf.js | 1 + nicegui/elements/lib/codemirror/editor-DzvLhhiW.js | 1 + nicegui/elements/lib/codemirror/editor.js | 1 + nicegui/elements/lib/codemirror/eiffel-DR5c0IrL.js | 1 + nicegui/elements/lib/codemirror/elm-D7xaZ7Da.js | 1 + nicegui/elements/lib/codemirror/erlang-BuqgqA5h.js | 1 + nicegui/elements/lib/codemirror/factor-D9hSz2Dc.js | 1 + nicegui/elements/lib/codemirror/fcl-CVaBTCzQ.js | 1 + nicegui/elements/lib/codemirror/forth-Dri_5nFc.js | 1 + nicegui/elements/lib/codemirror/fortran-DL7KluxX.js | 1 + nicegui/elements/lib/codemirror/gas-5kEe4nk0.js | 1 + nicegui/elements/lib/codemirror/gherkin-B6X1vGSW.js | 1 + nicegui/elements/lib/codemirror/groovy-BfRUB6GO.js | 1 + nicegui/elements/lib/codemirror/haskell-CmdsSjFB.js | 1 + nicegui/elements/lib/codemirror/haxe-75PMBtaN.js | 1 + nicegui/elements/lib/codemirror/http-BKJkqRj4.js | 1 + nicegui/elements/lib/codemirror/idl-pcmmZuaN.js | 1 + nicegui/elements/lib/codemirror/index-B7tHWccP.js | 1 + nicegui/elements/lib/codemirror/index-BJiyyGqZ.js | 1 + nicegui/elements/lib/codemirror/index-BL_t_ntH.js | 1 + nicegui/elements/lib/codemirror/index-BTAxP3mB.js | 1 + nicegui/elements/lib/codemirror/index-C4TeAHpL.js | 1 + nicegui/elements/lib/codemirror/index-CB606nqP.js | 1 + nicegui/elements/lib/codemirror/index-CG3aUV_L.js | 1 + nicegui/elements/lib/codemirror/index-CJB1zGqD.js | 1 + nicegui/elements/lib/codemirror/index-CJhLK3a1.js | 1 + nicegui/elements/lib/codemirror/index-CUN-L9uH.js | 1 + nicegui/elements/lib/codemirror/index-CYWhQqFb.js | 1 + nicegui/elements/lib/codemirror/index-CgEMB2FB.js | 1 + nicegui/elements/lib/codemirror/index-Ckjrdmtm.js | 1 + nicegui/elements/lib/codemirror/index-Ctywxs9F.js | 1 + nicegui/elements/lib/codemirror/index-CvY89YCL.js | 1 + nicegui/elements/lib/codemirror/index-D6K4mE4a.js | 1 + nicegui/elements/lib/codemirror/index-DHm9fpZm.js | 1 + nicegui/elements/lib/codemirror/index-DWxkS7ff.js | 1 + nicegui/elements/lib/codemirror/index-GtIxIVFm.js | 1 + nicegui/elements/lib/codemirror/index-NkaBMccj.js | 1 + nicegui/elements/lib/codemirror/index-anbJ5y0U.js | 1 + nicegui/elements/lib/codemirror/javascript-CQRKPXEM.js | 1 + nicegui/elements/lib/codemirror/jinja2-DhgKlfW7.js | 1 + nicegui/elements/lib/codemirror/julia-DjdwvFuI.js | 1 + nicegui/elements/lib/codemirror/livescript-B19OIWEP.js | 1 + nicegui/elements/lib/codemirror/lua-8DXOpKDz.js | 1 + nicegui/elements/lib/codemirror/mathematica-IIbmv7SK.js | 1 + nicegui/elements/lib/codemirror/mbox-z_N2Mo3d.js | 1 + nicegui/elements/lib/codemirror/mirc-DkvFAiy5.js | 1 + nicegui/elements/lib/codemirror/mllike-B8DYu8SS.js | 1 + nicegui/elements/lib/codemirror/modelica-DSrSSXCg.js | 1 + nicegui/elements/lib/codemirror/mscgen-B2igx18G.js | 1 + nicegui/elements/lib/codemirror/mumps-zvxmGV4l.js | 1 + nicegui/elements/lib/codemirror/nginx-B4hAVlXN.js | 1 + nicegui/elements/lib/codemirror/nsis-CKXvuz-E.js | 1 + nicegui/elements/lib/codemirror/ntriples-FFvkTduk.js | 1 + nicegui/elements/lib/codemirror/octave-C4hdQ5Hf.js | 1 + nicegui/elements/lib/codemirror/oz-qQq7irPq.js | 1 + nicegui/elements/lib/codemirror/pascal-CZ0JYm71.js | 1 + nicegui/elements/lib/codemirror/perl-tdMlh9QA.js | 1 + nicegui/elements/lib/codemirror/pig-CwGJVRC4.js | 1 + nicegui/elements/lib/codemirror/powershell-D1ly3AHC.js | 1 + nicegui/elements/lib/codemirror/properties-_nPj978X.js | 1 + nicegui/elements/lib/codemirror/protobuf-B4y9do6W.js | 1 + nicegui/elements/lib/codemirror/pug-Zmekp7TD.js | 1 + nicegui/elements/lib/codemirror/puppet-Bc-yJKzi.js | 1 + nicegui/elements/lib/codemirror/python-DD-Q2bae.js | 1 + nicegui/elements/lib/codemirror/q-B0kTJ4cI.js | 1 + nicegui/elements/lib/codemirror/r-BA4EbLKE.js | 1 + nicegui/elements/lib/codemirror/rpm-DI_rRufH.js | 1 + nicegui/elements/lib/codemirror/ruby-CR-u2WLS.js | 1 + nicegui/elements/lib/codemirror/sas-Bqaci40L.js | 1 + nicegui/elements/lib/codemirror/scheme-qjP0V5Ag.js | 1 + nicegui/elements/lib/codemirror/shell-BLav31RL.js | 1 + nicegui/elements/lib/codemirror/sieve-r025o_jW.js | 1 + nicegui/elements/lib/codemirror/simple-mode-VRHOsiuL.js | 1 + nicegui/elements/lib/codemirror/smalltalk-C7J3IyEP.js | 1 + nicegui/elements/lib/codemirror/solr-78MBEUkU.js | 1 + nicegui/elements/lib/codemirror/sparql-BRLJFz69.js | 1 + nicegui/elements/lib/codemirror/spreadsheet-CGlWr0eM.js | 1 + nicegui/elements/lib/codemirror/sql-BP5jFf-w.js | 1 + nicegui/elements/lib/codemirror/stex-Ba7Sj9VR.js | 1 + nicegui/elements/lib/codemirror/stylus-3mOX9C7I.js | 1 + nicegui/elements/lib/codemirror/swift-Cbprqdc8.js | 1 + nicegui/elements/lib/codemirror/tcl-B2fODqDH.js | 1 + nicegui/elements/lib/codemirror/textile-BuVhTOzU.js | 1 + nicegui/elements/lib/codemirror/tiddlywiki-BgR6AEZu.js | 1 + nicegui/elements/lib/codemirror/tiki-CI-ztowC.js | 1 + nicegui/elements/lib/codemirror/toml-BQXy8elZ.js | 1 + nicegui/elements/lib/codemirror/troff-Ce85hlLp.js | 1 + nicegui/elements/lib/codemirror/ttcn-C4reStyN.js | 1 + nicegui/elements/lib/codemirror/ttcn-cfg-Ce4xWtqN.js | 1 + nicegui/elements/lib/codemirror/turtle-BkSuIpt-.js | 1 + nicegui/elements/lib/codemirror/vb-coDLL1b7.js | 1 + nicegui/elements/lib/codemirror/vbscript-MdTt_wcJ.js | 1 + nicegui/elements/lib/codemirror/velocity-BdD_26Jv.js | 1 + nicegui/elements/lib/codemirror/verilog-B4LBqg_1.js | 1 + nicegui/elements/lib/codemirror/vhdl-BRDI21CQ.js | 1 + nicegui/elements/lib/codemirror/webidl-CGwyPRYs.js | 1 + nicegui/elements/lib/codemirror/xquery-BZBLoTvf.js | 1 + nicegui/elements/lib/codemirror/yacas-I8QjZlxf.js | 1 + nicegui/elements/lib/codemirror/z80-D8p3gKXp.js | 1 + 119 files changed, 119 insertions(+) create mode 100644 nicegui/elements/lib/codemirror/apl-CXdQSnD-.js create mode 100644 nicegui/elements/lib/codemirror/asciiarmor-D5V0T9Cu.js create mode 100644 nicegui/elements/lib/codemirror/asn1-BhA3SgW2.js create mode 100644 nicegui/elements/lib/codemirror/asterisk-B46aRdXb.js create mode 100644 nicegui/elements/lib/codemirror/brainfuck-CtZaYBKt.js create mode 100644 nicegui/elements/lib/codemirror/clike-BPCXT8V3.js create mode 100644 nicegui/elements/lib/codemirror/clojure-DR_hEDJv.js create mode 100644 nicegui/elements/lib/codemirror/cmake-DXn5xaP-.js create mode 100644 nicegui/elements/lib/codemirror/cobol-DJhTY0fG.js create mode 100644 nicegui/elements/lib/codemirror/coffeescript-BTDxI-eT.js create mode 100644 nicegui/elements/lib/codemirror/commonlisp-vq6DHwts.js create mode 100644 nicegui/elements/lib/codemirror/crystal-CRzZ78HM.js create mode 100644 nicegui/elements/lib/codemirror/css-ZjFoif2m.js create mode 100644 nicegui/elements/lib/codemirror/cypher-gJDei3ni.js create mode 100644 nicegui/elements/lib/codemirror/d-BShv7fp-.js create mode 100644 nicegui/elements/lib/codemirror/diff-UJJ5BM9S.js create mode 100644 nicegui/elements/lib/codemirror/dockerfile-DbSFhNEh.js create mode 100644 nicegui/elements/lib/codemirror/dtd-DI9Herc-.js create mode 100644 nicegui/elements/lib/codemirror/dylan-CHJ5qNM_.js create mode 100644 nicegui/elements/lib/codemirror/ebnf-B-Df8AvO.js create mode 100644 nicegui/elements/lib/codemirror/ecl-DPFc0Uaf.js create mode 100644 nicegui/elements/lib/codemirror/editor-DzvLhhiW.js create mode 100644 nicegui/elements/lib/codemirror/editor.js create mode 100644 nicegui/elements/lib/codemirror/eiffel-DR5c0IrL.js create mode 100644 nicegui/elements/lib/codemirror/elm-D7xaZ7Da.js create mode 100644 nicegui/elements/lib/codemirror/erlang-BuqgqA5h.js create mode 100644 nicegui/elements/lib/codemirror/factor-D9hSz2Dc.js create mode 100644 nicegui/elements/lib/codemirror/fcl-CVaBTCzQ.js create mode 100644 nicegui/elements/lib/codemirror/forth-Dri_5nFc.js create mode 100644 nicegui/elements/lib/codemirror/fortran-DL7KluxX.js create mode 100644 nicegui/elements/lib/codemirror/gas-5kEe4nk0.js create mode 100644 nicegui/elements/lib/codemirror/gherkin-B6X1vGSW.js create mode 100644 nicegui/elements/lib/codemirror/groovy-BfRUB6GO.js create mode 100644 nicegui/elements/lib/codemirror/haskell-CmdsSjFB.js create mode 100644 nicegui/elements/lib/codemirror/haxe-75PMBtaN.js create mode 100644 nicegui/elements/lib/codemirror/http-BKJkqRj4.js create mode 100644 nicegui/elements/lib/codemirror/idl-pcmmZuaN.js create mode 100644 nicegui/elements/lib/codemirror/index-B7tHWccP.js create mode 100644 nicegui/elements/lib/codemirror/index-BJiyyGqZ.js create mode 100644 nicegui/elements/lib/codemirror/index-BL_t_ntH.js create mode 100644 nicegui/elements/lib/codemirror/index-BTAxP3mB.js create mode 100644 nicegui/elements/lib/codemirror/index-C4TeAHpL.js create mode 100644 nicegui/elements/lib/codemirror/index-CB606nqP.js create mode 100644 nicegui/elements/lib/codemirror/index-CG3aUV_L.js create mode 100644 nicegui/elements/lib/codemirror/index-CJB1zGqD.js create mode 100644 nicegui/elements/lib/codemirror/index-CJhLK3a1.js create mode 100644 nicegui/elements/lib/codemirror/index-CUN-L9uH.js create mode 100644 nicegui/elements/lib/codemirror/index-CYWhQqFb.js create mode 100644 nicegui/elements/lib/codemirror/index-CgEMB2FB.js create mode 100644 nicegui/elements/lib/codemirror/index-Ckjrdmtm.js create mode 100644 nicegui/elements/lib/codemirror/index-Ctywxs9F.js create mode 100644 nicegui/elements/lib/codemirror/index-CvY89YCL.js create mode 100644 nicegui/elements/lib/codemirror/index-D6K4mE4a.js create mode 100644 nicegui/elements/lib/codemirror/index-DHm9fpZm.js create mode 100644 nicegui/elements/lib/codemirror/index-DWxkS7ff.js create mode 100644 nicegui/elements/lib/codemirror/index-GtIxIVFm.js create mode 100644 nicegui/elements/lib/codemirror/index-NkaBMccj.js create mode 100644 nicegui/elements/lib/codemirror/index-anbJ5y0U.js create mode 100644 nicegui/elements/lib/codemirror/javascript-CQRKPXEM.js create mode 100644 nicegui/elements/lib/codemirror/jinja2-DhgKlfW7.js create mode 100644 nicegui/elements/lib/codemirror/julia-DjdwvFuI.js create mode 100644 nicegui/elements/lib/codemirror/livescript-B19OIWEP.js create mode 100644 nicegui/elements/lib/codemirror/lua-8DXOpKDz.js create mode 100644 nicegui/elements/lib/codemirror/mathematica-IIbmv7SK.js create mode 100644 nicegui/elements/lib/codemirror/mbox-z_N2Mo3d.js create mode 100644 nicegui/elements/lib/codemirror/mirc-DkvFAiy5.js create mode 100644 nicegui/elements/lib/codemirror/mllike-B8DYu8SS.js create mode 100644 nicegui/elements/lib/codemirror/modelica-DSrSSXCg.js create mode 100644 nicegui/elements/lib/codemirror/mscgen-B2igx18G.js create mode 100644 nicegui/elements/lib/codemirror/mumps-zvxmGV4l.js create mode 100644 nicegui/elements/lib/codemirror/nginx-B4hAVlXN.js create mode 100644 nicegui/elements/lib/codemirror/nsis-CKXvuz-E.js create mode 100644 nicegui/elements/lib/codemirror/ntriples-FFvkTduk.js create mode 100644 nicegui/elements/lib/codemirror/octave-C4hdQ5Hf.js create mode 100644 nicegui/elements/lib/codemirror/oz-qQq7irPq.js create mode 100644 nicegui/elements/lib/codemirror/pascal-CZ0JYm71.js create mode 100644 nicegui/elements/lib/codemirror/perl-tdMlh9QA.js create mode 100644 nicegui/elements/lib/codemirror/pig-CwGJVRC4.js create mode 100644 nicegui/elements/lib/codemirror/powershell-D1ly3AHC.js create mode 100644 nicegui/elements/lib/codemirror/properties-_nPj978X.js create mode 100644 nicegui/elements/lib/codemirror/protobuf-B4y9do6W.js create mode 100644 nicegui/elements/lib/codemirror/pug-Zmekp7TD.js create mode 100644 nicegui/elements/lib/codemirror/puppet-Bc-yJKzi.js create mode 100644 nicegui/elements/lib/codemirror/python-DD-Q2bae.js create mode 100644 nicegui/elements/lib/codemirror/q-B0kTJ4cI.js create mode 100644 nicegui/elements/lib/codemirror/r-BA4EbLKE.js create mode 100644 nicegui/elements/lib/codemirror/rpm-DI_rRufH.js create mode 100644 nicegui/elements/lib/codemirror/ruby-CR-u2WLS.js create mode 100644 nicegui/elements/lib/codemirror/sas-Bqaci40L.js create mode 100644 nicegui/elements/lib/codemirror/scheme-qjP0V5Ag.js create mode 100644 nicegui/elements/lib/codemirror/shell-BLav31RL.js create mode 100644 nicegui/elements/lib/codemirror/sieve-r025o_jW.js create mode 100644 nicegui/elements/lib/codemirror/simple-mode-VRHOsiuL.js create mode 100644 nicegui/elements/lib/codemirror/smalltalk-C7J3IyEP.js create mode 100644 nicegui/elements/lib/codemirror/solr-78MBEUkU.js create mode 100644 nicegui/elements/lib/codemirror/sparql-BRLJFz69.js create mode 100644 nicegui/elements/lib/codemirror/spreadsheet-CGlWr0eM.js create mode 100644 nicegui/elements/lib/codemirror/sql-BP5jFf-w.js create mode 100644 nicegui/elements/lib/codemirror/stex-Ba7Sj9VR.js create mode 100644 nicegui/elements/lib/codemirror/stylus-3mOX9C7I.js create mode 100644 nicegui/elements/lib/codemirror/swift-Cbprqdc8.js create mode 100644 nicegui/elements/lib/codemirror/tcl-B2fODqDH.js create mode 100644 nicegui/elements/lib/codemirror/textile-BuVhTOzU.js create mode 100644 nicegui/elements/lib/codemirror/tiddlywiki-BgR6AEZu.js create mode 100644 nicegui/elements/lib/codemirror/tiki-CI-ztowC.js create mode 100644 nicegui/elements/lib/codemirror/toml-BQXy8elZ.js create mode 100644 nicegui/elements/lib/codemirror/troff-Ce85hlLp.js create mode 100644 nicegui/elements/lib/codemirror/ttcn-C4reStyN.js create mode 100644 nicegui/elements/lib/codemirror/ttcn-cfg-Ce4xWtqN.js create mode 100644 nicegui/elements/lib/codemirror/turtle-BkSuIpt-.js create mode 100644 nicegui/elements/lib/codemirror/vb-coDLL1b7.js create mode 100644 nicegui/elements/lib/codemirror/vbscript-MdTt_wcJ.js create mode 100644 nicegui/elements/lib/codemirror/velocity-BdD_26Jv.js create mode 100644 nicegui/elements/lib/codemirror/verilog-B4LBqg_1.js create mode 100644 nicegui/elements/lib/codemirror/vhdl-BRDI21CQ.js create mode 100644 nicegui/elements/lib/codemirror/webidl-CGwyPRYs.js create mode 100644 nicegui/elements/lib/codemirror/xquery-BZBLoTvf.js create mode 100644 nicegui/elements/lib/codemirror/yacas-I8QjZlxf.js create mode 100644 nicegui/elements/lib/codemirror/z80-D8p3gKXp.js diff --git a/nicegui/elements/lib/codemirror/apl-CXdQSnD-.js b/nicegui/elements/lib/codemirror/apl-CXdQSnD-.js new file mode 100644 index 000000000..324781042 --- /dev/null +++ b/nicegui/elements/lib/codemirror/apl-CXdQSnD-.js @@ -0,0 +1 @@ +var e={"+":["conjugate","add"],"−":["negate","subtract"],"×":["signOf","multiply"],"÷":["reciprocal","divide"],"⌈":["ceiling","greaterOf"],"⌊":["floor","lesserOf"],"∣":["absolute","residue"],"⍳":["indexGenerate","indexOf"],"?":["roll","deal"],"⋆":["exponentiate","toThePowerOf"],"⍟":["naturalLog","logToTheBase"],"○":["piTimes","circularFuncs"],"!":["factorial","binomial"],"⌹":["matrixInverse","matrixDivide"],"<":[null,"lessThan"],"≤":[null,"lessThanOrEqual"],"=":[null,"equals"],">":[null,"greaterThan"],"≥":[null,"greaterThanOrEqual"],"≠":[null,"notEqual"],"≡":["depth","match"],"≢":[null,"notMatch"],"∈":["enlist","membership"],"⍷":[null,"find"],"∪":["unique","union"],"∩":[null,"intersection"],"∼":["not","without"],"∨":[null,"or"],"∧":[null,"and"],"⍱":[null,"nor"],"⍲":[null,"nand"],"⍴":["shapeOf","reshape"],",":["ravel","catenate"],"⍪":[null,"firstAxisCatenate"],"⌽":["reverse","rotate"],"⊖":["axis1Reverse","axis1Rotate"],"⍉":["transpose",null],"↑":["first","take"],"↓":[null,"drop"],"⊂":["enclose","partitionWithAxis"],"⊃":["diclose","pick"],"⌷":[null,"index"],"⍋":["gradeUp",null],"⍒":["gradeDown",null],"⊤":["encode",null],"⊥":["decode",null],"⍕":["format","formatByExample"],"⍎":["execute",null],"⊣":["stop","left"],"⊢":["pass","right"]},n=/[\.\/⌿⍀¨⍣]/,t=/⍬/,l=/[\+−×÷⌈⌊∣⍳\?⋆⍟○!⌹<≤=>≥≠≡≢∈⍷∪∩∼∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⌷⍋⍒⊤⊥⍕⍎⊣⊢]/,a=/←/,r=/[⍝#].*$/;const i={name:"apl",startState:function(){return{prev:!1,func:!1,op:!1,string:!1,escape:!1}},token:function(i,u){var o,s,c;return i.eatSpace()?null:'"'===(o=i.next())||"'"===o?(i.eatWhile((s=o,c=!1,function(e){return c=e,e!==s||"\\"===c})),i.next(),u.prev=!0,"string"):/[\[{\(]/.test(o)?(u.prev=!1,null):/[\]}\)]/.test(o)?(u.prev=!0,null):t.test(o)?(u.prev=!1,"atom"):/[¯\d]/.test(o)?(u.func?(u.func=!1,u.prev=!1):u.prev=!0,i.eatWhile(/[\w\.]/),"number"):n.test(o)||a.test(o)?"operator":l.test(o)?(u.func=!0,u.prev=!1,e[o]?"variableName.function.standard":"variableName.function"):r.test(o)?(i.skipToEnd(),"comment"):"∘"===o&&"."===i.peek()?(i.next(),"variableName.function"):(i.eatWhile(/[\w\$_]/),u.prev=!0,"keyword")}};export{i as apl}; diff --git a/nicegui/elements/lib/codemirror/asciiarmor-D5V0T9Cu.js b/nicegui/elements/lib/codemirror/asciiarmor-D5V0T9Cu.js new file mode 100644 index 000000000..c83f396af --- /dev/null +++ b/nicegui/elements/lib/codemirror/asciiarmor-D5V0T9Cu.js @@ -0,0 +1 @@ +function t(t){var e=t.match(/^\s*\S/);return t.skipToEnd(),e?"error":null}const e={name:"asciiarmor",token:function(e,a){var r;if("top"==a.state)return e.sol()&&(r=e.match(/^-----BEGIN (.*)?-----\s*$/))?(a.state="headers",a.type=r[1],"tag"):t(e);if("headers"==a.state){if(e.sol()&&e.match(/^\w+:/))return a.state="header","atom";var s=t(e);return s&&(a.state="body"),s}return"header"==a.state?(e.skipToEnd(),a.state="headers","string"):"body"==a.state?e.sol()&&(r=e.match(/^-----END (.*)?-----\s*$/))?r[1]!=a.type?"error":(a.state="end","tag"):e.eatWhile(/[A-Za-z0-9+\/=]/)?null:(e.next(),"error"):"end"==a.state?t(e):void 0},blankLine:function(t){"headers"==t.state&&(t.state="body")},startState:function(){return{state:"top",type:null}}};export{e as asciiArmor}; diff --git a/nicegui/elements/lib/codemirror/asn1-BhA3SgW2.js b/nicegui/elements/lib/codemirror/asn1-BhA3SgW2.js new file mode 100644 index 000000000..ae7cbdc25 --- /dev/null +++ b/nicegui/elements/lib/codemirror/asn1-BhA3SgW2.js @@ -0,0 +1 @@ +function e(e){for(var t={},n=e.split(" "),r=0;r?$/.test(r)?(i.extenExten=!0,i.extenStart=!1,"strong"):(i.extenStart=!1,a.skipToEnd(),"error")):i.extenExten?(i.extenExten=!1,i.extenPriority=!0,a.eatWhile(/[^,]/),i.extenInclude&&(a.skipToEnd(),i.extenPriority=!1,i.extenInclude=!1),i.extenSame&&(i.extenPriority=!1,i.extenSame=!1,i.extenApplication=!0),"tag"):i.extenPriority?(i.extenPriority=!1,i.extenApplication=!0,a.next(),i.extenSame?null:(a.eatWhile(/[^,]/),"number")):i.extenApplication?(a.eatWhile(/,/),","===(r=a.current())?null:(a.eatWhile(/\w/),r=a.current().toLowerCase(),i.extenApplication=!1,-1!==n.indexOf(r)?"def":null)):function(n,a){var i="",r=n.next();if(a.blockComment)return"-"==r&&n.match("-;",!0)?a.blockComment=!1:n.skipTo("--;")?(n.next(),n.next(),n.next(),a.blockComment=!1):n.skipToEnd(),"comment";if(";"==r)return n.match("--",!0)&&!n.match("-",!1)?(a.blockComment=!0,"comment"):(n.skipToEnd(),"comment");if("["==r)return n.skipTo("]"),n.eat("]"),"header";if('"'==r)return n.skipTo('"'),"string";if("'"==r)return n.skipTo("'"),"string.special";if("#"==r&&(n.eatWhile(/\w/),i=n.current(),-1!==t.indexOf(i)))return n.skipToEnd(),"strong";if("$"==r&&"{"==n.peek())return n.skipTo("}"),n.eat("}"),"variableName.special";if(n.eatWhile(/\w/),i=n.current(),-1!==e.indexOf(i)){switch(a.extenStart=!0,i){case"same":a.extenSame=!0;break;case"include":case"switch":case"ignorepat":a.extenInclude=!0}return"atom"}}(a,i)},languageData:{commentTokens:{line:";",block:{open:";--",close:"--;"}}}};export{a as asterisk}; diff --git a/nicegui/elements/lib/codemirror/brainfuck-CtZaYBKt.js b/nicegui/elements/lib/codemirror/brainfuck-CtZaYBKt.js new file mode 100644 index 000000000..6b1f74a3e --- /dev/null +++ b/nicegui/elements/lib/codemirror/brainfuck-CtZaYBKt.js @@ -0,0 +1 @@ +var e="><+-.,[]".split("");const t={name:"brainfuck",startState:function(){return{commentLine:!1,left:0,right:0,commentLoop:!1}},token:function(t,n){if(t.eatSpace())return null;t.sol()&&(n.commentLine=!1);var o=t.next().toString();return-1===e.indexOf(o)?(n.commentLine=!0,t.eol()&&(n.commentLine=!1),"comment"):!0===n.commentLine?(t.eol()&&(n.commentLine=!1),"comment"):"]"===o||"["===o?("["===o?n.left++:n.right++,"bracket"):"+"===o||"-"===o?"keyword":"<"===o||">"===o?"atom":"."===o||","===o?"def":void(t.eol()&&(n.commentLine=!1))}};export{t as brainfuck}; diff --git a/nicegui/elements/lib/codemirror/clike-BPCXT8V3.js b/nicegui/elements/lib/codemirror/clike-BPCXT8V3.js new file mode 100644 index 000000000..4cf258057 --- /dev/null +++ b/nicegui/elements/lib/codemirror/clike-BPCXT8V3.js @@ -0,0 +1 @@ +function e(e,t,n,r,a,o){this.indented=e,this.column=t,this.type=n,this.info=r,this.align=a,this.prev=o}function t(t,n,r,a){var o=t.indented;return t.context&&"statement"==t.context.type&&"statement"!=r&&(o=t.context.indented),t.context=new e(o,n,r,a,null,t.context)}function n(e){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}function r(e,t,n){return"variable"==t.prevToken||"type"==t.prevToken||(!!/\S(?:[^- ]>|[*\]])\s*$|\*$/.test(e.string.slice(0,n))||(!(!t.typeAtEndOfLine||e.column()!=e.indentation())||void 0))}function a(e){for(;;){if(!e||"top"==e.type)return!0;if("}"==e.type&&"namespace"!=e.prev.info)return!1;e=e.prev}}function o(o){var i,s,c=o.statementIndentUnit,u=o.dontAlignCalls,d=o.keywords||{},f=o.types||{},p=o.builtin||{},m=o.blockKeywords||{},h=o.defKeywords||{},y=o.atoms||{},g=o.hooks||{},k=o.multiLineStrings,b=!1!==o.indentStatements,v=!1!==o.indentSwitch,w=o.namespaceSeparator,_=o.isPunctuationChar||/[\[\]{}\(\),;\:\.]/,x=o.numberStart||/[\d\.]/,S=o.number||/^(?:0x[a-f\d]+|0b[01]+|(?:\d+\.?\d*|\.\d+)(?:e[-+]?\d+)?)(u|ll?|l|f)?/i,T=o.isOperatorChar||/[+\-*&%=<>!?|\/]/,N=o.isIdentifierChar||/[\w\$_\xa1-\uffff]/,I=o.isReservedIdentifier||!1;function D(e,t){var n,r=e.next();if(g[r]){var a=g[r](e,t);if(!1!==a)return a}if('"'==r||"'"==r)return t.tokenize=(n=r,function(e,t){for(var r,a=!1,o=!1;null!=(r=e.next());){if(r==n&&!a){o=!0;break}a=!a&&"\\"==r}return(o||!a&&!k)&&(t.tokenize=null),"string"}),t.tokenize(e,t);if(x.test(r)){if(e.backUp(1),e.match(S))return"number";e.next()}if(_.test(r))return i=r,null;if("/"==r){if(e.eat("*"))return t.tokenize=C,C(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}if(T.test(r)){for(;!e.match(/^\/[\/*]/,!1)&&e.eat(T););return"operator"}if(e.eatWhile(N),w)for(;e.match(w);)e.eatWhile(N);var o=e.current();return l(d,o)?(l(m,o)&&(i="newstatement"),l(h,o)&&(s=!0),"keyword"):l(f,o)?"type":l(p,o)||I&&I(o)?(l(m,o)&&(i="newstatement"),"builtin"):l(y,o)?"atom":"variable"}function C(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=null;break}r="*"==n}return"comment"}function z(e,t){o.typeFirstDefinitions&&e.eol()&&a(t.context)&&(t.typeAtEndOfLine=r(e,t,e.pos))}return{name:o.name,startState:function(t){return{tokenize:null,context:new e(-t,0,"top",null,!1),indented:0,startOfLine:!0,prevToken:null}},token:function(e,l){var c=l.context;if(e.sol()&&(null==c.align&&(c.align=!1),l.indented=e.indentation(),l.startOfLine=!0),e.eatSpace())return z(e,l),null;i=s=null;var u=(l.tokenize||D)(e,l);if("comment"==u||"meta"==u)return u;if(null==c.align&&(c.align=!0),";"==i||":"==i||","==i&&e.match(/^\s*(?:\/\/.*)?$/,!1))for(;"statement"==l.context.type;)n(l);else if("{"==i)t(l,e.column(),"}");else if("["==i)t(l,e.column(),"]");else if("("==i)t(l,e.column(),")");else if("}"==i){for(;"statement"==c.type;)c=n(l);for("}"==c.type&&(c=n(l));"statement"==c.type;)c=n(l)}else i==c.type?n(l):b&&(("}"==c.type||"top"==c.type)&&";"!=i||"statement"==c.type&&"newstatement"==i)&&t(l,e.column(),"statement",e.current());if("variable"==u&&("def"==l.prevToken||o.typeFirstDefinitions&&r(e,l,e.start)&&a(l.context)&&e.match(/^\s*\(/,!1))&&(u="def"),g.token){var d=g.token(e,l,u);void 0!==d&&(u=d)}return"def"==u&&!1===o.styleDefs&&(u="variable"),l.startOfLine=!1,l.prevToken=s?"def":u||i,z(e,l),u},indent:function(e,t,n){if(e.tokenize!=D&&null!=e.tokenize||e.typeAtEndOfLine&&a(e.context))return null;var r=e.context,i=t&&t.charAt(0),l=i==r.type;if("statement"==r.type&&"}"==i&&(r=r.prev),o.dontIndentStatements)for(;"statement"==r.type&&o.dontIndentStatements.test(r.info);)r=r.prev;if(g.indent){var s=g.indent(e,r,t,n.unit);if("number"==typeof s)return s}var d=r.prev&&"switch"==r.prev.info;if(o.allmanIndentation&&/[{(]/.test(i)){for(;"top"!=r.type&&"}"!=r.type;)r=r.prev;return r.indented}return"statement"==r.type?r.indented+("{"==i?0:c||n.unit):!r.align||u&&")"==r.type?")"!=r.type||l?r.indented+(l?0:n.unit)+(l||!d||/^(?:case|default)\b/.test(t)?0:n.unit):r.indented+(c||n.unit):r.column+(l?0:1)},languageData:{indentOnInput:v?/^\s*(?:case .*?:|default:|\{\}?|\})$/:/^\s*[{}]$/,commentTokens:{line:"//",block:{open:"/*",close:"*/"}},autocomplete:Object.keys(d).concat(Object.keys(f)).concat(Object.keys(p)).concat(Object.keys(y)),...o.languageData}}}function i(e){for(var t={},n=e.split(" "),r=0;r!?|\/#:@]/,hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},'"':function(e,t){return!!e.match('""')&&(t.tokenize=z,t.tokenize(e,t))},"'":function(e){return e.match(/^(\\[^'\s]+|[^\\'])'/)?"character":(e.eatWhile(/[\w\$_\xa1-\uffff]/),"atom")},"=":function(t,n){var r=n.context;return!("}"!=r.type||!r.align||!t.eat(">"))&&(n.context=new e(r.indented,r.column,r.type,r.info,null,r.prev),"operator")},"/":function(e,t){return!!e.eat("*")&&(t.tokenize=L(1),t.tokenize(e,t))}},languageData:{closeBrackets:{brackets:["(","[","{","'",'"','"""']}}});const E=o({name:"kotlin",keywords:i("package as typealias class interface this super val operator var fun for is in This throw return annotation break continue object if else while do try when !in !is as? file import where by get set abstract enum open inner override private public internal protected catch finally out final vararg reified dynamic companion constructor init sealed field property receiver param sparam lateinit data inline noinline tailrec external annotation crossinline const operator infix suspend actual expect setparam"),types:i("Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void Annotation Any BooleanArray ByteArray Char CharArray DeprecationLevel DoubleArray Enum FloatArray Function Int IntArray Lazy LazyThreadSafetyMode LongArray Nothing ShortArray Unit"),intendSwitch:!1,indentStatements:!1,multiLineStrings:!0,number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+(\.\d+)?|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,blockKeywords:i("catch class do else finally for if where try while enum"),defKeywords:i("class val var object interface fun"),atoms:i("true false null this"),hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},"*":function(e,t){return"."==t.prevToken?"variable":"operator"},'"':function(e,t){var n;return t.tokenize=(n=e.match('""'),function(e,t){for(var r,a=!1,o=!1;!e.eol();){if(!n&&!a&&e.match('"')){o=!0;break}if(n&&e.match('"""')){o=!0;break}r=e.next(),!a&&"$"==r&&e.match("{")&&e.skipTo("}"),a=!a&&"\\"==r&&!n}return!o&&n||(t.tokenize=null),"string"}),t.tokenize(e,t)},"/":function(e,t){return!!e.eat("*")&&(t.tokenize=L(1),t.tokenize(e,t))},indent:function(e,t,n,r){var a=n&&n.charAt(0);return"}"!=e.prevToken&&")"!=e.prevToken||""!=n?"operator"==e.prevToken&&"}"!=n&&"}"!=e.context.type||"variable"==e.prevToken&&"."==a||("}"==e.prevToken||")"==e.prevToken)&&"."==a?2*r+t.indented:t.align&&"}"==t.type?t.indented+(e.context.type==(n||"").charAt(0)?0:r):void 0:e.indented}},languageData:{closeBrackets:{brackets:["(","[","{","'",'"','"""']}}}),F=o({name:"shader",keywords:i("sampler1D sampler2D sampler3D samplerCube sampler1DShadow sampler2DShadow const attribute uniform varying break continue discard return for while do if else struct in out inout"),types:i("float int bool void vec2 vec3 vec4 ivec2 ivec3 ivec4 bvec2 bvec3 bvec4 mat2 mat3 mat4"),blockKeywords:i("for while do if else struct"),builtin:i("radians degrees sin cos tan asin acos atan pow exp log exp2 sqrt inversesqrt abs sign floor ceil fract mod min max clamp mix step smoothstep length distance dot cross normalize ftransform faceforward reflect refract matrixCompMult lessThan lessThanEqual greaterThan greaterThanEqual equal notEqual any all not texture1D texture1DProj texture1DLod texture1DProjLod texture2D texture2DProj texture2DLod texture2DProjLod texture3D texture3DProj texture3DLod texture3DProjLod textureCube textureCubeLod shadow1D shadow2D shadow1DProj shadow2DProj shadow1DLod shadow2DLod shadow1DProjLod shadow2DProjLod dFdx dFdy fwidth noise1 noise2 noise3 noise4"),atoms:i("true false gl_FragColor gl_SecondaryColor gl_Normal gl_Vertex gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_FogCoord gl_PointCoord gl_Position gl_PointSize gl_ClipVertex gl_FrontColor gl_BackColor gl_FrontSecondaryColor gl_BackSecondaryColor gl_TexCoord gl_FogFragCoord gl_FragCoord gl_FrontFacing gl_FragData gl_FragDepth gl_ModelViewMatrix gl_ProjectionMatrix gl_ModelViewProjectionMatrix gl_TextureMatrix gl_NormalMatrix gl_ModelViewMatrixInverse gl_ProjectionMatrixInverse gl_ModelViewProjectionMatrixInverse gl_TextureMatrixTranspose gl_ModelViewMatrixInverseTranspose gl_ProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixInverseTranspose gl_TextureMatrixInverseTranspose gl_NormalScale gl_DepthRange gl_ClipPlane gl_Point gl_FrontMaterial gl_BackMaterial gl_LightSource gl_LightModel gl_FrontLightModelProduct gl_BackLightModelProduct gl_TextureColor gl_EyePlaneS gl_EyePlaneT gl_EyePlaneR gl_EyePlaneQ gl_FogParameters gl_MaxLights gl_MaxClipPlanes gl_MaxTextureUnits gl_MaxTextureCoords gl_MaxVertexAttribs gl_MaxVertexUniformComponents gl_MaxVaryingFloats gl_MaxVertexTextureImageUnits gl_MaxTextureImageUnits gl_MaxFragmentUniformComponents gl_MaxCombineTextureImageUnits gl_MaxDrawBuffers"),indentSwitch:!1,hooks:{"#":k}}),P=o({name:"nesc",keywords:i(s+" as atomic async call command component components configuration event generic implementation includes interface module new norace nx_struct nx_union post provides signal task uses abstract extends"),types:m,blockKeywords:i(y),atoms:i("null true false"),hooks:{"#":k}}),R=o({name:"objectivec",keywords:i(s+" "+u),types:h,builtin:i(d),blockKeywords:i(y+" @synthesize @try @catch @finally @autoreleasepool @synchronized"),defKeywords:i(g+" @interface @implementation @protocol @class"),dontIndentStatements:/^@.*$/,typeFirstDefinitions:!0,atoms:i("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:v,hooks:{"#":k,"*":b}}),O=o({name:"objectivecpp",keywords:i(s+" "+u+" "+c),types:h,builtin:i(d),blockKeywords:i(y+" @synthesize @try @catch @finally @autoreleasepool @synchronized class try catch"),defKeywords:i(g+" @interface @implementation @protocol @class class namespace"),dontIndentStatements:/^@.*$|^template$/,typeFirstDefinitions:!0,atoms:i("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:v,hooks:{"#":k,"*":b,u:_,U:_,L:_,R:_,0:w,1:w,2:w,3:w,4:w,5:w,6:w,7:w,8:w,9:w,token:function(e,t,n){if("variable"==n&&"("==e.peek()&&(";"==t.prevToken||null==t.prevToken||"}"==t.prevToken)&&x(e.current()))return"def"}},namespaceSeparator:"::"}),A=o({name:"squirrel",keywords:i("base break clone continue const default delete enum extends function in class foreach local resume return this throw typeof yield constructor instanceof static"),types:m,blockKeywords:i("case catch class else for foreach if switch try while"),defKeywords:i("function local class"),typeFirstDefinitions:!0,atoms:i("true false null"),hooks:{"#":k}});var j=null;function U(e){return function(t,n){for(var r,a=!1,o=!1;!t.eol();){if(!a&&t.match('"')&&("single"==e||t.match('""'))){o=!0;break}if(!a&&t.match("``")){j=U(e),o=!0;break}r=t.next(),a="single"==e&&!a&&"\\"==r}return o&&(n.tokenize=null),"string"}}const $=o({name:"ceylon",keywords:i("abstracts alias assembly assert assign break case catch class continue dynamic else exists extends finally for function given if import in interface is let module new nonempty object of out outer package return satisfies super switch then this throw try value void while"),types:function(e){var t=e.charAt(0);return t===t.toUpperCase()&&t!==t.toLowerCase()},blockKeywords:i("case catch class dynamic else finally for function if interface module new object switch try while"),defKeywords:i("class dynamic function interface module object package value"),builtin:i("abstract actual aliased annotation by default deprecated doc final formal late license native optional sealed see serializable shared suppressWarnings tagged throws variable"),isPunctuationChar:/[\[\]{}\(\),;\:\.`]/,isOperatorChar:/[+\-*&%=<>!?|^~:\/]/,numberStart:/[\d#$]/,number:/^(?:#[\da-fA-F_]+|\$[01_]+|[\d_]+[kMGTPmunpf]?|[\d_]+\.[\d_]+(?:[eE][-+]?\d+|[kMGTPmunpf]|)|)/i,multiLineStrings:!0,typeFirstDefinitions:!0,atoms:i("true false null larger smaller equal empty finished"),indentSwitch:!1,styleDefs:!1,hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},'"':function(e,t){return t.tokenize=U(e.match('""')?"triple":"single"),t.tokenize(e,t)},"`":function(e,t){return!(!j||!e.match("`"))&&(t.tokenize=j,j=null,t.tokenize(e,t))},"'":function(e){return e.match(/^(\\[^'\s]+|[^\\'])'/)?"string.special":(e.eatWhile(/[\w\$_\xa1-\uffff]/),"atom")},token:function(e,t,n){if(("variable"==n||"type"==n)&&"."==t.prevToken)return"variableName.special"}},languageData:{closeBrackets:{brackets:["(","[","{","'",'"','"""']}}});function B(e){(e.interpolationStack||(e.interpolationStack=[])).push(e.tokenize)}function K(e){return(e.interpolationStack||(e.interpolationStack=[])).pop()}function q(e,t,n,r){var a=!1;if(t.eat(e)){if(!t.eat(e))return"string";a=!0}function o(t,n){for(var o=!1;!t.eol();){if(!r&&!o&&"$"==t.peek())return B(n),n.tokenize=V,"string";var i=t.next();if(i==e&&!o&&(!a||t.match(e+e))){n.tokenize=null;break}o=!r&&!o&&"\\"==i}return"string"}return n.tokenize=o,o(t,n)}function V(e,t){return e.eat("$"),e.eat("{")?t.tokenize=null:t.tokenize=W,null}function W(e,t){return e.eatWhile(/[\w_]/),t.tokenize=K(t),"variable"}const G=o({name:"dart",keywords:i("this super static final const abstract class extends external factory implements mixin get native set typedef with enum throw rethrow assert break case continue default in return new deferred async await covariant try catch finally do else for if switch while import library export part of show hide is as extension on yield late required sealed base interface when inline"),blockKeywords:i("try catch finally do else for if switch while"),builtin:i("void bool num int double dynamic var String Null Never"),atoms:i("true false null"),hooks:{"@":function(e){return e.eatWhile(/[\w\$_\.]/),"meta"},"'":function(e,t){return q("'",e,t,!1)},'"':function(e,t){return q('"',e,t,!1)},r:function(e,t){var n=e.peek();return("'"==n||'"'==n)&&q(e.next(),e,t,!0)},"}":function(e,t){return function(e){return e.interpolationStack?e.interpolationStack.length:0}(t)>0&&(t.tokenize=K(t),null)},"/":function(e,t){return!!e.eat("*")&&(t.tokenize=L(1),t.tokenize(e,t))},token:function(e,t,n){if("variable"==n&&RegExp("^[_$]*[A-Z][a-zA-Z0-9_$]*$","g").test(e.current()))return"type"}}});export{N as c,$ as ceylon,o as clike,I as cpp,C as csharp,G as dart,D as java,E as kotlin,P as nesC,R as objectiveC,O as objectiveCpp,M as scala,F as shader,A as squirrel}; diff --git a/nicegui/elements/lib/codemirror/clojure-DR_hEDJv.js b/nicegui/elements/lib/codemirror/clojure-DR_hEDJv.js new file mode 100644 index 000000000..5c5618282 --- /dev/null +++ b/nicegui/elements/lib/codemirror/clojure-DR_hEDJv.js @@ -0,0 +1 @@ +var e=["false","nil","true"],t=[".","catch","def","do","if","monitor-enter","monitor-exit","new","quote","recur","set!","throw","try","var"],n=["*","*'","*1","*2","*3","*agent*","*allow-unresolved-vars*","*assert*","*clojure-version*","*command-line-args*","*compile-files*","*compile-path*","*compiler-options*","*data-readers*","*default-data-reader-fn*","*e","*err*","*file*","*flush-on-newline*","*fn-loader*","*in*","*math-context*","*ns*","*out*","*print-dup*","*print-length*","*print-level*","*print-meta*","*print-namespace-maps*","*print-readably*","*read-eval*","*reader-resolver*","*source-path*","*suppress-read*","*unchecked-math*","*use-context-classloader*","*verbose-defrecords*","*warn-on-reflection*","+","+'","-","-'","->","->>","->ArrayChunk","->Eduction","->Vec","->VecNode","->VecSeq","-cache-protocol-fn","-reset-methods","..","/","<","<=","=","==",">",">=","EMPTY-NODE","Inst","StackTraceElement->vec","Throwable->map","accessor","aclone","add-classpath","add-watch","agent","agent-error","agent-errors","aget","alength","alias","all-ns","alter","alter-meta!","alter-var-root","amap","ancestors","and","any?","apply","areduce","array-map","as->","aset","aset-boolean","aset-byte","aset-char","aset-double","aset-float","aset-int","aset-long","aset-short","assert","assoc","assoc!","assoc-in","associative?","atom","await","await-for","await1","bases","bean","bigdec","bigint","biginteger","binding","bit-and","bit-and-not","bit-clear","bit-flip","bit-not","bit-or","bit-set","bit-shift-left","bit-shift-right","bit-test","bit-xor","boolean","boolean-array","boolean?","booleans","bound-fn","bound-fn*","bound?","bounded-count","butlast","byte","byte-array","bytes","bytes?","case","cast","cat","char","char-array","char-escape-string","char-name-string","char?","chars","chunk","chunk-append","chunk-buffer","chunk-cons","chunk-first","chunk-next","chunk-rest","chunked-seq?","class","class?","clear-agent-errors","clojure-version","coll?","comment","commute","comp","comparator","compare","compare-and-set!","compile","complement","completing","concat","cond","cond->","cond->>","condp","conj","conj!","cons","constantly","construct-proxy","contains?","count","counted?","create-ns","create-struct","cycle","dec","dec'","decimal?","declare","dedupe","default-data-readers","definline","definterface","defmacro","defmethod","defmulti","defn","defn-","defonce","defprotocol","defrecord","defstruct","deftype","delay","delay?","deliver","denominator","deref","derive","descendants","destructure","disj","disj!","dissoc","dissoc!","distinct","distinct?","doall","dorun","doseq","dosync","dotimes","doto","double","double-array","double?","doubles","drop","drop-last","drop-while","eduction","empty","empty?","ensure","ensure-reduced","enumeration-seq","error-handler","error-mode","eval","even?","every-pred","every?","ex-data","ex-info","extend","extend-protocol","extend-type","extenders","extends?","false?","ffirst","file-seq","filter","filterv","find","find-keyword","find-ns","find-protocol-impl","find-protocol-method","find-var","first","flatten","float","float-array","float?","floats","flush","fn","fn?","fnext","fnil","for","force","format","frequencies","future","future-call","future-cancel","future-cancelled?","future-done?","future?","gen-class","gen-interface","gensym","get","get-in","get-method","get-proxy-class","get-thread-bindings","get-validator","group-by","halt-when","hash","hash-combine","hash-map","hash-ordered-coll","hash-set","hash-unordered-coll","ident?","identical?","identity","if-let","if-not","if-some","ifn?","import","in-ns","inc","inc'","indexed?","init-proxy","inst-ms","inst-ms*","inst?","instance?","int","int-array","int?","integer?","interleave","intern","interpose","into","into-array","ints","io!","isa?","iterate","iterator-seq","juxt","keep","keep-indexed","key","keys","keyword","keyword?","last","lazy-cat","lazy-seq","let","letfn","line-seq","list","list*","list?","load","load-file","load-reader","load-string","loaded-libs","locking","long","long-array","longs","loop","macroexpand","macroexpand-1","make-array","make-hierarchy","map","map-entry?","map-indexed","map?","mapcat","mapv","max","max-key","memfn","memoize","merge","merge-with","meta","method-sig","methods","min","min-key","mix-collection-hash","mod","munge","name","namespace","namespace-munge","nat-int?","neg-int?","neg?","newline","next","nfirst","nil?","nnext","not","not-any?","not-empty","not-every?","not=","ns","ns-aliases","ns-imports","ns-interns","ns-map","ns-name","ns-publics","ns-refers","ns-resolve","ns-unalias","ns-unmap","nth","nthnext","nthrest","num","number?","numerator","object-array","odd?","or","parents","partial","partition","partition-all","partition-by","pcalls","peek","persistent!","pmap","pop","pop!","pop-thread-bindings","pos-int?","pos?","pr","pr-str","prefer-method","prefers","primitives-classnames","print","print-ctor","print-dup","print-method","print-simple","print-str","printf","println","println-str","prn","prn-str","promise","proxy","proxy-call-with-super","proxy-mappings","proxy-name","proxy-super","push-thread-bindings","pvalues","qualified-ident?","qualified-keyword?","qualified-symbol?","quot","rand","rand-int","rand-nth","random-sample","range","ratio?","rational?","rationalize","re-find","re-groups","re-matcher","re-matches","re-pattern","re-seq","read","read-line","read-string","reader-conditional","reader-conditional?","realized?","record?","reduce","reduce-kv","reduced","reduced?","reductions","ref","ref-history-count","ref-max-history","ref-min-history","ref-set","refer","refer-clojure","reify","release-pending-sends","rem","remove","remove-all-methods","remove-method","remove-ns","remove-watch","repeat","repeatedly","replace","replicate","require","reset!","reset-meta!","reset-vals!","resolve","rest","restart-agent","resultset-seq","reverse","reversible?","rseq","rsubseq","run!","satisfies?","second","select-keys","send","send-off","send-via","seq","seq?","seqable?","seque","sequence","sequential?","set","set-agent-send-executor!","set-agent-send-off-executor!","set-error-handler!","set-error-mode!","set-validator!","set?","short","short-array","shorts","shuffle","shutdown-agents","simple-ident?","simple-keyword?","simple-symbol?","slurp","some","some->","some->>","some-fn","some?","sort","sort-by","sorted-map","sorted-map-by","sorted-set","sorted-set-by","sorted?","special-symbol?","spit","split-at","split-with","str","string?","struct","struct-map","subs","subseq","subvec","supers","swap!","swap-vals!","symbol","symbol?","sync","tagged-literal","tagged-literal?","take","take-last","take-nth","take-while","test","the-ns","thread-bound?","time","to-array","to-array-2d","trampoline","transduce","transient","tree-seq","true?","type","unchecked-add","unchecked-add-int","unchecked-byte","unchecked-char","unchecked-dec","unchecked-dec-int","unchecked-divide-int","unchecked-double","unchecked-float","unchecked-inc","unchecked-inc-int","unchecked-int","unchecked-long","unchecked-multiply","unchecked-multiply-int","unchecked-negate","unchecked-negate-int","unchecked-remainder-int","unchecked-short","unchecked-subtract","unchecked-subtract-int","underive","unquote","unquote-splicing","unreduced","unsigned-bit-shift-right","update","update-in","update-proxy","uri?","use","uuid?","val","vals","var-get","var-set","var?","vary-meta","vec","vector","vector-of","vector?","volatile!","volatile?","vreset!","vswap!","when","when-first","when-let","when-not","when-some","while","with-bindings","with-bindings*","with-in-str","with-loading-context","with-local-vars","with-meta","with-open","with-out-str","with-precision","with-redefs","with-redefs-fn","xml-seq","zero?","zipmap"],r=f(e),a=f(t),o=f(n),s=f(["->","->>","as->","binding","bound-fn","case","catch","comment","cond","cond->","cond->>","condp","def","definterface","defmethod","defn","defmacro","defprotocol","defrecord","defstruct","deftype","do","doseq","dotimes","doto","extend","extend-protocol","extend-type","fn","for","future","if","if-let","if-not","if-some","let","letfn","locking","loop","ns","proxy","reify","struct-map","some->","some->>","try","when","when-first","when-let","when-not","when-some","while","with-bindings","with-bindings*","with-in-str","with-loading-context","with-local-vars","with-meta","with-open","with-out-str","with-precision","with-redefs","with-redefs-fn"]),i=/^(?:[\\\[\]\s"(),;@^`{}~]|$)/,c=/^(?:[+\-]?\d+(?:(?:N|(?:[eE][+\-]?\d+))|(?:\.?\d*(?:M|(?:[eE][+\-]?\d+))?)|\/\d+|[xX][0-9a-fA-F]+|r[0-9a-zA-Z]+)?(?=[\\\[\]\s"#'(),;@^`{}~]|$))/,d=/^(?:\\(?:backspace|formfeed|newline|return|space|tab|o[0-7]{3}|u[0-9A-Fa-f]{4}|x[0-9A-Fa-f]{4}|.)?(?=[\\\[\]\s"(),;@^`{}~]|$))/,l=/^(?:(?:[^\\\/\[\]\d\s"#'(),;@^`{}~.][^\\\[\]\s"(),;@^`{}~.\/]*(?:\.[^\\\/\[\]\d\s"#'(),;@^`{}~.][^\\\[\]\s"(),;@^`{}~.\/]*)*\/)?(?:\/|[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*)*(?=[\\\[\]\s"(),;@^`{}~]|$))/;function u(e,t){if(e.eatSpace()||e.eat(","))return["space",null];if(e.match(c))return[null,"number"];if(e.match(d))return[null,"string.special"];if(e.eat(/^"/))return(t.tokenize=p)(e,t);if(e.eat(/^[(\[{]/))return["open","bracket"];if(e.eat(/^[)\]}]/))return["close","bracket"];if(e.eat(/^;/))return e.skipToEnd(),["space","comment"];if(e.eat(/^[#'@^`~]/))return[null,"meta"];var n=e.match(l),s=n&&n[0];return s?"comment"===s&&"("===t.lastToken?(t.tokenize=m)(e,t):h(s,r)||":"===s.charAt(0)?["symbol","atom"]:h(s,a)||h(s,o)?["symbol","keyword"]:"("===t.lastToken?["symbol","builtin"]:["symbol","variable"]:(e.next(),e.eatWhile((function(e){return!h(e,i)})),[null,"error"])}function p(e,t){for(var n,r=!1;n=e.next();){if('"'===n&&!r){t.tokenize=u;break}r=!r&&"\\"===n}return[null,"string"]}function m(e,t){for(var n,r=1;n=e.next();)if(")"===n&&r--,"("===n&&r++,0===r){e.backUp(1),t.tokenize=u;break}return["space","comment"]}function f(e){for(var t={},n=0;n >= "),O={digit:/\d/,digit_or_colon:/[\d:]/,hex:/[0-9a-f]/i,sign:/[+-]/,exponent:/e/i,keyword_char:/[^\s\(\[\;\)\]]/,symbol:/[\w*+\-]/};const C={name:"cobol",startState:function(){return{indentStack:null,indentation:0,mode:!1}},token:function(I,C){if(null==C.indentStack&&I.sol()&&(C.indentation=6),I.eatSpace())return null;var L=null;if("string"===C.mode){for(var D=!1;null!=(D=I.next());)if(('"'==D||"'"==D)&&!I.match(/['"]/,!1)){C.mode=!1;break}L=E}else{var S=I.next(),U=I.column();if(U>=0&&U<=5)L="def";else if(U>=72&&U<=79)I.skipToEnd(),L="header";else if("*"==S&&6==U)I.skipToEnd(),L="comment";else if('"'==S||"'"==S)C.mode="string",L=E;else if("'"!=S||O.digit_or_colon.test(I.peek()))if("."==S)L="link";else if(function(E,T){return"0"===E&&T.eat(/x/i)?(T.eatWhile(O.hex),!0):("+"!=E&&"-"!=E||!O.digit.test(T.peek())||(T.eat(O.sign),E=T.next()),!!O.digit.test(E)&&(T.eat(E),T.eatWhile(O.digit),"."==T.peek()&&(T.eat("."),T.eatWhile(O.digit)),T.eat(O.exponent)&&(T.eat(O.sign),T.eatWhile(O.digit)),!0))}(S,I))L="number";else{if(I.current().match(O.symbol))for(;U<71&&void 0!==I.eat(O.symbol);)U++;L=R&&R.propertyIsEnumerable(I.current().toUpperCase())?"keyword":A&&A.propertyIsEnumerable(I.current().toUpperCase())?"builtin":N&&N.propertyIsEnumerable(I.current().toUpperCase())?T:null}else L=T}return L},indent:function(E){return null==E.indentStack?E.indentation:E.indentStack.indent}};export{C as cobol}; diff --git a/nicegui/elements/lib/codemirror/coffeescript-BTDxI-eT.js b/nicegui/elements/lib/codemirror/coffeescript-BTDxI-eT.js new file mode 100644 index 000000000..1163fd975 --- /dev/null +++ b/nicegui/elements/lib/codemirror/coffeescript-BTDxI-eT.js @@ -0,0 +1 @@ +var e="error";function t(e){return new RegExp("^(("+e.join(")|(")+"))\\b")}var n=/^(?:->|=>|\+[+=]?|-[\-=]?|\*[\*=]?|\/[\/=]?|[=!]=|<[><]?=?|>>?=?|%=?|&=?|\|=?|\^=?|\~|!|\?|(or|and|\|\||&&|\?)=)/,r=/^(?:[()\[\]{},:`=;]|\.\.?\.?)/,o=/^[_A-Za-z$][_A-Za-z$0-9]*/,c=/^@[_A-Za-z$][_A-Za-z$0-9]*/,i=t(["and","or","not","is","isnt","in","instanceof","typeof"]),a=["for","while","loop","if","unless","else","switch","try","catch","finally","class"],f=t(a.concat(["break","by","continue","debugger","delete","do","in","of","new","return","then","this","@","throw","when","until","extends"]));a=t(a);var p=/^('{3}|\"{3}|['\"])/,s=/^(\/{3}|\/)/,u=t(["Infinity","NaN","undefined","null","true","false","on","off","yes","no"]);function l(t,a){if(t.sol()){null===a.scope.align&&(a.scope.align=!1);var l=a.scope.offset;if(t.eatSpace()){var h=t.indentation();return h>l&&"coffee"==a.scope.type?"indent":h0&&v(t,a)}if(t.eatSpace())return null;var k=t.peek();if(t.match("####"))return t.skipToEnd(),"comment";if(t.match("###"))return a.tokenize=m,a.tokenize(t,a);if("#"===k)return t.skipToEnd(),"comment";if(t.match(/^-?[0-9\.]/,!1)){var g=!1;if(t.match(/^-?\d*\.\d+(e[\+\-]?\d+)?/i)&&(g=!0),t.match(/^-?\d+\.\d*/)&&(g=!0),t.match(/^-?\.\d+/)&&(g=!0),g)return"."==t.peek()&&t.backUp(1),"number";var y=!1;if(t.match(/^-?0x[0-9a-f]+/i)&&(y=!0),t.match(/^-?[1-9]\d*(e[\+\-]?\d+)?/)&&(y=!0),t.match(/^-?0(?![\dx])/i)&&(y=!0),y)return"number"}if(t.match(p))return a.tokenize=d(t.current(),!1,"string"),a.tokenize(t,a);if(t.match(s)){if("/"!=t.current()||t.match(/^.*\//,!1))return a.tokenize=d(t.current(),!0,"string.special"),a.tokenize(t,a);t.backUp(1)}return t.match(n)||t.match(i)?"operator":t.match(r)?"punctuation":t.match(u)?"atom":t.match(c)||a.prop&&t.match(o)?"property":t.match(f)?"keyword":t.match(o)?"variable":(t.next(),e)}function d(e,t,n){return function(r,o){for(;!r.eol();)if(r.eatWhile(/[^'"\/\\]/),r.eat("\\")){if(r.next(),t&&r.eol())return n}else{if(r.match(e))return o.tokenize=l,n;r.eat(/['"\/]/)}return t&&(o.tokenize=l),n}}function m(e,t){for(;!e.eol();){if(e.eatWhile(/[^#]/),e.match("###")){t.tokenize=l;break}e.eatWhile("#")}return"comment"}function h(e,t,n="coffee"){for(var r=0,o=!1,c=null,i=t.scope;i;i=i.prev)if("coffee"===i.type||"}"==i.type){r=i.offset+e.indentUnit;break}"coffee"!==n?(o=null,c=e.column()+e.current().length):t.scope.align&&(t.scope.align=!1),t.scope={offset:r,type:n,prev:t.scope,align:o,alignOffset:c}}function v(e,t){if(t.scope.prev){if("coffee"===t.scope.type){for(var n=e.indentation(),r=!1,o=t.scope;o;o=o.prev)if(n===o.offset){r=!0;break}if(!r)return!0;for(;t.scope.prev&&t.scope.offset!==n;)t.scope=t.scope.prev;return!1}return t.scope=t.scope.prev,!1}}const k={name:"coffeescript",startState:function(){return{tokenize:l,scope:{offset:0,type:"coffee",prev:null,align:!1},prop:!1,dedent:0}},token:function(t,n){var r=null===n.scope.align&&n.scope;r&&t.sol()&&(r.align=!1);var o=function(t,n){var r=n.tokenize(t,n),o=t.current();"return"===o&&(n.dedent=!0),(("->"===o||"=>"===o)&&t.eol()||"indent"===r)&&h(t,n);var c="[({".indexOf(o);if(-1!==c&&h(t,n,"])}".slice(c,c+1)),a.exec(o)&&h(t,n),"then"==o&&v(t,n),"dedent"===r&&v(t,n))return e;if(-1!==(c="])}".indexOf(o))){for(;"coffee"==n.scope.type&&n.scope.prev;)n.scope=n.scope.prev;n.scope.type==o&&(n.scope=n.scope.prev)}return n.dedent&&t.eol()&&("coffee"==n.scope.type&&n.scope.prev&&(n.scope=n.scope.prev),n.dedent=!1),"indent"==r||"dedent"==r?null:r}(t,n);return o&&"comment"!=o&&(r&&(r.align=!0),n.prop="punctuation"==o&&"."==t.current()),o},indent:function(e,t){if(e.tokenize!=l)return 0;var n=e.scope,r=t&&"])}".indexOf(t.charAt(0))>-1;if(r)for(;"coffee"==n.type&&n.prev;)n=n.prev;var o=r&&n.type===t.charAt(0);return n.align?n.alignOffset-(o?1:0):(o?n.prev:n).offset},languageData:{commentTokens:{line:"#"}}};export{k as coffeeScript}; diff --git a/nicegui/elements/lib/codemirror/commonlisp-vq6DHwts.js b/nicegui/elements/lib/codemirror/commonlisp-vq6DHwts.js new file mode 100644 index 000000000..2b21bc6f6 --- /dev/null +++ b/nicegui/elements/lib/codemirror/commonlisp-vq6DHwts.js @@ -0,0 +1 @@ +var t,e=/^(block|let*|return-from|catch|load-time-value|setq|eval-when|locally|symbol-macrolet|flet|macrolet|tagbody|function|multiple-value-call|the|go|multiple-value-prog1|throw|if|progn|unwind-protect|labels|progv|let|quote)$/,n=/^with|^def|^do|^prog|case$|^cond$|bind$|when$|unless$/,r=/^(?:[+\-]?(?:\d+|\d*\.\d+)(?:[efd][+\-]?\d+)?|[+\-]?\d+(?:\/[+\-]?\d+)?|#b[+\-]?[01]+|#o[+\-]?[0-7]+|#x[+\-]?[\da-f]+)/,o=/[^\s'`,@()\[\]";]/;function a(t){for(var e;e=t.next();)if("\\"==e)t.next();else if(!o.test(e)){t.backUp(1);break}return t.current()}function l(o,l){if(o.eatSpace())return t="ws",null;if(o.match(r))return"number";var u;if("\\"==(u=o.next())&&(u=o.next()),'"'==u)return(l.tokenize=c)(o,l);if("("==u)return t="open","bracket";if(")"==u)return t="close","bracket";if(";"==u)return o.skipToEnd(),t="ws","comment";if(/['`,@]/.test(u))return null;if("|"==u)return o.skipTo("|")?(o.next(),"variableName"):(o.skipToEnd(),"error");if("#"==u)return"("==(u=o.next())?(t="open","bracket"):/[+\-=\.']/.test(u)||/\d/.test(u)&&o.match(/^\d*#/)?null:"|"==u?(l.tokenize=i)(o,l):":"==u?(a(o),"meta"):"\\"==u?(o.next(),a(o),"string.special"):"error";var s=a(o);return"."==s?null:(t="symbol","nil"==s||"t"==s||":"==s.charAt(0)?"atom":"open"==l.lastType&&(e.test(s)||n.test(s))?"keyword":"&"==s.charAt(0)?"variableName.special":"variableName")}function c(t,e){for(var n,r=!1;n=t.next();){if('"'==n&&!r){e.tokenize=l;break}r=!r&&"\\"==n}return"string"}function i(e,n){for(var r,o;r=e.next();){if("#"==r&&"|"==o){n.tokenize=l;break}o=r}return t="ws","comment"}const u={name:"commonlisp",startState:function(){return{ctx:{prev:null,start:0,indentTo:0},lastType:null,tokenize:l}},token:function(e,r){e.sol()&&"number"!=typeof r.ctx.indentTo&&(r.ctx.indentTo=r.ctx.start+1),t=null;var o=r.tokenize(e,r);return"ws"!=t&&(null==r.ctx.indentTo?"symbol"==t&&n.test(e.current())?r.ctx.indentTo=r.ctx.start+e.indentUnit:r.ctx.indentTo="next":"next"==r.ctx.indentTo&&(r.ctx.indentTo=e.column()),r.lastType=t),"open"==t?r.ctx={prev:r.ctx,start:e.column(),indentTo:null}:"close"==t&&(r.ctx=r.ctx.prev||r.ctx),o},indent:function(t){var e=t.ctx.indentTo;return"number"==typeof e?e:t.ctx.start+1},languageData:{commentTokens:{line:";;",block:{open:"#|",close:"|#"}},closeBrackets:{brackets:["(","[","{",'"']}}};export{u as commonLisp}; diff --git a/nicegui/elements/lib/codemirror/crystal-CRzZ78HM.js b/nicegui/elements/lib/codemirror/crystal-CRzZ78HM.js new file mode 100644 index 000000000..54f1bc2e5 --- /dev/null +++ b/nicegui/elements/lib/codemirror/crystal-CRzZ78HM.js @@ -0,0 +1 @@ +function e(e,t){return new RegExp((t?"":"^")+"(?:"+e.join("|")+")"+(t?"$":"\\b"))}function t(e,t,n){return n.tokenize.push(e),e(t,n)}var n=/^(?:[-+/%|&^]|\*\*?|[<>]{2})/,r=/^(?:[=!]~|===|<=>|[<>=!]=?|[|&]{2}|~)/,a=/^(?:\[\][?=]?)/,u=/^(?:\.(?:\.{2})?|->|[?:])/,i=/^[a-z_\u009F-\uFFFF][a-zA-Z0-9_\u009F-\uFFFF]*/,o=/^[A-Z_\u009F-\uFFFF][a-zA-Z0-9_\u009F-\uFFFF]*/,c=e(["abstract","alias","as","asm","begin","break","case","class","def","do","else","elsif","end","ensure","enum","extend","for","fun","if","include","instance_sizeof","lib","macro","module","next","of","out","pointerof","private","protected","rescue","return","require","select","sizeof","struct","super","then","type","typeof","uninitialized","union","unless","until","when","while","with","yield","__DIR__","__END_LINE__","__FILE__","__LINE__"]),s=e(["true","false","nil","self"]),f=e(["def","fun","macro","class","module","struct","lib","enum","union","do","for"]),l=e(["if","unless","case","while","until","begin","then"]),m=["end","else","elsif","rescue","ensure"],h=e(m),p=["\\)","\\}","\\]"],k=new RegExp("^(?:"+p.join("|")+")$"),d={def:g,fun:g,macro:function(e,t){if(e.eatSpace())return null;var n;if(n=e.match(i)){if("def"==n)return"keyword";e.eat(/[?!]/)}return t.tokenize.pop(),"def"},class:x,module:x,struct:x,lib:x,enum:x,union:x},F={"[":"]","{":"}","(":")","<":">"};function z(e,m){if(e.eatSpace())return null;if("\\"!=m.lastToken&&e.match("{%",!1))return t(b("%","%"),e,m);if("\\"!=m.lastToken&&e.match("{{",!1))return t(b("{","}"),e,m);if("#"==e.peek())return e.skipToEnd(),"comment";var h;if(e.match(i))return e.eat(/[?!]/),h=e.current(),e.eat(":")?"atom":"."==m.lastToken?"property":c.test(h)?(f.test(h)?"fun"==h&&m.blocks.indexOf("lib")>=0||"def"==h&&"abstract"==m.lastToken||(m.blocks.push(h),m.currentIndent+=1):"operator"!=m.lastStyle&&m.lastStyle||!l.test(h)?"end"==h&&(m.blocks.pop(),m.currentIndent-=1):(m.blocks.push(h),m.currentIndent+=1),d.hasOwnProperty(h)&&m.tokenize.push(d[h]),"keyword"):s.test(h)?"atom":"variable";if(e.eat("@"))return"["==e.peek()?t(_("[","]","meta"),e,m):(e.eat("@"),e.match(i)||e.match(o),"propertyName");if(e.match(o))return"tag";if(e.eat(":"))return e.eat('"')?t(I('"',"atom",!1),e,m):e.match(i)||e.match(o)||e.match(n)||e.match(r)||e.match(a)?"atom":(e.eat(":"),"operator");if(e.eat('"'))return t(I('"',"string",!0),e,m);if("%"==e.peek()){var p,k="string",z=!0;if(e.match("%r"))k="string.special",p=e.next();else if(e.match("%w"))z=!1,p=e.next();else if(e.match("%q"))z=!1,p=e.next();else if(p=e.match(/^%([^\w\s=])/))p=p[1];else{if(e.match(/^%[a-zA-Z_\u009F-\uFFFF][\w\u009F-\uFFFF]*/))return"meta";if(e.eat("%"))return"operator"}return F.hasOwnProperty(p)&&(p=F[p]),t(I(p,k,z),e,m)}return(h=e.match(/^<<-('?)([A-Z]\w*)\1/))?t(function(e,t){return function(n,r){if(n.sol()&&(n.eatSpace(),n.match(e)))return r.tokenize.pop(),"string";for(var a=!1;n.peek();)if(a)n.next(),a=!1;else{if(n.match("{%",!1))return r.tokenize.push(b("%","%")),"string";if(n.match("{{",!1))return r.tokenize.push(b("{","}")),"string";if(t&&n.match("#{",!1))return r.tokenize.push(_("#{","}","meta")),"string";a="\\"==n.next()&&t}return"string"}}(h[2],!h[1]),e,m):e.eat("'")?(e.match(/^(?:[^']|\\(?:[befnrtv0'"]|[0-7]{3}|u(?:[0-9a-fA-F]{4}|\{[0-9a-fA-F]{1,6}\})))/),e.eat("'"),"atom"):e.eat("0")?(e.eat("x")?e.match(/^[0-9a-fA-F_]+/):e.eat("o")?e.match(/^[0-7_]+/):e.eat("b")&&e.match(/^[01_]+/),"number"):e.eat(/^\d/)?(e.match(/^[\d_]*(?:\.[\d_]+)?(?:[eE][+-]?\d+)?/),"number"):e.match(n)?(e.eat("="),"operator"):e.match(r)||e.match(u)?"operator":(h=e.match(/[({[]/,!1))?t(_(h=h[0],F[h],null),e,m):e.eat("\\")?(e.next(),"meta"):(e.next(),null)}function _(e,t,n,r){return function(a,u){if(!r&&a.match(e))return u.tokenize[u.tokenize.length-1]=_(e,t,n,!0),u.currentIndent+=1,n;var i=z(a,u);return a.current()===t&&(u.tokenize.pop(),u.currentIndent-=1,i=n),i}}function b(e,t,n){return function(r,a){return!n&&r.match("{"+e)?(a.currentIndent+=1,a.tokenize[a.tokenize.length-1]=b(e,t,!0),"meta"):r.match(t+"}")?(a.currentIndent-=1,a.tokenize.pop(),"meta"):z(r,a)}}function g(e,t){return e.eatSpace()?null:(e.match(i)?e.eat(/[!?]/):e.match(n)||e.match(r)||e.match(a),t.tokenize.pop(),"def")}function x(e,t){return e.eatSpace()?null:(e.match(o),t.tokenize.pop(),"def")}function I(e,t,n){return function(r,a){for(var u=!1;r.peek();)if(u)r.next(),u=!1;else{if(r.match("{%",!1))return a.tokenize.push(b("%","%")),t;if(r.match("{{",!1))return a.tokenize.push(b("{","}")),t;if(n&&r.match("#{",!1))return a.tokenize.push(_("#{","}","meta")),t;var i=r.next();if(i==e)return a.tokenize.pop(),t;u=n&&"\\"==i}return t}}const w={name:"crystal",startState:function(){return{tokenize:[z],currentIndent:0,lastToken:null,lastStyle:null,blocks:[]}},token:function(e,t){var n=t.tokenize[t.tokenize.length-1](e,t),r=e.current();return n&&"comment"!=n&&(t.lastToken=r,t.lastStyle=n),n},indent:function(e,t,n){return t=t.replace(/^\s*(?:\{%)?\s*|\s*(?:%\})?\s*$/g,""),h.test(t)||k.test(t)?n.unit*(e.currentIndent-1):n.unit*e.currentIndent},languageData:{indentOnInput:e(p.concat(m),!0),commentTokens:{line:"#"}}};export{w as crystal}; diff --git a/nicegui/elements/lib/codemirror/css-ZjFoif2m.js b/nicegui/elements/lib/codemirror/css-ZjFoif2m.js new file mode 100644 index 000000000..40ea6388c --- /dev/null +++ b/nicegui/elements/lib/codemirror/css-ZjFoif2m.js @@ -0,0 +1 @@ +function e(e){var t,r,o=(e={...z,...e}).inline,i=e.tokenHooks,a=e.documentTypes||{},n=e.mediaTypes||{},l=e.mediaFeatures||{},s=e.mediaValueKeywords||{},c=e.propertyKeywords||{},d=e.nonStandardPropertyKeywords||{},p=e.fontProperties||{},u=e.counterDescriptors||{},m=e.colorKeywords||{},g=e.valueKeywords||{},h=e.allowNested,b=e.lineComment,f=!0===e.supportsAtComponent,k=!1!==e.highlightNonStandardPropertyKeywords;function y(e,r){return t=r,e}function w(e,t){var r=e.next();if(i[r]){var o=i[r](e,t);if(!1!==o)return o}return"@"==r?(e.eatWhile(/[\w\\\-]/),y("def",e.current())):"="==r||("~"==r||"|"==r)&&e.eat("=")?y(null,"compare"):'"'==r||"'"==r?(t.tokenize=x(r),t.tokenize(e,t)):"#"==r?(e.eatWhile(/[\w\\\-]/),y("atom","hash")):"!"==r?(e.match(/^\s*\w*/),y("keyword","important")):/\d/.test(r)||"."==r&&e.eat(/\d/)?(e.eatWhile(/[\w.%]/),y("number","unit")):"-"!==r?/[,+>*\/]/.test(r)?y(null,"select-op"):"."==r&&e.match(/^-?[_a-z][_a-z0-9-]*/i)?y("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(r)?y(null,r):e.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(e.current())&&(t.tokenize=P),y("variableName.function","variable")):/[\w\\\-]/.test(r)?(e.eatWhile(/[\w\\\-]/),y("property","word")):y(null,null):/[\d.]/.test(e.peek())?(e.eatWhile(/[\w.%]/),y("number","unit")):e.match(/^-[\w\\\-]*/)?(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?y("def","variable-definition"):y("variableName","variable")):e.match(/^\w+-/)?y("meta","meta"):void 0}function x(e){return function(t,r){for(var o,i=!1;null!=(o=t.next());){if(o==e&&!i){")"==e&&t.backUp(1);break}i=!i&&"\\"==o}return(o==e||!i&&")"!=e)&&(r.tokenize=null),y("string","string")}}function P(e,t){return e.next(),e.match(/^\s*[\"\')]/,!1)?t.tokenize=null:t.tokenize=x(")"),y(null,"(")}function j(e,t,r){this.type=e,this.indent=t,this.prev=r}function q(e,t,r,o){return e.context=new j(r,t.indentation()+(!1===o?0:t.indentUnit),e.context),r}function K(e){return e.context.prev&&(e.context=e.context.prev),e.context.type}function B(e,t,r){return A[r.context.type](e,t,r)}function _(e,t,r,o){for(var i=o||1;i>0;i--)r.context=r.context.prev;return B(e,t,r)}function O(e){var t=e.current().toLowerCase();r=g.hasOwnProperty(t)?"atom":m.hasOwnProperty(t)?"keyword":"variable"}var A={top:function(e,t,o){if("{"==e)return q(o,t,"block");if("}"==e&&o.context.prev)return K(o);if(f&&/@component/i.test(e))return q(o,t,"atComponentBlock");if(/^@(-moz-)?document$/i.test(e))return q(o,t,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(e))return q(o,t,"atBlock");if(/^@(font-face|counter-style)/i.test(e))return o.stateArg=e,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(e))return"keyframes";if(e&&"@"==e.charAt(0))return q(o,t,"at");if("hash"==e)r="builtin";else if("word"==e)r="tag";else{if("variable-definition"==e)return"maybeprop";if("interpolation"==e)return q(o,t,"interpolation");if(":"==e)return"pseudo";if(h&&"("==e)return q(o,t,"parens")}return o.context.type},block:function(e,t,o){if("word"==e){var i=t.current().toLowerCase();return c.hasOwnProperty(i)?(r="property","maybeprop"):d.hasOwnProperty(i)?(r=k?"string.special":"property","maybeprop"):h?(r=t.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(r="error","maybeprop")}return"meta"==e?"block":h||"hash"!=e&&"qualifier"!=e?A.top(e,t,o):(r="error","block")},maybeprop:function(e,t,r){return":"==e?q(r,t,"prop"):B(e,t,r)},prop:function(e,t,o){if(";"==e)return K(o);if("{"==e&&h)return q(o,t,"propBlock");if("}"==e||"{"==e)return _(e,t,o);if("("==e)return q(o,t,"parens");if("hash"!=e||/^#([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(t.current())){if("word"==e)O(t);else if("interpolation"==e)return q(o,t,"interpolation")}else r="error";return"prop"},propBlock:function(e,t,o){return"}"==e?K(o):"word"==e?(r="property","maybeprop"):o.context.type},parens:function(e,t,r){return"{"==e||"}"==e?_(e,t,r):")"==e?K(r):"("==e?q(r,t,"parens"):"interpolation"==e?q(r,t,"interpolation"):("word"==e&&O(t),"parens")},pseudo:function(e,t,o){return"meta"==e?"pseudo":"word"==e?(r="variableName.constant",o.context.type):B(e,t,o)},documentTypes:function(e,t,o){return"word"==e&&a.hasOwnProperty(t.current())?(r="tag",o.context.type):A.atBlock(e,t,o)},atBlock:function(e,t,o){if("("==e)return q(o,t,"atBlock_parens");if("}"==e||";"==e)return _(e,t,o);if("{"==e)return K(o)&&q(o,t,h?"block":"top");if("interpolation"==e)return q(o,t,"interpolation");if("word"==e){var i=t.current().toLowerCase();r="only"==i||"not"==i||"and"==i||"or"==i?"keyword":n.hasOwnProperty(i)?"attribute":l.hasOwnProperty(i)?"property":s.hasOwnProperty(i)?"keyword":c.hasOwnProperty(i)?"property":d.hasOwnProperty(i)?k?"string.special":"property":g.hasOwnProperty(i)?"atom":m.hasOwnProperty(i)?"keyword":"error"}return o.context.type},atComponentBlock:function(e,t,o){return"}"==e?_(e,t,o):"{"==e?K(o)&&q(o,t,h?"block":"top",!1):("word"==e&&(r="error"),o.context.type)},atBlock_parens:function(e,t,r){return")"==e?K(r):"{"==e||"}"==e?_(e,t,r,2):A.atBlock(e,t,r)},restricted_atBlock_before:function(e,t,o){return"{"==e?q(o,t,"restricted_atBlock"):"word"==e&&"@counter-style"==o.stateArg?(r="variable","restricted_atBlock_before"):B(e,t,o)},restricted_atBlock:function(e,t,o){return"}"==e?(o.stateArg=null,K(o)):"word"==e?(r="@font-face"==o.stateArg&&!p.hasOwnProperty(t.current().toLowerCase())||"@counter-style"==o.stateArg&&!u.hasOwnProperty(t.current().toLowerCase())?"error":"property","maybeprop"):"restricted_atBlock"},keyframes:function(e,t,o){return"word"==e?(r="variable","keyframes"):"{"==e?q(o,t,"top"):B(e,t,o)},at:function(e,t,o){return";"==e?K(o):"{"==e||"}"==e?_(e,t,o):("word"==e?r="tag":"hash"==e&&(r="builtin"),"at")},interpolation:function(e,t,o){return"}"==e?K(o):"{"==e||";"==e?_(e,t,o):("word"==e?r="variable":"variable"!=e&&"("!=e&&")"!=e&&(r="error"),"interpolation")}};return{name:e.name,startState:function(){return{tokenize:null,state:o?"block":"top",stateArg:null,context:new j(o?"block":"top",0,null)}},token:function(e,o){if(!o.tokenize&&e.eatSpace())return null;var i=(o.tokenize||w)(e,o);return i&&"object"==typeof i&&(t=i[1],i=i[0]),r=i,"comment"!=t&&(o.state=A[o.state](t,e,o)),r},indent:function(e,t,r){var o=e.context,i=t&&t.charAt(0),a=o.indent;return"prop"!=o.type||"}"!=i&&")"!=i||(o=o.prev),o.prev&&("}"!=i||"block"!=o.type&&"top"!=o.type&&"interpolation"!=o.type&&"restricted_atBlock"!=o.type?(")"!=i||"parens"!=o.type&&"atBlock_parens"!=o.type)&&("{"!=i||"at"!=o.type&&"atBlock"!=o.type)||(a=Math.max(0,o.indent-r.unit)):a=(o=o.prev).indent),a},languageData:{indentOnInput:/^\s*\}$/,commentTokens:{line:b,block:{open:"/*",close:"*/"}},autocomplete:v}}}function t(e){for(var t={},r=0;r=&|~%^]/;const d={name:"cypher",startState:function(){return{tokenize:n,context:null,indent:0,col:0}},token:function(t,n){if(t.sol()&&(n.context&&null==n.context.align&&(n.context.align=!1),n.indent=t.indentation()),t.eatSpace())return null;var o=n.tokenize(t,n);if("comment"!==o&&n.context&&null==n.context.align&&"pattern"!==n.context.type&&(n.context.align=!0),"("===e)r(n,")",t.column());else if("["===e)r(n,"]",t.column());else if("{"===e)r(n,"}",t.column());else if(/[\]\}\)]/.test(e)){for(;n.context&&"pattern"===n.context.type;)a(n);n.context&&e===n.context.type&&a(n)}else"."===e&&n.context&&"pattern"===n.context.type?a(n):/atom|string|variable/.test(o)&&n.context&&(/[\}\]]/.test(n.context.type)?r(n,"pattern",t.column()):"pattern"!==n.context.type||n.context.align||(n.context.align=!0,n.context.col=t.column()));return o},indent:function(e,t,n){var r=t&&t.charAt(0),a=e.context;if(/[\]\}]/.test(r))for(;a&&"pattern"===a.type;)a=a.prev;var o=a&&r===a.type;return a?"keywords"===a.type?null:a.align?a.col+(o?0:1):a.indent+(o?0:n.unit):0}};export{d as cypher}; diff --git a/nicegui/elements/lib/codemirror/d-BShv7fp-.js b/nicegui/elements/lib/codemirror/d-BShv7fp-.js new file mode 100644 index 000000000..8165f604c --- /dev/null +++ b/nicegui/elements/lib/codemirror/d-BShv7fp-.js @@ -0,0 +1 @@ +function e(e){for(var t={},n=e.split(" "),r=0;r!?|\/]/;function d(e,t){var n,i=e.next();if(s[i]){var d=s[i](e,t);if(!1!==d)return d}if('"'==i||"'"==i||"`"==i)return t.tokenize=(n=i,function(e,t){for(var r,i=!1,o=!1;null!=(r=e.next());){if(r==n&&!i){o=!0;break}i=!i&&"\\"==r}return(o||!i&&!c)&&(t.tokenize=null),"string"}),t.tokenize(e,t);if(/[\[\]{}\(\),;\:\.]/.test(i))return r=i,null;if(/\d/.test(i))return e.eatWhile(/[\w\.]/),"number";if("/"==i){if(e.eat("+"))return t.tokenize=p,p(e,t);if(e.eat("*"))return t.tokenize=m,m(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}if(f.test(i))return e.eatWhile(f),"operator";e.eatWhile(/[\w\$_\xa1-\uffff]/);var y=e.current();return o.propertyIsEnumerable(y)?(l.propertyIsEnumerable(y)&&(r="newstatement"),"keyword"):a.propertyIsEnumerable(y)?(l.propertyIsEnumerable(y)&&(r="newstatement"),"builtin"):u.propertyIsEnumerable(y)?"atom":"variable"}function m(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=null;break}r="*"==n}return"comment"}function p(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=null;break}r="+"==n}return"comment"}function y(e,t,n,r,i){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=i}function h(e,t,n){var r=e.indented;return e.context&&"statement"==e.context.type&&(r=e.context.indented),e.context=new y(r,t,n,null,e.context)}function b(e){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}const k={name:"d",startState:function(e){return{tokenize:null,context:new y(-e,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,t){var n=t.context;if(e.sol()&&(null==n.align&&(n.align=!1),t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())return null;r=null;var i=(t.tokenize||d)(e,t);if("comment"==i||"meta"==i)return i;if(null==n.align&&(n.align=!0),";"!=r&&":"!=r&&","!=r||"statement"!=n.type)if("{"==r)h(t,e.column(),"}");else if("["==r)h(t,e.column(),"]");else if("("==r)h(t,e.column(),")");else if("}"==r){for(;"statement"==n.type;)n=b(t);for("}"==n.type&&(n=b(t));"statement"==n.type;)n=b(t)}else r==n.type?b(t):(("}"==n.type||"top"==n.type)&&";"!=r||"statement"==n.type&&"newstatement"==r)&&h(t,e.column(),"statement");else b(t);return t.startOfLine=!1,i},indent:function(e,t,n){if(e.tokenize!=d&&null!=e.tokenize)return null;var r=e.context,o=t&&t.charAt(0);"statement"==r.type&&"}"==o&&(r=r.prev);var a=o==r.type;return"statement"==r.type?r.indented+("{"==o?0:i||n.unit):r.align?r.column+(a?0:1):r.indented+(a?0:n.unit)},languageData:{indentOnInput:/^\s*[{}]$/,commentTokens:{line:"//",block:{open:"/*",close:"*/"}}}};export{k as d}; diff --git a/nicegui/elements/lib/codemirror/diff-UJJ5BM9S.js b/nicegui/elements/lib/codemirror/diff-UJJ5BM9S.js new file mode 100644 index 000000000..73f4281b1 --- /dev/null +++ b/nicegui/elements/lib/codemirror/diff-UJJ5BM9S.js @@ -0,0 +1 @@ +var e={"+":"inserted","-":"deleted","@":"meta"};const r={name:"diff",token:function(r){var n=r.string.search(/[\t ]+?$/);if(!r.sol()||0===n)return r.skipToEnd(),("error "+(e[r.string.charAt(0)]||"")).replace(/ $/,"");var t=e[r.peek()]||r.skipToEnd();return-1===n?r.skipToEnd():r.pos=n,t}};export{r as diff}; diff --git a/nicegui/elements/lib/codemirror/dockerfile-DbSFhNEh.js b/nicegui/elements/lib/codemirror/dockerfile-DbSFhNEh.js new file mode 100644 index 000000000..86cd490ea --- /dev/null +++ b/nicegui/elements/lib/codemirror/dockerfile-DbSFhNEh.js @@ -0,0 +1 @@ +import{s as e}from"./simple-mode-VRHOsiuL.js";var n="from",t=new RegExp("^(\\s*)\\b("+n+")\\b","i"),r=["run","cmd","entrypoint","shell"],o=new RegExp("^(\\s*)("+r.join("|")+")(\\s+\\[)","i"),l="expose",s=new RegExp("^(\\s*)("+l+")(\\s+)","i"),x="("+[n,l].concat(r).concat(["arg","from","maintainer","label","env","add","copy","volume","user","workdir","onbuild","stopsignal","healthcheck","shell"]).join("|")+")";const g=e({start:[{regex:/^\s*#.*$/,sol:!0,token:"comment"},{regex:t,token:[null,"keyword"],sol:!0,next:"from"},{regex:new RegExp("^(\\s*)"+x+"(\\s*)(#.*)?$","i"),token:[null,"keyword",null,"error"],sol:!0},{regex:o,token:[null,"keyword",null],sol:!0,next:"array"},{regex:s,token:[null,"keyword",null],sol:!0,next:"expose"},{regex:new RegExp("^(\\s*)"+x+"(\\s+)","i"),token:[null,"keyword",null],sol:!0,next:"arguments"},{regex:/./,token:null}],from:[{regex:/\s*$/,token:null,next:"start"},{regex:/(\s*)(#.*)$/,token:[null,"error"],next:"start"},{regex:/(\s*\S+\s+)(as)/i,token:[null,"keyword"],next:"start"},{token:null,next:"start"}],single:[{regex:/(?:[^\\']|\\.)/,token:"string"},{regex:/'/,token:"string",pop:!0}],double:[{regex:/(?:[^\\"]|\\.)/,token:"string"},{regex:/"/,token:"string",pop:!0}],array:[{regex:/\]/,token:null,next:"start"},{regex:/"(?:[^\\"]|\\.)*"?/,token:"string"}],expose:[{regex:/\d+$/,token:"number",next:"start"},{regex:/[^\d]+$/,token:null,next:"start"},{regex:/\d+/,token:"number"},{regex:/[^\d]+/,token:null},{token:null,next:"start"}],arguments:[{regex:/^\s*#.*$/,sol:!0,token:"comment"},{regex:/"(?:[^\\"]|\\.)*"?$/,token:"string",next:"start"},{regex:/"/,token:"string",push:"double"},{regex:/'(?:[^\\']|\\.)*'?$/,token:"string",next:"start"},{regex:/'/,token:"string",push:"single"},{regex:/[^#"']+[\\`]$/,token:null},{regex:/[^#"']+$/,token:null,next:"start"},{regex:/[^#"']+/,token:null},{token:null,next:"start"}],languageData:{commentTokens:{line:"#"}}});export{g as dockerFile}; diff --git a/nicegui/elements/lib/codemirror/dtd-DI9Herc-.js b/nicegui/elements/lib/codemirror/dtd-DI9Herc-.js new file mode 100644 index 000000000..49da5a8b1 --- /dev/null +++ b/nicegui/elements/lib/codemirror/dtd-DI9Herc-.js @@ -0,0 +1 @@ +var t;function e(e,n){return t=n,e}function n(t,a){var u,i,l,c=t.next();if("<"!=c||!t.eat("!")){if("<"==c&&t.eat("?"))return a.tokenize=(i="meta",l="?>",function(t,e){for(;!t.eol();){if(t.match(l)){e.tokenize=n;break}t.next()}return i}),e("meta",c);if("#"==c&&t.eatWhile(/[\w]/))return e("atom","tag");if("|"==c)return e("keyword","separator");if(c.match(/[\(\)\[\]\-\.,\+\?>]/))return e(null,c);if(c.match(/[\[\]]/))return e("rule",c);if('"'==c||"'"==c)return a.tokenize=(u=c,function(t,r){for(var a,i=!1;null!=(a=t.next());){if(a==u&&!i){r.tokenize=n;break}i=!i&&"\\"==a}return e("string","tag")}),a.tokenize(t,a);if(t.eatWhile(/[a-zA-Z\?\+\d]/)){var o=t.current();return null!==o.substr(o.length-1,o.length).match(/\?|\+/)&&t.backUp(1),e("tag","tag")}return"%"==c||"*"==c?e("number","number"):(t.eatWhile(/[\w\\\-_%.{,]/),e(null,null))}return t.eatWhile(/[\-]/)?(a.tokenize=r,r(t,a)):t.eatWhile(/[\w]/)?e("keyword","doindent"):void 0}function r(t,r){for(var a,u=0;null!=(a=t.next());){if(u>=2&&">"==a){r.tokenize=n;break}u="-"==a?u+1:0}return e("comment","comment")}const a={name:"dtd",startState:function(){return{tokenize:n,baseIndent:0,stack:[]}},token:function(e,n){if(e.eatSpace())return null;var r=n.tokenize(e,n),a=n.stack[n.stack.length-1];return"["==e.current()||"doindent"===t||"["==t?n.stack.push("rule"):"endtag"===t?n.stack[n.stack.length-1]="endtag":"]"==e.current()||"]"==t||">"==t&&"rule"==a?n.stack.pop():"["==t&&n.stack.push("["),r},indent:function(e,n,r){var a=e.stack.length;return"]"===n.charAt(0)?a--:">"===n.substr(n.length-1,n.length)&&("<"===n.substr(0,1)||"doindent"==t&&n.length>1||("doindent"==t?a--:">"==t&&n.length>1||"tag"==t&&">"!==n||("tag"==t&&"rule"==e.stack[e.stack.length-1]?a--:"tag"==t?a++:">"===n&&"rule"==e.stack[e.stack.length-1]&&">"===t?a--:">"===n&&"rule"==e.stack[e.stack.length-1]||("<"!==n.substr(0,1)&&">"===n.substr(0,1)?a-=1:">"===n||(a-=1)))),null!=t&&"]"!=t||a--),e.baseIndent+a*r.unit},languageData:{indentOnInput:/^\s*[\]>]$/}};export{a as dtd}; diff --git a/nicegui/elements/lib/codemirror/dylan-CHJ5qNM_.js b/nicegui/elements/lib/codemirror/dylan-CHJ5qNM_.js new file mode 100644 index 000000000..c05f05beb --- /dev/null +++ b/nicegui/elements/lib/codemirror/dylan-CHJ5qNM_.js @@ -0,0 +1 @@ +function e(e,n){for(var t=0;t",symbolGlobal:"\\*"+i+"\\*",symbolConstant:"\\$"+i},o={symbolKeyword:"atom",symbolClass:"tag",symbolGlobal:"variableName.standard",symbolConstant:"variableName.constant"};for(var l in a)a.hasOwnProperty(l)&&(a[l]=new RegExp("^"+a[l]));a.keyword=[/^with(?:out)?-[-_a-zA-Z?!*@<>$%]+/];var f={keyword:"keyword",definition:"def",simpleDefinition:"def",signalingCalls:"builtin"},c={},s={};function u(e,n,t){return n.tokenize=t,t(e,n)}function m(e,t){var i=e.peek();if("'"==i||'"'==i)return e.next(),u(e,t,p(i,"string"));if("/"==i){if(e.next(),e.eat("*"))return u(e,t,d);if(e.eat("/"))return e.skipToEnd(),"comment";e.backUp(1)}else if(/[+\-\d\.]/.test(i)){if(e.match(/^[+-]?[0-9]*\.[0-9]*([esdx][+-]?[0-9]+)?/i)||e.match(/^[+-]?[0-9]+([esdx][+-]?[0-9]+)/i)||e.match(/^[+-]?\d+/))return"number"}else{if("#"==i)return e.next(),'"'==(i=e.peek())?(e.next(),u(e,t,p('"',"string"))):"b"==i?(e.next(),e.eatWhile(/[01]/),"number"):"x"==i?(e.next(),e.eatWhile(/[\da-f]/i),"number"):"o"==i?(e.next(),e.eatWhile(/[0-7]/),"number"):"#"==i?(e.next(),"punctuation"):"["==i||"("==i?(e.next(),"bracket"):e.match(/f|t|all-keys|include|key|next|rest/i)?"atom":(e.eatWhile(/[-a-zA-Z]/),"error");if("~"==i)return e.next(),"="==(i=e.peek())?(e.next(),"="==(i=e.peek())?(e.next(),"operator"):"operator"):"operator";if(":"==i){if(e.next(),"="==(i=e.peek()))return e.next(),"operator";if(":"==i)return e.next(),"punctuation"}else{if(-1!="[](){}".indexOf(i))return e.next(),"bracket";if(-1!=".,".indexOf(i))return e.next(),"punctuation";if(e.match("end"))return"keyword"}}for(var l in a)if(a.hasOwnProperty(l)){var f=a[l];if(f instanceof Array&&n(f,(function(n){return e.match(n)}))||e.match(f))return o[l]}return/[+\-*\/^=<>&|]/.test(i)?(e.next(),"operator"):e.match("define")?"def":(e.eatWhile(/[\w\-]/),c.hasOwnProperty(e.current())?s[e.current()]:e.current().match(r)?"variable":(e.next(),"variableName.standard"))}function d(e,n){for(var t,i=!1,r=!1,a=0;t=e.next();){if("/"==t&&i){if(!(a>0)){n.tokenize=m;break}a--}else"*"==t&&r&&a++;i="*"==t,r="/"==t}return"comment"}function p(e,n){return function(t,i){for(var r,a=!1,o=!1;null!=(r=t.next());){if(r==e&&!a){o=!0;break}a=!a&&"\\"==r}return!o&&a||(i.tokenize=m),n}}e(["keyword","definition","simpleDefinition","signalingCalls"],(function(n){e(t[n],(function(e){c[e]=n,s[e]=f[n]}))}));const b={name:"dylan",startState:function(){return{tokenize:m,currentIndent:0}},token:function(e,n){return e.eatSpace()?null:n.tokenize(e,n)},languageData:{commentTokens:{block:{open:"/*",close:"*/"}}}};export{b as dylan}; diff --git a/nicegui/elements/lib/codemirror/ebnf-B-Df8AvO.js b/nicegui/elements/lib/codemirror/ebnf-B-Df8AvO.js new file mode 100644 index 000000000..f3e69e65c --- /dev/null +++ b/nicegui/elements/lib/codemirror/ebnf-B-Df8AvO.js @@ -0,0 +1 @@ +var e=0,t=1,a=0,c=1,r=2;const n={name:"ebnf",startState:function(){return{stringType:null,commentType:null,braced:0,lhs:!0,localState:null,stack:[],inDefinition:!1}},token:function(n,s){if(n){switch(0===s.stack.length&&('"'==n.peek()||"'"==n.peek()?(s.stringType=n.peek(),n.next(),s.stack.unshift(c)):n.match("/*")?(s.stack.unshift(a),s.commentType=e):n.match("(*")&&(s.stack.unshift(a),s.commentType=t)),s.stack[0]){case c:for(;s.stack[0]===c&&!n.eol();)n.peek()===s.stringType?(n.next(),s.stack.shift()):"\\"===n.peek()?(n.next(),n.next()):n.match(/^.[^\\\"\']*/);return s.lhs?"property":"string";case a:for(;s.stack[0]===a&&!n.eol();)s.commentType===e&&n.match("*/")||s.commentType===t&&n.match("*)")?(s.stack.shift(),s.commentType=null):n.match(/^.[^\*]*/);return"comment";case r:for(;s.stack[0]===r&&!n.eol();)n.match(/^[^\]\\]+/)||n.match(".")||s.stack.shift();return"operator"}var m=n.peek();switch(m){case"[":return n.next(),s.stack.unshift(r),"bracket";case":":case"|":case";":return n.next(),"operator";case"%":if(n.match("%%"))return"header";if(n.match(/[%][A-Za-z]+/))return"keyword";if(n.match(/[%][}]/))return"bracket";break;case"/":if(n.match(/[\/][A-Za-z]+/))return"keyword";case"\\":if(n.match(/[\][a-z]+/))return"string.special";case".":if(n.match("."))return"atom";case"*":case"-":case"+":case"^":if(n.match(m))return"atom";case"$":if(n.match("$$"))return"builtin";if(n.match(/[$][0-9]+/))return"variableName.special";case"<":if(n.match(/<<[a-zA-Z_]+>>/))return"builtin"}return n.match("//")?(n.skipToEnd(),"comment"):n.match("return")?"operator":n.match(/^[a-zA-Z_][a-zA-Z0-9_]*/)?n.match(/(?=[\(.])/)?"variable":n.match(/(?=[\s\n]*[:=])/)?"def":"variableName.special":-1!=["[","]","(",")"].indexOf(n.peek())?(n.next(),"bracket"):(n.eatSpace()||n.next(),null)}}};export{n as ebnf}; diff --git a/nicegui/elements/lib/codemirror/ecl-DPFc0Uaf.js b/nicegui/elements/lib/codemirror/ecl-DPFc0Uaf.js new file mode 100644 index 000000000..95ba78659 --- /dev/null +++ b/nicegui/elements/lib/codemirror/ecl-DPFc0Uaf.js @@ -0,0 +1 @@ +function e(e){for(var t={},n=e.split(" "),r=0;r!?|\/]/;function p(e,m){var f,h=e.next();if(u[h]){var y=u[h](e,m);if(!1!==y)return y}if('"'==h||"'"==h)return m.tokenize=(f=h,function(e,t){for(var n,r=!1,a=!1;null!=(n=e.next());){if(n==f&&!r){a=!0;break}r=!r&&"\\"==n}return!a&&r||(t.tokenize=p),"string"}),m.tokenize(e,m);if(/[\[\]{}\(\),;\:\.]/.test(h))return t=h,null;if(/\d/.test(h))return e.eatWhile(/[\w\.]/),"number";if("/"==h){if(e.eat("*"))return m.tokenize=d,d(e,m);if(e.eat("/"))return e.skipToEnd(),"comment"}if(c.test(h))return e.eatWhile(c),"operator";e.eatWhile(/[\w\$_]/);var g=e.current().toLowerCase();if(n.propertyIsEnumerable(g))return l.propertyIsEnumerable(g)&&(t="newstatement"),"keyword";if(r.propertyIsEnumerable(g))return l.propertyIsEnumerable(g)&&(t="newstatement"),"variable";if(a.propertyIsEnumerable(g))return l.propertyIsEnumerable(g)&&(t="newstatement"),"modifier";if(o.propertyIsEnumerable(g))return l.propertyIsEnumerable(g)&&(t="newstatement"),"type";if(i.propertyIsEnumerable(g))return l.propertyIsEnumerable(g)&&(t="newstatement"),"builtin";for(var b=g.length-1;b>=0&&(!isNaN(g[b])||"_"==g[b]);)--b;if(b>0){var v=g.substr(0,b+1);if(o.propertyIsEnumerable(v))return l.propertyIsEnumerable(v)&&(t="newstatement"),"type"}return s.propertyIsEnumerable(g)?"atom":null}function d(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=p;break}r="*"==n}return"comment"}function m(e,t,n,r,a){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=a}function f(e,t,n){return e.context=new m(e.indented,t,n,null,e.context)}function h(e){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}const y={name:"ecl",startState:function(e){return{tokenize:null,context:new m(-e,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,n){var r=n.context;if(e.sol()&&(null==r.align&&(r.align=!1),n.indented=e.indentation(),n.startOfLine=!0),e.eatSpace())return null;t=null;var a=(n.tokenize||p)(e,n);if("comment"==a||"meta"==a)return a;if(null==r.align&&(r.align=!0),";"!=t&&":"!=t||"statement"!=r.type)if("{"==t)f(n,e.column(),"}");else if("["==t)f(n,e.column(),"]");else if("("==t)f(n,e.column(),")");else if("}"==t){for(;"statement"==r.type;)r=h(n);for("}"==r.type&&(r=h(n));"statement"==r.type;)r=h(n)}else t==r.type?h(n):("}"==r.type||"top"==r.type||"statement"==r.type&&"newstatement"==t)&&f(n,e.column(),"statement");else h(n);return n.startOfLine=!1,a},indent:function(e,t,n){if(e.tokenize!=p&&null!=e.tokenize)return 0;var r=e.context,a=t&&t.charAt(0);"statement"==r.type&&"}"==a&&(r=r.prev);var o=a==r.type;return"statement"==r.type?r.indented+("{"==a?0:n.unit):r.align?r.column+(o?0:1):r.indented+(o?0:n.unit)},languageData:{indentOnInput:/^\s*[{}]$/}};export{y as ecl}; diff --git a/nicegui/elements/lib/codemirror/editor-DzvLhhiW.js b/nicegui/elements/lib/codemirror/editor-DzvLhhiW.js new file mode 100644 index 000000000..3a3058b96 --- /dev/null +++ b/nicegui/elements/lib/codemirror/editor-DzvLhhiW.js @@ -0,0 +1 @@ +class t{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,e,o){[t,e]=h(this,t,e);let n=[];return this.decompose(0,t,n,2),o.length&&o.decompose(0,o.length,n,3),this.decompose(e,this.length,n,1),i.from(n,this.length-(e-t)+o.length)}append(t){return this.replace(this.length,this.length,t)}slice(t,e=this.length){[t,e]=h(this,t,e);let o=[];return this.decompose(t,e,o,0),i.from(o,e-t)}eq(t){if(t==this)return!0;if(t.length!=this.length||t.lines!=this.lines)return!1;let e=this.scanIdentical(t,1),i=this.length-this.scanIdentical(t,-1),o=new r(this),n=new r(t);for(let t=e,r=e;;){if(o.next(t),n.next(t),t=0,o.lineBreak!=n.lineBreak||o.done!=n.done||o.value!=n.value)return!1;if(r+=o.value.length,o.done||r>=i)return!0}}iter(t=1){return new r(this,t)}iterRange(t,e=this.length){return new s(this,t,e)}iterLines(t,e){let i;if(null==t)i=this.iter();else{null==e&&(e=this.lines+1);let o=this.line(t).from;i=this.iterRange(o,Math.max(o,e==this.lines+1?this.length:e<=1?0:this.line(e-1).to))}return new a(i)}toString(){return this.sliceString(0)}toJSON(){let t=[];return this.flatten(t),t}constructor(){}static of(o){if(0==o.length)throw new RangeError("A document must have at least one line");return 1!=o.length||o[0]?o.length<=32?new e(o):i.from(e.split(o,[])):t.empty}}class e extends t{constructor(t,e=function(t){let e=-1;for(let i of t)e+=i.length+1;return e}(t)){super(),this.text=t,this.length=e}get lines(){return this.text.length}get children(){return null}lineInner(t,e,i,o){for(let n=0;;n++){let r=this.text[n],s=o+r.length;if((e?i:s)>=t)return new l(o,s,i,r);o=s+1,i++}}decompose(t,i,r,s){let a=t<=0&&i>=this.length?this:new e(n(this.text,t,i),Math.min(i,this.length)-Math.max(0,t));if(1&s){let t=r.pop(),i=o(a.text,t.text.slice(),0,a.length);if(i.length<=32)r.push(new e(i,t.length+a.length));else{let t=i.length>>1;r.push(new e(i.slice(0,t)),new e(i.slice(t)))}}else r.push(a)}replace(t,r,s){if(!(s instanceof e))return super.replace(t,r,s);[t,r]=h(this,t,r);let a=o(this.text,o(s.text,n(this.text,0,t)),r),l=this.length+s.length-(r-t);return a.length<=32?new e(a,l):i.from(e.split(a,[]),l)}sliceString(t,e=this.length,i="\n"){[t,e]=h(this,t,e);let o="";for(let n=0,r=0;n<=e&&rt&&r&&(o+=i),tn&&(o+=s.slice(Math.max(0,t-n),e-n)),n=a+1}return o}flatten(t){for(let e of this.text)t.push(e)}scanIdentical(){return 0}static split(t,i){let o=[],n=-1;for(let r of t)o.push(r),n+=r.length+1,32==o.length&&(i.push(new e(o,n)),o=[],n=-1);return n>-1&&i.push(new e(o,n)),i}}class i extends t{constructor(t,e){super(),this.children=t,this.length=e,this.lines=0;for(let e of t)this.lines+=e.lines}lineInner(t,e,i,o){for(let n=0;;n++){let r=this.children[n],s=o+r.length,a=i+r.lines-1;if((e?a:s)>=t)return r.lineInner(t,e,i,o);o=s+1,i=a+1}}decompose(t,e,i,o){for(let n=0,r=0;r<=e&&n=r){let n=o&((r<=t?1:0)|(a>=e?2:0));r>=t&&a<=e&&!n?i.push(s):s.decompose(t-r,e-r,i,n)}r=a+1}}replace(t,e,o){if([t,e]=h(this,t,e),o.lines=r&&e<=a){let l=s.replace(t-r,e-r,o),h=this.lines-s.lines+l.lines;if(l.lines>4&&l.lines>h>>6){let r=this.children.slice();return r[n]=l,new i(r,this.length-(e-t)+o.length)}return super.replace(r,a,l)}r=a+1}return super.replace(t,e,o)}sliceString(t,e=this.length,i="\n"){[t,e]=h(this,t,e);let o="";for(let n=0,r=0;nt&&n&&(o+=i),tr&&(o+=s.sliceString(t-r,e-r,i)),r=a+1}return o}flatten(t){for(let e of this.children)e.flatten(t)}scanIdentical(t,e){if(!(t instanceof i))return 0;let o=0,[n,r,s,a]=e>0?[0,0,this.children.length,t.children.length]:[this.children.length-1,t.children.length-1,-1,-1];for(;;n+=e,r+=e){if(n==s||r==a)return o;let i=this.children[n],l=t.children[r];if(i!=l)return o+i.scanIdentical(l,e);o+=i.length+1}}static from(t,o=t.reduce(((t,e)=>t+e.length+1),-1)){let n=0;for(let e of t)n+=e.lines;if(n<32){let i=[];for(let e of t)e.flatten(i);return new e(i,o)}let r=Math.max(32,n>>5),s=r<<1,a=r>>1,l=[],h=0,c=-1,d=[];function f(t){let o;if(t.lines>s&&t instanceof i)for(let e of t.children)f(e);else t.lines>a&&(h>a||!h)?(u(),l.push(t)):t instanceof e&&h&&(o=d[d.length-1])instanceof e&&t.lines+o.lines<=32?(h+=t.lines,c+=t.length+1,d[d.length-1]=new e(o.text.concat(t.text),o.length+1+t.length)):(h+t.lines>r&&u(),h+=t.lines,c+=t.length+1,d.push(t))}function u(){0!=h&&(l.push(1==d.length?d[0]:i.from(d,c)),c=-1,h=d.length=0)}for(let e of t)f(e);return u(),1==l.length?l[0]:new i(l,o)}}function o(t,e,i=0,o=1e9){for(let n=0,r=0,s=!0;r=i&&(l>o&&(a=a.slice(0,o-n)),n0?1:(t instanceof e?t.text.length:t.children.length)<<1]}nextInner(t,i){for(this.done=this.lineBreak=!1;;){let o=this.nodes.length-1,n=this.nodes[o],r=this.offsets[o],s=r>>1,a=n instanceof e?n.text.length:n.children.length;if(s==(i>0?a:0)){if(0==o)return this.done=!0,this.value="",this;i>0&&this.offsets[o-1]++,this.nodes.pop(),this.offsets.pop()}else if((1&r)==(i>0?0:1)){if(this.offsets[o]+=i,0==t)return this.lineBreak=!0,this.value="\n",this;t--}else if(n instanceof e){let e=n.text[s+(i<0?-1:0)];if(this.offsets[o]+=i,e.length>Math.max(0,t))return this.value=0==t?e:i>0?e.slice(t):e.slice(0,e.length-t),this;t-=e.length}else{let r=n.children[s+(i<0?-1:0)];t>r.length?(t-=r.length,this.offsets[o]+=i):(i<0&&this.offsets[o]--,this.nodes.push(r),this.offsets.push(i>0?1:(r instanceof e?r.text.length:r.children.length)<<1))}}}next(t=0){return t<0&&(this.nextInner(-t,-this.dir),t=this.value.length),this.nextInner(t,this.dir)}}class s{constructor(t,e,i){this.value="",this.done=!1,this.cursor=new r(t,e>i?-1:1),this.pos=e>i?t.length:0,this.from=Math.min(e,i),this.to=Math.max(e,i)}nextInner(t,e){if(e<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;t+=Math.max(0,e<0?this.pos-this.to:this.from-this.pos);let i=e<0?this.pos-this.from:this.to-this.pos;t>i&&(t=i),i-=t;let{value:o}=this.cursor.next(t);return this.pos+=(o.length+t)*e,this.value=o.length<=i?o:e<0?o.slice(o.length-i):o.slice(0,i),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 a{constructor(t){this.inner=t,this.afterBreak=!0,this.value="",this.done=!1}next(t=0){let{done:e,lineBreak:i,value:o}=this.inner.next(t);return e&&this.afterBreak?(this.value="",this.afterBreak=!1):e?(this.done=!0,this.value=""):i?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=o,this.afterBreak=!1),this}get lineBreak(){return!1}}"undefined"!=typeof Symbol&&(t.prototype[Symbol.iterator]=function(){return this.iter()},r.prototype[Symbol.iterator]=s.prototype[Symbol.iterator]=a.prototype[Symbol.iterator]=function(){return this});class l{constructor(t,e,i,o){this.from=t,this.to=e,this.number=i,this.text=o}get length(){return this.to-this.from}}function h(t,e,i){return[e=Math.max(0,Math.min(t.length,e)),Math.max(e,Math.min(t.length,i))]}let c="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,,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iz,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=1;tt)return c[e-1]<=t;return!1}function f(t){return t>=127462&&t<=127487}const u=8205;function g(t,e,i=!0,o=!0){return(i?m:p)(t,e,o)}function m(t,e,i){if(e==t.length)return e;e&&b(t.charCodeAt(e))&&v(t.charCodeAt(e-1))&&e--;let o=y(t,e);for(e+=x(o);e=0&&f(y(t,o));)i++,o-=2;if(i%2==0)break;e+=2}}}return e}function p(t,e,i){for(;e>0;){let o=m(t,e-2,i);if(o=56320&&t<57344}function v(t){return t>=55296&&t<56320}function y(t,e){let i=t.charCodeAt(e);if(!v(i)||e+1==t.length)return i;let o=t.charCodeAt(e+1);return b(o)?o-56320+(i-55296<<10)+65536:i}function w(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode(55296+(t>>10),56320+(1023&t)))}function x(t){return t<65536?1:2}const k=/\r\n?|\n/;var S=function(t){return t[t.Simple=0]="Simple",t[t.TrackDel=1]="TrackDel",t[t.TrackBefore=2]="TrackBefore",t[t.TrackAfter=3]="TrackAfter",t}(S||(S={}));class C{constructor(t){this.sections=t}get length(){let t=0;for(let e=0;et)return n+(t-o);n+=s}else{if(i!=S.Simple&&l>=t&&(i==S.TrackDel&&ot||i==S.TrackBefore&&ot))return null;if(l>t||l==t&&e<0&&!s)return t==o||e<0?n:n+a;n+=a}o=l}if(t>o)throw new RangeError(`Position ${t} is out of range for changeset of length ${o}`);return n}touchesRange(t,e=t){for(let i=0,o=0;i=0&&o<=e&&n>=t)return!(oe)||"cover";o=n}return!1}toString(){let t="";for(let e=0;e=0?":"+o:"")}return t}toJSON(){return this.sections}static fromJSON(t){if(!Array.isArray(t)||t.length%2||t.some((t=>"number"!=typeof t)))throw new RangeError("Invalid JSON representation of ChangeDesc");return new C(t)}static create(t){return new C(t)}}class A extends C{constructor(t,e){super(t),this.inserted=e}apply(t){if(this.length!=t.length)throw new RangeError("Applying change set to a document with the wrong length");return N(this,((e,i,o,n,r)=>t=t.replace(o,o+(i-e),r)),!1),t}mapDesc(t,e=!1){return O(this,t,e,!0)}invert(e){let i=this.sections.slice(),o=[];for(let n=0,r=0;n=0){i[n]=a,i[n+1]=s;let l=n>>1;for(;o.length0&&D(i,e,n.text),n.forward(t),s+=t}let l=t[r++];for(;s>1].toJSON()))}return t}static of(e,i,o){let n=[],r=[],s=0,a=null;function l(t=!1){if(!t&&!n.length)return;sa||e<0||a>i)throw new RangeError(`Invalid change range ${e} to ${a} (in doc of length ${i})`);let d=c?"string"==typeof c?t.of(c.split(o||k)):c:t.empty,f=d.length;if(e==a&&0==f)return;es&&M(n,e-s,-1),M(n,a-e,f),D(r,n,d),s=a}}(e),l(!a),a}static empty(t){return new A(t?[t,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let i=[],o=[];for(let n=0;ne&&"string"!=typeof t)))throw new RangeError("Invalid JSON representation of ChangeSet");if(1==r.length)i.push(r[0],0);else{for(;o.length=0&&i<=0&&i==t[n+1]?t[n]+=e:0==e&&0==t[n]?t[n+1]+=i:o?(t[n]+=e,t[n+1]+=i):t.push(e,i)}function D(e,i,o){if(0==o.length)return;let n=i.length-2>>1;if(n>1])),!(o||a==e.sections.length||e.sections[a+1]<0);)l=e.sections[a++],h=e.sections[a++];i(r,c,s,d,f),r=c,s=d}}}function O(t,e,i,o=!1){let n=[],r=o?[]:null,s=new B(t),a=new B(e);for(let t=-1;;)if(-1==s.ins&&-1==a.ins){let t=Math.min(s.len,a.len);M(n,t,-1),s.forward(t),a.forward(t)}else if(a.ins>=0&&(s.ins<0||t==s.i||0==s.off&&(a.len=0&&t=0)){if(s.done&&a.done)return r?A.createSet(n,r):C.create(n);throw new Error("Mismatched change set lengths")}{let e=0,i=s.len;for(;i;)if(-1==a.ins){let t=Math.min(i,a.len);e+=t,i-=t,a.forward(t)}else{if(!(0==a.ins&&a.lene||s.ins>=0&&s.len>e)&&(t||o.length>i),r.forward2(e),s.forward(e)}}else M(o,0,s.ins,t),n&&D(n,o,s.text),s.next()}}class B{constructor(t){this.set=t,this.i=0,this.next()}next(){let{sections:t}=this.set;this.i>1;return i>=e.length?t.empty:e[i]}textBit(e){let{inserted:i}=this.set,o=this.i-2>>1;return o>=i.length&&!e?t.empty:i[o].slice(this.off,null==e?void 0:this.off+e)}forward(t){t==this.len?this.next():(this.len-=t,this.off+=t)}forward2(t){-1==this.ins?this.forward(t):t==this.ins?this.next():(this.ins-=t,this.off+=t)}}class E{constructor(t,e,i){this.from=t,this.to=e,this.flags=i}get anchor(){return 32&this.flags?this.to:this.from}get head(){return 32&this.flags?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return 8&this.flags?-1:16&this.flags?1:0}get bidiLevel(){let t=7&this.flags;return 7==t?null:t}get goalColumn(){let t=this.flags>>6;return 16777215==t?void 0:t}map(t,e=-1){let i,o;return this.empty?i=o=t.mapPos(this.from,e):(i=t.mapPos(this.from,1),o=t.mapPos(this.to,-1)),i==this.from&&o==this.to?this:new E(i,o,this.flags)}extend(t,e=t){if(t<=this.anchor&&e>=this.anchor)return L.range(t,e);let i=Math.abs(t-this.anchor)>Math.abs(e-this.anchor)?t:e;return L.range(this.anchor,i)}eq(t,e=!1){return!(this.anchor!=t.anchor||this.head!=t.head||e&&this.empty&&this.assoc!=t.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(t){if(!t||"number"!=typeof t.anchor||"number"!=typeof t.head)throw new RangeError("Invalid JSON representation for SelectionRange");return L.range(t.anchor,t.head)}static create(t,e,i){return new E(t,e,i)}}class L{constructor(t,e){this.ranges=t,this.mainIndex=e}map(t,e=-1){return t.empty?this:L.create(this.ranges.map((i=>i.map(t,e))),this.mainIndex)}eq(t,e=!1){if(this.ranges.length!=t.ranges.length||this.mainIndex!=t.mainIndex)return!1;for(let i=0;it.toJSON())),main:this.mainIndex}}static fromJSON(t){if(!t||!Array.isArray(t.ranges)||"number"!=typeof t.main||t.main>=t.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new L(t.ranges.map((t=>E.fromJSON(t))),t.main)}static single(t,e=t){return new L([L.range(t,e)],0)}static create(t,e=0){if(0==t.length)throw new RangeError("A selection needs at least one range");for(let i=0,o=0;ot?8:0)|n)}static normalized(t,e=0){let i=t[e];t.sort(((t,e)=>t.from-e.from)),e=t.indexOf(i);for(let i=1;io.head?L.range(s,r):L.range(r,s))}}return new L(t,e)}}function F(t,e){for(let i of t.ranges)if(i.to>e)throw new RangeError("Selection points outside of document")}let P=0;class I{constructor(t,e,i,o,n){this.combine=t,this.compareInput=e,this.compare=i,this.isStatic=o,this.id=P++,this.default=t([]),this.extensions="function"==typeof n?n(this):n}get reader(){return this}static define(t={}){return new I(t.combine||(t=>t),t.compareInput||((t,e)=>t===e),t.compare||(t.combine?(t,e)=>t===e:R),!!t.static,t.enables)}of(t){return new j([],this,0,t)}compute(t,e){if(this.isStatic)throw new Error("Can't compute a static facet");return new j(t,this,1,e)}computeN(t,e){if(this.isStatic)throw new Error("Can't compute a static facet");return new j(t,this,2,e)}from(t,e){return e||(e=t=>t),this.compute([t],(i=>e(i.field(t))))}}function R(t,e){return t==e||t.length==e.length&&t.every(((t,i)=>t===e[i]))}class j{constructor(t,e,i,o){this.dependencies=t,this.facet=e,this.type=i,this.value=o,this.id=P++}dynamicSlot(t){var e;let i=this.value,o=this.facet.compareInput,n=this.id,r=t[n]>>1,s=2==this.type,a=!1,l=!1,h=[];for(let i of this.dependencies)"doc"==i?a=!0:"selection"==i?l=!0:1&(null!==(e=t[i.id])&&void 0!==e?e:1)||h.push(t[i.id]);return{create:t=>(t.values[r]=i(t),1),update(t,e){if(a&&e.docChanged||l&&(e.docChanged||e.selection)||H(t,h)){let e=i(t);if(s?!W(e,t.values[r],o):!o(e,t.values[r]))return t.values[r]=e,1}return 0},reconfigure:(t,e)=>{let a,l=e.config.address[n];if(null!=l){let n=et(e,l);if(this.dependencies.every((i=>i instanceof I?e.facet(i)===t.facet(i):!(i instanceof z)||e.field(i,!1)==t.field(i,!1)))||(s?W(a=i(t),n,o):o(a=i(t),n)))return t.values[r]=n,0}else a=i(t);return t.values[r]=a,1}}}}function W(t,e,i){if(t.length!=e.length)return!1;for(let o=0;ot[e.id])),n=i.map((t=>t.type)),r=o.filter((t=>!(1&t))),s=t[e.id]>>1;function a(t){let i=[];for(let e=0;et===e),t);return t.provide&&(e.provides=t.provide(e)),e}create(t){let e=t.facet(q).find((t=>t.field==this));return((null==e?void 0:e.create)||this.createF)(t)}slot(t){let e=t[this.id]>>1;return{create:t=>(t.values[e]=this.create(t),1),update:(t,i)=>{let o=t.values[e],n=this.updateF(o,i);return this.compareF(o,n)?0:(t.values[e]=n,1)},reconfigure:(t,i)=>null!=i.config.address[this.id]?(t.values[e]=i.field(this),0):(t.values[e]=this.create(t),1)}}init(t){return[this,q.of({field:this,create:t})]}get extension(){return this}}const K=4,_=3,$=2,U=1;function G(t){return e=>new X(e,t)}const J={highest:G(0),high:G(U),default:G($),low:G(_),lowest:G(K)};class X{constructor(t,e){this.inner=t,this.prec=e}}class Y{of(t){return new Q(this,t)}reconfigure(t){return Y.reconfigure.of({compartment:this,extension:t})}get(t){return t.config.compartments.get(this)}}class Q{constructor(t,e){this.compartment=t,this.inner=e}}class Z{constructor(t,e,i,o,n,r){for(this.base=t,this.compartments=e,this.dynamicSlots=i,this.address=o,this.staticValues=n,this.facets=r,this.statusTemplate=[];this.statusTemplate.length>1]}static resolve(t,e,i){let o=[],n=Object.create(null),r=new Map;for(let i of function(t,e,i){let o=[[],[],[],[],[]],n=new Map;function r(t,s){let a=n.get(t);if(null!=a){if(a<=s)return;let e=o[a].indexOf(t);e>-1&&o[a].splice(e,1),t instanceof Q&&i.delete(t.compartment)}if(n.set(t,s),Array.isArray(t))for(let e of t)r(e,s);else if(t instanceof Q){if(i.has(t.compartment))throw new RangeError("Duplicate use of compartment in extensions");let o=e.get(t.compartment)||t.inner;i.set(t.compartment,o),r(o,s)}else if(t instanceof X)r(t.inner,t.prec);else if(t instanceof z)o[s].push(t),t.provides&&r(t.provides,s);else if(t instanceof j)o[s].push(t),t.facet.extensions&&r(t.facet.extensions,$);else{let e=t.extension;if(!e)throw new Error(`Unrecognized extension value in extension set (${t}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);r(e,s)}}return r(t,$),o.reduce(((t,e)=>t.concat(e)))}(t,e,r))i instanceof z?o.push(i):(n[i.facet.id]||(n[i.facet.id]=[])).push(i);let s=Object.create(null),a=[],l=[];for(let t of o)s[t.id]=l.length<<1,l.push((e=>t.slot(e)));let h=null==i?void 0:i.config.facets;for(let t in n){let e=n[t],o=e[0].facet,r=h&&h[t]||[];if(e.every((t=>0==t.type)))if(s[o.id]=a.length<<1|1,R(r,e))a.push(i.facet(o));else{let t=o.combine(e.map((t=>t.value)));a.push(i&&o.compare(t,i.facet(o))?i.facet(o):t)}else{for(let t of e)0==t.type?(s[t.id]=a.length<<1|1,a.push(t.value)):(s[t.id]=l.length<<1,l.push((e=>t.dynamicSlot(e))));s[o.id]=l.length<<1,l.push((t=>V(t,o,e)))}}let c=l.map((t=>t(s)));return new Z(t,r,c,s,a,n)}}function tt(t,e){if(1&e)return 2;let i=e>>1,o=t.status[i];if(4==o)throw new Error("Cyclic dependency between fields and/or facets");if(2&o)return o;t.status[i]=4;let n=t.computeSlot(t,t.config.dynamicSlots[i]);return t.status[i]=2|n}function et(t,e){return 1&e?t.config.staticValues[e>>1]:t.values[e>>1]}const it=I.define(),ot=I.define({combine:t=>t.some((t=>t)),static:!0}),nt=I.define({combine:t=>t.length?t[0]:void 0,static:!0}),rt=I.define(),st=I.define(),at=I.define(),lt=I.define({combine:t=>!!t.length&&t[0]});class ht{constructor(t,e){this.type=t,this.value=e}static define(){return new ct}}class ct{of(t){return new ht(this,t)}}class dt{constructor(t){this.map=t}of(t){return new ft(this,t)}}class ft{constructor(t,e){this.type=t,this.value=e}map(t){let e=this.type.map(this.value,t);return void 0===e?void 0:e==this.value?this:new ft(this.type,e)}is(t){return this.type==t}static define(t={}){return new dt(t.map||(t=>t))}static mapEffects(t,e){if(!t.length)return t;let i=[];for(let o of t){let t=o.map(e);t&&i.push(t)}return i}}ft.reconfigure=ft.define(),ft.appendConfig=ft.define();class ut{constructor(t,e,i,o,n,r){this.startState=t,this.changes=e,this.selection=i,this.effects=o,this.annotations=n,this.scrollIntoView=r,this._doc=null,this._state=null,i&&F(i,e.newLength),n.some((t=>t.type==ut.time))||(this.annotations=n.concat(ut.time.of(Date.now())))}static create(t,e,i,o,n,r){return new ut(t,e,i,o,n,r)}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 e of this.annotations)if(e.type==t)return e.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(t){let e=this.annotation(ut.userEvent);return!(!e||!(e==t||e.length>t.length&&e.slice(0,t.length)==t&&"."==e[t.length]))}}function gt(t,e){let i=[];for(let o=0,n=0;;){let r,s;if(o=t[o]))r=t[o++],s=t[o++];else{if(!(n=0;n--){let r=i[n](t);r&&Object.keys(r).length&&(o=mt(o,pt(e,r,t.changes.newLength),!0))}return o==t?t:ut.create(e,t.changes,t.selection,o.effects,o.annotations,o.scrollIntoView)}(i?function(t){let e=t.startState,i=!0;for(let o of e.facet(rt)){let e=o(t);if(!1===e){i=!1;break}Array.isArray(e)&&(i=!0===i?e:gt(i,e))}if(!0!==i){let o,n;if(!1===i)n=t.changes.invertedDesc,o=A.empty(e.doc.length);else{let e=t.changes.filter(i);o=e.changes,n=e.filtered.mapDesc(e.changes).invertedDesc}t=ut.create(e,o,t.selection&&t.selection.map(n),ft.mapEffects(t.effects,n),t.annotations,t.scrollIntoView)}let o=e.facet(st);for(let i=o.length-1;i>=0;i--){let n=o[i](t);t=n instanceof ut?n:Array.isArray(n)&&1==n.length&&n[0]instanceof ut?n[0]:bt(e,yt(n),!1)}return t}(n):n)}ut.time=ht.define(),ut.userEvent=ht.define(),ut.addToHistory=ht.define(),ut.remote=ht.define();const vt=[];function yt(t){return null==t?vt:Array.isArray(t)?t:[t]}var wt=function(t){return t[t.Word=0]="Word",t[t.Space=1]="Space",t[t.Other=2]="Other",t}(wt||(wt={}));const xt=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let kt;try{kt=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch(t){}function St(t){return e=>{if(!/\S/.test(e))return wt.Space;if(function(t){if(kt)return kt.test(t);for(let e=0;e"€"&&(i.toUpperCase()!=i.toLowerCase()||xt.test(i)))return!0}return!1}(e))return wt.Word;for(let i=0;i-1)return wt.Word;return wt.Other}}class Ct{constructor(t,e,i,o,n,r){this.config=t,this.doc=e,this.selection=i,this.values=o,this.status=t.statusTemplate.slice(),this.computeSlot=n,r&&(r._state=this);for(let t=0;tn.set(e,t))),i=null),n.set(e.value.compartment,e.value.extension)):e.is(ft.reconfigure)?(i=null,o=e.value):e.is(ft.appendConfig)&&(i=null,o=yt(o).concat(e.value));if(i)e=t.startState.values.slice();else{i=Z.resolve(o,n,this),e=new Ct(i,this.doc,this.selection,i.dynamicSlots.map((()=>null)),((t,e)=>e.reconfigure(t,this)),null).values}let r=t.startState.facet(ot)?t.newSelection:t.newSelection.asSingle();new Ct(i,t.newDoc,r,e,((e,i)=>i.update(e,t)),t)}replaceSelection(t){return"string"==typeof t&&(t=this.toText(t)),this.changeByRange((e=>({changes:{from:e.from,to:e.to,insert:t},range:L.cursor(e.from+t.length)})))}changeByRange(t){let e=this.selection,i=t(e.ranges[0]),o=this.changes(i.changes),n=[i.range],r=yt(i.effects);for(let i=1;in.spec.fromJSON(r,t))))}return Ct.create({doc:t.doc,selection:L.fromJSON(t.selection),extensions:e.extensions?o.concat([e.extensions]):o})}static create(e={}){let i=Z.resolve(e.extensions||[],new Map),o=e.doc instanceof t?e.doc:t.of((e.doc||"").split(i.staticFacet(Ct.lineSeparator)||k)),n=e.selection?e.selection instanceof L?e.selection:L.single(e.selection.anchor,e.selection.head):L.single(0);return F(n,o.length),i.staticFacet(ot)||(n=n.asSingle()),new Ct(i,o,n,i.dynamicSlots.map((()=>null)),((t,e)=>e.create(t)),null)}get tabSize(){return this.facet(Ct.tabSize)}get lineBreak(){return this.facet(Ct.lineSeparator)||"\n"}get readOnly(){return this.facet(lt)}phrase(t,...e){for(let e of this.facet(Ct.phrases))if(Object.prototype.hasOwnProperty.call(e,t)){t=e[t];break}return e.length&&(t=t.replace(/\$(\$|\d*)/g,((t,i)=>{if("$"==i)return"$";let o=+(i||1);return!o||o>e.length?t:e[o-1]}))),t}languageDataAt(t,e,i=-1){let o=[];for(let n of this.facet(it))for(let r of n(this,e,i))Object.prototype.hasOwnProperty.call(r,t)&&o.push(r[t]);return o}charCategorizer(t){return St(this.languageDataAt("wordChars",t).join(""))}wordAt(t){let{text:e,from:i,length:o}=this.doc.lineAt(t),n=this.charCategorizer(t),r=t-i,s=t-i;for(;r>0;){let t=g(e,r,!1);if(n(e.slice(t,r))!=wt.Word)break;r=t}for(;st.length?t[0]:4}),Ct.lineSeparator=nt,Ct.readOnly=lt,Ct.phrases=I.define({compare(t,e){let i=Object.keys(t),o=Object.keys(e);return i.length==o.length&&i.every((i=>t[i]==e[i]))}}),Ct.languageData=it,Ct.changeFilter=rt,Ct.transactionFilter=st,Ct.transactionExtender=at,Y.reconfigure=ft.define();class Mt{eq(t){return this==t}range(t,e=t){return Dt.create(t,e,this)}}Mt.prototype.startSide=Mt.prototype.endSide=0,Mt.prototype.point=!1,Mt.prototype.mapMode=S.TrackDel;let Dt=class t{constructor(t,e,i){this.from=t,this.to=e,this.value=i}static create(e,i,o){return new t(e,i,o)}};function Nt(t,e){return t.from-e.from||t.value.startSide-e.value.startSide}class Ot{constructor(t,e,i,o){this.from=t,this.to=e,this.value=i,this.maxPoint=o}get length(){return this.to[this.to.length-1]}findIndex(t,e,i,o=0){let n=i?this.to:this.from;for(let r=o,s=n.length;;){if(r==s)return r;let o=r+s>>1,a=n[o]-t||(i?this.value[o].endSide:this.value[o].startSide)-e;if(o==r)return a>=0?r:s;a>=0?s=o:r=o+1}}between(t,e,i,o){for(let n=this.findIndex(e,-1e9,!0),r=this.findIndex(i,1e9,!1,n);nh||l==h&&c.startSide>0&&c.endSide<=0)continue;(h-l||c.endSide-c.startSide)<0||(r<0&&(r=l),c.point&&(s=Math.max(s,h-l)),i.push(c),o.push(l-r),n.push(h-r))}return{mapped:i.length?new Ot(o,n,i,s):null,pos:r}}}class Tt{constructor(t,e,i,o){this.chunkPos=t,this.chunk=e,this.nextLayer=i,this.maxPoint=o}static create(t,e,i,o){return new Tt(t,e,i,o)}get length(){let t=this.chunk.length-1;return t<0?0:Math.max(this.chunkEnd(t),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let t=this.nextLayer.size;for(let e of this.chunk)t+=e.value.length;return t}chunkEnd(t){return this.chunkPos[t]+this.chunk[t].length}update(t){let{add:e=[],sort:i=!1,filterFrom:o=0,filterTo:n=this.length}=t,r=t.filter;if(0==e.length&&!r)return this;if(i&&(e=e.slice().sort(Nt)),this.isEmpty)return e.length?Tt.of(e):this;let s=new Lt(this,null,-1).goto(0),a=0,l=[],h=new Bt;for(;s.value||a=0){let t=e[a++];h.addInner(t.from,t.to,t.value)||l.push(t)}else 1==s.rangeIndex&&s.chunkIndexthis.chunkEnd(s.chunkIndex)||ns.to||n=n&&t<=n+r.length&&!1===r.between(n,t-n,e-n,i))return}this.nextLayer.between(t,e,i)}}iter(t=0){return Ft.from([this]).goto(t)}get isEmpty(){return this.nextLayer==this}static iter(t,e=0){return Ft.from(t).goto(e)}static compare(t,e,i,o,n=-1){let r=t.filter((t=>t.maxPoint>0||!t.isEmpty&&t.maxPoint>=n)),s=e.filter((t=>t.maxPoint>0||!t.isEmpty&&t.maxPoint>=n)),a=Et(r,s,i),l=new It(r,a,n),h=new It(s,a,n);i.iterGaps(((t,e,i)=>Rt(l,t,h,e,i,o))),i.empty&&0==i.length&&Rt(l,0,h,0,0,o)}static eq(t,e,i=0,o){null==o&&(o=999999999);let n=t.filter((t=>!t.isEmpty&&e.indexOf(t)<0)),r=e.filter((e=>!e.isEmpty&&t.indexOf(e)<0));if(n.length!=r.length)return!1;if(!n.length)return!0;let s=Et(n,r),a=new It(n,s,0).goto(i),l=new It(r,s,0).goto(i);for(;;){if(a.to!=l.to||!jt(a.active,l.active)||a.point&&(!l.point||!a.point.eq(l.point)))return!1;if(a.to>o)return!0;a.next(),l.next()}}static spans(t,e,i,o,n=-1){let r=new It(t,null,n).goto(e),s=e,a=r.openStart;for(;;){let t=Math.min(r.to,i);if(r.point){let i=r.activeForPoint(r.to),n=r.pointFroms&&(o.span(s,t,r.active,a),a=r.openEnd(t));if(r.to>i)return a+(r.point&&r.to>i?1:0);s=r.to,r.next()}}static of(t,e=!1){let i=new Bt;for(let o of t instanceof Dt?[t]:e?function(t){if(t.length>1)for(let e=t[0],i=1;i0)return t.slice().sort(Nt);e=o}return t}(t):t)i.add(o.from,o.to,o.value);return i.finish()}static join(t){if(!t.length)return Tt.empty;let e=t[t.length-1];for(let i=t.length-2;i>=0;i--)for(let o=t[i];o!=Tt.empty;o=o.nextLayer)e=new Tt(o.chunkPos,o.chunk,e,Math.max(o.maxPoint,e.maxPoint));return e}}Tt.empty=new Tt([],[],null,-1),Tt.empty.nextLayer=Tt.empty;class Bt{finishChunk(t){this.chunks.push(new Ot(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,t&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(t,e,i){this.addInner(t,e,i)||(this.nextLayer||(this.nextLayer=new Bt)).add(t,e,i)}addInner(t,e,i){let o=t-this.lastTo||i.startSide-this.last.endSide;if(o<=0&&(t-this.lastFrom||i.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return!(o<0)&&(250==this.from.length&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=t),this.from.push(t-this.chunkStart),this.to.push(e-this.chunkStart),this.last=i,this.lastFrom=t,this.lastTo=e,this.value.push(i),i.point&&(this.maxPoint=Math.max(this.maxPoint,e-t)),!0)}addChunk(t,e){if((t-this.lastTo||e.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,e.maxPoint),this.chunks.push(e),this.chunkPos.push(t);let i=e.value.length-1;return this.last=e.value[i],this.lastFrom=e.from[i]+t,this.lastTo=e.to[i]+t,!0}finish(){return this.finishInner(Tt.empty)}finishInner(t){if(this.from.length&&this.finishChunk(!1),0==this.chunks.length)return t;let e=Tt.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(t):t,this.setMaxPoint);return this.from=null,e}}function Et(t,e,i){let o=new Map;for(let e of t)for(let t=0;t=this.minPoint)break}}}setRangeIndex(t){if(t==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex=i&&o.push(new Lt(r,e,i,n));return 1==o.length?o[0]:new Ft(o)}get startSide(){return this.value?this.value.startSide:0}goto(t,e=-1e9){for(let i of this.heap)i.goto(t,e);for(let t=this.heap.length>>1;t>=0;t--)Pt(this.heap,t);return this.next(),this}forward(t,e){for(let i of this.heap)i.forward(t,e);for(let t=this.heap.length>>1;t>=0;t--)Pt(this.heap,t);(this.to-t||this.value.endSide-e)<0&&this.next()}next(){if(0==this.heap.length)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let t=this.heap[0];this.from=t.from,this.to=t.to,this.value=t.value,this.rank=t.rank,t.value&&t.next(),Pt(this.heap,0)}}}function Pt(t,e){for(let i=t[e];;){let o=1+(e<<1);if(o>=t.length)break;let n=t[o];if(o+1=0&&(n=t[o+1],o++),i.compare(n)<0)break;t[o]=i,t[e]=n,e=o}}class It{constructor(t,e,i){this.minPoint=i,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=Ft.from(t,e,i)}goto(t,e=-1e9){return this.cursor.goto(t,e),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=t,this.endSide=e,this.openStart=-1,this.next(),this}forward(t,e){for(;this.minActive>-1&&(this.activeTo[this.minActive]-t||this.active[this.minActive].endSide-e)<0;)this.removeActive(this.minActive);this.cursor.forward(t,e)}removeActive(t){Wt(this.active,t),Wt(this.activeTo,t),Wt(this.activeRank,t),this.minActive=Vt(this.active,this.activeTo)}addActive(t){let e=0,{value:i,to:o,rank:n}=this.cursor;for(;e0;)e++;Ht(this.active,e,i),Ht(this.activeTo,e,o),Ht(this.activeRank,e,n),t&&Ht(t,e,this.cursor.from),this.minActive=Vt(this.active,this.activeTo)}next(){let t=this.to,e=this.point;this.point=null;let i=this.openStart<0?[]:null;for(;;){let o=this.minActive;if(o>-1&&(this.activeTo[o]-this.cursor.from||this.active[o].endSide-this.cursor.startSide)<0){if(this.activeTo[o]>t){this.to=this.activeTo[o],this.endSide=this.active[o].endSide;break}this.removeActive(o),i&&Wt(i,o)}else{if(!this.cursor.value){this.to=this.endSide=1e9;break}if(this.cursor.from>t){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}{let t=this.cursor.value;if(t.point){if(!(e&&this.cursor.to==this.to&&this.cursor.from=0&&i[e]=0&&!(this.activeRank[i]t||this.activeTo[i]==t&&this.active[i].endSide>=this.point.endSide)&&e.push(this.active[i]);return e.reverse()}openEnd(t){let e=0;for(let i=this.activeTo.length-1;i>=0&&this.activeTo[i]>t;i--)e++;return e}}function Rt(t,e,i,o,n,r){t.goto(e),i.goto(o);let s=o+n,a=o,l=o-e;for(;;){let e=t.to+l-i.to||t.endSide-i.endSide,o=e<0?t.to+l:i.to,n=Math.min(o,s);if(t.point||i.point?t.point&&i.point&&(t.point==i.point||t.point.eq(i.point))&&jt(t.activeForPoint(t.to),i.activeForPoint(i.to))||r.comparePoint(a,n,t.point,i.point):n>a&&!jt(t.active,i.active)&&r.compareRange(a,n,t.active,i.active),o>s)break;a=o,e<=0&&t.next(),e>=0&&i.next()}}function jt(t,e){if(t.length!=e.length)return!1;for(let i=0;i=e;i--)t[i+1]=t[i];t[e]=i}function Vt(t,e){let i=-1,o=1e9;for(let n=0;n=e)return o;if(o==t.length)break;n+=9==t.charCodeAt(o)?i-n%i:1,o=g(t,o)}return!0===o?-1:t.length}const Kt="undefined"==typeof Symbol?"__ͼ":Symbol.for("ͼ"),_t="undefined"==typeof Symbol?"__styleSet"+Math.floor(1e8*Math.random()):Symbol("styleSet"),$t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:{};class Ut{constructor(t,e){this.rules=[];let{finish:i}=e||{};function o(t){return/^@/.test(t)?[t]:t.split(/,\s*/)}function n(t,e,r,s){let a=[],l=/^@(\w+)\b/.exec(t[0]),h=l&&"keyframes"==l[1];if(l&&null==e)return r.push(t[0]+";");for(let i in e){let s=e[i];if(/&/.test(i))n(i.split(/,\s*/).map((e=>t.map((t=>e.replace(/&/,t))))).reduce(((t,e)=>t.concat(e))),s,r);else if(s&&"object"==typeof s){if(!l)throw new RangeError("The value of a property ("+i+") should be a primitive value.");n(o(i),s,a,h)}else null!=s&&a.push(i.replace(/_.*/,"").replace(/[A-Z]/g,(t=>"-"+t.toLowerCase()))+": "+s+";")}(a.length||h)&&r.push((!i||l||s?t:t.map(i)).join(", ")+" {"+a.join(" ")+"}")}for(let e in t)n(o(e),t[e],this.rules)}getRules(){return this.rules.join("\n")}static newName(){let t=$t[Kt]||1;return $t[Kt]=t+1,"ͼ"+t.toString(36)}static mount(t,e,i){let o=t[_t],n=i&&i.nonce;o?n&&o.setNonce(n):o=new Jt(t,n),o.mount(Array.isArray(e)?e:[e],t)}}let Gt=new Map;class Jt{constructor(t,e){let i=t.ownerDocument||t,o=i.defaultView;if(!t.head&&t.adoptedStyleSheets&&o.CSSStyleSheet){let e=Gt.get(i);if(e)return t[_t]=e;this.sheet=new o.CSSStyleSheet,Gt.set(i,this)}else this.styleTag=i.createElement("style"),e&&this.styleTag.setAttribute("nonce",e);this.modules=[],t[_t]=this}mount(t,e){let i=this.sheet,o=0,n=0;for(let e=0;e-1&&(this.modules.splice(s,1),n--,s=-1),-1==s){if(this.modules.splice(n++,0,r),i)for(let t=0;t",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},Qt="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),Zt="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),te=0;te<10;te++)Xt[48+te]=Xt[96+te]=String(te);for(te=1;te<=24;te++)Xt[te+111]="F"+te;for(te=65;te<=90;te++)Xt[te]=String.fromCharCode(te+32),Yt[te]=String.fromCharCode(te);for(var ee in Xt)Yt.hasOwnProperty(ee)||(Yt[ee]=Xt[ee]);function ie(t){let e;return e=11==t.nodeType?t.getSelection?t:t.ownerDocument:t,e.getSelection()}function oe(t,e){return!!e&&(t==e||t.contains(1!=e.nodeType?e.parentNode:e))}function ne(t,e){if(!e.anchorNode)return!1;try{return oe(t,e.anchorNode)}catch(t){return!1}}function re(t){return 3==t.nodeType?ve(t,0,t.nodeValue.length).getClientRects():1==t.nodeType?t.getClientRects():[]}function se(t,e,i,o){return!!i&&(he(t,e,i,o,-1)||he(t,e,i,o,1))}function ae(t){for(var e=0;;e++)if(!(t=t.previousSibling))return e}function le(t){return 1==t.nodeType&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(t.nodeName)}function he(t,e,i,o,n){for(;;){if(t==i&&e==o)return!0;if(e==(n<0?0:ce(t))){if("DIV"==t.nodeName)return!1;let i=t.parentNode;if(!i||1!=i.nodeType)return!1;e=ae(t)+(n<0?0:1),t=i}else{if(1!=t.nodeType)return!1;if(1==(t=t.childNodes[e+(n<0?-1:0)]).nodeType&&"false"==t.contentEditable)return!1;e=n<0?ce(t):0}}}function ce(t){return 3==t.nodeType?t.nodeValue.length:t.childNodes.length}function de(t,e){let i=e?t.left:t.right;return{left:i,right:i,top:t.top,bottom:t.bottom}}function fe(t){let e=t.visualViewport;return e?{left:0,right:e.width,top:0,bottom:e.height}:{left:0,right:t.innerWidth,top:0,bottom:t.innerHeight}}function ue(t,e){let i=e.width/t.offsetWidth,o=e.height/t.offsetHeight;return(i>.995&&i<1.005||!isFinite(i)||Math.abs(e.width-t.offsetWidth)<1)&&(i=1),(o>.995&&o<1.005||!isFinite(o)||Math.abs(e.height-t.offsetHeight)<1)&&(o=1),{scaleX:i,scaleY:o}}class ge{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(t){return this.anchorNode==t.anchorNode&&this.anchorOffset==t.anchorOffset&&this.focusNode==t.focusNode&&this.focusOffset==t.focusOffset}setRange(t){let{anchorNode:e,focusNode:i}=t;this.set(e,Math.min(t.anchorOffset,e?ce(e):0),i,Math.min(t.focusOffset,i?ce(i):0))}set(t,e,i,o){this.anchorNode=t,this.anchorOffset=e,this.focusNode=i,this.focusOffset=o}}let me,pe=null;function be(t){if(t.setActive)return t.setActive();if(pe)return t.focus(pe);let e=[];for(let i=t;i&&(e.push(i,i.scrollTop,i.scrollLeft),i!=i.ownerDocument);i=i.parentNode);if(t.focus(null==pe?{get preventScroll(){return pe={preventScroll:!0},!0}}:void 0),!pe){pe=!1;for(let t=0;tMath.max(1,t.scrollHeight-t.clientHeight-4)}function ke(t,e){for(let i=t,o=e;;){if(3==i.nodeType&&o>0)return{node:i,offset:o};if(1==i.nodeType&&o>0){if("false"==i.contentEditable)return null;i=i.childNodes[o-1],o=ce(i)}else{if(!i.parentNode||le(i))return null;o=ae(i),i=i.parentNode}}}function Se(t,e){for(let i=t,o=e;;){if(3==i.nodeType&&oe)return i.domBoundsAround(t,e,l);if(c>=t&&-1==o&&(o=a,n=l),l>e&&i.dom.parentNode==this.dom){r=a,s=h;break}h=c,l=c+i.breakAfter}return{from:n,to:s<0?i+this.length:s,startDOM:(o?this.children[o-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:r=0?this.children[r].dom:null}}markDirty(t=!1){this.flags|=2,this.markParentsDirty(t)}markParentsDirty(t){for(let e=this.parent;e;e=e.parent){if(t&&(e.flags|=2),1&e.flags)return;e.flags|=1,t=!1}}setParent(t){this.parent!=t&&(this.parent=t,7&this.flags&&this.markParentsDirty(!0))}setDOM(t){this.dom!=t&&(this.dom&&(this.dom.cmView=null),this.dom=t,t.cmView=this)}get rootView(){for(let t=this;;){let e=t.parent;if(!e)return t;t=e}}replaceChildren(t,e,i=Ae){this.markDirty();for(let o=t;othis.pos||t==this.pos&&(e>0||0==this.i||this.children[this.i-1].breakAfter))return this.off=t-this.pos,this;let i=this.children[--this.i];this.pos-=i.length+i.breakAfter}}}function Oe(t,e,i,o,n,r,s,a,l){let{children:h}=t,c=h.length?h[e]:null,d=r.length?r[r.length-1]:null,f=d?d.breakAfter:s;if(!(e==o&&c&&!s&&!f&&r.length<2&&c.merge(i,n,r.length?d:null,0==i,a,l))){if(o0&&(!s&&r.length&&c.merge(i,c.length,r[0],!1,a,0)?c.breakAfter=r.shift().breakAfter:(i2);var qe={mac:Ve||/Mac/.test(Be.platform),windows:/Win/.test(Be.platform),linux:/Linux|X11/.test(Be.platform),ie:Ie,ie_version:Fe?Ee.documentMode||6:Pe?+Pe[1]:Le?+Le[1]:0,gecko:Re,gecko_version:Re?+(/Firefox\/(\d+)/.exec(Be.userAgent)||[0,0])[1]:0,chrome:!!je,chrome_version:je?+je[1]:0,ios:Ve,android:/Android\b/.test(Be.userAgent),webkit:We,safari:He,webkit_version:We?+(/\bAppleWebKit\/(\d+)/.exec(Be.userAgent)||[0,0])[1]:0,tabSize:null!=Ee.documentElement.style.tabSize?"tab-size":"-moz-tab-size"};class ze extends Me{constructor(t){super(),this.text=t}get length(){return this.text.length}createDOM(t){this.setDOM(t||document.createTextNode(this.text))}sync(t,e){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(e&&e.node==this.dom&&(e.written=!0),this.dom.nodeValue=this.text)}reuseDOM(t){3==t.nodeType&&this.createDOM(t)}merge(t,e,i){return!(8&this.flags||i&&(!(i instanceof ze)||this.length-(e-t)+i.length>256||8&i.flags))&&(this.text=this.text.slice(0,t)+(i?i.text:"")+this.text.slice(e),this.markDirty(),!0)}split(t){let e=new ze(this.text.slice(t));return this.text=this.text.slice(0,t),this.markDirty(),e.flags|=8&this.flags,e}localPosFromDOM(t,e){return t==this.dom?e:e?this.text.length:0}domAtPos(t){return new Ce(this.dom,t)}domBoundsAround(t,e,i){return{from:i,to:i+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(t,e){return function(t,e,i){let o=t.nodeValue.length;e>o&&(e=o);let n=e,r=e,s=0;0==e&&i<0||e==o&&i>=0?qe.chrome||qe.gecko||(e?(n--,s=1):r=0)?0:a.length-1];qe.safari&&!s&&0==l.width&&(l=Array.prototype.find.call(a,(t=>t.width))||l);return s?de(l,s<0):l||null}(this.dom,t,e)}}class Ke extends Me{constructor(t,e=[],i=0){super(),this.mark=t,this.children=e,this.length=i;for(let t of e)t.setParent(this)}setAttrs(t){if(we(t),this.mark.class&&(t.className=this.mark.class),this.mark.attrs)for(let e in this.mark.attrs)t.setAttribute(e,this.mark.attrs[e]);return t}canReuseDOM(t){return super.canReuseDOM(t)&&!(8&(this.flags|t.flags))}reuseDOM(t){t.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(t),this.flags|=6)}sync(t,e){this.dom?4&this.flags&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(t,e)}merge(t,e,i,o,n,r){return(!i||!(!(i instanceof Ke&&i.mark.eq(this.mark))||t&&n<=0||et&&e.push(i=t&&(o=n),i=s,n++}let r=this.length-t;return this.length=t,o>-1&&(this.children.length=o,this.markDirty()),new Ke(this.mark,e,r)}domAtPos(t){return Ue(this,t)}coordsAt(t,e){return Je(this,t,e)}}class _e extends Me{static create(t,e,i){return new _e(t,e,i)}constructor(t,e,i){super(),this.widget=t,this.length=e,this.side=i,this.prevWidget=null}split(t){let e=_e.create(this.widget,this.length-t,this.side);return this.length-=t,e}sync(t){this.dom&&this.widget.updateDOM(this.dom,t)||(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(t)),this.widget.editable||(this.dom.contentEditable="false"))}getSide(){return this.side}merge(t,e,i,o,n,r){return!(i&&(!(i instanceof _e&&this.widget.compare(i.widget))||t>0&&n<=0||e0)?Ce.before(this.dom):Ce.after(this.dom,t==this.length)}domBoundsAround(){return null}coordsAt(t,e){let i=this.widget.coordsAt(this.dom,t,e);if(i)return i;let o=this.dom.getClientRects(),n=null;if(!o.length)return null;let r=this.side?this.side<0:t>0;for(let e=r?o.length-1:0;n=o[e],!(t>0?0==e:e==o.length-1||n.top0?Ce.before(this.dom):Ce.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(t){return this.dom.getBoundingClientRect()}get overrideDOMText(){return t.empty}get isHidden(){return!0}}function Ue(t,e){let i=t.dom,{children:o}=t,n=0;for(let t=0;nt&&e0;t--){let e=o[t-1];if(e.dom.parentNode==i)return e.domAtPos(e.length)}for(let t=n;t0&&e instanceof Ke&&n.length&&(o=n[n.length-1])instanceof Ke&&o.mark.eq(e.mark)?Ge(o,e.children[0],i-1):(n.push(e),e.setParent(t)),t.length+=e.length}function Je(t,e,i){let o=null,n=-1,r=null,s=-1;!function t(e,a){for(let l=0,h=0;l=a&&(c.children.length?t(c,a-h):(!r||r.isHidden&&i>0)&&(d>a||h==d&&c.getSide()>0)?(r=c,s=a-h):(h-1?1:0)!=n.length-(i&&n.indexOf(i)>-1?1:0))return!1;for(let r of o)if(r!=i&&(-1==n.indexOf(r)||t[r]!==e[r]))return!1;return!0}function Ze(t,e,i){let o=!1;if(e)for(let n in e)i&&n in i||(o=!0,"style"==n?t.style.cssText="":t.removeAttribute(n));if(i)for(let n in i)e&&e[n]==i[n]||(o=!0,"style"==n?t.style.cssText=i[n]:t.setAttribute(n,i[n]));return o}function ti(t){let e=Object.create(null);for(let i=0;i0?3e8:-4e8:e>0?1e8:-1e8,new si(t,e,e,i,t.widget||null,!1)}static replace(t){let e,i,o=!!t.block;if(t.isBlockGap)e=-5e8,i=4e8;else{let{start:n,end:r}=ai(t,o);e=(n?o?-3e8:-1:5e8)-1,i=1+(r?o?2e8:1:-6e8)}return new si(t,e,i,o,t.widget||null,!0)}static line(t){return new ri(t)}static set(t,e=!1){return Tt.of(t,e)}hasHeight(){return!!this.widget&&this.widget.estimatedHeight>-1}}oi.none=Tt.empty;class ni extends oi{constructor(t){let{start:e,end:i}=ai(t);super(e?-1:5e8,i?1:-6e8,null,t),this.tagName=t.tagName||"span",this.class=t.class||"",this.attrs=t.attributes||null}eq(t){var e,i;return this==t||t instanceof ni&&this.tagName==t.tagName&&(this.class||(null===(e=this.attrs)||void 0===e?void 0:e.class))==(t.class||(null===(i=t.attrs)||void 0===i?void 0:i.class))&&Qe(this.attrs,t.attrs,"class")}range(t,e=t){if(t>=e)throw new RangeError("Mark decorations may not be empty");return super.range(t,e)}}ni.prototype.point=!1;class ri extends oi{constructor(t){super(-2e8,-2e8,null,t)}eq(t){return t instanceof ri&&this.spec.class==t.spec.class&&Qe(this.spec.attributes,t.spec.attributes)}range(t,e=t){if(e!=t)throw new RangeError("Line decoration ranges must be zero-length");return super.range(t,e)}}ri.prototype.mapMode=S.TrackBefore,ri.prototype.point=!0;class si extends oi{constructor(t,e,i,o,n,r){super(e,i,n,t),this.block=o,this.isReplace=r,this.mapMode=o?e<=0?S.TrackBefore:S.TrackAfter:S.TrackDel}get type(){return this.startSide!=this.endSide?ii.WidgetRange:this.startSide<=0?ii.WidgetBefore:ii.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(t){return t instanceof si&&(e=this.widget,i=t.widget,e==i||!!(e&&i&&e.compare(i)))&&this.block==t.block&&this.startSide==t.startSide&&this.endSide==t.endSide;var e,i}range(t,e=t){if(this.isReplace&&(t>e||t==e&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&e!=t)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(t,e)}}function ai(t,e=!1){let{inclusiveStart:i,inclusiveEnd:o}=t;return null==i&&(i=t.inclusive),null==o&&(o=t.inclusive),{start:null!=i?i:e,end:null!=o?o:e}}function li(t,e,i,o=0){let n=i.length-1;n>=0&&i[n]+o>=t?i[n]=Math.max(i[n],e):i.push(t,e)}si.prototype.point=!0;class hi extends Me{constructor(){super(...arguments),this.children=[],this.length=0,this.prevAttrs=void 0,this.attrs=null,this.breakAfter=0}merge(t,e,i,o,n,r){if(i){if(!(i instanceof hi))return!1;this.dom||i.transferDOM(this)}return o&&this.setDeco(i?i.attrs:null),Te(this,t,e,i?i.children.slice():[],n,r),!0}split(t){let e=new hi;if(e.breakAfter=this.breakAfter,0==this.length)return e;let{i:i,off:o}=this.childPos(t);o&&(e.append(this.children[i].split(o),0),this.children[i].merge(o,this.children[i].length,null,!1,0,0),i++);for(let t=i;t0&&0==this.children[i-1].length;)this.children[--i].destroy();return this.children.length=i,this.markDirty(),this.length=t,e}transferDOM(t){this.dom&&(this.markDirty(),t.setDOM(this.dom),t.prevAttrs=void 0===this.prevAttrs?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(t){Qe(this.attrs,t)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=t)}append(t,e){Ge(this,t,e)}addLineDeco(t){let e=t.spec.attributes,i=t.spec.class;e&&(this.attrs=Xe(e,this.attrs||{})),i&&(this.attrs=Xe({class:i},this.attrs||{}))}domAtPos(t){return Ue(this,t)}reuseDOM(t){"DIV"==t.nodeName&&(this.setDOM(t),this.flags|=6)}sync(t,e){var i;this.dom?4&this.flags&&(we(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),void 0!==this.prevAttrs&&(Ze(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(t,e);let o=this.dom.lastChild;for(;o&&Me.get(o)instanceof Ke;)o=o.lastChild;if(!(o&&this.length&&("BR"==o.nodeName||0!=(null===(i=Me.get(o))||void 0===i?void 0:i.isEditable)||qe.ios&&this.children.some((t=>t instanceof ze))))){let t=document.createElement("BR");t.cmIgnore=!0,this.dom.appendChild(t)}}measureTextSize(){if(0==this.children.length||this.length>20)return null;let t,e=0;for(let i of this.children){if(!(i instanceof ze)||/[^ -~]/.test(i.text))return null;let o=re(i.dom);if(1!=o.length)return null;e+=o[0].width,t=o[0].height}return e?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:e/this.length,textHeight:t}:null}coordsAt(t,e){let i=Je(this,t,e);if(!this.children.length&&i&&this.parent){let{heightOracle:t}=this.parent.view.viewState,e=i.bottom-i.top;if(Math.abs(e-t.lineHeight)<2&&t.textHeight=e){if(n instanceof hi)return n;if(r>e)break}o=r+n.breakAfter}return null}}class ci extends Me{constructor(t,e,i){super(),this.widget=t,this.length=e,this.deco=i,this.breakAfter=0,this.prevWidget=null}merge(t,e,i,o,n,r){return!(i&&(!(i instanceof ci&&this.widget.compare(i.widget))||t>0&&n<=0||e0)}}class di extends ei{constructor(t){super(),this.height=t}toDOM(){let t=document.createElement("div");return t.className="cm-gap",this.updateDOM(t),t}eq(t){return t.height==this.height}updateDOM(t){return t.style.height=this.height+"px",!0}get editable(){return!0}get estimatedHeight(){return this.height}ignoreEvent(){return!1}}class fi{constructor(t,e,i,o){this.doc=t,this.pos=e,this.end=i,this.disallowBlockEffectsFor=o,this.content=[],this.curLine=null,this.breakAtStart=0,this.pendingBuffer=0,this.bufferMarks=[],this.atCursorPos=!0,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=t.iter(),this.skip=e}posCovered(){if(0==this.content.length)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let t=this.content[this.content.length-1];return!(t.breakAfter||t instanceof ci&&t.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new hi),this.atCursorPos=!0),this.curLine}flushBuffer(t=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(ui(new $e(-1),t),t.length),this.pendingBuffer=0)}addBlockWidget(t){this.flushBuffer(),this.curLine=null,this.content.push(t)}finish(t){this.pendingBuffer&&t<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,this.posCovered()||t&&this.content.length&&this.content[this.content.length-1]instanceof ci||this.getLine()}buildText(t,e,i){for(;t>0;){if(this.textOff==this.text.length){let{value:e,lineBreak:i,done:o}=this.cursor.next(this.skip);if(this.skip=0,o)throw new Error("Ran out of text content when drawing inline views");if(i){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,t--;continue}this.text=e,this.textOff=0}let o=Math.min(this.text.length-this.textOff,t,512);this.flushBuffer(e.slice(e.length-i)),this.getLine().append(ui(new ze(this.text.slice(this.textOff,this.textOff+o)),e),i),this.atCursorPos=!0,this.textOff+=o,t-=o,i=0}}span(t,e,i,o){this.buildText(e-t,i,o),this.pos=e,this.openStart<0&&(this.openStart=o)}point(t,e,i,o,n,r){if(this.disallowBlockEffectsFor[r]&&i instanceof si){if(i.block)throw new RangeError("Block decorations may not be specified via plugins");if(e>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let s=e-t;if(i instanceof si)if(i.block)i.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new ci(i.widget||gi.block,s,i));else{let r=_e.create(i.widget||gi.inline,s,s?0:i.startSide),a=this.atCursorPos&&!r.isEditable&&n<=o.length&&(t0),l=!r.isEditable&&(to.length||i.startSide<=0),h=this.getLine();2!=this.pendingBuffer||a||r.isEditable||(this.pendingBuffer=0),this.flushBuffer(o),a&&(h.append(ui(new $e(1),o),n),n=o.length+Math.max(0,n-o.length)),h.append(ui(r,o),n),this.atCursorPos=l,this.pendingBuffer=l?to.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=o.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(i);s&&(this.textOff+s<=this.text.length?this.textOff+=s:(this.skip+=s-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=e),this.openStart<0&&(this.openStart=n)}static build(t,e,i,o,n){let r=new fi(t,e,i,n);return r.openEnd=Tt.spans(o,e,i,r),r.openStart<0&&(r.openStart=r.openEnd),r.finish(r.openEnd),r}}function ui(t,e){for(let i of e)t=new Ke(i,[t],t.length);return t}class gi extends ei{constructor(t){super(),this.tag=t}eq(t){return t.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(t){return t.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}gi.inline=new gi("span"),gi.block=new gi("div");var mi=function(t){return t[t.LTR=0]="LTR",t[t.RTL=1]="RTL",t}(mi||(mi={}));const pi=mi.LTR,bi=mi.RTL;function vi(t){let e=[];for(let i=0;i=e){if(s.level==i)return r;(n<0||(0!=o?o<0?s.frome:t[n].level>s.level))&&(n=r)}}if(n<0)throw new RangeError("Index out of range");return n}}function Mi(t,e){if(t.length!=e.length)return!1;for(let i=0;il&&s.push(new Ai(l,g.from,f)),Oi(t,g.direction==pi!=!(f%2)?o+1:o,n,g.inner,g.from,g.to,s),l=g.to}u=g.to}else{if(u==i||(e?Di[u]!=a:Di[u]==a))break;u++}d?Ni(t,l,u,o+1,n,d,s):le;){let i=!0,c=!1;if(!h||l>r[h-1].to){let t=Di[l-1];t!=a&&(i=!1,c=16==t)}let d=i||1!=a?null:[],f=i?o:o+1,u=l;t:for(;;)if(h&&u==r[h-1].to){if(c)break t;let g=r[--h];if(!i)for(let t=g.from,i=h;;){if(t==e)break t;if(!i||r[i-1].to!=t){if(Di[t-1]==a)break t;break}t=r[--i].from}if(d)d.push(g);else{g.to=0;t-=3)if(ki[t+1]==-i){let e=ki[t+2],i=2&e?n:4&e?1&e?r:n:0;i&&(Di[s]=Di[ki[t]]=i),a=t;break}}else{if(189==ki.length)break;ki[a++]=s,ki[a++]=e,ki[a++]=l}else if(2==(o=Di[s])||1==o){let t=o==n;l=t?0:1;for(let e=a-3;e>=0;e-=3){let i=ki[e+2];if(2&i)break;if(t)ki[e+2]|=2;else{if(4&i)break;ki[e+2]|=4}}}}}(t,n,r,o,a),function(t,e,i,o){for(let n=0,r=o;n<=i.length;n++){let s=n?i[n-1].to:t,a=nl;)e==r&&(e=i[--o].from,r=o?i[o-1].to:t),Di[--e]=c;l=s}else r=s,l++}}}(n,r,o,a),Ni(t,n,r,e,i,o,s)}function Ti(t,e,i){if(!t)return[new Ai(0,0,e==bi?1:0)];if(e==pi&&!i.length&&!Ci.test(t))return Bi(t.length);if(i.length)for(;t.length>Di.length;)Di[Di.length]=256;let o=[],n=e==pi?0:1;return Oi(t,n,n,i,0,t.length,o),o}function Bi(t){return[new Ai(0,t,0)]}let Ei="";function Li(t,e,i,o,n){var r;let s=o.head-t.from,a=Ai.find(e,s,null!==(r=o.bidiLevel)&&void 0!==r?r:-1,o.assoc),l=e[a],h=l.side(n,i);if(s==h){let t=a+=n?1:-1;if(t<0||t>=e.length)return null;l=e[a=t],s=l.side(!n,i),h=l.side(n,i)}let c=g(t.text,s,l.forward(n,i));(cl.to)&&(c=h),Ei=t.text.slice(Math.min(s,c),Math.max(s,c));let d=a==(n?e.length-1:0)?null:e[a+(n?1:-1)];return d&&c==h&&d.level+(n?0:1)t.some((t=>t))}),_i=I.define({combine:t=>t.some((t=>t))}),$i=I.define();class Ui{constructor(t,e="nearest",i="nearest",o=5,n=5,r=!1){this.range=t,this.y=e,this.x=i,this.yMargin=o,this.xMargin=n,this.isSnapshot=r}map(t){return t.empty?this:new Ui(this.range.map(t),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(t){return this.range.to<=t.doc.length?this:new Ui(L.cursor(t.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const Gi=ft.define({map:(t,e)=>t.map(e)}),Ji=ft.define();function Xi(t,e,i){let o=t.facet(ji);o.length?o[0](e):window.onerror?window.onerror(String(e),i,void 0,void 0,e):i?console.error(i+":",e):console.error(e)}const Yi=I.define({combine:t=>!t.length||t[0]});let Qi=0;const Zi=I.define();class to{constructor(t,e,i,o,n){this.id=t,this.create=e,this.domEventHandlers=i,this.domEventObservers=o,this.extension=n(this)}static define(t,e){const{eventHandlers:i,eventObservers:o,provide:n,decorations:r}=e||{};return new to(Qi++,t,i,o,(t=>{let e=[Zi.of(t)];return r&&e.push(no.of((e=>{let i=e.plugin(t);return i?r(i):oi.none}))),n&&e.push(n(t)),e}))}static fromClass(t,e){return to.define((e=>new t(e)),e)}}class eo{constructor(t){this.spec=t,this.mustUpdate=null,this.value=null}update(t){if(this.value){if(this.mustUpdate){let t=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(t)}catch(e){if(Xi(t.state,e,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch(t){}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(t)}catch(e){Xi(t.state,e,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(t){var e;if(null===(e=this.value)||void 0===e?void 0:e.destroy)try{this.value.destroy()}catch(e){Xi(t.state,e,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const io=I.define(),oo=I.define(),no=I.define(),ro=I.define(),so=I.define(),ao=I.define();function lo(t,e){let i=t.state.facet(ao);if(!i.length)return i;let o=i.map((e=>e instanceof Function?e(t):e)),n=[];return Tt.spans(o,e.from,e.to,{point(){},span(t,i,o,r){let s=t-e.from,a=i-e.from,l=n;for(let t=o.length-1;t>=0;t--,r--){let i,n=o[t].spec.bidiIsolate;if(null==n&&(n=Fi(e.text,s,a)),r>0&&l.length&&(i=l[l.length-1]).to==s&&i.direction==n)i.to=a,l=i.inner;else{let t={from:s,to:a,direction:n,inner:[]};l.push(t),l=t.inner}}}}),n}const ho=I.define();function co(t){let e=0,i=0,o=0,n=0;for(let r of t.state.facet(ho)){let s=r(t);s&&(null!=s.left&&(e=Math.max(e,s.left)),null!=s.right&&(i=Math.max(i,s.right)),null!=s.top&&(o=Math.max(o,s.top)),null!=s.bottom&&(n=Math.max(n,s.bottom)))}return{left:e,right:i,top:o,bottom:n}}const fo=I.define();class uo{constructor(t,e,i,o){this.fromA=t,this.toA=e,this.fromB=i,this.toB=o}join(t){return new uo(Math.min(this.fromA,t.fromA),Math.max(this.toA,t.toA),Math.min(this.fromB,t.fromB),Math.max(this.toB,t.toB))}addToSet(t){let e=t.length,i=this;for(;e>0;e--){let o=t[e-1];if(!(o.fromA>i.toA)){if(o.toAh)break;n+=2}if(!a)return i;new uo(a.fromA,a.toA,a.fromB,a.toB).addToSet(i),r=a.toA,s=a.toB}}}class go{constructor(t,e,i){this.view=t,this.state=e,this.transactions=i,this.flags=0,this.startState=t.state,this.changes=A.empty(this.startState.doc.length);for(let t of i)this.changes=this.changes.compose(t.changes);let o=[];this.changes.iterChangedRanges(((t,e,i,n)=>o.push(new uo(t,e,i,n)))),this.changedRanges=o}static create(t,e,i){return new go(t,e,i)}get viewportChanged(){return(4&this.flags)>0}get heightChanged(){return(2&this.flags)>0}get geometryChanged(){return this.docChanged||(10&this.flags)>0}get focusChanged(){return(1&this.flags)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some((t=>t.selection))}get empty(){return 0==this.flags&&0==this.transactions.length}}class mo extends Me{get length(){return this.view.state.doc.length}constructor(t){super(),this.view=t,this.decorations=[],this.dynamicDecorationMap=[!1],this.domChanged=null,this.hasComposition=null,this.markedForComposition=new Set,this.editContextFormatting=oi.none,this.lastCompositionAfterCursor=!1,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.setDOM(t.contentDOM),this.children=[new hi],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new uo(0,0,0,t.state.doc.length)],0,null)}update(t){var e;let i=t.changedRanges;this.minWidth>0&&i.length&&(i.every((({fromA:t,toA:e})=>ethis.minWidthTo))?(this.minWidthFrom=t.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=t.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0),this.updateEditContextFormatting(t);let o=-1;this.view.inputState.composing>=0&&!this.view.observer.editContext&&((null===(e=this.domChanged)||void 0===e?void 0:e.newSel)?o=this.domChanged.newSel.head:function(t,e){let i=!1;e&&t.iterChangedRanges(((t,o)=>{te.from&&(i=!0)}));return i}(t.changes,this.hasComposition)||t.selectionSet||(o=t.state.selection.main.head));let n=o>-1?function(t,e,i){let o=po(t,i);if(!o)return null;let{node:n,from:r,to:s}=o,a=n.nodeValue;if(/[\n\r]/.test(a))return null;if(t.state.doc.sliceString(o.from,o.to)!=a)return null;let l=e.invertedDesc,h=new uo(l.mapPos(r),l.mapPos(s),r,s),c=[];for(let e=n.parentNode;;e=e.parentNode){let i=Me.get(e);if(i instanceof Ke)c.push({node:e,deco:i.mark});else{if(i instanceof hi||"DIV"==e.nodeName&&e.parentNode==t.contentDOM)return{range:h,text:n,marks:c,line:e};if(e==t.contentDOM)return null;c.push({node:e,deco:new ni({inclusive:!0,attributes:ti(e),tagName:e.tagName.toLowerCase()})})}}}(this.view,t.changes,o):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:e,to:o}=this.hasComposition;i=new uo(e,o,t.changes.mapPos(e,-1),t.changes.mapPos(o,1)).addToSet(i.slice())}this.hasComposition=n?{from:n.range.fromB,to:n.range.toB}:null,(qe.ie||qe.chrome)&&!n&&t&&t.state.doc.lines!=t.startState.doc.lines&&(this.forceSelection=!0);let r=function(t,e,i){let o=new bo;return Tt.compare(t,e,i,o),o.changes}(this.decorations,this.updateDeco(),t.changes);return i=uo.extendWithRanges(i,r),!!(7&this.flags||0!=i.length)&&(this.updateInner(i,t.startState.doc.length,n),t.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(t,e,i){this.view.viewState.mustMeasureContent=!0,this.updateChildren(t,e,i);let{observer:o}=this.view;o.ignore((()=>{this.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let t=qe.chrome||qe.ios?{node:o.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,t),this.flags&=-8,t&&(t.written||o.selectionRange.focusNode!=t.node)&&(this.forceSelection=!0),this.dom.style.height=""})),this.markedForComposition.forEach((t=>t.flags&=-9));let n=[];if(this.view.viewport.from||this.view.viewport.to=0?o[t]:null;if(!e)break;let r,s,a,l,{fromA:h,toA:c,fromB:d,toB:f}=e;if(i&&i.range.fromBd){let t=fi.build(this.view.state.doc,d,i.range.fromB,this.decorations,this.dynamicDecorationMap),e=fi.build(this.view.state.doc,i.range.toB,f,this.decorations,this.dynamicDecorationMap);s=t.breakAtStart,a=t.openStart,l=e.openEnd;let o=this.compositionView(i);e.breakAtStart?o.breakAfter=1:e.content.length&&o.merge(o.length,o.length,e.content[0],!1,e.openStart,0)&&(o.breakAfter=e.content[0].breakAfter,e.content.shift()),t.content.length&&o.merge(0,0,t.content[t.content.length-1],!0,0,t.openEnd)&&t.content.pop(),r=t.content.concat(o).concat(e.content)}else({content:r,breakAtStart:s,openStart:a,openEnd:l}=fi.build(this.view.state.doc,d,f,this.decorations,this.dynamicDecorationMap));let{i:u,off:g}=n.findPos(c,1),{i:m,off:p}=n.findPos(h,-1);Oe(this,m,p,u,g,r,s,a,l)}i&&this.fixCompositionDOM(i)}updateEditContextFormatting(t){this.editContextFormatting=this.editContextFormatting.map(t.changes);for(let e of t.transactions)for(let t of e.effects)t.is(Ji)&&(this.editContextFormatting=t.value)}compositionView(t){let e=new ze(t.text.nodeValue);e.flags|=8;for(let{deco:i}of t.marks)e=new Ke(i,[e],e.length);let i=new hi;return i.append(e,0),i}fixCompositionDOM(t){let e=(t,e)=>{e.flags|=8|(e.children.some((t=>7&t.flags))?1:0),this.markedForComposition.add(e);let i=Me.get(t);i&&i!=e&&(i.dom=null),e.setDOM(t)},i=this.childPos(t.range.fromB,1),o=this.children[i.i];e(t.line,o);for(let n=t.marks.length-1;n>=-1;n--)i=o.childPos(i.off,1),o=o.children[i.i],e(n>=0?t.marks[n].node:t.text,o)}updateSelection(t=!1,e=!1){!t&&this.view.observer.selectionRange.focusNode||this.view.observer.readSelectionRange();let i=this.view.root.activeElement,o=i==this.dom,n=!o&&ne(this.dom,this.view.observer.selectionRange)&&!(i&&this.dom.contains(i));if(!(o||e||n))return;let r=this.forceSelection;this.forceSelection=!1;let s=this.view.state.selection.main,a=this.moveToLine(this.domAtPos(s.anchor)),l=s.empty?a:this.moveToLine(this.domAtPos(s.head));if(qe.gecko&&s.empty&&!this.hasComposition&&(1==(h=a).node.nodeType&&h.node.firstChild&&(0==h.offset||"false"==h.node.childNodes[h.offset-1].contentEditable)&&(h.offset==h.node.childNodes.length||"false"==h.node.childNodes[h.offset].contentEditable))){let t=document.createTextNode("");this.view.observer.ignore((()=>a.node.insertBefore(t,a.node.childNodes[a.offset]||null))),a=l=new Ce(t,0),r=!0}var h;let c=this.view.observer.selectionRange;!r&&c.focusNode&&(se(a.node,a.offset,c.anchorNode,c.anchorOffset)&&se(l.node,l.offset,c.focusNode,c.focusOffset)||this.suppressWidgetCursorChange(c,s))||(this.view.observer.ignore((()=>{qe.android&&qe.chrome&&this.dom.contains(c.focusNode)&&function(t,e){for(let i=t;i&&i!=e;i=i.assignedSlot||i.parentNode)if(1==i.nodeType&&"false"==i.contentEditable)return!0;return!1}(c.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let t=ie(this.view.root);if(t)if(s.empty){if(qe.gecko){let t=(e=a.node,o=a.offset,1!=e.nodeType?0:(o&&"false"==e.childNodes[o-1].contentEditable?1:0)|(os.head&&([a,l]=[l,a]),e.setEnd(l.node,l.offset),e.setStart(a.node,a.offset),t.removeAllRanges(),t.addRange(e)}else;var e,o;n&&this.view.root.activeElement==this.dom&&(this.dom.blur(),i&&i.focus())})),this.view.observer.setSelectionRange(a,l)),this.impreciseAnchor=a.precise?null:new Ce(c.anchorNode,c.anchorOffset),this.impreciseHead=l.precise?null:new Ce(c.focusNode,c.focusOffset)}suppressWidgetCursorChange(t,e){return this.hasComposition&&e.empty&&se(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset)&&this.posFromDOM(t.focusNode,t.focusOffset)==e.head}enforceCursorAssoc(){if(this.hasComposition)return;let{view:t}=this,e=t.state.selection.main,i=ie(t.root),{anchorNode:o,anchorOffset:n}=t.observer.selectionRange;if(!(i&&e.empty&&e.assoc&&i.modify))return;let r=hi.find(this,e.head);if(!r)return;let s=r.posAtStart;if(e.head==s||e.head==s+r.length)return;let a=this.coordsAt(e.head,-1),l=this.coordsAt(e.head,1);if(!a||!l||a.bottom>l.top)return;let h=this.domAtPos(e.head+e.assoc);i.collapse(h.node,h.offset),i.modify("move",e.assoc<0?"forward":"backward","lineboundary"),t.observer.readSelectionRange();let c=t.observer.selectionRange;t.docView.posFromDOM(c.anchorNode,c.anchorOffset)!=e.from&&i.collapse(o,n)}moveToLine(t){let e,i=this.dom;if(t.node!=i)return t;for(let o=t.offset;!e&&o=0;o--){let t=Me.get(i.childNodes[o]);t instanceof hi&&(e=t.domAtPos(t.length))}return e?new Ce(e.node,e.offset,!0):t}nearest(t){for(let e=t;e;){let t=Me.get(e);if(t&&t.rootView==this)return t;e=e.parentNode}return null}posFromDOM(t,e){let i=this.nearest(t);if(!i)throw new RangeError("Trying to find position for a DOM position outside of the document");return i.localPosFromDOM(t,e)+i.posAtStart}domAtPos(t){let{i:e,off:i}=this.childCursor().findPos(t,-1);for(;e=0;r--){let s=this.children[r],a=n-s.breakAfter,l=a-s.length;if(at||s.covers(1))&&(!i||s instanceof hi&&!(i instanceof hi&&e>=0)))i=s,o=l;else if(i&&l==t&&a==t&&s instanceof ci&&Math.abs(e)<2){if(s.deco.startSide<0)break;r&&(i=null)}n=l}return i?i.coordsAt(t-o,e):null}coordsForChar(t){let{i:e,off:i}=this.childPos(t,1),o=this.children[e];if(!(o instanceof hi))return null;for(;o.children.length;){let{i:t,off:e}=o.childPos(i,1);for(;;t++){if(t==o.children.length)return null;if((o=o.children[t]).length)break}i=e}if(!(o instanceof ze))return null;let n=g(o.text,i);if(n==i)return null;let r=ve(o.dom,i,n).getClientRects();for(let t=0;tMath.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,s=-1,a=this.view.textDirection==mi.LTR;for(let t=0,l=0;lo)break;if(t>=i){let i=h.dom.getBoundingClientRect();if(e.push(i.height),r){let e=h.dom.lastChild,o=e?re(e):[];if(o.length){let e=o[o.length-1],r=a?e.right-i.left:i.right-e.left;r>s&&(s=r,this.minWidth=n,this.minWidthFrom=t,this.minWidthTo=c)}}}t=c+h.breakAfter}return e}textDirectionAt(t){let{i:e}=this.childPos(t,1);return"rtl"==getComputedStyle(this.children[e].dom).direction?mi.RTL:mi.LTR}measureTextSize(){for(let t of this.children)if(t instanceof hi){let e=t.measureTextSize();if(e)return e}let t,e,i,o=document.createElement("div");return o.className="cm-line",o.style.width="99999px",o.style.position="absolute",o.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore((()=>{this.dom.appendChild(o);let n=re(o.firstChild)[0];t=o.getBoundingClientRect().height,e=n?n.width/27:7,i=n?n.height:t,o.remove()})),{lineHeight:t,charWidth:e,textHeight:i}}childCursor(t=this.length){let e=this.children.length;return e&&(t-=this.children[--e].length),new Ne(this.children,t,e)}computeBlockGapDeco(){let t=[],e=this.view.viewState;for(let i=0,o=0;;o++){let n=o==e.viewports.length?null:e.viewports[o],r=n?n.from-1:this.length;if(r>i){let o=(e.lineBlockAt(r).bottom-e.lineBlockAt(i).top)/this.view.scaleY;t.push(oi.replace({widget:new di(o),block:!0,inclusive:!0,isBlockGap:!0}).range(i,r))}if(!n)break;i=n.to+1}return oi.set(t)}updateDeco(){let t=1,e=this.view.state.facet(no).map((e=>(this.dynamicDecorationMap[t++]="function"==typeof e)?e(this.view):e)),i=!1,o=this.view.state.facet(ro).map(((t,e)=>{let o="function"==typeof t;return o&&(i=!0),o?t(this.view):t}));for(o.length&&(this.dynamicDecorationMap[t++]=i,e.push(Tt.join(o))),this.decorations=[this.editContextFormatting,...e,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco];ti.anchor?-1:1);if(!o)return;!i.empty&&(e=this.coordsAt(i.anchor,i.anchor>i.head?-1:1))&&(o={left:Math.min(o.left,e.left),top:Math.min(o.top,e.top),right:Math.max(o.right,e.right),bottom:Math.max(o.bottom,e.bottom)});let n=co(this.view),r={left:o.left-n.left,top:o.top-n.top,right:o.right+n.right,bottom:o.bottom+n.bottom},{offsetWidth:s,offsetHeight:a}=this.view.scrollDOM;!function(t,e,i,o,n,r,s,a){let l=t.ownerDocument,h=l.defaultView||window;for(let c=t,d=!1;c&&!d;)if(1==c.nodeType){let t,f=c==l.body,u=1,g=1;if(f)t=fe(h);else{if(/^(fixed|sticky)$/.test(getComputedStyle(c).position)&&(d=!0),c.scrollHeight<=c.clientHeight&&c.scrollWidth<=c.clientWidth){c=c.assignedSlot||c.parentNode;continue}let e=c.getBoundingClientRect();({scaleX:u,scaleY:g}=ue(c,e)),t={left:e.left,right:e.left+c.clientWidth*u,top:e.top,bottom:e.top+c.clientHeight*g}}let m=0,p=0;if("nearest"==n)e.top0&&e.bottom>t.bottom+p&&(p=e.bottom-t.bottom+p+s)):e.bottom>t.bottom&&(p=e.bottom-t.bottom+s,i<0&&e.top-p0&&e.right>t.right+m&&(m=e.right-t.right+m+r)):e.right>t.right&&(m=e.right-t.right+r,i<0&&e.leftt?e.left-t:Math.max(0,t-e.right)}function yo(t,e){return e.top>t?e.top-t:Math.max(0,t-e.bottom)}function wo(t,e){return t.tope.top+1}function xo(t,e){return et.bottom?{top:t.top,left:t.left,right:t.right,bottom:e}:t}function So(t,e,i){let o,n,r,s,a,l,h,c,d=!1;for(let f=t.firstChild;f;f=f.nextSibling){let t=re(f);for(let u=0;up||s==p&&r>m){o=f,n=g,r=m,s=p;let a=p?i0?u0)}0==m?i>g.bottom&&(!h||h.bottomg.top)&&(l=f,c=g):h&&wo(h,g)?h=ko(h,g.bottom):c&&wo(c,g)&&(c=xo(c,g.top))}}if(h&&h.bottom>=i?(o=a,n=h):c&&c.top<=i&&(o=l,n=c),!o)return{node:t,offset:0};let f=Math.max(n.left,Math.min(n.right,e));return 3==o.nodeType?Co(o,f,i):d&&"false"!=o.contentEditable?So(o,f,i):{node:t,offset:Array.prototype.indexOf.call(t.childNodes,o)+(e>=(n.left+n.right)/2?1:0)}}function Co(t,e,i){let o=t.nodeValue.length,n=-1,r=1e9,s=0;for(let a=0;ai?h.top-i:i-h.bottom)-1;if(h.left-1<=e&&h.right+1>=e&&c=(h.left+h.right)/2,o=i;if(qe.chrome||qe.gecko){ve(t,a).getBoundingClientRect().left==h.right&&(o=!i)}if(c<=0)return{node:t,offset:a+(o?1:0)};n=a+(o?1:0),r=c}}}return{node:t,offset:n>-1?n:s>0?t.nodeValue.length:0}}function Ao(t,e,i,o=-1){var n,r;let s,a=t.contentDOM.getBoundingClientRect(),l=a.top+t.viewState.paddingTop,{docHeight:h}=t.viewState,{x:c,y:d}=e,f=d-l;if(f<0)return 0;if(f>h)return t.state.doc.length;for(let e=t.viewState.heightOracle.textHeight/2,n=!1;s=t.elementAtHeight(f),s.type!=ii.Text;)for(;f=o>0?s.bottom+e:s.top-e,!(f>=0&&f<=h);){if(n)return i?null:0;n=!0,o=-o}d=l+f;let u=s.from;if(ut.viewport.to)return t.viewport.to==t.state.doc.length?t.state.doc.length:i?null:Mo(t,a,s,c,d);let g=t.dom.ownerDocument,m=t.root.elementFromPoint?t.root:g,p=m.elementFromPoint(c,d);p&&!t.contentDOM.contains(p)&&(p=null),p||(c=Math.max(a.left+1,Math.min(a.right-1,c)),p=m.elementFromPoint(c,d),p&&!t.contentDOM.contains(p)&&(p=null));let b,v=-1;if(p&&0!=(null===(n=t.docView.nearest(p))||void 0===n?void 0:n.isEditable))if(g.caretPositionFromPoint){let t=g.caretPositionFromPoint(c,d);t&&({offsetNode:b,offset:v}=t)}else if(g.caretRangeFromPoint){let e=g.caretRangeFromPoint(c,d);e&&(({startContainer:b,startOffset:v}=e),(!t.contentDOM.contains(b)||qe.safari&&function(t,e,i){let o;if(3!=t.nodeType||e!=(o=t.nodeValue.length))return!1;for(let e=t.nextSibling;e;e=e.nextSibling)if(1!=e.nodeType||"BR"!=e.nodeName)return!1;return ve(t,o-1,o).getBoundingClientRect().left>i}(b,v,c)||qe.chrome&&function(t,e,i){if(0!=e)return!1;for(let e=t;;){let t=e.parentNode;if(!t||1!=t.nodeType||t.firstChild!=e)return!1;if(t.classList.contains("cm-line"))break;e=t}let o=1==t.nodeType?t.getBoundingClientRect():ve(t,0,Math.max(t.nodeValue.length,1)).getBoundingClientRect();return i-o.left>5}(b,v,c))&&(b=void 0))}if(!b||!t.docView.dom.contains(b)){let e=hi.find(t.docView,u);if(!e)return f>s.top+s.height/2?s.to:s.from;({node:b,offset:v}=So(e.dom,c,d))}let y=t.docView.nearest(b);if(!y)return null;if(y.isWidget&&1==(null===(r=y.dom)||void 0===r?void 0:r.nodeType)){let t=y.dom.getBoundingClientRect();return e.y1.5*t.defaultLineHeight){let e=t.viewState.heightOracle.textHeight;r+=Math.floor((n-i.top-.5*(t.defaultLineHeight-e))/e)*t.viewState.heightOracle.lineLength}let s=t.state.sliceDoc(i.from,i.to);return i.from+zt(s,r,t.state.tabSize)}function Do(t,e){let i=t.lineBlockAt(e);if(Array.isArray(i.type))for(let t of i.type)if(t.to>e||t.to==e&&(t.to==i.to||t.type==ii.Text))return t;return i}function No(t,e,i,o){let n=t.state.doc.lineAt(e.head),r=t.bidiSpans(n),s=t.textDirectionAt(n.from);for(let a=e,l=null;;){let e=Li(n,r,s,a,i),h=Ei;if(!e){if(n.number==(i?t.state.doc.lines:1))return a;h="\n",n=t.state.doc.line(n.number+(i?1:-1)),r=t.bidiSpans(n),e=t.visualLineSide(n,!i)}if(l){if(!l(h))return a}else{if(!o)return e;l=o(h)}a=e}}function Oo(t,e,i){for(;;){let o=0;for(let n of t)n.between(e-1,e+1,((t,n,r)=>{if(e>t&&ee(t))),i.from,e.head>i.from?-1:1);return o==i.from?i:L.cursor(o,ot)&&this.lineBreak(),o=n}return this.findPointBefore(i,e),this}readTextNode(t){let e=t.nodeValue;for(let i of this.points)i.node==t&&(i.pos=this.text.length+Math.min(i.offset,e.length));for(let i=0,o=this.lineSeparator?null:/\r\n?|\n/g;;){let n,r=-1,s=1;if(this.lineSeparator?(r=e.indexOf(this.lineSeparator,i),s=this.lineSeparator.length):(n=o.exec(e))&&(r=n.index,s=n[0].length),this.append(e.slice(i,r<0?e.length:r)),r<0)break;if(this.lineBreak(),s>1)for(let e of this.points)e.node==t&&e.pos>this.text.length&&(e.pos-=s-1);i=r+s}}readNode(t){if(t.cmIgnore)return;let e=Me.get(t),i=e&&e.overrideDOMText;if(null!=i){this.findPointInside(t,i.length);for(let t=i.iter();!t.next().done;)t.lineBreak?this.lineBreak():this.append(t.value)}else 3==t.nodeType?this.readTextNode(t):"BR"==t.nodeName?t.nextSibling&&this.lineBreak():1==t.nodeType&&this.readRange(t.firstChild,null)}findPointBefore(t,e){for(let i of this.points)i.node==t&&t.childNodes[i.offset]==e&&(i.pos=this.text.length)}findPointInside(t,e){for(let i of this.points)(3==t.nodeType?i.node==t:t.contains(i.node))&&(i.pos=this.text.length+(Lo(t,i.node,i.offset)?e:0))}}function Lo(t,e,i){for(;;){if(!e||i-1;let{impreciseHead:n,impreciseAnchor:r}=t.docView;if(t.state.readOnly&&e>-1)this.newSel=null;else if(e>-1&&(this.bounds=t.docView.domBoundsAround(e,i,0))){let e=n||r?[]:function(t){let e=[];if(t.root.activeElement!=t.contentDOM)return e;let{anchorNode:i,anchorOffset:o,focusNode:n,focusOffset:r}=t.observer.selectionRange;i&&(e.push(new Fo(i,o)),n==i&&r==o||e.push(new Fo(n,r)));return e}(t),i=new Eo(e,t.state);i.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=i.text,this.newSel=function(t,e){if(0==t.length)return null;let i=t[0].pos,o=2==t.length?t[1].pos:i;return i>-1&&o>-1?L.single(i+e,o+e):null}(e,this.bounds.from)}else{let e=t.observer.selectionRange,i=n&&n.node==e.focusNode&&n.offset==e.focusOffset||!oe(t.contentDOM,e.focusNode)?t.state.selection.main.head:t.docView.posFromDOM(e.focusNode,e.focusOffset),o=r&&r.node==e.anchorNode&&r.offset==e.anchorOffset||!oe(t.contentDOM,e.anchorNode)?t.state.selection.main.anchor:t.docView.posFromDOM(e.anchorNode,e.anchorOffset),s=t.viewport;if((qe.ios||qe.chrome)&&t.state.selection.main.empty&&i!=o&&(s.from>0||s.toDate.now()-100?e.inputState.lastKeyCode:-1;if(i.bounds){let{from:n,to:a}=i.bounds,l=r.from,h=null;(8===s||qe.android&&i.text.length0&&a>0&&t.charCodeAt(s-1)==e.charCodeAt(a-1);)s--,a--;if("end"==o){i-=s+Math.max(0,r-Math.min(s,a))-r}if(s=s?r-i:0,a=r+(a-s),s=r}else if(a=a?r-i:0,s=r+(s-a),a=r}return{from:r,toA:s,toB:a}}(e.state.doc.sliceString(n,a,Bo),i.text,l-n,h);c&&(qe.chrome&&13==s&&c.toB==c.from+2&&i.text.slice(c.from,c.toB)==Bo+Bo&&c.toB--,o={from:n+c.from,to:n+c.toA,insert:t.of(i.text.slice(c.from,c.toB).split(Bo))})}else n&&(!e.hasFocus&&e.state.facet(Yi)||n.main.eq(r))&&(n=null);if(!o&&!n)return!1;if(!o&&i.typeOver&&!r.empty&&n&&n.main.empty?o={from:r.from,to:r.to,insert:e.state.doc.slice(r.from,r.to)}:o&&o.from>=r.from&&o.to<=r.to&&(o.from!=r.from||o.to!=r.to)&&r.to-r.from-(o.to-o.from)<=4?o={from:r.from,to:r.to,insert:e.state.doc.slice(r.from,o.from).append(o.insert).append(e.state.doc.slice(o.to,r.to))}:(qe.mac||qe.android)&&o&&o.from==o.to&&o.from==r.head-1&&/^\. ?$/.test(o.insert.toString())&&"off"==e.contentDOM.getAttribute("autocorrect")?(n&&2==o.insert.length&&(n=L.single(n.main.anchor-1,n.main.head-1)),o={from:r.from,to:r.to,insert:t.of([" "])}):qe.chrome&&o&&o.from==o.to&&o.from==r.head&&"\n "==o.insert.toString()&&e.lineWrapping&&(n&&(n=L.single(n.main.anchor-1,n.main.head-1)),o={from:r.from,to:r.to,insert:t.of([" "])}),o)return Ro(e,o,n,s);if(n&&!n.main.eq(r)){let t=!1,i="select";return e.inputState.lastSelectionTime>Date.now()-50&&("select"==e.inputState.lastSelectionOrigin&&(t=!0),i=e.inputState.lastSelectionOrigin),e.dispatch({selection:n,scrollIntoView:t,userEvent:i}),!0}return!1}function Ro(t,e,i,o=-1){if(qe.ios&&t.inputState.flushIOSKey(e))return!0;let n=t.state.selection.main;if(qe.android&&(e.to==n.to&&(e.from==n.from||e.from==n.from-1&&" "==t.state.sliceDoc(e.from,n.from))&&1==e.insert.length&&2==e.insert.lines&&ye(t.contentDOM,"Enter",13)||(e.from==n.from-1&&e.to==n.to&&0==e.insert.length||8==o&&e.insert.lengthn.head)&&ye(t.contentDOM,"Backspace",8)||e.from==n.from&&e.to==n.to+1&&0==e.insert.length&&ye(t.contentDOM,"Delete",46)))return!0;let r,s=e.insert.toString();t.inputState.composing>=0&&t.inputState.composing++;let a=()=>r||(r=function(t,e,i){let o,n=t.state,r=n.selection.main;if(e.from>=r.from&&e.to<=r.to&&e.to-e.from>=(r.to-r.from)/3&&(!i||i.main.empty&&i.main.from==e.from+e.insert.length)&&t.inputState.composing<0){let i=r.frome.to?n.sliceDoc(e.to,r.to):"";o=n.replaceSelection(t.state.toText(i+e.insert.sliceString(0,void 0,t.state.lineBreak)+s))}else{let s=n.changes(e),a=i&&i.main.to<=s.newLength?i.main:void 0;if(n.selection.ranges.length>1&&t.inputState.composing>=0&&e.to<=r.to&&e.to>=r.to-10){let l,h=t.state.sliceDoc(e.from,e.to),c=i&&po(t,i.main.head);if(c){let t=e.insert.length-(e.to-e.from);l={from:c.from,to:c.to-t}}else l=t.state.doc.lineAt(r.head);let d=r.to-e.to,f=r.to-r.from;o=n.changeByRange((i=>{if(i.from==r.from&&i.to==r.to)return{changes:s,range:a||i.map(s)};let o=i.to-d,c=o-h.length;if(i.to-i.from!=f||t.state.sliceDoc(c,o)!=h||i.to>=l.from&&i.from<=l.to)return{range:i};let u=n.changes({from:c,to:o,insert:e.insert}),g=i.to-r.to;return{changes:u,range:a?L.range(Math.max(0,a.anchor+g),Math.max(0,a.head+g)):i.map(u)}}))}else o={changes:s,selection:a&&n.selection.replaceRange(a)}}let s="input.type";(t.composing||t.inputState.compositionPendingChange&&t.inputState.compositionEndedAt>Date.now()-50)&&(t.inputState.compositionPendingChange=!1,s+=".compose",t.inputState.compositionFirstChange&&(s+=".start",t.inputState.compositionFirstChange=!1));return n.update(o,{userEvent:s,scrollIntoView:!0})}(t,e,i));return t.state.facet(Hi).some((i=>i(t,e.from,e.to,s,a)))||t.dispatch(a()),!0}class jo{setSelectionOrigin(t){this.lastSelectionOrigin=t,this.lastSelectionTime=Date.now()}constructor(t){this.view=t,this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.pendingIOSKey=void 0,this.tabFocusMode=-1,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastContextMenu=0,this.scrollHandlers=[],this.handlers=Object.create(null),this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=!1,this.compositionPendingChange=!1,this.mouseSelection=null,this.draggedContent=null,this.handleEvent=this.handleEvent.bind(this),this.notifiedFocused=t.hasFocus,qe.safari&&t.contentDOM.addEventListener("input",(()=>null)),qe.gecko&&function(t){fn.has(t)||(fn.add(t),t.addEventListener("copy",(()=>{})),t.addEventListener("cut",(()=>{})))}(t.contentDOM.ownerDocument)}handleEvent(t){(function(t,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let i,o=e.target;o!=t.contentDOM;o=o.parentNode)if(!o||11==o.nodeType||(i=Me.get(o))&&i.ignoreEvent(e))return!1;return!0})(this.view,t)&&!this.ignoreDuringComposition(t)&&("keydown"==t.type&&this.keydown(t)||this.runHandlers(t.type,t))}runHandlers(t,e){let i=this.handlers[t];if(i){for(let t of i.observers)t(this.view,e);for(let t of i.handlers){if(e.defaultPrevented)break;if(t(this.view,e)){e.preventDefault();break}}}}ensureHandlers(t){let e=Ho(t),i=this.handlers,o=this.view.contentDOM;for(let t in e)if("scroll"!=t){let n=!e[t].handlers.length,r=i[t];r&&n!=!r.handlers.length&&(o.removeEventListener(t,this.handleEvent),r=null),r||o.addEventListener(t,this.handleEvent,{passive:n})}for(let t in i)"scroll"==t||e[t]||o.removeEventListener(t,this.handleEvent);this.handlers=e}keydown(t){if(this.lastKeyCode=t.keyCode,this.lastKeyTime=Date.now(),9==t.keyCode&&this.tabFocusMode>-1&&(!this.tabFocusMode||Date.now()<=this.tabFocusMode))return!0;if(this.tabFocusMode>0&&27!=t.keyCode&&zo.indexOf(t.keyCode)<0&&(this.tabFocusMode=-1),qe.android&&qe.chrome&&!t.synthetic&&(13==t.keyCode||8==t.keyCode))return this.view.observer.delayAndroidKey(t.key,t.keyCode),!0;let e;return!qe.ios||t.synthetic||t.altKey||t.metaKey||!((e=Vo.find((e=>e.keyCode==t.keyCode)))&&!t.ctrlKey||qo.indexOf(t.key)>-1&&t.ctrlKey&&!t.shiftKey)?(229!=t.keyCode&&this.view.observer.forceFlush(),!1):(this.pendingIOSKey=e||t,setTimeout((()=>this.flushIOSKey()),250),!0)}flushIOSKey(t){let e=this.pendingIOSKey;return!!e&&(!("Enter"==e.key&&t&&t.from0||!!(qe.safari&&!qe.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100)&&(this.compositionPendingKey=!1,!0))}startMouseSelection(t){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=t}update(t){this.view.observer.update(t),this.mouseSelection&&this.mouseSelection.update(t),this.draggedContent&&t.docChanged&&(this.draggedContent=this.draggedContent.map(t.changes)),t.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function Wo(t,e){return(i,o)=>{try{return e.call(t,o,i)}catch(t){Xi(i.state,t)}}}function Ho(t){let e=Object.create(null);function i(t){return e[t]||(e[t]={observers:[],handlers:[]})}for(let e of t){let t=e.spec;if(t&&t.domEventHandlers)for(let o in t.domEventHandlers){let n=t.domEventHandlers[o];n&&i(o).handlers.push(Wo(e.value,n))}if(t&&t.domEventObservers)for(let o in t.domEventObservers){let n=t.domEventObservers[o];n&&i(o).observers.push(Wo(e.value,n))}}for(let t in $o)i(t).handlers.push($o[t]);for(let t in Uo)i(t).observers.push(Uo[t]);return e}const Vo=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],qo="dthko",zo=[16,17,18,20,91,92,224,225];function Ko(t){return.7*Math.max(0,t)+8}class _o{constructor(t,e,i,o){this.view=t,this.startEvent=e,this.style=i,this.mustSelect=o,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=e,this.scrollParents=function(t){let e,i,o=t.ownerDocument;for(let n=t.parentNode;n&&!(n==o.body||e&&i);)if(1==n.nodeType)!i&&n.scrollHeight>n.clientHeight&&(i=n),!e&&n.scrollWidth>n.clientWidth&&(e=n),n=n.assignedSlot||n.parentNode;else{if(11!=n.nodeType)break;n=n.host}return{x:e,y:i}}(t.contentDOM),this.atoms=t.state.facet(so).map((e=>e(t)));let n=t.contentDOM.ownerDocument;n.addEventListener("mousemove",this.move=this.move.bind(this)),n.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=e.shiftKey,this.multiple=t.state.facet(Ct.allowMultipleSelections)&&function(t,e){let i=t.state.facet(Pi);return i.length?i[0](e):qe.mac?e.metaKey:e.ctrlKey}(t,e),this.dragging=!(!function(t,e){let{main:i}=t.state.selection;if(i.empty)return!1;let o=ie(t.root);if(!o||0==o.rangeCount)return!0;let n=o.getRangeAt(0).getClientRects();for(let t=0;t=e.clientX&&i.top<=e.clientY&&i.bottom>=e.clientY)return!0}return!1}(t,e)||1!=sn(e))&&null}start(t){!1===this.dragging&&this.select(t)}move(t){if(0==t.buttons)return this.destroy();if(this.dragging||null==this.dragging&&(e=this.startEvent,i=t,Math.max(Math.abs(e.clientX-i.clientX),Math.abs(e.clientY-i.clientY))<10))return;var e,i;this.select(this.lastEvent=t);let o=0,n=0,r=0,s=0,a=this.view.win.innerWidth,l=this.view.win.innerHeight;this.scrollParents.x&&({left:r,right:a}=this.scrollParents.x.getBoundingClientRect()),this.scrollParents.y&&({top:s,bottom:l}=this.scrollParents.y.getBoundingClientRect());let h=co(this.view);t.clientX-h.left<=r+6?o=-Ko(r-t.clientX):t.clientX+h.right>=a-6&&(o=Ko(t.clientX-a)),t.clientY-h.top<=s+6?n=-Ko(s-t.clientY):t.clientY+h.bottom>=l-6&&(n=Ko(t.clientY-l)),this.setScrollSpeed(o,n)}up(t){null==this.dragging&&this.select(this.lastEvent),this.dragging||t.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let t=this.view.contentDOM.ownerDocument;t.removeEventListener("mousemove",this.move),t.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(t,e){this.scrollSpeed={x:t,y:e},t||e?this.scrolling<0&&(this.scrolling=setInterval((()=>this.scroll()),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){let{x:t,y:e}=this.scrollSpeed;t&&this.scrollParents.x&&(this.scrollParents.x.scrollLeft+=t,t=0),e&&this.scrollParents.y&&(this.scrollParents.y.scrollTop+=e,e=0),(t||e)&&this.view.win.scrollBy(t,e),!1===this.dragging&&this.select(this.lastEvent)}skipAtoms(t){let e=null;for(let i=0;it.isUserEvent("input.type")))?this.destroy():this.style.update(t)&&setTimeout((()=>this.select(this.lastEvent)),20)}}const $o=Object.create(null),Uo=Object.create(null),Go=qe.ie&&qe.ie_version<15||qe.ios&&qe.webkit_version<604;function Jo(t,e,i){for(let o of t.facet(e))i=o(i,t);return i}function Xo(t,e){e=Jo(t.state,qi,e);let i,{state:o}=t,n=1,r=o.toText(e),s=r.lines==o.selection.ranges.length;if(null!=ln&&o.selection.ranges.every((t=>t.empty))&&ln==r.toString()){let t=-1;i=o.changeByRange((i=>{let a=o.doc.lineAt(i.from);if(a.from==t)return{range:i};t=a.from;let l=o.toText((s?r.line(n++).text:e)+o.lineBreak);return{changes:{from:a.from,insert:l},range:L.cursor(i.from+l.length)}}))}else i=s?o.changeByRange((t=>{let e=r.line(n++);return{changes:{from:t.from,to:t.to,insert:e.text},range:L.cursor(t.from+e.length)}})):o.replaceSelection(r);t.dispatch(i,{userEvent:"input.paste",scrollIntoView:!0})}function Yo(t,e,i,o){if(1==o)return L.cursor(e,i);if(2==o)return function(t,e,i=1){let o=t.charCategorizer(e),n=t.doc.lineAt(e),r=e-n.from;if(0==n.length)return L.cursor(e);0==r?i=1:r==n.length&&(i=-1);let s=r,a=r;i<0?s=g(n.text,r,!1):a=g(n.text,r);let l=o(n.text.slice(s,a));for(;s>0;){let t=g(n.text,s,!1);if(o(n.text.slice(t,s))!=l)break;s=t}for(;a{t.inputState.lastScrollTop=t.scrollDOM.scrollTop,t.inputState.lastScrollLeft=t.scrollDOM.scrollLeft},$o.keydown=(t,e)=>(t.inputState.setSelectionOrigin("select"),27==e.keyCode&&0!=t.inputState.tabFocusMode&&(t.inputState.tabFocusMode=Date.now()+2e3),!1),Uo.touchstart=(t,e)=>{t.inputState.lastTouchTime=Date.now(),t.inputState.setSelectionOrigin("select.pointer")},Uo.touchmove=t=>{t.inputState.setSelectionOrigin("select.pointer")},$o.mousedown=(t,e)=>{if(t.observer.flush(),t.inputState.lastTouchTime>Date.now()-2e3)return!1;let i=null;for(let o of t.state.facet(Ri))if(i=o(t,e),i)break;if(i||0!=e.button||(i=function(t,e){let i=tn(t,e),o=sn(e),n=t.state.selection;return{update(t){t.docChanged&&(i.pos=t.changes.mapPos(i.pos),n=n.map(t.changes))},get(e,r,s){let a,l=tn(t,e),h=Yo(t,l.pos,l.bias,o);if(i.pos!=l.pos&&!r){let e=Yo(t,i.pos,i.bias,o),n=Math.min(e.from,h.from),r=Math.max(e.to,h.to);h=n1&&(a=function(t,e){for(let i=0;i=e)return L.create(t.ranges.slice(0,i).concat(t.ranges.slice(i+1)),t.mainIndex==i?0:t.mainIndex-(t.mainIndex>i?1:0))}return null}(n,l.pos))?a:s?n.addRange(h):L.create([h])}}}(t,e)),i){let o=!t.hasFocus;t.inputState.startMouseSelection(new _o(t,e,i,o)),o&&t.observer.ignore((()=>{be(t.contentDOM);let e=t.root.activeElement;e&&!e.contains(t.contentDOM)&&e.blur()}));let n=t.inputState.mouseSelection;if(n)return n.start(e),!1===n.dragging}return!1};let Qo=(t,e,i)=>e>=i.top&&e<=i.bottom&&t>=i.left&&t<=i.right;function Zo(t,e,i,o){let n=hi.find(t.docView,e);if(!n)return 1;let r=e-n.posAtStart;if(0==r)return 1;if(r==n.length)return-1;let s=n.coordsAt(r,-1);if(s&&Qo(i,o,s))return-1;let a=n.coordsAt(r,1);return a&&Qo(i,o,a)?1:s&&s.bottom>=o?-1:1}function tn(t,e){let i=t.posAtCoords({x:e.clientX,y:e.clientY},!1);return{pos:i,bias:Zo(t,i,e.clientX,e.clientY)}}const en=qe.ie&&qe.ie_version<=11;let on=null,nn=0,rn=0;function sn(t){if(!en)return t.detail;let e=on,i=rn;return on=t,rn=Date.now(),nn=!e||i>Date.now()-400&&Math.abs(e.clientX-t.clientX)<2&&Math.abs(e.clientY-t.clientY)<2?(nn+1)%3:1}function an(t,e,i,o){if(!(i=Jo(t.state,qi,i)))return;let n=t.posAtCoords({x:e.clientX,y:e.clientY},!1),{draggedContent:r}=t.inputState,s=o&&r&&function(t,e){let i=t.state.facet(Ii);return i.length?i[0](e):qe.mac?!e.altKey:!e.ctrlKey}(t,e)?{from:r.from,to:r.to}:null,a={from:n,insert:i},l=t.state.changes(s?[s,a]:a);t.focus(),t.dispatch({changes:l,selection:{anchor:l.mapPos(n,-1),head:l.mapPos(n,1)},userEvent:s?"move.drop":"input.drop"}),t.inputState.draggedContent=null}$o.dragstart=(t,e)=>{let{selection:{main:i}}=t.state;if(e.target.draggable){let o=t.docView.nearest(e.target);if(o&&o.isWidget){let t=o.posAtStart,e=t+o.length;(t>=i.to||e<=i.from)&&(i=L.range(t,e))}}let{inputState:o}=t;return o.mouseSelection&&(o.mouseSelection.dragging=!0),o.draggedContent=i,e.dataTransfer&&(e.dataTransfer.setData("Text",Jo(t.state,zi,t.state.sliceDoc(i.from,i.to))),e.dataTransfer.effectAllowed="copyMove"),!1},$o.dragend=t=>(t.inputState.draggedContent=null,!1),$o.drop=(t,e)=>{if(!e.dataTransfer)return!1;if(t.state.readOnly)return!0;let i=e.dataTransfer.files;if(i&&i.length){let o=Array(i.length),n=0,r=()=>{++n==i.length&&an(t,e,o.filter((t=>null!=t)).join(t.state.lineBreak),!1)};for(let t=0;t{/[\x00-\x08\x0e-\x1f]{2}/.test(e.result)||(o[t]=e.result),r()},e.readAsText(i[t])}return!0}{let i=e.dataTransfer.getData("Text");if(i)return an(t,e,i,!0),!0}return!1},$o.paste=(t,e)=>{if(t.state.readOnly)return!0;t.observer.flush();let i=Go?null:e.clipboardData;return i?(Xo(t,i.getData("text/plain")||i.getData("text/uri-list")),!0):(function(t){let e=t.dom.parentNode;if(!e)return;let i=e.appendChild(document.createElement("textarea"));i.style.cssText="position: fixed; left: -10000px; top: 10px",i.focus(),setTimeout((()=>{t.focus(),i.remove(),Xo(t,i.value)}),50)}(t),!1)};let ln=null;$o.copy=$o.cut=(t,e)=>{let{text:i,ranges:o,linewise:n}=function(t){let e=[],i=[],o=!1;for(let o of t.selection.ranges)o.empty||(e.push(t.sliceDoc(o.from,o.to)),i.push(o));if(!e.length){let n=-1;for(let{from:o}of t.selection.ranges){let r=t.doc.lineAt(o);r.number>n&&(e.push(r.text),i.push({from:r.from,to:Math.min(t.doc.length,r.to+1)})),n=r.number}o=!0}return{text:Jo(t,zi,e.join(t.lineBreak)),ranges:i,linewise:o}}(t.state);if(!i&&!n)return!1;ln=n?i:null,"cut"!=e.type||t.state.readOnly||t.dispatch({changes:o,scrollIntoView:!0,userEvent:"delete.cut"});let r=Go?null:e.clipboardData;return r?(r.clearData(),r.setData("text/plain",i),!0):(function(t,e){let i=t.dom.parentNode;if(!i)return;let o=i.appendChild(document.createElement("textarea"));o.style.cssText="position: fixed; left: -10000px; top: 10px",o.value=e,o.focus(),o.selectionEnd=e.length,o.selectionStart=0,setTimeout((()=>{o.remove(),t.focus()}),50)}(t,i),!1)};const hn=ht.define();function cn(t,e){let i=[];for(let o of t.facet(Vi)){let n=o(t,e);n&&i.push(n)}return i?t.update({effects:i,annotations:hn.of(!0)}):null}function dn(t){setTimeout((()=>{let e=t.hasFocus;if(e!=t.inputState.notifiedFocused){let i=cn(t.state,e);i?t.dispatch(i):t.update([])}}),10)}Uo.focus=t=>{t.inputState.lastFocusTime=Date.now(),t.scrollDOM.scrollTop||!t.inputState.lastScrollTop&&!t.inputState.lastScrollLeft||(t.scrollDOM.scrollTop=t.inputState.lastScrollTop,t.scrollDOM.scrollLeft=t.inputState.lastScrollLeft),dn(t)},Uo.blur=t=>{t.observer.clearSelectionRange(),dn(t)},Uo.compositionstart=Uo.compositionupdate=t=>{t.observer.editContext||(null==t.inputState.compositionFirstChange&&(t.inputState.compositionFirstChange=!0),t.inputState.composing<0&&(t.inputState.composing=0))},Uo.compositionend=t=>{t.observer.editContext||(t.inputState.composing=-1,t.inputState.compositionEndedAt=Date.now(),t.inputState.compositionPendingKey=!0,t.inputState.compositionPendingChange=t.observer.pendingRecords().length>0,t.inputState.compositionFirstChange=null,qe.chrome&&qe.android?t.observer.flushSoon():t.inputState.compositionPendingChange?Promise.resolve().then((()=>t.observer.flush())):setTimeout((()=>{t.inputState.composing<0&&t.docView.hasComposition&&t.update([])}),50))},Uo.contextmenu=t=>{t.inputState.lastContextMenu=Date.now()},$o.beforeinput=(t,e)=>{var i,o;if("insertReplacementText"==e.inputType&&t.observer.editContext){let o=null===(i=e.dataTransfer)||void 0===i?void 0:i.getData("text/plain"),n=e.getTargetRanges();if(o&&n.length){let e=n[0],i=t.posAtDOM(e.startContainer,e.startOffset),r=t.posAtDOM(e.endContainer,e.endOffset);return Ro(t,{from:i,to:r,insert:t.state.toText(o)},null),!0}}let n;if(qe.chrome&&qe.android&&(n=Vo.find((t=>t.inputType==e.inputType)))&&(t.observer.delayAndroidKey(n.key,n.keyCode),"Backspace"==n.key||"Delete"==n.key)){let e=(null===(o=window.visualViewport)||void 0===o?void 0:o.height)||0;setTimeout((()=>{var i;((null===(i=window.visualViewport)||void 0===i?void 0:i.height)||0)>e+10&&t.hasFocus&&(t.contentDOM.blur(),t.focus())}),100)}return qe.ios&&"deleteContentForward"==e.inputType&&t.observer.flushSoon(),qe.safari&&"insertText"==e.inputType&&t.inputState.composing>=0&&setTimeout((()=>Uo.compositionend(t,e)),20),!1};const fn=new Set;const un=["pre-wrap","normal","pre-line","break-spaces"];let gn=!1;function mn(){gn=!1}class pn{constructor(e){this.lineWrapping=e,this.doc=t.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30}heightForGap(t,e){let i=this.doc.lineAt(e).number-this.doc.lineAt(t).number+1;return this.lineWrapping&&(i+=Math.max(0,Math.ceil((e-t-i*this.lineLength*.5)/this.lineLength))),this.lineHeight*i}heightForLine(t){if(!this.lineWrapping)return this.lineHeight;return(1+Math.max(0,Math.ceil((t-this.lineLength)/(this.lineLength-5))))*this.lineHeight}setDoc(t){return this.doc=t,this}mustRefreshForWrapping(t){return un.indexOf(t)>-1!=this.lineWrapping}mustRefreshForHeights(t){let e=!1;for(let i=0;i-1,a=Math.round(e)!=Math.round(this.lineHeight)||this.lineWrapping!=s;if(this.lineWrapping=s,this.lineHeight=e,this.charWidth=i,this.textHeight=o,this.lineLength=n,a){this.heightSamples={};for(let t=0;t0}set outdated(t){this.flags=(t?2:0)|-3&this.flags}setHeight(t){this.height!=t&&(Math.abs(this.height-t)>wn&&(gn=!0),this.height=t)}replace(t,e,i){return xn.of(i)}decomposeLeft(t,e){e.push(this)}decomposeRight(t,e){e.push(this)}applyChanges(t,e,i,o){let n=this,r=i.doc;for(let s=o.length-1;s>=0;s--){let{fromA:a,toA:l,fromB:h,toB:c}=o[s],d=n.lineAt(a,yn.ByPosNoHeight,i.setDoc(e),0,0),f=d.to>=l?d:n.lineAt(l,yn.ByPosNoHeight,i,0,0);for(c+=f.to-l,l=f.to;s>0&&d.from<=o[s-1].toA;)a=o[s-1].fromA,h=o[s-1].fromB,s--,a2*n){let n=t[e-1];n.break?t.splice(--e,1,n.left,null,n.right):t.splice(--e,1,n.left,n.right),i+=1+n.break,o-=n.size}else{if(!(n>2*o))break;{let e=t[i];e.break?t.splice(i,1,e.left,null,e.right):t.splice(i,1,e.left,e.right),i+=2+e.break,n-=e.size}}else if(o=n&&r(this.blockAt(0,i,o,n))}updateHeight(t,e=0,i=!1,o){return o&&o.from<=e&&o.more&&this.setHeight(o.heights[o.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class Cn extends Sn{constructor(t,e){super(t,e,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(t,e,i,o){return new vn(o,this.length,i,this.height,this.breaks)}replace(t,e,i){let o=i[0];return 1==i.length&&(o instanceof Cn||o instanceof An&&4&o.flags)&&Math.abs(this.length-o.length)<10?(o instanceof An?o=new Cn(o.length,this.height):o.height=this.height,this.outdated||(o.outdated=!1),o):xn.of(i)}updateHeight(t,e=0,i=!1,o){return o&&o.from<=e&&o.more?this.setHeight(o.heights[o.index++]):(i||this.outdated)&&this.setHeight(Math.max(this.widgetHeight,t.heightForLine(this.length-this.collapsed))+this.breaks*t.lineHeight),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class An extends xn{constructor(t){super(t,0)}heightMetrics(t,e){let i,o=t.doc.lineAt(e).number,n=t.doc.lineAt(e+this.length).number,r=n-o+1,s=0;if(t.lineWrapping){let e=Math.min(this.height,t.lineHeight*r);i=e/r,this.length>r+1&&(s=(this.height-e)/(this.length-r-1))}else i=this.height/r;return{firstLine:o,lastLine:n,perLine:i,perChar:s}}blockAt(t,e,i,o){let{firstLine:n,lastLine:r,perLine:s,perChar:a}=this.heightMetrics(e,o);if(e.lineWrapping){let n=o+(t0){let t=i[i.length-1];t instanceof An?i[i.length-1]=new An(t.length+o):i.push(null,new An(o-1))}if(t>0){let e=i[0];e instanceof An?i[0]=new An(t+e.length):i.unshift(new An(t-1),null)}return xn.of(i)}decomposeLeft(t,e){e.push(new An(t-1),null)}decomposeRight(t,e){e.push(null,new An(this.length-t-1))}updateHeight(t,e=0,i=!1,o){let n=e+this.length;if(o&&o.from<=e+this.length&&o.more){let i=[],r=Math.max(e,o.from),s=-1;for(o.from>e&&i.push(new An(o.from-e-1).updateHeight(t,e));r<=n&&o.more;){let e=t.doc.lineAt(r).length;i.length&&i.push(null);let n=o.heights[o.index++];-1==s?s=n:Math.abs(n-s)>=wn&&(s=-2);let a=new Cn(e,n);a.outdated=!1,i.push(a),r+=e+1}r<=n&&i.push(null,new An(n-r).updateHeight(t,r));let a=xn.of(i);return(s<0||Math.abs(a.height-this.height)>=wn||Math.abs(s-this.heightMetrics(t,e).perLine)>=wn)&&(gn=!0),kn(this,a)}return(i||this.outdated)&&(this.setHeight(t.heightForGap(e,e+this.length)),this.outdated=!1),this}toString(){return`gap(${this.length})`}}class Mn extends xn{constructor(t,e,i){super(t.length+e+i.length,t.height+i.height,e|(t.outdated||i.outdated?2:0)),this.left=t,this.right=i,this.size=t.size+i.size}get break(){return 1&this.flags}blockAt(t,e,i,o){let n=i+this.left.height;return ts))return l;let h=e==yn.ByPosNoHeight?yn.ByPosNoHeight:yn.ByPos;return a?l.join(this.right.lineAt(s,h,i,r,s)):this.left.lineAt(s,h,i,o,n).join(l)}forEachLine(t,e,i,o,n,r){let s=o+this.left.height,a=n+this.left.length+this.break;if(this.break)t=a&&this.right.forEachLine(t,e,i,s,a,r);else{let l=this.lineAt(a,yn.ByPos,i,o,n);t=t&&l.from<=e&&r(l),e>l.to&&this.right.forEachLine(l.to+1,e,i,s,a,r)}}replace(t,e,i){let o=this.left.length+this.break;if(ethis.left.length)return this.balanced(this.left,this.right.replace(t-o,e-o,i));let n=[];t>0&&this.decomposeLeft(t,n);let r=n.length;for(let t of i)n.push(t);if(t>0&&Dn(n,r-1),e=i&&e.push(null)),t>i&&this.right.decomposeLeft(t-i,e)}decomposeRight(t,e){let i=this.left.length,o=i+this.break;if(t>=o)return this.right.decomposeRight(t-o,e);t2*e.size||e.size>2*t.size?xn.of(this.break?[t,null,e]:[t,e]):(this.left=kn(this.left,t),this.right=kn(this.right,e),this.setHeight(t.height+e.height),this.outdated=t.outdated||e.outdated,this.size=t.size+e.size,this.length=t.length+this.break+e.length,this)}updateHeight(t,e=0,i=!1,o){let{left:n,right:r}=this,s=e+n.length+this.break,a=null;return o&&o.from<=e+n.length&&o.more?a=n=n.updateHeight(t,e,i,o):n.updateHeight(t,e,i),o&&o.from<=s+r.length&&o.more?a=r=r.updateHeight(t,s,i,o):r.updateHeight(t,s,i),a?this.balanced(n,r):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function Dn(t,e){let i,o;null==t[e]&&(i=t[e-1])instanceof An&&(o=t[e+1])instanceof An&&t.splice(e-1,3,new An(i.length+1+o.length))}class Nn{constructor(t,e){this.pos=t,this.oracle=e,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=t}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(t,e){if(this.lineStart>-1){let t=Math.min(e,this.lineEnd),i=this.nodes[this.nodes.length-1];i instanceof Cn?i.length+=t-this.pos:(t>this.pos||!this.isCovered)&&this.nodes.push(new Cn(t-this.pos,-1)),this.writtenTo=t,e>t&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=e}point(t,e,i){if(t=5)&&this.addLineDeco(o,n,r)}else e>t&&this.span(t,e);this.lineEnd>-1&&this.lineEnd-1)return;let{from:t,to:e}=this.oracle.doc.lineAt(this.pos);this.lineStart=t,this.lineEnd=e,this.writtenTot&&this.nodes.push(new Cn(this.pos-t,-1)),this.writtenTo=this.pos}blankContent(t,e){let i=new An(e-t);return this.oracle.doc.lineAt(t).to==e&&(i.flags|=4),i}ensureLine(){this.enterLine();let t=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(t instanceof Cn)return t;let e=new Cn(0,-1);return this.nodes.push(e),e}addBlock(t){this.enterLine();let e=t.deco;e&&e.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(t),this.writtenTo=this.pos=this.pos+t.length,e&&e.endSide>0&&(this.covering=t)}addLineDeco(t,e,i){let o=this.ensureLine();o.length+=i,o.collapsed+=i,o.widgetHeight=Math.max(o.widgetHeight,t),o.breaks+=e,this.writtenTo=this.pos=this.pos+i}finish(t){let e=0==this.nodes.length?null:this.nodes[this.nodes.length-1];!(this.lineStart>-1)||e instanceof Cn||this.isCovered?(this.writtenToi.clientHeight||i.scrollWidth>i.clientWidth)&&"visible"!=o.overflow){let o=i.getBoundingClientRect();r=Math.max(r,o.left),s=Math.min(s,o.right),a=Math.max(a,o.top),l=Math.min(e==t.parentNode?n.innerHeight:l,o.bottom)}e="absolute"==o.position||"fixed"==o.position?i.offsetParent:i.parentNode}else{if(11!=e.nodeType)break;e=e.host}return{left:r-i.left,right:Math.max(r,s)-i.left,top:a-(i.top+e),bottom:Math.max(a,l)-(i.top+e)}}function Bn(t,e){let i=t.getBoundingClientRect();return{left:0,right:i.right-i.left,top:e,bottom:i.bottom-(i.top+e)}}class En{constructor(t,e,i){this.from=t,this.to=e,this.size=i}static same(t,e){if(t.length!=e.length)return!1;for(let i=0;i"function"!=typeof t&&"cm-lineWrapping"==t.class));this.heightOracle=new pn(i),this.stateDeco=e.facet(no).filter((t=>"function"!=typeof t)),this.heightMap=xn.empty().applyChanges(this.stateDeco,t.empty,this.heightOracle.setDoc(e.doc),[new uo(0,0,0,e.doc.length)]);for(let t=0;t<2&&(this.viewport=this.getViewport(0,null),this.updateForViewport());t++);this.updateViewportLines(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=oi.set(this.lineGaps.map((t=>t.draw(this,!1)))),this.computeVisibleRanges()}updateForViewport(){let t=[this.viewport],{main:e}=this.state.selection;for(let i=0;i<=1;i++){let o=i?e.head:e.anchor;if(!t.some((({from:t,to:e})=>o>=t&&o<=e))){let{from:e,to:i}=this.lineBlockAt(o);t.push(new Pn(e,i))}}return this.viewports=t.sort(((t,e)=>t.from-e.from)),this.updateScaler()}updateScaler(){let t=this.scaler;return this.scaler=this.heightMap.height<=7e6?jn:new Wn(this.heightOracle,this.heightMap,this.viewports),t.eq(this.scaler)?0:2}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,(t=>{this.viewportLines.push(Hn(t,this.scaler))}))}update(t,e=null){this.state=t.state;let i=this.stateDeco;this.stateDeco=this.state.facet(no).filter((t=>"function"!=typeof t));let o=t.changedRanges,n=uo.extendWithRanges(o,function(t,e,i){let o=new On;return Tt.compare(t,e,i,o,0),o.changes}(i,this.stateDeco,t?t.changes:A.empty(this.state.doc.length))),r=this.heightMap.height,s=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);mn(),this.heightMap=this.heightMap.applyChanges(this.stateDeco,t.startState.doc,this.heightOracle.setDoc(this.state.doc),n),(this.heightMap.height!=r||gn)&&(t.flags|=2),s?(this.scrollAnchorPos=t.changes.mapPos(s.from,-1),this.scrollAnchorHeight=s.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=this.heightMap.height);let a=n.length?this.mapViewport(this.viewport,t.changes):this.viewport;(e&&(e.range.heada.to)||!this.viewportIsAppropriate(a))&&(a=this.getViewport(0,e));let l=a.from!=this.viewport.from||a.to!=this.viewport.to;this.viewport=a,t.flags|=this.updateForViewport(),(l||!t.changes.empty||2&t.flags)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,t.changes))),t.flags|=this.computeVisibleRanges(),e&&(this.scrollTarget=e),!this.mustEnforceCursorAssoc&&t.selectionSet&&t.view.lineWrapping&&t.state.selection.main.empty&&t.state.selection.main.assoc&&!t.state.facet(_i)&&(this.mustEnforceCursorAssoc=!0)}measure(e){let i=e.contentDOM,o=window.getComputedStyle(i),n=this.heightOracle,r=o.whiteSpace;this.defaultTextDirection="rtl"==o.direction?mi.RTL:mi.LTR;let s=this.heightOracle.mustRefreshForWrapping(r),a=i.getBoundingClientRect(),l=s||this.mustMeasureContent||this.contentDOMHeight!=a.height;this.contentDOMHeight=a.height,this.mustMeasureContent=!1;let h=0,c=0;if(a.width&&a.height){let{scaleX:t,scaleY:e}=ue(i,a);(t>.005&&Math.abs(this.scaleX-t)>.005||e>.005&&Math.abs(this.scaleY-e)>.005)&&(this.scaleX=t,this.scaleY=e,h|=8,s=l=!0)}let d=(parseInt(o.paddingTop)||0)*this.scaleY,f=(parseInt(o.paddingBottom)||0)*this.scaleY;this.paddingTop==d&&this.paddingBottom==f||(this.paddingTop=d,this.paddingBottom=f,h|=10),this.editorWidth!=e.scrollDOM.clientWidth&&(n.lineWrapping&&(l=!0),this.editorWidth=e.scrollDOM.clientWidth,h|=8);let u=e.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=u&&(this.scrollAnchorHeight=-1,this.scrollTop=u),this.scrolledToBottom=xe(e.scrollDOM);let g=(this.printing?Bn:Tn)(i,this.paddingTop),m=g.top-this.pixelViewport.top,p=g.bottom-this.pixelViewport.bottom;this.pixelViewport=g;let b=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(b!=this.inView&&(this.inView=b,b&&(l=!0)),!this.inView&&!this.scrollTarget)return 0;let v=a.width;if(this.contentDOMWidth==v&&this.editorHeight==e.scrollDOM.clientHeight||(this.contentDOMWidth=a.width,this.editorHeight=e.scrollDOM.clientHeight,h|=8),l){let i=e.docView.measureVisibleLineHeights(this.viewport);if(n.mustRefreshForHeights(i)&&(s=!0),s||n.lineWrapping&&Math.abs(v-this.contentDOMWidth)>n.charWidth){let{lineHeight:t,charWidth:o,textHeight:a}=e.docView.measureTextSize();s=t>0&&n.refresh(r,t,o,a,v/o,i),s&&(e.docView.minWidth=0,h|=8)}m>0&&p>0?c=Math.max(m,p):m<0&&p<0&&(c=Math.min(m,p)),mn();for(let o of this.viewports){let r=o.from==this.viewport.from?i:e.docView.measureVisibleLineHeights(o);this.heightMap=(s?xn.empty().applyChanges(this.stateDeco,t.empty,this.heightOracle,[new uo(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(n,0,s,new bn(o.from,r))}gn&&(h|=2)}let y=!this.viewportIsAppropriate(this.viewport,c)||this.scrollTarget&&(this.scrollTarget.range.headthis.viewport.to);return y&&(2&h&&(h|=this.updateScaler()),this.viewport=this.getViewport(c,this.scrollTarget),h|=this.updateForViewport()),(2&h||y)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(s?[]:this.lineGaps,e)),h|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,e.docView.enforceCursorAssoc()),h}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(t,e){let i=.5-Math.max(-.5,Math.min(.5,t/1e3/2)),o=this.heightMap,n=this.heightOracle,{visibleTop:r,visibleBottom:s}=this,a=new Pn(o.lineAt(r-1e3*i,yn.ByHeight,n,0,0).from,o.lineAt(s+1e3*(1-i),yn.ByHeight,n,0,0).to);if(e){let{head:t}=e.range;if(ta.to){let i,r=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),s=o.lineAt(t,yn.ByPos,n,0,0);i="center"==e.y?(s.top+s.bottom)/2-r/2:"start"==e.y||"nearest"==e.y&&t=s+Math.max(10,Math.min(i,250)))&&o>r-2e3&&n>1,r=o<<1;if(this.defaultTextDirection!=mi.LTR&&!i)return[];let s=[],a=(o,r,l,h)=>{if(r-oo&&tt.from>=l.from&&t.to<=l.to&&Math.abs(t.from-o)t.frome))));if(!f){if(rt.from<=r&&t.to>=r))){let t=e.moveToLineBoundary(L.cursor(r),!1,!0).head;t>o&&(r=t)}f=new En(o,r,this.gapSize(l,o,r,h))}s.push(f)},l=t=>{if(t.lengthn&&(o.push({from:n,to:t}),r+=t-n),n=e}},20),nt.from&&a(t.from,n,t,e),st.draw(this,this.heightOracle.lineWrapping)))))}computeVisibleRanges(){let t=this.stateDeco;this.lineGaps.length&&(t=t.concat(this.lineGapDeco));let e=[];Tt.spans(t,this.viewport.from,this.viewport.to,{span(t,i){e.push({from:t,to:i})},point(){}},20);let i=e.length!=this.visibleRanges.length||this.visibleRanges.some(((t,i)=>t.from!=e[i].from||t.to!=e[i].to));return this.visibleRanges=e,i?4:0}lineBlockAt(t){return t>=this.viewport.from&&t<=this.viewport.to&&this.viewportLines.find((e=>e.from<=t&&e.to>=t))||Hn(this.heightMap.lineAt(t,yn.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(t){return t>=this.viewportLines[0].top&&t<=this.viewportLines[this.viewportLines.length-1].bottom&&this.viewportLines.find((e=>e.top<=t&&e.bottom>=t))||Hn(this.heightMap.lineAt(this.scaler.fromDOM(t),yn.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(t){let e=this.lineBlockAtHeight(t+8);return e.from>=this.viewport.from||this.viewportLines[0].top-t>200?e:this.viewportLines[0]}elementAtHeight(t){return Hn(this.heightMap.blockAt(this.scaler.fromDOM(t),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class Pn{constructor(t,e){this.from=t,this.to=e}}function In({total:t,ranges:e},i){if(i<=0)return e[0].from;if(i>=1)return e[e.length-1].to;let o=Math.floor(t*i);for(let t=0;;t++){let{from:i,to:n}=e[t],r=n-i;if(o<=r)return i+o;o-=r}}function Rn(t,e){let i=0;for(let{from:o,to:n}of t.ranges){if(e<=n){i+=e-o;break}i+=n-o}return i/t.total}const jn={toDOM:t=>t,fromDOM:t=>t,scale:1,eq(t){return t==this}};class Wn{constructor(t,e,i){let o=0,n=0,r=0;this.viewports=i.map((({from:i,to:n})=>{let r=e.lineAt(i,yn.ByPos,t,0,0).top,s=e.lineAt(n,yn.ByPos,t,0,0).bottom;return o+=s-r,{from:i,to:n,top:r,bottom:s,domTop:0,domBottom:0}})),this.scale=(7e6-o)/(e.height-o);for(let t of this.viewports)t.domTop=r+(t.top-n)*this.scale,r=t.domBottom=t.domTop+(t.bottom-t.top),n=t.bottom}toDOM(t){for(let e=0,i=0,o=0;;e++){let n=ee.from==t.viewports[i].from&&e.to==t.viewports[i].to)))}}function Hn(t,e){if(1==e.scale)return t;let i=e.toDOM(t.top),o=e.toDOM(t.bottom);return new vn(t.from,t.length,i,o-i,Array.isArray(t._content)?t._content.map((t=>Hn(t,e))):t._content)}const Vn=I.define({combine:t=>t.join(" ")}),qn=I.define({combine:t=>t.indexOf(!0)>-1}),zn=Ut.newName(),Kn=Ut.newName(),_n=Ut.newName(),$n={"&light":"."+Kn,"&dark":"."+_n};function Un(t,e,i){return new Ut(e,{finish:e=>/&/.test(e)?e.replace(/&\w*/,(e=>{if("&"==e)return t;if(!i||!i[e])throw new RangeError(`Unsupported selector: ${e}`);return i[e]})):t+" "+e})}const Gn=Un("."+zn,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0,overflowAnchor:"none"},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-iso":{unicodeBidi:"isolate"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",insetInlineStart:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0,zIndex:300},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace:before":{content:"attr(data-display)",position:"absolute",pointerEvents:"none",color:"#888"},".cm-highlightTab":{backgroundImage:'url(\'data:image/svg+xml,\')',backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},$n),Jn={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},Xn=qe.ie&&qe.ie_version<=11;class Yn{constructor(t){this.view=t,this.active=!1,this.editContext=null,this.selectionRange=new ge,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.printQuery=null,this.parentCheck=-1,this.dom=t.contentDOM,this.observer=new MutationObserver((e=>{for(let t of e)this.queue.push(t);(qe.ie&&qe.ie_version<=11||qe.ios&&t.composing)&&e.some((t=>"childList"==t.type&&t.removedNodes.length||"characterData"==t.type&&t.oldValue.length>t.target.nodeValue.length))?this.flushSoon():this.flush()})),!window.EditContext||!1===t.constructor.EDIT_CONTEXT||qe.chrome&&qe.chrome_version<126||(this.editContext=new tr(t),t.state.facet(Yi)&&(t.contentDOM.editContext=this.editContext.editContext)),Xn&&(this.onCharData=t=>{this.queue.push({target:t.target,type:"characterData",oldValue:t.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),window.matchMedia&&(this.printQuery=window.matchMedia("print")),"function"==typeof ResizeObserver&&(this.resizeScroll=new ResizeObserver((()=>{var t;(null===(t=this.view.docView)||void 0===t?void 0:t.lastUpdate){this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),t.length>0&&t[t.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))}),{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver((t=>{t.length>0&&t[t.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))}),{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(t){this.view.inputState.runHandlers("scroll",t),this.intersecting&&this.view.measure()}onScroll(t){this.intersecting&&this.flush(!1),this.editContext&&this.view.requestMeasure(this.editContext.measureReq),this.onScrollChanged(t)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout((()=>{this.resizeTimeout=-1,this.view.requestMeasure()}),50))}onPrint(t){("change"!=t.type&&t.type||t.matches)&&(this.view.viewState.printing=!0,this.view.measure(),setTimeout((()=>{this.view.viewState.printing=!1,this.view.requestMeasure()}),500))}updateGaps(t){if(this.gapIntersection&&(t.length!=this.gaps.length||this.gaps.some(((e,i)=>e!=t[i])))){this.gapIntersection.disconnect();for(let e of t)this.gapIntersection.observe(e);this.gaps=t}}onSelectionChange(t){let e=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:i}=this,o=this.selectionRange;if(i.state.facet(Yi)?i.root.activeElement!=this.dom:!ne(i.dom,o))return;let n=o.anchorNode&&i.docView.nearest(o.anchorNode);n&&n.ignoreEvent(t)?e||(this.selectionChanged=!1):(qe.ie&&qe.ie_version<=11||qe.android&&qe.chrome)&&!i.state.selection.main.empty&&o.focusNode&&se(o.focusNode,o.focusOffset,o.anchorNode,o.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:t}=this,e=ie(t.root);if(!e)return!1;let i=qe.safari&&11==t.root.nodeType&&function(t){let e=t.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}(this.dom.ownerDocument)==this.dom&&function(t,e){if(e.getComposedRanges){let i=e.getComposedRanges(t.root)[0];if(i)return Zn(t,i)}let i=null;function o(t){t.preventDefault(),t.stopImmediatePropagation(),i=t.getTargetRanges()[0]}return t.contentDOM.addEventListener("beforeinput",o,!0),t.dom.ownerDocument.execCommand("indent"),t.contentDOM.removeEventListener("beforeinput",o,!0),i?Zn(t,i):null}(this.view,e)||e;if(!i||this.selectionRange.eq(i))return!1;let o=ne(this.dom,i);return o&&!this.selectionChanged&&t.inputState.lastFocusTime>Date.now()-200&&t.inputState.lastTouchTime{let t=this.delayedAndroidKey;if(t){this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=t.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&t.force&&ye(this.dom,t.key,t.keyCode)}};this.flushingAndroidKey=this.view.win.requestAnimationFrame(t)}this.delayedAndroidKey&&"Enter"!=t||(this.delayedAndroidKey={key:t,keyCode:e,force:this.lastChange{this.delayedFlush=-1,this.flush()})))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let t of this.observer.takeRecords())this.queue.push(t);return this.queue}processRecords(){let t=this.pendingRecords();t.length&&(this.queue=[]);let e=-1,i=-1,o=!1;for(let n of t){let t=this.readMutation(n);t&&(t.typeOver&&(o=!0),-1==e?({from:e,to:i}=t):(e=Math.min(t.from,e),i=Math.max(t.to,i)))}return{from:e,to:i,typeOver:o}}readChange(){let{from:t,to:e,typeOver:i}=this.processRecords(),o=this.selectionChanged&&ne(this.dom,this.selectionRange);if(t<0&&!o)return null;t>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let n=new Po(this.view,t,e,i);return this.view.docView.domChanged={newSel:n.newSel?n.newSel.main:null},n}flush(t=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;t&&this.readSelectionRange();let e=this.readChange();if(!e)return this.view.requestMeasure(),!1;let i=this.view.state,o=Io(this.view,e);return this.view.state==i&&(e.domChanged||e.newSel&&!e.newSel.main.eq(this.view.state.selection.main))&&this.view.update([]),o}readMutation(t){let e=this.view.docView.nearest(t.target);if(!e||e.ignoreMutation(t))return null;if(e.markDirty("attributes"==t.type),"attributes"==t.type&&(e.flags|=4),"childList"==t.type){let i=Qn(e,t.previousSibling||t.target.previousSibling,-1),o=Qn(e,t.nextSibling||t.target.nextSibling,1);return{from:i?e.posAfter(i):e.posAtStart,to:o?e.posBefore(o):e.posAtEnd,typeOver:!1}}return"characterData"==t.type?{from:e.posAtStart,to:e.posAtEnd,typeOver:t.target.nodeValue==t.oldValue}:null}setWindow(t){t!=this.win&&(this.removeWindowListeners(this.win),this.win=t,this.addWindowListeners(this.win))}addWindowListeners(t){t.addEventListener("resize",this.onResize),this.printQuery?this.printQuery.addEventListener?this.printQuery.addEventListener("change",this.onPrint):this.printQuery.addListener(this.onPrint):t.addEventListener("beforeprint",this.onPrint),t.addEventListener("scroll",this.onScroll),t.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(t){t.removeEventListener("scroll",this.onScroll),t.removeEventListener("resize",this.onResize),this.printQuery?this.printQuery.removeEventListener?this.printQuery.removeEventListener("change",this.onPrint):this.printQuery.removeListener(this.onPrint):t.removeEventListener("beforeprint",this.onPrint),t.document.removeEventListener("selectionchange",this.onSelectionChange)}update(t){this.editContext&&(this.editContext.update(t),t.startState.facet(Yi)!=t.state.facet(Yi)&&(t.view.contentDOM.editContext=t.state.facet(Yi)?this.editContext.editContext:null))}destroy(){var t,e,i;this.stop(),null===(t=this.intersection)||void 0===t||t.disconnect(),null===(e=this.gapIntersection)||void 0===e||e.disconnect(),null===(i=this.resizeScroll)||void 0===i||i.disconnect();for(let t of this.scrollTargets)t.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey),this.editContext&&(this.view.contentDOM.editContext=null,this.editContext.destroy())}}function Qn(t,e,i){for(;e;){let o=Me.get(e);if(o&&o.parent==t)return o;let n=e.parentNode;e=n!=t.dom?n:i>0?e.nextSibling:e.previousSibling}return null}function Zn(t,e){let i=e.startContainer,o=e.startOffset,n=e.endContainer,r=e.endOffset,s=t.docView.domAtPos(t.state.selection.main.anchor);return se(s.node,s.offset,n,r)&&([i,o,n,r]=[n,r,i,o]),{anchorNode:i,anchorOffset:o,focusNode:n,focusOffset:r}}class tr{constructor(e){this.from=0,this.to=0,this.pendingContextChange=null,this.handlers=Object.create(null),this.resetRange(e.state);let i=this.editContext=new window.EditContext({text:e.state.doc.sliceString(this.from,this.to),selectionStart:this.toContextPos(Math.max(this.from,Math.min(this.to,e.state.selection.main.anchor))),selectionEnd:this.toContextPos(e.state.selection.main.head)});this.handlers.textupdate=i=>{let{anchor:o}=e.state.selection.main,n={from:this.toEditorPos(i.updateRangeStart),to:this.toEditorPos(i.updateRangeEnd),insert:t.of(i.text.split("\n"))};n.from==this.from&&othis.to&&(n.to=o),(n.from!=n.to||n.insert.length)&&(this.pendingContextChange=n,e.state.readOnly||Ro(e,n,L.single(this.toEditorPos(i.selectionStart),this.toEditorPos(i.selectionEnd))),this.pendingContextChange&&(this.revertPending(e.state),this.setSelection(e.state)))},this.handlers.characterboundsupdate=t=>{let o=[],n=null;for(let i=this.toEditorPos(t.rangeStart),r=this.toEditorPos(t.rangeEnd);i{let i=[];for(let e of t.getTextFormats()){let t=e.underlineStyle,o=e.underlineThickness;if("None"!=t&&"None"!=o){let n=`text-decoration: underline ${"Dashed"==t?"dashed ":"Squiggle"==t?"wavy ":""}${"Thin"==o?1:2}px`;i.push(oi.mark({attributes:{style:n}}).range(this.toEditorPos(e.rangeStart),this.toEditorPos(e.rangeEnd)))}}e.dispatch({effects:Ji.of(oi.set(i))})},this.handlers.compositionstart=()=>{e.inputState.composing<0&&(e.inputState.composing=0,e.inputState.compositionFirstChange=!0)},this.handlers.compositionend=()=>{e.inputState.composing=-1,e.inputState.compositionFirstChange=null};for(let t in this.handlers)i.addEventListener(t,this.handlers[t]);this.measureReq={read:t=>{this.editContext.updateControlBounds(t.contentDOM.getBoundingClientRect());let e=ie(t.root);e&&e.rangeCount&&this.editContext.updateSelectionBounds(e.getRangeAt(0).getBoundingClientRect())}}}applyEdits(t){let e=0,i=!1,o=this.pendingContextChange;return t.changes.iterChanges(((n,r,s,a,l)=>{if(i)return;let h=l.length-(r-n);if(o&&r>=o.to){if(o.from==n&&o.to==r&&o.insert.eq(l))return o=this.pendingContextChange=null,e+=h,void(this.to+=h);o=null,this.revertPending(t.state)}if(n+=e,(r+=e)<=this.from)this.from+=h,this.to+=h;else if(nthis.to||this.to-this.from+l.length>3e4)return void(i=!0);this.editContext.updateText(this.toContextPos(n),this.toContextPos(r),l.toString()),this.to+=h}e+=h})),o&&!i&&this.revertPending(t.state),!i}update(t){let e=this.pendingContextChange;this.applyEdits(t)&&this.rangeIsValid(t.state)?(t.docChanged||t.selectionSet||e)&&this.setSelection(t.state):(this.pendingContextChange=null,this.resetRange(t.state),this.editContext.updateText(0,this.editContext.text.length,t.state.doc.sliceString(this.from,this.to)),this.setSelection(t.state)),(t.geometryChanged||t.docChanged||t.selectionSet)&&t.view.requestMeasure(this.measureReq)}resetRange(t){let{head:e}=t.selection.main;this.from=Math.max(0,e-1e4),this.to=Math.min(t.doc.length,e+1e4)}revertPending(t){let e=this.pendingContextChange;this.pendingContextChange=null,this.editContext.updateText(this.toContextPos(e.from),this.toContextPos(e.from+e.insert.length),t.doc.sliceString(e.from,e.to))}setSelection(t){let{main:e}=t.selection,i=this.toContextPos(Math.max(this.from,Math.min(this.to,e.anchor))),o=this.toContextPos(e.head);this.editContext.selectionStart==i&&this.editContext.selectionEnd==o||this.editContext.updateSelection(i,o)}rangeIsValid(t){let{head:e}=t.selection.main;return!(this.from>0&&e-this.from<500||this.to3e4)}toEditorPos(t){return t+this.from}toContextPos(t){return t-this.from}destroy(){for(let t in this.handlers)this.editContext.removeEventListener(t,this.handlers[t])}}class er{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(t={}){var e;this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),t.parent&&t.parent.appendChild(this.dom);let{dispatch:i}=t;this.dispatchTransactions=t.dispatchTransactions||i&&(t=>t.forEach((t=>i(t,this))))||(t=>this.update(t)),this.dispatch=this.dispatch.bind(this),this._root=t.root||function(t){for(;t;){if(t&&(9==t.nodeType||11==t.nodeType&&t.host))return t;t=t.assignedSlot||t.parentNode}return null}(t.parent)||document,this.viewState=new Fn(t.state||Ct.create(t)),t.scrollTo&&t.scrollTo.is(Gi)&&(this.viewState.scrollTarget=t.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(Zi).map((t=>new eo(t)));for(let t of this.plugins)t.update(this);this.observer=new Yn(this),this.inputState=new jo(this),this.inputState.ensureHandlers(this.plugins),this.docView=new mo(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),(null===(e=document.fonts)||void 0===e?void 0:e.ready)&&document.fonts.ready.then((()=>this.requestMeasure()))}dispatch(...t){let e=1==t.length&&t[0]instanceof ut?t:1==t.length&&Array.isArray(t[0])?t[0]:[this.state.update(...t)];this.dispatchTransactions(e,this)}update(t){if(0!=this.updateState)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let e,i=!1,o=!1,n=this.state;for(let e of t){if(e.startState!=n)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");n=e.state}if(this.destroyed)return void(this.viewState.state=n);let r=this.hasFocus,s=0,a=null;t.some((t=>t.annotation(hn)))?(this.inputState.notifiedFocused=r,s=1):r!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=r,a=cn(n,r),a||(s=1));let l=this.observer.delayedAndroidKey,h=null;if(l?(this.observer.clearDelayedAndroidKey(),h=this.observer.readChange(),(h&&!this.state.doc.eq(n.doc)||!this.state.selection.eq(n.selection))&&(h=null)):this.observer.clear(),n.facet(Ct.phrases)!=this.state.facet(Ct.phrases))return this.setState(n);e=go.create(this,n,t),e.flags|=s;let c=this.viewState.scrollTarget;try{this.updateState=2;for(let e of t){if(c&&(c=c.map(e.changes)),e.scrollIntoView){let{main:t}=e.state.selection;c=new Ui(t.empty?t:L.cursor(t.head,t.head>t.anchor?-1:1))}for(let t of e.effects)t.is(Gi)&&(c=t.value.clip(this.state))}this.viewState.update(e,c),this.bidiCache=nr.update(this.bidiCache,e.changes),e.empty||(this.updatePlugins(e),this.inputState.update(e)),i=this.docView.update(e),this.state.facet(fo)!=this.styleModules&&this.mountStyles(),o=this.updateAttrs(),this.showAnnouncements(t),this.docView.updateSelection(i,t.some((t=>t.isUserEvent("select.pointer"))))}finally{this.updateState=0}if(e.startState.facet(Vn)!=e.state.facet(Vn)&&(this.viewState.mustMeasureContent=!0),(i||o||c||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),i&&this.docViewUpdate(),!e.empty)for(let t of this.state.facet(Wi))try{t(e)}catch(t){Xi(this.state,t,"update listener")}(a||h)&&Promise.resolve().then((()=>{a&&this.state==a.startState&&this.dispatch(a),h&&!Io(this,h)&&l.force&&ye(this.contentDOM,l.key,l.keyCode)}))}setState(t){if(0!=this.updateState)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed)return void(this.viewState.state=t);this.updateState=2;let e=this.hasFocus;try{for(let t of this.plugins)t.destroy(this);this.viewState=new Fn(t),this.plugins=t.facet(Zi).map((t=>new eo(t))),this.pluginMap.clear();for(let t of this.plugins)t.update(this);this.docView.destroy(),this.docView=new mo(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}e&&this.focus(),this.requestMeasure()}updatePlugins(t){let e=t.startState.facet(Zi),i=t.state.facet(Zi);if(e!=i){let o=[];for(let n of i){let i=e.indexOf(n);if(i<0)o.push(new eo(n));else{let e=this.plugins[i];e.mustUpdate=t,o.push(e)}}for(let e of this.plugins)e.mustUpdate!=t&&e.destroy(this);this.plugins=o,this.pluginMap.clear()}else for(let e of this.plugins)e.mustUpdate=t;for(let t=0;t-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey)return this.measureScheduled=-1,void this.requestMeasure();this.measureScheduled=0,t&&this.observer.forceFlush();let e=null,i=this.scrollDOM,o=i.scrollTop*this.scaleY,{scrollAnchorPos:n,scrollAnchorHeight:r}=this.viewState;Math.abs(o-this.viewState.scrollTop)>1&&(r=-1),this.viewState.scrollAnchorHeight=-1;try{for(let t=0;;t++){if(r<0)if(xe(i))n=-1,r=this.viewState.heightMap.height;else{let t=this.viewState.scrollAnchorAt(o);n=t.from,r=t.top}this.updateState=1;let s=this.viewState.measure(this);if(!s&&!this.measureRequests.length&&null==this.viewState.scrollTarget)break;if(t>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let a=[];4&s||([this.measureRequests,a]=[a,this.measureRequests]);let l=a.map((t=>{try{return t.read(this)}catch(t){return Xi(this.state,t),or}})),h=go.create(this,this.state,[]),c=!1;h.flags|=s,e?e.flags|=s:e=h,this.updateState=2,h.empty||(this.updatePlugins(h),this.inputState.update(h),this.updateAttrs(),c=this.docView.update(h),c&&this.docViewUpdate());for(let t=0;t1||t<-1){o+=t,i.scrollTop=o/this.scaleY,r=-1;continue}}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(e&&!e.empty)for(let t of this.state.facet(Wi))t(e)}get themeClasses(){return zn+" "+(this.state.facet(qn)?_n:Kn)+" "+this.state.facet(Vn)}updateAttrs(){let t=rr(this,io,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),e={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(Yi)?"true":"false",class:"cm-content",style:`${qe.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(e["aria-readonly"]="true"),rr(this,oo,e);let i=this.observer.ignore((()=>{let i=Ze(this.contentDOM,this.contentAttrs,e),o=Ze(this.dom,this.editorAttrs,t);return i||o}));return this.editorAttrs=t,this.contentAttrs=e,i}showAnnouncements(t){let e=!0;for(let i of t)for(let t of i.effects)if(t.is(er.announce)){e&&(this.announceDOM.textContent=""),e=!1,this.announceDOM.appendChild(document.createElement("div")).textContent=t.value}}mountStyles(){this.styleModules=this.state.facet(fo);let t=this.state.facet(er.cspNonce);Ut.mount(this.root,this.styleModules.concat(Gn).reverse(),t?{nonce:t}:void 0)}readMeasured(){if(2==this.updateState)throw new Error("Reading the editor layout isn't allowed during an update");0==this.updateState&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(t){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame((()=>this.measure()))),t){if(this.measureRequests.indexOf(t)>-1)return;if(null!=t.key)for(let e=0;ee.spec==t))||null),e&&e.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(t){return this.readMeasured(),this.viewState.elementAtHeight(t)}lineBlockAtHeight(t){return this.readMeasured(),this.viewState.lineBlockAtHeight(t)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(t){return this.viewState.lineBlockAt(t)}get contentHeight(){return this.viewState.contentHeight}moveByChar(t,e,i){return To(this,t,No(this,t,e,i))}moveByGroup(t,e){return To(this,t,No(this,t,e,(e=>function(t,e,i){let o=t.state.charCategorizer(e),n=o(i);return t=>{let e=o(t);return n==wt.Space&&(n=e),n==e}}(this,t.head,e))))}visualLineSide(t,e){let i=this.bidiSpans(t),o=this.textDirectionAt(t.from),n=i[e?i.length-1:0];return L.cursor(n.side(e,o)+t.from,n.forward(!e,o)?1:-1)}moveToLineBoundary(t,e,i=!0){return function(t,e,i,o){let n=Do(t,e.head),r=o&&n.type==ii.Text&&(t.lineWrapping||n.widgetLineBreaks)?t.coordsAtPos(e.assoc<0&&e.head>n.from?e.head-1:e.head):null;if(r){let e=t.dom.getBoundingClientRect(),o=t.textDirectionAt(n.from),s=t.posAtCoords({x:i==(o==mi.LTR)?e.right-1:e.left+1,y:(r.top+r.bottom)/2});if(null!=s)return L.cursor(s,i?-1:1)}return L.cursor(i?n.to:n.from,i?-1:1)}(this,t,e,i)}moveVertically(t,e,i){return To(this,t,function(t,e,i,o){let n=e.head,r=i?1:-1;if(n==(i?t.state.doc.length:0))return L.cursor(n,e.assoc);let s,a=e.goalColumn,l=t.contentDOM.getBoundingClientRect(),h=t.coordsAtPos(n,e.assoc||-1),c=t.documentTop;if(h)null==a&&(a=h.left-l.left),s=r<0?h.top:h.bottom;else{let e=t.viewState.lineBlockAt(n);null==a&&(a=Math.min(l.right-l.left,t.defaultCharacterWidth*(n-e.from))),s=(r<0?e.top:e.bottom)+c}let d=l.left+a,f=null!=o?o:t.viewState.heightOracle.textHeight>>1;for(let e=0;;e+=10){let i=s+(f+e)*r,o=Ao(t,{x:d,y:i},!1,r);if(il.bottom||(r<0?on)){let e=t.docView.coordsForChar(o),n=!e||i0)}coordsForChar(t){return this.readMeasured(),this.docView.coordsForChar(t)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(t){return!this.state.facet(Ki)||tthis.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(t))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(t){if(t.length>ir)return Bi(t.length);let e,i=this.textDirectionAt(t.from);for(let o of this.bidiCache)if(o.from==t.from&&o.dir==i&&(o.fresh||Mi(o.isolates,e=lo(this,t))))return o.order;e||(e=lo(this,t));let o=Ti(t.text,i,e);return this.bidiCache.push(new nr(t.from,t.to,i,e,!0,o)),o}get hasFocus(){var t;return(this.dom.ownerDocument.hasFocus()||qe.safari&&(null===(t=this.inputState)||void 0===t?void 0:t.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore((()=>{be(this.contentDOM),this.docView.updateSelection()}))}setRoot(t){this._root!=t&&(this._root=t,this.observer.setWindow((9==t.nodeType?t:t.ownerDocument).defaultView||window),this.mountStyles())}destroy(){this.root.activeElement==this.contentDOM&&this.contentDOM.blur();for(let t of this.plugins)t.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(t,e={}){return Gi.of(new Ui("number"==typeof t?L.cursor(t):t,e.y,e.x,e.yMargin,e.xMargin))}scrollSnapshot(){let{scrollTop:t,scrollLeft:e}=this.scrollDOM,i=this.viewState.scrollAnchorAt(t);return Gi.of(new Ui(L.cursor(i.from),"start","start",i.top-t,e,!0))}setTabFocusMode(t){null==t?this.inputState.tabFocusMode=this.inputState.tabFocusMode<0?0:-1:"boolean"==typeof t?this.inputState.tabFocusMode=t?0:-1:0!=this.inputState.tabFocusMode&&(this.inputState.tabFocusMode=Date.now()+t)}static domEventHandlers(t){return to.define((()=>({})),{eventHandlers:t})}static domEventObservers(t){return to.define((()=>({})),{eventObservers:t})}static theme(t,e){let i=Ut.newName(),o=[Vn.of(i),fo.of(Un(`.${i}`,t))];return e&&e.dark&&o.push(qn.of(!0)),o}static baseTheme(t){return J.lowest(fo.of(Un("."+zn,t,$n)))}static findFromDOM(t){var e;let i=t.querySelector(".cm-content"),o=i&&Me.get(i)||Me.get(t);return(null===(e=null==o?void 0:o.rootView)||void 0===e?void 0:e.view)||null}}er.styleModule=fo,er.inputHandler=Hi,er.clipboardInputFilter=qi,er.clipboardOutputFilter=zi,er.scrollHandler=$i,er.focusChangeEffect=Vi,er.perLineTextDirection=Ki,er.exceptionSink=ji,er.updateListener=Wi,er.editable=Yi,er.mouseSelectionStyle=Ri,er.dragMovesSelection=Ii,er.clickAddsSelectionRange=Pi,er.decorations=no,er.outerDecorations=ro,er.atomicRanges=so,er.bidiIsolatedRanges=ao,er.scrollMargins=ho,er.darkTheme=qn,er.cspNonce=I.define({combine:t=>t.length?t[0]:""}),er.contentAttributes=oo,er.editorAttributes=io,er.lineWrapping=er.contentAttributes.of({class:"cm-lineWrapping"}),er.announce=ft.define();const ir=4096,or={};class nr{constructor(t,e,i,o,n,r){this.from=t,this.to=e,this.dir=i,this.isolates=o,this.fresh=n,this.order=r}static update(t,e){if(e.empty&&!t.some((t=>t.fresh)))return t;let i=[],o=t.length?t[t.length-1].dir:mi.LTR;for(let n=Math.max(0,t.length-10);n=0;n--){let e=o[n],r="function"==typeof e?e(t):e;r&&Xe(r,i)}return i}const sr=qe.mac?"mac":qe.windows?"win":qe.linux?"linux":"key";function ar(t,e,i){return e.altKey&&(t="Alt-"+t),e.ctrlKey&&(t="Ctrl-"+t),e.metaKey&&(t="Meta-"+t),!1!==i&&e.shiftKey&&(t="Shift-"+t),t}const lr=J.default(er.domEventHandlers({keydown:(t,e)=>pr(dr(e.state),t,e,"editor")})),hr=I.define({enables:lr}),cr=new WeakMap;function dr(t){let e=t.facet(hr),i=cr.get(e);return i||cr.set(e,i=function(t,e=sr){let i=Object.create(null),o=Object.create(null),n=(t,e)=>{let i=o[t];if(null==i)o[t]=e;else if(i!=e)throw new Error("Key binding "+t+" is used both as a regular binding and as a multi-stroke prefix")},r=(t,o,r,s,a)=>{var l,h;let c=i[t]||(i[t]=Object.create(null)),d=o.split(/ (?!$)/).map((t=>function(t,e){const i=t.split(/-(?!$)/);let o,n,r,s,a=i[i.length-1];"Space"==a&&(a=" ");for(let t=0;t{let o=ur={view:e,prefix:i,scope:t};return setTimeout((()=>{ur==o&&(ur=null)}),gr),!0}]})}let f=d.join(" ");n(f,!1);let u=c[f]||(c[f]={preventDefault:!1,stopPropagation:!1,run:(null===(h=null===(l=c._any)||void 0===l?void 0:l.run)||void 0===h?void 0:h.slice())||[]});r&&u.run.push(r),s&&(u.preventDefault=!0),a&&(u.stopPropagation=!0)};for(let o of t){let t=o.scope?o.scope.split(" "):["editor"];if(o.any)for(let e of t){let t=i[e]||(i[e]=Object.create(null));t._any||(t._any={preventDefault:!1,stopPropagation:!1,run:[]});let{any:n}=o;for(let e in t)t[e].run.push((t=>n(t,mr)))}let n=o[e]||o.key;if(n)for(let e of t)r(e,n,o.run,o.preventDefault,o.stopPropagation),o.shift&&r(e,"Shift-"+n,o.shift,o.preventDefault,o.stopPropagation)}return i}(e.reduce(((t,e)=>t.concat(e)),[]))),i}function fr(t,e,i){return pr(dr(t.state),e,t,i)}let ur=null;const gr=4e3;let mr=null;function pr(t,e,i,o){mr=e;let n=function(t){var e=!(Qt&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||Zt&&t.shiftKey&&t.key&&1==t.key.length||"Unidentified"==t.key)&&t.key||(t.shiftKey?Yt:Xt)[t.keyCode]||t.key||"Unidentified";return"Esc"==e&&(e="Escape"),"Del"==e&&(e="Delete"),"Left"==e&&(e="ArrowLeft"),"Up"==e&&(e="ArrowUp"),"Right"==e&&(e="ArrowRight"),"Down"==e&&(e="ArrowDown"),e}(e),r=x(y(n,0))==n.length&&" "!=n,s="",a=!1,l=!1,h=!1;ur&&ur.view==i&&ur.scope==o&&(s=ur.prefix+" ",zo.indexOf(e.keyCode)<0&&(l=!0,ur=null));let c,d,f=new Set,u=t=>{if(t){for(let e of t.run)if(!f.has(e)&&(f.add(e),e(i)))return t.stopPropagation&&(h=!0),!0;t.preventDefault&&(t.stopPropagation&&(h=!0),l=!0)}return!1},g=t[o];return g&&(u(g[s+ar(n,e,!r)])?a=!0:r&&(e.altKey||e.metaKey||e.ctrlKey)&&!(qe.windows&&e.ctrlKey&&e.altKey)&&(c=Xt[e.keyCode])&&c!=n?(u(g[s+ar(c,e,!0)])||e.shiftKey&&(d=Yt[e.keyCode])!=n&&d!=c&&u(g[s+ar(d,e,!1)]))&&(a=!0):r&&e.shiftKey&&u(g[s+ar(n,e,!0)])&&(a=!0),!a&&u(g._any)&&(a=!0)),l&&(a=!0),a&&h&&e.stopPropagation(),mr=null,a}class br{constructor(t,e,i,o,n){this.className=t,this.left=e,this.top=i,this.width=o,this.height=n}draw(){let t=document.createElement("div");return t.className=this.className,this.adjust(t),t}update(t,e){return e.className==this.className&&(this.adjust(t),!0)}adjust(t){t.style.left=this.left+"px",t.style.top=this.top+"px",null!=this.width&&(t.style.width=this.width+"px"),t.style.height=this.height+"px"}eq(t){return this.left==t.left&&this.top==t.top&&this.width==t.width&&this.height==t.height&&this.className==t.className}static forRange(t,e,i){if(i.empty){let o=t.coordsAtPos(i.head,i.assoc||1);if(!o)return[];let n=vr(t);return[new br(e,o.left-n.left,o.top-n.top,null,o.bottom-o.top)]}return function(t,e,i){if(i.to<=t.viewport.from||i.from>=t.viewport.to)return[];let o=Math.max(i.from,t.viewport.from),n=Math.min(i.to,t.viewport.to),r=t.textDirection==mi.LTR,s=t.contentDOM,a=s.getBoundingClientRect(),l=vr(t),h=s.querySelector(".cm-line"),c=h&&window.getComputedStyle(h),d=a.left+(c?parseInt(c.paddingLeft)+Math.min(0,parseInt(c.textIndent)):0),f=a.right-(c?parseInt(c.paddingRight):0),u=Do(t,o),g=Do(t,n),m=u.type==ii.Text?u:null,p=g.type==ii.Text?g:null;m&&(t.lineWrapping||u.widgetLineBreaks)&&(m=yr(t,o,1,m));p&&(t.lineWrapping||g.widgetLineBreaks)&&(p=yr(t,n,-1,p));if(m&&p&&m.from==p.from&&m.to==p.to)return v(y(i.from,i.to,m));{let e=m?y(i.from,null,m):w(u,!1),o=p?y(null,i.to,p):w(g,!0),n=[];return(m||u).to<(p||g).from-(m&&p?1:0)||u.widgetLineBreaks>1&&e.bottom+t.defaultLineHeight/2h&&o.from=r)break;a>n&&l(Math.max(t,n),null==e&&t<=h,Math.min(a,r),null==i&&a>=c,s.dir)}if(n=o.to+1,n>=r)break}return 0==a.length&&l(h,null==e,c,null==i,t.textDirection),{top:n,bottom:s,horizontal:a}}function w(t,e){let i=a.top+(e?t.top:t.bottom);return{top:i,bottom:i,horizontal:[]}}}(t,e,i)}}function vr(t){let e=t.scrollDOM.getBoundingClientRect();return{left:(t.textDirection==mi.LTR?e.left:e.right-t.scrollDOM.clientWidth*t.scaleX)-t.scrollDOM.scrollLeft*t.scaleX,top:e.top-t.scrollDOM.scrollTop*t.scaleY}}function yr(t,e,i,o){let n=t.coordsAtPos(e,2*i);if(!n)return o;let r=t.dom.getBoundingClientRect(),s=(n.top+n.bottom)/2,a=t.posAtCoords({x:r.left+1,y:s}),l=t.posAtCoords({x:r.right-1,y:s});return null==a||null==l?o:{from:Math.max(o.from,Math.min(a,l)),to:Math.min(o.to,Math.max(a,l))}}class wr{constructor(t,e){this.view=t,this.layer=e,this.drawn=[],this.scaleX=1,this.scaleY=1,this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=t.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),e.above&&this.dom.classList.add("cm-layer-above"),e.class&&this.dom.classList.add(e.class),this.scale(),this.dom.setAttribute("aria-hidden","true"),this.setOrder(t.state),t.requestMeasure(this.measureReq),e.mount&&e.mount(this.dom,t)}update(t){t.startState.facet(xr)!=t.state.facet(xr)&&this.setOrder(t.state),(this.layer.update(t,this.dom)||t.geometryChanged)&&(this.scale(),t.view.requestMeasure(this.measureReq))}docViewUpdate(t){!1!==this.layer.updateOnDocViewUpdate&&t.requestMeasure(this.measureReq)}setOrder(t){let e=0,i=t.facet(xr);for(;e{return i=t,o=this.drawn[e],!(i.constructor==o.constructor&&i.eq(o));var i,o}))){let e=this.dom.firstChild,i=0;for(let o of t)o.update&&e&&o.constructor&&this.drawn[i].constructor&&o.update(e,this.drawn[i])?(e=e.nextSibling,i++):this.dom.insertBefore(o.draw(),e);for(;e;){let t=e.nextSibling;e.remove(),e=t}this.drawn=t}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}}const xr=I.define();function kr(t){return[to.define((e=>new wr(e,t))),xr.of(t)]}const Sr=!qe.ios,Cr=I.define({combine:t=>At(t,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(t,e)=>Math.min(t,e),drawRangeCursor:(t,e)=>t||e})});function Ar(t={}){return[Cr.of(t),Nr,Tr,Er,_i.of(!0)]}function Mr(t){return t.facet(Cr)}function Dr(t){return t.startState.facet(Cr)!=t.state.facet(Cr)}const Nr=kr({above:!0,markers(t){let{state:e}=t,i=e.facet(Cr),o=[];for(let n of e.selection.ranges){let r=n==e.selection.main;if(n.empty?!r||Sr:i.drawRangeCursor){let e=r?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",i=n.empty?n:L.cursor(n.head,n.head>n.anchor?-1:1);for(let n of br.forRange(t,e,i))o.push(n)}}return o},update(t,e){t.transactions.some((t=>t.selection))&&(e.style.animationName="cm-blink"==e.style.animationName?"cm-blink2":"cm-blink");let i=Dr(t);return i&&Or(t.state,e),t.docChanged||t.selectionSet||i},mount(t,e){Or(e.state,t)},class:"cm-cursorLayer"});function Or(t,e){e.style.animationDuration=t.facet(Cr).cursorBlinkRate+"ms"}const Tr=kr({above:!1,markers:t=>t.state.selection.ranges.map((e=>e.empty?[]:br.forRange(t,"cm-selectionBackground",e))).reduce(((t,e)=>t.concat(e))),update:(t,e)=>t.docChanged||t.selectionSet||t.viewportChanged||Dr(t),class:"cm-selectionLayer"}),Br={".cm-line":{"& ::selection, &::selection":{backgroundColor:"transparent !important"}},".cm-content":{"& :focus":{caretColor:"initial !important","&::selection, & ::selection":{backgroundColor:"Highlight !important"}}}};Sr&&(Br[".cm-line"].caretColor=Br[".cm-content"].caretColor="transparent !important");const Er=J.highest(er.theme(Br)),Lr=ft.define({map:(t,e)=>null==t?null:e.mapPos(t)}),Fr=z.define({create:()=>null,update:(t,e)=>(null!=t&&(t=e.changes.mapPos(t)),e.effects.reduce(((t,e)=>e.is(Lr)?e.value:t),t))}),Pr=to.fromClass(class{constructor(t){this.view=t,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(t){var e;let i=t.state.field(Fr);null==i?null!=this.cursor&&(null===(e=this.cursor)||void 0===e||e.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(t.startState.field(Fr)!=i||t.docChanged||t.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:t}=this,e=t.state.field(Fr),i=null!=e&&t.coordsAtPos(e);if(!i)return null;let o=t.scrollDOM.getBoundingClientRect();return{left:i.left-o.left+t.scrollDOM.scrollLeft*t.scaleX,top:i.top-o.top+t.scrollDOM.scrollTop*t.scaleY,height:i.bottom-i.top}}drawCursor(t){if(this.cursor){let{scaleX:e,scaleY:i}=this.view;t?(this.cursor.style.left=t.left/e+"px",this.cursor.style.top=t.top/i+"px",this.cursor.style.height=t.height/i+"px"):this.cursor.style.left="-100000px"}}destroy(){this.cursor&&this.cursor.remove()}setDropPos(t){this.view.state.field(Fr)!=t&&this.view.dispatch({effects:Lr.of(t)})}},{eventObservers:{dragover(t){this.setDropPos(this.view.posAtCoords({x:t.clientX,y:t.clientY}))},dragleave(t){t.target!=this.view.contentDOM&&this.view.contentDOM.contains(t.relatedTarget)||this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function Ir(){return[Fr,Pr]}function Rr(t,e,i,o,n){e.lastIndex=0;for(let r,s=t.iterRange(i,o),a=i;!s.next().done;a+=s.value.length)if(!s.lineBreak)for(;r=e.exec(s.value);)n(a+r.index,r)}class jr{constructor(t){const{regexp:e,decoration:i,decorate:o,boundary:n,maxLength:r=1e3}=t;if(!e.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=e,o)this.addMatch=(t,e,i,n)=>o(n,i,i+t[0].length,t,e);else if("function"==typeof i)this.addMatch=(t,e,o,n)=>{let r=i(t,e,o);r&&n(o,o+t[0].length,r)};else{if(!i)throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.addMatch=(t,e,o,n)=>n(o,o+t[0].length,i)}this.boundary=n,this.maxLength=r}createDeco(t){let e=new Bt,i=e.add.bind(e);for(let{from:e,to:o}of function(t,e){let i=t.visibleRanges;if(1==i.length&&i[0].from==t.viewport.from&&i[0].to==t.viewport.to)return i;let o=[];for(let{from:n,to:r}of i)n=Math.max(t.state.doc.lineAt(n).from,n-e),r=Math.min(t.state.doc.lineAt(r).to,r+e),o.length&&o[o.length-1].to>=n?o[o.length-1].to=r:o.push({from:n,to:r});return o}(t,this.maxLength))Rr(t.state.doc,this.regexp,e,o,((e,o)=>this.addMatch(o,t,e,i)));return e.finish()}updateDeco(t,e){let i=1e9,o=-1;return t.docChanged&&t.changes.iterChanges(((e,n,r,s)=>{s>t.view.viewport.from&&r1e3?this.createDeco(t.view):o>-1?this.updateRange(t.view,e.map(t.changes),i,o):e}updateRange(t,e,i,o){for(let n of t.visibleRanges){let r=Math.max(n.from,i),s=Math.min(n.to,o);if(s>r){let i=t.state.doc.lineAt(r),o=i.toi.from;r--)if(this.boundary.test(i.text[r-1-i.from])){a=r;break}for(;sc.push(i.range(t,e));if(i==o)for(this.regexp.lastIndex=a-i.from;(h=this.regexp.exec(i.text))&&h.indexthis.addMatch(i,t,e,d)));e=e.update({filterFrom:a,filterTo:l,filter:(t,e)=>tl,add:c})}}return e}}const Wr=null!=/x/.unicode?"gu":"g",Hr=new RegExp("[\0-\b\n--Ÿ­؜​‎‏\u2028\u2029‭‮⁦⁧⁩\ufeff-]",Wr),Vr={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let qr=null;const zr=I.define({combine(t){let e=At(t,{render:null,specialChars:Hr,addSpecialChars:null});return(e.replaceTabs=!function(){var t;if(null==qr&&"undefined"!=typeof document&&document.body){let e=document.body.style;qr=null!=(null!==(t=e.tabSize)&&void 0!==t?t:e.MozTabSize)}return qr||!1}())&&(e.specialChars=new RegExp("\t|"+e.specialChars.source,Wr)),e.addSpecialChars&&(e.specialChars=new RegExp(e.specialChars.source+"|"+e.addSpecialChars.source,Wr)),e}});function Kr(t={}){return[zr.of(t),_r||(_r=to.fromClass(class{constructor(t){this.view=t,this.decorations=oi.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(t.state.facet(zr)),this.decorations=this.decorator.createDeco(t)}makeDecorator(t){return new jr({regexp:t.specialChars,decoration:(e,i,o)=>{let{doc:n}=i.state,r=y(e[0],0);if(9==r){let t=n.lineAt(o),e=i.state.tabSize,r=qt(t.text,e,o-t.from);return oi.replace({widget:new Ur((e-r%e)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[r]||(this.decorationCache[r]=oi.replace({widget:new $r(t,r)}))},boundary:t.replaceTabs?void 0:/[^]/})}update(t){let e=t.state.facet(zr);t.startState.facet(zr)!=e?(this.decorator=this.makeDecorator(e),this.decorations=this.decorator.createDeco(t.view)):this.decorations=this.decorator.updateDeco(t,this.decorations)}},{decorations:t=>t.decorations}))]}let _r=null;class $r extends ei{constructor(t,e){super(),this.options=t,this.code=e}eq(t){return t.code==this.code}toDOM(t){let e=function(t){return t>=32?"•":10==t?"␤":String.fromCharCode(9216+t)}(this.code),i=t.state.phrase("Control character")+" "+(Vr[this.code]||"0x"+this.code.toString(16)),o=this.options.render&&this.options.render(this.code,i,e);if(o)return o;let n=document.createElement("span");return n.textContent=e,n.title=i,n.setAttribute("aria-label",i),n.className="cm-specialChar",n}ignoreEvent(){return!1}}class Ur extends ei{constructor(t){super(),this.width=t}eq(t){return t.width==this.width}toDOM(){let t=document.createElement("span");return t.textContent="\t",t.className="cm-tab",t.style.width=this.width+"px",t}ignoreEvent(){return!1}}const Gr=to.fromClass(class{constructor(){this.height=1e3,this.attrs={style:"padding-bottom: 1000px"}}update(t){let{view:e}=t,i=e.viewState.editorHeight-e.defaultLineHeight-e.documentPadding.top-.5;i>=0&&i!=this.height&&(this.height=i,this.attrs={style:`padding-bottom: ${i}px`})}});function Jr(){return[Gr,oo.of((t=>{var e;return(null===(e=t.plugin(Gr))||void 0===e?void 0:e.attrs)||null}))]}function Xr(){return Qr}const Yr=oi.line({class:"cm-activeLine"}),Qr=to.fromClass(class{constructor(t){this.decorations=this.getDeco(t)}update(t){(t.docChanged||t.selectionSet)&&(this.decorations=this.getDeco(t.view))}getDeco(t){let e=-1,i=[];for(let o of t.state.selection.ranges){let n=t.lineBlockAt(o.head);n.from>e&&(i.push(Yr.range(n.from)),e=n.from)}return oi.set(i)}},{decorations:t=>t.decorations});class Zr extends ei{constructor(t){super(),this.content=t}toDOM(){let t=document.createElement("span");return t.className="cm-placeholder",t.style.pointerEvents="none",t.appendChild("string"==typeof this.content?document.createTextNode(this.content):this.content),"string"==typeof this.content?t.setAttribute("aria-label","placeholder "+this.content):t.setAttribute("aria-hidden","true"),t}coordsAt(t){let e=t.firstChild?re(t.firstChild):[];if(!e.length)return null;let i=window.getComputedStyle(t.parentNode),o=de(e[0],"rtl"!=i.direction),n=parseInt(i.lineHeight);return o.bottom-o.top>1.5*n?{left:o.left,right:o.right,top:o.top,bottom:o.top+n}:o}ignoreEvent(){return!1}}function ts(t){return to.fromClass(class{constructor(e){this.view=e,this.placeholder=t?oi.set([oi.widget({widget:new Zr(t),side:1}).range(0)]):oi.none}get decorations(){return this.view.state.doc.length?oi.none:this.placeholder}},{decorations:t=>t.decorations})}const es=2e3;function is(t,e){let i=t.posAtCoords({x:e.clientX,y:e.clientY},!1),o=t.state.doc.lineAt(i),n=i-o.from,r=n>es?-1:n==o.length?function(t,e){let i=t.coordsAtPos(t.viewport.from);return i?Math.round(Math.abs((i.left-e)/t.defaultCharacterWidth)):-1}(t,e.clientX):qt(o.text,t.state.tabSize,i-o.from);return{line:o.number,col:r,off:n}}function os(t,e){let i=is(t,e),o=t.state.selection;return i?{update(t){if(t.docChanged){let e=t.changes.mapPos(t.startState.doc.line(i.line).from),n=t.state.doc.lineAt(e);i={line:n.number,col:i.col,off:Math.min(i.off,n.length)},o=o.map(t.changes)}},get(e,n,r){let s=is(t,e);if(!s)return o;let a=function(t,e,i){let o=Math.min(e.line,i.line),n=Math.max(e.line,i.line),r=[];if(e.off>es||i.off>es||e.col<0||i.col<0){let s=Math.min(e.off,i.off),a=Math.max(e.off,i.off);for(let e=o;e<=n;e++){let i=t.doc.line(e);i.length<=a&&r.push(L.range(i.from+s,i.to+a))}}else{let s=Math.min(e.col,i.col),a=Math.max(e.col,i.col);for(let e=o;e<=n;e++){let i=t.doc.line(e),o=zt(i.text,s,t.tabSize,!0);if(o<0)r.push(L.cursor(i.to));else{let e=zt(i.text,a,t.tabSize);r.push(L.range(i.from+o,i.from+e))}}}return r}(t.state,i,s);return a.length?r?L.create(a.concat(o.ranges)):L.create(a):o}}:null}function ns(t){let e=(null==t?void 0:t.eventFilter)||(t=>t.altKey&&0==t.button);return er.mouseSelectionStyle.of(((t,i)=>e(i)?os(t,i):null))}const rs={Alt:[18,t=>!!t.altKey],Control:[17,t=>!!t.ctrlKey],Shift:[16,t=>!!t.shiftKey],Meta:[91,t=>!!t.metaKey]},ss={style:"cursor: crosshair"};function as(t={}){let[e,i]=rs[t.key||"Alt"],o=to.fromClass(class{constructor(t){this.view=t,this.isDown=!1}set(t){this.isDown!=t&&(this.isDown=t,this.view.update([]))}},{eventObservers:{keydown(t){this.set(t.keyCode==e||i(t))},keyup(t){t.keyCode!=e&&i(t)||this.set(!1)},mousemove(t){this.set(i(t))}}});return[o,er.contentAttributes.of((t=>{var e;return(null===(e=t.plugin(o))||void 0===e?void 0:e.isDown)?ss:null}))]}const ls="-10000px";class hs{constructor(t,e,i,o){this.facet=e,this.createTooltipView=i,this.removeTooltipView=o,this.input=t.state.facet(e),this.tooltips=this.input.filter((t=>t));let n=null;this.tooltipViews=this.tooltips.map((t=>n=i(t,n)))}update(t,e){var i;let o=t.state.facet(this.facet),n=o.filter((t=>t));if(o===this.input){for(let e of this.tooltipViews)e.update&&e.update(t);return!1}let r=[],s=e?[]:null;for(let i=0;ie[i]=t)),e.length=s.length),this.input=o,this.tooltips=n,this.tooltipViews=r,!0}}function cs(t={}){return fs.of(t)}function ds(t){let{win:e}=t;return{top:0,left:0,bottom:e.innerHeight,right:e.innerWidth}}const fs=I.define({combine:t=>{var e,i,o;return{position:qe.ios?"absolute":(null===(e=t.find((t=>t.position)))||void 0===e?void 0:e.position)||"fixed",parent:(null===(i=t.find((t=>t.parent)))||void 0===i?void 0:i.parent)||null,tooltipSpace:(null===(o=t.find((t=>t.tooltipSpace)))||void 0===o?void 0:o.tooltipSpace)||ds}}}),us=new WeakMap,gs=to.fromClass(class{constructor(t){this.view=t,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let e=t.state.facet(fs);this.position=e.position,this.parent=e.parent,this.classes=t.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.resizeObserver="function"==typeof ResizeObserver?new ResizeObserver((()=>this.measureSoon())):null,this.manager=new hs(t,bs,((t,e)=>this.createTooltip(t,e)),(t=>{this.resizeObserver&&this.resizeObserver.unobserve(t.dom),t.dom.remove()})),this.above=this.manager.tooltips.map((t=>!!t.above)),this.intersectionObserver="function"==typeof IntersectionObserver?new IntersectionObserver((t=>{Date.now()>this.lastTransaction-50&&t.length>0&&t[t.length-1].intersectionRatio<1&&this.measureSoon()}),{threshold:[1]}):null,this.observeIntersection(),t.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let t of this.manager.tooltipViews)this.intersectionObserver.observe(t.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout((()=>{this.measureTimeout=-1,this.maybeMeasure()}),50))}update(t){t.transactions.length&&(this.lastTransaction=Date.now());let e=this.manager.update(t,this.above);e&&this.observeIntersection();let i=e||t.geometryChanged,o=t.state.facet(fs);if(o.position!=this.position&&!this.madeAbsolute){this.position=o.position;for(let t of this.manager.tooltipViews)t.dom.style.position=this.position;i=!0}if(o.parent!=this.parent){this.parent&&this.container.remove(),this.parent=o.parent,this.createContainer();for(let t of this.manager.tooltipViews)this.container.appendChild(t.dom);i=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);i&&this.maybeMeasure()}createTooltip(t,e){let i=t.create(this.view),o=e?e.dom:null;if(i.dom.classList.add("cm-tooltip"),t.arrow&&!i.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let t=document.createElement("div");t.className="cm-tooltip-arrow",i.dom.appendChild(t)}return i.dom.style.position=this.position,i.dom.style.top=ls,i.dom.style.left="0px",this.container.insertBefore(i.dom,o),i.mount&&i.mount(this.view),this.resizeObserver&&this.resizeObserver.observe(i.dom),i}destroy(){var t,e,i;this.view.win.removeEventListener("resize",this.measureSoon);for(let e of this.manager.tooltipViews)e.dom.remove(),null===(t=e.destroy)||void 0===t||t.call(e);this.parent&&this.container.remove(),null===(e=this.resizeObserver)||void 0===e||e.disconnect(),null===(i=this.intersectionObserver)||void 0===i||i.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let t=this.view.dom.getBoundingClientRect(),e=1,i=1,o=!1;if("fixed"==this.position&&this.manager.tooltipViews.length){let{dom:t}=this.manager.tooltipViews[0];if(qe.gecko)o=t.offsetParent!=this.container.ownerDocument.body;else if(t.style.top==ls&&"0px"==t.style.left){let e=t.getBoundingClientRect();o=Math.abs(e.top+1e4)>1||Math.abs(e.left)>1}}if(o||"absolute"==this.position)if(this.parent){let t=this.parent.getBoundingClientRect();t.width&&t.height&&(e=t.width/this.parent.offsetWidth,i=t.height/this.parent.offsetHeight)}else({scaleX:e,scaleY:i}=this.view.viewState);return{editor:t,parent:this.parent?this.container.getBoundingClientRect():t,pos:this.manager.tooltips.map(((t,e)=>{let i=this.manager.tooltipViews[e];return i.getCoords?i.getCoords(t.pos):this.view.coordsAtPos(t.pos)})),size:this.manager.tooltipViews.map((({dom:t})=>t.getBoundingClientRect())),space:this.view.state.facet(fs).tooltipSpace(this.view),scaleX:e,scaleY:i,makeAbsolute:o}}writeMeasure(t){var e;if(t.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let t of this.manager.tooltipViews)t.dom.style.position="absolute"}let{editor:i,space:o,scaleX:n,scaleY:r}=t,s=[];for(let a=0;a=Math.min(i.bottom,o.bottom)||d.rightMath.min(i.right,o.right)+.1){c.style.top=ls;continue}let u=l.arrow?h.dom.querySelector(".cm-tooltip-arrow"):null,g=u?7:0,m=f.right-f.left,p=null!==(e=us.get(h))&&void 0!==e?e:f.bottom-f.top,b=h.offset||ps,v=this.view.textDirection==mi.LTR,y=f.width>o.right-o.left?v?o.left:o.right-f.width:v?Math.max(o.left,Math.min(d.left-(u?14:0)+b.x,o.right-m)):Math.min(Math.max(o.left,d.left-m+(u?14:0)-b.x),o.right-m),w=this.above[a];!l.strictSide&&(w?d.top-(f.bottom-f.top)-b.yo.bottom)&&w==o.bottom-d.bottom>d.top-o.top&&(w=this.above[a]=!w);let x=(w?d.top-o.top:o.bottom-d.bottom)-g;if(xy&&t.topk&&(k=w?t.top-p-2-g:t.bottom+g+2);if("absolute"==this.position?(c.style.top=(k-t.parent.top)/r+"px",c.style.left=(y-t.parent.left)/n+"px"):(c.style.top=k/r+"px",c.style.left=y/n+"px"),u){let t=d.left+(v?b.x:-b.x)-(y+14-7);u.style.left=t/n+"px"}!0!==h.overlap&&s.push({left:y,top:k,right:S,bottom:k+p}),c.classList.toggle("cm-tooltip-above",w),c.classList.toggle("cm-tooltip-below",!w),h.positioned&&h.positioned(t.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let t of this.manager.tooltipViews)t.dom.style.top=ls}},{eventObservers:{scroll(){this.maybeMeasure()}}}),ms=er.baseTheme({".cm-tooltip":{zIndex:100,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:"14px",position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),ps={x:0,y:0},bs=I.define({enables:[gs,ms]}),vs=I.define({combine:t=>t.reduce(((t,e)=>t.concat(e)),[])});class ys{static create(t){return new ys(t)}constructor(t){this.view=t,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new hs(t,vs,((t,e)=>this.createHostedView(t,e)),(t=>t.dom.remove()))}createHostedView(t,e){let i=t.create(this.view);return i.dom.classList.add("cm-tooltip-section"),this.dom.insertBefore(i.dom,e?e.dom.nextSibling:this.dom.firstChild),this.mounted&&i.mount&&i.mount(this.view),i}mount(t){for(let e of this.manager.tooltipViews)e.mount&&e.mount(t);this.mounted=!0}positioned(t){for(let e of this.manager.tooltipViews)e.positioned&&e.positioned(t)}update(t){this.manager.update(t)}destroy(){var t;for(let e of this.manager.tooltipViews)null===(t=e.destroy)||void 0===t||t.call(e)}passProp(t){let e;for(let i of this.manager.tooltipViews){let o=i[t];if(void 0!==o)if(void 0===e)e=o;else if(e!==o)return}return e}get offset(){return this.passProp("offset")}get getCoords(){return this.passProp("getCoords")}get overlap(){return this.passProp("overlap")}get resize(){return this.passProp("resize")}}const ws=bs.compute([vs],(t=>{let e=t.facet(vs);return 0===e.length?null:{pos:Math.min(...e.map((t=>t.pos))),end:Math.max(...e.map((t=>{var e;return null!==(e=t.end)&&void 0!==e?e:t.pos}))),create:ys.create,above:e[0].above,arrow:e.some((t=>t.arrow))}}));class xs{constructor(t,e,i,o,n){this.view=t,this.source=e,this.field=i,this.setHover=o,this.hoverTime=n,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:t.dom,time:0},this.checkHover=this.checkHover.bind(this),t.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),t.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout((()=>this.startHover()),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active.length)return;let t=Date.now()-this.lastMove.time;ti.bottom||e.xi.right+t.defaultCharacterWidth)return;let r=t.bidiSpans(t.state.doc.lineAt(o)).find((t=>t.from<=o&&t.to>=o)),s=r&&r.dir==mi.RTL?-1:1;n=e.x{this.pending==e&&(this.pending=null,!i||Array.isArray(i)&&!i.length||t.dispatch({effects:this.setHover.of(Array.isArray(i)?i:[i])}))}),(e=>Xi(t.state,e,"hover tooltip")))}else!r||Array.isArray(r)&&!r.length||t.dispatch({effects:this.setHover.of(Array.isArray(r)?r:[r])})}get tooltip(){let t=this.view.plugin(gs),e=t?t.manager.tooltips.findIndex((t=>t.create==ys.create)):-1;return e>-1?t.manager.tooltipViews[e]:null}mousemove(t){var e,i;this.lastMove={x:t.clientX,y:t.clientY,target:t.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let{active:o,tooltip:n}=this;if(o.length&&n&&!function(t,e){let i,{left:o,right:n,top:r,bottom:s}=t.getBoundingClientRect();if(i=t.querySelector(".cm-tooltip-arrow")){let t=i.getBoundingClientRect();r=Math.min(t.top,r),s=Math.max(t.bottom,s)}return e.clientX>=o-ks&&e.clientX<=n+ks&&e.clientY>=r-ks&&e.clientY<=s+ks}(n.dom,t)||this.pending){let{pos:n}=o[0]||this.pending,r=null!==(i=null===(e=o[0])||void 0===e?void 0:e.end)&&void 0!==i?i:n;(n==r?this.view.posAtCoords(this.lastMove)==n:function(t,e,i,o,n){let r=t.scrollDOM.getBoundingClientRect(),s=t.documentTop+t.documentPadding.top+t.contentHeight;if(r.left>o||r.rightn||Math.min(r.bottom,s)=e&&a<=i}(this.view,n,r,t.clientX,t.clientY))||(this.view.dispatch({effects:this.setHover.of([])}),this.pending=null)}}mouseleave(t){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1;let{active:e}=this;if(e.length){let{tooltip:e}=this;e&&e.dom.contains(t.relatedTarget)?this.watchTooltipLeave(e.dom):this.view.dispatch({effects:this.setHover.of([])})}}watchTooltipLeave(t){let e=i=>{t.removeEventListener("mouseleave",e),this.active.length&&!this.view.dom.contains(i.relatedTarget)&&this.view.dispatch({effects:this.setHover.of([])})};t.addEventListener("mouseleave",e)}destroy(){clearTimeout(this.hoverTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}}const ks=4;function Ss(t,e={}){let i=ft.define(),o=z.define({create:()=>[],update(t,o){if(t.length&&(e.hideOnChange&&(o.docChanged||o.selection)?t=[]:e.hideOn&&(t=t.filter((t=>!e.hideOn(o,t)))),o.docChanged)){let e=[];for(let i of t){let t=o.changes.mapPos(i.pos,-1,S.TrackDel);if(null!=t){let n=Object.assign(Object.create(null),i);n.pos=t,null!=n.end&&(n.end=o.changes.mapPos(n.end)),e.push(n)}}t=e}for(let e of o.effects)e.is(i)&&(t=e.value),e.is(Ms)&&(t=[]);return t},provide:t=>vs.from(t)});return{active:o,extension:[o,to.define((n=>new xs(n,t,o,i,e.hoverTime||300))),ws]}}function Cs(t,e){let i=t.plugin(gs);if(!i)return null;let o=i.manager.tooltips.indexOf(e);return o<0?null:i.manager.tooltipViews[o]}function As(t){return t.facet(vs).some((t=>t))}const Ms=ft.define(),Ds=Ms.of(null);function Ns(t){let e=t.plugin(gs);e&&e.maybeMeasure()}const Os=I.define({combine(t){let e,i;for(let o of t)e=e||o.topContainer,i=i||o.bottomContainer;return{topContainer:e,bottomContainer:i}}});function Ts(t){return t?[Os.of(t)]:[]}function Bs(t,e){let i=t.plugin(Es),o=i?i.specs.indexOf(e):-1;return o>-1?i.panels[o]:null}const Es=to.fromClass(class{constructor(t){this.input=t.state.facet(Ps),this.specs=this.input.filter((t=>t)),this.panels=this.specs.map((e=>e(t)));let e=t.state.facet(Os);this.top=new Ls(t,!0,e.topContainer),this.bottom=new Ls(t,!1,e.bottomContainer),this.top.sync(this.panels.filter((t=>t.top))),this.bottom.sync(this.panels.filter((t=>!t.top)));for(let t of this.panels)t.dom.classList.add("cm-panel"),t.mount&&t.mount()}update(t){let e=t.state.facet(Os);this.top.container!=e.topContainer&&(this.top.sync([]),this.top=new Ls(t.view,!0,e.topContainer)),this.bottom.container!=e.bottomContainer&&(this.bottom.sync([]),this.bottom=new Ls(t.view,!1,e.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let i=t.state.facet(Ps);if(i!=this.input){let e=i.filter((t=>t)),o=[],n=[],r=[],s=[];for(let i of e){let e,a=this.specs.indexOf(i);a<0?(e=i(t.view),s.push(e)):(e=this.panels[a],e.update&&e.update(t)),o.push(e),(e.top?n:r).push(e)}this.specs=e,this.panels=o,this.top.sync(n),this.bottom.sync(r);for(let t of s)t.dom.classList.add("cm-panel"),t.mount&&t.mount()}else for(let e of this.panels)e.update&&e.update(t)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:t=>er.scrollMargins.of((e=>{let i=e.plugin(t);return i&&{top:i.top.scrollMargin(),bottom:i.bottom.scrollMargin()}}))});class Ls{constructor(t,e,i){this.view=t,this.top=e,this.container=i,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(t){for(let e of this.panels)e.destroy&&t.indexOf(e)<0&&e.destroy();this.panels=t,this.syncDOM()}syncDOM(){if(0==this.panels.length)return void(this.dom&&(this.dom.remove(),this.dom=void 0));if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let t=this.container||this.view.dom;t.insertBefore(this.dom,this.top?t.firstChild:null)}let t=this.dom.firstChild;for(let e of this.panels)if(e.dom.parentNode==this.dom){for(;t!=e.dom;)t=Fs(t);t=t.nextSibling}else this.dom.insertBefore(e.dom,t);for(;t;)t=Fs(t)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(this.container&&this.classes!=this.view.themeClasses){for(let t of this.classes.split(" "))t&&this.container.classList.remove(t);for(let t of(this.classes=this.view.themeClasses).split(" "))t&&this.container.classList.add(t)}}}function Fs(t){let e=t.nextSibling;return t.remove(),e}const Ps=I.define({enables:Es});class Is extends Mt{compare(t){return this==t||this.constructor==t.constructor&&this.eq(t)}eq(t){return!1}destroy(t){}}Is.prototype.elementClass="",Is.prototype.toDOM=void 0,Is.prototype.mapMode=S.TrackBefore,Is.prototype.startSide=Is.prototype.endSide=-1,Is.prototype.point=!0;const Rs=I.define(),js=I.define(),Ws={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>Tt.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},Hs=I.define();function Vs(t){return[zs(),Hs.of(Object.assign(Object.assign({},Ws),t))]}const qs=I.define({combine:t=>t.some((t=>t))});function zs(t){let e=[Ks];return t&&!1===t.fixed&&e.push(qs.of(!0)),e}const Ks=to.fromClass(class{constructor(t){this.view=t,this.prevViewport=t.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=t.state.facet(Hs).map((e=>new Gs(t,e)));for(let t of this.gutters)this.dom.appendChild(t.dom);this.fixed=!t.state.facet(qs),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),t.scrollDOM.insertBefore(this.dom,t.contentDOM)}update(t){if(this.updateGutters(t)){let e=this.prevViewport,i=t.view.viewport,o=Math.min(e.to,i.to)-Math.max(e.from,i.from);this.syncGutters(o<.8*(i.to-i.from))}t.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px"),this.view.state.facet(qs)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=t.view.viewport}syncGutters(t){let e=this.dom.nextSibling;t&&this.dom.remove();let i=Tt.iter(this.view.state.facet(Rs),this.view.viewport.from),o=[],n=this.gutters.map((t=>new Us(t,this.view.viewport,-this.view.documentPadding.top)));for(let t of this.view.viewportLineBlocks)if(o.length&&(o=[]),Array.isArray(t.type)){let e=!0;for(let r of t.type)if(r.type==ii.Text&&e){$s(i,o,r.from);for(let t of n)t.line(this.view,r,o);e=!1}else if(r.widget)for(let t of n)t.widget(this.view,r)}else if(t.type==ii.Text){$s(i,o,t.from);for(let e of n)e.line(this.view,t,o)}else if(t.widget)for(let e of n)e.widget(this.view,t);for(let t of n)t.finish();t&&this.view.scrollDOM.insertBefore(this.dom,e)}updateGutters(t){let e=t.startState.facet(Hs),i=t.state.facet(Hs),o=t.docChanged||t.heightChanged||t.viewportChanged||!Tt.eq(t.startState.facet(Rs),t.state.facet(Rs),t.view.viewport.from,t.view.viewport.to);if(e==i)for(let e of this.gutters)e.update(t)&&(o=!0);else{o=!0;let n=[];for(let o of i){let i=e.indexOf(o);i<0?n.push(new Gs(this.view,o)):(this.gutters[i].update(t),n.push(this.gutters[i]))}for(let t of this.gutters)t.dom.remove(),n.indexOf(t)<0&&t.destroy();for(let t of n)this.dom.appendChild(t.dom);this.gutters=n}return o}destroy(){for(let t of this.gutters)t.destroy();this.dom.remove()}},{provide:t=>er.scrollMargins.of((e=>{let i=e.plugin(t);return i&&0!=i.gutters.length&&i.fixed?e.textDirection==mi.LTR?{left:i.dom.offsetWidth*e.scaleX}:{right:i.dom.offsetWidth*e.scaleX}:null}))});function _s(t){return Array.isArray(t)?t:[t]}function $s(t,e,i){for(;t.value&&t.from<=i;)t.from==i&&e.push(t.value),t.next()}class Us{constructor(t,e,i){this.gutter=t,this.height=i,this.i=0,this.cursor=Tt.iter(t.markers,e.from)}addElement(t,e,i){let{gutter:o}=this,n=(e.top-this.height)/t.scaleY,r=e.height/t.scaleY;if(this.i==o.elements.length){let e=new Js(t,r,n,i);o.elements.push(e),o.dom.appendChild(e.dom)}else o.elements[this.i].update(t,r,n,i);this.height=e.bottom,this.i++}line(t,e,i){let o=[];$s(this.cursor,o,e.from),i.length&&(o=o.concat(i));let n=this.gutter.config.lineMarker(t,e,o);n&&o.unshift(n);let r=this.gutter;(0!=o.length||r.config.renderEmptyElements)&&this.addElement(t,e,o)}widget(t,e){let i=this.gutter.config.widgetMarker(t,e.widget,e),o=i?[i]:null;for(let i of t.state.facet(js)){let n=i(t,e.widget,e);n&&(o||(o=[])).push(n)}o&&this.addElement(t,e,o)}finish(){let t=this.gutter;for(;t.elements.length>this.i;){let e=t.elements.pop();t.dom.removeChild(e.dom),e.destroy()}}}class Gs{constructor(t,e){this.view=t,this.config=e,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let i in e.domEventHandlers)this.dom.addEventListener(i,(o=>{let n,r=o.target;if(r!=this.dom&&this.dom.contains(r)){for(;r.parentNode!=this.dom;)r=r.parentNode;let t=r.getBoundingClientRect();n=(t.top+t.bottom)/2}else n=o.clientY;let s=t.lineBlockAtHeight(n-t.documentTop);e.domEventHandlers[i](t,s,o)&&o.preventDefault()}));this.markers=_s(e.markers(t)),e.initialSpacer&&(this.spacer=new Js(t,0,0,[e.initialSpacer(t)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(t){let e=this.markers;if(this.markers=_s(this.config.markers(t.view)),this.spacer&&this.config.updateSpacer){let e=this.config.updateSpacer(this.spacer.markers[0],t);e!=this.spacer.markers[0]&&this.spacer.update(t.view,0,0,[e])}let i=t.view.viewport;return!Tt.eq(this.markers,e,i.from,i.to)||!!this.config.lineMarkerChange&&this.config.lineMarkerChange(t)}destroy(){for(let t of this.elements)t.destroy()}}class Js{constructor(t,e,i,o){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(t,e,i,o)}update(t,e,i,o){this.height!=e&&(this.height=e,this.dom.style.height=e+"px"),this.above!=i&&(this.dom.style.marginTop=(this.above=i)?i+"px":""),function(t,e){if(t.length!=e.length)return!1;for(let i=0;iAt(t,{formatNumber:String,domEventHandlers:{}},{domEventHandlers(t,e){let i=Object.assign({},t);for(let t in e){let o=i[t],n=e[t];i[t]=o?(t,e,i)=>o(t,e,i)||n(t,e,i):n}return i}})});class Zs extends Is{constructor(t){super(),this.number=t}eq(t){return this.number==t.number}toDOM(){return document.createTextNode(this.number)}}function ta(t,e){return t.state.facet(Qs).formatNumber(e,t.state)}const ea=Hs.compute([Qs],(t=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers:t=>t.state.facet(Xs),lineMarker:(t,e,i)=>i.some((t=>t.toDOM))?null:new Zs(ta(t,t.state.doc.lineAt(e.from).number)),widgetMarker:(t,e,i)=>{for(let o of t.state.facet(Ys)){let n=o(t,e,i);if(n)return n}return null},lineMarkerChange:t=>t.startState.facet(Qs)!=t.state.facet(Qs),initialSpacer:t=>new Zs(ta(t,oa(t.state.doc.lines))),updateSpacer(t,e){let i=ta(e.view,oa(e.view.state.doc.lines));return i==t.number?t:new Zs(i)},domEventHandlers:t.facet(Qs).domEventHandlers})));function ia(t={}){return[Qs.of(t),zs(),ea]}function oa(t){let e=9;for(;e{let e=[],i=-1;for(let o of t.selection.ranges){let n=t.doc.lineAt(o.head).from;n>i&&(i=n,e.push(na.range(n)))}return Tt.of(e)}));function sa(){return ra}const aa=new Map;function la(t){return to.define((e=>({decorations:t.createDeco(e),update(e){this.decorations=t.updateDeco(e,this.decorations)}})),{decorations:t=>t.decorations})}const ha=la(new jr({regexp:/\t| +/g,decoration:t=>function(t){let e=aa.get(t);return e||aa.set(t,e=oi.mark({attributes:"\t"===t?{class:"cm-highlightTab"}:{class:"cm-highlightSpace","data-display":t.replace(/ /g,"·")}})),e}(t[0]),boundary:/\S/}));function ca(){return ha}const da=la(new jr({regexp:/\s+$/g,decoration:oi.mark({class:"cm-trailingSpace"}),boundary:/\S/}));function fa(){return da}const ua={HeightMap:xn,HeightOracle:pn,MeasuredHeights:bn,QueryType:yn,ChangedRange:uo,computeOrder:Ti,moveVisually:Li,clearHeightChangeFlag:mn,getHeightChangeFlag:()=>gn},ga=1024;let ma=0;class pa{constructor(t,e){this.from=t,this.to=e}}class ba{constructor(t={}){this.id=ma++,this.perNode=!!t.perNode,this.deserialize=t.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(t){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return"function"!=typeof t&&(t=wa.match(t)),e=>{let i=t(e);return void 0===i?null:[this,i]}}}ba.closedBy=new ba({deserialize:t=>t.split(" ")}),ba.openedBy=new ba({deserialize:t=>t.split(" ")}),ba.group=new ba({deserialize:t=>t.split(" ")}),ba.isolate=new ba({deserialize:t=>{if(t&&"rtl"!=t&&"ltr"!=t&&"auto"!=t)throw new RangeError("Invalid value for isolate: "+t);return t||"auto"}}),ba.contextHash=new ba({perNode:!0}),ba.lookAhead=new ba({perNode:!0}),ba.mounted=new ba({perNode:!0});class va{constructor(t,e,i){this.tree=t,this.overlay=e,this.parser=i}static get(t){return t&&t.props&&t.props[ba.mounted.id]}}const ya=Object.create(null);class wa{constructor(t,e,i,o=0){this.name=t,this.props=e,this.id=i,this.flags=o}static define(t){let e=t.props&&t.props.length?Object.create(null):ya,i=(t.top?1:0)|(t.skipped?2:0)|(t.error?4:0)|(null==t.name?8:0),o=new wa(t.name||"",e,t.id,i);if(t.props)for(let i of t.props)if(Array.isArray(i)||(i=i(o)),i){if(i[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");e[i[0].id]=i[1]}return o}prop(t){return this.props[t.id]}get isTop(){return(1&this.flags)>0}get isSkipped(){return(2&this.flags)>0}get isError(){return(4&this.flags)>0}get isAnonymous(){return(8&this.flags)>0}is(t){if("string"==typeof t){if(this.name==t)return!0;let e=this.prop(ba.group);return!!e&&e.indexOf(t)>-1}return this.id==t}static match(t){let e=Object.create(null);for(let i in t)for(let o of i.split(" "))e[o]=t[i];return t=>{for(let i=t.prop(ba.group),o=-1;o<(i?i.length:0);o++){let n=e[o<0?t.name:i[o]];if(n)return n}}}}wa.none=new wa("",Object.create(null),0,8);class xa{constructor(t){this.types=t;for(let e=0;e=e){let s=new Ba(r.tree,r.overlay[0].from+t.from,-1,t);(n||(n=[o])).push(Oa(s,e,i,!1))}}return n?Ia(n):o}(this,t,e)}iterate(t){let{enter:e,leave:i,from:o=0,to:n=this.length}=t,r=t.mode||0,s=(r&Ca.IncludeAnonymous)>0;for(let t=this.cursor(r|Ca.IncludeAnonymous);;){let r=!1;if(t.from<=n&&t.to>=o&&(!s&&t.type.isAnonymous||!1!==e(t))){if(t.firstChild())continue;r=!0}for(;r&&i&&(s||!t.type.isAnonymous)&&i(t),!t.nextSibling();){if(!t.parent())return;r=!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 e in this.props)t.push([+e,this.props[e]]);return t}balance(t={}){return this.children.length<=8?this:qa(wa.none,this.children,this.positions,0,this.children.length,0,this.length,((t,e,i)=>new Aa(this.type,t,e,i,this.propValues)),t.makeTree||((t,e,i)=>new Aa(wa.none,t,e,i)))}static build(t){return function(t){var e;let{buffer:i,nodeSet:o,maxBufferLength:n=ga,reused:r=[],minRepeatType:s=o.types.length}=t,a=Array.isArray(i)?new Ma(i,i.length):i,l=o.types,h=0,c=0;function d(t,e,i,v,y,w){let{id:x,start:k,end:S,size:C}=a,A=c;for(;C<0;){if(a.next(),-1==C){let e=r[x];return i.push(e),void v.push(k-t)}if(-3==C)return void(h=x);if(-4==C)return void(c=x);throw new RangeError(`Unrecognized record size: ${C}`)}let M,D,N=l[x],O=k-t;if(S-k<=n&&(D=p(a.pos-e,y))){let e=new Uint16Array(D.size-D.skip),i=a.pos-D.size,n=e.length;for(;a.pos>i;)n=b(D.start,e,n);M=new Da(e,S-D.start,o),O=D.start-t}else{let t=a.pos-C;a.next();let e=[],i=[],o=x>=s?x:-1,r=0,l=S;for(;a.pos>t;)o>=0&&a.id==o&&a.size>=0?(a.end<=l-n&&(g(e,i,k,r,a.end,l,o,A),r=e.length,l=a.end),a.next()):w>2500?f(k,t,e,i):d(k,t,e,i,o,w+1);if(o>=0&&r>0&&r-1&&r>0){let t=u(N);M=qa(N,e,i,0,e.length,0,S-k,t,t)}else M=m(N,e,i,S-k,A-S)}i.push(M),v.push(O)}function f(t,e,i,r){let s=[],l=0,h=-1;for(;a.pos>e;){let{id:t,start:e,end:i,size:o}=a;if(o>4)a.next();else{if(h>-1&&e=0;t-=3)e[i++]=s[t],e[i++]=s[t+1]-n,e[i++]=s[t+2]-n,e[i++]=i;i.push(new Da(e,s[2]-n,o)),r.push(n-t)}}function u(t){return(e,i,o)=>{let n,r,s=0,a=e.length-1;if(a>=0&&(n=e[a])instanceof Aa){if(!a&&n.type==t&&n.length==o)return n;(r=n.prop(ba.lookAhead))&&(s=i[a]+n.length+r)}return m(t,e,i,o,s)}}function g(t,e,i,n,r,s,a,l){let h=[],c=[];for(;t.length>n;)h.push(t.pop()),c.push(e.pop()+i-r);t.push(m(o.types[a],h,c,s-r,l-s)),e.push(r-i)}function m(t,e,i,o,n=0,r){if(h){let t=[ba.contextHash,h];r=r?[t].concat(r):[t]}if(n>25){let t=[ba.lookAhead,n];r=r?[t].concat(r):[t]}return new Aa(t,e,i,o,r)}function p(t,e){let i=a.fork(),o=0,r=0,l=0,h=i.end-n,c={size:0,start:0,skip:0};t:for(let n=i.pos-t;i.pos>n;){let t=i.size;if(i.id==e&&t>=0){c.size=o,c.start=r,c.skip=l,l+=4,o+=4,i.next();continue}let a=i.pos-t;if(t<0||a=s?4:0,f=i.start;for(i.next();i.pos>a;){if(i.size<0){if(-3!=i.size)break t;d+=4}else i.id>=s&&(d+=4);i.next()}r=f,o+=t,l+=d}return(e<0||o==t)&&(c.size=o,c.start=r,c.skip=l),c.size>4?c:void 0}function b(t,e,i){let{id:o,start:n,end:r,size:l}=a;if(a.next(),l>=0&&o4){let o=a.pos-(l-4);for(;a.pos>o;)i=b(t,e,i)}e[--i]=s,e[--i]=r-t,e[--i]=n-t,e[--i]=o}else-3==l?h=o:-4==l&&(c=o);return i}let v=[],y=[];for(;a.pos>0;)d(t.start||0,t.bufferStart||0,v,y,-1,0);let w=null!==(e=t.length)&&void 0!==e?e:v.length?y[0]+v[0].length:0;return new Aa(l[t.topID],v.reverse(),y.reverse(),w)}(t)}}Aa.empty=new Aa(wa.none,[],[],0);class Ma{constructor(t,e){this.buffer=t,this.index=e}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 Ma(this.buffer,this.index)}}class Da{constructor(t,e,i){this.buffer=t,this.length=e,this.set=i}get type(){return wa.none}toString(){let t=[];for(let e=0;e0));a=r[a+3]);return s}slice(t,e,i){let o=this.buffer,n=new Uint16Array(e-t),r=0;for(let s=t,a=0;s=e&&ie;case 1:return i<=e&&o>e;case 2:return o>e;case 4:return!0}}function Oa(t,e,i,o){for(var n;t.from==t.to||(i<1?t.from>=e:t.from>e)||(i>-1?t.to<=e:t.to0?s.length:-1;t!=l;t+=e){let l=s[t],h=a[t]+r.from;if(Na(o,i,h,h+l.length))if(l instanceof Da){if(n&Ca.ExcludeBuffers)continue;let s=l.findChild(0,l.buffer.length,e,i-h,o);if(s>-1)return new Pa(new Fa(r,l,t,h),null,s)}else if(n&Ca.IncludeAnonymous||!l.type.isAnonymous||Wa(l)){let s;if(!(n&Ca.IgnoreMounts)&&(s=va.get(l))&&!s.overlay)return new Ba(s.tree,h,t,r);let a=new Ba(l,h,t,r);return n&Ca.IncludeAnonymous||!a.type.isAnonymous?a:a.nextChild(e<0?l.children.length-1:0,e,i,o)}}if(n&Ca.IncludeAnonymous||!r.type.isAnonymous)return null;if(t=r.index>=0?r.index+e:e<0?-1:r._parent._tree.children.length,r=r._parent,!r)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,e,i=0){let o;if(!(i&Ca.IgnoreOverlays)&&(o=va.get(this._tree))&&o.overlay){let i=t-this.from;for(let{from:t,to:n}of o.overlay)if((e>0?t<=i:t=i:n>i))return new Ba(o.tree,o.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,t,e,i)}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 Ea(t,e,i,o){let n=t.cursor(),r=[];if(!n.firstChild())return r;if(null!=i)for(let t=!1;!t;)if(t=n.type.is(i),!n.nextSibling())return r;for(;;){if(null!=o&&n.type.is(o))return r;if(n.type.is(e)&&r.push(n.node),!n.nextSibling())return null==o?r:[]}}function La(t,e,i=e.length-1){for(let o=t.parent;i>=0;o=o.parent){if(!o)return!1;if(!o.type.isAnonymous){if(e[i]&&e[i]!=o.name)return!1;i--}}return!0}class Fa{constructor(t,e,i,o){this.parent=t,this.buffer=e,this.index=i,this.start=o}}class Pa extends Ta{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,e,i){super(),this.context=t,this._parent=e,this.index=i,this.type=t.buffer.set.types[t.buffer.buffer[i]]}child(t,e,i){let{buffer:o}=this.context,n=o.findChild(this.index+4,o.buffer[this.index+3],t,e-this.context.start,i);return n<0?null:new Pa(this.context,this,n)}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,e,i=0){if(i&Ca.ExcludeBuffers)return null;let{buffer:o}=this.context,n=o.findChild(this.index+4,o.buffer[this.index+3],e>0?1:-1,t-this.context.start,e);return n<0?null:new Pa(this.context,this,n)}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,e=t.buffer[this.index+3];return e<(this._parent?t.buffer[this._parent.index+3]:t.buffer.length)?new Pa(this.context,this._parent,e):this.externalSibling(1)}get prevSibling(){let{buffer:t}=this.context,e=this._parent?this._parent.index+4:0;return this.index==e?this.externalSibling(-1):new Pa(this.context,this._parent,t.findChild(e,this.index,-1,0,4))}get tree(){return null}toTree(){let t=[],e=[],{buffer:i}=this.context,o=this.index+4,n=i.buffer[this.index+3];if(n>o){let r=i.buffer[this.index+1];t.push(i.slice(o,n,r)),e.push(0)}return new Aa(this.type,t,e,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function Ia(t){if(!t.length)return null;let e=0,i=t[0];for(let o=1;oi.from||n.to0){if(this.index-1)for(let o=e+t,n=t<0?-1:i._tree.children.length;o!=n;o+=t){let t=i._tree.children[o];if(this.mode&Ca.IncludeAnonymous||t instanceof Da||!t.type.isAnonymous||Wa(t))return!1}return!0}move(t,e){if(e&&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,e=0){for(;(this.from==this.to||(e<1?this.from>=t:this.from>t)||(e>-1?this.to<=t:this.to=0;){for(let r=t;r;r=r._parent)if(r.index==o){if(o==this.index)return r;e=r,i=n+1;break t}o=this.stack[--n]}for(let t=i;t=0;n--){if(n<0)return La(this.node,t,o);let r=i[e.buffer[this.stack[n]]];if(!r.isAnonymous){if(t[o]&&t[o]!=r.name)return!1;o--}}return!0}}function Wa(t){return t.children.some((t=>t instanceof Da||!t.type.isAnonymous||Wa(t)))}const Ha=new WeakMap;function Va(t,e){if(!t.isAnonymous||e instanceof Da||e.type!=t)return 1;let i=Ha.get(e);if(null==i){i=1;for(let o of e.children){if(o.type!=t||!(o instanceof Aa)){i=1;break}i+=Va(t,o)}Ha.set(e,i)}return i}function qa(t,e,i,o,n,r,s,a,l){let h=0;for(let i=o;i=c)break;g+=e}if(h==n+1){if(g>c){let t=i[n];e(t.children,t.positions,0,t.children.length,o[n]+a);continue}d.push(i[n])}else{let e=o[h-1]+i[h-1].length-u;d.push(qa(t,i,o,n,h,u,e,null,l))}f.push(u+a-r)}}(e,i,o,n,0),(a||l)(d,f,s)}class za{constructor(){this.map=new WeakMap}setBuffer(t,e,i){let o=this.map.get(t);o||this.map.set(t,o=new Map),o.set(e,i)}getBuffer(t,e){let i=this.map.get(t);return i&&i.get(e)}set(t,e){t instanceof Pa?this.setBuffer(t.context.buffer,t.index,e):t instanceof Ba&&this.map.set(t.tree,e)}get(t){return t instanceof Pa?this.getBuffer(t.context.buffer,t.index):t instanceof Ba?this.map.get(t.tree):void 0}cursorSet(t,e){t.buffer?this.setBuffer(t.buffer.buffer,t.index,e):this.map.set(t.tree,e)}cursorGet(t){return t.buffer?this.getBuffer(t.buffer.buffer,t.index):this.map.get(t.tree)}}class Ka{constructor(t,e,i,o,n=!1,r=!1){this.from=t,this.to=e,this.tree=i,this.offset=o,this.open=(n?1:0)|(r?2:0)}get openStart(){return(1&this.open)>0}get openEnd(){return(2&this.open)>0}static addTree(t,e=[],i=!1){let o=[new Ka(0,t.length,t,0,!1,i)];for(let i of e)i.to>t.length&&o.push(i);return o}static applyChanges(t,e,i=128){if(!e.length)return t;let o=[],n=1,r=t.length?t[0]:null;for(let s=0,a=0,l=0;;s++){let h=s=i)for(;r&&r.from=e.from||c<=e.to||l){let t=Math.max(e.from,a)-l,i=Math.min(e.to,c)-l;e=t>=i?null:new Ka(t,i,e.tree,e.offset+l,s>0,!!h)}if(e&&o.push(e),r.to>c)break;r=nnew pa(t.from,t.to))):[new pa(0,0)]:[new pa(0,t.length)],this.createParse(t,e||[],i)}parse(t,e,i){let o=this.startParse(t,e,i);for(;;){let t=o.advance();if(t)return t}}}class $a{constructor(t){this.string=t}get length(){return this.string.length}chunk(t){return this.string.slice(t)}get lineChunks(){return!1}read(t,e){return this.string.slice(t,e)}}function Ua(t){return(e,i,o,n)=>new Qa(e,t,i,o,n)}class Ga{constructor(t,e,i,o,n){this.parser=t,this.parse=e,this.overlay=i,this.target=o,this.from=n}}function Ja(t){if(!t.length||t.some((t=>t.from>=t.to)))throw new RangeError("Invalid inner parse ranges given: "+JSON.stringify(t))}class Xa{constructor(t,e,i,o,n,r,s){this.parser=t,this.predicate=e,this.mounts=i,this.index=o,this.start=n,this.target=r,this.prev=s,this.depth=0,this.ranges=[]}}const Ya=new ba({perNode:!0});class Qa{constructor(t,e,i,o,n){this.nest=e,this.input=i,this.fragments=o,this.ranges=n,this.inner=[],this.innerDone=0,this.baseTree=null,this.stoppedAt=null,this.baseParse=t}advance(){if(this.baseParse){let t=this.baseParse.advance();if(!t)return null;if(this.baseParse=null,this.baseTree=t,this.startInner(),null!=this.stoppedAt)for(let t of this.inner)t.parse.stopAt(this.stoppedAt)}if(this.innerDone==this.inner.length){let t=this.baseTree;return null!=this.stoppedAt&&(t=new Aa(t.type,t.children,t.positions,t.length,t.propValues.concat([[Ya,this.stoppedAt]]))),t}let t=this.inner[this.innerDone],e=t.parse.advance();if(e){this.innerDone++;let i=Object.assign(Object.create(null),t.target.props);i[ba.mounted.id]=new va(e,t.overlay,t.parser),t.target.props=i}return null}get parsedPos(){if(this.baseParse)return 0;let t=this.input.length;for(let e=this.innerDone;e=this.stoppedAt)a=!1;else if(t.hasNode(o)){if(e){let t=e.mounts.find((t=>t.frag.from<=o.from&&t.frag.to>=o.to&&t.mount.overlay));if(t)for(let i of t.mount.overlay){let n=i.from+t.pos,r=i.to+t.pos;n>=o.from&&r<=o.to&&!e.ranges.some((t=>t.fromn))&&e.ranges.push({from:n,to:r})}}a=!1}else if(i&&(r=Za(i.ranges,o.from,o.to)))a=2!=r;else if(!o.type.isAnonymous&&(n=this.nest(o,this.input))&&(o.fromnew pa(t.from-o.from,t.to-o.from))):null,o.tree,t.length?t[0].from:o.from)),n.overlay?t.length&&(i={ranges:t,depth:0,prev:i}):a=!1}}else e&&(s=e.predicate(o))&&(!0===s&&(s=new pa(o.from,o.to)),s.fromnew pa(t.from-e.start,t.to-e.start))),e.target,t[0].from))),e=e.prev}i&&! --i.depth&&(i=i.prev)}}}}function Za(t,e,i){for(let o of t){if(o.from>=i)break;if(o.to>e)return o.from<=e&&o.to>=i?2:1}return 0}function tl(t,e,i,o,n,r){if(e=t&&e.enter(i,1,Ca.IgnoreOverlays|Ca.ExcludeBuffers)||e.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 e=this.cursor.tree;;){if(e==t.tree)return!0;if(!(e.children.length&&0==e.positions[0]&&e.children[0]instanceof Aa))break;e=e.children[0]}return!1}}class ol{constructor(t){var e;if(this.fragments=t,this.curTo=0,this.fragI=0,t.length){let i=this.curFrag=t[0];this.curTo=null!==(e=i.tree.prop(Ya))&&void 0!==e?e:i.to,this.inner=new il(i.tree,-i.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 e=this.curFrag=this.fragments[this.fragI];this.curTo=null!==(t=e.tree.prop(Ya))&&void 0!==t?t:e.to,this.inner=new il(e.tree,-e.offset)}}findMounts(t,e){var i;let o=[];if(this.inner){this.inner.cursor.moveTo(t,1);for(let t=this.inner.cursor.node;t;t=t.parent){let n=null===(i=t.tree)||void 0===i?void 0:i.prop(ba.mounted);if(n&&n.parser==e)for(let e=this.fragI;e=t.to)break;i.tree==this.curFrag.tree&&o.push({frag:i,pos:t.from-i.offset,mount:n})}}}return o}}function nl(t,e){let i=null,o=e;for(let n=1,r=0;n=a)break;t.to<=s||(i||(o=i=e.slice()),t.froma&&i.splice(r+1,0,new pa(a,t.to))):t.to>a?i[r--]=new pa(a,t.to):i.splice(r--,1))}}return o}function rl(t,e,i,o){let n=0,r=0,s=!1,a=!1,l=-1e9,h=[];for(;;){let c=n==t.length?1e9:s?t[n].to:t[n].from,d=r==e.length?1e9:a?e[r].to:e[r].from;if(s!=a){let t=Math.max(l,i),e=Math.min(c,d,o);tnew pa(t.from+o,t.to+o))),a,l);for(let e=0,o=a;;e++){let a=e==s.length,h=a?l:s[e].from;if(h>o&&i.push(new Ka(o,h,n.tree,-t,r.from>=o||r.openStart,r.to<=h||r.openEnd)),a)break;o=s[e].to}}else i.push(new Ka(a,l,n.tree,-t,r.from>=t||r.openStart,r.to<=s||r.openEnd))}return i}let al=0;class ll{constructor(t,e,i,o){this.name=t,this.set=e,this.base=i,this.modified=o,this.id=al++}toString(){let{name:t}=this;for(let e of this.modified)e.name&&(t=`${e.name}(${t})`);return t}static define(t,e){let i="string"==typeof t?t:"?";if(t instanceof ll&&(e=t),null==e?void 0:e.base)throw new Error("Can not derive from a modified tag");let o=new ll(i,[],null,[]);if(o.set.push(o),e)for(let t of e.set)o.set.push(t);return o}static defineModifier(t){let e=new cl(t);return t=>t.modified.indexOf(e)>-1?t:cl.get(t.base||t,t.modified.concat(e).sort(((t,e)=>t.id-e.id)))}}let hl=0;class cl{constructor(t){this.name=t,this.instances=[],this.id=hl++}static get(t,e){if(!e.length)return t;let i=e[0].instances.find((i=>{return i.base==t&&(o=e,n=i.modified,o.length==n.length&&o.every(((t,e)=>t==n[e])));var o,n}));if(i)return i;let o=[],n=new ll(t.name,o,t,e);for(let t of e)t.instances.push(n);let r=function(t){let e=[[]];for(let i=0;ie.length-t.length))}(e);for(let e of t.set)if(!e.modified.length)for(let t of r)o.push(cl.get(e,t));return n}}function dl(t){let e=Object.create(null);for(let i in t){let o=t[i];Array.isArray(o)||(o=[o]);for(let t of i.split(" "))if(t){let i=[],n=2,r=t;for(let e=0;;){if("..."==r&&e>0&&e+3==t.length){n=1;break}let o=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(r);if(!o)throw new RangeError("Invalid path: "+t);if(i.push("*"==o[0]?"":'"'==o[0][0]?JSON.parse(o[0]):o[0]),e+=o[0].length,e==t.length)break;let s=t[e++];if(e==t.length&&"!"==s){n=0;break}if("/"!=s)throw new RangeError("Invalid path: "+t);r=t.slice(e)}let s=i.length-1,a=i[s];if(!a)throw new RangeError("Invalid path: "+t);let l=new ul(o,n,s>0?i.slice(0,s):null);e[a]=l.sort(e[a])}}return fl.add(e)}const fl=new ba;class ul{constructor(t,e,i,o){this.tags=t,this.mode=e,this.context=i,this.next=o}get opaque(){return 0==this.mode}get inherit(){return 1==this.mode}sort(t){return!t||t.depth{let e=n;for(let o of t)for(let t of o.set){let o=i[t.id];if(o){e=e?e+" "+o:o;break}}return e},scope:o}}function ml(t,e,i,o=0,n=t.length){let r=new pl(o,Array.isArray(e)?e:[e],i);r.highlightRange(t.cursor(),o,n,"",r.highlighters),r.flush(n)}ul.empty=new ul([],2,null);class pl{constructor(t,e,i){this.at=t,this.highlighters=e,this.span=i,this.class=""}startSpan(t,e){e!=this.class&&(this.flush(t),t>this.at&&(this.at=t),this.class=e)}flush(t){t>this.at&&this.class&&this.span(this.at,t,this.class)}highlightRange(t,e,i,o,n){let{type:r,from:s,to:a}=t;if(s>=i||a<=e)return;r.isTop&&(n=this.highlighters.filter((t=>!t.scope||t.scope(r))));let l=o,h=function(t){let e=t.type.prop(fl);for(;e&&e.context&&!t.matchContext(e.context);)e=e.next;return e||null}(t)||ul.empty,c=function(t,e){let i=null;for(let o of t){let t=o.style(e);t&&(i=i?i+" "+t:t)}return i}(n,h.tags);if(c&&(l&&(l+=" "),l+=c,1==h.mode&&(o+=(o?" ":"")+c)),this.startSpan(Math.max(e,s),l),h.opaque)return;let d=t.tree&&t.tree.prop(ba.mounted);if(d&&d.overlay){let r=t.node.enter(d.overlay[0].from+s,1),h=this.highlighters.filter((t=>!t.scope||t.scope(d.tree.type))),c=t.firstChild();for(let f=0,u=s;;f++){let g=f=m)&&t.nextSibling()););if(!g||m>i)break;u=g.to+s,u>e&&(this.highlightRange(r.cursor(),Math.max(e,g.from+s),Math.min(i,u),"",h),this.startSpan(Math.min(i,u),l))}c&&t.parent()}else if(t.firstChild()){d&&(o="");do{if(!(t.to<=e)){if(t.from>=i)break;this.highlightRange(t,e,i,o,n),this.startSpan(Math.min(i,t.to),l)}}while(t.nextSibling());t.parent()}}}const bl=ll.define,vl=bl(),yl=bl(),wl=bl(yl),xl=bl(yl),kl=bl(),Sl=bl(kl),Cl=bl(kl),Al=bl(),Ml=bl(Al),Dl=bl(),Nl=bl(),Ol=bl(),Tl=bl(Ol),Bl=bl(),El={comment:vl,lineComment:bl(vl),blockComment:bl(vl),docComment:bl(vl),name:yl,variableName:bl(yl),typeName:wl,tagName:bl(wl),propertyName:xl,attributeName:bl(xl),className:bl(yl),labelName:bl(yl),namespace:bl(yl),macroName:bl(yl),literal:kl,string:Sl,docString:bl(Sl),character:bl(Sl),attributeValue:bl(Sl),number:Cl,integer:bl(Cl),float:bl(Cl),bool:bl(kl),regexp:bl(kl),escape:bl(kl),color:bl(kl),url:bl(kl),keyword:Dl,self:bl(Dl),null:bl(Dl),atom:bl(Dl),unit:bl(Dl),modifier:bl(Dl),operatorKeyword:bl(Dl),controlKeyword:bl(Dl),definitionKeyword:bl(Dl),moduleKeyword:bl(Dl),operator:Nl,derefOperator:bl(Nl),arithmeticOperator:bl(Nl),logicOperator:bl(Nl),bitwiseOperator:bl(Nl),compareOperator:bl(Nl),updateOperator:bl(Nl),definitionOperator:bl(Nl),typeOperator:bl(Nl),controlOperator:bl(Nl),punctuation:Ol,separator:bl(Ol),bracket:Tl,angleBracket:bl(Tl),squareBracket:bl(Tl),paren:bl(Tl),brace:bl(Tl),content:Al,heading:Ml,heading1:bl(Ml),heading2:bl(Ml),heading3:bl(Ml),heading4:bl(Ml),heading5:bl(Ml),heading6:bl(Ml),contentSeparator:bl(Al),list:bl(Al),quote:bl(Al),emphasis:bl(Al),strong:bl(Al),link:bl(Al),monospace:bl(Al),strikethrough:bl(Al),inserted:bl(),deleted:bl(),changed:bl(),invalid:bl(),meta:Bl,documentMeta:bl(Bl),annotation:bl(Bl),processingInstruction:bl(Bl),definition:ll.defineModifier("definition"),constant:ll.defineModifier("constant"),function:ll.defineModifier("function"),standard:ll.defineModifier("standard"),local:ll.defineModifier("local"),special:ll.defineModifier("special")};for(let t in El){let e=El[t];e instanceof ll&&(e.name=t)}var Ll;gl([{tag:El.link,class:"tok-link"},{tag:El.heading,class:"tok-heading"},{tag:El.emphasis,class:"tok-emphasis"},{tag:El.strong,class:"tok-strong"},{tag:El.keyword,class:"tok-keyword"},{tag:El.atom,class:"tok-atom"},{tag:El.bool,class:"tok-bool"},{tag:El.url,class:"tok-url"},{tag:El.labelName,class:"tok-labelName"},{tag:El.inserted,class:"tok-inserted"},{tag:El.deleted,class:"tok-deleted"},{tag:El.literal,class:"tok-literal"},{tag:El.string,class:"tok-string"},{tag:El.number,class:"tok-number"},{tag:[El.regexp,El.escape,El.special(El.string)],class:"tok-string2"},{tag:El.variableName,class:"tok-variableName"},{tag:El.local(El.variableName),class:"tok-variableName tok-local"},{tag:El.definition(El.variableName),class:"tok-variableName tok-definition"},{tag:El.special(El.variableName),class:"tok-variableName2"},{tag:El.definition(El.propertyName),class:"tok-propertyName tok-definition"},{tag:El.typeName,class:"tok-typeName"},{tag:El.namespace,class:"tok-namespace"},{tag:El.className,class:"tok-className"},{tag:El.macroName,class:"tok-macroName"},{tag:El.propertyName,class:"tok-propertyName"},{tag:El.operator,class:"tok-operator"},{tag:El.comment,class:"tok-comment"},{tag:El.meta,class:"tok-meta"},{tag:El.invalid,class:"tok-invalid"},{tag:El.punctuation,class:"tok-punctuation"}]);const Fl=new ba;function Pl(t){return I.define({combine:t?e=>e.concat(t):void 0})}const Il=new ba;class Rl{constructor(t,e,i=[],o=""){this.data=t,this.name=o,Ct.prototype.hasOwnProperty("tree")||Object.defineProperty(Ct.prototype,"tree",{get(){return Hl(this)}}),this.parser=e,this.extension=[Zl.of(this),Ct.languageData.of(((t,e,i)=>{let o=jl(t,e,i),n=o.type.prop(Fl);if(!n)return[];let r=t.facet(n),s=o.type.prop(Il);if(s){let n=o.resolve(e-o.from,i);for(let e of s)if(e.test(n,t)){let i=t.facet(e.facet);return"replace"==e.type?i:i.concat(r)}}return r}))].concat(i)}isActiveAt(t,e,i=-1){return jl(t,e,i).type.prop(Fl)==this.data}findRegions(t){let e=t.facet(Zl);if((null==e?void 0:e.data)==this.data)return[{from:0,to:t.doc.length}];if(!e||!e.allowsNesting)return[];let i=[],o=(t,e)=>{if(t.prop(Fl)==this.data)return void i.push({from:e,to:e+t.length});let n=t.prop(ba.mounted);if(n){if(n.tree.prop(Fl)==this.data){if(n.overlay)for(let t of n.overlay)i.push({from:t.from+e,to:t.to+e});else i.push({from:e,to:e+t.length});return}if(n.overlay){let t=i.length;if(o(n.tree,n.overlay[0].from+e),i.length>t)return}}for(let i=0;it.isTop?e:void 0))]}),t.name)}configure(t,e){return new Wl(this.data,this.parser.configure(t),e||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function Hl(t){let e=t.field(Rl.state,!1);return e?e.tree:Aa.empty}function Vl(t,e,i=50){var o;let n=null===(o=t.field(Rl.state,!1))||void 0===o?void 0:o.context;if(!n)return null;let r=n.viewport;n.updateViewport({from:0,to:e});let s=n.isDone(e)||n.work(i,e)?n.tree:null;return n.updateViewport(r),s}function ql(t,e=t.doc.length){var i;return(null===(i=t.field(Rl.state,!1))||void 0===i?void 0:i.context.isDone(e))||!1}function zl(t,e=t.viewport.to,i=100){let o=Vl(t.state,e,i);return o!=Hl(t.state)&&t.dispatch({}),!!o}function Kl(t){var e;return(null===(e=t.plugin(Ql))||void 0===e?void 0:e.isWorking())||!1}class _l{constructor(t){this.doc=t,this.cursorPos=0,this.string="",this.cursor=t.iter()}get length(){return this.doc.length}syncTo(t){return this.string=this.cursor.next(t-this.cursorPos).value,this.cursorPos=t+this.string.length,this.cursorPos-this.string.length}chunk(t){return this.syncTo(t),this.string}get lineChunks(){return!0}read(t,e){let i=this.cursorPos-this.string.length;return t=this.cursorPos?this.doc.sliceString(t,e):this.string.slice(t-i,e-i)}}let $l=null;class Ul{constructor(t,e,i=[],o,n,r,s,a){this.parser=t,this.state=e,this.fragments=i,this.tree=o,this.treeLen=n,this.viewport=r,this.skipped=s,this.scheduleOn=a,this.parse=null,this.tempSkipped=[]}static create(t,e,i){return new Ul(t,e,[],Aa.empty,0,i,[],null)}startParse(){return this.parser.startParse(new _l(this.state.doc),this.fragments)}work(t,e){return null!=e&&e>=this.state.doc.length&&(e=void 0),this.tree!=Aa.empty&&this.isDone(null!=e?e:this.state.doc.length)?(this.takeTree(),!0):this.withContext((()=>{var i;if("number"==typeof t){let e=Date.now()+t;t=()=>Date.now()>e}for(this.parse||(this.parse=this.startParse()),null!=e&&(null==this.parse.stoppedAt||this.parse.stoppedAt>e)&&e=this.treeLen&&((null==this.parse.stoppedAt||this.parse.stoppedAt>t)&&this.parse.stopAt(t),this.withContext((()=>{for(;!(e=this.parse.advance()););})),this.treeLen=t,this.tree=e,this.fragments=this.withoutTempSkipped(Ka.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(t){let e=$l;$l=this;try{return t()}finally{$l=e}}withoutTempSkipped(t){for(let e;e=this.tempSkipped.pop();)t=Gl(t,e.from,e.to);return t}changes(t,e){let{fragments:i,tree:o,treeLen:n,viewport:r,skipped:s}=this;if(this.takeTree(),!t.empty){let e=[];if(t.iterChangedRanges(((t,i,o,n)=>e.push({fromA:t,toA:i,fromB:o,toB:n}))),i=Ka.applyChanges(i,e),o=Aa.empty,n=0,r={from:t.mapPos(r.from,-1),to:t.mapPos(r.to,1)},this.skipped.length){s=[];for(let e of this.skipped){let i=t.mapPos(e.from,1),o=t.mapPos(e.to,-1);it.from&&(this.fragments=Gl(this.fragments,i,o),this.skipped.splice(e--,1))}return!(this.skipped.length>=e)&&(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(t,e){this.skipped.push({from:t,to:e})}static getSkippingParser(t){return new class extends _a{createParse(e,i,o){let n=o[0].from,r=o[o.length-1].to;return{parsedPos:n,advance(){let e=$l;if(e){for(let t of o)e.tempSkipped.push(t);t&&(e.scheduleOn=e.scheduleOn?Promise.all([e.scheduleOn,t]):t)}return this.parsedPos=r,new Aa(wa.none,[],[],r-n)},stoppedAt:null,stopAt(){}}}}}isDone(t){t=Math.min(t,this.state.doc.length);let e=this.fragments;return this.treeLen>=t&&e.length&&0==e[0].from&&e[0].to>=t}static get(){return $l}}function Gl(t,e,i){return Ka.applyChanges(t,[{fromA:e,toA:i,fromB:e,toB:i}])}class Jl{constructor(t){this.context=t,this.tree=t.tree}apply(t){if(!t.docChanged&&this.tree==this.context.tree)return this;let e=this.context.changes(t.changes,t.state),i=this.context.treeLen==t.startState.doc.length?void 0:Math.max(t.changes.mapPos(this.context.treeLen),e.viewport.to);return e.work(20,i)||e.takeTree(),new Jl(e)}static init(t){let e=Math.min(3e3,t.doc.length),i=Ul.create(t.facet(Zl).parser,t,{from:0,to:e});return i.work(20,e)||i.takeTree(),new Jl(i)}}Rl.state=z.define({create:Jl.init,update(t,e){for(let t of e.effects)if(t.is(Rl.setState))return t.value;return e.startState.facet(Zl)!=e.state.facet(Zl)?Jl.init(e.state):t.apply(e)}});let Xl=t=>{let e=setTimeout((()=>t()),500);return()=>clearTimeout(e)};"undefined"!=typeof requestIdleCallback&&(Xl=t=>{let e=-1,i=setTimeout((()=>{e=requestIdleCallback(t,{timeout:400})}),100);return()=>e<0?clearTimeout(i):cancelIdleCallback(e)});const Yl="undefined"!=typeof navigator&&(null===(Ll=navigator.scheduling)||void 0===Ll?void 0:Ll.isInputPending)?()=>navigator.scheduling.isInputPending():null,Ql=to.fromClass(class{constructor(t){this.view=t,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(t){let e=this.view.state.field(Rl.state).context;(e.updateViewport(t.view.viewport)||this.view.viewport.to>e.treeLen)&&this.scheduleWork(),(t.docChanged||t.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(e)}scheduleWork(){if(this.working)return;let{state:t}=this.view,e=t.field(Rl.state);e.tree==e.context.tree&&e.context.isDone(t.doc.length)||(this.working=Xl(this.work))}work(t){this.working=null;let e=Date.now();if(this.chunkEndo+1e3,a=n.context.work((()=>Yl&&Yl()||Date.now()>r),o+(s?0:1e5));this.chunkBudget-=Date.now()-e,(a||this.chunkBudget<=0)&&(n.context.takeTree(),this.view.dispatch({effects:Rl.setState.of(new Jl(n.context))})),this.chunkBudget>0&&(!a||s)&&this.scheduleWork(),this.checkAsyncSchedule(n.context)}checkAsyncSchedule(t){t.scheduleOn&&(this.workScheduled++,t.scheduleOn.then((()=>this.scheduleWork())).catch((t=>Xi(this.view.state,t))).then((()=>this.workScheduled--)),t.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),Zl=I.define({combine:t=>t.length?t[0]:null,enables:t=>[Rl.state,Ql,er.contentAttributes.compute([t],(e=>{let i=e.facet(t);return i&&i.name?{"data-language":i.name}:{}}))]});class th{constructor(t,e=[]){this.language=t,this.support=e,this.extension=[t,e]}}class eh{constructor(t,e,i,o,n,r=void 0){this.name=t,this.alias=e,this.extensions=i,this.filename=o,this.loadFunc=n,this.support=r,this.loading=null}load(){return this.loading||(this.loading=this.loadFunc().then((t=>this.support=t),(t=>{throw this.loading=null,t})))}static of(t){let{load:e,support:i}=t;if(!e){if(!i)throw new RangeError("Must pass either 'load' or 'support' to LanguageDescription.of");e=()=>Promise.resolve(i)}return new eh(t.name,(t.alias||[]).concat(t.name).map((t=>t.toLowerCase())),t.extensions||[],t.filename,e,i)}static matchFilename(t,e){for(let i of t)if(i.filename&&i.filename.test(e))return i;let i=/\.([^.]+)$/.exec(e);if(i)for(let e of t)if(e.extensions.indexOf(i[1])>-1)return e;return null}static matchLanguageName(t,e,i=!0){e=e.toLowerCase();for(let i of t)if(i.alias.some((t=>t==e)))return i;if(i)for(let i of t)for(let t of i.alias){let o=e.indexOf(t);if(o>-1&&(t.length>2||!/\w/.test(e[o-1])&&!/\w/.test(e[o+t.length])))return i}return null}}const ih=I.define(),oh=I.define({combine:t=>{if(!t.length)return" ";let e=t[0];if(!e||/\S/.test(e)||Array.from(e).some((t=>t!=e[0])))throw new Error("Invalid indent unit: "+JSON.stringify(t[0]));return e}});function nh(t){let e=t.facet(oh);return 9==e.charCodeAt(0)?t.tabSize*e.length:e.length}function rh(t,e){let i="",o=t.tabSize,n=t.facet(oh)[0];if("\t"==n){for(;e>=o;)i+="\t",e-=o;n=" "}for(let t=0;t=e?function(t,e,i){let o=e.resolveStack(i),n=o.node.enterUnfinishedNodesBefore(i);if(n!=o.node){let t=[];for(let e=n;e!=o.node;e=e.parent)t.push(e);for(let e=t.length-1;e>=0;e--)o={node:t[e],next:o}}return ch(o,t,i)}(t,i,e):null}function ah(t,e,i){let o=Object.create(null),n=new lh(t,{overrideIndentation:t=>{var e;return null!==(e=o[t])&&void 0!==e?e:-1}}),r=[];for(let s=e;s<=i;){let e=t.doc.lineAt(s);s=e.to+1;let i=sh(n,e.from);if(null==i)continue;/\S/.test(e.text)||(i=0);let a=/^\s*/.exec(e.text)[0],l=rh(t,i);a!=l&&(o[e.from]=i,r.push({from:e.from,to:e.from+a.length,insert:l}))}return t.changes(r)}class lh{constructor(t,e={}){this.state=t,this.options=e,this.unit=nh(t)}lineAt(t,e=1){let i=this.state.doc.lineAt(t),{simulateBreak:o,simulateDoubleBreak:n}=this.options;return null!=o&&o>=i.from&&o<=i.to?n&&o==t?{text:"",from:t}:(e<0?o-1&&(n+=r-this.countColumn(i,i.search(/\S|$/))),n}countColumn(t,e=t.length){return qt(t,this.state.tabSize,e)}lineIndent(t,e=1){let{text:i,from:o}=this.lineAt(t,e),n=this.options.overrideIndentation;if(n){let t=n(o);if(t>-1)return t}return this.countColumn(i,i.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const hh=new ba;function ch(t,e,i){for(let o=t;o;o=o.next){let t=dh(o.node);if(t)return t(uh.create(e,i,o))}return 0}function dh(t){let e=t.type.prop(hh);if(e)return e;let i,o=t.firstChild;if(o&&(i=o.type.prop(ba.closedBy))){let e=t.lastChild,o=e&&i.indexOf(e.name)>-1;return t=>ph(t,!0,1,void 0,o&&!function(t){return t.pos==t.options.simulateBreak&&t.options.simulateDoubleBreak}(t)?e.from:void 0)}return null==t.parent?fh:null}function fh(){return 0}class uh extends lh{constructor(t,e,i){super(t.state,t.options),this.base=t,this.pos=e,this.context=i}get node(){return this.context.node}static create(t,e,i){return new uh(t,e,i)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(t){let e=this.state.doc.lineAt(t.from);for(;;){let i=t.resolve(e.from);for(;i.parent&&i.parent.from==i.from;)i=i.parent;if(gh(i,t))break;e=this.state.doc.lineAt(i.from)}return this.lineIndent(e.from)}continue(){return ch(this.context.next,this.base,this.pos)}}function gh(t,e){for(let i=e;i;i=i.parent)if(t==i)return!0;return!1}function mh({closing:t,align:e=!0,units:i=1}){return o=>ph(o,e,i,t)}function ph(t,e,i,o,n){let r=t.textAfter,s=r.match(/^\s*/)[0].length,a=o&&r.slice(s,s+o.length)==o||n==t.pos+s,l=e?function(t){let e=t.node,i=e.childAfter(e.from),o=e.lastChild;if(!i)return null;let n=t.options.simulateBreak,r=t.state.doc.lineAt(i.from),s=null==n||n<=r.from?r.to:Math.min(r.to,n);for(let t=i.to;;){let n=e.childAfter(t);if(!n||n==o)return null;if(!n.type.isSkipped)return n.fromt.baseIndent;function vh({except:t,units:e=1}={}){return i=>{let o=t&&t.test(i.textAfter);return i.baseIndent+(o?0:e*i.unit)}}function yh(){return Ct.transactionFilter.of((t=>{if(!t.docChanged||!t.isUserEvent("input.type")&&!t.isUserEvent("input.complete"))return t;let e=t.startState.languageDataAt("indentOnInput",t.startState.selection.main.head);if(!e.length)return t;let i=t.newDoc,{head:o}=t.newSelection.main,n=i.lineAt(o);if(o>n.from+200)return t;let r=i.sliceString(n.from,o);if(!e.some((t=>t.test(r))))return t;let{state:s}=t,a=-1,l=[];for(let{head:t}of s.selection.ranges){let e=s.doc.lineAt(t);if(e.from==a)continue;a=e.from;let i=sh(s,e.from);if(null==i)continue;let o=/^\s*/.exec(e.text)[0],n=rh(s,i);o!=n&&l.push({from:e.from,to:e.from+o.length,insert:n})}return l.length?[t,{changes:l,sequential:!0}]:t}))}const wh=I.define(),xh=new ba;function kh(t){let e=t.firstChild,i=t.lastChild;return e&&e.toi)continue;if(n&&s.from=e&&o.to>i&&(n=o)}}return n}(t,e,i)}function Ah(t,e){let i=e.mapPos(t.from,1),o=e.mapPos(t.to,-1);return i>=o?void 0:{from:i,to:o}}const Mh=ft.define({map:Ah}),Dh=ft.define({map:Ah});function Nh(t){let e=[];for(let{head:i}of t.state.selection.ranges)e.some((t=>t.from<=i&&t.to>=i))||e.push(t.lineBlockAt(i));return e}const Oh=z.define({create:()=>oi.none,update(t,e){t=t.map(e.changes);for(let i of e.effects)if(i.is(Mh)&&!Eh(t,i.value.from,i.value.to)){let{preparePlaceholder:o}=e.state.facet(zh),n=o?oi.replace({widget:new Uh(o(e.state,i.value))}):$h;t=t.update({add:[n.range(i.value.from,i.value.to)]})}else i.is(Dh)&&(t=t.update({filter:(t,e)=>i.value.from!=t||i.value.to!=e,filterFrom:i.value.from,filterTo:i.value.to}));if(e.selection){let i=!1,{head:o}=e.selection.main;t.between(o,o,((t,e)=>{to&&(i=!0)})),i&&(t=t.update({filterFrom:o,filterTo:o,filter:(t,e)=>e<=o||t>=o}))}return t},provide:t=>er.decorations.from(t),toJSON(t,e){let i=[];return t.between(0,e.doc.length,((t,e)=>{i.push(t,e)})),i},fromJSON(t){if(!Array.isArray(t)||t.length%2)throw new RangeError("Invalid JSON for fold state");let e=[];for(let i=0;i{(!n||n.from>t)&&(n={from:t,to:e})})),n}function Eh(t,e,i){let o=!1;return t.between(e,e,((t,n)=>{t==e&&n==i&&(o=!0)})),o}function Lh(t,e){return t.field(Oh,!1)?e:e.concat(ft.appendConfig.of(Kh()))}const Fh=t=>{for(let e of Nh(t)){let i=Ch(t.state,e.from,e.to);if(i)return t.dispatch({effects:Lh(t.state,[Mh.of(i),Ih(t,i)])}),!0}return!1},Ph=t=>{if(!t.state.field(Oh,!1))return!1;let e=[];for(let i of Nh(t)){let o=Bh(t.state,i.from,i.to);o&&e.push(Dh.of(o),Ih(t,o,!1))}return e.length&&t.dispatch({effects:e}),e.length>0};function Ih(t,e,i=!0){let o=t.state.doc.lineAt(e.from).number,n=t.state.doc.lineAt(e.to).number;return er.announce.of(`${t.state.phrase(i?"Folded lines":"Unfolded lines")} ${o} ${t.state.phrase("to")} ${n}.`)}const Rh=t=>{let{state:e}=t,i=[];for(let o=0;o{let e=t.state.field(Oh,!1);if(!e||!e.size)return!1;let i=[];return e.between(0,t.state.doc.length,((t,e)=>{i.push(Dh.of({from:t,to:e}))})),t.dispatch({effects:i}),!0};function Wh(t,e){for(let i=e;;){let o=Ch(t.state,i.from,i.to);if(o&&o.to>e.from)return o;if(!i.from)return null;i=t.lineBlockAt(i.from-1)}}const Hh=t=>{let e=[];for(let i of Nh(t)){let o=Bh(t.state,i.from,i.to);if(o)e.push(Dh.of(o),Ih(t,o,!1));else{let o=Wh(t,i);o&&e.push(Mh.of(o),Ih(t,o))}}return e.length>0&&t.dispatch({effects:Lh(t.state,e)}),!!e.length},Vh=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:Fh},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:Ph},{key:"Ctrl-Alt-[",run:Rh},{key:"Ctrl-Alt-]",run:jh}],qh={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},zh=I.define({combine:t=>At(t,qh)});function Kh(t){let e=[Oh,Yh];return t&&e.push(zh.of(t)),e}function _h(t,e){let{state:i}=t,o=i.facet(zh),n=e=>{let i=t.lineBlockAt(t.posAtDOM(e.target)),o=Bh(t.state,i.from,i.to);o&&t.dispatch({effects:Dh.of(o)}),e.preventDefault()};if(o.placeholderDOM)return o.placeholderDOM(t,n,e);let r=document.createElement("span");return r.textContent=o.placeholderText,r.setAttribute("aria-label",i.phrase("folded code")),r.title=i.phrase("unfold"),r.className="cm-foldPlaceholder",r.onclick=n,r}const $h=oi.replace({widget:new class extends ei{toDOM(t){return _h(t,null)}}});class Uh extends ei{constructor(t){super(),this.value=t}eq(t){return this.value==t.value}toDOM(t){return _h(t,this.value)}}const Gh={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class Jh extends Is{constructor(t,e){super(),this.config=t,this.open=e}eq(t){return this.config==t.config&&this.open==t.open}toDOM(t){if(this.config.markerDOM)return this.config.markerDOM(this.open);let e=document.createElement("span");return e.textContent=this.open?this.config.openText:this.config.closedText,e.title=t.state.phrase(this.open?"Fold line":"Unfold line"),e}}function Xh(t={}){let e=Object.assign(Object.assign({},Gh),t),i=new Jh(e,!0),o=new Jh(e,!1),n=to.fromClass(class{constructor(t){this.from=t.viewport.from,this.markers=this.buildMarkers(t)}update(t){(t.docChanged||t.viewportChanged||t.startState.facet(Zl)!=t.state.facet(Zl)||t.startState.field(Oh,!1)!=t.state.field(Oh,!1)||Hl(t.startState)!=Hl(t.state)||e.foldingChanged(t))&&(this.markers=this.buildMarkers(t.view))}buildMarkers(t){let e=new Bt;for(let n of t.viewportLineBlocks){let r=Bh(t.state,n.from,n.to)?o:Ch(t.state,n.from,n.to)?i:null;r&&e.add(n.from,n.from,r)}return e.finish()}}),{domEventHandlers:r}=e;return[n,Vs({class:"cm-foldGutter",markers(t){var e;return(null===(e=t.plugin(n))||void 0===e?void 0:e.markers)||Tt.empty},initialSpacer:()=>new Jh(e,!1),domEventHandlers:Object.assign(Object.assign({},r),{click:(t,e,i)=>{if(r.click&&r.click(t,e,i))return!0;let o=Bh(t.state,e.from,e.to);if(o)return t.dispatch({effects:Dh.of(o)}),!0;let n=Ch(t.state,e.from,e.to);return!!n&&(t.dispatch({effects:Mh.of(n)}),!0)}})}),Kh()]}const Yh=er.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class Qh{constructor(t,e){let i;function o(t){let e=Ut.newName();return(i||(i=Object.create(null)))["."+e]=t,e}this.specs=t;const n="string"==typeof e.all?e.all:e.all?o(e.all):void 0,r=e.scope;this.scope=r instanceof Rl?t=>t.prop(Fl)==r.data:r?t=>t==r:void 0,this.style=gl(t.map((t=>({tag:t.tag,class:t.class||o(Object.assign({},t,{tag:null}))}))),{all:n}).style,this.module=i?new Ut(i):null,this.themeType=e.themeType}static define(t,e){return new Qh(t,e||{})}}const Zh=I.define(),tc=I.define({combine:t=>t.length?[t[0]]:null});function ec(t){let e=t.facet(Zh);return e.length?e:t.facet(tc)}function ic(t,e){let i,o=[rc];return t instanceof Qh&&(t.module&&o.push(er.styleModule.of(t.module)),i=t.themeType),(null==e?void 0:e.fallback)?o.push(tc.of(t)):i?o.push(Zh.computeN([er.darkTheme],(e=>e.facet(er.darkTheme)==("dark"==i)?[t]:[]))):o.push(Zh.of(t)),o}function oc(t,e,i){let o=ec(t),n=null;if(o)for(let t of o)if(!t.scope||i&&t.scope(i)){let i=t.style(e);i&&(n=n?n+" "+i:i)}return n}class nc{constructor(t){this.markCache=Object.create(null),this.tree=Hl(t.state),this.decorations=this.buildDeco(t,ec(t.state)),this.decoratedTo=t.viewport.to}update(t){let e=Hl(t.state),i=ec(t.state),o=i!=ec(t.startState),{viewport:n}=t.view,r=t.changes.mapPos(this.decoratedTo,1);e.length=n.to?(this.decorations=this.decorations.map(t.changes),this.decoratedTo=r):(e!=this.tree||t.viewportChanged||o)&&(this.tree=e,this.decorations=this.buildDeco(t.view,i),this.decoratedTo=n.to)}buildDeco(t,e){if(!e||!this.tree.length)return oi.none;let i=new Bt;for(let{from:o,to:n}of t.visibleRanges)ml(this.tree,e,((t,e,o)=>{i.add(t,e,this.markCache[o]||(this.markCache[o]=oi.mark({class:o})))}),o,n);return i.finish()}}const rc=J.high(to.fromClass(nc,{decorations:t=>t.decorations})),sc=Qh.define([{tag:El.meta,color:"#404740"},{tag:El.link,textDecoration:"underline"},{tag:El.heading,textDecoration:"underline",fontWeight:"bold"},{tag:El.emphasis,fontStyle:"italic"},{tag:El.strong,fontWeight:"bold"},{tag:El.strikethrough,textDecoration:"line-through"},{tag:El.keyword,color:"#708"},{tag:[El.atom,El.bool,El.url,El.contentSeparator,El.labelName],color:"#219"},{tag:[El.literal,El.inserted],color:"#164"},{tag:[El.string,El.deleted],color:"#a11"},{tag:[El.regexp,El.escape,El.special(El.string)],color:"#e40"},{tag:El.definition(El.variableName),color:"#00f"},{tag:El.local(El.variableName),color:"#30a"},{tag:[El.typeName,El.namespace],color:"#085"},{tag:El.className,color:"#167"},{tag:[El.special(El.variableName),El.macroName],color:"#256"},{tag:El.definition(El.propertyName),color:"#00c"},{tag:El.comment,color:"#940"},{tag:El.invalid,color:"#f00"}]),ac=er.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),lc=1e4,hc="()[]{}",cc=I.define({combine:t=>At(t,{afterCursor:!0,brackets:hc,maxScanDistance:lc,renderMatch:uc})}),dc=oi.mark({class:"cm-matchingBracket"}),fc=oi.mark({class:"cm-nonmatchingBracket"});function uc(t){let e=[],i=t.matched?dc:fc;return e.push(i.range(t.start.from,t.start.to)),t.end&&e.push(i.range(t.end.from,t.end.to)),e}const gc=z.define({create:()=>oi.none,update(t,e){if(!e.docChanged&&!e.selection)return t;let i=[],o=e.state.facet(cc);for(let t of e.state.selection.ranges){if(!t.empty)continue;let n=wc(e.state,t.head,-1,o)||t.head>0&&wc(e.state,t.head-1,1,o)||o.afterCursor&&(wc(e.state,t.head,1,o)||t.header.decorations.from(t)}),mc=[gc,ac];function pc(t={}){return[cc.of(t),mc]}const bc=new ba;function vc(t,e,i){let o=t.prop(e<0?ba.openedBy:ba.closedBy);if(o)return o;if(1==t.name.length){let o=i.indexOf(t.name);if(o>-1&&o%2==(e<0?1:0))return[i[o+e]]}return null}function yc(t){let e=t.type.prop(bc);return e?e(t.node):t}function wc(t,e,i,o={}){let n=o.maxScanDistance||lc,r=o.brackets||hc,s=Hl(t),a=s.resolveInner(e,i);for(let o=a;o;o=o.parent){let n=vc(o.type,i,r);if(n&&o.from0?e>=s.from&&es.from&&e<=s.to))return xc(t,e,i,o,s,n,r)}}return function(t,e,i,o,n,r,s){let a=i<0?t.sliceDoc(e-1,e):t.sliceDoc(e,e+1),l=s.indexOf(a);if(l<0||l%2==0!=i>0)return null;let h={from:i<0?e-1:e,to:i>0?e+1:e},c=t.doc.iterRange(e,i>0?t.doc.length:0),d=0;for(let t=0;!c.next().done&&t<=r;){let r=c.value;i<0&&(t+=r.length);let a=e+t*i;for(let t=i>0?0:r.length-1,e=i>0?r.length:-1;t!=e;t+=i){let e=s.indexOf(r[t]);if(!(e<0||o.resolveInner(a+t,1).type!=n))if(e%2==0==i>0)d++;else{if(1==d)return{start:h,end:{from:a+t,to:a+t+1},matched:e>>1==l>>1};d--}}i>0&&(t+=r.length)}return c.done?{start:h,matched:!1}:null}(t,e,i,s,a.type,n,r)}function xc(t,e,i,o,n,r,s){let a=o.parent,l={from:n.from,to:n.to},h=0,c=null==a?void 0:a.cursor();if(c&&(i<0?c.childBefore(o.from):c.childAfter(o.to)))do{if(i<0?c.to<=o.from:c.from>=o.to){if(0==h&&r.indexOf(c.type.name)>-1&&c.from=this.string.length}sol(){return 0==this.pos}peek(){return this.string.charAt(this.pos)||void 0}next(){if(this.pose}eatSpace(){let t=this.pos;for(;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>t}skipToEnd(){this.pos=this.string.length}skipTo(t){let e=this.string.indexOf(t,this.pos);if(e>-1)return this.pos=e,!0}backUp(t){this.pos-=t}column(){return this.lastColumnPosi?t.toLowerCase():t;return o(this.string.substr(this.pos,t.length))==o(t)?(!1!==e&&(this.pos+=t.length),!0):null}{let i=this.string.slice(this.pos).match(t);return i&&i.index>0?null:(i&&!1!==e&&(this.pos+=i[0].length),i)}}current(){return this.string.slice(this.start,this.pos)}}function Cc(t){if("object"!=typeof t)return t;let e={};for(let i in t){let o=t[i];e[i]=o instanceof Array?o.slice():o}return e}const Ac=new WeakMap;class Mc extends Rl{constructor(t){let e,i=Pl(t.languageData),o={name:(n=t).name||"",token:n.token,blankLine:n.blankLine||(()=>{}),startState:n.startState||(()=>!0),copyState:n.copyState||Cc,indent:n.indent||(()=>null),languageData:n.languageData||{},tokenTable:n.tokenTable||Bc};var n;super(i,new class extends _a{createParse(t,i,o){return new Oc(e,t,i,o)}},[ih.of(((t,e)=>this.getIndent(t,e)))],t.name),this.topNode=function(t){let e=wa.define({id:Ec.length,name:"Document",props:[Fl.add((()=>t))],top:!0});return Ec.push(e),e}(i),e=this,this.streamParser=o,this.stateAfter=new ba({perNode:!0}),this.tokenTable=t.tokenTable?new Rc(o.tokenTable):jc}static define(t){return new Mc(t)}getIndent(t,e){let i,o=Hl(t.state),n=o.resolve(e);for(;n&&n.type!=this.topNode;)n=n.parent;if(!n)return null;let{overrideIndentation:r}=t.options;r&&(i=Ac.get(t.state),null!=i&&i1e4)return null;for(;s=o&&i+e.length<=n&&e.prop(t.stateAfter);if(r)return{state:t.streamParser.copyState(r),pos:i+e.length};for(let r=e.children.length-1;r>=0;r--){let s=e.children[r],a=i+e.positions[r],l=s instanceof Aa&&a=e.length)return e;n||e.type!=t.topNode||(n=!0);for(let r=e.children.length-1;r>=0;r--){let s,a=e.positions[r],l=e.children[r];if(ai&&Dc(t,o.tree,0-o.offset,i,r);if(s&&(e=Nc(t,o.tree,i+o.offset,s.pos+o.offset,!1)))return{state:s.state,tree:e}}return{state:t.streamParser.startState(o?nh(o):4),tree:Aa.empty}}(t,i,r,null==n?void 0:n.state);this.state=s,this.parsedPos=this.chunkStart=r+a.length;for(let t=0;t=e?this.finish():t&&this.parsedPos>=t.viewport.to?(t.skipUntilInView(this.parsedPos,e),this.finish()):null}stopAt(t){this.stoppedAt=t}lineAfter(t){let e=this.input.chunk(t);if(this.input.lineChunks)"\n"==e&&(e="");else{let t=e.indexOf("\n");t>-1&&(e=e.slice(0,t))}return t+e.length<=this.to?e:e.slice(0,this.to-t)}nextLine(){let t=this.parsedPos,e=this.lineAfter(t),i=t+e.length;for(let t=this.rangeIndex;;){let o=this.ranges[t].to;if(o>=i)break;if(e=e.slice(0,o-(i-e.length)),t++,t==this.ranges.length)break;let n=this.ranges[t].from,r=this.lineAfter(n);e+=r,i=n+r.length}return{line:e,end:i}}skipGapsTo(t,e,i){for(;;){let o=this.ranges[this.rangeIndex].to,n=t+e;if(i>0?o>n:o>=n)break;e+=this.ranges[++this.rangeIndex].from-o}return e}moveRangeIndex(){for(;this.ranges[this.rangeIndex].to1){e+=n=this.skipGapsTo(e,n,1);let t=this.chunk.length;i+=n=this.skipGapsTo(i,n,-1),o+=this.chunk.length-t}return this.chunk.push(t,e,i,o),n}parseLine(t){let{line:e,end:i}=this.nextLine(),o=0,{streamParser:n}=this.lang,r=new Sc(e,t?t.state.tabSize:4,t?nh(t.state):2);if(r.eol())n.blankLine(this.state,r.indentUnit);else for(;!r.eol();){let t=Tc(n.token,r,this.state);if(t&&(o=this.emitToken(this.lang.tokenTable.resolve(t),this.parsedPos+r.start,this.parsedPos+r.pos,4,o)),r.start>1e4)break}this.parsedPos=i,this.moveRangeIndex(),this.parsedPose.start)return o}throw new Error("Stream parser failed to advance stream.")}const Bc=Object.create(null),Ec=[wa.none],Lc=new xa(Ec),Fc=[],Pc=Object.create(null),Ic=Object.create(null);for(let[t,e]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])Ic[t]=Hc(Bc,e);class Rc{constructor(t){this.extra=t,this.table=Object.assign(Object.create(null),Ic)}resolve(t){return t?this.table[t]||(this.table[t]=Hc(this.extra,t)):0}}const jc=new Rc(Bc);function Wc(t,e){Fc.indexOf(t)>-1||(Fc.push(t),console.warn(e))}function Hc(t,e){let i=[];for(let o of e.split(" ")){let e=[];for(let i of o.split(".")){let o=t[i]||El[i];o?"function"==typeof o?e.length?e=e.map(o):Wc(i,`Modifier ${i} used at start of tag`):e.length?Wc(i,`Tag ${i} used as modifier`):e=Array.isArray(o)?o:[o]:Wc(i,`Unknown highlighting tag ${i}`)}for(let t of e)i.push(t)}if(!i.length)return 0;let o=e.replace(/ /g,"_"),n=o+" "+i.map((t=>t.id)),r=Pc[n];if(r)return r.id;let s=Pc[n]=wa.define({id:Ec.length,name:o,props:[dl({[o]:i})]});return Ec.push(s),s.id}function Vc(t){return t.length<=4096&&/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/.test(t)}function qc(t){for(let e=t.iter();!e.next().done;)if(Vc(e.value))return!0;return!1}const zc=I.define({combine:t=>t.some((t=>t))});function Kc(t={}){let e=[_c];return t.alwaysIsolate&&e.push(zc.of(!0)),e}const _c=to.fromClass(class{constructor(t){this.always=t.state.facet(zc)||t.textDirection!=mi.LTR||t.state.facet(er.perLineTextDirection),this.hasRTL=!this.always&&qc(t.state.doc),this.tree=Hl(t.state),this.decorations=this.always||this.hasRTL?$c(t,this.tree,this.always):oi.none}update(t){let e=t.state.facet(zc)||t.view.textDirection!=mi.LTR||t.state.facet(er.perLineTextDirection);if(e||this.hasRTL||!function(t){let e=!1;return t.iterChanges(((t,i,o,n,r)=>{!e&&qc(r)&&(e=!0)})),e}(t.changes)||(this.hasRTL=!0),!e&&!this.hasRTL)return;let i=Hl(t.state);(e!=this.always||i!=this.tree||t.docChanged||t.viewportChanged)&&(this.tree=i,this.always=e,this.decorations=$c(t.view,i,e))}},{provide:t=>{function e(e){var i,o;return null!==(o=null===(i=e.plugin(t))||void 0===i?void 0:i.decorations)&&void 0!==o?o:oi.none}return[er.outerDecorations.of(e),J.lowest(er.bidiIsolatedRanges.of(e))]}});function $c(t,e,i){let o=new Bt,n=t.visibleRanges;i||(n=function(t,e){let i=e.iter(),o=0,n=[],r=null;for(let{from:e,to:s}of t)if(!(r&&r.to>e&&(e=r.to,e>=s)))for(o+i.value.lengtht-10?r.to=Math.min(s,e):n.push(r={from:t,to:Math.min(s,e)})),e>=s)break;o=e,i.next()}return n}(n,t.state.doc));for(let{from:t,to:i}of n)e.iterate({enter:t=>{let e=t.type.prop(ba.isolate);e&&o.add(t.from,t.to,Uc[e])},from:t,to:i});return o.finish()}const Uc={rtl:oi.mark({class:"cm-iso",inclusive:!0,attributes:{dir:"rtl"},bidiIsolate:mi.RTL}),ltr:oi.mark({class:"cm-iso",inclusive:!0,attributes:{dir:"ltr"},bidiIsolate:mi.LTR}),auto:oi.mark({class:"cm-iso",inclusive:!0,attributes:{dir:"auto"},bidiIsolate:null})},Gc=t=>{let{state:e}=t,i=e.doc.lineAt(e.selection.main.from),o=od(t.state,i.from);return o.line?Xc(t):!!o.block&&id(t)};function Jc(t,e){return({state:i,dispatch:o})=>{if(i.readOnly)return!1;let n=t(e,i);return!!n&&(o(i.update(n)),!0)}}const Xc=Jc(sd,0),Yc=Jc(sd,1),Qc=Jc(sd,2),Zc=Jc(rd,0),td=Jc(rd,1),ed=Jc(rd,2),id=Jc(((t,e)=>rd(t,e,function(t){let e=[];for(let i of t.selection.ranges){let o=t.doc.lineAt(i.from),n=i.to<=o.to?o:t.doc.lineAt(i.to),r=e.length-1;r>=0&&e[r].to>o.from?e[r].to=n.to:e.push({from:o.from+/^\s*/.exec(o.text)[0].length,to:n.to})}return e}(e))),0);function od(t,e){let i=t.languageDataAt("commentTokens",e);return i.length?i[0]:{}}const nd=50;function rd(t,e,i=e.selection.ranges){let o=i.map((t=>od(e,t.from).block));if(!o.every((t=>t)))return null;let n=i.map(((t,i)=>function(t,{open:e,close:i},o,n){let r,s,a=t.sliceDoc(o-nd,o),l=t.sliceDoc(n,n+nd),h=/\s*$/.exec(a)[0].length,c=/^\s*/.exec(l)[0].length,d=a.length-h;if(a.slice(d-e.length,d)==e&&l.slice(c,c+i.length)==i)return{open:{pos:o-h,margin:h&&1},close:{pos:n+c,margin:c&&1}};n-o<=2*nd?r=s=t.sliceDoc(o,n):(r=t.sliceDoc(o,o+nd),s=t.sliceDoc(n-nd,n));let f=/^\s*/.exec(r)[0].length,u=/\s*$/.exec(s)[0].length,g=s.length-u-i.length;return r.slice(f,f+e.length)==e&&s.slice(g,g+i.length)==i?{open:{pos:o+f+e.length,margin:/\s/.test(r.charAt(f+e.length))?1:0},close:{pos:n-u-i.length,margin:/\s/.test(s.charAt(g-1))?1:0}}:null}(e,o[i],t.from,t.to)));if(2!=t&&!n.every((t=>t)))return{changes:e.changes(i.map(((t,e)=>n[e]?[]:[{from:t.from,insert:o[e].open+" "},{from:t.to,insert:" "+o[e].close}])))};if(1!=t&&n.some((t=>t))){let t=[];for(let e,i=0;in&&(t==r||r>l.from)){n=l.from;let t=/^\s*/.exec(l.text)[0].length,e=t==l.length,i=l.text.slice(t,t+a.length)==a?t:-1;tt.comment<0&&(!t.empty||t.single)))){let t=[];for(let{line:e,token:i,indent:n,empty:r,single:s}of o)!s&&r||t.push({from:e.from+n,insert:i+" "});let i=e.changes(t);return{changes:i,selection:e.selection.map(i,1)}}if(1!=t&&o.some((t=>t.comment>=0))){let t=[];for(let{line:e,comment:i,token:n}of o)if(i>=0){let o=e.from+i,r=o+n.length;" "==e.text[r-e.from]&&r++,t.push({from:o,to:r})}return{changes:t}}return null}const ad=ht.define(),ld=ht.define(),hd=I.define(),cd=I.define({combine:t=>At(t,{minDepth:100,newGroupDelay:500,joinToEvent:(t,e)=>e},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(t,e)=>(i,o)=>t(i,o)||e(i,o)})}),dd=z.define({create:()=>Ed.empty,update(t,e){let i=e.state.facet(cd),o=e.annotation(ad);if(o){let n=kd.fromTransaction(e,o.selection),r=o.side,s=0==r?t.undone:t.done;return s=n?Sd(s,s.length,i.minDepth,n):Dd(s,e.startState.selection),new Ed(0==r?o.rest:s,0==r?s:o.rest)}let n=e.annotation(ld);if("full"!=n&&"before"!=n||(t=t.isolate()),!1===e.annotation(ut.addToHistory))return e.changes.empty?t:t.addMapping(e.changes.desc);let r=kd.fromTransaction(e),s=e.annotation(ut.time),a=e.annotation(ut.userEvent);return r?t=t.addChanges(r,s,a,i,e):e.selection&&(t=t.addSelection(e.startState.selection,s,a,i.newGroupDelay)),"full"!=n&&"after"!=n||(t=t.isolate()),t},toJSON:t=>({done:t.done.map((t=>t.toJSON())),undone:t.undone.map((t=>t.toJSON()))}),fromJSON:t=>new Ed(t.done.map(kd.fromJSON),t.undone.map(kd.fromJSON))});function fd(t={}){return[dd,cd.of(t),er.domEventHandlers({beforeinput(t,e){let i="historyUndo"==t.inputType?md:"historyRedo"==t.inputType?pd:null;return!!i&&(t.preventDefault(),i(e))}})]}const ud=dd;function gd(t,e){return function({state:i,dispatch:o}){if(!e&&i.readOnly)return!1;let n=i.field(dd,!1);if(!n)return!1;let r=n.pop(t,i,e);return!!r&&(o(r),!0)}}const md=gd(0,!1),pd=gd(1,!1),bd=gd(0,!0),vd=gd(1,!0);function yd(t){return function(e){let i=e.field(dd,!1);if(!i)return 0;let o=0==t?i.done:i.undone;return o.length-(o.length&&!o[0].changes?1:0)}}const wd=yd(0),xd=yd(1);class kd{constructor(t,e,i,o,n){this.changes=t,this.effects=e,this.mapped=i,this.startSelection=o,this.selectionsAfter=n}setSelAfter(t){return new kd(this.changes,this.effects,this.mapped,this.startSelection,t)}toJSON(){var t,e,i;return{changes:null===(t=this.changes)||void 0===t?void 0:t.toJSON(),mapped:null===(e=this.mapped)||void 0===e?void 0:e.toJSON(),startSelection:null===(i=this.startSelection)||void 0===i?void 0:i.toJSON(),selectionsAfter:this.selectionsAfter.map((t=>t.toJSON()))}}static fromJSON(t){return new kd(t.changes&&A.fromJSON(t.changes),[],t.mapped&&C.fromJSON(t.mapped),t.startSelection&&L.fromJSON(t.startSelection),t.selectionsAfter.map(L.fromJSON))}static fromTransaction(t,e){let i=Ad;for(let e of t.startState.facet(hd)){let o=e(t);o.length&&(i=i.concat(o))}return!i.length&&t.changes.empty?null:new kd(t.changes.invert(t.startState.doc),i,void 0,e||t.startState.selection,Ad)}static selection(t){return new kd(void 0,Ad,void 0,void 0,t)}}function Sd(t,e,i,o){let n=e+1>i+20?e-i-1:0,r=t.slice(n,e);return r.push(o),r}function Cd(t,e){return t.length?e.length?t.concat(e):t:e}const Ad=[],Md=200;function Dd(t,e){if(t.length){let i=t[t.length-1],o=i.selectionsAfter.slice(Math.max(0,i.selectionsAfter.length-Md));return o.length&&o[o.length-1].eq(e)?t:(o.push(e),Sd(t,t.length-1,1e9,i.setSelAfter(o)))}return[kd.selection([e])]}function Nd(t){let e=t[t.length-1],i=t.slice();return i[t.length-1]=e.setSelAfter(e.selectionsAfter.slice(0,e.selectionsAfter.length-1)),i}function Od(t,e){if(!t.length)return t;let i=t.length,o=Ad;for(;i;){let n=Td(t[i-1],e,o);if(n.changes&&!n.changes.empty||n.effects.length){let e=t.slice(0,i);return e[i-1]=n,e}e=n.mapped,i--,o=n.selectionsAfter}return o.length?[kd.selection(o)]:Ad}function Td(t,e,i){let o=Cd(t.selectionsAfter.length?t.selectionsAfter.map((t=>t.map(e))):Ad,i);if(!t.changes)return kd.selection(o);let n=t.changes.map(e),r=e.mapDesc(t.changes,!0),s=t.mapped?t.mapped.composeDesc(r):r;return new kd(n,ft.mapEffects(t.effects,e),s,t.startSelection.map(r),o)}const Bd=/^(input\.type|delete)($|\.)/;class Ed{constructor(t,e,i=0,o=void 0){this.done=t,this.undone=e,this.prevTime=i,this.prevUserEvent=o}isolate(){return this.prevTime?new Ed(this.done,this.undone):this}addChanges(t,e,i,o,n){let r=this.done,s=r[r.length-1];return r=s&&s.changes&&!s.changes.empty&&t.changes&&(!i||Bd.test(i))&&(!s.selectionsAfter.length&&e-this.prevTimei.push(t,e))),e.iterChangedRanges(((t,e,n,r)=>{for(let t=0;t=e&&n<=s&&(o=!0)}})),o}(s.changes,t.changes))||"input.type.compose"==i)?Sd(r,r.length-1,o.minDepth,new kd(t.changes.compose(s.changes),Cd(t.effects,s.effects),s.mapped,s.startSelection,Ad)):Sd(r,r.length,o.minDepth,t),new Ed(r,Ad,e,i)}addSelection(t,e,i,o){let n=this.done.length?this.done[this.done.length-1].selectionsAfter:Ad;return n.length>0&&e-this.prevTimet.empty!=s.ranges[e].empty)).length)?this:new Ed(Dd(this.done,t),this.undone,e,i);var r,s}addMapping(t){return new Ed(Od(this.done,t),Od(this.undone,t),this.prevTime,this.prevUserEvent)}pop(t,e,i){let o=0==t?this.done:this.undone;if(0==o.length)return null;let n=o[o.length-1],r=n.selectionsAfter[0]||e.selection;if(i&&n.selectionsAfter.length)return e.update({selection:n.selectionsAfter[n.selectionsAfter.length-1],annotations:ad.of({side:t,rest:Nd(o),selection:r}),userEvent:0==t?"select.undo":"select.redo",scrollIntoView:!0});if(n.changes){let i=1==o.length?Ad:o.slice(0,o.length-1);return n.mapped&&(i=Od(i,n.mapped)),e.update({changes:n.changes,selection:n.startSelection,effects:n.effects,annotations:ad.of({side:t,rest:i,selection:r}),filter:!1,userEvent:0==t?"undo":"redo",scrollIntoView:!0})}return null}}Ed.empty=new Ed(Ad,Ad);const Ld=[{key:"Mod-z",run:md,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:pd,preventDefault:!0},{linux:"Ctrl-Shift-z",run:pd,preventDefault:!0},{key:"Mod-u",run:bd,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:vd,preventDefault:!0}];function Fd(t,e){return L.create(t.ranges.map(e),t.mainIndex)}function Pd(t,e){return t.update({selection:e,scrollIntoView:!0,userEvent:"select"})}function Id({state:t,dispatch:e},i){let o=Fd(t.selection,i);return!o.eq(t.selection,!0)&&(e(Pd(t,o)),!0)}function Rd(t,e){return L.cursor(e?t.to:t.from)}function jd(t,e){return Id(t,(i=>i.empty?t.moveByChar(i,e):Rd(i,e)))}function Wd(t){return t.textDirectionAt(t.state.selection.main.head)==mi.LTR}const Hd=t=>jd(t,!Wd(t)),Vd=t=>jd(t,Wd(t)),qd=t=>jd(t,!0),zd=t=>jd(t,!1);function Kd(t,e){return Id(t,(i=>i.empty?t.moveByGroup(i,e):Rd(i,e)))}const _d=t=>Kd(t,!Wd(t)),$d=t=>Kd(t,Wd(t)),Ud=t=>Kd(t,!0),Gd=t=>Kd(t,!1),Jd="undefined"!=typeof Intl&&Intl.Segmenter?new Intl.Segmenter(void 0,{granularity:"word"}):null;function Xd(t,e,i){let o=t.state.charCategorizer(e.from),n=wt.Space,r=e.from,s=0,a=!1,l=!1,h=!1,c=e=>{if(a)return!1;r+=i?e.length:-e.length;let c,d=o(e);if(d==wt.Word&&e.charCodeAt(0)<128&&/[\W_]/.test(e)&&(d=-1),n==wt.Space&&(n=d),n!=d)return!1;if(n==wt.Word)if(e.toLowerCase()==e){if(!i&&l)return!1;h=!0}else if(h){if(i)return!1;a=!0}else{if(l&&i&&o(c=t.state.sliceDoc(r,r+1))==wt.Word&&c.toLowerCase()==c)return!1;l=!0}return s++,!0},d=t.moveByChar(e,i,(t=>(c(t),c)));if(Jd&&n==wt.Word&&d.from==e.from+s*(i?1:-1)){let o=Math.min(e.head,d.head),n=Math.max(e.head,d.head),r=t.state.sliceDoc(o,n);if(r.length>1&&/[\u4E00-\uffff]/.test(r)){let t=Array.from(Jd.segment(r));if(t.length>1)return i?L.cursor(e.head+t[1].index,-1):L.cursor(d.head+t[t.length-1].index,1)}}return d}function Yd(t,e){return Id(t,(i=>i.empty?Xd(t,i,e):Rd(i,e)))}const Qd=t=>Yd(t,!0),Zd=t=>Yd(t,!1);function tf(t,e,i){if(e.type.prop(i))return!0;let o=e.to-e.from;return o&&(o>2||/[^\s,.;:]/.test(t.sliceDoc(e.from,e.to)))||e.firstChild}function ef(t,e,i){let o,n,r=Hl(t).resolveInner(e.head),s=i?ba.closedBy:ba.openedBy;for(let o=e.head;;){let e=i?r.childAfter(o):r.childBefore(o);if(!e)break;tf(t,e,s)?r=e:o=i?e.to:e.from}return n=r.type.prop(s)&&(o=i?wc(t,r.from,1):wc(t,r.to,-1))&&o.matched?i?o.end.to:o.end.from:i?r.to:r.from,L.cursor(n,i?-1:1)}const of=t=>Id(t,(e=>ef(t.state,e,!Wd(t)))),nf=t=>Id(t,(e=>ef(t.state,e,Wd(t))));function rf(t,e){return Id(t,(i=>{if(!i.empty)return Rd(i,e);let o=t.moveVertically(i,e);return o.head!=i.head?o:t.moveToLineBoundary(i,e)}))}const sf=t=>rf(t,!1),af=t=>rf(t,!0);function lf(t){let e,i=t.scrollDOM.clientHeighti.empty?t.moveVertically(i,e,o.height):Rd(i,e)));if(r.eq(n.selection))return!1;if(o.selfScroll){let e=t.coordsAtPos(n.selection.main.head),s=t.scrollDOM.getBoundingClientRect(),a=s.top+o.marginTop,l=s.bottom-o.marginBottom;e&&e.top>a&&e.bottomhf(t,!1),df=t=>hf(t,!0);function ff(t,e,i){let o=t.lineBlockAt(e.head),n=t.moveToLineBoundary(e,i);if(n.head==e.head&&n.head!=(i?o.to:o.from)&&(n=t.moveToLineBoundary(e,i,!1)),!i&&n.head==o.from&&o.length){let i=/^\s*/.exec(t.state.sliceDoc(o.from,Math.min(o.from+100,o.to)))[0].length;i&&e.head!=o.from+i&&(n=L.cursor(o.from+i))}return n}const uf=t=>Id(t,(e=>ff(t,e,!0))),gf=t=>Id(t,(e=>ff(t,e,!1))),mf=t=>Id(t,(e=>ff(t,e,!Wd(t)))),pf=t=>Id(t,(e=>ff(t,e,Wd(t)))),bf=t=>Id(t,(e=>L.cursor(t.lineBlockAt(e.head).from,1))),vf=t=>Id(t,(e=>L.cursor(t.lineBlockAt(e.head).to,-1)));function yf(t,e,i){let o=!1,n=Fd(t.selection,(e=>{let n=wc(t,e.head,-1)||wc(t,e.head,1)||e.head>0&&wc(t,e.head-1,1)||e.headyf(t,e,!1),xf=({state:t,dispatch:e})=>yf(t,e,!0);function kf(t,e){let i=Fd(t.state.selection,(t=>{let i=e(t);return L.range(t.anchor,i.head,i.goalColumn,i.bidiLevel||void 0)}));return!i.eq(t.state.selection)&&(t.dispatch(Pd(t.state,i)),!0)}function Sf(t,e){return kf(t,(i=>t.moveByChar(i,e)))}const Cf=t=>Sf(t,!Wd(t)),Af=t=>Sf(t,Wd(t)),Mf=t=>Sf(t,!0),Df=t=>Sf(t,!1);function Nf(t,e){return kf(t,(i=>t.moveByGroup(i,e)))}const Of=t=>Nf(t,!Wd(t)),Tf=t=>Nf(t,Wd(t)),Bf=t=>Nf(t,!0),Ef=t=>Nf(t,!1);function Lf(t,e){return kf(t,(i=>Xd(t,i,e)))}const Ff=t=>Lf(t,!0),Pf=t=>Lf(t,!1),If=t=>kf(t,(e=>ef(t.state,e,!Wd(t)))),Rf=t=>kf(t,(e=>ef(t.state,e,Wd(t))));function jf(t,e){return kf(t,(i=>t.moveVertically(i,e)))}const Wf=t=>jf(t,!1),Hf=t=>jf(t,!0);function Vf(t,e){return kf(t,(i=>t.moveVertically(i,e,lf(t).height)))}const qf=t=>Vf(t,!1),zf=t=>Vf(t,!0),Kf=t=>kf(t,(e=>ff(t,e,!0))),_f=t=>kf(t,(e=>ff(t,e,!1))),$f=t=>kf(t,(e=>ff(t,e,!Wd(t)))),Uf=t=>kf(t,(e=>ff(t,e,Wd(t)))),Gf=t=>kf(t,(e=>L.cursor(t.lineBlockAt(e.head).from))),Jf=t=>kf(t,(e=>L.cursor(t.lineBlockAt(e.head).to))),Xf=({state:t,dispatch:e})=>(e(Pd(t,{anchor:0})),!0),Yf=({state:t,dispatch:e})=>(e(Pd(t,{anchor:t.doc.length})),!0),Qf=({state:t,dispatch:e})=>(e(Pd(t,{anchor:t.selection.main.anchor,head:0})),!0),Zf=({state:t,dispatch:e})=>(e(Pd(t,{anchor:t.selection.main.anchor,head:t.doc.length})),!0),tu=({state:t,dispatch:e})=>(e(t.update({selection:{anchor:0,head:t.doc.length},userEvent:"select"})),!0),eu=({state:t,dispatch:e})=>{let i=wu(t).map((({from:e,to:i})=>L.range(e,Math.min(i+1,t.doc.length))));return e(t.update({selection:L.create(i),userEvent:"select"})),!0},iu=({state:t,dispatch:e})=>{let i=Fd(t.selection,(e=>{var i;for(let o=Hl(t).resolveStack(e.from,1);o;o=o.next){let{node:t}=o;if((t.from=e.to||t.to>e.to&&t.from<=e.from)&&(null===(i=t.parent)||void 0===i?void 0:i.parent))return L.range(t.to,t.from)}return e}));return e(Pd(t,i)),!0},ou=({state:t,dispatch:e})=>{let i=t.selection,o=null;return i.ranges.length>1?o=L.create([i.main]):i.main.empty||(o=L.create([L.cursor(i.main.head)])),!!o&&(e(Pd(t,o)),!0)};function nu(t,e){if(t.state.readOnly)return!1;let i="delete.selection",{state:o}=t,n=o.changeByRange((o=>{let{from:n,to:r}=o;if(n==r){let s=e(o);sn&&(i="delete.forward",s=ru(t,s,!0)),n=Math.min(n,s),r=Math.max(r,s)}else n=ru(t,n,!1),r=ru(t,r,!0);return n==r?{range:o}:{changes:{from:n,to:r},range:L.cursor(n,ne(t))))o.between(e,e,((t,o)=>{te&&(e=i?o:t)}));return e}const su=(t,e,i)=>nu(t,(o=>{let n,r,s=o.from,{state:a}=t,l=a.doc.lineAt(s);if(i&&!e&&s>l.from&&ssu(t,!1,!0),lu=t=>su(t,!1,!1),hu=t=>su(t,!0,!1),cu=(t,e)=>nu(t,(i=>{let o=i.head,{state:n}=t,r=n.doc.lineAt(o),s=n.charCategorizer(o);for(let t=null;;){if(o==(e?r.to:r.from)){o==i.head&&r.number!=(e?n.doc.lines:1)&&(o+=e?1:-1);break}let a=g(r.text,o-r.from,e)+r.from,l=r.text.slice(Math.min(o,a)-r.from,Math.max(o,a)-r.from),h=s(l);if(null!=t&&h!=t)break;" "==l&&o==i.head||(t=h),o=a}return o})),du=t=>cu(t,!1),fu=t=>cu(t,!0),uu=t=>nu(t,(e=>{let i=t.lineBlockAt(e.head).to;return e.headnu(t,(e=>{let i=t.lineBlockAt(e.head).from;return e.head>i?i:Math.max(0,e.head-1)})),mu=t=>nu(t,(e=>{let i=t.moveToLineBoundary(e,!1).head;return e.head>i?i:Math.max(0,e.head-1)})),pu=t=>nu(t,(e=>{let i=t.moveToLineBoundary(e,!0).head;return e.head{if(t.readOnly)return!1;let i=[];for(let e=0,o="",n=t.doc.iter();;){if(n.next(),n.lineBreak||n.done){let t=o.search(/\s+$/);if(t>-1&&i.push({from:e-(o.length-t),to:e}),n.done)break;o=""}else o=n.value;e+=n.value.length}return!!i.length&&(e(t.update({changes:i,userEvent:"delete"})),!0)},vu=({state:e,dispatch:i})=>{if(e.readOnly)return!1;let o=e.changeByRange((e=>({changes:{from:e.from,to:e.to,insert:t.of(["",""])},range:L.cursor(e.from)})));return i(e.update(o,{scrollIntoView:!0,userEvent:"input"})),!0},yu=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let i=t.changeByRange((e=>{if(!e.empty||0==e.from||e.from==t.doc.length)return{range:e};let i=e.from,o=t.doc.lineAt(i),n=i==o.from?i-1:g(o.text,i-o.from,!1)+o.from,r=i==o.to?i+1:g(o.text,i-o.from,!0)+o.from;return{changes:{from:n,to:r,insert:t.doc.slice(i,r).append(t.doc.slice(n,i))},range:L.cursor(r)}}));return!i.changes.empty&&(e(t.update(i,{scrollIntoView:!0,userEvent:"move.character"})),!0)};function wu(t){let e=[],i=-1;for(let o of t.selection.ranges){let n=t.doc.lineAt(o.from),r=t.doc.lineAt(o.to);if(o.empty||o.to!=r.from||(r=t.doc.lineAt(o.to-1)),i>=n.number){let t=e[e.length-1];t.to=r.to,t.ranges.push(o)}else e.push({from:n.from,to:r.to,ranges:[o]});i=r.number+1}return e}function xu(t,e,i){if(t.readOnly)return!1;let o=[],n=[];for(let e of wu(t)){if(i?e.to==t.doc.length:0==e.from)continue;let r=t.doc.lineAt(i?e.to+1:e.from-1),s=r.length+1;if(i){o.push({from:e.to,to:r.to},{from:e.from,insert:r.text+t.lineBreak});for(let i of e.ranges)n.push(L.range(Math.min(t.doc.length,i.anchor+s),Math.min(t.doc.length,i.head+s)))}else{o.push({from:r.from,to:e.from},{from:e.to,insert:t.lineBreak+r.text});for(let t of e.ranges)n.push(L.range(t.anchor-s,t.head-s))}}return!!o.length&&(e(t.update({changes:o,scrollIntoView:!0,selection:L.create(n,t.selection.mainIndex),userEvent:"move.line"})),!0)}const ku=({state:t,dispatch:e})=>xu(t,e,!1),Su=({state:t,dispatch:e})=>xu(t,e,!0);function Cu(t,e,i){if(t.readOnly)return!1;let o=[];for(let e of wu(t))i?o.push({from:e.from,insert:t.doc.slice(e.from,e.to)+t.lineBreak}):o.push({from:e.to,insert:t.lineBreak+t.doc.slice(e.from,e.to)});return e(t.update({changes:o,scrollIntoView:!0,userEvent:"input.copyline"})),!0}const Au=({state:t,dispatch:e})=>Cu(t,e,!1),Mu=({state:t,dispatch:e})=>Cu(t,e,!0),Du=t=>{if(t.state.readOnly)return!1;let{state:e}=t,i=e.changes(wu(e).map((({from:t,to:i})=>(t>0?t--:i{let i;if(t.lineWrapping){let o=t.lineBlockAt(e.head),n=t.coordsAtPos(e.head,e.assoc||1);n&&(i=o.bottom+t.documentTop-n.bottom+t.defaultLineHeight/2)}return t.moveVertically(e,!0,i)})).map(i);return t.dispatch({changes:i,selection:o,scrollIntoView:!0,userEvent:"delete.line"}),!0},Nu=({state:t,dispatch:e})=>(e(t.update(t.replaceSelection(t.lineBreak),{scrollIntoView:!0,userEvent:"input"})),!0),Ou=({state:t,dispatch:e})=>(e(t.update(t.changeByRange((e=>{let i=/^\s*/.exec(t.doc.lineAt(e.from).text)[0];return{changes:{from:e.from,to:e.to,insert:t.lineBreak+i},range:L.cursor(e.from+i.length+1)}})),{scrollIntoView:!0,userEvent:"input"})),!0);const Tu=Eu(!1),Bu=Eu(!0);function Eu(e){return({state:i,dispatch:o})=>{if(i.readOnly)return!1;let n=i.changeByRange((o=>{let{from:n,to:r}=o,s=i.doc.lineAt(n),a=!e&&n==r&&function(t,e){if(/\(\)|\[\]|\{\}/.test(t.sliceDoc(e-1,e+1)))return{from:e,to:e};let i,o=Hl(t).resolveInner(e),n=o.childBefore(e),r=o.childAfter(e);return n&&r&&n.to<=e&&r.from>=e&&(i=n.type.prop(ba.closedBy))&&i.indexOf(r.name)>-1&&t.doc.lineAt(n.to).from==t.doc.lineAt(r.from).from&&!/\S/.test(t.sliceDoc(n.to,r.from))?{from:n.to,to:r.from}:null}(i,n);e&&(n=r=(r<=s.to?s:i.doc.lineAt(r)).to);let l=new lh(i,{simulateBreak:n,simulateDoubleBreak:!!a}),h=sh(l,n);for(null==h&&(h=qt(/^\s*/.exec(i.doc.lineAt(n).text)[0],i.tabSize));rs.from&&n{let n=[];for(let r=o.from;r<=o.to;){let s=t.doc.lineAt(r);s.number>i&&(o.empty||o.to>s.from)&&(e(s,n,o),i=s.number),r=s.to+1}let r=t.changes(n);return{changes:n,range:L.range(r.mapPos(o.anchor,1),r.mapPos(o.head,1))}}))}const Fu=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let i=Object.create(null),o=new lh(t,{overrideIndentation:t=>{let e=i[t];return null==e?-1:e}}),n=Lu(t,((e,n,r)=>{let s=sh(o,e.from);if(null==s)return;/\S/.test(e.text)||(s=0);let a=/^\s*/.exec(e.text)[0],l=rh(t,s);(a!=l||r.from!t.readOnly&&(e(t.update(Lu(t,((e,i)=>{i.push({from:e.from,insert:t.facet(oh)})})),{userEvent:"input.indent"})),!0),Iu=({state:t,dispatch:e})=>!t.readOnly&&(e(t.update(Lu(t,((e,i)=>{let o=/^\s*/.exec(e.text)[0];if(!o)return;let n=qt(o,t.tabSize),r=0,s=rh(t,Math.max(0,n-nh(t)));for(;r(t.setTabFocusMode(),!0),ju=t=>(t.setTabFocusMode(2e3),!0),Wu=({state:t,dispatch:e})=>t.selection.ranges.some((t=>!t.empty))?Pu({state:t,dispatch:e}):(e(t.update(t.replaceSelection("\t"),{scrollIntoView:!0,userEvent:"input"})),!0),Hu=[{key:"Ctrl-b",run:Hd,shift:Cf,preventDefault:!0},{key:"Ctrl-f",run:Vd,shift:Af},{key:"Ctrl-p",run:sf,shift:Wf},{key:"Ctrl-n",run:af,shift:Hf},{key:"Ctrl-a",run:bf,shift:Gf},{key:"Ctrl-e",run:vf,shift:Jf},{key:"Ctrl-d",run:hu},{key:"Ctrl-h",run:au},{key:"Ctrl-k",run:uu},{key:"Ctrl-Alt-h",run:du},{key:"Ctrl-o",run:vu},{key:"Ctrl-t",run:yu},{key:"Ctrl-v",run:df}],Vu=[{key:"ArrowLeft",run:Hd,shift:Cf,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:_d,shift:Of,preventDefault:!0},{mac:"Cmd-ArrowLeft",run:mf,shift:$f,preventDefault:!0},{key:"ArrowRight",run:Vd,shift:Af,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:$d,shift:Tf,preventDefault:!0},{mac:"Cmd-ArrowRight",run:pf,shift:Uf,preventDefault:!0},{key:"ArrowUp",run:sf,shift:Wf,preventDefault:!0},{mac:"Cmd-ArrowUp",run:Xf,shift:Qf},{mac:"Ctrl-ArrowUp",run:cf,shift:qf},{key:"ArrowDown",run:af,shift:Hf,preventDefault:!0},{mac:"Cmd-ArrowDown",run:Yf,shift:Zf},{mac:"Ctrl-ArrowDown",run:df,shift:zf},{key:"PageUp",run:cf,shift:qf},{key:"PageDown",run:df,shift:zf},{key:"Home",run:gf,shift:_f,preventDefault:!0},{key:"Mod-Home",run:Xf,shift:Qf},{key:"End",run:uf,shift:Kf,preventDefault:!0},{key:"Mod-End",run:Yf,shift:Zf},{key:"Enter",run:Tu},{key:"Mod-a",run:tu},{key:"Backspace",run:au,shift:au},{key:"Delete",run:hu},{key:"Mod-Backspace",mac:"Alt-Backspace",run:du},{key:"Mod-Delete",mac:"Alt-Delete",run:fu},{mac:"Mod-Backspace",run:mu},{mac:"Mod-Delete",run:pu}].concat(Hu.map((t=>({mac:t.key,run:t.run,shift:t.shift})))),qu=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:of,shift:If},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:nf,shift:Rf},{key:"Alt-ArrowUp",run:ku},{key:"Shift-Alt-ArrowUp",run:Au},{key:"Alt-ArrowDown",run:Su},{key:"Shift-Alt-ArrowDown",run:Mu},{key:"Escape",run:ou},{key:"Mod-Enter",run:Bu},{key:"Alt-l",mac:"Ctrl-l",run:eu},{key:"Mod-i",run:iu,preventDefault:!0},{key:"Mod-[",run:Iu},{key:"Mod-]",run:Pu},{key:"Mod-Alt-\\",run:Fu},{key:"Shift-Mod-k",run:Du},{key:"Shift-Mod-\\",run:wf},{key:"Mod-/",run:Gc},{key:"Alt-A",run:Zc},{key:"Ctrl-m",mac:"Shift-Alt-m",run:Ru}].concat(Vu),zu={key:"Tab",run:Pu,shift:Iu};function Ku(){var t=arguments[0];"string"==typeof t&&(t=document.createElement(t));var e=1,i=arguments[1];if(i&&"object"==typeof i&&null==i.nodeType&&!Array.isArray(i)){for(var o in i)if(Object.prototype.hasOwnProperty.call(i,o)){var n=i[o];"string"==typeof n?t.setAttribute(o,n):null!=n&&(t[o]=n)}e++}for(;et.normalize("NFKD"):t=>t;class Uu{constructor(t,e,i=0,o=t.length,n,r){this.test=r,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=t.iterRange(i,o),this.bufferStart=i,this.normalize=n?t=>n($u(t)):$u,this.query=this.normalize(e)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return y(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let t=this.peek();if(t<0)return this.done=!0,this;let e=w(t),i=this.bufferStart+this.bufferPos;this.bufferPos+=x(t);let o=this.normalize(e);for(let t=0,n=i;;t++){let r=o.charCodeAt(t),s=this.match(r,n,this.bufferPos+this.bufferStart);if(t==o.length-1){if(s)return this.value=s,this;break}n==i&&tthis.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let t=this.matchPos-this.curLineStart;;){this.re.lastIndex=t;let e=this.matchPos<=this.to&&this.re.exec(this.curLine);if(e){let i=this.curLineStart+e.index,o=i+e[0].length;if(this.matchPos=tg(this.text,o+(i==o?1:0)),i==this.curLineStart+this.curLine.length&&this.nextLine(),(ithis.value.to)&&(!this.test||this.test(i,o,e)))return this.value={from:i,to:o,match:e},this;t=this.matchPos-this.curLineStart}else{if(!(this.curLineStart+this.curLine.length=i||o.to<=e){let o=new Qu(e,t.sliceString(e,i));return Yu.set(t,o),o}if(o.from==e&&o.to==i)return o;let{text:n,from:r}=o;return r>e&&(n=t.sliceString(e,r)+n,r=e),o.to=this.to?this.to:this.text.lineAt(t).to}next(){for(;;){let t=this.re.lastIndex=this.matchPos-this.flat.from,e=this.re.exec(this.flat.text);if(e&&!e[0]&&e.index==t&&(this.re.lastIndex=t+1,e=this.re.exec(this.flat.text)),e){let t=this.flat.from+e.index,i=t+e[0].length;if((this.flat.to>=this.to||e.index+e[0].length<=this.flat.text.length-10)&&(!this.test||this.test(t,i,e)))return this.value={from:t,to:i,match:e},this.matchPos=tg(this.text,i+(t==i?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=Qu.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+2*this.flat.text.length))}}}function tg(t,e){if(e>=t.length)return e;let i,o=t.lineAt(e);for(;e=56320&&i<57344;)e++;return e}function eg(t){let e=Ku("input",{class:"cm-textfield",name:"line",value:String(t.state.doc.lineAt(t.state.selection.main.head).number)});function i(){let i=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(e.value);if(!i)return;let{state:o}=t,n=o.doc.lineAt(o.selection.main.head),[,r,s,a,l]=i,h=a?+a.slice(1):0,c=s?+s:n.number;if(s&&l){let t=c/100;r&&(t=t*("-"==r?-1:1)+n.number/o.doc.lines),c=Math.round(o.doc.lines*t)}else s&&r&&(c=c*("-"==r?-1:1)+n.number);let d=o.doc.line(Math.max(1,Math.min(o.doc.lines,c))),f=L.cursor(d.from+Math.max(0,Math.min(h,d.length)));t.dispatch({effects:[ig.of(!1),er.scrollIntoView(f.from,{y:"center"})],selection:f}),t.focus()}return{dom:Ku("form",{class:"cm-gotoLine",onkeydown:e=>{27==e.keyCode?(e.preventDefault(),t.dispatch({effects:ig.of(!1)}),t.focus()):13==e.keyCode&&(e.preventDefault(),i())},onsubmit:t=>{t.preventDefault(),i()}},Ku("label",t.state.phrase("Go to line"),": ",e)," ",Ku("button",{class:"cm-button",type:"submit"},t.state.phrase("go")))}}"undefined"!=typeof Symbol&&(Xu.prototype[Symbol.iterator]=Zu.prototype[Symbol.iterator]=function(){return this});const ig=ft.define(),og=z.define({create:()=>!0,update(t,e){for(let i of e.effects)i.is(ig)&&(t=i.value);return t},provide:t=>Ps.from(t,(t=>t?eg:null))}),ng=er.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),rg={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},sg=I.define({combine:t=>At(t,rg,{highlightWordAroundCursor:(t,e)=>t||e,minSelectionLength:Math.min,maxMatches:Math.min})});const ag=oi.mark({class:"cm-selectionMatch"}),lg=oi.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function hg(t,e,i,o){return!(0!=i&&t(e.sliceDoc(i-1,i))==wt.Word||o!=e.doc.length&&t(e.sliceDoc(o,o+1))==wt.Word)}const cg=to.fromClass(class{constructor(t){this.decorations=this.getDeco(t)}update(t){(t.selectionSet||t.docChanged||t.viewportChanged)&&(this.decorations=this.getDeco(t.view))}getDeco(t){let e=t.state.facet(sg),{state:i}=t,o=i.selection;if(o.ranges.length>1)return oi.none;let n,r=o.main,s=null;if(r.empty){if(!e.highlightWordAroundCursor)return oi.none;let t=i.wordAt(r.head);if(!t)return oi.none;s=i.charCategorizer(r.head),n=i.sliceDoc(t.from,t.to)}else{let t=r.to-r.from;if(t200)return oi.none;if(e.wholeWords){if(n=i.sliceDoc(r.from,r.to),s=i.charCategorizer(r.head),!hg(s,i,r.from,r.to)||!function(t,e,i,o){return t(e.sliceDoc(i,i+1))==wt.Word&&t(e.sliceDoc(o-1,o))==wt.Word}(s,i,r.from,r.to))return oi.none}else if(n=i.sliceDoc(r.from,r.to),!n)return oi.none}let a=[];for(let o of t.visibleRanges){let t=new Uu(i.doc,n,o.from,o.to);for(;!t.next().done;){let{from:o,to:n}=t.value;if((!s||hg(s,i,o,n))&&(r.empty&&o<=r.from&&n>=r.to?a.push(lg.range(o,n)):(o>=r.to||n<=r.from)&&a.push(ag.range(o,n)),a.length>e.maxMatches))return oi.none}}return oi.set(a)}},{decorations:t=>t.decorations}),dg=er.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}});const fg=I.define({combine:t=>At(t,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:t=>new Vg(t),scrollToMatch:t=>er.scrollIntoView(t)})});class ug{constructor(t){this.search=t.search,this.caseSensitive=!!t.caseSensitive,this.literal=!!t.literal,this.regexp=!!t.regexp,this.replace=t.replace||"",this.valid=!!this.search&&(!this.regexp||function(t){try{return new RegExp(t,Ju),!0}catch(t){return!1}}(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!t.wholeWord}unquote(t){return this.literal?t:t.replace(/\\([nrt\\])/g,((t,e)=>"n"==e?"\n":"r"==e?"\r":"t"==e?"\t":"\\"))}eq(t){return this.search==t.search&&this.replace==t.replace&&this.caseSensitive==t.caseSensitive&&this.regexp==t.regexp&&this.wholeWord==t.wholeWord}create(){return this.regexp?new wg(this):new pg(this)}getCursor(t,e=0,i){let o=t.doc?t:Ct.create({doc:t});return null==i&&(i=o.doc.length),this.regexp?bg(this,o,e,i):mg(this,o,e,i)}}class gg{constructor(t){this.spec=t}}function mg(t,e,i,o){return new Uu(e.doc,t.unquoted,i,o,t.caseSensitive?void 0:t=>t.toLowerCase(),t.wholeWord?function(t,e){return(i,o,n,r)=>((r>i||r+n.length=e)return null;o.push(i.value)}return o}highlight(t,e,i,o){let n=mg(this.spec,t,Math.max(0,e-this.spec.unquoted.length),Math.min(i+this.spec.unquoted.length,t.doc.length));for(;!n.next().done;)o(n.value.from,n.value.to)}}function bg(t,e,i,o){return new Xu(e.doc,t.search,{ignoreCase:!t.caseSensitive,test:t.wholeWord?(n=e.charCategorizer(e.selection.main.head),(t,e,i)=>!i[0].length||(n(vg(i.input,i.index))!=wt.Word||n(yg(i.input,i.index))!=wt.Word)&&(n(yg(i.input,i.index+i[0].length))!=wt.Word||n(vg(i.input,i.index+i[0].length))!=wt.Word)):void 0},i,o);var n}function vg(t,e){return t.slice(g(t,e,!1),e)}function yg(t,e){return t.slice(e,g(t,e))}class wg extends gg{nextMatch(t,e,i){let o=bg(this.spec,t,i,t.doc.length).next();return o.done&&(o=bg(this.spec,t,0,e).next()),o.done?null:o.value}prevMatchInRange(t,e,i){for(let o=1;;o++){let n=Math.max(e,i-1e4*o),r=bg(this.spec,t,n,i),s=null;for(;!r.next().done;)s=r.value;if(s&&(n==e||s.from>n+10))return s;if(n==e)return null}}prevMatch(t,e,i){return this.prevMatchInRange(t,0,e)||this.prevMatchInRange(t,i,t.doc.length)}getReplacement(t){return this.spec.unquote(this.spec.replace).replace(/\$([$&\d+])/g,((e,i)=>"$"==i?"$":"&"==i?t.match[0]:"0"!=i&&+i=e)return null;o.push(i.value)}return o}highlight(t,e,i,o){let n=bg(this.spec,t,Math.max(0,e-250),Math.min(i+250,t.doc.length));for(;!n.next().done;)o(n.value.from,n.value.to)}}const xg=ft.define(),kg=ft.define(),Sg=z.define({create:t=>new Cg(Pg(t).create(),null),update(t,e){for(let i of e.effects)i.is(xg)?t=new Cg(i.value.create(),t.panel):i.is(kg)&&(t=new Cg(t.query,i.value?Fg:null));return t},provide:t=>Ps.from(t,(t=>t.panel))});class Cg{constructor(t,e){this.query=t,this.panel=e}}const Ag=oi.mark({class:"cm-searchMatch"}),Mg=oi.mark({class:"cm-searchMatch cm-searchMatch-selected"}),Dg=to.fromClass(class{constructor(t){this.view=t,this.decorations=this.highlight(t.state.field(Sg))}update(t){let e=t.state.field(Sg);(e!=t.startState.field(Sg)||t.docChanged||t.selectionSet||t.viewportChanged)&&(this.decorations=this.highlight(e))}highlight({query:t,panel:e}){if(!e||!t.spec.valid)return oi.none;let{view:i}=this,o=new Bt;for(let e=0,n=i.visibleRanges,r=n.length;en[e+1].from-500;)a=n[++e].to;t.highlight(i.state,s,a,((t,e)=>{let n=i.state.selection.ranges.some((i=>i.from==t&&i.to==e));o.add(t,e,n?Mg:Ag)}))}return o.finish()}},{decorations:t=>t.decorations});function Ng(t){return e=>{let i=e.state.field(Sg,!1);return i&&i.query.spec.valid?t(e,i):jg(e)}}const Og=Ng(((t,{query:e})=>{let{to:i}=t.state.selection.main,o=e.nextMatch(t.state,i,i);if(!o)return!1;let n=L.single(o.from,o.to),r=t.state.facet(fg);return t.dispatch({selection:n,effects:[_g(t,o),r.scrollToMatch(n.main,t)],userEvent:"select.search"}),Rg(t),!0})),Tg=Ng(((t,{query:e})=>{let{state:i}=t,{from:o}=i.selection.main,n=e.prevMatch(i,o,o);if(!n)return!1;let r=L.single(n.from,n.to),s=t.state.facet(fg);return t.dispatch({selection:r,effects:[_g(t,n),s.scrollToMatch(r.main,t)],userEvent:"select.search"}),Rg(t),!0})),Bg=Ng(((t,{query:e})=>{let i=e.matchAll(t.state,1e3);return!(!i||!i.length)&&(t.dispatch({selection:L.create(i.map((t=>L.range(t.from,t.to)))),userEvent:"select.search.matches"}),!0)})),Eg=Ng(((t,{query:e})=>{let{state:i}=t,{from:o,to:n}=i.selection.main;if(i.readOnly)return!1;let r=e.nextMatch(i,o,o);if(!r)return!1;let s,a,l=[],h=[];if(r.from==o&&r.to==n&&(a=i.toText(e.getReplacement(r)),l.push({from:r.from,to:r.to,insert:a}),r=e.nextMatch(i,r.from,r.to),h.push(er.announce.of(i.phrase("replaced match on line $",i.doc.lineAt(o).number)+"."))),r){let e=0==l.length||l[0].from>=r.to?0:r.to-r.from-a.length;s=L.single(r.from-e,r.to-e),h.push(_g(t,r)),h.push(i.facet(fg).scrollToMatch(s.main,t))}return t.dispatch({changes:l,selection:s,effects:h,userEvent:"input.replace"}),!0})),Lg=Ng(((t,{query:e})=>{if(t.state.readOnly)return!1;let i=e.matchAll(t.state,1e9).map((t=>{let{from:i,to:o}=t;return{from:i,to:o,insert:e.getReplacement(t)}}));if(!i.length)return!1;let o=t.state.phrase("replaced $ matches",i.length)+".";return t.dispatch({changes:i,effects:er.announce.of(o),userEvent:"input.replace.all"}),!0}));function Fg(t){return t.state.facet(fg).createPanel(t)}function Pg(t,e){var i,o,n,r,s;let a=t.selection.main,l=a.empty||a.to>a.from+100?"":t.sliceDoc(a.from,a.to);if(e&&!l)return e;let h=t.facet(fg);return new ug({search:(null!==(i=null==e?void 0:e.literal)&&void 0!==i?i:h.literal)?l:l.replace(/\n/g,"\\n"),caseSensitive:null!==(o=null==e?void 0:e.caseSensitive)&&void 0!==o?o:h.caseSensitive,literal:null!==(n=null==e?void 0:e.literal)&&void 0!==n?n:h.literal,regexp:null!==(r=null==e?void 0:e.regexp)&&void 0!==r?r:h.regexp,wholeWord:null!==(s=null==e?void 0:e.wholeWord)&&void 0!==s?s:h.wholeWord})}function Ig(t){let e=Bs(t,Fg);return e&&e.dom.querySelector("[main-field]")}function Rg(t){let e=Ig(t);e&&e==t.root.activeElement&&e.select()}const jg=t=>{let e=t.state.field(Sg,!1);if(e&&e.panel){let i=Ig(t);if(i&&i!=t.root.activeElement){let o=Pg(t.state,e.query.spec);o.valid&&t.dispatch({effects:xg.of(o)}),i.focus(),i.select()}}else t.dispatch({effects:[kg.of(!0),e?xg.of(Pg(t.state,e.query.spec)):ft.appendConfig.of(Ug)]});return!0},Wg=t=>{let e=t.state.field(Sg,!1);if(!e||!e.panel)return!1;let i=Bs(t,Fg);return i&&i.dom.contains(t.root.activeElement)&&t.focus(),t.dispatch({effects:kg.of(!1)}),!0},Hg=[{key:"Mod-f",run:jg,scope:"editor search-panel"},{key:"F3",run:Og,shift:Tg,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:Og,shift:Tg,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:Wg,scope:"editor search-panel"},{key:"Mod-Shift-l",run:({state:t,dispatch:e})=>{let i=t.selection;if(i.ranges.length>1||i.main.empty)return!1;let{from:o,to:n}=i.main,r=[],s=0;for(let e=new Uu(t.doc,t.sliceDoc(o,n));!e.next().done;){if(r.length>1e3)return!1;e.value.from==o&&(s=r.length),r.push(L.range(e.value.from,e.value.to))}return e(t.update({selection:L.create(r,s),userEvent:"select.search.matches"})),!0}},{key:"Mod-Alt-g",run:t=>{let e=Bs(t,eg);if(!e){let i=[ig.of(!0)];null==t.state.field(og,!1)&&i.push(ft.appendConfig.of([og,ng])),t.dispatch({effects:i}),e=Bs(t,eg)}return e&&e.dom.querySelector("input").select(),!0}},{key:"Mod-d",run:({state:t,dispatch:e})=>{let{ranges:i}=t.selection;if(i.some((t=>t.from===t.to)))return(({state:t,dispatch:e})=>{let{selection:i}=t,o=L.create(i.ranges.map((e=>t.wordAt(e.head)||L.cursor(e.head))),i.mainIndex);return!o.eq(i)&&(e(t.update({selection:o})),!0)})({state:t,dispatch:e});let o=t.sliceDoc(i[0].from,i[0].to);if(t.selection.ranges.some((e=>t.sliceDoc(e.from,e.to)!=o)))return!1;let n=function(t,e){let{main:i,ranges:o}=t.selection,n=t.wordAt(i.head),r=n&&n.from==i.from&&n.to==i.to;for(let i=!1,n=new Uu(t.doc,e,o[o.length-1].to);;){if(n.next(),!n.done){if(i&&o.some((t=>t.from==n.value.from)))continue;if(r){let e=t.wordAt(n.value.from);if(!e||e.from!=n.value.from||e.to!=n.value.to)continue}return n.value}if(i)return null;n=new Uu(t.doc,e,0,Math.max(0,o[o.length-1].from-1)),i=!0}}(t,o);return!!n&&(e(t.update({selection:t.selection.addRange(L.range(n.from,n.to),!1),effects:er.scrollIntoView(n.to)})),!0)},preventDefault:!0}];class Vg{constructor(t){this.view=t;let e=this.query=t.state.field(Sg).query.spec;function i(t,e,i){return Ku("button",{class:"cm-button",name:t,onclick:e,type:"button"},i)}this.commit=this.commit.bind(this),this.searchField=Ku("input",{value:e.search,placeholder:qg(t,"Find"),"aria-label":qg(t,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=Ku("input",{value:e.replace,placeholder:qg(t,"Replace"),"aria-label":qg(t,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=Ku("input",{type:"checkbox",name:"case",form:"",checked:e.caseSensitive,onchange:this.commit}),this.reField=Ku("input",{type:"checkbox",name:"re",form:"",checked:e.regexp,onchange:this.commit}),this.wordField=Ku("input",{type:"checkbox",name:"word",form:"",checked:e.wholeWord,onchange:this.commit}),this.dom=Ku("div",{onkeydown:t=>this.keydown(t),class:"cm-search"},[this.searchField,i("next",(()=>Og(t)),[qg(t,"next")]),i("prev",(()=>Tg(t)),[qg(t,"previous")]),i("select",(()=>Bg(t)),[qg(t,"all")]),Ku("label",null,[this.caseField,qg(t,"match case")]),Ku("label",null,[this.reField,qg(t,"regexp")]),Ku("label",null,[this.wordField,qg(t,"by word")]),...t.state.readOnly?[]:[Ku("br"),this.replaceField,i("replace",(()=>Eg(t)),[qg(t,"replace")]),i("replaceAll",(()=>Lg(t)),[qg(t,"replace all")])],Ku("button",{name:"close",onclick:()=>Wg(t),"aria-label":qg(t,"close"),type:"button"},["×"])])}commit(){let t=new ug({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});t.eq(this.query)||(this.query=t,this.view.dispatch({effects:xg.of(t)}))}keydown(t){fr(this.view,t,"search-panel")?t.preventDefault():13==t.keyCode&&t.target==this.searchField?(t.preventDefault(),(t.shiftKey?Tg:Og)(this.view)):13==t.keyCode&&t.target==this.replaceField&&(t.preventDefault(),Eg(this.view))}update(t){for(let e of t.transactions)for(let t of e.effects)t.is(xg)&&!t.value.eq(this.query)&&this.setQuery(t.value)}setQuery(t){this.query=t,this.searchField.value=t.search,this.replaceField.value=t.replace,this.caseField.checked=t.caseSensitive,this.reField.checked=t.regexp,this.wordField.checked=t.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(fg).top}}function qg(t,e){return t.state.phrase(e)}const zg=30,Kg=/[\s\.,:;?!]/;function _g(t,{from:e,to:i}){let o=t.state.doc.lineAt(e),n=t.state.doc.lineAt(i).to,r=Math.max(o.from,e-zg),s=Math.min(n,i+zg),a=t.state.sliceDoc(r,s);if(r!=o.from)for(let t=0;ta.length-zg;t--)if(!Kg.test(a[t-1])&&Kg.test(a[t])){a=a.slice(0,t);break}return er.announce.of(`${t.state.phrase("current match")}. ${a} ${t.state.phrase("on line")} ${o.number}.`)}const $g=er.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),Ug=[Sg,J.low(Dg),$g];class Gg{constructor(t,e,i,o){this.state=t,this.pos=e,this.explicit=i,this.view=o,this.abortListeners=[],this.abortOnDocChange=!1}tokenBefore(t){let e=Hl(this.state).resolveInner(this.pos,-1);for(;e&&t.indexOf(e.name)<0;)e=e.parent;return e?{from:e.from,to:this.pos,text:this.state.sliceDoc(e.from,this.pos),type:e.type}:null}matchBefore(t){let e=this.state.doc.lineAt(this.pos),i=Math.max(e.from,this.pos-250),o=e.text.slice(i-e.from,this.pos-e.from),n=o.search(tm(t,!1));return n<0?null:{from:i+n,to:this.pos,text:o.slice(n)}}get aborted(){return null==this.abortListeners}addEventListener(t,e,i){"abort"==t&&this.abortListeners&&(this.abortListeners.push(e),i&&i.onDocChange&&(this.abortOnDocChange=!0))}}function Jg(t){let e=Object.keys(t).join(""),i=/\w/.test(e);return i&&(e=e.replace(/\w/g,"")),`[${i?"\\w":""}${e.replace(/[^\w\s]/g,"\\$&")}]`}function Xg(t){let e=t.map((t=>"string"==typeof t?{label:t}:t)),[i,o]=e.every((t=>/^\w+$/.test(t.label)))?[/\w*$/,/\w+$/]:function(t){let e=Object.create(null),i=Object.create(null);for(let{label:o}of t){e[o[0]]=!0;for(let t=1;t{let n=t.matchBefore(o);return n||t.explicit?{from:n?n.from:t.pos,options:e,validFor:i}:null}}function Yg(t,e){return i=>{for(let e=Hl(i.state).resolveInner(i.pos,-1);e;e=e.parent){if(t.indexOf(e.name)>-1)return null;if(e.type.isTop)break}return e(i)}}class Qg{constructor(t,e,i,o){this.completion=t,this.source=e,this.match=i,this.score=o}}function Zg(t){return t.selection.main.from}function tm(t,e){var i;let{source:o}=t,n=e&&"^"!=o[0],r="$"!=o[o.length-1];return n||r?new RegExp(`${n?"^":""}(?:${o})${r?"$":""}`,null!==(i=t.flags)&&void 0!==i?i:t.ignoreCase?"i":""):t}const em=ht.define();const im=new WeakMap;function om(t){if(!Array.isArray(t))return t;let e=im.get(t);return e||im.set(t,e=Xg(t)),e}const nm=ft.define(),rm=ft.define();class sm{constructor(t){this.pattern=t,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let e=0;e=48&&l<=57||l>=97&&l<=122?2:l>=65&&l<=90?1:0:(v=w(l))!=v.toLowerCase()?1:v!=v.toUpperCase()?2:0;(!o||1==k&&m||0==b&&0!=k)&&(e[c]==l||i[c]==l&&(d=!0)?r[c++]=o:r.length&&(p=!1)),b=k,o+=x(l)}return c==a&&0==r[0]&&p?this.result((d?-200:0)-100,r,t):f==a&&0==u?this.ret(-200-t.length+(g==t.length?0:-100),[0,g]):s>-1?this.ret(-700-t.length,[s,s+this.pattern.length]):f==a?this.ret(-900-t.length,[u,g]):c==a?this.result((d?-200:0)-100-700+(p?0:-1100),r,t):2==e.length?null:this.result((o[0]?-700:0)-200-1100,o,t)}result(t,e,i){let o=[],n=0;for(let t of e){let e=t+(this.astral?x(y(i,t)):1);n&&o[n-1]==t?o[n-1]=e:(o[n++]=t,o[n++]=e)}return this.ret(t-i.length,o)}}class am{constructor(t){this.pattern=t,this.matched=[],this.score=0,this.folded=t.toLowerCase()}match(t){if(t.lengthAt(t,{activateOnTyping:!0,activateOnCompletion:()=>!1,activateOnTypingDelay:100,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:cm,filterStrict:!1,compareCompletions:(t,e)=>t.label.localeCompare(e.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(t,e)=>t&&e,closeOnBlur:(t,e)=>t&&e,icons:(t,e)=>t&&e,tooltipClass:(t,e)=>i=>hm(t(i),e(i)),optionClass:(t,e)=>i=>hm(t(i),e(i)),addToOptions:(t,e)=>t.concat(e),filterStrict:(t,e)=>t||e})});function hm(t,e){return t?e?t+" "+e:t:e}function cm(t,e,i,o,n,r){let s,a,l=t.textDirection==mi.RTL,h=l,c=!1,d="top",f=e.left-n.left,u=n.right-e.right,g=o.right-o.left,m=o.bottom-o.top;if(h&&f=m||t>e.top?s=i.bottom-e.top:(d="bottom",s=e.bottom-i.top)}return{style:`${d}: ${s/((e.bottom-e.top)/r.offsetHeight)}px; max-width: ${a/((e.right-e.left)/r.offsetWidth)}px`,class:"cm-completionInfo-"+(c?l?"left-narrow":"right-narrow":h?"left":"right")}}function dm(t,e,i){if(t<=i)return{from:0,to:t};if(e<0&&(e=0),e<=t>>1){let t=Math.floor(e/i);return{from:t*i,to:(t+1)*i}}let o=Math.floor((t-e)/i);return{from:t-(o+1)*i,to:t-o*i}}class fm{constructor(t,e,i){this.view=t,this.stateField=e,this.applyCompletion=i,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:t=>this.placeInfo(t),key:this},this.space=null,this.currentClass="";let o=t.state.field(e),{options:n,selected:r}=o.open,s=t.state.facet(lm);this.optionContent=function(t){let e=t.addToOptions.slice();return t.icons&&e.push({render(t){let e=document.createElement("div");return e.classList.add("cm-completionIcon"),t.type&&e.classList.add(...t.type.split(/\s+/g).map((t=>"cm-completionIcon-"+t))),e.setAttribute("aria-hidden","true"),e},position:20}),e.push({render(t,e,i,o){let n=document.createElement("span");n.className="cm-completionLabel";let r=t.displayLabel||t.label,s=0;for(let t=0;ts&&n.appendChild(document.createTextNode(r.slice(s,e)));let a=n.appendChild(document.createElement("span"));a.appendChild(document.createTextNode(r.slice(e,i))),a.className="cm-completionMatchedText",s=i}return st.position-e.position)).map((t=>t.render))}(s),this.optionClass=s.optionClass,this.tooltipClass=s.tooltipClass,this.range=dm(n.length,r,s.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(t.state),this.dom.addEventListener("mousedown",(i=>{let{options:o}=t.state.field(e).open;for(let e,n=i.target;n&&n!=this.dom;n=n.parentNode)if("LI"==n.nodeName&&(e=/-(\d+)$/.exec(n.id))&&+e[1]{let i=t.state.field(this.stateField,!1);i&&i.tooltip&&t.state.facet(lm).closeOnBlur&&e.relatedTarget!=t.contentDOM&&t.dispatch({effects:rm.of(null)})})),this.showOptions(n,o.id)}mount(){this.updateSel()}showOptions(t,e){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(t,e,this.range)),this.list.addEventListener("scroll",(()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)}))}update(t){var e;let i=t.state.field(this.stateField),o=t.startState.field(this.stateField);if(this.updateTooltipClass(t.state),i!=o){let{options:n,selected:r,disabled:s}=i.open;o.open&&o.open.options==n||(this.range=dm(n.length,r,t.state.facet(lm).maxRenderedOptions),this.showOptions(n,i.id)),this.updateSel(),s!=(null===(e=o.open)||void 0===e?void 0:e.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!s)}}updateTooltipClass(t){let e=this.tooltipClass(t);if(e!=this.currentClass){for(let t of this.currentClass.split(" "))t&&this.dom.classList.remove(t);for(let t of e.split(" "))t&&this.dom.classList.add(t);this.currentClass=e}}positioned(t){this.space=t,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let t=this.view.state.field(this.stateField),e=t.open;if((e.selected>-1&&e.selected=this.range.to)&&(this.range=dm(e.options.length,e.selected,this.view.state.facet(lm).maxRenderedOptions),this.showOptions(e.options,t.id)),this.updateSelectedOption(e.selected)){this.destroyInfo();let{completion:i}=e.options[e.selected],{info:o}=i;if(!o)return;let n="string"==typeof o?document.createTextNode(o):o(i);if(!n)return;"then"in n?n.then((e=>{e&&this.view.state.field(this.stateField,!1)==t&&this.addInfoPane(e,i)})).catch((t=>Xi(this.view.state,t,"completion info"))):this.addInfoPane(n,i)}}addInfoPane(t,e){this.destroyInfo();let i=this.info=document.createElement("div");if(i.className="cm-tooltip cm-completionInfo",null!=t.nodeType)i.appendChild(t),this.infoDestroy=null;else{let{dom:e,destroy:o}=t;i.appendChild(e),this.infoDestroy=o||null}this.dom.appendChild(i),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(t){let e=null;for(let i=this.list.firstChild,o=this.range.from;i;i=i.nextSibling,o++)"LI"==i.nodeName&&i.id?o==t?i.hasAttribute("aria-selected")||(i.setAttribute("aria-selected","true"),e=i):i.hasAttribute("aria-selected")&&i.removeAttribute("aria-selected"):o--;return e&&function(t,e){let i=t.getBoundingClientRect(),o=e.getBoundingClientRect(),n=i.height/t.offsetHeight;o.topi.bottom&&(t.scrollTop+=(o.bottom-i.bottom)/n)}(this.list,e),e}measureInfo(){let t=this.dom.querySelector("[aria-selected]");if(!t||!this.info)return null;let e=this.dom.getBoundingClientRect(),i=this.info.getBoundingClientRect(),o=t.getBoundingClientRect(),n=this.space;if(!n){let t=this.dom.ownerDocument.defaultView||window;n={left:0,top:0,right:t.innerWidth,bottom:t.innerHeight}}return o.top>Math.min(n.bottom,e.bottom)-10||o.bottomi.from||0==i.from))if(n=t,"string"!=typeof l&&l.header)o.appendChild(l.header(l));else{o.appendChild(document.createElement("completion-section")).textContent=t}}const h=o.appendChild(document.createElement("li"));h.id=e+"-"+r,h.setAttribute("role","option");let c=this.optionClass(s);c&&(h.className=c);for(let t of this.optionContent){let e=t(s,this.view.state,this.view,a);e&&h.appendChild(e)}}return i.from&&o.classList.add("cm-completionListIncompleteTop"),i.tonew fm(i,t,e)}function gm(t){return 100*(t.boost||0)+(t.apply?10:0)+(t.info?5:0)+(t.type?1:0)}class mm{constructor(t,e,i,o,n,r){this.options=t,this.attrs=e,this.tooltip=i,this.timestamp=o,this.selected=n,this.disabled=r}setSelected(t,e){return t==this.selected||t>=this.options.length?this:new mm(this.options,ym(e,t),this.tooltip,this.timestamp,t,this.disabled)}static build(t,e,i,o,n){let r=function(t,e){let i=[],o=null,n=t=>{i.push(t);let{section:e}=t.completion;if(e){o||(o=[]);let t="string"==typeof e?e:e.name;o.some((e=>e.name==t))||o.push("string"==typeof e?{name:t}:e)}},r=e.facet(lm);for(let o of t)if(o.hasResult()){let t=o.result.getMatch;if(!1===o.result.filter)for(let e of o.result.options)n(new Qg(e,o.source,t?t(e):[],1e9-i.length));else{let i,s=e.sliceDoc(o.from,o.to),a=r.filterStrict?new am(s):new sm(s);for(let e of o.result.options)if(i=a.match(e.label)){let r=e.displayLabel?t?t(e,i.matched):[]:i.matched;n(new Qg(e,o.source,r,i.score+(e.boost||0)))}}}if(o){let t=Object.create(null),e=0,n=(t,e)=>{var i,o;return(null!==(i=t.rank)&&void 0!==i?i:1e9)-(null!==(o=e.rank)&&void 0!==o?o:1e9)||(t.namee.score-t.score||l(t.completion,e.completion)))){let e=t.completion;!a||a.label!=e.label||a.detail!=e.detail||null!=a.type&&null!=e.type&&a.type!=e.type||a.apply!=e.apply||a.boost!=e.boost?s.push(t):gm(t.completion)>gm(a)&&(s[s.length-1]=t),a=t.completion}return s}(t,e);if(!r.length)return o&&t.some((t=>1==t.state))?new mm(o.options,o.attrs,o.tooltip,o.timestamp,o.selected,!0):null;let s=e.facet(lm).selectOnOpen?0:-1;if(o&&o.selected!=s&&-1!=o.selected){let t=o.options[o.selected].completion;for(let e=0;ee.hasResult()?Math.min(t,e.from):t),1e8),create:Nm,above:n.aboveCursor},o?o.timestamp:Date.now(),s,!1)}map(t){return new mm(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:t.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}}class pm{constructor(t,e,i){this.active=t,this.id=e,this.open=i}static start(){return new pm(wm,"cm-ac-"+Math.floor(2e6*Math.random()).toString(36),null)}update(t){let{state:e}=t,i=e.facet(lm),o=(i.override||e.languageDataAt("autocomplete",Zg(e)).map(om)).map((e=>(this.active.find((t=>t.source==e))||new km(e,this.active.some((t=>0!=t.state))?1:0)).update(t,i)));o.length==this.active.length&&o.every(((t,e)=>t==this.active[e]))&&(o=this.active);let n=this.open;n&&t.docChanged&&(n=n.map(t.changes)),t.selection||o.some((e=>e.hasResult()&&t.changes.touchesRange(e.from,e.to)))||!function(t,e){if(t==e)return!0;for(let i=0,o=0;;){for(;i1==t.state))&&(n=null),!n&&o.every((t=>1!=t.state))&&o.some((t=>t.hasResult()))&&(o=o.map((t=>t.hasResult()?new km(t.source,0):t)));for(let e of t.effects)e.is(Am)&&(n=n&&n.setSelected(e.value,this.id));return o==this.active&&n==this.open?this:new pm(o,this.id,n)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:this.active.length?bm:vm}}const bm={"aria-autocomplete":"list"},vm={};function ym(t,e){let i={"aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":t};return e>-1&&(i["aria-activedescendant"]=t+"-"+e),i}const wm=[];function xm(t,e){if(t.isUserEvent("input.complete")){let i=t.annotation(em);if(i&&e.activateOnCompletion(i))return 12}let i=t.isUserEvent("input.type");return i&&e.activateOnTyping?5:i?1:t.isUserEvent("delete.backward")?2:t.selection?8:t.docChanged?16:0}class km{constructor(t,e,i=-1){this.source=t,this.state=e,this.explicitPos=i}hasResult(){return!1}update(t,e){let i=xm(t,e),o=this;(8&i||16&i&&this.touches(t))&&(o=new km(o.source,0)),4&i&&0==o.state&&(o=new km(this.source,1)),o=o.updateFor(t,i);for(let e of t.effects)if(e.is(nm))o=new km(o.source,1,e.value?Zg(t.state):-1);else if(e.is(rm))o=new km(o.source,0);else if(e.is(Cm))for(let t of e.value)t.source==o.source&&(o=t);return o}updateFor(t,e){return this.map(t.changes)}map(t){return t.empty||this.explicitPos<0?this:new km(this.source,this.state,t.mapPos(this.explicitPos))}touches(t){return t.changes.touchesRange(Zg(t.state))}}class Sm extends km{constructor(t,e,i,o,n){super(t,2,e),this.result=i,this.from=o,this.to=n}hasResult(){return!0}updateFor(t,e){var i;if(!(3&e))return this.map(t.changes);let o=this.result;o.map&&!t.changes.empty&&(o=o.map(o,t.changes));let n=t.changes.mapPos(this.from),r=t.changes.mapPos(this.to,1),s=Zg(t.state);if((this.explicitPos<0?s<=n:sr||!o||2&e&&Zg(t.startState)==this.from)return new km(this.source,4&e?1:0);let a=this.explicitPos<0?-1:t.changes.mapPos(this.explicitPos);return function(t,e,i,o){if(!t)return!1;let n=e.sliceDoc(i,o);return"function"==typeof t?t(n,i,o,e):tm(t,!0).test(n)}(o.validFor,t.state,n,r)?new Sm(this.source,a,o,n,r):o.update&&(o=o.update(o,n,r,new Gg(t.state,s,a>=0)))?new Sm(this.source,a,o,o.from,null!==(i=o.to)&&void 0!==i?i:Zg(t.state)):new km(this.source,1,a)}map(t){if(t.empty)return this;return(this.result.map?this.result.map(this.result,t):this.result)?new Sm(this.source,this.explicitPos<0?-1:t.mapPos(this.explicitPos),this.result,t.mapPos(this.from),t.mapPos(this.to,1)):new km(this.source,0)}touches(t){return t.changes.touchesRange(this.from,this.to)}}const Cm=ft.define({map:(t,e)=>t.map((t=>t.map(e)))}),Am=ft.define(),Mm=z.define({create:()=>pm.start(),update:(t,e)=>t.update(e),provide:t=>[bs.from(t,(t=>t.tooltip)),er.contentAttributes.from(t,(t=>t.attrs))]});function Dm(t,e){const i=e.completion.apply||e.completion.label;let o=t.state.field(Mm).active.find((t=>t.source==e.source));return o instanceof Sm&&("string"==typeof i?t.dispatch(Object.assign(Object.assign({},function(t,e,i,o){let{main:n}=t.selection,r=i-n.from,s=o-n.from;return Object.assign(Object.assign({},t.changeByRange((a=>a!=n&&i!=o&&t.sliceDoc(a.from+r,a.from+s)!=t.sliceDoc(i,o)?{range:a}:{changes:{from:a.from+r,to:o==n.from?a.to:a.from+s,insert:e},range:L.cursor(a.from+r+e.length)}))),{scrollIntoView:!0,userEvent:"input.complete"})}(t.state,i,o.from,o.to)),{annotations:em.of(e.completion)})):i(t,e.completion,o.from,o.to),!0)}const Nm=um(Mm,Dm);function Om(t,e="option"){return i=>{let o=i.state.field(Mm,!1);if(!o||!o.open||o.open.disabled||Date.now()-o.open.timestamp-1?o.open.selected+r*(t?1:-1):t?0:s-1;return a<0?a="page"==e?0:s-1:a>=s&&(a="page"==e?s-1:0),i.dispatch({effects:Am.of(a)}),!0}}class Tm{constructor(t,e){this.active=t,this.context=e,this.time=Date.now(),this.updates=[],this.done=void 0}}const Bm=to.fromClass(class{constructor(t){this.view=t,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.pendingStart=!1,this.composing=0;for(let e of t.state.field(Mm).active)1==e.state&&this.startQuery(e)}update(t){let e=t.state.field(Mm),i=t.state.facet(lm);if(!t.selectionSet&&!t.docChanged&&t.startState.field(Mm)==e)return;let o=t.transactions.some((t=>{let e=xm(t,i);return 8&e||(t.selection||t.docChanged)&&!(3&e)}));for(let e=0;e50&&Date.now()-i.time>1e3){for(let t of i.context.abortListeners)try{t()}catch(t){Xi(this.view.state,t)}i.context.abortListeners=null,this.running.splice(e--,1)}else i.updates.push(...t.transactions)}this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),t.transactions.some((t=>t.effects.some((t=>t.is(nm)))))&&(this.pendingStart=!0);let n=this.pendingStart?50:i.activateOnTypingDelay;if(this.debounceUpdate=e.active.some((t=>1==t.state&&!this.running.some((e=>e.active.source==t.source))))?setTimeout((()=>this.startUpdate()),n):-1,0!=this.composing)for(let e of t.transactions)e.isUserEvent("input.type")?this.composing=2:2==this.composing&&e.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1,this.pendingStart=!1;let{state:t}=this.view,e=t.field(Mm);for(let t of e.active)1!=t.state||this.running.some((e=>e.active.source==t.source))||this.startQuery(t)}startQuery(t){let{state:e}=this.view,i=Zg(e),o=new Gg(e,i,t.explicitPos==i,this.view),n=new Tm(t,o);this.running.push(n),Promise.resolve(t.source(o)).then((t=>{n.context.aborted||(n.done=t||null,this.scheduleAccept())}),(t=>{this.view.dispatch({effects:rm.of(null)}),Xi(this.view.state,t)}))}scheduleAccept(){this.running.every((t=>void 0!==t.done))?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout((()=>this.accept()),this.view.state.facet(lm).updateSyncTime))}accept(){var t;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let e=[],i=this.view.state.facet(lm);for(let o=0;ot.source==n.active.source));if(r&&1==r.state)if(null==n.done){let t=new km(n.active.source,0);for(let e of n.updates)t=t.update(e,i);1!=t.state&&e.push(t)}else this.startQuery(r)}e.length&&this.view.dispatch({effects:Cm.of(e)})}},{eventHandlers:{blur(t){let e=this.view.state.field(Mm,!1);if(e&&e.tooltip&&this.view.state.facet(lm).closeOnBlur){let i=e.open&&Cs(this.view,e.open.tooltip);i&&i.dom.contains(t.relatedTarget)||setTimeout((()=>this.view.dispatch({effects:rm.of(null)})),10)}},compositionstart(){this.composing=1},compositionend(){3==this.composing&&setTimeout((()=>this.view.dispatch({effects:nm.of(!1)})),20),this.composing=0}}}),Em="object"==typeof navigator&&/Win/.test(navigator.platform),Lm=J.highest(er.domEventHandlers({keydown(t,e){let i=e.state.field(Mm,!1);if(!i||!i.open||i.open.disabled||i.open.selected<0||t.key.length>1||t.ctrlKey&&(!Em||!t.altKey)||t.metaKey)return!1;let o=i.open.options[i.open.selected],n=i.active.find((t=>t.source==o.source)),r=o.completion.commitCharacters||n.result.commitCharacters;return r&&r.indexOf(t.key)>-1&&Dm(e,o),!1}})),Fm=er.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"···"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box",whiteSpace:"pre-line"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'𝑥'"}},".cm-completionIcon-constant":{"&:after":{content:"'𝐶'"}},".cm-completionIcon-type":{"&:after":{content:"'𝑡'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'🔑︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}});class Pm{constructor(t,e,i,o){this.field=t,this.line=e,this.from=i,this.to=o}}class Im{constructor(t,e,i){this.field=t,this.from=e,this.to=i}map(t){let e=t.mapPos(this.from,-1,S.TrackDel),i=t.mapPos(this.to,1,S.TrackDel);return null==e||null==i?null:new Im(this.field,e,i)}}class Rm{constructor(t,e){this.lines=t,this.fieldPositions=e}instantiate(t,e){let i=[],o=[e],n=t.doc.lineAt(e),r=/^\s*/.exec(n.text)[0];for(let n of this.lines){if(i.length){let i=r,s=/^\t*/.exec(n)[0].length;for(let e=0;enew Im(t.field,o[t.line]+t.from,o[t.line]+t.to)));return{text:i,ranges:s}}static parse(t){let e,i=[],o=[],n=[];for(let r of t.split(/\r\n?|\n/)){for(;e=/[#$]\{(?:(\d+)(?::([^}]*))?|((?:\\[{}]|[^}])*))\}/.exec(r);){let t=e[1]?+e[1]:null,s=e[2]||e[3]||"",a=-1,l=s.replace(/\\[{}]/g,(t=>t[1]));for(let e=0;e=a&&t.field++}n.push(new Pm(a,o.length,e.index,e.index+l.length)),r=r.slice(0,e.index)+s+r.slice(e.index+e[0].length)}r=r.replace(/\\([{}])/g,((t,e,i)=>{for(let t of n)t.line==o.length&&t.from>i&&(t.from--,t.to--);return e})),o.push(r)}return new Rm(o,n)}}let jm=oi.widget({widget:new class extends ei{toDOM(){let t=document.createElement("span");return t.className="cm-snippetFieldPosition",t}ignoreEvent(){return!1}}}),Wm=oi.mark({class:"cm-snippetField"});class Hm{constructor(t,e){this.ranges=t,this.active=e,this.deco=oi.set(t.map((t=>(t.from==t.to?jm:Wm).range(t.from,t.to))))}map(t){let e=[];for(let i of this.ranges){let o=i.map(t);if(!o)return null;e.push(o)}return new Hm(e,this.active)}selectionInsideField(t){return t.ranges.every((t=>this.ranges.some((e=>e.field==this.active&&e.from<=t.from&&e.to>=t.to))))}}const Vm=ft.define({map:(t,e)=>t&&t.map(e)}),qm=ft.define(),zm=z.define({create:()=>null,update(t,e){for(let i of e.effects){if(i.is(Vm))return i.value;if(i.is(qm)&&t)return new Hm(t.ranges,i.value)}return t&&e.docChanged&&(t=t.map(e.changes)),t&&e.selection&&!t.selectionInsideField(e.selection)&&(t=null),t},provide:t=>er.decorations.from(t,(t=>t?t.deco:oi.none))});function Km(t,e){return L.create(t.filter((t=>t.field==e)).map((t=>L.range(t.from,t.to))))}function _m(e){let i=Rm.parse(e);return(e,o,n,r)=>{let{text:s,ranges:a}=i.instantiate(e.state,n),l={changes:{from:n,to:r,insert:t.of(s)},scrollIntoView:!0,annotations:o?[em.of(o),ut.userEvent.of("input.complete")]:void 0};if(a.length&&(l.selection=Km(a,0)),a.some((t=>t.field>0))){let t=new Hm(a,0),i=l.effects=[Vm.of(t)];void 0===e.state.field(zm,!1)&&i.push(ft.appendConfig.of([zm,Jm,Ym,Fm]))}e.dispatch(e.state.update(l))}}function $m(t){return({state:e,dispatch:i})=>{let o=e.field(zm,!1);if(!o||t<0&&0==o.active)return!1;let n=o.active+t,r=t>0&&!o.ranges.some((e=>e.field==n+t));return i(e.update({selection:Km(o.ranges,n),effects:Vm.of(r?null:new Hm(o.ranges,n)),scrollIntoView:!0})),!0}}const Um=[{key:"Tab",run:$m(1),shift:$m(-1)},{key:"Escape",run:({state:t,dispatch:e})=>!!t.field(zm,!1)&&(e(t.update({effects:Vm.of(null)})),!0)}],Gm=I.define({combine:t=>t.length?t[0]:Um}),Jm=J.highest(hr.compute([Gm],(t=>t.facet(Gm))));function Xm(t,e){return Object.assign(Object.assign({},e),{apply:_m(t)})}const Ym=er.domEventHandlers({mousedown(t,e){let i,o=e.state.field(zm,!1);if(!o||null==(i=e.posAtCoords({x:t.clientX,y:t.clientY})))return!1;let n=o.ranges.find((t=>t.from<=i&&t.to>=i));return!(!n||n.field==o.active)&&(e.dispatch({selection:Km(o.ranges,n.field),effects:Vm.of(o.ranges.some((t=>t.field>n.field))?new Hm(o.ranges,n.field):null),scrollIntoView:!0}),!0)}}),Qm={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},Zm=ft.define({map(t,e){let i=e.mapPos(t,-1,S.TrackAfter);return null==i?void 0:i}}),tp=new class extends Mt{};tp.startSide=1,tp.endSide=-1;const ep=z.define({create:()=>Tt.empty,update(t,e){if(t=t.map(e.changes),e.selection){let i=e.state.doc.lineAt(e.selection.main.head);t=t.update({filter:t=>t>=i.from&&t<=i.to})}for(let i of e.effects)i.is(Zm)&&(t=t.update({add:[tp.range(i.value,i.value+1)]}));return t}});const ip="()[]{}<>";function op(t){for(let e=0;e{if((rp?t.composing:t.compositionStarted)||t.state.readOnly)return!1;let n=t.state.selection.main;if(o.length>2||2==o.length&&1==x(y(o,0))||e!=n.from||i!=n.to)return!1;let r=function(t,e){let i=np(t,t.selection.main.head),o=i.brackets||Qm.brackets;for(let n of o){let r=op(y(n,0));if(e==n)return r==n?fp(t,n,o.indexOf(n+n+n)>-1,i):cp(t,n,r,i.before||Qm.before);if(e==r&&lp(t,t.selection.main.from))return dp(t,n,r)}return null}(t.state,o);return!!r&&(t.dispatch(r),!0)})),ap=[{key:"Backspace",run:({state:t,dispatch:e})=>{if(t.readOnly)return!1;let i=np(t,t.selection.main.head).brackets||Qm.brackets,o=null,n=t.changeByRange((e=>{if(e.empty){let o=function(t,e){let i=t.sliceString(e-2,e);return x(y(i,0))==i.length?i:i.slice(1)}(t.doc,e.head);for(let n of i)if(n==o&&hp(t.doc,e.head)==op(y(n,0)))return{changes:{from:e.head-n.length,to:e.head+n.length},range:L.cursor(e.head-n.length)}}return{range:o=e}}));return o||e(t.update(n,{scrollIntoView:!0,userEvent:"delete.backward"})),!o}}];function lp(t,e){let i=!1;return t.field(ep).between(0,t.doc.length,(t=>{t==e&&(i=!0)})),i}function hp(t,e){let i=t.sliceString(e,e+2);return i.slice(0,x(y(i,0)))}function cp(t,e,i,o){let n=null,r=t.changeByRange((r=>{if(!r.empty)return{changes:[{insert:e,from:r.from},{insert:i,from:r.to}],effects:Zm.of(r.to+e.length),range:L.range(r.anchor+e.length,r.head+e.length)};let s=hp(t.doc,r.head);return!s||/\s/.test(s)||o.indexOf(s)>-1?{changes:{insert:e+i,from:r.head},effects:Zm.of(r.head+e.length),range:L.cursor(r.head+e.length)}:{range:n=r}}));return n?null:t.update(r,{scrollIntoView:!0,userEvent:"input.type"})}function dp(t,e,i){let o=null,n=t.changeByRange((e=>e.empty&&hp(t.doc,e.head)==i?{changes:{from:e.head,to:e.head+i.length,insert:i},range:L.cursor(e.head+i.length)}:o={range:e}));return o?null:t.update(n,{scrollIntoView:!0,userEvent:"input.type"})}function fp(t,e,i,o){let n=o.stringPrefixes||Qm.stringPrefixes,r=null,s=t.changeByRange((o=>{if(!o.empty)return{changes:[{insert:e,from:o.from},{insert:e,from:o.to}],effects:Zm.of(o.to+e.length),range:L.range(o.anchor+e.length,o.head+e.length)};let s,a=o.head,l=hp(t.doc,a);if(l==e){if(up(t,a))return{changes:{insert:e+e,from:a},effects:Zm.of(a+e.length),range:L.cursor(a+e.length)};if(lp(t,a)){let o=i&&t.sliceDoc(a,a+3*e.length)==e+e+e?e+e+e:e;return{changes:{from:a,to:a+o.length,insert:o},range:L.cursor(a+o.length)}}}else{if(i&&t.sliceDoc(a-2*e.length,a)==e+e&&(s=gp(t,a-2*e.length,n))>-1&&up(t,s))return{changes:{insert:e+e+e+e,from:a},effects:Zm.of(a+e.length),range:L.cursor(a+e.length)};if(t.charCategorizer(a)(l)!=wt.Word&&gp(t,a,n)>-1&&!function(t,e,i,o){let n=Hl(t).resolveInner(e,-1),r=o.reduce(((t,e)=>Math.max(t,e.length)),0);for(let s=0;s<5;s++){let s=t.sliceDoc(n.from,Math.min(n.to,n.from+i.length+r)),a=s.indexOf(i);if(!a||a>-1&&o.indexOf(s.slice(0,a))>-1){let e=n.firstChild;for(;e&&e.from==n.from&&e.to-e.from>i.length+a;){if(t.sliceDoc(e.to-i.length,e.to)==i)return!1;e=e.firstChild}return!0}let l=n.to==e&&n.parent;if(!l)break;n=l}return!1}(t,a,e,n))return{changes:{insert:e+e,from:a},effects:Zm.of(a+e.length),range:L.cursor(a+e.length)}}return{range:r=o}}));return r?null:t.update(s,{scrollIntoView:!0,userEvent:"input.type"})}function up(t,e){let i=Hl(t).resolveInner(e+1);return i.parent&&i.from==e}function gp(t,e,i){let o=t.charCategorizer(e);if(o(t.sliceDoc(e-1,e))!=wt.Word)return e;for(let n of i){let i=e-n.length;if(t.sliceDoc(i,e)==n&&o(t.sliceDoc(i-1,i))!=wt.Word)return i}return-1}function mp(t={}){return[Lm,Mm,lm.of(t),Bm,bp,Fm]}const pp=[{key:"Ctrl-Space",run:t=>!!t.state.field(Mm,!1)&&(t.dispatch({effects:nm.of(!0)}),!0)},{key:"Escape",run:t=>{let e=t.state.field(Mm,!1);return!(!e||!e.active.some((t=>0!=t.state)))&&(t.dispatch({effects:rm.of(null)}),!0)}},{key:"ArrowDown",run:Om(!0)},{key:"ArrowUp",run:Om(!1)},{key:"PageDown",run:Om(!0,"page")},{key:"PageUp",run:Om(!1,"page")},{key:"Enter",run:t=>{let e=t.state.field(Mm,!1);return!(t.state.readOnly||!e||!e.open||e.open.selected<0||e.open.disabled||Date.now()-e.open.timestampt.facet(lm).defaultKeymap?[pp]:[])));class vp{constructor(t,e,i){this.from=t,this.to=e,this.diagnostic=i}}class yp{constructor(t,e,i){this.diagnostics=t,this.panel=e,this.selected=i}static init(t,e,i){let o=t,n=i.facet(Tp).markerFilter;n&&(o=n(o,i));let r=oi.set(o.map((t=>t.from==t.to||t.from==t.to-1&&i.doc.lineAt(t.from).to==t.from?oi.widget({widget:new Lp(t),diagnostic:t}).range(t.from):oi.mark({attributes:{class:"cm-lintRange cm-lintRange-"+t.severity+(t.markClass?" "+t.markClass:"")},diagnostic:t}).range(t.from,t.to))),!0);return new yp(r,e,wp(r))}}function wp(t,e=null,i=0){let o=null;return t.between(i,1e9,((t,i,{spec:n})=>{if(!e||n.diagnostic==e)return o=new vp(t,i,n.diagnostic),!1})),o}const xp=ft.define(),kp=ft.define(),Sp=ft.define(),Cp=z.define({create:()=>new yp(oi.none,null,null),update(t,e){if(e.docChanged&&t.diagnostics.size){let i=t.diagnostics.map(e.changes),o=null,n=t.panel;if(t.selected){let n=e.changes.mapPos(t.selected.from,1);o=wp(i,t.selected.diagnostic,n)||wp(i,null,n)}!i.size&&n&&e.state.facet(Tp).autoPanel&&(n=null),t=new yp(i,n,o)}for(let i of e.effects)if(i.is(xp)){let o=e.state.facet(Tp).autoPanel?i.value.length?Pp.open:null:t.panel;t=yp.init(i.value,o,e.state)}else i.is(kp)?t=new yp(t.diagnostics,i.value?Pp.open:null,t.selected):i.is(Sp)&&(t=new yp(t.diagnostics,t.panel,i.value));return t},provide:t=>[Ps.from(t,(t=>t.panel)),er.decorations.from(t,(t=>t.diagnostics))]}),Ap=oi.mark({class:"cm-lintRange cm-lintRange-active"});function Mp(t,e,i){let{diagnostics:o}=t.state.field(Cp),n=[],r=2e8,s=0;o.between(e-(i<0?1:0),e+(i>0?1:0),((t,o,{spec:a})=>{e>=t&&e<=o&&(t==o||(e>t||i>0)&&(e({dom:Dp(t,n)})}:null}function Dp(t,e){return Ku("ul",{class:"cm-tooltip-lint"},e.map((e=>Ep(t,e,!1))))}const Np=t=>{let e=t.state.field(Cp,!1);return!(!e||!e.panel)&&(t.dispatch({effects:kp.of(!1)}),!0)},Op=[{key:"Mod-Shift-m",run:t=>{let e=t.state.field(Cp,!1);var i,o;e&&e.panel||t.dispatch({effects:(i=t.state,o=[kp.of(!0)],i.field(Cp,!1)?o:o.concat(ft.appendConfig.of(jp)))});let n=Bs(t,Pp.open);return n&&n.dom.querySelector(".cm-panel-lint ul").focus(),!0},preventDefault:!0},{key:"F8",run:t=>{let e=t.state.field(Cp,!1);if(!e)return!1;let i=t.state.selection.main,o=e.diagnostics.iter(i.to+1);return!(!o.value&&(o=e.diagnostics.iter(0),!o.value||o.from==i.from&&o.to==i.to))&&(t.dispatch({selection:{anchor:o.from,head:o.to},scrollIntoView:!0}),!0)}}],Tp=I.define({combine:t=>Object.assign({sources:t.map((t=>t.source)).filter((t=>null!=t))},At(t.map((t=>t.config)),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null,hideOn:()=>null},{needsRefresh:(t,e)=>t?e?i=>t(i)||e(i):t:e}))});function Bp(t){let e=[];if(t)t:for(let{name:i}of t){for(let t=0;tt.toLowerCase()==o.toLowerCase()))){e.push(o);continue t}}e.push("")}return e}function Ep(t,e,i){var o;let n=i?Bp(e.actions):[];return Ku("li",{class:"cm-diagnostic cm-diagnostic-"+e.severity},Ku("span",{class:"cm-diagnosticText"},e.renderMessage?e.renderMessage(t):e.message),null===(o=e.actions)||void 0===o?void 0:o.map(((i,o)=>{let r=!1,s=o=>{if(o.preventDefault(),r)return;r=!0;let n=wp(t.state.field(Cp).diagnostics,e);n&&i.apply(t,n.from,n.to)},{name:a}=i,l=n[o]?a.indexOf(n[o]):-1,h=l<0?a:[a.slice(0,l),Ku("u",a.slice(l,l+1)),a.slice(l+1)];return Ku("button",{type:"button",class:"cm-diagnosticAction",onclick:s,onmousedown:s,"aria-label":` Action: ${a}${l<0?"":` (access key "${n[o]})"`}.`},h)})),e.source&&Ku("div",{class:"cm-diagnosticSource"},e.source))}class Lp extends ei{constructor(t){super(),this.diagnostic=t}eq(t){return t.diagnostic==this.diagnostic}toDOM(){return Ku("span",{class:"cm-lintPoint cm-lintPoint-"+this.diagnostic.severity})}}class Fp{constructor(t,e){this.diagnostic=e,this.id="item_"+Math.floor(4294967295*Math.random()).toString(16),this.dom=Ep(t,e,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class Pp{constructor(t){this.view=t,this.items=[];this.list=Ku("ul",{tabIndex:0,role:"listbox","aria-label":this.view.state.phrase("Diagnostics"),onkeydown:e=>{if(27==e.keyCode)Np(this.view),this.view.focus();else if(38==e.keyCode||33==e.keyCode)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(40==e.keyCode||34==e.keyCode)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(36==e.keyCode)this.moveSelection(0);else if(35==e.keyCode)this.moveSelection(this.items.length-1);else if(13==e.keyCode)this.view.focus();else{if(!(e.keyCode>=65&&e.keyCode<=90&&this.selectedIndex>=0))return;{let{diagnostic:i}=this.items[this.selectedIndex],o=Bp(i.actions);for(let n=0;n{for(let e=0;eNp(this.view)},"×")),this.update()}get selectedIndex(){let t=this.view.state.field(Cp).selected;if(!t)return-1;for(let e=0;e{let a,l=-1;for(let t=i;ti&&(this.items.splice(i,l-i),o=!0)),e&&a.diagnostic==e.diagnostic?a.dom.hasAttribute("aria-selected")||(a.dom.setAttribute("aria-selected","true"),n=a):a.dom.hasAttribute("aria-selected")&&a.dom.removeAttribute("aria-selected"),i++}));i({sel:n.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:t,panel:e})=>{let i=e.height/this.list.offsetHeight;t.tope.bottom&&(this.list.scrollTop+=(t.bottom-e.bottom)/i)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),o&&this.sync()}sync(){let t=this.list.firstChild;function e(){let e=t;t=e.nextSibling,e.remove()}for(let i of this.items)if(i.dom.parentNode==this.list){for(;t!=i.dom;)e();t=i.dom.nextSibling}else this.list.insertBefore(i.dom,t);for(;t;)e()}moveSelection(t){if(this.selectedIndex<0)return;let e=wp(this.view.state.field(Cp).diagnostics,this.items[t].diagnostic);e&&this.view.dispatch({selection:{anchor:e.from,head:e.to},scrollIntoView:!0,effects:Sp.of(e)})}static open(t){return new Pp(t)}}function Ip(t){return function(t,e='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,${encodeURIComponent(t)}')`}(``,'width="6" height="3"')}const Rp=er.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:Ip("#d11")},".cm-lintRange-warning":{backgroundImage:Ip("orange")},".cm-lintRange-info":{backgroundImage:Ip("#999")},".cm-lintRange-hint":{backgroundImage:Ip("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}}),jp=[Cp,er.decorations.compute([Cp],(t=>{let{selected:e,panel:i}=t.field(Cp);return e&&i&&e.from!=e.to?oi.set([Ap.range(e.from,e.to)]):oi.none})),Ss(Mp,{hideOn:function(t,e){let i=e.pos,o=e.end||i,n=t.state.facet(Tp).hideOn(t,i,o);if(null!=n)return n;let r=t.startState.doc.lineAt(e.pos);return!(!t.effects.some((t=>t.is(xp)))&&!t.changes.touchesRange(r.from,Math.max(r.to,o)))}}),Rp],Wp=(()=>[ia(),sa(),Kr(),fd(),Xh(),Ar(),Ir(),Ct.allowMultipleSelections.of(!0),yh(),ic(sc,{fallback:!0}),pc(),[sp,ep],mp(),ns(),as(),Xr(),[dg,cg],hr.of([...ap,...qu,...Hg,...Ld,...Vh,...pp,...Op])])(),Hp=(()=>[Kr(),fd(),Ar(),ic(sc,{fallback:!0}),hr.of([...qu,...Ld])])();function Vp(t){return new th(Mc.define(t))}function qp(t){return import("./index-anbJ5y0U.js").then((e=>e.sql({dialect:e[t]})))}const zp=[eh.of({name:"C",extensions:["c","h","ino"],load:()=>import("./index-CB606nqP.js").then((t=>t.cpp()))}),eh.of({name:"C++",alias:["cpp"],extensions:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],load:()=>import("./index-CB606nqP.js").then((t=>t.cpp()))}),eh.of({name:"CQL",alias:["cassandra"],extensions:["cql"],load:()=>qp("Cassandra")}),eh.of({name:"CSS",extensions:["css"],load:()=>import("./index-CJhLK3a1.js").then((t=>t.css()))}),eh.of({name:"Go",extensions:["go"],load:()=>import("./index-CG3aUV_L.js").then((t=>t.go()))}),eh.of({name:"HTML",alias:["xhtml"],extensions:["html","htm","handlebars","hbs"],load:()=>import("./index-CYWhQqFb.js").then((t=>t.html()))}),eh.of({name:"Java",extensions:["java"],load:()=>import("./index-Ctywxs9F.js").then((t=>t.java()))}),eh.of({name:"JavaScript",alias:["ecmascript","js","node"],extensions:["js","mjs","cjs"],load:()=>import("./index-B7tHWccP.js").then((t=>t.javascript()))}),eh.of({name:"JSON",alias:["json5"],extensions:["json","map"],load:()=>import("./index-CJB1zGqD.js").then((t=>t.json()))}),eh.of({name:"JSX",extensions:["jsx"],load:()=>import("./index-B7tHWccP.js").then((t=>t.javascript({jsx:!0})))}),eh.of({name:"LESS",extensions:["less"],load:()=>import("./index-BL_t_ntH.js").then((t=>t.less()))}),eh.of({name:"Liquid",extensions:["liquid"],load:()=>import("./index-CUN-L9uH.js").then((t=>t.liquid()))}),eh.of({name:"MariaDB SQL",load:()=>qp("MariaSQL")}),eh.of({name:"Markdown",extensions:["md","markdown","mkd"],load:()=>import("./index-DHm9fpZm.js").then((t=>t.markdown()))}),eh.of({name:"MS SQL",load:()=>qp("MSSQL")}),eh.of({name:"MySQL",load:()=>qp("MySQL")}),eh.of({name:"PHP",extensions:["php","php3","php4","php5","php7","phtml"],load:()=>import("./index-BTAxP3mB.js").then((t=>t.php()))}),eh.of({name:"PLSQL",extensions:["pls"],load:()=>qp("PLSQL")}),eh.of({name:"PostgreSQL",load:()=>qp("PostgreSQL")}),eh.of({name:"Python",extensions:["BUILD","bzl","py","pyw"],filename:/^(BUCK|BUILD)$/,load:()=>import("./index-C4TeAHpL.js").then((t=>t.python()))}),eh.of({name:"Rust",extensions:["rs"],load:()=>import("./index-GtIxIVFm.js").then((t=>t.rust()))}),eh.of({name:"Sass",extensions:["sass"],load:()=>import("./index-DWxkS7ff.js").then((t=>t.sass({indented:!0})))}),eh.of({name:"SCSS",extensions:["scss"],load:()=>import("./index-DWxkS7ff.js").then((t=>t.sass()))}),eh.of({name:"SQL",extensions:["sql"],load:()=>qp("StandardSQL")}),eh.of({name:"SQLite",load:()=>qp("SQLite")}),eh.of({name:"TSX",extensions:["tsx"],load:()=>import("./index-B7tHWccP.js").then((t=>t.javascript({jsx:!0,typescript:!0})))}),eh.of({name:"TypeScript",alias:["ts"],extensions:["ts","mts","cts"],load:()=>import("./index-B7tHWccP.js").then((t=>t.javascript({typescript:!0})))}),eh.of({name:"WebAssembly",extensions:["wat","wast"],load:()=>import("./index-BJiyyGqZ.js").then((t=>t.wast()))}),eh.of({name:"XML",alias:["rss","wsdl","xsd"],extensions:["xml","xsl","xsd","svg"],load:()=>import("./index-NkaBMccj.js").then((t=>t.xml()))}),eh.of({name:"YAML",alias:["yml"],extensions:["yaml","yml"],load:()=>import("./index-D6K4mE4a.js").then((t=>t.yaml()))}),eh.of({name:"APL",extensions:["dyalog","apl"],load:()=>import("./apl-CXdQSnD-.js").then((t=>Vp(t.apl)))}),eh.of({name:"PGP",alias:["asciiarmor"],extensions:["asc","pgp","sig"],load:()=>import("./asciiarmor-D5V0T9Cu.js").then((t=>Vp(t.asciiArmor)))}),eh.of({name:"ASN.1",extensions:["asn","asn1"],load:()=>import("./asn1-BhA3SgW2.js").then((t=>Vp(t.asn1({}))))}),eh.of({name:"Asterisk",filename:/^extensions\.conf$/i,load:()=>import("./asterisk-B46aRdXb.js").then((t=>Vp(t.asterisk)))}),eh.of({name:"Brainfuck",extensions:["b","bf"],load:()=>import("./brainfuck-CtZaYBKt.js").then((t=>Vp(t.brainfuck)))}),eh.of({name:"Cobol",extensions:["cob","cpy"],load:()=>import("./cobol-DJhTY0fG.js").then((t=>Vp(t.cobol)))}),eh.of({name:"C#",alias:["csharp","cs"],extensions:["cs"],load:()=>import("./clike-BPCXT8V3.js").then((t=>Vp(t.csharp)))}),eh.of({name:"Clojure",extensions:["clj","cljc","cljx"],load:()=>import("./clojure-DR_hEDJv.js").then((t=>Vp(t.clojure)))}),eh.of({name:"ClojureScript",extensions:["cljs"],load:()=>import("./clojure-DR_hEDJv.js").then((t=>Vp(t.clojure)))}),eh.of({name:"Closure Stylesheets (GSS)",extensions:["gss"],load:()=>import("./css-ZjFoif2m.js").then((t=>Vp(t.gss)))}),eh.of({name:"CMake",extensions:["cmake","cmake.in"],filename:/^CMakeLists\.txt$/,load:()=>import("./cmake-DXn5xaP-.js").then((t=>Vp(t.cmake)))}),eh.of({name:"CoffeeScript",alias:["coffee","coffee-script"],extensions:["coffee"],load:()=>import("./coffeescript-BTDxI-eT.js").then((t=>Vp(t.coffeeScript)))}),eh.of({name:"Common Lisp",alias:["lisp"],extensions:["cl","lisp","el"],load:()=>import("./commonlisp-vq6DHwts.js").then((t=>Vp(t.commonLisp)))}),eh.of({name:"Cypher",extensions:["cyp","cypher"],load:()=>import("./cypher-gJDei3ni.js").then((t=>Vp(t.cypher)))}),eh.of({name:"Cython",extensions:["pyx","pxd","pxi"],load:()=>import("./python-DD-Q2bae.js").then((t=>Vp(t.cython)))}),eh.of({name:"Crystal",extensions:["cr"],load:()=>import("./crystal-CRzZ78HM.js").then((t=>Vp(t.crystal)))}),eh.of({name:"D",extensions:["d"],load:()=>import("./d-BShv7fp-.js").then((t=>Vp(t.d)))}),eh.of({name:"Dart",extensions:["dart"],load:()=>import("./clike-BPCXT8V3.js").then((t=>Vp(t.dart)))}),eh.of({name:"diff",extensions:["diff","patch"],load:()=>import("./diff-UJJ5BM9S.js").then((t=>Vp(t.diff)))}),eh.of({name:"Dockerfile",filename:/^Dockerfile$/,load:()=>import("./dockerfile-DbSFhNEh.js").then((t=>Vp(t.dockerFile)))}),eh.of({name:"DTD",extensions:["dtd"],load:()=>import("./dtd-DI9Herc-.js").then((t=>Vp(t.dtd)))}),eh.of({name:"Dylan",extensions:["dylan","dyl","intr"],load:()=>import("./dylan-CHJ5qNM_.js").then((t=>Vp(t.dylan)))}),eh.of({name:"EBNF",load:()=>import("./ebnf-B-Df8AvO.js").then((t=>Vp(t.ebnf)))}),eh.of({name:"ECL",extensions:["ecl"],load:()=>import("./ecl-DPFc0Uaf.js").then((t=>Vp(t.ecl)))}),eh.of({name:"edn",extensions:["edn"],load:()=>import("./clojure-DR_hEDJv.js").then((t=>Vp(t.clojure)))}),eh.of({name:"Eiffel",extensions:["e"],load:()=>import("./eiffel-DR5c0IrL.js").then((t=>Vp(t.eiffel)))}),eh.of({name:"Elm",extensions:["elm"],load:()=>import("./elm-D7xaZ7Da.js").then((t=>Vp(t.elm)))}),eh.of({name:"Erlang",extensions:["erl"],load:()=>import("./erlang-BuqgqA5h.js").then((t=>Vp(t.erlang)))}),eh.of({name:"Esper",load:()=>import("./sql-BP5jFf-w.js").then((t=>Vp(t.esper)))}),eh.of({name:"Factor",extensions:["factor"],load:()=>import("./factor-D9hSz2Dc.js").then((t=>Vp(t.factor)))}),eh.of({name:"FCL",load:()=>import("./fcl-CVaBTCzQ.js").then((t=>Vp(t.fcl)))}),eh.of({name:"Forth",extensions:["forth","fth","4th"],load:()=>import("./forth-Dri_5nFc.js").then((t=>Vp(t.forth)))}),eh.of({name:"Fortran",extensions:["f","for","f77","f90","f95"],load:()=>import("./fortran-DL7KluxX.js").then((t=>Vp(t.fortran)))}),eh.of({name:"F#",alias:["fsharp"],extensions:["fs"],load:()=>import("./mllike-B8DYu8SS.js").then((t=>Vp(t.fSharp)))}),eh.of({name:"Gas",extensions:["s"],load:()=>import("./gas-5kEe4nk0.js").then((t=>Vp(t.gas)))}),eh.of({name:"Gherkin",extensions:["feature"],load:()=>import("./gherkin-B6X1vGSW.js").then((t=>Vp(t.gherkin)))}),eh.of({name:"Groovy",extensions:["groovy","gradle"],filename:/^Jenkinsfile$/,load:()=>import("./groovy-BfRUB6GO.js").then((t=>Vp(t.groovy)))}),eh.of({name:"Haskell",extensions:["hs"],load:()=>import("./haskell-CmdsSjFB.js").then((t=>Vp(t.haskell)))}),eh.of({name:"Haxe",extensions:["hx"],load:()=>import("./haxe-75PMBtaN.js").then((t=>Vp(t.haxe)))}),eh.of({name:"HXML",extensions:["hxml"],load:()=>import("./haxe-75PMBtaN.js").then((t=>Vp(t.hxml)))}),eh.of({name:"HTTP",load:()=>import("./http-BKJkqRj4.js").then((t=>Vp(t.http)))}),eh.of({name:"IDL",extensions:["pro"],load:()=>import("./idl-pcmmZuaN.js").then((t=>Vp(t.idl)))}),eh.of({name:"JSON-LD",alias:["jsonld"],extensions:["jsonld"],load:()=>import("./javascript-CQRKPXEM.js").then((t=>Vp(t.jsonld)))}),eh.of({name:"Jinja2",extensions:["j2","jinja","jinja2"],load:()=>import("./jinja2-DhgKlfW7.js").then((t=>Vp(t.jinja2)))}),eh.of({name:"Julia",extensions:["jl"],load:()=>import("./julia-DjdwvFuI.js").then((t=>Vp(t.julia)))}),eh.of({name:"Kotlin",extensions:["kt","kts"],load:()=>import("./clike-BPCXT8V3.js").then((t=>Vp(t.kotlin)))}),eh.of({name:"LiveScript",alias:["ls"],extensions:["ls"],load:()=>import("./livescript-B19OIWEP.js").then((t=>Vp(t.liveScript)))}),eh.of({name:"Lua",extensions:["lua"],load:()=>import("./lua-8DXOpKDz.js").then((t=>Vp(t.lua)))}),eh.of({name:"mIRC",extensions:["mrc"],load:()=>import("./mirc-DkvFAiy5.js").then((t=>Vp(t.mirc)))}),eh.of({name:"Mathematica",extensions:["m","nb","wl","wls"],load:()=>import("./mathematica-IIbmv7SK.js").then((t=>Vp(t.mathematica)))}),eh.of({name:"Modelica",extensions:["mo"],load:()=>import("./modelica-DSrSSXCg.js").then((t=>Vp(t.modelica)))}),eh.of({name:"MUMPS",extensions:["mps"],load:()=>import("./mumps-zvxmGV4l.js").then((t=>Vp(t.mumps)))}),eh.of({name:"Mbox",extensions:["mbox"],load:()=>import("./mbox-z_N2Mo3d.js").then((t=>Vp(t.mbox)))}),eh.of({name:"Nginx",filename:/nginx.*\.conf$/i,load:()=>import("./nginx-B4hAVlXN.js").then((t=>Vp(t.nginx)))}),eh.of({name:"NSIS",extensions:["nsh","nsi"],load:()=>import("./nsis-CKXvuz-E.js").then((t=>Vp(t.nsis)))}),eh.of({name:"NTriples",extensions:["nt","nq"],load:()=>import("./ntriples-FFvkTduk.js").then((t=>Vp(t.ntriples)))}),eh.of({name:"Objective-C",alias:["objective-c","objc"],extensions:["m"],load:()=>import("./clike-BPCXT8V3.js").then((t=>Vp(t.objectiveC)))}),eh.of({name:"Objective-C++",alias:["objective-c++","objc++"],extensions:["mm"],load:()=>import("./clike-BPCXT8V3.js").then((t=>Vp(t.objectiveCpp)))}),eh.of({name:"OCaml",extensions:["ml","mli","mll","mly"],load:()=>import("./mllike-B8DYu8SS.js").then((t=>Vp(t.oCaml)))}),eh.of({name:"Octave",extensions:["m"],load:()=>import("./octave-C4hdQ5Hf.js").then((t=>Vp(t.octave)))}),eh.of({name:"Oz",extensions:["oz"],load:()=>import("./oz-qQq7irPq.js").then((t=>Vp(t.oz)))}),eh.of({name:"Pascal",extensions:["p","pas"],load:()=>import("./pascal-CZ0JYm71.js").then((t=>Vp(t.pascal)))}),eh.of({name:"Perl",extensions:["pl","pm"],load:()=>import("./perl-tdMlh9QA.js").then((t=>Vp(t.perl)))}),eh.of({name:"Pig",extensions:["pig"],load:()=>import("./pig-CwGJVRC4.js").then((t=>Vp(t.pig)))}),eh.of({name:"PowerShell",extensions:["ps1","psd1","psm1"],load:()=>import("./powershell-D1ly3AHC.js").then((t=>Vp(t.powerShell)))}),eh.of({name:"Properties files",alias:["ini","properties"],extensions:["properties","ini","in"],load:()=>import("./properties-_nPj978X.js").then((t=>Vp(t.properties)))}),eh.of({name:"ProtoBuf",extensions:["proto"],load:()=>import("./protobuf-B4y9do6W.js").then((t=>Vp(t.protobuf)))}),eh.of({name:"Pug",alias:["jade"],extensions:["pug","jade"],load:()=>import("./pug-Zmekp7TD.js").then((t=>Vp(t.pug)))}),eh.of({name:"Puppet",extensions:["pp"],load:()=>import("./puppet-Bc-yJKzi.js").then((t=>Vp(t.puppet)))}),eh.of({name:"Q",extensions:["q"],load:()=>import("./q-B0kTJ4cI.js").then((t=>Vp(t.q)))}),eh.of({name:"R",alias:["rscript"],extensions:["r","R"],load:()=>import("./r-BA4EbLKE.js").then((t=>Vp(t.r)))}),eh.of({name:"RPM Changes",load:()=>import("./rpm-DI_rRufH.js").then((t=>Vp(t.rpmChanges)))}),eh.of({name:"RPM Spec",extensions:["spec"],load:()=>import("./rpm-DI_rRufH.js").then((t=>Vp(t.rpmSpec)))}),eh.of({name:"Ruby",alias:["jruby","macruby","rake","rb","rbx"],extensions:["rb"],filename:/^(Gemfile|Rakefile)$/,load:()=>import("./ruby-CR-u2WLS.js").then((t=>Vp(t.ruby)))}),eh.of({name:"SAS",extensions:["sas"],load:()=>import("./sas-Bqaci40L.js").then((t=>Vp(t.sas)))}),eh.of({name:"Scala",extensions:["scala"],load:()=>import("./clike-BPCXT8V3.js").then((t=>Vp(t.scala)))}),eh.of({name:"Scheme",extensions:["scm","ss"],load:()=>import("./scheme-qjP0V5Ag.js").then((t=>Vp(t.scheme)))}),eh.of({name:"Shell",alias:["bash","sh","zsh"],extensions:["sh","ksh","bash"],filename:/^PKGBUILD$/,load:()=>import("./shell-BLav31RL.js").then((t=>Vp(t.shell)))}),eh.of({name:"Sieve",extensions:["siv","sieve"],load:()=>import("./sieve-r025o_jW.js").then((t=>Vp(t.sieve)))}),eh.of({name:"Smalltalk",extensions:["st"],load:()=>import("./smalltalk-C7J3IyEP.js").then((t=>Vp(t.smalltalk)))}),eh.of({name:"Solr",load:()=>import("./solr-78MBEUkU.js").then((t=>Vp(t.solr)))}),eh.of({name:"SML",extensions:["sml","sig","fun","smackspec"],load:()=>import("./mllike-B8DYu8SS.js").then((t=>Vp(t.sml)))}),eh.of({name:"SPARQL",alias:["sparul"],extensions:["rq","sparql"],load:()=>import("./sparql-BRLJFz69.js").then((t=>Vp(t.sparql)))}),eh.of({name:"Spreadsheet",alias:["excel","formula"],load:()=>import("./spreadsheet-CGlWr0eM.js").then((t=>Vp(t.spreadsheet)))}),eh.of({name:"Squirrel",extensions:["nut"],load:()=>import("./clike-BPCXT8V3.js").then((t=>Vp(t.squirrel)))}),eh.of({name:"Stylus",extensions:["styl"],load:()=>import("./stylus-3mOX9C7I.js").then((t=>Vp(t.stylus)))}),eh.of({name:"Swift",extensions:["swift"],load:()=>import("./swift-Cbprqdc8.js").then((t=>Vp(t.swift)))}),eh.of({name:"sTeX",load:()=>import("./stex-Ba7Sj9VR.js").then((t=>Vp(t.stex)))}),eh.of({name:"LaTeX",alias:["tex"],extensions:["text","ltx","tex"],load:()=>import("./stex-Ba7Sj9VR.js").then((t=>Vp(t.stex)))}),eh.of({name:"SystemVerilog",extensions:["v","sv","svh"],load:()=>import("./verilog-B4LBqg_1.js").then((t=>Vp(t.verilog)))}),eh.of({name:"Tcl",extensions:["tcl"],load:()=>import("./tcl-B2fODqDH.js").then((t=>Vp(t.tcl)))}),eh.of({name:"Textile",extensions:["textile"],load:()=>import("./textile-BuVhTOzU.js").then((t=>Vp(t.textile)))}),eh.of({name:"TiddlyWiki",load:()=>import("./tiddlywiki-BgR6AEZu.js").then((t=>Vp(t.tiddlyWiki)))}),eh.of({name:"Tiki wiki",load:()=>import("./tiki-CI-ztowC.js").then((t=>Vp(t.tiki)))}),eh.of({name:"TOML",extensions:["toml"],load:()=>import("./toml-BQXy8elZ.js").then((t=>Vp(t.toml)))}),eh.of({name:"Troff",extensions:["1","2","3","4","5","6","7","8","9"],load:()=>import("./troff-Ce85hlLp.js").then((t=>Vp(t.troff)))}),eh.of({name:"TTCN",extensions:["ttcn","ttcn3","ttcnpp"],load:()=>import("./ttcn-C4reStyN.js").then((t=>Vp(t.ttcn)))}),eh.of({name:"TTCN_CFG",extensions:["cfg"],load:()=>import("./ttcn-cfg-Ce4xWtqN.js").then((t=>Vp(t.ttcnCfg)))}),eh.of({name:"Turtle",extensions:["ttl"],load:()=>import("./turtle-BkSuIpt-.js").then((t=>Vp(t.turtle)))}),eh.of({name:"Web IDL",extensions:["webidl"],load:()=>import("./webidl-CGwyPRYs.js").then((t=>Vp(t.webIDL)))}),eh.of({name:"VB.NET",extensions:["vb"],load:()=>import("./vb-coDLL1b7.js").then((t=>Vp(t.vb)))}),eh.of({name:"VBScript",extensions:["vbs"],load:()=>import("./vbscript-MdTt_wcJ.js").then((t=>Vp(t.vbScript)))}),eh.of({name:"Velocity",extensions:["vtl"],load:()=>import("./velocity-BdD_26Jv.js").then((t=>Vp(t.velocity)))}),eh.of({name:"Verilog",extensions:["v"],load:()=>import("./verilog-B4LBqg_1.js").then((t=>Vp(t.verilog)))}),eh.of({name:"VHDL",extensions:["vhd","vhdl"],load:()=>import("./vhdl-BRDI21CQ.js").then((t=>Vp(t.vhdl)))}),eh.of({name:"XQuery",extensions:["xy","xquery"],load:()=>import("./xquery-BZBLoTvf.js").then((t=>Vp(t.xQuery)))}),eh.of({name:"Yacas",extensions:["ys"],load:()=>import("./yacas-I8QjZlxf.js").then((t=>Vp(t.yacas)))}),eh.of({name:"Z80",extensions:["z80"],load:()=>import("./z80-D8p3gKXp.js").then((t=>Vp(t.z80)))}),eh.of({name:"MscGen",extensions:["mscgen","mscin","msc"],load:()=>import("./mscgen-B2igx18G.js").then((t=>Vp(t.mscgen)))}),eh.of({name:"Xù",extensions:["xu"],load:()=>import("./mscgen-B2igx18G.js").then((t=>Vp(t.xu)))}),eh.of({name:"MsGenny",extensions:["msgenny"],load:()=>import("./mscgen-B2igx18G.js").then((t=>Vp(t.msgenny)))}),eh.of({name:"Vue",extensions:["vue"],load:()=>import("./index-CgEMB2FB.js").then((t=>t.vue()))}),eh.of({name:"Angular Template",load:()=>import("./index-CvY89YCL.js").then((t=>t.angular()))})],Kp="#e5c07b",_p="#e06c75",$p="#56b6c2",Up="#ffffff",Gp="#abb2bf",Jp="#7d8799",Xp="#61afef",Yp="#98c379",Qp="#d19a66",Zp="#c678dd",tb="#21252b",eb="#2c313a",ib="#282c34",ob="#353a42",nb="#3E4451",rb="#528bff",sb={chalky:Kp,coral:_p,cyan:$p,invalid:Up,ivory:Gp,stone:Jp,malibu:Xp,sage:Yp,whiskey:Qp,violet:Zp,darkBackground:tb,highlightBackground:eb,background:ib,tooltipBackground:ob,selection:nb,cursor:rb},ab=er.theme({"&":{color:Gp,backgroundColor:ib},".cm-content":{caretColor:rb},".cm-cursor, .cm-dropCursor":{borderLeftColor:rb},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:nb},".cm-panels":{backgroundColor:tb,color:Gp},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#6699ff0b"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847"},".cm-gutters":{backgroundColor:ib,color:Jp,border:"none"},".cm-activeLineGutter":{backgroundColor:eb},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:ob},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:ob,borderBottomColor:ob},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:eb,color:Gp}}},{dark:!0}),lb=Qh.define([{tag:El.keyword,color:Zp},{tag:[El.name,El.deleted,El.character,El.propertyName,El.macroName],color:_p},{tag:[El.function(El.variableName),El.labelName],color:Xp},{tag:[El.color,El.constant(El.name),El.standard(El.name)],color:Qp},{tag:[El.definition(El.name),El.separator],color:Gp},{tag:[El.typeName,El.className,El.number,El.changed,El.annotation,El.modifier,El.self,El.namespace],color:Kp},{tag:[El.operator,El.operatorKeyword,El.url,El.escape,El.regexp,El.link,El.special(El.string)],color:$p},{tag:[El.meta,El.comment],color:Jp},{tag:El.strong,fontWeight:"bold"},{tag:El.emphasis,fontStyle:"italic"},{tag:El.strikethrough,textDecoration:"line-through"},{tag:El.link,color:Jp,textDecoration:"underline"},{tag:El.heading,fontWeight:"bold",color:_p},{tag:[El.atom,El.bool,El.special(El.variableName)],color:Qp},{tag:[El.processingInstruction,El.string,El.inserted],color:Yp},{tag:El.invalid,color:Up}]),hb=[ab,ic(lb)];function cb(){return cb=Object.assign?Object.assign.bind():function(t){for(var e=1;e{var{theme:e,settings:i={},styles:o=[]}=t,n={".cm-gutters":{}},r={};i.background&&(r.backgroundColor=i.background),i.backgroundImage&&(r.backgroundImage=i.backgroundImage),i.foreground&&(r.color=i.foreground),i.fontSize&&(r.fontSize=i.fontSize),(i.background||i.foreground)&&(n["&"]=r),i.fontFamily&&(n["&.cm-editor .cm-scroller"]={fontFamily:i.fontFamily}),i.gutterBackground&&(n[".cm-gutters"].backgroundColor=i.gutterBackground),i.gutterForeground&&(n[".cm-gutters"].color=i.gutterForeground),i.gutterBorder&&(n[".cm-gutters"].borderRightColor=i.gutterBorder),i.caret&&(n[".cm-content"]={caretColor:i.caret},n[".cm-cursor, .cm-dropCursor"]={borderLeftColor:i.caret});var s={};return i.gutterActiveForeground&&(s.color=i.gutterActiveForeground),i.lineHighlight&&(n[".cm-activeLine"]={backgroundColor:i.lineHighlight},s.backgroundColor=i.lineHighlight),n[".cm-activeLineGutter"]=s,i.selection&&(n["&.cm-focused .cm-selectionBackground, & .cm-line::selection, & .cm-selectionLayer .cm-selectionBackground, .cm-content ::selection"]={background:i.selection+" !important"}),i.selectionMatch&&(n["& .cm-selectionMatch"]={backgroundColor:i.selectionMatch}),[er.theme(n,{dark:"dark"===e}),ic(Qh.define(o))]},fb={background:"#0f0f0f",foreground:"#defdef",caret:"#00FF00",selection:"#515151",selectionMatch:"#515151",gutterBackground:"#555",gutterForeground:"#FFFFFF",lineHighlight:"#0a6bcb3d"},ub=[{tag:El.keyword,color:"darkgoldenrod",fontWeight:"bold"},{tag:El.atom,color:"#77F"},{tag:El.comment,color:"#7a7b7c",fontStyle:"italic"},{tag:El.number,color:"violet"},{tag:El.definition(El.variableName),color:"#fffabc"},{tag:El.variableName,color:"#abcdef"},{tag:El.function(El.variableName),color:"#fffabc"},{tag:El.typeName,color:"#FFDD44"},{tag:El.tagName,color:"#def"},{tag:El.string,color:"#2b4"},{tag:El.meta,color:"#C9F"},{tag:El.bracket,color:"#8a8a8a"},{tag:El.attributeName,color:"#DDFF00"},{tag:El.heading,color:"aquamarine",fontWeight:"bold"},{tag:El.link,color:"blueviolet",fontWeight:"bold"}],gb=t=>{var{theme:e="dark",settings:i={},styles:o=[]}=t||{};return db({theme:e,settings:cb({},fb,i),styles:[...ub,...o]})},mb=gb(),pb="#000c18",bb="#6688cc",vb="#770811",yb="#770811",wb="#ddbb88",xb="#0055ff30",kb="#225588",Sb="#2277ff",Cb="#9966b8",Ab="#22aa44",Mb="#f280d0",Db="#9966b8",Nb="#ddbb88",Ob="#f280d0",Tb="#384887",Bb="#6688cc",Eb="#A22D44",Lb="#22aa44",Fb="#225588",Pb={background:pb,foreground:bb,caret:wb,selection:vb,selectionMatch:yb,gutterBackground:pb,gutterForeground:bb,lineHighlight:xb},Ib=[{tag:El.keyword,color:kb},{tag:[El.name,El.deleted,El.character,El.macroName],color:Sb},{tag:[El.propertyName],color:Cb},{tag:[El.processingInstruction,El.string,El.inserted,El.special(El.string)],color:Ab},{tag:[El.function(El.variableName),El.labelName],color:Cb},{tag:[El.color,El.constant(El.name),El.standard(El.name)],color:Mb},{tag:[El.definition(El.name),El.separator],color:Sb},{tag:[El.className],color:Nb},{tag:[El.number,El.changed,El.annotation,El.modifier,El.self,El.namespace],color:Ob},{tag:[El.typeName],color:Db,fontStyle:Db},{tag:[El.operator,El.operatorKeyword],color:kb},{tag:[El.url,El.escape,El.regexp,El.link],color:Lb},{tag:[El.meta,El.comment],color:Tb},{tag:El.tagName,color:Fb},{tag:El.strong,fontWeight:"bold"},{tag:El.emphasis,fontStyle:"italic"},{tag:El.link,textDecoration:"underline"},{tag:El.heading,fontWeight:"bold",color:Bb},{tag:[El.atom,El.bool,El.special(El.variableName)],color:Sb},{tag:El.invalid,color:Eb},{tag:El.strikethrough,textDecoration:"line-through"}],Rb=t=>{var{theme:e="dark",settings:i={},styles:o=[]}=t||{};return db({theme:e,settings:cb({},Pb,i),styles:[...Ib,...o]})},jb=Rb(),Wb={background:"#282b2e",foreground:"#a9b7c6",caret:"#00FF00",selection:"#4e5254",selectionMatch:"#4e5254",lineHighlight:"#7f85891f"},Hb=[{tag:[El.keyword,El.deleted,El.className],color:"#cc7832"},{tag:[El.number,El.literal,El.derefOperator],color:"#6897bb"},{tag:[El.link,El.variableName],color:"#629755"},{tag:[El.comment,El.quote],color:"grey"},{tag:[El.meta,El.documentMeta],color:"#bbb529"},{tag:[El.string,El.propertyName,El.attributeValue],color:"#6a8759"},{tag:[El.heading,El.typeName],color:"#ffc66d"},{tag:[El.attributeName],color:"#a9b7c6"},{tag:[El.emphasis],fontStyle:"italic"}],Vb=t=>{var{theme:e="dark",settings:i={},styles:o=[]}=t||{};return db({theme:e,settings:cb({},Wb,i),styles:[...Hb,...o]})},qb=Vb(),zb="#23262E",Kb="#D5CED9",_b="#db45a280",$b="#db45a280",Ub="#FFF",Gb="#596a992e",Jb="#c74ded",Xb="#00e8c6",Yb="#FFE66D",Qb="#96E072",Zb="#ee5d43",tv="#FFE66D",ev="#FFE66D",iv="#ee5d43",ov="#A0A1A7cc",nv="#ff00aa",rv=null,sv="#96E072",av="#f92672",lv={background:zb,foreground:Kb,caret:Ub,selection:_b,selectionMatch:$b,gutterBackground:zb,gutterForeground:Kb,lineHighlight:Gb},hv=[{tag:El.keyword,color:Jb},{tag:[El.name,El.deleted,El.character,El.macroName],color:Xb},{tag:[El.propertyName],color:Yb},{tag:[El.processingInstruction,El.string,El.inserted,El.special(El.string)],color:Qb},{tag:[El.function(El.variableName),El.labelName],color:Yb},{tag:[El.color,El.constant(El.name),El.standard(El.name)],color:Zb},{tag:[El.definition(El.name),El.separator],color:Xb},{tag:[El.className],color:ev},{tag:[El.number,El.changed,El.annotation,El.modifier,El.self,El.namespace],color:iv},{tag:[El.typeName],color:tv,fontStyle:tv},{tag:[El.operator],color:Jb},{tag:[El.url,El.escape,El.regexp,El.link],color:sv},{tag:[El.meta,El.comment],color:ov},{tag:El.tagName,color:av},{tag:El.strong,fontWeight:"bold"},{tag:El.emphasis,fontStyle:"italic"},{tag:El.link,textDecoration:"underline"},{tag:El.heading,fontWeight:"bold",color:nv},{tag:[El.atom,El.special(El.variableName)],color:Xb},{tag:El.invalid,color:rv},{tag:El.strikethrough,textDecoration:"line-through"},{tag:[El.operatorKeyword,El.bool,El.null,El.variableName],color:Zb}],cv=t=>{var{theme:e="dark",settings:i={},styles:o=[]}=t||{};return db({theme:e,settings:cb({},lv,i),styles:[...hv,...o]})},dv=cv(),fv={background:"#272C35",foreground:"#9d9b97",caret:"#797977",selection:"#3d4c64",selectionMatch:"#3d4c64",gutterBackground:"#272C35",gutterForeground:"#465063",gutterBorder:"transparent",lineHighlight:"#2e3f5940"},uv=[{tag:[El.function(El.variableName),El.function(El.propertyName),El.url,El.processingInstruction],color:"hsl(207, 82%, 66%)"},{tag:[El.tagName,El.heading],color:"#e06c75"},{tag:El.comment,color:"#54636D"},{tag:[El.propertyName],color:"hsl(220, 14%, 71%)"},{tag:[El.attributeName,El.number],color:"hsl( 29, 54%, 61%)"},{tag:El.className,color:"hsl( 39, 67%, 69%)"},{tag:El.keyword,color:"hsl(286, 60%, 67%)"},{tag:[El.string,El.regexp,El.special(El.propertyName)],color:"#98c379"}],gv=t=>{var{theme:e="dark",settings:i={},styles:o=[]}=t||{};return db({theme:e,settings:cb({},fv,i),styles:[...uv,...o]})},mv=gv(),pv={background:"#21202e",foreground:"#edecee",caret:"#a277ff",selection:"#5a51898f",selectionMatch:"#5a51898f",gutterBackground:"#21202e",gutterForeground:"#edecee",gutterBorder:"transparent",lineHighlight:"#a394f033"},bv=[{tag:El.keyword,color:"#a277ff"},{tag:[El.name,El.deleted,El.character,El.macroName],color:"#edecee"},{tag:[El.propertyName],color:"#ffca85"},{tag:[El.processingInstruction,El.string,El.inserted,El.special(El.string)],color:"#61ffca"},{tag:[El.function(El.variableName),El.labelName],color:"#ffca85"},{tag:[El.color,El.constant(El.name),El.standard(El.name)],color:"#61ffca"},{tag:[El.definition(El.name),El.separator],color:"#edecee"},{tag:[El.className],color:"#82e2ff"},{tag:[El.number,El.changed,El.annotation,El.modifier,El.self,El.namespace],color:"#61ffca"},{tag:[El.typeName],color:"#82e2ff"},{tag:[El.operator,El.operatorKeyword],color:"#a277ff"},{tag:[El.url,El.escape,El.regexp,El.link],color:"#61ffca"},{tag:[El.meta,El.comment],color:"#6d6d6d"},{tag:El.strong,fontWeight:"bold"},{tag:El.emphasis,fontStyle:"italic"},{tag:El.link,textDecoration:"underline"},{tag:El.heading,fontWeight:"bold",color:"#a277ff"},{tag:[El.atom,El.bool,El.special(El.variableName)],color:"#edecee"},{tag:El.invalid,color:"#ff6767"},{tag:El.strikethrough,textDecoration:"line-through"}],vv=t=>{var{theme:e="dark",settings:i={},styles:o=[]}=t||{};return db({theme:e,settings:cb({},pv,i),styles:[...bv,...o]})},yv=vv(),wv={background:"#2E3235",foreground:"#DDDDDD",caret:"#DDDDDD",selection:"#202325",selectionMatch:"#202325",gutterBackground:"#292d30",gutterForeground:"#808080",gutterBorder:"1px solid #ffffff10",lineHighlight:"#B9D2FF30"},xv=[{tag:El.keyword,color:"#fda331"},{tag:[El.name,El.deleted,El.character,El.propertyName,El.macroName],color:"#b5bd68"},{tag:[El.variableName],color:"#6fb3d2"},{tag:[El.function(El.variableName)],color:"#fda331"},{tag:[El.labelName],color:"#fc6d24"},{tag:[El.color,El.constant(El.name),El.standard(El.name)],color:"#fda331"},{tag:[El.definition(El.name),El.separator],color:"#cc99cc"},{tag:[El.brace],color:"#cc99cc"},{tag:[El.annotation],color:"#fc6d24"},{tag:[El.number,El.changed,El.annotation,El.modifier,El.self,El.namespace],color:"#fda331"},{tag:[El.typeName,El.className],color:"#6fb3d2"},{tag:[El.operator,El.operatorKeyword],color:"#cc99cc"},{tag:[El.tagName],color:"#fda331"},{tag:[El.squareBracket],color:"#cc99cc"},{tag:[El.angleBracket],color:"#cc99cc"},{tag:[El.attributeName],color:"#6fb3d2"},{tag:[El.regexp],color:"#fda331"},{tag:[El.quote],color:"#DDDDDD"},{tag:[El.string],color:"#b5bd68"},{tag:El.link,color:"#6987AF",textDecoration:"underline",textUnderlinePosition:"under"},{tag:[El.url,El.escape,El.special(El.string)],color:"#8abeb7"},{tag:[El.meta],color:"#A54543"},{tag:[El.comment],color:"#808080",fontStyle:"italic"},{tag:El.monospace,color:"#DDDDDD"},{tag:El.strong,fontWeight:"bold",color:"#fda331"},{tag:El.emphasis,fontStyle:"italic",color:"#6fb3d2"},{tag:El.strikethrough,textDecoration:"line-through"},{tag:El.heading,fontWeight:"bold",color:"#DDDDDD"},{tag:El.special(El.heading1),fontWeight:"bold",color:"#DDDDDD"},{tag:El.heading1,fontWeight:"bold",color:"#DDDDDD"},{tag:[El.heading2,El.heading3,El.heading4],fontWeight:"bold",color:"#DDDDDD"},{tag:[El.heading5,El.heading6],color:"#DDDDDD"},{tag:[El.atom,El.bool,El.special(El.variableName)],color:"#8abeb7"},{tag:[El.processingInstruction,El.inserted],color:"#8abeb7"},{tag:[El.contentSeparator],color:"#6fb3d2"},{tag:El.invalid,color:"#B9D2FF",borderBottom:"1px dotted #fc6d24"}],kv=t=>{var{theme:e="dark",settings:i={},styles:o=[]}=t||{};return db({theme:e,settings:cb({},wv,i),styles:[...xv,...o]})},Sv=kv(),Cv={background:"#ffffff",foreground:"#2e3440",caret:"#3b4252",selection:"#eceff4",selectionMatch:"#e5e9f0",gutterBackground:"#eceff4",gutterForeground:"#2e3440",gutterBorder:"none",lineHighlight:"#02255f11"},Av=[{tag:El.keyword,color:"#5e81ac"},{tag:[El.name,El.deleted,El.character,El.propertyName,El.macroName],color:"#d08770"},{tag:[El.variableName],color:"#d08770"},{tag:[El.function(El.variableName)],color:"#5e81ac"},{tag:[El.labelName],color:"#81a1c1"},{tag:[El.color,El.constant(El.name),El.standard(El.name)],color:"#5e81ac"},{tag:[El.definition(El.name),El.separator],color:"#a3be8c"},{tag:[El.brace],color:"#8fbcbb"},{tag:[El.annotation],color:"#d30102"},{tag:[El.number,El.changed,El.annotation,El.modifier,El.self,El.namespace],color:"#88c0d0"},{tag:[El.typeName,El.className],color:"#ebcb8b"},{tag:[El.operator,El.operatorKeyword],color:"#a3be8c"},{tag:[El.tagName],color:"#b48ead"},{tag:[El.squareBracket],color:"#bf616a"},{tag:[El.angleBracket],color:"#d08770"},{tag:[El.attributeName],color:"#ebcb8b"},{tag:[El.regexp],color:"#5e81ac"},{tag:[El.quote],color:"#3b4252"},{tag:[El.string],color:"#d08770"},{tag:El.link,color:"#8fbcbb",textDecoration:"underline",textUnderlinePosition:"under"},{tag:[El.url,El.escape,El.special(El.string)],color:"#d08770"},{tag:[El.meta],color:"#88c0d0"},{tag:[El.comment],color:"#434c5e",fontStyle:"italic"},{tag:El.strong,fontWeight:"bold",color:"#5e81ac"},{tag:El.emphasis,fontStyle:"italic",color:"#5e81ac"},{tag:El.strikethrough,textDecoration:"line-through"},{tag:El.heading,fontWeight:"bold",color:"#5e81ac"},{tag:El.special(El.heading1),fontWeight:"bold",color:"#5e81ac"},{tag:El.heading1,fontWeight:"bold",color:"#5e81ac"},{tag:[El.heading2,El.heading3,El.heading4],fontWeight:"bold",color:"#5e81ac"},{tag:[El.heading5,El.heading6],color:"#5e81ac"},{tag:[El.atom,El.bool,El.special(El.variableName)],color:"#d08770"},{tag:[El.processingInstruction,El.inserted],color:"#8fbcbb"},{tag:[El.contentSeparator],color:"#ebcb8b"},{tag:El.invalid,color:"#434c5e",borderBottom:"1px dotted #d30102"}],Mv=t=>{var{theme:e="light",settings:i={},styles:o=[]}=t||{};return db({theme:e,settings:cb({},Cv,i),styles:[...o]})},Dv=Mv(),Nv={background:"#FFFFFF",foreground:"#000000",caret:"#FBAC52",selection:"#FFD420",selectionMatch:"#FFD420",gutterBackground:"#f5f5f5",gutterForeground:"#4D4D4C",gutterBorder:"transparent",lineHighlight:"#00000012"},Ov=[{tag:[El.meta,El.comment],color:"#804000"},{tag:[El.keyword,El.strong],color:"#0000FF"},{tag:[El.number],color:"#FF0080"},{tag:[El.string],color:"#FF0080"},{tag:[El.variableName],color:"#006600"},{tag:[El.escape],color:"#33CC33"},{tag:[El.tagName],color:"#1C02FF"},{tag:[El.heading],color:"#0C07FF"},{tag:[El.quote],color:"#000000"},{tag:[El.list],color:"#B90690"},{tag:[El.documentMeta],color:"#888888"},{tag:[El.function(El.variableName)],color:"#0000A2"},{tag:[El.definition(El.typeName),El.typeName],color:"#6D79DE"}],Tv=t=>{var{theme:e="light",settings:i={},styles:o=[]}=t||{};return db({theme:e,settings:cb({},Nv,i),styles:[...Ov,...o]})},Bv=Tv(),Ev={background:"#28211c",foreground:"#9d9b97",caret:"#797977",selection:"#4f382b",selectionMatch:"#4f382b",gutterBackground:"#28211c",gutterForeground:"#666666",lineHighlight:"#ffffff1a"},Lv=[{tag:[El.atom,El.number,El.link,El.bool],color:"#9b859d"},{tag:El.comment,color:"#937121"},{tag:[El.keyword,El.tagName],color:"#cf6a4c"},{tag:El.string,color:"#f9ee98"},{tag:El.bracket,color:"#9d9b97"},{tag:[El.variableName],color:"#5ea6ea"},{tag:El.definition(El.variableName),color:"#cf7d34"},{tag:[El.function(El.variableName),El.className],color:"#cf7d34"},{tag:[El.propertyName,El.attributeName],color:"#54be0d"}],Fv=t=>{var{theme:e="dark",settings:i={},styles:o=[]}=t||{};return db({theme:e,settings:cb({},Ev,i),styles:[...Lv,...o]})},Pv=Fv(),Iv={background:"#000",foreground:"#fff",caret:"#fff",selection:"#5c6c9b",selectionMatch:"#2a3967",gutterBackground:"#000",gutterForeground:"#ada9a9",gutterActiveForeground:"#fff",lineHighlight:"#82828275"},Rv=t=>{var{theme:e="dark",settings:i={},styles:o=[]}=t||{};return db({theme:e,settings:cb({},Iv,i),styles:[...o]})},jv=Rv(),Wv={background:"#fff",foreground:"#000",caret:"#000",selection:"#c2d2ff",selectionMatch:"#b1c1ef",gutterBackground:"#fff",gutterForeground:"#ada9a9",gutterActiveForeground:"#000",lineHighlight:"#c7c5c575"},Hv=t=>{var{theme:e="light",settings:i={},styles:o=[]}=t||{};return db({theme:e,settings:cb({},Wv,i),styles:[...o]})},Vv=Hv(),qv="#232a2f",zv="#939da5",Kv="#204062",_v="#204062",$v="#939da5",Uv="#4469832b",Gv="#ba8ef7",Jv="#939da5",Xv="#ffea6b",Yv="#5bec95",Qv="#939da5",Zv="#89ddff",ty="#ffea6b",ey="#89ddff",iy="#707a84",oy="#5bec95",ny="#ff6a80",ry="#56adb7",sy="#ff6a80",ay={background:qv,foreground:zv,caret:$v,selection:Kv,selectionMatch:_v,gutterBackground:qv,gutterForeground:zv,lineHighlight:Uv},ly=[{tag:El.keyword,color:Gv},{tag:[El.name,El.deleted,El.character,El.macroName],color:Jv},{tag:[El.propertyName],color:Xv},{tag:[El.processingInstruction,El.string,El.inserted,El.special(El.string)],color:Yv},{tag:[El.function(El.variableName),El.labelName],color:Xv},{tag:[El.color,El.constant(El.name),El.standard(El.name)],color:Qv},{tag:[El.definition(El.name),El.separator],color:Jv},{tag:[El.className],color:ty},{tag:[El.number,El.changed,El.annotation,El.modifier,El.self,El.namespace],color:ey},{tag:[El.typeName],color:Zv,fontStyle:Zv},{tag:[El.operator],color:Gv},{tag:[El.url,El.escape,El.regexp,El.link],color:ry},{tag:[El.meta,El.comment],color:iy},{tag:El.tagName,color:sy},{tag:El.strong,fontWeight:"bold"},{tag:El.emphasis,fontStyle:"italic"},{tag:El.link,textDecoration:"underline"},{tag:El.heading,fontWeight:"bold",color:oy},{tag:[El.atom,El.special(El.variableName)],color:Jv},{tag:El.invalid,color:ny},{tag:El.strikethrough,textDecoration:"line-through"},{tag:[El.operatorKeyword,El.bool,El.null,El.variableName],color:Qv}],hy=t=>{var{theme:e="dark",settings:i={},styles:o=[]}=t||{};return db({theme:e,settings:cb({},ay,i),styles:[...ly,...o]})},cy=hy(),dy={background:"#2B2B2B",foreground:"#f8f8f2",caret:"#FFFFFF",selection:"rgba(255, 255, 255, 0.1)",selectionMatch:"rgba(255, 255, 255, 0.2)",gutterBackground:"rgba(255, 255, 255, 0.1)",gutterForeground:"#999",gutterBorder:"transparent",lineHighlight:"rgba(255, 255, 255, 0.1)"},fy=[{tag:[El.atom,El.number],color:"#bd93f9"},{tag:[El.comment],color:"#61A151"},{tag:[El.string],color:"#6A8759"},{tag:[El.variableName,El.operator],color:"#A9B7C6"},{tag:[El.meta,El.className],color:"#A9B7C6"},{tag:[El.propertyName],color:"#FFC66D"},{tag:[El.keyword],color:"#CC7832"},{tag:[El.tagName],color:"#ff79c6"},{tag:[El.typeName],color:"#ffb86c"}],uy=t=>{var{theme:e="dark",settings:i={},styles:o=[]}=t||{};return db({theme:e,settings:cb({},dy,i),styles:[...fy,...o]})},gy=uy(),my={background:"#282a36",foreground:"#f8f8f2",caret:"#f8f8f0",selection:"rgba(255, 255, 255, 0.1)",selectionMatch:"rgba(255, 255, 255, 0.2)",gutterBackground:"#282a36",gutterForeground:"#6D8A88",gutterBorder:"transparent",lineHighlight:"rgba(255, 255, 255, 0.1)"},py=[{tag:El.comment,color:"#6272a4"},{tag:El.string,color:"#f1fa8c"},{tag:El.atom,color:"#bd93f9"},{tag:El.meta,color:"#f8f8f2"},{tag:[El.keyword,El.operator,El.tagName],color:"#ff79c6"},{tag:[El.function(El.propertyName),El.propertyName],color:"#66d9ef"},{tag:[El.definition(El.variableName),El.function(El.variableName),El.className,El.attributeName],color:"#50fa7b"},{tag:El.atom,color:"#bd93f9"}],by=t=>{var{theme:e="dark",settings:i={},styles:o=[]}=t||{};return db({theme:e,settings:cb({},my,i),styles:[...py,...o]})},vy=by(),yy={background:"#faf8f5",foreground:"#b29762",caret:"#93abdc",selection:"#e3dcce",selectionMatch:"#e3dcce",gutterBackground:"#faf8f5",gutterForeground:"#cdc4b1",gutterBorder:"transparent",lineHighlight:"#ddceb154"},wy=[{tag:[El.comment,El.bracket],color:"#b6ad9a"},{tag:[El.atom,El.number,El.keyword,El.link,El.attributeName,El.quote],color:"#063289"},{tag:[El.emphasis,El.heading,El.tagName,El.propertyName,El.variableName],color:"#2d2006"},{tag:[El.typeName,El.url,El.string],color:"#896724"},{tag:[El.operator,El.string],color:"#1659df"},{tag:[El.propertyName],color:"#b29762"},{tag:[El.unit,El.punctuation],color:"#063289"}],xy=t=>{var{theme:e="light",settings:i={},styles:o=[]}=t||{};return db({theme:e,settings:cb({},yy,i),styles:[...wy,...o]})},ky=xy(),Sy={background:"#2a2734",foreground:"#6c6783",caret:"#ffad5c",selection:"#91ff6c26",selectionMatch:"#91ff6c26",gutterBackground:"#2a2734",gutterForeground:"#545167",lineHighlight:"#36334280"},Cy=[{tag:[El.comment,El.bracket],color:"#6c6783"},{tag:[El.atom,El.number,El.keyword,El.link,El.attributeName,El.quote],color:"#ffcc99"},{tag:[El.emphasis,El.heading,El.tagName,El.propertyName,El.className,El.variableName],color:"#eeebff"},{tag:[El.typeName,El.url],color:"#7a63ee"},{tag:El.operator,color:"#ffad5c"},{tag:El.string,color:"#ffb870"},{tag:[El.propertyName],color:"#9a86fd"},{tag:[El.unit,El.punctuation],color:"#e09142"}],Ay=t=>{var{theme:e="dark",settings:i={},styles:o=[]}=t||{};return db({theme:e,settings:cb({},Sy,i),styles:[...Cy,...o]})},My=Ay(),Dy={background:"#fff",foreground:"#000",caret:"#FFFFFF",selection:"#d7d4f0",selectionMatch:"#d7d4f0",gutterBackground:"#f7f7f7",gutterForeground:"#999",lineHighlight:"#006fff1c",gutterBorder:"transparent"},Ny=[{tag:[El.comment],color:"#3F7F5F"},{tag:[El.documentMeta],color:"#FF1717"},{tag:El.keyword,color:"#7F0055",fontWeight:"bold"},{tag:El.atom,color:"#00f"},{tag:El.number,color:"#164"},{tag:El.propertyName,color:"#164"},{tag:[El.variableName,El.definition(El.variableName)],color:"#0000C0"},{tag:El.function(El.variableName),color:"#0000C0"},{tag:El.string,color:"#2A00FF"},{tag:El.operator,color:"black"},{tag:El.tagName,color:"#170"},{tag:El.attributeName,color:"#00c"},{tag:El.link,color:"#219"}],Oy=t=>{var{theme:e="light",settings:i={},styles:o=[]}=t||{};return db({theme:e,settings:cb({},Dy,i),styles:[...Ny,...o]})},Ty=Oy(),By={background:"#fff",foreground:"#24292e",selection:"#BBDFFF",selectionMatch:"#BBDFFF",gutterBackground:"#fff",gutterForeground:"#6e7781"},Ey=[{tag:[El.standard(El.tagName),El.tagName],color:"#116329"},{tag:[El.comment,El.bracket],color:"#6a737d"},{tag:[El.className,El.propertyName],color:"#6f42c1"},{tag:[El.variableName,El.attributeName,El.number,El.operator],color:"#005cc5"},{tag:[El.keyword,El.typeName,El.typeOperator,El.typeName],color:"#d73a49"},{tag:[El.string,El.meta,El.regexp],color:"#032f62"},{tag:[El.name,El.quote],color:"#22863a"},{tag:[El.heading,El.strong],color:"#24292e",fontWeight:"bold"},{tag:[El.emphasis],color:"#24292e",fontStyle:"italic"},{tag:[El.deleted],color:"#b31d28",backgroundColor:"ffeef0"},{tag:[El.atom,El.bool,El.special(El.variableName)],color:"#e36209"},{tag:[El.url,El.escape,El.regexp,El.link],color:"#032f62"},{tag:El.link,textDecoration:"underline"},{tag:El.strikethrough,textDecoration:"line-through"},{tag:El.invalid,color:"#cb2431"}],Ly=t=>{var{theme:e="light",settings:i={},styles:o=[]}=t||{};return db({theme:e,settings:cb({},By,i),styles:[...Ey,...o]})},Fy=Ly(),Py={background:"#0d1117",foreground:"#c9d1d9",caret:"#c9d1d9",selection:"#003d73",selectionMatch:"#003d73",lineHighlight:"#36334280"},Iy=[{tag:[El.standard(El.tagName),El.tagName],color:"#7ee787"},{tag:[El.comment,El.bracket],color:"#8b949e"},{tag:[El.className,El.propertyName],color:"#d2a8ff"},{tag:[El.variableName,El.attributeName,El.number,El.operator],color:"#79c0ff"},{tag:[El.keyword,El.typeName,El.typeOperator,El.typeName],color:"#ff7b72"},{tag:[El.string,El.meta,El.regexp],color:"#a5d6ff"},{tag:[El.name,El.quote],color:"#7ee787"},{tag:[El.heading,El.strong],color:"#d2a8ff",fontWeight:"bold"},{tag:[El.emphasis],color:"#d2a8ff",fontStyle:"italic"},{tag:[El.deleted],color:"#ffdcd7",backgroundColor:"ffeef0"},{tag:[El.atom,El.bool,El.special(El.variableName)],color:"#ffab70"},{tag:El.link,textDecoration:"underline"},{tag:El.strikethrough,textDecoration:"line-through"},{tag:El.invalid,color:"#f97583"}],Ry=t=>{var{theme:e="dark",settings:i={},styles:o=[]}=t||{};return db({theme:e,settings:cb({},Py,i),styles:[...Iy,...o]})},jy=Ry(),Wy={background:"#282828",foreground:"#ebdbb2",caret:"#ebdbb2",selection:"#b99d555c",selectionMatch:"#b99d555c",lineHighlight:"#baa1602b",gutterBackground:"#282828",gutterForeground:"#7c6f64"},Hy=[{tag:El.keyword,color:"#fb4934"},{tag:[El.name,El.deleted,El.character,El.propertyName,El.macroName],color:"#8ec07c"},{tag:[El.variableName],color:"#83a598"},{tag:[El.function(El.variableName)],color:"#b8bb26",fontStyle:"bold"},{tag:[El.labelName],color:"#ebdbb2"},{tag:[El.color,El.constant(El.name),El.standard(El.name)],color:"#d3869b"},{tag:[El.definition(El.name),El.separator],color:"#ebdbb2"},{tag:[El.brace],color:"#ebdbb2"},{tag:[El.annotation],color:"#fb4934d"},{tag:[El.number,El.changed,El.annotation,El.modifier,El.self,El.namespace],color:"#d3869b"},{tag:[El.typeName,El.className],color:"#fabd2f"},{tag:[El.operator,El.operatorKeyword],color:"#fb4934"},{tag:[El.tagName],color:"#8ec07c",fontStyle:"bold"},{tag:[El.squareBracket],color:"#fe8019"},{tag:[El.angleBracket],color:"#83a598"},{tag:[El.attributeName],color:"#8ec07c"},{tag:[El.regexp],color:"#8ec07c"},{tag:[El.quote],color:"#928374"},{tag:[El.string],color:"#ebdbb2"},{tag:El.link,color:"#a89984",textDecoration:"underline",textUnderlinePosition:"under"},{tag:[El.url,El.escape,El.special(El.string)],color:"#d3869b"},{tag:[El.meta],color:"#fabd2f"},{tag:[El.comment],color:"#928374",fontStyle:"italic"},{tag:El.strong,fontWeight:"bold",color:"#fe8019"},{tag:El.emphasis,fontStyle:"italic",color:"#b8bb26"},{tag:El.strikethrough,textDecoration:"line-through"},{tag:El.heading,fontWeight:"bold",color:"#b8bb26"},{tag:[El.heading1,El.heading2],fontWeight:"bold",color:"#b8bb26"},{tag:[El.heading3,El.heading4],fontWeight:"bold",color:"#fabd2f"},{tag:[El.heading5,El.heading6],color:"#fabd2f"},{tag:[El.atom,El.bool,El.special(El.variableName)],color:"#d3869b"},{tag:[El.processingInstruction,El.inserted],color:"#83a598"},{tag:[El.contentSeparator],color:"#fb4934"},{tag:El.invalid,color:"#fe8019",borderBottom:"1px dotted #fb4934d"}],Vy=t=>{var{theme:e="dark",settings:i={},styles:o=[]}=t||{};return db({theme:e,settings:cb({},Wy,i),styles:[...Hy,...o]})},qy=Vy(),zy={background:"#fbf1c7",foreground:"#3c3836",caret:"#af3a03",selection:"#bdae9391",selectionMatch:"#bdae9391",lineHighlight:"#a37f2238",gutterBackground:"#ebdbb2",gutterForeground:"#665c54",gutterBorder:"transparent"},Ky=t=>{var{theme:e="light",settings:i={},styles:o=[]}=t||{};return db({theme:e,settings:cb({},zy,i),styles:[{tag:El.keyword,color:"#9d0006"},{tag:[El.name,El.deleted,El.character,El.propertyName,El.macroName],color:"#427b58"},{tag:[El.variableName],color:"#076678"},{tag:[El.function(El.variableName)],color:"#79740e",fontStyle:"bold"},{tag:[El.labelName],color:"#3c3836"},{tag:[El.color,El.constant(El.name),El.standard(El.name)],color:"#8f3f71"},{tag:[El.definition(El.name),El.separator],color:"#3c3836"},{tag:[El.brace],color:"#3c3836"},{tag:[El.annotation],color:"#9d0006"},{tag:[El.number,El.changed,El.annotation,El.modifier,El.self,El.namespace],color:"#8f3f71"},{tag:[El.typeName,El.className],color:"#b57614"},{tag:[El.operator,El.operatorKeyword],color:"#9d0006"},{tag:[El.tagName],color:"#427b58",fontStyle:"bold"},{tag:[El.squareBracket],color:"#af3a03"},{tag:[El.angleBracket],color:"#076678"},{tag:[El.attributeName],color:"#427b58"},{tag:[El.regexp],color:"#427b58"},{tag:[El.quote],color:"#928374"},{tag:[El.string],color:"#3c3836"},{tag:El.link,color:"#7c6f64",textDecoration:"underline",textUnderlinePosition:"under"},{tag:[El.url,El.escape,El.special(El.string)],color:"#8f3f71"},{tag:[El.meta],color:"#b57614"},{tag:[El.comment],color:"#928374",fontStyle:"italic"},{tag:El.strong,fontWeight:"bold",color:"#af3a03"},{tag:El.emphasis,fontStyle:"italic",color:"#79740e"},{tag:El.strikethrough,textDecoration:"line-through"},{tag:El.heading,fontWeight:"bold",color:"#79740e"},{tag:[El.heading1,El.heading2],fontWeight:"bold",color:"#79740e"},{tag:[El.heading3,El.heading4],fontWeight:"bold",color:"#b57614"},{tag:[El.heading5,El.heading6],color:"#b57614"},{tag:[El.atom,El.bool,El.special(El.variableName)],color:"#8f3f71"},{tag:[El.processingInstruction,El.inserted],color:"#076678"},{tag:[El.contentSeparator],color:"#9d0006"},{tag:El.invalid,color:"#af3a03",borderBottom:"1px dotted #9d0006"},...o]})},_y=Ky(),$y="#221a0f",Uy="#d3af86",Gy="#84613daa",Jy="#d3af86",Xy="#5e452b52",Yy="#98676a",Qy="#dc3958",Zy="#7e602c",tw="#889b4a",ew="#f79a32",iw="#f06431",ow="#f06431",nw="#f79a32",rw="#a57a4c",sw="#8ab1b0",aw="#dc3958",lw="#7e602c",hw="#dc3958",cw={background:$y,foreground:Uy,caret:Jy,selection:Gy,selectionMatch:Gy,gutterBackground:$y,gutterForeground:Uy,lineHighlight:Xy},dw=[{tag:El.keyword,color:Yy},{tag:[El.name,El.deleted,El.character,El.macroName],color:Qy},{tag:[El.propertyName],color:Zy},{tag:[El.processingInstruction,El.string,El.inserted,El.special(El.string)],color:tw},{tag:[El.function(El.variableName),El.labelName],color:Zy},{tag:[El.color,El.constant(El.name),El.standard(El.name)],color:ew},{tag:[El.definition(El.name),El.separator],color:Qy},{tag:[El.className],color:ow},{tag:[El.number,El.changed,El.annotation,El.modifier,El.self,El.namespace],color:nw},{tag:[El.typeName],color:iw,fontStyle:iw},{tag:[El.operator,El.operatorKeyword],color:Yy},{tag:[El.url,El.escape,El.regexp,El.link],color:lw},{tag:[El.meta,El.comment],color:rw},{tag:El.tagName,color:hw},{tag:El.strong,fontWeight:"bold"},{tag:El.emphasis,fontStyle:"italic"},{tag:El.link,textDecoration:"underline"},{tag:El.heading,fontWeight:"bold",color:sw},{tag:[El.atom,El.bool,El.special(El.variableName)],color:Qy},{tag:El.invalid,color:aw},{tag:El.strikethrough,textDecoration:"line-through"}],fw=t=>{var{theme:e="dark",settings:i={},styles:o=[]}=t||{};return db({theme:e,settings:cb({},cw,i),styles:[...dw,...o]})},uw=fw(),gw={background:"#2e3235",foreground:"#bdbdbd",caret:"#a0a4ae",selection:"#d7d4f063",selectionMatch:"#d7d4f063",gutterBackground:"#2e3235",gutterForeground:"#999",gutterActiveForeground:"#4f5b66",lineHighlight:"#545b6130"},mw=gw,pw=[{tag:El.keyword,color:"#cf6edf"},{tag:[El.name,El.deleted,El.character,El.macroName],color:"#56c8d8"},{tag:[El.propertyName],color:"#facf4e"},{tag:[El.variableName],color:"#bdbdbd"},{tag:[El.function(El.variableName)],color:"#56c8d8"},{tag:[El.labelName],color:"#cf6edf"},{tag:[El.color,El.constant(El.name),El.standard(El.name)],color:"#facf4e"},{tag:[El.definition(El.name),El.separator],color:"#fa5788"},{tag:[El.brace],color:"#cf6edf"},{tag:[El.annotation],color:"#ff5f52"},{tag:[El.number,El.changed,El.annotation,El.modifier,El.self,El.namespace],color:"#ffad42"},{tag:[El.typeName,El.className],color:"#ffad42"},{tag:[El.operator,El.operatorKeyword],color:"#7186f0"},{tag:[El.tagName],color:"#99d066"},{tag:[El.squareBracket],color:"#ff5f52"},{tag:[El.angleBracket],color:"#606f7a"},{tag:[El.attributeName],color:"#bdbdbd"},{tag:[El.regexp],color:"#ff5f52"},{tag:[El.quote],color:"#6abf69"},{tag:[El.string],color:"#99d066"},{tag:El.link,color:"#56c8d8",textDecoration:"underline",textUnderlinePosition:"under"},{tag:[El.url,El.escape,El.special(El.string)],color:"#facf4e"},{tag:[El.meta],color:"#707d8b"},{tag:[El.comment],color:"#707d8b",fontStyle:"italic"},{tag:El.monospace,color:"#bdbdbd"},{tag:El.strong,fontWeight:"bold",color:"#ff5f52"},{tag:El.emphasis,fontStyle:"italic",color:"#99d066"},{tag:El.strikethrough,textDecoration:"line-through"},{tag:El.heading,fontWeight:"bold",color:"#facf4e"},{tag:El.heading1,fontWeight:"bold",color:"#facf4e"},{tag:[El.heading2,El.heading3,El.heading4],fontWeight:"bold",color:"#facf4e"},{tag:[El.heading5,El.heading6],color:"#facf4e"},{tag:[El.atom,El.bool,El.special(El.variableName)],color:"#56c8d8"},{tag:[El.processingInstruction,El.inserted],color:"#ff5f52"},{tag:[El.contentSeparator],color:"#56c8d8"},{tag:El.invalid,color:"#606f7a",borderBottom:"1px dotted #ff5f52"}],bw=t=>{var{theme:e="dark",settings:i={},styles:o=[]}=t||{};return db({theme:e,settings:cb({},gw,i),styles:[...pw,...o]})},vw=bw,yw=bw(),ww=bw(),xw={background:"#FAFAFA",foreground:"#90A4AE",caret:"#272727",selection:"#80CBC440",selectionMatch:"#80CBC440",gutterBackground:"#FAFAFA",gutterForeground:"#90A4AE",gutterBorder:"transparent",lineHighlight:"#CCD7DA50"},kw=[{tag:El.keyword,color:"#39ADB5"},{tag:[El.name,El.deleted,El.character,El.macroName],color:"#90A4AE"},{tag:[El.propertyName],color:"#6182B8"},{tag:[El.processingInstruction,El.string,El.inserted,El.special(El.string)],color:"#91B859"},{tag:[El.function(El.variableName),El.labelName],color:"#6182B8"},{tag:[El.color,El.constant(El.name),El.standard(El.name)],color:"#39ADB5"},{tag:[El.definition(El.name),El.separator],color:"#90A4AE"},{tag:[El.className],color:"#E2931D"},{tag:[El.number,El.changed,El.annotation,El.modifier,El.self,El.namespace],color:"#F76D47"},{tag:[El.typeName],color:"#E2931D",fontStyle:"#E2931D"},{tag:[El.operator,El.operatorKeyword],color:"#39ADB5"},{tag:[El.url,El.escape,El.regexp,El.link],color:"#91B859"},{tag:[El.meta,El.comment],color:"#90A4AE"},{tag:El.strong,fontWeight:"bold"},{tag:El.emphasis,fontStyle:"italic"},{tag:El.link,textDecoration:"underline"},{tag:El.heading,fontWeight:"bold",color:"#39ADB5"},{tag:[El.atom,El.bool,El.special(El.variableName)],color:"#90A4AE"},{tag:El.invalid,color:"#E5393570"},{tag:El.strikethrough,textDecoration:"line-through"}],Sw=t=>{var{theme:e="light",settings:i={},styles:o=[]}=t||{};return db({theme:e,settings:cb({},xw,i),styles:[...kw,...o]})},Cw=Sw(),Aw="#272822",Mw="#f8f8f2",Dw="#4a4a76",Nw="#F92672",Ow="#FD971F",Tw="#66D9EF",Bw="#E6DB74",Ew="#AE81FF",Lw="#66D9EF",Fw="#A6E22E",Pw="#AE81FF",Iw="#88846f",Rw="#A6E22E",jw="#F44747",Ww="#E6DB74",Hw="#F92672",Vw={background:Aw,foreground:Mw,caret:"#f8f8f0",selection:Dw,selectionMatch:Dw,gutterBackground:Aw,gutterForeground:Mw,lineHighlight:"#3e3d3257"},qw=[{tag:El.keyword,color:Nw},{tag:[El.name,El.deleted,El.character,El.macroName],color:Ow},{tag:[El.propertyName],color:Tw},{tag:[El.processingInstruction,El.string,El.inserted,El.special(El.string)],color:Bw},{tag:[El.function(El.variableName),El.labelName],color:Tw},{tag:[El.color,El.constant(El.name),El.standard(El.name)],color:Ew},{tag:[El.definition(El.name),El.separator],color:Ow},{tag:[El.className],color:Fw},{tag:[El.number,El.changed,El.annotation,El.modifier,El.self,El.namespace],color:Pw},{tag:[El.typeName],color:Lw,fontStyle:Lw},{tag:[El.operator,El.operatorKeyword],color:Nw},{tag:[El.url,El.escape,El.regexp,El.link],color:Ww},{tag:[El.meta,El.comment],color:Iw},{tag:El.tagName,color:Hw},{tag:El.strong,fontWeight:"bold"},{tag:El.emphasis,fontStyle:"italic"},{tag:El.link,textDecoration:"underline"},{tag:El.heading,fontWeight:"bold",color:Rw},{tag:[El.atom,El.bool,El.special(El.variableName)],color:Ow},{tag:El.invalid,color:jw},{tag:El.strikethrough,textDecoration:"line-through"}],zw=t=>{var{theme:e="dark",settings:i={},styles:o=[]}=t||{};return db({theme:e,settings:cb({},Vw,i),styles:[...qw,...o]})},Kw=zw(),_w="#1e1e1e",$w="#c5c8c6",Uw="#4747a1",Gw="#676867",Jw="#c7444a",Xw="#9872A2",Yw="#D08442",Qw="#8080FF",Zw="#9B0000",tx="#CE6700",ex="#6089B4",ix="#9A9B99",ox="#D0B344",nx="#FF0B00",rx="#D08442",sx="#6089B4",ax={background:_w,foreground:$w,caret:"#c07020",selection:Uw,selectionMatch:Uw,gutterBackground:_w,gutterForeground:$w,lineHighlight:"#30303078"},lx=[{tag:El.keyword,color:Gw},{tag:[El.name,El.deleted,El.character,El.macroName],color:Jw},{tag:[El.propertyName],color:Xw},{tag:[El.processingInstruction,El.string,El.inserted,El.special(El.string)],color:Yw},{tag:[El.function(El.variableName),El.labelName],color:Xw},{tag:[El.color,El.constant(El.name),El.standard(El.name)],color:Qw},{tag:[El.definition(El.name),El.separator],color:Jw},{tag:[El.className],color:tx},{tag:[El.number,El.changed,El.annotation,El.modifier,El.self,El.namespace],color:ex},{tag:[El.typeName],color:Zw,fontStyle:Zw},{tag:[El.operator,El.operatorKeyword],color:Gw},{tag:[El.url,El.escape,El.regexp,El.link],color:rx},{tag:[El.meta,El.comment],color:ix},{tag:El.tagName,color:sx},{tag:El.strong,fontWeight:"bold"},{tag:El.emphasis,fontStyle:"italic"},{tag:El.link,textDecoration:"underline"},{tag:El.heading,fontWeight:"bold",color:ox},{tag:[El.atom,El.bool,El.special(El.variableName)],color:Jw},{tag:El.invalid,color:nx},{tag:El.strikethrough,textDecoration:"line-through"}],hx=t=>{var{theme:e="dark",settings:i={},styles:o=[]}=t||{};return db({theme:e,settings:cb({},ax,i),styles:[...lx,...o]})},cx=hx(),dx={background:"#f2f1f8",foreground:"#0c006b",caret:"#5c49e9",selection:"#d5d1f2",selectionMatch:"#d5d1f2",gutterBackground:"#f2f1f8",gutterForeground:"#0c006b70",lineHighlight:"#16067911"},fx=[{tag:El.comment,color:"#9995b7"},{tag:El.keyword,color:"#ff5792",fontWeight:"bold"},{tag:[El.definitionKeyword,El.modifier],color:"#ff5792"},{tag:[El.className,El.tagName,El.definition(El.typeName)],color:"#0094f0"},{tag:[El.number,El.bool,El.null,El.special(El.brace)],color:"#5842ff"},{tag:[El.definition(El.propertyName),El.function(El.variableName)],color:"#0095a8"},{tag:El.typeName,color:"#b3694d"},{tag:[El.propertyName,El.variableName],color:"#fa8900"},{tag:El.operator,color:"#ff5792"},{tag:El.self,color:"#e64100"},{tag:[El.string,El.regexp],color:"#00b368"},{tag:[El.paren,El.bracket],color:"#0431fa"},{tag:El.labelName,color:"#00bdd6"},{tag:El.attributeName,color:"#e64100"},{tag:El.angleBracket,color:"#9995b7"}],ux=t=>{var{theme:e="light",settings:i={},styles:o=[]}=t||{};return db({theme:e,settings:cb({},dx,i),styles:[...fx,...o]})},gx=ux(),mx={background:"#2e3440",foreground:"#FFFFFF",caret:"#FFFFFF",selection:"#00000073",selectionMatch:"#00000073",gutterBackground:"#2e3440",gutterForeground:"#4c566a",gutterActiveForeground:"#d8dee9",lineHighlight:"#4c566a29"},px=[{tag:El.keyword,color:"#5e81ac"},{tag:[El.name,El.deleted,El.character,El.propertyName,El.macroName],color:"#88c0d0"},{tag:[El.variableName],color:"#8fbcbb"},{tag:[El.function(El.variableName)],color:"#8fbcbb"},{tag:[El.labelName],color:"#81a1c1"},{tag:[El.color,El.constant(El.name),El.standard(El.name)],color:"#5e81ac"},{tag:[El.definition(El.name),El.separator],color:"#a3be8c"},{tag:[El.brace],color:"#8fbcbb"},{tag:[El.annotation],color:"#d30102"},{tag:[El.number,El.changed,El.annotation,El.modifier,El.self,El.namespace],color:"#b48ead"},{tag:[El.typeName,El.className],color:"#ebcb8b"},{tag:[El.operator,El.operatorKeyword],color:"#a3be8c"},{tag:[El.tagName],color:"#b48ead"},{tag:[El.squareBracket],color:"#bf616a"},{tag:[El.angleBracket],color:"#d08770"},{tag:[El.attributeName],color:"#ebcb8b"},{tag:[El.regexp],color:"#5e81ac"},{tag:[El.quote],color:"#b48ead"},{tag:[El.string],color:"#a3be8c"},{tag:El.link,color:"#a3be8c",textDecoration:"underline",textUnderlinePosition:"under"},{tag:[El.url,El.escape,El.special(El.string)],color:"#8fbcbb"},{tag:[El.meta],color:"#88c0d0"},{tag:[El.monospace],color:"#d8dee9",fontStyle:"italic"},{tag:[El.comment],color:"#4c566a",fontStyle:"italic"},{tag:El.strong,fontWeight:"bold",color:"#5e81ac"},{tag:El.emphasis,fontStyle:"italic",color:"#5e81ac"},{tag:El.strikethrough,textDecoration:"line-through"},{tag:El.heading,fontWeight:"bold",color:"#5e81ac"},{tag:El.special(El.heading1),fontWeight:"bold",color:"#5e81ac"},{tag:El.heading1,fontWeight:"bold",color:"#5e81ac"},{tag:[El.heading2,El.heading3,El.heading4],fontWeight:"bold",color:"#5e81ac"},{tag:[El.heading5,El.heading6],color:"#5e81ac"},{tag:[El.atom,El.bool,El.special(El.variableName)],color:"#d08770"},{tag:[El.processingInstruction,El.inserted],color:"#8fbcbb"},{tag:[El.contentSeparator],color:"#ebcb8b"},{tag:El.invalid,color:"#434c5e",borderBottom:"1px dotted #d30102"}],bx=t=>{var{theme:e="dark",settings:i={},styles:o=[]}=t||{};return db({theme:e,settings:cb({},mx,i),styles:[...px,...o]})},vx=bx(),yx={background:"#272822",foreground:"#FFFFFF",caret:"#FFFFFF",selection:"#49483E",selectionMatch:"#49483E",gutterBackground:"#272822",gutterForeground:"#FFFFFF70",lineHighlight:"#0000003b"},wx=[{tag:[El.comment,El.documentMeta],color:"#8292a2"},{tag:[El.number,El.bool,El.null,El.atom],color:"#ae81ff"},{tag:[El.attributeValue,El.className,El.name],color:"#e6db74"},{tag:[El.propertyName,El.attributeName],color:"#a6e22e"},{tag:[El.variableName],color:"#9effff"},{tag:[El.squareBracket],color:"#bababa"},{tag:[El.string,El.special(El.brace)],color:"#e6db74"},{tag:[El.regexp,El.className,El.typeName,El.definition(El.typeName)],color:"#66d9ef"},{tag:[El.definition(El.variableName),El.definition(El.propertyName),El.function(El.variableName)],color:"#fd971f"},{tag:[El.keyword,El.definitionKeyword,El.modifier,El.tagName,El.angleBracket],color:"#f92672"}],xx=t=>{var{theme:e="dark",settings:i={},styles:o=[]}=t||{};return db({theme:e,settings:cb({},yx,i),styles:[...wx,...o]})},kx=xx(),Sx="#F5F5F5",Cx="#333333",Ax="#C9D0D9",Mx="#4B69C6",Dx="#7A3E9D",Nx="#AA3731",Ox="#448C27",Tx="#9C5D27",Bx="#7A3E9D",Ex="#AA3731",Lx="#9C5D27",Fx="#AAAAAA",Px="#AA3731",Ix="#cd3131",Rx="#4B69C6",jx="#4B69C6",Wx={background:Sx,foreground:Cx,caret:"#54494B",selection:Ax,selectionMatch:Ax,gutterBackground:Sx,gutterForeground:Cx,gutterBorder:"transparent",lineHighlight:"#79ff002b"},Hx=[{tag:El.keyword,color:Mx},{tag:[El.name,El.deleted,El.character,El.macroName],color:Dx},{tag:[El.propertyName],color:Nx},{tag:[El.processingInstruction,El.string,El.inserted,El.special(El.string)],color:Ox},{tag:[El.function(El.variableName),El.labelName],color:Nx},{tag:[El.color,El.constant(El.name),El.standard(El.name)],color:Tx},{tag:[El.definition(El.name),El.separator],color:Dx},{tag:[El.className],color:Ex},{tag:[El.number,El.changed,El.annotation,El.modifier,El.self,El.namespace],color:Lx},{tag:[El.typeName],color:Bx,fontStyle:Bx},{tag:[El.operator,El.operatorKeyword],color:Mx},{tag:[El.url,El.escape,El.regexp,El.link],color:Rx},{tag:[El.meta,El.comment],color:Fx},{tag:El.tagName,color:jx},{tag:El.strong,fontWeight:"bold"},{tag:El.emphasis,fontStyle:"italic"},{tag:El.link,textDecoration:"underline"},{tag:El.heading,fontWeight:"bold",color:Px},{tag:[El.atom,El.bool,El.special(El.variableName)],color:Dx},{tag:El.invalid,color:Ix},{tag:El.strikethrough,textDecoration:"line-through"}],Vx=t=>{var{theme:e="light",settings:i={},styles:o=[]}=t||{};return db({theme:e,settings:cb({},Wx,i),styles:[...Hx,...o]})},qx=Vx(),zx="#390000",Kx="#F8F8F8",_x="#750000",$x="#f12727ff",Ux="#edef7dff",Gx="#ffb454ff",Jx="#edef7dff",Xx="#ec0d1e",Yx="#9df39fff",Qx="#fec758ff",Zx="#994646ff",tk="#e7c0c0ff",ek="#fec758ff",ik="#ffffffff",ok="#edef7dff",nk="#aa5507ff",rk={background:zx,foreground:Kx,caret:"#970000",selection:_x,selectionMatch:_x,gutterBackground:zx,gutterForeground:Kx,lineHighlight:"#ff000033"},sk=[{tag:El.keyword,color:$x},{tag:[El.name,El.deleted,El.character,El.macroName],color:Ux},{tag:[El.propertyName],color:Gx},{tag:[El.processingInstruction,El.string,El.inserted,El.special(El.string)],color:Jx},{tag:[El.function(El.variableName),El.labelName],color:Gx},{tag:[El.color,El.constant(El.name),El.standard(El.name)],color:Xx},{tag:[El.definition(El.name),El.separator],color:Ux},{tag:[El.className],color:Qx},{tag:[El.number,El.changed,El.annotation,El.modifier,El.self,El.namespace],color:Zx},{tag:[El.typeName],color:Yx,fontStyle:Yx},{tag:[El.operator,El.operatorKeyword],color:$x},{tag:[El.url,El.escape,El.regexp,El.link],color:ok},{tag:[El.meta,El.comment],color:tk},{tag:El.tagName,color:nk},{tag:El.strong,fontWeight:"bold"},{tag:El.emphasis,fontStyle:"italic"},{tag:El.link,textDecoration:"underline"},{tag:El.heading,fontWeight:"bold",color:ek},{tag:[El.atom,El.bool,El.special(El.variableName)],color:Ux},{tag:El.invalid,color:ik},{tag:El.strikethrough,textDecoration:"line-through"}],ak=t=>{var{theme:e="dark",settings:i={},styles:o=[]}=t||{};return db({theme:e,settings:cb({},rk,i),styles:[...sk,...o]})},lk=ak(),hk="#002B36",ck="#839496",dk="#004454AA",fk="#859900",uk="#268BD2",gk="#268BD2",mk="#2AA198",pk="#CB4B16",bk="#859900",vk="#268BD2",yk="#D33682",wk="#586E75",xk="#268BD2",kk="#DC322F",Sk="#DC322F",Ck="#268BD2",Ak={background:hk,foreground:ck,caret:"#D30102",selection:dk,selectionMatch:dk,gutterBackground:hk,gutterForeground:ck,gutterBorder:"transparent",lineHighlight:"#00cafe11"},Mk=[{tag:El.keyword,color:fk},{tag:[El.name,El.deleted,El.character,El.macroName],color:uk},{tag:[El.propertyName],color:gk},{tag:[El.processingInstruction,El.string,El.inserted,El.special(El.string)],color:mk},{tag:[El.function(El.variableName),El.labelName],color:gk},{tag:[El.color,El.constant(El.name),El.standard(El.name)],color:pk},{tag:[El.definition(El.name),El.separator],color:uk},{tag:[El.className],color:vk},{tag:[El.number,El.changed,El.annotation,El.modifier,El.self,El.namespace],color:yk},{tag:[El.typeName],color:bk,fontStyle:bk},{tag:[El.operator,El.operatorKeyword],color:fk},{tag:[El.url,El.escape,El.regexp,El.link],color:Sk},{tag:[El.meta,El.comment],color:wk},{tag:El.tagName,color:Ck},{tag:El.strong,fontWeight:"bold"},{tag:El.emphasis,fontStyle:"italic"},{tag:El.link,textDecoration:"underline"},{tag:El.heading,fontWeight:"bold",color:xk},{tag:[El.atom,El.bool,El.special(El.variableName)],color:uk},{tag:El.invalid,color:kk},{tag:El.strikethrough,textDecoration:"line-through"}],Dk=t=>{var{theme:e="dark",settings:i={},styles:o=[]}=t||{};return db({theme:e,settings:cb({},Ak,i),styles:[...Mk,...o]})},Nk=Dk(),Ok="#FDF6E3",Tk="#657B83",Bk="#859900",Ek="#268BD2",Lk="#268BD2",Fk="#2AA198",Pk="#CB4B16",Ik="#859900",Rk="#268BD2",jk="#D33682",Wk="#93A1A1",Hk="#268BD2",Vk="#DC322F",qk="#DC322F",zk="#268BD2",Kk={background:Ok,foreground:Tk,caret:"#657B83",selection:"#EEE8D5",selectionMatch:"#EEE8D5",gutterBackground:Ok,gutterForeground:Tk,gutterBorder:"transparent",lineHighlight:"#3d392d11"},_k=[{tag:El.keyword,color:Bk},{tag:[El.name,El.deleted,El.character,El.macroName],color:Ek},{tag:[El.propertyName],color:Lk},{tag:[El.processingInstruction,El.string,El.inserted,El.special(El.string)],color:Fk},{tag:[El.function(El.variableName),El.labelName],color:Lk},{tag:[El.color,El.constant(El.name),El.standard(El.name)],color:Pk},{tag:[El.definition(El.name),El.separator],color:Ek},{tag:[El.className],color:Rk},{tag:[El.number,El.changed,El.annotation,El.modifier,El.self,El.namespace],color:jk},{tag:[El.typeName],color:Ik,fontStyle:Ik},{tag:[El.operator,El.operatorKeyword],color:Bk},{tag:[El.url,El.escape,El.regexp,El.link],color:qk},{tag:[El.meta,El.comment],color:Wk},{tag:El.tagName,color:zk},{tag:El.strong,fontWeight:"bold"},{tag:El.emphasis,fontStyle:"italic"},{tag:El.link,textDecoration:"underline"},{tag:El.heading,fontWeight:"bold",color:Hk},{tag:[El.atom,El.bool,El.special(El.variableName)],color:Ek},{tag:El.invalid,color:Vk},{tag:El.strikethrough,textDecoration:"line-through"}],$k=t=>{var{theme:e="light",settings:i={},styles:o=[]}=t||{};return db({theme:e,settings:cb({},Kk,i),styles:[..._k,...o]})},Uk=$k(),Gk={background:"#303841",foreground:"#FFFFFF",caret:"#FBAC52",selection:"#4C5964",selectionMatch:"#3A546E",gutterBackground:"#303841",gutterForeground:"#FFFFFF70",lineHighlight:"#00000059"},Jk=[{tag:[El.meta,El.comment],color:"#A2A9B5"},{tag:[El.attributeName,El.keyword],color:"#B78FBA"},{tag:El.function(El.variableName),color:"#5AB0B0"},{tag:[El.string,El.regexp,El.attributeValue],color:"#99C592"},{tag:El.operator,color:"#f47954"},{tag:[El.tagName,El.modifier],color:"#E35F63"},{tag:[El.number,El.definition(El.tagName),El.className,El.definition(El.variableName)],color:"#fbac52"},{tag:[El.atom,El.bool,El.special(El.variableName)],color:"#E35F63"},{tag:El.variableName,color:"#539ac4"},{tag:[El.propertyName,El.typeName],color:"#629ccd"},{tag:El.propertyName,color:"#36b7b5"}];function Xk(t){var{theme:e="dark",settings:i={},styles:o=[]}=t||{};return db({theme:e,settings:cb({},Gk,i),styles:[...Jk,...o]})}var Yk=Xk(),Qk={background:"#1a1b26",foreground:"#787c99",caret:"#c0caf5",selection:"#515c7e40",selectionMatch:"#16161e",gutterBackground:"#1a1b26",gutterForeground:"#787c99",gutterBorder:"transparent",lineHighlight:"#474b6611"},Zk=[{tag:El.keyword,color:"#bb9af7"},{tag:[El.name,El.deleted,El.character,El.macroName],color:"#c0caf5"},{tag:[El.propertyName],color:"#7aa2f7"},{tag:[El.processingInstruction,El.string,El.inserted,El.special(El.string)],color:"#9ece6a"},{tag:[El.function(El.variableName),El.labelName],color:"#7aa2f7"},{tag:[El.color,El.constant(El.name),El.standard(El.name)],color:"#bb9af7"},{tag:[El.definition(El.name),El.separator],color:"#c0caf5"},{tag:[El.className],color:"#c0caf5"},{tag:[El.number,El.changed,El.annotation,El.modifier,El.self,El.namespace],color:"#ff9e64"},{tag:[El.typeName],color:"#0db9d7"},{tag:[El.operator,El.operatorKeyword],color:"#bb9af7"},{tag:[El.url,El.escape,El.regexp,El.link],color:"#b4f9f8"},{tag:[El.meta,El.comment],color:"#444b6a"},{tag:El.strong,fontWeight:"bold"},{tag:El.emphasis,fontStyle:"italic"},{tag:El.link,textDecoration:"underline"},{tag:El.heading,fontWeight:"bold",color:"#89ddff"},{tag:[El.atom,El.bool,El.special(El.variableName)],color:"#c0caf5"},{tag:El.invalid,color:"#ff5370"},{tag:El.strikethrough,textDecoration:"line-through"}],tS=t=>{var{theme:e="dark",settings:i={},styles:o=[]}=t||{};return db({theme:e,settings:cb({},Qk,i),styles:[...Zk,...o]})},eS=tS(),iS={background:"#24283b",foreground:"#7982a9",caret:"#c0caf5",selection:"#6f7bb630",selectionMatch:"#343b5f",gutterBackground:"#24283b",gutterForeground:"#7982a9",gutterBorder:"transparent",lineHighlight:"#292e427a"},oS=[{tag:El.keyword,color:"#bb9af7"},{tag:[El.name,El.deleted,El.character,El.macroName],color:"#c0caf5"},{tag:[El.propertyName],color:"#7aa2f7"},{tag:[El.processingInstruction,El.string,El.inserted,El.special(El.string)],color:"#9ece6a"},{tag:[El.function(El.variableName),El.labelName],color:"#7aa2f7"},{tag:[El.color,El.constant(El.name),El.standard(El.name)],color:"#bb9af7"},{tag:[El.definition(El.name),El.separator],color:"#c0caf5"},{tag:[El.className],color:"#c0caf5"},{tag:[El.number,El.changed,El.annotation,El.modifier,El.self,El.namespace],color:"#ff9e64"},{tag:[El.typeName],color:"#2ac3de",fontStyle:"#2ac3de"},{tag:[El.operator,El.operatorKeyword],color:"#bb9af7"},{tag:[El.url,El.escape,El.regexp,El.link],color:"#b4f9f8"},{tag:[El.meta,El.comment],color:"#565f89"},{tag:El.strong,fontWeight:"bold"},{tag:El.emphasis,fontStyle:"italic"},{tag:El.link,textDecoration:"underline"},{tag:El.heading,fontWeight:"bold",color:"#89ddff"},{tag:[El.atom,El.bool,El.special(El.variableName)],color:"#c0caf5"},{tag:El.invalid,color:"#ff5370"},{tag:El.strikethrough,textDecoration:"line-through"}],nS=t=>{var{theme:e="dark",settings:i={},styles:o=[]}=t||{};return db({theme:e,settings:cb({},iS,i),styles:[...oS,...o]})},rS=nS(),sS={background:"#e1e2e7",foreground:"#3760bf",caret:"#3760bf",selection:"#99a7df",selectionMatch:"#99a7df",gutterBackground:"#e1e2e7",gutterForeground:"#3760bf",gutterBorder:"transparent",lineHighlight:"#5f5faf11"},aS=[{tag:El.keyword,color:"#007197"},{tag:[El.name,El.deleted,El.character,El.macroName],color:"#3760bf"},{tag:[El.propertyName],color:"#3760bf"},{tag:[El.processingInstruction,El.string,El.inserted,El.special(El.string)],color:"#587539"},{tag:[El.function(El.variableName),El.labelName],color:"#3760bf"},{tag:[El.color,El.constant(El.name),El.standard(El.name)],color:"#3760bf"},{tag:[El.definition(El.name),El.separator],color:"#3760bf"},{tag:[El.className],color:"#3760bf"},{tag:[El.number,El.changed,El.annotation,El.modifier,El.self,El.namespace],color:"#b15c00"},{tag:[El.typeName],color:"#007197",fontStyle:"#007197"},{tag:[El.operator,El.operatorKeyword],color:"#007197"},{tag:[El.url,El.escape,El.regexp,El.link],color:"#587539"},{tag:[El.meta,El.comment],color:"#848cb5"},{tag:El.strong,fontWeight:"bold"},{tag:El.emphasis,fontStyle:"italic"},{tag:El.link,textDecoration:"underline"},{tag:El.heading,fontWeight:"bold",color:"#b15c00"},{tag:[El.atom,El.bool,El.special(El.variableName)],color:"#3760bf"},{tag:El.invalid,color:"#f52a65"},{tag:El.strikethrough,textDecoration:"line-through"}],lS=t=>{var{theme:e="light",settings:i={},styles:o=[]}=t||{};return db({theme:e,settings:cb({},sS,i),styles:[...aS,...o]})},hS=lS(),cS="#002451",dS="#ffffff",fS="#003f8e",uS="#EBBBFF",gS="#FFC58F",mS="#BBDAFF",pS="#D1F1A9",bS="#FFC58F",vS="#FFEEAD",yS="#BBDAFF",wS="#FFC58F",xS="#7285B7",kS="#D1F1A9",SS="#a92049",CS="#D1F1A9",AS="#FF9DA4",MS={background:cS,foreground:dS,caret:"#ffffff",selection:fS,selectionMatch:fS,gutterBackground:cS,gutterForeground:dS,lineHighlight:"#00346e7a"},DS=[{tag:El.keyword,color:uS},{tag:[El.name,El.deleted,El.character,El.macroName],color:gS},{tag:[El.propertyName],color:mS},{tag:[El.processingInstruction,El.string,El.inserted,El.special(El.string)],color:pS},{tag:[El.function(El.variableName),El.labelName],color:mS},{tag:[El.color,El.constant(El.name),El.standard(El.name)],color:bS},{tag:[El.definition(El.name),El.separator],color:gS},{tag:[El.className],color:yS},{tag:[El.number,El.changed,El.annotation,El.modifier,El.self,El.namespace],color:wS},{tag:[El.typeName],color:vS,fontStyle:vS},{tag:[El.operator,El.operatorKeyword],color:uS},{tag:[El.url,El.escape,El.regexp,El.link],color:CS},{tag:[El.meta,El.comment],color:xS},{tag:El.tagName,color:AS},{tag:El.strong,fontWeight:"bold"},{tag:El.emphasis,fontStyle:"italic"},{tag:El.link,textDecoration:"underline"},{tag:El.heading,fontWeight:"bold",color:kS},{tag:[El.atom,El.bool,El.special(El.variableName)],color:gS},{tag:El.invalid,color:SS},{tag:El.strikethrough,textDecoration:"line-through"}],NS=t=>{var{theme:e="dark",settings:i={},styles:o=[]}=t||{};return db({theme:e,settings:cb({},MS,i),styles:[...DS,...o]})},OS=NS(),TS={background:"#ffffff",foreground:"#383a42",caret:"#000",selection:"#add6ff",selectionMatch:"#a8ac94",lineHighlight:"#f0f0f0",gutterBackground:"#fff",gutterForeground:"#237893",gutterActiveForeground:"#0b216f",fontFamily:'Menlo, Monaco, Consolas, "Andale Mono", "Ubuntu Mono", "Courier New", monospace'},BS=[{tag:[El.keyword,El.operatorKeyword,El.modifier,El.color,El.constant(El.name),El.standard(El.name),El.standard(El.tagName),El.special(El.brace),El.atom,El.bool,El.special(El.variableName)],color:"#0000ff"},{tag:[El.moduleKeyword,El.controlKeyword],color:"#af00db"},{tag:[El.name,El.deleted,El.character,El.macroName,El.propertyName,El.variableName,El.labelName,El.definition(El.name)],color:"#0070c1"},{tag:El.heading,fontWeight:"bold",color:"#0070c1"},{tag:[El.typeName,El.className,El.tagName,El.number,El.changed,El.annotation,El.self,El.namespace],color:"#267f99"},{tag:[El.function(El.variableName),El.function(El.propertyName)],color:"#795e26"},{tag:[El.number],color:"#098658"},{tag:[El.operator,El.punctuation,El.separator,El.url,El.escape,El.regexp],color:"#383a42"},{tag:[El.regexp],color:"#af00db"},{tag:[El.special(El.string),El.processingInstruction,El.string,El.inserted],color:"#a31515"},{tag:[El.angleBracket],color:"#383a42"},{tag:El.strong,fontWeight:"bold"},{tag:El.emphasis,fontStyle:"italic"},{tag:El.strikethrough,textDecoration:"line-through"},{tag:[El.meta,El.comment],color:"#008000"},{tag:El.link,color:"#4078f2",textDecoration:"underline"},{tag:El.invalid,color:"#e45649"}];function ES(t){var{theme:e="dark",settings:i={},styles:o=[]}=t||{};return db({theme:e,settings:cb({},TS,i),styles:[...BS,...o]})}var LS=ES(),FS={background:"#1e1e1e",foreground:"#9cdcfe",caret:"#c6c6c6",selection:"#6199ff2f",selectionMatch:"#72a1ff59",lineHighlight:"#ffffff0f",gutterBackground:"#1e1e1e",gutterForeground:"#838383",gutterActiveForeground:"#fff",fontFamily:'Menlo, Monaco, Consolas, "Andale Mono", "Ubuntu Mono", "Courier New", monospace'},PS=[{tag:[El.keyword,El.operatorKeyword,El.modifier,El.color,El.constant(El.name),El.standard(El.name),El.standard(El.tagName),El.special(El.brace),El.atom,El.bool,El.special(El.variableName)],color:"#569cd6"},{tag:[El.controlKeyword,El.moduleKeyword],color:"#c586c0"},{tag:[El.name,El.deleted,El.character,El.macroName,El.propertyName,El.variableName,El.labelName,El.definition(El.name)],color:"#9cdcfe"},{tag:El.heading,fontWeight:"bold",color:"#9cdcfe"},{tag:[El.typeName,El.className,El.tagName,El.number,El.changed,El.annotation,El.self,El.namespace],color:"#4ec9b0"},{tag:[El.function(El.variableName),El.function(El.propertyName)],color:"#dcdcaa"},{tag:[El.number],color:"#b5cea8"},{tag:[El.operator,El.punctuation,El.separator,El.url,El.escape,El.regexp],color:"#d4d4d4"},{tag:[El.regexp],color:"#d16969"},{tag:[El.special(El.string),El.processingInstruction,El.string,El.inserted],color:"#ce9178"},{tag:[El.angleBracket],color:"#808080"},{tag:El.strong,fontWeight:"bold"},{tag:El.emphasis,fontStyle:"italic"},{tag:El.strikethrough,textDecoration:"line-through"},{tag:[El.meta,El.comment],color:"#6a9955"},{tag:El.link,color:"#6a9955",textDecoration:"underline"},{tag:El.invalid,color:"#ff0000"}];function IS(t){var{theme:e="dark",settings:i={},styles:o=[]}=t||{};return db({theme:e,settings:cb({},FS,i),styles:[...PS,...o]})}var RS=IS(),jS="#000",WS="#fff",HS=null,VS=null,qS=null,zS="#a8a8b1",KS=null,_S=null,$S=null,US="#2e2e37",GS=null,JS=null,XS="#a8a8b1",YS=null,QS={background:jS,foreground:WS,caret:"#7d46fc",selection:"#7d46fc3f",selectionMatch:"#7d46fc7f",gutterBackground:jS,gutterForeground:WS,lineHighlight:"#00346eb0"},ZS=[{tag:El.keyword,color:HS,fontWeight:"bold"},{tag:[El.name,El.deleted,El.character,El.macroName],color:VS},{tag:[El.propertyName],color:qS},{tag:[El.processingInstruction,El.string,El.inserted,El.special(El.string)],color:zS},{tag:[El.function(El.variableName),El.labelName],color:qS},{tag:[El.color,El.constant(El.name),El.standard(El.name)],color:KS},{tag:[El.definition(El.name),El.separator],color:VS},{tag:[El.className],color:$S},{tag:[El.typeName],color:_S,fontStyle:_S},{tag:[El.url,El.escape,El.regexp,El.link],color:XS},{tag:[El.meta,El.comment],color:US},{tag:El.tagName,color:YS},{tag:El.strong,fontWeight:"bold"},{tag:El.emphasis,fontStyle:"italic"},{tag:El.link,textDecoration:"underline"},{tag:El.heading,fontWeight:"bold",color:GS},{tag:[El.atom,El.special(El.variableName)],color:VS},{tag:El.invalid,color:JS},{tag:El.strikethrough,textDecoration:"line-through"},{tag:[El.operatorKeyword,El.bool,El.null,El.variableName],color:KS},{tag:[El.operator],color:"#bb9af7"},{tag:[El.number],color:"#a8a8b1"},{tag:[El.bracket],color:"#bb9af7"}],tC=t=>{var{theme:e="dark",settings:i={},styles:o=[]}=t||{};return db({theme:e,settings:cb({},QS,i),styles:[...ZS,...o]})},eC=tC(),iC="#fff",oC="#000",nC=null,rC=null,sC=null,aC="#6b7a88",lC=null,hC=null,cC=null,dC="#bec9d3",fC=null,uC=null,gC="#6b7a88",mC=null,pC={background:iC,foreground:oC,caret:"#004bff",selection:"#0064ff26",selectionMatch:"#0064ff4c",gutterBackground:iC,gutterForeground:oC,lineHighlight:"#0064ff0c"},bC=[{tag:El.keyword,color:nC,fontWeight:"bold"},{tag:[El.name,El.deleted,El.character,El.macroName],color:rC},{tag:[El.propertyName],color:sC},{tag:[El.processingInstruction,El.string,El.inserted,El.special(El.string)],color:aC},{tag:[El.function(El.variableName),El.labelName],color:sC},{tag:[El.color,El.constant(El.name),El.standard(El.name)],color:lC},{tag:[El.definition(El.name),El.separator],color:rC},{tag:[El.className],color:cC},{tag:[El.typeName],color:hC,fontStyle:hC},{tag:[El.url,El.escape,El.regexp,El.link],color:gC},{tag:[El.meta,El.comment],color:dC},{tag:El.tagName,color:mC},{tag:El.strong,fontWeight:"bold"},{tag:El.emphasis,fontStyle:"italic"},{tag:El.link,textDecoration:"underline"},{tag:El.heading,fontWeight:"bold",color:fC},{tag:[El.atom,El.special(El.variableName)],color:rC},{tag:El.invalid,color:uC},{tag:El.strikethrough,textDecoration:"line-through"},{tag:[El.operatorKeyword,El.bool,El.null,El.variableName],color:lC},{tag:[El.operator],color:"#0431fa"},{tag:[El.number],color:"#a8a8b1"},{tag:[El.bracket],color:"#0431fa"}],vC=t=>{var{theme:e="light",settings:i={},styles:o=[]}=t||{};return db({theme:e,settings:cb({},pC,i),styles:[...bC,...o]})},yC=vC(),wC={background:"#fff",foreground:"#3D3D3D",selection:"#BBDFFF",selectionMatch:"#BBDFFF",gutterBackground:"#fff",gutterForeground:"#AFAFAF",lineHighlight:"#d5e6ff69"},xC=[{tag:[El.comment,El.quote],color:"#707F8D"},{tag:[El.typeName,El.typeOperator],color:"#aa0d91"},{tag:[El.keyword],color:"#aa0d91",fontWeight:"bold"},{tag:[El.string,El.meta],color:"#D23423"},{tag:[El.name],color:"#032f62"},{tag:[El.typeName],color:"#522BB2"},{tag:[El.variableName],color:"#23575C"},{tag:[El.definition(El.variableName)],color:"#327A9E"},{tag:[El.regexp,El.link],color:"#0e0eff"}];function kC(t){var{theme:e="light",settings:i={},styles:o=[]}=t||{};return db({theme:e,settings:cb({},wC,i),styles:[...xC,...o]})}var SC=kC(),CC={background:"#292A30",foreground:"#CECFD0",caret:"#fff",selection:"#727377",selectionMatch:"#727377",lineHighlight:"#ffffff0f"},AC=[{tag:[El.comment,El.quote],color:"#7F8C98"},{tag:[El.keyword],color:"#FF7AB2",fontWeight:"bold"},{tag:[El.string,El.meta],color:"#FF8170"},{tag:[El.typeName],color:"#DABAFF"},{tag:[El.definition(El.variableName)],color:"#6BDFFF"},{tag:[El.name],color:"#6BAA9F"},{tag:[El.variableName],color:"#ACF2E4"},{tag:[El.regexp,El.link],color:"#FF8170"}],MC=t=>{var{theme:e="dark",settings:i={},styles:o=[]}=t||{};return db({theme:e,settings:cb({},CC,i),styles:[...AC,...o]})},DC=MC(),NC=Object.freeze({__proto__:null,abcdef:mb,abcdefDarkStyle:ub,abcdefInit:gb,abyss:jb,abyssDarkStyle:Ib,abyssInit:Rb,androidstudio:qb,androidstudioDarkStyle:Hb,androidstudioInit:Vb,andromeda:dv,andromedaDarkStyle:hv,andromedaInit:cv,atomone:mv,atomoneDarkStyle:uv,atomoneInit:gv,aura:yv,auraDarkStyle:bv,auraInit:vv,basicDark:Sv,basicDarkInit:kv,basicDarkStyle:xv,basicLight:Dv,basicLightInit:Mv,basicLightStyle:Av,bbedit:Bv,bbeditInit:Tv,bbeditLightStyle:Ov,bespin:Pv,bespinDarkStyle:Lv,bespinInit:Fv,consoleDark:jv,consoleDarkInit:Rv,consoleLight:Vv,consoleLightInit:Hv,copilot:cy,copilotDarkStyle:ly,copilotInit:hy,darcula:gy,darculaDarkStyle:fy,darculaInit:uy,defaultSettingsAbcdef:fb,defaultSettingsAbyss:Pb,defaultSettingsAndroidstudio:Wb,defaultSettingsAndromeda:lv,defaultSettingsAtomone:fv,defaultSettingsAura:pv,defaultSettingsBasicDark:wv,defaultSettingsBasicLight:Cv,defaultSettingsBbedit:Nv,defaultSettingsBespin:Ev,defaultSettingsConsoleDark:Iv,defaultSettingsConsoleLight:Wv,defaultSettingsCopilot:ay,defaultSettingsDarcula:dy,defaultSettingsDracula:my,defaultSettingsDuotoneDark:Sy,defaultSettingsDuotoneLight:yy,defaultSettingsEclipse:Dy,defaultSettingsGithubDark:Py,defaultSettingsGithubLight:By,defaultSettingsGruvboxDark:Wy,defaultSettingsGruvboxLight:zy,defaultSettingsKimbie:cw,defaultSettingsMaterial:gw,defaultSettingsMaterialDark:mw,defaultSettingsMaterialLight:xw,defaultSettingsMonokai:Vw,defaultSettingsMonokaiDimmed:ax,defaultSettingsNoctisLilac:dx,defaultSettingsNord:mx,defaultSettingsOkaidia:yx,defaultSettingsQuietlight:Wx,defaultSettingsRed:rk,defaultSettingsSolarizedDark:Ak,defaultSettingsSolarizedLight:Kk,defaultSettingsSublime:Gk,defaultSettingsTokyoNight:Qk,defaultSettingsTokyoNightDay:sS,defaultSettingsTokyoNightStorm:iS,defaultSettingsTomorrowNightBlue:MS,defaultSettingsVscodeDark:FS,defaultSettingsVscodeLight:TS,defaultSettingsWhiteDark:QS,defaultSettingsWhiteLight:pC,defaultSettingsXcodeDark:CC,defaultSettingsXcodeLight:wC,douToneLightStyle:wy,dracula:vy,draculaDarkStyle:py,draculaInit:by,duotoneDark:My,duotoneDarkInit:Ay,duotoneDarkStyle:Cy,duotoneLight:ky,duotoneLightInit:xy,eclipse:Ty,eclipseInit:Oy,eclipseLightStyle:Ny,githubDark:jy,githubDarkInit:Ry,githubDarkStyle:Iy,githubLight:Fy,githubLightInit:Ly,githubLightStyle:Ey,gruvboxDark:qy,gruvboxDarkInit:Vy,gruvboxDarkStyle:Hy,gruvboxLight:_y,gruvboxLightInit:Ky,kimbie:uw,kimbieDarkStyle:dw,kimbieInit:fw,material:ww,materialDark:yw,materialDarkInit:vw,materialDarkStyle:pw,materialInit:bw,materialLight:Cw,materialLightInit:Sw,materialLightStyle:kw,monokai:Kw,monokaiDarkStyle:qw,monokaiDimmed:cx,monokaiDimmedDarkStyle:lx,monokaiDimmedInit:hx,monokaiInit:zw,noctisLilac:gx,noctisLilacInit:ux,noctisLilacLightStyle:fx,nord:vx,nordDarkStyle:px,nordInit:bx,okaidia:kx,okaidiaDarkStyle:wx,okaidiaInit:xx,quietlight:qx,quietlightInit:Vx,quietlightStyle:Hx,red:lk,redDarkStyle:sk,redInit:ak,solarizedDark:Nk,solarizedDarkInit:Dk,solarizedDarkStyle:Mk,solarizedLight:Uk,solarizedLightInit:$k,solarizedLightStyle:_k,sublime:Yk,sublimeDarkStyle:Jk,sublimeInit:Xk,tokyoNight:eS,tokyoNightDay:hS,tokyoNightDayInit:lS,tokyoNightDayStyle:aS,tokyoNightInit:tS,tokyoNightStorm:rS,tokyoNightStormInit:nS,tokyoNightStormStyle:oS,tokyoNightStyle:Zk,tomorrowNightBlue:OS,tomorrowNightBlueInit:NS,tomorrowNightBlueStyle:DS,vscodeDark:RS,vscodeDarkInit:IS,vscodeDarkStyle:PS,vscodeLight:LS,vscodeLightInit:ES,vscodeLightStyle:BS,whiteDark:eC,whiteDarkInit:tC,whiteDarkStyle:ZS,whiteLight:yC,whiteLightInit:vC,whiteLightStyle:bC,xcodeDark:DC,xcodeDarkInit:MC,xcodeDarkStyle:AC,xcodeLight:SC,xcodeLightInit:kC,xcodeLightStyle:xC});export{ei as $,Fl as A,wh as B,Gg as C,eh as D,er as E,Ul as F,bc as G,ga as H,Ca as I,Il as J,NC as K,Wl as L,Wp as M,za as N,Hp as O,_a as P,Ai as Q,vn as R,ii as S,ll as T,oi as U,mi as V,Is as W,jr as X,br as Y,to as Z,go as _,th as a,qd as a$,ua as a0,Ds as a1,as as a2,Ar as a3,Ir as a4,Mr as a5,Bs as a6,Cs as a7,Vs as a8,Rs as a9,A as aA,wt as aB,Y as aC,I as aD,l as aE,S as aF,Dt as aG,Tt as aH,Bt as aI,Mt as aJ,E as aK,ft as aL,dt as aM,z as aN,t as aO,ut as aP,y as aQ,x as aR,At as aS,g as aT,zt as aU,w as aV,td as aW,ed as aX,Mu as aY,Au as aZ,zd as a_,js as aa,zs as ab,As as ac,Xr as ad,sa as ae,Kr as af,fa as ag,ca as ah,Ss as ai,kr as aj,Xs as ak,Ys as al,ia as am,Xi as an,Ts as ao,ts as ap,ns as aq,Ns as ar,fr as as,Jr as at,Ps as au,bs as av,cs as aw,ht as ax,ct as ay,C as az,Yg as b,Qf as b$,Hd as b0,Vd as b1,Yf as b2,Xf as b3,Gd as b4,Ud as b5,_d as b6,$d as b7,gf as b8,uf as b9,fd as bA,ud as bB,Ld as bC,Iu as bD,Pu as bE,Fu as bF,zu as bG,Bu as bH,Nu as bI,Tu as bJ,Ou as bK,Wu as bL,hd as bM,ld as bN,Yc as bO,Qc as bP,Su as bQ,ku as bR,pd as bS,xd as bT,vd as bU,tu as bV,Df as bW,Mf as bX,Cf as bY,Af as bZ,Zf as b_,mf as ba,pf as bb,af as bc,vf as bd,bf as be,sf as bf,wf as bg,df as bh,cf as bi,Zd as bj,Qd as bk,of as bl,nf as bm,qu as bn,au as bo,lu as bp,hu as bq,du as br,fu as bs,Du as bt,mu as bu,pu as bv,uu as bw,gu as bx,bu as by,Hu as bz,vh as c,ic as c$,Ef as c0,Bf as c1,Of as c2,Tf as c3,eu as c4,_f as c5,Kf as c6,$f as c7,Uf as c8,Hf as c9,lh as cA,Mc as cB,Sc as cC,uh as cD,Kc as cE,pc as cF,Kh as cG,sc as cH,Vl as cI,Rh as cJ,Fh as cK,Mh as cL,Xh as cM,Vh as cN,Oh as cO,Ch as cP,Th as cQ,zl as cR,nh as cS,sh as cT,oc as cU,yh as cV,ah as cW,ih as cX,rh as cY,Zl as cZ,wc as c_,Jf as ca,Gf as cb,Wf as cc,xf as cd,zf as ce,qf as cf,iu as cg,Pf as ch,Ff as ci,If as cj,Rf as ck,ou as cl,vu as cm,Vu as cn,ju as co,Zc as cp,id as cq,Gc as cr,Xc as cs,Ru as ct,yu as cu,md as cv,wd as cw,bd as cx,_l as cy,Qh as cz,Xg as d,Kl as d0,ql as d1,Hh as d2,jh as d3,Ph as d4,Dh as d5,zp as d6,sb as d7,hb as d8,lb as d9,ab as da,Hl as e,xh as f,bh as g,mh as h,hh as i,kh as j,Xm as k,L as l,wa as m,ba as n,xa as o,Ua as p,Aa as q,qt as r,dl as s,El as t,J as u,hr as v,Ct as w,Rl as x,oh as y,Pl as z}; diff --git a/nicegui/elements/lib/codemirror/editor.js b/nicegui/elements/lib/codemirror/editor.js new file mode 100644 index 000000000..af73c5a56 --- /dev/null +++ b/nicegui/elements/lib/codemirror/editor.js @@ -0,0 +1 @@ +export{ax as Annotation,ay as AnnotationType,Q as BidiSpan,R as BlockInfo,S as BlockType,az as ChangeDesc,aA as ChangeSet,aB as CharCategory,aC as Compartment,U as Decoration,V as Direction,cy as DocInput,l as EditorSelection,w as EditorState,E as EditorView,aD as Facet,W as GutterMarker,cz as HighlightStyle,cA as IndentContext,L as LRLanguage,x as Language,D as LanguageDescription,a as LanguageSupport,aE as Line,aF as MapMode,X as MatchDecorator,F as ParseContext,u as Prec,aG as Range,aH as RangeSet,aI as RangeSetBuilder,aJ as RangeValue,Y as RectangleMarker,aK as SelectionRange,aL as StateEffect,aM as StateEffectType,aN as StateField,cB as StreamLanguage,cC as StringStream,aO as Text,aP as Transaction,cD as TreeIndentContext,Z as ViewPlugin,_ as ViewUpdate,$ as WidgetType,a0 as __test,M as basicSetup,cE as bidiIsolates,aW as blockComment,aX as blockUncomment,cF as bracketMatching,G as bracketMatchingHandle,a1 as closeHoverTooltips,cG as codeFolding,aQ as codePointAt,aR as codePointSize,d7 as color,aS as combineConfig,c as continuedIndent,aY as copyLineDown,aZ as copyLineUp,r as countColumn,a2 as crosshairCursor,a_ as cursorCharBackward,a$ as cursorCharForward,b0 as cursorCharLeft,b1 as cursorCharRight,b2 as cursorDocEnd,b3 as cursorDocStart,b4 as cursorGroupBackward,b5 as cursorGroupForward,b6 as cursorGroupLeft,b7 as cursorGroupRight,b8 as cursorLineBoundaryBackward,b9 as cursorLineBoundaryForward,ba as cursorLineBoundaryLeft,bb as cursorLineBoundaryRight,bc as cursorLineDown,bd as cursorLineEnd,be as cursorLineStart,bf as cursorLineUp,bg as cursorMatchingBracket,bh as cursorPageDown,bi as cursorPageUp,bj as cursorSubwordBackward,bk as cursorSubwordForward,bl as cursorSyntaxLeft,bm as cursorSyntaxRight,cH as defaultHighlightStyle,bn as defaultKeymap,z as defineLanguageFacet,bo as deleteCharBackward,bp as deleteCharBackwardStrict,bq as deleteCharForward,br as deleteGroupBackward,bs as deleteGroupForward,bt as deleteLine,bu as deleteLineBoundaryBackward,bv as deleteLineBoundaryForward,bw as deleteToLineEnd,bx as deleteToLineStart,by as deleteTrailingWhitespace,h as delimitedIndent,a3 as drawSelection,a4 as dropCursor,bz as emacsStyleKeymap,cI as ensureSyntaxTree,aT as findClusterBreak,aU as findColumn,g as flatIndent,cJ as foldAll,cK as foldCode,cL as foldEffect,cM as foldGutter,j as foldInside,cN as foldKeymap,f as foldNodeProp,B as foldService,cO as foldState,cP as foldable,cQ as foldedRanges,cR as forceParsing,aV as fromCodePoint,a5 as getDrawSelectionConfig,cS as getIndentUnit,cT as getIndentation,a6 as getPanel,a7 as getTooltip,a8 as gutter,a9 as gutterLineClass,aa as gutterWidgetClass,ab as gutters,ac as hasHoverTooltips,ad as highlightActiveLine,ae as highlightActiveLineGutter,af as highlightSpecialChars,ag as highlightTrailingWhitespace,ah as highlightWhitespace,cU as highlightingFor,bA as history,bB as historyField,bC as historyKeymap,ai as hoverTooltip,bD as indentLess,bE as indentMore,i as indentNodeProp,cV as indentOnInput,cW as indentRange,bF as indentSelection,cX as indentService,cY as indentString,y as indentUnit,bG as indentWithTab,bH as insertBlankLine,bI as insertNewline,bJ as insertNewlineAndIndent,bK as insertNewlineKeepIndent,bL as insertTab,bM as invertedEffects,bN as isolateHistory,v as keymap,cZ as language,A as languageDataProp,d6 as languages,aj as layer,bO as lineComment,ak as lineNumberMarkers,al as lineNumberWidgetMarker,am as lineNumbers,bP as lineUncomment,an as logException,c_ as matchBrackets,O as minimalSetup,bQ as moveLineDown,bR as moveLineUp,d8 as oneDark,d9 as oneDarkHighlightStyle,da as oneDarkTheme,ao as panels,ap as placeholder,aq as rectangularSelection,bS as redo,bT as redoDepth,bU as redoSelection,ar as repositionTooltips,as as runScopeHandlers,at as scrollPastEnd,bV as selectAll,bW as selectCharBackward,bX as selectCharForward,bY as selectCharLeft,bZ as selectCharRight,b_ as selectDocEnd,b$ as selectDocStart,c0 as selectGroupBackward,c1 as selectGroupForward,c2 as selectGroupLeft,c3 as selectGroupRight,c4 as selectLine,c5 as selectLineBoundaryBackward,c6 as selectLineBoundaryForward,c7 as selectLineBoundaryLeft,c8 as selectLineBoundaryRight,c9 as selectLineDown,ca as selectLineEnd,cb as selectLineStart,cc as selectLineUp,cd as selectMatchingBracket,ce as selectPageDown,cf as selectPageUp,cg as selectParentSyntax,ch as selectSubwordBackward,ci as selectSubwordForward,cj as selectSyntaxLeft,ck as selectSyntaxRight,au as showPanel,av as showTooltip,cl as simplifySelection,cm as splitLine,cn as standardKeymap,J as sublanguageProp,c$ as syntaxHighlighting,d0 as syntaxParserRunning,e as syntaxTree,d1 as syntaxTreeAvailable,co as temporarilySetTabFocusMode,K as themes,cp as toggleBlockComment,cq as toggleBlockCommentByLine,cr as toggleComment,d2 as toggleFold,cs as toggleLineComment,ct as toggleTabFocusMode,aw as tooltips,cu as transposeChars,cv as undo,cw as undoDepth,cx as undoSelection,d3 as unfoldAll,d4 as unfoldCode,d5 as unfoldEffect}from"./editor-DzvLhhiW.js"; diff --git a/nicegui/elements/lib/codemirror/eiffel-DR5c0IrL.js b/nicegui/elements/lib/codemirror/eiffel-DR5c0IrL.js new file mode 100644 index 000000000..d938b3689 --- /dev/null +++ b/nicegui/elements/lib/codemirror/eiffel-DR5c0IrL.js @@ -0,0 +1 @@ +function e(e){for(var t={},r=0,n=e.length;r>"]);function n(e,t){if(e.eatSpace())return null;var r,n,a=e.next();return'"'==a||"'"==a?function(e,t,r){return r.tokenize.push(e),e(t,r)}((r=a,n="string",function(e,t){for(var a,i=!1;null!=(a=e.next());){if(a==r&&!i){t.tokenize.pop();break}i=!i&&"%"==a}return n}),e,t):"-"==a&&e.eat("-")?(e.skipToEnd(),"comment"):":"==a&&e.eat("=")?"operator":/[0-9]/.test(a)?(e.eatWhile(/[xXbBCc0-9\.]/),e.eat(/[\?\!]/),"variable"):/[a-zA-Z_0-9]/.test(a)?(e.eatWhile(/[a-zA-Z_0-9]/),e.eat(/[\?\!]/),"variable"):/[=+\-\/*^%<>~]/.test(a)?(e.eatWhile(/[=+\-\/*^%<>~]/),"operator"):null}const a={name:"eiffel",startState:function(){return{tokenize:[n]}},token:function(e,n){var a=n.tokenize[n.tokenize.length-1](e,n);if("variable"==a){var i=e.current();a=t.propertyIsEnumerable(e.current())?"keyword":r.propertyIsEnumerable(e.current())?"operator":/^[A-Z][A-Z_0-9]*$/g.test(i)?"tag":/^0[bB][0-1]+$/g.test(i)||/^0[cC][0-7]+$/g.test(i)||/^0[xX][a-fA-F0-9]+$/g.test(i)||/^([0-9]+\.[0-9]*)|([0-9]*\.[0-9]+)$/g.test(i)||/^[0-9]+$/g.test(i)?"number":"variable"}return a},languageData:{commentTokens:{line:"--"}}};export{a as eiffel}; diff --git a/nicegui/elements/lib/codemirror/elm-D7xaZ7Da.js b/nicegui/elements/lib/codemirror/elm-D7xaZ7Da.js new file mode 100644 index 000000000..af701365d --- /dev/null +++ b/nicegui/elements/lib/codemirror/elm-D7xaZ7Da.js @@ -0,0 +1 @@ +function e(e,t,n){return t(n),n(e,t)}var t=/[a-z]/,n=/[A-Z]/,r=/[a-zA-Z0-9_]/,i=/[0-9]/,o=/[0-9A-Fa-f]/,a=/[-&*+.\\/<>=?^|:]/,u=/[(),[\]{}]/,f=/[ \v\f]/;function s(){return function(s,h){if(s.eatWhile(f))return null;var k=s.next();if(u.test(k))return"{"===k&&s.eat("-")?e(s,h,l(1)):"["===k&&s.match("glsl|")?e(s,h,x):"builtin";if("'"===k)return e(s,h,m);if('"'===k)return s.eat('"')?s.eat('"')?e(s,h,c):"string":e(s,h,p);if(n.test(k))return s.eatWhile(r),"type";if(t.test(k)){var g=1===s.pos;return s.eatWhile(r),g?"def":"variable"}if(i.test(k)){if("0"===k){if(s.eat(/[xX]/))return s.eatWhile(o),"number"}else s.eatWhile(i);return s.eat(".")&&s.eatWhile(i),s.eat(/[eE]/)&&(s.eat(/[-+]/),s.eatWhile(i)),"number"}return a.test(k)?"-"===k&&s.eat("-")?(s.skipToEnd(),"comment"):(s.eatWhile(a),"keyword"):"_"===k?"keyword":"error"}}function l(e){return 0==e?s():function(t,n){for(;!t.eol();){var r=t.next();if("{"==r&&t.eat("-"))++e;else if("-"==r&&t.eat("}")&&0===--e)return n(s()),"comment"}return n(l(e)),"comment"}}function c(e,t){for(;!e.eol();){if('"'===e.next()&&e.eat('"')&&e.eat('"'))return t(s()),"string"}return"string"}function p(e,t){for(;e.skipTo('\\"');)e.next(),e.next();return e.skipTo('"')?(e.next(),t(s()),"string"):(e.skipToEnd(),t(s()),"error")}function m(e,t){for(;e.skipTo("\\'");)e.next(),e.next();return e.skipTo("'")?(e.next(),t(s()),"string"):(e.skipToEnd(),t(s()),"error")}function x(e,t){for(;!e.eol();){if("|"===e.next()&&e.eat("]"))return t(s()),"string"}return"string"}var h={case:1,of:1,as:1,if:1,then:1,else:1,let:1,in:1,type:1,alias:1,module:1,where:1,import:1,exposing:1,port:1};const k={name:"elm",startState:function(){return{f:s()}},copyState:function(e){return{f:e.f}},token:function(e,t){var n=t.f(e,(function(e){t.f=e})),r=e.current();return h.hasOwnProperty(r)?"keyword":n},languageData:{commentTokens:{line:"--"}}};export{k as elm}; diff --git a/nicegui/elements/lib/codemirror/erlang-BuqgqA5h.js b/nicegui/elements/lib/codemirror/erlang-BuqgqA5h.js new file mode 100644 index 000000000..2b091d30b --- /dev/null +++ b/nicegui/elements/lib/codemirror/erlang-BuqgqA5h.js @@ -0,0 +1 @@ +var e=["-type","-spec","-export_type","-opaque"],t=["after","begin","catch","case","cond","end","fun","if","let","of","query","receive","try","when"],n=/[\->,;]/,r=["->",";",","],i=["and","andalso","band","bnot","bor","bsl","bsr","bxor","div","not","or","orelse","rem","xor"],o=/[\+\-\*\/<>=\|:!]/,a=["=","+","-","*","/",">",">=","<","=<","=:=","==","=/=","/=","||","<-","!"],c=/[<\(\[\{]/,u=["<<","(","[","{"],s=/[>\)\]\}]/,l=["}","]",")",">>"],_=["is_atom","is_binary","is_bitstring","is_boolean","is_float","is_function","is_integer","is_list","is_number","is_pid","is_port","is_record","is_reference","is_tuple","atom","binary","bitstring","boolean","function","integer","list","number","pid","port","record","reference","tuple"],f=["abs","adler32","adler32_combine","alive","apply","atom_to_binary","atom_to_list","binary_to_atom","binary_to_existing_atom","binary_to_list","binary_to_term","bit_size","bitstring_to_list","byte_size","check_process_code","contact_binary","crc32","crc32_combine","date","decode_packet","delete_module","disconnect_node","element","erase","exit","float","float_to_list","garbage_collect","get","get_keys","group_leader","halt","hd","integer_to_list","internal_bif","iolist_size","iolist_to_binary","is_alive","is_atom","is_binary","is_bitstring","is_boolean","is_float","is_function","is_integer","is_list","is_number","is_pid","is_port","is_process_alive","is_record","is_reference","is_tuple","length","link","list_to_atom","list_to_binary","list_to_bitstring","list_to_existing_atom","list_to_float","list_to_integer","list_to_pid","list_to_tuple","load_module","make_ref","module_loaded","monitor_node","node","node_link","node_unlink","nodes","notalive","now","open_port","pid_to_list","port_close","port_command","port_connect","port_control","pre_loaded","process_flag","process_info","processes","purge_module","put","register","registered","round","self","setelement","size","spawn","spawn_link","spawn_monitor","spawn_opt","split_binary","statistics","term_to_binary","time","throw","tl","trunc","tuple_size","tuple_to_list","unlink","unregister","whereis"],p=/[\w@Ø-ÞÀ-Öß-öø-ÿ]/,m=/[0-7]{1,3}|[bdefnrstv\\"']|\^[a-zA-Z]|x[0-9a-zA-Z]{2}|x{[0-9a-zA-Z]+}/;function d(e,t,n){if(1==e.current().length&&t.test(e.current())){for(e.backUp(1);t.test(e.peek());)if(e.next(),y(e.current(),n))return!0;e.backUp(e.current().length-1)}return!1}function b(e,t,n){if(1==e.current().length&&t.test(e.current())){for(;t.test(e.peek());)e.next();for(;01&&"fun"===e[t].type&&"fun"===e[t-1].token)return e.slice(0,t-1);switch(e[t].token){case"}":return z(e,{g:["{"]});case"]":return z(e,{i:["["]});case")":return z(e,{i:["("]});case">>":return z(e,{i:["<<"]});case"end":return z(e,{i:["begin","case","fun","if","receive","try"]});case",":return z(e,{e:["begin","try","when","->",",","(","[","{","<<"]});case"->":return z(e,{r:["when"],m:["try","if","case","receive"]});case";":return z(e,{E:["case","fun","if","receive","try","when"]});case"catch":return z(e,{e:["try"]});case"of":return z(e,{e:["case"]});case"after":return z(e,{e:["receive","try"]});default:return e}}(e.tokenStack))}(e,function(e,t){return w(t.current(),t.column(),t.indentation(),e)}(n,t)),n){case"atom":case"boolean":return"atom";case"attribute":return"attribute";case"builtin":return"builtin";case"close_paren":case"colon":case"dot":case"open_paren":case"separator":default:return null;case"comment":return"comment";case"error":return"error";case"fun":return"meta";case"function":return"tag";case"guard":return"property";case"keyword":return"keyword";case"macro":return"macroName";case"number":return"number";case"operator":return"operator";case"record":return"bracket";case"string":return"string";case"type":return"def";case"variable":return"variable"}}function w(e,t,n,r){return{token:e,column:t,indent:n,type:r}}function x(e){return w(e,0,0,e)}function S(e,t){var n=e.tokenStack.length,r=t||1;return!(n({tokenStack:[],in_string:!1,in_atom:!1}),token:function(h,w){if(w.in_string)return w.in_string=!k(h),v(w,h,"string");if(w.in_atom)return w.in_atom=!g(h),v(w,h,"atom");if(h.eatSpace())return v(w,h,"whitespace");if(!S(w)&&h.match(/-\s*[a-zß-öø-ÿ][\wØ-ÞÀ-Öß-öø-ÿ]*/))return y(h.current(),e)?v(w,h,"type"):v(w,h,"attribute");var x=h.next();if("%"==x)return h.skipToEnd(),v(w,h,"comment");if(":"==x)return v(w,h,"colon");if("?"==x)return h.eatSpace(),h.eatWhile(p),v(w,h,"macro");if("#"==x)return h.eatSpace(),h.eatWhile(p),v(w,h,"record");if("$"==x)return"\\"!=h.next()||h.match(m)?v(w,h,"number"):v(w,h,"error");if("."==x)return v(w,h,"dot");if("'"==x){if(!(w.in_atom=!g(h))){if(h.match(/\s*\/\s*[0-9]/,!1))return h.match(/\s*\/\s*[0-9]/,!0),v(w,h,"fun");if(h.match(/\s*\(/,!1)||h.match(/\s*:/,!1))return v(w,h,"function")}return v(w,h,"atom")}if('"'==x)return w.in_string=!k(h),v(w,h,"string");if(/[A-Z_Ø-ÞÀ-Ö]/.test(x))return h.eatWhile(p),v(w,h,"variable");if(/[a-z_ß-öø-ÿ]/.test(x)){if(h.eatWhile(p),h.match(/\s*\/\s*[0-9]/,!1))return h.match(/\s*\/\s*[0-9]/,!0),v(w,h,"fun");var z=h.current();return y(z,t)?v(w,h,"keyword"):y(z,i)?v(w,h,"operator"):h.match(/\s*\(/,!1)?!y(z,f)||":"==S(w).token&&"erlang"!=S(w,2).token?y(z,_)?v(w,h,"guard"):v(w,h,"function"):v(w,h,"builtin"):":"==function(e){var t=e.match(/^\s*([^\s%])/,!1);return t?t[1]:""}(h)?v(w,h,"erlang"==z?"builtin":"function"):y(z,["true","false"])?v(w,h,"boolean"):v(w,h,"atom")}var W=/[0-9]/;return W.test(x)?(h.eatWhile(W),h.eat("#")?h.eatWhile(/[0-9a-zA-Z]/)||h.backUp(1):h.eat(".")&&(h.eatWhile(W)?h.eat(/[eE]/)&&(h.eat(/[-+]/)?h.eatWhile(W)||h.backUp(2):h.eatWhile(W)||h.backUp(1)):h.backUp(1)),v(w,h,"number")):d(h,c,u)?v(w,h,"open_paren"):d(h,s,l)?v(w,h,"close_paren"):b(h,n,r)?v(w,h,"separator"):b(h,o,a)?v(w,h,"operator"):v(w,h,null)},indent:function(e,t,n){var r,i,o=A(i=t.match(/,|[a-z]+|\}|\]|\)|>>|\|+|\(/))&&0===i.index?i[0]:"",a=S(e,1),c=S(e,2);return e.in_string||e.in_atom?null:c?"when"==a.token?a.column+n.unit:"when"===o&&"function"===c.type?c.indent+n.unit:"("===o&&"fun"===a.token?a.column+3:"catch"===o&&(r=W(e,["try"]))?r.column:y(o,["end","after","of"])?(r=W(e,["begin","case","fun","if","receive","try"]))?r.column:null:y(o,l)?(r=W(e,u))?r.column:null:y(a.token,[",","|","||"])||y(o,[",","|","||"])?(r=function(e){var t=e.tokenStack.slice(0,-1),n=U(t,"type",["open_paren"]);return!!A(t[n])&&t[n]}(e))?r.column+r.token.length:n.unit:"->"==a.token?y(c.token,["receive","case","if","try"])?c.column+n.unit+n.unit:c.column+n.unit:y(a.token,u)?a.column+a.token.length:(r=function(e){var t=e.tokenStack,n=U(t,"type",["open_paren","separator","keyword"]),r=U(t,"type",["operator"]);return A(n)&&A(r)&&n|\.\*\?]+(?=\s|$)/,token:"builtin"},{regex:/[\)><]+\S+(?=\s|$)/,token:"builtin"},{regex:/(?:[\+\-\=\/\*<>])(?=\s|$)/,token:"keyword"},{regex:/\S+/,token:"variable"},{regex:/\s+|./,token:null}],vocabulary:[{regex:/;/,token:"keyword",next:"start"},{regex:/\S+/,token:"tag"},{regex:/\s+|./,token:null}],string:[{regex:/(?:[^\\]|\\.)*?"/,token:"string",next:"start"},{regex:/.*/,token:"string"}],string2:[{regex:/^;/,token:"keyword",next:"start"},{regex:/.*/,token:"string"}],string3:[{regex:/(?:[^\\]|\\.)*?"""/,token:"string",next:"start"},{regex:/.*/,token:"string"}],stack:[{regex:/\)/,token:"bracket",next:"start"},{regex:/--/,token:"bracket"},{regex:/\S+/,token:"meta"},{regex:/\s+|./,token:null}],languageData:{name:"factor",dontIndentStates:["start","vocabulary","string","string3","stack"],commentTokens:{line:"!"}}});export{t as factor}; diff --git a/nicegui/elements/lib/codemirror/fcl-CVaBTCzQ.js b/nicegui/elements/lib/codemirror/fcl-CVaBTCzQ.js new file mode 100644 index 000000000..9bd2d5f53 --- /dev/null +++ b/nicegui/elements/lib/codemirror/fcl-CVaBTCzQ.js @@ -0,0 +1 @@ +var e={term:!0,method:!0,accu:!0,rule:!0,then:!0,is:!0,and:!0,or:!0,if:!0,default:!0},n={var_input:!0,var_output:!0,fuzzify:!0,defuzzify:!0,function_block:!0,ruleblock:!0},t={end_ruleblock:!0,end_defuzzify:!0,end_function_block:!0,end_fuzzify:!0,end_var:!0},r={true:!0,false:!0,nan:!0,real:!0,min:!0,max:!0,cog:!0,cogs:!0},o=/[+\-*&^%:=<>!|\/]/;function i(i,u){var l=i.next();if(/[\d\.]/.test(l))return"."==l?i.match(/^[0-9]+([eE][\-+]?[0-9]+)?/):"0"==l?i.match(/^[xX][0-9a-fA-F]+/)||i.match(/^0[0-7]+/):i.match(/^[0-9]*\.?[0-9]*([eE][\-+]?[0-9]+)?/),"number";if("/"==l||"("==l){if(i.eat("*"))return u.tokenize=a,a(i,u);if(i.eat("/"))return i.skipToEnd(),"comment"}if(o.test(l))return i.eatWhile(o),"operator";i.eatWhile(/[\w\$_\xa1-\uffff]/);var c=i.current().toLowerCase();return e.propertyIsEnumerable(c)||n.propertyIsEnumerable(c)||t.propertyIsEnumerable(c)?"keyword":r.propertyIsEnumerable(c)?"atom":"variable"}function a(e,n){for(var t,r=!1;t=e.next();){if(("/"==t||")"==t)&&r){n.tokenize=i;break}r="*"==t}return"comment"}function u(e,n,t,r,o){this.indented=e,this.column=n,this.type=t,this.align=r,this.prev=o}const l={name:"fcl",startState:function(e){return{tokenize:null,context:new u(-e,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,r){var o=r.context;if(e.sol()&&(null==o.align&&(o.align=!1),r.indented=e.indentation(),r.startOfLine=!0),e.eatSpace())return null;var a=(r.tokenize||i)(e,r);if("comment"==a)return a;null==o.align&&(o.align=!0);var l=e.current().toLowerCase();return n.propertyIsEnumerable(l)?function(e,n,t){e.context=new u(e.indented,n,t,null,e.context)}(r,e.column(),"end_block"):t.propertyIsEnumerable(l)&&function(e){if(e.context.prev)"end_block"==e.context.type&&(e.indented=e.context.indented),e.context=e.context.prev}(r),r.startOfLine=!1,a},indent:function(e,n,r){if(e.tokenize!=i&&null!=e.tokenize)return 0;var o=e.context,a=t.propertyIsEnumerable(n);return o.align?o.column+(a?0:1):o.indented+(a?0:r.unit)},languageData:{commentTokens:{line:"//",block:{open:"(*",close:"*)"}}}};export{l as fcl}; diff --git a/nicegui/elements/lib/codemirror/forth-Dri_5nFc.js b/nicegui/elements/lib/codemirror/forth-Dri_5nFc.js new file mode 100644 index 000000000..d7696a42a --- /dev/null +++ b/nicegui/elements/lib/codemirror/forth-Dri_5nFc.js @@ -0,0 +1 @@ +function E(E){var t=[];return E.split(" ").forEach((function(E){t.push({name:E})})),t}var t=E("INVERT AND OR XOR 2* 2/ LSHIFT RSHIFT 0= = 0< < > U< MIN MAX 2DROP 2DUP 2OVER 2SWAP ?DUP DEPTH DROP DUP OVER ROT SWAP >R R> R@ + - 1+ 1- ABS NEGATE S>D * M* UM* FM/MOD SM/REM UM/MOD */ */MOD / /MOD MOD HERE , @ ! CELL+ CELLS C, C@ C! CHARS 2@ 2! ALIGN ALIGNED +! ALLOT CHAR [CHAR] [ ] BL FIND EXECUTE IMMEDIATE COUNT LITERAL STATE ; DOES> >BODY EVALUATE SOURCE >IN <# # #S #> HOLD SIGN BASE >NUMBER HEX DECIMAL FILL MOVE . CR EMIT SPACE SPACES TYPE U. .R U.R ACCEPT TRUE FALSE <> U> 0<> 0> NIP TUCK ROLL PICK 2>R 2R@ 2R> WITHIN UNUSED MARKER I J TO COMPILE, [COMPILE] SAVE-INPUT RESTORE-INPUT PAD ERASE 2LITERAL DNEGATE D- D+ D0< D0= D2* D2/ D< D= DMAX DMIN D>S DABS M+ M*/ D. D.R 2ROT DU< CATCH THROW FREE RESIZE ALLOCATE CS-PICK CS-ROLL GET-CURRENT SET-CURRENT FORTH-WORDLIST GET-ORDER SET-ORDER PREVIOUS SEARCH-WORDLIST WORDLIST FIND ALSO ONLY FORTH DEFINITIONS ORDER -TRAILING /STRING SEARCH COMPARE CMOVE CMOVE> BLANK SLITERAL"),R=E("IF ELSE THEN BEGIN WHILE REPEAT UNTIL RECURSE [IF] [ELSE] [THEN] ?DO DO LOOP +LOOP UNLOOP LEAVE EXIT AGAIN CASE OF ENDOF ENDCASE");function e(E,t){var R;for(R=E.length-1;R>=0;R--)if(E[R].name===t.toUpperCase())return E[R]}const O={name:"forth",startState:function(){return{state:"",base:10,coreWordList:t,immediateWordList:R,wordList:[]}},token:function(E,t){var R;if(E.eatSpace())return null;if(""===t.state){if(E.match(/^(\]|:NONAME)(\s|$)/i))return t.state=" compilation","builtin";if(R=E.match(/^(\:)\s+(\S+)(\s|$)+/))return t.wordList.push({name:R[2].toUpperCase()}),t.state=" compilation","def";if(R=E.match(/^(VARIABLE|2VARIABLE|CONSTANT|2CONSTANT|CREATE|POSTPONE|VALUE|WORD)\s+(\S+)(\s|$)+/i))return t.wordList.push({name:R[2].toUpperCase()}),"def";if(R=E.match(/^(\'|\[\'\])\s+(\S+)(\s|$)+/))return"builtin"}else{if(E.match(/^(\;|\[)(\s)/))return t.state="",E.backUp(1),"builtin";if(E.match(/^(\;|\[)($)/))return t.state="","builtin";if(E.match(/^(POSTPONE)\s+\S+(\s|$)+/))return"builtin"}return(R=E.match(/^(\S+)(\s+|$)/))?void 0!==e(t.wordList,R[1])?"variable":"\\"===R[1]?(E.skipToEnd(),"comment"):void 0!==e(t.coreWordList,R[1])?"builtin":void 0!==e(t.immediateWordList,R[1])?"keyword":"("===R[1]?(E.eatWhile((function(E){return")"!==E})),E.eat(")"),"comment"):".("===R[1]?(E.eatWhile((function(E){return")"!==E})),E.eat(")"),"string"):'S"'===R[1]||'."'===R[1]||'C"'===R[1]?(E.eatWhile((function(E){return'"'!==E})),E.eat('"'),"string"):R[1]-68719476735?"number":"atom":void 0}};export{O as forth}; diff --git a/nicegui/elements/lib/codemirror/fortran-DL7KluxX.js b/nicegui/elements/lib/codemirror/fortran-DL7KluxX.js new file mode 100644 index 000000000..4a29d782c --- /dev/null +++ b/nicegui/elements/lib/codemirror/fortran-DL7KluxX.js @@ -0,0 +1 @@ +function e(e){for(var t={},n=0;n\/\:]/,r=/^\.(and|or|eq|lt|le|gt|ge|ne|not|eqv|neqv)\./i;function o(e,o){if(e.match(r))return"operator";var c,l=e.next();if("!"==l)return e.skipToEnd(),"comment";if('"'==l||"'"==l)return o.tokenize=(c=l,function(e,t){for(var n,a=!1,i=!1;null!=(n=e.next());){if(n==c&&!a){i=!0;break}a=!a&&"\\"==n}return!i&&a||(t.tokenize=null),"string"}),o.tokenize(e,o);if(/[\[\]\(\),]/.test(l))return null;if(/\d/.test(l))return e.eatWhile(/[\w\.]/),"number";if(i.test(l))return e.eatWhile(i),"operator";e.eatWhile(/[\w\$_]/);var s=e.current().toLowerCase();return t.hasOwnProperty(s)?"keyword":n.hasOwnProperty(s)||a.hasOwnProperty(s)?"builtin":"variable"}const c={name:"fortran",startState:function(){return{tokenize:null}},token:function(e,t){if(e.eatSpace())return null;var n=(t.tokenize||o)(e,t);return n}};export{c as fortran}; diff --git a/nicegui/elements/lib/codemirror/gas-5kEe4nk0.js b/nicegui/elements/lib/codemirror/gas-5kEe4nk0.js new file mode 100644 index 000000000..7253ae609 --- /dev/null +++ b/nicegui/elements/lib/codemirror/gas-5kEe4nk0.js @@ -0,0 +1 @@ +function i(i){var l=[],e="",a={".abort":"builtin",".align":"builtin",".altmacro":"builtin",".ascii":"builtin",".asciz":"builtin",".balign":"builtin",".balignw":"builtin",".balignl":"builtin",".bundle_align_mode":"builtin",".bundle_lock":"builtin",".bundle_unlock":"builtin",".byte":"builtin",".cfi_startproc":"builtin",".comm":"builtin",".data":"builtin",".def":"builtin",".desc":"builtin",".dim":"builtin",".double":"builtin",".eject":"builtin",".else":"builtin",".elseif":"builtin",".end":"builtin",".endef":"builtin",".endfunc":"builtin",".endif":"builtin",".equ":"builtin",".equiv":"builtin",".eqv":"builtin",".err":"builtin",".error":"builtin",".exitm":"builtin",".extern":"builtin",".fail":"builtin",".file":"builtin",".fill":"builtin",".float":"builtin",".func":"builtin",".global":"builtin",".gnu_attribute":"builtin",".hidden":"builtin",".hword":"builtin",".ident":"builtin",".if":"builtin",".incbin":"builtin",".include":"builtin",".int":"builtin",".internal":"builtin",".irp":"builtin",".irpc":"builtin",".lcomm":"builtin",".lflags":"builtin",".line":"builtin",".linkonce":"builtin",".list":"builtin",".ln":"builtin",".loc":"builtin",".loc_mark_labels":"builtin",".local":"builtin",".long":"builtin",".macro":"builtin",".mri":"builtin",".noaltmacro":"builtin",".nolist":"builtin",".octa":"builtin",".offset":"builtin",".org":"builtin",".p2align":"builtin",".popsection":"builtin",".previous":"builtin",".print":"builtin",".protected":"builtin",".psize":"builtin",".purgem":"builtin",".pushsection":"builtin",".quad":"builtin",".reloc":"builtin",".rept":"builtin",".sbttl":"builtin",".scl":"builtin",".section":"builtin",".set":"builtin",".short":"builtin",".single":"builtin",".size":"builtin",".skip":"builtin",".sleb128":"builtin",".space":"builtin",".stab":"builtin",".string":"builtin",".struct":"builtin",".subsection":"builtin",".symver":"builtin",".tag":"builtin",".text":"builtin",".title":"builtin",".type":"builtin",".uleb128":"builtin",".val":"builtin",".version":"builtin",".vtable_entry":"builtin",".vtable_inherit":"builtin",".warning":"builtin",".weak":"builtin",".weakref":"builtin",".word":"builtin"},t={};function n(i,l){for(var e,a=!1;null!=(e=i.next());){if("/"===e&&a){l.tokenize=null;break}a="*"===e}return"comment"}return"x86"===i?(e="#",t.al="variable",t.ah="variable",t.ax="variable",t.eax="variableName.special",t.rax="variableName.special",t.bl="variable",t.bh="variable",t.bx="variable",t.ebx="variableName.special",t.rbx="variableName.special",t.cl="variable",t.ch="variable",t.cx="variable",t.ecx="variableName.special",t.rcx="variableName.special",t.dl="variable",t.dh="variable",t.dx="variable",t.edx="variableName.special",t.rdx="variableName.special",t.si="variable",t.esi="variableName.special",t.rsi="variableName.special",t.di="variable",t.edi="variableName.special",t.rdi="variableName.special",t.sp="variable",t.esp="variableName.special",t.rsp="variableName.special",t.bp="variable",t.ebp="variableName.special",t.rbp="variableName.special",t.ip="variable",t.eip="variableName.special",t.rip="variableName.special",t.cs="keyword",t.ds="keyword",t.ss="keyword",t.es="keyword",t.fs="keyword",t.gs="keyword"):"arm"!==i&&"armv6"!==i||(e="@",a.syntax="builtin",t.r0="variable",t.r1="variable",t.r2="variable",t.r3="variable",t.r4="variable",t.r5="variable",t.r6="variable",t.r7="variable",t.r8="variable",t.r9="variable",t.r10="variable",t.r11="variable",t.r12="variable",t.sp="variableName.special",t.lr="variableName.special",t.pc="variableName.special",t.r13=t.sp,t.r14=t.lr,t.r15=t.pc,l.push((function(i,l){if("#"===i)return l.eatWhile(/\w/),"number"}))),{name:"gas",startState:function(){return{tokenize:null}},token:function(i,b){if(b.tokenize)return b.tokenize(i,b);if(i.eatSpace())return null;var r,u,s=i.next();if("/"===s&&i.eat("*"))return b.tokenize=n,n(i,b);if(s===e)return i.skipToEnd(),"comment";if('"'===s)return function(i,l){for(var e,a=!1;null!=(e=i.next());){if(e===l&&!a)return!1;a=!a&&"\\"===e}}(i,'"'),"string";if("."===s)return i.eatWhile(/\w/),u=i.current().toLowerCase(),(r=a[u])||null;if("="===s)return i.eatWhile(/\w/),"tag";if("{"===s)return"bracket";if("}"===s)return"bracket";if(/\d/.test(s))return"0"===s&&i.eat("x")?(i.eatWhile(/[0-9a-fA-F]/),"number"):(i.eatWhile(/\d/),"number");if(/\w/.test(s))return i.eatWhile(/\w/),i.eat(":")?"tag":(u=i.current().toLowerCase(),(r=t[u])||null);for(var c=0;c]*>?/)?"variable":(a.next(),a.eatWhile(/[^@"<#]/),null)}};export{a as gherkin}; diff --git a/nicegui/elements/lib/codemirror/groovy-BfRUB6GO.js b/nicegui/elements/lib/codemirror/groovy-BfRUB6GO.js new file mode 100644 index 000000000..0226bd238 --- /dev/null +++ b/nicegui/elements/lib/codemirror/groovy-BfRUB6GO.js @@ -0,0 +1 @@ +function e(e){for(var t={},n=e.split(" "),r=0;r"))return t="->",null;if(/[+\-*&%=<>!?|\/~]/.test(s))return e.eatWhile(/[+\-*&%=<>|~]/),"operator";if(e.eatWhile(/[\w\$_]/),"@"==s)return e.eatWhile(/[\w\$_\.]/),"meta";if("."==o.lastToken)return"property";if(e.eat(":"))return t="proplabel","property";var u=e.current();return a.propertyIsEnumerable(u)?"atom":n.propertyIsEnumerable(u)?(r.propertyIsEnumerable(u)?t="newstatement":i.propertyIsEnumerable(u)&&(t="standalone"),"keyword"):"variable"}function l(e,t,n){var r=!1;if("/"!=e&&t.eat(e)){if(!t.eat(e))return"string";r=!0}function i(t,n){for(var i,a=!1,o=!r;null!=(i=t.next());){if(i==e&&!a){if(!r)break;if(t.match(e+e)){o=!0;break}}if('"'==e&&"$"==i&&!a){if(t.eat("{"))return n.tokenize.push(s()),"string";if(t.match(/^\w/,!1))return n.tokenize.push(u),"string"}a=!a&&"\\"==i}return o&&n.tokenize.pop(),"string"}return n.tokenize.push(i),i(t,n)}function s(){var e=1;function t(t,n){if("}"==t.peek()){if(0==--e)return n.tokenize.pop(),n.tokenize[n.tokenize.length-1](t,n)}else"{"==t.peek()&&e++;return o(t,n)}return t.isBase=!0,t}function u(e,t){var n=e.match(/^(\.|[\w\$_]+)/);return n?"."==n[0]?null:"variable":(t.tokenize.pop(),t.tokenize[t.tokenize.length-1](e,t))}function f(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize.pop();break}r="*"==n}return"comment"}function c(e,t){return!e||"operator"==e||"->"==e||/[\.\[\{\(,;:]/.test(e)||"newstatement"==e||"keyword"==e||"proplabel"==e||"standalone"==e&&!t}function p(e,t,n,r,i){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=i}function m(e,t,n){return e.context=new p(e.indented,t,n,null,e.context)}function k(e){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}o.isBase=!0;const d={name:"groovy",startState:function(e){return{tokenize:[o],context:new p(-e,0,"top",!1),indented:0,startOfLine:!0,lastToken:null}},token:function(e,n){var r=n.context;if(e.sol()&&(null==r.align&&(r.align=!1),n.indented=e.indentation(),n.startOfLine=!0,"statement"!=r.type||c(n.lastToken,!0)||(k(n),r=n.context)),e.eatSpace())return null;t=null;var i=n.tokenize[n.tokenize.length-1](e,n);if("comment"==i)return i;if(null==r.align&&(r.align=!0),";"!=t&&":"!=t||"statement"!=r.type)if("->"==t&&"statement"==r.type&&"}"==r.prev.type)k(n),n.context.align=!1;else if("{"==t)m(n,e.column(),"}");else if("["==t)m(n,e.column(),"]");else if("("==t)m(n,e.column(),")");else if("}"==t){for(;"statement"==r.type;)r=k(n);for("}"==r.type&&(r=k(n));"statement"==r.type;)r=k(n)}else t==r.type?k(n):("}"==r.type||"top"==r.type||"statement"==r.type&&"newstatement"==t)&&m(n,e.column(),"statement");else k(n);return n.startOfLine=!1,n.lastToken=t||i,i},indent:function(e,t,n){if(!e.tokenize[e.tokenize.length-1].isBase)return null;var r=t&&t.charAt(0),i=e.context;"statement"!=i.type||c(e.lastToken,!0)||(i=i.prev);var a=r==i.type;return"statement"==i.type?i.indented+("{"==r?0:n.unit):i.align?i.column+(a?0:1):i.indented+(a?0:n.unit)},languageData:{indentOnInput:/^\s*[{}]$/,commentTokens:{line:"//",block:{open:"/*",close:"*/"}},closeBrackets:{brackets:["(","[","{","'",'"',"'''",'"""']}}};export{d as groovy}; diff --git a/nicegui/elements/lib/codemirror/haskell-CmdsSjFB.js b/nicegui/elements/lib/codemirror/haskell-CmdsSjFB.js new file mode 100644 index 000000000..81896c429 --- /dev/null +++ b/nicegui/elements/lib/codemirror/haskell-CmdsSjFB.js @@ -0,0 +1 @@ +function e(e,t,r){return t(r),r(e,t)}var t=/[a-z_]/,r=/[A-Z]/,n=/\d/,a=/[0-9A-Fa-f]/,i=/[0-7]/,o=/[a-z_A-Z0-9'\xa1-\uffff]/,l=/[-!#$%&*+.\/<=>?@\\^|~:]/,u=/[(),;[\]`{}]/,s=/[ \t\v\f]/;function f(f,m){if(f.eatWhile(s))return null;var h=f.next();if(u.test(h)){if("{"==h&&f.eat("-")){var p="comment";return f.eat("#")&&(p="meta"),e(f,m,c(p,1))}return null}if("'"==h)return f.eat("\\"),f.next(),f.eat("'")?"string":"error";if('"'==h)return e(f,m,d);if(r.test(h))return f.eatWhile(o),f.eat(".")?"qualifier":"type";if(t.test(h))return f.eatWhile(o),"variable";if(n.test(h)){if("0"==h){if(f.eat(/[xX]/))return f.eatWhile(a),"integer";if(f.eat(/[oO]/))return f.eatWhile(i),"number"}f.eatWhile(n);p="number";return f.match(/^\.\d+/)&&(p="number"),f.eat(/[eE]/)&&(p="number",f.eat(/[-+]/),f.eatWhile(n)),p}return"."==h&&f.eat(".")?"keyword":l.test(h)?"-"==h&&f.eat(/-/)&&(f.eatWhile(/-/),!f.eat(l))?(f.skipToEnd(),"comment"):(f.eatWhile(l),"variable"):"error"}function c(e,t){return 0==t?f:function(r,n){for(var a=t;!r.eol();){var i=r.next();if("{"==i&&r.eat("-"))++a;else if("-"==i&&r.eat("}")&&0==--a)return n(f),e}return n(c(e,a)),e}}function d(e,t){for(;!e.eol();){var r=e.next();if('"'==r)return t(f),"string";if("\\"==r){if(e.eol()||e.eat(s))return t(m),"string";e.eat("&")||e.next()}}return t(f),"error"}function m(t,r){return t.eat("\\")?e(t,r,d):(t.next(),r(f),"error")}var h=function(){var e={};function t(t){return function(){for(var r=0;r","@","~","=>"),t("builtin")("!!","$!","$","&&","+","++","-",".","/","/=","<","<*","<=","<$>","<*>","=<<","==",">",">=",">>",">>=","^","^^","||","*","*>","**"),t("builtin")("Applicative","Bool","Bounded","Char","Double","EQ","Either","Enum","Eq","False","FilePath","Float","Floating","Fractional","Functor","GT","IO","IOError","Int","Integer","Integral","Just","LT","Left","Maybe","Monad","Nothing","Num","Ord","Ordering","Rational","Read","ReadS","Real","RealFloat","RealFrac","Right","Show","ShowS","String","True"),t("builtin")("abs","acos","acosh","all","and","any","appendFile","asTypeOf","asin","asinh","atan","atan2","atanh","break","catch","ceiling","compare","concat","concatMap","const","cos","cosh","curry","cycle","decodeFloat","div","divMod","drop","dropWhile","either","elem","encodeFloat","enumFrom","enumFromThen","enumFromThenTo","enumFromTo","error","even","exp","exponent","fail","filter","flip","floatDigits","floatRadix","floatRange","floor","fmap","foldl","foldl1","foldr","foldr1","fromEnum","fromInteger","fromIntegral","fromRational","fst","gcd","getChar","getContents","getLine","head","id","init","interact","ioError","isDenormalized","isIEEE","isInfinite","isNaN","isNegativeZero","iterate","last","lcm","length","lex","lines","log","logBase","lookup","map","mapM","mapM_","max","maxBound","maximum","maybe","min","minBound","minimum","mod","negate","not","notElem","null","odd","or","otherwise","pi","pred","print","product","properFraction","pure","putChar","putStr","putStrLn","quot","quotRem","read","readFile","readIO","readList","readLn","readParen","reads","readsPrec","realToFrac","recip","rem","repeat","replicate","return","reverse","round","scaleFloat","scanl","scanl1","scanr","scanr1","seq","sequence","sequence_","show","showChar","showList","showParen","showString","shows","showsPrec","significand","signum","sin","sinh","snd","span","splitAt","sqrt","subtract","succ","sum","tail","take","takeWhile","tan","tanh","toEnum","toInteger","toRational","truncate","uncurry","undefined","unlines","until","unwords","unzip","unzip3","userError","words","writeFile","zip","zip3","zipWith","zipWith3"),e}();const p={name:"haskell",startState:function(){return{f:f}},copyState:function(e){return{f:e.f}},token:function(e,t){var r=t.f(e,(function(e){t.f=e})),n=e.current();return h.hasOwnProperty(n)?h[n]:r},languageData:{commentTokens:{line:"--",block:{open:"{-",close:"-}"}}}};export{p as haskell}; diff --git a/nicegui/elements/lib/codemirror/haxe-75PMBtaN.js b/nicegui/elements/lib/codemirror/haxe-75PMBtaN.js new file mode 100644 index 000000000..b126c0d29 --- /dev/null +++ b/nicegui/elements/lib/codemirror/haxe-75PMBtaN.js @@ -0,0 +1 @@ +function t(t){return{type:t,style:"keyword"}}var e,n=t("keyword a"),r=t("keyword b"),a=t("keyword c"),i=t("operator"),o={type:"atom",style:"atom"},l={type:"attribute",style:"attribute"},u=t("typedef"),c={if:n,while:n,else:r,do:r,try:r,return:a,break:a,continue:a,new:a,throw:a,var:t("var"),inline:l,static:l,using:t("import"),public:l,private:l,cast:t("cast"),import:t("import"),macro:t("macro"),function:t("function"),catch:t("catch"),untyped:t("untyped"),callback:t("cb"),for:t("for"),switch:t("switch"),case:t("case"),default:t("default"),in:i,never:t("property_access"),trace:t("trace"),class:u,abstract:u,enum:u,interface:u,typedef:u,extends:u,implements:u,dynamic:u,true:o,false:o,null:o},f=/[+\-*&%=<>!?|]/;function s(t,e,n){return e.tokenize=n,n(t,e)}function d(t,e){for(var n,r=!1;null!=(n=t.next());){if(n==e&&!r)return!0;r=!r&&"\\"==n}}function p(t,n,r){return u=t,e=r,n}function m(t,e){var n=t.next();if('"'==n||"'"==n)return s(t,e,(r=n,function(t,e){return d(t,r)&&(e.tokenize=m),p("string","string")}));if(/[\[\]{}\(\),;\:\.]/.test(n))return p(n);if("0"==n&&t.eat(/x/i))return t.eatWhile(/[\da-f]/i),p("number","number");if(/\d/.test(n)||"-"==n&&t.eat(/\d/))return t.match(/^\d*(?:\.\d*(?!\.))?(?:[eE][+\-]?\d+)?/),p("number","number");if(e.reAllowed&&"~"==n&&t.eat(/\//))return d(t,"/"),t.eatWhile(/[gimsu]/),p("regexp","string.special");if("/"==n)return t.eat("*")?s(t,e,v):t.eat("/")?(t.skipToEnd(),p("comment","comment")):(t.eatWhile(f),p("operator",null,t.current()));if("#"==n)return t.skipToEnd(),p("conditional","meta");if("@"==n)return t.eat(/:/),t.eatWhile(/[\w_]/),p("metadata","meta");if(f.test(n))return t.eatWhile(f),p("operator",null,t.current());if(/[A-Z]/.test(n))return t.eatWhile(/[\w_<>]/),p("type","type",a=t.current());t.eatWhile(/[\w_]/);var r,a=t.current(),i=c.propertyIsEnumerable(a)&&c[a];return i&&e.kwAllowed?p(i.type,i.style,a):p("variable","variable",a)}function v(t,e){for(var n,r=!1;n=t.next();){if("/"==n&&r){e.tokenize=m;break}r="*"==n}return p("comment","comment")}var y={atom:!0,number:!0,variable:!0,string:!0,regexp:!0};function b(t,e,n,r,a,i){this.indented=t,this.column=e,this.type=n,this.prev=a,this.info=i,null!=r&&(this.align=r)}function h(t,e){for(var n=t.localVars;n;n=n.next)if(n.name==e)return!0}function k(t,e){if(/[a-z]/.test(e.charAt(0)))return!1;for(var n=t.importedtypes.length,r=0;r=0;t--)w.cc.push(arguments[t])}function A(){return g.apply(null,arguments),!0}function V(t,e){for(var n=e;n;n=n.next)if(n.name==t)return!0;return!1}function S(t){var e=w.state;if(e.context){if(w.marked="def",V(t,e.localVars))return;e.localVars={name:t,next:e.localVars}}else if(e.globalVars){if(V(t,e.globalVars))return;e.globalVars={name:t,next:e.globalVars}}}var W={name:"this",next:null};function z(){w.state.context||(w.state.localVars=W),w.state.context={prev:w.state.context,vars:w.state.localVars}}function T(){w.state.localVars=w.state.context.vars,w.state.context=w.state.context.prev}function E(t,e){var n=function(){var n=w.state;n.lexical=new b(n.indented,w.stream.column(),t,null,n.lexical,e)};return n.lex=!0,n}function D(){var t=w.state;t.lexical.prev&&(")"==t.lexical.type&&(t.indented=t.lexical.indented),t.lexical=t.lexical.prev)}function O(t){return function e(n){return n==t?A():";"==t?g():A(e)}}function Z(t){return"@"==t?A($):"var"==t?A(E("vardef"),K,O(";"),D):"keyword a"==t?A(E("form"),P,Z,D):"keyword b"==t?A(E("form"),Z,D):"{"==t?A(E("}"),z,J,D,T):";"==t?A():"attribute"==t?A(N):"function"==t?A(R):"for"==t?A(E("form"),O("("),E(")"),M,O(")"),D,Z,D):"variable"==t?A(E("stat"),q):"switch"==t?A(E("form"),P,E("}","switch"),O("{"),J,D,D):"case"==t?A(P,O(":")):"default"==t?A(O(":")):"catch"==t?A(E("form"),z,O("("),tt,O(")"),Z,D,T):"import"==t?A(F,O(";")):"typedef"==t?A(j):g(E("stat"),P,O(";"),D)}function P(t){return y.hasOwnProperty(t)||"type"==t?A(I):"function"==t?A(R):"keyword c"==t?A(_):"("==t?A(E(")"),_,O(")"),D,I):"operator"==t?A(P):"["==t?A(E("]"),H(_,"]"),D,I):"{"==t?A(E("}"),H(G,"}"),D,I):A()}function _(t){return t.match(/[;\}\)\],]/)?g():g(P)}function I(t,e){return"operator"==t&&/\+\+|--/.test(e)?A(I):"operator"==t||":"==t?A(P):";"!=t?"("==t?A(E(")"),H(P,")"),D,I):"."==t?A(C,I):"["==t?A(E("]"),P,O("]"),D,I):void 0:void 0}function N(t){return"attribute"==t?A(N):"function"==t?A(R):"var"==t?A(K):void 0}function $(t){return":"==t||"variable"==t?A($):"("==t?A(E(")"),H(B,")"),D,Z):void 0}function B(t){if("variable"==t)return A()}function F(t,e){return"variable"==t&&/[A-Z]/.test(e.charAt(0))?(x(e),A()):"variable"==t||"property"==t||"."==t||"*"==e?A(F):void 0}function j(t,e){return"variable"==t&&/[A-Z]/.test(e.charAt(0))?(x(e),A()):"type"==t&&/[A-Z]/.test(e.charAt(0))?A():void 0}function q(t){return":"==t?A(D,Z):g(I,O(";"),D)}function C(t){if("variable"==t)return w.marked="property",A()}function G(t){if("variable"==t&&(w.marked="property"),y.hasOwnProperty(t))return A(O(":"),P)}function H(t,e){function n(r){return","==r?A(t,n):r==e?A():A(O(e))}return function(r){return r==e?A():g(t,n)}}function J(t){return"}"==t?A():g(Z,J)}function K(t,e){return"variable"==t?(S(e),A(U,L)):A()}function L(t,e){return"="==e?A(P,L):","==t?A(K):void 0}function M(t,e){return"variable"==t?(S(e),A(Q,P)):g()}function Q(t,e){if("in"==e)return A()}function R(t,e){return"variable"==t||"type"==t?(S(e),A(R)):"new"==e?A(R):"("==t?A(E(")"),z,H(tt,")"),D,U,Z,T):void 0}function U(t){if(":"==t)return A(X)}function X(t){return"type"==t||"variable"==t?A():"{"==t?A(E("}"),H(Y,"}"),D):void 0}function Y(t){if("variable"==t)return A(U)}function tt(t,e){if("variable"==t)return S(e),A(U)}T.lex=!0,D.lex=!0;const et={name:"haxe",startState:function(t){return{tokenize:m,reAllowed:!0,kwAllowed:!0,cc:[],lexical:new b(-t,0,"block",!1),importedtypes:["Int","Float","String","Void","Std","Bool","Dynamic","Array"],context:null,indented:0}},token:function(t,n){if(t.sol()&&(n.lexical.hasOwnProperty("align")||(n.lexical.align=!1),n.indented=t.indentation()),t.eatSpace())return null;var r=n.tokenize(t,n);return"comment"==u?r:(n.reAllowed=!("operator"!=u&&"keyword c"!=u&&!u.match(/^[\[{}\(,;:]$/)),n.kwAllowed="."!=u,function(t,e,n,r,a){var i=t.cc;for(w.state=t,w.stream=a,w.marked=null,w.cc=i,t.lexical.hasOwnProperty("align")||(t.lexical.align=!0);;)if((i.length?i.pop():Z)(n,r)){for(;i.length&&i[i.length-1].lex;)i.pop()();return w.marked?w.marked:"variable"==n&&h(t,r)?"variableName.local":"variable"==n&&k(t,r)?"variableName.special":e}}(n,r,u,e,t))},indent:function(t,e,n){if(t.tokenize!=m)return 0;var r=e&&e.charAt(0),a=t.lexical;"stat"==a.type&&"}"==r&&(a=a.prev);var i=a.type,o=r==i;return"vardef"==i?a.indented+4:"form"==i&&"{"==r?a.indented:"stat"==i||"form"==i?a.indented+n.unit:"switch"!=a.info||o?a.align?a.column+(o?0:1):a.indented+(o?0:n.unit):a.indented+(/^(?:case|default)\b/.test(e)?n.unit:2*n.unit)},languageData:{indentOnInput:/^\s*[{}]$/,commentTokens:{line:"//",block:{open:"/*",close:"*/"}}}},nt={name:"hxml",startState:function(){return{define:!1,inString:!1}},token:function(t,e){var n=t.peek(),r=t.sol();if("#"==n)return t.skipToEnd(),"comment";if(r&&"-"==n){var a="variable-2";return t.eat(/-/),"-"==t.peek()&&(t.eat(/-/),a="keyword a"),"D"==t.peek()&&(t.eat(/[D]/),a="keyword c",e.define=!0),t.eatWhile(/[A-Z]/i),a}n=t.peek();return 0==e.inString&&"'"==n&&(e.inString=!0,t.next()),1==e.inString?(t.skipTo("'")||t.skipToEnd(),"'"==t.peek()&&(t.next(),e.inString=!1),"string"):(t.next(),null)},languageData:{commentTokens:{line:"#"}}};export{et as haxe,nt as hxml}; diff --git a/nicegui/elements/lib/codemirror/http-BKJkqRj4.js b/nicegui/elements/lib/codemirror/http-BKJkqRj4.js new file mode 100644 index 000000000..4f6d04e8c --- /dev/null +++ b/nicegui/elements/lib/codemirror/http-BKJkqRj4.js @@ -0,0 +1 @@ +function r(r,n){return r.skipToEnd(),n.cur=o,"error"}function n(n,u){return n.match(/^HTTP\/\d\.\d/)?(u.cur=t,"keyword"):n.match(/^[A-Z]+/)&&/[ \t]/.test(n.peek())?(u.cur=e,"keyword"):r(n,u)}function t(n,t){var e=n.match(/^\d+/);if(!e)return r(n,t);t.cur=u;var c=Number(e[0]);return c>=100&&c<400?"atom":"error"}function u(r,n){return r.skipToEnd(),n.cur=o,null}function e(r,n){return r.eatWhile(/\S/),n.cur=c,"string.special"}function c(n,t){return n.match(/^HTTP\/\d\.\d$/)?(t.cur=o,"keyword"):r(n,t)}function o(r){return r.sol()&&!r.eat(/[ \t]/)?r.match(/^.*?:/)?"atom":(r.skipToEnd(),"error"):(r.skipToEnd(),"string")}function i(r){return r.skipToEnd(),null}const a={name:"http",token:function(r,n){var t=n.cur;return t!=o&&t!=i&&r.eatSpace()?null:t(r,n)},blankLine:function(r){r.cur=i},startState:function(){return{cur:n}}};export{a as http}; diff --git a/nicegui/elements/lib/codemirror/idl-pcmmZuaN.js b/nicegui/elements/lib/codemirror/idl-pcmmZuaN.js new file mode 100644 index 000000000..7112b2986 --- /dev/null +++ b/nicegui/elements/lib/codemirror/idl-pcmmZuaN.js @@ -0,0 +1 @@ +function e(e){return new RegExp("^(("+e.join(")|(")+"))\\b","i")}var t=["a_correlate","abs","acos","adapt_hist_equal","alog","alog2","alog10","amoeba","annotate","app_user_dir","app_user_dir_query","arg_present","array_equal","array_indices","arrow","ascii_template","asin","assoc","atan","axis","axis","bandpass_filter","bandreject_filter","barplot","bar_plot","beseli","beselj","beselk","besely","beta","biginteger","bilinear","bin_date","binary_template","bindgen","binomial","bit_ffs","bit_population","blas_axpy","blk_con","boolarr","boolean","boxplot","box_cursor","breakpoint","broyden","bubbleplot","butterworth","bytarr","byte","byteorder","bytscl","c_correlate","calendar","caldat","call_external","call_function","call_method","call_procedure","canny","catch","cd","cdf","ceil","chebyshev","check_math","chisqr_cvf","chisqr_pdf","choldc","cholsol","cindgen","cir_3pnt","clipboard","close","clust_wts","cluster","cluster_tree","cmyk_convert","code_coverage","color_convert","color_exchange","color_quan","color_range_map","colorbar","colorize_sample","colormap_applicable","colormap_gradient","colormap_rotation","colortable","comfit","command_line_args","common","compile_opt","complex","complexarr","complexround","compute_mesh_normals","cond","congrid","conj","constrained_min","contour","contour","convert_coord","convol","convol_fft","coord2to3","copy_lun","correlate","cos","cosh","cpu","cramer","createboxplotdata","create_cursor","create_struct","create_view","crossp","crvlength","ct_luminance","cti_test","cursor","curvefit","cv_coord","cvttobm","cw_animate","cw_animate_getp","cw_animate_load","cw_animate_run","cw_arcball","cw_bgroup","cw_clr_index","cw_colorsel","cw_defroi","cw_field","cw_filesel","cw_form","cw_fslider","cw_light_editor","cw_light_editor_get","cw_light_editor_set","cw_orient","cw_palette_editor","cw_palette_editor_get","cw_palette_editor_set","cw_pdmenu","cw_rgbslider","cw_tmpl","cw_zoom","db_exists","dblarr","dcindgen","dcomplex","dcomplexarr","define_key","define_msgblk","define_msgblk_from_file","defroi","defsysv","delvar","dendro_plot","dendrogram","deriv","derivsig","determ","device","dfpmin","diag_matrix","dialog_dbconnect","dialog_message","dialog_pickfile","dialog_printersetup","dialog_printjob","dialog_read_image","dialog_write_image","dictionary","digital_filter","dilate","dindgen","dissolve","dist","distance_measure","dlm_load","dlm_register","doc_library","double","draw_roi","edge_dog","efont","eigenql","eigenvec","ellipse","elmhes","emboss","empty","enable_sysrtn","eof","eos","erase","erf","erfc","erfcx","erode","errorplot","errplot","estimator_filter","execute","exit","exp","expand","expand_path","expint","extract","extract_slice","f_cvf","f_pdf","factorial","fft","file_basename","file_chmod","file_copy","file_delete","file_dirname","file_expand_path","file_gunzip","file_gzip","file_info","file_lines","file_link","file_mkdir","file_move","file_poll_input","file_readlink","file_same","file_search","file_tar","file_test","file_untar","file_unzip","file_which","file_zip","filepath","findgen","finite","fix","flick","float","floor","flow3","fltarr","flush","format_axis_values","forward_function","free_lun","fstat","fulstr","funct","function","fv_test","fx_root","fz_roots","gamma","gamma_ct","gauss_cvf","gauss_pdf","gauss_smooth","gauss2dfit","gaussfit","gaussian_function","gaussint","get_drive_list","get_dxf_objects","get_kbrd","get_login_info","get_lun","get_screen_size","getenv","getwindows","greg2jul","grib","grid_input","grid_tps","grid3","griddata","gs_iter","h_eq_ct","h_eq_int","hanning","hash","hdf","hdf5","heap_free","heap_gc","heap_nosave","heap_refcount","heap_save","help","hilbert","hist_2d","hist_equal","histogram","hls","hough","hqr","hsv","i18n_multibytetoutf8","i18n_multibytetowidechar","i18n_utf8tomultibyte","i18n_widechartomultibyte","ibeta","icontour","iconvertcoord","idelete","identity","idl_base64","idl_container","idl_validname","idlexbr_assistant","idlitsys_createtool","idlunit","iellipse","igamma","igetcurrent","igetdata","igetid","igetproperty","iimage","image","image_cont","image_statistics","image_threshold","imaginary","imap","indgen","int_2d","int_3d","int_tabulated","intarr","interpol","interpolate","interval_volume","invert","ioctl","iopen","ir_filter","iplot","ipolygon","ipolyline","iputdata","iregister","ireset","iresolve","irotate","isa","isave","iscale","isetcurrent","isetproperty","ishft","isocontour","isosurface","isurface","itext","itranslate","ivector","ivolume","izoom","journal","json_parse","json_serialize","jul2greg","julday","keyword_set","krig2d","kurtosis","kw_test","l64indgen","la_choldc","la_cholmprove","la_cholsol","la_determ","la_eigenproblem","la_eigenql","la_eigenvec","la_elmhes","la_gm_linear_model","la_hqr","la_invert","la_least_square_equality","la_least_squares","la_linear_equation","la_ludc","la_lumprove","la_lusol","la_svd","la_tridc","la_trimprove","la_triql","la_trired","la_trisol","label_date","label_region","ladfit","laguerre","lambda","lambdap","lambertw","laplacian","least_squares_filter","leefilt","legend","legendre","linbcg","lindgen","linfit","linkimage","list","ll_arc_distance","lmfit","lmgr","lngamma","lnp_test","loadct","locale_get","logical_and","logical_or","logical_true","lon64arr","lonarr","long","long64","lsode","lu_complex","ludc","lumprove","lusol","m_correlate","machar","make_array","make_dll","make_rt","map","mapcontinents","mapgrid","map_2points","map_continents","map_grid","map_image","map_patch","map_proj_forward","map_proj_image","map_proj_info","map_proj_init","map_proj_inverse","map_set","matrix_multiply","matrix_power","max","md_test","mean","meanabsdev","mean_filter","median","memory","mesh_clip","mesh_decimate","mesh_issolid","mesh_merge","mesh_numtriangles","mesh_obj","mesh_smooth","mesh_surfacearea","mesh_validate","mesh_volume","message","min","min_curve_surf","mk_html_help","modifyct","moment","morph_close","morph_distance","morph_gradient","morph_hitormiss","morph_open","morph_thin","morph_tophat","multi","n_elements","n_params","n_tags","ncdf","newton","noise_hurl","noise_pick","noise_scatter","noise_slur","norm","obj_class","obj_destroy","obj_hasmethod","obj_isa","obj_new","obj_valid","objarr","on_error","on_ioerror","online_help","openr","openu","openw","oplot","oploterr","orderedhash","p_correlate","parse_url","particle_trace","path_cache","path_sep","pcomp","plot","plot3d","plot","plot_3dbox","plot_field","ploterr","plots","polar_contour","polar_surface","polyfill","polyshade","pnt_line","point_lun","polarplot","poly","poly_2d","poly_area","poly_fit","polyfillv","polygon","polyline","polywarp","popd","powell","pref_commit","pref_get","pref_set","prewitt","primes","print","printf","printd","pro","product","profile","profiler","profiles","project_vol","ps_show_fonts","psafm","pseudo","ptr_free","ptr_new","ptr_valid","ptrarr","pushd","qgrid3","qhull","qromb","qromo","qsimp","query_*","query_ascii","query_bmp","query_csv","query_dicom","query_gif","query_image","query_jpeg","query_jpeg2000","query_mrsid","query_pict","query_png","query_ppm","query_srf","query_tiff","query_video","query_wav","r_correlate","r_test","radon","randomn","randomu","ranks","rdpix","read","readf","read_ascii","read_binary","read_bmp","read_csv","read_dicom","read_gif","read_image","read_interfile","read_jpeg","read_jpeg2000","read_mrsid","read_pict","read_png","read_ppm","read_spr","read_srf","read_sylk","read_tiff","read_video","read_wav","read_wave","read_x11_bitmap","read_xwd","reads","readu","real_part","rebin","recall_commands","recon3","reduce_colors","reform","region_grow","register_cursor","regress","replicate","replicate_inplace","resolve_all","resolve_routine","restore","retall","return","reverse","rk4","roberts","rot","rotate","round","routine_filepath","routine_info","rs_test","s_test","save","savgol","scale3","scale3d","scatterplot","scatterplot3d","scope_level","scope_traceback","scope_varfetch","scope_varname","search2d","search3d","sem_create","sem_delete","sem_lock","sem_release","set_plot","set_shading","setenv","sfit","shade_surf","shade_surf_irr","shade_volume","shift","shift_diff","shmdebug","shmmap","shmunmap","shmvar","show3","showfont","signum","simplex","sin","sindgen","sinh","size","skewness","skip_lun","slicer3","slide_image","smooth","sobel","socket","sort","spawn","sph_4pnt","sph_scat","spher_harm","spl_init","spl_interp","spline","spline_p","sprsab","sprsax","sprsin","sprstp","sqrt","standardize","stddev","stop","strarr","strcmp","strcompress","streamline","streamline","stregex","stretch","string","strjoin","strlen","strlowcase","strmatch","strmessage","strmid","strpos","strput","strsplit","strtrim","struct_assign","struct_hide","strupcase","surface","surface","surfr","svdc","svdfit","svsol","swap_endian","swap_endian_inplace","symbol","systime","t_cvf","t_pdf","t3d","tag_names","tan","tanh","tek_color","temporary","terminal_size","tetra_clip","tetra_surface","tetra_volume","text","thin","thread","threed","tic","time_test2","timegen","timer","timestamp","timestamptovalues","tm_test","toc","total","trace","transpose","tri_surf","triangulate","trigrid","triql","trired","trisol","truncate_lun","ts_coef","ts_diff","ts_fcast","ts_smooth","tv","tvcrs","tvlct","tvrd","tvscl","typename","uindgen","uint","uintarr","ul64indgen","ulindgen","ulon64arr","ulonarr","ulong","ulong64","uniq","unsharp_mask","usersym","value_locate","variance","vector","vector_field","vel","velovect","vert_t3d","voigt","volume","voronoi","voxel_proj","wait","warp_tri","watershed","wdelete","wf_draw","where","widget_base","widget_button","widget_combobox","widget_control","widget_displaycontextmenu","widget_draw","widget_droplist","widget_event","widget_info","widget_label","widget_list","widget_propertysheet","widget_slider","widget_tab","widget_table","widget_text","widget_tree","widget_tree_move","widget_window","wiener_filter","window","window","write_bmp","write_csv","write_gif","write_image","write_jpeg","write_jpeg2000","write_nrif","write_pict","write_png","write_ppm","write_spr","write_srf","write_sylk","write_tiff","write_video","write_wav","write_wave","writeu","wset","wshow","wtn","wv_applet","wv_cwt","wv_cw_wavelet","wv_denoise","wv_dwt","wv_fn_coiflet","wv_fn_daubechies","wv_fn_gaussian","wv_fn_haar","wv_fn_morlet","wv_fn_paul","wv_fn_symlet","wv_import_data","wv_import_wavelet","wv_plot3d_wps","wv_plot_multires","wv_pwt","wv_tool_denoise","xbm_edit","xdisplayfile","xdxf","xfont","xinteranimate","xloadct","xmanager","xmng_tmpl","xmtool","xobjview","xobjview_rotate","xobjview_write_image","xpalette","xpcolor","xplot3d","xregistered","xroi","xsq_test","xsurface","xvaredit","xvolume","xvolume_rotate","xvolume_write_image","xyouts","zlib_compress","zlib_uncompress","zoom","zoom_24"],r=e(t),i=["begin","end","endcase","endfor","endwhile","endif","endrep","endforeach","break","case","continue","for","foreach","goto","if","then","else","repeat","until","switch","while","do","pro","function"],a=e(i),_=new RegExp("^[_a-z¡-￿][_a-z0-9¡-￿]*","i"),o=/[+\-*&=<>\/@#~$]/,l=new RegExp("(and|or|eq|lt|le|gt|ge|ne|not)","i");const s={name:"idl",token:function(e){return function(e){if(e.eatSpace())return null;if(e.match(";"))return e.skipToEnd(),"comment";if(e.match(/^[0-9\.+-]/,!1)){if(e.match(/^[+-]?0x[0-9a-fA-F]+/))return"number";if(e.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?/))return"number";if(e.match(/^[+-]?\d+([EeDd][+-]?\d+)?/))return"number"}return e.match(/^"([^"]|(""))*"/)||e.match(/^'([^']|(''))*'/)?"string":e.match(a)?"keyword":e.match(r)?"builtin":e.match(_)?"variable":e.match(o)||e.match(l)?"operator":(e.next(),null)}(e)},languageData:{autocomplete:t.concat(i)}};export{s as idl}; diff --git a/nicegui/elements/lib/codemirror/index-B7tHWccP.js b/nicegui/elements/lib/codemirror/index-B7tHWccP.js new file mode 100644 index 000000000..78a2431f0 --- /dev/null +++ b/nicegui/elements/lib/codemirror/index-B7tHWccP.js @@ -0,0 +1 @@ +import{C as O,E as a,L as Q,a as i}from"./index-Ckjrdmtm.js";import{s as $,t as e,k as r,e as Z,L as o,i as P,c as t,g as p,h as n,f as l,j as s,J as h,a as S,b as c,d as X,E as m,l as b,I as Y,z as u,N as d}from"./editor-DzvLhhiW.js";const g=[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],R=new O({start:!1,shift:(O,a)=>5==a||6==a||315==a?O:316==a,strict:!1}),f=new a(((O,a)=>{let{next:Q}=O;(125==Q||-1==Q||a.context)&&O.acceptToken(313)}),{contextual:!0,fallback:!0}),W=new a(((O,a)=>{let Q,{next:i}=O;g.indexOf(i)>-1||(47!=i||47!=(Q=O.peek(1))&&42!=Q)&&(125==i||59==i||-1==i||a.context||O.acceptToken(312))}),{contextual:!0}),x=new a(((O,a)=>{let{next:Q}=O;if(43==Q||45==Q){if(O.advance(),Q==O.next){O.advance();let Q=!a.context&&a.canShift(1);O.acceptToken(Q?1:2)}}else 63==Q&&46==O.peek(1)&&(O.advance(),O.advance(),(O.next<48||O.next>57)&&O.acceptToken(3))}),{contextual:!0});function U(O,a){return O>=65&&O<=90||O>=97&&O<=122||95==O||O>=192||!a&&O>=48&&O<=57}const y=new a(((O,a)=>{if(60!=O.next||!a.dialectEnabled(0))return;if(O.advance(),47==O.next)return;let Q=0;for(;g.indexOf(O.next)>-1;)O.advance(),Q++;if(U(O.next,!0)){for(O.advance(),Q++;U(O.next,!1);)O.advance(),Q++;for(;g.indexOf(O.next)>-1;)O.advance(),Q++;if(44==O.next)return;for(let a=0;;a++){if(7==a){if(!U(O.next,!0))return;break}if(O.next!="extends".charCodeAt(a))break;O.advance(),Q++}}O.acceptToken(4,-Q)})),k=$({"get set async static":e.modifier,"for while do if else switch try catch finally return throw break continue default case":e.controlKeyword,"in of await yield void typeof delete instanceof":e.operatorKeyword,"let var const using function class extends":e.definitionKeyword,"import export from":e.moduleKeyword,"with debugger as new":e.keyword,TemplateString:e.special(e.string),super:e.atom,BooleanLiteral:e.bool,this:e.self,null:e.null,Star:e.modifier,VariableName:e.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":e.function(e.variableName),VariableDefinition:e.definition(e.variableName),Label:e.labelName,PropertyName:e.propertyName,PrivatePropertyName:e.special(e.propertyName),"CallExpression/MemberExpression/PropertyName":e.function(e.propertyName),"FunctionDeclaration/VariableDefinition":e.function(e.definition(e.variableName)),"ClassDeclaration/VariableDefinition":e.definition(e.className),PropertyDefinition:e.definition(e.propertyName),PrivatePropertyDefinition:e.definition(e.special(e.propertyName)),UpdateOp:e.updateOperator,"LineComment Hashbang":e.lineComment,BlockComment:e.blockComment,Number:e.number,String:e.string,Escape:e.escape,ArithOp:e.arithmeticOperator,LogicOp:e.logicOperator,BitOp:e.bitwiseOperator,CompareOp:e.compareOperator,RegExp:e.regexp,Equals:e.definitionOperator,Arrow:e.function(e.punctuation),": Spread":e.punctuation,"( )":e.paren,"[ ]":e.squareBracket,"{ }":e.brace,"InterpolationStart InterpolationEnd":e.special(e.brace),".":e.derefOperator,", ;":e.separator,"@":e.meta,TypeName:e.typeName,TypeDefinition:e.definition(e.typeName),"type enum interface implements namespace module declare":e.definitionKeyword,"abstract global Privacy readonly override":e.modifier,"is keyof unique infer":e.operatorKeyword,JSXAttributeValue:e.attributeValue,JSXText:e.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":e.angleBracket,"JSXIdentifier JSXNameSpacedName":e.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":e.attributeName,"JSXBuiltin/JSXIdentifier":e.standard(e.tagName)}),q={__proto__:null,export:20,as:25,from:33,default:36,async:41,function:42,extends:54,this:58,true:66,false:66,null:78,void:82,typeof:86,super:102,new:136,delete:148,yield:157,await:161,class:166,public:229,private:229,protected:229,readonly:231,instanceof:250,satisfies:253,in:254,const:256,import:290,keyof:345,unique:349,infer:355,is:391,abstract:411,implements:413,type:415,let:418,var:420,using:423,interface:429,enum:433,namespace:439,module:441,declare:445,global:449,for:468,of:477,while:480,with:484,do:488,if:492,else:494,switch:498,case:504,try:510,catch:514,finally:518,return:522,throw:526,break:530,continue:534,debugger:538},w={__proto__:null,async:123,get:125,set:127,declare:189,public:191,private:191,protected:191,static:193,abstract:195,override:197,readonly:203,accessor:205,new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!Y'ea#]'ea~Og'ea#}'ea~P%)nO})zO!P){Ok'ga(t'ga(u'ga!Y'ga#]'ga~Og'ga#}'ga~P%*aO(m$YO~P#.aO!VfX!V$xX!YfX!Y$xX!d%PX#]fX~P!/gO(OQ#>g#@V#@e#@l#BR#Ba#C|#D[#Db#Dh#Dn#Dx#EO#EU#E`#Er#ExPPPPPPPPPP#FOPPPPPPP#Fs#Iz#KZ#Kb#KjPPP$!sP$!|$%t$,^$,a$,d$-P$-S$-Z$-cP$-i$-lP$.Y$.^$/U$0d$0i$1PPP$1U$1[$1`P$1c$1g$1k$2a$2x$3a$3e$3h$3k$3q$3t$3x$3|R!|RoqOXst!Z#d%k&o&q&r&t,k,p1|2PY!vQ']-]1a5eQ%rvQ%zyQ&R|Q&g!VS'T!e-TQ'c!iS'i!r!yU*e$|*V*jQ+i%{Q+v&TQ,[&aQ-Z'[Q-e'dQ-m'jQ0R*lQ1k,]R;v;T%QdOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%k%r&P&h&k&o&q&r&t&x'Q'_'o(P(R(X(`(t(v(z)y+R+V,h,k,p-a-i-w-}.l.s/f0a0g0v1d1t1u1w1y1|2P2R2r2x3^5b5m5}6O6R6f8R8X8h8rS#q];Q!r)Z$Z$n'U)o,|-P.}2b3u5`6]9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{ < TypeParamList TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewTarget new NewExpression ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression TypeArgList CompareOp < declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies in const CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression InstantiationExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast ArrowFunction TypeParamList SequenceExpression InstantiationExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem",maxTerm:376,context:R,nodeProps:[["isolate",-8,5,6,14,34,36,48,50,52,""],["group",-26,9,17,19,65,204,208,212,213,215,218,221,231,233,239,241,243,245,248,254,260,262,264,266,268,270,271,"Statement",-34,13,14,29,32,33,39,48,51,52,54,59,67,69,73,77,79,81,82,107,108,117,118,135,138,140,141,142,143,144,146,147,166,167,169,"Expression",-23,28,30,34,38,40,42,171,173,175,176,178,179,180,182,183,184,186,187,188,198,200,202,203,"Type",-3,85,100,106,"ClassItem"],["openedBy",23,"<",35,"InterpolationStart",53,"[",57,"{",70,"(",159,"JSXStartCloseTag"],["closedBy",24,">",37,"InterpolationEnd",47,"]",58,"}",71,")",164,"JSXEndTag"]],propSources:[k],skippedNodes:[0,5,6,274],repeatNodeCount:37,tokenData:"$Fq07[R!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tuEruvJSvwLkwx! Yxy!'iyz!(sz{!)}{|!,q|}!.O}!O!,q!O!P!/Y!P!Q!9j!Q!R#:O!R![#<_![!]#I_!]!^#Jk!^!_#Ku!_!`$![!`!a$$v!a!b$*T!b!c$,r!c!}Er!}#O$-|#O#P$/W#P#Q$4o#Q#R$5y#R#SEr#S#T$7W#T#o$8b#o#p$x#r#s$@U#s$f%Z$f$g+g$g#BYEr#BY#BZ$A`#BZ$ISEr$IS$I_$A`$I_$I|Er$I|$I}$Dk$I}$JO$Dk$JO$JTEr$JT$JU$A`$JU$KVEr$KV$KW$A`$KW&FUEr&FU&FV$A`&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$A`?HUOEr(n%d_$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&j&hT$h&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c&j&zP;=`<%l&c'|'U]$h&j(U!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!b(SU(U!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!b(iP;=`<%l'}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!_#O%Z#O#P&c#P#R%Z#R#S#DV#S#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#E|g$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![#Ge![!^%Z!^!_*g!_!c%Z!c!i#Ge!i#O%Z#O#P&c#P#R%Z#R#S#Ge#S#T%Z#T#Z#Ge#Z#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#Gpi$h&j(Rp(U!bp'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![#Ge![!^%Z!^!_*g!_!c%Z!c!i#Ge!i#O%Z#O#P&c#P#R%Z#R#S#Ge#S#T%Z#T#Z#Ge#Z#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z*)x#Il_!d$b$h&j#})Lv(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z)[#Jv_al$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z04f#LS^h#)`#O-q[O]||-1},{term:338,get:O=>w[O]||-1},{term:92,get:O=>_[O]||-1}],tokenPrec:14749}),z=[r("function ${name}(${params}) {\n\t${}\n}",{label:"function",detail:"definition",type:"keyword"}),r("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n\t${}\n}",{label:"for",detail:"loop",type:"keyword"}),r("for (let ${name} of ${collection}) {\n\t${}\n}",{label:"for",detail:"of loop",type:"keyword"}),r("do {\n\t${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),r("while (${}) {\n\t${}\n}",{label:"while",detail:"loop",type:"keyword"}),r("try {\n\t${}\n} catch (${error}) {\n\t${}\n}",{label:"try",detail:"/ catch block",type:"keyword"}),r("if (${}) {\n\t${}\n}",{label:"if",detail:"block",type:"keyword"}),r("if (${}) {\n\t${}\n} else {\n\t${}\n}",{label:"if",detail:"/ else block",type:"keyword"}),r("class ${name} {\n\tconstructor(${params}) {\n\t\t${}\n\t}\n}",{label:"class",detail:"definition",type:"keyword"}),r('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),r('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],G=z.concat([r("interface ${name} {\n\t${}\n}",{label:"interface",detail:"definition",type:"keyword"}),r("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),r("enum ${name} {\n\t${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),T=new d,V=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function v(O){return(a,Q)=>{let i=a.node.getChild("VariableDefinition");return i&&Q(i,O),!0}}const E=["FunctionDeclaration"],A={FunctionDeclaration:v("function"),ClassDeclaration:v("class"),ClassExpression:()=>!0,EnumDeclaration:v("constant"),TypeAliasDeclaration:v("type"),NamespaceDeclaration:v("namespace"),VariableDefinition(O,a){O.matchContext(E)||a(O,"variable")},TypeDefinition(O,a){a(O,"type")},__proto__:null};function M(O,a){let Q=T.get(a);if(Q)return Q;let i=[],$=!0;function e(a,Q){let $=O.sliceString(a.from,a.to);i.push({label:$,type:Q})}return a.cursor(Y.IncludeAnonymous).iterate((a=>{if($)$=!1;else if(a.name){let O=A[a.name];if(O&&O(a,e)||V.has(a.name))return!1}else if(a.to-a.from>8192){for(let Q of M(O,a.node))i.push(Q);return!1}})),T.set(a,i),i}const N=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,J=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName",".","?."];function C(O){let a=Z(O.state).resolveInner(O.pos,-1);if(J.indexOf(a.name)>-1)return null;let Q="VariableName"==a.name||a.to-a.from<20&&N.test(O.state.sliceDoc(a.from,a.to));if(!Q&&!O.explicit)return null;let i=[];for(let Q=a;Q;Q=Q.parent)V.has(Q.name)&&(i=i.concat(M(O.state.doc,Q)));return{options:i,from:Q?a.from:O.pos,validFor:N}}function I(O,a,Q){var i;let $=[];for(;;){let e,r=a.firstChild;if("VariableName"==(null==r?void 0:r.name))return $.push(O(r)),{path:$.reverse(),name:Q};if("MemberExpression"!=(null==r?void 0:r.name)||"PropertyName"!=(null===(i=e=r.lastChild)||void 0===i?void 0:i.name))return null;$.push(O(e)),a=r}}function D(O){let a=a=>O.state.doc.sliceString(a.from,a.to),Q=Z(O.state).resolveInner(O.pos,-1);return"PropertyName"==Q.name?I(a,Q.parent,a(Q)):"."!=Q.name&&"?."!=Q.name||"MemberExpression"!=Q.parent.name?J.indexOf(Q.name)>-1?null:"VariableName"==Q.name||Q.to-Q.from<20&&N.test(a(Q))?{path:[],name:a(Q)}:"MemberExpression"==Q.name?I(a,Q,""):O.explicit?{path:[],name:""}:null:I(a,Q.parent,"")}function K(O){let a=new Map;return Q=>{let i=D(Q);if(!i)return null;let $=O;for(let O of i.path)if($=$[O],!$)return null;let e=a.get($);return e||a.set($,e=function(O,a){let Q=[],i=new Set;for(let $=0;;$++){for(let e of(Object.getOwnPropertyNames||Object.keys)(O)){if(!/^[a-zA-Z_$\xaa-\uffdc][\w$\xaa-\uffdc]*$/.test(e)||i.has(e))continue;let r;i.add(e);try{r=O[e]}catch(O){continue}Q.push({label:e,type:"function"==typeof r?/^[A-Z]/.test(e)?"class":a?"function":"method":a?"variable":"property",boost:-$})}let e=Object.getPrototypeOf(O);if(!e)return Q;O=e}}($,!i.path.length)),{from:Q.pos-i.name.length,options:e,validFor:N}}}const L=o.define({name:"javascript",parser:j.configure({props:[P.add({IfStatement:t({except:/^\s*({|else\b)/}),TryStatement:t({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:p,SwitchBody:O=>{let a=O.textAfter,Q=/^\s*\}/.test(a),i=/^\s*(case|default)\b/.test(a);return O.baseIndent+(Q?0:i?1:2)*O.unit},Block:n({closing:"}"}),ArrowFunction:O=>O.baseIndent+O.unit,"TemplateString BlockComment":()=>null,"Statement Property":t({except:/^{/}),JSXElement(O){let a=/^\s*<\//.test(O.textAfter);return O.lineIndent(O.node.from)+(a?0:O.unit)},JSXEscape(O){let a=/\s*\}/.test(O.textAfter);return O.lineIndent(O.node.from)+(a?0:O.unit)},"JSXOpenTag JSXSelfClosingTag":O=>O.column(O.node.from)+O.unit}),l.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":s,BlockComment:O=>({from:O.from+2,to:O.to-2})})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),B={test:O=>/^JSX/.test(O.name),facet:u({commentTokens:{block:{open:"{/*",close:"*/}"}}})},F=L.configure({dialect:"ts"},"typescript"),H=L.configure({dialect:"jsx",props:[h.add((O=>O.isTop?[B]:void 0))]}),OO=L.configure({dialect:"jsx ts",props:[h.add((O=>O.isTop?[B]:void 0))]},"typescript");let aO=O=>({label:O,type:"keyword"});const QO="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(aO),iO=QO.concat(["declare","implements","private","protected","public"].map(aO));function $O(O={}){let a=O.jsx?O.typescript?OO:H:O.typescript?F:L,Q=O.typescript?G.concat(iO):z.concat(QO);return new S(a,[L.data.of({autocomplete:c(J,X(Q))}),L.data.of({autocomplete:C}),O.jsx?ZO:[]])}function eO(O,a,Q=O.length){for(let i=null==a?void 0:a.firstChild;i;i=i.nextSibling)if("JSXIdentifier"==i.name||"JSXBuiltin"==i.name||"JSXNamespacedName"==i.name||"JSXMemberExpression"==i.name)return O.sliceString(i.from,Math.min(i.to,Q));return""}const rO="object"==typeof navigator&&/Android\b/.test(navigator.userAgent),ZO=m.inputHandler.of(((O,a,Q,i,$)=>{if((rO?O.composing:O.compositionStarted)||O.state.readOnly||a!=Q||">"!=i&&"/"!=i||!L.isActiveAt(O.state,a,-1))return!1;let e=$(),{state:r}=e,o=r.changeByRange((O=>{var a;let Q,{head:$}=O,e=Z(r).resolveInner($-1,-1);if("JSXStartTag"==e.name&&(e=e.parent),r.doc.sliceString($-1,$)!=i||"JSXAttributeValue"==e.name&&e.to>$);else{if(">"==i&&"JSXFragmentTag"==e.name)return{range:O,changes:{from:$,insert:""}};if("/"==i&&"JSXStartCloseTag"==e.name){let O=e.parent,i=O.parent;if(i&&O.from==$-2&&((Q=eO(r.doc,i.firstChild,$))||"JSXFragmentTag"==(null===(a=i.firstChild)||void 0===a?void 0:a.name))){let O=`${Q}>`;return{range:b.cursor($+O.length,-1),changes:{from:$,insert:O}}}}else if(">"==i){let a=function(O){for(;;){if("JSXOpenTag"==O.name||"JSXSelfClosingTag"==O.name||"JSXFragmentTag"==O.name)return O;if("JSXEscape"==O.name||!O.parent)return null;O=O.parent}}(e);if(a&&"JSXOpenTag"==a.name&&!/^\/?>|^<\//.test(r.doc.sliceString($,$+2))&&(Q=eO(r.doc,a,$)))return{range:O,changes:{from:$,insert:``}}}}return{range:O}}));return!o.changes.empty&&(O.dispatch([e,r.update(o,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}));function oO(O,a){return a||(a={parserOptions:{ecmaVersion:2019,sourceType:"module"},env:{browser:!0,node:!0,es6:!0,es2015:!0,es2017:!0,es2020:!0},rules:{}},O.getRules().forEach(((O,Q)=>{O.meta.docs.recommended&&(a.rules[Q]=2)}))),Q=>{let{state:i}=Q,$=[];for(let{from:Q,to:e}of L.findRegions(i)){let r=i.doc.lineAt(Q),Z={line:r.number-1,col:Q-r.from,pos:Q};for(let r of O.verify(i.sliceDoc(Q,e),a))$.push(tO(r,i.doc,Z))}return $}}function PO(O,a,Q,i){return Q.line(O+i.line).from+a+(1==O?i.col-1:-1)}function tO(O,a,Q){let i=PO(O.line,O.column,a,Q),$={from:i,to:null!=O.endLine&&1!=O.endColumn?PO(O.endLine,O.endColumn,a,Q):i,message:O.message,source:O.ruleId?"eslint:"+O.ruleId:"eslint",severity:1==O.severity?"warning":"error"};if(O.fix){let{range:a,text:e}=O.fix,r=a[0]+Q.pos-i,Z=a[1]+Q.pos-i;$.actions=[{name:"fix",apply(O,a){O.dispatch({changes:{from:a+r,to:a+Z,insert:e},scrollIntoView:!0})}}]}return $}export{ZO as autoCloseTags,D as completionPath,oO as esLint,$O as javascript,L as javascriptLanguage,H as jsxLanguage,C as localCompletionSource,K as scopeCompletionSource,z as snippets,OO as tsxLanguage,F as typescriptLanguage,G as typescriptSnippets}; diff --git a/nicegui/elements/lib/codemirror/index-BJiyyGqZ.js b/nicegui/elements/lib/codemirror/index-BJiyyGqZ.js new file mode 100644 index 000000000..6438c36ab --- /dev/null +++ b/nicegui/elements/lib/codemirror/index-BJiyyGqZ.js @@ -0,0 +1 @@ +import{L as e,i as O,h as o,f as b,j as r,s,t,a as P}from"./editor-DzvLhhiW.js";import{L as a}from"./index-Ckjrdmtm.js";const S={__proto__:null,anyref:34,dataref:34,eqref:34,externref:34,i31ref:34,funcref:34,i8:34,i16:34,i32:34,i64:34,f32:34,f64:34},Q=a.deserialize({version:14,states:"!^Q]QPOOOqQPO'#CbOOQO'#Cd'#CdOOQO'#Cl'#ClOOQO'#Ch'#ChQ]QPOOOOQO,58|,58|OxQPO,58|OOQO-E6f-E6fOOQO1G.h1G.h",stateData:"!P~O_OSPOSQOS~OTPOVROXROYROZROaQO~OSUO~P]OSXO~P]O",goto:"xaPPPPPPbPbPPPhPPPrXROPTVQTOQVPTWTVXSOPTV",nodeNames:"⚠ LineComment BlockComment Module ) ( App Identifier Type Keyword Number String",maxTerm:17,nodeProps:[["isolate",-3,1,2,11,""],["openedBy",4,"("],["closedBy",5,")"],["group",-6,6,7,8,9,10,11,"Expression"]],skippedNodes:[0,1,2],repeatNodeCount:1,tokenData:"0o~R^X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![-o!c!i-o#R#S-c#T#Z-o~.TR!Q![,h!c!i,h#T#Z,h~.aP!]!^.d~.iSP~OY.dZ;'S.d;'S;=`.u<%lO.d~.xP;=`<%l.d~/QiX~qr.{st.{tu.{uv.{vw.{wx.{z{.{{|.{}!O.{!O!P.{!P!Q.{!Q![.{![!].{!^!_.{!_!`.{!`!a.{!a!b.{!b!c.{!c!}.{#Q#R.{#R#S.{#S#T.{#T#o.{#p#q.{#r#s.{",tokenizers:[0],topRules:{Module:[0,3]},specialized:[{term:9,get:e=>S[e]||-1}],tokenPrec:0}),i=e.define({name:"wast",parser:Q.configure({props:[O.add({App:o({closing:")",align:!1})}),b.add({App:r,BlockComment:e=>({from:e.from+2,to:e.to-2})}),s({Keyword:t.keyword,Type:t.typeName,Number:t.number,String:t.string,Identifier:t.variableName,LineComment:t.lineComment,BlockComment:t.blockComment,"( )":t.paren})]}),languageData:{commentTokens:{line:";;",block:{open:"(;",close:";)"}},closeBrackets:{brackets:["(",'"']}}});function n(){return new P(i)}export{n as wast,i as wastLanguage}; diff --git a/nicegui/elements/lib/codemirror/index-BL_t_ntH.js b/nicegui/elements/lib/codemirror/index-BL_t_ntH.js new file mode 100644 index 000000000..b670039d8 --- /dev/null +++ b/nicegui/elements/lib/codemirror/index-BL_t_ntH.js @@ -0,0 +1 @@ +import{s as O,t as T,L as Q,i as a,c as e,f as S,j as l,a as r}from"./editor-DzvLhhiW.js";import{defineCSSCompletionSource as t}from"./index-CJhLK3a1.js";import{L as o,E as i}from"./index-Ckjrdmtm.js";const $=[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];function y(O){return O>=65&&O<=90||O>=97&&O<=122||O>=161}const X=new i(((O,T)=>{if(40==O.next){let T=O.peek(-1);(y(T)||(Q=T)>=48&&Q<=57||95==T||45==T)&&O.acceptToken(2,1)}var Q})),P=new i((O=>{if($.indexOf(O.peek(-1))>-1){let{next:T}=O;(y(T)||95==T||35==T||46==T||91==T||58==T||45==T)&&O.acceptToken(110)}})),m=new i((O=>{if($.indexOf(O.peek(-1))<0){let{next:T}=O;if(37==T&&(O.advance(),O.acceptToken(1)),y(T)){do{O.advance()}while(y(O.next));O.acceptToken(1)}}})),n=O({"import charset namespace keyframes media supports when":T.definitionKeyword,"from to selector":T.keyword,NamespaceName:T.namespace,KeyframeName:T.labelName,TagName:T.tagName,ClassName:T.className,PseudoClassName:T.constant(T.className),IdName:T.labelName,"FeatureName PropertyName PropertyVariable":T.propertyName,AttributeName:T.attributeName,NumberLiteral:T.number,KeywordQuery:T.keyword,UnaryQueryOp:T.operatorKeyword,"CallTag ValueName":T.atom,VariableName:T.variableName,"AtKeyword Interpolation":T.special(T.variableName),Callee:T.operatorKeyword,Unit:T.unit,"UniversalSelector NestingSelector":T.definitionOperator,MatchOp:T.compareOperator,"ChildOp SiblingOp, LogicOp":T.logicOperator,BinOp:T.arithmeticOperator,Important:T.modifier,"Comment LineComment":T.blockComment,ColorLiteral:T.color,"ParenthesizedContent StringLiteral":T.string,Escape:T.special(T.string),": ...":T.punctuation,"PseudoOp #":T.derefOperator,"; ,":T.separator,"( )":T.paren,"[ ]":T.squareBracket,"{ }":T.brace}),c={__proto__:null,lang:40,"nth-child":40,"nth-last-child":40,"nth-of-type":40,"nth-last-of-type":40,dir:40,"host-context":40,and:244,or:244,not:74,only:74,url:86,"url-prefix":86,domain:86,regexp:86,when:117,selector:142,from:172,to:174},f={__proto__:null,"@import":126,"@plugin":126,"@media":152,"@charset":156,"@namespace":160,"@keyframes":166,"@supports":178},p=o.deserialize({version:14,states:"@^O!gQWOOO!nQaO'#CeOOQP'#Cd'#CdO$RQWO'#CgO$xQaO'#EaO%cQWO'#CiO%kQWO'#DZO%pQWO'#D^O%uQaO'#DfOOQP'#Es'#EsO'YQWO'#DlO'yQWO'#DyO(QQWO'#D{O(xQWO'#D}O)TQWO'#EQO'bQWO'#EWO)YQ`O'#FTO)]Q`O'#FTO)hQ`O'#FTO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.|Z|`OY!.wYZ%TZw!.wwx!+cxy!.wyz!/oz#O!.w#O#P!1^#P;'S!.w;'S;=`!2e<%lO!.w]!/rWOY!/oZw!/owx!,cx#O!/o#O#P!0[#P;'S!/o;'S;=`!1W<%lO!/o]!0_RO;'S!/o;'S;=`!0h;=`O!/o]!0kXOY!/oZw!/owx!,cx#O!/o#O#P!0[#P;'S!/o;'S;=`!1W;=`<%l!/o<%lO!/o]!1ZP;=`<%l!/om!1cU|`Oy!.wyz!/oz;'S!.w;'S;=`!1u;=`<%l!/o<%lO!.wm!1xXOY!/oZw!/owx!,cx#O!/o#O#P!0[#P;'S!/o;'S;=`!1W;=`<%l!.w<%lO!/om!2hP;=`<%l!.w`!2nP;=`<%l$t",tokenizers:[P,m,X,0,1,2,3,4],topRules:{StyleSheet:[0,5]},specialized:[{term:116,get:O=>c[O]||-1},{term:23,get:O=>f[O]||-1}],tokenPrec:2180}),s=Q.define({name:"less",parser:p.configure({props:[a.add({Declaration:e()}),S.add({Block:l})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"},line:"//"},indentOnInput:/^\s*\}$/,wordChars:"@-"}}),W=t((O=>"VariableName"==O.name||"AtKeyword"==O.name));function Z(){return new r(s,s.data.of({autocomplete:W}))}export{Z as less,W as lessCompletionSource,s as lessLanguage}; diff --git a/nicegui/elements/lib/codemirror/index-BTAxP3mB.js b/nicegui/elements/lib/codemirror/index-BTAxP3mB.js new file mode 100644 index 000000000..0d4dad067 --- /dev/null +++ b/nicegui/elements/lib/codemirror/index-BTAxP3mB.js @@ -0,0 +1 @@ +import{E as O,L as $}from"./index-Ckjrdmtm.js";import{s as Q,t as i,L as y,i as a,c as z,h as S,f as P,j as W,a as T,p as e}from"./editor-DzvLhhiW.js";import{html as s}from"./index-CYWhQqFb.js";import"./index-CJhLK3a1.js";import"./index-B7tHWccP.js";const X={abstract:4,and:5,array:6,as:7,true:8,false:8,break:9,case:10,catch:11,clone:12,const:13,continue:14,declare:16,default:15,do:17,echo:18,else:19,elseif:20,enddeclare:21,endfor:22,endforeach:23,endif:24,endswitch:25,endwhile:26,enum:27,extends:28,final:29,finally:30,fn:31,for:32,foreach:33,from:34,function:35,global:36,goto:37,if:38,implements:39,include:40,include_once:41,instanceof:42,insteadof:43,interface:44,list:45,match:46,namespace:47,new:48,null:49,or:50,print:51,require:52,require_once:53,return:54,switch:55,throw:56,trait:57,try:58,unset:59,use:60,var:61,public:62,private:62,protected:62,while:63,xor:64,yield:65,__proto__:null};function n(O){let $=X[O.toLowerCase()];return null==$?-1:$}function d(O){return 9==O||10==O||13==O||32==O}function q(O){return O>=97&&O<=122||O>=65&&O<=90}function o(O){return 95==O||O>=128||q(O)}function t(O){return O>=48&&O<=55||O>=97&&O<=102||O>=65&&O<=70}const x={int:!0,integer:!0,bool:!0,boolean:!0,float:!0,double:!0,real:!0,string:!0,array:!0,object:!0,unset:!0,__proto__:null},R=new O((O=>{if(40==O.next){O.advance();let $=0;for(;d(O.peek($));)$++;let Q,i="";for(;q(Q=O.peek($));)i+=String.fromCharCode(Q),$++;for(;d(O.peek($));)$++;41==O.peek($)&&x[i.toLowerCase()]&&O.acceptToken(1)}else if(60==O.next&&60==O.peek(1)&&60==O.peek(2)){for(let $=0;$<3;$++)O.advance();for(;32==O.next||9==O.next;)O.advance();let $=39==O.next;if($&&O.advance(),!o(O.next))return;let Q=String.fromCharCode(O.next);for(;O.advance(),o(O.next)||O.next>=48&&O.next<=55;)Q+=String.fromCharCode(O.next);if($){if(39!=O.next)return;O.advance()}if(10!=O.next&&13!=O.next)return;for(;;){let $=10==O.next||13==O.next;if(O.advance(),O.next<0)return;if($){for(;32==O.next||9==O.next;)O.advance();let $=!0;for(let i=0;i{O.next<0&&O.acceptToken(266)})),V=new O(((O,$)=>{63==O.next&&$.canShift(265)&&62==O.peek(1)&&O.acceptToken(265)}));function u(O){let $=O.peek(1);if(110==$||114==$||116==$||118==$||101==$||102==$||92==$||36==$||34==$||123==$)return 2;if($>=48&&$<=55){let $,Q=2;for(;Q<5&&($=O.peek(Q))>=48&&$<=55;)Q++;return Q}if(120==$&&t(O.peek(2)))return t(O.peek(3))?4:3;if(117==$&&123==O.peek(2))for(let $=3;;$++){let Q=O.peek($);if(125==Q)return 2==$?0:$+1;if(!t(Q))break}return 0}const U=new O(((O,$)=>{let Q=!1;for(;!(34==O.next||O.next<0||36==O.next&&(o(O.peek(1))||123==O.peek(1))||123==O.next&&36==O.peek(1));Q=!0){if(92==O.next){let $=u(O);if($){if(Q)break;return O.acceptToken(3,$)}}else if(!Q&&(91==O.next||45==O.next&&62==O.peek(1)&&o(O.peek(2))||63==O.next&&45==O.peek(1)&&62==O.peek(2)&&o(O.peek(3)))&&$.canShift(264))break;O.advance()}Q&&O.acceptToken(263)})),r=Q({"Visibility abstract final static":i.modifier,"for foreach while do if else elseif switch try catch finally return throw break continue default case":i.controlKeyword,"endif endfor endforeach endswitch endwhile declare enddeclare goto match":i.controlKeyword,"and or xor yield unset clone instanceof insteadof":i.operatorKeyword,"function fn class trait implements extends const enum global interface use var":i.definitionKeyword,"include include_once require require_once namespace":i.moduleKeyword,"new from echo print array list as":i.keyword,null:i.null,Boolean:i.bool,VariableName:i.variableName,"NamespaceName/...":i.namespace,"NamedType/...":i.typeName,Name:i.name,"CallExpression/Name":i.function(i.variableName),"LabelStatement/Name":i.labelName,"MemberExpression/Name":i.propertyName,"MemberExpression/VariableName":i.special(i.propertyName),"ScopedExpression/ClassMemberName/Name":i.propertyName,"ScopedExpression/ClassMemberName/VariableName":i.special(i.propertyName),"CallExpression/MemberExpression/Name":i.function(i.propertyName),"CallExpression/ScopedExpression/ClassMemberName/Name":i.function(i.propertyName),"MethodDeclaration/Name":i.function(i.definition(i.variableName)),"FunctionDefinition/Name":i.function(i.definition(i.variableName)),"ClassDeclaration/Name":i.definition(i.className),UpdateOp:i.updateOperator,ArithOp:i.arithmeticOperator,LogicOp:i.logicOperator,BitOp:i.bitwiseOperator,CompareOp:i.compareOperator,ControlOp:i.controlOperator,AssignOp:i.definitionOperator,"$ ConcatOp":i.operator,LineComment:i.lineComment,BlockComment:i.blockComment,Integer:i.integer,Float:i.float,String:i.string,ShellExpression:i.special(i.string),"=> ->":i.punctuation,"( )":i.paren,"#[ [ ]":i.squareBracket,"${ { }":i.brace,"-> ?->":i.derefOperator,", ; :: : \\":i.separator,"PhpOpen PhpClose":i.processingInstruction}),v={__proto__:null,static:311,STATIC:311,class:333,CLASS:333},b=$.deserialize({version:14,states:"$GSQ`OWOOQhQaOOP%oO`OOOOO#t'#H_'#H_O%tO#|O'#DtOOO#u'#Dw'#DwQ&SOWO'#DwO&XO$VOOOOQ#u'#Dx'#DxO&lQaO'#D|O(mQdO'#E}O(tQdO'#EQO*kQaO'#EWO,zQ`O'#ETO-PQ`O'#E^O/nQaO'#E^O/uQ`O'#EfO/zQ`O'#EoO*kQaO'#EoO0VQ`O'#HhO0[Q`O'#E{O0[Q`O'#E{OOQS'#Ic'#IcO0aQ`O'#EvOOQS'#IZ'#IZO2oQdO'#IWO6tQeO'#FUO*kQaO'#FeO*kQaO'#FfO*kQaO'#FgO*kQaO'#FhO*kQaO'#FhO*kQaO'#FkOOQO'#Id'#IdO7RQ`O'#FqOOQO'#Hi'#HiO7ZQ`O'#HOO7uQ`O'#FlO8QQ`O'#H]O8]Q`O'#FvO8eQaO'#FwO*kQaO'#GVO*kQaO'#GYO8}OrO'#G]OOQS'#Iq'#IqOOQS'#Ip'#IpOOQS'#IW'#IWO,zQ`O'#GdO,zQ`O'#GfO,zQ`O'#GkOhQaO'#GmO9UQ`O'#GnO9ZQ`O'#GqO9`Q`O'#GtO9eQeO'#GuO9eQeO'#GvO9eQeO'#GwO9oQ`O'#GxO9tQ`O'#GzO9yQaO'#G{OS,5>SOJ[QdO,5;gOOQO-E;f-E;fOL^Q`O,5;gOLcQpO,5;bO0aQ`O'#EyOLkQtO'#E}OOQS'#Ez'#EzOOQS'#Ib'#IbOM`QaO,5:wO*kQaO,5;nOOQS,5;p,5;pO*kQaO,5;pOMgQd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v>^+z-Q9V9X:d:e:f:g:h:j:k:m:o:p:r:t:v:x:z:|;O;Q;S;U;W;Y;[;^;`;e;g;i;t_0V1]9W:i:l:n:q:s:u:w:y:{:};P;R;T;V;X;Z;];_;a;f;h;u AssignmentExpression ArrayExpression ValueList & VariadicUnpacking ... Pair [ ] ListExpression ValueList Pair Pair SubscriptExpression MemberExpression -> ?-> VariableName DynamicVariable $ ${ CallExpression ArgList NamedArgument SpreadArgument CastExpression UnionType LogicOp OptionalType NamedType QualifiedName \\ NamespaceName ScopedExpression :: ClassMemberName AssignOp UpdateExpression UpdateOp YieldExpression BinaryExpression LogicOp LogicOp LogicOp BitOp BitOp BitOp CompareOp CompareOp BitOp ArithOp ConcatOp ArithOp ArithOp IncludeExpression RequireExpression CloneExpression UnaryExpression ControlOp LogicOp PrintIntrinsic FunctionExpression static ParamList Parameter #[ Attributes Attribute VariadicParameter PropertyParameter UseList ArrowFunction NewExpression class BaseClause ClassInterfaceClause DeclarationList ConstDeclaration VariableDeclarator PropertyDeclaration VariableDeclarator MethodDeclaration UseDeclaration UseList UseInsteadOfClause UseAsClause UpdateExpression ArithOp ShellExpression ThrowExpression Integer Float String MemberExpression SubscriptExpression UnaryExpression ArithOp Interpolation String IfStatement ColonBlock SwitchStatement Block CaseStatement DefaultStatement ColonBlock WhileStatement EmptyStatement DoStatement ForStatement ForSpec SequenceExpression ForeachStatement ForSpec Pair GotoStatement ContinueStatement BreakStatement ReturnStatement TryStatement CatchDeclarator DeclareStatement EchoStatement UnsetStatement ConstDeclaration FunctionDefinition ClassDeclaration InterfaceDeclaration TraitDeclaration EnumDeclaration EnumBody EnumCase NamespaceDefinition NamespaceUseDeclaration UseGroup UseClause UseClause GlobalDeclaration FunctionStaticDeclaration Program",maxTerm:304,nodeProps:[["group",-36,2,8,49,81,83,85,88,93,94,102,106,107,110,111,114,118,123,126,130,132,133,147,148,149,150,153,154,164,165,179,181,182,183,184,185,191,"Expression",-28,74,78,80,82,192,194,199,201,202,205,208,209,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!B`;=`<%l!?X<%lO!=uR!BcWO#O!?X#O#P!?q#P#S!?X#S#T!@j#T;'S!?X;'S;=`!@o;=`<%l!=u<%lO!?XR!CSV${Q&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zR!ClP;=`<%l!=uV!CvV!oU&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zV!DfY#}Q#lS&wPOY$zYZ%fZ!^$z!^!_%k!_!`6U!`#p$z#p#q!EU#q;'S$z;'S;=`&W<%lO$zR!E]V#{Q&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zR!EyV!nQ&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zR!FgV$^Q&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$z",tokenizers:[R,U,V,0,1,2,3,l],topRules:{Template:[0,72],Program:[1,232]},dynamicPrecedences:{284:1},specialized:[{term:81,get:(O,$)=>n(O)<<1,external:n},{term:81,get:O=>v[O]||-1}],tokenPrec:29354}),m=y.define({name:"php",parser:b.configure({props:[a.add({IfStatement:z({except:/^\s*({|else\b|elseif\b|endif\b)/}),TryStatement:z({except:/^\s*({|catch\b|finally\b)/}),SwitchBody:O=>{let $=O.textAfter,Q=/^\s*\}/.test($),i=/^\s*(case|default)\b/.test($);return O.baseIndent+(Q?0:i?1:2)*O.unit},ColonBlock:O=>O.baseIndent+O.unit,"Block EnumBody DeclarationList":S({closing:"}"}),ArrowFunction:O=>O.baseIndent+O.unit,"String BlockComment":()=>null,Statement:z({except:/^({|end(for|foreach|switch|while)\b)/})}),P.add({"Block EnumBody DeclarationList SwitchBody ArrayExpression ValueList":W,ColonBlock:O=>({from:O.from+1,to:O.to}),BlockComment:O=>({from:O.from+2,to:O.to-2})})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"},line:"//"},indentOnInput:/^\s*(?:case |default:|end(?:if|for(?:each)?|switch|while)|else(?:if)?|\{|\})$/,wordChars:"$",closeBrackets:{stringPrefixes:["b","B"]}}});function p(O={}){let $,Q=[];if(null===O.baseLanguage);else if(O.baseLanguage)$=O.baseLanguage;else{let O=s({matchClosingTags:!1});Q.push(O.support),$=O.language}return new T(m.configure({wrap:$&&e((O=>O.type.isTop?{parser:$.parser,overlay:O=>"Text"==O.name}:null)),top:O.plain?"Program":"Template"}),Q)}export{p as php,m as phpLanguage}; diff --git a/nicegui/elements/lib/codemirror/index-C4TeAHpL.js b/nicegui/elements/lib/codemirror/index-C4TeAHpL.js new file mode 100644 index 000000000..1c2a58e8e --- /dev/null +++ b/nicegui/elements/lib/codemirror/index-C4TeAHpL.js @@ -0,0 +1 @@ +import{E as O,C as i,L as a}from"./index-Ckjrdmtm.js";import{s as n,t as Q,e,b as r,L as t,i as o,h as d,f as T,j as s,a as S,I as l,d as p,N as q,k as $}from"./editor-DzvLhhiW.js";const P=10,m=new Set([25,49,50,263,65,130,56,57,238,62,63,72,73,77,60,61,151,152,155,112]);function h(O){return O==P||13==O}function g(O){return O>=48&&O<=57||O>=65&&O<=70||O>=97&&O<=102}const c=new O(((O,i)=>{let a;if(O.next<0)O.acceptToken(199);else if(i.context.flags&W)h(O.next)&&O.acceptToken(198,1);else if(((a=O.peek(-1))<0||h(a))&&i.canShift(197)){let i=0;for(;32==O.next||9==O.next;)O.advance(),i++;O.next!=P&&13!=O.next&&35!=O.next||O.acceptToken(197,-i)}else h(O.next)&&O.acceptToken(196,1)}),{contextual:!0}),X=new O(((O,i)=>{let a=i.context;if(a.flags)return;let n=O.peek(-1);if(n==P||13==n){let i=0,n=0;for(;;){if(32==O.next)i++;else{if(9!=O.next)break;i+=8-i%8}O.advance(),n++}i!=a.indent&&O.next!=P&&13!=O.next&&35!=O.next&&(i[O,2|i]))),_=new i({start:x,reduce:(O,i,a,n)=>O.flags&W&&m.has(i)||(71==i||72==i)&&2&O.flags?O.parent:O,shift:(O,i,a,n)=>194==i?new R(O,function(O){let i=0;for(let a=0;aO.hash}),u=new O((O=>{for(let i=0;i<5;i++){if(O.next!="print".charCodeAt(i))return;O.advance()}if(!/\w/.test(String.fromCharCode(O.next)))for(let i=0;;i++){let a=O.peek(i);if(32!=a&&9!=a)return void(40!=a&&46!=a&&a!=P&&13!=a&&35!=a&&O.acceptToken(1))}})),U=new O(((O,i)=>{let{flags:a}=i.context,n=a&y?34:39,Q=(a&z)>0,e=!(a&f),r=(a&v)>0,t=O.pos;for(;!(O.next<0);)if(r&&123==O.next){if(123!=O.peek(1)){if(O.pos==t)return void O.acceptToken(3,1);break}O.advance(2)}else{if(e&&92==O.next){if(O.pos==t){O.advance();let i=O.next;return i>=0&&(O.advance(),V(O,i)),void O.acceptToken(2)}break}if(O.next==n&&(!Q||O.peek(1)==n&&O.peek(2)==n)){if(O.pos==t)return void O.acceptToken(201,Q?3:1);break}if(O.next==P){if(Q)O.advance();else if(O.pos==t)return void O.acceptToken(201);break}O.advance()}O.pos>t&&O.acceptToken(200)}));function V(O,i){if(111==i)for(let i=0;i<2&&O.next>=48&&O.next<=55;i++)O.advance();else if(120==i)for(let i=0;i<2&&g(O.next);i++)O.advance();else if(117==i)for(let i=0;i<4&&g(O.next);i++)O.advance();else if(85==i)for(let i=0;i<8&&g(O.next);i++)O.advance();else if(78==i&&123==O.next){for(O.advance();O.next>=0&&125!=O.next&&39!=O.next&&34!=O.next&&O.next!=P;)O.advance();125==O.next&&O.advance()}}const G=n({'async "*" "**" FormatConversion FormatSpec':Q.modifier,"for while if elif else try except finally return raise break continue with pass assert await yield match case":Q.controlKeyword,"in not and or is del":Q.operatorKeyword,"from def class global nonlocal lambda":Q.definitionKeyword,import:Q.moduleKeyword,"with as print":Q.keyword,Boolean:Q.bool,None:Q.null,VariableName:Q.variableName,"CallExpression/VariableName":Q.function(Q.variableName),"FunctionDefinition/VariableName":Q.function(Q.definition(Q.variableName)),"ClassDefinition/VariableName":Q.definition(Q.className),PropertyName:Q.propertyName,"CallExpression/MemberExpression/PropertyName":Q.function(Q.propertyName),Comment:Q.lineComment,Number:Q.number,String:Q.string,FormatString:Q.special(Q.string),Escape:Q.escape,UpdateOp:Q.updateOperator,"ArithOp!":Q.arithmeticOperator,BitOp:Q.bitwiseOperator,CompareOp:Q.compareOperator,AssignOp:Q.definitionOperator,Ellipsis:Q.punctuation,At:Q.meta,"( )":Q.paren,"[ ]":Q.squareBracket,"{ }":Q.brace,".":Q.derefOperator,", ;":Q.separator}),b={__proto__:null,await:44,or:54,and:56,in:60,not:62,is:64,if:70,else:72,lambda:76,yield:94,from:96,async:102,for:104,None:162,True:164,False:164,del:178,pass:182,break:186,continue:190,return:194,raise:202,import:206,as:208,global:212,nonlocal:214,assert:218,type:223,elif:236,while:240,try:246,except:248,finally:250,with:254,def:258,class:268,match:279,case:285},Z=a.deserialize({version:14,states:"##jO`QeOOP$}OSOOO&WQtO'#HUOOQS'#Co'#CoOOQS'#Cp'#CpO'vQdO'#CnO*UQtO'#HTOOQS'#HU'#HUOOQS'#DU'#DUOOQS'#HT'#HTO*rQdO'#D_O+VQdO'#DfO+gQdO'#DjO+zOWO'#DuO,VOWO'#DvO.[QtO'#GuOOQS'#Gu'#GuO'vQdO'#GtO0ZQtO'#GtOOQS'#Eb'#EbO0rQdO'#EcOOQS'#Gs'#GsO0|QdO'#GrOOQV'#Gr'#GrO1XQdO'#FYOOQS'#G^'#G^O1^QdO'#FXOOQV'#IS'#ISOOQV'#Gq'#GqOOQV'#Fq'#FqQ`QeOOO'vQdO'#CqO1lQdO'#C}O1sQdO'#DRO2RQdO'#HYO2cQtO'#EVO'vQdO'#EWOOQS'#EY'#EYOOQS'#E['#E[OOQS'#E^'#E^O2wQdO'#E`O3_QdO'#EdO3rQdO'#EfO3zQtO'#EfO1XQdO'#EiO0rQdO'#ElO1XQdO'#EnO0rQdO'#EtO0rQdO'#EwO4VQdO'#EyO4^QdO'#FOO4iQdO'#EzO0rQdO'#FOO1XQdO'#FQO1XQdO'#FVO4nQdO'#F[P4uOdO'#GpPOOO)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o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!,PV&n`Ow%Twx!,fx#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!,mT&n`&iZO#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%To!-Vi&n`&YS%uZOr%TrsNWsw%Twx! vx!Q%T!Q![JU![!c%T!c!dJU!d!eLx!e!hJU!h!i!(`!i!}JU!}#R%T#R#SJU#S#T%T#T#UJU#U#VLx#V#YJU#Y#Z!(`#Z#oJU#p#q%T#r$g%T$g;'SJU;'S;=`KW<%lOJUo!.}a&n`&YS%uZOr%Trs)Ysw%Twx.Ux!Q%T!Q![JU![!c%T!c!}JU!}#R%T#R#SJU#S#T%T#T#oJU#p#q%T#r$g%T$g;'SJU;'S;=`KW<%lOJUk!0ZT!XZ&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tc!0qT!WR&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tj!1XV%kQ&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%T~!1sO!]~k!1zV%jR&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%T~!2fO![~i!2mT%tX&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%T",tokenizers:[u,X,c,U,0,1,2,3,4],topRules:{Script:[0,5]},specialized:[{term:221,get:O=>b[O]||-1}],tokenPrec:7652}),w=new q,j=new Set(["Script","Body","FunctionDefinition","ClassDefinition","LambdaExpression","ForStatement","MatchClause"]);function E(O){return(i,a,n)=>{if(n)return!1;let Q=i.node.getChild("VariableName");return Q&&a(Q,O),!0}}const Y={FunctionDefinition:E("function"),ClassDefinition:E("class"),ForStatement(O,i,a){if(a)for(let a=O.node.firstChild;a;a=a.nextSibling)if("VariableName"==a.name)i(a,"variable");else if("in"==a.name)break},ImportStatement(O,i){var a,n;let{node:Q}=O,e="from"==(null===(a=Q.firstChild)||void 0===a?void 0:a.name);for(let O=Q.getChild("import");O;O=O.nextSibling)"VariableName"==O.name&&"as"!=(null===(n=O.nextSibling)||void 0===n?void 0:n.name)&&i(O,e?"variable":"namespace")},AssignStatement(O,i){for(let a=O.node.firstChild;a;a=a.nextSibling)if("VariableName"==a.name)i(a,"variable");else if(":"==a.name||"AssignOp"==a.name)break},ParamList(O,i){for(let a=null,n=O.node.firstChild;n;n=n.nextSibling)"VariableName"!=n.name||a&&/\*|AssignOp/.test(a.name)||i(n,"variable"),a=n},CapturePattern:E("variable"),AsPattern:E("variable"),__proto__:null};function F(O,i){let a=w.get(i);if(a)return a;let n=[],Q=!0;function e(i,a){let Q=O.sliceString(i.from,i.to);n.push({label:Q,type:a})}return i.cursor(l.IncludeAnonymous).iterate((i=>{if(i.name){let O=Y[i.name];if(O&&O(i,e,Q)||!Q&&j.has(i.name))return!1;Q=!1}else if(i.to-i.from>8192){for(let a of F(O,i.node))n.push(a);return!1}})),w.set(i,n),n}const J=/^[\w\xa1-\uffff][\w\d\xa1-\uffff]*$/,A=["String","FormatString","Comment","PropertyName"];function C(O){let i=e(O.state).resolveInner(O.pos,-1);if(A.indexOf(i.name)>-1)return null;let a="VariableName"==i.name||i.to-i.from<20&&J.test(O.state.sliceDoc(i.from,i.to));if(!a&&!O.explicit)return null;let n=[];for(let a=i;a;a=a.parent)j.has(a.name)&&(n=n.concat(F(O.state.doc,a)));return{options:n,from:a?i.from:O.pos,validFor:J}}const N=["__annotations__","__builtins__","__debug__","__doc__","__import__","__name__","__loader__","__package__","__spec__","False","None","True"].map((O=>({label:O,type:"constant"}))).concat(["ArithmeticError","AssertionError","AttributeError","BaseException","BlockingIOError","BrokenPipeError","BufferError","BytesWarning","ChildProcessError","ConnectionAbortedError","ConnectionError","ConnectionRefusedError","ConnectionResetError","DeprecationWarning","EOFError","Ellipsis","EncodingWarning","EnvironmentError","Exception","FileExistsError","FileNotFoundError","FloatingPointError","FutureWarning","GeneratorExit","IOError","ImportError","ImportWarning","IndentationError","IndexError","InterruptedError","IsADirectoryError","KeyError","KeyboardInterrupt","LookupError","MemoryError","ModuleNotFoundError","NameError","NotADirectoryError","NotImplemented","NotImplementedError","OSError","OverflowError","PendingDeprecationWarning","PermissionError","ProcessLookupError","RecursionError","ReferenceError","ResourceWarning","RuntimeError","RuntimeWarning","StopAsyncIteration","StopIteration","SyntaxError","SyntaxWarning","SystemError","SystemExit","TabError","TimeoutError","TypeError","UnboundLocalError","UnicodeDecodeError","UnicodeEncodeError","UnicodeError","UnicodeTranslateError","UnicodeWarning","UserWarning","ValueError","Warning","ZeroDivisionError"].map((O=>({label:O,type:"type"})))).concat(["bool","bytearray","bytes","classmethod","complex","float","frozenset","int","list","map","memoryview","object","range","set","staticmethod","str","super","tuple","type"].map((O=>({label:O,type:"class"})))).concat(["abs","aiter","all","anext","any","ascii","bin","breakpoint","callable","chr","compile","delattr","dict","dir","divmod","enumerate","eval","exec","exit","filter","format","getattr","globals","hasattr","hash","help","hex","id","input","isinstance","issubclass","iter","len","license","locals","max","min","next","oct","open","ord","pow","print","property","quit","repr","reversed","round","setattr","slice","sorted","sum","vars","zip"].map((O=>({label:O,type:"function"})))),I=[$("def ${name}(${params}):\n\t${}",{label:"def",detail:"function",type:"keyword"}),$("for ${name} in ${collection}:\n\t${}",{label:"for",detail:"loop",type:"keyword"}),$("while ${}:\n\t${}",{label:"while",detail:"loop",type:"keyword"}),$("try:\n\t${}\nexcept ${error}:\n\t${}",{label:"try",detail:"/ except block",type:"keyword"}),$("if ${}:\n\t\n",{label:"if",detail:"block",type:"keyword"}),$("if ${}:\n\t${}\nelse:\n\t${}",{label:"if",detail:"/ else block",type:"keyword"}),$("class ${name}:\n\tdef __init__(self, ${params}):\n\t\t\t${}",{label:"class",detail:"definition",type:"keyword"}),$("import ${module}",{label:"import",detail:"statement",type:"keyword"}),$("from ${module} import ${names}",{label:"from",detail:"import",type:"keyword"})],D=r(A,p(N.concat(I)));function H(O){let{node:i,pos:a}=O,n=O.lineIndent(a,-1),Q=null;for(;;){let e=i.childBefore(a);if(!e)break;if("Comment"==e.name)a=e.from;else if("Body"==e.name)O.baseIndentFor(e)+O.unit<=n&&(Q=e),i=e;else{if(!e.type.is("Statement"))break;i=e}}return Q}function L(O,i){let a=O.baseIndentFor(i),n=O.lineAt(O.pos,-1),Q=n.from+n.text.length;return/^\s*($|#)/.test(n.text)&&O.node.toa?null:a+O.unit}const B=t.define({name:"python",parser:Z.configure({props:[o.add({Body:O=>{var i;return null!==(i=L(O,H(O)||O.node))&&void 0!==i?i:O.continue()},IfStatement:O=>/^\s*(else:|elif )/.test(O.textAfter)?O.baseIndent:O.continue(),"ForStatement WhileStatement":O=>/^\s*else:/.test(O.textAfter)?O.baseIndent:O.continue(),TryStatement:O=>/^\s*(except |finally:|else:)/.test(O.textAfter)?O.baseIndent:O.continue(),"TupleExpression ComprehensionExpression ParamList ArgList ParenthesizedExpression":d({closing:")"}),"DictionaryExpression DictionaryComprehensionExpression SetExpression SetComprehensionExpression":d({closing:"}"}),"ArrayExpression ArrayComprehensionExpression":d({closing:"]"}),"String FormatString":()=>null,Script:O=>{var i;let a=H(O);return null!==(i=a&&L(O,a))&&void 0!==i?i:O.continue()}}),T.add({"ArrayExpression DictionaryExpression SetExpression TupleExpression":s,Body:(O,i)=>({from:O.from+1,to:O.to-(O.to==i.doc.length?0:1)})})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"'''",'"""'],stringPrefixes:["f","fr","rf","r","u","b","br","rb","F","FR","RF","R","U","B","BR","RB"]},commentTokens:{line:"#"},indentOnInput:/^\s*([\}\]\)]|else:|elif |except |finally:)$/}});function K(){return new S(B,[B.data.of({autocomplete:C}),B.data.of({autocomplete:D})])}export{D as globalCompletion,C as localCompletionSource,K as python,B as pythonLanguage}; diff --git a/nicegui/elements/lib/codemirror/index-CB606nqP.js b/nicegui/elements/lib/codemirror/index-CB606nqP.js new file mode 100644 index 000000000..998a5b6bb --- /dev/null +++ b/nicegui/elements/lib/codemirror/index-CB606nqP.js @@ -0,0 +1 @@ +import{E as O,L as Q}from"./index-Ckjrdmtm.js";import{s as $,t as X,L as e,i,c as a,g as r,h as P,f as U,j as t,a as Y}from"./editor-DzvLhhiW.js";const S=new O((O=>{if(76==O.next||85==O.next?O.advance():117==O.next&&(O.advance(),56==O.next&&O.advance()),82!=O.next)return;if(O.advance(),34!=O.next)return;O.advance();let Q="";for(;40!=O.next;){if(32==O.next||O.next<=13||41==O.next)return;Q+=String.fromCharCode(O.next),O.advance()}for(O.advance();;){if(O.next<0)return O.acceptToken(1);if(41==O.next){let $=!0;for(let X=0;$&&X{if(62==O.next)62==O.peek(1)&&O.acceptToken(2,1);else{let Q=!1,$=0;for(;;$++){if(O.next>=65&&O.next<=90)Q=!0;else{if(O.next>=97&&O.next<=122)return;if(95!=O.next&&!(O.next>=48&&O.next<=57))break}O.advance()}Q&&$>1&&O.acceptToken(3)}}),{extend:!0}),n=$({"typedef struct union enum class typename decltype auto template operator friend noexcept namespace using requires concept import export module __attribute__ __declspec __based":X.definitionKeyword,"extern MsCallModifier MsPointerModifier extern static register thread_local inline const volatile restrict _Atomic mutable constexpr constinit consteval virtual explicit VirtualSpecifier Access":X.modifier,"if else switch for while do case default return break continue goto throw try catch":X.controlKeyword,"co_return co_yield co_await":X.controlKeyword,"new sizeof delete static_assert":X.operatorKeyword,"NULL nullptr":X.null,this:X.self,"True False":X.bool,"TypeSize PrimitiveType":X.standard(X.typeName),TypeIdentifier:X.typeName,FieldIdentifier:X.propertyName,"CallExpression/FieldExpression/FieldIdentifier":X.function(X.propertyName),"ModuleName/Identifier":X.namespace,PartitionName:X.labelName,StatementIdentifier:X.labelName,"Identifier DestructorName":X.variableName,"CallExpression/Identifier":X.function(X.variableName),"CallExpression/ScopedIdentifier/Identifier":X.function(X.variableName),"FunctionDeclarator/Identifier FunctionDeclarator/DestructorName":X.function(X.definition(X.variableName)),NamespaceIdentifier:X.namespace,OperatorName:X.operator,ArithOp:X.arithmeticOperator,LogicOp:X.logicOperator,BitOp:X.bitwiseOperator,CompareOp:X.compareOperator,AssignOp:X.definitionOperator,UpdateOp:X.updateOperator,LineComment:X.lineComment,BlockComment:X.blockComment,Number:X.number,String:X.string,"RawString SystemLibString":X.special(X.string),CharLiteral:X.character,EscapeSequence:X.escape,"UserDefinedLiteral/Identifier":X.literal,PreProcArg:X.meta,"PreprocDirectiveName #include #ifdef #ifndef #if #define #else #endif #elif":X.processingInstruction,MacroName:X.special(X.name),"( )":X.paren,"[ ]":X.squareBracket,"{ }":X.brace,"< >":X.angleBracket,". ->":X.derefOperator,", ;":X.separator}),W={__proto__:null,bool:34,char:34,int:34,float:34,double:34,void:34,size_t:34,ssize_t:34,intptr_t:34,uintptr_t:34,charptr_t:34,int8_t:34,int16_t:34,int32_t:34,int64_t:34,uint8_t:34,uint16_t:34,uint32_t:34,uint64_t:34,char8_t:34,char16_t:34,char32_t:34,char64_t:34,const:68,volatile:70,restrict:72,_Atomic:74,mutable:76,constexpr:78,constinit:80,consteval:82,struct:86,__declspec:90,final:148,override:148,public:152,private:152,protected:152,virtual:154,extern:160,static:162,register:164,inline:166,thread_local:168,__attribute__:172,__based:178,__restrict:180,__uptr:180,__sptr:180,_unaligned:180,__unaligned:180,noexcept:194,requires:198,TRUE:784,true:784,FALSE:786,false:786,typename:218,class:220,template:234,throw:248,__cdecl:256,__clrcall:256,__stdcall:256,__fastcall:256,__thiscall:256,__vectorcall:256,try:260,catch:264,export:282,import:286,case:296,default:298,if:308,else:314,switch:318,do:322,while:324,for:330,return:334,break:338,continue:342,goto:346,co_return:350,co_yield:354,using:362,typedef:366,namespace:380,new:398,delete:400,co_await:402,concept:406,enum:410,static_assert:414,friend:422,union:424,explicit:430,operator:444,module:456,signed:518,unsigned:518,long:518,short:518,decltype:528,auto:530,sizeof:566,NULL:572,nullptr:586,this:588},o={__proto__:null,"<":131},s={__proto__:null,">":135},x={__proto__:null,operator:388,new:576,delete:582},f=Q.deserialize({version:14,states:"$:|Q!QQVOOP'gOUOOO(XOWO'#CdO,RQUO'#CgO,]Q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Expression CallExpression PrimitiveType FieldExpression FieldIdentifier DestructorName TemplateMethod ScopedFieldIdentifier NamespaceIdentifier TemplateType TypeIdentifier ScopedTypeIdentifier ScopedNamespaceIdentifier :: NamespaceIdentifier TypeIdentifier TemplateArgumentList < TypeDescriptor const volatile restrict _Atomic mutable constexpr constinit consteval StructSpecifier struct MsDeclspecModifier __declspec ) Attribute AttributeName Identifier AttributeArgs { } [ ] UpdateOp ArithOp ArithOp ArithOp LogicOp BitOp BitOp BitOp CompareOp CompareOp CompareOp > CompareOp BitOp UpdateOp , Number CharLiteral AttributeArgs VirtualSpecifier BaseClassClause Access virtual FieldDeclarationList FieldDeclaration extern static register inline thread_local AttributeSpecifier __attribute__ PointerDeclarator MsBasedModifier __based MsPointerModifier FunctionDeclarator ParameterList ParameterDeclaration PointerDeclarator FunctionDeclarator Noexcept noexcept RequiresClause requires True False ParenthesizedExpression CommaExpression LambdaExpression LambdaCaptureSpecifier TemplateParameterList OptionalParameterDeclaration TypeParameterDeclaration typename class VariadicParameterDeclaration VariadicDeclarator ReferenceDeclarator OptionalTypeParameterDeclaration VariadicTypeParameterDeclaration TemplateTemplateParameterDeclaration template AbstractFunctionDeclarator AbstractPointerDeclarator AbstractArrayDeclarator AbstractParenthesizedDeclarator AbstractReferenceDeclarator ThrowSpecifier throw TrailingReturnType CompoundStatement FunctionDefinition MsCallModifier TryStatement try CatchClause catch LinkageSpecification Declaration InitDeclarator InitializerList InitializerPair SubscriptDesignator FieldDesignator ExportDeclaration export ImportDeclaration import ModuleName PartitionName HeaderName CaseStatement case default LabeledStatement StatementIdentifier ExpressionStatement IfStatement if ConditionClause Declaration else SwitchStatement switch DoStatement do while WhileStatement ForStatement for ReturnStatement return BreakStatement break ContinueStatement continue GotoStatement goto CoReturnStatement co_return CoYieldStatement co_yield AttributeStatement ForRangeLoop AliasDeclaration using TypeDefinition typedef PointerDeclarator FunctionDeclarator ArrayDeclarator ParenthesizedDeclarator ThrowStatement NamespaceDefinition namespace ScopedIdentifier Identifier OperatorName operator ArithOp BitOp CompareOp LogicOp new delete co_await ConceptDefinition concept UsingDeclaration enum StaticAssertDeclaration static_assert ConcatenatedString TemplateDeclaration FriendDeclaration friend union FunctionDefinition ExplicitFunctionSpecifier explicit FieldInitializerList FieldInitializer DefaultMethodClause DeleteMethodClause FunctionDefinition OperatorCast operator TemplateInstantiation FunctionDefinition FunctionDefinition Declaration ModuleDeclaration module RequiresExpression RequirementList SimpleRequirement TypeRequirement CompoundRequirement ReturnTypeRequirement ConstraintConjuction LogicOp ConstraintDisjunction LogicOp ArrayDeclarator ParenthesizedDeclarator ReferenceDeclarator TemplateFunction OperatorName StructuredBindingDeclarator ArrayDeclarator ParenthesizedDeclarator ReferenceDeclarator BitfieldClause FunctionDefinition FunctionDefinition Declaration FunctionDefinition Declaration AccessSpecifier UnionSpecifier ClassSpecifier EnumSpecifier SizedTypeSpecifier TypeSize EnumeratorList Enumerator DependentType Decltype decltype auto PlaceholderTypeSpecifier ParameterPackExpansion ParameterPackExpansion FieldIdentifier PointerExpression SubscriptExpression BinaryExpression ArithOp LogicOp LogicOp BitOp UnaryExpression LogicOp BitOp UpdateExpression CastExpression SizeofExpression sizeof CoAwaitExpression CompoundLiteralExpression NULL NewExpression new NewDeclarator DeleteExpression delete ParameterPackExpansion nullptr this UserDefinedLiteral ParamPack #define PreprocArg #if #ifdef #ifndef #else #endif #elif PreprocDirectiveName Macro Program",maxTerm:425,nodeProps:[["group",-35,1,8,11,14,15,16,18,71,72,100,101,102,104,191,208,229,242,243,270,271,272,277,280,281,282,284,285,286,287,290,292,293,294,295,296,"Expression",-13,17,24,25,26,42,255,256,257,258,262,263,265,266,"Type",-19,126,129,147,150,152,153,158,160,163,164,166,168,170,172,174,176,178,179,188,"Statement"],["isolate",-4,4,5,8,10,""]],propSources:[n],skippedNodes:[0,3,4,5,6,7,10,297,298,299,300,301,302,303,304,305,306,347,348],repeatNodeCount:41,tokenData:"&*r7ZR!UOX$eXY({YZ.gZ]$e]^+P^p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'S;=`(u<%lO$e3o&$vY)T,g%^!b)ZW(pQ'f&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e'V&%qY!Ua)ZW(pQ'f&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e(]&&nc)ZW(pQ%[!b'RP'f&jOX$eXY&'yZp$epq&'yqr$ers%^sw$ewx(Ox!c$e!c!}&)_!}#O$e#O#P&f#P#R$e#R#S&)_#S#T$e#T#o&)_#o;'S$e;'S;=`(u<%lO$e&y&(Sc)ZW(pQ'f&jOX$eXY&'yZp$epq&'yqr$ers%^sw$ewx(Ox!c$e!c!}&)_!}#O$e#O#P&f#P#R$e#R#S&)_#S#T$e#T#o&)_#o;'S$e;'S;=`(u<%lO$e&y&)jb)ZW(pQdT'f&jOY$eZr$ers%^sw$ewx(Ox!Q$e!Q![&)_![!c$e!c!}&)_!}#O$e#O#P&f#P#R$e#R#S&)_#S#T$e#T#o&)_#o;'S$e;'S;=`(u<%lO$e",tokenizers:[S,l,0,1,2,3,4,5,6,7,8,9],topRules:{Program:[0,307]},dynamicPrecedences:{87:1,94:1,119:1,184:1,187:-10,240:-10,241:1,244:-1,246:-10,247:1,262:-1,267:2,268:2,306:-10,365:3,417:1,418:3,419:1,420:1},specialized:[{term:356,get:O=>W[O]||-1},{term:32,get:O=>o[O]||-1},{term:66,get:O=>s[O]||-1},{term:363,get:O=>x[O]||-1}],tokenPrec:24891}),c=e.define({name:"cpp",parser:f.configure({props:[i.add({IfStatement:a({except:/^\s*({|else\b)/}),TryStatement:a({except:/^\s*({|catch)\b/}),LabeledStatement:r,CaseStatement:O=>O.baseIndent+O.unit,BlockComment:()=>null,CompoundStatement:P({closing:"}"}),Statement:a({except:/^{/})}),U.add({"DeclarationList CompoundStatement EnumeratorList FieldDeclarationList InitializerList":t,BlockComment:O=>({from:O.from+2,to:O.to-2})})]}),languageData:{commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\})$/,closeBrackets:{stringPrefixes:["L","u","U","u8","LR","UR","uR","u8R","R"]}}});function Z(){return new Y(c)}export{Z as cpp,c as cppLanguage}; diff --git a/nicegui/elements/lib/codemirror/index-CG3aUV_L.js b/nicegui/elements/lib/codemirror/index-CG3aUV_L.js new file mode 100644 index 000000000..e2247c56a --- /dev/null +++ b/nicegui/elements/lib/codemirror/index-CG3aUV_L.js @@ -0,0 +1 @@ +import{E as O,L as Q,a as e,C as a}from"./index-Ckjrdmtm.js";import{s as t,t as X,k as P,e as i,L as n,i as o,c,g as $,h as l,f as r,j as S,a as T,b as p,d as W,I as V,N as m}from"./editor-DzvLhhiW.js";const R=new O(((O,Q)=>{for(let e=0,a=O.next;(Q.context&&(a<0||10==a||13==a||47==a&&47==O.peek(e+1))||41==a||125==a)&&O.acceptToken(177),32==a||9==a;)a=O.peek(++e)}),{contextual:!0});let Y=new Set([95,184,20,12,17,144,145,142,148,13,53,25]);const x=new a({start:!1,shift:(O,Q)=>179==Q?O:Y.has(Q)}),w=t({"func interface struct chan map const type var":X.definitionKeyword,"import package":X.moduleKeyword,"switch for go select return break continue goto fallthrough case if else defer":X.controlKeyword,range:X.keyword,Bool:X.bool,String:X.string,Rune:X.character,Number:X.number,Nil:X.null,VariableName:X.variableName,DefName:X.definition(X.variableName),TypeName:X.typeName,LabelName:X.labelName,FieldName:X.propertyName,"FunctionDecl/DefName":X.function(X.definition(X.variableName)),"TypeSpec/DefName":X.definition(X.typeName),"CallExpr/VariableName":X.function(X.variableName),LineComment:X.lineComment,BlockComment:X.blockComment,LogicOp:X.logicOperator,ArithOp:X.arithmeticOperator,BitOp:X.bitwiseOperator,"DerefOp .":X.derefOperator,"UpdateOp IncDecOp":X.updateOperator,CompareOp:X.compareOperator,"= :=":X.definitionOperator,"<-":X.operator,'~ "*"':X.modifier,"; ,":X.separator,"... :":X.punctuation,"( )":X.paren,"[ ]":X.squareBracket,"{ }":X.brace}),s={__proto__:null,package:10,import:18,true:380,false:380,nil:383,struct:48,func:68,interface:78,chan:94,map:118,make:157,new:159,const:204,type:212,var:224,if:236,else:238,switch:242,case:248,default:250,for:260,range:266,go:270,select:274,return:284,break:288,continue:290,goto:292,fallthrough:296,defer:300},k=Q.deserialize({version:14,states:"!=xO#{QQOOP$SOQOOO&UQTO'#CbO&]QRO'#FlO]QQOOOOQP'#Cn'#CnOOQP'#Co'#CoO&eQQO'#C|O(kQQO'#C{O)]QRO'#GiO+tQQO'#D_OOQP'#Ge'#GeO+{QQO'#GeO.aQTO'#GaO.hQQO'#D`OOQP'#Gm'#GmO.mQRO'#GdO/hQQO'#DgOOQP'#Gd'#GdO/uQQO'#DrO2bQQO'#DsO4QQTO'#GqO,^QTO'#GaO4XQQO'#DxO4^QQO'#D{OOQO'#EQ'#EQOOQO'#ER'#EROOQO'#ES'#ESOOQO'#ET'#ETO4cQQO'#EPO5}QQO'#EPOOQP'#Ga'#GaO6UQQO'#E`O6^QQO'#EcOOQP'#G`'#G`O6cQQO'#EsOOQP'#G_'#G_O&]QRO'#FnOOQO'#Fn'#FnO9QQQO'#G^QOQQOOO&]QROOO9XQQO'#C`O9^QSO'#CdO9lQQO'#C}O9tQQO'#DSO9yQQO'#D[O:kQQO'#CsO:pQQO'#DhO:uQQO'#EeO:}QQO'#EiO;VQQO'#EoO;_QQO'#EuOPQSO7+%hOOQP7+%h7+%hO4cQQO7+%hOOQP1G0Q1G0QO!>^QQO1G0QOOQP1G0U1G0UO!>fQQO1G0UOF|QQO1G0UOOQO,5nAN>nO4cQQOAN>nO!IsQSOAN>nOOQP<nQQO'#FrOOQO,5vAN>vO!LtQQOAN>vP.hQQO'#F|OOQPG25XG25XO!LyQQOG25bO!MOQQO'#FPOOQPG25bG25bO!MZQQOG25bOOQPLD)tLD)tOOQPG24bG24bO!JqQQOLD*|O!9OQQO'#GQO!McQQO,5;kOOQP,5;k,5;kO?tQQO'#FQO!MnQQO'#FQO!MsQQOLD*|OOQP!$'Nh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y&](S([(o*QQ&f$PQ&h$QQ&n$TQ&r$WS'h%W-YS'i%Y-ZW'l%a(|+R+lS'{%x%yQ(Q&OQ(Y&WQ(d&`Q(p&mU)k'e)l*pQ)z'|Q*[(cS*^(i-[Q+P*`R-c-dS#w|!pS$w!j-TQ&T#xQ(R&QQ(W&UR(X&VT%|#u&OhqOScw!U!V#O#k#n&|'Y+gU$Q!R$R&jU$W!T$X&uQ$e!WY%y#u&O'})|*wQ)`']V-S'W)W*kS&[#y&]S*R(S(oR*z*QY&Y#y&](S(o*QR*W(['``OSWYacmnw!O!U!V!W!X!Z!_!h!q!t!z#O#Q#S#T#V#^#_#`#a#b#c#e#h#i#j#k#n#u#v#y#|$P$Q$T$W$f$v$x%W%Y%a%c%x%y&O&W&]&`&g&m&s&x&y&|'P'R'T'U'W'X'Y']'a'b'e'o'r'w'|'}(S([(c(i(k(o(t(|)V)W)i)l)s)|*Q*`*h*k*l*n*o*p*r*w+R+g+j+l+|+},Q,R,S,T,U,V,W,X,Y,Z,[,],^,_,`,a,b,c,h,{,|,}-O-P-Q-U-V-W-X-Y-Z-[-]-^-_-dS&_#}&dW(S&S*S*|+^Q(e&bQ(o&lR*x*PS%U!t*`R+q+jR%S!qQ#PcQ(}&|Q)Z'YR+n+ghpOScw!U!V#O#k#n&|'Y+gQ$d!WQ$n!ZQ%g#VU%p#i'T,bU%q#j'U,cQ(j&gQ(u&sQ)Q'PQ)_']Q)y'wQ*_(kQ*a(tV-R'W)W*kT(U&S&l",nodeNames:"⚠ LineComment BlockComment SourceFile PackageClause package DefName ; ImportDecl import ImportSpec . String ) ( SpecList ExprStatement Number Bool Nil Rune VariableName TypedLiteral StructType struct } { StructBody FieldDecl FieldName , PointerType * FunctionType func Parameters Parameter ... InterfaceType interface InterfaceBody MethodElem UnderlyingType ~ TypeElem LogicOp ChannelType chan <- ParenthesizedType QualifiedType TypeName ParameterizedType ] [ TypeArgs ArrayType SliceType MapType map LiteralValue Element Key : Element Key ParenthesizedExpr FunctionLiteral Block Conversion SelectorExpr IndexExpr SliceExpr TypeAssertion CallExpr ParameterizedExpr Arguments CallExpr make new Arguments UnaryExp ArithOp LogicOp BitOp DerefOp BinaryExp ArithOp BitOp BitOp CompareOp LogicOp LogicOp SendStatement IncDecStatement IncDecOp Assignment = UpdateOp VarDecl := ConstDecl const ConstSpec SpecList TypeDecl type TypeSpec TypeParams TypeParam SpecList VarDecl var VarSpec SpecList LabeledStatement LabelName IfStatement if else SwitchStatement switch SwitchBlock Case case default TypeSwitchStatement SwitchBlock Case ForStatement for ForClause RangeClause range GoStatement go SelectStatement select SelectBlock Case ReceiveStatement ReturnStatement return GotoStatement break continue goto FallthroughStatement fallthrough DeferStatement defer FunctionDecl MethodDecl",maxTerm:218,context:x,nodeProps:[["isolate",-3,2,12,20,""],["group",-18,12,17,18,19,20,21,22,66,67,69,70,71,72,73,74,77,81,86,"Expr",-20,16,68,93,94,96,99,101,105,111,115,117,120,126,129,134,136,141,143,147,149,"Statement",-12,23,31,33,38,46,49,50,51,52,56,57,58,"Type"],["openedBy",13,"(",25,"{",53,"["],["closedBy",14,")",26,"}",54,"]"]],propSources:[w],skippedNodes:[0,1,2,153],repeatNodeCount:23,tokenData:":b~RvXY#iYZ#i]^#ipq#iqr#zrs$Xuv&Pvw&^wx&yxy(qyz(vz{({{|)T|})e}!O)j!O!P)u!P!Q+}!Q!R,y!R![-t![!]2^!]!^2k!^!_2p!_!`3]!`!a3e!c!}3x!}#O4j#P#Q4o#Q#R4t#R#S4|#S#T9X#T#o3x#o#p9q#p#q9v#q#r:W#r#s:]$g;'S3x;'S;=`4d<%lO3x~#nS$y~XY#iYZ#i]^#ipq#iU$PP%hQ!_!`$SS$XO!|S~$^W[~OY$XZr$Xrs$vs#O$X#O#P${#P;'S$X;'S;=`%y<%lO$X~${O[~~%ORO;'S$X;'S;=`%X;=`O$X~%^X[~OY$XZr$Xrs$vs#O$X#O#P${#P;'S$X;'S;=`%y;=`<%l$X<%lO$X~%|P;=`<%l$X~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!Q![1c!c!i1c#T#Z1c~2cP!a~!_!`2f~2kO#W~~2pOV~~2uR!|S}!O3O!^!_3T!_!`$S~3TO!Q~~3YP%m~!_!`&X~3bP#T~!_!`$S~3jQ!|S!_!`$S!`!a3p~3uP%n~!_!`&X~3}V%O~!Q![3x!c!}3x#R#S3x#T#o3x$g;'S3x;'S;=`4d<%lO3x~4gP;=`<%l3x~4oO!W~~4tO!V~~4yP%i~!_!`&X~5RV%O~!Q![5h!c!}3x#R#S3x#T#o3x$g;'S3x;'S;=`4d<%lO3x~5o^aQ%O~!O!P*`!Q![5h!c!g3x!g!h6k!h!}3x#R#S4|#T#X3x#X#Y6k#Y#]3x#]#^8k#^#o3x$g;'S3x;'S;=`4d<%lO3x~6pX%O~{|+T}!O+T!Q![7]!c!}3x#R#S8P#T#o3x$g;'S3x;'S;=`4d<%lO3x~7dXaQ%O~!Q![7]!c!}3x#R#S8P#T#]3x#]#^8k#^#o3x$g;'S3x;'S;=`4d<%lO3x~8UV%O~!Q![7]!c!}3x#R#S3x#T#o3x$g;'S3x;'S;=`4d<%lO3x~8rVaQ%O~!Q![3x!c!}3x#R#S3x#T#o3x$g;'S3x;'S;=`4d<%lO3x~9[TO#S9X#S#T$v#T;'S9X;'S;=`9k<%lO9X~9nP;=`<%l9X~9vOj~~9{Q%`~!_!`&X#p#q:R~:WO%q~~:]Oi~~:bO{~",tokenizers:[R,1,2,new e("j~RQYZXz{^~^O$|~~aP!P!Qd~iO$}~~",25,181)],topRules:{SourceFile:[0,3]},dynamicPrecedences:{19:1,51:-1,55:2,69:-1,108:-1},specialized:[{term:184,get:O=>s[O]||-1}],tokenPrec:5451}),d=[P("func ${name}(${params}) ${type} {\n\t${}\n}",{label:"func",detail:"declaration",type:"keyword"}),P("func (${receiver}) ${name}(${params}) ${type} {\n\t${}\n}",{label:"func",detail:"method declaration",type:"keyword"}),P("var ${name} = ${value}",{label:"var",detail:"declaration",type:"keyword"}),P("type ${name} ${type}",{label:"type",detail:"declaration",type:"keyword"}),P("const ${name} = ${value}",{label:"const",detail:"declaration",type:"keyword"}),P("type ${name} = ${type}",{label:"type",detail:"alias declaration",type:"keyword"}),P("for ${init}; ${test}; ${update} {\n\t${}\n}",{label:"for",detail:"loop",type:"keyword"}),P("for ${i} := range ${value} {\n\t${}\n}",{label:"for",detail:"range",type:"keyword"}),P("select {\n\t${}\n}",{label:"select",detail:"statement",type:"keyword"}),P("case ${}:\n${}",{label:"case",type:"keyword"}),P("switch ${} {\n\t${}\n}",{label:"switch",detail:"statement",type:"keyword"}),P("switch ${}.(${type}) {\n\t${}\n}",{label:"switch",detail:"type statement",type:"keyword"}),P("if ${} {\n\t${}\n}",{label:"if",detail:"block",type:"keyword"}),P("if ${} {\n\t${}\n} else {\n\t${}\n}",{label:"if",detail:"/ else block",type:"keyword"}),P('import ${name} "${module}"\n${}',{label:"import",detail:"declaration",type:"keyword"})],h=new m,y=new Set(["SourceFile","Block","FunctionDecl","MethodDecl","FunctionLiteral","ForStatement","SwitchStatement","TypeSwitchStatement","IfStatement"]);function u(O,Q){return(e,a)=>{O:for(let t=e.node.firstChild,X=0,P=null;;){for(;!t;){if(!X)break O;X--,t=P.nextSibling,P=P.parent}Q&&t.name==Q||"SpecList"==t.name?(X++,P=t,t=t.firstChild):("DefName"==t.name&&a(t,O),t=t.nextSibling)}return!0}}const f={FunctionDecl:u("function"),VarDecl:u("var","VarSpec"),ConstDecl:u("constant","ConstSpec"),TypeDecl:u("type","TypeSpec"),ImportDecl:u("constant","ImportSpec"),Parameter:u("var"),__proto__:null};function j(O,Q){let e=h.get(Q);if(e)return e;let a=[],t=!0;function X(Q,e){let t=O.sliceString(Q.from,Q.to);a.push({label:t,type:e})}return Q.cursor(V.IncludeAnonymous).iterate((Q=>{if(t)t=!1;else if(Q.name){let O=f[Q.name];if(O&&O(Q,X)||y.has(Q.name))return!1}else if(Q.to-Q.from>8192){for(let e of j(O,Q.node))a.push(e);return!1}})),h.set(Q,a),a}const g=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,U=["String","LineComment","BlockComment","DefName","LabelName","FieldName",".","?."],G=O=>{let Q=i(O.state).resolveInner(O.pos,-1);if(U.indexOf(Q.name)>-1)return null;let e="VariableName"==Q.name||Q.to-Q.from<20&&g.test(O.state.sliceDoc(Q.from,Q.to));if(!e&&!O.explicit)return null;let a=[];for(let e=Q;e;e=e.parent)y.has(e.name)&&(a=a.concat(j(O.state.doc,e)));return{options:a,from:e?Q.from:O.pos,validFor:g}},b=n.define({name:"go",parser:k.configure({props:[o.add({IfStatement:c({except:/^\s*({|else\b)/}),LabeledStatement:$,"SwitchBlock SelectBlock":O=>{let Q=O.textAfter,e=/^\s*\}/.test(Q),a=/^\s*(case|default)\b/.test(Q);return O.baseIndent+(e||a?0:O.unit)},Block:l({closing:"}"}),BlockComment:()=>null,Statement:c({except:/^{/})}),r.add({"Block SwitchBlock SelectBlock LiteralValue InterfaceType StructType SpecList":S,BlockComment:O=>({from:O.from+2,to:O.to-2})})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case\b|default\b|\})$/}});let Z=O=>({label:O,type:"keyword"});const _="interface struct chan map package go return break continue goto fallthrough else defer range true false nil".split(" ").map(Z);function q(){let O=d.concat(_);return new T(b,[b.data.of({autocomplete:p(U,W(O))}),b.data.of({autocomplete:G})])}export{q as go,b as goLanguage,G as localCompletionSource,d as snippets}; diff --git a/nicegui/elements/lib/codemirror/index-CJB1zGqD.js b/nicegui/elements/lib/codemirror/index-CJB1zGqD.js new file mode 100644 index 000000000..1fbf850ae --- /dev/null +++ b/nicegui/elements/lib/codemirror/index-CJB1zGqD.js @@ -0,0 +1 @@ +import{L as O}from"./index-Ckjrdmtm.js";import{s as e,t as r,L as t,i as a,c as s,f as P,j as o,a as Q}from"./editor-DzvLhhiW.js";const n=e({String:r.string,Number:r.number,"True False":r.bool,PropertyName:r.propertyName,Null:r.null,",":r.separator,"[ ]":r.squareBracket,"{ }":r.brace}),c=O.deserialize({version:14,states:"$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#CjOOQO'#Cp'#CpQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CrOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59U,59UO!iQPO,59UOVQPO,59QOqQPO'#CkO!nQPO,59^OOQO1G.k1G.kOVQPO'#ClO!vQPO,59aOOQO1G.p1G.pOOQO1G.l1G.lOOQO,59V,59VOOQO-E6i-E6iOOQO,59W,59WOOQO-E6j-E6j",stateData:"#O~OcOS~OQSORSOSSOTSOWQO]ROePO~OVXOeUO~O[[O~PVOg^O~Oh_OVfX~OVaO~OhbO[iX~O[dO~Oh_OVfa~OhbO[ia~O",goto:"!kjPPPPPPkPPkqwPPk{!RPPP!XP!ePP!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,"{",12,"["],["closedBy",8,"}",13,"]"]],propSources:[n],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~!]Oc~~!`Wpq!]qr!]rs!xs#O!]#O#P!}#P;'S!];'S;=`$o<%lO!]~!}Oe~~#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!]~$zOh~~$}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~&yOg~~'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}),i=()=>O=>{try{JSON.parse(O.state.doc.toString())}catch(e){if(!(e instanceof SyntaxError))throw e;const r=function(O,e){let r;return(r=O.message.match(/at position (\d+)/))?Math.min(+r[1],e.length):(r=O.message.match(/at line (\d+) column (\d+)/))?Math.min(e.line(+r[1]).from+ +r[2]-1,e.length):0}(e,O.state.doc);return[{from:r,message:e.message,severity:"error",to:r}]}return[]};const p=t.define({name:"json",parser:c.configure({props:[a.add({Object:s({except:/^\s*\}/}),Array:s({except:/^\s*\]/})}),P.add({"Object Array":o})]}),languageData:{closeBrackets:{brackets:["[","{",'"']},indentOnInput:/^\s*[\}\]]$/}});function m(){return new Q(p)}export{m as json,p as jsonLanguage,i as jsonParseLinter}; diff --git a/nicegui/elements/lib/codemirror/index-CJhLK3a1.js b/nicegui/elements/lib/codemirror/index-CJhLK3a1.js new file mode 100644 index 000000000..7cc5ef9ce --- /dev/null +++ b/nicegui/elements/lib/codemirror/index-CJhLK3a1.js @@ -0,0 +1 @@ +import{E as e,L as O,a}from"./index-Ckjrdmtm.js";import{s as t,t as o,e as r,L as l,i,c as n,f as s,j as d,a as c,I as Q,N as p}from"./editor-DzvLhhiW.js";const u=[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];function m(e){return e>=65&&e<=90||e>=97&&e<=122||e>=161}function S(e){return e>=48&&e<=57}const g=new e(((e,O)=>{for(let a=!1,t=0,o=0;;o++){let{next:r}=e;if(m(r)||45==r||95==r||a&&S(r))!a&&(45!=r||o>0)&&(a=!0),t===o&&45==r&&t++,e.advance();else{if(92!=r||10==e.peek(1)){a&&e.acceptToken(40==r?100:2==t&&O.canShift(2)?2:101);break}e.advance(),e.next>-1&&e.advance(),a=!0}}})),h=new e((e=>{if(u.includes(e.peek(-1))){let{next:O}=e;(m(O)||95==O||35==O||46==O||91==O||58==O&&m(e.peek(1))||45==O||38==O)&&e.acceptToken(99)}})),$=new e((e=>{if(!u.includes(e.peek(-1))){let{next:O}=e;if(37==O&&(e.advance(),e.acceptToken(1)),m(O)){do{e.advance()}while(m(e.next)||S(e.next));e.acceptToken(1)}}})),b=t({"AtKeyword import charset namespace keyframes media supports":o.definitionKeyword,"from to selector":o.keyword,NamespaceName:o.namespace,KeyframeName:o.labelName,KeyframeRangeName:o.operatorKeyword,TagName:o.tagName,ClassName:o.className,PseudoClassName:o.constant(o.className),IdName:o.labelName,"FeatureName PropertyName":o.propertyName,AttributeName:o.attributeName,NumberLiteral:o.number,KeywordQuery:o.keyword,UnaryQueryOp:o.operatorKeyword,"CallTag ValueName":o.atom,VariableName:o.variableName,Callee:o.operatorKeyword,Unit:o.unit,"UniversalSelector NestingSelector":o.definitionOperator,MatchOp:o.compareOperator,"ChildOp SiblingOp, LogicOp":o.logicOperator,BinOp:o.arithmeticOperator,Important:o.modifier,Comment:o.blockComment,ColorLiteral:o.color,"ParenthesizedContent StringLiteral":o.string,":":o.punctuation,"PseudoOp #":o.derefOperator,"; ,":o.separator,"( )":o.paren,"[ ]":o.squareBracket,"{ }":o.brace}),f={__proto__:null,lang:32,"nth-child":32,"nth-last-child":32,"nth-of-type":32,"nth-last-of-type":32,dir:32,"host-context":32,url:60,"url-prefix":60,domain:60,regexp:60,selector:138},y={__proto__:null,"@import":118,"@media":142,"@charset":146,"@namespace":150,"@keyframes":156,"@supports":168},P={__proto__:null,not:132,only:132},X=O.deserialize({version:14,states:":^QYQ[OOO#_Q[OOP#fOWOO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Styles:[1,86]},specialized:[{term:100,get:e=>f[e]||-1},{term:58,get:e=>y[e]||-1},{term:101,get:e=>P[e]||-1}],tokenPrec:1200});let w=null;function z(){if(!w&&"object"==typeof document&&document.body){let{style:e}=document.body,O=[],a=new Set;for(let t in e)"cssText"!=t&&"cssFloat"!=t&&"string"==typeof e[t]&&(/[A-Z]/.test(t)&&(t=t.replace(/[A-Z]/g,(e=>"-"+e.toLowerCase()))),a.has(t)||(O.push(t),a.add(t)));w=O.sort().map((e=>({type:"property",label:e})))}return w||[]}const v=["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}))),k=["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})))),x=["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}))),W=/^(\w[\w-]*|-\w[\w-]*|)$/,R=/^-(-[\w-]*)?$/;const T=new p,U=["Declaration"];function Y(e){for(let O=e;;){if(O.type.isTop)return O;if(!(O=O.parent))return e}}function q(e,O,a){if(O.to-O.from>4096){let t=T.get(O);if(t)return t;let o=[],r=new Set,l=O.cursor(Q.IncludeAnonymous);if(l.firstChild())do{for(let O of q(e,l.node,a))r.has(O.label)||(r.add(O.label),o.push(O))}while(l.nextSibling());return T.set(O,o),o}{let t=[],o=new Set;return O.cursor().iterate((O=>{var r;if(a(O)&&O.matchContext(U)&&":"==(null===(r=O.node.nextSibling)||void 0===r?void 0:r.name)){let a=e.sliceString(O.from,O.to);o.has(a)||(o.add(a),t.push({label:a,type:"variable"}))}})),t}}const E=e=>O=>{let{state:a,pos:t}=O,o=r(a).resolveInner(t,-1),l=o.type.isError&&o.from==o.to-1&&"-"==a.doc.sliceString(o.from,o.to);if("PropertyName"==o.name||(l||"TagName"==o.name)&&/^(Block|Styles)$/.test(o.resolve(o.to).name))return{from:o.from,options:z(),validFor:W};if("ValueName"==o.name)return{from:o.from,options:k,validFor:W};if("PseudoClassName"==o.name)return{from:o.from,options:v,validFor:W};if(e(o)||(O.explicit||l)&&function(e,O){var a;if(("("==e.name||e.type.isError)&&(e=e.parent||e),"ArgList"!=e.name)return!1;let t=null===(a=e.parent)||void 0===a?void 0:a.firstChild;return"Callee"==(null==t?void 0:t.name)&&"var"==O.sliceString(t.from,t.to)}(o,a.doc))return{from:e(o)||l?o.from:t,options:q(a.doc,Y(o),e),validFor:R};if("TagName"==o.name){for(let{parent:e}=o;e;e=e.parent)if("Block"==e.name)return{from:o.from,options:z(),validFor:W};return{from:o.from,options:x,validFor:W}}if(!O.explicit)return null;let i=o.resolve(t),n=i.childBefore(t);return n&&":"==n.name&&"PseudoClassSelector"==i.name?{from:t,options:v,validFor:W}:n&&":"==n.name&&"Declaration"==i.name||"ArgList"==i.name?{from:t,options:k,validFor:W}:"Block"==i.name||"Styles"==i.name?{from:t,options:z(),validFor:W}:null},Z=E((e=>"VariableName"==e.name)),_=l.define({name:"css",parser:X.configure({props:[i.add({Declaration:n()}),s.add({"Block KeyframeList":d})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function C(){return new c(_,_.data.of({autocomplete:Z}))}export{C as css,Z as cssCompletionSource,_ as cssLanguage,E as defineCSSCompletionSource}; diff --git a/nicegui/elements/lib/codemirror/index-CUN-L9uH.js b/nicegui/elements/lib/codemirror/index-CUN-L9uH.js new file mode 100644 index 000000000..af0e9a91e --- /dev/null +++ b/nicegui/elements/lib/codemirror/index-CUN-L9uH.js @@ -0,0 +1 @@ +import{E as O,l as $,L as a,s as e,t as i,i as r,h as n,f as t,a as Q,e as o,p as l}from"./editor-DzvLhhiW.js";import{html as p}from"./index-CYWhQqFb.js";import{L as s,E as c}from"./index-Ckjrdmtm.js";import"./index-CJhLK3a1.js";import"./index-B7tHWccP.js";const m=new c((O=>{let $=O.pos;for(;;){let{next:a}=O;if(a<0)break;if(123==a){let a=O.peek(1);if(123==a){if(O.pos>$)break;return void O.acceptToken(1,2)}if(37==a){if(O.pos>$)break;let a=2,e=2;for(;;){let $=O.peek(a);if(32==$||10==$)++a;else if(35==$)for(++a;;){let $=O.peek(a);if($<0||10==$)break;a++}else{if(45!=$||2!=e){let i=101==$&&110==O.peek(a+1)&&100==O.peek(a+2);return void O.acceptToken(i?3:2,e)}e=++a}}}}if(O.advance(),10==a)break}O.pos>$&&O.acceptToken(180)}));function P(O,$,a){return new c((e=>{let i=e.pos;for(;;){let{next:$}=e;if(123==$&&37==e.peek(1)){let $=2;for(;;$++){let O=e.peek($);if(32!=O&&10!=O)break}let n="";for(;;$++){let O=e.peek($);if(!((r=O)>=65&&r<=90||r>=97&&r<=122))break;n+=String.fromCharCode(O)}if(n==O){if(e.pos>i)break;e.acceptToken(a,2);break}}else if($<0)break;if(e.advance(),10==$)break}var r;e.pos>i&&e.acceptToken($)}))}const q=P("endcomment",182,5),d=P("endraw",181,4),f={__proto__:null,contains:32,or:36,and:36,true:50,false:50,empty:52,forloop:54,tablerowloop:56,continue:58,in:128,with:194,for:196,as:198,if:234,endif:238,unless:244,endunless:248,elsif:252,else:256,case:262,endcase:266,when:270,endfor:278,tablerow:284,endtablerow:288,break:292,cycle:298,echo:302,render:306,include:312,assign:316,capture:322,endcapture:326,increment:330,decrement:334},W={__proto__:null,if:82,endif:86,elsif:90,else:94,unless:100,endunless:104,case:110,endcase:114,when:118,for:126,endfor:136,tablerow:142,endtablerow:146,break:150,continue:154,cycle:158,comment:164,endcomment:170,raw:176,endraw:182,echo:186,render:190,include:202,assign:206,capture:212,endcapture:216,increment:220,decrement:224,liquid:228},g=s.deserialize({version:14,states:"GYQYOPOOOOOP'#F{'#F{OeOXO'#CdOsQWO'#CfO!bQ`O'#DQO#{OPO'#DTO$ZOPO'#D^O$iOPO'#DcO$wOPO'#DkO%VOPO'#DsO%eOSO'#EOO%jOQO'#EUO%oOPO'#EhOOOP'#G`'#G`OOOP'#G]'#G]OOOP'#Fz'#FzQYOPOOOOOP-E9y-E9yOOQO'#Cg'#CgO&`QpO,59QO&gQpO'#G^Os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FcOOQO'#Fe'#FeO3{QWO'#FfOsQWO'#FhOsQWO'#FjOsQWO'#FmOsQWO'#FoOsQWO'#FrOsQWO'#FvOsQWO'#FxOOOP1G0w1G0wOOOP1G/Z1G/ZO4QQWO,59rOOOP1G/d1G/dO4VQWO,59{OOOP1G/i1G/iO4[QWO,5:QOOOP1G/q1G/qO4aQWO,5:]OOOP1G/y1G/yO4fQWO,5:bOOOS-E:O-E:OOOOP1G0U1G0UO4kQ`O'#ESOOOQ-E:P-E:POOOP1G0[1G0[O4pQ`O'#EYOOOP1G0n1G0nO4uQWO,5;VOOQO1G.n1G.nOOQO1G.q1G.qO7ZQpO1G.qOOQO'#DO'#DOO7eQWO,59hOOQO-E9z-E9zOOOP7+$W7+$WO9_QpO1G.qO9iQpO1G.uOsQWO1G.yOOOP7+$r7+$rOOOP7+$v7+$vOOOP7+$z7+$zOOOP7+%P7+%POOOP7+%U7+%UOsQWO'#F}OkQpO,5;eO@UQpO,5;iOBRQpO,5;nOClQpO,5;rOE_QWO,5;uOEdQWO,5;yOEiQWO,5dOOOPAN>dAN>dO!5aQWOAN>lOOOPAN>lAN>lO!5iQWOAN>tOOOPAN>tAN>tOsQWO1G0fO!]QWO1G0fO!5qQpO7+&{O!7QQpO7+'PO!8aQWO7+'WO!:TQWO,5f[O]||-1},{term:37,get:O=>W[O]||-1}],tokenPrec:0});function u(O,$){return O.split(" ").map((O=>({label:O,type:$})))}const y=u("abs append at_least at_most capitalize ceil compact concat date default divided_by downcase escape escape_once first floor join last lstrip map minus modulo newline_to_br plus prepend remove remove_first replace replace_first reverse round rstrip size slice sort sort_natural split strip strip_html strip_newlines sum times truncate truncatewords uniq upcase url_decode url_encode where","function"),v=u("cycle comment endcomment raw endraw echo increment decrement liquid if elsif else endif unless endunless case endcase for endfor tablerow endtablerow break continue assign capture endcapture render include","keyword"),b=u("empty forloop tablerowloop in with as contains","keyword"),T=u("first index index0 last length rindex","property"),k=u("col col0 col_first col_last first index index0 last length rindex rindex0 row","property");function _(O={}){let $=O.filters?O.filters.concat(y):y,a=O.tags?O.tags.concat(v):v,e=O.variables?O.variables.concat(b):b,{properties:i}=O;return O=>{var r;let n=function(O){var $;let{state:a,pos:e}=O,i=o(a).resolveInner(e,-1).enterUnfinishedNodesBefore(e),r=(null===($=i.childBefore(e))||void 0===$?void 0:$.name)||i.name;if("FilterName"==i.name)return{type:"filter",node:i};if(O.explicit&&"|"==r)return{type:"filter"};if("TagName"==i.name)return{type:"tag",node:i};if(O.explicit&&"{%"==r)return{type:"tag"};if("PropertyName"==i.name&&"MemberExpression"==i.parent.name)return{type:"property",node:i,target:i.parent};if("."==i.name&&"MemberExpression"==i.parent.name)return{type:"property",target:i.parent};if("MemberExpression"==i.name&&"."==r)return{type:"property",target:i};if("VariableName"==i.name)return{type:"expression",from:i.from};let n=O.matchBefore(/[\w\u00c0-\uffff]+$/);return n?{type:"expression",from:n.from}:O.explicit&&"CommentText"!=i.name&&"StringLiteral"!=i.name&&"NumberLiteral"!=i.name&&"InlineComment"!=i.name?{type:"expression"}:null}(O);if(!n)return null;let t,Q=null!==(r=n.from)&&void 0!==r?r:n.node?n.node.from:O.pos;return t="filter"==n.type?$:"tag"==n.type?a:"expression"==n.type?e:function(O,$,a,e){let i=[];for(;;){let a=$.getChild("Expression");if(!a)return[];if("forloop"==a.name)return i.length?[]:T;if("tablerowloop"==a.name)return i.length?[]:k;if("VariableName"==a.name){i.unshift(O.sliceDoc(a.from,a.to));break}if("MemberExpression"!=a.name)return[];{let e=a.getChild("PropertyName");e&&i.unshift(O.sliceDoc(e.from,e.to)),$=a}}return e?e(i,O,a):[]}(O.state,n.target,O,i),t.length?{options:t,from:Q,validFor:/^[\w\u00c0-\uffff]*$/}:null}}const R=O.inputHandler.of(((O,a,e,i)=>"%"==i&&a==e&&"{}"==O.state.doc.sliceString(a-1,e+1)&&(O.dispatch(O.state.changeByRange((O=>({changes:{from:O.from,to:O.to,insert:"%%"},range:$.cursor(O.from+1)}))),{scrollIntoView:!0,userEvent:"input.type"}),!0)));function Y(O){return $=>{let a=O.test($.textAfter);return $.lineIndent($.node.from)+(a?0:$.unit)}}const U=a.define({name:"liquid",parser:g.configure({props:[e({"cycle comment endcomment raw endraw echo increment decrement liquid in with as":i.keyword,"empty forloop tablerowloop":i.atom,"if elsif else endif unless endunless case endcase for endfor tablerow endtablerow break continue":i.controlKeyword,"assign capture endcapture":i.definitionKeyword,contains:i.operatorKeyword,"render include":i.moduleKeyword,VariableName:i.variableName,TagName:i.tagName,FilterName:i.function(i.variableName),PropertyName:i.propertyName,CompareOp:i.compareOperator,AssignOp:i.definitionOperator,LogicOp:i.logicOperator,NumberLiteral:i.number,StringLiteral:i.string,BooleanLiteral:i.bool,InlineComment:i.lineComment,CommentText:i.blockComment,"{% %} {{ }}":i.brace,"( )":i.paren,".":i.derefOperator,", .. : |":i.punctuation}),r.add({Tag:n({closing:"%}"}),"UnlessDirective ForDirective TablerowDirective CaptureDirective":Y(/^\s*(\{%-?\s*)?end\w/),IfDirective:Y(/^\s*(\{%-?\s*)?(endif|else|elsif)\b/),CaseDirective:Y(/^\s*(\{%-?\s*)?(endcase|when)\b/)}),t.add({"UnlessDirective ForDirective TablerowDirective CaptureDirective IfDirective CaseDirective RawDirective Comment"(O){let $=O.firstChild,a=O.lastChild;return $&&"Tag"==$.name?{from:$.to,to:"EndTag"==a.name?a.from:O.to}:null}})]}),languageData:{commentTokens:{line:"#"},indentOnInput:/^\s*{%-?\s*(?:end|elsif|else|when|)$/}}),G=p();function X(O){return U.configure({wrap:l(($=>$.type.isTop?{parser:O.parser,overlay:O=>"Text"==O.name||"RawText"==O.name}:null))},"liquid")}const w=X(G.language);function S(O={}){let $=O.base||G,a=$.language==G.language?w:X($.language);return new Q(a,[$.support,a.data.of({autocomplete:_(O)}),$.language.data.of({closeBrackets:{brackets:["{"]}}),R])}export{R as closePercentBrace,S as liquid,_ as liquidCompletionSource,w as liquidLanguage}; diff --git a/nicegui/elements/lib/codemirror/index-CYWhQqFb.js b/nicegui/elements/lib/codemirror/index-CYWhQqFb.js new file mode 100644 index 000000000..4dbc26f36 --- /dev/null +++ b/nicegui/elements/lib/codemirror/index-CYWhQqFb.js @@ -0,0 +1 @@ +import{C as e,E as t,L as a}from"./index-Ckjrdmtm.js";import{s as l,t as r,p as n,L as s,i as o,f as O,G as i,a as u,E as c,e as p,l as d}from"./editor-DzvLhhiW.js";import{cssLanguage as m,css as f}from"./index-CJhLK3a1.js";import{typescriptLanguage as S,jsxLanguage as g,tsxLanguage as h,javascriptLanguage as x,javascript as b}from"./index-B7tHWccP.js";const P=20,V=22,w=23,T=24,v=26,X=27,y=28,k=31,$=34,q=37,_={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},Q={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},A={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 Y(e){return 9==e||10==e||13==e||32==e}let C=null,M=null,R=0;function Z(e,t){let a=e.pos+t;if(R==a&&M==e)return C;let l=e.peek(t);for(;Y(l);)l=e.peek(++t);let r="";for(;45==(n=l)||46==n||58==n||n>=65&&n<=90||95==n||n>=97&&n<=122||n>=161;)r+=String.fromCharCode(l),l=e.peek(++t);var n;return M=e,R=a,C=r?r.toLowerCase():l==E||l==B?void 0:null}const E=63,B=33;function z(e,t){this.name=e,this.parent=t}const W=[6,10,7,8,9],D=new e({start:null,shift:(e,t,a,l)=>W.indexOf(t)>-1?new z(Z(l,1)||"",e):e,reduce:(e,t)=>t==P&&e?e.parent:e,reuse(e,t,a,l){let r=t.type.id;return 6==r||36==r?new z(Z(l,1)||"",e):e},strict:!1}),G=new t(((e,t)=>{if(60!=e.next)return void(e.next<0&&t.context&&e.acceptToken(57));e.advance();let a=47==e.next;a&&e.advance();let l=Z(e,0);if(void 0===l)return;if(!l)return e.acceptToken(a?14:6);let r=t.context?t.context.name:null;if(a){if(l==r)return e.acceptToken(11);if(r&&Q[r])return e.acceptToken(57,-2);if(t.dialectEnabled(0))return e.acceptToken(12);for(let e=t.context;e;e=e.parent)if(e.name==l)return;e.acceptToken(13)}else{if("script"==l)return e.acceptToken(7);if("style"==l)return e.acceptToken(8);if("textarea"==l)return e.acceptToken(9);if(_.hasOwnProperty(l))return e.acceptToken(10);r&&A[r]&&A[r][l]?e.acceptToken(57,-1):e.acceptToken(6)}}),{contextual:!0}),j=new t((e=>{for(let t=0,a=0;;a++){if(e.next<0){a&&e.acceptToken(58);break}if(45==e.next)t++;else{if(62==e.next&&t>=2){a>=3&&e.acceptToken(58,-2);break}t=0}e.advance()}}));const I=new t(((e,t)=>{if(47==e.next&&62==e.peek(1)){let a=t.dialectEnabled(1)||function(e){for(;e;e=e.parent)if("svg"==e.name||"math"==e.name)return!0;return!1}(t.context);e.acceptToken(a?5:4,2)}else 62==e.next&&e.acceptToken(4,1)}));function U(e,a,l){let r=2+e.length;return new t((t=>{for(let n=0,s=0,o=0;;o++){if(t.next<0){o&&t.acceptToken(a);break}if(0==n&&60==t.next||1==n&&47==t.next||n>=2&&ns?t.acceptToken(a,-s):t.acceptToken(l,-(s-2));break}if((10==t.next||13==t.next)&&o){t.acceptToken(a,1);break}n=s=0}else s++;t.advance()}}))}const N=U("script",54,1),F=U("style",55,2),H=U("textarea",56,3),L=l({"Text RawText":r.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":r.angleBracket,TagName:r.tagName,"MismatchedCloseTag/TagName":[r.tagName,r.invalid],AttributeName:r.attributeName,"AttributeValue UnquotedAttributeValue":r.attributeValue,Is:r.definitionOperator,"EntityReference CharacterReference":r.character,Comment:r.blockComment,ProcessingInst:r.processingInstruction,DoctypeDecl:r.documentMeta}),K=a.deserialize({version:14,states:",xOVO!rOOO!WQ#tO'#CqO!]Q#tO'#CzO!bQ#tO'#C}O!gQ#tO'#DQO!lQ#tO'#DSO!qOaO'#CpO!|ObO'#CpO#XOdO'#CpO$eO!rO'#CpOOO`'#Cp'#CpO$lO$fO'#DTO$tQ#tO'#DVO$yQ#tO'#DWOOO`'#Dk'#DkOOO`'#DY'#DYQVO!rOOO%OQ&rO,59]O%ZQ&rO,59fO%fQ&rO,59iO%qQ&rO,59lO%|Q&rO,59nOOOa'#D^'#D^O&XOaO'#CxO&dOaO,59[OOOb'#D_'#D_O&lObO'#C{O&wObO,59[OOOd'#D`'#D`O'POdO'#DOO'[OdO,59[OOO`'#Da'#DaO'dO!rO,59[O'kQ#tO'#DROOO`,59[,59[OOOp'#Db'#DbO'pO$fO,59oOOO`,59o,59oO'xQ#|O,59qO'}Q#|O,59rOOO`-E7W-E7WO(SQ&rO'#CsOOQW'#DZ'#DZO(bQ&rO1G.wOOOa1G.w1G.wOOO`1G/Y1G/YO(mQ&rO1G/QOOOb1G/Q1G/QO(xQ&rO1G/TOOOd1G/T1G/TO)TQ&rO1G/WOOO`1G/W1G/WO)`Q&rO1G/YOOOa-E7[-E7[O)kQ#tO'#CyOOO`1G.v1G.vOOOb-E7]-E7]O)pQ#tO'#C|OOOd-E7^-E7^O)uQ#tO'#DPOOO`-E7_-E7_O)zQ#|O,59mOOOp-E7`-E7`OOO`1G/Z1G/ZOOO`1G/]1G/]OOO`1G/^1G/^O*PQ,UO,59_OOQW-E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!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 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:67,context:D,nodeProps:[["closedBy",-10,1,2,3,7,8,9,10,11,12,13,"EndTag",6,"EndTag SelfClosingEndTag",-4,21,30,33,36,"CloseTag"],["openedBy",4,"StartTag StartCloseTag",5,"StartTag",-4,29,32,35,37,"OpenTag"],["group",-9,14,17,18,19,20,39,40,41,42,"Entity",16,"Entity TextContent",-3,28,31,34,"TextContent Entity"],["isolate",-11,21,29,30,32,33,35,36,37,38,41,42,"ltr",-3,26,27,39,""]],propSources:[L],skippedNodes:[0],repeatNodeCount:9,tokenData:"!]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!Z5zbkWOX5uXZ7SZ[5u[^7S^p5uqr5urs7Sst+Ptw5uwx7Sx!]5u!]!^7w!^!a7S!a#S5u#S#T7S#T;'S5u;'S;=`8n<%lO5u!R7VVOp7Sqs7St!]7S!]!^7l!^;'S7S;'S;=`7q<%lO7S!R7qOa!R!R7tP;=`<%l7S!Z8OYkWa!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#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!6Vw!`!8]!`!a!9o!a;'S!8];'S;=`!:V<%lO!8]a!9vT!a`xPOr)esv)ew;'S)e;'S;=`)y<%lO)ea!:YP;=`<%l!8]!R!:dY!a`!cpOr!4trs!5ksv!4tvw!6Vwx!8]x!`!4t!`!a!;S!a;'S!4t;'S;=`!;r<%lO!4t!R!;]V!a`!cpxPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!;uP;=`<%l!4t!V!{let n=e.type.id;if(n==y)return te(e,t,a);if(n==k)return te(e,t,l);if(n==$)return te(e,t,r);if(n==P&&s.length){let a,l=e.node,r=l.firstChild,n=r&&ee(r,t);if(n)for(let e of s)if(e.tag==n&&(!e.attrs||e.attrs(a||(a=J(r,t))))){let t=l.lastChild,a=t.type.id==q?t.from:l.to;if(a>r.to)return{parser:e.parser,overlay:[{from:r.to,to:a}]}}}if(o&&n==w){let a,l=e.node;if(a=l.firstChild){let e=o[t.read(a.from,a.to)];if(e)for(let a of e){if(a.tagName&&a.tagName!=ee(l.parent,t))continue;let e=l.lastChild;if(e.type.id==v){let t=e.from+1,l=e.lastChild,r=e.to-(l&&l.isError?0:1);if(r>t)return{parser:a.parser,overlay:[{from:t,to:r}]}}else if(e.type.id==X)return{parser:a.parser,overlay:[{from:e.from,to:e.to}]}}}}return null}))}const le=["_blank","_self","_top","_parent"],re=["ascii","utf-8","utf-16","latin1","latin1"],ne=["get","post","put","delete"],se=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],oe=["true","false"],Oe={},ie={a:{attrs:{href:null,ping:null,type:null,media:null,target:le,hreflang:null}},abbr:Oe,address:Oe,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:Oe,aside:Oe,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:Oe,base:{attrs:{href:null,target:le}},bdi:Oe,bdo:Oe,blockquote:{attrs:{cite:null}},body:Oe,br:Oe,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:se,formmethod:ne,formnovalidate:["novalidate"],formtarget:le,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:Oe,center:Oe,cite:Oe,code:Oe,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:Oe,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:Oe,div:Oe,dl:Oe,dt:Oe,em:Oe,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:Oe,figure:Oe,footer:Oe,form:{attrs:{action:null,name:null,"accept-charset":re,autocomplete:["on","off"],enctype:se,method:ne,novalidate:["novalidate"],target:le}},h1:Oe,h2:Oe,h3:Oe,h4:Oe,h5:Oe,h6:Oe,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:Oe,hgroup:Oe,hr:Oe,html:{attrs:{manifest:null}},i:Oe,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:se,formmethod:ne,formnovalidate:["novalidate"],formtarget:le,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:Oe,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:Oe,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:Oe,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:re,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:Oe,noscript:Oe,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:Oe,param:{attrs:{name:null,value:null}},pre:Oe,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:Oe,rt:Oe,ruby:Oe,samp:Oe,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:re}},section:Oe,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:Oe,source:{attrs:{src:null,type:null,media:null}},span:Oe,strong:Oe,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:Oe,summary:Oe,sup:Oe,table:Oe,tbody:Oe,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:Oe,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:Oe,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:Oe,time:{attrs:{datetime:null}},title:Oe,tr:Oe,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:Oe,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:Oe},ue={accesskey:null,class:null,contenteditable:oe,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:oe,autocorrect:oe,autocapitalize:oe,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":oe,"aria-autocomplete":["inline","list","both","none"],"aria-busy":oe,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":oe,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":oe,"aria-hidden":oe,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":oe,"aria-multiselectable":oe,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":oe,"aria-relevant":null,"aria-required":oe,"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},ce="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 ce)ue[e]=null;class pe{constructor(e,t){this.tags=Object.assign(Object.assign({},ie),e),this.globalAttrs=Object.assign(Object.assign({},ue),t),this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}}function de(e,t,a=e.length){if(!t)return"";let l=t.firstChild,r=l&&l.getChild("TagName");return r?e.sliceString(r.from,Math.min(r.to,a)):""}function me(e,t=!1){for(;e;e=e.parent)if("Element"==e.name){if(!t)return e;t=!1}return null}function fe(e,t,a){let l=a.tags[de(e,me(t))];return(null==l?void 0:l.children)||a.allTags}function Se(e,t){let a=[];for(let l=me(t);l&&!l.type.isTop;l=me(l.parent)){let r=de(e,l);if(r&&"CloseTag"==l.lastChild.name)break;r&&a.indexOf(r)<0&&("EndTag"==t.name||t.from>=l.firstChild.to)&&a.push(r)}return a}pe.default=new pe;const ge=/^[:\-\.\w\u00b7-\uffff]*$/;function he(e,t,a,l,r){let n=/\s*>/.test(e.sliceDoc(r,r+5))?"":">",s=me(a,!0);return{from:l,to:r,options:fe(e.doc,s,t).map((e=>({label:e,type:"type"}))).concat(Se(e.doc,a).map(((e,t)=>({label:"/"+e,apply:"/"+e+n,type:"type",boost:99-t})))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function xe(e,t,a,l){let r=/\s*>/.test(e.sliceDoc(l,l+5))?"":">";return{from:a,to:l,options:Se(e.doc,t).map(((e,t)=>({label:e,apply:e+r,type:"type",boost:99-t}))),validFor:ge}}function be(e,t){let{state:a,pos:l}=t,r=p(a).resolveInner(l,-1),n=r.resolve(l);for(let e,t=l;n==r&&(e=r.childBefore(t));){let a=e.lastChild;if(!a||!a.type.isError||a.from({label:e,type:"property"}))),validFor:ge}}(a,e,r,"AttributeName"==r.name?r.from:l,l):"Is"==r.name||"AttributeValue"==r.name||"UnquotedAttributeValue"==r.name?function(e,t,a,l,r){var n;let s,o=null===(n=a.parent)||void 0===n?void 0:n.getChild("AttributeName"),O=[];if(o){let n=e.sliceDoc(o.from,o.to),i=t.globalAttrs[n];if(!i){let l=me(a),r=l?t.tags[de(e.doc,l)]:null;i=(null==r?void 0:r.attrs)&&r.attrs[n]}if(i){let t=e.sliceDoc(l,r).toLowerCase(),a='"',n='"';/^['"]/.test(t)?(s='"'==t[0]?/^[^"]*$/:/^[^']*$/,a="",n=e.sliceDoc(r,r+1)==t[0]?"":t[0],t=t.slice(1),l++):s=/^[^\s<>='"]*$/;for(let e of i)O.push({label:e,apply:a+e+n,type:"constant"})}}return{from:l,to:r,options:O,validFor:s}}(a,e,r,"Is"==r.name?l:r.from,l):!t.explicit||"Element"!=n.name&&"Text"!=n.name&&"Document"!=n.name?null:function(e,t,a,l){let r=[],n=0;for(let l of fe(e.doc,a,t))r.push({label:"<"+l,type:"type"});for(let t of Se(e.doc,a))r.push({label:"",type:"type",boost:99-n++});return{from:l,to:l,options:r,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}(a,e,r,l)}function Pe(e){return be(pe.default,e)}function Ve(e){let{extraTags:t,extraGlobalAttributes:a}=e,l=a||t?new pe(t,a):pe.default;return e=>be(l,e)}const we=x.parser.configure({top:"SingleExpression"}),Te=[{tag:"script",attrs:e=>"text/typescript"==e.type||"ts"==e.lang,parser:S.parser},{tag:"script",attrs:e=>"text/babel"==e.type||"text/jsx"==e.type,parser:g.parser},{tag:"script",attrs:e=>"text/typescript-jsx"==e.type,parser:h.parser},{tag:"script",attrs:e=>/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(e.type),parser:we},{tag:"script",attrs:e=>!e.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(e.type),parser:x.parser},{tag:"style",attrs:e=>(!e.lang||"css"==e.lang)&&(!e.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(e.type)),parser:m.parser}],ve=[{name:"style",parser:m.parser.configure({top:"Styles"})}].concat(ce.map((e=>({name:e,parser:x.parser})))),Xe=s.define({name:"html",parser:K.configure({props:[o.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=>e.column(e.node.from)+e.unit,Document(e){if(e.pos+/\s*/.exec(e.textAfter)[0].lengthe.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:"\x3c!--",close:"--\x3e"}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:"-._"}}),ye=Xe.configure({wrap:ae(Te,ve)});function ke(e={}){let t,a="";!1===e.matchClosingTags&&(a="noMatch"),!0===e.selfClosingTags&&(a=(a?a+" ":"")+"selfClosing"),(e.nestedLanguages&&e.nestedLanguages.length||e.nestedAttributes&&e.nestedAttributes.length)&&(t=ae((e.nestedLanguages||[]).concat(Te),(e.nestedAttributes||[]).concat(ve)));let l=t?Xe.configure({wrap:t,dialect:a}):a?ye.configure({dialect:a}):ye;return new u(l,[ye.data.of({autocomplete:Ve(e)}),!1!==e.autoCloseTags?qe:[],b().support,f().support])}const $e=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")),qe=c.inputHandler.of(((e,t,a,l,r)=>{if(e.composing||e.state.readOnly||t!=a||">"!=l&&"/"!=l||!ye.isActiveAt(e.state,t,-1))return!1;let n=r(),{state:s}=n,o=s.changeByRange((e=>{var t,a,r;let n,o=s.doc.sliceString(e.from-1,e.to)==l,{head:O}=e,i=p(s).resolveInner(O,-1);if(o&&">"==l&&"EndTag"==i.name){let l=i.parent;if("CloseTag"!=(null===(a=null===(t=l.parent)||void 0===t?void 0:t.lastChild)||void 0===a?void 0:a.name)&&(n=de(s.doc,l.parent,O))&&!$e.has(n)){return{range:e,changes:{from:O,to:O+(">"===s.doc.sliceString(O,O+1)?1:0),insert:``}}}}else if(o&&"/"==l&&"IncompleteCloseTag"==i.name){let e=i.parent;if(i.from==O-2&&"CloseTag"!=(null===(r=e.lastChild)||void 0===r?void 0:r.name)&&(n=de(s.doc,e,O))&&!$e.has(n)){let e=O+(">"===s.doc.sliceString(O,O+1)?1:0),t=`${n}>`;return{range:d.cursor(O+t.length,-1),changes:{from:O,to:e,insert:t}}}}return{range:e}}));return!o.changes.empty&&(e.dispatch([n,s.update(o,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}));export{qe as autoCloseTags,ke as html,Pe as htmlCompletionSource,Ve as htmlCompletionSourceWith,ye as htmlLanguage,Xe as htmlPlain}; diff --git a/nicegui/elements/lib/codemirror/index-CgEMB2FB.js b/nicegui/elements/lib/codemirror/index-CgEMB2FB.js new file mode 100644 index 000000000..c8d90dfc8 --- /dev/null +++ b/nicegui/elements/lib/codemirror/index-CgEMB2FB.js @@ -0,0 +1 @@ +import{s as O,t,L as e,a as r,p as n}from"./editor-DzvLhhiW.js";import{html as a}from"./index-CYWhQqFb.js";import{javascriptLanguage as o}from"./index-B7tHWccP.js";import{L as i,a as s}from"./index-Ckjrdmtm.js";import"./index-CJhLK3a1.js";const p=i.deserialize({version:14,states:"%pOVOWOOObQPOOOpOSO'#C_OOOO'#Cp'#CpQVOWOOQxQPOOO!TQQOOQ!YQPOOOOOO,58y,58yO!_OSO,58yOOOO-E6n-E6nO!dQQO'#CqQ{QPOOO!iQPOOQ{QPOOO!qQPOOOOOO1G.e1G.eOOQO,59],59]OOQO-E6o-E6oO!yOpO'#CiO#RO`O'#CiQOQPOOO#ZO#tO'#CmO#fO!bO'#CmOOQO,59T,59TO#qOpO,59TO#vO`O,59TOOOO'#Cr'#CrO#{O#tO,59XOOQO,59X,59XOOOO'#Cs'#CsO$WO!bO,59XOOQO1G.o1G.oOOOO-E6p-E6pOOQO1G.s1G.sOOOO-E6q-E6q",stateData:"$g~OjOS~OQROUROkQO~OWTOXUOZUO`VO~OSXOTWO~OXUO[]OlZO~OY^O~O[_O~OT`O~OYaO~OmcOodO~OmfOogO~O^iOnhO~O_jOphO~ObkOqkOrmO~OcnOsnOtmO~OnpO~OppO~ObkOqkOrrO~OcnOsnOtrO~OWX`~",goto:"!^hPPPiPPPPPPPPPmPPPpPPsy!Q!WTROSRe]Re_QSORYSS[T^Rb[QlfRqlQogRso",nodeNames:"⚠ Content Text Interpolation InterpolationContent }} Entity Attribute VueAttributeName : Identifier @ Is ScriptAttributeValue AttributeScript AttributeScript AttributeName AttributeValue Entity Entity",maxTerm:36,nodeProps:[["isolate",-3,3,13,17,""]],skippedNodes:[0],repeatNodeCount:4,tokenData:"'y~RdXY!aYZ!a]^!apq!ars!rwx!w}!O!|!O!P#t!Q![#y![!]$s!_!`%g!b!c%l!c!}#y#R#S#y#T#j#y#j#k%q#k#o#y%W;'S#y;'S;:j$m<%lO#y~!fSj~XY!aYZ!a]^!apq!a~!wOm~~!|Oo~!b#RX`!b}!O!|!Q![!|![!]!|!c!}!|#R#S!|#T#o!|%W;'S!|;'S;:j#n<%lO!|!b#qP;=`<%l!|~#yOl~%W$QXY#t`!b}!O!|!Q![#y![!]!|!c!}#y#R#S#y#T#o#y%W;'S#y;'S;:j$m<%lO#y%W$pP;=`<%l#y~$zXX~`!b}!O!|!Q![!|![!]!|!c!}!|#R#S!|#T#o!|%W;'S!|;'S;:j#n<%lO!|~%lO[~~%qOZ~%W%xXY#t`!b}!O&e!Q![#y![!]!|!c!}#y#R#S#y#T#o#y%W;'S#y;'S;:j$m<%lO#y!b&jX`!b}!O!|!Q![!|![!]!|!c!}'V#R#S!|#T#o'V%W;'S!|;'S;:j#n<%lO!|!b'^XW!b`!b}!O!|!Q![!|![!]!|!c!}'V#R#S!|#T#o'V%W;'S!|;'S;:j#n<%lO!|",tokenizers:[6,7,new s("b~RP#q#rU~XP#q#r[~aOT~~",17,4),new s("!k~RQvwX#o#p!_~^TU~Opmq!]m!^;'Sm;'S;=`!X<%lOm~pUOpmq!]m!]!^!S!^;'Sm;'S;=`!X<%lOm~!XOU~~![P;=`<%lm~!bP#o#p!e~!jOk~~",72,2),new s("[~RPwxU~ZOp~~",11,15),new s("[~RPrsU~ZOn~~",11,14),new s("!e~RQvwXwx!_~^Tc~Opmq!]m!^;'Sm;'S;=`!X<%lOm~pUOpmq!]m!]!^!S!^;'Sm;'S;=`!X<%lOm~!XOc~~![P;=`<%lm~!dOt~~",66,35),new s("!e~RQrsXvw^~^Or~~cTb~Oprq!]r!^;'Sr;'S;=`!^<%lOr~uUOprq!]r!]!^!X!^;'Sr;'S;=`!^<%lOr~!^Ob~~!aP;=`<%lr~",66,33)],topRules:{Content:[0,1],Attribute:[1,7]},tokenPrec:157}),l=o.parser.configure({top:"SingleExpression"}),u=p.configure({props:[O({Text:t.content,Is:t.definitionOperator,AttributeName:t.attributeName,VueAttributeName:t.keyword,Identifier:t.variableName,"AttributeValue ScriptAttributeValue":t.attributeValue,Entity:t.character,"{{ }}":t.brace,"@ :":t.punctuation})]}),m={parser:l},S={parser:u.configure({wrap:n(((O,t)=>"InterpolationContent"==O.name?m:null))})},b={parser:u.configure({wrap:n(((O,t)=>"AttributeScript"==O.name?m:null)),top:"Attribute"})},c=a();function Q(O){return O.configure({dialect:"selfClosing",wrap:n(y)},"vue")}const P=Q(c.language);function y(O,t){switch(O.name){case"Attribute":return/^(@|:|v-)/.test(t.read(O.from,O.from+2))?b:null;case"Text":return S}return null}function g(O={}){let t=c;if(O.base){if("html"!=O.base.language.name||!(O.base.language instanceof e))throw new RangeError("The base option must be the result of calling html(...)");t=O.base}return new r(t.language==c.language?P:Q(t.language),[t.support,t.language.data.of({closeBrackets:{brackets:["{",'"']}})])}export{g as vue,P as vueLanguage}; diff --git a/nicegui/elements/lib/codemirror/index-Ckjrdmtm.js b/nicegui/elements/lib/codemirror/index-Ckjrdmtm.js new file mode 100644 index 000000000..f6950fd67 --- /dev/null +++ b/nicegui/elements/lib/codemirror/index-Ckjrdmtm.js @@ -0,0 +1 @@ +import{P as t,o as e,m as s,H as i,n as r,q as h,I as n}from"./editor-DzvLhhiW.js";class o{constructor(t,e,s,i,r,h,n,o,a,l=0,c){this.p=t,this.stack=e,this.state=s,this.reducePos=i,this.pos=r,this.score=h,this.buffer=n,this.bufferBase=o,this.curContext=a,this.lookAhead=l,this.parent=c}toString(){return`[${this.stack.filter(((t,e)=>e%3==0)).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(t,e,s=0){let i=t.parser.context;return new o(t,[],e,s,s,0,[],0,i?new a(i,i.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(t,e){this.stack.push(this.state,e,this.bufferBase+this.buffer.length),this.state=t}reduce(t){var e;let s=t>>19,i=65535&t,{parser:r}=this.p,h=this.reducePos=2e3&&!(null===(e=this.p.parser.nodeSet.types[i])||void 0===e?void 0:e.isAnonymous)&&(a==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=l):this.p.lastBigReductionSizeo;)this.stack.pop();this.reduceContext(i,a)}storeNode(t,e,s,i=4,r=!1){if(0==t&&(!this.stack.length||this.stack[this.stack.length-1]0&&0==t.buffer[i-4]&&t.buffer[i-1]>-1){if(e==s)return;if(t.buffer[i-2]>=e)return void(t.buffer[i-2]=s)}}if(r&&this.pos!=s){let r=this.buffer.length;if(r>0&&0!=this.buffer[r-4]){let t=!1;for(let e=r;e>0&&this.buffer[e-2]>s;e-=4)if(this.buffer[e-1]>=0){t=!0;break}if(t)for(;r>0&&this.buffer[r-2]>s;)this.buffer[r]=this.buffer[r-4],this.buffer[r+1]=this.buffer[r-3],this.buffer[r+2]=this.buffer[r-2],this.buffer[r+3]=this.buffer[r-1],r-=4,i>4&&(i-=4)}this.buffer[r]=t,this.buffer[r+1]=e,this.buffer[r+2]=s,this.buffer[r+3]=i}else this.buffer.push(t,e,s,i)}shift(t,e,s,i){if(131072&t)this.pushState(65535&t,this.pos);else if(262144&t)this.pos=i,this.shiftContext(e,s),e<=this.p.parser.maxNode&&this.buffer.push(e,s,i,4);else{let r=t,{parser:h}=this.p;(i>this.pos||e<=h.maxNode)&&(this.pos=i,h.stateFlag(r,1)||(this.reducePos=i)),this.pushState(r,s),this.shiftContext(e,s),e<=h.maxNode&&this.buffer.push(e,s,i,4)}}apply(t,e,s,i){65536&t?this.reduce(t):this.shift(t,e,s,i)}useNode(t,e){let s=this.p.reused.length-1;(s<0||this.p.reused[s]!=t)&&(this.p.reused.push(t),s++);let i=this.pos;this.reducePos=this.pos=i+t.length,this.pushState(e,i),this.buffer.push(s,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,e=t.buffer.length;for(;e>0&&t.buffer[e-2]>t.reducePos;)e-=4;let s=t.buffer.slice(e),i=t.bufferBase+e;for(;t&&i==t.bufferBase;)t=t.parent;return new o(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,s,i,this.curContext,this.lookAhead,t)}recoverByDelete(t,e){let s=t<=this.p.parser.maxNode;s&&this.storeNode(t,this.pos,e,4),this.storeNode(0,this.pos,e,s?8:4),this.pos=this.reducePos=e,this.score-=190}canShift(t){for(let e=new l(this);;){let s=this.p.parser.stateSlot(e.state,4)||this.p.parser.hasAction(e.state,t);if(0==s)return!1;if(!(65536&s))return!0;e.reduce(s)}}recoverByInsert(t){if(this.stack.length>=300)return[];let e=this.p.parser.nextStates(this.state);if(e.length>8||this.stack.length>=120){let s=[];for(let i,r=0;r1&e&&t==i))||s.push(e[t],i)}e=s}let s=[];for(let t=0;t>19,i=65535&e,r=this.stack.length-3*s;if(r<0||t.getGoto(this.stack[r],i,!1)<0){let t=this.findForcedReduction();if(null==t)return!1;e=t}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(e),!0}findForcedReduction(){let{parser:t}=this.p,e=[],s=(i,r)=>{if(!e.includes(i))return e.push(i),t.allActions(i,(e=>{if(393216&e);else if(65536&e){let s=(e>>19)-r;if(s>1){let i=65535&e,r=this.stack.length-3*s;if(r>=0&&t.getGoto(this.stack[r],i,!1)>=0)return s<<19|65536|i}}else{let t=s(e,r+1);if(null!=t)return t}}))};return s(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(3!=this.stack.length)return!1;let{parser:t}=this.p;return 65535==t.data[t.stateSlot(this.state,1)]&&!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 e=0;ethis.lookAhead&&(this.emitLookAhead(),this.lookAhead=t)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class a{constructor(t,e){this.tracker=t,this.context=e,this.hash=t.strict?t.hash(e):0}}class l{constructor(t){this.start=t,this.state=t.state,this.stack=t.stack,this.base=this.stack.length}reduce(t){let e=65535&t,s=t>>19;0==s?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=3*(s-1);let i=this.start.p.parser.getGoto(this.stack[this.base-3],e,!0);this.state=i}}class c{constructor(t,e,s){this.stack=t,this.pos=e,this.index=s,this.buffer=t.buffer,0==this.index&&this.maybeNext()}static create(t,e=t.bufferBase+t.buffer.length){return new c(t,e,e-t.bufferBase)}maybeNext(){let t=this.stack.parent;null!=t&&(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,0==this.index&&this.maybeNext()}fork(){return new c(this.stack,this.pos,this.index)}}function u(t,e=Uint16Array){if("string"!=typeof t)return t;let s=null;for(let i=0,r=0;i=92&&e--,e>=34&&e--;let r=e-32;if(r>=46&&(r-=46,s=!0),h+=r,s)break;h*=46}s?s[r++]=h:s=new e(h)}return s}class f{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const p=new f;class d{constructor(t,e){this.input=t,this.ranges=e,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=p,this.rangeIndex=0,this.pos=this.chunkPos=e[0].from,this.range=e[0],this.end=e[e.length-1].to,this.readNext()}resolveOffset(t,e){let s=this.range,i=this.rangeIndex,r=this.pos+t;for(;rs.to:r>=s.to;){if(i==this.ranges.length-1)return null;let t=this.ranges[++i];r+=t.from-s.to,s=t}return r}clipPos(t){if(t>=this.range.from&&tt)return Math.max(t,e.from);return this.end}peek(t){let e,s,i=this.chunkOff+t;if(i>=0&&i=this.chunk2Pos&&ei.to&&(this.chunk2=this.chunk2.slice(0,i.to-e)),s=this.chunk2.charCodeAt(0)}}return e>=this.token.lookAhead&&(this.token.lookAhead=e+1),s}acceptToken(t,e=0){let s=e?this.resolveOffset(e,-1):this.pos;if(null==s||s=this.chunk2Pos&&this.posthis.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,e){if(e?(this.token=e,e.start=t,e.lookAhead=t+1,e.value=e.extended=-1):this.token=p,this.pos!=t){if(this.pos=t,t==this.end)return this.setDone(),this;for(;t=this.range.to;)this.range=this.ranges[++this.rangeIndex];t>=this.chunkPos&&t=this.chunkPos&&e<=this.chunkPos+this.chunk.length)return this.chunk.slice(t-this.chunkPos,e-this.chunkPos);if(t>=this.chunk2Pos&&e<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(t-this.chunk2Pos,e-this.chunk2Pos);if(t>=this.range.from&&e<=this.range.to)return this.input.read(t,e);let s="";for(let i of this.ranges){if(i.from>=e)break;i.to>t&&(s+=this.input.read(Math.max(i.from,t),Math.min(i.to,e)))}return s}}class k{constructor(t,e){this.data=t,this.id=e}token(t,e){let{parser:s}=e.p;x(this.data,t,e,this.id,s.data,s.tokenPrecTable)}}k.prototype.contextual=k.prototype.fallback=k.prototype.extend=!1;class g{constructor(t,e,s){this.precTable=e,this.elseToken=s,this.data="string"==typeof t?u(t):t}token(t,e){let s=t.pos,i=0;for(;;){let s=t.next<0,r=t.resolveOffset(1,1);if(x(this.data,t,e,0,this.data,this.precTable),t.token.value>-1)break;if(null==this.elseToken)return;if(s||i++,null==r)break;t.reset(r,t.token)}i&&(t.reset(s,t.token),t.acceptToken(this.elseToken,i))}}g.prototype.contextual=k.prototype.fallback=k.prototype.extend=!1;class m{constructor(t,e={}){this.token=t,this.contextual=!!e.contextual,this.fallback=!!e.fallback,this.extend=!!e.extend}}function x(t,e,s,i,r,h){let n=0,o=1<0){let s=t[i];if(a.allows(s)&&(-1==e.token.value||e.token.value==s||S(s,e.token.value,r,h))){e.acceptToken(s);break}}let i=e.next,l=0,c=t[n+2];if(!(e.next<0&&c>l&&65535==t[s+3*c-3])){for(;l>1,h=s+r+(r<<1),o=t[h],a=t[h+1]||65536;if(i=a)){n=t[h+2],e.advance();continue t}l=r+1}}break}n=t[s+3*c-1]}}function b(t,e,s){for(let i,r=e;65535!=(i=t[r]);r++)if(i==s)return r-e;return-1}function S(t,e,s,i){let r=b(s,i,e);return r<0||b(s,i,t)e)&&!i.type.isError)return s<0?Math.max(0,Math.min(i.to-1,e-25)):Math.min(t.length,Math.max(i.from+1,e+25));if(s<0?i.prevSibling():i.nextSibling())break;if(!i.parent())return s<0?0:t.length}}class C{constructor(t,e){this.fragments=t,this.nodeSet=e,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?A(t.tree,t.from+t.offset,1)-t.offset:t.from,this.safeTo=t.openEnd?A(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(tt)return this.nextStart=o,null;if(n instanceof h){if(o==t){if(o=Math.max(this.safeFrom,t)&&(this.trees.push(n),this.start.push(o),this.index.push(0))}else this.index[e]++,this.nextStart=o+n.length}}}class y{constructor(t,e){this.stream=e,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=t.tokenizers.map((t=>new f))}getActions(t){let e=0,s=null,{parser:i}=t.p,{tokenizers:r}=i,h=i.stateSlot(t.state,3),n=t.curContext?t.curContext.hash:0,o=0;for(let i=0;il.end+25&&(o=Math.max(l.lookAhead,o)),0!=l.value)){let i=e;if(l.extended>-1&&(e=this.addActions(t,l.extended,l.end,e)),e=this.addActions(t,l.value,l.end,e),!a.extend&&(s=l,e>i))break}}for(;this.actions.length>e;)this.actions.pop();return o&&t.setLookAhead(o),s||t.pos!=this.stream.end||(s=new f,s.value=t.p.parser.eofTerm,s.start=s.end=t.pos,e=this.addActions(t,s.value,s.end,e)),this.mainToken=s,this.actions}getMainToken(t){if(this.mainToken)return this.mainToken;let e=new f,{pos:s,p:i}=t;return e.start=s,e.end=Math.min(s+1,i.stream.end),e.value=s==i.stream.end?i.parser.eofTerm:0,e}updateCachedToken(t,e,s){let i=this.stream.clipPos(s.pos);if(e.token(this.stream.reset(i,t),s),t.value>-1){let{parser:e}=s.p;for(let i=0;i=0&&s.p.parser.dialect.allows(r>>1)){1&r?t.extended=r>>1:t.value=r>>1;break}}}else t.value=0,t.end=this.stream.clipPos(i+1)}putAction(t,e,s,i){for(let e=0;e4*t.bufferLength?new C(s,t.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let t,e,s=this.stacks,i=this.minStackPos,r=this.stacks=[];if(this.bigReductionCount>300&&1==s.length){let[t]=s;for(;t.forceReduce()&&t.stack.length&&t.stack[t.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let h=0;hi)r.push(n);else{if(this.advanceStack(n,r,s))continue;{t||(t=[],e=[]),t.push(n);let s=this.tokens.getMainToken(n);e.push(s.value,s.end)}}break}}if(!r.length){let e=t&&function(t){let e=null;for(let s of t){let t=s.p.stoppedAt;(s.pos==s.p.stream.end||null!=t&&s.pos>t)&&s.p.parser.stateFlag(s.state,2)&&(!e||e.scorethis.stoppedAt?t[0]:this.runRecovery(t,e,r);if(s)return v&&console.log("Force-finish "+this.stackID(s)),this.stackToTree(s.forceAll())}if(this.recovering){let t=1==this.recovering?1:3*this.recovering;if(r.length>t)for(r.sort(((t,e)=>e.score-t.score));r.length>t;)r.pop();r.some((t=>t.reducePos>i))&&this.recovering--}else if(r.length>1){t:for(let t=0;t500&&i.buffer.length>500){if(!((e.score-i.score||e.buffer.length-i.buffer.length)>0)){r.splice(t--,1);continue t}r.splice(s--,1)}}}r.length>12&&r.splice(12,r.length-12)}this.minStackPos=r[0].pos;for(let t=1;t ":"";if(null!=this.stoppedAt&&i>this.stoppedAt)return t.forceReduce()?t:null;if(this.fragments){let e=t.curContext&&t.curContext.tracker.strict,s=e?t.curContext.hash:0;for(let a=this.fragments.nodeAt(i);a;){let i=this.parser.nodeSet.types[a.type.id]==a.type?n.getGoto(t.state,a.type.id):-1;if(i>-1&&a.length&&(!e||(a.prop(r.contextHash)||0)==s))return t.useNode(a,i),v&&console.log(o+this.stackID(t)+` (via reuse of ${n.getName(a.type.id)})`),!0;if(!(a instanceof h)||0==a.children.length||a.positions[0]>0)break;let l=a.children[0];if(!(l instanceof h&&0==a.positions[0]))break;a=l}}let a=n.stateSlot(t.state,4);if(a>0)return t.reduce(a),v&&console.log(o+this.stackID(t)+` (via always-reduce ${n.getName(65535&a)})`),!0;if(t.stack.length>=8400)for(;t.stack.length>6e3&&t.forceReduce(););let l=this.tokens.getActions(t);for(let r=0;ri?e.push(f):s.push(f)}return!1}advanceFully(t,e){let s=t.pos;for(;;){if(!this.advanceStack(t,null,null))return!1;if(t.pos>s)return w(t,e),!0}}runRecovery(t,e,s){let i=null,r=!1;for(let h=0;h ":"";if(n.deadEnd){if(r)continue;if(r=!0,n.restart(),v&&console.log(l+this.stackID(n)+" (restarted)"),this.advanceFully(n,s))continue}let c=n.split(),u=l;for(let t=0;c.forceReduce()&&t<10;t++){if(v&&console.log(u+this.stackID(c)+" (via force-reduce)"),this.advanceFully(c,s))break;v&&(u=this.stackID(c)+" -> ")}for(let t of n.recoverByInsert(o))v&&console.log(l+this.stackID(t)+" (via recover-insert)"),this.advanceFully(t,s);this.stream.end>n.pos?(a==n.pos&&(a++,o=0),n.recoverByDelete(o,a),v&&console.log(l+this.stackID(n)+` (via recover-delete ${this.parser.getName(o)})`),w(n,s)):(!i||i.scoret;class z{constructor(t){this.start=t.start,this.shift=t.shift||R,this.reduce=t.reduce||R,this.reuse=t.reuse||R,this.hash=t.hash||(()=>0),this.strict=!1!==t.strict}}class I extends t{constructor(t){if(super(),this.wrappers=[],14!=t.version)throw new RangeError(`Parser version (${t.version}) doesn't match runtime version (14)`);let h=t.nodeNames.split(" ");this.minRepeatTerm=h.length;for(let e=0;et.topRules[e][1])),o=[];for(let t=0;t=0)a(i,t,e[s++]);else{let r=e[s+-i];for(let h=-i;h>0;h--)a(e[s++],t,r);s++}}}this.nodeSet=new e(h.map(((e,i)=>s.define({name:i>=this.minRepeatTerm?void 0:e,id:i,props:o[i],top:n.indexOf(i)>-1,error:0==i,skipped:t.skippedNodes&&t.skippedNodes.indexOf(i)>-1})))),t.propSources&&(this.nodeSet=this.nodeSet.extend(...t.propSources)),this.strict=!1,this.bufferLength=i;let l=u(t.tokenData);this.context=t.context,this.specializerSpecs=t.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let t=0;t"number"==typeof t?new k(l,t):t)),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,e,s){let i=new T(this,t,e,s);for(let r of this.wrappers)i=r(i,t,e,s);return i}getGoto(t,e,s=!1){let i=this.goto;if(e>=i[0])return-1;for(let r=i[e+1];;){let e=i[r++],h=1&e,n=i[r++];if(h&&s)return n;for(let s=r+(e>>1);r0}validAction(t,e){return!!this.allActions(t,(t=>t==e||null))}allActions(t,e){let s=this.stateSlot(t,4),i=s?e(s):void 0;for(let s=this.stateSlot(t,1);null==i;s+=3){if(65535==this.data[s]){if(1!=this.data[s+1])break;s=B(this.data,s+2)}i=e(B(this.data,s+1))}return i}nextStates(t){let e=[];for(let s=this.stateSlot(t,1);;s+=3){if(65535==this.data[s]){if(1!=this.data[s+1])break;s=B(this.data,s+2)}if(!(1&this.data[s+2])){let t=this.data[s+1];e.some(((e,s)=>1&s&&e==t))||e.push(this.data[s],t)}}return e}configure(t){let e=Object.assign(Object.create(I.prototype),this);if(t.props&&(e.nodeSet=this.nodeSet.extend(...t.props)),t.top){let s=this.topRules[t.top];if(!s)throw new RangeError(`Invalid top rule name ${t.top}`);e.top=s}return t.tokenizers&&(e.tokenizers=this.tokenizers.map((e=>{let s=t.tokenizers.find((t=>t.from==e));return s?s.to:e}))),t.specializers&&(e.specializers=this.specializers.slice(),e.specializerSpecs=this.specializerSpecs.map(((s,i)=>{let r=t.specializers.find((t=>t.from==s.external));if(!r)return s;let h=Object.assign(Object.assign({},s),{external:r.to});return e.specializers[i]=D(h),h}))),t.contextTracker&&(e.context=t.contextTracker),t.dialect&&(e.dialect=this.parseDialect(t.dialect)),null!=t.strict&&(e.strict=t.strict),t.wrap&&(e.wrappers=e.wrappers.concat(t.wrap)),null!=t.bufferLength&&(e.bufferLength=t.bufferLength),e}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 e=this.dynamicPrecedences;return null==e?0:e[t]||0}parseDialect(t){let e=Object.keys(this.dialects),s=e.map((()=>!1));if(t)for(let i of t.split(" ")){let t=e.indexOf(i);t>=0&&(s[t]=!0)}let i=null;for(let t=0;tt.external(s,i)<<1|e}return t.get}export{z as C,m as E,I as L,g as a}; diff --git a/nicegui/elements/lib/codemirror/index-Ctywxs9F.js b/nicegui/elements/lib/codemirror/index-Ctywxs9F.js new file mode 100644 index 000000000..612a34a4e --- /dev/null +++ b/nicegui/elements/lib/codemirror/index-Ctywxs9F.js @@ -0,0 +1 @@ +import{L as O}from"./index-Ckjrdmtm.js";import{s as Q,t as $,L as P,i,c as a,g as r,h as e,f as s,j as X,a as l}from"./editor-DzvLhhiW.js";const Y=Q({null:$.null,instanceof:$.operatorKeyword,this:$.self,"new super assert open to with void":$.keyword,"class interface extends implements enum var":$.definitionKeyword,"module package import":$.moduleKeyword,"switch while for if else case default do break continue return try catch finally throw":$.controlKeyword,"requires exports opens uses provides public private protected static transitive abstract final strictfp synchronized native transient volatile throws":$.modifier,IntegerLiteral:$.integer,FloatingPointLiteral:$.float,"StringLiteral TextBlock":$.string,CharacterLiteral:$.character,LineComment:$.lineComment,BlockComment:$.blockComment,BooleanLiteral:$.bool,PrimitiveType:$.standard($.typeName),TypeName:$.typeName,Identifier:$.variableName,"MethodName/Identifier":$.function($.variableName),Definition:$.definition($.variableName),ArithOp:$.arithmeticOperator,LogicOp:$.logicOperator,BitOp:$.bitwiseOperator,CompareOp:$.compareOperator,AssignOp:$.definitionOperator,UpdateOp:$.updateOperator,Asterisk:$.punctuation,Label:$.labelName,"( )":$.paren,"[ ]":$.squareBracket,"{ }":$.brace,".":$.derefOperator,", ;":$.separator}),S={__proto__:null,true:34,false:34,null:42,void:46,byte:48,short:48,int:48,long:48,char:48,float:48,double:48,boolean:48,extends:62,super:64,class:76,this:78,new:84,public:100,protected:102,private:104,abstract:106,static:108,final:110,strictfp:112,default:114,synchronized:116,native:118,transient:120,volatile:122,throws:150,implements:160,interface:166,enum:176,instanceof:238,open:267,module:269,requires:274,transitive:276,exports:278,to:280,opens:282,uses:284,provides:286,with:288,package:292,import:296,if:308,else:310,while:314,for:318,var:325,assert:332,switch:336,case:342,do:346,break:350,continue:354,return:358,throw:364,try:368,catch:372,finally:380},o=O.deserialize({version:14,states:"##jQ]QPOOQ$wQPOOO(bQQO'#H^O*iQQO'#CbOOQO'#Cb'#CbO*pQPO'#CaO*xOSO'#CpOOQO'#Hc'#HcOOQO'#Cu'#CuO,eQPO'#D_O-OQQO'#HmOOQO'#Hm'#HmO/gQQO'#HhO/nQQO'#HhOOQO'#Hh'#HhOOQO'#Hg'#HgO1rQPO'#DUO2PQPO'#GnO4wQPO'#D_O5OQPO'#DzO*pQPO'#E[O5qQPO'#E[OOQO'#DV'#DVO7SQQO'#HaO9^QQO'#EeO9eQPO'#EdO9jQPO'#EfOOQO'#Hb'#HbO7jQQO'#HbO:pQQO'#FhO:wQPO'#ExO:|QPO'#E}O:|QPO'#FPOOQO'#Ha'#HaOOQO'#HY'#HYOOQO'#Gh'#GhOOQO'#HX'#HXO<^QPO'#FiOOQO'#HW'#HWOOQO'#Gg'#GgQ]QPOOOOQO'#Hs'#HsOQQP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)Q)R)])f*P*l*o+T+d+h+i+l+o+s,Y,`-r-t-}.R.g.m/[/_/b/d/n0Z0f0kT&p#t,ZQ&|#xQ(P$oQ-u+hQ/]-tR0P/_]!nP!o'^*q-^/O#PaOPX`bcx![!f!o!y#_#e#l$_$m$n$o$p$q%O%b%d&]&i'^'e'h'{(U)O)Q)R*W*q+O+d+l+s+x,Y-[-^.R/O/dU#WY!W'|Q%T!eU&k#n#s+fQ(o%VS,s*T*zT.s,u-aj#UY!W!e#n#s%V%w&W)y*T*z,u-aU&V#`&`(}Q)x&[Q+e'|Q+q(`Q-s+fQ.O+rQ/g.WR0U/hQ)i%vQ,g)fR/o.mR,h)f`!jP!o'^'h*q+O-^/OT%W!g*|R%]!hW%U!e%V*z-aQ(z%^R,V({S#d`%bR&a#eQ)X%gT*t'`'iR*y'e[!lP!o'^*q-^/OR%X!gR#h`R,b)]R)a%kT-j+]-kQ/V-mR/z/WR/z/X",nodeNames:"⚠ LineComment BlockComment Program ModuleDeclaration MarkerAnnotation Identifier ScopedIdentifier . Annotation ) ( AnnotationArgumentList AssignmentExpression FieldAccess IntegerLiteral FloatingPointLiteral BooleanLiteral CharacterLiteral StringLiteral TextBlock null ClassLiteral void PrimitiveType TypeName ScopedTypeName GenericType TypeArguments AnnotatedType Wildcard extends super , ArrayType ] Dimension [ class this ParenthesizedExpression ObjectCreationExpression new ArgumentList } { ClassBody ; FieldDeclaration Modifiers public protected private abstract static final strictfp default synchronized native transient volatile VariableDeclarator Definition AssignOp ArrayInitializer MethodDeclaration TypeParameters TypeParameter TypeBound FormalParameters ReceiverParameter FormalParameter SpreadParameter Throws throws Block ClassDeclaration Superclass SuperInterfaces implements InterfaceTypeList InterfaceDeclaration interface ExtendsInterfaces InterfaceBody ConstantDeclaration EnumDeclaration enum EnumBody EnumConstant EnumBodyDeclarations AnnotationTypeDeclaration AnnotationTypeBody AnnotationTypeElementDeclaration StaticInitializer ConstructorDeclaration ConstructorBody ExplicitConstructorInvocation ArrayAccess MethodInvocation MethodName MethodReference ArrayCreationExpression Dimension AssignOp BinaryExpression CompareOp CompareOp LogicOp LogicOp BitOp BitOp BitOp ArithOp ArithOp ArithOp BitOp InstanceofExpression instanceof LambdaExpression InferredParameters TernaryExpression LogicOp : UpdateExpression UpdateOp UnaryExpression LogicOp BitOp CastExpression ElementValueArrayInitializer ElementValuePair open module ModuleBody ModuleDirective requires transitive exports to opens uses provides with PackageDeclaration package ImportDeclaration import Asterisk ExpressionStatement LabeledStatement Label IfStatement if else WhileStatement while ForStatement for ForSpec LocalVariableDeclaration var EnhancedForStatement ForSpec AssertStatement assert SwitchStatement switch SwitchBlock SwitchLabel case DoStatement do BreakStatement break ContinueStatement continue ReturnStatement return SynchronizedStatement ThrowStatement throw TryStatement try CatchClause catch CatchFormalParameter CatchType FinallyClause finally TryWithResourcesStatement ResourceSpecification Resource ClassContent",maxTerm:276,nodeProps:[["isolate",-4,1,2,18,19,""],["group",-26,4,47,76,77,82,87,92,145,147,150,151,153,156,158,161,163,165,167,172,174,176,178,180,181,183,191,"Statement",-25,6,13,14,15,16,17,18,19,20,21,22,39,40,41,99,100,102,103,106,118,120,122,125,127,130,"Expression",-7,23,24,25,26,27,29,34,"Type"],["openedBy",10,"(",44,"{"],["closedBy",11,")",45,"}"]],propSources:[Y],skippedNodes:[0,1,2],repeatNodeCount:28,tokenData:"#$f_R!_OX%QXY'fYZ)bZ^'f^p%Qpq'fqr*|rs,^st%Qtu4euv5qvw7Rwx8ixyAQyzAnz{B[{|CQ|}Dh}!OEU!O!PFo!P!Q! i!Q!R!,_!R![!0V![!]!>g!]!^!?w!^!_!@e!_!`!BO!`!a!Br!a!b!D`!b!c!EO!c!}!Kz!}#O!MW#O#P%Q#P#Q!Mt#Q#R!Nb#R#S4e#S#T%Q#T#o4e#o#p# U#p#q# r#q#r##[#r#s##x#s#y%Q#y#z'f#z$f%Q$f$g'f$g#BY%Q#BY#BZ'f#BZ$IS%Q$IS$I_'f$I_$I|%Q$I|$JO'f$JO$JT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%lO%Q_!LRa&RZ&YSOY%QYZ%lZr%Qrs%qst%Qtu!Kzu!Q%Q!Q![!Kz![!c%Q!c!}!Kz!}#R%Q#R#S!Kz#S#T%Q#T#o!Kz#o;'S%Q;'S;=`&s<%lO%Q_!M_VuZ&YSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QV!M{VsR&YSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QU!NiX#eQ&YSOY%QYZ%lZr%Qrs%qs!_%Q!_!`6e!`;'S%Q;'S;=`&s<%lO%QV# ]V}R&YSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%Q_# {Z'OX#dQ&YSOY%QYZ%lZr%Qrs%qs!_%Q!_!`6e!`#p%Q#p#q#!n#q;'S%Q;'S;=`&s<%lO%QU#!uV#bQ&YSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QV##cV|R&YSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QT#$PV#uP&YSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%Q",tokenizers:[0,1,2,3],topRules:{Program:[0,3],ClassContent:[1,194]},dynamicPrecedences:{27:1,232:-1,243:-1},specialized:[{term:231,get:O=>S[O]||-1}],tokenPrec:7144}),Z=P.define({name:"java",parser:o.configure({props:[i.add({IfStatement:a({except:/^\s*({|else\b)/}),TryStatement:a({except:/^\s*({|catch|finally)\b/}),LabeledStatement:r,SwitchBlock:O=>{let Q=O.textAfter,$=/^\s*\}/.test(Q),P=/^\s*(case|default)\b/.test(Q);return O.baseIndent+($?0:P?1:2)*O.unit},Block:e({closing:"}"}),BlockComment:()=>null,Statement:a({except:/^{/})}),s.add({"Block SwitchBlock ClassBody ElementValueArrayInitializer ModuleBody EnumBody ConstructorBody InterfaceBody ArrayInitializer":X,BlockComment:O=>({from:O.from+2,to:O.to-2})})]}),languageData:{commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\})$/}});function t(){return new l(Z)}export{t as java,Z as javaLanguage}; diff --git a/nicegui/elements/lib/codemirror/index-CvY89YCL.js b/nicegui/elements/lib/codemirror/index-CvY89YCL.js new file mode 100644 index 000000000..2e26be5ec --- /dev/null +++ b/nicegui/elements/lib/codemirror/index-CvY89YCL.js @@ -0,0 +1 @@ +import{s as O,t as r,L as e,a as t,p as n}from"./editor-DzvLhhiW.js";import{html as a}from"./index-CYWhQqFb.js";import{javascriptLanguage as o}from"./index-B7tHWccP.js";import{L as i,E as p}from"./index-Ckjrdmtm.js";import"./index-CJhLK3a1.js";const l=new p((O=>{let r=O.pos;for(;;){if(10==O.next){O.advance();break}if(123==O.next&&123==O.peek(1)||O.next<0)break;O.advance()}O.pos>r&&O.acceptToken(1)}));function Q(O,r,e){return new p((t=>{let n=t.pos;for(;t.next!=O&&t.next>=0&&(e||38!=t.next&&(123!=t.next||123!=t.peek(1)));)t.advance();t.pos>n&&t.acceptToken(r)}))}const S=Q(39,33,!1),s=Q(34,34,!1),u=Q(39,35,!0),q=Q(34,36,!0),P=i.deserialize({version:14,states:"(jOVOqOOOeQpOOOvO!bO'#CaOOOP'#Cx'#CxQVOqOOO!OQpO'#CfO!WQpO'#ClO!]QpO'#CrO!bQpO'#CsOOQO'#Cv'#CvQ!gQpOOQ!lQpOOQ!qQpOOOOOV,58{,58{O!vOpO,58{OOOP-E6v-E6vO!{QpO,59QO#TQpO,59QOOQO,59W,59WO#YQpO,59^OOQO,59_,59_O#_QpOOO#_QpOOO#gQpOOOOOV1G.g1G.gO#oQpO'#CyO#tQpO1G.lOOQO1G.l1G.lO#|QpO1G.lOOQO1G.x1G.xO$UO`O'#DUO$ZOWO'#DUOOQO'#Co'#CoQOQpOOOOQO'#Cu'#CuO$`OtO'#CwO$qOrO'#CwOOQO,59e,59eOOQO-E6w-E6wOOQO7+$W7+$WO%SQpO7+$WO%[QpO7+$WOOOO'#Cp'#CpO%aOpO,59pOOOO'#Cq'#CqO%fOpO,59pOOOS'#Cz'#CzO%kOtO,59cOOQO,59c,59cOOOQ'#C{'#C{O%|OrO,59cO&_QpO<"InterpolationContent"==O.name?g:null))})},b={parser:$.configure({wrap:n(((O,r)=>{var e;return"InterpolationContent"==O.name?g:"AttributeInterpolation"!=O.name?null:"StatementAttributeValue"==(null===(e=O.node.parent)||void 0===e?void 0:e.name)?m:g})),top:"Attribute"})},v=a();function d(O){return O.configure({wrap:n(f)},"angular")}const W=d(v.language);function f(O,r){switch(O.name){case"Attribute":return/^[*#(\[]|\{\{/.test(r.read(O.from,O.to))?b:null;case"Text":return c}return null}function x(O={}){let r=v;if(O.base){if("html"!=O.base.language.name||!(O.base.language instanceof e))throw new RangeError("The base option must be the result of calling html(...)");r=O.base}return new t(r.language==v.language?W:d(r.language),[r.support,r.language.data.of({closeBrackets:{brackets:["[","{",'"']},indentOnInput:/^\s*[\}\]]$/})])}export{x as angular,W as angularLanguage}; diff --git a/nicegui/elements/lib/codemirror/index-D6K4mE4a.js b/nicegui/elements/lib/codemirror/index-D6K4mE4a.js new file mode 100644 index 000000000..3f8e59b03 --- /dev/null +++ b/nicegui/elements/lib/codemirror/index-D6K4mE4a.js @@ -0,0 +1 @@ +import{C as O,E as e,L as n}from"./index-Ckjrdmtm.js";import{s as t,t as a,L as P,i as Q,h as o,f as r,j as c,a as s,p as i}from"./editor-DzvLhhiW.js";const p=63;class X{constructor(O,e,n){this.parent=O,this.depth=e,this.type=n,this.hash=(O?O.hash+O.hash<<8:0)+e+(e<<4)+n}}function f(O,e){for(let n=0,t=e-O.pos-1;;t--,n++){let e=O.peek(t);if(R(e)||-1==e)return n}}function l(O){return 32==O||9==O}function R(O){return 10==O||13==O}function d(O){return l(O)||R(O)}function u(O){return O<0||d(O)}X.top=new X(null,-1,0);const S=new O({start:X.top,reduce:(O,e)=>3!=O.type||20!=e&&34!=e?O:O.parent,shift(O,e,n,t){if(3==e)return new X(O,f(t,t.pos),1);if(65==e||5==e)return new X(O,f(t,t.pos),2);if(e==p)return O.parent;if(19==e||33==e)return new X(O,0,3);if(13==e&&4==O.type)return O.parent;if(47==e){let e=/[1-9]/.exec(t.read(t.pos,n.pos));if(e)return new X(O,O.depth+ +e[0],4)}return O},hash:O=>O.hash});function k(O,e,n=0){return O.peek(n)==e&&O.peek(n+1)==e&&O.peek(n+2)==e&&u(O.peek(n+3))}const b=new e(((O,e)=>{if(-1==O.next&&e.canShift(64))return O.acceptToken(64);let n=O.peek(-1);if((R(n)||n<0)&&3!=e.context.type){if(k(O,45)){if(!e.canShift(p))return O.acceptToken(1,3);O.acceptToken(p)}if(k(O,46)){if(!e.canShift(p))return O.acceptToken(2,3);O.acceptToken(p)}let n=0;for(;32==O.next;)n++,O.advance();!(n{if(3!=e.context.type)if(45==O.next)O.advance(),u(O.next)&&O.acceptToken(1==e.context.type&&e.context.depth==f(O,O.pos-1)?4:3);else if(63==O.next)O.advance(),u(O.next)&&O.acceptToken(2==e.context.type&&e.context.depth==f(O,O.pos-1)?6:5);else{let n=O.pos;for(;;)if(l(O.next)){if(O.pos==n)return;O.advance()}else if(33==O.next)g(O);else{if(38!=O.next){if(42==O.next){h(O);break}if(39==O.next||34==O.next){if(v(O,!0))break;return}if(91==O.next||123==O.next){if(!T(O))return;break}W(O,!0,!1,0);break}h(O)}for(;l(O.next);)O.advance();if(58==O.next){if(O.pos==n&&e.canShift(29))return;u(O.peek(1))&&O.acceptTokenTo(2==e.context.type&&e.context.depth==f(O,n)?66:65,n)}}else 63==O.next&&(O.advance(),u(O.next)&&O.acceptToken(7))}),{contextual:!0});function m(O){return O>=48&&O<=57||O>=97&&O<=102||O>=65&&O<=70}function $(O,e){return 37==O.next?(O.advance(),m(O.next)&&O.advance(),m(O.next)&&O.advance(),!0):!!((n=O.next)>32&&n<127&&34!=n&&37!=n&&44!=n&&60!=n&&62!=n&&92!=n&&94!=n&&96!=n&&123!=n&&124!=n&&125!=n||e&&44==O.next)&&(O.advance(),!0);var n}function g(O){if(O.advance(),60==O.next){for(O.advance();;)if(!$(O,!0)){62==O.next&&O.advance();break}}else for(;$(O,!1););}function h(O){for(O.advance();!u(O.next)&&"f"!=Y(O.tag);)O.advance()}function v(O,e){let n=O.next,t=!1,a=O.pos;for(O.advance();;){let P=O.next;if(P<0)break;if(O.advance(),P==n){if(39!=P)break;if(39!=O.next)break;O.advance()}else if(92==P&&34==n)O.next>=0&&O.advance();else if(R(P)){if(e)return!1;t=!0}else if(e&&O.pos>=a+1024)return!1}return!t}function T(O){for(let e=[],n=O.pos+1024;;)if(91==O.next||123==O.next)e.push(O.next),O.advance();else if(39==O.next||34==O.next){if(!v(O,!0))return!1}else if(93==O.next||125==O.next){if(e[e.length-1]!=O.next-2)return!1;if(e.pop(),O.advance(),!e.length)return!0}else{if(O.next<0||O.pos>n||R(O.next))return!1;O.advance()}}const D="iiisiiissisfissssssssssssisssiiissssssssssssssssssssssssssfsfssissssssssssssssssssssssssssfif";function Y(O){return O<33?"u":O>125?"s":D[O-33]}function q(O,e){let n=Y(O);return"u"!=n&&!(e&&"f"==n)}function W(O,e,n,t){if("s"!=Y(O.next)&&(63!=O.next&&58!=O.next&&45!=O.next||!q(O.peek(1),n)))return!1;O.advance();let a=O.pos;for(;;){let P=O.next,Q=0,o=t+1;for(;d(P);){if(R(P)){if(e)return!1;o=0}else o++;P=O.peek(++Q)}if(!(P>=0&&(58==P?q(O.peek(Q+1),n):35==P?32!=O.peek(Q-1):q(P,n)))||!n&&o<=t||0==o&&!n&&(k(O,45,Q)||k(O,46,Q)))break;if(e&&"f"==Y(P))return!1;for(let e=Q;e>=0;e--)O.advance();if(e&&O.pos>a+1024)return!1}return!0}const U=new e(((O,e)=>{if(33==O.next)g(O),O.acceptToken(12);else if(38==O.next||42==O.next){let e=38==O.next?10:11;h(O),O.acceptToken(e)}else 39==O.next||34==O.next?(v(O,!1),O.acceptToken(9)):W(O,!1,3==e.context.type,e.context.depth)&&O.acceptToken(8)})),Z=new e(((O,e)=>{let n=4==e.context.type?e.context.depth:-1,t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^!aT!aa!eQ!eaR#f!eW`Obc!cQxSS}U#SQ!`_Q#PzQ#V!OQ#b!_Q#d!bQ#s!|Q#w#QQ$P#WQ$V#cQ$Y#xQ$[#{Q$a$ZR$b$]xZOSU_bcz!O!_!b!c!|#Q#S#W#c#x#{$Z$]Q!VXQ!XYQ#[!UR#]!W!QWOSUXY_bcz!O!U!W!_!b!c!|#Q#S#W#c#x#{$Z$]pfPQThknrtv!k!l!s!u#R#k#pQ!gdQ!ieQ#g!fR#h!hSgPn^pQTkrtv#RQ!jhQ#i!kQ#j!lQ#n!sQ#o!uQ$W#kR$X#pQuQR!zv",nodeNames:"⚠ DirectiveEnd DocEnd - - ? ? ? Literal QuotedLiteral Anchor Alias Tag BlockLiteralContent Comment Stream BOM Document ] [ FlowSequence Item Tagged Anchored Anchored Tagged FlowMapping Pair Key : Pair , } { FlowMapping Pair Pair BlockSequence Item Item BlockMapping Pair Pair Key Pair Pair BlockLiteral BlockLiteralHeader Tagged Anchored Anchored Tagged Directive DirectiveName DirectiveContent Document",maxTerm:74,context:S,nodeProps:[["isolate",-3,8,9,14,""],["openedBy",18,"[",32,"{"],["closedBy",19,"]",33,"}"]],propSources:[y],skippedNodes:[0],repeatNodeCount:6,tokenData:"-Y~RnOX#PXY$QYZ$]Z]#P]^$]^p#Ppq$Qqs#Pst$btu#Puv$yv|#P|}&e}![#P![!]'O!]!`#P!`!a'i!a!}#P!}#O*g#O#P#P#P#Q+Q#Q#o#P#o#p+k#p#q'i#q#r,U#r;'S#P;'S;=`#z<%l?HT#P?HT?HU,o?HUO#PQ#UU!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PQ#kTOY#PZs#Pt;'S#P;'S;=`#z<%lO#PQ#}P;=`<%l#P~$VQ!f~XY$Qpq$Q~$bO!g~~$gS^~OY$bZ;'S$b;'S;=`$s<%lO$b~$vP;=`<%l$bR%OX!WQOX%kXY#PZ]%k]^#P^p%kpq#hq;'S%k;'S;=`&_<%lO%kR%rX!WQ!VPOX%kXY#PZ]%k]^#P^p%kpq#hq;'S%k;'S;=`&_<%lO%kR&bP;=`<%l%kR&lUoP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR'VUmP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR'p[!PP!WQOY#PZp#Ppq#hq{#P{|(f|}#P}!O(f!O!R#P!R![)p![;'S#P;'S;=`#z<%lO#PR(mW!PP!WQOY#PZp#Ppq#hq!R#P!R![)V![;'S#P;'S;=`#z<%lO#PR)^U!PP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR)wY!PP!WQOY#PZp#Ppq#hq{#P{|)V|}#P}!O)V!O;'S#P;'S;=`#z<%lO#PR*nUcP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR+XUbP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR+rUqP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR,]UpP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR,vU`P!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#P",tokenizers:[b,x,U,Z,0,1],topRules:{Stream:[0,15]},tokenPrec:0}),C=n.deserialize({version:14,states:"!vOQOPOOO]OPO'#C_OhOPO'#C^OOOO'#Cc'#CcOpOPO'#CaQOOOOOO{OPOOOOOO'#Cb'#CbO!WOPO'#C`O!`OPO,58xOOOO-E6a-E6aOOOO-E6`-E6`OOOO'#C_'#C_OOOO1G.d1G.d",stateData:"!h~OXPOYROWTP~OWVXXRXYRX~OYVOXSP~OXROYROWTX~OXROYROWTP~OYVOXSX~OX[O~OXY~",goto:"vWPPX[beioRUOQQOR]XRXQTTOUQWQRZWSSOURYS",nodeNames:"⚠ Document Frontmatter DashLine FrontmatterContent Body",maxTerm:10,skippedNodes:[0],repeatNodeCount:2,tokenData:"$z~RXOYnYZ!^Z]n]^!^^}n}!O!i!O;'Sn;'S;=`!c<%lOn~qXOYnYZ!^Z]n]^!^^;'Sn;'S;=`!c<%l~n~On~~!^~!cOY~~!fP;=`<%ln~!lZOYnYZ!^Z]n]^!^^}n}!O#_!O;'Sn;'S;=`!c<%l~n~On~~!^~#bZOYnYZ!^Z]n]^!^^}n}!O$T!O;'Sn;'S;=`!c<%l~n~On~~!^~$WXOYnYZ$sZ]n]^$s^;'Sn;'S;=`!c<%l~n~On~~$s~$zOX~Y~",tokenizers:[0],topRules:{Document:[0,1]},tokenPrec:67}),V=P.define({name:"yaml",parser:z.configure({props:[Q.add({Stream:O=>{for(let e=O.node.resolve(O.pos,-1);e&&e.to>=O.pos;e=e.parent){if("BlockLiteralContent"==e.name&&e.fromO.pos)return null}}return null},FlowMapping:o({closing:"}"}),FlowSequence:o({closing:"]"})}),r.add({"FlowMapping FlowSequence":c,"BlockSequence Pair BlockLiteral":(O,e)=>({from:e.doc.lineAt(O.from).to,to:O.to})})]}),languageData:{commentTokens:{line:"#"},indentOnInput:/^\s*[\]\}]$/}});function G(){return new s(V)}const _=P.define({name:"yaml-frontmatter",parser:C.configure({props:[t({DashLine:a.meta})]})});function w(O){let{language:e,support:n}=O.content instanceof s?O.content:{language:O.content,support:[]};return new s(_.configure({wrap:i((O=>"FrontmatterContent"==O.name?{parser:V.parser}:"Body"==O.name?{parser:e.parser}:null))}),n)}export{G as yaml,w as yamlFrontmatter,V as yamlLanguage}; diff --git a/nicegui/elements/lib/codemirror/index-DHm9fpZm.js b/nicegui/elements/lib/codemirror/index-DHm9fpZm.js new file mode 100644 index 000000000..faf29ca30 --- /dev/null +++ b/nicegui/elements/lib/codemirror/index-DHm9fpZm.js @@ -0,0 +1 @@ +import{m as e,n as t,s as n,t as r,o as s,P as i,T as o,q as a,p as l,e as h,l as f,r as c,a as u,u as d,v as p,C as m,w as g,x as k,y as x,z as b,f as L,i as S,A as C,B as w,D as y,F as A}from"./editor-DzvLhhiW.js";import{htmlCompletionSource as I,html as T}from"./index-CYWhQqFb.js";import"./index-Ckjrdmtm.js";import"./index-CJhLK3a1.js";import"./index-B7tHWccP.js";class B{static create(e,t,n,r,s){return new B(e,t,n,r+(r<<8)+e+(t<<4)|0,s,[],[])}constructor(e,n,r,s,i,o,a){this.type=e,this.value=n,this.from=r,this.hash=s,this.end=i,this.children=o,this.positions=a,this.hashProp=[[t.contextHash,s]]}addChild(e,n){e.prop(t.contextHash)!=this.hash&&(e=new a(e.type,e.children,e.positions,e.length,this.hashProp)),this.children.push(e),this.positions.push(n)}toTree(t,n=this.end){let r=this.children.length-1;return r>=0&&(n=Math.max(n,this.positions[r]+this.children[r].length+this.from)),new a(t.types[this.type],this.children,this.positions,n-this.from).balance({makeTree:(t,n,r)=>new a(e.none,t,n,r,this.hashProp)})}}var E;!function(e){e[e.Document=1]="Document",e[e.CodeBlock=2]="CodeBlock",e[e.FencedCode=3]="FencedCode",e[e.Blockquote=4]="Blockquote",e[e.HorizontalRule=5]="HorizontalRule",e[e.BulletList=6]="BulletList",e[e.OrderedList=7]="OrderedList",e[e.ListItem=8]="ListItem",e[e.ATXHeading1=9]="ATXHeading1",e[e.ATXHeading2=10]="ATXHeading2",e[e.ATXHeading3=11]="ATXHeading3",e[e.ATXHeading4=12]="ATXHeading4",e[e.ATXHeading5=13]="ATXHeading5",e[e.ATXHeading6=14]="ATXHeading6",e[e.SetextHeading1=15]="SetextHeading1",e[e.SetextHeading2=16]="SetextHeading2",e[e.HTMLBlock=17]="HTMLBlock",e[e.LinkReference=18]="LinkReference",e[e.Paragraph=19]="Paragraph",e[e.CommentBlock=20]="CommentBlock",e[e.ProcessingInstructionBlock=21]="ProcessingInstructionBlock",e[e.Escape=22]="Escape",e[e.Entity=23]="Entity",e[e.HardBreak=24]="HardBreak",e[e.Emphasis=25]="Emphasis",e[e.StrongEmphasis=26]="StrongEmphasis",e[e.Link=27]="Link",e[e.Image=28]="Image",e[e.InlineCode=29]="InlineCode",e[e.HTMLTag=30]="HTMLTag",e[e.Comment=31]="Comment",e[e.ProcessingInstruction=32]="ProcessingInstruction",e[e.Autolink=33]="Autolink",e[e.HeaderMark=34]="HeaderMark",e[e.QuoteMark=35]="QuoteMark",e[e.ListMark=36]="ListMark",e[e.LinkMark=37]="LinkMark",e[e.EmphasisMark=38]="EmphasisMark",e[e.CodeMark=39]="CodeMark",e[e.CodeText=40]="CodeText",e[e.CodeInfo=41]="CodeInfo",e[e.LinkTitle=42]="LinkTitle",e[e.LinkLabel=43]="LinkLabel",e[e.URL=44]="URL"}(E||(E={}));class M{constructor(e,t){this.start=e,this.content=t,this.marks=[],this.parsers=[]}}class H{constructor(){this.text="",this.baseIndent=0,this.basePos=0,this.depth=0,this.markers=[],this.pos=0,this.indent=0,this.next=-1}forward(){this.basePos>this.pos&&this.forwardInner()}forwardInner(){let e=this.skipSpace(this.basePos);this.indent=this.countIndent(e,this.pos,this.indent),this.pos=e,this.next=e==this.text.length?-1:this.text.charCodeAt(e)}skipSpace(e){return O(this.text,e)}reset(e){for(this.text=e,this.baseIndent=this.basePos=this.pos=this.indent=0,this.forwardInner(),this.depth=1;this.markers.length;)this.markers.pop()}moveBase(e){this.basePos=e,this.baseIndent=this.countIndent(e,this.pos,this.indent)}moveBaseColumn(e){this.baseIndent=e,this.basePos=this.findColumn(e)}addMarker(e){this.markers.push(e)}countIndent(e,t=0,n=0){for(let r=t;r=t.stack[n.depth+1].value+n.baseIndent)return!0;if(n.indent>=n.baseIndent+4)return!1;let r=(e.type==E.OrderedList?F:j)(n,t,!1);return r>0&&(e.type!=E.BulletList||$(n,t,!1)<0)&&n.text.charCodeAt(n.pos+r-1)==e.value}const P={[E.Blockquote]:(e,t,n)=>62==n.next&&(n.markers.push(ge(E.QuoteMark,t.lineStart+n.pos,t.lineStart+n.pos+1)),n.moveBase(n.pos+(N(n.text.charCodeAt(n.pos+1))?2:1)),e.end=t.lineStart+n.text.length,!0),[E.ListItem]:(e,t,n)=>!(n.indent-1)&&(n.moveBaseColumn(n.baseIndent+e.value),!0),[E.OrderedList]:v,[E.BulletList]:v,[E.Document]:()=>!0};function N(e){return 32==e||9==e||10==e||13==e}function O(e,t=0){for(;tn&&N(e.charCodeAt(t-1));)t--;return t}function X(e){if(96!=e.next&&126!=e.next)return-1;let t=e.pos+1;for(;t-1&&e.depth==t.stack.length||r<3?-1:1}function D(e,t){for(let n=e.stack.length-1;n>=0;n--)if(e.stack[n].type==t)return!0;return!1}function j(e,t,n){return 45!=e.next&&43!=e.next&&42!=e.next||e.pos!=e.text.length-1&&!N(e.text.charCodeAt(e.pos+1))||!(!n||D(t,E.BulletList)||e.skipSpace(e.pos+2)=48&&s<=57;){if(r++,r==e.text.length)return-1;s=e.text.charCodeAt(r)}return r==e.pos||r>e.pos+9||46!=s&&41!=s||re.pos+1||49!=e.next)?-1:r+1-e.pos}function q(e){if(35!=e.next)return-1;let t=e.pos+1;for(;t6?-1:n}function U(e){if(45!=e.next&&61!=e.next||e.indent>=e.baseIndent+4)return-1;let t=e.pos+1;for(;t/,Z=/\?>/,V=[[/^<(?:script|pre|style)(?:\s|>|$)/i,/<\/(?:script|pre|style)>/i],[/^\s*/i.exec(r);if(i)return e.append(ge(E.Comment,n,n+1+i[0].length));let o=/^\?[^]*?\?>/.exec(r);if(o)return e.append(ge(E.ProcessingInstruction,n,n+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(r);return a?e.append(ge(E.HTMLTag,n,n+1+a[0].length)):-1},Emphasis(e,t,n){if(95!=t&&42!=t)return-1;let r=n+1;for(;e.char(r)==t;)r++;let s=e.slice(n-1,n),i=e.slice(r,r+1),o=we.test(s),a=we.test(i),l=/\s|^$/.test(s),h=/\s|^$/.test(i),f=!h&&(!a||l||o),c=!l&&(!o||h||a),u=f&&(42==t||!c||o),d=c&&(42==t||!f||a);return e.append(new Se(95==t?ke:xe,n,r,(u?1:0)|(d?2:0)))},HardBreak(e,t,n){if(92==t&&10==e.char(n+1))return e.append(ge(E.HardBreak,n,n+2));if(32==t){let t=n+1;for(;32==e.char(t);)t++;if(10==e.char(t)&&t>=n+2)return e.append(ge(E.HardBreak,n,t+1))}return-1},Link:(e,t,n)=>91==t?e.append(new Se(be,n,n+1,1)):-1,Image:(e,t,n)=>33==t&&91==e.char(n+1)?e.append(new Se(Le,n,n+2,1)):-1,LinkEnd(e,t,n){if(93!=t)return-1;for(let t=e.parts.length-1;t>=0;t--){let r=e.parts[t];if(r instanceof Se&&(r.type==be||r.type==Le)){if(!r.side||e.skipSpace(r.to)==n&&!/[(\[]/.test(e.slice(n+1,n+2)))return e.parts[t]=null,-1;let s=e.takeContent(t),i=e.parts[t]=Ae(e,s,r.type==be?E.Link:E.Image,r.from,n+1);if(r.type==be)for(let n=0;nt?ge(E.URL,t+n,s+n):s==e.length&&null}}function Te(e,t,n){let r=e.charCodeAt(t);if(39!=r&&34!=r&&40!=r)return!1;let s=40==r?41:r;for(let r=t+1,i=!1;r=this.end?-1:this.text.charCodeAt(e-this.offset)}get end(){return this.offset+this.text.length}slice(e,t){return this.text.slice(e-this.offset,t-this.offset)}append(e){return this.parts.push(e),e.to}addDelimiter(e,t,n,r,s){return this.append(new Se(e,t,n,(r?1:0)|(s?2:0)))}get hasOpenLink(){for(let e=this.parts.length-1;e>=0;e--){let t=this.parts[e];if(t instanceof Se&&(t.type==be||t.type==Le))return!0}return!1}addElement(e){return this.append(e)}resolveMarkers(e){for(let t=e;t=e;o--){let e=this.parts[o];if(e instanceof Se&&1&e.side&&e.type==n.type&&!(s&&(1&n.side||2&e.side)&&(e.to-e.from+i)%3==0&&((e.to-e.from)%3||i%3))){r=e;break}}if(!r)continue;let a=n.type.resolve,l=[],h=r.from,f=n.to;if(s){let e=Math.min(2,r.to-r.from,i);h=r.to-e,f=n.from+e,a=1==e?"Emphasis":"StrongEmphasis"}r.type.mark&&l.push(this.elt(r.type.mark,h,r.to));for(let e=o+1;e=0;t--){let n=this.parts[t];if(n instanceof Se&&n.type==e)return t}return null}takeContent(e){let t=this.resolveMarkers(e);return this.parts.length=e,t}skipSpace(e){return O(this.text,e-this.offset)+this.offset}elt(e,t,n,r){return"string"==typeof e?ge(this.parser.getNodeType(e),t,n,r):new me(e,t)}}function Me(e,t){if(!t.length)return e;if(!e.length)return t;let n=e.slice(),r=0;for(let e of t){for(;r(e?e-1:0))return!1;if(this.fragmentEnd<0){let e=this.fragment.to;for(;e>0&&"\n"!=this.input.read(e-1,e);)e--;this.fragmentEnd=e?e-1:0}let n=this.cursor;n||(n=this.cursor=this.fragment.tree.cursor(),n.firstChild());let r=e+this.fragment.offset;for(;n.to<=r;)if(!n.parent())return!1;for(;;){if(n.from>=r)return this.fragment.from<=t;if(!n.childAfter(r))return!1}}matches(e){let n=this.cursor.tree;return n&&n.prop(t.contextHash)==e}takeNodes(e){let t=this.cursor,n=this.fragment.offset,r=this.fragmentEnd-(this.fragment.openEnd?1:0),s=e.absoluteLineStart,i=s,o=e.block.children.length,l=i,h=o;for(;;){if(t.to-n>r){if(t.type.isAnonymous&&t.firstChild())continue;break}let s=Pe(t.from-n,e.ranges);if(t.to-n<=e.ranges[e.rangeI].to)e.addNode(t.tree,s);else{let n=new a(e.parser.nodeSet.types[E.Paragraph],[],[],0,e.block.hashProp);e.reusePlaceholders.set(n,t.tree),e.addNode(n,s)}if(t.type.is("Block")&&(He.indexOf(t.type.id)<0?(i=t.to-n,o=e.block.children.length):(i=l,o=h,l=t.to-n,h=e.block.children.length)),!t.nextSibling())break}for(;e.block.children.length>o;)e.block.children.pop(),e.block.positions.pop();return i-s}}function Pe(e,t){let n=e;for(let r=1;rW[e])),Object.keys(W).map((e=>ne[e])),Object.keys(W),re,P,Object.keys(ye).map((e=>ye[e])),Object.keys(ye),[]);function Re(e,t,n){let r=[];for(let s=e.firstChild,i=t;;s=s.nextSibling){let e=s?s.from:n;if(e>i&&r.push({from:i,to:e}),!s)break;i=s.to}return r}const Xe={resolve:"Strikethrough",mark:"StrikethroughMark"},ze={defineNodes:[{name:"Strikethrough",style:{"Strikethrough/...":r.strikethrough}},{name:"StrikethroughMark",style:r.processingInstruction}],parseInline:[{name:"Strikethrough",parse(e,t,n){if(126!=t||126!=e.char(n+1)||126==e.char(n+2))return-1;let r=e.slice(n-1,n),s=e.slice(n+2,n+3),i=/\s|^$/.test(r),o=/\s|^$/.test(s),a=we.test(r),l=we.test(s);return e.addDelimiter(Xe,n,n+2,!o&&(!l||i||a),!i&&(!a||o||l))},after:"Emphasis"}]};function $e(e,t,n=0,r,s=0){let i=0,o=!0,a=-1,l=-1,h=!1,f=()=>{r.push(e.elt("TableCell",s+a,s+l,e.parser.parseInline(t.slice(a,l),s+a)))};for(let c=n;c-1)&&i++,o=!1,r&&(a>-1&&f(),r.push(e.elt("TableDelimiter",c+s,c+s+1))),a=l=-1),h=!h&&92==n}return a>-1&&(i++,r&&f()),i}function De(e,t){for(let n=t;nDe(t.content,0)?new Fe:null,endLeaf(e,t,n){if(n.parsers.some((e=>e instanceof Fe))||!De(t.text,t.basePos))return!1;let r=e.scanLine(e.absoluteLineEnd+1).text;return je.test(r)&&$e(e,t.text,t.basePos)==$e(e,r,t.basePos)},before:"SetextHeading"}]};class Ue{nextLine(){return!1}finish(e,t){return e.addLeafElement(t,e.elt("Task",t.start,t.start+t.content.length,[e.elt("TaskMarker",t.start,t.start+3),...e.parser.parseInline(t.content.slice(3),t.start+3)])),!0}}const _e={defineNodes:[{name:"Task",block:!0,style:r.list},{name:"TaskMarker",style:r.atom}],parseBlock:[{name:"TaskList",leaf:(e,t)=>/^\[[ xX]\][ \t]/.test(t.content)&&"ListItem"==e.parentType().name?new Ue:null,after:"SetextHeading"}]},Qe=/(www\.)|(https?:\/\/)|([\w.+-]+@)|(mailto:|xmpp:)/gy,Ze=/[\w-]+(\.[\w-]+)+(\/[^\s<]*)?/gy,Ve=/[\w-]+\.[\w-]+($|\/)/,Ge=/[\w.+-]+@[\w-]+(\.[\w.-]+)+/gy,Ke=/\/[a-zA-Z\d@.]+/gy;function Je(e,t,n,r){let s=0;for(let i=t;i-1)return-1;let r=t+n[0].length;for(;;){let n,s=e[r-1];if(/[?!.,:*_~]/.test(s)||")"==s&&Je(e,t,r,")")>Je(e,t,r,"("))r--;else{if(";"!=s||!(n=/&(?:#\d+|#x[a-f\d]+|\w+);$/.exec(e.slice(t,r))))break;r=t+n.index}}return r}(e.text,r+s[0].length),i>-1&&e.hasOpenLink){i=r+/([^\[\]]|\[[^\]]*\])*/.exec(e.text.slice(r,i))[0].length}}else s[3]?i=We(e.text,r):(i=We(e.text,r+s[0].length),i>-1&&"xmpp:"==s[0]&&(Ke.lastIndex=i,s=Ke.exec(e.text),s&&(i=s.index+s[0].length)));return i<0?-1:(e.addElement(e.elt("URL",n,i+e.offset)),i+e.offset)}}]}];function et(e,t,n){return(r,s,i)=>{if(s!=e||r.char(i+1)==e)return-1;let o=[r.elt(n,i,i+1)];for(let s=i+1;s!e.is("Block")||e.is("Document")||null!=at(e)||function(e){return"OrderedList"==e.name||"BulletList"==e.name}(e)?void 0:(e,t)=>({from:t.doc.lineAt(e.from).to,to:e.to}))),it.add(at),S.add({Document:()=>null}),C.add({Document:st})]});function at(e){let t=/^(?:ATX|Setext)Heading(\d)$/.exec(e.name);return t?+t[1]:void 0}function lt(e,t){let n=e;for(;;){let e,r=n.nextSibling;if(!r||null!=(e=at(r.type))&&e<=t)break;n=r}return n.to}const ht=w.of(((e,t,n)=>{for(let r=h(e).resolveInner(n,-1);r&&!(r.fromn)return{from:n,to:t}}return null}));function ft(e){return new k(st,e,[ht],"markdown")}const ct=ft(ot),ut=ft(ot.configure([Ye,nt,tt,rt,{props:[L.add({Table:(e,t)=>({from:t.doc.lineAt(e.from).to,to:e.to})})]}]));class dt{constructor(e,t,n,r,s,i,o){this.node=e,this.from=t,this.to=n,this.spaceBefore=r,this.spaceAfter=s,this.type=i,this.item=o}blank(e,t=!0){let n=this.spaceBefore+("Blockquote"==this.node.name?">":"");if(null!=e){for(;n.length0;e--)n+=" ";return n+(t?this.spaceAfter:"")}marker(e,t){let n="OrderedList"==this.node.name?String(+mt(this.item,e)[2]+t):"";return this.spaceBefore+n+this.type+this.spaceAfter}}function pt(e,t){let n=[];for(let t=e;t&&"Document"!=t.name;t=t.parent)"ListItem"!=t.name&&"Blockquote"!=t.name&&"FencedCode"!=t.name||n.push(t);let r=[];for(let e=n.length-1;e>=0;e--){let s,i=n[e],o=t.lineAt(i.from),a=i.from-o.from;if("FencedCode"==i.name)r.push(new dt(i,a,a,"","","",null));else if("Blockquote"==i.name&&(s=/^ *>( ?)/.exec(o.text.slice(a))))r.push(new dt(i,a,a+s[0].length,"",s[1],">",null));else if("ListItem"==i.name&&"OrderedList"==i.parent.name&&(s=/^( *)\d+([.)])( *)/.exec(o.text.slice(a)))){let e=s[3],t=s[0].length;e.length>=4&&(e=e.slice(0,e.length-4),t-=4),r.push(new dt(i.parent,a,a+t,s[1],e,s[2],i))}else if("ListItem"==i.name&&"BulletList"==i.parent.name&&(s=/^( *)([-+*])( {1,4}\[[ xX]\])?( +)/.exec(o.text.slice(a)))){let e=s[4],t=s[0].length;e.length>4&&(e=e.slice(0,e.length-4),t-=4);let n=s[2];s[3]&&(n+=s[3].replace(/[xX]/," ")),r.push(new dt(i.parent,a,a+t,s[1],e,n,i))}}return r}function mt(e,t){return/^(\s*)(\d+)(?=[.)])/.exec(t.sliceString(e.from,e.from+10))}function gt(e,t,n,r=0){for(let s=-1,i=e;;){if("ListItem"==i.name){let e=mt(i,t),o=+e[2];if(s>=0){if(o!=s+1)return;n.push({from:i.from+e[1].length,to:i.from+e[0].length,insert:String(s+2+r)})}s=o}let e=i.nextSibling;if(!e)break;i=e}}function kt(e,t){let n=/^[ \t]*/.exec(e)[0].length;if(!n||"\t"!=t.facet(x))return e;let r="";for(let t=c(e,4,n);t>0;)t>=4?(r+="\t",t-=4):(r+=" ",t--);return r+e.slice(n)}const xt=({state:e,dispatch:t})=>{let n=h(e),{doc:r}=e,s=null,i=e.changeByRange((t=>{if(!t.empty||!ut.isActiveAt(e,t.from))return s={range:t};let i=t.from,o=r.lineAt(i),a=pt(n.resolveInner(i,-1),r);for(;a.length&&a[a.length-1].from>i-o.from;)a.pop();if(!a.length)return s={range:t};let l=a[a.length-1];if(l.to-l.spaceAfter.length>i-o.from)return s={range:t};let h=i>=l.to-l.spaceAfter.length&&!/\S/.test(o.text.slice(l.to));if(l.item&&h){let t=l.node.firstChild,n=l.node.getChild("ListItem","ListItem");if(t.to>=i||n&&n.to0&&!/[^\s>]/.test(r.lineAt(o.from-1).text)){let e,t=a.length>1?a[a.length-2]:null,n="";t&&t.item?(e=o.from+t.from,n=t.marker(r,1)):e=o.from+(t?t.to:0);let s=[{from:e,to:i,insert:n}];return"OrderedList"==l.node.name&>(l.item,r,s,-2),t&&"OrderedList"==t.node.name&>(t.item,r,s),{range:f.cursor(e+n.length),changes:s}}{let t=Lt(a,e,o);return{range:f.cursor(i+t.length+1),changes:{from:o.from,insert:t+e.lineBreak}}}}if("Blockquote"==l.node.name&&h&&o.from){let n=r.lineAt(o.from-1),s=/>\s*$/.exec(n.text);if(s&&s.index==l.from){let r=e.changes([{from:n.from+s.index,to:n.to},{from:o.from+l.from,to:o.to}]);return{range:t.map(r),changes:r}}}let u=[];"OrderedList"==l.node.name&>(l.item,r,u);let d=l.item&&l.item.from]*/.exec(o.text)[0].length>=l.to)for(let e=0,t=a.length-1;e<=t;e++)p+=e!=t||d?a[e].blank(eo.from&&/\s/.test(o.text.charAt(m-o.from-1));)m--;return p=kt(p,e),function(e,t){if("OrderedList"!=e.name&&"BulletList"!=e.name)return!1;let n=e.firstChild,r=e.getChild("ListItem","ListItem");if(!r)return!1;let s=t.lineAt(n.to),i=t.lineAt(r.from),o=/^[\s>]*$/.test(s.text);return s.number+(o?0:1){let n=h(e),r=null,s=e.changeByRange((t=>{let s=t.from,{doc:i}=e;if(t.empty&&ut.isActiveAt(e,t.from)){let t=i.lineAt(s),r=pt(function(e,t){let n=e.resolveInner(t,-1),r=t;bt(n)&&(r=n.from,n=n.parent);for(let e;e=n.childBefore(r);)if(bt(e))r=e.from;else{if("OrderedList"!=e.name&&"BulletList"!=e.name)break;n=e.lastChild,r=n.to}return n}(n,s),i);if(r.length){let n=r[r.length-1],i=n.to-n.spaceAfter.length+(n.spaceAfter?1:0);if(s-t.from>i&&!/\S/.test(t.text.slice(i,s-t.from)))return{range:f.cursor(t.from+i),changes:{from:t.from+i,to:s}};if(s-t.from==i&&(!n.item||t.from<=n.item.from||!/\S/.test(t.text.slice(0,n.to)))){let r=t.from+n.from;if(n.item&&n.node.from{if(e&&c){let t=null;if(e=/\S*/.exec(e)[0],t="function"==typeof c?c(e):y.matchLanguageName(c,e,!0),t instanceof y)return t.support?t.support.language.parser:A.getSkippingParser(t.load());if(t)return t.parser}return m?m.parser:null}):void 0;var c,m;a.push(function(e){let{codeParser:t,htmlParser:n}=e,r=l(((e,r)=>{let s=e.type.id;if(!t||s!=E.CodeBlock&&s!=E.FencedCode){if(n&&(s==E.HTMLBlock||s==E.HTMLTag))return{parser:n,overlay:Re(e.node,e.from,e.to)}}else{let n="";if(s==E.FencedCode){let t=e.node.getChild(E.CodeInfo);t&&(n=r.read(t.from,t.to))}let i=t(n);if(i)return{parser:i,overlay:e=>e.type.id==E.CodeText}}return null}));return{wrap:r}}({codeParser:f,htmlParser:wt.language.parser})),r&&h.push(d.high(p.of(Ct)));let g=ft(s.configure(a));return i&&h.push(g.data.of({autocomplete:At})),new u(g,h)}function At(e){let{state:t,pos:n}=e,r=/<[:\-\.\w\u00b7-\uffff]*$/.exec(t.sliceDoc(n-25,n));if(!r)return null;let s=h(t).resolveInner(n,-1);for(;s&&!s.type.isTop;){if("CodeBlock"==s.name||"FencedCode"==s.name||"ProcessingInstructionBlock"==s.name||"CommentBlock"==s.name||"Link"==s.name||"Image"==s.name)return null;s=s.parent}return{from:n-r[0].length,to:n,options:Tt(),validFor:/^<[:\-\.\w\u00b7-\uffff]*$/}}let It=null;function Tt(){if(It)return It;let e=I(new m(g.create({extensions:wt}),0,!0));return It=e?e.options:[]}export{ct as commonmarkLanguage,St as deleteMarkupBackward,xt as insertNewlineContinueMarkup,yt as markdown,Ct as markdownKeymap,ut as markdownLanguage}; diff --git a/nicegui/elements/lib/codemirror/index-DWxkS7ff.js b/nicegui/elements/lib/codemirror/index-DWxkS7ff.js new file mode 100644 index 000000000..e75a4a2a7 --- /dev/null +++ b/nicegui/elements/lib/codemirror/index-DWxkS7ff.js @@ -0,0 +1 @@ +import{E as O,C as $,L as e}from"./index-Ckjrdmtm.js";import{s as Q,t as a,L as t,f as n,j as R,i,c as l,a as r}from"./editor-DzvLhhiW.js";import{defineCSSCompletionSource as o}from"./index-CJhLK3a1.js";const S=[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],d=10;function c(O){return O>=65&&O<=90||O>=97&&O<=122||O>=161}function X(O){return O>=48&&O<=57}function P(O){let $;return 47==O.next&&(47==($=O.peek(1))||42==$)}const y=new O(((O,$)=>{if($.dialectEnabled(0)){let e;if(O.next<0&&$.canShift(161))O.acceptToken(161);else if(((e=O.peek(-1))==d||e<0)&&$.canShift(160)){let $=0;for(;O.next!=d&&S.includes(O.next);)O.advance(),$++;O.next==d||P(O)?O.acceptToken(160,-$):$&&O.acceptToken(162)}else if(O.next==d)O.acceptToken(159,1);else if(S.includes(O.next)){for(O.advance();O.next!=d&&S.includes(O.next);)O.advance();O.acceptToken(162)}}else{let $=0;for(;S.includes(O.next);)O.advance(),$++;$&&O.acceptToken(162)}}),{contextual:!0}),s=new O(((O,$)=>{if(P(O)){if(O.advance(),$.dialectEnabled(0)){let $=-1;for(let e=1;;e++){let Q=O.peek(-e-1);if(Q==d||Q<0){$=e+1;break}if(!S.includes(Q))break}if($>-1){let e=42==O.next,Q=0;for(O.advance();O.next>=0;)if(O.next==d){O.advance();let e=0;for(;O.next!=d&&S.includes(O.next);)e++,O.advance();if(e<$){Q=-e-1;break}}else{if(e&&42==O.next&&47==O.peek(1)){Q=2;break}O.advance()}return void O.acceptToken(e?7:6,Q)}}if(47==O.next){for(;O.next!=d&&O.next>=0;)O.advance();O.acceptToken(6)}else{for(O.advance();O.next>=0;){let{next:$}=O;if(O.advance(),42==$&&47==O.next){O.advance();break}}O.acceptToken(7)}}})),m=new O(((O,$)=>{43!=O.next&&61!=O.next||!$.dialectEnabled(0)||O.acceptToken(61==O.next?8:9,1)})),p=new O(((O,$)=>{if(!$.dialectEnabled(0))return;let e=$.context.depth;if(O.next<0&&e)O.acceptToken(155);else if(O.peek(-1)==d){let $=0;for(;O.next!=d&&S.includes(O.next);)O.advance(),$++;$==e||O.next==d||P(O)||(${for(let e=!1,Q=0,a=0;;a++){let{next:t}=O;if(!(c(t)||45==t||95==t||e&&X(t))){if(35==t&&123==O.peek(1)){O.acceptToken(5,2);break}e&&O.acceptToken(40==t?157:2==Q&&$.canShift(4)?4:158);break}!e&&(45!=t||a>0)&&(e=!0),Q===a&&45==t&&Q++,O.advance()}})),u=new O((O=>{if(125==O.next){for(O.advance();c(O.next)||45==O.next||95==O.next||X(O.next);)O.advance();35==O.next&&123==O.peek(1)?O.acceptToken(2,2):O.acceptToken(1)}})),f=new O((O=>{if(S.includes(O.peek(-1))){let{next:$}=O;(c($)||95==$||35==$||46==$||91==$||58==$||45==$||38==$)&&O.acceptToken(156)}})),Z=new O((O=>{if(!S.includes(O.peek(-1))){let{next:$}=O;if(37==$&&(O.advance(),O.acceptToken(3)),c($)){do{O.advance()}while(c(O.next));O.acceptToken(3)}}}));function x(O,$){this.parent=O,this.depth=$,this.hash=(O?O.hash+O.hash<<8:0)+$+($<<4)}const W=new $({start:new x(null,0),shift:(O,$,e,Q)=>154==$?new x(O,e.pos-Q.pos):155==$?O.parent:O,hash:O=>O.hash}),v=Q({"AtKeyword import charset namespace keyframes media supports include mixin use forward extend at-root":a.definitionKeyword,"Keyword selector":a.keyword,ControlKeyword:a.controlKeyword,NamespaceName:a.namespace,KeyframeName:a.labelName,TagName:a.tagName,"ClassName Suffix":a.className,PseudoClassName:a.constant(a.className),IdName:a.labelName,"FeatureName PropertyName":a.propertyName,AttributeName:a.attributeName,NumberLiteral:a.number,KeywordQuery:a.keyword,UnaryQueryOp:a.operatorKeyword,"CallTag ValueName":a.atom,VariableName:a.variableName,SassVariableName:a.special(a.variableName),Callee:a.operatorKeyword,Unit:a.unit,"UniversalSelector NestingSelector IndentedMixin IndentedInclude":a.definitionOperator,MatchOp:a.compareOperator,"ChildOp SiblingOp, LogicOp":a.logicOperator,BinOp:a.arithmeticOperator,"Important Global Default":a.modifier,Comment:a.blockComment,LineComment:a.lineComment,ColorLiteral:a.color,"ParenthesizedContent StringLiteral":a.string,"InterpolationStart InterpolationContinue InterpolationEnd":a.meta,': "..."':a.punctuation,"PseudoOp #":a.derefOperator,"; ,":a.separator,"( )":a.paren,"[ ]":a.squareBracket,"{ }":a.brace}),j={__proto__:null,not:62,only:62,using:179,as:189,with:193,without:193,hide:207,show:207,from:230,to:232,if:245,through:251,in:257},Y={__proto__:null,url:80,"url-prefix":80,domain:80,regexp:80,lang:94,"nth-child":94,"nth-last-child":94,"nth-of-type":94,"nth-last-of-type":94,dir:94,"host-context":94,selector:172},_={__proto__:null,"@import":156,"@include":176,"@mixin":182,"@function":182,"@use":186,"@extend":196,"@at-root":200,"@forward":204,"@media":210,"@charset":214,"@namespace":218,"@keyframes":224,"@supports":236,"@if":240,"@else":242,"@for":248,"@each":254,"@while":260,"@debug":264,"@warn":264,"@error":264,"@return":264},h=e.deserialize({version:14,states:"LvQ`Q+tOOO#fQ+tOOP#mOpOOOOQ#U'#Ch'#ChO#rQ(pO'#CjOOQ#U'#Ci'#CiO%_Q)QO'#FxO%rQ.jO'#CnO&jQ#dO'#DWO'aQ(pO'#CgO'hQ)OO'#DYO'sQ#dO'#DaO'xQ#dO'#DeO'}Q#dO'#DnOOQ#U'#Fx'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!`%c!`;'S$R;'S;=`$d<%lO$R^IaU![SOy$Rz!_$R!_!`%c!`;'S$R;'S;=`$d<%lO$RZIzV!^PlQOy$Rz!_$R!_!`%c!`!aJa!a;'S$R;'S;=`$d<%lO$RXJhS!^PyWOy$Rz;'S$R;'S;=`$d<%lO$RXJwWOy$Rz!c$R!c!}Ka!}#T$R#T#oKa#o;'S$R;'S;=`$d<%lO$RXKh[!oPyWOy$Rz}$R}!OKa!O!Q$R!Q![Ka![!c$R!c!}Ka!}#T$R#T#oKa#o;'S$R;'S;=`$d<%lO$RXLcS!YPOy$Rz;'S$R;'S;=`$d<%lO$R^LtS!WUOy$Rz;'S$R;'S;=`$d<%lO$R[MTUOy$Rz!_$R!_!`;T!`;'S$R;'S;=`$d<%lO$RZMjUOy$Rz#b$R#b#cM|#c;'S$R;'S;=`$d<%lO$RZNRUyWOy$Rz#W$R#W#XNe#X;'S$R;'S;=`$d<%lO$RZNlSmRyWOy$Rz;'S$R;'S;=`$d<%lO$RZN{UOy$Rz#f$R#f#gNe#g;'S$R;'S;=`$d<%lO$RZ! dS!eROy$Rz;'S$R;'S;=`$d<%lO$RZ! uS!mROy$Rz;'S$R;'S;=`$d<%lO$R]!!WU!aPOy$Rz!_$R!_!`;T!`;'S$R;'S;=`$d<%lO$RW!!mP;=`<%l#r",tokenizers:[p,f,u,Z,k,y,s,m,0,1,2,3],topRules:{StyleSheet:[0,10],Styles:[1,134]},dialects:{indented:0},specialized:[{term:158,get:O=>j[O]||-1},{term:157,get:O=>Y[O]||-1},{term:77,get:O=>_[O]||-1}],tokenPrec:3027}),T=t.define({name:"sass",parser:h.configure({props:[n.add({Block:R,Comment:(O,$)=>({from:O.from+2,to:"*/"==$.sliceDoc(O.to-2,O.to)?O.to-2:O.to})}),i.add({Declaration:l()})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"},line:"//"},indentOnInput:/^\s*\}$/,wordChars:"$-"}}),q=T.configure({dialect:"indented",props:[i.add({"Block RuleSet":O=>O.baseIndent+O.unit}),n.add({Block:O=>({from:O.from,to:O.to})})]}),z=o((O=>"VariableName"==O.name||"SassVariableName"==O.name));function U(O){return new r((null==O?void 0:O.indented)?q:T,T.data.of({autocomplete:z}))}export{U as sass,z as sassCompletionSource,T as sassLanguage}; diff --git a/nicegui/elements/lib/codemirror/index-GtIxIVFm.js b/nicegui/elements/lib/codemirror/index-GtIxIVFm.js new file mode 100644 index 000000000..9468a0a32 --- /dev/null +++ b/nicegui/elements/lib/codemirror/index-GtIxIVFm.js @@ -0,0 +1 @@ +import{E as O,L as Q}from"./index-Ckjrdmtm.js";import{s as P,t as $,L as X,i,c as e,f as n,j as a,a as S}from"./editor-DzvLhhiW.js";function r(O){return O>=48&&O<=57}function s(O){return r(O)||95==O}const t=new O(((O,Q)=>{if(r(O.next)){let Q=!1;do{O.advance()}while(s(O.next));if(46==O.next)if(Q=!0,O.advance(),r(O.next))do{O.advance()}while(s(O.next));else if(46==O.next||O.next>127||/\w/.test(String.fromCharCode(O.next)))return;if(101==O.next||69==O.next){if(Q=!0,O.advance(),43!=O.next&&45!=O.next||O.advance(),!s(O.next))return;do{O.advance()}while(s(O.next))}if(102==O.next){let P=O.peek(1);if(!(51==P&&50==O.peek(2)||54==P&&52==O.peek(2)))return;O.advance(3),Q=!0}Q&&O.acceptToken(5)}else if(98==O.next||114==O.next){if(98==O.next&&O.advance(),114!=O.next)return;O.advance();let Q=0;for(;35==O.next;)Q++,O.advance();if(34!=O.next)return;O.advance();O:for(;;){if(O.next<0)return;let P=34==O.next;if(O.advance(),P){for(let P=0;P{124==O.next&&O.acceptToken(1,1)})),Y=new O((O=>{60==O.next?O.acceptToken(2,1):62==O.next&&O.acceptToken(3,1)})),z=P({"const macro_rules struct union enum type fn impl trait let static":$.definitionKeyword,"mod use crate":$.moduleKeyword,"pub unsafe async mut extern default move":$.modifier,"for if else loop while match continue break return await":$.controlKeyword,"as in ref":$.operatorKeyword,"where _ crate super dyn":$.keyword,self:$.self,String:$.string,Char:$.character,RawString:$.special($.string),Boolean:$.bool,Identifier:$.variableName,"CallExpression/Identifier":$.function($.variableName),BoundIdentifier:$.definition($.variableName),"FunctionItem/BoundIdentifier":$.function($.definition($.variableName)),LoopLabel:$.labelName,FieldIdentifier:$.propertyName,"CallExpression/FieldExpression/FieldIdentifier":$.function($.propertyName),Lifetime:$.special($.variableName),ScopeIdentifier:$.namespace,TypeIdentifier:$.typeName,"MacroInvocation/Identifier MacroInvocation/ScopedIdentifier/Identifier":$.macroName,"MacroInvocation/TypeIdentifier MacroInvocation/ScopedIdentifier/TypeIdentifier":$.macroName,'"!"':$.macroName,UpdateOp:$.updateOperator,LineComment:$.lineComment,BlockComment:$.blockComment,Integer:$.integer,Float:$.float,ArithOp:$.arithmeticOperator,LogicOp:$.logicOperator,BitOp:$.bitwiseOperator,CompareOp:$.compareOperator,"=":$.definitionOperator,".. ... => ->":$.punctuation,"( )":$.paren,"[ ]":$.squareBracket,"{ }":$.brace,". DerefOp":$.derefOperator,"&":$.operator,", ; ::":$.separator,"Attribute/...":$.meta}),Z={__proto__:null,self:28,super:32,crate:34,impl:46,true:72,false:72,pub:88,in:92,const:96,unsafe:104,async:108,move:110,if:114,let:118,ref:142,mut:144,_:198,else:200,match:204,as:248,return:252,await:262,break:270,continue:276,while:312,loop:316,for:320,macro_rules:327,mod:334,extern:342,struct:346,where:364,union:379,enum:382,type:390,default:395,fn:396,trait:412,use:420,static:438,dyn:476},o=Q.deserialize({version:14,states:"$2xQ]Q_OOP$wOWOOO&sQWO'#CnO)WQWO'#I`OOQP'#I`'#I`OOQQ'#Ie'#IeO)hO`O'#C}OOQR'#Ih'#IhO)sQWO'#IuOOQO'#Hk'#HkO)xQWO'#DpOOQR'#Iw'#IwO)xQWO'#DpO*ZQWO'#DpOOQO'#Iv'#IvO,SQWO'#J`O,ZQWO'#EiOOQV'#Hp'#HpO,cQYO'#F{OOQV'#El'#ElOOQV'#Em'#EmOOQV'#En'#EnO.YQ_O'#EkO0_Q_O'#EoO2gQWO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PX'Q!q%X&|1PR+y&|R+x&|T/S*S4TT/R*S4TR.o)sR.n)sR){%p",nodeNames:"⚠ | < > RawString Float LineComment BlockComment SourceFile ] InnerAttribute ! [ MetaItem self Metavariable super crate Identifier ScopedIdentifier :: QualifiedScope AbstractType impl SelfType MetaType TypeIdentifier ScopedTypeIdentifier ScopeIdentifier TypeArgList TypeBinding = Lifetime String Escape Char Boolean Integer } { Block ; ConstItem Vis pub ( in ) const BoundIdentifier : UnsafeBlock unsafe AsyncBlock async move IfExpression if LetDeclaration let LiteralPattern ArithOp MetaPattern SelfPattern ScopedIdentifier TuplePattern ScopedTypeIdentifier , StructPattern FieldPatternList FieldPattern ref mut FieldIdentifier .. RefPattern SlicePattern CapturedPattern ReferencePattern & MutPattern RangePattern ... OrPattern MacroPattern ParenthesizedTokens TokenBinding Identifier TokenRepetition ArithOp BitOp LogicOp UpdateOp CompareOp -> => ArithOp BracketedTokens BracedTokens _ else MatchExpression match MatchBlock MatchArm Attribute Guard UnaryExpression ArithOp DerefOp LogicOp ReferenceExpression TryExpression BinaryExpression ArithOp ArithOp BitOp BitOp BitOp BitOp LogicOp LogicOp AssignmentExpression TypeCastExpression as ReturnExpression return RangeExpression CallExpression ArgList AwaitExpression await FieldExpression GenericFunction BreakExpression break LoopLabel ContinueExpression continue IndexExpression ArrayExpression TupleExpression MacroInvocation UnitExpression ClosureExpression ParamList Parameter Parameter ParenthesizedExpression StructExpression FieldInitializerList ShorthandFieldInitializer FieldInitializer BaseFieldInitializer MatchArm WhileExpression while LoopExpression loop ForExpression for MacroInvocation MacroDefinition macro_rules MacroRule EmptyStatement ModItem mod DeclarationList AttributeItem ForeignModItem extern StructItem struct TypeParamList ConstrainedTypeParameter TraitBounds HigherRankedTraitBound RemovedTraitBound OptionalTypeParameter ConstParameter WhereClause where LifetimeClause TypeBoundClause FieldDeclarationList FieldDeclaration OrderedFieldDeclarationList UnionItem union EnumItem enum EnumVariantList EnumVariant TypeItem type FunctionItem default fn ParamList Parameter SelfParameter VariadicParameter VariadicParameter ImplItem TraitItem trait AssociatedType LetDeclaration UseDeclaration use ScopedIdentifier UseAsClause ScopedIdentifier UseList ScopedUseList UseWildcard ExternCrateDeclaration StaticItem static ExpressionStatement ExpressionStatement GenericType FunctionType ForLifetimes ParamList VariadicParameter Parameter VariadicParameter Parameter ReferenceType PointerType TupleType UnitType ArrayType MacroInvocation EmptyType DynamicType dyn BoundedType",maxTerm:359,nodeProps:[["isolate",-4,4,6,7,33,""],["group",-42,4,5,14,15,16,17,18,19,33,35,36,37,40,51,53,56,101,107,111,112,113,122,123,125,127,128,130,132,133,134,137,139,140,141,142,143,144,148,149,155,157,159,"Expression",-16,22,24,25,26,27,222,223,230,231,232,233,234,235,236,237,239,"Type",-20,42,161,162,165,166,169,170,172,188,190,194,196,204,205,207,208,209,217,218,220,"Statement",-17,49,60,62,63,64,65,68,74,75,76,77,78,80,81,83,84,99,"Pattern"],["openedBy",9,"[",38,"{",47,"("],["closedBy",12,"]",39,"}",45,")"]],propSources:[z],skippedNodes:[0,6,7,240],repeatNodeCount:32,tokenData:"$%h_R!XOX$nXY5gYZ6iZ]$n]^5g^p$npq5gqr7Xrs9cst:Rtu;Tuv>vvwAQwxCbxy!+Tyz!,Vz{!-X{|!/_|}!0g}!O!1i!O!P!3v!P!Q!8[!Q!R!Bw!R![!Dr![!]#+q!]!^#-{!^!_#.}!_!`#1b!`!a#3o!a!b#6S!b!c#7U!c!}#8W!}#O#:T#O#P#;V#P#Q#Cb#Q#R#Dd#R#S#8W#S#T$n#T#U#8W#U#V#El#V#f#8W#f#g#Ic#g#o#8W#o#p$ S#p#q$!U#q#r$$f#r${$n${$|#8W$|4w$n4w5b#8W5b5i$n5i6S#8W6S;'S$n;'S;=`4s<%lO$nU$u]'_Q'OSOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$nU%uV'_Q'OSOz&[z{&v{!P&[!P!Q'x!Q;'S&[;'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ment":()=>null,AttributeItem:O=>O.continue(),"Statement MatchArm":e()}),n.add((O=>/(Block|edTokens|List)$/.test(O.name)?a:"BlockComment"==O.name?O=>({from:O.from+2,to:O.to-2}):void 0))]}),languageData:{commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:\{|\})$/,closeBrackets:{stringPrefixes:["b","r","br"]}}});function q(){return new S(_)}export{q as rust,_ as rustLanguage}; diff --git a/nicegui/elements/lib/codemirror/index-NkaBMccj.js b/nicegui/elements/lib/codemirror/index-NkaBMccj.js new file mode 100644 index 000000000..35071e8a6 --- /dev/null +++ b/nicegui/elements/lib/codemirror/index-NkaBMccj.js @@ -0,0 +1 @@ +import{C as e,E as t,L as O}from"./index-Ckjrdmtm.js";import{s as n,t as a,L as r,i as l,f as o,G as s,a as i,E as y,e as c,l as $}from"./editor-DzvLhhiW.js";function p(e){return 45==e||46==e||58==e||e>=65&&e<=90||95==e||e>=97&&e<=122||e>=161}let g=null,u=null,m=0;function S(e,t){let O=e.pos+t;if(u==e&&m==O)return g;for(;9==(n=e.peek(t))||10==n||13==n||32==n;)t++;var n;let a="";for(;;){let O=e.peek(t);if(!p(O))break;a+=String.fromCharCode(O),t++}return u=e,m=O,g=a||null}function f(e,t){this.name=e,this.parent=t,this.hash=t?t.hash:0;for(let t=0;t1==t?new f(S(n,1)||"",e):e,reduce:(e,t)=>11==t&&e?e.parent:e,reuse(e,t,O,n){let a=t.type.id;return 1==a||13==a?new f(S(n,1)||"",e):e},hash:e=>e?e.hash:0,strict:!1}),h=new t(((e,t)=>{if(60==e.next)if(e.advance(),47==e.next){e.advance();let O=S(e,0);if(!O)return e.acceptToken(5);if(t.context&&O==t.context.name)return e.acceptToken(2);for(let n=t.context;n;n=n.parent)if(n.name==O)return e.acceptToken(3,-2);e.acceptToken(4)}else if(33!=e.next&&63!=e.next)return e.acceptToken(1)}),{contextual:!0});function T(e,O){return new t((t=>{let n=0,a=O.charCodeAt(0);e:for(;!(t.next<0);t.advance(),n++)if(t.next==a){for(let e=1;e"),v=T(37,"]]>"),_=n({Text:a.content,"StartTag StartCloseTag EndTag SelfCloseEndTag":a.angleBracket,TagName:a.tagName,"MismatchedCloseTag/TagName":[a.tagName,a.invalid],AttributeName:a.attributeName,AttributeValue:a.attributeValue,Is:a.definitionOperator,"EntityReference CharacterReference":a.character,Comment:a.blockComment,ProcessingInst:a.processingInstruction,DoctypeDecl:a.documentMeta,Cdata:a.special(a.string)}),W=O.deserialize({version:14,states:",SOQOaOOOrOxO'#CfOzOpO'#CiO!tOaO'#CgOOOP'#Cg'#CgO!{OrO'#CrO#TOtO'#CsO#]OpO'#CtOOOP'#DS'#DSOOOP'#Cv'#CvQQOaOOOOOW'#Cw'#CwO#eOxO,59QOOOP,59Q,59QOOOO'#Cx'#CxO#mOpO,59TO#uO!bO,59TOOOP'#C{'#C{O$TOaO,59RO$[OpO'#CoOOOP,59R,59ROOOQ'#C|'#C|O$dOrO,59^OOOP,59^,59^OOOS'#C}'#C}O$lOtO,59_OOOP,59_,59_O$tOpO,59`O$|OpO,59`OOOP-E6t-E6tOOOW-E6u-E6uOOOP1G.l1G.lOOOO-E6v-E6vO%UO!bO1G.oO%UO!bO1G.oO%dOpO'#CkO%lO!bO'#CyO%zO!bO1G.oOOOP1G.o1G.oOOOP1G.w1G.wOOOP-E6y-E6yOOOP1G.m1G.mO&VOpO,59ZO&_OpO,59ZOOOQ-E6z-E6zOOOP1G.x1G.xOOOS-E6{-E6{OOOP1G.y1G.yO&gOpO1G.zO&gOpO1G.zOOOP1G.z1G.zO&oO!bO7+$ZO&}O!bO7+$ZOOOP7+$Z7+$ZOOOP7+$c7+$cO'YOpO,59VO'bOpO,59VO'jO!bO,59eOOOO-E6w-E6wO'xOpO1G.uO'xOpO1G.uOOOP1G.u1G.uO(QOpO7+$fOOOP7+$f7+$fO(YO!bO<d!d;'S%y;'S;=`&_<%lO%yX>iV{WOr%ysv%yw!}%y!}#O?O#O;'S%y;'S;=`&_<%lO%yX?VT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from,O.to):""}function C(e,t){let O=t&&t.firstChild;return O&&"OpenTag"==O.name?b(e,O):""}function w(e){for(let t=e&&e.parent;t;t=t.parent)if("Element"==t.name)return t;return null}class x{constructor(e,t,O){this.attrs=t,this.attrValues=O,this.children=[],this.name=e.name,this.completion=Object.assign(Object.assign({type:"type"},e.completion||{}),{label:this.name}),this.openCompletion=Object.assign(Object.assign({},this.completion),{label:"<"+this.name}),this.closeCompletion=Object.assign(Object.assign({},this.completion),{label:"",boost:2}),this.closeNameCompletion=Object.assign(Object.assign({},this.completion),{label:this.name+">"}),this.text=e.textContent?e.textContent.map((e=>({label:e,type:"text"}))):[]}}const X=/^[:\-\.\w\u00b7-\uffff]*$/;function Q(e){return Object.assign(Object.assign({type:"property"},e.completion||{}),{label:e.name})}function E(e){return"string"==typeof e?{label:`"${e}"`,type:"constant"}:/^"/.test(e.label)?e:Object.assign(Object.assign({},e),{label:`"${e.label}"`})}function G(e,t){let O=[],n=[],a=Object.create(null);for(let e of t){let t=Q(e);O.push(t),e.global&&n.push(t),e.values&&(a[e.name]=e.values.map(E))}let r=[],l=[],o=Object.create(null);for(let t of e){let e=n,s=a;t.attributes&&(e=e.concat(t.attributes.map((e=>"string"==typeof e?O.find((t=>t.label==e))||{label:e,type:"property"}:(e.values&&(s==a&&(s=Object.create(s)),s[e.name]=e.values.map(E)),Q(e))))));let i=new x(t,e,s);o[i.name]=i,r.push(i),t.top&&l.push(i)}l.length||(l=r);for(let t=0;t{var t;let{doc:O}=e.state,s=function(e,t){var O;let n=c(e).resolveInner(t,-1),a=null;for(let e=n;!a&&e.parent;e=e.parent)"OpenTag"!=e.name&&"CloseTag"!=e.name&&"SelfClosingTag"!=e.name&&"MismatchedCloseTag"!=e.name||(a=e);if(a&&(a.to>t||a.lastChild.type.isError)){let e=a.parent;if("TagName"==n.name)return"CloseTag"==a.name||"MismatchedCloseTag"==a.name?{type:"closeTag",from:n.from,context:e}:{type:"openTag",from:n.from,context:w(e)};if("AttributeName"==n.name)return{type:"attrName",from:n.from,context:a};if("AttributeValue"==n.name)return{type:"attrValue",from:n.from,context:a};let O=n==a||"Attribute"==n.name?n.childBefore(t):n;return"StartTag"==(null==O?void 0:O.name)?{type:"openTag",from:t,context:w(e)}:"StartCloseTag"==(null==O?void 0:O.name)&&O.to<=t?{type:"closeTag",from:t,context:e}:"Is"==(null==O?void 0:O.name)?{type:"attrValue",from:t,context:a}:O?{type:"attrName",from:t,context:a}:null}if("StartCloseTag"==n.name)return{type:"closeTag",from:t,context:n.parent};for(;n.parent&&n.to==t&&!(null===(O=n.lastChild)||void 0===O?void 0:O.type.isError);)n=n.parent;return"Element"==n.name||"Text"==n.name||"Document"==n.name?{type:"tag",from:t,context:"Element"==n.name?n:w(n)}:null}(e.state,e.pos);if(!s||"tag"==s.type&&!e.explicit)return null;let{type:i,from:y,context:$}=s;if("openTag"==i){let e=l,t=C(O,$);if(t){let O=o[t];e=(null==O?void 0:O.children)||r}return{from:y,options:e.map((e=>e.completion)),validFor:X}}if("closeTag"==i){let n=C(O,$);return n?{from:y,to:e.pos+(">"==O.sliceString(e.pos,e.pos+1)?1:0),options:[(null===(t=o[n])||void 0===t?void 0:t.closeNameCompletion)||{label:n+">",type:"type"}],validFor:X}:null}if("attrName"==i){let e=o[b(O,$)];return{from:y,options:(null==e?void 0:e.attrs)||n,validFor:X}}if("attrValue"==i){let t=function(e,t,O){let n=t&&t.getChildren("Attribute").find((e=>e.from<=O&&e.to>=O)),a=n&&n.getChild("AttributeName");return a?e.sliceString(a.from,a.to):""}(O,$,y);if(!t)return null;let n=o[b(O,$)],r=((null==n?void 0:n.attrValues)||a)[t];return r&&r.length?{from:y,to:e.pos+('"'==O.sliceString(e.pos,e.pos+1)?1:0),options:r,validFor:/^"[^"]*"?$/}:null}if("tag"==i){let t=C(O,$),n=o[t],a=[],s=$&&$.lastChild;!t||s&&"CloseTag"==s.name&&b(O,s)==t||a.push(n?n.closeCompletion:{label:"",type:"type",boost:2});let i=a.concat(((null==n?void 0:n.children)||($?r:l)).map((e=>e.openCompletion)));if($&&(null==n?void 0:n.text.length)){let t=$.firstChild;t.to>e.pos-20&&!/\S/.test(e.state.sliceDoc(t.to,e.pos))&&(i=i.concat(n.text))}return{from:y,options:i,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}return null}}const R=r.define({name:"xml",parser:W.configure({props:[l.add({Element(e){let t=/^\s*<\//.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},"OpenTag CloseTag SelfClosingTag":e=>e.column(e.node.from)+e.unit}),o.add({Element(e){let t=e.firstChild,O=e.lastChild;return t&&"OpenTag"==t.name?{from:t.to,to:"CloseTag"==O.name?O.from:e.to}:null}}),s.add({"OpenTag CloseTag":e=>e.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:"\x3c!--",close:"--\x3e"}},indentOnInput:/^\s*<\/$/}});function Z(e={}){let t=[R.data.of({autocomplete:G(e.elements||[],e.attributes||[])})];return!1!==e.autoCloseTags&&t.push(k),new i(R,t)}function Y(e,t,O=e.length){if(!t)return"";let n=t.firstChild,a=n&&n.getChild("TagName");return a?e.sliceString(a.from,Math.min(a.to,O)):""}const k=y.inputHandler.of(((e,t,O,n,a)=>{if(e.composing||e.state.readOnly||t!=O||">"!=n&&"/"!=n||!R.isActiveAt(e.state,t,-1))return!1;let r=a(),{state:l}=r,o=l.changeByRange((e=>{var t,O,a;let r,{head:o}=e,s=l.doc.sliceString(o-1,o)==n,i=c(l).resolveInner(o,-1);if(s&&">"==n&&"EndTag"==i.name){let n=i.parent;if("CloseTag"!=(null===(O=null===(t=n.parent)||void 0===t?void 0:t.lastChild)||void 0===O?void 0:O.name)&&(r=Y(l.doc,n.parent,o))){return{range:e,changes:{from:o,to:o+(">"===l.doc.sliceString(o,o+1)?1:0),insert:``}}}}else if(s&&"/"==n&&"StartCloseTag"==i.name){let e=i.parent;if(i.from==o-2&&"CloseTag"!=(null===(a=e.lastChild)||void 0===a?void 0:a.name)&&(r=Y(l.doc,e,o))){let e=o+(">"===l.doc.sliceString(o,o+1)?1:0),t=`${r}>`;return{range:$.cursor(o+t.length,-1),changes:{from:o,to:e,insert:t}}}}return{range:e}}));return!o.changes.empty&&(e.dispatch([r,l.update(o,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}));export{k as autoCloseTags,G as completeFromSchema,Z as xml,R as xmlLanguage}; diff --git a/nicegui/elements/lib/codemirror/index-anbJ5y0U.js b/nicegui/elements/lib/codemirror/index-anbJ5y0U.js new file mode 100644 index 000000000..51136b5b7 --- /dev/null +++ b/nicegui/elements/lib/codemirror/index-anbJ5y0U.js @@ -0,0 +1 @@ +import{i as e,c as t,f as a,s as n,t as r,L as i,a as s,b as o,d as l,e as c}from"./editor-DzvLhhiW.js";import{E as d,L as u}from"./index-Ckjrdmtm.js";const m=5,p=6,f=20,g=21,h=24;function b(e){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57}function _(e,t,a){for(let n=!1;;){if(e.next<0)return;if(e.next==t&&!n)return void e.advance();n=a&&!n&&92==e.next,e.advance()}}function v(e,t){for(;95==e.next||b(e.next);)null!=t&&(t+=String.fromCharCode(e.next)),e.advance();return t}function y(e,t){for(;48==e.next||49==e.next;)e.advance();t&&e.next==t&&e.advance()}function x(e,t){for(;;){if(46==e.next){if(t)break;t=!0}else if(e.next<48||e.next>57)break;e.advance()}if(69==e.next||101==e.next)for(e.advance(),43!=e.next&&45!=e.next||e.advance();e.next>=48&&e.next<=57;)e.advance()}function O(e){for(;!(e.next<0||10==e.next);)e.advance()}function k(e,t){for(let a=0;a!=&|~^/",specialVar:"?",identifierQuotes:'"',caseInsensitiveIdentifiers:!1,words:Q(q,C)};function S(e){return new d((t=>{var a;let{next:n}=t;if(t.advance(),k(n,w)){for(;k(t.next,w);)t.advance();t.acceptToken(36)}else if(36==n&&e.doubleDollarQuotedStrings){let e=v(t,"");36==t.next&&(t.advance(),function(e,t){e:for(;;){if(e.next<0)return;if(36==e.next){e.advance();for(let a=0;a1){t.advance(),_(t,39,e.backslashEscapes),t.acceptToken(3);break}if(!b(t.next))break;t.advance()}else if(e.plsqlQuotingMechanism&&(113==n||81==n)&&39==t.next&&t.peek(1)>0&&!k(t.peek(1),w)){let e=t.peek(1);t.advance(2),function(e,t){let a="[{<(".indexOf(String.fromCharCode(t)),n=a<0?t:"]}>)".charCodeAt(a);for(;;){if(e.next<0)return;if(e.next==n&&39==e.peek(1))return void e.advance(2);e.advance()}}(t,e),t.acceptToken(3)}else if(40==n)t.acceptToken(7);else if(41==n)t.acceptToken(8);else if(123==n)t.acceptToken(9);else if(125==n)t.acceptToken(10);else if(91==n)t.acceptToken(11);else if(93==n)t.acceptToken(12);else if(59==n)t.acceptToken(13);else if(e.unquotedBitLiterals&&48==n&&98==t.next)t.advance(),y(t),t.acceptToken(22);else if(98!=n&&66!=n||39!=t.next&&34!=t.next){if(48==n&&(120==t.next||88==t.next)||(120==n||88==n)&&39==t.next){let e=39==t.next;for(t.advance();(r=t.next)>=48&&r<=57||r>=97&&r<=102||r>=65&&r<=70;)t.advance();e&&39==t.next&&t.advance(),t.acceptToken(4)}else if(46==n&&t.next>=48&&t.next<=57)x(t,!0),t.acceptToken(4);else if(46==n)t.acceptToken(14);else if(n>=48&&n<=57)x(t,!1),t.acceptToken(4);else if(k(n,e.operatorChars)){for(;k(t.next,e.operatorChars);)t.advance();t.acceptToken(15)}else if(k(n,e.specialVar))t.next==n&&t.advance(),function(e){if(39==e.next||34==e.next||96==e.next){let t=e.next;e.advance(),_(e,t,!1)}else v(e)}(t),t.acceptToken(17);else if(k(n,e.identifierQuotes))_(t,n,!1),t.acceptToken(19);else if(58==n||44==n)t.acceptToken(16);else if(b(n)){let r=v(t,String.fromCharCode(n));t.acceptToken(46==t.next||46==t.peek(-r.length-1)?18:null!==(a=e.words[r.toLowerCase()])&&void 0!==a?a:18)}}else{const a=t.next;t.advance(),e.treatBitsAsBytes?(_(t,a,e.backslashEscapes),t.acceptToken(23)):(y(t,a),t.acceptToken(22))}else t.advance(),_(t,39,e.backslashEscapes),t.acceptToken(3);else t.advance(),_(t,39,!0),t.acceptToken(3);else O(t),t.acceptToken(1);var r}))}const T=S(P),U=u.deserialize({version:14,states:"%vQ]QQOOO#wQRO'#DSO$OQQO'#CwO%eQQO'#CxO%lQQO'#CyO%sQQO'#CzOOQQ'#DS'#DSOOQQ'#C}'#C}O'UQRO'#C{OOQQ'#Cv'#CvOOQQ'#C|'#C|Q]QQOOQOQQOOO'`QQO'#DOO(xQRO,59cO)PQQO,59cO)UQQO'#DSOOQQ,59d,59dO)cQQO,59dOOQQ,59e,59eO)jQQO,59eOOQQ,59f,59fO)qQQO,59fOOQQ-E6{-E6{OOQQ,59b,59bOOQQ-E6z-E6zOOQQ,59j,59jOOQQ-E6|-E6|O+VQRO1G.}O+^QQO,59cOOQQ1G/O1G/OOOQQ1G/P1G/POOQQ1G/Q1G/QP+kQQO'#C}O+rQQO1G.}O)PQQO,59cO,PQQO'#Cw",stateData:",[~OtOSPOSQOS~ORUOSUOTUOUUOVROXSOZTO]XO^QO_UO`UOaPObPOcPOdUOeUOfUOgUOhUO~O^]ORvXSvXTvXUvXVvXXvXZvX]vX_vX`vXavXbvXcvXdvXevXfvXgvXhvX~OsvX~P!jOa_Ob_Oc_O~ORUOSUOTUOUUOVROXSOZTO^tO_UO`UOa`Ob`Oc`OdUOeUOfUOgUOhUO~OWaO~P$ZOYcO~P$ZO[eO~P$ZORUOSUOTUOUUOVROXSOZTO^QO_UO`UOaPObPOcPOdUOeUOfUOgUOhUO~O]hOsoX~P%zOajObjOcjO~O^]ORkaSkaTkaUkaVkaXkaZka]ka_ka`kaakabkackadkaekafkagkahka~Oska~P'kO^]O~OWvXYvX[vX~P!jOWnO~P$ZOYoO~P$ZO[pO~P$ZO^]ORkiSkiTkiUkiVkiXkiZki]ki_ki`kiakibkickidkiekifkigkihki~Oski~P)xOWkaYka[ka~P'kO]hO~P$ZOWkiYki[ki~P)xOasObsOcsO~O",goto:"#hwPPPPPPPPPPPPPPPPPPPPPPPPPPx||||!Y!^!d!xPPP#[TYOZeUORSTWZbdfqT[OZQZORiZSWOZQbRQdSQfTZgWbdfqQ^PWk^lmrQl_Qm`RrseVORSTWZbdfq",nodeNames:"⚠ LineComment BlockComment String Number Bool Null ( ) { } [ ] ; . Operator Punctuation SpecialVar Identifier QuotedIdentifier Keyword Type Bits Bytes Builtin Script Statement CompositeIdentifier Parens Braces Brackets Statement",maxTerm:38,nodeProps:[["isolate",-4,1,2,3,19,""]],skippedNodes:[0,1,2],repeatNodeCount:3,tokenData:"RORO",tokenizers:[0,T],topRules:{Script:[0,25]},tokenPrec:0});function z(e){let t=e.cursor().moveTo(e.from,-1);for(;/Comment/.test(t.name);)t.moveTo(t.from,-1);return t.node}function X(e,t){let a=e.sliceString(t.from,t.to),n=/^([`'"])(.*)\1$/.exec(a);return n?n[2]:a}function j(e){return e&&("Identifier"==e.name||"QuotedIdentifier"==e.name)}function B(e,t){if("CompositeIdentifier"==t.name){let a=[];for(let n=t.firstChild;n;n=n.nextSibling)j(n)&&a.push(X(e,n));return a}return[X(e,t)]}function I(e,t){for(let a=[];;){if(!t||"."!=t.name)return a;let n=z(t);if(!j(n))return a;a.unshift(X(e,n)),t=z(n)}}function R(e,t){let a=c(e).resolveInner(t,-1),n=function(e,t){let a;for(let e=t;!a;e=e.parent){if(!e)return null;"Statement"==e.name&&(a=e)}let n=null;for(let t=a.firstChild,r=!1,i=null;t;t=t.nextSibling){let a="Keyword"==t.name?e.sliceString(t.from,t.to).toLowerCase():null,s=null;if(r)if("as"==a&&i&&j(t.nextSibling))s=X(e,t.nextSibling);else{if(a&&Z.has(a))break;i&&j(t)&&(s=X(e,t))}else r="from"==a;s&&(n||(n=Object.create(null)),n[s]=B(e,i)),i=/Identifier$/.test(t.name)?t:null}return n}(e.doc,a);return"Identifier"==a.name||"QuotedIdentifier"==a.name||"Keyword"==a.name?{from:a.from,quoted:"QuotedIdentifier"==a.name?e.doc.sliceString(a.from,a.from+1):null,parents:I(e.doc,z(a)),aliases:n}:"."==a.name?{from:t,quoted:null,parents:I(e.doc,a),aliases:n}:{from:t,quoted:null,parents:[],empty:!0,aliases:n}}const Z=new Set("where group having order union intersect except all distinct limit offset fetch for".split(" "));const V=/^\w*$/,D=/^[`'"]?\w*[`'"]?$/;function N(e){return e.self&&"string"==typeof e.self.label}class ${constructor(e,t){this.idQuote=e,this.idCaseInsensitive=t,this.list=[],this.children=void 0}child(e){let t=this.children||(this.children=Object.create(null)),a=t[e];return a||(e&&!this.list.some((t=>t.label==e))&&this.list.push(E(e,"type",this.idQuote,this.idCaseInsensitive)),t[e]=new $(this.idQuote,this.idCaseInsensitive))}maybeChild(e){return this.children?this.children[e]:null}addCompletion(e){let t=this.list.findIndex((t=>t.label==e.label));t>-1?this.list[t]=e:this.list.push(e)}addCompletions(e){for(let t of e)this.addCompletion("string"==typeof t?E(t,"property",this.idQuote,this.idCaseInsensitive):t)}addNamespace(e){Array.isArray(e)?this.addCompletions(e):N(e)?this.addNamespace(e.children):this.addNamespaceObject(e)}addNamespaceObject(e){for(let t of Object.keys(e)){let a=e[t],n=null,r=t.replace(/\\?\./g,(e=>"."==e?"\0":e)).split("\0"),i=this;N(a)&&(n=a.self,a=a.children);for(let e=0;e({from:Math.min(e.from+100,t.doc.lineAt(e.from).to),to:e.to}),BlockComment:e=>({from:e.from+2,to:e.to-2})}),n({Keyword:r.keyword,Type:r.typeName,Builtin:r.standard(r.name),Bits:r.number,Bytes:r.string,Bool:r.bool,Null:r.null,Number:r.number,String:r.string,Identifier:r.name,QuotedIdentifier:r.special(r.string),SpecialVar:r.special(r.name),LineComment:r.lineComment,BlockComment:r.blockComment,Operator:r.operator,"Semi Punctuation":r.punctuation,"( )":r.paren,"{ }":r.brace,"[ ]":r.squareBracket})]});class L{constructor(e,t,a){this.dialect=e,this.language=t,this.spec=a}get extension(){return this.language.extension}static define(e){let t=function(e,t,a,n){let r={};for(let t in P)r[t]=(e.hasOwnProperty(t)?e:P)[t];return t&&(r.words=Q(t,a||"",n)),r}(e,e.keywords,e.types,e.builtin),a=i.define({name:"sql",parser:A.configure({tokenizers:[{from:T,to:S(t)}]}),languageData:{commentTokens:{line:"--",block:{open:"/*",close:"*/"}},closeBrackets:{brackets:["(","[","{","'",'"',"`"]}}});return new L(t,a,e)}}function W(e,t=!1){return function(e,t){let a=Object.keys(e).map((a=>({label:t?a.toUpperCase():a,type:e[a]==g?"type":e[a]==f?"keyword":"variable",boost:-1})));return o(["QuotedIdentifier","SpecialVar","String","LineComment","BlockComment","."],l(a))}(e.dialect.words,t)}function G(e,t=!1){return e.language.data.of({autocomplete:W(e,t)})}function Y(e){return e.schema?function(e,t,a,n,r,i){var s;let o=(null===(s=null==i?void 0:i.spec.identifierQuotes)||void 0===s?void 0:s[0])||'"',l=new $(o,!!(null==i?void 0:i.spec.caseInsensitiveIdentifiers)),c=r?l.child(r):null;return l.addNamespace(e),t&&(c||l).addCompletions(t),a&&l.addCompletions(a),c&&l.addCompletions(c.list),n&&l.addCompletions((c||l).child(n).list),e=>{let{parents:t,from:a,quoted:r,empty:i,aliases:s}=R(e.state,e.pos);if(i&&!e.explicit)return null;s&&1==t.length&&(t=s[t[0]]||t);let o=l;for(let e of t){for(;!o.children||!o.children[e];)if(o==l&&c)o=c;else{if(o!=c||!n)return null;o=o.child(n)}let t=o.maybeChild(e);if(!t)return null;o=t}let d=r&&e.state.sliceDoc(e.pos,e.pos+1)==r,u=o.list;return o==l&&s&&(u=u.concat(Object.keys(s).map((e=>({label:e,type:"constant"}))))),{from:a,to:d?e.pos+1:void 0,options:(m=r,p=u,m?p.map((e=>Object.assign(Object.assign({},e),{label:e.label[0]==m?e.label:m+e.label+m,apply:void 0}))):p),validFor:r?D:V};var m,p}}(e.schema,e.tables,e.schemas,e.defaultTable,e.defaultSchema,e.dialect||F):()=>null}function K(e){return e.schema?(e.dialect||F).language.data.of({autocomplete:Y(e)}):[]}function M(e={}){let t=e.dialect||F;return new s(t.language,[K(e),G(t,!!e.upperCaseKeywords)])}const F=L.define({}),H=L.define({charSetCasts:!0,doubleDollarQuotedStrings:!0,operatorChars:"+-*/<>=~!@#%^&|`?",specialVar:"",keywords:q+"abort abs absent access according ada admin aggregate alias also always analyse analyze array_agg array_max_cardinality asensitive assert assignment asymmetric atomic attach attribute attributes avg backward base64 begin_frame begin_partition bernoulli bit_length blocked bom cache called cardinality catalog_name ceil ceiling chain char_length character_length character_set_catalog character_set_name character_set_schema characteristics characters checkpoint class class_origin cluster coalesce cobol collation_catalog collation_name collation_schema collect column_name columns command_function command_function_code comment comments committed concurrently condition_number configuration conflict connection_name constant constraint_catalog constraint_name constraint_schema contains content control conversion convert copy corr cost covar_pop covar_samp csv cume_dist current_catalog current_row current_schema cursor_name database datalink datatype datetime_interval_code datetime_interval_precision db debug defaults defined definer degree delimiter delimiters dense_rank depends derived detach detail dictionary disable discard dispatch dlnewcopy dlpreviouscopy dlurlcomplete dlurlcompleteonly dlurlcompletewrite dlurlpath dlurlpathonly dlurlpathwrite dlurlscheme dlurlserver dlvalue document dump dynamic_function dynamic_function_code element elsif empty enable encoding encrypted end_frame end_partition endexec enforced enum errcode error event every exclude excluding exclusive exp explain expression extension extract family file filter final first_value flag floor following force foreach fortran forward frame_row freeze fs functions fusion generated granted greatest groups handler header hex hierarchy hint id ignore ilike immediately immutable implementation implicit import include including increment indent index indexes info inherit inherits inline insensitive instance instantiable instead integrity intersection invoker isnull key_member key_type label lag last_value lead leakproof least length library like_regex link listen ln load location lock locked log logged lower mapping matched materialized max max_cardinality maxvalue member merge message message_length message_octet_length message_text min minvalue mod mode more move multiset mumps name namespace nfc nfd nfkc nfkd nil normalize normalized nothing notice notify notnull nowait nth_value ntile nullable nullif nulls number occurrences_regex octet_length octets off offset oids operator options ordering others over overlay overriding owned owner parallel parameter_mode parameter_name parameter_ordinal_position parameter_specific_catalog parameter_specific_name parameter_specific_schema parser partition pascal passing passthrough password percent percent_rank percentile_cont percentile_disc perform period permission pg_context pg_datatype_name pg_exception_context pg_exception_detail pg_exception_hint placing plans pli policy portion position position_regex power precedes preceding prepared print_strict_params procedural procedures program publication query quote raise range rank reassign recheck recovery refresh regr_avgx regr_avgy regr_count regr_intercept regr_r2 regr_slope regr_sxx regr_sxy regr_syy reindex rename repeatable replace replica requiring reset respect restart restore result_oid returned_cardinality returned_length returned_octet_length returned_sqlstate returning reverse routine_catalog routine_name routine_schema routines row_count row_number rowtype rule scale schema_name schemas scope scope_catalog scope_name scope_schema security selective self sensitive sequence sequences serializable server server_name setof share show simple skip slice snapshot source specific_name sqlcode sqlerror sqrt stable stacked standalone statement statistics stddev_pop stddev_samp stdin stdout storage strict strip structure style subclass_origin submultiset subscription substring substring_regex succeeds sum symmetric sysid system system_time table_name tables tablesample tablespace temp template ties token top_level_count transaction_active transactions_committed transactions_rolled_back transform transforms translate translate_regex trigger_catalog trigger_name trigger_schema trim trim_array truncate trusted type types uescape unbounded uncommitted unencrypted unlink unlisten unlogged unnamed untyped upper uri use_column use_variable user_defined_type_catalog user_defined_type_code user_defined_type_name user_defined_type_schema vacuum valid validate validator value_of var_pop var_samp varbinary variable_conflict variadic verbose version versioning views volatile warning whitespace width_bucket window within wrapper xmlagg xmlattributes xmlbinary xmlcast xmlcomment xmlconcat xmldeclaration xmldocument xmlelement xmlexists xmlforest xmliterate xmlnamespaces xmlparse xmlpi xmlquery xmlroot xmlschema xmlserialize xmltable xmltext xmlvalidate yes",types:C+"bigint int8 bigserial serial8 varbit bool box bytea cidr circle precision float8 inet int4 json jsonb line lseg macaddr macaddr8 money numeric pg_lsn point polygon float4 int2 smallserial serial2 serial serial4 text timetz timestamptz tsquery tsvector txid_snapshot uuid xml"}),J="accessible algorithm analyze asensitive authors auto_increment autocommit avg avg_row_length binlog btree cache catalog_name chain change changed checkpoint checksum class_origin client_statistics coalesce code collations columns comment committed completion concurrent consistent contains contributors convert database databases day_hour day_microsecond day_minute day_second delay_key_write delayed delimiter des_key_file dev_pop dev_samp deviance directory disable discard distinctrow div dual dumpfile enable enclosed ends engine engines enum errors escaped even event events every explain extended fast field fields flush force found_rows fulltext grants handler hash high_priority hosts hour_microsecond hour_minute hour_second ignore ignore_server_ids import index index_statistics infile innodb insensitive insert_method install invoker iterate keys kill linear lines list load lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modify mutex mysql_errno no_write_to_binlog offline offset one online optimize optionally outfile pack_keys parser partition partitions password phase plugin plugins prev processlist profile profiles purge query quick range read_write rebuild recover regexp relaylog remove rename reorganize repair repeatable replace require resume rlike row_format rtree schedule schema_name schemas second_microsecond security sensitive separator serializable server share show slave slow snapshot soname spatial sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result ssl starting starts std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace terminated triggers truncate uncommitted uninstall unlock upgrade use use_frm user_resources user_statistics utc_date utc_time utc_timestamp variables views warnings xa xor year_month zerofill",ee=C+"bool blob long longblob longtext medium mediumblob mediumint mediumtext tinyblob tinyint tinytext text bigint int1 int2 int3 int4 int8 float4 float8 varbinary varcharacter precision datetime unsigned signed",te="charset clear edit ego help nopager notee nowarning pager print prompt quit rehash source status system tee",ae=L.define({operatorChars:"*+-%<>!=&|^",charSetCasts:!0,doubleQuotedStrings:!0,unquotedBitLiterals:!0,hashComments:!0,spaceAfterDashes:!0,specialVar:"@?",identifierQuotes:"`",keywords:q+"group_concat "+J,types:ee,builtin:te}),ne=L.define({operatorChars:"*+-%<>!=&|^",charSetCasts:!0,doubleQuotedStrings:!0,unquotedBitLiterals:!0,hashComments:!0,spaceAfterDashes:!0,specialVar:"@?",identifierQuotes:"`",keywords:q+"always generated groupby_concat hard persistent shutdown soft virtual "+J,types:ee,builtin:te}),re=L.define({keywords:q+"trigger proc view index for add constraint key primary foreign collate clustered nonclustered declare exec go if use index holdlock nolock nowait paglock pivot readcommitted readcommittedlock readpast readuncommitted repeatableread rowlock serializable snapshot tablock tablockx unpivot updlock with",types:C+"bigint smallint smallmoney tinyint money real text nvarchar ntext varbinary image hierarchyid uniqueidentifier sql_variant xml",builtin:"binary_checksum checksum connectionproperty context_info current_request_id error_line error_message error_number error_procedure error_severity error_state formatmessage get_filestream_transaction_context getansinull host_id host_name isnull isnumeric min_active_rowversion newid newsequentialid rowcount_big xact_state object_id",operatorChars:"*+-%<>!=^&|/",specialVar:"@"}),ie=L.define({keywords:q+"abort analyze attach autoincrement conflict database detach exclusive fail glob ignore index indexed instead isnull notnull offset plan pragma query raise regexp reindex rename replace temp vacuum virtual",types:C+"bool blob long longblob longtext medium mediumblob mediumint mediumtext tinyblob tinyint tinytext text bigint int2 int8 unsigned signed real",builtin:"auth backup bail changes clone databases dbinfo dump echo eqp explain fullschema headers help import imposter indexes iotrace lint load log mode nullvalue once print prompt quit restore save scanstats separator shell show stats system tables testcase timeout timer trace vfsinfo vfslist vfsname width",operatorChars:"*+-%<>!=&|/~",identifierQuotes:'`"',specialVar:"@:?$"}),se=L.define({keywords:"add all allow alter and any apply as asc authorize batch begin by clustering columnfamily compact consistency count create custom delete desc distinct drop each_quorum exists filtering from grant if in index insert into key keyspace keyspaces level limit local_one local_quorum modify nan norecursive nosuperuser not of on one order password permission permissions primary quorum rename revoke schema select set storage superuser table three to token truncate ttl two type unlogged update use user users using values where with writetime infinity NaN",types:C+"ascii bigint blob counter frozen inet list map static text timeuuid tuple uuid varint",slashComments:!0}),oe=L.define({keywords:q+"abort accept access add all alter and any arraylen as asc assert assign at attributes audit authorization avg base_table begin between binary_integer body by case cast char_base check close cluster clusters colauth column comment commit compress connected constant constraint crash create current currval cursor data_base database dba deallocate debugoff debugon declare default definition delay delete desc digits dispose distinct do drop else elseif elsif enable end entry exception exception_init exchange exclusive exists external fast fetch file for force form from function generic goto grant group having identified if immediate in increment index indexes indicator initial initrans insert interface intersect into is key level library like limited local lock log logging loop master maxextents maxtrans member minextents minus mislabel mode modify multiset new next no noaudit nocompress nologging noparallel not nowait number_base of off offline on online only option or order out package parallel partition pctfree pctincrease pctused pls_integer positive positiven pragma primary prior private privileges procedure public raise range raw rebuild record ref references refresh rename replace resource restrict return returning returns reverse revoke rollback row rowid rowlabel rownum rows run savepoint schema segment select separate set share snapshot some space split sql start statement storage subtype successful synonym tabauth table tables tablespace task terminate then to trigger truncate type union unique unlimited unrecoverable unusable update use using validate value values variable view views when whenever where while with work",builtin:"appinfo arraysize autocommit autoprint autorecovery autotrace blockterminator break btitle cmdsep colsep compatibility compute concat copycommit copytypecheck define echo editfile embedded feedback flagger flush heading headsep instance linesize lno loboffset logsource longchunksize markup native newpage numformat numwidth pagesize pause pno recsep recsepchar repfooter repheader serveroutput shiftinout show showmode spool sqlblanklines sqlcase sqlcode sqlcontinue sqlnumber sqlpluscompatibility sqlprefix sqlprompt sqlterminator suffix tab term termout timing trimout trimspool ttitle underline verify version wrap",types:C+"ascii bfile bfilename bigserial bit blob dec long number nvarchar nvarchar2 serial smallint string text uid varchar2 xml",operatorChars:"*/+-%<>!=~",doubleQuotedStrings:!0,charSetCasts:!0,plsqlQuotingMechanism:!0});export{se as Cassandra,re as MSSQL,ne as MariaSQL,ae as MySQL,oe as PLSQL,H as PostgreSQL,L as SQLDialect,ie as SQLite,F as StandardSQL,G as keywordCompletion,W as keywordCompletionSource,K as schemaCompletion,Y as schemaCompletionSource,M as sql}; diff --git a/nicegui/elements/lib/codemirror/javascript-CQRKPXEM.js b/nicegui/elements/lib/codemirror/javascript-CQRKPXEM.js new file mode 100644 index 000000000..b40b3a216 --- /dev/null +++ b/nicegui/elements/lib/codemirror/javascript-CQRKPXEM.js @@ -0,0 +1 @@ +function e(e){var t,r,n=e.statementIndent,a=e.jsonld,i=e.json||a,o=e.typescript,u=e.wordCharacters||/[\w$\xa1-\uffff]/,c=function(){function e(e){return{type:e,style:"keyword"}}var t=e("keyword a"),r=e("keyword b"),n=e("keyword c"),a=e("keyword d"),i=e("operator"),o={type:"atom",style:"atom"};return{if:e("if"),while:t,with:t,else:r,do:r,try:r,finally:r,return:a,break:a,continue:a,new:e("new"),delete:n,void:n,throw:n,debugger:e("debugger"),var:e("var"),const:e("var"),let:e("var"),function:e("function"),catch:e("catch"),for:e("for"),switch:e("switch"),case:e("case"),default:e("default"),in:i,typeof:i,instanceof:i,true:o,false:o,null:o,undefined:o,NaN:o,Infinity:o,this:e("this"),class:e("class"),super:e("atom"),yield:n,export:e("export"),import:e("import"),extends:n,await:n}}(),s=/[+\-*&%=<>!?|~^@]/,l=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function f(e,n,a){return t=e,r=a,n}function d(e,t){var r,n=e.next();if('"'==n||"'"==n)return t.tokenize=(r=n,function(e,t){var n,i=!1;if(a&&"@"==e.peek()&&e.match(l))return t.tokenize=d,f("jsonld-keyword","meta");for(;null!=(n=e.next())&&(n!=r||i);)i=!i&&"\\"==n;return i||(t.tokenize=d),f("string","string")}),t.tokenize(e,t);if("."==n&&e.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return f("number","number");if("."==n&&e.match(".."))return f("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(n))return f(n);if("="==n&&e.eat(">"))return f("=>","operator");if("0"==n&&e.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return f("number","number");if(/\d/.test(n))return e.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),f("number","number");if("/"==n)return e.eat("*")?(t.tokenize=m,m(e,t)):e.eat("/")?(e.skipToEnd(),f("comment","comment")):function(e,t,r){return t.tokenize==d&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(t.lastType)||"quasi"==t.lastType&&/\{\s*$/.test(e.string.slice(0,e.pos-r))}(e,t,1)?(function(e){for(var t,r=!1,n=!1;null!=(t=e.next());){if(!r){if("/"==t&&!n)return;"["==t?n=!0:n&&"]"==t&&(n=!1)}r=!r&&"\\"==t}}(e),e.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),f("regexp","string.special")):(e.eat("="),f("operator","operator",e.current()));if("`"==n)return t.tokenize=p,p(e,t);if("#"==n&&"!"==e.peek())return e.skipToEnd(),f("meta","meta");if("#"==n&&e.eatWhile(u))return f("variable","property");if("<"==n&&e.match("!--")||"-"==n&&e.match("->")&&!/\S/.test(e.string.slice(0,e.start)))return e.skipToEnd(),f("comment","comment");if(s.test(n))return">"==n&&t.lexical&&">"==t.lexical.type||(e.eat("=")?"!"!=n&&"="!=n||e.eat("="):/[<>*+\-|&?]/.test(n)&&(e.eat(n),">"==n&&e.eat(n))),"?"==n&&e.eat(".")?f("."):f("operator","operator",e.current());if(u.test(n)){e.eatWhile(u);var i=e.current();if("."!=t.lastType){if(c.propertyIsEnumerable(i)){var o=c[i];return f(o.type,o.style,i)}if("async"==i&&e.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return f("async","keyword",i)}return f("variable","variable",i)}}function m(e,t){for(var r,n=!1;r=e.next();){if("/"==r&&n){t.tokenize=d;break}n="*"==r}return f("comment","comment")}function p(e,t){for(var r,n=!1;null!=(r=e.next());){if(!n&&("`"==r||"$"==r&&e.eat("{"))){t.tokenize=d;break}n=!n&&"\\"==r}return f("quasi","string.special",e.current())}var k="([{}])";function v(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var r=e.string.indexOf("=>",e.start);if(!(r<0)){if(o){var n=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start,r));n&&(r=n.index)}for(var a=0,i=!1,c=r-1;c>=0;--c){var s=e.string.charAt(c),l=k.indexOf(s);if(l>=0&&l<3){if(!a){++c;break}if(0==--a){"("==s&&(i=!0);break}}else if(l>=3&&l<6)++a;else if(u.test(s))i=!0;else if(/["'\/`]/.test(s))for(;;--c){if(0==c)return;if(e.string.charAt(c-1)==s&&"\\"!=e.string.charAt(c-2)){c--;break}}else if(i&&!a){++c;break}}i&&!a&&(t.fatArrowAt=c)}}var y={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function w(e,t,r,n,a,i){this.indented=e,this.column=t,this.type=r,this.prev=a,this.info=i,null!=n&&(this.align=n)}function b(e,t){for(var r=e.localVars;r;r=r.next)if(r.name==t)return!0;for(var n=e.context;n;n=n.prev)for(r=n.vars;r;r=r.next)if(r.name==t)return!0}var h={state:null,column:null,marked:null,cc:null};function x(){for(var e=arguments.length-1;e>=0;e--)h.cc.push(arguments[e])}function g(){return x.apply(null,arguments),!0}function V(e,t){for(var r=t;r;r=r.next)if(r.name==e)return!0;return!1}function A(t){var r=h.state;if(h.marked="def",r.context)if("var"==r.lexical.info&&r.context&&r.context.block){var n=z(t,r.context);if(null!=n)return void(r.context=n)}else if(!V(t,r.localVars))return void(r.localVars=new $(t,r.localVars));e.globalVars&&!V(t,r.globalVars)&&(r.globalVars=new $(t,r.globalVars))}function z(e,t){if(t){if(t.block){var r=z(e,t.prev);return r?r==t.prev?t:new j(r,t.vars,!0):null}return V(e,t.vars)?t:new j(t.prev,new $(e,t.vars),!1)}return null}function T(e){return"public"==e||"private"==e||"protected"==e||"abstract"==e||"readonly"==e}function j(e,t,r){this.prev=e,this.vars=t,this.block=r}function $(e,t){this.name=e,this.next=t}var O=new $("this",new $("arguments",null));function _(){h.state.context=new j(h.state.context,h.state.localVars,!1),h.state.localVars=O}function q(){h.state.context=new j(h.state.context,h.state.localVars,!0),h.state.localVars=null}function E(){h.state.localVars=h.state.context.vars,h.state.context=h.state.context.prev}function I(e,t){var r=function(){var r=h.state,n=r.indented;if("stat"==r.lexical.type)n=r.lexical.indented;else for(var a=r.lexical;a&&")"==a.type&&a.align;a=a.prev)n=a.indented;r.lexical=new w(n,h.stream.column(),e,null,r.lexical,t)};return r.lex=!0,r}function S(){var e=h.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function N(e){return function t(r){return r==e?g():";"==e||"}"==r||")"==r||"]"==r?x():g(t)}}function P(e,t){return"var"==e?g(I("vardef",t),he,N(";"),S):"keyword a"==e?g(I("form"),D,P,S):"keyword b"==e?g(I("form"),P,S):"keyword d"==e?h.stream.match(/^\s*$/,!1)?g():g(I("stat"),U,N(";"),S):"debugger"==e?g(N(";")):"{"==e?g(I("}"),q,ae,S,E):";"==e?g():"if"==e?("else"==h.state.lexical.info&&h.state.cc[h.state.cc.length-1]==S&&h.state.cc.pop()(),g(I("form"),D,P,S,Te)):"function"==e?g(_e):"for"==e?g(I("form"),q,je,P,E,S):"class"==e||o&&"interface"==t?(h.marked="keyword",g(I("form","class"==e?e:t),Ne,S)):"variable"==e?o&&"declare"==t?(h.marked="keyword",g(P)):o&&("module"==t||"enum"==t||"type"==t)&&h.stream.match(/^\s*\w/,!1)?(h.marked="keyword","enum"==t?g(Le):"type"==t?g(Ee,N("operator"),se,N(";")):g(I("form"),xe,N("{"),I("}"),ae,S,S)):o&&"namespace"==t?(h.marked="keyword",g(I("form"),W,P,S)):o&&"abstract"==t?(h.marked="keyword",g(P)):g(I("stat"),X):"switch"==e?g(I("form"),D,N("{"),I("}","switch"),q,ae,S,S,E):"case"==e?g(W,N(":")):"default"==e?g(N(":")):"catch"==e?g(I("form"),_,C,P,S,E):"export"==e?g(I("stat"),Be,S):"import"==e?g(I("stat"),Fe,S):"async"==e?g(P):"@"==t?g(W,P):x(I("stat"),W,N(";"),S)}function C(e){if("("==e)return g(Ie,N(")"))}function W(e,t){return F(e,t,!1)}function B(e,t){return F(e,t,!0)}function D(e){return"("!=e?x():g(I(")"),U,N(")"),S)}function F(e,t,r){if(h.state.fatArrowAt==h.stream.start){var n=r?M:L;if("("==e)return g(_,I(")"),re(Ie,")"),S,N("=>"),n,E);if("variable"==e)return x(_,xe,N("=>"),n,E)}var a=r?H:G;return y.hasOwnProperty(e)?g(a):"function"==e?g(_e,a):"class"==e||o&&"interface"==t?(h.marked="keyword",g(I("form"),Se,S)):"keyword c"==e||"async"==e?g(r?B:W):"("==e?g(I(")"),U,N(")"),S,a):"operator"==e||"spread"==e?g(r?B:W):"["==e?g(I("]"),Ke,S,a):"{"==e?ne(Z,"}",null,a):"quasi"==e?x(J,a):"new"==e?g(function(e){return function(t){return"."==t?g(e?R:Q):"variable"==t&&o?g(ye,e?H:G):x(e?B:W)}}(r)):g()}function U(e){return e.match(/[;\}\)\],]/)?x():x(W)}function G(e,t){return","==e?g(U):H(e,t,!1)}function H(e,t,r){var n=0==r?G:H,a=0==r?W:B;return"=>"==e?g(_,r?M:L,E):"operator"==e?/\+\+|--/.test(t)||o&&"!"==t?g(n):o&&"<"==t&&h.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?g(I(">"),re(se,">"),S,n):"?"==t?g(W,N(":"),a):g(a):"quasi"==e?x(J,n):";"!=e?"("==e?ne(B,")","call",n):"."==e?g(Y,n):"["==e?g(I("]"),U,N("]"),S,n):o&&"as"==t?(h.marked="keyword",g(se,n)):"regexp"==e?(h.state.lastType=h.marked="operator",h.stream.backUp(h.stream.pos-h.stream.start-1),g(a)):void 0:void 0}function J(e,t){return"quasi"!=e?x():"${"!=t.slice(t.length-2)?g(J):g(U,K)}function K(e){if("}"==e)return h.marked="string.special",h.state.tokenize=p,g(J)}function L(e){return v(h.stream,h.state),x("{"==e?P:W)}function M(e){return v(h.stream,h.state),x("{"==e?P:B)}function Q(e,t){if("target"==t)return h.marked="keyword",g(G)}function R(e,t){if("target"==t)return h.marked="keyword",g(H)}function X(e){return":"==e?g(S,P):x(G,N(";"),S)}function Y(e){if("variable"==e)return h.marked="property",g()}function Z(e,t){return"async"==e?(h.marked="property",g(Z)):"variable"==e||"keyword"==h.style?(h.marked="property","get"==t||"set"==t?g(ee):(o&&h.state.fatArrowAt==h.stream.start&&(r=h.stream.match(/^\s*:\s*/,!1))&&(h.state.fatArrowAt=h.stream.pos+r[0].length),g(te))):"number"==e||"string"==e?(h.marked=a?"property":h.style+" property",g(te)):"jsonld-keyword"==e?g(te):o&&T(t)?(h.marked="keyword",g(Z)):"["==e?g(W,ie,N("]"),te):"spread"==e?g(B,te):"*"==t?(h.marked="keyword",g(Z)):":"==e?x(te):void 0;var r}function ee(e){return"variable"!=e?x(te):(h.marked="property",g(_e))}function te(e){return":"==e?g(B):"("==e?x(_e):void 0}function re(e,t,r){function n(a,i){if(r?r.indexOf(a)>-1:","==a){var o=h.state.lexical;return"call"==o.info&&(o.pos=(o.pos||0)+1),g((function(r,n){return r==t||n==t?x():x(e)}),n)}return a==t||i==t?g():r&&r.indexOf(";")>-1?x(e):g(N(t))}return function(r,a){return r==t||a==t?g():x(e,n)}}function ne(e,t,r){for(var n=3;n"),se):"quasi"==e?x(me,ve):void 0}function le(e){if("=>"==e)return g(se)}function fe(e){return e.match(/[\}\)\]]/)?g():","==e||";"==e?g(fe):x(de,fe)}function de(e,t){return"variable"==e||"keyword"==h.style?(h.marked="property",g(de)):"?"==t||"number"==e||"string"==e?g(de):":"==e?g(se):"["==e?g(N("variable"),oe,N("]"),de):"("==e?x(qe,de):e.match(/[;\}\)\],]/)?void 0:g()}function me(e,t){return"quasi"!=e?x():"${"!=t.slice(t.length-2)?g(me):g(se,pe)}function pe(e){if("}"==e)return h.marked="string.special",h.state.tokenize=p,g(me)}function ke(e,t){return"variable"==e&&h.stream.match(/^\s*[?:]/,!1)||"?"==t?g(ke):":"==e?g(se):"spread"==e?g(ke):x(se)}function ve(e,t){return"<"==t?g(I(">"),re(se,">"),S,ve):"|"==t||"."==e||"&"==t?g(se):"["==e?g(se,N("]"),ve):"extends"==t||"implements"==t?(h.marked="keyword",g(se)):"?"==t?g(se,N(":"),se):void 0}function ye(e,t){if("<"==t)return g(I(">"),re(se,">"),S,ve)}function we(){return x(se,be)}function be(e,t){if("="==t)return g(se)}function he(e,t){return"enum"==t?(h.marked="keyword",g(Le)):x(xe,ie,Ae,ze)}function xe(e,t){return o&&T(t)?(h.marked="keyword",g(xe)):"variable"==e?(A(t),g()):"spread"==e?g(xe):"["==e?ne(Ve,"]"):"{"==e?ne(ge,"}"):void 0}function ge(e,t){return"variable"!=e||h.stream.match(/^\s*:/,!1)?("variable"==e&&(h.marked="property"),"spread"==e?g(xe):"}"==e?x():"["==e?g(W,N("]"),N(":"),ge):g(N(":"),xe,Ae)):(A(t),g(Ae))}function Ve(){return x(xe,Ae)}function Ae(e,t){if("="==t)return g(B)}function ze(e){if(","==e)return g(he)}function Te(e,t){if("keyword b"==e&&"else"==t)return g(I("form","else"),P,S)}function je(e,t){return"await"==t?g(je):"("==e?g(I(")"),$e,S):void 0}function $e(e){return"var"==e?g(he,Oe):"variable"==e?g(Oe):x(Oe)}function Oe(e,t){return")"==e?g():";"==e?g(Oe):"in"==t||"of"==t?(h.marked="keyword",g(W,Oe)):x(W,Oe)}function _e(e,t){return"*"==t?(h.marked="keyword",g(_e)):"variable"==e?(A(t),g(_e)):"("==e?g(_,I(")"),re(Ie,")"),S,ue,P,E):o&&"<"==t?g(I(">"),re(we,">"),S,_e):void 0}function qe(e,t){return"*"==t?(h.marked="keyword",g(qe)):"variable"==e?(A(t),g(qe)):"("==e?g(_,I(")"),re(Ie,")"),S,ue,E):o&&"<"==t?g(I(">"),re(we,">"),S,qe):void 0}function Ee(e,t){return"keyword"==e||"variable"==e?(h.marked="type",g(Ee)):"<"==t?g(I(">"),re(we,">"),S):void 0}function Ie(e,t){return"@"==t&&g(W,Ie),"spread"==e?g(Ie):o&&T(t)?(h.marked="keyword",g(Ie)):o&&"this"==e?g(ie,Ae):x(xe,ie,Ae)}function Se(e,t){return"variable"==e?Ne(e,t):Pe(e,t)}function Ne(e,t){if("variable"==e)return A(t),g(Pe)}function Pe(e,t){return"<"==t?g(I(">"),re(we,">"),S,Pe):"extends"==t||"implements"==t||o&&","==e?("implements"==t&&(h.marked="keyword"),g(o?se:W,Pe)):"{"==e?g(I("}"),Ce,S):void 0}function Ce(e,t){return"async"==e||"variable"==e&&("static"==t||"get"==t||"set"==t||o&&T(t))&&h.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1)?(h.marked="keyword",g(Ce)):"variable"==e||"keyword"==h.style?(h.marked="property",g(We,Ce)):"number"==e||"string"==e?g(We,Ce):"["==e?g(W,ie,N("]"),We,Ce):"*"==t?(h.marked="keyword",g(Ce)):o&&"("==e?x(qe,Ce):";"==e||","==e?g(Ce):"}"==e?g():"@"==t?g(W,Ce):void 0}function We(e,t){if("!"==t||"?"==t)return g(We);if(":"==e)return g(se,Ae);if("="==t)return g(B);var r=h.state.lexical.prev;return x(r&&"interface"==r.info?qe:_e)}function Be(e,t){return"*"==t?(h.marked="keyword",g(Je,N(";"))):"default"==t?(h.marked="keyword",g(W,N(";"))):"{"==e?g(re(De,"}"),Je,N(";")):x(P)}function De(e,t){return"as"==t?(h.marked="keyword",g(N("variable"))):"variable"==e?x(B,De):void 0}function Fe(e){return"string"==e?g():"("==e?x(W):"."==e?x(G):x(Ue,Ge,Je)}function Ue(e,t){return"{"==e?ne(Ue,"}"):("variable"==e&&A(t),"*"==t&&(h.marked="keyword"),g(He))}function Ge(e){if(","==e)return g(Ue,Ge)}function He(e,t){if("as"==t)return h.marked="keyword",g(Ue)}function Je(e,t){if("from"==t)return h.marked="keyword",g(W)}function Ke(e){return"]"==e?g():x(re(B,"]"))}function Le(){return x(I("form"),xe,N("{"),I("}"),re(Me,"}"),S,S)}function Me(){return x(xe,Ae)}return _.lex=q.lex=!0,E.lex=!0,S.lex=!0,{name:e.name,startState:function(t){var r={tokenize:d,lastType:"sof",cc:[],lexical:new w(-t,0,"block",!1),localVars:e.localVars,context:e.localVars&&new j(null,null,!1),indented:0};return e.globalVars&&"object"==typeof e.globalVars&&(r.globalVars=e.globalVars),r},token:function(e,n){if(e.sol()&&(n.lexical.hasOwnProperty("align")||(n.lexical.align=!1),n.indented=e.indentation(),v(e,n)),n.tokenize!=m&&e.eatSpace())return null;var a=n.tokenize(e,n);return"comment"==t?a:(n.lastType="operator"!=t||"++"!=r&&"--"!=r?t:"incdec",function(e,t,r,n,a){var o=e.cc;for(h.state=e,h.stream=a,h.marked=null,h.cc=o,h.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;)if((o.length?o.pop():i?W:P)(r,n)){for(;o.length&&o[o.length-1].lex;)o.pop()();return h.marked?h.marked:"variable"==r&&b(e,n)?"variableName.local":t}}(n,a,t,r,e))},indent:function(t,r,a){if(t.tokenize==m||t.tokenize==p)return null;if(t.tokenize!=d)return 0;var i,o=r&&r.charAt(0),u=t.lexical;if(!/^\s*else\b/.test(r))for(var c=t.cc.length-1;c>=0;--c){var l=t.cc[c];if(l==S)u=u.prev;else if(l!=Te&&l!=E)break}for(;("stat"==u.type||"form"==u.type)&&("}"==o||(i=t.cc[t.cc.length-1])&&(i==G||i==H)&&!/^[,\.=+\-*:?[\(]/.test(r));)u=u.prev;n&&")"==u.type&&"stat"==u.prev.type&&(u=u.prev);var f=u.type,k=o==f;return"vardef"==f?u.indented+("operator"==t.lastType||","==t.lastType?u.info.length+1:0):"form"==f&&"{"==o?u.indented:"form"==f?u.indented+a.unit:"stat"==f?u.indented+(function(e,t){return"operator"==e.lastType||","==e.lastType||s.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}(t,r)?n||a.unit:0):"switch"!=u.info||k||0==e.doubleIndentSwitch?u.align?u.column+(k?0:1):u.indented+(k?0:a.unit):u.indented+(/^(?:case|default)\b/.test(r)?a.unit:2*a.unit)},languageData:{indentOnInput:/^\s*(?:case .*?:|default:|\{|\})$/,commentTokens:i?void 0:{line:"//",block:{open:"/*",close:"*/"}},closeBrackets:{brackets:["(","[","{","'",'"',"`"]},wordChars:"$"}}}const t=e({name:"javascript"}),r=e({name:"json",json:!0}),n=e({name:"json",jsonld:!0}),a=e({name:"typescript",typescript:!0});export{t as javascript,r as json,n as jsonld,a as typescript}; diff --git a/nicegui/elements/lib/codemirror/jinja2-DhgKlfW7.js b/nicegui/elements/lib/codemirror/jinja2-DhgKlfW7.js new file mode 100644 index 000000000..8660e886d --- /dev/null +++ b/nicegui/elements/lib/codemirror/jinja2-DhgKlfW7.js @@ -0,0 +1 @@ +var e=["and","as","block","endblock","by","cycle","debug","else","elif","extends","filter","endfilter","firstof","do","for","endfor","if","endif","ifchanged","endifchanged","ifequal","endifequal","ifnotequal","set","raw","endraw","endifnotequal","in","include","load","not","now","or","parsed","regroup","reversed","spaceless","call","endcall","macro","endmacro","endspaceless","ssi","templatetag","openblock","closeblock","openvariable","closevariable","without","context","openbrace","closebrace","opencomment","closecomment","widthratio","url","with","endwith","get_current_language","trans","endtrans","noop","blocktrans","endblocktrans","get_available_languages","get_current_language_bidi","pluralize","autoescape","endautoescape"],n=/^[+\-*&%=<>!?|~^]/,t=/^[:\[\(\{]/,a=["true","false"],i=/^(\d[+\-\*\/])?\d+(\.\d+)?/;function r(r,o){var c=r.peek();if(o.incomment)return r.skipTo("#}")?(r.eatWhile(/\#|}/),o.incomment=!1):r.skipToEnd(),"comment";if(o.intag){if(o.operator){if(o.operator=!1,r.match(a))return"atom";if(r.match(i))return"number"}if(o.sign){if(o.sign=!1,r.match(a))return"atom";if(r.match(i))return"number"}if(o.instring)return c==o.instring&&(o.instring=!1),r.next(),"string";if("'"==c||'"'==c)return o.instring=c,r.next(),"string";if(o.inbraces>0&&")"==c)r.next(),o.inbraces--;else if("("==c)r.next(),o.inbraces++;else if(o.inbrackets>0&&"]"==c)r.next(),o.inbrackets--;else if("["==c)r.next(),o.inbrackets++;else{if(!o.lineTag&&(r.match(o.intag+"}")||r.eat("-")&&r.match(o.intag+"}")))return o.intag=!1,"tag";if(r.match(n))return o.operator=!0,"operator";if(r.match(t))o.sign=!0;else{if(1==r.column()&&o.lineTag&&r.match(e))return"keyword";if(r.eat(" ")||r.sol()){if(r.match(e))return"keyword";if(r.match(a))return"atom";if(r.match(i))return"number";r.sol()&&r.next()}else r.next()}}return"variable"}if(r.eat("{")){if(r.eat("#"))return o.incomment=!0,r.skipTo("#}")?(r.eatWhile(/\#|}/),o.incomment=!1):r.skipToEnd(),"comment";if(c=r.eat(/\{|%/))return o.intag=c,o.inbraces=0,o.inbrackets=0,"{"==c&&(o.intag="}"),r.eat("-"),"tag"}else if(r.eat("#")){if("#"==r.peek())return r.skipToEnd(),"comment";if(!r.eol())return o.intag=!0,o.lineTag=!0,o.inbraces=0,o.inbrackets=0,"tag"}r.next()}e=new RegExp("(("+e.join(")|(")+"))\\b"),a=new RegExp("(("+a.join(")|(")+"))\\b");const o={name:"jinja2",startState:function(){return{tokenize:r,inbrackets:0,inbraces:0}},token:function(e,n){var t=n.tokenize(e,n);return e.eol()&&n.lineTag&&!n.instring&&0==n.inbraces&&0==n.inbrackets&&(n.intag=!1,n.lineTag=!1),t},languageData:{commentTokens:{block:{open:"{#",close:"#}",line:"##"}}}};export{o as jinja2}; diff --git a/nicegui/elements/lib/codemirror/julia-DjdwvFuI.js b/nicegui/elements/lib/codemirror/julia-DjdwvFuI.js new file mode 100644 index 000000000..b25c235cc --- /dev/null +++ b/nicegui/elements/lib/codemirror/julia-DjdwvFuI.js @@ -0,0 +1 @@ +function e(e,t,n){return void 0===n&&(n=""),void 0===t&&(t="\\b"),new RegExp("^"+n+"(("+e.join(")|(")+"))"+t)}var t=["[<>]:","[<>=]=","<<=?",">>>?=?","=>","--?>","<--[->]?","\\/\\/","\\.{2,3}","[\\.\\\\%*+\\-<>!\\/^|&]=?","\\?","\\$","~",":"],n=e(["[<>]:","[<>=]=","[!=]==","<<=?",">>>?=?","=>?","--?>","<--[->]?","\\/\\/","[\\\\%*+\\-<>!\\/^|&\\u00F7\\u22BB]=?","\\?","\\$","~",":","\\u00D7","\\u2208","\\u2209","\\u220B","\\u220C","\\u2218","\\u221A","\\u221B","\\u2229","\\u222A","\\u2260","\\u2264","\\u2265","\\u2286","\\u2288","\\u228A","\\u22C5","\\b(in|isa)\\b(?!.?\\()"],""),r=/^[;,()[\]{}]/,a=/^[_A-Za-z\u00A1-\u2217\u2219-\uFFFF][\w\u00A1-\u2217\u2219-\uFFFF]*!*/,i=e(["\\\\[0-7]{1,3}","\\\\x[A-Fa-f0-9]{1,2}","\\\\[abefnrtv0%?'\"\\\\]","([^\\u0027\\u005C\\uD800-\\uDFFF]|[\\uD800-\\uDFFF][\\uDC00-\\uDFFF])"],"'"),s=["if","else","elseif","while","for","begin","let","end","do","try","catch","finally","return","break","continue","global","local","const","export","import","importall","using","function","where","macro","module","baremodule","struct","type","mutable","immutable","quote","typealias","abstract","primitive","bitstype"],u=["true","false","nothing","NaN","Inf"],o=e(["begin","function","type","struct","immutable","let","macro","for","while","quote","if","else","elseif","try","finally","catch","do"]),c=e(["end","else","elseif","catch","finally"]),l=e(s),m=e(u),f=/^@[_A-Za-z\u00A1-\uFFFF][\w\u00A1-\uFFFF]*!*/,p=/^:[_A-Za-z\u00A1-\uFFFF][\w\u00A1-\uFFFF]*!*/,h=/^(`|([_A-Za-z\u00A1-\uFFFF]*"("")?))/,d=e(t,"","@"),F=e(t,"",":");function k(e){return e.nestedArrays>0}function b(e,t){return void 0===t&&(t=0),e.scopes.length<=t?null:e.scopes[e.scopes.length-(t+1)]}function g(e,t){if(e.match("#=",!1))return t.tokenize=x,t.tokenize(e,t);var i=t.leavingExpr;if(e.sol()&&(i=!1),t.leavingExpr=!1,i&&e.match(/^'+/))return"operator";if(e.match(/\.{4,}/))return"error";if(e.match(/\.{1,3}/))return"operator";if(e.eatSpace())return null;var s,u=e.peek();if("#"===u)return e.skipToEnd(),"comment";if("["===u&&(t.scopes.push("["),t.nestedArrays++),"("===u&&(t.scopes.push("("),t.nestedGenerators++),k(t)&&"]"===u){for(;t.scopes.length&&"["!==b(t);)t.scopes.pop();t.scopes.pop(),t.nestedArrays--,t.leavingExpr=!0}if(function(e){return e.nestedGenerators>0}(t)&&")"===u){for(;t.scopes.length&&"("!==b(t);)t.scopes.pop();t.scopes.pop(),t.nestedGenerators--,t.leavingExpr=!0}if(k(t)){if("end"==t.lastToken&&e.match(":"))return"operator";if(e.match("end"))return"number"}if((s=e.match(o,!1))&&t.scopes.push(s[0]),e.match(c,!1)&&t.scopes.pop(),e.match(/^::(?![:\$])/))return t.tokenize=v,t.tokenize(e,t);if(!i&&(e.match(p)||e.match(F)))return"builtin";if(e.match(n))return"operator";if(e.match(/^\.?\d/,!1)){var z=RegExp(/^im\b/),y=!1;if(e.match(/^0x\.[0-9a-f_]+p[\+\-]?[_\d]+/i)&&(y=!0),e.match(/^0x[0-9a-f_]+/i)&&(y=!0),e.match(/^0b[01_]+/i)&&(y=!0),e.match(/^0o[0-7_]+/i)&&(y=!0),e.match(/^(?:(?:\d[_\d]*)?\.(?!\.)(?:\d[_\d]*)?|\d[_\d]*\.(?!\.)(?:\d[_\d]*))?([Eef][\+\-]?[_\d]+)?/i)&&(y=!0),e.match(/^\d[_\d]*(e[\+\-]?\d+)?/i)&&(y=!0),y)return e.match(z),t.leavingExpr=!0,"number"}if(e.match("'"))return t.tokenize=A,t.tokenize(e,t);if(e.match(h))return t.tokenize=function(e){'"""'===e.substr(-3)?e='"""':'"'===e.substr(-1)&&(e='"');function t(t,n){if(t.eat("\\"))t.next();else{if(t.match(e))return n.tokenize=g,n.leavingExpr=!0,"string";t.eat(/[`"]/)}return t.eatWhile(/[^\\`"]/),"string"}return t}(e.current()),t.tokenize(e,t);if(e.match(f)||e.match(d))return"meta";if(e.match(r))return null;if(e.match(l))return"keyword";if(e.match(m))return"builtin";var E=t.isDefinition||"function"==t.lastToken||"macro"==t.lastToken||"type"==t.lastToken||"struct"==t.lastToken||"immutable"==t.lastToken;return e.match(a)?E?"."===e.peek()?(t.isDefinition=!0,"variable"):(t.isDefinition=!1,"def"):(t.leavingExpr=!0,"variable"):(e.next(),"error")}function v(e,t){return e.match(/.*?(?=[,;{}()=\s]|$)/),e.match("{")?t.nestedParameters++:e.match("}")&&t.nestedParameters>0&&t.nestedParameters--,t.nestedParameters>0?e.match(/.*?(?={|})/)||e.next():0==t.nestedParameters&&(t.tokenize=g),"builtin"}function x(e,t){return e.match("#=")&&t.nestedComments++,e.match(/.*?(?=(#=|=#))/)||e.skipToEnd(),e.match("=#")&&(t.nestedComments--,0==t.nestedComments&&(t.tokenize=g)),"comment"}function A(e,t){var n,r=!1;if(e.match(i))r=!0;else if(n=e.match(/\\u([a-f0-9]{1,4})(?=')/i)){((a=parseInt(n[1],16))<=55295||a>=57344)&&(r=!0,e.next())}else if(n=e.match(/\\U([A-Fa-f0-9]{5,8})(?=')/)){var a;(a=parseInt(n[1],16))<=1114111&&(r=!0,e.next())}return r?(t.leavingExpr=!0,t.tokenize=g,"string"):(e.match(/^[^']+(?=')/)||e.skipToEnd(),e.match("'")&&(t.tokenize=g),"error")}const z={name:"julia",startState:function(){return{tokenize:g,scopes:[],lastToken:null,leavingExpr:!1,isDefinition:!1,nestedArrays:0,nestedComments:0,nestedGenerators:0,nestedParameters:0,firstParenPos:-1}},token:function(e,t){var n=t.tokenize(e,t),r=e.current();return r&&n&&(t.lastToken=r),n},indent:function(e,t,n){var r=0;return("]"===t||")"===t||/^end\b/.test(t)||/^else/.test(t)||/^catch\b/.test(t)||/^elseif\b/.test(t)||/^finally/.test(t))&&(r=-1),(e.scopes.length+r)*n.unit},languageData:{indentOnInput:/^\s*(end|else|catch|finally)\b$/,commentTokens:{line:"#",block:{open:"#=",close:"=#"}},closeBrackets:{brackets:["(","[","{",'"']},autocomplete:s.concat(u)}};export{z as julia}; diff --git a/nicegui/elements/lib/codemirror/livescript-B19OIWEP.js b/nicegui/elements/lib/codemirror/livescript-B19OIWEP.js new file mode 100644 index 000000000..a1fd79738 --- /dev/null +++ b/nicegui/elements/lib/codemirror/livescript-B19OIWEP.js @@ -0,0 +1 @@ +var e=function(e,t){var n=t.next||"start";if(n){t.next=t.next;var r=x[n];if(r.splice){for(var o=0;o|\\b(?:e(?:lse|xport)|d(?:o|efault)|t(?:ry|hen)|finally|import(?:\\s*all)?|const|var|let|new|catch(?:\\s*"+t+")?))\\s*$"),r="(?![$\\w]|-[A-Za-z]|\\s*:(?![:=]))",o={token:"string",regex:".+"},x={start:[{token:"docComment",regex:"/\\*",next:"comment"},{token:"comment",regex:"#.*"},{token:"keyword",regex:"(?:t(?:h(?:is|row|en)|ry|ypeof!?)|c(?:on(?:tinue|st)|a(?:se|tch)|lass)|i(?:n(?:stanceof)?|mp(?:ort(?:\\s+all)?|lements)|[fs])|d(?:e(?:fault|lete|bugger)|o)|f(?:or(?:\\s+own)?|inally|unction)|s(?:uper|witch)|e(?:lse|x(?:tends|port)|val)|a(?:nd|rguments)|n(?:ew|ot)|un(?:less|til)|w(?:hile|ith)|o[fr]|return|break|let|var|loop)"+r},{token:"atom",regex:"(?:true|false|yes|no|on|off|null|void|undefined)"+r},{token:"invalid",regex:"(?:p(?:ackage|r(?:ivate|otected)|ublic)|i(?:mplements|nterface)|enum|static|yield)"+r},{token:"className.standard",regex:"(?:R(?:e(?:gExp|ferenceError)|angeError)|S(?:tring|yntaxError)|E(?:rror|valError)|Array|Boolean|Date|Function|Number|Object|TypeError|URIError)"+r},{token:"variableName.function.standard",regex:"(?:is(?:NaN|Finite)|parse(?:Int|Float)|Math|JSON|(?:en|de)codeURI(?:Component)?)"+r},{token:"variableName.standard",regex:"(?:t(?:hat|il|o)|f(?:rom|allthrough)|it|by|e)"+r},{token:"variableName",regex:t+"\\s*:(?![:=])"},{token:"variableName",regex:t},{token:"operatorKeyword",regex:"(?:\\.{3}|\\s+\\?)"},{token:"keyword",regex:"(?:@+|::|\\.\\.)",next:"key"},{token:"operatorKeyword",regex:"\\.\\s*",next:"key"},{token:"string",regex:"\\\\\\S[^\\s,;)}\\]]*"},{token:"docString",regex:"'''",next:"qdoc"},{token:"docString",regex:'"""',next:"qqdoc"},{token:"string",regex:"'",next:"qstring"},{token:"string",regex:'"',next:"qqstring"},{token:"string",regex:"`",next:"js"},{token:"string",regex:"<\\[",next:"words"},{token:"regexp",regex:"//",next:"heregex"},{token:"regexp",regex:"\\/(?:[^[\\/\\n\\\\]*(?:(?:\\\\.|\\[[^\\]\\n\\\\]*(?:\\\\.[^\\]\\n\\\\]*)*\\])[^[\\/\\n\\\\]*)*)\\/[gimy$]{0,4}",next:"key"},{token:"number",regex:"(?:0x[\\da-fA-F][\\da-fA-F_]*|(?:[2-9]|[12]\\d|3[0-6])r[\\da-zA-Z][\\da-zA-Z_]*|(?:\\d[\\d_]*(?:\\.\\d[\\d_]*)?|\\.\\d[\\d_]*)(?:e[+-]?\\d[\\d_]*)?[\\w$]*)"},{token:"paren",regex:"[({[]"},{token:"paren",regex:"[)}\\]]",next:"key"},{token:"operatorKeyword",regex:"\\S+"},{token:"content",regex:"\\s+"}],heregex:[{token:"regexp",regex:".*?//[gimy$?]{0,4}",next:"start"},{token:"regexp",regex:"\\s*#{"},{token:"comment",regex:"\\s+(?:#.*)?"},{token:"regexp",regex:"\\S+"}],key:[{token:"operatorKeyword",regex:"[.?@!]+"},{token:"variableName",regex:t,next:"start"},{token:"content",regex:"",next:"start"}],comment:[{token:"docComment",regex:".*?\\*/",next:"start"},{token:"docComment",regex:".+"}],qdoc:[{token:"string",regex:".*?'''",next:"key"},o],qqdoc:[{token:"string",regex:'.*?"""',next:"key"},o],qstring:[{token:"string",regex:"[^\\\\']*(?:\\\\.[^\\\\']*)*'",next:"key"},o],qqstring:[{token:"string",regex:'[^\\\\"]*(?:\\\\.[^\\\\"]*)*"',next:"key"},o],js:[{token:"string",regex:"[^\\\\`]*(?:\\\\.[^\\\\`]*)*`",next:"key"},o],words:[{token:"string",regex:".*?\\]>",next:"key"},o]};for(var a in x){var g=x[a];if(g.splice)for(var s=0,i=g.length;s~@\^\&\*\)\[\]'\?,\|])).*/,!0,!1)||e.match(/[a-zA-Z\$][a-zA-Z0-9\$]*_+[a-zA-Z\$][a-zA-Z0-9\$]*/,!0,!1)||e.match(/[a-zA-Z\$][a-zA-Z0-9\$]*_+/,!0,!1)||e.match(/_+[a-zA-Z\$][a-zA-Z0-9\$]*/,!0,!1)?"variableName.special":e.match(/\\\[[a-zA-Z\$][a-zA-Z0-9\$]*\]/,!0,!1)?"character":e.match(/(?:\[|\]|{|}|\(|\))/,!0,!1)?"bracket":e.match(/(?:#[a-zA-Z\$][a-zA-Z0-9\$]*|#+[0-9]?)/,!0,!1)?"variableName.constant":e.match(m,!0,!1)?"keyword":e.match(/(?:\\|\+|\-|\*|\/|,|;|\.|:|@|~|=|>|<|&|\||_|`|'|\^|\?|!|%)/,!0,!1)?"operator":(e.next(),"error"))}function z(e,a){for(var t,n=!1,c=!1;null!=(t=e.next());){if('"'===t&&!c){n=!0;break}c=!c&&"\\"===t}return n&&!c&&(a.tokenize=o),"string"}function r(e,a){for(var t,n;a.commentLevel>0&&null!=(n=e.next());)"("===t&&"*"===n&&a.commentLevel++,"*"===t&&")"===n&&a.commentLevel--,t=n;return a.commentLevel<=0&&(a.tokenize=o),"comment"}const A={name:"mathematica",startState:function(){return{tokenize:o,commentLevel:0}},token:function(e,a){return e.eatSpace()?null:a.tokenize(e,a)},languageData:{commentTokens:{block:{open:"(*",close:"*)"}}}};export{A as mathematica}; diff --git a/nicegui/elements/lib/codemirror/mbox-z_N2Mo3d.js b/nicegui/elements/lib/codemirror/mbox-z_N2Mo3d.js new file mode 100644 index 000000000..c83b5aed1 --- /dev/null +++ b/nicegui/elements/lib/codemirror/mbox-z_N2Mo3d.js @@ -0,0 +1 @@ +var e=["From","Sender","Reply-To","To","Cc","Bcc","Message-ID","In-Reply-To","References","Resent-From","Resent-Sender","Resent-To","Resent-Cc","Resent-Bcc","Resent-Message-ID","Return-Path","Received"],n=["Date","Subject","Comments","Keywords","Resent-Date"],r=/^[ \t]/,t=/^From /,a=new RegExp("^("+e.join("|")+"): "),i=new RegExp("^("+n.join("|")+"): "),o=/^[^:]+:/,d=/^[^ ]+@[^ ]+/,m=/^.*?(?=[^ ]+?@[^ ]+)/,s=/^<.*?>/,c=/^.*?(?=<.*>)/;const u={name:"mbox",startState:function(){return{inSeparator:!1,inHeader:!1,emailPermitted:!1,header:null,inHeaders:!1}},token:function(e,n){if(e.sol()){if(n.inSeparator=!1,n.inHeader&&e.match(r))return null;if(n.inHeader=!1,n.header=null,e.match(t))return n.inHeaders=!0,n.inSeparator=!0,"atom";var u,l=!1;return(u=e.match(i))||(l=!0)&&(u=e.match(a))?(n.inHeaders=!0,n.inHeader=!0,n.emailPermitted=l,n.header=u[1],"atom"):n.inHeaders&&(u=e.match(o))?(n.inHeader=!0,n.emailPermitted=!0,n.header=u[1],"atom"):(n.inHeaders=!1,e.skipToEnd(),null)}if(n.inSeparator)return e.match(d)?"link":(e.match(m)||e.skipToEnd(),"atom");if(n.inHeader){var h=function(e){return"Subject"===e?"header":"string"}(n.header);if(n.emailPermitted){if(e.match(s))return h+" link";if(e.match(c))return h}return e.skipToEnd(),h}return e.skipToEnd(),null},blankLine:function(e){e.inHeaders=e.inSeparator=e.inHeader=!1},languageData:{autocomplete:e.concat(n)}};export{u as mbox}; diff --git a/nicegui/elements/lib/codemirror/mirc-DkvFAiy5.js b/nicegui/elements/lib/codemirror/mirc-DkvFAiy5.js new file mode 100644 index 000000000..a396238ae --- /dev/null +++ b/nicegui/elements/lib/codemirror/mirc-DkvFAiy5.js @@ -0,0 +1 @@ +function e(e){for(var i={},$=e.split(" "),r=0;r<$.length;++r)i[$[r]]=!0;return i}var i=e("$! $$ $& $? $+ $abook $abs $active $activecid $activewid $address $addtok $agent $agentname $agentstat $agentver $alias $and $anick $ansi2mirc $aop $appactive $appstate $asc $asctime $asin $atan $avoice $away $awaymsg $awaytime $banmask $base $bfind $binoff $biton $bnick $bvar $bytes $calc $cb $cd $ceil $chan $chanmodes $chantypes $chat $chr $cid $clevel $click $cmdbox $cmdline $cnick $color $com $comcall $comchan $comerr $compact $compress $comval $cos $count $cr $crc $creq $crlf $ctime $ctimer $ctrlenter $date $day $daylight $dbuh $dbuw $dccignore $dccport $dde $ddename $debug $decode $decompress $deltok $devent $dialog $did $didreg $didtok $didwm $disk $dlevel $dll $dllcall $dname $dns $duration $ebeeps $editbox $emailaddr $encode $error $eval $event $exist $feof $ferr $fgetc $file $filename $filtered $finddir $finddirn $findfile $findfilen $findtok $fline $floor $fopen $fread $fserve $fulladdress $fulldate $fullname $fullscreen $get $getdir $getdot $gettok $gmt $group $halted $hash $height $hfind $hget $highlight $hnick $hotline $hotlinepos $ial $ialchan $ibl $idle $iel $ifmatch $ignore $iif $iil $inelipse $ini $inmidi $inpaste $inpoly $input $inrect $inroundrect $insong $instok $int $inwave $ip $isalias $isbit $isdde $isdir $isfile $isid $islower $istok $isupper $keychar $keyrpt $keyval $knick $lactive $lactivecid $lactivewid $left $len $level $lf $line $lines $link $lock $lock $locked $log $logstamp $logstampfmt $longfn $longip $lower $ltimer $maddress $mask $matchkey $matchtok $md5 $me $menu $menubar $menucontext $menutype $mid $middir $mircdir $mircexe $mircini $mklogfn $mnick $mode $modefirst $modelast $modespl $mouse $msfile $network $newnick $nick $nofile $nopath $noqt $not $notags $notify $null $numeric $numok $oline $onpoly $opnick $or $ord $os $passivedcc $pic $play $pnick $port $portable $portfree $pos $prefix $prop $protect $puttok $qt $query $rand $r $rawmsg $read $readomo $readn $regex $regml $regsub $regsubex $remove $remtok $replace $replacex $reptok $result $rgb $right $round $scid $scon $script $scriptdir $scriptline $sdir $send $server $serverip $sfile $sha1 $shortfn $show $signal $sin $site $sline $snick $snicks $snotify $sock $sockbr $sockerr $sockname $sorttok $sound $sqrt $ssl $sreq $sslready $status $strip $str $stripped $syle $submenu $switchbar $tan $target $ticks $time $timer $timestamp $timestampfmt $timezone $tip $titlebar $toolbar $treebar $trust $ulevel $ulist $upper $uptime $url $usermode $v1 $v2 $var $vcmd $vcmdstat $vcmdver $version $vnick $vol $wid $width $wildsite $wildtok $window $wrap $xor"),$=e("abook ajinvite alias aline ame amsg anick aop auser autojoin avoice away background ban bcopy beep bread break breplace bset btrunc bunset bwrite channel clear clearall cline clipboard close cnick color comclose comopen comreg continue copy creq ctcpreply ctcps dcc dccserver dde ddeserver debug dec describe dialog did didtok disable disconnect dlevel dline dll dns dqwindow drawcopy drawdot drawfill drawline drawpic drawrect drawreplace drawrot drawsave drawscroll drawtext ebeeps echo editbox emailaddr enable events exit fclose filter findtext finger firewall flash flist flood flush flushini font fopen fseek fsend fserve fullname fwrite ghide gload gmove gopts goto gplay gpoint gqreq groups gshow gsize gstop gtalk gunload hadd halt haltdef hdec hdel help hfree hinc hload hmake hop hsave ial ialclear ialmark identd if ignore iline inc invite iuser join kick linesep links list load loadbuf localinfo log mdi me menubar mkdir mnick mode msg nick noop notice notify omsg onotice part partall pdcc perform play playctrl pop protect pvoice qme qmsg query queryn quit raw reload remini remote remove rename renwin reseterror resetidle return rlevel rline rmdir run ruser save savebuf saveini say scid scon server set showmirc signam sline sockaccept sockclose socklist socklisten sockmark sockopen sockpause sockread sockrename sockudp sockwrite sound speak splay sreq strip switchbar timer timestamp titlebar tnick tokenize toolbar topic tray treebar ulist unload unset unsetall updatenl url uwho var vcadd vcmd vcrem vol while whois window winhelp write writeint if isalnum isalpha isaop isavoice isban ischan ishop isignore isin isincs isletter islower isnotify isnum ison isop isprotect isreg isupper isvoice iswm iswmcs elseif else goto menu nicklist status title icon size option text edit button check radio box scroll list combo link tab item"),r=e("if elseif else and not or eq ne in ni for foreach while switch"),t=/[+\-*&%=<>!?^\/\|]/;function a(e,i,$){return i.tokenize=$,$(e,i)}function n(e,n){var l=n.beforeParams;n.beforeParams=!1;var c=e.next();if(/[\[\]{}\(\),\.]/.test(c))return"("==c&&l?n.inParams=!0:")"==c&&(n.inParams=!1),null;if(/\d/.test(c))return e.eatWhile(/[\w\.]/),"number";if("\\"==c)return e.eat("\\"),e.eat(/./),"number";if("/"==c&&e.eat("*"))return a(e,n,o);if(";"==c&&e.match(/ *\( *\(/))return a(e,n,s);if(";"!=c||n.inParams){if('"'==c)return e.eat(/"/),"keyword";if("$"==c)return e.eatWhile(/[$_a-z0-9A-Z\.:]/),i&&i.propertyIsEnumerable(e.current().toLowerCase())?"keyword":(n.beforeParams=!0,"builtin");if("%"==c)return e.eatWhile(/[^,\s()]/),n.beforeParams=!0,"string";if(t.test(c))return e.eatWhile(t),"operator";e.eatWhile(/[\w\$_{}]/);var d=e.current().toLowerCase();return $&&$.propertyIsEnumerable(d)?"keyword":r&&r.propertyIsEnumerable(d)?(n.beforeParams=!0,"keyword"):null}return e.skipToEnd(),"comment"}function o(e,i){for(var $,r=!1;$=e.next();){if("/"==$&&r){i.tokenize=n;break}r="*"==$}return"comment"}function s(e,i){for(var $,r=0;$=e.next();){if(";"==$&&2==r){i.tokenize=n;break}")"==$?r++:" "!=$&&(r=0)}return"meta"}const l={name:"mirc",startState:function(){return{tokenize:n,beforeParams:!1,inParams:!1}},token:function(e,i){return e.eatSpace()?null:i.tokenize(e,i)}};export{l as mirc}; diff --git a/nicegui/elements/lib/codemirror/mllike-B8DYu8SS.js b/nicegui/elements/lib/codemirror/mllike-B8DYu8SS.js new file mode 100644 index 000000000..ecb55824e --- /dev/null +++ b/nicegui/elements/lib/codemirror/mllike-B8DYu8SS.js @@ -0,0 +1 @@ +function e(e){var r={as:"keyword",do:"keyword",else:"keyword",end:"keyword",exception:"keyword",fun:"keyword",functor:"keyword",if:"keyword",in:"keyword",include:"keyword",let:"keyword",of:"keyword",open:"keyword",rec:"keyword",struct:"keyword",then:"keyword",type:"keyword",val:"keyword",while:"keyword",with:"keyword"},o=e.extraWords||{};for(var t in o)o.hasOwnProperty(t)&&(r[t]=e.extraWords[t]);var n=[];for(var i in r)n.push(i);function d(o,t){var n=o.next();if('"'===n)return t.tokenize=y,t.tokenize(o,t);if("{"===n&&o.eat("|"))return t.longString=!0,t.tokenize=k,t.tokenize(o,t);if("("===n&&o.match(/^\*(?!\))/))return t.commentLevel++,t.tokenize=w,t.tokenize(o,t);if("~"===n||"?"===n)return o.eatWhile(/\w/),"variableName.special";if("`"===n)return o.eatWhile(/\w/),"quote";if("/"===n&&e.slashComments&&o.eat("/"))return o.skipToEnd(),"comment";if(/\d/.test(n))return"0"===n&&o.eat(/[bB]/)&&o.eatWhile(/[01]/),"0"===n&&o.eat(/[xX]/)&&o.eatWhile(/[0-9a-fA-F]/),"0"===n&&o.eat(/[oO]/)?o.eatWhile(/[0-7]/):(o.eatWhile(/[\d_]/),o.eat(".")&&o.eatWhile(/[\d]/),o.eat(/[eE]/)&&o.eatWhile(/[\d\-+]/)),"number";if(/[+\-*&%=<>!?|@\.~:]/.test(n))return"operator";if(/[\w\xa1-\uffff]/.test(n)){o.eatWhile(/[\w\xa1-\uffff]/);var i=o.current();return r.hasOwnProperty(i)?r[i]:"variable"}return null}function y(e,r){for(var o,t=!1,n=!1;null!=(o=e.next());){if('"'===o&&!n){t=!0;break}n=!n&&"\\"===o}return t&&!n&&(r.tokenize=d),"string"}function w(e,r){for(var o,t;r.commentLevel>0&&null!=(t=e.next());)"("===o&&"*"===t&&r.commentLevel++,"*"===o&&")"===t&&r.commentLevel--,o=t;return r.commentLevel<=0&&(r.tokenize=d),"comment"}function k(e,r){for(var o,t;r.longString&&null!=(t=e.next());)"|"===o&&"}"===t&&(r.longString=!1),o=t;return r.longString||(r.tokenize=d),"string"}return{startState:function(){return{tokenize:d,commentLevel:0,longString:!1}},token:function(e,r){return e.eatSpace()?null:r.tokenize(e,r)},languageData:{autocomplete:n,commentTokens:{line:e.slashComments?"//":void 0,block:{open:"(*",close:"*)"}}}}}const r=e({name:"ocaml",extraWords:{and:"keyword",assert:"keyword",begin:"keyword",class:"keyword",constraint:"keyword",done:"keyword",downto:"keyword",external:"keyword",function:"keyword",initializer:"keyword",lazy:"keyword",match:"keyword",method:"keyword",module:"keyword",mutable:"keyword",new:"keyword",nonrec:"keyword",object:"keyword",private:"keyword",sig:"keyword",to:"keyword",try:"keyword",value:"keyword",virtual:"keyword",when:"keyword",raise:"builtin",failwith:"builtin",true:"builtin",false:"builtin",asr:"builtin",land:"builtin",lor:"builtin",lsl:"builtin",lsr:"builtin",lxor:"builtin",mod:"builtin",or:"builtin",raise_notrace:"builtin",trace:"builtin",exit:"builtin",print_string:"builtin",print_endline:"builtin",int:"type",float:"type",bool:"type",char:"type",string:"type",unit:"type",List:"builtin"}}),o=e({name:"fsharp",extraWords:{abstract:"keyword",assert:"keyword",base:"keyword",begin:"keyword",class:"keyword",default:"keyword",delegate:"keyword","do!":"keyword",done:"keyword",downcast:"keyword",downto:"keyword",elif:"keyword",extern:"keyword",finally:"keyword",for:"keyword",function:"keyword",global:"keyword",inherit:"keyword",inline:"keyword",interface:"keyword",internal:"keyword",lazy:"keyword","let!":"keyword",match:"keyword",member:"keyword",module:"keyword",mutable:"keyword",namespace:"keyword",new:"keyword",null:"keyword",override:"keyword",private:"keyword",public:"keyword","return!":"keyword",return:"keyword",select:"keyword",static:"keyword",to:"keyword",try:"keyword",upcast:"keyword","use!":"keyword",use:"keyword",void:"keyword",when:"keyword","yield!":"keyword",yield:"keyword",atomic:"keyword",break:"keyword",checked:"keyword",component:"keyword",const:"keyword",constraint:"keyword",constructor:"keyword",continue:"keyword",eager:"keyword",event:"keyword",external:"keyword",fixed:"keyword",method:"keyword",mixin:"keyword",object:"keyword",parallel:"keyword",process:"keyword",protected:"keyword",pure:"keyword",sealed:"keyword",tailcall:"keyword",trait:"keyword",virtual:"keyword",volatile:"keyword",List:"builtin",Seq:"builtin",Map:"builtin",Set:"builtin",Option:"builtin",int:"builtin",string:"builtin",not:"builtin",true:"builtin",false:"builtin",raise:"builtin",failwith:"builtin"},slashComments:!0}),t=e({name:"sml",extraWords:{abstype:"keyword",and:"keyword",andalso:"keyword",case:"keyword",datatype:"keyword",fn:"keyword",handle:"keyword",infix:"keyword",infixr:"keyword",local:"keyword",nonfix:"keyword",op:"keyword",orelse:"keyword",raise:"keyword",withtype:"keyword",eqtype:"keyword",sharing:"keyword",sig:"keyword",signature:"keyword",structure:"keyword",where:"keyword",true:"keyword",false:"keyword",int:"builtin",real:"builtin",string:"builtin",char:"builtin",bool:"builtin"},slashComments:!0});export{o as fSharp,r as oCaml,t as sml}; diff --git a/nicegui/elements/lib/codemirror/modelica-DSrSSXCg.js b/nicegui/elements/lib/codemirror/modelica-DSrSSXCg.js new file mode 100644 index 000000000..cc6198f1f --- /dev/null +++ b/nicegui/elements/lib/codemirror/modelica-DSrSSXCg.js @@ -0,0 +1 @@ +function e(e){for(var t={},n=e.split(" "),r=0;r+\-\/^\[\]]/,l=/(:=|<=|>=|==|<>|\.\+|\.\-|\.\*|\.\/|\.\^)/,a=/[0-9]/,u=/[_a-zA-Z]/;function s(e,t){return e.skipToEnd(),t.tokenize=null,"comment"}function c(e,t){for(var n,r=!1;n=e.next();){if(r&&"/"==n){t.tokenize=null;break}r="*"==n}return"comment"}function k(e,t){for(var n,r=!1;null!=(n=e.next());){if('"'==n&&!r){t.tokenize=null,t.sol=!1;break}r=!r&&"\\"==n}return"string"}function p(e,o){for(e.eatWhile(a);e.eat(a)||e.eat(u););var i=e.current();return!o.sol||"package"!=i&&"model"!=i&&"when"!=i&&"connector"!=i?o.sol&&"end"==i&&o.level>0&&o.level--:o.level++,o.tokenize=null,o.sol=!1,t.propertyIsEnumerable(i)?"keyword":n.propertyIsEnumerable(i)?"builtin":r.propertyIsEnumerable(i)?"atom":"variable"}function f(e,t){for(;e.eat(/[^']/););return t.tokenize=null,t.sol=!1,e.eat("'")?"variable":"error"}function m(e,t){return e.eatWhile(a),e.eat(".")&&e.eatWhile(a),(e.eat("e")||e.eat("E"))&&(e.eat("-")||e.eat("+"),e.eatWhile(a)),t.tokenize=null,t.sol=!1,"number"}const d={name:"modelica",startState:function(){return{tokenize:null,level:0,sol:!0}},token:function(e,t){if(null!=t.tokenize)return t.tokenize(e,t);if(e.sol()&&(t.sol=!0),e.eatSpace())return t.tokenize=null,null;var n=e.next();if("/"==n&&e.eat("/"))t.tokenize=s;else if("/"==n&&e.eat("*"))t.tokenize=c;else{if(l.test(n+e.peek()))return e.next(),t.tokenize=null,"operator";if(i.test(n))return t.tokenize=null,"operator";if(u.test(n))t.tokenize=p;else if("'"==n&&e.peek()&&"'"!=e.peek())t.tokenize=f;else if('"'==n)t.tokenize=k;else{if(!a.test(n))return t.tokenize=null,"error";t.tokenize=m}}return t.tokenize(e,t)},indent:function(e,t,n){if(null!=e.tokenize)return null;var r=e.level;return/(algorithm)/.test(t)&&r--,/(equation)/.test(t)&&r--,/(initial algorithm)/.test(t)&&r--,/(initial equation)/.test(t)&&r--,/(end)/.test(t)&&r--,r>0?n.unit*r:0},languageData:{commentTokens:{line:"//",block:{open:"/*",close:"*/"}},autocomplete:o}};export{d as modelica}; diff --git a/nicegui/elements/lib/codemirror/mscgen-B2igx18G.js b/nicegui/elements/lib/codemirror/mscgen-B2igx18G.js new file mode 100644 index 000000000..c598319b4 --- /dev/null +++ b/nicegui/elements/lib/codemirror/mscgen-B2igx18G.js @@ -0,0 +1 @@ +function t(t){return{name:"mscgen",startState:a,copyState:c,token:(r=t,function(t,e){if(t.match(i(r.brackets),!0,!0))return"bracket";if(!e.inComment){if(t.match(/\/\*[^\*\/]*/,!0,!0))return e.inComment=!0,"comment";if(t.match(i(r.singlecomment),!0,!0))return t.skipToEnd(),"comment"}if(e.inComment)return t.match(/[^\*\/]*\*\//,!0,!0)?e.inComment=!1:t.skipToEnd(),"comment";if(!e.inString&&t.match(/\"(\\\"|[^\"])*/,!0,!0))return e.inString=!0,"string";if(e.inString)return t.match(/[^\"]*\"/,!0,!0)?e.inString=!1:t.skipToEnd(),"string";if(r.keywords&&t.match(n(r.keywords),!0,!0))return"keyword";if(t.match(n(r.options),!0,!0))return"keyword";if(t.match(n(r.arcsWords),!0,!0))return"keyword";if(t.match(i(r.arcsOthers),!0,!0))return"keyword";if(r.operators&&t.match(i(r.operators),!0,!0))return"operator";if(r.constants&&t.match(i(r.constants),!0,!0))return"variable";if(!r.inAttributeList&&r.attributes&&t.match("[",!0,!0))return r.inAttributeList=!0,"bracket";if(r.inAttributeList){if(null!==r.attributes&&t.match(n(r.attributes),!0,!0))return"attribute";if(t.match("]",!0,!0))return r.inAttributeList=!1,"bracket"}return t.next(),null}),languageData:{commentTokens:{line:"#",block:{open:"/*",close:"*/"}}}};var r}const r=t({keywords:["msc"],options:["hscale","width","arcgradient","wordwraparcs"],constants:["true","false","on","off"],attributes:["label","idurl","id","url","linecolor","linecolour","textcolor","textcolour","textbgcolor","textbgcolour","arclinecolor","arclinecolour","arctextcolor","arctextcolour","arctextbgcolor","arctextbgcolour","arcskip"],brackets:["\\{","\\}"],arcsWords:["note","abox","rbox","box"],arcsOthers:["\\|\\|\\|","\\.\\.\\.","---","--","<->","==","<<=>>","<=>","\\.\\.","<<>>","::","<:>","->","=>>","=>",">>",":>","<-","<<=","<=","<<","<:","x-","-x"],singlecomment:["//","#"],operators:["="]}),e=t({keywords:null,options:["hscale","width","arcgradient","wordwraparcs","wordwrapentities","watermark"],constants:["true","false","on","off","auto"],attributes:null,brackets:["\\{","\\}"],arcsWords:["note","abox","rbox","box","alt","else","opt","break","par","seq","strict","neg","critical","ignore","consider","assert","loop","ref","exc"],arcsOthers:["\\|\\|\\|","\\.\\.\\.","---","--","<->","==","<<=>>","<=>","\\.\\.","<<>>","::","<:>","->","=>>","=>",">>",":>","<-","<<=","<=","<<","<:","x-","-x"],singlecomment:["//","#"],operators:["="]}),o=t({keywords:["msc","xu"],options:["hscale","width","arcgradient","wordwraparcs","wordwrapentities","watermark"],constants:["true","false","on","off","auto"],attributes:["label","idurl","id","url","linecolor","linecolour","textcolor","textcolour","textbgcolor","textbgcolour","arclinecolor","arclinecolour","arctextcolor","arctextcolour","arctextbgcolor","arctextbgcolour","arcskip","title","deactivate","activate","activation"],brackets:["\\{","\\}"],arcsWords:["note","abox","rbox","box","alt","else","opt","break","par","seq","strict","neg","critical","ignore","consider","assert","loop","ref","exc"],arcsOthers:["\\|\\|\\|","\\.\\.\\.","---","--","<->","==","<<=>>","<=>","\\.\\.","<<>>","::","<:>","->","=>>","=>",">>",":>","<-","<<=","<=","<<","<:","x-","-x"],singlecomment:["//","#"],operators:["="]});function n(t){return new RegExp("^\\b("+t.join("|")+")\\b","i")}function i(t){return new RegExp("^(?:"+t.join("|")+")","i")}function a(){return{inComment:!1,inString:!1,inAttributeList:!1,inScript:!1}}function c(t){return{inComment:t.inComment,inString:t.inString,inAttributeList:t.inAttributeList,inScript:t.inScript}}export{r as mscgen,e as msgenny,o as xu}; diff --git a/nicegui/elements/lib/codemirror/mumps-zvxmGV4l.js b/nicegui/elements/lib/codemirror/mumps-zvxmGV4l.js new file mode 100644 index 000000000..e301057c6 --- /dev/null +++ b/nicegui/elements/lib/codemirror/mumps-zvxmGV4l.js @@ -0,0 +1 @@ +function e(e){return new RegExp("^(("+e.join(")|(")+"))\\b","i")}var t=new RegExp("^[\\+\\-\\*/&#!_?\\\\<>=\\'\\[\\]]"),$=new RegExp("^(('=)|(<=)|(>=)|('>)|('<)|([[)|(]])|(^$))"),n=new RegExp("^[\\.,:]"),o=new RegExp("[()]"),a=new RegExp("^[%A-Za-z][A-Za-z0-9]*"),r=e(["\\$ascii","\\$char","\\$data","\\$ecode","\\$estack","\\$etrap","\\$extract","\\$find","\\$fnumber","\\$get","\\$horolog","\\$io","\\$increment","\\$job","\\$justify","\\$length","\\$name","\\$next","\\$order","\\$piece","\\$qlength","\\$qsubscript","\\$query","\\$quit","\\$random","\\$reverse","\\$select","\\$stack","\\$test","\\$text","\\$translate","\\$view","\\$x","\\$y","\\$a","\\$c","\\$d","\\$e","\\$ec","\\$es","\\$et","\\$f","\\$fn","\\$g","\\$h","\\$i","\\$j","\\$l","\\$n","\\$na","\\$o","\\$p","\\$q","\\$ql","\\$qs","\\$r","\\$re","\\$s","\\$st","\\$t","\\$tr","\\$v","\\$z"]),c=e(["break","close","do","else","for","goto","halt","hang","if","job","kill","lock","merge","new","open","quit","read","set","tcommit","trollback","tstart","use","view","write","xecute","b","c","d","e","f","g","h","i","j","k","l","m","n","o","q","r","s","tc","tro","ts","u","v","w","x"]);const m={name:"mumps",startState:function(){return{label:!1,commandMode:0}},token:function(e,m){var i=function(e,m){e.sol()&&(m.label=!0,m.commandMode=0);var i=e.peek();return" "==i||"\t"==i?(m.label=!1,0==m.commandMode?m.commandMode=1:(m.commandMode<0||2==m.commandMode)&&(m.commandMode=0)):"."!=i&&m.commandMode>0&&(m.commandMode=":"==i?-1:2),"("!==i&&"\t"!==i||(m.label=!1),";"===i?(e.skipToEnd(),"comment"):e.match(/^[-+]?\d+(\.\d+)?([eE][-+]?\d+)?/)?"number":'"'==i?e.skipTo('"')?(e.next(),"string"):(e.skipToEnd(),"error"):e.match($)||e.match(t)?"operator":e.match(n)?null:o.test(i)?(e.next(),"bracket"):m.commandMode>0&&e.match(c)?"controlKeyword":e.match(r)?"builtin":e.match(a)?"variable":"$"===i||"^"===i?(e.next(),"builtin"):"@"===i?(e.next(),"string.special"):/[\w%]/.test(i)?(e.eatWhile(/[\w%]/),"variable"):(e.next(),"error")}(e,m);return m.label?"tag":i}};export{m as mumps}; diff --git a/nicegui/elements/lib/codemirror/nginx-B4hAVlXN.js b/nicegui/elements/lib/codemirror/nginx-B4hAVlXN.js new file mode 100644 index 000000000..716c9c734 --- /dev/null +++ b/nicegui/elements/lib/codemirror/nginx-B4hAVlXN.js @@ -0,0 +1 @@ +function e(e){for(var _={},t=e.split(" "),r=0;r*\/]/.test(p)?i(null,"select-op"):/[;{}:\[\]]/.test(p)?i(null,p):(e.eatWhile(/[\w\\\-]/),i("variable","variable")):i(null,"compare"):void i(null,"compare")}function o(e,_){for(var t,r=!1;null!=(t=e.next());){if(r&&"/"==t){_.tokenize=a;break}r="*"==t}return i("comment","comment")}function n(e,_){for(var t,r=0;null!=(t=e.next());){if(r>=2&&">"==t){_.tokenize=a;break}r="-"==t?r+1:0}return i("comment","comment")}const c={name:"nginx",startState:function(){return{tokenize:a,baseIndent:0,stack:[]}},token:function(e,t){if(e.eatSpace())return null;_=null;var r=t.tokenize(e,t),s=t.stack[t.stack.length-1];return"hash"==_&&"rule"==s?r="atom":"variable"==r&&("rule"==s?r="number":s&&"@media{"!=s||(r="tag")),"rule"==s&&/^[\{\};]$/.test(_)&&t.stack.pop(),"{"==_?"@media"==s?t.stack[t.stack.length-1]="@media{":t.stack.push("{"):"}"==_?t.stack.pop():"@media"==_?t.stack.push("@media"):"{"==s&&"comment"!=_&&t.stack.push("rule"),r},indent:function(e,_,t){var r=e.stack.length;return/^\}/.test(_)&&(r-="rule"==e.stack[e.stack.length-1]?2:1),e.baseIndent+r*t.unit},languageData:{indentOnInput:/^\s*\}$/}};export{c as nginx}; diff --git a/nicegui/elements/lib/codemirror/nsis-CKXvuz-E.js b/nicegui/elements/lib/codemirror/nsis-CKXvuz-E.js new file mode 100644 index 000000000..00a7feddf --- /dev/null +++ b/nicegui/elements/lib/codemirror/nsis-CKXvuz-E.js @@ -0,0 +1 @@ +import{s as e}from"./simple-mode-VRHOsiuL.js";const t=e({start:[{regex:/(?:[+-]?)(?:0x[\d,a-f]+)|(?:0o[0-7]+)|(?:0b[0,1]+)|(?:\d+.?\d*)/,token:"number"},{regex:/"(?:[^\\"]|\\.)*"?/,token:"string"},{regex:/'(?:[^\\']|\\.)*'?/,token:"string"},{regex:/`(?:[^\\`]|\\.)*`?/,token:"string"},{regex:/^\s*(?:\!(addincludedir|addplugindir|appendfile|assert|cd|define|delfile|echo|error|execute|finalize|getdllversion|gettlbversion|include|insertmacro|macro|macroend|makensis|packhdr|pragma|searchparse|searchreplace|system|tempfile|undef|uninstfinalize|verbose|warning))\b/i,token:"keyword"},{regex:/^\s*(?:\!(if(?:n?def)?|ifmacron?def|macro))\b/i,token:"keyword",indent:!0},{regex:/^\s*(?:\!(else|endif|macroend))\b/i,token:"keyword",dedent:!0},{regex:/^\s*(?:Abort|AddBrandingImage|AddSize|AllowRootDirInstall|AllowSkipFiles|AutoCloseWindow|BGFont|BGGradient|BrandingText|BringToFront|Call|CallInstDLL|Caption|ChangeUI|CheckBitmap|ClearErrors|CompletedText|ComponentText|CopyFiles|CRCCheck|CreateDirectory|CreateFont|CreateShortCut|Delete|DeleteINISec|DeleteINIStr|DeleteRegKey|DeleteRegValue|DetailPrint|DetailsButtonText|DirText|DirVar|DirVerify|EnableWindow|EnumRegKey|EnumRegValue|Exch|Exec|ExecShell|ExecShellWait|ExecWait|ExpandEnvStrings|File|FileBufSize|FileClose|FileErrorText|FileOpen|FileRead|FileReadByte|FileReadUTF16LE|FileReadWord|FileWriteUTF16LE|FileSeek|FileWrite|FileWriteByte|FileWriteWord|FindClose|FindFirst|FindNext|FindWindow|FlushINI|GetCurInstType|GetCurrentAddress|GetDlgItem|GetDLLVersion|GetDLLVersionLocal|GetErrorLevel|GetFileTime|GetFileTimeLocal|GetFullPathName|GetFunctionAddress|GetInstDirError|GetKnownFolderPath|GetLabelAddress|GetTempFileName|GetWinVer|Goto|HideWindow|Icon|IfAbort|IfErrors|IfFileExists|IfRebootFlag|IfRtlLanguage|IfShellVarContextAll|IfSilent|InitPluginsDir|InstallButtonText|InstallColors|InstallDir|InstallDirRegKey|InstProgressFlags|InstType|InstTypeGetText|InstTypeSetText|Int64Cmp|Int64CmpU|Int64Fmt|IntCmp|IntCmpU|IntFmt|IntOp|IntPtrCmp|IntPtrCmpU|IntPtrOp|IsWindow|LangString|LicenseBkColor|LicenseData|LicenseForceSelection|LicenseLangString|LicenseText|LoadAndSetImage|LoadLanguageFile|LockWindow|LogSet|LogText|ManifestDPIAware|ManifestLongPathAware|ManifestMaxVersionTested|ManifestSupportedOS|MessageBox|MiscButtonText|Name|Nop|OutFile|Page|PageCallbacks|PEAddResource|PEDllCharacteristics|PERemoveResource|PESubsysVer|Pop|Push|Quit|ReadEnvStr|ReadINIStr|ReadRegDWORD|ReadRegStr|Reboot|RegDLL|Rename|RequestExecutionLevel|ReserveFile|Return|RMDir|SearchPath|SectionGetFlags|SectionGetInstTypes|SectionGetSize|SectionGetText|SectionIn|SectionSetFlags|SectionSetInstTypes|SectionSetSize|SectionSetText|SendMessage|SetAutoClose|SetBrandingImage|SetCompress|SetCompressor|SetCompressorDictSize|SetCtlColors|SetCurInstType|SetDatablockOptimize|SetDateSave|SetDetailsPrint|SetDetailsView|SetErrorLevel|SetErrors|SetFileAttributes|SetFont|SetOutPath|SetOverwrite|SetRebootFlag|SetRegView|SetShellVarContext|SetSilent|ShowInstDetails|ShowUninstDetails|ShowWindow|SilentInstall|SilentUnInstall|Sleep|SpaceTexts|StrCmp|StrCmpS|StrCpy|StrLen|SubCaption|Target|Unicode|UninstallButtonText|UninstallCaption|UninstallIcon|UninstallSubCaption|UninstallText|UninstPage|UnRegDLL|Var|VIAddVersionKey|VIFileVersion|VIProductVersion|WindowIcon|WriteINIStr|WriteRegBin|WriteRegDWORD|WriteRegExpandStr|WriteRegMultiStr|WriteRegNone|WriteRegStr|WriteUninstaller|XPStyle)\b/i,token:"keyword"},{regex:/^\s*(?:Function|PageEx|Section(?:Group)?)\b/i,token:"keyword",indent:!0},{regex:/^\s*(?:(Function|PageEx|Section(?:Group)?)End)\b/i,token:"keyword",dedent:!0},{regex:/\b(?:ARCHIVE|FILE_ATTRIBUTE_ARCHIVE|FILE_ATTRIBUTE_HIDDEN|FILE_ATTRIBUTE_NORMAL|FILE_ATTRIBUTE_OFFLINE|FILE_ATTRIBUTE_READONLY|FILE_ATTRIBUTE_SYSTEM|FILE_ATTRIBUTE_TEMPORARY|HIDDEN|HKCC|HKCR(32|64)?|HKCU(32|64)?|HKDD|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_DYN_DATA|HKEY_LOCAL_MACHINE|HKEY_PERFORMANCE_DATA|HKEY_USERS|HKLM(32|64)?|HKPD|HKU|IDABORT|IDCANCEL|IDD_DIR|IDD_INST|IDD_INSTFILES|IDD_LICENSE|IDD_SELCOM|IDD_UNINST|IDD_VERIFY|IDIGNORE|IDNO|IDOK|IDRETRY|IDYES|MB_ABORTRETRYIGNORE|MB_DEFBUTTON1|MB_DEFBUTTON2|MB_DEFBUTTON3|MB_DEFBUTTON4|MB_ICONEXCLAMATION|MB_ICONINFORMATION|MB_ICONQUESTION|MB_ICONSTOP|MB_OK|MB_OKCANCEL|MB_RETRYCANCEL|MB_RIGHT|MB_RTLREADING|MB_SETFOREGROUND|MB_TOPMOST|MB_USERICON|MB_YESNO|MB_YESNOCANCEL|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SW_HIDE|SW_SHOWDEFAULT|SW_SHOWMAXIMIZED|SW_SHOWMINIMIZED|SW_SHOWNORMAL|SYSTEM|TEMPORARY)\b/i,token:"atom"},{regex:/\b(?:admin|all|amd64-unicode|auto|both|bottom|bzip2|components|current|custom|directory|false|force|hide|highest|ifdiff|ifnewer|instfiles|lastused|leave|left|license|listonly|lzma|nevershow|none|normal|notset|off|on|right|show|silent|silentlog|textonly|top|true|try|un\.components|un\.custom|un\.directory|un\.instfiles|un\.license|uninstConfirm|user|Win10|Win7|Win8|WinVista|x-86-(ansi|unicode)|zlib)\b/i,token:"builtin"},{regex:/\$\{(?:And(?:If(?:Not)?|Unless)|Break|Case(?:2|3|4|5|Else)?|Continue|Default|Do(?:Until|While)?|Else(?:If(?:Not)?|Unless)?|End(?:If|Select|Switch)|Exit(?:Do|For|While)|For(?:Each)?|If(?:Cmd|Not(?:Then)?|Then)?|Loop(?:Until|While)?|Or(?:If(?:Not)?|Unless)|Select|Switch|Unless|While)\}/i,token:"variable-2",indent:!0},{regex:/\$\{(?:BannerTrimPath|DirState|DriveSpace|Get(BaseName|Drives|ExeName|ExePath|FileAttributes|FileExt|FileName|FileVersion|Options|OptionsS|Parameters|Parent|Root|Size|Time)|Locate|RefreshShellIcons)\}/i,token:"variable-2",dedent:!0},{regex:/\$\{(?:Memento(?:Section(?:Done|End|Restore|Save)?|UnselectedSection))\}/i,token:"variable-2",dedent:!0},{regex:/\$\{(?:Config(?:Read|ReadS|Write|WriteS)|File(?:Join|ReadFromEnd|Recode)|Line(?:Find|Read|Sum)|Text(?:Compare|CompareS)|TrimNewLines)\}/i,token:"variable-2",dedent:!0},{regex:/\$\{(?:(?:At(?:Least|Most)|Is)(?:ServicePack|Win(?:7|8|10|95|98|200(?:0|3|8(?:R2)?)|ME|NT4|Vista|XP))|Is(?:NT|Server))\}/i,token:"variable",dedent:!0},{regex:/\$\{(?:StrFilterS?|Version(?:Compare|Convert)|Word(?:AddS?|Find(?:(?:2|3)X)?S?|InsertS?|ReplaceS?))\}/i,token:"keyword",dedent:!0},{regex:/\$\{(?:RunningX64)\}/i,token:"variable",dedent:!0},{regex:/\$\{(?:Disable|Enable)X64FSRedirection\}/i,token:"keyword",dedent:!0},{regex:/(#|;).*/,token:"comment"},{regex:/\/\*/,token:"comment",next:"comment"},{regex:/[-+\/*=<>!]+/,token:"operator"},{regex:/\$\w[\w\.]*/,token:"variable"},{regex:/\${[\!\w\.:-]+}/,token:"variableName.constant"},{regex:/\$\([\!\w\.:-]+\)/,token:"atom"}],comment:[{regex:/.*?\*\//,token:"comment",next:"start"},{regex:/.*/,token:"comment"}],languageData:{name:"nsis",indentOnInput:/^\s*((Function|PageEx|Section|Section(Group)?)End|(\!(endif|macroend))|\$\{(End(If|Unless|While)|Loop(Until)|Next)\})$/i,commentTokens:{line:"#",block:{open:"/*",close:"*/"}}}});export{t as nsis}; diff --git a/nicegui/elements/lib/codemirror/ntriples-FFvkTduk.js b/nicegui/elements/lib/codemirror/ntriples-FFvkTduk.js new file mode 100644 index 000000000..a72af498e --- /dev/null +++ b/nicegui/elements/lib/codemirror/ntriples-FFvkTduk.js @@ -0,0 +1 @@ +var n=0,t=1,e=2,r=3,i=4,a=5,u=6,o=7,s=8,l=9,c=10,f=11,h=12;function p(p,v){var x,b=p.location;x=b==n&&"<"==v?t:b==n&&"_"==v?e:b==r&&"<"==v?i:b==a&&"<"==v?u:b==a&&"_"==v?o:b==a&&'"'==v?s:b==t&&">"==v||b==e&&" "==v?r:b==i&&">"==v?a:b==u&&">"==v||b==o&&" "==v||b==s&&'"'==v||b==l&&" "==v||b==c&&">"==v?f:b==s&&"@"==v?l:b==s&&"^"==v?c:" "!=v||b!=n&&b!=r&&b!=a&&b!=f?b==f&&"."==v?n:h:b,p.location=x}const v={name:"ntriples",startState:function(){return{location:n,uris:[],anchors:[],bnodes:[],langs:[],types:[]}},token:function(n,t){var e=n.next();if("<"==e){p(t,e);var r="";return n.eatWhile((function(n){return"#"!=n&&">"!=n&&(r+=n,!0)})),t.uris.push(r),n.match("#",!1)?"variable":(n.next(),p(t,">"),"variable")}if("#"==e){var i="";return n.eatWhile((function(n){return">"!=n&&" "!=n&&(i+=n,!0)})),t.anchors.push(i),"url"}if(">"==e)return p(t,">"),"variable";if("_"==e){p(t,e);var a="";return n.eatWhile((function(n){return" "!=n&&(a+=n,!0)})),t.bnodes.push(a),n.next(),p(t," "),"builtin"}if('"'==e)return p(t,e),n.eatWhile((function(n){return'"'!=n})),n.next(),"@"!=n.peek()&&"^"!=n.peek()&&p(t,'"'),"string";if("@"==e){p(t,"@");var u="";return n.eatWhile((function(n){return" "!=n&&(u+=n,!0)})),t.langs.push(u),n.next(),p(t," "),"string.special"}if("^"==e){n.next(),p(t,"^");var o="";return n.eatWhile((function(n){return">"!=n&&(o+=n,!0)})),t.types.push(o),n.next(),p(t,">"),"variable"}" "==e&&p(t,e),"."==e&&p(t,e)}};export{v as ntriples}; diff --git a/nicegui/elements/lib/codemirror/octave-C4hdQ5Hf.js b/nicegui/elements/lib/codemirror/octave-C4hdQ5Hf.js new file mode 100644 index 000000000..2032ac2a0 --- /dev/null +++ b/nicegui/elements/lib/codemirror/octave-C4hdQ5Hf.js @@ -0,0 +1 @@ +function e(e){return new RegExp("^(("+e.join(")|(")+"))\\b")}var n=new RegExp("^[\\+\\-\\*/&|\\^~<>!@'\\\\]"),t=new RegExp("^[\\(\\[\\{\\},:=;\\.]"),r=new RegExp("^((==)|(~=)|(<=)|(>=)|(<<)|(>>)|(\\.[\\+\\-\\*/\\^\\\\]))"),i=new RegExp("^((!=)|(\\+=)|(\\-=)|(\\*=)|(/=)|(&=)|(\\|=)|(\\^=))"),a=new RegExp("^((>>=)|(<<=))"),o=new RegExp("^[\\]\\)]"),c=new RegExp("^[_A-Za-z¡-￿][_A-Za-z0-9¡-￿]*"),m=e(["error","eval","function","abs","acos","atan","asin","cos","cosh","exp","log","prod","sum","log10","max","min","sign","sin","sinh","sqrt","tan","reshape","break","zeros","default","margin","round","ones","rand","syn","ceil","floor","size","clear","zeros","eye","mean","std","cov","det","eig","inv","norm","rank","trace","expm","logm","sqrtm","linspace","plot","title","xlabel","ylabel","legend","text","grid","meshgrid","mesh","num2str","fft","ifft","arrayfun","cellfun","input","fliplr","flipud","ismember"]),s=e(["return","case","switch","else","elseif","end","endif","endfunction","if","otherwise","do","for","while","try","catch","classdef","properties","events","methods","global","persistent","endfor","endwhile","printf","sprintf","disp","until","continue","pkg"]);function u(e,n){return e.sol()||"'"!==e.peek()?(n.tokenize=f,f(e,n)):(e.next(),n.tokenize=f,"operator")}function l(e,n){return e.match(/^.*%}/)?(n.tokenize=f,"comment"):(e.skipToEnd(),"comment")}function f(p,d){if(p.eatSpace())return null;if(p.match("%{"))return d.tokenize=l,p.skipToEnd(),"comment";if(p.match(/^[%#]/))return p.skipToEnd(),"comment";if(p.match(/^[0-9\.+-]/,!1)){if(p.match(/^[+-]?0x[0-9a-fA-F]+[ij]?/))return p.tokenize=f,"number";if(p.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?[ij]?/))return"number";if(p.match(/^[+-]?\d+([EeDd][+-]?\d+)?[ij]?/))return"number"}if(p.match(e(["nan","NaN","inf","Inf"])))return"number";var h=p.match(/^"(?:[^"]|"")*("|$)/)||p.match(/^'(?:[^']|'')*('|$)/);return h?h[1]?"string":"error":p.match(s)?"keyword":p.match(m)?"builtin":p.match(c)?"variable":p.match(n)||p.match(r)?"operator":p.match(t)||p.match(i)||p.match(a)?null:p.match(o)?(d.tokenize=u,null):(p.next(),"error")}const p={name:"octave",startState:function(){return{tokenize:f}},token:function(e,n){var t=n.tokenize(e,n);return"number"!==t&&"variable"!==t||(n.tokenize=u),t},languageData:{commentTokens:{line:"%"}}};export{p as octave}; diff --git a/nicegui/elements/lib/codemirror/oz-qQq7irPq.js b/nicegui/elements/lib/codemirror/oz-qQq7irPq.js new file mode 100644 index 000000000..bc229f1a6 --- /dev/null +++ b/nicegui/elements/lib/codemirror/oz-qQq7irPq.js @@ -0,0 +1 @@ +function e(e){return new RegExp("^(("+e.join(")|(")+"))\\b")}var t=/[\^@!\|<>#~\.\*\-\+\\/,=]/,n=/(<-)|(:=)|(=<)|(>=)|(<=)|(<:)|(>:)|(=:)|(\\=)|(\\=:)|(!!)|(==)|(::)/,r=/(:::)|(\.\.\.)|(=<:)|(>=:)/,a=["in","then","else","of","elseof","elsecase","elseif","catch","finally","with","require","prepare","import","export","define","do"],o=["end"],i=e(["true","false","nil","unit"]),c=e(["andthen","at","attr","declare","feat","from","lex","mod","div","mode","orelse","parser","prod","prop","scanner","self","syn","token"]),u=e(["local","proc","fun","case","class","if","cond","or","dis","choice","not","thread","try","raise","lock","for","suchthat","meth","functor"]),s=e(a),f=e(o);function l(e,a){if(e.eatSpace())return null;if(e.match(/[{}]/))return"bracket";if(e.match("[]"))return"keyword";if(e.match(r)||e.match(n))return"operator";if(e.match(i))return"atom";var o=e.match(u);if(o)return a.doInCurrentLine?a.doInCurrentLine=!1:a.currentIndent++,"proc"==o[0]||"fun"==o[0]?a.tokenize=m:"class"==o[0]?a.tokenize=d:"meth"==o[0]&&(a.tokenize=h),"keyword";if(e.match(s)||e.match(c))return"keyword";if(e.match(f))return a.currentIndent--,"keyword";var p,z=e.next();if('"'==z||"'"==z)return a.tokenize=(p=z,function(e,t){for(var n,r=!1,a=!1;null!=(n=e.next());){if(n==p&&!r){a=!0;break}r=!r&&"\\"==n}return!a&&r||(t.tokenize=l),"string"}),a.tokenize(e,a);if(/[~\d]/.test(z)){if("~"==z){if(!/^[0-9]/.test(e.peek()))return null;if("0"==e.next()&&e.match(/^[xX][0-9a-fA-F]+/)||e.match(/^[0-9]*(\.[0-9]+)?([eE][~+]?[0-9]+)?/))return"number"}return"0"==z&&e.match(/^[xX][0-9a-fA-F]+/)||e.match(/^[0-9]*(\.[0-9]+)?([eE][~+]?[0-9]+)?/)?"number":null}return"%"==z?(e.skipToEnd(),"comment"):"/"==z&&e.eat("*")?(a.tokenize=k,k(e,a)):t.test(z)?"operator":(e.eatWhile(/\w/),"variable")}function d(e,t){return e.eatSpace()?null:(e.match(/([A-Z][A-Za-z0-9_]*)|(`.+`)/),t.tokenize=l,"type")}function h(e,t){return e.eatSpace()?null:(e.match(/([a-zA-Z][A-Za-z0-9_]*)|(`.+`)/),t.tokenize=l,"def")}function m(e,t){return e.eatSpace()?null:!t.hasPassedFirstStage&&e.eat("{")?(t.hasPassedFirstStage=!0,"bracket"):t.hasPassedFirstStage?(e.match(/([A-Z][A-Za-z0-9_]*)|(`.+`)|\$/),t.hasPassedFirstStage=!1,t.tokenize=l,"def"):(t.tokenize=l,null)}function k(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=l;break}r="*"==n}return"comment"}const p={name:"oz",startState:function(){return{tokenize:l,currentIndent:0,doInCurrentLine:!1,hasPassedFirstStage:!1}},token:function(e,t){return e.sol()&&(t.doInCurrentLine=0),t.tokenize(e,t)},indent:function(e,t,n){var r=t.replace(/^\s+|\s+$/g,"");return r.match(f)||r.match(s)||r.match(/(\[])/)?n.unit*(e.currentIndent-1):e.currentIndent<0?0:e.currentIndent*n.unit},languageData:{indentOnInut:(z=a.concat(o),new RegExp("[\\[\\]]|("+z.join("|")+")$")),commentTokens:{line:"%",block:{open:"/*",close:"*/"}}}};var z;export{p as oz}; diff --git a/nicegui/elements/lib/codemirror/pascal-CZ0JYm71.js b/nicegui/elements/lib/codemirror/pascal-CZ0JYm71.js new file mode 100644 index 000000000..1496cb5a1 --- /dev/null +++ b/nicegui/elements/lib/codemirror/pascal-CZ0JYm71.js @@ -0,0 +1 @@ +var e=function(e){for(var t={},r=e.split(" "),n=0;n!?|\/]/;function n(n,o){var l,s=n.next();if("#"==s&&o.startOfLine)return n.skipToEnd(),"meta";if('"'==s||"'"==s)return o.tokenize=(l=s,function(e,t){for(var r,n=!1,a=!1;null!=(r=e.next());){if(r==l&&!n){a=!0;break}n=!n&&"\\"==r}return!a&&n||(t.tokenize=null),"string"}),o.tokenize(n,o);if("("==s&&n.eat("*"))return o.tokenize=a,a(n,o);if("{"==s)return o.tokenize=i,i(n,o);if(/[\[\]\(\),;\:\.]/.test(s))return null;if(/\d/.test(s))return n.eatWhile(/[\w\.]/),"number";if("/"==s&&n.eat("/"))return n.skipToEnd(),"comment";if(r.test(s))return n.eatWhile(r),"operator";n.eatWhile(/[\w\$_]/);var u=n.current();return e.propertyIsEnumerable(u)?"keyword":t.propertyIsEnumerable(u)?"atom":"variable"}function a(e,t){for(var r,n=!1;r=e.next();){if(")"==r&&n){t.tokenize=null;break}n="*"==r}return"comment"}function i(e,t){for(var r;r=e.next();)if("}"==r){t.tokenize=null;break}return"comment"}const o={name:"pascal",startState:function(){return{tokenize:null}},token:function(e,t){if(e.eatSpace())return null;var r=(t.tokenize||n)(e,t);return r},languageData:{indentOnInput:/^\s*[{}]$/,commentTokens:{block:{open:"(*",close:"*)"}}}};export{o as pascal}; diff --git a/nicegui/elements/lib/codemirror/perl-tdMlh9QA.js b/nicegui/elements/lib/codemirror/perl-tdMlh9QA.js new file mode 100644 index 000000000..0ac3b53e8 --- /dev/null +++ b/nicegui/elements/lib/codemirror/perl-tdMlh9QA.js @@ -0,0 +1 @@ +function e(e,t){return e.string.charAt(e.pos+(t||0))}function t(e,t){if(t){var r=e.pos-t;return e.string.substr(r>=0?r:0,t)}return e.string.substr(0,e.pos-1)}function r(e,t){var r=e.string.length,n=r-e.pos+1;return e.string.substr(e.pos,t&&t=(r=e.string.length-1)?e.pos=r:e.pos=n}var i={"->":4,"++":4,"--":4,"**":4,"=~":4,"!~":4,"*":4,"/":4,"%":4,x:4,"+":4,"-":4,".":4,"<<":4,">>":4,"<":4,">":4,"<=":4,">=":4,lt:4,gt:4,le:4,ge:4,"==":4,"!=":4,"<=>":4,eq:4,ne:4,cmp:4,"~~":4,"&":4,"|":4,"^":4,"&&":4,"||":4,"//":4,"..":4,"...":4,"?":4,":":4,"=":4,"+=":4,"-=":4,"*=":4,",":4,"=>":4,"::":4,not:4,and:4,or:4,xor:4,BEGIN:[5,1],END:[5,1],PRINT:[5,1],PRINTF:[5,1],GETC:[5,1],READ:[5,1],READLINE:[5,1],DESTROY:[5,1],TIE:[5,1],TIEHANDLE:[5,1],UNTIE:[5,1],STDIN:5,STDIN_TOP:5,STDOUT:5,STDOUT_TOP:5,STDERR:5,STDERR_TOP:5,$ARG:5,$_:5,"@ARG":5,"@_":5,$LIST_SEPARATOR:5,'$"':5,$PROCESS_ID:5,$PID:5,$$:5,$REAL_GROUP_ID:5,$GID:5,"$(":5,$EFFECTIVE_GROUP_ID:5,$EGID:5,"$)":5,$PROGRAM_NAME:5,$0:5,$SUBSCRIPT_SEPARATOR:5,$SUBSEP:5,"$;":5,$REAL_USER_ID:5,$UID:5,"$<":5,$EFFECTIVE_USER_ID:5,$EUID:5,"$>":5,$a:5,$b:5,$COMPILING:5,"$^C":5,$DEBUGGING:5,"$^D":5,"${^ENCODING}":5,$ENV:5,"%ENV":5,$SYSTEM_FD_MAX:5,"$^F":5,"@F":5,"${^GLOBAL_PHASE}":5,"$^H":5,"%^H":5,"@INC":5,"%INC":5,$INPLACE_EDIT:5,"$^I":5,"$^M":5,$OSNAME:5,"$^O":5,"${^OPEN}":5,$PERLDB:5,"$^P":5,$SIG:5,"%SIG":5,$BASETIME:5,"$^T":5,"${^TAINT}":5,"${^UNICODE}":5,"${^UTF8CACHE}":5,"${^UTF8LOCALE}":5,$PERL_VERSION:5,"$^V":5,"${^WIN32_SLOPPY_STAT}":5,$EXECUTABLE_NAME:5,"$^X":5,$1:5,$MATCH:5,"$&":5,"${^MATCH}":5,$PREMATCH:5,"$`":5,"${^PREMATCH}":5,$POSTMATCH:5,"$'":5,"${^POSTMATCH}":5,$LAST_PAREN_MATCH:5,"$+":5,$LAST_SUBMATCH_RESULT:5,"$^N":5,"@LAST_MATCH_END":5,"@+":5,"%LAST_PAREN_MATCH":5,"%+":5,"@LAST_MATCH_START":5,"@-":5,"%LAST_MATCH_START":5,"%-":5,$LAST_REGEXP_CODE_RESULT:5,"$^R":5,"${^RE_DEBUG_FLAGS}":5,"${^RE_TRIE_MAXBUF}":5,$ARGV:5,"@ARGV":5,ARGV:5,ARGVOUT:5,$OUTPUT_FIELD_SEPARATOR:5,$OFS:5,"$,":5,$INPUT_LINE_NUMBER:5,$NR:5,"$.":5,$INPUT_RECORD_SEPARATOR:5,$RS:5,"$/":5,$OUTPUT_RECORD_SEPARATOR:5,$ORS:5,"$\\":5,$OUTPUT_AUTOFLUSH:5,"$|":5,$ACCUMULATOR:5,"$^A":5,$FORMAT_FORMFEED:5,"$^L":5,$FORMAT_PAGE_NUMBER:5,"$%":5,$FORMAT_LINES_LEFT:5,"$-":5,$FORMAT_LINE_BREAK_CHARACTERS:5,"$:":5,$FORMAT_LINES_PER_PAGE:5,"$=":5,$FORMAT_TOP_NAME:5,"$^":5,$FORMAT_NAME:5,"$~":5,"${^CHILD_ERROR_NATIVE}":5,$EXTENDED_OS_ERROR:5,"$^E":5,$EXCEPTIONS_BEING_CAUGHT:5,"$^S":5,$WARNING:5,"$^W":5,"${^WARNING_BITS}":5,$OS_ERROR:5,$ERRNO:5,"$!":5,"%OS_ERROR":5,"%ERRNO":5,"%!":5,$CHILD_ERROR:5,"$?":5,$EVAL_ERROR:5,"$@":5,$OFMT:5,"$#":5,"$*":5,$ARRAY_BASE:5,"$[":5,$OLD_PERL_VERSION:5,"$]":5,if:[1,1],elsif:[1,1],else:[1,1],while:[1,1],unless:[1,1],for:[1,1],foreach:[1,1],abs:1,accept:1,alarm:1,atan2:1,bind:1,binmode:1,bless:1,bootstrap:1,break:1,caller:1,chdir:1,chmod:1,chomp:1,chop:1,chown:1,chr:1,chroot:1,close:1,closedir:1,connect:1,continue:[1,1],cos:1,crypt:1,dbmclose:1,dbmopen:1,default:1,defined:1,delete:1,die:1,do:1,dump:1,each:1,endgrent:1,endhostent:1,endnetent:1,endprotoent:1,endpwent:1,endservent:1,eof:1,eval:1,exec:1,exists:1,exit:1,exp:1,fcntl:1,fileno:1,flock:1,fork:1,format:1,formline:1,getc:1,getgrent:1,getgrgid:1,getgrnam:1,gethostbyaddr:1,gethostbyname:1,gethostent:1,getlogin:1,getnetbyaddr:1,getnetbyname:1,getnetent:1,getpeername:1,getpgrp:1,getppid:1,getpriority:1,getprotobyname:1,getprotobynumber:1,getprotoent:1,getpwent:1,getpwnam:1,getpwuid:1,getservbyname:1,getservbyport:1,getservent:1,getsockname:1,getsockopt:1,given:1,glob:1,gmtime:1,goto:1,grep:1,hex:1,import:1,index:1,int:1,ioctl:1,join:1,keys:1,kill:1,last:1,lc:1,lcfirst:1,length:1,link:1,listen:1,local:2,localtime:1,lock:1,log:1,lstat:1,m:null,map:1,mkdir:1,msgctl:1,msgget:1,msgrcv:1,msgsnd:1,my:2,new:1,next:1,no:1,oct:1,open:1,opendir:1,ord:1,our:2,pack:1,package:1,pipe:1,pop:1,pos:1,print:1,printf:1,prototype:1,push:1,q:null,qq:null,qr:null,quotemeta:null,qw:null,qx:null,rand:1,read:1,readdir:1,readline:1,readlink:1,readpipe:1,recv:1,redo:1,ref:1,rename:1,require:1,reset:1,return:1,reverse:1,rewinddir:1,rindex:1,rmdir:1,s:null,say:1,scalar:1,seek:1,seekdir:1,select:1,semctl:1,semget:1,semop:1,send:1,setgrent:1,sethostent:1,setnetent:1,setpgrp:1,setpriority:1,setprotoent:1,setpwent:1,setservent:1,setsockopt:1,shift:1,shmctl:1,shmget:1,shmread:1,shmwrite:1,shutdown:1,sin:1,sleep:1,socket:1,socketpair:1,sort:1,splice:1,split:1,sprintf:1,sqrt:1,srand:1,stat:1,state:1,study:1,sub:1,substr:1,symlink:1,syscall:1,sysopen:1,sysread:1,sysseek:1,system:1,syswrite:1,tell:1,telldir:1,tie:1,tied:1,time:1,times:1,tr:null,truncate:1,uc:1,ucfirst:1,umask:1,undef:1,unlink:1,unpack:1,unshift:1,untie:1,use:1,utime:1,values:1,vec:1,wait:1,waitpid:1,wantarray:1,warn:1,when:1,write:1,y:null},s="string.special",a=/[goseximacplud]/;function o(e,t,r,n,i){return t.chain=null,t.style=null,t.tail=null,t.tokenize=function(e,t){for(var s,a=!1,o=0;s=e.next();){if(s===r[o]&&!a)return void 0!==r[++o]?(t.chain=r[o],t.style=n,t.tail=i):i&&e.eatWhile(i),t.tokenize=$,n;a=!a&&"\\"==s}return n},t.tokenize(e,t)}function u(e,t,r){return t.tokenize=function(e,t){return e.string==r&&(t.tokenize=$),e.skipToEnd(),"string"},t.tokenize(e,t)}function $($,l){if($.eatSpace())return null;if(l.chain)return o($,l,l.chain,l.style,l.tail);if($.match(/^(\-?((\d[\d_]*)?\.\d+(e[+-]?\d+)?|\d+\.\d*)|0x[\da-fA-F_]+|0b[01_]+|\d[\d_]*(e[+-]?\d+)?)/))return"number";if($.match(/^<<(?=[_a-zA-Z])/))return $.eatWhile(/\w/),u($,l,$.current().substr(2));if($.sol()&&$.match(/^\=item(?!\w)/))return u($,l,"=cut");var E=$.next();if('"'==E||"'"==E){if(t($,3)=="<<"+E){var f=$.pos;$.eatWhile(/\w/);var R=$.current().substr(1);if(R&&$.eat(E))return u($,l,R);$.pos=f}return o($,l,[E],"string")}if("q"==E&&(!(_=e($,-2))||!/\w/.test(_)))if("x"==(_=e($,0))){if("("==(_=e($,1)))return n($,2),o($,l,[")"],s,a);if("["==_)return n($,2),o($,l,["]"],s,a);if("{"==_)return n($,2),o($,l,["}"],s,a);if("<"==_)return n($,2),o($,l,[">"],s,a);if(/[\^'"!~\/]/.test(_))return n($,1),o($,l,[$.eat(_)],s,a)}else if("q"==_){if("("==(_=e($,1)))return n($,2),o($,l,[")"],"string");if("["==_)return n($,2),o($,l,["]"],"string");if("{"==_)return n($,2),o($,l,["}"],"string");if("<"==_)return n($,2),o($,l,[">"],"string");if(/[\^'"!~\/]/.test(_))return n($,1),o($,l,[$.eat(_)],"string")}else if("w"==_){if("("==(_=e($,1)))return n($,2),o($,l,[")"],"bracket");if("["==_)return n($,2),o($,l,["]"],"bracket");if("{"==_)return n($,2),o($,l,["}"],"bracket");if("<"==_)return n($,2),o($,l,[">"],"bracket");if(/[\^'"!~\/]/.test(_))return n($,1),o($,l,[$.eat(_)],"bracket")}else if("r"==_){if("("==(_=e($,1)))return n($,2),o($,l,[")"],s,a);if("["==_)return n($,2),o($,l,["]"],s,a);if("{"==_)return n($,2),o($,l,["}"],s,a);if("<"==_)return n($,2),o($,l,[">"],s,a);if(/[\^'"!~\/]/.test(_))return n($,1),o($,l,[$.eat(_)],s,a)}else if(/[\^'"!~\/(\[{<]/.test(_)){if("("==_)return n($,1),o($,l,[")"],"string");if("["==_)return n($,1),o($,l,["]"],"string");if("{"==_)return n($,1),o($,l,["}"],"string");if("<"==_)return n($,1),o($,l,[">"],"string");if(/[\^'"!~\/]/.test(_))return o($,l,[$.eat(_)],"string")}if("m"==E&&((!(_=e($,-2))||!/\w/.test(_))&&(_=$.eat(/[(\[{<\^'"!~\/]/)))){if(/[\^'"!~\/]/.test(_))return o($,l,[_],s,a);if("("==_)return o($,l,[")"],s,a);if("["==_)return o($,l,["]"],s,a);if("{"==_)return o($,l,["}"],s,a);if("<"==_)return o($,l,[">"],s,a)}if("s"==E&&(!(_=/[\/>\]})\w]/.test(e($,-2)))&&(_=$.eat(/[(\[{<\^'"!~\/]/))))return o($,l,"["==_?["]","]"]:"{"==_?["}","}"]:"<"==_?[">",">"]:"("==_?[")",")"]:[_,_],s,a);if("y"==E&&(!(_=/[\/>\]})\w]/.test(e($,-2)))&&(_=$.eat(/[(\[{<\^'"!~\/]/))))return o($,l,"["==_?["]","]"]:"{"==_?["}","}"]:"<"==_?[">",">"]:"("==_?[")",")"]:[_,_],s,a);if("t"==E&&(!(_=/[\/>\]})\w]/.test(e($,-2)))&&(_=$.eat("r"))&&(_=$.eat(/[(\[{<\^'"!~\/]/))))return o($,l,"["==_?["]","]"]:"{"==_?["}","}"]:"<"==_?[">",">"]:"("==_?[")",")"]:[_,_],s,a);if("`"==E)return o($,l,[E],"builtin");if("/"==E)return/~\s*$/.test(t($))?o($,l,[E],s,a):"operator";if("$"==E){f=$.pos;if($.eatWhile(/\d/)||$.eat("{")&&$.eatWhile(/\d/)&&$.eat("}"))return"builtin";$.pos=f}if(/[$@%]/.test(E)){f=$.pos;if($.eat("^")&&$.eat(/[A-Z]/)||!/[@$%&]/.test(e($,-2))&&$.eat(/[=|\\\-#?@;:&`~\^!\[\]*'"$+.,\/<>()]/)){var _=$.current();if(i[_])return"builtin"}$.pos=f}if(/[$@%&]/.test(E)&&($.eatWhile(/[\w$]/)||$.eat("{")&&$.eatWhile(/[\w$]/)&&$.eat("}"))){_=$.current();return i[_]?"builtin":"variable"}if("#"==E&&"$"!=e($,-2))return $.skipToEnd(),"comment";if(/[:+\-\^*$&%@=<>!?|\/~\.]/.test(E)){f=$.pos;if($.eatWhile(/[:+\-\^*$&%@=<>!?|\/~\.]/),i[$.current()])return"operator";$.pos=f}if("_"==E&&1==$.pos){if("_END__"==r($,6))return o($,l,["\0"],"comment");if("_DATA__"==r($,7))return o($,l,["\0"],"builtin");if("_C__"==r($,7))return o($,l,["\0"],"string")}if(/\w/.test(E)){f=$.pos;if("{"==e($,-2)&&("}"==e($,0)||$.eatWhile(/\w/)&&"}"==e($,0)))return"string";$.pos=f}if(/[A-Z]/.test(E)){var T=e($,-2);f=$.pos;if($.eatWhile(/[A-Z_]/),!/[\da-z]/.test(e($,0)))return(_=i[$.current()])?(_[1]&&(_=_[0]),":"!=T?1==_?"keyword":2==_?"def":3==_?"atom":4==_?"operator":5==_?"builtin":"meta":"meta"):"meta";$.pos=f}if(/[a-zA-Z_]/.test(E)){T=e($,-2);return $.eatWhile(/\w/),(_=i[$.current()])?(_[1]&&(_=_[0]),":"!=T?1==_?"keyword":2==_?"def":3==_?"atom":4==_?"operator":5==_?"builtin":"meta":"meta"):"meta"}return null}const l={name:"perl",startState:function(){return{tokenize:$,chain:null,style:null,tail:null}},token:function(e,t){return(t.tokenize||$)(e,t)},languageData:{commentTokens:{line:"#"},wordChars:"$"}};export{l as perl}; diff --git a/nicegui/elements/lib/codemirror/pig-CwGJVRC4.js b/nicegui/elements/lib/codemirror/pig-CwGJVRC4.js new file mode 100644 index 000000000..b704fd29c --- /dev/null +++ b/nicegui/elements/lib/codemirror/pig-CwGJVRC4.js @@ -0,0 +1 @@ +function O(O){for(var T={},E=O.split(" "),I=0;I=&?:\/!|]/;function S(O,T,E){return T.tokenize=E,E(O,T)}function t(O,T){for(var E,I=!1;E=O.next();){if("/"==E&&I){T.tokenize=L;break}I="*"==E}return"comment"}function L(O,T){var E,I=O.next();return'"'==I||"'"==I?S(O,T,(E=I,function(O,T){for(var I,N=!1,A=!1;null!=(I=O.next());){if(I==E&&!N){A=!0;break}N=!N&&"\\"==I}return!A&&N||(T.tokenize=L),"error"})):/[\[\]{}\(\),;\.]/.test(I)?null:/\d/.test(I)?(O.eatWhile(/[\w\.]/),"number"):"/"==I?O.eat("*")?S(O,T,t):(O.eatWhile(R),"operator"):"-"==I?O.eat("-")?(O.skipToEnd(),"comment"):(O.eatWhile(R),"operator"):R.test(I)?(O.eatWhile(R),"operator"):(O.eatWhile(/[\w\$_]/),A&&A.propertyIsEnumerable(O.current().toUpperCase())&&!O.eat(")")&&!O.eat(".")?"keyword":N&&N.propertyIsEnumerable(O.current().toUpperCase())?"builtin":e&&e.propertyIsEnumerable(O.current().toUpperCase())?"type":"variable")}const r={name:"pig",startState:function(){return{tokenize:L,startOfLine:!0}},token:function(O,T){return O.eatSpace()?null:T.tokenize(O,T)},languageData:{autocomplete:(T+I+E).split(" ")}};export{r as pig}; diff --git a/nicegui/elements/lib/codemirror/powershell-D1ly3AHC.js b/nicegui/elements/lib/codemirror/powershell-D1ly3AHC.js new file mode 100644 index 000000000..0b5b4a479 --- /dev/null +++ b/nicegui/elements/lib/codemirror/powershell-D1ly3AHC.js @@ -0,0 +1 @@ +function e(e,t){for(var r=void 0!==(t=t||{}).prefix?t.prefix:"^",n=void 0!==t.suffix?t.suffix:"\\b",o=0;o/],{suffix:""}),a=e([/Add-(Computer|Content|History|Member|PSSnapin|Type)/,/Checkpoint-Computer/,/Clear-(Content|EventLog|History|Host|Item(Property)?|Variable)/,/Compare-Object/,/Complete-Transaction/,/Connect-PSSession/,/ConvertFrom-(Csv|Json|SecureString|StringData)/,/Convert-Path/,/ConvertTo-(Csv|Html|Json|SecureString|Xml)/,/Copy-Item(Property)?/,/Debug-Process/,/Disable-(ComputerRestore|PSBreakpoint|PSRemoting|PSSessionConfiguration)/,/Disconnect-PSSession/,/Enable-(ComputerRestore|PSBreakpoint|PSRemoting|PSSessionConfiguration)/,/(Enter|Exit)-PSSession/,/Export-(Alias|Clixml|Console|Counter|Csv|FormatData|ModuleMember|PSSession)/,/ForEach-Object/,/Format-(Custom|List|Table|Wide)/,new RegExp("Get-(Acl|Alias|AuthenticodeSignature|ChildItem|Command|ComputerRestorePoint|Content|ControlPanelItem|Counter|Credential|Culture|Date|Event|EventLog|EventSubscriber|ExecutionPolicy|FormatData|Help|History|Host|HotFix|Item|ItemProperty|Job|Location|Member|Module|PfxCertificate|Process|PSBreakpoint|PSCallStack|PSDrive|PSProvider|PSSession|PSSessionConfiguration|PSSnapin|Random|Service|TraceSource|Transaction|TypeData|UICulture|Unique|Variable|Verb|WinEvent|WmiObject)"),/Group-Object/,/Import-(Alias|Clixml|Counter|Csv|LocalizedData|Module|PSSession)/,/ImportSystemModules/,/Invoke-(Command|Expression|History|Item|RestMethod|WebRequest|WmiMethod)/,/Join-Path/,/Limit-EventLog/,/Measure-(Command|Object)/,/Move-Item(Property)?/,new RegExp("New-(Alias|Event|EventLog|Item(Property)?|Module|ModuleManifest|Object|PSDrive|PSSession|PSSessionConfigurationFile|PSSessionOption|PSTransportOption|Service|TimeSpan|Variable|WebServiceProxy|WinEvent)"),/Out-(Default|File|GridView|Host|Null|Printer|String)/,/Pause/,/(Pop|Push)-Location/,/Read-Host/,/Receive-(Job|PSSession)/,/Register-(EngineEvent|ObjectEvent|PSSessionConfiguration|WmiEvent)/,/Remove-(Computer|Event|EventLog|Item(Property)?|Job|Module|PSBreakpoint|PSDrive|PSSession|PSSnapin|TypeData|Variable|WmiObject)/,/Rename-(Computer|Item(Property)?)/,/Reset-ComputerMachinePassword/,/Resolve-Path/,/Restart-(Computer|Service)/,/Restore-Computer/,/Resume-(Job|Service)/,/Save-Help/,/Select-(Object|String|Xml)/,/Send-MailMessage/,new RegExp("Set-(Acl|Alias|AuthenticodeSignature|Content|Date|ExecutionPolicy|Item(Property)?|Location|PSBreakpoint|PSDebug|PSSessionConfiguration|Service|StrictMode|TraceSource|Variable|WmiInstance)"),/Show-(Command|ControlPanelItem|EventLog)/,/Sort-Object/,/Split-Path/,/Start-(Job|Process|Service|Sleep|Transaction|Transcript)/,/Stop-(Computer|Job|Process|Service|Transcript)/,/Suspend-(Job|Service)/,/TabExpansion2/,/Tee-Object/,/Test-(ComputerSecureChannel|Connection|ModuleManifest|Path|PSSessionConfigurationFile)/,/Trace-Command/,/Unblock-File/,/Undo-Transaction/,/Unregister-(Event|PSSessionConfiguration)/,/Update-(FormatData|Help|List|TypeData)/,/Use-Transaction/,/Wait-(Event|Job|Process)/,/Where-Object/,/Write-(Debug|Error|EventLog|Host|Output|Progress|Verbose|Warning)/,/cd|help|mkdir|more|oss|prompt/,/ac|asnp|cat|cd|chdir|clc|clear|clhy|cli|clp|cls|clv|cnsn|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|dnsn|ebp/,/echo|epal|epcsv|epsn|erase|etsn|exsn|fc|fl|foreach|ft|fw|gal|gbp|gc|gci|gcm|gcs|gdr|ghy|gi|gjb|gl|gm|gmo|gp|gps/,/group|gsn|gsnp|gsv|gu|gv|gwmi|h|history|icm|iex|ihy|ii|ipal|ipcsv|ipmo|ipsn|irm|ise|iwmi|iwr|kill|lp|ls|man|md/,/measure|mi|mount|move|mp|mv|nal|ndr|ni|nmo|npssc|nsn|nv|ogv|oh|popd|ps|pushd|pwd|r|rbp|rcjb|rcsn|rd|rdr|ren|ri/,/rjb|rm|rmdir|rmo|rni|rnp|rp|rsn|rsnp|rujb|rv|rvpa|rwmi|sajb|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls/,/sort|sp|spjb|spps|spsv|start|sujb|sv|swmi|tee|trcm|type|where|wjb|write/],{prefix:"",suffix:""}),s=e([/[$?^_]|Args|ConfirmPreference|ConsoleFileName|DebugPreference|Error|ErrorActionPreference|ErrorView|ExecutionContext/,/FormatEnumerationLimit|Home|Host|Input|MaximumAliasCount|MaximumDriveCount|MaximumErrorCount|MaximumFunctionCount/,/MaximumHistoryCount|MaximumVariableCount|MyInvocation|NestedPromptLevel|OutputEncoding|Pid|Profile|ProgressPreference/,/PSBoundParameters|PSCommandPath|PSCulture|PSDefaultParameterValues|PSEmailServer|PSHome|PSScriptRoot|PSSessionApplicationName/,/PSSessionConfigurationName|PSSessionOption|PSUICulture|PSVersionTable|Pwd|ShellId|StackTrace|VerbosePreference/,/WarningPreference|WhatIfPreference/,/Event|EventArgs|EventSubscriber|Sender/,/Matches|Ofs|ForEach|LastExitCode|PSCmdlet|PSItem|PSSenderInfo|This/,/true|false|null/],{prefix:"\\$",suffix:""}),u={keyword:n,number:/^((0x[\da-f]+)|((\d+\.\d+|\d\.|\.\d+|\d+)(e[\+\-]?\d+)?))[ld]?([kmgtp]b)?/i,operator:i,builtin:e([/[A-Z]:|%|\?/i,a,s],{suffix:t}),punctuation:/[\[\]{},;`\\\.]|@[({]/,variable:/^[A-Za-z\_][A-Za-z\-\_\d]*\b/};function c(e,t){var n=t.returnStack[t.returnStack.length-1];if(n&&n.shouldReturnFrom(t))return t.tokenize=n.tokenize,t.returnStack.pop(),t.tokenize(e,t);if(e.eatSpace())return null;if(e.eat("("))return t.bracketNesting+=1,"punctuation";if(e.eat(")"))return t.bracketNesting-=1,"punctuation";for(var o in u)if(e.match(u[o]))return o;var i=e.next();if("'"===i)return function(e,t){var r;for(;null!=(r=e.peek());)if(e.next(),"'"===r&&!e.eat("'"))return t.tokenize=c,"string";return"error"}(e,t);if("$"===i)return g(e,t);if('"'===i)return l(e,t);if("<"===i&&e.eat("#"))return t.tokenize=P,P(e,t);if("#"===i)return e.skipToEnd(),"comment";if("@"===i){var a=e.eat(/["']/);if(a&&e.eol())return t.tokenize=v,t.startQuote=a[0],v(e,t);if(e.eol())return"error";if(e.peek().match(/[({]/))return"punctuation";if(e.peek().match(r))return g(e,t)}return"error"}function l(e,t){for(var r;null!=(r=e.peek());){if("$"===r)return t.tokenize=p,"string";if(e.next(),"`"!==r){if('"'===r&&!e.eat('"'))return t.tokenize=c,"string"}else e.next()}return"error"}function p(e,t){return f(e,t,l)}function m(e,t){return t.tokenize=v,t.startQuote='"',v(e,t)}function S(e,t){return f(e,t,m)}function f(e,t,r){if(e.match("$(")){var n=t.bracketNesting;return t.returnStack.push({shouldReturnFrom:function(e){return e.bracketNesting===n},tokenize:r}),t.tokenize=c,t.bracketNesting+=1,"punctuation"}return e.next(),t.returnStack.push({shouldReturnFrom:function(){return!0},tokenize:r}),t.tokenize=g,t.tokenize(e,t)}function P(e,t){for(var r,n=!1;null!=(r=e.next());){if(n&&">"==r){t.tokenize=c;break}n="#"===r}return"comment"}function g(e,t){var n=e.peek();return e.eat("{")?(t.tokenize=d,d(e,t)):null!=n&&n.match(r)?(e.eatWhile(r),t.tokenize=c,"variable"):(t.tokenize=c,"error")}function d(e,t){for(var r;null!=(r=e.next());)if("}"===r){t.tokenize=c;break}return"variable"}function v(e,t){var r=t.startQuote;if(e.sol()&&e.match(new RegExp(r+"@")))t.tokenize=c;else if('"'===r)for(;!e.eol();){var n=e.peek();if("$"===n)return t.tokenize=S,"string";e.next(),"`"===n&&e.next()}else e.skipToEnd();return"string"}const b={name:"powershell",startState:function(){return{returnStack:[],bracketNesting:0,tokenize:c}},token:function(e,t){return t.tokenize(e,t)},languageData:{commentTokens:{line:"#",block:{open:"<#",close:"#>"}}}};export{b as powerShell}; diff --git a/nicegui/elements/lib/codemirror/properties-_nPj978X.js b/nicegui/elements/lib/codemirror/properties-_nPj978X.js new file mode 100644 index 000000000..6575d9d34 --- /dev/null +++ b/nicegui/elements/lib/codemirror/properties-_nPj978X.js @@ -0,0 +1 @@ +const t={name:"properties",token:function(t,e){var i=t.sol()||e.afterSection,n=t.eol();if(e.afterSection=!1,i&&(e.nextMultiline?(e.inMultiline=!0,e.nextMultiline=!1):e.position="def"),n&&!e.nextMultiline&&(e.inMultiline=!1,e.position="def"),i)for(;t.eatSpace(););var o=t.next();return!i||"#"!==o&&"!"!==o&&";"!==o?i&&"["===o?(e.afterSection=!0,t.skipTo("]"),t.eat("]"),"header"):"="===o||":"===o?(e.position="quote",null):("\\"===o&&"quote"===e.position&&t.eol()&&(e.nextMultiline=!0),e.position):(e.position="comment",t.skipToEnd(),"comment")},startState:function(){return{position:"def",nextMultiline:!1,inMultiline:!1,afterSection:!1}}};export{t as properties}; diff --git a/nicegui/elements/lib/codemirror/protobuf-B4y9do6W.js b/nicegui/elements/lib/codemirror/protobuf-B4y9do6W.js new file mode 100644 index 000000000..db981d282 --- /dev/null +++ b/nicegui/elements/lib/codemirror/protobuf-B4y9do6W.js @@ -0,0 +1 @@ +var e=["package","message","import","syntax","required","optional","repeated","reserved","default","extensions","packed","bool","bytes","double","enum","float","string","int32","int64","uint32","uint64","sint32","sint64","fixed32","fixed64","sfixed32","sfixed64","option","service","rpc","returns"],t=new RegExp("^(("+e.join(")|(")+"))\\b","i"),n=new RegExp("^[_A-Za-z¡-￿][_A-Za-z0-9¡-￿]*");const a={name:"protobuf",token:function(e){if(e.eatSpace())return null;if(e.match("//"))return e.skipToEnd(),"comment";if(e.match(/^[0-9\.+-]/,!1)){if(e.match(/^[+-]?0x[0-9a-fA-F]+/))return"number";if(e.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?/))return"number";if(e.match(/^[+-]?\d+([EeDd][+-]?\d+)?/))return"number"}return e.match(/^"([^"]|(""))*"/)||e.match(/^'([^']|(''))*'/)?"string":e.match(t)?"keyword":e.match(n)?"variable":(e.next(),null)},languageData:{autocomplete:e}};export{a as protobuf}; diff --git a/nicegui/elements/lib/codemirror/pug-Zmekp7TD.js b/nicegui/elements/lib/codemirror/pug-Zmekp7TD.js new file mode 100644 index 000000000..1455b6297 --- /dev/null +++ b/nicegui/elements/lib/codemirror/pug-Zmekp7TD.js @@ -0,0 +1 @@ +import{javascript as t}from"./javascript-CQRKPXEM.js";var e={"{":"}","(":")","[":"]"};function n(t){if("object"!=typeof t)return t;let e={};for(let n in t){let i=t[n];e[n]=i instanceof Array?i.slice():i}return e}class i{constructor(e){this.indentUnit=e,this.javaScriptLine=!1,this.javaScriptLineExcludesColon=!1,this.javaScriptArguments=!1,this.javaScriptArgumentsDepth=0,this.isInterpolating=!1,this.interpolationNesting=0,this.jsState=t.startState(e),this.restOfLine="",this.isIncludeFiltered=!1,this.isEach=!1,this.lastTag="",this.isAttrs=!1,this.attrsNest=[],this.inAttributeName=!0,this.attributeIsType=!1,this.attrValue="",this.indentOf=1/0,this.indentToken=""}copy(){var e=new i(this.indentUnit);return e.javaScriptLine=this.javaScriptLine,e.javaScriptLineExcludesColon=this.javaScriptLineExcludesColon,e.javaScriptArguments=this.javaScriptArguments,e.javaScriptArgumentsDepth=this.javaScriptArgumentsDepth,e.isInterpolating=this.isInterpolating,e.interpolationNesting=this.interpolationNesting,e.jsState=(t.copyState||n)(this.jsState),e.restOfLine=this.restOfLine,e.isIncludeFiltered=this.isIncludeFiltered,e.isEach=this.isEach,e.lastTag=this.lastTag,e.isAttrs=this.isAttrs,e.attrsNest=this.attrsNest.slice(),e.inAttributeName=this.inAttributeName,e.attributeIsType=this.attributeIsType,e.attrValue=this.attrValue,e.indentOf=this.indentOf,e.indentToken=this.indentToken,e}}function r(t,e){if(t.match("#{"))return e.isInterpolating=!0,e.interpolationNesting=0,"punctuation"}function a(t,e){if(t.match(/^:([\w\-]+)/))return c(t,e),"atom"}function s(n,i){if(i.isAttrs){if(e[n.peek()]&&i.attrsNest.push(e[n.peek()]),i.attrsNest[i.attrsNest.length-1]===n.peek())i.attrsNest.pop();else if(n.eat(")"))return i.isAttrs=!1,"punctuation";if(i.inAttributeName&&n.match(/^[^=,\)!]+/))return"="!==n.peek()&&"!"!==n.peek()||(i.inAttributeName=!1,i.jsState=t.startState(2),"script"===i.lastTag&&"type"===n.current().trim().toLowerCase()?i.attributeIsType=!0:i.attributeIsType=!1),"attribute";var r=t.token(n,i.jsState);if(0===i.attrsNest.length&&("string"===r||"variable"===r||"keyword"===r))try{return Function("","var x "+i.attrValue.replace(/,\s*$/,"").replace(/^!/,"")),i.inAttributeName=!0,i.attrValue="",n.backUp(n.current().length),s(n,i)}catch(t){}return i.attrValue+=n.current(),r||!0}}function c(t,e){e.indentOf=t.indentation(),e.indentToken="string"}const u={startState:function(t){return new i(t)},copyState:function(t){return t.copy()},token:function(e,n){var i=function(t,e){if(t.sol()&&(e.restOfLine=""),e.restOfLine){t.skipToEnd();var n=e.restOfLine;return e.restOfLine="",n}}(e,n)||function(e,n){if(n.isInterpolating){if("}"===e.peek()){if(n.interpolationNesting--,n.interpolationNesting<0)return e.next(),n.isInterpolating=!1,"punctuation"}else"{"===e.peek()&&n.interpolationNesting++;return t.token(e,n.jsState)||!0}}(e,n)||function(t,e){if(e.isIncludeFiltered){var n=a(t,e);return e.isIncludeFiltered=!1,e.restOfLine="string",n}}(e,n)||function(t,e){if(e.isEach){if(t.match(/^ in\b/))return e.javaScriptLine=!0,e.isEach=!1,"keyword";if(t.sol()||t.eol())e.isEach=!1;else if(t.next()){for(;!t.match(/^ in\b/,!1)&&t.next(););return"variable"}}}(e,n)||s(e,n)||function(e,n){if(e.sol()&&(n.javaScriptLine=!1,n.javaScriptLineExcludesColon=!1),n.javaScriptLine){if(n.javaScriptLineExcludesColon&&":"===e.peek())return n.javaScriptLine=!1,void(n.javaScriptLineExcludesColon=!1);var i=t.token(e,n.jsState);return e.eol()&&(n.javaScriptLine=!1),i||!0}}(e,n)||function(e,n){if(n.javaScriptArguments)return 0===n.javaScriptArgumentsDepth&&"("!==e.peek()?void(n.javaScriptArguments=!1):("("===e.peek()?n.javaScriptArgumentsDepth++:")"===e.peek()&&n.javaScriptArgumentsDepth--,0===n.javaScriptArgumentsDepth?void(n.javaScriptArguments=!1):t.token(e,n.jsState)||!0)}(e,n)||function(t,e){if(e.mixinCallAfter)return e.mixinCallAfter=!1,t.match(/^\( *[-\w]+ *=/,!1)||(e.javaScriptArguments=!0,e.javaScriptArgumentsDepth=0),!0}(e,n)||function(t){if(t.match(/^yield\b/))return"keyword"}(e)||function(t){if(t.match(/^(?:doctype) *([^\n]+)?/))return"meta"}(e)||r(e,n)||function(t,e){if(t.match(/^case\b/))return e.javaScriptLine=!0,"keyword"}(e,n)||function(t,e){if(t.match(/^when\b/))return e.javaScriptLine=!0,e.javaScriptLineExcludesColon=!0,"keyword"}(e,n)||function(t){if(t.match(/^default\b/))return"keyword"}(e)||function(t,e){if(t.match(/^extends?\b/))return e.restOfLine="string","keyword"}(e,n)||function(t,e){if(t.match(/^append\b/))return e.restOfLine="variable","keyword"}(e,n)||function(t,e){if(t.match(/^prepend\b/))return e.restOfLine="variable","keyword"}(e,n)||function(t,e){if(t.match(/^block\b *(?:(prepend|append)\b)?/))return e.restOfLine="variable","keyword"}(e,n)||function(t,e){if(t.match(/^include\b/))return e.restOfLine="string","keyword"}(e,n)||function(t,e){if(t.match(/^include:([a-zA-Z0-9\-]+)/,!1)&&t.match("include"))return e.isIncludeFiltered=!0,"keyword"}(e,n)||function(t,e){if(t.match(/^mixin\b/))return e.javaScriptLine=!0,"keyword"}(e,n)||function(t,e){return t.match(/^\+([-\w]+)/)?(t.match(/^\( *[-\w]+ *=/,!1)||(e.javaScriptArguments=!0,e.javaScriptArgumentsDepth=0),"variable"):t.match("+#{",!1)?(t.next(),e.mixinCallAfter=!0,r(t,e)):void 0}(e,n)||function(t,e){if(t.match(/^(if|unless|else if|else)\b/))return e.javaScriptLine=!0,"keyword"}(e,n)||function(t,e){if(t.match(/^(- *)?(each|for)\b/))return e.isEach=!0,"keyword"}(e,n)||function(t,e){if(t.match(/^while\b/))return e.javaScriptLine=!0,"keyword"}(e,n)||function(t,e){var n;if(n=t.match(/^(\w(?:[-:\w]*\w)?)\/?/))return e.lastTag=n[1].toLowerCase(),"tag"}(e,n)||a(e,n)||function(t,e){if(t.match(/^(!?=|-)/))return e.javaScriptLine=!0,"punctuation"}(e,n)||function(t){if(t.match(/^#([\w-]+)/))return"builtin"}(e)||function(t){if(t.match(/^\.([\w-]+)/))return"className"}(e)||function(t,e){if("("==t.peek())return t.next(),e.isAttrs=!0,e.attrsNest=[],e.inAttributeName=!0,e.attrValue="",e.attributeIsType=!1,"punctuation"}(e,n)||function(t,e){if(t.match(/^&attributes\b/))return e.javaScriptArguments=!0,e.javaScriptArgumentsDepth=0,"keyword"}(e,n)||function(t){if(t.sol()&&t.eatSpace())return"indent"}(e)||function(t,e){return t.match(/^(?:\| ?| )([^\n]+)/)?"string":t.match(/^(<[^\n]*)/,!1)?(c(t,e),t.skipToEnd(),e.indentToken):void 0}(e,n)||function(t,e){if(t.match(/^ *\/\/(-)?([^\n]*)/))return e.indentOf=t.indentation(),e.indentToken="comment","comment"}(e,n)||function(t){if(t.match(/^: */))return"colon"}(e)||function(t,e){if(t.eat("."))return c(t,e),"dot"}(e,n)||function(t){return t.next(),null}(e);return!0===i?null:i}};export{u as pug}; diff --git a/nicegui/elements/lib/codemirror/puppet-Bc-yJKzi.js b/nicegui/elements/lib/codemirror/puppet-Bc-yJKzi.js new file mode 100644 index 000000000..2e4e1b14f --- /dev/null +++ b/nicegui/elements/lib/codemirror/puppet-Bc-yJKzi.js @@ -0,0 +1 @@ +var e={},n=/({)?([a-z][a-z0-9_]*)?((::[a-z][a-z0-9_]*)*::)?[a-zA-Z0-9_]+(})?/;function t(n,t){for(var i=t.split(" "),a=0;a.*/,!1),r=t.match(/(\s+)?[\w:_]+(\s+)?{/,!1),c=t.match(/(\s+)?[@]{1,2}[\w:_]+(\s+)?{/,!1),u=t.next();if("$"===u)return t.match(n)?a.continueString?"variableName.special":"variable":"error";if(a.continueString)return t.backUp(1),i(t,a);if(a.inDefinition){if(t.match(/(\s+)?[\w:_]+(\s+)?/))return"def";t.match(/\s+{/),a.inDefinition=!1}return a.inInclude?(t.match(/(\s+)?\S+(\s+)?/),a.inInclude=!1,"def"):t.match(/(\s+)?\w+\(/)?(t.backUp(1),"def"):s?(t.match(/(\s+)?\w+/),"tag"):o&&e.hasOwnProperty(o)?(t.backUp(1),t.match(/[\w]+/),t.match(/\s+\S+\s+{/,!1)&&(a.inDefinition=!0),"include"==o&&(a.inInclude=!0),e[o]):/(^|\s+)[A-Z][\w:_]+/.test(o)?(t.backUp(1),t.match(/(^|\s+)[A-Z][\w:_]+/),"def"):r?(t.match(/(\s+)?[\w:_]+/),"def"):c?(t.match(/(\s+)?[@]{1,2}/),"atom"):"#"==u?(t.skipToEnd(),"comment"):"'"==u||'"'==u?(a.pending=u,i(t,a)):"{"==u||"}"==u?"bracket":"/"==u?(t.match(/^[^\/]*\//),"string.special"):u.match(/[0-9]/)?(t.eatWhile(/[0-9]+/),"number"):"="==u?(">"==t.peek()&&t.next(),"operator"):(t.eatWhile(/[\w-]/),null)}(t,a)}};export{a as puppet}; diff --git a/nicegui/elements/lib/codemirror/python-DD-Q2bae.js b/nicegui/elements/lib/codemirror/python-DD-Q2bae.js new file mode 100644 index 000000000..3cd341b7e --- /dev/null +++ b/nicegui/elements/lib/codemirror/python-DD-Q2bae.js @@ -0,0 +1 @@ +function e(e){return new RegExp("^(("+e.join(")|(")+"))\\b")}var t=e(["and","or","not","is"]),n=["as","assert","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","lambda","pass","raise","return","try","while","with","yield","in","False","True"],r=["abs","all","any","bin","bool","bytearray","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip","__import__","NotImplemented","Ellipsis","__debug__"];function i(e){return e.scopes[e.scopes.length-1]}function a(a){for(var o="error",l=a.delimiters||a.singleDelimiters||/^[\(\)\[\]\{\}@,:`=;\.\\]/,s=[a.singleOperators,a.doubleOperators,a.doubleDelimiters,a.tripleDelimiters,a.operators||/^([-+*/%\/&|^]=?|[<>=]+|\/\/=?|\*\*=?|!=|[~!@]|\.\.\.)/],c=0;cr?v(e,t):a0&&x(e,t)&&(l+=" "+o),l}return k(e,t)}function k(e,n,r){if(e.eatSpace())return null;if(!r&&e.match(/^#.*/))return"comment";if(e.match(/^[0-9\.]/,!1)){var i=!1;if(e.match(/^[\d_]*\.\d+(e[\+\-]?\d+)?/i)&&(i=!0),e.match(/^[\d_]+\.\d*/)&&(i=!0),e.match(/^\.\d+/)&&(i=!0),i)return e.eat(/J/i),"number";var c=!1;if(e.match(/^0x[0-9a-f_]+/i)&&(c=!0),e.match(/^0b[01_]+/i)&&(c=!0),e.match(/^0o[0-7_]+/i)&&(c=!0),e.match(/^[1-9][\d_]*(e[\+\-]?[\d_]+)?/)&&(e.eat(/J/i),c=!0),e.match(/^0(?![\dx])/i)&&(c=!0),c)return e.eat(/L/i),"number"}if(e.match(h))return-1!==e.current().toLowerCase().indexOf("f")?(n.tokenize=function(e,t){for(;"rubf".indexOf(e.charAt(0).toLowerCase())>=0;)e=e.substr(1);var n=1==e.length,r="string";function i(e){return function(t,n){var r=k(t,n,!0);return"punctuation"==r&&("{"==t.current()?n.tokenize=i(e+1):"}"==t.current()&&(n.tokenize=e>1?i(e-1):l)),r}}function l(l,s){for(;!l.eol();)if(l.eatWhile(/[^'"\{\}\\]/),l.eat("\\")){if(l.next(),n&&l.eol())return r}else{if(l.match(e))return s.tokenize=t,r;if(l.match("{{"))return r;if(l.match("{",!1))return s.tokenize=i(0),l.current()?r:s.tokenize(l,s);if(l.match("}}"))return r;if(l.match("}"))return o;l.eat(/['"]/)}if(n){if(a.singleLineStringErrors)return o;s.tokenize=t}return r}return l.isString=!0,l}(e.current(),n.tokenize),n.tokenize(e,n)):(n.tokenize=function(e,t){for(;"rubf".indexOf(e.charAt(0).toLowerCase())>=0;)e=e.substr(1);var n=1==e.length,r="string";function i(i,l){for(;!i.eol();)if(i.eatWhile(/[^'"\\]/),i.eat("\\")){if(i.next(),n&&i.eol())return r}else{if(i.match(e))return l.tokenize=t,r;i.eat(/['"]/)}if(n){if(a.singleLineStringErrors)return o;l.tokenize=t}return r}return i.isString=!0,i}(e.current(),n.tokenize),n.tokenize(e,n));for(var u=0;u1&&i(t).offset>n;){if("py"!=i(t).type)return!0;t.scopes.pop()}return i(t).offset!=n}function _(e,t){e.sol()&&(t.beginningOfLine=!0,t.dedent=!1);var n=t.tokenize(e,t),r=e.current();if(t.beginningOfLine&&"@"==r)return e.match(m,!1)?"meta":d?"operator":o;if(/\S/.test(r)&&(t.beginningOfLine=!1),"variable"!=n&&"builtin"!=n||"meta"!=t.lastToken||(n="meta"),"pass"!=r&&"return"!=r||(t.dedent=!0),"lambda"==r&&(t.lambda=!0),":"==r&&!t.lambda&&"py"==i(t).type&&e.match(/^\s*(?:#|$)/,!1)&&v(e,t),1==r.length&&!/string|comment/.test(n)){var a="[({".indexOf(r);if(-1!=a&&function(e,t,n){var r=e.match(/^[\s\[\{\(]*(?:#|$)/,!1)?null:e.column()+1;t.scopes.push({offset:t.indent+(u||e.indentUnit),type:n,align:r})}(e,t,"])}".slice(a,a+1)),-1!=(a="])}".indexOf(r))){if(i(t).type!=r)return o;t.indent=t.scopes.pop().offset-(u||e.indentUnit)}}return t.dedent&&e.eol()&&"py"==i(t).type&&t.scopes.length>1&&t.scopes.pop(),n}return{name:"python",startState:function(){return{tokenize:y,scopes:[{offset:0,type:"py",align:null}],indent:0,lastToken:null,lambda:!1,dedent:0}},token:function(e,t){var n=t.errorToken;n&&(t.errorToken=!1);var r=_(e,t);return r&&"comment"!=r&&(t.lastToken="keyword"==r||"punctuation"==r?e.current():r),"punctuation"==r&&(r=null),e.eol()&&t.lambda&&(t.lambda=!1),n?o:r},indent:function(e,t,n){if(e.tokenize!=y)return e.tokenize.isString?null:0;var r=i(e),a=r.type==t.charAt(0)||"py"==r.type&&!e.dedent&&/^(else:|elif |except |finally:)/.test(t);return null!=r.align?r.align-(a?1:0):r.offset-(a?u||n.unit:0)},languageData:{autocomplete:n.concat(r).concat(["exec","print"]),indentOnInput:/^\s*([\}\]\)]|else:|elif |except |finally:)$/,commentTokens:{line:"#"},closeBrackets:{brackets:["(","[","{","'",'"',"'''",'"""']}}}}const o=a({}),l=a({extra_keywords:(s="by cdef cimport cpdef ctypedef enum except extern gil include nogil property public readonly struct union DEF IF ELIF ELSE",s.split(" "))});var s;export{l as cython,a as mkPython,o as python}; diff --git a/nicegui/elements/lib/codemirror/q-B0kTJ4cI.js b/nicegui/elements/lib/codemirror/q-B0kTJ4cI.js new file mode 100644 index 000000000..31dd222b1 --- /dev/null +++ b/nicegui/elements/lib/codemirror/q-B0kTJ4cI.js @@ -0,0 +1 @@ +var t,e=new RegExp("^("+["abs","acos","aj","aj0","all","and","any","asc","asin","asof","atan","attr","avg","avgs","bin","by","ceiling","cols","cor","cos","count","cov","cross","csv","cut","delete","deltas","desc","dev","differ","distinct","div","do","each","ej","enlist","eval","except","exec","exit","exp","fby","fills","first","fkeys","flip","floor","from","get","getenv","group","gtime","hclose","hcount","hdel","hopen","hsym","iasc","idesc","if","ij","in","insert","inter","inv","key","keys","last","like","list","lj","load","log","lower","lsq","ltime","ltrim","mavg","max","maxs","mcount","md5","mdev","med","meta","min","mins","mmax","mmin","mmu","mod","msum","neg","next","not","null","or","over","parse","peach","pj","plist","prd","prds","prev","prior","rand","rank","ratios","raze","read0","read1","reciprocal","reverse","rload","rotate","rsave","rtrim","save","scan","select","set","setenv","show","signum","sin","sqrt","ss","ssr","string","sublist","sum","sums","sv","system","tables","tan","til","trim","txf","type","uj","ungroup","union","update","upper","upsert","value","var","view","views","vs","wavg","where","where","while","within","wj","wj1","wsum","xasc","xbar","xcol","xcols","xdesc","xexp","xgroup","xkey","xlog","xprev","xrank"].join("|")+")$"),n=/[|/&^!+:\\\-*%$=~#;@><,?_\'\"\[\(\]\)\s{}]/;function r(i,c){var l=i.sol(),u=i.next();if(t=null,l){if("/"==u)return(c.tokenize=o)(i,c);if("\\"==u)return i.eol()||/\s/.test(i.peek())?(i.skipToEnd(),/^\\\s*$/.test(i.current())?(c.tokenize=s)(i):c.tokenize=r,"comment"):(c.tokenize=r,"builtin")}if(/\s/.test(u))return"/"==i.peek()?(i.skipToEnd(),"comment"):"null";if('"'==u)return(c.tokenize=a)(i,c);if("`"==u)return i.eatWhile(/[A-Za-z\d_:\/.]/),"macroName";if("."==u&&/\d/.test(i.peek())||/\d/.test(u)){var d=null;return i.backUp(1),i.match(/^\d{4}\.\d{2}(m|\.\d{2}([DT](\d{2}(:\d{2}(:\d{2}(\.\d{1,9})?)?)?)?)?)/)||i.match(/^\d+D(\d{2}(:\d{2}(:\d{2}(\.\d{1,9})?)?)?)/)||i.match(/^\d{2}:\d{2}(:\d{2}(\.\d{1,9})?)?/)||i.match(/^\d+[ptuv]{1}/)?d="temporal":(i.match(/^0[NwW]{1}/)||i.match(/^0x[\da-fA-F]*/)||i.match(/^[01]+[b]{1}/)||i.match(/^\d+[chijn]{1}/)||i.match(/-?\d*(\.\d*)?(e[+\-]?\d+)?(e|f)?/))&&(d="number"),!d||(u=i.peek())&&!n.test(u)?(i.next(),"error"):d}return/[A-Za-z]|\./.test(u)?(i.eatWhile(/[A-Za-z._\d]/),e.test(i.current())?"keyword":"variable"):/[|/&^!+:\\\-*%$=~#;@><\.,?_\']/.test(u)||/[{}\(\[\]\)]/.test(u)?null:"error"}function o(t,e){return t.skipToEnd(),/\/\s*$/.test(t.current())?(e.tokenize=i)(t,e):e.tokenize=r,"comment"}function i(t,e){var n=t.sol()&&"\\"==t.peek();return t.skipToEnd(),n&&/^\\\s*$/.test(t.current())&&(e.tokenize=r),"comment"}function s(t){return t.skipToEnd(),"comment"}function a(t,e){for(var n,o=!1,i=!1;n=t.next();){if('"'==n&&!o){i=!0;break}o=!o&&"\\"==n}return i&&(e.tokenize=r),"string"}function c(t,e,n){t.context={prev:t.context,indent:t.indent,col:n,type:e}}function l(t){t.indent=t.context.indent,t.context=t.context.prev}const u={name:"q",startState:function(){return{tokenize:r,context:null,indent:0,col:0}},token:function(e,n){e.sol()&&(n.context&&null==n.context.align&&(n.context.align=!1),n.indent=e.indentation());var r=n.tokenize(e,n);if("comment"!=r&&n.context&&null==n.context.align&&"pattern"!=n.context.type&&(n.context.align=!0),"("==t)c(n,")",e.column());else if("["==t)c(n,"]",e.column());else if("{"==t)c(n,"}",e.column());else if(/[\]\}\)]/.test(t)){for(;n.context&&"pattern"==n.context.type;)l(n);n.context&&t==n.context.type&&l(n)}else"."==t&&n.context&&"pattern"==n.context.type?l(n):/atom|string|variable/.test(r)&&n.context&&(/[\}\]]/.test(n.context.type)?c(n,"pattern",e.column()):"pattern"!=n.context.type||n.context.align||(n.context.align=!0,n.context.col=e.column()));return r},indent:function(t,e,n){var r=e&&e.charAt(0),o=t.context;if(/[\]\}]/.test(r))for(;o&&"pattern"==o.type;)o=o.prev;var i=o&&r==o.type;return o?"pattern"==o.type?o.col:o.align?o.col+(i?0:1):o.indent+(i?0:n.unit):0}};export{u as q}; diff --git a/nicegui/elements/lib/codemirror/r-BA4EbLKE.js b/nicegui/elements/lib/codemirror/r-BA4EbLKE.js new file mode 100644 index 000000000..0e26820d9 --- /dev/null +++ b/nicegui/elements/lib/codemirror/r-BA4EbLKE.js @@ -0,0 +1 @@ +function t(t){for(var e={},n=0;n=!&|~$:]/;function f(t,n){e=null;var r,a=t.next();if("#"==a)return t.skipToEnd(),"comment";if("0"==a&&t.eat("x"))return t.eatWhile(/[\da-f]/i),"number";if("."==a&&t.eat(/\d/))return t.match(/\d*(?:e[+\-]?\d+)?/),"number";if(/\d/.test(a))return t.match(/\d*(?:\.\d+)?(?:e[+\-]\d+)?L?/),"number";if("'"==a||'"'==a)return n.tokenize=(r=a,function(t,e){if(t.eat("\\")){var n=t.next();return"x"==n?t.match(/^[a-f0-9]{2}/i):("u"==n||"U"==n)&&t.eat("{")&&t.skipTo("}")?t.next():"u"==n?t.match(/^[a-f0-9]{4}/i):"U"==n?t.match(/^[a-f0-9]{8}/i):/[0-7]/.test(n)&&t.match(/^[0-7]{1,2}/),"string.special"}for(var a;null!=(a=t.next());){if(a==r){e.tokenize=f;break}if("\\"==a){t.backUp(1);break}}return"string"}),"string";if("`"==a)return t.match(/[^`]+`/),"string.special";if("."==a&&t.match(/.(?:[.]|\d+)/))return"keyword";if(/[a-zA-Z\.]/.test(a)){t.eatWhile(/[\w\.]/);var s=t.current();return i.propertyIsEnumerable(s)?"atom":o.propertyIsEnumerable(s)?(l.propertyIsEnumerable(s)&&!t.match(/\s*if(\s+|$)/,!1)&&(e="block"),"keyword"):c.propertyIsEnumerable(s)?"builtin":"variable"}return"%"==a?(t.skipTo("%")&&t.next(),"variableName.special"):"<"==a&&t.eat("-")||"<"==a&&t.match("<-")||"-"==a&&t.match(/>>?/)||"="==a&&n.ctx.argList?"operator":u.test(a)?("$"==a||t.eatWhile(u),"operator"):/[\(\){}\[\];]/.test(a)?(e=a,";"==a?"punctuation":null):null}function s(t,e,n){t.ctx={type:e,indent:t.indent,flags:0,column:n.column(),prev:t.ctx}}function p(t,e){var n=t.ctx;t.ctx={type:n.type,indent:n.indent,flags:n.flags|e,column:n.column,prev:n.prev}}function m(t){t.indent=t.ctx.indent,t.ctx=t.ctx.prev}const d={name:"r",startState:function(t){return{tokenize:f,ctx:{type:"top",indent:-t,flags:2},indent:0,afterIdent:!1}},token:function(t,n){if(t.sol()&&(3&n.ctx.flags||(n.ctx.flags|=2),4&n.ctx.flags&&m(n),n.indent=t.indentation()),t.eatSpace())return null;var r=n.tokenize(t,n);return"comment"==r||2&n.ctx.flags||p(n,1),";"!=e&&"{"!=e&&"}"!=e||"block"!=n.ctx.type||m(n),"{"==e?s(n,"}",t):"("==e?(s(n,")",t),n.afterIdent&&(n.ctx.argList=!0)):"["==e?s(n,"]",t):"block"==e?s(n,"block",t):e==n.ctx.type?m(n):"block"==n.ctx.type&&"comment"!=r&&p(n,4),n.afterIdent="variable"==r||"keyword"==r,r},indent:function(t,e,n){if(t.tokenize!=f)return 0;var r=e&&e.charAt(0),a=t.ctx,i=r==a.type;return 4&a.flags&&(a=a.prev),"block"==a.type?a.indent+("{"==r?0:n.unit):1&a.flags?a.column+(i?0:1):a.indent+(i?0:n.unit)},languageData:{wordChars:".",commentTokens:{line:"#"},autocomplete:n.concat(r,a)}};export{d as r}; diff --git a/nicegui/elements/lib/codemirror/rpm-DI_rRufH.js b/nicegui/elements/lib/codemirror/rpm-DI_rRufH.js new file mode 100644 index 000000000..9b35deda9 --- /dev/null +++ b/nicegui/elements/lib/codemirror/rpm-DI_rRufH.js @@ -0,0 +1 @@ +var r=/^-+$/,e=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ?\d{1,2} \d{2}:\d{2}(:\d{2})? [A-Z]{3,4} \d{4} - /,t=/^[\w+.-]+@[\w.-]+/;const a={name:"rpmchanges",token:function(a){if(a.sol()){if(a.match(r))return"tag";if(a.match(e))return"tag"}return a.match(t)?"string":(a.next(),null)}};var n=/^(i386|i586|i686|x86_64|ppc64le|ppc64|ppc|ia64|s390x|s390|sparc64|sparcv9|sparc|noarch|alphaev6|alpha|hppa|mipsel)/,c=/^[a-zA-Z0-9()]+:/,o=/^%(debug_package|package|description|prep|build|install|files|clean|changelog|preinstall|preun|postinstall|postun|pretrans|posttrans|pre|post|triggerin|triggerun|verifyscript|check|triggerpostun|triggerprein|trigger)/,i=/^%(ifnarch|ifarch|if)/,p=/^%(else|endif)/,u=/^(\!|\?|\<\=|\<|\>\=|\>|\=\=|\&\&|\|\|)/;const l={name:"rpmspec",startState:function(){return{controlFlow:!1,macroParameters:!1,section:!1}},token:function(r,e){if("#"==r.peek())return r.skipToEnd(),"comment";if(r.sol()){if(r.match(c))return"header";if(r.match(o))return"atom"}if(r.match(/^\$\w+/))return"def";if(r.match(/^\$\{\w+\}/))return"def";if(r.match(p))return"keyword";if(r.match(i))return e.controlFlow=!0,"keyword";if(e.controlFlow){if(r.match(u))return"operator";if(r.match(/^(\d+)/))return"number";r.eol()&&(e.controlFlow=!1)}if(r.match(n))return r.eol()&&(e.controlFlow=!1),"number";if(r.match(/^%[\w]+/))return r.match("(")&&(e.macroParameters=!0),"keyword";if(e.macroParameters){if(r.match(/^\d+/))return"number";if(r.match(")"))return e.macroParameters=!1,"keyword"}return r.match(/^%\{\??[\w \-\:\!]+\}/)?(r.eol()&&(e.controlFlow=!1),"def"):(r.next(),null)}};export{a as rpmChanges,l as rpmSpec}; diff --git a/nicegui/elements/lib/codemirror/ruby-CR-u2WLS.js b/nicegui/elements/lib/codemirror/ruby-CR-u2WLS.js new file mode 100644 index 000000000..e68acac7d --- /dev/null +++ b/nicegui/elements/lib/codemirror/ruby-CR-u2WLS.js @@ -0,0 +1 @@ +function e(e){for(var t={},n=0,r=e.length;n-1)r++;else if("]})".indexOf(t)>-1){if(--r<0)break}else if("/"==t&&0==r){i=!0;break}a="\\"==t}return e.backUp(e.pos-n),i}(e)?l(c(u,"string.special",!0),e,n):"operator";if("%"==u){var f="string",s=!0;e.eat("s")?f="atom":e.eat(/[WQ]/)?f="string":e.eat(/[r]/)?f="string.special":e.eat(/[wxq]/)&&(f="string",s=!1);var d=e.eat(/[^\w\s=]/);return d?(o.propertyIsEnumerable(d)&&(d=o[d]),l(c(d,f,s,!0),e,n)):"operator"}if("#"==u)return e.skipToEnd(),"comment";if("<"==u&&(r=e.match(/^<([-~])[\`\"\']?([a-zA-Z_?]\w*)[\`\"\']?(?:;|$)/)))return l((i=r[2],a=r[1],function(e,t){return a&&e.eatSpace(),e.match(i)?t.tokenize.pop():e.skipToEnd(),"string"}),e,n);if("0"==u)return e.eat("x")?e.eatWhile(/[\da-fA-F]/):e.eat("b")?e.eatWhile(/[01]/):e.eatWhile(/[0-7]/),"number";if(/\d/.test(u))return e.match(/^[\d_]*(?:\.[\d_]+)?(?:[eE][+\-]?[\d_]+)?/),"number";if("?"==u){for(;e.match(/^\\[CM]-/););return e.eat("\\")?e.eatWhile(/\w/):e.next(),"string"}if(":"==u)return e.eat("'")?l(c("'","atom",!1),e,n):e.eat('"')?l(c('"',"atom",!0),e,n):e.eat(/[\<\>]/)?(e.eat(/[\<\>]/),"atom"):e.eat(/[\+\-\*\/\&\|\:\!]/)?"atom":e.eat(/[a-zA-Z$@_\xa1-\uffff]/)?(e.eatWhile(/[\w$\xa1-\uffff]/),e.eat(/[\?\!\=]/),"atom"):"operator";if("@"==u&&e.match(/^@?[a-zA-Z_\xa1-\uffff]/))return e.eat("@"),e.eatWhile(/[\w\xa1-\uffff]/),"propertyName";if("$"==u)return e.eat(/[a-zA-Z_]/)?e.eatWhile(/[\w]/):e.eat(/\d/)?e.eat(/\d/):e.next(),"variableName.special";if(/[a-zA-Z_\xa1-\uffff]/.test(u))return e.eatWhile(/[\w\xa1-\uffff]/),e.eat(/[\?\!]/),e.eat(":")?"atom":"variable";if("|"!=u||!n.varList&&"{"!=n.lastTok&&"do"!=n.lastTok){if(/[\(\)\[\]{}\\;]/.test(u))return t=u,null;if("-"==u&&e.eat(">"))return"operator";if(/[=+\-\/*:\.^%<>~|]/.test(u)){var k=e.eatWhile(/[=+\-\/*:\.^%<>~|]/);return"."!=u||k||(t="."),"operator"}return null}return t="|",null}function s(e){return e||(e=1),function(t,n){if("}"==t.peek()){if(1==e)return n.tokenize.pop(),n.tokenize[n.tokenize.length-1](t,n);n.tokenize[n.tokenize.length-1]=s(e-1)}else"{"==t.peek()&&(n.tokenize[n.tokenize.length-1]=s(e+1));return f(t,n)}}function d(){var e=!1;return function(t,n){return e?(n.tokenize.pop(),n.tokenize[n.tokenize.length-1](t,n)):(e=!0,f(t,n))}}function c(e,t,n,r){return function(i,a){var o,u=!1;for("read-quoted-paused"===a.context.type&&(a.context=a.context.prev,i.eat("}"));null!=(o=i.next());){if(o==e&&(r||!u)){a.tokenize.pop();break}if(n&&"#"==o&&!u){if(i.eat("{")){"}"==e&&(a.context={prev:a.context,type:"read-quoted-paused"}),a.tokenize.push(s());break}if(/[@\$]/.test(i.peek())){a.tokenize.push(d());break}}u=!u&&"\\"==o}return t}}function p(e,t){return e.sol()&&e.match("=end")&&e.eol()&&t.tokenize.pop(),e.skipToEnd(),"comment"}const k={name:"ruby",startState:function(e){return{tokenize:[f],indented:0,context:{type:"top",indented:-e},continuedLine:!1,lastTok:null,varList:!1}},token:function(e,n){t=null,e.sol()&&(n.indented=e.indentation());var o,u=n.tokenize[n.tokenize.length-1](e,n),l=t;if("variable"==u){var f=e.current();"keyword"==(u="."==n.lastTok?"property":r.propertyIsEnumerable(e.current())?"keyword":/^[A-Z]/.test(f)?"tag":"def"==n.lastTok||"class"==n.lastTok||n.varList?"def":"variable")&&(l=f,i.propertyIsEnumerable(f)?o="indent":a.propertyIsEnumerable(f)?o="dedent":"if"!=f&&"unless"!=f||e.column()!=e.indentation()?"do"==f&&n.context.indented=|!=|<>)/,r=/[=\(:\),{}.*<>+\-\/^\[\]]/;function s(t,n,r){if(r)for(var s=n.split(" "),o=0;ointeger char-alphabetic? char-ci<=? char-ci=? char-ci>? char-downcase char-lower-case? char-numeric? char-ready? char-upcase char-upper-case? char-whitespace? char<=? char=? char>? char? close-input-port close-output-port complex? cons cos current-input-port current-output-port denominator display eof-object? eq? equal? eqv? eval even? exact->inexact exact? exp expt #f floor force gcd imag-part inexact->exact inexact? input-port? integer->char integer? interaction-environment lcm length list list->string list->vector list-ref list-tail list? load log magnitude make-polar make-rectangular make-string make-vector max member memq memv min modulo negative? newline not null-environment null? number->string number? numerator odd? open-input-file open-output-file output-port? pair? peek-char port? positive? procedure? quasiquote quote quotient rational? rationalize read read-char real-part real? remainder reverse round scheme-report-environment set! set-car! set-cdr! sin sqrt string string->list string->number string->symbol string-append string-ci<=? string-ci=? string-ci>? string-copy string-fill! string-length string-ref string-set! string<=? string=? string>? string? substring symbol->string symbol? #t tan transcript-off transcript-on truncate values vector vector->list vector-fill! vector-length vector-ref vector-set! with-input-from-file with-output-to-file write write-char zero?"),l=s("define let letrec let* lambda define-macro defmacro let-syntax letrec-syntax let-values let*-values define-syntax syntax-rules define-values when unless");function o(e,t,n){this.indent=e,this.type=t,this.prev=n}function d(e,t,n){e.indentStack=new o(t,n,e.indentStack)}var u=new RegExp(/^(?:[-+]i|[-+][01]+#*(?:\/[01]+#*)?i|[-+]?[01]+#*(?:\/[01]+#*)?@[-+]?[01]+#*(?:\/[01]+#*)?|[-+]?[01]+#*(?:\/[01]+#*)?[-+](?:[01]+#*(?:\/[01]+#*)?)?i|[-+]?[01]+#*(?:\/[01]+#*)?)(?=[()\s;"]|$)/i),m=new RegExp(/^(?:[-+]i|[-+][0-7]+#*(?:\/[0-7]+#*)?i|[-+]?[0-7]+#*(?:\/[0-7]+#*)?@[-+]?[0-7]+#*(?:\/[0-7]+#*)?|[-+]?[0-7]+#*(?:\/[0-7]+#*)?[-+](?:[0-7]+#*(?:\/[0-7]+#*)?)?i|[-+]?[0-7]+#*(?:\/[0-7]+#*)?)(?=[()\s;"]|$)/i),p=new RegExp(/^(?:[-+]i|[-+][\da-f]+#*(?:\/[\da-f]+#*)?i|[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?@[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?|[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?[-+](?:[\da-f]+#*(?:\/[\da-f]+#*)?)?i|[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?)(?=[()\s;"]|$)/i),f=new RegExp(/^(?:[-+]i|[-+](?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)i|[-+]?(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)@[-+]?(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)|[-+]?(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)[-+](?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)?i|(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*))(?=[()\s;"]|$)/i);function h(e){return e.match(u)}function g(e){return e.match(m)}function x(e,t){return!0===t&&e.backUp(1),e.match(f)}function b(e){return e.match(p)}function v(e,t){for(var n,r=!1;null!=(n=e.next());){if(n==t.token&&!r){t.state.mode=!1;break}r=!r&&"\\"==n}}const k={name:"scheme",startState:function(){return{indentStack:null,indentation:0,mode:!1,sExprComment:!1,sExprQuote:!1}},token:function(s,o){if(null==o.indentStack&&s.sol()&&(o.indentation=s.indentation()),s.eatSpace())return null;var u=null;switch(o.mode){case"string":v(s,{token:'"',state:o}),u=t;break;case"symbol":v(s,{token:"|",state:o}),u=n;break;case"comment":for(var m,p=!1;null!=(m=s.next());){if("#"==m&&p){o.mode=!1;break}p="|"==m}u=e;break;case"s-expr-comment":if(o.mode=!1,"("!=s.peek()&&"["!=s.peek()){s.eatWhile(/[^\s\(\)\[\]]/),u=e;break}o.sExprComment=0;default:var f=s.next();if('"'==f)o.mode="string",u=t;else if("'"==f)"("==s.peek()||"["==s.peek()?("number"!=typeof o.sExprQuote&&(o.sExprQuote=0),u=r):(s.eatWhile(/[\w_\-!$%&*+\.\/:<=>?@\^~]/),u=r);else if("|"==f)o.mode="symbol",u=n;else if("#"==f)if(s.eat("|"))o.mode="comment",u=e;else if(s.eat(/[tf]/i))u=r;else if(s.eat(";"))o.mode="s-expr-comment",u=e;else{var k=null,y=!1,w=!0;s.eat(/[ei]/i)?y=!0:s.backUp(1),s.match(/^#b/i)?k=h:s.match(/^#o/i)?k=g:s.match(/^#x/i)?k=b:s.match(/^#d/i)?k=x:s.match(/^[-+0-9.]/,!1)?(w=!1,k=x):y||s.eat("#"),null!=k&&(w&&!y&&s.match(/^#[ei]/i),k(s)&&(u=a))}else if(/^[-+0-9.]/.test(f)&&x(s,!0))u=a;else if(";"==f)s.skipToEnd(),u=e;else if("("==f||"["==f){for(var E,S="",q=s.column();null!=(E=s.eat(/[^\s\(\[\;\)\]]/));)S+=E;S.length>0&&l.propertyIsEnumerable(S)?d(o,q+2,f):(s.eatSpace(),s.eol()||";"==s.peek()?d(o,q+1,f):d(o,q+s.current().length,f)),s.backUp(s.current().length-1),"number"==typeof o.sExprComment&&o.sExprComment++,"number"==typeof o.sExprQuote&&o.sExprQuote++,u=i}else")"==f||"]"==f?(u=i,null!=o.indentStack&&o.indentStack.type==(")"==f?"(":"[")&&(!function(e){e.indentStack=e.indentStack.prev}(o),"number"==typeof o.sExprComment&&0==--o.sExprComment&&(u=e,o.sExprComment=!1),"number"==typeof o.sExprQuote&&0==--o.sExprQuote&&(u=r,o.sExprQuote=!1))):(s.eatWhile(/[\w_\-!$%&*+\.\/:<=>?@\^~]/),u=c&&c.propertyIsEnumerable(s.current())?"builtin":"variable")}return"number"==typeof o.sExprComment?e:"number"==typeof o.sExprQuote?r:u},indent:function(e){return null==e.indentStack?e.indentation:e.indentStack.indent},languageData:{closeBrackets:{brackets:["(","[","{",'"']},commentTokens:{line:";;"}}};export{k as scheme}; diff --git a/nicegui/elements/lib/codemirror/shell-BLav31RL.js b/nicegui/elements/lib/codemirror/shell-BLav31RL.js new file mode 100644 index 000000000..ece03d7cc --- /dev/null +++ b/nicegui/elements/lib/codemirror/shell-BLav31RL.js @@ -0,0 +1 @@ +var t={};function e(e,n){for(var r=0;r1&&t.eat("$");var n=t.next();return/['"({]/.test(n)?(e.tokens[0]=o(n,"("==n?"quote":"{"==n?"def":"string"),f(t,e)):(/\d/.test(n)||t.eatWhile(/\w/),e.tokens.shift(),"def")};function f(t,e){return(e.tokens[0]||i)(t,e)}const c={name:"shell",startState:function(){return{tokens:[]}},token:function(t,e){return f(t,e)},languageData:{autocomplete:n.concat(r,s),closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"#"}}};export{c as shell}; diff --git a/nicegui/elements/lib/codemirror/sieve-r025o_jW.js b/nicegui/elements/lib/codemirror/sieve-r025o_jW.js new file mode 100644 index 000000000..03e5ddeb3 --- /dev/null +++ b/nicegui/elements/lib/codemirror/sieve-r025o_jW.js @@ -0,0 +1 @@ +function n(n){for(var e={},t=n.split(" "),r=0;r2&&s.token&&"string"!=typeof s.token){e.pending=[];for(var u=2;u-1)return null;var r=e.indent.length-1,i=t[e.state];t:for(;;){for(var s=0;s=@%|&?!.,:;^]/,t=/true|false|nil|self|super|thisContext/,n=function(e,t){this.next=e,this.parent=t},a=function(e,t,n){this.name=e,this.context=t,this.eos=n},i=function(){this.context=new n(r,null),this.expectVariable=!0,this.indentation=0,this.userIndentationDelta=0};i.prototype.userIndent=function(e,t){this.userIndentationDelta=e>0?e/t-this.indentation:0};var r=function(i,r,c){var x=new a(null,r,!1),h=i.next();return'"'===h?x=o(i,new n(o,r)):"'"===h?x=s(i,new n(s,r)):"#"===h?"'"===i.peek()?(i.next(),x=l(i,new n(l,r))):i.eatWhile(/[^\s.{}\[\]()]/)?x.name="string.special":x.name="meta":"$"===h?("<"===i.next()&&(i.eatWhile(/[^\s>]/),i.next()),x.name="string.special"):"|"===h&&c.expectVariable?x.context=new n(u,r):/[\[\]{}()]/.test(h)?(x.name="bracket",x.eos=/[\[{(]/.test(h),"["===h?c.indentation++:"]"===h&&(c.indentation=Math.max(0,c.indentation-1))):e.test(h)?(i.eatWhile(e),x.name="operator",x.eos=";"!==h):/\d/.test(h)?(i.eatWhile(/[\w\d]/),x.name="number"):/[\w_]/.test(h)?(i.eatWhile(/[\w\d_]/),x.name=c.expectVariable?t.test(i.current())?"keyword":"variable":null):x.eos=c.expectVariable,x},o=function(e,t){return e.eatWhile(/[^"]/),new a("comment",e.eat('"')?t.parent:t,!0)},s=function(e,t){return e.eatWhile(/[^']/),new a("string",e.eat("'")?t.parent:t,!1)},l=function(e,t){return e.eatWhile(/[^']/),new a("string.special",e.eat("'")?t.parent:t,!1)},u=function(e,t){var n=new a(null,t,!1);return"|"===e.next()?(n.context=t.parent,n.eos=!0):(e.eatWhile(/[^|]/),n.name="variable"),n};const c={name:"smalltalk",startState:function(){return new i},token:function(e,t){if(t.userIndent(e.indentation(),e.indentUnit),e.eatSpace())return null;var n=t.context.next(e,t.context,t);return t.context=n.context,t.expectVariable=n.eos,n.name},blankLine:function(e,t){e.userIndent(0,t)},indent:function(e,t,n){var a=e.context.next===r&&t&&"]"===t.charAt(0)?-1:e.userIndentationDelta;return(e.indentation+a)*n.unit},languageData:{indentOnInput:/^\s*\]$/}};export{c as smalltalk}; diff --git a/nicegui/elements/lib/codemirror/solr-78MBEUkU.js b/nicegui/elements/lib/codemirror/solr-78MBEUkU.js new file mode 100644 index 000000000..ee1de9ed0 --- /dev/null +++ b/nicegui/elements/lib/codemirror/solr-78MBEUkU.js @@ -0,0 +1 @@ +var t=/[^\s\|\!\+\-\*\?\~\^\&\:\(\)\[\]\{\}\"\\]/,e=/[\|\!\+\-\*\?\~\^\&]/,n=/^(OR|AND|NOT|TO)$/;function r(e){return function(r,i){for(var u=e;(e=r.peek())&&null!=e.match(t);)u+=r.next();return i.tokenize=o,n.test(u)?"operator":function(t){return parseFloat(t).toString()===t}(u)?"number":":"==r.peek()?"propertyName":"string"}}function o(n,i){var u,a,k=n.next();return'"'==k?i.tokenize=(a=k,function(t,e){for(var n,r=!1;null!=(n=t.next())&&(n!=a||r);)r=!r&&"\\"==n;return r||(e.tokenize=o),"string"}):e.test(k)?i.tokenize=(u=k,function(t,e){return"|"==u?t.eat(/\|/):"&"==u&&t.eat(/\&/),e.tokenize=o,"operator"}):t.test(k)&&(i.tokenize=r(k)),i.tokenize!=o?i.tokenize(n,i):null}const i={name:"solr",startState:function(){return{tokenize:o}},token:function(t,e){return t.eatSpace()?null:e.tokenize(t,e)}};export{i as solr}; diff --git a/nicegui/elements/lib/codemirror/sparql-BRLJFz69.js b/nicegui/elements/lib/codemirror/sparql-BRLJFz69.js new file mode 100644 index 000000000..9612688da --- /dev/null +++ b/nicegui/elements/lib/codemirror/sparql-BRLJFz69.js @@ -0,0 +1 @@ +var t;function e(t){return new RegExp("^(?:"+t.join("|")+")$","i")}var n=e(["str","lang","langmatches","datatype","bound","sameterm","isiri","isuri","iri","uri","bnode","count","sum","min","max","avg","sample","group_concat","rand","abs","ceil","floor","round","concat","substr","strlen","replace","ucase","lcase","encode_for_uri","contains","strstarts","strends","strbefore","strafter","year","month","day","hours","minutes","seconds","timezone","tz","now","uuid","struuid","md5","sha1","sha256","sha384","sha512","coalesce","if","strlang","strdt","isnumeric","regex","exists","isblank","isliteral","a","bind"]),r=e(["base","prefix","select","distinct","reduced","construct","describe","ask","from","named","where","order","limit","offset","filter","optional","graph","by","asc","desc","as","having","undef","values","group","minus","in","not","service","silent","using","insert","delete","union","true","false","with","data","copy","to","move","add","create","drop","clear","load","into"]),a=/[*+\-<>=&|\^\/!\?]/,u="[A-Za-z_\\-0-9]",o=new RegExp("[A-Za-z]"),i=new RegExp("(("+u+"|\\.)*("+u+"))?:");function c(e,u){var l,d=e.next();if(t=null,"$"==d||"?"==d)return"?"==d&&e.match(/\s/,!1)?"operator":(e.match(/^[A-Za-z0-9_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][A-Za-z0-9_\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]*/),"variableName.local");if("<"==d&&!e.match(/^[\s\u00a0=]/,!1))return e.match(/^[^\s\u00a0>]*>?/),"atom";if('"'==d||"'"==d)return u.tokenize=(l=d,function(t,e){for(var n,r=!1;null!=(n=t.next());){if(n==l&&!r){e.tokenize=c;break}r=!r&&"\\"==n}return"string"}),u.tokenize(e,u);if(/[{}\(\),\.;\[\]]/.test(d))return t=d,"bracket";if("#"==d)return e.skipToEnd(),"comment";if(a.test(d))return"operator";if(":"==d)return s(e),"atom";if("@"==d)return e.eatWhile(/[a-z\d\-]/i),"meta";if(o.test(d)&&e.match(i))return s(e),"atom";e.eatWhile(/[_\w\d]/);var f=e.current();return n.test(f)?"builtin":r.test(f)?"keyword":"variable"}function s(t){t.match(/(\.(?=[\w_\-\\%])|[:\w_-]|\\[-\\_~.!$&'()*+,;=/?#@%]|%[a-f\d][a-f\d])+/i)}function l(t,e,n){t.context={prev:t.context,indent:t.indent,col:n,type:e}}function d(t){t.indent=t.context.indent,t.context=t.context.prev}const f={name:"sparql",startState:function(){return{tokenize:c,context:null,indent:0,col:0}},token:function(e,n){if(e.sol()&&(n.context&&null==n.context.align&&(n.context.align=!1),n.indent=e.indentation()),e.eatSpace())return null;var r=n.tokenize(e,n);if("comment"!=r&&n.context&&null==n.context.align&&"pattern"!=n.context.type&&(n.context.align=!0),"("==t)l(n,")",e.column());else if("["==t)l(n,"]",e.column());else if("{"==t)l(n,"}",e.column());else if(/[\]\}\)]/.test(t)){for(;n.context&&"pattern"==n.context.type;)d(n);n.context&&t==n.context.type&&(d(n),"}"==t&&n.context&&"pattern"==n.context.type&&d(n))}else"."==t&&n.context&&"pattern"==n.context.type?d(n):/atom|string|variable/.test(r)&&n.context&&(/[\}\]]/.test(n.context.type)?l(n,"pattern",e.column()):"pattern"!=n.context.type||n.context.align||(n.context.align=!0,n.context.col=e.column()));return r},indent:function(t,e,n){var r=e&&e.charAt(0),a=t.context;if(/[\]\}]/.test(r))for(;a&&"pattern"==a.type;)a=a.prev;var u=a&&r==a.type;return a?"pattern"==a.type?a.col:a.align?a.col+(u?0:1):a.indent+(u?0:n.unit):0},languageData:{commentTokens:{line:"#"}}};export{f as sparql}; diff --git a/nicegui/elements/lib/codemirror/spreadsheet-CGlWr0eM.js b/nicegui/elements/lib/codemirror/spreadsheet-CGlWr0eM.js new file mode 100644 index 000000000..40fc021f2 --- /dev/null +++ b/nicegui/elements/lib/codemirror/spreadsheet-CGlWr0eM.js @@ -0,0 +1 @@ +const e={name:"spreadsheet",startState:function(){return{stringType:null,stack:[]}},token:function(e,t){if(e){switch(0===t.stack.length&&('"'!=e.peek()&&"'"!=e.peek()||(t.stringType=e.peek(),e.next(),t.stack.unshift("string"))),t.stack[0]){case"string":for(;"string"===t.stack[0]&&!e.eol();)e.peek()===t.stringType?(e.next(),t.stack.shift()):"\\"===e.peek()?(e.next(),e.next()):e.match(/^.[^\\\"\']*/);return"string";case"characterClass":for(;"characterClass"===t.stack[0]&&!e.eol();)e.match(/^[^\]\\]+/)||e.match(/^\\./)||t.stack.shift();return"operator"}var a=e.peek();switch(a){case"[":return e.next(),t.stack.unshift("characterClass"),"bracket";case":":return e.next(),"operator";case"\\":return e.match(/\\[a-z]+/)?"string.special":(e.next(),"atom");case".":case",":case";":case"*":case"-":case"+":case"^":case"<":case"/":case"=":return e.next(),"atom";case"$":return e.next(),"builtin"}return e.match(/\d+/)?e.match(/^\w+/)?"error":"number":e.match(/^[a-zA-Z_]\w*/)?e.match(/(?=[\(.])/,!1)?"keyword":"variable":-1!=["[","]","(",")","{","}"].indexOf(a)?(e.next(),"bracket"):(e.eatSpace()||e.next(),null)}}};export{e as spreadsheet}; diff --git a/nicegui/elements/lib/codemirror/sql-BP5jFf-w.js b/nicegui/elements/lib/codemirror/sql-BP5jFf-w.js new file mode 100644 index 000000000..6d108800d --- /dev/null +++ b/nicegui/elements/lib/codemirror/sql-BP5jFf-w.js @@ -0,0 +1 @@ +function e(e){var t=e.client||{},r=e.atoms||{false:!0,true:!0,null:!0},a=e.builtin||n(o),s=e.keywords||n(i),l=e.operatorChars||/^[*+\-%<>!=&|~^\/]/,c=e.support||{},u=e.hooks||{},d=e.dateSQL||{date:!0,time:!0,timestamp:!0},m=!1!==e.backslashStringEscapes,p=e.brackets||/^[\{}\(\)\[\]]/,g=e.punctuation||/^[;.,:]/;function h(e,i){var n=e.next();if(u[n]){var o=u[n](e,i);if(!1!==o)return o}if(c.hexNumber&&("0"==n&&e.match(/^[xX][0-9a-fA-F]+/)||("x"==n||"X"==n)&&e.match(/^'[0-9a-fA-F]*'/)))return"number";if(c.binaryNumber&&(("b"==n||"B"==n)&&e.match(/^'[01]+'/)||"0"==n&&e.match(/^b[01]*/)))return"number";if(n.charCodeAt(0)>47&&n.charCodeAt(0)<58)return e.match(/^[0-9]*(\.[0-9]+)?([eE][-+]?[0-9]+)?/),c.decimallessFloat&&e.match(/^\.(?!\.)/),"number";if("?"==n&&(e.eatSpace()||e.eol()||e.eat(";")))return"macroName";if("'"==n||'"'==n&&c.doubleQuote)return i.tokenize=b(n),i.tokenize(e,i);if((c.nCharCast&&("n"==n||"N"==n)||c.charsetCast&&"_"==n&&e.match(/[a-z][a-z0-9]*/i))&&("'"==e.peek()||'"'==e.peek()))return"keyword";if(c.escapeConstant&&("e"==n||"E"==n)&&("'"==e.peek()||'"'==e.peek()&&c.doubleQuote))return i.tokenize=function(e,t){return(t.tokenize=b(e.next(),!0))(e,t)},"keyword";if(c.commentSlashSlash&&"/"==n&&e.eat("/"))return e.skipToEnd(),"comment";if(c.commentHash&&"#"==n||"-"==n&&e.eat("-")&&(!c.commentSpaceRequired||e.eat(" ")))return e.skipToEnd(),"comment";if("/"==n&&e.eat("*"))return i.tokenize=f(1),i.tokenize(e,i);if("."!=n){if(l.test(n))return e.eatWhile(l),"operator";if(p.test(n))return"bracket";if(g.test(n))return e.eatWhile(g),"punctuation";if("{"==n&&(e.match(/^( )*(d|D|t|T|ts|TS)( )*'[^']*'( )*}/)||e.match(/^( )*(d|D|t|T|ts|TS)( )*"[^"]*"( )*}/)))return"number";e.eatWhile(/^[_\w\d]/);var m=e.current().toLowerCase();return d.hasOwnProperty(m)&&(e.match(/^( )+'[^']*'/)||e.match(/^( )+"[^"]*"/))?"number":r.hasOwnProperty(m)?"atom":a.hasOwnProperty(m)?"type":s.hasOwnProperty(m)?"keyword":t.hasOwnProperty(m)?"builtin":null}return c.zerolessFloat&&e.match(/^(?:\d+(?:e[+-]?\d+)?)/i)?"number":e.match(/^\.+/)?null:c.ODBCdotTable&&e.match(/^[\w\d_$#]+/)?"type":void 0}function b(e,t){return function(r,a){for(var i,n=!1;null!=(i=r.next());){if(i==e&&!n){a.tokenize=h;break}n=(m||t)&&!n&&"\\"==i}return"string"}}function f(e){return function(t,r){var a=t.match(/^.*?(\/\*|\*\/)/);return a?"/*"==a[1]?r.tokenize=f(e+1):r.tokenize=e>1?f(e-1):h:t.skipToEnd(),"comment"}}function _(e,t,r){t.context={prev:t.context,indent:e.indentation(),col:e.column(),type:r}}return{name:"sql",startState:function(){return{tokenize:h,context:null}},token:function(e,t){if(e.sol()&&t.context&&null==t.context.align&&(t.context.align=!1),t.tokenize==h&&e.eatSpace())return null;var r=t.tokenize(e,t);if("comment"==r)return r;t.context&&null==t.context.align&&(t.context.align=!0);var a=e.current();return"("==a?_(e,t,")"):"["==a?_(e,t,"]"):t.context&&t.context.type==a&&function(e){e.indent=e.context.indent,e.context=e.context.prev}(t),r},indent:function(e,t,r){var a=e.context;if(!a)return null;var i=t.charAt(0)==a.type;return a.align?a.col+(i?0:1):a.indent+(i?0:r.unit)},languageData:{commentTokens:{line:c.commentSlashSlash?"//":c.commentHash?"#":"--",block:{open:"/*",close:"*/"}},closeBrackets:{brackets:["(","[","{","'",'"',"`"]}}}}function t(e){for(var t;null!=(t=e.next());)if("`"==t&&!e.eat("`"))return"string.special";return e.backUp(e.current().length-1),e.eatWhile(/\w/)?"string.special":null}function r(e){return e.eat("@")&&(e.match("session."),e.match("local."),e.match("global.")),e.eat("'")?(e.match(/^.*'/),"string.special"):e.eat('"')?(e.match(/^.*"/),"string.special"):e.eat("`")?(e.match(/^.*`/),"string.special"):e.match(/^[0-9a-zA-Z$\.\_]+/)?"string.special":null}function a(e){return e.eat("N")?"atom":e.match(/^[a-zA-Z.#!?]/)?"string.special":null}var i="alter and as asc between by count create delete desc distinct drop from group having in insert into is join like not on or order select set table union update values where limit ";function n(e){for(var t={},r=e.split(" "),a=0;a!=^\&|\/]/,brackets:/^[\{}\(\)]/,punctuation:/^[;.,:/]/,backslashStringEscapes:!1,dateSQL:n("date datetimeoffset datetime2 smalldatetime datetime time"),hooks:{"@":r}}),c=e({client:n("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:n(i+"accessible action add after algorithm all analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general get global grant grants group group_concat handler hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show signal slave slow smallint snapshot soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"),builtin:n("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"),atoms:n("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:n("date time timestamp"),support:n("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":r,"`":t,"\\":a}}),u=e({client:n("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:n(i+"accessible action add after algorithm all always analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general generated get global grant grants group group_concat handler hard hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password persistent phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show shutdown signal slave slow smallint snapshot soft soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views virtual warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"),builtin:n("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"),atoms:n("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:n("date time timestamp"),support:n("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":r,"`":t,"\\":a}}),d=e({client:n("auth backup bail binary changes check clone databases dbinfo dump echo eqp exit explain fullschema headers help import imposter indexes iotrace limit lint load log mode nullvalue once open output print prompt quit read restore save scanstats schema separator session shell show stats system tables testcase timeout timer trace vfsinfo vfslist vfsname width"),keywords:n(i+"abort action add after all analyze attach autoincrement before begin cascade case cast check collate column commit conflict constraint cross current_date current_time current_timestamp database default deferrable deferred detach each else end escape except exclusive exists explain fail for foreign full glob if ignore immediate index indexed initially inner instead intersect isnull key left limit match natural no notnull null of offset outer plan pragma primary query raise recursive references regexp reindex release rename replace restrict right rollback row savepoint temp temporary then to transaction trigger unique using vacuum view virtual when with without"),builtin:n("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text clob bigint int int2 int8 integer float double char varchar date datetime year unsigned signed numeric real"),atoms:n("null current_date current_time current_timestamp"),operatorChars:/^[*+\-%<>!=&|/~]/,dateSQL:n("date time timestamp datetime"),support:n("decimallessFloat zerolessFloat"),identifierQuote:'"',hooks:{"@":r,":":r,"?":r,$:r,'"':function(e){for(var t;null!=(t=e.next());)if('"'==t&&!e.eat('"'))return"string.special";return e.backUp(e.current().length-1),e.eatWhile(/\w/)?"string.special":null},"`":t}}),m=e({client:{},keywords:n("add all allow alter and any apply as asc authorize batch begin by clustering columnfamily compact consistency count create custom delete desc distinct drop each_quorum exists filtering from grant if in index insert into key keyspace keyspaces level limit local_one local_quorum modify nan norecursive nosuperuser not of on one order password permission permissions primary quorum rename revoke schema select set storage superuser table three to token truncate ttl two type unlogged update use user users using values where with writetime"),builtin:n("ascii bigint blob boolean counter decimal double float frozen inet int list map static text timestamp timeuuid tuple uuid varchar varint"),atoms:n("false true infinity NaN"),operatorChars:/^[<>=]/,dateSQL:{},support:n("commentSlashSlash decimallessFloat"),hooks:{}}),p=e({client:n("appinfo arraysize autocommit autoprint autorecovery autotrace blockterminator break btitle cmdsep colsep compatibility compute concat copycommit copytypecheck define describe echo editfile embedded escape exec execute feedback flagger flush heading headsep instance linesize lno loboffset logsource long longchunksize markup native newpage numformat numwidth pagesize pause pno recsep recsepchar release repfooter repheader serveroutput shiftinout show showmode size spool sqlblanklines sqlcase sqlcode sqlcontinue sqlnumber sqlpluscompatibility sqlprefix sqlprompt sqlterminator suffix tab term termout time timing trimout trimspool ttitle underline verify version wrap"),keywords:n("abort accept access add all alter and any array arraylen as asc assert assign at attributes audit authorization avg base_table begin between binary_integer body boolean by case cast char char_base check close cluster clusters colauth column comment commit compress connect connected constant constraint crash create current currval cursor data_base database date dba deallocate debugoff debugon decimal declare default definition delay delete desc digits dispose distinct do drop else elseif elsif enable end entry escape exception exception_init exchange exclusive exists exit external fast fetch file for force form from function generic goto grant group having identified if immediate in increment index indexes indicator initial initrans insert interface intersect into is key level library like limited local lock log logging long loop master maxextents maxtrans member minextents minus mislabel mode modify multiset new next no noaudit nocompress nologging noparallel not nowait number_base object of off offline on online only open option or order out package parallel partition pctfree pctincrease pctused pls_integer positive positiven pragma primary prior private privileges procedure public raise range raw read rebuild record ref references refresh release rename replace resource restrict return returning returns reverse revoke rollback row rowid rowlabel rownum rows run savepoint schema segment select separate session set share snapshot some space split sql start statement storage subtype successful synonym tabauth table tables tablespace task terminate then to trigger truncate type union unique unlimited unrecoverable unusable update use using validate value values variable view views when whenever where while with work"),builtin:n("abs acos add_months ascii asin atan atan2 average bfile bfilename bigserial bit blob ceil character chartorowid chr clob concat convert cos cosh count dec decode deref dual dump dup_val_on_index empty error exp false float floor found glb greatest hextoraw initcap instr instrb int integer isopen last_day least length lengthb ln lower lpad ltrim lub make_ref max min mlslabel mod months_between natural naturaln nchar nclob new_time next_day nextval nls_charset_decl_len nls_charset_id nls_charset_name nls_initcap nls_lower nls_sort nls_upper nlssort no_data_found notfound null number numeric nvarchar2 nvl others power rawtohex real reftohex round rowcount rowidtochar rowtype rpad rtrim serial sign signtype sin sinh smallint soundex sqlcode sqlerrm sqrt stddev string substr substrb sum sysdate tan tanh to_char text to_date to_label to_multi_byte to_number to_single_byte translate true trunc uid unlogged upper user userenv varchar varchar2 variance varying vsize xml"),operatorChars:/^[*\/+\-%<>!=~]/,dateSQL:n("date time timestamp"),support:n("doubleQuote nCharCast zerolessFloat binaryNumber hexNumber")}),g=e({keywords:n("select alter $elem$ $key$ $value$ add after all analyze and archive as asc before between binary both bucket buckets by cascade case cast change cluster clustered clusterstatus collection column columns comment compute concatenate continue create cross cursor data database databases dbproperties deferred delete delimited desc describe directory disable distinct distribute drop else enable end escaped exclusive exists explain export extended external fetch fields fileformat first format formatted from full function functions grant group having hold_ddltime idxproperties if import in index indexes inpath inputdriver inputformat insert intersect into is items join keys lateral left like limit lines load local location lock locks mapjoin materialized minus msck no_drop nocompress not of offline on option or order out outer outputdriver outputformat overwrite partition partitioned partitions percent plus preserve procedure purge range rcfile read readonly reads rebuild recordreader recordwriter recover reduce regexp rename repair replace restrict revoke right rlike row schema schemas semi sequencefile serde serdeproperties set shared show show_database sort sorted ssl statistics stored streamtable table tables tablesample tblproperties temporary terminated textfile then tmp to touch transform trigger unarchive undo union uniquejoin unlock update use using utc utc_tmestamp view when where while with admin authorization char compact compactions conf cube current current_date current_timestamp day decimal defined dependency directories elem_type exchange file following for grouping hour ignore inner interval jar less logical macro minute month more none noscan over owner partialscan preceding pretty principals protection reload rewrite role roles rollup rows second server sets skewed transactions truncate unbounded unset uri user values window year"),builtin:n("bool boolean long timestamp tinyint smallint bigint int float double date datetime unsigned string array struct map uniontype key_type utctimestamp value_type varchar"),atoms:n("false true null unknown"),operatorChars:/^[*+\-%<>!=]/,dateSQL:n("date timestamp"),support:n("ODBCdotTable doubleQuote binaryNumber hexNumber")}),h=e({client:n("source"),keywords:n(i+"a abort abs absent absolute access according action ada add admin after aggregate alias all allocate also alter always analyse analyze and any are array array_agg array_max_cardinality as asc asensitive assert assertion assignment asymmetric at atomic attach attribute attributes authorization avg backward base64 before begin begin_frame begin_partition bernoulli between bigint binary bit bit_length blob blocked bom boolean both breadth by c cache call called cardinality cascade cascaded case cast catalog catalog_name ceil ceiling chain char char_length character character_length character_set_catalog character_set_name character_set_schema characteristics characters check checkpoint class class_origin clob close cluster coalesce cobol collate collation collation_catalog collation_name collation_schema collect column column_name columns command_function command_function_code comment comments commit committed concurrently condition condition_number configuration conflict connect connection connection_name constant constraint constraint_catalog constraint_name constraint_schema constraints constructor contains content continue control conversion convert copy corr corresponding cost count covar_pop covar_samp create cross csv cube cume_dist current current_catalog current_date current_default_transform_group current_path current_role current_row current_schema current_time current_timestamp current_transform_group_for_type current_user cursor cursor_name cycle data database datalink datatype date datetime_interval_code datetime_interval_precision day db deallocate debug dec decimal declare default defaults deferrable deferred defined definer degree delete delimiter delimiters dense_rank depends depth deref derived desc describe descriptor detach detail deterministic diagnostics dictionary disable discard disconnect dispatch distinct dlnewcopy dlpreviouscopy dlurlcomplete dlurlcompleteonly dlurlcompletewrite dlurlpath dlurlpathonly dlurlpathwrite dlurlscheme dlurlserver dlvalue do document domain double drop dump dynamic dynamic_function dynamic_function_code each element else elseif elsif empty enable encoding encrypted end end_frame end_partition endexec enforced enum equals errcode error escape event every except exception exclude excluding exclusive exec execute exists exit exp explain expression extension external extract false family fetch file filter final first first_value flag float floor following for force foreach foreign fortran forward found frame_row free freeze from fs full function functions fusion g general generated get global go goto grant granted greatest group grouping groups handler having header hex hierarchy hint hold hour id identity if ignore ilike immediate immediately immutable implementation implicit import in include including increment indent index indexes indicator info inherit inherits initially inline inner inout input insensitive insert instance instantiable instead int integer integrity intersect intersection interval into invoker is isnull isolation join k key key_member key_type label lag language large last last_value lateral lead leading leakproof least left length level library like like_regex limit link listen ln load local localtime localtimestamp location locator lock locked log logged loop lower m map mapping match matched materialized max max_cardinality maxvalue member merge message message_length message_octet_length message_text method min minute minvalue mod mode modifies module month more move multiset mumps name names namespace national natural nchar nclob nesting new next nfc nfd nfkc nfkd nil no none normalize normalized not nothing notice notify notnull nowait nth_value ntile null nullable nullif nulls number numeric object occurrences_regex octet_length octets of off offset oids old on only open operator option options or order ordering ordinality others out outer output over overlaps overlay overriding owned owner p pad parallel parameter parameter_mode parameter_name parameter_ordinal_position parameter_specific_catalog parameter_specific_name parameter_specific_schema parser partial partition pascal passing passthrough password path percent percent_rank percentile_cont percentile_disc perform period permission pg_context pg_datatype_name pg_exception_context pg_exception_detail pg_exception_hint placing plans pli policy portion position position_regex power precedes preceding precision prepare prepared preserve primary print_strict_params prior privileges procedural procedure procedures program public publication query quote raise range rank read reads real reassign recheck recovery recursive ref references referencing refresh regr_avgx regr_avgy regr_count regr_intercept regr_r2 regr_slope regr_sxx regr_sxy regr_syy reindex relative release rename repeatable replace replica requiring reset respect restart restore restrict result result_oid return returned_cardinality returned_length returned_octet_length returned_sqlstate returning returns reverse revoke right role rollback rollup routine routine_catalog routine_name routine_schema routines row row_count row_number rows rowtype rule savepoint scale schema schema_name schemas scope scope_catalog scope_name scope_schema scroll search second section security select selective self sensitive sequence sequences serializable server server_name session session_user set setof sets share show similar simple size skip slice smallint snapshot some source space specific specific_name specifictype sql sqlcode sqlerror sqlexception sqlstate sqlwarning sqrt stable stacked standalone start state statement static statistics stddev_pop stddev_samp stdin stdout storage strict strip structure style subclass_origin submultiset subscription substring substring_regex succeeds sum symmetric sysid system system_time system_user t table table_name tables tablesample tablespace temp template temporary text then ties time timestamp timezone_hour timezone_minute to token top_level_count trailing transaction transaction_active transactions_committed transactions_rolled_back transform transforms translate translate_regex translation treat trigger trigger_catalog trigger_name trigger_schema trim trim_array true truncate trusted type types uescape unbounded uncommitted under unencrypted union unique unknown unlink unlisten unlogged unnamed unnest until untyped update upper uri usage use_column use_variable user user_defined_type_catalog user_defined_type_code user_defined_type_name user_defined_type_schema using vacuum valid validate validator value value_of values var_pop var_samp varbinary varchar variable_conflict variadic varying verbose version versioning view views volatile warning when whenever where while whitespace width_bucket window with within without work wrapper write xml xmlagg xmlattributes xmlbinary xmlcast xmlcomment xmlconcat xmldeclaration xmldocument xmlelement xmlexists xmlforest xmliterate xmlnamespaces xmlparse xmlpi xmlquery xmlroot xmlschema xmlserialize xmltable xmltext xmlvalidate year yes zone"),builtin:n("bigint int8 bigserial serial8 bit varying varbit boolean bool box bytea character char varchar cidr circle date double precision float8 inet integer int int4 interval json jsonb line lseg macaddr macaddr8 money numeric decimal path pg_lsn point polygon real float4 smallint int2 smallserial serial2 serial serial4 text time without zone with timetz timestamp timestamptz tsquery tsvector txid_snapshot uuid xml"),atoms:n("false true null unknown"),operatorChars:/^[*\/+\-%<>!=&|^\/#@?~]/,backslashStringEscapes:!1,dateSQL:n("date time timestamp"),support:n("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast escapeConstant")}),b=e({keywords:n("ancestor and asc by contains desc descendant distinct from group has in is limit offset on order select superset where"),atoms:n("false true"),builtin:n("blob datetime first key __key__ string integer double boolean null"),operatorChars:/^[*+\-%<>!=]/}),f=e({client:n("source"),keywords:n("abort absolute access action active add admin after aggregate all also alter always analyse analyze and any array as asc assertion assignment asymmetric at authorization backward before begin between bigint binary bit boolean both by cache called cascade cascaded case cast chain char character characteristics check checkpoint class close cluster coalesce codegen collate column comment commit committed concurrency concurrently configuration connection constraint constraints contains content continue conversion copy cost cpu_rate_limit create createdb createexttable createrole createuser cross csv cube current current_catalog current_date current_role current_schema current_time current_timestamp current_user cursor cycle data database day deallocate dec decimal declare decode default defaults deferrable deferred definer delete delimiter delimiters deny desc dictionary disable discard distinct distributed do document domain double drop dxl each else enable encoding encrypted end enum errors escape every except exchange exclude excluding exclusive execute exists explain extension external extract false family fetch fields filespace fill filter first float following for force foreign format forward freeze from full function global grant granted greatest group group_id grouping handler hash having header hold host hour identity if ignore ilike immediate immutable implicit in including inclusive increment index indexes inherit inherits initially inline inner inout input insensitive insert instead int integer intersect interval into invoker is isnull isolation join key language large last leading least left level like limit list listen load local localtime localtimestamp location lock log login mapping master match maxvalue median merge minute minvalue missing mode modifies modify month move name names national natural nchar new newline next no nocreatedb nocreateexttable nocreaterole nocreateuser noinherit nologin none noovercommit nosuperuser not nothing notify notnull nowait null nullif nulls numeric object of off offset oids old on only operator option options or order ordered others out outer over overcommit overlaps overlay owned owner parser partial partition partitions passing password percent percentile_cont percentile_disc placing plans position preceding precision prepare prepared preserve primary prior privileges procedural procedure protocol queue quote randomly range read readable reads real reassign recheck recursive ref references reindex reject relative release rename repeatable replace replica reset resource restart restrict returning returns revoke right role rollback rollup rootpartition row rows rule savepoint scatter schema scroll search second security segment select sequence serializable session session_user set setof sets share show similar simple smallint some split sql stable standalone start statement statistics stdin stdout storage strict strip subpartition subpartitions substring superuser symmetric sysid system table tablespace temp template temporary text then threshold ties time timestamp to trailing transaction treat trigger trim true truncate trusted type unbounded uncommitted unencrypted union unique unknown unlisten until update user using vacuum valid validation validator value values varchar variadic varying verbose version view volatile web when where whitespace window with within without work writable write xml xmlattributes xmlconcat xmlelement xmlexists xmlforest xmlparse xmlpi xmlroot xmlserialize year yes zone"),builtin:n("bigint int8 bigserial serial8 bit varying varbit boolean bool box bytea character char varchar cidr circle date double precision float float8 inet integer int int4 interval json jsonb line lseg macaddr macaddr8 money numeric decimal path pg_lsn point polygon real float4 smallint int2 smallserial serial2 serial serial4 text time without zone with timetz timestamp timestamptz tsquery tsvector txid_snapshot uuid xml"),atoms:n("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^\/#@?~]/,dateSQL:n("date time timestamp"),support:n("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast")}),_=e({keywords:n("add after all alter analyze and anti archive array as asc at between bucket buckets by cache cascade case cast change clear cluster clustered codegen collection column columns comment commit compact compactions compute concatenate cost create cross cube current current_date current_timestamp database databases data dbproperties defined delete delimited deny desc describe dfs directories distinct distribute drop else end escaped except exchange exists explain export extended external false fields fileformat first following for format formatted from full function functions global grant group grouping having if ignore import in index indexes inner inpath inputformat insert intersect interval into is items join keys last lateral lazy left like limit lines list load local location lock locks logical macro map minus msck natural no not null nulls of on optimize option options or order out outer outputformat over overwrite partition partitioned partitions percent preceding principals purge range recordreader recordwriter recover reduce refresh regexp rename repair replace reset restrict revoke right rlike role roles rollback rollup row rows schema schemas select semi separated serde serdeproperties set sets show skewed sort sorted start statistics stored stratify struct table tables tablesample tblproperties temp temporary terminated then to touch transaction transactions transform true truncate unarchive unbounded uncache union unlock unset use using values view when where window with"),builtin:n("tinyint smallint int bigint boolean float double string binary timestamp decimal array map struct uniontype delimited serde sequencefile textfile rcfile inputformat outputformat"),atoms:n("false true null"),operatorChars:/^[*\/+\-%<>!=~&|^]/,dateSQL:n("date time timestamp"),support:n("ODBCdotTable doubleQuote zerolessFloat")}),y=e({client:n("source"),keywords:n("alter and as asc between by count create delete desc distinct drop from group having in insert into is join like not on or order select set table union update values where limit after all and as at asc avedev avg between by case cast coalesce count create current_timestamp day days delete define desc distinct else end escape events every exists false first from full group having hour hours in inner insert instanceof into irstream is istream join last lastweekday left limit like max match_recognize matches median measures metadatasql min minute minutes msec millisecond milliseconds not null offset on or order outer output partition pattern prev prior regexp retain-union retain-intersection right rstream sec second seconds select set some snapshot sql stddev sum then true unidirectional until update variable weekday when where window"),builtin:{},atoms:n("false true null"),operatorChars:/^[*+\-%<>!=&|^\/#@?~]/,dateSQL:n("time"),support:n("decimallessFloat zerolessFloat binaryNumber hexNumber")});export{m as cassandra,y as esper,f as gpSQL,b as gql,g as hive,u as mariaDB,l as msSQL,c as mySQL,h as pgSQL,p as plSQL,_ as sparkSQL,e as sql,d as sqlite,s as standardSQL}; diff --git a/nicegui/elements/lib/codemirror/stex-Ba7Sj9VR.js b/nicegui/elements/lib/codemirror/stex-Ba7Sj9VR.js new file mode 100644 index 000000000..94b1c3139 --- /dev/null +++ b/nicegui/elements/lib/codemirror/stex-Ba7Sj9VR.js @@ -0,0 +1 @@ +function t(t){function e(t,e){t.cmdState.push(e)}function n(t){return t.cmdState.length>0?t.cmdState[t.cmdState.length-1]:null}function r(t,e,n){return function(){this.name=t,this.bracketNo=0,this.style=e,this.styles=n,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var a={};function i(t,e){t.f=e}function c(t,r){var c;if(t.match(/^\\[a-zA-Z@\xc0-\u1fff\u2060-\uffff]+/)){var f=t.current().slice(1);return e(r,c=new(c=a.hasOwnProperty(f)?a[f]:a.DEFAULT)),i(r,o),c.style}if(t.match(/^\\[$&%#{}_]/))return"tag";if(t.match(/^\\[,;!\/\\]/))return"tag";if(t.match("\\["))return i(r,(function(t,e){return u(t,e,"\\]")})),"keyword";if(t.match("\\("))return i(r,(function(t,e){return u(t,e,"\\)")})),"keyword";if(t.match("$$"))return i(r,(function(t,e){return u(t,e,"$$")})),"keyword";if(t.match("$"))return i(r,(function(t,e){return u(t,e,"$")})),"keyword";var m=t.next();return"%"==m?(t.skipToEnd(),"comment"):"}"==m||"]"==m?(c=n(r))?(c.closeBracket(m),i(r,o),"bracket"):"error":"{"==m||"["==m?(e(r,c=new(c=a.DEFAULT)),"bracket"):/\d/.test(m)?(t.eatWhile(/[\w.%]/),"atom"):(t.eatWhile(/[\w\-_]/),c=function(t){for(var e=t.cmdState,n=e.length-1;n>=0;n--){var r=e[n];if("DEFAULT"!=r.name)return r}return{styleIdentifier:function(){return null}}}(r),"begin"==c.name&&(c.argument=t.current()),c.styleIdentifier())}function u(t,e,n){if(t.eatSpace())return null;if(n&&t.match(n))return i(e,c),"keyword";if(t.match(/^\\[a-zA-Z@]+/))return"tag";if(t.match(/^[a-zA-Z]+/))return"variableName.special";if(t.match(/^\\[$&%#{}_]/))return"tag";if(t.match(/^\\[,;!\/]/))return"tag";if(t.match(/^[\^_&]/))return"tag";if(t.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(t.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var r=t.next();return"{"==r||"}"==r||"["==r||"]"==r||"("==r||")"==r?"bracket":"%"==r?(t.skipToEnd(),"comment"):"error"}function o(t,e){var r=t.peek();return"{"==r||"["==r?(n(e).openBracket(r),t.eat(r),i(e,c),"bracket"):/[ \t\r]/.test(r)?(t.eat(r),null):(i(e,c),function(t){var e=t.cmdState.pop();e&&e.closeBracket()}(e),c(t,e))}return a.importmodule=r("importmodule","tag",["string","builtin"]),a.documentclass=r("documentclass","tag",["","atom"]),a.usepackage=r("usepackage","tag",["atom"]),a.begin=r("begin","tag",["atom"]),a.end=r("end","tag",["atom"]),a.label=r("label","tag",["atom"]),a.ref=r("ref","tag",["atom"]),a.eqref=r("eqref","tag",["atom"]),a.cite=r("cite","tag",["atom"]),a.bibitem=r("bibitem","tag",["atom"]),a.Bibitem=r("Bibitem","tag",["atom"]),a.RBibitem=r("RBibitem","tag",["atom"]),a.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}},{name:"stex",startState:function(){return{cmdState:[],f:t?function(t,e){return u(t,e)}:c}},copyState:function(t){return{cmdState:t.cmdState.slice(),f:t.f}},token:function(t,e){return e.f(t,e)},blankLine:function(t){t.f=c,t.cmdState.length=0},languageData:{commentTokens:{line:"%"}}}}const e=t(!1),n=t(!0);export{e as stex,n as stexMath}; diff --git a/nicegui/elements/lib/codemirror/stylus-3mOX9C7I.js b/nicegui/elements/lib/codemirror/stylus-3mOX9C7I.js new file mode 100644 index 000000000..b421b81f7 --- /dev/null +++ b/nicegui/elements/lib/codemirror/stylus-3mOX9C7I.js @@ -0,0 +1 @@ +var e=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","bgsound","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","nobr","noframes","noscript","object","ol","optgroup","option","output","p","param","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","var","video"],t=["domain","regexp","url-prefix","url"],r=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],i=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","dynamic-range","video-dynamic-range"],a=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backface-visibility","background","background-attachment","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","baseline-shift","binding","bleed","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-feature-settings","font-family","font-kerning","font-language-override","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-weight","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-position","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","justify-content","left","letter-spacing","line-break","line-height","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marker-offset","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","max-height","max-width","min-height","min-width","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotation","rotation-point","ruby-align","ruby-overhang","ruby-position","ruby-span","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-outline","text-overflow","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode","font-smoothing","osx-font-smoothing"],o=["scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-3d-light-color","scrollbar-track-color","shape-inside","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","zoom"],n=["font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],l=["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"],s=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","avoid","avoid-column","avoid-page","avoid-region","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","column","compact","condensed","conic-gradient","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","dashed","decimal","decimal-leading-zero","default","default-button","destination-atop","destination-in","destination-out","destination-over","devanagari","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","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fixed","flat","flex","footnotes","forwards","from","geometricPrecision","georgian","graytext","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hebrew","help","hidden","hide","high","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","malayalam","match","matrix","matrix3d","media-play-button","media-slider","media-sliderthumb","media-volume-slider","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","myanmar","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","octal","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","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","repeating-conic-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row-resize","rtl","run-in","running","s-resize","sans-serif","scale","scale3d","scaleX","scaleY","scaleZ","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","semi-condensed","semi-expanded","separate","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","solid","somali","source-atop","source-in","source-out","source-over","space","spell-out","square","square-button","standard","start","static","status-bar","stretch","stroke","sub","subpixel-antialiased","super","sw-resize","symbolic","symbols","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","x-large","x-small","xor","xx-large","xx-small","bicubic","optimizespeed","grayscale","row","row-reverse","wrap","wrap-reverse","column-reverse","flex-start","flex-end","space-between","space-around","unset"],c=["in","and","or","not","is not","is a","is","isnt","defined","if unless"],d=["for","if","else","unless","from","to"],u=["null","true","false","href","title","type","not-allowed","readonly","disabled"],m=e.concat(t,r,i,a,o,l,s,n,c,d,u,["@font-face","@keyframes","@media","@viewport","@page","@host","@supports","@block","@css"]);function p(e){return e=e.sort((function(e,t){return t>e})),new RegExp("^(("+e.join(")|(")+"))\\b")}function h(e){for(var t={},r=0;r]=?|\?:|\~)/,C=p(c),_=h(d),U=new RegExp(/^\-(moz|ms|o|webkit)-/i),E=h(u),O="",W={};function A(e,t){if(O=e.string.match(/(^[\w-]+\s*=\s*$)|(^\s*[\w-]+\s*=\s*[\w-])|(^\s*(\.|#|@|\$|\&|\[|\d|\+|::?|\{|\>|~|\/)?\s*[\w-]*([a-z0-9-]|\*|\/\*)(\(|,)?)/),t.context.line.firstWord=O?O[0].replace(/^\s*/,""):"",t.context.line.indent=e.indentation(),b=e.peek(),e.match("//"))return e.skipToEnd(),["comment","comment"];if(e.match("/*"))return t.tokenize=R,R(e,t);if('"'==b||"'"==b)return e.next(),t.tokenize=S(b),t.tokenize(e,t);if("@"==b)return e.next(),e.eatWhile(/[\w\\-]/),["def",e.current()];if("#"==b){if(e.next(),e.match(/^[0-9a-f]{3}([0-9a-f]([0-9a-f]{2}){0,2})?\b(?!-)/i))return["atom","atom"];if(e.match(/^[a-z][\w-]*/i))return["builtin","hash"]}return e.match(U)?["meta","vendor-prefixes"]:e.match(/^-?[0-9]?\.?[0-9]/)?(e.eatWhile(/[a-z%]/i),["number","unit"]):"!"==b?(e.next(),[e.match(/^(important|optional)/i)?"keyword":"operator","important"]):"."==b&&e.match(/^\.[a-z][\w-]*/i)?["qualifier","qualifier"]:e.match(j)?("("==e.peek()&&(t.tokenize=X),["property","word"]):e.match(/^[a-z][\w-]*\(/i)?(e.backUp(1),["keyword","mixin"]):e.match(/^(\+|-)[a-z][\w-]*\(/i)?(e.backUp(1),["keyword","block-mixin"]):e.string.match(/^\s*&/)&&e.match(/^[-_]+[a-z][\w-]*/)?["qualifier","qualifier"]:e.match(/^(\/|&)(-|_|:|\.|#|[a-z])/)?(e.backUp(1),["variableName.special","reference"]):e.match(/^&{1}\s*$/)?["variableName.special","reference"]:e.match(C)?["operator","operator"]:e.match(/^\$?[-_]*[a-z0-9]+[\w-]*/i)?e.match(/^(\.|\[)[\w-\'\"\]]+/i,!1)&&!F(e.current())?(e.match("."),["variable","variable-name"]):["variable","word"]:e.match(P)?["operator",e.current()]:/[:;,{}\[\]\(\)]/.test(b)?(e.next(),[null,b]):(e.next(),[null,null])}function R(e,t){for(var r,i=!1;null!=(r=e.next());){if(i&&"/"==r){t.tokenize=null;break}i="*"==r}return["comment","comment"]}function S(e){return function(t,r){for(var i,a=!1;null!=(i=t.next());){if(i==e&&!a){")"==e&&t.backUp(1);break}a=!a&&"\\"==i}return(i==e||!a&&")"!=e)&&(r.tokenize=null),["string","string"]}}function X(e,t){return e.next(),e.match(/\s*[\"\')]/,!1)?t.tokenize=null:t.tokenize=S(")"),[null,"("]}function Y(e,t,r,i){this.type=e,this.indent=t,this.prev=r,this.line=i||{firstWord:"",indent:0}}function Z(e,t,r,i){return i=i>=0?i:t.indentUnit,e.context=new Y(r,t.indentation()+i,e.context),r}function T(e,t,r){var i=e.context.indent-t.indentUnit;return r=r||!1,e.context=e.context.prev,r&&(e.context.indent=i),e.context.type}function D(e,t,r,i){for(var a=1;a>0;a--)r.context=r.context.prev;return function(e,t,r){return W[r.context.type](e,t,r)}(e,t,r)}function F(e){return e.toLowerCase()in w}function I(e){return(e=e.toLowerCase())in v||e in L}function G(e){return e.toLowerCase()in _}function H(e){return e.toLowerCase().match(U)}function J(e){var t=e.toLowerCase(),r="variable";return F(e)?r="tag":G(e)?r="block-keyword":I(e)?r="property":t in z||t in E?r="atom":"return"==t||t in q?r="keyword":e.match(/^[A-Z]/)&&(r="string"),r}function K(e,t){return ee(t)&&("{"==e||"]"==e||"hash"==e||"qualifier"==e)||"block-mixin"==e}function M(e,t){return"{"==e&&t.match(/^\s*\$?[\w-]+/i,!1)}function Q(e,t){return":"==e&&t.match(/^[a-z-]+/,!1)}function V(e){return e.sol()||e.string.match(new RegExp("^\\s*"+e.current().replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")))}function ee(e){return e.eol()||e.match(/^\s*$/,!1)}function te(e){var t=/^\s*[-_]*[a-z0-9]+[\w-]*/i,r="string"==typeof e?e.match(t):e.string.match(t);return r?r[0].replace(/^\s*/,""):""}W.block=function(e,t,r){if("comment"==e&&V(t)||","==e&&ee(t)||"mixin"==e)return Z(r,t,"block",0);if(M(e,t))return Z(r,t,"interpolation");if(ee(t)&&"]"==e&&!/^\s*(\.|#|:|\[|\*|&)/.test(t.string)&&!F(te(t)))return Z(r,t,"block",0);if(K(e,t))return Z(r,t,"block");if("}"==e&&ee(t))return Z(r,t,"block",0);if("variable-name"==e)return t.string.match(/^\s?\$[\w-\.\[\]\'\"]+$/)||G(te(t))?Z(r,t,"variableName"):Z(r,t,"variableName",0);if("="==e)return ee(t)||G(te(t))?Z(r,t,"block"):Z(r,t,"block",0);if("*"==e&&(ee(t)||t.match(/\s*(,|\.|#|\[|:|{)/,!1)))return k="tag",Z(r,t,"block");if(Q(e,t))return Z(r,t,"pseudo");if(/@(font-face|media|supports|(-moz-)?document)/.test(e))return Z(r,t,ee(t)?"block":"atBlock");if(/@(-(moz|ms|o|webkit)-)?keyframes$/.test(e))return Z(r,t,"keyframes");if(/@extends?/.test(e))return Z(r,t,"extend",0);if(e&&"@"==e.charAt(0))return t.indentation()>0&&I(t.current().slice(1))?(k="variable","block"):/(@import|@require|@charset)/.test(e)?Z(r,t,"block",0):Z(r,t,"block");if("reference"==e&&ee(t))return Z(r,t,"block");if("("==e)return Z(r,t,"parens");if("vendor-prefixes"==e)return Z(r,t,"vendorPrefixes");if("word"==e){var i=t.current();if("property"==(k=J(i)))return V(t)?Z(r,t,"block",0):(k="atom","block");if("tag"==k){if(/embed|menu|pre|progress|sub|table/.test(i)&&I(te(t)))return k="atom","block";if(t.string.match(new RegExp("\\[\\s*"+i+"|"+i+"\\s*\\]")))return k="atom","block";if(y.test(i)&&(V(t)&&t.string.match(/=/)||!V(t)&&!t.string.match(/^(\s*\.|#|\&|\[|\/|>|\*)/)&&!F(te(t))))return k="variable",G(te(t))?"block":Z(r,t,"block",0);if(ee(t))return Z(r,t,"block")}if("block-keyword"==k)return k="keyword",t.current(/(if|unless)/)&&!V(t)?"block":Z(r,t,"block");if("return"==i)return Z(r,t,"block",0);if("variable"==k&&t.string.match(/^\s?\$[\w-\.\[\]\'\"]+$/))return Z(r,t,"block")}return r.context.type},W.parens=function(e,t,r){if("("==e)return Z(r,t,"parens");if(")"==e)return"parens"==r.context.prev.type?T(r,t):t.string.match(/^[a-z][\w-]*\(/i)&&ee(t)||G(te(t))||/(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(te(t))||!t.string.match(/^-?[a-z][\w-\.\[\]\'\"]*\s*=/)&&F(te(t))?Z(r,t,"block"):t.string.match(/^[\$-]?[a-z][\w-\.\[\]\'\"]*\s*=/)||t.string.match(/^\s*(\(|\)|[0-9])/)||t.string.match(/^\s+[a-z][\w-]*\(/i)||t.string.match(/^\s+[\$-]?[a-z]/i)?Z(r,t,"block",0):ee(t)?Z(r,t,"block"):Z(r,t,"block",0);if(e&&"@"==e.charAt(0)&&I(t.current().slice(1))&&(k="variable"),"word"==e){var i=t.current();"tag"==(k=J(i))&&y.test(i)&&(k="variable"),"property"!=k&&"to"!=i||(k="atom")}return"variable-name"==e?Z(r,t,"variableName"):Q(e,t)?Z(r,t,"pseudo"):r.context.type},W.vendorPrefixes=function(e,t,r){return"word"==e?(k="property",Z(r,t,"block",0)):T(r,t)},W.pseudo=function(e,t,r){return I(te(t.string))?D(e,t,r):(t.match(/^[a-z-]+/),k="variableName.special",ee(t)?Z(r,t,"block"):T(r,t))},W.atBlock=function(e,t,r){if("("==e)return Z(r,t,"atBlock_parens");if(K(e,t))return Z(r,t,"block");if(M(e,t))return Z(r,t,"interpolation");if("word"==e){var i=t.current().toLowerCase();if("tag"==(k=/^(only|not|and|or)$/.test(i)?"keyword":$.hasOwnProperty(i)?"tag":N.hasOwnProperty(i)?"attribute":B.hasOwnProperty(i)?"property":x.hasOwnProperty(i)?"string.special":J(t.current()))&&ee(t))return Z(r,t,"block")}return"operator"==e&&/^(not|and|or)$/.test(t.current())&&(k="keyword"),r.context.type},W.atBlock_parens=function(e,t,r){if("{"==e||"}"==e)return r.context.type;if(")"==e)return ee(t)?Z(r,t,"block"):Z(r,t,"atBlock");if("word"==e){var i=t.current().toLowerCase();return k=J(i),/^(max|min)/.test(i)&&(k="property"),"tag"==k&&(k=y.test(i)?"variable":"atom"),r.context.type}return W.atBlock(e,t,r)},W.keyframes=function(e,t,r){return"0"==t.indentation()&&("}"==e&&V(t)||"]"==e||"hash"==e||"qualifier"==e||F(t.current()))?D(e,t,r):"{"==e?Z(r,t,"keyframes"):"}"==e?V(t)?T(r,t,!0):Z(r,t,"keyframes"):"unit"==e&&/^[0-9]+\%$/.test(t.current())?Z(r,t,"keyframes"):"word"==e&&"block-keyword"==(k=J(t.current()))?(k="keyword",Z(r,t,"keyframes")):/@(font-face|media|supports|(-moz-)?document)/.test(e)?Z(r,t,ee(t)?"block":"atBlock"):"mixin"==e?Z(r,t,"block",0):r.context.type},W.interpolation=function(e,t,r){return"{"==e&&T(r,t)&&Z(r,t,"block"),"}"==e?t.string.match(/^\s*(\.|#|:|\[|\*|&|>|~|\+|\/)/i)||t.string.match(/^\s*[a-z]/i)&&F(te(t))?Z(r,t,"block"):!t.string.match(/^(\{|\s*\&)/)||t.match(/\s*[\w-]/,!1)?Z(r,t,"block",0):Z(r,t,"block"):"variable-name"==e?Z(r,t,"variableName",0):("word"==e&&"tag"==(k=J(t.current()))&&(k="atom"),r.context.type)},W.extend=function(e,t,r){return"["==e||"="==e?"extend":"]"==e?T(r,t):"word"==e?(k=J(t.current()),"extend"):T(r,t)},W.variableName=function(e,t,r){return"string"==e||"["==e||"]"==e||t.current().match(/^(\.|\$)/)?(t.current().match(/^\.[\w-]+/i)&&(k="variable"),"variableName"):D(e,t,r)};const re={name:"stylus",startState:function(){return{tokenize:null,state:"block",context:new Y("block",0,null)}},token:function(e,t){return!t.tokenize&&e.eatSpace()?null:((g=(t.tokenize||A)(e,t))&&"object"==typeof g&&(f=g[1],g=g[0]),k=g,t.state=W[t.state](f,e,t),k)},indent:function(e,t,r){var i=e.context,a=t&&t.charAt(0),o=i.indent,n=te(t),l=i.line.indent,s=e.context.prev?e.context.prev.line.firstWord:"",c=e.context.prev?e.context.prev.line.indent:l;return i.prev&&("}"==a&&("block"==i.type||"atBlock"==i.type||"keyframes"==i.type)||")"==a&&("parens"==i.type||"atBlock_parens"==i.type)||"{"==a&&"at"==i.type)?o=i.indent-r.unit:/(\})/.test(a)||(/@|\$|\d/.test(a)||/^\{/.test(t)||/^\s*\/(\/|\*)/.test(t)||/^\s*\/\*/.test(s)||/^\s*[\w-\.\[\]\'\"]+\s*(\?|:|\+)?=/i.test(t)||/^(\+|-)?[a-z][\w-]*\(/i.test(t)||/^return/.test(t)||G(n)?o=l:/(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(a)||F(n)?o=/\,\s*$/.test(s)?c:e.sol()||!/(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(s)&&!F(s)?l:l<=c?c:c+r.unit:/,\s*$/.test(t)||!H(n)&&!I(n)||(o=G(s)?l<=c?c:c+r.unit:/^\{/.test(s)?l<=c?l:c+r.unit:H(s)||I(s)?l>=c?c:l:/^(\.|#|:|\[|\*|&|@|\+|\-|>|~|\/)/.test(s)||/=\s*$/.test(s)||F(s)||/^\$[\w-\.\[\]\'\"]/.test(s)?c+r.unit:l)),o},languageData:{indentOnInput:/^\s*\}$/,commentTokens:{line:"//",block:{open:"/*",close:"*/"}},autocomplete:m}};export{re as stylus}; diff --git a/nicegui/elements/lib/codemirror/swift-Cbprqdc8.js b/nicegui/elements/lib/codemirror/swift-Cbprqdc8.js new file mode 100644 index 000000000..b079fe923 --- /dev/null +++ b/nicegui/elements/lib/codemirror/swift-Cbprqdc8.js @@ -0,0 +1 @@ +function e(e){for(var t={},n=0;n~^?!",o=":;,.(){}[]",u=/^\-?0b[01][01_]*/,c=/^\-?0o[0-7][0-7_]*/,f=/^\-?0x[\dA-Fa-f][\dA-Fa-f_]*(?:(?:\.[\dA-Fa-f][\dA-Fa-f_]*)?[Pp]\-?\d[\d_]*)?/,s=/^\-?\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee]\-?\d[\d_]*)?/,l=/^\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1/,p=/^\.(?:\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1)/,d=/^\#[A-Za-z]+/,h=/^@(?:\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1)/;function m(e,m,v){if(e.sol()&&(m.indented=e.indentation()),e.eatSpace())return null;var x,y=e.peek();if("/"==y){if(e.match("//"))return e.skipToEnd(),"comment";if(e.match("/*"))return m.tokenize.push(k),k(e,m)}if(e.match(d))return"builtin";if(e.match(h))return"attribute";if(e.match(u))return"number";if(e.match(c))return"number";if(e.match(f))return"number";if(e.match(s))return"number";if(e.match(p))return"property";if(a.indexOf(y)>-1)return e.next(),"operator";if(o.indexOf(y)>-1)return e.next(),e.match(".."),"punctuation";if(x=e.match(/("""|"|')/)){var g=_.bind(null,x[0]);return m.tokenize.push(g),g(e,m)}if(e.match(l)){var z=e.current();return i.hasOwnProperty(z)?"type":r.hasOwnProperty(z)?"atom":t.hasOwnProperty(z)?(n.hasOwnProperty(z)&&(m.prev="define"),"keyword"):"define"==v?"def":"variable"}return e.next(),null}function v(){var e=0;return function(t,n,r){var i=m(t,n,r);if("punctuation"==i)if("("==t.current())++e;else if(")"==t.current()){if(0==e)return t.backUp(1),n.tokenize.pop(),n.tokenize[n.tokenize.length-1](t,n);--e}return i}}function _(e,t,n){for(var r,i=1==e.length,a=!1;r=t.peek();)if(a){if(t.next(),"("==r)return n.tokenize.push(v()),"string";a=!1}else{if(t.match(e))return n.tokenize.pop(),"string";t.next(),a="\\"==r}return i&&n.tokenize.pop(),"string"}function k(e,t){for(var n;n=e.next();)if("/"===n&&e.eat("*"))t.tokenize.push(k);else if("*"===n&&e.eat("/")){t.tokenize.pop();break}return"comment"}function x(e,t,n){this.prev=e,this.align=t,this.indented=n}function y(e,t){var n=t.match(/^\s*($|\/[\/\*]|[)}\]])/,!1)?null:t.column()+1;e.context=new x(e.context,n,e.indented)}function g(e){e.context&&(e.indented=e.context.indented,e.context=e.context.prev)}const z={name:"swift",startState:function(){return{prev:null,context:null,indented:0,tokenize:[]}},token:function(e,t){var n=t.prev;t.prev=null;var r=(t.tokenize[t.tokenize.length-1]||m)(e,t,n);if(r&&"comment"!=r?t.prev||(t.prev=r):t.prev=n,"punctuation"==r){var i=/[\(\[\{]|([\]\)\}])/.exec(e.current());i&&(i[1]?g:y)(t,e)}return r},indent:function(e,t,n){var r=e.context;if(!r)return 0;var i=/^[\]\}\)]/.test(t);return null!=r.align?r.align-(i?1:0):r.indented+(i?0:n.unit)},languageData:{indentOnInput:/^\s*[\)\}\]]$/,commentTokens:{line:"//",block:{open:"/*",close:"*/"}},closeBrackets:{brackets:["(","[","{","'",'"',"`"]}}};export{z as swift}; diff --git a/nicegui/elements/lib/codemirror/tcl-B2fODqDH.js b/nicegui/elements/lib/codemirror/tcl-B2fODqDH.js new file mode 100644 index 000000000..d52266a0a --- /dev/null +++ b/nicegui/elements/lib/codemirror/tcl-B2fODqDH.js @@ -0,0 +1 @@ +function e(e){for(var r={},t=e.split(" "),n=0;n!?^\/\|]/;function a(e,r,t){return r.tokenize=t,t(e,r)}function o(e,f){var s=f.beforeParams;f.beforeParams=!1;var c,u=e.next();if('"'!=u&&"'"!=u||!f.inParams){if(/[\[\]{}\(\),;\.]/.test(u))return"("==u&&s?f.inParams=!0:")"==u&&(f.inParams=!1),null;if(/\d/.test(u))return e.eatWhile(/[\w\.]/),"number";if("#"==u)return e.eat("*")?a(e,f,i):"#"==u&&e.match(/ *\[ *\[/)?a(e,f,l):(e.skipToEnd(),"comment");if('"'==u)return e.skipTo(/"/),"comment";if("$"==u)return e.eatWhile(/[$_a-z0-9A-Z\.{:]/),e.eatWhile(/}/),f.beforeParams=!0,"builtin";if(n.test(u))return e.eatWhile(n),"comment";e.eatWhile(/[\w\$_{}\xa1-\uffff]/);var m=e.current().toLowerCase();return r&&r.propertyIsEnumerable(m)?"keyword":t&&t.propertyIsEnumerable(m)?(f.beforeParams=!0,"keyword"):null}return a(e,f,(c=u,function(e,r){for(var t,n=!1,a=!1;null!=(t=e.next());){if(t==c&&!n){a=!0;break}n=!n&&"\\"==t}return a&&(r.tokenize=o),"string"}))}function i(e,r){for(var t,n=!1;t=e.next();){if("#"==t&&n){r.tokenize=o;break}n="*"==t}return"comment"}function l(e,r){for(var t,n=0;t=e.next();){if("#"==t&&2==n){r.tokenize=o;break}"]"==t?n++:" "!=t&&(n=0)}return"meta"}const f={name:"tcl",startState:function(){return{tokenize:o,beforeParams:!1,inParams:!1}},token:function(e,r){return e.eatSpace()?null:r.tokenize(e,r)},languageData:{commentTokens:{line:"#"}}};export{f as tcl}; diff --git a/nicegui/elements/lib/codemirror/textile-BuVhTOzU.js b/nicegui/elements/lib/codemirror/textile-BuVhTOzU.js new file mode 100644 index 000000000..e85a4ba3d --- /dev/null +++ b/nicegui/elements/lib/codemirror/textile-BuVhTOzU.js @@ -0,0 +1 @@ +var t={addition:"inserted",attributes:"propertyName",bold:"strong",cite:"keyword",code:"monospace",definitionList:"list",deletion:"deleted",div:"punctuation",em:"emphasis",footnote:"variable",footCite:"qualifier",header:"heading",html:"comment",image:"atom",italic:"emphasis",link:"link",linkDefinition:"link",list1:"list",list2:"list.special",list3:"list",notextile:"string.special",pre:"operator",p:"content",quote:"bracket",span:"quote",specialChar:"character",strong:"strong",sub:"content.special",sup:"content.special",table:"variableName.special",tableHeading:"operator"};function e(e,a,r){if("_"===r)return e.eat("_")?n(e,a,"italic",/__/,2):n(e,a,"em",/_/,1);if("*"===r)return e.eat("*")?n(e,a,"bold",/\*\*/,2):n(e,a,"strong",/\*/,1);if("["===r)return e.match(/\d+\]/)&&(a.footCite=!0),i(a);if("("===r&&e.match(/^(r|tm|c)\)/))return t.specialChar;if("<"===r&&e.match(/(\w+)[^>]+>[^<]+<\/\1>/))return t.html;if("?"===r&&e.eat("?"))return n(e,a,"cite",/\?\?/,2);if("="===r&&e.eat("="))return n(e,a,"notextile",/==/,2);if("-"===r&&!e.eat("-"))return n(e,a,"deletion",/-/,1);if("+"===r)return n(e,a,"addition",/\+/,1);if("~"===r)return n(e,a,"sub",/~/,1);if("^"===r)return n(e,a,"sup",/\^/,1);if("%"===r)return n(e,a,"span",/%/,1);if("@"===r)return n(e,a,"code",/@/,1);if("!"===r){var l=n(e,a,"image",/(?:\([^\)]+\))?!/,1);return e.match(/^:\S+/),l}return i(a)}function n(t,e,n,a,r){var l=t.pos>r?t.string.charAt(t.pos-r-1):null,u=t.peek();if(e[n]){if((!u||/\W/.test(u))&&l&&/\S/.test(l)){var s=i(e);return e[n]=!1,s}}else(!l||/\W/.test(l))&&u&&/\S/.test(u)&&t.match(new RegExp("^.*\\S"+a.source+"(?:\\W|$)"),!1)&&(e[n]=!0,e.mode=o.attributes);return i(e)}function i(e){var n=a(e);if(n)return n;var i=[];return e.layoutType&&i.push(t[e.layoutType]),i=i.concat(function(e){for(var n=[],i=1;i]+)?>(?:[^<]+<\/\1>)?/,link:/[^"]+":\S/,linkDefinition:/\[[^\s\]]+\]\S+/,list:/(?:#+|\*+)/,notextile:"notextile",para:"p",pre:"pre",table:"table",tableCellAttributes:/[\/\\]\d+/,tableHeading:/\|_\./,tableText:/[^"_\*\[\(\?\+~\^%@|-]+/,text:/[^!"_=\*\[\(<\?\+~\^%@-]+/},attributes:{align:/(?:<>|<|>|=)/,selector:/\([^\(][^\)]+\)/,lang:/\[[^\[\]]+\]/,pad:/(?:\(+|\)+){1,2}/,css:/\{[^\}]+\}/},createRe:function(t){switch(t){case"drawTable":return r.makeRe("^",r.single.drawTable,"$");case"html":return r.makeRe("^",r.single.html,"(?:",r.single.html,")*","$");case"linkDefinition":return r.makeRe("^",r.single.linkDefinition,"$");case"listLayout":return r.makeRe("^",r.single.list,l("allAttributes"),"*\\s+");case"tableCellAttributes":return r.makeRe("^",r.choiceRe(r.single.tableCellAttributes,l("allAttributes")),"+\\.");case"type":return r.makeRe("^",l("allTypes"));case"typeLayout":return r.makeRe("^",l("allTypes"),l("allAttributes"),"*\\.\\.?","(\\s+|$)");case"attributes":return r.makeRe("^",l("allAttributes"),"+");case"allTypes":return r.choiceRe(r.single.div,r.single.foot,r.single.header,r.single.bc,r.single.bq,r.single.notextile,r.single.pre,r.single.table,r.single.para);case"allAttributes":return r.choiceRe(r.attributes.selector,r.attributes.css,r.attributes.lang,r.attributes.align,r.attributes.pad);default:return r.makeRe("^",r.single[t])}},makeRe:function(){for(var t="",e=0;e$/,m=/^$/,l=/^\{\{\{$/,k=/^\}\}\}$/,h=/.*?\}\}\}/;function s(e,t,r){return t.tokenize=r,r(e,t)}function p(t,k){var h=t.sol(),p=t.peek();if(k.block=!1,h&&/[<\/\*{}\-]/.test(p)){if(t.match(l))return k.block=!0,s(t,k,$);if(t.match(o))return"quote";if(t.match(i)||t.match(a))return"comment";if(t.match(u)||t.match(f)||t.match(c)||t.match(m))return"comment";if(t.match(n))return"contentSeparator"}if(t.next(),h&&/[\/\*!#;:>|]/.test(p)){if("!"==p)return t.skipToEnd(),"header";if("*"==p)return t.eatWhile("*"),"comment";if("#"==p)return t.eatWhile("#"),"comment";if(";"==p)return t.eatWhile(";"),"comment";if(":"==p)return t.eatWhile(":"),"comment";if(">"==p)return t.eatWhile(">"),"quote";if("|"==p)return"header"}if("{"==p&&t.match("{{"))return s(t,k,$);if(/[hf]/i.test(p)&&/[ti]/i.test(t.peek())&&t.match(/\b(ttps?|tp|ile):\/\/[\-A-Z0-9+&@#\/%?=~_|$!:,.;]*[A-Z0-9+&@#\/%=~_|$]/i))return"link";if('"'==p)return"string";if("~"==p)return"brace";if(/[\[\]]/.test(p)&&t.match(p))return"brace";if("@"==p)return t.eatWhile(r),"link";if(/\d/.test(p))return t.eatWhile(/\d/),"number";if("/"==p){if(t.eat("%"))return s(t,k,d);if(t.eat("/"))return s(t,k,v)}if("_"==p&&t.eat("_"))return s(t,k,z);if("-"==p&&t.eat("-")){if(" "!=t.peek())return s(t,k,w);if(" "==t.peek())return"brace"}return"'"==p&&t.eat("'")?s(t,k,b):"<"==p&&t.eat("<")?s(t,k,x):(t.eatWhile(/[\w\$_]/),e.propertyIsEnumerable(t.current())?"keyword":null)}function d(e,t){for(var r,n=!1;r=e.next();){if("/"==r&&n){t.tokenize=p;break}n="%"==r}return"comment"}function b(e,t){for(var r,n=!1;r=e.next();){if("'"==r&&n){t.tokenize=p;break}n="'"==r}return"strong"}function $(e,t){var r=t.block;return r&&e.current()?"comment":!r&&e.match(h)||r&&e.sol()&&e.match(k)?(t.tokenize=p,"comment"):(e.next(),"comment")}function v(e,t){for(var r,n=!1;r=e.next();){if("/"==r&&n){t.tokenize=p;break}n="/"==r}return"emphasis"}function z(e,t){for(var r,n=!1;r=e.next();){if("_"==r&&n){t.tokenize=p;break}n="_"==r}return"link"}function w(e,t){for(var r,n=!1;r=e.next();){if("-"==r&&n){t.tokenize=p;break}n="-"==r}return"deleted"}function x(e,r){if("<<"==e.current())return"meta";var n=e.next();return n?">"==n&&">"==e.peek()?(e.next(),r.tokenize=p,"meta"):(e.eatWhile(/[\w\$_]/),t.propertyIsEnumerable(e.current())?"keyword":null):(r.tokenize=p,null)}const g={name:"tiddlywiki",startState:function(){return{tokenize:p}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)}};export{g as tiddlyWiki}; diff --git a/nicegui/elements/lib/codemirror/tiki-CI-ztowC.js b/nicegui/elements/lib/codemirror/tiki-CI-ztowC.js new file mode 100644 index 000000000..e92e87520 --- /dev/null +++ b/nicegui/elements/lib/codemirror/tiki-CI-ztowC.js @@ -0,0 +1 @@ +function e(e,t,r){return function(i,a){for(;!i.eol();){if(i.match(t)){a.tokenize=n;break}i.next()}return r&&(a.tokenize=r),e}}function t(e){return function(t,r){for(;!t.eol();)t.next();return r.tokenize=n,e}}function n(r,i){function a(e){return i.tokenize=e,e(r,i)}var o=r.sol(),c=r.next();switch(c){case"{":return r.eat("/"),r.eatSpace(),r.eatWhile(/[^\s\u00a0=\"\'\/?(}]/),i.tokenize=u,"tag";case"_":if(r.eat("_"))return a(e("strong","__",n));break;case"'":if(r.eat("'"))return a(e("em","''",n));break;case"(":if(r.eat("("))return a(e("link","))",n));break;case"[":return a(e("url","]",n));case"|":if(r.eat("|"))return a(e("comment","||"));break;case"-":if(r.eat("="))return a(e("header string","=-",n));if(r.eat("-"))return a(e("error tw-deleted","--",n));break;case"=":if(r.match("=="))return a(e("tw-underline","===",n));break;case":":if(r.eat(":"))return a(e("comment","::"));break;case"^":return a(e("tw-box","^"));case"~":if(r.match("np~"))return a(e("meta","~/np~"))}if(o)switch(c){case"!":return r.match("!!!!!")||r.match("!!!!")||r.match("!!!")||r.match("!!"),a(t("header string"));case"*":case"#":case"+":return a(t("tw-listitem bracket"))}return null}var r,i,a,o;function u(e,t){var r,a=e.next(),o=e.peek();return"}"==a?(t.tokenize=n,"tag"):"("==a||")"==a?"bracket":"="==a?(i="equals",">"==o&&(e.next(),o=e.peek()),/[\'\"]/.test(o)||(t.tokenize=function(e,t){for(;!e.eol();){var n=e.next(),r=e.peek();if(" "==n||","==n||/[ )}]/.test(r)){t.tokenize=u;break}}return"string"}),"operator"):/[\'\"]/.test(a)?(t.tokenize=(r=a,function(e,t){for(;!e.eol();)if(e.next()==r){t.tokenize=u;break}return"string"}),t.tokenize(e,t)):(e.eatWhile(/[^\s\u00a0=\"\'\/?]/),"keyword")}function c(){for(var e=arguments.length-1;e>=0;e--)a.cc.push(arguments[e])}function f(){return c.apply(null,arguments),!0}function s(e,t){var n=a.context&&a.context.noIndent;a.context={prev:a.context,pluginName:e,indent:a.indented,startOfLine:t,noIndent:n}}function l(){a.context&&(a.context=a.context.prev)}function k(e){if("openPlugin"==e)return a.pluginName=r,f(d,(i=a.startOfLine,function(e){return"selfclosePlugin"==e||"endPlugin"==e?f():"endPlugin"==e?(s(a.pluginName,i),f()):f()}));if("closePlugin"==e){var t=!1;return a.context?(t=a.context.pluginName!=r,l()):t=!0,t&&(o="error"),f(function(e){return function(t){return e&&(o="error"),"endPlugin"==t?f():c()}}(t))}return"string"==e?(a.context&&"!cdata"==a.context.name||s("!cdata"),a.tokenize==n&&l(),f()):f();var i}function d(e){return"keyword"==e?(o="attribute",f(d)):"equals"==e?f(p,d):c()}function p(e){return"keyword"==e?(o="string",f()):"string"==e?f(g):c()}function g(e){return"string"==e?f(g):c()}const m={name:"tiki",startState:function(){return{tokenize:n,cc:[],indented:0,startOfLine:!0,pluginName:null,context:null}},token:function(e,t){if(e.sol()&&(t.startOfLine=!0,t.indented=e.indentation()),e.eatSpace())return null;o=i=r=null;var n=t.tokenize(e,t);if((n||i)&&"comment"!=n)for(a=t;;){if((t.cc.pop()||k)(i||n))break}return t.startOfLine=!1,o||n},indent:function(e,t,n){var r=e.context;if(r&&r.noIndent)return 0;for(r&&/^{\//.test(t)&&(r=r.prev);r&&!r.startOfLine;)r=r.prev;return r?r.indent+n.unit:0}};export{m as tiki}; diff --git a/nicegui/elements/lib/codemirror/toml-BQXy8elZ.js b/nicegui/elements/lib/codemirror/toml-BQXy8elZ.js new file mode 100644 index 000000000..9f2130242 --- /dev/null +++ b/nicegui/elements/lib/codemirror/toml-BQXy8elZ.js @@ -0,0 +1 @@ +const e={name:"toml",startState:function(){return{inString:!1,stringType:"",lhs:!0,inArray:0}},token:function(e,n){if(n.inString||'"'!=e.peek()&&"'"!=e.peek()||(n.stringType=e.peek(),e.next(),n.inString=!0),e.sol()&&0===n.inArray&&(n.lhs=!0),n.inString){for(;n.inString&&!e.eol();)e.peek()===n.stringType?(e.next(),n.inString=!1):"\\"===e.peek()?(e.next(),e.next()):e.match(/^.[^\\\"\']*/);return n.lhs?"property":"string"}return n.inArray&&"]"===e.peek()?(e.next(),n.inArray--,"bracket"):n.lhs&&"["===e.peek()&&e.skipTo("]")?(e.next(),"]"===e.peek()&&e.next(),"atom"):"#"===e.peek()?(e.skipToEnd(),"comment"):e.eatSpace()?null:n.lhs&&e.eatWhile((function(e){return"="!=e&&" "!=e}))?"property":n.lhs&&"="===e.peek()?(e.next(),n.lhs=!1,null):!n.lhs&&e.match(/^\d\d\d\d[\d\-\:\.T]*Z/)?"atom":n.lhs||!e.match("true")&&!e.match("false")?n.lhs||"["!==e.peek()?!n.lhs&&e.match(/^\-?\d+(?:\.\d+)?/)?"number":(e.eatSpace()||e.next(),null):(n.inArray++,e.next(),"bracket"):"atom"},languageData:{commentTokens:{line:"#"}}};export{e as toml}; diff --git a/nicegui/elements/lib/codemirror/troff-Ce85hlLp.js b/nicegui/elements/lib/codemirror/troff-Ce85hlLp.js new file mode 100644 index 000000000..f5d4c5184 --- /dev/null +++ b/nicegui/elements/lib/codemirror/troff-Ce85hlLp.js @@ -0,0 +1 @@ +var t={};function a(a){if(a.eatSpace())return null;var n=a.sol(),r=a.next();if("\\"===r)return a.match("fB")||a.match("fR")||a.match("fI")||a.match("u")||a.match("d")||a.match("%")||a.match("&")?"string":a.match("m[")?(a.skipTo("]"),a.next(),"string"):a.match("s+")||a.match("s-")?(a.eatWhile(/[\d-]/),"string"):a.match("(")||a.match("*(")?(a.eatWhile(/[\w-]/),"string"):"string";if(n&&("."===r||"'"===r)&&a.eat("\\")&&a.eat('"'))return a.skipToEnd(),"comment";if(n&&"."===r){if(a.match("B ")||a.match("I ")||a.match("R "))return"attribute";if(a.match("TH ")||a.match("SH ")||a.match("SS ")||a.match("HP "))return a.skipToEnd(),"quote";if(a.match(/[A-Z]/)&&a.match(/[A-Z]/)||a.match(/[a-z]/)&&a.match(/[a-z]/))return"attribute"}a.eatWhile(/[\w-]/);var e=a.current();return t.hasOwnProperty(e)?t[e]:null}function n(t,n){return(n.tokens[0]||a)(t,n)}const r={name:"troff",startState:function(){return{tokens:[]}},token:function(t,a){return n(t,a)}};export{r as troff}; diff --git a/nicegui/elements/lib/codemirror/ttcn-C4reStyN.js b/nicegui/elements/lib/codemirror/ttcn-C4reStyN.js new file mode 100644 index 000000000..678568a30 --- /dev/null +++ b/nicegui/elements/lib/codemirror/ttcn-C4reStyN.js @@ -0,0 +1 @@ +function e(e){for(var t={},n=e.split(" "),r=0;r!\/]/;function O(e,t){var n,r=e.next();if('"'==r||"'"==r)return t.tokenize=(n=r,function(e,t){for(var r,i=!1,o=!1;null!=(r=e.next());){if(r==n&&!i){var a=e.peek();a&&("b"!=(a=a.toLowerCase())&&"h"!=a&&"o"!=a||e.next()),o=!0;break}i=!i&&"\\"==r}return(o||!i&&!g)&&(t.tokenize=null),"string"}),t.tokenize(e,t);if(/[\[\]{}\(\),;\\:\?\.]/.test(r))return i=r,"punctuation";if("#"==r)return e.skipToEnd(),"atom";if("%"==r)return e.eatWhile(/\b/),"atom";if(/\d/.test(r))return e.eatWhile(/[\w\.]/),"number";if("/"==r){if(e.eat("*"))return t.tokenize=E,E(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}if(k.test(r))return"@"==r&&(e.match("try")||e.match("catch")||e.match("lazy"))?"keyword":(e.eatWhile(k),"operator");e.eatWhile(/[\w\$_\xa1-\uffff]/);var x=e.current();return o.propertyIsEnumerable(x)?"keyword":a.propertyIsEnumerable(x)?"builtin":s.propertyIsEnumerable(x)||c.propertyIsEnumerable(x)||p.propertyIsEnumerable(x)||l.propertyIsEnumerable(x)||u.propertyIsEnumerable(x)||m.propertyIsEnumerable(x)?"def":f.propertyIsEnumerable(x)||d.propertyIsEnumerable(x)||b.propertyIsEnumerable(x)?"string":h.propertyIsEnumerable(x)?"typeName.standard":y.propertyIsEnumerable(x)?"modifier":v.propertyIsEnumerable(x)?"atom":"variable"}function E(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=null;break}r="*"==n}return"comment"}function w(e,t,n,r,i){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=i}function I(e,t,n){var r=e.indented;return e.context&&"statement"==e.context.type&&(r=e.context.indented),e.context=new w(r,t,n,null,e.context)}function z(e){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}const L={name:"ttcn",startState:function(){return{tokenize:null,context:new w(0,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,t){var n=t.context;if(e.sol()&&(null==n.align&&(n.align=!1),t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())return null;i=null;var r=(t.tokenize||O)(e,t);if("comment"==r)return r;if(null==n.align&&(n.align=!0),";"!=i&&":"!=i&&","!=i||"statement"!=n.type)if("{"==i)I(t,e.column(),"}");else if("["==i)I(t,e.column(),"]");else if("("==i)I(t,e.column(),")");else if("}"==i){for(;"statement"==n.type;)n=z(t);for("}"==n.type&&(n=z(t));"statement"==n.type;)n=z(t)}else i==n.type?z(t):x&&(("}"==n.type||"top"==n.type)&&";"!=i||"statement"==n.type&&"newstatement"==i)&&I(t,e.column(),"statement");else z(t);return t.startOfLine=!1,r},languageData:{indentOnInput:/^\s*[{}]$/,commentTokens:{line:"//",block:{open:"/*",close:"*/"}},autocomplete:n}};export{L as ttcn}; diff --git a/nicegui/elements/lib/codemirror/ttcn-cfg-Ce4xWtqN.js b/nicegui/elements/lib/codemirror/ttcn-cfg-Ce4xWtqN.js new file mode 100644 index 000000000..d2b6cbc54 --- /dev/null +++ b/nicegui/elements/lib/codemirror/ttcn-cfg-Ce4xWtqN.js @@ -0,0 +1 @@ +function e(e){for(var t={},T=e.split(" "),n=0;n=&|]/;function r(e,i){var c,a=e.next();if(t=null,"<"!=a||e.match(/^[\s\u00a0=]/,!1)){if('"'==a||"'"==a)return i.tokenize=(c=a,function(t,e){for(var n,o=!1;null!=(n=t.next());){if(n==c&&!o){e.tokenize=r;break}o=!o&&"\\"==n}return"string"}),i.tokenize(e,i);if(/[{}\(\),\.;\[\]]/.test(a))return t=a,null;if("#"==a)return e.skipToEnd(),"comment";if(o.test(a))return e.eatWhile(o),null;if(":"==a)return"operator";if(e.eatWhile(/[_\w\d]/),":"==e.peek())return"variableName.special";var l=e.current();return n.test(l)?"meta":a>="A"&&a<="Z"?"comment":"keyword"}return e.match(/^[^\s\u00a0>]*>?/),"atom"}function i(t,e,n){t.context={prev:t.context,indent:t.indent,col:n,type:e}}function c(t){t.indent=t.context.indent,t.context=t.context.prev}const a={name:"turtle",startState:function(){return{tokenize:r,context:null,indent:0,col:0}},token:function(e,n){if(e.sol()&&(n.context&&null==n.context.align&&(n.context.align=!1),n.indent=e.indentation()),e.eatSpace())return null;var o=n.tokenize(e,n);if("comment"!=o&&n.context&&null==n.context.align&&"pattern"!=n.context.type&&(n.context.align=!0),"("==t)i(n,")",e.column());else if("["==t)i(n,"]",e.column());else if("{"==t)i(n,"}",e.column());else if(/[\]\}\)]/.test(t)){for(;n.context&&"pattern"==n.context.type;)c(n);n.context&&t==n.context.type&&c(n)}else"."==t&&n.context&&"pattern"==n.context.type?c(n):/atom|string|variable/.test(o)&&n.context&&(/[\}\]]/.test(n.context.type)?i(n,"pattern",e.column()):"pattern"!=n.context.type||n.context.align||(n.context.align=!0,n.context.col=e.column()));return o},indent:function(t,e,n){var o=e&&e.charAt(0),r=t.context;if(/[\]\}]/.test(o))for(;r&&"pattern"==r.type;)r=r.prev;var i=r&&o==r.type;return r?"pattern"==r.type?r.col:r.align?r.col+(i?0:1):r.indent+(i?0:n.unit):0},languageData:{commentTokens:{line:"#"}}};export{a as turtle}; diff --git a/nicegui/elements/lib/codemirror/vb-coDLL1b7.js b/nicegui/elements/lib/codemirror/vb-coDLL1b7.js new file mode 100644 index 000000000..11cda60d2 --- /dev/null +++ b/nicegui/elements/lib/codemirror/vb-coDLL1b7.js @@ -0,0 +1 @@ +var e="error";function t(e){return new RegExp("^(("+e.join(")|(")+"))\\b","i")}var n=new RegExp("^[\\+\\-\\*/%&\\\\|\\^~<>!]"),r=new RegExp("^[\\(\\)\\[\\]\\{\\}@,:`=;\\.]"),a=new RegExp("^((==)|(<>)|(<=)|(>=)|(<>)|(<<)|(>>)|(//)|(\\*\\*))"),i=new RegExp("^((\\+=)|(\\-=)|(\\*=)|(%=)|(/=)|(&=)|(\\|=)|(\\^=))"),o=new RegExp("^((//=)|(>>=)|(<<=)|(\\*\\*=))"),c=new RegExp("^[_A-Za-z][_A-Za-z0-9]*"),u=["class","module","sub","enum","select","while","if","function","get","set","property","try","structure","synclock","using","with"],s=["else","elseif","case","catch","finally"],l=["next","loop"],d=["and","andalso","or","orelse","xor","in","not","is","isnot","like"],m=t(d),h=["#const","#else","#elseif","#end","#if","#region","addhandler","addressof","alias","as","byref","byval","cbool","cbyte","cchar","cdate","cdbl","cdec","cint","clng","cobj","compare","const","continue","csbyte","cshort","csng","cstr","cuint","culng","cushort","declare","default","delegate","dim","directcast","each","erase","error","event","exit","explicit","false","for","friend","gettype","goto","handles","implements","imports","infer","inherits","interface","isfalse","istrue","lib","me","mod","mustinherit","mustoverride","my","mybase","myclass","namespace","narrowing","new","nothing","notinheritable","notoverridable","of","off","on","operator","option","optional","out","overloads","overridable","overrides","paramarray","partial","private","protected","public","raiseevent","readonly","redim","removehandler","resume","return","shadows","shared","static","step","stop","strict","then","throw","to","true","trycast","typeof","until","until","when","widening","withevents","writeonly"],f=["object","boolean","char","string","byte","sbyte","short","ushort","int16","uint16","integer","uinteger","int32","uint32","long","ulong","int64","uint64","decimal","single","double","float","date","datetime","intptr","uintptr"],p=t(h),g=t(f),b='"',y=t(u),v=t(s),k=t(l),w=t(["end"]),x=t(["do"]);function I(e,t){t.currentIndent++}function z(e,t){t.currentIndent--}function L(t,u){if(t.eatSpace())return null;var s,l,d;if("'"===t.peek())return t.skipToEnd(),"comment";if(t.match(/^((&H)|(&O))?[0-9\.a-f]/i,!1)){var h=!1;if((t.match(/^\d*\.\d+F?/i)||t.match(/^\d+\.\d*F?/)||t.match(/^\.\d+F?/))&&(h=!0),h)return t.eat(/J/i),"number";var f=!1;if(t.match(/^&H[0-9a-f]+/i)||t.match(/^&O[0-7]+/i)?f=!0:t.match(/^[1-9]\d*F?/)?(t.eat(/J/i),f=!0):t.match(/^0(?![\dx])/i)&&(f=!0),f)return t.eat(/L/i),"number"}return t.match(b)?(u.tokenize=(s=t.current(),l=1==s.length,d="string",function(e,t){for(;!e.eol();){if(e.eatWhile(/[^'"]/),e.match(s))return t.tokenize=L,d;e.eat(/['"]/)}return l&&(t.tokenize=L),d}),u.tokenize(t,u)):t.match(o)||t.match(i)?null:t.match(a)||t.match(n)||t.match(m)?"operator":t.match(r)?null:t.match(x)?(I(0,u),u.doInCurrentLine=!0,"keyword"):t.match(y)?(u.doInCurrentLine?u.doInCurrentLine=!1:I(0,u),"keyword"):t.match(v)?"keyword":t.match(w)?(z(0,u),z(0,u),"keyword"):t.match(k)?(z(0,u),"keyword"):t.match(g)||t.match(p)?"keyword":t.match(c)?"variable":(t.next(),e)}const E={name:"vb",startState:function(){return{tokenize:L,lastToken:null,currentIndent:0,nextLineIndent:0,doInCurrentLine:!1}},token:function(t,n){t.sol()&&(n.currentIndent+=n.nextLineIndent,n.nextLineIndent=0,n.doInCurrentLine=0);var r=function(t,n){var r=n.tokenize(t,n),a=t.current();if("."===a)return"variable"===(r=n.tokenize(t,n))?"variable":e;var i="[({".indexOf(a);return-1!==i&&I(0,n),-1!==(i="])}".indexOf(a))&&z(0,n)?e:r}(t,n);return n.lastToken={style:r,content:t.current()},r},indent:function(e,t,n){var r=t.replace(/^\s+|\s+$/g,"");return r.match(k)||r.match(w)||r.match(v)?n.unit*(e.currentIndent-1):e.currentIndent<0?0:e.currentIndent*n.unit},languageData:{closeBrackets:{brackets:["(","[","{",'"']},commentTokens:{line:"'"},autocomplete:u.concat(s).concat(l).concat(d).concat(h).concat(f)}};export{E as vb}; diff --git a/nicegui/elements/lib/codemirror/vbscript-MdTt_wcJ.js b/nicegui/elements/lib/codemirror/vbscript-MdTt_wcJ.js new file mode 100644 index 000000000..a046499a9 --- /dev/null +++ b/nicegui/elements/lib/codemirror/vbscript-MdTt_wcJ.js @@ -0,0 +1 @@ +function e(e){var t="error";function n(e){return new RegExp("^(("+e.join(")|(")+"))\\b","i")}var r=new RegExp("^[\\+\\-\\*/&\\\\\\^<>=]"),a=new RegExp("^((<>)|(<=)|(>=))"),i=new RegExp("^[\\.,]"),o=new RegExp("^[\\(\\)]"),c=new RegExp("^[A-Za-z][_A-Za-z0-9]*"),b=n(["and","or","not","xor","is","mod","eqv","imp"]),l=["WScript","err","debug","RegExp"],s=["clear","execute","raise","replace","test","write","writeline","close","open","state","eof","update","addnew","end","createobject","quit"].concat(["description","firstindex","global","helpcontext","helpfile","ignorecase","length","number","pattern","source","value","count"]);l=l.concat(["vbBlack","vbRed","vbGreen","vbYellow","vbBlue","vbMagenta","vbCyan","vbWhite","vbBinaryCompare","vbTextCompare","vbSunday","vbMonday","vbTuesday","vbWednesday","vbThursday","vbFriday","vbSaturday","vbUseSystemDayOfWeek","vbFirstJan1","vbFirstFourDays","vbFirstFullWeek","vbGeneralDate","vbLongDate","vbShortDate","vbLongTime","vbShortTime","vbObjectError","vbOKOnly","vbOKCancel","vbAbortRetryIgnore","vbYesNoCancel","vbYesNo","vbRetryCancel","vbCritical","vbQuestion","vbExclamation","vbInformation","vbDefaultButton1","vbDefaultButton2","vbDefaultButton3","vbDefaultButton4","vbApplicationModal","vbSystemModal","vbOK","vbCancel","vbAbort","vbRetry","vbIgnore","vbYes","vbNo","vbCr","VbCrLf","vbFormFeed","vbLf","vbNewLine","vbNullChar","vbNullString","vbTab","vbVerticalTab","vbUseDefault","vbTrue","vbFalse","vbEmpty","vbNull","vbInteger","vbLong","vbSingle","vbDouble","vbCurrency","vbDate","vbString","vbObject","vbError","vbBoolean","vbVariant","vbDataObject","vbDecimal","vbByte","vbArray"]),e.isASP&&(l=l.concat(["server","response","request","session","application"]),s=s.concat(["addheader","appendtolog","binarywrite","end","flush","redirect","binaryread","remove","removeall","lock","unlock","abandon","getlasterror","htmlencode","mappath","transfer","urlencode"],["buffer","cachecontrol","charset","contenttype","expires","expiresabsolute","isclientconnected","pics","status","clientcertificate","cookies","form","querystring","servervariables","totalbytes","contents","staticobjects","codepage","lcid","sessionid","timeout","scripttimeout"]));var u=n(["dim","redim","then","until","randomize","byval","byref","new","property","exit","in","const","private","public","get","set","let","stop","on error resume next","on error goto 0","option explicit","call","me"]),v=n(["true","false","nothing","empty","null"]),d=n(["abs","array","asc","atn","cbool","cbyte","ccur","cdate","cdbl","chr","cint","clng","cos","csng","cstr","date","dateadd","datediff","datepart","dateserial","datevalue","day","escape","eval","execute","exp","filter","formatcurrency","formatdatetime","formatnumber","formatpercent","getlocale","getobject","getref","hex","hour","inputbox","instr","instrrev","int","fix","isarray","isdate","isempty","isnull","isnumeric","isobject","join","lbound","lcase","left","len","loadpicture","log","ltrim","rtrim","trim","maths","mid","minute","month","monthname","msgbox","now","oct","replace","rgb","right","rnd","round","scriptengine","scriptenginebuildversion","scriptenginemajorversion","scriptengineminorversion","second","setlocale","sgn","sin","space","split","sqr","strcomp","string","strreverse","tan","time","timer","timeserial","timevalue","typename","ubound","ucase","unescape","vartype","weekday","weekdayname","year"]),m=n(l),p=n(s),h='"',f=n(["class","sub","select","while","if","function","property","with","for"]),y=n(["else","elseif","case"]),g=n(["next","loop","wend"]),x=n(["end"]),k=n(["do"]),w=n(["on error resume next","exit"]),I=n(["rem"]);function C(e,t){t.currentIndent++}function L(e,t){t.currentIndent--}function D(e,n){if(e.eatSpace())return null;var l,s,S;if("'"===e.peek())return e.skipToEnd(),"comment";if(e.match(I))return e.skipToEnd(),"comment";if(e.match(/^((&H)|(&O))?[0-9\.]/i,!1)&&!e.match(/^((&H)|(&O))?[0-9\.]+[a-z_]/i,!1)){var E=!1;if((e.match(/^\d*\.\d+/i)||e.match(/^\d+\.\d*/)||e.match(/^\.\d+/))&&(E=!0),E)return e.eat(/J/i),"number";var O=!1;if(e.match(/^&H[0-9a-f]+/i)||e.match(/^&O[0-7]+/i)?O=!0:e.match(/^[1-9]\d*F?/)?(e.eat(/J/i),O=!0):e.match(/^0(?![\dx])/i)&&(O=!0),O)return e.eat(/L/i),"number"}return e.match(h)?(n.tokenize=(l=e.current(),s=1==l.length,S="string",function(e,t){for(;!e.eol();){if(e.eatWhile(/[^'"]/),e.match(l))return t.tokenize=D,S;e.eat(/['"]/)}return s&&(t.tokenize=D),S}),n.tokenize(e,n)):e.match(a)||e.match(r)||e.match(b)?"operator":e.match(i)?null:e.match(o)?"bracket":e.match(w)?(n.doInCurrentLine=!0,"keyword"):e.match(k)?(C(0,n),n.doInCurrentLine=!0,"keyword"):e.match(f)?(n.doInCurrentLine?n.doInCurrentLine=!1:C(0,n),"keyword"):e.match(y)?"keyword":e.match(x)?(L(0,n),L(0,n),"keyword"):e.match(g)?(n.doInCurrentLine?n.doInCurrentLine=!1:L(0,n),"keyword"):e.match(u)?"keyword":e.match(v)?"atom":e.match(p)?"variableName.special":e.match(d)||e.match(m)?"builtin":e.match(c)?"variable":(e.next(),t)}return{name:"vbscript",startState:function(){return{tokenize:D,lastToken:null,currentIndent:0,nextLineIndent:0,doInCurrentLine:!1,ignoreKeyword:!1}},token:function(e,n){e.sol()&&(n.currentIndent+=n.nextLineIndent,n.nextLineIndent=0,n.doInCurrentLine=0);var r=function(e,n){var r=n.tokenize(e,n),a=e.current();return"."===a?(r=n.tokenize(e,n),a=e.current(),!r||"variable"!==r.substr(0,8)&&"builtin"!==r&&"keyword"!==r?t:("builtin"!==r&&"keyword"!==r||(r="variable"),s.indexOf(a.substr(1))>-1&&(r="keyword"),r)):r}(e,n);return n.lastToken={style:r,content:e.current()},null===r&&(r=null),r},indent:function(e,t,n){var r=t.replace(/^\s+|\s+$/g,"");return r.match(g)||r.match(x)||r.match(y)?n.unit*(e.currentIndent-1):e.currentIndent<0?0:e.currentIndent*n.unit}}}const t=e({}),n=e({isASP:!0});export{t as vbScript,n as vbScriptASP}; diff --git a/nicegui/elements/lib/codemirror/velocity-BdD_26Jv.js b/nicegui/elements/lib/codemirror/velocity-BdD_26Jv.js new file mode 100644 index 000000000..e9b89511b --- /dev/null +++ b/nicegui/elements/lib/codemirror/velocity-BdD_26Jv.js @@ -0,0 +1 @@ +function e(e){for(var t={},n=e.split(" "),r=0;r!?:\/|]/;function i(e,t,n){return t.tokenize=n,n(e,t)}function o(e,o){var f=o.beforeParams;o.beforeParams=!1;var c=e.next();if("'"==c&&!o.inString&&o.inParams)return o.lastTokenWasBuiltin=!1,i(e,o,s(c));if('"'!=c){if(/[\[\]{}\(\),;\.]/.test(c))return"("==c&&f?o.inParams=!0:")"==c&&(o.inParams=!1,o.lastTokenWasBuiltin=!0),null;if(/\d/.test(c))return o.lastTokenWasBuiltin=!1,e.eatWhile(/[\w\.]/),"number";if("#"==c&&e.eat("*"))return o.lastTokenWasBuiltin=!1,i(e,o,l);if("#"==c&&e.match(/ *\[ *\[/))return o.lastTokenWasBuiltin=!1,i(e,o,u);if("#"==c&&e.eat("#"))return o.lastTokenWasBuiltin=!1,e.skipToEnd(),"comment";if("$"==c)return e.eat("!"),e.eatWhile(/[\w\d\$_\.{}-]/),r&&r.propertyIsEnumerable(e.current())?"keyword":(o.lastTokenWasBuiltin=!0,o.beforeParams=!0,"builtin");if(a.test(c))return o.lastTokenWasBuiltin=!1,e.eatWhile(a),"operator";e.eatWhile(/[\w\$_{}@]/);var k=e.current();return t&&t.propertyIsEnumerable(k)?"keyword":n&&n.propertyIsEnumerable(k)||e.current().match(/^#@?[a-z0-9_]+ *$/i)&&"("==e.peek()&&(!n||!n.propertyIsEnumerable(k.toLowerCase()))?(o.beforeParams=!0,o.lastTokenWasBuiltin=!1,"keyword"):o.inString?(o.lastTokenWasBuiltin=!1,"string"):e.pos>k.length&&"."==e.string.charAt(e.pos-k.length-1)&&o.lastTokenWasBuiltin?"builtin":(o.lastTokenWasBuiltin=!1,null)}return o.lastTokenWasBuiltin=!1,o.inString?(o.inString=!1,"string"):o.inParams?i(e,o,s(c)):void 0}function s(e){return function(t,n){for(var r,a=!1,i=!1;null!=(r=t.next());){if(r==e&&!a){i=!0;break}if('"'==e&&"$"==t.peek()&&!a){n.inString=!0,i=!0;break}a=!a&&"\\"==r}return i&&(n.tokenize=o),"string"}}function l(e,t){for(var n,r=!1;n=e.next();){if("#"==n&&r){t.tokenize=o;break}r="*"==n}return"comment"}function u(e,t){for(var n,r=0;n=e.next();){if("#"==n&&2==r){t.tokenize=o;break}"]"==n?r++:" "!=n&&(r=0)}return"meta"}const f={name:"velocity",startState:function(){return{tokenize:o,beforeParams:!1,inParams:!1,inString:!1,lastTokenWasBuiltin:!1}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)},languageData:{commentTokens:{line:"##",block:{open:"#*",close:"*#"}}}};export{f as velocity}; diff --git a/nicegui/elements/lib/codemirror/verilog-B4LBqg_1.js b/nicegui/elements/lib/codemirror/verilog-B4LBqg_1.js new file mode 100644 index 000000000..5e0c684f9 --- /dev/null +++ b/nicegui/elements/lib/codemirror/verilog-B4LBqg_1.js @@ -0,0 +1 @@ +function e(e){var t=e.statementIndentUnit,n=e.dontAlignCalls,i=e.noIndentKeywords||[],r=e.multiLineStrings,a=e.hooks||{};function o(e){for(var t={},n=e.split(" "),i=0;i=0)return o}var l=e.context,s=i&&i.charAt(0);"statement"==l.type&&"}"==s&&(l=l.prev);var c=!1,d=i.match(k);return d&&(c=$(d[0],l.type)),"statement"==l.type?l.indented+("{"==s?0:t||r.unit):y.test(l.type)&&l.align&&!n?l.column+(c?0:1):")"!=l.type||c?l.indented+(c?0:r.unit):l.indented+(t||r.unit)},languageData:{indentOnInput:function(){var e=[];for(var t in b)if(b[t]){var n=b[t].split(";");for(var i in n)e.push(n[i])}return new RegExp("[{}()\\[\\]]|("+e.join("|")+")$")}(),commentTokens:{line:"//",block:{open:"/*",close:"*/"}}}}}const t=e({});var n={"|":"link",">":"property",$:"variable",$$:"variable","?$":"qualifier","?*":"qualifier","-":"contentSeparator","/":"property","/-":"property","@":"variableName.special","@-":"variableName.special","@++":"variableName.special","@+=":"variableName.special","@+=-":"variableName.special","@--":"variableName.special","@-=":"variableName.special","%+":"tag","%-":"tag","%":"tag",">>":"tag","<<":"tag","<>":"tag","#":"tag","^":"attribute","^^":"attribute","^!":"attribute","*":"variable","**":"variable","\\":"keyword",'"':"comment"},i={"/":"beh-hier",">":"beh-hier","-":"phys-hier","|":"pipe","?":"when","@":"stage","\\":"keyword"},r=/^([~!@#\$%\^&\*-\+=\?\/\\\|'"<>]+)([\d\w_]*)/,a=/^[! ] */,o=/^\/[\/\*]/;const l=e({hooks:{electricInput:!1,token:function(e,t){var l,s=void 0;if(e.sol()&&!t.tlvInBlockComment){"\\"==e.peek()&&(s="def",e.skipToEnd(),e.string.match(/\\SV/)?t.tlvCodeActive=!1:e.string.match(/\\TLV/)&&(t.tlvCodeActive=!0)),t.tlvCodeActive&&0==e.pos&&0==t.indented&&(l=e.match(a,!1))&&(t.indented=l[0].length);var c=t.indented,d=c/3;if(d<=t.tlvIndentationStyle.length){var u=e.string.length==c,f=3*d;if(f0||(t.tlvIndentationStyle[d]=i[p],d++))}if(!u)for(;t.tlvIndentationStyle.length>d;)t.tlvIndentationStyle.pop()}t.tlvNextIndent=c}if(t.tlvCodeActive)if(void 0!==s);else if(t.tlvInBlockComment)e.match(/^.*?\*\//)?t.tlvInBlockComment=!1:e.skipToEnd(),s="comment";else if((l=e.match(o))&&!t.tlvInBlockComment)"//"==l[0]?e.skipToEnd():t.tlvInBlockComment=!0,s="comment";else if(l=e.match(r)){var v=l[1],g=l[2];n.hasOwnProperty(v)&&(g.length>0||e.eol())?s=n[v]:e.backUp(e.current().length-1)}else e.match(/^\t+/)?s="invalid":e.match(/^[\[\]{}\(\);\:]+/)?s="meta":(l=e.match(/^[mM]4([\+_])?[\w\d_]*/))?s="+"==l[1]?"keyword.special":"keyword":e.match(/^ +/)?e.eol()&&(s="error"):e.match(/^[\w\d_]+/)?s="number":e.next();else e.match(/^[mM]4([\w\d_]*)/)&&(s="keyword");return s},indent:function(e){return 1==e.tlvCodeActive?e.tlvNextIndent:-1},startState:function(e){e.tlvIndentationStyle=[],e.tlvCodeActive=!0,e.tlvNextIndent=-1,e.tlvInBlockComment=!1}}});export{l as tlv,t as verilog}; diff --git a/nicegui/elements/lib/codemirror/vhdl-BRDI21CQ.js b/nicegui/elements/lib/codemirror/vhdl-BRDI21CQ.js new file mode 100644 index 000000000..ed0c32bb9 --- /dev/null +++ b/nicegui/elements/lib/codemirror/vhdl-BRDI21CQ.js @@ -0,0 +1 @@ +function e(e){for(var t={},n=e.split(","),r=0;r?]/,f=/^-?([1-9][0-9]*|0[Xx][0-9A-Fa-f]+|0[0-7]*)/,d=/^-?(([0-9]+\.[0-9]*|[0-9]*\.[0-9]+)([Ee][+-]?[0-9]+)?|[0-9]+[Ee][+-]?[0-9]+)/,y=/^_?[A-Za-z][0-9A-Z_a-z-]*/,p=/^_?[A-Za-z][0-9A-Z_a-z-]*(?=\s*;)/,b=/^"[^"]*"/,h=/^\/\*.*?\*\//,A=/^\/\*.*/,g=/^.*?\*\//;const D={name:"webidl",startState:function(){return{inComment:!1,lastToken:"",startDef:!1,endDef:!1}},token:function(e,t){var n=function(e,t){if(e.eatSpace())return null;if(t.inComment)return e.match(g)?(t.inComment=!1,"comment"):(e.skipToEnd(),"comment");if(e.match("//"))return e.skipToEnd(),"comment";if(e.match(h))return"comment";if(e.match(A))return t.inComment=!0,"comment";if(e.match(/^-?[0-9\.]/,!1)&&(e.match(f)||e.match(d)))return"number";if(e.match(b))return"string";if(t.startDef&&e.match(y))return"def";if(t.endDef&&e.match(p))return t.endDef=!1,"def";if(e.match(o))return"keyword";if(e.match(a)){var n=t.lastToken,i=(e.match(/^\s*(.+?)\b/,!1)||[])[1];return":"===n||"implements"===n||"implements"===i||"="===i?"builtin":"type"}return e.match(r)?"builtin":e.match(l)?"atom":e.match(y)?"variable":e.match(s)?"operator":(e.next(),null)}(e,t);if(n){var i=e.current();t.lastToken=i,"keyword"===n?(t.startDef=m.test(i),t.endDef=t.endDef||u.test(i)):t.startDef=!1}return n},languageData:{autocomplete:t.concat(n).concat(i).concat(c)}};export{D as webIDL}; diff --git a/nicegui/elements/lib/codemirror/xquery-BZBLoTvf.js b/nicegui/elements/lib/codemirror/xquery-BZBLoTvf.js new file mode 100644 index 000000000..f0f68d314 --- /dev/null +++ b/nicegui/elements/lib/codemirror/xquery-BZBLoTvf.js @@ -0,0 +1 @@ +var e=function(){function e(e){return{type:e,style:"keyword"}}for(var t=e("operator"),n={type:"atom",style:"atom"},r={type:"axis_specifier",style:"qualifier"},a={",":{type:"punctuation",style:null}},i=["after","all","allowing","ancestor","ancestor-or-self","any","array","as","ascending","at","attribute","base-uri","before","boundary-space","by","case","cast","castable","catch","child","collation","comment","construction","contains","content","context","copy","copy-namespaces","count","decimal-format","declare","default","delete","descendant","descendant-or-self","descending","diacritics","different","distance","document","document-node","element","else","empty","empty-sequence","encoding","end","entire","every","exactly","except","external","first","following","following-sibling","for","from","ftand","ftnot","ft-option","ftor","function","fuzzy","greatest","group","if","import","in","inherit","insensitive","insert","instance","intersect","into","invoke","is","item","language","last","lax","least","let","levels","lowercase","map","modify","module","most","namespace","next","no","node","nodes","no-inherit","no-preserve","not","occurs","of","only","option","order","ordered","ordering","paragraph","paragraphs","parent","phrase","preceding","preceding-sibling","preserve","previous","processing-instruction","relationship","rename","replace","return","revalidation","same","satisfies","schema","schema-attribute","schema-element","score","self","sensitive","sentence","sentences","sequence","skip","sliding","some","stable","start","stemming","stop","strict","strip","switch","text","then","thesaurus","times","to","transform","treat","try","tumbling","type","typeswitch","union","unordered","update","updating","uppercase","using","validate","value","variable","version","weight","when","where","wildcards","window","with","without","word","words","xquery"],s=0,o=i.length;s",">=","<","<=",".","|","?","and","or","div","idiv","mod","*","/","+","-"];for(s=0,o=u.length;s\"\'\/?]/);)b+=k;return t(f,x,function(e,t){return function(r,a){return r.eatSpace(),t&&r.eat(">")?(g(a),a.tokenize=n,"tag"):(r.eat("/")||p(a,{type:"tag",name:e,tokenize:n}),r.eat(">")?(a.tokenize=n,"tag"):(a.tokenize=s,"tag"))}}(b,v))}if("{"==d)return p(x,{type:"codeblock"}),null;if("}"==d)return g(x),null;if(l(x))return">"==d?"tag":"/"==d&&f.eat(">")?(g(x),"tag"):"variable";if(/\d/.test(d))return f.match(/^\d*(?:\.\d*)?(?:E[+\-]?\d+)?/),"atom";if("("===d&&f.eat(":"))return p(x,{type:"comment"}),t(f,x,r);if(h||'"'!==d&&"'"!==d){if("$"===d)return t(f,x,i);if(":"===d&&f.eat("="))return"keyword";if("("===d)return p(x,{type:"paren"}),null;if(")"===d)return g(x),null;if("["===d)return p(x,{type:"bracket"}),null;if("]"===d)return g(x),null;var z=e.propertyIsEnumerable(d)&&e[d];if(h&&'"'===d)for(;'"'!==f.next(););if(h&&"'"===d)for(;"'"!==f.next(););z||f.eatWhile(/[\w\$_-]/);var w=f.eat(":");!f.eat(":")&&w&&f.eatWhile(/[\w\$_-]/),f.match(/^[ \t]*\(/,!1)&&(y=!0);var I=f.current();return z=e.propertyIsEnumerable(I)&&e[I],y&&!z&&(z={type:"function_call",style:"def"}),function(e){return m(e,"xmlconstructor")}(x)?(g(x),"variable"):("element"!=I&&"attribute"!=I&&"axis_specifier"!=z.type||p(x,{type:"xmlconstructor"}),z?z.style:"variable")}return t(f,x,a(d))}function r(e,t){for(var n,r=!1,a=!1,i=0;n=e.next();){if(")"==n&&r){if(!(i>0)){g(t);break}i--}else":"==n&&a&&i++;r=":"==n,a="("==n}return"comment"}function a(e,t){return function(r,i){var s;if(function(e){return m(e,"string")}(i)&&r.current()==e)return g(i),t&&(i.tokenize=t),"string";if(p(i,{type:"string",name:e,tokenize:a(e,t)}),r.match("{",!1)&&f(i))return i.tokenize=n,"string";for(;s=r.next();){if(s==e){g(i),t&&(i.tokenize=t);break}if(r.match("{",!1)&&f(i))return i.tokenize=n,"string"}return"string"}}function i(e,t){var r=/[\w\$_-]/;if(e.eat('"')){for(;'"'!==e.next(););e.eat(":")}else e.eatWhile(r),e.match(":=",!1)||e.eat(":");return e.eatWhile(r),t.tokenize=n,"variable"}function s(e,r){var i=e.next();return"/"==i&&e.eat(">")?(f(r)&&g(r),l(r)&&g(r),"tag"):">"==i?(f(r)&&g(r),"tag"):"="==i?null:'"'==i||"'"==i?t(e,r,a(i,s)):(f(r)||p(r,{type:"attribute",tokenize:s}),e.eat(/[a-zA-Z_:]/),e.eatWhile(/[-a-zA-Z0-9_:.]/),e.eatSpace(),(e.match(">",!1)||e.match("/",!1))&&(g(r),r.tokenize=n),"attribute")}function o(e,t){for(var r;r=e.next();)if("-"==r&&e.match("->",!0))return t.tokenize=n,"comment"}function c(e,t){for(var r;r=e.next();)if("]"==r&&e.match("]",!0))return t.tokenize=n,"comment"}function u(e,t){for(var r;r=e.next();)if("?"==r&&e.match(">",!0))return t.tokenize=n,"processingInstruction"}function l(e){return m(e,"tag")}function f(e){return m(e,"attribute")}function m(e,t){return e.stack.length&&e.stack[e.stack.length-1].type==t}function p(e,t){e.stack.push(t)}function g(e){e.stack.pop();var t=e.stack.length&&e.stack[e.stack.length-1].tokenize;e.tokenize=t||n}const x={name:"xquery",startState:function(){return{tokenize:n,cc:[],stack:[]}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)},languageData:{commentTokens:{block:{open:"(:",close:":)"}}}};export{x as xQuery}; diff --git a/nicegui/elements/lib/codemirror/yacas-I8QjZlxf.js b/nicegui/elements/lib/codemirror/yacas-I8QjZlxf.js new file mode 100644 index 000000000..54d3aabb2 --- /dev/null +++ b/nicegui/elements/lib/codemirror/yacas-I8QjZlxf.js @@ -0,0 +1 @@ +var e=function(e){for(var t={},n=e.split(" "),r=0;r|<|&|\||_|`|'|\^|\?|!|%|#)/,!0,!1)?"operator":"error"}function c(e,t){for(var n,r=!1,o=!1;null!=(n=e.next());){if('"'===n&&!o){r=!0;break}o=!o&&"\\"===n}return r&&!o&&(t.tokenize=i),"string"}function u(e,t){for(var n,r;null!=(r=e.next());){if("*"===n&&"/"===r){t.tokenize=i;break}n=r}return"comment"}function l(e){var t=null;return e.scopes.length>0&&(t=e.scopes[e.scopes.length-1]),t}const s={name:"yacas",startState:function(){return{tokenize:i,scopes:[]}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)},indent:function(e,t,n){if(e.tokenize!==i&&null!==e.tokenize)return null;var r=0;return"]"!==t&&"];"!==t&&"}"!==t&&"};"!==t&&");"!==t||(r=-1),(e.scopes.length+r)*n.unit},languageData:{electricInput:/[{}\[\]()\;]/,commentTokens:{line:"//",block:{open:"/*",close:"*/"}}}};export{s as yacas}; diff --git a/nicegui/elements/lib/codemirror/z80-D8p3gKXp.js b/nicegui/elements/lib/codemirror/z80-D8p3gKXp.js new file mode 100644 index 000000000..0cf965b17 --- /dev/null +++ b/nicegui/elements/lib/codemirror/z80-D8p3gKXp.js @@ -0,0 +1 @@ +function e(e){var t,r;e?(t=/^(exx?|(ld|cp)([di]r?)?|[lp]ea|pop|push|ad[cd]|cpl|daa|dec|inc|neg|sbc|sub|and|bit|[cs]cf|x?or|res|set|r[lr]c?a?|r[lr]d|s[lr]a|srl|djnz|nop|[de]i|halt|im|in([di]mr?|ir?|irx|2r?)|ot(dmr?|[id]rx|imr?)|out(0?|[di]r?|[di]2r?)|tst(io)?|slp)(\.([sl]?i)?[sl])?\b/i,r=/^(((call|j[pr]|rst|ret[in]?)(\.([sl]?i)?[sl])?)|(rs|st)mix)\b/i):(t=/^(exx?|(ld|cp|in)([di]r?)?|pop|push|ad[cd]|cpl|daa|dec|inc|neg|sbc|sub|and|bit|[cs]cf|x?or|res|set|r[lr]c?a?|r[lr]d|s[lr]a|srl|djnz|nop|rst|[de]i|halt|im|ot[di]r|out[di]?)\b/i,r=/^(call|j[pr]|ret[in]?|b_?(call|jump))\b/i);var i=/^(af?|bc?|c|de?|e|hl?|l|i[xy]?|r|sp)\b/i,n=/^(n?[zc]|p[oe]?|m)\b/i,l=/^([hl][xy]|i[xy][hl]|slia|sll)\b/i,a=/^([\da-f]+h|[0-7]+o|[01]+b|\d+d?)\b/i;return{name:"z80",startState:function(){return{context:0}},token:function(c,s){if(c.column()||(s.context=0),c.eatSpace())return null;var o;if(c.eatWhile(/\w/)){if(e&&c.eat(".")&&c.eatWhile(/\w/),o=c.current(),!c.indentation())return c.match(a)?"number":null;if((1==s.context||4==s.context)&&i.test(o))return s.context=4,"variable";if(2==s.context&&n.test(o))return s.context=4,"variableName.special";if(t.test(o))return s.context=1,"keyword";if(r.test(o))return s.context=2,"keyword";if(4==s.context&&a.test(o))return"number";if(l.test(o))return"error"}else{if(c.eat(";"))return c.skipToEnd(),"comment";if(c.eat('"')){for(;(o=c.next())&&'"'!=o;)"\\"==o&&c.next();return"string"}if(c.eat("'")){if(c.match(/\\?.'/))return"number"}else if(c.eat(".")||c.sol()&&c.eat("#")){if(s.context=5,c.eatWhile(/\w/))return"def"}else if(c.eat("$")){if(c.eatWhile(/[\da-f]/i))return"number"}else if(c.eat("%")){if(c.eatWhile(/[01]/))return"number"}else c.next()}return null}}}const t=e(!1),r=e(!0);export{r as ez80,t as z80};