@abyss-project/commons-front-core 1.0.78 → 1.0.79
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/apl-B2DGVGxc.js +76 -0
- package/dist/asciiarmor-2LVJmxlE.js +34 -0
- package/dist/asn1-jKiBa2Ya.js +95 -0
- package/dist/asterisk-DS281yxp.js +271 -0
- package/dist/brainfuck-C_p9pTT8.js +34 -0
- package/dist/clike-DGTaUp48.js +620 -0
- package/dist/clojure-CCKyeQKf.js +800 -0
- package/dist/cmake-CuaCgAKt.js +28 -0
- package/dist/cobol-BlTKFDRj.js +72 -0
- package/dist/coffeescript-BVCvwO8I.js +179 -0
- package/dist/commonlisp-D_kxz07b.js +75 -0
- package/dist/components/Inputs/AbyssMarkdownEditor/AbyssMarkdownEditor.component.d.ts +12 -0
- package/dist/components/Inputs/AbyssMarkdownEditor/index.d.ts +1 -0
- package/dist/components/Inputs/index.d.ts +1 -0
- package/dist/components/UserAvatarList/UserAvatarList.component.d.ts +1 -0
- package/dist/crystal-D309uH6_.js +217 -0
- package/dist/css-BkF-NPzE.js +1553 -0
- package/dist/cypher-BMq4Fwjl.js +68 -0
- package/dist/d-BZcgY6La.js +127 -0
- package/dist/diff-Cg9d_RX2.js +18 -0
- package/dist/dockerfile-DIy8NleC.js +194 -0
- package/dist/dtd-CtLokQ-U.js +84 -0
- package/dist/dylan-QYeExnWK.js +234 -0
- package/dist/ebnf-DUPDuY4r.js +78 -0
- package/dist/ecl-CiXN-g_D.js +121 -0
- package/dist/eiffel-yQhjl4T1.js +110 -0
- package/dist/elm-CNT9vbN0.js +108 -0
- package/dist/erlang-CFOYdy9e.js +487 -0
- package/dist/factor-DDOC7X6P.js +65 -0
- package/dist/fcl-CPC2WYrI.js +103 -0
- package/dist/forth-BmxRyE9S.js +60 -0
- package/dist/fortran-9bvPyrOW.js +442 -0
- package/dist/gas-cpmYfFX2.js +183 -0
- package/dist/gherkin-CJuwpceU.js +34 -0
- package/dist/groovy-DZeT_VM-.js +146 -0
- package/dist/haskell-Bvt3Qq1t.js +375 -0
- package/dist/haxe-70NVW1pR.js +359 -0
- package/dist/hooks/use-rich-intl.hook.d.ts +16 -0
- package/dist/http-D9LttvKF.js +44 -0
- package/dist/idl-B6TRFYjl.js +947 -0
- package/dist/index-9egsgAHT.js +270 -0
- package/dist/index-B69061qw.js +960 -0
- package/dist/index-BCByrcK9.js +251 -0
- package/dist/index-BUmdHazu.js +309 -0
- package/dist/index-C28luczq.js +1874 -0
- package/dist/index-CGxD0A35.js +119980 -0
- package/dist/index-CZCmaRdp.js +342 -0
- package/dist/index-CfPctFz5.js +612 -0
- package/dist/index-CtQzdlXs.js +59 -0
- package/dist/index-CyPdsqgo.js +554 -0
- package/dist/index-CyuTbY2M.js +74 -0
- package/dist/index-D4sZw8ip.js +953 -0
- package/dist/index-DPhKNuL8.js +136 -0
- package/dist/index-DYeWfUd8.js +101 -0
- package/dist/index-D_2jl__Y.js +1307 -0
- package/dist/index-D_42NKKL.js +302 -0
- package/dist/index-Degg658z.js +76 -0
- package/dist/index-DtCDUibS.js +94 -0
- package/dist/index-DvQ7i0Zy.js +289 -0
- package/dist/index-Eqysn_kz.js +552 -0
- package/dist/index-WXxYe9rO.js +157 -0
- package/dist/index-a9n9jQdP.js +138 -0
- package/dist/index.css +1 -0
- package/dist/index.js +68 -67
- package/dist/javascript-C2yteZeJ.js +691 -0
- package/dist/jinja2-DnB6dQmV.js +154 -0
- package/dist/julia-DpvXAuO6.js +241 -0
- package/dist/livescript-CanGTf8u.js +272 -0
- package/dist/lua-XplVlWi_.js +217 -0
- package/dist/mathematica-jaRHnSxC.js +35 -0
- package/dist/mbox-BctzC1hL.js +76 -0
- package/dist/mirc-CFBPAOaF.js +72 -0
- package/dist/mllike-BSnXJBGA.js +272 -0
- package/dist/modelica-vUgVs--1.js +93 -0
- package/dist/mscgen-Cpl0NYLN.js +104 -0
- package/dist/mumps-CQoS1kWX.js +25 -0
- package/dist/nginx-zDPm3Z74.js +89 -0
- package/dist/nsis-fePjrhq7.js +62 -0
- package/dist/ntriples-CsNjv2QF.js +79 -0
- package/dist/octave-C8PmmSRH.js +143 -0
- package/dist/oz-Ce8aN8oE.js +151 -0
- package/dist/pascal-De0D6mP7.js +77 -0
- package/dist/perl-B4bSCe1C.js +915 -0
- package/dist/pig-D24Z8EXi.js +54 -0
- package/dist/powershell-DkYVfTzP.js +249 -0
- package/dist/properties-Dn9wna3M.js +26 -0
- package/dist/protobuf-BPIjwpzm.js +49 -0
- package/dist/pug-CwAQJzGR.js +248 -0
- package/dist/puppet-nyd4dhjf.js +45 -0
- package/dist/python-BkR3uSy8.js +313 -0
- package/dist/q-DXjKs-tC.js +83 -0
- package/dist/r-LKEuhEGI.js +104 -0
- package/dist/rpm-IznJm2Xc.js +57 -0
- package/dist/ruby-CcYfvIk6.js +228 -0
- package/dist/sas-7E8yHoCW.js +105 -0
- package/dist/scheme-DjibxsNh.js +124 -0
- package/dist/shell-C0C2sNA_.js +182 -0
- package/dist/sieve-Bwz7vjP5.js +72 -0
- package/dist/simple-mode-B0dvCdAA.js +89 -0
- package/dist/smalltalk-Bhddl2pB.js +48 -0
- package/dist/solr-BNlsLglM.js +41 -0
- package/dist/sparql-FarWu_Gb.js +197 -0
- package/dist/spreadsheet-C-cy4P5N.js +49 -0
- package/dist/sql-CfG5lQ3l.js +282 -0
- package/dist/stex-Du4h4KAU.js +129 -0
- package/dist/stylus-CAdqWld3.js +250 -0
- package/dist/swift-DSxqR9R6.js +230 -0
- package/dist/tcl-xfoLljhY.js +81 -0
- package/dist/textile-D1AWE-pc.js +295 -0
- package/dist/tiddlywiki-5wqsXtSk.js +155 -0
- package/dist/tiki-__Kn3CeS.js +181 -0
- package/dist/toml-BHiuTcfn.js +49 -0
- package/dist/troff-D2UO-fKf.js +35 -0
- package/dist/ttcn-Bsa4sfRm.js +123 -0
- package/dist/ttcn-cfg-Bac_acMi.js +88 -0
- package/dist/turtle-xwJUxoPV.js +80 -0
- package/dist/vb-c2kQGd6-.js +74 -0
- package/dist/vbscript-1f_Dhg5H.js +324 -0
- package/dist/velocity-DJd0pTTC.js +96 -0
- package/dist/verilog-CiS1jyi5.js +262 -0
- package/dist/vhdl-T9HkrbI2.js +106 -0
- package/dist/{web-CUSghcaL.js → web-BapD_eVq.js} +1 -1
- package/dist/webidl-CjfDENEo.js +155 -0
- package/dist/xquery-BUQdORAS.js +422 -0
- package/dist/yacas-C0absKBh.js +73 -0
- package/dist/z80-Pki2zAjW.js +61 -0
- package/package.json +8 -3
- package/dist/index-BBvXD6Jq.js +0 -54682
|
@@ -0,0 +1,251 @@
|
|
|
1
|
+
import { E as d, L as y, l as b, a as _, p as g, e as u, s as S, i as T, f as k, g as W, t } from "./index-CGxD0A35.js";
|
|
2
|
+
import { html as j } from "./index-D4sZw8ip.js";
|
|
3
|
+
import { L as X, E as p } from "./index-D_2jl__Y.js";
|
|
4
|
+
const Y = 1, U = 2, G = 3, R = 179, z = 4, v = 180, x = 5, Z = 181, V = 6;
|
|
5
|
+
function E(O) {
|
|
6
|
+
return O >= 65 && O <= 90 || O >= 97 && O <= 122;
|
|
7
|
+
}
|
|
8
|
+
const F = /* @__PURE__ */ new p((O) => {
|
|
9
|
+
let a = O.pos;
|
|
10
|
+
for (; ; ) {
|
|
11
|
+
let { next: e } = O;
|
|
12
|
+
if (e < 0)
|
|
13
|
+
break;
|
|
14
|
+
if (e == 123) {
|
|
15
|
+
let r = O.peek(1);
|
|
16
|
+
if (r == 123) {
|
|
17
|
+
if (O.pos > a)
|
|
18
|
+
break;
|
|
19
|
+
O.acceptToken(Y, 2);
|
|
20
|
+
return;
|
|
21
|
+
} else if (r == 37) {
|
|
22
|
+
if (O.pos > a)
|
|
23
|
+
break;
|
|
24
|
+
let $ = 2, i = 2;
|
|
25
|
+
for (; ; ) {
|
|
26
|
+
let n = O.peek($);
|
|
27
|
+
if (n == 32 || n == 10)
|
|
28
|
+
++$;
|
|
29
|
+
else if (n == 35)
|
|
30
|
+
for (++$; ; ) {
|
|
31
|
+
let Q = O.peek($);
|
|
32
|
+
if (Q < 0 || Q == 10)
|
|
33
|
+
break;
|
|
34
|
+
$++;
|
|
35
|
+
}
|
|
36
|
+
else if (n == 45 && i == 2)
|
|
37
|
+
i = ++$;
|
|
38
|
+
else {
|
|
39
|
+
let Q = n == 101 && O.peek($ + 1) == 110 && O.peek($ + 2) == 100;
|
|
40
|
+
O.acceptToken(Q ? G : U, i);
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
if (O.advance(), e == 10)
|
|
47
|
+
break;
|
|
48
|
+
}
|
|
49
|
+
O.pos > a && O.acceptToken(R);
|
|
50
|
+
});
|
|
51
|
+
function h(O, a, e) {
|
|
52
|
+
return new p((r) => {
|
|
53
|
+
let $ = r.pos;
|
|
54
|
+
for (; ; ) {
|
|
55
|
+
let { next: i } = r;
|
|
56
|
+
if (i == 123 && r.peek(1) == 37) {
|
|
57
|
+
let n = 2;
|
|
58
|
+
for (; ; n++) {
|
|
59
|
+
let s = r.peek(n);
|
|
60
|
+
if (s != 32 && s != 10)
|
|
61
|
+
break;
|
|
62
|
+
}
|
|
63
|
+
let Q = "";
|
|
64
|
+
for (; ; n++) {
|
|
65
|
+
let s = r.peek(n);
|
|
66
|
+
if (!E(s))
|
|
67
|
+
break;
|
|
68
|
+
Q += String.fromCharCode(s);
|
|
69
|
+
}
|
|
70
|
+
if (Q == O) {
|
|
71
|
+
if (r.pos > $)
|
|
72
|
+
break;
|
|
73
|
+
r.acceptToken(e, 2);
|
|
74
|
+
break;
|
|
75
|
+
}
|
|
76
|
+
} else if (i < 0)
|
|
77
|
+
break;
|
|
78
|
+
if (r.advance(), i == 10)
|
|
79
|
+
break;
|
|
80
|
+
}
|
|
81
|
+
r.pos > $ && r.acceptToken(a);
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
const D = /* @__PURE__ */ h("endcomment", Z, x), C = /* @__PURE__ */ h("endraw", v, z), N = /* @__PURE__ */ new p((O) => {
|
|
85
|
+
if (O.next == 35) {
|
|
86
|
+
for (O.advance(); !(O.next == 10 || O.next < 0 || (O.next == 37 || O.next == 125) && O.peek(1) == 125); )
|
|
87
|
+
O.advance();
|
|
88
|
+
O.acceptToken(V);
|
|
89
|
+
}
|
|
90
|
+
}), I = { __proto__: null, contains: 32, or: 36, and: 36, true: 50, false: 50, empty: 52, forloop: 54, tablerowloop: 56, continue: 58, in: 128, with: 194, for: 196, as: 198, if: 234, endif: 238, unless: 244, endunless: 248, elsif: 252, else: 256, case: 262, endcase: 266, when: 270, endfor: 278, tablerow: 284, endtablerow: 288, break: 292, cycle: 298, echo: 302, render: 306, include: 310, assign: 314, capture: 320, endcapture: 324, increment: 328, decrement: 332 }, L = { __proto__: null, if: 84, endif: 88, elsif: 92, else: 96, unless: 102, endunless: 106, case: 112, endcase: 116, when: 120, for: 126, endfor: 136, tablerow: 142, endtablerow: 146, break: 150, continue: 154, cycle: 158, comment: 164, endcomment: 170, raw: 176, endraw: 182, echo: 186, render: 190, include: 202, assign: 206, capture: 212, endcapture: 216, increment: 220, decrement: 224, liquid: 228 }, A = /* @__PURE__ */ X.deserialize({
|
|
91
|
+
version: 14,
|
|
92
|
+
states: "GlQYOPOOOOOP'#Fz'#FzOeOaO'#CdOsQhO'#CfO!bQxO'#DRO#{OPO'#DUO$ZOPO'#D_O$iOPO'#DdO$wOPO'#DkO%VOPO'#DsO%eOSO'#EOO%jOQO'#EUO%oOPO'#EhOOOP'#G_'#G_OOOP'#G['#G[OOOP'#Fy'#FyQYOPOOOOOP-E9x-E9xOOQW'#Cg'#CgO&`Q!jO,59QO&gQ!jO'#G]OsQhO'#CsOOQW'#G]'#G]OOOP,59m,59mO)PQhO,59mOsQhO,59qOsQhO,59uO)ZQhO,59wOsQhO,59zOsQhO,5:POsQhO,5:TO!]QhO,5:WO!]QhO,5:`O)`QhO,5:dO)eQhO,5:fO)jQhO,5:hO)o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%tQ$n!|U&U$n&j'WQ&j%mR'W&uQ&z&WQ&|&XW'Y&z&|'`'aQ'`'SR'a'TQ$s#RW&Z$s&m'O'bQ&m%pQ'O&]R'b'UQ!aYR$T!aQ!dZR$W!dQ$z#VR&`$zQ#e}Q%U#]Q%X#^Q%[#_Q%_#`Q%b#aQ%e#b_%g#e%U%X%[%_%b%eQ&q%rR'V&qm_OTUVWX[`!Q!T!W!Z!^!gQcRQ!seQ!thQ!wiQ!xjQ!zlQ!{mQ!|nQ#UvQ#VwQ#WxQ#XyQ#YzQ#Z{Q#[|Q$^!kQ$_!lQ$d!qQ$e!rQ%i#fQ%j#gQ%k#hQ%l#jQ%m#kQ%q#qQ%r#rQ%s#sQ%t#tQ%u#uQ%v#vQ%w#wQ&R$fQ&T$mQ&W$pQ&X$qQ&b${Q&u&QQ'S&kQ'T&lQ'^'QR'c'Xm#d}#]#^#_#`#a#b#e%U%X%[%_%b%e",
|
|
95
|
+
nodeNames: "⚠ {{ {% {% {% {% InlineComment Template Text }} Interpolation VariableName MemberExpression . PropertyName BinaryExpression contains CompareOp LogicOp AssignmentExpression AssignOp ) ( RangeExpression .. BooleanLiteral empty forloop tablerowloop continue StringLiteral NumberLiteral Filter | FilterName : , Tag TagName %} IfDirective Tag if EndTag endif Tag elsif Tag else UnlessDirective Tag unless EndTag endunless CaseDirective Tag case EndTag endcase Tag when ForDirective Tag for in Parameter ParameterName EndTag endfor TableDirective Tag tablerow EndTag endtablerow Tag break Tag continue Tag cycle Comment Tag comment CommentText EndTag endcomment RawDirective Tag raw RawText EndTag endraw Tag echo Tag render RenderParameter with for as Tag include Tag assign CaptureDirective Tag capture EndTag endcapture Tag increment Tag decrement Tag liquid IfDirective Tag if EndTag endif UnlessDirective Tag unless EndTag endunless Tag elsif Tag else CaseDirective Tag case EndTag endcase Tag when ForDirective Tag EndTag endfor TableDirective Tag tablerow EndTag endtablerow Tag break Tag Tag cycle Tag echo Tag render Tag include Tag assign CaptureDirective Tag capture EndTag endcapture Tag increment Tag decrement",
|
|
96
|
+
maxTerm: 188,
|
|
97
|
+
nodeProps: [
|
|
98
|
+
["closedBy", 1, "}}", -4, 2, 3, 4, 5, "%}", 22, ")"],
|
|
99
|
+
["openedBy", 9, "{{", 21, "(", 39, "{%"],
|
|
100
|
+
["group", -12, 11, 12, 15, 19, 23, 25, 26, 27, 28, 29, 30, 31, "Expression"]
|
|
101
|
+
],
|
|
102
|
+
skippedNodes: [0, 6],
|
|
103
|
+
repeatNodeCount: 11,
|
|
104
|
+
tokenData: ")T~RkXY!vYZ!v]^!vpq!vqr#Xrs#duv$Uwx$axy$|yz%R{|%W|}&r}!O&w!O!P'T!Q![&a![!]'e!^!_'j!_!`'r!`!a'j!c!}'z#R#S'z#T#o'z#p#q(s#q#r(x%W;'S'z;'S;:j(m<%lO'z~!{S$}~XY!vYZ!v]^!vpq!v~#[P!_!`#_~#dOa~~#gUOY#dZr#drs#ys;'S#d;'S;=`$O<%lO#d~$OOn~~$RP;=`<%l#d~$XP#q#r$[~$aOw~~$dUOY$aZw$awx#yx;'S$a;'S;=`$v<%lO$a~$yP;=`<%l$a~%ROf~~%WOe~P%ZQ!O!P%a!Q![&aP%dP!Q![%gP%lRoP!Q![%g!g!h%u#X#Y%uP%xR{|&R}!O&R!Q![&XP&UP!Q![&XP&^PoP!Q![&XP&fSoP!O!P%a!Q![&a!g!h%u#X#Y%u~&wOt~~&zRuv$U!O!P%a!Q![&a~'YQ]S!O!P'`!Q![%g~'eOh~~'jOs~~'oPa~!_!`#_~'wPd~!_!`#__(TW^WvQ%QT}!O'z!Q!['z!c!}'z#R#S'z#T#o'z%W;'S'z;'S;:j(m<%lO'z_(pP;=`<%l'z~(xOq~~({P#q#r)O~)TOX~",
|
|
105
|
+
tokenizers: [F, C, D, N, 0, 1, 2, 3],
|
|
106
|
+
topRules: { Template: [0, 7] },
|
|
107
|
+
specialized: [{ term: 186, get: (O) => I[O] || -1 }, { term: 38, get: (O) => L[O] || -1 }],
|
|
108
|
+
tokenPrec: 0
|
|
109
|
+
});
|
|
110
|
+
function o(O, a) {
|
|
111
|
+
return O.split(" ").map((e) => ({ label: e, type: a }));
|
|
112
|
+
}
|
|
113
|
+
const m = /* @__PURE__ */ o("abs append at_least at_most capitalize ceil compact concat date default divided_by downcase escape escape_once first floor join last lstrip map minus modulo newline_to_br plus prepend remove remove_first replace replace_first reverse round rstrip size slice sort sort_natural split strip strip_html strip_newlines sum times truncate truncatewords uniq upcase url_decode url_encode where", "function"), q = /* @__PURE__ */ o("cycle comment endcomment raw endraw echo increment decrement liquid if elsif else endif unless endunless case endcase for endfor tablerow endtablerow break continue assign capture endcapture render include", "keyword"), f = /* @__PURE__ */ o("empty forloop tablerowloop in with as", "keyword"), H = /* @__PURE__ */ o("first index index0 last length rindex", "property"), B = /* @__PURE__ */ o("col col0 col_first col_last first index index0 last length rindex rindex0 row", "property");
|
|
114
|
+
function M(O) {
|
|
115
|
+
var a;
|
|
116
|
+
let { state: e, pos: r } = O, $ = u(e).resolveInner(r, -1).enterUnfinishedNodesBefore(r), i = ((a = $.childBefore(r)) === null || a === void 0 ? void 0 : a.name) || $.name;
|
|
117
|
+
if ($.name == "FilterName")
|
|
118
|
+
return { type: "filter", node: $ };
|
|
119
|
+
if (O.explicit && i == "|")
|
|
120
|
+
return { type: "filter" };
|
|
121
|
+
if ($.name == "TagName")
|
|
122
|
+
return { type: "tag", node: $ };
|
|
123
|
+
if (O.explicit && i == "{%")
|
|
124
|
+
return { type: "tag" };
|
|
125
|
+
if ($.name == "PropertyName" && $.parent.name == "MemberExpression")
|
|
126
|
+
return { type: "property", node: $, target: $.parent };
|
|
127
|
+
if ($.name == "." && $.parent.name == "MemberExpression")
|
|
128
|
+
return { type: "property", target: $.parent };
|
|
129
|
+
if ($.name == "MemberExpression" && i == ".")
|
|
130
|
+
return { type: "property", target: $ };
|
|
131
|
+
if ($.name == "VariableName")
|
|
132
|
+
return { type: "expression", from: $.from };
|
|
133
|
+
let n = O.matchBefore(/[\w\u00c0-\uffff]+$/);
|
|
134
|
+
return n ? { type: "expression", from: n.from } : O.explicit && $.name != "CommentText" && $.name != "StringLiteral" && $.name != "NumberLiteral" && $.name != "InlineComment" ? { type: "expression" } : null;
|
|
135
|
+
}
|
|
136
|
+
function K(O, a, e, r) {
|
|
137
|
+
let $ = [];
|
|
138
|
+
for (; ; ) {
|
|
139
|
+
let i = a.getChild("Expression");
|
|
140
|
+
if (!i)
|
|
141
|
+
return [];
|
|
142
|
+
if (i.name == "forloop")
|
|
143
|
+
return $.length ? [] : H;
|
|
144
|
+
if (i.name == "tablerowloop")
|
|
145
|
+
return $.length ? [] : B;
|
|
146
|
+
if (i.name == "VariableName") {
|
|
147
|
+
$.unshift(O.sliceDoc(i.from, i.to));
|
|
148
|
+
break;
|
|
149
|
+
} else if (i.name == "MemberExpression") {
|
|
150
|
+
let n = i.getChild("PropertyName");
|
|
151
|
+
n && $.unshift(O.sliceDoc(n.from, n.to)), a = i;
|
|
152
|
+
} else
|
|
153
|
+
return [];
|
|
154
|
+
}
|
|
155
|
+
return r ? r($, O, e) : [];
|
|
156
|
+
}
|
|
157
|
+
function J(O = {}) {
|
|
158
|
+
let a = O.filters ? O.filters.concat(m) : m, e = O.tags ? O.tags.concat(q) : q, r = O.variables ? O.variables.concat(f) : f, { properties: $ } = O;
|
|
159
|
+
return (i) => {
|
|
160
|
+
var n;
|
|
161
|
+
let Q = M(i);
|
|
162
|
+
if (!Q)
|
|
163
|
+
return null;
|
|
164
|
+
let s = (n = Q.from) !== null && n !== void 0 ? n : Q.node ? Q.node.from : i.pos, l;
|
|
165
|
+
return Q.type == "filter" ? l = a : Q.type == "tag" ? l = e : Q.type == "expression" ? l = r : l = K(i.state, Q.target, i, $), l.length ? { options: l, from: s, validFor: /^[\w\u00c0-\uffff]*$/ } : null;
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
const OO = /* @__PURE__ */ d.inputHandler.of((O, a, e, r) => r != "%" || a != e || O.state.doc.sliceString(a - 1, e + 1) != "{}" ? !1 : (O.dispatch(O.state.changeByRange(($) => ({
|
|
169
|
+
changes: { from: $.from, to: $.to, insert: "%%" },
|
|
170
|
+
range: b.cursor($.from + 1)
|
|
171
|
+
})), {
|
|
172
|
+
scrollIntoView: !0,
|
|
173
|
+
userEvent: "input.type"
|
|
174
|
+
}), !0));
|
|
175
|
+
function c(O) {
|
|
176
|
+
return (a) => {
|
|
177
|
+
let e = O.test(a.textAfter);
|
|
178
|
+
return a.lineIndent(a.node.from) + (e ? 0 : a.unit);
|
|
179
|
+
};
|
|
180
|
+
}
|
|
181
|
+
const $O = /* @__PURE__ */ _.define({
|
|
182
|
+
name: "liquid",
|
|
183
|
+
parser: /* @__PURE__ */ A.configure({
|
|
184
|
+
props: [
|
|
185
|
+
/* @__PURE__ */ S({
|
|
186
|
+
"cycle comment endcomment raw endraw echo increment decrement liquid in with as": t.keyword,
|
|
187
|
+
"empty forloop tablerowloop": t.atom,
|
|
188
|
+
"if elsif else endif unless endunless case endcase for endfor tablerow endtablerow break continue": t.controlKeyword,
|
|
189
|
+
"assign capture endcapture": t.definitionKeyword,
|
|
190
|
+
contains: t.operatorKeyword,
|
|
191
|
+
"render include": t.moduleKeyword,
|
|
192
|
+
VariableName: t.variableName,
|
|
193
|
+
TagName: t.tagName,
|
|
194
|
+
FilterName: /* @__PURE__ */ t.function(t.variableName),
|
|
195
|
+
PropertyName: t.propertyName,
|
|
196
|
+
CompareOp: t.compareOperator,
|
|
197
|
+
AssignOp: t.definitionOperator,
|
|
198
|
+
LogicOp: t.logicOperator,
|
|
199
|
+
NumberLiteral: t.number,
|
|
200
|
+
StringLiteral: t.string,
|
|
201
|
+
BooleanLiteral: t.bool,
|
|
202
|
+
InlineComment: t.lineComment,
|
|
203
|
+
CommentText: t.blockComment,
|
|
204
|
+
"{% %} {{ }}": t.brace,
|
|
205
|
+
"( )": t.paren,
|
|
206
|
+
".": t.derefOperator,
|
|
207
|
+
", .. : |": t.punctuation
|
|
208
|
+
}),
|
|
209
|
+
/* @__PURE__ */ T.add({
|
|
210
|
+
Tag: /* @__PURE__ */ W({ closing: "%}" }),
|
|
211
|
+
"UnlessDirective ForDirective TablerowDirective CaptureDirective": /* @__PURE__ */ c(/^\s*(\{%-?\s*)?end\w/),
|
|
212
|
+
IfDirective: /* @__PURE__ */ c(/^\s*(\{%-?\s*)?(endif|else|elsif)\b/),
|
|
213
|
+
CaseDirective: /* @__PURE__ */ c(/^\s*(\{%-?\s*)?(endcase|when)\b/)
|
|
214
|
+
}),
|
|
215
|
+
/* @__PURE__ */ k.add({
|
|
216
|
+
"UnlessDirective ForDirective TablerowDirective CaptureDirective IfDirective CaseDirective RawDirective Comment"(O) {
|
|
217
|
+
let a = O.firstChild, e = O.lastChild;
|
|
218
|
+
return !a || a.name != "Tag" ? null : { from: a.to, to: e.name == "EndTag" ? e.from : O.to };
|
|
219
|
+
}
|
|
220
|
+
})
|
|
221
|
+
]
|
|
222
|
+
}),
|
|
223
|
+
languageData: {
|
|
224
|
+
commentTokens: { line: "#" },
|
|
225
|
+
indentOnInput: /^\s*{%-?\s*(?:end|elsif|else|when|)$/
|
|
226
|
+
}
|
|
227
|
+
}), P = /* @__PURE__ */ j();
|
|
228
|
+
function w(O) {
|
|
229
|
+
return $O.configure({
|
|
230
|
+
wrap: g((a) => a.type.isTop ? {
|
|
231
|
+
parser: O.parser,
|
|
232
|
+
overlay: (e) => e.name == "Text" || e.name == "RawText"
|
|
233
|
+
} : null)
|
|
234
|
+
}, "liquid");
|
|
235
|
+
}
|
|
236
|
+
const aO = /* @__PURE__ */ w(P.language);
|
|
237
|
+
function tO(O = {}) {
|
|
238
|
+
let a = O.base || P, e = a.language == P.language ? aO : w(a.language);
|
|
239
|
+
return new y(e, [
|
|
240
|
+
a.support,
|
|
241
|
+
e.data.of({ autocomplete: J(O) }),
|
|
242
|
+
a.language.data.of({ closeBrackets: { brackets: ["{"] } }),
|
|
243
|
+
OO
|
|
244
|
+
]);
|
|
245
|
+
}
|
|
246
|
+
export {
|
|
247
|
+
OO as closePercentBrace,
|
|
248
|
+
tO as liquid,
|
|
249
|
+
J as liquidCompletionSource,
|
|
250
|
+
aO as liquidLanguage
|
|
251
|
+
};
|
|
@@ -0,0 +1,309 @@
|
|
|
1
|
+
import { L as k, E as A, C as N } from "./index-D_2jl__Y.js";
|
|
2
|
+
import { s as I, t as p, E as Y, a as j, L as U, e as G, l as Z, i as B, f as D, G as M } from "./index-CGxD0A35.js";
|
|
3
|
+
const h = 1, F = 2, L = 3, K = 4, H = 5, J = 36, ee = 37, te = 38, Oe = 11, oe = 13;
|
|
4
|
+
function re(e) {
|
|
5
|
+
return e == 45 || e == 46 || e == 58 || e >= 65 && e <= 90 || e == 95 || e >= 97 && e <= 122 || e >= 161;
|
|
6
|
+
}
|
|
7
|
+
function ne(e) {
|
|
8
|
+
return e == 9 || e == 10 || e == 13 || e == 32;
|
|
9
|
+
}
|
|
10
|
+
let Q = null, V = null, X = 0;
|
|
11
|
+
function W(e, t) {
|
|
12
|
+
let o = e.pos + t;
|
|
13
|
+
if (V == e && X == o) return Q;
|
|
14
|
+
for (; ne(e.peek(t)); ) t++;
|
|
15
|
+
let O = "";
|
|
16
|
+
for (; ; ) {
|
|
17
|
+
let r = e.peek(t);
|
|
18
|
+
if (!re(r)) break;
|
|
19
|
+
O += String.fromCharCode(r), t++;
|
|
20
|
+
}
|
|
21
|
+
return V = e, X = o, Q = O || null;
|
|
22
|
+
}
|
|
23
|
+
function _(e, t) {
|
|
24
|
+
this.name = e, this.parent = t;
|
|
25
|
+
}
|
|
26
|
+
const ae = new N({
|
|
27
|
+
start: null,
|
|
28
|
+
shift(e, t, o, O) {
|
|
29
|
+
return t == h ? new _(W(O, 1) || "", e) : e;
|
|
30
|
+
},
|
|
31
|
+
reduce(e, t) {
|
|
32
|
+
return t == Oe && e ? e.parent : e;
|
|
33
|
+
},
|
|
34
|
+
reuse(e, t, o, O) {
|
|
35
|
+
let r = t.type.id;
|
|
36
|
+
return r == h || r == oe ? new _(W(O, 1) || "", e) : e;
|
|
37
|
+
},
|
|
38
|
+
strict: !1
|
|
39
|
+
}), le = new A((e, t) => {
|
|
40
|
+
if (e.next == 60) {
|
|
41
|
+
if (e.advance(), e.next == 47) {
|
|
42
|
+
e.advance();
|
|
43
|
+
let o = W(e, 0);
|
|
44
|
+
if (!o) return e.acceptToken(H);
|
|
45
|
+
if (t.context && o == t.context.name) return e.acceptToken(F);
|
|
46
|
+
for (let O = t.context; O; O = O.parent) if (O.name == o) return e.acceptToken(L, -2);
|
|
47
|
+
e.acceptToken(K);
|
|
48
|
+
} else if (e.next != 33 && e.next != 63)
|
|
49
|
+
return e.acceptToken(h);
|
|
50
|
+
}
|
|
51
|
+
}, { contextual: !0 });
|
|
52
|
+
function y(e, t) {
|
|
53
|
+
return new A((o) => {
|
|
54
|
+
let O = 0, r = t.charCodeAt(0);
|
|
55
|
+
e: for (; !(o.next < 0); o.advance(), O++)
|
|
56
|
+
if (o.next == r) {
|
|
57
|
+
for (let a = 1; a < t.length; a++)
|
|
58
|
+
if (o.peek(a) != t.charCodeAt(a)) continue e;
|
|
59
|
+
break;
|
|
60
|
+
}
|
|
61
|
+
O && o.acceptToken(e);
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
const se = y(J, "-->"), ie = y(ee, "?>"), ce = y(te, "]]>"), me = I({
|
|
65
|
+
Text: p.content,
|
|
66
|
+
"StartTag StartCloseTag EndTag SelfCloseEndTag": p.angleBracket,
|
|
67
|
+
TagName: p.tagName,
|
|
68
|
+
"MismatchedCloseTag/TagName": [p.tagName, p.invalid],
|
|
69
|
+
AttributeName: p.attributeName,
|
|
70
|
+
AttributeValue: p.attributeValue,
|
|
71
|
+
Is: p.definitionOperator,
|
|
72
|
+
"EntityReference CharacterReference": p.character,
|
|
73
|
+
Comment: p.blockComment,
|
|
74
|
+
ProcessingInst: p.processingInstruction,
|
|
75
|
+
DoctypeDecl: p.documentMeta,
|
|
76
|
+
Cdata: p.special(p.string)
|
|
77
|
+
}),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|
80
|
+
stateData: ")z~OPQOSVOTWOVWOWWOXWOiXOyPO!QTO!SUO~OvZOx]O~O^`Oz^O~OPQOQcOSVOTWOVWOWWOXWOyPO!QTO!SUO~ORdO~P!SOteO!PgO~OuhO!RjO~O^lOz^O~OvZOxoO~O^qOz^O~O[vO`sOdwOz^O~ORyO~P!SO^{Oz^O~OteO!P}O~OuhO!R!PO~O^!QOz^O~O[!SOz^O~O[!VO`sOd!WOz^O~Oa!YOz^O~Oz^O[mX`mXdmX~O[!VO`sOd!WO~O^!]Oz^O~O[!_Oz^O~O[!aOz^O~O[!cO`sOd!dOz^O~O[!cO`sOd!dO~Oa!eOz^O~Oz^O{!gO}!hO~Oz^O[ma`madma~O[!kOz^O~O[!lOz^O~O[!mO`sOd!nO~OW!qOX!qO{!sO|!qO~OW!tOX!tO}!sO!O!tO~O[!vOz^O~OW!qOX!qO{!yO|!qO~OW!tOX!tO}!yO!O!tO~O",
|
|
81
|
+
goto: "%cxPPPPPPPPPPyyP!PP!VPP!`!jP!pyyyP!v!|#S$[$k$q$w$}%TPPPP%ZXWORYbXRORYb_t`qru!T!U!bQ!i!YS!p!e!fR!w!oQdRRybXSORYbQYORmYQ[PRn[Q_QQkVjp_krz!R!T!X!Z!^!`!f!j!oQr`QzcQ!RlQ!TqQ!XsQ!ZtQ!^{Q!`!QQ!f!YQ!j!]R!o!eQu`S!UqrU![u!U!bR!b!TQ!r!gR!x!rQ!u!hR!z!uQbRRxbQfTR|fQiUR!OiSXOYTaRb",
|
|
82
|
+
nodeNames: "⚠ StartTag StartCloseTag MissingCloseTag StartCloseTag StartCloseTag Document Text EntityReference CharacterReference Cdata Element EndTag OpenTag TagName Attribute AttributeName Is AttributeValue CloseTag SelfCloseEndTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag DoctypeDecl",
|
|
83
|
+
maxTerm: 50,
|
|
84
|
+
context: ae,
|
|
85
|
+
nodeProps: [
|
|
86
|
+
["closedBy", 1, "SelfCloseEndTag EndTag", 13, "C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(ors&osv(owx'}x;'S(o;'S;=`)]<%lO(ok!$PXaQVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qo!$wX[UVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qk!%mZVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_!`$q!`!a!&`!a;'S$q;'S;=`)c<%lO$qk!&kX!RQVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qk!'aZVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_#P$q#P#Q!(S#Q;'S$q;'S;=`)c<%lO$qk!(]ZVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_!`$q!`!a!)O!a;'S$q;'S;=`)c<%lO$qk!)ZXxQVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$q",
|
|
94
|
+
tokenizers: [le, se, ie, ce, 0, 1, 2, 3, 4],
|
|
95
|
+
topRules: { Document: [0, 6] },
|
|
96
|
+
tokenPrec: 0
|
|
97
|
+
});
|
|
98
|
+
function T(e, t) {
|
|
99
|
+
let o = t && t.getChild("TagName");
|
|
100
|
+
return o ? e.sliceString(o.from, o.to) : "";
|
|
101
|
+
}
|
|
102
|
+
function P(e, t) {
|
|
103
|
+
let o = t && t.firstChild;
|
|
104
|
+
return !o || o.name != "OpenTag" ? "" : T(e, o);
|
|
105
|
+
}
|
|
106
|
+
function Se(e, t, o) {
|
|
107
|
+
let O = t && t.getChildren("Attribute").find((a) => a.from <= o && a.to >= o), r = O && O.getChild("AttributeName");
|
|
108
|
+
return r ? e.sliceString(r.from, r.to) : "";
|
|
109
|
+
}
|
|
110
|
+
function C(e) {
|
|
111
|
+
for (let t = e && e.parent; t; t = t.parent)
|
|
112
|
+
if (t.name == "Element")
|
|
113
|
+
return t;
|
|
114
|
+
return null;
|
|
115
|
+
}
|
|
116
|
+
function ge(e, t) {
|
|
117
|
+
var o;
|
|
118
|
+
let O = G(e).resolveInner(t, -1), r = null;
|
|
119
|
+
for (let a = O; !r && a.parent; a = a.parent)
|
|
120
|
+
(a.name == "OpenTag" || a.name == "CloseTag" || a.name == "SelfClosingTag" || a.name == "MismatchedCloseTag") && (r = a);
|
|
121
|
+
if (r && (r.to > t || r.lastChild.type.isError)) {
|
|
122
|
+
let a = r.parent;
|
|
123
|
+
if (O.name == "TagName")
|
|
124
|
+
return r.name == "CloseTag" || r.name == "MismatchedCloseTag" ? { type: "closeTag", from: O.from, context: a } : { type: "openTag", from: O.from, context: C(a) };
|
|
125
|
+
if (O.name == "AttributeName")
|
|
126
|
+
return { type: "attrName", from: O.from, context: r };
|
|
127
|
+
if (O.name == "AttributeValue")
|
|
128
|
+
return { type: "attrValue", from: O.from, context: r };
|
|
129
|
+
let s = O == r || O.name == "Attribute" ? O.childBefore(t) : O;
|
|
130
|
+
return (s == null ? void 0 : s.name) == "StartTag" ? { type: "openTag", from: t, context: C(a) } : (s == null ? void 0 : s.name) == "StartCloseTag" && s.to <= t ? { type: "closeTag", from: t, context: a } : (s == null ? void 0 : s.name) == "Is" ? { type: "attrValue", from: t, context: r } : s ? { type: "attrName", from: t, context: r } : null;
|
|
131
|
+
} else if (O.name == "StartCloseTag")
|
|
132
|
+
return { type: "closeTag", from: t, context: O.parent };
|
|
133
|
+
for (; O.parent && O.to == t && !(!((o = O.lastChild) === null || o === void 0) && o.type.isError); )
|
|
134
|
+
O = O.parent;
|
|
135
|
+
return O.name == "Element" || O.name == "Text" || O.name == "Document" ? { type: "tag", from: t, context: O.name == "Element" ? O : C(O) } : null;
|
|
136
|
+
}
|
|
137
|
+
class ue {
|
|
138
|
+
constructor(t, o, O) {
|
|
139
|
+
this.attrs = o, this.attrValues = O, this.children = [], this.name = t.name, this.completion = Object.assign(Object.assign({ type: "type" }, t.completion || {}), { label: this.name }), this.openCompletion = Object.assign(Object.assign({}, this.completion), { label: "<" + this.name }), this.closeCompletion = Object.assign(Object.assign({}, this.completion), { label: "</" + this.name + ">", boost: 2 }), this.closeNameCompletion = Object.assign(Object.assign({}, this.completion), { label: this.name + ">" }), this.text = t.textContent ? t.textContent.map((r) => ({ label: r, type: "text" })) : [];
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
const b = /^[:\-\.\w\u00b7-\uffff]*$/;
|
|
143
|
+
function E(e) {
|
|
144
|
+
return Object.assign(Object.assign({ type: "property" }, e.completion || {}), { label: e.name });
|
|
145
|
+
}
|
|
146
|
+
function R(e) {
|
|
147
|
+
return typeof e == "string" ? { label: `"${e}"`, type: "constant" } : /^"/.test(e.label) ? e : Object.assign(Object.assign({}, e), { label: `"${e.label}"` });
|
|
148
|
+
}
|
|
149
|
+
function pe(e, t) {
|
|
150
|
+
let o = [], O = [], r = /* @__PURE__ */ Object.create(null);
|
|
151
|
+
for (let n of t) {
|
|
152
|
+
let $ = E(n);
|
|
153
|
+
o.push($), n.global && O.push($), n.values && (r[n.name] = n.values.map(R));
|
|
154
|
+
}
|
|
155
|
+
let a = [], s = [], f = /* @__PURE__ */ Object.create(null);
|
|
156
|
+
for (let n of e) {
|
|
157
|
+
let $ = O, c = r;
|
|
158
|
+
n.attributes && ($ = $.concat(n.attributes.map((l) => typeof l == "string" ? o.find((d) => d.label == l) || { label: l, type: "property" } : (l.values && (c == r && (c = Object.create(c)), c[l.name] = l.values.map(R)), E(l)))));
|
|
159
|
+
let u = new ue(n, $, c);
|
|
160
|
+
f[u.name] = u, a.push(u), n.top && s.push(u);
|
|
161
|
+
}
|
|
162
|
+
s.length || (s = a);
|
|
163
|
+
for (let n = 0; n < a.length; n++) {
|
|
164
|
+
let $ = e[n], c = a[n];
|
|
165
|
+
if ($.children)
|
|
166
|
+
for (let u of $.children)
|
|
167
|
+
f[u] && c.children.push(f[u]);
|
|
168
|
+
else
|
|
169
|
+
c.children = a;
|
|
170
|
+
}
|
|
171
|
+
return (n) => {
|
|
172
|
+
var $;
|
|
173
|
+
let { doc: c } = n.state, u = ge(n.state, n.pos);
|
|
174
|
+
if (!u || u.type == "tag" && !n.explicit)
|
|
175
|
+
return null;
|
|
176
|
+
let { type: l, from: d, context: S } = u;
|
|
177
|
+
if (l == "openTag") {
|
|
178
|
+
let i = s, m = P(c, S);
|
|
179
|
+
if (m) {
|
|
180
|
+
let g = f[m];
|
|
181
|
+
i = (g == null ? void 0 : g.children) || a;
|
|
182
|
+
}
|
|
183
|
+
return {
|
|
184
|
+
from: d,
|
|
185
|
+
options: i.map((g) => g.completion),
|
|
186
|
+
validFor: b
|
|
187
|
+
};
|
|
188
|
+
} else if (l == "closeTag") {
|
|
189
|
+
let i = P(c, S);
|
|
190
|
+
return i ? {
|
|
191
|
+
from: d,
|
|
192
|
+
to: n.pos + (c.sliceString(n.pos, n.pos + 1) == ">" ? 1 : 0),
|
|
193
|
+
options: [(($ = f[i]) === null || $ === void 0 ? void 0 : $.closeNameCompletion) || { label: i + ">", type: "type" }],
|
|
194
|
+
validFor: b
|
|
195
|
+
} : null;
|
|
196
|
+
} else if (l == "attrName") {
|
|
197
|
+
let i = f[T(c, S)];
|
|
198
|
+
return {
|
|
199
|
+
from: d,
|
|
200
|
+
options: (i == null ? void 0 : i.attrs) || O,
|
|
201
|
+
validFor: b
|
|
202
|
+
};
|
|
203
|
+
} else if (l == "attrValue") {
|
|
204
|
+
let i = Se(c, S, d);
|
|
205
|
+
if (!i)
|
|
206
|
+
return null;
|
|
207
|
+
let m = f[T(c, S)], g = ((m == null ? void 0 : m.attrValues) || r)[i];
|
|
208
|
+
return !g || !g.length ? null : {
|
|
209
|
+
from: d,
|
|
210
|
+
to: n.pos + (c.sliceString(n.pos, n.pos + 1) == '"' ? 1 : 0),
|
|
211
|
+
options: g,
|
|
212
|
+
validFor: /^"[^"]*"?$/
|
|
213
|
+
};
|
|
214
|
+
} else if (l == "tag") {
|
|
215
|
+
let i = P(c, S), m = f[i], g = [], q = S && S.lastChild;
|
|
216
|
+
i && (!q || q.name != "CloseTag" || T(c, q) != i) && g.push(m ? m.closeCompletion : { label: "</" + i + ">", type: "type", boost: 2 });
|
|
217
|
+
let v = g.concat(((m == null ? void 0 : m.children) || (S ? a : s)).map((x) => x.openCompletion));
|
|
218
|
+
if (S && (m != null && m.text.length)) {
|
|
219
|
+
let x = S.firstChild;
|
|
220
|
+
x.to > n.pos - 20 && !/\S/.test(n.state.sliceDoc(x.to, n.pos)) && (v = v.concat(m.text));
|
|
221
|
+
}
|
|
222
|
+
return {
|
|
223
|
+
from: d,
|
|
224
|
+
options: v,
|
|
225
|
+
validFor: /^<\/?[:\-\.\w\u00b7-\uffff]*$/
|
|
226
|
+
};
|
|
227
|
+
} else
|
|
228
|
+
return null;
|
|
229
|
+
};
|
|
230
|
+
}
|
|
231
|
+
const w = /* @__PURE__ */ j.define({
|
|
232
|
+
name: "xml",
|
|
233
|
+
parser: /* @__PURE__ */ $e.configure({
|
|
234
|
+
props: [
|
|
235
|
+
/* @__PURE__ */ B.add({
|
|
236
|
+
Element(e) {
|
|
237
|
+
let t = /^\s*<\//.test(e.textAfter);
|
|
238
|
+
return e.lineIndent(e.node.from) + (t ? 0 : e.unit);
|
|
239
|
+
},
|
|
240
|
+
"OpenTag CloseTag SelfClosingTag"(e) {
|
|
241
|
+
return e.column(e.node.from) + e.unit;
|
|
242
|
+
}
|
|
243
|
+
}),
|
|
244
|
+
/* @__PURE__ */ D.add({
|
|
245
|
+
Element(e) {
|
|
246
|
+
let t = e.firstChild, o = e.lastChild;
|
|
247
|
+
return !t || t.name != "OpenTag" ? null : { from: t.to, to: o.name == "CloseTag" ? o.from : e.to };
|
|
248
|
+
}
|
|
249
|
+
}),
|
|
250
|
+
/* @__PURE__ */ M.add({
|
|
251
|
+
"OpenTag CloseTag": (e) => e.getChild("TagName")
|
|
252
|
+
})
|
|
253
|
+
]
|
|
254
|
+
}),
|
|
255
|
+
languageData: {
|
|
256
|
+
commentTokens: { block: { open: "<!--", close: "-->" } },
|
|
257
|
+
indentOnInput: /^\s*<\/$/
|
|
258
|
+
}
|
|
259
|
+
});
|
|
260
|
+
function xe(e = {}) {
|
|
261
|
+
let t = [w.data.of({
|
|
262
|
+
autocomplete: pe(e.elements || [], e.attributes || [])
|
|
263
|
+
})];
|
|
264
|
+
return e.autoCloseTags !== !1 && t.push(fe), new U(w, t);
|
|
265
|
+
}
|
|
266
|
+
function z(e, t, o = e.length) {
|
|
267
|
+
if (!t)
|
|
268
|
+
return "";
|
|
269
|
+
let O = t.firstChild, r = O && O.getChild("TagName");
|
|
270
|
+
return r ? e.sliceString(r.from, Math.min(r.to, o)) : "";
|
|
271
|
+
}
|
|
272
|
+
const fe = /* @__PURE__ */ Y.inputHandler.of((e, t, o, O, r) => {
|
|
273
|
+
if (e.composing || e.state.readOnly || t != o || O != ">" && O != "/" || !w.isActiveAt(e.state, t, -1))
|
|
274
|
+
return !1;
|
|
275
|
+
let a = r(), { state: s } = a, f = s.changeByRange((n) => {
|
|
276
|
+
var $, c, u;
|
|
277
|
+
let { head: l } = n, d = s.doc.sliceString(l - 1, l) == O, S = G(s).resolveInner(l, -1), i;
|
|
278
|
+
if (d && O == ">" && S.name == "EndTag") {
|
|
279
|
+
let m = S.parent;
|
|
280
|
+
if (((c = ($ = m.parent) === null || $ === void 0 ? void 0 : $.lastChild) === null || c === void 0 ? void 0 : c.name) != "CloseTag" && (i = z(s.doc, m.parent, l))) {
|
|
281
|
+
let g = l + (s.doc.sliceString(l, l + 1) === ">" ? 1 : 0), q = `</${i}>`;
|
|
282
|
+
return { range: n, changes: { from: l, to: g, insert: q } };
|
|
283
|
+
}
|
|
284
|
+
} else if (d && O == "/" && S.name == "StartCloseTag") {
|
|
285
|
+
let m = S.parent;
|
|
286
|
+
if (S.from == l - 2 && ((u = m.lastChild) === null || u === void 0 ? void 0 : u.name) != "CloseTag" && (i = z(s.doc, m, l))) {
|
|
287
|
+
let g = l + (s.doc.sliceString(l, l + 1) === ">" ? 1 : 0), q = `${i}>`;
|
|
288
|
+
return {
|
|
289
|
+
range: Z.cursor(l + q.length, -1),
|
|
290
|
+
changes: { from: l, to: g, insert: q }
|
|
291
|
+
};
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
return { range: n };
|
|
295
|
+
});
|
|
296
|
+
return f.changes.empty ? !1 : (e.dispatch([
|
|
297
|
+
a,
|
|
298
|
+
s.update(f, {
|
|
299
|
+
userEvent: "input.complete",
|
|
300
|
+
scrollIntoView: !0
|
|
301
|
+
})
|
|
302
|
+
]), !0);
|
|
303
|
+
});
|
|
304
|
+
export {
|
|
305
|
+
fe as autoCloseTags,
|
|
306
|
+
pe as completeFromSchema,
|
|
307
|
+
xe as xml,
|
|
308
|
+
w as xmlLanguage
|
|
309
|
+
};
|