zudoku 0.43.0 → 0.43.2

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 (181) hide show
  1. package/dist/config/validators/common.d.ts +193 -0
  2. package/dist/config/validators/common.js +2 -0
  3. package/dist/config/validators/common.js.map +1 -1
  4. package/dist/config/validators/validate.d.ts +70 -0
  5. package/dist/lib/components/Banner.js +1 -1
  6. package/dist/lib/components/Banner.js.map +1 -1
  7. package/dist/lib/components/Heading.d.ts +2 -2
  8. package/dist/lib/components/Heading.js +1 -1
  9. package/dist/lib/components/Heading.js.map +1 -1
  10. package/dist/lib/components/Layout.js +1 -1
  11. package/dist/lib/components/Layout.js.map +1 -1
  12. package/dist/lib/components/Main.js +3 -2
  13. package/dist/lib/components/Main.js.map +1 -1
  14. package/dist/lib/components/MobileTopNavigation.js +1 -1
  15. package/dist/lib/components/MobileTopNavigation.js.map +1 -1
  16. package/dist/lib/components/Pagination.js +2 -2
  17. package/dist/lib/components/Pagination.js.map +1 -1
  18. package/dist/lib/components/Search.js +1 -1
  19. package/dist/lib/components/Search.js.map +1 -1
  20. package/dist/lib/components/TopNavigation.js +1 -1
  21. package/dist/lib/components/TopNavigation.js.map +1 -1
  22. package/dist/lib/components/navigation/PoweredByZudoku.js +1 -1
  23. package/dist/lib/components/navigation/PoweredByZudoku.js.map +1 -1
  24. package/dist/lib/components/navigation/Sidebar.js +1 -1
  25. package/dist/lib/components/navigation/Sidebar.js.map +1 -1
  26. package/dist/lib/components/navigation/SidebarCategory.js +9 -5
  27. package/dist/lib/components/navigation/SidebarCategory.js.map +1 -1
  28. package/dist/lib/components/navigation/SidebarItem.js +2 -3
  29. package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
  30. package/dist/lib/components/navigation/Toc.js +2 -2
  31. package/dist/lib/components/navigation/Toc.js.map +1 -1
  32. package/dist/lib/core/ZudokuContext.d.ts +2 -1
  33. package/dist/lib/core/ZudokuContext.js.map +1 -1
  34. package/dist/lib/oas/parser/upgrade/index.d.ts +1 -0
  35. package/dist/lib/oas/parser/upgrade/index.js +76 -24
  36. package/dist/lib/oas/parser/upgrade/index.js.map +1 -1
  37. package/dist/lib/plugins/openapi/CollapsibleCode.js +1 -1
  38. package/dist/lib/plugins/openapi/OperationList.js +1 -1
  39. package/dist/lib/plugins/openapi/OperationListItem.js +4 -2
  40. package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
  41. package/dist/lib/plugins/openapi/SchemaList.js +1 -1
  42. package/dist/lib/plugins/openapi/client/useCreateQuery.d.ts +5 -0
  43. package/dist/lib/plugins/openapi/client/useCreateQuery.js +10 -4
  44. package/dist/lib/plugins/openapi/client/useCreateQuery.js.map +1 -1
  45. package/dist/lib/plugins/openapi/index.d.ts +3 -4
  46. package/dist/lib/plugins/openapi/index.js +6 -4
  47. package/dist/lib/plugins/openapi/index.js.map +1 -1
  48. package/dist/lib/plugins/openapi/interfaces.d.ts +4 -3
  49. package/dist/lib/plugins/openapi/playground/IdentitySelector.js +1 -1
  50. package/dist/lib/plugins/openapi/playground/Playground.js +2 -2
  51. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  52. package/dist/lib/plugins/openapi/playground/QueryParams.d.ts +1 -1
  53. package/dist/lib/plugins/openapi/playground/QueryParams.js +1 -1
  54. package/dist/lib/plugins/openapi/playground/SubmitButton.d.ts +1 -1
  55. package/dist/lib/plugins/openapi/playground/SubmitButton.js +1 -1
  56. package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js +1 -1
  57. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js +1 -1
  58. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js +1 -1
  59. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js +2 -2
  60. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js.map +1 -1
  61. package/dist/lib/plugins/openapi/util/getRoutes.js +33 -3
  62. package/dist/lib/plugins/openapi/util/getRoutes.js.map +1 -1
  63. package/dist/lib/ui/SyntaxHighlight.js +1 -1
  64. package/dist/lib/ui/SyntaxHighlight.js.map +1 -1
  65. package/dist/lib/util/traverse.d.ts +1 -1
  66. package/dist/lib/util/traverse.js +6 -5
  67. package/dist/lib/util/traverse.js.map +1 -1
  68. package/dist/vite/build.js +1 -0
  69. package/dist/vite/build.js.map +1 -1
  70. package/dist/vite/dev-server.js +5 -2
  71. package/dist/vite/dev-server.js.map +1 -1
  72. package/dist/vite/html.d.ts +6 -2
  73. package/dist/vite/html.js +11 -8
  74. package/dist/vite/html.js.map +1 -1
  75. package/dist/vite/plugin-api.js +2 -2
  76. package/dist/vite/plugin-api.js.map +1 -1
  77. package/lib/{AuthenticationPlugin-ByDF051g.js → AuthenticationPlugin-BxoEZCSJ.js} +4 -4
  78. package/lib/{AuthenticationPlugin-ByDF051g.js.map → AuthenticationPlugin-BxoEZCSJ.js.map} +1 -1
  79. package/lib/{Markdown-mFpg_n9p.js → Markdown-DvdVn1O7.js} +1839 -1836
  80. package/lib/Markdown-DvdVn1O7.js.map +1 -0
  81. package/lib/{MdxPage-Cm7atiW3.js → MdxPage-DUcuusMU.js} +7 -7
  82. package/lib/{MdxPage-Cm7atiW3.js.map → MdxPage-DUcuusMU.js.map} +1 -1
  83. package/lib/{OasProvider-DOs0v9u7.js → OasProvider-CjMm8pB7.js} +8 -9
  84. package/lib/{OasProvider-DOs0v9u7.js.map → OasProvider-CjMm8pB7.js.map} +1 -1
  85. package/lib/{OperationList-CKac6iap.js → OperationList-BhJcPgGi.js} +1269 -1261
  86. package/lib/{OperationList-CKac6iap.js.map → OperationList-BhJcPgGi.js.map} +1 -1
  87. package/lib/Pagination-BgQxwq5j.js +48 -0
  88. package/lib/Pagination-BgQxwq5j.js.map +1 -0
  89. package/lib/{RouteGuard-DRtEu9nh.js → RouteGuard-D2gX29iI.js} +3 -3
  90. package/lib/{RouteGuard-DRtEu9nh.js.map → RouteGuard-D2gX29iI.js.map} +1 -1
  91. package/lib/{SchemaList-BTX2mRMW.js → SchemaList-BexhT_Z0.js} +22 -23
  92. package/lib/{SchemaList-BTX2mRMW.js.map → SchemaList-BexhT_Z0.js.map} +1 -1
  93. package/lib/{SchemaView-BYRn_-2l.js → SchemaView-Dt_-u8rW.js} +123 -146
  94. package/lib/SchemaView-Dt_-u8rW.js.map +1 -0
  95. package/lib/{Select-CT64Ou40.js → Select-CYaEBIYK.js} +3 -3
  96. package/lib/{Select-CT64Ou40.js.map → Select-CYaEBIYK.js.map} +1 -1
  97. package/lib/{SlotletProvider-CS_nO-XT.js → SlotletProvider-wWbHYqWf.js} +7 -7
  98. package/lib/SlotletProvider-wWbHYqWf.js.map +1 -0
  99. package/lib/{SyntaxHighlight-CxhyyMkF.js → SyntaxHighlight-o7q0acut.js} +81 -81
  100. package/lib/{SyntaxHighlight-CxhyyMkF.js.map → SyntaxHighlight-o7q0acut.js.map} +1 -1
  101. package/lib/{Toc-D_tV8_Ri.js → Toc-BnN4zBb3.js} +17 -17
  102. package/lib/Toc-BnN4zBb3.js.map +1 -0
  103. package/lib/{chunk-BAXFHI7N-BVBOl9s0.js → chunk-BAXFHI7N-BLTsN6tl.js} +679 -659
  104. package/lib/{chunk-BAXFHI7N-BVBOl9s0.js.map → chunk-BAXFHI7N-BLTsN6tl.js.map} +1 -1
  105. package/lib/{circular-ByJI6Mci.js → circular-BWEIet3w.js} +4616 -5567
  106. package/lib/circular-BWEIet3w.js.map +1 -0
  107. package/lib/{createServer-IW7v5hWm.js → createServer-BQD3Eeqb.js} +1998 -1970
  108. package/lib/createServer-BQD3Eeqb.js.map +1 -0
  109. package/lib/{hook-CldJlP5c.js → hook-8GM2HXNM.js} +24 -24
  110. package/lib/{hook-CldJlP5c.js.map → hook-8GM2HXNM.js.map} +1 -1
  111. package/lib/index-CFf9AN-y.js +3208 -0
  112. package/lib/index-CFf9AN-y.js.map +1 -0
  113. package/lib/{index-DnQftvP4.js → index-DGNSSXgR.js} +77 -69
  114. package/lib/{index-DnQftvP4.js.map → index-DGNSSXgR.js.map} +1 -1
  115. package/lib/{mutation-DBQh7AOZ.js → mutation-Bq5bn7Hf.js} +2 -2
  116. package/lib/{mutation-DBQh7AOZ.js.map → mutation-Bq5bn7Hf.js.map} +1 -1
  117. package/lib/processors/traverse.js +9 -7
  118. package/lib/processors/traverse.js.map +1 -1
  119. package/lib/ui/SyntaxHighlight.js +1 -1
  120. package/lib/{useExposedProps-DbIZXspi.js → useExposedProps-DmTJxEXG.js} +2 -2
  121. package/lib/{useExposedProps-DbIZXspi.js.map → useExposedProps-DmTJxEXG.js.map} +1 -1
  122. package/lib/zudoku.auth-auth0.js +1 -1
  123. package/lib/zudoku.auth-clerk.js +2 -2
  124. package/lib/zudoku.auth-openid.js +3 -3
  125. package/lib/zudoku.components.js +6 -6
  126. package/lib/zudoku.hooks.js +1 -1
  127. package/lib/zudoku.plugin-api-catalog.js +5 -5
  128. package/lib/zudoku.plugin-api-keys.js +4 -4
  129. package/lib/zudoku.plugin-custom-pages.js +2 -2
  130. package/lib/zudoku.plugin-markdown.js +1 -1
  131. package/lib/zudoku.plugin-openapi.js +6 -5
  132. package/lib/zudoku.plugin-redirect.js +1 -1
  133. package/lib/zudoku.plugin-search-pagefind.js +3 -3
  134. package/package.json +3 -3
  135. package/src/app/demo.html +1 -1
  136. package/src/app/main.css +2 -2
  137. package/src/lib/components/Banner.tsx +1 -1
  138. package/src/lib/components/Heading.tsx +3 -3
  139. package/src/lib/components/Layout.tsx +1 -4
  140. package/src/lib/components/Main.tsx +4 -3
  141. package/src/lib/components/MobileTopNavigation.tsx +2 -2
  142. package/src/lib/components/Pagination.tsx +3 -3
  143. package/src/lib/components/Search.tsx +1 -1
  144. package/src/lib/components/TopNavigation.tsx +1 -1
  145. package/src/lib/components/navigation/PoweredByZudoku.tsx +6 -1
  146. package/src/lib/components/navigation/Sidebar.tsx +1 -1
  147. package/src/lib/components/navigation/SidebarCategory.tsx +9 -5
  148. package/src/lib/components/navigation/SidebarItem.tsx +2 -3
  149. package/src/lib/components/navigation/Toc.tsx +4 -4
  150. package/src/lib/core/ZudokuContext.ts +2 -1
  151. package/src/lib/oas/parser/upgrade/index.ts +97 -27
  152. package/src/lib/plugins/openapi/CollapsibleCode.tsx +2 -2
  153. package/src/lib/plugins/openapi/OperationList.tsx +1 -1
  154. package/src/lib/plugins/openapi/OperationListItem.tsx +15 -6
  155. package/src/lib/plugins/openapi/SchemaList.tsx +1 -1
  156. package/src/lib/plugins/openapi/client/useCreateQuery.ts +23 -4
  157. package/src/lib/plugins/openapi/index.tsx +8 -7
  158. package/src/lib/plugins/openapi/interfaces.ts +4 -3
  159. package/src/lib/plugins/openapi/playground/IdentitySelector.tsx +2 -2
  160. package/src/lib/plugins/openapi/playground/Playground.tsx +5 -5
  161. package/src/lib/plugins/openapi/playground/QueryParams.tsx +2 -2
  162. package/src/lib/plugins/openapi/playground/SubmitButton.tsx +2 -2
  163. package/src/lib/plugins/openapi/playground/result-panel/RequestTab.tsx +2 -2
  164. package/src/lib/plugins/openapi/playground/result-panel/ResponseTab.tsx +1 -1
  165. package/src/lib/plugins/openapi/playground/result-panel/ResultPanel.tsx +1 -1
  166. package/src/lib/plugins/openapi/schema/SchemaPropertyItem.tsx +2 -2
  167. package/src/lib/plugins/openapi/util/getRoutes.tsx +67 -3
  168. package/src/lib/ui/SyntaxHighlight.tsx +2 -2
  169. package/src/lib/util/traverse.ts +8 -5
  170. package/lib/Markdown-mFpg_n9p.js.map +0 -1
  171. package/lib/Pagination-DLPL5z77.js +0 -48
  172. package/lib/Pagination-DLPL5z77.js.map +0 -1
  173. package/lib/SchemaView-BYRn_-2l.js.map +0 -1
  174. package/lib/SlotletProvider-CS_nO-XT.js.map +0 -1
  175. package/lib/Toc-D_tV8_Ri.js.map +0 -1
  176. package/lib/circular-ByJI6Mci.js.map +0 -1
  177. package/lib/context-Lrf2Y9bR.js +0 -22
  178. package/lib/context-Lrf2Y9bR.js.map +0 -1
  179. package/lib/createServer-IW7v5hWm.js.map +0 -1
  180. package/lib/index-DuB48L78.js +0 -2184
  181. package/lib/index-DuB48L78.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  import { j as _ } from "./jsx-runtime-C5mzlN2N.js";
2
- import { createElement as de, useCallback as K, useMemo as ye, memo as fe, useState as be } from "react";
2
+ import { createElement as ge, useCallback as K, useMemo as ye, memo as fe, useState as be } from "react";
3
3
  import { a as se, c as ee } from "./cn-qaFjX9_3.js";
4
4
  import { CheckIcon as me, CopyIcon as he } from "lucide-react";
5
5
  import { z as ve } from "./index-DwT-v3zK.js";
@@ -100,8 +100,8 @@ var ke = Object.create, Z = Object.defineProperty, we = Object.defineProperties,
100
100
  return s[l];
101
101
  c = /** @type {Record<string, any>} */
102
102
  {}, s[l] = c;
103
- for (var d in a)
104
- a.hasOwnProperty(d) && (c[d] = n(a[d], s));
103
+ for (var g in a)
104
+ a.hasOwnProperty(g) && (c[g] = n(a[g], s));
105
105
  return (
106
106
  /** @type {any} */
107
107
  c
@@ -300,28 +300,28 @@ var ke = Object.create, Z = Object.defineProperty, we = Object.defineProperties,
300
300
  insertBefore: function(n, a, s, c) {
301
301
  c = c || /** @type {any} */
302
302
  u.languages;
303
- var l = c[n], d = {};
303
+ var l = c[n], g = {};
304
304
  for (var k in l)
305
305
  if (l.hasOwnProperty(k)) {
306
306
  if (k == a)
307
307
  for (var E in s)
308
- s.hasOwnProperty(E) && (d[E] = s[E]);
309
- s.hasOwnProperty(k) || (d[k] = l[k]);
308
+ s.hasOwnProperty(E) && (g[E] = s[E]);
309
+ s.hasOwnProperty(k) || (g[k] = l[k]);
310
310
  }
311
311
  var A = c[n];
312
- return c[n] = d, u.languages.DFS(u.languages, function(x, F) {
313
- F === A && x != n && (this[x] = d);
314
- }), d;
312
+ return c[n] = g, u.languages.DFS(u.languages, function(x, F) {
313
+ F === A && x != n && (this[x] = g);
314
+ }), g;
315
315
  },
316
316
  // Traverse a language definition with Depth First Search
317
317
  DFS: function n(a, s, c, l) {
318
318
  l = l || {};
319
- var d = u.util.objId;
319
+ var g = u.util.objId;
320
320
  for (var k in a)
321
321
  if (a.hasOwnProperty(k)) {
322
322
  s.call(a, k, a[k], c || k);
323
323
  var E = a[k], A = u.util.type(E);
324
- A === "Object" && !l[d(E)] ? (l[d(E)] = !0, n(E, s, null, l)) : A === "Array" && !l[d(E)] && (l[d(E)] = !0, n(E, s, k, l));
324
+ A === "Object" && !l[g(E)] ? (l[g(E)] = !0, n(E, s, null, l)) : A === "Array" && !l[g(E)] && (l[g(E)] = !0, n(E, s, k, l));
325
325
  }
326
326
  }
327
327
  },
@@ -388,7 +388,7 @@ var ke = Object.create, Z = Object.defineProperty, we = Object.defineProperties,
388
388
  delete a.rest;
389
389
  }
390
390
  var l = new b();
391
- return y(l, l.head, n), g(n, l, a, l.head, 0), w(l);
391
+ return y(l, l.head, n), d(n, l, a, l.head, 0), w(l);
392
392
  },
393
393
  /**
394
394
  * @namespace
@@ -450,8 +450,8 @@ var ke = Object.create, Z = Object.defineProperty, we = Object.defineProperties,
450
450
  classes: ["token", a.type],
451
451
  attributes: {},
452
452
  language: s
453
- }, d = a.alias;
454
- d && (Array.isArray(d) ? Array.prototype.push.apply(l.classes, d) : l.classes.push(d)), u.hooks.run("wrap", l);
453
+ }, g = a.alias;
454
+ g && (Array.isArray(g) ? Array.prototype.push.apply(l.classes, g) : l.classes.push(g)), u.hooks.run("wrap", l);
455
455
  var k = "";
456
456
  for (var E in l.attributes)
457
457
  k += " " + E + '="' + (l.attributes[E] || "").replace(/"/g, "&quot;") + '"';
@@ -461,25 +461,25 @@ var ke = Object.create, Z = Object.defineProperty, we = Object.defineProperties,
461
461
  n.lastIndex = a;
462
462
  var l = n.exec(s);
463
463
  if (l && c && l[1]) {
464
- var d = l[1].length;
465
- l.index += d, l[0] = l[0].slice(d);
464
+ var g = l[1].length;
465
+ l.index += g, l[0] = l[0].slice(g);
466
466
  }
467
467
  return l;
468
468
  }
469
- function g(n, a, s, c, l, d) {
469
+ function d(n, a, s, c, l, g) {
470
470
  for (var k in s)
471
471
  if (!(!s.hasOwnProperty(k) || !s[k])) {
472
472
  var E = s[k];
473
473
  E = Array.isArray(E) ? E : [E];
474
474
  for (var A = 0; A < E.length; ++A) {
475
- if (d && d.cause == k + "," + A)
475
+ if (g && g.cause == k + "," + A)
476
476
  return;
477
477
  var x = E[A], F = x.inside, T = !!x.lookbehind, D = !!x.greedy, C = x.alias;
478
478
  if (D && !x.pattern.global) {
479
479
  var L = x.pattern.toString().match(/[imsuy]*$/)[0];
480
480
  x.pattern = RegExp(x.pattern.source, L + "g");
481
481
  }
482
- for (var Q = x.pattern || x, S = c.next, O = l; S !== a.tail && !(d && O >= d.reach); O += S.value.length, S = S.next) {
482
+ for (var Q = x.pattern || x, S = c.next, O = l; S !== a.tail && !(g && O >= g.reach); O += S.value.length, S = S.next) {
483
483
  var $ = S.value;
484
484
  if (a.length > n.length)
485
485
  return;
@@ -499,16 +499,16 @@ var ke = Object.create, Z = Object.defineProperty, we = Object.defineProperties,
499
499
  } else if (I = p(Q, 0, $, T), !I)
500
500
  continue;
501
501
  var z = I.index, M = I[0], W = $.slice(0, z), J = $.slice(z + M.length), H = O + $.length;
502
- d && H > d.reach && (d.reach = H);
502
+ g && H > g.reach && (g.reach = H);
503
503
  var U = S.prev;
504
504
  W && (U = y(a, U, W), O += W.length), v(a, U, j);
505
- var ge = new m(k, F ? u.tokenize(M, F) : M, C, M);
506
- if (S = y(a, U, ge), J && y(a, S, J), j > 1) {
505
+ var de = new m(k, F ? u.tokenize(M, F) : M, C, M);
506
+ if (S = y(a, U, de), J && y(a, S, J), j > 1) {
507
507
  var Y = {
508
508
  cause: k + "," + A,
509
509
  reach: H
510
510
  };
511
- g(n, a, s, S.prev, O, Y), d && Y.reach > d.reach && (d.reach = Y.reach);
511
+ d(n, a, s, S.prev, O, Y), g && Y.reach > g.reach && (g.reach = Y.reach);
512
512
  }
513
513
  }
514
514
  }
@@ -563,8 +563,8 @@ o.languages.markup = { comment: { pattern: /<!--(?:(?!<!--)[\s\S])*?-->/, greedy
563
563
  if (m = e.languages[f]) {
564
564
  var m, p = m[u];
565
565
  if ((p = p || (m = e.languages.insertBefore(f, "comment", { "doc-comment": { pattern: /(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/, lookbehind: !0, alias: "comment" } }))[u]) instanceof RegExp && (p = m[u] = { pattern: p }), Array.isArray(p))
566
- for (var g = 0, b = p.length; g < b; g++)
567
- p[g] instanceof RegExp && (p[g] = { pattern: p[g] }), h(p[g]);
566
+ for (var d = 0, b = p.length; d < b; d++)
567
+ p[d] instanceof RegExp && (p[d] = { pattern: p[d] }), h(p[d]);
568
568
  else
569
569
  h(p);
570
570
  }
@@ -582,12 +582,12 @@ o.languages.markup = { comment: { pattern: /<!--(?:(?!<!--)[\s\S])*?-->/, greedy
582
582
  }), h = /"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;
583
583
  function u(m, p) {
584
584
  p = (p || "").replace(/m/g, "") + "m";
585
- var g = /([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g, function() {
585
+ var d = /([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g, function() {
586
586
  return i;
587
587
  }).replace(/<<value>>/g, function() {
588
588
  return m;
589
589
  });
590
- return RegExp(g, p);
590
+ return RegExp(d, p);
591
591
  }
592
592
  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() {
593
593
  return i;
@@ -598,41 +598,41 @@ o.languages.markup = { comment: { pattern: /<!--(?:(?!<!--)[\s\S])*?-->/, greedy
598
598
  })), lookbehind: !0, greedy: !0, alias: "atrule" }, directive: { pattern: /(^[ \t]*)%.+/m, lookbehind: !0, alias: "important" }, datetime: { pattern: u(/\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: u(/false|true/.source, "i"), lookbehind: !0, alias: "important" }, null: { pattern: u(/null|~/.source, "i"), lookbehind: !0, alias: "important" }, string: { pattern: u(h), lookbehind: !0, greedy: !0 }, number: { pattern: u(/[+-]?(?: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;
599
599
  }(o), function(e) {
600
600
  var t = /(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;
601
- function r(g) {
602
- return g = g.replace(/<inner>/g, function() {
601
+ function r(d) {
602
+ return d = d.replace(/<inner>/g, function() {
603
603
  return t;
604
- }), RegExp(/((?:^|[^\\])(?:\\{2})*)/.source + "(?:" + g + ")");
604
+ }), RegExp(/((?:^|[^\\])(?:\\{2})*)/.source + "(?:" + d + ")");
605
605
  }
606
606
  var i = /(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source, f = /\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g, function() {
607
607
  return i;
608
- }), h = /\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source, u = (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("^" + f + h + "(?:" + f + ")*", "m"), inside: { "table-data-rows": { pattern: RegExp("^(" + f + h + ")(?:" + f + ")*$"), lookbehind: !0, inside: { "table-data": { pattern: RegExp(i), inside: e.languages.markdown }, punctuation: /\|/ } }, "table-line": { pattern: RegExp("^(" + f + ")" + h + "$"), lookbehind: !0, inside: { punctuation: /\||:?-{3,}:?/ } }, "table-header-row": { pattern: RegExp("^" + f + "$"), 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(g) {
608
+ }), h = /\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source, u = (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("^" + f + h + "(?:" + f + ")*", "m"), inside: { "table-data-rows": { pattern: RegExp("^(" + f + h + ")(?:" + f + ")*$"), lookbehind: !0, inside: { "table-data": { pattern: RegExp(i), inside: e.languages.markdown }, punctuation: /\|/ } }, "table-line": { pattern: RegExp("^(" + f + ")" + h + "$"), lookbehind: !0, inside: { punctuation: /\||:?-{3,}:?/ } }, "table-header-row": { pattern: RegExp("^" + f + "$"), 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(d) {
609
609
  ["url", "bold", "italic", "strike", "code-snippet"].forEach(function(b) {
610
- g !== b && (e.languages.markdown[g].inside.content.inside[b] = e.languages.markdown[b]);
610
+ d !== b && (e.languages.markdown[d].inside.content.inside[b] = e.languages.markdown[b]);
611
611
  });
612
- }), e.hooks.add("after-tokenize", function(g) {
613
- g.language !== "markdown" && g.language !== "md" || function b(y) {
612
+ }), e.hooks.add("after-tokenize", function(d) {
613
+ d.language !== "markdown" && d.language !== "md" || function b(y) {
614
614
  if (y && typeof y != "string")
615
615
  for (var v = 0, w = y.length; v < w; v++) {
616
616
  var n, a = y[v];
617
617
  a.type !== "code" ? b(a.content) : (n = a.content[1], a = a.content[3], n && a && n.type === "code-language" && a.type === "code-block" && typeof n.content == "string" && (n = n.content.replace(/\b#/g, "sharp").replace(/\b\+\+/g, "pp"), n = "language-" + (n = (/[a-z][\w-]*/i.exec(n) || [""])[0].toLowerCase()), a.alias ? typeof a.alias == "string" ? a.alias = [a.alias, n] : a.alias.push(n) : a.alias = [n]));
618
618
  }
619
- }(g.tokens);
620
- }), e.hooks.add("wrap", function(g) {
621
- if (g.type === "code-block") {
622
- for (var b = "", y = 0, v = g.classes.length; y < v; y++) {
623
- var w = g.classes[y], w = /language-(.+)/.exec(w);
619
+ }(d.tokens);
620
+ }), e.hooks.add("wrap", function(d) {
621
+ if (d.type === "code-block") {
622
+ for (var b = "", y = 0, v = d.classes.length; y < v; y++) {
623
+ var w = d.classes[y], w = /language-(.+)/.exec(w);
624
624
  if (w) {
625
625
  b = w[1];
626
626
  break;
627
627
  }
628
628
  }
629
629
  var n, a = e.languages[b];
630
- a ? g.content = e.highlight(function(s) {
630
+ a ? d.content = e.highlight(function(s) {
631
631
  return s = s.replace(u, ""), s = s.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi, function(c, l) {
632
- var d;
633
- return (l = l.toLowerCase())[0] === "#" ? (d = l[1] === "x" ? parseInt(l.slice(2), 16) : Number(l.slice(1)), p(d)) : m[l] || c;
632
+ var g;
633
+ return (l = l.toLowerCase())[0] === "#" ? (g = l[1] === "x" ? parseInt(l.slice(2), 16) : Number(l.slice(1)), p(g)) : m[l] || c;
634
634
  });
635
- }(g.content), a, b) : b && b !== "none" && e.plugins.autoloader && (n = "md-" + (/* @__PURE__ */ new Date()).valueOf() + "-" + Math.floor(1e16 * Math.random()), g.attributes.id = n, e.plugins.autoloader.loadLanguages(b, function() {
635
+ }(d.content), a, b) : b && b !== "none" && e.plugins.autoloader && (n = "md-" + (/* @__PURE__ */ new Date()).valueOf() + "-" + Math.floor(1e16 * Math.random()), d.attributes.id = n, e.plugins.autoloader.loadLanguages(b, function() {
636
636
  var s = document.getElementById(n);
637
637
  s && (s.innerHTML = e.highlight(s.textContent, e.languages[b], b));
638
638
  }));
@@ -662,8 +662,8 @@ o.languages.markup = { comment: { pattern: /<!--(?:(?!<!--)[\s\S])*?-->/, greedy
662
662
  var m = v(/^\{$/, /^\}$/);
663
663
  if (m !== -1)
664
664
  for (var p = r; p < m; p++) {
665
- var g = t[p];
666
- g.type === "variable" && 0 <= f.indexOf(g.content) && w(g, "variable-input");
665
+ var d = t[p];
666
+ d.type === "variable" && 0 <= f.indexOf(d.content) && w(d, "variable-input");
667
667
  }
668
668
  }
669
669
  }
@@ -682,11 +682,11 @@ o.languages.markup = { comment: { pattern: /<!--(?:(?!<!--)[\s\S])*?-->/, greedy
682
682
  }
683
683
  function v(n, a) {
684
684
  for (var s = 1, c = r; c < t.length; c++) {
685
- var l = t[c], d = l.content;
686
- if (l.type === "punctuation" && typeof d == "string") {
687
- if (n.test(d))
685
+ var l = t[c], g = l.content;
686
+ if (l.type === "punctuation" && typeof g == "string") {
687
+ if (n.test(g))
688
688
  s++;
689
- else if (a.test(d) && --s === 0)
689
+ else if (a.test(g) && --s === 0)
690
690
  return c;
691
691
  }
692
692
  }
@@ -709,29 +709,29 @@ o.languages.markup = { comment: { pattern: /<!--(?:(?!<!--)[\s\S])*?-->/, greedy
709
709
  var s = e.tokenize(y, { interpolation: { pattern: RegExp(h), lookbehind: !0 } }), n = 0, a = {}, s = m(s.map(function(l) {
710
710
  if (typeof l == "string")
711
711
  return l;
712
- for (var d, k, l = l.content; y.indexOf((k = n++, d = "___" + w.toUpperCase() + "_" + k + "___")) !== -1; )
712
+ for (var g, k, l = l.content; y.indexOf((k = n++, g = "___" + w.toUpperCase() + "_" + k + "___")) !== -1; )
713
713
  ;
714
- return a[d] = l, d;
714
+ return a[g] = l, g;
715
715
  }).join(""), v, w), c = Object.keys(a);
716
- return n = 0, function l(d) {
717
- for (var k = 0; k < d.length; k++) {
716
+ return n = 0, function l(g) {
717
+ for (var k = 0; k < g.length; k++) {
718
718
  if (n >= c.length)
719
719
  return;
720
- var E, A, x, F, T, D, C, L = d[k];
721
- typeof L == "string" || typeof L.content == "string" ? (E = c[n], (C = (D = typeof L == "string" ? L : L.content).indexOf(E)) !== -1 && (++n, A = D.substring(0, C), T = a[E], x = void 0, (F = {})["interpolation-punctuation"] = f, (F = e.tokenize(T, F)).length === 3 && ((x = [1, 1]).push.apply(x, m(F[1], e.languages.javascript, "javascript")), F.splice.apply(F, x)), x = new e.Token("interpolation", F, i.alias, T), F = D.substring(C + E.length), T = [], A && T.push(A), T.push(x), F && (l(D = [F]), T.push.apply(T, D)), typeof L == "string" ? (d.splice.apply(d, [k, 1].concat(T)), k += T.length - 1) : L.content = T)) : (C = L.content, Array.isArray(C) ? l(C) : l([C]));
720
+ var E, A, x, F, T, D, C, L = g[k];
721
+ typeof L == "string" || typeof L.content == "string" ? (E = c[n], (C = (D = typeof L == "string" ? L : L.content).indexOf(E)) !== -1 && (++n, A = D.substring(0, C), T = a[E], x = void 0, (F = {})["interpolation-punctuation"] = f, (F = e.tokenize(T, F)).length === 3 && ((x = [1, 1]).push.apply(x, m(F[1], e.languages.javascript, "javascript")), F.splice.apply(F, x)), x = new e.Token("interpolation", F, i.alias, T), F = D.substring(C + E.length), T = [], A && T.push(A), T.push(x), F && (l(D = [F]), T.push.apply(T, D)), typeof L == "string" ? (g.splice.apply(g, [k, 1].concat(T)), k += T.length - 1) : L.content = T)) : (C = L.content, Array.isArray(C) ? l(C) : l([C]));
722
722
  }
723
723
  }(s), new e.Token(w, s, "language-" + w, y);
724
724
  }
725
725
  e.languages.javascript["template-string"] = [u("css", /\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source), u("html", /\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source), u("svg", /\bsvg/.source), u("markdown", /\b(?:markdown|md)/.source), u("graphql", /\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source), u("sql", /\bsql/.source), t].filter(Boolean);
726
- var g = { javascript: !0, js: !0, typescript: !0, ts: !0, jsx: !0, tsx: !0 };
726
+ var d = { javascript: !0, js: !0, typescript: !0, ts: !0, jsx: !0, tsx: !0 };
727
727
  function b(y) {
728
728
  return typeof y == "string" ? y : Array.isArray(y) ? y.map(b).join("") : b(y.content);
729
729
  }
730
730
  e.hooks.add("after-tokenize", function(y) {
731
- y.language in g && function v(w) {
731
+ y.language in d && function v(w) {
732
732
  for (var n = 0, a = w.length; n < a; n++) {
733
- var s, c, l, d = w[n];
734
- typeof d != "string" && (s = d.content, Array.isArray(s) ? d.type === "template-string" ? (d = s[1], s.length === 3 && typeof d != "string" && d.type === "embedded-code" && (c = b(d), d = d.alias, d = Array.isArray(d) ? d[0] : d, l = e.languages[d]) && (s[1] = p(c, l, d))) : v(s) : typeof s != "string" && v([s]));
733
+ var s, c, l, g = w[n];
734
+ typeof g != "string" && (s = g.content, Array.isArray(s) ? g.type === "template-string" ? (g = s[1], s.length === 3 && typeof g != "string" && g.type === "embedded-code" && (c = b(g), g = g.alias, g = Array.isArray(g) ? g[0] : g, l = e.languages[g]) && (s[1] = p(c, l, g))) : v(s) : typeof s != "string" && v([s]));
735
735
  }
736
736
  }(y.tokens);
737
737
  });
@@ -759,20 +759,20 @@ o.languages.markup = { comment: { pattern: /<!--(?:(?!<!--)[\s\S])*?-->/, greedy
759
759
  }
760
760
  }(o), function(e) {
761
761
  var t = e.util.clone(e.languages.javascript), r = /(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source, i = /(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source, f = /(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;
762
- function h(p, g) {
762
+ function h(p, d) {
763
763
  return p = p.replace(/<S>/g, function() {
764
764
  return r;
765
765
  }).replace(/<BRACES>/g, function() {
766
766
  return i;
767
767
  }).replace(/<SPREAD>/g, function() {
768
768
  return f;
769
- }), RegExp(p, g);
769
+ }), RegExp(p, d);
770
770
  }
771
771
  f = h(f).source, e.languages.jsx = e.languages.extend("markup", t), e.languages.jsx.tag.pattern = h(/<\/?(?:[\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: h(/<SPREAD>/.source), inside: e.languages.jsx } }, e.languages.jsx.tag), e.languages.insertBefore("inside", "special-attr", { script: { pattern: h(/=<BRACES>/.source), alias: "language-javascript", inside: { "script-punctuation": { pattern: /^=(?=\{)/, alias: "punctuation" }, rest: e.languages.jsx } } }, e.languages.jsx.tag);
772
772
  function u(p) {
773
- for (var g = [], b = 0; b < p.length; b++) {
773
+ for (var d = [], b = 0; b < p.length; b++) {
774
774
  var y = p[b], v = !1;
775
- typeof y != "string" && (y.type === "tag" && y.content[0] && y.content[0].type === "tag" ? y.content[0].content[0].content === "</" ? 0 < g.length && g[g.length - 1].tagName === m(y.content[0].content[1]) && g.pop() : y.content[y.content.length - 1].content !== "/>" && g.push({ tagName: m(y.content[0].content[1]), openedBraces: 0 }) : 0 < g.length && y.type === "punctuation" && y.content === "{" ? g[g.length - 1].openedBraces++ : 0 < g.length && 0 < g[g.length - 1].openedBraces && y.type === "punctuation" && y.content === "}" ? g[g.length - 1].openedBraces-- : v = !0), (v || typeof y == "string") && 0 < g.length && g[g.length - 1].openedBraces === 0 && (v = m(y), b < p.length - 1 && (typeof p[b + 1] == "string" || p[b + 1].type === "plain-text") && (v += m(p[b + 1]), p.splice(b + 1, 1)), 0 < b && (typeof p[b - 1] == "string" || p[b - 1].type === "plain-text") && (v = m(p[b - 1]) + v, p.splice(b - 1, 1), b--), p[b] = new e.Token("plain-text", v, null, v)), y.content && typeof y.content != "string" && u(y.content);
775
+ typeof y != "string" && (y.type === "tag" && y.content[0] && y.content[0].type === "tag" ? y.content[0].content[0].content === "</" ? 0 < d.length && d[d.length - 1].tagName === m(y.content[0].content[1]) && d.pop() : y.content[y.content.length - 1].content !== "/>" && d.push({ tagName: m(y.content[0].content[1]), openedBraces: 0 }) : 0 < d.length && y.type === "punctuation" && y.content === "{" ? d[d.length - 1].openedBraces++ : 0 < d.length && 0 < d[d.length - 1].openedBraces && y.type === "punctuation" && y.content === "}" ? d[d.length - 1].openedBraces-- : v = !0), (v || typeof y == "string") && 0 < d.length && d[d.length - 1].openedBraces === 0 && (v = m(y), b < p.length - 1 && (typeof p[b + 1] == "string" || p[b + 1].type === "plain-text") && (v += m(p[b + 1]), p.splice(b + 1, 1)), 0 < b && (typeof p[b - 1] == "string" || p[b - 1].type === "plain-text") && (v = m(p[b - 1]) + v, p.splice(b - 1, 1), b--), p[b] = new e.Token("plain-text", v, null, v)), y.content && typeof y.content != "string" && u(y.content);
776
776
  }
777
777
  }
778
778
  var m = function(p) {
@@ -814,7 +814,7 @@ _e(V, {
814
814
  duotoneDark: () => Ne,
815
815
  duotoneLight: () => De,
816
816
  github: () => $e,
817
- gruvboxMaterialDark: () => gt,
817
+ gruvboxMaterialDark: () => dt,
818
818
  gruvboxMaterialLight: () => yt,
819
819
  jettwaveDark: () => rt,
820
820
  jettwaveLight: () => st,
@@ -2579,7 +2579,7 @@ var Ie = {
2579
2579
  }
2580
2580
  }
2581
2581
  ]
2582
- }, gt = pt, dt = {
2582
+ }, dt = pt, gt = {
2583
2583
  plain: {
2584
2584
  color: "#654735",
2585
2585
  backgroundColor: "#f9f5d7"
@@ -2651,7 +2651,7 @@ var Ie = {
2651
2651
  }
2652
2652
  }
2653
2653
  ]
2654
- }, yt = dt, ft = (e) => K(
2654
+ }, yt = gt, ft = (e) => K(
2655
2655
  (t) => {
2656
2656
  var r = t, { className: i, style: f, line: h } = r, u = ue(r, ["className", "style", "line"]);
2657
2657
  const m = q(N({}, u), {
@@ -2707,13 +2707,13 @@ var Ie = {
2707
2707
  const p = [m];
2708
2708
  for (; u > -1; ) {
2709
2709
  for (; (h = i[u]++) < f[u]; ) {
2710
- let g, b = t[u];
2710
+ let d, b = t[u];
2711
2711
  const v = r[u][h];
2712
- if (typeof v == "string" ? (b = u > 0 ? b : ["plain"], g = v) : (b = re(b, v.type), v.alias && (b = re(b, v.alias)), g = v.content), typeof g != "string") {
2713
- u++, t.push(b), r.push(g), i.push(0), f.push(g.length);
2712
+ if (typeof v == "string" ? (b = u > 0 ? b : ["plain"], d = v) : (b = re(b, v.type), v.alias && (b = re(b, v.alias)), d = v.content), typeof d != "string") {
2713
+ u++, t.push(b), r.push(d), i.push(0), f.push(d.length);
2714
2714
  continue;
2715
2715
  }
2716
- const w = g.split(mt), n = w.length;
2716
+ const w = d.split(mt), n = w.length;
2717
2717
  m.push({
2718
2718
  types: b,
2719
2719
  content: w[0]
@@ -2747,8 +2747,8 @@ var Ie = {
2747
2747
  const { plain: r } = e, i = e.styles.reduce((f, h) => {
2748
2748
  const { languages: u, style: m } = h;
2749
2749
  return u && !u.includes(t) || h.types.forEach((p) => {
2750
- const g = N(N({}, f[p]), m);
2751
- f[p] = g;
2750
+ const d = N(N({}, f[p]), m);
2751
+ f[p] = d;
2752
2752
  }), f;
2753
2753
  }, {});
2754
2754
  return i.root = r, i.plain = q(N({}, r), { backgroundColor: void 0 }), i;
@@ -2759,7 +2759,7 @@ var Ie = {
2759
2759
  theme: i,
2760
2760
  prism: f
2761
2761
  }) => {
2762
- const h = t.toLowerCase(), u = wt(i, h), m = ft(u), p = bt(u), g = f.languages[h], b = vt({ prism: f, language: h, code: r, grammar: g });
2762
+ const h = t.toLowerCase(), u = wt(i, h), m = ft(u), p = bt(u), d = f.languages[h], b = vt({ prism: f, language: h, code: r, grammar: d });
2763
2763
  return e({
2764
2764
  tokens: b,
2765
2765
  className: `prism-code language-${h}`,
@@ -2767,7 +2767,7 @@ var Ie = {
2767
2767
  getLineProps: m,
2768
2768
  getTokenProps: p
2769
2769
  });
2770
- }, xt = (e) => de(Et, q(N({}, e), {
2770
+ }, xt = (e) => ge(Et, q(N({}, e), {
2771
2771
  prism: e.prism || o,
2772
2772
  theme: e.theme || ce,
2773
2773
  code: e.code,
@@ -2808,7 +2808,7 @@ const At = {
2808
2808
  disabled: h,
2809
2809
  ...u
2810
2810
  }) => {
2811
- const { resolvedTheme: m } = ve(), [p, g] = be(!1), b = f ?? u.code;
2811
+ const { resolvedTheme: m } = ve(), [p, d] = be(!1), b = f ?? u.code;
2812
2812
  if (!b)
2813
2813
  return null;
2814
2814
  const y = m === "dark" ? V.vsDark : V.github, v = "bg-[#f6f8fa] text-[#393a34] dark:bg-[#1e1e1e] dark:text-[#9cdcfe]", w = ({
@@ -2832,7 +2832,7 @@ const At = {
2832
2832
  children: n
2833
2833
  }
2834
2834
  ),
2835
- u.showLanguageIndicator && /* @__PURE__ */ _.jsx("span", { className: "absolute top-1.5 right-3 text-[11px] font-mono text-muted-foreground transition group-hover:opacity-0", children: e }),
2835
+ u.showLanguageIndicator && /* @__PURE__ */ _.jsx("span", { className: "absolute top-1.5 end-3 text-[11px] font-mono text-muted-foreground transition group-hover:opacity-0", children: e }),
2836
2836
  t !== "never" && /* @__PURE__ */ _.jsxs(
2837
2837
  "button",
2838
2838
  {
@@ -2840,13 +2840,13 @@ const At = {
2840
2840
  "aria-label": "Copy code",
2841
2841
  title: "Copy code",
2842
2842
  className: ee(
2843
- "absolute top-2 right-2 p-2 hover:outline hover:outline-border/75 dark:hover:outline-border rounded-md text-sm text-muted-foreground transition",
2843
+ "absolute top-2 end-2 p-2 hover:outline hover:outline-border/75 dark:hover:outline-border rounded-md text-sm text-muted-foreground transition",
2844
2844
  t === "hover" ? "opacity-0 group-hover:opacity-100 group-hover:bg-zinc-100 group-hover:dark:bg-zinc-700" : "bg-zinc-100 dark:bg-zinc-700",
2845
2845
  r && "flex gap-2 items-center font-medium"
2846
2846
  ),
2847
2847
  disabled: p,
2848
2848
  onClick: () => {
2849
- g(!0), navigator.clipboard.writeText(b), setTimeout(() => g(!1), 2e3);
2849
+ d(!0), navigator.clipboard.writeText(b), setTimeout(() => d(!1), 2e3);
2850
2850
  },
2851
2851
  children: [
2852
2852
  p ? /* @__PURE__ */ _.jsx(
@@ -2870,9 +2870,9 @@ const At = {
2870
2870
  language: At[e] ?? e,
2871
2871
  ...u,
2872
2872
  code: b,
2873
- children: ({ className: n, style: a, tokens: s, getLineProps: c, getTokenProps: l }) => /* @__PURE__ */ _.jsx(w, { className: n, style: a, children: s.map((d, k) => (
2873
+ children: ({ className: n, style: a, tokens: s, getLineProps: c, getTokenProps: l }) => /* @__PURE__ */ _.jsx(w, { className: n, style: a, children: s.map((g, k) => (
2874
2874
  // eslint-disable-next-line react/no-array-index-key
2875
- /* @__PURE__ */ _.jsx("div", { ...c({ line: d }), children: d.map((E, A) => (
2875
+ /* @__PURE__ */ _.jsx("div", { ...c({ line: g }), children: g.map((E, A) => (
2876
2876
  // eslint-disable-next-line react/no-array-index-key
2877
2877
  /* @__PURE__ */ _.jsx("span", { ...l({ token: E }) }, A)
2878
2878
  )) }, k)
@@ -2887,4 +2887,4 @@ export {
2887
2887
  _t as S,
2888
2888
  V as t
2889
2889
  };
2890
- //# sourceMappingURL=SyntaxHighlight-CxhyyMkF.js.map
2890
+ //# sourceMappingURL=SyntaxHighlight-o7q0acut.js.map