reactjs-tiptap-editor 1.0.3 → 1.0.5

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 (157) hide show
  1. package/lib/{ActionMenuButton-BjQpCWBy.cjs → ActionMenuButton-BS1m0efQ.cjs} +1 -1
  2. package/lib/{ActionMenuButton-BFepb5pA.js → ActionMenuButton-CmYQziyT.js} +11 -11
  3. package/lib/Attachment.cjs +1 -1
  4. package/lib/Attachment.js +4 -4
  5. package/lib/Blockquote.cjs +1 -1
  6. package/lib/Blockquote.js +3 -3
  7. package/lib/Bold.cjs +1 -1
  8. package/lib/Bold.js +3 -3
  9. package/lib/BulletList.cjs +1 -1
  10. package/lib/BulletList.js +3 -3
  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 +3 -3
  15. package/lib/CodeBlock.cjs +39 -39
  16. package/lib/CodeBlock.js +949 -841
  17. package/lib/CodeView.cjs +1 -1
  18. package/lib/CodeView.js +3 -3
  19. package/lib/Color.cjs +1 -1
  20. package/lib/Color.js +8 -8
  21. package/lib/Column.cjs +1 -1
  22. package/lib/Column.js +3 -3
  23. package/lib/{Drawer-CJju6ecy.js → Drawer-BCMlTDss.js} +14 -14
  24. package/lib/{Drawer-CSueBqcB.cjs → Drawer-DPVStAKs.cjs} +1 -1
  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-C6LNBBPI.js → Excalidraw-1dKmqI-3.js} +19 -19
  30. package/lib/{Excalidraw-sf65kOJo.cjs → Excalidraw-BP-xjF6S.cjs} +1 -1
  31. package/lib/Excalidraw.cjs +1 -1
  32. package/lib/Excalidraw.js +1 -1
  33. package/lib/ExportPdf.cjs +1 -1
  34. package/lib/ExportPdf.js +3 -3
  35. package/lib/ExportWord.cjs +1 -1
  36. package/lib/ExportWord.js +3 -3
  37. package/lib/FontFamily.cjs +1 -1
  38. package/lib/FontFamily.js +5 -5
  39. package/lib/FontSize.cjs +1 -1
  40. package/lib/FontSize.js +5 -5
  41. package/lib/Heading.cjs +1 -1
  42. package/lib/Heading.js +13 -13
  43. package/lib/Highlight.cjs +1 -1
  44. package/lib/Highlight.js +8 -8
  45. package/lib/History.cjs +1 -1
  46. package/lib/History.js +3 -3
  47. package/lib/HorizontalRule.cjs +1 -1
  48. package/lib/HorizontalRule.js +3 -3
  49. package/lib/{Icon-CJomacaQ.cjs → Icon-BjR_or8V.cjs} +1 -1
  50. package/lib/{Icon-CNyAQ70L.js → Icon-C-qYUAS1.js} +1 -1
  51. package/lib/{Iframe-DjIPMesT.js → Iframe-B_GAN9lj.js} +11 -11
  52. package/lib/{Iframe-CkoadzVT.cjs → Iframe-CeasogsD.cjs} +1 -1
  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 +45 -45
  57. package/lib/ImageGif.cjs +1 -1
  58. package/lib/ImageGif.js +8 -8
  59. package/lib/ImportWord.cjs +2 -2
  60. package/lib/ImportWord.js +8 -8
  61. package/lib/{Indent-08e09DMj.cjs → Indent-BGmFt7Dc.cjs} +1 -1
  62. package/lib/{Indent-UDnZAurv.js → Indent-DCTAYr8i.js} +3 -3
  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 +3 -3
  67. package/lib/{Katex-zmcrp9k1.cjs → Katex-CFZB-dZq.cjs} +2 -2
  68. package/lib/{Katex-CXa45tyK.js → Katex-CxEAc1xw.js} +19 -19
  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 +14 -14
  73. package/lib/Link.cjs +1 -1
  74. package/lib/Link.js +1 -1
  75. package/lib/{LinkEditBlock-CB8dAmrf.js → LinkEditBlock-C8rPUoNH.js} +68 -68
  76. package/lib/{LinkEditBlock-Dif8KmZQ.cjs → LinkEditBlock-DiSXJpTN.cjs} +2 -2
  77. package/lib/Mermaid.cjs +2 -2
  78. package/lib/Mermaid.js +20 -21
  79. package/lib/MoreMark.cjs +1 -1
  80. package/lib/MoreMark.js +15 -15
  81. package/lib/OrderedList.cjs +1 -1
  82. package/lib/OrderedList.js +3 -3
  83. package/lib/SearchAndReplace.cjs +1 -1
  84. package/lib/SearchAndReplace.js +20 -20
  85. package/lib/SlashCommand.cjs +1 -1
  86. package/lib/SlashCommand.js +8 -8
  87. package/lib/Strike.cjs +1 -1
  88. package/lib/Strike.js +3 -3
  89. package/lib/{Table-BahHb0Ru.cjs → Table-B4s9CpR4.cjs} +1 -1
  90. package/lib/{Table-BnhgS_-w.js → Table-B9w1GsCg.js} +5 -5
  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 +3 -3
  95. package/lib/TextAlign.cjs +1 -1
  96. package/lib/TextAlign.js +15 -15
  97. package/lib/TextDirection.cjs +1 -1
  98. package/lib/TextDirection.js +15 -15
  99. package/lib/TextUnderline.cjs +1 -1
  100. package/lib/TextUnderline.js +3 -3
  101. package/lib/{Twitter-Cb2gasLV.js → Twitter-B-GTNq1g.js} +19 -19
  102. package/lib/{Twitter-BWmvba2p.cjs → Twitter-BVlF0vEs.cjs} +1 -1
  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 +23 -23
  107. package/lib/bubble.cjs +1 -1
  108. package/lib/bubble.js +37 -37
  109. package/lib/{button-CG4usMxR.js → button-Crm67hfl.js} +1 -1
  110. package/lib/{button-CIneI3CY.cjs → button-xNppt_aK.cjs} +1 -1
  111. package/lib/{checkbox-C_n_ksgm.js → checkbox-DViVmgJ6.js} +1 -1
  112. package/lib/{checkbox-D71Mb18N.cjs → checkbox-NQC2MdGT.cjs} +1 -1
  113. package/lib/{dialog-NJmA61GX.js → dialog-Ce9Cjfft.js} +1 -1
  114. package/lib/{dialog-DOqHbj83.cjs → dialog-DaHBd2zw.cjs} +1 -1
  115. package/lib/{dropdown-menu-Lfbfr4dW.js → dropdown-menu-CQykJhBs.js} +1 -1
  116. package/lib/{dropdown-menu-C6sUfvGJ.cjs → dropdown-menu-CSCDQtq0.cjs} +1 -1
  117. package/lib/events.constant-DQYeJpu5.cjs +1 -0
  118. package/lib/{events.constant-CBPIqO_g.js → events.constant-wrlJ_7JZ.js} +5 -4
  119. package/lib/{index-DGihe-wH.js → index-0OnGZkVF.js} +19 -16
  120. package/lib/index-CNzHZDls.cjs +7 -0
  121. package/lib/{index-BY7ivGJJ.js → index-DuZCJJSp.js} +461 -550
  122. package/lib/{index-D4d-0Hqh.cjs → index-FSRjMsxW.cjs} +1 -1
  123. package/lib/index.cjs +1 -1
  124. package/lib/index.js +2 -2
  125. package/lib/{input-BP2Gxw3D.js → input-DfqFAyKo.js} +1 -1
  126. package/lib/{input-gHDudt4e.cjs → input-tU3H__39.cjs} +1 -1
  127. package/lib/{label-DJJuWtqE.js → label-DC33TZy_.js} +1 -1
  128. package/lib/{label-CVPLC4Zx.cjs → label-DkDE77kc.cjs} +1 -1
  129. package/lib/locale-bundle.cjs +1 -1
  130. package/lib/locale-bundle.js +1 -1
  131. package/lib/locales/index.d.ts +2 -1
  132. package/lib/{popover-MfEQQFJ7.cjs → popover-CZWSQZ0q.cjs} +1 -1
  133. package/lib/{popover-BvQjtkQM.js → popover-CoepUobG.js} +1 -1
  134. package/lib/{separator-D_v6CJRt.js → separator-6SnwzytZ.js} +18 -18
  135. package/lib/{separator-BJzi4Ghx.cjs → separator-DCQD8P6s.cjs} +1 -1
  136. package/lib/store-726Zjszt.cjs +1 -0
  137. package/lib/store-ibARMQ3h.js +10 -0
  138. package/lib/style.css +1 -1
  139. package/lib/{tabs-CSLPqYK2.cjs → tabs-B_ArrG09.cjs} +1 -1
  140. package/lib/{tabs-C0zcytw3.js → tabs-DrkJL_C2.js} +1 -1
  141. package/lib/{textarea-Du5WiLd3.js → textarea-CIs52G8B.js} +1 -1
  142. package/lib/{textarea-CoUGzfC4.cjs → textarea-CmZVZKOo.cjs} +1 -1
  143. package/lib/theme/theme.d.ts +1 -1
  144. package/lib/theme.cjs +1 -1
  145. package/lib/theme.js +2 -2
  146. package/lib/{toggle-Bdrb8AZg.cjs → toggle-Bo07J-M7.cjs} +1 -1
  147. package/lib/{toggle-DifEFalS.js → toggle-MUGlaI1L.js} +8 -8
  148. package/lib/{tooltip-CY18LQet.js → tooltip-BTFcHrd9.js} +1 -1
  149. package/lib/{tooltip-nFyTogij.cjs → tooltip-DFjcKu9a.cjs} +1 -1
  150. package/lib/{useButtonProps-DEuoHLy_.js → useButtonProps-D0SrPzuG.js} +2 -2
  151. package/lib/{useButtonProps-5aSfh81v.cjs → useButtonProps-bei1vI37.cjs} +1 -1
  152. package/lib/utils/customEvents/events.constant.d.ts +1 -0
  153. package/package.json +1 -1
  154. package/lib/events.constant-B-VGURJp.cjs +0 -1
  155. package/lib/index-B7WkxZXU.cjs +0 -7
  156. package/lib/store-D0HwYEZ6.cjs +0 -1
  157. package/lib/store-DXwTyDFS.js +0 -10
package/lib/CodeBlock.js CHANGED
@@ -1,97 +1,205 @@
1
- import { s as ta, C as Te, N as na, t as Pt, R as aa, m as ra } from "./index-nFjllrEl.js";
2
- import { jsx as C, Fragment as ia, jsxs as tt } from "react/jsx-runtime";
3
- import { A as sa } from "./toggle-DifEFalS.js";
4
- import { useRef as $t, useCallback as nt, useEffect as Dt } from "react";
5
- import { b as oa, S as Ft, d as Ut, e as la, f as Bt, g as Gt } from "./index-BY7ivGJJ.js";
6
- import { d as ca } from "./delete-node-IyVmiRbI.js";
7
- import { I as Ee } from "./Icon-CNyAQ70L.js";
8
- import { u as da, a as ua } from "./useButtonProps-DEuoHLy_.js";
9
- function fr() {
10
- 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-nFjllrEl.js";
2
+ import { jsxs as _e, jsx as k, Fragment as ua } from "react/jsx-runtime";
3
+ import { A as pa } from "./toggle-MUGlaI1L.js";
4
+ import * as ue from "react";
5
+ import { useRef as zt, useCallback as it, useEffect as Ht } from "react";
6
+ import { c as ne, b as fa } from "./index-DuZCJJSp.js";
7
+ import * as F from "@radix-ui/react-select";
8
+ import { ChevronDown as Nn, ChevronUp as ba, Check as ga } from "lucide-react";
9
+ import { I as xe } from "./Icon-C-qYUAS1.js";
10
+ import { d as ma } from "./delete-node-IyVmiRbI.js";
11
+ import { u as ha, a as _a } from "./useButtonProps-D0SrPzuG.js";
12
+ const Vt = F.Root, Ea = F.Value, gt = ue.forwardRef(({ className: e, children: t, ...n }, i) => /* @__PURE__ */ _e(
13
+ F.Trigger,
14
+ {
15
+ ref: i,
16
+ className: ne(
17
+ "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",
18
+ e
19
+ ),
20
+ ...n,
21
+ children: [
22
+ t,
23
+ /* @__PURE__ */ k(F.Icon, { asChild: !0, children: /* @__PURE__ */ k(Nn, { className: "richtext-size-4 richtext-opacity-50" }) })
24
+ ]
25
+ }
26
+ ));
27
+ gt.displayName = F.Trigger.displayName;
28
+ const On = ue.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ k(
29
+ F.ScrollUpButton,
30
+ {
31
+ ref: n,
32
+ className: ne(
33
+ "richtext-flex richtext-cursor-default richtext-items-center richtext-justify-center richtext-py-1",
34
+ e
35
+ ),
36
+ ...t,
37
+ children: /* @__PURE__ */ k(ba, { className: "richtext-size-4" })
38
+ }
39
+ ));
40
+ On.displayName = F.ScrollUpButton.displayName;
41
+ const Ln = ue.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ k(
42
+ F.ScrollDownButton,
43
+ {
44
+ ref: n,
45
+ className: ne(
46
+ "richtext-flex richtext-cursor-default richtext-items-center richtext-justify-center richtext-py-1",
47
+ e
48
+ ),
49
+ ...t,
50
+ children: /* @__PURE__ */ k(Nn, { className: "richtext-size-4" })
51
+ }
52
+ ));
53
+ Ln.displayName = F.ScrollDownButton.displayName;
54
+ const mt = ue.forwardRef(({ className: e, children: t, position: n = "popper", ...i }, l) => /* @__PURE__ */ k(F.Portal, { children: /* @__PURE__ */ _e(
55
+ F.Content,
56
+ {
57
+ "data-richtext-portal": !0,
58
+ position: n,
59
+ ref: l,
60
+ className: ne(
61
+ "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",
62
+ 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",
63
+ e
64
+ ),
65
+ ...i,
66
+ children: [
67
+ /* @__PURE__ */ k(On, {}),
68
+ /* @__PURE__ */ k(
69
+ F.Viewport,
70
+ {
71
+ className: ne(
72
+ "richtext-p-1",
73
+ n === "popper" && "richtext-h-[var(--radix-select-trigger-height)] richtext-w-full richtext-min-w-[var(--radix-select-trigger-width)]"
74
+ ),
75
+ children: t
76
+ }
77
+ ),
78
+ /* @__PURE__ */ k(Ln, {})
79
+ ]
80
+ }
81
+ ) }));
82
+ mt.displayName = F.Content.displayName;
83
+ const ya = ue.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ k(
84
+ F.Label,
85
+ {
86
+ className: ne("richtext-py-1.5 richtext-pl-8 richtext-pr-2 richtext-text-sm richtext-font-semibold", e),
87
+ ref: n,
88
+ ...t
89
+ }
90
+ ));
91
+ ya.displayName = F.Label.displayName;
92
+ const ht = ue.forwardRef(({ className: e, children: t, ...n }, i) => /* @__PURE__ */ _e(
93
+ F.Item,
94
+ {
95
+ ref: i,
96
+ className: ne(
97
+ "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",
98
+ e
99
+ ),
100
+ ...n,
101
+ children: [
102
+ /* @__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" }) }) }),
103
+ /* @__PURE__ */ k(F.ItemText, { children: t })
104
+ ]
105
+ }
106
+ ));
107
+ ht.displayName = F.Item.displayName;
108
+ const va = ue.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ k(
109
+ F.Separator,
110
+ {
111
+ className: ne("richtext--mx-1 richtext-my-1 richtext-h-px richtext-bg-muted", e),
112
+ ref: n,
113
+ ...t
114
+ }
115
+ ));
116
+ va.displayName = F.Separator.displayName;
117
+ function Ir() {
118
+ const e = ha(sa.name), {
11
119
  icon: t = void 0,
12
120
  tooltip: n = void 0,
13
- tooltipOptions: s = {},
121
+ tooltipOptions: i = {},
14
122
  action: l = void 0,
15
123
  isActive: u = void 0
16
- } = (e == null ? void 0 : e.componentProps) ?? {}, { dataState: f, disabled: E, update: y } = ua(u), v = () => {
124
+ } = (e == null ? void 0 : e.componentProps) ?? {}, { dataState: b, disabled: E, update: y } = _a(u), v = () => {
17
125
  E || l && (l(), y());
18
126
  };
19
- return e ? /* @__PURE__ */ C(
20
- sa,
127
+ return e ? /* @__PURE__ */ k(
128
+ pa,
21
129
  {
22
130
  action: v,
23
- dataState: f,
131
+ dataState: b,
24
132
  disabled: E,
25
133
  icon: t,
26
134
  tooltip: n,
27
- tooltipOptions: s
135
+ tooltipOptions: i
28
136
  }
29
- ) : /* @__PURE__ */ C(ia, {});
137
+ ) : /* @__PURE__ */ k(ua, {});
30
138
  }
31
- var xe = {}, j = Symbol(), J = Symbol(), kt = (e) => typeof e == "string" ? _[e] : e, _ = {
32
- plain: xe,
33
- plaintext: xe,
34
- text: xe,
35
- txt: xe
36
- }, Se = (e, t) => (t[J] || ke)(e, t), ke = (e, t) => {
37
- for (var n = [e], s, l = [], u = 0; s = kt(t[j]); )
38
- delete t[j], Object.assign(t, s);
39
- for (xn(e, t, n, 0); l[u++] = n[0], n = n[1]; ) ;
139
+ var Ce = {}, Y = Symbol(), ee = Symbol(), Ct = (e) => typeof e == "string" ? _[e] : e, _ = {
140
+ plain: Ce,
141
+ plaintext: Ce,
142
+ text: Ce,
143
+ txt: Ce
144
+ }, Ne = (e, t) => (t[ee] || Oe)(e, t), Oe = (e, t) => {
145
+ for (var n = [e], i, l = [], u = 0; i = Ct(t[Y]); )
146
+ delete t[Y], Object.assign(t, i);
147
+ for (Pn(e, t, n, 0); l[u++] = n[0], n = n[1]; ) ;
40
148
  return l;
41
- }, zt = "</span>", Oe = "", ye = "", kn = (e) => {
42
- for (var t = "", n = e.length, s = 0; s < n; ) t += Tn(e[s++]);
149
+ }, Zt = "</span>", Me = "", Ae = "", Cn = (e) => {
150
+ for (var t = "", n = e.length, i = 0; i < n; ) t += Mn(e[i++]);
43
151
  return t;
44
- }, Tn = (e) => {
45
- if (e instanceof ue) {
46
- 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 : "")}">`;
47
- ye += zt, Oe += f;
48
- var E = Tn(s);
49
- return Oe = l, ye = u, f + E + zt;
152
+ }, Mn = (e) => {
153
+ if (e instanceof be) {
154
+ 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 : "")}">`;
155
+ Ae += Zt, Me += b;
156
+ var E = Mn(i);
157
+ return Me = l, Ae = u, b + E + Zt;
50
158
  }
51
- return typeof e != "string" ? kn(e) : (e = e.replace(/&/g, "&amp;").replace(/</g, "&lt;"), ye && e.includes(`
52
- `) ? e.replace(/\n/g, ye + `
53
- ` + Oe) : e);
54
- }, xn = (e, t, n, s, l) => {
159
+ return typeof e != "string" ? Cn(e) : (e = e.replace(/&/g, "&amp;").replace(/</g, "&lt;"), Ae && e.includes(`
160
+ `) ? e.replace(/\n/g, Ae + `
161
+ ` + Me) : e);
162
+ }, Pn = (e, t, n, i, l) => {
55
163
  for (var u in t)
56
- if (t[u]) for (var f = 0, E = t[u], y = Array.isArray(E) ? E : [E]; f < y.length; ++f) {
57
- if (l && l[0] == u && l[1] == f)
164
+ if (t[u]) for (var b = 0, E = t[u], y = Array.isArray(E) ? E : [E]; b < y.length; ++b) {
165
+ if (l && l[0] == u && l[1] == b)
58
166
  return;
59
- for (var v = y[f], m = v.pattern || v, p = kt(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]) {
60
- var d = a[0], o = 0, i, h;
61
- if (!(d instanceof ue)) {
62
- 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) {
63
- if (!i)
167
+ 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]) {
168
+ var d = a[0], o = 0, s, h;
169
+ if (!(d instanceof be)) {
170
+ 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) {
171
+ if (!s)
64
172
  break;
65
- if (i[0]) {
66
- for (var k = i.index, S = k + i[0].length, I; k >= r + (I = a[0].length); a = a[1], r += I) ;
67
- if (a[0] instanceof ue)
173
+ if (s[0]) {
174
+ for (var S = s.index, R = S + s[0].length, A; S >= r + (A = a[0].length); a = a[1], r += A) ;
175
+ if (a[0] instanceof be)
68
176
  continue;
69
- for (var w = a, E = r; (E += w[0].length) < S; w = w[1], o++) ;
70
- d = e.slice(r, E), i.index -= r;
177
+ for (var w = a, E = r; (E += w[0].length) < R; w = w[1], o++) ;
178
+ d = e.slice(r, E), s.index -= r;
71
179
  }
72
180
  }
73
- if (i && i[0]) {
74
- for (var k = i.index, x = i[0], T = d.slice(k + x.length), N = r + d.length, P = new ue(u, p ? Se(x, p) : x, x, g), M = a, V = 0, z; M = M[1], V++ < o; ) ;
75
- T && (!M || M[0] instanceof ue ? M = [T, M] : M[0] = T + M[0]), r += k, a[0] = k ? d.slice(0, k) : P, k ? 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);
181
+ if (s && s[0]) {
182
+ 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; ) ;
183
+ 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);
76
184
  }
77
185
  }
78
186
  }
79
187
  }
80
188
  };
81
- function ue(e, t, n, s) {
82
- this.type = e, this.content = t, this.alias = s, this.length = n.length;
189
+ function be(e, t, n, i) {
190
+ this.type = e, this.content = t, this.alias = i, this.length = n.length;
83
191
  }
84
- 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 = {
192
+ 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 = {
85
193
  pattern: /(^(["']?)\w+\2)[ ]+\S.*/,
86
194
  lookbehind: !0,
87
195
  alias: "punctuation"
88
196
  // this looks reasonably well in all themes
89
- }, On = {
197
+ }, $n = {
90
198
  variable: /^\$\(|^`|\)$|`$/
91
- }, Ne = {
92
- bash: pt,
199
+ }, Pe = {
200
+ bash: _t,
93
201
  environment: {
94
- pattern: RegExp("\\$" + Ge),
202
+ pattern: RegExp("\\$" + Ze),
95
203
  alias: "constant"
96
204
  },
97
205
  variable: [
@@ -119,7 +227,7 @@ var Ge = "\\b(?:BASH(?:OPTS|_ALIASES|_ARG[CV]|_CMDS|_COMPLETION_COMPAT_DIR|_LINE
119
227
  {
120
228
  pattern: /\$\((?:[^()]|\([^)]*\))*\)|`[^`]+`/g,
121
229
  greedy: !0,
122
- inside: On
230
+ inside: $n
123
231
  },
124
232
  // [2]: Brace expansion
125
233
  {
@@ -129,7 +237,7 @@ var Ge = "\\b(?:BASH(?:OPTS|_ALIASES|_ARG[CV]|_CMDS|_COMPLETION_COMPAT_DIR|_LINE
129
237
  operator: /:[?=+-]?|[!/]|##?|%%?|\^\^?|,,?/,
130
238
  punctuation: /[[\]]/,
131
239
  environment: {
132
- pattern: RegExp("(\\{)" + Ge),
240
+ pattern: RegExp("(\\{)" + Ze),
133
241
  lookbehind: !0,
134
242
  alias: "constant"
135
243
  }
@@ -139,7 +247,7 @@ var Ge = "\\b(?:BASH(?:OPTS|_ALIASES|_ARG[CV]|_CMDS|_COMPLETION_COMPAT_DIR|_LINE
139
247
  ],
140
248
  // Escape sequences from echo and printf's manuals, and escaped quotes.
141
249
  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})/
142
- }, pa = pt.inside = _.sh = _.shell = _.bash = {
250
+ }, wa = _t.inside = _.sh = _.shell = _.bash = {
143
251
  shebang: {
144
252
  pattern: /^#!\s*\/.*/,
145
253
  alias: "important"
@@ -179,7 +287,7 @@ var Ge = "\\b(?:BASH(?:OPTS|_ALIASES|_ARG[CV]|_CMDS|_COMPLETION_COMPAT_DIR|_LINE
179
287
  alias: "variable",
180
288
  inside: {
181
289
  environment: {
182
- pattern: RegExp("(^|[\\s;|&]|[<>]\\()" + Ge),
290
+ pattern: RegExp("(^|[\\s;|&]|[<>]\\()" + Ze),
183
291
  lookbehind: !0,
184
292
  alias: "constant"
185
293
  }
@@ -197,7 +305,7 @@ var Ge = "\\b(?:BASH(?:OPTS|_ALIASES|_ARG[CV]|_CMDS|_COMPLETION_COMPAT_DIR|_LINE
197
305
  pattern: /((?:^|[^<])<<-?\s*)(\w+)\s[^]*?\n\2/g,
198
306
  lookbehind: !0,
199
307
  greedy: !0,
200
- inside: Ne
308
+ inside: Pe
201
309
  },
202
310
  // Here-document with quotes around the tag
203
311
  // → No expansion (so no “inside”).
@@ -206,7 +314,7 @@ var Ge = "\\b(?:BASH(?:OPTS|_ALIASES|_ARG[CV]|_CMDS|_COMPLETION_COMPAT_DIR|_LINE
206
314
  lookbehind: !0,
207
315
  greedy: !0,
208
316
  inside: {
209
- bash: pt
317
+ bash: _t
210
318
  }
211
319
  },
212
320
  // “Normal” string
@@ -215,7 +323,7 @@ var Ge = "\\b(?:BASH(?:OPTS|_ALIASES|_ARG[CV]|_CMDS|_COMPLETION_COMPAT_DIR|_LINE
215
323
  pattern: /(^|[^\\](?:\\\\)*)"(?:\\[^]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^\\"`$])*"/g,
216
324
  lookbehind: !0,
217
325
  greedy: !0,
218
- inside: Ne
326
+ inside: Pe
219
327
  },
220
328
  {
221
329
  // https://www.gnu.org/software/bash/manual/html_node/Single-Quotes.html
@@ -228,15 +336,15 @@ var Ge = "\\b(?:BASH(?:OPTS|_ALIASES|_ARG[CV]|_CMDS|_COMPLETION_COMPAT_DIR|_LINE
228
336
  pattern: /\$'(?:\\[^]|[^\\'])*'/g,
229
337
  greedy: !0,
230
338
  inside: {
231
- entity: Ne.entity
339
+ entity: Pe.entity
232
340
  }
233
341
  }
234
342
  ],
235
343
  environment: {
236
- pattern: RegExp("\\$?" + Ge),
344
+ pattern: RegExp("\\$?" + Ze),
237
345
  alias: "constant"
238
346
  },
239
- variable: Ne.variable,
347
+ variable: Pe.variable,
240
348
  function: {
241
349
  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;|&])/,
242
350
  lookbehind: !0
@@ -292,8 +400,8 @@ var Ge = "\\b(?:BASH(?:OPTS|_ALIASES|_ARG[CV]|_CMDS|_COMPLETION_COMPAT_DIR|_LINE
292
400
  "operator",
293
401
  "punctuation",
294
402
  "number"
295
- ].forEach((e) => On[e] = pa[e]);
296
- var Nn = /(?:"(?:\\[^]|[^\\\n"])*"|'(?:\\[^]|[^\\\n'])*')/g, Le = Nn.source, Ht = {
403
+ ].forEach((e) => $n[e] = wa[e]);
404
+ var Dn = /(?:"(?:\\[^]|[^\\\n"])*"|'(?:\\[^]|[^\\\n'])*')/g, $e = Dn.source, qt = {
297
405
  rule: /^@[\w-]+/,
298
406
  "selector-function-argument": {
299
407
  pattern: /(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^)]*\))*\))+(?=\s*\))/,
@@ -306,32 +414,32 @@ var Nn = /(?:"(?:\\[^]|[^\\\n"])*"|'(?:\\[^]|[^\\\n'])*')/g, Le = Nn.source, Ht
306
414
  }
307
415
  // See rest below
308
416
  };
309
- Ht[j] = _.css = {
417
+ qt[Y] = _.css = {
310
418
  comment: /\/\*[^]*?\*\//,
311
419
  atrule: {
312
- pattern: RegExp(`@[\\w-](?:[^;{\\s"']|\\s+(?!\\s)|${Le})*?(?:;|(?=\\s*\\{))`),
313
- inside: Ht
420
+ pattern: RegExp(`@[\\w-](?:[^;{\\s"']|\\s+(?!\\s)|${$e})*?(?:;|(?=\\s*\\{))`),
421
+ inside: qt
314
422
  },
315
423
  url: {
316
424
  // https://drafts.csswg.org/css-values-3/#urls
317
- pattern: RegExp(`\\burl\\((?:${Le}|(?:[^\\\\
425
+ pattern: RegExp(`\\burl\\((?:${$e}|(?:[^\\\\
318
426
  "')=]|\\\\[^])*)\\)`, "gi"),
319
427
  greedy: !0,
320
428
  inside: {
321
429
  function: /^url/i,
322
430
  punctuation: /^\(|\)$/,
323
431
  string: {
324
- pattern: RegExp("^" + Le + "$"),
432
+ pattern: RegExp("^" + $e + "$"),
325
433
  alias: "url"
326
434
  }
327
435
  }
328
436
  },
329
437
  selector: {
330
- pattern: RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|${Le})*(?=\\s*\\{)`),
438
+ pattern: RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|${$e})*(?=\\s*\\{)`),
331
439
  lookbehind: !0
332
440
  },
333
441
  string: {
334
- pattern: Nn,
442
+ pattern: Dn,
335
443
  greedy: !0
336
444
  },
337
445
  property: {
@@ -345,34 +453,34 @@ Ht[j] = _.css = {
345
453
  },
346
454
  punctuation: /[(){},:;]/
347
455
  };
348
- var $e = (e, t) => {
456
+ var Be = (e, t) => {
349
457
  if (t.has(e)) return t.get(e);
350
- var n = e, s = ba.call(e).slice(8, -1);
351
- if (s == "Object") {
458
+ var n = e, i = xa.call(e).slice(8, -1);
459
+ if (i == "Object") {
352
460
  t.set(e, n = {});
353
461
  for (var l in e)
354
- n[l] = $e(e[l], t);
355
- e[j] && (n[j] = $e(e[j], t)), e[J] && (n[J] = e[J]);
356
- } else if (s == "Array") {
462
+ n[l] = Be(e[l], t);
463
+ e[Y] && (n[Y] = Be(e[Y], t)), e[ee] && (n[ee] = e[ee]);
464
+ } else if (i == "Array") {
357
465
  t.set(e, n = []);
358
- for (var u = 0, f = e.length; u < f; u++)
359
- n[u] = $e(e[u], t);
466
+ for (var u = 0, b = e.length; u < b; u++)
467
+ n[u] = Be(e[u], t);
360
468
  }
361
469
  return n;
362
- }, Ye = (e) => $e(e, /* @__PURE__ */ new Map()), ae = (e, t) => Object.assign(Ye(_[e]), t), $ = (e, t, n) => {
363
- var s = {};
470
+ }, et = (e) => Be(e, /* @__PURE__ */ new Map()), ie = (e, t) => Object.assign(et(_[e]), t), $ = (e, t, n) => {
471
+ var i = {};
364
472
  for (var l in e)
365
- s[l] = e[l], delete e[l];
366
- for (var l in s)
367
- l == t && Object.assign(e, n), n.hasOwnProperty(l) || (e[l] = s[l]);
368
- }, ba = {}.toString, ze = _.css, Vt = {
473
+ i[l] = e[l], delete e[l];
474
+ for (var l in i)
475
+ l == t && Object.assign(e, n), n.hasOwnProperty(l) || (e[l] = i[l]);
476
+ }, xa = {}.toString, qe = _.css, Kt = {
369
477
  pattern: /(\b\d+)(?:%|[a-z]+(?![\w-]))/,
370
478
  lookbehind: !0
371
- }, Zt = {
479
+ }, Wt = {
372
480
  pattern: /(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,
373
481
  lookbehind: !0
374
482
  };
375
- ze.selector.inside = ze.atrule.inside["selector-function-argument"].inside = {
483
+ qe.selector.inside = qe.atrule.inside["selector-function-argument"].inside = {
376
484
  "pseudo-element": /:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,
377
485
  "pseudo-class": /:[-\w]+/,
378
486
  class: /\.[-\w]+/,
@@ -425,13 +533,13 @@ ze.selector.inside = ze.atrule.inside["selector-function-argument"].inside = {
425
533
  // if you want to add it, please read https://github.com/PrismJS/prism/pull/2373 first.
426
534
  punctuation: /[(),]/
427
535
  };
428
- $(ze, "property", {
536
+ $(qe, "property", {
429
537
  variable: {
430
538
  pattern: /(^|[^-\w\xa0-\uffff])--(?!\d)(?:(?!\s)[-\w\xa0-\uffff])*/i,
431
539
  lookbehind: !0
432
540
  }
433
541
  });
434
- $(ze, "function", {
542
+ $(qe, "function", {
435
543
  operator: {
436
544
  pattern: /(\s)[/*+-](?!\S)/,
437
545
  lookbehind: !0
@@ -451,16 +559,16 @@ $(ze, "function", {
451
559
  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,
452
560
  inside: {
453
561
  function: /^[^(]+/,
454
- unit: Vt,
455
- number: Zt,
562
+ unit: Kt,
563
+ number: Wt,
456
564
  punctuation: /[(),]/
457
565
  }
458
566
  }
459
567
  ],
460
568
  // it's important that there is no boundary assertion after the hex digits
461
569
  entity: /\\[a-f\d]{1,8}/i,
462
- unit: Vt,
463
- number: Zt
570
+ unit: Kt,
571
+ number: Wt
464
572
  });
465
573
  _.ini = {
466
574
  /**
@@ -502,13 +610,13 @@ _.ini = {
502
610
  },
503
611
  punctuation: /=/
504
612
  };
505
- var re = () => ({
613
+ var se = () => ({
506
614
  pattern: /\/\/.*|\/\*[^]*?(?:\*\/|$)/g,
507
615
  greedy: !0
508
- }), Tt = () => ({
616
+ }), Mt = () => ({
509
617
  pattern: /(["'])(?:\\[^]|(?!\1)[^\\\n])*\1/g,
510
618
  greedy: !0
511
- }), Ln = /\b0x[a-f\d]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i, te = /[()[\]{}.,:;]/, q = /\b(?:false|true)\b/, at = {
619
+ }), Fn = /\b0x[a-f\d]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i, ae = /[()[\]{}.,:;]/, K = /\b(?:false|true)\b/, st = {
512
620
  "interpolation-punctuation": {
513
621
  pattern: /^\$\{?|\}$/,
514
622
  alias: "punctuation"
@@ -517,7 +625,7 @@ var re = () => ({
517
625
  pattern: /[^]+/
518
626
  }
519
627
  };
520
- at.expression.inside = _.kts = _.kt = _.kotlin = {
628
+ st.expression.inside = _.kts = _.kt = _.kotlin = {
521
629
  // https://kotlinlang.org/spec/expressions.html#string-interpolation-expressions
522
630
  "string-literal": [
523
631
  {
@@ -526,7 +634,7 @@ at.expression.inside = _.kts = _.kt = _.kotlin = {
526
634
  inside: {
527
635
  interpolation: {
528
636
  pattern: /\$(?:[a-z_]\w*|\{[^{}]*\})/i,
529
- inside: at
637
+ inside: st
530
638
  },
531
639
  string: /[^]+/
532
640
  }
@@ -538,7 +646,7 @@ at.expression.inside = _.kts = _.kt = _.kotlin = {
538
646
  interpolation: {
539
647
  pattern: /((?:^|[^\\])(?:\\\\)*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,
540
648
  lookbehind: !0,
541
- inside: at
649
+ inside: st
542
650
  },
543
651
  string: /[^]+/
544
652
  }
@@ -549,7 +657,7 @@ at.expression.inside = _.kts = _.kt = _.kotlin = {
549
657
  pattern: /'(?:[^\\\n']|\\(?:.|u[a-fA-F\d]{0,4}))'/g,
550
658
  greedy: !0
551
659
  },
552
- comment: re(),
660
+ comment: se(),
553
661
  annotation: {
554
662
  pattern: /\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,
555
663
  alias: "builtin"
@@ -559,7 +667,7 @@ at.expression.inside = _.kts = _.kt = _.kotlin = {
559
667
  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/,
560
668
  lookbehind: !0
561
669
  },
562
- boolean: q,
670
+ boolean: K,
563
671
  label: {
564
672
  pattern: /\b\w+@|@\w+/,
565
673
  alias: "symbol"
@@ -571,15 +679,15 @@ at.expression.inside = _.kts = _.kt = _.kotlin = {
571
679
  },
572
680
  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/,
573
681
  operator: /--|\+\+|&&|\|\||->|[!=]==|!!|[%!=<>/*+-]=?|[?:]:?|\.\.|\b(?:and|inv|shl|u?shr|x?or)\b/,
574
- punctuation: te
682
+ punctuation: ae
575
683
  };
576
- var Cn = [
684
+ var Un = [
577
685
  {
578
686
  pattern: /&[a-z\d]{1,8};/i,
579
687
  alias: "named-entity"
580
688
  },
581
689
  /&#x?[a-f\d]{1,8};/i
582
- ], fa = {
690
+ ], Aa = {
583
691
  pattern: /<\/?(?!\d)[^\s/=>$<%]+(?:\s(?:\s*[^\s/=>]+(?:\s*=\s*(?!\s)(?:"[^"]*"|'[^']*'|[^\s"'=>]+(?=[\s>]))?|(?=[\s/>])))+)?\s*\/?>/g,
584
692
  greedy: !0,
585
693
  inside: {
@@ -596,7 +704,7 @@ var Cn = [
596
704
  greedy: !0,
597
705
  inside: {
598
706
  punctuation: /^["']|["']$/,
599
- entity: Cn
707
+ entity: Un
600
708
  }
601
709
  }],
602
710
  "attr-equals": /=/,
@@ -637,43 +745,43 @@ _.rss = _.atom = _.ssml = _.xml = {
637
745
  pattern: /<!\[CDATA\[[^]*?\]\]>/gi,
638
746
  greedy: !0
639
747
  },
640
- tag: fa,
641
- entity: Cn,
748
+ tag: Aa,
749
+ entity: Un,
642
750
  "markup-bracket": {
643
751
  pattern: /[()[\]{}]/,
644
752
  alias: "punctuation"
645
753
  }
646
754
  };
647
- var bt = (e, t) => (e["language-" + t] = {
755
+ var Et = (e, t) => (e["language-" + t] = {
648
756
  pattern: /[^]+/,
649
757
  inside: t
650
- }, e), qt = (e, t) => ({
758
+ }, e), jt = (e, t) => ({
651
759
  pattern: RegExp(`(<${e}[^>]*>)(?!</${e}>)(?:<!\\[CDATA\\[(?:[^\\]]|\\](?!\\]>))*\\]\\]>|(?!<!\\[CDATA\\[)[^])+?(?=</${e}>)`, "gi"),
652
760
  lookbehind: !0,
653
761
  greedy: !0,
654
- inside: bt({
762
+ inside: Et({
655
763
  "included-cdata": {
656
764
  pattern: /<!\[CDATA\[[^]*?\]\]>/i,
657
- inside: bt({
765
+ inside: Et({
658
766
  cdata: /^<!\[CDATA\[|\]\]>$/i
659
767
  }, t)
660
768
  }
661
769
  }, t)
662
- }), Kt = (e, t) => ({
770
+ }), Yt = (e, t) => ({
663
771
  pattern: RegExp(`((?:^|["'\\s])(?:${e})\\s*=\\s*)(?:"[^"]*"|'[^']*'|[^\\s"'=>]+)`, "gi"),
664
772
  lookbehind: !0,
665
773
  greedy: !0,
666
- inside: bt({
774
+ inside: Et({
667
775
  punctuation: /^["']|["']$/
668
776
  }, t)
669
- }), Mn = _.svg = _.mathml = _.html = _.markup = Ye(_.xml);
670
- Mn.tag.inside["attr-value"].unshift(
671
- Kt("style", "css"),
672
- Kt("on[a-z]+", "javascript")
777
+ }), Bn = _.svg = _.mathml = _.html = _.markup = et(_.xml);
778
+ Bn.tag.inside["attr-value"].unshift(
779
+ Yt("style", "css"),
780
+ Yt("on[a-z]+", "javascript")
673
781
  );
674
- $(Mn, "cdata", {
675
- style: qt("style", "css"),
676
- script: qt("script", "javascript")
782
+ $(Bn, "cdata", {
783
+ style: jt("style", "css"),
784
+ script: jt("script", "javascript")
677
785
  });
678
786
  _.r = {
679
787
  comment: /#.*/,
@@ -714,7 +822,7 @@ _.basic = {
714
822
  operator: /<=|<>|>=|[&^=<>/*+-]|\b(?:and|eqv|imp|not|x?or)\b/i,
715
823
  punctuation: /[(),:;]/
716
824
  };
717
- _.vbnet = ae("basic", {
825
+ _.vbnet = ie("basic", {
718
826
  comment: {
719
827
  pattern: /(?:!|'|rem\b).*/i,
720
828
  inside: {
@@ -729,23 +837,23 @@ _.vbnet = ae("basic", {
729
837
  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,
730
838
  punctuation: /[(){},:;]/
731
839
  });
732
- var Wt = {
840
+ var Xt = {
733
841
  // https://en.cppreference.com/w/c/language/character_constant
734
842
  pattern: /'(?:\\[^]|[^\\\n']){0,32}'/g,
735
843
  greedy: !0
736
- }, jt = {
844
+ }, Qt = {
737
845
  pattern: /\/\/(?:[^\\\n]|\\\n?)*|\/\*[^]*?(?:\*\/|$)/g,
738
846
  greedy: !0
739
- }, Yt = {
847
+ }, Jt = {
740
848
  // https://en.cppreference.com/w/c/language/string_literal
741
849
  pattern: /"(?:\\[^]|[^\\\n"])*"/g,
742
850
  greedy: !0
743
- }, Xt = {
851
+ }, en = {
744
852
  pattern: /\S[^]*/
745
853
  };
746
- Xt.inside = _.c = {
747
- comment: jt,
748
- char: Wt,
854
+ en.inside = _.c = {
855
+ comment: Qt,
856
+ char: Xt,
749
857
  macro: {
750
858
  // allow for multiline macro definitions
751
859
  // spaces after the # character compile fine with gcc
@@ -760,10 +868,10 @@ Xt.inside = _.c = {
760
868
  pattern: /^(#\s*include\s*)<[^>]+>/,
761
869
  lookbehind: !0
762
870
  },
763
- Yt
871
+ Jt
764
872
  ],
765
- char: Wt,
766
- comment: jt,
873
+ char: Xt,
874
+ comment: Qt,
767
875
  "macro-name": [
768
876
  {
769
877
  pattern: /(^#\s*define\s+)\w+\b(?!\()/i,
@@ -783,10 +891,10 @@ Xt.inside = _.c = {
783
891
  },
784
892
  "directive-hash": /^#/,
785
893
  punctuation: /##|\\(?=\n)/,
786
- expression: Xt
894
+ expression: en
787
895
  }
788
896
  },
789
- string: Yt,
897
+ string: Jt,
790
898
  "class-name": {
791
899
  pattern: /(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([^]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,
792
900
  lookbehind: !0
@@ -797,17 +905,17 @@ Xt.inside = _.c = {
797
905
  function: /\b[a-z_]\w*(?=\s*\()/i,
798
906
  number: /(?:\b0x(?:[a-f\d]+(?:\.[a-f\d]*)?|\.[a-f\d]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,
799
907
  operator: /->|([&|:+-])\1|[?:~]|>>=?|<<=?|[%&|^!=<>/*+-]=?/,
800
- punctuation: te
908
+ punctuation: ae
801
909
  };
802
910
  $(
803
- _.opencl = ae("c", {
911
+ _.opencl = ie("c", {
804
912
  // 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)
805
913
  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/,
806
914
  // Extracted from http://streamcomputing.eu/downloads/?opencl.lang (opencl-const)
807
915
  // Math Constants: https://www.khronos.org/registry/OpenCL/sdk/2.1/docs/man/xhtml/mathConstants.html
808
916
  // Macros and Limits: https://www.khronos.org/registry/OpenCL/sdk/2.1/docs/man/xhtml/macroLimits.html
809
917
  number: /(?:\b0x(?:[a-f\d]+(?:\.[a-f\d]*)?|\.[a-f\d]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[fuhl]{0,4}/i,
810
- boolean: q,
918
+ boolean: K,
811
919
  "constant-opencl-kernel": {
812
920
  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/,
813
921
  alias: "constant"
@@ -823,7 +931,7 @@ $(
823
931
  }
824
932
  }
825
933
  );
826
- var ft = {
934
+ var yt = {
827
935
  // Extracted from http://streamcomputing.eu/downloads/?opencl_host.lang (opencl-types and opencl-host)
828
936
  "type-opencl-host": {
829
937
  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/,
@@ -844,18 +952,18 @@ var ft = {
844
952
  alias: "function"
845
953
  }
846
954
  };
847
- $(_.c, "keyword", ft);
848
- _.cpp && (ft["type-opencl-host-cpp"] = {
955
+ $(_.c, "keyword", yt);
956
+ _.cpp && (yt["type-opencl-host-cpp"] = {
849
957
  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/,
850
958
  alias: "keyword"
851
- }, $(_.cpp, "keyword", ft));
852
- var ga = _.diff = {
959
+ }, $(_.cpp, "keyword", yt));
960
+ var Ia = _.diff = {
853
961
  // Match all kinds of coord lines (prefixed by "+++", "---" or "***").
854
962
  // Match "@@ ... @@" coord lines in unified diff.
855
963
  // Match coord lines in normal diff (starts with a number).
856
964
  coord: /^(?:\*{3}|-{3}|\+{3}|\d).*$|^@@.*@@$/m
857
965
  // deleted, inserted, unchanged, diff
858
- }, rt = {
966
+ }, ot = {
859
967
  "deleted-sign": "-",
860
968
  "deleted-arrow": "<",
861
969
  "inserted-sign": "+",
@@ -863,33 +971,33 @@ var ga = _.diff = {
863
971
  unchanged: " ",
864
972
  diff: "!"
865
973
  };
866
- for (var ce in rt) {
867
- var it = ce.split("-")[0];
868
- ga[ce] = {
869
- pattern: RegExp("^(?:[" + rt[ce] + `].*$
974
+ for (var pe in ot) {
975
+ var lt = pe.split("-")[0];
976
+ Ia[pe] = {
977
+ pattern: RegExp("^(?:[" + ot[pe] + `].*$
870
978
  ?)+`, "m"),
871
- alias: it != ce ? it : ce == "diff" ? "bold" : void 0,
979
+ alias: lt != pe ? lt : pe == "diff" ? "bold" : void 0,
872
980
  inside: {
873
981
  prefix: {
874
- pattern: RegExp("^[" + rt[ce] + "]", "mg"),
982
+ pattern: RegExp("^[" + ot[pe] + "]", "mg"),
875
983
  greedy: !0,
876
- alias: it
984
+ alias: lt
877
985
  }
878
986
  }
879
987
  };
880
988
  }
881
- 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 = {
989
+ 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 = {
882
990
  pattern: /^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,
883
991
  inside: {
884
992
  punctuation: /\./
885
993
  }
886
- }, mt = {
887
- namespace: gt,
994
+ }, wt = {
995
+ namespace: vt,
888
996
  punctuation: /\./
889
- }, Qt = {
890
- pattern: RegExp(`(^|[^\\w.])${Ae}[A-Z](?:[\\d_A-Z]*[a-z]\\w*)?\\b`),
997
+ }, tn = {
998
+ pattern: RegExp(`(^|[^\\w.])${Se}[A-Z](?:[\\d_A-Z]*[a-z]\\w*)?\\b`),
891
999
  lookbehind: !0,
892
- inside: mt
1000
+ inside: wt
893
1001
  };
894
1002
  _.java = {
895
1003
  "doc-comment": {
@@ -898,7 +1006,7 @@ _.java = {
898
1006
  alias: "comment",
899
1007
  inside: "javadoc"
900
1008
  },
901
- comment: re(),
1009
+ comment: se(),
902
1010
  "triple-quoted-string": {
903
1011
  // http://openjdk.java.net/jeps/355#Description
904
1012
  pattern: /"""[ ]*\n(?:\\.|[^\\])*?"""/g,
@@ -922,29 +1030,29 @@ _.java = {
922
1030
  generics: {
923
1031
  pattern: /<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,
924
1032
  inside: {
925
- "class-name": Qt,
926
- keyword: st,
1033
+ "class-name": tn,
1034
+ keyword: ct,
927
1035
  punctuation: /[().,:<>]/,
928
1036
  operator: /[?&|]/
929
1037
  }
930
1038
  },
931
1039
  import: [
932
1040
  {
933
- pattern: RegExp(`(\\bimport\\s+)${Ae}(?:[A-Z]\\w*|\\*)(?=\\s*;)`),
1041
+ pattern: RegExp(`(\\bimport\\s+)${Se}(?:[A-Z]\\w*|\\*)(?=\\s*;)`),
934
1042
  lookbehind: !0,
935
1043
  inside: {
936
- namespace: gt,
1044
+ namespace: vt,
937
1045
  punctuation: /\./,
938
1046
  operator: /\*/,
939
1047
  "class-name": /\w+/
940
1048
  }
941
1049
  },
942
1050
  {
943
- pattern: RegExp(`(\\bimport\\s+static\\s+)${Ae}(?:\\w+|\\*)(?=\\s*;)`),
1051
+ pattern: RegExp(`(\\bimport\\s+static\\s+)${Se}(?:\\w+|\\*)(?=\\s*;)`),
944
1052
  lookbehind: !0,
945
1053
  alias: "static",
946
1054
  inside: {
947
- namespace: gt,
1055
+ namespace: vt,
948
1056
  static: /\b\w+$/,
949
1057
  punctuation: /\./,
950
1058
  operator: /\*/,
@@ -954,7 +1062,7 @@ _.java = {
954
1062
  ],
955
1063
  namespace: {
956
1064
  pattern: RegExp(
957
- `(\\b(?:exports|import(?:\\s+static)?|module|opens?|package|provides|requires|to|transitive|uses|with)\\s+)(?!${st.source})[a-z]\\w*(?:\\.[a-z]\\w*)*\\.?`
1065
+ `(\\b(?:exports|import(?:\\s+static)?|module|opens?|package|provides|requires|to|transitive|uses|with)\\s+)(?!${ct.source})[a-z]\\w*(?:\\.[a-z]\\w*)*\\.?`
958
1066
  ),
959
1067
  lookbehind: !0,
960
1068
  inside: {
@@ -962,24 +1070,24 @@ _.java = {
962
1070
  }
963
1071
  },
964
1072
  "class-name": [
965
- Qt,
1073
+ tn,
966
1074
  {
967
1075
  // variables, parameters, and constructor references
968
1076
  // this to support class names (or generic parameters) which do not contain a lower case letter (also works for methods)
969
- pattern: RegExp(`(^|[^\\w.])${Ae}[A-Z]\\w*(?=\\s+\\w+\\s*[;,=()]|\\s*(?:\\[[\\s,]*\\]\\s*)?::\\s*new\\b)`),
1077
+ pattern: RegExp(`(^|[^\\w.])${Se}[A-Z]\\w*(?=\\s+\\w+\\s*[;,=()]|\\s*(?:\\[[\\s,]*\\]\\s*)?::\\s*new\\b)`),
970
1078
  lookbehind: !0,
971
- inside: mt
1079
+ inside: wt
972
1080
  },
973
1081
  {
974
1082
  // class names based on keyword
975
1083
  // this to support class names (or generic parameters) which do not contain a lower case letter (also works for methods)
976
- pattern: RegExp(`(\\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\\s+)${Ae}[A-Z]\\w*\\b`),
1084
+ pattern: RegExp(`(\\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\\s+)${Se}[A-Z]\\w*\\b`),
977
1085
  lookbehind: !0,
978
- inside: mt
1086
+ inside: wt
979
1087
  }
980
1088
  ],
981
- keyword: st,
982
- boolean: q,
1089
+ keyword: ct,
1090
+ boolean: K,
983
1091
  function: {
984
1092
  pattern: /\b\w+(?=\()|(::\s*)[a-z_]\w*/,
985
1093
  lookbehind: !0
@@ -990,11 +1098,11 @@ _.java = {
990
1098
  pattern: /(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[%&|^!=<>/*+-]=?)/m,
991
1099
  lookbehind: !0
992
1100
  },
993
- punctuation: te
1101
+ punctuation: ae
994
1102
  };
995
1103
  $(
996
- _.less = ae("css", {
997
- comment: re(),
1104
+ _.less = ie("css", {
1105
+ comment: se(),
998
1106
  atrule: {
999
1107
  pattern: /@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,
1000
1108
  inside: {
@@ -1032,7 +1140,7 @@ $(
1032
1140
  }
1033
1141
  }
1034
1142
  );
1035
- _.objc = _.objectivec = ae("c", {
1143
+ _.objc = _.objectivec = ie("c", {
1036
1144
  string: {
1037
1145
  pattern: /@?"(?:\\[^]|[^\\\n"])*"/g,
1038
1146
  greedy: !0
@@ -1041,32 +1149,32 @@ _.objc = _.objectivec = ae("c", {
1041
1149
  operator: /-[->]?|\+\+?|!=?|==?|>>?=?|<<?=?|&&?|\|\|?|[~^@%?/*]/
1042
1150
  });
1043
1151
  delete _.objc["class-name"];
1044
- var Pn = {
1152
+ var Gn = {
1045
1153
  pattern: /^(..)[^]+(?=.)/,
1046
1154
  lookbehind: !0
1047
- }, 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 = `(?:"(?:\\\\.|[^\\\\
1048
- "])*"|(?:\\b(?!\\d)\\w+|[^\\s\0-\\x7f]+)[?!]?|\\$.)`, ie = {
1155
+ }, 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 = `(?:"(?:\\\\.|[^\\\\
1156
+ "])*"|(?:\\b(?!\\d)\\w+|[^\\s\0-\\x7f]+)[?!]?|\\$.)`, oe = {
1049
1157
  pattern: /((?:^|[^\\])(?:\\\\)*)#\{(?:[^{}]|\{[^}]*\})*\}/,
1050
1158
  lookbehind: !0,
1051
1159
  inside: {
1052
- content: Pn,
1160
+ content: Gn,
1053
1161
  delimiter: {
1054
1162
  pattern: /.+/,
1055
1163
  alias: "punctuation"
1056
1164
  }
1057
1165
  }
1058
1166
  };
1059
- Pn.inside = _.rb = _.ruby = {
1167
+ Gn.inside = _.rb = _.ruby = {
1060
1168
  comment: {
1061
1169
  pattern: /#.*|^=begin\s[^]*?^=end/mg,
1062
1170
  greedy: !0
1063
1171
  },
1064
1172
  "string-literal": [
1065
1173
  {
1066
- pattern: RegExp("%[qQiIwWs]?" + ot, "g"),
1174
+ pattern: RegExp("%[qQiIwWs]?" + dt, "g"),
1067
1175
  greedy: !0,
1068
1176
  inside: {
1069
- interpolation: ie,
1177
+ interpolation: oe,
1070
1178
  string: /[^]+/
1071
1179
  }
1072
1180
  },
@@ -1074,7 +1182,7 @@ Pn.inside = _.rb = _.ruby = {
1074
1182
  pattern: /(["'])(?:#\{[^}]+\}|#(?!\{)|\\[^]|(?!\1)[^\\#\n])*\1/g,
1075
1183
  greedy: !0,
1076
1184
  inside: {
1077
- interpolation: ie,
1185
+ interpolation: oe,
1078
1186
  string: /[^]+/
1079
1187
  }
1080
1188
  },
@@ -1090,7 +1198,7 @@ Pn.inside = _.rb = _.ruby = {
1090
1198
  punctuation: /^<<[-~]?/
1091
1199
  }
1092
1200
  },
1093
- interpolation: ie,
1201
+ interpolation: oe,
1094
1202
  string: /[^]+/
1095
1203
  }
1096
1204
  },
@@ -1112,10 +1220,10 @@ Pn.inside = _.rb = _.ruby = {
1112
1220
  ],
1113
1221
  "command-literal": [
1114
1222
  {
1115
- pattern: RegExp("%x" + ot, "g"),
1223
+ pattern: RegExp("%x" + dt, "g"),
1116
1224
  greedy: !0,
1117
1225
  inside: {
1118
- interpolation: ie,
1226
+ interpolation: oe,
1119
1227
  command: {
1120
1228
  pattern: /[^]+/,
1121
1229
  alias: "string"
@@ -1126,7 +1234,7 @@ Pn.inside = _.rb = _.ruby = {
1126
1234
  pattern: /`(?:#\{[^}]+\}|#(?!\{)|\\[^]|[^\\`#\n])*`/g,
1127
1235
  greedy: !0,
1128
1236
  inside: {
1129
- interpolation: ie,
1237
+ interpolation: oe,
1130
1238
  command: {
1131
1239
  pattern: /[^]+/,
1132
1240
  alias: "string"
@@ -1143,10 +1251,10 @@ Pn.inside = _.rb = _.ruby = {
1143
1251
  },
1144
1252
  "regex-literal": [
1145
1253
  {
1146
- pattern: RegExp(`%r${ot}[egimnosux]{0,6}`, "g"),
1254
+ pattern: RegExp(`%r${dt}[egimnosux]{0,6}`, "g"),
1147
1255
  greedy: !0,
1148
1256
  inside: {
1149
- interpolation: ie,
1257
+ interpolation: oe,
1150
1258
  regex: /[^]+/
1151
1259
  }
1152
1260
  },
@@ -1155,7 +1263,7 @@ Pn.inside = _.rb = _.ruby = {
1155
1263
  lookbehind: !0,
1156
1264
  greedy: !0,
1157
1265
  inside: {
1158
- interpolation: ie,
1266
+ interpolation: oe,
1159
1267
  regex: /[^]+/
1160
1268
  }
1161
1269
  }
@@ -1163,13 +1271,13 @@ Pn.inside = _.rb = _.ruby = {
1163
1271
  variable: /[@$]+(?!\d)\w+(?:[?!]|\b)/,
1164
1272
  symbol: [
1165
1273
  {
1166
- pattern: RegExp("(^|[^:]):" + Jt, "g"),
1274
+ pattern: RegExp("(^|[^:]):" + nn, "g"),
1167
1275
  lookbehind: !0,
1168
1276
  greedy: !0
1169
1277
  },
1170
1278
  {
1171
1279
  pattern: RegExp(`([
1172
- {(,][ ]*)` + Jt + "(?=:(?!:))", "g"),
1280
+ {(,][ ]*)` + nn + "(?=:(?!:))", "g"),
1173
1281
  lookbehind: !0,
1174
1282
  greedy: !0
1175
1283
  }
@@ -1185,10 +1293,10 @@ Pn.inside = _.rb = _.ruby = {
1185
1293
  }
1186
1294
  },
1187
1295
  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/,
1188
- boolean: q,
1296
+ boolean: K,
1189
1297
  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/,
1190
1298
  constant: /\b[A-Z][A-Z\d_]*(?:[?!]|\b)/,
1191
- number: Ln,
1299
+ number: Fn,
1192
1300
  "double-colon": {
1193
1301
  pattern: /::/,
1194
1302
  alias: "punctuation"
@@ -1251,14 +1359,14 @@ _.wasm = {
1251
1359
  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/,
1252
1360
  punctuation: /[()]/
1253
1361
  };
1254
- var me = (e, t) => {
1362
+ var ye = (e, t) => {
1255
1363
  for (var n = 0; n < t; n++)
1256
1364
  e = e.replace(/<self>/g, `(?:${e})`);
1257
1365
  return e.replace(/<self>/g, "[]");
1258
- }, 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", {
1366
+ }, 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", {
1259
1367
  "class-name": [
1260
1368
  {
1261
- pattern: RegExp(`(\\b(?:class|concept|enum|struct|typename)\\s+)(?!${ht.source})\\w+`),
1369
+ pattern: RegExp(`(\\b(?:class|concept|enum|struct|typename)\\s+)(?!${xt.source})\\w+`),
1262
1370
  lookbehind: !0
1263
1371
  },
1264
1372
  // This is intended to capture the class name of method implementations like:
@@ -1273,22 +1381,22 @@ var me = (e, t) => {
1273
1381
  // parameters, so it can't be a namespace (until C++ adds generic namespaces).
1274
1382
  /\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/
1275
1383
  ],
1276
- keyword: ht,
1384
+ keyword: xt,
1277
1385
  number: {
1278
1386
  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,
1279
1387
  greedy: !0
1280
1388
  },
1281
1389
  operator: /->|--|\+\+|&&|\|\||[?:~]|<=>|>>=?|<<=?|[%&|^!=<>/*+-]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|x?or|x?or_eq)\b/,
1282
- boolean: q
1390
+ boolean: K
1283
1391
  });
1284
- $(ge, "string", {
1392
+ $(Ee, "string", {
1285
1393
  module: {
1286
1394
  // https://en.cppreference.com/w/cpp/language/modules
1287
1395
  pattern: O(
1288
1396
  `(\\b(?:import|module)\\s+)(?:"(?:\\\\[\\s\\S]|[^\\\\
1289
1397
  "])*"|<[^<>
1290
1398
  ]*>|<0>(?:\\s*:\\s*<0>)?|:\\s*<0>)`,
1291
- [`\\b(?!${ht.source})\\w+(?:\\s*\\.\\s*\\w+)*\\b`],
1399
+ [`\\b(?!${xt.source})\\w+(?:\\s*\\.\\s*\\w+)*\\b`],
1292
1400
  "g"
1293
1401
  ),
1294
1402
  lookbehind: !0,
@@ -1305,7 +1413,7 @@ $(ge, "string", {
1305
1413
  alias: "string"
1306
1414
  }
1307
1415
  });
1308
- $(ge, "keyword", {
1416
+ $(Ee, "keyword", {
1309
1417
  "generic-function": {
1310
1418
  pattern: /\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,
1311
1419
  inside: {
@@ -1313,34 +1421,34 @@ $(ge, "keyword", {
1313
1421
  generic: {
1314
1422
  pattern: /<[^]+/,
1315
1423
  alias: "class-name",
1316
- inside: ge
1424
+ inside: Ee
1317
1425
  }
1318
1426
  }
1319
1427
  }
1320
1428
  });
1321
- $(ge, "operator", {
1429
+ $(Ee, "operator", {
1322
1430
  "double-colon": {
1323
1431
  pattern: /::/,
1324
1432
  alias: "punctuation"
1325
1433
  }
1326
1434
  });
1327
- var $n = Object.assign({}, ge);
1328
- $(ge, "class-name", {
1435
+ var zn = Object.assign({}, Ee);
1436
+ $(Ee, "class-name", {
1329
1437
  // the base clause is an optional list of parent classes
1330
1438
  // https://en.cppreference.com/w/cpp/language/class
1331
1439
  "base-clause": {
1332
1440
  pattern: /(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/g,
1333
1441
  lookbehind: !0,
1334
1442
  greedy: !0,
1335
- inside: $n
1443
+ inside: zn
1336
1444
  }
1337
1445
  });
1338
- $($n, "double-colon", {
1446
+ $(zn, "double-colon", {
1339
1447
  // All untokenized words that are not namespaces should be class names
1340
1448
  "class-name": /\b[a-z_]\w*\b(?!\s*::)/i
1341
1449
  });
1342
1450
  _.go = {
1343
- comment: re(),
1451
+ comment: se(),
1344
1452
  char: {
1345
1453
  pattern: /'(?:\\.|[^\\\n']){0,10}'/g,
1346
1454
  greedy: !0
@@ -1362,18 +1470,18 @@ _.go = {
1362
1470
  /(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i
1363
1471
  ],
1364
1472
  operator: /--|\+\+|&&|\|\||&\^=?|<-|<<=?|>>=?|[%&|^!=<>/*+-]=?|:=|\.{3}/,
1365
- punctuation: te,
1473
+ punctuation: ae,
1366
1474
  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/
1367
1475
  };
1368
- var lt = {};
1369
- _.js = _.javascript = Object.assign(lt, {
1476
+ var ut = {};
1477
+ _.js = _.javascript = Object.assign(ut, {
1370
1478
  "doc-comment": {
1371
1479
  pattern: /\/\*\*(?!\/)[^]*?(?:\*\/|$)/g,
1372
1480
  greedy: !0,
1373
1481
  alias: "comment",
1374
1482
  inside: "jsdoc"
1375
1483
  },
1376
- comment: re(),
1484
+ comment: se(),
1377
1485
  hashbang: {
1378
1486
  pattern: /^#!.*/g,
1379
1487
  greedy: !0,
@@ -1395,7 +1503,7 @@ _.js = _.javascript = Object.assign(lt, {
1395
1503
  pattern: /^\$\{|\}$/,
1396
1504
  alias: "punctuation"
1397
1505
  },
1398
- [j]: lt
1506
+ [Y]: ut
1399
1507
  }
1400
1508
  },
1401
1509
  string: /[^]+/
@@ -1407,7 +1515,7 @@ _.js = _.javascript = Object.assign(lt, {
1407
1515
  greedy: !0,
1408
1516
  alias: "property"
1409
1517
  },
1410
- string: Tt(),
1518
+ string: Mt(),
1411
1519
  regex: {
1412
1520
  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,
1413
1521
  lookbehind: !0,
@@ -1451,7 +1559,7 @@ _.js = _.javascript = Object.assign(lt, {
1451
1559
  ].map((e) => ({
1452
1560
  pattern: e,
1453
1561
  lookbehind: !0,
1454
- inside: lt
1562
+ inside: ut
1455
1563
  })),
1456
1564
  constant: /\b[A-Z](?:[A-Z_]|\dx?)*\b/,
1457
1565
  keyword: [
@@ -1470,7 +1578,7 @@ _.js = _.javascript = Object.assign(lt, {
1470
1578
  lookbehind: !0
1471
1579
  }
1472
1580
  ],
1473
- boolean: q,
1581
+ boolean: K,
1474
1582
  // Allow for all non-ASCII characters (See http://stackoverflow.com/a/2008444)
1475
1583
  function: {
1476
1584
  pattern: /#?(?!\d)(?:(?!\s)[$\w\xa0-\uffff])+(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,
@@ -1507,26 +1615,26 @@ _.js = _.javascript = Object.assign(lt, {
1507
1615
  },
1508
1616
  punctuation: /\?\.|[()[\]{}.,:;]/
1509
1617
  });
1510
- var Dn = (e) => (t, n) => {
1511
- for (var s = kt(e), l = "", u = [], f = 0, E = ke(t, n), y = 0, v = E.length, g = 0; y < v; ) {
1618
+ var Hn = (e) => (t, n) => {
1619
+ for (var i = Ct(e), l = "", u = [], b = 0, E = Oe(t, n), y = 0, v = E.length, g = 0; y < v; ) {
1512
1620
  var m = E[y++], p = m.length, c = m.type;
1513
- c && c.slice(0, 6) != "ignore" ? (u[f++] = [g, m], l += " ".repeat(p)) : l += t.slice(g, g + p), g += p;
1621
+ c && c.slice(0, 6) != "ignore" ? (u[b++] = [g, m], l += " ".repeat(p)) : l += t.slice(g, g + p), g += p;
1514
1622
  }
1515
- var b = 0, g = 0, a = (d) => {
1516
- for (var o = 0; b < f && o < d.length; o++) {
1517
- var i = d[o], h = i.content;
1623
+ var f = 0, g = 0, a = (d) => {
1624
+ for (var o = 0; f < b && o < d.length; o++) {
1625
+ var s = d[o], h = s.content;
1518
1626
  if (Array.isArray(h))
1519
1627
  a(h);
1520
1628
  else {
1521
- for (var S = i.length, I = [], w, k, x = 0, T = g; ([w, k] = u[b], w >= g && w < g + S) && (T < w && (I[x++] = l.slice(T, w)), T = w + k.length, I[x++] = k, ++b != f); )
1629
+ 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); )
1522
1630
  ;
1523
- g += S, x && (T < g && (I[x++] = l.slice(T, g)), h ? i.content = I : (d.splice(o, 1, ...I), o += x - 1));
1631
+ g += R, N && (T < g && (A[N++] = l.slice(T, g)), h ? s.content = A : (d.splice(o, 1, ...A), o += N - 1));
1524
1632
  }
1525
1633
  }
1526
- }, r = s ? Se(l, s) : [l];
1634
+ }, r = i ? Ne(l, i) : [l];
1527
1635
  return a(r), r;
1528
- }, Fn = _.js, xt = Fn["template-string"], ma = xt.pattern.source, ha = xt.inside.interpolation.pattern, de = (e, t) => ({
1529
- pattern: RegExp("((?:" + t + ")\\s*)" + ma, "g"),
1636
+ }, Vn = _.js, Pt = Vn["template-string"], Ra = Pt.pattern.source, Sa = Pt.inside.interpolation.pattern, fe = (e, t) => ({
1637
+ pattern: RegExp("((?:" + t + ")\\s*)" + Ra, "g"),
1530
1638
  lookbehind: !0,
1531
1639
  greedy: !0,
1532
1640
  inside: {
@@ -1538,7 +1646,7 @@ var Dn = (e) => (t, n) => {
1538
1646
  pattern: /[^]+/,
1539
1647
  inside: {
1540
1648
  interpolation: {
1541
- pattern: ha,
1649
+ pattern: Sa,
1542
1650
  lookbehind: !0,
1543
1651
  alias: "language-javascript",
1544
1652
  inside: {
@@ -1546,46 +1654,46 @@ var Dn = (e) => (t, n) => {
1546
1654
  pattern: /^\$\{|\}$/,
1547
1655
  alias: "punctuation"
1548
1656
  },
1549
- [j]: "js"
1657
+ [Y]: "js"
1550
1658
  }
1551
1659
  },
1552
- [J]: Dn(e)
1660
+ [ee]: Hn(e)
1553
1661
  }
1554
1662
  }
1555
1663
  }
1556
1664
  });
1557
- Fn["template-string"] = [
1665
+ Vn["template-string"] = [
1558
1666
  // styled-jsx:
1559
1667
  // css`a { color: #25F; }`
1560
1668
  // styled-components:
1561
1669
  // styled.h1`color: red;`
1562
- de("css", "\\b(?:styled(?:\\([^)]*\\))?(?:\\s*\\.\\s*\\w+(?:\\([^)]*\\))*)*|css(?:\\s*\\.\\s*(?:global|resolve))?|createGlobalStyle|keyframes)"),
1670
+ fe("css", "\\b(?:styled(?:\\([^)]*\\))?(?:\\s*\\.\\s*\\w+(?:\\([^)]*\\))*)*|css(?:\\s*\\.\\s*(?:global|resolve))?|createGlobalStyle|keyframes)"),
1563
1671
  // html`<p></p>`
1564
1672
  // div.innerHTML = `<p></p>`
1565
- de("html", "\\bhtml|\\.\\s*(?:inner|outer)HTML\\s*\\+?="),
1673
+ fe("html", "\\bhtml|\\.\\s*(?:inner|outer)HTML\\s*\\+?="),
1566
1674
  // svg`<path fill="#fff" d="M55.37 ..."/>`
1567
- de("svg", "\\bsvg"),
1675
+ fe("svg", "\\bsvg"),
1568
1676
  // md`# h1`, markdown`## h2`
1569
- de("markdown", "\\b(?:markdown|md)"),
1677
+ fe("markdown", "\\b(?:markdown|md)"),
1570
1678
  // gql`...`, graphql`...`, graphql.experimental`...`
1571
- de("graphql", "\\b(?:gql|graphql(?:\\s*\\.\\s*experimental)?)"),
1679
+ fe("graphql", "\\b(?:gql|graphql(?:\\s*\\.\\s*experimental)?)"),
1572
1680
  // sql`...`
1573
- de("sql", "\\bsql"),
1681
+ fe("sql", "\\bsql"),
1574
1682
  // vanilla template string
1575
- xt
1683
+ Pt
1576
1684
  ];
1577
- var De = "\\s|//.*(?!.)|/\\*(?:[^*]|\\*(?!/))*\\*/", _t = "\\{(?:[^{}]|\\{(?:[^{}]|\\{[^}]*\\})*\\})*\\}", en = F("\\{<0>*\\.{3}(?:[^{}]|<1>)*\\}", [De, _t]), tn = (e) => e && (!e.type || e.type == "plain-text"), _a = (e, t, n) => {
1578
- for (var s = 0, l = [], u = 0; s < e.length; s++) {
1579
- var f = e[s], E = f.length, y = f.type, v = !y, m, p, c, b, g;
1580
- 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;
1685
+ var Ge = "\\s|//.*(?!.)|/\\*(?:[^*]|\\*(?!/))*\\*/", At = "\\{(?:[^{}]|\\{(?:[^{}]|\\{[^}]*\\})*\\})*\\}", an = U("\\{<0>*\\.{3}(?:[^{}]|<1>)*\\}", [Ge, At]), rn = (e) => e && (!e.type || e.type == "plain-text"), ka = (e, t, n) => {
1686
+ for (var i = 0, l = [], u = 0; i < e.length; i++) {
1687
+ var b = e[i], E = b.length, y = b.type, v = !y, m, p, c, f, g;
1688
+ 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;
1581
1689
  }
1582
1690
  return e;
1583
- }, Un = (e, t) => {
1584
- $(_[t] = e = Ye(e), "regex", {
1691
+ }, Zn = (e, t) => {
1692
+ $(_[t] = e = et(e), "regex", {
1585
1693
  tag: {
1586
1694
  pattern: O(
1587
1695
  `</?(?:(?!\\d)[^\\s/=><%]+(?:<0>(?:<0>*(?:[^\\s<>/={*]+(?:<0>*=<0>*(?!\\s)(?:"[^"]*"|'[^']*'|<1>)?|(?=[\\s/>]))|<2>))+)?<0>*/?)?>`,
1588
- [De, _t, en],
1696
+ [Ge, At, an],
1589
1697
  "g"
1590
1698
  ),
1591
1699
  greedy: !0,
@@ -1600,18 +1708,18 @@ var De = "\\s|//.*(?!.)|/\\*(?:[^*]|\\*(?!/))*\\*/", _t = "\\{(?:[^{}]|\\{(?:[^{
1600
1708
  },
1601
1709
  script: {
1602
1710
  // Allow for two levels of nesting
1603
- pattern: O("(=<0>*)<1>", [De, _t]),
1711
+ pattern: O("(=<0>*)<1>", [Ge, At]),
1604
1712
  lookbehind: !0,
1605
1713
  alias: t = "language-" + t,
1606
1714
  inside: e
1607
1715
  },
1608
1716
  spread: {
1609
- pattern: RegExp(en),
1717
+ pattern: RegExp(an),
1610
1718
  alias: t,
1611
1719
  inside: e
1612
1720
  },
1613
1721
  "attr-value": {
1614
- pattern: O(`(=<0>*)(?:"[^"]*"|'[^']*')`, [De]),
1722
+ pattern: O(`(=<0>*)(?:"[^"]*"|'[^']*')`, [Ge]),
1615
1723
  lookbehind: !0,
1616
1724
  inside: {
1617
1725
  punctuation: /^["']|["']$/
@@ -1627,9 +1735,9 @@ var De = "\\s|//.*(?!.)|/\\*(?:[^*]|\\*(?!/))*\\*/", _t = "\\{(?:[^{}]|\\{(?:[^{
1627
1735
  }
1628
1736
  }
1629
1737
  }
1630
- }), e[J] = (n, s) => _a(ke(n, s), n, 0);
1738
+ }), e[ee] = (n, i) => ka(Oe(n, i), n, 0);
1631
1739
  };
1632
- Un(_.js, "jsx");
1740
+ Zn(_.js, "jsx");
1633
1741
  _.lua = {
1634
1742
  comment: /^#!.+|--(?:\[(=*)\[[^]*?\]\1\]|.*)/m,
1635
1743
  // \z may be used to skip the following space
@@ -1647,7 +1755,7 @@ _.lua = {
1647
1755
  },
1648
1756
  punctuation: /[()[\]{},;]|\.+|:+/
1649
1757
  };
1650
- 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";
1758
+ 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";
1651
1759
  _.perl = {
1652
1760
  comment: [
1653
1761
  {
@@ -1665,7 +1773,7 @@ _.perl = {
1665
1773
  // TODO Could be nice to handle Heredoc too.
1666
1774
  string: {
1667
1775
  pattern: RegExp(
1668
- `\\bq[qwx]?${nn}|${Ce})|("|\`)(?:\\\\[^]|(?!\\3)[^\\\\])*\\3|'(?:\\\\.|[^\\\\
1776
+ `\\bq[qwx]?${sn}|${De})|("|\`)(?:\\\\[^]|(?!\\3)[^\\\\])*\\3|'(?:\\\\.|[^\\\\
1669
1777
  '])*'`,
1670
1778
  "g"
1671
1779
  ),
@@ -1674,7 +1782,7 @@ _.perl = {
1674
1782
  regex: [
1675
1783
  {
1676
1784
  pattern: RegExp(
1677
- `\\b(?:m|qr)${nn}|${Ce})[msixpodualngc]*`,
1785
+ `\\b(?:m|qr)${sn}|${De})[msixpodualngc]*`,
1678
1786
  "g"
1679
1787
  ),
1680
1788
  greedy: !0
@@ -1682,7 +1790,7 @@ _.perl = {
1682
1790
  // The lookbehinds prevent -s from breaking
1683
1791
  {
1684
1792
  pattern: RegExp(
1685
- `(^|[^-])\\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]*`,
1793
+ `(^|[^-])\\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]*`,
1686
1794
  "g"
1687
1795
  ),
1688
1796
  lookbehind: !0,
@@ -1718,7 +1826,7 @@ _.perl = {
1718
1826
  operator: /-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|->|=>|=~|~~|<=>?|!~|--|\+\+|(?:\*\*|\/\/|&&|\|\||<<|>>|[~%&|^!=<>/*+-])=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:and|cmp|eq|[gl][et]|ne|not|x?or)\b/,
1719
1827
  punctuation: /[()[\]{},:;]/
1720
1828
  };
1721
- var an = {
1829
+ var on = {
1722
1830
  "format-spec": {
1723
1831
  pattern: /(:)[^(){}:]+(?=\}$)/,
1724
1832
  lookbehind: !0
@@ -1728,7 +1836,7 @@ var an = {
1728
1836
  alias: "punctuation"
1729
1837
  }
1730
1838
  };
1731
- an[j] = _.py = _.python = {
1839
+ on[Y] = _.py = _.python = {
1732
1840
  comment: {
1733
1841
  pattern: /#.*/g,
1734
1842
  greedy: !0
@@ -1741,7 +1849,7 @@ an[j] = _.py = _.python = {
1741
1849
  // "{" <expression> <optional "!s", "!r", or "!a"> <optional ":" format specifier> "}"
1742
1850
  pattern: /((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})*\}/,
1743
1851
  lookbehind: !0,
1744
- inside: an
1852
+ inside: on
1745
1853
  },
1746
1854
  string: /[^]+/
1747
1855
  }
@@ -1776,23 +1884,23 @@ an[j] = _.py = _.python = {
1776
1884
  boolean: /\b(?:False|True|None)\b/,
1777
1885
  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,
1778
1886
  operator: /!=|:=|\*\*=?|\/\/=?|<>|>>|<<|[%=<>/*+-]=?|[&|^~]/,
1779
- punctuation: te
1887
+ punctuation: ae
1780
1888
  };
1781
- var Ea = me("/\\*(?:[^*/]|\\*(?!/)|/(?!\\*)|<self>)*\\*/", 2), rn = {
1889
+ var Ta = ye("/\\*(?:[^*/]|\\*(?!/)|/(?!\\*)|<self>)*\\*/", 2), ln = {
1782
1890
  pattern: /b?"(?:\\[^]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/g,
1783
1891
  greedy: !0
1784
- }, sn = {
1892
+ }, cn = {
1785
1893
  "closure-punctuation": {
1786
1894
  pattern: /^\||\|$/,
1787
1895
  alias: "punctuation"
1788
1896
  }
1789
1897
  };
1790
- sn[j] = _.rust = {
1898
+ cn[Y] = _.rust = {
1791
1899
  comment: {
1792
- pattern: RegExp("//.*|" + Ea, "g"),
1900
+ pattern: RegExp("//.*|" + Ta, "g"),
1793
1901
  greedy: !0
1794
1902
  },
1795
- string: rn,
1903
+ string: ln,
1796
1904
  char: {
1797
1905
  pattern: /b?'(?:\\(?:x[0-7][a-fA-F\d]|u\{(?:[a-fA-F\d]_*){1,6}\}|.)|[^\\\n '])'/g,
1798
1906
  greedy: !0
@@ -1802,7 +1910,7 @@ sn[j] = _.rust = {
1802
1910
  greedy: !0,
1803
1911
  alias: "attr-name",
1804
1912
  inside: {
1805
- string: rn
1913
+ string: ln
1806
1914
  }
1807
1915
  },
1808
1916
  // Closure params should not be confused with bitwise OR |
@@ -1810,7 +1918,7 @@ sn[j] = _.rust = {
1810
1918
  pattern: /([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/g,
1811
1919
  lookbehind: !0,
1812
1920
  greedy: !0,
1813
- inside: sn
1921
+ inside: cn
1814
1922
  },
1815
1923
  "lifetime-annotation": {
1816
1924
  pattern: /'\w+/,
@@ -1869,11 +1977,11 @@ sn[j] = _.rust = {
1869
1977
  },
1870
1978
  // Hex, oct, bin, dec numbers with visual separators and type suffix
1871
1979
  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/,
1872
- boolean: q,
1980
+ boolean: K,
1873
1981
  punctuation: /->|\.\.=|\.{1,3}|::|[()[\]{},:;]/,
1874
1982
  operator: /&&|\|\||=>|>>=?|<<=?|[%&|^!=<>/*+-]=?|[@?]/
1875
1983
  };
1876
- var on = _.swift = {
1984
+ var dn = _.swift = {
1877
1985
  comment: {
1878
1986
  // Nested comments are supported up to 2 levels
1879
1987
  pattern: /\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\//g,
@@ -1921,7 +2029,7 @@ var on = _.swift = {
1921
2029
  alias: "property",
1922
2030
  inside: {
1923
2031
  "directive-name": /^#\w+/,
1924
- boolean: q,
2032
+ boolean: K,
1925
2033
  number: /\b\d+(?:\.\d+)*\b/,
1926
2034
  operator: /!|&&|\|\||[<>]=?/,
1927
2035
  punctuation: /[(),]/
@@ -1951,7 +2059,7 @@ var on = _.swift = {
1951
2059
  alias: "important"
1952
2060
  },
1953
2061
  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/,
1954
- boolean: q,
2062
+ boolean: K,
1955
2063
  nil: {
1956
2064
  pattern: /\bnil\b/,
1957
2065
  alias: "constant"
@@ -1972,12 +2080,12 @@ var on = _.swift = {
1972
2080
  operator: /[~?%&|^!=<>/*+-]+|\.[.~?%&|^!=<>/*+-]+/,
1973
2081
  punctuation: /[()[\]{}.,:;\\]/
1974
2082
  };
1975
- on["string-literal"].forEach((e) => {
1976
- e.inside.interpolation.inside = on;
2083
+ dn["string-literal"].forEach((e) => {
2084
+ e.inside.interpolation.inside = dn;
1977
2085
  });
1978
2086
  _.clike = {
1979
- comment: re(),
1980
- string: Tt(),
2087
+ comment: se(),
2088
+ string: Mt(),
1981
2089
  "class-name": {
1982
2090
  pattern: /(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,
1983
2091
  lookbehind: !0,
@@ -1986,26 +2094,26 @@ _.clike = {
1986
2094
  }
1987
2095
  },
1988
2096
  keyword: /\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,
1989
- boolean: q,
2097
+ boolean: K,
1990
2098
  function: /\b\w+(?=\()/,
1991
- number: Ln,
2099
+ number: Fn,
1992
2100
  operator: /[!=]==|[!=<>]=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,
1993
- punctuation: te
2101
+ punctuation: ae
1994
2102
  };
1995
- 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 = {
1996
- keyword: He,
2103
+ 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 = {
2104
+ keyword: Ke,
1997
2105
  punctuation: /[()[\].,:<>?]/
1998
- }, Hn = `'(?:\\\\.|[^
1999
- '\\\\]|\\\\[Uux][a-fA-F\\d]{1,8})'`, Vn = `"(?:\\\\.|[^\\\\
2000
- "])*"`, Ra = '@"(?:""|\\\\[\\s\\S]|[^\\\\"])*"(?!")', ne = _.dotnet = _.cs = _.csharp = ae("clike", {
2106
+ }, jn = `'(?:\\\\.|[^
2107
+ '\\\\]|\\\\[Uux][a-fA-F\\d]{1,8})'`, Yn = `"(?:\\\\.|[^\\\\
2108
+ "])*"`, Pa = '@"(?:""|\\\\[\\s\\S]|[^\\\\"])*"(?!")', re = _.dotnet = _.cs = _.csharp = ie("clike", {
2001
2109
  string: [
2002
2110
  {
2003
- pattern: O("(^|[^$\\\\])<0>", [Ra], "g"),
2111
+ pattern: O("(^|[^$\\\\])<0>", [Pa], "g"),
2004
2112
  lookbehind: !0,
2005
2113
  greedy: !0
2006
2114
  },
2007
2115
  {
2008
- pattern: O("(^|[^@$\\\\])<0>", [Vn], "g"),
2116
+ pattern: O("(^|[^@$\\\\])<0>", [Yn], "g"),
2009
2117
  lookbehind: !0,
2010
2118
  greedy: !0
2011
2119
  }
@@ -2014,84 +2122,84 @@ var Xe = (e) => `\\b(?:${e})\\b`, Bn = "bool|char|decimal|double|dynamic|float|o
2014
2122
  {
2015
2123
  // Using static
2016
2124
  // using static System.Math;
2017
- pattern: O("(\\busing\\s+static\\s+)<0>(?=\\s*;)", [le]),
2125
+ pattern: O("(\\busing\\s+static\\s+)<0>(?=\\s*;)", [de]),
2018
2126
  lookbehind: !0,
2019
- inside: W
2127
+ inside: j
2020
2128
  },
2021
2129
  {
2022
2130
  // Using alias (type)
2023
2131
  // using Project = PC.MyCompany.Project;
2024
- pattern: O("(\\busing\\s+<0>\\s*=\\s*)<1>(?=\\s*;)", [Q, pe]),
2132
+ pattern: O("(\\busing\\s+<0>\\s*=\\s*)<1>(?=\\s*;)", [J, ge]),
2025
2133
  lookbehind: !0,
2026
- inside: W
2134
+ inside: j
2027
2135
  },
2028
2136
  {
2029
2137
  // Using alias (alias)
2030
2138
  // using Project = PC.MyCompany.Project;
2031
- pattern: O("(\\busing\\s+)<0>(?=\\s*=)", [Q]),
2139
+ pattern: O("(\\busing\\s+)<0>(?=\\s*=)", [J]),
2032
2140
  lookbehind: !0
2033
2141
  },
2034
2142
  {
2035
2143
  // Type declarations
2036
2144
  // class Foo<A, B>
2037
2145
  // interface Foo<out A, B>
2038
- pattern: O("(\\b<0>\\s+)<1>", [zn, Ze]),
2146
+ pattern: O("(\\b<0>\\s+)<1>", [Wn, je]),
2039
2147
  lookbehind: !0,
2040
- inside: W
2148
+ inside: j
2041
2149
  },
2042
2150
  {
2043
2151
  // Single catch exception declaration
2044
2152
  // catch(Foo)
2045
2153
  // (things like catch(Foo e) is covered by variable declaration)
2046
- pattern: O("(\\bcatch\\s*\\(\\s*)<0>", [le]),
2154
+ pattern: O("(\\bcatch\\s*\\(\\s*)<0>", [de]),
2047
2155
  lookbehind: !0,
2048
- inside: W
2156
+ inside: j
2049
2157
  },
2050
2158
  {
2051
2159
  // Name of the type parameter of generic constraints
2052
2160
  // where Foo : class
2053
- pattern: O("(\\bwhere\\s+)<0>", [Q]),
2161
+ pattern: O("(\\bwhere\\s+)<0>", [J]),
2054
2162
  lookbehind: !0
2055
2163
  },
2056
2164
  {
2057
2165
  // Casts and checks via as and is.
2058
2166
  // as Foo<A>, is Bar<B>
2059
2167
  // (things like if(a is Foo b) is covered by variable declaration)
2060
- pattern: O("(\\b(?:is(?:\\s+not)?|as)\\s+)<0>", [wa]),
2168
+ pattern: O("(\\b(?:is(?:\\s+not)?|as)\\s+)<0>", [La]),
2061
2169
  lookbehind: !0,
2062
- inside: W
2170
+ inside: j
2063
2171
  },
2064
2172
  {
2065
2173
  // Variable, field and parameter declaration
2066
2174
  // (Foo bar, Bar baz, Foo[,,] bay, Foo<Bar, FooBar<Bar>> bax)
2067
- pattern: O("\\b<0>(?=\\s+(?!<1>|with\\s*\\{)<2>(?:\\s*[=,:;{)\\]]|\\s+(?:in|when)\\b))", [pe, va, Q]),
2068
- inside: W
2175
+ pattern: O("\\b<0>(?=\\s+(?!<1>|with\\s*\\{)<2>(?:\\s*[=,:;{)\\]]|\\s+(?:in|when)\\b))", [ge, Oa, J]),
2176
+ inside: j
2069
2177
  }
2070
2178
  ],
2071
- keyword: He,
2179
+ keyword: Ke,
2072
2180
  // https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/language-specification/lexical-structure#literals
2073
2181
  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,
2074
2182
  operator: /[=-]>|([&|+-])\1|~|\?\?=?|>>=?|<<=?|[%&|^!=<>/*+-]=?/,
2075
2183
  punctuation: /\?\.?|::|[()[\]{}.,:;]/
2076
2184
  });
2077
- $(ne, "number", {
2185
+ $(re, "number", {
2078
2186
  range: {
2079
2187
  pattern: /\.\./,
2080
2188
  alias: "operator"
2081
2189
  }
2082
2190
  });
2083
- $(ne, "punctuation", {
2191
+ $(re, "punctuation", {
2084
2192
  "named-parameter": {
2085
- pattern: O("([(,]\\s*)<0>(?=\\s*:)", [Q]),
2193
+ pattern: O("([(,]\\s*)<0>(?=\\s*:)", [J]),
2086
2194
  lookbehind: !0,
2087
2195
  alias: "punctuation"
2088
2196
  }
2089
2197
  });
2090
- $(ne, "class-name", {
2198
+ $(re, "class-name", {
2091
2199
  namespace: {
2092
2200
  // namespace Foo.Bar {}
2093
2201
  // using Foo.Bar;
2094
- pattern: O("(\\b(?:namespace|using)\\s+)<0>(?:\\s*\\.\\s*<0>)*(?=\\s*[;{])", [Q]),
2202
+ pattern: O("(\\b(?:namespace|using)\\s+)<0>(?:\\s*\\.\\s*<0>)*(?=\\s*[;{])", [J]),
2095
2203
  lookbehind: !0,
2096
2204
  inside: {
2097
2205
  punctuation: /\./
@@ -2099,25 +2207,25 @@ $(ne, "class-name", {
2099
2207
  },
2100
2208
  "type-expression": {
2101
2209
  // default(Foo), typeof(Foo<Bar>), sizeof(int)
2102
- pattern: O("(\\b(?:default|sizeof|typeof)\\s*\\(\\s*(?!\\s))(?:[^()\\s]|\\s(?!\\s)|<0>)+(?=\\s*\\))", [Fe]),
2210
+ pattern: O("(\\b(?:default|sizeof|typeof)\\s*\\(\\s*(?!\\s))(?:[^()\\s]|\\s(?!\\s)|<0>)+(?=\\s*\\))", [ze]),
2103
2211
  lookbehind: !0,
2104
2212
  alias: "class-name",
2105
- inside: W
2213
+ inside: j
2106
2214
  },
2107
2215
  "return-type": {
2108
2216
  // Foo<Bar> ForBar(); Foo IFoo.Bar() => 0
2109
2217
  // int this[int index] => 0; T IReadOnlyList<T>.this[int index] => this[index];
2110
2218
  // int Foo => 0; int Foo { get; set } = 0;
2111
- pattern: O("<0>(?=\\s+(?:<1>\\s*(?:=>|[({]|\\.\\s*this\\s*\\[)|this\\s*\\[))", [pe, le]),
2219
+ pattern: O("<0>(?=\\s+(?:<1>\\s*(?:=>|[({]|\\.\\s*this\\s*\\[)|this\\s*\\[))", [ge, de]),
2112
2220
  alias: "class-name",
2113
- inside: W
2221
+ inside: j
2114
2222
  },
2115
2223
  "constructor-invocation": {
2116
2224
  // new List<Foo<Bar[]>> { }
2117
- pattern: O("(\\bnew\\s+)<0>(?=\\s*[[({])", [pe]),
2225
+ pattern: O("(\\bnew\\s+)<0>(?=\\s*[[({])", [ge]),
2118
2226
  lookbehind: !0,
2119
2227
  alias: "class-name",
2120
- inside: W
2228
+ inside: j
2121
2229
  },
2122
2230
  /*'explicit-implementation': {
2123
2231
  // int IFoo<Foo>.Bar => 0; void IFoo<Foo<Foo>>.Foo<T>();
@@ -2127,13 +2235,13 @@ $(ne, "class-name", {
2127
2235
  },*/
2128
2236
  "generic-method": {
2129
2237
  // foo<Bar>()
2130
- pattern: O("<0>\\s*<1>(?=\\s*\\()", [Q, Ve]),
2238
+ pattern: O("<0>\\s*<1>(?=\\s*\\()", [J, We]),
2131
2239
  inside: {
2132
- function: O("^<0>", [Q]),
2240
+ function: O("^<0>", [J]),
2133
2241
  generic: {
2134
- pattern: RegExp(Ve),
2242
+ pattern: RegExp(We),
2135
2243
  alias: "class-name",
2136
- inside: W
2244
+ inside: j
2137
2245
  }
2138
2246
  }
2139
2247
  },
@@ -2143,21 +2251,21 @@ $(ne, "class-name", {
2143
2251
  // where F : Bar, IList<int>
2144
2252
  pattern: O(
2145
2253
  "\\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|[{;]|=>|$))",
2146
- [zn, Ze, Q, pe, He.source, Fe, "\\bnew\\s*\\(\\s*\\)"]
2254
+ [Wn, je, J, ge, Ke.source, ze, "\\bnew\\s*\\(\\s*\\)"]
2147
2255
  ),
2148
2256
  lookbehind: !0,
2149
2257
  inside: {
2150
2258
  "record-arguments": {
2151
- pattern: O("(^(?!new\\s*\\()<0>\\s*)<1>", [Ze, Fe], "g"),
2259
+ pattern: O("(^(?!new\\s*\\()<0>\\s*)<1>", [je, ze], "g"),
2152
2260
  lookbehind: !0,
2153
2261
  greedy: !0,
2154
- inside: ne
2262
+ inside: re
2155
2263
  },
2156
- keyword: He,
2264
+ keyword: Ke,
2157
2265
  "class-name": {
2158
- pattern: RegExp(pe, "g"),
2266
+ pattern: RegExp(ge, "g"),
2159
2267
  greedy: !0,
2160
- inside: W
2268
+ inside: j
2161
2269
  },
2162
2270
  punctuation: /[(),]/
2163
2271
  }
@@ -2176,16 +2284,16 @@ $(ne, "class-name", {
2176
2284
  }
2177
2285
  }
2178
2286
  });
2179
- var Zn = Vn + "|" + Hn, qn = F(`/(?![*/])|//[^
2287
+ var Xn = Yn + "|" + jn, Qn = U(`/(?![*/])|//[^
2180
2288
  ]*
2181
- |/\\*(?:[^*]|\\*(?!/))*\\*/|<0>`, [Zn]), Kn = me(F(`[^()"'/]|<0>|\\(<self>*\\)`, [qn]), 2), ln = "\\b(?:assembly|event|field|method|module|param|property|return|type)\\b", Sa = F("<0>(?:\\s*\\(<1>*\\))?", [le, Kn]), Lt = `:[^
2182
- }]+`, 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) => ({
2289
+ |/\\*(?:[^*]|\\*(?!/))*\\*/|<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 = `:[^
2290
+ }]+`, 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) => ({
2183
2291
  interpolation: {
2184
2292
  pattern: O("((?:^|[^{])(?:\\{\\{)*)<0>", [e]),
2185
2293
  lookbehind: !0,
2186
2294
  inside: {
2187
2295
  "format-string": {
2188
- pattern: O("(^\\{(?:(?![}:])<0>)*)<1>(?=\\}$)", [t, Lt]),
2296
+ pattern: O("(^\\{(?:(?![}:])<0>)*)<1>(?=\\}$)", [t, Ft]),
2189
2297
  lookbehind: !0,
2190
2298
  inside: {
2191
2299
  punctuation: /^:/
@@ -2195,30 +2303,30 @@ var Zn = Vn + "|" + Hn, qn = F(`/(?![*/])|//[^
2195
2303
  expression: {
2196
2304
  pattern: /[^]+/,
2197
2305
  alias: "language-csharp",
2198
- inside: ne
2306
+ inside: re
2199
2307
  }
2200
2308
  }
2201
2309
  },
2202
2310
  string: /[^]+/
2203
2311
  });
2204
- $(ne, "class-name", {
2312
+ $(re, "class-name", {
2205
2313
  attribute: {
2206
2314
  // Attributes
2207
2315
  // [Foo], [Foo(1), Bar(2, Prop = "foo")], [return: Foo(1), Bar(2)], [assembly: Foo(Bar)]
2208
- pattern: O("((?:^|[^\\s\\w>)?])\\s*\\[\\s*)(?:<0>\\s*:\\s*)?<1>(?:\\s*,\\s*<1>)*(?=\\s*\\])", [ln, Sa], "g"),
2316
+ pattern: O("((?:^|[^\\s\\w>)?])\\s*\\[\\s*)(?:<0>\\s*:\\s*)?<1>(?:\\s*,\\s*<1>)*(?=\\s*\\])", [un, $a], "g"),
2209
2317
  lookbehind: !0,
2210
2318
  greedy: !0,
2211
2319
  inside: {
2212
2320
  target: {
2213
- pattern: O("^<0>(?=\\s*:)", [ln]),
2321
+ pattern: O("^<0>(?=\\s*:)", [un]),
2214
2322
  alias: "keyword"
2215
2323
  },
2216
2324
  "attribute-arguments": {
2217
- pattern: O("\\(<0>*\\)", [Kn]),
2218
- inside: ne
2325
+ pattern: O("\\(<0>*\\)", [Jn]),
2326
+ inside: re
2219
2327
  },
2220
2328
  "class-name": {
2221
- pattern: RegExp(le),
2329
+ pattern: RegExp(de),
2222
2330
  inside: {
2223
2331
  punctuation: /\./
2224
2332
  }
@@ -2227,23 +2335,23 @@ $(ne, "class-name", {
2227
2335
  }
2228
2336
  }
2229
2337
  });
2230
- $(ne, "string", {
2338
+ $(re, "string", {
2231
2339
  "interpolation-string": [
2232
2340
  {
2233
- pattern: O('(^|[^\\\\])(?:\\$@|@\\$)"(?:""|\\\\[\\s\\S]|\\{\\{|<0>|[^\\\\{"])*"', [cn], "g"),
2341
+ pattern: O('(^|[^\\\\])(?:\\$@|@\\$)"(?:""|\\\\[\\s\\S]|\\{\\{|<0>|[^\\\\{"])*"', [pn], "g"),
2234
2342
  lookbehind: !0,
2235
2343
  greedy: !0,
2236
- inside: un(cn, Wn)
2344
+ inside: bn(pn, ea)
2237
2345
  },
2238
2346
  {
2239
- pattern: O('(^|[^@\\\\])\\$"(?:\\\\.|\\{\\{|<0>|[^\\\\"{])*"', [dn], "g"),
2347
+ pattern: O('(^|[^@\\\\])\\$"(?:\\\\.|\\{\\{|<0>|[^\\\\"{])*"', [fn], "g"),
2240
2348
  lookbehind: !0,
2241
2349
  greedy: !0,
2242
- inside: un(dn, jn)
2350
+ inside: bn(fn, ta)
2243
2351
  }
2244
2352
  ],
2245
2353
  char: {
2246
- pattern: RegExp(Hn, "g"),
2354
+ pattern: RegExp(jn, "g"),
2247
2355
  greedy: !0
2248
2356
  }
2249
2357
  });
@@ -2266,7 +2374,7 @@ _.graphql = {
2266
2374
  greedy: !0
2267
2375
  },
2268
2376
  number: /(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,
2269
- boolean: q,
2377
+ boolean: K,
2270
2378
  variable: /\$[a-z_]\w*/i,
2271
2379
  directive: {
2272
2380
  pattern: /@[a-z_]\w*/i,
@@ -2307,15 +2415,15 @@ _.graphql = {
2307
2415
  object: /\w+(?=\s*\{)/,
2308
2416
  punctuation: /[()[\]{},:!=]/,
2309
2417
  property: /\w+/,
2310
- [J](e, t) {
2311
- for (var n = ke(e, t), s = n.filter(({ type: a }) => a && a != "comment" && a != "scalar"), l = s.length, u = 0, f = (a) => {
2418
+ [ee](e, t) {
2419
+ for (var n = Oe(e, t), i = n.filter(({ type: a }) => a && a != "comment" && a != "scalar"), l = i.length, u = 0, b = (a) => {
2312
2420
  for (var r = 0; r < a.length; r++)
2313
- if (u + r == l || s[u + r].type != a[r])
2421
+ if (u + r == l || i[u + r].type != a[r])
2314
2422
  return !0;
2315
2423
  }, E = (a, r) => {
2316
2424
  for (var d = 1, o = u; o < l; o++) {
2317
- var i = s[o], h = i.content;
2318
- if (i.type == "punctuation") {
2425
+ var s = i[o], h = s.content;
2426
+ if (s.type == "punctuation") {
2319
2427
  if (a == h)
2320
2428
  d++;
2321
2429
  else if (r == h && !--d)
@@ -2323,23 +2431,23 @@ _.graphql = {
2323
2431
  }
2324
2432
  }
2325
2433
  }; u < l; ) {
2326
- var y = s[u++];
2434
+ var y = i[u++];
2327
2435
  if (y.type == "keyword" && y.content == "mutation") {
2328
2436
  var v = [];
2329
- if (!f(["definition-mutation", "punctuation"]) && s[u + 1].content == "(") {
2437
+ if (!b(["definition-mutation", "punctuation"]) && i[u + 1].content == "(") {
2330
2438
  u += 2;
2331
2439
  var m = E("(", ")");
2332
2440
  if (!m) continue;
2333
2441
  for (; u < m; u++) {
2334
- var p = s[u];
2442
+ var p = i[u];
2335
2443
  p.type == "variable" && (p.alias = "variable-input", v.push(p.content));
2336
2444
  }
2337
2445
  u = m + 1;
2338
2446
  }
2339
- if (!f(["punctuation", "property-query"]) && s[u].content == "{" && (s[++u].alias = "property-mutation", v[0])) {
2447
+ if (!b(["punctuation", "property-query"]) && i[u].content == "{" && (i[++u].alias = "property-mutation", v[0])) {
2340
2448
  var c = E("{", "}");
2341
- if (c) for (var b = u; b < c; b++) {
2342
- var g = s[b];
2449
+ if (c) for (var f = u; f < c; f++) {
2450
+ var g = i[f];
2343
2451
  g.type == "variable" && v.indexOf(g.content) >= 0 && (g.alias = "variable-input");
2344
2452
  }
2345
2453
  }
@@ -2357,11 +2465,11 @@ _.webmanifest = _.json = {
2357
2465
  pattern: /"(?:\\.|[^\\\n"])*"/g,
2358
2466
  greedy: !0
2359
2467
  },
2360
- comment: re(),
2468
+ comment: se(),
2361
2469
  number: /-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,
2362
2470
  operator: /:/,
2363
2471
  punctuation: /[[\]{},]/,
2364
- boolean: q,
2472
+ boolean: K,
2365
2473
  null: {
2366
2474
  pattern: /\bnull\b/,
2367
2475
  alias: "keyword"
@@ -2369,7 +2477,7 @@ _.webmanifest = _.json = {
2369
2477
  };
2370
2478
  _.makefile = {
2371
2479
  comment: /#(?:\\[^]|[^\\\n])*/,
2372
- string: Tt(),
2480
+ string: Mt(),
2373
2481
  "builtin-target": {
2374
2482
  pattern: /\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,
2375
2483
  alias: "builtin"
@@ -2391,13 +2499,13 @@ _.makefile = {
2391
2499
  operator: /(?:::|[?:+!])?=|[|@]/,
2392
2500
  punctuation: /[:;(){}]/
2393
2501
  };
2394
- var Ct = _.scss = ae("css", {
2395
- comment: re(),
2502
+ var Ut = _.scss = ie("css", {
2503
+ comment: se(),
2396
2504
  atrule: {
2397
2505
  pattern: /@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,
2398
2506
  inside: {
2399
2507
  rule: /@[\w-]+/,
2400
- [j]: "scss"
2508
+ [Y]: "scss"
2401
2509
  }
2402
2510
  },
2403
2511
  // url, compassified
@@ -2428,7 +2536,7 @@ var Ct = _.scss = ae("css", {
2428
2536
  }
2429
2537
  }
2430
2538
  });
2431
- $(Ct, "atrule", {
2539
+ $(Ut, "atrule", {
2432
2540
  keyword: [
2433
2541
  /@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,
2434
2542
  {
@@ -2437,11 +2545,11 @@ $(Ct, "atrule", {
2437
2545
  }
2438
2546
  ]
2439
2547
  });
2440
- $(Ct, "important", {
2548
+ $(Ut, "important", {
2441
2549
  // var and interpolated vars
2442
2550
  variable: /\$[-\w]+|#\{\$[-\w]+\}/
2443
2551
  });
2444
- $(Ct, "function", {
2552
+ $(Ut, "function", {
2445
2553
  "module-modifier": {
2446
2554
  pattern: /\b(?:as|hide|show|with)\b/i,
2447
2555
  alias: "keyword"
@@ -2454,7 +2562,7 @@ $(Ct, "function", {
2454
2562
  pattern: /\B!(?:default|optional)\b/i,
2455
2563
  alias: "keyword"
2456
2564
  },
2457
- boolean: q,
2565
+ boolean: K,
2458
2566
  null: {
2459
2567
  pattern: /\bnull\b/,
2460
2568
  alias: "keyword"
@@ -2464,25 +2572,25 @@ $(Ct, "function", {
2464
2572
  lookbehind: !0
2465
2573
  }
2466
2574
  });
2467
- var Yn = {
2575
+ var na = {
2468
2576
  pattern: /(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\d)(?:(?!\s)[$\w\xa0-\uffff])+(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/g,
2469
2577
  lookbehind: !0,
2470
2578
  greedy: !0
2471
- }, he = _.ts = _.typescript = ae("js", {
2472
- "class-name": Yn
2579
+ }, ve = _.ts = _.typescript = ie("js", {
2580
+ "class-name": na
2473
2581
  });
2474
- $(he, "operator", {
2582
+ $(ve, "operator", {
2475
2583
  builtin: /\b(?:Array|Function|Promise|any|boolean|never|number|string|symbol|unknown)\b/
2476
2584
  });
2477
- he.keyword.push(
2585
+ ve.keyword.push(
2478
2586
  /\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*\*)/
2479
2587
  );
2480
- delete he.parameter;
2481
- delete he["literal-property"];
2482
- var Mt = Yn.inside = Object.assign({}, he);
2483
- delete Mt["class-name"];
2484
- delete Mt["maybe-class-name"];
2485
- $(he, "function", {
2588
+ delete ve.parameter;
2589
+ delete ve["literal-property"];
2590
+ var Bt = na.inside = Object.assign({}, ve);
2591
+ delete Bt["class-name"];
2592
+ delete Bt["maybe-class-name"];
2593
+ $(ve, "function", {
2486
2594
  decorator: {
2487
2595
  pattern: /@[$\w\xa0-\uffff]+/,
2488
2596
  inside: {
@@ -2502,35 +2610,35 @@ $(he, "function", {
2502
2610
  pattern: /<[^]+/,
2503
2611
  // everything after the first <
2504
2612
  alias: "class-name",
2505
- inside: Mt
2613
+ inside: Bt
2506
2614
  },
2507
2615
  function: /\S+/
2508
2616
  }
2509
2617
  }
2510
2618
  });
2511
- Un(_.ts, "tsx");
2512
- var Et = _.tsx.tag, Xn = "(?:^|(";
2619
+ Zn(_.ts, "tsx");
2620
+ var It = _.tsx.tag, aa = "(?:^|(";
2513
2621
  try {
2514
- RegExp("(?<=)"), Xn += "?<=";
2622
+ RegExp("(?<=)"), aa += "?<=";
2515
2623
  } catch {
2516
- Et.lookbehind = !0;
2624
+ It.lookbehind = !0;
2517
2625
  }
2518
- Et.pattern = RegExp(Xn + `[^\\w$])|(?=</))${Et.pattern.source}`, "g");
2519
- var yt = /[*&][^\s[\]{},]+/, vt = /!(?:<[\w%#;/?:@&=$,.!~*'()[\]+-]+>|(?:[a-zA-Z\d-]*!)?[\w%#;/?:@&=$.~*'()+-]+)?/, wt = `(?:${vt.source}(?:[ ]+${yt.source})?|${yt.source}(?:[ ]+${vt.source})?)`, ka = F(
2626
+ It.pattern = RegExp(aa + `[^\\w$])|(?=</))${It.pattern.source}`, "g");
2627
+ var Rt = /[*&][^\s[\]{},]+/, St = /!(?:<[\w%#;/?:@&=$,.!~*'()[\]+-]+>|(?:[a-zA-Z\d-]*!)?[\w%#;/?:@&=$.~*'()+-]+)?/, kt = `(?:${St.source}(?:[ ]+${Rt.source})?|${Rt.source}(?:[ ]+${St.source})?)`, Da = U(
2520
2628
  "(?:[^\\s\0-\\x08\\x0e-\\x1f!\"#%&'*,:>?@[\\]{}`|\\x7f-\\x84\\x86-\\x9f\\ud800-\\udfff\\ufffe\\uffff-]|[?:-]<0>)(?:[ ]*(?:(?![#:])<0>|:<0>))*",
2521
2629
  ["[^\\s\0-\\x08\\x0e-\\x1f,[\\]{}\\x7f-\\x84\\x86-\\x9f\\ud800-\\udfff\\ufffe\\uffff]"]
2522
- ), pn = `"(?:\\\\.|[^\\\\
2630
+ ), gn = `"(?:\\\\.|[^\\\\
2523
2631
  "])*"|'(?:\\\\.|[^\\\\
2524
- '])*'`, ve = (e, t) => O(
2632
+ '])*'`, Ie = (e, t) => O(
2525
2633
  `([:,[{-]\\s*(?:\\s<0>[ ]+)?)<1>(?=[ ]*(?:$|,|\\]|\\}|(?:
2526
2634
  \\s*)?#))`,
2527
- [wt, e],
2635
+ [kt, e],
2528
2636
  t
2529
2637
  );
2530
2638
  _.yml = _.yaml = {
2531
2639
  scalar: {
2532
2640
  pattern: O(`([:-]\\s*(?:\\s<0>[ ]+)?[|>])[ ]*(?:(
2533
- [ ]+)\\S.*(?:\\2.+)*)`, [wt]),
2641
+ [ ]+)\\S.*(?:\\2.+)*)`, [kt]),
2534
2642
  lookbehind: !0,
2535
2643
  alias: "string"
2536
2644
  },
@@ -2539,7 +2647,7 @@ _.yml = _.yaml = {
2539
2647
  pattern: O(
2540
2648
  `((?:^|[:,[{
2541
2649
  ?-])[ ]*(?:<0>[ ]+)?)<1>(?=\\s*:\\s)`,
2542
- [wt, "(?:" + ka + "|" + pn + ")"],
2650
+ [kt, "(?:" + Da + "|" + gn + ")"],
2543
2651
  "g"
2544
2652
  ),
2545
2653
  lookbehind: !0,
@@ -2552,43 +2660,43 @@ _.yml = _.yaml = {
2552
2660
  alias: "important"
2553
2661
  },
2554
2662
  datetime: {
2555
- 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"),
2663
+ 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"),
2556
2664
  lookbehind: !0,
2557
2665
  alias: "number"
2558
2666
  },
2559
2667
  boolean: {
2560
- pattern: ve("false|true", "im"),
2668
+ pattern: Ie("false|true", "im"),
2561
2669
  lookbehind: !0,
2562
2670
  alias: "important"
2563
2671
  },
2564
2672
  null: {
2565
- pattern: ve("null|~", "im"),
2673
+ pattern: Ie("null|~", "im"),
2566
2674
  lookbehind: !0,
2567
2675
  alias: "important"
2568
2676
  },
2569
2677
  string: {
2570
- pattern: ve(pn, "mg"),
2678
+ pattern: Ie(gn, "mg"),
2571
2679
  lookbehind: !0,
2572
2680
  greedy: !0
2573
2681
  },
2574
2682
  number: {
2575
- pattern: ve("[+-]?(?:0x[a-f\\d]+|0o[0-7]+|(?:\\d+(?:\\.\\d*)?|\\.\\d+)(?:e[+-]?\\d+)?|\\.inf|\\.nan)", "im"),
2683
+ pattern: Ie("[+-]?(?:0x[a-f\\d]+|0o[0-7]+|(?:\\d+(?:\\.\\d*)?|\\.\\d+)(?:e[+-]?\\d+)?|\\.inf|\\.nan)", "im"),
2576
2684
  lookbehind: !0
2577
2685
  },
2578
- tag: vt,
2579
- important: yt,
2686
+ tag: St,
2687
+ important: Rt,
2580
2688
  punctuation: /---|[:[\]{},|>?-]|\.{3}/
2581
2689
  };
2582
- var bn = {
2690
+ var mn = {
2583
2691
  pattern: /\\[\\()[\]{}^$+*?|.]/,
2584
2692
  alias: "escape"
2585
- }, 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 = {
2693
+ }, 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 = {
2586
2694
  pattern: /\.|\\[wsd]|\\p\{[^{}]+\}/i,
2587
2695
  alias: "class-name"
2588
- }, xa = {
2696
+ }, Ua = {
2589
2697
  pattern: /\\[wsd]|\\p\{[^{}]+\}/i,
2590
2698
  alias: "class-name"
2591
- }, fn = "(?:[^\\\\-]|" + Ue.source + ")", Oa = RegExp(fn + "-" + fn), gn = {
2699
+ }, hn = "(?:[^\\\\-]|" + He.source + ")", Ba = RegExp(hn + "-" + hn), _n = {
2592
2700
  pattern: /(<|')[^<>']+(?=[>']$)/,
2593
2701
  lookbehind: !0,
2594
2702
  alias: "variable"
@@ -2608,22 +2716,22 @@ _.regex = {
2608
2716
  alias: "operator"
2609
2717
  },
2610
2718
  range: {
2611
- pattern: Oa,
2719
+ pattern: Ba,
2612
2720
  inside: {
2613
- escape: Ue,
2721
+ escape: He,
2614
2722
  "range-punctuation": {
2615
2723
  pattern: /-/,
2616
2724
  alias: "operator"
2617
2725
  }
2618
2726
  }
2619
2727
  },
2620
- "special-escape": bn,
2621
- "char-set": xa,
2622
- escape: Ue
2728
+ "special-escape": mn,
2729
+ "char-set": Ua,
2730
+ escape: He
2623
2731
  }
2624
2732
  },
2625
- "special-escape": bn,
2626
- "char-set": Ta,
2733
+ "special-escape": mn,
2734
+ "char-set": Fa,
2627
2735
  backreference: [
2628
2736
  {
2629
2737
  // a backreference which is not an octal escape
@@ -2634,7 +2742,7 @@ _.regex = {
2634
2742
  pattern: /\\k<[^<>']+>/,
2635
2743
  alias: "keyword",
2636
2744
  inside: {
2637
- "group-name": gn
2745
+ "group-name": _n
2638
2746
  }
2639
2747
  }
2640
2748
  ],
@@ -2642,7 +2750,7 @@ _.regex = {
2642
2750
  pattern: /[$^]|\\[ABbGZz]/,
2643
2751
  alias: "function"
2644
2752
  },
2645
- escape: Ue,
2753
+ escape: He,
2646
2754
  group: [
2647
2755
  {
2648
2756
  // https://docs.oracle.com/javase/10/docs/api/java/util/regex/Pattern.html
@@ -2651,7 +2759,7 @@ _.regex = {
2651
2759
  pattern: /(\()\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[!=]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?)/,
2652
2760
  lookbehind: !0,
2653
2761
  inside: {
2654
- "group-name": gn
2762
+ "group-name": _n
2655
2763
  }
2656
2764
  },
2657
2765
  {
@@ -2668,7 +2776,7 @@ _.regex = {
2668
2776
  alias: "keyword"
2669
2777
  }
2670
2778
  };
2671
- var mn = /\/\*[^]*?\*\/|\/\/.*|#(?!\[).*/, hn = [
2779
+ var En = /\/\*[^]*?\*\/|\/\/.*|#(?!\[).*/, yn = [
2672
2780
  {
2673
2781
  pattern: /\b(?:false|true)\b/i,
2674
2782
  alias: "boolean"
@@ -2685,10 +2793,10 @@ var mn = /\/\*[^]*?\*\/|\/\/.*|#(?!\[).*/, hn = [
2685
2793
  },
2686
2794
  /\b(?:null)\b/i,
2687
2795
  /\b[A-Z_][A-Z\d_]*\b(?!\s*\()/
2688
- ], _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 = {
2796
+ ], 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 = {
2689
2797
  pattern: /\{\$(?:[^{}]|\{(?:[^{}]|\{[^}]+\})*\})*\}|(^|[^\\{])\$+(?:\w+(?:\[[^\n[\]]*\]|->\w+)?)/,
2690
2798
  lookbehind: !0
2691
- }, yn = [
2799
+ }, xn = [
2692
2800
  {
2693
2801
  pattern: /<<<'([^']+)'\n(?:.*\n)*?\1;/g,
2694
2802
  alias: "nowdoc-string",
@@ -2715,7 +2823,7 @@ var mn = /\/\*[^]*?\*\/|\/\/.*|#(?!\[).*/, hn = [
2715
2823
  punctuation: /^<<<"?|[";]$/
2716
2824
  }
2717
2825
  },
2718
- interpolation: At
2826
+ interpolation: Tt
2719
2827
  }
2720
2828
  },
2721
2829
  {
@@ -2733,10 +2841,10 @@ var mn = /\/\*[^]*?\*\/|\/\/.*|#(?!\[).*/, hn = [
2733
2841
  greedy: !0,
2734
2842
  alias: "double-quoted-string",
2735
2843
  inside: {
2736
- interpolation: At
2844
+ interpolation: Tt
2737
2845
  }
2738
2846
  }
2739
- ], vn = At.inside = {
2847
+ ], An = Tt.inside = {
2740
2848
  delimiter: {
2741
2849
  pattern: /\?>$|^<\?(?:php(?=\s)|=)?/i,
2742
2850
  alias: "important"
@@ -2747,8 +2855,8 @@ var mn = /\/\*[^]*?\*\/|\/\/.*|#(?!\[).*/, hn = [
2747
2855
  alias: "comment",
2748
2856
  inside: "phpdoc"
2749
2857
  },
2750
- comment: mn,
2751
- string: yn,
2858
+ comment: En,
2859
+ string: xn,
2752
2860
  attribute: {
2753
2861
  pattern: /#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[^]|[^\\"])*"|'(?:\\[^]|[^\\'])*')+\](?=\s*[a-z$#])/img,
2754
2862
  greedy: !0,
@@ -2758,8 +2866,8 @@ var mn = /\/\*[^]*?\*\/|\/\/.*|#(?!\[).*/, hn = [
2758
2866
  lookbehind: !0,
2759
2867
  // inside can appear subset of php
2760
2868
  inside: {
2761
- comment: mn,
2762
- string: yn,
2869
+ comment: En,
2870
+ string: xn,
2763
2871
  "attribute-class-name": [
2764
2872
  {
2765
2873
  pattern: /([^:]|^)\b[a-z_]\w*(?!\\)\b/gi,
@@ -2777,10 +2885,10 @@ var mn = /\/\*[^]*?\*\/|\/\/.*|#(?!\[).*/, hn = [
2777
2885
  }
2778
2886
  }
2779
2887
  ],
2780
- constant: hn,
2781
- number: _n,
2782
- operator: En,
2783
- punctuation: te
2888
+ constant: yn,
2889
+ number: vn,
2890
+ operator: wn,
2891
+ punctuation: ae
2784
2892
  }
2785
2893
  },
2786
2894
  delimiter: {
@@ -2960,7 +3068,7 @@ var mn = /\/\*[^]*?\*\/|\/\/.*|#(?!\[).*/, hn = [
2960
3068
  }
2961
3069
  }
2962
3070
  ],
2963
- constant: hn,
3071
+ constant: yn,
2964
3072
  function: {
2965
3073
  pattern: /(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,
2966
3074
  lookbehind: !0,
@@ -2972,25 +3080,25 @@ var mn = /\/\*[^]*?\*\/|\/\/.*|#(?!\[).*/, hn = [
2972
3080
  pattern: /(->\s*)\w+/,
2973
3081
  lookbehind: !0
2974
3082
  },
2975
- number: _n,
2976
- operator: En,
2977
- punctuation: te
2978
- }, Na = Dn("html");
3083
+ number: vn,
3084
+ operator: wn,
3085
+ punctuation: ae
3086
+ }, Ga = Hn("html");
2979
3087
  _.php = {
2980
3088
  php: {
2981
3089
  pattern: /<\?(?:[^"'/#]|\/(?![*/])|(["'])(?:\\[^]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^\n?]|\?(?!>))*(?=$|\?>|\n)|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/,
2982
3090
  alias: "language-php",
2983
- inside: vn
3091
+ inside: An
2984
3092
  },
2985
- [J]: (e, t) => e.includes("<?") ? Na(e, t) : Se(e, vn)
3093
+ [ee]: (e, t) => e.includes("<?") ? Ga(e, t) : Ne(e, An)
2986
3094
  };
2987
- var La = [`(?:\\\\.|[^\\\\
3095
+ var za = [`(?:\\\\.|[^\\\\
2988
3096
  ]|
2989
3097
  (?!
2990
- ))`], Me = (e) => O(`((?:^|[^\\\\])(?:\\\\\\\\)*)(?:${e})`, La, "g"), It = /(?:\\.|``(?:[^\n`]|`(?!`))+``|`[^\n`]+`|[^\\\n|`])+/, wn = F(`\\|?<0>(?:\\|<0>)+\\|?(?:
2991
- |(?![\\s\\S]))`, [It.source]), Ca = `\\|?[ ]*:?-{3,}:?[ ]*(?:\\|[ ]*:?-{3,}:?[ ]*)+\\|?
2992
- `, be = _.md = _.markdown = Ye(_.html);
2993
- $(be, "prolog", {
3098
+ ))`], Fe = (e) => O(`((?:^|[^\\\\])(?:\\\\\\\\)*)(?:${e})`, za, "g"), Nt = /(?:\\.|``(?:[^\n`]|`(?!`))+``|`[^\n`]+`|[^\\\n|`])+/, In = U(`\\|?<0>(?:\\|<0>)+\\|?(?:
3099
+ |(?![\\s\\S]))`, [Nt.source]), Ha = `\\|?[ ]*:?-{3,}:?[ ]*(?:\\|[ ]*:?-{3,}:?[ ]*)+\\|?
3100
+ `, me = _.md = _.markdown = et(_.html);
3101
+ $(me, "prolog", {
2994
3102
  "front-matter-block": {
2995
3103
  pattern: /(^(?:\s*\n)?)---(?!.)[^]*?\n---(?!.)/g,
2996
3104
  lookbehind: !0,
@@ -3010,15 +3118,15 @@ $(be, "prolog", {
3010
3118
  alias: "punctuation"
3011
3119
  },
3012
3120
  table: {
3013
- pattern: RegExp("^" + wn + Ca + "(?:" + wn + ")*", "m"),
3121
+ pattern: RegExp("^" + In + Ha + "(?:" + In + ")*", "m"),
3014
3122
  inside: {
3015
3123
  "table-header-row": {
3016
3124
  pattern: /^.+/,
3017
3125
  inside: {
3018
3126
  "table-header": {
3019
- pattern: It,
3127
+ pattern: Nt,
3020
3128
  alias: "important",
3021
- inside: be
3129
+ inside: me
3022
3130
  },
3023
3131
  punctuation: /\|/
3024
3132
  }
@@ -3028,8 +3136,8 @@ $(be, "prolog", {
3028
3136
  lookbehind: !0,
3029
3137
  inside: {
3030
3138
  "table-data": {
3031
- pattern: It,
3032
- inside: be
3139
+ pattern: Nt,
3140
+ inside: me
3033
3141
  },
3034
3142
  punctuation: /\|/
3035
3143
  }
@@ -3059,11 +3167,11 @@ $(be, "prolog", {
3059
3167
  punctuation: /^`+|`+$/,
3060
3168
  "code-language": /^.+/,
3061
3169
  "code-block": /(?!^)[^]+(?=\n)/,
3062
- [J](e, t) {
3063
- var n = ke(e, t), s;
3064
- return n[5] && (s = (/[a-z][\w-]*/i.exec(
3170
+ [ee](e, t) {
3171
+ var n = Oe(e, t), i;
3172
+ return n[5] && (i = (/[a-z][\w-]*/i.exec(
3065
3173
  n[1].content.replace(/\b#/g, "sharp").replace(/\b\+\+/g, "pp")
3066
- ) || [""])[0].toLowerCase(), n[3].alias = "language-" + s, (t = _[s]) && (n[3].content = Se(n[3].content, t))), n;
3174
+ ) || [""])[0].toLowerCase(), n[3].alias = "language-" + i, (t = _[i]) && (n[3].content = Ne(n[3].content, t))), n;
3067
3175
  }
3068
3176
  }
3069
3177
  }
@@ -3129,7 +3237,7 @@ $(be, "prolog", {
3129
3237
  // **strong**
3130
3238
  // __strong__
3131
3239
  // allow one nested instance of italic text using the same delimiter
3132
- pattern: Me("\\b__(?:(?!_)<0>|_(?:(?!_)<0>)+_)+__\\b|\\*\\*(?:(?!\\*)<0>|\\*(?:(?!\\*)<0>)+\\*)+\\*\\*"),
3240
+ pattern: Fe("\\b__(?:(?!_)<0>|_(?:(?!_)<0>)+_)+__\\b|\\*\\*(?:(?!\\*)<0>|\\*(?:(?!\\*)<0>)+\\*)+\\*\\*"),
3133
3241
  lookbehind: !0,
3134
3242
  greedy: !0,
3135
3243
  inside: {
@@ -3146,7 +3254,7 @@ $(be, "prolog", {
3146
3254
  // *em*
3147
3255
  // _em_
3148
3256
  // allow one nested instance of bold text using the same delimiter
3149
- pattern: Me("\\b_(?:(?!_)<0>|__(?:(?!_)<0>)+__)+_\\b|\\*(?:(?!\\*)<0>|\\*\\*(?:(?!\\*)<0>)+\\*\\*)+\\*"),
3257
+ pattern: Fe("\\b_(?:(?!_)<0>|__(?:(?!_)<0>)+__)+_\\b|\\*(?:(?!\\*)<0>|\\*\\*(?:(?!\\*)<0>)+\\*\\*)+\\*"),
3150
3258
  lookbehind: !0,
3151
3259
  greedy: !0,
3152
3260
  inside: {
@@ -3162,7 +3270,7 @@ $(be, "prolog", {
3162
3270
  // ~~strike through~~
3163
3271
  // ~strike~
3164
3272
  // eslint-disable-next-line regexp/strict
3165
- pattern: Me("(~~?)(?:(?!~)<0>)+\\2"),
3273
+ pattern: Fe("(~~?)(?:(?!~)<0>)+\\2"),
3166
3274
  lookbehind: !0,
3167
3275
  greedy: !0,
3168
3276
  inside: {
@@ -3186,7 +3294,7 @@ $(be, "prolog", {
3186
3294
  // [example](http://example.com "Optional title")
3187
3295
  // [example][id]
3188
3296
  // [example] [id]
3189
- pattern: Me('!?\\[(?:(?!\\])<0>)+\\](?:\\([^\\s)]+(?:[ ]+"(?:\\\\.|[^\\\\"])*")?\\)|[ ]?\\[(?:(?!\\])<0>)+\\])'),
3297
+ pattern: Fe('!?\\[(?:(?!\\])<0>)+\\](?:\\([^\\s)]+(?:[ ]+"(?:\\\\.|[^\\\\"])*")?\\)|[ ]?\\[(?:(?!\\])<0>)+\\])'),
3190
3298
  lookbehind: !0,
3191
3299
  greedy: !0,
3192
3300
  inside: {
@@ -3209,78 +3317,78 @@ $(be, "prolog", {
3209
3317
  pattern: /(^[ ]+)"(?:\\.|[^\\"])*"(?=\)$)/,
3210
3318
  lookbehind: !0
3211
3319
  },
3212
- "markup-bracket": be["markup-bracket"]
3320
+ "markup-bracket": me["markup-bracket"]
3213
3321
  }
3214
3322
  }
3215
3323
  });
3216
3324
  ["url", "bold", "italic", "strike"].forEach((e) => {
3217
3325
  ["url", "bold", "italic", "strike", "code-snippet", "markup-bracket"].forEach((t) => {
3218
- e != t && (be[e].inside.content.inside[t] = be[t]);
3326
+ e != t && (me[e].inside.content.inside[t] = me[t]);
3219
3327
  });
3220
3328
  });
3221
- const Ma = (e, t, ...n) => {
3222
- var Y;
3223
- let s, l, u = [], f, E = "", y, v = !1, m = !1, p = !0, c = [], b, g = 0;
3224
- const a = $a(), r = a.firstChild, d = r.children, o = d[0], i = o.firstChild, h = { language: "text", value: E }, S = new Set(n), I = {}, w = (A) => {
3225
- if (Object.assign(h, A), E = A.value ?? E, s = h.language, !_[s]) throw Error(`Language '${s}' has no grammar.`);
3226
- 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, k());
3227
- }, k = () => {
3228
- c = Se(E = i.value, l), z("tokenize", c, s, E);
3229
- let A = kn(c).split(`
3230
- `), R = 0, L = g, Z = g = A.length;
3231
- for (; A[R] == u[R] && R < Z; ) ++R;
3232
- for (; Z && A[--Z] == u[--L]; ) ;
3233
- if (R == Z && R == L) d[R + 1].innerHTML = A[R] + `
3329
+ const Va = (e, t, ...n) => {
3330
+ var X;
3331
+ let i, l, u = [], b, E = "", y, v = !1, m = !1, p = !0, c = [], f, g = 0;
3332
+ 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) => {
3333
+ if (Object.assign(h, x), E = x.value ?? E, i = h.language, !_[i]) throw Error(`Language '${i}' has no grammar.`);
3334
+ 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());
3335
+ }, S = () => {
3336
+ c = Ne(E = s.value, l), H("tokenize", c, i, E);
3337
+ let x = Cn(c).split(`
3338
+ `), I = 0, C = g, q = g = x.length;
3339
+ for (; x[I] == u[I] && I < q; ) ++I;
3340
+ for (; q && x[--q] == u[--C]; ) ;
3341
+ if (I == q && I == C) d[I + 1].innerHTML = x[I] + `
3234
3342
  `;
3235
3343
  else {
3236
- let X = L < R ? L : R - 1, K = X, _e = "";
3237
- for (; K < Z; ) _e += `<div class=pce-line aria-hidden=true>${A[++K]}
3344
+ let Q = C < I ? C : I - 1, W = Q, we = "";
3345
+ for (; W < q; ) we += `<div class=pce-line aria-hidden=true>${x[++W]}
3238
3346
  </div>`;
3239
- for (K = Z < R ? Z : R - 1; K < L; K++) d[R + 1].remove();
3240
- for (_e && d[X + 1].insertAdjacentHTML("afterend", _e), K = X + 1; K < g; ) d[++K].setAttribute("data-line", K);
3347
+ for (W = q < I ? q : I - 1; W < C; W++) d[I + 1].remove();
3348
+ for (we && d[Q + 1].insertAdjacentHTML("afterend", we), W = Q + 1; W < g; ) d[++W].setAttribute("data-line", W);
3241
3349
  a.style.setProperty(
3242
3350
  "--number-width",
3243
3351
  Math.ceil(Math.log10(g + 1)) + ".001ch"
3244
3352
  );
3245
3353
  }
3246
- z("update", E), U(!0), p && setTimeout(setTimeout, 0, () => p = !0), u = A, p = !1;
3247
- }, x = (A) => {
3248
- (A || S).forEach((R) => {
3249
- typeof R == "object" ? (R.update(D, h), A && S.add(R)) : (R(D, h), A || S.delete(R));
3354
+ H("update", E), B(!0), p && setTimeout(setTimeout, 0, () => p = !0), u = x, p = !1;
3355
+ }, N = (x) => {
3356
+ (x || R).forEach((I) => {
3357
+ typeof I == "object" ? (I.update(D, h), x && R.add(I)) : (I(D, h), x || R.delete(I));
3250
3358
  });
3251
- }, T = ([A, R] = N()) => {
3252
- 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" : ""}`;
3253
- }, N = () => [
3254
- i.selectionStart,
3255
- i.selectionEnd,
3256
- i.selectionDirection
3359
+ }, T = ([x, I] = L()) => {
3360
+ 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" : ""}`;
3361
+ }, L = () => [
3362
+ s.selectionStart,
3363
+ s.selectionEnd,
3364
+ s.selectionDirection
3257
3365
  ], P = {
3258
3366
  Escape() {
3259
- i.blur();
3367
+ s.blur();
3260
3368
  }
3261
- }, M = {}, V = () => Be && !m && G(
3369
+ }, M = {}, Z = () => Ve && !m && z(
3262
3370
  D,
3263
3371
  "focus",
3264
- (A) => {
3265
- let R = A.relatedTarget;
3266
- R ? R.focus() : i.blur();
3372
+ (x) => {
3373
+ let I = x.relatedTarget;
3374
+ I ? I.focus() : s.blur();
3267
3375
  },
3268
3376
  { once: !0 }
3269
- ), z = (A, ...R) => {
3270
- var L, Z;
3271
- (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);
3272
- }, U = (A) => {
3273
- if (A || p) {
3274
- const R = N(), L = d[y = Jn(E, 0, R[R[2] < "f" ? 0 : 1])];
3275
- L != f && (f == null || f.classList.remove("active-line"), L.classList.add("active-line"), f = L), T(R), z("selectionChange", R, E);
3377
+ ), H = (x, ...I) => {
3378
+ var C, q;
3379
+ (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);
3380
+ }, B = (x) => {
3381
+ if (x || p) {
3382
+ const I = L(), C = d[y = ia(E, 0, I[I[2] < "f" ? 0 : 1])];
3383
+ C != b && (b == null || b.classList.remove("active-line"), C.classList.add("active-line"), b = C), T(I), H("selectionChange", I, E);
3276
3384
  }
3277
3385
  }, D = {
3278
3386
  scrollContainer: a,
3279
3387
  wrapper: r,
3280
3388
  overlays: o,
3281
- textarea: i,
3389
+ textarea: s,
3282
3390
  get activeLine() {
3283
- return f;
3391
+ return b;
3284
3392
  },
3285
3393
  get activeLineNumber() {
3286
3394
  return y;
@@ -3302,281 +3410,281 @@ const Ma = (e, t, ...n) => {
3302
3410
  keyCommandMap: P,
3303
3411
  extensions: {},
3304
3412
  setOptions: w,
3305
- update: k,
3306
- getSelection: N,
3307
- setSelection(A, R = A, L) {
3308
- V(), i.setSelectionRange(A, R, L), U(!0);
3413
+ update: S,
3414
+ getSelection: L,
3415
+ setSelection(x, I = x, C) {
3416
+ Z(), s.setSelectionRange(x, I, C), B(!0);
3309
3417
  },
3310
- addExtensions(...A) {
3311
- x(A);
3418
+ addExtensions(...x) {
3419
+ N(x);
3312
3420
  },
3313
- addListener(A, R) {
3314
- (I[A] || (I[A] = /* @__PURE__ */ new Set())).add(R);
3421
+ addListener(x, I) {
3422
+ (A[x] || (A[x] = /* @__PURE__ */ new Set())).add(I);
3315
3423
  },
3316
- removeListener(A, R) {
3317
- var L;
3318
- (L = I[A]) == null || L.delete(R);
3424
+ removeListener(x, I) {
3425
+ var C;
3426
+ (C = A[x]) == null || C.delete(I);
3319
3427
  },
3320
3428
  remove() {
3321
3429
  a.remove(), v = !0;
3322
3430
  }
3323
3431
  };
3324
- return G(D, "keydown", (A) => {
3325
- var R;
3326
- (R = P[A.key]) != null && R.call(P, A, N(), E) && B(A);
3327
- }), G(D, "beforeinput", (A) => {
3328
- var R;
3329
- (b || A.inputType == "insertText" && ((R = M[A.data]) != null && R.call(M, A, N(), E))) && B(A);
3330
- }), G(D, "input", k), G(D, "blur", () => {
3331
- Re = null, m = !1, T();
3332
- }), G(D, "focus", () => {
3333
- Re = U, m = !0, T();
3334
- }), G(D, "selectionchange", (A) => {
3335
- U(), B(A);
3336
- }), (Y = Pa(e)) == null || Y.append(a), t && w(t), D;
3337
- }, An = /* @__PURE__ */ document.createElement("div"), Je = (e) => {
3338
- An.innerHTML = e;
3339
- const t = An.firstChild;
3432
+ return z(D, "keydown", (x) => {
3433
+ var I;
3434
+ (I = P[x.key]) != null && I.call(P, x, L(), E) && G(x);
3435
+ }), z(D, "beforeinput", (x) => {
3436
+ var I;
3437
+ (f || x.inputType == "insertText" && ((I = M[x.data]) != null && I.call(M, x, L(), E))) && G(x);
3438
+ }), z(D, "input", S), z(D, "blur", () => {
3439
+ Te = null, m = !1, T();
3440
+ }), z(D, "focus", () => {
3441
+ Te = B, m = !0, T();
3442
+ }), z(D, "selectionchange", (x) => {
3443
+ B(), G(x);
3444
+ }), (X = Za(e)) == null || X.append(a), t && w(t), D;
3445
+ }, Rn = /* @__PURE__ */ document.createElement("div"), at = (e) => {
3446
+ Rn.innerHTML = e;
3447
+ const t = Rn.firstChild;
3340
3448
  return () => t.cloneNode(!0);
3341
- }, 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) => {
3342
- let s = 1;
3449
+ }, 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) => {
3450
+ let i = 1;
3343
3451
  for (; (t = e.indexOf(`
3344
- `, t) + 1) && t <= n; s++) ;
3345
- return s;
3346
- }, ct = {}, $a = /* @__PURE__ */ Je(
3452
+ `, t) + 1) && t <= n; i++) ;
3453
+ return i;
3454
+ }, pt = {}, qa = /* @__PURE__ */ at(
3347
3455
  "<div><div class=pce-wrapper><div class=pce-overlays><textarea spellcheck=false autocapitalize=off autocomplete=off>"
3348
- ), B = (e) => {
3456
+ ), G = (e) => {
3349
3457
  e.preventDefault(), e.stopImmediatePropagation();
3350
3458
  };
3351
- let Re;
3352
- document.addEventListener("selectionchange", () => Re == null ? void 0 : Re());
3353
- const Da = (e, t, n = 0) => {
3354
- const s = e.scrollContainer.style, l = document.documentElement.style;
3355
- s.scrollPaddingBlock = l.scrollPaddingBlock = `${n}px ${Ke && !t.textContent ? t.offsetHeight : 0}px`, t.scrollIntoView({ block: "nearest" }), s.scrollPaddingBlock = l.scrollPaddingBlock = "";
3356
- }, We = (e, t) => t ? e.lastIndexOf(`
3357
- `, t - 1) + 1 : 0, et = (e, t) => (t = e.indexOf(`
3358
- `, t)) + 1 ? t : e.length, Fa = (e, t, n) => (e.addListener(t, n), () => e.removeListener(t, n)), Ua = (e, t) => parseFloat(getComputedStyle(e)[t]);
3359
- let fe;
3360
- const we = (e) => e.replace(/[$+?|.^*()[\]{}\\]/g, "\\$&"), Rt = (e, t) => e.slice(We(e, t), t), ee = (e, t, n = t) => [
3361
- e.slice(t = We(e, t), n = et(e, n)).split(`
3459
+ let Te;
3460
+ document.addEventListener("selectionchange", () => Te == null ? void 0 : Te());
3461
+ const Ka = (e, t, n = 0) => {
3462
+ const i = e.scrollContainer.style, l = document.documentElement.style;
3463
+ i.scrollPaddingBlock = l.scrollPaddingBlock = `${n}px ${Xe && !t.textContent ? t.offsetHeight : 0}px`, t.scrollIntoView({ block: "nearest" }), i.scrollPaddingBlock = l.scrollPaddingBlock = "";
3464
+ }, Qe = (e, t) => t ? e.lastIndexOf(`
3465
+ `, t - 1) + 1 : 0, rt = (e, t) => (t = e.indexOf(`
3466
+ `, t)) + 1 ? t : e.length, Wa = (e, t, n) => (e.addListener(t, n), () => e.removeListener(t, n)), ja = (e, t) => parseFloat(getComputedStyle(e)[t]);
3467
+ let he;
3468
+ const Re = (e) => e.replace(/[$+?|.^*()[\]{}\\]/g, "\\$&"), Ot = (e, t) => e.slice(Qe(e, t), t), te = (e, t, n = t) => [
3469
+ e.slice(t = Qe(e, t), n = rt(e, n)).split(`
3362
3470
  `),
3363
3471
  t,
3364
3472
  n
3365
- ], je = (e, t, n = 0, s = n, l = e.getSelection()[0]) => {
3473
+ ], Je = (e, t, n = 0, i = n, l = e.getSelection()[0]) => {
3366
3474
  var m;
3367
- const u = e.value, f = e.wrapper.children[Jn(u, 0, l)], E = document.createTreeWalker(f, 5);
3368
- let y = E.lastChild(), v = et(u, l) + 1 - l - y.length;
3369
- for (; -v <= s && (y = E.previousNode()); )
3475
+ const u = e.value, b = e.wrapper.children[ia(u, 0, l)], E = document.createTreeWalker(b, 5);
3476
+ let y = E.lastChild(), v = rt(u, l) + 1 - l - y.length;
3477
+ for (; -v <= i && (y = E.previousNode()); )
3370
3478
  if (!y.lastChild && (v -= y.length || 0, v <= n)) {
3371
- for (; y != f; y = y.parentNode)
3479
+ for (; y != b; y = y.parentNode)
3372
3480
  if ((m = y.matches) != null && m.call(y, t)) return y;
3373
3481
  }
3374
- }, dt = (e, t) => {
3482
+ }, ft = (e, t) => {
3375
3483
  var n;
3376
- return ((n = je(e, '[class*="language-"]', 0, 0, t)) == null ? void 0 : n.className.match(
3484
+ return ((n = Je(e, '[class*="language-"]', 0, 0, t)) == null ? void 0 : n.className.match(
3377
3485
  /language-(\S*)/
3378
3486
  )[1]) || e.options.language;
3379
- }, H = (e, t, n, s, l, u) => {
3487
+ }, V = (e, t, n, i, l, u) => {
3380
3488
  if (e.options.readOnly) return;
3381
- fe = e.getSelection(), s ?? (s = n);
3382
- let f = e.textarea, E = e.value, y = Ke && !E[s ?? fe[1]] && /\n$/.test(t) && /^$|\n$/.test(E), v;
3383
- e.focused || f.focus(), n != null && f.setSelectionRange(n, s), l != null && (v = Fa(e, "update", () => {
3384
- f.setSelectionRange(
3489
+ he = e.getSelection(), i ?? (i = n);
3490
+ let b = e.textarea, E = e.value, y = Xe && !E[i ?? he[1]] && /\n$/.test(t) && /^$|\n$/.test(E), v;
3491
+ e.focused || b.focus(), n != null && b.setSelectionRange(n, i), l != null && (v = Wa(e, "update", () => {
3492
+ b.setSelectionRange(
3385
3493
  l,
3386
3494
  u ?? l,
3387
- fe[2]
3495
+ he[2]
3388
3496
  ), v();
3389
- })), Be || f.dispatchEvent(new InputEvent("beforeinput", { data: t })), Ke || Be ? (y && (f.selectionEnd--, t = t.slice(0, -1)), Be && (t += `
3497
+ })), Ve || b.dispatchEvent(new InputEvent("beforeinput", { data: t })), Xe || Ve ? (y && (b.selectionEnd--, t = t.slice(0, -1)), Ve && (t += `
3390
3498
  `), document.execCommand(
3391
3499
  t ? "insertHTML" : "delete",
3392
3500
  !1,
3393
3501
  t.replace(/&/g, "&amp;").replace(/</g, "&lt;")
3394
- ), y && f.selectionStart++) : document.execCommand(t ? "insertText" : "delete", !1, t), fe = 0;
3395
- }, Ie = (e) => e.altKey + e.ctrlKey * 2 + e.metaKey * 4 + e.shiftKey * 8;
3396
- let St = !1;
3397
- const In = navigator.clipboard, oe = qe ? 4 : 2, Ba = (e) => St = e, se = (e) => e.search(/\S|$/), Ga = (e = ['""', "''", "``", "()", "[]", "{}"], t = /([^$\w'"`]["'`]|.[[({])[.,:;\])}>\s]|.[[({]`/s) => (n, s) => {
3502
+ ), y && b.selectionStart++) : document.execCommand(t ? "insertText" : "delete", !1, t), he = 0;
3503
+ }, ke = (e) => e.altKey + e.ctrlKey * 2 + e.metaKey * 4 + e.shiftKey * 8;
3504
+ let Lt = !1;
3505
+ 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) => {
3398
3506
  let l;
3399
- const { keyCommandMap: u, inputCommandMap: f, getSelection: E, scrollContainer: y } = n, v = ({ insertSpaces: a = !0, tabSize: r } = s) => [a ? " " : " ", a ? r || 2 : 1], m = () => {
3507
+ const { keyCommandMap: u, inputCommandMap: b, getSelection: E, scrollContainer: y } = n, v = ({ insertSpaces: a = !0, tabSize: r } = i) => [a ? " " : " ", a ? r || 2 : 1], m = () => {
3400
3508
  var a;
3401
- return !s.readOnly && !((a = n.extensions.cursor) != null && a.scrollIntoView());
3402
- }, 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) => {
3403
- let S = r.join(`
3509
+ return !i.readOnly && !((a = n.extensions.cursor) != null && a.scrollIntoView());
3510
+ }, 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) => {
3511
+ let R = r.join(`
3404
3512
  `);
3405
- if (S != a.join(`
3513
+ if (R != a.join(`
3406
3514
  `)) {
3407
- const I = a.length - 1, w = r[I], k = a[I], x = k.length - w.length, T = r[0].length - a[0].length, N = d + se((T < 0 ? r : a)[0]), P = o - k.length + se(x > 0 ? w : k), M = d - o + S.length + x, V = N > i ? i : Math.max(N, i + T), z = h + d - o + S.length;
3408
- H(
3515
+ 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;
3516
+ V(
3409
3517
  n,
3410
- S,
3518
+ R,
3411
3519
  d,
3412
3520
  o,
3413
- V,
3414
- h < P ? z + x : Math.max(P + M, z)
3521
+ Z,
3522
+ h < P ? H + N : Math.max(P + M, H)
3415
3523
  );
3416
3524
  }
3417
- }, g = (a, r, d, o, i, h, S, I) => {
3418
- b(
3525
+ }, g = (a, r, d, o, s, h, R, A) => {
3526
+ f(
3419
3527
  r,
3420
3528
  r.map(
3421
- a ? (w) => w.slice(se(w) ? I - se(w) % I : 0) : (w) => w && S.repeat(I - se(w) % I) + w
3529
+ a ? (w) => w.slice(le(w) ? A - le(w) % A : 0) : (w) => w && R.repeat(A - le(w) % A) + w
3422
3530
  ),
3423
3531
  d,
3424
3532
  o,
3425
- i,
3533
+ s,
3426
3534
  h
3427
3535
  );
3428
3536
  };
3429
- f["<"] = (a, r, d) => p(r, "<>", d, !0), e.forEach(([a, r]) => {
3537
+ b["<"] = (a, r, d) => p(r, "<>", d, !0), e.forEach(([a, r]) => {
3430
3538
  const d = a == r;
3431
- 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());
3432
- }), f[">"] = (a, r, d) => {
3433
- var i, h;
3434
- const o = (h = (i = ct[dt(n)]) == null ? void 0 : i.autoCloseTags) == null ? void 0 : h.call(i, r, d, n);
3435
- o && (H(n, ">" + o, null, null, r[0] + 1), B(a));
3539
+ 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());
3540
+ }), b[">"] = (a, r, d) => {
3541
+ var s, h;
3542
+ const o = (h = (s = pt[ft(n)]) == null ? void 0 : s.autoCloseTags) == null ? void 0 : h.call(s, r, d, n);
3543
+ o && (V(n, ">" + o, null, null, r[0] + 1), G(a));
3436
3544
  }, u.Tab = (a, [r, d], o) => {
3437
- if (St || s.readOnly || Ie(a) & 6) return;
3438
- const [i, h] = v(s), S = a.shiftKey, [I, w, k] = ee(o, r, d);
3439
- return r < d || S ? g(S, I, w, k, r, d, i, h) : H(n, i.repeat(h - (r - w) % h)), m();
3545
+ if (Lt || i.readOnly || ke(a) & 6) return;
3546
+ const [s, h] = v(i), R = a.shiftKey, [A, w, S] = te(o, r, d);
3547
+ return r < d || R ? g(R, A, w, S, r, d, s, h) : V(n, s.repeat(h - (r - w) % h)), m();
3440
3548
  }, u.Enter = (a, r, d) => {
3441
- var i, h, S;
3442
- const o = Ie(a) & 7;
3443
- if (!o || o == oe) {
3444
- o && (r[0] = r[1] = ee(d, r[1])[2]);
3445
- const [I, w] = v(), [k, x] = r, T = (i = ct[dt(n)]) == null ? void 0 : i.autoIndent, N = Math.floor(se(Rt(d, k)) / w) * w, P = (h = T == null ? void 0 : T[0]) != null && h.call(T, r, d, n) ? w : 0, M = (S = T == null ? void 0 : T[1]) == null ? void 0 : S.call(T, r, d, n), V = `
3446
- ` + I.repeat(N + P) + (M ? `
3447
- ` + I.repeat(N) : "");
3448
- if (V[1] || d[x])
3449
- return H(n, V, k, x, k + N + P + 1), m();
3549
+ var s, h, R;
3550
+ const o = ke(a) & 7;
3551
+ if (!o || o == ce) {
3552
+ o && (r[0] = r[1] = te(d, r[1])[2]);
3553
+ 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 = `
3554
+ ` + A.repeat(L + P) + (M ? `
3555
+ ` + A.repeat(L) : "");
3556
+ if (Z[1] || d[N])
3557
+ return V(n, Z, S, N, S + L + P + 1), m();
3450
3558
  }
3451
3559
  }, u.Backspace = (a, [r, d], o) => {
3452
3560
  if (r == d) {
3453
- const i = Rt(o, r), h = s.tabSize || 2, S = e.includes(o.slice(r - 1, r + 1)), I = /[^ ]/.test(i) ? 0 : (i.length - 1) % h + 1;
3454
- if (S || I > 1)
3455
- return H(n, "", r - (S ? 1 : I), r + S), m();
3561
+ 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;
3562
+ if (R || A > 1)
3563
+ return V(n, "", r - (R ? 1 : A), r + R), m();
3456
3564
  }
3457
3565
  };
3458
3566
  for (let a = 0; a < 2; a++)
3459
- u[a ? "ArrowDown" : "ArrowUp"] = (r, [d, o], i) => {
3460
- const h = Ie(r);
3567
+ u[a ? "ArrowDown" : "ArrowUp"] = (r, [d, o], s) => {
3568
+ const h = ke(r);
3461
3569
  if (h == 1) {
3462
- const S = a ? d : We(i, d) - 1, I = a ? i.indexOf(`
3570
+ const R = a ? d : Qe(s, d) - 1, A = a ? s.indexOf(`
3463
3571
  `, o) + 1 : o;
3464
- if (S > -1 && I > 0) {
3465
- const [w, k, x] = ee(i, S, I), T = w[a ? "pop" : "shift"](), N = (T.length + 1) * (a ? 1 : -1);
3466
- w[a ? "unshift" : "push"](T), H(n, w.join(`
3467
- `), k, x, d + N, o + N);
3572
+ if (R > -1 && A > 0) {
3573
+ const [w, S, N] = te(s, R, A), T = w[a ? "pop" : "shift"](), L = (T.length + 1) * (a ? 1 : -1);
3574
+ w[a ? "unshift" : "push"](T), V(n, w.join(`
3575
+ `), S, N, d + L, o + L);
3468
3576
  }
3469
3577
  return m();
3470
3578
  } else if (h == 9) {
3471
- const [S, I, w] = ee(i, d, o), k = S.join(`
3472
- `), x = a ? k.length + 1 : 0;
3473
- return H(n, k + `
3474
- ` + k, I, w, d + x, o + x), m();
3475
- } else if (h == 2 && !qe)
3476
- return y.scrollBy(0, Ua(y, "lineHeight") * (a ? 1 : -1)), !0;
3579
+ const [R, A, w] = te(s, d, o), S = R.join(`
3580
+ `), N = a ? S.length + 1 : 0;
3581
+ return V(n, S + `
3582
+ ` + S, A, w, d + N, o + N), m();
3583
+ } else if (h == 2 && !Ye)
3584
+ return y.scrollBy(0, ja(y, "lineHeight") * (a ? 1 : -1)), !0;
3477
3585
  };
3478
- G(n, "keydown", (a) => {
3479
- var S;
3480
- const r = Ie(a), d = a.keyCode, [o, i, h] = E();
3481
- if (r == oe && (d == 221 || d == 219))
3482
- g(d == 219, ...ee(n.value, o, i), o, i, ...v()), m(), B(a);
3483
- else if (r == (qe ? 10 : 2) && d == 77)
3484
- Ba(!St), B(a);
3485
- else if (d == 191 && r == oe || d == 65 && r == 9) {
3486
- const I = n.value, w = r == 9, k = w ? o : We(I, o), x = ct[dt(n, k)] || {}, { line: T, block: N } = ((S = x.getComments) == null ? void 0 : S.call(x, n, k, I)) || x.comments || {}, [P, M, V] = ee(I, o, i), z = P.length - 1;
3586
+ z(n, "keydown", (a) => {
3587
+ var R;
3588
+ const r = ke(a), d = a.keyCode, [o, s, h] = E();
3589
+ if (r == ce && (d == 221 || d == 219))
3590
+ g(d == 219, ...te(n.value, o, s), o, s, ...v()), m(), G(a);
3591
+ else if (r == (Ye ? 10 : 2) && d == 77)
3592
+ Ya(!Lt), G(a);
3593
+ else if (d == 191 && r == ce || d == 65 && r == 9) {
3594
+ 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;
3487
3595
  if (w) {
3488
- if (N) {
3489
- 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));
3490
- A + 1 && R ? H(
3596
+ if (L) {
3597
+ 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));
3598
+ x + 1 && I ? V(
3491
3599
  n,
3492
- Y,
3493
- A,
3494
- i + +(I[i] == " ") + D.length,
3495
- A,
3496
- A + i - o
3497
- ) : H(
3600
+ X,
3601
+ x,
3602
+ s + +(A[s] == " ") + D.length,
3603
+ x,
3604
+ x + s - o
3605
+ ) : V(
3498
3606
  n,
3499
- `${U} ${Y} ${D}`,
3607
+ `${B} ${X} ${D}`,
3500
3608
  o,
3501
- i,
3502
- o + U.length + 1,
3503
- i + U.length + 1
3504
- ), m(), B(a);
3609
+ s,
3610
+ o + B.length + 1,
3611
+ s + B.length + 1
3612
+ ), m(), G(a);
3505
3613
  }
3506
3614
  } else if (T) {
3507
- const U = we(T), D = RegExp(`^\\s*(${U} ?|$)`), Y = RegExp(U + " ?"), A = !/\S/.test(I.slice(M, V)), R = P.map(
3508
- P.every((L) => D.test(L)) && !A ? (L) => L.replace(Y, "") : (L) => A || /\S/.test(L) ? L.replace(/^\s*/, `$&${T} `) : L
3615
+ const B = Re(T), D = RegExp(`^\\s*(${B} ?|$)`), X = RegExp(B + " ?"), x = !/\S/.test(A.slice(M, Z)), I = P.map(
3616
+ P.every((C) => D.test(C)) && !x ? (C) => C.replace(X, "") : (C) => x || /\S/.test(C) ? C.replace(/^\s*/, `$&${T} `) : C
3509
3617
  );
3510
- b(P, R, M, V, o, i), m(), B(a);
3511
- } else if (N) {
3512
- const [U, D] = N, Y = se(P[0]), A = P[0].startsWith(U, Y) && P[z].endsWith(D), R = P.slice();
3513
- R[0] = P[0].replace(
3514
- A ? RegExp(we(U) + " ?") : /(?=\S)|$/,
3515
- A ? "" : U + " "
3618
+ f(P, I, M, Z, o, s), m(), G(a);
3619
+ } else if (L) {
3620
+ const [B, D] = L, X = le(P[0]), x = P[0].startsWith(B, X) && P[H].endsWith(D), I = P.slice();
3621
+ I[0] = P[0].replace(
3622
+ x ? RegExp(Re(B) + " ?") : /(?=\S)|$/,
3623
+ x ? "" : B + " "
3516
3624
  );
3517
- let L = R[0].length - P[0].length;
3518
- R[z] = A ? R[z].replace(RegExp(`( ?${we(D)})?$`), "") : R[z] + " " + D;
3519
- let Z = R.join(`
3520
- `), 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);
3521
- H(n, Z, M, V, K, Math.max(K, _e)), m(), B(a);
3625
+ let C = I[0].length - P[0].length;
3626
+ I[H] = x ? I[H].replace(RegExp(`( ?${Re(D)})?$`), "") : I[H] + " " + D;
3627
+ let q = I.join(`
3628
+ `), 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);
3629
+ V(n, q, M, Z, W, Math.max(W, we)), m(), G(a);
3522
3630
  }
3523
- } else if (r == 8 + oe && d == 75) {
3524
- const I = n.value, [w, k, x] = ee(I, o, i), T = h > "f" ? i - x + w.pop().length : o - k, N = et(I, x + 1) - x - 1;
3525
- H(
3631
+ } else if (r == 8 + ce && d == 75) {
3632
+ 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;
3633
+ V(
3526
3634
  n,
3527
3635
  "",
3528
- k - !!k,
3529
- x + !k,
3530
- k + Math.min(T, N)
3531
- ), m(), B(a);
3636
+ S - !!S,
3637
+ N + !S,
3638
+ S + Math.min(T, L)
3639
+ ), m(), G(a);
3532
3640
  }
3533
3641
  }), ["copy", "cut", "paste"].forEach(
3534
- (a) => G(n, a, (r) => {
3642
+ (a) => z(n, a, (r) => {
3535
3643
  const [d, o] = E();
3536
- if (d == o && In) {
3537
- const [[i], h, S] = ee(n.value, d, o);
3538
- a == "paste" ? r.clipboardData.getData("text/plain") == l && (H(n, l + `
3539
- `, h, h, d + l.length + 1), m(), B(r)) : (In.writeText(l = i), a == "cut" && (H(n, "", h, S + 1), m()), B(r));
3644
+ if (d == o && Sn) {
3645
+ const [[s], h, R] = te(n.value, d, o);
3646
+ a == "paste" ? r.clipboardData.getData("text/plain") == l && (V(n, l + `
3647
+ `, h, h, d + l.length + 1), m(), G(r)) : (Sn.writeText(l = s), a == "cut" && (V(n, "", h, R + 1), m()), G(r));
3540
3648
  }
3541
3649
  })
3542
3650
  );
3543
- }, za = (e = 999) => {
3544
- let t = 0, n, s, l = !1, u, f, E, y, v, m;
3651
+ }, Qa = (e = 999) => {
3652
+ let t = 0, n, i, l = !1, u, b, E, y, v, m;
3545
3653
  const p = [], c = (a) => {
3546
3654
  a >= e && (a--, p.shift()), p.splice(t = a, e, [n.value, m(), m()]);
3547
- }, b = (a) => {
3655
+ }, f = (a) => {
3548
3656
  var r;
3549
- 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);
3657
+ 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);
3550
3658
  }, g = (a, r) => {
3551
3659
  a.extensions.history = g, n = a, m = a.getSelection, v || c(0), v = a.textarea, a.addListener("selectionChange", () => {
3552
- s = l, l = !1;
3553
- }), G(a, "beforeinput", (d) => {
3554
- let o = d.data, i = d.inputType, h = d.timeStamp;
3555
- /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;
3556
- }), G(a, "input", () => c(t + !y)), G(a, "keydown", (d) => {
3660
+ i = l, l = !1;
3661
+ }), z(a, "beforeinput", (d) => {
3662
+ let o = d.data, s = d.inputType, h = d.timeStamp;
3663
+ /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;
3664
+ }), z(a, "input", () => c(t + !y)), z(a, "keydown", (d) => {
3557
3665
  if (!r.readOnly) {
3558
- const o = Ie(d), i = d.keyCode, h = o == oe && i == 90, S = o == oe + 8 && i == 90 || !qe && o == oe && i == 89;
3559
- h ? (b(t - 1), B(d)) : S && (b(t + 1), B(d));
3666
+ const o = ke(d), s = d.keyCode, h = o == ce && s == 90, R = o == ce + 8 && s == 90 || !Ye && o == ce && s == 89;
3667
+ h ? (f(t - 1), G(d)) : R && (f(t + 1), G(d));
3560
3668
  }
3561
3669
  });
3562
3670
  };
3563
3671
  return g.clear = () => {
3564
- c(0), s = !1;
3565
- }, g.has = (a) => t + a in p, g.go = (a) => b(t + a), g;
3566
- }, Ha = Je(
3672
+ c(0), i = !1;
3673
+ }, g.has = (a) => t + a in p, g.go = (a) => f(t + a), g;
3674
+ }, Ja = at(
3567
3675
  "<div style=position:absolute;top:0;opacity:0;padding:inherit> <span><span></span> "
3568
- ), Va = () => {
3676
+ ), er = () => {
3569
3677
  let e, t = " ", n = " ";
3570
- const s = Ha(), [l, u] = s.childNodes, [f, E] = u.childNodes, y = (p) => {
3571
- let { value: c, activeLine: b } = e, g = p[p[2] < "f" ? 0 : 1], a = Rt(c, g), r = c.slice(g, et(c, g));
3572
- !a && !r && (r = " "), t != a && (l.data = t = a), n != r && (E.data = n = r), s.parentNode != b && b.prepend(s);
3573
- }, v = () => Da(e, f), m = (p) => {
3574
- p.addListener("selectionChange", y), e = p, p.extensions.cursor = m, G(p, "input", (c) => {
3678
+ const i = Ja(), [l, u] = i.childNodes, [b, E] = u.childNodes, y = (p) => {
3679
+ let { value: c, activeLine: f } = e, g = p[p[2] < "f" ? 0 : 1], a = Ot(c, g), r = c.slice(g, rt(c, g));
3680
+ !a && !r && (r = " "), t != a && (l.data = t = a), n != r && (E.data = n = r), i.parentNode != f && f.prepend(i);
3681
+ }, v = () => Ka(e, b), m = (p) => {
3682
+ p.addListener("selectionChange", y), e = p, p.extensions.cursor = m, z(p, "input", (c) => {
3575
3683
  /history/.test(c.inputType) && v();
3576
3684
  }), p.activeLine && y(p.getSelection());
3577
3685
  };
3578
3686
  return m.getPosition = () => {
3579
- const p = f.getBoundingClientRect(), c = e.overlays.getBoundingClientRect();
3687
+ const p = b.getBoundingClientRect(), c = e.overlays.getBoundingClientRect();
3580
3688
  return {
3581
3689
  top: p.y - c.y,
3582
3690
  bottom: c.bottom - p.bottom,
@@ -3584,143 +3692,143 @@ const In = navigator.clipboard, oe = qe ? 4 : 2, Ba = (e) => St = e, se = (e) =>
3584
3692
  right: c.right - p.x,
3585
3693
  height: p.height
3586
3694
  };
3587
- }, m.scrollIntoView = v, m.element = f, m;
3588
- }, Za = Je(
3695
+ }, m.scrollIntoView = v, m.element = b, m;
3696
+ }, tr = at(
3589
3697
  "<div class=guide-indents style=left:var(--padding-left);bottom:auto;right:auto> "
3590
- ), qa = Je(
3698
+ ), nr = at(
3591
3699
  "<div style=width:1px;position:absolute;background:var(--bg-guide-indent)>"
3592
- ), Ka = () => {
3593
- let e, t = 0, n, s = -1, l;
3594
- const u = [], f = [], E = Za(), y = [], v = (b) => {
3700
+ ), ar = () => {
3701
+ let e, t = 0, n, i = -1, l;
3702
+ const u = [], b = [], E = tr(), y = [], v = (f) => {
3595
3703
  n = [];
3596
- const g = p(b.split(`
3704
+ const g = p(f.split(`
3597
3705
  `)), a = g.length;
3598
3706
  for (let r = 0, d = [], o = g[0]; o; r++) {
3599
- const i = (u[r] || (u[r] = qa())).style, [h, S, I] = o, w = f[r];
3600
- o = g[r + 1], h != (w == null ? void 0 : w[0]) && (i.top = h + "00%"), S != (w == null ? void 0 : w[1]) && (i.height = S + "00%"), I != (w == null ? void 0 : w[2]) && (i.left = I * 100 + "%");
3601
- const k = d[0] != h && (o == null ? void 0 : o[0]) != h, x = d[0] + d[1] != h + S && (o == null ? void 0 : o[0]) + (o == null ? void 0 : o[1]) != h + S;
3602
- for (let T = -k, N = S + x; T < N; T++)
3707
+ const s = (u[r] || (u[r] = nr())).style, [h, R, A] = o, w = b[r];
3708
+ 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 + "%");
3709
+ 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;
3710
+ for (let T = -S, L = R + N; T < L; T++)
3603
3711
  n[T + h] = r;
3604
- d = f[r] = g[r];
3712
+ d = b[r] = g[r];
3605
3713
  }
3606
3714
  for (let r = t; r > a; ) u[--r].remove();
3607
3715
  E.append(...u.slice(t, t = a));
3608
3716
  }, m = () => {
3609
- const b = n[l.activeLineNumber - 1] ?? -1;
3610
- b != s && (s > -1 && (u[s].className = ""), b > -1 && (u[b].className = "active")), s = b;
3611
- }, p = (b) => {
3612
- const g = b.length, a = [], r = [];
3613
- for (let d = 0, o = -1, i = 0, h = 0; ; i++) {
3614
- const S = i == g, I = S ? 0 : y[i] = c(b[i]);
3615
- if (I < 0)
3616
- o < 0 && (o = i);
3717
+ const f = n[l.activeLineNumber - 1] ?? -1;
3718
+ f != i && (i > -1 && (u[i].className = ""), f > -1 && (u[f].className = "active")), i = f;
3719
+ }, p = (f) => {
3720
+ const g = f.length, a = [], r = [];
3721
+ for (let d = 0, o = -1, s = 0, h = 0; ; s++) {
3722
+ const R = s == g, A = R ? 0 : y[s] = c(f[s]);
3723
+ if (A < 0)
3724
+ o < 0 && (o = s);
3617
3725
  else {
3618
- for (let w = I; w < d; w++)
3619
- a[w][1] = (o < 0 || w == I && !S ? i : o) - a[w][0];
3620
- for (let w = d; w < I; )
3726
+ for (let w = A; w < d; w++)
3727
+ a[w][1] = (o < 0 || w == A && !R ? s : o) - a[w][0];
3728
+ for (let w = d; w < A; )
3621
3729
  r[h++] = a[w] = [
3622
- o < 0 || w > d ? i : o,
3730
+ o < 0 || w > d ? s : o,
3623
3731
  0,
3624
3732
  w++ * e
3625
3733
  ];
3626
- o = -1, d = I;
3734
+ o = -1, d = A;
3627
3735
  }
3628
- if (S) break;
3736
+ if (R) break;
3629
3737
  }
3630
3738
  return y.length = g, r;
3631
- }, c = (b) => {
3632
- let g = b.search(/\S/), a = 0;
3739
+ }, c = (f) => {
3740
+ let g = f.search(/\S/), a = 0;
3633
3741
  if (g < 0) return g;
3634
3742
  for (let r = 0; r < g; )
3635
- a += b[r++] == " " ? e - a % e : 1;
3743
+ a += f[r++] == " " ? e - a % e : 1;
3636
3744
  return Math.ceil(a / e);
3637
3745
  };
3638
3746
  return {
3639
3747
  lines: E.children,
3640
3748
  indentLevels: y,
3641
- update(b, g) {
3642
- 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());
3749
+ update(f, g) {
3750
+ 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());
3643
3751
  }
3644
3752
  };
3645
- }, Wa = () => (e) => {
3646
- let t, n, s, l = -1, u = [], f = () => {
3753
+ }, rr = () => (e) => {
3754
+ let t, n, i, l = -1, u = [], b = () => {
3647
3755
  n || (n = e.extensions.matchBrackets);
3648
3756
  let [v, m] = e.getSelection(), p = v == m && e.focused && n && E(m) || -1;
3649
3757
  if (p != l) {
3650
3758
  if (y(), p + 1) {
3651
- let c = t[s[p]], b = t[p];
3652
- u = [c, b].map(
3653
- (g) => je(e, ".punctuation", 0, -1, g[1])
3654
- ), 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);
3759
+ let c = t[i[p]], f = t[p];
3760
+ u = [c, f].map(
3761
+ (g) => Je(e, ".punctuation", 0, -1, g[1])
3762
+ ), 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);
3655
3763
  } else u = [];
3656
3764
  l = p;
3657
3765
  }
3658
3766
  }, E = (v) => {
3659
3767
  var m;
3660
- ({ brackets: t, pairs: s } = n);
3768
+ ({ brackets: t, pairs: i } = n);
3661
3769
  for (let p = 0, c; c = t[++p]; )
3662
- if (!c[4] && c[5] >= v && ((m = t[s[p]]) == null ? void 0 : m[1]) <= v)
3770
+ if (!c[4] && c[5] >= v && ((m = t[i[p]]) == null ? void 0 : m[1]) <= v)
3663
3771
  return p;
3664
3772
  }, y = (v) => u.forEach((m) => m.classList.toggle("active-bracket", !!v));
3665
- G(e, "focus", f), G(e, "blur", f), e.addListener("selectionChange", f), e.addListener("update", () => {
3773
+ z(e, "focus", b), z(e, "blur", b), e.addListener("selectionChange", b), e.addListener("update", () => {
3666
3774
  y(), l = -1;
3667
3775
  });
3668
- }, ja = (e = !0, t = "([{", n = ")]}") => {
3669
- let s, l;
3670
- const u = [], f = (p) => {
3671
- p.extensions.matchBrackets = f, p.addListener("tokenize", v), e && p.tokens[0] ? p.update() : v(p.tokens);
3672
- }, E = f.brackets = [], y = f.pairs = [], v = (p) => {
3673
- if (y.length = E.length = l = s = 0, m(p, 0), e)
3674
- for (let c = 0, b; b = E[c]; ) {
3675
- let g = b[0].alias;
3676
- b[0].alias = (g ? g + " " : "") + `bracket-${c++ in y ? "level-" + b[2] % 12 : "error"}`;
3776
+ }, ir = (e = !0, t = "([{", n = ")]}") => {
3777
+ let i, l;
3778
+ const u = [], b = (p) => {
3779
+ p.extensions.matchBrackets = b, p.addListener("tokenize", v), e && p.tokens[0] ? p.update() : v(p.tokens);
3780
+ }, E = b.brackets = [], y = b.pairs = [], v = (p) => {
3781
+ if (y.length = E.length = l = i = 0, m(p, 0), e)
3782
+ for (let c = 0, f; f = E[c]; ) {
3783
+ let g = f[0].alias;
3784
+ f[0].alias = (g ? g + " " : "") + `bracket-${c++ in y ? "level-" + f[2] % 12 : "error"}`;
3677
3785
  }
3678
3786
  }, m = (p, c) => {
3679
- let b, g = 0;
3680
- for (; b = p[g++]; ) {
3681
- let a = b.length;
3682
- if (typeof b != "string") {
3683
- let r = b.content;
3787
+ let f, g = 0;
3788
+ for (; f = p[g++]; ) {
3789
+ let a = f.length;
3790
+ if (typeof f != "string") {
3791
+ let r = f.content;
3684
3792
  if (Array.isArray(r))
3685
3793
  m(r, c);
3686
- else if ((b.alias || b.type) == "punctuation") {
3687
- let d = Rn(r, t, a - 1), o = d || Rn(r, n, a - 1);
3794
+ else if ((f.alias || f.type) == "punctuation") {
3795
+ let d = kn(r, t, a - 1), o = d || kn(r, n, a - 1);
3688
3796
  if (o) {
3689
- if (E[s] = [b, c, 0, r, !!d, c + a], d) u[l++] = [s, d];
3797
+ if (E[i] = [f, c, 0, r, !!d, c + a], d) u[l++] = [i, d];
3690
3798
  else
3691
- for (let i = l; i; ) {
3692
- let [h, S] = u[--i];
3693
- o == S && (y[y[s] = h] = s, E[s][2] = E[h][2] = l = i, i = 0);
3799
+ for (let s = l; s; ) {
3800
+ let [h, R] = u[--s];
3801
+ o == R && (y[y[i] = h] = i, E[i][2] = E[h][2] = l = s, s = 0);
3694
3802
  }
3695
- s++;
3803
+ i++;
3696
3804
  }
3697
3805
  }
3698
3806
  }
3699
3807
  c += a;
3700
3808
  }
3701
3809
  };
3702
- return f;
3703
- }, 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) => {
3704
- let t = [], n, s = [], l, u, f = [], E = (v, m, p) => {
3705
- n = p, s.length = t.length = l = u = 0, y(v, m, 0);
3810
+ return b;
3811
+ }, 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) => {
3812
+ let t = [], n, i = [], l, u, b = [], E = (v, m, p) => {
3813
+ n = p, i.length = t.length = l = u = 0, y(v, m, 0);
3706
3814
  }, y = (v, m, p) => {
3707
- let c = Ya.includes(m), b = 0, g = v.length;
3708
- for (; b < g; ) {
3709
- const a = v[b++], r = a.content, d = a.length;
3815
+ let c = sr.includes(m), f = 0, g = v.length;
3816
+ for (; f < g; ) {
3817
+ const a = v[f++], r = a.content, d = a.length;
3710
3818
  if (Array.isArray(r))
3711
3819
  if (a.type == "tag" && n[p] == "<") {
3712
- 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));
3820
+ 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));
3713
3821
  if (r[2] && c && y(r, m, p), h)
3714
3822
  if (o > 1)
3715
- for (let S = u; S; )
3716
- i == f[--S][1] && (t[t[l] = f[u = S][0]] = l, S = 0);
3823
+ for (let R = u; R; )
3824
+ s == b[--R][1] && (t[t[l] = b[u = R][0]] = l, R = 0);
3717
3825
  else
3718
- f[u++] = [l, i];
3719
- s[l++] = [
3826
+ b[u++] = [l, s];
3827
+ i[l++] = [
3720
3828
  a,
3721
3829
  p,
3722
3830
  p + d,
3723
- i,
3831
+ s,
3724
3832
  o > 1,
3725
3833
  h
3726
3834
  ];
@@ -3736,25 +3844,25 @@ const In = navigator.clipboard, oe = qe ? 4 : 2, Ba = (e) => St = e, se = (e) =>
3736
3844
  }
3737
3845
  };
3738
3846
  return e.addListener("tokenize", E), E(e.tokens, e.options.language, e.value), {
3739
- tags: s,
3847
+ tags: i,
3740
3848
  pairs: t
3741
3849
  };
3742
- }, Ja = (e, t) => {
3743
- for (let n = 0, s = t.length; n < s; n++) if (t[n][1] <= e && t[n][2] >= e) return n;
3744
- }, er = () => (e) => {
3850
+ }, cr = (e, t) => {
3851
+ for (let n = 0, i = t.length; n < i; n++) if (t[n][1] <= e && t[n][2] >= e) return n;
3852
+ }, dr = () => (e) => {
3745
3853
  var t;
3746
- let n, s;
3747
- const { tags: l, pairs: u } = (t = e.extensions).matchTags || (t.matchTags = Qa(e)), f = (E) => [n, s].forEach((y) => {
3854
+ let n, i;
3855
+ const { tags: l, pairs: u } = (t = e.extensions).matchTags || (t.matchTags = lr(e)), b = (E) => [n, i].forEach((y) => {
3748
3856
  y && y.classList.toggle("active-tagname", !E);
3749
3857
  });
3750
3858
  e.addListener("selectionChange", ([E, y]) => {
3751
3859
  let v, m, p;
3752
- 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());
3860
+ 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());
3753
3861
  });
3754
- }, tr = "_wrap_1x3wi_1", nr = "_blockInfoEditable_1x3wi_30", Sn = {
3755
- wrap: tr,
3756
- blockInfoEditable: nr
3757
- }, Pe = [
3862
+ }, ur = "_wrap_1x3wi_1", pr = "_blockInfoEditable_1x3wi_30", Tn = {
3863
+ wrap: ur,
3864
+ blockInfoEditable: pr
3865
+ }, Ue = [
3758
3866
  { value: "plaintext", label: "plaintext" },
3759
3867
  { value: "javascript", label: "JavaScript" },
3760
3868
  { value: "typescript", label: "TypeScript" },
@@ -3771,12 +3879,12 @@ const In = navigator.clipboard, oe = qe ? 4 : 2, Ba = (e) => St = e, se = (e) =>
3771
3879
  { value: "markdown", label: "Markdown" },
3772
3880
  { value: "bash", label: "Bash" },
3773
3881
  { value: "php", label: "PHP" }
3774
- ], ut = [2, 4, 8];
3775
- function ar(e) {
3776
- const t = oa(), n = $t(null), s = nt(() => ca(ea.name, e == null ? void 0 : e.editor), [e == null ? void 0 : e.editor]), l = $t(null), u = e.node.attrs.code || e.node.textContent || "", f = nt((c) => {
3882
+ ], bt = [2, 4, 8];
3883
+ function fr(e) {
3884
+ 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) => {
3777
3885
  c == null || c.stopPropagation(), setTimeout(() => {
3778
- var b, g, a;
3779
- (a = (g = (b = l.current) == null ? void 0 : b.textarea) == null ? void 0 : g.focus) == null || a.call(g);
3886
+ var f, g, a;
3887
+ (a = (g = (f = l.current) == null ? void 0 : f.textarea) == null ? void 0 : g.focus) == null || a.call(g);
3780
3888
  }, 0);
3781
3889
  }, []), E = async () => {
3782
3890
  if (u)
@@ -3790,28 +3898,28 @@ function ar(e) {
3790
3898
  } catch (c) {
3791
3899
  console.error("Error:", c);
3792
3900
  } finally {
3793
- f();
3901
+ b();
3794
3902
  }
3795
3903
  }, y = () => {
3796
3904
  e.updateAttributes({
3797
3905
  lineNumbers: !e.node.attrs.lineNumbers
3798
- }), f();
3906
+ }), b();
3799
3907
  }, v = () => {
3800
3908
  e.updateAttributes({
3801
3909
  wordWrap: !e.node.attrs.wordWrap
3802
- }), f();
3910
+ }), b();
3803
3911
  }, m = (c) => {
3804
- const b = { ...c };
3805
- return b.language && !Pe.some((g) => g.value === b.language) && (b.language = "plaintext", e.updateAttributes({
3912
+ const f = { ...c };
3913
+ return f.language && !Ue.some((g) => g.value === f.language) && (f.language = "plaintext", e.updateAttributes({
3806
3914
  language: "plaintext"
3807
- })), b;
3808
- }, p = nt((c) => {
3809
- f(c);
3810
- }, [f]);
3811
- return Dt(() => {
3915
+ })), f;
3916
+ }, p = it((c) => {
3917
+ b(c);
3918
+ }, [b]);
3919
+ return Ht(() => {
3812
3920
  if (n.current) {
3813
3921
  const c = m(e.node.attrs);
3814
- l.current = Ma(n.current, {
3922
+ l.current = Va(n.current, {
3815
3923
  readOnly: !t,
3816
3924
  language: c.language || "plaintext",
3817
3925
  tabSize: c.tabSize ?? 2,
@@ -3819,63 +3927,63 @@ function ar(e) {
3819
3927
  wordWrap: c.wordWrap ?? !1,
3820
3928
  value: u,
3821
3929
  rtl: !1,
3822
- onUpdate(b) {
3930
+ onUpdate(f) {
3823
3931
  queueMicrotask(() => {
3824
- e.updateAttributes({ code: b });
3932
+ e.updateAttributes({ code: f });
3825
3933
  });
3826
3934
  }
3827
3935
  }), l.current.addExtensions(
3828
- ja(),
3936
+ ir(),
3937
+ dr(),
3938
+ ar(),
3939
+ rr(),
3829
3940
  er(),
3830
- Ka(),
3831
- Wa(),
3832
- Va(),
3833
- Ga(),
3834
- za()
3941
+ Xa(),
3942
+ Qa()
3835
3943
  ), e.node.attrs.shouldFocus && setTimeout(() => {
3836
- f(), e.updateAttributes({
3944
+ b(), e.updateAttributes({
3837
3945
  shouldFocus: !1
3838
3946
  });
3839
3947
  }, 0);
3840
3948
  }
3841
3949
  return () => {
3842
- var c, b;
3843
- (c = l.current) != null && c.remove && ((b = l.current) == null || b.remove());
3950
+ var c, f;
3951
+ (c = l.current) != null && c.remove && ((f = l.current) == null || f.remove());
3844
3952
  };
3845
- }, [n]), Dt(() => {
3846
- var c, b;
3953
+ }, [n]), Ht(() => {
3954
+ var c, f;
3847
3955
  if ((c = l.current) != null && c.setOptions) {
3848
3956
  const g = m(e.node.attrs);
3849
- (b = l.current) == null || b.setOptions(g);
3957
+ (f = l.current) == null || f.setOptions(g);
3850
3958
  }
3851
- }, [l, e.node.attrs]), /* @__PURE__ */ C(ta, { className: Te(Sn.wrap, "render-wrapper"), children: /* @__PURE__ */ C(
3959
+ }, [l, e.node.attrs]), /* @__PURE__ */ k(oa, { className: Le(Tn.wrap, "render-wrapper"), children: /* @__PURE__ */ k(
3852
3960
  "div",
3853
3961
  {
3854
3962
  onClick: p,
3855
3963
  ref: n,
3856
- className: Te("richtext-node-container richtext-hover-shadow richtext-select-outline richtext-node-code-block !richtext-my-[10px]", {
3857
- [Sn.blockInfoEditable]: !t
3964
+ className: Le("richtext-node-container richtext-hover-shadow richtext-select-outline richtext-node-code-block !richtext-my-[10px]", {
3965
+ [Tn.blockInfoEditable]: !t
3858
3966
  }),
3859
- children: /* @__PURE__ */ tt("div", { className: "richtext-code-block-toolbar", children: [
3860
- /* @__PURE__ */ C("div", { children: /* @__PURE__ */ tt(
3861
- Ft,
3967
+ children: /* @__PURE__ */ _e("div", { className: "richtext-code-block-toolbar", children: [
3968
+ /* @__PURE__ */ k("div", { children: /* @__PURE__ */ _e(
3969
+ Vt,
3862
3970
  {
3863
3971
  defaultValue: e.node.attrs.language,
3864
3972
  disabled: !t,
3865
3973
  onValueChange: (c) => {
3866
3974
  e.updateAttributes({
3867
3975
  language: c
3868
- }), f();
3976
+ }), b();
3869
3977
  },
3870
3978
  children: [
3871
- /* @__PURE__ */ C(Ut, { 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" }) }),
3872
- /* @__PURE__ */ C(
3873
- Bt,
3979
+ /* @__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" }) }),
3980
+ /* @__PURE__ */ k(
3981
+ mt,
3874
3982
  {
3875
3983
  onCloseAutoFocus: (c) => c.preventDefault(),
3876
- children: Pe == null ? void 0 : Pe.map(
3877
- (c) => /* @__PURE__ */ C(
3878
- Gt,
3984
+ children: Ue == null ? void 0 : Ue.map(
3985
+ (c) => /* @__PURE__ */ k(
3986
+ ht,
3879
3987
  {
3880
3988
  value: c.value,
3881
3989
  children: c.label
@@ -3888,14 +3996,14 @@ function ar(e) {
3888
3996
  ]
3889
3997
  }
3890
3998
  ) }),
3891
- /* @__PURE__ */ C("div", { className: "toolbar-divider" }),
3892
- /* @__PURE__ */ C(
3999
+ /* @__PURE__ */ k("div", { className: "toolbar-divider" }),
4000
+ /* @__PURE__ */ k(
3893
4001
  "div",
3894
4002
  {
3895
4003
  className: "richtext-flex richtext-size-7 richtext-cursor-pointer richtext-items-center richtext-justify-center richtext-rounded-sm hover:richtext-bg-[#5a5d5e4f]",
3896
4004
  onClick: E,
3897
- children: /* @__PURE__ */ C(
3898
- Ee,
4005
+ children: /* @__PURE__ */ k(
4006
+ xe,
3899
4007
  {
3900
4008
  className: "richtext-size-4",
3901
4009
  name: "Copy"
@@ -3903,16 +4011,16 @@ function ar(e) {
3903
4011
  )
3904
4012
  }
3905
4013
  ),
3906
- /* @__PURE__ */ C("div", { className: "toolbar-divider" }),
3907
- /* @__PURE__ */ C(
4014
+ /* @__PURE__ */ k("div", { className: "toolbar-divider" }),
4015
+ /* @__PURE__ */ k(
3908
4016
  "div",
3909
4017
  {
3910
4018
  onClick: y,
3911
- className: Te("richtext-flex richtext-size-7 richtext-cursor-pointer richtext-items-center richtext-justify-center richtext-rounded-sm hover:richtext-bg-[#5a5d5e4f]", {
4019
+ className: Le("richtext-flex richtext-size-7 richtext-cursor-pointer richtext-items-center richtext-justify-center richtext-rounded-sm hover:richtext-bg-[#5a5d5e4f]", {
3912
4020
  "richtext-bg-[#5a5d5e4f]": e == null ? void 0 : e.node.attrs.lineNumbers
3913
4021
  }),
3914
- children: /* @__PURE__ */ C(
3915
- Ee,
4022
+ children: /* @__PURE__ */ k(
4023
+ xe,
3916
4024
  {
3917
4025
  className: "richtext-size-4",
3918
4026
  name: "List"
@@ -3920,16 +4028,16 @@ function ar(e) {
3920
4028
  )
3921
4029
  }
3922
4030
  ),
3923
- /* @__PURE__ */ C("div", { className: "toolbar-divider" }),
3924
- /* @__PURE__ */ C(
4031
+ /* @__PURE__ */ k("div", { className: "toolbar-divider" }),
4032
+ /* @__PURE__ */ k(
3925
4033
  "div",
3926
4034
  {
3927
4035
  onClick: v,
3928
- className: Te("richtext-flex richtext-size-7 richtext-cursor-pointer richtext-items-center richtext-justify-center richtext-rounded-sm hover:richtext-bg-[#5a5d5e4f]", {
4036
+ className: Le("richtext-flex richtext-size-7 richtext-cursor-pointer richtext-items-center richtext-justify-center richtext-rounded-sm hover:richtext-bg-[#5a5d5e4f]", {
3929
4037
  "richtext-bg-[#5a5d5e4f]": e == null ? void 0 : e.node.attrs.wordWrap
3930
4038
  }),
3931
- children: /* @__PURE__ */ C(
3932
- Ee,
4039
+ children: /* @__PURE__ */ k(
4040
+ xe,
3933
4041
  {
3934
4042
  className: "richtext-size-4",
3935
4043
  name: "WrapText"
@@ -3937,31 +4045,31 @@ function ar(e) {
3937
4045
  )
3938
4046
  }
3939
4047
  ),
3940
- /* @__PURE__ */ C("div", { className: "toolbar-divider" }),
3941
- /* @__PURE__ */ C("div", { children: /* @__PURE__ */ tt(
3942
- Ft,
4048
+ /* @__PURE__ */ k("div", { className: "toolbar-divider" }),
4049
+ /* @__PURE__ */ k("div", { children: /* @__PURE__ */ _e(
4050
+ Vt,
3943
4051
  {
3944
4052
  defaultValue: e.node.attrs.tabSize,
3945
4053
  disabled: !t,
3946
4054
  onValueChange: (c) => {
3947
4055
  e.updateAttributes({
3948
4056
  tabSize: c
3949
- }), f();
4057
+ }), b();
3950
4058
  },
3951
4059
  children: [
3952
- /* @__PURE__ */ C(Ut, { className: "richtext-h-7 richtext-w-[60px] richtext-border-none richtext-text-sm richtext-outline-none hover:richtext-bg-[#5a5d5e4f]", children: /* @__PURE__ */ C(
3953
- Ee,
4060
+ /* @__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(
4061
+ xe,
3954
4062
  {
3955
4063
  className: "richtext-size-4",
3956
4064
  name: "IndentIncrease"
3957
4065
  }
3958
4066
  ) }),
3959
- /* @__PURE__ */ C(
3960
- Bt,
4067
+ /* @__PURE__ */ k(
4068
+ mt,
3961
4069
  {
3962
4070
  onCloseAutoFocus: (c) => c.preventDefault(),
3963
- children: ut == null ? void 0 : ut.map((c) => /* @__PURE__ */ C(
3964
- Gt,
4071
+ children: bt == null ? void 0 : bt.map((c) => /* @__PURE__ */ k(
4072
+ ht,
3965
4073
  {
3966
4074
  value: c,
3967
4075
  children: c
@@ -3973,14 +4081,14 @@ function ar(e) {
3973
4081
  ]
3974
4082
  }
3975
4083
  ) }),
3976
- /* @__PURE__ */ C("div", { className: "toolbar-divider" }),
3977
- /* @__PURE__ */ C(
4084
+ /* @__PURE__ */ k("div", { className: "toolbar-divider" }),
4085
+ /* @__PURE__ */ k(
3978
4086
  "div",
3979
4087
  {
3980
4088
  className: "richtext-flex richtext-size-7 richtext-cursor-pointer richtext-items-center richtext-justify-center richtext-rounded-sm hover:richtext-bg-[#5a5d5e4f]",
3981
- onClick: s,
3982
- children: /* @__PURE__ */ C(
3983
- Ee,
4089
+ onClick: i,
4090
+ children: /* @__PURE__ */ k(
4091
+ xe,
3984
4092
  {
3985
4093
  className: "richtext-size-4",
3986
4094
  name: "Trash2"
@@ -3992,7 +4100,7 @@ function ar(e) {
3992
4100
  }
3993
4101
  ) });
3994
4102
  }
3995
- const rr = /^`{3}([a-z]+)?\s$/, ir = /^~{3}([a-z]+)?\s$/, ea = /* @__PURE__ */ na.create({
4103
+ const br = /^`{3}([a-z]+)?\s$/, gr = /^~{3}([a-z]+)?\s$/, sa = /* @__PURE__ */ la.create({
3996
4104
  name: "codeBlock",
3997
4105
  group: "block",
3998
4106
  atom: !0,
@@ -4057,16 +4165,16 @@ const rr = /^`{3}([a-z]+)?\s$/, ir = /^~{3}([a-z]+)?\s$/, ea = /* @__PURE__ */ n
4057
4165
  ];
4058
4166
  },
4059
4167
  renderHTML({ HTMLAttributes: e, node: t }) {
4060
- var s;
4061
- const n = t.attrs.code || ((s = t.content.firstChild) == null ? void 0 : s.text) || "";
4168
+ var i;
4169
+ const n = t.attrs.code || ((i = t.content.firstChild) == null ? void 0 : i.text) || "";
4062
4170
  return [
4063
4171
  "pre",
4064
- ra(this.options.HTMLAttributes, e),
4172
+ da(this.options.HTMLAttributes, e),
4065
4173
  ["code", {}, n]
4066
4174
  ];
4067
4175
  },
4068
4176
  addNodeView() {
4069
- return aa(ar);
4177
+ return ca(fr);
4070
4178
  },
4071
4179
  addCommands() {
4072
4180
  return {
@@ -4086,15 +4194,15 @@ const rr = /^`{3}([a-z]+)?\s$/, ir = /^~{3}([a-z]+)?\s$/, ea = /* @__PURE__ */ n
4086
4194
  },
4087
4195
  addInputRules() {
4088
4196
  return [
4089
- Pt({
4090
- find: rr,
4197
+ Gt({
4198
+ find: br,
4091
4199
  type: this.type,
4092
4200
  getAttributes: (e) => ({
4093
4201
  language: e[1]
4094
4202
  })
4095
4203
  }),
4096
- Pt({
4097
- find: ir,
4204
+ Gt({
4205
+ find: gr,
4098
4206
  type: this.type,
4099
4207
  getAttributes: (e) => ({
4100
4208
  language: e[1]
@@ -4104,8 +4212,8 @@ const rr = /^`{3}([a-z]+)?\s$/, ir = /^~{3}([a-z]+)?\s$/, ea = /* @__PURE__ */ n
4104
4212
  }
4105
4213
  });
4106
4214
  export {
4107
- ea as CodeBlock,
4108
- fr as RichTextCodeBlock,
4109
- rr as backtickInputRegex,
4110
- ir as tildeInputRegex
4215
+ sa as CodeBlock,
4216
+ Ir as RichTextCodeBlock,
4217
+ br as backtickInputRegex,
4218
+ gr as tildeInputRegex
4111
4219
  };