reactjs-tiptap-editor 1.0.11 → 1.0.13

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