@marimo-team/islands 0.25.2-dev9 → 0.25.2-dev91

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (348) hide show
  1. package/dist/{ConnectedDataExplorerComponent-CqhQmp74.js → ConnectedDataExplorerComponent-BZmqc_F0.js} +11 -11
  2. package/dist/{ErrorBoundary-BK6f6roX.js → ErrorBoundary-DzYre0XM.js} +8 -8
  3. package/dist/{abnfDiagram-VCTEODGH-aLGD44M7.js → abnfDiagram-VCTEODGH-C_Lmaa2j.js} +3 -3
  4. package/dist/{any-language-editor-dqxlUDlT.js → any-language-editor-BFzqhOBR.js} +5 -5
  5. package/dist/{apl-BYaaig9_.js → apl-GEW9-ZP1.js} +1 -1
  6. package/dist/{architectureDiagram-5GKGNRK7-BGL5P81u.js → architectureDiagram-5GKGNRK7-BKMataHB.js} +5 -5
  7. package/dist/{asciiarmor-GKQFJXQG.js → asciiarmor-BWNxzkG7.js} +1 -1
  8. package/dist/{asn1-BsSb7HP5.js → asn1-Bcn2QutK.js} +1 -1
  9. package/dist/assets/__vite-browser-external-BqAtzd2P.js +1 -0
  10. package/dist/assets/{worker-D7hWi02M.js → worker-Bf8dt6S-.js} +5 -5
  11. package/dist/{asterisk-B3I8SNb5.js → asterisk-lE36-hJK.js} +1 -1
  12. package/dist/{blockDiagram-I7D4REHJ-CvBmppdy.js → blockDiagram-I7D4REHJ-BeHOjyDk.js} +9 -9
  13. package/dist/{brainfuck-DXjk3bQe.js → brainfuck-BQCYDheZ.js} +1 -1
  14. package/dist/{button-B0Xgl-Qn.js → button-BtsM2UqM.js} +300 -283
  15. package/dist/{c4Diagram-7LVT6UL2-EceL4_jH.js → c4Diagram-7LVT6UL2-Bao10t_O.js} +7 -7
  16. package/dist/{capabilities-D7Ad8-zw.js → capabilities-A5jrzjCJ.js} +1 -1
  17. package/dist/{cells-5ppES-Un.js → cells-DZi0ioak.js} +4330 -4313
  18. package/dist/{channel-z7HZXHwv.js → channel-BxCkvUgE.js} +1 -1
  19. package/dist/{chat-ui-Dv2V95k6.js → chat-ui-CwOWzoSO.js} +46 -46
  20. package/dist/{check-DGZ74tV2.js → check-CNP79M3A.js} +1 -1
  21. package/dist/{chunk-4HAMMTFA-BPTTOOC5.js → chunk-4HAMMTFA-CH7Gpamd.js} +5 -5
  22. package/dist/{chunk-75Z2AOVW-C4AOleKf.js → chunk-75Z2AOVW-AI7CvgKn.js} +1 -1
  23. package/dist/{chunk-DU6HZSFF-1TwWR6gh.js → chunk-DU6HZSFF-BSvuTkX4.js} +1 -1
  24. package/dist/{chunk-F27PBJKO-DMI1PBe4.js → chunk-F27PBJKO-CLshwT9T.js} +1 -1
  25. package/dist/{chunk-GMAD6QVW-vStrMz2P.js → chunk-GMAD6QVW-wnHcn-lH.js} +3 -3
  26. package/dist/{chunk-GVQU2GXP-2HwWgs4u.js → chunk-GVQU2GXP-7O2p8hut.js} +2 -2
  27. package/dist/{chunk-IMKFNOWR-Cm3RgLDj.js → chunk-IMKFNOWR-Bu0Vh_Yi.js} +6 -6
  28. package/dist/{chunk-L3NEJ4N5-RhC7i0I2.js → chunk-L3NEJ4N5-B9_Alrxb.js} +5 -5
  29. package/dist/{chunk-OSK3NFVY-CZV09N-U.js → chunk-OSK3NFVY-PeQPH2fD.js} +6 -6
  30. package/dist/{chunk-P2QGCYS3-0TAWai9C.js → chunk-P2QGCYS3-D9twiFuU.js} +1 -1
  31. package/dist/{chunk-POPQ4Y6H-Cc3_56GX.js → chunk-POPQ4Y6H-BUiNs18s.js} +1 -1
  32. package/dist/{chunk-PWAF6VOD-lNxB9k8z.js → chunk-PWAF6VOD-D8S9NPCy.js} +1 -1
  33. package/dist/{chunk-SHT3W25Y-DedDYSP5.js → chunk-SHT3W25Y-B2dyNZ31.js} +8 -8
  34. package/dist/{chunk-SVP7TREG-B2SFkCAL.js → chunk-SVP7TREG-D7UPvB10.js} +2 -2
  35. package/dist/{chunk-TICWLB2K-DB6hjNOL.js → chunk-TICWLB2K-BNaGoadd.js} +6 -6
  36. package/dist/classDiagram-ZZMXUADV-Bbo2n384.js +30 -0
  37. package/dist/classDiagram-v2-VYDZK3BY-xR8cGP0r.js +30 -0
  38. package/dist/{clike-E2lFbGVj.js → clike-CxK9W55Z.js} +1 -1
  39. package/dist/{clojure-Dn_K4RlK.js → clojure-Dzcvwpxk.js} +1 -1
  40. package/dist/{cmake-DpN2Top5.js → cmake-DYr-71zp.js} +1 -1
  41. package/dist/{cobol-Chf22-GM.js → cobol-DC3g37Kq.js} +1 -1
  42. package/dist/{code-visibility-Ba_h3MSI.js → code-visibility-BrGBr50V.js} +6 -6
  43. package/dist/{coffeescript-BVe1OiD9.js → coffeescript-C-eFwH5N.js} +1 -1
  44. package/dist/{common-0rJUT4CU.js → common-Dzc60302.js} +11904 -11621
  45. package/dist/{commonlisp-DxoBG7fU.js → commonlisp-CyaNXrJR.js} +1 -1
  46. package/dist/{copy-icon-qmRg_VTX.js → copy-icon-BY7jgcaV.js} +3 -3
  47. package/dist/{crystal-DCM3yc4r.js → crystal-ih5ax5tQ.js} +1 -1
  48. package/dist/{css-DkZ9mMyI.js → css-CN_wP7_R.js} +1 -1
  49. package/dist/{cynefinDiagram-5FMLGOSQ-DzaZEqgD.js → cynefinDiagram-5FMLGOSQ-CCDn4Z9e.js} +3 -3
  50. package/dist/{cypher-Drw_8U5I.js → cypher-CqGRcmZo.js} +1 -1
  51. package/dist/{d-CsVGcKMF.js → d-Cj0sOW2z.js} +1 -1
  52. package/dist/{dagre-GXQ25YYZ-Cjf5GjU3.js → dagre-GXQ25YYZ-BJiUO_SV.js} +10 -10
  53. package/dist/{data-grid-overlay-editor-DvZ8ZYHw.js → data-grid-overlay-editor-BWXtsJqJ.js} +1 -1
  54. package/dist/{diagram-S7CK7UJ4-IhLt_khx.js → diagram-S7CK7UJ4-BZfxFNRR.js} +4 -4
  55. package/dist/{diagram-UQ7AKVKN-CQc6KLPB.js → diagram-UQ7AKVKN-1xcsiIMg.js} +3 -3
  56. package/dist/{diagram-VSXAHHWV-CR7BJygZ.js → diagram-VSXAHHWV-DPAWJ9Nw.js} +2 -2
  57. package/dist/{diagram-VX7I27RA-DHmW9N1T.js → diagram-VX7I27RA-DmRsnHYY.js} +5 -5
  58. package/dist/{diagram-Z3DM3KII-zVKsg-Ty.js → diagram-Z3DM3KII--b49ryKx.js} +3 -3
  59. package/dist/{dialog-CILKhbsG.js → dialog-CmExhUDI.js} +26 -26
  60. package/dist/{diff-CBikYCUF.js → diff-B_hUkiat.js} +1 -1
  61. package/dist/{dist-Df0wKI0F.js → dist-BK4Oj99o.js} +1 -1
  62. package/dist/{dist-BVGtK7Ht.js → dist-BLfKmR-l.js} +1 -1
  63. package/dist/{dist-B8D7McG3.js → dist-BMQf5zIS.js} +46 -46
  64. package/dist/{dist-C2KzV-vf.js → dist-BorMD-uX.js} +2 -2
  65. package/dist/{dist-Cs2FijYk.js → dist-BuaRHxOc.js} +2 -2
  66. package/dist/{dist-DPcEtqmG.js → dist-Bvs24R_E.js} +47 -47
  67. package/dist/{dist-lA1Cttkb.js → dist-C8fAKSH1.js} +41 -41
  68. package/dist/{dist-DszxuxS1.js → dist-CLdpGQVr.js} +2 -2
  69. package/dist/{dist-CO1AwwG_.js → dist-CN8zI-XC.js} +209 -209
  70. package/dist/{dist-D1PpnuZB.js → dist-CN_BeG2I.js} +1 -1
  71. package/dist/{dist-CPGxfVGX.js → dist-CSJ0MDRw.js} +1 -1
  72. package/dist/{dist-Cm3iAFMD.js → dist-CSbh1PNP.js} +3 -3
  73. package/dist/{dist-9x1ZRe-e.js → dist-Cg7gzw-a.js} +2 -2
  74. package/dist/{dist-B1vYLK28.js → dist-CkTTIdBe.js} +345 -345
  75. package/dist/{dist-BRxfaJgs.js → dist-CrSP_H1M.js} +296 -296
  76. package/dist/{dist-C2wDlYdD.js → dist-D-wwqlzJ.js} +2 -2
  77. package/dist/{dist-BtKIs9N-.js → dist-D6d86eNJ.js} +1 -1
  78. package/dist/{dist-DHOTQar0.js → dist-DBtSl3sf.js} +1 -1
  79. package/dist/{dist-KzZ7WELx.js → dist-DiDibOYr.js} +120 -120
  80. package/dist/{dist-Kxgjxakw.js → dist-DoE4XJBC.js} +1277 -1222
  81. package/dist/{dist-BHCHt1NI.js → dist-F8Ep36rk.js} +1 -1
  82. package/dist/{dist-C8xMLVYi.js → dist-OR1OnN-y.js} +44 -44
  83. package/dist/{dist-1HDa70oE.js → dist-PXYI_yuP.js} +3 -3
  84. package/dist/{dist-CMh_W4y4.js → dist-diIx5qJW.js} +2 -2
  85. package/dist/{dockerfile-DJnSntVB.js → dockerfile-D0VKN500.js} +2 -2
  86. package/dist/dropdown-menu-Cz4TdOJh.js +4678 -0
  87. package/dist/{dtd-BHa4v0Bn.js → dtd-B8FGSWWe.js} +1 -1
  88. package/dist/{dylan-BypL2Zz8.js → dylan-DbIBYIrw.js} +1 -1
  89. package/dist/{ebnf-5guncNu-.js → ebnf-D-YbYLdk.js} +1 -1
  90. package/dist/{ebnfDiagram-PWID7BFC-DDd5hCRC.js → ebnfDiagram-PWID7BFC-rSwVyh4y.js} +3 -3
  91. package/dist/{ecl-iRcVIKYZ.js → ecl-DBmkdWAd.js} +1 -1
  92. package/dist/{eiffel-BEqF9aU4.js → eiffel-CcWSDDzK.js} +1 -1
  93. package/dist/{elm-DYcfNE9c.js → elm-MC-b8a6C.js} +1 -1
  94. package/dist/{erDiagram-RLTQ6QDP-D10NP0eI.js → erDiagram-RLTQ6QDP-Bfd3iAoC.js} +12 -12
  95. package/dist/{erlang-BtAuIoF0.js → erlang-AdO1-xtV.js} +1 -1
  96. package/dist/error-banner-D30nA9nE.js +362 -0
  97. package/dist/{error-entries-B2Ux3Z2X.js → error-entries-BovkFYNy.js} +2 -2
  98. package/dist/{esm-BElI3qKH.js → esm-D2gTsXEV.js} +579 -579
  99. package/dist/{esm-h8f7-1CJ.js → esm-DAVrGVKP.js} +378 -372
  100. package/dist/{factor-3nzOwLuN.js → factor-Ys-13HOP.js} +2 -2
  101. package/dist/{fcl-C90TGnJJ.js → fcl-DnwditDr.js} +1 -1
  102. package/dist/{feedback-button-Bd-kdxIT.js → feedback-button-DfcvEzG_.js} +10 -10
  103. package/dist/flowDiagram-HODETNUW-D7IBKS12.js +16 -0
  104. package/dist/{formats-Q9gwlLyD.js → formats-DhhbdyAH.js} +3 -3
  105. package/dist/{forth-DEaRrLUi.js → forth-DiMuIXFe.js} +1 -1
  106. package/dist/{fortran-Bv6JRUjY.js → fortran-hkrF2eM4.js} +1 -1
  107. package/dist/{ganttDiagram-EL5Y4UJY-cRRaDt88.js → ganttDiagram-EL5Y4UJY-B4m_YsKa.js} +2 -2
  108. package/dist/{gas-JNerWj3-.js → gas-DlhqN9k8.js} +1 -1
  109. package/dist/{gherkin-CSrl-H70.js → gherkin-0SlhEZ3t.js} +1 -1
  110. package/dist/{gitGraphDiagram-WWUBYQGX-Pox5k9-Y.js → gitGraphDiagram-WWUBYQGX-QRBbvWXh.js} +2 -2
  111. package/dist/{glide-data-editor-DrEBdhP5.js → glide-data-editor-DPRKOYOy.js} +11 -11
  112. package/dist/{glide-utils-CzzWU59p.js → glide-utils-BVJ4fkxX.js} +3 -3
  113. package/dist/{globals-BVhJcU-3.js → globals-YaxEeXdo.js} +3 -3
  114. package/dist/{groovy-X7euO_vE.js → groovy-YhcTMyvX.js} +1 -1
  115. package/dist/{haskell-C48Z70Az.js → haskell-CodLxrtT.js} +1 -1
  116. package/dist/{haxe-CAUWMmwR.js → haxe-CiRWNFkH.js} +1 -1
  117. package/dist/{html-to-image-BZBwkkDG.js → html-to-image-Cn1_16-x.js} +543 -565
  118. package/dist/{http-BrSBnhDH.js → http-Bh6HhdNR.js} +1 -1
  119. package/dist/{idl-BXuPleZv.js → idl-DZgBq75I.js} +1 -1
  120. package/dist/{infoDiagram-27XIBGKW-DrYu3UZC.js → infoDiagram-27XIBGKW-DVQFYvhg.js} +2 -2
  121. package/dist/{ishikawaDiagram-5VMMS53U-pmkGQJsA.js → ishikawaDiagram-5VMMS53U-viPND-nm.js} +3 -3
  122. package/dist/{javascript-B4EPWJf_.js → javascript-BfNytHiM.js} +1 -1
  123. package/dist/{journeyDiagram-3NMN7TZE-EPJDPlt0.js → journeyDiagram-3NMN7TZE-BeeJdJo3.js} +2 -2
  124. package/dist/{julia-ke9Kh8b7.js → julia--tLIAG7q.js} +1 -1
  125. package/dist/{kanban-definition-UXKFOSKX-wWGD9VLW.js → kanban-definition-UXKFOSKX-Dcl_ECO9.js} +9 -9
  126. package/dist/{label-MNhNNoN6.js → label-DQO1jFjf.js} +96 -93
  127. package/dist/{livescript-Ce4uqGAC.js → livescript-CVPfYnY_.js} +1 -1
  128. package/dist/{loader-C9OUkMrj.js → loader-Cm-ATtou.js} +1 -1
  129. package/dist/{lua-D6fti_Jk.js → lua-4Fa-T-qq.js} +1 -1
  130. package/dist/main.js +6866 -6746
  131. package/dist/{mathematica-DcEpZ3Vj.js → mathematica-CtYAy6GG.js} +1 -1
  132. package/dist/{mbox-DFBbOu0X.js → mbox-D0w9Ah1C.js} +1 -1
  133. package/dist/{mermaid-Dfvntf3s.js → mermaid-BfhcnSj-.js} +54 -54
  134. package/dist/{mindmap-definition-YA3MSWOX-C2f1VIBR.js → mindmap-definition-YA3MSWOX-BdxxhF-5.js} +11 -11
  135. package/dist/{mirc-CqeibO3N.js → mirc-De9aSAZM.js} +1 -1
  136. package/dist/{mllike-D54QZYTP.js → mllike-BbugeaY_.js} +1 -1
  137. package/dist/{modelica-DuML2-8V.js → modelica-BjJwWw1F.js} +1 -1
  138. package/dist/{mscgen-CJmKwp3b.js → mscgen-DwiRH5ma.js} +1 -1
  139. package/dist/{mumps-DaVgFtkd.js → mumps--plbDM9o.js} +1 -1
  140. package/dist/{nginx-BXN1rqI0.js → nginx-C4Df7REc.js} +1 -1
  141. package/dist/{nsis-CMfRqf0V.js → nsis-fiiOqLc3.js} +7 -7
  142. package/dist/{ntriples-BiOGlMDR.js → ntriples-jV77I4k8.js} +1 -1
  143. package/dist/{number-overlay-editor-DthBBC83.js → number-overlay-editor-CrM5W4xK.js} +1 -1
  144. package/dist/{octave-CgVnzxKk.js → octave-Cztd01tF.js} +1 -1
  145. package/dist/{oz-B2mky97X.js → oz-Bl8o3BDl.js} +1 -1
  146. package/dist/{pascal-BoZhBf6s.js → pascal-BO5JqysR.js} +1 -1
  147. package/dist/{pegDiagram-XKGWAZYB-D6v5dz4M.js → pegDiagram-XKGWAZYB-Du5p2s0w.js} +3 -3
  148. package/dist/{perl-DjzMqXtt.js → perl-Drlh9s6m.js} +1 -1
  149. package/dist/{pieDiagram-E7YTZNPT-BwFAhpYD.js → pieDiagram-E7YTZNPT-DJg-SOIq.js} +3 -3
  150. package/dist/{pig-B2mB-01d.js → pig-BWGR8wZw.js} +1 -1
  151. package/dist/{powershell-D0zT88Aj.js → powershell-DT99xlz_.js} +1 -1
  152. package/dist/{process-output-BSsWzfnY.js → process-output-CUG57KRp.js} +4 -4
  153. package/dist/{properties-3_5qCgOj.js → properties-Q-rkxld0.js} +1 -1
  154. package/dist/{protobuf-Dgoxfi1H.js → protobuf-DKyWZbs7.js} +1 -1
  155. package/dist/{pug-CNRdd8oG.js → pug-42ZJUbEC.js} +2 -2
  156. package/dist/{puppet-DzILxZfz.js → puppet-B4UozHhh.js} +1 -1
  157. package/dist/purify.es-DMv5zIkJ.js +866 -0
  158. package/dist/{python-AfVdMn_l.js → python-DREjAV__.js} +1 -1
  159. package/dist/{q-C6p-CGWh.js → q-Bi63IpBO.js} +1 -1
  160. package/dist/{quadrantDiagram-AXDQQJYC--kqzFC3w.js → quadrantDiagram-AXDQQJYC-keLfFx9f.js} +1 -1
  161. package/dist/{r-CzKF1D2X.js → r-DSwXWKMR.js} +1 -1
  162. package/dist/{railroadDiagram-O6MQD6OU-D6eOFr6Z.js → railroadDiagram-O6MQD6OU-C0ojm-6_.js} +3 -3
  163. package/dist/{requirementDiagram-BXWQKSXE-CHYsMgDR.js → requirementDiagram-BXWQKSXE-CNwNBmI3.js} +11 -11
  164. package/dist/{reveal-component-CX4Yqwsa.js → reveal-component-C_8eQYsH.js} +10 -10
  165. package/dist/{rpm-Bx7FkjTO.js → rpm-DPb1DeKM.js} +1 -1
  166. package/dist/{ruby-BMzgq2bf.js → ruby-U7fZA4DP.js} +2 -2
  167. package/dist/{sankeyDiagram-P5KCCOFB-BdzhT0BM.js → sankeyDiagram-P5KCCOFB-Bh4EsJox.js} +1 -1
  168. package/dist/{sas-ClGVnK3F.js → sas-CLk1JpTn.js} +1 -1
  169. package/dist/{scheme-C0MXqXep.js → scheme-CT-2k2Tl.js} +1 -1
  170. package/dist/select-Bs-nmvm6.js +1344 -0
  171. package/dist/{sequenceDiagram-WJ2MYXX4-BPAknhBp.js → sequenceDiagram-WJ2MYXX4-DQaW5qBG.js} +4 -4
  172. package/dist/{shell-CiQZv6oG.js → shell-BLO7fcsk.js} +1 -1
  173. package/dist/{sieve-BiIMePvV.js → sieve-nG3C7WNH.js} +1 -1
  174. package/dist/{simple-mode-8ETW2RS6.js → simple-mode-C683Q7or.js} +1 -1
  175. package/dist/{smalltalk-9-llftyG.js → smalltalk-BROcZybA.js} +1 -1
  176. package/dist/{solr-CxCKEuwq.js → solr-mVltHNc5.js} +1 -1
  177. package/dist/{sparql-BRmy7pzx.js → sparql-Cv1Ksr4v.js} +1 -1
  178. package/dist/{spec-D62vWpMT.js → spec-DVsoMvYT.js} +116 -135
  179. package/dist/{spreadsheet-UCNUIGsn.js → spreadsheet-BwTnp5K_.js} +1 -1
  180. package/dist/{sql-D0hSGZ-H.js → sql-CjLt0122.js} +1 -1
  181. package/dist/{stateDiagram-D77RDMKH-Cq249IQ4.js → stateDiagram-D77RDMKH-BDa515QC.js} +13 -13
  182. package/dist/stateDiagram-v2-MP3YSRHH-ChNddepZ.js +30 -0
  183. package/dist/{stex-UeT_Aofp.js → stex-Btf3omL8.js} +1 -1
  184. package/dist/style.css +1 -1
  185. package/dist/{stylus-Fi4waA2H.js → stylus-Dt4VvLXL.js} +1 -1
  186. package/dist/{swift-NqPyaBye.js → swift-DHsn_CVI.js} +1 -1
  187. package/dist/{swimlanes-42K2YHIH-Bh_S_HKD.js → swimlanes-42K2YHIH-M4IdGi8J.js} +10 -10
  188. package/dist/swimlanesDiagram-VR7AAH4N-FUSwmzEp.js +30 -0
  189. package/dist/{swiper-component-DkV7T44B.js → swiper-component-CpN-hewZ.js} +2 -2
  190. package/dist/{tcl-B4f0xfmM.js → tcl-CV0OLBOl.js} +1 -1
  191. package/dist/{textile-CnNbnPTe.js → textile-D320oKVM.js} +1 -1
  192. package/dist/{tiddlywiki-CSGSOg38.js → tiddlywiki-BVVNvfy4.js} +1 -1
  193. package/dist/{tiki-9F02WBA6.js → tiki-BF2aDPlB.js} +1 -1
  194. package/dist/{timeline-definition-24CTP7MA-ByNMgBE7.js → timeline-definition-24CTP7MA-DH-kvakg.js} +3 -3
  195. package/dist/{toDate-DWVp6uE1.js → toDate-vEi5kTfY.js} +4 -5
  196. package/dist/{toast-DcoJGS3-.js → toast-DfEpJedt.js} +157 -161
  197. package/dist/{toml-AesZ6RBt.js → toml-CaUN7UHo.js} +1 -1
  198. package/dist/{tooltip-Bi36DgYh.js → tooltip-CuNWg2ay.js} +543 -579
  199. package/dist/{troff-DlfvveK1.js → troff-DQUFcClZ.js} +1 -1
  200. package/dist/{ttcn--YVSkGs_.js → ttcn-CQL1duJS.js} +1 -1
  201. package/dist/{ttcn-cfg-Bb1Knl_J.js → ttcn-cfg-BMmEFJPu.js} +1 -1
  202. package/dist/{turtle-DC24v1bz.js → turtle-C3esgsRr.js} +1 -1
  203. package/dist/{use-restore-focus-ZgG5Br63.js → use-restore-focus-kmgwrL8q.js} +1833 -1625
  204. package/dist/{useAsyncData-BD7NLQ3_.js → useAsyncData-rkAlR_vh.js} +1 -1
  205. package/dist/{useDateFormatter-D8XWr8lL.js → useDateFormatter-C-tz65rD.js} +52 -31
  206. package/dist/{useDeepCompareMemoize-CawMGSRU.js → useDeepCompareMemoize-BlHFBj5_.js} +1 -1
  207. package/dist/{useIframeCapabilities-BUMBOpsM.js → useIframeCapabilities-C1Bt04Iz.js} +1 -1
  208. package/dist/{useLifecycle-3vGhRa1o.js → useLifecycle-B68iY077.js} +3 -3
  209. package/dist/{useTheme-BOw801nZ.js → useTheme-BwSgeAFb.js} +2 -2
  210. package/dist/{vb-Dpc8vhvF.js → vb-RK1eDXRl.js} +1 -1
  211. package/dist/{vbscript-B-Y1XnZe.js → vbscript-BCOeM0de.js} +1 -1
  212. package/dist/{vega-component-9siY74NS.js → vega-component-C-bPttRN.js} +9 -9
  213. package/dist/{velocity-DHMu9kc-.js → velocity-CZKOFbOI.js} +1 -1
  214. package/dist/{vennDiagram-4TSXK5OY-DY8CySdO.js → vennDiagram-4TSXK5OY-d5g7XeiI.js} +3 -3
  215. package/dist/{verilog-DhiEaoUl.js → verilog-DqQTzVn8.js} +1 -1
  216. package/dist/{vhdl-D4X23YKO.js → vhdl-vQr2bfmi.js} +1 -1
  217. package/dist/{wardleyDiagram-VM6X3IG4-DYC1AFni.js → wardleyDiagram-VM6X3IG4-BfX3bSzR.js} +3 -3
  218. package/dist/{webidl-SyzNxWpJ.js → webidl-DzX7N40e.js} +1 -1
  219. package/dist/{xquery-BC2R4Hk6.js → xquery-Cw_Q_hGR.js} +1 -1
  220. package/dist/{xychartDiagram-S5SC5T6Z-Df8LLnuY.js → xychartDiagram-S5SC5T6Z-C1QsLZg7.js} +5 -5
  221. package/dist/{yacas-DLNXPMmH.js → yacas-DiC4jJBE.js} +1 -1
  222. package/dist/{z80-CDXWHOO6.js → z80-CUOQDEJO.js} +1 -1
  223. package/package.json +16 -16
  224. package/src/__tests__/mount.test.ts +6 -6
  225. package/src/components/chat/tool-call/__tests__/tool-result.test.tsx +56 -0
  226. package/src/components/chat/tool-call/tool-result.tsx +3 -3
  227. package/src/components/data-table/TableTopBar.tsx +4 -0
  228. package/src/components/data-table/__tests__/export-actions.test.tsx +1111 -14
  229. package/src/components/data-table/__tests__/pagination.test.tsx +85 -1
  230. package/src/components/data-table/__tests__/schemas.test.ts +57 -0
  231. package/src/components/data-table/charts/__tests__/schemas.test.ts +25 -0
  232. package/src/components/data-table/charts/__tests__/spec.test.ts +26 -23
  233. package/src/components/data-table/charts/constants.ts +11 -10
  234. package/src/components/data-table/charts/types.ts +1 -0
  235. package/src/components/data-table/data-table.tsx +3 -0
  236. package/src/components/data-table/export-actions.tsx +365 -81
  237. package/src/components/data-table/pagination.tsx +16 -2
  238. package/src/components/data-table/schemas.ts +90 -14
  239. package/src/components/editor/actions/__tests__/pair-with-agent-commands.test.ts +32 -46
  240. package/src/components/editor/actions/__tests__/pair-with-agent-modal.test.tsx +29 -40
  241. package/src/components/editor/actions/pair-with-agent-commands.ts +3 -4
  242. package/src/components/editor/actions/pair-with-agent-modal.tsx +4 -7
  243. package/src/components/editor/actions/useRestartKernel.tsx +2 -2
  244. package/src/components/editor/alerts/__tests__/connection-notice.test.tsx +224 -17
  245. package/src/components/editor/alerts/connection-details.tsx +61 -0
  246. package/src/components/editor/alerts/connection-notice.tsx +46 -53
  247. package/src/components/editor/alerts/startup-progress.tsx +73 -129
  248. package/src/components/editor/app-container.tsx +2 -2
  249. package/src/components/editor/boundary/__tests__/ErrorBoundary.test.tsx +2 -2
  250. package/src/components/editor/cell/CreateCellButton.tsx +2 -2
  251. package/src/components/editor/cell/DeleteButton.tsx +2 -2
  252. package/src/components/editor/cell/RunButton.tsx +3 -3
  253. package/src/components/editor/cell/StopButton.tsx +2 -2
  254. package/src/components/editor/chrome/components/__tests__/feedback-button.test.tsx +4 -4
  255. package/src/components/editor/chrome/components/feedback-button.tsx +3 -3
  256. package/src/components/editor/chrome/panels/__tests__/packages-panel.test.tsx +8 -8
  257. package/src/components/editor/chrome/panels/__tests__/{sandbox-details.test.tsx → runtime-details.test.tsx} +94 -22
  258. package/src/components/editor/chrome/panels/__tests__/sandbox-recovery.test.tsx +4 -4
  259. package/src/components/editor/chrome/panels/packages-panel.tsx +8 -29
  260. package/src/components/editor/chrome/panels/{sandbox-details-state.ts → runtime-details-state.ts} +1 -1
  261. package/src/components/editor/chrome/panels/{sandbox-panel.tsx → runtime-panel.tsx} +38 -66
  262. package/src/components/editor/chrome/panels/runtime-status-toggle.tsx +56 -0
  263. package/src/components/editor/chrome/panels/sandbox-controller.tsx +2 -2
  264. package/src/components/editor/chrome/wrapper/app-chrome.tsx +3 -3
  265. package/src/components/editor/chrome/wrapper/footer-items/machine-stats.tsx +2 -2
  266. package/src/components/editor/controls/Controls.tsx +3 -3
  267. package/src/components/editor/controls/__tests__/notebook-menu-dropdown.test.tsx +2 -2
  268. package/src/components/editor/header/__tests__/status.test.tsx +4 -4
  269. package/src/components/editor/header/app-header.tsx +2 -2
  270. package/src/components/editor/header/status.tsx +3 -3
  271. package/src/components/editor/navigation/__tests__/navigation.test.ts +8 -8
  272. package/src/components/ui/__tests__/slider.test.tsx +30 -0
  273. package/src/components/ui/progress-stages.tsx +114 -0
  274. package/src/core/codemirror/lsp/__tests__/notebook-lsp.test.ts +106 -5
  275. package/src/core/codemirror/lsp/notebook-lsp.ts +16 -2
  276. package/src/core/codemirror/readonly/__tests__/extension.test.ts +6 -6
  277. package/src/core/codemirror/readonly/extension.ts +2 -2
  278. package/src/core/config/pair.ts +0 -1
  279. package/src/core/datasets/__tests__/data-source-discovery.test.ts +2 -2
  280. package/src/core/edit-app.tsx +5 -1
  281. package/src/core/export/hooks.ts +2 -2
  282. package/src/core/islands/bootstrap.ts +1 -0
  283. package/src/core/kernel/session.ts +9 -0
  284. package/src/core/network/__tests__/connection.test.ts +3 -3
  285. package/src/core/network/connection-notice.ts +5 -5
  286. package/src/core/network/connection.ts +9 -9
  287. package/src/core/network/requests-lazy.ts +2 -2
  288. package/src/core/packages/__tests__/useSandboxController.test.tsx +2 -2
  289. package/src/core/packages/useSandboxController.ts +6 -6
  290. package/src/core/runtime/__tests__/adapter.test.ts +6 -6
  291. package/src/core/runtime/adapter.ts +7 -7
  292. package/src/core/runtime/config.ts +2 -2
  293. package/src/core/saving/filename.ts +2 -2
  294. package/src/core/saving/save-component.tsx +5 -5
  295. package/src/core/saving/useAutoSave.ts +2 -2
  296. package/src/core/wasm/__tests__/bootstrap.test.ts +33 -1
  297. package/src/core/wasm/worker/bootstrap.ts +22 -3
  298. package/src/core/websocket/__tests__/useMarimoKernelConnection.hook.test.tsx +30 -25
  299. package/src/core/websocket/__tests__/useMarimoKernelConnection.test.ts +5 -5
  300. package/src/core/websocket/connection-utils.ts +21 -21
  301. package/src/core/websocket/types.ts +8 -9
  302. package/src/core/websocket/useMarimoKernelConnection.tsx +33 -22
  303. package/src/css/katex.min.css +145 -144
  304. package/src/mount.tsx +2 -2
  305. package/src/plugins/core/__test__/registerReactComponent.test.ts +55 -0
  306. package/src/plugins/core/registerReactComponent.tsx +3 -1
  307. package/src/plugins/impl/CheckboxPlugin.tsx +1 -1
  308. package/src/plugins/impl/DataTablePlugin.tsx +23 -2
  309. package/src/plugins/impl/DatePickerPlugin.tsx +5 -3
  310. package/src/plugins/impl/DateRangePlugin.tsx +5 -3
  311. package/src/plugins/impl/DateTimePickerPlugin.tsx +5 -3
  312. package/src/plugins/impl/DropdownPlugin.tsx +1 -1
  313. package/src/plugins/impl/MultiselectPlugin.tsx +1 -1
  314. package/src/plugins/impl/NumberPlugin.tsx +1 -1
  315. package/src/plugins/impl/RadioPlugin.tsx +5 -1
  316. package/src/plugins/impl/RangeSliderPlugin.tsx +1 -1
  317. package/src/plugins/impl/SearchableSelect.tsx +1 -1
  318. package/src/plugins/impl/SliderPlugin.tsx +1 -1
  319. package/src/plugins/impl/SwitchPlugin.tsx +6 -1
  320. package/src/plugins/impl/TextAreaPlugin.tsx +23 -4
  321. package/src/plugins/impl/TextInputPlugin.tsx +10 -2
  322. package/src/plugins/impl/__test__/text-labels.test.tsx +141 -0
  323. package/src/plugins/impl/__tests__/DataTablePlugin.test.tsx +65 -8
  324. package/src/plugins/impl/__tests__/widget-labels.test.tsx +122 -0
  325. package/src/plugins/impl/chat/ChatPlugin.tsx +1 -1
  326. package/src/plugins/impl/common/labeled.tsx +9 -3
  327. package/src/plugins/impl/data-frames/DataFramePlugin.tsx +15 -3
  328. package/src/plugins/impl/data-frames/forms/__tests__/__snapshots__/form.test.tsx.snap +0 -22
  329. package/src/stories/cell.stories.tsx +2 -2
  330. package/src/stories/dataframe.stories.tsx +7 -0
  331. package/src/stories/layout/vertical/one-column.stories.tsx +5 -5
  332. package/src/stories/progress-stages.stories.tsx +62 -0
  333. package/src/stories/runtime-existing.stories.tsx +44 -0
  334. package/src/stories/runtime-maintenance.stories.tsx +40 -0
  335. package/src/stories/runtime-pixi.stories.tsx +28 -0
  336. package/src/stories/{sandbox.stories.tsx → runtime-story.tsx} +191 -152
  337. package/src/stories/runtime-uv.stories.tsx +56 -0
  338. package/dist/assets/__vite-browser-external-C9iR87Zl.js +0 -1
  339. package/dist/classDiagram-ZZMXUADV-BwYhrSEX.js +0 -30
  340. package/dist/classDiagram-v2-VYDZK3BY-HecM04TM.js +0 -30
  341. package/dist/dropdown-menu-BaqM0t4N.js +0 -4502
  342. package/dist/error-banner-DzAmP0AQ.js +0 -391
  343. package/dist/flowDiagram-HODETNUW-DgcjSdPV.js +0 -16
  344. package/dist/purify.es-DgKyQviY.js +0 -805
  345. package/dist/select-BcObMjGz.js +0 -970
  346. package/dist/stateDiagram-v2-MP3YSRHH-Dk5QgdXF.js +0 -30
  347. package/dist/swimlanesDiagram-VR7AAH4N-CbztusY8.js +0 -30
  348. package/src/components/editor/chrome/panels/sandbox-toggle.tsx +0 -52
@@ -1,11 +1,11 @@
1
- import { $ as e, Bt as t, Dt as n, Ht as r, I as i, It as a, Kt as o, Lt as s, Mt as c, Nt as l, Pt as u, Q as d, Rt as f, St as p, Ut as m, Vt as h, Z as g, ct as _, gt as v, j as y, jt as b, kt as x, mt as S, nt as ee, tt as te, wt as ne, zt as re } from "./dist-Kxgjxakw.js";
1
+ import { $ as e, At as t, Bt as n, Ct as r, Ft as i, Ht as a, I as o, Lt as s, Mt as c, Nt as l, Ot as u, Pt as d, Q as f, Rt as p, Tt as m, Ut as h, Vt as g, Wt as _, Z as v, _t as y, ht as b, j as x, lt as S, nt as ee, qt as te, tt as ne, zt as C } from "./dist-DoE4XJBC.js";
2
2
  //#region ../node_modules/.pnpm/@codemirror+autocomplete@6.20.3/node_modules/@codemirror/autocomplete/dist/index.js
3
- var C = class {
3
+ var w = class {
4
4
  constructor(e, t, n, r) {
5
5
  this.state = e, this.pos = t, this.explicit = n, this.view = r, this.abortListeners = [], this.abortOnDocChange = !1;
6
6
  }
7
7
  tokenBefore(e) {
8
- let t = i(this.state).resolveInner(this.pos, -1);
8
+ let t = o(this.state).resolveInner(this.pos, -1);
9
9
  for (; t && e.indexOf(t.name) < 0;) t = t.parent;
10
10
  return t ? {
11
11
  from: t.from,
@@ -15,7 +15,7 @@ var C = class {
15
15
  } : null;
16
16
  }
17
17
  matchBefore(e) {
18
- let t = this.state.doc.lineAt(this.pos), n = Math.max(t.from, this.pos - 250), r = t.text.slice(n - t.from, this.pos - t.from), i = r.search(se(e, !1));
18
+ let t = this.state.doc.lineAt(this.pos), n = Math.max(t.from, this.pos - 250), r = t.text.slice(n - t.from, this.pos - t.from), i = r.search(ae(e, !1));
19
19
  return i < 0 ? null : {
20
20
  from: n + i,
21
21
  to: this.pos,
@@ -29,21 +29,21 @@ var C = class {
29
29
  e == "abort" && this.abortListeners && (this.abortListeners.push(t), n && n.onDocChange && (this.abortOnDocChange = !0));
30
30
  }
31
31
  };
32
- function w(e) {
32
+ function T(e) {
33
33
  let t = Object.keys(e).join(""), n = /\w/.test(t);
34
34
  return n && (t = t.replace(/\w/g, "")), `[${n ? "\\w" : ""}${t.replace(/[^\w\s]/g, "\\$&")}]`;
35
35
  }
36
- function ie(e) {
36
+ function re(e) {
37
37
  let t = Object.create(null), n = Object.create(null);
38
38
  for (let { label: r } of e) {
39
39
  t[r[0]] = !0;
40
40
  for (let e = 1; e < r.length; e++) n[r[e]] = !0;
41
41
  }
42
- let r = w(t) + w(n) + "*$";
42
+ let r = T(t) + T(n) + "*$";
43
43
  return [RegExp("^" + r), new RegExp(r)];
44
44
  }
45
- function T(e) {
46
- let t = e.map((e) => typeof e == "string" ? { label: e } : e), [n, r] = t.every((e) => /^\w+$/.test(e.label)) ? [/\w*$/, /\w+$/] : ie(t);
45
+ function E(e) {
46
+ let t = e.map((e) => typeof e == "string" ? { label: e } : e), [n, r] = t.every((e) => /^\w+$/.test(e.label)) ? [/\w*$/, /\w+$/] : re(t);
47
47
  return (e) => {
48
48
  let i = e.matchBefore(r);
49
49
  return i || e.explicit ? {
@@ -53,61 +53,61 @@ function T(e) {
53
53
  } : null;
54
54
  };
55
55
  }
56
- function ae(e, t) {
56
+ function ie(e, t) {
57
57
  return (n) => {
58
- for (let t = i(n.state).resolveInner(n.pos, -1); t; t = t.parent) {
58
+ for (let t = o(n.state).resolveInner(n.pos, -1); t; t = t.parent) {
59
59
  if (e.indexOf(t.name) > -1) return null;
60
60
  if (t.type.isTop) break;
61
61
  }
62
62
  return t(n);
63
63
  };
64
64
  }
65
- var oe = class {
65
+ var D = class {
66
66
  constructor(e, t, n, r) {
67
67
  this.completion = e, this.source = t, this.match = n, this.score = r;
68
68
  }
69
69
  };
70
- function E(e) {
70
+ function O(e) {
71
71
  return e.selection.main.from;
72
72
  }
73
- function se(e, t) {
73
+ function ae(e, t) {
74
74
  let { source: n } = e, r = t && n[0] != "^", i = n[n.length - 1] != "$";
75
75
  return !r && !i ? e : RegExp(`${r ? "^" : ""}(?:${n})${i ? "$" : ""}`, e.flags ?? (e.ignoreCase ? "i" : ""));
76
76
  }
77
- var D = /*@__PURE__*/ ne.define();
78
- function ce(e, t, n, r) {
79
- let { main: i } = e.selection, a = n - i.from, o = r - i.from;
77
+ var k = /*@__PURE__*/ m.define();
78
+ function oe(e, n, r, i) {
79
+ let { main: a } = e.selection, o = r - a.from, s = i - a.from;
80
80
  return {
81
- ...e.changeByRange((s) => {
82
- if (s != i && n != r && e.sliceDoc(s.from + a, s.from + o) != e.sliceDoc(n, r)) return { range: s };
83
- let c = e.toText(t);
81
+ ...e.changeByRange((c) => {
82
+ if (c != a && r != i && e.sliceDoc(c.from + o, c.from + s) != e.sliceDoc(r, i)) return { range: c };
83
+ let l = e.toText(n);
84
84
  return {
85
85
  changes: {
86
- from: s.from + a,
87
- to: r == i.from ? s.to : s.from + o,
88
- insert: c
86
+ from: c.from + o,
87
+ to: i == a.from ? c.to : c.from + s,
88
+ insert: l
89
89
  },
90
- range: x.cursor(s.from + a + c.length)
90
+ range: t.cursor(c.from + o + l.length)
91
91
  };
92
92
  }),
93
93
  scrollIntoView: !0,
94
94
  userEvent: "input.complete"
95
95
  };
96
96
  }
97
- var O = /*@__PURE__*/ new WeakMap();
98
- function le(e) {
97
+ var se = /*@__PURE__*/ new WeakMap();
98
+ function ce(e) {
99
99
  if (!Array.isArray(e)) return e;
100
- let t = O.get(e);
101
- return t || O.set(e, t = T(e)), t;
100
+ let t = se.get(e);
101
+ return t || se.set(e, t = E(e)), t;
102
102
  }
103
- var k = /*@__PURE__*/ s.define(), A = /*@__PURE__*/ s.define(), ue = class {
103
+ var A = /*@__PURE__*/ p.define(), j = /*@__PURE__*/ p.define(), le = class {
104
104
  constructor(e) {
105
105
  this.pattern = e, this.chars = [], this.folded = [], this.any = [], this.precise = [], this.byWord = [], this.score = 0, this.matched = [];
106
106
  for (let t = 0; t < e.length;) {
107
- let n = h(e, t), i = r(n);
107
+ let n = a(e, t), r = h(n);
108
108
  this.chars.push(n);
109
- let a = e.slice(t, t + i), o = a.toUpperCase();
110
- this.folded.push(h(o == a ? a.toLowerCase() : o, 0)), t += i;
109
+ let i = e.slice(t, t + r), o = i.toUpperCase();
110
+ this.folded.push(a(o == i ? i.toLowerCase() : o, 0)), t += r;
111
111
  }
112
112
  this.astral = e.length != this.chars.length;
113
113
  }
@@ -117,43 +117,43 @@ var k = /*@__PURE__*/ s.define(), A = /*@__PURE__*/ s.define(), ue = class {
117
117
  match(e) {
118
118
  if (this.pattern.length == 0) return this.ret(-100, []);
119
119
  if (e.length < this.pattern.length) return null;
120
- let { chars: t, folded: n, any: i, precise: a, byWord: s } = this;
120
+ let { chars: t, folded: n, any: r, precise: i, byWord: o } = this;
121
121
  if (t.length == 1) {
122
- let i = h(e, 0), a = r(i), o = a == e.length ? 0 : -100;
123
- if (i != t[0]) {
124
- if (i == n[0]) o += -200;
122
+ let r = a(e, 0), i = h(r), o = i == e.length ? 0 : -100;
123
+ if (r != t[0]) {
124
+ if (r == n[0]) o += -200;
125
125
  else return null;
126
126
  }
127
- return this.ret(o, [0, a]);
127
+ return this.ret(o, [0, i]);
128
128
  }
129
- let c = e.indexOf(this.pattern);
130
- if (c == 0) return this.ret(e.length == this.pattern.length ? 0 : -100, [0, this.pattern.length]);
131
- let l = t.length, u = 0;
132
- if (c < 0) {
133
- for (let a = 0, o = Math.min(e.length, 200); a < o && u < l;) {
134
- let o = h(e, a);
135
- (o == t[u] || o == n[u]) && (i[u++] = a), a += r(o);
129
+ let s = e.indexOf(this.pattern);
130
+ if (s == 0) return this.ret(e.length == this.pattern.length ? 0 : -100, [0, this.pattern.length]);
131
+ let c = t.length, l = 0;
132
+ if (s < 0) {
133
+ for (let i = 0, o = Math.min(e.length, 200); i < o && l < c;) {
134
+ let o = a(e, i);
135
+ (o == t[l] || o == n[l]) && (r[l++] = i), i += h(o);
136
136
  }
137
- if (u < l) return null;
137
+ if (l < c) return null;
138
138
  }
139
- let d = 0, f = 0, p = !1, m = 0, g = -1, _ = -1, v = /[a-z]/.test(e), y = !0;
140
- for (let i = 0, u = Math.min(e.length, 200), b = 0; i < u && f < l;) {
141
- let u = h(e, i);
142
- c < 0 && (d < l && u == t[d] && (a[d++] = i), m < l && (u == t[m] || u == n[m] ? (m == 0 && (g = i), _ = i + 1, m++) : m = 0));
143
- let x, S = u < 255 ? u >= 48 && u <= 57 || u >= 97 && u <= 122 ? 2 : +(u >= 65 && u <= 90) : (x = o(u)) == x.toLowerCase() ? x == x.toUpperCase() ? 0 : 2 : 1;
144
- (!i || S == 1 && v || b == 0 && S != 0) && (t[f] == u || n[f] == u && (p = !0) ? s[f++] = i : s.length && (y = !1)), b = S, i += r(u);
139
+ let u = 0, d = 0, f = !1, p = 0, m = -1, g = -1, _ = /[a-z]/.test(e), v = !0;
140
+ for (let r = 0, l = Math.min(e.length, 200), y = 0; r < l && d < c;) {
141
+ let l = a(e, r);
142
+ s < 0 && (u < c && l == t[u] && (i[u++] = r), p < c && (l == t[p] || l == n[p] ? (p == 0 && (m = r), g = r + 1, p++) : p = 0));
143
+ let b, x = l < 255 ? l >= 48 && l <= 57 || l >= 97 && l <= 122 ? 2 : +(l >= 65 && l <= 90) : (b = te(l)) == b.toLowerCase() ? b == b.toUpperCase() ? 0 : 2 : 1;
144
+ (!r || x == 1 && _ || y == 0 && x != 0) && (t[d] == l || n[d] == l && (f = !0) ? o[d++] = r : o.length && (v = !1)), y = x, r += h(l);
145
145
  }
146
- return f == l && s[0] == 0 && y ? this.result(-100 + (p ? -200 : 0), s, e) : m == l && g == 0 ? this.ret(-200 - e.length + (_ == e.length ? 0 : -100), [0, _]) : c > -1 ? this.ret(-700 - e.length, [c, c + this.pattern.length]) : m == l ? this.ret(-900 - e.length, [g, _]) : f == l ? this.result(-100 + (p ? -200 : 0) + -700 + (y ? 0 : -1100), s, e) : t.length == 2 ? null : this.result((i[0] ? -700 : 0) + -200 + -1100, i, e);
146
+ return d == c && o[0] == 0 && v ? this.result(-100 + (f ? -200 : 0), o, e) : p == c && m == 0 ? this.ret(-200 - e.length + (g == e.length ? 0 : -100), [0, g]) : s > -1 ? this.ret(-700 - e.length, [s, s + this.pattern.length]) : p == c ? this.ret(-900 - e.length, [m, g]) : d == c ? this.result(-100 + (f ? -200 : 0) + -700 + (v ? 0 : -1100), o, e) : t.length == 2 ? null : this.result((r[0] ? -700 : 0) + -200 + -1100, r, e);
147
147
  }
148
148
  result(e, t, n) {
149
- let i = [], a = 0;
149
+ let r = [], i = 0;
150
150
  for (let e of t) {
151
- let t = e + (this.astral ? r(h(n, e)) : 1);
152
- a && i[a - 1] == e ? i[a - 1] = t : (i[a++] = e, i[a++] = t);
151
+ let t = e + (this.astral ? h(a(n, e)) : 1);
152
+ i && r[i - 1] == e ? r[i - 1] = t : (r[i++] = e, r[i++] = t);
153
153
  }
154
- return this.ret(e - n.length, i);
154
+ return this.ret(e - n.length, r);
155
155
  }
156
- }, de = class {
156
+ }, ue = class {
157
157
  constructor(e) {
158
158
  this.pattern = e, this.matched = [], this.score = 0, this.folded = e.toLowerCase();
159
159
  }
@@ -162,8 +162,8 @@ var k = /*@__PURE__*/ s.define(), A = /*@__PURE__*/ s.define(), ue = class {
162
162
  let t = e.slice(0, this.pattern.length), n = t == this.pattern ? 0 : t.toLowerCase() == this.folded ? -200 : null;
163
163
  return n == null ? null : (this.matched = [0, t.length], this.score = n + (e.length == this.pattern.length ? 0 : -100), this);
164
164
  }
165
- }, j = /*@__PURE__*/ b.define({ combine(e) {
166
- return m(e, {
165
+ }, M = /*@__PURE__*/ c.define({ combine(e) {
166
+ return _(e, {
167
167
  activateOnTyping: !0,
168
168
  activateOnCompletion: () => !1,
169
169
  activateOnTypingDelay: 100,
@@ -177,7 +177,7 @@ var k = /*@__PURE__*/ s.define(), A = /*@__PURE__*/ s.define(), ue = class {
177
177
  aboveCursor: !1,
178
178
  icons: !0,
179
179
  addToOptions: [],
180
- positionInfo: pe,
180
+ positionInfo: de,
181
181
  filterStrict: !1,
182
182
  compareCompletions: (e, t) => (e.sortText || e.label).localeCompare(t.sortText || t.label),
183
183
  interactionDelay: 75,
@@ -186,31 +186,31 @@ var k = /*@__PURE__*/ s.define(), A = /*@__PURE__*/ s.define(), ue = class {
186
186
  defaultKeymap: (e, t) => e && t,
187
187
  closeOnBlur: (e, t) => e && t,
188
188
  icons: (e, t) => e && t,
189
- tooltipClass: (e, t) => (n) => fe(e(n), t(n)),
190
- optionClass: (e, t) => (n) => fe(e(n), t(n)),
189
+ tooltipClass: (e, t) => (n) => N(e(n), t(n)),
190
+ optionClass: (e, t) => (n) => N(e(n), t(n)),
191
191
  addToOptions: (e, t) => e.concat(t),
192
192
  filterStrict: (e, t) => e || t
193
193
  });
194
194
  } });
195
- function fe(e, t) {
195
+ function N(e, t) {
196
196
  return e ? t ? e + " " + t : e : t;
197
197
  }
198
- function pe(e, t, n, r, i, a) {
199
- let o = e.textDirection == d.RTL, s = o, c = !1, l = "top", u, f, p = t.left - i.left, m = i.right - t.right, h = r.right - r.left, g = r.bottom - r.top;
200
- if (s && p < Math.min(h, m) ? s = !1 : !s && m < Math.min(h, p) && (s = !0), h <= (s ? p : m)) u = Math.max(i.top, Math.min(n.top, i.bottom - g)) - t.top, f = Math.min(400, s ? p : m);
198
+ function de(e, t, n, r, i, a) {
199
+ let o = e.textDirection == f.RTL, s = o, c = !1, l = "top", u, d, p = t.left - i.left, m = i.right - t.right, h = r.right - r.left, g = r.bottom - r.top;
200
+ if (s && p < Math.min(h, m) ? s = !1 : !s && m < Math.min(h, p) && (s = !0), h <= (s ? p : m)) u = Math.max(i.top, Math.min(n.top, i.bottom - g)) - t.top, d = Math.min(400, s ? p : m);
201
201
  else {
202
- c = !0, f = Math.min(400, (o ? t.right : i.right - t.left) - 30);
202
+ c = !0, d = Math.min(400, (o ? t.right : i.right - t.left) - 30);
203
203
  let e = i.bottom - t.bottom;
204
204
  e >= g || e > t.top ? u = n.bottom - t.top : (l = "bottom", u = t.bottom - n.top);
205
205
  }
206
206
  let _ = (t.bottom - t.top) / a.offsetHeight, v = (t.right - t.left) / a.offsetWidth;
207
207
  return {
208
- style: `${l}: ${u / _}px; max-width: ${f / v}px`,
208
+ style: `${l}: ${u / _}px; max-width: ${d / v}px`,
209
209
  class: "cm-completionInfo-" + (c ? o ? "left-narrow" : "right-narrow" : s ? "left" : "right")
210
210
  };
211
211
  }
212
- var M = /*@__PURE__*/ s.define();
213
- function me(e) {
212
+ var P = /*@__PURE__*/ p.define();
213
+ function fe(e) {
214
214
  let t = e.addToOptions.slice();
215
215
  return e.icons && t.push({
216
216
  render(e) {
@@ -241,7 +241,7 @@ function me(e) {
241
241
  position: 80
242
242
  }), t.sort((e, t) => e.position - t.position).map((e) => e.render);
243
243
  }
244
- function N(e, t, n) {
244
+ function F(e, t, n) {
245
245
  if (e <= n) return {
246
246
  from: 0,
247
247
  to: e
@@ -259,15 +259,15 @@ function N(e, t, n) {
259
259
  to: e - (r - 1) * n
260
260
  };
261
261
  }
262
- var he = class {
262
+ var pe = class {
263
263
  constructor(e, t, n) {
264
264
  this.view = e, this.stateField = t, this.applyCompletion = n, this.info = null, this.infoDestroy = null, this.placeInfoReq = {
265
265
  read: () => this.measureInfo(),
266
266
  write: (e) => this.placeInfo(e),
267
267
  key: this
268
268
  }, this.space = null, this.currentClass = "";
269
- let r = e.state.field(t), { options: i, selected: a } = r.open, o = e.state.facet(j);
270
- this.optionContent = me(o), this.optionClass = o.optionClass, this.tooltipClass = o.tooltipClass, this.range = N(i.length, a, o.maxRenderedOptions), this.dom = document.createElement("div"), this.dom.className = "cm-tooltip-autocomplete", this.updateTooltipClass(e.state), this.dom.addEventListener("mousedown", (n) => {
269
+ let r = e.state.field(t), { options: i, selected: a } = r.open, o = e.state.facet(M);
270
+ this.optionContent = fe(o), this.optionClass = o.optionClass, this.tooltipClass = o.tooltipClass, this.range = F(i.length, a, o.maxRenderedOptions), this.dom = document.createElement("div"), this.dom.className = "cm-tooltip-autocomplete", this.updateTooltipClass(e.state), this.dom.addEventListener("mousedown", (n) => {
271
271
  let { options: r } = e.state.field(t).open;
272
272
  for (let t = n.target, i; t && t != this.dom; t = t.parentNode) if (t.nodeName == "LI" && (i = /-(\d+)$/.exec(t.id)) && +i[1] < r.length) {
273
273
  this.applyCompletion(e, r[+i[1]]), n.preventDefault();
@@ -275,11 +275,11 @@ var he = class {
275
275
  }
276
276
  if (n.target == this.list) {
277
277
  let t = this.list.classList.contains("cm-completionListIncompleteTop") && n.clientY < this.list.firstChild.getBoundingClientRect().top ? this.range.from - 1 : this.list.classList.contains("cm-completionListIncompleteBottom") && n.clientY > this.list.lastChild.getBoundingClientRect().bottom ? this.range.to : null;
278
- t != null && (e.dispatch({ effects: M.of(t) }), n.preventDefault());
278
+ t != null && (e.dispatch({ effects: P.of(t) }), n.preventDefault());
279
279
  }
280
280
  }), this.dom.addEventListener("focusout", (t) => {
281
281
  let n = e.state.field(this.stateField, !1);
282
- n && n.tooltip && e.state.facet(j).closeOnBlur && t.relatedTarget != e.contentDOM && e.dispatch({ effects: A.of(null) });
282
+ n && n.tooltip && e.state.facet(M).closeOnBlur && t.relatedTarget != e.contentDOM && e.dispatch({ effects: j.of(null) });
283
283
  }), this.showOptions(i, r.id);
284
284
  }
285
285
  mount() {
@@ -294,7 +294,7 @@ var he = class {
294
294
  let t = e.state.field(this.stateField), n = e.startState.field(this.stateField);
295
295
  if (this.updateTooltipClass(e.state), t != n) {
296
296
  let { options: r, selected: i, disabled: a } = t.open;
297
- (!n.open || n.open.options != r) && (this.range = N(r.length, i, e.state.facet(j).maxRenderedOptions), this.showOptions(r, t.id)), this.updateSel(), a != n.open?.disabled && this.dom.classList.toggle("cm-tooltip-autocomplete-disabled", !!a);
297
+ (!n.open || n.open.options != r) && (this.range = F(r.length, i, e.state.facet(M).maxRenderedOptions), this.showOptions(r, t.id)), this.updateSel(), a != n.open?.disabled && this.dom.classList.toggle("cm-tooltip-autocomplete-disabled", !!a);
298
298
  }
299
299
  }
300
300
  updateTooltipClass(e) {
@@ -310,7 +310,7 @@ var he = class {
310
310
  }
311
311
  updateSel() {
312
312
  let e = this.view.state.field(this.stateField), t = e.open;
313
- (t.selected > -1 && t.selected < this.range.from || t.selected >= this.range.to) && (this.range = N(t.options.length, t.selected, this.view.state.facet(j).maxRenderedOptions), this.showOptions(t.options, e.id));
313
+ (t.selected > -1 && t.selected < this.range.from || t.selected >= this.range.to) && (this.range = F(t.options.length, t.selected, this.view.state.facet(M).maxRenderedOptions), this.showOptions(t.options, e.id));
314
314
  let n = this.updateSelectedOption(t.selected);
315
315
  if (n) {
316
316
  this.destroyInfo();
@@ -320,7 +320,7 @@ var he = class {
320
320
  if (!a) return;
321
321
  "then" in a ? a.then((t) => {
322
322
  t && this.view.state.field(this.stateField, !1) == e && this.addInfoPane(t, r);
323
- }).catch((e) => v(this.view.state, e, "completion info")) : (this.addInfoPane(a, r), n.setAttribute("aria-describedby", this.info.id));
323
+ }).catch((e) => y(this.view.state, e, "completion info")) : (this.addInfoPane(a, r), n.setAttribute("aria-describedby", this.info.id));
324
324
  }
325
325
  }
326
326
  addInfoPane(e, t) {
@@ -336,7 +336,7 @@ var he = class {
336
336
  updateSelectedOption(e) {
337
337
  let t = null;
338
338
  for (let n = this.list.firstChild, r = this.range.from; n; n = n.nextSibling, r++) n.nodeName != "LI" || !n.id ? r-- : r == e ? n.hasAttribute("aria-selected") || (n.setAttribute("aria-selected", "true"), t = n) : n.hasAttribute("aria-selected") && (n.removeAttribute("aria-selected"), n.removeAttribute("aria-describedby"));
339
- return t && _e(this.list, t), t;
339
+ return t && he(this.list, t), t;
340
340
  }
341
341
  measureInfo() {
342
342
  let e = this.dom.querySelector("[aria-selected]");
@@ -351,7 +351,7 @@ var he = class {
351
351
  bottom: e.clientHeight
352
352
  };
353
353
  }
354
- return r.top > Math.min(i.bottom, t.bottom) - 10 || r.bottom < Math.max(i.top, t.top) + 10 ? null : this.view.state.facet(j).positionInfo(this.view, t, r, n, i, this.dom);
354
+ return r.top > Math.min(i.bottom, t.bottom) - 10 || r.bottom < Math.max(i.top, t.top) + 10 ? null : this.view.state.facet(M).positionInfo(this.view, t, r, n, i, this.dom);
355
355
  }
356
356
  placeInfo(e) {
357
357
  this.info && (e ? (e.style && (this.info.style.cssText = e.style), this.info.className = "cm-tooltip cm-completionInfo " + (e.class || "")) : this.info.style.cssText = "top: -1e6px");
@@ -392,17 +392,17 @@ var he = class {
392
392
  this.destroyInfo();
393
393
  }
394
394
  };
395
- function ge(e, t) {
396
- return (n) => new he(n, e, t);
395
+ function me(e, t) {
396
+ return (n) => new pe(n, e, t);
397
397
  }
398
- function _e(e, t) {
398
+ function he(e, t) {
399
399
  let n = e.getBoundingClientRect(), r = t.getBoundingClientRect(), i = n.height / e.offsetHeight;
400
400
  r.top < n.top ? e.scrollTop -= (n.top - r.top) / i : r.bottom > n.bottom && (e.scrollTop += (r.bottom - n.bottom) / i);
401
401
  }
402
- function P(e) {
402
+ function ge(e) {
403
403
  return (e.boost || 0) * 100 + (e.apply ? 10 : 0) + (e.info ? 5 : 0) + +!!e.type;
404
404
  }
405
- function ve(e, t) {
405
+ function _e(e, t) {
406
406
  let n = [], r = null, i = null, a = (e) => {
407
407
  n.push(e);
408
408
  let { section: t } = e.completion;
@@ -411,15 +411,15 @@ function ve(e, t) {
411
411
  let e = typeof t == "string" ? t : t.name;
412
412
  r.some((t) => t.name == e) || r.push(typeof t == "string" ? { name: e } : t);
413
413
  }
414
- }, o = t.facet(j);
414
+ }, o = t.facet(M);
415
415
  for (let r of e) if (r.hasResult()) {
416
416
  let e = r.result.getMatch;
417
- if (r.result.filter === !1) for (let t of r.result.options) a(new oe(t, r.source, e ? e(t) : [], 1e9 - n.length));
417
+ if (r.result.filter === !1) for (let t of r.result.options) a(new D(t, r.source, e ? e(t) : [], 1e9 - n.length));
418
418
  else {
419
- let n = t.sliceDoc(r.from, r.to), s, c = o.filterStrict ? new de(n) : new ue(n);
419
+ let n = t.sliceDoc(r.from, r.to), s, c = o.filterStrict ? new ue(n) : new le(n);
420
420
  for (let t of r.result.options) if (s = c.match(t.label)) {
421
421
  let n = t.displayLabel ? e ? e(t, s.matched) : [] : s.matched, o = s.score + (t.boost || 0);
422
- if (a(new oe(t, r.source, n, o)), typeof t.section == "object" && t.section.rank === "dynamic") {
422
+ if (a(new D(t, r.source, n, o)), typeof t.section == "object" && t.section.rank === "dynamic") {
423
423
  let { name: e } = t.section;
424
424
  i ||= Object.create(null), i[e] = Math.max(o, i[e] || -1e9);
425
425
  }
@@ -437,22 +437,22 @@ function ve(e, t) {
437
437
  let s = [], c = null, l = o.compareCompletions;
438
438
  for (let e of n.sort((e, t) => t.score - e.score || l(e.completion, t.completion))) {
439
439
  let t = e.completion;
440
- !c || c.label != t.label || c.detail != t.detail || c.type != null && t.type != null && c.type != t.type || c.apply != t.apply || c.boost != t.boost ? s.push(e) : P(e.completion) > P(c) && (s[s.length - 1] = e), c = e.completion;
440
+ !c || c.label != t.label || c.detail != t.detail || c.type != null && t.type != null && c.type != t.type || c.apply != t.apply || c.boost != t.boost ? s.push(e) : ge(e.completion) > ge(c) && (s[s.length - 1] = e), c = e.completion;
441
441
  }
442
442
  return s;
443
443
  }
444
- var ye = class e {
444
+ var ve = class e {
445
445
  constructor(e, t, n, r, i, a) {
446
446
  this.options = e, this.attrs = t, this.tooltip = n, this.timestamp = r, this.selected = i, this.disabled = a;
447
447
  }
448
448
  setSelected(t, n) {
449
- return t == this.selected || t >= this.options.length ? this : new e(this.options, F(n, t), this.tooltip, this.timestamp, t, this.disabled);
449
+ return t == this.selected || t >= this.options.length ? this : new e(this.options, Ce(n, t), this.tooltip, this.timestamp, t, this.disabled);
450
450
  }
451
451
  static build(t, n, r, i, a, o) {
452
452
  if (i && !o && t.some((e) => e.isPending)) return i.setDisabled();
453
- let s = ve(t, n);
453
+ let s = _e(t, n);
454
454
  if (!s.length) return i && t.some((e) => e.isPending) ? i.setDisabled() : null;
455
- let c = n.facet(j).selectOnOpen ? 0 : -1;
455
+ let c = n.facet(M).selectOnOpen ? 0 : -1;
456
456
  if (i && i.selected != c && i.selected != -1) {
457
457
  let e = i.options[i.selected].completion;
458
458
  for (let t = 0; t < s.length; t++) if (s[t].completion == e) {
@@ -460,9 +460,9 @@ var ye = class e {
460
460
  break;
461
461
  }
462
462
  }
463
- return new e(s, F(r, c), {
463
+ return new e(s, Ce(r, c), {
464
464
  pos: t.reduce((e, t) => t.hasResult() ? Math.min(e, t.from) : e, 1e8),
465
- create: De,
465
+ create: Oe,
466
466
  above: a.aboveCursor
467
467
  }, i ? i.timestamp : Date.now(), c, !1);
468
468
  }
@@ -475,7 +475,7 @@ var ye = class e {
475
475
  setDisabled() {
476
476
  return new e(this.options, this.attrs, this.tooltip, this.timestamp, this.selected, !0);
477
477
  }
478
- }, be = class e {
478
+ }, ye = class e {
479
479
  constructor(e, t, n) {
480
480
  this.active = e, this.id = t, this.open = n;
481
481
  }
@@ -483,21 +483,21 @@ var ye = class e {
483
483
  return new e(we, "cm-ac-" + Math.floor(Math.random() * 2e6).toString(36), null);
484
484
  }
485
485
  update(t) {
486
- let { state: n } = t, r = n.facet(j), i = (r.override || n.languageDataAt("autocomplete", E(n)).map(le)).map((e) => (this.active.find((t) => t.source == e) || new L(e, +!!this.active.some((e) => e.state != 0))).update(t, r));
486
+ let { state: n } = t, r = n.facet(M), i = (r.override || n.languageDataAt("autocomplete", O(n)).map(ce)).map((e) => (this.active.find((t) => t.source == e) || new I(e, +!!this.active.some((e) => e.state != 0))).update(t, r));
487
487
  i.length == this.active.length && i.every((e, t) => e == this.active[t]) && (i = this.active);
488
- let a = this.open, o = t.effects.some((e) => e.is(R));
489
- a && t.docChanged && (a = a.map(t.changes)), t.selection || i.some((e) => e.hasResult() && t.changes.touchesRange(e.from, e.to)) || !xe(i, this.active) || o ? a = ye.build(i, n, this.id, a, r, o) : a && a.disabled && !i.some((e) => e.isPending) && (a = null), !a && i.every((e) => !e.isPending) && i.some((e) => e.hasResult()) && (i = i.map((e) => e.hasResult() ? new L(e.source, 0) : e));
490
- for (let e of t.effects) e.is(M) && (a &&= a.setSelected(e.value, this.id));
488
+ let a = this.open, o = t.effects.some((e) => e.is(L));
489
+ a && t.docChanged && (a = a.map(t.changes)), t.selection || i.some((e) => e.hasResult() && t.changes.touchesRange(e.from, e.to)) || !be(i, this.active) || o ? a = ve.build(i, n, this.id, a, r, o) : a && a.disabled && !i.some((e) => e.isPending) && (a = null), !a && i.every((e) => !e.isPending) && i.some((e) => e.hasResult()) && (i = i.map((e) => e.hasResult() ? new I(e.source, 0) : e));
490
+ for (let e of t.effects) e.is(P) && (a &&= a.setSelected(e.value, this.id));
491
491
  return i == this.active && a == this.open ? this : new e(i, this.id, a);
492
492
  }
493
493
  get tooltip() {
494
494
  return this.open ? this.open.tooltip : null;
495
495
  }
496
496
  get attrs() {
497
- return this.open ? this.open.attrs : this.active.length ? Se : Ce;
497
+ return this.open ? this.open.attrs : this.active.length ? xe : Se;
498
498
  }
499
499
  };
500
- function xe(e, t) {
500
+ function be(e, t) {
501
501
  if (e == t) return !0;
502
502
  for (let n = 0, r = 0;;) {
503
503
  for (; n < e.length && !e[n].hasResult();) n++;
@@ -507,8 +507,8 @@ function xe(e, t) {
507
507
  if (e[n++].result != t[r++].result) return !1;
508
508
  }
509
509
  }
510
- var Se = { "aria-autocomplete": "list" }, Ce = {};
511
- function F(e, t) {
510
+ var xe = { "aria-autocomplete": "list" }, Se = {};
511
+ function Ce(e, t) {
512
512
  let n = {
513
513
  "aria-autocomplete": "list",
514
514
  "aria-haspopup": "listbox",
@@ -517,15 +517,15 @@ function F(e, t) {
517
517
  return t > -1 && (n["aria-activedescendant"] = e + "-" + t), n;
518
518
  }
519
519
  var we = [];
520
- function I(e, t) {
520
+ function Te(e, t) {
521
521
  if (e.isUserEvent("input.complete")) {
522
- let n = e.annotation(D);
522
+ let n = e.annotation(k);
523
523
  if (n && t.activateOnCompletion(n)) return 12;
524
524
  }
525
525
  let n = e.isUserEvent("input.type");
526
526
  return n && t.activateOnTyping ? 5 : n ? 1 : e.isUserEvent("delete.backward") ? 2 : e.selection ? 8 : e.docChanged ? 16 : 0;
527
527
  }
528
- var L = class e {
528
+ var I = class e {
529
529
  constructor(e, t, n = !1) {
530
530
  this.source = e, this.state = t, this.explicit = n;
531
531
  }
@@ -536,11 +536,11 @@ var L = class e {
536
536
  return this.state == 1;
537
537
  }
538
538
  update(t, n) {
539
- let r = I(t, n), i = this;
539
+ let r = Te(t, n), i = this;
540
540
  (r & 8 || r & 16 && this.touches(t)) && (i = new e(i.source, 0)), r & 4 && i.state == 0 && (i = new e(this.source, 1)), i = i.updateFor(t, r);
541
- for (let n of t.effects) if (n.is(k)) i = new e(i.source, 1, n.value);
542
- else if (n.is(A)) i = new e(i.source, 0);
543
- else if (n.is(R)) for (let e of n.value) e.source == i.source && (i = e);
541
+ for (let n of t.effects) if (n.is(A)) i = new e(i.source, 1, n.value);
542
+ else if (n.is(j)) i = new e(i.source, 0);
543
+ else if (n.is(L)) for (let e of n.value) e.source == i.source && (i = e);
544
544
  return i;
545
545
  }
546
546
  updateFor(e, t) {
@@ -550,9 +550,9 @@ var L = class e {
550
550
  return this;
551
551
  }
552
552
  touches(e) {
553
- return e.changes.touchesRange(E(e.state));
553
+ return e.changes.touchesRange(O(e.state));
554
554
  }
555
- }, Te = class e extends L {
555
+ }, Ee = class e extends I {
556
556
  constructor(e, t, n, r, i, a) {
557
557
  super(e, 3, t), this.limit = n, this.result = r, this.from = i, this.to = a;
558
558
  }
@@ -563,116 +563,116 @@ var L = class e {
563
563
  if (!(n & 3)) return this.map(t.changes);
564
564
  let r = this.result;
565
565
  r.map && !t.changes.empty && (r = r.map(r, t.changes));
566
- let i = t.changes.mapPos(this.from), a = t.changes.mapPos(this.to, 1), o = E(t.state);
567
- if (o > a || !r || n & 2 && (E(t.startState) == this.from || o < this.limit)) return new L(this.source, n & 4 ? 1 : 0);
566
+ let i = t.changes.mapPos(this.from), a = t.changes.mapPos(this.to, 1), o = O(t.state);
567
+ if (o > a || !r || n & 2 && (O(t.startState) == this.from || o < this.limit)) return new I(this.source, n & 4 ? 1 : 0);
568
568
  let s = t.changes.mapPos(this.limit);
569
- return Ee(r.validFor, t.state, i, a) ? new e(this.source, this.explicit, s, r, i, a) : r.update && (r = r.update(r, i, a, new C(t.state, o, !1))) ? new e(this.source, this.explicit, s, r, r.from, r.to ?? E(t.state)) : new L(this.source, 1, this.explicit);
569
+ return De(r.validFor, t.state, i, a) ? new e(this.source, this.explicit, s, r, i, a) : r.update && (r = r.update(r, i, a, new w(t.state, o, !1))) ? new e(this.source, this.explicit, s, r, r.from, r.to ?? O(t.state)) : new I(this.source, 1, this.explicit);
570
570
  }
571
571
  map(t) {
572
572
  if (t.empty) return this;
573
573
  let n = this.result.map ? this.result.map(this.result, t) : this.result;
574
- return n ? new e(this.source, this.explicit, t.mapPos(this.limit), n, t.mapPos(this.from), t.mapPos(this.to, 1)) : new L(this.source, 0);
574
+ return n ? new e(this.source, this.explicit, t.mapPos(this.limit), n, t.mapPos(this.from), t.mapPos(this.to, 1)) : new I(this.source, 0);
575
575
  }
576
576
  touches(e) {
577
577
  return e.changes.touchesRange(this.from, this.to);
578
578
  }
579
579
  };
580
- function Ee(e, t, n, r) {
580
+ function De(e, t, n, r) {
581
581
  if (!e) return !1;
582
582
  let i = t.sliceDoc(n, r);
583
- return typeof e == "function" ? e(i, n, r, t) : se(e, !0).test(i);
583
+ return typeof e == "function" ? e(i, n, r, t) : ae(e, !0).test(i);
584
584
  }
585
- var R = /*@__PURE__*/ s.define({ map(e, t) {
585
+ var L = /*@__PURE__*/ p.define({ map(e, t) {
586
586
  return e.map((e) => e.map(t));
587
- } }), z = /*@__PURE__*/ f.define({
587
+ } }), R = /*@__PURE__*/ C.define({
588
588
  create() {
589
- return be.start();
589
+ return ye.start();
590
590
  },
591
591
  update(e, t) {
592
592
  return e.update(t);
593
593
  },
594
- provide: (t) => [p.from(t, (e) => e.tooltip), e.contentAttributes.from(t, (e) => e.attrs)]
594
+ provide: (t) => [r.from(t, (e) => e.tooltip), e.contentAttributes.from(t, (e) => e.attrs)]
595
595
  });
596
- function B(e, t) {
597
- let n = t.completion.apply || t.completion.label, r = e.state.field(z).active.find((e) => e.source == t.source);
598
- return r instanceof Te && (typeof n == "string" ? e.dispatch({
599
- ...ce(e.state, n, r.from, r.to),
600
- annotations: D.of(t.completion)
596
+ function z(e, t) {
597
+ let n = t.completion.apply || t.completion.label, r = e.state.field(R).active.find((e) => e.source == t.source);
598
+ return r instanceof Ee && (typeof n == "string" ? e.dispatch({
599
+ ...oe(e.state, n, r.from, r.to),
600
+ annotations: k.of(t.completion)
601
601
  }) : n(e, t.completion, r.from, r.to), !0);
602
602
  }
603
- var De = /*@__PURE__*/ ge(z, B);
604
- function V(e, t = "option") {
603
+ var Oe = /*@__PURE__*/ me(R, z);
604
+ function B(e, t = "option") {
605
605
  return (n) => {
606
- let r = n.state.field(z, !1);
607
- if (!r || !r.open || r.open.disabled || Date.now() - r.open.timestamp < n.state.facet(j).interactionDelay) return !1;
606
+ let r = n.state.field(R, !1);
607
+ if (!r || !r.open || r.open.disabled || Date.now() - r.open.timestamp < n.state.facet(M).interactionDelay) return !1;
608
608
  let i = 1, a;
609
- t == "page" && (a = _(n, r.open.tooltip)) && (i = Math.max(2, Math.floor(a.dom.offsetHeight / a.dom.querySelector("li").offsetHeight) - 1));
609
+ t == "page" && (a = S(n, r.open.tooltip)) && (i = Math.max(2, Math.floor(a.dom.offsetHeight / a.dom.querySelector("li").offsetHeight) - 1));
610
610
  let { length: o } = r.open.options, s = r.open.selected > -1 ? r.open.selected + i * (e ? 1 : -1) : e ? 0 : o - 1;
611
- return s < 0 ? s = t == "page" ? 0 : o - 1 : s >= o && (s = t == "page" ? o - 1 : 0), n.dispatch({ effects: M.of(s) }), !0;
611
+ return s < 0 ? s = t == "page" ? 0 : o - 1 : s >= o && (s = t == "page" ? o - 1 : 0), n.dispatch({ effects: P.of(s) }), !0;
612
612
  };
613
613
  }
614
- var H = (e) => {
615
- let t = e.state.field(z, !1);
616
- return e.state.readOnly || !t || !t.open || t.open.selected < 0 || t.open.disabled || Date.now() - t.open.timestamp < e.state.facet(j).interactionDelay ? !1 : B(e, t.open.options[t.open.selected]);
617
- }, U = (e) => e.state.field(z, !1) ? (e.dispatch({ effects: k.of(!0) }), !0) : !1, W = (e) => {
618
- let t = e.state.field(z, !1);
619
- return !t || !t.active.some((e) => e.state != 0) ? !1 : (e.dispatch({ effects: A.of(null) }), !0);
620
- }, Oe = class {
614
+ var V = (e) => {
615
+ let t = e.state.field(R, !1);
616
+ return e.state.readOnly || !t || !t.open || t.open.selected < 0 || t.open.disabled || Date.now() - t.open.timestamp < e.state.facet(M).interactionDelay ? !1 : z(e, t.open.options[t.open.selected]);
617
+ }, H = (e) => e.state.field(R, !1) ? (e.dispatch({ effects: A.of(!0) }), !0) : !1, U = (e) => {
618
+ let t = e.state.field(R, !1);
619
+ return !t || !t.active.some((e) => e.state != 0) ? !1 : (e.dispatch({ effects: j.of(null) }), !0);
620
+ }, ke = class {
621
621
  constructor(e, t) {
622
622
  this.active = e, this.context = t, this.time = Date.now(), this.updates = [], this.done = void 0;
623
623
  }
624
- }, ke = 50, Ae = 1e3, je = /*@__PURE__*/ te.fromClass(class {
624
+ }, Ae = 50, je = 1e3, Me = /*@__PURE__*/ ne.fromClass(class {
625
625
  constructor(e) {
626
626
  this.view = e, this.debounceUpdate = -1, this.running = [], this.debounceAccept = -1, this.pendingStart = !1, this.composing = 0;
627
- for (let t of e.state.field(z).active) t.isPending && this.startQuery(t);
627
+ for (let t of e.state.field(R).active) t.isPending && this.startQuery(t);
628
628
  }
629
629
  update(e) {
630
- let t = e.state.field(z), n = e.state.facet(j);
631
- if (!e.selectionSet && !e.docChanged && e.startState.field(z) == t) return;
630
+ let t = e.state.field(R), n = e.state.facet(M);
631
+ if (!e.selectionSet && !e.docChanged && e.startState.field(R) == t) return;
632
632
  let r = e.transactions.some((e) => {
633
- let t = I(e, n);
633
+ let t = Te(e, n);
634
634
  return t & 8 || (e.selection || e.docChanged) && !(t & 3);
635
635
  });
636
636
  for (let t = 0; t < this.running.length; t++) {
637
637
  let n = this.running[t];
638
- if (r || n.context.abortOnDocChange && e.docChanged || n.updates.length + e.transactions.length > ke && Date.now() - n.time > Ae) {
638
+ if (r || n.context.abortOnDocChange && e.docChanged || n.updates.length + e.transactions.length > Ae && Date.now() - n.time > je) {
639
639
  for (let e of n.context.abortListeners) try {
640
640
  e();
641
641
  } catch (e) {
642
- v(this.view.state, e);
642
+ y(this.view.state, e);
643
643
  }
644
644
  n.context.abortListeners = null, this.running.splice(t--, 1);
645
645
  } else n.updates.push(...e.transactions);
646
646
  }
647
- this.debounceUpdate > -1 && clearTimeout(this.debounceUpdate), e.transactions.some((e) => e.effects.some((e) => e.is(k))) && (this.pendingStart = !0);
647
+ this.debounceUpdate > -1 && clearTimeout(this.debounceUpdate), e.transactions.some((e) => e.effects.some((e) => e.is(A))) && (this.pendingStart = !0);
648
648
  let i = this.pendingStart ? 50 : n.activateOnTypingDelay;
649
649
  if (this.debounceUpdate = t.active.some((e) => e.isPending && !this.running.some((t) => t.active.source == e.source)) ? setTimeout(() => this.startUpdate(), i) : -1, this.composing != 0) for (let t of e.transactions) t.isUserEvent("input.type") ? this.composing = 2 : this.composing == 2 && t.selection && (this.composing = 3);
650
650
  }
651
651
  startUpdate() {
652
652
  this.debounceUpdate = -1, this.pendingStart = !1;
653
- let { state: e } = this.view, t = e.field(z);
653
+ let { state: e } = this.view, t = e.field(R);
654
654
  for (let e of t.active) e.isPending && !this.running.some((t) => t.active.source == e.source) && this.startQuery(e);
655
- this.running.length && t.open && t.open.disabled && (this.debounceAccept = setTimeout(() => this.accept(), this.view.state.facet(j).updateSyncTime));
655
+ this.running.length && t.open && t.open.disabled && (this.debounceAccept = setTimeout(() => this.accept(), this.view.state.facet(M).updateSyncTime));
656
656
  }
657
657
  startQuery(e) {
658
- let { state: t } = this.view, n = new C(t, E(t), e.explicit, this.view), r = new Oe(e, n);
658
+ let { state: t } = this.view, n = new w(t, O(t), e.explicit, this.view), r = new ke(e, n);
659
659
  this.running.push(r), Promise.resolve(e.source(n)).then((e) => {
660
660
  r.context.aborted || (r.done = e || null, this.scheduleAccept());
661
661
  }, (e) => {
662
- this.view.dispatch({ effects: A.of(null) }), v(this.view.state, e);
662
+ this.view.dispatch({ effects: j.of(null) }), y(this.view.state, e);
663
663
  });
664
664
  }
665
665
  scheduleAccept() {
666
- this.running.every((e) => e.done !== void 0) ? this.accept() : this.debounceAccept < 0 && (this.debounceAccept = setTimeout(() => this.accept(), this.view.state.facet(j).updateSyncTime));
666
+ this.running.every((e) => e.done !== void 0) ? this.accept() : this.debounceAccept < 0 && (this.debounceAccept = setTimeout(() => this.accept(), this.view.state.facet(M).updateSyncTime));
667
667
  }
668
668
  accept() {
669
669
  this.debounceAccept > -1 && clearTimeout(this.debounceAccept), this.debounceAccept = -1;
670
- let e = [], t = this.view.state.facet(j), n = this.view.state.field(z);
670
+ let e = [], t = this.view.state.facet(M), n = this.view.state.field(R);
671
671
  for (let r = 0; r < this.running.length; r++) {
672
672
  let i = this.running[r];
673
673
  if (i.done === void 0) continue;
674
674
  if (this.running.splice(r--, 1), i.done) {
675
- let n = E(i.updates.length ? i.updates[0].startState : this.view.state), r = Math.min(n, i.done.from + +!i.active.explicit), a = new Te(i.active.source, i.active.explicit, r, i.done, i.done.from, i.done.to ?? n);
675
+ let n = O(i.updates.length ? i.updates[0].startState : this.view.state), r = Math.min(n, i.done.from + +!i.active.explicit), a = new Ee(i.active.source, i.active.explicit, r, i.done, i.done.from, i.done.to ?? n);
676
676
  for (let e of i.updates) a = a.update(e, t);
677
677
  if (a.hasResult()) {
678
678
  e.push(a);
@@ -682,34 +682,34 @@ var H = (e) => {
682
682
  let a = n.active.find((e) => e.source == i.active.source);
683
683
  if (a && a.isPending) {
684
684
  if (i.done == null) {
685
- let n = new L(i.active.source, 0);
685
+ let n = new I(i.active.source, 0);
686
686
  for (let e of i.updates) n = n.update(e, t);
687
687
  n.isPending || e.push(n);
688
688
  } else this.startQuery(a);
689
689
  }
690
690
  }
691
- (e.length || n.open && n.open.disabled) && this.view.dispatch({ effects: R.of(e) });
691
+ (e.length || n.open && n.open.disabled) && this.view.dispatch({ effects: L.of(e) });
692
692
  }
693
693
  }, { eventHandlers: {
694
694
  blur(e) {
695
- let t = this.view.state.field(z, !1);
696
- if (t && t.tooltip && this.view.state.facet(j).closeOnBlur) {
697
- let n = t.open && _(this.view, t.open.tooltip);
698
- (!n || !n.dom.contains(e.relatedTarget)) && setTimeout(() => this.view.dispatch({ effects: A.of(null) }), 10);
695
+ let t = this.view.state.field(R, !1);
696
+ if (t && t.tooltip && this.view.state.facet(M).closeOnBlur) {
697
+ let n = t.open && S(this.view, t.open.tooltip);
698
+ (!n || !n.dom.contains(e.relatedTarget)) && setTimeout(() => this.view.dispatch({ effects: j.of(null) }), 10);
699
699
  }
700
700
  },
701
701
  compositionstart() {
702
702
  this.composing = 1;
703
703
  },
704
704
  compositionend() {
705
- this.composing == 3 && setTimeout(() => this.view.dispatch({ effects: k.of(!1) }), 20), this.composing = 0;
705
+ this.composing == 3 && setTimeout(() => this.view.dispatch({ effects: A.of(!1) }), 20), this.composing = 0;
706
706
  }
707
- } }), Me = typeof navigator == "object" && /*@__PURE__*/ /Win/.test(navigator.platform), Ne = /*@__PURE__*/ l.highest(/*@__PURE__*/ e.domEventHandlers({ keydown(e, t) {
708
- let n = t.state.field(z, !1);
709
- if (!n || !n.open || n.open.disabled || n.open.selected < 0 || e.key.length > 1 || e.ctrlKey && !(Me && e.altKey) || e.metaKey) return !1;
707
+ } }), Ne = typeof navigator == "object" && /*@__PURE__*/ /Win/.test(navigator.platform), Pe = /*@__PURE__*/ d.highest(/*@__PURE__*/ e.domEventHandlers({ keydown(e, t) {
708
+ let n = t.state.field(R, !1);
709
+ if (!n || !n.open || n.open.disabled || n.open.selected < 0 || e.key.length > 1 || e.ctrlKey && !(Ne && e.altKey) || e.metaKey) return !1;
710
710
  let r = n.open.options[n.open.selected], i = n.active.find((e) => e.source == r.source), a = r.completion.commitCharacters || i.result.commitCharacters;
711
- return a && a.indexOf(e.key) > -1 && B(t, r), !1;
712
- } })), G = /*@__PURE__*/ e.baseTheme({
711
+ return a && a.indexOf(e.key) > -1 && z(t, r), !1;
712
+ } })), W = /*@__PURE__*/ e.baseTheme({
713
713
  ".cm-tooltip.cm-tooltip-autocomplete": { "& > ul": {
714
714
  fontFamily: "monospace",
715
715
  whiteSpace: "nowrap",
@@ -806,19 +806,19 @@ var H = (e) => {
806
806
  fontSize: "50%",
807
807
  verticalAlign: "middle"
808
808
  } }
809
- }), Pe = class {
809
+ }), Fe = class {
810
810
  constructor(e, t, n, r) {
811
811
  this.field = e, this.line = t, this.from = n, this.to = r;
812
812
  }
813
- }, Fe = class e {
813
+ }, Ie = class e {
814
814
  constructor(e, t, n) {
815
815
  this.field = e, this.from = t, this.to = n;
816
816
  }
817
817
  map(t) {
818
- let n = t.mapPos(this.from, -1, c.TrackDel), r = t.mapPos(this.to, 1, c.TrackDel);
818
+ let n = t.mapPos(this.from, -1, l.TrackDel), r = t.mapPos(this.to, 1, l.TrackDel);
819
819
  return n == null || r == null ? null : new e(this.field, n, r);
820
820
  }
821
- }, Ie = class e {
821
+ }, Le = class e {
822
822
  constructor(e, t) {
823
823
  this.lines = e, this.fieldPositions = t;
824
824
  }
@@ -827,14 +827,14 @@ var H = (e) => {
827
827
  for (let i of this.lines) {
828
828
  if (n.length) {
829
829
  let n = a, o = /^\t*/.exec(i)[0].length;
830
- for (let t = 0; t < o; t++) n += e.facet(y);
830
+ for (let t = 0; t < o; t++) n += e.facet(x);
831
831
  r.push(t + n.length - o), i = n + i.slice(o);
832
832
  }
833
833
  n.push(i), t += i.length + 1;
834
834
  }
835
835
  return {
836
836
  text: n,
837
- ranges: this.fieldPositions.map((e) => new Fe(e.field, r[e.line] + e.from, r[e.line] + e.to))
837
+ ranges: this.fieldPositions.map((e) => new Ie(e.field, r[e.line] + e.from, r[e.line] + e.to))
838
838
  };
839
839
  }
840
840
  static parse(t) {
@@ -858,7 +858,7 @@ var H = (e) => {
858
858
  let t = a[2] ? 3 + (a[1] || "").length : 2;
859
859
  e.from -= t, e.to -= t;
860
860
  }
861
- i.push(new Pe(s, r.length, a.index, a.index + c.length)), e = e.slice(0, a.index) + o + e.slice(a.index + a[0].length);
861
+ i.push(new Fe(s, r.length, a.index, a.index + c.length)), e = e.slice(0, a.index) + o + e.slice(a.index + a[0].length);
862
862
  }
863
863
  e = e.replace(/\\([{}])/g, (e, t, n) => {
864
864
  for (let e of i) e.line == r.length && e.from > n && (e.from--, e.to--);
@@ -867,7 +867,7 @@ var H = (e) => {
867
867
  }
868
868
  return new e(r, i);
869
869
  }
870
- }, Le = /*@__PURE__*/ g.widget({ widget: /*@__PURE__*/ new class extends ee {
870
+ }, Re = /*@__PURE__*/ v.widget({ widget: /*@__PURE__*/ new class extends ee {
871
871
  toDOM() {
872
872
  let e = document.createElement("span");
873
873
  return e.className = "cm-snippetFieldPosition", e;
@@ -875,9 +875,9 @@ var H = (e) => {
875
875
  ignoreEvent() {
876
876
  return !1;
877
877
  }
878
- }() }), Re = /*@__PURE__*/ g.mark({ class: "cm-snippetField" }), K = class e {
878
+ }() }), ze = /*@__PURE__*/ v.mark({ class: "cm-snippetField" }), G = class e {
879
879
  constructor(e, t) {
880
- this.ranges = e, this.active = t, this.deco = g.set(e.map((e) => (e.from == e.to ? Le : Re).range(e.from, e.to)), !0);
880
+ this.ranges = e, this.active = t, this.deco = v.set(e.map((e) => (e.from == e.to ? Re : ze).range(e.from, e.to)), !0);
881
881
  }
882
882
  map(t) {
883
883
  let n = [];
@@ -891,89 +891,89 @@ var H = (e) => {
891
891
  selectionInsideField(e) {
892
892
  return e.ranges.every((e) => this.ranges.some((t) => t.field == this.active && t.from <= e.from && t.to >= e.to));
893
893
  }
894
- }, q = /*@__PURE__*/ s.define({ map(e, t) {
894
+ }, K = /*@__PURE__*/ p.define({ map(e, t) {
895
895
  return e && e.map(t);
896
- } }), ze = /*@__PURE__*/ s.define(), J = /*@__PURE__*/ f.define({
896
+ } }), Be = /*@__PURE__*/ p.define(), q = /*@__PURE__*/ C.define({
897
897
  create() {
898
898
  return null;
899
899
  },
900
900
  update(e, t) {
901
901
  for (let n of t.effects) {
902
- if (n.is(q)) return n.value;
903
- if (n.is(ze) && e) return new K(e.ranges, n.value);
902
+ if (n.is(K)) return n.value;
903
+ if (n.is(Be) && e) return new G(e.ranges, n.value);
904
904
  }
905
905
  return e && t.docChanged && (e = e.map(t.changes)), e && t.selection && !e.selectionInsideField(t.selection) && (e = null), e;
906
906
  },
907
- provide: (t) => e.decorations.from(t, (e) => e ? e.deco : g.none)
907
+ provide: (t) => e.decorations.from(t, (e) => e ? e.deco : v.none)
908
908
  });
909
- function Y(e, t) {
910
- return x.create(e.filter((e) => e.field == t).map((e) => x.range(e.from, e.to)));
909
+ function J(e, n) {
910
+ return t.create(e.filter((e) => e.field == n).map((e) => t.range(e.from, e.to)));
911
911
  }
912
- function Be(e) {
913
- let n = Ie.parse(e);
912
+ function Ve(e) {
913
+ let t = Le.parse(e);
914
914
  return (e, r, i, a) => {
915
- let { text: o, ranges: c } = n.instantiate(e.state, i), { main: l } = e.state.selection, u = {
915
+ let { text: o, ranges: s } = t.instantiate(e.state, i), { main: c } = e.state.selection, l = {
916
916
  changes: {
917
917
  from: i,
918
- to: a == l.from ? l.to : a,
919
- insert: re.of(o)
918
+ to: a == c.from ? c.to : a,
919
+ insert: n.of(o)
920
920
  },
921
921
  scrollIntoView: !0,
922
- annotations: r ? [D.of(r), t.userEvent.of("input.complete")] : void 0
922
+ annotations: r ? [k.of(r), g.userEvent.of("input.complete")] : void 0
923
923
  };
924
- if (c.length && (u.selection = Y(c, 0)), c.some((e) => e.field > 0)) {
925
- let t = new K(c, 0), n = u.effects = [q.of(t)];
926
- e.state.field(J, !1) === void 0 && n.push(s.appendConfig.of([
927
- J,
928
- We,
929
- Ke,
930
- G
924
+ if (s.length && (l.selection = J(s, 0)), s.some((e) => e.field > 0)) {
925
+ let t = new G(s, 0), n = l.effects = [K.of(t)];
926
+ e.state.field(q, !1) === void 0 && n.push(p.appendConfig.of([
927
+ q,
928
+ Ge,
929
+ qe,
930
+ W
931
931
  ]));
932
932
  }
933
- e.dispatch(e.state.update(u));
933
+ e.dispatch(e.state.update(l));
934
934
  };
935
935
  }
936
- function Ve(e) {
936
+ function He(e) {
937
937
  return ({ state: t, dispatch: n }) => {
938
- let r = t.field(J, !1);
938
+ let r = t.field(q, !1);
939
939
  if (!r || e < 0 && r.active == 0) return !1;
940
940
  let i = r.active + e, a = e > 0 && !r.ranges.some((t) => t.field == i + e);
941
941
  return n(t.update({
942
- selection: Y(r.ranges, i),
943
- effects: q.of(a ? null : new K(r.ranges, i)),
942
+ selection: J(r.ranges, i),
943
+ effects: K.of(a ? null : new G(r.ranges, i)),
944
944
  scrollIntoView: !0
945
945
  })), !0;
946
946
  };
947
947
  }
948
- var He = [{
948
+ var Ue = [{
949
949
  key: "Tab",
950
- run: /* @__PURE__ */ Ve(1),
951
- shift: /* @__PURE__ */ Ve(-1)
950
+ run: /* @__PURE__ */ He(1),
951
+ shift: /* @__PURE__ */ He(-1)
952
952
  }, {
953
953
  key: "Escape",
954
- run: ({ state: e, dispatch: t }) => e.field(J, !1) ? (t(e.update({ effects: q.of(null) })), !0) : !1
955
- }], Ue = /*@__PURE__*/ b.define({ combine(e) {
956
- return e.length ? e[0] : He;
957
- } }), We = /*@__PURE__*/ l.highest(/*@__PURE__*/ S.compute([Ue], (e) => e.facet(Ue)));
958
- function Ge(e, t) {
954
+ run: ({ state: e, dispatch: t }) => e.field(q, !1) ? (t(e.update({ effects: K.of(null) })), !0) : !1
955
+ }], We = /*@__PURE__*/ c.define({ combine(e) {
956
+ return e.length ? e[0] : Ue;
957
+ } }), Ge = /*@__PURE__*/ d.highest(/*@__PURE__*/ b.compute([We], (e) => e.facet(We)));
958
+ function Ke(e, t) {
959
959
  return {
960
960
  ...t,
961
- apply: Be(e)
961
+ apply: Ve(e)
962
962
  };
963
963
  }
964
- var Ke = /*@__PURE__*/ e.domEventHandlers({ mousedown(e, t) {
965
- let n = t.state.field(J, !1), r;
964
+ var qe = /*@__PURE__*/ e.domEventHandlers({ mousedown(e, t) {
965
+ let n = t.state.field(q, !1), r;
966
966
  if (!n || (r = t.posAtCoords({
967
967
  x: e.clientX,
968
968
  y: e.clientY
969
969
  })) == null) return !1;
970
970
  let i = n.ranges.find((e) => e.from <= r && e.to >= r);
971
971
  return !i || i.field == n.active ? !1 : (t.dispatch({
972
- selection: Y(n.ranges, i.field),
973
- effects: q.of(n.ranges.some((e) => e.field > i.field) ? new K(n.ranges, i.field) : null),
972
+ selection: J(n.ranges, i.field),
973
+ effects: K.of(n.ranges.some((e) => e.field > i.field) ? new G(n.ranges, i.field) : null),
974
974
  scrollIntoView: !0
975
975
  }), !0);
976
- } }), X = {
976
+ } }), Y = {
977
977
  brackets: [
978
978
  "(",
979
979
  "[",
@@ -983,177 +983,177 @@ var Ke = /*@__PURE__*/ e.domEventHandlers({ mousedown(e, t) {
983
983
  ],
984
984
  before: ")]}:;>",
985
985
  stringPrefixes: []
986
- }, Z = /*@__PURE__*/ s.define({ map(e, t) {
987
- return t.mapPos(e, -1, c.TrackAfter) ?? void 0;
988
- } }), Q = /*@__PURE__*/ new class extends a {}();
989
- Q.startSide = 1, Q.endSide = -1;
990
- var qe = /*@__PURE__*/ f.define({
986
+ }, X = /*@__PURE__*/ p.define({ map(e, t) {
987
+ return t.mapPos(e, -1, l.TrackAfter) ?? void 0;
988
+ } }), Z = /*@__PURE__*/ new class extends s {}();
989
+ Z.startSide = 1, Z.endSide = -1;
990
+ var Je = /*@__PURE__*/ C.define({
991
991
  create() {
992
- return u.empty;
992
+ return i.empty;
993
993
  },
994
994
  update(e, t) {
995
995
  if (e = e.map(t.changes), t.selection) {
996
996
  let n = t.state.doc.lineAt(t.selection.main.head);
997
997
  e = e.update({ filter: (e) => e >= n.from && e <= n.to });
998
998
  }
999
- for (let n of t.effects) n.is(Z) && (e = e.update({ add: [Q.range(n.value, n.value + 1)] }));
999
+ for (let n of t.effects) n.is(X) && (e = e.update({ add: [Z.range(n.value, n.value + 1)] }));
1000
1000
  return e;
1001
1001
  }
1002
1002
  });
1003
- function Je() {
1004
- return [$e, qe];
1003
+ function Ye() {
1004
+ return [et, Je];
1005
1005
  }
1006
- var Ye = "()[]{}<>«»»«[]{}";
1007
- function Xe(e) {
1008
- for (let t = 0; t < 16; t += 2) if (Ye.charCodeAt(t) == e) return Ye.charAt(t + 1);
1009
- return o(e < 128 ? e : e + 1);
1006
+ var Xe = "()[]{}<>«»»«[]{}";
1007
+ function Ze(e) {
1008
+ for (let t = 0; t < 16; t += 2) if (Xe.charCodeAt(t) == e) return Xe.charAt(t + 1);
1009
+ return te(e < 128 ? e : e + 1);
1010
1010
  }
1011
- function Ze(e, t) {
1012
- return e.languageDataAt("closeBrackets", t)[0] || X;
1011
+ function Qe(e, t) {
1012
+ return e.languageDataAt("closeBrackets", t)[0] || Y;
1013
1013
  }
1014
- var Qe = typeof navigator == "object" && /*@__PURE__*/ /Android\b/.test(navigator.userAgent), $e = /*@__PURE__*/ e.inputHandler.of((e, t, n, i) => {
1015
- if ((Qe ? e.composing : e.compositionStarted) || e.state.readOnly) return !1;
1016
- let a = e.state.selection.main;
1017
- if (i.length > 2 || i.length == 2 && r(h(i, 0)) == 1 || t != a.from || n != a.to) return !1;
1018
- let o = tt(e.state, i);
1014
+ var $e = typeof navigator == "object" && /*@__PURE__*/ /Android\b/.test(navigator.userAgent), et = /*@__PURE__*/ e.inputHandler.of((e, t, n, r) => {
1015
+ if (($e ? e.composing : e.compositionStarted) || e.state.readOnly) return !1;
1016
+ let i = e.state.selection.main;
1017
+ if (r.length > 2 || r.length == 2 && h(a(r, 0)) == 1 || t != i.from || n != i.to) return !1;
1018
+ let o = nt(e.state, r);
1019
1019
  return o ? (e.dispatch(o), !0) : !1;
1020
- }), et = [{
1020
+ }), tt = [{
1021
1021
  key: "Backspace",
1022
- run: ({ state: e, dispatch: t }) => {
1022
+ run: ({ state: e, dispatch: n }) => {
1023
1023
  if (e.readOnly) return !1;
1024
- let n = Ze(e, e.selection.main.head).brackets || X.brackets, r = null, i = e.changeByRange((t) => {
1025
- if (t.empty) {
1026
- let r = rt(e.doc, t.head);
1027
- for (let i of n) if (i == r && $(e.doc, t.head) == Xe(h(i, 0))) return {
1024
+ let r = Qe(e, e.selection.main.head).brackets || Y.brackets, i = null, o = e.changeByRange((n) => {
1025
+ if (n.empty) {
1026
+ let i = it(e.doc, n.head);
1027
+ for (let o of r) if (o == i && Q(e.doc, n.head) == Ze(a(o, 0))) return {
1028
1028
  changes: {
1029
- from: t.head - i.length,
1030
- to: t.head + i.length
1029
+ from: n.head - o.length,
1030
+ to: n.head + o.length
1031
1031
  },
1032
- range: x.cursor(t.head - i.length)
1032
+ range: t.cursor(n.head - o.length)
1033
1033
  };
1034
1034
  }
1035
- return { range: r = t };
1035
+ return { range: i = n };
1036
1036
  });
1037
- return r || t(e.update(i, {
1037
+ return i || n(e.update(o, {
1038
1038
  scrollIntoView: !0,
1039
1039
  userEvent: "delete.backward"
1040
- })), !r;
1040
+ })), !i;
1041
1041
  }
1042
1042
  }];
1043
- function tt(e, t) {
1044
- let n = Ze(e, e.selection.main.head), r = n.brackets || X.brackets;
1043
+ function nt(e, t) {
1044
+ let n = Qe(e, e.selection.main.head), r = n.brackets || Y.brackets;
1045
1045
  for (let i of r) {
1046
- let a = Xe(h(i, 0));
1047
- if (t == i) return a == i ? ot(e, i, r.indexOf(i + i + i) > -1, n) : it(e, i, a, n.before || X.before);
1048
- if (t == a && nt(e, e.selection.main.from)) return at(e, i, a);
1046
+ let o = Ze(a(i, 0));
1047
+ if (t == i) return o == i ? st(e, i, r.indexOf(i + i + i) > -1, n) : at(e, i, o, n.before || Y.before);
1048
+ if (t == o && rt(e, e.selection.main.from)) return ot(e, i, o);
1049
1049
  }
1050
1050
  return null;
1051
1051
  }
1052
- function nt(e, t) {
1052
+ function rt(e, t) {
1053
1053
  let n = !1;
1054
- return e.field(qe).between(0, e.doc.length, (e) => {
1054
+ return e.field(Je).between(0, e.doc.length, (e) => {
1055
1055
  e == t && (n = !0);
1056
1056
  }), n;
1057
1057
  }
1058
- function $(e, t) {
1058
+ function Q(e, t) {
1059
1059
  let n = e.sliceString(t, t + 2);
1060
- return n.slice(0, r(h(n, 0)));
1060
+ return n.slice(0, h(a(n, 0)));
1061
1061
  }
1062
- function rt(e, t) {
1062
+ function it(e, t) {
1063
1063
  let n = e.sliceString(t - 2, t);
1064
- return r(h(n, 0)) == n.length ? n : n.slice(1);
1064
+ return h(a(n, 0)) == n.length ? n : n.slice(1);
1065
1065
  }
1066
- function it(e, t, n, r) {
1067
- let i = null, a = e.changeByRange((a) => {
1068
- if (!a.empty) return {
1066
+ function at(e, n, r, i) {
1067
+ let a = null, o = e.changeByRange((o) => {
1068
+ if (!o.empty) return {
1069
1069
  changes: [{
1070
- insert: t,
1071
- from: a.from
1072
- }, {
1073
1070
  insert: n,
1074
- from: a.to
1071
+ from: o.from
1072
+ }, {
1073
+ insert: r,
1074
+ from: o.to
1075
1075
  }],
1076
- effects: Z.of(a.to + t.length),
1077
- range: x.range(a.anchor + t.length, a.head + t.length)
1076
+ effects: X.of(o.to + n.length),
1077
+ range: t.range(o.anchor + n.length, o.head + n.length)
1078
1078
  };
1079
- let o = $(e.doc, a.head);
1080
- return !o || /\s/.test(o) || r.indexOf(o) > -1 ? {
1079
+ let s = Q(e.doc, o.head);
1080
+ return !s || /\s/.test(s) || i.indexOf(s) > -1 ? {
1081
1081
  changes: {
1082
- insert: t + n,
1083
- from: a.head
1082
+ insert: n + r,
1083
+ from: o.head
1084
1084
  },
1085
- effects: Z.of(a.head + t.length),
1086
- range: x.cursor(a.head + t.length)
1087
- } : { range: i = a };
1085
+ effects: X.of(o.head + n.length),
1086
+ range: t.cursor(o.head + n.length)
1087
+ } : { range: a = o };
1088
1088
  });
1089
- return i ? null : e.update(a, {
1089
+ return a ? null : e.update(o, {
1090
1090
  scrollIntoView: !0,
1091
1091
  userEvent: "input.type"
1092
1092
  });
1093
1093
  }
1094
- function at(e, t, n) {
1095
- let r = null, i = e.changeByRange((t) => t.empty && $(e.doc, t.head) == n ? {
1094
+ function ot(e, n, r) {
1095
+ let i = null, a = e.changeByRange((n) => n.empty && Q(e.doc, n.head) == r ? {
1096
1096
  changes: {
1097
- from: t.head,
1098
- to: t.head + n.length,
1099
- insert: n
1097
+ from: n.head,
1098
+ to: n.head + r.length,
1099
+ insert: r
1100
1100
  },
1101
- range: x.cursor(t.head + n.length)
1102
- } : r = { range: t });
1103
- return r ? null : e.update(i, {
1101
+ range: t.cursor(n.head + r.length)
1102
+ } : i = { range: n });
1103
+ return i ? null : e.update(a, {
1104
1104
  scrollIntoView: !0,
1105
1105
  userEvent: "input.type"
1106
1106
  });
1107
1107
  }
1108
- function ot(e, t, r, i) {
1109
- let a = i.stringPrefixes || X.stringPrefixes, o = null, s = e.changeByRange((i) => {
1108
+ function st(e, n, r, i) {
1109
+ let a = i.stringPrefixes || Y.stringPrefixes, o = null, s = e.changeByRange((i) => {
1110
1110
  if (!i.empty) return {
1111
1111
  changes: [{
1112
- insert: t,
1112
+ insert: n,
1113
1113
  from: i.from
1114
1114
  }, {
1115
- insert: t,
1115
+ insert: n,
1116
1116
  from: i.to
1117
1117
  }],
1118
- effects: Z.of(i.to + t.length),
1119
- range: x.range(i.anchor + t.length, i.head + t.length)
1118
+ effects: X.of(i.to + n.length),
1119
+ range: t.range(i.anchor + n.length, i.head + n.length)
1120
1120
  };
1121
- let s = i.head, c = $(e.doc, s), l;
1122
- if (c == t) {
1123
- if (st(e, s)) return {
1121
+ let s = i.head, c = Q(e.doc, s), l;
1122
+ if (c == n) {
1123
+ if (ct(e, s)) return {
1124
1124
  changes: {
1125
- insert: t + t,
1125
+ insert: n + n,
1126
1126
  from: s
1127
1127
  },
1128
- effects: Z.of(s + t.length),
1129
- range: x.cursor(s + t.length)
1128
+ effects: X.of(s + n.length),
1129
+ range: t.cursor(s + n.length)
1130
1130
  };
1131
- if (nt(e, s)) {
1132
- let n = r && e.sliceDoc(s, s + t.length * 3) == t + t + t ? t + t + t : t;
1131
+ if (rt(e, s)) {
1132
+ let i = r && e.sliceDoc(s, s + n.length * 3) == n + n + n ? n + n + n : n;
1133
1133
  return {
1134
1134
  changes: {
1135
1135
  from: s,
1136
- to: s + n.length,
1137
- insert: n
1136
+ to: s + i.length,
1137
+ insert: i
1138
1138
  },
1139
- range: x.cursor(s + n.length)
1139
+ range: t.cursor(s + i.length)
1140
1140
  };
1141
1141
  }
1142
- } else if (r && e.sliceDoc(s - 2 * t.length, s) == t + t && (l = lt(e, s - 2 * t.length, a)) > -1 && st(e, l)) return {
1142
+ } else if (r && e.sliceDoc(s - 2 * n.length, s) == n + n && (l = $(e, s - 2 * n.length, a)) > -1 && ct(e, l)) return {
1143
1143
  changes: {
1144
- insert: t + t + t + t,
1144
+ insert: n + n + n + n,
1145
1145
  from: s
1146
1146
  },
1147
- effects: Z.of(s + t.length),
1148
- range: x.cursor(s + t.length)
1147
+ effects: X.of(s + n.length),
1148
+ range: t.cursor(s + n.length)
1149
1149
  };
1150
- else if (e.charCategorizer(s)(c) != n.Word && lt(e, s, a) > -1 && !ct(e, s, t, a)) return {
1150
+ else if (e.charCategorizer(s)(c) != u.Word && $(e, s, a) > -1 && !lt(e, s, n, a)) return {
1151
1151
  changes: {
1152
- insert: t + t,
1152
+ insert: n + n,
1153
1153
  from: s
1154
1154
  },
1155
- effects: Z.of(s + t.length),
1156
- range: x.cursor(s + t.length)
1155
+ effects: X.of(s + n.length),
1156
+ range: t.cursor(s + n.length)
1157
1157
  };
1158
1158
  return { range: o = i };
1159
1159
  });
@@ -1162,84 +1162,84 @@ function ot(e, t, r, i) {
1162
1162
  userEvent: "input.type"
1163
1163
  });
1164
1164
  }
1165
- function st(e, t) {
1166
- let n = i(e).resolveInner(t + 1);
1165
+ function ct(e, t) {
1166
+ let n = o(e).resolveInner(t + 1);
1167
1167
  return n.parent && n.from == t;
1168
1168
  }
1169
- function ct(e, t, n, r) {
1170
- let a = i(e).resolveInner(t, -1), o = r.reduce((e, t) => Math.max(e, t.length), 0);
1171
- for (let i = 0; i < 5; i++) {
1172
- let i = e.sliceDoc(a.from, Math.min(a.to, a.from + n.length + o)), s = i.indexOf(n);
1173
- if (!s || s > -1 && r.indexOf(i.slice(0, s)) > -1) {
1174
- let t = a.firstChild;
1175
- for (; t && t.from == a.from && t.to - t.from > n.length + s;) {
1169
+ function lt(e, t, n, r) {
1170
+ let i = o(e).resolveInner(t, -1), a = r.reduce((e, t) => Math.max(e, t.length), 0);
1171
+ for (let o = 0; o < 5; o++) {
1172
+ let o = e.sliceDoc(i.from, Math.min(i.to, i.from + n.length + a)), s = o.indexOf(n);
1173
+ if (!s || s > -1 && r.indexOf(o.slice(0, s)) > -1) {
1174
+ let t = i.firstChild;
1175
+ for (; t && t.from == i.from && t.to - t.from > n.length + s;) {
1176
1176
  if (e.sliceDoc(t.to - n.length, t.to) == n) return !1;
1177
1177
  t = t.firstChild;
1178
1178
  }
1179
1179
  return !0;
1180
1180
  }
1181
- let c = a.to == t && a.parent;
1181
+ let c = i.to == t && i.parent;
1182
1182
  if (!c) break;
1183
- a = c;
1183
+ i = c;
1184
1184
  }
1185
1185
  return !1;
1186
1186
  }
1187
- function lt(e, t, r) {
1188
- let i = e.charCategorizer(t);
1189
- if (i(e.sliceDoc(t - 1, t)) != n.Word) return t;
1190
- for (let a of r) {
1191
- let r = t - a.length;
1192
- if (e.sliceDoc(r, t) == a && i(e.sliceDoc(r - 1, r)) != n.Word) return r;
1187
+ function $(e, t, n) {
1188
+ let r = e.charCategorizer(t);
1189
+ if (r(e.sliceDoc(t - 1, t)) != u.Word) return t;
1190
+ for (let i of n) {
1191
+ let n = t - i.length;
1192
+ if (e.sliceDoc(n, t) == i && r(e.sliceDoc(n - 1, n)) != u.Word) return n;
1193
1193
  }
1194
1194
  return -1;
1195
1195
  }
1196
1196
  function ut(e = {}) {
1197
1197
  return [
1198
- Ne,
1199
- z,
1200
- j.of(e),
1201
- je,
1198
+ Pe,
1199
+ R,
1200
+ M.of(e),
1201
+ Me,
1202
1202
  ft,
1203
- G
1203
+ W
1204
1204
  ];
1205
1205
  }
1206
1206
  var dt = [
1207
1207
  {
1208
1208
  key: "Ctrl-Space",
1209
- run: U
1209
+ run: H
1210
1210
  },
1211
1211
  {
1212
1212
  mac: "Alt-`",
1213
- run: U
1213
+ run: H
1214
1214
  },
1215
1215
  {
1216
1216
  mac: "Alt-i",
1217
- run: U
1217
+ run: H
1218
1218
  },
1219
1219
  {
1220
1220
  key: "Escape",
1221
- run: W
1221
+ run: U
1222
1222
  },
1223
1223
  {
1224
1224
  key: "ArrowDown",
1225
- run: /*@__PURE__*/ V(!0)
1225
+ run: /*@__PURE__*/ B(!0)
1226
1226
  },
1227
1227
  {
1228
1228
  key: "ArrowUp",
1229
- run: /*@__PURE__*/ V(!1)
1229
+ run: /*@__PURE__*/ B(!1)
1230
1230
  },
1231
1231
  {
1232
1232
  key: "PageDown",
1233
- run: /*@__PURE__*/ V(!0, "page")
1233
+ run: /*@__PURE__*/ B(!0, "page")
1234
1234
  },
1235
1235
  {
1236
1236
  key: "PageUp",
1237
- run: /*@__PURE__*/ V(!1, "page")
1237
+ run: /*@__PURE__*/ B(!1, "page")
1238
1238
  },
1239
1239
  {
1240
1240
  key: "Enter",
1241
- run: H
1241
+ run: V
1242
1242
  }
1243
- ], ft = /*@__PURE__*/ l.highest(/*@__PURE__*/ S.computeN([j], (e) => e.facet(j).defaultKeymap ? [dt] : []));
1243
+ ], ft = /*@__PURE__*/ d.highest(/*@__PURE__*/ b.computeN([M], (e) => e.facet(M).defaultKeymap ? [dt] : []));
1244
1244
  //#endregion
1245
- export { et as a, dt as c, Be as d, Ge as f, Je as i, ae as l, H as n, W as o, ut as r, T as s, C as t, ce as u };
1245
+ export { tt as a, dt as c, Ve as d, Ke as f, Ye as i, ie as l, V as n, U as o, ut as r, E as s, w as t, oe as u };