reactjs-tiptap-editor 1.0.9 → 1.0.10

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