reactjs-tiptap-editor 1.0.8 → 1.0.9

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 (140) hide show
  1. package/lib/{ActionMenuButton-Cc0vy5hy.js → ActionMenuButton-C4aNFFa8.js} +2 -2
  2. package/lib/{ActionMenuButton-t7e5GCJp.cjs → ActionMenuButton-CmDopTWt.cjs} +1 -1
  3. package/lib/Attachment.cjs +1 -1
  4. package/lib/Attachment.js +2 -2
  5. package/lib/Blockquote.cjs +1 -1
  6. package/lib/Blockquote.js +2 -2
  7. package/lib/Bold.cjs +1 -1
  8. package/lib/Bold.js +2 -2
  9. package/lib/BulletList.cjs +1 -1
  10. package/lib/BulletList.js +2 -2
  11. package/lib/Clear.cjs +1 -1
  12. package/lib/Clear.js +2 -2
  13. package/lib/Code.cjs +1 -1
  14. package/lib/Code.js +2 -2
  15. package/lib/CodeBlock.cjs +39 -39
  16. package/lib/CodeBlock.js +945 -837
  17. package/lib/CodeView.cjs +1 -1
  18. package/lib/CodeView.js +2 -2
  19. package/lib/Color.cjs +1 -1
  20. package/lib/Color.js +4 -4
  21. package/lib/Column.cjs +1 -1
  22. package/lib/Column.js +2 -2
  23. package/lib/{Drawer-DRdsK4f_.cjs → Drawer-CTr2snNd.cjs} +1 -1
  24. package/lib/{Drawer-C6WTtcd0.js → Drawer-DG0gPU_U.js} +12 -12
  25. package/lib/Drawer.cjs +1 -1
  26. package/lib/Drawer.js +1 -1
  27. package/lib/Emoji.cjs +1 -1
  28. package/lib/Emoji.js +13 -13
  29. package/lib/{Excalidraw-DjO5sCC_.js → Excalidraw-DpgdxOsc.js} +17 -17
  30. package/lib/{Excalidraw-gJ99kWdS.cjs → Excalidraw-DtezFdjR.cjs} +1 -1
  31. package/lib/Excalidraw.cjs +1 -1
  32. package/lib/Excalidraw.js +1 -1
  33. package/lib/ExportPdf.cjs +2 -2
  34. package/lib/ExportPdf.js +25 -25
  35. package/lib/ExportWord.cjs +1 -1
  36. package/lib/ExportWord.js +2 -2
  37. package/lib/FontFamily.cjs +1 -1
  38. package/lib/FontFamily.js +4 -4
  39. package/lib/FontSize.cjs +1 -1
  40. package/lib/FontSize.js +4 -4
  41. package/lib/Heading.cjs +1 -1
  42. package/lib/Heading.js +12 -12
  43. package/lib/Highlight.cjs +1 -1
  44. package/lib/Highlight.js +4 -4
  45. package/lib/History.cjs +1 -1
  46. package/lib/History.js +2 -2
  47. package/lib/HorizontalRule.cjs +1 -1
  48. package/lib/HorizontalRule.js +2 -2
  49. package/lib/{Icon-prdLEHMN.js → Icon-C_buGjWy.js} +1 -1
  50. package/lib/{Icon-DHNSWrSX.cjs → Icon-b6HQAURz.cjs} +1 -1
  51. package/lib/{Iframe-CvymVtpM.cjs → Iframe-CUrXCDxj.cjs} +1 -1
  52. package/lib/{Iframe-CERKUXQh.js → Iframe-De88TYvj.js} +10 -10
  53. package/lib/Iframe.cjs +1 -1
  54. package/lib/Iframe.js +1 -1
  55. package/lib/Image.cjs +1 -1
  56. package/lib/Image.js +43 -43
  57. package/lib/ImageGif.cjs +1 -1
  58. package/lib/ImageGif.js +6 -6
  59. package/lib/ImportWord.cjs +2 -2
  60. package/lib/ImportWord.js +7 -7
  61. package/lib/{Indent-BfEOOT5B.js → Indent-Bensb2nf.js} +2 -2
  62. package/lib/{Indent-CE6kk62r.cjs → Indent-D_KtZNHW.cjs} +1 -1
  63. package/lib/Indent.cjs +1 -1
  64. package/lib/Indent.js +1 -1
  65. package/lib/Italic.cjs +1 -1
  66. package/lib/Italic.js +2 -2
  67. package/lib/{Katex-5KNTSK8T.js → Katex-C0dtqznb.js} +974 -941
  68. package/lib/Katex-NqelWRoi.cjs +4 -0
  69. package/lib/Katex.cjs +1 -1
  70. package/lib/Katex.js +1 -1
  71. package/lib/LineHeight.cjs +1 -1
  72. package/lib/LineHeight.js +11 -11
  73. package/lib/Link.cjs +1 -1
  74. package/lib/Link.js +1 -1
  75. package/lib/{LinkEditBlock-D6z0Yohc.cjs → LinkEditBlock-BSZ-vgNB.cjs} +2 -2
  76. package/lib/{LinkEditBlock-CFkyS2Ze.js → LinkEditBlock-Bv12sKvW.js} +29 -29
  77. package/lib/Mermaid.cjs +2 -2
  78. package/lib/Mermaid.js +18 -18
  79. package/lib/MoreMark.cjs +1 -1
  80. package/lib/MoreMark.js +10 -10
  81. package/lib/OrderedList.cjs +1 -1
  82. package/lib/OrderedList.js +2 -2
  83. package/lib/SearchAndReplace.cjs +1 -1
  84. package/lib/SearchAndReplace.js +15 -15
  85. package/lib/SlashCommand.cjs +1 -1
  86. package/lib/SlashCommand.js +11 -11
  87. package/lib/Strike.cjs +1 -1
  88. package/lib/Strike.js +2 -2
  89. package/lib/{Table-CWbY_hqo.js → Table-D9ckv6Tb.js} +3 -3
  90. package/lib/{Table-D9pRzwFU.cjs → Table-cy1mUM2X.cjs} +1 -1
  91. package/lib/Table.cjs +1 -1
  92. package/lib/Table.js +1 -1
  93. package/lib/TaskList.cjs +1 -1
  94. package/lib/TaskList.js +2 -2
  95. package/lib/TextAlign.cjs +1 -1
  96. package/lib/TextAlign.js +9 -9
  97. package/lib/TextDirection.cjs +1 -1
  98. package/lib/TextDirection.js +9 -9
  99. package/lib/TextUnderline.cjs +1 -1
  100. package/lib/TextUnderline.js +2 -2
  101. package/lib/{Twitter-D7NK3MZe.cjs → Twitter-Bvs3sW8F.cjs} +1 -1
  102. package/lib/{Twitter-BV7HA-MO.js → Twitter-KUvyySA0.js} +16 -16
  103. package/lib/Twitter.cjs +1 -1
  104. package/lib/Twitter.js +1 -1
  105. package/lib/Video.cjs +1 -1
  106. package/lib/Video.js +21 -21
  107. package/lib/bubble.cjs +4 -4
  108. package/lib/bubble.js +1329 -1313
  109. package/lib/{button-0963_Pa8.js → button-D8SI-g7p.js} +1 -1
  110. package/lib/{button-Bxfjx9_Y.cjs → button-U6XpZt2X.cjs} +1 -1
  111. package/lib/{checkbox-Q6FcMQW5.cjs → checkbox-DaIBNthL.cjs} +1 -1
  112. package/lib/{checkbox-D4p6-UMt.js → checkbox-xrY2c5yo.js} +1 -1
  113. package/lib/{dialog-D-oYxagG.cjs → dialog-DgnnVCfv.cjs} +1 -1
  114. package/lib/{dialog-B-9_Z5j2.js → dialog-DjnkASYP.js} +1 -1
  115. package/lib/{dropdown-menu-r8XibZQU.cjs → dropdown-menu-BvVMltdB.cjs} +1 -1
  116. package/lib/{dropdown-menu-par18QL5.js → dropdown-menu-bI14Gyw4.js} +1 -1
  117. package/lib/extensions/Katex/Katex.d.ts +1 -1
  118. package/lib/{index-pgx8gyoC.js → index-4pRt5Vqu.js} +647 -758
  119. package/lib/index-DvvMf6Wu.cjs +7 -0
  120. package/lib/index.cjs +1 -1
  121. package/lib/index.js +1 -1
  122. package/lib/{input-CZUkD6wF.cjs → input-BtDj0NeF.cjs} +1 -1
  123. package/lib/{input-cclJoUeC.js → input-C5zU49Q1.js} +1 -1
  124. package/lib/{label-aveW7pdK.js → label-BEUVs-IA.js} +1 -1
  125. package/lib/{label-CFaBdRGz.cjs → label-C8BonzOY.cjs} +1 -1
  126. package/lib/{popover-D5YZPv2r.js → popover-CPY5lMCj.js} +1 -1
  127. package/lib/{popover-BWYZO_fD.cjs → popover-DjL0De8d.cjs} +1 -1
  128. package/lib/{separator-BHjFVmZr.js → separator-BlIlS7LP.js} +18 -18
  129. package/lib/{separator-B978cwAm.cjs → separator-BzMkiI_c.cjs} +1 -1
  130. package/lib/{store-BsBiawfz.cjs → store-BSCjQxMK.cjs} +1 -1
  131. package/lib/{store-BsMMRKFd.js → store-D_GvIPxo.js} +1 -1
  132. package/lib/{tabs-CUMyiV80.cjs → tabs-CHy82_rs.cjs} +1 -1
  133. package/lib/{tabs-Bj8EvAkY.js → tabs-tQpXIzfV.js} +1 -1
  134. package/lib/{textarea-BKb7LDw1.cjs → textarea-B-qfanCT.cjs} +1 -1
  135. package/lib/{textarea-CClyW-74.js → textarea-CMDYVXYo.js} +1 -1
  136. package/lib/{useButtonProps-B0riSJs9.cjs → useButtonProps-BqBGuqoP.cjs} +1 -1
  137. package/lib/{useButtonProps-StwAz7Ha.js → useButtonProps-DTngjZge.js} +1 -1
  138. package/package.json +1 -1
  139. package/lib/Katex-CJ2Fmvut.cjs +0 -4
  140. package/lib/index-BFXkgG1P.cjs +0 -7
package/lib/CodeBlock.js CHANGED
@@ -1,96 +1,204 @@
1
- import { s as ta, C as Te, N as na, t as Pt, R as aa, m as ra } from "./index-CbIQPoF6.js";
2
- import { jsx as C, Fragment as ia, jsxs as tt } from "react/jsx-runtime";
3
- import { A as sa, k as oa, S as $t, m as Dt, n as la, o as Ft, p as Ut } from "./index-pgx8gyoC.js";
4
- import { useRef as Bt, useCallback as nt, useEffect as Gt } from "react";
5
- import { d as ca } from "./delete-node-IyVmiRbI.js";
6
- import { I as Ee } from "./Icon-prdLEHMN.js";
7
- import { u as da, a as ua } from "./useButtonProps-StwAz7Ha.js";
8
- function br() {
9
- const e = da(ea.name), {
1
+ import { s as oa, C as Le, N as la, t as Gt, R as ca, m as da } from "./index-CbIQPoF6.js";
2
+ import { jsxs as _e, jsx as k, Fragment as ua } from "react/jsx-runtime";
3
+ import { c as ne, A as pa, k as fa } from "./index-4pRt5Vqu.js";
4
+ import * as ue from "react";
5
+ import { useRef as zt, useCallback as it, useEffect as Ht } from "react";
6
+ import * as F from "@radix-ui/react-select";
7
+ import { ChevronDown as Nn, ChevronUp as ba, Check as ga } from "lucide-react";
8
+ import { d as ma } from "./delete-node-IyVmiRbI.js";
9
+ import { I as xe } from "./Icon-C_buGjWy.js";
10
+ import { u as ha, a as _a } from "./useButtonProps-DTngjZge.js";
11
+ const Vt = F.Root, Ea = F.Value, gt = ue.forwardRef(({ className: e, children: t, ...n }, i) => /* @__PURE__ */ _e(
12
+ F.Trigger,
13
+ {
14
+ ref: i,
15
+ className: ne(
16
+ "richtext-flex richtext-h-10 richtext-w-full richtext-items-center richtext-justify-between richtext-rounded-md richtext-border richtext-border-input richtext-bg-background richtext-px-3 richtext-py-2 richtext-text-sm richtext-ring-offset-background placeholder:richtext-text-muted-foreground focus:richtext-outline-none focus:richtext-ring-2 focus:richtext-ring-ring focus:richtext-ring-offset-1 disabled:richtext-cursor-not-allowed disabled:richtext-opacity-50 [&>span]:richtext-line-clamp-1",
17
+ e
18
+ ),
19
+ ...n,
20
+ children: [
21
+ t,
22
+ /* @__PURE__ */ k(F.Icon, { asChild: !0, children: /* @__PURE__ */ k(Nn, { className: "richtext-size-4 richtext-opacity-50" }) })
23
+ ]
24
+ }
25
+ ));
26
+ gt.displayName = F.Trigger.displayName;
27
+ const On = ue.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ k(
28
+ F.ScrollUpButton,
29
+ {
30
+ ref: n,
31
+ className: ne(
32
+ "richtext-flex richtext-cursor-default richtext-items-center richtext-justify-center richtext-py-1",
33
+ e
34
+ ),
35
+ ...t,
36
+ children: /* @__PURE__ */ k(ba, { className: "richtext-size-4" })
37
+ }
38
+ ));
39
+ On.displayName = F.ScrollUpButton.displayName;
40
+ const Ln = ue.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ k(
41
+ F.ScrollDownButton,
42
+ {
43
+ ref: n,
44
+ className: ne(
45
+ "richtext-flex richtext-cursor-default richtext-items-center richtext-justify-center richtext-py-1",
46
+ e
47
+ ),
48
+ ...t,
49
+ children: /* @__PURE__ */ k(Nn, { className: "richtext-size-4" })
50
+ }
51
+ ));
52
+ Ln.displayName = F.ScrollDownButton.displayName;
53
+ const mt = ue.forwardRef(({ className: e, children: t, position: n = "popper", ...i }, l) => /* @__PURE__ */ k(F.Portal, { children: /* @__PURE__ */ _e(
54
+ F.Content,
55
+ {
56
+ "data-richtext-portal": !0,
57
+ position: n,
58
+ ref: l,
59
+ className: ne(
60
+ "richtext-relative richtext-z-50 richtext-max-h-60 richtext-overflow-y-auto richtext-min-w-[8rem] richtext-overflow-hidden richtext-rounded-md richtext-border !richtext-border-border richtext-bg-popover richtext-text-popover-foreground richtext-shadow-md data-[state=open]:richtext-animate-in data-[state=closed]:richtext-animate-out data-[state=closed]:richtext-fade-out-0 data-[state=open]:richtext-fade-in-0 data-[state=closed]:richtext-zoom-out-95 data-[state=open]:richtext-zoom-in-95 data-[side=bottom]:richtext-slide-in-from-top-2 data-[side=left]:richtext-slide-in-from-right-2 data-[side=right]:richtext-slide-in-from-left-2 data-[side=top]:richtext-slide-in-from-bottom-2",
61
+ n === "popper" && "data-[side=bottom]:richtext-translate-y-1 data-[side=left]:richtext--translate-x-1 data-[side=right]:richtext-translate-x-1 data-[side=top]:richtext--translate-y-1",
62
+ e
63
+ ),
64
+ ...i,
65
+ children: [
66
+ /* @__PURE__ */ k(On, {}),
67
+ /* @__PURE__ */ k(
68
+ F.Viewport,
69
+ {
70
+ className: ne(
71
+ "richtext-p-1",
72
+ n === "popper" && "richtext-h-[var(--radix-select-trigger-height)] richtext-w-full richtext-min-w-[var(--radix-select-trigger-width)]"
73
+ ),
74
+ children: t
75
+ }
76
+ ),
77
+ /* @__PURE__ */ k(Ln, {})
78
+ ]
79
+ }
80
+ ) }));
81
+ mt.displayName = F.Content.displayName;
82
+ const ya = ue.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ k(
83
+ F.Label,
84
+ {
85
+ className: ne("richtext-py-1.5 richtext-pl-8 richtext-pr-2 richtext-text-sm richtext-font-semibold", e),
86
+ ref: n,
87
+ ...t
88
+ }
89
+ ));
90
+ ya.displayName = F.Label.displayName;
91
+ const ht = ue.forwardRef(({ className: e, children: t, ...n }, i) => /* @__PURE__ */ _e(
92
+ F.Item,
93
+ {
94
+ ref: i,
95
+ className: ne(
96
+ "richtext-relative richtext-flex richtext-w-full richtext-cursor-default richtext-select-none richtext-items-center richtext-rounded-sm richtext-py-1.5 richtext-pl-8 richtext-pr-2 richtext-text-sm richtext-outline-none focus:richtext-bg-accent focus:richtext-text-accent-foreground data-[disabled]:richtext-pointer-events-none data-[disabled]:richtext-opacity-50",
97
+ e
98
+ ),
99
+ ...n,
100
+ children: [
101
+ /* @__PURE__ */ k("span", { className: "richtext-absolute richtext-left-2 richtext-flex richtext-size-3.5 richtext-items-center richtext-justify-center", children: /* @__PURE__ */ k(F.ItemIndicator, { children: /* @__PURE__ */ k(ga, { className: "richtext-size-4" }) }) }),
102
+ /* @__PURE__ */ k(F.ItemText, { children: t })
103
+ ]
104
+ }
105
+ ));
106
+ ht.displayName = F.Item.displayName;
107
+ const va = ue.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ k(
108
+ F.Separator,
109
+ {
110
+ className: ne("richtext--mx-1 richtext-my-1 richtext-h-px richtext-bg-muted", e),
111
+ ref: n,
112
+ ...t
113
+ }
114
+ ));
115
+ va.displayName = F.Separator.displayName;
116
+ function Ar() {
117
+ const e = ha(sa.name), {
10
118
  icon: t = void 0,
11
119
  tooltip: n = void 0,
12
- tooltipOptions: s = {},
120
+ tooltipOptions: i = {},
13
121
  action: l = void 0,
14
122
  isActive: u = void 0
15
- } = (e == null ? void 0 : e.componentProps) ?? {}, { dataState: f, disabled: E, update: y } = ua(u), v = () => {
123
+ } = (e == null ? void 0 : e.componentProps) ?? {}, { dataState: b, disabled: E, update: y } = _a(u), v = () => {
16
124
  E || l && (l(), y());
17
125
  };
18
- return e ? /* @__PURE__ */ C(
19
- sa,
126
+ return e ? /* @__PURE__ */ k(
127
+ pa,
20
128
  {
21
129
  action: v,
22
- dataState: f,
130
+ dataState: b,
23
131
  disabled: E,
24
132
  icon: t,
25
133
  tooltip: n,
26
- tooltipOptions: s
134
+ tooltipOptions: i
27
135
  }
28
- ) : /* @__PURE__ */ C(ia, {});
136
+ ) : /* @__PURE__ */ k(ua, {});
29
137
  }
30
- var xe = {}, j = Symbol(), J = Symbol(), St = (e) => typeof e == "string" ? _[e] : e, _ = {
31
- plain: xe,
32
- plaintext: xe,
33
- text: xe,
34
- txt: xe
35
- }, ke = (e, t) => (t[J] || Se)(e, t), Se = (e, t) => {
36
- for (var n = [e], s, l = [], u = 0; s = St(t[j]); )
37
- delete t[j], Object.assign(t, s);
38
- for (xn(e, t, n, 0); l[u++] = n[0], n = n[1]; ) ;
138
+ var Ce = {}, Y = Symbol(), ee = Symbol(), Ct = (e) => typeof e == "string" ? _[e] : e, _ = {
139
+ plain: Ce,
140
+ plaintext: Ce,
141
+ text: Ce,
142
+ txt: Ce
143
+ }, Ne = (e, t) => (t[ee] || Oe)(e, t), Oe = (e, t) => {
144
+ for (var n = [e], i, l = [], u = 0; i = Ct(t[Y]); )
145
+ delete t[Y], Object.assign(t, i);
146
+ for (Pn(e, t, n, 0); l[u++] = n[0], n = n[1]; ) ;
39
147
  return l;
40
- }, zt = "</span>", Oe = "", ye = "", Sn = (e) => {
41
- for (var t = "", n = e.length, s = 0; s < n; ) t += Tn(e[s++]);
148
+ }, Zt = "</span>", Me = "", Ae = "", Cn = (e) => {
149
+ for (var t = "", n = e.length, i = 0; i < n; ) t += Mn(e[i++]);
42
150
  return t;
43
- }, Tn = (e) => {
44
- if (e instanceof ue) {
45
- var { type: t, alias: n, content: s } = e, l = Oe, u = ye, f = `<span class="token ${t + (n ? " " + n : "") + (t == "keyword" && typeof s == "string" ? " keyword-" + s : "")}">`;
46
- ye += zt, Oe += f;
47
- var E = Tn(s);
48
- return Oe = l, ye = u, f + E + zt;
151
+ }, Mn = (e) => {
152
+ if (e instanceof be) {
153
+ var { type: t, alias: n, content: i } = e, l = Me, u = Ae, b = `<span class="token ${t + (n ? " " + n : "") + (t == "keyword" && typeof i == "string" ? " keyword-" + i : "")}">`;
154
+ Ae += Zt, Me += b;
155
+ var E = Mn(i);
156
+ return Me = l, Ae = u, b + E + Zt;
49
157
  }
50
- return typeof e != "string" ? Sn(e) : (e = e.replace(/&/g, "&amp;").replace(/</g, "&lt;"), ye && e.includes(`
51
- `) ? e.replace(/\n/g, ye + `
52
- ` + Oe) : e);
53
- }, xn = (e, t, n, s, l) => {
158
+ return typeof e != "string" ? Cn(e) : (e = e.replace(/&/g, "&amp;").replace(/</g, "&lt;"), Ae && e.includes(`
159
+ `) ? e.replace(/\n/g, Ae + `
160
+ ` + Me) : e);
161
+ }, Pn = (e, t, n, i, l) => {
54
162
  for (var u in t)
55
- if (t[u]) for (var f = 0, E = t[u], y = Array.isArray(E) ? E : [E]; f < y.length; ++f) {
56
- if (l && l[0] == u && l[1] == f)
163
+ if (t[u]) for (var b = 0, E = t[u], y = Array.isArray(E) ? E : [E]; b < y.length; ++b) {
164
+ if (l && l[0] == u && l[1] == b)
57
165
  return;
58
- for (var v = y[f], m = v.pattern || v, p = St(v.inside), c = v.lookbehind, b = v.greedy && m.global, g = v.alias, a = n, r = s; a && (!l || r < l[2]); r += a[0].length, a = a[1]) {
59
- var d = a[0], o = 0, i, h;
60
- if (!(d instanceof ue)) {
61
- if (m.lastIndex = b ? r : 0, i = m.exec(b ? e : d), i && c && i[1] && (h = i[1].length, i.index += h, i[0] = i[0].slice(h)), b) {
62
- if (!i)
166
+ for (var v = y[b], m = v.pattern || v, p = Ct(v.inside), c = v.lookbehind, f = v.greedy && m.global, g = v.alias, a = n, r = i; a && (!l || r < l[2]); r += a[0].length, a = a[1]) {
167
+ var d = a[0], o = 0, s, h;
168
+ if (!(d instanceof be)) {
169
+ if (m.lastIndex = f ? r : 0, s = m.exec(f ? e : d), s && c && s[1] && (h = s[1].length, s.index += h, s[0] = s[0].slice(h)), f) {
170
+ if (!s)
63
171
  break;
64
- if (i[0]) {
65
- for (var S = i.index, k = S + i[0].length, I; S >= r + (I = a[0].length); a = a[1], r += I) ;
66
- if (a[0] instanceof ue)
172
+ if (s[0]) {
173
+ for (var S = s.index, R = S + s[0].length, A; S >= r + (A = a[0].length); a = a[1], r += A) ;
174
+ if (a[0] instanceof be)
67
175
  continue;
68
- for (var w = a, E = r; (E += w[0].length) < k; w = w[1], o++) ;
69
- d = e.slice(r, E), i.index -= r;
176
+ for (var w = a, E = r; (E += w[0].length) < R; w = w[1], o++) ;
177
+ d = e.slice(r, E), s.index -= r;
70
178
  }
71
179
  }
72
- if (i && i[0]) {
73
- for (var S = i.index, x = i[0], T = d.slice(S + x.length), N = r + d.length, P = new ue(u, p ? ke(x, p) : x, x, g), M = a, V = 0, z; M = M[1], V++ < o; ) ;
74
- T && (!M || M[0] instanceof ue ? M = [T, M] : M[0] = T + M[0]), r += S, a[0] = S ? d.slice(0, S) : P, S ? a = a[1] = [P, M] : a[1] = M, o && (xn(e, t, a, r, z = [u, f, N]), N = z[2]), l && N > l[2] && (l[2] = N);
180
+ if (s && s[0]) {
181
+ for (var S = s.index, N = s[0], T = d.slice(S + N.length), L = r + d.length, P = new be(u, p ? Ne(N, p) : N, N, g), M = a, Z = 0, H; M = M[1], Z++ < o; ) ;
182
+ T && (!M || M[0] instanceof be ? M = [T, M] : M[0] = T + M[0]), r += S, a[0] = S ? d.slice(0, S) : P, S ? a = a[1] = [P, M] : a[1] = M, o && (Pn(e, t, a, r, H = [u, b, L]), L = H[2]), l && L > l[2] && (l[2] = L);
75
183
  }
76
184
  }
77
185
  }
78
186
  }
79
187
  };
80
- function ue(e, t, n, s) {
81
- this.type = e, this.content = t, this.alias = s, this.length = n.length;
188
+ function be(e, t, n, i) {
189
+ this.type = e, this.content = t, this.alias = i, this.length = n.length;
82
190
  }
83
- var Ge = "\\b(?:BASH(?:OPTS|_ALIASES|_ARG[CV]|_CMDS|_COMPLETION_COMPAT_DIR|_LINENO|_REMATCH|_SOURCE|_VERSINFO|_VERSION)?|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|E?UID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_(?:ADDRESS|ALL|IDENTIFICATION|MEASUREMENT|MONETARY|NAME|NUMERIC|PAPER|TELEPHONE|TIME)|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS[1-4]|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_(?:CONFIG_DIRS|CURRENT_DESKTOP|DATA_DIRS|GREETER_DATA_DIR|MENU_PREFIX|RUNTIME_DIR|SEAT|SEAT_PATH|SESSION_DESKTOP|SESSION_ID|SESSION_PATH|SESSION_TYPE|VTNR)|XMODIFIERS)\\b", pt = {
191
+ var Ze = "\\b(?:BASH(?:OPTS|_ALIASES|_ARG[CV]|_CMDS|_COMPLETION_COMPAT_DIR|_LINENO|_REMATCH|_SOURCE|_VERSINFO|_VERSION)?|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|E?UID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_(?:ADDRESS|ALL|IDENTIFICATION|MEASUREMENT|MONETARY|NAME|NUMERIC|PAPER|TELEPHONE|TIME)|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS[1-4]|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_(?:CONFIG_DIRS|CURRENT_DESKTOP|DATA_DIRS|GREETER_DATA_DIR|MENU_PREFIX|RUNTIME_DIR|SEAT|SEAT_PATH|SESSION_DESKTOP|SESSION_ID|SESSION_PATH|SESSION_TYPE|VTNR)|XMODIFIERS)\\b", _t = {
84
192
  pattern: /(^(["']?)\w+\2)[ ]+\S.*/,
85
193
  lookbehind: !0,
86
194
  alias: "punctuation"
87
195
  // this looks reasonably well in all themes
88
- }, On = {
196
+ }, $n = {
89
197
  variable: /^\$\(|^`|\)$|`$/
90
- }, Ne = {
91
- bash: pt,
198
+ }, Pe = {
199
+ bash: _t,
92
200
  environment: {
93
- pattern: RegExp("\\$" + Ge),
201
+ pattern: RegExp("\\$" + Ze),
94
202
  alias: "constant"
95
203
  },
96
204
  variable: [
@@ -118,7 +226,7 @@ var Ge = "\\b(?:BASH(?:OPTS|_ALIASES|_ARG[CV]|_CMDS|_COMPLETION_COMPAT_DIR|_LINE
118
226
  {
119
227
  pattern: /\$\((?:[^()]|\([^)]*\))*\)|`[^`]+`/g,
120
228
  greedy: !0,
121
- inside: On
229
+ inside: $n
122
230
  },
123
231
  // [2]: Brace expansion
124
232
  {
@@ -128,7 +236,7 @@ var Ge = "\\b(?:BASH(?:OPTS|_ALIASES|_ARG[CV]|_CMDS|_COMPLETION_COMPAT_DIR|_LINE
128
236
  operator: /:[?=+-]?|[!/]|##?|%%?|\^\^?|,,?/,
129
237
  punctuation: /[[\]]/,
130
238
  environment: {
131
- pattern: RegExp("(\\{)" + Ge),
239
+ pattern: RegExp("(\\{)" + Ze),
132
240
  lookbehind: !0,
133
241
  alias: "constant"
134
242
  }
@@ -138,7 +246,7 @@ var Ge = "\\b(?:BASH(?:OPTS|_ALIASES|_ARG[CV]|_CMDS|_COMPLETION_COMPAT_DIR|_LINE
138
246
  ],
139
247
  // Escape sequences from echo and printf's manuals, and escaped quotes.
140
248
  entity: /\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[a-fA-F\d]{8}|u[a-fA-F\d]{4}|x[a-fA-F\d]{1,2})/
141
- }, pa = pt.inside = _.sh = _.shell = _.bash = {
249
+ }, wa = _t.inside = _.sh = _.shell = _.bash = {
142
250
  shebang: {
143
251
  pattern: /^#!\s*\/.*/,
144
252
  alias: "important"
@@ -178,7 +286,7 @@ var Ge = "\\b(?:BASH(?:OPTS|_ALIASES|_ARG[CV]|_CMDS|_COMPLETION_COMPAT_DIR|_LINE
178
286
  alias: "variable",
179
287
  inside: {
180
288
  environment: {
181
- pattern: RegExp("(^|[\\s;|&]|[<>]\\()" + Ge),
289
+ pattern: RegExp("(^|[\\s;|&]|[<>]\\()" + Ze),
182
290
  lookbehind: !0,
183
291
  alias: "constant"
184
292
  }
@@ -196,7 +304,7 @@ var Ge = "\\b(?:BASH(?:OPTS|_ALIASES|_ARG[CV]|_CMDS|_COMPLETION_COMPAT_DIR|_LINE
196
304
  pattern: /((?:^|[^<])<<-?\s*)(\w+)\s[^]*?\n\2/g,
197
305
  lookbehind: !0,
198
306
  greedy: !0,
199
- inside: Ne
307
+ inside: Pe
200
308
  },
201
309
  // Here-document with quotes around the tag
202
310
  // → No expansion (so no “inside”).
@@ -205,7 +313,7 @@ var Ge = "\\b(?:BASH(?:OPTS|_ALIASES|_ARG[CV]|_CMDS|_COMPLETION_COMPAT_DIR|_LINE
205
313
  lookbehind: !0,
206
314
  greedy: !0,
207
315
  inside: {
208
- bash: pt
316
+ bash: _t
209
317
  }
210
318
  },
211
319
  // “Normal” string
@@ -214,7 +322,7 @@ var Ge = "\\b(?:BASH(?:OPTS|_ALIASES|_ARG[CV]|_CMDS|_COMPLETION_COMPAT_DIR|_LINE
214
322
  pattern: /(^|[^\\](?:\\\\)*)"(?:\\[^]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^\\"`$])*"/g,
215
323
  lookbehind: !0,
216
324
  greedy: !0,
217
- inside: Ne
325
+ inside: Pe
218
326
  },
219
327
  {
220
328
  // https://www.gnu.org/software/bash/manual/html_node/Single-Quotes.html
@@ -227,15 +335,15 @@ var Ge = "\\b(?:BASH(?:OPTS|_ALIASES|_ARG[CV]|_CMDS|_COMPLETION_COMPAT_DIR|_LINE
227
335
  pattern: /\$'(?:\\[^]|[^\\'])*'/g,
228
336
  greedy: !0,
229
337
  inside: {
230
- entity: Ne.entity
338
+ entity: Pe.entity
231
339
  }
232
340
  }
233
341
  ],
234
342
  environment: {
235
- pattern: RegExp("\\$?" + Ge),
343
+ pattern: RegExp("\\$?" + Ze),
236
344
  alias: "constant"
237
345
  },
238
- variable: Ne.variable,
346
+ variable: Pe.variable,
239
347
  function: {
240
348
  pattern: /(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|c?fdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cron|crontab|c?split|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff3?|dig|dircolors|dirname|dirs?|dmesg|docker|docker-compose|du|[ef]?grep|eject|env|ethtool|expand|expect|expr|fdformat|fg|file|find|fmt|fold|format|free|fsck|fuser|g?awk|git|g?parted|groupadd|groupdel|groupmod|groups|grub-mkconfig|halt|head|hg|history|host|hostname|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|killall|less|link|ln|logname|logrotate|look|lpc|lprint[dq]?|lprm?|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mm?v|more|most|mtools|m?tr|mutt|nano|nc|netstat|nice|nl|node|nohup|notify-send|nslookup|op|open|passwd|paste|pathchk|ping|p?kill|p?npm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ra[mr]|reboot|remsync|rename|renice|rev|rmdir|rp?m|r?sync|[sr]?cp|screen|sdiff|se[dq]|sendmail|service|s?ftp|shellcheck|shuf|shutdown|sleep|s?locate|[sz]?sh|stat|strace|sudo|sum?|suspend|swapon|sysctl|tac|tail|tar|tee|time|timeout|h?top|touch|traceroute|t?sort|tty|u?mount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vim?|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|g?zip|zsh|zypper)(?=$|[)\s;|&])/,
241
349
  lookbehind: !0
@@ -291,8 +399,8 @@ var Ge = "\\b(?:BASH(?:OPTS|_ALIASES|_ARG[CV]|_CMDS|_COMPLETION_COMPAT_DIR|_LINE
291
399
  "operator",
292
400
  "punctuation",
293
401
  "number"
294
- ].forEach((e) => On[e] = pa[e]);
295
- var Nn = /(?:"(?:\\[^]|[^\\\n"])*"|'(?:\\[^]|[^\\\n'])*')/g, Le = Nn.source, Ht = {
402
+ ].forEach((e) => $n[e] = wa[e]);
403
+ var Dn = /(?:"(?:\\[^]|[^\\\n"])*"|'(?:\\[^]|[^\\\n'])*')/g, $e = Dn.source, qt = {
296
404
  rule: /^@[\w-]+/,
297
405
  "selector-function-argument": {
298
406
  pattern: /(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^)]*\))*\))+(?=\s*\))/,
@@ -305,32 +413,32 @@ var Nn = /(?:"(?:\\[^]|[^\\\n"])*"|'(?:\\[^]|[^\\\n'])*')/g, Le = Nn.source, Ht
305
413
  }
306
414
  // See rest below
307
415
  };
308
- Ht[j] = _.css = {
416
+ qt[Y] = _.css = {
309
417
  comment: /\/\*[^]*?\*\//,
310
418
  atrule: {
311
- pattern: RegExp(`@[\\w-](?:[^;{\\s"']|\\s+(?!\\s)|${Le})*?(?:;|(?=\\s*\\{))`),
312
- inside: Ht
419
+ pattern: RegExp(`@[\\w-](?:[^;{\\s"']|\\s+(?!\\s)|${$e})*?(?:;|(?=\\s*\\{))`),
420
+ inside: qt
313
421
  },
314
422
  url: {
315
423
  // https://drafts.csswg.org/css-values-3/#urls
316
- pattern: RegExp(`\\burl\\((?:${Le}|(?:[^\\\\
424
+ pattern: RegExp(`\\burl\\((?:${$e}|(?:[^\\\\
317
425
  "')=]|\\\\[^])*)\\)`, "gi"),
318
426
  greedy: !0,
319
427
  inside: {
320
428
  function: /^url/i,
321
429
  punctuation: /^\(|\)$/,
322
430
  string: {
323
- pattern: RegExp("^" + Le + "$"),
431
+ pattern: RegExp("^" + $e + "$"),
324
432
  alias: "url"
325
433
  }
326
434
  }
327
435
  },
328
436
  selector: {
329
- pattern: RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|${Le})*(?=\\s*\\{)`),
437
+ pattern: RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|${$e})*(?=\\s*\\{)`),
330
438
  lookbehind: !0
331
439
  },
332
440
  string: {
333
- pattern: Nn,
441
+ pattern: Dn,
334
442
  greedy: !0
335
443
  },
336
444
  property: {
@@ -344,34 +452,34 @@ Ht[j] = _.css = {
344
452
  },
345
453
  punctuation: /[(){},:;]/
346
454
  };
347
- var $e = (e, t) => {
455
+ var Be = (e, t) => {
348
456
  if (t.has(e)) return t.get(e);
349
- var n = e, s = ba.call(e).slice(8, -1);
350
- if (s == "Object") {
457
+ var n = e, i = xa.call(e).slice(8, -1);
458
+ if (i == "Object") {
351
459
  t.set(e, n = {});
352
460
  for (var l in e)
353
- n[l] = $e(e[l], t);
354
- e[j] && (n[j] = $e(e[j], t)), e[J] && (n[J] = e[J]);
355
- } else if (s == "Array") {
461
+ n[l] = Be(e[l], t);
462
+ e[Y] && (n[Y] = Be(e[Y], t)), e[ee] && (n[ee] = e[ee]);
463
+ } else if (i == "Array") {
356
464
  t.set(e, n = []);
357
- for (var u = 0, f = e.length; u < f; u++)
358
- n[u] = $e(e[u], t);
465
+ for (var u = 0, b = e.length; u < b; u++)
466
+ n[u] = Be(e[u], t);
359
467
  }
360
468
  return n;
361
- }, Ye = (e) => $e(e, /* @__PURE__ */ new Map()), ae = (e, t) => Object.assign(Ye(_[e]), t), $ = (e, t, n) => {
362
- var s = {};
469
+ }, et = (e) => Be(e, /* @__PURE__ */ new Map()), ie = (e, t) => Object.assign(et(_[e]), t), $ = (e, t, n) => {
470
+ var i = {};
363
471
  for (var l in e)
364
- s[l] = e[l], delete e[l];
365
- for (var l in s)
366
- l == t && Object.assign(e, n), n.hasOwnProperty(l) || (e[l] = s[l]);
367
- }, ba = {}.toString, ze = _.css, Vt = {
472
+ i[l] = e[l], delete e[l];
473
+ for (var l in i)
474
+ l == t && Object.assign(e, n), n.hasOwnProperty(l) || (e[l] = i[l]);
475
+ }, xa = {}.toString, qe = _.css, Kt = {
368
476
  pattern: /(\b\d+)(?:%|[a-z]+(?![\w-]))/,
369
477
  lookbehind: !0
370
- }, Zt = {
478
+ }, Wt = {
371
479
  pattern: /(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,
372
480
  lookbehind: !0
373
481
  };
374
- ze.selector.inside = ze.atrule.inside["selector-function-argument"].inside = {
482
+ qe.selector.inside = qe.atrule.inside["selector-function-argument"].inside = {
375
483
  "pseudo-element": /:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,
376
484
  "pseudo-class": /:[-\w]+/,
377
485
  class: /\.[-\w]+/,
@@ -424,13 +532,13 @@ ze.selector.inside = ze.atrule.inside["selector-function-argument"].inside = {
424
532
  // if you want to add it, please read https://github.com/PrismJS/prism/pull/2373 first.
425
533
  punctuation: /[(),]/
426
534
  };
427
- $(ze, "property", {
535
+ $(qe, "property", {
428
536
  variable: {
429
537
  pattern: /(^|[^-\w\xa0-\uffff])--(?!\d)(?:(?!\s)[-\w\xa0-\uffff])*/i,
430
538
  lookbehind: !0
431
539
  }
432
540
  });
433
- $(ze, "function", {
541
+ $(qe, "function", {
434
542
  operator: {
435
543
  pattern: /(\s)[/*+-](?!\S)/,
436
544
  lookbehind: !0
@@ -450,16 +558,16 @@ $(ze, "function", {
450
558
  pattern: /\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,
451
559
  inside: {
452
560
  function: /^[^(]+/,
453
- unit: Vt,
454
- number: Zt,
561
+ unit: Kt,
562
+ number: Wt,
455
563
  punctuation: /[(),]/
456
564
  }
457
565
  }
458
566
  ],
459
567
  // it's important that there is no boundary assertion after the hex digits
460
568
  entity: /\\[a-f\d]{1,8}/i,
461
- unit: Vt,
462
- number: Zt
569
+ unit: Kt,
570
+ number: Wt
463
571
  });
464
572
  _.ini = {
465
573
  /**
@@ -501,13 +609,13 @@ _.ini = {
501
609
  },
502
610
  punctuation: /=/
503
611
  };
504
- var re = () => ({
612
+ var se = () => ({
505
613
  pattern: /\/\/.*|\/\*[^]*?(?:\*\/|$)/g,
506
614
  greedy: !0
507
- }), Tt = () => ({
615
+ }), Mt = () => ({
508
616
  pattern: /(["'])(?:\\[^]|(?!\1)[^\\\n])*\1/g,
509
617
  greedy: !0
510
- }), Ln = /\b0x[a-f\d]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i, te = /[()[\]{}.,:;]/, q = /\b(?:false|true)\b/, at = {
618
+ }), Fn = /\b0x[a-f\d]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i, ae = /[()[\]{}.,:;]/, K = /\b(?:false|true)\b/, st = {
511
619
  "interpolation-punctuation": {
512
620
  pattern: /^\$\{?|\}$/,
513
621
  alias: "punctuation"
@@ -516,7 +624,7 @@ var re = () => ({
516
624
  pattern: /[^]+/
517
625
  }
518
626
  };
519
- at.expression.inside = _.kts = _.kt = _.kotlin = {
627
+ st.expression.inside = _.kts = _.kt = _.kotlin = {
520
628
  // https://kotlinlang.org/spec/expressions.html#string-interpolation-expressions
521
629
  "string-literal": [
522
630
  {
@@ -525,7 +633,7 @@ at.expression.inside = _.kts = _.kt = _.kotlin = {
525
633
  inside: {
526
634
  interpolation: {
527
635
  pattern: /\$(?:[a-z_]\w*|\{[^{}]*\})/i,
528
- inside: at
636
+ inside: st
529
637
  },
530
638
  string: /[^]+/
531
639
  }
@@ -537,7 +645,7 @@ at.expression.inside = _.kts = _.kt = _.kotlin = {
537
645
  interpolation: {
538
646
  pattern: /((?:^|[^\\])(?:\\\\)*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,
539
647
  lookbehind: !0,
540
- inside: at
648
+ inside: st
541
649
  },
542
650
  string: /[^]+/
543
651
  }
@@ -548,7 +656,7 @@ at.expression.inside = _.kts = _.kt = _.kotlin = {
548
656
  pattern: /'(?:[^\\\n']|\\(?:.|u[a-fA-F\d]{0,4}))'/g,
549
657
  greedy: !0
550
658
  },
551
- comment: re(),
659
+ comment: se(),
552
660
  annotation: {
553
661
  pattern: /\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,
554
662
  alias: "builtin"
@@ -558,7 +666,7 @@ at.expression.inside = _.kts = _.kt = _.kotlin = {
558
666
  pattern: /(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,
559
667
  lookbehind: !0
560
668
  },
561
- boolean: q,
669
+ boolean: K,
562
670
  label: {
563
671
  pattern: /\b\w+@|@\w+/,
564
672
  alias: "symbol"
@@ -570,15 +678,15 @@ at.expression.inside = _.kts = _.kt = _.kotlin = {
570
678
  },
571
679
  number: /\b(?:0[xX][a-fA-F\d]+(?:_[a-fA-F\d]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,
572
680
  operator: /--|\+\+|&&|\|\||->|[!=]==|!!|[%!=<>/*+-]=?|[?:]:?|\.\.|\b(?:and|inv|shl|u?shr|x?or)\b/,
573
- punctuation: te
681
+ punctuation: ae
574
682
  };
575
- var Cn = [
683
+ var Un = [
576
684
  {
577
685
  pattern: /&[a-z\d]{1,8};/i,
578
686
  alias: "named-entity"
579
687
  },
580
688
  /&#x?[a-f\d]{1,8};/i
581
- ], fa = {
689
+ ], Aa = {
582
690
  pattern: /<\/?(?!\d)[^\s/=>$<%]+(?:\s(?:\s*[^\s/=>]+(?:\s*=\s*(?!\s)(?:"[^"]*"|'[^']*'|[^\s"'=>]+(?=[\s>]))?|(?=[\s/>])))+)?\s*\/?>/g,
583
691
  greedy: !0,
584
692
  inside: {
@@ -595,7 +703,7 @@ var Cn = [
595
703
  greedy: !0,
596
704
  inside: {
597
705
  punctuation: /^["']|["']$/,
598
- entity: Cn
706
+ entity: Un
599
707
  }
600
708
  }],
601
709
  "attr-equals": /=/,
@@ -636,43 +744,43 @@ _.rss = _.atom = _.ssml = _.xml = {
636
744
  pattern: /<!\[CDATA\[[^]*?\]\]>/gi,
637
745
  greedy: !0
638
746
  },
639
- tag: fa,
640
- entity: Cn,
747
+ tag: Aa,
748
+ entity: Un,
641
749
  "markup-bracket": {
642
750
  pattern: /[()[\]{}]/,
643
751
  alias: "punctuation"
644
752
  }
645
753
  };
646
- var bt = (e, t) => (e["language-" + t] = {
754
+ var Et = (e, t) => (e["language-" + t] = {
647
755
  pattern: /[^]+/,
648
756
  inside: t
649
- }, e), qt = (e, t) => ({
757
+ }, e), jt = (e, t) => ({
650
758
  pattern: RegExp(`(<${e}[^>]*>)(?!</${e}>)(?:<!\\[CDATA\\[(?:[^\\]]|\\](?!\\]>))*\\]\\]>|(?!<!\\[CDATA\\[)[^])+?(?=</${e}>)`, "gi"),
651
759
  lookbehind: !0,
652
760
  greedy: !0,
653
- inside: bt({
761
+ inside: Et({
654
762
  "included-cdata": {
655
763
  pattern: /<!\[CDATA\[[^]*?\]\]>/i,
656
- inside: bt({
764
+ inside: Et({
657
765
  cdata: /^<!\[CDATA\[|\]\]>$/i
658
766
  }, t)
659
767
  }
660
768
  }, t)
661
- }), Kt = (e, t) => ({
769
+ }), Yt = (e, t) => ({
662
770
  pattern: RegExp(`((?:^|["'\\s])(?:${e})\\s*=\\s*)(?:"[^"]*"|'[^']*'|[^\\s"'=>]+)`, "gi"),
663
771
  lookbehind: !0,
664
772
  greedy: !0,
665
- inside: bt({
773
+ inside: Et({
666
774
  punctuation: /^["']|["']$/
667
775
  }, t)
668
- }), Mn = _.svg = _.mathml = _.html = _.markup = Ye(_.xml);
669
- Mn.tag.inside["attr-value"].unshift(
670
- Kt("style", "css"),
671
- Kt("on[a-z]+", "javascript")
776
+ }), Bn = _.svg = _.mathml = _.html = _.markup = et(_.xml);
777
+ Bn.tag.inside["attr-value"].unshift(
778
+ Yt("style", "css"),
779
+ Yt("on[a-z]+", "javascript")
672
780
  );
673
- $(Mn, "cdata", {
674
- style: qt("style", "css"),
675
- script: qt("script", "javascript")
781
+ $(Bn, "cdata", {
782
+ style: jt("style", "css"),
783
+ script: jt("script", "javascript")
676
784
  });
677
785
  _.r = {
678
786
  comment: /#.*/,
@@ -713,7 +821,7 @@ _.basic = {
713
821
  operator: /<=|<>|>=|[&^=<>/*+-]|\b(?:and|eqv|imp|not|x?or)\b/i,
714
822
  punctuation: /[(),:;]/
715
823
  };
716
- _.vbnet = ae("basic", {
824
+ _.vbnet = ie("basic", {
717
825
  comment: {
718
826
  pattern: /(?:!|'|rem\b).*/i,
719
827
  inside: {
@@ -728,23 +836,23 @@ _.vbnet = ae("basic", {
728
836
  keyword: /(?:\b(?:addhandler|addressof|alias|and|andalso|as|beep|bload|boolean|bsave|byref|byval|call absolute|call|case|catch|cbool|c?byte|cc?har|c?date|cdbl|cdec|chain|chdir|cu?int|class|clear|close|cls|cobj|com|common|const|continue|c?sbyte|c?u?short|c?sng|cstr|c?type|cu?lng|data|decimal|declare|def(?: fn| seg|dbl|int|lng|sng|str)|default|delegate|dim|directcast|do|double|else|elseif|enum|environ|erase|error|event|exit|false|true|field|files|finally|for each|for|friend|function|[gls]et|gettype|getxmlnamespace|global|gosub|goto|handles|i[fns]|implements|imports|inherits|input|interface|ioctl|isnot|key|kill|lib|like|line input|locate|lock|loop|[lr]set|me|mkdir|mod|module|mustinherit|mustoverride|mybase|myclass|name|namespace|narrowing|new|next|not|nothing|notinheritable|notoverridable|object|off?|on (?:com|error|key|timer)|on|open|operator|option base|option|optional|orelse|out|overloads|overridable|overrides|paramarray|partial|poke|private|property|protected|public|put|raiseevent|read|readonly|redim|removehandler|restore|resume|return|rmdir|run|select case|select|shadows|shared|shell|single|sleep|static|step|stop|string|structure|sub|swap|synclock|system|[tw]hen|throw|timer|to|troff|tron|try|trycast|typeof|u?integer|u?long|unlock|until|using|view print|wait|w?end|while|widening|with|withevents|write|writeonly|x?or)|\B#(?:const|else|elseif|end|if))(?:\$|\b)/i,
729
837
  punctuation: /[(){},:;]/
730
838
  });
731
- var Wt = {
839
+ var Xt = {
732
840
  // https://en.cppreference.com/w/c/language/character_constant
733
841
  pattern: /'(?:\\[^]|[^\\\n']){0,32}'/g,
734
842
  greedy: !0
735
- }, jt = {
843
+ }, Qt = {
736
844
  pattern: /\/\/(?:[^\\\n]|\\\n?)*|\/\*[^]*?(?:\*\/|$)/g,
737
845
  greedy: !0
738
- }, Yt = {
846
+ }, Jt = {
739
847
  // https://en.cppreference.com/w/c/language/string_literal
740
848
  pattern: /"(?:\\[^]|[^\\\n"])*"/g,
741
849
  greedy: !0
742
- }, Xt = {
850
+ }, en = {
743
851
  pattern: /\S[^]*/
744
852
  };
745
- Xt.inside = _.c = {
746
- comment: jt,
747
- char: Wt,
853
+ en.inside = _.c = {
854
+ comment: Qt,
855
+ char: Xt,
748
856
  macro: {
749
857
  // allow for multiline macro definitions
750
858
  // spaces after the # character compile fine with gcc
@@ -759,10 +867,10 @@ Xt.inside = _.c = {
759
867
  pattern: /^(#\s*include\s*)<[^>]+>/,
760
868
  lookbehind: !0
761
869
  },
762
- Yt
870
+ Jt
763
871
  ],
764
- char: Wt,
765
- comment: jt,
872
+ char: Xt,
873
+ comment: Qt,
766
874
  "macro-name": [
767
875
  {
768
876
  pattern: /(^#\s*define\s+)\w+\b(?!\()/i,
@@ -782,10 +890,10 @@ Xt.inside = _.c = {
782
890
  },
783
891
  "directive-hash": /^#/,
784
892
  punctuation: /##|\\(?=\n)/,
785
- expression: Xt
893
+ expression: en
786
894
  }
787
895
  },
788
- string: Yt,
896
+ string: Jt,
789
897
  "class-name": {
790
898
  pattern: /(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([^]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,
791
899
  lookbehind: !0
@@ -796,17 +904,17 @@ Xt.inside = _.c = {
796
904
  function: /\b[a-z_]\w*(?=\s*\()/i,
797
905
  number: /(?:\b0x(?:[a-f\d]+(?:\.[a-f\d]*)?|\.[a-f\d]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,
798
906
  operator: /->|([&|:+-])\1|[?:~]|>>=?|<<=?|[%&|^!=<>/*+-]=?/,
799
- punctuation: te
907
+ punctuation: ae
800
908
  };
801
909
  $(
802
- _.opencl = ae("c", {
910
+ _.opencl = ie("c", {
803
911
  // Extracted from the official specs (2.0) and http://streamcomputing.eu/downloads/?opencl.lang (opencl-keywords, opencl-types) and http://sourceforge.net/tracker/?func=detail&aid=2957794&group_id=95717&atid=612384 (Words2, partly Words3)
804
912
  keyword: /\b(?:(?:__)?(?:constant|global|kernel|local|private|read_only|read_write|write_only)|__attribute__|auto|(?:bool|u?(?:char|int|long|short)|half|quad)(?:2|3|4|8|16)?|break|case|complex|const|continue|(?:double|float)(?:16(?:x(?:1|2|4|8|16))?|1x(?:1|2|4|8|16)|2(?:x(?:1|2|4|8|16))?|3|4(?:x(?:1|2|4|8|16))?|8(?:x(?:1|2|4|8|16))?)?|default|do|else|enum|extern|for|goto|if|imaginary|inline|packed|pipe|register|restrict|return|signed|sizeof|static|struct|switch|typedef|uniform|union|unsigned|void|volatile|while)\b/,
805
913
  // Extracted from http://streamcomputing.eu/downloads/?opencl.lang (opencl-const)
806
914
  // Math Constants: https://www.khronos.org/registry/OpenCL/sdk/2.1/docs/man/xhtml/mathConstants.html
807
915
  // Macros and Limits: https://www.khronos.org/registry/OpenCL/sdk/2.1/docs/man/xhtml/macroLimits.html
808
916
  number: /(?:\b0x(?:[a-f\d]+(?:\.[a-f\d]*)?|\.[a-f\d]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[fuhl]{0,4}/i,
809
- boolean: q,
917
+ boolean: K,
810
918
  "constant-opencl-kernel": {
811
919
  pattern: /\b(?:CHAR_(?:BIT|MAX|MIN)|CLK_(?:ADDRESS_(?:CLAMP(?:_TO_EDGE)?|NONE|REPEAT)|FILTER_(?:LINEAR|NEAREST)|(?:GLOBAL|LOCAL)_MEM_FENCE|NORMALIZED_COORDS_(?:FALSE|TRUE))|CL_(?:BGRA|(?:HALF_)?FLOAT|INTENSITY|LUMINANCE|A?R?G?B?[Ax]?|(?:(?:UN)?SIGNED|[US]NORM)_(?:INT(?:8|16|32))|UNORM_(?:INT_101010|SHORT_(?:555|565)))|(?:DBL|FLT|HALF)_(?:DIG|EPSILON|(?:MAX|MIN)(?:(?:_10)?_EXP)?|MANT_DIG)|FLT_RADIX|HUGE_VALF?|(?:INT|LONG|SCHAR|SHRT)_(?:MAX|MIN)|INFINITY|MAXFLOAT|M_(?:[12]_PI|2_SQRTPI|E|LN2|LN10|LOG2E?|LOG10E?|PI(?:_[24])?|SQRT(?:1_2|2))(?:_F|_H)?|NAN|(?:UCHAR|UINT|ULONG|USHRT)_MAX)\b/,
812
920
  alias: "constant"
@@ -822,7 +930,7 @@ $(
822
930
  }
823
931
  }
824
932
  );
825
- var ft = {
933
+ var yt = {
826
934
  // Extracted from http://streamcomputing.eu/downloads/?opencl_host.lang (opencl-types and opencl-host)
827
935
  "type-opencl-host": {
828
936
  pattern: /\b(?:cl_(?:GLenum|GLint|GLuin|addressing_mode|bitfield|bool|buffer_create_type|build_status|channel_(?:order|type)|(?:u?(?:char|int|long|short)|double|float)(?:[2348]|16)?|command_(?:queue(?:_info|_properties)?|type)|context(?:_info|_properties)?|device_(?:exec_capabilities|fp_config|id|info|local_mem_type|mem_cache_type|type)|(?:event|sampler)(?:_info)?|filter_mode|half|image_info|kernel(?:_info|_work_group_info)?|map_flags|mem(?:_flags|_info|_object_type)?|platform_(?:id|info)|profiling_info|program(?:_build_info|_info)?))\b/,
@@ -843,18 +951,18 @@ var ft = {
843
951
  alias: "function"
844
952
  }
845
953
  };
846
- $(_.c, "keyword", ft);
847
- _.cpp && (ft["type-opencl-host-cpp"] = {
954
+ $(_.c, "keyword", yt);
955
+ _.cpp && (yt["type-opencl-host-cpp"] = {
848
956
  pattern: /\b(?:Buffer|BufferGL|BufferRenderGL|CommandQueue|Context|Device|DeviceCommandQueue|EnqueueArgs|Event|Image(?:[123]D|[12]DArray|1DBuffer|[23]DGL|Format|GL)?|Kernel|KernelFunctor|LocalSpaceArg|Memory|NDRange|Pipe|Platform|Program|SVMAllocator|SVMTrait(?:Atomic|Coarse|Fine|ReadOnly|ReadWrite|WriteOnly)|Sampler|UserEvent)\b/,
849
957
  alias: "keyword"
850
- }, $(_.cpp, "keyword", ft));
851
- var ga = _.diff = {
958
+ }, $(_.cpp, "keyword", yt));
959
+ var Ia = _.diff = {
852
960
  // Match all kinds of coord lines (prefixed by "+++", "---" or "***").
853
961
  // Match "@@ ... @@" coord lines in unified diff.
854
962
  // Match coord lines in normal diff (starts with a number).
855
963
  coord: /^(?:\*{3}|-{3}|\+{3}|\d).*$|^@@.*@@$/m
856
964
  // deleted, inserted, unchanged, diff
857
- }, rt = {
965
+ }, ot = {
858
966
  "deleted-sign": "-",
859
967
  "deleted-arrow": "<",
860
968
  "inserted-sign": "+",
@@ -862,33 +970,33 @@ var ga = _.diff = {
862
970
  unchanged: " ",
863
971
  diff: "!"
864
972
  };
865
- for (var ce in rt) {
866
- var it = ce.split("-")[0];
867
- ga[ce] = {
868
- pattern: RegExp("^(?:[" + rt[ce] + `].*$
973
+ for (var pe in ot) {
974
+ var lt = pe.split("-")[0];
975
+ Ia[pe] = {
976
+ pattern: RegExp("^(?:[" + ot[pe] + `].*$
869
977
  ?)+`, "m"),
870
- alias: it != ce ? it : ce == "diff" ? "bold" : void 0,
978
+ alias: lt != pe ? lt : pe == "diff" ? "bold" : void 0,
871
979
  inside: {
872
980
  prefix: {
873
- pattern: RegExp("^[" + rt[ce] + "]", "mg"),
981
+ pattern: RegExp("^[" + ot[pe] + "]", "mg"),
874
982
  greedy: !0,
875
- alias: it
983
+ alias: lt
876
984
  }
877
985
  }
878
986
  };
879
987
  }
880
- var st = /\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|opens?|package|permits|private|protected|provides|public|record(?!\s*[()[\]{}%~.,:;?%&|^=<>/*+-])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throws?|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/, Ae = "(?:[a-z]\\w*\\s*\\.\\s*)*(?:[A-Z]\\w*\\s*\\.\\s*)*", gt = {
988
+ var ct = /\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|opens?|package|permits|private|protected|provides|public|record(?!\s*[()[\]{}%~.,:;?%&|^=<>/*+-])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throws?|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/, Se = "(?:[a-z]\\w*\\s*\\.\\s*)*(?:[A-Z]\\w*\\s*\\.\\s*)*", vt = {
881
989
  pattern: /^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,
882
990
  inside: {
883
991
  punctuation: /\./
884
992
  }
885
- }, mt = {
886
- namespace: gt,
993
+ }, wt = {
994
+ namespace: vt,
887
995
  punctuation: /\./
888
- }, Qt = {
889
- pattern: RegExp(`(^|[^\\w.])${Ae}[A-Z](?:[\\d_A-Z]*[a-z]\\w*)?\\b`),
996
+ }, tn = {
997
+ pattern: RegExp(`(^|[^\\w.])${Se}[A-Z](?:[\\d_A-Z]*[a-z]\\w*)?\\b`),
890
998
  lookbehind: !0,
891
- inside: mt
999
+ inside: wt
892
1000
  };
893
1001
  _.java = {
894
1002
  "doc-comment": {
@@ -897,7 +1005,7 @@ _.java = {
897
1005
  alias: "comment",
898
1006
  inside: "javadoc"
899
1007
  },
900
- comment: re(),
1008
+ comment: se(),
901
1009
  "triple-quoted-string": {
902
1010
  // http://openjdk.java.net/jeps/355#Description
903
1011
  pattern: /"""[ ]*\n(?:\\.|[^\\])*?"""/g,
@@ -921,29 +1029,29 @@ _.java = {
921
1029
  generics: {
922
1030
  pattern: /<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,
923
1031
  inside: {
924
- "class-name": Qt,
925
- keyword: st,
1032
+ "class-name": tn,
1033
+ keyword: ct,
926
1034
  punctuation: /[().,:<>]/,
927
1035
  operator: /[?&|]/
928
1036
  }
929
1037
  },
930
1038
  import: [
931
1039
  {
932
- pattern: RegExp(`(\\bimport\\s+)${Ae}(?:[A-Z]\\w*|\\*)(?=\\s*;)`),
1040
+ pattern: RegExp(`(\\bimport\\s+)${Se}(?:[A-Z]\\w*|\\*)(?=\\s*;)`),
933
1041
  lookbehind: !0,
934
1042
  inside: {
935
- namespace: gt,
1043
+ namespace: vt,
936
1044
  punctuation: /\./,
937
1045
  operator: /\*/,
938
1046
  "class-name": /\w+/
939
1047
  }
940
1048
  },
941
1049
  {
942
- pattern: RegExp(`(\\bimport\\s+static\\s+)${Ae}(?:\\w+|\\*)(?=\\s*;)`),
1050
+ pattern: RegExp(`(\\bimport\\s+static\\s+)${Se}(?:\\w+|\\*)(?=\\s*;)`),
943
1051
  lookbehind: !0,
944
1052
  alias: "static",
945
1053
  inside: {
946
- namespace: gt,
1054
+ namespace: vt,
947
1055
  static: /\b\w+$/,
948
1056
  punctuation: /\./,
949
1057
  operator: /\*/,
@@ -953,7 +1061,7 @@ _.java = {
953
1061
  ],
954
1062
  namespace: {
955
1063
  pattern: RegExp(
956
- `(\\b(?:exports|import(?:\\s+static)?|module|opens?|package|provides|requires|to|transitive|uses|with)\\s+)(?!${st.source})[a-z]\\w*(?:\\.[a-z]\\w*)*\\.?`
1064
+ `(\\b(?:exports|import(?:\\s+static)?|module|opens?|package|provides|requires|to|transitive|uses|with)\\s+)(?!${ct.source})[a-z]\\w*(?:\\.[a-z]\\w*)*\\.?`
957
1065
  ),
958
1066
  lookbehind: !0,
959
1067
  inside: {
@@ -961,24 +1069,24 @@ _.java = {
961
1069
  }
962
1070
  },
963
1071
  "class-name": [
964
- Qt,
1072
+ tn,
965
1073
  {
966
1074
  // variables, parameters, and constructor references
967
1075
  // this to support class names (or generic parameters) which do not contain a lower case letter (also works for methods)
968
- pattern: RegExp(`(^|[^\\w.])${Ae}[A-Z]\\w*(?=\\s+\\w+\\s*[;,=()]|\\s*(?:\\[[\\s,]*\\]\\s*)?::\\s*new\\b)`),
1076
+ pattern: RegExp(`(^|[^\\w.])${Se}[A-Z]\\w*(?=\\s+\\w+\\s*[;,=()]|\\s*(?:\\[[\\s,]*\\]\\s*)?::\\s*new\\b)`),
969
1077
  lookbehind: !0,
970
- inside: mt
1078
+ inside: wt
971
1079
  },
972
1080
  {
973
1081
  // class names based on keyword
974
1082
  // this to support class names (or generic parameters) which do not contain a lower case letter (also works for methods)
975
- pattern: RegExp(`(\\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\\s+)${Ae}[A-Z]\\w*\\b`),
1083
+ pattern: RegExp(`(\\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\\s+)${Se}[A-Z]\\w*\\b`),
976
1084
  lookbehind: !0,
977
- inside: mt
1085
+ inside: wt
978
1086
  }
979
1087
  ],
980
- keyword: st,
981
- boolean: q,
1088
+ keyword: ct,
1089
+ boolean: K,
982
1090
  function: {
983
1091
  pattern: /\b\w+(?=\()|(::\s*)[a-z_]\w*/,
984
1092
  lookbehind: !0
@@ -989,11 +1097,11 @@ _.java = {
989
1097
  pattern: /(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[%&|^!=<>/*+-]=?)/m,
990
1098
  lookbehind: !0
991
1099
  },
992
- punctuation: te
1100
+ punctuation: ae
993
1101
  };
994
1102
  $(
995
- _.less = ae("css", {
996
- comment: re(),
1103
+ _.less = ie("css", {
1104
+ comment: se(),
997
1105
  atrule: {
998
1106
  pattern: /@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,
999
1107
  inside: {
@@ -1031,7 +1139,7 @@ $(
1031
1139
  }
1032
1140
  }
1033
1141
  );
1034
- _.objc = _.objectivec = ae("c", {
1142
+ _.objc = _.objectivec = ie("c", {
1035
1143
  string: {
1036
1144
  pattern: /@?"(?:\\[^]|[^\\\n"])*"/g,
1037
1145
  greedy: !0
@@ -1040,32 +1148,32 @@ _.objc = _.objectivec = ae("c", {
1040
1148
  operator: /-[->]?|\+\+?|!=?|==?|>>?=?|<<?=?|&&?|\|\|?|[~^@%?/*]/
1041
1149
  });
1042
1150
  delete _.objc["class-name"];
1043
- var Pn = {
1151
+ var Gn = {
1044
1152
  pattern: /^(..)[^]+(?=.)/,
1045
1153
  lookbehind: !0
1046
- }, ot = "(?:([^a-zA-Z\\d\\s{(\\[<=])(?:\\\\[\\s\\S]|(?!\\1)[^\\\\])*\\1|\\((?:\\\\[\\s\\S]|[^\\\\()]|\\((?:\\\\[\\s\\S]|[^\\\\()])*\\))*\\)|\\{(?:\\\\[\\s\\S]|[^\\\\{}]|\\{(?:\\\\[\\s\\S]|[^\\\\{}])*\\})*\\}|\\[(?:\\\\[\\s\\S]|[^\\\\[\\]]|\\[(?:\\\\[\\s\\S]|[^\\\\[\\]])*\\])*\\]|<(?:\\\\[\\s\\S]|[^\\\\<>]|<(?:\\\\[\\s\\S]|[^\\\\<>])*>)*>)", Jt = `(?:"(?:\\\\.|[^\\\\
1047
- "])*"|(?:\\b(?!\\d)\\w+|[^\\s\0-\\x7f]+)[?!]?|\\$.)`, ie = {
1154
+ }, dt = "(?:([^a-zA-Z\\d\\s{(\\[<=])(?:\\\\[\\s\\S]|(?!\\1)[^\\\\])*\\1|\\((?:\\\\[\\s\\S]|[^\\\\()]|\\((?:\\\\[\\s\\S]|[^\\\\()])*\\))*\\)|\\{(?:\\\\[\\s\\S]|[^\\\\{}]|\\{(?:\\\\[\\s\\S]|[^\\\\{}])*\\})*\\}|\\[(?:\\\\[\\s\\S]|[^\\\\[\\]]|\\[(?:\\\\[\\s\\S]|[^\\\\[\\]])*\\])*\\]|<(?:\\\\[\\s\\S]|[^\\\\<>]|<(?:\\\\[\\s\\S]|[^\\\\<>])*>)*>)", nn = `(?:"(?:\\\\.|[^\\\\
1155
+ "])*"|(?:\\b(?!\\d)\\w+|[^\\s\0-\\x7f]+)[?!]?|\\$.)`, oe = {
1048
1156
  pattern: /((?:^|[^\\])(?:\\\\)*)#\{(?:[^{}]|\{[^}]*\})*\}/,
1049
1157
  lookbehind: !0,
1050
1158
  inside: {
1051
- content: Pn,
1159
+ content: Gn,
1052
1160
  delimiter: {
1053
1161
  pattern: /.+/,
1054
1162
  alias: "punctuation"
1055
1163
  }
1056
1164
  }
1057
1165
  };
1058
- Pn.inside = _.rb = _.ruby = {
1166
+ Gn.inside = _.rb = _.ruby = {
1059
1167
  comment: {
1060
1168
  pattern: /#.*|^=begin\s[^]*?^=end/mg,
1061
1169
  greedy: !0
1062
1170
  },
1063
1171
  "string-literal": [
1064
1172
  {
1065
- pattern: RegExp("%[qQiIwWs]?" + ot, "g"),
1173
+ pattern: RegExp("%[qQiIwWs]?" + dt, "g"),
1066
1174
  greedy: !0,
1067
1175
  inside: {
1068
- interpolation: ie,
1176
+ interpolation: oe,
1069
1177
  string: /[^]+/
1070
1178
  }
1071
1179
  },
@@ -1073,7 +1181,7 @@ Pn.inside = _.rb = _.ruby = {
1073
1181
  pattern: /(["'])(?:#\{[^}]+\}|#(?!\{)|\\[^]|(?!\1)[^\\#\n])*\1/g,
1074
1182
  greedy: !0,
1075
1183
  inside: {
1076
- interpolation: ie,
1184
+ interpolation: oe,
1077
1185
  string: /[^]+/
1078
1186
  }
1079
1187
  },
@@ -1089,7 +1197,7 @@ Pn.inside = _.rb = _.ruby = {
1089
1197
  punctuation: /^<<[-~]?/
1090
1198
  }
1091
1199
  },
1092
- interpolation: ie,
1200
+ interpolation: oe,
1093
1201
  string: /[^]+/
1094
1202
  }
1095
1203
  },
@@ -1111,10 +1219,10 @@ Pn.inside = _.rb = _.ruby = {
1111
1219
  ],
1112
1220
  "command-literal": [
1113
1221
  {
1114
- pattern: RegExp("%x" + ot, "g"),
1222
+ pattern: RegExp("%x" + dt, "g"),
1115
1223
  greedy: !0,
1116
1224
  inside: {
1117
- interpolation: ie,
1225
+ interpolation: oe,
1118
1226
  command: {
1119
1227
  pattern: /[^]+/,
1120
1228
  alias: "string"
@@ -1125,7 +1233,7 @@ Pn.inside = _.rb = _.ruby = {
1125
1233
  pattern: /`(?:#\{[^}]+\}|#(?!\{)|\\[^]|[^\\`#\n])*`/g,
1126
1234
  greedy: !0,
1127
1235
  inside: {
1128
- interpolation: ie,
1236
+ interpolation: oe,
1129
1237
  command: {
1130
1238
  pattern: /[^]+/,
1131
1239
  alias: "string"
@@ -1142,10 +1250,10 @@ Pn.inside = _.rb = _.ruby = {
1142
1250
  },
1143
1251
  "regex-literal": [
1144
1252
  {
1145
- pattern: RegExp(`%r${ot}[egimnosux]{0,6}`, "g"),
1253
+ pattern: RegExp(`%r${dt}[egimnosux]{0,6}`, "g"),
1146
1254
  greedy: !0,
1147
1255
  inside: {
1148
- interpolation: ie,
1256
+ interpolation: oe,
1149
1257
  regex: /[^]+/
1150
1258
  }
1151
1259
  },
@@ -1154,7 +1262,7 @@ Pn.inside = _.rb = _.ruby = {
1154
1262
  lookbehind: !0,
1155
1263
  greedy: !0,
1156
1264
  inside: {
1157
- interpolation: ie,
1265
+ interpolation: oe,
1158
1266
  regex: /[^]+/
1159
1267
  }
1160
1268
  }
@@ -1162,13 +1270,13 @@ Pn.inside = _.rb = _.ruby = {
1162
1270
  variable: /[@$]+(?!\d)\w+(?:[?!]|\b)/,
1163
1271
  symbol: [
1164
1272
  {
1165
- pattern: RegExp("(^|[^:]):" + Jt, "g"),
1273
+ pattern: RegExp("(^|[^:]):" + nn, "g"),
1166
1274
  lookbehind: !0,
1167
1275
  greedy: !0
1168
1276
  },
1169
1277
  {
1170
1278
  pattern: RegExp(`([
1171
- {(,][ ]*)` + Jt + "(?=:(?!:))", "g"),
1279
+ {(,][ ]*)` + nn + "(?=:(?!:))", "g"),
1172
1280
  lookbehind: !0,
1173
1281
  greedy: !0
1174
1282
  }
@@ -1184,10 +1292,10 @@ Pn.inside = _.rb = _.ruby = {
1184
1292
  }
1185
1293
  },
1186
1294
  keyword: /\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|f?or|if|in|include|module|new|next|nil|not|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|[tw]hen|throw|undef|unless|until|while|yield)\b/,
1187
- boolean: q,
1295
+ boolean: K,
1188
1296
  builtin: /\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,
1189
1297
  constant: /\b[A-Z][A-Z\d_]*(?:[?!]|\b)/,
1190
- number: Ln,
1298
+ number: Fn,
1191
1299
  "double-colon": {
1192
1300
  pattern: /::/,
1193
1301
  alias: "punctuation"
@@ -1250,14 +1358,14 @@ _.wasm = {
1250
1358
  number: /[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[a-fA-F\d](?:_?[a-fA-F\d])*(?:\.[a-fA-F\d](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[a-fA-F\d](?:_?[\da-fA-D])*)?\b/,
1251
1359
  punctuation: /[()]/
1252
1360
  };
1253
- var me = (e, t) => {
1361
+ var ye = (e, t) => {
1254
1362
  for (var n = 0; n < t; n++)
1255
1363
  e = e.replace(/<self>/g, `(?:${e})`);
1256
1364
  return e.replace(/<self>/g, "[]");
1257
- }, F = (e, t) => e.replace(/<(\d+)>/g, (n, s) => `(?:${t[+s]})`), O = (e, t, n) => RegExp(F(e, t), n), ht = /\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/, ge = _.cpp = ae("c", {
1365
+ }, U = (e, t) => e.replace(/<(\d+)>/g, (n, i) => `(?:${t[+i]})`), O = (e, t, n) => RegExp(U(e, t), n), xt = /\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/, Ee = _.cpp = ie("c", {
1258
1366
  "class-name": [
1259
1367
  {
1260
- pattern: RegExp(`(\\b(?:class|concept|enum|struct|typename)\\s+)(?!${ht.source})\\w+`),
1368
+ pattern: RegExp(`(\\b(?:class|concept|enum|struct|typename)\\s+)(?!${xt.source})\\w+`),
1261
1369
  lookbehind: !0
1262
1370
  },
1263
1371
  // This is intended to capture the class name of method implementations like:
@@ -1272,22 +1380,22 @@ var me = (e, t) => {
1272
1380
  // parameters, so it can't be a namespace (until C++ adds generic namespaces).
1273
1381
  /\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/
1274
1382
  ],
1275
- keyword: ht,
1383
+ keyword: xt,
1276
1384
  number: {
1277
1385
  pattern: /(?:\b0b[01']+|\b0x(?:[a-f\d']+(?:\.[a-f\d']*)?|\.[a-f\d']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/gi,
1278
1386
  greedy: !0
1279
1387
  },
1280
1388
  operator: /->|--|\+\+|&&|\|\||[?:~]|<=>|>>=?|<<=?|[%&|^!=<>/*+-]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|x?or|x?or_eq)\b/,
1281
- boolean: q
1389
+ boolean: K
1282
1390
  });
1283
- $(ge, "string", {
1391
+ $(Ee, "string", {
1284
1392
  module: {
1285
1393
  // https://en.cppreference.com/w/cpp/language/modules
1286
1394
  pattern: O(
1287
1395
  `(\\b(?:import|module)\\s+)(?:"(?:\\\\[\\s\\S]|[^\\\\
1288
1396
  "])*"|<[^<>
1289
1397
  ]*>|<0>(?:\\s*:\\s*<0>)?|:\\s*<0>)`,
1290
- [`\\b(?!${ht.source})\\w+(?:\\s*\\.\\s*\\w+)*\\b`],
1398
+ [`\\b(?!${xt.source})\\w+(?:\\s*\\.\\s*\\w+)*\\b`],
1291
1399
  "g"
1292
1400
  ),
1293
1401
  lookbehind: !0,
@@ -1304,7 +1412,7 @@ $(ge, "string", {
1304
1412
  alias: "string"
1305
1413
  }
1306
1414
  });
1307
- $(ge, "keyword", {
1415
+ $(Ee, "keyword", {
1308
1416
  "generic-function": {
1309
1417
  pattern: /\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,
1310
1418
  inside: {
@@ -1312,34 +1420,34 @@ $(ge, "keyword", {
1312
1420
  generic: {
1313
1421
  pattern: /<[^]+/,
1314
1422
  alias: "class-name",
1315
- inside: ge
1423
+ inside: Ee
1316
1424
  }
1317
1425
  }
1318
1426
  }
1319
1427
  });
1320
- $(ge, "operator", {
1428
+ $(Ee, "operator", {
1321
1429
  "double-colon": {
1322
1430
  pattern: /::/,
1323
1431
  alias: "punctuation"
1324
1432
  }
1325
1433
  });
1326
- var $n = Object.assign({}, ge);
1327
- $(ge, "class-name", {
1434
+ var zn = Object.assign({}, Ee);
1435
+ $(Ee, "class-name", {
1328
1436
  // the base clause is an optional list of parent classes
1329
1437
  // https://en.cppreference.com/w/cpp/language/class
1330
1438
  "base-clause": {
1331
1439
  pattern: /(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/g,
1332
1440
  lookbehind: !0,
1333
1441
  greedy: !0,
1334
- inside: $n
1442
+ inside: zn
1335
1443
  }
1336
1444
  });
1337
- $($n, "double-colon", {
1445
+ $(zn, "double-colon", {
1338
1446
  // All untokenized words that are not namespaces should be class names
1339
1447
  "class-name": /\b[a-z_]\w*\b(?!\s*::)/i
1340
1448
  });
1341
1449
  _.go = {
1342
- comment: re(),
1450
+ comment: se(),
1343
1451
  char: {
1344
1452
  pattern: /'(?:\\.|[^\\\n']){0,10}'/g,
1345
1453
  greedy: !0
@@ -1361,18 +1469,18 @@ _.go = {
1361
1469
  /(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i
1362
1470
  ],
1363
1471
  operator: /--|\+\+|&&|\|\||&\^=?|<-|<<=?|>>=?|[%&|^!=<>/*+-]=?|:=|\.{3}/,
1364
- punctuation: te,
1472
+ punctuation: ae,
1365
1473
  builtin: /\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/
1366
1474
  };
1367
- var lt = {};
1368
- _.js = _.javascript = Object.assign(lt, {
1475
+ var ut = {};
1476
+ _.js = _.javascript = Object.assign(ut, {
1369
1477
  "doc-comment": {
1370
1478
  pattern: /\/\*\*(?!\/)[^]*?(?:\*\/|$)/g,
1371
1479
  greedy: !0,
1372
1480
  alias: "comment",
1373
1481
  inside: "jsdoc"
1374
1482
  },
1375
- comment: re(),
1483
+ comment: se(),
1376
1484
  hashbang: {
1377
1485
  pattern: /^#!.*/g,
1378
1486
  greedy: !0,
@@ -1394,7 +1502,7 @@ _.js = _.javascript = Object.assign(lt, {
1394
1502
  pattern: /^\$\{|\}$/,
1395
1503
  alias: "punctuation"
1396
1504
  },
1397
- [j]: lt
1505
+ [Y]: ut
1398
1506
  }
1399
1507
  },
1400
1508
  string: /[^]+/
@@ -1406,7 +1514,7 @@ _.js = _.javascript = Object.assign(lt, {
1406
1514
  greedy: !0,
1407
1515
  alias: "property"
1408
1516
  },
1409
- string: Tt(),
1517
+ string: Mt(),
1410
1518
  regex: {
1411
1519
  pattern: /((?:^|[^$\w\xa0-\uffff"'`.)\]\s]|\b(?:return|yield))\s*)\/(?:(?:\[(?:\\.|[^\\\n\]])*\]|\\.|[^\\\n/[])+\/[dgimyus]{0,7}|(?:\[(?:\\.|[^\\\n[\]]|\[(?:\\.|[^\\\n[\]]|\[(?:\\.|[^\\\n[\]])*\])*\])*\]|\\.|[^\\\n/[])+\/[dgimyus]{0,7}v[dgimyus]{0,7})(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?!\/\*|[^()[\]{}.,:;?`\n%&|^!=<>/*+-]))/g,
1412
1520
  lookbehind: !0,
@@ -1450,7 +1558,7 @@ _.js = _.javascript = Object.assign(lt, {
1450
1558
  ].map((e) => ({
1451
1559
  pattern: e,
1452
1560
  lookbehind: !0,
1453
- inside: lt
1561
+ inside: ut
1454
1562
  })),
1455
1563
  constant: /\b[A-Z](?:[A-Z_]|\dx?)*\b/,
1456
1564
  keyword: [
@@ -1469,7 +1577,7 @@ _.js = _.javascript = Object.assign(lt, {
1469
1577
  lookbehind: !0
1470
1578
  }
1471
1579
  ],
1472
- boolean: q,
1580
+ boolean: K,
1473
1581
  // Allow for all non-ASCII characters (See http://stackoverflow.com/a/2008444)
1474
1582
  function: {
1475
1583
  pattern: /#?(?!\d)(?:(?!\s)[$\w\xa0-\uffff])+(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,
@@ -1506,26 +1614,26 @@ _.js = _.javascript = Object.assign(lt, {
1506
1614
  },
1507
1615
  punctuation: /\?\.|[()[\]{}.,:;]/
1508
1616
  });
1509
- var Dn = (e) => (t, n) => {
1510
- for (var s = St(e), l = "", u = [], f = 0, E = Se(t, n), y = 0, v = E.length, g = 0; y < v; ) {
1617
+ var Hn = (e) => (t, n) => {
1618
+ for (var i = Ct(e), l = "", u = [], b = 0, E = Oe(t, n), y = 0, v = E.length, g = 0; y < v; ) {
1511
1619
  var m = E[y++], p = m.length, c = m.type;
1512
- c && c.slice(0, 6) != "ignore" ? (u[f++] = [g, m], l += " ".repeat(p)) : l += t.slice(g, g + p), g += p;
1620
+ c && c.slice(0, 6) != "ignore" ? (u[b++] = [g, m], l += " ".repeat(p)) : l += t.slice(g, g + p), g += p;
1513
1621
  }
1514
- var b = 0, g = 0, a = (d) => {
1515
- for (var o = 0; b < f && o < d.length; o++) {
1516
- var i = d[o], h = i.content;
1622
+ var f = 0, g = 0, a = (d) => {
1623
+ for (var o = 0; f < b && o < d.length; o++) {
1624
+ var s = d[o], h = s.content;
1517
1625
  if (Array.isArray(h))
1518
1626
  a(h);
1519
1627
  else {
1520
- for (var k = i.length, I = [], w, S, x = 0, T = g; ([w, S] = u[b], w >= g && w < g + k) && (T < w && (I[x++] = l.slice(T, w)), T = w + S.length, I[x++] = S, ++b != f); )
1628
+ for (var R = s.length, A = [], w, S, N = 0, T = g; ([w, S] = u[f], w >= g && w < g + R) && (T < w && (A[N++] = l.slice(T, w)), T = w + S.length, A[N++] = S, ++f != b); )
1521
1629
  ;
1522
- g += k, x && (T < g && (I[x++] = l.slice(T, g)), h ? i.content = I : (d.splice(o, 1, ...I), o += x - 1));
1630
+ g += R, N && (T < g && (A[N++] = l.slice(T, g)), h ? s.content = A : (d.splice(o, 1, ...A), o += N - 1));
1523
1631
  }
1524
1632
  }
1525
- }, r = s ? ke(l, s) : [l];
1633
+ }, r = i ? Ne(l, i) : [l];
1526
1634
  return a(r), r;
1527
- }, Fn = _.js, xt = Fn["template-string"], ma = xt.pattern.source, ha = xt.inside.interpolation.pattern, de = (e, t) => ({
1528
- pattern: RegExp("((?:" + t + ")\\s*)" + ma, "g"),
1635
+ }, Vn = _.js, Pt = Vn["template-string"], Ra = Pt.pattern.source, Sa = Pt.inside.interpolation.pattern, fe = (e, t) => ({
1636
+ pattern: RegExp("((?:" + t + ")\\s*)" + Ra, "g"),
1529
1637
  lookbehind: !0,
1530
1638
  greedy: !0,
1531
1639
  inside: {
@@ -1537,7 +1645,7 @@ var Dn = (e) => (t, n) => {
1537
1645
  pattern: /[^]+/,
1538
1646
  inside: {
1539
1647
  interpolation: {
1540
- pattern: ha,
1648
+ pattern: Sa,
1541
1649
  lookbehind: !0,
1542
1650
  alias: "language-javascript",
1543
1651
  inside: {
@@ -1545,46 +1653,46 @@ var Dn = (e) => (t, n) => {
1545
1653
  pattern: /^\$\{|\}$/,
1546
1654
  alias: "punctuation"
1547
1655
  },
1548
- [j]: "js"
1656
+ [Y]: "js"
1549
1657
  }
1550
1658
  },
1551
- [J]: Dn(e)
1659
+ [ee]: Hn(e)
1552
1660
  }
1553
1661
  }
1554
1662
  }
1555
1663
  });
1556
- Fn["template-string"] = [
1664
+ Vn["template-string"] = [
1557
1665
  // styled-jsx:
1558
1666
  // css`a { color: #25F; }`
1559
1667
  // styled-components:
1560
1668
  // styled.h1`color: red;`
1561
- de("css", "\\b(?:styled(?:\\([^)]*\\))?(?:\\s*\\.\\s*\\w+(?:\\([^)]*\\))*)*|css(?:\\s*\\.\\s*(?:global|resolve))?|createGlobalStyle|keyframes)"),
1669
+ fe("css", "\\b(?:styled(?:\\([^)]*\\))?(?:\\s*\\.\\s*\\w+(?:\\([^)]*\\))*)*|css(?:\\s*\\.\\s*(?:global|resolve))?|createGlobalStyle|keyframes)"),
1562
1670
  // html`<p></p>`
1563
1671
  // div.innerHTML = `<p></p>`
1564
- de("html", "\\bhtml|\\.\\s*(?:inner|outer)HTML\\s*\\+?="),
1672
+ fe("html", "\\bhtml|\\.\\s*(?:inner|outer)HTML\\s*\\+?="),
1565
1673
  // svg`<path fill="#fff" d="M55.37 ..."/>`
1566
- de("svg", "\\bsvg"),
1674
+ fe("svg", "\\bsvg"),
1567
1675
  // md`# h1`, markdown`## h2`
1568
- de("markdown", "\\b(?:markdown|md)"),
1676
+ fe("markdown", "\\b(?:markdown|md)"),
1569
1677
  // gql`...`, graphql`...`, graphql.experimental`...`
1570
- de("graphql", "\\b(?:gql|graphql(?:\\s*\\.\\s*experimental)?)"),
1678
+ fe("graphql", "\\b(?:gql|graphql(?:\\s*\\.\\s*experimental)?)"),
1571
1679
  // sql`...`
1572
- de("sql", "\\bsql"),
1680
+ fe("sql", "\\bsql"),
1573
1681
  // vanilla template string
1574
- xt
1682
+ Pt
1575
1683
  ];
1576
- var De = "\\s|//.*(?!.)|/\\*(?:[^*]|\\*(?!/))*\\*/", _t = "\\{(?:[^{}]|\\{(?:[^{}]|\\{[^}]*\\})*\\})*\\}", en = F("\\{<0>*\\.{3}(?:[^{}]|<1>)*\\}", [De, _t]), tn = (e) => e && (!e.type || e.type == "plain-text"), _a = (e, t, n) => {
1577
- for (var s = 0, l = [], u = 0; s < e.length; s++) {
1578
- var f = e[s], E = f.length, y = f.type, v = !y, m, p, c, b, g;
1579
- y && (g = f.content, y == "tag" ? (c = g[0].length, p = g[2] ? t.substr(n + c, g[1].length) : "", c > 1 ? u && l[u - 1][0] == p && u-- : g[g.length - 1].length < 2 && (l[u++] = [p, 0])) : u && y == "punctuation" ? (m = l[u - 1], g == "{" ? m[1]++ : m[1] && g == "}" ? m[1]-- : v = !"}()[]".includes(g)) : v = !0), v && u && !l[u - 1][1] && (c = n, tn(e[s + 1]) && (E += e[s + 1].length, e.splice(s + 1, 1)), tn(e[s - 1]) && (c -= e[--s].length, e.splice(s, 1)), b = t.slice(c, n + E), e[s] = new ue("plain-text", b, b)), n += E;
1684
+ var Ge = "\\s|//.*(?!.)|/\\*(?:[^*]|\\*(?!/))*\\*/", At = "\\{(?:[^{}]|\\{(?:[^{}]|\\{[^}]*\\})*\\})*\\}", an = U("\\{<0>*\\.{3}(?:[^{}]|<1>)*\\}", [Ge, At]), rn = (e) => e && (!e.type || e.type == "plain-text"), ka = (e, t, n) => {
1685
+ for (var i = 0, l = [], u = 0; i < e.length; i++) {
1686
+ var b = e[i], E = b.length, y = b.type, v = !y, m, p, c, f, g;
1687
+ y && (g = b.content, y == "tag" ? (c = g[0].length, p = g[2] ? t.substr(n + c, g[1].length) : "", c > 1 ? u && l[u - 1][0] == p && u-- : g[g.length - 1].length < 2 && (l[u++] = [p, 0])) : u && y == "punctuation" ? (m = l[u - 1], g == "{" ? m[1]++ : m[1] && g == "}" ? m[1]-- : v = !"}()[]".includes(g)) : v = !0), v && u && !l[u - 1][1] && (c = n, rn(e[i + 1]) && (E += e[i + 1].length, e.splice(i + 1, 1)), rn(e[i - 1]) && (c -= e[--i].length, e.splice(i, 1)), f = t.slice(c, n + E), e[i] = new be("plain-text", f, f)), n += E;
1580
1688
  }
1581
1689
  return e;
1582
- }, Un = (e, t) => {
1583
- $(_[t] = e = Ye(e), "regex", {
1690
+ }, Zn = (e, t) => {
1691
+ $(_[t] = e = et(e), "regex", {
1584
1692
  tag: {
1585
1693
  pattern: O(
1586
1694
  `</?(?:(?!\\d)[^\\s/=><%]+(?:<0>(?:<0>*(?:[^\\s<>/={*]+(?:<0>*=<0>*(?!\\s)(?:"[^"]*"|'[^']*'|<1>)?|(?=[\\s/>]))|<2>))+)?<0>*/?)?>`,
1587
- [De, _t, en],
1695
+ [Ge, At, an],
1588
1696
  "g"
1589
1697
  ),
1590
1698
  greedy: !0,
@@ -1599,18 +1707,18 @@ var De = "\\s|//.*(?!.)|/\\*(?:[^*]|\\*(?!/))*\\*/", _t = "\\{(?:[^{}]|\\{(?:[^{
1599
1707
  },
1600
1708
  script: {
1601
1709
  // Allow for two levels of nesting
1602
- pattern: O("(=<0>*)<1>", [De, _t]),
1710
+ pattern: O("(=<0>*)<1>", [Ge, At]),
1603
1711
  lookbehind: !0,
1604
1712
  alias: t = "language-" + t,
1605
1713
  inside: e
1606
1714
  },
1607
1715
  spread: {
1608
- pattern: RegExp(en),
1716
+ pattern: RegExp(an),
1609
1717
  alias: t,
1610
1718
  inside: e
1611
1719
  },
1612
1720
  "attr-value": {
1613
- pattern: O(`(=<0>*)(?:"[^"]*"|'[^']*')`, [De]),
1721
+ pattern: O(`(=<0>*)(?:"[^"]*"|'[^']*')`, [Ge]),
1614
1722
  lookbehind: !0,
1615
1723
  inside: {
1616
1724
  punctuation: /^["']|["']$/
@@ -1626,9 +1734,9 @@ var De = "\\s|//.*(?!.)|/\\*(?:[^*]|\\*(?!/))*\\*/", _t = "\\{(?:[^{}]|\\{(?:[^{
1626
1734
  }
1627
1735
  }
1628
1736
  }
1629
- }), e[J] = (n, s) => _a(Se(n, s), n, 0);
1737
+ }), e[ee] = (n, i) => ka(Oe(n, i), n, 0);
1630
1738
  };
1631
- Un(_.js, "jsx");
1739
+ Zn(_.js, "jsx");
1632
1740
  _.lua = {
1633
1741
  comment: /^#!.+|--(?:\[(=*)\[[^]*?\]\1\]|.*)/m,
1634
1742
  // \z may be used to skip the following space
@@ -1646,7 +1754,7 @@ _.lua = {
1646
1754
  },
1647
1755
  punctuation: /[()[\]{},;]|\.+|:+/
1648
1756
  };
1649
- var Ce = "(?:\\((?:\\\\[\\s\\S]|[^\\\\()])*\\)|\\{(?:\\\\[\\s\\S]|[^\\\\{}])*\\}|\\[(?:\\\\[\\s\\S]|[^\\\\[\\]])*\\]|<(?:\\\\[\\s\\S]|[^\\\\<>])*>)", nn = "(?![a-zA-Zd])\\s*(?:([^a-zA-Zd\\s{([<])(?:\\\\[^]|(?!\\1)[^\\\\])*\\1|([a-zA-Zd])(?:\\\\[^]|(?!\\2)[^\\\\])*\\2";
1757
+ var De = "(?:\\((?:\\\\[\\s\\S]|[^\\\\()])*\\)|\\{(?:\\\\[\\s\\S]|[^\\\\{}])*\\}|\\[(?:\\\\[\\s\\S]|[^\\\\[\\]])*\\]|<(?:\\\\[\\s\\S]|[^\\\\<>])*>)", sn = "(?![a-zA-Zd])\\s*(?:([^a-zA-Zd\\s{([<])(?:\\\\[^]|(?!\\1)[^\\\\])*\\1|([a-zA-Zd])(?:\\\\[^]|(?!\\2)[^\\\\])*\\2";
1650
1758
  _.perl = {
1651
1759
  comment: [
1652
1760
  {
@@ -1664,7 +1772,7 @@ _.perl = {
1664
1772
  // TODO Could be nice to handle Heredoc too.
1665
1773
  string: {
1666
1774
  pattern: RegExp(
1667
- `\\bq[qwx]?${nn}|${Ce})|("|\`)(?:\\\\[^]|(?!\\3)[^\\\\])*\\3|'(?:\\\\.|[^\\\\
1775
+ `\\bq[qwx]?${sn}|${De})|("|\`)(?:\\\\[^]|(?!\\3)[^\\\\])*\\3|'(?:\\\\.|[^\\\\
1668
1776
  '])*'`,
1669
1777
  "g"
1670
1778
  ),
@@ -1673,7 +1781,7 @@ _.perl = {
1673
1781
  regex: [
1674
1782
  {
1675
1783
  pattern: RegExp(
1676
- `\\b(?:m|qr)${nn}|${Ce})[msixpodualngc]*`,
1784
+ `\\b(?:m|qr)${sn}|${De})[msixpodualngc]*`,
1677
1785
  "g"
1678
1786
  ),
1679
1787
  greedy: !0
@@ -1681,7 +1789,7 @@ _.perl = {
1681
1789
  // The lookbehinds prevent -s from breaking
1682
1790
  {
1683
1791
  pattern: RegExp(
1684
- `(^|[^-])\\b(?:s|tr|y)(?![a-zA-Zd])\\s*(?:([^a-zA-Zd\\s{([<])(?:\\\\[^]|(?!\\2)[^\\\\])*\\2(?:\\\\[^]|(?!\\2)[^\\\\])*\\2|([a-zA-Zd])(?:\\\\[^]|(?!\\3)[^\\\\])*\\3(?:\\\\[^]|(?!\\3)[^\\\\])*\\3|${Ce}\\s*${Ce})[msixpodualngcer]*`,
1792
+ `(^|[^-])\\b(?:s|tr|y)(?![a-zA-Zd])\\s*(?:([^a-zA-Zd\\s{([<])(?:\\\\[^]|(?!\\2)[^\\\\])*\\2(?:\\\\[^]|(?!\\2)[^\\\\])*\\2|([a-zA-Zd])(?:\\\\[^]|(?!\\3)[^\\\\])*\\3(?:\\\\[^]|(?!\\3)[^\\\\])*\\3|${De}\\s*${De})[msixpodualngcer]*`,
1685
1793
  "g"
1686
1794
  ),
1687
1795
  lookbehind: !0,
@@ -1717,7 +1825,7 @@ _.perl = {
1717
1825
  operator: /-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|->|=>|=~|~~|<=>?|!~|--|\+\+|(?:\*\*|\/\/|&&|\|\||<<|>>|[~%&|^!=<>/*+-])=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:and|cmp|eq|[gl][et]|ne|not|x?or)\b/,
1718
1826
  punctuation: /[()[\]{},:;]/
1719
1827
  };
1720
- var an = {
1828
+ var on = {
1721
1829
  "format-spec": {
1722
1830
  pattern: /(:)[^(){}:]+(?=\}$)/,
1723
1831
  lookbehind: !0
@@ -1727,7 +1835,7 @@ var an = {
1727
1835
  alias: "punctuation"
1728
1836
  }
1729
1837
  };
1730
- an[j] = _.py = _.python = {
1838
+ on[Y] = _.py = _.python = {
1731
1839
  comment: {
1732
1840
  pattern: /#.*/g,
1733
1841
  greedy: !0
@@ -1740,7 +1848,7 @@ an[j] = _.py = _.python = {
1740
1848
  // "{" <expression> <optional "!s", "!r", or "!a"> <optional ":" format specifier> "}"
1741
1849
  pattern: /((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})*\}/,
1742
1850
  lookbehind: !0,
1743
- inside: an
1851
+ inside: on
1744
1852
  },
1745
1853
  string: /[^]+/
1746
1854
  }
@@ -1775,23 +1883,23 @@ an[j] = _.py = _.python = {
1775
1883
  boolean: /\b(?:False|True|None)\b/,
1776
1884
  number: /\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f\d])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,
1777
1885
  operator: /!=|:=|\*\*=?|\/\/=?|<>|>>|<<|[%=<>/*+-]=?|[&|^~]/,
1778
- punctuation: te
1886
+ punctuation: ae
1779
1887
  };
1780
- var Ea = me("/\\*(?:[^*/]|\\*(?!/)|/(?!\\*)|<self>)*\\*/", 2), rn = {
1888
+ var Ta = ye("/\\*(?:[^*/]|\\*(?!/)|/(?!\\*)|<self>)*\\*/", 2), ln = {
1781
1889
  pattern: /b?"(?:\\[^]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/g,
1782
1890
  greedy: !0
1783
- }, sn = {
1891
+ }, cn = {
1784
1892
  "closure-punctuation": {
1785
1893
  pattern: /^\||\|$/,
1786
1894
  alias: "punctuation"
1787
1895
  }
1788
1896
  };
1789
- sn[j] = _.rust = {
1897
+ cn[Y] = _.rust = {
1790
1898
  comment: {
1791
- pattern: RegExp("//.*|" + Ea, "g"),
1899
+ pattern: RegExp("//.*|" + Ta, "g"),
1792
1900
  greedy: !0
1793
1901
  },
1794
- string: rn,
1902
+ string: ln,
1795
1903
  char: {
1796
1904
  pattern: /b?'(?:\\(?:x[0-7][a-fA-F\d]|u\{(?:[a-fA-F\d]_*){1,6}\}|.)|[^\\\n '])'/g,
1797
1905
  greedy: !0
@@ -1801,7 +1909,7 @@ sn[j] = _.rust = {
1801
1909
  greedy: !0,
1802
1910
  alias: "attr-name",
1803
1911
  inside: {
1804
- string: rn
1912
+ string: ln
1805
1913
  }
1806
1914
  },
1807
1915
  // Closure params should not be confused with bitwise OR |
@@ -1809,7 +1917,7 @@ sn[j] = _.rust = {
1809
1917
  pattern: /([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/g,
1810
1918
  lookbehind: !0,
1811
1919
  greedy: !0,
1812
- inside: sn
1920
+ inside: cn
1813
1921
  },
1814
1922
  "lifetime-annotation": {
1815
1923
  pattern: /'\w+/,
@@ -1868,11 +1976,11 @@ sn[j] = _.rust = {
1868
1976
  },
1869
1977
  // Hex, oct, bin, dec numbers with visual separators and type suffix
1870
1978
  number: /\b(?:0x[a-fA-F\d](?:_?[a-fA-F\d])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,
1871
- boolean: q,
1979
+ boolean: K,
1872
1980
  punctuation: /->|\.\.=|\.{1,3}|::|[()[\]{},:;]/,
1873
1981
  operator: /&&|\|\||=>|>>=?|<<=?|[%&|^!=<>/*+-]=?|[@?]/
1874
1982
  };
1875
- var on = _.swift = {
1983
+ var dn = _.swift = {
1876
1984
  comment: {
1877
1985
  // Nested comments are supported up to 2 levels
1878
1986
  pattern: /\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\//g,
@@ -1920,7 +2028,7 @@ var on = _.swift = {
1920
2028
  alias: "property",
1921
2029
  inside: {
1922
2030
  "directive-name": /^#\w+/,
1923
- boolean: q,
2031
+ boolean: K,
1924
2032
  number: /\b\d+(?:\.\d+)*\b/,
1925
2033
  operator: /!|&&|\|\||[<>]=?/,
1926
2034
  punctuation: /[(),]/
@@ -1950,7 +2058,7 @@ var on = _.swift = {
1950
2058
  alias: "important"
1951
2059
  },
1952
2060
  keyword: /\b(?:Any|[Pp]rotocol|[Ss]elf|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|[gs]et|guard|higherThan|i[fns]|import|indirect|infix|init|inout|internal|isolated|lazy|lef?t|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|public|repeat|required|rethrows|return|right|safe|some|static|struct|subscript|super|switch|throws?|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,
1953
- boolean: q,
2061
+ boolean: K,
1954
2062
  nil: {
1955
2063
  pattern: /\bnil\b/,
1956
2064
  alias: "constant"
@@ -1971,12 +2079,12 @@ var on = _.swift = {
1971
2079
  operator: /[~?%&|^!=<>/*+-]+|\.[.~?%&|^!=<>/*+-]+/,
1972
2080
  punctuation: /[()[\]{}.,:;\\]/
1973
2081
  };
1974
- on["string-literal"].forEach((e) => {
1975
- e.inside.interpolation.inside = on;
2082
+ dn["string-literal"].forEach((e) => {
2083
+ e.inside.interpolation.inside = dn;
1976
2084
  });
1977
2085
  _.clike = {
1978
- comment: re(),
1979
- string: Tt(),
2086
+ comment: se(),
2087
+ string: Mt(),
1980
2088
  "class-name": {
1981
2089
  pattern: /(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,
1982
2090
  lookbehind: !0,
@@ -1985,26 +2093,26 @@ _.clike = {
1985
2093
  }
1986
2094
  },
1987
2095
  keyword: /\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,
1988
- boolean: q,
2096
+ boolean: K,
1989
2097
  function: /\b\w+(?=\()/,
1990
- number: Ln,
2098
+ number: Fn,
1991
2099
  operator: /[!=]==|[!=<>]=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,
1992
- punctuation: te
2100
+ punctuation: ae
1993
2101
  };
1994
- var Xe = (e) => `\\b(?:${e})\\b`, Bn = "bool|char|decimal|double|dynamic|float|object|s?byte|string|u?int|u?long|u?short|var|void", Qe = "class|enum|interface|record|struct", Gn = "add|alias|and|ascending|async|await|by|descending|from(?!\\s*[^\\s\\w])|[gls]et|global|group|into|init(?=\\s*;)|join|nameof|not|notnull|on|or|orderby|partial|remove|select|unmanaged|value|when|where|with(?=\\s*{)", Ot = "abstract|as|[bc]ase|break|catch|checked|const|continue|default|delegate|do|else|event|explicit|extern|finally|fixed|for|foreach|goto|i[fns]|implicit|internal|lock|namespace|new|null|operator|out|override|params|private|protected|public|readonly|ref|return|sealed|sizeof|stackalloc|static|switch|this|throw|try|typeof|unchecked|unsafe|using|virtual|volatile|while|yield", zn = Xe(Qe), He = RegExp(Xe(Bn + "|" + Qe + "|" + Gn + "|" + Ot)), ya = Xe(Qe + "|" + Gn + "|" + Ot), va = Xe(Bn + "|" + Qe + "|" + Ot), Ve = me("<(?:[^<>;=*/%&|^+-]|<self>)*>", 2), Fe = me("\\((?:[^()]|<self>)*\\)", 2), Q = "@?\\b(?!\\d)\\w+\\b", Ze = F("<0>(?:\\s*<1>)?", [Q, Ve]), le = F("(?!<0>)<1>(?:\\s*\\.\\s*<1>)*", [ya, Ze]), Nt = "\\[\\s*(?:,\\s*)*\\]", wa = F("<0>(?:\\s*(?:\\?\\s*)?<1>)*(?:\\s*\\?)?", [le, Nt]), Aa = F("[^()[\\],;%&|^=<>/*+-]|<0>|<1>|<2>", [Ve, Fe, Nt]), Ia = F("\\(<0>+(?:,<0>+)+\\)", [Aa]), pe = F("(?:<0>|<1>)(?:\\s*(?:\\?\\s*)?<2>)*(?:\\s*\\?)?", [Ia, le, Nt]), W = {
1995
- keyword: He,
2102
+ var tt = (e) => `\\b(?:${e})\\b`, qn = "bool|char|decimal|double|dynamic|float|object|s?byte|string|u?int|u?long|u?short|var|void", nt = "class|enum|interface|record|struct", Kn = "add|alias|and|ascending|async|await|by|descending|from(?!\\s*[^\\s\\w])|[gls]et|global|group|into|init(?=\\s*;)|join|nameof|not|notnull|on|or|orderby|partial|remove|select|unmanaged|value|when|where|with(?=\\s*{)", $t = "abstract|as|[bc]ase|break|catch|checked|const|continue|default|delegate|do|else|event|explicit|extern|finally|fixed|for|foreach|goto|i[fns]|implicit|internal|lock|namespace|new|null|operator|out|override|params|private|protected|public|readonly|ref|return|sealed|sizeof|stackalloc|static|switch|this|throw|try|typeof|unchecked|unsafe|using|virtual|volatile|while|yield", Wn = tt(nt), Ke = RegExp(tt(qn + "|" + nt + "|" + Kn + "|" + $t)), Na = tt(nt + "|" + Kn + "|" + $t), Oa = tt(qn + "|" + nt + "|" + $t), We = ye("<(?:[^<>;=*/%&|^+-]|<self>)*>", 2), ze = ye("\\((?:[^()]|<self>)*\\)", 2), J = "@?\\b(?!\\d)\\w+\\b", je = U("<0>(?:\\s*<1>)?", [J, We]), de = U("(?!<0>)<1>(?:\\s*\\.\\s*<1>)*", [Na, je]), Dt = "\\[\\s*(?:,\\s*)*\\]", La = U("<0>(?:\\s*(?:\\?\\s*)?<1>)*(?:\\s*\\?)?", [de, Dt]), Ca = U("[^()[\\],;%&|^=<>/*+-]|<0>|<1>|<2>", [We, ze, Dt]), Ma = U("\\(<0>+(?:,<0>+)+\\)", [Ca]), ge = U("(?:<0>|<1>)(?:\\s*(?:\\?\\s*)?<2>)*(?:\\s*\\?)?", [Ma, de, Dt]), j = {
2103
+ keyword: Ke,
1996
2104
  punctuation: /[()[\].,:<>?]/
1997
- }, Hn = `'(?:\\\\.|[^
1998
- '\\\\]|\\\\[Uux][a-fA-F\\d]{1,8})'`, Vn = `"(?:\\\\.|[^\\\\
1999
- "])*"`, Ra = '@"(?:""|\\\\[\\s\\S]|[^\\\\"])*"(?!")', ne = _.dotnet = _.cs = _.csharp = ae("clike", {
2105
+ }, jn = `'(?:\\\\.|[^
2106
+ '\\\\]|\\\\[Uux][a-fA-F\\d]{1,8})'`, Yn = `"(?:\\\\.|[^\\\\
2107
+ "])*"`, Pa = '@"(?:""|\\\\[\\s\\S]|[^\\\\"])*"(?!")', re = _.dotnet = _.cs = _.csharp = ie("clike", {
2000
2108
  string: [
2001
2109
  {
2002
- pattern: O("(^|[^$\\\\])<0>", [Ra], "g"),
2110
+ pattern: O("(^|[^$\\\\])<0>", [Pa], "g"),
2003
2111
  lookbehind: !0,
2004
2112
  greedy: !0
2005
2113
  },
2006
2114
  {
2007
- pattern: O("(^|[^@$\\\\])<0>", [Vn], "g"),
2115
+ pattern: O("(^|[^@$\\\\])<0>", [Yn], "g"),
2008
2116
  lookbehind: !0,
2009
2117
  greedy: !0
2010
2118
  }
@@ -2013,84 +2121,84 @@ var Xe = (e) => `\\b(?:${e})\\b`, Bn = "bool|char|decimal|double|dynamic|float|o
2013
2121
  {
2014
2122
  // Using static
2015
2123
  // using static System.Math;
2016
- pattern: O("(\\busing\\s+static\\s+)<0>(?=\\s*;)", [le]),
2124
+ pattern: O("(\\busing\\s+static\\s+)<0>(?=\\s*;)", [de]),
2017
2125
  lookbehind: !0,
2018
- inside: W
2126
+ inside: j
2019
2127
  },
2020
2128
  {
2021
2129
  // Using alias (type)
2022
2130
  // using Project = PC.MyCompany.Project;
2023
- pattern: O("(\\busing\\s+<0>\\s*=\\s*)<1>(?=\\s*;)", [Q, pe]),
2131
+ pattern: O("(\\busing\\s+<0>\\s*=\\s*)<1>(?=\\s*;)", [J, ge]),
2024
2132
  lookbehind: !0,
2025
- inside: W
2133
+ inside: j
2026
2134
  },
2027
2135
  {
2028
2136
  // Using alias (alias)
2029
2137
  // using Project = PC.MyCompany.Project;
2030
- pattern: O("(\\busing\\s+)<0>(?=\\s*=)", [Q]),
2138
+ pattern: O("(\\busing\\s+)<0>(?=\\s*=)", [J]),
2031
2139
  lookbehind: !0
2032
2140
  },
2033
2141
  {
2034
2142
  // Type declarations
2035
2143
  // class Foo<A, B>
2036
2144
  // interface Foo<out A, B>
2037
- pattern: O("(\\b<0>\\s+)<1>", [zn, Ze]),
2145
+ pattern: O("(\\b<0>\\s+)<1>", [Wn, je]),
2038
2146
  lookbehind: !0,
2039
- inside: W
2147
+ inside: j
2040
2148
  },
2041
2149
  {
2042
2150
  // Single catch exception declaration
2043
2151
  // catch(Foo)
2044
2152
  // (things like catch(Foo e) is covered by variable declaration)
2045
- pattern: O("(\\bcatch\\s*\\(\\s*)<0>", [le]),
2153
+ pattern: O("(\\bcatch\\s*\\(\\s*)<0>", [de]),
2046
2154
  lookbehind: !0,
2047
- inside: W
2155
+ inside: j
2048
2156
  },
2049
2157
  {
2050
2158
  // Name of the type parameter of generic constraints
2051
2159
  // where Foo : class
2052
- pattern: O("(\\bwhere\\s+)<0>", [Q]),
2160
+ pattern: O("(\\bwhere\\s+)<0>", [J]),
2053
2161
  lookbehind: !0
2054
2162
  },
2055
2163
  {
2056
2164
  // Casts and checks via as and is.
2057
2165
  // as Foo<A>, is Bar<B>
2058
2166
  // (things like if(a is Foo b) is covered by variable declaration)
2059
- pattern: O("(\\b(?:is(?:\\s+not)?|as)\\s+)<0>", [wa]),
2167
+ pattern: O("(\\b(?:is(?:\\s+not)?|as)\\s+)<0>", [La]),
2060
2168
  lookbehind: !0,
2061
- inside: W
2169
+ inside: j
2062
2170
  },
2063
2171
  {
2064
2172
  // Variable, field and parameter declaration
2065
2173
  // (Foo bar, Bar baz, Foo[,,] bay, Foo<Bar, FooBar<Bar>> bax)
2066
- pattern: O("\\b<0>(?=\\s+(?!<1>|with\\s*\\{)<2>(?:\\s*[=,:;{)\\]]|\\s+(?:in|when)\\b))", [pe, va, Q]),
2067
- inside: W
2174
+ pattern: O("\\b<0>(?=\\s+(?!<1>|with\\s*\\{)<2>(?:\\s*[=,:;{)\\]]|\\s+(?:in|when)\\b))", [ge, Oa, J]),
2175
+ inside: j
2068
2176
  }
2069
2177
  ],
2070
- keyword: He,
2178
+ keyword: Ke,
2071
2179
  // https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/language-specification/lexical-structure#literals
2072
2180
  number: /(?:\b0(?:x[a-f\d_]*[a-f\d]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[+-]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,
2073
2181
  operator: /[=-]>|([&|+-])\1|~|\?\?=?|>>=?|<<=?|[%&|^!=<>/*+-]=?/,
2074
2182
  punctuation: /\?\.?|::|[()[\]{}.,:;]/
2075
2183
  });
2076
- $(ne, "number", {
2184
+ $(re, "number", {
2077
2185
  range: {
2078
2186
  pattern: /\.\./,
2079
2187
  alias: "operator"
2080
2188
  }
2081
2189
  });
2082
- $(ne, "punctuation", {
2190
+ $(re, "punctuation", {
2083
2191
  "named-parameter": {
2084
- pattern: O("([(,]\\s*)<0>(?=\\s*:)", [Q]),
2192
+ pattern: O("([(,]\\s*)<0>(?=\\s*:)", [J]),
2085
2193
  lookbehind: !0,
2086
2194
  alias: "punctuation"
2087
2195
  }
2088
2196
  });
2089
- $(ne, "class-name", {
2197
+ $(re, "class-name", {
2090
2198
  namespace: {
2091
2199
  // namespace Foo.Bar {}
2092
2200
  // using Foo.Bar;
2093
- pattern: O("(\\b(?:namespace|using)\\s+)<0>(?:\\s*\\.\\s*<0>)*(?=\\s*[;{])", [Q]),
2201
+ pattern: O("(\\b(?:namespace|using)\\s+)<0>(?:\\s*\\.\\s*<0>)*(?=\\s*[;{])", [J]),
2094
2202
  lookbehind: !0,
2095
2203
  inside: {
2096
2204
  punctuation: /\./
@@ -2098,25 +2206,25 @@ $(ne, "class-name", {
2098
2206
  },
2099
2207
  "type-expression": {
2100
2208
  // default(Foo), typeof(Foo<Bar>), sizeof(int)
2101
- pattern: O("(\\b(?:default|sizeof|typeof)\\s*\\(\\s*(?!\\s))(?:[^()\\s]|\\s(?!\\s)|<0>)+(?=\\s*\\))", [Fe]),
2209
+ pattern: O("(\\b(?:default|sizeof|typeof)\\s*\\(\\s*(?!\\s))(?:[^()\\s]|\\s(?!\\s)|<0>)+(?=\\s*\\))", [ze]),
2102
2210
  lookbehind: !0,
2103
2211
  alias: "class-name",
2104
- inside: W
2212
+ inside: j
2105
2213
  },
2106
2214
  "return-type": {
2107
2215
  // Foo<Bar> ForBar(); Foo IFoo.Bar() => 0
2108
2216
  // int this[int index] => 0; T IReadOnlyList<T>.this[int index] => this[index];
2109
2217
  // int Foo => 0; int Foo { get; set } = 0;
2110
- pattern: O("<0>(?=\\s+(?:<1>\\s*(?:=>|[({]|\\.\\s*this\\s*\\[)|this\\s*\\[))", [pe, le]),
2218
+ pattern: O("<0>(?=\\s+(?:<1>\\s*(?:=>|[({]|\\.\\s*this\\s*\\[)|this\\s*\\[))", [ge, de]),
2111
2219
  alias: "class-name",
2112
- inside: W
2220
+ inside: j
2113
2221
  },
2114
2222
  "constructor-invocation": {
2115
2223
  // new List<Foo<Bar[]>> { }
2116
- pattern: O("(\\bnew\\s+)<0>(?=\\s*[[({])", [pe]),
2224
+ pattern: O("(\\bnew\\s+)<0>(?=\\s*[[({])", [ge]),
2117
2225
  lookbehind: !0,
2118
2226
  alias: "class-name",
2119
- inside: W
2227
+ inside: j
2120
2228
  },
2121
2229
  /*'explicit-implementation': {
2122
2230
  // int IFoo<Foo>.Bar => 0; void IFoo<Foo<Foo>>.Foo<T>();
@@ -2126,13 +2234,13 @@ $(ne, "class-name", {
2126
2234
  },*/
2127
2235
  "generic-method": {
2128
2236
  // foo<Bar>()
2129
- pattern: O("<0>\\s*<1>(?=\\s*\\()", [Q, Ve]),
2237
+ pattern: O("<0>\\s*<1>(?=\\s*\\()", [J, We]),
2130
2238
  inside: {
2131
- function: O("^<0>", [Q]),
2239
+ function: O("^<0>", [J]),
2132
2240
  generic: {
2133
- pattern: RegExp(Ve),
2241
+ pattern: RegExp(We),
2134
2242
  alias: "class-name",
2135
- inside: W
2243
+ inside: j
2136
2244
  }
2137
2245
  }
2138
2246
  },
@@ -2142,21 +2250,21 @@ $(ne, "class-name", {
2142
2250
  // where F : Bar, IList<int>
2143
2251
  pattern: O(
2144
2252
  "\\b((?:<0>\\s+<1>|record\\s+<1>\\s*<5>|where\\s+<2>)\\s*:\\s*)(?:<3>|<4>|<1>\\s*<5>|<6>)(?:\\s*,\\s*(?:<3>|<4>|<6>))*(?=\\s*(?:where|[{;]|=>|$))",
2145
- [zn, Ze, Q, pe, He.source, Fe, "\\bnew\\s*\\(\\s*\\)"]
2253
+ [Wn, je, J, ge, Ke.source, ze, "\\bnew\\s*\\(\\s*\\)"]
2146
2254
  ),
2147
2255
  lookbehind: !0,
2148
2256
  inside: {
2149
2257
  "record-arguments": {
2150
- pattern: O("(^(?!new\\s*\\()<0>\\s*)<1>", [Ze, Fe], "g"),
2258
+ pattern: O("(^(?!new\\s*\\()<0>\\s*)<1>", [je, ze], "g"),
2151
2259
  lookbehind: !0,
2152
2260
  greedy: !0,
2153
- inside: ne
2261
+ inside: re
2154
2262
  },
2155
- keyword: He,
2263
+ keyword: Ke,
2156
2264
  "class-name": {
2157
- pattern: RegExp(pe, "g"),
2265
+ pattern: RegExp(ge, "g"),
2158
2266
  greedy: !0,
2159
- inside: W
2267
+ inside: j
2160
2268
  },
2161
2269
  punctuation: /[(),]/
2162
2270
  }
@@ -2175,16 +2283,16 @@ $(ne, "class-name", {
2175
2283
  }
2176
2284
  }
2177
2285
  });
2178
- var Zn = Vn + "|" + Hn, qn = F(`/(?![*/])|//[^
2286
+ var Xn = Yn + "|" + jn, Qn = U(`/(?![*/])|//[^
2179
2287
  ]*
2180
- |/\\*(?:[^*]|\\*(?!/))*\\*/|<0>`, [Zn]), Kn = me(F(`[^()"'/]|<0>|\\(<self>*\\)`, [qn]), 2), ln = "\\b(?:assembly|event|field|method|module|param|property|return|type)\\b", ka = F("<0>(?:\\s*\\(<1>*\\))?", [le, Kn]), Lt = `:[^
2181
- }]+`, Wn = me(F(`[^()"'/]|<0>|\\(<self>*\\)`, [qn]), 2), cn = F("\\{(?!\\{)(?:(?![}:])<0>)*<1>?\\}", [Wn, Lt]), jn = me(F(`[^()"'/]|/(?!\\*)|/\\*(?:[^*]|\\*(?!/))*\\*/|<0>|\\(<self>*\\)`, [Zn]), 2), dn = F("\\{(?!\\{)(?:(?![}:])<0>)*<1>?\\}", [jn, Lt]), un = (e, t) => ({
2288
+ |/\\*(?:[^*]|\\*(?!/))*\\*/|<0>`, [Xn]), Jn = ye(U(`[^()"'/]|<0>|\\(<self>*\\)`, [Qn]), 2), un = "\\b(?:assembly|event|field|method|module|param|property|return|type)\\b", $a = U("<0>(?:\\s*\\(<1>*\\))?", [de, Jn]), Ft = `:[^
2289
+ }]+`, ea = ye(U(`[^()"'/]|<0>|\\(<self>*\\)`, [Qn]), 2), pn = U("\\{(?!\\{)(?:(?![}:])<0>)*<1>?\\}", [ea, Ft]), ta = ye(U(`[^()"'/]|/(?!\\*)|/\\*(?:[^*]|\\*(?!/))*\\*/|<0>|\\(<self>*\\)`, [Xn]), 2), fn = U("\\{(?!\\{)(?:(?![}:])<0>)*<1>?\\}", [ta, Ft]), bn = (e, t) => ({
2182
2290
  interpolation: {
2183
2291
  pattern: O("((?:^|[^{])(?:\\{\\{)*)<0>", [e]),
2184
2292
  lookbehind: !0,
2185
2293
  inside: {
2186
2294
  "format-string": {
2187
- pattern: O("(^\\{(?:(?![}:])<0>)*)<1>(?=\\}$)", [t, Lt]),
2295
+ pattern: O("(^\\{(?:(?![}:])<0>)*)<1>(?=\\}$)", [t, Ft]),
2188
2296
  lookbehind: !0,
2189
2297
  inside: {
2190
2298
  punctuation: /^:/
@@ -2194,30 +2302,30 @@ var Zn = Vn + "|" + Hn, qn = F(`/(?![*/])|//[^
2194
2302
  expression: {
2195
2303
  pattern: /[^]+/,
2196
2304
  alias: "language-csharp",
2197
- inside: ne
2305
+ inside: re
2198
2306
  }
2199
2307
  }
2200
2308
  },
2201
2309
  string: /[^]+/
2202
2310
  });
2203
- $(ne, "class-name", {
2311
+ $(re, "class-name", {
2204
2312
  attribute: {
2205
2313
  // Attributes
2206
2314
  // [Foo], [Foo(1), Bar(2, Prop = "foo")], [return: Foo(1), Bar(2)], [assembly: Foo(Bar)]
2207
- pattern: O("((?:^|[^\\s\\w>)?])\\s*\\[\\s*)(?:<0>\\s*:\\s*)?<1>(?:\\s*,\\s*<1>)*(?=\\s*\\])", [ln, ka], "g"),
2315
+ pattern: O("((?:^|[^\\s\\w>)?])\\s*\\[\\s*)(?:<0>\\s*:\\s*)?<1>(?:\\s*,\\s*<1>)*(?=\\s*\\])", [un, $a], "g"),
2208
2316
  lookbehind: !0,
2209
2317
  greedy: !0,
2210
2318
  inside: {
2211
2319
  target: {
2212
- pattern: O("^<0>(?=\\s*:)", [ln]),
2320
+ pattern: O("^<0>(?=\\s*:)", [un]),
2213
2321
  alias: "keyword"
2214
2322
  },
2215
2323
  "attribute-arguments": {
2216
- pattern: O("\\(<0>*\\)", [Kn]),
2217
- inside: ne
2324
+ pattern: O("\\(<0>*\\)", [Jn]),
2325
+ inside: re
2218
2326
  },
2219
2327
  "class-name": {
2220
- pattern: RegExp(le),
2328
+ pattern: RegExp(de),
2221
2329
  inside: {
2222
2330
  punctuation: /\./
2223
2331
  }
@@ -2226,23 +2334,23 @@ $(ne, "class-name", {
2226
2334
  }
2227
2335
  }
2228
2336
  });
2229
- $(ne, "string", {
2337
+ $(re, "string", {
2230
2338
  "interpolation-string": [
2231
2339
  {
2232
- pattern: O('(^|[^\\\\])(?:\\$@|@\\$)"(?:""|\\\\[\\s\\S]|\\{\\{|<0>|[^\\\\{"])*"', [cn], "g"),
2340
+ pattern: O('(^|[^\\\\])(?:\\$@|@\\$)"(?:""|\\\\[\\s\\S]|\\{\\{|<0>|[^\\\\{"])*"', [pn], "g"),
2233
2341
  lookbehind: !0,
2234
2342
  greedy: !0,
2235
- inside: un(cn, Wn)
2343
+ inside: bn(pn, ea)
2236
2344
  },
2237
2345
  {
2238
- pattern: O('(^|[^@\\\\])\\$"(?:\\\\.|\\{\\{|<0>|[^\\\\"{])*"', [dn], "g"),
2346
+ pattern: O('(^|[^@\\\\])\\$"(?:\\\\.|\\{\\{|<0>|[^\\\\"{])*"', [fn], "g"),
2239
2347
  lookbehind: !0,
2240
2348
  greedy: !0,
2241
- inside: un(dn, jn)
2349
+ inside: bn(fn, ta)
2242
2350
  }
2243
2351
  ],
2244
2352
  char: {
2245
- pattern: RegExp(Hn, "g"),
2353
+ pattern: RegExp(jn, "g"),
2246
2354
  greedy: !0
2247
2355
  }
2248
2356
  });
@@ -2265,7 +2373,7 @@ _.graphql = {
2265
2373
  greedy: !0
2266
2374
  },
2267
2375
  number: /(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,
2268
- boolean: q,
2376
+ boolean: K,
2269
2377
  variable: /\$[a-z_]\w*/i,
2270
2378
  directive: {
2271
2379
  pattern: /@[a-z_]\w*/i,
@@ -2306,15 +2414,15 @@ _.graphql = {
2306
2414
  object: /\w+(?=\s*\{)/,
2307
2415
  punctuation: /[()[\]{},:!=]/,
2308
2416
  property: /\w+/,
2309
- [J](e, t) {
2310
- for (var n = Se(e, t), s = n.filter(({ type: a }) => a && a != "comment" && a != "scalar"), l = s.length, u = 0, f = (a) => {
2417
+ [ee](e, t) {
2418
+ for (var n = Oe(e, t), i = n.filter(({ type: a }) => a && a != "comment" && a != "scalar"), l = i.length, u = 0, b = (a) => {
2311
2419
  for (var r = 0; r < a.length; r++)
2312
- if (u + r == l || s[u + r].type != a[r])
2420
+ if (u + r == l || i[u + r].type != a[r])
2313
2421
  return !0;
2314
2422
  }, E = (a, r) => {
2315
2423
  for (var d = 1, o = u; o < l; o++) {
2316
- var i = s[o], h = i.content;
2317
- if (i.type == "punctuation") {
2424
+ var s = i[o], h = s.content;
2425
+ if (s.type == "punctuation") {
2318
2426
  if (a == h)
2319
2427
  d++;
2320
2428
  else if (r == h && !--d)
@@ -2322,23 +2430,23 @@ _.graphql = {
2322
2430
  }
2323
2431
  }
2324
2432
  }; u < l; ) {
2325
- var y = s[u++];
2433
+ var y = i[u++];
2326
2434
  if (y.type == "keyword" && y.content == "mutation") {
2327
2435
  var v = [];
2328
- if (!f(["definition-mutation", "punctuation"]) && s[u + 1].content == "(") {
2436
+ if (!b(["definition-mutation", "punctuation"]) && i[u + 1].content == "(") {
2329
2437
  u += 2;
2330
2438
  var m = E("(", ")");
2331
2439
  if (!m) continue;
2332
2440
  for (; u < m; u++) {
2333
- var p = s[u];
2441
+ var p = i[u];
2334
2442
  p.type == "variable" && (p.alias = "variable-input", v.push(p.content));
2335
2443
  }
2336
2444
  u = m + 1;
2337
2445
  }
2338
- if (!f(["punctuation", "property-query"]) && s[u].content == "{" && (s[++u].alias = "property-mutation", v[0])) {
2446
+ if (!b(["punctuation", "property-query"]) && i[u].content == "{" && (i[++u].alias = "property-mutation", v[0])) {
2339
2447
  var c = E("{", "}");
2340
- if (c) for (var b = u; b < c; b++) {
2341
- var g = s[b];
2448
+ if (c) for (var f = u; f < c; f++) {
2449
+ var g = i[f];
2342
2450
  g.type == "variable" && v.indexOf(g.content) >= 0 && (g.alias = "variable-input");
2343
2451
  }
2344
2452
  }
@@ -2356,11 +2464,11 @@ _.webmanifest = _.json = {
2356
2464
  pattern: /"(?:\\.|[^\\\n"])*"/g,
2357
2465
  greedy: !0
2358
2466
  },
2359
- comment: re(),
2467
+ comment: se(),
2360
2468
  number: /-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,
2361
2469
  operator: /:/,
2362
2470
  punctuation: /[[\]{},]/,
2363
- boolean: q,
2471
+ boolean: K,
2364
2472
  null: {
2365
2473
  pattern: /\bnull\b/,
2366
2474
  alias: "keyword"
@@ -2368,7 +2476,7 @@ _.webmanifest = _.json = {
2368
2476
  };
2369
2477
  _.makefile = {
2370
2478
  comment: /#(?:\\[^]|[^\\\n])*/,
2371
- string: Tt(),
2479
+ string: Mt(),
2372
2480
  "builtin-target": {
2373
2481
  pattern: /\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,
2374
2482
  alias: "builtin"
@@ -2390,13 +2498,13 @@ _.makefile = {
2390
2498
  operator: /(?:::|[?:+!])?=|[|@]/,
2391
2499
  punctuation: /[:;(){}]/
2392
2500
  };
2393
- var Ct = _.scss = ae("css", {
2394
- comment: re(),
2501
+ var Ut = _.scss = ie("css", {
2502
+ comment: se(),
2395
2503
  atrule: {
2396
2504
  pattern: /@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,
2397
2505
  inside: {
2398
2506
  rule: /@[\w-]+/,
2399
- [j]: "scss"
2507
+ [Y]: "scss"
2400
2508
  }
2401
2509
  },
2402
2510
  // url, compassified
@@ -2427,7 +2535,7 @@ var Ct = _.scss = ae("css", {
2427
2535
  }
2428
2536
  }
2429
2537
  });
2430
- $(Ct, "atrule", {
2538
+ $(Ut, "atrule", {
2431
2539
  keyword: [
2432
2540
  /@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,
2433
2541
  {
@@ -2436,11 +2544,11 @@ $(Ct, "atrule", {
2436
2544
  }
2437
2545
  ]
2438
2546
  });
2439
- $(Ct, "important", {
2547
+ $(Ut, "important", {
2440
2548
  // var and interpolated vars
2441
2549
  variable: /\$[-\w]+|#\{\$[-\w]+\}/
2442
2550
  });
2443
- $(Ct, "function", {
2551
+ $(Ut, "function", {
2444
2552
  "module-modifier": {
2445
2553
  pattern: /\b(?:as|hide|show|with)\b/i,
2446
2554
  alias: "keyword"
@@ -2453,7 +2561,7 @@ $(Ct, "function", {
2453
2561
  pattern: /\B!(?:default|optional)\b/i,
2454
2562
  alias: "keyword"
2455
2563
  },
2456
- boolean: q,
2564
+ boolean: K,
2457
2565
  null: {
2458
2566
  pattern: /\bnull\b/,
2459
2567
  alias: "keyword"
@@ -2463,25 +2571,25 @@ $(Ct, "function", {
2463
2571
  lookbehind: !0
2464
2572
  }
2465
2573
  });
2466
- var Yn = {
2574
+ var na = {
2467
2575
  pattern: /(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\d)(?:(?!\s)[$\w\xa0-\uffff])+(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/g,
2468
2576
  lookbehind: !0,
2469
2577
  greedy: !0
2470
- }, he = _.ts = _.typescript = ae("js", {
2471
- "class-name": Yn
2578
+ }, ve = _.ts = _.typescript = ie("js", {
2579
+ "class-name": na
2472
2580
  });
2473
- $(he, "operator", {
2581
+ $(ve, "operator", {
2474
2582
  builtin: /\b(?:Array|Function|Promise|any|boolean|never|number|string|symbol|unknown)\b/
2475
2583
  });
2476
- he.keyword.push(
2584
+ ve.keyword.push(
2477
2585
  /\b(?:abstract|declare|is|keyof|readonly|require)\b|\b(?:asserts|infer|interface|module|namespace|type)\b(?!\s*[^\s{_$a-zA-Z\xa0-\uffff])|\btype(?=\s*\*)/
2478
2586
  );
2479
- delete he.parameter;
2480
- delete he["literal-property"];
2481
- var Mt = Yn.inside = Object.assign({}, he);
2482
- delete Mt["class-name"];
2483
- delete Mt["maybe-class-name"];
2484
- $(he, "function", {
2587
+ delete ve.parameter;
2588
+ delete ve["literal-property"];
2589
+ var Bt = na.inside = Object.assign({}, ve);
2590
+ delete Bt["class-name"];
2591
+ delete Bt["maybe-class-name"];
2592
+ $(ve, "function", {
2485
2593
  decorator: {
2486
2594
  pattern: /@[$\w\xa0-\uffff]+/,
2487
2595
  inside: {
@@ -2501,35 +2609,35 @@ $(he, "function", {
2501
2609
  pattern: /<[^]+/,
2502
2610
  // everything after the first <
2503
2611
  alias: "class-name",
2504
- inside: Mt
2612
+ inside: Bt
2505
2613
  },
2506
2614
  function: /\S+/
2507
2615
  }
2508
2616
  }
2509
2617
  });
2510
- Un(_.ts, "tsx");
2511
- var Et = _.tsx.tag, Xn = "(?:^|(";
2618
+ Zn(_.ts, "tsx");
2619
+ var It = _.tsx.tag, aa = "(?:^|(";
2512
2620
  try {
2513
- RegExp("(?<=)"), Xn += "?<=";
2621
+ RegExp("(?<=)"), aa += "?<=";
2514
2622
  } catch {
2515
- Et.lookbehind = !0;
2623
+ It.lookbehind = !0;
2516
2624
  }
2517
- Et.pattern = RegExp(Xn + `[^\\w$])|(?=</))${Et.pattern.source}`, "g");
2518
- var yt = /[*&][^\s[\]{},]+/, vt = /!(?:<[\w%#;/?:@&=$,.!~*'()[\]+-]+>|(?:[a-zA-Z\d-]*!)?[\w%#;/?:@&=$.~*'()+-]+)?/, wt = `(?:${vt.source}(?:[ ]+${yt.source})?|${yt.source}(?:[ ]+${vt.source})?)`, Sa = F(
2625
+ It.pattern = RegExp(aa + `[^\\w$])|(?=</))${It.pattern.source}`, "g");
2626
+ var Rt = /[*&][^\s[\]{},]+/, St = /!(?:<[\w%#;/?:@&=$,.!~*'()[\]+-]+>|(?:[a-zA-Z\d-]*!)?[\w%#;/?:@&=$.~*'()+-]+)?/, kt = `(?:${St.source}(?:[ ]+${Rt.source})?|${Rt.source}(?:[ ]+${St.source})?)`, Da = U(
2519
2627
  "(?:[^\\s\0-\\x08\\x0e-\\x1f!\"#%&'*,:>?@[\\]{}`|\\x7f-\\x84\\x86-\\x9f\\ud800-\\udfff\\ufffe\\uffff-]|[?:-]<0>)(?:[ ]*(?:(?![#:])<0>|:<0>))*",
2520
2628
  ["[^\\s\0-\\x08\\x0e-\\x1f,[\\]{}\\x7f-\\x84\\x86-\\x9f\\ud800-\\udfff\\ufffe\\uffff]"]
2521
- ), pn = `"(?:\\\\.|[^\\\\
2629
+ ), gn = `"(?:\\\\.|[^\\\\
2522
2630
  "])*"|'(?:\\\\.|[^\\\\
2523
- '])*'`, ve = (e, t) => O(
2631
+ '])*'`, Ie = (e, t) => O(
2524
2632
  `([:,[{-]\\s*(?:\\s<0>[ ]+)?)<1>(?=[ ]*(?:$|,|\\]|\\}|(?:
2525
2633
  \\s*)?#))`,
2526
- [wt, e],
2634
+ [kt, e],
2527
2635
  t
2528
2636
  );
2529
2637
  _.yml = _.yaml = {
2530
2638
  scalar: {
2531
2639
  pattern: O(`([:-]\\s*(?:\\s<0>[ ]+)?[|>])[ ]*(?:(
2532
- [ ]+)\\S.*(?:\\2.+)*)`, [wt]),
2640
+ [ ]+)\\S.*(?:\\2.+)*)`, [kt]),
2533
2641
  lookbehind: !0,
2534
2642
  alias: "string"
2535
2643
  },
@@ -2538,7 +2646,7 @@ _.yml = _.yaml = {
2538
2646
  pattern: O(
2539
2647
  `((?:^|[:,[{
2540
2648
  ?-])[ ]*(?:<0>[ ]+)?)<1>(?=\\s*:\\s)`,
2541
- [wt, "(?:" + Sa + "|" + pn + ")"],
2649
+ [kt, "(?:" + Da + "|" + gn + ")"],
2542
2650
  "g"
2543
2651
  ),
2544
2652
  lookbehind: !0,
@@ -2551,43 +2659,43 @@ _.yml = _.yaml = {
2551
2659
  alias: "important"
2552
2660
  },
2553
2661
  datetime: {
2554
- pattern: ve("\\d{4}-\\d\\d?-\\d\\d?(?:[tT]|[ ]+)\\d\\d?:\\d\\d:\\d\\d(?:\\.\\d*)?(?:[ ]*(?:Z|[+-]\\d\\d?(?::\\d\\d)?))?|\\d{4}-\\d\\d-\\d\\d|\\d\\d?:\\d\\d(?::\\d\\d(?:\\.\\d*)?)?", "m"),
2662
+ pattern: Ie("\\d{4}-\\d\\d?-\\d\\d?(?:[tT]|[ ]+)\\d\\d?:\\d\\d:\\d\\d(?:\\.\\d*)?(?:[ ]*(?:Z|[+-]\\d\\d?(?::\\d\\d)?))?|\\d{4}-\\d\\d-\\d\\d|\\d\\d?:\\d\\d(?::\\d\\d(?:\\.\\d*)?)?", "m"),
2555
2663
  lookbehind: !0,
2556
2664
  alias: "number"
2557
2665
  },
2558
2666
  boolean: {
2559
- pattern: ve("false|true", "im"),
2667
+ pattern: Ie("false|true", "im"),
2560
2668
  lookbehind: !0,
2561
2669
  alias: "important"
2562
2670
  },
2563
2671
  null: {
2564
- pattern: ve("null|~", "im"),
2672
+ pattern: Ie("null|~", "im"),
2565
2673
  lookbehind: !0,
2566
2674
  alias: "important"
2567
2675
  },
2568
2676
  string: {
2569
- pattern: ve(pn, "mg"),
2677
+ pattern: Ie(gn, "mg"),
2570
2678
  lookbehind: !0,
2571
2679
  greedy: !0
2572
2680
  },
2573
2681
  number: {
2574
- pattern: ve("[+-]?(?:0x[a-f\\d]+|0o[0-7]+|(?:\\d+(?:\\.\\d*)?|\\.\\d+)(?:e[+-]?\\d+)?|\\.inf|\\.nan)", "im"),
2682
+ pattern: Ie("[+-]?(?:0x[a-f\\d]+|0o[0-7]+|(?:\\d+(?:\\.\\d*)?|\\.\\d+)(?:e[+-]?\\d+)?|\\.inf|\\.nan)", "im"),
2575
2683
  lookbehind: !0
2576
2684
  },
2577
- tag: vt,
2578
- important: yt,
2685
+ tag: St,
2686
+ important: Rt,
2579
2687
  punctuation: /---|[:[\]{},|>?-]|\.{3}/
2580
2688
  };
2581
- var bn = {
2689
+ var mn = {
2582
2690
  pattern: /\\[\\()[\]{}^$+*?|.]/,
2583
2691
  alias: "escape"
2584
- }, Ue = /\\(?:x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|u\{[a-fA-F\d]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/, Ta = {
2692
+ }, He = /\\(?:x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|u\{[a-fA-F\d]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/, Fa = {
2585
2693
  pattern: /\.|\\[wsd]|\\p\{[^{}]+\}/i,
2586
2694
  alias: "class-name"
2587
- }, xa = {
2695
+ }, Ua = {
2588
2696
  pattern: /\\[wsd]|\\p\{[^{}]+\}/i,
2589
2697
  alias: "class-name"
2590
- }, fn = "(?:[^\\\\-]|" + Ue.source + ")", Oa = RegExp(fn + "-" + fn), gn = {
2698
+ }, hn = "(?:[^\\\\-]|" + He.source + ")", Ba = RegExp(hn + "-" + hn), _n = {
2591
2699
  pattern: /(<|')[^<>']+(?=[>']$)/,
2592
2700
  lookbehind: !0,
2593
2701
  alias: "variable"
@@ -2607,22 +2715,22 @@ _.regex = {
2607
2715
  alias: "operator"
2608
2716
  },
2609
2717
  range: {
2610
- pattern: Oa,
2718
+ pattern: Ba,
2611
2719
  inside: {
2612
- escape: Ue,
2720
+ escape: He,
2613
2721
  "range-punctuation": {
2614
2722
  pattern: /-/,
2615
2723
  alias: "operator"
2616
2724
  }
2617
2725
  }
2618
2726
  },
2619
- "special-escape": bn,
2620
- "char-set": xa,
2621
- escape: Ue
2727
+ "special-escape": mn,
2728
+ "char-set": Ua,
2729
+ escape: He
2622
2730
  }
2623
2731
  },
2624
- "special-escape": bn,
2625
- "char-set": Ta,
2732
+ "special-escape": mn,
2733
+ "char-set": Fa,
2626
2734
  backreference: [
2627
2735
  {
2628
2736
  // a backreference which is not an octal escape
@@ -2633,7 +2741,7 @@ _.regex = {
2633
2741
  pattern: /\\k<[^<>']+>/,
2634
2742
  alias: "keyword",
2635
2743
  inside: {
2636
- "group-name": gn
2744
+ "group-name": _n
2637
2745
  }
2638
2746
  }
2639
2747
  ],
@@ -2641,7 +2749,7 @@ _.regex = {
2641
2749
  pattern: /[$^]|\\[ABbGZz]/,
2642
2750
  alias: "function"
2643
2751
  },
2644
- escape: Ue,
2752
+ escape: He,
2645
2753
  group: [
2646
2754
  {
2647
2755
  // https://docs.oracle.com/javase/10/docs/api/java/util/regex/Pattern.html
@@ -2650,7 +2758,7 @@ _.regex = {
2650
2758
  pattern: /(\()\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[!=]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?)/,
2651
2759
  lookbehind: !0,
2652
2760
  inside: {
2653
- "group-name": gn
2761
+ "group-name": _n
2654
2762
  }
2655
2763
  },
2656
2764
  {
@@ -2667,7 +2775,7 @@ _.regex = {
2667
2775
  alias: "keyword"
2668
2776
  }
2669
2777
  };
2670
- var mn = /\/\*[^]*?\*\/|\/\/.*|#(?!\[).*/, hn = [
2778
+ var En = /\/\*[^]*?\*\/|\/\/.*|#(?!\[).*/, yn = [
2671
2779
  {
2672
2780
  pattern: /\b(?:false|true)\b/i,
2673
2781
  alias: "boolean"
@@ -2684,10 +2792,10 @@ var mn = /\/\*[^]*?\*\/|\/\/.*|#(?!\[).*/, hn = [
2684
2792
  },
2685
2793
  /\b(?:null)\b/i,
2686
2794
  /\b[A-Z_][A-Z\d_]*\b(?!\s*\()/
2687
- ], _n = /\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[a-f\d]+(?:_[a-f\d]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i, En = /<?=>|\?\?=?|\.{3}|\??->|[!=]==|::|--|\+\+|&&|\*\*=?|\|\||>>|<<|[?~]|[.%&|^!=<>/*+-]=?/, At = {
2795
+ ], vn = /\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[a-f\d]+(?:_[a-f\d]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i, wn = /<?=>|\?\?=?|\.{3}|\??->|[!=]==|::|--|\+\+|&&|\*\*=?|\|\||>>|<<|[?~]|[.%&|^!=<>/*+-]=?/, Tt = {
2688
2796
  pattern: /\{\$(?:[^{}]|\{(?:[^{}]|\{[^}]+\})*\})*\}|(^|[^\\{])\$+(?:\w+(?:\[[^\n[\]]*\]|->\w+)?)/,
2689
2797
  lookbehind: !0
2690
- }, yn = [
2798
+ }, xn = [
2691
2799
  {
2692
2800
  pattern: /<<<'([^']+)'\n(?:.*\n)*?\1;/g,
2693
2801
  alias: "nowdoc-string",
@@ -2714,7 +2822,7 @@ var mn = /\/\*[^]*?\*\/|\/\/.*|#(?!\[).*/, hn = [
2714
2822
  punctuation: /^<<<"?|[";]$/
2715
2823
  }
2716
2824
  },
2717
- interpolation: At
2825
+ interpolation: Tt
2718
2826
  }
2719
2827
  },
2720
2828
  {
@@ -2732,10 +2840,10 @@ var mn = /\/\*[^]*?\*\/|\/\/.*|#(?!\[).*/, hn = [
2732
2840
  greedy: !0,
2733
2841
  alias: "double-quoted-string",
2734
2842
  inside: {
2735
- interpolation: At
2843
+ interpolation: Tt
2736
2844
  }
2737
2845
  }
2738
- ], vn = At.inside = {
2846
+ ], An = Tt.inside = {
2739
2847
  delimiter: {
2740
2848
  pattern: /\?>$|^<\?(?:php(?=\s)|=)?/i,
2741
2849
  alias: "important"
@@ -2746,8 +2854,8 @@ var mn = /\/\*[^]*?\*\/|\/\/.*|#(?!\[).*/, hn = [
2746
2854
  alias: "comment",
2747
2855
  inside: "phpdoc"
2748
2856
  },
2749
- comment: mn,
2750
- string: yn,
2857
+ comment: En,
2858
+ string: xn,
2751
2859
  attribute: {
2752
2860
  pattern: /#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[^]|[^\\"])*"|'(?:\\[^]|[^\\'])*')+\](?=\s*[a-z$#])/img,
2753
2861
  greedy: !0,
@@ -2757,8 +2865,8 @@ var mn = /\/\*[^]*?\*\/|\/\/.*|#(?!\[).*/, hn = [
2757
2865
  lookbehind: !0,
2758
2866
  // inside can appear subset of php
2759
2867
  inside: {
2760
- comment: mn,
2761
- string: yn,
2868
+ comment: En,
2869
+ string: xn,
2762
2870
  "attribute-class-name": [
2763
2871
  {
2764
2872
  pattern: /([^:]|^)\b[a-z_]\w*(?!\\)\b/gi,
@@ -2776,10 +2884,10 @@ var mn = /\/\*[^]*?\*\/|\/\/.*|#(?!\[).*/, hn = [
2776
2884
  }
2777
2885
  }
2778
2886
  ],
2779
- constant: hn,
2780
- number: _n,
2781
- operator: En,
2782
- punctuation: te
2887
+ constant: yn,
2888
+ number: vn,
2889
+ operator: wn,
2890
+ punctuation: ae
2783
2891
  }
2784
2892
  },
2785
2893
  delimiter: {
@@ -2959,7 +3067,7 @@ var mn = /\/\*[^]*?\*\/|\/\/.*|#(?!\[).*/, hn = [
2959
3067
  }
2960
3068
  }
2961
3069
  ],
2962
- constant: hn,
3070
+ constant: yn,
2963
3071
  function: {
2964
3072
  pattern: /(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,
2965
3073
  lookbehind: !0,
@@ -2971,25 +3079,25 @@ var mn = /\/\*[^]*?\*\/|\/\/.*|#(?!\[).*/, hn = [
2971
3079
  pattern: /(->\s*)\w+/,
2972
3080
  lookbehind: !0
2973
3081
  },
2974
- number: _n,
2975
- operator: En,
2976
- punctuation: te
2977
- }, Na = Dn("html");
3082
+ number: vn,
3083
+ operator: wn,
3084
+ punctuation: ae
3085
+ }, Ga = Hn("html");
2978
3086
  _.php = {
2979
3087
  php: {
2980
3088
  pattern: /<\?(?:[^"'/#]|\/(?![*/])|(["'])(?:\\[^]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^\n?]|\?(?!>))*(?=$|\?>|\n)|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/,
2981
3089
  alias: "language-php",
2982
- inside: vn
3090
+ inside: An
2983
3091
  },
2984
- [J]: (e, t) => e.includes("<?") ? Na(e, t) : ke(e, vn)
3092
+ [ee]: (e, t) => e.includes("<?") ? Ga(e, t) : Ne(e, An)
2985
3093
  };
2986
- var La = [`(?:\\\\.|[^\\\\
3094
+ var za = [`(?:\\\\.|[^\\\\
2987
3095
  ]|
2988
3096
  (?!
2989
- ))`], Me = (e) => O(`((?:^|[^\\\\])(?:\\\\\\\\)*)(?:${e})`, La, "g"), It = /(?:\\.|``(?:[^\n`]|`(?!`))+``|`[^\n`]+`|[^\\\n|`])+/, wn = F(`\\|?<0>(?:\\|<0>)+\\|?(?:
2990
- |(?![\\s\\S]))`, [It.source]), Ca = `\\|?[ ]*:?-{3,}:?[ ]*(?:\\|[ ]*:?-{3,}:?[ ]*)+\\|?
2991
- `, be = _.md = _.markdown = Ye(_.html);
2992
- $(be, "prolog", {
3097
+ ))`], Fe = (e) => O(`((?:^|[^\\\\])(?:\\\\\\\\)*)(?:${e})`, za, "g"), Nt = /(?:\\.|``(?:[^\n`]|`(?!`))+``|`[^\n`]+`|[^\\\n|`])+/, In = U(`\\|?<0>(?:\\|<0>)+\\|?(?:
3098
+ |(?![\\s\\S]))`, [Nt.source]), Ha = `\\|?[ ]*:?-{3,}:?[ ]*(?:\\|[ ]*:?-{3,}:?[ ]*)+\\|?
3099
+ `, me = _.md = _.markdown = et(_.html);
3100
+ $(me, "prolog", {
2993
3101
  "front-matter-block": {
2994
3102
  pattern: /(^(?:\s*\n)?)---(?!.)[^]*?\n---(?!.)/g,
2995
3103
  lookbehind: !0,
@@ -3009,15 +3117,15 @@ $(be, "prolog", {
3009
3117
  alias: "punctuation"
3010
3118
  },
3011
3119
  table: {
3012
- pattern: RegExp("^" + wn + Ca + "(?:" + wn + ")*", "m"),
3120
+ pattern: RegExp("^" + In + Ha + "(?:" + In + ")*", "m"),
3013
3121
  inside: {
3014
3122
  "table-header-row": {
3015
3123
  pattern: /^.+/,
3016
3124
  inside: {
3017
3125
  "table-header": {
3018
- pattern: It,
3126
+ pattern: Nt,
3019
3127
  alias: "important",
3020
- inside: be
3128
+ inside: me
3021
3129
  },
3022
3130
  punctuation: /\|/
3023
3131
  }
@@ -3027,8 +3135,8 @@ $(be, "prolog", {
3027
3135
  lookbehind: !0,
3028
3136
  inside: {
3029
3137
  "table-data": {
3030
- pattern: It,
3031
- inside: be
3138
+ pattern: Nt,
3139
+ inside: me
3032
3140
  },
3033
3141
  punctuation: /\|/
3034
3142
  }
@@ -3058,11 +3166,11 @@ $(be, "prolog", {
3058
3166
  punctuation: /^`+|`+$/,
3059
3167
  "code-language": /^.+/,
3060
3168
  "code-block": /(?!^)[^]+(?=\n)/,
3061
- [J](e, t) {
3062
- var n = Se(e, t), s;
3063
- return n[5] && (s = (/[a-z][\w-]*/i.exec(
3169
+ [ee](e, t) {
3170
+ var n = Oe(e, t), i;
3171
+ return n[5] && (i = (/[a-z][\w-]*/i.exec(
3064
3172
  n[1].content.replace(/\b#/g, "sharp").replace(/\b\+\+/g, "pp")
3065
- ) || [""])[0].toLowerCase(), n[3].alias = "language-" + s, (t = _[s]) && (n[3].content = ke(n[3].content, t))), n;
3173
+ ) || [""])[0].toLowerCase(), n[3].alias = "language-" + i, (t = _[i]) && (n[3].content = Ne(n[3].content, t))), n;
3066
3174
  }
3067
3175
  }
3068
3176
  }
@@ -3128,7 +3236,7 @@ $(be, "prolog", {
3128
3236
  // **strong**
3129
3237
  // __strong__
3130
3238
  // allow one nested instance of italic text using the same delimiter
3131
- pattern: Me("\\b__(?:(?!_)<0>|_(?:(?!_)<0>)+_)+__\\b|\\*\\*(?:(?!\\*)<0>|\\*(?:(?!\\*)<0>)+\\*)+\\*\\*"),
3239
+ pattern: Fe("\\b__(?:(?!_)<0>|_(?:(?!_)<0>)+_)+__\\b|\\*\\*(?:(?!\\*)<0>|\\*(?:(?!\\*)<0>)+\\*)+\\*\\*"),
3132
3240
  lookbehind: !0,
3133
3241
  greedy: !0,
3134
3242
  inside: {
@@ -3145,7 +3253,7 @@ $(be, "prolog", {
3145
3253
  // *em*
3146
3254
  // _em_
3147
3255
  // allow one nested instance of bold text using the same delimiter
3148
- pattern: Me("\\b_(?:(?!_)<0>|__(?:(?!_)<0>)+__)+_\\b|\\*(?:(?!\\*)<0>|\\*\\*(?:(?!\\*)<0>)+\\*\\*)+\\*"),
3256
+ pattern: Fe("\\b_(?:(?!_)<0>|__(?:(?!_)<0>)+__)+_\\b|\\*(?:(?!\\*)<0>|\\*\\*(?:(?!\\*)<0>)+\\*\\*)+\\*"),
3149
3257
  lookbehind: !0,
3150
3258
  greedy: !0,
3151
3259
  inside: {
@@ -3161,7 +3269,7 @@ $(be, "prolog", {
3161
3269
  // ~~strike through~~
3162
3270
  // ~strike~
3163
3271
  // eslint-disable-next-line regexp/strict
3164
- pattern: Me("(~~?)(?:(?!~)<0>)+\\2"),
3272
+ pattern: Fe("(~~?)(?:(?!~)<0>)+\\2"),
3165
3273
  lookbehind: !0,
3166
3274
  greedy: !0,
3167
3275
  inside: {
@@ -3185,7 +3293,7 @@ $(be, "prolog", {
3185
3293
  // [example](http://example.com "Optional title")
3186
3294
  // [example][id]
3187
3295
  // [example] [id]
3188
- pattern: Me('!?\\[(?:(?!\\])<0>)+\\](?:\\([^\\s)]+(?:[ ]+"(?:\\\\.|[^\\\\"])*")?\\)|[ ]?\\[(?:(?!\\])<0>)+\\])'),
3296
+ pattern: Fe('!?\\[(?:(?!\\])<0>)+\\](?:\\([^\\s)]+(?:[ ]+"(?:\\\\.|[^\\\\"])*")?\\)|[ ]?\\[(?:(?!\\])<0>)+\\])'),
3189
3297
  lookbehind: !0,
3190
3298
  greedy: !0,
3191
3299
  inside: {
@@ -3208,78 +3316,78 @@ $(be, "prolog", {
3208
3316
  pattern: /(^[ ]+)"(?:\\.|[^\\"])*"(?=\)$)/,
3209
3317
  lookbehind: !0
3210
3318
  },
3211
- "markup-bracket": be["markup-bracket"]
3319
+ "markup-bracket": me["markup-bracket"]
3212
3320
  }
3213
3321
  }
3214
3322
  });
3215
3323
  ["url", "bold", "italic", "strike"].forEach((e) => {
3216
3324
  ["url", "bold", "italic", "strike", "code-snippet", "markup-bracket"].forEach((t) => {
3217
- e != t && (be[e].inside.content.inside[t] = be[t]);
3325
+ e != t && (me[e].inside.content.inside[t] = me[t]);
3218
3326
  });
3219
3327
  });
3220
- const Ma = (e, t, ...n) => {
3221
- var Y;
3222
- let s, l, u = [], f, E = "", y, v = !1, m = !1, p = !0, c = [], b, g = 0;
3223
- const a = $a(), r = a.firstChild, d = r.children, o = d[0], i = o.firstChild, h = { language: "text", value: E }, k = new Set(n), I = {}, w = (A) => {
3224
- if (Object.assign(h, A), E = A.value ?? E, s = h.language, !_[s]) throw Error(`Language '${s}' has no grammar.`);
3225
- b = !!h.readOnly, a.style.tabSize = h.tabSize || 2, i.inputMode = b ? "none" : "", i.setAttribute("aria-readonly", b), T(), x(), (l != (l = _[s]) || E != i.value) && (V(), i.value = E, i.selectionEnd = 0, S());
3328
+ const Va = (e, t, ...n) => {
3329
+ var X;
3330
+ let i, l, u = [], b, E = "", y, v = !1, m = !1, p = !0, c = [], f, g = 0;
3331
+ const a = qa(), r = a.firstChild, d = r.children, o = d[0], s = o.firstChild, h = { language: "text", value: E }, R = new Set(n), A = {}, w = (x) => {
3332
+ if (Object.assign(h, x), E = x.value ?? E, i = h.language, !_[i]) throw Error(`Language '${i}' has no grammar.`);
3333
+ f = !!h.readOnly, a.style.tabSize = h.tabSize || 2, s.inputMode = f ? "none" : "", s.setAttribute("aria-readonly", f), T(), N(), (l != (l = _[i]) || E != s.value) && (Z(), s.value = E, s.selectionEnd = 0, S());
3226
3334
  }, S = () => {
3227
- c = ke(E = i.value, l), z("tokenize", c, s, E);
3228
- let A = Sn(c).split(`
3229
- `), R = 0, L = g, Z = g = A.length;
3230
- for (; A[R] == u[R] && R < Z; ) ++R;
3231
- for (; Z && A[--Z] == u[--L]; ) ;
3232
- if (R == Z && R == L) d[R + 1].innerHTML = A[R] + `
3335
+ c = Ne(E = s.value, l), H("tokenize", c, i, E);
3336
+ let x = Cn(c).split(`
3337
+ `), I = 0, C = g, q = g = x.length;
3338
+ for (; x[I] == u[I] && I < q; ) ++I;
3339
+ for (; q && x[--q] == u[--C]; ) ;
3340
+ if (I == q && I == C) d[I + 1].innerHTML = x[I] + `
3233
3341
  `;
3234
3342
  else {
3235
- let X = L < R ? L : R - 1, K = X, _e = "";
3236
- for (; K < Z; ) _e += `<div class=pce-line aria-hidden=true>${A[++K]}
3343
+ let Q = C < I ? C : I - 1, W = Q, we = "";
3344
+ for (; W < q; ) we += `<div class=pce-line aria-hidden=true>${x[++W]}
3237
3345
  </div>`;
3238
- for (K = Z < R ? Z : R - 1; K < L; K++) d[R + 1].remove();
3239
- for (_e && d[X + 1].insertAdjacentHTML("afterend", _e), K = X + 1; K < g; ) d[++K].setAttribute("data-line", K);
3346
+ for (W = q < I ? q : I - 1; W < C; W++) d[I + 1].remove();
3347
+ for (we && d[Q + 1].insertAdjacentHTML("afterend", we), W = Q + 1; W < g; ) d[++W].setAttribute("data-line", W);
3240
3348
  a.style.setProperty(
3241
3349
  "--number-width",
3242
3350
  Math.ceil(Math.log10(g + 1)) + ".001ch"
3243
3351
  );
3244
3352
  }
3245
- z("update", E), U(!0), p && setTimeout(setTimeout, 0, () => p = !0), u = A, p = !1;
3246
- }, x = (A) => {
3247
- (A || k).forEach((R) => {
3248
- typeof R == "object" ? (R.update(D, h), A && k.add(R)) : (R(D, h), A || k.delete(R));
3353
+ H("update", E), B(!0), p && setTimeout(setTimeout, 0, () => p = !0), u = x, p = !1;
3354
+ }, N = (x) => {
3355
+ (x || R).forEach((I) => {
3356
+ typeof I == "object" ? (I.update(D, h), x && R.add(I)) : (I(D, h), x || R.delete(I));
3249
3357
  });
3250
- }, T = ([A, R] = N()) => {
3251
- a.className = `prism-code-editor language-${s}${h.lineNumbers == !1 ? "" : " show-line-numbers"} pce-${h.wordWrap ? "" : "no"}wrap${h.rtl ? " pce-rtl" : ""} pce-${A < R ? "has" : "no"}-selection${m ? " pce-focus" : ""}${b ? " pce-readonly" : ""}`;
3252
- }, N = () => [
3253
- i.selectionStart,
3254
- i.selectionEnd,
3255
- i.selectionDirection
3358
+ }, T = ([x, I] = L()) => {
3359
+ a.className = `prism-code-editor language-${i}${h.lineNumbers == !1 ? "" : " show-line-numbers"} pce-${h.wordWrap ? "" : "no"}wrap${h.rtl ? " pce-rtl" : ""} pce-${x < I ? "has" : "no"}-selection${m ? " pce-focus" : ""}${f ? " pce-readonly" : ""}`;
3360
+ }, L = () => [
3361
+ s.selectionStart,
3362
+ s.selectionEnd,
3363
+ s.selectionDirection
3256
3364
  ], P = {
3257
3365
  Escape() {
3258
- i.blur();
3366
+ s.blur();
3259
3367
  }
3260
- }, M = {}, V = () => Be && !m && G(
3368
+ }, M = {}, Z = () => Ve && !m && z(
3261
3369
  D,
3262
3370
  "focus",
3263
- (A) => {
3264
- let R = A.relatedTarget;
3265
- R ? R.focus() : i.blur();
3371
+ (x) => {
3372
+ let I = x.relatedTarget;
3373
+ I ? I.focus() : s.blur();
3266
3374
  },
3267
3375
  { once: !0 }
3268
- ), z = (A, ...R) => {
3269
- var L, Z;
3270
- (L = I[A]) == null || L.forEach((X) => X.apply(D, R)), (Z = h["on" + A[0].toUpperCase() + A.slice(1)]) == null || Z.apply(D, R);
3271
- }, U = (A) => {
3272
- if (A || p) {
3273
- const R = N(), L = d[y = Jn(E, 0, R[R[2] < "f" ? 0 : 1])];
3274
- L != f && (f == null || f.classList.remove("active-line"), L.classList.add("active-line"), f = L), T(R), z("selectionChange", R, E);
3376
+ ), H = (x, ...I) => {
3377
+ var C, q;
3378
+ (C = A[x]) == null || C.forEach((Q) => Q.apply(D, I)), (q = h["on" + x[0].toUpperCase() + x.slice(1)]) == null || q.apply(D, I);
3379
+ }, B = (x) => {
3380
+ if (x || p) {
3381
+ const I = L(), C = d[y = ia(E, 0, I[I[2] < "f" ? 0 : 1])];
3382
+ C != b && (b == null || b.classList.remove("active-line"), C.classList.add("active-line"), b = C), T(I), H("selectionChange", I, E);
3275
3383
  }
3276
3384
  }, D = {
3277
3385
  scrollContainer: a,
3278
3386
  wrapper: r,
3279
3387
  overlays: o,
3280
- textarea: i,
3388
+ textarea: s,
3281
3389
  get activeLine() {
3282
- return f;
3390
+ return b;
3283
3391
  },
3284
3392
  get activeLineNumber() {
3285
3393
  return y;
@@ -3302,280 +3410,280 @@ const Ma = (e, t, ...n) => {
3302
3410
  extensions: {},
3303
3411
  setOptions: w,
3304
3412
  update: S,
3305
- getSelection: N,
3306
- setSelection(A, R = A, L) {
3307
- V(), i.setSelectionRange(A, R, L), U(!0);
3413
+ getSelection: L,
3414
+ setSelection(x, I = x, C) {
3415
+ Z(), s.setSelectionRange(x, I, C), B(!0);
3308
3416
  },
3309
- addExtensions(...A) {
3310
- x(A);
3417
+ addExtensions(...x) {
3418
+ N(x);
3311
3419
  },
3312
- addListener(A, R) {
3313
- (I[A] || (I[A] = /* @__PURE__ */ new Set())).add(R);
3420
+ addListener(x, I) {
3421
+ (A[x] || (A[x] = /* @__PURE__ */ new Set())).add(I);
3314
3422
  },
3315
- removeListener(A, R) {
3316
- var L;
3317
- (L = I[A]) == null || L.delete(R);
3423
+ removeListener(x, I) {
3424
+ var C;
3425
+ (C = A[x]) == null || C.delete(I);
3318
3426
  },
3319
3427
  remove() {
3320
3428
  a.remove(), v = !0;
3321
3429
  }
3322
3430
  };
3323
- return G(D, "keydown", (A) => {
3324
- var R;
3325
- (R = P[A.key]) != null && R.call(P, A, N(), E) && B(A);
3326
- }), G(D, "beforeinput", (A) => {
3327
- var R;
3328
- (b || A.inputType == "insertText" && ((R = M[A.data]) != null && R.call(M, A, N(), E))) && B(A);
3329
- }), G(D, "input", S), G(D, "blur", () => {
3330
- Re = null, m = !1, T();
3331
- }), G(D, "focus", () => {
3332
- Re = U, m = !0, T();
3333
- }), G(D, "selectionchange", (A) => {
3334
- U(), B(A);
3335
- }), (Y = Pa(e)) == null || Y.append(a), t && w(t), D;
3336
- }, An = /* @__PURE__ */ document.createElement("div"), Je = (e) => {
3337
- An.innerHTML = e;
3338
- const t = An.firstChild;
3431
+ return z(D, "keydown", (x) => {
3432
+ var I;
3433
+ (I = P[x.key]) != null && I.call(P, x, L(), E) && G(x);
3434
+ }), z(D, "beforeinput", (x) => {
3435
+ var I;
3436
+ (f || x.inputType == "insertText" && ((I = M[x.data]) != null && I.call(M, x, L(), E))) && G(x);
3437
+ }), z(D, "input", S), z(D, "blur", () => {
3438
+ Te = null, m = !1, T();
3439
+ }), z(D, "focus", () => {
3440
+ Te = B, m = !0, T();
3441
+ }), z(D, "selectionchange", (x) => {
3442
+ B(), G(x);
3443
+ }), (X = Za(e)) == null || X.append(a), t && w(t), D;
3444
+ }, Rn = /* @__PURE__ */ document.createElement("div"), at = (e) => {
3445
+ Rn.innerHTML = e;
3446
+ const t = Rn.firstChild;
3339
3447
  return () => t.cloneNode(!0);
3340
- }, G = (e, t, n, s) => e.textarea.addEventListener(t, n, s), Pa = (e) => typeof e == "string" ? document.querySelector(e) : e, Qn = navigator.userAgent, qe = /Mac|iPhone|iPod|iPad/i.test(navigator.platform), Ke = /Chrome\//.test(Qn), Be = !Ke && /AppleWebKit\//.test(Qn), Jn = (e, t = 0, n = 1 / 0) => {
3341
- let s = 1;
3448
+ }, z = (e, t, n, i) => e.textarea.addEventListener(t, n, i), Za = (e) => typeof e == "string" ? document.querySelector(e) : e, ra = navigator.userAgent, Ye = /Mac|iPhone|iPod|iPad/i.test(navigator.platform), Xe = /Chrome\//.test(ra), Ve = !Xe && /AppleWebKit\//.test(ra), ia = (e, t = 0, n = 1 / 0) => {
3449
+ let i = 1;
3342
3450
  for (; (t = e.indexOf(`
3343
- `, t) + 1) && t <= n; s++) ;
3344
- return s;
3345
- }, ct = {}, $a = /* @__PURE__ */ Je(
3451
+ `, t) + 1) && t <= n; i++) ;
3452
+ return i;
3453
+ }, pt = {}, qa = /* @__PURE__ */ at(
3346
3454
  "<div><div class=pce-wrapper><div class=pce-overlays><textarea spellcheck=false autocapitalize=off autocomplete=off>"
3347
- ), B = (e) => {
3455
+ ), G = (e) => {
3348
3456
  e.preventDefault(), e.stopImmediatePropagation();
3349
3457
  };
3350
- let Re;
3351
- document.addEventListener("selectionchange", () => Re == null ? void 0 : Re());
3352
- const Da = (e, t, n = 0) => {
3353
- const s = e.scrollContainer.style, l = document.documentElement.style;
3354
- s.scrollPaddingBlock = l.scrollPaddingBlock = `${n}px ${Ke && !t.textContent ? t.offsetHeight : 0}px`, t.scrollIntoView({ block: "nearest" }), s.scrollPaddingBlock = l.scrollPaddingBlock = "";
3355
- }, We = (e, t) => t ? e.lastIndexOf(`
3356
- `, t - 1) + 1 : 0, et = (e, t) => (t = e.indexOf(`
3357
- `, t)) + 1 ? t : e.length, Fa = (e, t, n) => (e.addListener(t, n), () => e.removeListener(t, n)), Ua = (e, t) => parseFloat(getComputedStyle(e)[t]);
3358
- let fe;
3359
- const we = (e) => e.replace(/[$+?|.^*()[\]{}\\]/g, "\\$&"), Rt = (e, t) => e.slice(We(e, t), t), ee = (e, t, n = t) => [
3360
- e.slice(t = We(e, t), n = et(e, n)).split(`
3458
+ let Te;
3459
+ document.addEventListener("selectionchange", () => Te == null ? void 0 : Te());
3460
+ const Ka = (e, t, n = 0) => {
3461
+ const i = e.scrollContainer.style, l = document.documentElement.style;
3462
+ i.scrollPaddingBlock = l.scrollPaddingBlock = `${n}px ${Xe && !t.textContent ? t.offsetHeight : 0}px`, t.scrollIntoView({ block: "nearest" }), i.scrollPaddingBlock = l.scrollPaddingBlock = "";
3463
+ }, Qe = (e, t) => t ? e.lastIndexOf(`
3464
+ `, t - 1) + 1 : 0, rt = (e, t) => (t = e.indexOf(`
3465
+ `, t)) + 1 ? t : e.length, Wa = (e, t, n) => (e.addListener(t, n), () => e.removeListener(t, n)), ja = (e, t) => parseFloat(getComputedStyle(e)[t]);
3466
+ let he;
3467
+ const Re = (e) => e.replace(/[$+?|.^*()[\]{}\\]/g, "\\$&"), Ot = (e, t) => e.slice(Qe(e, t), t), te = (e, t, n = t) => [
3468
+ e.slice(t = Qe(e, t), n = rt(e, n)).split(`
3361
3469
  `),
3362
3470
  t,
3363
3471
  n
3364
- ], je = (e, t, n = 0, s = n, l = e.getSelection()[0]) => {
3472
+ ], Je = (e, t, n = 0, i = n, l = e.getSelection()[0]) => {
3365
3473
  var m;
3366
- const u = e.value, f = e.wrapper.children[Jn(u, 0, l)], E = document.createTreeWalker(f, 5);
3367
- let y = E.lastChild(), v = et(u, l) + 1 - l - y.length;
3368
- for (; -v <= s && (y = E.previousNode()); )
3474
+ const u = e.value, b = e.wrapper.children[ia(u, 0, l)], E = document.createTreeWalker(b, 5);
3475
+ let y = E.lastChild(), v = rt(u, l) + 1 - l - y.length;
3476
+ for (; -v <= i && (y = E.previousNode()); )
3369
3477
  if (!y.lastChild && (v -= y.length || 0, v <= n)) {
3370
- for (; y != f; y = y.parentNode)
3478
+ for (; y != b; y = y.parentNode)
3371
3479
  if ((m = y.matches) != null && m.call(y, t)) return y;
3372
3480
  }
3373
- }, dt = (e, t) => {
3481
+ }, ft = (e, t) => {
3374
3482
  var n;
3375
- return ((n = je(e, '[class*="language-"]', 0, 0, t)) == null ? void 0 : n.className.match(
3483
+ return ((n = Je(e, '[class*="language-"]', 0, 0, t)) == null ? void 0 : n.className.match(
3376
3484
  /language-(\S*)/
3377
3485
  )[1]) || e.options.language;
3378
- }, H = (e, t, n, s, l, u) => {
3486
+ }, V = (e, t, n, i, l, u) => {
3379
3487
  if (e.options.readOnly) return;
3380
- fe = e.getSelection(), s ?? (s = n);
3381
- let f = e.textarea, E = e.value, y = Ke && !E[s ?? fe[1]] && /\n$/.test(t) && /^$|\n$/.test(E), v;
3382
- e.focused || f.focus(), n != null && f.setSelectionRange(n, s), l != null && (v = Fa(e, "update", () => {
3383
- f.setSelectionRange(
3488
+ he = e.getSelection(), i ?? (i = n);
3489
+ let b = e.textarea, E = e.value, y = Xe && !E[i ?? he[1]] && /\n$/.test(t) && /^$|\n$/.test(E), v;
3490
+ e.focused || b.focus(), n != null && b.setSelectionRange(n, i), l != null && (v = Wa(e, "update", () => {
3491
+ b.setSelectionRange(
3384
3492
  l,
3385
3493
  u ?? l,
3386
- fe[2]
3494
+ he[2]
3387
3495
  ), v();
3388
- })), Be || f.dispatchEvent(new InputEvent("beforeinput", { data: t })), Ke || Be ? (y && (f.selectionEnd--, t = t.slice(0, -1)), Be && (t += `
3496
+ })), Ve || b.dispatchEvent(new InputEvent("beforeinput", { data: t })), Xe || Ve ? (y && (b.selectionEnd--, t = t.slice(0, -1)), Ve && (t += `
3389
3497
  `), document.execCommand(
3390
3498
  t ? "insertHTML" : "delete",
3391
3499
  !1,
3392
3500
  t.replace(/&/g, "&amp;").replace(/</g, "&lt;")
3393
- ), y && f.selectionStart++) : document.execCommand(t ? "insertText" : "delete", !1, t), fe = 0;
3394
- }, Ie = (e) => e.altKey + e.ctrlKey * 2 + e.metaKey * 4 + e.shiftKey * 8;
3395
- let kt = !1;
3396
- const In = navigator.clipboard, oe = qe ? 4 : 2, Ba = (e) => kt = e, se = (e) => e.search(/\S|$/), Ga = (e = ['""', "''", "``", "()", "[]", "{}"], t = /([^$\w'"`]["'`]|.[[({])[.,:;\])}>\s]|.[[({]`/s) => (n, s) => {
3501
+ ), y && b.selectionStart++) : document.execCommand(t ? "insertText" : "delete", !1, t), he = 0;
3502
+ }, ke = (e) => e.altKey + e.ctrlKey * 2 + e.metaKey * 4 + e.shiftKey * 8;
3503
+ let Lt = !1;
3504
+ const Sn = navigator.clipboard, ce = Ye ? 4 : 2, Ya = (e) => Lt = e, le = (e) => e.search(/\S|$/), Xa = (e = ['""', "''", "``", "()", "[]", "{}"], t = /([^$\w'"`]["'`]|.[[({])[.,:;\])}>\s]|.[[({]`/s) => (n, i) => {
3397
3505
  let l;
3398
- const { keyCommandMap: u, inputCommandMap: f, getSelection: E, scrollContainer: y } = n, v = ({ insertSpaces: a = !0, tabSize: r } = s) => [a ? " " : " ", a ? r || 2 : 1], m = () => {
3506
+ const { keyCommandMap: u, inputCommandMap: b, getSelection: E, scrollContainer: y } = n, v = ({ insertSpaces: a = !0, tabSize: r } = i) => [a ? " " : " ", a ? r || 2 : 1], m = () => {
3399
3507
  var a;
3400
- return !s.readOnly && !((a = n.extensions.cursor) != null && a.scrollIntoView());
3401
- }, p = ([a, r], [d, o], i, h) => (a < r || !h && t.test((i[r - 1] || " ") + d + (i[r] || " "))) && !H(n, d + i.slice(a, r) + o, null, null, a + 1, r + 1), c = ([a, r], d, o) => a == r && o[r] == d && !n.setSelection(a + 1), b = (a, r, d, o, i, h) => {
3402
- let k = r.join(`
3508
+ return !i.readOnly && !((a = n.extensions.cursor) != null && a.scrollIntoView());
3509
+ }, p = ([a, r], [d, o], s, h) => (a < r || !h && t.test((s[r - 1] || " ") + d + (s[r] || " "))) && !V(n, d + s.slice(a, r) + o, null, null, a + 1, r + 1), c = ([a, r], d, o) => a == r && o[r] == d && !n.setSelection(a + 1), f = (a, r, d, o, s, h) => {
3510
+ let R = r.join(`
3403
3511
  `);
3404
- if (k != a.join(`
3512
+ if (R != a.join(`
3405
3513
  `)) {
3406
- const I = a.length - 1, w = r[I], S = a[I], x = S.length - w.length, T = r[0].length - a[0].length, N = d + se((T < 0 ? r : a)[0]), P = o - S.length + se(x > 0 ? w : S), M = d - o + k.length + x, V = N > i ? i : Math.max(N, i + T), z = h + d - o + k.length;
3407
- H(
3514
+ const A = a.length - 1, w = r[A], S = a[A], N = S.length - w.length, T = r[0].length - a[0].length, L = d + le((T < 0 ? r : a)[0]), P = o - S.length + le(N > 0 ? w : S), M = d - o + R.length + N, Z = L > s ? s : Math.max(L, s + T), H = h + d - o + R.length;
3515
+ V(
3408
3516
  n,
3409
- k,
3517
+ R,
3410
3518
  d,
3411
3519
  o,
3412
- V,
3413
- h < P ? z + x : Math.max(P + M, z)
3520
+ Z,
3521
+ h < P ? H + N : Math.max(P + M, H)
3414
3522
  );
3415
3523
  }
3416
- }, g = (a, r, d, o, i, h, k, I) => {
3417
- b(
3524
+ }, g = (a, r, d, o, s, h, R, A) => {
3525
+ f(
3418
3526
  r,
3419
3527
  r.map(
3420
- a ? (w) => w.slice(se(w) ? I - se(w) % I : 0) : (w) => w && k.repeat(I - se(w) % I) + w
3528
+ a ? (w) => w.slice(le(w) ? A - le(w) % A : 0) : (w) => w && R.repeat(A - le(w) % A) + w
3421
3529
  ),
3422
3530
  d,
3423
3531
  o,
3424
- i,
3532
+ s,
3425
3533
  h
3426
3534
  );
3427
3535
  };
3428
- f["<"] = (a, r, d) => p(r, "<>", d, !0), e.forEach(([a, r]) => {
3536
+ b["<"] = (a, r, d) => p(r, "<>", d, !0), e.forEach(([a, r]) => {
3429
3537
  const d = a == r;
3430
- f[a] = (o, i, h) => (d && c(i, r, h) || p(i, a + r, h)) && m(), d || (f[r] = (o, i, h) => c(i, r, h) && m());
3431
- }), f[">"] = (a, r, d) => {
3432
- var i, h;
3433
- const o = (h = (i = ct[dt(n)]) == null ? void 0 : i.autoCloseTags) == null ? void 0 : h.call(i, r, d, n);
3434
- o && (H(n, ">" + o, null, null, r[0] + 1), B(a));
3538
+ b[a] = (o, s, h) => (d && c(s, r, h) || p(s, a + r, h)) && m(), d || (b[r] = (o, s, h) => c(s, r, h) && m());
3539
+ }), b[">"] = (a, r, d) => {
3540
+ var s, h;
3541
+ const o = (h = (s = pt[ft(n)]) == null ? void 0 : s.autoCloseTags) == null ? void 0 : h.call(s, r, d, n);
3542
+ o && (V(n, ">" + o, null, null, r[0] + 1), G(a));
3435
3543
  }, u.Tab = (a, [r, d], o) => {
3436
- if (kt || s.readOnly || Ie(a) & 6) return;
3437
- const [i, h] = v(s), k = a.shiftKey, [I, w, S] = ee(o, r, d);
3438
- return r < d || k ? g(k, I, w, S, r, d, i, h) : H(n, i.repeat(h - (r - w) % h)), m();
3544
+ if (Lt || i.readOnly || ke(a) & 6) return;
3545
+ const [s, h] = v(i), R = a.shiftKey, [A, w, S] = te(o, r, d);
3546
+ return r < d || R ? g(R, A, w, S, r, d, s, h) : V(n, s.repeat(h - (r - w) % h)), m();
3439
3547
  }, u.Enter = (a, r, d) => {
3440
- var i, h, k;
3441
- const o = Ie(a) & 7;
3442
- if (!o || o == oe) {
3443
- o && (r[0] = r[1] = ee(d, r[1])[2]);
3444
- const [I, w] = v(), [S, x] = r, T = (i = ct[dt(n)]) == null ? void 0 : i.autoIndent, N = Math.floor(se(Rt(d, S)) / w) * w, P = (h = T == null ? void 0 : T[0]) != null && h.call(T, r, d, n) ? w : 0, M = (k = T == null ? void 0 : T[1]) == null ? void 0 : k.call(T, r, d, n), V = `
3445
- ` + I.repeat(N + P) + (M ? `
3446
- ` + I.repeat(N) : "");
3447
- if (V[1] || d[x])
3448
- return H(n, V, S, x, S + N + P + 1), m();
3548
+ var s, h, R;
3549
+ const o = ke(a) & 7;
3550
+ if (!o || o == ce) {
3551
+ o && (r[0] = r[1] = te(d, r[1])[2]);
3552
+ const [A, w] = v(), [S, N] = r, T = (s = pt[ft(n)]) == null ? void 0 : s.autoIndent, L = Math.floor(le(Ot(d, S)) / w) * w, P = (h = T == null ? void 0 : T[0]) != null && h.call(T, r, d, n) ? w : 0, M = (R = T == null ? void 0 : T[1]) == null ? void 0 : R.call(T, r, d, n), Z = `
3553
+ ` + A.repeat(L + P) + (M ? `
3554
+ ` + A.repeat(L) : "");
3555
+ if (Z[1] || d[N])
3556
+ return V(n, Z, S, N, S + L + P + 1), m();
3449
3557
  }
3450
3558
  }, u.Backspace = (a, [r, d], o) => {
3451
3559
  if (r == d) {
3452
- const i = Rt(o, r), h = s.tabSize || 2, k = e.includes(o.slice(r - 1, r + 1)), I = /[^ ]/.test(i) ? 0 : (i.length - 1) % h + 1;
3453
- if (k || I > 1)
3454
- return H(n, "", r - (k ? 1 : I), r + k), m();
3560
+ const s = Ot(o, r), h = i.tabSize || 2, R = e.includes(o.slice(r - 1, r + 1)), A = /[^ ]/.test(s) ? 0 : (s.length - 1) % h + 1;
3561
+ if (R || A > 1)
3562
+ return V(n, "", r - (R ? 1 : A), r + R), m();
3455
3563
  }
3456
3564
  };
3457
3565
  for (let a = 0; a < 2; a++)
3458
- u[a ? "ArrowDown" : "ArrowUp"] = (r, [d, o], i) => {
3459
- const h = Ie(r);
3566
+ u[a ? "ArrowDown" : "ArrowUp"] = (r, [d, o], s) => {
3567
+ const h = ke(r);
3460
3568
  if (h == 1) {
3461
- const k = a ? d : We(i, d) - 1, I = a ? i.indexOf(`
3569
+ const R = a ? d : Qe(s, d) - 1, A = a ? s.indexOf(`
3462
3570
  `, o) + 1 : o;
3463
- if (k > -1 && I > 0) {
3464
- const [w, S, x] = ee(i, k, I), T = w[a ? "pop" : "shift"](), N = (T.length + 1) * (a ? 1 : -1);
3465
- w[a ? "unshift" : "push"](T), H(n, w.join(`
3466
- `), S, x, d + N, o + N);
3571
+ if (R > -1 && A > 0) {
3572
+ const [w, S, N] = te(s, R, A), T = w[a ? "pop" : "shift"](), L = (T.length + 1) * (a ? 1 : -1);
3573
+ w[a ? "unshift" : "push"](T), V(n, w.join(`
3574
+ `), S, N, d + L, o + L);
3467
3575
  }
3468
3576
  return m();
3469
3577
  } else if (h == 9) {
3470
- const [k, I, w] = ee(i, d, o), S = k.join(`
3471
- `), x = a ? S.length + 1 : 0;
3472
- return H(n, S + `
3473
- ` + S, I, w, d + x, o + x), m();
3474
- } else if (h == 2 && !qe)
3475
- return y.scrollBy(0, Ua(y, "lineHeight") * (a ? 1 : -1)), !0;
3578
+ const [R, A, w] = te(s, d, o), S = R.join(`
3579
+ `), N = a ? S.length + 1 : 0;
3580
+ return V(n, S + `
3581
+ ` + S, A, w, d + N, o + N), m();
3582
+ } else if (h == 2 && !Ye)
3583
+ return y.scrollBy(0, ja(y, "lineHeight") * (a ? 1 : -1)), !0;
3476
3584
  };
3477
- G(n, "keydown", (a) => {
3478
- var k;
3479
- const r = Ie(a), d = a.keyCode, [o, i, h] = E();
3480
- if (r == oe && (d == 221 || d == 219))
3481
- g(d == 219, ...ee(n.value, o, i), o, i, ...v()), m(), B(a);
3482
- else if (r == (qe ? 10 : 2) && d == 77)
3483
- Ba(!kt), B(a);
3484
- else if (d == 191 && r == oe || d == 65 && r == 9) {
3485
- const I = n.value, w = r == 9, S = w ? o : We(I, o), x = ct[dt(n, S)] || {}, { line: T, block: N } = ((k = x.getComments) == null ? void 0 : k.call(x, n, S, I)) || x.comments || {}, [P, M, V] = ee(I, o, i), z = P.length - 1;
3585
+ z(n, "keydown", (a) => {
3586
+ var R;
3587
+ const r = ke(a), d = a.keyCode, [o, s, h] = E();
3588
+ if (r == ce && (d == 221 || d == 219))
3589
+ g(d == 219, ...te(n.value, o, s), o, s, ...v()), m(), G(a);
3590
+ else if (r == (Ye ? 10 : 2) && d == 77)
3591
+ Ya(!Lt), G(a);
3592
+ else if (d == 191 && r == ce || d == 65 && r == 9) {
3593
+ const A = n.value, w = r == 9, S = w ? o : Qe(A, o), N = pt[ft(n, S)] || {}, { line: T, block: L } = ((R = N.getComments) == null ? void 0 : R.call(N, n, S, A)) || N.comments || {}, [P, M, Z] = te(A, o, s), H = P.length - 1;
3486
3594
  if (w) {
3487
- if (N) {
3488
- const [U, D] = N, Y = I.slice(o, i), A = I.slice(0, o).search(we(U) + " ?$"), R = RegExp("^ ?" + we(D)).test(I.slice(i));
3489
- A + 1 && R ? H(
3595
+ if (L) {
3596
+ const [B, D] = L, X = A.slice(o, s), x = A.slice(0, o).search(Re(B) + " ?$"), I = RegExp("^ ?" + Re(D)).test(A.slice(s));
3597
+ x + 1 && I ? V(
3490
3598
  n,
3491
- Y,
3492
- A,
3493
- i + +(I[i] == " ") + D.length,
3494
- A,
3495
- A + i - o
3496
- ) : H(
3599
+ X,
3600
+ x,
3601
+ s + +(A[s] == " ") + D.length,
3602
+ x,
3603
+ x + s - o
3604
+ ) : V(
3497
3605
  n,
3498
- `${U} ${Y} ${D}`,
3606
+ `${B} ${X} ${D}`,
3499
3607
  o,
3500
- i,
3501
- o + U.length + 1,
3502
- i + U.length + 1
3503
- ), m(), B(a);
3608
+ s,
3609
+ o + B.length + 1,
3610
+ s + B.length + 1
3611
+ ), m(), G(a);
3504
3612
  }
3505
3613
  } else if (T) {
3506
- const U = we(T), D = RegExp(`^\\s*(${U} ?|$)`), Y = RegExp(U + " ?"), A = !/\S/.test(I.slice(M, V)), R = P.map(
3507
- P.every((L) => D.test(L)) && !A ? (L) => L.replace(Y, "") : (L) => A || /\S/.test(L) ? L.replace(/^\s*/, `$&${T} `) : L
3614
+ const B = Re(T), D = RegExp(`^\\s*(${B} ?|$)`), X = RegExp(B + " ?"), x = !/\S/.test(A.slice(M, Z)), I = P.map(
3615
+ P.every((C) => D.test(C)) && !x ? (C) => C.replace(X, "") : (C) => x || /\S/.test(C) ? C.replace(/^\s*/, `$&${T} `) : C
3508
3616
  );
3509
- b(P, R, M, V, o, i), m(), B(a);
3510
- } else if (N) {
3511
- const [U, D] = N, Y = se(P[0]), A = P[0].startsWith(U, Y) && P[z].endsWith(D), R = P.slice();
3512
- R[0] = P[0].replace(
3513
- A ? RegExp(we(U) + " ?") : /(?=\S)|$/,
3514
- A ? "" : U + " "
3617
+ f(P, I, M, Z, o, s), m(), G(a);
3618
+ } else if (L) {
3619
+ const [B, D] = L, X = le(P[0]), x = P[0].startsWith(B, X) && P[H].endsWith(D), I = P.slice();
3620
+ I[0] = P[0].replace(
3621
+ x ? RegExp(Re(B) + " ?") : /(?=\S)|$/,
3622
+ x ? "" : B + " "
3515
3623
  );
3516
- let L = R[0].length - P[0].length;
3517
- R[z] = A ? R[z].replace(RegExp(`( ?${we(D)})?$`), "") : R[z] + " " + D;
3518
- let Z = R.join(`
3519
- `), X = Y + M, K = X > o ? o : Math.max(o + L, X), _e = X > i - (o != i) ? i : Math.min(Math.max(X, i + L), M + Z.length);
3520
- H(n, Z, M, V, K, Math.max(K, _e)), m(), B(a);
3624
+ let C = I[0].length - P[0].length;
3625
+ I[H] = x ? I[H].replace(RegExp(`( ?${Re(D)})?$`), "") : I[H] + " " + D;
3626
+ let q = I.join(`
3627
+ `), Q = X + M, W = Q > o ? o : Math.max(o + C, Q), we = Q > s - (o != s) ? s : Math.min(Math.max(Q, s + C), M + q.length);
3628
+ V(n, q, M, Z, W, Math.max(W, we)), m(), G(a);
3521
3629
  }
3522
- } else if (r == 8 + oe && d == 75) {
3523
- const I = n.value, [w, S, x] = ee(I, o, i), T = h > "f" ? i - x + w.pop().length : o - S, N = et(I, x + 1) - x - 1;
3524
- H(
3630
+ } else if (r == 8 + ce && d == 75) {
3631
+ const A = n.value, [w, S, N] = te(A, o, s), T = h > "f" ? s - N + w.pop().length : o - S, L = rt(A, N + 1) - N - 1;
3632
+ V(
3525
3633
  n,
3526
3634
  "",
3527
3635
  S - !!S,
3528
- x + !S,
3529
- S + Math.min(T, N)
3530
- ), m(), B(a);
3636
+ N + !S,
3637
+ S + Math.min(T, L)
3638
+ ), m(), G(a);
3531
3639
  }
3532
3640
  }), ["copy", "cut", "paste"].forEach(
3533
- (a) => G(n, a, (r) => {
3641
+ (a) => z(n, a, (r) => {
3534
3642
  const [d, o] = E();
3535
- if (d == o && In) {
3536
- const [[i], h, k] = ee(n.value, d, o);
3537
- a == "paste" ? r.clipboardData.getData("text/plain") == l && (H(n, l + `
3538
- `, h, h, d + l.length + 1), m(), B(r)) : (In.writeText(l = i), a == "cut" && (H(n, "", h, k + 1), m()), B(r));
3643
+ if (d == o && Sn) {
3644
+ const [[s], h, R] = te(n.value, d, o);
3645
+ a == "paste" ? r.clipboardData.getData("text/plain") == l && (V(n, l + `
3646
+ `, h, h, d + l.length + 1), m(), G(r)) : (Sn.writeText(l = s), a == "cut" && (V(n, "", h, R + 1), m()), G(r));
3539
3647
  }
3540
3648
  })
3541
3649
  );
3542
- }, za = (e = 999) => {
3543
- let t = 0, n, s, l = !1, u, f, E, y, v, m;
3650
+ }, Qa = (e = 999) => {
3651
+ let t = 0, n, i, l = !1, u, b, E, y, v, m;
3544
3652
  const p = [], c = (a) => {
3545
3653
  a >= e && (a--, p.shift()), p.splice(t = a, e, [n.value, m(), m()]);
3546
- }, b = (a) => {
3654
+ }, f = (a) => {
3547
3655
  var r;
3548
- p[a] && (v.value = p[a][0], v.setSelectionRange(...p[a][a < t ? 2 : 1]), n.update(), (r = n.extensions.cursor) == null || r.scrollIntoView(), t = a, s = !1);
3656
+ p[a] && (v.value = p[a][0], v.setSelectionRange(...p[a][a < t ? 2 : 1]), n.update(), (r = n.extensions.cursor) == null || r.scrollIntoView(), t = a, i = !1);
3549
3657
  }, g = (a, r) => {
3550
3658
  a.extensions.history = g, n = a, m = a.getSelection, v || c(0), v = a.textarea, a.addListener("selectionChange", () => {
3551
- s = l, l = !1;
3552
- }), G(a, "beforeinput", (d) => {
3553
- let o = d.data, i = d.inputType, h = d.timeStamp;
3554
- /history/.test(i) ? (b(t + (i[7] == "U" ? -1 : 1)), B(d)) : (y = s && (u == i || h - E < 99 && i.slice(-4) == "Drop") && !fe && (o != " " || f == o)) || (p[t][2] = fe || m()), l = !0, f = o, E = h, u = i;
3555
- }), G(a, "input", () => c(t + !y)), G(a, "keydown", (d) => {
3659
+ i = l, l = !1;
3660
+ }), z(a, "beforeinput", (d) => {
3661
+ let o = d.data, s = d.inputType, h = d.timeStamp;
3662
+ /history/.test(s) ? (f(t + (s[7] == "U" ? -1 : 1)), G(d)) : (y = i && (u == s || h - E < 99 && s.slice(-4) == "Drop") && !he && (o != " " || b == o)) || (p[t][2] = he || m()), l = !0, b = o, E = h, u = s;
3663
+ }), z(a, "input", () => c(t + !y)), z(a, "keydown", (d) => {
3556
3664
  if (!r.readOnly) {
3557
- const o = Ie(d), i = d.keyCode, h = o == oe && i == 90, k = o == oe + 8 && i == 90 || !qe && o == oe && i == 89;
3558
- h ? (b(t - 1), B(d)) : k && (b(t + 1), B(d));
3665
+ const o = ke(d), s = d.keyCode, h = o == ce && s == 90, R = o == ce + 8 && s == 90 || !Ye && o == ce && s == 89;
3666
+ h ? (f(t - 1), G(d)) : R && (f(t + 1), G(d));
3559
3667
  }
3560
3668
  });
3561
3669
  };
3562
3670
  return g.clear = () => {
3563
- c(0), s = !1;
3564
- }, g.has = (a) => t + a in p, g.go = (a) => b(t + a), g;
3565
- }, Ha = Je(
3671
+ c(0), i = !1;
3672
+ }, g.has = (a) => t + a in p, g.go = (a) => f(t + a), g;
3673
+ }, Ja = at(
3566
3674
  "<div style=position:absolute;top:0;opacity:0;padding:inherit> <span><span></span> "
3567
- ), Va = () => {
3675
+ ), er = () => {
3568
3676
  let e, t = " ", n = " ";
3569
- const s = Ha(), [l, u] = s.childNodes, [f, E] = u.childNodes, y = (p) => {
3570
- let { value: c, activeLine: b } = e, g = p[p[2] < "f" ? 0 : 1], a = Rt(c, g), r = c.slice(g, et(c, g));
3571
- !a && !r && (r = " "), t != a && (l.data = t = a), n != r && (E.data = n = r), s.parentNode != b && b.prepend(s);
3572
- }, v = () => Da(e, f), m = (p) => {
3573
- p.addListener("selectionChange", y), e = p, p.extensions.cursor = m, G(p, "input", (c) => {
3677
+ const i = Ja(), [l, u] = i.childNodes, [b, E] = u.childNodes, y = (p) => {
3678
+ let { value: c, activeLine: f } = e, g = p[p[2] < "f" ? 0 : 1], a = Ot(c, g), r = c.slice(g, rt(c, g));
3679
+ !a && !r && (r = " "), t != a && (l.data = t = a), n != r && (E.data = n = r), i.parentNode != f && f.prepend(i);
3680
+ }, v = () => Ka(e, b), m = (p) => {
3681
+ p.addListener("selectionChange", y), e = p, p.extensions.cursor = m, z(p, "input", (c) => {
3574
3682
  /history/.test(c.inputType) && v();
3575
3683
  }), p.activeLine && y(p.getSelection());
3576
3684
  };
3577
3685
  return m.getPosition = () => {
3578
- const p = f.getBoundingClientRect(), c = e.overlays.getBoundingClientRect();
3686
+ const p = b.getBoundingClientRect(), c = e.overlays.getBoundingClientRect();
3579
3687
  return {
3580
3688
  top: p.y - c.y,
3581
3689
  bottom: c.bottom - p.bottom,
@@ -3583,143 +3691,143 @@ const In = navigator.clipboard, oe = qe ? 4 : 2, Ba = (e) => kt = e, se = (e) =>
3583
3691
  right: c.right - p.x,
3584
3692
  height: p.height
3585
3693
  };
3586
- }, m.scrollIntoView = v, m.element = f, m;
3587
- }, Za = Je(
3694
+ }, m.scrollIntoView = v, m.element = b, m;
3695
+ }, tr = at(
3588
3696
  "<div class=guide-indents style=left:var(--padding-left);bottom:auto;right:auto> "
3589
- ), qa = Je(
3697
+ ), nr = at(
3590
3698
  "<div style=width:1px;position:absolute;background:var(--bg-guide-indent)>"
3591
- ), Ka = () => {
3592
- let e, t = 0, n, s = -1, l;
3593
- const u = [], f = [], E = Za(), y = [], v = (b) => {
3699
+ ), ar = () => {
3700
+ let e, t = 0, n, i = -1, l;
3701
+ const u = [], b = [], E = tr(), y = [], v = (f) => {
3594
3702
  n = [];
3595
- const g = p(b.split(`
3703
+ const g = p(f.split(`
3596
3704
  `)), a = g.length;
3597
3705
  for (let r = 0, d = [], o = g[0]; o; r++) {
3598
- const i = (u[r] || (u[r] = qa())).style, [h, k, I] = o, w = f[r];
3599
- o = g[r + 1], h != (w == null ? void 0 : w[0]) && (i.top = h + "00%"), k != (w == null ? void 0 : w[1]) && (i.height = k + "00%"), I != (w == null ? void 0 : w[2]) && (i.left = I * 100 + "%");
3600
- const S = d[0] != h && (o == null ? void 0 : o[0]) != h, x = d[0] + d[1] != h + k && (o == null ? void 0 : o[0]) + (o == null ? void 0 : o[1]) != h + k;
3601
- for (let T = -S, N = k + x; T < N; T++)
3706
+ const s = (u[r] || (u[r] = nr())).style, [h, R, A] = o, w = b[r];
3707
+ o = g[r + 1], h != (w == null ? void 0 : w[0]) && (s.top = h + "00%"), R != (w == null ? void 0 : w[1]) && (s.height = R + "00%"), A != (w == null ? void 0 : w[2]) && (s.left = A * 100 + "%");
3708
+ const S = d[0] != h && (o == null ? void 0 : o[0]) != h, N = d[0] + d[1] != h + R && (o == null ? void 0 : o[0]) + (o == null ? void 0 : o[1]) != h + R;
3709
+ for (let T = -S, L = R + N; T < L; T++)
3602
3710
  n[T + h] = r;
3603
- d = f[r] = g[r];
3711
+ d = b[r] = g[r];
3604
3712
  }
3605
3713
  for (let r = t; r > a; ) u[--r].remove();
3606
3714
  E.append(...u.slice(t, t = a));
3607
3715
  }, m = () => {
3608
- const b = n[l.activeLineNumber - 1] ?? -1;
3609
- b != s && (s > -1 && (u[s].className = ""), b > -1 && (u[b].className = "active")), s = b;
3610
- }, p = (b) => {
3611
- const g = b.length, a = [], r = [];
3612
- for (let d = 0, o = -1, i = 0, h = 0; ; i++) {
3613
- const k = i == g, I = k ? 0 : y[i] = c(b[i]);
3614
- if (I < 0)
3615
- o < 0 && (o = i);
3716
+ const f = n[l.activeLineNumber - 1] ?? -1;
3717
+ f != i && (i > -1 && (u[i].className = ""), f > -1 && (u[f].className = "active")), i = f;
3718
+ }, p = (f) => {
3719
+ const g = f.length, a = [], r = [];
3720
+ for (let d = 0, o = -1, s = 0, h = 0; ; s++) {
3721
+ const R = s == g, A = R ? 0 : y[s] = c(f[s]);
3722
+ if (A < 0)
3723
+ o < 0 && (o = s);
3616
3724
  else {
3617
- for (let w = I; w < d; w++)
3618
- a[w][1] = (o < 0 || w == I && !k ? i : o) - a[w][0];
3619
- for (let w = d; w < I; )
3725
+ for (let w = A; w < d; w++)
3726
+ a[w][1] = (o < 0 || w == A && !R ? s : o) - a[w][0];
3727
+ for (let w = d; w < A; )
3620
3728
  r[h++] = a[w] = [
3621
- o < 0 || w > d ? i : o,
3729
+ o < 0 || w > d ? s : o,
3622
3730
  0,
3623
3731
  w++ * e
3624
3732
  ];
3625
- o = -1, d = I;
3733
+ o = -1, d = A;
3626
3734
  }
3627
- if (k) break;
3735
+ if (R) break;
3628
3736
  }
3629
3737
  return y.length = g, r;
3630
- }, c = (b) => {
3631
- let g = b.search(/\S/), a = 0;
3738
+ }, c = (f) => {
3739
+ let g = f.search(/\S/), a = 0;
3632
3740
  if (g < 0) return g;
3633
3741
  for (let r = 0; r < g; )
3634
- a += b[r++] == " " ? e - a % e : 1;
3742
+ a += f[r++] == " " ? e - a % e : 1;
3635
3743
  return Math.ceil(a / e);
3636
3744
  };
3637
3745
  return {
3638
3746
  lines: E.children,
3639
3747
  indentLevels: y,
3640
- update(b, g) {
3641
- l || (l = b, b.extensions.indentGuides = this, b.overlays.append(E), b.addListener("update", v), b.addListener("selectionChange", m)), E.style.display = g.wordWrap ? "none" : "", e != (e = g.tabSize || 2) && (v(b.value), m());
3748
+ update(f, g) {
3749
+ l || (l = f, f.extensions.indentGuides = this, f.overlays.append(E), f.addListener("update", v), f.addListener("selectionChange", m)), E.style.display = g.wordWrap ? "none" : "", e != (e = g.tabSize || 2) && (v(f.value), m());
3642
3750
  }
3643
3751
  };
3644
- }, Wa = () => (e) => {
3645
- let t, n, s, l = -1, u = [], f = () => {
3752
+ }, rr = () => (e) => {
3753
+ let t, n, i, l = -1, u = [], b = () => {
3646
3754
  n || (n = e.extensions.matchBrackets);
3647
3755
  let [v, m] = e.getSelection(), p = v == m && e.focused && n && E(m) || -1;
3648
3756
  if (p != l) {
3649
3757
  if (y(), p + 1) {
3650
- let c = t[s[p]], b = t[p];
3651
- u = [c, b].map(
3652
- (g) => je(e, ".punctuation", 0, -1, g[1])
3653
- ), u[0] != u[1] && c[1] + c[3].length == b[1] && (u[0].textContent += u[1].textContent, u[1].textContent = "", u[1] = u[0]), y(!0);
3758
+ let c = t[i[p]], f = t[p];
3759
+ u = [c, f].map(
3760
+ (g) => Je(e, ".punctuation", 0, -1, g[1])
3761
+ ), u[0] != u[1] && c[1] + c[3].length == f[1] && (u[0].textContent += u[1].textContent, u[1].textContent = "", u[1] = u[0]), y(!0);
3654
3762
  } else u = [];
3655
3763
  l = p;
3656
3764
  }
3657
3765
  }, E = (v) => {
3658
3766
  var m;
3659
- ({ brackets: t, pairs: s } = n);
3767
+ ({ brackets: t, pairs: i } = n);
3660
3768
  for (let p = 0, c; c = t[++p]; )
3661
- if (!c[4] && c[5] >= v && ((m = t[s[p]]) == null ? void 0 : m[1]) <= v)
3769
+ if (!c[4] && c[5] >= v && ((m = t[i[p]]) == null ? void 0 : m[1]) <= v)
3662
3770
  return p;
3663
3771
  }, y = (v) => u.forEach((m) => m.classList.toggle("active-bracket", !!v));
3664
- G(e, "focus", f), G(e, "blur", f), e.addListener("selectionChange", f), e.addListener("update", () => {
3772
+ z(e, "focus", b), z(e, "blur", b), e.addListener("selectionChange", b), e.addListener("update", () => {
3665
3773
  y(), l = -1;
3666
3774
  });
3667
- }, ja = (e = !0, t = "([{", n = ")]}") => {
3668
- let s, l;
3669
- const u = [], f = (p) => {
3670
- p.extensions.matchBrackets = f, p.addListener("tokenize", v), e && p.tokens[0] ? p.update() : v(p.tokens);
3671
- }, E = f.brackets = [], y = f.pairs = [], v = (p) => {
3672
- if (y.length = E.length = l = s = 0, m(p, 0), e)
3673
- for (let c = 0, b; b = E[c]; ) {
3674
- let g = b[0].alias;
3675
- b[0].alias = (g ? g + " " : "") + `bracket-${c++ in y ? "level-" + b[2] % 12 : "error"}`;
3775
+ }, ir = (e = !0, t = "([{", n = ")]}") => {
3776
+ let i, l;
3777
+ const u = [], b = (p) => {
3778
+ p.extensions.matchBrackets = b, p.addListener("tokenize", v), e && p.tokens[0] ? p.update() : v(p.tokens);
3779
+ }, E = b.brackets = [], y = b.pairs = [], v = (p) => {
3780
+ if (y.length = E.length = l = i = 0, m(p, 0), e)
3781
+ for (let c = 0, f; f = E[c]; ) {
3782
+ let g = f[0].alias;
3783
+ f[0].alias = (g ? g + " " : "") + `bracket-${c++ in y ? "level-" + f[2] % 12 : "error"}`;
3676
3784
  }
3677
3785
  }, m = (p, c) => {
3678
- let b, g = 0;
3679
- for (; b = p[g++]; ) {
3680
- let a = b.length;
3681
- if (typeof b != "string") {
3682
- let r = b.content;
3786
+ let f, g = 0;
3787
+ for (; f = p[g++]; ) {
3788
+ let a = f.length;
3789
+ if (typeof f != "string") {
3790
+ let r = f.content;
3683
3791
  if (Array.isArray(r))
3684
3792
  m(r, c);
3685
- else if ((b.alias || b.type) == "punctuation") {
3686
- let d = Rn(r, t, a - 1), o = d || Rn(r, n, a - 1);
3793
+ else if ((f.alias || f.type) == "punctuation") {
3794
+ let d = kn(r, t, a - 1), o = d || kn(r, n, a - 1);
3687
3795
  if (o) {
3688
- if (E[s] = [b, c, 0, r, !!d, c + a], d) u[l++] = [s, d];
3796
+ if (E[i] = [f, c, 0, r, !!d, c + a], d) u[l++] = [i, d];
3689
3797
  else
3690
- for (let i = l; i; ) {
3691
- let [h, k] = u[--i];
3692
- o == k && (y[y[s] = h] = s, E[s][2] = E[h][2] = l = i, i = 0);
3798
+ for (let s = l; s; ) {
3799
+ let [h, R] = u[--s];
3800
+ o == R && (y[y[i] = h] = i, E[i][2] = E[h][2] = l = s, s = 0);
3693
3801
  }
3694
- s++;
3802
+ i++;
3695
3803
  }
3696
3804
  }
3697
3805
  }
3698
3806
  c += a;
3699
3807
  }
3700
3808
  };
3701
- return f;
3702
- }, Rn = (e, t, n) => t.indexOf(e[0]) + 1 || n && t.indexOf(e[n]) + 1, Ya = "xml,rss,atom,jsx,tsx,xquery,actionscript".split(","), Xa = /^(?:area|base|w?br|col|embed|hr|img|input|link|meta|source|track)$/i, Qa = (e) => {
3703
- let t = [], n, s = [], l, u, f = [], E = (v, m, p) => {
3704
- n = p, s.length = t.length = l = u = 0, y(v, m, 0);
3809
+ return b;
3810
+ }, kn = (e, t, n) => t.indexOf(e[0]) + 1 || n && t.indexOf(e[n]) + 1, sr = "xml,rss,atom,jsx,tsx,xquery,actionscript".split(","), or = /^(?:area|base|w?br|col|embed|hr|img|input|link|meta|source|track)$/i, lr = (e) => {
3811
+ let t = [], n, i = [], l, u, b = [], E = (v, m, p) => {
3812
+ n = p, i.length = t.length = l = u = 0, y(v, m, 0);
3705
3813
  }, y = (v, m, p) => {
3706
- let c = Ya.includes(m), b = 0, g = v.length;
3707
- for (; b < g; ) {
3708
- const a = v[b++], r = a.content, d = a.length;
3814
+ let c = sr.includes(m), f = 0, g = v.length;
3815
+ for (; f < g; ) {
3816
+ const a = v[f++], r = a.content, d = a.length;
3709
3817
  if (Array.isArray(r))
3710
3818
  if (a.type == "tag" && n[p] == "<") {
3711
- const o = r[0].length, i = r[2] ? n.substr(p + o, r[1].length) : "", h = r[r.length - 1].length < 2 && (c || !Xa.test(i));
3819
+ const o = r[0].length, s = r[2] ? n.substr(p + o, r[1].length) : "", h = r[r.length - 1].length < 2 && (c || !or.test(s));
3712
3820
  if (r[2] && c && y(r, m, p), h)
3713
3821
  if (o > 1)
3714
- for (let k = u; k; )
3715
- i == f[--k][1] && (t[t[l] = f[u = k][0]] = l, k = 0);
3822
+ for (let R = u; R; )
3823
+ s == b[--R][1] && (t[t[l] = b[u = R][0]] = l, R = 0);
3716
3824
  else
3717
- f[u++] = [l, i];
3718
- s[l++] = [
3825
+ b[u++] = [l, s];
3826
+ i[l++] = [
3719
3827
  a,
3720
3828
  p,
3721
3829
  p + d,
3722
- i,
3830
+ s,
3723
3831
  o > 1,
3724
3832
  h
3725
3833
  ];
@@ -3735,25 +3843,25 @@ const In = navigator.clipboard, oe = qe ? 4 : 2, Ba = (e) => kt = e, se = (e) =>
3735
3843
  }
3736
3844
  };
3737
3845
  return e.addListener("tokenize", E), E(e.tokens, e.options.language, e.value), {
3738
- tags: s,
3846
+ tags: i,
3739
3847
  pairs: t
3740
3848
  };
3741
- }, Ja = (e, t) => {
3742
- for (let n = 0, s = t.length; n < s; n++) if (t[n][1] <= e && t[n][2] >= e) return n;
3743
- }, er = () => (e) => {
3849
+ }, cr = (e, t) => {
3850
+ for (let n = 0, i = t.length; n < i; n++) if (t[n][1] <= e && t[n][2] >= e) return n;
3851
+ }, dr = () => (e) => {
3744
3852
  var t;
3745
- let n, s;
3746
- const { tags: l, pairs: u } = (t = e.extensions).matchTags || (t.matchTags = Qa(e)), f = (E) => [n, s].forEach((y) => {
3853
+ let n, i;
3854
+ const { tags: l, pairs: u } = (t = e.extensions).matchTags || (t.matchTags = lr(e)), b = (E) => [n, i].forEach((y) => {
3747
3855
  y && y.classList.toggle("active-tagname", !E);
3748
3856
  });
3749
3857
  e.addListener("selectionChange", ([E, y]) => {
3750
3858
  let v, m, p;
3751
- E == y && e.focused && (p = Ja(E, l), p + 1 && (p = u[p], p + 1 && (v = je(e, ".tag>.tag")) && (m = je(e, ".tag>.tag", 2, 0, l[p][1])))), n != v && (f(!0), n = v, s = m, f());
3859
+ E == y && e.focused && (p = cr(E, l), p + 1 && (p = u[p], p + 1 && (v = Je(e, ".tag>.tag")) && (m = Je(e, ".tag>.tag", 2, 0, l[p][1])))), n != v && (b(!0), n = v, i = m, b());
3752
3860
  });
3753
- }, tr = "_wrap_1x3wi_1", nr = "_blockInfoEditable_1x3wi_30", kn = {
3754
- wrap: tr,
3755
- blockInfoEditable: nr
3756
- }, Pe = [
3861
+ }, ur = "_wrap_1x3wi_1", pr = "_blockInfoEditable_1x3wi_30", Tn = {
3862
+ wrap: ur,
3863
+ blockInfoEditable: pr
3864
+ }, Ue = [
3757
3865
  { value: "plaintext", label: "plaintext" },
3758
3866
  { value: "javascript", label: "JavaScript" },
3759
3867
  { value: "typescript", label: "TypeScript" },
@@ -3770,12 +3878,12 @@ const In = navigator.clipboard, oe = qe ? 4 : 2, Ba = (e) => kt = e, se = (e) =>
3770
3878
  { value: "markdown", label: "Markdown" },
3771
3879
  { value: "bash", label: "Bash" },
3772
3880
  { value: "php", label: "PHP" }
3773
- ], ut = [2, 4, 8];
3774
- function ar(e) {
3775
- const t = oa(), n = Bt(null), s = nt(() => ca(ea.name, e == null ? void 0 : e.editor), [e == null ? void 0 : e.editor]), l = Bt(null), u = e.node.attrs.code || e.node.textContent || "", f = nt((c) => {
3881
+ ], bt = [2, 4, 8];
3882
+ function fr(e) {
3883
+ const t = fa(), n = zt(null), i = it(() => ma(sa.name, e == null ? void 0 : e.editor), [e == null ? void 0 : e.editor]), l = zt(null), u = e.node.attrs.code || e.node.textContent || "", b = it((c) => {
3776
3884
  c == null || c.stopPropagation(), setTimeout(() => {
3777
- var b, g, a;
3778
- (a = (g = (b = l.current) == null ? void 0 : b.textarea) == null ? void 0 : g.focus) == null || a.call(g);
3885
+ var f, g, a;
3886
+ (a = (g = (f = l.current) == null ? void 0 : f.textarea) == null ? void 0 : g.focus) == null || a.call(g);
3779
3887
  }, 0);
3780
3888
  }, []), E = async () => {
3781
3889
  if (u)
@@ -3789,28 +3897,28 @@ function ar(e) {
3789
3897
  } catch (c) {
3790
3898
  console.error("Error:", c);
3791
3899
  } finally {
3792
- f();
3900
+ b();
3793
3901
  }
3794
3902
  }, y = () => {
3795
3903
  e.updateAttributes({
3796
3904
  lineNumbers: !e.node.attrs.lineNumbers
3797
- }), f();
3905
+ }), b();
3798
3906
  }, v = () => {
3799
3907
  e.updateAttributes({
3800
3908
  wordWrap: !e.node.attrs.wordWrap
3801
- }), f();
3909
+ }), b();
3802
3910
  }, m = (c) => {
3803
- const b = { ...c };
3804
- return b.language && !Pe.some((g) => g.value === b.language) && (b.language = "plaintext", e.updateAttributes({
3911
+ const f = { ...c };
3912
+ return f.language && !Ue.some((g) => g.value === f.language) && (f.language = "plaintext", e.updateAttributes({
3805
3913
  language: "plaintext"
3806
- })), b;
3807
- }, p = nt((c) => {
3808
- f(c);
3809
- }, [f]);
3810
- return Gt(() => {
3914
+ })), f;
3915
+ }, p = it((c) => {
3916
+ b(c);
3917
+ }, [b]);
3918
+ return Ht(() => {
3811
3919
  if (n.current) {
3812
3920
  const c = m(e.node.attrs);
3813
- l.current = Ma(n.current, {
3921
+ l.current = Va(n.current, {
3814
3922
  readOnly: !t,
3815
3923
  language: c.language || "plaintext",
3816
3924
  tabSize: c.tabSize ?? 2,
@@ -3818,63 +3926,63 @@ function ar(e) {
3818
3926
  wordWrap: c.wordWrap ?? !1,
3819
3927
  value: u,
3820
3928
  rtl: !1,
3821
- onUpdate(b) {
3929
+ onUpdate(f) {
3822
3930
  queueMicrotask(() => {
3823
- e.updateAttributes({ code: b });
3931
+ e.updateAttributes({ code: f });
3824
3932
  });
3825
3933
  }
3826
3934
  }), l.current.addExtensions(
3827
- ja(),
3935
+ ir(),
3936
+ dr(),
3937
+ ar(),
3938
+ rr(),
3828
3939
  er(),
3829
- Ka(),
3830
- Wa(),
3831
- Va(),
3832
- Ga(),
3833
- za()
3940
+ Xa(),
3941
+ Qa()
3834
3942
  ), e.node.attrs.shouldFocus && setTimeout(() => {
3835
- f(), e.updateAttributes({
3943
+ b(), e.updateAttributes({
3836
3944
  shouldFocus: !1
3837
3945
  });
3838
3946
  }, 0);
3839
3947
  }
3840
3948
  return () => {
3841
- var c, b;
3842
- (c = l.current) != null && c.remove && ((b = l.current) == null || b.remove());
3949
+ var c, f;
3950
+ (c = l.current) != null && c.remove && ((f = l.current) == null || f.remove());
3843
3951
  };
3844
- }, [n]), Gt(() => {
3845
- var c, b;
3952
+ }, [n]), Ht(() => {
3953
+ var c, f;
3846
3954
  if ((c = l.current) != null && c.setOptions) {
3847
3955
  const g = m(e.node.attrs);
3848
- (b = l.current) == null || b.setOptions(g);
3956
+ (f = l.current) == null || f.setOptions(g);
3849
3957
  }
3850
- }, [l, e.node.attrs]), /* @__PURE__ */ C(ta, { className: Te(kn.wrap, "render-wrapper"), children: /* @__PURE__ */ C(
3958
+ }, [l, e.node.attrs]), /* @__PURE__ */ k(oa, { className: Le(Tn.wrap, "render-wrapper"), children: /* @__PURE__ */ k(
3851
3959
  "div",
3852
3960
  {
3853
3961
  onClick: p,
3854
3962
  ref: n,
3855
- className: Te("richtext-node-container richtext-hover-shadow richtext-select-outline richtext-node-code-block !richtext-my-[10px]", {
3856
- [kn.blockInfoEditable]: !t
3963
+ className: Le("richtext-node-container richtext-hover-shadow richtext-select-outline richtext-node-code-block !richtext-my-[10px]", {
3964
+ [Tn.blockInfoEditable]: !t
3857
3965
  }),
3858
- children: /* @__PURE__ */ tt("div", { className: "richtext-code-block-toolbar", children: [
3859
- /* @__PURE__ */ C("div", { children: /* @__PURE__ */ tt(
3860
- $t,
3966
+ children: /* @__PURE__ */ _e("div", { className: "richtext-code-block-toolbar", children: [
3967
+ /* @__PURE__ */ k("div", { children: /* @__PURE__ */ _e(
3968
+ Vt,
3861
3969
  {
3862
3970
  defaultValue: e.node.attrs.language,
3863
3971
  disabled: !t,
3864
3972
  onValueChange: (c) => {
3865
3973
  e.updateAttributes({
3866
3974
  language: c
3867
- }), f();
3975
+ }), b();
3868
3976
  },
3869
3977
  children: [
3870
- /* @__PURE__ */ C(Dt, { className: "richtext-h-7 richtext-w-[160px] richtext-border-none richtext-text-sm richtext-outline-none hover:richtext-bg-[#5a5d5e4f]", children: /* @__PURE__ */ C(la, { placeholder: "Select language" }) }),
3871
- /* @__PURE__ */ C(
3872
- Ft,
3978
+ /* @__PURE__ */ k(gt, { className: "richtext-h-7 richtext-w-[160px] richtext-border-none richtext-text-sm richtext-outline-none hover:richtext-bg-[#5a5d5e4f]", children: /* @__PURE__ */ k(Ea, { placeholder: "Select language" }) }),
3979
+ /* @__PURE__ */ k(
3980
+ mt,
3873
3981
  {
3874
3982
  onCloseAutoFocus: (c) => c.preventDefault(),
3875
- children: Pe == null ? void 0 : Pe.map(
3876
- (c) => /* @__PURE__ */ C(
3877
- Ut,
3983
+ children: Ue == null ? void 0 : Ue.map(
3984
+ (c) => /* @__PURE__ */ k(
3985
+ ht,
3878
3986
  {
3879
3987
  value: c.value,
3880
3988
  children: c.label
@@ -3887,14 +3995,14 @@ function ar(e) {
3887
3995
  ]
3888
3996
  }
3889
3997
  ) }),
3890
- /* @__PURE__ */ C("div", { className: "toolbar-divider" }),
3891
- /* @__PURE__ */ C(
3998
+ /* @__PURE__ */ k("div", { className: "toolbar-divider" }),
3999
+ /* @__PURE__ */ k(
3892
4000
  "div",
3893
4001
  {
3894
4002
  className: "richtext-flex richtext-size-7 richtext-cursor-pointer richtext-items-center richtext-justify-center richtext-rounded-sm hover:richtext-bg-[#5a5d5e4f]",
3895
4003
  onClick: E,
3896
- children: /* @__PURE__ */ C(
3897
- Ee,
4004
+ children: /* @__PURE__ */ k(
4005
+ xe,
3898
4006
  {
3899
4007
  className: "richtext-size-4",
3900
4008
  name: "Copy"
@@ -3902,16 +4010,16 @@ function ar(e) {
3902
4010
  )
3903
4011
  }
3904
4012
  ),
3905
- /* @__PURE__ */ C("div", { className: "toolbar-divider" }),
3906
- /* @__PURE__ */ C(
4013
+ /* @__PURE__ */ k("div", { className: "toolbar-divider" }),
4014
+ /* @__PURE__ */ k(
3907
4015
  "div",
3908
4016
  {
3909
4017
  onClick: y,
3910
- className: Te("richtext-flex richtext-size-7 richtext-cursor-pointer richtext-items-center richtext-justify-center richtext-rounded-sm hover:richtext-bg-[#5a5d5e4f]", {
4018
+ className: Le("richtext-flex richtext-size-7 richtext-cursor-pointer richtext-items-center richtext-justify-center richtext-rounded-sm hover:richtext-bg-[#5a5d5e4f]", {
3911
4019
  "richtext-bg-[#5a5d5e4f]": e == null ? void 0 : e.node.attrs.lineNumbers
3912
4020
  }),
3913
- children: /* @__PURE__ */ C(
3914
- Ee,
4021
+ children: /* @__PURE__ */ k(
4022
+ xe,
3915
4023
  {
3916
4024
  className: "richtext-size-4",
3917
4025
  name: "List"
@@ -3919,16 +4027,16 @@ function ar(e) {
3919
4027
  )
3920
4028
  }
3921
4029
  ),
3922
- /* @__PURE__ */ C("div", { className: "toolbar-divider" }),
3923
- /* @__PURE__ */ C(
4030
+ /* @__PURE__ */ k("div", { className: "toolbar-divider" }),
4031
+ /* @__PURE__ */ k(
3924
4032
  "div",
3925
4033
  {
3926
4034
  onClick: v,
3927
- className: Te("richtext-flex richtext-size-7 richtext-cursor-pointer richtext-items-center richtext-justify-center richtext-rounded-sm hover:richtext-bg-[#5a5d5e4f]", {
4035
+ className: Le("richtext-flex richtext-size-7 richtext-cursor-pointer richtext-items-center richtext-justify-center richtext-rounded-sm hover:richtext-bg-[#5a5d5e4f]", {
3928
4036
  "richtext-bg-[#5a5d5e4f]": e == null ? void 0 : e.node.attrs.wordWrap
3929
4037
  }),
3930
- children: /* @__PURE__ */ C(
3931
- Ee,
4038
+ children: /* @__PURE__ */ k(
4039
+ xe,
3932
4040
  {
3933
4041
  className: "richtext-size-4",
3934
4042
  name: "WrapText"
@@ -3936,31 +4044,31 @@ function ar(e) {
3936
4044
  )
3937
4045
  }
3938
4046
  ),
3939
- /* @__PURE__ */ C("div", { className: "toolbar-divider" }),
3940
- /* @__PURE__ */ C("div", { children: /* @__PURE__ */ tt(
3941
- $t,
4047
+ /* @__PURE__ */ k("div", { className: "toolbar-divider" }),
4048
+ /* @__PURE__ */ k("div", { children: /* @__PURE__ */ _e(
4049
+ Vt,
3942
4050
  {
3943
4051
  defaultValue: e.node.attrs.tabSize,
3944
4052
  disabled: !t,
3945
4053
  onValueChange: (c) => {
3946
4054
  e.updateAttributes({
3947
4055
  tabSize: c
3948
- }), f();
4056
+ }), b();
3949
4057
  },
3950
4058
  children: [
3951
- /* @__PURE__ */ C(Dt, { className: "richtext-h-7 richtext-w-[60px] richtext-border-none richtext-text-sm richtext-outline-none hover:richtext-bg-[#5a5d5e4f]", children: /* @__PURE__ */ C(
3952
- Ee,
4059
+ /* @__PURE__ */ k(gt, { className: "richtext-h-7 richtext-w-[60px] richtext-border-none richtext-text-sm richtext-outline-none hover:richtext-bg-[#5a5d5e4f]", children: /* @__PURE__ */ k(
4060
+ xe,
3953
4061
  {
3954
4062
  className: "richtext-size-4",
3955
4063
  name: "IndentIncrease"
3956
4064
  }
3957
4065
  ) }),
3958
- /* @__PURE__ */ C(
3959
- Ft,
4066
+ /* @__PURE__ */ k(
4067
+ mt,
3960
4068
  {
3961
4069
  onCloseAutoFocus: (c) => c.preventDefault(),
3962
- children: ut == null ? void 0 : ut.map((c) => /* @__PURE__ */ C(
3963
- Ut,
4070
+ children: bt == null ? void 0 : bt.map((c) => /* @__PURE__ */ k(
4071
+ ht,
3964
4072
  {
3965
4073
  value: c,
3966
4074
  children: c
@@ -3972,14 +4080,14 @@ function ar(e) {
3972
4080
  ]
3973
4081
  }
3974
4082
  ) }),
3975
- /* @__PURE__ */ C("div", { className: "toolbar-divider" }),
3976
- /* @__PURE__ */ C(
4083
+ /* @__PURE__ */ k("div", { className: "toolbar-divider" }),
4084
+ /* @__PURE__ */ k(
3977
4085
  "div",
3978
4086
  {
3979
4087
  className: "richtext-flex richtext-size-7 richtext-cursor-pointer richtext-items-center richtext-justify-center richtext-rounded-sm hover:richtext-bg-[#5a5d5e4f]",
3980
- onClick: s,
3981
- children: /* @__PURE__ */ C(
3982
- Ee,
4088
+ onClick: i,
4089
+ children: /* @__PURE__ */ k(
4090
+ xe,
3983
4091
  {
3984
4092
  className: "richtext-size-4",
3985
4093
  name: "Trash2"
@@ -3991,7 +4099,7 @@ function ar(e) {
3991
4099
  }
3992
4100
  ) });
3993
4101
  }
3994
- const rr = /^`{3}([a-z]+)?\s$/, ir = /^~{3}([a-z]+)?\s$/, ea = /* @__PURE__ */ na.create({
4102
+ const br = /^`{3}([a-z]+)?\s$/, gr = /^~{3}([a-z]+)?\s$/, sa = /* @__PURE__ */ la.create({
3995
4103
  name: "codeBlock",
3996
4104
  group: "block",
3997
4105
  atom: !0,
@@ -4056,16 +4164,16 @@ const rr = /^`{3}([a-z]+)?\s$/, ir = /^~{3}([a-z]+)?\s$/, ea = /* @__PURE__ */ n
4056
4164
  ];
4057
4165
  },
4058
4166
  renderHTML({ HTMLAttributes: e, node: t }) {
4059
- var s;
4060
- const n = t.attrs.code || ((s = t.content.firstChild) == null ? void 0 : s.text) || "";
4167
+ var i;
4168
+ const n = t.attrs.code || ((i = t.content.firstChild) == null ? void 0 : i.text) || "";
4061
4169
  return [
4062
4170
  "pre",
4063
- ra(this.options.HTMLAttributes, e),
4171
+ da(this.options.HTMLAttributes, e),
4064
4172
  ["code", {}, n]
4065
4173
  ];
4066
4174
  },
4067
4175
  addNodeView() {
4068
- return aa(ar);
4176
+ return ca(fr);
4069
4177
  },
4070
4178
  addCommands() {
4071
4179
  return {
@@ -4085,15 +4193,15 @@ const rr = /^`{3}([a-z]+)?\s$/, ir = /^~{3}([a-z]+)?\s$/, ea = /* @__PURE__ */ n
4085
4193
  },
4086
4194
  addInputRules() {
4087
4195
  return [
4088
- Pt({
4089
- find: rr,
4196
+ Gt({
4197
+ find: br,
4090
4198
  type: this.type,
4091
4199
  getAttributes: (e) => ({
4092
4200
  language: e[1]
4093
4201
  })
4094
4202
  }),
4095
- Pt({
4096
- find: ir,
4203
+ Gt({
4204
+ find: gr,
4097
4205
  type: this.type,
4098
4206
  getAttributes: (e) => ({
4099
4207
  language: e[1]
@@ -4103,8 +4211,8 @@ const rr = /^`{3}([a-z]+)?\s$/, ir = /^~{3}([a-z]+)?\s$/, ea = /* @__PURE__ */ n
4103
4211
  }
4104
4212
  });
4105
4213
  export {
4106
- ea as CodeBlock,
4107
- br as RichTextCodeBlock,
4108
- rr as backtickInputRegex,
4109
- ir as tildeInputRegex
4214
+ sa as CodeBlock,
4215
+ Ar as RichTextCodeBlock,
4216
+ br as backtickInputRegex,
4217
+ gr as tildeInputRegex
4110
4218
  };