reactjs-tiptap-editor 1.0.6 → 1.0.7

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