@marimo-team/islands 0.23.15-dev53 → 0.23.15-dev57
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ConnectedDataExplorerComponent-DMcymmpc.js → ConnectedDataExplorerComponent-CJaUI-S-.js} +3 -3
- package/dist/{any-language-editor-BfTj3PPF.js → any-language-editor-P9tjkj4n.js} +18 -18
- package/dist/{architectureDiagram-VXUJARFQ-B3jN8fkV.js → architectureDiagram-VXUJARFQ-DXwkyAaM.js} +5 -5
- package/dist/{blockDiagram-VD42YOAC-Dq_8lAbz.js → blockDiagram-VD42YOAC-CIOjvxeD.js} +5 -5
- package/dist/{c4Diagram-YG6GDRKO-BPzX9a9A.js → c4Diagram-YG6GDRKO-B6dZC_oU.js} +4 -4
- package/dist/{channel-D_qwSlm9.js → channel-BN070S0F.js} +1 -1
- package/dist/{chat-ui-CYGIiYqI.js → chat-ui-BdSDiVjk.js} +79 -74
- package/dist/{chunk-ABZYJK2D-CDSMdLBr.js → chunk-ABZYJK2D-BxBDji1u.js} +1 -1
- package/dist/{chunk-ATLVNIR6-BAW0e_d_.js → chunk-ATLVNIR6-qFiszptQ.js} +1 -1
- package/dist/{chunk-B4BG7PRW-CfEI05WL.js → chunk-B4BG7PRW-B_z2FEHm.js} +4 -4
- package/dist/{chunk-DI55MBZ5-CZS7hhjV.js → chunk-DI55MBZ5-D4Y8yV8B.js} +4 -4
- package/dist/{chunk-EXTU4WIE-DHwKB8ls.js → chunk-EXTU4WIE-BQPBhApE.js} +1 -1
- package/dist/{chunk-JA3XYJ7Z-Cy80gDpz.js → chunk-JA3XYJ7Z-CY4CRbV5.js} +2 -2
- package/dist/{chunk-JZLCHNYA-yfXq27Zq.js → chunk-JZLCHNYA-DWIR9m5O.js} +4 -4
- package/dist/{chunk-N4CR4FBY-C9D3Wsot.js → chunk-N4CR4FBY-Bw2HcMNc.js} +5 -5
- package/dist/{chunk-QN33PNHL-Bh2YDyg7.js → chunk-QN33PNHL-DPBNNzpR.js} +1 -1
- package/dist/{chunk-QXUST7PY-kDpsCDoY.js → chunk-QXUST7PY-DtC2t9Mk.js} +5 -5
- package/dist/{chunk-S3R3BYOJ-DkY8Kz3y.js → chunk-S3R3BYOJ-BdgLc8AM.js} +1 -1
- package/dist/{chunk-TZMSLE5B-CMZoW3vd.js → chunk-TZMSLE5B-BzSHcq-K.js} +1 -1
- package/dist/{classDiagram-2ON5EDUG-b2d3ZqfR.js → classDiagram-2ON5EDUG-BiQPjMNY.js} +10 -10
- package/dist/{classDiagram-v2-WZHVMYZB-RvnJbJ5M.js → classDiagram-v2-WZHVMYZB-YHdR8fqM.js} +10 -10
- package/dist/{code-visibility-Ddr-Cesu.js → code-visibility-DDYb93Ql.js} +9 -9
- package/dist/{dagre-6UL2VRFP--ruFWg_S.js → dagre-6UL2VRFP-DpYjBqQs.js} +7 -7
- package/dist/{diagram-PSM6KHXK-CGakapLj.js → diagram-PSM6KHXK-D4ftnaua.js} +6 -6
- package/dist/{diagram-QEK2KX5R-CtqD8u_P.js → diagram-QEK2KX5R-DVlUOgs1.js} +4 -4
- package/dist/{diagram-S2PKOQOG-BS1wa35J.js → diagram-S2PKOQOG-CGh4OMEV.js} +4 -4
- package/dist/{dist-BGLXXYL4.js → dist-3NCqaWjt.js} +2 -2
- package/dist/{dist-95kpvRSY.js → dist-4lVIWUT3.js} +1 -1
- package/dist/dist-5o9uz19x.js +5 -0
- package/dist/{dist-B1k1NmGB.js → dist-B2jmQKKx.js} +2 -2
- package/dist/{dist-kcg3gjx6.js → dist-BCX980mU.js} +2 -2
- package/dist/{dist-c6wTyIhD.js → dist-BIEt-mlF.js} +1 -1
- package/dist/{dist-tJic1rC-.js → dist-BO5HRiTf.js} +2 -2
- package/dist/{dist-3MT9i_N5.js → dist-BOMbzyb3.js} +85 -85
- package/dist/{dist-Dx3eDsHX.js → dist-BP39XM8u.js} +1 -1
- package/dist/{dist-DijFs2Lk.js → dist-BPF0gTRZ.js} +6 -6
- package/dist/{dist-BvCrjp81.js → dist-BTdrwBWP.js} +22 -22
- package/dist/{dist-CLBjD8zw.js → dist-BdqCKQ1O.js} +2 -2
- package/dist/dist-BpDH0DEP.js +5 -0
- package/dist/dist-BpXhbQXO.js +8 -0
- package/dist/{dist-DgZczohI.js → dist-BpeiYpG2.js} +2 -2
- package/dist/{dist-Db1W16d-.js → dist-BwhXBwMd.js} +1 -1
- package/dist/dist-ByadAk_L.js +5 -0
- package/dist/{dist-B69xyr_D.js → dist-C18MUWTj.js} +2 -2
- package/dist/{dist-DPdzbDlL.js → dist-C2_4pjuS.js} +1 -1
- package/dist/{dist-B56Dml3A.js → dist-CFSb_Frm.js} +1 -1
- package/dist/dist-CK0g7JvP.js +8 -0
- package/dist/{dist-CNXNPADS.js → dist-CRmSjkLP.js} +2 -2
- package/dist/{dist-D3T8fCFo.js → dist-CSlJrrAw.js} +86 -81
- package/dist/dist-CfzCtiq2.js +5 -0
- package/dist/{dist-4-bJUNMb.js → dist-D3bdsa1d.js} +4 -4
- package/dist/dist-D8JtVFrW.js +8 -0
- package/dist/dist-DK2Oocpu.js +6 -0
- package/dist/{dist-DBN2w27P.js → dist-DZwp8lro.js} +3 -3
- package/dist/{dist-BFgLBSJb.js → dist-DaXJPX8F.js} +2 -2
- package/dist/{dist-U4F-tbMs.js → dist-De-GlSAs.js} +246 -184
- package/dist/{dist-DPH6RMhL.js → dist-DgjbnqTg.js} +125 -125
- package/dist/dist-DnSu977r.js +5 -0
- package/dist/{dist-e29IFSI0.js → dist-DviUBLUp.js} +4 -4
- package/dist/{dist-BIdzGb3O.js → dist-DwqBJ014.js} +2 -2
- package/dist/{dist-BGj6VvC-.js → dist-JGehap7K.js} +5 -5
- package/dist/{dist-BGtkYshf.js → dist-LpLXa9Lb.js} +2 -2
- package/dist/dist-UmxJm6sW.js +8 -0
- package/dist/dist-aYSBQSyM.js +5 -0
- package/dist/dist-kkZ1Ztlh.js +6 -0
- package/dist/dist-ngPczwNi.js +5 -0
- package/dist/{dist-C-RLuUaE.js → dist-pqIwD8VD.js} +2 -2
- package/dist/dist-wQRyxyTV.js +5 -0
- package/dist/{dist-DvOfvWFi.js → dist-w_gWE5Wf.js} +1 -1
- package/dist/{erDiagram-Q2GNP2WA-DmtIJBsT.js → erDiagram-Q2GNP2WA-BcKAHFqF.js} +10 -10
- package/dist/{esm-D6_uCZ4z.js → esm-DKOv6P2M.js} +341 -341
- package/dist/esm-k8PIvuZW.js +1180 -0
- package/dist/{extends-B88Yrunj.js → extends-Cq2JYHKy.js} +32 -16
- package/dist/{flowDiagram-NV44I4VS-DZsgBUcQ.js → flowDiagram-NV44I4VS-BRhSg-ro.js} +10 -10
- package/dist/{formats-DSfNdJLH.js → formats-BFhkZJwd.js} +1 -1
- package/dist/{ganttDiagram-JELNMOA3-CgFhg_6K.js → ganttDiagram-JELNMOA3-CXXCN7LN.js} +3 -3
- package/dist/{gitGraphDiagram-V2S2FVAM-DPInyn1F.js → gitGraphDiagram-V2S2FVAM-BOlkMSqK.js} +3 -3
- package/dist/{html-to-image-BoXPmWps.js → html-to-image-DDENewl2.js} +34 -34
- package/dist/{infoDiagram-HS3SLOUP-ETAzKIiE.js → infoDiagram-HS3SLOUP-D3TyKnL_.js} +3 -3
- package/dist/{journeyDiagram-XKPGCS4Q-Bc94zDj1.js → journeyDiagram-XKPGCS4Q-DEal0aT1.js} +3 -3
- package/dist/{kanban-definition-3W4ZIXB7-DSk8Ebci.js → kanban-definition-3W4ZIXB7-Dl90wENN.js} +7 -7
- package/dist/{loader-BUGT0KbC.js → loader-CTHCI-qe.js} +7 -7
- package/dist/main.js +31 -31
- package/dist/{mermaid-CYkbfJHW.js → mermaid-CdSvixW2.js} +36 -36
- package/dist/{mindmap-definition-VGOIOE7T-BYoCqVAJ.js → mindmap-definition-VGOIOE7T-CCDupjWW.js} +9 -9
- package/dist/{pieDiagram-ADFJNKIX-BaAU79Vb.js → pieDiagram-ADFJNKIX-JvXG_6hk.js} +4 -4
- package/dist/{process-output-CbRRhwQo.js → process-output-2QPcgBQg.js} +1 -1
- package/dist/purify.es-EnR5yhgI.js +783 -0
- package/dist/{quadrantDiagram-AYHSOK5B-BmTWJxzo.js → quadrantDiagram-AYHSOK5B-BqDB9tUC.js} +2 -2
- package/dist/{react-vega-DfJOSnj6.js → react-vega-BazDALhI.js} +633 -633
- package/dist/{requirementDiagram-UZGBJVZJ-Jrs04ua1.js → requirementDiagram-UZGBJVZJ-KbVt8SPH.js} +9 -9
- package/dist/{reveal-component-BY5sWajR.js → reveal-component-C5pW80ik.js} +11 -11
- package/dist/{sankeyDiagram-TZEHDZUN-YJnhmG4N.js → sankeyDiagram-TZEHDZUN-DgkF38jx.js} +2 -2
- package/dist/{sequenceDiagram-WL72ISMW-D30L51Bn.js → sequenceDiagram-WL72ISMW-BDmx9n95.js} +4 -4
- package/dist/{stateDiagram-FKZM4ZOC-C0nZuUP8.js → stateDiagram-FKZM4ZOC-ByOvQf2n.js} +10 -10
- package/dist/{stateDiagram-v2-4FDKWEC3-BmovmS-G.js → stateDiagram-v2-4FDKWEC3-C3xqeavR.js} +10 -10
- package/dist/{timeline-definition-IT6M3QCI-DEoIEWAl.js → timeline-definition-IT6M3QCI-CkD_trIn.js} +2 -2
- package/dist/{vega-component-uL9ZaXcH.js → vega-component-CrFoZT1S.js} +4 -4
- package/dist/{vega-embed-container-DgZMMVL3.js → vega-embed-container-DAQAMjiO.js} +2 -2
- package/dist/vega-loader.browser-DmpxCJqx.js +1353 -0
- package/dist/{xychartDiagram-PRI3JC2R-iwKXEnYZ.js → xychartDiagram-PRI3JC2R-BSkNxYNw.js} +5 -5
- package/package.json +3 -1
- package/dist/dist-9yiSURLw.js +0 -6
- package/dist/dist-9zfbSqew.js +0 -8
- package/dist/dist-BZ_VEpg8.js +0 -8
- package/dist/dist-BdYVjH1C.js +0 -5
- package/dist/dist-BiIoKp92.js +0 -6
- package/dist/dist-Bow9AUXt.js +0 -5
- package/dist/dist-C8odMDp5.js +0 -8
- package/dist/dist-CLgjZx38.js +0 -5
- package/dist/dist-CnMOJtGP.js +0 -5
- package/dist/dist-D-5m1nDT.js +0 -5
- package/dist/dist-D8AXqiCV.js +0 -5
- package/dist/dist-DMuf8sZd.js +0 -5
- package/dist/dist-DszXOVSb.js +0 -5
- package/dist/dist-GW0m0q65.js +0 -8
- package/dist/esm-BxhNWHqh.js +0 -1171
- package/dist/purify.es-C-fIGuQm.js +0 -557
- package/dist/vega-loader.browser-IU8eTDwM.js +0 -1333
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { $ as EditorView, H as tags, I as syntaxTree, O as indentNodeProp,
|
|
2
|
-
import { r as cssLanguage, t as css } from "./dist-
|
|
3
|
-
import { c as typescriptLanguage, i as jsxLanguage, n as javascript, r as javascriptLanguage, s as tsxLanguage } from "./dist-
|
|
1
|
+
import { $ as EditorView, H as tags, I as syntaxTree, O as indentNodeProp, V as styleTags, X as parseMixed, kt as EditorSelection, m as bracketMatchingHandle, n as ExternalTokenizer, r as LRParser, s as LRLanguage, t as ContextTracker, u as LanguageSupport, w as foldNodeProp } from "./dist-De-GlSAs.js";
|
|
2
|
+
import { r as cssLanguage, t as css } from "./dist-4lVIWUT3.js";
|
|
3
|
+
import { c as typescriptLanguage, i as jsxLanguage, n as javascript, r as javascriptLanguage, s as tsxLanguage } from "./dist-DgjbnqTg.js";
|
|
4
4
|
var scriptText = 54, StartCloseScriptTag = 1, styleText = 55, StartCloseStyleTag = 2, textareaText = 56, StartCloseTextareaTag = 3, EndTag = 4, SelfClosingEndTag = 5, StartTag = 6, StartScriptTag = 7, StartStyleTag = 8, StartTextareaTag = 9, StartSelfClosingTag = 10, StartCloseTag = 11, NoMatchStartCloseTag = 12, MismatchedStartCloseTag = 13, missingCloseTag = 57, IncompleteCloseTag = 14, commentContent$1 = 58, Element = 20, TagName = 22, Attribute = 23, AttributeName = 24, AttributeValue = 26, UnquotedAttributeValue = 27, ScriptText = 28, StyleText = 31, TextareaText = 34, OpenTag = 36, CloseTag = 37, Dialect_noMatch = 0, Dialect_selfClosing = 1, selfClosers$1 = {
|
|
5
5
|
area: true,
|
|
6
6
|
base: true,
|
|
@@ -356,19 +356,19 @@ function maybeNest(g, G, K) {
|
|
|
356
356
|
return null;
|
|
357
357
|
}
|
|
358
358
|
function configureNesting(g = [], G = []) {
|
|
359
|
-
let K = [], q = [], J = [],
|
|
360
|
-
for (let G2 of g) (G2.tag == "script" ? K : G2.tag == "style" ? q : G2.tag == "textarea" ? J :
|
|
359
|
+
let K = [], q = [], J = [], X = [];
|
|
360
|
+
for (let G2 of g) (G2.tag == "script" ? K : G2.tag == "style" ? q : G2.tag == "textarea" ? J : X).push(G2);
|
|
361
361
|
let Z = G.length ? /* @__PURE__ */ Object.create(null) : null;
|
|
362
362
|
for (let g2 of G) (Z[g2.name] || (Z[g2.name] = [])).push(g2);
|
|
363
363
|
return parseMixed((g2, G2) => {
|
|
364
|
-
let
|
|
365
|
-
if (
|
|
366
|
-
if (
|
|
367
|
-
if (
|
|
368
|
-
if (
|
|
369
|
-
let K2 = g2.node, q2 = K2.firstChild, J2 = q2 && findTagName(q2, G2),
|
|
364
|
+
let Y = g2.type.id;
|
|
365
|
+
if (Y == ScriptText) return maybeNest(g2, G2, K);
|
|
366
|
+
if (Y == StyleText) return maybeNest(g2, G2, q);
|
|
367
|
+
if (Y == TextareaText) return maybeNest(g2, G2, J);
|
|
368
|
+
if (Y == Element && X.length) {
|
|
369
|
+
let K2 = g2.node, q2 = K2.firstChild, J2 = q2 && findTagName(q2, G2), Y2;
|
|
370
370
|
if (J2) {
|
|
371
|
-
for (let g3 of
|
|
371
|
+
for (let g3 of X) if (g3.tag == J2 && (!g3.attrs || g3.attrs(Y2 || (Y2 = getAttrs(q2, G2))))) {
|
|
372
372
|
let G3 = K2.lastChild, J3 = G3.type.id == CloseTag ? G3.from : K2.to;
|
|
373
373
|
if (J3 > q2.to) return {
|
|
374
374
|
parser: g3.parser,
|
|
@@ -380,7 +380,7 @@ function configureNesting(g = [], G = []) {
|
|
|
380
380
|
}
|
|
381
381
|
}
|
|
382
382
|
}
|
|
383
|
-
if (Z &&
|
|
383
|
+
if (Z && Y == Attribute) {
|
|
384
384
|
let K2 = g2.node, q2;
|
|
385
385
|
if (q2 = K2.firstChild) {
|
|
386
386
|
let g3 = Z[G2.read(q2.from, q2.to)];
|
|
@@ -1281,13 +1281,13 @@ function html(g = {}) {
|
|
|
1281
1281
|
css().support
|
|
1282
1282
|
]);
|
|
1283
1283
|
}
|
|
1284
|
-
var selfClosers = /* @__PURE__ */ new Set(/* @__PURE__ */ "area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")), autoCloseTags = /* @__PURE__ */ EditorView.inputHandler.of((g, G, q,
|
|
1285
|
-
if (g.composing || g.state.readOnly || G != q ||
|
|
1286
|
-
let Z =
|
|
1284
|
+
var selfClosers = /* @__PURE__ */ new Set(/* @__PURE__ */ "area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")), autoCloseTags = /* @__PURE__ */ EditorView.inputHandler.of((g, G, q, J, Y) => {
|
|
1285
|
+
if (g.composing || g.state.readOnly || G != q || J != ">" && J != "/" || !htmlLanguage.isActiveAt(g.state, G, -1)) return false;
|
|
1286
|
+
let Z = Y(), { state: Q } = Z, $ = Q.changeByRange((g2) => {
|
|
1287
1287
|
var _a, _b, _c;
|
|
1288
|
-
let G2 = Q.doc.sliceString(g2.from - 1, g2.to) ==
|
|
1289
|
-
if (G2 &&
|
|
1290
|
-
let G3 =
|
|
1288
|
+
let G2 = Q.doc.sliceString(g2.from - 1, g2.to) == J, { head: q2 } = g2, Y2 = syntaxTree(Q).resolveInner(q2, -1), Z2;
|
|
1289
|
+
if (G2 && J == ">" && Y2.name == "EndTag") {
|
|
1290
|
+
let G3 = Y2.parent;
|
|
1291
1291
|
if (((_b = (_a = G3.parent) == null ? void 0 : _a.lastChild) == null ? void 0 : _b.name) != "CloseTag" && (Z2 = elementName(Q.doc, G3.parent, q2)) && !selfClosers.has(Z2)) return {
|
|
1292
1292
|
range: g2,
|
|
1293
1293
|
changes: {
|
|
@@ -1296,9 +1296,9 @@ var selfClosers = /* @__PURE__ */ new Set(/* @__PURE__ */ "area base br col comm
|
|
|
1296
1296
|
insert: `</${Z2}>`
|
|
1297
1297
|
}
|
|
1298
1298
|
};
|
|
1299
|
-
} else if (G2 &&
|
|
1300
|
-
let g3 =
|
|
1301
|
-
if (
|
|
1299
|
+
} else if (G2 && J == "/" && Y2.name == "IncompleteCloseTag") {
|
|
1300
|
+
let g3 = Y2.parent;
|
|
1301
|
+
if (Y2.from == q2 - 2 && ((_c = g3.lastChild) == null ? void 0 : _c.name) != "CloseTag" && (Z2 = elementName(Q.doc, g3, q2)) && !selfClosers.has(Z2)) {
|
|
1302
1302
|
let g4 = q2 + (Q.doc.sliceString(q2, q2 + 1) === ">" ? 1 : 0), G3 = `${Z2}>`;
|
|
1303
1303
|
return {
|
|
1304
1304
|
range: EditorSelection.cursor(q2 + G3.length, -1),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { H as tags, O as indentNodeProp, S as foldInside, V as styleTags, X as parseMixed, h as continuedIndent, n as ExternalTokenizer, r as LRParser, s as LRLanguage, u as LanguageSupport, v as delimitedIndent, w as foldNodeProp } from "./dist-
|
|
2
|
-
import { n as html } from "./dist-
|
|
1
|
+
import { H as tags, O as indentNodeProp, S as foldInside, V as styleTags, X as parseMixed, h as continuedIndent, n as ExternalTokenizer, r as LRParser, s as LRLanguage, u as LanguageSupport, v as delimitedIndent, w as foldNodeProp } from "./dist-De-GlSAs.js";
|
|
2
|
+
import { n as html } from "./dist-BTdrwBWP.js";
|
|
3
3
|
var castOpen = 1, HeredocString = 2, interpolatedStringContent = 263, EscapeSequence = 3, afterInterpolation = 264, automaticSemicolon = 265, eof = 266, abstract = 4, and = 5, array = 6, as = 7, Boolean = 8, _break = 9, _case = 10, _catch = 11, clone = 12, _const = 13, _continue = 14, _default = 15, declare = 16, _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, Visibility = 62, keywordMap = {
|
|
4
4
|
abstract,
|
|
5
5
|
and,
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import "./dist-De-GlSAs.js";
|
|
2
|
+
import "./dist-BTdrwBWP.js";
|
|
3
|
+
import "./dist-4lVIWUT3.js";
|
|
4
|
+
import "./dist-DgjbnqTg.js";
|
|
5
|
+
import { i as jinjaLanguage, n as jinja, r as jinjaCompletionSource, t as closePercentBrace } from "./dist-BO5HRiTf.js";
|
|
6
|
+
export {
|
|
7
|
+
jinja
|
|
8
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { H as tags, I as syntaxTree, O as indentNodeProp, V as styleTags, h as continuedIndent, n as ExternalTokenizer, r as LRParser, s as LRLanguage, u as LanguageSupport, w as foldNodeProp } from "./dist-
|
|
2
|
-
import { l as ifNotIn, s as completeFromList } from "./dist-
|
|
1
|
+
import { H as tags, I as syntaxTree, O as indentNodeProp, V as styleTags, h as continuedIndent, n as ExternalTokenizer, r as LRParser, s as LRLanguage, u as LanguageSupport, w as foldNodeProp } from "./dist-De-GlSAs.js";
|
|
2
|
+
import { l as ifNotIn, s as completeFromList } from "./dist-CSlJrrAw.js";
|
|
3
3
|
var whitespace = 36, LineComment = 1, BlockComment = 2, String$1 = 3, Number = 4, Bool = 5, Null = 6, ParenL = 7, ParenR = 8, BraceL = 9, BraceR = 10, BracketL = 11, BracketR = 12, Semi = 13, Dot = 14, Operator = 15, Punctuation = 16, SpecialVar = 17, Identifier = 18, QuotedIdentifier = 19, Keyword = 20, Type = 21, Bits = 22, Bytes = 23, Builtin = 24;
|
|
4
4
|
function isAlpha(h3) {
|
|
5
5
|
return h3 >= 65 && h3 <= 90 || h3 >= 97 && h3 <= 122 || h3 >= 48 && h3 <= 57;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { H as tags, O as indentNodeProp, S as foldInside, V as styleTags, h as continuedIndent, r as LRParser, s as LRLanguage, u as LanguageSupport, v as delimitedIndent, w as foldNodeProp, y as flatIndent } from "./dist-
|
|
1
|
+
import { H as tags, O as indentNodeProp, S as foldInside, V as styleTags, h as continuedIndent, r as LRParser, s as LRLanguage, u as LanguageSupport, v as delimitedIndent, w as foldNodeProp, y as flatIndent } from "./dist-De-GlSAs.js";
|
|
2
2
|
var javaHighlighting = styleTags({
|
|
3
3
|
null: tags.null,
|
|
4
4
|
instanceof: tags.operatorKeyword,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { H as tags, I as syntaxTree, O as indentNodeProp, S as foldInside, U as IterMode, V as styleTags, h as continuedIndent, i as LocalTokenGroup, n as ExternalTokenizer, q as NodeWeakMap, r as LRParser, s as LRLanguage, t as ContextTracker, u as LanguageSupport, v as delimitedIndent, w as foldNodeProp, y as flatIndent } from "./dist-
|
|
2
|
-
import { f as snippetCompletion, l as ifNotIn, s as completeFromList } from "./dist-
|
|
1
|
+
import { H as tags, I as syntaxTree, O as indentNodeProp, S as foldInside, U as IterMode, V as styleTags, h as continuedIndent, i as LocalTokenGroup, n as ExternalTokenizer, q as NodeWeakMap, r as LRParser, s as LRLanguage, t as ContextTracker, u as LanguageSupport, v as delimitedIndent, w as foldNodeProp, y as flatIndent } from "./dist-De-GlSAs.js";
|
|
2
|
+
import { f as snippetCompletion, l as ifNotIn, s as completeFromList } from "./dist-CSlJrrAw.js";
|
|
3
3
|
var insertedSemi = 177, space$1 = 179, identifier = 184, String = 12, closeParen$1 = 13, Number = 17, Rune = 20, closeBrace$1 = 25, closeBracket = 53, IncDecOp = 95, _return = 142, _break = 144, _continue = 145, fallthrough = 148, newline = 10, carriageReturn = 13, space = 32, tab = 9, slash = 47, closeParen = 41, closeBrace = 125, semicolon = new ExternalTokenizer((y, J) => {
|
|
4
4
|
for (let Y = 0, X = y.next; (J.context && (X < 0 || X == newline || X == carriageReturn || X == slash && y.peek(Y + 1) == slash) || X == closeParen || X == closeBrace) && y.acceptToken(insertedSemi), !(X != space && X != tab); ) X = y.peek(++Y);
|
|
5
5
|
}, { contextual: true }), trackedTokens = /* @__PURE__ */ new Set([
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { H as tags, O as indentNodeProp, S as foldInside, V as styleTags, h as continuedIndent, r as LRParser, s as LRLanguage, u as LanguageSupport, w as foldNodeProp } from "./dist-
|
|
1
|
+
import { H as tags, O as indentNodeProp, S as foldInside, V as styleTags, h as continuedIndent, r as LRParser, s as LRLanguage, u as LanguageSupport, w as foldNodeProp } from "./dist-De-GlSAs.js";
|
|
2
2
|
var jsonHighlighting = styleTags({
|
|
3
3
|
String: tags.string,
|
|
4
4
|
Number: tags.number,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { H as tags, O as indentNodeProp, S as foldInside, V as styleTags, n as ExternalTokenizer, r as LRParser, s as LRLanguage, t as ContextTracker, u as LanguageSupport, v as delimitedIndent, w as foldNodeProp } from "./dist-
|
|
1
|
+
import { H as tags, O as indentNodeProp, S as foldInside, V as styleTags, n as ExternalTokenizer, r as LRParser, s as LRLanguage, t as ContextTracker, u as LanguageSupport, v as delimitedIndent, w as foldNodeProp } from "./dist-De-GlSAs.js";
|
|
2
2
|
var blockEnd = 63, eof = 64, DirectiveEnd = 1, DocEnd = 2, sequenceStartMark = 3, sequenceContinueMark = 4, explicitMapStartMark = 5, explicitMapContinueMark = 6, flowMapMark = 7, mapStartMark = 65, mapContinueMark = 66, Literal = 8, QuotedLiteral = 9, Anchor = 10, Alias = 11, Tag = 12, BlockLiteralContent = 13, BracketL = 19, FlowSequence = 20, Colon = 29, BraceL = 33, FlowMapping = 34, BlockLiteralHeader = 47, type_Top = 0, type_Seq = 1, type_Map = 2, type_Flow = 3, type_Lit = 4, Context = class {
|
|
3
3
|
constructor(v, q, J) {
|
|
4
4
|
this.parent = v, this.depth = q, this.type = J, this.hash = (v ? v.hash + v.hash << 8 : 0) + q + (q << 4) + J;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { H as tags, I as syntaxTree, O as indentNodeProp, S as foldInside, U as IterMode, V as styleTags, n as ExternalTokenizer, q as NodeWeakMap, r as LRParser, s as LRLanguage, t as ContextTracker, u as LanguageSupport, v as delimitedIndent, w as foldNodeProp } from "./dist-
|
|
2
|
-
import { f as snippetCompletion, l as ifNotIn, s as completeFromList } from "./dist-
|
|
1
|
+
import { H as tags, I as syntaxTree, O as indentNodeProp, S as foldInside, U as IterMode, V as styleTags, n as ExternalTokenizer, q as NodeWeakMap, r as LRParser, s as LRLanguage, t as ContextTracker, u as LanguageSupport, v as delimitedIndent, w as foldNodeProp } from "./dist-De-GlSAs.js";
|
|
2
|
+
import { f as snippetCompletion, l as ifNotIn, s as completeFromList } from "./dist-CSlJrrAw.js";
|
|
3
3
|
var printKeyword = 1, indent = 194, dedent = 195, newline$1 = 196, blankLineStart = 197, newlineBracketed = 198, eof = 199, stringContent = 200, Escape = 2, replacementStart = 3, stringEnd = 201, ParenL = 24, ParenthesizedExpression = 25, TupleExpression = 49, ComprehensionExpression = 50, BracketL = 55, ArrayExpression = 56, ArrayComprehensionExpression = 57, BraceL = 59, DictionaryExpression = 60, DictionaryComprehensionExpression = 61, SetExpression = 62, SetComprehensionExpression = 63, ArgList = 65, subscript = 238, String$1 = 71, stringStart = 241, stringStartD = 242, stringStartL = 243, stringStartLD = 244, stringStartR = 245, stringStartRD = 246, stringStartRL = 247, stringStartRLD = 248, FormatString = 72, stringStartF = 249, stringStartFD = 250, stringStartFL = 251, stringStartFLD = 252, stringStartFR = 253, stringStartFRD = 254, stringStartFRL = 255, stringStartFRLD = 256, FormatReplacement = 73, nestedFormatReplacement = 77, importList = 263, TypeParamList = 112, ParamList = 130, SequencePattern = 151, MappingPattern = 152, PatternArgList = 155, newline = 10, carriageReturn = 13, space = 32, tab = 9, hash = 35, parenOpen = 40, dot = 46, braceOpen = 123, braceClose = 125, singleQuote = 39, doubleQuote = 34, backslash = 92, letter_o = 111, letter_x = 120, letter_N = 78, letter_u = 117, letter_U = 85, bracketed = /* @__PURE__ */ new Set([
|
|
4
4
|
ParenthesizedExpression,
|
|
5
5
|
TupleExpression,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as EditorView,
|
|
1
|
+
import { $ as EditorView, Bt as Transaction, Dt as CharCategory, Ht as codePointSize, I as syntaxTree, It as RangeValue, Kt as fromCodePoint, Lt as StateEffect, Mt as MapMode, Nt as Prec, Pt as RangeSet, Q as Direction, Rt as StateField, St as showTooltip, Ut as combineConfig, Vt as codePointAt, Z as Decoration, ct as getTooltip, gt as logException, j as indentUnit, jt as Facet, kt as EditorSelection, mt as keymap, nt as WidgetType, tt as ViewPlugin, wt as Annotation, zt as Text } from "./dist-De-GlSAs.js";
|
|
2
2
|
var CompletionContext = class {
|
|
3
3
|
constructor(r8, M, N, P) {
|
|
4
4
|
this.state = r8, this.pos = M, this.explicit = N, this.view = P, this.abortListeners = [], this.abortOnDocChange = false;
|
|
@@ -103,8 +103,8 @@ var startCompletionEffect = /* @__PURE__ */ StateEffect.define(), closeCompletio
|
|
|
103
103
|
constructor(r8) {
|
|
104
104
|
this.pattern = r8, this.chars = [], this.folded = [], this.any = [], this.precise = [], this.byWord = [], this.score = 0, this.matched = [];
|
|
105
105
|
for (let M = 0; M < r8.length; ) {
|
|
106
|
-
let
|
|
107
|
-
this.chars.push(
|
|
106
|
+
let N = codePointAt(r8, M), F = codePointSize(N);
|
|
107
|
+
this.chars.push(N);
|
|
108
108
|
let I = r8.slice(M, M + F), L = I.toUpperCase();
|
|
109
109
|
this.folded.push(codePointAt(L == I ? I.toLowerCase() : L, 0)), M += F;
|
|
110
110
|
}
|
|
@@ -116,10 +116,10 @@ var startCompletionEffect = /* @__PURE__ */ StateEffect.define(), closeCompletio
|
|
|
116
116
|
match(r8) {
|
|
117
117
|
if (this.pattern.length == 0) return this.ret(-100, []);
|
|
118
118
|
if (r8.length < this.pattern.length) return null;
|
|
119
|
-
let { chars: M, folded:
|
|
119
|
+
let { chars: M, folded: N, any: F, precise: I, byWord: R } = this;
|
|
120
120
|
if (M.length == 1) {
|
|
121
121
|
let F2 = codePointAt(r8, 0), I2 = codePointSize(F2), L = I2 == r8.length ? 0 : -100;
|
|
122
|
-
if (F2 != M[0]) if (F2 ==
|
|
122
|
+
if (F2 != M[0]) if (F2 == N[0]) L += -200;
|
|
123
123
|
else return null;
|
|
124
124
|
return this.ret(L, [0, I2]);
|
|
125
125
|
}
|
|
@@ -129,26 +129,26 @@ var startCompletionEffect = /* @__PURE__ */ StateEffect.define(), closeCompletio
|
|
|
129
129
|
if (z < 0) {
|
|
130
130
|
for (let I2 = 0, L = Math.min(r8.length, 200); I2 < L && V < B; ) {
|
|
131
131
|
let L2 = codePointAt(r8, I2);
|
|
132
|
-
(L2 == M[V] || L2 ==
|
|
132
|
+
(L2 == M[V] || L2 == N[V]) && (F[V++] = I2), I2 += codePointSize(L2);
|
|
133
133
|
}
|
|
134
134
|
if (V < B) return null;
|
|
135
135
|
}
|
|
136
|
-
let H = 0, U = 0, W = false, G = 0,
|
|
136
|
+
let H = 0, U = 0, W = false, G = 0, q = -1, J = -1, Y = /[a-z]/.test(r8), X = true;
|
|
137
137
|
for (let F2 = 0, V2 = Math.min(r8.length, 200), Z = 0; F2 < V2 && U < B; ) {
|
|
138
138
|
let V3 = codePointAt(r8, F2);
|
|
139
|
-
z < 0 && (H < B && V3 == M[H] && (I[H++] = F2), G < B && (V3 == M[G] || V3 ==
|
|
139
|
+
z < 0 && (H < B && V3 == M[H] && (I[H++] = F2), G < B && (V3 == M[G] || V3 == N[G] ? (G == 0 && (q = F2), J = F2 + 1, G++) : G = 0));
|
|
140
140
|
let Q, $ = V3 < 255 ? V3 >= 48 && V3 <= 57 || V3 >= 97 && V3 <= 122 ? 2 : V3 >= 65 && V3 <= 90 ? 1 : 0 : (Q = fromCodePoint(V3)) == Q.toLowerCase() ? Q == Q.toUpperCase() ? 0 : 2 : 1;
|
|
141
|
-
(!F2 || $ == 1 && Y || Z == 0 && $ != 0) && (M[U] == V3 ||
|
|
141
|
+
(!F2 || $ == 1 && Y || Z == 0 && $ != 0) && (M[U] == V3 || N[U] == V3 && (W = true) ? R[U++] = F2 : R.length && (X = false)), Z = $, F2 += codePointSize(V3);
|
|
142
142
|
}
|
|
143
|
-
return U == B && R[0] == 0 && X ? this.result(-100 + (W ? -200 : 0), R, r8) : G == B &&
|
|
143
|
+
return U == B && R[0] == 0 && X ? this.result(-100 + (W ? -200 : 0), R, r8) : G == B && q == 0 ? this.ret(-200 - r8.length + (J == r8.length ? 0 : -100), [0, J]) : z > -1 ? this.ret(-700 - r8.length, [z, z + this.pattern.length]) : G == B ? this.ret(-900 - r8.length, [q, J]) : U == B ? this.result(-100 + (W ? -200 : 0) + -700 + (X ? 0 : -1100), R, r8) : M.length == 2 ? null : this.result((F[0] ? -700 : 0) + -200 + -1100, F, r8);
|
|
144
144
|
}
|
|
145
|
-
result(r8, M,
|
|
145
|
+
result(r8, M, N) {
|
|
146
146
|
let F = [], I = 0;
|
|
147
147
|
for (let r9 of M) {
|
|
148
|
-
let M2 = r9 + (this.astral ? codePointSize(codePointAt(
|
|
148
|
+
let M2 = r9 + (this.astral ? codePointSize(codePointAt(N, r9)) : 1);
|
|
149
149
|
I && F[I - 1] == r9 ? F[I - 1] = M2 : (F[I++] = r9, F[I++] = M2);
|
|
150
150
|
}
|
|
151
|
-
return this.ret(r8 -
|
|
151
|
+
return this.ret(r8 - N.length, F);
|
|
152
152
|
}
|
|
153
153
|
}, StrictMatcher = class {
|
|
154
154
|
constructor(r8) {
|
|
@@ -193,16 +193,16 @@ function joinClass(r8, M) {
|
|
|
193
193
|
return r8 ? M ? r8 + " " + M : r8 : M;
|
|
194
194
|
}
|
|
195
195
|
function defaultPositionInfo(r8, M, N, P, F, I) {
|
|
196
|
-
let L = r8.textDirection == Direction.RTL, R = L, z = false, B = "top", V,
|
|
197
|
-
if (R &&
|
|
196
|
+
let L = r8.textDirection == Direction.RTL, R = L, z = false, B = "top", V, U, W = M.left - F.left, G = F.right - M.right, K = P.right - P.left, q = P.bottom - P.top;
|
|
197
|
+
if (R && W < Math.min(K, G) ? R = false : !R && G < Math.min(K, W) && (R = true), K <= (R ? W : G)) V = Math.max(F.top, Math.min(N.top, F.bottom - q)) - M.top, U = Math.min(400, R ? W : G);
|
|
198
198
|
else {
|
|
199
|
-
z = true,
|
|
199
|
+
z = true, U = Math.min(400, (L ? M.right : F.right - M.left) - 30);
|
|
200
200
|
let r9 = F.bottom - M.bottom;
|
|
201
201
|
r9 >= q || r9 > M.top ? V = N.bottom - M.top : (B = "bottom", V = M.bottom - N.top);
|
|
202
202
|
}
|
|
203
203
|
let J = (M.bottom - M.top) / I.offsetHeight, Y = (M.right - M.left) / I.offsetWidth;
|
|
204
204
|
return {
|
|
205
|
-
style: `${B}: ${V / J}px; max-width: ${
|
|
205
|
+
style: `${B}: ${V / J}px; max-width: ${U / Y}px`,
|
|
206
206
|
class: "cm-completionInfo-" + (z ? L ? "left-narrow" : "right-narrow" : R ? "left" : "right")
|
|
207
207
|
};
|
|
208
208
|
}
|
|
@@ -250,10 +250,10 @@ function rangeAroundSelected(r8, M, N) {
|
|
|
250
250
|
to: (r9 + 1) * N
|
|
251
251
|
};
|
|
252
252
|
}
|
|
253
|
-
let P = Math.
|
|
253
|
+
let P = Math.ceil((r8 - M) / N);
|
|
254
254
|
return {
|
|
255
|
-
from: r8 -
|
|
256
|
-
to: r8 - P * N
|
|
255
|
+
from: r8 - P * N,
|
|
256
|
+
to: r8 - (P - 1) * N
|
|
257
257
|
};
|
|
258
258
|
}
|
|
259
259
|
var CompletionTooltip = class {
|
|
@@ -565,7 +565,9 @@ var ActiveSource = class r3 {
|
|
|
565
565
|
return checkValid(P.validFor, M.state, F, I) ? new r4(this.source, this.explicit, R, P, F, I) : P.update && (P = P.update(P, F, I, new CompletionContext(M.state, L, false))) ? new r4(this.source, this.explicit, R, P, P.from, P.to ?? cur(M.state)) : new ActiveSource(this.source, 1, this.explicit);
|
|
566
566
|
}
|
|
567
567
|
map(M) {
|
|
568
|
-
|
|
568
|
+
if (M.empty) return this;
|
|
569
|
+
let N = this.result.map ? this.result.map(this.result, M) : this.result;
|
|
570
|
+
return N ? new r4(this.source, this.explicit, M.mapPos(this.limit), N, M.mapPos(this.from), M.mapPos(this.to, 1)) : new ActiveSource(this.source, 0);
|
|
569
571
|
}
|
|
570
572
|
touches(r8) {
|
|
571
573
|
return r8.changes.touchesRange(this.from, this.to);
|
|
@@ -744,7 +746,8 @@ var acceptCompletion = (r8) => {
|
|
|
744
746
|
content: '"\xB7\xB7\xB7"',
|
|
745
747
|
opacity: 0.5,
|
|
746
748
|
display: "block",
|
|
747
|
-
textAlign: "center"
|
|
749
|
+
textAlign: "center",
|
|
750
|
+
cursor: "pointer"
|
|
748
751
|
},
|
|
749
752
|
".cm-tooltip.cm-completionInfo": {
|
|
750
753
|
position: "absolute",
|
|
@@ -832,7 +835,9 @@ var acceptCompletion = (r8) => {
|
|
|
832
835
|
let N = [], P = [], F = [], I;
|
|
833
836
|
for (let r8 of M.split(/\r\n?|\n/)) {
|
|
834
837
|
for (; I = /[#$]\{(?:(\d+)(?::([^{}]*))?|((?:\\[{}]|[^{}])*))\}/.exec(r8); ) {
|
|
835
|
-
let M2 = I[1] ? +I[1] : null, L = I[2] || I[3] || "", R = -1
|
|
838
|
+
let M2 = I[1] ? +I[1] : null, L = I[2] || I[3] || "", R = -1;
|
|
839
|
+
M2 === 0 && (M2 = 1e9);
|
|
840
|
+
let z = L.replace(/\\[{}]/g, (r9) => r9[1]);
|
|
836
841
|
for (let r9 = 0; r9 < N.length; r9++) (M2 == null ? z && N[r9].name == z : N[r9].seq == M2) && (R = r9);
|
|
837
842
|
if (R < 0) {
|
|
838
843
|
let r9 = 0;
|
|
@@ -899,19 +904,19 @@ function fieldSelection(r8, M) {
|
|
|
899
904
|
return EditorSelection.create(r8.filter((r9) => r9.field == M).map((r9) => EditorSelection.range(r9.from, r9.to)));
|
|
900
905
|
}
|
|
901
906
|
function snippet(r8) {
|
|
902
|
-
let
|
|
903
|
-
return (r9,
|
|
904
|
-
let { text:
|
|
907
|
+
let N = Snippet.parse(r8);
|
|
908
|
+
return (r9, P, F, I) => {
|
|
909
|
+
let { text: L, ranges: z } = N.instantiate(r9.state, F), { main: B } = r9.state.selection, V = {
|
|
905
910
|
changes: {
|
|
906
|
-
from:
|
|
907
|
-
to:
|
|
908
|
-
insert: Text.of(
|
|
911
|
+
from: F,
|
|
912
|
+
to: I == B.from ? B.to : I,
|
|
913
|
+
insert: Text.of(L)
|
|
909
914
|
},
|
|
910
915
|
scrollIntoView: true,
|
|
911
|
-
annotations:
|
|
916
|
+
annotations: P ? [pickedCompletion.of(P), Transaction.userEvent.of("input.complete")] : void 0
|
|
912
917
|
};
|
|
913
|
-
if (
|
|
914
|
-
let
|
|
918
|
+
if (z.length && (V.selection = fieldSelection(z, 0)), z.some((r10) => r10.field > 0)) {
|
|
919
|
+
let M = new ActiveSnippet(z, 0), N2 = V.effects = [setActive.of(M)];
|
|
915
920
|
r9.state.field(snippetState, false) === void 0 && N2.push(StateEffect.appendConfig.of([
|
|
916
921
|
snippetState,
|
|
917
922
|
addSnippetKeymap,
|
|
@@ -919,7 +924,7 @@ function snippet(r8) {
|
|
|
919
924
|
baseTheme
|
|
920
925
|
]));
|
|
921
926
|
}
|
|
922
|
-
r9.dispatch(r9.state.update(
|
|
927
|
+
r9.dispatch(r9.state.update(V));
|
|
923
928
|
};
|
|
924
929
|
}
|
|
925
930
|
function moveField(r8) {
|
|
@@ -1001,41 +1006,41 @@ function closing(r8) {
|
|
|
1001
1006
|
function config(r8, M) {
|
|
1002
1007
|
return r8.languageDataAt("closeBrackets", M)[0] || defaults;
|
|
1003
1008
|
}
|
|
1004
|
-
var android = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navigator.userAgent), inputHandler = /* @__PURE__ */ EditorView.inputHandler.of((r8, M,
|
|
1009
|
+
var android = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navigator.userAgent), inputHandler = /* @__PURE__ */ EditorView.inputHandler.of((r8, M, N, F) => {
|
|
1005
1010
|
if ((android ? r8.composing : r8.compositionStarted) || r8.state.readOnly) return false;
|
|
1006
1011
|
let I = r8.state.selection.main;
|
|
1007
|
-
if (F.length > 2 || F.length == 2 && codePointSize(codePointAt(F, 0)) == 1 || M != I.from ||
|
|
1012
|
+
if (F.length > 2 || F.length == 2 && codePointSize(codePointAt(F, 0)) == 1 || M != I.from || N != I.to) return false;
|
|
1008
1013
|
let L = insertBracket(r8.state, F);
|
|
1009
1014
|
return L ? (r8.dispatch(L), true) : false;
|
|
1010
1015
|
}), closeBracketsKeymap = [{
|
|
1011
1016
|
key: "Backspace",
|
|
1012
1017
|
run: ({ state: r8, dispatch: M }) => {
|
|
1013
1018
|
if (r8.readOnly) return false;
|
|
1014
|
-
let
|
|
1019
|
+
let N = config(r8, r8.selection.main.head).brackets || defaults.brackets, P = null, F = r8.changeByRange((M2) => {
|
|
1015
1020
|
if (M2.empty) {
|
|
1016
|
-
let
|
|
1017
|
-
for (let
|
|
1021
|
+
let P2 = prevChar(r8.doc, M2.head);
|
|
1022
|
+
for (let F2 of N) if (F2 == P2 && nextChar(r8.doc, M2.head) == closing(codePointAt(F2, 0))) return {
|
|
1018
1023
|
changes: {
|
|
1019
|
-
from: M2.head -
|
|
1020
|
-
to: M2.head +
|
|
1024
|
+
from: M2.head - F2.length,
|
|
1025
|
+
to: M2.head + F2.length
|
|
1021
1026
|
},
|
|
1022
|
-
range: EditorSelection.cursor(M2.head -
|
|
1027
|
+
range: EditorSelection.cursor(M2.head - F2.length)
|
|
1023
1028
|
};
|
|
1024
1029
|
}
|
|
1025
|
-
return { range:
|
|
1030
|
+
return { range: P = M2 };
|
|
1026
1031
|
});
|
|
1027
|
-
return
|
|
1032
|
+
return P || M(r8.update(F, {
|
|
1028
1033
|
scrollIntoView: true,
|
|
1029
1034
|
userEvent: "delete.backward"
|
|
1030
|
-
})), !
|
|
1035
|
+
})), !P;
|
|
1031
1036
|
}
|
|
1032
1037
|
}];
|
|
1033
1038
|
function insertBracket(r8, M) {
|
|
1034
|
-
let
|
|
1035
|
-
for (let
|
|
1036
|
-
let
|
|
1037
|
-
if (M ==
|
|
1038
|
-
if (M ==
|
|
1039
|
+
let N = config(r8, r8.selection.main.head), P = N.brackets || defaults.brackets;
|
|
1040
|
+
for (let F of P) {
|
|
1041
|
+
let I = closing(codePointAt(F, 0));
|
|
1042
|
+
if (M == F) return I == F ? handleSame(r8, F, P.indexOf(F + F + F) > -1, N) : handleOpen(r8, F, I, N.before || defaults.before);
|
|
1043
|
+
if (M == I && closedBracketAt(r8, r8.selection.main.from)) return handleClose(r8, F, I);
|
|
1039
1044
|
}
|
|
1040
1045
|
return null;
|
|
1041
1046
|
}
|
|
@@ -1046,12 +1051,12 @@ function closedBracketAt(r8, M) {
|
|
|
1046
1051
|
}), N;
|
|
1047
1052
|
}
|
|
1048
1053
|
function nextChar(r8, M) {
|
|
1049
|
-
let
|
|
1050
|
-
return
|
|
1054
|
+
let N = r8.sliceString(M, M + 2);
|
|
1055
|
+
return N.slice(0, codePointSize(codePointAt(N, 0)));
|
|
1051
1056
|
}
|
|
1052
1057
|
function prevChar(r8, M) {
|
|
1053
|
-
let
|
|
1054
|
-
return codePointSize(codePointAt(
|
|
1058
|
+
let N = r8.sliceString(M - 2, M);
|
|
1059
|
+
return codePointSize(codePointAt(N, 0)) == N.length ? N : N.slice(1);
|
|
1055
1060
|
}
|
|
1056
1061
|
function handleOpen(r8, M, N, P) {
|
|
1057
1062
|
let F = null, I = r8.changeByRange((I2) => {
|
|
@@ -1095,20 +1100,20 @@ function handleClose(r8, M, N) {
|
|
|
1095
1100
|
userEvent: "input.type"
|
|
1096
1101
|
});
|
|
1097
1102
|
}
|
|
1098
|
-
function handleSame(r8, M,
|
|
1099
|
-
let I =
|
|
1100
|
-
if (!
|
|
1103
|
+
function handleSame(r8, M, P, F) {
|
|
1104
|
+
let I = F.stringPrefixes || defaults.stringPrefixes, L = null, R = r8.changeByRange((F2) => {
|
|
1105
|
+
if (!F2.empty) return {
|
|
1101
1106
|
changes: [{
|
|
1102
1107
|
insert: M,
|
|
1103
|
-
from:
|
|
1108
|
+
from: F2.from
|
|
1104
1109
|
}, {
|
|
1105
1110
|
insert: M,
|
|
1106
|
-
from:
|
|
1111
|
+
from: F2.to
|
|
1107
1112
|
}],
|
|
1108
|
-
effects: closeBracketEffect.of(
|
|
1109
|
-
range: EditorSelection.range(
|
|
1113
|
+
effects: closeBracketEffect.of(F2.to + M.length),
|
|
1114
|
+
range: EditorSelection.range(F2.anchor + M.length, F2.head + M.length)
|
|
1110
1115
|
};
|
|
1111
|
-
let R2 =
|
|
1116
|
+
let R2 = F2.head, z = nextChar(r8.doc, R2), B;
|
|
1112
1117
|
if (z == M) {
|
|
1113
1118
|
if (nodeStart(r8, R2)) return {
|
|
1114
1119
|
changes: {
|
|
@@ -1119,17 +1124,17 @@ function handleSame(r8, M, N, P) {
|
|
|
1119
1124
|
range: EditorSelection.cursor(R2 + M.length)
|
|
1120
1125
|
};
|
|
1121
1126
|
if (closedBracketAt(r8, R2)) {
|
|
1122
|
-
let
|
|
1127
|
+
let N = P && r8.sliceDoc(R2, R2 + M.length * 3) == M + M + M ? M + M + M : M;
|
|
1123
1128
|
return {
|
|
1124
1129
|
changes: {
|
|
1125
1130
|
from: R2,
|
|
1126
|
-
to: R2 +
|
|
1127
|
-
insert:
|
|
1131
|
+
to: R2 + N.length,
|
|
1132
|
+
insert: N
|
|
1128
1133
|
},
|
|
1129
|
-
range: EditorSelection.cursor(R2 +
|
|
1134
|
+
range: EditorSelection.cursor(R2 + N.length)
|
|
1130
1135
|
};
|
|
1131
1136
|
}
|
|
1132
|
-
} else if (
|
|
1137
|
+
} else if (P && r8.sliceDoc(R2 - 2 * M.length, R2) == M + M && (B = canStartStringAt(r8, R2 - 2 * M.length, I)) > -1 && nodeStart(r8, B)) return {
|
|
1133
1138
|
changes: {
|
|
1134
1139
|
insert: M + M + M + M,
|
|
1135
1140
|
from: R2
|
|
@@ -1145,7 +1150,7 @@ function handleSame(r8, M, N, P) {
|
|
|
1145
1150
|
effects: closeBracketEffect.of(R2 + M.length),
|
|
1146
1151
|
range: EditorSelection.cursor(R2 + M.length)
|
|
1147
1152
|
};
|
|
1148
|
-
return { range: L =
|
|
1153
|
+
return { range: L = F2 };
|
|
1149
1154
|
});
|
|
1150
1155
|
return L ? null : r8.update(R, {
|
|
1151
1156
|
scrollIntoView: true,
|
|
@@ -1157,29 +1162,29 @@ function nodeStart(r8, M) {
|
|
|
1157
1162
|
return N.parent && N.from == M;
|
|
1158
1163
|
}
|
|
1159
1164
|
function probablyInString(r8, M, N, P) {
|
|
1160
|
-
let
|
|
1161
|
-
for (let
|
|
1162
|
-
let
|
|
1163
|
-
if (!R || R > -1 && P.indexOf(
|
|
1164
|
-
let M2 =
|
|
1165
|
-
for (; M2 && M2.from ==
|
|
1165
|
+
let I = syntaxTree(r8).resolveInner(M, -1), L = P.reduce((r9, M2) => Math.max(r9, M2.length), 0);
|
|
1166
|
+
for (let F = 0; F < 5; F++) {
|
|
1167
|
+
let F2 = r8.sliceDoc(I.from, Math.min(I.to, I.from + N.length + L)), R = F2.indexOf(N);
|
|
1168
|
+
if (!R || R > -1 && P.indexOf(F2.slice(0, R)) > -1) {
|
|
1169
|
+
let M2 = I.firstChild;
|
|
1170
|
+
for (; M2 && M2.from == I.from && M2.to - M2.from > N.length + R; ) {
|
|
1166
1171
|
if (r8.sliceDoc(M2.to - N.length, M2.to) == N) return false;
|
|
1167
1172
|
M2 = M2.firstChild;
|
|
1168
1173
|
}
|
|
1169
1174
|
return true;
|
|
1170
1175
|
}
|
|
1171
|
-
let z =
|
|
1176
|
+
let z = I.to == M && I.parent;
|
|
1172
1177
|
if (!z) break;
|
|
1173
|
-
|
|
1178
|
+
I = z;
|
|
1174
1179
|
}
|
|
1175
1180
|
return false;
|
|
1176
1181
|
}
|
|
1177
|
-
function canStartStringAt(r8, M,
|
|
1178
|
-
let
|
|
1179
|
-
if (
|
|
1180
|
-
for (let I of
|
|
1181
|
-
let
|
|
1182
|
-
if (r8.sliceDoc(
|
|
1182
|
+
function canStartStringAt(r8, M, P) {
|
|
1183
|
+
let F = r8.charCategorizer(M);
|
|
1184
|
+
if (F(r8.sliceDoc(M - 1, M)) != CharCategory.Word) return M;
|
|
1185
|
+
for (let I of P) {
|
|
1186
|
+
let P2 = M - I.length;
|
|
1187
|
+
if (r8.sliceDoc(P2, M) == I && F(r8.sliceDoc(P2 - 1, P2)) != CharCategory.Word) return P2;
|
|
1183
1188
|
}
|
|
1184
1189
|
return -1;
|
|
1185
1190
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "./dist-
|
|
2
|
-
import { a as htmlLanguage, i as htmlCompletionSourceWith, n as html, o as htmlPlain, r as htmlCompletionSource, t as autoCloseTags } from "./dist-
|
|
3
|
-
import "./dist-
|
|
4
|
-
import "./dist-
|
|
1
|
+
import "./dist-De-GlSAs.js";
|
|
2
|
+
import { a as htmlLanguage, i as htmlCompletionSourceWith, n as html, o as htmlPlain, r as htmlCompletionSource, t as autoCloseTags } from "./dist-BTdrwBWP.js";
|
|
3
|
+
import "./dist-4lVIWUT3.js";
|
|
4
|
+
import "./dist-DgjbnqTg.js";
|
|
5
5
|
export {
|
|
6
6
|
html
|
|
7
7
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { H as tags, V as styleTags, X as parseMixed, i as LocalTokenGroup, r as LRParser, s as LRLanguage, u as LanguageSupport } from "./dist-
|
|
2
|
-
import { n as html } from "./dist-
|
|
3
|
-
import { r as javascriptLanguage } from "./dist-
|
|
1
|
+
import { H as tags, V as styleTags, X as parseMixed, i as LocalTokenGroup, r as LRParser, s as LRLanguage, u as LanguageSupport } from "./dist-De-GlSAs.js";
|
|
2
|
+
import { n as html } from "./dist-BTdrwBWP.js";
|
|
3
|
+
import { r as javascriptLanguage } from "./dist-DgjbnqTg.js";
|
|
4
4
|
var parser = /* @__PURE__ */ LRParser.deserialize({
|
|
5
5
|
version: 14,
|
|
6
6
|
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",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { H as tags, O as indentNodeProp, S as foldInside, V as styleTags, h as continuedIndent, n as ExternalTokenizer, r as LRParser, s as LRLanguage, u as LanguageSupport, w as foldNodeProp } from "./dist-
|
|
2
|
-
import { i as defineCSSCompletionSource } from "./dist-
|
|
1
|
+
import { H as tags, O as indentNodeProp, S as foldInside, V as styleTags, h as continuedIndent, n as ExternalTokenizer, r as LRParser, s as LRLanguage, u as LanguageSupport, w as foldNodeProp } from "./dist-De-GlSAs.js";
|
|
2
|
+
import { i as defineCSSCompletionSource } from "./dist-4lVIWUT3.js";
|
|
3
3
|
var descendantOp = 110, Unit = 1, openArgList = 2, space = [
|
|
4
4
|
9,
|
|
5
5
|
10,
|