reactjs-tiptap-editor 0.3.0 → 0.3.1

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 (218) hide show
  1. package/lib/{ActionMenuButton-Bycn676n.js → ActionMenuButton-BllDdN2-.js} +1 -1
  2. package/lib/{ActionMenuButton-CpFNwSUZ.cjs → ActionMenuButton-tLPdHfCT.cjs} +1 -1
  3. package/lib/Attachment.cjs +1 -1
  4. package/lib/Attachment.d.cts +5 -5
  5. package/lib/Attachment.d.ts +5 -5
  6. package/lib/Attachment.js +1 -1
  7. package/lib/Blockquote.cjs +1 -1
  8. package/lib/Blockquote.d.cts +5 -5
  9. package/lib/Blockquote.d.ts +5 -5
  10. package/lib/Blockquote.js +1 -1
  11. package/lib/Bold.cjs +1 -1
  12. package/lib/Bold.d.cts +5 -5
  13. package/lib/Bold.d.ts +5 -5
  14. package/lib/Bold.js +1 -1
  15. package/lib/BulletList.cjs +1 -1
  16. package/lib/BulletList.d.cts +5 -5
  17. package/lib/BulletList.d.ts +5 -5
  18. package/lib/BulletList.js +1 -1
  19. package/lib/Clear.cjs +1 -1
  20. package/lib/Clear.d.cts +5 -5
  21. package/lib/Clear.d.ts +5 -5
  22. package/lib/Clear.js +1 -1
  23. package/lib/Code.cjs +1 -1
  24. package/lib/Code.d.cts +5 -5
  25. package/lib/Code.d.ts +5 -5
  26. package/lib/Code.js +1 -1
  27. package/lib/CodeBlock.cjs +39 -34
  28. package/lib/CodeBlock.d.cts +5 -5
  29. package/lib/CodeBlock.d.ts +5 -5
  30. package/lib/CodeBlock.js +1345 -795
  31. package/lib/Color.cjs +1 -1
  32. package/lib/Color.d.cts +5 -5
  33. package/lib/Color.d.ts +5 -5
  34. package/lib/Color.js +1 -1
  35. package/lib/Document.d.cts +5 -5
  36. package/lib/Document.d.ts +5 -5
  37. package/lib/{Drawer-rwnFvgZR.cjs → Drawer-BBmEHEAp.cjs} +1 -1
  38. package/lib/{Drawer-BZadE1gM.js → Drawer-hyBIiEP6.js} +1 -1
  39. package/lib/Drawer.cjs +1 -1
  40. package/lib/Drawer.d.cts +5 -5
  41. package/lib/Drawer.d.ts +5 -5
  42. package/lib/Drawer.js +2 -2
  43. package/lib/Emoji.cjs +1 -1
  44. package/lib/Emoji.d.cts +5 -5
  45. package/lib/Emoji.d.ts +5 -5
  46. package/lib/Emoji.js +1 -1
  47. package/lib/{Excalidraw-B2414Smc.js → Excalidraw-BQ2PeAoa.js} +1 -1
  48. package/lib/{Excalidraw-D21vMFe0.cjs → Excalidraw-Cd01zFJl.cjs} +1 -1
  49. package/lib/Excalidraw.cjs +1 -1
  50. package/lib/Excalidraw.d.cts +5 -5
  51. package/lib/Excalidraw.d.ts +5 -5
  52. package/lib/Excalidraw.js +1 -1
  53. package/lib/ExportPdf.cjs +1 -1
  54. package/lib/ExportPdf.d.cts +5 -5
  55. package/lib/ExportPdf.d.ts +5 -5
  56. package/lib/ExportPdf.js +1 -1
  57. package/lib/ExportWord.cjs +1 -1
  58. package/lib/ExportWord.d.cts +5 -5
  59. package/lib/ExportWord.d.ts +5 -5
  60. package/lib/ExportWord.js +1 -1
  61. package/lib/FontFamily.cjs +1 -1
  62. package/lib/FontFamily.d.cts +5 -5
  63. package/lib/FontFamily.d.ts +5 -5
  64. package/lib/FontFamily.js +2 -2
  65. package/lib/FontSize.cjs +1 -1
  66. package/lib/FontSize.d.cts +5 -5
  67. package/lib/FontSize.d.ts +5 -5
  68. package/lib/FontSize.js +2 -2
  69. package/lib/FormatPainter.cjs +1 -1
  70. package/lib/FormatPainter.d.cts +5 -5
  71. package/lib/FormatPainter.d.ts +5 -5
  72. package/lib/FormatPainter.js +1 -1
  73. package/lib/Heading.cjs +1 -1
  74. package/lib/Heading.d.cts +5 -5
  75. package/lib/Heading.d.ts +5 -5
  76. package/lib/Heading.js +2 -2
  77. package/lib/Highlight.cjs +1 -1
  78. package/lib/Highlight.d.cts +5 -5
  79. package/lib/Highlight.d.ts +5 -5
  80. package/lib/Highlight.js +1 -1
  81. package/lib/History.cjs +1 -1
  82. package/lib/History.d.cts +5 -5
  83. package/lib/History.d.ts +5 -5
  84. package/lib/History.js +1 -1
  85. package/lib/HorizontalRule.cjs +1 -1
  86. package/lib/HorizontalRule.d.cts +5 -5
  87. package/lib/HorizontalRule.d.ts +5 -5
  88. package/lib/HorizontalRule.js +1 -1
  89. package/lib/Iframe.cjs +1 -1
  90. package/lib/Iframe.d.cts +5 -5
  91. package/lib/Iframe.d.ts +5 -5
  92. package/lib/Iframe.js +1 -1
  93. package/lib/Image.cjs +1 -1
  94. package/lib/Image.d.cts +5 -5
  95. package/lib/Image.d.ts +5 -5
  96. package/lib/Image.js +1 -1
  97. package/lib/ImageGif.cjs +1 -1
  98. package/lib/ImageGif.d.cts +5 -5
  99. package/lib/ImageGif.d.ts +5 -5
  100. package/lib/ImageGif.js +1 -1
  101. package/lib/ImportWord.cjs +1 -1
  102. package/lib/ImportWord.d.cts +5 -5
  103. package/lib/ImportWord.d.ts +5 -5
  104. package/lib/ImportWord.js +1 -1
  105. package/lib/Indent.cjs +1 -1
  106. package/lib/Indent.d.cts +5 -5
  107. package/lib/Indent.d.ts +5 -5
  108. package/lib/Indent.js +1 -1
  109. package/lib/Italic.cjs +1 -1
  110. package/lib/Italic.d.cts +5 -5
  111. package/lib/Italic.d.ts +5 -5
  112. package/lib/Italic.js +1 -1
  113. package/lib/Katex.cjs +1 -1
  114. package/lib/Katex.d.cts +5 -5
  115. package/lib/Katex.d.ts +5 -5
  116. package/lib/Katex.js +2 -2
  117. package/lib/LineHeight.cjs +1 -1
  118. package/lib/LineHeight.d.cts +5 -5
  119. package/lib/LineHeight.d.ts +5 -5
  120. package/lib/LineHeight.js +1 -1
  121. package/lib/Link.cjs +1 -1
  122. package/lib/Link.d.cts +5 -5
  123. package/lib/Link.d.ts +5 -5
  124. package/lib/Link.js +1 -1
  125. package/lib/ListItem.d.cts +5 -5
  126. package/lib/ListItem.d.ts +5 -5
  127. package/lib/Mention.d.cts +5 -5
  128. package/lib/Mention.d.ts +5 -5
  129. package/lib/Mermaid.cjs +1 -1
  130. package/lib/Mermaid.d.cts +5 -5
  131. package/lib/Mermaid.d.ts +5 -5
  132. package/lib/Mermaid.js +2 -2
  133. package/lib/MoreMark.cjs +1 -1
  134. package/lib/MoreMark.d.cts +5 -5
  135. package/lib/MoreMark.d.ts +5 -5
  136. package/lib/MoreMark.js +1 -1
  137. package/lib/MultiColumn.cjs +1 -1
  138. package/lib/MultiColumn.d.cts +5 -5
  139. package/lib/MultiColumn.d.ts +5 -5
  140. package/lib/MultiColumn.js +1 -1
  141. package/lib/OrderedList.cjs +1 -1
  142. package/lib/OrderedList.d.cts +5 -5
  143. package/lib/OrderedList.d.ts +5 -5
  144. package/lib/OrderedList.js +1 -1
  145. package/lib/RichTextEditor-CM-Xq9RS.cjs +137 -0
  146. package/lib/{RichTextEditor-Cy9XKEI5.js → RichTextEditor-DvrUVNK2.js} +4949 -4710
  147. package/lib/SearchAndReplace.cjs +1 -1
  148. package/lib/SearchAndReplace.d.cts +5 -5
  149. package/lib/SearchAndReplace.d.ts +5 -5
  150. package/lib/SearchAndReplace.js +1 -1
  151. package/lib/Selection.d.cts +5 -5
  152. package/lib/Selection.d.ts +5 -5
  153. package/lib/SlashCommand.cjs +1 -1
  154. package/lib/SlashCommand.d.cts +5 -5
  155. package/lib/SlashCommand.d.ts +5 -5
  156. package/lib/SlashCommand.js +1 -1
  157. package/lib/Strike.cjs +1 -1
  158. package/lib/Strike.d.cts +5 -5
  159. package/lib/Strike.d.ts +5 -5
  160. package/lib/Strike.js +1 -1
  161. package/lib/SubAndSuperScript.cjs +1 -1
  162. package/lib/SubAndSuperScript.d.cts +5 -5
  163. package/lib/SubAndSuperScript.d.ts +5 -5
  164. package/lib/SubAndSuperScript.js +1 -1
  165. package/lib/Table.cjs +1 -1
  166. package/lib/Table.d.cts +5 -5
  167. package/lib/Table.d.ts +5 -5
  168. package/lib/Table.js +1 -1
  169. package/lib/TableOfContent.cjs +1 -1
  170. package/lib/TableOfContent.d.cts +5 -5
  171. package/lib/TableOfContent.d.ts +5 -5
  172. package/lib/TableOfContent.js +1 -1
  173. package/lib/TaskList.cjs +1 -1
  174. package/lib/TaskList.d.cts +5 -5
  175. package/lib/TaskList.d.ts +5 -5
  176. package/lib/TaskList.js +1 -1
  177. package/lib/TextAlign.cjs +1 -1
  178. package/lib/TextAlign.d.cts +5 -5
  179. package/lib/TextAlign.d.ts +5 -5
  180. package/lib/TextAlign.js +1 -1
  181. package/lib/TextBubble.cjs +1 -1
  182. package/lib/TextBubble.d.cts +5 -5
  183. package/lib/TextBubble.d.ts +5 -5
  184. package/lib/TextBubble.js +1 -1
  185. package/lib/TextDirection.cjs +1 -1
  186. package/lib/TextDirection.d.cts +5 -5
  187. package/lib/TextDirection.d.ts +5 -5
  188. package/lib/TextDirection.js +1 -1
  189. package/lib/TextUnderline.cjs +1 -1
  190. package/lib/TextUnderline.d.cts +5 -5
  191. package/lib/TextUnderline.d.ts +5 -5
  192. package/lib/TextUnderline.js +1 -1
  193. package/lib/TrailingNode.d.cts +5 -5
  194. package/lib/TrailingNode.d.ts +5 -5
  195. package/lib/{Twitter-CfDC4bFV.cjs → Twitter-BuMkJKBq.cjs} +1 -1
  196. package/lib/{Twitter-B_tSItrW.js → Twitter-BvdxYuDK.js} +1 -1
  197. package/lib/Twitter.cjs +1 -1
  198. package/lib/Twitter.d.cts +5 -5
  199. package/lib/Twitter.d.ts +5 -5
  200. package/lib/Twitter.js +1 -1
  201. package/lib/Video.cjs +1 -1
  202. package/lib/Video.d.cts +5 -5
  203. package/lib/Video.d.ts +5 -5
  204. package/lib/Video.js +1 -1
  205. package/lib/bubble-extra.cjs +1 -1
  206. package/lib/bubble-extra.d.cts +5 -5
  207. package/lib/bubble-extra.d.ts +5 -5
  208. package/lib/bubble-extra.js +5 -5
  209. package/lib/index.cjs +1 -1
  210. package/lib/index.d.cts +5 -5
  211. package/lib/index.d.ts +5 -5
  212. package/lib/index.js +2 -2
  213. package/lib/locale-bundle.d.cts +5 -5
  214. package/lib/locale-bundle.d.ts +5 -5
  215. package/lib/{textarea-DXTdXr2y.js → textarea-B172kMgC.js} +1 -1
  216. package/lib/{textarea-B45fP3gP.cjs → textarea-CapyElEP.cjs} +1 -1
  217. package/package.json +1 -1
  218. package/lib/RichTextEditor-DkpDEr5U.cjs +0 -137
package/lib/CodeBlock.js CHANGED
@@ -1,118 +1,118 @@
1
- import { N as Wn, t as Dt, m as qn } from "./index-Drmyqk9P.js";
2
- import { N as jn, c as Ne, R as Yn } from "./dom-dataset-CJ7GyQ2E.js";
3
- import { jsxs as me, jsx as T } from "react/jsx-runtime";
4
- import { d as te, A as Xn, _ as Qn, a5 as Jn, k as we } from "./RichTextEditor-Cy9XKEI5.js";
5
- import * as de from "react";
6
- import { useRef as $t, useCallback as ea, useEffect as Ft } from "react";
1
+ import { N as ia, t as Bt, m as sa } from "./index-Drmyqk9P.js";
2
+ import { N as oa, c as Le, R as la } from "./dom-dataset-CJ7GyQ2E.js";
3
+ import { jsxs as _e, jsx as k } from "react/jsx-runtime";
4
+ import { d as ne, A as ca, _ as da, a5 as ua, k as xe } from "./RichTextEditor-DvrUVNK2.js";
5
+ import * as ue from "react";
6
+ import { useRef as Gt, useCallback as pa, useEffect as zt } from "react";
7
7
  import * as F from "@radix-ui/react-select";
8
- import { ChevronDown as En, ChevronUp as ta, Check as na } from "lucide-react";
9
- const Ut = F.Root, aa = F.Value, dt = de.forwardRef(({ className: e, children: t, ...n }, s) => /* @__PURE__ */ me(
8
+ import { ChevronDown as Tn, ChevronUp as fa, Check as ba } from "lucide-react";
9
+ const Ht = F.Root, ga = F.Value, bt = ue.forwardRef(({ className: e, children: t, ...n }, i) => /* @__PURE__ */ _e(
10
10
  F.Trigger,
11
11
  {
12
- ref: s,
13
- className: te(
12
+ ref: i,
13
+ className: ne(
14
14
  "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-2 disabled:richtext-cursor-not-allowed disabled:richtext-opacity-50 [&>span]:richtext-line-clamp-1",
15
15
  e
16
16
  ),
17
17
  ...n,
18
18
  children: [
19
19
  t,
20
- /* @__PURE__ */ T(F.Icon, { asChild: !0, children: /* @__PURE__ */ T(En, { className: "richtext-h-4 richtext-w-4 richtext-opacity-50" }) })
20
+ /* @__PURE__ */ k(F.Icon, { asChild: !0, children: /* @__PURE__ */ k(Tn, { className: "richtext-h-4 richtext-w-4 richtext-opacity-50" }) })
21
21
  ]
22
22
  }
23
23
  ));
24
- dt.displayName = F.Trigger.displayName;
25
- const _n = de.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ T(
24
+ bt.displayName = F.Trigger.displayName;
25
+ const Nn = ue.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ k(
26
26
  F.ScrollUpButton,
27
27
  {
28
28
  ref: n,
29
- className: te(
29
+ className: ne(
30
30
  "richtext-flex richtext-cursor-default richtext-items-center richtext-justify-center richtext-py-1",
31
31
  e
32
32
  ),
33
33
  ...t,
34
- children: /* @__PURE__ */ T(ta, { className: "richtext-h-4 richtext-w-4" })
34
+ children: /* @__PURE__ */ k(fa, { className: "richtext-h-4 richtext-w-4" })
35
35
  }
36
36
  ));
37
- _n.displayName = F.ScrollUpButton.displayName;
38
- const yn = de.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ T(
37
+ Nn.displayName = F.ScrollUpButton.displayName;
38
+ const On = ue.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ k(
39
39
  F.ScrollDownButton,
40
40
  {
41
41
  ref: n,
42
- className: te(
42
+ className: ne(
43
43
  "richtext-flex richtext-cursor-default richtext-items-center richtext-justify-center richtext-py-1",
44
44
  e
45
45
  ),
46
46
  ...t,
47
- children: /* @__PURE__ */ T(En, { className: "richtext-h-4 richtext-w-4" })
47
+ children: /* @__PURE__ */ k(Tn, { className: "richtext-h-4 richtext-w-4" })
48
48
  }
49
49
  ));
50
- yn.displayName = F.ScrollDownButton.displayName;
51
- const ut = de.forwardRef(({ className: e, children: t, position: n = "popper", ...s }, d) => /* @__PURE__ */ T(F.Portal, { children: /* @__PURE__ */ me(
50
+ On.displayName = F.ScrollDownButton.displayName;
51
+ const gt = ue.forwardRef(({ className: e, children: t, position: n = "popper", ...i }, d) => /* @__PURE__ */ k(F.Portal, { children: /* @__PURE__ */ _e(
52
52
  F.Content,
53
53
  {
54
54
  ref: d,
55
- className: te(
55
+ className: ne(
56
56
  "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-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",
57
57
  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",
58
58
  e
59
59
  ),
60
60
  position: n,
61
- ...s,
61
+ ...i,
62
62
  children: [
63
- /* @__PURE__ */ T(_n, {}),
64
- /* @__PURE__ */ T(
63
+ /* @__PURE__ */ k(Nn, {}),
64
+ /* @__PURE__ */ k(
65
65
  F.Viewport,
66
66
  {
67
- className: te(
67
+ className: ne(
68
68
  "richtext-p-1",
69
69
  n === "popper" && "richtext-h-[var(--radix-select-trigger-height)] richtext-w-full richtext-min-w-[var(--radix-select-trigger-width)]"
70
70
  ),
71
71
  children: t
72
72
  }
73
73
  ),
74
- /* @__PURE__ */ T(yn, {})
74
+ /* @__PURE__ */ k(On, {})
75
75
  ]
76
76
  }
77
77
  ) }));
78
- ut.displayName = F.Content.displayName;
79
- const ra = de.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ T(
78
+ gt.displayName = F.Content.displayName;
79
+ const ma = ue.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ k(
80
80
  F.Label,
81
81
  {
82
82
  ref: n,
83
- className: te("richtext-py-1.5 richtext-pl-8 richtext-pr-2 richtext-text-sm richtext-font-semibold", e),
83
+ className: ne("richtext-py-1.5 richtext-pl-8 richtext-pr-2 richtext-text-sm richtext-font-semibold", e),
84
84
  ...t
85
85
  }
86
86
  ));
87
- ra.displayName = F.Label.displayName;
88
- const pt = de.forwardRef(({ className: e, children: t, ...n }, s) => /* @__PURE__ */ me(
87
+ ma.displayName = F.Label.displayName;
88
+ const mt = ue.forwardRef(({ className: e, children: t, ...n }, i) => /* @__PURE__ */ _e(
89
89
  F.Item,
90
90
  {
91
- ref: s,
92
- className: te(
91
+ ref: i,
92
+ className: ne(
93
93
  "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",
94
94
  e
95
95
  ),
96
96
  ...n,
97
97
  children: [
98
- /* @__PURE__ */ T("span", { className: "richtext-absolute richtext-left-2 richtext-flex richtext-h-3.5 richtext-w-3.5 richtext-items-center richtext-justify-center", children: /* @__PURE__ */ T(F.ItemIndicator, { children: /* @__PURE__ */ T(na, { className: "richtext-h-4 richtext-w-4" }) }) }),
99
- /* @__PURE__ */ T(F.ItemText, { children: t })
98
+ /* @__PURE__ */ k("span", { className: "richtext-absolute richtext-left-2 richtext-flex richtext-h-3.5 richtext-w-3.5 richtext-items-center richtext-justify-center", children: /* @__PURE__ */ k(F.ItemIndicator, { children: /* @__PURE__ */ k(ba, { className: "richtext-h-4 richtext-w-4" }) }) }),
99
+ /* @__PURE__ */ k(F.ItemText, { children: t })
100
100
  ]
101
101
  }
102
102
  ));
103
- pt.displayName = F.Item.displayName;
104
- const ia = de.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ T(
103
+ mt.displayName = F.Item.displayName;
104
+ const ha = ue.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ k(
105
105
  F.Separator,
106
106
  {
107
107
  ref: n,
108
- className: te("richtext--mx-1 richtext-my-1 richtext-h-px richtext-bg-muted", e),
108
+ className: ne("richtext--mx-1 richtext-my-1 richtext-h-px richtext-bg-muted", e),
109
109
  ...t
110
110
  }
111
111
  ));
112
- ia.displayName = F.Separator.displayName;
113
- function sa({ action: e, ...t }) {
114
- return /* @__PURE__ */ T(
115
- Xn,
112
+ ha.displayName = F.Separator.displayName;
113
+ function _a({ action: e, ...t }) {
114
+ return /* @__PURE__ */ k(
115
+ ca,
116
116
  {
117
117
  action: e,
118
118
  disabled: t == null ? void 0 : t.disabled,
@@ -121,70 +121,70 @@ function sa({ action: e, ...t }) {
121
121
  }
122
122
  );
123
123
  }
124
- var ke = {}, Y = Symbol(), le = Symbol(), Rt = (e) => typeof e == "string" ? E[e] : e, E = {
125
- plain: ke,
126
- plaintext: ke,
127
- text: ke,
128
- txt: ke
129
- }, St = (e, t) => (t[le] || Ye)(e, t), Ye = (e, t) => {
130
- for (var n = [e], s, d = [], p = 0; s = Rt(t[Y]); )
131
- delete t[Y], Object.assign(t, s);
132
- for (xn(e, t, n, 0); d[p++] = n[0], n = n[1]; ) ;
124
+ var Ce = {}, Y = Symbol(), ee = Symbol(), Lt = (e) => typeof e == "string" ? b[e] : e, b = {
125
+ plain: Ce,
126
+ plaintext: Ce,
127
+ text: Ce,
128
+ txt: Ce
129
+ }, Ne = (e, t) => (t[ee] || Oe)(e, t), Oe = (e, t) => {
130
+ for (var n = [e], i, d = [], p = 0; i = Lt(t[Y]); )
131
+ delete t[Y], Object.assign(t, i);
132
+ for (Mn(e, t, n, 0); d[p++] = n[0], n = n[1]; ) ;
133
133
  return d;
134
- }, Bt = "</span>", Oe = "", xe = "", vn = (e) => {
135
- for (var t = "", n = e.length, s = 0; s < n; ) t += wn(e[s++]);
134
+ }, Vt = "</span>", Me = "", Ae = "", Ln = (e) => {
135
+ for (var t = "", n = e.length, i = 0; i < n; ) t += Cn(e[i++]);
136
136
  return t;
137
- }, wn = (e) => {
138
- if (e instanceof fe) {
139
- var { type: t, alias: n, content: s } = e, d = Oe, p = xe, b = `<span class="token ${t + (n ? " " + n : "") + (t == "keyword" && typeof s == "string" ? " keyword-" + s : "")}">`;
140
- xe += Bt, Oe += b;
141
- var m = wn(s);
142
- return Oe = d, xe = p, b + m + Bt;
137
+ }, Cn = (e) => {
138
+ if (e instanceof be) {
139
+ var { type: t, alias: n, content: i } = e, d = Me, p = Ae, g = `<span class="token ${t + (n ? " " + n : "") + (t == "keyword" && typeof i == "string" ? " keyword-" + i : "")}">`;
140
+ Ae += Vt, Me += g;
141
+ var h = Cn(i);
142
+ return Me = d, Ae = p, g + h + Vt;
143
143
  }
144
- return typeof e != "string" ? vn(e) : (e = e.replace(/&/g, "&amp;").replace(/</g, "&lt;"), xe && e.includes(`
145
- `) ? e.replace(/\n/g, xe + `
146
- ` + Oe) : e);
147
- }, xn = (e, t, n, s, d) => {
144
+ return typeof e != "string" ? Ln(e) : (e = e.replace(/&/g, "&amp;").replace(/</g, "&lt;"), Ae && e.includes(`
145
+ `) ? e.replace(/\n/g, Ae + `
146
+ ` + Me) : e);
147
+ }, Mn = (e, t, n, i, d) => {
148
148
  for (var p in t)
149
- if (t[p]) for (var b = 0, m = t[p], _ = Array.isArray(m) ? m : [m]; b < _.length; ++b) {
150
- if (d && d[0] == p && d[1] == b)
149
+ if (t[p]) for (var g = 0, h = t[p], E = Array.isArray(h) ? h : [h]; g < E.length; ++g) {
150
+ if (d && d[0] == p && d[1] == g)
151
151
  return;
152
- for (var y = _[b], l = y.pattern || y, c = Rt(y.inside), w = y.lookbehind, g = y.greedy && l.global, h = y.alias, a = n, r = s; a && (!d || r < d[2]); r += a[0].length, a = a[1]) {
153
- var u = a[0], o = 0, i, f;
154
- if (!(u instanceof fe)) {
155
- if (l.lastIndex = g ? r : 0, i = l.exec(g ? e : u), i && w && i[1] && (f = i[1].length, i.index += f, i[0] = i[0].slice(f)), g) {
156
- if (!i)
152
+ for (var y = E[g], l = y.pattern || y, c = Lt(y.inside), w = y.lookbehind, m = y.greedy && l.global, _ = y.alias, a = n, r = i; a && (!d || r < d[2]); r += a[0].length, a = a[1]) {
153
+ var u = a[0], o = 0, s, f;
154
+ if (!(u instanceof be)) {
155
+ if (l.lastIndex = m ? r : 0, s = l.exec(m ? e : u), s && w && s[1] && (f = s[1].length, s.index += f, s[0] = s[0].slice(f)), m) {
156
+ if (!s)
157
157
  break;
158
- if (i[0]) {
159
- for (var S = i.index, R = S + i[0].length, A; S >= r + (A = a[0].length); a = a[1], r += A) ;
160
- if (a[0] instanceof fe)
158
+ if (s[0]) {
159
+ for (var S = s.index, R = S + s[0].length, A; S >= r + (A = a[0].length); a = a[1], r += A) ;
160
+ if (a[0] instanceof be)
161
161
  continue;
162
- for (var v = a, m = r; (m += v[0].length) < R; v = v[1], o++) ;
163
- u = e.slice(r, m), i.index -= r;
162
+ for (var v = a, h = r; (h += v[0].length) < R; v = v[1], o++) ;
163
+ u = e.slice(r, h), s.index -= r;
164
164
  }
165
165
  }
166
- if (i && i[0]) {
167
- for (var S = i.index, k = i[0], N = u.slice(S + k.length), L = r + u.length, P = new fe(p, c ? St(k, c) : k, k, h), M = a, Z = 0, H; M = M[1], Z++ < o; ) ;
168
- N && (!M || M[0] instanceof fe ? M = [N, M] : M[0] = N + M[0]), r += S, a[0] = S ? u.slice(0, S) : P, S ? a = a[1] = [P, M] : a[1] = M, o && (xn(e, t, a, r, H = [p, b, L]), L = H[2]), d && L > d[2] && (d[2] = L);
166
+ if (s && s[0]) {
167
+ for (var S = s.index, N = s[0], T = u.slice(S + N.length), L = r + u.length, P = new be(p, c ? Ne(N, c) : N, N, _), M = a, Z = 0, H; M = M[1], Z++ < o; ) ;
168
+ T && (!M || M[0] instanceof be ? M = [T, M] : M[0] = T + M[0]), r += S, a[0] = S ? u.slice(0, S) : P, S ? a = a[1] = [P, M] : a[1] = M, o && (Mn(e, t, a, r, H = [p, g, L]), L = H[2]), d && L > d[2] && (d[2] = L);
169
169
  }
170
170
  }
171
171
  }
172
172
  }
173
173
  };
174
- function fe(e, t, n, s) {
175
- this.type = e, this.content = t, this.alias = s, this.length = n.length;
174
+ function be(e, t, n, i) {
175
+ this.type = e, this.content = t, this.alias = i, this.length = n.length;
176
176
  }
177
- 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", ft = {
177
+ 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", ht = {
178
178
  pattern: /(^(["']?)\w+\2)[ ]+\S.*/,
179
179
  lookbehind: !0,
180
180
  alias: "punctuation"
181
181
  // this looks reasonably well in all themes
182
- }, An = {
182
+ }, Pn = {
183
183
  variable: /^\$\(|^`|\)$|`$/
184
- }, Le = {
185
- bash: ft,
184
+ }, Pe = {
185
+ bash: ht,
186
186
  environment: {
187
- pattern: RegExp("\\$" + Ge),
187
+ pattern: RegExp("\\$" + Ze),
188
188
  alias: "constant"
189
189
  },
190
190
  variable: [
@@ -212,7 +212,7 @@ var Ge = "\\b(?:BASH(?:OPTS|_ALIASES|_ARG[CV]|_CMDS|_COMPLETION_COMPAT_DIR|_LINE
212
212
  {
213
213
  pattern: /\$\((?:[^()]|\([^)]*\))*\)|`[^`]+`/g,
214
214
  greedy: !0,
215
- inside: An
215
+ inside: Pn
216
216
  },
217
217
  // [2]: Brace expansion
218
218
  {
@@ -222,7 +222,7 @@ var Ge = "\\b(?:BASH(?:OPTS|_ALIASES|_ARG[CV]|_CMDS|_COMPLETION_COMPAT_DIR|_LINE
222
222
  operator: /:[?=+-]?|[!/]|##?|%%?|\^\^?|,,?/,
223
223
  punctuation: /[[\]]/,
224
224
  environment: {
225
- pattern: RegExp("(\\{)" + Ge),
225
+ pattern: RegExp("(\\{)" + Ze),
226
226
  lookbehind: !0,
227
227
  alias: "constant"
228
228
  }
@@ -232,7 +232,7 @@ var Ge = "\\b(?:BASH(?:OPTS|_ALIASES|_ARG[CV]|_CMDS|_COMPLETION_COMPAT_DIR|_LINE
232
232
  ],
233
233
  // Escape sequences from echo and printf's manuals, and escaped quotes.
234
234
  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})/
235
- }, oa = ft.inside = E.sh = E.shell = E.bash = {
235
+ }, Ea = ht.inside = b.sh = b.shell = b.bash = {
236
236
  shebang: {
237
237
  pattern: /^#!\s*\/.*/,
238
238
  alias: "important"
@@ -272,7 +272,7 @@ var Ge = "\\b(?:BASH(?:OPTS|_ALIASES|_ARG[CV]|_CMDS|_COMPLETION_COMPAT_DIR|_LINE
272
272
  alias: "variable",
273
273
  inside: {
274
274
  environment: {
275
- pattern: RegExp("(^|[\\s;|&]|[<>]\\()" + Ge),
275
+ pattern: RegExp("(^|[\\s;|&]|[<>]\\()" + Ze),
276
276
  lookbehind: !0,
277
277
  alias: "constant"
278
278
  }
@@ -290,7 +290,7 @@ var Ge = "\\b(?:BASH(?:OPTS|_ALIASES|_ARG[CV]|_CMDS|_COMPLETION_COMPAT_DIR|_LINE
290
290
  pattern: /((?:^|[^<])<<-?\s*)(\w+)\s[^]*?\n\2/g,
291
291
  lookbehind: !0,
292
292
  greedy: !0,
293
- inside: Le
293
+ inside: Pe
294
294
  },
295
295
  // Here-document with quotes around the tag
296
296
  // → No expansion (so no “inside”).
@@ -299,7 +299,7 @@ var Ge = "\\b(?:BASH(?:OPTS|_ALIASES|_ARG[CV]|_CMDS|_COMPLETION_COMPAT_DIR|_LINE
299
299
  lookbehind: !0,
300
300
  greedy: !0,
301
301
  inside: {
302
- bash: ft
302
+ bash: ht
303
303
  }
304
304
  },
305
305
  // “Normal” string
@@ -308,7 +308,7 @@ var Ge = "\\b(?:BASH(?:OPTS|_ALIASES|_ARG[CV]|_CMDS|_COMPLETION_COMPAT_DIR|_LINE
308
308
  pattern: /(^|[^\\](?:\\\\)*)"(?:\\[^]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^\\"`$])*"/g,
309
309
  lookbehind: !0,
310
310
  greedy: !0,
311
- inside: Le
311
+ inside: Pe
312
312
  },
313
313
  {
314
314
  // https://www.gnu.org/software/bash/manual/html_node/Single-Quotes.html
@@ -321,15 +321,15 @@ var Ge = "\\b(?:BASH(?:OPTS|_ALIASES|_ARG[CV]|_CMDS|_COMPLETION_COMPAT_DIR|_LINE
321
321
  pattern: /\$'(?:\\[^]|[^\\'])*'/g,
322
322
  greedy: !0,
323
323
  inside: {
324
- entity: Le.entity
324
+ entity: Pe.entity
325
325
  }
326
326
  }
327
327
  ],
328
328
  environment: {
329
- pattern: RegExp("\\$?" + Ge),
329
+ pattern: RegExp("\\$?" + Ze),
330
330
  alias: "constant"
331
331
  },
332
- variable: Le.variable,
332
+ variable: Pe.variable,
333
333
  function: {
334
334
  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;|&])/,
335
335
  lookbehind: !0
@@ -385,8 +385,8 @@ var Ge = "\\b(?:BASH(?:OPTS|_ALIASES|_ARG[CV]|_CMDS|_COMPLETION_COMPAT_DIR|_LINE
385
385
  "operator",
386
386
  "punctuation",
387
387
  "number"
388
- ].forEach((e) => An[e] = oa[e]);
389
- var In = /(?:"(?:\\[^]|[^\\\n"])*"|'(?:\\[^]|[^\\\n'])*')/g, Ce = In.source, Gt = {
388
+ ].forEach((e) => Pn[e] = Ea[e]);
389
+ var $n = /(?:"(?:\\[^]|[^\\\n"])*"|'(?:\\[^]|[^\\\n'])*')/g, $e = $n.source, Zt = {
390
390
  rule: /^@[\w-]+/,
391
391
  "selector-function-argument": {
392
392
  pattern: /(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^)]*\))*\))+(?=\s*\))/,
@@ -399,32 +399,32 @@ var In = /(?:"(?:\\[^]|[^\\\n"])*"|'(?:\\[^]|[^\\\n'])*')/g, Ce = In.source, Gt
399
399
  }
400
400
  // See rest below
401
401
  };
402
- Gt[Y] = E.css = {
402
+ Zt[Y] = b.css = {
403
403
  comment: /\/\*[^]*?\*\//,
404
404
  atrule: {
405
- pattern: RegExp(`@[\\w-](?:[^;{\\s"']|\\s+(?!\\s)|${Ce})*?(?:;|(?=\\s*\\{))`),
406
- inside: Gt
405
+ pattern: RegExp(`@[\\w-](?:[^;{\\s"']|\\s+(?!\\s)|${$e})*?(?:;|(?=\\s*\\{))`),
406
+ inside: Zt
407
407
  },
408
408
  url: {
409
409
  // https://drafts.csswg.org/css-values-3/#urls
410
- pattern: RegExp(`\\burl\\((?:${Ce}|(?:[^\\\\
410
+ pattern: RegExp(`\\burl\\((?:${$e}|(?:[^\\\\
411
411
  "')=]|\\\\[^])*)\\)`, "gi"),
412
412
  greedy: !0,
413
413
  inside: {
414
414
  function: /^url/i,
415
415
  punctuation: /^\(|\)$/,
416
416
  string: {
417
- pattern: RegExp("^" + Ce + "$"),
417
+ pattern: RegExp("^" + $e + "$"),
418
418
  alias: "url"
419
419
  }
420
420
  }
421
421
  },
422
422
  selector: {
423
- pattern: RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|${Ce})*(?=\\s*\\{)`),
423
+ pattern: RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|${$e})*(?=\\s*\\{)`),
424
424
  lookbehind: !0
425
425
  },
426
426
  string: {
427
- pattern: In,
427
+ pattern: $n,
428
428
  greedy: !0
429
429
  },
430
430
  property: {
@@ -438,34 +438,34 @@ Gt[Y] = E.css = {
438
438
  },
439
439
  punctuation: /[(){},:;]/
440
440
  };
441
- var De = (e, t) => {
441
+ var Be = (e, t) => {
442
442
  if (t.has(e)) return t.get(e);
443
- var n = e, s = la.call(e).slice(8, -1);
444
- if (s == "Object") {
443
+ var n = e, i = ya.call(e).slice(8, -1);
444
+ if (i == "Object") {
445
445
  t.set(e, n = {});
446
446
  for (var d in e)
447
- n[d] = De(e[d], t);
448
- e[Y] && (n[Y] = De(e[Y], t)), e[le] && (n[le] = e[le]);
449
- } else if (s == "Array") {
447
+ n[d] = Be(e[d], t);
448
+ e[Y] && (n[Y] = Be(e[Y], t)), e[ee] && (n[ee] = e[ee]);
449
+ } else if (i == "Array") {
450
450
  t.set(e, n = []);
451
- for (var p = 0, b = e.length; p < b; p++)
452
- n[p] = De(e[p], t);
451
+ for (var p = 0, g = e.length; p < g; p++)
452
+ n[p] = Be(e[p], t);
453
453
  }
454
454
  return n;
455
- }, Tt = (e) => De(e, /* @__PURE__ */ new Map()), ae = (e, t) => Object.assign(Tt(E[e]), t), D = (e, t, n) => {
456
- var s = {};
455
+ }, et = (e) => Be(e, /* @__PURE__ */ new Map()), ie = (e, t) => Object.assign(et(b[e]), t), $ = (e, t, n) => {
456
+ var i = {};
457
457
  for (var d in e)
458
- s[d] = e[d], delete e[d];
459
- for (var d in s)
460
- d == t && Object.assign(e, n), n.hasOwnProperty(d) || (e[d] = s[d]);
461
- }, la = {}.toString, ze = E.css, zt = {
458
+ i[d] = e[d], delete e[d];
459
+ for (var d in i)
460
+ d == t && Object.assign(e, n), n.hasOwnProperty(d) || (e[d] = i[d]);
461
+ }, ya = {}.toString, qe = b.css, qt = {
462
462
  pattern: /(\b\d+)(?:%|[a-z]+(?![\w-]))/,
463
463
  lookbehind: !0
464
- }, Ht = {
464
+ }, Kt = {
465
465
  pattern: /(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,
466
466
  lookbehind: !0
467
467
  };
468
- ze.selector.inside = ze.atrule.inside["selector-function-argument"].inside = {
468
+ qe.selector.inside = qe.atrule.inside["selector-function-argument"].inside = {
469
469
  "pseudo-element": /:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,
470
470
  "pseudo-class": /:[-\w]+/,
471
471
  class: /\.[-\w]+/,
@@ -518,13 +518,13 @@ ze.selector.inside = ze.atrule.inside["selector-function-argument"].inside = {
518
518
  // if you want to add it, please read https://github.com/PrismJS/prism/pull/2373 first.
519
519
  punctuation: /[(),]/
520
520
  };
521
- D(ze, "property", {
521
+ $(qe, "property", {
522
522
  variable: {
523
523
  pattern: /(^|[^-\w\xa0-\uffff])--(?!\d)(?:(?!\s)[-\w\xa0-\uffff])*/i,
524
524
  lookbehind: !0
525
525
  }
526
526
  });
527
- D(ze, "function", {
527
+ $(qe, "function", {
528
528
  operator: {
529
529
  pattern: /(\s)[/*+-](?!\S)/,
530
530
  lookbehind: !0
@@ -544,18 +544,18 @@ D(ze, "function", {
544
544
  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,
545
545
  inside: {
546
546
  function: /^[^(]+/,
547
- unit: zt,
548
- number: Ht,
547
+ unit: qt,
548
+ number: Kt,
549
549
  punctuation: /[(),]/
550
550
  }
551
551
  }
552
552
  ],
553
553
  // it's important that there is no boundary assertion after the hex digits
554
554
  entity: /\\[a-f\d]{1,8}/i,
555
- unit: zt,
556
- number: Ht
555
+ unit: qt,
556
+ number: Kt
557
557
  });
558
- E.ini = {
558
+ b.ini = {
559
559
  /**
560
560
  * The component mimics the behavior of the Win32 API parser.
561
561
  *
@@ -595,13 +595,13 @@ E.ini = {
595
595
  },
596
596
  punctuation: /=/
597
597
  };
598
- var re = () => ({
598
+ var se = () => ({
599
599
  pattern: /\/\/.*|\/\*[^]*?(?:\*\/|$)/g,
600
600
  greedy: !0
601
- }), Nt = () => ({
601
+ }), Ct = () => ({
602
602
  pattern: /(["'])(?:\\[^]|(?!\1)[^\\\n])*\1/g,
603
603
  greedy: !0
604
- }), Rn = /\b0x[a-f\d]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i, Ee = /[()[\]{}.,:;]/, W = /\b(?:false|true)\b/, tt = {
604
+ }), Dn = /\b0x[a-f\d]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i, ae = /[()[\]{}.,:;]/, K = /\b(?:false|true)\b/, it = {
605
605
  "interpolation-punctuation": {
606
606
  pattern: /^\$\{?|\}$/,
607
607
  alias: "punctuation"
@@ -610,7 +610,7 @@ var re = () => ({
610
610
  pattern: /[^]+/
611
611
  }
612
612
  };
613
- tt.expression.inside = E.kts = E.kt = E.kotlin = {
613
+ it.expression.inside = b.kts = b.kt = b.kotlin = {
614
614
  // https://kotlinlang.org/spec/expressions.html#string-interpolation-expressions
615
615
  "string-literal": [
616
616
  {
@@ -619,7 +619,7 @@ tt.expression.inside = E.kts = E.kt = E.kotlin = {
619
619
  inside: {
620
620
  interpolation: {
621
621
  pattern: /\$(?:[a-z_]\w*|\{[^{}]*\})/i,
622
- inside: tt
622
+ inside: it
623
623
  },
624
624
  string: /[^]+/
625
625
  }
@@ -631,7 +631,7 @@ tt.expression.inside = E.kts = E.kt = E.kotlin = {
631
631
  interpolation: {
632
632
  pattern: /((?:^|[^\\])(?:\\\\)*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,
633
633
  lookbehind: !0,
634
- inside: tt
634
+ inside: it
635
635
  },
636
636
  string: /[^]+/
637
637
  }
@@ -642,7 +642,7 @@ tt.expression.inside = E.kts = E.kt = E.kotlin = {
642
642
  pattern: /'(?:[^\\\n']|\\(?:.|u[a-fA-F\d]{0,4}))'/g,
643
643
  greedy: !0
644
644
  },
645
- comment: re(),
645
+ comment: se(),
646
646
  annotation: {
647
647
  pattern: /\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,
648
648
  alias: "builtin"
@@ -652,7 +652,7 @@ tt.expression.inside = E.kts = E.kt = E.kotlin = {
652
652
  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/,
653
653
  lookbehind: !0
654
654
  },
655
- boolean: W,
655
+ boolean: K,
656
656
  label: {
657
657
  pattern: /\b\w+@|@\w+/,
658
658
  alias: "symbol"
@@ -664,15 +664,15 @@ tt.expression.inside = E.kts = E.kt = E.kotlin = {
664
664
  },
665
665
  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/,
666
666
  operator: /--|\+\+|&&|\|\||->|[!=]==|!!|[%!=<>/*+-]=?|[?:]:?|\.\.|\b(?:and|inv|shl|u?shr|x?or)\b/,
667
- punctuation: Ee
667
+ punctuation: ae
668
668
  };
669
- var Sn = [
669
+ var Fn = [
670
670
  {
671
671
  pattern: /&[a-z\d]{1,8};/i,
672
672
  alias: "named-entity"
673
673
  },
674
674
  /&#x?[a-f\d]{1,8};/i
675
- ], ca = {
675
+ ], va = {
676
676
  pattern: /<\/?(?!\d)[^\s/=>$<%]+(?:\s(?:\s*[^\s/=>]+(?:\s*=\s*(?!\s)(?:"[^"]*"|'[^']*'|[^\s"'=>]+(?=[\s>]))?|(?=[\s/>])))+)?\s*\/?>/g,
677
677
  greedy: !0,
678
678
  inside: {
@@ -689,7 +689,7 @@ var Sn = [
689
689
  greedy: !0,
690
690
  inside: {
691
691
  punctuation: /^["']|["']$/,
692
- entity: Sn
692
+ entity: Fn
693
693
  }
694
694
  }],
695
695
  "attr-equals": /=/,
@@ -701,7 +701,7 @@ var Sn = [
701
701
  }
702
702
  }
703
703
  };
704
- E.rss = E.atom = E.ssml = E.xml = {
704
+ b.rss = b.atom = b.ssml = b.xml = {
705
705
  comment: {
706
706
  pattern: /<!--(?:(?!<!--)[^])*?-->/g,
707
707
  greedy: !0
@@ -730,45 +730,45 @@ E.rss = E.atom = E.ssml = E.xml = {
730
730
  pattern: /<!\[CDATA\[[^]*?\]\]>/gi,
731
731
  greedy: !0
732
732
  },
733
- tag: ca,
734
- entity: Sn,
733
+ tag: va,
734
+ entity: Fn,
735
735
  "markup-bracket": {
736
736
  pattern: /[()[\]{}]/,
737
737
  alias: "punctuation"
738
738
  }
739
739
  };
740
- var bt = (e, t) => (e["language-" + t] = {
740
+ var _t = (e, t) => (e["language-" + t] = {
741
741
  pattern: /[^]+/,
742
742
  inside: t
743
- }, e), Vt = (e, t) => ({
743
+ }, e), Wt = (e, t) => ({
744
744
  pattern: RegExp(`(<${e}[^>]*>)(?!</${e}>)(?:<!\\[CDATA\\[(?:[^\\]]|\\](?!\\]>))*\\]\\]>|(?!<!\\[CDATA\\[)[^])+?(?=</${e}>)`, "gi"),
745
745
  lookbehind: !0,
746
746
  greedy: !0,
747
- inside: bt({
747
+ inside: _t({
748
748
  "included-cdata": {
749
749
  pattern: /<!\[CDATA\[[^]*?\]\]>/i,
750
- inside: bt({
750
+ inside: _t({
751
751
  cdata: /^<!\[CDATA\[|\]\]>$/i
752
752
  }, t)
753
753
  }
754
754
  }, t)
755
- }), Zt = (e, t) => ({
755
+ }), jt = (e, t) => ({
756
756
  pattern: RegExp(`((?:^|["'\\s])(?:${e})\\s*=\\s*)(?:"[^"]*"|'[^']*'|[^\\s"'=>]+)`, "gi"),
757
757
  lookbehind: !0,
758
758
  greedy: !0,
759
- inside: bt({
759
+ inside: _t({
760
760
  punctuation: /^["']|["']$/
761
761
  }, t)
762
- }), Tn = E.svg = E.mathml = E.html = E.markup = Tt(E.xml);
763
- Tn.tag.inside["attr-value"].unshift(
764
- Zt("style", "css"),
765
- Zt("on[a-z]+", "javascript")
762
+ }), Un = b.svg = b.mathml = b.html = b.markup = et(b.xml);
763
+ Un.tag.inside["attr-value"].unshift(
764
+ jt("style", "css"),
765
+ jt("on[a-z]+", "javascript")
766
766
  );
767
- D(Tn, "cdata", {
768
- style: Vt("style", "css"),
769
- script: Vt("script", "javascript")
767
+ $(Un, "cdata", {
768
+ style: Wt("style", "css"),
769
+ script: Wt("script", "javascript")
770
770
  });
771
- E.r = {
771
+ b.r = {
772
772
  comment: /#.*/,
773
773
  string: {
774
774
  pattern: /(["'])(?:\\.|(?!\1)[^\\\n])*\1/g,
@@ -790,7 +790,7 @@ E.r = {
790
790
  operator: /->>?|<=|<<?-|[!=<>]=?|::?|&&?|\|\|?|[~^$@/*+-]/,
791
791
  punctuation: /[()[\]{},;]/
792
792
  };
793
- E.basic = {
793
+ b.basic = {
794
794
  comment: {
795
795
  pattern: /(?:!|rem\b).+/i,
796
796
  inside: {
@@ -807,7 +807,7 @@ E.basic = {
807
807
  operator: /<=|<>|>=|[&^=<>/*+-]|\b(?:and|eqv|imp|not|x?or)\b/i,
808
808
  punctuation: /[(),:;]/
809
809
  };
810
- E.vbnet = ae("basic", {
810
+ b.vbnet = ie("basic", {
811
811
  comment: {
812
812
  pattern: /(?:!|'|rem\b).*/i,
813
813
  inside: {
@@ -822,23 +822,23 @@ E.vbnet = ae("basic", {
822
822
  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,
823
823
  punctuation: /[(){},:;]/
824
824
  });
825
- var Kt = {
825
+ var Yt = {
826
826
  // https://en.cppreference.com/w/c/language/character_constant
827
827
  pattern: /'(?:\\[^]|[^\\\n']){0,32}'/g,
828
828
  greedy: !0
829
- }, Wt = {
829
+ }, Xt = {
830
830
  pattern: /\/\/(?:[^\\\n]|\\\n?)*|\/\*[^]*?(?:\*\/|$)/g,
831
831
  greedy: !0
832
- }, qt = {
832
+ }, Qt = {
833
833
  // https://en.cppreference.com/w/c/language/string_literal
834
834
  pattern: /"(?:\\[^]|[^\\\n"])*"/g,
835
835
  greedy: !0
836
- }, jt = {
836
+ }, Jt = {
837
837
  pattern: /\S[^]*/
838
838
  };
839
- jt.inside = E.c = {
840
- comment: Wt,
841
- char: Kt,
839
+ Jt.inside = b.c = {
840
+ comment: Xt,
841
+ char: Yt,
842
842
  macro: {
843
843
  // allow for multiline macro definitions
844
844
  // spaces after the # character compile fine with gcc
@@ -853,10 +853,10 @@ jt.inside = E.c = {
853
853
  pattern: /^(#\s*include\s*)<[^>]+>/,
854
854
  lookbehind: !0
855
855
  },
856
- qt
856
+ Qt
857
857
  ],
858
- char: Kt,
859
- comment: Wt,
858
+ char: Yt,
859
+ comment: Xt,
860
860
  "macro-name": [
861
861
  {
862
862
  pattern: /(^#\s*define\s+)\w+\b(?!\()/i,
@@ -876,10 +876,10 @@ jt.inside = E.c = {
876
876
  },
877
877
  "directive-hash": /^#/,
878
878
  punctuation: /##|\\(?=\n)/,
879
- expression: jt
879
+ expression: Jt
880
880
  }
881
881
  },
882
- string: qt,
882
+ string: Qt,
883
883
  "class-name": {
884
884
  pattern: /(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([^]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,
885
885
  lookbehind: !0
@@ -890,17 +890,17 @@ jt.inside = E.c = {
890
890
  function: /\b[a-z_]\w*(?=\s*\()/i,
891
891
  number: /(?:\b0x(?:[a-f\d]+(?:\.[a-f\d]*)?|\.[a-f\d]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,
892
892
  operator: /->|([&|:+-])\1|[?:~]|>>=?|<<=?|[%&|^!=<>/*+-]=?/,
893
- punctuation: Ee
893
+ punctuation: ae
894
894
  };
895
- D(
896
- E.opencl = ae("c", {
895
+ $(
896
+ b.opencl = ie("c", {
897
897
  // 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)
898
898
  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/,
899
899
  // Extracted from http://streamcomputing.eu/downloads/?opencl.lang (opencl-const)
900
900
  // Math Constants: https://www.khronos.org/registry/OpenCL/sdk/2.1/docs/man/xhtml/mathConstants.html
901
901
  // Macros and Limits: https://www.khronos.org/registry/OpenCL/sdk/2.1/docs/man/xhtml/macroLimits.html
902
902
  number: /(?:\b0x(?:[a-f\d]+(?:\.[a-f\d]*)?|\.[a-f\d]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[fuhl]{0,4}/i,
903
- boolean: W,
903
+ boolean: K,
904
904
  "constant-opencl-kernel": {
905
905
  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/,
906
906
  alias: "constant"
@@ -916,7 +916,7 @@ D(
916
916
  }
917
917
  }
918
918
  );
919
- var gt = {
919
+ var Et = {
920
920
  // Extracted from http://streamcomputing.eu/downloads/?opencl_host.lang (opencl-types and opencl-host)
921
921
  "type-opencl-host": {
922
922
  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/,
@@ -937,18 +937,18 @@ var gt = {
937
937
  alias: "function"
938
938
  }
939
939
  };
940
- D(E.c, "keyword", gt);
941
- E.cpp && (gt["type-opencl-host-cpp"] = {
940
+ $(b.c, "keyword", Et);
941
+ b.cpp && (Et["type-opencl-host-cpp"] = {
942
942
  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/,
943
943
  alias: "keyword"
944
- }, D(E.cpp, "keyword", gt));
945
- var da = E.diff = {
944
+ }, $(b.cpp, "keyword", Et));
945
+ var wa = b.diff = {
946
946
  // Match all kinds of coord lines (prefixed by "+++", "---" or "***").
947
947
  // Match "@@ ... @@" coord lines in unified diff.
948
948
  // Match coord lines in normal diff (starts with a number).
949
949
  coord: /^(?:\*{3}|-{3}|\+{3}|\d).*$|^@@.*@@$/m
950
950
  // deleted, inserted, unchanged, diff
951
- }, nt = {
951
+ }, st = {
952
952
  "deleted-sign": "-",
953
953
  "deleted-arrow": "<",
954
954
  "inserted-sign": "+",
@@ -956,42 +956,42 @@ var da = E.diff = {
956
956
  unchanged: " ",
957
957
  diff: "!"
958
958
  };
959
- for (var ue in nt) {
960
- var at = ue.split("-")[0];
961
- da[ue] = {
962
- pattern: RegExp("^(?:[" + nt[ue] + `].*$
959
+ for (var pe in st) {
960
+ var ot = pe.split("-")[0];
961
+ wa[pe] = {
962
+ pattern: RegExp("^(?:[" + st[pe] + `].*$
963
963
  ?)+`, "m"),
964
- alias: at != ue ? at : ue == "diff" ? "bold" : void 0,
964
+ alias: ot != pe ? ot : pe == "diff" ? "bold" : void 0,
965
965
  inside: {
966
966
  prefix: {
967
- pattern: RegExp("^[" + nt[ue] + "]", "mg"),
967
+ pattern: RegExp("^[" + st[pe] + "]", "mg"),
968
968
  greedy: !0,
969
- alias: at
969
+ alias: ot
970
970
  }
971
971
  }
972
972
  };
973
973
  }
974
- var rt = /\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/, Re = "(?:[a-z]\\w*\\s*\\.\\s*)*(?:[A-Z]\\w*\\s*\\.\\s*)*", mt = {
974
+ var lt = /\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*)*", yt = {
975
975
  pattern: /^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,
976
976
  inside: {
977
977
  punctuation: /\./
978
978
  }
979
- }, ht = {
980
- namespace: mt,
979
+ }, vt = {
980
+ namespace: yt,
981
981
  punctuation: /\./
982
- }, Yt = {
983
- pattern: RegExp(`(^|[^\\w.])${Re}[A-Z](?:[\\d_A-Z]*[a-z]\\w*)?\\b`),
982
+ }, en = {
983
+ pattern: RegExp(`(^|[^\\w.])${Se}[A-Z](?:[\\d_A-Z]*[a-z]\\w*)?\\b`),
984
984
  lookbehind: !0,
985
- inside: ht
985
+ inside: vt
986
986
  };
987
- E.java = {
987
+ b.java = {
988
988
  "doc-comment": {
989
989
  pattern: /\/\*\*(?!\/)[^]*?(?:\*\/|$)/g,
990
990
  greedy: !0,
991
991
  alias: "comment",
992
992
  inside: "javadoc"
993
993
  },
994
- comment: re(),
994
+ comment: se(),
995
995
  "triple-quoted-string": {
996
996
  // http://openjdk.java.net/jeps/355#Description
997
997
  pattern: /"""[ ]*\n(?:\\.|[^\\])*?"""/g,
@@ -1015,29 +1015,29 @@ E.java = {
1015
1015
  generics: {
1016
1016
  pattern: /<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,
1017
1017
  inside: {
1018
- "class-name": Yt,
1019
- keyword: rt,
1018
+ "class-name": en,
1019
+ keyword: lt,
1020
1020
  punctuation: /[().,:<>]/,
1021
1021
  operator: /[?&|]/
1022
1022
  }
1023
1023
  },
1024
1024
  import: [
1025
1025
  {
1026
- pattern: RegExp(`(\\bimport\\s+)${Re}(?:[A-Z]\\w*|\\*)(?=\\s*;)`),
1026
+ pattern: RegExp(`(\\bimport\\s+)${Se}(?:[A-Z]\\w*|\\*)(?=\\s*;)`),
1027
1027
  lookbehind: !0,
1028
1028
  inside: {
1029
- namespace: mt,
1029
+ namespace: yt,
1030
1030
  punctuation: /\./,
1031
1031
  operator: /\*/,
1032
1032
  "class-name": /\w+/
1033
1033
  }
1034
1034
  },
1035
1035
  {
1036
- pattern: RegExp(`(\\bimport\\s+static\\s+)${Re}(?:\\w+|\\*)(?=\\s*;)`),
1036
+ pattern: RegExp(`(\\bimport\\s+static\\s+)${Se}(?:\\w+|\\*)(?=\\s*;)`),
1037
1037
  lookbehind: !0,
1038
1038
  alias: "static",
1039
1039
  inside: {
1040
- namespace: mt,
1040
+ namespace: yt,
1041
1041
  static: /\b\w+$/,
1042
1042
  punctuation: /\./,
1043
1043
  operator: /\*/,
@@ -1047,7 +1047,7 @@ E.java = {
1047
1047
  ],
1048
1048
  namespace: {
1049
1049
  pattern: RegExp(
1050
- `(\\b(?:exports|import(?:\\s+static)?|module|opens?|package|provides|requires|to|transitive|uses|with)\\s+)(?!${rt.source})[a-z]\\w*(?:\\.[a-z]\\w*)*\\.?`
1050
+ `(\\b(?:exports|import(?:\\s+static)?|module|opens?|package|provides|requires|to|transitive|uses|with)\\s+)(?!${lt.source})[a-z]\\w*(?:\\.[a-z]\\w*)*\\.?`
1051
1051
  ),
1052
1052
  lookbehind: !0,
1053
1053
  inside: {
@@ -1055,24 +1055,24 @@ E.java = {
1055
1055
  }
1056
1056
  },
1057
1057
  "class-name": [
1058
- Yt,
1058
+ en,
1059
1059
  {
1060
1060
  // variables, parameters, and constructor references
1061
1061
  // this to support class names (or generic parameters) which do not contain a lower case letter (also works for methods)
1062
- pattern: RegExp(`(^|[^\\w.])${Re}[A-Z]\\w*(?=\\s+\\w+\\s*[;,=()]|\\s*(?:\\[[\\s,]*\\]\\s*)?::\\s*new\\b)`),
1062
+ pattern: RegExp(`(^|[^\\w.])${Se}[A-Z]\\w*(?=\\s+\\w+\\s*[;,=()]|\\s*(?:\\[[\\s,]*\\]\\s*)?::\\s*new\\b)`),
1063
1063
  lookbehind: !0,
1064
- inside: ht
1064
+ inside: vt
1065
1065
  },
1066
1066
  {
1067
1067
  // class names based on keyword
1068
1068
  // this to support class names (or generic parameters) which do not contain a lower case letter (also works for methods)
1069
- pattern: RegExp(`(\\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\\s+)${Re}[A-Z]\\w*\\b`),
1069
+ pattern: RegExp(`(\\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\\s+)${Se}[A-Z]\\w*\\b`),
1070
1070
  lookbehind: !0,
1071
- inside: ht
1071
+ inside: vt
1072
1072
  }
1073
1073
  ],
1074
- keyword: rt,
1075
- boolean: W,
1074
+ keyword: lt,
1075
+ boolean: K,
1076
1076
  function: {
1077
1077
  pattern: /\b\w+(?=\()|(::\s*)[a-z_]\w*/,
1078
1078
  lookbehind: !0
@@ -1083,11 +1083,11 @@ E.java = {
1083
1083
  pattern: /(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[%&|^!=<>/*+-]=?)/m,
1084
1084
  lookbehind: !0
1085
1085
  },
1086
- punctuation: Ee
1086
+ punctuation: ae
1087
1087
  };
1088
- D(
1089
- E.less = ae("css", {
1090
- comment: re(),
1088
+ $(
1089
+ b.less = ie("css", {
1090
+ comment: se(),
1091
1091
  atrule: {
1092
1092
  pattern: /@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,
1093
1093
  inside: {
@@ -1125,7 +1125,7 @@ D(
1125
1125
  }
1126
1126
  }
1127
1127
  );
1128
- E.objc = E.objectivec = ae("c", {
1128
+ b.objc = b.objectivec = ie("c", {
1129
1129
  string: {
1130
1130
  pattern: /@?"(?:\\[^]|[^\\\n"])*"/g,
1131
1131
  greedy: !0
@@ -1133,33 +1133,33 @@ E.objc = E.objectivec = ae("c", {
1133
1133
  keyword: /\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int?|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,
1134
1134
  operator: /-[->]?|\+\+?|!=?|==?|>>?=?|<<?=?|&&?|\|\|?|[~^@%?/*]/
1135
1135
  });
1136
- delete E.objc["class-name"];
1137
- var Nn = {
1136
+ delete b.objc["class-name"];
1137
+ var Bn = {
1138
1138
  pattern: /^(..)[^]+(?=.)/,
1139
1139
  lookbehind: !0
1140
- }, it = "(?:([^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]|[^\\\\<>])*>)*>)", Xt = `(?:"(?:\\\\.|[^\\\\
1141
- "])*"|(?:\\b(?!\\d)\\w+|[^\\s\0-\\x7f]+)[?!]?|\\$.)`, ie = {
1140
+ }, ct = "(?:([^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]|[^\\\\<>])*>)*>)", tn = `(?:"(?:\\\\.|[^\\\\
1141
+ "])*"|(?:\\b(?!\\d)\\w+|[^\\s\0-\\x7f]+)[?!]?|\\$.)`, oe = {
1142
1142
  pattern: /((?:^|[^\\])(?:\\\\)*)#\{(?:[^{}]|\{[^}]*\})*\}/,
1143
1143
  lookbehind: !0,
1144
1144
  inside: {
1145
- content: Nn,
1145
+ content: Bn,
1146
1146
  delimiter: {
1147
1147
  pattern: /.+/,
1148
1148
  alias: "punctuation"
1149
1149
  }
1150
1150
  }
1151
1151
  };
1152
- Nn.inside = E.rb = E.ruby = {
1152
+ Bn.inside = b.rb = b.ruby = {
1153
1153
  comment: {
1154
1154
  pattern: /#.*|^=begin\s[^]*?^=end/mg,
1155
1155
  greedy: !0
1156
1156
  },
1157
1157
  "string-literal": [
1158
1158
  {
1159
- pattern: RegExp("%[qQiIwWs]?" + it, "g"),
1159
+ pattern: RegExp("%[qQiIwWs]?" + ct, "g"),
1160
1160
  greedy: !0,
1161
1161
  inside: {
1162
- interpolation: ie,
1162
+ interpolation: oe,
1163
1163
  string: /[^]+/
1164
1164
  }
1165
1165
  },
@@ -1167,7 +1167,7 @@ Nn.inside = E.rb = E.ruby = {
1167
1167
  pattern: /(["'])(?:#\{[^}]+\}|#(?!\{)|\\[^]|(?!\1)[^\\#\n])*\1/g,
1168
1168
  greedy: !0,
1169
1169
  inside: {
1170
- interpolation: ie,
1170
+ interpolation: oe,
1171
1171
  string: /[^]+/
1172
1172
  }
1173
1173
  },
@@ -1183,7 +1183,7 @@ Nn.inside = E.rb = E.ruby = {
1183
1183
  punctuation: /^<<[-~]?/
1184
1184
  }
1185
1185
  },
1186
- interpolation: ie,
1186
+ interpolation: oe,
1187
1187
  string: /[^]+/
1188
1188
  }
1189
1189
  },
@@ -1205,10 +1205,10 @@ Nn.inside = E.rb = E.ruby = {
1205
1205
  ],
1206
1206
  "command-literal": [
1207
1207
  {
1208
- pattern: RegExp("%x" + it, "g"),
1208
+ pattern: RegExp("%x" + ct, "g"),
1209
1209
  greedy: !0,
1210
1210
  inside: {
1211
- interpolation: ie,
1211
+ interpolation: oe,
1212
1212
  command: {
1213
1213
  pattern: /[^]+/,
1214
1214
  alias: "string"
@@ -1219,7 +1219,7 @@ Nn.inside = E.rb = E.ruby = {
1219
1219
  pattern: /`(?:#\{[^}]+\}|#(?!\{)|\\[^]|[^\\`#\n])*`/g,
1220
1220
  greedy: !0,
1221
1221
  inside: {
1222
- interpolation: ie,
1222
+ interpolation: oe,
1223
1223
  command: {
1224
1224
  pattern: /[^]+/,
1225
1225
  alias: "string"
@@ -1236,10 +1236,10 @@ Nn.inside = E.rb = E.ruby = {
1236
1236
  },
1237
1237
  "regex-literal": [
1238
1238
  {
1239
- pattern: RegExp(`%r${it}[egimnosux]{0,6}`, "g"),
1239
+ pattern: RegExp(`%r${ct}[egimnosux]{0,6}`, "g"),
1240
1240
  greedy: !0,
1241
1241
  inside: {
1242
- interpolation: ie,
1242
+ interpolation: oe,
1243
1243
  regex: /[^]+/
1244
1244
  }
1245
1245
  },
@@ -1248,7 +1248,7 @@ Nn.inside = E.rb = E.ruby = {
1248
1248
  lookbehind: !0,
1249
1249
  greedy: !0,
1250
1250
  inside: {
1251
- interpolation: ie,
1251
+ interpolation: oe,
1252
1252
  regex: /[^]+/
1253
1253
  }
1254
1254
  }
@@ -1256,13 +1256,13 @@ Nn.inside = E.rb = E.ruby = {
1256
1256
  variable: /[@$]+(?!\d)\w+(?:[?!]|\b)/,
1257
1257
  symbol: [
1258
1258
  {
1259
- pattern: RegExp("(^|[^:]):" + Xt, "g"),
1259
+ pattern: RegExp("(^|[^:]):" + tn, "g"),
1260
1260
  lookbehind: !0,
1261
1261
  greedy: !0
1262
1262
  },
1263
1263
  {
1264
1264
  pattern: RegExp(`([
1265
- {(,][ ]*)` + Xt + "(?=:(?!:))", "g"),
1265
+ {(,][ ]*)` + tn + "(?=:(?!:))", "g"),
1266
1266
  lookbehind: !0,
1267
1267
  greedy: !0
1268
1268
  }
@@ -1278,10 +1278,10 @@ Nn.inside = E.rb = E.ruby = {
1278
1278
  }
1279
1279
  },
1280
1280
  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/,
1281
- boolean: W,
1281
+ boolean: K,
1282
1282
  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/,
1283
1283
  constant: /\b[A-Z][A-Z\d_]*(?:[?!]|\b)/,
1284
- number: Rn,
1284
+ number: Dn,
1285
1285
  "double-colon": {
1286
1286
  pattern: /::/,
1287
1287
  alias: "punctuation"
@@ -1289,7 +1289,7 @@ Nn.inside = E.rb = E.ruby = {
1289
1289
  operator: /\.{2,3}|&\.|===|<?=>|[!=]?~|(?:&&|\|\||<<|>>|\*\*|[%&|^!=<>/*+-])=?|[?:]/,
1290
1290
  punctuation: /[()[\]{}.,;]/
1291
1291
  };
1292
- E.sql = {
1292
+ b.sql = {
1293
1293
  comment: /\/\*[^]*?\*\/|(?:--|\/\/|#).*/,
1294
1294
  variable: [
1295
1295
  {
@@ -1319,7 +1319,7 @@ E.sql = {
1319
1319
  operator: /[=%~^/*+-]|&&?|\|\|?|!=?|<<|<=?>?|>[>=]?|\b(?:and|between|div|[ir]?like|in|is|not|x?or|regexp|sounds like)\b/i,
1320
1320
  punctuation: /[()[\].,;`]/
1321
1321
  };
1322
- E.wasm = {
1322
+ b.wasm = {
1323
1323
  comment: /\(;[^]*?;\)|;;.*/,
1324
1324
  string: {
1325
1325
  pattern: /"(?:\\[^]|[^\\"])*"/g,
@@ -1344,14 +1344,14 @@ E.wasm = {
1344
1344
  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/,
1345
1345
  punctuation: /[()]/
1346
1346
  };
1347
- var _e = (e, t) => {
1347
+ var ye = (e, t) => {
1348
1348
  for (var n = 0; n < t; n++)
1349
1349
  e = e.replace(/<self>/g, `(?:${e})`);
1350
1350
  return e.replace(/<self>/g, "[]");
1351
- }, B = (e, t) => e.replace(/<(\d+)>/g, (n, s) => `(?:${t[+s]})`), O = (e, t, n) => RegExp(B(e, t), n), Et = /\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/, he = E.cpp = ae("c", {
1351
+ }, U = (e, t) => e.replace(/<(\d+)>/g, (n, i) => `(?:${t[+i]})`), O = (e, t, n) => RegExp(U(e, t), n), wt = /\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 = b.cpp = ie("c", {
1352
1352
  "class-name": [
1353
1353
  {
1354
- pattern: RegExp(`(\\b(?:class|concept|enum|struct|typename)\\s+)(?!${Et.source})\\w+`),
1354
+ pattern: RegExp(`(\\b(?:class|concept|enum|struct|typename)\\s+)(?!${wt.source})\\w+`),
1355
1355
  lookbehind: !0
1356
1356
  },
1357
1357
  // This is intended to capture the class name of method implementations like:
@@ -1366,22 +1366,22 @@ var _e = (e, t) => {
1366
1366
  // parameters, so it can't be a namespace (until C++ adds generic namespaces).
1367
1367
  /\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/
1368
1368
  ],
1369
- keyword: Et,
1369
+ keyword: wt,
1370
1370
  number: {
1371
1371
  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,
1372
1372
  greedy: !0
1373
1373
  },
1374
1374
  operator: /->|--|\+\+|&&|\|\||[?:~]|<=>|>>=?|<<=?|[%&|^!=<>/*+-]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|x?or|x?or_eq)\b/,
1375
- boolean: W
1375
+ boolean: K
1376
1376
  });
1377
- D(he, "string", {
1377
+ $(Ee, "string", {
1378
1378
  module: {
1379
1379
  // https://en.cppreference.com/w/cpp/language/modules
1380
1380
  pattern: O(
1381
1381
  `(\\b(?:import|module)\\s+)(?:"(?:\\\\[\\s\\S]|[^\\\\
1382
1382
  "])*"|<[^<>
1383
1383
  ]*>|<0>(?:\\s*:\\s*<0>)?|:\\s*<0>)`,
1384
- [`\\b(?!${Et.source})\\w+(?:\\s*\\.\\s*\\w+)*\\b`],
1384
+ [`\\b(?!${wt.source})\\w+(?:\\s*\\.\\s*\\w+)*\\b`],
1385
1385
  "g"
1386
1386
  ),
1387
1387
  lookbehind: !0,
@@ -1398,7 +1398,7 @@ D(he, "string", {
1398
1398
  alias: "string"
1399
1399
  }
1400
1400
  });
1401
- D(he, "keyword", {
1401
+ $(Ee, "keyword", {
1402
1402
  "generic-function": {
1403
1403
  pattern: /\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,
1404
1404
  inside: {
@@ -1406,34 +1406,34 @@ D(he, "keyword", {
1406
1406
  generic: {
1407
1407
  pattern: /<[^]+/,
1408
1408
  alias: "class-name",
1409
- inside: he
1409
+ inside: Ee
1410
1410
  }
1411
1411
  }
1412
1412
  }
1413
1413
  });
1414
- D(he, "operator", {
1414
+ $(Ee, "operator", {
1415
1415
  "double-colon": {
1416
1416
  pattern: /::/,
1417
1417
  alias: "punctuation"
1418
1418
  }
1419
1419
  });
1420
- var kn = Object.assign({}, he);
1421
- D(he, "class-name", {
1420
+ var Gn = Object.assign({}, Ee);
1421
+ $(Ee, "class-name", {
1422
1422
  // the base clause is an optional list of parent classes
1423
1423
  // https://en.cppreference.com/w/cpp/language/class
1424
1424
  "base-clause": {
1425
1425
  pattern: /(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/g,
1426
1426
  lookbehind: !0,
1427
1427
  greedy: !0,
1428
- inside: kn
1428
+ inside: Gn
1429
1429
  }
1430
1430
  });
1431
- D(kn, "double-colon", {
1431
+ $(Gn, "double-colon", {
1432
1432
  // All untokenized words that are not namespaces should be class names
1433
1433
  "class-name": /\b[a-z_]\w*\b(?!\s*::)/i
1434
1434
  });
1435
- E.go = {
1436
- comment: re(),
1435
+ b.go = {
1436
+ comment: se(),
1437
1437
  char: {
1438
1438
  pattern: /'(?:\\.|[^\\\n']){0,10}'/g,
1439
1439
  greedy: !0
@@ -1455,18 +1455,18 @@ E.go = {
1455
1455
  /(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i
1456
1456
  ],
1457
1457
  operator: /--|\+\+|&&|\|\||&\^=?|<-|<<=?|>>=?|[%&|^!=<>/*+-]=?|:=|\.{3}/,
1458
- punctuation: Ee,
1458
+ punctuation: ae,
1459
1459
  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/
1460
1460
  };
1461
- var st = {};
1462
- E.js = E.javascript = Object.assign(st, {
1461
+ var dt = {};
1462
+ b.js = b.javascript = Object.assign(dt, {
1463
1463
  "doc-comment": {
1464
1464
  pattern: /\/\*\*(?!\/)[^]*?(?:\*\/|$)/g,
1465
1465
  greedy: !0,
1466
1466
  alias: "comment",
1467
1467
  inside: "jsdoc"
1468
1468
  },
1469
- comment: re(),
1469
+ comment: se(),
1470
1470
  hashbang: {
1471
1471
  pattern: /^#!.*/g,
1472
1472
  greedy: !0,
@@ -1488,7 +1488,7 @@ E.js = E.javascript = Object.assign(st, {
1488
1488
  pattern: /^\$\{|\}$/,
1489
1489
  alias: "punctuation"
1490
1490
  },
1491
- [Y]: st
1491
+ [Y]: dt
1492
1492
  }
1493
1493
  },
1494
1494
  string: /[^]+/
@@ -1500,7 +1500,7 @@ E.js = E.javascript = Object.assign(st, {
1500
1500
  greedy: !0,
1501
1501
  alias: "property"
1502
1502
  },
1503
- string: Nt(),
1503
+ string: Ct(),
1504
1504
  regex: {
1505
1505
  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,
1506
1506
  lookbehind: !0,
@@ -1544,7 +1544,7 @@ E.js = E.javascript = Object.assign(st, {
1544
1544
  ].map((e) => ({
1545
1545
  pattern: e,
1546
1546
  lookbehind: !0,
1547
- inside: st
1547
+ inside: dt
1548
1548
  })),
1549
1549
  constant: /\b[A-Z](?:[A-Z_]|\dx?)*\b/,
1550
1550
  keyword: [
@@ -1563,7 +1563,7 @@ E.js = E.javascript = Object.assign(st, {
1563
1563
  lookbehind: !0
1564
1564
  }
1565
1565
  ],
1566
- boolean: W,
1566
+ boolean: K,
1567
1567
  // Allow for all non-ASCII characters (See http://stackoverflow.com/a/2008444)
1568
1568
  function: {
1569
1569
  pattern: /#?(?!\d)(?:(?!\s)[$\w\xa0-\uffff])+(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,
@@ -1600,26 +1600,26 @@ E.js = E.javascript = Object.assign(st, {
1600
1600
  },
1601
1601
  punctuation: /\?\.|[()[\]{}.,:;]/
1602
1602
  });
1603
- var ua = (e) => (t, n) => {
1604
- for (var s = Rt(e), d = "", p = [], b = 0, m = Ye(t, n), _ = 0, y = m.length, h = 0; _ < y; ) {
1605
- var l = m[_++], c = l.length, w = l.type;
1606
- w && w.slice(0, 6) != "ignore" ? (p[b++] = [h, l], d += " ".repeat(c)) : d += t.slice(h, h + c), h += c;
1603
+ var zn = (e) => (t, n) => {
1604
+ for (var i = Lt(e), d = "", p = [], g = 0, h = Oe(t, n), E = 0, y = h.length, _ = 0; E < y; ) {
1605
+ var l = h[E++], c = l.length, w = l.type;
1606
+ w && w.slice(0, 6) != "ignore" ? (p[g++] = [_, l], d += " ".repeat(c)) : d += t.slice(_, _ + c), _ += c;
1607
1607
  }
1608
- var g = 0, h = 0, a = (u) => {
1609
- for (var o = 0; g < b && o < u.length; o++) {
1610
- var i = u[o], f = i.content;
1608
+ var m = 0, _ = 0, a = (u) => {
1609
+ for (var o = 0; m < g && o < u.length; o++) {
1610
+ var s = u[o], f = s.content;
1611
1611
  if (Array.isArray(f))
1612
1612
  a(f);
1613
1613
  else {
1614
- for (var R = i.length, A = [], v, S, k = 0, N = h; ([v, S] = p[g], v >= h && v < h + R) && (N < v && (A[k++] = d.slice(N, v)), N = v + S.length, A[k++] = S, ++g != b); )
1614
+ for (var R = s.length, A = [], v, S, N = 0, T = _; ([v, S] = p[m], v >= _ && v < _ + R) && (T < v && (A[N++] = d.slice(T, v)), T = v + S.length, A[N++] = S, ++m != g); )
1615
1615
  ;
1616
- h += R, k && (N < h && (A[k++] = d.slice(N, h)), f ? i.content = A : (u.splice(o, 1, ...A), o += k - 1));
1616
+ _ += R, N && (T < _ && (A[N++] = d.slice(T, _)), f ? s.content = A : (u.splice(o, 1, ...A), o += N - 1));
1617
1617
  }
1618
1618
  }
1619
- }, r = s ? St(d, s) : [d];
1619
+ }, r = i ? Ne(d, i) : [d];
1620
1620
  return a(r), r;
1621
- }, On = E.js, kt = On["template-string"], pa = kt.pattern.source, fa = kt.inside.interpolation.pattern, pe = (e, t) => ({
1622
- pattern: RegExp("((?:" + t + ")\\s*)" + pa, "g"),
1621
+ }, Hn = b.js, Mt = Hn["template-string"], xa = Mt.pattern.source, Aa = Mt.inside.interpolation.pattern, fe = (e, t) => ({
1622
+ pattern: RegExp("((?:" + t + ")\\s*)" + xa, "g"),
1623
1623
  lookbehind: !0,
1624
1624
  greedy: !0,
1625
1625
  inside: {
@@ -1631,7 +1631,7 @@ var ua = (e) => (t, n) => {
1631
1631
  pattern: /[^]+/,
1632
1632
  inside: {
1633
1633
  interpolation: {
1634
- pattern: fa,
1634
+ pattern: Aa,
1635
1635
  lookbehind: !0,
1636
1636
  alias: "language-javascript",
1637
1637
  inside: {
@@ -1642,43 +1642,43 @@ var ua = (e) => (t, n) => {
1642
1642
  [Y]: "js"
1643
1643
  }
1644
1644
  },
1645
- [le]: ua(e)
1645
+ [ee]: zn(e)
1646
1646
  }
1647
1647
  }
1648
1648
  }
1649
1649
  });
1650
- On["template-string"] = [
1650
+ Hn["template-string"] = [
1651
1651
  // styled-jsx:
1652
1652
  // css`a { color: #25F; }`
1653
1653
  // styled-components:
1654
1654
  // styled.h1`color: red;`
1655
- pe("css", "\\b(?:styled(?:\\([^)]*\\))?(?:\\s*\\.\\s*\\w+(?:\\([^)]*\\))*)*|css(?:\\s*\\.\\s*(?:global|resolve))?|createGlobalStyle|keyframes)"),
1655
+ fe("css", "\\b(?:styled(?:\\([^)]*\\))?(?:\\s*\\.\\s*\\w+(?:\\([^)]*\\))*)*|css(?:\\s*\\.\\s*(?:global|resolve))?|createGlobalStyle|keyframes)"),
1656
1656
  // html`<p></p>`
1657
1657
  // div.innerHTML = `<p></p>`
1658
- pe("html", "\\bhtml|\\.\\s*(?:inner|outer)HTML\\s*\\+?="),
1658
+ fe("html", "\\bhtml|\\.\\s*(?:inner|outer)HTML\\s*\\+?="),
1659
1659
  // svg`<path fill="#fff" d="M55.37 ..."/>`
1660
- pe("svg", "\\bsvg"),
1660
+ fe("svg", "\\bsvg"),
1661
1661
  // md`# h1`, markdown`## h2`
1662
- pe("markdown", "\\b(?:markdown|md)"),
1662
+ fe("markdown", "\\b(?:markdown|md)"),
1663
1663
  // gql`...`, graphql`...`, graphql.experimental`...`
1664
- pe("graphql", "\\b(?:gql|graphql(?:\\s*\\.\\s*experimental)?)"),
1664
+ fe("graphql", "\\b(?:gql|graphql(?:\\s*\\.\\s*experimental)?)"),
1665
1665
  // sql`...`
1666
- pe("sql", "\\bsql"),
1666
+ fe("sql", "\\bsql"),
1667
1667
  // vanilla template string
1668
- kt
1668
+ Mt
1669
1669
  ];
1670
- var $e = "\\s|//.*(?!.)|/\\*(?:[^*]|\\*(?!/))*\\*/", _t = "\\{(?:[^{}]|\\{(?:[^{}]|\\{[^}]*\\})*\\})*\\}", Qt = B("\\{<0>*\\.{3}(?:[^{}]|<1>)*\\}", [$e, _t]), Jt = (e) => e && (!e.type || e.type == "plain-text"), ba = (e, t, n) => {
1671
- for (var s = 0, d = [], p = 0; s < e.length; s++) {
1672
- var b = e[s], m = b.length, _ = b.type, y = !_, l, c, w, g, h;
1673
- _ && (h = b.content, _ == "tag" ? (w = h[0].length, c = h[2] ? t.substr(n + w, h[1].length) : "", w > 1 ? p && d[p - 1][0] == c && p-- : h[h.length - 1].length < 2 && (d[p++] = [c, 0])) : p && _ == "punctuation" ? (l = d[p - 1], h == "{" ? l[1]++ : l[1] && h == "}" ? l[1]-- : y = !"}()[]".includes(h)) : y = !0), y && p && !d[p - 1][1] && (w = n, Jt(e[s + 1]) && (m += e[s + 1].length, e.splice(s + 1, 1)), Jt(e[s - 1]) && (w -= e[--s].length, e.splice(s, 1)), g = t.slice(w, n + m), e[s] = new fe("plain-text", g, g)), n += m;
1670
+ var Ge = "\\s|//.*(?!.)|/\\*(?:[^*]|\\*(?!/))*\\*/", xt = "\\{(?:[^{}]|\\{(?:[^{}]|\\{[^}]*\\})*\\})*\\}", nn = U("\\{<0>*\\.{3}(?:[^{}]|<1>)*\\}", [Ge, xt]), an = (e) => e && (!e.type || e.type == "plain-text"), Ia = (e, t, n) => {
1671
+ for (var i = 0, d = [], p = 0; i < e.length; i++) {
1672
+ var g = e[i], h = g.length, E = g.type, y = !E, l, c, w, m, _;
1673
+ E && (_ = g.content, E == "tag" ? (w = _[0].length, c = _[2] ? t.substr(n + w, _[1].length) : "", w > 1 ? p && d[p - 1][0] == c && p-- : _[_.length - 1].length < 2 && (d[p++] = [c, 0])) : p && E == "punctuation" ? (l = d[p - 1], _ == "{" ? l[1]++ : l[1] && _ == "}" ? l[1]-- : y = !"}()[]".includes(_)) : y = !0), y && p && !d[p - 1][1] && (w = n, an(e[i + 1]) && (h += e[i + 1].length, e.splice(i + 1, 1)), an(e[i - 1]) && (w -= e[--i].length, e.splice(i, 1)), m = t.slice(w, n + h), e[i] = new be("plain-text", m, m)), n += h;
1674
1674
  }
1675
1675
  return e;
1676
- }, Ln = (e, t) => {
1677
- D(E[t] = e = Tt(e), "regex", {
1676
+ }, Vn = (e, t) => {
1677
+ $(b[t] = e = et(e), "regex", {
1678
1678
  tag: {
1679
1679
  pattern: O(
1680
1680
  `</?(?:(?!\\d)[^\\s/=><%]+(?:<0>(?:<0>*(?:[^\\s<>/={*]+(?:<0>*=<0>*(?!\\s)(?:"[^"]*"|'[^']*'|<1>)?|(?=[\\s/>]))|<2>))+)?<0>*/?)?>`,
1681
- [$e, _t, Qt],
1681
+ [Ge, xt, nn],
1682
1682
  "g"
1683
1683
  ),
1684
1684
  greedy: !0,
@@ -1693,18 +1693,18 @@ var $e = "\\s|//.*(?!.)|/\\*(?:[^*]|\\*(?!/))*\\*/", _t = "\\{(?:[^{}]|\\{(?:[^{
1693
1693
  },
1694
1694
  script: {
1695
1695
  // Allow for two levels of nesting
1696
- pattern: O("(=<0>*)<1>", [$e, _t]),
1696
+ pattern: O("(=<0>*)<1>", [Ge, xt]),
1697
1697
  lookbehind: !0,
1698
1698
  alias: t = "language-" + t,
1699
1699
  inside: e
1700
1700
  },
1701
1701
  spread: {
1702
- pattern: RegExp(Qt),
1702
+ pattern: RegExp(nn),
1703
1703
  alias: t,
1704
1704
  inside: e
1705
1705
  },
1706
1706
  "attr-value": {
1707
- pattern: O(`(=<0>*)(?:"[^"]*"|'[^']*')`, [$e]),
1707
+ pattern: O(`(=<0>*)(?:"[^"]*"|'[^']*')`, [Ge]),
1708
1708
  lookbehind: !0,
1709
1709
  inside: {
1710
1710
  punctuation: /^["']|["']$/
@@ -1720,10 +1720,10 @@ var $e = "\\s|//.*(?!.)|/\\*(?:[^*]|\\*(?!/))*\\*/", _t = "\\{(?:[^{}]|\\{(?:[^{
1720
1720
  }
1721
1721
  }
1722
1722
  }
1723
- }), e[le] = (n, s) => ba(Ye(n, s), n, 0);
1723
+ }), e[ee] = (n, i) => Ia(Oe(n, i), n, 0);
1724
1724
  };
1725
- Ln(E.js, "jsx");
1726
- E.lua = {
1725
+ Vn(b.js, "jsx");
1726
+ b.lua = {
1727
1727
  comment: /^#!.+|--(?:\[(=*)\[[^]*?\]\1\]|.*)/m,
1728
1728
  // \z may be used to skip the following space
1729
1729
  string: {
@@ -1740,8 +1740,8 @@ E.lua = {
1740
1740
  },
1741
1741
  punctuation: /[()[\]{},;]|\.+|:+/
1742
1742
  };
1743
- var Me = "(?:\\((?:\\\\[\\s\\S]|[^\\\\()])*\\)|\\{(?:\\\\[\\s\\S]|[^\\\\{}])*\\}|\\[(?:\\\\[\\s\\S]|[^\\\\[\\]])*\\]|<(?:\\\\[\\s\\S]|[^\\\\<>])*>)", en = "(?![a-zA-Zd])\\s*(?:([^a-zA-Zd\\s{([<])(?:\\\\[^]|(?!\\1)[^\\\\])*\\1|([a-zA-Zd])(?:\\\\[^]|(?!\\2)[^\\\\])*\\2";
1744
- E.perl = {
1743
+ var De = "(?:\\((?:\\\\[\\s\\S]|[^\\\\()])*\\)|\\{(?:\\\\[\\s\\S]|[^\\\\{}])*\\}|\\[(?:\\\\[\\s\\S]|[^\\\\[\\]])*\\]|<(?:\\\\[\\s\\S]|[^\\\\<>])*>)", rn = "(?![a-zA-Zd])\\s*(?:([^a-zA-Zd\\s{([<])(?:\\\\[^]|(?!\\1)[^\\\\])*\\1|([a-zA-Zd])(?:\\\\[^]|(?!\\2)[^\\\\])*\\2";
1744
+ b.perl = {
1745
1745
  comment: [
1746
1746
  {
1747
1747
  // POD
@@ -1758,7 +1758,7 @@ E.perl = {
1758
1758
  // TODO Could be nice to handle Heredoc too.
1759
1759
  string: {
1760
1760
  pattern: RegExp(
1761
- `\\bq[qwx]?${en}|${Me})|("|\`)(?:\\\\[^]|(?!\\3)[^\\\\])*\\3|'(?:\\\\.|[^\\\\
1761
+ `\\bq[qwx]?${rn}|${De})|("|\`)(?:\\\\[^]|(?!\\3)[^\\\\])*\\3|'(?:\\\\.|[^\\\\
1762
1762
  '])*'`,
1763
1763
  "g"
1764
1764
  ),
@@ -1767,7 +1767,7 @@ E.perl = {
1767
1767
  regex: [
1768
1768
  {
1769
1769
  pattern: RegExp(
1770
- `\\b(?:m|qr)${en}|${Me})[msixpodualngc]*`,
1770
+ `\\b(?:m|qr)${rn}|${De})[msixpodualngc]*`,
1771
1771
  "g"
1772
1772
  ),
1773
1773
  greedy: !0
@@ -1775,7 +1775,7 @@ E.perl = {
1775
1775
  // The lookbehinds prevent -s from breaking
1776
1776
  {
1777
1777
  pattern: RegExp(
1778
- `(^|[^-])\\b(?:s|tr|y)(?![a-zA-Zd])\\s*(?:([^a-zA-Zd\\s{([<])(?:\\\\[^]|(?!\\2)[^\\\\])*\\2(?:\\\\[^]|(?!\\2)[^\\\\])*\\2|([a-zA-Zd])(?:\\\\[^]|(?!\\3)[^\\\\])*\\3(?:\\\\[^]|(?!\\3)[^\\\\])*\\3|${Me}\\s*${Me})[msixpodualngcer]*`,
1778
+ `(^|[^-])\\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]*`,
1779
1779
  "g"
1780
1780
  ),
1781
1781
  lookbehind: !0,
@@ -1811,7 +1811,7 @@ E.perl = {
1811
1811
  operator: /-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|->|=>|=~|~~|<=>?|!~|--|\+\+|(?:\*\*|\/\/|&&|\|\||<<|>>|[~%&|^!=<>/*+-])=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:and|cmp|eq|[gl][et]|ne|not|x?or)\b/,
1812
1812
  punctuation: /[()[\]{},:;]/
1813
1813
  };
1814
- var tn = {
1814
+ var sn = {
1815
1815
  "format-spec": {
1816
1816
  pattern: /(:)[^(){}:]+(?=\}$)/,
1817
1817
  lookbehind: !0
@@ -1821,7 +1821,7 @@ var tn = {
1821
1821
  alias: "punctuation"
1822
1822
  }
1823
1823
  };
1824
- tn[Y] = E.py = E.python = {
1824
+ sn[Y] = b.py = b.python = {
1825
1825
  comment: {
1826
1826
  pattern: /#.*/g,
1827
1827
  greedy: !0
@@ -1834,7 +1834,7 @@ tn[Y] = E.py = E.python = {
1834
1834
  // "{" <expression> <optional "!s", "!r", or "!a"> <optional ":" format specifier> "}"
1835
1835
  pattern: /((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})*\}/,
1836
1836
  lookbehind: !0,
1837
- inside: tn
1837
+ inside: sn
1838
1838
  },
1839
1839
  string: /[^]+/
1840
1840
  }
@@ -1869,23 +1869,23 @@ tn[Y] = E.py = E.python = {
1869
1869
  boolean: /\b(?:False|True|None)\b/,
1870
1870
  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,
1871
1871
  operator: /!=|:=|\*\*=?|\/\/=?|<>|>>|<<|[%=<>/*+-]=?|[&|^~]/,
1872
- punctuation: Ee
1872
+ punctuation: ae
1873
1873
  };
1874
- var ga = _e("/\\*(?:[^*/]|\\*(?!/)|/(?!\\*)|<self>)*\\*/", 2), nn = {
1874
+ var Ra = ye("/\\*(?:[^*/]|\\*(?!/)|/(?!\\*)|<self>)*\\*/", 2), on = {
1875
1875
  pattern: /b?"(?:\\[^]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/g,
1876
1876
  greedy: !0
1877
- }, an = {
1877
+ }, ln = {
1878
1878
  "closure-punctuation": {
1879
1879
  pattern: /^\||\|$/,
1880
1880
  alias: "punctuation"
1881
1881
  }
1882
1882
  };
1883
- an[Y] = E.rust = {
1883
+ ln[Y] = b.rust = {
1884
1884
  comment: {
1885
- pattern: RegExp("//.*|" + ga, "g"),
1885
+ pattern: RegExp("//.*|" + Ra, "g"),
1886
1886
  greedy: !0
1887
1887
  },
1888
- string: nn,
1888
+ string: on,
1889
1889
  char: {
1890
1890
  pattern: /b?'(?:\\(?:x[0-7][a-fA-F\d]|u\{(?:[a-fA-F\d]_*){1,6}\}|.)|[^\\\n '])'/g,
1891
1891
  greedy: !0
@@ -1895,7 +1895,7 @@ an[Y] = E.rust = {
1895
1895
  greedy: !0,
1896
1896
  alias: "attr-name",
1897
1897
  inside: {
1898
- string: nn
1898
+ string: on
1899
1899
  }
1900
1900
  },
1901
1901
  // Closure params should not be confused with bitwise OR |
@@ -1903,7 +1903,7 @@ an[Y] = E.rust = {
1903
1903
  pattern: /([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/g,
1904
1904
  lookbehind: !0,
1905
1905
  greedy: !0,
1906
- inside: an
1906
+ inside: ln
1907
1907
  },
1908
1908
  "lifetime-annotation": {
1909
1909
  pattern: /'\w+/,
@@ -1962,11 +1962,11 @@ an[Y] = E.rust = {
1962
1962
  },
1963
1963
  // Hex, oct, bin, dec numbers with visual separators and type suffix
1964
1964
  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/,
1965
- boolean: W,
1965
+ boolean: K,
1966
1966
  punctuation: /->|\.\.=|\.{1,3}|::|[()[\]{},:;]/,
1967
1967
  operator: /&&|\|\||=>|>>=?|<<=?|[%&|^!=<>/*+-]=?|[@?]/
1968
1968
  };
1969
- var rn = E.swift = {
1969
+ var cn = b.swift = {
1970
1970
  comment: {
1971
1971
  // Nested comments are supported up to 2 levels
1972
1972
  pattern: /\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\//g,
@@ -2014,7 +2014,7 @@ var rn = E.swift = {
2014
2014
  alias: "property",
2015
2015
  inside: {
2016
2016
  "directive-name": /^#\w+/,
2017
- boolean: W,
2017
+ boolean: K,
2018
2018
  number: /\b\d+(?:\.\d+)*\b/,
2019
2019
  operator: /!|&&|\|\||[<>]=?/,
2020
2020
  punctuation: /[(),]/
@@ -2044,7 +2044,7 @@ var rn = E.swift = {
2044
2044
  alias: "important"
2045
2045
  },
2046
2046
  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/,
2047
- boolean: W,
2047
+ boolean: K,
2048
2048
  nil: {
2049
2049
  pattern: /\bnil\b/,
2050
2050
  alias: "constant"
@@ -2065,12 +2065,12 @@ var rn = E.swift = {
2065
2065
  operator: /[~?%&|^!=<>/*+-]+|\.[.~?%&|^!=<>/*+-]+/,
2066
2066
  punctuation: /[()[\]{}.,:;\\]/
2067
2067
  };
2068
- rn["string-literal"].forEach((e) => {
2069
- e.inside.interpolation.inside = rn;
2068
+ cn["string-literal"].forEach((e) => {
2069
+ e.inside.interpolation.inside = cn;
2070
2070
  });
2071
- E.clike = {
2072
- comment: re(),
2073
- string: Nt(),
2071
+ b.clike = {
2072
+ comment: se(),
2073
+ string: Ct(),
2074
2074
  "class-name": {
2075
2075
  pattern: /(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,
2076
2076
  lookbehind: !0,
@@ -2079,26 +2079,26 @@ E.clike = {
2079
2079
  }
2080
2080
  },
2081
2081
  keyword: /\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,
2082
- boolean: W,
2082
+ boolean: K,
2083
2083
  function: /\b\w+(?=\()/,
2084
- number: Rn,
2084
+ number: Dn,
2085
2085
  operator: /[!=]==|[!=<>]=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,
2086
- punctuation: Ee
2086
+ punctuation: ae
2087
2087
  };
2088
- var Xe = (e) => `\\b(?:${e})\\b`, Cn = "bool|char|decimal|double|dynamic|float|object|s?byte|string|u?int|u?long|u?short|var|void", Qe = "class|enum|interface|record|struct", Mn = "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", Pn = Xe(Qe), He = RegExp(Xe(Cn + "|" + Qe + "|" + Mn + "|" + Ot)), ma = Xe(Qe + "|" + Mn + "|" + Ot), ha = Xe(Cn + "|" + Qe + "|" + Ot), Ve = _e("<(?:[^<>;=*/%&|^+-]|<self>)*>", 2), Fe = _e("\\((?:[^()]|<self>)*\\)", 2), J = "@?\\b(?!\\d)\\w+\\b", Ze = B("<0>(?:\\s*<1>)?", [J, Ve]), ce = B("(?!<0>)<1>(?:\\s*\\.\\s*<1>)*", [ma, Ze]), Lt = "\\[\\s*(?:,\\s*)*\\]", Ea = B("<0>(?:\\s*(?:\\?\\s*)?<1>)*(?:\\s*\\?)?", [ce, Lt]), _a = B("[^()[\\],;%&|^=<>/*+-]|<0>|<1>|<2>", [Ve, Fe, Lt]), ya = B("\\(<0>+(?:,<0>+)+\\)", [_a]), be = B("(?:<0>|<1>)(?:\\s*(?:\\?\\s*)?<2>)*(?:\\s*\\?)?", [ya, ce, Lt]), j = {
2089
- keyword: He,
2088
+ var tt = (e) => `\\b(?:${e})\\b`, Zn = "bool|char|decimal|double|dynamic|float|object|s?byte|string|u?int|u?long|u?short|var|void", nt = "class|enum|interface|record|struct", qn = "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*{)", Pt = "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", Kn = tt(nt), Ke = RegExp(tt(Zn + "|" + nt + "|" + qn + "|" + Pt)), Sa = tt(nt + "|" + qn + "|" + Pt), ka = tt(Zn + "|" + nt + "|" + Pt), 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>)*", [Sa, je]), $t = "\\[\\s*(?:,\\s*)*\\]", Ta = U("<0>(?:\\s*(?:\\?\\s*)?<1>)*(?:\\s*\\?)?", [de, $t]), Na = U("[^()[\\],;%&|^=<>/*+-]|<0>|<1>|<2>", [We, ze, $t]), Oa = U("\\(<0>+(?:,<0>+)+\\)", [Na]), ge = U("(?:<0>|<1>)(?:\\s*(?:\\?\\s*)?<2>)*(?:\\s*\\?)?", [Oa, de, $t]), j = {
2089
+ keyword: Ke,
2090
2090
  punctuation: /[()[\].,:<>?]/
2091
- }, Dn = `'(?:\\\\.|[^
2092
- '\\\\]|\\\\[Uux][a-fA-F\\d]{1,8})'`, $n = `"(?:\\\\.|[^\\\\
2093
- "])*"`, va = '@"(?:""|\\\\[\\s\\S]|[^\\\\"])*"(?!")', ne = E.dotnet = E.cs = E.csharp = ae("clike", {
2091
+ }, Wn = `'(?:\\\\.|[^
2092
+ '\\\\]|\\\\[Uux][a-fA-F\\d]{1,8})'`, jn = `"(?:\\\\.|[^\\\\
2093
+ "])*"`, La = '@"(?:""|\\\\[\\s\\S]|[^\\\\"])*"(?!")', re = b.dotnet = b.cs = b.csharp = ie("clike", {
2094
2094
  string: [
2095
2095
  {
2096
- pattern: O("(^|[^$\\\\])<0>", [va], "g"),
2096
+ pattern: O("(^|[^$\\\\])<0>", [La], "g"),
2097
2097
  lookbehind: !0,
2098
2098
  greedy: !0
2099
2099
  },
2100
2100
  {
2101
- pattern: O("(^|[^@$\\\\])<0>", [$n], "g"),
2101
+ pattern: O("(^|[^@$\\\\])<0>", [jn], "g"),
2102
2102
  lookbehind: !0,
2103
2103
  greedy: !0
2104
2104
  }
@@ -2107,14 +2107,14 @@ var Xe = (e) => `\\b(?:${e})\\b`, Cn = "bool|char|decimal|double|dynamic|float|o
2107
2107
  {
2108
2108
  // Using static
2109
2109
  // using static System.Math;
2110
- pattern: O("(\\busing\\s+static\\s+)<0>(?=\\s*;)", [ce]),
2110
+ pattern: O("(\\busing\\s+static\\s+)<0>(?=\\s*;)", [de]),
2111
2111
  lookbehind: !0,
2112
2112
  inside: j
2113
2113
  },
2114
2114
  {
2115
2115
  // Using alias (type)
2116
2116
  // using Project = PC.MyCompany.Project;
2117
- pattern: O("(\\busing\\s+<0>\\s*=\\s*)<1>(?=\\s*;)", [J, be]),
2117
+ pattern: O("(\\busing\\s+<0>\\s*=\\s*)<1>(?=\\s*;)", [J, ge]),
2118
2118
  lookbehind: !0,
2119
2119
  inside: j
2120
2120
  },
@@ -2128,7 +2128,7 @@ var Xe = (e) => `\\b(?:${e})\\b`, Cn = "bool|char|decimal|double|dynamic|float|o
2128
2128
  // Type declarations
2129
2129
  // class Foo<A, B>
2130
2130
  // interface Foo<out A, B>
2131
- pattern: O("(\\b<0>\\s+)<1>", [Pn, Ze]),
2131
+ pattern: O("(\\b<0>\\s+)<1>", [Kn, je]),
2132
2132
  lookbehind: !0,
2133
2133
  inside: j
2134
2134
  },
@@ -2136,7 +2136,7 @@ var Xe = (e) => `\\b(?:${e})\\b`, Cn = "bool|char|decimal|double|dynamic|float|o
2136
2136
  // Single catch exception declaration
2137
2137
  // catch(Foo)
2138
2138
  // (things like catch(Foo e) is covered by variable declaration)
2139
- pattern: O("(\\bcatch\\s*\\(\\s*)<0>", [ce]),
2139
+ pattern: O("(\\bcatch\\s*\\(\\s*)<0>", [de]),
2140
2140
  lookbehind: !0,
2141
2141
  inside: j
2142
2142
  },
@@ -2150,37 +2150,37 @@ var Xe = (e) => `\\b(?:${e})\\b`, Cn = "bool|char|decimal|double|dynamic|float|o
2150
2150
  // Casts and checks via as and is.
2151
2151
  // as Foo<A>, is Bar<B>
2152
2152
  // (things like if(a is Foo b) is covered by variable declaration)
2153
- pattern: O("(\\b(?:is(?:\\s+not)?|as)\\s+)<0>", [Ea]),
2153
+ pattern: O("(\\b(?:is(?:\\s+not)?|as)\\s+)<0>", [Ta]),
2154
2154
  lookbehind: !0,
2155
2155
  inside: j
2156
2156
  },
2157
2157
  {
2158
2158
  // Variable, field and parameter declaration
2159
2159
  // (Foo bar, Bar baz, Foo[,,] bay, Foo<Bar, FooBar<Bar>> bax)
2160
- pattern: O("\\b<0>(?=\\s+(?!<1>|with\\s*\\{)<2>(?:\\s*[=,:;{)\\]]|\\s+(?:in|when)\\b))", [be, ha, J]),
2160
+ pattern: O("\\b<0>(?=\\s+(?!<1>|with\\s*\\{)<2>(?:\\s*[=,:;{)\\]]|\\s+(?:in|when)\\b))", [ge, ka, J]),
2161
2161
  inside: j
2162
2162
  }
2163
2163
  ],
2164
- keyword: He,
2164
+ keyword: Ke,
2165
2165
  // https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/language-specification/lexical-structure#literals
2166
2166
  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,
2167
2167
  operator: /[=-]>|([&|+-])\1|~|\?\?=?|>>=?|<<=?|[%&|^!=<>/*+-]=?/,
2168
2168
  punctuation: /\?\.?|::|[()[\]{}.,:;]/
2169
2169
  });
2170
- D(ne, "number", {
2170
+ $(re, "number", {
2171
2171
  range: {
2172
2172
  pattern: /\.\./,
2173
2173
  alias: "operator"
2174
2174
  }
2175
2175
  });
2176
- D(ne, "punctuation", {
2176
+ $(re, "punctuation", {
2177
2177
  "named-parameter": {
2178
2178
  pattern: O("([(,]\\s*)<0>(?=\\s*:)", [J]),
2179
2179
  lookbehind: !0,
2180
2180
  alias: "punctuation"
2181
2181
  }
2182
2182
  });
2183
- D(ne, "class-name", {
2183
+ $(re, "class-name", {
2184
2184
  namespace: {
2185
2185
  // namespace Foo.Bar {}
2186
2186
  // using Foo.Bar;
@@ -2192,7 +2192,7 @@ D(ne, "class-name", {
2192
2192
  },
2193
2193
  "type-expression": {
2194
2194
  // default(Foo), typeof(Foo<Bar>), sizeof(int)
2195
- pattern: O("(\\b(?:default|sizeof|typeof)\\s*\\(\\s*(?!\\s))(?:[^()\\s]|\\s(?!\\s)|<0>)+(?=\\s*\\))", [Fe]),
2195
+ pattern: O("(\\b(?:default|sizeof|typeof)\\s*\\(\\s*(?!\\s))(?:[^()\\s]|\\s(?!\\s)|<0>)+(?=\\s*\\))", [ze]),
2196
2196
  lookbehind: !0,
2197
2197
  alias: "class-name",
2198
2198
  inside: j
@@ -2201,13 +2201,13 @@ D(ne, "class-name", {
2201
2201
  // Foo<Bar> ForBar(); Foo IFoo.Bar() => 0
2202
2202
  // int this[int index] => 0; T IReadOnlyList<T>.this[int index] => this[index];
2203
2203
  // int Foo => 0; int Foo { get; set } = 0;
2204
- pattern: O("<0>(?=\\s+(?:<1>\\s*(?:=>|[({]|\\.\\s*this\\s*\\[)|this\\s*\\[))", [be, ce]),
2204
+ pattern: O("<0>(?=\\s+(?:<1>\\s*(?:=>|[({]|\\.\\s*this\\s*\\[)|this\\s*\\[))", [ge, de]),
2205
2205
  alias: "class-name",
2206
2206
  inside: j
2207
2207
  },
2208
2208
  "constructor-invocation": {
2209
2209
  // new List<Foo<Bar[]>> { }
2210
- pattern: O("(\\bnew\\s+)<0>(?=\\s*[[({])", [be]),
2210
+ pattern: O("(\\bnew\\s+)<0>(?=\\s*[[({])", [ge]),
2211
2211
  lookbehind: !0,
2212
2212
  alias: "class-name",
2213
2213
  inside: j
@@ -2220,11 +2220,11 @@ D(ne, "class-name", {
2220
2220
  },*/
2221
2221
  "generic-method": {
2222
2222
  // foo<Bar>()
2223
- pattern: O("<0>\\s*<1>(?=\\s*\\()", [J, Ve]),
2223
+ pattern: O("<0>\\s*<1>(?=\\s*\\()", [J, We]),
2224
2224
  inside: {
2225
2225
  function: O("^<0>", [J]),
2226
2226
  generic: {
2227
- pattern: RegExp(Ve),
2227
+ pattern: RegExp(We),
2228
2228
  alias: "class-name",
2229
2229
  inside: j
2230
2230
  }
@@ -2236,19 +2236,19 @@ D(ne, "class-name", {
2236
2236
  // where F : Bar, IList<int>
2237
2237
  pattern: O(
2238
2238
  "\\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|[{;]|=>|$))",
2239
- [Pn, Ze, J, be, He.source, Fe, "\\bnew\\s*\\(\\s*\\)"]
2239
+ [Kn, je, J, ge, Ke.source, ze, "\\bnew\\s*\\(\\s*\\)"]
2240
2240
  ),
2241
2241
  lookbehind: !0,
2242
2242
  inside: {
2243
2243
  "record-arguments": {
2244
- pattern: O("(^(?!new\\s*\\()<0>\\s*)<1>", [Ze, Fe], "g"),
2244
+ pattern: O("(^(?!new\\s*\\()<0>\\s*)<1>", [je, ze], "g"),
2245
2245
  lookbehind: !0,
2246
2246
  greedy: !0,
2247
- inside: ne
2247
+ inside: re
2248
2248
  },
2249
- keyword: He,
2249
+ keyword: Ke,
2250
2250
  "class-name": {
2251
- pattern: RegExp(be, "g"),
2251
+ pattern: RegExp(ge, "g"),
2252
2252
  greedy: !0,
2253
2253
  inside: j
2254
2254
  },
@@ -2269,16 +2269,16 @@ D(ne, "class-name", {
2269
2269
  }
2270
2270
  }
2271
2271
  });
2272
- var Fn = $n + "|" + Dn, Un = B(`/(?![*/])|//[^
2272
+ var Yn = jn + "|" + Wn, Xn = U(`/(?![*/])|//[^
2273
2273
  ]*
2274
- |/\\*(?:[^*]|\\*(?!/))*\\*/|<0>`, [Fn]), Bn = _e(B(`[^()"'/]|<0>|\\(<self>*\\)`, [Un]), 2), sn = "\\b(?:assembly|event|field|method|module|param|property|return|type)\\b", wa = B("<0>(?:\\s*\\(<1>*\\))?", [ce, Bn]), Ct = `:[^
2275
- }]+`, Gn = _e(B(`[^()"'/]|<0>|\\(<self>*\\)`, [Un]), 2), on = B("\\{(?!\\{)(?:(?![}:])<0>)*<1>?\\}", [Gn, Ct]), zn = _e(B(`[^()"'/]|/(?!\\*)|/\\*(?:[^*]|\\*(?!/))*\\*/|<0>|\\(<self>*\\)`, [Fn]), 2), ln = B("\\{(?!\\{)(?:(?![}:])<0>)*<1>?\\}", [zn, Ct]), cn = (e, t) => ({
2274
+ |/\\*(?:[^*]|\\*(?!/))*\\*/|<0>`, [Yn]), Qn = ye(U(`[^()"'/]|<0>|\\(<self>*\\)`, [Xn]), 2), dn = "\\b(?:assembly|event|field|method|module|param|property|return|type)\\b", Ca = U("<0>(?:\\s*\\(<1>*\\))?", [de, Qn]), Dt = `:[^
2275
+ }]+`, Jn = ye(U(`[^()"'/]|<0>|\\(<self>*\\)`, [Xn]), 2), un = U("\\{(?!\\{)(?:(?![}:])<0>)*<1>?\\}", [Jn, Dt]), ea = ye(U(`[^()"'/]|/(?!\\*)|/\\*(?:[^*]|\\*(?!/))*\\*/|<0>|\\(<self>*\\)`, [Yn]), 2), pn = U("\\{(?!\\{)(?:(?![}:])<0>)*<1>?\\}", [ea, Dt]), fn = (e, t) => ({
2276
2276
  interpolation: {
2277
2277
  pattern: O("((?:^|[^{])(?:\\{\\{)*)<0>", [e]),
2278
2278
  lookbehind: !0,
2279
2279
  inside: {
2280
2280
  "format-string": {
2281
- pattern: O("(^\\{(?:(?![}:])<0>)*)<1>(?=\\}$)", [t, Ct]),
2281
+ pattern: O("(^\\{(?:(?![}:])<0>)*)<1>(?=\\}$)", [t, Dt]),
2282
2282
  lookbehind: !0,
2283
2283
  inside: {
2284
2284
  punctuation: /^:/
@@ -2288,30 +2288,30 @@ var Fn = $n + "|" + Dn, Un = B(`/(?![*/])|//[^
2288
2288
  expression: {
2289
2289
  pattern: /[^]+/,
2290
2290
  alias: "language-csharp",
2291
- inside: ne
2291
+ inside: re
2292
2292
  }
2293
2293
  }
2294
2294
  },
2295
2295
  string: /[^]+/
2296
2296
  });
2297
- D(ne, "class-name", {
2297
+ $(re, "class-name", {
2298
2298
  attribute: {
2299
2299
  // Attributes
2300
2300
  // [Foo], [Foo(1), Bar(2, Prop = "foo")], [return: Foo(1), Bar(2)], [assembly: Foo(Bar)]
2301
- pattern: O("((?:^|[^\\s\\w>)?])\\s*\\[\\s*)(?:<0>\\s*:\\s*)?<1>(?:\\s*,\\s*<1>)*(?=\\s*\\])", [sn, wa], "g"),
2301
+ pattern: O("((?:^|[^\\s\\w>)?])\\s*\\[\\s*)(?:<0>\\s*:\\s*)?<1>(?:\\s*,\\s*<1>)*(?=\\s*\\])", [dn, Ca], "g"),
2302
2302
  lookbehind: !0,
2303
2303
  greedy: !0,
2304
2304
  inside: {
2305
2305
  target: {
2306
- pattern: O("^<0>(?=\\s*:)", [sn]),
2306
+ pattern: O("^<0>(?=\\s*:)", [dn]),
2307
2307
  alias: "keyword"
2308
2308
  },
2309
2309
  "attribute-arguments": {
2310
- pattern: O("\\(<0>*\\)", [Bn]),
2311
- inside: ne
2310
+ pattern: O("\\(<0>*\\)", [Qn]),
2311
+ inside: re
2312
2312
  },
2313
2313
  "class-name": {
2314
- pattern: RegExp(ce),
2314
+ pattern: RegExp(de),
2315
2315
  inside: {
2316
2316
  punctuation: /\./
2317
2317
  }
@@ -2320,27 +2320,27 @@ D(ne, "class-name", {
2320
2320
  }
2321
2321
  }
2322
2322
  });
2323
- D(ne, "string", {
2323
+ $(re, "string", {
2324
2324
  "interpolation-string": [
2325
2325
  {
2326
- pattern: O('(^|[^\\\\])(?:\\$@|@\\$)"(?:""|\\\\[\\s\\S]|\\{\\{|<0>|[^\\\\{"])*"', [on], "g"),
2326
+ pattern: O('(^|[^\\\\])(?:\\$@|@\\$)"(?:""|\\\\[\\s\\S]|\\{\\{|<0>|[^\\\\{"])*"', [un], "g"),
2327
2327
  lookbehind: !0,
2328
2328
  greedy: !0,
2329
- inside: cn(on, Gn)
2329
+ inside: fn(un, Jn)
2330
2330
  },
2331
2331
  {
2332
- pattern: O('(^|[^@\\\\])\\$"(?:\\\\.|\\{\\{|<0>|[^\\\\"{])*"', [ln], "g"),
2332
+ pattern: O('(^|[^@\\\\])\\$"(?:\\\\.|\\{\\{|<0>|[^\\\\"{])*"', [pn], "g"),
2333
2333
  lookbehind: !0,
2334
2334
  greedy: !0,
2335
- inside: cn(ln, zn)
2335
+ inside: fn(pn, ea)
2336
2336
  }
2337
2337
  ],
2338
2338
  char: {
2339
- pattern: RegExp(Dn, "g"),
2339
+ pattern: RegExp(Wn, "g"),
2340
2340
  greedy: !0
2341
2341
  }
2342
2342
  });
2343
- E.graphql = {
2343
+ b.graphql = {
2344
2344
  comment: /#.*/,
2345
2345
  description: {
2346
2346
  pattern: /(?:"""(?:[^"]|"(?!""))*"""|"(?:\\.|[^\\\n"])*")(?=\s*[a-z_])/gi,
@@ -2359,7 +2359,7 @@ E.graphql = {
2359
2359
  greedy: !0
2360
2360
  },
2361
2361
  number: /(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,
2362
- boolean: W,
2362
+ boolean: K,
2363
2363
  variable: /\$[a-z_]\w*/i,
2364
2364
  directive: {
2365
2365
  pattern: /@[a-z_]\w*/i,
@@ -2400,15 +2400,15 @@ E.graphql = {
2400
2400
  object: /\w+(?=\s*\{)/,
2401
2401
  punctuation: /[()[\]{},:!=]/,
2402
2402
  property: /\w+/,
2403
- [le](e, t) {
2404
- for (var n = Ye(e, t), s = n.filter(({ type: a }) => a && a != "comment" && a != "scalar"), d = s.length, p = 0, b = (a) => {
2403
+ [ee](e, t) {
2404
+ for (var n = Oe(e, t), i = n.filter(({ type: a }) => a && a != "comment" && a != "scalar"), d = i.length, p = 0, g = (a) => {
2405
2405
  for (var r = 0; r < a.length; r++)
2406
- if (p + r == d || s[p + r].type != a[r])
2406
+ if (p + r == d || i[p + r].type != a[r])
2407
2407
  return !0;
2408
- }, m = (a, r) => {
2408
+ }, h = (a, r) => {
2409
2409
  for (var u = 1, o = p; o < d; o++) {
2410
- var i = s[o], f = i.content;
2411
- if (i.type == "punctuation") {
2410
+ var s = i[o], f = s.content;
2411
+ if (s.type == "punctuation") {
2412
2412
  if (a == f)
2413
2413
  u++;
2414
2414
  else if (r == f && !--u)
@@ -2416,24 +2416,24 @@ E.graphql = {
2416
2416
  }
2417
2417
  }
2418
2418
  }; p < d; ) {
2419
- var _ = s[p++];
2420
- if (_.type == "keyword" && _.content == "mutation") {
2419
+ var E = i[p++];
2420
+ if (E.type == "keyword" && E.content == "mutation") {
2421
2421
  var y = [];
2422
- if (!b(["definition-mutation", "punctuation"]) && s[p + 1].content == "(") {
2422
+ if (!g(["definition-mutation", "punctuation"]) && i[p + 1].content == "(") {
2423
2423
  p += 2;
2424
- var l = m("(", ")");
2424
+ var l = h("(", ")");
2425
2425
  if (!l) continue;
2426
2426
  for (; p < l; p++) {
2427
- var c = s[p];
2427
+ var c = i[p];
2428
2428
  c.type == "variable" && (c.alias = "variable-input", y.push(c.content));
2429
2429
  }
2430
2430
  p = l + 1;
2431
2431
  }
2432
- if (!b(["punctuation", "property-query"]) && s[p].content == "{" && (s[++p].alias = "property-mutation", y[0])) {
2433
- var w = m("{", "}");
2434
- if (w) for (var g = p; g < w; g++) {
2435
- var h = s[g];
2436
- h.type == "variable" && y.indexOf(h.content) >= 0 && (h.alias = "variable-input");
2432
+ if (!g(["punctuation", "property-query"]) && i[p].content == "{" && (i[++p].alias = "property-mutation", y[0])) {
2433
+ var w = h("{", "}");
2434
+ if (w) for (var m = p; m < w; m++) {
2435
+ var _ = i[m];
2436
+ _.type == "variable" && y.indexOf(_.content) >= 0 && (_.alias = "variable-input");
2437
2437
  }
2438
2438
  }
2439
2439
  }
@@ -2441,7 +2441,7 @@ E.graphql = {
2441
2441
  return n;
2442
2442
  }
2443
2443
  };
2444
- E.webmanifest = E.json = {
2444
+ b.webmanifest = b.json = {
2445
2445
  property: {
2446
2446
  pattern: /"(?:\\.|[^\\\n"])*"(?=\s*:)/g,
2447
2447
  greedy: !0
@@ -2450,19 +2450,19 @@ E.webmanifest = E.json = {
2450
2450
  pattern: /"(?:\\.|[^\\\n"])*"/g,
2451
2451
  greedy: !0
2452
2452
  },
2453
- comment: re(),
2453
+ comment: se(),
2454
2454
  number: /-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,
2455
2455
  operator: /:/,
2456
2456
  punctuation: /[[\]{},]/,
2457
- boolean: W,
2457
+ boolean: K,
2458
2458
  null: {
2459
2459
  pattern: /\bnull\b/,
2460
2460
  alias: "keyword"
2461
2461
  }
2462
2462
  };
2463
- E.makefile = {
2463
+ b.makefile = {
2464
2464
  comment: /#(?:\\[^]|[^\\\n])*/,
2465
- string: Nt(),
2465
+ string: Ct(),
2466
2466
  "builtin-target": {
2467
2467
  pattern: /\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,
2468
2468
  alias: "builtin"
@@ -2484,8 +2484,8 @@ E.makefile = {
2484
2484
  operator: /(?:::|[?:+!])?=|[|@]/,
2485
2485
  punctuation: /[:;(){}]/
2486
2486
  };
2487
- var Mt = E.scss = ae("css", {
2488
- comment: re(),
2487
+ var Ft = b.scss = ie("css", {
2488
+ comment: se(),
2489
2489
  atrule: {
2490
2490
  pattern: /@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,
2491
2491
  inside: {
@@ -2521,7 +2521,7 @@ var Mt = E.scss = ae("css", {
2521
2521
  }
2522
2522
  }
2523
2523
  });
2524
- D(Mt, "atrule", {
2524
+ $(Ft, "atrule", {
2525
2525
  keyword: [
2526
2526
  /@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,
2527
2527
  {
@@ -2530,11 +2530,11 @@ D(Mt, "atrule", {
2530
2530
  }
2531
2531
  ]
2532
2532
  });
2533
- D(Mt, "important", {
2533
+ $(Ft, "important", {
2534
2534
  // var and interpolated vars
2535
2535
  variable: /\$[-\w]+|#\{\$[-\w]+\}/
2536
2536
  });
2537
- D(Mt, "function", {
2537
+ $(Ft, "function", {
2538
2538
  "module-modifier": {
2539
2539
  pattern: /\b(?:as|hide|show|with)\b/i,
2540
2540
  alias: "keyword"
@@ -2547,7 +2547,7 @@ D(Mt, "function", {
2547
2547
  pattern: /\B!(?:default|optional)\b/i,
2548
2548
  alias: "keyword"
2549
2549
  },
2550
- boolean: W,
2550
+ boolean: K,
2551
2551
  null: {
2552
2552
  pattern: /\bnull\b/,
2553
2553
  alias: "keyword"
@@ -2557,25 +2557,25 @@ D(Mt, "function", {
2557
2557
  lookbehind: !0
2558
2558
  }
2559
2559
  });
2560
- var Hn = {
2560
+ var ta = {
2561
2561
  pattern: /(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\d)(?:(?!\s)[$\w\xa0-\uffff])+(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/g,
2562
2562
  lookbehind: !0,
2563
2563
  greedy: !0
2564
- }, ye = E.ts = E.typescript = ae("js", {
2565
- "class-name": Hn
2564
+ }, ve = b.ts = b.typescript = ie("js", {
2565
+ "class-name": ta
2566
2566
  });
2567
- D(ye, "operator", {
2567
+ $(ve, "operator", {
2568
2568
  builtin: /\b(?:Array|Function|Promise|any|boolean|never|number|string|symbol|unknown)\b/
2569
2569
  });
2570
- ye.keyword.push(
2570
+ ve.keyword.push(
2571
2571
  /\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*\*)/
2572
2572
  );
2573
- delete ye.parameter;
2574
- delete ye["literal-property"];
2575
- var Pt = Hn.inside = Object.assign({}, ye);
2576
- delete Pt["class-name"];
2577
- delete Pt["maybe-class-name"];
2578
- D(ye, "function", {
2573
+ delete ve.parameter;
2574
+ delete ve["literal-property"];
2575
+ var Ut = ta.inside = Object.assign({}, ve);
2576
+ delete Ut["class-name"];
2577
+ delete Ut["maybe-class-name"];
2578
+ $(ve, "function", {
2579
2579
  decorator: {
2580
2580
  pattern: /@[$\w\xa0-\uffff]+/,
2581
2581
  inside: {
@@ -2595,35 +2595,35 @@ D(ye, "function", {
2595
2595
  pattern: /<[^]+/,
2596
2596
  // everything after the first <
2597
2597
  alias: "class-name",
2598
- inside: Pt
2598
+ inside: Ut
2599
2599
  },
2600
2600
  function: /\S+/
2601
2601
  }
2602
2602
  }
2603
2603
  });
2604
- Ln(E.ts, "tsx");
2605
- var yt = E.tsx.tag, Vn = "(?:^|(";
2604
+ Vn(b.ts, "tsx");
2605
+ var At = b.tsx.tag, na = "(?:^|(";
2606
2606
  try {
2607
- RegExp("(?<=)"), Vn += "?<=";
2607
+ RegExp("(?<=)"), na += "?<=";
2608
2608
  } catch {
2609
- yt.lookbehind = !0;
2609
+ At.lookbehind = !0;
2610
2610
  }
2611
- yt.pattern = RegExp(Vn + `[^\\w$])|(?=</))${yt.pattern.source}`, "g");
2612
- var vt = /[*&][^\s[\]{},]+/, wt = /!(?:<[\w%#;/?:@&=$,.!~*'()[\]+-]+>|(?:[a-zA-Z\d-]*!)?[\w%#;/?:@&=$.~*'()+-]+)?/, xt = `(?:${wt.source}(?:[ ]+${vt.source})?|${vt.source}(?:[ ]+${wt.source})?)`, xa = B(
2611
+ At.pattern = RegExp(na + `[^\\w$])|(?=</))${At.pattern.source}`, "g");
2612
+ var It = /[*&][^\s[\]{},]+/, Rt = /!(?:<[\w%#;/?:@&=$,.!~*'()[\]+-]+>|(?:[a-zA-Z\d-]*!)?[\w%#;/?:@&=$.~*'()+-]+)?/, St = `(?:${Rt.source}(?:[ ]+${It.source})?|${It.source}(?:[ ]+${Rt.source})?)`, Ma = U(
2613
2613
  "(?:[^\\s\0-\\x08\\x0e-\\x1f!\"#%&'*,:>?@[\\]{}`|\\x7f-\\x84\\x86-\\x9f\\ud800-\\udfff\\ufffe\\uffff-]|[?:-]<0>)(?:[ ]*(?:(?![#:])<0>|:<0>))*",
2614
2614
  ["[^\\s\0-\\x08\\x0e-\\x1f,[\\]{}\\x7f-\\x84\\x86-\\x9f\\ud800-\\udfff\\ufffe\\uffff]"]
2615
- ), dn = `"(?:\\\\.|[^\\\\
2615
+ ), bn = `"(?:\\\\.|[^\\\\
2616
2616
  "])*"|'(?:\\\\.|[^\\\\
2617
- '])*'`, Ae = (e, t) => O(
2617
+ '])*'`, Ie = (e, t) => O(
2618
2618
  `([:,[{-]\\s*(?:\\s<0>[ ]+)?)<1>(?=[ ]*(?:$|,|\\]|\\}|(?:
2619
2619
  \\s*)?#))`,
2620
- [xt, e],
2620
+ [St, e],
2621
2621
  t
2622
2622
  );
2623
- E.yml = E.yaml = {
2623
+ b.yml = b.yaml = {
2624
2624
  scalar: {
2625
2625
  pattern: O(`([:-]\\s*(?:\\s<0>[ ]+)?[|>])[ ]*(?:(
2626
- [ ]+)\\S.*(?:\\2.+)*)`, [xt]),
2626
+ [ ]+)\\S.*(?:\\2.+)*)`, [St]),
2627
2627
  lookbehind: !0,
2628
2628
  alias: "string"
2629
2629
  },
@@ -2632,7 +2632,7 @@ E.yml = E.yaml = {
2632
2632
  pattern: O(
2633
2633
  `((?:^|[:,[{
2634
2634
  ?-])[ ]*(?:<0>[ ]+)?)<1>(?=\\s*:\\s)`,
2635
- [xt, "(?:" + xa + "|" + dn + ")"],
2635
+ [St, "(?:" + Ma + "|" + bn + ")"],
2636
2636
  "g"
2637
2637
  ),
2638
2638
  lookbehind: !0,
@@ -2645,48 +2645,48 @@ E.yml = E.yaml = {
2645
2645
  alias: "important"
2646
2646
  },
2647
2647
  datetime: {
2648
- pattern: Ae("\\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"),
2648
+ 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"),
2649
2649
  lookbehind: !0,
2650
2650
  alias: "number"
2651
2651
  },
2652
2652
  boolean: {
2653
- pattern: Ae("false|true", "im"),
2653
+ pattern: Ie("false|true", "im"),
2654
2654
  lookbehind: !0,
2655
2655
  alias: "important"
2656
2656
  },
2657
2657
  null: {
2658
- pattern: Ae("null|~", "im"),
2658
+ pattern: Ie("null|~", "im"),
2659
2659
  lookbehind: !0,
2660
2660
  alias: "important"
2661
2661
  },
2662
2662
  string: {
2663
- pattern: Ae(dn, "mg"),
2663
+ pattern: Ie(bn, "mg"),
2664
2664
  lookbehind: !0,
2665
2665
  greedy: !0
2666
2666
  },
2667
2667
  number: {
2668
- pattern: Ae("[+-]?(?:0x[a-f\\d]+|0o[0-7]+|(?:\\d+(?:\\.\\d*)?|\\.\\d+)(?:e[+-]?\\d+)?|\\.inf|\\.nan)", "im"),
2668
+ pattern: Ie("[+-]?(?:0x[a-f\\d]+|0o[0-7]+|(?:\\d+(?:\\.\\d*)?|\\.\\d+)(?:e[+-]?\\d+)?|\\.inf|\\.nan)", "im"),
2669
2669
  lookbehind: !0
2670
2670
  },
2671
- tag: wt,
2672
- important: vt,
2671
+ tag: Rt,
2672
+ important: It,
2673
2673
  punctuation: /---|[:[\]{},|>?-]|\.{3}/
2674
2674
  };
2675
- var un = {
2675
+ var gn = {
2676
2676
  pattern: /\\[\\()[\]{}^$+*?|.]/,
2677
2677
  alias: "escape"
2678
- }, 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]|.)/, Aa = {
2678
+ }, 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]|.)/, Pa = {
2679
2679
  pattern: /\.|\\[wsd]|\\p\{[^{}]+\}/i,
2680
2680
  alias: "class-name"
2681
- }, Ia = {
2681
+ }, $a = {
2682
2682
  pattern: /\\[wsd]|\\p\{[^{}]+\}/i,
2683
2683
  alias: "class-name"
2684
- }, pn = "(?:[^\\\\-]|" + Ue.source + ")", Ra = RegExp(pn + "-" + pn), fn = {
2684
+ }, mn = "(?:[^\\\\-]|" + He.source + ")", Da = RegExp(mn + "-" + mn), hn = {
2685
2685
  pattern: /(<|')[^<>']+(?=[>']$)/,
2686
2686
  lookbehind: !0,
2687
2687
  alias: "variable"
2688
2688
  };
2689
- E.regex = {
2689
+ b.regex = {
2690
2690
  "char-class": {
2691
2691
  pattern: /((?:^|[^\\])(?:\\\\)*)\[(?:\\[^]|[^\\\]])*\]/,
2692
2692
  lookbehind: !0,
@@ -2701,22 +2701,22 @@ E.regex = {
2701
2701
  alias: "operator"
2702
2702
  },
2703
2703
  range: {
2704
- pattern: Ra,
2704
+ pattern: Da,
2705
2705
  inside: {
2706
- escape: Ue,
2706
+ escape: He,
2707
2707
  "range-punctuation": {
2708
2708
  pattern: /-/,
2709
2709
  alias: "operator"
2710
2710
  }
2711
2711
  }
2712
2712
  },
2713
- "special-escape": un,
2714
- "char-set": Ia,
2715
- escape: Ue
2713
+ "special-escape": gn,
2714
+ "char-set": $a,
2715
+ escape: He
2716
2716
  }
2717
2717
  },
2718
- "special-escape": un,
2719
- "char-set": Aa,
2718
+ "special-escape": gn,
2719
+ "char-set": Pa,
2720
2720
  backreference: [
2721
2721
  {
2722
2722
  // a backreference which is not an octal escape
@@ -2727,7 +2727,7 @@ E.regex = {
2727
2727
  pattern: /\\k<[^<>']+>/,
2728
2728
  alias: "keyword",
2729
2729
  inside: {
2730
- "group-name": fn
2730
+ "group-name": hn
2731
2731
  }
2732
2732
  }
2733
2733
  ],
@@ -2735,7 +2735,7 @@ E.regex = {
2735
2735
  pattern: /[$^]|\\[ABbGZz]/,
2736
2736
  alias: "function"
2737
2737
  },
2738
- escape: Ue,
2738
+ escape: He,
2739
2739
  group: [
2740
2740
  {
2741
2741
  // https://docs.oracle.com/javase/10/docs/api/java/util/regex/Pattern.html
@@ -2744,7 +2744,7 @@ E.regex = {
2744
2744
  pattern: /(\()\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[!=]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?)/,
2745
2745
  lookbehind: !0,
2746
2746
  inside: {
2747
- "group-name": fn
2747
+ "group-name": hn
2748
2748
  }
2749
2749
  },
2750
2750
  {
@@ -2761,75 +2761,625 @@ E.regex = {
2761
2761
  alias: "keyword"
2762
2762
  }
2763
2763
  };
2764
- const Sa = (e, t, ...n) => {
2764
+ var _n = /\/\*[^]*?\*\/|\/\/.*|#(?!\[).*/, En = [
2765
+ {
2766
+ pattern: /\b(?:false|true)\b/i,
2767
+ alias: "boolean"
2768
+ },
2769
+ {
2770
+ pattern: /(::\s*)\b[a-z_]\w*\b(?!\s*\()/gi,
2771
+ lookbehind: !0,
2772
+ greedy: !0
2773
+ },
2774
+ {
2775
+ pattern: /(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/gi,
2776
+ lookbehind: !0,
2777
+ greedy: !0
2778
+ },
2779
+ /\b(?:null)\b/i,
2780
+ /\b[A-Z_][A-Z\d_]*\b(?!\s*\()/
2781
+ ], yn = /\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, vn = /<?=>|\?\?=?|\.{3}|\??->|[!=]==|::|--|\+\+|&&|\*\*=?|\|\||>>|<<|[?~]|[.%&|^!=<>/*+-]=?/, kt = {
2782
+ pattern: /\{\$(?:[^{}]|\{(?:[^{}]|\{[^}]+\})*\})*\}|(^|[^\\{])\$+(?:\w+(?:\[[^\n[\]]*\]|->\w+)?)/,
2783
+ lookbehind: !0
2784
+ }, wn = [
2785
+ {
2786
+ pattern: /<<<'([^']+)'\n(?:.*\n)*?\1;/g,
2787
+ alias: "nowdoc-string",
2788
+ greedy: !0,
2789
+ inside: {
2790
+ delimiter: {
2791
+ pattern: /^<<<'[^']+'|[a-z_]\w*;$/i,
2792
+ alias: "symbol",
2793
+ inside: {
2794
+ punctuation: /^<<<'?|[';]$/
2795
+ }
2796
+ }
2797
+ }
2798
+ },
2799
+ {
2800
+ pattern: /<<<(?:"([^"]+)"\n(?:.*\n)*?\1;|([a-z_]\w*)\n(?:.*\n)*?\2;)/gi,
2801
+ greedy: !0,
2802
+ alias: "heredoc-string",
2803
+ inside: {
2804
+ delimiter: {
2805
+ pattern: /^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,
2806
+ alias: "symbol",
2807
+ inside: {
2808
+ punctuation: /^<<<"?|[";]$/
2809
+ }
2810
+ },
2811
+ interpolation: kt
2812
+ }
2813
+ },
2814
+ {
2815
+ pattern: /`(?:\\[^]|[^\\`])*`/g,
2816
+ alias: "backtick-quoted-string",
2817
+ greedy: !0
2818
+ },
2819
+ {
2820
+ pattern: /'(?:\\[^]|[^\\'])*'/g,
2821
+ greedy: !0,
2822
+ alias: "single-quoted-string"
2823
+ },
2824
+ {
2825
+ pattern: /"(?:\\[^]|[^\\"])*"/g,
2826
+ greedy: !0,
2827
+ alias: "double-quoted-string",
2828
+ inside: {
2829
+ interpolation: kt
2830
+ }
2831
+ }
2832
+ ], xn = kt.inside = {
2833
+ delimiter: {
2834
+ pattern: /\?>$|^<\?(?:php(?=\s)|=)?/i,
2835
+ alias: "important"
2836
+ },
2837
+ "doc-comment": {
2838
+ pattern: /\/\*\*(?!\/)[^]*?\*\//g,
2839
+ greedy: !0,
2840
+ alias: "comment",
2841
+ inside: "phpdoc"
2842
+ },
2843
+ comment: _n,
2844
+ string: wn,
2845
+ attribute: {
2846
+ pattern: /#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[^]|[^\\"])*"|'(?:\\[^]|[^\\'])*')+\](?=\s*[a-z$#])/img,
2847
+ greedy: !0,
2848
+ inside: {
2849
+ "attribute-content": {
2850
+ pattern: /^(..)[^]+(?=.)/,
2851
+ lookbehind: !0,
2852
+ // inside can appear subset of php
2853
+ inside: {
2854
+ comment: _n,
2855
+ string: wn,
2856
+ "attribute-class-name": [
2857
+ {
2858
+ pattern: /([^:]|^)\b[a-z_]\w*(?!\\)\b/gi,
2859
+ lookbehind: !0,
2860
+ greedy: !0,
2861
+ alias: "class-name"
2862
+ },
2863
+ {
2864
+ pattern: /([^:]|^)(?:\\?\b[a-z_]\w*)+/gi,
2865
+ lookbehind: !0,
2866
+ greedy: !0,
2867
+ alias: "class-name class-name-fully-qualified",
2868
+ inside: {
2869
+ punctuation: /\\/
2870
+ }
2871
+ }
2872
+ ],
2873
+ constant: En,
2874
+ number: yn,
2875
+ operator: vn,
2876
+ punctuation: ae
2877
+ }
2878
+ },
2879
+ delimiter: {
2880
+ pattern: /.+/,
2881
+ alias: "punctuation"
2882
+ }
2883
+ }
2884
+ },
2885
+ variable: /\$+(?:\w+|(?=\{))/,
2886
+ package: {
2887
+ pattern: /(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,
2888
+ lookbehind: !0,
2889
+ inside: {
2890
+ punctuation: /\\/
2891
+ }
2892
+ },
2893
+ "class-name-definition": {
2894
+ pattern: /(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,
2895
+ lookbehind: !0,
2896
+ alias: "class-name"
2897
+ },
2898
+ "function-definition": {
2899
+ pattern: /(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,
2900
+ lookbehind: !0,
2901
+ alias: "function"
2902
+ },
2903
+ keyword: [
2904
+ {
2905
+ pattern: /(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/gi,
2906
+ lookbehind: !0,
2907
+ greedy: !0,
2908
+ alias: "type-casting"
2909
+ },
2910
+ {
2911
+ pattern: /([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/gi,
2912
+ lookbehind: !0,
2913
+ greedy: !0,
2914
+ alias: "type-hint"
2915
+ },
2916
+ {
2917
+ pattern: /(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|never|object|self|static|string|void)\b/gi,
2918
+ lookbehind: !0,
2919
+ greedy: !0,
2920
+ alias: "return-type"
2921
+ },
2922
+ {
2923
+ pattern: /\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/gi,
2924
+ alias: "type-declaration",
2925
+ greedy: !0
2926
+ },
2927
+ {
2928
+ pattern: /(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/gi,
2929
+ lookbehind: !0,
2930
+ greedy: !0,
2931
+ alias: "type-declaration"
2932
+ },
2933
+ {
2934
+ pattern: /\b(?:parent|self|static)(?=\s*::)/gi,
2935
+ greedy: !0,
2936
+ alias: "static-context"
2937
+ },
2938
+ {
2939
+ // yield from
2940
+ pattern: /(\byield\s+)from\b/gi,
2941
+ lookbehind: !0
2942
+ },
2943
+ // `class` is always a keyword unlike other keywords
2944
+ /\bclass\b/i,
2945
+ {
2946
+ // https://www.php.net/manual/en/reserved.keywords.php
2947
+ //
2948
+ // keywords cannot be preceded by "->"
2949
+ // the complex lookbehind means `(?<!(?:->|::)\s*)`
2950
+ pattern: /((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|[fx]?or|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|never|new|parent|print|private|protected|public|readonly|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|yield|__halt_compiler)\b/i,
2951
+ lookbehind: !0
2952
+ }
2953
+ ],
2954
+ "argument-name": {
2955
+ pattern: /([(,]\s*)\b[a-z_]\w*(?=\s*:(?!:))/i,
2956
+ lookbehind: !0
2957
+ },
2958
+ "class-name": [
2959
+ {
2960
+ pattern: /(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/gi,
2961
+ lookbehind: !0,
2962
+ greedy: !0
2963
+ },
2964
+ {
2965
+ pattern: /(\|\s*)\b[a-z_]\w*(?!\\)\b/gi,
2966
+ lookbehind: !0,
2967
+ greedy: !0
2968
+ },
2969
+ {
2970
+ pattern: /\b[a-z_]\w*(?!\\)\b(?=\s*\|)/gi,
2971
+ greedy: !0
2972
+ },
2973
+ {
2974
+ pattern: /(\|\s*)(?:\\?\b[a-z_]\w*)+\b/gi,
2975
+ lookbehind: !0,
2976
+ greedy: !0,
2977
+ alias: "class-name-fully-qualified",
2978
+ inside: {
2979
+ punctuation: /\\/
2980
+ }
2981
+ },
2982
+ {
2983
+ pattern: /(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/gi,
2984
+ greedy: !0,
2985
+ alias: "class-name-fully-qualified",
2986
+ inside: {
2987
+ punctuation: /\\/
2988
+ }
2989
+ },
2990
+ {
2991
+ pattern: /(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/gi,
2992
+ lookbehind: !0,
2993
+ greedy: !0,
2994
+ alias: "class-name-fully-qualified",
2995
+ inside: {
2996
+ punctuation: /\\/
2997
+ }
2998
+ },
2999
+ {
3000
+ pattern: /\b[a-z_]\w*(?=\s*\$)/gi,
3001
+ greedy: !0,
3002
+ alias: "type-declaration"
3003
+ },
3004
+ {
3005
+ pattern: /(?:\\?\b[a-z_]\w*)+(?=\s*\$)/gi,
3006
+ greedy: !0,
3007
+ alias: "class-name-fully-qualified type-declaration",
3008
+ inside: {
3009
+ punctuation: /\\/
3010
+ }
3011
+ },
3012
+ {
3013
+ pattern: /\b[a-z_]\w*(?=\s*::)/gi,
3014
+ greedy: !0,
3015
+ alias: "static-context"
3016
+ },
3017
+ {
3018
+ pattern: /(?:\\?\b[a-z_]\w*)+(?=\s*::)/gi,
3019
+ greedy: !0,
3020
+ alias: "class-name-fully-qualified static-context",
3021
+ inside: {
3022
+ punctuation: /\\/
3023
+ }
3024
+ },
3025
+ {
3026
+ pattern: /([(,?]\s*)[a-z_]\w*(?=\s*\$)/gi,
3027
+ lookbehind: !0,
3028
+ greedy: !0,
3029
+ alias: "type-hint"
3030
+ },
3031
+ {
3032
+ pattern: /([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/gi,
3033
+ lookbehind: !0,
3034
+ greedy: !0,
3035
+ alias: "class-name-fully-qualified type-hint",
3036
+ inside: {
3037
+ punctuation: /\\/
3038
+ }
3039
+ },
3040
+ {
3041
+ pattern: /(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/gi,
3042
+ alias: "return-type",
3043
+ lookbehind: !0,
3044
+ greedy: !0
3045
+ },
3046
+ {
3047
+ pattern: /(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/gi,
3048
+ lookbehind: !0,
3049
+ greedy: !0,
3050
+ alias: "class-name-fully-qualified return-type",
3051
+ inside: {
3052
+ punctuation: /\\/
3053
+ }
3054
+ }
3055
+ ],
3056
+ constant: En,
3057
+ function: {
3058
+ pattern: /(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,
3059
+ lookbehind: !0,
3060
+ inside: {
3061
+ punctuation: /\\/
3062
+ }
3063
+ },
3064
+ property: {
3065
+ pattern: /(->\s*)\w+/,
3066
+ lookbehind: !0
3067
+ },
3068
+ number: yn,
3069
+ operator: vn,
3070
+ punctuation: ae
3071
+ }, Fa = zn("html");
3072
+ b.php = {
3073
+ php: {
3074
+ pattern: /<\?(?:[^"'/#]|\/(?![*/])|(["'])(?:\\[^]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^\n?]|\?(?!>))*(?=$|\?>|\n)|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/,
3075
+ alias: "language-php",
3076
+ inside: xn
3077
+ },
3078
+ [ee]: (e, t) => e.includes("<?") ? Fa(e, t) : Ne(e, xn)
3079
+ };
3080
+ var Ua = [`(?:\\\\.|[^\\\\
3081
+ ]|
3082
+ (?!
3083
+ ))`], Fe = (e) => O(`((?:^|[^\\\\])(?:\\\\\\\\)*)(?:${e})`, Ua, "g"), Tt = /(?:\\.|``(?:[^\n`]|`(?!`))+``|`[^\n`]+`|[^\\\n|`])+/, An = U(`\\|?<0>(?:\\|<0>)+\\|?(?:
3084
+ |(?![\\s\\S]))`, [Tt.source]), Ba = `\\|?[ ]*:?-{3,}:?[ ]*(?:\\|[ ]*:?-{3,}:?[ ]*)+\\|?
3085
+ `, me = b.md = b.markdown = et(b.html);
3086
+ $(me, "prolog", {
3087
+ "front-matter-block": {
3088
+ pattern: /(^(?:\s*\n)?)---(?!.)[^]*?\n---(?!.)/g,
3089
+ lookbehind: !0,
3090
+ greedy: !0,
3091
+ inside: {
3092
+ punctuation: /^---|---$/,
3093
+ "front-matter": {
3094
+ pattern: /\S(?:[^]*\S)?/,
3095
+ alias: "language-yaml",
3096
+ inside: "yaml"
3097
+ }
3098
+ }
3099
+ },
3100
+ blockquote: {
3101
+ // > ...
3102
+ pattern: /^>(?:[ ]*>)*/m,
3103
+ alias: "punctuation"
3104
+ },
3105
+ table: {
3106
+ pattern: RegExp("^" + An + Ba + "(?:" + An + ")*", "m"),
3107
+ inside: {
3108
+ "table-header-row": {
3109
+ pattern: /^.+/,
3110
+ inside: {
3111
+ "table-header": {
3112
+ pattern: Tt,
3113
+ alias: "important",
3114
+ inside: me
3115
+ },
3116
+ punctuation: /\|/
3117
+ }
3118
+ },
3119
+ "table-data-rows": {
3120
+ pattern: /(.+\n)[^]+/,
3121
+ lookbehind: !0,
3122
+ inside: {
3123
+ "table-data": {
3124
+ pattern: Tt,
3125
+ inside: me
3126
+ },
3127
+ punctuation: /\|/
3128
+ }
3129
+ },
3130
+ "table-line": {
3131
+ pattern: /.+/,
3132
+ inside: {
3133
+ punctuation: /\S+/
3134
+ }
3135
+ }
3136
+ }
3137
+ },
3138
+ code: [
3139
+ {
3140
+ // Prefixed by 4 spaces or 1 tab and preceded by an empty line
3141
+ pattern: /(^[ ]*\n)(?: | ).+(?:\n(?: | ).+)*/m,
3142
+ lookbehind: !0,
3143
+ alias: "keyword"
3144
+ },
3145
+ {
3146
+ // ```optional language
3147
+ // code block
3148
+ // ```
3149
+ pattern: /^(```+)[^`][^]*?^\1`*$/mg,
3150
+ greedy: !0,
3151
+ inside: {
3152
+ punctuation: /^`+|`+$/,
3153
+ "code-language": /^.+/,
3154
+ "code-block": /(?!^)[^]+(?=\n)/,
3155
+ [ee](e, t) {
3156
+ var n = Oe(e, t), i;
3157
+ return n[5] && (i = (/[a-z][\w-]*/i.exec(
3158
+ n[1].content.replace(/\b#/g, "sharp").replace(/\b\+\+/g, "pp")
3159
+ ) || [""])[0].toLowerCase(), n[3].alias = "language-" + i, (t = b[i]) && (n[3].content = Ne(n[3].content, t))), n;
3160
+ }
3161
+ }
3162
+ }
3163
+ ],
3164
+ title: [
3165
+ {
3166
+ // title 1
3167
+ // =======
3168
+ // title 2
3169
+ // -------
3170
+ pattern: /\S.*\n(?:==+|--+)(?=[ ]*$)/m,
3171
+ alias: "important",
3172
+ inside: {
3173
+ punctuation: /=+$|-+$/
3174
+ }
3175
+ },
3176
+ {
3177
+ // # title 1
3178
+ // ###### title 6
3179
+ pattern: /(^\s*)#.+/m,
3180
+ lookbehind: !0,
3181
+ alias: "important",
3182
+ inside: {
3183
+ punctuation: /^#+|#+$/
3184
+ }
3185
+ }
3186
+ ],
3187
+ hr: {
3188
+ // ***
3189
+ // ---
3190
+ // * * *
3191
+ // -----------
3192
+ pattern: /(^\s*)([*-])(?:[ ]*\2){2,}(?=\s*$)/m,
3193
+ lookbehind: !0,
3194
+ alias: "punctuation"
3195
+ },
3196
+ list: {
3197
+ // * item
3198
+ // + item
3199
+ // - item
3200
+ // 1. item
3201
+ pattern: /(^\s*)(?:[*+-]|\d+\.)(?=[ ].)/m,
3202
+ lookbehind: !0,
3203
+ alias: "punctuation"
3204
+ },
3205
+ "url-reference": {
3206
+ // [id]: http://example.com "Optional title"
3207
+ // [id]: http://example.com 'Optional title'
3208
+ // [id]: http://example.com (Optional title)
3209
+ // [id]: <http://example.com> "Optional title"
3210
+ pattern: /!?\[[^\]]+\]:[ ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[ ]+(?:"(?:\\.|[^\\"])*"|'(?:\\.|[^\\'])*'|\((?:\\.|[^)\\])*\)))?/,
3211
+ inside: {
3212
+ variable: {
3213
+ pattern: /^(!?\[)[^\]]+/,
3214
+ lookbehind: !0
3215
+ },
3216
+ string: /(?:"(?:\\.|[^\\"])*"|'(?:\\.|[^\\'])*'|\((?:\\.|[^)\\])*\))$/,
3217
+ punctuation: /^[[\]!:]|<|>/
3218
+ },
3219
+ alias: "url"
3220
+ },
3221
+ bold: {
3222
+ // **strong**
3223
+ // __strong__
3224
+ // allow one nested instance of italic text using the same delimiter
3225
+ pattern: Fe("\\b__(?:(?!_)<0>|_(?:(?!_)<0>)+_)+__\\b|\\*\\*(?:(?!\\*)<0>|\\*(?:(?!\\*)<0>)+\\*)+\\*\\*"),
3226
+ lookbehind: !0,
3227
+ greedy: !0,
3228
+ inside: {
3229
+ content: {
3230
+ pattern: /(^..)[^]+(?=..)/,
3231
+ lookbehind: !0,
3232
+ inside: {}
3233
+ // see below
3234
+ },
3235
+ punctuation: /../
3236
+ }
3237
+ },
3238
+ italic: {
3239
+ // *em*
3240
+ // _em_
3241
+ // allow one nested instance of bold text using the same delimiter
3242
+ pattern: Fe("\\b_(?:(?!_)<0>|__(?:(?!_)<0>)+__)+_\\b|\\*(?:(?!\\*)<0>|\\*\\*(?:(?!\\*)<0>)+\\*\\*)+\\*"),
3243
+ lookbehind: !0,
3244
+ greedy: !0,
3245
+ inside: {
3246
+ content: {
3247
+ pattern: /(?!^)[^]+(?=.)/,
3248
+ inside: {}
3249
+ // see below
3250
+ },
3251
+ punctuation: /./
3252
+ }
3253
+ },
3254
+ strike: {
3255
+ // ~~strike through~~
3256
+ // ~strike~
3257
+ // eslint-disable-next-line regexp/strict
3258
+ pattern: Fe("(~~?)(?:(?!~)<0>)+\\2"),
3259
+ lookbehind: !0,
3260
+ greedy: !0,
3261
+ inside: {
3262
+ punctuation: /^~~?|~~?$/,
3263
+ content: {
3264
+ pattern: /[^]+/,
3265
+ inside: {}
3266
+ // see below
3267
+ }
3268
+ }
3269
+ },
3270
+ "code-snippet": {
3271
+ // `code`
3272
+ // ``code``
3273
+ pattern: /(^|[^\\`])(?:``[^\n`]+(?:`[^\n`]+)*``(?!`)|`[^\n`]+`(?!`))/g,
3274
+ lookbehind: !0,
3275
+ greedy: !0,
3276
+ alias: "code keyword"
3277
+ },
3278
+ url: {
3279
+ // [example](http://example.com "Optional title")
3280
+ // [example][id]
3281
+ // [example] [id]
3282
+ pattern: Fe('!?\\[(?:(?!\\])<0>)+\\](?:\\([^\\s)]+(?:[ ]+"(?:\\\\.|[^\\\\"])*")?\\)|[ ]?\\[(?:(?!\\])<0>)+\\])'),
3283
+ lookbehind: !0,
3284
+ greedy: !0,
3285
+ inside: {
3286
+ operator: /^!/,
3287
+ content: {
3288
+ pattern: /(^\[)[^\]]+(?=\])/,
3289
+ lookbehind: !0,
3290
+ inside: {}
3291
+ // see below
3292
+ },
3293
+ variable: {
3294
+ pattern: /(^\][ ]?\[)[^\]]+(?=\]$)/,
3295
+ lookbehind: !0
3296
+ },
3297
+ url: {
3298
+ pattern: /(^\]\()[^\s)]+/,
3299
+ lookbehind: !0
3300
+ },
3301
+ string: {
3302
+ pattern: /(^[ ]+)"(?:\\.|[^\\"])*"(?=\)$)/,
3303
+ lookbehind: !0
3304
+ },
3305
+ "markup-bracket": me["markup-bracket"]
3306
+ }
3307
+ }
3308
+ });
3309
+ ["url", "bold", "italic", "strike"].forEach((e) => {
3310
+ ["url", "bold", "italic", "strike", "code-snippet", "markup-bracket"].forEach((t) => {
3311
+ e != t && (me[e].inside.content.inside[t] = me[t]);
3312
+ });
3313
+ });
3314
+ const Ga = (e, t, ...n) => {
2765
3315
  var X;
2766
- let s, d, p = [], b, m = "", _, y = !1, l = !1, c = !0, w = [], g, h = 0;
2767
- const a = Na(), r = a.firstChild, u = r.children, o = u[0], i = o.firstChild, f = { language: "text", value: m }, R = new Set(n), A = {}, v = (x) => {
2768
- if (Object.assign(f, x), m = x.value ?? m, s = f.language, !E[s]) throw Error(`Language '${s}' has no grammar.`);
2769
- g = !!f.readOnly, a.style.tabSize = f.tabSize || 2, i.inputMode = g ? "none" : "", i.setAttribute("aria-readonly", g), N(), k(), (d != (d = E[s]) || m != i.value) && (Z(), i.value = m, i.selectionEnd = 0, S());
3316
+ let i, d, p = [], g, h = "", E, y = !1, l = !1, c = !0, w = [], m, _ = 0;
3317
+ const a = Ha(), r = a.firstChild, u = r.children, o = u[0], s = o.firstChild, f = { language: "text", value: h }, R = new Set(n), A = {}, v = (x) => {
3318
+ if (Object.assign(f, x), h = x.value ?? h, i = f.language, !b[i]) throw Error(`Language '${i}' has no grammar.`);
3319
+ m = !!f.readOnly, a.style.tabSize = f.tabSize || 2, s.inputMode = m ? "none" : "", s.setAttribute("aria-readonly", m), T(), N(), (d != (d = b[i]) || h != s.value) && (Z(), s.value = h, s.selectionEnd = 0, S());
2770
3320
  }, S = () => {
2771
- w = St(m = i.value, d), H("tokenize", w, s, m);
2772
- let x = vn(w).split(`
2773
- `), I = 0, C = h, K = h = x.length;
2774
- for (; x[I] == p[I] && I < K; ) ++I;
2775
- for (; K && x[--K] == p[--C]; ) ;
2776
- if (I == K && I == C) u[I + 1].innerHTML = x[I] + `
3321
+ w = Ne(h = s.value, d), H("tokenize", w, i, h);
3322
+ let x = Ln(w).split(`
3323
+ `), I = 0, C = _, q = _ = x.length;
3324
+ for (; x[I] == p[I] && I < q; ) ++I;
3325
+ for (; q && x[--q] == p[--C]; ) ;
3326
+ if (I == q && I == C) u[I + 1].innerHTML = x[I] + `
2777
3327
  `;
2778
3328
  else {
2779
- let Q = C < I ? C : I - 1, q = Q, ve = "";
2780
- for (; q < K; ) ve += `<div class=pce-line aria-hidden=true>${x[++q]}
3329
+ let Q = C < I ? C : I - 1, W = Q, we = "";
3330
+ for (; W < q; ) we += `<div class=pce-line aria-hidden=true>${x[++W]}
2781
3331
  </div>`;
2782
- for (q = K < I ? K : I - 1; q < C; q++) u[I + 1].remove();
2783
- for (ve && u[Q + 1].insertAdjacentHTML("afterend", ve), q = Q + 1; q < h; ) u[++q].setAttribute("data-line", q);
3332
+ for (W = q < I ? q : I - 1; W < C; W++) u[I + 1].remove();
3333
+ for (we && u[Q + 1].insertAdjacentHTML("afterend", we), W = Q + 1; W < _; ) u[++W].setAttribute("data-line", W);
2784
3334
  a.style.setProperty(
2785
3335
  "--number-width",
2786
- Math.ceil(Math.log10(h + 1)) + ".001ch"
3336
+ Math.ceil(Math.log10(_ + 1)) + ".001ch"
2787
3337
  );
2788
3338
  }
2789
- H("update", m), U(!0), c && setTimeout(setTimeout, 0, () => c = !0), p = x, c = !1;
2790
- }, k = (x) => {
3339
+ H("update", h), B(!0), c && setTimeout(setTimeout, 0, () => c = !0), p = x, c = !1;
3340
+ }, N = (x) => {
2791
3341
  (x || R).forEach((I) => {
2792
- typeof I == "object" ? (I.update($, f), x && R.add(I)) : (I($, f), x || R.delete(I));
3342
+ typeof I == "object" ? (I.update(D, f), x && R.add(I)) : (I(D, f), x || R.delete(I));
2793
3343
  });
2794
- }, N = ([x, I] = L()) => {
2795
- a.className = `prism-code-editor language-${s}${f.lineNumbers == !1 ? "" : " show-line-numbers"} pce-${f.wordWrap ? "" : "no"}wrap${f.rtl ? " pce-rtl" : ""} pce-${x < I ? "has" : "no"}-selection${l ? " pce-focus" : ""}${g ? " pce-readonly" : ""}`;
3344
+ }, T = ([x, I] = L()) => {
3345
+ a.className = `prism-code-editor language-${i}${f.lineNumbers == !1 ? "" : " show-line-numbers"} pce-${f.wordWrap ? "" : "no"}wrap${f.rtl ? " pce-rtl" : ""} pce-${x < I ? "has" : "no"}-selection${l ? " pce-focus" : ""}${m ? " pce-readonly" : ""}`;
2796
3346
  }, L = () => [
2797
- i.selectionStart,
2798
- i.selectionEnd,
2799
- i.selectionDirection
3347
+ s.selectionStart,
3348
+ s.selectionEnd,
3349
+ s.selectionDirection
2800
3350
  ], P = {
2801
3351
  Escape() {
2802
- i.blur();
3352
+ s.blur();
2803
3353
  }
2804
- }, M = {}, Z = () => Be && !l && z(
2805
- $,
3354
+ }, M = {}, Z = () => Ve && !l && z(
3355
+ D,
2806
3356
  "focus",
2807
3357
  (x) => {
2808
3358
  let I = x.relatedTarget;
2809
- I ? I.focus() : i.blur();
3359
+ I ? I.focus() : s.blur();
2810
3360
  },
2811
3361
  { once: !0 }
2812
3362
  ), H = (x, ...I) => {
2813
- var C, K;
2814
- (C = A[x]) == null || C.forEach((Q) => Q.apply($, I)), (K = f["on" + x[0].toUpperCase() + x.slice(1)]) == null || K.apply($, I);
2815
- }, U = (x) => {
3363
+ var C, q;
3364
+ (C = A[x]) == null || C.forEach((Q) => Q.apply(D, I)), (q = f["on" + x[0].toUpperCase() + x.slice(1)]) == null || q.apply(D, I);
3365
+ }, B = (x) => {
2816
3366
  if (x || c) {
2817
- const I = L(), C = u[_ = Kn(m, 0, I[I[2] < "f" ? 0 : 1])];
2818
- C != b && (b == null || b.classList.remove("active-line"), C.classList.add("active-line"), b = C), N(I), H("selectionChange", I, m);
3367
+ const I = L(), C = u[E = ra(h, 0, I[I[2] < "f" ? 0 : 1])];
3368
+ C != g && (g == null || g.classList.remove("active-line"), C.classList.add("active-line"), g = C), T(I), H("selectionChange", I, h);
2819
3369
  }
2820
- }, $ = {
3370
+ }, D = {
2821
3371
  scrollContainer: a,
2822
3372
  wrapper: r,
2823
3373
  overlays: o,
2824
- textarea: i,
3374
+ textarea: s,
2825
3375
  get activeLine() {
2826
- return b;
3376
+ return g;
2827
3377
  },
2828
3378
  get activeLineNumber() {
2829
- return _;
3379
+ return E;
2830
3380
  },
2831
3381
  get value() {
2832
- return m;
3382
+ return h;
2833
3383
  },
2834
3384
  options: f,
2835
3385
  get focused() {
@@ -2848,10 +3398,10 @@ const Sa = (e, t, ...n) => {
2848
3398
  update: S,
2849
3399
  getSelection: L,
2850
3400
  setSelection(x, I = x, C) {
2851
- Z(), i.setSelectionRange(x, I, C), U(!0);
3401
+ Z(), s.setSelectionRange(x, I, C), B(!0);
2852
3402
  },
2853
3403
  addExtensions(...x) {
2854
- k(x);
3404
+ N(x);
2855
3405
  },
2856
3406
  addListener(x, I) {
2857
3407
  (A[x] || (A[x] = /* @__PURE__ */ new Set())).add(I);
@@ -2864,262 +3414,262 @@ const Sa = (e, t, ...n) => {
2864
3414
  a.remove(), y = !0;
2865
3415
  }
2866
3416
  };
2867
- return z($, "keydown", (x) => {
3417
+ return z(D, "keydown", (x) => {
2868
3418
  var I;
2869
- (I = P[x.key]) != null && I.call(P, x, L(), m) && G(x);
2870
- }), z($, "beforeinput", (x) => {
3419
+ (I = P[x.key]) != null && I.call(P, x, L(), h) && G(x);
3420
+ }), z(D, "beforeinput", (x) => {
2871
3421
  var I;
2872
- (g || x.inputType == "insertText" && ((I = M[x.data]) != null && I.call(M, x, L(), m))) && G(x);
2873
- }), z($, "input", S), z($, "blur", () => {
2874
- Te = null, l = !1, N();
2875
- }), z($, "focus", () => {
2876
- Te = U, l = !0, N();
2877
- }), z($, "selectionchange", (x) => {
2878
- U(), G(x);
2879
- }), (X = Ta(e)) == null || X.append(a), t && v(t), $;
2880
- }, bn = /* @__PURE__ */ document.createElement("div"), Je = (e) => {
2881
- bn.innerHTML = e;
2882
- const t = bn.firstChild;
3422
+ (m || x.inputType == "insertText" && ((I = M[x.data]) != null && I.call(M, x, L(), h))) && G(x);
3423
+ }), z(D, "input", S), z(D, "blur", () => {
3424
+ Te = null, l = !1, T();
3425
+ }), z(D, "focus", () => {
3426
+ Te = B, l = !0, T();
3427
+ }), z(D, "selectionchange", (x) => {
3428
+ B(), G(x);
3429
+ }), (X = za(e)) == null || X.append(a), t && v(t), D;
3430
+ }, In = /* @__PURE__ */ document.createElement("div"), at = (e) => {
3431
+ In.innerHTML = e;
3432
+ const t = In.firstChild;
2883
3433
  return () => t.cloneNode(!0);
2884
- }, z = (e, t, n, s) => e.textarea.addEventListener(t, n, s), Ta = (e) => typeof e == "string" ? document.querySelector(e) : e, Zn = navigator.userAgent, Ke = /Mac|iPhone|iPod|iPad/i.test(navigator.platform), We = /Chrome\//.test(Zn), Be = !We && /AppleWebKit\//.test(Zn), Kn = (e, t = 0, n = 1 / 0) => {
2885
- let s = 1;
3434
+ }, z = (e, t, n, i) => e.textarea.addEventListener(t, n, i), za = (e) => typeof e == "string" ? document.querySelector(e) : e, aa = navigator.userAgent, Ye = /Mac|iPhone|iPod|iPad/i.test(navigator.platform), Xe = /Chrome\//.test(aa), Ve = !Xe && /AppleWebKit\//.test(aa), ra = (e, t = 0, n = 1 / 0) => {
3435
+ let i = 1;
2886
3436
  for (; (t = e.indexOf(`
2887
- `, t) + 1) && t <= n; s++) ;
2888
- return s;
2889
- }, ot = {}, Na = /* @__PURE__ */ Je(
3437
+ `, t) + 1) && t <= n; i++) ;
3438
+ return i;
3439
+ }, ut = {}, Ha = /* @__PURE__ */ at(
2890
3440
  "<div><div class=pce-wrapper><div class=pce-overlays><textarea spellcheck=false autocapitalize=off autocomplete=off>"
2891
3441
  ), G = (e) => {
2892
3442
  e.preventDefault(), e.stopImmediatePropagation();
2893
3443
  };
2894
3444
  let Te;
2895
3445
  document.addEventListener("selectionchange", () => Te == null ? void 0 : Te());
2896
- const ka = (e, t, n = 0) => {
2897
- const s = e.scrollContainer.style, d = document.documentElement.style;
2898
- s.scrollPaddingBlock = d.scrollPaddingBlock = `${n}px ${We && !t.textContent ? t.offsetHeight : 0}px`, t.scrollIntoView({ block: "nearest" }), s.scrollPaddingBlock = d.scrollPaddingBlock = "";
2899
- }, qe = (e, t) => t ? e.lastIndexOf(`
2900
- `, t - 1) + 1 : 0, et = (e, t) => (t = e.indexOf(`
2901
- `, t)) + 1 ? t : e.length, Oa = (e, t, n) => (e.addListener(t, n), () => e.removeListener(t, n)), La = (e, t) => parseFloat(getComputedStyle(e)[t]);
2902
- let ge;
2903
- const Ie = (e) => e.replace(/[$+?|.^*()[\]{}\\]/g, "\\$&"), At = (e, t) => e.slice(qe(e, t), t), ee = (e, t, n = t) => [
2904
- e.slice(t = qe(e, t), n = et(e, n)).split(`
3446
+ const Va = (e, t, n = 0) => {
3447
+ const i = e.scrollContainer.style, d = document.documentElement.style;
3448
+ i.scrollPaddingBlock = d.scrollPaddingBlock = `${n}px ${Xe && !t.textContent ? t.offsetHeight : 0}px`, t.scrollIntoView({ block: "nearest" }), i.scrollPaddingBlock = d.scrollPaddingBlock = "";
3449
+ }, Qe = (e, t) => t ? e.lastIndexOf(`
3450
+ `, t - 1) + 1 : 0, rt = (e, t) => (t = e.indexOf(`
3451
+ `, t)) + 1 ? t : e.length, Za = (e, t, n) => (e.addListener(t, n), () => e.removeListener(t, n)), qa = (e, t) => parseFloat(getComputedStyle(e)[t]);
3452
+ let he;
3453
+ const Re = (e) => e.replace(/[$+?|.^*()[\]{}\\]/g, "\\$&"), Nt = (e, t) => e.slice(Qe(e, t), t), te = (e, t, n = t) => [
3454
+ e.slice(t = Qe(e, t), n = rt(e, n)).split(`
2905
3455
  `),
2906
3456
  t,
2907
3457
  n
2908
- ], je = (e, t, n = 0, s = n, d = e.getSelection()[0]) => {
3458
+ ], Je = (e, t, n = 0, i = n, d = e.getSelection()[0]) => {
2909
3459
  var l;
2910
- const p = e.value, b = e.wrapper.children[Kn(p, 0, d)], m = document.createTreeWalker(b, 5);
2911
- let _ = m.lastChild(), y = et(p, d) + 1 - d - _.length;
2912
- for (; -y <= s && (_ = m.previousNode()); )
2913
- if (!_.lastChild && (y -= _.length || 0, y <= n)) {
2914
- for (; _ != b; _ = _.parentNode)
2915
- if ((l = _.matches) != null && l.call(_, t)) return _;
2916
- }
2917
- }, lt = (e, t) => {
3460
+ const p = e.value, g = e.wrapper.children[ra(p, 0, d)], h = document.createTreeWalker(g, 5);
3461
+ let E = h.lastChild(), y = rt(p, d) + 1 - d - E.length;
3462
+ for (; -y <= i && (E = h.previousNode()); )
3463
+ if (!E.lastChild && (y -= E.length || 0, y <= n)) {
3464
+ for (; E != g; E = E.parentNode)
3465
+ if ((l = E.matches) != null && l.call(E, t)) return E;
3466
+ }
3467
+ }, pt = (e, t) => {
2918
3468
  var n;
2919
- return ((n = je(e, '[class*="language-"]', 0, 0, t)) == null ? void 0 : n.className.match(
3469
+ return ((n = Je(e, '[class*="language-"]', 0, 0, t)) == null ? void 0 : n.className.match(
2920
3470
  /language-(\S*)/
2921
3471
  )[1]) || e.options.language;
2922
- }, V = (e, t, n, s, d, p) => {
3472
+ }, V = (e, t, n, i, d, p) => {
2923
3473
  if (e.options.readOnly) return;
2924
- ge = e.getSelection(), s ?? (s = n);
2925
- let b = e.textarea, m = e.value, _ = We && !m[s ?? ge[1]] && /\n$/.test(t) && /^$|\n$/.test(m), y;
2926
- e.focused || b.focus(), n != null && b.setSelectionRange(n, s), d != null && (y = Oa(e, "update", () => {
2927
- b.setSelectionRange(
3474
+ he = e.getSelection(), i ?? (i = n);
3475
+ let g = e.textarea, h = e.value, E = Xe && !h[i ?? he[1]] && /\n$/.test(t) && /^$|\n$/.test(h), y;
3476
+ e.focused || g.focus(), n != null && g.setSelectionRange(n, i), d != null && (y = Za(e, "update", () => {
3477
+ g.setSelectionRange(
2928
3478
  d,
2929
3479
  p ?? d,
2930
- ge[2]
3480
+ he[2]
2931
3481
  ), y();
2932
- })), Be || b.dispatchEvent(new InputEvent("beforeinput", { data: t })), We || Be ? (_ && (b.selectionEnd--, t = t.slice(0, -1)), Be && (t += `
3482
+ })), Ve || g.dispatchEvent(new InputEvent("beforeinput", { data: t })), Xe || Ve ? (E && (g.selectionEnd--, t = t.slice(0, -1)), Ve && (t += `
2933
3483
  `), document.execCommand(
2934
3484
  t ? "insertHTML" : "delete",
2935
3485
  !1,
2936
3486
  t.replace(/&/g, "&amp;").replace(/</g, "&lt;")
2937
- ), _ && b.selectionStart++) : document.execCommand(t ? "insertText" : "delete", !1, t), ge = 0;
2938
- }, Se = (e) => e.altKey + e.ctrlKey * 2 + e.metaKey * 4 + e.shiftKey * 8;
2939
- let It = !1;
2940
- const gn = navigator.clipboard, oe = Ke ? 4 : 2, Ca = (e) => It = e, se = (e) => e.search(/\S|$/), Ma = (e = ['""', "''", "``", "()", "[]", "{}"], t = /([^$\w'"`]["'`]|.[[({])[.,:;\])}>\s]|.[[({]`/s) => (n, s) => {
3487
+ ), E && g.selectionStart++) : document.execCommand(t ? "insertText" : "delete", !1, t), he = 0;
3488
+ }, ke = (e) => e.altKey + e.ctrlKey * 2 + e.metaKey * 4 + e.shiftKey * 8;
3489
+ let Ot = !1;
3490
+ const Rn = navigator.clipboard, ce = Ye ? 4 : 2, Ka = (e) => Ot = e, le = (e) => e.search(/\S|$/), Wa = (e = ['""', "''", "``", "()", "[]", "{}"], t = /([^$\w'"`]["'`]|.[[({])[.,:;\])}>\s]|.[[({]`/s) => (n, i) => {
2941
3491
  let d;
2942
- const { keyCommandMap: p, inputCommandMap: b, getSelection: m, scrollContainer: _ } = n, y = ({ insertSpaces: a = !0, tabSize: r } = s) => [a ? " " : " ", a ? r || 2 : 1], l = () => {
3492
+ const { keyCommandMap: p, inputCommandMap: g, getSelection: h, scrollContainer: E } = n, y = ({ insertSpaces: a = !0, tabSize: r } = i) => [a ? " " : " ", a ? r || 2 : 1], l = () => {
2943
3493
  var a;
2944
- return !s.readOnly && !((a = n.extensions.cursor) != null && a.scrollIntoView());
2945
- }, c = ([a, r], [u, o], i, f) => (a < r || !f && t.test((i[r - 1] || " ") + u + (i[r] || " "))) && !V(n, u + i.slice(a, r) + o, null, null, a + 1, r + 1), w = ([a, r], u, o) => a == r && o[r] == u && !n.setSelection(a + 1), g = (a, r, u, o, i, f) => {
3494
+ return !i.readOnly && !((a = n.extensions.cursor) != null && a.scrollIntoView());
3495
+ }, c = ([a, r], [u, o], s, f) => (a < r || !f && t.test((s[r - 1] || " ") + u + (s[r] || " "))) && !V(n, u + s.slice(a, r) + o, null, null, a + 1, r + 1), w = ([a, r], u, o) => a == r && o[r] == u && !n.setSelection(a + 1), m = (a, r, u, o, s, f) => {
2946
3496
  let R = r.join(`
2947
3497
  `);
2948
3498
  if (R != a.join(`
2949
3499
  `)) {
2950
- const A = a.length - 1, v = r[A], S = a[A], k = S.length - v.length, N = r[0].length - a[0].length, L = u + se((N < 0 ? r : a)[0]), P = o - S.length + se(k > 0 ? v : S), M = u - o + R.length + k, Z = L > i ? i : Math.max(L, i + N), H = f + u - o + R.length;
3500
+ const A = a.length - 1, v = r[A], S = a[A], N = S.length - v.length, T = r[0].length - a[0].length, L = u + le((T < 0 ? r : a)[0]), P = o - S.length + le(N > 0 ? v : S), M = u - o + R.length + N, Z = L > s ? s : Math.max(L, s + T), H = f + u - o + R.length;
2951
3501
  V(
2952
3502
  n,
2953
3503
  R,
2954
3504
  u,
2955
3505
  o,
2956
3506
  Z,
2957
- f < P ? H + k : Math.max(P + M, H)
3507
+ f < P ? H + N : Math.max(P + M, H)
2958
3508
  );
2959
3509
  }
2960
- }, h = (a, r, u, o, i, f, R, A) => {
2961
- g(
3510
+ }, _ = (a, r, u, o, s, f, R, A) => {
3511
+ m(
2962
3512
  r,
2963
3513
  r.map(
2964
- a ? (v) => v.slice(se(v) ? A - se(v) % A : 0) : (v) => v && R.repeat(A - se(v) % A) + v
3514
+ a ? (v) => v.slice(le(v) ? A - le(v) % A : 0) : (v) => v && R.repeat(A - le(v) % A) + v
2965
3515
  ),
2966
3516
  u,
2967
3517
  o,
2968
- i,
3518
+ s,
2969
3519
  f
2970
3520
  );
2971
3521
  };
2972
- b["<"] = (a, r, u) => c(r, "<>", u, !0), e.forEach(([a, r]) => {
3522
+ g["<"] = (a, r, u) => c(r, "<>", u, !0), e.forEach(([a, r]) => {
2973
3523
  const u = a == r;
2974
- b[a] = (o, i, f) => (u && w(i, r, f) || c(i, a + r, f)) && l(), u || (b[r] = (o, i, f) => w(i, r, f) && l());
2975
- }), b[">"] = (a, r, u) => {
2976
- var i, f;
2977
- const o = (f = (i = ot[lt(n)]) == null ? void 0 : i.autoCloseTags) == null ? void 0 : f.call(i, r, u, n);
3524
+ g[a] = (o, s, f) => (u && w(s, r, f) || c(s, a + r, f)) && l(), u || (g[r] = (o, s, f) => w(s, r, f) && l());
3525
+ }), g[">"] = (a, r, u) => {
3526
+ var s, f;
3527
+ const o = (f = (s = ut[pt(n)]) == null ? void 0 : s.autoCloseTags) == null ? void 0 : f.call(s, r, u, n);
2978
3528
  o && (V(n, ">" + o, null, null, r[0] + 1), G(a));
2979
3529
  }, p.Tab = (a, [r, u], o) => {
2980
- if (It || s.readOnly || Se(a) & 6) return;
2981
- const [i, f] = y(s), R = a.shiftKey, [A, v, S] = ee(o, r, u);
2982
- return r < u || R ? h(R, A, v, S, r, u, i, f) : V(n, i.repeat(f - (r - v) % f)), l();
3530
+ if (Ot || i.readOnly || ke(a) & 6) return;
3531
+ const [s, f] = y(i), R = a.shiftKey, [A, v, S] = te(o, r, u);
3532
+ return r < u || R ? _(R, A, v, S, r, u, s, f) : V(n, s.repeat(f - (r - v) % f)), l();
2983
3533
  }, p.Enter = (a, r, u) => {
2984
- var i, f, R;
2985
- const o = Se(a) & 7;
2986
- if (!o || o == oe) {
2987
- o && (r[0] = r[1] = ee(u, r[1])[2]);
2988
- const [A, v] = y(), [S, k] = r, N = (i = ot[lt(n)]) == null ? void 0 : i.autoIndent, L = Math.floor(se(At(u, S)) / v) * v, P = (f = N == null ? void 0 : N[0]) != null && f.call(N, r, u, n) ? v : 0, M = (R = N == null ? void 0 : N[1]) == null ? void 0 : R.call(N, r, u, n), Z = `
3534
+ var s, f, R;
3535
+ const o = ke(a) & 7;
3536
+ if (!o || o == ce) {
3537
+ o && (r[0] = r[1] = te(u, r[1])[2]);
3538
+ const [A, v] = y(), [S, N] = r, T = (s = ut[pt(n)]) == null ? void 0 : s.autoIndent, L = Math.floor(le(Nt(u, S)) / v) * v, P = (f = T == null ? void 0 : T[0]) != null && f.call(T, r, u, n) ? v : 0, M = (R = T == null ? void 0 : T[1]) == null ? void 0 : R.call(T, r, u, n), Z = `
2989
3539
  ` + A.repeat(L + P) + (M ? `
2990
3540
  ` + A.repeat(L) : "");
2991
- if (Z[1] || u[k])
2992
- return V(n, Z, S, k, S + L + P + 1), l();
3541
+ if (Z[1] || u[N])
3542
+ return V(n, Z, S, N, S + L + P + 1), l();
2993
3543
  }
2994
3544
  }, p.Backspace = (a, [r, u], o) => {
2995
3545
  if (r == u) {
2996
- const i = At(o, r), f = s.tabSize || 2, R = e.includes(o.slice(r - 1, r + 1)), A = /[^ ]/.test(i) ? 0 : (i.length - 1) % f + 1;
3546
+ const s = Nt(o, r), f = i.tabSize || 2, R = e.includes(o.slice(r - 1, r + 1)), A = /[^ ]/.test(s) ? 0 : (s.length - 1) % f + 1;
2997
3547
  if (R || A > 1)
2998
3548
  return V(n, "", r - (R ? 1 : A), r + R), l();
2999
3549
  }
3000
3550
  };
3001
3551
  for (let a = 0; a < 2; a++)
3002
- p[a ? "ArrowDown" : "ArrowUp"] = (r, [u, o], i) => {
3003
- const f = Se(r);
3552
+ p[a ? "ArrowDown" : "ArrowUp"] = (r, [u, o], s) => {
3553
+ const f = ke(r);
3004
3554
  if (f == 1) {
3005
- const R = a ? u : qe(i, u) - 1, A = a ? i.indexOf(`
3555
+ const R = a ? u : Qe(s, u) - 1, A = a ? s.indexOf(`
3006
3556
  `, o) + 1 : o;
3007
3557
  if (R > -1 && A > 0) {
3008
- const [v, S, k] = ee(i, R, A), N = v[a ? "pop" : "shift"](), L = (N.length + 1) * (a ? 1 : -1);
3009
- v[a ? "unshift" : "push"](N), V(n, v.join(`
3010
- `), S, k, u + L, o + L);
3558
+ const [v, S, N] = te(s, R, A), T = v[a ? "pop" : "shift"](), L = (T.length + 1) * (a ? 1 : -1);
3559
+ v[a ? "unshift" : "push"](T), V(n, v.join(`
3560
+ `), S, N, u + L, o + L);
3011
3561
  }
3012
3562
  return l();
3013
3563
  } else if (f == 9) {
3014
- const [R, A, v] = ee(i, u, o), S = R.join(`
3015
- `), k = a ? S.length + 1 : 0;
3564
+ const [R, A, v] = te(s, u, o), S = R.join(`
3565
+ `), N = a ? S.length + 1 : 0;
3016
3566
  return V(n, S + `
3017
- ` + S, A, v, u + k, o + k), l();
3018
- } else if (f == 2 && !Ke)
3019
- return _.scrollBy(0, La(_, "lineHeight") * (a ? 1 : -1)), !0;
3567
+ ` + S, A, v, u + N, o + N), l();
3568
+ } else if (f == 2 && !Ye)
3569
+ return E.scrollBy(0, qa(E, "lineHeight") * (a ? 1 : -1)), !0;
3020
3570
  };
3021
3571
  z(n, "keydown", (a) => {
3022
3572
  var R;
3023
- const r = Se(a), u = a.keyCode, [o, i, f] = m();
3024
- if (r == oe && (u == 221 || u == 219))
3025
- h(u == 219, ...ee(n.value, o, i), o, i, ...y()), l(), G(a);
3026
- else if (r == (Ke ? 10 : 2) && u == 77)
3027
- Ca(!It), G(a);
3028
- else if (u == 191 && r == oe || u == 65 && r == 9) {
3029
- const A = n.value, v = r == 9, S = v ? o : qe(A, o), k = ot[lt(n, S)] || {}, { line: N, block: L } = ((R = k.getComments) == null ? void 0 : R.call(k, n, S, A)) || k.comments || {}, [P, M, Z] = ee(A, o, i), H = P.length - 1;
3573
+ const r = ke(a), u = a.keyCode, [o, s, f] = h();
3574
+ if (r == ce && (u == 221 || u == 219))
3575
+ _(u == 219, ...te(n.value, o, s), o, s, ...y()), l(), G(a);
3576
+ else if (r == (Ye ? 10 : 2) && u == 77)
3577
+ Ka(!Ot), G(a);
3578
+ else if (u == 191 && r == ce || u == 65 && r == 9) {
3579
+ const A = n.value, v = r == 9, S = v ? o : Qe(A, o), N = ut[pt(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;
3030
3580
  if (v) {
3031
3581
  if (L) {
3032
- const [U, $] = L, X = A.slice(o, i), x = A.slice(0, o).search(Ie(U) + " ?$"), I = RegExp("^ ?" + Ie($)).test(A.slice(i));
3582
+ 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));
3033
3583
  x + 1 && I ? V(
3034
3584
  n,
3035
3585
  X,
3036
3586
  x,
3037
- i + +(A[i] == " ") + $.length,
3587
+ s + +(A[s] == " ") + D.length,
3038
3588
  x,
3039
- x + i - o
3589
+ x + s - o
3040
3590
  ) : V(
3041
3591
  n,
3042
- `${U} ${X} ${$}`,
3592
+ `${B} ${X} ${D}`,
3043
3593
  o,
3044
- i,
3045
- o + U.length + 1,
3046
- i + U.length + 1
3594
+ s,
3595
+ o + B.length + 1,
3596
+ s + B.length + 1
3047
3597
  ), l(), G(a);
3048
3598
  }
3049
- } else if (N) {
3050
- const U = Ie(N), $ = RegExp(`^\\s*(${U} ?|$)`), X = RegExp(U + " ?"), x = !/\S/.test(A.slice(M, Z)), I = P.map(
3051
- P.every((C) => $.test(C)) && !x ? (C) => C.replace(X, "") : (C) => x || /\S/.test(C) ? C.replace(/^\s*/, `$&${N} `) : C
3599
+ } else if (T) {
3600
+ const B = Re(T), D = RegExp(`^\\s*(${B} ?|$)`), X = RegExp(B + " ?"), x = !/\S/.test(A.slice(M, Z)), I = P.map(
3601
+ P.every((C) => D.test(C)) && !x ? (C) => C.replace(X, "") : (C) => x || /\S/.test(C) ? C.replace(/^\s*/, `$&${T} `) : C
3052
3602
  );
3053
- g(P, I, M, Z, o, i), l(), G(a);
3603
+ m(P, I, M, Z, o, s), l(), G(a);
3054
3604
  } else if (L) {
3055
- const [U, $] = L, X = se(P[0]), x = P[0].startsWith(U, X) && P[H].endsWith($), I = P.slice();
3605
+ const [B, D] = L, X = le(P[0]), x = P[0].startsWith(B, X) && P[H].endsWith(D), I = P.slice();
3056
3606
  I[0] = P[0].replace(
3057
- x ? RegExp(Ie(U) + " ?") : /(?=\S)|$/,
3058
- x ? "" : U + " "
3607
+ x ? RegExp(Re(B) + " ?") : /(?=\S)|$/,
3608
+ x ? "" : B + " "
3059
3609
  );
3060
3610
  let C = I[0].length - P[0].length;
3061
- I[H] = x ? I[H].replace(RegExp(`( ?${Ie($)})?$`), "") : I[H] + " " + $;
3062
- let K = I.join(`
3063
- `), Q = X + M, q = Q > o ? o : Math.max(o + C, Q), ve = Q > i - (o != i) ? i : Math.min(Math.max(Q, i + C), M + K.length);
3064
- V(n, K, M, Z, q, Math.max(q, ve)), l(), G(a);
3611
+ I[H] = x ? I[H].replace(RegExp(`( ?${Re(D)})?$`), "") : I[H] + " " + D;
3612
+ let q = I.join(`
3613
+ `), 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);
3614
+ V(n, q, M, Z, W, Math.max(W, we)), l(), G(a);
3065
3615
  }
3066
- } else if (r == 8 + oe && u == 75) {
3067
- const A = n.value, [v, S, k] = ee(A, o, i), N = f > "f" ? i - k + v.pop().length : o - S, L = et(A, k + 1) - k - 1;
3616
+ } else if (r == 8 + ce && u == 75) {
3617
+ const A = n.value, [v, S, N] = te(A, o, s), T = f > "f" ? s - N + v.pop().length : o - S, L = rt(A, N + 1) - N - 1;
3068
3618
  V(
3069
3619
  n,
3070
3620
  "",
3071
3621
  S - !!S,
3072
- k + !S,
3073
- S + Math.min(N, L)
3622
+ N + !S,
3623
+ S + Math.min(T, L)
3074
3624
  ), l(), G(a);
3075
3625
  }
3076
3626
  }), ["copy", "cut", "paste"].forEach(
3077
3627
  (a) => z(n, a, (r) => {
3078
- const [u, o] = m();
3079
- if (u == o && gn) {
3080
- const [[i], f, R] = ee(n.value, u, o);
3628
+ const [u, o] = h();
3629
+ if (u == o && Rn) {
3630
+ const [[s], f, R] = te(n.value, u, o);
3081
3631
  a == "paste" ? r.clipboardData.getData("text/plain") == d && (V(n, d + `
3082
- `, f, f, u + d.length + 1), l(), G(r)) : (gn.writeText(d = i), a == "cut" && (V(n, "", f, R + 1), l()), G(r));
3632
+ `, f, f, u + d.length + 1), l(), G(r)) : (Rn.writeText(d = s), a == "cut" && (V(n, "", f, R + 1), l()), G(r));
3083
3633
  }
3084
3634
  })
3085
3635
  );
3086
- }, Pa = (e = 999) => {
3087
- let t = 0, n, s, d = !1, p, b, m, _, y, l;
3636
+ }, ja = (e = 999) => {
3637
+ let t = 0, n, i, d = !1, p, g, h, E, y, l;
3088
3638
  const c = [], w = (a) => {
3089
3639
  a >= e && (a--, c.shift()), c.splice(t = a, e, [n.value, l(), l()]);
3090
- }, g = (a) => {
3640
+ }, m = (a) => {
3091
3641
  var r;
3092
- c[a] && (y.value = c[a][0], y.setSelectionRange(...c[a][a < t ? 2 : 1]), n.update(), (r = n.extensions.cursor) == null || r.scrollIntoView(), t = a, s = !1);
3093
- }, h = (a, r) => {
3094
- a.extensions.history = h, n = a, l = a.getSelection, y || w(0), y = a.textarea, a.addListener("selectionChange", () => {
3095
- s = d, d = !1;
3642
+ c[a] && (y.value = c[a][0], y.setSelectionRange(...c[a][a < t ? 2 : 1]), n.update(), (r = n.extensions.cursor) == null || r.scrollIntoView(), t = a, i = !1);
3643
+ }, _ = (a, r) => {
3644
+ a.extensions.history = _, n = a, l = a.getSelection, y || w(0), y = a.textarea, a.addListener("selectionChange", () => {
3645
+ i = d, d = !1;
3096
3646
  }), z(a, "beforeinput", (u) => {
3097
- let o = u.data, i = u.inputType, f = u.timeStamp;
3098
- /history/.test(i) ? (g(t + (i[7] == "U" ? -1 : 1)), G(u)) : (_ = s && (p == i || f - m < 99 && i.slice(-4) == "Drop") && !ge && (o != " " || b == o)) || (c[t][2] = ge || l()), d = !0, b = o, m = f, p = i;
3099
- }), z(a, "input", () => w(t + !_)), z(a, "keydown", (u) => {
3647
+ let o = u.data, s = u.inputType, f = u.timeStamp;
3648
+ /history/.test(s) ? (m(t + (s[7] == "U" ? -1 : 1)), G(u)) : (E = i && (p == s || f - h < 99 && s.slice(-4) == "Drop") && !he && (o != " " || g == o)) || (c[t][2] = he || l()), d = !0, g = o, h = f, p = s;
3649
+ }), z(a, "input", () => w(t + !E)), z(a, "keydown", (u) => {
3100
3650
  if (!r.readOnly) {
3101
- const o = Se(u), i = u.keyCode, f = o == oe && i == 90, R = o == oe + 8 && i == 90 || !Ke && o == oe && i == 89;
3102
- f ? (g(t - 1), G(u)) : R && (g(t + 1), G(u));
3651
+ const o = ke(u), s = u.keyCode, f = o == ce && s == 90, R = o == ce + 8 && s == 90 || !Ye && o == ce && s == 89;
3652
+ f ? (m(t - 1), G(u)) : R && (m(t + 1), G(u));
3103
3653
  }
3104
3654
  });
3105
3655
  };
3106
- return h.clear = () => {
3107
- w(0), s = !1;
3108
- }, h.has = (a) => t + a in c, h.go = (a) => g(t + a), h;
3109
- }, Da = Je(
3656
+ return _.clear = () => {
3657
+ w(0), i = !1;
3658
+ }, _.has = (a) => t + a in c, _.go = (a) => m(t + a), _;
3659
+ }, Ya = at(
3110
3660
  "<div style=position:absolute;top:0;opacity:0;padding:inherit> <span><span></span> "
3111
- ), $a = () => {
3661
+ ), Xa = () => {
3112
3662
  let e, t = " ", n = " ";
3113
- const s = Da(), [d, p] = s.childNodes, [b, m] = p.childNodes, _ = (c) => {
3114
- let { value: w, activeLine: g } = e, h = c[c[2] < "f" ? 0 : 1], a = At(w, h), r = w.slice(h, et(w, h));
3115
- !a && !r && (r = " "), t != a && (d.data = t = a), n != r && (m.data = n = r), s.parentNode != g && g.prepend(s);
3116
- }, y = () => ka(e, b), l = (c) => {
3117
- c.addListener("selectionChange", _), e = c, c.extensions.cursor = l, z(c, "input", (w) => {
3663
+ const i = Ya(), [d, p] = i.childNodes, [g, h] = p.childNodes, E = (c) => {
3664
+ let { value: w, activeLine: m } = e, _ = c[c[2] < "f" ? 0 : 1], a = Nt(w, _), r = w.slice(_, rt(w, _));
3665
+ !a && !r && (r = " "), t != a && (d.data = t = a), n != r && (h.data = n = r), i.parentNode != m && m.prepend(i);
3666
+ }, y = () => Va(e, g), l = (c) => {
3667
+ c.addListener("selectionChange", E), e = c, c.extensions.cursor = l, z(c, "input", (w) => {
3118
3668
  /history/.test(w.inputType) && y();
3119
- }), c.activeLine && _(c.getSelection());
3669
+ }), c.activeLine && E(c.getSelection());
3120
3670
  };
3121
3671
  return l.getPosition = () => {
3122
- const c = b.getBoundingClientRect(), w = e.overlays.getBoundingClientRect();
3672
+ const c = g.getBoundingClientRect(), w = e.overlays.getBoundingClientRect();
3123
3673
  return {
3124
3674
  top: c.y - w.y,
3125
3675
  bottom: w.bottom - c.bottom,
@@ -3127,42 +3677,42 @@ const gn = navigator.clipboard, oe = Ke ? 4 : 2, Ca = (e) => It = e, se = (e) =>
3127
3677
  right: w.right - c.x,
3128
3678
  height: c.height
3129
3679
  };
3130
- }, l.scrollIntoView = y, l.element = b, l;
3131
- }, Fa = Je(
3680
+ }, l.scrollIntoView = y, l.element = g, l;
3681
+ }, Qa = at(
3132
3682
  "<div class=guide-indents style=left:var(--padding-left);bottom:auto;right:auto> "
3133
- ), Ua = Je(
3683
+ ), Ja = at(
3134
3684
  "<div style=width:1px;position:absolute;background:var(--bg-guide-indent)>"
3135
- ), Ba = () => {
3136
- let e, t = 0, n, s = -1, d;
3137
- const p = [], b = [], m = Fa(), _ = [], y = (g) => {
3685
+ ), er = () => {
3686
+ let e, t = 0, n, i = -1, d;
3687
+ const p = [], g = [], h = Qa(), E = [], y = (m) => {
3138
3688
  n = [];
3139
- const h = c(g.split(`
3140
- `)), a = h.length;
3141
- for (let r = 0, u = [], o = h[0]; o; r++) {
3142
- const i = (p[r] || (p[r] = Ua())).style, [f, R, A] = o, v = b[r];
3143
- o = h[r + 1], f != (v == null ? void 0 : v[0]) && (i.top = f + "00%"), R != (v == null ? void 0 : v[1]) && (i.height = R + "00%"), A != (v == null ? void 0 : v[2]) && (i.left = A * 100 + "%");
3144
- const S = u[0] != f && (o == null ? void 0 : o[0]) != f, k = u[0] + u[1] != f + R && (o == null ? void 0 : o[0]) + (o == null ? void 0 : o[1]) != f + R;
3145
- for (let N = -S, L = R + k; N < L; N++)
3146
- n[N + f] = r;
3147
- u = b[r] = h[r];
3689
+ const _ = c(m.split(`
3690
+ `)), a = _.length;
3691
+ for (let r = 0, u = [], o = _[0]; o; r++) {
3692
+ const s = (p[r] || (p[r] = Ja())).style, [f, R, A] = o, v = g[r];
3693
+ o = _[r + 1], f != (v == null ? void 0 : v[0]) && (s.top = f + "00%"), R != (v == null ? void 0 : v[1]) && (s.height = R + "00%"), A != (v == null ? void 0 : v[2]) && (s.left = A * 100 + "%");
3694
+ const S = u[0] != f && (o == null ? void 0 : o[0]) != f, N = u[0] + u[1] != f + R && (o == null ? void 0 : o[0]) + (o == null ? void 0 : o[1]) != f + R;
3695
+ for (let T = -S, L = R + N; T < L; T++)
3696
+ n[T + f] = r;
3697
+ u = g[r] = _[r];
3148
3698
  }
3149
3699
  for (let r = t; r > a; ) p[--r].remove();
3150
- m.append(...p.slice(t, t = a));
3700
+ h.append(...p.slice(t, t = a));
3151
3701
  }, l = () => {
3152
- const g = n[d.activeLineNumber - 1] ?? -1;
3153
- g != s && (s > -1 && (p[s].className = ""), g > -1 && (p[g].className = "active")), s = g;
3154
- }, c = (g) => {
3155
- const h = g.length, a = [], r = [];
3156
- for (let u = 0, o = -1, i = 0, f = 0; ; i++) {
3157
- const R = i == h, A = R ? 0 : _[i] = w(g[i]);
3702
+ const m = n[d.activeLineNumber - 1] ?? -1;
3703
+ m != i && (i > -1 && (p[i].className = ""), m > -1 && (p[m].className = "active")), i = m;
3704
+ }, c = (m) => {
3705
+ const _ = m.length, a = [], r = [];
3706
+ for (let u = 0, o = -1, s = 0, f = 0; ; s++) {
3707
+ const R = s == _, A = R ? 0 : E[s] = w(m[s]);
3158
3708
  if (A < 0)
3159
- o < 0 && (o = i);
3709
+ o < 0 && (o = s);
3160
3710
  else {
3161
3711
  for (let v = A; v < u; v++)
3162
- a[v][1] = (o < 0 || v == A && !R ? i : o) - a[v][0];
3712
+ a[v][1] = (o < 0 || v == A && !R ? s : o) - a[v][0];
3163
3713
  for (let v = u; v < A; )
3164
3714
  r[f++] = a[v] = [
3165
- o < 0 || v > u ? i : o,
3715
+ o < 0 || v > u ? s : o,
3166
3716
  0,
3167
3717
  v++ * e
3168
3718
  ];
@@ -3170,106 +3720,106 @@ const gn = navigator.clipboard, oe = Ke ? 4 : 2, Ca = (e) => It = e, se = (e) =>
3170
3720
  }
3171
3721
  if (R) break;
3172
3722
  }
3173
- return _.length = h, r;
3174
- }, w = (g) => {
3175
- let h = g.search(/\S/), a = 0;
3176
- if (h < 0) return h;
3177
- for (let r = 0; r < h; )
3178
- a += g[r++] == " " ? e - a % e : 1;
3723
+ return E.length = _, r;
3724
+ }, w = (m) => {
3725
+ let _ = m.search(/\S/), a = 0;
3726
+ if (_ < 0) return _;
3727
+ for (let r = 0; r < _; )
3728
+ a += m[r++] == " " ? e - a % e : 1;
3179
3729
  return Math.ceil(a / e);
3180
3730
  };
3181
3731
  return {
3182
- lines: m.children,
3183
- indentLevels: _,
3184
- update(g, h) {
3185
- d || (d = g, g.extensions.indentGuides = this, g.overlays.append(m), g.addListener("update", y), g.addListener("selectionChange", l)), m.style.display = h.wordWrap ? "none" : "", e != (e = h.tabSize || 2) && (y(g.value), l());
3732
+ lines: h.children,
3733
+ indentLevels: E,
3734
+ update(m, _) {
3735
+ d || (d = m, m.extensions.indentGuides = this, m.overlays.append(h), m.addListener("update", y), m.addListener("selectionChange", l)), h.style.display = _.wordWrap ? "none" : "", e != (e = _.tabSize || 2) && (y(m.value), l());
3186
3736
  }
3187
3737
  };
3188
- }, Ga = () => (e) => {
3189
- let t, n, s, d = -1, p = [], b = () => {
3738
+ }, tr = () => (e) => {
3739
+ let t, n, i, d = -1, p = [], g = () => {
3190
3740
  n || (n = e.extensions.matchBrackets);
3191
- let [y, l] = e.getSelection(), c = y == l && e.focused && n && m(l) || -1;
3741
+ let [y, l] = e.getSelection(), c = y == l && e.focused && n && h(l) || -1;
3192
3742
  if (c != d) {
3193
- if (_(), c + 1) {
3194
- let w = t[s[c]], g = t[c];
3195
- p = [w, g].map(
3196
- (h) => je(e, ".punctuation", 0, -1, h[1])
3197
- ), p[0] != p[1] && w[1] + w[3].length == g[1] && (p[0].textContent += p[1].textContent, p[1].textContent = "", p[1] = p[0]), _(!0);
3743
+ if (E(), c + 1) {
3744
+ let w = t[i[c]], m = t[c];
3745
+ p = [w, m].map(
3746
+ (_) => Je(e, ".punctuation", 0, -1, _[1])
3747
+ ), p[0] != p[1] && w[1] + w[3].length == m[1] && (p[0].textContent += p[1].textContent, p[1].textContent = "", p[1] = p[0]), E(!0);
3198
3748
  } else p = [];
3199
3749
  d = c;
3200
3750
  }
3201
- }, m = (y) => {
3751
+ }, h = (y) => {
3202
3752
  var l;
3203
- ({ brackets: t, pairs: s } = n);
3753
+ ({ brackets: t, pairs: i } = n);
3204
3754
  for (let c = 0, w; w = t[++c]; )
3205
- if (!w[4] && w[5] >= y && ((l = t[s[c]]) == null ? void 0 : l[1]) <= y)
3755
+ if (!w[4] && w[5] >= y && ((l = t[i[c]]) == null ? void 0 : l[1]) <= y)
3206
3756
  return c;
3207
- }, _ = (y) => p.forEach((l) => l.classList.toggle("active-bracket", !!y));
3208
- z(e, "focus", b), z(e, "blur", b), e.addListener("selectionChange", b), e.addListener("update", () => {
3209
- _(), d = -1;
3757
+ }, E = (y) => p.forEach((l) => l.classList.toggle("active-bracket", !!y));
3758
+ z(e, "focus", g), z(e, "blur", g), e.addListener("selectionChange", g), e.addListener("update", () => {
3759
+ E(), d = -1;
3210
3760
  });
3211
- }, za = (e = !0, t = "([{", n = ")]}") => {
3212
- let s, d;
3213
- const p = [], b = (c) => {
3214
- c.extensions.matchBrackets = b, c.addListener("tokenize", y), e && c.tokens[0] ? c.update() : y(c.tokens);
3215
- }, m = b.brackets = [], _ = b.pairs = [], y = (c) => {
3216
- if (_.length = m.length = d = s = 0, l(c, 0), e)
3217
- for (let w = 0, g; g = m[w]; ) {
3218
- let h = g[0].alias;
3219
- g[0].alias = (h ? h + " " : "") + `bracket-${w++ in _ ? "level-" + g[2] % 12 : "error"}`;
3761
+ }, nr = (e = !0, t = "([{", n = ")]}") => {
3762
+ let i, d;
3763
+ const p = [], g = (c) => {
3764
+ c.extensions.matchBrackets = g, c.addListener("tokenize", y), e && c.tokens[0] ? c.update() : y(c.tokens);
3765
+ }, h = g.brackets = [], E = g.pairs = [], y = (c) => {
3766
+ if (E.length = h.length = d = i = 0, l(c, 0), e)
3767
+ for (let w = 0, m; m = h[w]; ) {
3768
+ let _ = m[0].alias;
3769
+ m[0].alias = (_ ? _ + " " : "") + `bracket-${w++ in E ? "level-" + m[2] % 12 : "error"}`;
3220
3770
  }
3221
3771
  }, l = (c, w) => {
3222
- let g, h = 0;
3223
- for (; g = c[h++]; ) {
3224
- let a = g.length;
3225
- if (typeof g != "string") {
3226
- let r = g.content;
3772
+ let m, _ = 0;
3773
+ for (; m = c[_++]; ) {
3774
+ let a = m.length;
3775
+ if (typeof m != "string") {
3776
+ let r = m.content;
3227
3777
  if (Array.isArray(r))
3228
3778
  l(r, w);
3229
- else if ((g.alias || g.type) == "punctuation") {
3230
- let u = mn(r, t, a - 1), o = u || mn(r, n, a - 1);
3779
+ else if ((m.alias || m.type) == "punctuation") {
3780
+ let u = Sn(r, t, a - 1), o = u || Sn(r, n, a - 1);
3231
3781
  if (o) {
3232
- if (m[s] = [g, w, 0, r, !!u, w + a], u) p[d++] = [s, u];
3782
+ if (h[i] = [m, w, 0, r, !!u, w + a], u) p[d++] = [i, u];
3233
3783
  else
3234
- for (let i = d; i; ) {
3235
- let [f, R] = p[--i];
3236
- o == R && (_[_[s] = f] = s, m[s][2] = m[f][2] = d = i, i = 0);
3784
+ for (let s = d; s; ) {
3785
+ let [f, R] = p[--s];
3786
+ o == R && (E[E[i] = f] = i, h[i][2] = h[f][2] = d = s, s = 0);
3237
3787
  }
3238
- s++;
3788
+ i++;
3239
3789
  }
3240
3790
  }
3241
3791
  }
3242
3792
  w += a;
3243
3793
  }
3244
3794
  };
3245
- return b;
3246
- }, mn = (e, t, n) => t.indexOf(e[0]) + 1 || n && t.indexOf(e[n]) + 1, Ha = "xml,rss,atom,jsx,tsx,xquery,actionscript".split(","), Va = /^(?:area|base|w?br|col|embed|hr|img|input|link|meta|source|track)$/i, Za = (e) => {
3247
- let t = [], n, s = [], d, p, b = [], m = (y, l, c) => {
3248
- n = c, s.length = t.length = d = p = 0, _(y, l, 0);
3249
- }, _ = (y, l, c) => {
3250
- let w = Ha.includes(l), g = 0, h = y.length;
3251
- for (; g < h; ) {
3252
- const a = y[g++], r = a.content, u = a.length;
3795
+ return g;
3796
+ }, Sn = (e, t, n) => t.indexOf(e[0]) + 1 || n && t.indexOf(e[n]) + 1, ar = "xml,rss,atom,jsx,tsx,xquery,actionscript".split(","), rr = /^(?:area|base|w?br|col|embed|hr|img|input|link|meta|source|track)$/i, ir = (e) => {
3797
+ let t = [], n, i = [], d, p, g = [], h = (y, l, c) => {
3798
+ n = c, i.length = t.length = d = p = 0, E(y, l, 0);
3799
+ }, E = (y, l, c) => {
3800
+ let w = ar.includes(l), m = 0, _ = y.length;
3801
+ for (; m < _; ) {
3802
+ const a = y[m++], r = a.content, u = a.length;
3253
3803
  if (Array.isArray(r))
3254
3804
  if (a.type == "tag" && n[c] == "<") {
3255
- const o = r[0].length, i = r[2] ? n.substr(c + o, r[1].length) : "", f = r[r.length - 1].length < 2 && (w || !Va.test(i));
3256
- if (r[2] && w && _(r, l, c), f)
3805
+ const o = r[0].length, s = r[2] ? n.substr(c + o, r[1].length) : "", f = r[r.length - 1].length < 2 && (w || !rr.test(s));
3806
+ if (r[2] && w && E(r, l, c), f)
3257
3807
  if (o > 1)
3258
3808
  for (let R = p; R; )
3259
- i == b[--R][1] && (t[t[d] = b[p = R][0]] = d, R = 0);
3809
+ s == g[--R][1] && (t[t[d] = g[p = R][0]] = d, R = 0);
3260
3810
  else
3261
- b[p++] = [d, i];
3262
- s[d++] = [
3811
+ g[p++] = [d, s];
3812
+ i[d++] = [
3263
3813
  a,
3264
3814
  c,
3265
3815
  c + u,
3266
- i,
3816
+ s,
3267
3817
  o > 1,
3268
3818
  f
3269
3819
  ];
3270
3820
  } else {
3271
3821
  let o = a.alias || a.type;
3272
- _(
3822
+ E(
3273
3823
  r,
3274
3824
  o.slice(0, 9) == "language-" ? o.slice(9) : l,
3275
3825
  c
@@ -3278,26 +3828,26 @@ const gn = navigator.clipboard, oe = Ke ? 4 : 2, Ca = (e) => It = e, se = (e) =>
3278
3828
  c += u;
3279
3829
  }
3280
3830
  };
3281
- return e.addListener("tokenize", m), m(e.tokens, e.options.language, e.value), {
3282
- tags: s,
3831
+ return e.addListener("tokenize", h), h(e.tokens, e.options.language, e.value), {
3832
+ tags: i,
3283
3833
  pairs: t
3284
3834
  };
3285
- }, Ka = (e, t) => {
3286
- for (let n = 0, s = t.length; n < s; n++) if (t[n][1] <= e && t[n][2] >= e) return n;
3287
- }, Wa = () => (e) => {
3835
+ }, sr = (e, t) => {
3836
+ for (let n = 0, i = t.length; n < i; n++) if (t[n][1] <= e && t[n][2] >= e) return n;
3837
+ }, or = () => (e) => {
3288
3838
  var t;
3289
- let n, s;
3290
- const { tags: d, pairs: p } = (t = e.extensions).matchTags || (t.matchTags = Za(e)), b = (m) => [n, s].forEach((_) => {
3291
- _ && _.classList.toggle("active-tagname", !m);
3839
+ let n, i;
3840
+ const { tags: d, pairs: p } = (t = e.extensions).matchTags || (t.matchTags = ir(e)), g = (h) => [n, i].forEach((E) => {
3841
+ E && E.classList.toggle("active-tagname", !h);
3292
3842
  });
3293
- e.addListener("selectionChange", ([m, _]) => {
3843
+ e.addListener("selectionChange", ([h, E]) => {
3294
3844
  let y, l, c;
3295
- m == _ && e.focused && (c = Ka(m, d), c + 1 && (c = p[c], c + 1 && (y = je(e, ".tag>.tag")) && (l = je(e, ".tag>.tag", 2, 0, d[c][1])))), n != y && (b(!0), n = y, s = l, b());
3845
+ h == E && e.focused && (c = sr(h, d), c + 1 && (c = p[c], c + 1 && (y = Je(e, ".tag>.tag")) && (l = Je(e, ".tag>.tag", 2, 0, d[c][1])))), n != y && (g(!0), n = y, i = l, g());
3296
3846
  });
3297
- }, qa = "_wrap_1x3wi_1", ja = "_blockInfoEditable_1x3wi_30", hn = {
3298
- wrap: qa,
3299
- blockInfoEditable: ja
3300
- }, Pe = [
3847
+ }, lr = "_wrap_1x3wi_1", cr = "_blockInfoEditable_1x3wi_30", kn = {
3848
+ wrap: lr,
3849
+ blockInfoEditable: cr
3850
+ }, Ue = [
3301
3851
  { value: "plaintext", label: "plaintext" },
3302
3852
  { value: "javascript", label: "JavaScript" },
3303
3853
  { value: "typescript", label: "TypeScript" },
@@ -3314,32 +3864,32 @@ const gn = navigator.clipboard, oe = Ke ? 4 : 2, Ca = (e) => It = e, se = (e) =>
3314
3864
  { value: "markdown", label: "Markdown" },
3315
3865
  { value: "bash", label: "Bash" },
3316
3866
  { value: "php", label: "PHP" }
3317
- ], ct = [2, 4, 8];
3318
- function Ya(e) {
3319
- const t = Qn(), n = $t(null), s = ea(() => Jn(Ja.name, e == null ? void 0 : e.editor), [e == null ? void 0 : e.editor]), d = $t(null), p = e.node.attrs.code || e.node.textContent || "", b = () => {
3867
+ ], ft = [2, 4, 8];
3868
+ function dr(e) {
3869
+ const t = da(), n = Gt(null), i = pa(() => ua(fr.name, e == null ? void 0 : e.editor), [e == null ? void 0 : e.editor]), d = Gt(null), p = e.node.attrs.code || e.node.textContent || "", g = () => {
3320
3870
  p && navigator.clipboard.writeText(p).then(() => {
3321
3871
  console.log("Copy Success");
3322
3872
  }).catch((l) => {
3323
3873
  console.error("Error:", l);
3324
3874
  });
3325
- }, m = () => {
3875
+ }, h = () => {
3326
3876
  e.updateAttributes({
3327
3877
  lineNumbers: !e.node.attrs.lineNumbers
3328
3878
  });
3329
- }, _ = () => {
3879
+ }, E = () => {
3330
3880
  e.updateAttributes({
3331
3881
  wordWrap: !e.node.attrs.wordWrap
3332
3882
  });
3333
3883
  }, y = (l) => {
3334
3884
  const c = { ...l };
3335
- return c.language && !Pe.some((w) => w.value === c.language) && (c.language = "plaintext", e.updateAttributes({
3885
+ return c.language && !Ue.some((w) => w.value === c.language) && (c.language = "plaintext", e.updateAttributes({
3336
3886
  language: "plaintext"
3337
3887
  })), c;
3338
3888
  };
3339
- return Ft(() => {
3889
+ return zt(() => {
3340
3890
  if (n.current) {
3341
3891
  const l = y(e.node.attrs);
3342
- d.current = Sa(n.current, {
3892
+ d.current = Ga(n.current, {
3343
3893
  readOnly: !e.editor.isEditable,
3344
3894
  language: l.language || "plaintext",
3345
3895
  tabSize: l.tabSize ?? 2,
@@ -3351,13 +3901,13 @@ function Ya(e) {
3351
3901
  e.updateAttributes({ code: c });
3352
3902
  }
3353
3903
  }), d.current.addExtensions(
3354
- za(),
3904
+ nr(),
3905
+ or(),
3906
+ er(),
3907
+ tr(),
3908
+ Xa(),
3355
3909
  Wa(),
3356
- Ba(),
3357
- Ga(),
3358
- $a(),
3359
- Ma(),
3360
- Pa()
3910
+ ja()
3361
3911
  ), e.node.attrs.shouldFocus && setTimeout(() => {
3362
3912
  var c;
3363
3913
  (c = d.current) == null || c.textarea.focus(), e.updateAttributes({
@@ -3369,22 +3919,22 @@ function Ya(e) {
3369
3919
  var l, c;
3370
3920
  (l = d.current) != null && l.remove && ((c = d.current) == null || c.remove());
3371
3921
  };
3372
- }, [n]), Ft(() => {
3922
+ }, [n]), zt(() => {
3373
3923
  var l, c;
3374
3924
  if ((l = d.current) != null && l.setOptions) {
3375
3925
  const w = y(e.node.attrs);
3376
3926
  (c = d.current) == null || c.setOptions(w);
3377
3927
  }
3378
- }, [d, e.node.attrs]), /* @__PURE__ */ T(jn, { className: Ne(hn.wrap, "render-wrapper"), children: /* @__PURE__ */ T(
3928
+ }, [d, e.node.attrs]), /* @__PURE__ */ k(oa, { className: Le(kn.wrap, "render-wrapper"), children: /* @__PURE__ */ k(
3379
3929
  "div",
3380
3930
  {
3381
3931
  ref: n,
3382
- className: Ne("richtext-node-container richtext-hover-shadow richtext-select-outline richtext-node-code-block !richtext-my-[10px]", {
3383
- [hn.blockInfoEditable]: !t
3932
+ className: Le("richtext-node-container richtext-hover-shadow richtext-select-outline richtext-node-code-block !richtext-my-[10px]", {
3933
+ [kn.blockInfoEditable]: !t
3384
3934
  }),
3385
- children: /* @__PURE__ */ me("div", { className: "richtext-code-block-toolbar", children: [
3386
- /* @__PURE__ */ T("div", { children: /* @__PURE__ */ me(
3387
- Ut,
3935
+ children: /* @__PURE__ */ _e("div", { className: "richtext-code-block-toolbar", children: [
3936
+ /* @__PURE__ */ k("div", { children: /* @__PURE__ */ _e(
3937
+ Ht,
3388
3938
  {
3389
3939
  defaultValue: e.node.attrs.language,
3390
3940
  disabled: !t,
@@ -3394,15 +3944,15 @@ function Ya(e) {
3394
3944
  });
3395
3945
  },
3396
3946
  children: [
3397
- /* @__PURE__ */ T(dt, { className: "richtext-h-7 richtext-w-[160px] richtext-border-none richtext-text-sm richtext-outline-none hover:richtext-bg-[#5a5d5e4f]", children: /* @__PURE__ */ T(aa, { placeholder: "Select language" }) }),
3398
- /* @__PURE__ */ T(
3399
- ut,
3947
+ /* @__PURE__ */ k(bt, { className: "richtext-h-7 richtext-w-[160px] richtext-border-none richtext-text-sm richtext-outline-none hover:richtext-bg-[#5a5d5e4f]", children: /* @__PURE__ */ k(ga, { placeholder: "Select language" }) }),
3948
+ /* @__PURE__ */ k(
3949
+ gt,
3400
3950
  {
3401
3951
  className: "richtext-border-[#3a3f4b] richtext-bg-[#21252b] richtext-text-[#ccc]",
3402
3952
  onCloseAutoFocus: (l) => l.preventDefault(),
3403
- children: Pe == null ? void 0 : Pe.map(
3404
- (l) => /* @__PURE__ */ T(
3405
- pt,
3953
+ children: Ue == null ? void 0 : Ue.map(
3954
+ (l) => /* @__PURE__ */ k(
3955
+ mt,
3406
3956
  {
3407
3957
  value: l.value,
3408
3958
  children: l.label
@@ -3415,14 +3965,14 @@ function Ya(e) {
3415
3965
  ]
3416
3966
  }
3417
3967
  ) }),
3418
- /* @__PURE__ */ T("div", { className: "toolbar-divider" }),
3419
- /* @__PURE__ */ T(
3968
+ /* @__PURE__ */ k("div", { className: "toolbar-divider" }),
3969
+ /* @__PURE__ */ k(
3420
3970
  "div",
3421
3971
  {
3422
3972
  className: "richtext-flex richtext-size-7 richtext-cursor-pointer richtext-items-center richtext-justify-center richtext-rounded-sm hover:richtext-bg-[#5a5d5e4f]",
3423
- onClick: b,
3424
- children: /* @__PURE__ */ T(
3425
- we,
3973
+ onClick: g,
3974
+ children: /* @__PURE__ */ k(
3975
+ xe,
3426
3976
  {
3427
3977
  className: "richtext-size-4",
3428
3978
  name: "Copy"
@@ -3430,16 +3980,16 @@ function Ya(e) {
3430
3980
  )
3431
3981
  }
3432
3982
  ),
3433
- /* @__PURE__ */ T("div", { className: "toolbar-divider" }),
3434
- /* @__PURE__ */ T(
3983
+ /* @__PURE__ */ k("div", { className: "toolbar-divider" }),
3984
+ /* @__PURE__ */ k(
3435
3985
  "div",
3436
3986
  {
3437
- onClick: m,
3438
- className: Ne("richtext-flex richtext-size-7 richtext-cursor-pointer richtext-items-center richtext-justify-center richtext-rounded-sm hover:richtext-bg-[#5a5d5e4f]", {
3987
+ onClick: h,
3988
+ className: Le("richtext-flex richtext-size-7 richtext-cursor-pointer richtext-items-center richtext-justify-center richtext-rounded-sm hover:richtext-bg-[#5a5d5e4f]", {
3439
3989
  "richtext-bg-[#5a5d5e4f]": e == null ? void 0 : e.node.attrs.lineNumbers
3440
3990
  }),
3441
- children: /* @__PURE__ */ T(
3442
- we,
3991
+ children: /* @__PURE__ */ k(
3992
+ xe,
3443
3993
  {
3444
3994
  className: "richtext-size-4",
3445
3995
  name: "List"
@@ -3447,16 +3997,16 @@ function Ya(e) {
3447
3997
  )
3448
3998
  }
3449
3999
  ),
3450
- /* @__PURE__ */ T("div", { className: "toolbar-divider" }),
3451
- /* @__PURE__ */ T(
4000
+ /* @__PURE__ */ k("div", { className: "toolbar-divider" }),
4001
+ /* @__PURE__ */ k(
3452
4002
  "div",
3453
4003
  {
3454
- onClick: _,
3455
- className: Ne("richtext-flex richtext-size-7 richtext-cursor-pointer richtext-items-center richtext-justify-center richtext-rounded-sm hover:richtext-bg-[#5a5d5e4f]", {
4004
+ onClick: E,
4005
+ className: Le("richtext-flex richtext-size-7 richtext-cursor-pointer richtext-items-center richtext-justify-center richtext-rounded-sm hover:richtext-bg-[#5a5d5e4f]", {
3456
4006
  "richtext-bg-[#5a5d5e4f]": e == null ? void 0 : e.node.attrs.wordWrap
3457
4007
  }),
3458
- children: /* @__PURE__ */ T(
3459
- we,
4008
+ children: /* @__PURE__ */ k(
4009
+ xe,
3460
4010
  {
3461
4011
  className: "richtext-size-4",
3462
4012
  name: "WrapText"
@@ -3464,9 +4014,9 @@ function Ya(e) {
3464
4014
  )
3465
4015
  }
3466
4016
  ),
3467
- /* @__PURE__ */ T("div", { className: "toolbar-divider" }),
3468
- /* @__PURE__ */ T("div", { children: /* @__PURE__ */ me(
3469
- Ut,
4017
+ /* @__PURE__ */ k("div", { className: "toolbar-divider" }),
4018
+ /* @__PURE__ */ k("div", { children: /* @__PURE__ */ _e(
4019
+ Ht,
3470
4020
  {
3471
4021
  defaultValue: e.node.attrs.tabSize,
3472
4022
  disabled: !t,
@@ -3476,20 +4026,20 @@ function Ya(e) {
3476
4026
  });
3477
4027
  },
3478
4028
  children: [
3479
- /* @__PURE__ */ T(dt, { className: "richtext-h-7 richtext-w-[60px] richtext-border-none richtext-text-sm richtext-outline-none hover:richtext-bg-[#5a5d5e4f]", children: /* @__PURE__ */ T(
3480
- we,
4029
+ /* @__PURE__ */ k(bt, { className: "richtext-h-7 richtext-w-[60px] richtext-border-none richtext-text-sm richtext-outline-none hover:richtext-bg-[#5a5d5e4f]", children: /* @__PURE__ */ k(
4030
+ xe,
3481
4031
  {
3482
4032
  className: "richtext-size-4",
3483
4033
  name: "IndentIncrease"
3484
4034
  }
3485
4035
  ) }),
3486
- /* @__PURE__ */ T(
3487
- ut,
4036
+ /* @__PURE__ */ k(
4037
+ gt,
3488
4038
  {
3489
4039
  className: "richtext-border-[#3a3f4b] richtext-bg-[#21252b] richtext-text-[#ccc]",
3490
4040
  onCloseAutoFocus: (l) => l.preventDefault(),
3491
- children: ct == null ? void 0 : ct.map((l) => /* @__PURE__ */ T(
3492
- pt,
4041
+ children: ft == null ? void 0 : ft.map((l) => /* @__PURE__ */ k(
4042
+ mt,
3493
4043
  {
3494
4044
  value: l,
3495
4045
  children: l
@@ -3501,14 +4051,14 @@ function Ya(e) {
3501
4051
  ]
3502
4052
  }
3503
4053
  ) }),
3504
- /* @__PURE__ */ T("div", { className: "toolbar-divider" }),
3505
- /* @__PURE__ */ T(
4054
+ /* @__PURE__ */ k("div", { className: "toolbar-divider" }),
4055
+ /* @__PURE__ */ k(
3506
4056
  "div",
3507
4057
  {
3508
4058
  className: "richtext-flex richtext-size-7 richtext-cursor-pointer richtext-items-center richtext-justify-center richtext-rounded-sm hover:richtext-bg-[#5a5d5e4f]",
3509
- onClick: s,
3510
- children: /* @__PURE__ */ T(
3511
- we,
4059
+ onClick: i,
4060
+ children: /* @__PURE__ */ k(
4061
+ xe,
3512
4062
  {
3513
4063
  className: "richtext-size-4",
3514
4064
  name: "Trash2"
@@ -3520,7 +4070,7 @@ function Ya(e) {
3520
4070
  }
3521
4071
  ) });
3522
4072
  }
3523
- const Xa = /^`{3}([a-z]+)?\s$/, Qa = /^~{3}([a-z]+)?\s$/, Ja = /* @__PURE__ */ Wn.create({
4073
+ const ur = /^`{3}([a-z]+)?\s$/, pr = /^~{3}([a-z]+)?\s$/, fr = /* @__PURE__ */ ia.create({
3524
4074
  name: "codeBlock",
3525
4075
  group: "block",
3526
4076
  atom: !0,
@@ -3531,7 +4081,7 @@ const Xa = /^`{3}([a-z]+)?\s$/, Qa = /^~{3}([a-z]+)?\s$/, Ja = /* @__PURE__ */ W
3531
4081
  ...(e = this.parent) == null ? void 0 : e.call(this),
3532
4082
  languages: [],
3533
4083
  button: ({ editor: t, t: n }) => ({
3534
- component: sa,
4084
+ component: _a,
3535
4085
  componentProps: {
3536
4086
  action: () => t.commands.setCodeBlock({}),
3537
4087
  isActive: () => t.isActive("codeBlock") || !1,
@@ -3586,16 +4136,16 @@ const Xa = /^`{3}([a-z]+)?\s$/, Qa = /^~{3}([a-z]+)?\s$/, Ja = /* @__PURE__ */ W
3586
4136
  ];
3587
4137
  },
3588
4138
  renderHTML({ HTMLAttributes: e, node: t }) {
3589
- var s;
3590
- const n = t.attrs.code || ((s = t.content.firstChild) == null ? void 0 : s.text) || "";
4139
+ var i;
4140
+ const n = t.attrs.code || ((i = t.content.firstChild) == null ? void 0 : i.text) || "";
3591
4141
  return [
3592
4142
  "pre",
3593
- qn(this.options.HTMLAttributes, e),
4143
+ sa(this.options.HTMLAttributes, e),
3594
4144
  ["code", {}, n]
3595
4145
  ];
3596
4146
  },
3597
4147
  addNodeView() {
3598
- return Yn(Ya);
4148
+ return la(dr);
3599
4149
  },
3600
4150
  addCommands() {
3601
4151
  return {
@@ -3615,15 +4165,15 @@ const Xa = /^`{3}([a-z]+)?\s$/, Qa = /^~{3}([a-z]+)?\s$/, Ja = /* @__PURE__ */ W
3615
4165
  },
3616
4166
  addInputRules() {
3617
4167
  return [
3618
- Dt({
3619
- find: Xa,
4168
+ Bt({
4169
+ find: ur,
3620
4170
  type: this.type,
3621
4171
  getAttributes: (e) => ({
3622
4172
  language: e[1]
3623
4173
  })
3624
4174
  }),
3625
- Dt({
3626
- find: Qa,
4175
+ Bt({
4176
+ find: pr,
3627
4177
  type: this.type,
3628
4178
  getAttributes: (e) => ({
3629
4179
  language: e[1]
@@ -3633,7 +4183,7 @@ const Xa = /^`{3}([a-z]+)?\s$/, Qa = /^~{3}([a-z]+)?\s$/, Ja = /* @__PURE__ */ W
3633
4183
  }
3634
4184
  });
3635
4185
  export {
3636
- Ja as CodeBlock,
3637
- Xa as backtickInputRegex,
3638
- Qa as tildeInputRegex
4186
+ fr as CodeBlock,
4187
+ ur as backtickInputRegex,
4188
+ pr as tildeInputRegex
3639
4189
  };