zudoku 0.3.0-dev.31 → 0.3.0-dev.33

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 (206) hide show
  1. package/dist/app/App.d.ts +1 -0
  2. package/dist/app/App.js +2 -0
  3. package/dist/app/App.js.map +1 -0
  4. package/dist/app/entry.client.d.ts +3 -0
  5. package/dist/app/entry.client.js +38 -0
  6. package/dist/app/entry.client.js.map +1 -0
  7. package/dist/app/entry.server.d.ts +10 -0
  8. package/dist/app/entry.server.js +107 -0
  9. package/dist/app/entry.server.js.map +1 -0
  10. package/dist/app/main.d.ts +26 -2
  11. package/dist/app/main.js +39 -17
  12. package/dist/app/main.js.map +1 -1
  13. package/dist/app/tailwind.js +5 -0
  14. package/dist/app/tailwind.js.map +1 -1
  15. package/dist/app/zudoku-manifest.d.ts +1 -0
  16. package/dist/app/zudoku-manifest.js +20 -0
  17. package/dist/app/zudoku-manifest.js.map +1 -0
  18. package/dist/cli/cmds/dev.js +5 -0
  19. package/dist/cli/cmds/dev.js.map +1 -1
  20. package/dist/cli/dev/handler.d.ts +1 -0
  21. package/dist/cli/dev/handler.js +3 -1
  22. package/dist/cli/dev/handler.js.map +1 -1
  23. package/dist/config/config.d.ts +5 -0
  24. package/dist/lib/authentication/providers/clerk.js +2 -0
  25. package/dist/lib/authentication/providers/clerk.js.map +1 -1
  26. package/dist/lib/components/DevPortal.d.ts +1 -1
  27. package/dist/lib/components/DevPortal.js +6 -10
  28. package/dist/lib/components/DevPortal.js.map +1 -1
  29. package/dist/lib/components/ErrorPage.d.ts +6 -0
  30. package/dist/lib/components/ErrorPage.js +9 -0
  31. package/dist/lib/components/ErrorPage.js.map +1 -0
  32. package/dist/lib/components/InlineCode.d.ts +5 -0
  33. package/dist/lib/components/InlineCode.js +4 -0
  34. package/dist/lib/components/InlineCode.js.map +1 -0
  35. package/dist/lib/components/Layout.js +2 -1
  36. package/dist/lib/components/Layout.js.map +1 -1
  37. package/dist/lib/components/NotFoundPage.d.ts +1 -0
  38. package/dist/lib/components/NotFoundPage.js +12 -0
  39. package/dist/lib/components/NotFoundPage.js.map +1 -0
  40. package/dist/lib/components/SyntaxHighlight.d.ts +3 -2
  41. package/dist/lib/components/SyntaxHighlight.js +20 -22
  42. package/dist/lib/components/SyntaxHighlight.js.map +1 -1
  43. package/dist/lib/errors/RouterError.js +6 -3
  44. package/dist/lib/errors/RouterError.js.map +1 -1
  45. package/dist/lib/errors/ServerError.d.ts +3 -0
  46. package/dist/lib/errors/ServerError.js +6 -0
  47. package/dist/lib/errors/ServerError.js.map +1 -0
  48. package/dist/lib/oas/parser/index.d.ts +1 -1
  49. package/dist/lib/oas/parser/index.js +38 -14
  50. package/dist/lib/oas/parser/index.js.map +1 -1
  51. package/dist/lib/plugins/api-keys/index.js +3 -8
  52. package/dist/lib/plugins/api-keys/index.js.map +1 -1
  53. package/dist/lib/plugins/markdown/generateRoutes.js.map +1 -1
  54. package/dist/lib/plugins/markdown/index.js +3 -7
  55. package/dist/lib/plugins/markdown/index.js.map +1 -1
  56. package/dist/lib/plugins/openapi/OperationList.js +11 -1
  57. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  58. package/dist/lib/plugins/openapi/OperationListItem.js +2 -1
  59. package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
  60. package/dist/lib/plugins/openapi/SchemaListView.js +2 -1
  61. package/dist/lib/plugins/openapi/SchemaListView.js.map +1 -1
  62. package/dist/lib/plugins/openapi/client/createMemoryClient.js +1 -1
  63. package/dist/lib/plugins/openapi/client/createMemoryClient.js.map +1 -1
  64. package/dist/lib/plugins/openapi/index.js +9 -1
  65. package/dist/lib/plugins/openapi/index.js.map +1 -1
  66. package/dist/lib/plugins/openapi/playground/QueryParams.js +2 -1
  67. package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
  68. package/dist/lib/plugins/redirect/index.js +2 -3
  69. package/dist/lib/plugins/redirect/index.js.map +1 -1
  70. package/dist/lib/ui/Callout.js +1 -1
  71. package/dist/lib/ui/Callout.js.map +1 -1
  72. package/dist/lib/ui/button-variants.d.ts +1 -1
  73. package/dist/lib/util/MdxComponents.js +2 -2
  74. package/dist/lib/util/MdxComponents.js.map +1 -1
  75. package/dist/lib/util/groupBy.d.ts +1 -6
  76. package/dist/lib/util/groupBy.js +10 -8
  77. package/dist/lib/util/groupBy.js.map +1 -1
  78. package/dist/vite/build.js +30 -11
  79. package/dist/vite/build.js.map +1 -1
  80. package/dist/vite/config.d.ts +2 -1
  81. package/dist/vite/config.js +34 -7
  82. package/dist/vite/config.js.map +1 -1
  83. package/dist/vite/dev-server.d.ts +1 -1
  84. package/dist/vite/dev-server.js +15 -9
  85. package/dist/vite/dev-server.js.map +1 -1
  86. package/dist/vite/html.js +5 -4
  87. package/dist/vite/html.js.map +1 -1
  88. package/dist/vite/plugin-custom-css.d.ts +6 -0
  89. package/dist/vite/plugin-custom-css.js +55 -0
  90. package/dist/vite/plugin-custom-css.js.map +1 -0
  91. package/dist/vite/plugin-docs.js +14 -5
  92. package/dist/vite/plugin-docs.js.map +1 -1
  93. package/dist/vite/plugin-openapi-worker.js +4 -1
  94. package/dist/vite/plugin-openapi-worker.js.map +1 -1
  95. package/dist/vite/plugin.js +2 -0
  96. package/dist/vite/plugin.js.map +1 -1
  97. package/dist/vite/prerender.d.ts +1 -0
  98. package/dist/vite/prerender.js +57 -0
  99. package/dist/vite/prerender.js.map +1 -0
  100. package/lib/{DevPortalProvider-BMk-RCE0.js → DevPortalProvider-BlxLX6GG.js} +230 -250
  101. package/lib/DevPortalProvider-BlxLX6GG.js.map +1 -0
  102. package/lib/{Markdown-DDmW47R9.js → Markdown-CL8KPvJN.js} +8 -9
  103. package/lib/{Markdown-DDmW47R9.js.map → Markdown-CL8KPvJN.js.map} +1 -1
  104. package/lib/MdxComponents-Ev_hBHb2.js +5885 -0
  105. package/lib/MdxComponents-Ev_hBHb2.js.map +1 -0
  106. package/lib/{MdxPage-DyJAHF9y.js → MdxPage-Z3HKNTrj.js} +92 -89
  107. package/lib/MdxPage-Z3HKNTrj.js.map +1 -0
  108. package/lib/{OperationList-Dz9rHM9r.js → OperationList-DfkWNe8Y.js} +1972 -1786
  109. package/lib/OperationList-DfkWNe8Y.js.map +1 -0
  110. package/lib/Route-Bf1_D_vC.js +13 -0
  111. package/lib/{Route-CN_7-e5r.js.map → Route-Bf1_D_vC.js.map} +1 -1
  112. package/lib/Select-DSa3bN4t.js +4770 -0
  113. package/lib/Select-DSa3bN4t.js.map +1 -0
  114. package/lib/assets/{worker-BXS8hiSM.js → worker-BjPv-hjP.js} +3100 -2720
  115. package/lib/assets/worker-BjPv-hjP.js.map +1 -0
  116. package/lib/hook-CTmJ6CWq.js +35 -0
  117. package/lib/hook-CTmJ6CWq.js.map +1 -0
  118. package/lib/index-BdWBDosx.js +74 -0
  119. package/lib/index-BdWBDosx.js.map +1 -0
  120. package/lib/{index-Cpdpun6t.js → index-BjSy8IQO.js} +57 -41
  121. package/lib/index-BjSy8IQO.js.map +1 -0
  122. package/lib/{AnchorLink-ptdQk87q.js → index.esm-CPEExBJE.js} +156 -168
  123. package/lib/index.esm-CPEExBJE.js.map +1 -0
  124. package/lib/jsx-runtime-CM0TzjGp.js +866 -0
  125. package/lib/jsx-runtime-CM0TzjGp.js.map +1 -0
  126. package/lib/mutation-91kw0lHb.js +208 -0
  127. package/lib/mutation-91kw0lHb.js.map +1 -0
  128. package/lib/router-CcYTwKjf.js +183 -0
  129. package/lib/router-CcYTwKjf.js.map +1 -0
  130. package/lib/zudoku.auth-clerk.js.map +1 -1
  131. package/lib/zudoku.auth-openid.js +588 -441
  132. package/lib/zudoku.auth-openid.js.map +1 -1
  133. package/lib/zudoku.components.js +284 -595
  134. package/lib/zudoku.components.js.map +1 -1
  135. package/lib/zudoku.openapi-worker.js +18 -18
  136. package/lib/zudoku.plugin-api-keys.js +143 -98
  137. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  138. package/lib/zudoku.plugin-markdown.js +2 -49
  139. package/lib/zudoku.plugin-markdown.js.map +1 -1
  140. package/lib/zudoku.plugin-openapi.js +5 -3
  141. package/lib/zudoku.plugin-openapi.js.map +1 -1
  142. package/lib/zudoku.plugin-redirect.js +6 -7
  143. package/lib/zudoku.plugin-redirect.js.map +1 -1
  144. package/package.json +9 -8
  145. package/src/app/App.tsx +0 -0
  146. package/src/app/entry.client.tsx +64 -0
  147. package/src/app/entry.server.tsx +158 -0
  148. package/src/app/main.tsx +65 -43
  149. package/src/app/tailwind.ts +6 -0
  150. package/src/app/zudoku-manifest.ts +22 -0
  151. package/src/lib/authentication/providers/clerk.tsx +1 -0
  152. package/src/lib/components/DevPortal.tsx +25 -33
  153. package/src/lib/components/ErrorPage.tsx +28 -0
  154. package/src/lib/components/InlineCode.tsx +19 -0
  155. package/src/lib/components/Layout.tsx +7 -4
  156. package/src/lib/components/NotFoundPage.tsx +39 -0
  157. package/src/lib/components/SyntaxHighlight.tsx +26 -22
  158. package/src/lib/errors/RouterError.tsx +8 -7
  159. package/src/lib/errors/ServerError.tsx +5 -0
  160. package/src/lib/oas/parser/index.ts +41 -22
  161. package/src/lib/plugins/api-keys/index.tsx +4 -16
  162. package/src/lib/plugins/markdown/generateRoutes.tsx +1 -1
  163. package/src/lib/plugins/markdown/index.tsx +3 -7
  164. package/src/lib/plugins/openapi/OperationList.tsx +30 -0
  165. package/src/lib/plugins/openapi/OperationListItem.tsx +3 -1
  166. package/src/lib/plugins/openapi/SchemaListView.tsx +8 -10
  167. package/src/lib/plugins/openapi/client/createMemoryClient.ts +1 -1
  168. package/src/lib/plugins/openapi/index.tsx +18 -1
  169. package/src/lib/plugins/openapi/playground/QueryParams.tsx +6 -1
  170. package/src/lib/plugins/redirect/index.tsx +2 -2
  171. package/src/lib/ui/Callout.tsx +2 -2
  172. package/src/lib/util/MdxComponents.tsx +2 -11
  173. package/src/lib/util/groupBy.ts +7 -12
  174. package/dist/lib/components/Router.d.ts +0 -4
  175. package/dist/lib/components/Router.js +0 -21
  176. package/dist/lib/components/Router.js.map +0 -1
  177. package/lib/AnchorLink-ptdQk87q.js.map +0 -1
  178. package/lib/DevPortalProvider-BMk-RCE0.js.map +0 -1
  179. package/lib/MdxComponents-C0R6zobS.js +0 -3019
  180. package/lib/MdxComponents-C0R6zobS.js.map +0 -1
  181. package/lib/MdxPage-DyJAHF9y.js.map +0 -1
  182. package/lib/OperationList-Dz9rHM9r.js.map +0 -1
  183. package/lib/Route-CN_7-e5r.js +0 -14
  184. package/lib/Select-D-Jtx53Q.js +0 -4572
  185. package/lib/Select-D-Jtx53Q.js.map +0 -1
  186. package/lib/Spinner-BG1JnYy0.js +0 -182
  187. package/lib/Spinner-BG1JnYy0.js.map +0 -1
  188. package/lib/assets/worker-BXS8hiSM.js.map +0 -1
  189. package/lib/cn-DpqTslo9.js +0 -2342
  190. package/lib/cn-DpqTslo9.js.map +0 -1
  191. package/lib/hook-BzBeIPL4.js +0 -25
  192. package/lib/hook-BzBeIPL4.js.map +0 -1
  193. package/lib/index-BaOOUFsA.js +0 -412
  194. package/lib/index-BaOOUFsA.js.map +0 -1
  195. package/lib/index-CPvRaBBB.js +0 -713
  196. package/lib/index-CPvRaBBB.js.map +0 -1
  197. package/lib/index-Cpdpun6t.js.map +0 -1
  198. package/lib/index-DLS6fPwU.js +0 -464
  199. package/lib/index-DLS6fPwU.js.map +0 -1
  200. package/lib/jsx-runtime-SV6hXQua.js +0 -3009
  201. package/lib/jsx-runtime-SV6hXQua.js.map +0 -1
  202. package/lib/loglevel-CA34MiFn.js +0 -153
  203. package/lib/loglevel-CA34MiFn.js.map +0 -1
  204. package/lib/util-CCWvaWo7.js +0 -41
  205. package/lib/util-CCWvaWo7.js.map +0 -1
  206. package/src/lib/components/Router.tsx +0 -24
@@ -1,3019 +0,0 @@
1
- import { j as k } from "./jsx-runtime-SV6hXQua.js";
2
- import { c as q, b as Se, C as _e, L as Fe } from "./index-CPvRaBBB.js";
3
- import { createContext as ye, useRef as M, useEffect as G, useCallback as Z, useContext as fe, useState as X, useMemo as ne, createElement as Te } from "react";
4
- import { c as z, a as be } from "./cn-DpqTslo9.js";
5
- /**
6
- * @license lucide-react v0.378.0 - ISC
7
- *
8
- * This source code is licensed under the ISC license.
9
- * See the LICENSE file in the root directory of this source tree.
10
- */
11
- const Re = q("Copy", [
12
- ["rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2", key: "17jyea" }],
13
- ["path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2", key: "zix9uf" }]
14
- ]);
15
- /**
16
- * @license lucide-react v0.378.0 - ISC
17
- *
18
- * This source code is licensed under the ISC license.
19
- * See the LICENSE file in the root directory of this source tree.
20
- */
21
- const le = q("Info", [
22
- ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
23
- ["path", { d: "M12 16v-4", key: "1dtifu" }],
24
- ["path", { d: "M12 8h.01", key: "e9boi3" }]
25
- ]);
26
- /**
27
- * @license lucide-react v0.378.0 - ISC
28
- *
29
- * This source code is licensed under the ISC license.
30
- * See the LICENSE file in the root directory of this source tree.
31
- */
32
- const Ie = q("Lightbulb", [
33
- [
34
- "path",
35
- {
36
- d: "M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",
37
- key: "1gvzjb"
38
- }
39
- ],
40
- ["path", { d: "M9 18h6", key: "x1upvd" }],
41
- ["path", { d: "M10 22h4", key: "ceow96" }]
42
- ]);
43
- /**
44
- * @license lucide-react v0.378.0 - ISC
45
- *
46
- * This source code is licensed under the ISC license.
47
- * See the LICENSE file in the root directory of this source tree.
48
- */
49
- const Le = q("ShieldAlert", [
50
- [
51
- "path",
52
- {
53
- d: "M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",
54
- key: "oel41y"
55
- }
56
- ],
57
- ["path", { d: "M12 8v4", key: "1got3b" }],
58
- ["path", { d: "M12 16h.01", key: "1drbdi" }]
59
- ]);
60
- /**
61
- * @license lucide-react v0.378.0 - ISC
62
- *
63
- * This source code is licensed under the ISC license.
64
- * See the LICENSE file in the root directory of this source tree.
65
- */
66
- const Ce = q("TriangleAlert", [
67
- [
68
- "path",
69
- {
70
- d: "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",
71
- key: "wmoenq"
72
- }
73
- ],
74
- ["path", { d: "M12 9v4", key: "juzpu7" }],
75
- ["path", { d: "M12 17h.01", key: "p32p05" }]
76
- ]), Oe = {
77
- note: {
78
- border: "border-gray-300 dark:border-zinc-800",
79
- bg: "bg-gray-100 dark:bg-zinc-800/50",
80
- iconColor: "text-gray-600 dark:text-zinc-300",
81
- titleColor: "text-gray-600 dark:text-zinc-300",
82
- textColor: "text-gray-600 dark:text-zinc-300",
83
- Icon: le
84
- },
85
- tip: {
86
- border: "border-green-500 dark:border-green-800",
87
- bg: "bg-green-200/25 dark:bg-green-950/70",
88
- iconColor: "text-green-600 dark:text-green-200",
89
- titleColor: "text-green-700 dark:text-green-200",
90
- textColor: "text-green-600 dark:text-green-50",
91
- Icon: Ie
92
- },
93
- info: {
94
- border: "border-blue-400 dark:border-blue-900/60",
95
- bg: "bg-blue-50 dark:bg-blue-950/40",
96
- iconColor: "text-blue-400 dark:text-blue-200",
97
- titleColor: "text-blue-700 dark:text-blue-200",
98
- textColor: "text-blue-600 dark:text-blue-100",
99
- Icon: le
100
- },
101
- caution: {
102
- border: "border-yellow-400 dark:border-yellow-400/25",
103
- bg: "bg-yellow-100/60 dark:bg-yellow-400/10",
104
- iconColor: "text-yellow-500 dark:text-yellow-300",
105
- titleColor: "text-yellow-600 dark:text-yellow-300",
106
- textColor: "text-yellow-700 dark:text-yellow-200",
107
- Icon: Ce
108
- },
109
- danger: {
110
- border: "border-rose-400 dark:border-rose-800",
111
- bg: "bg-rose-50 dark:bg-rose-950/40",
112
- iconColor: "text-rose-400 dark:text-rose-300",
113
- titleColor: "text-rose-800 dark:text-rose-300",
114
- textColor: "text-rose-700 dark:text-rose-100",
115
- Icon: Le
116
- }
117
- }, j = ({ type: e, children: t, title: r, className: i }) => {
118
- const { border: l, bg: b, iconColor: c, titleColor: d, textColor: p, Icon: y } = Oe[e];
119
- return /* @__PURE__ */ k.jsxs(
120
- "div",
121
- {
122
- className: z(
123
- "not-prose grid grid-cols-[fit-content_1fr] grid-rows-[fit-content_1fr] gap-x-4 gap-y-2 text-md rounded-md border p-4",
124
- "[&_a]:underline [&_a]:decoration-current [&_a]:decoration-from-font [&_a]:underline-offset-4 hover:[&_a]:decoration-1",
125
- "[&_code]:!bg-transparent [&_code]:!border-none",
126
- r && "items-center",
127
- l,
128
- b,
129
- i
130
- ),
131
- children: [
132
- /* @__PURE__ */ k.jsx(
133
- y,
134
- {
135
- className: z(!r && "mt-1 translate-y-px", c),
136
- size: 20,
137
- "aria-hidden": "true"
138
- }
139
- ),
140
- r && /* @__PURE__ */ k.jsx("h3", { className: z("font-medium", d), children: r }),
141
- /* @__PURE__ */ k.jsx("div", { className: z("col-start-2", !r && "row-start-1", p), children: t })
142
- ]
143
- }
144
- );
145
- }, me = ye(
146
- void 0
147
- ), Ne = () => {
148
- const e = fe(me);
149
- if (!e)
150
- throw new Error(
151
- "useViewportAnchor must be used within a CurrentAnchorProvider"
152
- );
153
- return e;
154
- }, De = () => {
155
- const e = M(null), { observe: t, unobserve: r } = Ne();
156
- return G(() => {
157
- const l = e.current;
158
- if (l)
159
- return t(l), () => r(l);
160
- }, [t, r]), { ref: Z((l) => {
161
- l && (e.current = l);
162
- }, []) };
163
- }, Zt = ({
164
- children: e
165
- }) => {
166
- const [t, r] = X(""), i = M(null), l = M(/* @__PURE__ */ new Set());
167
- G(() => (i.current = new IntersectionObserver(
168
- (d) => {
169
- for (const p of d)
170
- p.isIntersecting && p.target.id && r(p.target.id);
171
- },
172
- {
173
- // 115px is the height of the sticky header
174
- // see --header-height in `main.css`
175
- rootMargin: "115px 0px -80% 0px",
176
- threshold: 0.75
177
- }
178
- ), () => {
179
- var d;
180
- return (d = i.current) == null ? void 0 : d.disconnect();
181
- }), []), G(() => {
182
- const d = l.current, p = () => {
183
- const y = window.scrollY === 0, h = window.innerHeight + window.scrollY >= document.body.scrollHeight;
184
- y ? r("") : h && requestIdleCallback(() => {
185
- const g = Array.from(d).pop();
186
- r((g == null ? void 0 : g.id) ?? "");
187
- });
188
- };
189
- return document.addEventListener("scroll", p), () => {
190
- d.clear(), document.removeEventListener("scroll", p);
191
- };
192
- }, []);
193
- const b = ne(() => ({
194
- observe: (d) => {
195
- !d || !i.current || (l.current.add(d), i.current.observe(d));
196
- },
197
- unobserve: (d) => {
198
- !d || !i.current || (l.current.delete(d), i.current.unobserve(d));
199
- }
200
- }), []), c = ne(
201
- () => ({ activeAnchor: t, setActiveAnchor: r, ...b }),
202
- [t, r, b]
203
- );
204
- return /* @__PURE__ */ k.jsx(me.Provider, { value: c, children: e });
205
- }, Be = Se("group relative", {
206
- variants: {
207
- level: {
208
- 6: "text-md",
209
- 5: "text-lg",
210
- 4: "text-xl",
211
- 3: "text-xl font-semibold",
212
- 2: "text-2xl font-bold",
213
- 1: "text-4xl font-extrabold"
214
- }
215
- },
216
- defaultVariants: {
217
- level: 1
218
- }
219
- }), je = (e) => {
220
- switch (e) {
221
- case 1:
222
- return "h1";
223
- case 2:
224
- return "h2";
225
- case 3:
226
- return "h3";
227
- case 4:
228
- return "h4";
229
- case 5:
230
- return "h5";
231
- case 6:
232
- return "h6";
233
- default:
234
- return "h1";
235
- }
236
- }, P = ({
237
- level: e,
238
- children: t,
239
- id: r,
240
- className: i,
241
- registerSidebarAnchor: l
242
- }) => {
243
- const b = je(e ?? 1), { ref: c } = De();
244
- return /* @__PURE__ */ k.jsxs(
245
- b,
246
- {
247
- className: Be({ className: i, level: e }),
248
- ref: l ? c : void 0,
249
- id: r,
250
- children: [
251
- r && /* @__PURE__ */ k.jsx(
252
- "a",
253
- {
254
- href: `#${r}`,
255
- className: "no-underline absolute text-primary -left-[0.8em] pr-2.5 opacity-0 group-hover:opacity-50 hover:!opacity-100 transition-opacity duration-200",
256
- "aria-label": `Link to ${r}`,
257
- children: "#"
258
- }
259
- ),
260
- t
261
- ]
262
- }
263
- );
264
- };
265
- var $e = Object.create, Q = Object.defineProperty, Pe = Object.defineProperties, ze = Object.getOwnPropertyDescriptor, Me = Object.getOwnPropertyDescriptors, he = Object.getOwnPropertyNames, K = Object.getOwnPropertySymbols, Ue = Object.getPrototypeOf, oe = Object.prototype.hasOwnProperty, ve = Object.prototype.propertyIsEnumerable, ue = (e, t, r) => t in e ? Q(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, O = (e, t) => {
266
- for (var r in t || (t = {}))
267
- oe.call(t, r) && ue(e, r, t[r]);
268
- if (K)
269
- for (var r of K(t))
270
- ve.call(t, r) && ue(e, r, t[r]);
271
- return e;
272
- }, J = (e, t) => Pe(e, Me(t)), ke = (e, t) => {
273
- var r = {};
274
- for (var i in e)
275
- oe.call(e, i) && t.indexOf(i) < 0 && (r[i] = e[i]);
276
- if (e != null && K)
277
- for (var i of K(e))
278
- t.indexOf(i) < 0 && ve.call(e, i) && (r[i] = e[i]);
279
- return r;
280
- }, Ge = (e, t) => function() {
281
- return t || (0, e[he(e)[0]])((t = { exports: {} }).exports, t), t.exports;
282
- }, Ze = (e, t) => {
283
- for (var r in t)
284
- Q(e, r, { get: t[r], enumerable: !0 });
285
- }, qe = (e, t, r, i) => {
286
- if (t && typeof t == "object" || typeof t == "function")
287
- for (let l of he(t))
288
- !oe.call(e, l) && l !== r && Q(e, l, { get: () => t[l], enumerable: !(i = ze(t, l)) || i.enumerable });
289
- return e;
290
- }, He = (e, t, r) => (r = e != null ? $e(Ue(e)) : {}, qe(
291
- // If the importer is in node compatibility mode or this is not an ESM
292
- // file that has been converted to a CommonJS file using a Babel-
293
- // compatible transform (i.e. "__esModule" has not been set), then set
294
- // "default" to the CommonJS "module.exports" for node compatibility.
295
- !e || !e.__esModule ? Q(r, "default", { value: e, enumerable: !0 }) : r,
296
- e
297
- )), We = Ge({
298
- "../../node_modules/.pnpm/prismjs@1.29.0_patch_hash=vrxx3pzkik6jpmgpayxfjunetu/node_modules/prismjs/prism.js"(e, t) {
299
- var r = function() {
300
- var i = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i, l = 0, b = {}, c = {
301
- /**
302
- * A namespace for utility methods.
303
- *
304
- * All function in this namespace that are not explicitly marked as _public_ are for __internal use only__ and may
305
- * change or disappear at any time.
306
- *
307
- * @namespace
308
- * @memberof Prism
309
- */
310
- util: {
311
- encode: function a(n) {
312
- return n instanceof d ? new d(n.type, a(n.content), n.alias) : Array.isArray(n) ? n.map(a) : n.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/\u00a0/g, " ");
313
- },
314
- /**
315
- * Returns the name of the type of the given value.
316
- *
317
- * @param {any} o
318
- * @returns {string}
319
- * @example
320
- * type(null) === 'Null'
321
- * type(undefined) === 'Undefined'
322
- * type(123) === 'Number'
323
- * type('foo') === 'String'
324
- * type(true) === 'Boolean'
325
- * type([1, 2]) === 'Array'
326
- * type({}) === 'Object'
327
- * type(String) === 'Function'
328
- * type(/abc+/) === 'RegExp'
329
- */
330
- type: function(a) {
331
- return Object.prototype.toString.call(a).slice(8, -1);
332
- },
333
- /**
334
- * Returns a unique number for the given object. Later calls will still return the same number.
335
- *
336
- * @param {Object} obj
337
- * @returns {number}
338
- */
339
- objId: function(a) {
340
- return a.__id || Object.defineProperty(a, "__id", { value: ++l }), a.__id;
341
- },
342
- /**
343
- * Creates a deep clone of the given object.
344
- *
345
- * The main intended use of this function is to clone language definitions.
346
- *
347
- * @param {T} o
348
- * @param {Record<number, any>} [visited]
349
- * @returns {T}
350
- * @template T
351
- */
352
- clone: function a(n, s) {
353
- s = s || {};
354
- var f, u;
355
- switch (c.util.type(n)) {
356
- case "Object":
357
- if (u = c.util.objId(n), s[u])
358
- return s[u];
359
- f = /** @type {Record<string, any>} */
360
- {}, s[u] = f;
361
- for (var m in n)
362
- n.hasOwnProperty(m) && (f[m] = a(n[m], s));
363
- return (
364
- /** @type {any} */
365
- f
366
- );
367
- case "Array":
368
- return u = c.util.objId(n), s[u] ? s[u] : (f = [], s[u] = f, n.forEach(function(w, E) {
369
- f[E] = a(w, s);
370
- }), /** @type {any} */
371
- f);
372
- default:
373
- return n;
374
- }
375
- },
376
- /**
377
- * Returns the Prism language of the given element set by a `language-xxxx` or `lang-xxxx` class.
378
- *
379
- * If no language is set for the element or the element is `null` or `undefined`, `none` will be returned.
380
- *
381
- * @param {Element} element
382
- * @returns {string}
383
- */
384
- getLanguage: function(a) {
385
- for (; a; ) {
386
- var n = i.exec(a.className);
387
- if (n)
388
- return n[1].toLowerCase();
389
- a = a.parentElement;
390
- }
391
- return "none";
392
- },
393
- /**
394
- * Sets the Prism `language-xxxx` class of the given element.
395
- *
396
- * @param {Element} element
397
- * @param {string} language
398
- * @returns {void}
399
- */
400
- setLanguage: function(a, n) {
401
- a.className = a.className.replace(RegExp(i, "gi"), ""), a.classList.add("language-" + n);
402
- },
403
- /**
404
- * Returns whether a given class is active for `element`.
405
- *
406
- * The class can be activated if `element` or one of its ancestors has the given class and it can be deactivated
407
- * if `element` or one of its ancestors has the negated version of the given class. The _negated version_ of the
408
- * given class is just the given class with a `no-` prefix.
409
- *
410
- * Whether the class is active is determined by the closest ancestor of `element` (where `element` itself is
411
- * closest ancestor) that has the given class or the negated version of it. If neither `element` nor any of its
412
- * ancestors have the given class or the negated version of it, then the default activation will be returned.
413
- *
414
- * In the paradoxical situation where the closest ancestor contains __both__ the given class and the negated
415
- * version of it, the class is considered active.
416
- *
417
- * @param {Element} element
418
- * @param {string} className
419
- * @param {boolean} [defaultActivation=false]
420
- * @returns {boolean}
421
- */
422
- isActive: function(a, n, s) {
423
- for (var f = "no-" + n; a; ) {
424
- var u = a.classList;
425
- if (u.contains(n))
426
- return !0;
427
- if (u.contains(f))
428
- return !1;
429
- a = a.parentElement;
430
- }
431
- return !!s;
432
- }
433
- },
434
- /**
435
- * This namespace contains all currently loaded languages and the some helper functions to create and modify languages.
436
- *
437
- * @namespace
438
- * @memberof Prism
439
- * @public
440
- */
441
- languages: {
442
- /**
443
- * The grammar for plain, unformatted text.
444
- */
445
- plain: b,
446
- plaintext: b,
447
- text: b,
448
- txt: b,
449
- /**
450
- * Creates a deep copy of the language with the given id and appends the given tokens.
451
- *
452
- * If a token in `redef` also appears in the copied language, then the existing token in the copied language
453
- * will be overwritten at its original position.
454
- *
455
- * ## Best practices
456
- *
457
- * Since the position of overwriting tokens (token in `redef` that overwrite tokens in the copied language)
458
- * doesn't matter, they can technically be in any order. However, this can be confusing to others that trying to
459
- * understand the language definition because, normally, the order of tokens matters in Prism grammars.
460
- *
461
- * Therefore, it is encouraged to order overwriting tokens according to the positions of the overwritten tokens.
462
- * Furthermore, all non-overwriting tokens should be placed after the overwriting ones.
463
- *
464
- * @param {string} id The id of the language to extend. This has to be a key in `Prism.languages`.
465
- * @param {Grammar} redef The new tokens to append.
466
- * @returns {Grammar} The new language created.
467
- * @public
468
- * @example
469
- * Prism.languages['css-with-colors'] = Prism.languages.extend('css', {
470
- * // Prism.languages.css already has a 'comment' token, so this token will overwrite CSS' 'comment' token
471
- * // at its original position
472
- * 'comment': { ... },
473
- * // CSS doesn't have a 'color' token, so this token will be appended
474
- * 'color': /\b(?:red|green|blue)\b/
475
- * });
476
- */
477
- extend: function(a, n) {
478
- var s = c.util.clone(c.languages[a]);
479
- for (var f in n)
480
- s[f] = n[f];
481
- return s;
482
- },
483
- /**
484
- * Inserts tokens _before_ another token in a language definition or any other grammar.
485
- *
486
- * ## Usage
487
- *
488
- * This helper method makes it easy to modify existing languages. For example, the CSS language definition
489
- * not only defines CSS highlighting for CSS documents, but also needs to define highlighting for CSS embedded
490
- * in HTML through `<style>` elements. To do this, it needs to modify `Prism.languages.markup` and add the
491
- * appropriate tokens. However, `Prism.languages.markup` is a regular JavaScript object literal, so if you do
492
- * this:
493
- *
494
- * ```js
495
- * Prism.languages.markup.style = {
496
- * // token
497
- * };
498
- * ```
499
- *
500
- * then the `style` token will be added (and processed) at the end. `insertBefore` allows you to insert tokens
501
- * before existing tokens. For the CSS example above, you would use it like this:
502
- *
503
- * ```js
504
- * Prism.languages.insertBefore('markup', 'cdata', {
505
- * 'style': {
506
- * // token
507
- * }
508
- * });
509
- * ```
510
- *
511
- * ## Special cases
512
- *
513
- * If the grammars of `inside` and `insert` have tokens with the same name, the tokens in `inside`'s grammar
514
- * will be ignored.
515
- *
516
- * This behavior can be used to insert tokens after `before`:
517
- *
518
- * ```js
519
- * Prism.languages.insertBefore('markup', 'comment', {
520
- * 'comment': Prism.languages.markup.comment,
521
- * // tokens after 'comment'
522
- * });
523
- * ```
524
- *
525
- * ## Limitations
526
- *
527
- * The main problem `insertBefore` has to solve is iteration order. Since ES2015, the iteration order for object
528
- * properties is guaranteed to be the insertion order (except for integer keys) but some browsers behave
529
- * differently when keys are deleted and re-inserted. So `insertBefore` can't be implemented by temporarily
530
- * deleting properties which is necessary to insert at arbitrary positions.
531
- *
532
- * To solve this problem, `insertBefore` doesn't actually insert the given tokens into the target object.
533
- * Instead, it will create a new object and replace all references to the target object with the new one. This
534
- * can be done without temporarily deleting properties, so the iteration order is well-defined.
535
- *
536
- * However, only references that can be reached from `Prism.languages` or `insert` will be replaced. I.e. if
537
- * you hold the target object in a variable, then the value of the variable will not change.
538
- *
539
- * ```js
540
- * var oldMarkup = Prism.languages.markup;
541
- * var newMarkup = Prism.languages.insertBefore('markup', 'comment', { ... });
542
- *
543
- * assert(oldMarkup !== Prism.languages.markup);
544
- * assert(newMarkup === Prism.languages.markup);
545
- * ```
546
- *
547
- * @param {string} inside The property of `root` (e.g. a language id in `Prism.languages`) that contains the
548
- * object to be modified.
549
- * @param {string} before The key to insert before.
550
- * @param {Grammar} insert An object containing the key-value pairs to be inserted.
551
- * @param {Object<string, any>} [root] The object containing `inside`, i.e. the object that contains the
552
- * object to be modified.
553
- *
554
- * Defaults to `Prism.languages`.
555
- * @returns {Grammar} The new grammar object.
556
- * @public
557
- */
558
- insertBefore: function(a, n, s, f) {
559
- f = f || /** @type {any} */
560
- c.languages;
561
- var u = f[a], m = {};
562
- for (var w in u)
563
- if (u.hasOwnProperty(w)) {
564
- if (w == n)
565
- for (var E in s)
566
- s.hasOwnProperty(E) && (m[E] = s[E]);
567
- s.hasOwnProperty(w) || (m[w] = u[w]);
568
- }
569
- var S = f[a];
570
- return f[a] = m, c.languages.DFS(c.languages, function(A, F) {
571
- F === S && A != a && (this[A] = m);
572
- }), m;
573
- },
574
- // Traverse a language definition with Depth First Search
575
- DFS: function a(n, s, f, u) {
576
- u = u || {};
577
- var m = c.util.objId;
578
- for (var w in n)
579
- if (n.hasOwnProperty(w)) {
580
- s.call(n, w, n[w], f || w);
581
- var E = n[w], S = c.util.type(E);
582
- S === "Object" && !u[m(E)] ? (u[m(E)] = !0, a(E, s, null, u)) : S === "Array" && !u[m(E)] && (u[m(E)] = !0, a(E, s, w, u));
583
- }
584
- }
585
- },
586
- plugins: {},
587
- /**
588
- * Low-level function, only use if you know what you’re doing. It accepts a string of text as input
589
- * and the language definitions to use, and returns a string with the HTML produced.
590
- *
591
- * The following hooks will be run:
592
- * 1. `before-tokenize`
593
- * 2. `after-tokenize`
594
- * 3. `wrap`: On each {@link Token}.
595
- *
596
- * @param {string} text A string with the code to be highlighted.
597
- * @param {Grammar} grammar An object containing the tokens to use.
598
- *
599
- * Usually a language definition like `Prism.languages.markup`.
600
- * @param {string} language The name of the language definition passed to `grammar`.
601
- * @returns {string} The highlighted HTML.
602
- * @memberof Prism
603
- * @public
604
- * @example
605
- * Prism.highlight('var foo = true;', Prism.languages.javascript, 'javascript');
606
- */
607
- highlight: function(a, n, s) {
608
- var f = {
609
- code: a,
610
- grammar: n,
611
- language: s
612
- };
613
- if (c.hooks.run("before-tokenize", f), !f.grammar)
614
- throw new Error('The language "' + f.language + '" has no grammar.');
615
- return f.tokens = c.tokenize(f.code, f.grammar), c.hooks.run("after-tokenize", f), d.stringify(c.util.encode(f.tokens), f.language);
616
- },
617
- /**
618
- * This is the heart of Prism, and the most low-level function you can use. It accepts a string of text as input
619
- * and the language definitions to use, and returns an array with the tokenized code.
620
- *
621
- * When the language definition includes nested tokens, the function is called recursively on each of these tokens.
622
- *
623
- * This method could be useful in other contexts as well, as a very crude parser.
624
- *
625
- * @param {string} text A string with the code to be highlighted.
626
- * @param {Grammar} grammar An object containing the tokens to use.
627
- *
628
- * Usually a language definition like `Prism.languages.markup`.
629
- * @returns {TokenStream} An array of strings and tokens, a token stream.
630
- * @memberof Prism
631
- * @public
632
- * @example
633
- * let code = `var foo = 0;`;
634
- * let tokens = Prism.tokenize(code, Prism.languages.javascript);
635
- * tokens.forEach(token => {
636
- * if (token instanceof Prism.Token && token.type === 'number') {
637
- * console.log(`Found numeric literal: ${token.content}`);
638
- * }
639
- * });
640
- */
641
- tokenize: function(a, n) {
642
- var s = n.rest;
643
- if (s) {
644
- for (var f in s)
645
- n[f] = s[f];
646
- delete n.rest;
647
- }
648
- var u = new h();
649
- return g(u, u.head, a), y(a, u, n, u.head, 0), x(u);
650
- },
651
- /**
652
- * @namespace
653
- * @memberof Prism
654
- * @public
655
- */
656
- hooks: {
657
- all: {},
658
- /**
659
- * Adds the given callback to the list of callbacks for the given hook.
660
- *
661
- * The callback will be invoked when the hook it is registered for is run.
662
- * Hooks are usually directly run by a highlight function but you can also run hooks yourself.
663
- *
664
- * One callback function can be registered to multiple hooks and the same hook multiple times.
665
- *
666
- * @param {string} name The name of the hook.
667
- * @param {HookCallback} callback The callback function which is given environment variables.
668
- * @public
669
- */
670
- add: function(a, n) {
671
- var s = c.hooks.all;
672
- s[a] = s[a] || [], s[a].push(n);
673
- },
674
- /**
675
- * Runs a hook invoking all registered callbacks with the given environment variables.
676
- *
677
- * Callbacks will be invoked synchronously and in the order in which they were registered.
678
- *
679
- * @param {string} name The name of the hook.
680
- * @param {Object<string, any>} env The environment variables of the hook passed to all callbacks registered.
681
- * @public
682
- */
683
- run: function(a, n) {
684
- var s = c.hooks.all[a];
685
- if (!(!s || !s.length))
686
- for (var f = 0, u; u = s[f++]; )
687
- u(n);
688
- }
689
- },
690
- Token: d
691
- };
692
- function d(a, n, s, f) {
693
- this.type = a, this.content = n, this.alias = s, this.length = (f || "").length | 0;
694
- }
695
- d.stringify = function a(n, s) {
696
- if (typeof n == "string")
697
- return n;
698
- if (Array.isArray(n)) {
699
- var f = "";
700
- return n.forEach(function(S) {
701
- f += a(S, s);
702
- }), f;
703
- }
704
- var u = {
705
- type: n.type,
706
- content: a(n.content, s),
707
- tag: "span",
708
- classes: ["token", n.type],
709
- attributes: {},
710
- language: s
711
- }, m = n.alias;
712
- m && (Array.isArray(m) ? Array.prototype.push.apply(u.classes, m) : u.classes.push(m)), c.hooks.run("wrap", u);
713
- var w = "";
714
- for (var E in u.attributes)
715
- w += " " + E + '="' + (u.attributes[E] || "").replace(/"/g, "&quot;") + '"';
716
- return "<" + u.tag + ' class="' + u.classes.join(" ") + '"' + w + ">" + u.content + "</" + u.tag + ">";
717
- };
718
- function p(a, n, s, f) {
719
- a.lastIndex = n;
720
- var u = a.exec(s);
721
- if (u && f && u[1]) {
722
- var m = u[1].length;
723
- u.index += m, u[0] = u[0].slice(m);
724
- }
725
- return u;
726
- }
727
- function y(a, n, s, f, u, m) {
728
- for (var w in s)
729
- if (!(!s.hasOwnProperty(w) || !s[w])) {
730
- var E = s[w];
731
- E = Array.isArray(E) ? E : [E];
732
- for (var S = 0; S < E.length; ++S) {
733
- if (m && m.cause == w + "," + S)
734
- return;
735
- var A = E[S], F = A.inside, T = !!A.lookbehind, D = !!A.greedy, N = A.alias;
736
- if (D && !A.pattern.global) {
737
- var L = A.pattern.toString().match(/[imsuy]*$/)[0];
738
- A.pattern = RegExp(A.pattern.source, L + "g");
739
- }
740
- for (var se = A.pattern || A, _ = f.next, C = u; _ !== n.tail && !(m && C >= m.reach); C += _.value.length, _ = _.next) {
741
- var $ = _.value;
742
- if (n.length > a.length)
743
- return;
744
- if (!($ instanceof d)) {
745
- var H = 1, I;
746
- if (D) {
747
- if (I = p(se, C, a, T), !I || I.index >= a.length)
748
- break;
749
- var W = I.index, Ee = I.index + I[0].length, B = C;
750
- for (B += _.value.length; W >= B; )
751
- _ = _.next, B += _.value.length;
752
- if (B -= _.value.length, C = B, _.value instanceof d)
753
- continue;
754
- for (var U = _; U !== n.tail && (B < Ee || typeof U.value == "string"); U = U.next)
755
- H++, B += U.value.length;
756
- H--, $ = a.slice(C, B), I.index -= C;
757
- } else if (I = p(se, 0, $, T), !I)
758
- continue;
759
- var W = I.index, Y = I[0], ee = $.slice(0, W), ie = $.slice(W + Y.length), te = C + $.length;
760
- m && te > m.reach && (m.reach = te);
761
- var V = _.prev;
762
- ee && (V = g(n, V, ee), C += ee.length), v(n, V, H);
763
- var Ae = new d(w, F ? c.tokenize(Y, F) : Y, N, Y);
764
- if (_ = g(n, V, Ae), ie && g(n, _, ie), H > 1) {
765
- var re = {
766
- cause: w + "," + S,
767
- reach: te
768
- };
769
- y(a, n, s, _.prev, C, re), m && re.reach > m.reach && (m.reach = re.reach);
770
- }
771
- }
772
- }
773
- }
774
- }
775
- }
776
- function h() {
777
- var a = { value: null, prev: null, next: null }, n = { value: null, prev: a, next: null };
778
- a.next = n, this.head = a, this.tail = n, this.length = 0;
779
- }
780
- function g(a, n, s) {
781
- var f = n.next, u = { value: s, prev: n, next: f };
782
- return n.next = u, f.prev = u, a.length++, u;
783
- }
784
- function v(a, n, s) {
785
- for (var f = n.next, u = 0; u < s && f !== a.tail; u++)
786
- f = f.next;
787
- n.next = f, f.prev = n, a.length -= u;
788
- }
789
- function x(a) {
790
- for (var n = [], s = a.head.next; s !== a.tail; )
791
- n.push(s.value), s = s.next;
792
- return n;
793
- }
794
- return c;
795
- }();
796
- t.exports = r, r.default = r;
797
- }
798
- }), o = He(We());
799
- o.languages.markup = { comment: { pattern: /<!--(?:(?!<!--)[\s\S])*?-->/, greedy: !0 }, prolog: { pattern: /<\?[\s\S]+?\?>/, greedy: !0 }, doctype: { pattern: /<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i, greedy: !0, inside: { "internal-subset": { pattern: /(^[^\[]*\[)[\s\S]+(?=\]>$)/, lookbehind: !0, greedy: !0, inside: null }, string: { pattern: /"[^"]*"|'[^']*'/, greedy: !0 }, punctuation: /^<!|>$|[[\]]/, "doctype-tag": /^DOCTYPE/i, name: /[^\s<>'"]+/ } }, cdata: { pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i, greedy: !0 }, tag: { pattern: /<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/, greedy: !0, inside: { tag: { pattern: /^<\/?[^\s>\/]+/, inside: { punctuation: /^<\/?/, namespace: /^[^\s>\/:]+:/ } }, "special-attr": [], "attr-value": { pattern: /=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/, inside: { punctuation: [{ pattern: /^=/, alias: "attr-equals" }, { pattern: /^(\s*)["']|["']$/, lookbehind: !0 }] } }, punctuation: /\/?>/, "attr-name": { pattern: /[^\s>\/]+/, inside: { namespace: /^[^\s>\/:]+:/ } } } }, entity: [{ pattern: /&[\da-z]{1,8};/i, alias: "named-entity" }, /&#x?[\da-f]{1,8};/i] }, o.languages.markup.tag.inside["attr-value"].inside.entity = o.languages.markup.entity, o.languages.markup.doctype.inside["internal-subset"].inside = o.languages.markup, o.hooks.add("wrap", function(e) {
800
- e.type === "entity" && (e.attributes.title = e.content.replace(/&amp;/, "&"));
801
- }), Object.defineProperty(o.languages.markup.tag, "addInlined", { value: function(e, i) {
802
- var r = {}, r = (r["language-" + i] = { pattern: /(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i, lookbehind: !0, inside: o.languages[i] }, r.cdata = /^<!\[CDATA\[|\]\]>$/i, { "included-cdata": { pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i, inside: r } }), i = (r["language-" + i] = { pattern: /[\s\S]+/, inside: o.languages[i] }, {});
803
- i[e] = { pattern: RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g, function() {
804
- return e;
805
- }), "i"), lookbehind: !0, greedy: !0, inside: r }, o.languages.insertBefore("markup", "cdata", i);
806
- } }), Object.defineProperty(o.languages.markup.tag, "addAttribute", { value: function(e, t) {
807
- o.languages.markup.tag.inside["special-attr"].push({ pattern: RegExp(/(^|["'\s])/.source + "(?:" + e + ")" + /\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source, "i"), lookbehind: !0, inside: { "attr-name": /^[^\s=]+/, "attr-value": { pattern: /=[\s\S]+/, inside: { value: { pattern: /(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/, lookbehind: !0, alias: [t, "language-" + t], inside: o.languages[t] }, punctuation: [{ pattern: /^=/, alias: "attr-equals" }, /"|'/] } } } });
808
- } }), o.languages.html = o.languages.markup, o.languages.mathml = o.languages.markup, o.languages.svg = o.languages.markup, o.languages.xml = o.languages.extend("markup", {}), o.languages.ssml = o.languages.xml, o.languages.atom = o.languages.xml, o.languages.rss = o.languages.xml, function(e) {
809
- var t = { pattern: /\\[\\(){}[\]^$+*?|.]/, alias: "escape" }, r = /\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/, i = "(?:[^\\\\-]|" + r.source + ")", i = RegExp(i + "-" + i), l = { pattern: /(<|')[^<>']+(?=[>']$)/, lookbehind: !0, alias: "variable" };
810
- e.languages.regex = { "char-class": { pattern: /((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/, lookbehind: !0, inside: { "char-class-negation": { pattern: /(^\[)\^/, lookbehind: !0, alias: "operator" }, "char-class-punctuation": { pattern: /^\[|\]$/, alias: "punctuation" }, range: { pattern: i, inside: { escape: r, "range-punctuation": { pattern: /-/, alias: "operator" } } }, "special-escape": t, "char-set": { pattern: /\\[wsd]|\\p\{[^{}]+\}/i, alias: "class-name" }, escape: r } }, "special-escape": t, "char-set": { pattern: /\.|\\[wsd]|\\p\{[^{}]+\}/i, alias: "class-name" }, backreference: [{ pattern: /\\(?![123][0-7]{2})[1-9]/, alias: "keyword" }, { pattern: /\\k<[^<>']+>/, alias: "keyword", inside: { "group-name": l } }], anchor: { pattern: /[$^]|\\[ABbGZz]/, alias: "function" }, escape: r, group: [{ pattern: /\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/, alias: "punctuation", inside: { "group-name": l } }, { pattern: /\)/, alias: "punctuation" }], quantifier: { pattern: /(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/, alias: "number" }, alternation: { pattern: /\|/, alias: "keyword" } };
811
- }(o), o.languages.clike = { comment: [{ pattern: /(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/, lookbehind: !0, greedy: !0 }, { pattern: /(^|[^\\:])\/\/.*/, lookbehind: !0, greedy: !0 }], string: { pattern: /(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/, greedy: !0 }, "class-name": { pattern: /(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i, lookbehind: !0, inside: { punctuation: /[.\\]/ } }, keyword: /\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/, boolean: /\b(?:false|true)\b/, function: /\b\w+(?=\()/, number: /\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i, operator: /[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/, punctuation: /[{}[\];(),.:]/ }, o.languages.javascript = o.languages.extend("clike", { "class-name": [o.languages.clike["class-name"], { pattern: /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/, lookbehind: !0 }], keyword: [{ pattern: /((?:^|\})\s*)catch\b/, lookbehind: !0 }, { pattern: /(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/, lookbehind: !0 }], function: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/, number: { pattern: RegExp(/(^|[^\w$])/.source + "(?:" + /NaN|Infinity/.source + "|" + /0[bB][01]+(?:_[01]+)*n?/.source + "|" + /0[oO][0-7]+(?:_[0-7]+)*n?/.source + "|" + /0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source + "|" + /\d+(?:_\d+)*n/.source + "|" + /(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source + ")" + /(?![\w$])/.source), lookbehind: !0 }, operator: /--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/ }), o.languages.javascript["class-name"][0].pattern = /(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/, o.languages.insertBefore("javascript", "keyword", { regex: { pattern: RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source + /\//.source + "(?:" + /(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source + "|" + /(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source + ")" + /(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source), lookbehind: !0, greedy: !0, inside: { "regex-source": { pattern: /^(\/)[\s\S]+(?=\/[a-z]*$)/, lookbehind: !0, alias: "language-regex", inside: o.languages.regex }, "regex-delimiter": /^\/|\/$/, "regex-flags": /^[a-z]+$/ } }, "function-variable": { pattern: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/, alias: "function" }, parameter: [{ pattern: /(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/, lookbehind: !0, inside: o.languages.javascript }, { pattern: /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i, lookbehind: !0, inside: o.languages.javascript }, { pattern: /(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/, lookbehind: !0, inside: o.languages.javascript }, { pattern: /((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/, lookbehind: !0, inside: o.languages.javascript }], constant: /\b[A-Z](?:[A-Z_]|\dx?)*\b/ }), o.languages.insertBefore("javascript", "string", { hashbang: { pattern: /^#!.*/, greedy: !0, alias: "comment" }, "template-string": { pattern: /`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/, greedy: !0, inside: { "template-punctuation": { pattern: /^`|`$/, alias: "string" }, interpolation: { pattern: /((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/, lookbehind: !0, inside: { "interpolation-punctuation": { pattern: /^\$\{|\}$/, alias: "punctuation" }, rest: o.languages.javascript } }, string: /[\s\S]+/ } }, "string-property": { pattern: /((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m, lookbehind: !0, greedy: !0, alias: "property" } }), o.languages.insertBefore("javascript", "operator", { "literal-property": { pattern: /((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m, lookbehind: !0, alias: "property" } }), o.languages.markup && (o.languages.markup.tag.addInlined("script", "javascript"), o.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source, "javascript")), o.languages.js = o.languages.javascript, o.languages.actionscript = o.languages.extend("javascript", { keyword: /\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/, operator: /\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/ }), o.languages.actionscript["class-name"].alias = "function", delete o.languages.actionscript.parameter, delete o.languages.actionscript["literal-property"], o.languages.markup && o.languages.insertBefore("actionscript", "string", { xml: { pattern: /(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/, lookbehind: !0, inside: o.languages.markup } }), function(e) {
812
- var t = /#(?!\{).+/, r = { pattern: /#\{[^}]+\}/, alias: "variable" };
813
- e.languages.coffeescript = e.languages.extend("javascript", { comment: t, string: [{ pattern: /'(?:\\[\s\S]|[^\\'])*'/, greedy: !0 }, { pattern: /"(?:\\[\s\S]|[^\\"])*"/, greedy: !0, inside: { interpolation: r } }], keyword: /\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/, "class-member": { pattern: /@(?!\d)\w+/, alias: "variable" } }), e.languages.insertBefore("coffeescript", "comment", { "multiline-comment": { pattern: /###[\s\S]+?###/, alias: "comment" }, "block-regex": { pattern: /\/{3}[\s\S]*?\/{3}/, alias: "regex", inside: { comment: t, interpolation: r } } }), e.languages.insertBefore("coffeescript", "string", { "inline-javascript": { pattern: /`(?:\\[\s\S]|[^\\`])*`/, inside: { delimiter: { pattern: /^`|`$/, alias: "punctuation" }, script: { pattern: /[\s\S]+/, alias: "language-javascript", inside: e.languages.javascript } } }, "multiline-string": [{ pattern: /'''[\s\S]*?'''/, greedy: !0, alias: "string" }, { pattern: /"""[\s\S]*?"""/, greedy: !0, alias: "string", inside: { interpolation: r } }] }), e.languages.insertBefore("coffeescript", "keyword", { property: /(?!\d)\w+(?=\s*:(?!:))/ }), delete e.languages.coffeescript["template-string"], e.languages.coffee = e.languages.coffeescript;
814
- }(o), function(e) {
815
- var t = e.languages.javadoclike = { parameter: { pattern: /(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m, lookbehind: !0 }, keyword: { pattern: /(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m, lookbehind: !0 }, punctuation: /[{}]/ };
816
- Object.defineProperty(t, "addSupport", { value: function(r, i) {
817
- (r = typeof r == "string" ? [r] : r).forEach(function(l) {
818
- var b = function(g) {
819
- g.inside || (g.inside = {}), g.inside.rest = i;
820
- }, c = "doc-comment";
821
- if (d = e.languages[l]) {
822
- var d, p = d[c];
823
- if ((p = p || (d = e.languages.insertBefore(l, "comment", { "doc-comment": { pattern: /(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/, lookbehind: !0, alias: "comment" } }))[c]) instanceof RegExp && (p = d[c] = { pattern: p }), Array.isArray(p))
824
- for (var y = 0, h = p.length; y < h; y++)
825
- p[y] instanceof RegExp && (p[y] = { pattern: p[y] }), b(p[y]);
826
- else
827
- b(p);
828
- }
829
- });
830
- } }), t.addSupport(["java", "javascript", "php"], t);
831
- }(o), function(e) {
832
- var t = /(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/, t = (e.languages.css = { comment: /\/\*[\s\S]*?\*\//, atrule: { pattern: RegExp("@[\\w-](?:" + /[^;{\s"']|\s+(?!\s)/.source + "|" + t.source + ")*?" + /(?:;|(?=\s*\{))/.source), inside: { rule: /^@[\w-]+/, "selector-function-argument": { pattern: /(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/, lookbehind: !0, alias: "selector" }, keyword: { pattern: /(^|[^\w-])(?:and|not|only|or)(?![\w-])/, lookbehind: !0 } } }, url: { pattern: RegExp("\\burl\\((?:" + t.source + "|" + /(?:[^\\\r\n()"']|\\[\s\S])*/.source + ")\\)", "i"), greedy: !0, inside: { function: /^url/i, punctuation: /^\(|\)$/, string: { pattern: RegExp("^" + t.source + "$"), alias: "url" } } }, selector: { pattern: RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|` + t.source + ")*(?=\\s*\\{)"), lookbehind: !0 }, string: { pattern: t, greedy: !0 }, property: { pattern: /(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i, lookbehind: !0 }, important: /!important\b/i, function: { pattern: /(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i, lookbehind: !0 }, punctuation: /[(){};:,]/ }, e.languages.css.atrule.inside.rest = e.languages.css, e.languages.markup);
833
- t && (t.tag.addInlined("style", "css"), t.tag.addAttribute("style", "css"));
834
- }(o), function(e) {
835
- var t = /("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/, t = (e.languages.css.selector = { pattern: e.languages.css.selector.pattern, lookbehind: !0, inside: t = { "pseudo-element": /:(?:after|before|first-letter|first-line|selection)|::[-\w]+/, "pseudo-class": /:[-\w]+/, class: /\.[-\w]+/, id: /#[-\w]+/, attribute: { pattern: RegExp(`\\[(?:[^[\\]"']|` + t.source + ")*\\]"), greedy: !0, inside: { punctuation: /^\[|\]$/, "case-sensitivity": { pattern: /(\s)[si]$/i, lookbehind: !0, alias: "keyword" }, namespace: { pattern: /^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/, lookbehind: !0, inside: { punctuation: /\|$/ } }, "attr-name": { pattern: /^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/, lookbehind: !0 }, "attr-value": [t, { pattern: /(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/, lookbehind: !0 }], operator: /[|~*^$]?=/ } }, "n-th": [{ pattern: /(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/, lookbehind: !0, inside: { number: /[\dn]+/, operator: /[+-]/ } }, { pattern: /(\(\s*)(?:even|odd)(?=\s*\))/i, lookbehind: !0 }], combinator: />|\+|~|\|\|/, punctuation: /[(),]/ } }, e.languages.css.atrule.inside["selector-function-argument"].inside = t, e.languages.insertBefore("css", "property", { variable: { pattern: /(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i, lookbehind: !0 } }), { pattern: /(\b\d+)(?:%|[a-z]+(?![\w-]))/, lookbehind: !0 }), r = { pattern: /(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/, lookbehind: !0 };
836
- e.languages.insertBefore("css", "function", { operator: { pattern: /(\s)[+\-*\/](?=\s)/, lookbehind: !0 }, hexcode: { pattern: /\B#[\da-f]{3,8}\b/i, alias: "color" }, color: [{ pattern: /(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|RebeccaPurple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i, lookbehind: !0 }, { 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, inside: { unit: t, number: r, function: /[\w-]+(?=\()/, punctuation: /[(),]/ } }], entity: /\\[\da-f]{1,8}/i, unit: t, number: r });
837
- }(o), function(e) {
838
- var t = /[*&][^\s[\]{},]+/, r = /!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/, i = "(?:" + r.source + "(?:[ ]+" + t.source + ")?|" + t.source + "(?:[ ]+" + r.source + ")?)", l = /(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g, function() {
839
- return /[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source;
840
- }), b = /"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;
841
- function c(d, p) {
842
- p = (p || "").replace(/m/g, "") + "m";
843
- var y = /([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g, function() {
844
- return i;
845
- }).replace(/<<value>>/g, function() {
846
- return d;
847
- });
848
- return RegExp(y, p);
849
- }
850
- e.languages.yaml = { scalar: { pattern: RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g, function() {
851
- return i;
852
- })), lookbehind: !0, alias: "string" }, comment: /#.*/, key: { pattern: RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g, function() {
853
- return i;
854
- }).replace(/<<key>>/g, function() {
855
- return "(?:" + l + "|" + b + ")";
856
- })), lookbehind: !0, greedy: !0, alias: "atrule" }, directive: { pattern: /(^[ \t]*)%.+/m, lookbehind: !0, alias: "important" }, datetime: { pattern: c(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source), lookbehind: !0, alias: "number" }, boolean: { pattern: c(/false|true/.source, "i"), lookbehind: !0, alias: "important" }, null: { pattern: c(/null|~/.source, "i"), lookbehind: !0, alias: "important" }, string: { pattern: c(b), lookbehind: !0, greedy: !0 }, number: { pattern: c(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source, "i"), lookbehind: !0 }, tag: r, important: t, punctuation: /---|[:[\]{}\-,|>?]|\.\.\./ }, e.languages.yml = e.languages.yaml;
857
- }(o), function(e) {
858
- var t = /(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;
859
- function r(y) {
860
- return y = y.replace(/<inner>/g, function() {
861
- return t;
862
- }), RegExp(/((?:^|[^\\])(?:\\{2})*)/.source + "(?:" + y + ")");
863
- }
864
- var i = /(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source, l = /\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g, function() {
865
- return i;
866
- }), b = /\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source, c = (e.languages.markdown = e.languages.extend("markup", {}), e.languages.insertBefore("markdown", "prolog", { "front-matter-block": { pattern: /(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/, lookbehind: !0, greedy: !0, inside: { punctuation: /^---|---$/, "front-matter": { pattern: /\S+(?:\s+\S+)*/, alias: ["yaml", "language-yaml"], inside: e.languages.yaml } } }, blockquote: { pattern: /^>(?:[\t ]*>)*/m, alias: "punctuation" }, table: { pattern: RegExp("^" + l + b + "(?:" + l + ")*", "m"), inside: { "table-data-rows": { pattern: RegExp("^(" + l + b + ")(?:" + l + ")*$"), lookbehind: !0, inside: { "table-data": { pattern: RegExp(i), inside: e.languages.markdown }, punctuation: /\|/ } }, "table-line": { pattern: RegExp("^(" + l + ")" + b + "$"), lookbehind: !0, inside: { punctuation: /\||:?-{3,}:?/ } }, "table-header-row": { pattern: RegExp("^" + l + "$"), inside: { "table-header": { pattern: RegExp(i), alias: "important", inside: e.languages.markdown }, punctuation: /\|/ } } } }, code: [{ pattern: /((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/, lookbehind: !0, alias: "keyword" }, { pattern: /^```[\s\S]*?^```$/m, greedy: !0, inside: { "code-block": { pattern: /^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m, lookbehind: !0 }, "code-language": { pattern: /^(```).+/, lookbehind: !0 }, punctuation: /```/ } }], title: [{ pattern: /\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m, alias: "important", inside: { punctuation: /==+$|--+$/ } }, { pattern: /(^\s*)#.+/m, lookbehind: !0, alias: "important", inside: { punctuation: /^#+|#+$/ } }], hr: { pattern: /(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m, lookbehind: !0, alias: "punctuation" }, list: { pattern: /(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m, lookbehind: !0, alias: "punctuation" }, "url-reference": { pattern: /!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/, inside: { variable: { pattern: /^(!?\[)[^\]]+/, lookbehind: !0 }, string: /(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/, punctuation: /^[\[\]!:]|[<>]/ }, alias: "url" }, bold: { pattern: r(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source), lookbehind: !0, greedy: !0, inside: { content: { pattern: /(^..)[\s\S]+(?=..$)/, lookbehind: !0, inside: {} }, punctuation: /\*\*|__/ } }, italic: { pattern: r(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source), lookbehind: !0, greedy: !0, inside: { content: { pattern: /(^.)[\s\S]+(?=.$)/, lookbehind: !0, inside: {} }, punctuation: /[*_]/ } }, strike: { pattern: r(/(~~?)(?:(?!~)<inner>)+\2/.source), lookbehind: !0, greedy: !0, inside: { content: { pattern: /(^~~?)[\s\S]+(?=\1$)/, lookbehind: !0, inside: {} }, punctuation: /~~?/ } }, "code-snippet": { pattern: /(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/, lookbehind: !0, greedy: !0, alias: ["code", "keyword"] }, url: { pattern: r(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source), lookbehind: !0, greedy: !0, inside: { operator: /^!/, content: { pattern: /(^\[)[^\]]+(?=\])/, lookbehind: !0, inside: {} }, variable: { pattern: /(^\][ \t]?\[)[^\]]+(?=\]$)/, lookbehind: !0 }, url: { pattern: /(^\]\()[^\s)]+/, lookbehind: !0 }, string: { pattern: /(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/, lookbehind: !0 } } } }), ["url", "bold", "italic", "strike"].forEach(function(y) {
867
- ["url", "bold", "italic", "strike", "code-snippet"].forEach(function(h) {
868
- y !== h && (e.languages.markdown[y].inside.content.inside[h] = e.languages.markdown[h]);
869
- });
870
- }), e.hooks.add("after-tokenize", function(y) {
871
- y.language !== "markdown" && y.language !== "md" || function h(g) {
872
- if (g && typeof g != "string")
873
- for (var v = 0, x = g.length; v < x; v++) {
874
- var a, n = g[v];
875
- n.type !== "code" ? h(n.content) : (a = n.content[1], n = n.content[3], a && n && a.type === "code-language" && n.type === "code-block" && typeof a.content == "string" && (a = a.content.replace(/\b#/g, "sharp").replace(/\b\+\+/g, "pp"), a = "language-" + (a = (/[a-z][\w-]*/i.exec(a) || [""])[0].toLowerCase()), n.alias ? typeof n.alias == "string" ? n.alias = [n.alias, a] : n.alias.push(a) : n.alias = [a]));
876
- }
877
- }(y.tokens);
878
- }), e.hooks.add("wrap", function(y) {
879
- if (y.type === "code-block") {
880
- for (var h = "", g = 0, v = y.classes.length; g < v; g++) {
881
- var x = y.classes[g], x = /language-(.+)/.exec(x);
882
- if (x) {
883
- h = x[1];
884
- break;
885
- }
886
- }
887
- var a, n = e.languages[h];
888
- n ? y.content = e.highlight(function(s) {
889
- return s = s.replace(c, ""), s = s.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi, function(f, u) {
890
- var m;
891
- return (u = u.toLowerCase())[0] === "#" ? (m = u[1] === "x" ? parseInt(u.slice(2), 16) : Number(u.slice(1)), p(m)) : d[u] || f;
892
- });
893
- }(y.content), n, h) : h && h !== "none" && e.plugins.autoloader && (a = "md-" + (/* @__PURE__ */ new Date()).valueOf() + "-" + Math.floor(1e16 * Math.random()), y.attributes.id = a, e.plugins.autoloader.loadLanguages(h, function() {
894
- var s = document.getElementById(a);
895
- s && (s.innerHTML = e.highlight(s.textContent, e.languages[h], h));
896
- }));
897
- }
898
- }), RegExp(e.languages.markup.tag.pattern.source, "gi")), d = { amp: "&", lt: "<", gt: ">", quot: '"' }, p = String.fromCodePoint || String.fromCharCode;
899
- e.languages.md = e.languages.markdown;
900
- }(o), o.languages.graphql = { comment: /#.*/, description: { pattern: /(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i, greedy: !0, alias: "string", inside: { "language-markdown": { pattern: /(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/, lookbehind: !0, inside: o.languages.markdown } } }, string: { pattern: /"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/, greedy: !0 }, number: /(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i, boolean: /\b(?:false|true)\b/, variable: /\$[a-z_]\w*/i, directive: { pattern: /@[a-z_]\w*/i, alias: "function" }, "attr-name": { pattern: /\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i, greedy: !0 }, "atom-input": { pattern: /\b[A-Z]\w*Input\b/, alias: "class-name" }, scalar: /\b(?:Boolean|Float|ID|Int|String)\b/, constant: /\b[A-Z][A-Z_\d]*\b/, "class-name": { pattern: /(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/, lookbehind: !0 }, fragment: { pattern: /(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/, lookbehind: !0, alias: "function" }, "definition-mutation": { pattern: /(\bmutation\s+)[a-zA-Z_]\w*/, lookbehind: !0, alias: "function" }, "definition-query": { pattern: /(\bquery\s+)[a-zA-Z_]\w*/, lookbehind: !0, alias: "function" }, keyword: /\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/, operator: /[!=|&]|\.{3}/, "property-query": /\w+(?=\s*\()/, object: /\w+(?=\s*\{)/, punctuation: /[!(){}\[\]:=,]/, property: /\w+/ }, o.hooks.add("after-tokenize", function(e) {
901
- if (e.language === "graphql")
902
- for (var t = e.tokens.filter(function(a) {
903
- return typeof a != "string" && a.type !== "comment" && a.type !== "scalar";
904
- }), r = 0; r < t.length; ) {
905
- var i = t[r++];
906
- if (i.type === "keyword" && i.content === "mutation") {
907
- var l = [];
908
- if (g(["definition-mutation", "punctuation"]) && h(1).content === "(") {
909
- r += 2;
910
- var b = v(/^\($/, /^\)$/);
911
- if (b === -1)
912
- continue;
913
- for (; r < b; r++) {
914
- var c = h(0);
915
- c.type === "variable" && (x(c, "variable-input"), l.push(c.content));
916
- }
917
- r = b + 1;
918
- }
919
- if (g(["punctuation", "property-query"]) && h(0).content === "{" && (r++, x(h(0), "property-mutation"), 0 < l.length)) {
920
- var d = v(/^\{$/, /^\}$/);
921
- if (d !== -1)
922
- for (var p = r; p < d; p++) {
923
- var y = t[p];
924
- y.type === "variable" && 0 <= l.indexOf(y.content) && x(y, "variable-input");
925
- }
926
- }
927
- }
928
- }
929
- function h(a) {
930
- return t[r + a];
931
- }
932
- function g(a, n) {
933
- n = n || 0;
934
- for (var s = 0; s < a.length; s++) {
935
- var f = h(s + n);
936
- if (!f || f.type !== a[s])
937
- return;
938
- }
939
- return 1;
940
- }
941
- function v(a, n) {
942
- for (var s = 1, f = r; f < t.length; f++) {
943
- var u = t[f], m = u.content;
944
- if (u.type === "punctuation" && typeof m == "string") {
945
- if (a.test(m))
946
- s++;
947
- else if (n.test(m) && --s === 0)
948
- return f;
949
- }
950
- }
951
- return -1;
952
- }
953
- function x(a, n) {
954
- var s = a.alias;
955
- s ? Array.isArray(s) || (a.alias = s = [s]) : a.alias = s = [], s.push(n);
956
- }
957
- }), o.languages.sql = { comment: { pattern: /(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/, lookbehind: !0 }, variable: [{ pattern: /@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/, greedy: !0 }, /@[\w.$]+/], string: { pattern: /(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/, greedy: !0, lookbehind: !0 }, identifier: { pattern: /(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/, greedy: !0, lookbehind: !0, inside: { punctuation: /^`|`$/ } }, function: /\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i, keyword: /\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i, boolean: /\b(?:FALSE|NULL|TRUE)\b/i, number: /\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i, operator: /[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i, punctuation: /[;[\]()`,.]/ }, function(e) {
958
- var t = e.languages.javascript["template-string"], r = t.pattern.source, i = t.inside.interpolation, l = i.inside["interpolation-punctuation"], b = i.pattern.source;
959
- function c(g, v) {
960
- if (e.languages[g])
961
- return { pattern: RegExp("((?:" + v + ")\\s*)" + r), lookbehind: !0, greedy: !0, inside: { "template-punctuation": { pattern: /^`|`$/, alias: "string" }, "embedded-code": { pattern: /[\s\S]+/, alias: g } } };
962
- }
963
- function d(g, v, x) {
964
- return g = { code: g, grammar: v, language: x }, e.hooks.run("before-tokenize", g), g.tokens = e.tokenize(g.code, g.grammar), e.hooks.run("after-tokenize", g), g.tokens;
965
- }
966
- function p(g, v, x) {
967
- var s = e.tokenize(g, { interpolation: { pattern: RegExp(b), lookbehind: !0 } }), a = 0, n = {}, s = d(s.map(function(u) {
968
- if (typeof u == "string")
969
- return u;
970
- for (var m, w, u = u.content; g.indexOf((w = a++, m = "___" + x.toUpperCase() + "_" + w + "___")) !== -1; )
971
- ;
972
- return n[m] = u, m;
973
- }).join(""), v, x), f = Object.keys(n);
974
- return a = 0, function u(m) {
975
- for (var w = 0; w < m.length; w++) {
976
- if (a >= f.length)
977
- return;
978
- var E, S, A, F, T, D, N, L = m[w];
979
- typeof L == "string" || typeof L.content == "string" ? (E = f[a], (N = (D = typeof L == "string" ? L : L.content).indexOf(E)) !== -1 && (++a, S = D.substring(0, N), T = n[E], A = void 0, (F = {})["interpolation-punctuation"] = l, (F = e.tokenize(T, F)).length === 3 && ((A = [1, 1]).push.apply(A, d(F[1], e.languages.javascript, "javascript")), F.splice.apply(F, A)), A = new e.Token("interpolation", F, i.alias, T), F = D.substring(N + E.length), T = [], S && T.push(S), T.push(A), F && (u(D = [F]), T.push.apply(T, D)), typeof L == "string" ? (m.splice.apply(m, [w, 1].concat(T)), w += T.length - 1) : L.content = T)) : (N = L.content, Array.isArray(N) ? u(N) : u([N]));
980
- }
981
- }(s), new e.Token(x, s, "language-" + x, g);
982
- }
983
- e.languages.javascript["template-string"] = [c("css", /\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source), c("html", /\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source), c("svg", /\bsvg/.source), c("markdown", /\b(?:markdown|md)/.source), c("graphql", /\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source), c("sql", /\bsql/.source), t].filter(Boolean);
984
- var y = { javascript: !0, js: !0, typescript: !0, ts: !0, jsx: !0, tsx: !0 };
985
- function h(g) {
986
- return typeof g == "string" ? g : Array.isArray(g) ? g.map(h).join("") : h(g.content);
987
- }
988
- e.hooks.add("after-tokenize", function(g) {
989
- g.language in y && function v(x) {
990
- for (var a = 0, n = x.length; a < n; a++) {
991
- var s, f, u, m = x[a];
992
- typeof m != "string" && (s = m.content, Array.isArray(s) ? m.type === "template-string" ? (m = s[1], s.length === 3 && typeof m != "string" && m.type === "embedded-code" && (f = h(m), m = m.alias, m = Array.isArray(m) ? m[0] : m, u = e.languages[m]) && (s[1] = p(f, u, m))) : v(s) : typeof s != "string" && v([s]));
993
- }
994
- }(g.tokens);
995
- });
996
- }(o), function(e) {
997
- e.languages.typescript = e.languages.extend("javascript", { "class-name": { pattern: /(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/, lookbehind: !0, greedy: !0, inside: null }, builtin: /\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/ }), e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/, /\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/, /\btype\b(?=\s*(?:[\{*]|$))/), delete e.languages.typescript.parameter, delete e.languages.typescript["literal-property"];
998
- var t = e.languages.extend("typescript", {});
999
- delete t["class-name"], e.languages.typescript["class-name"].inside = t, e.languages.insertBefore("typescript", "function", { decorator: { pattern: /@[$\w\xA0-\uFFFF]+/, inside: { at: { pattern: /^@/, alias: "operator" }, function: /^[\s\S]+/ } }, "generic-function": { pattern: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/, greedy: !0, inside: { function: /^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/, generic: { pattern: /<[\s\S]+/, alias: "class-name", inside: t } } } }), e.languages.ts = e.languages.typescript;
1000
- }(o), function(e) {
1001
- var t = e.languages.javascript, r = /\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source, i = "(@(?:arg|argument|param|property)\\s+(?:" + r + "\\s+)?)";
1002
- e.languages.jsdoc = e.languages.extend("javadoclike", { parameter: { pattern: RegExp(i + /(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source), lookbehind: !0, inside: { punctuation: /\./ } } }), e.languages.insertBefore("jsdoc", "keyword", { "optional-parameter": { pattern: RegExp(i + /\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source), lookbehind: !0, inside: { parameter: { pattern: /(^\[)[$\w\xA0-\uFFFF\.]+/, lookbehind: !0, inside: { punctuation: /\./ } }, code: { pattern: /(=)[\s\S]*(?=\]$)/, lookbehind: !0, inside: t, alias: "language-javascript" }, punctuation: /[=[\]]/ } }, "class-name": [{ pattern: RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:<TYPE>\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(/<TYPE>/g, function() {
1003
- return r;
1004
- })), lookbehind: !0, inside: { punctuation: /\./ } }, { pattern: RegExp("(@[a-z]+\\s+)" + r), lookbehind: !0, inside: { string: t.string, number: t.number, boolean: t.boolean, keyword: e.languages.typescript.keyword, operator: /=>|\.\.\.|[&|?:*]/, punctuation: /[.,;=<>{}()[\]]/ } }], example: { pattern: /(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/, lookbehind: !0, inside: { code: { pattern: /^([\t ]*(?:\*\s*)?)\S.*$/m, lookbehind: !0, inside: t, alias: "language-javascript" } } } }), e.languages.javadoclike.addSupport("javascript", e.languages.jsdoc);
1005
- }(o), function(e) {
1006
- e.languages.flow = e.languages.extend("javascript", {}), e.languages.insertBefore("flow", "keyword", { type: [{ pattern: /\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|[Ss]ymbol|any|mixed|null|void)\b/, alias: "class-name" }] }), e.languages.flow["function-variable"].pattern = /(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i, delete e.languages.flow.parameter, e.languages.insertBefore("flow", "operator", { "flow-punctuation": { pattern: /\{\||\|\}/, alias: "punctuation" } }), Array.isArray(e.languages.flow.keyword) || (e.languages.flow.keyword = [e.languages.flow.keyword]), e.languages.flow.keyword.unshift({ pattern: /(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/, lookbehind: !0 }, { pattern: /(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/, lookbehind: !0 });
1007
- }(o), o.languages.n4js = o.languages.extend("javascript", { keyword: /\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/ }), o.languages.insertBefore("n4js", "constant", { annotation: { pattern: /@+\w+/, alias: "operator" } }), o.languages.n4jsd = o.languages.n4js, function(e) {
1008
- function t(c, d) {
1009
- return RegExp(c.replace(/<ID>/g, function() {
1010
- return /(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source;
1011
- }), d);
1012
- }
1013
- e.languages.insertBefore("javascript", "function-variable", { "method-variable": { pattern: RegExp("(\\.\\s*)" + e.languages.javascript["function-variable"].pattern.source), lookbehind: !0, alias: ["function-variable", "method", "function", "property-access"] } }), e.languages.insertBefore("javascript", "function", { method: { pattern: RegExp("(\\.\\s*)" + e.languages.javascript.function.source), lookbehind: !0, alias: ["function", "property-access"] } }), e.languages.insertBefore("javascript", "constant", { "known-class-name": [{ pattern: /\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/, alias: "class-name" }, { pattern: /\b(?:[A-Z]\w*)Error\b/, alias: "class-name" }] }), e.languages.insertBefore("javascript", "keyword", { imports: { pattern: t(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source), lookbehind: !0, inside: e.languages.javascript }, exports: { pattern: t(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source), lookbehind: !0, inside: e.languages.javascript } }), e.languages.javascript.keyword.unshift({ pattern: /\b(?:as|default|export|from|import)\b/, alias: "module" }, { pattern: /\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/, alias: "control-flow" }, { pattern: /\bnull\b/, alias: ["null", "nil"] }, { pattern: /\bundefined\b/, alias: "nil" }), e.languages.insertBefore("javascript", "operator", { spread: { pattern: /\.{3}/, alias: "operator" }, arrow: { pattern: /=>/, alias: "operator" } }), e.languages.insertBefore("javascript", "punctuation", { "property-access": { pattern: t(/(\.\s*)#?<ID>/.source), lookbehind: !0 }, "maybe-class-name": { pattern: /(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/, lookbehind: !0 }, dom: { pattern: /\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/, alias: "variable" }, console: { pattern: /\bconsole(?=\s*\.)/, alias: "class-name" } });
1014
- for (var r = ["function", "function-variable", "method", "method-variable", "property-access"], i = 0; i < r.length; i++) {
1015
- var b = r[i], l = e.languages.javascript[b], b = (l = e.util.type(l) === "RegExp" ? e.languages.javascript[b] = { pattern: l } : l).inside || {};
1016
- (l.inside = b)["maybe-class-name"] = /^[A-Z][\s\S]*/;
1017
- }
1018
- }(o), function(e) {
1019
- var t = e.util.clone(e.languages.javascript), r = /(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source, i = /(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source, l = /(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;
1020
- function b(p, y) {
1021
- return p = p.replace(/<S>/g, function() {
1022
- return r;
1023
- }).replace(/<BRACES>/g, function() {
1024
- return i;
1025
- }).replace(/<SPREAD>/g, function() {
1026
- return l;
1027
- }), RegExp(p, y);
1028
- }
1029
- l = b(l).source, e.languages.jsx = e.languages.extend("markup", t), e.languages.jsx.tag.pattern = b(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source), e.languages.jsx.tag.inside.tag.pattern = /^<\/?[^\s>\/]*/, e.languages.jsx.tag.inside["attr-value"].pattern = /=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/, e.languages.jsx.tag.inside.tag.inside["class-name"] = /^[A-Z]\w*(?:\.[A-Z]\w*)*$/, e.languages.jsx.tag.inside.comment = t.comment, e.languages.insertBefore("inside", "attr-name", { spread: { pattern: b(/<SPREAD>/.source), inside: e.languages.jsx } }, e.languages.jsx.tag), e.languages.insertBefore("inside", "special-attr", { script: { pattern: b(/=<BRACES>/.source), alias: "language-javascript", inside: { "script-punctuation": { pattern: /^=(?=\{)/, alias: "punctuation" }, rest: e.languages.jsx } } }, e.languages.jsx.tag);
1030
- function c(p) {
1031
- for (var y = [], h = 0; h < p.length; h++) {
1032
- var g = p[h], v = !1;
1033
- typeof g != "string" && (g.type === "tag" && g.content[0] && g.content[0].type === "tag" ? g.content[0].content[0].content === "</" ? 0 < y.length && y[y.length - 1].tagName === d(g.content[0].content[1]) && y.pop() : g.content[g.content.length - 1].content !== "/>" && y.push({ tagName: d(g.content[0].content[1]), openedBraces: 0 }) : 0 < y.length && g.type === "punctuation" && g.content === "{" ? y[y.length - 1].openedBraces++ : 0 < y.length && 0 < y[y.length - 1].openedBraces && g.type === "punctuation" && g.content === "}" ? y[y.length - 1].openedBraces-- : v = !0), (v || typeof g == "string") && 0 < y.length && y[y.length - 1].openedBraces === 0 && (v = d(g), h < p.length - 1 && (typeof p[h + 1] == "string" || p[h + 1].type === "plain-text") && (v += d(p[h + 1]), p.splice(h + 1, 1)), 0 < h && (typeof p[h - 1] == "string" || p[h - 1].type === "plain-text") && (v = d(p[h - 1]) + v, p.splice(h - 1, 1), h--), p[h] = new e.Token("plain-text", v, null, v)), g.content && typeof g.content != "string" && c(g.content);
1034
- }
1035
- }
1036
- var d = function(p) {
1037
- return p ? typeof p == "string" ? p : typeof p.content == "string" ? p.content : p.content.map(d).join("") : "";
1038
- };
1039
- e.hooks.add("after-tokenize", function(p) {
1040
- p.language !== "jsx" && p.language !== "tsx" || c(p.tokens);
1041
- });
1042
- }(o), function(e) {
1043
- var t = e.util.clone(e.languages.typescript), t = (e.languages.tsx = e.languages.extend("jsx", t), delete e.languages.tsx.parameter, delete e.languages.tsx["literal-property"], e.languages.tsx.tag);
1044
- t.pattern = RegExp(/(^|[^\w$]|(?=<\/))/.source + "(?:" + t.pattern.source + ")", t.pattern.flags), t.lookbehind = !0;
1045
- }(o), o.languages.swift = { comment: { pattern: /(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/, lookbehind: !0, greedy: !0 }, "string-literal": [{ pattern: RegExp(/(^|[^"#])/.source + "(?:" + /"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source + "|" + /"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source + ")" + /(?!["#])/.source), lookbehind: !0, greedy: !0, inside: { interpolation: { pattern: /(\\\()(?:[^()]|\([^()]*\))*(?=\))/, lookbehind: !0, inside: null }, "interpolation-punctuation": { pattern: /^\)|\\\($/, alias: "punctuation" }, punctuation: /\\(?=[\r\n])/, string: /[\s\S]+/ } }, { pattern: RegExp(/(^|[^"#])(#+)/.source + "(?:" + /"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source + "|" + /"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source + ")\\2"), lookbehind: !0, greedy: !0, inside: { interpolation: { pattern: /(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/, lookbehind: !0, inside: null }, "interpolation-punctuation": { pattern: /^\)|\\#+\($/, alias: "punctuation" }, string: /[\s\S]+/ } }], directive: { pattern: RegExp(/#/.source + "(?:" + /(?:elseif|if)\b/.source + "(?:[ ]*" + /(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source + ")+|" + /(?:else|endif)\b/.source + ")"), alias: "property", inside: { "directive-name": /^#\w+/, boolean: /\b(?:false|true)\b/, number: /\b\d+(?:\.\d+)*\b/, operator: /!|&&|\|\||[<>]=?/, punctuation: /[(),]/ } }, literal: { pattern: /#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/, alias: "constant" }, "other-directive": { pattern: /#\w+\b/, alias: "property" }, attribute: { pattern: /@\w+/, alias: "atrule" }, "function-definition": { pattern: /(\bfunc\s+)\w+/, lookbehind: !0, alias: "function" }, label: { pattern: /\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/, lookbehind: !0, alias: "important" }, keyword: /\b(?:Any|Protocol|Self|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|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/, boolean: /\b(?:false|true)\b/, nil: { pattern: /\bnil\b/, alias: "constant" }, "short-argument": /\$\d+\b/, omit: { pattern: /\b_\b/, alias: "keyword" }, number: /\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i, "class-name": /\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/, function: /\b[a-z_]\w*(?=\s*\()/i, constant: /\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/, operator: /[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/, punctuation: /[{}[\]();,.:\\]/ }, o.languages.swift["string-literal"].forEach(function(e) {
1046
- e.inside.interpolation.inside = o.languages.swift;
1047
- }), function(e) {
1048
- e.languages.kotlin = e.languages.extend("clike", { keyword: { 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/, lookbehind: !0 }, function: [{ pattern: /(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/, greedy: !0 }, { pattern: /(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/, lookbehind: !0, greedy: !0 }], number: /\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/, operator: /\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/ }), delete e.languages.kotlin["class-name"];
1049
- var t = { "interpolation-punctuation": { pattern: /^\$\{?|\}$/, alias: "punctuation" }, expression: { pattern: /[\s\S]+/, inside: e.languages.kotlin } };
1050
- e.languages.insertBefore("kotlin", "string", { "string-literal": [{ pattern: /"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/, alias: "multiline", inside: { interpolation: { pattern: /\$(?:[a-z_]\w*|\{[^{}]*\})/i, inside: t }, string: /[\s\S]+/ } }, { pattern: /"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/, alias: "singleline", inside: { interpolation: { pattern: /((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i, lookbehind: !0, inside: t }, string: /[\s\S]+/ } }], char: { pattern: /'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/, greedy: !0 } }), delete e.languages.kotlin.string, e.languages.insertBefore("kotlin", "keyword", { annotation: { pattern: /\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/, alias: "builtin" } }), e.languages.insertBefore("kotlin", "function", { label: { pattern: /\b\w+@|@\w+\b/, alias: "symbol" } }), e.languages.kt = e.languages.kotlin, e.languages.kts = e.languages.kotlin;
1051
- }(o), o.languages.c = o.languages.extend("clike", { comment: { pattern: /\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/, greedy: !0 }, string: { pattern: /"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/, greedy: !0 }, "class-name": { pattern: /(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/, lookbehind: !0 }, keyword: /\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/, function: /\b[a-z_]\w*(?=\s*\()/i, number: /(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i, operator: />>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/ }), o.languages.insertBefore("c", "string", { char: { pattern: /'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/, greedy: !0 } }), o.languages.insertBefore("c", "string", { macro: { pattern: /(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im, lookbehind: !0, greedy: !0, alias: "property", inside: { string: [{ pattern: /^(#\s*include\s*)<[^>]+>/, lookbehind: !0 }, o.languages.c.string], char: o.languages.c.char, comment: o.languages.c.comment, "macro-name": [{ pattern: /(^#\s*define\s+)\w+\b(?!\()/i, lookbehind: !0 }, { pattern: /(^#\s*define\s+)\w+\b(?=\()/i, lookbehind: !0, alias: "function" }], directive: { pattern: /^(#\s*)[a-z]+/, lookbehind: !0, alias: "keyword" }, "directive-hash": /^#/, punctuation: /##|\\(?=[\r\n])/, expression: { pattern: /\S[\s\S]*/, inside: o.languages.c } } } }), o.languages.insertBefore("c", "function", { constant: /\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/ }), delete o.languages.c.boolean, o.languages.objectivec = o.languages.extend("c", { string: { pattern: /@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/, greedy: !0 }, keyword: /\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/, operator: /-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/ }), delete o.languages.objectivec["class-name"], o.languages.objc = o.languages.objectivec, o.languages.reason = o.languages.extend("clike", { string: { pattern: /"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/, greedy: !0 }, "class-name": /\b[A-Z]\w*/, keyword: /\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/, operator: /\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/ }), o.languages.insertBefore("reason", "class-name", { char: { pattern: /'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/, greedy: !0 }, constructor: /\b[A-Z]\w*\b(?!\s*\.)/, label: { pattern: /\b[a-z]\w*(?=::)/, alias: "symbol" } }), delete o.languages.reason.function, function(e) {
1052
- for (var t = /\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source, r = 0; r < 2; r++)
1053
- t = t.replace(/<self>/g, function() {
1054
- return t;
1055
- });
1056
- t = t.replace(/<self>/g, function() {
1057
- return /[^\s\S]/.source;
1058
- }), e.languages.rust = { comment: [{ pattern: RegExp(/(^|[^\\])/.source + t), lookbehind: !0, greedy: !0 }, { pattern: /(^|[^\\:])\/\/.*/, lookbehind: !0, greedy: !0 }], string: { pattern: /b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/, greedy: !0 }, char: { pattern: /b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/, greedy: !0 }, attribute: { pattern: /#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/, greedy: !0, alias: "attr-name", inside: { string: null } }, "closure-params": { pattern: /([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/, lookbehind: !0, greedy: !0, inside: { "closure-punctuation": { pattern: /^\||\|$/, alias: "punctuation" }, rest: null } }, "lifetime-annotation": { pattern: /'\w+/, alias: "symbol" }, "fragment-specifier": { pattern: /(\$\w+:)[a-z]+/, lookbehind: !0, alias: "punctuation" }, variable: /\$\w+/, "function-definition": { pattern: /(\bfn\s+)\w+/, lookbehind: !0, alias: "function" }, "type-definition": { pattern: /(\b(?:enum|struct|trait|type|union)\s+)\w+/, lookbehind: !0, alias: "class-name" }, "module-declaration": [{ pattern: /(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/, lookbehind: !0, alias: "namespace" }, { pattern: /(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/, lookbehind: !0, alias: "namespace", inside: { punctuation: /::/ } }], keyword: [/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/, /\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/], function: /\b[a-z_]\w*(?=\s*(?:::\s*<|\())/, macro: { pattern: /\b\w+!/, alias: "property" }, constant: /\b[A-Z_][A-Z_\d]+\b/, "class-name": /\b[A-Z]\w*\b/, namespace: { pattern: /(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/, inside: { punctuation: /::/ } }, number: /\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/, boolean: /\b(?:false|true)\b/, punctuation: /->|\.\.=|\.{1,3}|::|[{}[\];(),:]/, operator: /[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/ }, e.languages.rust["closure-params"].inside.rest = e.languages.rust, e.languages.rust.attribute.inside.string = e.languages.rust.string;
1059
- }(o), o.languages.go = o.languages.extend("clike", { string: { pattern: /(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/, lookbehind: !0, greedy: !0 }, keyword: /\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/, boolean: /\b(?:_|false|iota|nil|true)\b/, number: [/\b0(?:b[01_]+|o[0-7_]+)i?\b/i, /\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i, /(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i], operator: /[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./, 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/ }), o.languages.insertBefore("go", "string", { char: { pattern: /'(?:\\.|[^'\\\r\n]){0,10}'/, greedy: !0 } }), delete o.languages.go["class-name"], function(e) {
1060
- var t = /\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/, r = /\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g, function() {
1061
- return t.source;
1062
- });
1063
- e.languages.cpp = e.languages.extend("c", { "class-name": [{ pattern: RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g, function() {
1064
- return t.source;
1065
- })), lookbehind: !0 }, /\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/, /\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i, /\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/], keyword: t, number: { pattern: /(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i, greedy: !0 }, operator: />>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/, boolean: /\b(?:false|true)\b/ }), e.languages.insertBefore("cpp", "string", { module: { pattern: RegExp(/(\b(?:import|module)\s+)/.source + "(?:" + /"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source + "|" + /<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g, function() {
1066
- return r;
1067
- }) + ")"), lookbehind: !0, greedy: !0, inside: { string: /^[<"][\s\S]+/, operator: /:/, punctuation: /\./ } }, "raw-string": { pattern: /R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/, alias: "string", greedy: !0 } }), e.languages.insertBefore("cpp", "keyword", { "generic-function": { pattern: /\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i, inside: { function: /^\w+/, generic: { pattern: /<[\s\S]+/, alias: "class-name", inside: e.languages.cpp } } } }), e.languages.insertBefore("cpp", "operator", { "double-colon": { pattern: /::/, alias: "punctuation" } }), e.languages.insertBefore("cpp", "class-name", { "base-clause": { pattern: /(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/, lookbehind: !0, greedy: !0, inside: e.languages.extend("cpp", {}) } }), e.languages.insertBefore("inside", "double-colon", { "class-name": /\b[a-z_]\w*\b(?!\s*::)/i }, e.languages.cpp["base-clause"]);
1068
- }(o), o.languages.python = { comment: { pattern: /(^|[^\\])#.*/, lookbehind: !0, greedy: !0 }, "string-interpolation": { pattern: /(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i, greedy: !0, inside: { interpolation: { pattern: /((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/, lookbehind: !0, inside: { "format-spec": { pattern: /(:)[^:(){}]+(?=\}$)/, lookbehind: !0 }, "conversion-option": { pattern: /![sra](?=[:}]$)/, alias: "punctuation" }, rest: null } }, string: /[\s\S]+/ } }, "triple-quoted-string": { pattern: /(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i, greedy: !0, alias: "string" }, string: { pattern: /(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i, greedy: !0 }, function: { pattern: /((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g, lookbehind: !0 }, "class-name": { pattern: /(\bclass\s+)\w+/i, lookbehind: !0 }, decorator: { pattern: /(^[\t ]*)@\w+(?:\.\w+)*/m, lookbehind: !0, alias: ["annotation", "punctuation"], inside: { punctuation: /\./ } }, keyword: /\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/, builtin: /\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/, boolean: /\b(?:False|None|True)\b/, number: /\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i, operator: /[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/, punctuation: /[{}[\];(),.:]/ }, o.languages.python["string-interpolation"].inside.interpolation.inside.rest = o.languages.python, o.languages.py = o.languages.python;
1069
- var ae = {};
1070
- Ze(ae, {
1071
- dracula: () => Ve,
1072
- duotoneDark: () => Xe,
1073
- duotoneLight: () => Je,
1074
- github: () => tt,
1075
- jettwaveDark: () => xt,
1076
- jettwaveLight: () => At,
1077
- nightOwl: () => nt,
1078
- nightOwlLight: () => ot,
1079
- oceanicNext: () => it,
1080
- okaidia: () => ut,
1081
- oneDark: () => _t,
1082
- oneLight: () => Tt,
1083
- palenight: () => pt,
1084
- shadesOfPurple: () => gt,
1085
- synthwave84: () => ft,
1086
- ultramin: () => mt,
1087
- vsDark: () => we,
1088
- vsLight: () => kt
1089
- });
1090
- var Ye = {
1091
- plain: {
1092
- color: "#F8F8F2",
1093
- backgroundColor: "#282A36"
1094
- },
1095
- styles: [
1096
- {
1097
- types: ["prolog", "constant", "builtin"],
1098
- style: {
1099
- color: "rgb(189, 147, 249)"
1100
- }
1101
- },
1102
- {
1103
- types: ["inserted", "function"],
1104
- style: {
1105
- color: "rgb(80, 250, 123)"
1106
- }
1107
- },
1108
- {
1109
- types: ["deleted"],
1110
- style: {
1111
- color: "rgb(255, 85, 85)"
1112
- }
1113
- },
1114
- {
1115
- types: ["changed"],
1116
- style: {
1117
- color: "rgb(255, 184, 108)"
1118
- }
1119
- },
1120
- {
1121
- types: ["punctuation", "symbol"],
1122
- style: {
1123
- color: "rgb(248, 248, 242)"
1124
- }
1125
- },
1126
- {
1127
- types: ["string", "char", "tag", "selector"],
1128
- style: {
1129
- color: "rgb(255, 121, 198)"
1130
- }
1131
- },
1132
- {
1133
- types: ["keyword", "variable"],
1134
- style: {
1135
- color: "rgb(189, 147, 249)",
1136
- fontStyle: "italic"
1137
- }
1138
- },
1139
- {
1140
- types: ["comment"],
1141
- style: {
1142
- color: "rgb(98, 114, 164)"
1143
- }
1144
- },
1145
- {
1146
- types: ["attr-name"],
1147
- style: {
1148
- color: "rgb(241, 250, 140)"
1149
- }
1150
- }
1151
- ]
1152
- }, Ve = Ye, Ke = {
1153
- plain: {
1154
- backgroundColor: "#2a2734",
1155
- color: "#9a86fd"
1156
- },
1157
- styles: [
1158
- {
1159
- types: ["comment", "prolog", "doctype", "cdata", "punctuation"],
1160
- style: {
1161
- color: "#6c6783"
1162
- }
1163
- },
1164
- {
1165
- types: ["namespace"],
1166
- style: {
1167
- opacity: 0.7
1168
- }
1169
- },
1170
- {
1171
- types: ["tag", "operator", "number"],
1172
- style: {
1173
- color: "#e09142"
1174
- }
1175
- },
1176
- {
1177
- types: ["property", "function"],
1178
- style: {
1179
- color: "#9a86fd"
1180
- }
1181
- },
1182
- {
1183
- types: ["tag-id", "selector", "atrule-id"],
1184
- style: {
1185
- color: "#eeebff"
1186
- }
1187
- },
1188
- {
1189
- types: ["attr-name"],
1190
- style: {
1191
- color: "#c4b9fe"
1192
- }
1193
- },
1194
- {
1195
- types: [
1196
- "boolean",
1197
- "string",
1198
- "entity",
1199
- "url",
1200
- "attr-value",
1201
- "keyword",
1202
- "control",
1203
- "directive",
1204
- "unit",
1205
- "statement",
1206
- "regex",
1207
- "atrule",
1208
- "placeholder",
1209
- "variable"
1210
- ],
1211
- style: {
1212
- color: "#ffcc99"
1213
- }
1214
- },
1215
- {
1216
- types: ["deleted"],
1217
- style: {
1218
- textDecorationLine: "line-through"
1219
- }
1220
- },
1221
- {
1222
- types: ["inserted"],
1223
- style: {
1224
- textDecorationLine: "underline"
1225
- }
1226
- },
1227
- {
1228
- types: ["italic"],
1229
- style: {
1230
- fontStyle: "italic"
1231
- }
1232
- },
1233
- {
1234
- types: ["important", "bold"],
1235
- style: {
1236
- fontWeight: "bold"
1237
- }
1238
- },
1239
- {
1240
- types: ["important"],
1241
- style: {
1242
- color: "#c4b9fe"
1243
- }
1244
- }
1245
- ]
1246
- }, Xe = Ke, Qe = {
1247
- plain: {
1248
- backgroundColor: "#faf8f5",
1249
- color: "#728fcb"
1250
- },
1251
- styles: [
1252
- {
1253
- types: ["comment", "prolog", "doctype", "cdata", "punctuation"],
1254
- style: {
1255
- color: "#b6ad9a"
1256
- }
1257
- },
1258
- {
1259
- types: ["namespace"],
1260
- style: {
1261
- opacity: 0.7
1262
- }
1263
- },
1264
- {
1265
- types: ["tag", "operator", "number"],
1266
- style: {
1267
- color: "#063289"
1268
- }
1269
- },
1270
- {
1271
- types: ["property", "function"],
1272
- style: {
1273
- color: "#b29762"
1274
- }
1275
- },
1276
- {
1277
- types: ["tag-id", "selector", "atrule-id"],
1278
- style: {
1279
- color: "#2d2006"
1280
- }
1281
- },
1282
- {
1283
- types: ["attr-name"],
1284
- style: {
1285
- color: "#896724"
1286
- }
1287
- },
1288
- {
1289
- types: [
1290
- "boolean",
1291
- "string",
1292
- "entity",
1293
- "url",
1294
- "attr-value",
1295
- "keyword",
1296
- "control",
1297
- "directive",
1298
- "unit",
1299
- "statement",
1300
- "regex",
1301
- "atrule"
1302
- ],
1303
- style: {
1304
- color: "#728fcb"
1305
- }
1306
- },
1307
- {
1308
- types: ["placeholder", "variable"],
1309
- style: {
1310
- color: "#93abdc"
1311
- }
1312
- },
1313
- {
1314
- types: ["deleted"],
1315
- style: {
1316
- textDecorationLine: "line-through"
1317
- }
1318
- },
1319
- {
1320
- types: ["inserted"],
1321
- style: {
1322
- textDecorationLine: "underline"
1323
- }
1324
- },
1325
- {
1326
- types: ["italic"],
1327
- style: {
1328
- fontStyle: "italic"
1329
- }
1330
- },
1331
- {
1332
- types: ["important", "bold"],
1333
- style: {
1334
- fontWeight: "bold"
1335
- }
1336
- },
1337
- {
1338
- types: ["important"],
1339
- style: {
1340
- color: "#896724"
1341
- }
1342
- }
1343
- ]
1344
- }, Je = Qe, et = {
1345
- plain: {
1346
- color: "#393A34",
1347
- backgroundColor: "#f6f8fa"
1348
- },
1349
- styles: [
1350
- {
1351
- types: ["comment", "prolog", "doctype", "cdata"],
1352
- style: {
1353
- color: "#999988",
1354
- fontStyle: "italic"
1355
- }
1356
- },
1357
- {
1358
- types: ["namespace"],
1359
- style: {
1360
- opacity: 0.7
1361
- }
1362
- },
1363
- {
1364
- types: ["string", "attr-value"],
1365
- style: {
1366
- color: "#e3116c"
1367
- }
1368
- },
1369
- {
1370
- types: ["punctuation", "operator"],
1371
- style: {
1372
- color: "#393A34"
1373
- }
1374
- },
1375
- {
1376
- types: [
1377
- "entity",
1378
- "url",
1379
- "symbol",
1380
- "number",
1381
- "boolean",
1382
- "variable",
1383
- "constant",
1384
- "property",
1385
- "regex",
1386
- "inserted"
1387
- ],
1388
- style: {
1389
- color: "#36acaa"
1390
- }
1391
- },
1392
- {
1393
- types: ["atrule", "keyword", "attr-name", "selector"],
1394
- style: {
1395
- color: "#00a4db"
1396
- }
1397
- },
1398
- {
1399
- types: ["function", "deleted", "tag"],
1400
- style: {
1401
- color: "#d73a49"
1402
- }
1403
- },
1404
- {
1405
- types: ["function-variable"],
1406
- style: {
1407
- color: "#6f42c1"
1408
- }
1409
- },
1410
- {
1411
- types: ["tag", "selector", "keyword"],
1412
- style: {
1413
- color: "#00009f"
1414
- }
1415
- }
1416
- ]
1417
- }, tt = et, rt = {
1418
- plain: {
1419
- color: "#d6deeb",
1420
- backgroundColor: "#011627"
1421
- },
1422
- styles: [
1423
- {
1424
- types: ["changed"],
1425
- style: {
1426
- color: "rgb(162, 191, 252)",
1427
- fontStyle: "italic"
1428
- }
1429
- },
1430
- {
1431
- types: ["deleted"],
1432
- style: {
1433
- color: "rgba(239, 83, 80, 0.56)",
1434
- fontStyle: "italic"
1435
- }
1436
- },
1437
- {
1438
- types: ["inserted", "attr-name"],
1439
- style: {
1440
- color: "rgb(173, 219, 103)",
1441
- fontStyle: "italic"
1442
- }
1443
- },
1444
- {
1445
- types: ["comment"],
1446
- style: {
1447
- color: "rgb(99, 119, 119)",
1448
- fontStyle: "italic"
1449
- }
1450
- },
1451
- {
1452
- types: ["string", "url"],
1453
- style: {
1454
- color: "rgb(173, 219, 103)"
1455
- }
1456
- },
1457
- {
1458
- types: ["variable"],
1459
- style: {
1460
- color: "rgb(214, 222, 235)"
1461
- }
1462
- },
1463
- {
1464
- types: ["number"],
1465
- style: {
1466
- color: "rgb(247, 140, 108)"
1467
- }
1468
- },
1469
- {
1470
- types: ["builtin", "char", "constant", "function"],
1471
- style: {
1472
- color: "rgb(130, 170, 255)"
1473
- }
1474
- },
1475
- {
1476
- // This was manually added after the auto-generation
1477
- // so that punctuations are not italicised
1478
- types: ["punctuation"],
1479
- style: {
1480
- color: "rgb(199, 146, 234)"
1481
- }
1482
- },
1483
- {
1484
- types: ["selector", "doctype"],
1485
- style: {
1486
- color: "rgb(199, 146, 234)",
1487
- fontStyle: "italic"
1488
- }
1489
- },
1490
- {
1491
- types: ["class-name"],
1492
- style: {
1493
- color: "rgb(255, 203, 139)"
1494
- }
1495
- },
1496
- {
1497
- types: ["tag", "operator", "keyword"],
1498
- style: {
1499
- color: "rgb(127, 219, 202)"
1500
- }
1501
- },
1502
- {
1503
- types: ["boolean"],
1504
- style: {
1505
- color: "rgb(255, 88, 116)"
1506
- }
1507
- },
1508
- {
1509
- types: ["property"],
1510
- style: {
1511
- color: "rgb(128, 203, 196)"
1512
- }
1513
- },
1514
- {
1515
- types: ["namespace"],
1516
- style: {
1517
- color: "rgb(178, 204, 214)"
1518
- }
1519
- }
1520
- ]
1521
- }, nt = rt, at = {
1522
- plain: {
1523
- color: "#403f53",
1524
- backgroundColor: "#FBFBFB"
1525
- },
1526
- styles: [
1527
- {
1528
- types: ["changed"],
1529
- style: {
1530
- color: "rgb(162, 191, 252)",
1531
- fontStyle: "italic"
1532
- }
1533
- },
1534
- {
1535
- types: ["deleted"],
1536
- style: {
1537
- color: "rgba(239, 83, 80, 0.56)",
1538
- fontStyle: "italic"
1539
- }
1540
- },
1541
- {
1542
- types: ["inserted", "attr-name"],
1543
- style: {
1544
- color: "rgb(72, 118, 214)",
1545
- fontStyle: "italic"
1546
- }
1547
- },
1548
- {
1549
- types: ["comment"],
1550
- style: {
1551
- color: "rgb(152, 159, 177)",
1552
- fontStyle: "italic"
1553
- }
1554
- },
1555
- {
1556
- types: ["string", "builtin", "char", "constant", "url"],
1557
- style: {
1558
- color: "rgb(72, 118, 214)"
1559
- }
1560
- },
1561
- {
1562
- types: ["variable"],
1563
- style: {
1564
- color: "rgb(201, 103, 101)"
1565
- }
1566
- },
1567
- {
1568
- types: ["number"],
1569
- style: {
1570
- color: "rgb(170, 9, 130)"
1571
- }
1572
- },
1573
- {
1574
- // This was manually added after the auto-generation
1575
- // so that punctuations are not italicised
1576
- types: ["punctuation"],
1577
- style: {
1578
- color: "rgb(153, 76, 195)"
1579
- }
1580
- },
1581
- {
1582
- types: ["function", "selector", "doctype"],
1583
- style: {
1584
- color: "rgb(153, 76, 195)",
1585
- fontStyle: "italic"
1586
- }
1587
- },
1588
- {
1589
- types: ["class-name"],
1590
- style: {
1591
- color: "rgb(17, 17, 17)"
1592
- }
1593
- },
1594
- {
1595
- types: ["tag"],
1596
- style: {
1597
- color: "rgb(153, 76, 195)"
1598
- }
1599
- },
1600
- {
1601
- types: ["operator", "property", "keyword", "namespace"],
1602
- style: {
1603
- color: "rgb(12, 150, 155)"
1604
- }
1605
- },
1606
- {
1607
- types: ["boolean"],
1608
- style: {
1609
- color: "rgb(188, 84, 84)"
1610
- }
1611
- }
1612
- ]
1613
- }, ot = at, R = {
1614
- char: "#D8DEE9",
1615
- comment: "#999999",
1616
- keyword: "#c5a5c5",
1617
- primitive: "#5a9bcf",
1618
- string: "#8dc891",
1619
- variable: "#d7deea",
1620
- boolean: "#ff8b50",
1621
- punctuation: "#5FB3B3",
1622
- tag: "#fc929e",
1623
- function: "#79b6f2",
1624
- className: "#FAC863",
1625
- method: "#6699CC",
1626
- operator: "#fc929e"
1627
- }, st = {
1628
- plain: {
1629
- backgroundColor: "#282c34",
1630
- color: "#ffffff"
1631
- },
1632
- styles: [
1633
- {
1634
- types: ["attr-name"],
1635
- style: {
1636
- color: R.keyword
1637
- }
1638
- },
1639
- {
1640
- types: ["attr-value"],
1641
- style: {
1642
- color: R.string
1643
- }
1644
- },
1645
- {
1646
- types: [
1647
- "comment",
1648
- "block-comment",
1649
- "prolog",
1650
- "doctype",
1651
- "cdata",
1652
- "shebang"
1653
- ],
1654
- style: {
1655
- color: R.comment
1656
- }
1657
- },
1658
- {
1659
- types: [
1660
- "property",
1661
- "number",
1662
- "function-name",
1663
- "constant",
1664
- "symbol",
1665
- "deleted"
1666
- ],
1667
- style: {
1668
- color: R.primitive
1669
- }
1670
- },
1671
- {
1672
- types: ["boolean"],
1673
- style: {
1674
- color: R.boolean
1675
- }
1676
- },
1677
- {
1678
- types: ["tag"],
1679
- style: {
1680
- color: R.tag
1681
- }
1682
- },
1683
- {
1684
- types: ["string"],
1685
- style: {
1686
- color: R.string
1687
- }
1688
- },
1689
- {
1690
- types: ["punctuation"],
1691
- style: {
1692
- color: R.string
1693
- }
1694
- },
1695
- {
1696
- types: ["selector", "char", "builtin", "inserted"],
1697
- style: {
1698
- color: R.char
1699
- }
1700
- },
1701
- {
1702
- types: ["function"],
1703
- style: {
1704
- color: R.function
1705
- }
1706
- },
1707
- {
1708
- types: ["operator", "entity", "url", "variable"],
1709
- style: {
1710
- color: R.variable
1711
- }
1712
- },
1713
- {
1714
- types: ["keyword"],
1715
- style: {
1716
- color: R.keyword
1717
- }
1718
- },
1719
- {
1720
- types: ["atrule", "class-name"],
1721
- style: {
1722
- color: R.className
1723
- }
1724
- },
1725
- {
1726
- types: ["important"],
1727
- style: {
1728
- fontWeight: "400"
1729
- }
1730
- },
1731
- {
1732
- types: ["bold"],
1733
- style: {
1734
- fontWeight: "bold"
1735
- }
1736
- },
1737
- {
1738
- types: ["italic"],
1739
- style: {
1740
- fontStyle: "italic"
1741
- }
1742
- },
1743
- {
1744
- types: ["namespace"],
1745
- style: {
1746
- opacity: 0.7
1747
- }
1748
- }
1749
- ]
1750
- }, it = st, lt = {
1751
- plain: {
1752
- color: "#f8f8f2",
1753
- backgroundColor: "#272822"
1754
- },
1755
- styles: [
1756
- {
1757
- types: ["changed"],
1758
- style: {
1759
- color: "rgb(162, 191, 252)",
1760
- fontStyle: "italic"
1761
- }
1762
- },
1763
- {
1764
- types: ["deleted"],
1765
- style: {
1766
- color: "#f92672",
1767
- fontStyle: "italic"
1768
- }
1769
- },
1770
- {
1771
- types: ["inserted"],
1772
- style: {
1773
- color: "rgb(173, 219, 103)",
1774
- fontStyle: "italic"
1775
- }
1776
- },
1777
- {
1778
- types: ["comment"],
1779
- style: {
1780
- color: "#8292a2",
1781
- fontStyle: "italic"
1782
- }
1783
- },
1784
- {
1785
- types: ["string", "url"],
1786
- style: {
1787
- color: "#a6e22e"
1788
- }
1789
- },
1790
- {
1791
- types: ["variable"],
1792
- style: {
1793
- color: "#f8f8f2"
1794
- }
1795
- },
1796
- {
1797
- types: ["number"],
1798
- style: {
1799
- color: "#ae81ff"
1800
- }
1801
- },
1802
- {
1803
- types: ["builtin", "char", "constant", "function", "class-name"],
1804
- style: {
1805
- color: "#e6db74"
1806
- }
1807
- },
1808
- {
1809
- types: ["punctuation"],
1810
- style: {
1811
- color: "#f8f8f2"
1812
- }
1813
- },
1814
- {
1815
- types: ["selector", "doctype"],
1816
- style: {
1817
- color: "#a6e22e",
1818
- fontStyle: "italic"
1819
- }
1820
- },
1821
- {
1822
- types: ["tag", "operator", "keyword"],
1823
- style: {
1824
- color: "#66d9ef"
1825
- }
1826
- },
1827
- {
1828
- types: ["boolean"],
1829
- style: {
1830
- color: "#ae81ff"
1831
- }
1832
- },
1833
- {
1834
- types: ["namespace"],
1835
- style: {
1836
- color: "rgb(178, 204, 214)",
1837
- opacity: 0.7
1838
- }
1839
- },
1840
- {
1841
- types: ["tag", "property"],
1842
- style: {
1843
- color: "#f92672"
1844
- }
1845
- },
1846
- {
1847
- types: ["attr-name"],
1848
- style: {
1849
- color: "#a6e22e !important"
1850
- }
1851
- },
1852
- {
1853
- types: ["doctype"],
1854
- style: {
1855
- color: "#8292a2"
1856
- }
1857
- },
1858
- {
1859
- types: ["rule"],
1860
- style: {
1861
- color: "#e6db74"
1862
- }
1863
- }
1864
- ]
1865
- }, ut = lt, ct = {
1866
- plain: {
1867
- color: "#bfc7d5",
1868
- backgroundColor: "#292d3e"
1869
- },
1870
- styles: [
1871
- {
1872
- types: ["comment"],
1873
- style: {
1874
- color: "rgb(105, 112, 152)",
1875
- fontStyle: "italic"
1876
- }
1877
- },
1878
- {
1879
- types: ["string", "inserted"],
1880
- style: {
1881
- color: "rgb(195, 232, 141)"
1882
- }
1883
- },
1884
- {
1885
- types: ["number"],
1886
- style: {
1887
- color: "rgb(247, 140, 108)"
1888
- }
1889
- },
1890
- {
1891
- types: ["builtin", "char", "constant", "function"],
1892
- style: {
1893
- color: "rgb(130, 170, 255)"
1894
- }
1895
- },
1896
- {
1897
- types: ["punctuation", "selector"],
1898
- style: {
1899
- color: "rgb(199, 146, 234)"
1900
- }
1901
- },
1902
- {
1903
- types: ["variable"],
1904
- style: {
1905
- color: "rgb(191, 199, 213)"
1906
- }
1907
- },
1908
- {
1909
- types: ["class-name", "attr-name"],
1910
- style: {
1911
- color: "rgb(255, 203, 107)"
1912
- }
1913
- },
1914
- {
1915
- types: ["tag", "deleted"],
1916
- style: {
1917
- color: "rgb(255, 85, 114)"
1918
- }
1919
- },
1920
- {
1921
- types: ["operator"],
1922
- style: {
1923
- color: "rgb(137, 221, 255)"
1924
- }
1925
- },
1926
- {
1927
- types: ["boolean"],
1928
- style: {
1929
- color: "rgb(255, 88, 116)"
1930
- }
1931
- },
1932
- {
1933
- types: ["keyword"],
1934
- style: {
1935
- fontStyle: "italic"
1936
- }
1937
- },
1938
- {
1939
- types: ["doctype"],
1940
- style: {
1941
- color: "rgb(199, 146, 234)",
1942
- fontStyle: "italic"
1943
- }
1944
- },
1945
- {
1946
- types: ["namespace"],
1947
- style: {
1948
- color: "rgb(178, 204, 214)"
1949
- }
1950
- },
1951
- {
1952
- types: ["url"],
1953
- style: {
1954
- color: "rgb(221, 221, 221)"
1955
- }
1956
- }
1957
- ]
1958
- }, pt = ct, dt = {
1959
- plain: {
1960
- color: "#9EFEFF",
1961
- backgroundColor: "#2D2A55"
1962
- },
1963
- styles: [
1964
- {
1965
- types: ["changed"],
1966
- style: {
1967
- color: "rgb(255, 238, 128)"
1968
- }
1969
- },
1970
- {
1971
- types: ["deleted"],
1972
- style: {
1973
- color: "rgba(239, 83, 80, 0.56)"
1974
- }
1975
- },
1976
- {
1977
- types: ["inserted"],
1978
- style: {
1979
- color: "rgb(173, 219, 103)"
1980
- }
1981
- },
1982
- {
1983
- types: ["comment"],
1984
- style: {
1985
- color: "rgb(179, 98, 255)",
1986
- fontStyle: "italic"
1987
- }
1988
- },
1989
- {
1990
- types: ["punctuation"],
1991
- style: {
1992
- color: "rgb(255, 255, 255)"
1993
- }
1994
- },
1995
- {
1996
- types: ["constant"],
1997
- style: {
1998
- color: "rgb(255, 98, 140)"
1999
- }
2000
- },
2001
- {
2002
- types: ["string", "url"],
2003
- style: {
2004
- color: "rgb(165, 255, 144)"
2005
- }
2006
- },
2007
- {
2008
- types: ["variable"],
2009
- style: {
2010
- color: "rgb(255, 238, 128)"
2011
- }
2012
- },
2013
- {
2014
- types: ["number", "boolean"],
2015
- style: {
2016
- color: "rgb(255, 98, 140)"
2017
- }
2018
- },
2019
- {
2020
- types: ["attr-name"],
2021
- style: {
2022
- color: "rgb(255, 180, 84)"
2023
- }
2024
- },
2025
- {
2026
- types: [
2027
- "keyword",
2028
- "operator",
2029
- "property",
2030
- "namespace",
2031
- "tag",
2032
- "selector",
2033
- "doctype"
2034
- ],
2035
- style: {
2036
- color: "rgb(255, 157, 0)"
2037
- }
2038
- },
2039
- {
2040
- types: ["builtin", "char", "constant", "function", "class-name"],
2041
- style: {
2042
- color: "rgb(250, 208, 0)"
2043
- }
2044
- }
2045
- ]
2046
- }, gt = dt, yt = {
2047
- plain: {
2048
- backgroundColor: "linear-gradient(to bottom, #2a2139 75%, #34294f)",
2049
- backgroundImage: "#34294f",
2050
- color: "#f92aad",
2051
- textShadow: "0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"
2052
- },
2053
- styles: [
2054
- {
2055
- types: ["comment", "block-comment", "prolog", "doctype", "cdata"],
2056
- style: {
2057
- color: "#495495",
2058
- fontStyle: "italic"
2059
- }
2060
- },
2061
- {
2062
- types: ["punctuation"],
2063
- style: {
2064
- color: "#ccc"
2065
- }
2066
- },
2067
- {
2068
- types: [
2069
- "tag",
2070
- "attr-name",
2071
- "namespace",
2072
- "number",
2073
- "unit",
2074
- "hexcode",
2075
- "deleted"
2076
- ],
2077
- style: {
2078
- color: "#e2777a"
2079
- }
2080
- },
2081
- {
2082
- types: ["property", "selector"],
2083
- style: {
2084
- color: "#72f1b8",
2085
- textShadow: "0 0 2px #100c0f, 0 0 10px #257c5575, 0 0 35px #21272475"
2086
- }
2087
- },
2088
- {
2089
- types: ["function-name"],
2090
- style: {
2091
- color: "#6196cc"
2092
- }
2093
- },
2094
- {
2095
- types: ["boolean", "selector-id", "function"],
2096
- style: {
2097
- color: "#fdfdfd",
2098
- textShadow: "0 0 2px #001716, 0 0 3px #03edf975, 0 0 5px #03edf975, 0 0 8px #03edf975"
2099
- }
2100
- },
2101
- {
2102
- types: ["class-name", "maybe-class-name", "builtin"],
2103
- style: {
2104
- color: "#fff5f6",
2105
- textShadow: "0 0 2px #000, 0 0 10px #fc1f2c75, 0 0 5px #fc1f2c75, 0 0 25px #fc1f2c75"
2106
- }
2107
- },
2108
- {
2109
- types: ["constant", "symbol"],
2110
- style: {
2111
- color: "#f92aad",
2112
- textShadow: "0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"
2113
- }
2114
- },
2115
- {
2116
- types: ["important", "atrule", "keyword", "selector-class"],
2117
- style: {
2118
- color: "#f4eee4",
2119
- textShadow: "0 0 2px #393a33, 0 0 8px #f39f0575, 0 0 2px #f39f0575"
2120
- }
2121
- },
2122
- {
2123
- types: ["string", "char", "attr-value", "regex", "variable"],
2124
- style: {
2125
- color: "#f87c32"
2126
- }
2127
- },
2128
- {
2129
- types: ["parameter"],
2130
- style: {
2131
- fontStyle: "italic"
2132
- }
2133
- },
2134
- {
2135
- types: ["entity", "url"],
2136
- style: {
2137
- color: "#67cdcc"
2138
- }
2139
- },
2140
- {
2141
- types: ["operator"],
2142
- style: {
2143
- color: "ffffffee"
2144
- }
2145
- },
2146
- {
2147
- types: ["important", "bold"],
2148
- style: {
2149
- fontWeight: "bold"
2150
- }
2151
- },
2152
- {
2153
- types: ["italic"],
2154
- style: {
2155
- fontStyle: "italic"
2156
- }
2157
- },
2158
- {
2159
- types: ["entity"],
2160
- style: {
2161
- cursor: "help"
2162
- }
2163
- },
2164
- {
2165
- types: ["inserted"],
2166
- style: {
2167
- color: "green"
2168
- }
2169
- }
2170
- ]
2171
- }, ft = yt, bt = {
2172
- plain: {
2173
- color: "#282a2e",
2174
- backgroundColor: "#ffffff"
2175
- },
2176
- styles: [
2177
- {
2178
- types: ["comment"],
2179
- style: {
2180
- color: "rgb(197, 200, 198)"
2181
- }
2182
- },
2183
- {
2184
- types: ["string", "number", "builtin", "variable"],
2185
- style: {
2186
- color: "rgb(150, 152, 150)"
2187
- }
2188
- },
2189
- {
2190
- types: ["class-name", "function", "tag", "attr-name"],
2191
- style: {
2192
- color: "rgb(40, 42, 46)"
2193
- }
2194
- }
2195
- ]
2196
- }, mt = bt, ht = {
2197
- plain: {
2198
- color: "#9CDCFE",
2199
- backgroundColor: "#1E1E1E"
2200
- },
2201
- styles: [
2202
- {
2203
- types: ["prolog"],
2204
- style: {
2205
- color: "rgb(0, 0, 128)"
2206
- }
2207
- },
2208
- {
2209
- types: ["comment"],
2210
- style: {
2211
- color: "rgb(106, 153, 85)"
2212
- }
2213
- },
2214
- {
2215
- types: ["builtin", "changed", "keyword", "interpolation-punctuation"],
2216
- style: {
2217
- color: "rgb(86, 156, 214)"
2218
- }
2219
- },
2220
- {
2221
- types: ["number", "inserted"],
2222
- style: {
2223
- color: "rgb(181, 206, 168)"
2224
- }
2225
- },
2226
- {
2227
- types: ["constant"],
2228
- style: {
2229
- color: "rgb(100, 102, 149)"
2230
- }
2231
- },
2232
- {
2233
- types: ["attr-name", "variable"],
2234
- style: {
2235
- color: "rgb(156, 220, 254)"
2236
- }
2237
- },
2238
- {
2239
- types: ["deleted", "string", "attr-value", "template-punctuation"],
2240
- style: {
2241
- color: "rgb(206, 145, 120)"
2242
- }
2243
- },
2244
- {
2245
- types: ["selector"],
2246
- style: {
2247
- color: "rgb(215, 186, 125)"
2248
- }
2249
- },
2250
- {
2251
- // Fix tag color
2252
- types: ["tag"],
2253
- style: {
2254
- color: "rgb(78, 201, 176)"
2255
- }
2256
- },
2257
- {
2258
- // Fix tag color for HTML
2259
- types: ["tag"],
2260
- languages: ["markup"],
2261
- style: {
2262
- color: "rgb(86, 156, 214)"
2263
- }
2264
- },
2265
- {
2266
- types: ["punctuation", "operator"],
2267
- style: {
2268
- color: "rgb(212, 212, 212)"
2269
- }
2270
- },
2271
- {
2272
- // Fix punctuation color for HTML
2273
- types: ["punctuation"],
2274
- languages: ["markup"],
2275
- style: {
2276
- color: "#808080"
2277
- }
2278
- },
2279
- {
2280
- types: ["function"],
2281
- style: {
2282
- color: "rgb(220, 220, 170)"
2283
- }
2284
- },
2285
- {
2286
- types: ["class-name"],
2287
- style: {
2288
- color: "rgb(78, 201, 176)"
2289
- }
2290
- },
2291
- {
2292
- types: ["char"],
2293
- style: {
2294
- color: "rgb(209, 105, 105)"
2295
- }
2296
- }
2297
- ]
2298
- }, we = ht, vt = {
2299
- plain: {
2300
- color: "#000000",
2301
- backgroundColor: "#ffffff"
2302
- },
2303
- styles: [
2304
- {
2305
- types: ["comment"],
2306
- style: {
2307
- color: "rgb(0, 128, 0)"
2308
- }
2309
- },
2310
- {
2311
- types: ["builtin"],
2312
- style: {
2313
- color: "rgb(0, 112, 193)"
2314
- }
2315
- },
2316
- {
2317
- types: ["number", "variable", "inserted"],
2318
- style: {
2319
- color: "rgb(9, 134, 88)"
2320
- }
2321
- },
2322
- {
2323
- types: ["operator"],
2324
- style: {
2325
- color: "rgb(0, 0, 0)"
2326
- }
2327
- },
2328
- {
2329
- types: ["constant", "char"],
2330
- style: {
2331
- color: "rgb(129, 31, 63)"
2332
- }
2333
- },
2334
- {
2335
- types: ["tag"],
2336
- style: {
2337
- color: "rgb(128, 0, 0)"
2338
- }
2339
- },
2340
- {
2341
- types: ["attr-name"],
2342
- style: {
2343
- color: "rgb(255, 0, 0)"
2344
- }
2345
- },
2346
- {
2347
- types: ["deleted", "string"],
2348
- style: {
2349
- color: "rgb(163, 21, 21)"
2350
- }
2351
- },
2352
- {
2353
- types: ["changed", "punctuation"],
2354
- style: {
2355
- color: "rgb(4, 81, 165)"
2356
- }
2357
- },
2358
- {
2359
- types: ["function", "keyword"],
2360
- style: {
2361
- color: "rgb(0, 0, 255)"
2362
- }
2363
- },
2364
- {
2365
- types: ["class-name"],
2366
- style: {
2367
- color: "rgb(38, 127, 153)"
2368
- }
2369
- }
2370
- ]
2371
- }, kt = vt, wt = {
2372
- plain: {
2373
- color: "#f8fafc",
2374
- backgroundColor: "#011627"
2375
- },
2376
- styles: [
2377
- {
2378
- types: ["prolog"],
2379
- style: {
2380
- color: "#000080"
2381
- }
2382
- },
2383
- {
2384
- types: ["comment"],
2385
- style: {
2386
- color: "#6A9955"
2387
- }
2388
- },
2389
- {
2390
- types: ["builtin", "changed", "keyword", "interpolation-punctuation"],
2391
- style: {
2392
- color: "#569CD6"
2393
- }
2394
- },
2395
- {
2396
- types: ["number", "inserted"],
2397
- style: {
2398
- color: "#B5CEA8"
2399
- }
2400
- },
2401
- {
2402
- types: ["constant"],
2403
- style: {
2404
- color: "#f8fafc"
2405
- }
2406
- },
2407
- {
2408
- types: ["attr-name", "variable"],
2409
- style: {
2410
- color: "#9CDCFE"
2411
- }
2412
- },
2413
- {
2414
- types: ["deleted", "string", "attr-value", "template-punctuation"],
2415
- style: {
2416
- color: "#cbd5e1"
2417
- }
2418
- },
2419
- {
2420
- types: ["selector"],
2421
- style: {
2422
- color: "#D7BA7D"
2423
- }
2424
- },
2425
- {
2426
- types: ["tag"],
2427
- style: {
2428
- color: "#0ea5e9"
2429
- }
2430
- },
2431
- {
2432
- types: ["tag"],
2433
- languages: ["markup"],
2434
- style: {
2435
- color: "#0ea5e9"
2436
- }
2437
- },
2438
- {
2439
- types: ["punctuation", "operator"],
2440
- style: {
2441
- color: "#D4D4D4"
2442
- }
2443
- },
2444
- {
2445
- types: ["punctuation"],
2446
- languages: ["markup"],
2447
- style: {
2448
- color: "#808080"
2449
- }
2450
- },
2451
- {
2452
- types: ["function"],
2453
- style: {
2454
- color: "#7dd3fc"
2455
- }
2456
- },
2457
- {
2458
- types: ["class-name"],
2459
- style: {
2460
- color: "#0ea5e9"
2461
- }
2462
- },
2463
- {
2464
- types: ["char"],
2465
- style: {
2466
- color: "#D16969"
2467
- }
2468
- }
2469
- ]
2470
- }, xt = wt, Et = {
2471
- plain: {
2472
- color: "#0f172a",
2473
- backgroundColor: "#f1f5f9"
2474
- },
2475
- styles: [
2476
- {
2477
- types: ["prolog"],
2478
- style: {
2479
- color: "#000080"
2480
- }
2481
- },
2482
- {
2483
- types: ["comment"],
2484
- style: {
2485
- color: "#6A9955"
2486
- }
2487
- },
2488
- {
2489
- types: ["builtin", "changed", "keyword", "interpolation-punctuation"],
2490
- style: {
2491
- color: "#0c4a6e"
2492
- }
2493
- },
2494
- {
2495
- types: ["number", "inserted"],
2496
- style: {
2497
- color: "#B5CEA8"
2498
- }
2499
- },
2500
- {
2501
- types: ["constant"],
2502
- style: {
2503
- color: "#0f172a"
2504
- }
2505
- },
2506
- {
2507
- types: ["attr-name", "variable"],
2508
- style: {
2509
- color: "#0c4a6e"
2510
- }
2511
- },
2512
- {
2513
- types: ["deleted", "string", "attr-value", "template-punctuation"],
2514
- style: {
2515
- color: "#64748b"
2516
- }
2517
- },
2518
- {
2519
- types: ["selector"],
2520
- style: {
2521
- color: "#D7BA7D"
2522
- }
2523
- },
2524
- {
2525
- types: ["tag"],
2526
- style: {
2527
- color: "#0ea5e9"
2528
- }
2529
- },
2530
- {
2531
- types: ["tag"],
2532
- languages: ["markup"],
2533
- style: {
2534
- color: "#0ea5e9"
2535
- }
2536
- },
2537
- {
2538
- types: ["punctuation", "operator"],
2539
- style: {
2540
- color: "#475569"
2541
- }
2542
- },
2543
- {
2544
- types: ["punctuation"],
2545
- languages: ["markup"],
2546
- style: {
2547
- color: "#808080"
2548
- }
2549
- },
2550
- {
2551
- types: ["function"],
2552
- style: {
2553
- color: "#0e7490"
2554
- }
2555
- },
2556
- {
2557
- types: ["class-name"],
2558
- style: {
2559
- color: "#0ea5e9"
2560
- }
2561
- },
2562
- {
2563
- types: ["char"],
2564
- style: {
2565
- color: "#D16969"
2566
- }
2567
- }
2568
- ]
2569
- }, At = Et, St = {
2570
- plain: {
2571
- backgroundColor: "hsl(220, 13%, 18%)",
2572
- color: "hsl(220, 14%, 71%)",
2573
- textShadow: "0 1px rgba(0, 0, 0, 0.3)"
2574
- },
2575
- styles: [
2576
- {
2577
- types: ["comment", "prolog", "cdata"],
2578
- style: {
2579
- color: "hsl(220, 10%, 40%)"
2580
- }
2581
- },
2582
- {
2583
- types: ["doctype", "punctuation", "entity"],
2584
- style: {
2585
- color: "hsl(220, 14%, 71%)"
2586
- }
2587
- },
2588
- {
2589
- types: [
2590
- "attr-name",
2591
- "class-name",
2592
- "maybe-class-name",
2593
- "boolean",
2594
- "constant",
2595
- "number",
2596
- "atrule"
2597
- ],
2598
- style: { color: "hsl(29, 54%, 61%)" }
2599
- },
2600
- {
2601
- types: ["keyword"],
2602
- style: { color: "hsl(286, 60%, 67%)" }
2603
- },
2604
- {
2605
- types: ["property", "tag", "symbol", "deleted", "important"],
2606
- style: {
2607
- color: "hsl(355, 65%, 65%)"
2608
- }
2609
- },
2610
- {
2611
- types: [
2612
- "selector",
2613
- "string",
2614
- "char",
2615
- "builtin",
2616
- "inserted",
2617
- "regex",
2618
- "attr-value"
2619
- ],
2620
- style: {
2621
- color: "hsl(95, 38%, 62%)"
2622
- }
2623
- },
2624
- {
2625
- types: ["variable", "operator", "function"],
2626
- style: {
2627
- color: "hsl(207, 82%, 66%)"
2628
- }
2629
- },
2630
- {
2631
- types: ["url"],
2632
- style: {
2633
- color: "hsl(187, 47%, 55%)"
2634
- }
2635
- },
2636
- {
2637
- types: ["deleted"],
2638
- style: {
2639
- textDecorationLine: "line-through"
2640
- }
2641
- },
2642
- {
2643
- types: ["inserted"],
2644
- style: {
2645
- textDecorationLine: "underline"
2646
- }
2647
- },
2648
- {
2649
- types: ["italic"],
2650
- style: {
2651
- fontStyle: "italic"
2652
- }
2653
- },
2654
- {
2655
- types: ["important", "bold"],
2656
- style: {
2657
- fontWeight: "bold"
2658
- }
2659
- },
2660
- {
2661
- types: ["important"],
2662
- style: {
2663
- color: "hsl(220, 14%, 71%)"
2664
- }
2665
- }
2666
- ]
2667
- }, _t = St, Ft = {
2668
- plain: {
2669
- backgroundColor: "hsl(230, 1%, 98%)",
2670
- color: "hsl(230, 8%, 24%)"
2671
- },
2672
- styles: [
2673
- {
2674
- types: ["comment", "prolog", "cdata"],
2675
- style: {
2676
- color: "hsl(230, 4%, 64%)"
2677
- }
2678
- },
2679
- {
2680
- types: ["doctype", "punctuation", "entity"],
2681
- style: {
2682
- color: "hsl(230, 8%, 24%)"
2683
- }
2684
- },
2685
- {
2686
- types: [
2687
- "attr-name",
2688
- "class-name",
2689
- "boolean",
2690
- "constant",
2691
- "number",
2692
- "atrule"
2693
- ],
2694
- style: {
2695
- color: "hsl(35, 99%, 36%)"
2696
- }
2697
- },
2698
- {
2699
- types: ["keyword"],
2700
- style: {
2701
- color: "hsl(301, 63%, 40%)"
2702
- }
2703
- },
2704
- {
2705
- types: ["property", "tag", "symbol", "deleted", "important"],
2706
- style: {
2707
- color: "hsl(5, 74%, 59%)"
2708
- }
2709
- },
2710
- {
2711
- types: [
2712
- "selector",
2713
- "string",
2714
- "char",
2715
- "builtin",
2716
- "inserted",
2717
- "regex",
2718
- "attr-value",
2719
- "punctuation"
2720
- ],
2721
- style: {
2722
- color: "hsl(119, 34%, 47%)"
2723
- }
2724
- },
2725
- {
2726
- types: ["variable", "operator", "function"],
2727
- style: {
2728
- color: "hsl(221, 87%, 60%)"
2729
- }
2730
- },
2731
- {
2732
- types: ["url"],
2733
- style: {
2734
- color: "hsl(198, 99%, 37%)"
2735
- }
2736
- },
2737
- {
2738
- types: ["deleted"],
2739
- style: {
2740
- textDecorationLine: "line-through"
2741
- }
2742
- },
2743
- {
2744
- types: ["inserted"],
2745
- style: {
2746
- textDecorationLine: "underline"
2747
- }
2748
- },
2749
- {
2750
- types: ["italic"],
2751
- style: {
2752
- fontStyle: "italic"
2753
- }
2754
- },
2755
- {
2756
- types: ["important", "bold"],
2757
- style: {
2758
- fontWeight: "bold"
2759
- }
2760
- },
2761
- {
2762
- types: ["important"],
2763
- style: {
2764
- color: "hsl(230, 8%, 24%)"
2765
- }
2766
- }
2767
- ]
2768
- }, Tt = Ft, Rt = (e, t) => {
2769
- const { plain: r } = e, i = e.styles.reduce((l, b) => {
2770
- const { languages: c, style: d } = b;
2771
- return c && !c.includes(t) || b.types.forEach((p) => {
2772
- const y = O(O({}, l[p]), d);
2773
- l[p] = y;
2774
- }), l;
2775
- }, {});
2776
- return i.root = r, i.plain = J(O({}, r), { backgroundColor: void 0 }), i;
2777
- }, ce = Rt, It = (e, t) => {
2778
- const [r, i] = X(
2779
- ce(t, e)
2780
- ), l = M(), b = M();
2781
- return G(() => {
2782
- (t !== l.current || e !== b.current) && (l.current = t, b.current = e, i(ce(t, e)));
2783
- }, [e, t]), r;
2784
- }, Lt = (e) => Z(
2785
- (t) => {
2786
- var r = t, { className: i, style: l, line: b } = r, c = ke(r, ["className", "style", "line"]);
2787
- const d = J(O({}, c), {
2788
- className: be("token-line", i)
2789
- });
2790
- return typeof e == "object" && "plain" in e && (d.style = e.plain), typeof l == "object" && (d.style = O(O({}, d.style || {}), l)), d;
2791
- },
2792
- [e]
2793
- ), Ct = (e) => {
2794
- const t = Z(
2795
- ({ types: r, empty: i }) => {
2796
- if (e != null) {
2797
- {
2798
- if (r.length === 1 && r[0] === "plain")
2799
- return i != null ? { display: "inline-block" } : void 0;
2800
- if (r.length === 1 && i != null)
2801
- return e[r[0]];
2802
- }
2803
- return Object.assign(
2804
- i != null ? { display: "inline-block" } : {},
2805
- ...r.map((l) => e[l])
2806
- );
2807
- }
2808
- },
2809
- [e]
2810
- );
2811
- return Z(
2812
- (r) => {
2813
- var i = r, { token: l, className: b, style: c } = i, d = ke(i, ["token", "className", "style"]);
2814
- const p = J(O({}, d), {
2815
- className: be("token", ...l.types, b),
2816
- children: l.content,
2817
- style: t(l)
2818
- });
2819
- return c != null && (p.style = O(O({}, p.style || {}), c)), p;
2820
- },
2821
- [t]
2822
- );
2823
- }, Ot = /\r\n|\r|\n/, pe = (e) => {
2824
- e.length === 0 ? e.push({
2825
- types: ["plain"],
2826
- content: `
2827
- `,
2828
- empty: !0
2829
- }) : e.length === 1 && e[0].content === "" && (e[0].content = `
2830
- `, e[0].empty = !0);
2831
- }, de = (e, t) => {
2832
- const r = e.length;
2833
- return r > 0 && e[r - 1] === t ? e : e.concat(t);
2834
- }, Nt = (e) => {
2835
- const t = [[]], r = [e], i = [0], l = [e.length];
2836
- let b = 0, c = 0, d = [];
2837
- const p = [d];
2838
- for (; c > -1; ) {
2839
- for (; (b = i[c]++) < l[c]; ) {
2840
- let y, h = t[c];
2841
- const v = r[c][b];
2842
- if (typeof v == "string" ? (h = c > 0 ? h : ["plain"], y = v) : (h = de(h, v.type), v.alias && (h = de(h, v.alias)), y = v.content), typeof y != "string") {
2843
- c++, t.push(h), r.push(y), i.push(0), l.push(y.length);
2844
- continue;
2845
- }
2846
- const x = y.split(Ot), a = x.length;
2847
- d.push({
2848
- types: h,
2849
- content: x[0]
2850
- });
2851
- for (let n = 1; n < a; n++)
2852
- pe(d), p.push(d = []), d.push({
2853
- types: h,
2854
- content: x[n]
2855
- });
2856
- }
2857
- c--, t.pop(), r.pop(), i.pop(), l.pop();
2858
- }
2859
- return pe(d), p;
2860
- }, ge = Nt, Dt = ({ prism: e, code: t, grammar: r, language: i }) => {
2861
- const l = M(e);
2862
- return ne(() => {
2863
- if (r == null)
2864
- return ge([t]);
2865
- const b = {
2866
- code: t,
2867
- grammar: r,
2868
- language: i,
2869
- tokens: []
2870
- };
2871
- return l.current.hooks.run("before-tokenize", b), b.tokens = l.current.tokenize(t, r), l.current.hooks.run("after-tokenize", b), ge(b.tokens);
2872
- }, [t, r, i]);
2873
- }, Bt = ({
2874
- children: e,
2875
- language: t,
2876
- code: r,
2877
- theme: i,
2878
- prism: l
2879
- }) => {
2880
- const b = t.toLowerCase(), c = It(b, i), d = Lt(c), p = Ct(c), y = l.languages[b], h = Dt({ prism: l, language: b, code: r, grammar: y });
2881
- return e({
2882
- tokens: h,
2883
- className: `prism-code language-${b}`,
2884
- style: c != null ? c.root : {},
2885
- getLineProps: d,
2886
- getTokenProps: p
2887
- });
2888
- }, jt = (e) => Te(Bt, J(O({}, e), {
2889
- prism: e.prism || o,
2890
- theme: e.theme || we,
2891
- code: e.code,
2892
- language: e.language
2893
- }));
2894
- /*! Bundled license information:
2895
-
2896
- prismjs/prism.js:
2897
- (**
2898
- * Prism: Lightweight, robust, elegant syntax highlighting
2899
- *
2900
- * @license MIT <https://opensource.org/licenses/MIT>
2901
- * @author Lea Verou <https://lea.verou.me>
2902
- * @namespace
2903
- * @public
2904
- *)
2905
- */
2906
- const xe = ye([
2907
- !1,
2908
- () => {
2909
- }
2910
- ]), $t = () => {
2911
- const e = fe(xe);
2912
- if (!e)
2913
- throw new Error("useTheme must be used within a ThemeProvider");
2914
- return e;
2915
- }, qt = (e) => {
2916
- const [t, r] = X(!1);
2917
- G(() => {
2918
- const b = localStorage.getItem("theme"), c = window.matchMedia("(prefers-color-scheme: dark)"), d = b === "dark" || !b && c.matches;
2919
- r(d);
2920
- }, [t]);
2921
- const i = Z(() => {
2922
- const b = !t;
2923
- document.documentElement.classList.toggle("dark", b), localStorage.setItem("theme", b ? "dark" : "light"), r(b);
2924
- }, [t]), l = [t, i];
2925
- return /* @__PURE__ */ k.jsx(xe.Provider, { value: l, ...e });
2926
- };
2927
- globalThis.Prism = o, import("./prism-bash.min-DadFsM4Z.js"), import("./prism-ruby.min-C7LwcKyz.js"), import("./prism-markup-templating-DZrrEs0A.js"), import("./prism-php.min-o7FpoMP_.js"), import("./prism-json.min-B1GJqK1k.js"), import("./prism-java.min-d5iT_mOd.js"), import("./prism-csharp.min-Yizuc34Y.js"), import("./prism-objectivec.min-BXSWqpJJ.js");
2928
- const Pt = ({
2929
- copyable: e = !0,
2930
- ...t
2931
- }) => {
2932
- const [r] = $t(), [i, l] = X(!1);
2933
- return t.code ? /* @__PURE__ */ k.jsx(jt, { theme: r ? ae.vsDark : ae.github, ...t, children: ({ className: b, style: c, tokens: d, getLineProps: p, getTokenProps: y }) => /* @__PURE__ */ k.jsxs(
2934
- "pre",
2935
- {
2936
- className: z(
2937
- "group relative",
2938
- b,
2939
- t.className,
2940
- t.noBackground && "!bg-transparent",
2941
- t.wrapLines && "whitespace-pre-wrap break-words"
2942
- ),
2943
- style: c,
2944
- children: [
2945
- e && /* @__PURE__ */ k.jsx(
2946
- "button",
2947
- {
2948
- type: "button",
2949
- "aria-label": "Copy code",
2950
- className: "absolute top-1.5 right-3 p-3 opacity-0 group-hover:opacity-100 transition hover:bg-zinc-500/10 hover:dark:bg-zinc-700/25 rounded-lg text-sm text-gray-400 hover:text-gray-600 dark:text-gray-500 dark:hover:text-gray-400",
2951
- disabled: i,
2952
- onClick: () => {
2953
- l(!0), navigator.clipboard.writeText(
2954
- d.map((h) => h.map(({ content: g }) => g).join("")).join(`
2955
- `)
2956
- ), setTimeout(() => l(!1), 2e3);
2957
- },
2958
- children: i ? /* @__PURE__ */ k.jsx(_e, { className: "text-emerald-600", size: 18 }) : /* @__PURE__ */ k.jsx(Re, { size: 18 })
2959
- }
2960
- ),
2961
- t.showLanguageIndicator && /* @__PURE__ */ k.jsx("span", { className: "absolute top-1.5 right-3 text-[11px] font-mono text-muted-foreground transition group-hover:opacity-0", children: t.language }),
2962
- d.map((h, g) => /* @__PURE__ */ k.jsx("div", { ...p({ line: h }), children: h.map((v, x) => /* @__PURE__ */ k.jsx("span", { ...y({ token: v }) }, x)) }, g))
2963
- ]
2964
- }
2965
- ) }) : null;
2966
- }, Ht = {
2967
- img: (e) => /\.(mp4|webm|mov|avi)$/.test(e.src ?? "") ? /* @__PURE__ */ k.jsx("video", { src: e.src, controls: !0, playsInline: !0, autoPlay: !0, loop: !0 }) : /* @__PURE__ */ k.jsx("img", { ...e, className: "rounded-md" }),
2968
- h1: ({ children: e, id: t }) => /* @__PURE__ */ k.jsx(P, { level: 1, id: t, children: e }),
2969
- h2: ({ children: e, id: t }) => /* @__PURE__ */ k.jsx(P, { level: 2, id: t, children: e }),
2970
- h3: ({ children: e, id: t }) => /* @__PURE__ */ k.jsx(P, { level: 3, id: t, children: e }),
2971
- h4: ({ children: e, id: t }) => /* @__PURE__ */ k.jsx(P, { level: 4, id: t, children: e }),
2972
- h5: ({ children: e, id: t }) => /* @__PURE__ */ k.jsx(P, { level: 5, id: t, children: e }),
2973
- h6: ({ children: e, id: t }) => /* @__PURE__ */ k.jsx(P, { level: 6, id: t, children: e }),
2974
- a: ({ href: e, ...t }) => e && !e.startsWith("http") ? /* @__PURE__ */ k.jsx(Fe, { to: e, relative: "path", ...t }) : /* @__PURE__ */ k.jsx("a", { href: e, target: "_blank", ...t, rel: "noreferrer" }),
2975
- Callout: j,
2976
- tip: (e) => /* @__PURE__ */ k.jsx(j, { type: "tip", ...e }),
2977
- info: (e) => /* @__PURE__ */ k.jsx(j, { type: "info", ...e }),
2978
- note: (e) => /* @__PURE__ */ k.jsx(j, { type: "note", ...e }),
2979
- caution: (e) => /* @__PURE__ */ k.jsx(j, { type: "caution", ...e }),
2980
- warning: (e) => /* @__PURE__ */ k.jsx(j, { type: "caution", ...e }),
2981
- danger: (e) => /* @__PURE__ */ k.jsx(j, { type: "danger", ...e }),
2982
- pre: ({ children: e }) => /* @__PURE__ */ k.jsx(k.Fragment, { children: e }),
2983
- code: ({ className: e, children: t, ...r }) => {
2984
- if (!r.inline) {
2985
- const l = e == null ? void 0 : e.match(/language?-(\w+)/);
2986
- return /* @__PURE__ */ k.jsx(
2987
- Pt,
2988
- {
2989
- language: (l == null ? void 0 : l[1]) ?? "markup",
2990
- className: "rounded-xl overflow-x-auto p-4 border border-border dark:!bg-foreground/10 dark:border-transparent",
2991
- showLanguageIndicator: !0,
2992
- code: String(t).trim()
2993
- }
2994
- );
2995
- }
2996
- return /* @__PURE__ */ k.jsx(
2997
- "code",
2998
- {
2999
- className: z(
3000
- e,
3001
- "font-mono border border-border p-1 py-0.5 rounded bg-border/50 dark:bg-border/70 whitespace-nowrap"
3002
- ),
3003
- children: t
3004
- }
3005
- );
3006
- }
3007
- };
3008
- export {
3009
- j as C,
3010
- P as H,
3011
- Ht as M,
3012
- Pt as S,
3013
- qt as T,
3014
- Zt as V,
3015
- Ne as a,
3016
- Ce as b,
3017
- $t as u
3018
- };
3019
- //# sourceMappingURL=MdxComponents-C0R6zobS.js.map