reactjs-tiptap-editor 1.0.2 → 1.0.3

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