@rspress/core 0.0.9 → 0.0.11

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 (42) hide show
  1. package/dist/index.d.ts +1 -10
  2. package/dist/index.js +237 -264
  3. package/dist/index.js.map +1 -1
  4. package/dist/loader.d.ts +1 -1
  5. package/dist/loader.js +0 -3
  6. package/dist/loader.js.map +1 -1
  7. package/dist/theme/bundle.css +96 -159
  8. package/dist/theme/bundle.d.ts +1 -1
  9. package/dist/theme/bundle.js +879 -802
  10. package/dist/theme/bundle.js.map +1 -1
  11. package/package.json +15 -15
  12. package/src/theme-default/components/Aside/index.css +23 -0
  13. package/src/theme-default/components/Aside/index.tsx +7 -13
  14. package/src/theme-default/components/EditLink/index.module.scss +3 -3
  15. package/src/theme-default/components/EditLink/index.tsx +0 -5
  16. package/src/theme-default/components/HomeHero/index.module.scss +6 -0
  17. package/src/theme-default/components/HomeHero/index.tsx +4 -4
  18. package/src/theme-default/components/Nav/NavMenuGroup.tsx +43 -23
  19. package/src/theme-default/components/Nav/NavMenuSingleItem.tsx +12 -4
  20. package/src/theme-default/components/Nav/index.module.scss +0 -1
  21. package/src/theme-default/components/Nav/index.tsx +4 -3
  22. package/src/theme-default/components/NavScreenMenuGroup/NavScreenMenuGroup.tsx +18 -7
  23. package/src/theme-default/components/Search/logic/providers/LocalProvider.ts +1 -2
  24. package/src/theme-default/components/Sidebar/SidebarGroup.tsx +180 -0
  25. package/src/theme-default/components/Sidebar/SidebarItem.tsx +61 -0
  26. package/src/theme-default/components/Sidebar/index.module.scss +22 -5
  27. package/src/theme-default/components/Sidebar/index.tsx +39 -248
  28. package/src/theme-default/components/Tabs/index.module.scss +11 -18
  29. package/src/theme-default/components/Tabs/index.tsx +1 -1
  30. package/src/theme-default/layout/DocLayout/index.module.scss +17 -18
  31. package/src/theme-default/layout/Layout/index.tsx +19 -7
  32. package/src/theme-default/logic/sideEffects.ts +3 -1
  33. package/src/theme-default/logic/useEditLink.ts +6 -3
  34. package/src/theme-default/logic/useLocaleSiteData.ts +1 -1
  35. package/src/theme-default/logic/useSidebarData.ts +1 -1
  36. package/src/theme-default/styles/{doc/code.css → code.css} +4 -1
  37. package/src/theme-default/styles/index.ts +1 -3
  38. package/src/theme-default/styles/vars.css +2 -2
  39. package/src/theme-default/assets/edit.svg +0 -1
  40. package/src/theme-default/styles/doc/container.css +0 -103
  41. package/src/theme-default/styles/doc/index.css +0 -6
  42. /package/dist/theme/{index.ts → index.js} +0 -0
@@ -41,17 +41,17 @@ function NotFoundLayout() {
41
41
  }
42
42
 
43
43
  // src/theme-default/layout/Layout/index.tsx
44
- import { jsx as _jsx14, jsxs as _jsxs9 } from "react/jsx-runtime";
44
+ import { jsx as _jsx15, jsxs as _jsxs9 } from "react/jsx-runtime";
45
45
  import "nprogress/nprogress.css";
46
- import { useEffect as useEffect6 } from "react";
46
+ import React5, { useEffect as useEffect8 } from "react";
47
47
  import { Helmet } from "react-helmet-async";
48
48
  import Theme, { Nav } from "@theme";
49
49
  import globalComponents from "virtual-global-components";
50
50
 
51
51
  // src/theme-default/layout/DocLayout/index.tsx
52
- import { jsx as _jsx13, jsxs as _jsxs8 } from "react/jsx-runtime";
52
+ import { jsx as _jsx14, jsxs as _jsxs8 } from "react/jsx-runtime";
53
53
  import { useLocation as useLocation3 } from "react-router-dom";
54
- import { useEffect as useEffect5, useState as useState4 } from "react";
54
+ import { useEffect as useEffect7, useState as useState4 } from "react";
55
55
  import { MDXProvider } from "@mdx-js/react";
56
56
  import { getCustomMDXComponent } from "@theme";
57
57
 
@@ -191,7 +191,7 @@ function useSidebarData() {
191
191
  setSidebarData(newSidebarData);
192
192
  }, [
193
193
  pathname,
194
- sidebar
194
+ localeData.lang
195
195
  ]);
196
196
  return sidebarData;
197
197
  }
@@ -230,10 +230,11 @@ function usePrevNextPage() {
230
230
  // src/theme-default/logic/useEditLink.ts
231
231
  import { usePageData as usePageData3 } from "@/runtime";
232
232
  function useEditLink() {
233
- var _pageData_siteData_themeConfig;
234
- const pageData = usePageData3();
235
- var _pageData_siteData_themeConfig_editLink;
236
- const editLink = (_pageData_siteData_themeConfig_editLink = (_pageData_siteData_themeConfig = pageData.siteData.themeConfig) === null || _pageData_siteData_themeConfig === void 0 ? void 0 : _pageData_siteData_themeConfig.editLink) !== null && _pageData_siteData_themeConfig_editLink !== void 0 ? _pageData_siteData_themeConfig_editLink : {};
233
+ var _siteData_themeConfig;
234
+ const { siteData: siteData2, page } = usePageData3();
235
+ const locales = useLocaleSiteData();
236
+ var _locales_editLink, _ref;
237
+ const editLink = (_ref = (_locales_editLink = locales.editLink) !== null && _locales_editLink !== void 0 ? _locales_editLink : (_siteData_themeConfig = siteData2.themeConfig) === null || _siteData_themeConfig === void 0 ? void 0 : _siteData_themeConfig.editLink) !== null && _ref !== void 0 ? _ref : {};
237
238
  if (!editLink.docRepoBaseUrl || !editLink.text) {
238
239
  return null;
239
240
  }
@@ -241,7 +242,7 @@ function useEditLink() {
241
242
  if (!docRepoBaseUrl.endsWith("/")) {
242
243
  docRepoBaseUrl += "/";
243
244
  }
244
- const relativePagePath = pageData.page._relativePath.replace(/\\/g, "/");
245
+ const relativePagePath = page._relativePath.replace(/\\/g, "/");
245
246
  const link = `${docRepoBaseUrl}${relativePagePath}`;
246
247
  return {
247
248
  text: editLink.text,
@@ -348,7 +349,7 @@ function bindingAsideScroll() {
348
349
  if (links2[index]) {
349
350
  var _id, _aside2;
350
351
  const id = links2[index].getAttribute("href");
351
- const currentLink = (_aside2 = aside) === null || _aside2 === void 0 ? void 0 : _aside2.querySelector(`a[href="#${(_id = id) === null || _id === void 0 ? void 0 : _id.slice(1)}"]`);
352
+ const currentLink = (_aside2 = aside) === null || _aside2 === void 0 ? void 0 : _aside2.querySelector(`a[href="#${(_id = id) === null || _id === void 0 ? void 0 : _id.slice(1)}"] > span`);
352
353
  if (currentLink) {
353
354
  if (prevActiveLink) {
354
355
  prevActiveLink.classList.remove("aside-active");
@@ -457,14 +458,10 @@ function Aside(props) {
457
458
  return /* @__PURE__ */ _jsx2("li", {
458
459
  children: /* @__PURE__ */ _jsx2("a", {
459
460
  href: `#${header.id}`,
460
- className: "leading-7 transition-all duration-300 hover:text-text-1 text-text-2 block",
461
+ className: "aside-link transition-all duration-300 hover:text-text-1 text-text-2 block",
461
462
  style: {
462
- fontSize: "13px",
463
463
  paddingLeft: (header.depth - baseHeaderLevel) * 12,
464
- whiteSpace: "nowrap",
465
- overflow: "hidden",
466
- textOverflow: "ellipsis",
467
- fontWeight: header.depth === baseHeaderLevel ? "semibold" : "normal"
464
+ fontWeight: "semibold"
468
465
  },
469
466
  onClick: (e) => {
470
467
  e.preventDefault();
@@ -474,7 +471,10 @@ function Aside(props) {
474
471
  scrollToTarget(target, false);
475
472
  }
476
473
  },
477
- children: header.text
474
+ children: /* @__PURE__ */ _jsx2("span", {
475
+ className: "aside-link-text block",
476
+ children: header.text
477
+ })
478
478
  })
479
479
  }, header.id);
480
480
  };
@@ -484,10 +484,10 @@ function Aside(props) {
484
484
  className: hasOutline ? `<lg:hidden` : "hidden",
485
485
  children: /* @__PURE__ */ _jsxs2("div", {
486
486
  id: "aside-container",
487
- className: "relative pl-4 text-sm font-medium",
487
+ className: "relative text-sm font-medium",
488
488
  children: [
489
489
  /* @__PURE__ */ _jsx2("div", {
490
- className: "leading-7 block text-sm font-semibold",
490
+ className: "leading-7 block text-sm font-semibold pl-3",
491
491
  children: props.outlineTitle
492
492
  }),
493
493
  /* @__PURE__ */ _jsx2("nav", {
@@ -504,77 +504,10 @@ function Aside(props) {
504
504
  }
505
505
 
506
506
  // src/theme-default/components/DocFooter/index.tsx
507
- import { jsx as _jsx6, jsxs as _jsxs4 } from "react/jsx-runtime";
507
+ import { jsx as _jsx5, jsxs as _jsxs3 } from "react/jsx-runtime";
508
508
 
509
509
  // src/theme-default/components/EditLink/index.tsx
510
- import { jsx as _jsx4, jsxs as _jsxs3 } from "react/jsx-runtime";
511
-
512
- // src/theme-default/assets/edit.svg
513
510
  import { jsx as _jsx3 } from "react/jsx-runtime";
514
- import * as React from "react";
515
- function _define_property3(obj, key, value) {
516
- if (key in obj) {
517
- Object.defineProperty(obj, key, {
518
- value,
519
- enumerable: true,
520
- configurable: true,
521
- writable: true
522
- });
523
- } else {
524
- obj[key] = value;
525
- }
526
- return obj;
527
- }
528
- function _object_spread3(target) {
529
- for (var i = 1; i < arguments.length; i++) {
530
- var source = arguments[i] != null ? arguments[i] : {};
531
- var ownKeys32 = Object.keys(source);
532
- if (typeof Object.getOwnPropertySymbols === "function") {
533
- ownKeys32 = ownKeys32.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
534
- return Object.getOwnPropertyDescriptor(source, sym).enumerable;
535
- }));
536
- }
537
- ownKeys32.forEach(function(key) {
538
- _define_property3(target, key, source[key]);
539
- });
540
- }
541
- return target;
542
- }
543
- function ownKeys2(object, enumerableOnly) {
544
- var keys = Object.keys(object);
545
- if (Object.getOwnPropertySymbols) {
546
- var symbols = Object.getOwnPropertySymbols(object);
547
- if (enumerableOnly) {
548
- symbols = symbols.filter(function(sym) {
549
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
550
- });
551
- }
552
- keys.push.apply(keys, symbols);
553
- }
554
- return keys;
555
- }
556
- function _object_spread_props2(target, source) {
557
- source = source != null ? source : {};
558
- if (Object.getOwnPropertyDescriptors) {
559
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
560
- } else {
561
- ownKeys2(Object(source)).forEach(function(key) {
562
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
563
- });
564
- }
565
- return target;
566
- }
567
- var SvgEdit = (props) => /* @__PURE__ */ _jsx3("svg", _object_spread_props2(_object_spread3({
568
- width: 18,
569
- height: 18,
570
- viewBox: "0 0 32 32"
571
- }, props), {
572
- children: /* @__PURE__ */ _jsx3("path", {
573
- fill: "currentColor",
574
- d: "M2 26h28v2H2zM25.4 9c.8-.8.8-2 0-2.8l-3.6-3.6c-.8-.8-2-.8-2.8 0l-15 15V24h6.4l15-15zm-5-5L24 7.6l-3 3L17.4 7l3-3zM6 22v-3.6l10-10 3.6 3.6-10 10H6z"
575
- })
576
- }));
577
- var edit_default = SvgEdit;
578
511
 
579
512
  // src/theme-default/components/EditLink/index.module.scss
580
513
  var index_module_default = { "editLink": "editLink_eea9e" };
@@ -586,24 +519,16 @@ function EditLink() {
586
519
  return null;
587
520
  }
588
521
  const { text, link } = editLinkObj;
589
- return /* @__PURE__ */ _jsxs3("a", {
522
+ return /* @__PURE__ */ _jsx3("a", {
590
523
  href: link,
591
524
  target: "_blank",
592
525
  className: index_module_default.editLink,
593
- children: [
594
- /* @__PURE__ */ _jsx4(edit_default, {
595
- className: "h-5.5 mr-2 inline-block",
596
- style: {
597
- verticalAlign: "-5px"
598
- }
599
- }),
600
- text
601
- ]
526
+ children: text
602
527
  });
603
528
  }
604
529
 
605
530
  // src/theme-default/components/Link/index.tsx
606
- import { jsx as _jsx5 } from "react/jsx-runtime";
531
+ import { jsx as _jsx4 } from "react/jsx-runtime";
607
532
  import { matchRoutes, useNavigate } from "react-router-dom";
608
533
  import nprogress from "nprogress";
609
534
  import { routes } from "virtual-routes";
@@ -678,7 +603,7 @@ function Link(props) {
678
603
  };
679
604
  }();
680
605
  if (!isExternal) {
681
- return /* @__PURE__ */ _jsx5("a", {
606
+ return /* @__PURE__ */ _jsx4("a", {
682
607
  className: `${index_module_default2.link} ${className} cursor-pointer`,
683
608
  rel,
684
609
  target,
@@ -687,7 +612,7 @@ function Link(props) {
687
612
  children
688
613
  });
689
614
  } else {
690
- return /* @__PURE__ */ _jsx5("a", {
615
+ return /* @__PURE__ */ _jsx4("a", {
691
616
  href: withBaseUrl,
692
617
  target,
693
618
  rel,
@@ -710,61 +635,61 @@ function DocFooter() {
710
635
  const { themeConfig } = siteData2;
711
636
  const lastUpdatedText = ((_themeConfig = themeConfig) === null || _themeConfig === void 0 ? void 0 : _themeConfig.lastUpdatedText) || localesLastUpdatedText;
712
637
  const showLastUpdated = themeConfig.lastUpdated || localesLastUpdated;
713
- return /* @__PURE__ */ _jsxs4("footer", {
638
+ return /* @__PURE__ */ _jsxs3("footer", {
714
639
  className: "mt-8",
715
640
  children: [
716
- /* @__PURE__ */ _jsx6("div", {
641
+ /* @__PURE__ */ _jsx5("div", {
717
642
  className: "xs:flex pb-5 px-2 justify-end items-center",
718
- children: showLastUpdated && /* @__PURE__ */ _jsxs4("div", {
643
+ children: showLastUpdated && /* @__PURE__ */ _jsxs3("div", {
719
644
  className: "flex text-sm text-text-2 leading-6 sm:leading-8 font-medium",
720
645
  children: [
721
- /* @__PURE__ */ _jsxs4("p", {
646
+ /* @__PURE__ */ _jsxs3("p", {
722
647
  children: [
723
648
  lastUpdatedText,
724
649
  ": "
725
650
  ]
726
651
  }),
727
- /* @__PURE__ */ _jsx6("span", {
652
+ /* @__PURE__ */ _jsx5("span", {
728
653
  children: lastUpdatedTime
729
654
  })
730
655
  ]
731
656
  })
732
657
  }),
733
- /* @__PURE__ */ _jsx6("div", {
658
+ /* @__PURE__ */ _jsx5("div", {
734
659
  className: "flex flex-col",
735
- children: /* @__PURE__ */ _jsx6(EditLink, {})
660
+ children: /* @__PURE__ */ _jsx5(EditLink, {})
736
661
  }),
737
- /* @__PURE__ */ _jsxs4("div", {
662
+ /* @__PURE__ */ _jsxs3("div", {
738
663
  className: "flex flex-col sm:flex-row sm:justify-around gap-4 pt-6",
739
664
  children: [
740
- /* @__PURE__ */ _jsx6("div", {
665
+ /* @__PURE__ */ _jsx5("div", {
741
666
  className: `${index_module_default3.prev} flex flex-col`,
742
- children: prevPage ? /* @__PURE__ */ _jsxs4(Link, {
667
+ children: prevPage ? /* @__PURE__ */ _jsxs3(Link, {
743
668
  href: normalizeHref2(prevPage.link),
744
669
  className: index_module_default3.pagerLink,
745
670
  children: [
746
- /* @__PURE__ */ _jsx6("span", {
671
+ /* @__PURE__ */ _jsx5("span", {
747
672
  className: index_module_default3.desc,
748
673
  children: prevPageText
749
674
  }),
750
- /* @__PURE__ */ _jsx6("span", {
675
+ /* @__PURE__ */ _jsx5("span", {
751
676
  className: index_module_default3.title,
752
677
  children: prevPage.text
753
678
  })
754
679
  ]
755
680
  }) : null
756
681
  }),
757
- /* @__PURE__ */ _jsx6("div", {
682
+ /* @__PURE__ */ _jsx5("div", {
758
683
  className: `${index_module_default3.next} flex flex-col`,
759
- children: nextPage ? /* @__PURE__ */ _jsxs4(Link, {
684
+ children: nextPage ? /* @__PURE__ */ _jsxs3(Link, {
760
685
  href: normalizeHref2(nextPage.link),
761
686
  className: `${index_module_default3.pagerLink} ${index_module_default3.next}`,
762
687
  children: [
763
- /* @__PURE__ */ _jsx6("span", {
688
+ /* @__PURE__ */ _jsx5("span", {
764
689
  className: index_module_default3.desc,
765
690
  children: nextPageText
766
691
  }),
767
- /* @__PURE__ */ _jsx6("span", {
692
+ /* @__PURE__ */ _jsx5("span", {
768
693
  className: index_module_default3.title,
769
694
  children: nextPage.text
770
695
  })
@@ -778,19 +703,56 @@ function DocFooter() {
778
703
  }
779
704
 
780
705
  // src/theme-default/components/LocalSideBar/index.tsx
781
- import { jsx as _jsx11, jsxs as _jsxs6 } from "react/jsx-runtime";
782
- import { Fragment, useEffect as useEffect4, useState as useState3 } from "react";
706
+ import { jsx as _jsx12, jsxs as _jsxs6 } from "react/jsx-runtime";
707
+ import { Fragment, useEffect as useEffect6, useState as useState3 } from "react";
783
708
 
784
709
  // src/theme-default/components/Sidebar/index.tsx
785
- import { jsx as _jsx9, jsxs as _jsxs5 } from "react/jsx-runtime";
786
- import { useEffect as useEffect3, useRef as useRef2, useState as useState2 } from "react";
787
- import { matchRoutes as matchRoutes2, useNavigate as useNavigate2 } from "react-router-dom";
710
+ import { jsx as _jsx10 } from "react/jsx-runtime";
711
+ import { useEffect as useEffect5, useState as useState2 } from "react";
712
+ import { matchRoutes as matchRoutes2 } from "react-router-dom";
788
713
  import { routes as routes2 } from "virtual-routes";
789
714
 
715
+ // src/theme-default/components/Sidebar/index.module.scss
716
+ var index_module_default4 = { "sidebar": "sidebar_74484", "sidebarContent": "sidebarContent_74484", "open": "open_74484", "menuLink": "menuLink_74484", "menuItem": "menuItem_74484", "collapseContainer": "collapseContainer_74484", "menuItemStatic": "menuItemStatic_74484", "menuItemActive": "menuItemActive_74484", "menuGroupActive": "menuGroupActive_74484" };
717
+
718
+ // src/theme-default/components/Sidebar/SidebarItem.tsx
719
+ import { jsx as _jsx9, jsxs as _jsxs5 } from "react/jsx-runtime";
720
+ import { useEffect as useEffect4, useRef as useRef3 } from "react";
721
+
722
+ // src/theme-default/components/Tag/index.tsx
723
+ import { jsx as _jsx6 } from "react/jsx-runtime";
724
+ var Tag = ({ tag }) => {
725
+ if (!tag) {
726
+ return null;
727
+ }
728
+ const isSvgTagString = tag.trim().startsWith("<svg");
729
+ if (isSvgTagString) {
730
+ return /* @__PURE__ */ _jsx6("div", {
731
+ // eslint-disable-next-line react/no-danger
732
+ dangerouslySetInnerHTML: {
733
+ __html: tag
734
+ },
735
+ style: {
736
+ width: 20,
737
+ marginRight: 4
738
+ }
739
+ });
740
+ } else {
741
+ return /* @__PURE__ */ _jsx6("img", {
742
+ src: tag
743
+ });
744
+ }
745
+ };
746
+
747
+ // src/theme-default/components/Sidebar/SidebarGroup.tsx
748
+ import { jsx as _jsx8, jsxs as _jsxs4 } from "react/jsx-runtime";
749
+ import { useEffect as useEffect3, useRef as useRef2 } from "react";
750
+ import { useNavigate as useNavigate2 } from "react-router-dom";
751
+
790
752
  // src/theme-default/assets/arrow-right.svg
791
753
  import { jsx as _jsx7 } from "react/jsx-runtime";
792
- import * as React2 from "react";
793
- function _define_property4(obj, key, value) {
754
+ import * as React from "react";
755
+ function _define_property3(obj, key, value) {
794
756
  if (key in obj) {
795
757
  Object.defineProperty(obj, key, {
796
758
  value,
@@ -803,7 +765,7 @@ function _define_property4(obj, key, value) {
803
765
  }
804
766
  return obj;
805
767
  }
806
- function _object_spread4(target) {
768
+ function _object_spread3(target) {
807
769
  for (var i = 1; i < arguments.length; i++) {
808
770
  var source = arguments[i] != null ? arguments[i] : {};
809
771
  var ownKeys32 = Object.keys(source);
@@ -813,12 +775,12 @@ function _object_spread4(target) {
813
775
  }));
814
776
  }
815
777
  ownKeys32.forEach(function(key) {
816
- _define_property4(target, key, source[key]);
778
+ _define_property3(target, key, source[key]);
817
779
  });
818
780
  }
819
781
  return target;
820
782
  }
821
- function ownKeys3(object, enumerableOnly) {
783
+ function ownKeys2(object, enumerableOnly) {
822
784
  var keys = Object.keys(object);
823
785
  if (Object.getOwnPropertySymbols) {
824
786
  var symbols = Object.getOwnPropertySymbols(object);
@@ -831,18 +793,18 @@ function ownKeys3(object, enumerableOnly) {
831
793
  }
832
794
  return keys;
833
795
  }
834
- function _object_spread_props3(target, source) {
796
+ function _object_spread_props2(target, source) {
835
797
  source = source != null ? source : {};
836
798
  if (Object.getOwnPropertyDescriptors) {
837
799
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
838
800
  } else {
839
- ownKeys3(Object(source)).forEach(function(key) {
801
+ ownKeys2(Object(source)).forEach(function(key) {
840
802
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
841
803
  });
842
804
  }
843
805
  return target;
844
806
  }
845
- var SvgArrowRight = (props) => /* @__PURE__ */ _jsx7("svg", _object_spread_props3(_object_spread4({
807
+ var SvgArrowRight = (props) => /* @__PURE__ */ _jsx7("svg", _object_spread_props2(_object_spread3({
846
808
  width: "1em",
847
809
  height: "1em",
848
810
  viewBox: "0 0 32 32"
@@ -854,37 +816,9 @@ var SvgArrowRight = (props) => /* @__PURE__ */ _jsx7("svg", _object_spread_props
854
816
  }));
855
817
  var arrow_right_default = SvgArrowRight;
856
818
 
857
- // src/theme-default/components/Tag/index.tsx
858
- import { jsx as _jsx8 } from "react/jsx-runtime";
859
- var Tag = ({ tag }) => {
860
- if (!tag) {
861
- return null;
862
- }
863
- const isSvgTagString = tag.trim().startsWith("<svg");
864
- if (isSvgTagString) {
865
- return /* @__PURE__ */ _jsx8("div", {
866
- // eslint-disable-next-line react/no-danger
867
- dangerouslySetInnerHTML: {
868
- __html: tag
869
- },
870
- style: {
871
- width: 20,
872
- marginRight: 4
873
- }
874
- });
875
- } else {
876
- return /* @__PURE__ */ _jsx8("img", {
877
- src: tag
878
- });
879
- }
880
- };
881
-
882
- // src/theme-default/components/Sidebar/index.module.scss
883
- var index_module_default4 = { "sidebar": "sidebar_74484", "sidebarContent": "sidebarContent_74484", "open": "open_74484", "menuLink": "menuLink_74484", "menuItem": "menuItem_74484", "collapseContainer": "collapseContainer_74484", "menuItemStatic": "menuItemStatic_74484", "menuItemActive": "menuItemActive_74484" };
884
-
885
- // src/theme-default/components/Sidebar/index.tsx
886
- import { removeBase, normalizeHref as normalizeHref3, withBase as withBase4, usePageData as usePageData5 } from "@/runtime";
887
- function _define_property5(obj, key, value) {
819
+ // src/theme-default/components/Sidebar/SidebarGroup.tsx
820
+ import { normalizeHref as normalizeHref3, withBase as withBase4 } from "@/runtime";
821
+ function _define_property4(obj, key, value) {
888
822
  if (key in obj) {
889
823
  Object.defineProperty(obj, key, {
890
824
  value,
@@ -897,7 +831,7 @@ function _define_property5(obj, key, value) {
897
831
  }
898
832
  return obj;
899
833
  }
900
- function _object_spread5(target) {
834
+ function _object_spread4(target) {
901
835
  for (var i = 1; i < arguments.length; i++) {
902
836
  var source = arguments[i] != null ? arguments[i] : {};
903
837
  var ownKeys32 = Object.keys(source);
@@ -907,12 +841,12 @@ function _object_spread5(target) {
907
841
  }));
908
842
  }
909
843
  ownKeys32.forEach(function(key) {
910
- _define_property5(target, key, source[key]);
844
+ _define_property4(target, key, source[key]);
911
845
  });
912
846
  }
913
847
  return target;
914
848
  }
915
- function ownKeys4(object, enumerableOnly) {
849
+ function ownKeys3(object, enumerableOnly) {
916
850
  var keys = Object.keys(object);
917
851
  if (Object.getOwnPropertySymbols) {
918
852
  var symbols = Object.getOwnPropertySymbols(object);
@@ -925,71 +859,22 @@ function ownKeys4(object, enumerableOnly) {
925
859
  }
926
860
  return keys;
927
861
  }
928
- function _object_spread_props4(target, source) {
862
+ function _object_spread_props3(target, source) {
929
863
  source = source != null ? source : {};
930
864
  if (Object.getOwnPropertyDescriptors) {
931
865
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
932
866
  } else {
933
- ownKeys4(Object(source)).forEach(function(key) {
867
+ ownKeys3(Object(source)).forEach(function(key) {
934
868
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
935
869
  });
936
870
  }
937
871
  return target;
938
872
  }
939
- var highlightTitleStyle = {
940
- color: "var(--rp-c-text-1)",
941
- fontSize: "14px"
942
- };
943
- function SidebarItemComp(props) {
944
- const { item, depth = 0, activeMatcher, id, setSidebarData } = props;
945
- const active = item.link && activeMatcher(item.link);
946
- const ref = useRef2(null);
947
- useEffect3(() => {
948
- if (active) {
949
- var _ref_current;
950
- (_ref_current = ref.current) === null || _ref_current === void 0 ? void 0 : _ref_current.scrollIntoView({
951
- block: "center"
952
- });
953
- }
954
- }, []);
955
- const { text } = item;
956
- if ("items" in item) {
957
- return /* @__PURE__ */ _jsx9(SidebarGroupComp, {
958
- id,
959
- item,
960
- depth,
961
- activeMatcher,
962
- collapsed: item.collapsed,
963
- setSidebarData,
964
- preloadLink: props.preloadLink
965
- }, `${item.text}-${id}`);
966
- } else {
967
- return /* @__PURE__ */ _jsx9(Link, {
968
- href: normalizeHref3(item.link),
969
- className: index_module_default4.menuLink,
970
- children: /* @__PURE__ */ _jsxs5("div", {
971
- ref,
972
- onMouseEnter: () => props.preloadLink(item.link),
973
- className: `${active ? index_module_default4.menuItemActive : index_module_default4.menuItem} mt-1 py-1.5 px-2 rounded-xl font-medium flex`,
974
- style: _object_spread5({
975
- // The first level menu item will have the same font size as the sidebar group
976
- fontSize: depth === 0 ? "14px" : "13px",
977
- marginLeft: depth === 0 ? 0 : "20px"
978
- }, depth === 0 ? highlightTitleStyle : {}),
979
- children: [
980
- /* @__PURE__ */ _jsx9(Tag, {
981
- tag: item.tag
982
- }),
983
- text
984
- ]
985
- })
986
- });
987
- }
988
- }
989
- function SidebarGroupComp(props) {
873
+ function SidebarGroup(props) {
990
874
  var _item_items, _item;
991
875
  const { item, depth = 0, activeMatcher, id, setSidebarData } = props;
992
876
  const navigate = useNavigate2();
877
+ const isGroupMatched = matchCache.get(item);
993
878
  const containerRef = useRef2(null);
994
879
  const transitionRef = useRef2(null);
995
880
  const innerRef = useRef2(null);
@@ -997,13 +882,13 @@ function SidebarGroupComp(props) {
997
882
  const initialState = useRef2(item.collapsed);
998
883
  const active = item.link && activeMatcher(item.link);
999
884
  const { collapsed, collapsible = true } = item;
1000
- const collapsibleIcon = /* @__PURE__ */ _jsx9("div", {
885
+ const collapsibleIcon = /* @__PURE__ */ _jsx8("div", {
1001
886
  style: {
1002
887
  cursor: "pointer",
1003
888
  transition: "transform 0.2s ease-out",
1004
889
  transform: collapsed ? "rotate(0deg)" : "rotate(90deg)"
1005
890
  },
1006
- children: /* @__PURE__ */ _jsx9(arrow_right_default, {})
891
+ children: /* @__PURE__ */ _jsx8(arrow_right_default, {})
1007
892
  });
1008
893
  useEffect3(() => {
1009
894
  if (initialRender.current) {
@@ -1062,17 +947,14 @@ function SidebarGroupComp(props) {
1062
947
  return newSidebarData;
1063
948
  });
1064
949
  };
1065
- return /* @__PURE__ */ _jsxs5("section", {
1066
- className: "mt-1 block",
950
+ return /* @__PURE__ */ _jsxs4("section", {
951
+ className: "mt-0.5 block",
1067
952
  style: {
1068
- marginLeft: depth === 0 ? 0 : "20px"
953
+ marginLeft: depth === 0 ? 0 : "18px"
1069
954
  },
1070
955
  children: [
1071
- /* @__PURE__ */ _jsxs5("div", {
1072
- style: {
1073
- cursor: collapsible || item.link ? "pointer" : "normal"
1074
- },
1075
- className: `flex justify-between items-center rounded-xl ${// eslint-disable-next-line no-nested-ternary
956
+ /* @__PURE__ */ _jsxs4("div", {
957
+ className: `flex justify-between items-center ${isGroupMatched && !active ? index_module_default4.menuGroupActive : ""} ${// eslint-disable-next-line no-nested-ternary
1076
958
  active ? index_module_default4.menuItemActive : collapsible || item.link ? index_module_default4.menuItem : index_module_default4.menuItemStatic}`,
1077
959
  onMouseEnter: () => item.link && props.preloadLink(item.link),
1078
960
  onClick: (e) => {
@@ -1083,41 +965,46 @@ function SidebarGroupComp(props) {
1083
965
  collapsible && toggleCollapse(e);
1084
966
  }
1085
967
  },
968
+ style: {
969
+ borderRadius: depth === 0 ? "0 1rem 1rem 0" : void 0,
970
+ cursor: collapsible || item.link ? "pointer" : "normal"
971
+ },
1086
972
  children: [
1087
- /* @__PURE__ */ _jsxs5("h2", {
1088
- className: "py-1 px-2 text-sm font-medium flex",
1089
- style: _object_spread5({}, depth === 0 ? highlightTitleStyle : {}),
973
+ /* @__PURE__ */ _jsxs4("h2", {
974
+ className: "py-2.5 px-3 text-sm font-medium flex",
975
+ style: _object_spread4({}, depth === 0 ? highlightTitleStyle : {}),
1090
976
  children: [
1091
- /* @__PURE__ */ _jsx9(Tag, {
977
+ /* @__PURE__ */ _jsx8(Tag, {
1092
978
  tag: item.tag
1093
979
  }),
1094
980
  item.text
1095
981
  ]
1096
982
  }),
1097
- collapsible && /* @__PURE__ */ _jsx9("div", {
983
+ collapsible && /* @__PURE__ */ _jsx8("div", {
1098
984
  className: `${index_module_default4.collapseContainer} p-2 rounded-xl`,
1099
985
  onClick: toggleCollapse,
1100
986
  children: collapsibleIcon
1101
987
  })
1102
988
  ]
1103
989
  }),
1104
- /* @__PURE__ */ _jsx9("div", {
990
+ /* @__PURE__ */ _jsx8("div", {
1105
991
  ref: containerRef,
1106
992
  className: "transition-all duration-300 ease-in-out",
1107
993
  style: {
1108
994
  overflow: "hidden",
1109
995
  maxHeight: initialState.current ? 0 : void 0
1110
996
  },
1111
- children: /* @__PURE__ */ _jsx9("div", {
997
+ children: /* @__PURE__ */ _jsx8("div", {
1112
998
  ref: innerRef,
1113
999
  className: "rspress-sidebar-group transition-opacity duration-500 ease-in-out",
1114
1000
  style: {
1115
- opacity: initialState.current ? 0 : 1
1001
+ opacity: initialState.current ? 0 : 1,
1002
+ marginLeft: depth === 0 ? "12px" : 0
1116
1003
  },
1117
1004
  children: (_item = item) === null || _item === void 0 ? void 0 : (_item_items = _item.items) === null || _item_items === void 0 ? void 0 : _item_items.map((item2, index) => (
1118
1005
  // eslint-disable-next-line react/no-array-index-key
1119
- /* @__PURE__ */ _jsx9("div", {
1120
- children: /* @__PURE__ */ _jsx9(SidebarItemComp, _object_spread_props4(_object_spread5({}, props), {
1006
+ /* @__PURE__ */ _jsx8("div", {
1007
+ children: /* @__PURE__ */ _jsx8(SidebarItem, _object_spread_props3(_object_spread4({}, props), {
1121
1008
  item: item2,
1122
1009
  depth: depth + 1,
1123
1010
  id: `${id}-${index}`,
@@ -1130,6 +1017,124 @@ function SidebarGroupComp(props) {
1130
1017
  ]
1131
1018
  }, id);
1132
1019
  }
1020
+
1021
+ // src/theme-default/components/Sidebar/SidebarItem.tsx
1022
+ import { normalizeHref as normalizeHref4 } from "@/runtime";
1023
+ function _define_property5(obj, key, value) {
1024
+ if (key in obj) {
1025
+ Object.defineProperty(obj, key, {
1026
+ value,
1027
+ enumerable: true,
1028
+ configurable: true,
1029
+ writable: true
1030
+ });
1031
+ } else {
1032
+ obj[key] = value;
1033
+ }
1034
+ return obj;
1035
+ }
1036
+ function _object_spread5(target) {
1037
+ for (var i = 1; i < arguments.length; i++) {
1038
+ var source = arguments[i] != null ? arguments[i] : {};
1039
+ var ownKeys32 = Object.keys(source);
1040
+ if (typeof Object.getOwnPropertySymbols === "function") {
1041
+ ownKeys32 = ownKeys32.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
1042
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
1043
+ }));
1044
+ }
1045
+ ownKeys32.forEach(function(key) {
1046
+ _define_property5(target, key, source[key]);
1047
+ });
1048
+ }
1049
+ return target;
1050
+ }
1051
+ function SidebarItem(props) {
1052
+ const { item, depth = 0, activeMatcher, id, setSidebarData } = props;
1053
+ const active = item.link && activeMatcher(item.link);
1054
+ const ref = useRef3(null);
1055
+ useEffect4(() => {
1056
+ if (active) {
1057
+ var _ref_current;
1058
+ (_ref_current = ref.current) === null || _ref_current === void 0 ? void 0 : _ref_current.scrollIntoView({
1059
+ block: "center"
1060
+ });
1061
+ }
1062
+ }, []);
1063
+ const { text } = item;
1064
+ if ("items" in item) {
1065
+ return /* @__PURE__ */ _jsx9(SidebarGroup, {
1066
+ id,
1067
+ item,
1068
+ depth,
1069
+ activeMatcher,
1070
+ collapsed: item.collapsed,
1071
+ setSidebarData,
1072
+ preloadLink: props.preloadLink
1073
+ }, `${item.text}-${id}`);
1074
+ } else {
1075
+ return /* @__PURE__ */ _jsx9(Link, {
1076
+ href: normalizeHref4(item.link),
1077
+ className: index_module_default4.menuLink,
1078
+ children: /* @__PURE__ */ _jsxs5("div", {
1079
+ ref,
1080
+ onMouseEnter: () => props.preloadLink(item.link),
1081
+ className: `${active ? index_module_default4.menuItemActive : index_module_default4.menuItem} mt-0.5 py-2 px-3 font-medium flex`,
1082
+ style: _object_spread5({
1083
+ // The first level menu item will have the same font size as the sidebar group
1084
+ fontSize: depth === 0 ? "14px" : "13px",
1085
+ marginLeft: depth === 0 ? 0 : "18px",
1086
+ borderRadius: "0 1rem 1rem 0"
1087
+ }, depth === 0 ? highlightTitleStyle : {}, active ? {
1088
+ color: "var(--rp-c-brand)"
1089
+ } : {}),
1090
+ children: [
1091
+ /* @__PURE__ */ _jsx9(Tag, {
1092
+ tag: item.tag
1093
+ }),
1094
+ text
1095
+ ]
1096
+ })
1097
+ });
1098
+ }
1099
+ }
1100
+
1101
+ // src/theme-default/components/Sidebar/index.tsx
1102
+ import { removeBase, usePageData as usePageData5 } from "@/runtime";
1103
+ function _define_property6(obj, key, value) {
1104
+ if (key in obj) {
1105
+ Object.defineProperty(obj, key, {
1106
+ value,
1107
+ enumerable: true,
1108
+ configurable: true,
1109
+ writable: true
1110
+ });
1111
+ } else {
1112
+ obj[key] = value;
1113
+ }
1114
+ return obj;
1115
+ }
1116
+ function _object_spread6(target) {
1117
+ for (var i = 1; i < arguments.length; i++) {
1118
+ var source = arguments[i] != null ? arguments[i] : {};
1119
+ var ownKeys32 = Object.keys(source);
1120
+ if (typeof Object.getOwnPropertySymbols === "function") {
1121
+ ownKeys32 = ownKeys32.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
1122
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
1123
+ }));
1124
+ }
1125
+ ownKeys32.forEach(function(key) {
1126
+ _define_property6(target, key, source[key]);
1127
+ });
1128
+ }
1129
+ return target;
1130
+ }
1131
+ var highlightTitleStyle = {
1132
+ color: "var(--rp-c-text-1)",
1133
+ fontSize: "14px",
1134
+ paddingLeft: "24px",
1135
+ fontWeight: "bold"
1136
+ };
1137
+ var matchCache = /* @__PURE__ */ new WeakMap();
1133
1138
  function SideBar(props) {
1134
1139
  var _frontmatter, _themeConfig;
1135
1140
  const { isSidebarOpen, langRoutePrefix, pathname: rawPathname, sidebarData: rawSidebarData } = props;
@@ -1138,8 +1143,11 @@ function SideBar(props) {
1138
1143
  const hideNavbar = (_ref = (_frontmatter_hideNavbar = (_frontmatter = frontmatter) === null || _frontmatter === void 0 ? void 0 : _frontmatter.hideNavbar) !== null && _frontmatter_hideNavbar !== void 0 ? _frontmatter_hideNavbar : (_themeConfig = themeConfig) === null || _themeConfig === void 0 ? void 0 : _themeConfig.hideNavbar) !== null && _ref !== void 0 ? _ref : false;
1139
1144
  const [sidebarData, setSidebarData] = useState2(rawSidebarData.filter(Boolean).flat());
1140
1145
  const pathname = decodeURIComponent(rawPathname);
1141
- useEffect3(() => {
1142
- const matchCache = /* @__PURE__ */ new WeakMap();
1146
+ useEffect5(() => {
1147
+ if (props.sidebarData === sidebarData) {
1148
+ return;
1149
+ }
1150
+ matchCache = /* @__PURE__ */ new WeakMap();
1143
1151
  const match = (item) => {
1144
1152
  if (matchCache.has(item)) {
1145
1153
  return matchCache.get(item);
@@ -1166,8 +1174,9 @@ function SideBar(props) {
1166
1174
  }
1167
1175
  }
1168
1176
  };
1169
- sidebarData.forEach(traverse);
1170
- setSidebarData(rawSidebarData.filter(Boolean).flat());
1177
+ const newSidebarData = props.sidebarData.filter(Boolean).flat();
1178
+ newSidebarData.forEach(traverse);
1179
+ setSidebarData(newSidebarData);
1171
1180
  }, [
1172
1181
  props.sidebarData,
1173
1182
  pathname
@@ -1185,22 +1194,22 @@ function SideBar(props) {
1185
1194
  }
1186
1195
  };
1187
1196
  var _item_collapsed;
1188
- return /* @__PURE__ */ _jsx9("aside", {
1197
+ return /* @__PURE__ */ _jsx10("aside", {
1189
1198
  className: `${index_module_default4.sidebar} rspress-sidebar ${isSidebarOpen ? index_module_default4.open : ""}`,
1190
- style: _object_spread5({}, hideNavbar ? {
1199
+ style: _object_spread6({}, hideNavbar ? {
1191
1200
  marginTop: 0
1192
1201
  } : {}),
1193
- children: /* @__PURE__ */ _jsx9("div", {
1202
+ children: /* @__PURE__ */ _jsx10("div", {
1194
1203
  className: `mt-1 ${index_module_default4.sidebarContent}`,
1195
- children: /* @__PURE__ */ _jsx9("div", {
1204
+ children: /* @__PURE__ */ _jsx10("div", {
1196
1205
  className: "rspress-scrollbar",
1197
1206
  style: {
1198
1207
  maxHeight: "calc(100vh - var(--rp-nav-height) - 8px)",
1199
1208
  overflow: "scroll"
1200
1209
  },
1201
- children: /* @__PURE__ */ _jsx9("nav", {
1202
- className: "pb-6",
1203
- children: sidebarData.map((item, index) => /* @__PURE__ */ _jsx9(SidebarItemComp, {
1210
+ children: /* @__PURE__ */ _jsx10("nav", {
1211
+ className: "pb-2",
1212
+ children: sidebarData.map((item, index) => /* @__PURE__ */ _jsx10(SidebarItem, {
1204
1213
  id: String(index),
1205
1214
  item,
1206
1215
  depth: 0,
@@ -1216,9 +1225,9 @@ function SideBar(props) {
1216
1225
  }
1217
1226
 
1218
1227
  // src/theme-default/assets/menu.svg
1219
- import { jsx as _jsx10 } from "react/jsx-runtime";
1228
+ import { jsx as _jsx11 } from "react/jsx-runtime";
1220
1229
  import * as React4 from "react";
1221
- function _define_property6(obj, key, value) {
1230
+ function _define_property7(obj, key, value) {
1222
1231
  if (key in obj) {
1223
1232
  Object.defineProperty(obj, key, {
1224
1233
  value,
@@ -1231,7 +1240,7 @@ function _define_property6(obj, key, value) {
1231
1240
  }
1232
1241
  return obj;
1233
1242
  }
1234
- function _object_spread6(target) {
1243
+ function _object_spread7(target) {
1235
1244
  for (var i = 1; i < arguments.length; i++) {
1236
1245
  var source = arguments[i] != null ? arguments[i] : {};
1237
1246
  var ownKeys32 = Object.keys(source);
@@ -1241,12 +1250,12 @@ function _object_spread6(target) {
1241
1250
  }));
1242
1251
  }
1243
1252
  ownKeys32.forEach(function(key) {
1244
- _define_property6(target, key, source[key]);
1253
+ _define_property7(target, key, source[key]);
1245
1254
  });
1246
1255
  }
1247
1256
  return target;
1248
1257
  }
1249
- function ownKeys5(object, enumerableOnly) {
1258
+ function ownKeys4(object, enumerableOnly) {
1250
1259
  var keys = Object.keys(object);
1251
1260
  if (Object.getOwnPropertySymbols) {
1252
1261
  var symbols = Object.getOwnPropertySymbols(object);
@@ -1259,23 +1268,23 @@ function ownKeys5(object, enumerableOnly) {
1259
1268
  }
1260
1269
  return keys;
1261
1270
  }
1262
- function _object_spread_props5(target, source) {
1271
+ function _object_spread_props4(target, source) {
1263
1272
  source = source != null ? source : {};
1264
1273
  if (Object.getOwnPropertyDescriptors) {
1265
1274
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
1266
1275
  } else {
1267
- ownKeys5(Object(source)).forEach(function(key) {
1276
+ ownKeys4(Object(source)).forEach(function(key) {
1268
1277
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
1269
1278
  });
1270
1279
  }
1271
1280
  return target;
1272
1281
  }
1273
- var SvgMenu = (props) => /* @__PURE__ */ _jsx10("svg", _object_spread_props5(_object_spread6({
1282
+ var SvgMenu = (props) => /* @__PURE__ */ _jsx11("svg", _object_spread_props4(_object_spread7({
1274
1283
  width: "1em",
1275
1284
  height: "1em",
1276
1285
  viewBox: "0 0 32 32"
1277
1286
  }, props), {
1278
- children: /* @__PURE__ */ _jsx10("path", {
1287
+ children: /* @__PURE__ */ _jsx11("path", {
1279
1288
  fill: "currentColor",
1280
1289
  d: "M4 6h24v2H4zm0 18h24v2H4zm0-12h24v2H4zm0 6h24v2H4z"
1281
1290
  })
@@ -1295,37 +1304,37 @@ function SideMenu(props) {
1295
1304
  function closeSidebar() {
1296
1305
  setIsOpen(false);
1297
1306
  }
1298
- useEffect4(() => {
1307
+ useEffect6(() => {
1299
1308
  setIsOpen(false);
1300
1309
  }, [
1301
1310
  pathname
1302
1311
  ]);
1303
1312
  return /* @__PURE__ */ _jsxs6(Fragment, {
1304
1313
  children: [
1305
- /* @__PURE__ */ _jsx11("div", {
1314
+ /* @__PURE__ */ _jsx12("div", {
1306
1315
  className: index_module_default5.localNav,
1307
1316
  children: /* @__PURE__ */ _jsxs6("button", {
1308
1317
  onClick: openSidebar,
1309
1318
  className: `${index_module_default5.menu} flex-center`,
1310
1319
  children: [
1311
- /* @__PURE__ */ _jsx11("div", {
1320
+ /* @__PURE__ */ _jsx12("div", {
1312
1321
  className: "text-md mr-2",
1313
- children: /* @__PURE__ */ _jsx11(menu_default, {})
1322
+ children: /* @__PURE__ */ _jsx12(menu_default, {})
1314
1323
  }),
1315
- /* @__PURE__ */ _jsx11("span", {
1324
+ /* @__PURE__ */ _jsx12("span", {
1316
1325
  className: "text-sm",
1317
1326
  children: "Menu"
1318
1327
  })
1319
1328
  ]
1320
1329
  })
1321
1330
  }),
1322
- /* @__PURE__ */ _jsx11(SideBar, {
1331
+ /* @__PURE__ */ _jsx12(SideBar, {
1323
1332
  langRoutePrefix,
1324
1333
  pathname,
1325
1334
  sidebarData,
1326
1335
  isSidebarOpen
1327
1336
  }),
1328
- isSidebarOpen ? /* @__PURE__ */ _jsx11("div", {
1337
+ isSidebarOpen ? /* @__PURE__ */ _jsx12("div", {
1329
1338
  onClick: closeSidebar,
1330
1339
  className: index_module_default5.backDrop
1331
1340
  }) : null
@@ -1334,15 +1343,15 @@ function SideMenu(props) {
1334
1343
  }
1335
1344
 
1336
1345
  // src/theme-default/components/Overview/index.tsx
1337
- import { jsx as _jsx12, jsxs as _jsxs7 } from "react/jsx-runtime";
1346
+ import { jsx as _jsx13, jsxs as _jsxs7 } from "react/jsx-runtime";
1338
1347
  import { useMemo } from "react";
1339
1348
 
1340
1349
  // src/theme-default/components/Overview/index.module.scss
1341
1350
  var index_module_default6 = { "header-anchor": "header-anchor_90d29", "headerAnchor": "header-anchor_90d29", "overview-groups": "overview-groups_90d29", "overviewGroups": "overview-groups_90d29", "overview-group-li": "overview-group-li_90d29", "overviewGroupLi": "overview-group-li_90d29", "level-2": "level-2_90d29", "level2": "level-2_90d29", "overview-group": "overview-group_90d29", "overviewGroup": "overview-group_90d29", "header": "header_90d29" };
1342
1351
 
1343
1352
  // src/theme-default/components/Overview/index.tsx
1344
- import { usePageData as usePageData6, normalizeHref as normalizeHref4, withBase as withBase5, isEqualPath as isEqualPath4 } from "@/runtime";
1345
- function _define_property7(obj, key, value) {
1353
+ import { usePageData as usePageData6, normalizeHref as normalizeHref5, withBase as withBase5, isEqualPath as isEqualPath4 } from "@/runtime";
1354
+ function _define_property8(obj, key, value) {
1346
1355
  if (key in obj) {
1347
1356
  Object.defineProperty(obj, key, {
1348
1357
  value,
@@ -1355,7 +1364,7 @@ function _define_property7(obj, key, value) {
1355
1364
  }
1356
1365
  return obj;
1357
1366
  }
1358
- function _object_spread7(target) {
1367
+ function _object_spread8(target) {
1359
1368
  for (var i = 1; i < arguments.length; i++) {
1360
1369
  var source = arguments[i] != null ? arguments[i] : {};
1361
1370
  var ownKeys32 = Object.keys(source);
@@ -1365,12 +1374,12 @@ function _object_spread7(target) {
1365
1374
  }));
1366
1375
  }
1367
1376
  ownKeys32.forEach(function(key) {
1368
- _define_property7(target, key, source[key]);
1377
+ _define_property8(target, key, source[key]);
1369
1378
  });
1370
1379
  }
1371
1380
  return target;
1372
1381
  }
1373
- function ownKeys6(object, enumerableOnly) {
1382
+ function ownKeys5(object, enumerableOnly) {
1374
1383
  var keys = Object.keys(object);
1375
1384
  if (Object.getOwnPropertySymbols) {
1376
1385
  var symbols = Object.getOwnPropertySymbols(object);
@@ -1383,12 +1392,12 @@ function ownKeys6(object, enumerableOnly) {
1383
1392
  }
1384
1393
  return keys;
1385
1394
  }
1386
- function _object_spread_props6(target, source) {
1395
+ function _object_spread_props5(target, source) {
1387
1396
  source = source != null ? source : {};
1388
1397
  if (Object.getOwnPropertyDescriptors) {
1389
1398
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
1390
1399
  } else {
1391
- ownKeys6(Object(source)).forEach(function(key) {
1400
+ ownKeys5(Object(source)).forEach(function(key) {
1392
1401
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
1393
1402
  });
1394
1403
  }
@@ -1413,7 +1422,7 @@ function Overview() {
1413
1422
  return "";
1414
1423
  };
1415
1424
  const link = getChildLink(item);
1416
- return _object_spread_props6(_object_spread7({}, item), {
1425
+ return _object_spread_props5(_object_spread8({}, item), {
1417
1426
  link,
1418
1427
  headers: ((_pageModule = pageModule) === null || _pageModule === void 0 ? void 0 : (_pageModule_toc = _pageModule.toc) === null || _pageModule_toc === void 0 ? void 0 : _pageModule_toc.filter((header) => header.depth === 2)) || []
1419
1428
  });
@@ -1439,47 +1448,47 @@ function Overview() {
1439
1448
  return /* @__PURE__ */ _jsxs7("div", {
1440
1449
  className: "overview-index mx-auto px-8",
1441
1450
  children: [
1442
- /* @__PURE__ */ _jsx12("div", {
1451
+ /* @__PURE__ */ _jsx13("div", {
1443
1452
  className: "flex items-center justify-between",
1444
- children: /* @__PURE__ */ _jsx12("h1", {
1453
+ children: /* @__PURE__ */ _jsx13("h1", {
1445
1454
  children: "Overview"
1446
1455
  })
1447
1456
  }),
1448
1457
  groups.map((group) => /* @__PURE__ */ _jsxs7("div", {
1449
1458
  className: "mb-16",
1450
1459
  children: [
1451
- group.name === DEFAULT_GROUP && groups.length === 1 ? /* @__PURE__ */ _jsx12("h2", {
1460
+ group.name === DEFAULT_GROUP && groups.length === 1 ? /* @__PURE__ */ _jsx13("h2", {
1452
1461
  style: {
1453
1462
  paddingTop: 0
1454
1463
  }
1455
- }) : /* @__PURE__ */ _jsx12("h2", {
1464
+ }) : /* @__PURE__ */ _jsx13("h2", {
1456
1465
  children: group.name
1457
1466
  }),
1458
- /* @__PURE__ */ _jsx12("div", {
1467
+ /* @__PURE__ */ _jsx13("div", {
1459
1468
  className: index_module_default6.overviewGroups,
1460
1469
  children: group.items.map((item) => {
1461
1470
  var _item_headers;
1462
1471
  return /* @__PURE__ */ _jsxs7("div", {
1463
1472
  className: index_module_default6.overviewGroup,
1464
1473
  children: [
1465
- /* @__PURE__ */ _jsx12("div", {
1474
+ /* @__PURE__ */ _jsx13("div", {
1466
1475
  className: "flex",
1467
- children: /* @__PURE__ */ _jsx12("h3", {
1476
+ children: /* @__PURE__ */ _jsx13("h3", {
1468
1477
  style: {
1469
1478
  marginBottom: 8
1470
1479
  },
1471
- children: /* @__PURE__ */ _jsx12(Link, {
1472
- href: normalizeHref4(item.link),
1480
+ children: /* @__PURE__ */ _jsx13(Link, {
1481
+ href: normalizeHref5(item.link),
1473
1482
  children: item.text
1474
1483
  })
1475
1484
  })
1476
1485
  }),
1477
- /* @__PURE__ */ _jsx12("ul", {
1486
+ /* @__PURE__ */ _jsx13("ul", {
1478
1487
  className: "list-none",
1479
- children: (_item_headers = item.headers) === null || _item_headers === void 0 ? void 0 : _item_headers.map((header) => /* @__PURE__ */ _jsx12("li", {
1488
+ children: (_item_headers = item.headers) === null || _item_headers === void 0 ? void 0 : _item_headers.map((header) => /* @__PURE__ */ _jsx13("li", {
1480
1489
  className: `${index_module_default6.overviewGroupLi} ${index_module_default6[`level${header.depth}`]} first:mt-2`,
1481
- children: /* @__PURE__ */ _jsx12(Link, {
1482
- href: `${normalizeHref4(item.link)}#${header.id}`,
1490
+ children: /* @__PURE__ */ _jsx13(Link, {
1491
+ href: `${normalizeHref5(item.link)}#${header.id}`,
1483
1492
  children: header.text
1484
1493
  })
1485
1494
  }, header.id))
@@ -1503,7 +1512,7 @@ var index_module_default7 = { "aside-container": "aside-container_feeda", "aside
1503
1512
 
1504
1513
  // src/theme-default/layout/DocLayout/index.tsx
1505
1514
  import { Content, usePageData as usePageData7, normalizeSlash } from "@/runtime";
1506
- function _define_property8(obj, key, value) {
1515
+ function _define_property9(obj, key, value) {
1507
1516
  if (key in obj) {
1508
1517
  Object.defineProperty(obj, key, {
1509
1518
  value,
@@ -1516,7 +1525,7 @@ function _define_property8(obj, key, value) {
1516
1525
  }
1517
1526
  return obj;
1518
1527
  }
1519
- function _object_spread8(target) {
1528
+ function _object_spread9(target) {
1520
1529
  for (var i = 1; i < arguments.length; i++) {
1521
1530
  var source = arguments[i] != null ? arguments[i] : {};
1522
1531
  var ownKeys32 = Object.keys(source);
@@ -1526,7 +1535,7 @@ function _object_spread8(target) {
1526
1535
  }));
1527
1536
  }
1528
1537
  ownKeys32.forEach(function(key) {
1529
- _define_property8(target, key, source[key]);
1538
+ _define_property9(target, key, source[key]);
1530
1539
  });
1531
1540
  }
1532
1541
  return target;
@@ -1559,7 +1568,7 @@ function DocLayout(props) {
1559
1568
  return ((_ref2 = (_frontmatter_outline = (_frontmatter4 = frontmatter) === null || _frontmatter4 === void 0 ? void 0 : _frontmatter4.outline) !== null && _frontmatter_outline !== void 0 ? _frontmatter_outline : (_themeConfig2 = themeConfig) === null || _themeConfig2 === void 0 ? void 0 : _themeConfig2.outline) !== null && _ref2 !== void 0 ? _ref2 : defaultHasAside) && headers.length > 0;
1560
1569
  };
1561
1570
  const [hasAside, setHasAside] = useState4(getHasAside());
1562
- useEffect5(() => {
1571
+ useEffect7(() => {
1563
1572
  setHasAside(getHasAside());
1564
1573
  }, [
1565
1574
  page,
@@ -1567,12 +1576,12 @@ function DocLayout(props) {
1567
1576
  ]);
1568
1577
  return /* @__PURE__ */ _jsxs8("div", {
1569
1578
  className: `${index_module_default7.docLayout} pt-0`,
1570
- style: _object_spread8({}, hideNavbar ? {
1579
+ style: _object_spread9({}, hideNavbar ? {
1571
1580
  marginTop: 0
1572
1581
  } : {}),
1573
1582
  children: [
1574
1583
  beforeDoc,
1575
- hasSidebar ? /* @__PURE__ */ _jsx13(SideMenu, {
1584
+ hasSidebar ? /* @__PURE__ */ _jsx14(SideMenu, {
1576
1585
  pathname,
1577
1586
  langRoutePrefix,
1578
1587
  sidebarData
@@ -1580,33 +1589,33 @@ function DocLayout(props) {
1580
1589
  /* @__PURE__ */ _jsxs8("div", {
1581
1590
  className: `${index_module_default7.content} rspress-doc-container flex flex-shrink-0`,
1582
1591
  children: [
1583
- /* @__PURE__ */ _jsx13("div", {
1592
+ /* @__PURE__ */ _jsx14("div", {
1584
1593
  className: "w-full",
1585
- children: isOverviewPage ? /* @__PURE__ */ _jsx13(Overview, {}) : /* @__PURE__ */ _jsxs8("div", {
1594
+ children: isOverviewPage ? /* @__PURE__ */ _jsx14(Overview, {}) : /* @__PURE__ */ _jsxs8("div", {
1586
1595
  className: "rspress-doc",
1587
1596
  children: [
1588
- /* @__PURE__ */ _jsx13(TabDataContext.Provider, {
1597
+ /* @__PURE__ */ _jsx14(TabDataContext.Provider, {
1589
1598
  value: {
1590
1599
  tabData,
1591
1600
  setTabData
1592
1601
  },
1593
- children: /* @__PURE__ */ _jsx13(MDXProvider, {
1602
+ children: /* @__PURE__ */ _jsx14(MDXProvider, {
1594
1603
  components: getCustomMDXComponent(),
1595
- children: /* @__PURE__ */ _jsx13(Content, {})
1604
+ children: /* @__PURE__ */ _jsx14(Content, {})
1596
1605
  })
1597
1606
  }),
1598
1607
  /* @__PURE__ */ _jsxs8("div", {
1599
1608
  children: [
1600
1609
  beforeDocFooter,
1601
- hasFooter && /* @__PURE__ */ _jsx13(DocFooter, {})
1610
+ hasFooter && /* @__PURE__ */ _jsx14(DocFooter, {})
1602
1611
  ]
1603
1612
  })
1604
1613
  ]
1605
1614
  })
1606
1615
  }),
1607
- hasAside ? /* @__PURE__ */ _jsx13("div", {
1616
+ hasAside ? /* @__PURE__ */ _jsx14("div", {
1608
1617
  className: index_module_default7.asideContainer,
1609
- style: _object_spread8({
1618
+ style: _object_spread9({
1610
1619
  maxHeight: "calc(100vh - (var(--rp-nav-height) + 32px))",
1611
1620
  overflow: "scroll"
1612
1621
  }, hideNavbar ? {
@@ -1616,7 +1625,7 @@ function DocLayout(props) {
1616
1625
  children: /* @__PURE__ */ _jsxs8("div", {
1617
1626
  children: [
1618
1627
  beforeOutline,
1619
- /* @__PURE__ */ _jsx13(Aside, {
1628
+ /* @__PURE__ */ _jsx14(Aside, {
1620
1629
  headers,
1621
1630
  outlineTitle
1622
1631
  }),
@@ -1633,7 +1642,7 @@ function DocLayout(props) {
1633
1642
 
1634
1643
  // src/theme-default/layout/Layout/index.tsx
1635
1644
  import { usePageData as usePageData8, Content as Content2, removeBase as removeBase2, withBase as withBase6 } from "@/runtime";
1636
- function _define_property9(obj, key, value) {
1645
+ function _define_property10(obj, key, value) {
1637
1646
  if (key in obj) {
1638
1647
  Object.defineProperty(obj, key, {
1639
1648
  value,
@@ -1646,7 +1655,7 @@ function _define_property9(obj, key, value) {
1646
1655
  }
1647
1656
  return obj;
1648
1657
  }
1649
- function _object_spread9(target) {
1658
+ function _object_spread10(target) {
1650
1659
  for (var i = 1; i < arguments.length; i++) {
1651
1660
  var source = arguments[i] != null ? arguments[i] : {};
1652
1661
  var ownKeys32 = Object.keys(source);
@@ -1656,7 +1665,7 @@ function _object_spread9(target) {
1656
1665
  }));
1657
1666
  }
1658
1667
  ownKeys32.forEach(function(key) {
1659
- _define_property9(target, key, source[key]);
1668
+ _define_property10(target, key, source[key]);
1660
1669
  });
1661
1670
  }
1662
1671
  return target;
@@ -1682,10 +1691,10 @@ var Layout = (props) => {
1682
1691
  } = page;
1683
1692
  const localesData = useLocaleSiteData();
1684
1693
  const defaultLang = siteData2.lang || "";
1685
- var _frontmatter_hideNavbar, _ref;
1686
- const hideNavbar = (_ref = (_frontmatter_hideNavbar = (_frontmatter = frontmatter) === null || _frontmatter === void 0 ? void 0 : _frontmatter.hideNavbar) !== null && _frontmatter_hideNavbar !== void 0 ? _frontmatter_hideNavbar : (_themeConfig = themeConfig) === null || _themeConfig === void 0 ? void 0 : _themeConfig.hideNavbar) !== null && _ref !== void 0 ? _ref : false;
1687
- var _ref1;
1688
- let title = (_ref1 = (_frontmatter1 = frontmatter) === null || _frontmatter1 === void 0 ? void 0 : _frontmatter1.title) !== null && _ref1 !== void 0 ? _ref1 : articleTitle;
1694
+ var _frontmatter_navbar, _themeConfig_hideNavbar;
1695
+ const hideNavbar = !((_frontmatter_navbar = (_frontmatter = frontmatter) === null || _frontmatter === void 0 ? void 0 : _frontmatter.navbar) !== null && _frontmatter_navbar !== void 0 ? _frontmatter_navbar : true) || ((_themeConfig_hideNavbar = (_themeConfig = themeConfig) === null || _themeConfig === void 0 ? void 0 : _themeConfig.hideNavbar) !== null && _themeConfig_hideNavbar !== void 0 ? _themeConfig_hideNavbar : false);
1696
+ var _ref;
1697
+ let title = (_ref = (_frontmatter1 = frontmatter) === null || _frontmatter1 === void 0 ? void 0 : _frontmatter1.title) !== null && _ref !== void 0 ? _ref : articleTitle;
1689
1698
  const mainTitle = siteData2.title || localesData.title;
1690
1699
  const localeLanguages = Object.values(siteData2.themeConfig.locales || {});
1691
1700
  const langs = localeLanguages.map((item) => item.lang) || [];
@@ -1698,19 +1707,19 @@ var Layout = (props) => {
1698
1707
  const getContentLayout = () => {
1699
1708
  switch (pageType) {
1700
1709
  case "home":
1701
- return /* @__PURE__ */ _jsx14(Theme.HomeLayout, {});
1710
+ return /* @__PURE__ */ _jsx15(Theme.HomeLayout, {});
1702
1711
  case "doc":
1703
- return /* @__PURE__ */ _jsx14(DocLayout, _object_spread9({}, docProps));
1712
+ return /* @__PURE__ */ _jsx15(DocLayout, _object_spread10({}, docProps));
1704
1713
  case "404":
1705
- return /* @__PURE__ */ _jsx14(Theme.NotFoundLayout, {});
1714
+ return /* @__PURE__ */ _jsx15(Theme.NotFoundLayout, {});
1706
1715
  case "custom":
1707
1716
  case "blank":
1708
- return /* @__PURE__ */ _jsx14(Content2, {});
1717
+ return /* @__PURE__ */ _jsx15(Content2, {});
1709
1718
  default:
1710
- return /* @__PURE__ */ _jsx14(DocLayout, _object_spread9({}, docProps));
1719
+ return /* @__PURE__ */ _jsx15(DocLayout, _object_spread10({}, docProps));
1711
1720
  }
1712
1721
  };
1713
- useEffect6(() => {
1722
+ useEffect8(() => {
1714
1723
  if (!defaultLang || process.env.TEST === "1") {
1715
1724
  return;
1716
1725
  }
@@ -1741,41 +1750,51 @@ var Layout = (props) => {
1741
1750
  children: [
1742
1751
  /* @__PURE__ */ _jsxs9(Helmet, {
1743
1752
  children: [
1744
- title ? /* @__PURE__ */ _jsx14("title", {
1753
+ title ? /* @__PURE__ */ _jsx15("title", {
1745
1754
  children: title
1746
1755
  }) : null,
1747
- description ? /* @__PURE__ */ _jsx14("meta", {
1756
+ description ? /* @__PURE__ */ _jsx15("meta", {
1748
1757
  name: "description",
1749
1758
  content: description
1750
1759
  }) : null
1751
1760
  ]
1752
1761
  }),
1753
1762
  top,
1754
- pageType !== "blank" && !hideNavbar && /* @__PURE__ */ _jsx14(Nav, {
1763
+ pageType !== "blank" && !hideNavbar && /* @__PURE__ */ _jsx15(Nav, {
1755
1764
  beforeNavTitle,
1756
1765
  afterNavTitle,
1757
1766
  beforeNav
1758
1767
  }),
1759
- /* @__PURE__ */ _jsx14("section", {
1768
+ /* @__PURE__ */ _jsx15("section", {
1760
1769
  children: getContentLayout()
1761
1770
  }),
1762
1771
  bottom,
1763
1772
  // Global UI
1764
- globalComponents.map((Component, index) => (
1765
- // The component order is stable
1766
- // eslint-disable-next-line react/no-array-index-key
1767
- /* @__PURE__ */ _jsx14(Component, {}, index)
1768
- ))
1773
+ globalComponents.map((componentInfo, index) => {
1774
+ if (Array.isArray(componentInfo)) {
1775
+ const [component, props2] = componentInfo;
1776
+ return /* @__PURE__ */ React5.createElement(component, _object_spread10({
1777
+ // The component order is stable
1778
+ // eslint-disable-next-line react/no-array-index-key
1779
+ key: index
1780
+ }, props2));
1781
+ } else {
1782
+ return /* @__PURE__ */ React5.createElement(componentInfo, {
1783
+ // eslint-disable-next-line react/no-array-index-key
1784
+ key: index
1785
+ });
1786
+ }
1787
+ })
1769
1788
  ]
1770
1789
  });
1771
1790
  };
1772
1791
 
1773
1792
  // src/theme-default/layout/HomeLayout/index.tsx
1774
- import { jsx as _jsx17, jsxs as _jsxs12 } from "react/jsx-runtime";
1793
+ import { jsx as _jsx18, jsxs as _jsxs12 } from "react/jsx-runtime";
1775
1794
  import { HomeFooter } from "@theme";
1776
1795
 
1777
1796
  // src/theme-default/components/HomeHero/index.tsx
1778
- import { jsx as _jsx15, jsxs as _jsxs10 } from "react/jsx-runtime";
1797
+ import { jsx as _jsx16, jsxs as _jsxs10 } from "react/jsx-runtime";
1779
1798
 
1780
1799
  // src/theme-default/components/Button/index.tsx
1781
1800
  import React6 from "react";
@@ -1802,7 +1821,7 @@ function Button(props) {
1802
1821
  var index_module_default9 = { "clip": "clip_1e4a0", "mask": "mask_1e4a0" };
1803
1822
 
1804
1823
  // src/theme-default/components/HomeHero/index.tsx
1805
- import { normalizeHref as normalizeHref5 } from "@/runtime";
1824
+ import { normalizeHref as normalizeHref6 } from "@/runtime";
1806
1825
  var DEFAULT_HERO = {
1807
1826
  name: "modern",
1808
1827
  text: "modern ssg",
@@ -1817,7 +1836,7 @@ function HomeHero({ frontmatter }) {
1817
1836
  return /* @__PURE__ */ _jsxs10("div", {
1818
1837
  className: "m-auto pt-0 px-6 pb-12 sm:pt-10 sm:px-16 md:pt-16 md:px-16 md:pb-16",
1819
1838
  children: [
1820
- /* @__PURE__ */ _jsx15("div", {
1839
+ /* @__PURE__ */ _jsx16("div", {
1821
1840
  className: index_module_default9.mask,
1822
1841
  style: {
1823
1842
  left: hasImage ? "75%" : "50%"
@@ -1829,44 +1848,44 @@ function HomeHero({ frontmatter }) {
1829
1848
  /* @__PURE__ */ _jsxs10("div", {
1830
1849
  className: "flex flex-col justify-center text-center max-w-xl sm:max-w-4xl m-auto order-2 md:order-1",
1831
1850
  children: [
1832
- /* @__PURE__ */ _jsx15("h1", {
1833
- className: "font-bold text-3xl sm:text-6xl md:text-7xl m-auto sm:m-4 md:m-0 md:pb-3 lg:pb-5 leading-tight z-10",
1834
- children: /* @__PURE__ */ _jsx15("span", {
1851
+ /* @__PURE__ */ _jsx16("h1", {
1852
+ className: "font-bold text-3xl sm:text-6xl md:text-7xl m-auto sm:m-4 md:m-0 md:pb-3 lg:pb-2 leading-tight z-10",
1853
+ children: /* @__PURE__ */ _jsx16("span", {
1835
1854
  className: index_module_default9.clip,
1836
1855
  style: {
1837
- lineHeight: "1.15"
1856
+ lineHeight: "1.3"
1838
1857
  },
1839
1858
  children: hero.name
1840
1859
  })
1841
1860
  }),
1842
- ((_hero_text = hero.text) === null || _hero_text === void 0 ? void 0 : _hero_text.length) && /* @__PURE__ */ _jsx15("p", {
1861
+ ((_hero_text = hero.text) === null || _hero_text === void 0 ? void 0 : _hero_text.length) && /* @__PURE__ */ _jsx16("p", {
1843
1862
  className: `mx-auto md:m-0 text-3xl sm:text-5xl md:text-6xl pb-2 font-bold z-10 max-w-392px ${hasImage ? "sm:max-w-xl" : "sm:max-w-4xl"}`,
1844
1863
  style: {
1845
- lineHeight: "1.15"
1864
+ lineHeight: "1.2"
1846
1865
  },
1847
1866
  children: hero.text
1848
1867
  }),
1849
- /* @__PURE__ */ _jsx15("p", {
1868
+ /* @__PURE__ */ _jsx16("p", {
1850
1869
  className: "whitespace-pre-wrap pt-4 m-auto md:m-0 text-sm sm:tex-xl md:text-2xl text-text-2 font-medium z-10",
1851
1870
  children: hero.tagline
1852
1871
  }),
1853
- /* @__PURE__ */ _jsx15("div", {
1872
+ /* @__PURE__ */ _jsx16("div", {
1854
1873
  className: "flex flex-wrap justify-center gap-3 m--1.5 pt-8 z-10",
1855
- children: hero.actions.map((action) => /* @__PURE__ */ _jsx15("div", {
1874
+ children: hero.actions.map((action) => /* @__PURE__ */ _jsx16("div", {
1856
1875
  className: "flex flex-shrink-0 p-1",
1857
- children: /* @__PURE__ */ _jsx15(Button, {
1876
+ children: /* @__PURE__ */ _jsx16(Button, {
1858
1877
  type: "a",
1859
1878
  text: action.text,
1860
- href: normalizeHref5(action.link),
1879
+ href: normalizeHref6(action.link),
1861
1880
  theme: action.theme
1862
1881
  })
1863
1882
  }, action.link))
1864
1883
  })
1865
1884
  ]
1866
1885
  }),
1867
- hasImage ? /* @__PURE__ */ _jsx15("div", {
1868
- className: "rspress-home-hero-image sm:max-w-60 sm:max-h-60 md:flex-center m-auto order-1 md:order-2 sm:flex md:none lg:flex",
1869
- children: /* @__PURE__ */ _jsx15("img", {
1886
+ hasImage ? /* @__PURE__ */ _jsx16("div", {
1887
+ className: "rspress-home-hero-image md:flex-center m-auto order-1 md:order-2 sm:flex md:none lg:flex",
1888
+ children: /* @__PURE__ */ _jsx16("img", {
1870
1889
  src: (_hero_image = hero.image) === null || _hero_image === void 0 ? void 0 : _hero_image.src,
1871
1890
  alt: (_hero_image1 = hero.image) === null || _hero_image1 === void 0 ? void 0 : _hero_image1.alt
1872
1891
  })
@@ -1878,7 +1897,7 @@ function HomeHero({ frontmatter }) {
1878
1897
  }
1879
1898
 
1880
1899
  // src/theme-default/components/HomeFeatures/index.tsx
1881
- import { jsx as _jsx16, jsxs as _jsxs11 } from "react/jsx-runtime";
1900
+ import { jsx as _jsx17, jsxs as _jsxs11 } from "react/jsx-runtime";
1882
1901
 
1883
1902
  // src/theme-default/components/HomeFeatures/index.module.scss
1884
1903
  var index_module_default10 = { "grid-2": "grid-2_7983b", "grid2": "grid-2_7983b", "grid-4": "grid-4_7983b", "grid4": "grid-4_7983b", "grid-6": "grid-6_7983b", "grid6": "grid-6_7983b", "grid-3": "grid-3_7983b", "grid3": "grid-3_7983b", "featureCard": "featureCard_7983b" };
@@ -1905,13 +1924,13 @@ function HomeFeature({ frontmatter }) {
1905
1924
  var _frontmatter, _features, _features1;
1906
1925
  const features = (_frontmatter = frontmatter) === null || _frontmatter === void 0 ? void 0 : _frontmatter.features;
1907
1926
  const gridClass = getGridClass((_features = features) === null || _features === void 0 ? void 0 : _features.length);
1908
- return /* @__PURE__ */ _jsx16("div", {
1927
+ return /* @__PURE__ */ _jsx17("div", {
1909
1928
  className: "overflow-hidden m-auto flex flex-wrap justify-between max-w-6xl",
1910
1929
  children: (_features1 = features) === null || _features1 === void 0 ? void 0 : _features1.map((feature) => {
1911
1930
  const { icon, title, details, link } = feature;
1912
- return /* @__PURE__ */ _jsx16("div", {
1931
+ return /* @__PURE__ */ _jsx17("div", {
1913
1932
  className: `${gridClass ? index_module_default10[gridClass] : "w-full"} rounded hover:var(--rp-c-brand)`,
1914
- children: /* @__PURE__ */ _jsx16("div", {
1933
+ children: /* @__PURE__ */ _jsx17("div", {
1915
1934
  className: "h-full p-2",
1916
1935
  children: /* @__PURE__ */ _jsxs11("article", {
1917
1936
  className: `${index_module_default10.featureCard} h-full p-8 rounded-4xl border-transparent`,
@@ -1924,18 +1943,18 @@ function HomeFeature({ frontmatter }) {
1924
1943
  }
1925
1944
  },
1926
1945
  children: [
1927
- /* @__PURE__ */ _jsx16("div", {
1946
+ /* @__PURE__ */ _jsx17("div", {
1928
1947
  className: "flex-center",
1929
- children: /* @__PURE__ */ _jsx16("div", {
1948
+ children: /* @__PURE__ */ _jsx17("div", {
1930
1949
  className: "rspress-home-feature-icon w-12 h-12 text-3xl text-center",
1931
1950
  children: icon
1932
1951
  })
1933
1952
  }),
1934
- /* @__PURE__ */ _jsx16("h2", {
1953
+ /* @__PURE__ */ _jsx17("h2", {
1935
1954
  className: "rspress-home-feature-title font-bold text-center",
1936
1955
  children: title
1937
1956
  }),
1938
- /* @__PURE__ */ _jsx16("p", {
1957
+ /* @__PURE__ */ _jsx17("p", {
1939
1958
  className: "rspress-home-feature-detail leading-6 pt-2 text-sm text-text-2 font-medium",
1940
1959
  children: details
1941
1960
  })
@@ -1963,46 +1982,46 @@ function HomeLayout(props) {
1963
1982
  className: "mt-14 pb-12",
1964
1983
  children: [
1965
1984
  beforeHero,
1966
- /* @__PURE__ */ _jsx17(HomeHero, {
1985
+ /* @__PURE__ */ _jsx18(HomeHero, {
1967
1986
  frontmatter
1968
1987
  }),
1969
1988
  afterHero,
1970
1989
  beforeFeatures,
1971
- /* @__PURE__ */ _jsx17(HomeFeature, {
1990
+ /* @__PURE__ */ _jsx18(HomeFeature, {
1972
1991
  frontmatter
1973
1992
  }),
1974
1993
  afterFeatures
1975
1994
  ]
1976
1995
  }),
1977
- /* @__PURE__ */ _jsx17(HomeFooter, {})
1996
+ /* @__PURE__ */ _jsx18(HomeFooter, {})
1978
1997
  ]
1979
1998
  });
1980
1999
  }
1981
2000
 
1982
2001
  // src/theme-default/components/Nav/index.tsx
1983
- import { jsx as _jsx35, jsxs as _jsxs23 } from "react/jsx-runtime";
2002
+ import { jsx as _jsx36, jsxs as _jsxs23 } from "react/jsx-runtime";
1984
2003
  import { replaceLang } from "@rspress/shared";
1985
2004
  import { useLocation as useLocation4 } from "react-router-dom";
1986
2005
  import { Search } from "@theme";
1987
- import { useContext as useContext3, useEffect as useEffect9, useState as useState10 } from "react";
2006
+ import { useContext as useContext3, useEffect as useEffect11, useState as useState10 } from "react";
1988
2007
 
1989
2008
  // src/theme-default/components/NavHambmger/index.tsx
1990
- import { jsx as _jsx33, jsxs as _jsxs21 } from "react/jsx-runtime";
2009
+ import { jsx as _jsx34, jsxs as _jsxs21 } from "react/jsx-runtime";
1991
2010
  import { Fragment as Fragment2 } from "react";
1992
2011
 
1993
2012
  // src/theme-default/components/NavScreen/index.tsx
1994
- import { jsx as _jsx31, jsxs as _jsxs19 } from "react/jsx-runtime";
1995
- import { useContext as useContext2, useEffect as useEffect8, useRef as useRef3 } from "react";
2013
+ import { jsx as _jsx32, jsxs as _jsxs19 } from "react/jsx-runtime";
2014
+ import { useContext as useContext2, useEffect as useEffect10, useRef as useRef4 } from "react";
1996
2015
  import { disableBodyScroll, clearAllBodyScrollLocks } from "body-scroll-lock";
1997
2016
 
1998
2017
  // src/theme-default/components/NavScreenMenuGroup/NavScreenMenuGroup.tsx
1999
- import { jsx as _jsx19, jsxs as _jsxs13 } from "react/jsx-runtime";
2018
+ import { jsx as _jsx20, jsxs as _jsxs13 } from "react/jsx-runtime";
2000
2019
  import { useState as useState5 } from "react";
2001
2020
 
2002
2021
  // src/theme-default/assets/down.svg
2003
- import { jsx as _jsx18 } from "react/jsx-runtime";
2022
+ import { jsx as _jsx19 } from "react/jsx-runtime";
2004
2023
  import * as React7 from "react";
2005
- function _define_property10(obj, key, value) {
2024
+ function _define_property11(obj, key, value) {
2006
2025
  if (key in obj) {
2007
2026
  Object.defineProperty(obj, key, {
2008
2027
  value,
@@ -2015,7 +2034,7 @@ function _define_property10(obj, key, value) {
2015
2034
  }
2016
2035
  return obj;
2017
2036
  }
2018
- function _object_spread10(target) {
2037
+ function _object_spread11(target) {
2019
2038
  for (var i = 1; i < arguments.length; i++) {
2020
2039
  var source = arguments[i] != null ? arguments[i] : {};
2021
2040
  var ownKeys32 = Object.keys(source);
@@ -2025,12 +2044,12 @@ function _object_spread10(target) {
2025
2044
  }));
2026
2045
  }
2027
2046
  ownKeys32.forEach(function(key) {
2028
- _define_property10(target, key, source[key]);
2047
+ _define_property11(target, key, source[key]);
2029
2048
  });
2030
2049
  }
2031
2050
  return target;
2032
2051
  }
2033
- function ownKeys7(object, enumerableOnly) {
2052
+ function ownKeys6(object, enumerableOnly) {
2034
2053
  var keys = Object.keys(object);
2035
2054
  if (Object.getOwnPropertySymbols) {
2036
2055
  var symbols = Object.getOwnPropertySymbols(object);
@@ -2043,23 +2062,23 @@ function ownKeys7(object, enumerableOnly) {
2043
2062
  }
2044
2063
  return keys;
2045
2064
  }
2046
- function _object_spread_props7(target, source) {
2065
+ function _object_spread_props6(target, source) {
2047
2066
  source = source != null ? source : {};
2048
2067
  if (Object.getOwnPropertyDescriptors) {
2049
2068
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
2050
2069
  } else {
2051
- ownKeys7(Object(source)).forEach(function(key) {
2070
+ ownKeys6(Object(source)).forEach(function(key) {
2052
2071
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
2053
2072
  });
2054
2073
  }
2055
2074
  return target;
2056
2075
  }
2057
- var SvgDown = (props) => /* @__PURE__ */ _jsx18("svg", _object_spread_props7(_object_spread10({
2076
+ var SvgDown = (props) => /* @__PURE__ */ _jsx19("svg", _object_spread_props6(_object_spread11({
2058
2077
  width: "1em",
2059
2078
  height: "1em",
2060
2079
  viewBox: "0 0 32 32"
2061
2080
  }, props), {
2062
- children: /* @__PURE__ */ _jsx18("path", {
2081
+ children: /* @__PURE__ */ _jsx19("path", {
2063
2082
  fill: "currentColor",
2064
2083
  d: "M16 22 6 12l1.4-1.4 8.6 8.6 8.6-8.6L26 12z"
2065
2084
  })
@@ -2074,23 +2093,23 @@ function NavScreenMenuGroup(item) {
2074
2093
  const { activeValue } = item;
2075
2094
  const [isOpen, setIsOpen] = useState5(false);
2076
2095
  function ActiveGroupItem2({ item: item2 }) {
2077
- return /* @__PURE__ */ _jsx19("div", {
2096
+ return /* @__PURE__ */ _jsx20("div", {
2078
2097
  className: "p-1",
2079
- children: /* @__PURE__ */ _jsx19("span", {
2098
+ children: /* @__PURE__ */ _jsx20("span", {
2080
2099
  className: "text-brand",
2081
2100
  children: item2.text
2082
2101
  })
2083
2102
  });
2084
2103
  }
2085
2104
  function NormalGroupItem2({ item: item2 }) {
2086
- return /* @__PURE__ */ _jsx19("div", {
2105
+ return /* @__PURE__ */ _jsx20("div", {
2087
2106
  className: "py-1 font-medium",
2088
- children: /* @__PURE__ */ _jsx19(Link, {
2107
+ children: /* @__PURE__ */ _jsx20(Link, {
2089
2108
  href: item2.link,
2090
- children: /* @__PURE__ */ _jsx19("div", {
2091
- children: /* @__PURE__ */ _jsx19("div", {
2109
+ children: /* @__PURE__ */ _jsx20("div", {
2110
+ children: /* @__PURE__ */ _jsx20("div", {
2092
2111
  className: "flex justify-center",
2093
- children: /* @__PURE__ */ _jsx19("span", {
2112
+ children: /* @__PURE__ */ _jsx20("span", {
2094
2113
  children: item2.text
2095
2114
  })
2096
2115
  })
@@ -2100,18 +2119,18 @@ function NavScreenMenuGroup(item) {
2100
2119
  }
2101
2120
  const renderLinkItem = (item2) => {
2102
2121
  if (activeValue === item2.text) {
2103
- return /* @__PURE__ */ _jsx19(ActiveGroupItem2, {
2122
+ return /* @__PURE__ */ _jsx20(ActiveGroupItem2, {
2104
2123
  item: item2
2105
2124
  }, item2.link);
2106
2125
  }
2107
- return /* @__PURE__ */ _jsx19(NormalGroupItem2, {
2126
+ return /* @__PURE__ */ _jsx20(NormalGroupItem2, {
2108
2127
  item: item2
2109
2128
  }, item2.link);
2110
2129
  };
2111
2130
  const renderGroup = (item2) => {
2112
2131
  return /* @__PURE__ */ _jsxs13("div", {
2113
2132
  children: [
2114
- /* @__PURE__ */ _jsx19("p", {
2133
+ "link" in item2 ? renderLinkItem(item2) : /* @__PURE__ */ _jsx20("p", {
2115
2134
  className: "font-bold text-gray-400 my-1 not:first:border",
2116
2135
  children: item2.text
2117
2136
  }),
@@ -2128,21 +2147,21 @@ function NavScreenMenuGroup(item) {
2128
2147
  setIsOpen(!isOpen);
2129
2148
  },
2130
2149
  children: [
2131
- /* @__PURE__ */ _jsx19("span", {
2150
+ /* @__PURE__ */ _jsx20("span", {
2132
2151
  className: index_module_default11.buttonSpan,
2133
2152
  children: item.text
2134
2153
  }),
2135
- /* @__PURE__ */ _jsx19(down_default, {
2154
+ /* @__PURE__ */ _jsx20(down_default, {
2136
2155
  className: `${isOpen ? index_module_default11.open : ""} ${index_module_default11.down} `
2137
2156
  })
2138
2157
  ]
2139
2158
  }),
2140
- /* @__PURE__ */ _jsx19("div", {
2141
- children: /* @__PURE__ */ _jsx19("div", {
2159
+ /* @__PURE__ */ _jsx20("div", {
2160
+ children: /* @__PURE__ */ _jsx20("div", {
2142
2161
  className: index_module_default11.items,
2143
2162
  children: item.items.map((item2) => {
2144
- return /* @__PURE__ */ _jsx19("div", {
2145
- children: "link" in item2 ? renderLinkItem(item2) : renderGroup(item2)
2163
+ return /* @__PURE__ */ _jsx20("div", {
2164
+ children: "items" in item2 ? renderGroup(item2) : renderLinkItem(item2)
2146
2165
  }, item2.text);
2147
2166
  })
2148
2167
  })
@@ -2152,39 +2171,40 @@ function NavScreenMenuGroup(item) {
2152
2171
  }
2153
2172
 
2154
2173
  // src/theme-default/components/Nav/NavMenuSingleItem.tsx
2155
- import { jsx as _jsx20, jsxs as _jsxs14 } from "react/jsx-runtime";
2174
+ import { jsx as _jsx21, jsxs as _jsxs14 } from "react/jsx-runtime";
2156
2175
  import { withoutBase } from "@rspress/shared";
2157
2176
 
2158
2177
  // src/theme-default/components/Nav/index.module.scss
2159
2178
  var index_module_default12 = { "container": "container_47ac2", "leftNav": "leftNav_47ac2", "rightNav": "rightNav_47ac2", "activeItem": "activeItem_47ac2", "singleItem": "singleItem_47ac2", "navContainer": "navContainer_47ac2", "social-links-icon": "social-links-icon_47ac2", "socialLinksIcon": "social-links-icon_47ac2", "menu-item": "menu-item_47ac2", "menuItem": "menu-item_47ac2", "mobileNavMenu": "mobileNavMenu_47ac2", "mask": "mask_47ac2", "docPage": "docPage_47ac2" };
2160
2179
 
2161
2180
  // src/theme-default/components/Nav/NavMenuSingleItem.tsx
2162
- import { normalizeHref as normalizeHref6 } from "@/runtime";
2181
+ import { normalizeHref as normalizeHref7 } from "@/runtime";
2163
2182
  function NavMenuSingleItem(item) {
2164
2183
  const { pathname, base } = item;
2165
2184
  const isActive2 = new RegExp(item.activeMatch || item.link).test(withoutBase(pathname, base));
2166
- return /* @__PURE__ */ _jsx20(Link, {
2167
- href: normalizeHref6(item.link),
2185
+ return /* @__PURE__ */ _jsx21(Link, {
2186
+ href: normalizeHref7(item.link),
2168
2187
  children: /* @__PURE__ */ _jsxs14("div", {
2169
- className: `${index_module_default12.singleItem} ${isActive2 ? index_module_default12.activeItem : ""} text-sm font-medium mx-1.5 px-3 py-2 flex`,
2188
+ className: `${index_module_default12.singleItem} ${isActive2 ? index_module_default12.activeItem : ""} text-sm font-medium mx-1.5 px-3 py-2 flex items-center`,
2170
2189
  children: [
2171
- /* @__PURE__ */ _jsx20(Tag, {
2190
+ /* @__PURE__ */ _jsx21(Tag, {
2172
2191
  tag: item.tag
2173
2192
  }),
2174
- item.text
2193
+ item.text,
2194
+ item.rightIcon
2175
2195
  ]
2176
2196
  }, item.text)
2177
2197
  });
2178
2198
  }
2179
2199
 
2180
2200
  // src/theme-default/components/SwitchAppearance/index.tsx
2181
- import { jsx as _jsx23 } from "react/jsx-runtime";
2182
- import { useContext, useEffect as useEffect7 } from "react";
2201
+ import { jsx as _jsx24 } from "react/jsx-runtime";
2202
+ import { useContext, useEffect as useEffect9 } from "react";
2183
2203
 
2184
2204
  // src/theme-default/assets/sun.svg
2185
- import { jsx as _jsx21 } from "react/jsx-runtime";
2205
+ import { jsx as _jsx22 } from "react/jsx-runtime";
2186
2206
  import * as React8 from "react";
2187
- function _define_property11(obj, key, value) {
2207
+ function _define_property12(obj, key, value) {
2188
2208
  if (key in obj) {
2189
2209
  Object.defineProperty(obj, key, {
2190
2210
  value,
@@ -2197,7 +2217,7 @@ function _define_property11(obj, key, value) {
2197
2217
  }
2198
2218
  return obj;
2199
2219
  }
2200
- function _object_spread11(target) {
2220
+ function _object_spread12(target) {
2201
2221
  for (var i = 1; i < arguments.length; i++) {
2202
2222
  var source = arguments[i] != null ? arguments[i] : {};
2203
2223
  var ownKeys32 = Object.keys(source);
@@ -2207,12 +2227,12 @@ function _object_spread11(target) {
2207
2227
  }));
2208
2228
  }
2209
2229
  ownKeys32.forEach(function(key) {
2210
- _define_property11(target, key, source[key]);
2230
+ _define_property12(target, key, source[key]);
2211
2231
  });
2212
2232
  }
2213
2233
  return target;
2214
2234
  }
2215
- function ownKeys8(object, enumerableOnly) {
2235
+ function ownKeys7(object, enumerableOnly) {
2216
2236
  var keys = Object.keys(object);
2217
2237
  if (Object.getOwnPropertySymbols) {
2218
2238
  var symbols = Object.getOwnPropertySymbols(object);
@@ -2225,32 +2245,32 @@ function ownKeys8(object, enumerableOnly) {
2225
2245
  }
2226
2246
  return keys;
2227
2247
  }
2228
- function _object_spread_props8(target, source) {
2248
+ function _object_spread_props7(target, source) {
2229
2249
  source = source != null ? source : {};
2230
2250
  if (Object.getOwnPropertyDescriptors) {
2231
2251
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
2232
2252
  } else {
2233
- ownKeys8(Object(source)).forEach(function(key) {
2253
+ ownKeys7(Object(source)).forEach(function(key) {
2234
2254
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
2235
2255
  });
2236
2256
  }
2237
2257
  return target;
2238
2258
  }
2239
- var SvgSun = (props) => /* @__PURE__ */ _jsx21("svg", _object_spread_props8(_object_spread11({
2259
+ var SvgSun = (props) => /* @__PURE__ */ _jsx22("svg", _object_spread_props7(_object_spread12({
2240
2260
  xmlns: "http://www.w3.org/2000/svg",
2241
2261
  "aria-hidden": "true",
2242
2262
  viewBox: "0 0 24 24"
2243
2263
  }, props), {
2244
- children: /* @__PURE__ */ _jsx21("path", {
2264
+ children: /* @__PURE__ */ _jsx22("path", {
2245
2265
  d: "M12 18c-3.3 0-6-2.7-6-6s2.7-6 6-6 6 2.7 6 6-2.7 6-6 6zm0-10c-2.2 0-4 1.8-4 4s1.8 4 4 4 4-1.8 4-4-1.8-4-4-4zM12 4c-.6 0-1-.4-1-1V1c0-.6.4-1 1-1s1 .4 1 1v2c0 .6-.4 1-1 1zM12 24c-.6 0-1-.4-1-1v-2c0-.6.4-1 1-1s1 .4 1 1v2c0 .6-.4 1-1 1zM5.6 6.6c-.3 0-.5-.1-.7-.3L3.5 4.9c-.4-.4-.4-1 0-1.4s1-.4 1.4 0l1.4 1.4c.4.4.4 1 0 1.4-.1.2-.4.3-.7.3zM19.8 20.8c-.3 0-.5-.1-.7-.3l-1.4-1.4c-.4-.4-.4-1 0-1.4s1-.4 1.4 0l1.4 1.4c.4.4.4 1 0 1.4-.2.2-.5.3-.7.3zM3 13H1c-.6 0-1-.4-1-1s.4-1 1-1h2c.6 0 1 .4 1 1s-.4 1-1 1zM23 13h-2c-.6 0-1-.4-1-1s.4-1 1-1h2c.6 0 1 .4 1 1s-.4 1-1 1zM4.2 20.8c-.3 0-.5-.1-.7-.3-.4-.4-.4-1 0-1.4l1.4-1.4c.4-.4 1-.4 1.4 0s.4 1 0 1.4l-1.4 1.4c-.2.2-.4.3-.7.3zM18.4 6.6c-.3 0-.5-.1-.7-.3-.4-.4-.4-1 0-1.4l1.4-1.4c.4-.4 1-.4 1.4 0s.4 1 0 1.4l-1.4 1.4c-.2.2-.5.3-.7.3z"
2246
2266
  })
2247
2267
  }));
2248
2268
  var sun_default = SvgSun;
2249
2269
 
2250
2270
  // src/theme-default/assets/moon.svg
2251
- import { jsx as _jsx22 } from "react/jsx-runtime";
2271
+ import { jsx as _jsx23 } from "react/jsx-runtime";
2252
2272
  import * as React9 from "react";
2253
- function _define_property12(obj, key, value) {
2273
+ function _define_property13(obj, key, value) {
2254
2274
  if (key in obj) {
2255
2275
  Object.defineProperty(obj, key, {
2256
2276
  value,
@@ -2263,7 +2283,7 @@ function _define_property12(obj, key, value) {
2263
2283
  }
2264
2284
  return obj;
2265
2285
  }
2266
- function _object_spread12(target) {
2286
+ function _object_spread13(target) {
2267
2287
  for (var i = 1; i < arguments.length; i++) {
2268
2288
  var source = arguments[i] != null ? arguments[i] : {};
2269
2289
  var ownKeys32 = Object.keys(source);
@@ -2273,12 +2293,12 @@ function _object_spread12(target) {
2273
2293
  }));
2274
2294
  }
2275
2295
  ownKeys32.forEach(function(key) {
2276
- _define_property12(target, key, source[key]);
2296
+ _define_property13(target, key, source[key]);
2277
2297
  });
2278
2298
  }
2279
2299
  return target;
2280
2300
  }
2281
- function ownKeys9(object, enumerableOnly) {
2301
+ function ownKeys8(object, enumerableOnly) {
2282
2302
  var keys = Object.keys(object);
2283
2303
  if (Object.getOwnPropertySymbols) {
2284
2304
  var symbols = Object.getOwnPropertySymbols(object);
@@ -2291,23 +2311,23 @@ function ownKeys9(object, enumerableOnly) {
2291
2311
  }
2292
2312
  return keys;
2293
2313
  }
2294
- function _object_spread_props9(target, source) {
2314
+ function _object_spread_props8(target, source) {
2295
2315
  source = source != null ? source : {};
2296
2316
  if (Object.getOwnPropertyDescriptors) {
2297
2317
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
2298
2318
  } else {
2299
- ownKeys9(Object(source)).forEach(function(key) {
2319
+ ownKeys8(Object(source)).forEach(function(key) {
2300
2320
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
2301
2321
  });
2302
2322
  }
2303
2323
  return target;
2304
2324
  }
2305
- var SvgMoon = (props) => /* @__PURE__ */ _jsx22("svg", _object_spread_props9(_object_spread12({
2325
+ var SvgMoon = (props) => /* @__PURE__ */ _jsx23("svg", _object_spread_props8(_object_spread13({
2306
2326
  xmlns: "http://www.w3.org/2000/svg",
2307
2327
  "aria-hidden": "true",
2308
2328
  viewBox: "0 0 24 24"
2309
2329
  }, props), {
2310
- children: /* @__PURE__ */ _jsx22("path", {
2330
+ children: /* @__PURE__ */ _jsx23("path", {
2311
2331
  d: "M12.1 22h-.9c-5.5-.5-9.5-5.4-9-10.9.4-4.8 4.2-8.6 9-9 .4 0 .8.2 1 .5.2.3.2.8-.1 1.1-2 2.7-1.4 6.4 1.3 8.4 2.1 1.6 5 1.6 7.1 0 .3-.2.7-.3 1.1-.1.3.2.5.6.5 1-.2 2.7-1.5 5.1-3.6 6.8-1.9 1.4-4.1 2.2-6.4 2.2zM9.3 4.4c-2.9 1-5 3.6-5.2 6.8-.4 4.4 2.8 8.3 7.2 8.7 2.1.2 4.2-.4 5.8-1.8 1.1-.9 1.9-2.1 2.4-3.4-2.5.9-5.3.5-7.5-1.1-2.8-2.2-3.9-5.9-2.7-9.2z"
2312
2332
  })
2313
2333
  }));
@@ -2364,12 +2384,12 @@ import { ThemeContext } from "@/runtime";
2364
2384
  function SwitchAppearance({ onClick }) {
2365
2385
  const { theme, setTheme } = useContext(ThemeContext);
2366
2386
  const toggleAppearance = getToggle();
2367
- useEffect7(() => {
2387
+ useEffect9(() => {
2368
2388
  if (isDarkMode()) {
2369
2389
  setTheme("dark");
2370
2390
  }
2371
2391
  }, []);
2372
- return /* @__PURE__ */ _jsx23("div", {
2392
+ return /* @__PURE__ */ _jsx24("div", {
2373
2393
  onClick: () => {
2374
2394
  var _onClick;
2375
2395
  setTheme(theme === "dark" ? "light" : "dark");
@@ -2377,13 +2397,13 @@ function SwitchAppearance({ onClick }) {
2377
2397
  (_onClick = onClick) === null || _onClick === void 0 ? void 0 : _onClick();
2378
2398
  },
2379
2399
  className: "md:mr-2 rspress-nav-appearance",
2380
- children: /* @__PURE__ */ _jsx23("div", {
2400
+ children: /* @__PURE__ */ _jsx24("div", {
2381
2401
  className: "p-1 border border-solid border-gray-300 text-gray-400 cursor-pointer rounded-md hover:border-gray-600 hover:text-gray-600 dark:hover:border-gray-200 dark:hover:text-gray-200 transition-all duration-300",
2382
- children: theme === "light" ? /* @__PURE__ */ _jsx23(sun_default, {
2402
+ children: theme === "light" ? /* @__PURE__ */ _jsx24(sun_default, {
2383
2403
  width: "18",
2384
2404
  height: "18",
2385
2405
  fill: "currentColor"
2386
- }) : /* @__PURE__ */ _jsx23(moon_default, {
2406
+ }) : /* @__PURE__ */ _jsx24(moon_default, {
2387
2407
  width: "18",
2388
2408
  height: "18",
2389
2409
  fill: "currentColor"
@@ -2393,9 +2413,9 @@ function SwitchAppearance({ onClick }) {
2393
2413
  }
2394
2414
 
2395
2415
  // src/theme-default/assets/translator.svg
2396
- import { jsx as _jsx24 } from "react/jsx-runtime";
2416
+ import { jsx as _jsx25 } from "react/jsx-runtime";
2397
2417
  import * as React10 from "react";
2398
- function _define_property13(obj, key, value) {
2418
+ function _define_property14(obj, key, value) {
2399
2419
  if (key in obj) {
2400
2420
  Object.defineProperty(obj, key, {
2401
2421
  value,
@@ -2408,7 +2428,7 @@ function _define_property13(obj, key, value) {
2408
2428
  }
2409
2429
  return obj;
2410
2430
  }
2411
- function _object_spread13(target) {
2431
+ function _object_spread14(target) {
2412
2432
  for (var i = 1; i < arguments.length; i++) {
2413
2433
  var source = arguments[i] != null ? arguments[i] : {};
2414
2434
  var ownKeys32 = Object.keys(source);
@@ -2418,12 +2438,12 @@ function _object_spread13(target) {
2418
2438
  }));
2419
2439
  }
2420
2440
  ownKeys32.forEach(function(key) {
2421
- _define_property13(target, key, source[key]);
2441
+ _define_property14(target, key, source[key]);
2422
2442
  });
2423
2443
  }
2424
2444
  return target;
2425
2445
  }
2426
- function ownKeys10(object, enumerableOnly) {
2446
+ function ownKeys9(object, enumerableOnly) {
2427
2447
  var keys = Object.keys(object);
2428
2448
  if (Object.getOwnPropertySymbols) {
2429
2449
  var symbols = Object.getOwnPropertySymbols(object);
@@ -2436,23 +2456,23 @@ function ownKeys10(object, enumerableOnly) {
2436
2456
  }
2437
2457
  return keys;
2438
2458
  }
2439
- function _object_spread_props10(target, source) {
2459
+ function _object_spread_props9(target, source) {
2440
2460
  source = source != null ? source : {};
2441
2461
  if (Object.getOwnPropertyDescriptors) {
2442
2462
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
2443
2463
  } else {
2444
- ownKeys10(Object(source)).forEach(function(key) {
2464
+ ownKeys9(Object(source)).forEach(function(key) {
2445
2465
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
2446
2466
  });
2447
2467
  }
2448
2468
  return target;
2449
2469
  }
2450
- var SvgTranslator = (props) => /* @__PURE__ */ _jsx24("svg", _object_spread_props10(_object_spread13({
2470
+ var SvgTranslator = (props) => /* @__PURE__ */ _jsx25("svg", _object_spread_props9(_object_spread14({
2451
2471
  width: 18,
2452
2472
  height: 18,
2453
2473
  viewBox: "0 0 32 32"
2454
2474
  }, props), {
2455
- children: /* @__PURE__ */ _jsx24("path", {
2475
+ children: /* @__PURE__ */ _jsx25("path", {
2456
2476
  fill: "currentColor",
2457
2477
  d: "M27.85 29H30l-6-15h-2.35l-6 15h2.15l1.6-4h6.85zm-7.65-6 2.62-6.56L25.45 23zM18 7V5h-7V2H9v3H2v2h10.74a14.71 14.71 0 0 1-3.19 6.18A13.5 13.5 0 0 1 7.26 9h-2.1a16.47 16.47 0 0 0 3 5.58A16.84 16.84 0 0 1 3 18l.75 1.86A18.47 18.47 0 0 0 9.53 16a16.92 16.92 0 0 0 5.76 3.84L16 18a14.48 14.48 0 0 1-5.12-3.37A17.64 17.64 0 0 0 14.8 7z"
2458
2478
  })
@@ -2460,16 +2480,16 @@ var SvgTranslator = (props) => /* @__PURE__ */ _jsx24("svg", _object_spread_prop
2460
2480
  var translator_default = SvgTranslator;
2461
2481
 
2462
2482
  // src/theme-default/components/SocialLinks/index.tsx
2463
- import { jsx as _jsx30, jsxs as _jsxs18 } from "react/jsx-runtime";
2483
+ import { jsx as _jsx31, jsxs as _jsxs18 } from "react/jsx-runtime";
2464
2484
  import { useState as useState7 } from "react";
2465
2485
 
2466
2486
  // src/theme-default/components/SocialLinks/ShownLinks.tsx
2467
- import { jsx as _jsx28, jsxs as _jsxs17, Fragment as _Fragment2 } from "react/jsx-runtime";
2487
+ import { jsx as _jsx29, jsxs as _jsxs17, Fragment as _Fragment2 } from "react/jsx-runtime";
2468
2488
 
2469
2489
  // src/theme-default/assets/arrow-down.svg
2470
- import { jsx as _jsx25 } from "react/jsx-runtime";
2490
+ import { jsx as _jsx26 } from "react/jsx-runtime";
2471
2491
  import * as React11 from "react";
2472
- function _define_property14(obj, key, value) {
2492
+ function _define_property15(obj, key, value) {
2473
2493
  if (key in obj) {
2474
2494
  Object.defineProperty(obj, key, {
2475
2495
  value,
@@ -2482,7 +2502,7 @@ function _define_property14(obj, key, value) {
2482
2502
  }
2483
2503
  return obj;
2484
2504
  }
2485
- function _object_spread14(target) {
2505
+ function _object_spread15(target) {
2486
2506
  for (var i = 1; i < arguments.length; i++) {
2487
2507
  var source = arguments[i] != null ? arguments[i] : {};
2488
2508
  var ownKeys32 = Object.keys(source);
@@ -2492,12 +2512,12 @@ function _object_spread14(target) {
2492
2512
  }));
2493
2513
  }
2494
2514
  ownKeys32.forEach(function(key) {
2495
- _define_property14(target, key, source[key]);
2515
+ _define_property15(target, key, source[key]);
2496
2516
  });
2497
2517
  }
2498
2518
  return target;
2499
2519
  }
2500
- function ownKeys11(object, enumerableOnly) {
2520
+ function ownKeys10(object, enumerableOnly) {
2501
2521
  var keys = Object.keys(object);
2502
2522
  if (Object.getOwnPropertySymbols) {
2503
2523
  var symbols = Object.getOwnPropertySymbols(object);
@@ -2510,23 +2530,23 @@ function ownKeys11(object, enumerableOnly) {
2510
2530
  }
2511
2531
  return keys;
2512
2532
  }
2513
- function _object_spread_props11(target, source) {
2533
+ function _object_spread_props10(target, source) {
2514
2534
  source = source != null ? source : {};
2515
2535
  if (Object.getOwnPropertyDescriptors) {
2516
2536
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
2517
2537
  } else {
2518
- ownKeys11(Object(source)).forEach(function(key) {
2538
+ ownKeys10(Object(source)).forEach(function(key) {
2519
2539
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
2520
2540
  });
2521
2541
  }
2522
2542
  return target;
2523
2543
  }
2524
- var SvgArrowDown = (props) => /* @__PURE__ */ _jsx25("svg", _object_spread_props11(_object_spread14({
2544
+ var SvgArrowDown = (props) => /* @__PURE__ */ _jsx26("svg", _object_spread_props10(_object_spread15({
2525
2545
  width: "1em",
2526
2546
  height: "1em",
2527
2547
  viewBox: "0 0 32 32"
2528
2548
  }, props), {
2529
- children: /* @__PURE__ */ _jsx25("path", {
2549
+ children: /* @__PURE__ */ _jsx26("path", {
2530
2550
  fill: "currentColor",
2531
2551
  d: "M16 22 6 12l1.4-1.4 8.6 8.6 8.6-8.6L26 12z"
2532
2552
  })
@@ -2534,24 +2554,24 @@ var SvgArrowDown = (props) => /* @__PURE__ */ _jsx25("svg", _object_spread_props
2534
2554
  var arrow_down_default = SvgArrowDown;
2535
2555
 
2536
2556
  // src/theme-default/components/SocialLinks/LinkContent.tsx
2537
- import { jsx as _jsx27, jsxs as _jsxs16 } from "react/jsx-runtime";
2557
+ import { jsx as _jsx28, jsxs as _jsxs16 } from "react/jsx-runtime";
2538
2558
  import { useState as useState6 } from "react";
2539
2559
 
2540
2560
  // src/theme-default/components/SocialLinks/index.module.scss
2541
2561
  var index_module_default13 = { "social-links-icon": "social-links-icon_8cbd0", "socialLinksIcon": "social-links-icon_8cbd0", "menu-item": "menu-item_8cbd0", "menuItem": "menu-item_8cbd0" };
2542
2562
 
2543
2563
  // src/theme-default/components/SocialLinks/presetIcons.tsx
2544
- import { jsx as _jsx26, jsxs as _jsxs15 } from "react/jsx-runtime";
2564
+ import { jsx as _jsx27, jsxs as _jsxs15 } from "react/jsx-runtime";
2545
2565
  var presetIcons_default = {
2546
2566
  discord: /* @__PURE__ */ _jsxs15("svg", {
2547
2567
  role: "img",
2548
2568
  viewBox: "0 0 24 24",
2549
2569
  xmlns: "http://www.w3.org/2000/svg",
2550
2570
  children: [
2551
- /* @__PURE__ */ _jsx26("title", {
2571
+ /* @__PURE__ */ _jsx27("title", {
2552
2572
  children: "Discord"
2553
2573
  }),
2554
- /* @__PURE__ */ _jsx26("path", {
2574
+ /* @__PURE__ */ _jsx27("path", {
2555
2575
  d: "M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z"
2556
2576
  })
2557
2577
  ]
@@ -2561,10 +2581,10 @@ var presetIcons_default = {
2561
2581
  viewBox: "0 0 24 24",
2562
2582
  xmlns: "http://www.w3.org/2000/svg",
2563
2583
  children: [
2564
- /* @__PURE__ */ _jsx26("title", {
2584
+ /* @__PURE__ */ _jsx27("title", {
2565
2585
  children: "Facebook"
2566
2586
  }),
2567
- /* @__PURE__ */ _jsx26("path", {
2587
+ /* @__PURE__ */ _jsx27("path", {
2568
2588
  d: "M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"
2569
2589
  })
2570
2590
  ]
@@ -2574,10 +2594,10 @@ var presetIcons_default = {
2574
2594
  viewBox: "0 0 24 24",
2575
2595
  xmlns: "http://www.w3.org/2000/svg",
2576
2596
  children: [
2577
- /* @__PURE__ */ _jsx26("title", {
2597
+ /* @__PURE__ */ _jsx27("title", {
2578
2598
  children: "GitHub"
2579
2599
  }),
2580
- /* @__PURE__ */ _jsx26("path", {
2600
+ /* @__PURE__ */ _jsx27("path", {
2581
2601
  d: "M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"
2582
2602
  })
2583
2603
  ]
@@ -2587,10 +2607,10 @@ var presetIcons_default = {
2587
2607
  viewBox: "0 0 24 24",
2588
2608
  xmlns: "http://www.w3.org/2000/svg",
2589
2609
  children: [
2590
- /* @__PURE__ */ _jsx26("title", {
2610
+ /* @__PURE__ */ _jsx27("title", {
2591
2611
  children: "GitLab"
2592
2612
  }),
2593
- /* @__PURE__ */ _jsx26("path", {
2613
+ /* @__PURE__ */ _jsx27("path", {
2594
2614
  fill: "currentColor",
2595
2615
  d: "m21.94 13.11l-1.05-3.22c0-.03-.01-.06-.02-.09l-2.11-6.48a.859.859 0 0 0-.8-.57c-.36 0-.68.25-.79.58l-2 6.17H8.84L6.83 3.33a.851.851 0 0 0-.79-.58c-.37 0-.69.25-.8.58L3.13 9.82v.01l-1.07 3.28c-.16.5.01 1.04.44 1.34l9.22 6.71c.17.12.39.12.56-.01l9.22-6.7c.43-.3.6-.84.44-1.34M8.15 10.45l2.57 7.91l-6.17-7.91m8.73 7.92l2.47-7.59l.1-.33h3.61l-5.59 7.16m4.1-13.67l1.81 5.56h-3.62m-1.3.95l-1.79 5.51L12 19.24l-2.86-8.79M6.03 3.94L7.84 9.5H4.23m-1.18 4.19c-.09-.07-.13-.19-.09-.29l.79-2.43l5.82 7.45m11.38-4.73l-6.51 4.73l.02-.03l5.79-7.42l.79 2.43c.04.1 0 .22-.09.29"
2596
2616
  })
@@ -2601,10 +2621,10 @@ var presetIcons_default = {
2601
2621
  viewBox: "0 0 24 24",
2602
2622
  xmlns: "http://www.w3.org/2000/svg",
2603
2623
  children: [
2604
- /* @__PURE__ */ _jsx26("title", {
2624
+ /* @__PURE__ */ _jsx27("title", {
2605
2625
  children: "Instagram"
2606
2626
  }),
2607
- /* @__PURE__ */ _jsx26("path", {
2627
+ /* @__PURE__ */ _jsx27("path", {
2608
2628
  d: "M12 0C8.74 0 8.333.015 7.053.072 5.775.132 4.905.333 4.14.63c-.789.306-1.459.717-2.126 1.384S.935 3.35.63 4.14C.333 4.905.131 5.775.072 7.053.012 8.333 0 8.74 0 12s.015 3.667.072 4.947c.06 1.277.261 2.148.558 2.913.306.788.717 1.459 1.384 2.126.667.666 1.336 1.079 2.126 1.384.766.296 1.636.499 2.913.558C8.333 23.988 8.74 24 12 24s3.667-.015 4.947-.072c1.277-.06 2.148-.262 2.913-.558.788-.306 1.459-.718 2.126-1.384.666-.667 1.079-1.335 1.384-2.126.296-.765.499-1.636.558-2.913.06-1.28.072-1.687.072-4.947s-.015-3.667-.072-4.947c-.06-1.277-.262-2.149-.558-2.913-.306-.789-.718-1.459-1.384-2.126C21.319 1.347 20.651.935 19.86.63c-.765-.297-1.636-.499-2.913-.558C15.667.012 15.26 0 12 0zm0 2.16c3.203 0 3.585.016 4.85.071 1.17.055 1.805.249 2.227.415.562.217.96.477 1.382.896.419.42.679.819.896 1.381.164.422.36 1.057.413 2.227.057 1.266.07 1.646.07 4.85s-.015 3.585-.074 4.85c-.061 1.17-.256 1.805-.421 2.227-.224.562-.479.96-.899 1.382-.419.419-.824.679-1.38.896-.42.164-1.065.36-2.235.413-1.274.057-1.649.07-4.859.07-3.211 0-3.586-.015-4.859-.074-1.171-.061-1.816-.256-2.236-.421-.569-.224-.96-.479-1.379-.899-.421-.419-.69-.824-.9-1.38-.165-.42-.359-1.065-.42-2.235-.045-1.26-.061-1.649-.061-4.844 0-3.196.016-3.586.061-4.861.061-1.17.255-1.814.42-2.234.21-.57.479-.96.9-1.381.419-.419.81-.689 1.379-.898.42-.166 1.051-.361 2.221-.421 1.275-.045 1.65-.06 4.859-.06l.045.03zm0 3.678c-3.405 0-6.162 2.76-6.162 6.162 0 3.405 2.76 6.162 6.162 6.162 3.405 0 6.162-2.76 6.162-6.162 0-3.405-2.76-6.162-6.162-6.162zM12 16c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4zm7.846-10.405c0 .795-.646 1.44-1.44 1.44-.795 0-1.44-.646-1.44-1.44 0-.794.646-1.439 1.44-1.439.793-.001 1.44.645 1.44 1.439z"
2609
2629
  })
2610
2630
  ]
@@ -2614,10 +2634,10 @@ var presetIcons_default = {
2614
2634
  viewBox: "0 0 24 24",
2615
2635
  xmlns: "http://www.w3.org/2000/svg",
2616
2636
  children: [
2617
- /* @__PURE__ */ _jsx26("title", {
2637
+ /* @__PURE__ */ _jsx27("title", {
2618
2638
  children: "LinkedIn"
2619
2639
  }),
2620
- /* @__PURE__ */ _jsx26("path", {
2640
+ /* @__PURE__ */ _jsx27("path", {
2621
2641
  d: "M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"
2622
2642
  })
2623
2643
  ]
@@ -2627,10 +2647,10 @@ var presetIcons_default = {
2627
2647
  viewBox: "0 0 24 24",
2628
2648
  xmlns: "http://www.w3.org/2000/svg",
2629
2649
  children: [
2630
- /* @__PURE__ */ _jsx26("title", {
2650
+ /* @__PURE__ */ _jsx27("title", {
2631
2651
  children: "Slack"
2632
2652
  }),
2633
- /* @__PURE__ */ _jsx26("path", {
2653
+ /* @__PURE__ */ _jsx27("path", {
2634
2654
  d: "M5.042 15.165a2.528 2.528 0 0 1-2.52 2.523A2.528 2.528 0 0 1 0 15.165a2.527 2.527 0 0 1 2.522-2.52h2.52v2.52zM6.313 15.165a2.527 2.527 0 0 1 2.521-2.52 2.527 2.527 0 0 1 2.521 2.52v6.313A2.528 2.528 0 0 1 8.834 24a2.528 2.528 0 0 1-2.521-2.522v-6.313zM8.834 5.042a2.528 2.528 0 0 1-2.521-2.52A2.528 2.528 0 0 1 8.834 0a2.528 2.528 0 0 1 2.521 2.522v2.52H8.834zM8.834 6.313a2.528 2.528 0 0 1 2.521 2.521 2.528 2.528 0 0 1-2.521 2.521H2.522A2.528 2.528 0 0 1 0 8.834a2.528 2.528 0 0 1 2.522-2.521h6.312zM18.956 8.834a2.528 2.528 0 0 1 2.522-2.521A2.528 2.528 0 0 1 24 8.834a2.528 2.528 0 0 1-2.522 2.521h-2.522V8.834zM17.688 8.834a2.528 2.528 0 0 1-2.523 2.521 2.527 2.527 0 0 1-2.52-2.521V2.522A2.527 2.527 0 0 1 15.165 0a2.528 2.528 0 0 1 2.523 2.522v6.312zM15.165 18.956a2.528 2.528 0 0 1 2.523 2.522A2.528 2.528 0 0 1 15.165 24a2.527 2.527 0 0 1-2.52-2.522v-2.522h2.52zM15.165 17.688a2.527 2.527 0 0 1-2.52-2.523 2.526 2.526 0 0 1 2.52-2.52h6.313A2.527 2.527 0 0 1 24 15.165a2.528 2.528 0 0 1-2.522 2.523h-6.313z"
2635
2655
  })
2636
2656
  ]
@@ -2640,10 +2660,10 @@ var presetIcons_default = {
2640
2660
  viewBox: "0 0 24 24",
2641
2661
  xmlns: "http://www.w3.org/2000/svg",
2642
2662
  children: [
2643
- /* @__PURE__ */ _jsx26("title", {
2663
+ /* @__PURE__ */ _jsx27("title", {
2644
2664
  children: "Twitter"
2645
2665
  }),
2646
- /* @__PURE__ */ _jsx26("path", {
2666
+ /* @__PURE__ */ _jsx27("path", {
2647
2667
  d: "M23.953 4.57a10 10 0 01-2.825.775 4.958 4.958 0 002.163-2.723c-.951.555-2.005.959-3.127 1.184a4.92 4.92 0 00-8.384 4.482C7.69 8.095 4.067 6.13 1.64 3.162a4.822 4.822 0 00-.666 2.475c0 1.71.87 3.213 2.188 4.096a4.904 4.904 0 01-2.228-.616v.06a4.923 4.923 0 003.946 4.827 4.996 4.996 0 01-2.212.085 4.936 4.936 0 004.604 3.417 9.867 9.867 0 01-6.102 2.105c-.39 0-.779-.023-1.17-.067a13.995 13.995 0 007.557 2.209c9.053 0 13.998-7.496 13.998-13.985 0-.21 0-.42-.015-.63A9.935 9.935 0 0024 4.59z"
2648
2668
  })
2649
2669
  ]
@@ -2653,10 +2673,10 @@ var presetIcons_default = {
2653
2673
  viewBox: "0 0 24 24",
2654
2674
  xmlns: "http://www.w3.org/2000/svg",
2655
2675
  children: [
2656
- /* @__PURE__ */ _jsx26("title", {
2676
+ /* @__PURE__ */ _jsx27("title", {
2657
2677
  children: "YouTube"
2658
2678
  }),
2659
- /* @__PURE__ */ _jsx26("path", {
2679
+ /* @__PURE__ */ _jsx27("path", {
2660
2680
  d: "M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z"
2661
2681
  })
2662
2682
  ]
@@ -2668,77 +2688,77 @@ var presetIcons_default = {
2668
2688
  xmlns: "http://www.w3.org/2000/svg",
2669
2689
  "data-spm-anchor-id": "a313x.7781069.0.i5",
2670
2690
  children: [
2671
- /* @__PURE__ */ _jsx26("path", {
2691
+ /* @__PURE__ */ _jsx27("path", {
2672
2692
  d: "M465.189 161.792c-22.967 18.14-44.325 35.109-47.397 37.742l-5.851 4.68 10.971 8.632c5.998 4.827 11.85 9.508 13.02 10.532 1.17 1.024 17.993 14.336 37.156 29.696l34.962 27.795 5.267-3.95c2.925-2.194 23.259-18.432 45.348-35.986 21.943-17.555 41.253-32.768 42.716-33.646 1.609-1.024 2.779-2.194 2.779-2.78 0-0.438-9.655-8.63-21.504-17.846-11.995-9.363-22.674-17.847-23.845-18.871-15.945-13.02-49.737-39.059-50.76-39.059-0.586 0.147-19.896 14.922-42.862 33.061z m233.325 180.37C507.465 493.275 508.928 492.105 505.417 489.911c-3.072-1.902-11.556-8.485-64.073-50.03-9.07-7.168-18.578-14.775-21.358-16.823-2.78-2.194-8.777-6.875-13.312-10.532-4.68-3.657-10.679-8.339-13.312-10.533-13.165-10.24-71.095-56.027-102.107-80.457-5.852-4.681-11.41-8.485-12.142-8.485-0.731 0-10.971 7.754-22.674 17.116-11.703 9.508-22.674 18.286-24.284 19.456-1.755 1.17-5.12 3.95-7.46 6.144-2.34 2.34-4.828 4.096-5.413 4.096-3.072 0-0.731 3.072 6.437 8.777 4.096 3.218 8.777 6.875 10.094 8.046 1.316 1.024 10.24 8.045 19.748 15.506s23.26 18.286 30.428 23.99c19.31 15.215 31.89 25.308 127.853 101.084 47.836 37.742 88.796 69.779 90.844 71.095 3.657 2.487 3.95 2.487 7.46-0.292a1041.42 1041.42 0 0 0 16.092-12.727c6.875-5.413 14.775-11.703 17.554-13.897 30.135-23.699 80.018-63.05 81.774-64.512 1.17-1.024 12.434-9.802 24.868-19.603s37.888-29.696 56.32-44.324c18.579-14.629 46.227-36.425 61.733-48.567 15.506-12.142 27.794-22.528 27.502-23.26-0.878-1.17-57.637-47.104-59.978-48.274-0.731-0.439-18.578 12.727-39.497 29.257z",
2673
2693
  "data-spm-anchor-id": "a313x.7781069.0.i2"
2674
2694
  }),
2675
- /* @__PURE__ */ _jsx26("path", {
2695
+ /* @__PURE__ */ _jsx27("path", {
2676
2696
  d: "M57.93 489.326c-15.215 12.288-28.527 23.405-29.697 24.576-2.34 2.194-5.412-0.44 80.018 66.852 33.207 26.185 32.622 25.747 57.637 45.495 10.386 8.192 36.279 28.672 57.783 45.495 38.18 30.135 44.91 35.401 52.663 41.545 2.048 1.756 22.967 18.14 46.372 36.572 23.26 18.432 74.167 58.514 112.933 89.088 38.912 30.573 71.095 55.734 71.826 56.027 0.732 0.293 7.46-4.389 14.921-10.386 21.797-16.97 90.259-70.949 101.523-79.872 5.705-4.535 12.873-10.24 15.945-12.58 3.072-2.488 6.436-5.12 7.314-5.852 0.878-0.878 11.85-9.509 24.283-19.31 20.773-16.091 59.1-46.226 64.366-50.615 1.17-1.024 5.12-4.096 8.777-6.875 3.657-2.78 7.9-6.29 9.509-7.607 1.609-1.317 14.775-11.703 29.257-23.113 29.11-22.82 42.277-33.207 88.503-69.632 17.262-13.605 32.475-25.454 33.646-26.478 2.486-2.048 31.451-24.869 44.617-35.255 4.827-3.657 9.07-7.168 9.508-7.607 0.44-0.585 5.998-4.827 12.435-9.8 6.436-4.828 13.165-10.24 15.067-11.85l3.365-2.926-9.948-7.753c-5.412-4.388-10.24-8.192-10.679-8.63-1.17-1.317-22.381-18.433-30.135-24.284-3.95-3.072-7.314-5.998-7.606-6.73-1.317-3.071-6.73 0.147-29.258 17.994-13.458 10.532-25.746 20.187-27.355 21.504-1.61 1.463-10.533 8.338-19.749 15.652-9.216 7.168-17.115 13.459-17.554 13.898-0.439 0.438-6.583 5.412-13.897 10.971-7.168 5.559-15.214 11.703-17.7 13.75-4.974 4.097-5.413 4.39-20.334 16.239-5.56 4.388-11.264 8.777-12.435 9.8-1.17 1.025-20.333 16.092-42.422 33.354-22.09 17.408-41.546 32.768-43.155 34.084-1.609 1.463-14.482 11.557-28.525 22.528s-40.814 32.037-59.539 46.812c-18.578 14.775-42.276 33.353-52.516 41.399s-23.26 18.285-28.965 22.82l-10.386 8.339-4.389-3.072c-2.34-1.756-4.68-3.511-5.12-3.95-0.439-0.439-4.973-4.096-10.24-8.046-11.849-9.216-14.482-11.264-16.676-13.166-0.878-0.877-4.243-3.51-7.46-5.851-3.22-2.487-6.145-4.681-6.584-5.12-0.439-0.439-6.875-5.705-14.482-11.703-7.607-5.851-14.921-11.556-16.091-12.58-1.317-1.17-17.116-13.605-35.255-27.795-17.993-14.19-35.109-27.648-38.035-29.842-5.705-4.681-33.499-26.624-125.074-98.743-34.523-27.209-72.704-57.344-84.846-66.852-49.737-39.498-55.15-43.594-56.905-43.447-0.877 0-14.043 10.24-29.257 22.528z",
2677
2697
  "data-spm-anchor-id": "a313x.7781069.0.i3"
2678
2698
  })
2679
2699
  ]
2680
2700
  }),
2681
- qq: /* @__PURE__ */ _jsx26("svg", {
2701
+ qq: /* @__PURE__ */ _jsx27("svg", {
2682
2702
  xmlns: "http://www.w3.org/2000/svg",
2683
2703
  "aria-hidden": "true",
2684
2704
  role: "img",
2685
2705
  className: "iconify iconify--ri",
2686
2706
  preserveAspectRatio: "xMidYMid meet",
2687
2707
  viewBox: "0 0 24 24",
2688
- children: /* @__PURE__ */ _jsx26("path", {
2708
+ children: /* @__PURE__ */ _jsx27("path", {
2689
2709
  fill: "currentColor",
2690
2710
  d: "M19.913 14.529a31.977 31.977 0 0 0-.675-1.886l-.91-2.246c0-.026.012-.468.012-.696C18.34 5.86 16.507 2 12 2S5.66 5.86 5.66 9.7c0 .229.011.671.012.697l-.91 2.246a32.777 32.777 0 0 0-.675 1.886c-.86 2.737-.581 3.87-.369 3.895c.455.054 1.771-2.06 1.771-2.06c0 1.224.637 2.822 2.016 3.976c-.515.157-1.147.399-1.554.695c-.365.267-.319.54-.253.65c.289.481 4.955.307 6.303.157c1.347.15 6.014.324 6.302-.158c.066-.11.112-.382-.253-.649c-.407-.296-1.039-.538-1.555-.696c1.379-1.153 2.016-2.751 2.016-3.976c0 0 1.316 2.115 1.771 2.06c.212-.025.49-1.157-.37-3.894"
2691
2711
  })
2692
2712
  }),
2693
- wechat: /* @__PURE__ */ _jsx26("svg", {
2713
+ wechat: /* @__PURE__ */ _jsx27("svg", {
2694
2714
  xmlns: "http://www.w3.org/2000/svg",
2695
2715
  "aria-hidden": "true",
2696
2716
  role: "img",
2697
2717
  className: "iconify iconify--ri",
2698
2718
  preserveAspectRatio: "xMidYMid meet",
2699
2719
  viewBox: "0 0 24 24",
2700
- children: /* @__PURE__ */ _jsx26("path", {
2720
+ children: /* @__PURE__ */ _jsx27("path", {
2701
2721
  fill: "currentColor",
2702
2722
  d: "M18.574 13.711a.91.91 0 0 0 .898-.898c0-.498-.399-.898-.898-.898s-.898.4-.898.898c0 .5.4.898.898.898zm-4.425 0a.91.91 0 0 0 .898-.898c0-.498-.4-.898-.898-.898c-.5 0-.898.4-.898.898c0 .5.399.898.898.898zm6.567 5.04a.347.347 0 0 0-.172.37c0 .048 0 .097.025.147c.098.417.294 1.081.294 1.106c0 .073.025.122.025.172a.22.22 0 0 1-.221.22c-.05 0-.074-.024-.123-.048l-1.449-.836a.799.799 0 0 0-.344-.098c-.073 0-.147 0-.196.024c-.688.197-1.4.295-2.161.295c-3.66 0-6.607-2.457-6.607-5.505c0-3.047 2.947-5.505 6.607-5.505c3.659 0 6.606 2.458 6.606 5.505c0 1.647-.884 3.146-2.284 4.154zM16.673 8.099a9.105 9.105 0 0 0-.28-.005c-4.174 0-7.606 2.86-7.606 6.505c0 .554.08 1.09.228 1.6h-.089a9.963 9.963 0 0 1-2.584-.368c-.074-.025-.148-.025-.222-.025a.832.832 0 0 0-.418.123l-1.748 1.005c-.05.025-.099.05-.148.05a.273.273 0 0 1-.27-.27c0-.074.024-.123.049-.197c.024-.024.246-.834.369-1.324c0-.05.024-.123.024-.172a.556.556 0 0 0-.221-.442C2.058 13.376 1 11.586 1 9.598C1 5.945 4.57 3 8.95 3c3.765 0 6.93 2.169 7.723 5.098zm-5.154.418c.573 0 1.026-.477 1.026-1.026c0-.573-.453-1.026-1.026-1.026s-1.026.453-1.026 1.026s.453 1.026 1.026 1.026zm-5.26 0c.573 0 1.027-.477 1.027-1.026c0-.573-.454-1.026-1.027-1.026c-.572 0-1.026.453-1.026 1.026s.454 1.026 1.026 1.026z"
2703
2723
  })
2704
2724
  }),
2705
- weibo: /* @__PURE__ */ _jsx26("svg", {
2725
+ weibo: /* @__PURE__ */ _jsx27("svg", {
2706
2726
  xmlns: "http://www.w3.org/2000/svg",
2707
2727
  "aria-hidden": "true",
2708
2728
  role: "img",
2709
2729
  className: "iconify iconify--ri",
2710
2730
  preserveAspectRatio: "xMidYMid meet",
2711
2731
  viewBox: "0 0 24 24",
2712
- children: /* @__PURE__ */ _jsx26("path", {
2732
+ children: /* @__PURE__ */ _jsx27("path", {
2713
2733
  fill: "currentColor",
2714
2734
  d: "M17.525 11.378c1.263.392 2.669 1.336 2.669 3.004c0 2.763-3.98 6.239-9.964 6.239c-4.565 0-9.23-2.213-9.23-5.852c0-1.902 1.204-4.102 3.277-6.177c2.773-2.77 6.004-4.033 7.219-2.816c.537.537.588 1.464.244 2.572c-.178.557.525.25.525.25c2.24-.938 4.196-.994 4.909.027c.38.543.343 1.306-.008 2.19c-.163.407.048.471.36.563zm-7.282 7.939c3.641-.362 6.401-2.592 6.167-4.983c-.237-2.391-3.382-4.038-7.023-3.677c-3.64.36-6.403 2.59-6.167 4.98c.237 2.394 3.382 4.039 7.023 3.68zM6.16 14.438c.754-1.527 2.712-2.39 4.446-1.94c1.793.463 2.707 2.154 1.976 3.8c-.744 1.682-2.882 2.578-4.695 1.993c-1.752-.566-2.493-2.294-1.727-3.853zm1.446 2.587c.568.257 1.325.013 1.676-.55c.346-.568.163-1.217-.407-1.459c-.563-.237-1.291.008-1.64.553c-.354.547-.189 1.202.371 1.456zm2.206-1.808c.219.092.501-.012.628-.231c.123-.22.044-.466-.178-.548c-.216-.084-.486.018-.613.232c-.123.214-.054.458.163.547zM19.873 9.5a.725.725 0 1 1-1.378-.451a1.38 1.38 0 0 0-.288-1.357a1.395 1.395 0 0 0-1.321-.425a.723.723 0 1 1-.303-1.416a2.836 2.836 0 0 1 3.29 3.649zm-3.916-6.575A5.831 5.831 0 0 1 21.5 4.72a5.836 5.836 0 0 1 1.22 5.704a.838.838 0 0 1-1.06.54a.844.844 0 0 1-.542-1.062a4.143 4.143 0 0 0-4.807-5.327a.845.845 0 0 1-.354-1.65z"
2715
2735
  })
2716
2736
  }),
2717
- zhihu: /* @__PURE__ */ _jsx26("svg", {
2737
+ zhihu: /* @__PURE__ */ _jsx27("svg", {
2718
2738
  xmlns: "http://www.w3.org/2000/svg",
2719
2739
  "aria-hidden": "true",
2720
2740
  role: "img",
2721
2741
  className: "iconify iconify--ri",
2722
2742
  preserveAspectRatio: "xMidYMid meet",
2723
2743
  viewBox: "0 0 24 24",
2724
- children: /* @__PURE__ */ _jsx26("path", {
2744
+ children: /* @__PURE__ */ _jsx27("path", {
2725
2745
  fill: "currentColor",
2726
2746
  d: "m12.344 17.963l-1.688 1.074l-2.131-3.35c-.44 1.402-1.172 2.665-2.139 3.825c-.402.483-.82.918-1.301 1.375c-.155.147-.775.717-.878.82l-1.414-1.414c.139-.139.787-.735.915-.856c.43-.408.795-.79 1.142-1.206c1.266-1.518 2.03-3.21 2.137-5.231H3v-2h4V7h-.868c-.689 1.266-1.558 2.222-2.618 2.857L2.486 8.143c1.395-.838 2.425-2.604 3.038-5.36l1.952.434c-.14.633-.303 1.227-.489 1.783H11.5v2H9v4h2.5v2H9.185l3.159 4.963zm3.838-.07L17.298 17H19V7h-4v10h.736l.446.893zM13 5h8v14h-3l-2.5 2l-1-2H13V5z"
2727
2747
  })
2728
2748
  }),
2729
- bilibili: /* @__PURE__ */ _jsx26("svg", {
2749
+ bilibili: /* @__PURE__ */ _jsx27("svg", {
2730
2750
  xmlns: "http://www.w3.org/2000/svg",
2731
2751
  "aria-hidden": "true",
2732
2752
  role: "img",
2733
2753
  className: "iconify iconify--ri",
2734
2754
  preserveAspectRatio: "xMidYMid meet",
2735
2755
  viewBox: "0 0 24 24",
2736
- children: /* @__PURE__ */ _jsx26("path", {
2756
+ children: /* @__PURE__ */ _jsx27("path", {
2737
2757
  fill: "currentColor",
2738
2758
  d: "M18.223 3.086a1.25 1.25 0 0 1 0 1.768L17.08 5.996h1.17A3.75 3.75 0 0 1 22 9.747v7.5a3.75 3.75 0 0 1-3.75 3.75H5.75A3.75 3.75 0 0 1 2 17.247v-7.5a3.75 3.75 0 0 1 3.75-3.75h1.166L5.775 4.855a1.25 1.25 0 1 1 1.767-1.768l2.652 2.652c.079.079.145.165.198.257h3.213c.053-.092.12-.18.199-.258l2.651-2.652a1.25 1.25 0 0 1 1.768 0zm.027 5.42H5.75a1.25 1.25 0 0 0-1.247 1.157l-.003.094v7.5c0 .659.51 1.199 1.157 1.246l.093.004h12.5a1.25 1.25 0 0 0 1.247-1.157l.003-.093v-7.5c0-.69-.56-1.25-1.25-1.25zm-10 2.5c.69 0 1.25.56 1.25 1.25v1.25a1.25 1.25 0 1 1-2.5 0v-1.25c0-.69.56-1.25 1.25-1.25zm7.5 0c.69 0 1.25.56 1.25 1.25v1.25a1.25 1.25 0 1 1-2.5 0v-1.25c0-.69.56-1.25 1.25-1.25z"
2739
2759
  })
2740
2760
  }),
2741
- lark: /* @__PURE__ */ _jsx26("svg", {
2761
+ lark: /* @__PURE__ */ _jsx27("svg", {
2742
2762
  xmlns: "http://www.w3.org/2000/svg",
2743
2763
  width: "48",
2744
2764
  height: "48",
@@ -2747,10 +2767,10 @@ var presetIcons_default = {
2747
2767
  fillRule: "evenodd",
2748
2768
  clipRule: "evenodd",
2749
2769
  children: [
2750
- /* @__PURE__ */ _jsx26("path", {
2770
+ /* @__PURE__ */ _jsx27("path", {
2751
2771
  d: "M41.0716 5.99409L3.31071 16.5187L12.3856 25.8126L20.7998 25.9594L30.4827 16.5187C30.2266 15.9943 30.0985 15.5552 30.0985 15.2013C30.0985 14.4074 30.4104 13.7786 30.8947 13.333C31.7241 12.57 32.7222 12.4558 33.8889 12.9905L41.0716 5.99409Z"
2752
2772
  }),
2753
- /* @__PURE__ */ _jsx26("path", {
2773
+ /* @__PURE__ */ _jsx27("path", {
2754
2774
  d: "M42.1021 6.72842L31.5775 44.4893L22.2836 35.4144L22.1367 27.0002L31.5115 17.4816C32.0195 17.8454 32.5743 18.0105 33.1759 17.9769C34.0784 17.9264 34.6614 17.3813 34.9349 17.0602C35.2083 16.7392 35.5293 16.2051 35.5025 15.4113C35.4847 14.8821 35.3109 14.3941 34.9812 13.9472L42.1021 6.72842Z"
2755
2775
  })
2756
2776
  ]
@@ -2759,7 +2779,7 @@ var presetIcons_default = {
2759
2779
  };
2760
2780
 
2761
2781
  // src/theme-default/components/SocialLinks/LinkContent.tsx
2762
- function _define_property15(obj, key, value) {
2782
+ function _define_property16(obj, key, value) {
2763
2783
  if (key in obj) {
2764
2784
  Object.defineProperty(obj, key, {
2765
2785
  value,
@@ -2772,7 +2792,7 @@ function _define_property15(obj, key, value) {
2772
2792
  }
2773
2793
  return obj;
2774
2794
  }
2775
- function _object_spread15(target) {
2795
+ function _object_spread16(target) {
2776
2796
  for (var i = 1; i < arguments.length; i++) {
2777
2797
  var source = arguments[i] != null ? arguments[i] : {};
2778
2798
  var ownKeys32 = Object.keys(source);
@@ -2782,7 +2802,7 @@ function _object_spread15(target) {
2782
2802
  }));
2783
2803
  }
2784
2804
  ownKeys32.forEach(function(key) {
2785
- _define_property15(target, key, source[key]);
2805
+ _define_property16(target, key, source[key]);
2786
2806
  });
2787
2807
  }
2788
2808
  return target;
@@ -2792,7 +2812,7 @@ var LinkContent = (props) => {
2792
2812
  const { icon, mode = "link", content } = link;
2793
2813
  const IconComp = typeof icon === "object" ? (
2794
2814
  // eslint-disable-next-line react/no-danger
2795
- /* @__PURE__ */ _jsx27("div", {
2815
+ /* @__PURE__ */ _jsx28("div", {
2796
2816
  dangerouslySetInnerHTML: {
2797
2817
  __html: icon.svg
2798
2818
  }
@@ -2806,12 +2826,12 @@ var LinkContent = (props) => {
2806
2826
  setContentVisible(false);
2807
2827
  };
2808
2828
  if (mode === "link") {
2809
- return /* @__PURE__ */ _jsx27("a", {
2829
+ return /* @__PURE__ */ _jsx28("a", {
2810
2830
  href: content,
2811
2831
  target: "_blank",
2812
2832
  rel: "noopener noreferrer",
2813
2833
  className: "social-links",
2814
- children: /* @__PURE__ */ _jsx27("div", {
2834
+ children: /* @__PURE__ */ _jsx28("div", {
2815
2835
  className: `${index_module_default13.socialLinksIcon}`,
2816
2836
  children: IconComp
2817
2837
  })
@@ -2824,13 +2844,13 @@ var LinkContent = (props) => {
2824
2844
  onMouseLeave: mouseLeavePopper,
2825
2845
  children: [
2826
2846
  IconComp,
2827
- contentVisible ? /* @__PURE__ */ _jsx27("div", {
2828
- style: _object_spread15({
2847
+ contentVisible ? /* @__PURE__ */ _jsx28("div", {
2848
+ style: _object_spread16({
2829
2849
  boxShadow: "var(--rp-shadow-3)",
2830
2850
  border: "1px solid var(--rp-c-divider-light)"
2831
2851
  }, popperStyle),
2832
2852
  className: "z-1 p-3 w-50 absolute right-0 bg-white dark:bg-dark",
2833
- children: /* @__PURE__ */ _jsx27("div", {
2853
+ children: /* @__PURE__ */ _jsx28("div", {
2834
2854
  className: "text-md",
2835
2855
  children: content
2836
2856
  })
@@ -2845,12 +2865,12 @@ var LinkContent = (props) => {
2845
2865
  onMouseLeave: mouseLeavePopper,
2846
2866
  children: [
2847
2867
  IconComp,
2848
- contentVisible ? /* @__PURE__ */ _jsx27("div", {
2868
+ contentVisible ? /* @__PURE__ */ _jsx28("div", {
2849
2869
  className: "break-all z-1 p-3 w-50 absolute right-0 rounded-xl",
2850
- style: _object_spread15({
2870
+ style: _object_spread16({
2851
2871
  boxShadow: "var(--rp-shadow-3)"
2852
2872
  }, popperStyle),
2853
- children: /* @__PURE__ */ _jsx27("img", {
2873
+ children: /* @__PURE__ */ _jsx28("img", {
2854
2874
  src: content,
2855
2875
  alt: "img"
2856
2876
  })
@@ -2858,7 +2878,7 @@ var LinkContent = (props) => {
2858
2878
  ]
2859
2879
  });
2860
2880
  }
2861
- return /* @__PURE__ */ _jsx27("div", {});
2881
+ return /* @__PURE__ */ _jsx28("div", {});
2862
2882
  };
2863
2883
 
2864
2884
  // src/theme-default/components/SocialLinks/ShownLinks.tsx
@@ -2866,36 +2886,36 @@ var ShownLinks = (props) => {
2866
2886
  const { links, moreIconVisible = false, mouseEnter } = props;
2867
2887
  return /* @__PURE__ */ _jsxs17(_Fragment2, {
2868
2888
  children: [
2869
- /* @__PURE__ */ _jsx28("div", {
2889
+ /* @__PURE__ */ _jsx29("div", {
2870
2890
  className: "flex-center h-full gap-x-4 transition-colors duration-300 md:mr-2",
2871
- children: links.map((item, index) => /* @__PURE__ */ _jsx28(LinkContent, {
2891
+ children: links.map((item, index) => /* @__PURE__ */ _jsx29(LinkContent, {
2872
2892
  link: item,
2873
2893
  popperStyle: {
2874
2894
  top: "2.5rem"
2875
2895
  }
2876
2896
  }, index))
2877
2897
  }),
2878
- moreIconVisible ? /* @__PURE__ */ _jsx28("div", {
2898
+ moreIconVisible ? /* @__PURE__ */ _jsx29("div", {
2879
2899
  className: "md:ml-1",
2880
2900
  onMouseEnter: mouseEnter,
2881
- children: /* @__PURE__ */ _jsx28(arrow_down_default, {})
2901
+ children: /* @__PURE__ */ _jsx29(arrow_down_default, {})
2882
2902
  }) : null
2883
2903
  ]
2884
2904
  });
2885
2905
  };
2886
2906
 
2887
2907
  // src/theme-default/components/SocialLinks/HiddenLinks.tsx
2888
- import { jsx as _jsx29 } from "react/jsx-runtime";
2908
+ import { jsx as _jsx30 } from "react/jsx-runtime";
2889
2909
  var HiddenLinks = (props) => {
2890
2910
  const { links } = props;
2891
- return /* @__PURE__ */ _jsx29("div", {
2911
+ return /* @__PURE__ */ _jsx30("div", {
2892
2912
  style: {
2893
2913
  boxShadow: "var(--rp-shadow-3)",
2894
2914
  marginRight: "-2px",
2895
2915
  border: "1px solid var(--rp-c-divider-light)"
2896
2916
  },
2897
2917
  className: "absolute top-13 right-0 z-1 p-3 w-32 rounded-xl bg-white flex flex-wrap gap-4",
2898
- children: links.map((item) => /* @__PURE__ */ _jsx29(LinkContent, {
2918
+ children: links.map((item) => /* @__PURE__ */ _jsx30(LinkContent, {
2899
2919
  link: item,
2900
2920
  popperStyle: {
2901
2921
  top: "1.25rem"
@@ -2921,12 +2941,12 @@ var SocialLinks = ({ socialLinks }) => {
2921
2941
  className: `social-links ${index_module_default13.menuItem} flex-center relative`,
2922
2942
  onMouseLeave: () => setMoreLinksVisible(false),
2923
2943
  children: [
2924
- /* @__PURE__ */ _jsx30(ShownLinks, {
2944
+ /* @__PURE__ */ _jsx31(ShownLinks, {
2925
2945
  links: shownLinks,
2926
2946
  moreIconVisible: moreThanThree,
2927
2947
  mouseEnter: () => setMoreLinksVisible(true)
2928
2948
  }),
2929
- moreLinksVisible ? /* @__PURE__ */ _jsx30(HiddenLinks, {
2949
+ moreLinksVisible ? /* @__PURE__ */ _jsx31(HiddenLinks, {
2930
2950
  links: hiddenLinks
2931
2951
  }) : null
2932
2952
  ]
@@ -2938,7 +2958,7 @@ var index_module_default14 = { "navScreen": "navScreen_8624f", "active": "active
2938
2958
 
2939
2959
  // src/theme-default/components/NavScreen/index.tsx
2940
2960
  import { NoSSR, ThemeContext as ThemeContext2 } from "@/runtime";
2941
- function _define_property16(obj, key, value) {
2961
+ function _define_property17(obj, key, value) {
2942
2962
  if (key in obj) {
2943
2963
  Object.defineProperty(obj, key, {
2944
2964
  value,
@@ -2951,7 +2971,7 @@ function _define_property16(obj, key, value) {
2951
2971
  }
2952
2972
  return obj;
2953
2973
  }
2954
- function _object_spread16(target) {
2974
+ function _object_spread17(target) {
2955
2975
  for (var i = 1; i < arguments.length; i++) {
2956
2976
  var source = arguments[i] != null ? arguments[i] : {};
2957
2977
  var ownKeys32 = Object.keys(source);
@@ -2961,12 +2981,12 @@ function _object_spread16(target) {
2961
2981
  }));
2962
2982
  }
2963
2983
  ownKeys32.forEach(function(key) {
2964
- _define_property16(target, key, source[key]);
2984
+ _define_property17(target, key, source[key]);
2965
2985
  });
2966
2986
  }
2967
2987
  return target;
2968
2988
  }
2969
- function ownKeys12(object, enumerableOnly) {
2989
+ function ownKeys11(object, enumerableOnly) {
2970
2990
  var keys = Object.keys(object);
2971
2991
  if (Object.getOwnPropertySymbols) {
2972
2992
  var symbols = Object.getOwnPropertySymbols(object);
@@ -2979,30 +2999,30 @@ function ownKeys12(object, enumerableOnly) {
2979
2999
  }
2980
3000
  return keys;
2981
3001
  }
2982
- function _object_spread_props12(target, source) {
3002
+ function _object_spread_props11(target, source) {
2983
3003
  source = source != null ? source : {};
2984
3004
  if (Object.getOwnPropertyDescriptors) {
2985
3005
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
2986
3006
  } else {
2987
- ownKeys12(Object(source)).forEach(function(key) {
3007
+ ownKeys11(Object(source)).forEach(function(key) {
2988
3008
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
2989
3009
  });
2990
3010
  }
2991
3011
  return target;
2992
3012
  }
2993
3013
  var NavScreenTranslations = ({ translationMenuData }) => {
2994
- return /* @__PURE__ */ _jsx31("div", {
3014
+ return /* @__PURE__ */ _jsx32("div", {
2995
3015
  className: `${index_module_default14.navTranslations} flex text-sm font-bold justify-center`,
2996
- children: /* @__PURE__ */ _jsx31("div", {
3016
+ children: /* @__PURE__ */ _jsx32("div", {
2997
3017
  className: "mx-1.5 my-1",
2998
- children: /* @__PURE__ */ _jsx31(NavScreenMenuGroup, _object_spread16({}, translationMenuData))
3018
+ children: /* @__PURE__ */ _jsx32(NavScreenMenuGroup, _object_spread17({}, translationMenuData))
2999
3019
  })
3000
3020
  });
3001
3021
  };
3002
3022
  function NavScreen(props) {
3003
3023
  var _siteData_themeConfig, _siteData, _localesData_find;
3004
3024
  const { isScreenOpen, localeData, siteData: siteData2, pathname, setLogo } = props;
3005
- const screen = useRef3(null);
3025
+ const screen = useRef4(null);
3006
3026
  const { theme } = useContext2(ThemeContext2);
3007
3027
  const localesData = siteData2.themeConfig.locales || [];
3008
3028
  const hasMultiLanguage = localesData.length > 1;
@@ -3013,7 +3033,7 @@ function NavScreen(props) {
3013
3033
  const langs = localesData.map((item) => item.lang || "zh") || [];
3014
3034
  const { base, logo } = siteData2;
3015
3035
  const translationMenuData = hasMultiLanguage ? {
3016
- text: /* @__PURE__ */ _jsx31(translator_default, {
3036
+ text: /* @__PURE__ */ _jsx32(translator_default, {
3017
3037
  style: {
3018
3038
  width: "18px",
3019
3039
  height: "18px"
@@ -3029,10 +3049,10 @@ function NavScreen(props) {
3029
3049
  activeValue: (_localesData_find = localesData.find((item) => item.lang === localeData.lang)) === null || _localesData_find === void 0 ? void 0 : _localesData_find.label
3030
3050
  } : null;
3031
3051
  const NavScreenAppearance = () => {
3032
- return /* @__PURE__ */ _jsx31("div", {
3052
+ return /* @__PURE__ */ _jsx32("div", {
3033
3053
  className: `mt-2 ${index_module_default14.navAppearance} flex justify-center`,
3034
- children: /* @__PURE__ */ _jsx31(NoSSR, {
3035
- children: /* @__PURE__ */ _jsx31(SwitchAppearance, {
3054
+ children: /* @__PURE__ */ _jsx32(NoSSR, {
3055
+ children: /* @__PURE__ */ _jsx32(SwitchAppearance, {
3036
3056
  onClick: () => {
3037
3057
  setLogo(getLogoUrl(logo, theme === "dark" ? "light" : "dark"));
3038
3058
  }
@@ -3041,18 +3061,18 @@ function NavScreen(props) {
3041
3061
  });
3042
3062
  };
3043
3063
  const NavScreenMenu = ({ menuItems: menuItems2 }) => {
3044
- return /* @__PURE__ */ _jsx31("div", {
3064
+ return /* @__PURE__ */ _jsx32("div", {
3045
3065
  className: index_module_default14.navMenu,
3046
3066
  children: menuItems2.map((item, index) => {
3047
- return /* @__PURE__ */ _jsx31("div", {
3067
+ return /* @__PURE__ */ _jsx32("div", {
3048
3068
  className: `${index_module_default14.navMenuItem} w-full`,
3049
- children: "link" in item ? /* @__PURE__ */ _jsx31(NavMenuSingleItem, _object_spread16({
3069
+ children: "link" in item ? /* @__PURE__ */ _jsx32(NavMenuSingleItem, _object_spread17({
3050
3070
  pathname,
3051
3071
  base,
3052
3072
  langs
3053
- }, item), index) : /* @__PURE__ */ _jsx31("div", {
3073
+ }, item), index) : /* @__PURE__ */ _jsx32("div", {
3054
3074
  className: "mx-3 last:mr-0",
3055
- children: /* @__PURE__ */ _jsx31(NavScreenMenuGroup, _object_spread_props12(_object_spread16({}, item), {
3075
+ children: /* @__PURE__ */ _jsx32(NavScreenMenuGroup, _object_spread_props11(_object_spread17({}, item), {
3056
3076
  items: "items" in item ? item.items : item
3057
3077
  }))
3058
3078
  }, index)
@@ -3060,7 +3080,7 @@ function NavScreen(props) {
3060
3080
  })
3061
3081
  });
3062
3082
  };
3063
- useEffect8(() => {
3083
+ useEffect10(() => {
3064
3084
  screen.current && isScreenOpen && disableBodyScroll(screen.current, {
3065
3085
  reserveScrollBarGap: true
3066
3086
  });
@@ -3070,24 +3090,24 @@ function NavScreen(props) {
3070
3090
  }, [
3071
3091
  isScreenOpen
3072
3092
  ]);
3073
- return /* @__PURE__ */ _jsx31("div", {
3093
+ return /* @__PURE__ */ _jsx32("div", {
3074
3094
  className: `${index_module_default14.navScreen} ${isScreenOpen ? index_module_default14.active : ""}`,
3075
3095
  ref: screen,
3076
3096
  id: "navScreen",
3077
3097
  children: /* @__PURE__ */ _jsxs19("div", {
3078
3098
  className: index_module_default14.container,
3079
3099
  children: [
3080
- /* @__PURE__ */ _jsx31(NavScreenMenu, {
3100
+ /* @__PURE__ */ _jsx32(NavScreenMenu, {
3081
3101
  menuItems
3082
3102
  }),
3083
3103
  /* @__PURE__ */ _jsxs19("div", {
3084
3104
  className: "flex-center flex-col gap-2",
3085
3105
  children: [
3086
- hasAppearanceSwitch && /* @__PURE__ */ _jsx31(NavScreenAppearance, {}),
3087
- hasMultiLanguage && /* @__PURE__ */ _jsx31(NavScreenTranslations, {
3106
+ hasAppearanceSwitch && /* @__PURE__ */ _jsx32(NavScreenAppearance, {}),
3107
+ hasMultiLanguage && /* @__PURE__ */ _jsx32(NavScreenTranslations, {
3088
3108
  translationMenuData
3089
3109
  }),
3090
- hasSocialLinks && /* @__PURE__ */ _jsx31(SocialLinks, {
3110
+ hasSocialLinks && /* @__PURE__ */ _jsx32(SocialLinks, {
3091
3111
  socialLinks
3092
3112
  })
3093
3113
  ]
@@ -3128,9 +3148,9 @@ function useNav() {
3128
3148
  }
3129
3149
 
3130
3150
  // src/theme-default/assets/small-menu.svg
3131
- import { jsx as _jsx32, jsxs as _jsxs20 } from "react/jsx-runtime";
3151
+ import { jsx as _jsx33, jsxs as _jsxs20 } from "react/jsx-runtime";
3132
3152
  import * as React12 from "react";
3133
- function _define_property17(obj, key, value) {
3153
+ function _define_property18(obj, key, value) {
3134
3154
  if (key in obj) {
3135
3155
  Object.defineProperty(obj, key, {
3136
3156
  value,
@@ -3143,7 +3163,7 @@ function _define_property17(obj, key, value) {
3143
3163
  }
3144
3164
  return obj;
3145
3165
  }
3146
- function _object_spread17(target) {
3166
+ function _object_spread18(target) {
3147
3167
  for (var i = 1; i < arguments.length; i++) {
3148
3168
  var source = arguments[i] != null ? arguments[i] : {};
3149
3169
  var ownKeys32 = Object.keys(source);
@@ -3153,12 +3173,12 @@ function _object_spread17(target) {
3153
3173
  }));
3154
3174
  }
3155
3175
  ownKeys32.forEach(function(key) {
3156
- _define_property17(target, key, source[key]);
3176
+ _define_property18(target, key, source[key]);
3157
3177
  });
3158
3178
  }
3159
3179
  return target;
3160
3180
  }
3161
- function ownKeys13(object, enumerableOnly) {
3181
+ function ownKeys12(object, enumerableOnly) {
3162
3182
  var keys = Object.keys(object);
3163
3183
  if (Object.getOwnPropertySymbols) {
3164
3184
  var symbols = Object.getOwnPropertySymbols(object);
@@ -3171,36 +3191,36 @@ function ownKeys13(object, enumerableOnly) {
3171
3191
  }
3172
3192
  return keys;
3173
3193
  }
3174
- function _object_spread_props13(target, source) {
3194
+ function _object_spread_props12(target, source) {
3175
3195
  source = source != null ? source : {};
3176
3196
  if (Object.getOwnPropertyDescriptors) {
3177
3197
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
3178
3198
  } else {
3179
- ownKeys13(Object(source)).forEach(function(key) {
3199
+ ownKeys12(Object(source)).forEach(function(key) {
3180
3200
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
3181
3201
  });
3182
3202
  }
3183
3203
  return target;
3184
3204
  }
3185
- var SvgSmallMenu = (props) => /* @__PURE__ */ _jsxs20("svg", _object_spread_props13(_object_spread17({
3205
+ var SvgSmallMenu = (props) => /* @__PURE__ */ _jsxs20("svg", _object_spread_props12(_object_spread18({
3186
3206
  xmlns: "http://www.w3.org/2000/svg",
3187
3207
  width: 32,
3188
3208
  height: 32
3189
3209
  }, props), {
3190
3210
  children: [
3191
- /* @__PURE__ */ _jsx32("circle", {
3211
+ /* @__PURE__ */ _jsx33("circle", {
3192
3212
  cx: 8,
3193
3213
  cy: 16,
3194
3214
  r: 2,
3195
3215
  fill: "currentColor"
3196
3216
  }),
3197
- /* @__PURE__ */ _jsx32("circle", {
3217
+ /* @__PURE__ */ _jsx33("circle", {
3198
3218
  cx: 16,
3199
3219
  cy: 16,
3200
3220
  r: 2,
3201
3221
  fill: "currentColor"
3202
3222
  }),
3203
- /* @__PURE__ */ _jsx32("circle", {
3223
+ /* @__PURE__ */ _jsx33("circle", {
3204
3224
  cx: 24,
3205
3225
  cy: 16,
3206
3226
  r: 2,
@@ -3219,17 +3239,17 @@ function NavHamburger(props) {
3219
3239
  const { isScreenOpen, toggleScreen } = useNav();
3220
3240
  return /* @__PURE__ */ _jsxs21(Fragment2, {
3221
3241
  children: [
3222
- /* @__PURE__ */ _jsx33(NavScreen, {
3242
+ /* @__PURE__ */ _jsx34(NavScreen, {
3223
3243
  isScreenOpen,
3224
3244
  localeData,
3225
3245
  siteData: siteData2,
3226
3246
  pathname,
3227
3247
  setLogo
3228
3248
  }),
3229
- /* @__PURE__ */ _jsx33("button", {
3249
+ /* @__PURE__ */ _jsx34("button", {
3230
3250
  onClick: toggleScreen,
3231
3251
  className: `${isScreenOpen ? index_module_default15.active : ""} ${index_module_default15.navHamburger} text-gray-500`,
3232
- children: /* @__PURE__ */ _jsx33(small_menu_default, {
3252
+ children: /* @__PURE__ */ _jsx34(small_menu_default, {
3233
3253
  fill: "currentColor"
3234
3254
  })
3235
3255
  })
@@ -3238,9 +3258,61 @@ function NavHamburger(props) {
3238
3258
  }
3239
3259
 
3240
3260
  // src/theme-default/components/Nav/NavMenuGroup.tsx
3241
- import { jsx as _jsx34, jsxs as _jsxs22 } from "react/jsx-runtime";
3261
+ import { jsx as _jsx35, jsxs as _jsxs22, Fragment as _Fragment3 } from "react/jsx-runtime";
3242
3262
  import { useState as useState9 } from "react";
3243
3263
  import { withoutBase as withoutBase2 } from "@rspress/shared";
3264
+ function _define_property19(obj, key, value) {
3265
+ if (key in obj) {
3266
+ Object.defineProperty(obj, key, {
3267
+ value,
3268
+ enumerable: true,
3269
+ configurable: true,
3270
+ writable: true
3271
+ });
3272
+ } else {
3273
+ obj[key] = value;
3274
+ }
3275
+ return obj;
3276
+ }
3277
+ function _object_spread19(target) {
3278
+ for (var i = 1; i < arguments.length; i++) {
3279
+ var source = arguments[i] != null ? arguments[i] : {};
3280
+ var ownKeys32 = Object.keys(source);
3281
+ if (typeof Object.getOwnPropertySymbols === "function") {
3282
+ ownKeys32 = ownKeys32.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
3283
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
3284
+ }));
3285
+ }
3286
+ ownKeys32.forEach(function(key) {
3287
+ _define_property19(target, key, source[key]);
3288
+ });
3289
+ }
3290
+ return target;
3291
+ }
3292
+ function ownKeys13(object, enumerableOnly) {
3293
+ var keys = Object.keys(object);
3294
+ if (Object.getOwnPropertySymbols) {
3295
+ var symbols = Object.getOwnPropertySymbols(object);
3296
+ if (enumerableOnly) {
3297
+ symbols = symbols.filter(function(sym) {
3298
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
3299
+ });
3300
+ }
3301
+ keys.push.apply(keys, symbols);
3302
+ }
3303
+ return keys;
3304
+ }
3305
+ function _object_spread_props13(target, source) {
3306
+ source = source != null ? source : {};
3307
+ if (Object.getOwnPropertyDescriptors) {
3308
+ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
3309
+ } else {
3310
+ ownKeys13(Object(source)).forEach(function(key) {
3311
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
3312
+ });
3313
+ }
3314
+ return target;
3315
+ }
3244
3316
  function ActiveGroupItem({ item }) {
3245
3317
  return /* @__PURE__ */ _jsxs22("div", {
3246
3318
  className: "rounded-2xl my-1 flex",
@@ -3248,10 +3320,10 @@ function ActiveGroupItem({ item }) {
3248
3320
  padding: "0.4rem 1.5rem 0.4rem 0.75rem"
3249
3321
  },
3250
3322
  children: [
3251
- item.tag && /* @__PURE__ */ _jsx34(Tag, {
3323
+ item.tag && /* @__PURE__ */ _jsx35(Tag, {
3252
3324
  tag: item.tag
3253
3325
  }),
3254
- /* @__PURE__ */ _jsx34("span", {
3326
+ /* @__PURE__ */ _jsx35("span", {
3255
3327
  className: "text-brand",
3256
3328
  children: item.text
3257
3329
  })
@@ -3259,11 +3331,11 @@ function ActiveGroupItem({ item }) {
3259
3331
  }, item.link);
3260
3332
  }
3261
3333
  function NormalGroupItem({ item }) {
3262
- return /* @__PURE__ */ _jsx34("div", {
3334
+ return /* @__PURE__ */ _jsx35("div", {
3263
3335
  className: "font-medium my-1",
3264
- children: /* @__PURE__ */ _jsx34(Link, {
3336
+ children: /* @__PURE__ */ _jsx35(Link, {
3265
3337
  href: item.link,
3266
- children: /* @__PURE__ */ _jsx34("div", {
3338
+ children: /* @__PURE__ */ _jsx35("div", {
3267
3339
  className: "rounded-2xl hover:bg-mute",
3268
3340
  style: {
3269
3341
  padding: "0.4rem 1.5rem 0.4rem 0.75rem"
@@ -3271,10 +3343,10 @@ function NormalGroupItem({ item }) {
3271
3343
  children: /* @__PURE__ */ _jsxs22("div", {
3272
3344
  className: "flex",
3273
3345
  children: [
3274
- item.tag && /* @__PURE__ */ _jsx34(Tag, {
3346
+ item.tag && /* @__PURE__ */ _jsx35(Tag, {
3275
3347
  tag: item.tag
3276
3348
  }),
3277
- /* @__PURE__ */ _jsx34("span", {
3349
+ /* @__PURE__ */ _jsx35("span", {
3278
3350
  children: item.text
3279
3351
  })
3280
3352
  ]
@@ -3284,23 +3356,23 @@ function NormalGroupItem({ item }) {
3284
3356
  }, item.link);
3285
3357
  }
3286
3358
  function NavMenuGroup(item) {
3287
- const { activeValue, isTranslation, items: groupItems, base = "", pathname = "" } = item;
3359
+ const { activeValue, isTranslation, items: groupItems, base = "", link = "", pathname = "" } = item;
3288
3360
  const [isOpen, setIsOpen] = useState9(false);
3289
3361
  const renderLinkItem = (item2) => {
3290
3362
  const isLinkActive = new RegExp(item2.activeMatch || item2.link).test(withoutBase2(pathname, base));
3291
3363
  if (activeValue === item2.text || !activeValue && isLinkActive) {
3292
- return /* @__PURE__ */ _jsx34(ActiveGroupItem, {
3364
+ return /* @__PURE__ */ _jsx35(ActiveGroupItem, {
3293
3365
  item: item2
3294
3366
  }, item2.link);
3295
3367
  }
3296
- return /* @__PURE__ */ _jsx34(NormalGroupItem, {
3368
+ return /* @__PURE__ */ _jsx35(NormalGroupItem, {
3297
3369
  item: item2
3298
3370
  }, item2.link);
3299
3371
  };
3300
3372
  const renderGroup = (item2) => {
3301
3373
  return /* @__PURE__ */ _jsxs22("div", {
3302
3374
  children: [
3303
- /* @__PURE__ */ _jsx34("p", {
3375
+ "link" in item2 ? renderLinkItem(item2) : /* @__PURE__ */ _jsx35("p", {
3304
3376
  className: "font-bold text-gray-400 my-1 not:first:border",
3305
3377
  children: item2.text
3306
3378
  }),
@@ -3312,31 +3384,38 @@ function NavMenuGroup(item) {
3312
3384
  className: "relative flex-center h-14",
3313
3385
  onMouseLeave: () => setIsOpen(false),
3314
3386
  children: [
3315
- /* @__PURE__ */ _jsxs22("button", {
3387
+ /* @__PURE__ */ _jsx35("button", {
3316
3388
  onMouseEnter: () => setIsOpen(true),
3317
3389
  className: "nav-menu-group-button flex-center items-center font-medium text-sm text-text-1 hover:text-text-2 transition-colors duration-200",
3318
- children: [
3319
- /* @__PURE__ */ _jsxs22("span", {
3320
- className: "text-sm font-medium flex",
3321
- style: {
3322
- marginRight: "2px"
3323
- },
3324
- children: [
3325
- /* @__PURE__ */ _jsx34(Tag, {
3326
- tag: item.tag
3327
- }),
3328
- isTranslation ? /* @__PURE__ */ _jsx34(translator_default, {
3329
- style: {
3330
- with: "18px",
3331
- height: "18px"
3332
- }
3333
- }) : item.text
3334
- ]
3335
- }),
3336
- /* @__PURE__ */ _jsx34(down_default, {})
3337
- ]
3390
+ children: link ? (
3391
+ // @ts-expect-error item.text may be ReactElement
3392
+ /* @__PURE__ */ _jsx35(NavMenuSingleItem, _object_spread_props13(_object_spread19({}, item), {
3393
+ rightIcon: /* @__PURE__ */ _jsx35(down_default, {})
3394
+ }))
3395
+ ) : /* @__PURE__ */ _jsxs22(_Fragment3, {
3396
+ children: [
3397
+ /* @__PURE__ */ _jsxs22("span", {
3398
+ className: "text-sm font-medium flex",
3399
+ style: {
3400
+ marginRight: "2px"
3401
+ },
3402
+ children: [
3403
+ /* @__PURE__ */ _jsx35(Tag, {
3404
+ tag: item.tag
3405
+ }),
3406
+ isTranslation ? /* @__PURE__ */ _jsx35(translator_default, {
3407
+ style: {
3408
+ with: "18px",
3409
+ height: "18px"
3410
+ }
3411
+ }) : item.text
3412
+ ]
3413
+ }),
3414
+ /* @__PURE__ */ _jsx35(down_default, {})
3415
+ ]
3416
+ })
3338
3417
  }),
3339
- /* @__PURE__ */ _jsx34("div", {
3418
+ /* @__PURE__ */ _jsx35("div", {
3340
3419
  className: "nav-menu-group-content absolute mx-0.8 transition-opacity duration-300",
3341
3420
  style: {
3342
3421
  opacity: isOpen ? 1 : 0,
@@ -3344,7 +3423,7 @@ function NavMenuGroup(item) {
3344
3423
  right: 0,
3345
3424
  top: "52px"
3346
3425
  },
3347
- children: /* @__PURE__ */ _jsx34("div", {
3426
+ children: /* @__PURE__ */ _jsx35("div", {
3348
3427
  className: "p-3 pr-2 w-full h-full max-h-100vh whitespace-nowrap",
3349
3428
  style: {
3350
3429
  boxShadow: "var(--rp-shadow-3)",
@@ -3354,8 +3433,8 @@ function NavMenuGroup(item) {
3354
3433
  background: "var(--rp-c-bg)"
3355
3434
  },
3356
3435
  children: groupItems.map((item2) => {
3357
- return /* @__PURE__ */ _jsx34("div", {
3358
- children: "link" in item2 ? renderLinkItem(item2) : renderGroup(item2)
3436
+ return /* @__PURE__ */ _jsx35("div", {
3437
+ children: "items" in item2 ? renderGroup(item2) : renderLinkItem(item2)
3359
3438
  }, item2.text);
3360
3439
  })
3361
3440
  })
@@ -3366,7 +3445,7 @@ function NavMenuGroup(item) {
3366
3445
 
3367
3446
  // src/theme-default/components/Nav/index.tsx
3368
3447
  import { ThemeContext as ThemeContext3, usePageData as usePageData10, withBase as withBase7 } from "@/runtime";
3369
- function _define_property18(obj, key, value) {
3448
+ function _define_property20(obj, key, value) {
3370
3449
  if (key in obj) {
3371
3450
  Object.defineProperty(obj, key, {
3372
3451
  value,
@@ -3379,7 +3458,7 @@ function _define_property18(obj, key, value) {
3379
3458
  }
3380
3459
  return obj;
3381
3460
  }
3382
- function _object_spread18(target) {
3461
+ function _object_spread20(target) {
3383
3462
  for (var i = 1; i < arguments.length; i++) {
3384
3463
  var source = arguments[i] != null ? arguments[i] : {};
3385
3464
  var ownKeys32 = Object.keys(source);
@@ -3389,7 +3468,7 @@ function _object_spread18(target) {
3389
3468
  }));
3390
3469
  }
3391
3470
  ownKeys32.forEach(function(key) {
3392
- _define_property18(target, key, source[key]);
3471
+ _define_property20(target, key, source[key]);
3393
3472
  });
3394
3473
  }
3395
3474
  return target;
@@ -3420,27 +3499,27 @@ function _object_spread_props14(target, source) {
3420
3499
  }
3421
3500
  var DEFAULT_NAV_POSTION = "right";
3422
3501
  var NavBarTitle = ({ title, langRoutePrefix, logo }) => {
3423
- return /* @__PURE__ */ _jsx35("div", {
3502
+ return /* @__PURE__ */ _jsx36("div", {
3424
3503
  className: `${index_module_default12.navBarTitle}`,
3425
- children: /* @__PURE__ */ _jsx35("a", {
3504
+ children: /* @__PURE__ */ _jsx36("a", {
3426
3505
  href: withBase7(langRoutePrefix),
3427
3506
  className: "flex items-center w-full h-full text-base font-semibold transition-opacity duration-300 hover:opacity-60",
3428
- children: logo ? /* @__PURE__ */ _jsx35("img", {
3507
+ children: logo ? /* @__PURE__ */ _jsx36("img", {
3429
3508
  src: logo,
3430
3509
  alt: "logo",
3431
3510
  id: "logo",
3432
3511
  className: "w-24 mr-4 rspress-logo"
3433
- }) : /* @__PURE__ */ _jsx35("span", {
3512
+ }) : /* @__PURE__ */ _jsx36("span", {
3434
3513
  children: title
3435
3514
  })
3436
3515
  })
3437
3516
  });
3438
3517
  };
3439
3518
  var NavTranslations = ({ translationMenuData }) => {
3440
- return /* @__PURE__ */ _jsx35("div", {
3519
+ return /* @__PURE__ */ _jsx36("div", {
3441
3520
  className: `translation ${index_module_default12.menuItem} flex text-sm font-bold items-center px-3 py-2`,
3442
- children: /* @__PURE__ */ _jsx35("div", {
3443
- children: /* @__PURE__ */ _jsx35(NavMenuGroup, _object_spread_props14(_object_spread18({}, translationMenuData), {
3521
+ children: /* @__PURE__ */ _jsx36("div", {
3522
+ children: /* @__PURE__ */ _jsx36(NavMenuGroup, _object_spread_props14(_object_spread20({}, translationMenuData), {
3444
3523
  isTranslation: true
3445
3524
  }))
3446
3525
  })
@@ -3473,26 +3552,27 @@ function Nav2(props) {
3473
3552
  }),
3474
3553
  activeValue: (_localeLanguages_find = localeLanguages.find((item) => lang === item.lang)) === null || _localeLanguages_find === void 0 ? void 0 : _localeLanguages_find.label
3475
3554
  } : null;
3476
- useEffect9(() => {
3555
+ useEffect11(() => {
3477
3556
  setLogo(getLogoUrl(rawLogo, theme));
3478
3557
  }, [
3479
3558
  theme
3480
3559
  ]);
3481
- useEffect9(() => {
3560
+ useEffect11(() => {
3482
3561
  setIsMobile(isMobileDevice());
3483
3562
  }, []);
3484
3563
  const NavMenu = ({ menuItems: menuItems2 }) => {
3485
- return /* @__PURE__ */ _jsx35("div", {
3486
- className: "menu h-14",
3564
+ return /* @__PURE__ */ _jsx36("div", {
3565
+ className: "rspress-nav-menu menu h-14",
3487
3566
  children: menuItems2.map((item) => {
3488
- return "items" in item || Array.isArray(item) ? /* @__PURE__ */ _jsx35("div", {
3567
+ return "items" in item || Array.isArray(item) ? /* @__PURE__ */ _jsx36("div", {
3489
3568
  className: "mx-3 last:mr-0",
3490
- children: /* @__PURE__ */ _jsx35(NavMenuGroup, _object_spread_props14(_object_spread18({}, item), {
3569
+ children: /* @__PURE__ */ _jsx36(NavMenuGroup, _object_spread_props14(_object_spread20({}, item), {
3491
3570
  base,
3492
3571
  pathname,
3572
+ langs,
3493
3573
  items: "items" in item ? item.items : item
3494
3574
  }))
3495
- }, item.text) : /* @__PURE__ */ _jsx35(NavMenuSingleItem, _object_spread18({
3575
+ }, item.text) : /* @__PURE__ */ _jsx36(NavMenuSingleItem, _object_spread20({
3496
3576
  pathname,
3497
3577
  langs,
3498
3578
  base
@@ -3510,35 +3590,35 @@ function Nav2(props) {
3510
3590
  const title = (_localeData_title = localeData.title) !== null && _localeData_title !== void 0 ? _localeData_title : siteData2.title;
3511
3591
  const hasAppearanceSwitch = siteData2.themeConfig.darkMode !== false;
3512
3592
  const leftNav = () => {
3513
- return /* @__PURE__ */ _jsx35("div", {
3593
+ return leftMenuItems.length > 0 ? /* @__PURE__ */ _jsx36("div", {
3514
3594
  className: index_module_default12.leftNav,
3515
- children: /* @__PURE__ */ _jsx35(NavMenu, {
3595
+ children: /* @__PURE__ */ _jsx36(NavMenu, {
3516
3596
  menuItems: leftMenuItems
3517
3597
  })
3518
- });
3598
+ }) : null;
3519
3599
  };
3520
3600
  const rightNav = () => {
3521
3601
  return /* @__PURE__ */ _jsxs23("div", {
3522
3602
  className: index_module_default12.rightNav,
3523
3603
  children: [
3524
- hasSearch && /* @__PURE__ */ _jsx35("div", {
3604
+ hasSearch && /* @__PURE__ */ _jsx36("div", {
3525
3605
  className: "flex sm:flex-1 items-center sm:pl-4 sm:pr-2",
3526
- children: /* @__PURE__ */ _jsx35(Search, {})
3606
+ children: /* @__PURE__ */ _jsx36(Search, {})
3527
3607
  }),
3528
- /* @__PURE__ */ _jsx35(NavMenu, {
3608
+ /* @__PURE__ */ _jsx36(NavMenu, {
3529
3609
  menuItems: rightMenuItems
3530
3610
  }),
3531
3611
  /* @__PURE__ */ _jsxs23("div", {
3532
3612
  className: "flex-center flex-row",
3533
3613
  children: [
3534
- hasMultiLanguage && /* @__PURE__ */ _jsx35(NavTranslations, {
3614
+ hasMultiLanguage && /* @__PURE__ */ _jsx36(NavTranslations, {
3535
3615
  translationMenuData
3536
3616
  }),
3537
- hasAppearanceSwitch && /* @__PURE__ */ _jsx35("div", {
3617
+ hasAppearanceSwitch && /* @__PURE__ */ _jsx36("div", {
3538
3618
  className: "mx-2",
3539
- children: /* @__PURE__ */ _jsx35(SwitchAppearance, {})
3619
+ children: /* @__PURE__ */ _jsx36(SwitchAppearance, {})
3540
3620
  }),
3541
- hasSocialLinks && /* @__PURE__ */ _jsx35(SocialLinks, {
3621
+ hasSocialLinks && /* @__PURE__ */ _jsx36(SocialLinks, {
3542
3622
  socialLinks
3543
3623
  })
3544
3624
  ]
@@ -3554,13 +3634,13 @@ function Nav2(props) {
3554
3634
  },
3555
3635
  children: [
3556
3636
  beforeNav,
3557
- /* @__PURE__ */ _jsx35("div", {
3637
+ /* @__PURE__ */ _jsx36("div", {
3558
3638
  className: `${index_module_default12.navContainer} rspress-nav px-6`,
3559
3639
  children: /* @__PURE__ */ _jsxs23("div", {
3560
3640
  className: `${index_module_default12.container} flex justify-between items-center h-full`,
3561
3641
  children: [
3562
3642
  beforeNavTitle,
3563
- /* @__PURE__ */ _jsx35(NavBarTitle, {
3643
+ /* @__PURE__ */ _jsx36(NavBarTitle, {
3564
3644
  title,
3565
3645
  langRoutePrefix: localeData.langRoutePrefix || "/",
3566
3646
  logo
@@ -3574,8 +3654,8 @@ function Nav2(props) {
3574
3654
  /* @__PURE__ */ _jsxs23("div", {
3575
3655
  className: index_module_default12.mobileNavMenu,
3576
3656
  children: [
3577
- isMobile && /* @__PURE__ */ _jsx35(Search, {}),
3578
- /* @__PURE__ */ _jsx35(NavHamburger, {
3657
+ isMobile && /* @__PURE__ */ _jsx36(Search, {}),
3658
+ /* @__PURE__ */ _jsx36(NavHamburger, {
3579
3659
  localeData,
3580
3660
  siteData: siteData2,
3581
3661
  pathname,
@@ -3593,15 +3673,15 @@ function Nav2(props) {
3593
3673
  }
3594
3674
 
3595
3675
  // src/theme-default/components/Search/index.tsx
3596
- import { jsx as _jsx47, jsxs as _jsxs30, Fragment as _Fragment4 } from "react/jsx-runtime";
3676
+ import { jsx as _jsx48, jsxs as _jsxs30, Fragment as _Fragment5 } from "react/jsx-runtime";
3597
3677
  import debounce from "lodash-es/debounce";
3598
3678
  import groupBy from "lodash-es/groupBy";
3599
3679
  import { createPortal } from "react-dom";
3600
- import { useEffect as useEffect10, useRef as useRef4, useState as useState11 } from "react";
3680
+ import { useEffect as useEffect12, useRef as useRef5, useState as useState11 } from "react";
3601
3681
  import { onSearch } from "virtual-search-hooks";
3602
3682
 
3603
3683
  // src/theme-default/components/Tabs/index.tsx
3604
- import { jsx as _jsx36, jsxs as _jsxs24 } from "react/jsx-runtime";
3684
+ import { jsx as _jsx37, jsxs as _jsxs24 } from "react/jsx-runtime";
3605
3685
  import { useContext as useContext4 } from "react";
3606
3686
  import { Tab as HeadlessTab } from "@headlessui/react";
3607
3687
 
@@ -3609,7 +3689,7 @@ import { Tab as HeadlessTab } from "@headlessui/react";
3609
3689
  var index_module_default16 = { "container": "container_7e0fb", "tab-list": "tab-list_7e0fb", "tabList": "tab-list_7e0fb", "tab": "tab_7e0fb", "not-selected": "not-selected_7e0fb", "notSelected": "not-selected_7e0fb", "selected": "selected_7e0fb" };
3610
3690
 
3611
3691
  // src/theme-default/components/Tabs/index.tsx
3612
- function _define_property19(obj, key, value) {
3692
+ function _define_property21(obj, key, value) {
3613
3693
  if (key in obj) {
3614
3694
  Object.defineProperty(obj, key, {
3615
3695
  value,
@@ -3622,7 +3702,7 @@ function _define_property19(obj, key, value) {
3622
3702
  }
3623
3703
  return obj;
3624
3704
  }
3625
- function _object_spread19(target) {
3705
+ function _object_spread21(target) {
3626
3706
  for (var i = 1; i < arguments.length; i++) {
3627
3707
  var source = arguments[i] != null ? arguments[i] : {};
3628
3708
  var ownKeys32 = Object.keys(source);
@@ -3632,7 +3712,7 @@ function _object_spread19(target) {
3632
3712
  }));
3633
3713
  }
3634
3714
  ownKeys32.forEach(function(key) {
3635
- _define_property19(target, key, source[key]);
3715
+ _define_property21(target, key, source[key]);
3636
3716
  });
3637
3717
  }
3638
3718
  return target;
@@ -3732,14 +3812,14 @@ function Tabs(props) {
3732
3812
  return false;
3733
3813
  });
3734
3814
  }
3735
- return /* @__PURE__ */ _jsx36("div", {
3815
+ return /* @__PURE__ */ _jsx37("div", {
3736
3816
  className: index_module_default16.container,
3737
- children: /* @__PURE__ */ _jsxs24(HeadlessTab.Group, _object_spread_props15(_object_spread19({
3817
+ children: /* @__PURE__ */ _jsxs24(HeadlessTab.Group, _object_spread_props15(_object_spread21({
3738
3818
  onChange: (index) => {
3739
3819
  var _onChange;
3740
3820
  (_onChange = onChange) === null || _onChange === void 0 ? void 0 : _onChange(index);
3741
3821
  if (groupId) {
3742
- setTabData(_object_spread_props15(_object_spread19({}, tabData), {
3822
+ setTabData(_object_spread_props15(_object_spread21({}, tabData), {
3743
3823
  [groupId]: index
3744
3824
  }));
3745
3825
  }
@@ -3750,13 +3830,13 @@ function Tabs(props) {
3750
3830
  defaultIndex
3751
3831
  }), {
3752
3832
  children: [
3753
- /* @__PURE__ */ _jsx36("div", {
3833
+ /* @__PURE__ */ _jsx37("div", {
3754
3834
  className: tabContainerClassName,
3755
- children: tabValues.length ? /* @__PURE__ */ _jsx36(HeadlessTab.List, {
3835
+ children: tabValues.length ? /* @__PURE__ */ _jsx37(HeadlessTab.List, {
3756
3836
  className: index_module_default16.tabList,
3757
3837
  children: tabValues.map((item, index) => {
3758
3838
  const disabled = Boolean(item && typeof item === "object" && "disabled" in item && item.disabled);
3759
- return /* @__PURE__ */ _jsx36(HeadlessTab, {
3839
+ return /* @__PURE__ */ _jsx37(HeadlessTab, {
3760
3840
  disabled,
3761
3841
  className: ({ selected }) => `${index_module_default16.tab} ${selected ? index_module_default16.selected : index_module_default16.notSelected}`,
3762
3842
  children: renderTab(item)
@@ -3764,7 +3844,7 @@ function Tabs(props) {
3764
3844
  })
3765
3845
  }) : null
3766
3846
  }),
3767
- /* @__PURE__ */ _jsx36(HeadlessTab.Panels, {
3847
+ /* @__PURE__ */ _jsx37(HeadlessTab.Panels, {
3768
3848
  children
3769
3849
  })
3770
3850
  ]
@@ -3775,7 +3855,7 @@ function Tab(_param) {
3775
3855
  var { children } = _param, props = _object_without_properties(_param, [
3776
3856
  "children"
3777
3857
  ]);
3778
- return /* @__PURE__ */ _jsx36(HeadlessTab.Panel, _object_spread_props15(_object_spread19({}, props), {
3858
+ return /* @__PURE__ */ _jsx37(HeadlessTab.Panel, _object_spread_props15(_object_spread21({}, props), {
3779
3859
  className: "rounded px-2",
3780
3860
  children
3781
3861
  }));
@@ -3785,9 +3865,9 @@ function Tab(_param) {
3785
3865
  var index_module_default17 = { "mask": "mask_f619e", "modal": "modal_f619e", "inputForm": "inputForm_f619e", "input": "input_f619e", "close": "close_f619e", "searchHits": "searchHits_f619e", "groupTitle": "groupTitle_f619e", "navSearchButton": "navSearchButton_f619e", "searchWord": "searchWord_f619e", "suggestItem": "suggestItem_f619e", "suggestItemContainer": "suggestItemContainer_f619e", "contentWrapper": "contentWrapper_f619e", "mark": "mark_f619e", "titleForContent": "titleForContent_f619e", "actionIcon": "actionIcon_f619e", "current": "current_f619e", "tabClassName": "tabClassName_f619e", "mobileNavSearchButton": "mobileNavSearchButton_f619e" };
3786
3866
 
3787
3867
  // src/theme-default/components/Search/assets/search.svg
3788
- import { jsx as _jsx37 } from "react/jsx-runtime";
3868
+ import { jsx as _jsx38 } from "react/jsx-runtime";
3789
3869
  import * as React13 from "react";
3790
- function _define_property20(obj, key, value) {
3870
+ function _define_property22(obj, key, value) {
3791
3871
  if (key in obj) {
3792
3872
  Object.defineProperty(obj, key, {
3793
3873
  value,
@@ -3800,7 +3880,7 @@ function _define_property20(obj, key, value) {
3800
3880
  }
3801
3881
  return obj;
3802
3882
  }
3803
- function _object_spread20(target) {
3883
+ function _object_spread22(target) {
3804
3884
  for (var i = 1; i < arguments.length; i++) {
3805
3885
  var source = arguments[i] != null ? arguments[i] : {};
3806
3886
  var ownKeys32 = Object.keys(source);
@@ -3810,7 +3890,7 @@ function _object_spread20(target) {
3810
3890
  }));
3811
3891
  }
3812
3892
  ownKeys32.forEach(function(key) {
3813
- _define_property20(target, key, source[key]);
3893
+ _define_property22(target, key, source[key]);
3814
3894
  });
3815
3895
  }
3816
3896
  return target;
@@ -3839,12 +3919,12 @@ function _object_spread_props16(target, source) {
3839
3919
  }
3840
3920
  return target;
3841
3921
  }
3842
- var SvgSearch = (props) => /* @__PURE__ */ _jsx37("svg", _object_spread_props16(_object_spread20({
3922
+ var SvgSearch = (props) => /* @__PURE__ */ _jsx38("svg", _object_spread_props16(_object_spread22({
3843
3923
  width: 24,
3844
3924
  height: 24,
3845
3925
  viewBox: "0 0 32 32"
3846
3926
  }, props), {
3847
- children: /* @__PURE__ */ _jsx37("path", {
3927
+ children: /* @__PURE__ */ _jsx38("path", {
3848
3928
  fill: "var(--rp-c-gray)",
3849
3929
  d: "m29 27.586-7.552-7.552a11.018 11.018 0 1 0-1.414 1.414L27.586 29ZM4 13a9 9 0 1 1 9 9 9.01 9.01 0 0 1-9-9Z"
3850
3930
  })
@@ -3852,9 +3932,9 @@ var SvgSearch = (props) => /* @__PURE__ */ _jsx37("svg", _object_spread_props16(
3852
3932
  var search_default = SvgSearch;
3853
3933
 
3854
3934
  // src/theme-default/components/Search/assets/loading.svg
3855
- import { jsx as _jsx38, jsxs as _jsxs25 } from "react/jsx-runtime";
3935
+ import { jsx as _jsx39, jsxs as _jsxs25 } from "react/jsx-runtime";
3856
3936
  import * as React14 from "react";
3857
- function _define_property21(obj, key, value) {
3937
+ function _define_property23(obj, key, value) {
3858
3938
  if (key in obj) {
3859
3939
  Object.defineProperty(obj, key, {
3860
3940
  value,
@@ -3867,7 +3947,7 @@ function _define_property21(obj, key, value) {
3867
3947
  }
3868
3948
  return obj;
3869
3949
  }
3870
- function _object_spread21(target) {
3950
+ function _object_spread23(target) {
3871
3951
  for (var i = 1; i < arguments.length; i++) {
3872
3952
  var source = arguments[i] != null ? arguments[i] : {};
3873
3953
  var ownKeys32 = Object.keys(source);
@@ -3877,7 +3957,7 @@ function _object_spread21(target) {
3877
3957
  }));
3878
3958
  }
3879
3959
  ownKeys32.forEach(function(key) {
3880
- _define_property21(target, key, source[key]);
3960
+ _define_property23(target, key, source[key]);
3881
3961
  });
3882
3962
  }
3883
3963
  return target;
@@ -3906,7 +3986,7 @@ function _object_spread_props17(target, source) {
3906
3986
  }
3907
3987
  return target;
3908
3988
  }
3909
- var SvgLoading = (props) => /* @__PURE__ */ _jsx38("svg", _object_spread_props17(_object_spread21({
3989
+ var SvgLoading = (props) => /* @__PURE__ */ _jsx39("svg", _object_spread_props17(_object_spread23({
3910
3990
  width: 32,
3911
3991
  height: 32,
3912
3992
  viewBox: "0 0 24 24"
@@ -3917,12 +3997,12 @@ var SvgLoading = (props) => /* @__PURE__ */ _jsx38("svg", _object_spread_props17
3917
3997
  strokeLinecap: "round",
3918
3998
  strokeWidth: 2,
3919
3999
  children: [
3920
- /* @__PURE__ */ _jsx38("path", {
4000
+ /* @__PURE__ */ _jsx39("path", {
3921
4001
  strokeDasharray: 60,
3922
4002
  strokeDashoffset: 60,
3923
4003
  strokeOpacity: 0.3,
3924
4004
  d: "M12 3a9 9 0 1 1 0 18 9 9 0 0 1 0-18Z",
3925
- children: /* @__PURE__ */ _jsx38("animate", {
4005
+ children: /* @__PURE__ */ _jsx39("animate", {
3926
4006
  fill: "freeze",
3927
4007
  attributeName: "stroke-dashoffset",
3928
4008
  dur: "1.3s",
@@ -3934,13 +4014,13 @@ var SvgLoading = (props) => /* @__PURE__ */ _jsx38("svg", _object_spread_props17
3934
4014
  strokeDashoffset: 15,
3935
4015
  d: "M12 3a9 9 0 0 1 9 9",
3936
4016
  children: [
3937
- /* @__PURE__ */ _jsx38("animate", {
4017
+ /* @__PURE__ */ _jsx39("animate", {
3938
4018
  fill: "freeze",
3939
4019
  attributeName: "stroke-dashoffset",
3940
4020
  dur: "0.3s",
3941
4021
  values: "15;0"
3942
4022
  }),
3943
- /* @__PURE__ */ _jsx38("animateTransform", {
4023
+ /* @__PURE__ */ _jsx39("animateTransform", {
3944
4024
  attributeName: "transform",
3945
4025
  dur: "1.5s",
3946
4026
  repeatCount: "indefinite",
@@ -3955,9 +4035,9 @@ var SvgLoading = (props) => /* @__PURE__ */ _jsx38("svg", _object_spread_props17
3955
4035
  var loading_default = SvgLoading;
3956
4036
 
3957
4037
  // src/theme-default/components/Search/assets/close.svg
3958
- import { jsx as _jsx39 } from "react/jsx-runtime";
4038
+ import { jsx as _jsx40 } from "react/jsx-runtime";
3959
4039
  import * as React15 from "react";
3960
- function _define_property22(obj, key, value) {
4040
+ function _define_property24(obj, key, value) {
3961
4041
  if (key in obj) {
3962
4042
  Object.defineProperty(obj, key, {
3963
4043
  value,
@@ -3970,7 +4050,7 @@ function _define_property22(obj, key, value) {
3970
4050
  }
3971
4051
  return obj;
3972
4052
  }
3973
- function _object_spread22(target) {
4053
+ function _object_spread24(target) {
3974
4054
  for (var i = 1; i < arguments.length; i++) {
3975
4055
  var source = arguments[i] != null ? arguments[i] : {};
3976
4056
  var ownKeys32 = Object.keys(source);
@@ -3980,7 +4060,7 @@ function _object_spread22(target) {
3980
4060
  }));
3981
4061
  }
3982
4062
  ownKeys32.forEach(function(key) {
3983
- _define_property22(target, key, source[key]);
4063
+ _define_property24(target, key, source[key]);
3984
4064
  });
3985
4065
  }
3986
4066
  return target;
@@ -4009,13 +4089,13 @@ function _object_spread_props18(target, source) {
4009
4089
  }
4010
4090
  return target;
4011
4091
  }
4012
- var SvgClose = (props) => /* @__PURE__ */ _jsx39("svg", _object_spread_props18(_object_spread22({
4092
+ var SvgClose = (props) => /* @__PURE__ */ _jsx40("svg", _object_spread_props18(_object_spread24({
4013
4093
  xmlns: "http://www.w3.org/2000/svg",
4014
4094
  width: 24,
4015
4095
  height: 24,
4016
4096
  viewBox: "0 0 32 32"
4017
4097
  }, props), {
4018
- children: /* @__PURE__ */ _jsx39("path", {
4098
+ children: /* @__PURE__ */ _jsx40("path", {
4019
4099
  fill: "currentColor",
4020
4100
  d: "M24 9.4 22.6 8 16 14.6 9.4 8 8 9.4l6.6 6.6L8 22.6 9.4 24l6.6-6.6 6.6 6.6 1.4-1.4-6.6-6.6L24 9.4z"
4021
4101
  })
@@ -4191,7 +4271,7 @@ function _class_private_method_init(obj, privateSet) {
4191
4271
  _check_private_redeclaration(obj, privateSet);
4192
4272
  privateSet.add(obj);
4193
4273
  }
4194
- function _define_property23(obj, key, value) {
4274
+ function _define_property25(obj, key, value) {
4195
4275
  if (key in obj) {
4196
4276
  Object.defineProperty(obj, key, {
4197
4277
  value,
@@ -4204,7 +4284,7 @@ function _define_property23(obj, key, value) {
4204
4284
  }
4205
4285
  return obj;
4206
4286
  }
4207
- function _object_spread23(target) {
4287
+ function _object_spread25(target) {
4208
4288
  for (var i = 1; i < arguments.length; i++) {
4209
4289
  var source = arguments[i] != null ? arguments[i] : {};
4210
4290
  var ownKeys32 = Object.keys(source);
@@ -4214,7 +4294,7 @@ function _object_spread23(target) {
4214
4294
  }));
4215
4295
  }
4216
4296
  ownKeys32.forEach(function(key) {
4217
- _define_property23(target, key, source[key]);
4297
+ _define_property25(target, key, source[key]);
4218
4298
  });
4219
4299
  }
4220
4300
  return target;
@@ -4252,7 +4332,7 @@ var LocalProvider = class {
4252
4332
  var _this = this;
4253
4333
  return _async_to_generator2(function* () {
4254
4334
  const { currentLang } = options;
4255
- const pagesForSearch = (yield _class_private_method_get(_this, _getPages, getPages).call(_this, currentLang)).filter((page) => page.lang === currentLang).map((page) => _object_spread_props19(_object_spread23({}, page), {
4335
+ const pagesForSearch = (yield _class_private_method_get(_this, _getPages, getPages).call(_this, currentLang)).filter((page) => page.lang === currentLang).map((page) => _object_spread_props19(_object_spread25({}, page), {
4256
4336
  normalizedContent: normalizeTextCase(page.content),
4257
4337
  headers: page.toc.map((header) => normalizeTextCase(header.text)).join(" "),
4258
4338
  normalizedTitle: normalizeTextCase(page.title)
@@ -4272,7 +4352,7 @@ var LocalProvider = class {
4272
4352
  split: /\W+/
4273
4353
  };
4274
4354
  _class_private_field_set(_this, _index, FlexSearch.create(createOptions));
4275
- _class_private_field_set(_this, _cjkIndex, FlexSearch.create(_object_spread_props19(_object_spread23({}, createOptions), {
4355
+ _class_private_field_set(_this, _cjkIndex, FlexSearch.create(_object_spread_props19(_object_spread25({}, createOptions), {
4276
4356
  tokenize(str) {
4277
4357
  const cjkWords = [];
4278
4358
  let m = null;
@@ -4333,10 +4413,7 @@ function getPages(lang) {
4333
4413
  }
4334
4414
  function _getPages1() {
4335
4415
  _getPages1 = _async_to_generator2(function* (lang) {
4336
- const result = yield fetch(
4337
- // @ts-expect-error __ASSET_PREFIX__ is injected by webpack
4338
- `${__ASSET_PREFIX__}/static/${SEARCH_INDEX_NAME}.${lang}.${searchIndexHash[lang]}.json`
4339
- );
4416
+ const result = yield fetch(`${process.env.__ASSET_PREFIX__}/static/${SEARCH_INDEX_NAME}.${lang}.${searchIndexHash[lang]}.json`);
4340
4417
  return result.json();
4341
4418
  });
4342
4419
  return _getPages1.apply(this, arguments);
@@ -4453,7 +4530,7 @@ var RemoteProvider = class {
4453
4530
  };
4454
4531
 
4455
4532
  // src/theme-default/components/Search/logic/search.ts
4456
- import { normalizeHref as normalizeHref7 } from "@/runtime";
4533
+ import { normalizeHref as normalizeHref8 } from "@/runtime";
4457
4534
  function asyncGeneratorStep4(gen, resolve, reject, _next, _throw, key, arg) {
4458
4535
  try {
4459
4536
  var info = gen[key](arg);
@@ -4626,7 +4703,7 @@ function matchTitle(item, query2, matchedResult) {
4626
4703
  type: "title",
4627
4704
  title,
4628
4705
  header: title,
4629
- link: `${item.domain}${normalizeHref7(item.routePath)}`,
4706
+ link: `${item.domain}${normalizeHref8(item.routePath)}`,
4630
4707
  query: query2,
4631
4708
  highlightInfoList: [
4632
4709
  {
@@ -4659,7 +4736,7 @@ function matchHeader(item, query2, matchedResult) {
4659
4736
  length: getStrByteLength(query2)
4660
4737
  }
4661
4738
  ],
4662
- link: `${domain}${normalizeHref7(item.routePath)}#${header.id}`,
4739
+ link: `${domain}${normalizeHref8(item.routePath)}#${header.id}`,
4663
4740
  query: query2,
4664
4741
  group: _class_private_field_get3(this, _options2).extractGroupName(item.routePath)
4665
4742
  });
@@ -4714,7 +4791,7 @@ function matchContent(item, query2, matchedResult) {
4714
4791
  type: "content",
4715
4792
  title: item.title,
4716
4793
  header: (_currentHeader_text = (_currentHeader = currentHeader) === null || _currentHeader === void 0 ? void 0 : _currentHeader.text) !== null && _currentHeader_text !== void 0 ? _currentHeader_text : item.title,
4717
- link: `${domain}${normalizeHref7(item.routePath)}${currentHeader ? `#${currentHeader.id}` : ""}`,
4794
+ link: `${domain}${normalizeHref8(item.routePath)}${currentHeader ? `#${currentHeader.id}` : ""}`,
4718
4795
  query: query2,
4719
4796
  highlightInfoList,
4720
4797
  group: _class_private_field_get3(this, _options2).extractGroupName(item.routePath),
@@ -4746,7 +4823,7 @@ function matchContent(item, query2, matchedResult) {
4746
4823
  header: (_currentHeader_text1 = (_currentHeader1 = currentHeader) === null || _currentHeader1 === void 0 ? void 0 : _currentHeader1.text) !== null && _currentHeader_text1 !== void 0 ? _currentHeader_text1 : item.title,
4747
4824
  statement,
4748
4825
  highlightInfoList,
4749
- link: `${domain}${normalizeHref7(item.routePath)}${currentHeader ? `#${currentHeader.id}` : ""}`,
4826
+ link: `${domain}${normalizeHref8(item.routePath)}${currentHeader ? `#${currentHeader.id}` : ""}`,
4750
4827
  query: query2,
4751
4828
  group: _class_private_field_get3(this, _options2).extractGroupName(item.routePath)
4752
4829
  });
@@ -4771,12 +4848,12 @@ function isCurrentIndex(index) {
4771
4848
  }
4772
4849
 
4773
4850
  // src/theme-default/components/Search/SuggestItem.tsx
4774
- import { jsx as _jsx44, jsxs as _jsxs27, Fragment as _Fragment3 } from "react/jsx-runtime";
4851
+ import { jsx as _jsx45, jsxs as _jsxs27, Fragment as _Fragment4 } from "react/jsx-runtime";
4775
4852
 
4776
4853
  // src/theme-default/components/Search/assets/file.svg
4777
- import { jsx as _jsx40, jsxs as _jsxs26 } from "react/jsx-runtime";
4854
+ import { jsx as _jsx41, jsxs as _jsxs26 } from "react/jsx-runtime";
4778
4855
  import * as React16 from "react";
4779
- function _define_property24(obj, key, value) {
4856
+ function _define_property26(obj, key, value) {
4780
4857
  if (key in obj) {
4781
4858
  Object.defineProperty(obj, key, {
4782
4859
  value,
@@ -4789,7 +4866,7 @@ function _define_property24(obj, key, value) {
4789
4866
  }
4790
4867
  return obj;
4791
4868
  }
4792
- function _object_spread24(target) {
4869
+ function _object_spread26(target) {
4793
4870
  for (var i = 1; i < arguments.length; i++) {
4794
4871
  var source = arguments[i] != null ? arguments[i] : {};
4795
4872
  var ownKeys32 = Object.keys(source);
@@ -4799,7 +4876,7 @@ function _object_spread24(target) {
4799
4876
  }));
4800
4877
  }
4801
4878
  ownKeys32.forEach(function(key) {
4802
- _define_property24(target, key, source[key]);
4879
+ _define_property26(target, key, source[key]);
4803
4880
  });
4804
4881
  }
4805
4882
  return target;
@@ -4828,28 +4905,28 @@ function _object_spread_props20(target, source) {
4828
4905
  }
4829
4906
  return target;
4830
4907
  }
4831
- var SvgFile = (props) => /* @__PURE__ */ _jsxs26("svg", _object_spread_props20(_object_spread24({
4908
+ var SvgFile = (props) => /* @__PURE__ */ _jsxs26("svg", _object_spread_props20(_object_spread26({
4832
4909
  xmlns: "http://www.w3.org/2000/svg",
4833
4910
  width: 24,
4834
4911
  height: 24,
4835
4912
  viewBox: "0 0 32 32"
4836
4913
  }, props), {
4837
4914
  children: [
4838
- /* @__PURE__ */ _jsx40("circle", {
4915
+ /* @__PURE__ */ _jsx41("circle", {
4839
4916
  cx: 22,
4840
4917
  cy: 24,
4841
4918
  r: 2,
4842
4919
  fill: "currentColor"
4843
4920
  }),
4844
- /* @__PURE__ */ _jsx40("path", {
4921
+ /* @__PURE__ */ _jsx41("path", {
4845
4922
  fill: "none",
4846
4923
  d: "M22 28a4 4 0 1 1 4-4 4.004 4.004 0 0 1-4 4Zm0-6a2 2 0 1 0 2 2 2.003 2.003 0 0 0-2-2Z"
4847
4924
  }),
4848
- /* @__PURE__ */ _jsx40("path", {
4925
+ /* @__PURE__ */ _jsx41("path", {
4849
4926
  fill: "currentColor",
4850
4927
  d: "M29.777 23.479A8.64 8.64 0 0 0 22 18a8.64 8.64 0 0 0-7.777 5.479L14 24l.223.521A8.64 8.64 0 0 0 22 30a8.64 8.64 0 0 0 7.777-5.479L30 24ZM22 28a4 4 0 1 1 4-4 4.005 4.005 0 0 1-4 4Z"
4851
4928
  }),
4852
- /* @__PURE__ */ _jsx40("path", {
4929
+ /* @__PURE__ */ _jsx41("path", {
4853
4930
  fill: "currentColor",
4854
4931
  d: "M12 28H8V4h8v6a2.006 2.006 0 0 0 2 2h6v4h2v-6a.91.91 0 0 0-.3-.7l-7-7A.909.909 0 0 0 18 2H8a2.006 2.006 0 0 0-2 2v24a2.006 2.006 0 0 0 2 2h4Zm6-23.6 5.6 5.6H18Z"
4855
4932
  })
@@ -4858,9 +4935,9 @@ var SvgFile = (props) => /* @__PURE__ */ _jsxs26("svg", _object_spread_props20(_
4858
4935
  var file_default = SvgFile;
4859
4936
 
4860
4937
  // src/theme-default/components/Search/assets/jump.svg
4861
- import { jsx as _jsx41 } from "react/jsx-runtime";
4938
+ import { jsx as _jsx42 } from "react/jsx-runtime";
4862
4939
  import * as React17 from "react";
4863
- function _define_property25(obj, key, value) {
4940
+ function _define_property27(obj, key, value) {
4864
4941
  if (key in obj) {
4865
4942
  Object.defineProperty(obj, key, {
4866
4943
  value,
@@ -4873,7 +4950,7 @@ function _define_property25(obj, key, value) {
4873
4950
  }
4874
4951
  return obj;
4875
4952
  }
4876
- function _object_spread25(target) {
4953
+ function _object_spread27(target) {
4877
4954
  for (var i = 1; i < arguments.length; i++) {
4878
4955
  var source = arguments[i] != null ? arguments[i] : {};
4879
4956
  var ownKeys32 = Object.keys(source);
@@ -4883,7 +4960,7 @@ function _object_spread25(target) {
4883
4960
  }));
4884
4961
  }
4885
4962
  ownKeys32.forEach(function(key) {
4886
- _define_property25(target, key, source[key]);
4963
+ _define_property27(target, key, source[key]);
4887
4964
  });
4888
4965
  }
4889
4966
  return target;
@@ -4912,13 +4989,13 @@ function _object_spread_props21(target, source) {
4912
4989
  }
4913
4990
  return target;
4914
4991
  }
4915
- var SvgJump = (props) => /* @__PURE__ */ _jsx41("svg", _object_spread_props21(_object_spread25({
4992
+ var SvgJump = (props) => /* @__PURE__ */ _jsx42("svg", _object_spread_props21(_object_spread27({
4916
4993
  xmlns: "http://www.w3.org/2000/svg",
4917
4994
  width: 24,
4918
4995
  height: 24,
4919
4996
  viewBox: "0 0 32 32"
4920
4997
  }, props), {
4921
- children: /* @__PURE__ */ _jsx41("path", {
4998
+ children: /* @__PURE__ */ _jsx42("path", {
4922
4999
  fill: "currentColor",
4923
5000
  d: "M13.414 17.586 18 22.172V8H8V6h10a2.002 2.002 0 0 1 2 2v14.172l4.586-4.586L26 19l-7 7-7-7Z"
4924
5001
  })
@@ -4926,9 +5003,9 @@ var SvgJump = (props) => /* @__PURE__ */ _jsx41("svg", _object_spread_props21(_o
4926
5003
  var jump_default = SvgJump;
4927
5004
 
4928
5005
  // src/theme-default/components/Search/assets/header.svg
4929
- import { jsx as _jsx42 } from "react/jsx-runtime";
5006
+ import { jsx as _jsx43 } from "react/jsx-runtime";
4930
5007
  import * as React18 from "react";
4931
- function _define_property26(obj, key, value) {
5008
+ function _define_property28(obj, key, value) {
4932
5009
  if (key in obj) {
4933
5010
  Object.defineProperty(obj, key, {
4934
5011
  value,
@@ -4941,7 +5018,7 @@ function _define_property26(obj, key, value) {
4941
5018
  }
4942
5019
  return obj;
4943
5020
  }
4944
- function _object_spread26(target) {
5021
+ function _object_spread28(target) {
4945
5022
  for (var i = 1; i < arguments.length; i++) {
4946
5023
  var source = arguments[i] != null ? arguments[i] : {};
4947
5024
  var ownKeys32 = Object.keys(source);
@@ -4951,7 +5028,7 @@ function _object_spread26(target) {
4951
5028
  }));
4952
5029
  }
4953
5030
  ownKeys32.forEach(function(key) {
4954
- _define_property26(target, key, source[key]);
5031
+ _define_property28(target, key, source[key]);
4955
5032
  });
4956
5033
  }
4957
5034
  return target;
@@ -4980,13 +5057,13 @@ function _object_spread_props22(target, source) {
4980
5057
  }
4981
5058
  return target;
4982
5059
  }
4983
- var SvgHeader = (props) => /* @__PURE__ */ _jsx42("svg", _object_spread_props22(_object_spread26({
5060
+ var SvgHeader = (props) => /* @__PURE__ */ _jsx43("svg", _object_spread_props22(_object_spread28({
4984
5061
  xmlns: "http://www.w3.org/2000/svg",
4985
5062
  width: 24,
4986
5063
  height: 24,
4987
5064
  viewBox: "0 0 32 32"
4988
5065
  }, props), {
4989
- children: /* @__PURE__ */ _jsx42("path", {
5066
+ children: /* @__PURE__ */ _jsx43("path", {
4990
5067
  fill: "currentColor",
4991
5068
  d: "M28 12v-2h-6V4h-2v6h-8V4h-2v6H4v2h6v8H4v2h6v6h2v-6h8v6h2v-6h6v-2h-6v-8Zm-8 8h-8v-8h8Z"
4992
5069
  })
@@ -4994,9 +5071,9 @@ var SvgHeader = (props) => /* @__PURE__ */ _jsx42("svg", _object_spread_props22(
4994
5071
  var header_default = SvgHeader;
4995
5072
 
4996
5073
  // src/theme-default/components/Search/assets/title.svg
4997
- import { jsx as _jsx43 } from "react/jsx-runtime";
5074
+ import { jsx as _jsx44 } from "react/jsx-runtime";
4998
5075
  import * as React19 from "react";
4999
- function _define_property27(obj, key, value) {
5076
+ function _define_property29(obj, key, value) {
5000
5077
  if (key in obj) {
5001
5078
  Object.defineProperty(obj, key, {
5002
5079
  value,
@@ -5009,7 +5086,7 @@ function _define_property27(obj, key, value) {
5009
5086
  }
5010
5087
  return obj;
5011
5088
  }
5012
- function _object_spread27(target) {
5089
+ function _object_spread29(target) {
5013
5090
  for (var i = 1; i < arguments.length; i++) {
5014
5091
  var source = arguments[i] != null ? arguments[i] : {};
5015
5092
  var ownKeys32 = Object.keys(source);
@@ -5019,7 +5096,7 @@ function _object_spread27(target) {
5019
5096
  }));
5020
5097
  }
5021
5098
  ownKeys32.forEach(function(key) {
5022
- _define_property27(target, key, source[key]);
5099
+ _define_property29(target, key, source[key]);
5023
5100
  });
5024
5101
  }
5025
5102
  return target;
@@ -5048,12 +5125,12 @@ function _object_spread_props23(target, source) {
5048
5125
  }
5049
5126
  return target;
5050
5127
  }
5051
- var SvgTitle = (props) => /* @__PURE__ */ _jsx43("svg", _object_spread_props23(_object_spread27({
5128
+ var SvgTitle = (props) => /* @__PURE__ */ _jsx44("svg", _object_spread_props23(_object_spread29({
5052
5129
  xmlns: "http://www.w3.org/2000/svg",
5053
5130
  width: 24,
5054
5131
  height: 24
5055
5132
  }, props), {
5056
- children: /* @__PURE__ */ _jsx43("path", {
5133
+ children: /* @__PURE__ */ _jsx44("path", {
5057
5134
  fill: "currentColor",
5058
5135
  d: "M4 4a2 2 0 0 1 2-2h8a1 1 0 0 1 .707.293l5 5A1 1 0 0 1 20 8v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4zm13.586 4L14 4.414V8h3.586zM12 4H6v16h12V10h-5a1 1 0 0 1-1-1V4z"
5059
5136
  })
@@ -5078,7 +5155,7 @@ function SuggestItem({ suggestion, closeSearch, isCurrent, setCurrentSuggestionI
5078
5155
  const prefix = rawText.slice(lastIndex, start);
5079
5156
  const queryStr = getSlicedStrByByteLength(rawText, start, length);
5080
5157
  framegmentList.push(prefix);
5081
- framegmentList.push(/* @__PURE__ */ _jsx44("span", {
5158
+ framegmentList.push(/* @__PURE__ */ _jsx45("span", {
5082
5159
  className: index_module_default17.mark,
5083
5160
  children: queryStr
5084
5161
  }, start));
@@ -5092,12 +5169,12 @@ function SuggestItem({ suggestion, closeSearch, isCurrent, setCurrentSuggestionI
5092
5169
  const renderHeaderMatch = () => {
5093
5170
  if (suggestion.type === "header" || suggestion.type === "title") {
5094
5171
  const { header, highlightInfoList } = suggestion;
5095
- return /* @__PURE__ */ _jsx44("div", {
5172
+ return /* @__PURE__ */ _jsx45("div", {
5096
5173
  className: "font-medium",
5097
5174
  children: getHighlightedFragments(header, highlightInfoList)
5098
5175
  });
5099
5176
  } else {
5100
- return /* @__PURE__ */ _jsx44("div", {
5177
+ return /* @__PURE__ */ _jsx45("div", {
5101
5178
  className: "font-medium",
5102
5179
  children: suggestion.header
5103
5180
  });
@@ -5105,10 +5182,10 @@ function SuggestItem({ suggestion, closeSearch, isCurrent, setCurrentSuggestionI
5105
5182
  };
5106
5183
  const renderStatementMatch = () => {
5107
5184
  if (suggestion.type !== "content") {
5108
- return /* @__PURE__ */ _jsx44("div", {});
5185
+ return /* @__PURE__ */ _jsx45("div", {});
5109
5186
  }
5110
5187
  const { statement, highlightInfoList } = suggestion;
5111
- return /* @__PURE__ */ _jsx44("div", {
5188
+ return /* @__PURE__ */ _jsx45("div", {
5112
5189
  className: "text-sm text-gray-light w-full",
5113
5190
  children: getHighlightedFragments(statement, highlightInfoList)
5114
5191
  });
@@ -5120,10 +5197,10 @@ function SuggestItem({ suggestion, closeSearch, isCurrent, setCurrentSuggestionI
5120
5197
  hitContent = renderHeaderMatch();
5121
5198
  break;
5122
5199
  case "content":
5123
- hitContent = /* @__PURE__ */ _jsxs27(_Fragment3, {
5200
+ hitContent = /* @__PURE__ */ _jsxs27(_Fragment4, {
5124
5201
  children: [
5125
5202
  renderStatementMatch(),
5126
- /* @__PURE__ */ _jsx44("p", {
5203
+ /* @__PURE__ */ _jsx45("p", {
5127
5204
  className: index_module_default17.titleForContent,
5128
5205
  children: suggestion.title
5129
5206
  })
@@ -5133,10 +5210,10 @@ function SuggestItem({ suggestion, closeSearch, isCurrent, setCurrentSuggestionI
5133
5210
  default:
5134
5211
  break;
5135
5212
  }
5136
- return /* @__PURE__ */ _jsx44("li", {
5213
+ return /* @__PURE__ */ _jsx45("li", {
5137
5214
  className: `${index_module_default17.suggestItem} ${isCurrent ? index_module_default17.current : ""}`,
5138
5215
  onMouseEnter: setCurrentSuggestionIndex,
5139
- children: /* @__PURE__ */ _jsx44("a", {
5216
+ children: /* @__PURE__ */ _jsx45("a", {
5140
5217
  href: link,
5141
5218
  onClick: (e) => {
5142
5219
  closeSearch();
@@ -5146,19 +5223,19 @@ function SuggestItem({ suggestion, closeSearch, isCurrent, setCurrentSuggestionI
5146
5223
  children: /* @__PURE__ */ _jsxs27("div", {
5147
5224
  className: index_module_default17.suggestItemContainer,
5148
5225
  children: [
5149
- /* @__PURE__ */ _jsx44("div", {
5226
+ /* @__PURE__ */ _jsx45("div", {
5150
5227
  className: index_module_default17.hitIcon,
5151
- children: /* @__PURE__ */ _jsx44(HitIcon, {})
5228
+ children: /* @__PURE__ */ _jsx45(HitIcon, {})
5152
5229
  }),
5153
- /* @__PURE__ */ _jsx44("div", {
5230
+ /* @__PURE__ */ _jsx45("div", {
5154
5231
  className: index_module_default17.contentWrapper,
5155
- children: /* @__PURE__ */ _jsx44("span", {
5232
+ children: /* @__PURE__ */ _jsx45("span", {
5156
5233
  children: hitContent
5157
5234
  })
5158
5235
  }),
5159
- /* @__PURE__ */ _jsx44("div", {
5236
+ /* @__PURE__ */ _jsx45("div", {
5160
5237
  className: index_module_default17.actionIcon,
5161
- children: /* @__PURE__ */ _jsx44(jump_default, {})
5238
+ children: /* @__PURE__ */ _jsx45(jump_default, {})
5162
5239
  })
5163
5240
  ]
5164
5241
  })
@@ -5167,12 +5244,12 @@ function SuggestItem({ suggestion, closeSearch, isCurrent, setCurrentSuggestionI
5167
5244
  }
5168
5245
 
5169
5246
  // src/theme-default/components/Search/NoSearchResult.tsx
5170
- import { jsx as _jsx46, jsxs as _jsxs29 } from "react/jsx-runtime";
5247
+ import { jsx as _jsx47, jsxs as _jsxs29 } from "react/jsx-runtime";
5171
5248
 
5172
5249
  // src/theme-default/components/Search/empty.svg
5173
- import { jsx as _jsx45, jsxs as _jsxs28 } from "react/jsx-runtime";
5250
+ import { jsx as _jsx46, jsxs as _jsxs28 } from "react/jsx-runtime";
5174
5251
  import * as React20 from "react";
5175
- function _define_property28(obj, key, value) {
5252
+ function _define_property30(obj, key, value) {
5176
5253
  if (key in obj) {
5177
5254
  Object.defineProperty(obj, key, {
5178
5255
  value,
@@ -5185,7 +5262,7 @@ function _define_property28(obj, key, value) {
5185
5262
  }
5186
5263
  return obj;
5187
5264
  }
5188
- function _object_spread28(target) {
5265
+ function _object_spread30(target) {
5189
5266
  for (var i = 1; i < arguments.length; i++) {
5190
5267
  var source = arguments[i] != null ? arguments[i] : {};
5191
5268
  var ownKeys32 = Object.keys(source);
@@ -5195,7 +5272,7 @@ function _object_spread28(target) {
5195
5272
  }));
5196
5273
  }
5197
5274
  ownKeys32.forEach(function(key) {
5198
- _define_property28(target, key, source[key]);
5275
+ _define_property30(target, key, source[key]);
5199
5276
  });
5200
5277
  }
5201
5278
  return target;
@@ -5224,19 +5301,19 @@ function _object_spread_props24(target, source) {
5224
5301
  }
5225
5302
  return target;
5226
5303
  }
5227
- var SvgEmpty = (props) => /* @__PURE__ */ _jsxs28("svg", _object_spread_props24(_object_spread28({
5304
+ var SvgEmpty = (props) => /* @__PURE__ */ _jsxs28("svg", _object_spread_props24(_object_spread30({
5228
5305
  xmlns: "http://www.w3.org/2000/svg",
5229
5306
  width: 48,
5230
5307
  height: 48,
5231
5308
  fill: "none"
5232
5309
  }, props), {
5233
5310
  children: [
5234
- /* @__PURE__ */ _jsx45("path", {
5311
+ /* @__PURE__ */ _jsx46("path", {
5235
5312
  stroke: "currentColor",
5236
5313
  strokeWidth: 4,
5237
5314
  d: "M24 5v6m7 1 4-4m-18 4-4-4m27 33H8a2 2 0 0 1-2-2v-8.46a2 2 0 0 1 .272-1.007l6.15-10.54A2 2 0 0 1 14.148 18H33.85a2 2 0 0 1 1.728.992l6.149 10.541A2 2 0 0 1 42 30.541V39a2 2 0 0 1-2 2Z"
5238
5315
  }),
5239
- /* @__PURE__ */ _jsx45("path", {
5316
+ /* @__PURE__ */ _jsx46("path", {
5240
5317
  stroke: "currentColor",
5241
5318
  strokeWidth: 4,
5242
5319
  d: "M41.5 30H28s-1 3-4 3-4-3-4-3H6.5"
@@ -5250,7 +5327,7 @@ function NoSearchResult({ query: query2 }) {
5250
5327
  return /* @__PURE__ */ _jsxs29("div", {
5251
5328
  className: "flex flex-col items-center pt-8 pb-2",
5252
5329
  children: [
5253
- /* @__PURE__ */ _jsx46(empty_default, {
5330
+ /* @__PURE__ */ _jsx47(empty_default, {
5254
5331
  className: "mb-4 opacity-80"
5255
5332
  }),
5256
5333
  /* @__PURE__ */ _jsxs29("p", {
@@ -5267,7 +5344,7 @@ function NoSearchResult({ query: query2 }) {
5267
5344
  "."
5268
5345
  ]
5269
5346
  }),
5270
- /* @__PURE__ */ _jsx46("p", {
5347
+ /* @__PURE__ */ _jsx47("p", {
5271
5348
  children: "Please try again with a different keyword."
5272
5349
  })
5273
5350
  ]
@@ -5305,7 +5382,7 @@ function _async_to_generator5(fn) {
5305
5382
  });
5306
5383
  };
5307
5384
  }
5308
- function _define_property29(obj, key, value) {
5385
+ function _define_property31(obj, key, value) {
5309
5386
  if (key in obj) {
5310
5387
  Object.defineProperty(obj, key, {
5311
5388
  value,
@@ -5318,7 +5395,7 @@ function _define_property29(obj, key, value) {
5318
5395
  }
5319
5396
  return obj;
5320
5397
  }
5321
- function _object_spread29(target) {
5398
+ function _object_spread31(target) {
5322
5399
  for (var i = 1; i < arguments.length; i++) {
5323
5400
  var source = arguments[i] != null ? arguments[i] : {};
5324
5401
  var ownKeys32 = Object.keys(source);
@@ -5328,7 +5405,7 @@ function _object_spread29(target) {
5328
5405
  }));
5329
5406
  }
5330
5407
  ownKeys32.forEach(function(key) {
5331
- _define_property29(target, key, source[key]);
5408
+ _define_property31(target, key, source[key]);
5332
5409
  });
5333
5410
  }
5334
5411
  return target;
@@ -5375,10 +5452,10 @@ function Search2() {
5375
5452
  others: []
5376
5453
  });
5377
5454
  const [focused, setFocused] = useState11(false);
5378
- const searchInputRef = useRef4(null);
5455
+ const searchInputRef = useRef5(null);
5379
5456
  const [initing, setIniting] = useState11(true);
5380
5457
  const [currentSuggestionIndex, setCurrentSuggestionIndex] = useState11(0);
5381
- const pageSearcherRef = useRef4(null);
5458
+ const pageSearcherRef = useRef5(null);
5382
5459
  const { siteData: siteData2, page: { lang } } = usePageData11();
5383
5460
  const { sidebar } = useLocaleSiteData();
5384
5461
  const { search } = siteData2;
@@ -5396,7 +5473,7 @@ function Search2() {
5396
5473
  if (search === false) {
5397
5474
  return;
5398
5475
  }
5399
- const pageSearcher = new PageSearcher(_object_spread_props25(_object_spread29({}, search), {
5476
+ const pageSearcher = new PageSearcher(_object_spread_props25(_object_spread31({}, search), {
5400
5477
  currentLang: lang,
5401
5478
  extractGroupName
5402
5479
  }));
@@ -5415,7 +5492,7 @@ function Search2() {
5415
5492
  });
5416
5493
  return _initPageSearcher.apply(this, arguments);
5417
5494
  }
5418
- useEffect10(() => {
5495
+ useEffect12(() => {
5419
5496
  const onKeyDown = (e) => {
5420
5497
  switch (e.code) {
5421
5498
  case KEY_CODE.SEARCH:
@@ -5465,7 +5542,7 @@ function Search2() {
5465
5542
  suggestions,
5466
5543
  currentSuggestionIndex
5467
5544
  ]);
5468
- useEffect10(() => {
5545
+ useEffect12(() => {
5469
5546
  if (focused) {
5470
5547
  setSearchResult({
5471
5548
  current: [],
@@ -5478,7 +5555,7 @@ function Search2() {
5478
5555
  }, [
5479
5556
  focused
5480
5557
  ]);
5481
- useEffect10(() => {
5558
+ useEffect12(() => {
5482
5559
  !initing && initPageSearcher();
5483
5560
  }, [
5484
5561
  lang
@@ -5505,7 +5582,7 @@ function Search2() {
5505
5582
  let accumulateIndex = -1;
5506
5583
  const renderSearchResult = (result, searchOptions) => {
5507
5584
  if (!suggestions.length && !initing) {
5508
- return /* @__PURE__ */ _jsx47(NoSearchResult, {
5585
+ return /* @__PURE__ */ _jsx48(NoSearchResult, {
5509
5586
  query: query2
5510
5587
  });
5511
5588
  }
@@ -5520,18 +5597,18 @@ function Search2() {
5520
5597
  return /* @__PURE__ */ _jsxs30("div", {
5521
5598
  children: [
5522
5599
  renderSearchResultItem(result.current),
5523
- hasOtherResult && /* @__PURE__ */ _jsx47("h2", {
5600
+ hasOtherResult && /* @__PURE__ */ _jsx48("h2", {
5524
5601
  className: index_module_default17.groupTitle,
5525
5602
  children: RECOMMEND_WORD[lang]
5526
5603
  }),
5527
- /* @__PURE__ */ _jsx47("div", {
5604
+ /* @__PURE__ */ _jsx48("div", {
5528
5605
  style: {
5529
5606
  marginTop: "-12px"
5530
5607
  },
5531
- children: /* @__PURE__ */ _jsx47(Tabs, {
5608
+ children: /* @__PURE__ */ _jsx48(Tabs, {
5532
5609
  values: tabValues,
5533
5610
  tabContainerClassName: index_module_default17.tabClassName,
5534
- children: result.others.map((item) => /* @__PURE__ */ _jsx47(Tab, {
5611
+ children: result.others.map((item) => /* @__PURE__ */ _jsx48(Tab, {
5535
5612
  children: renderSearchResultItem(item.items, false)
5536
5613
  }, item.index))
5537
5614
  })
@@ -5541,9 +5618,9 @@ function Search2() {
5541
5618
  };
5542
5619
  const renderSearchResultItem = (suggestionList, isCurrent = true) => {
5543
5620
  if (suggestionList.length === 0 && !initing) {
5544
- return /* @__PURE__ */ _jsx47("div", {
5621
+ return /* @__PURE__ */ _jsx48("div", {
5545
5622
  className: "mt-4 flex-center",
5546
- children: /* @__PURE__ */ _jsx47("div", {
5623
+ children: /* @__PURE__ */ _jsx48("div", {
5547
5624
  className: "p-2 font-bold text-md",
5548
5625
  style: {
5549
5626
  color: "#2c3e50"
@@ -5553,22 +5630,22 @@ function Search2() {
5553
5630
  });
5554
5631
  }
5555
5632
  const normalizedSuggestions = normalizeSuggestions(suggestionList);
5556
- return /* @__PURE__ */ _jsx47("ul", {
5633
+ return /* @__PURE__ */ _jsx48("ul", {
5557
5634
  className: index_module_default17.suggestList,
5558
5635
  children: Object.keys(normalizedSuggestions).map((group) => {
5559
5636
  const groupSuggestions = normalizedSuggestions[group] || [];
5560
5637
  return /* @__PURE__ */ _jsxs30("li", {
5561
5638
  children: [
5562
- isCurrent && /* @__PURE__ */ _jsx47("h2", {
5639
+ isCurrent && /* @__PURE__ */ _jsx48("h2", {
5563
5640
  className: index_module_default17.groupTitle,
5564
5641
  children: group
5565
5642
  }),
5566
- /* @__PURE__ */ _jsx47("ul", {
5643
+ /* @__PURE__ */ _jsx48("ul", {
5567
5644
  className: "pb-2",
5568
5645
  children: groupSuggestions.map((suggestion) => {
5569
5646
  accumulateIndex++;
5570
5647
  const suggestionIndex = accumulateIndex;
5571
- return /* @__PURE__ */ _jsx47(SuggestItem, {
5648
+ return /* @__PURE__ */ _jsx48(SuggestItem, {
5572
5649
  suggestion,
5573
5650
  isCurrent: suggestionIndex === currentSuggestionIndex,
5574
5651
  setCurrentSuggestionIndex: () => {
@@ -5584,27 +5661,27 @@ function Search2() {
5584
5661
  })
5585
5662
  });
5586
5663
  };
5587
- return /* @__PURE__ */ _jsxs30(_Fragment4, {
5664
+ return /* @__PURE__ */ _jsxs30(_Fragment5, {
5588
5665
  children: [
5589
- /* @__PURE__ */ _jsx47("div", {
5666
+ /* @__PURE__ */ _jsx48("div", {
5590
5667
  className: index_module_default17.navSearchButton,
5591
5668
  onClick: () => setFocused(true),
5592
5669
  children: /* @__PURE__ */ _jsxs30("button", {
5593
5670
  children: [
5594
- /* @__PURE__ */ _jsx47(search_default, {
5671
+ /* @__PURE__ */ _jsx48(search_default, {
5595
5672
  width: "18",
5596
5673
  hight: "18"
5597
5674
  }),
5598
- /* @__PURE__ */ _jsx47("p", {
5675
+ /* @__PURE__ */ _jsx48("p", {
5599
5676
  className: index_module_default17.searchWord,
5600
5677
  children: "Search Docs"
5601
5678
  }),
5602
5679
  /* @__PURE__ */ _jsxs30("div", {
5603
5680
  children: [
5604
- /* @__PURE__ */ _jsx47("span", {
5681
+ /* @__PURE__ */ _jsx48("span", {
5605
5682
  children: "⌘"
5606
5683
  }),
5607
- /* @__PURE__ */ _jsx47("span", {
5684
+ /* @__PURE__ */ _jsx48("span", {
5608
5685
  children: "K"
5609
5686
  })
5610
5687
  ]
@@ -5612,12 +5689,12 @@ function Search2() {
5612
5689
  ]
5613
5690
  })
5614
5691
  }),
5615
- /* @__PURE__ */ _jsx47("div", {
5692
+ /* @__PURE__ */ _jsx48("div", {
5616
5693
  className: index_module_default17.mobileNavSearchButton,
5617
5694
  onClick: () => setFocused(true),
5618
- children: /* @__PURE__ */ _jsx47(search_default, {})
5695
+ children: /* @__PURE__ */ _jsx48(search_default, {})
5619
5696
  }),
5620
- focused && /* @__PURE__ */ createPortal(/* @__PURE__ */ _jsx47("div", {
5697
+ focused && /* @__PURE__ */ createPortal(/* @__PURE__ */ _jsx48("div", {
5621
5698
  className: index_module_default17.mask,
5622
5699
  onClick: () => setFocused(false),
5623
5700
  children: /* @__PURE__ */ _jsxs30("div", {
@@ -5633,10 +5710,10 @@ function Search2() {
5633
5710
  /* @__PURE__ */ _jsxs30("div", {
5634
5711
  className: index_module_default17.inputForm,
5635
5712
  children: [
5636
- /* @__PURE__ */ _jsx47("label", {
5637
- children: /* @__PURE__ */ _jsx47(search_default, {})
5713
+ /* @__PURE__ */ _jsx48("label", {
5714
+ children: /* @__PURE__ */ _jsx48(search_default, {})
5638
5715
  }),
5639
- /* @__PURE__ */ _jsx47("input", {
5716
+ /* @__PURE__ */ _jsx48("input", {
5640
5717
  className: index_module_default17.input,
5641
5718
  ref: searchInputRef,
5642
5719
  placeholder: "Search Docs",
@@ -5645,8 +5722,8 @@ function Search2() {
5645
5722
  autoFocus: true,
5646
5723
  onChange: debounce(onQueryChanged, 150)
5647
5724
  }),
5648
- /* @__PURE__ */ _jsx47("label", {
5649
- children: /* @__PURE__ */ _jsx47(close_default, {
5725
+ /* @__PURE__ */ _jsx48("label", {
5726
+ children: /* @__PURE__ */ _jsx48(close_default, {
5650
5727
  className: index_module_default17.close,
5651
5728
  onClick: (e) => {
5652
5729
  if (searchInputRef.current) {
@@ -5663,7 +5740,7 @@ function Search2() {
5663
5740
  })
5664
5741
  ]
5665
5742
  }),
5666
- /* @__PURE__ */ _jsx47("h2", {
5743
+ /* @__PURE__ */ _jsx48("h2", {
5667
5744
  className: "text-brand ml-2 sm:hidden cursor-pointer",
5668
5745
  onClick: (e) => {
5669
5746
  e.stopPropagation();
@@ -5673,15 +5750,15 @@ function Search2() {
5673
5750
  })
5674
5751
  ]
5675
5752
  }),
5676
- query2 ? /* @__PURE__ */ _jsx47("div", {
5753
+ query2 ? /* @__PURE__ */ _jsx48("div", {
5677
5754
  className: `${index_module_default17.searchHits} rspress-scrollbar`,
5678
5755
  children: renderSearchResult(searchResult, search)
5679
5756
  }) : null,
5680
- initing && /* @__PURE__ */ _jsx47("div", {
5757
+ initing && /* @__PURE__ */ _jsx48("div", {
5681
5758
  className: "flex-center",
5682
- children: /* @__PURE__ */ _jsx47("div", {
5759
+ children: /* @__PURE__ */ _jsx48("div", {
5683
5760
  className: "p-2 text-sm",
5684
- children: /* @__PURE__ */ _jsx47(loading_default, {})
5761
+ children: /* @__PURE__ */ _jsx48(loading_default, {})
5685
5762
  })
5686
5763
  })
5687
5764
  ]
@@ -5692,16 +5769,16 @@ function Search2() {
5692
5769
  }
5693
5770
 
5694
5771
  // src/theme-default/components/HomeFooter/index.tsx
5695
- import { jsx as _jsx48 } from "react/jsx-runtime";
5772
+ import { jsx as _jsx49 } from "react/jsx-runtime";
5696
5773
  import { usePageData as usePageData12 } from "@/runtime";
5697
5774
  function HomeFooter2() {
5698
5775
  const { siteData: siteData2 } = usePageData12();
5699
5776
  const { message } = siteData2.themeConfig.footer || {};
5700
- return /* @__PURE__ */ _jsx48("footer", {
5777
+ return /* @__PURE__ */ _jsx49("footer", {
5701
5778
  className: "absolute bottom-0 mt-12 py-8 px-6 sm:p-8 w-full border-t border-solid border-divider-light",
5702
- children: /* @__PURE__ */ _jsx48("div", {
5779
+ children: /* @__PURE__ */ _jsx49("div", {
5703
5780
  className: "m-auto w-full text-center",
5704
- children: message && /* @__PURE__ */ _jsx48("div", {
5781
+ children: message && /* @__PURE__ */ _jsx49("div", {
5705
5782
  className: "font-meduim text-sm text-text-2",
5706
5783
  children: message
5707
5784
  })
@@ -5710,13 +5787,13 @@ function HomeFooter2() {
5710
5787
  }
5711
5788
 
5712
5789
  // src/theme-default/layout/DocLayout/docComponents/title.tsx
5713
- import { jsx as _jsx49 } from "react/jsx-runtime";
5790
+ import { jsx as _jsx50 } from "react/jsx-runtime";
5714
5791
 
5715
5792
  // src/theme-default/layout/DocLayout/docComponents/index.module.scss
5716
5793
  var index_module_default18 = { "title": "title_f1ea0", "blockquote": "blockquote_f1ea0", "link": "link_f1ea0" };
5717
5794
 
5718
5795
  // src/theme-default/layout/DocLayout/docComponents/title.tsx
5719
- function _define_property30(obj, key, value) {
5796
+ function _define_property32(obj, key, value) {
5720
5797
  if (key in obj) {
5721
5798
  Object.defineProperty(obj, key, {
5722
5799
  value,
@@ -5729,7 +5806,7 @@ function _define_property30(obj, key, value) {
5729
5806
  }
5730
5807
  return obj;
5731
5808
  }
5732
- function _object_spread30(target) {
5809
+ function _object_spread32(target) {
5733
5810
  for (var i = 1; i < arguments.length; i++) {
5734
5811
  var source = arguments[i] != null ? arguments[i] : {};
5735
5812
  var ownKeys32 = Object.keys(source);
@@ -5739,7 +5816,7 @@ function _object_spread30(target) {
5739
5816
  }));
5740
5817
  }
5741
5818
  ownKeys32.forEach(function(key) {
5742
- _define_property30(target, key, source[key]);
5819
+ _define_property32(target, key, source[key]);
5743
5820
  });
5744
5821
  }
5745
5822
  return target;
@@ -5769,39 +5846,39 @@ function _object_spread_props26(target, source) {
5769
5846
  return target;
5770
5847
  }
5771
5848
  var H1 = (props) => {
5772
- return /* @__PURE__ */ _jsx49("h1", _object_spread_props26(_object_spread30({}, props), {
5849
+ return /* @__PURE__ */ _jsx50("h1", _object_spread_props26(_object_spread32({}, props), {
5773
5850
  className: `text-3xl mb-10 leading-10 tracking-tight ${index_module_default18.title}`
5774
5851
  }));
5775
5852
  };
5776
5853
  var H2 = (props) => {
5777
- return /* @__PURE__ */ _jsx49("h2", _object_spread_props26(_object_spread30({}, props), {
5854
+ return /* @__PURE__ */ _jsx50("h2", _object_spread_props26(_object_spread32({}, props), {
5778
5855
  className: `mt-14 mb-6 text-2xl tracking-tight ${index_module_default18.title}`
5779
5856
  }));
5780
5857
  };
5781
5858
  var H3 = (props) => {
5782
- return /* @__PURE__ */ _jsx49("h3", _object_spread_props26(_object_spread30({}, props), {
5859
+ return /* @__PURE__ */ _jsx50("h3", _object_spread_props26(_object_spread32({}, props), {
5783
5860
  className: `mt-10 mb-2 leading-7 text-xl ${index_module_default18.title}`
5784
5861
  }));
5785
5862
  };
5786
5863
  var H4 = (props) => {
5787
- return /* @__PURE__ */ _jsx49("h4", _object_spread_props26(_object_spread30({}, props), {
5864
+ return /* @__PURE__ */ _jsx50("h4", _object_spread_props26(_object_spread32({}, props), {
5788
5865
  className: `mt-8 leading-6 text-base ${index_module_default18.title}`
5789
5866
  }));
5790
5867
  };
5791
5868
  var H5 = (props) => {
5792
- return /* @__PURE__ */ _jsx49("h5", _object_spread_props26(_object_spread30({}, props), {
5869
+ return /* @__PURE__ */ _jsx50("h5", _object_spread_props26(_object_spread32({}, props), {
5793
5870
  className: index_module_default18.title
5794
5871
  }));
5795
5872
  };
5796
5873
  var H6 = (props) => {
5797
- return /* @__PURE__ */ _jsx49("h6", _object_spread_props26(_object_spread30({}, props), {
5874
+ return /* @__PURE__ */ _jsx50("h6", _object_spread_props26(_object_spread32({}, props), {
5798
5875
  className: index_module_default18.title
5799
5876
  }));
5800
5877
  };
5801
5878
 
5802
5879
  // src/theme-default/layout/DocLayout/docComponents/list.tsx
5803
- import { jsx as _jsx50 } from "react/jsx-runtime";
5804
- function _define_property31(obj, key, value) {
5880
+ import { jsx as _jsx51 } from "react/jsx-runtime";
5881
+ function _define_property33(obj, key, value) {
5805
5882
  if (key in obj) {
5806
5883
  Object.defineProperty(obj, key, {
5807
5884
  value,
@@ -5814,7 +5891,7 @@ function _define_property31(obj, key, value) {
5814
5891
  }
5815
5892
  return obj;
5816
5893
  }
5817
- function _object_spread31(target) {
5894
+ function _object_spread33(target) {
5818
5895
  for (var i = 1; i < arguments.length; i++) {
5819
5896
  var source = arguments[i] != null ? arguments[i] : {};
5820
5897
  var ownKeys32 = Object.keys(source);
@@ -5824,7 +5901,7 @@ function _object_spread31(target) {
5824
5901
  }));
5825
5902
  }
5826
5903
  ownKeys32.forEach(function(key) {
5827
- _define_property31(target, key, source[key]);
5904
+ _define_property33(target, key, source[key]);
5828
5905
  });
5829
5906
  }
5830
5907
  return target;
@@ -5854,24 +5931,24 @@ function _object_spread_props27(target, source) {
5854
5931
  return target;
5855
5932
  }
5856
5933
  var Ol = (props) => {
5857
- return /* @__PURE__ */ _jsx50("ol", _object_spread_props27(_object_spread31({}, props), {
5934
+ return /* @__PURE__ */ _jsx51("ol", _object_spread_props27(_object_spread33({}, props), {
5858
5935
  className: "list-decimal pl-5 my-4 leading-7"
5859
5936
  }));
5860
5937
  };
5861
5938
  var Ul = (props) => {
5862
- return /* @__PURE__ */ _jsx50("ul", _object_spread_props27(_object_spread31({}, props), {
5939
+ return /* @__PURE__ */ _jsx51("ul", _object_spread_props27(_object_spread33({}, props), {
5863
5940
  className: "list-disc pl-5 my-4 leading-7"
5864
5941
  }));
5865
5942
  };
5866
5943
  var Li = (props) => {
5867
- return /* @__PURE__ */ _jsx50("li", _object_spread_props27(_object_spread31({}, props), {
5944
+ return /* @__PURE__ */ _jsx51("li", _object_spread_props27(_object_spread33({}, props), {
5868
5945
  className: "[&:not(:first-child)]:mt-2"
5869
5946
  }));
5870
5947
  };
5871
5948
 
5872
5949
  // src/theme-default/layout/DocLayout/docComponents/table.tsx
5873
- import { jsx as _jsx51 } from "react/jsx-runtime";
5874
- function _define_property32(obj, key, value) {
5950
+ import { jsx as _jsx52 } from "react/jsx-runtime";
5951
+ function _define_property34(obj, key, value) {
5875
5952
  if (key in obj) {
5876
5953
  Object.defineProperty(obj, key, {
5877
5954
  value,
@@ -5884,7 +5961,7 @@ function _define_property32(obj, key, value) {
5884
5961
  }
5885
5962
  return obj;
5886
5963
  }
5887
- function _object_spread32(target) {
5964
+ function _object_spread34(target) {
5888
5965
  for (var i = 1; i < arguments.length; i++) {
5889
5966
  var source = arguments[i] != null ? arguments[i] : {};
5890
5967
  var ownKeys32 = Object.keys(source);
@@ -5894,7 +5971,7 @@ function _object_spread32(target) {
5894
5971
  }));
5895
5972
  }
5896
5973
  ownKeys32.forEach(function(key) {
5897
- _define_property32(target, key, source[key]);
5974
+ _define_property34(target, key, source[key]);
5898
5975
  });
5899
5976
  }
5900
5977
  return target;
@@ -5924,29 +6001,29 @@ function _object_spread_props28(target, source) {
5924
6001
  return target;
5925
6002
  }
5926
6003
  var Table = (props) => {
5927
- return /* @__PURE__ */ _jsx51("table", _object_spread_props28(_object_spread32({}, props), {
6004
+ return /* @__PURE__ */ _jsx52("table", _object_spread_props28(_object_spread34({}, props), {
5928
6005
  className: "table border-collapse text-base my-5 overflow-x-auto leading-7 border-gray-light-2"
5929
6006
  }));
5930
6007
  };
5931
6008
  var Tr = (props) => {
5932
- return /* @__PURE__ */ _jsx51("tr", _object_spread_props28(_object_spread32({}, props), {
6009
+ return /* @__PURE__ */ _jsx52("tr", _object_spread_props28(_object_spread34({}, props), {
5933
6010
  className: "border border-solid transition-colors duration-500 even:bg-soft border-gray-light-2"
5934
6011
  }));
5935
6012
  };
5936
6013
  var Td = (props) => {
5937
- return /* @__PURE__ */ _jsx51("td", _object_spread_props28(_object_spread32({}, props), {
6014
+ return /* @__PURE__ */ _jsx52("td", _object_spread_props28(_object_spread34({}, props), {
5938
6015
  className: "border border-solid px-4 py-2 border-gray-light-2"
5939
6016
  }));
5940
6017
  };
5941
6018
  var Th = (props) => {
5942
- return /* @__PURE__ */ _jsx51("th", _object_spread_props28(_object_spread32({}, props), {
6019
+ return /* @__PURE__ */ _jsx52("th", _object_spread_props28(_object_spread34({}, props), {
5943
6020
  className: "border border-solid px-4 py-2 text-text-1 text-base font-semibold border-gray-light-2"
5944
6021
  }));
5945
6022
  };
5946
6023
 
5947
6024
  // src/theme-default/layout/DocLayout/docComponents/hr.tsx
5948
- import { jsx as _jsx52 } from "react/jsx-runtime";
5949
- function _define_property33(obj, key, value) {
6025
+ import { jsx as _jsx53 } from "react/jsx-runtime";
6026
+ function _define_property35(obj, key, value) {
5950
6027
  if (key in obj) {
5951
6028
  Object.defineProperty(obj, key, {
5952
6029
  value,
@@ -5959,7 +6036,7 @@ function _define_property33(obj, key, value) {
5959
6036
  }
5960
6037
  return obj;
5961
6038
  }
5962
- function _object_spread33(target) {
6039
+ function _object_spread35(target) {
5963
6040
  for (var i = 1; i < arguments.length; i++) {
5964
6041
  var source = arguments[i] != null ? arguments[i] : {};
5965
6042
  var ownKeys32 = Object.keys(source);
@@ -5969,7 +6046,7 @@ function _object_spread33(target) {
5969
6046
  }));
5970
6047
  }
5971
6048
  ownKeys32.forEach(function(key) {
5972
- _define_property33(target, key, source[key]);
6049
+ _define_property35(target, key, source[key]);
5973
6050
  });
5974
6051
  }
5975
6052
  return target;
@@ -5999,16 +6076,16 @@ function _object_spread_props29(target, source) {
5999
6076
  return target;
6000
6077
  }
6001
6078
  var Hr = (props) => {
6002
- return /* @__PURE__ */ _jsx52("hr", _object_spread_props29(_object_spread33({}, props), {
6079
+ return /* @__PURE__ */ _jsx53("hr", _object_spread_props29(_object_spread35({}, props), {
6003
6080
  className: "my-12 border-t bordder-solid border-divider-light"
6004
6081
  }));
6005
6082
  };
6006
6083
 
6007
6084
  // src/theme-default/layout/DocLayout/docComponents/link.tsx
6008
- import { jsx as _jsx53 } from "react/jsx-runtime";
6009
- import { isExternalUrl, normalizeHref as normalizeHref8, normalizeSlash as normalizeSlash2 } from "@rspress/shared";
6085
+ import { jsx as _jsx54 } from "react/jsx-runtime";
6086
+ import { isExternalUrl, normalizeHref as normalizeHref9, normalizeSlash as normalizeSlash2 } from "@rspress/shared";
6010
6087
  import { withBase as withBase8, useLang, usePageData as usePageData13, removeBase as removeBase3 } from "@/runtime";
6011
- function _define_property34(obj, key, value) {
6088
+ function _define_property36(obj, key, value) {
6012
6089
  if (key in obj) {
6013
6090
  Object.defineProperty(obj, key, {
6014
6091
  value,
@@ -6021,7 +6098,7 @@ function _define_property34(obj, key, value) {
6021
6098
  }
6022
6099
  return obj;
6023
6100
  }
6024
- function _object_spread34(target) {
6101
+ function _object_spread36(target) {
6025
6102
  for (var i = 1; i < arguments.length; i++) {
6026
6103
  var source = arguments[i] != null ? arguments[i] : {};
6027
6104
  var ownKeys32 = Object.keys(source);
@@ -6031,7 +6108,7 @@ function _object_spread34(target) {
6031
6108
  }));
6032
6109
  }
6033
6110
  ownKeys32.forEach(function(key) {
6034
- _define_property34(target, key, source[key]);
6111
+ _define_property36(target, key, source[key]);
6035
6112
  });
6036
6113
  }
6037
6114
  return target;
@@ -6074,17 +6151,17 @@ var A = (props) => {
6074
6151
  if (lang === defaultLang && startWithLang) {
6075
6152
  href = removeBase3(href).replace(`/${lang}`, "");
6076
6153
  }
6077
- href = normalizeHref8(withBase8(href || ""));
6154
+ href = normalizeHref9(withBase8(href || ""));
6078
6155
  }
6079
- return /* @__PURE__ */ _jsx53("a", _object_spread_props30(_object_spread34({}, props), {
6156
+ return /* @__PURE__ */ _jsx54("a", _object_spread_props30(_object_spread36({}, props), {
6080
6157
  className: `${index_module_default18.link} ${props.className}`,
6081
6158
  href
6082
6159
  }));
6083
6160
  };
6084
6161
 
6085
6162
  // src/theme-default/layout/DocLayout/docComponents/paragraph.tsx
6086
- import { jsx as _jsx54 } from "react/jsx-runtime";
6087
- function _define_property35(obj, key, value) {
6163
+ import { jsx as _jsx55 } from "react/jsx-runtime";
6164
+ function _define_property37(obj, key, value) {
6088
6165
  if (key in obj) {
6089
6166
  Object.defineProperty(obj, key, {
6090
6167
  value,
@@ -6097,7 +6174,7 @@ function _define_property35(obj, key, value) {
6097
6174
  }
6098
6175
  return obj;
6099
6176
  }
6100
- function _object_spread35(target) {
6177
+ function _object_spread37(target) {
6101
6178
  for (var i = 1; i < arguments.length; i++) {
6102
6179
  var source = arguments[i] != null ? arguments[i] : {};
6103
6180
  var ownKeys32 = Object.keys(source);
@@ -6107,7 +6184,7 @@ function _object_spread35(target) {
6107
6184
  }));
6108
6185
  }
6109
6186
  ownKeys32.forEach(function(key) {
6110
- _define_property35(target, key, source[key]);
6187
+ _define_property37(target, key, source[key]);
6111
6188
  });
6112
6189
  }
6113
6190
  return target;
@@ -6137,23 +6214,23 @@ function _object_spread_props31(target, source) {
6137
6214
  return target;
6138
6215
  }
6139
6216
  var P = (props) => {
6140
- return /* @__PURE__ */ _jsx54("p", _object_spread_props31(_object_spread35({}, props), {
6217
+ return /* @__PURE__ */ _jsx55("p", _object_spread_props31(_object_spread37({}, props), {
6141
6218
  className: "my-4 leading-7"
6142
6219
  }));
6143
6220
  };
6144
6221
  var Blockquote = (props) => {
6145
- return /* @__PURE__ */ _jsx54("blockquote", _object_spread_props31(_object_spread35({}, props), {
6222
+ return /* @__PURE__ */ _jsx55("blockquote", _object_spread_props31(_object_spread37({}, props), {
6146
6223
  className: `border-l-2 border-solid border-divider pl-4 my-6 transition-colors duration-500 ${index_module_default18.blockquote}`
6147
6224
  }));
6148
6225
  };
6149
6226
  var Strong = (props) => {
6150
- return /* @__PURE__ */ _jsx54("strong", _object_spread_props31(_object_spread35({}, props), {
6227
+ return /* @__PURE__ */ _jsx55("strong", _object_spread_props31(_object_spread37({}, props), {
6151
6228
  className: "font-semibold"
6152
6229
  }));
6153
6230
  };
6154
6231
 
6155
6232
  // src/theme-default/layout/DocLayout/docComponents/code.tsx
6156
- import { jsx as _jsx55, jsxs as _jsxs31, Fragment as _Fragment5 } from "react/jsx-runtime";
6233
+ import { jsx as _jsx56, jsxs as _jsxs31, Fragment as _Fragment6 } from "react/jsx-runtime";
6157
6234
  import { PrismLight as SyntaxHighlighter } from "react-syntax-highlighter";
6158
6235
  import jsx from "react-syntax-highlighter/dist/esm/languages/prism/jsx";
6159
6236
  import js from "react-syntax-highlighter/dist/esm/languages/prism/javascript";
@@ -6169,7 +6246,7 @@ import diff from "react-syntax-highlighter/dist/esm/languages/prism/diff";
6169
6246
  import bash from "react-syntax-highlighter/dist/esm/languages/prism/bash";
6170
6247
  import markdown from "react-syntax-highlighter/dist/esm/languages/prism/markdown";
6171
6248
  import copy from "copy-to-clipboard";
6172
- import { useRef as useRef5 } from "react";
6249
+ import { useRef as useRef6 } from "react";
6173
6250
 
6174
6251
  // src/theme-default/layout/DocLayout/docComponents/prisim-theme.ts
6175
6252
  var prisim_theme_default = {
@@ -6248,7 +6325,7 @@ var prisim_theme_default = {
6248
6325
 
6249
6326
  // src/theme-default/layout/DocLayout/docComponents/code.tsx
6250
6327
  import { usePageData as usePageData14 } from "@/runtime";
6251
- function _define_property36(obj, key, value) {
6328
+ function _define_property38(obj, key, value) {
6252
6329
  if (key in obj) {
6253
6330
  Object.defineProperty(obj, key, {
6254
6331
  value,
@@ -6261,7 +6338,7 @@ function _define_property36(obj, key, value) {
6261
6338
  }
6262
6339
  return obj;
6263
6340
  }
6264
- function _object_spread36(target) {
6341
+ function _object_spread38(target) {
6265
6342
  for (var i = 1; i < arguments.length; i++) {
6266
6343
  var source = arguments[i] != null ? arguments[i] : {};
6267
6344
  var ownKeys32 = Object.keys(source);
@@ -6271,7 +6348,7 @@ function _object_spread36(target) {
6271
6348
  }));
6272
6349
  }
6273
6350
  ownKeys32.forEach(function(key) {
6274
- _define_property36(target, key, source[key]);
6351
+ _define_property38(target, key, source[key]);
6275
6352
  });
6276
6353
  }
6277
6354
  return target;
@@ -6297,7 +6374,7 @@ function registerLanguages() {
6297
6374
  }
6298
6375
  function Code(props) {
6299
6376
  var _className;
6300
- const copyButtonRef = useRef5(null);
6377
+ const copyButtonRef = useRef6(null);
6301
6378
  const { siteData: siteData2 } = usePageData14();
6302
6379
  const { showLineNumbers } = siteData2.markdown;
6303
6380
  if (!registered) {
@@ -6306,7 +6383,7 @@ function Code(props) {
6306
6383
  const { className, meta } = props;
6307
6384
  const language = (_className = className) === null || _className === void 0 ? void 0 : _className.replace(/language-/, "");
6308
6385
  if (!language) {
6309
- return /* @__PURE__ */ _jsx55("code", _object_spread36({}, props));
6386
+ return /* @__PURE__ */ _jsx56("code", _object_spread38({}, props));
6310
6387
  }
6311
6388
  let children;
6312
6389
  if (typeof props.children === "string") {
@@ -6348,9 +6425,9 @@ function Code(props) {
6348
6425
  timeoutIdMap.set(el, timeoutId);
6349
6426
  }
6350
6427
  };
6351
- return /* @__PURE__ */ _jsxs31(_Fragment5, {
6428
+ return /* @__PURE__ */ _jsxs31(_Fragment6, {
6352
6429
  children: [
6353
- /* @__PURE__ */ _jsx55(SyntaxHighlighter, {
6430
+ /* @__PURE__ */ _jsx56(SyntaxHighlighter, {
6354
6431
  language,
6355
6432
  style: prisim_theme_default,
6356
6433
  wrapLines: true,
@@ -6373,7 +6450,7 @@ function Code(props) {
6373
6450
  },
6374
6451
  children
6375
6452
  }),
6376
- /* @__PURE__ */ _jsx55("button", {
6453
+ /* @__PURE__ */ _jsx56("button", {
6377
6454
  className: "copy",
6378
6455
  onClick: copyCode,
6379
6456
  ref: copyButtonRef
@@ -6383,7 +6460,7 @@ function Code(props) {
6383
6460
  }
6384
6461
 
6385
6462
  // src/theme-default/layout/DocLayout/docComponents/pre.tsx
6386
- import { jsx as _jsx56, jsxs as _jsxs32 } from "react/jsx-runtime";
6463
+ import { jsx as _jsx57, jsxs as _jsxs32 } from "react/jsx-runtime";
6387
6464
  var DEFAULT_LANGUAGE_CLASS = "language-bash";
6388
6465
  function parseTitleFromMeta(meta) {
6389
6466
  var _highlightReg_exec, _result;
@@ -6402,7 +6479,7 @@ function parseTitleFromMeta(meta) {
6402
6479
  }
6403
6480
  function Pre({ children }) {
6404
6481
  if (Array.isArray(children)) {
6405
- return /* @__PURE__ */ _jsx56("pre", {
6482
+ return /* @__PURE__ */ _jsx57("pre", {
6406
6483
  children
6407
6484
  });
6408
6485
  }
@@ -6411,11 +6488,11 @@ function Pre({ children }) {
6411
6488
  return /* @__PURE__ */ _jsxs32("div", {
6412
6489
  className: className || DEFAULT_LANGUAGE_CLASS,
6413
6490
  children: [
6414
- codeTitle && /* @__PURE__ */ _jsx56("div", {
6491
+ codeTitle && /* @__PURE__ */ _jsx57("div", {
6415
6492
  className: "rspress-code-title",
6416
6493
  children: codeTitle
6417
6494
  }),
6418
- /* @__PURE__ */ _jsx56("div", {
6495
+ /* @__PURE__ */ _jsx57("div", {
6419
6496
  className: "rspress-code-content",
6420
6497
  children
6421
6498
  })