@rspress/core 0.0.12 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/dist/index.js +34 -26
  2. package/dist/index.js.map +1 -1
  3. package/dist/loader.d.ts +2 -0
  4. package/dist/loader.js +24 -49
  5. package/dist/loader.js.map +1 -1
  6. package/dist/runtime/App.d.ts +8 -0
  7. package/dist/runtime/Content.d.ts +6 -0
  8. package/dist/runtime/NoSSR.d.ts +4 -0
  9. package/dist/runtime/clientEntry.d.ts +1 -0
  10. package/dist/runtime/hooks.d.ts +22 -0
  11. package/dist/runtime/index.d.ts +6 -0
  12. package/dist/runtime/ssrEntry.d.ts +6 -0
  13. package/dist/runtime/tsconfig.json +9 -0
  14. package/dist/runtime/utils.d.ts +6 -0
  15. package/dist/theme/bundle.css +85 -52
  16. package/dist/theme/bundle.d.ts +24 -2
  17. package/dist/theme/bundle.js +1425 -897
  18. package/dist/theme/bundle.js.map +1 -1
  19. package/package.json +14 -16
  20. package/src/runtime/global.d.ts +49 -0
  21. package/src/runtime/tsconfig.json +9 -0
  22. package/src/theme-default/components/LocalSideBar/{index.module.scss → index.scss} +6 -5
  23. package/src/theme-default/components/LocalSideBar/index.tsx +4 -4
  24. package/src/theme-default/components/PackageManagerTabs/icons/Bun.tsx +101 -0
  25. package/src/theme-default/components/PackageManagerTabs/icons/Npm.tsx +16 -0
  26. package/src/theme-default/components/PackageManagerTabs/icons/Pnpm.tsx +22 -0
  27. package/src/theme-default/components/PackageManagerTabs/icons/Yarn.tsx +18 -0
  28. package/src/theme-default/components/PackageManagerTabs/index.scss +5 -0
  29. package/src/theme-default/components/PackageManagerTabs/index.tsx +110 -0
  30. package/src/theme-default/components/Search/SearchPanel.tsx +339 -0
  31. package/src/theme-default/components/Search/index.tsx +6 -326
  32. package/src/theme-default/components/Tabs/index.module.scss +1 -0
  33. package/src/theme-default/components/Tabs/index.tsx +30 -41
  34. package/src/theme-default/components/Toc/index.css +18 -0
  35. package/src/theme-default/components/Toc/index.tsx +42 -0
  36. package/src/theme-default/index.ts +8 -7
  37. package/src/theme-default/layout/DocLayout/docComponents/code.tsx +1 -1
  38. package/src/theme-default/layout/DocLayout/index.module.scss +6 -3
  39. package/src/theme-default/layout/DocLayout/index.tsx +9 -7
  40. package/src/theme-default/logic/useAppearance.ts +0 -1
@@ -83,13 +83,13 @@ function _define_property(obj, key, value) {
83
83
  function _object_spread(target) {
84
84
  for (var i = 1; i < arguments.length; i++) {
85
85
  var source = arguments[i] != null ? arguments[i] : {};
86
- var ownKeys32 = Object.keys(source);
86
+ var ownKeys36 = Object.keys(source);
87
87
  if (typeof Object.getOwnPropertySymbols === "function") {
88
- ownKeys32 = ownKeys32.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
88
+ ownKeys36 = ownKeys36.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
89
89
  return Object.getOwnPropertyDescriptor(source, sym).enumerable;
90
90
  }));
91
91
  }
92
- ownKeys32.forEach(function(key) {
92
+ ownKeys36.forEach(function(key) {
93
93
  _define_property(target, key, source[key]);
94
94
  });
95
95
  }
@@ -120,14 +120,14 @@ function _object_spread_props(target, source) {
120
120
  return target;
121
121
  }
122
122
  function useLocaleSiteData() {
123
- var _pageData_siteData, _pageData, _themeConfig;
123
+ var _pageData_siteData;
124
124
  const pageData = usePageData2();
125
125
  const { page: { lang } } = pageData;
126
126
  var _pageData_siteData_themeConfig;
127
- const themeConfig = (_pageData_siteData_themeConfig = (_pageData = pageData) === null || _pageData === void 0 ? void 0 : (_pageData_siteData = _pageData.siteData) === null || _pageData_siteData === void 0 ? void 0 : _pageData_siteData.themeConfig) !== null && _pageData_siteData_themeConfig !== void 0 ? _pageData_siteData_themeConfig : {};
127
+ const themeConfig = (_pageData_siteData_themeConfig = pageData === null || pageData === void 0 ? void 0 : (_pageData_siteData = pageData.siteData) === null || _pageData_siteData === void 0 ? void 0 : _pageData_siteData.themeConfig) !== null && _pageData_siteData_themeConfig !== void 0 ? _pageData_siteData_themeConfig : {};
128
128
  var _pageData_siteData_lang;
129
129
  const defaultLang = (_pageData_siteData_lang = pageData.siteData.lang) !== null && _pageData_siteData_lang !== void 0 ? _pageData_siteData_lang : "";
130
- const locales = (_themeConfig = themeConfig) === null || _themeConfig === void 0 ? void 0 : _themeConfig.locales;
130
+ const locales = themeConfig === null || themeConfig === void 0 ? void 0 : themeConfig.locales;
131
131
  if (!locales || locales.length === 0) {
132
132
  return {
133
133
  nav: themeConfig.nav,
@@ -269,13 +269,13 @@ function _define_property2(obj, key, value) {
269
269
  function _object_spread2(target) {
270
270
  for (var i = 1; i < arguments.length; i++) {
271
271
  var source = arguments[i] != null ? arguments[i] : {};
272
- var ownKeys32 = Object.keys(source);
272
+ var ownKeys36 = Object.keys(source);
273
273
  if (typeof Object.getOwnPropertySymbols === "function") {
274
- ownKeys32 = ownKeys32.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
274
+ ownKeys36 = ownKeys36.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
275
275
  return Object.getOwnPropertyDescriptor(source, sym).enumerable;
276
276
  }));
277
277
  }
278
- ownKeys32.forEach(function(key) {
278
+ ownKeys36.forEach(function(key) {
279
279
  _define_property2(target, key, source[key]);
280
280
  });
281
281
  }
@@ -326,7 +326,6 @@ function bindingWindowScroll() {
326
326
  });
327
327
  }
328
328
  function bindingAsideScroll() {
329
- var _aside;
330
329
  function isBottom() {
331
330
  return document.documentElement.scrollTop + window.innerHeight >= document.documentElement.scrollHeight;
332
331
  }
@@ -340,16 +339,15 @@ function bindingAsideScroll() {
340
339
  return;
341
340
  }
342
341
  let prevActiveLink = null;
343
- const headers = Array.from(((_aside = aside) === null || _aside === void 0 ? void 0 : _aside.getElementsByTagName("a")) || []).map((item) => decodeURIComponent(item.hash));
342
+ const headers = Array.from((aside === null || aside === void 0 ? void 0 : aside.getElementsByTagName("a")) || []).map((item) => decodeURIComponent(item.hash));
344
343
  if (marker && !headers.length) {
345
344
  marker.style.opacity = "0";
346
345
  return;
347
346
  }
348
347
  const activate = (links2, index) => {
349
348
  if (links2[index]) {
350
- var _id, _aside2;
351
349
  const id = links2[index].getAttribute("href");
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`);
350
+ const currentLink = aside === null || aside === void 0 ? void 0 : aside.querySelector(`a[href="#${id === null || id === void 0 ? void 0 : id.slice(1)}"] > span`);
353
351
  if (currentLink) {
354
352
  if (prevActiveLink) {
355
353
  prevActiveLink.classList.remove("aside-active");
@@ -582,9 +580,8 @@ function Link(props) {
582
580
  var _ref = _async_to_generator(function* (e) {
583
581
  e.preventDefault();
584
582
  if (!process.env.__SSR__) {
585
- var _matchedRoutes, _onNavigate;
586
583
  const matchedRoutes = matchRoutes(routes, normalizeRoutePath(withBaseUrl));
587
- if ((_matchedRoutes = matchedRoutes) === null || _matchedRoutes === void 0 ? void 0 : _matchedRoutes.length) {
584
+ if (matchedRoutes === null || matchedRoutes === void 0 ? void 0 : matchedRoutes.length) {
588
585
  const timer = setTimeout(() => {
589
586
  nprogress.start();
590
587
  }, 200);
@@ -592,7 +589,7 @@ function Link(props) {
592
589
  clearTimeout(timer);
593
590
  nprogress.done();
594
591
  }
595
- (_onNavigate = onNavigate) === null || _onNavigate === void 0 ? void 0 : _onNavigate();
592
+ onNavigate === null || onNavigate === void 0 ? void 0 : onNavigate();
596
593
  navigate(withBaseUrl, {
597
594
  replace: false
598
595
  });
@@ -628,12 +625,11 @@ var index_module_default3 = { "pager": "pager_33e00", "has-next": "has-next_33e0
628
625
  // src/theme-default/components/DocFooter/index.tsx
629
626
  import { normalizeHref as normalizeHref2, usePageData as usePageData4 } from "@/runtime";
630
627
  function DocFooter() {
631
- var _themeConfig;
632
628
  const { prevPage, nextPage } = usePrevNextPage();
633
629
  const { prevPageText = "Previous Page", nextPageText = "Next page", lastUpdatedText: localesLastUpdatedText = "Last Updated", lastUpdated: localesLastUpdated = false } = useLocaleSiteData();
634
630
  const { page: { lastUpdatedTime }, siteData: siteData2 } = usePageData4();
635
631
  const { themeConfig } = siteData2;
636
- const lastUpdatedText = ((_themeConfig = themeConfig) === null || _themeConfig === void 0 ? void 0 : _themeConfig.lastUpdatedText) || localesLastUpdatedText;
632
+ const lastUpdatedText = (themeConfig === null || themeConfig === void 0 ? void 0 : themeConfig.lastUpdatedText) || localesLastUpdatedText;
637
633
  const showLastUpdated = themeConfig.lastUpdated || localesLastUpdated;
638
634
  return /* @__PURE__ */ _jsxs3("footer", {
639
635
  className: "mt-8",
@@ -768,13 +764,13 @@ function _define_property3(obj, key, value) {
768
764
  function _object_spread3(target) {
769
765
  for (var i = 1; i < arguments.length; i++) {
770
766
  var source = arguments[i] != null ? arguments[i] : {};
771
- var ownKeys32 = Object.keys(source);
767
+ var ownKeys36 = Object.keys(source);
772
768
  if (typeof Object.getOwnPropertySymbols === "function") {
773
- ownKeys32 = ownKeys32.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
769
+ ownKeys36 = ownKeys36.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
774
770
  return Object.getOwnPropertyDescriptor(source, sym).enumerable;
775
771
  }));
776
772
  }
777
- ownKeys32.forEach(function(key) {
773
+ ownKeys36.forEach(function(key) {
778
774
  _define_property3(target, key, source[key]);
779
775
  });
780
776
  }
@@ -834,13 +830,13 @@ function _define_property4(obj, key, value) {
834
830
  function _object_spread4(target) {
835
831
  for (var i = 1; i < arguments.length; i++) {
836
832
  var source = arguments[i] != null ? arguments[i] : {};
837
- var ownKeys32 = Object.keys(source);
833
+ var ownKeys36 = Object.keys(source);
838
834
  if (typeof Object.getOwnPropertySymbols === "function") {
839
- ownKeys32 = ownKeys32.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
835
+ ownKeys36 = ownKeys36.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
840
836
  return Object.getOwnPropertyDescriptor(source, sym).enumerable;
841
837
  }));
842
838
  }
843
- ownKeys32.forEach(function(key) {
839
+ ownKeys36.forEach(function(key) {
844
840
  _define_property4(target, key, source[key]);
845
841
  });
846
842
  }
@@ -871,7 +867,7 @@ function _object_spread_props3(target, source) {
871
867
  return target;
872
868
  }
873
869
  function SidebarGroup(props) {
874
- var _item_items, _item;
870
+ var _item_items;
875
871
  const { item, depth = 0, activeMatcher, id, setSidebarData } = props;
876
872
  const navigate = useNavigate2();
877
873
  const isGroupMatched = matchCache.get(item);
@@ -1001,7 +997,7 @@ function SidebarGroup(props) {
1001
997
  opacity: initialState.current ? 0 : 1,
1002
998
  marginLeft: depth === 0 ? "12px" : 0
1003
999
  },
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) => (
1000
+ children: item === null || item === void 0 ? void 0 : (_item_items = item.items) === null || _item_items === void 0 ? void 0 : _item_items.map((item2, index) => (
1005
1001
  // eslint-disable-next-line react/no-array-index-key
1006
1002
  /* @__PURE__ */ _jsx8("div", {
1007
1003
  children: /* @__PURE__ */ _jsx8(SidebarItem, _object_spread_props3(_object_spread4({}, props), {
@@ -1036,13 +1032,13 @@ function _define_property5(obj, key, value) {
1036
1032
  function _object_spread5(target) {
1037
1033
  for (var i = 1; i < arguments.length; i++) {
1038
1034
  var source = arguments[i] != null ? arguments[i] : {};
1039
- var ownKeys32 = Object.keys(source);
1035
+ var ownKeys36 = Object.keys(source);
1040
1036
  if (typeof Object.getOwnPropertySymbols === "function") {
1041
- ownKeys32 = ownKeys32.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
1037
+ ownKeys36 = ownKeys36.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
1042
1038
  return Object.getOwnPropertyDescriptor(source, sym).enumerable;
1043
1039
  }));
1044
1040
  }
1045
- ownKeys32.forEach(function(key) {
1041
+ ownKeys36.forEach(function(key) {
1046
1042
  _define_property5(target, key, source[key]);
1047
1043
  });
1048
1044
  }
@@ -1116,13 +1112,13 @@ function _define_property6(obj, key, value) {
1116
1112
  function _object_spread6(target) {
1117
1113
  for (var i = 1; i < arguments.length; i++) {
1118
1114
  var source = arguments[i] != null ? arguments[i] : {};
1119
- var ownKeys32 = Object.keys(source);
1115
+ var ownKeys36 = Object.keys(source);
1120
1116
  if (typeof Object.getOwnPropertySymbols === "function") {
1121
- ownKeys32 = ownKeys32.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
1117
+ ownKeys36 = ownKeys36.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
1122
1118
  return Object.getOwnPropertyDescriptor(source, sym).enumerable;
1123
1119
  }));
1124
1120
  }
1125
- ownKeys32.forEach(function(key) {
1121
+ ownKeys36.forEach(function(key) {
1126
1122
  _define_property6(target, key, source[key]);
1127
1123
  });
1128
1124
  }
@@ -1136,11 +1132,10 @@ var highlightTitleStyle = {
1136
1132
  };
1137
1133
  var matchCache = /* @__PURE__ */ new WeakMap();
1138
1134
  function SideBar(props) {
1139
- var _frontmatter, _themeConfig;
1140
1135
  const { isSidebarOpen, langRoutePrefix, pathname: rawPathname, sidebarData: rawSidebarData } = props;
1141
1136
  const { siteData: { themeConfig }, page: { frontmatter } } = usePageData5();
1142
1137
  var _frontmatter_hideNavbar, _ref;
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;
1138
+ const hideNavbar = (_ref = (_frontmatter_hideNavbar = frontmatter === null || frontmatter === void 0 ? void 0 : frontmatter.hideNavbar) !== null && _frontmatter_hideNavbar !== void 0 ? _frontmatter_hideNavbar : themeConfig === null || themeConfig === void 0 ? void 0 : themeConfig.hideNavbar) !== null && _ref !== void 0 ? _ref : false;
1144
1139
  const [sidebarData, setSidebarData] = useState2(rawSidebarData.filter(Boolean).flat());
1145
1140
  const pathname = decodeURIComponent(rawPathname);
1146
1141
  useEffect5(() => {
@@ -1186,9 +1181,8 @@ function SideBar(props) {
1186
1181
  };
1187
1182
  const activeMatcher = (path) => isActive(removeBase(removeLangPrefix(pathname)), removeLangPrefix(path), true);
1188
1183
  const preloadLink = (link) => {
1189
- var _match;
1190
1184
  const match = matchRoutes2(routes2, link);
1191
- if ((_match = match) === null || _match === void 0 ? void 0 : _match.length) {
1185
+ if (match === null || match === void 0 ? void 0 : match.length) {
1192
1186
  const { route } = match[0];
1193
1187
  route.preload();
1194
1188
  }
@@ -1243,13 +1237,13 @@ function _define_property7(obj, key, value) {
1243
1237
  function _object_spread7(target) {
1244
1238
  for (var i = 1; i < arguments.length; i++) {
1245
1239
  var source = arguments[i] != null ? arguments[i] : {};
1246
- var ownKeys32 = Object.keys(source);
1240
+ var ownKeys36 = Object.keys(source);
1247
1241
  if (typeof Object.getOwnPropertySymbols === "function") {
1248
- ownKeys32 = ownKeys32.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
1242
+ ownKeys36 = ownKeys36.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
1249
1243
  return Object.getOwnPropertyDescriptor(source, sym).enumerable;
1250
1244
  }));
1251
1245
  }
1252
- ownKeys32.forEach(function(key) {
1246
+ ownKeys36.forEach(function(key) {
1253
1247
  _define_property7(target, key, source[key]);
1254
1248
  });
1255
1249
  }
@@ -1291,9 +1285,6 @@ var SvgMenu = (props) => /* @__PURE__ */ _jsx11("svg", _object_spread_props4(_ob
1291
1285
  }));
1292
1286
  var menu_default = SvgMenu;
1293
1287
 
1294
- // src/theme-default/components/LocalSideBar/index.module.scss
1295
- var index_module_default5 = { "localNav": "localNav_dce60", "menu": "menu_dce60", "backDrop": "backDrop_dce60" };
1296
-
1297
1288
  // src/theme-default/components/LocalSideBar/index.tsx
1298
1289
  function SideMenu(props) {
1299
1290
  const { langRoutePrefix, pathname, sidebarData } = props;
@@ -1312,10 +1303,10 @@ function SideMenu(props) {
1312
1303
  return /* @__PURE__ */ _jsxs6(Fragment, {
1313
1304
  children: [
1314
1305
  /* @__PURE__ */ _jsx12("div", {
1315
- className: index_module_default5.localNav,
1306
+ className: "rspress-sidebar-menu",
1316
1307
  children: /* @__PURE__ */ _jsxs6("button", {
1317
1308
  onClick: openSidebar,
1318
- className: `${index_module_default5.menu} flex-center`,
1309
+ className: "flex-center",
1319
1310
  children: [
1320
1311
  /* @__PURE__ */ _jsx12("div", {
1321
1312
  className: "text-md mr-2",
@@ -1336,7 +1327,7 @@ function SideMenu(props) {
1336
1327
  }),
1337
1328
  isSidebarOpen ? /* @__PURE__ */ _jsx12("div", {
1338
1329
  onClick: closeSidebar,
1339
- className: index_module_default5.backDrop
1330
+ className: "rspress-sidebar-back-drop"
1340
1331
  }) : null
1341
1332
  ]
1342
1333
  });
@@ -1347,7 +1338,7 @@ import { jsx as _jsx13, jsxs as _jsxs7 } from "react/jsx-runtime";
1347
1338
  import { useMemo } from "react";
1348
1339
 
1349
1340
  // src/theme-default/components/Overview/index.module.scss
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" };
1341
+ var index_module_default5 = { "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" };
1351
1342
 
1352
1343
  // src/theme-default/components/Overview/index.tsx
1353
1344
  import { usePageData as usePageData6, normalizeHref as normalizeHref5, withBase as withBase5, isEqualPath as isEqualPath4 } from "@/runtime";
@@ -1367,13 +1358,13 @@ function _define_property8(obj, key, value) {
1367
1358
  function _object_spread8(target) {
1368
1359
  for (var i = 1; i < arguments.length; i++) {
1369
1360
  var source = arguments[i] != null ? arguments[i] : {};
1370
- var ownKeys32 = Object.keys(source);
1361
+ var ownKeys36 = Object.keys(source);
1371
1362
  if (typeof Object.getOwnPropertySymbols === "function") {
1372
- ownKeys32 = ownKeys32.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
1363
+ ownKeys36 = ownKeys36.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
1373
1364
  return Object.getOwnPropertyDescriptor(source, sym).enumerable;
1374
1365
  }));
1375
1366
  }
1376
- ownKeys32.forEach(function(key) {
1367
+ ownKeys36.forEach(function(key) {
1377
1368
  _define_property8(target, key, source[key]);
1378
1369
  });
1379
1370
  }
@@ -1410,7 +1401,7 @@ function Overview() {
1410
1401
  const overviewModules = pages.filter((page) => page.routePath.startsWith(routePath.replace(/overview$/, "")) && page.routePath !== routePath);
1411
1402
  const { items: overviewSidebarGroups } = useSidebarData();
1412
1403
  function normalizeSidebarItem(item) {
1413
- var _pageModule_toc, _pageModule;
1404
+ var _pageModule_toc;
1414
1405
  const pageModule = overviewModules.find((m) => isEqualPath4(m.routePath, withBase5(item.link || "")));
1415
1406
  const getChildLink = (traverseItem) => {
1416
1407
  if (traverseItem.link) {
@@ -1424,7 +1415,7 @@ function Overview() {
1424
1415
  const link = getChildLink(item);
1425
1416
  return _object_spread_props5(_object_spread8({}, item), {
1426
1417
  link,
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)) || []
1418
+ headers: (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)) || []
1428
1419
  });
1429
1420
  }
1430
1421
  const groups = useMemo(() => {
@@ -1465,11 +1456,11 @@ function Overview() {
1465
1456
  children: group.name
1466
1457
  }),
1467
1458
  /* @__PURE__ */ _jsx13("div", {
1468
- className: index_module_default6.overviewGroups,
1459
+ className: index_module_default5.overviewGroups,
1469
1460
  children: group.items.map((item) => {
1470
1461
  var _item_headers;
1471
1462
  return /* @__PURE__ */ _jsxs7("div", {
1472
- className: index_module_default6.overviewGroup,
1463
+ className: index_module_default5.overviewGroup,
1473
1464
  children: [
1474
1465
  /* @__PURE__ */ _jsx13("div", {
1475
1466
  className: "flex",
@@ -1486,7 +1477,7 @@ function Overview() {
1486
1477
  /* @__PURE__ */ _jsx13("ul", {
1487
1478
  className: "list-none",
1488
1479
  children: (_item_headers = item.headers) === null || _item_headers === void 0 ? void 0 : _item_headers.map((header) => /* @__PURE__ */ _jsx13("li", {
1489
- className: `${index_module_default6.overviewGroupLi} ${index_module_default6[`level${header.depth}`]} first:mt-2`,
1480
+ className: `${index_module_default5.overviewGroupLi} ${index_module_default5[`level${header.depth}`]} first:mt-2`,
1490
1481
  children: /* @__PURE__ */ _jsx13(Link, {
1491
1482
  href: `${normalizeHref5(item.link)}#${header.id}`,
1492
1483
  children: header.text
@@ -1508,7 +1499,7 @@ import { createContext } from "react";
1508
1499
  var TabDataContext = createContext({});
1509
1500
 
1510
1501
  // src/theme-default/layout/DocLayout/index.module.scss
1511
- var index_module_default7 = { "aside-container": "aside-container_feeda", "asideContainer": "aside-container_feeda", "docLayout": "docLayout_feeda", "content": "content_feeda" };
1502
+ var index_module_default6 = { "aside-container": "aside-container_feeda", "asideContainer": "aside-container_feeda", "docLayout": "docLayout_feeda", "content": "content_feeda" };
1512
1503
 
1513
1504
  // src/theme-default/layout/DocLayout/index.tsx
1514
1505
  import { Content, usePageData as usePageData7, normalizeSlash } from "@/runtime";
@@ -1528,20 +1519,19 @@ function _define_property9(obj, key, value) {
1528
1519
  function _object_spread9(target) {
1529
1520
  for (var i = 1; i < arguments.length; i++) {
1530
1521
  var source = arguments[i] != null ? arguments[i] : {};
1531
- var ownKeys32 = Object.keys(source);
1522
+ var ownKeys36 = Object.keys(source);
1532
1523
  if (typeof Object.getOwnPropertySymbols === "function") {
1533
- ownKeys32 = ownKeys32.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
1524
+ ownKeys36 = ownKeys36.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
1534
1525
  return Object.getOwnPropertyDescriptor(source, sym).enumerable;
1535
1526
  }));
1536
1527
  }
1537
- ownKeys32.forEach(function(key) {
1528
+ ownKeys36.forEach(function(key) {
1538
1529
  _define_property9(target, key, source[key]);
1539
1530
  });
1540
1531
  }
1541
1532
  return target;
1542
1533
  }
1543
1534
  function DocLayout(props) {
1544
- var _frontmatter, _themeConfig, _frontmatter1, _localesData, _themeConfig1, _frontmatter2, _frontmatter3;
1545
1535
  const { beforeDocFooter, beforeDoc, afterDoc, beforeOutline, afterOutline } = props;
1546
1536
  const { siteData: siteData2, page } = usePageData7();
1547
1537
  const { toc = [], frontmatter } = page;
@@ -1554,18 +1544,17 @@ function DocLayout(props) {
1554
1544
  const { items: sidebarData } = useSidebarData();
1555
1545
  const langRoutePrefix = normalizeSlash(localesData.langRoutePrefix || "");
1556
1546
  var _frontmatter_hideNavbar, _ref;
1557
- 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;
1558
- const hasSidebar = ((_frontmatter1 = frontmatter) === null || _frontmatter1 === void 0 ? void 0 : _frontmatter1.sidebar) !== false && Object.keys(sidebar).length > 0;
1559
- const outlineTitle = ((_localesData = localesData) === null || _localesData === void 0 ? void 0 : _localesData.outlineTitle) || ((_themeConfig1 = themeConfig) === null || _themeConfig1 === void 0 ? void 0 : _themeConfig1.outlineTitle) || "ON THIS PAGE";
1547
+ const hideNavbar = (_ref = (_frontmatter_hideNavbar = frontmatter === null || frontmatter === void 0 ? void 0 : frontmatter.hideNavbar) !== null && _frontmatter_hideNavbar !== void 0 ? _frontmatter_hideNavbar : themeConfig === null || themeConfig === void 0 ? void 0 : themeConfig.hideNavbar) !== null && _ref !== void 0 ? _ref : false;
1548
+ const hasSidebar = (frontmatter === null || frontmatter === void 0 ? void 0 : frontmatter.sidebar) !== false && Object.keys(sidebar).length > 0;
1549
+ const outlineTitle = (localesData === null || localesData === void 0 ? void 0 : localesData.outlineTitle) || (themeConfig === null || themeConfig === void 0 ? void 0 : themeConfig.outlineTitle) || "ON THIS PAGE";
1560
1550
  var _frontmatter_overview;
1561
- const isOverviewPage = (_frontmatter_overview = (_frontmatter2 = frontmatter) === null || _frontmatter2 === void 0 ? void 0 : _frontmatter2.overview) !== null && _frontmatter_overview !== void 0 ? _frontmatter_overview : false;
1551
+ const isOverviewPage = (_frontmatter_overview = frontmatter === null || frontmatter === void 0 ? void 0 : frontmatter.overview) !== null && _frontmatter_overview !== void 0 ? _frontmatter_overview : false;
1562
1552
  var _frontmatter_footer;
1563
- const hasFooter = (_frontmatter_footer = (_frontmatter3 = frontmatter) === null || _frontmatter3 === void 0 ? void 0 : _frontmatter3.footer) !== null && _frontmatter_footer !== void 0 ? _frontmatter_footer : true;
1553
+ const hasFooter = (_frontmatter_footer = frontmatter === null || frontmatter === void 0 ? void 0 : frontmatter.footer) !== null && _frontmatter_footer !== void 0 ? _frontmatter_footer : true;
1564
1554
  const getHasAside = () => {
1565
- var _frontmatter4, _themeConfig2;
1566
1555
  const defaultHasAside = typeof window === "undefined" ? true : window.top === window.self;
1567
1556
  var _frontmatter_outline, _ref2;
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;
1557
+ return ((_ref2 = (_frontmatter_outline = frontmatter === null || frontmatter === void 0 ? void 0 : frontmatter.outline) !== null && _frontmatter_outline !== void 0 ? _frontmatter_outline : themeConfig === null || themeConfig === void 0 ? void 0 : themeConfig.outline) !== null && _ref2 !== void 0 ? _ref2 : defaultHasAside) && headers.length > 0;
1569
1558
  };
1570
1559
  const [hasAside, setHasAside] = useState4(getHasAside());
1571
1560
  useEffect7(() => {
@@ -1575,7 +1564,7 @@ function DocLayout(props) {
1575
1564
  siteData2
1576
1565
  ]);
1577
1566
  return /* @__PURE__ */ _jsxs8("div", {
1578
- className: `${index_module_default7.docLayout} pt-0`,
1567
+ className: `${index_module_default6.docLayout} pt-0`,
1579
1568
  style: _object_spread9({}, hideNavbar ? {
1580
1569
  marginTop: 0
1581
1570
  } : {}),
@@ -1587,24 +1576,27 @@ function DocLayout(props) {
1587
1576
  sidebarData
1588
1577
  }) : null,
1589
1578
  /* @__PURE__ */ _jsxs8("div", {
1590
- className: `${index_module_default7.content} rspress-doc-container flex flex-shrink-0`,
1579
+ className: `${index_module_default6.content} rspress-doc-container flex flex-shrink-0`,
1591
1580
  children: [
1592
1581
  /* @__PURE__ */ _jsx14("div", {
1593
1582
  className: "w-full",
1594
1583
  children: isOverviewPage ? /* @__PURE__ */ _jsx14(Overview, {}) : /* @__PURE__ */ _jsxs8("div", {
1595
- className: "rspress-doc",
1596
1584
  children: [
1597
- /* @__PURE__ */ _jsx14(TabDataContext.Provider, {
1598
- value: {
1599
- tabData,
1600
- setTabData
1601
- },
1602
- children: /* @__PURE__ */ _jsx14(MDXProvider, {
1603
- components: getCustomMDXComponent(),
1604
- children: /* @__PURE__ */ _jsx14(Content, {})
1585
+ /* @__PURE__ */ _jsx14("div", {
1586
+ className: "rspress-doc",
1587
+ children: /* @__PURE__ */ _jsx14(TabDataContext.Provider, {
1588
+ value: {
1589
+ tabData,
1590
+ setTabData
1591
+ },
1592
+ children: /* @__PURE__ */ _jsx14(MDXProvider, {
1593
+ components: getCustomMDXComponent(),
1594
+ children: /* @__PURE__ */ _jsx14(Content, {})
1595
+ })
1605
1596
  })
1606
1597
  }),
1607
1598
  /* @__PURE__ */ _jsxs8("div", {
1599
+ className: "rspress-doc-footer",
1608
1600
  children: [
1609
1601
  beforeDocFooter,
1610
1602
  hasFooter && /* @__PURE__ */ _jsx14(DocFooter, {})
@@ -1614,7 +1606,7 @@ function DocLayout(props) {
1614
1606
  })
1615
1607
  }),
1616
1608
  hasAside ? /* @__PURE__ */ _jsx14("div", {
1617
- className: index_module_default7.asideContainer,
1609
+ className: index_module_default6.asideContainer,
1618
1610
  style: _object_spread9({
1619
1611
  maxHeight: "calc(100vh - (var(--rp-nav-height) + 32px))",
1620
1612
  overflow: "scroll"
@@ -1658,20 +1650,19 @@ function _define_property10(obj, key, value) {
1658
1650
  function _object_spread10(target) {
1659
1651
  for (var i = 1; i < arguments.length; i++) {
1660
1652
  var source = arguments[i] != null ? arguments[i] : {};
1661
- var ownKeys32 = Object.keys(source);
1653
+ var ownKeys36 = Object.keys(source);
1662
1654
  if (typeof Object.getOwnPropertySymbols === "function") {
1663
- ownKeys32 = ownKeys32.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
1655
+ ownKeys36 = ownKeys36.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
1664
1656
  return Object.getOwnPropertyDescriptor(source, sym).enumerable;
1665
1657
  }));
1666
1658
  }
1667
- ownKeys32.forEach(function(key) {
1659
+ ownKeys36.forEach(function(key) {
1668
1660
  _define_property10(target, key, source[key]);
1669
1661
  });
1670
1662
  }
1671
1663
  return target;
1672
1664
  }
1673
1665
  var Layout = (props) => {
1674
- var _frontmatter, _themeConfig, _frontmatter1, _frontmatter2;
1675
1666
  const { top, bottom, beforeDocFooter, beforeDoc, afterDoc, beforeOutline, afterOutline, beforeNavTitle, afterNavTitle, beforeNav } = props;
1676
1667
  const docProps = {
1677
1668
  beforeDocFooter,
@@ -1692,9 +1683,9 @@ var Layout = (props) => {
1692
1683
  const localesData = useLocaleSiteData();
1693
1684
  const defaultLang = siteData2.lang || "";
1694
1685
  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);
1686
+ const hideNavbar = !((_frontmatter_navbar = frontmatter === null || frontmatter === void 0 ? void 0 : frontmatter.navbar) !== null && _frontmatter_navbar !== void 0 ? _frontmatter_navbar : true) || ((_themeConfig_hideNavbar = themeConfig === null || themeConfig === void 0 ? void 0 : themeConfig.hideNavbar) !== null && _themeConfig_hideNavbar !== void 0 ? _themeConfig_hideNavbar : false);
1696
1687
  var _ref;
1697
- let title = (_ref = (_frontmatter1 = frontmatter) === null || _frontmatter1 === void 0 ? void 0 : _frontmatter1.title) !== null && _ref !== void 0 ? _ref : articleTitle;
1688
+ let title = (_ref = frontmatter === null || frontmatter === void 0 ? void 0 : frontmatter.title) !== null && _ref !== void 0 ? _ref : articleTitle;
1698
1689
  const mainTitle = siteData2.title || localesData.title;
1699
1690
  const localeLanguages = Object.values(siteData2.themeConfig.locales || {});
1700
1691
  const langs = localeLanguages.map((item) => item.lang) || [];
@@ -1703,7 +1694,7 @@ var Layout = (props) => {
1703
1694
  } else {
1704
1695
  title = mainTitle;
1705
1696
  }
1706
- const description = ((_frontmatter2 = frontmatter) === null || _frontmatter2 === void 0 ? void 0 : _frontmatter2.description) || siteData2.description || localesData.description;
1697
+ const description = (frontmatter === null || frontmatter === void 0 ? void 0 : frontmatter.description) || siteData2.description || localesData.description;
1707
1698
  const getContentLayout = () => {
1708
1699
  switch (pageType) {
1709
1700
  case "home":
@@ -1800,7 +1791,7 @@ import { jsx as _jsx16, jsxs as _jsxs10 } from "react/jsx-runtime";
1800
1791
  import React6 from "react";
1801
1792
 
1802
1793
  // src/theme-default/components/Button/index.module.scss
1803
- var index_module_default8 = { "button": "button_c5dfc", "medium": "medium_c5dfc", "big": "big_c5dfc", "brand": "brand_c5dfc", "alt": "alt_c5dfc" };
1794
+ var index_module_default7 = { "button": "button_c5dfc", "medium": "medium_c5dfc", "big": "big_c5dfc", "brand": "brand_c5dfc", "alt": "alt_c5dfc" };
1804
1795
 
1805
1796
  // src/theme-default/components/Button/index.tsx
1806
1797
  function Button(props) {
@@ -1812,13 +1803,13 @@ function Button(props) {
1812
1803
  type = external ? "a" : Link;
1813
1804
  }
1814
1805
  return /* @__PURE__ */ React6.createElement(type !== null && type !== void 0 ? type : "a", {
1815
- className: `${index_module_default8.button} ${index_module_default8[theme]} ${index_module_default8[size]} ${className}`,
1806
+ className: `${index_module_default7.button} ${index_module_default7[theme]} ${index_module_default7[size]} ${className}`,
1816
1807
  href
1817
1808
  }, props.text);
1818
1809
  }
1819
1810
 
1820
1811
  // src/theme-default/components/HomeHero/index.module.scss
1821
- var index_module_default9 = { "clip": "clip_1e4a0", "mask": "mask_1e4a0" };
1812
+ var index_module_default8 = { "clip": "clip_1e4a0", "mask": "mask_1e4a0" };
1822
1813
 
1823
1814
  // src/theme-default/components/HomeHero/index.tsx
1824
1815
  import { normalizeHref as normalizeHref6 } from "@/runtime";
@@ -1830,14 +1821,14 @@ var DEFAULT_HERO = {
1830
1821
  image: void 0
1831
1822
  };
1832
1823
  function HomeHero({ frontmatter }) {
1833
- var _frontmatter, _hero_text, _hero_image, _hero_image1;
1834
- const hero = ((_frontmatter = frontmatter) === null || _frontmatter === void 0 ? void 0 : _frontmatter.hero) || DEFAULT_HERO;
1824
+ var _hero_text, _hero_image, _hero_image1;
1825
+ const hero = (frontmatter === null || frontmatter === void 0 ? void 0 : frontmatter.hero) || DEFAULT_HERO;
1835
1826
  const hasImage = hero.image !== void 0;
1836
1827
  return /* @__PURE__ */ _jsxs10("div", {
1837
1828
  className: "m-auto pt-0 px-6 pb-12 sm:pt-10 sm:px-16 md:pt-16 md:px-16 md:pb-16",
1838
1829
  children: [
1839
1830
  /* @__PURE__ */ _jsx16("div", {
1840
- className: index_module_default9.mask,
1831
+ className: index_module_default8.mask,
1841
1832
  style: {
1842
1833
  left: hasImage ? "75%" : "50%"
1843
1834
  }
@@ -1851,7 +1842,7 @@ function HomeHero({ frontmatter }) {
1851
1842
  /* @__PURE__ */ _jsx16("h1", {
1852
1843
  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
1844
  children: /* @__PURE__ */ _jsx16("span", {
1854
- className: index_module_default9.clip,
1845
+ className: index_module_default8.clip,
1855
1846
  style: {
1856
1847
  lineHeight: "1.3"
1857
1848
  },
@@ -1900,7 +1891,7 @@ function HomeHero({ frontmatter }) {
1900
1891
  import { jsx as _jsx17, jsxs as _jsxs11 } from "react/jsx-runtime";
1901
1892
 
1902
1893
  // src/theme-default/components/HomeFeatures/index.module.scss
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" };
1894
+ var index_module_default9 = { "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" };
1904
1895
 
1905
1896
  // src/theme-default/components/HomeFeatures/index.tsx
1906
1897
  var PRESET_COUNT = [
@@ -1921,19 +1912,18 @@ var getGridClass = (count) => {
1921
1912
  return "";
1922
1913
  };
1923
1914
  function HomeFeature({ frontmatter }) {
1924
- var _frontmatter, _features, _features1;
1925
- const features = (_frontmatter = frontmatter) === null || _frontmatter === void 0 ? void 0 : _frontmatter.features;
1926
- const gridClass = getGridClass((_features = features) === null || _features === void 0 ? void 0 : _features.length);
1915
+ const features = frontmatter === null || frontmatter === void 0 ? void 0 : frontmatter.features;
1916
+ const gridClass = getGridClass(features === null || features === void 0 ? void 0 : features.length);
1927
1917
  return /* @__PURE__ */ _jsx17("div", {
1928
1918
  className: "overflow-hidden m-auto flex flex-wrap justify-between max-w-6xl",
1929
- children: (_features1 = features) === null || _features1 === void 0 ? void 0 : _features1.map((feature) => {
1919
+ children: features === null || features === void 0 ? void 0 : features.map((feature) => {
1930
1920
  const { icon, title, details, link } = feature;
1931
1921
  return /* @__PURE__ */ _jsx17("div", {
1932
- className: `${gridClass ? index_module_default10[gridClass] : "w-full"} rounded hover:var(--rp-c-brand)`,
1922
+ className: `${gridClass ? index_module_default9[gridClass] : "w-full"} rounded hover:var(--rp-c-brand)`,
1933
1923
  children: /* @__PURE__ */ _jsx17("div", {
1934
1924
  className: "h-full p-2",
1935
1925
  children: /* @__PURE__ */ _jsxs11("article", {
1936
- className: `${index_module_default10.featureCard} h-full p-8 rounded-4xl border-transparent`,
1926
+ className: `${index_module_default9.featureCard} h-full p-8 rounded-4xl border-transparent`,
1937
1927
  style: {
1938
1928
  cursor: link ? "pointer" : "auto"
1939
1929
  },
@@ -2037,13 +2027,13 @@ function _define_property11(obj, key, value) {
2037
2027
  function _object_spread11(target) {
2038
2028
  for (var i = 1; i < arguments.length; i++) {
2039
2029
  var source = arguments[i] != null ? arguments[i] : {};
2040
- var ownKeys32 = Object.keys(source);
2030
+ var ownKeys36 = Object.keys(source);
2041
2031
  if (typeof Object.getOwnPropertySymbols === "function") {
2042
- ownKeys32 = ownKeys32.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
2032
+ ownKeys36 = ownKeys36.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
2043
2033
  return Object.getOwnPropertyDescriptor(source, sym).enumerable;
2044
2034
  }));
2045
2035
  }
2046
- ownKeys32.forEach(function(key) {
2036
+ ownKeys36.forEach(function(key) {
2047
2037
  _define_property11(target, key, source[key]);
2048
2038
  });
2049
2039
  }
@@ -2086,7 +2076,7 @@ var SvgDown = (props) => /* @__PURE__ */ _jsx19("svg", _object_spread_props6(_ob
2086
2076
  var down_default = SvgDown;
2087
2077
 
2088
2078
  // src/theme-default/components/NavScreenMenuGroup/index.module.scss
2089
- var index_module_default11 = { "navScreenMenuGroup": "navScreenMenuGroup_de8a5", "open": "open_de8a5", "button": "button_de8a5", "buttonSpan": "buttonSpan_de8a5", "items": "items_de8a5", "down": "down_de8a5" };
2079
+ var index_module_default10 = { "navScreenMenuGroup": "navScreenMenuGroup_de8a5", "open": "open_de8a5", "button": "button_de8a5", "buttonSpan": "buttonSpan_de8a5", "items": "items_de8a5", "down": "down_de8a5" };
2090
2080
 
2091
2081
  // src/theme-default/components/NavScreenMenuGroup/NavScreenMenuGroup.tsx
2092
2082
  function NavScreenMenuGroup(item) {
@@ -2139,26 +2129,26 @@ function NavScreenMenuGroup(item) {
2139
2129
  });
2140
2130
  };
2141
2131
  return /* @__PURE__ */ _jsxs13("div", {
2142
- className: `${isOpen ? index_module_default11.open : ""} ${index_module_default11.navScreenMenuGroup} relative`,
2132
+ className: `${isOpen ? index_module_default10.open : ""} ${index_module_default10.navScreenMenuGroup} relative`,
2143
2133
  children: [
2144
2134
  /* @__PURE__ */ _jsxs13("button", {
2145
- className: index_module_default11.button,
2135
+ className: index_module_default10.button,
2146
2136
  onClick: () => {
2147
2137
  setIsOpen(!isOpen);
2148
2138
  },
2149
2139
  children: [
2150
2140
  /* @__PURE__ */ _jsx20("span", {
2151
- className: index_module_default11.buttonSpan,
2141
+ className: index_module_default10.buttonSpan,
2152
2142
  children: item.text
2153
2143
  }),
2154
2144
  /* @__PURE__ */ _jsx20(down_default, {
2155
- className: `${isOpen ? index_module_default11.open : ""} ${index_module_default11.down} `
2145
+ className: `${isOpen ? index_module_default10.open : ""} ${index_module_default10.down} `
2156
2146
  })
2157
2147
  ]
2158
2148
  }),
2159
2149
  /* @__PURE__ */ _jsx20("div", {
2160
2150
  children: /* @__PURE__ */ _jsx20("div", {
2161
- className: index_module_default11.items,
2151
+ className: index_module_default10.items,
2162
2152
  children: item.items.map((item2) => {
2163
2153
  return /* @__PURE__ */ _jsx20("div", {
2164
2154
  children: "items" in item2 ? renderGroup(item2) : renderLinkItem(item2)
@@ -2175,7 +2165,7 @@ import { jsx as _jsx21, jsxs as _jsxs14 } from "react/jsx-runtime";
2175
2165
  import { withoutBase } from "@rspress/shared";
2176
2166
 
2177
2167
  // src/theme-default/components/Nav/index.module.scss
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" };
2168
+ var index_module_default11 = { "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" };
2179
2169
 
2180
2170
  // src/theme-default/components/Nav/NavMenuSingleItem.tsx
2181
2171
  import { normalizeHref as normalizeHref7 } from "@/runtime";
@@ -2185,7 +2175,7 @@ function NavMenuSingleItem(item) {
2185
2175
  return /* @__PURE__ */ _jsx21(Link, {
2186
2176
  href: normalizeHref7(item.link),
2187
2177
  children: /* @__PURE__ */ _jsxs14("div", {
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`,
2178
+ className: `${index_module_default11.singleItem} ${isActive2 ? index_module_default11.activeItem : ""} text-sm font-medium mx-1.5 px-3 py-2 flex items-center`,
2189
2179
  children: [
2190
2180
  /* @__PURE__ */ _jsx21(Tag, {
2191
2181
  tag: item.tag
@@ -2220,13 +2210,13 @@ function _define_property12(obj, key, value) {
2220
2210
  function _object_spread12(target) {
2221
2211
  for (var i = 1; i < arguments.length; i++) {
2222
2212
  var source = arguments[i] != null ? arguments[i] : {};
2223
- var ownKeys32 = Object.keys(source);
2213
+ var ownKeys36 = Object.keys(source);
2224
2214
  if (typeof Object.getOwnPropertySymbols === "function") {
2225
- ownKeys32 = ownKeys32.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
2215
+ ownKeys36 = ownKeys36.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
2226
2216
  return Object.getOwnPropertyDescriptor(source, sym).enumerable;
2227
2217
  }));
2228
2218
  }
2229
- ownKeys32.forEach(function(key) {
2219
+ ownKeys36.forEach(function(key) {
2230
2220
  _define_property12(target, key, source[key]);
2231
2221
  });
2232
2222
  }
@@ -2286,13 +2276,13 @@ function _define_property13(obj, key, value) {
2286
2276
  function _object_spread13(target) {
2287
2277
  for (var i = 1; i < arguments.length; i++) {
2288
2278
  var source = arguments[i] != null ? arguments[i] : {};
2289
- var ownKeys32 = Object.keys(source);
2279
+ var ownKeys36 = Object.keys(source);
2290
2280
  if (typeof Object.getOwnPropertySymbols === "function") {
2291
- ownKeys32 = ownKeys32.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
2281
+ ownKeys36 = ownKeys36.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
2292
2282
  return Object.getOwnPropertyDescriptor(source, sym).enumerable;
2293
2283
  }));
2294
2284
  }
2295
- ownKeys32.forEach(function(key) {
2285
+ ownKeys36.forEach(function(key) {
2296
2286
  _define_property13(target, key, source[key]);
2297
2287
  });
2298
2288
  }
@@ -2340,13 +2330,11 @@ var classList;
2340
2330
  var userPreference;
2341
2331
  var query;
2342
2332
  var setClass = (dark) => {
2343
- var _classList;
2344
- (_classList = classList) === null || _classList === void 0 ? void 0 : _classList[dark ? "add" : "remove"]("dark");
2333
+ classList === null || classList === void 0 ? void 0 : classList[dark ? "add" : "remove"]("dark");
2345
2334
  };
2346
2335
  var updateAppearance = () => {
2347
2336
  const disableDarkMode = siteData.themeConfig.darkMode === false;
2348
2337
  if (disableDarkMode) {
2349
- setClass(false);
2350
2338
  return;
2351
2339
  }
2352
2340
  if (window.MODERN_THEME) {
@@ -2361,10 +2349,7 @@ if (typeof window !== "undefined" && typeof localStorage !== "undefined") {
2361
2349
  classList = document.documentElement.classList;
2362
2350
  updateAppearance();
2363
2351
  }
2364
- var isDarkMode = () => {
2365
- var _classList;
2366
- return (_classList = classList) === null || _classList === void 0 ? void 0 : _classList.contains("dark");
2367
- };
2352
+ var isDarkMode = () => classList === null || classList === void 0 ? void 0 : classList.contains("dark");
2368
2353
  var getToggle = () => {
2369
2354
  if (typeof window !== "undefined") {
2370
2355
  window.addEventListener("storage", updateAppearance);
@@ -2391,10 +2376,9 @@ function SwitchAppearance({ onClick }) {
2391
2376
  }, []);
2392
2377
  return /* @__PURE__ */ _jsx24("div", {
2393
2378
  onClick: () => {
2394
- var _onClick;
2395
2379
  setTheme(theme === "dark" ? "light" : "dark");
2396
2380
  toggleAppearance();
2397
- (_onClick = onClick) === null || _onClick === void 0 ? void 0 : _onClick();
2381
+ onClick === null || onClick === void 0 ? void 0 : onClick();
2398
2382
  },
2399
2383
  className: "md:mr-2 rspress-nav-appearance",
2400
2384
  children: /* @__PURE__ */ _jsx24("div", {
@@ -2431,13 +2415,13 @@ function _define_property14(obj, key, value) {
2431
2415
  function _object_spread14(target) {
2432
2416
  for (var i = 1; i < arguments.length; i++) {
2433
2417
  var source = arguments[i] != null ? arguments[i] : {};
2434
- var ownKeys32 = Object.keys(source);
2418
+ var ownKeys36 = Object.keys(source);
2435
2419
  if (typeof Object.getOwnPropertySymbols === "function") {
2436
- ownKeys32 = ownKeys32.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
2420
+ ownKeys36 = ownKeys36.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
2437
2421
  return Object.getOwnPropertyDescriptor(source, sym).enumerable;
2438
2422
  }));
2439
2423
  }
2440
- ownKeys32.forEach(function(key) {
2424
+ ownKeys36.forEach(function(key) {
2441
2425
  _define_property14(target, key, source[key]);
2442
2426
  });
2443
2427
  }
@@ -2505,13 +2489,13 @@ function _define_property15(obj, key, value) {
2505
2489
  function _object_spread15(target) {
2506
2490
  for (var i = 1; i < arguments.length; i++) {
2507
2491
  var source = arguments[i] != null ? arguments[i] : {};
2508
- var ownKeys32 = Object.keys(source);
2492
+ var ownKeys36 = Object.keys(source);
2509
2493
  if (typeof Object.getOwnPropertySymbols === "function") {
2510
- ownKeys32 = ownKeys32.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
2494
+ ownKeys36 = ownKeys36.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
2511
2495
  return Object.getOwnPropertyDescriptor(source, sym).enumerable;
2512
2496
  }));
2513
2497
  }
2514
- ownKeys32.forEach(function(key) {
2498
+ ownKeys36.forEach(function(key) {
2515
2499
  _define_property15(target, key, source[key]);
2516
2500
  });
2517
2501
  }
@@ -2558,7 +2542,7 @@ import { jsx as _jsx28, jsxs as _jsxs16 } from "react/jsx-runtime";
2558
2542
  import { useState as useState6 } from "react";
2559
2543
 
2560
2544
  // src/theme-default/components/SocialLinks/index.module.scss
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" };
2545
+ var index_module_default12 = { "social-links-icon": "social-links-icon_8cbd0", "socialLinksIcon": "social-links-icon_8cbd0", "menu-item": "menu-item_8cbd0", "menuItem": "menu-item_8cbd0" };
2562
2546
 
2563
2547
  // src/theme-default/components/SocialLinks/presetIcons.tsx
2564
2548
  import { jsx as _jsx27, jsxs as _jsxs15 } from "react/jsx-runtime";
@@ -2795,13 +2779,13 @@ function _define_property16(obj, key, value) {
2795
2779
  function _object_spread16(target) {
2796
2780
  for (var i = 1; i < arguments.length; i++) {
2797
2781
  var source = arguments[i] != null ? arguments[i] : {};
2798
- var ownKeys32 = Object.keys(source);
2782
+ var ownKeys36 = Object.keys(source);
2799
2783
  if (typeof Object.getOwnPropertySymbols === "function") {
2800
- ownKeys32 = ownKeys32.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
2784
+ ownKeys36 = ownKeys36.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
2801
2785
  return Object.getOwnPropertyDescriptor(source, sym).enumerable;
2802
2786
  }));
2803
2787
  }
2804
- ownKeys32.forEach(function(key) {
2788
+ ownKeys36.forEach(function(key) {
2805
2789
  _define_property16(target, key, source[key]);
2806
2790
  });
2807
2791
  }
@@ -2832,14 +2816,14 @@ var LinkContent = (props) => {
2832
2816
  rel: "noopener noreferrer",
2833
2817
  className: "social-links",
2834
2818
  children: /* @__PURE__ */ _jsx28("div", {
2835
- className: `${index_module_default13.socialLinksIcon}`,
2819
+ className: `${index_module_default12.socialLinksIcon}`,
2836
2820
  children: IconComp
2837
2821
  })
2838
2822
  }, content);
2839
2823
  }
2840
2824
  if (mode === "text") {
2841
2825
  return /* @__PURE__ */ _jsxs16("div", {
2842
- className: `${index_module_default13.socialLinksIcon} cursor-pointer relative mx-3`,
2826
+ className: `${index_module_default12.socialLinksIcon} cursor-pointer relative mx-3`,
2843
2827
  onMouseEnter: mouseEnterIcon,
2844
2828
  onMouseLeave: mouseLeavePopper,
2845
2829
  children: [
@@ -2860,7 +2844,7 @@ var LinkContent = (props) => {
2860
2844
  }
2861
2845
  if (mode === "img") {
2862
2846
  return /* @__PURE__ */ _jsxs16("div", {
2863
- className: `${index_module_default13.socialLinksIcon} cursor-pointer relative`,
2847
+ className: `${index_module_default12.socialLinksIcon} cursor-pointer relative`,
2864
2848
  onMouseEnter: mouseEnterIcon,
2865
2849
  onMouseLeave: mouseLeavePopper,
2866
2850
  children: [
@@ -2938,7 +2922,7 @@ var SocialLinks = ({ socialLinks }) => {
2938
2922
  });
2939
2923
  const [moreLinksVisible, setMoreLinksVisible] = useState7(false);
2940
2924
  return /* @__PURE__ */ _jsxs18("div", {
2941
- className: `social-links ${index_module_default13.menuItem} flex-center relative`,
2925
+ className: `social-links ${index_module_default12.menuItem} flex-center relative`,
2942
2926
  onMouseLeave: () => setMoreLinksVisible(false),
2943
2927
  children: [
2944
2928
  /* @__PURE__ */ _jsx31(ShownLinks, {
@@ -2954,7 +2938,7 @@ var SocialLinks = ({ socialLinks }) => {
2954
2938
  };
2955
2939
 
2956
2940
  // src/theme-default/components/NavScreen/index.module.scss
2957
- var index_module_default14 = { "navScreen": "navScreen_8624f", "active": "active_8624f", "container": "container_8624f", "navMenu": "navMenu_8624f", "navMenuItem": "navMenuItem_8624f", "navAppearance": "navAppearance_8624f", "socialAndAppearance": "socialAndAppearance_8624f" };
2941
+ var index_module_default13 = { "navScreen": "navScreen_8624f", "active": "active_8624f", "container": "container_8624f", "navMenu": "navMenu_8624f", "navMenuItem": "navMenuItem_8624f", "navAppearance": "navAppearance_8624f", "socialAndAppearance": "socialAndAppearance_8624f" };
2958
2942
 
2959
2943
  // src/theme-default/components/NavScreen/index.tsx
2960
2944
  import { NoSSR, ThemeContext as ThemeContext2 } from "@/runtime";
@@ -2974,13 +2958,13 @@ function _define_property17(obj, key, value) {
2974
2958
  function _object_spread17(target) {
2975
2959
  for (var i = 1; i < arguments.length; i++) {
2976
2960
  var source = arguments[i] != null ? arguments[i] : {};
2977
- var ownKeys32 = Object.keys(source);
2961
+ var ownKeys36 = Object.keys(source);
2978
2962
  if (typeof Object.getOwnPropertySymbols === "function") {
2979
- ownKeys32 = ownKeys32.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
2963
+ ownKeys36 = ownKeys36.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
2980
2964
  return Object.getOwnPropertyDescriptor(source, sym).enumerable;
2981
2965
  }));
2982
2966
  }
2983
- ownKeys32.forEach(function(key) {
2967
+ ownKeys36.forEach(function(key) {
2984
2968
  _define_property17(target, key, source[key]);
2985
2969
  });
2986
2970
  }
@@ -3012,7 +2996,7 @@ function _object_spread_props11(target, source) {
3012
2996
  }
3013
2997
  var NavScreenTranslations = ({ translationMenuData }) => {
3014
2998
  return /* @__PURE__ */ _jsx32("div", {
3015
- className: `${index_module_default14.navTranslations} flex text-sm font-bold justify-center`,
2999
+ className: `${index_module_default13.navTranslations} flex text-sm font-bold justify-center`,
3016
3000
  children: /* @__PURE__ */ _jsx32("div", {
3017
3001
  className: "mx-1.5 my-1",
3018
3002
  children: /* @__PURE__ */ _jsx32(NavScreenMenuGroup, _object_spread17({}, translationMenuData))
@@ -3020,7 +3004,7 @@ var NavScreenTranslations = ({ translationMenuData }) => {
3020
3004
  });
3021
3005
  };
3022
3006
  function NavScreen(props) {
3023
- var _siteData_themeConfig, _siteData, _localesData_find;
3007
+ var _siteData_themeConfig, _localesData_find;
3024
3008
  const { isScreenOpen, localeData, siteData: siteData2, pathname, setLogo } = props;
3025
3009
  const screen = useRef4(null);
3026
3010
  const { theme } = useContext2(ThemeContext2);
@@ -3028,7 +3012,7 @@ function NavScreen(props) {
3028
3012
  const hasMultiLanguage = localesData.length > 1;
3029
3013
  const menuItems = localeData.nav || [];
3030
3014
  const hasAppearanceSwitch = siteData2.themeConfig.darkMode !== false;
3031
- const socialLinks = ((_siteData = siteData2) === null || _siteData === void 0 ? void 0 : (_siteData_themeConfig = _siteData.themeConfig) === null || _siteData_themeConfig === void 0 ? void 0 : _siteData_themeConfig.socialLinks) || [];
3015
+ const socialLinks = (siteData2 === null || siteData2 === void 0 ? void 0 : (_siteData_themeConfig = siteData2.themeConfig) === null || _siteData_themeConfig === void 0 ? void 0 : _siteData_themeConfig.socialLinks) || [];
3032
3016
  const hasSocialLinks = socialLinks.length > 0;
3033
3017
  const langs = localesData.map((item) => item.lang || "zh") || [];
3034
3018
  const { base, logo } = siteData2;
@@ -3039,18 +3023,15 @@ function NavScreen(props) {
3039
3023
  height: "18px"
3040
3024
  }
3041
3025
  }),
3042
- items: localesData.map((item) => {
3043
- var _item;
3044
- return {
3045
- text: (_item = item) === null || _item === void 0 ? void 0 : _item.label,
3046
- link: `/${item.lang}`
3047
- };
3048
- }),
3026
+ items: localesData.map((item) => ({
3027
+ text: item === null || item === void 0 ? void 0 : item.label,
3028
+ link: `/${item.lang}`
3029
+ })),
3049
3030
  activeValue: (_localesData_find = localesData.find((item) => item.lang === localeData.lang)) === null || _localesData_find === void 0 ? void 0 : _localesData_find.label
3050
3031
  } : null;
3051
3032
  const NavScreenAppearance = () => {
3052
3033
  return /* @__PURE__ */ _jsx32("div", {
3053
- className: `mt-2 ${index_module_default14.navAppearance} flex justify-center`,
3034
+ className: `mt-2 ${index_module_default13.navAppearance} flex justify-center`,
3054
3035
  children: /* @__PURE__ */ _jsx32(NoSSR, {
3055
3036
  children: /* @__PURE__ */ _jsx32(SwitchAppearance, {
3056
3037
  onClick: () => {
@@ -3062,10 +3043,10 @@ function NavScreen(props) {
3062
3043
  };
3063
3044
  const NavScreenMenu = ({ menuItems: menuItems2 }) => {
3064
3045
  return /* @__PURE__ */ _jsx32("div", {
3065
- className: index_module_default14.navMenu,
3046
+ className: index_module_default13.navMenu,
3066
3047
  children: menuItems2.map((item, index) => {
3067
3048
  return /* @__PURE__ */ _jsx32("div", {
3068
- className: `${index_module_default14.navMenuItem} w-full`,
3049
+ className: `${index_module_default13.navMenuItem} w-full`,
3069
3050
  children: "link" in item ? /* @__PURE__ */ _jsx32(NavMenuSingleItem, _object_spread17({
3070
3051
  pathname,
3071
3052
  base,
@@ -3091,11 +3072,11 @@ function NavScreen(props) {
3091
3072
  isScreenOpen
3092
3073
  ]);
3093
3074
  return /* @__PURE__ */ _jsx32("div", {
3094
- className: `${index_module_default14.navScreen} ${isScreenOpen ? index_module_default14.active : ""}`,
3075
+ className: `${index_module_default13.navScreen} ${isScreenOpen ? index_module_default13.active : ""}`,
3095
3076
  ref: screen,
3096
3077
  id: "navScreen",
3097
3078
  children: /* @__PURE__ */ _jsxs19("div", {
3098
- className: index_module_default14.container,
3079
+ className: index_module_default13.container,
3099
3080
  children: [
3100
3081
  /* @__PURE__ */ _jsx32(NavScreenMenu, {
3101
3082
  menuItems
@@ -3166,13 +3147,13 @@ function _define_property18(obj, key, value) {
3166
3147
  function _object_spread18(target) {
3167
3148
  for (var i = 1; i < arguments.length; i++) {
3168
3149
  var source = arguments[i] != null ? arguments[i] : {};
3169
- var ownKeys32 = Object.keys(source);
3150
+ var ownKeys36 = Object.keys(source);
3170
3151
  if (typeof Object.getOwnPropertySymbols === "function") {
3171
- ownKeys32 = ownKeys32.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
3152
+ ownKeys36 = ownKeys36.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
3172
3153
  return Object.getOwnPropertyDescriptor(source, sym).enumerable;
3173
3154
  }));
3174
3155
  }
3175
- ownKeys32.forEach(function(key) {
3156
+ ownKeys36.forEach(function(key) {
3176
3157
  _define_property18(target, key, source[key]);
3177
3158
  });
3178
3159
  }
@@ -3231,7 +3212,7 @@ var SvgSmallMenu = (props) => /* @__PURE__ */ _jsxs20("svg", _object_spread_prop
3231
3212
  var small_menu_default = SvgSmallMenu;
3232
3213
 
3233
3214
  // src/theme-default/components/NavHambmger/index.module.scss
3234
- var index_module_default15 = { "navHamburger": "navHamburger_2498a", "container": "container_2498a", "top": "top_2498a", "middle": "middle_2498a", "bottom": "bottom_2498a", "active": "active_2498a" };
3215
+ var index_module_default14 = { "navHamburger": "navHamburger_2498a", "container": "container_2498a", "top": "top_2498a", "middle": "middle_2498a", "bottom": "bottom_2498a", "active": "active_2498a" };
3235
3216
 
3236
3217
  // src/theme-default/components/NavHambmger/index.tsx
3237
3218
  function NavHamburger(props) {
@@ -3248,7 +3229,7 @@ function NavHamburger(props) {
3248
3229
  }),
3249
3230
  /* @__PURE__ */ _jsx34("button", {
3250
3231
  onClick: toggleScreen,
3251
- className: `${isScreenOpen ? index_module_default15.active : ""} ${index_module_default15.navHamburger} text-gray-500`,
3232
+ className: `${isScreenOpen ? index_module_default14.active : ""} ${index_module_default14.navHamburger} text-gray-500`,
3252
3233
  children: /* @__PURE__ */ _jsx34(small_menu_default, {
3253
3234
  fill: "currentColor"
3254
3235
  })
@@ -3277,13 +3258,13 @@ function _define_property19(obj, key, value) {
3277
3258
  function _object_spread19(target) {
3278
3259
  for (var i = 1; i < arguments.length; i++) {
3279
3260
  var source = arguments[i] != null ? arguments[i] : {};
3280
- var ownKeys32 = Object.keys(source);
3261
+ var ownKeys36 = Object.keys(source);
3281
3262
  if (typeof Object.getOwnPropertySymbols === "function") {
3282
- ownKeys32 = ownKeys32.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
3263
+ ownKeys36 = ownKeys36.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
3283
3264
  return Object.getOwnPropertyDescriptor(source, sym).enumerable;
3284
3265
  }));
3285
3266
  }
3286
- ownKeys32.forEach(function(key) {
3267
+ ownKeys36.forEach(function(key) {
3287
3268
  _define_property19(target, key, source[key]);
3288
3269
  });
3289
3270
  }
@@ -3461,13 +3442,13 @@ function _define_property20(obj, key, value) {
3461
3442
  function _object_spread20(target) {
3462
3443
  for (var i = 1; i < arguments.length; i++) {
3463
3444
  var source = arguments[i] != null ? arguments[i] : {};
3464
- var ownKeys32 = Object.keys(source);
3445
+ var ownKeys36 = Object.keys(source);
3465
3446
  if (typeof Object.getOwnPropertySymbols === "function") {
3466
- ownKeys32 = ownKeys32.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
3447
+ ownKeys36 = ownKeys36.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
3467
3448
  return Object.getOwnPropertyDescriptor(source, sym).enumerable;
3468
3449
  }));
3469
3450
  }
3470
- ownKeys32.forEach(function(key) {
3451
+ ownKeys36.forEach(function(key) {
3471
3452
  _define_property20(target, key, source[key]);
3472
3453
  });
3473
3454
  }
@@ -3500,7 +3481,7 @@ function _object_spread_props14(target, source) {
3500
3481
  var DEFAULT_NAV_POSTION = "right";
3501
3482
  var NavBarTitle = ({ title, langRoutePrefix, logo }) => {
3502
3483
  return /* @__PURE__ */ _jsx36("div", {
3503
- className: `${index_module_default12.navBarTitle}`,
3484
+ className: `${index_module_default11.navBarTitle}`,
3504
3485
  children: /* @__PURE__ */ _jsx36("a", {
3505
3486
  href: withBase7(langRoutePrefix),
3506
3487
  className: "flex items-center w-full h-full text-base font-semibold transition-opacity duration-300 hover:opacity-60",
@@ -3517,7 +3498,7 @@ var NavBarTitle = ({ title, langRoutePrefix, logo }) => {
3517
3498
  };
3518
3499
  var NavTranslations = ({ translationMenuData }) => {
3519
3500
  return /* @__PURE__ */ _jsx36("div", {
3520
- className: `translation ${index_module_default12.menuItem} flex text-sm font-bold items-center px-3 py-2`,
3501
+ className: `translation ${index_module_default11.menuItem} flex text-sm font-bold items-center px-3 py-2`,
3521
3502
  children: /* @__PURE__ */ _jsx36("div", {
3522
3503
  children: /* @__PURE__ */ _jsx36(NavMenuGroup, _object_spread_props14(_object_spread20({}, translationMenuData), {
3523
3504
  isTranslation: true
@@ -3526,7 +3507,7 @@ var NavTranslations = ({ translationMenuData }) => {
3526
3507
  });
3527
3508
  };
3528
3509
  function Nav2(props) {
3529
- var _localeLanguages_find, _siteData_themeConfig, _siteData;
3510
+ var _localeLanguages_find, _siteData_themeConfig;
3530
3511
  const { beforeNavTitle, afterNavTitle, beforeNav } = props;
3531
3512
  const { siteData: siteData2, page } = usePageData10();
3532
3513
  const { logo: rawLogo, base } = siteData2;
@@ -3543,13 +3524,10 @@ function Nav2(props) {
3543
3524
  const langs = localeLanguages.map((item) => item.lang || "zh") || [];
3544
3525
  const [logo, setLogo] = useState10(getLogoUrl(rawLogo, theme));
3545
3526
  const translationMenuData = hasMultiLanguage ? {
3546
- items: localeLanguages.map((item) => {
3547
- var _item;
3548
- return {
3549
- text: (_item = item) === null || _item === void 0 ? void 0 : _item.label,
3550
- link: replaceLang(pathname, item.lang, defaultLang, langs, base)
3551
- };
3552
- }),
3527
+ items: localeLanguages.map((item) => ({
3528
+ text: item === null || item === void 0 ? void 0 : item.label,
3529
+ link: replaceLang(pathname, item.lang, defaultLang, langs, base)
3530
+ })),
3553
3531
  activeValue: (_localeLanguages_find = localeLanguages.find((item) => lang === item.lang)) === null || _localeLanguages_find === void 0 ? void 0 : _localeLanguages_find.label
3554
3532
  } : null;
3555
3533
  useEffect11(() => {
@@ -3585,13 +3563,13 @@ function Nav2(props) {
3585
3563
  const getPosition = (menuItem) => (_menuItem_position = menuItem.position) !== null && _menuItem_position !== void 0 ? _menuItem_position : DEFAULT_NAV_POSTION;
3586
3564
  const leftMenuItems = menuItems.filter((item) => getPosition(item) === "left");
3587
3565
  const rightMenuItems = menuItems.filter((item) => getPosition(item) === "right");
3588
- const hasSearch = ((_siteData = siteData2) === null || _siteData === void 0 ? void 0 : (_siteData_themeConfig = _siteData.themeConfig) === null || _siteData_themeConfig === void 0 ? void 0 : _siteData_themeConfig.search) !== false;
3566
+ const hasSearch = (siteData2 === null || siteData2 === void 0 ? void 0 : (_siteData_themeConfig = siteData2.themeConfig) === null || _siteData_themeConfig === void 0 ? void 0 : _siteData_themeConfig.search) !== false;
3589
3567
  var _localeData_title;
3590
3568
  const title = (_localeData_title = localeData.title) !== null && _localeData_title !== void 0 ? _localeData_title : siteData2.title;
3591
3569
  const hasAppearanceSwitch = siteData2.themeConfig.darkMode !== false;
3592
3570
  const leftNav = () => {
3593
3571
  return leftMenuItems.length > 0 ? /* @__PURE__ */ _jsx36("div", {
3594
- className: index_module_default12.leftNav,
3572
+ className: index_module_default11.leftNav,
3595
3573
  children: /* @__PURE__ */ _jsx36(NavMenu, {
3596
3574
  menuItems: leftMenuItems
3597
3575
  })
@@ -3599,7 +3577,7 @@ function Nav2(props) {
3599
3577
  };
3600
3578
  const rightNav = () => {
3601
3579
  return /* @__PURE__ */ _jsxs23("div", {
3602
- className: index_module_default12.rightNav,
3580
+ className: index_module_default11.rightNav,
3603
3581
  children: [
3604
3582
  hasSearch && /* @__PURE__ */ _jsx36("div", {
3605
3583
  className: "flex sm:flex-1 items-center sm:pl-4 sm:pr-2",
@@ -3635,9 +3613,9 @@ function Nav2(props) {
3635
3613
  children: [
3636
3614
  beforeNav,
3637
3615
  /* @__PURE__ */ _jsx36("div", {
3638
- className: `${index_module_default12.navContainer} rspress-nav px-6`,
3616
+ className: `${index_module_default11.navContainer} rspress-nav px-6`,
3639
3617
  children: /* @__PURE__ */ _jsxs23("div", {
3640
- className: `${index_module_default12.container} flex justify-between items-center h-full`,
3618
+ className: `${index_module_default11.container} flex justify-between items-center h-full`,
3641
3619
  children: [
3642
3620
  beforeNavTitle,
3643
3621
  /* @__PURE__ */ _jsx36(NavBarTitle, {
@@ -3647,12 +3625,12 @@ function Nav2(props) {
3647
3625
  }),
3648
3626
  afterNavTitle,
3649
3627
  /* @__PURE__ */ _jsxs23("div", {
3650
- className: `${index_module_default12.content} flex flex-1 justify-end items-center`,
3628
+ className: `${index_module_default11.content} flex flex-1 justify-end items-center`,
3651
3629
  children: [
3652
3630
  leftNav(),
3653
3631
  rightNav(),
3654
3632
  /* @__PURE__ */ _jsxs23("div", {
3655
- className: index_module_default12.mobileNavMenu,
3633
+ className: index_module_default11.mobileNavMenu,
3656
3634
  children: [
3657
3635
  isMobile && /* @__PURE__ */ _jsx36(Search, {}),
3658
3636
  /* @__PURE__ */ _jsx36(NavHamburger, {
@@ -3673,23 +3651,96 @@ function Nav2(props) {
3673
3651
  }
3674
3652
 
3675
3653
  // src/theme-default/components/Search/index.tsx
3654
+ import { jsx as _jsx49, jsxs as _jsxs31, Fragment as _Fragment6 } from "react/jsx-runtime";
3655
+ import { useState as useState13 } from "react";
3656
+
3657
+ // src/theme-default/components/Search/assets/search.svg
3658
+ import { jsx as _jsx37 } from "react/jsx-runtime";
3659
+ import * as React13 from "react";
3660
+ function _define_property21(obj, key, value) {
3661
+ if (key in obj) {
3662
+ Object.defineProperty(obj, key, {
3663
+ value,
3664
+ enumerable: true,
3665
+ configurable: true,
3666
+ writable: true
3667
+ });
3668
+ } else {
3669
+ obj[key] = value;
3670
+ }
3671
+ return obj;
3672
+ }
3673
+ function _object_spread21(target) {
3674
+ for (var i = 1; i < arguments.length; i++) {
3675
+ var source = arguments[i] != null ? arguments[i] : {};
3676
+ var ownKeys36 = Object.keys(source);
3677
+ if (typeof Object.getOwnPropertySymbols === "function") {
3678
+ ownKeys36 = ownKeys36.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
3679
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
3680
+ }));
3681
+ }
3682
+ ownKeys36.forEach(function(key) {
3683
+ _define_property21(target, key, source[key]);
3684
+ });
3685
+ }
3686
+ return target;
3687
+ }
3688
+ function ownKeys15(object, enumerableOnly) {
3689
+ var keys = Object.keys(object);
3690
+ if (Object.getOwnPropertySymbols) {
3691
+ var symbols = Object.getOwnPropertySymbols(object);
3692
+ if (enumerableOnly) {
3693
+ symbols = symbols.filter(function(sym) {
3694
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
3695
+ });
3696
+ }
3697
+ keys.push.apply(keys, symbols);
3698
+ }
3699
+ return keys;
3700
+ }
3701
+ function _object_spread_props15(target, source) {
3702
+ source = source != null ? source : {};
3703
+ if (Object.getOwnPropertyDescriptors) {
3704
+ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
3705
+ } else {
3706
+ ownKeys15(Object(source)).forEach(function(key) {
3707
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
3708
+ });
3709
+ }
3710
+ return target;
3711
+ }
3712
+ var SvgSearch = (props) => /* @__PURE__ */ _jsx37("svg", _object_spread_props15(_object_spread21({
3713
+ width: 24,
3714
+ height: 24,
3715
+ viewBox: "0 0 32 32"
3716
+ }, props), {
3717
+ children: /* @__PURE__ */ _jsx37("path", {
3718
+ fill: "var(--rp-c-gray)",
3719
+ 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"
3720
+ })
3721
+ }));
3722
+ var search_default = SvgSearch;
3723
+
3724
+ // src/theme-default/components/Search/index.module.scss
3725
+ var index_module_default15 = { "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" };
3726
+
3727
+ // src/theme-default/components/Search/SearchPanel.tsx
3676
3728
  import { jsx as _jsx48, jsxs as _jsxs30, Fragment as _Fragment5 } from "react/jsx-runtime";
3677
3729
  import debounce from "lodash-es/debounce";
3678
3730
  import groupBy from "lodash-es/groupBy";
3679
3731
  import { createPortal } from "react-dom";
3680
- import { useEffect as useEffect12, useRef as useRef5, useState as useState11 } from "react";
3732
+ import { useEffect as useEffect12, useRef as useRef5, useState as useState12 } from "react";
3681
3733
  import { onSearch } from "virtual-search-hooks";
3682
3734
 
3683
3735
  // src/theme-default/components/Tabs/index.tsx
3684
- import { jsx as _jsx37, jsxs as _jsxs24 } from "react/jsx-runtime";
3685
- import { useContext as useContext4 } from "react";
3686
- import { Tab as HeadlessTab } from "@headlessui/react";
3736
+ import { jsx as _jsx38, jsxs as _jsxs24 } from "react/jsx-runtime";
3737
+ import { useContext as useContext4, useState as useState11 } from "react";
3687
3738
 
3688
3739
  // src/theme-default/components/Tabs/index.module.scss
3689
3740
  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" };
3690
3741
 
3691
3742
  // src/theme-default/components/Tabs/index.tsx
3692
- function _define_property21(obj, key, value) {
3743
+ function _define_property22(obj, key, value) {
3693
3744
  if (key in obj) {
3694
3745
  Object.defineProperty(obj, key, {
3695
3746
  value,
@@ -3702,22 +3753,22 @@ function _define_property21(obj, key, value) {
3702
3753
  }
3703
3754
  return obj;
3704
3755
  }
3705
- function _object_spread21(target) {
3756
+ function _object_spread22(target) {
3706
3757
  for (var i = 1; i < arguments.length; i++) {
3707
3758
  var source = arguments[i] != null ? arguments[i] : {};
3708
- var ownKeys32 = Object.keys(source);
3759
+ var ownKeys36 = Object.keys(source);
3709
3760
  if (typeof Object.getOwnPropertySymbols === "function") {
3710
- ownKeys32 = ownKeys32.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
3761
+ ownKeys36 = ownKeys36.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
3711
3762
  return Object.getOwnPropertyDescriptor(source, sym).enumerable;
3712
3763
  }));
3713
3764
  }
3714
- ownKeys32.forEach(function(key) {
3715
- _define_property21(target, key, source[key]);
3765
+ ownKeys36.forEach(function(key) {
3766
+ _define_property22(target, key, source[key]);
3716
3767
  });
3717
3768
  }
3718
3769
  return target;
3719
3770
  }
3720
- function ownKeys15(object, enumerableOnly) {
3771
+ function ownKeys16(object, enumerableOnly) {
3721
3772
  var keys = Object.keys(object);
3722
3773
  if (Object.getOwnPropertySymbols) {
3723
3774
  var symbols = Object.getOwnPropertySymbols(object);
@@ -3730,12 +3781,12 @@ function ownKeys15(object, enumerableOnly) {
3730
3781
  }
3731
3782
  return keys;
3732
3783
  }
3733
- function _object_spread_props15(target, source) {
3784
+ function _object_spread_props16(target, source) {
3734
3785
  source = source != null ? source : {};
3735
3786
  if (Object.getOwnPropertyDescriptors) {
3736
3787
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
3737
3788
  } else {
3738
- ownKeys15(Object(source)).forEach(function(key) {
3789
+ ownKeys16(Object(source)).forEach(function(key) {
3739
3790
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
3740
3791
  });
3741
3792
  }
@@ -3812,125 +3863,47 @@ function Tabs(props) {
3812
3863
  return false;
3813
3864
  });
3814
3865
  }
3815
- return /* @__PURE__ */ _jsx37("div", {
3866
+ const [activeIndex, setActiveIndex] = useState11(defaultIndex);
3867
+ return /* @__PURE__ */ _jsxs24("div", {
3816
3868
  className: index_module_default16.container,
3817
- children: /* @__PURE__ */ _jsxs24(HeadlessTab.Group, _object_spread_props15(_object_spread21({
3818
- onChange: (index) => {
3819
- var _onChange;
3820
- (_onChange = onChange) === null || _onChange === void 0 ? void 0 : _onChange(index);
3821
- if (groupId) {
3822
- setTabData(_object_spread_props15(_object_spread21({}, tabData), {
3823
- [groupId]: index
3824
- }));
3825
- }
3826
- }
3827
- }, needSync ? {
3828
- selectedIndex: defaultIndex
3829
- } : {
3830
- defaultIndex
3831
- }), {
3832
- children: [
3833
- /* @__PURE__ */ _jsx37("div", {
3834
- className: tabContainerClassName,
3835
- children: tabValues.length ? /* @__PURE__ */ _jsx37(HeadlessTab.List, {
3836
- className: index_module_default16.tabList,
3837
- children: tabValues.map((item, index) => {
3838
- const disabled = Boolean(item && typeof item === "object" && "disabled" in item && item.disabled);
3839
- return /* @__PURE__ */ _jsx37(HeadlessTab, {
3840
- disabled,
3841
- className: ({ selected }) => `${index_module_default16.tab} ${selected ? index_module_default16.selected : index_module_default16.notSelected}`,
3842
- children: renderTab(item)
3843
- }, index);
3844
- })
3845
- }) : null
3846
- }),
3847
- /* @__PURE__ */ _jsx37(HeadlessTab.Panels, {
3848
- children
3849
- })
3850
- ]
3851
- }))
3869
+ children: [
3870
+ /* @__PURE__ */ _jsx38("div", {
3871
+ className: tabContainerClassName,
3872
+ children: tabValues.length ? /* @__PURE__ */ _jsx38("div", {
3873
+ className: index_module_default16.tabList,
3874
+ children: tabValues.map((item, index) => {
3875
+ return /* @__PURE__ */ _jsx38("div", {
3876
+ className: `${index_module_default16.tab} ${activeIndex === index ? index_module_default16.selected : index_module_default16.notSelected}`,
3877
+ onClick: () => {
3878
+ onChange === null || onChange === void 0 ? void 0 : onChange(index);
3879
+ setActiveIndex(index);
3880
+ if (groupId) {
3881
+ setTabData(_object_spread_props16(_object_spread22({}, tabData), {
3882
+ [groupId]: index
3883
+ }));
3884
+ }
3885
+ },
3886
+ children: renderTab(item)
3887
+ }, index);
3888
+ })
3889
+ }) : null
3890
+ }),
3891
+ /* @__PURE__ */ _jsx38("div", {
3892
+ children: children[activeIndex]
3893
+ })
3894
+ ]
3852
3895
  });
3853
3896
  }
3854
3897
  function Tab(_param) {
3855
3898
  var { children } = _param, props = _object_without_properties(_param, [
3856
3899
  "children"
3857
3900
  ]);
3858
- return /* @__PURE__ */ _jsx37(HeadlessTab.Panel, _object_spread_props15(_object_spread21({}, props), {
3901
+ return /* @__PURE__ */ _jsx38("div", _object_spread_props16(_object_spread22({}, props), {
3859
3902
  className: "rounded px-2",
3860
3903
  children
3861
3904
  }));
3862
3905
  }
3863
3906
 
3864
- // src/theme-default/components/Search/index.module.scss
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" };
3866
-
3867
- // src/theme-default/components/Search/assets/search.svg
3868
- import { jsx as _jsx38 } from "react/jsx-runtime";
3869
- import * as React13 from "react";
3870
- function _define_property22(obj, key, value) {
3871
- if (key in obj) {
3872
- Object.defineProperty(obj, key, {
3873
- value,
3874
- enumerable: true,
3875
- configurable: true,
3876
- writable: true
3877
- });
3878
- } else {
3879
- obj[key] = value;
3880
- }
3881
- return obj;
3882
- }
3883
- function _object_spread22(target) {
3884
- for (var i = 1; i < arguments.length; i++) {
3885
- var source = arguments[i] != null ? arguments[i] : {};
3886
- var ownKeys32 = Object.keys(source);
3887
- if (typeof Object.getOwnPropertySymbols === "function") {
3888
- ownKeys32 = ownKeys32.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
3889
- return Object.getOwnPropertyDescriptor(source, sym).enumerable;
3890
- }));
3891
- }
3892
- ownKeys32.forEach(function(key) {
3893
- _define_property22(target, key, source[key]);
3894
- });
3895
- }
3896
- return target;
3897
- }
3898
- function ownKeys16(object, enumerableOnly) {
3899
- var keys = Object.keys(object);
3900
- if (Object.getOwnPropertySymbols) {
3901
- var symbols = Object.getOwnPropertySymbols(object);
3902
- if (enumerableOnly) {
3903
- symbols = symbols.filter(function(sym) {
3904
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
3905
- });
3906
- }
3907
- keys.push.apply(keys, symbols);
3908
- }
3909
- return keys;
3910
- }
3911
- function _object_spread_props16(target, source) {
3912
- source = source != null ? source : {};
3913
- if (Object.getOwnPropertyDescriptors) {
3914
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
3915
- } else {
3916
- ownKeys16(Object(source)).forEach(function(key) {
3917
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
3918
- });
3919
- }
3920
- return target;
3921
- }
3922
- var SvgSearch = (props) => /* @__PURE__ */ _jsx38("svg", _object_spread_props16(_object_spread22({
3923
- width: 24,
3924
- height: 24,
3925
- viewBox: "0 0 32 32"
3926
- }, props), {
3927
- children: /* @__PURE__ */ _jsx38("path", {
3928
- fill: "var(--rp-c-gray)",
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"
3930
- })
3931
- }));
3932
- var search_default = SvgSearch;
3933
-
3934
3907
  // src/theme-default/components/Search/assets/loading.svg
3935
3908
  import { jsx as _jsx39, jsxs as _jsxs25 } from "react/jsx-runtime";
3936
3909
  import * as React14 from "react";
@@ -3950,13 +3923,13 @@ function _define_property23(obj, key, value) {
3950
3923
  function _object_spread23(target) {
3951
3924
  for (var i = 1; i < arguments.length; i++) {
3952
3925
  var source = arguments[i] != null ? arguments[i] : {};
3953
- var ownKeys32 = Object.keys(source);
3926
+ var ownKeys36 = Object.keys(source);
3954
3927
  if (typeof Object.getOwnPropertySymbols === "function") {
3955
- ownKeys32 = ownKeys32.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
3928
+ ownKeys36 = ownKeys36.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
3956
3929
  return Object.getOwnPropertyDescriptor(source, sym).enumerable;
3957
3930
  }));
3958
3931
  }
3959
- ownKeys32.forEach(function(key) {
3932
+ ownKeys36.forEach(function(key) {
3960
3933
  _define_property23(target, key, source[key]);
3961
3934
  });
3962
3935
  }
@@ -4053,13 +4026,13 @@ function _define_property24(obj, key, value) {
4053
4026
  function _object_spread24(target) {
4054
4027
  for (var i = 1; i < arguments.length; i++) {
4055
4028
  var source = arguments[i] != null ? arguments[i] : {};
4056
- var ownKeys32 = Object.keys(source);
4029
+ var ownKeys36 = Object.keys(source);
4057
4030
  if (typeof Object.getOwnPropertySymbols === "function") {
4058
- ownKeys32 = ownKeys32.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
4031
+ ownKeys36 = ownKeys36.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
4059
4032
  return Object.getOwnPropertyDescriptor(source, sym).enumerable;
4060
4033
  }));
4061
4034
  }
4062
- ownKeys32.forEach(function(key) {
4035
+ ownKeys36.forEach(function(key) {
4063
4036
  _define_property24(target, key, source[key]);
4064
4037
  });
4065
4038
  }
@@ -4287,13 +4260,13 @@ function _define_property25(obj, key, value) {
4287
4260
  function _object_spread25(target) {
4288
4261
  for (var i = 1; i < arguments.length; i++) {
4289
4262
  var source = arguments[i] != null ? arguments[i] : {};
4290
- var ownKeys32 = Object.keys(source);
4263
+ var ownKeys36 = Object.keys(source);
4291
4264
  if (typeof Object.getOwnPropertySymbols === "function") {
4292
- ownKeys32 = ownKeys32.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
4265
+ ownKeys36 = ownKeys36.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
4293
4266
  return Object.getOwnPropertyDescriptor(source, sym).enumerable;
4294
4267
  }));
4295
4268
  }
4296
- ownKeys32.forEach(function(key) {
4269
+ ownKeys36.forEach(function(key) {
4297
4270
  _define_property25(target, key, source[key]);
4298
4271
  });
4299
4272
  }
@@ -4503,13 +4476,12 @@ var RemoteProvider = class {
4503
4476
  search(query2) {
4504
4477
  var _this = this;
4505
4478
  return _async_to_generator3(function* () {
4506
- var _searchIndexes;
4507
4479
  const { apiUrl, searchIndexes } = _class_private_field_get2(_this, _options);
4508
4480
  const { keyword, limit } = query2;
4509
4481
  const urlParams = buildQueryString({
4510
4482
  keyword,
4511
4483
  limit: limit.toString(),
4512
- searchIndexes: ((_searchIndexes = searchIndexes) === null || _searchIndexes === void 0 ? void 0 : _searchIndexes.map((indexInfo) => typeof indexInfo === "string" ? indexInfo : indexInfo.value).join(",")) || "",
4484
+ searchIndexes: (searchIndexes === null || searchIndexes === void 0 ? void 0 : searchIndexes.map((indexInfo) => typeof indexInfo === "string" ? indexInfo : indexInfo.value).join(",")) || "",
4513
4485
  lang: _class_private_field_get2(_this, _options).currentLang
4514
4486
  });
4515
4487
  try {
@@ -4631,19 +4603,19 @@ var PageSearcher = class {
4631
4603
  match(keyword, limit = 7) {
4632
4604
  var _this = this;
4633
4605
  return _async_to_generator4(function* () {
4634
- var _class_private_field_get1, _searchResult, _searchResult1;
4606
+ var _class_private_field_get1;
4635
4607
  const searchResult = yield (_class_private_field_get1 = _class_private_field_get3(_this, _provider)) === null || _class_private_field_get1 === void 0 ? void 0 : _class_private_field_get1.search({
4636
4608
  keyword,
4637
4609
  limit
4638
4610
  });
4639
4611
  const normaizedKeyWord = normalizeTextCase(keyword);
4640
- const currentIndexInfo = ((_searchResult = searchResult) === null || _searchResult === void 0 ? void 0 : _searchResult.find((res) => _class_private_method_get2(_this, _isCurrentIndex, isCurrentIndex).call(_this, res.index))) || {
4612
+ const currentIndexInfo = (searchResult === null || searchResult === void 0 ? void 0 : searchResult.find((res) => _class_private_method_get2(_this, _isCurrentIndex, isCurrentIndex).call(_this, res.index))) || {
4641
4613
  index: LOCAL_INDEX,
4642
4614
  hits: []
4643
4615
  };
4644
4616
  const matchResult = {
4645
4617
  current: _class_private_method_get2(_this, _matchResultItem, matchResultItem).call(_this, normaizedKeyWord, currentIndexInfo),
4646
- others: (((_searchResult1 = searchResult) === null || _searchResult1 === void 0 ? void 0 : _searchResult1.filter((res) => !_class_private_method_get2(_this, _isCurrentIndex, isCurrentIndex).call(_this, res.index))) || []).map((res) => ({
4618
+ others: ((searchResult === null || searchResult === void 0 ? void 0 : searchResult.filter((res) => !_class_private_method_get2(_this, _isCurrentIndex, isCurrentIndex).call(_this, res.index))) || []).map((res) => ({
4647
4619
  index: res.index,
4648
4620
  items: _class_private_method_get2(_this, _matchResultItem, matchResultItem).call(_this, normaizedKeyWord, res)
4649
4621
  }))
@@ -4683,9 +4655,8 @@ var PageSearcher = class {
4683
4655
  }
4684
4656
  };
4685
4657
  function matchResultItem(normaizedKeyWord, resultItem) {
4686
- var _resultItem;
4687
4658
  const matchedResult = [];
4688
- (_resultItem = resultItem) === null || _resultItem === void 0 ? void 0 : _resultItem.hits.forEach((item) => {
4659
+ resultItem === null || resultItem === void 0 ? void 0 : resultItem.hits.forEach((item) => {
4689
4660
  _class_private_method_get2(this, _matchTitle, matchTitle).call(this, item, normaizedKeyWord, matchedResult);
4690
4661
  const matchedHeader = _class_private_method_get2(this, _matchHeader, matchHeader).call(this, item, normaizedKeyWord, matchedResult);
4691
4662
  if (matchedHeader) {
@@ -4768,9 +4739,9 @@ function matchContent(item, query2, matchedResult) {
4768
4739
  return toc[currentHeaderIndex];
4769
4740
  };
4770
4741
  if (queryIndex === -1) {
4771
- var _item__matchesPosition, _hightlightItems, _currentHeader;
4742
+ var _item__matchesPosition;
4772
4743
  const hightlightItems = (_item__matchesPosition = item._matchesPosition) === null || _item__matchesPosition === void 0 ? void 0 : _item__matchesPosition.content;
4773
- if (!((_hightlightItems = hightlightItems) === null || _hightlightItems === void 0 ? void 0 : _hightlightItems.length)) {
4744
+ if (!(hightlightItems === null || hightlightItems === void 0 ? void 0 : hightlightItems.length)) {
4774
4745
  return;
4775
4746
  }
4776
4747
  const highlightStartIndex = item._matchesPosition.content[0].start;
@@ -4790,7 +4761,7 @@ function matchContent(item, query2, matchedResult) {
4790
4761
  matchedResult.push({
4791
4762
  type: "content",
4792
4763
  title: item.title,
4793
- header: (_currentHeader_text = (_currentHeader = currentHeader) === null || _currentHeader === void 0 ? void 0 : _currentHeader.text) !== null && _currentHeader_text !== void 0 ? _currentHeader_text : item.title,
4764
+ header: (_currentHeader_text = currentHeader === null || currentHeader === void 0 ? void 0 : currentHeader.text) !== null && _currentHeader_text !== void 0 ? _currentHeader_text : item.title,
4794
4765
  link: `${domain}${normalizeHref8(item.routePath)}${currentHeader ? `#${currentHeader.id}` : ""}`,
4795
4766
  query: query2,
4796
4767
  highlightInfoList,
@@ -4800,7 +4771,6 @@ function matchContent(item, query2, matchedResult) {
4800
4771
  return;
4801
4772
  }
4802
4773
  while (queryIndex !== -1) {
4803
- var _currentHeader1;
4804
4774
  const currentHeader = getCurrentHeader(queryIndex);
4805
4775
  let statementStartIndex = content.slice(0, queryIndex).lastIndexOf("\n");
4806
4776
  statementStartIndex = statementStartIndex === -1 ? 0 : statementStartIndex;
@@ -4820,7 +4790,7 @@ function matchContent(item, query2, matchedResult) {
4820
4790
  matchedResult.push({
4821
4791
  type: "content",
4822
4792
  title: item.title,
4823
- header: (_currentHeader_text1 = (_currentHeader1 = currentHeader) === null || _currentHeader1 === void 0 ? void 0 : _currentHeader1.text) !== null && _currentHeader_text1 !== void 0 ? _currentHeader_text1 : item.title,
4793
+ header: (_currentHeader_text1 = currentHeader === null || currentHeader === void 0 ? void 0 : currentHeader.text) !== null && _currentHeader_text1 !== void 0 ? _currentHeader_text1 : item.title,
4824
4794
  statement,
4825
4795
  highlightInfoList,
4826
4796
  link: `${domain}${normalizeHref8(item.routePath)}${currentHeader ? `#${currentHeader.id}` : ""}`,
@@ -4869,13 +4839,13 @@ function _define_property26(obj, key, value) {
4869
4839
  function _object_spread26(target) {
4870
4840
  for (var i = 1; i < arguments.length; i++) {
4871
4841
  var source = arguments[i] != null ? arguments[i] : {};
4872
- var ownKeys32 = Object.keys(source);
4842
+ var ownKeys36 = Object.keys(source);
4873
4843
  if (typeof Object.getOwnPropertySymbols === "function") {
4874
- ownKeys32 = ownKeys32.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
4844
+ ownKeys36 = ownKeys36.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
4875
4845
  return Object.getOwnPropertyDescriptor(source, sym).enumerable;
4876
4846
  }));
4877
4847
  }
4878
- ownKeys32.forEach(function(key) {
4848
+ ownKeys36.forEach(function(key) {
4879
4849
  _define_property26(target, key, source[key]);
4880
4850
  });
4881
4851
  }
@@ -4953,13 +4923,13 @@ function _define_property27(obj, key, value) {
4953
4923
  function _object_spread27(target) {
4954
4924
  for (var i = 1; i < arguments.length; i++) {
4955
4925
  var source = arguments[i] != null ? arguments[i] : {};
4956
- var ownKeys32 = Object.keys(source);
4926
+ var ownKeys36 = Object.keys(source);
4957
4927
  if (typeof Object.getOwnPropertySymbols === "function") {
4958
- ownKeys32 = ownKeys32.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
4928
+ ownKeys36 = ownKeys36.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
4959
4929
  return Object.getOwnPropertyDescriptor(source, sym).enumerable;
4960
4930
  }));
4961
4931
  }
4962
- ownKeys32.forEach(function(key) {
4932
+ ownKeys36.forEach(function(key) {
4963
4933
  _define_property27(target, key, source[key]);
4964
4934
  });
4965
4935
  }
@@ -5021,13 +4991,13 @@ function _define_property28(obj, key, value) {
5021
4991
  function _object_spread28(target) {
5022
4992
  for (var i = 1; i < arguments.length; i++) {
5023
4993
  var source = arguments[i] != null ? arguments[i] : {};
5024
- var ownKeys32 = Object.keys(source);
4994
+ var ownKeys36 = Object.keys(source);
5025
4995
  if (typeof Object.getOwnPropertySymbols === "function") {
5026
- ownKeys32 = ownKeys32.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
4996
+ ownKeys36 = ownKeys36.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
5027
4997
  return Object.getOwnPropertyDescriptor(source, sym).enumerable;
5028
4998
  }));
5029
4999
  }
5030
- ownKeys32.forEach(function(key) {
5000
+ ownKeys36.forEach(function(key) {
5031
5001
  _define_property28(target, key, source[key]);
5032
5002
  });
5033
5003
  }
@@ -5089,13 +5059,13 @@ function _define_property29(obj, key, value) {
5089
5059
  function _object_spread29(target) {
5090
5060
  for (var i = 1; i < arguments.length; i++) {
5091
5061
  var source = arguments[i] != null ? arguments[i] : {};
5092
- var ownKeys32 = Object.keys(source);
5062
+ var ownKeys36 = Object.keys(source);
5093
5063
  if (typeof Object.getOwnPropertySymbols === "function") {
5094
- ownKeys32 = ownKeys32.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
5064
+ ownKeys36 = ownKeys36.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
5095
5065
  return Object.getOwnPropertyDescriptor(source, sym).enumerable;
5096
5066
  }));
5097
5067
  }
5098
- ownKeys32.forEach(function(key) {
5068
+ ownKeys36.forEach(function(key) {
5099
5069
  _define_property29(target, key, source[key]);
5100
5070
  });
5101
5071
  }
@@ -5156,7 +5126,7 @@ function SuggestItem({ suggestion, closeSearch, isCurrent, setCurrentSuggestionI
5156
5126
  const queryStr = getSlicedStrByByteLength(rawText, start, length);
5157
5127
  framegmentList.push(prefix);
5158
5128
  framegmentList.push(/* @__PURE__ */ _jsx45("span", {
5159
- className: index_module_default17.mark,
5129
+ className: index_module_default15.mark,
5160
5130
  children: queryStr
5161
5131
  }, start));
5162
5132
  lastIndex = start + queryStr.length;
@@ -5201,7 +5171,7 @@ function SuggestItem({ suggestion, closeSearch, isCurrent, setCurrentSuggestionI
5201
5171
  children: [
5202
5172
  renderStatementMatch(),
5203
5173
  /* @__PURE__ */ _jsx45("p", {
5204
- className: index_module_default17.titleForContent,
5174
+ className: index_module_default15.titleForContent,
5205
5175
  children: suggestion.title
5206
5176
  })
5207
5177
  ]
@@ -5211,7 +5181,7 @@ function SuggestItem({ suggestion, closeSearch, isCurrent, setCurrentSuggestionI
5211
5181
  break;
5212
5182
  }
5213
5183
  return /* @__PURE__ */ _jsx45("li", {
5214
- className: `${index_module_default17.suggestItem} ${isCurrent ? index_module_default17.current : ""}`,
5184
+ className: `${index_module_default15.suggestItem} ${isCurrent ? index_module_default15.current : ""}`,
5215
5185
  onMouseEnter: setCurrentSuggestionIndex,
5216
5186
  children: /* @__PURE__ */ _jsx45("a", {
5217
5187
  href: link,
@@ -5221,20 +5191,20 @@ function SuggestItem({ suggestion, closeSearch, isCurrent, setCurrentSuggestionI
5221
5191
  },
5222
5192
  target: inCurrentDocIndex ? "_self" : "_blank",
5223
5193
  children: /* @__PURE__ */ _jsxs27("div", {
5224
- className: index_module_default17.suggestItemContainer,
5194
+ className: index_module_default15.suggestItemContainer,
5225
5195
  children: [
5226
5196
  /* @__PURE__ */ _jsx45("div", {
5227
- className: index_module_default17.hitIcon,
5197
+ className: index_module_default15.hitIcon,
5228
5198
  children: /* @__PURE__ */ _jsx45(HitIcon, {})
5229
5199
  }),
5230
5200
  /* @__PURE__ */ _jsx45("div", {
5231
- className: index_module_default17.contentWrapper,
5201
+ className: index_module_default15.contentWrapper,
5232
5202
  children: /* @__PURE__ */ _jsx45("span", {
5233
5203
  children: hitContent
5234
5204
  })
5235
5205
  }),
5236
5206
  /* @__PURE__ */ _jsx45("div", {
5237
- className: index_module_default17.actionIcon,
5207
+ className: index_module_default15.actionIcon,
5238
5208
  children: /* @__PURE__ */ _jsx45(jump_default, {})
5239
5209
  })
5240
5210
  ]
@@ -5265,13 +5235,13 @@ function _define_property30(obj, key, value) {
5265
5235
  function _object_spread30(target) {
5266
5236
  for (var i = 1; i < arguments.length; i++) {
5267
5237
  var source = arguments[i] != null ? arguments[i] : {};
5268
- var ownKeys32 = Object.keys(source);
5238
+ var ownKeys36 = Object.keys(source);
5269
5239
  if (typeof Object.getOwnPropertySymbols === "function") {
5270
- ownKeys32 = ownKeys32.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
5240
+ ownKeys36 = ownKeys36.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
5271
5241
  return Object.getOwnPropertyDescriptor(source, sym).enumerable;
5272
5242
  }));
5273
5243
  }
5274
- ownKeys32.forEach(function(key) {
5244
+ ownKeys36.forEach(function(key) {
5275
5245
  _define_property30(target, key, source[key]);
5276
5246
  });
5277
5247
  }
@@ -5351,7 +5321,7 @@ function NoSearchResult({ query: query2 }) {
5351
5321
  });
5352
5322
  }
5353
5323
 
5354
- // src/theme-default/components/Search/index.tsx
5324
+ // src/theme-default/components/Search/SearchPanel.tsx
5355
5325
  import { isProduction as isProduction2, usePageData as usePageData11 } from "@/runtime";
5356
5326
  function asyncGeneratorStep5(gen, resolve, reject, _next, _throw, key, arg) {
5357
5327
  try {
@@ -5398,13 +5368,13 @@ function _define_property31(obj, key, value) {
5398
5368
  function _object_spread31(target) {
5399
5369
  for (var i = 1; i < arguments.length; i++) {
5400
5370
  var source = arguments[i] != null ? arguments[i] : {};
5401
- var ownKeys32 = Object.keys(source);
5371
+ var ownKeys36 = Object.keys(source);
5402
5372
  if (typeof Object.getOwnPropertySymbols === "function") {
5403
- ownKeys32 = ownKeys32.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
5373
+ ownKeys36 = ownKeys36.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
5404
5374
  return Object.getOwnPropertyDescriptor(source, sym).enumerable;
5405
5375
  }));
5406
5376
  }
5407
- ownKeys32.forEach(function(key) {
5377
+ ownKeys36.forEach(function(key) {
5408
5378
  _define_property31(target, key, source[key]);
5409
5379
  });
5410
5380
  }
@@ -5445,16 +5415,15 @@ var RECOMMEND_WORD = {
5445
5415
  zh: "其它站点推荐结果",
5446
5416
  en: "Other Site Search Results"
5447
5417
  };
5448
- function Search2() {
5449
- const [query2, setQuery] = useState11("");
5450
- const [searchResult, setSearchResult] = useState11({
5418
+ function SearchPanel({ focused, setFocused }) {
5419
+ const [query2, setQuery] = useState12("");
5420
+ const [searchResult, setSearchResult] = useState12({
5451
5421
  current: [],
5452
5422
  others: []
5453
5423
  });
5454
- const [focused, setFocused] = useState11(false);
5455
5424
  const searchInputRef = useRef5(null);
5456
- const [initing, setIniting] = useState11(true);
5457
- const [currentSuggestionIndex, setCurrentSuggestionIndex] = useState11(0);
5425
+ const [initing, setIniting] = useState12(true);
5426
+ const [currentSuggestionIndex, setCurrentSuggestionIndex] = useState12(0);
5458
5427
  const pageSearcherRef = useRef5(null);
5459
5428
  const { siteData: siteData2, page: { lang } } = usePageData11();
5460
5429
  const { sidebar } = useLocaleSiteData();
@@ -5598,7 +5567,7 @@ function Search2() {
5598
5567
  children: [
5599
5568
  renderSearchResultItem(result.current),
5600
5569
  hasOtherResult && /* @__PURE__ */ _jsx48("h2", {
5601
- className: index_module_default17.groupTitle,
5570
+ className: index_module_default15.groupTitle,
5602
5571
  children: RECOMMEND_WORD[lang]
5603
5572
  }),
5604
5573
  /* @__PURE__ */ _jsx48("div", {
@@ -5607,7 +5576,7 @@ function Search2() {
5607
5576
  },
5608
5577
  children: /* @__PURE__ */ _jsx48(Tabs, {
5609
5578
  values: tabValues,
5610
- tabContainerClassName: index_module_default17.tabClassName,
5579
+ tabContainerClassName: index_module_default15.tabClassName,
5611
5580
  children: result.others.map((item) => /* @__PURE__ */ _jsx48(Tab, {
5612
5581
  children: renderSearchResultItem(item.items, false)
5613
5582
  }, item.index))
@@ -5631,13 +5600,13 @@ function Search2() {
5631
5600
  }
5632
5601
  const normalizedSuggestions = normalizeSuggestions(suggestionList);
5633
5602
  return /* @__PURE__ */ _jsx48("ul", {
5634
- className: index_module_default17.suggestList,
5603
+ className: index_module_default15.suggestList,
5635
5604
  children: Object.keys(normalizedSuggestions).map((group) => {
5636
5605
  const groupSuggestions = normalizedSuggestions[group] || [];
5637
5606
  return /* @__PURE__ */ _jsxs30("li", {
5638
5607
  children: [
5639
5608
  isCurrent && /* @__PURE__ */ _jsx48("h2", {
5640
- className: index_module_default17.groupTitle,
5609
+ className: index_module_default15.groupTitle,
5641
5610
  children: group
5642
5611
  }),
5643
5612
  /* @__PURE__ */ _jsx48("ul", {
@@ -5661,27 +5630,104 @@ function Search2() {
5661
5630
  })
5662
5631
  });
5663
5632
  };
5664
- return /* @__PURE__ */ _jsxs30(_Fragment5, {
5633
+ return /* @__PURE__ */ _jsx48(_Fragment5, {
5634
+ children: focused && /* @__PURE__ */ createPortal(/* @__PURE__ */ _jsx48("div", {
5635
+ className: index_module_default15.mask,
5636
+ onClick: () => setFocused(false),
5637
+ children: /* @__PURE__ */ _jsxs30("div", {
5638
+ className: `${index_module_default15.modal}`,
5639
+ onClick: (e) => {
5640
+ setFocused(true);
5641
+ e.stopPropagation();
5642
+ },
5643
+ children: [
5644
+ /* @__PURE__ */ _jsxs30("div", {
5645
+ className: "flex items-center",
5646
+ children: [
5647
+ /* @__PURE__ */ _jsxs30("div", {
5648
+ className: index_module_default15.inputForm,
5649
+ children: [
5650
+ /* @__PURE__ */ _jsx48("label", {
5651
+ children: /* @__PURE__ */ _jsx48(search_default, {})
5652
+ }),
5653
+ /* @__PURE__ */ _jsx48("input", {
5654
+ className: index_module_default15.input,
5655
+ ref: searchInputRef,
5656
+ placeholder: "Search Docs",
5657
+ "aria-label": "Search",
5658
+ autoComplete: "off",
5659
+ autoFocus: true,
5660
+ onChange: debounce(onQueryChanged, 150)
5661
+ }),
5662
+ /* @__PURE__ */ _jsx48("label", {
5663
+ children: /* @__PURE__ */ _jsx48(close_default, {
5664
+ className: index_module_default15.close,
5665
+ onClick: (e) => {
5666
+ if (searchInputRef.current) {
5667
+ e.stopPropagation();
5668
+ if (!query2) {
5669
+ setFocused(false);
5670
+ } else {
5671
+ searchInputRef.current.value = "";
5672
+ setQuery("");
5673
+ }
5674
+ }
5675
+ }
5676
+ })
5677
+ })
5678
+ ]
5679
+ }),
5680
+ /* @__PURE__ */ _jsx48("h2", {
5681
+ className: "text-brand ml-2 sm:hidden cursor-pointer",
5682
+ onClick: (e) => {
5683
+ e.stopPropagation();
5684
+ setFocused(false);
5685
+ },
5686
+ children: "Cancel"
5687
+ })
5688
+ ]
5689
+ }),
5690
+ query2 ? /* @__PURE__ */ _jsx48("div", {
5691
+ className: `${index_module_default15.searchHits} rspress-scrollbar`,
5692
+ children: renderSearchResult(searchResult, search)
5693
+ }) : null,
5694
+ initing && /* @__PURE__ */ _jsx48("div", {
5695
+ className: "flex-center",
5696
+ children: /* @__PURE__ */ _jsx48("div", {
5697
+ className: "p-2 text-sm",
5698
+ children: /* @__PURE__ */ _jsx48(loading_default, {})
5699
+ })
5700
+ })
5701
+ ]
5702
+ })
5703
+ }), document.getElementById("search-container"))
5704
+ });
5705
+ }
5706
+
5707
+ // src/theme-default/components/Search/index.tsx
5708
+ function Search2() {
5709
+ const [focused, setFocused] = useState13(false);
5710
+ return /* @__PURE__ */ _jsxs31(_Fragment6, {
5665
5711
  children: [
5666
- /* @__PURE__ */ _jsx48("div", {
5667
- className: index_module_default17.navSearchButton,
5712
+ /* @__PURE__ */ _jsx49("div", {
5713
+ className: index_module_default15.navSearchButton,
5668
5714
  onClick: () => setFocused(true),
5669
- children: /* @__PURE__ */ _jsxs30("button", {
5715
+ children: /* @__PURE__ */ _jsxs31("button", {
5670
5716
  children: [
5671
- /* @__PURE__ */ _jsx48(search_default, {
5717
+ /* @__PURE__ */ _jsx49(search_default, {
5672
5718
  width: "18",
5673
5719
  hight: "18"
5674
5720
  }),
5675
- /* @__PURE__ */ _jsx48("p", {
5676
- className: index_module_default17.searchWord,
5721
+ /* @__PURE__ */ _jsx49("p", {
5722
+ className: index_module_default15.searchWord,
5677
5723
  children: "Search Docs"
5678
5724
  }),
5679
- /* @__PURE__ */ _jsxs30("div", {
5725
+ /* @__PURE__ */ _jsxs31("div", {
5680
5726
  children: [
5681
- /* @__PURE__ */ _jsx48("span", {
5727
+ /* @__PURE__ */ _jsx49("span", {
5682
5728
  children: "⌘"
5683
5729
  }),
5684
- /* @__PURE__ */ _jsx48("span", {
5730
+ /* @__PURE__ */ _jsx49("span", {
5685
5731
  children: "K"
5686
5732
  })
5687
5733
  ]
@@ -5689,96 +5735,30 @@ function Search2() {
5689
5735
  ]
5690
5736
  })
5691
5737
  }),
5692
- /* @__PURE__ */ _jsx48("div", {
5693
- className: index_module_default17.mobileNavSearchButton,
5738
+ /* @__PURE__ */ _jsx49("div", {
5739
+ className: index_module_default15.mobileNavSearchButton,
5694
5740
  onClick: () => setFocused(true),
5695
- children: /* @__PURE__ */ _jsx48(search_default, {})
5741
+ children: /* @__PURE__ */ _jsx49(search_default, {})
5696
5742
  }),
5697
- focused && /* @__PURE__ */ createPortal(/* @__PURE__ */ _jsx48("div", {
5698
- className: index_module_default17.mask,
5699
- onClick: () => setFocused(false),
5700
- children: /* @__PURE__ */ _jsxs30("div", {
5701
- className: `${index_module_default17.modal}`,
5702
- onClick: (e) => {
5703
- setFocused(true);
5704
- e.stopPropagation();
5705
- },
5706
- children: [
5707
- /* @__PURE__ */ _jsxs30("div", {
5708
- className: "flex items-center",
5709
- children: [
5710
- /* @__PURE__ */ _jsxs30("div", {
5711
- className: index_module_default17.inputForm,
5712
- children: [
5713
- /* @__PURE__ */ _jsx48("label", {
5714
- children: /* @__PURE__ */ _jsx48(search_default, {})
5715
- }),
5716
- /* @__PURE__ */ _jsx48("input", {
5717
- className: index_module_default17.input,
5718
- ref: searchInputRef,
5719
- placeholder: "Search Docs",
5720
- "aria-label": "Search",
5721
- autoComplete: "off",
5722
- autoFocus: true,
5723
- onChange: debounce(onQueryChanged, 150)
5724
- }),
5725
- /* @__PURE__ */ _jsx48("label", {
5726
- children: /* @__PURE__ */ _jsx48(close_default, {
5727
- className: index_module_default17.close,
5728
- onClick: (e) => {
5729
- if (searchInputRef.current) {
5730
- e.stopPropagation();
5731
- if (!query2) {
5732
- setFocused(false);
5733
- } else {
5734
- searchInputRef.current.value = "";
5735
- setQuery("");
5736
- }
5737
- }
5738
- }
5739
- })
5740
- })
5741
- ]
5742
- }),
5743
- /* @__PURE__ */ _jsx48("h2", {
5744
- className: "text-brand ml-2 sm:hidden cursor-pointer",
5745
- onClick: (e) => {
5746
- e.stopPropagation();
5747
- setFocused(false);
5748
- },
5749
- children: "Cancel"
5750
- })
5751
- ]
5752
- }),
5753
- query2 ? /* @__PURE__ */ _jsx48("div", {
5754
- className: `${index_module_default17.searchHits} rspress-scrollbar`,
5755
- children: renderSearchResult(searchResult, search)
5756
- }) : null,
5757
- initing && /* @__PURE__ */ _jsx48("div", {
5758
- className: "flex-center",
5759
- children: /* @__PURE__ */ _jsx48("div", {
5760
- className: "p-2 text-sm",
5761
- children: /* @__PURE__ */ _jsx48(loading_default, {})
5762
- })
5763
- })
5764
- ]
5765
- })
5766
- }), document.getElementById("search-container"))
5743
+ /* @__PURE__ */ _jsx49(SearchPanel, {
5744
+ focused,
5745
+ setFocused
5746
+ })
5767
5747
  ]
5768
5748
  });
5769
5749
  }
5770
5750
 
5771
5751
  // src/theme-default/components/HomeFooter/index.tsx
5772
- import { jsx as _jsx49 } from "react/jsx-runtime";
5752
+ import { jsx as _jsx50 } from "react/jsx-runtime";
5773
5753
  import { usePageData as usePageData12 } from "@/runtime";
5774
5754
  function HomeFooter2() {
5775
5755
  const { siteData: siteData2 } = usePageData12();
5776
5756
  const { message } = siteData2.themeConfig.footer || {};
5777
- return /* @__PURE__ */ _jsx49("footer", {
5757
+ return /* @__PURE__ */ _jsx50("footer", {
5778
5758
  className: "absolute bottom-0 mt-12 py-8 px-6 sm:p-8 w-full border-t border-solid border-divider-light",
5779
- children: /* @__PURE__ */ _jsx49("div", {
5759
+ children: /* @__PURE__ */ _jsx50("div", {
5780
5760
  className: "m-auto w-full text-center",
5781
- children: message && /* @__PURE__ */ _jsx49("div", {
5761
+ children: message && /* @__PURE__ */ _jsx50("div", {
5782
5762
  className: "font-meduim text-sm text-text-2",
5783
5763
  children: message
5784
5764
  })
@@ -5786,13 +5766,9 @@ function HomeFooter2() {
5786
5766
  });
5787
5767
  }
5788
5768
 
5789
- // src/theme-default/layout/DocLayout/docComponents/title.tsx
5790
- import { jsx as _jsx50 } from "react/jsx-runtime";
5791
-
5792
- // src/theme-default/layout/DocLayout/docComponents/index.module.scss
5793
- var index_module_default18 = { "title": "title_f1ea0", "blockquote": "blockquote_f1ea0", "link": "link_f1ea0" };
5794
-
5795
- // src/theme-default/layout/DocLayout/docComponents/title.tsx
5769
+ // src/theme-default/components/Toc/index.tsx
5770
+ import { jsx as _jsx51 } from "react/jsx-runtime";
5771
+ import { usePageData as usePageData13 } from "@/runtime";
5796
5772
  function _define_property32(obj, key, value) {
5797
5773
  if (key in obj) {
5798
5774
  Object.defineProperty(obj, key, {
@@ -5809,75 +5785,189 @@ function _define_property32(obj, key, value) {
5809
5785
  function _object_spread32(target) {
5810
5786
  for (var i = 1; i < arguments.length; i++) {
5811
5787
  var source = arguments[i] != null ? arguments[i] : {};
5812
- var ownKeys32 = Object.keys(source);
5788
+ var ownKeys36 = Object.keys(source);
5813
5789
  if (typeof Object.getOwnPropertySymbols === "function") {
5814
- ownKeys32 = ownKeys32.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
5790
+ ownKeys36 = ownKeys36.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
5815
5791
  return Object.getOwnPropertyDescriptor(source, sym).enumerable;
5816
5792
  }));
5817
5793
  }
5818
- ownKeys32.forEach(function(key) {
5794
+ ownKeys36.forEach(function(key) {
5819
5795
  _define_property32(target, key, source[key]);
5820
5796
  });
5821
5797
  }
5822
5798
  return target;
5823
5799
  }
5824
- function ownKeys26(object, enumerableOnly) {
5825
- var keys = Object.keys(object);
5826
- if (Object.getOwnPropertySymbols) {
5827
- var symbols = Object.getOwnPropertySymbols(object);
5828
- if (enumerableOnly) {
5829
- symbols = symbols.filter(function(sym) {
5830
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
5831
- });
5832
- }
5833
- keys.push.apply(keys, symbols);
5834
- }
5835
- return keys;
5836
- }
5837
- function _object_spread_props26(target, source) {
5838
- source = source != null ? source : {};
5839
- if (Object.getOwnPropertyDescriptors) {
5840
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
5841
- } else {
5842
- ownKeys26(Object(source)).forEach(function(key) {
5843
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
5844
- });
5845
- }
5846
- return target;
5847
- }
5848
- var H1 = (props) => {
5849
- return /* @__PURE__ */ _jsx50("h1", _object_spread_props26(_object_spread32({}, props), {
5850
- className: `text-3xl mb-10 leading-10 tracking-tight ${index_module_default18.title}`
5851
- }));
5800
+ var TocItem = (header) => {
5801
+ return /* @__PURE__ */ _jsx51("li", {
5802
+ className: "py-1",
5803
+ children: /* @__PURE__ */ _jsx51("a", {
5804
+ href: `#${header.id}`,
5805
+ className: "toc-link transition-all duration-300 hover:text-text-1 text-text-2 block underline underline-offset-2",
5806
+ style: {
5807
+ marginLeft: header.depth * 12
5808
+ },
5809
+ onClick: (e) => {
5810
+ e.preventDefault();
5811
+ window.location.hash = header.id;
5812
+ const target = document.getElementById(header.id);
5813
+ if (target) {
5814
+ scrollToTarget(target, false);
5815
+ }
5816
+ },
5817
+ children: /* @__PURE__ */ _jsx51("span", {
5818
+ className: "toc-link-text block",
5819
+ children: header.text
5820
+ })
5821
+ })
5822
+ }, header.id);
5852
5823
  };
5853
- var H2 = (props) => {
5854
- return /* @__PURE__ */ _jsx50("h2", _object_spread_props26(_object_spread32({}, props), {
5855
- className: `mt-14 mb-6 text-2xl tracking-tight ${index_module_default18.title}`
5856
- }));
5857
- };
5858
- var H3 = (props) => {
5859
- return /* @__PURE__ */ _jsx50("h3", _object_spread_props26(_object_spread32({}, props), {
5860
- className: `mt-10 mb-2 leading-7 text-xl ${index_module_default18.title}`
5861
- }));
5862
- };
5863
- var H4 = (props) => {
5864
- return /* @__PURE__ */ _jsx50("h4", _object_spread_props26(_object_spread32({}, props), {
5865
- className: `mt-8 leading-6 text-base ${index_module_default18.title}`
5866
- }));
5867
- };
5868
- var H5 = (props) => {
5869
- return /* @__PURE__ */ _jsx50("h5", _object_spread_props26(_object_spread32({}, props), {
5870
- className: index_module_default18.title
5871
- }));
5872
- };
5873
- var H6 = (props) => {
5874
- return /* @__PURE__ */ _jsx50("h6", _object_spread_props26(_object_spread32({}, props), {
5875
- className: index_module_default18.title
5876
- }));
5824
+ function Toc() {
5825
+ const { page } = usePageData13();
5826
+ return /* @__PURE__ */ _jsx51("ul", {
5827
+ children: page.toc.map((item) => /* @__PURE__ */ _jsx51(TocItem, _object_spread32({}, item), item.id))
5828
+ });
5829
+ }
5830
+
5831
+ // src/theme-default/components/PackageManagerTabs/index.tsx
5832
+ import { jsx as _jsx58, jsxs as _jsxs38 } from "react/jsx-runtime";
5833
+
5834
+ // src/theme-default/layout/DocLayout/docComponents/pre.tsx
5835
+ import { jsx as _jsx52, jsxs as _jsxs32 } from "react/jsx-runtime";
5836
+ var DEFAULT_LANGUAGE_CLASS = "language-bash";
5837
+ function parseTitleFromMeta(meta) {
5838
+ var _highlightReg_exec;
5839
+ if (!meta) {
5840
+ return "";
5841
+ }
5842
+ let result = meta;
5843
+ const highlightReg = /{[\d,-]*}/i;
5844
+ const highlightMeta = (_highlightReg_exec = highlightReg.exec(meta)) === null || _highlightReg_exec === void 0 ? void 0 : _highlightReg_exec[0];
5845
+ if (highlightMeta) {
5846
+ result = meta.replace(highlightReg, "").trim();
5847
+ }
5848
+ var _result_split_;
5849
+ result = (_result_split_ = result.split("=")[1]) !== null && _result_split_ !== void 0 ? _result_split_ : "";
5850
+ return result === null || result === void 0 ? void 0 : result.replace(/["'`]/g, "");
5851
+ }
5852
+ function Pre({ children }) {
5853
+ if (Array.isArray(children)) {
5854
+ return /* @__PURE__ */ _jsx52("pre", {
5855
+ children
5856
+ });
5857
+ }
5858
+ const { className, meta } = children.props;
5859
+ const codeTitle = parseTitleFromMeta(meta);
5860
+ return /* @__PURE__ */ _jsxs32("div", {
5861
+ className: className || DEFAULT_LANGUAGE_CLASS,
5862
+ children: [
5863
+ codeTitle && /* @__PURE__ */ _jsx52("div", {
5864
+ className: "rspress-code-title",
5865
+ children: codeTitle
5866
+ }),
5867
+ /* @__PURE__ */ _jsx52("div", {
5868
+ className: "rspress-code-content",
5869
+ children
5870
+ })
5871
+ ]
5872
+ });
5873
+ }
5874
+
5875
+ // src/theme-default/layout/DocLayout/docComponents/code.tsx
5876
+ import { jsx as _jsx53, jsxs as _jsxs33, Fragment as _Fragment7 } from "react/jsx-runtime";
5877
+ import { PrismLight as SyntaxHighlighter } from "react-syntax-highlighter";
5878
+ import jsx from "react-syntax-highlighter/dist/esm/languages/prism/jsx";
5879
+ import js from "react-syntax-highlighter/dist/esm/languages/prism/javascript";
5880
+ import ts from "react-syntax-highlighter/dist/esm/languages/prism/typescript";
5881
+ import tsx from "react-syntax-highlighter/dist/esm/languages/prism/tsx";
5882
+ import json from "react-syntax-highlighter/dist/esm/languages/prism/json";
5883
+ import css from "react-syntax-highlighter/dist/esm/languages/prism/css";
5884
+ import scss from "react-syntax-highlighter/dist/esm/languages/prism/scss";
5885
+ import less from "react-syntax-highlighter/dist/esm/languages/prism/less";
5886
+ import xml from "react-syntax-highlighter/dist/esm/languages/prism/xml-doc";
5887
+ import yaml from "react-syntax-highlighter/dist/esm/languages/prism/yaml";
5888
+ import diff from "react-syntax-highlighter/dist/esm/languages/prism/diff";
5889
+ import bash from "react-syntax-highlighter/dist/esm/languages/prism/bash";
5890
+ import markdown from "react-syntax-highlighter/dist/esm/languages/prism/markdown";
5891
+ import copy from "copy-to-clipboard";
5892
+ import { useRef as useRef6 } from "react";
5893
+
5894
+ // src/theme-default/layout/DocLayout/docComponents/prisim-theme.ts
5895
+ var prisim_theme_default = {
5896
+ doctype: {
5897
+ color: "var(--code-token-text)",
5898
+ fontStyle: "italic"
5899
+ },
5900
+ token: {
5901
+ color: "var(--code-token-text)"
5902
+ },
5903
+ comment: {
5904
+ color: "var(--code-token-comment)"
5905
+ },
5906
+ punctuation: {
5907
+ color: "var(--code-token-punctuation)"
5908
+ },
5909
+ property: {
5910
+ color: "var(--code-token-parameter)"
5911
+ },
5912
+ constant: {
5913
+ color: "var(--code-token-constant)"
5914
+ },
5915
+ string: {
5916
+ color: "var(--code-token-string)"
5917
+ },
5918
+ symbol: {
5919
+ color: "var(--code-token-symbol)"
5920
+ },
5921
+ variable: {
5922
+ color: "var(--code-token-variable)"
5923
+ },
5924
+ "attr-name": {
5925
+ color: "var(--code-token-symbol)"
5926
+ },
5927
+ "attr-value": {
5928
+ color: "var(--code-token-string-expression)"
5929
+ },
5930
+ builtin: {
5931
+ color: "var(--code-token-symbol)"
5932
+ },
5933
+ function: {
5934
+ color: "var(--code-token-function)"
5935
+ },
5936
+ keyword: {
5937
+ color: "var(--code-token-keyword)"
5938
+ },
5939
+ tag: {
5940
+ color: "var(--code-token-function)"
5941
+ },
5942
+ inserted: {
5943
+ color: "#22863a"
5944
+ },
5945
+ deleted: {
5946
+ color: "#b31d28"
5947
+ },
5948
+ regex: {
5949
+ color: "var(--code-token-keyword)"
5950
+ },
5951
+ key: {
5952
+ color: "var(--code-token-variable)"
5953
+ },
5954
+ title: {
5955
+ color: "var(--code-token-keyword)"
5956
+ },
5957
+ important: {
5958
+ color: "#EBCB8B",
5959
+ fontWeight: "bold"
5960
+ },
5961
+ bold: {
5962
+ fontWeight: "bold"
5963
+ },
5964
+ italic: {
5965
+ fontStyle: "italic"
5966
+ }
5877
5967
  };
5878
5968
 
5879
- // src/theme-default/layout/DocLayout/docComponents/list.tsx
5880
- import { jsx as _jsx51 } from "react/jsx-runtime";
5969
+ // src/theme-default/layout/DocLayout/docComponents/code.tsx
5970
+ import { usePageData as usePageData14 } from "@/runtime";
5881
5971
  function _define_property33(obj, key, value) {
5882
5972
  if (key in obj) {
5883
5973
  Object.defineProperty(obj, key, {
@@ -5894,18 +5984,227 @@ function _define_property33(obj, key, value) {
5894
5984
  function _object_spread33(target) {
5895
5985
  for (var i = 1; i < arguments.length; i++) {
5896
5986
  var source = arguments[i] != null ? arguments[i] : {};
5897
- var ownKeys32 = Object.keys(source);
5987
+ var ownKeys36 = Object.keys(source);
5898
5988
  if (typeof Object.getOwnPropertySymbols === "function") {
5899
- ownKeys32 = ownKeys32.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
5989
+ ownKeys36 = ownKeys36.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
5900
5990
  return Object.getOwnPropertyDescriptor(source, sym).enumerable;
5901
5991
  }));
5902
5992
  }
5903
- ownKeys32.forEach(function(key) {
5993
+ ownKeys36.forEach(function(key) {
5904
5994
  _define_property33(target, key, source[key]);
5905
5995
  });
5906
5996
  }
5907
5997
  return target;
5908
5998
  }
5999
+ var registered = false;
6000
+ var timeoutIdMap = /* @__PURE__ */ new Map();
6001
+ function registerLanguages() {
6002
+ SyntaxHighlighter.registerLanguage("jsx", jsx);
6003
+ SyntaxHighlighter.registerLanguage("jsx", tsx);
6004
+ SyntaxHighlighter.registerLanguage("mdx", tsx);
6005
+ SyntaxHighlighter.registerLanguage("js", js);
6006
+ SyntaxHighlighter.registerLanguage("ts", ts);
6007
+ SyntaxHighlighter.registerLanguage("json", json);
6008
+ SyntaxHighlighter.registerLanguage("css", css);
6009
+ SyntaxHighlighter.registerLanguage("scss", scss);
6010
+ SyntaxHighlighter.registerLanguage("less", less);
6011
+ SyntaxHighlighter.registerLanguage("xml", xml);
6012
+ SyntaxHighlighter.registerLanguage("yaml", yaml);
6013
+ SyntaxHighlighter.registerLanguage("diff", diff);
6014
+ SyntaxHighlighter.registerLanguage("bash", bash);
6015
+ SyntaxHighlighter.registerLanguage("markdown", markdown);
6016
+ registered = true;
6017
+ }
6018
+ function Code(props) {
6019
+ const copyButtonRef = useRef6(null);
6020
+ const { siteData: siteData2 } = usePageData14();
6021
+ const { showLineNumbers } = siteData2.markdown;
6022
+ if (!registered) {
6023
+ registerLanguages();
6024
+ }
6025
+ const { className, meta } = props;
6026
+ const language = className === null || className === void 0 ? void 0 : className.replace(/language-/, "");
6027
+ if (!language) {
6028
+ return /* @__PURE__ */ _jsx53("code", _object_spread33({}, props));
6029
+ }
6030
+ let children;
6031
+ if (typeof props.children === "string") {
6032
+ children = props.children.trim();
6033
+ } else if (Array.isArray(props.children)) {
6034
+ children = props.children[0].trim();
6035
+ } else {
6036
+ children = "";
6037
+ }
6038
+ let highlightMeta = "";
6039
+ let highlightLines = [];
6040
+ if (meta) {
6041
+ var _highlightReg_exec;
6042
+ const highlightReg = /{[\d,-]*}/i;
6043
+ highlightMeta = ((_highlightReg_exec = highlightReg.exec(meta)) === null || _highlightReg_exec === void 0 ? void 0 : _highlightReg_exec[0]) || "";
6044
+ if (highlightMeta) {
6045
+ highlightLines = highlightMeta.replace(/[{}]/g, "").split(",").map((item) => {
6046
+ const [start, end] = item.split("-");
6047
+ if (end) {
6048
+ return Array.from({
6049
+ length: Number(end) - Number(start) + 1
6050
+ }, (_, i) => i + Number(start));
6051
+ }
6052
+ return Number(start);
6053
+ }).flat();
6054
+ }
6055
+ }
6056
+ const copyCode = () => {
6057
+ const isCopied = copy(children);
6058
+ const el = copyButtonRef.current;
6059
+ if (isCopied && el) {
6060
+ el.classList.add("copied");
6061
+ clearTimeout(timeoutIdMap.get(el));
6062
+ const timeoutId = setTimeout(() => {
6063
+ el.classList.remove("copied");
6064
+ el.blur();
6065
+ timeoutIdMap.delete(el);
6066
+ }, 2e3);
6067
+ timeoutIdMap.set(el, timeoutId);
6068
+ }
6069
+ };
6070
+ return /* @__PURE__ */ _jsxs33(_Fragment7, {
6071
+ children: [
6072
+ /* @__PURE__ */ _jsx53(SyntaxHighlighter, {
6073
+ language,
6074
+ style: prisim_theme_default,
6075
+ wrapLines: true,
6076
+ className: "code",
6077
+ customStyle: {
6078
+ backgroundColor: "inherit"
6079
+ },
6080
+ // Notice: if the highlight line is specified, the line number must be displayed
6081
+ showLineNumbers: showLineNumbers || highlightLines.length > 0,
6082
+ lineProps: (lineNumber) => {
6083
+ const isHighlighted = highlightLines.includes(lineNumber);
6084
+ return {
6085
+ className: isHighlighted ? "line highlighted" : "",
6086
+ style: {
6087
+ backgroundColor: isHighlighted ? "var(--rp-code-line-highlight-color)" : "",
6088
+ display: "block",
6089
+ padding: "0 1.25rem"
6090
+ }
6091
+ };
6092
+ },
6093
+ children
6094
+ }),
6095
+ /* @__PURE__ */ _jsx53("button", {
6096
+ className: "copy",
6097
+ onClick: copyCode,
6098
+ ref: copyButtonRef
6099
+ })
6100
+ ]
6101
+ });
6102
+ }
6103
+
6104
+ // src/theme-default/components/PackageManagerTabs/icons/Npm.tsx
6105
+ import { jsx as _jsx54, jsxs as _jsxs34 } from "react/jsx-runtime";
6106
+ function _define_property34(obj, key, value) {
6107
+ if (key in obj) {
6108
+ Object.defineProperty(obj, key, {
6109
+ value,
6110
+ enumerable: true,
6111
+ configurable: true,
6112
+ writable: true
6113
+ });
6114
+ } else {
6115
+ obj[key] = value;
6116
+ }
6117
+ return obj;
6118
+ }
6119
+ function _object_spread34(target) {
6120
+ for (var i = 1; i < arguments.length; i++) {
6121
+ var source = arguments[i] != null ? arguments[i] : {};
6122
+ var ownKeys36 = Object.keys(source);
6123
+ if (typeof Object.getOwnPropertySymbols === "function") {
6124
+ ownKeys36 = ownKeys36.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
6125
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
6126
+ }));
6127
+ }
6128
+ ownKeys36.forEach(function(key) {
6129
+ _define_property34(target, key, source[key]);
6130
+ });
6131
+ }
6132
+ return target;
6133
+ }
6134
+ function ownKeys26(object, enumerableOnly) {
6135
+ var keys = Object.keys(object);
6136
+ if (Object.getOwnPropertySymbols) {
6137
+ var symbols = Object.getOwnPropertySymbols(object);
6138
+ if (enumerableOnly) {
6139
+ symbols = symbols.filter(function(sym) {
6140
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
6141
+ });
6142
+ }
6143
+ keys.push.apply(keys, symbols);
6144
+ }
6145
+ return keys;
6146
+ }
6147
+ function _object_spread_props26(target, source) {
6148
+ source = source != null ? source : {};
6149
+ if (Object.getOwnPropertyDescriptors) {
6150
+ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
6151
+ } else {
6152
+ ownKeys26(Object(source)).forEach(function(key) {
6153
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
6154
+ });
6155
+ }
6156
+ return target;
6157
+ }
6158
+ function Npm(props) {
6159
+ return /* @__PURE__ */ _jsxs34("svg", _object_spread_props26(_object_spread34({
6160
+ xmlns: "http://www.w3.org/2000/svg",
6161
+ width: "1em",
6162
+ height: "1em",
6163
+ viewBox: "0 0 256 256"
6164
+ }, props), {
6165
+ children: [
6166
+ /* @__PURE__ */ _jsx54("path", {
6167
+ fill: "#C12127",
6168
+ d: "M0 256V0h256v256z"
6169
+ }),
6170
+ /* @__PURE__ */ _jsx54("path", {
6171
+ fill: "#FFF",
6172
+ d: "M48 48h160v160h-32V80h-48v128H48z"
6173
+ })
6174
+ ]
6175
+ }));
6176
+ }
6177
+
6178
+ // src/theme-default/components/PackageManagerTabs/icons/Yarn.tsx
6179
+ import { jsx as _jsx55, jsxs as _jsxs35 } from "react/jsx-runtime";
6180
+ function _define_property35(obj, key, value) {
6181
+ if (key in obj) {
6182
+ Object.defineProperty(obj, key, {
6183
+ value,
6184
+ enumerable: true,
6185
+ configurable: true,
6186
+ writable: true
6187
+ });
6188
+ } else {
6189
+ obj[key] = value;
6190
+ }
6191
+ return obj;
6192
+ }
6193
+ function _object_spread35(target) {
6194
+ for (var i = 1; i < arguments.length; i++) {
6195
+ var source = arguments[i] != null ? arguments[i] : {};
6196
+ var ownKeys36 = Object.keys(source);
6197
+ if (typeof Object.getOwnPropertySymbols === "function") {
6198
+ ownKeys36 = ownKeys36.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
6199
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
6200
+ }));
6201
+ }
6202
+ ownKeys36.forEach(function(key) {
6203
+ _define_property35(target, key, source[key]);
6204
+ });
6205
+ }
6206
+ return target;
6207
+ }
5909
6208
  function ownKeys27(object, enumerableOnly) {
5910
6209
  var keys = Object.keys(object);
5911
6210
  if (Object.getOwnPropertySymbols) {
@@ -5930,25 +6229,367 @@ function _object_spread_props27(target, source) {
5930
6229
  }
5931
6230
  return target;
5932
6231
  }
5933
- var Ol = (props) => {
5934
- return /* @__PURE__ */ _jsx51("ol", _object_spread_props27(_object_spread33({}, props), {
5935
- className: "list-decimal pl-5 my-4 leading-7"
5936
- }));
5937
- };
5938
- var Ul = (props) => {
5939
- return /* @__PURE__ */ _jsx51("ul", _object_spread_props27(_object_spread33({}, props), {
5940
- className: "list-disc pl-5 my-4 leading-7"
5941
- }));
5942
- };
5943
- var Li = (props) => {
5944
- return /* @__PURE__ */ _jsx51("li", _object_spread_props27(_object_spread33({}, props), {
5945
- className: "[&:not(:first-child)]:mt-2"
5946
- }));
5947
- };
6232
+ function Yarn(props) {
6233
+ return /* @__PURE__ */ _jsx55("svg", _object_spread_props27(_object_spread35({
6234
+ xmlns: "http://www.w3.org/2000/svg",
6235
+ width: "1em",
6236
+ height: "1em",
6237
+ viewBox: "0 0 128 128"
6238
+ }, props), {
6239
+ children: /* @__PURE__ */ _jsxs35("g", {
6240
+ fill: "#2c8ebb",
6241
+ children: [
6242
+ /* @__PURE__ */ _jsx55("path", {
6243
+ d: "M99.24 80.71C94.9 80.76 91.1 83 87.89 85c-6 3.71-9 3.47-9 3.47l-.1-.17c-.41-.67 1.92-6.68-.69-13.84c-2.82-7.83-7.3-9.72-6.94-10.32c1.53-2.59 5.36-6.7 6.89-14.36c.91-4.64.67-12.28-1.39-16.28c-.38-.74-3.78 1.24-3.78 1.24s-3.18-7.09-4.07-7.66c-2.87-1.84-6 7.61-6 7.61a14 14 0 0 0-11.71 4.5a9.64 9.64 0 0 1-3.85 2.27c-.41.14-.91.12-2.15 3.47c-1.9 5.07 3.24 10.81 3.24 10.81s-6.13 4.33-8.4 9.72a24.78 24.78 0 0 0-1.75 11.68s-4.36 3.78-4.64 7.68a12.87 12.87 0 0 0 1.77 7.83a1.94 1.94 0 0 0 2.63.91s-2.9 3.38-.19 4.81c2.47 1.29 6.63 2 8.83-.19c1.6-1.6 1.92-5.17 2.51-6.63c.14-.34.62.57 1.08 1a10 10 0 0 0 1.36 1s-3.9 1.68-2.3 5.51c.53 1.27 2.42 2.08 5.51 2.06c1.15 0 13.76-.72 17.12-1.53a4.33 4.33 0 0 0 2.61-1.46a63 63 0 0 0 15.49-7c4.74-3.09 6.68-3.93 10.51-4.84c3.16-.75 2.95-5.65-1.24-5.58z"
6244
+ }),
6245
+ /* @__PURE__ */ _jsx55("path", {
6246
+ d: "M64 2a62 62 0 1 0 62 62A62 62 0 0 0 64 2zm37.3 87.83c-3.35.81-4.91 1.44-9.41 4.36a67 67 0 0 1-15.56 7.18a8.71 8.71 0 0 1-3.64 1.77c-3.81.93-16.88 1.63-17.91 1.63h-.24c-4 0-6.27-1.24-7.49-2.54c-3.4 1.7-7.8 1-11-.69a5.55 5.55 0 0 1-3-3.9a6 6 0 0 1 0-2.06a6.66 6.66 0 0 1-.79-1A16.38 16.38 0 0 1 30 84.52c.29-3.73 2.87-7.06 4.55-8.83A28.56 28.56 0 0 1 36.61 64a26.82 26.82 0 0 1 6.82-9c-1.65-2.78-3.33-7.06-1.7-11.42c1.17-3.11 2.13-4.84 4.24-5.58a6.84 6.84 0 0 0 2.51-1.34A17.65 17.65 0 0 1 60.34 31c.19-.48.41-1 .65-1.46c1.6-3.4 3.3-5.31 5.29-6a4.88 4.88 0 0 1 4.4.5c.65.43 1.48 1 3.9 6a4.69 4.69 0 0 1 2.85-.1a3.81 3.81 0 0 1 2.39 1.94c2.47 4.74 2.8 13.19 1.72 18.62a33.8 33.8 0 0 1-5.84 13.31a25.73 25.73 0 0 1 5.77 9.43a25.42 25.42 0 0 1 1.41 10.41A28.7 28.7 0 0 0 86 81.91c3.06-1.89 7.68-4.74 13.19-4.81a6.62 6.62 0 0 1 7 5.7a6.35 6.35 0 0 1-4.89 7.03z"
6247
+ })
6248
+ ]
6249
+ })
6250
+ }));
6251
+ }
6252
+
6253
+ // src/theme-default/components/PackageManagerTabs/icons/Pnpm.tsx
6254
+ import { jsx as _jsx56, jsxs as _jsxs36 } from "react/jsx-runtime";
6255
+ function _define_property36(obj, key, value) {
6256
+ if (key in obj) {
6257
+ Object.defineProperty(obj, key, {
6258
+ value,
6259
+ enumerable: true,
6260
+ configurable: true,
6261
+ writable: true
6262
+ });
6263
+ } else {
6264
+ obj[key] = value;
6265
+ }
6266
+ return obj;
6267
+ }
6268
+ function _object_spread36(target) {
6269
+ for (var i = 1; i < arguments.length; i++) {
6270
+ var source = arguments[i] != null ? arguments[i] : {};
6271
+ var ownKeys36 = Object.keys(source);
6272
+ if (typeof Object.getOwnPropertySymbols === "function") {
6273
+ ownKeys36 = ownKeys36.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
6274
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
6275
+ }));
6276
+ }
6277
+ ownKeys36.forEach(function(key) {
6278
+ _define_property36(target, key, source[key]);
6279
+ });
6280
+ }
6281
+ return target;
6282
+ }
6283
+ function ownKeys28(object, enumerableOnly) {
6284
+ var keys = Object.keys(object);
6285
+ if (Object.getOwnPropertySymbols) {
6286
+ var symbols = Object.getOwnPropertySymbols(object);
6287
+ if (enumerableOnly) {
6288
+ symbols = symbols.filter(function(sym) {
6289
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
6290
+ });
6291
+ }
6292
+ keys.push.apply(keys, symbols);
6293
+ }
6294
+ return keys;
6295
+ }
6296
+ function _object_spread_props28(target, source) {
6297
+ source = source != null ? source : {};
6298
+ if (Object.getOwnPropertyDescriptors) {
6299
+ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
6300
+ } else {
6301
+ ownKeys28(Object(source)).forEach(function(key) {
6302
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
6303
+ });
6304
+ }
6305
+ return target;
6306
+ }
6307
+ function Pnpm(props) {
6308
+ return /* @__PURE__ */ _jsxs36("svg", _object_spread_props28(_object_spread36({
6309
+ xmlns: "http://www.w3.org/2000/svg",
6310
+ width: "1em",
6311
+ height: "1em",
6312
+ viewBox: "0 0 128 128"
6313
+ }, props), {
6314
+ children: [
6315
+ /* @__PURE__ */ _jsx56("path", {
6316
+ fill: "#f8ab00",
6317
+ d: "M0 .004V40h39.996V.004Zm43.996 0V40h40V.004Zm44.008 0V40H128V.004Zm0 43.996v39.996H128V44Z"
6318
+ }),
6319
+ /* @__PURE__ */ _jsx56("path", {
6320
+ fill: "#4c4c4c",
6321
+ d: "M43.996 44v39.996h40V44ZM0 87.996v40h39.996v-40Zm43.996 0v40h40v-40Zm44.008 0v40H128v-40Z"
6322
+ })
6323
+ ]
6324
+ }));
6325
+ }
6326
+
6327
+ // src/theme-default/components/PackageManagerTabs/icons/Bun.tsx
6328
+ import { jsx as _jsx57, jsxs as _jsxs37 } from "react/jsx-runtime";
6329
+ function _define_property37(obj, key, value) {
6330
+ if (key in obj) {
6331
+ Object.defineProperty(obj, key, {
6332
+ value,
6333
+ enumerable: true,
6334
+ configurable: true,
6335
+ writable: true
6336
+ });
6337
+ } else {
6338
+ obj[key] = value;
6339
+ }
6340
+ return obj;
6341
+ }
6342
+ function _object_spread37(target) {
6343
+ for (var i = 1; i < arguments.length; i++) {
6344
+ var source = arguments[i] != null ? arguments[i] : {};
6345
+ var ownKeys36 = Object.keys(source);
6346
+ if (typeof Object.getOwnPropertySymbols === "function") {
6347
+ ownKeys36 = ownKeys36.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
6348
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
6349
+ }));
6350
+ }
6351
+ ownKeys36.forEach(function(key) {
6352
+ _define_property37(target, key, source[key]);
6353
+ });
6354
+ }
6355
+ return target;
6356
+ }
6357
+ function ownKeys29(object, enumerableOnly) {
6358
+ var keys = Object.keys(object);
6359
+ if (Object.getOwnPropertySymbols) {
6360
+ var symbols = Object.getOwnPropertySymbols(object);
6361
+ if (enumerableOnly) {
6362
+ symbols = symbols.filter(function(sym) {
6363
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
6364
+ });
6365
+ }
6366
+ keys.push.apply(keys, symbols);
6367
+ }
6368
+ return keys;
6369
+ }
6370
+ function _object_spread_props29(target, source) {
6371
+ source = source != null ? source : {};
6372
+ if (Object.getOwnPropertyDescriptors) {
6373
+ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
6374
+ } else {
6375
+ ownKeys29(Object(source)).forEach(function(key) {
6376
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
6377
+ });
6378
+ }
6379
+ return target;
6380
+ }
6381
+ function Bun(props) {
6382
+ return /* @__PURE__ */ _jsxs37("svg", _object_spread_props29(_object_spread37({
6383
+ id: "Bun",
6384
+ width: "1.2em",
6385
+ height: "1.2em",
6386
+ viewBox: "0 0 80 70"
6387
+ }, props), {
6388
+ children: [
6389
+ /* @__PURE__ */ _jsx57("path", {
6390
+ id: "Shadow",
6391
+ d: "M71.09,20.74c-.16-.17-.33-.34-.5-.5s-.33-.34-.5-.5-.33-.34-.5-.5-.33-.34-.5-.5-.33-.34-.5-.5-.33-.34-.5-.5-.33-.34-.5-.5A26.46,26.46,0,0,1,75.5,35.7c0,16.57-16.82,30.05-37.5,30.05-11.58,0-21.94-4.23-28.83-10.86l.5.5.5.5.5.5.5.5.5.5.5.5.5.5C19.55,65.3,30.14,69.75,42,69.75c20.68,0,37.5-13.48,37.5-30C79.5,32.69,76.46,26,71.09,20.74Z"
6392
+ }),
6393
+ /* @__PURE__ */ _jsxs37("g", {
6394
+ id: "Body",
6395
+ children: [
6396
+ /* @__PURE__ */ _jsx57("path", {
6397
+ id: "Background",
6398
+ d: "M73,35.7c0,15.21-15.67,27.54-35,27.54S3,50.91,3,35.7C3,26.27,9,17.94,18.22,13S33.18,3,38,3s8.94,4.13,19.78,10C67,17.94,73,26.27,73,35.7Z",
6399
+ style: {
6400
+ fill: "#fbf0df"
6401
+ }
6402
+ }),
6403
+ /* @__PURE__ */ _jsx57("path", {
6404
+ id: "Bottom_Shadow",
6405
+ "data-name": "Bottom Shadow",
6406
+ d: "M73,35.7a21.67,21.67,0,0,0-.8-5.78c-2.73,33.3-43.35,34.9-59.32,24.94A40,40,0,0,0,38,63.24C57.3,63.24,73,50.89,73,35.7Z",
6407
+ style: {
6408
+ fill: "#f6dece"
6409
+ }
6410
+ }),
6411
+ /* @__PURE__ */ _jsx57("path", {
6412
+ id: "Light_Shine",
6413
+ "data-name": "Light Shine",
6414
+ d: "M24.53,11.17C29,8.49,34.94,3.46,40.78,3.45A9.29,9.29,0,0,0,38,3c-2.42,0-5,1.25-8.25,3.13-1.13.66-2.3,1.39-3.54,2.15-2.33,1.44-5,3.07-8,4.7C8.69,18.13,3,26.62,3,35.7c0,.4,0,.8,0,1.19C9.06,15.48,20.07,13.85,24.53,11.17Z",
6415
+ style: {
6416
+ fill: "#fffefc"
6417
+ }
6418
+ }),
6419
+ /* @__PURE__ */ _jsx57("path", {
6420
+ id: "Top",
6421
+ d: "M35.12,5.53A16.41,16.41,0,0,1,29.49,18c-.28.25-.06.73.3.59,3.37-1.31,7.92-5.23,6-13.14C35.71,5,35.12,5.12,35.12,5.53Zm2.27,0A16.24,16.24,0,0,1,39,19c-.12.35.31.65.55.36C41.74,16.56,43.65,11,37.93,5,37.64,4.74,37.19,5.14,37.39,5.49Zm2.76-.17A16.42,16.42,0,0,1,47,17.12a.33.33,0,0,0,.65.11c.92-3.49.4-9.44-7.17-12.53C40.08,4.54,39.82,5.08,40.15,5.32ZM21.69,15.76a16.94,16.94,0,0,0,10.47-9c.18-.36.75-.22.66.18-1.73,8-7.52,9.67-11.12,9.45C21.32,16.4,21.33,15.87,21.69,15.76Z",
6422
+ style: {
6423
+ fill: "#ccbea7",
6424
+ fillRule: "evenodd"
6425
+ }
6426
+ }),
6427
+ /* @__PURE__ */ _jsx57("path", {
6428
+ id: "Outline",
6429
+ d: "M38,65.75C17.32,65.75.5,52.27.5,35.7c0-10,6.18-19.33,16.53-24.92,3-1.6,5.57-3.21,7.86-4.62,1.26-.78,2.45-1.51,3.6-2.19C32,1.89,35,.5,38,.5s5.62,1.2,8.9,3.14c1,.57,2,1.19,3.07,1.87,2.49,1.54,5.3,3.28,9,5.27C69.32,16.37,75.5,25.69,75.5,35.7,75.5,52.27,58.68,65.75,38,65.75ZM38,3c-2.42,0-5,1.25-8.25,3.13-1.13.66-2.3,1.39-3.54,2.15-2.33,1.44-5,3.07-8,4.7C8.69,18.13,3,26.62,3,35.7,3,50.89,18.7,63.25,38,63.25S73,50.89,73,35.7C73,26.62,67.31,18.13,57.78,13,54,11,51.05,9.12,48.66,7.64c-1.09-.67-2.09-1.29-3-1.84C42.63,4,40.42,3,38,3Z"
6430
+ })
6431
+ ]
6432
+ }),
6433
+ /* @__PURE__ */ _jsxs37("g", {
6434
+ id: "Mouth",
6435
+ children: [
6436
+ /* @__PURE__ */ _jsx57("g", {
6437
+ id: "Background-2",
6438
+ "data-name": "Background",
6439
+ children: /* @__PURE__ */ _jsx57("path", {
6440
+ d: "M45.05,43a8.93,8.93,0,0,1-2.92,4.71,6.81,6.81,0,0,1-4,1.88A6.84,6.84,0,0,1,34,47.71,8.93,8.93,0,0,1,31.12,43a.72.72,0,0,1,.8-.81H44.26A.72.72,0,0,1,45.05,43Z",
6441
+ style: {
6442
+ fill: "#b71422"
6443
+ }
6444
+ })
6445
+ }),
6446
+ /* @__PURE__ */ _jsxs37("g", {
6447
+ id: "Tongue",
6448
+ children: [
6449
+ /* @__PURE__ */ _jsx57("path", {
6450
+ id: "Background-3",
6451
+ "data-name": "Background",
6452
+ d: "M34,47.79a6.91,6.91,0,0,0,4.12,1.9,6.91,6.91,0,0,0,4.11-1.9,10.63,10.63,0,0,0,1-1.07,6.83,6.83,0,0,0-4.9-2.31,6.15,6.15,0,0,0-5,2.78C33.56,47.4,33.76,47.6,34,47.79Z",
6453
+ style: {
6454
+ fill: "#ff6164"
6455
+ }
6456
+ }),
6457
+ /* @__PURE__ */ _jsx57("path", {
6458
+ id: "Outline-2",
6459
+ "data-name": "Outline",
6460
+ d: "M34.16,47a5.36,5.36,0,0,1,4.19-2.08,6,6,0,0,1,4,1.69c.23-.25.45-.51.66-.77a7,7,0,0,0-4.71-1.93,6.36,6.36,0,0,0-4.89,2.36A9.53,9.53,0,0,0,34.16,47Z"
6461
+ })
6462
+ ]
6463
+ }),
6464
+ /* @__PURE__ */ _jsx57("path", {
6465
+ id: "Outline-3",
6466
+ "data-name": "Outline",
6467
+ d: "M38.09,50.19a7.42,7.42,0,0,1-4.45-2,9.52,9.52,0,0,1-3.11-5.05,1.2,1.2,0,0,1,.26-1,1.41,1.41,0,0,1,1.13-.51H44.26a1.44,1.44,0,0,1,1.13.51,1.19,1.19,0,0,1,.25,1h0a9.52,9.52,0,0,1-3.11,5.05A7.42,7.42,0,0,1,38.09,50.19Zm-6.17-7.4c-.16,0-.2.07-.21.09a8.29,8.29,0,0,0,2.73,4.37A6.23,6.23,0,0,0,38.09,49a6.28,6.28,0,0,0,3.65-1.73,8.3,8.3,0,0,0,2.72-4.37.21.21,0,0,0-.2-.09Z"
6468
+ })
6469
+ ]
6470
+ }),
6471
+ /* @__PURE__ */ _jsxs37("g", {
6472
+ id: "Face",
6473
+ children: [
6474
+ /* @__PURE__ */ _jsx57("ellipse", {
6475
+ id: "Right_Blush",
6476
+ "data-name": "Right Blush",
6477
+ cx: "53.22",
6478
+ cy: "40.18",
6479
+ rx: "5.85",
6480
+ ry: "3.44",
6481
+ style: {
6482
+ fill: "#febbd0"
6483
+ }
6484
+ }),
6485
+ /* @__PURE__ */ _jsx57("ellipse", {
6486
+ id: "Left_Bluch",
6487
+ "data-name": "Left Bluch",
6488
+ cx: "22.95",
6489
+ cy: "40.18",
6490
+ rx: "5.85",
6491
+ ry: "3.44",
6492
+ style: {
6493
+ fill: "#febbd0"
6494
+ }
6495
+ }),
6496
+ /* @__PURE__ */ _jsx57("path", {
6497
+ id: "Eyes",
6498
+ d: "M25.7,38.8a5.51,5.51,0,1,0-5.5-5.51A5.51,5.51,0,0,0,25.7,38.8Zm24.77,0A5.51,5.51,0,1,0,45,33.29,5.5,5.5,0,0,0,50.47,38.8Z",
6499
+ style: {
6500
+ fillRule: "evenodd"
6501
+ }
6502
+ }),
6503
+ /* @__PURE__ */ _jsx57("path", {
6504
+ id: "Iris",
6505
+ d: "M24,33.64a2.07,2.07,0,1,0-2.06-2.07A2.07,2.07,0,0,0,24,33.64Zm24.77,0a2.07,2.07,0,1,0-2.06-2.07A2.07,2.07,0,0,0,48.75,33.64Z",
6506
+ style: {
6507
+ fill: "#fff",
6508
+ fillRule: "evenodd"
6509
+ }
6510
+ })
6511
+ ]
6512
+ })
6513
+ ]
6514
+ }));
6515
+ }
6516
+
6517
+ // src/theme-default/components/PackageManagerTabs/index.tsx
6518
+ import { Tab as Tab2 } from "@theme";
6519
+ function normalizeCommand(command) {
6520
+ if (!command.includes("install")) {
6521
+ return command;
6522
+ }
6523
+ const pureCommand = command.split(" ").filter((item) => !item.startsWith("-") && !item.startsWith("--")).join(" ");
6524
+ if (pureCommand === "yarn install" || pureCommand === "bun install") {
6525
+ return command;
6526
+ } else {
6527
+ return command.replace("install", "add");
6528
+ }
6529
+ }
6530
+ function PackageManagerTabs({ command, additionalTabs = [] }) {
6531
+ let commandInfo;
6532
+ const packageMangerToIcon = {
6533
+ npm: /* @__PURE__ */ _jsx58(Npm, {}),
6534
+ yarn: /* @__PURE__ */ _jsx58(Yarn, {}),
6535
+ pnpm: /* @__PURE__ */ _jsx58(Pnpm, {}),
6536
+ bun: /* @__PURE__ */ _jsx58(Bun, {})
6537
+ };
6538
+ additionalTabs.forEach((tab) => {
6539
+ packageMangerToIcon[tab.tool] = tab.icon;
6540
+ });
6541
+ if (typeof command === "string") {
6542
+ commandInfo = {
6543
+ npm: `npm ${command}`,
6544
+ yarn: `yarn ${command}`,
6545
+ pnpm: `pnpm ${command}`,
6546
+ bun: `bun ${command}`
6547
+ };
6548
+ additionalTabs.forEach((tab) => {
6549
+ commandInfo[tab.tool] = `${tab.tool} ${command}`;
6550
+ });
6551
+ } else {
6552
+ commandInfo = command;
6553
+ }
6554
+ commandInfo.yarn = normalizeCommand(commandInfo.yarn);
6555
+ commandInfo.bun = normalizeCommand(commandInfo.bun);
6556
+ return /* @__PURE__ */ _jsx58(Tabs, {
6557
+ values: Object.entries(commandInfo).map(([key]) => /* @__PURE__ */ _jsxs38("div", {
6558
+ style: {
6559
+ display: "flex",
6560
+ alignItems: "center",
6561
+ fontSize: 15
6562
+ },
6563
+ children: [
6564
+ packageMangerToIcon[key],
6565
+ /* @__PURE__ */ _jsx58("span", {
6566
+ style: {
6567
+ marginLeft: 6,
6568
+ marginBottom: 2
6569
+ },
6570
+ children: key
6571
+ })
6572
+ ]
6573
+ }, key)),
6574
+ children: Object.entries(commandInfo).map(([key, value]) => /* @__PURE__ */ _jsx58(Tab, {
6575
+ children: /* @__PURE__ */ _jsx58(Pre, {
6576
+ children: /* @__PURE__ */ _jsx58(Code, {
6577
+ className: "language-js",
6578
+ children: value
6579
+ })
6580
+ })
6581
+ }, key))
6582
+ });
6583
+ }
5948
6584
 
5949
- // src/theme-default/layout/DocLayout/docComponents/table.tsx
5950
- import { jsx as _jsx52 } from "react/jsx-runtime";
5951
- function _define_property34(obj, key, value) {
6585
+ // src/theme-default/layout/DocLayout/docComponents/title.tsx
6586
+ import { jsx as _jsx59 } from "react/jsx-runtime";
6587
+
6588
+ // src/theme-default/layout/DocLayout/docComponents/index.module.scss
6589
+ var index_module_default17 = { "title": "title_f1ea0", "blockquote": "blockquote_f1ea0", "link": "link_f1ea0" };
6590
+
6591
+ // src/theme-default/layout/DocLayout/docComponents/title.tsx
6592
+ function _define_property38(obj, key, value) {
5952
6593
  if (key in obj) {
5953
6594
  Object.defineProperty(obj, key, {
5954
6595
  value,
@@ -5961,22 +6602,22 @@ function _define_property34(obj, key, value) {
5961
6602
  }
5962
6603
  return obj;
5963
6604
  }
5964
- function _object_spread34(target) {
6605
+ function _object_spread38(target) {
5965
6606
  for (var i = 1; i < arguments.length; i++) {
5966
6607
  var source = arguments[i] != null ? arguments[i] : {};
5967
- var ownKeys32 = Object.keys(source);
6608
+ var ownKeys36 = Object.keys(source);
5968
6609
  if (typeof Object.getOwnPropertySymbols === "function") {
5969
- ownKeys32 = ownKeys32.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
6610
+ ownKeys36 = ownKeys36.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
5970
6611
  return Object.getOwnPropertyDescriptor(source, sym).enumerable;
5971
6612
  }));
5972
6613
  }
5973
- ownKeys32.forEach(function(key) {
5974
- _define_property34(target, key, source[key]);
6614
+ ownKeys36.forEach(function(key) {
6615
+ _define_property38(target, key, source[key]);
5975
6616
  });
5976
6617
  }
5977
6618
  return target;
5978
6619
  }
5979
- function ownKeys28(object, enumerableOnly) {
6620
+ function ownKeys30(object, enumerableOnly) {
5980
6621
  var keys = Object.keys(object);
5981
6622
  if (Object.getOwnPropertySymbols) {
5982
6623
  var symbols = Object.getOwnPropertySymbols(object);
@@ -5989,103 +6630,51 @@ function ownKeys28(object, enumerableOnly) {
5989
6630
  }
5990
6631
  return keys;
5991
6632
  }
5992
- function _object_spread_props28(target, source) {
6633
+ function _object_spread_props30(target, source) {
5993
6634
  source = source != null ? source : {};
5994
6635
  if (Object.getOwnPropertyDescriptors) {
5995
6636
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
5996
6637
  } else {
5997
- ownKeys28(Object(source)).forEach(function(key) {
6638
+ ownKeys30(Object(source)).forEach(function(key) {
5998
6639
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
5999
6640
  });
6000
6641
  }
6001
6642
  return target;
6002
6643
  }
6003
- var Table = (props) => {
6004
- return /* @__PURE__ */ _jsx52("table", _object_spread_props28(_object_spread34({}, props), {
6005
- className: "table border-collapse text-base my-5 overflow-x-auto leading-7 border-gray-light-2"
6644
+ var H1 = (props) => {
6645
+ return /* @__PURE__ */ _jsx59("h1", _object_spread_props30(_object_spread38({}, props), {
6646
+ className: `text-3xl mb-10 leading-10 tracking-tight ${index_module_default17.title}`
6006
6647
  }));
6007
6648
  };
6008
- var Tr = (props) => {
6009
- return /* @__PURE__ */ _jsx52("tr", _object_spread_props28(_object_spread34({}, props), {
6010
- className: "border border-solid transition-colors duration-500 even:bg-soft border-gray-light-2"
6649
+ var H2 = (props) => {
6650
+ return /* @__PURE__ */ _jsx59("h2", _object_spread_props30(_object_spread38({}, props), {
6651
+ className: `mt-14 mb-6 text-2xl tracking-tight ${index_module_default17.title}`
6011
6652
  }));
6012
6653
  };
6013
- var Td = (props) => {
6014
- return /* @__PURE__ */ _jsx52("td", _object_spread_props28(_object_spread34({}, props), {
6015
- className: "border border-solid px-4 py-2 border-gray-light-2"
6654
+ var H3 = (props) => {
6655
+ return /* @__PURE__ */ _jsx59("h3", _object_spread_props30(_object_spread38({}, props), {
6656
+ className: `mt-10 mb-2 leading-7 text-xl ${index_module_default17.title}`
6016
6657
  }));
6017
6658
  };
6018
- var Th = (props) => {
6019
- return /* @__PURE__ */ _jsx52("th", _object_spread_props28(_object_spread34({}, props), {
6020
- className: "border border-solid px-4 py-2 text-text-1 text-base font-semibold border-gray-light-2"
6659
+ var H4 = (props) => {
6660
+ return /* @__PURE__ */ _jsx59("h4", _object_spread_props30(_object_spread38({}, props), {
6661
+ className: `mt-8 leading-6 text-base ${index_module_default17.title}`
6021
6662
  }));
6022
6663
  };
6023
-
6024
- // src/theme-default/layout/DocLayout/docComponents/hr.tsx
6025
- import { jsx as _jsx53 } from "react/jsx-runtime";
6026
- function _define_property35(obj, key, value) {
6027
- if (key in obj) {
6028
- Object.defineProperty(obj, key, {
6029
- value,
6030
- enumerable: true,
6031
- configurable: true,
6032
- writable: true
6033
- });
6034
- } else {
6035
- obj[key] = value;
6036
- }
6037
- return obj;
6038
- }
6039
- function _object_spread35(target) {
6040
- for (var i = 1; i < arguments.length; i++) {
6041
- var source = arguments[i] != null ? arguments[i] : {};
6042
- var ownKeys32 = Object.keys(source);
6043
- if (typeof Object.getOwnPropertySymbols === "function") {
6044
- ownKeys32 = ownKeys32.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
6045
- return Object.getOwnPropertyDescriptor(source, sym).enumerable;
6046
- }));
6047
- }
6048
- ownKeys32.forEach(function(key) {
6049
- _define_property35(target, key, source[key]);
6050
- });
6051
- }
6052
- return target;
6053
- }
6054
- function ownKeys29(object, enumerableOnly) {
6055
- var keys = Object.keys(object);
6056
- if (Object.getOwnPropertySymbols) {
6057
- var symbols = Object.getOwnPropertySymbols(object);
6058
- if (enumerableOnly) {
6059
- symbols = symbols.filter(function(sym) {
6060
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
6061
- });
6062
- }
6063
- keys.push.apply(keys, symbols);
6064
- }
6065
- return keys;
6066
- }
6067
- function _object_spread_props29(target, source) {
6068
- source = source != null ? source : {};
6069
- if (Object.getOwnPropertyDescriptors) {
6070
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
6071
- } else {
6072
- ownKeys29(Object(source)).forEach(function(key) {
6073
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
6074
- });
6075
- }
6076
- return target;
6077
- }
6078
- var Hr = (props) => {
6079
- return /* @__PURE__ */ _jsx53("hr", _object_spread_props29(_object_spread35({}, props), {
6080
- className: "my-12 border-t bordder-solid border-divider-light"
6664
+ var H5 = (props) => {
6665
+ return /* @__PURE__ */ _jsx59("h5", _object_spread_props30(_object_spread38({}, props), {
6666
+ className: index_module_default17.title
6667
+ }));
6668
+ };
6669
+ var H6 = (props) => {
6670
+ return /* @__PURE__ */ _jsx59("h6", _object_spread_props30(_object_spread38({}, props), {
6671
+ className: index_module_default17.title
6081
6672
  }));
6082
6673
  };
6083
6674
 
6084
- // src/theme-default/layout/DocLayout/docComponents/link.tsx
6085
- import { jsx as _jsx54 } from "react/jsx-runtime";
6086
- import { isExternalUrl, normalizeHref as normalizeHref9, normalizeSlash as normalizeSlash2 } from "@rspress/shared";
6087
- import { withBase as withBase8, useLang, usePageData as usePageData13, removeBase as removeBase3 } from "@/runtime";
6088
- function _define_property36(obj, key, value) {
6675
+ // src/theme-default/layout/DocLayout/docComponents/list.tsx
6676
+ import { jsx as _jsx60 } from "react/jsx-runtime";
6677
+ function _define_property39(obj, key, value) {
6089
6678
  if (key in obj) {
6090
6679
  Object.defineProperty(obj, key, {
6091
6680
  value,
@@ -6098,22 +6687,22 @@ function _define_property36(obj, key, value) {
6098
6687
  }
6099
6688
  return obj;
6100
6689
  }
6101
- function _object_spread36(target) {
6690
+ function _object_spread39(target) {
6102
6691
  for (var i = 1; i < arguments.length; i++) {
6103
6692
  var source = arguments[i] != null ? arguments[i] : {};
6104
- var ownKeys32 = Object.keys(source);
6693
+ var ownKeys36 = Object.keys(source);
6105
6694
  if (typeof Object.getOwnPropertySymbols === "function") {
6106
- ownKeys32 = ownKeys32.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
6695
+ ownKeys36 = ownKeys36.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
6107
6696
  return Object.getOwnPropertyDescriptor(source, sym).enumerable;
6108
6697
  }));
6109
6698
  }
6110
- ownKeys32.forEach(function(key) {
6111
- _define_property36(target, key, source[key]);
6699
+ ownKeys36.forEach(function(key) {
6700
+ _define_property39(target, key, source[key]);
6112
6701
  });
6113
6702
  }
6114
6703
  return target;
6115
6704
  }
6116
- function ownKeys30(object, enumerableOnly) {
6705
+ function ownKeys31(object, enumerableOnly) {
6117
6706
  var keys = Object.keys(object);
6118
6707
  if (Object.getOwnPropertySymbols) {
6119
6708
  var symbols = Object.getOwnPropertySymbols(object);
@@ -6126,42 +6715,36 @@ function ownKeys30(object, enumerableOnly) {
6126
6715
  }
6127
6716
  return keys;
6128
6717
  }
6129
- function _object_spread_props30(target, source) {
6718
+ function _object_spread_props31(target, source) {
6130
6719
  source = source != null ? source : {};
6131
6720
  if (Object.getOwnPropertyDescriptors) {
6132
6721
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
6133
6722
  } else {
6134
- ownKeys30(Object(source)).forEach(function(key) {
6723
+ ownKeys31(Object(source)).forEach(function(key) {
6135
6724
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
6136
6725
  });
6137
6726
  }
6138
6727
  return target;
6139
6728
  }
6140
- var A = (props) => {
6141
- let { href = "" } = props;
6142
- const lang = useLang();
6143
- const pageData = usePageData13();
6144
- const defaultLang = pageData.siteData.lang;
6145
- if (defaultLang && !isExternalUrl(href) && !href.startsWith("#")) {
6146
- href = normalizeSlash2(href);
6147
- const startWithLang = removeBase3(href).startsWith(`/${lang}`);
6148
- if (lang !== defaultLang && !startWithLang) {
6149
- href = `/${lang}${href}`;
6150
- }
6151
- if (lang === defaultLang && startWithLang) {
6152
- href = removeBase3(href).replace(`/${lang}`, "");
6153
- }
6154
- href = normalizeHref9(withBase8(href || ""));
6155
- }
6156
- return /* @__PURE__ */ _jsx54("a", _object_spread_props30(_object_spread36({}, props), {
6157
- className: `${index_module_default18.link} ${props.className}`,
6158
- href
6729
+ var Ol = (props) => {
6730
+ return /* @__PURE__ */ _jsx60("ol", _object_spread_props31(_object_spread39({}, props), {
6731
+ className: "list-decimal pl-5 my-4 leading-7"
6732
+ }));
6733
+ };
6734
+ var Ul = (props) => {
6735
+ return /* @__PURE__ */ _jsx60("ul", _object_spread_props31(_object_spread39({}, props), {
6736
+ className: "list-disc pl-5 my-4 leading-7"
6737
+ }));
6738
+ };
6739
+ var Li = (props) => {
6740
+ return /* @__PURE__ */ _jsx60("li", _object_spread_props31(_object_spread39({}, props), {
6741
+ className: "[&:not(:first-child)]:mt-2"
6159
6742
  }));
6160
6743
  };
6161
6744
 
6162
- // src/theme-default/layout/DocLayout/docComponents/paragraph.tsx
6163
- import { jsx as _jsx55 } from "react/jsx-runtime";
6164
- function _define_property37(obj, key, value) {
6745
+ // src/theme-default/layout/DocLayout/docComponents/table.tsx
6746
+ import { jsx as _jsx61 } from "react/jsx-runtime";
6747
+ function _define_property40(obj, key, value) {
6165
6748
  if (key in obj) {
6166
6749
  Object.defineProperty(obj, key, {
6167
6750
  value,
@@ -6174,22 +6757,22 @@ function _define_property37(obj, key, value) {
6174
6757
  }
6175
6758
  return obj;
6176
6759
  }
6177
- function _object_spread37(target) {
6760
+ function _object_spread40(target) {
6178
6761
  for (var i = 1; i < arguments.length; i++) {
6179
6762
  var source = arguments[i] != null ? arguments[i] : {};
6180
- var ownKeys32 = Object.keys(source);
6763
+ var ownKeys36 = Object.keys(source);
6181
6764
  if (typeof Object.getOwnPropertySymbols === "function") {
6182
- ownKeys32 = ownKeys32.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
6765
+ ownKeys36 = ownKeys36.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
6183
6766
  return Object.getOwnPropertyDescriptor(source, sym).enumerable;
6184
6767
  }));
6185
6768
  }
6186
- ownKeys32.forEach(function(key) {
6187
- _define_property37(target, key, source[key]);
6769
+ ownKeys36.forEach(function(key) {
6770
+ _define_property40(target, key, source[key]);
6188
6771
  });
6189
6772
  }
6190
6773
  return target;
6191
6774
  }
6192
- function ownKeys31(object, enumerableOnly) {
6775
+ function ownKeys32(object, enumerableOnly) {
6193
6776
  var keys = Object.keys(object);
6194
6777
  if (Object.getOwnPropertySymbols) {
6195
6778
  var symbols = Object.getOwnPropertySymbols(object);
@@ -6202,130 +6785,41 @@ function ownKeys31(object, enumerableOnly) {
6202
6785
  }
6203
6786
  return keys;
6204
6787
  }
6205
- function _object_spread_props31(target, source) {
6788
+ function _object_spread_props32(target, source) {
6206
6789
  source = source != null ? source : {};
6207
6790
  if (Object.getOwnPropertyDescriptors) {
6208
6791
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
6209
6792
  } else {
6210
- ownKeys31(Object(source)).forEach(function(key) {
6793
+ ownKeys32(Object(source)).forEach(function(key) {
6211
6794
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
6212
6795
  });
6213
6796
  }
6214
6797
  return target;
6215
6798
  }
6216
- var P = (props) => {
6217
- return /* @__PURE__ */ _jsx55("p", _object_spread_props31(_object_spread37({}, props), {
6218
- className: "my-4 leading-7"
6799
+ var Table = (props) => {
6800
+ return /* @__PURE__ */ _jsx61("table", _object_spread_props32(_object_spread40({}, props), {
6801
+ className: "table border-collapse text-base my-5 overflow-x-auto leading-7 border-gray-light-2"
6219
6802
  }));
6220
6803
  };
6221
- var Blockquote = (props) => {
6222
- return /* @__PURE__ */ _jsx55("blockquote", _object_spread_props31(_object_spread37({}, props), {
6223
- className: `border-l-2 border-solid border-divider pl-4 my-6 transition-colors duration-500 ${index_module_default18.blockquote}`
6804
+ var Tr = (props) => {
6805
+ return /* @__PURE__ */ _jsx61("tr", _object_spread_props32(_object_spread40({}, props), {
6806
+ className: "border border-solid transition-colors duration-500 even:bg-soft border-gray-light-2"
6224
6807
  }));
6225
6808
  };
6226
- var Strong = (props) => {
6227
- return /* @__PURE__ */ _jsx55("strong", _object_spread_props31(_object_spread37({}, props), {
6228
- className: "font-semibold"
6809
+ var Td = (props) => {
6810
+ return /* @__PURE__ */ _jsx61("td", _object_spread_props32(_object_spread40({}, props), {
6811
+ className: "border border-solid px-4 py-2 border-gray-light-2"
6229
6812
  }));
6230
6813
  };
6231
-
6232
- // src/theme-default/layout/DocLayout/docComponents/code.tsx
6233
- import { jsx as _jsx56, jsxs as _jsxs31, Fragment as _Fragment6 } from "react/jsx-runtime";
6234
- import { PrismLight as SyntaxHighlighter } from "react-syntax-highlighter";
6235
- import jsx from "react-syntax-highlighter/dist/esm/languages/prism/jsx";
6236
- import js from "react-syntax-highlighter/dist/esm/languages/prism/javascript";
6237
- import ts from "react-syntax-highlighter/dist/esm/languages/prism/typescript";
6238
- import tsx from "react-syntax-highlighter/dist/esm/languages/prism/tsx";
6239
- import json from "react-syntax-highlighter/dist/esm/languages/prism/json";
6240
- import css from "react-syntax-highlighter/dist/esm/languages/prism/css";
6241
- import scss from "react-syntax-highlighter/dist/esm/languages/prism/scss";
6242
- import less from "react-syntax-highlighter/dist/esm/languages/prism/less";
6243
- import xml from "react-syntax-highlighter/dist/esm/languages/prism/xml-doc";
6244
- import yaml from "react-syntax-highlighter/dist/esm/languages/prism/yaml";
6245
- import diff from "react-syntax-highlighter/dist/esm/languages/prism/diff";
6246
- import bash from "react-syntax-highlighter/dist/esm/languages/prism/bash";
6247
- import markdown from "react-syntax-highlighter/dist/esm/languages/prism/markdown";
6248
- import copy from "copy-to-clipboard";
6249
- import { useRef as useRef6 } from "react";
6250
-
6251
- // src/theme-default/layout/DocLayout/docComponents/prisim-theme.ts
6252
- var prisim_theme_default = {
6253
- doctype: {
6254
- color: "var(--code-token-text)",
6255
- fontStyle: "italic"
6256
- },
6257
- token: {
6258
- color: "var(--code-token-text)"
6259
- },
6260
- comment: {
6261
- color: "var(--code-token-comment)"
6262
- },
6263
- punctuation: {
6264
- color: "var(--code-token-punctuation)"
6265
- },
6266
- property: {
6267
- color: "var(--code-token-parameter)"
6268
- },
6269
- constant: {
6270
- color: "var(--code-token-constant)"
6271
- },
6272
- string: {
6273
- color: "var(--code-token-string)"
6274
- },
6275
- symbol: {
6276
- color: "var(--code-token-symbol)"
6277
- },
6278
- variable: {
6279
- color: "var(--code-token-variable)"
6280
- },
6281
- "attr-name": {
6282
- color: "var(--code-token-symbol)"
6283
- },
6284
- "attr-value": {
6285
- color: "var(--code-token-string-expression)"
6286
- },
6287
- builtin: {
6288
- color: "var(--code-token-symbol)"
6289
- },
6290
- function: {
6291
- color: "var(--code-token-function)"
6292
- },
6293
- keyword: {
6294
- color: "var(--code-token-keyword)"
6295
- },
6296
- tag: {
6297
- color: "var(--code-token-function)"
6298
- },
6299
- inserted: {
6300
- color: "#22863a"
6301
- },
6302
- deleted: {
6303
- color: "#b31d28"
6304
- },
6305
- regex: {
6306
- color: "var(--code-token-keyword)"
6307
- },
6308
- key: {
6309
- color: "var(--code-token-variable)"
6310
- },
6311
- title: {
6312
- color: "var(--code-token-keyword)"
6313
- },
6314
- important: {
6315
- color: "#EBCB8B",
6316
- fontWeight: "bold"
6317
- },
6318
- bold: {
6319
- fontWeight: "bold"
6320
- },
6321
- italic: {
6322
- fontStyle: "italic"
6323
- }
6814
+ var Th = (props) => {
6815
+ return /* @__PURE__ */ _jsx61("th", _object_spread_props32(_object_spread40({}, props), {
6816
+ className: "border border-solid px-4 py-2 text-text-1 text-base font-semibold border-gray-light-2"
6817
+ }));
6324
6818
  };
6325
6819
 
6326
- // src/theme-default/layout/DocLayout/docComponents/code.tsx
6327
- import { usePageData as usePageData14 } from "@/runtime";
6328
- function _define_property38(obj, key, value) {
6820
+ // src/theme-default/layout/DocLayout/docComponents/hr.tsx
6821
+ import { jsx as _jsx62 } from "react/jsx-runtime";
6822
+ function _define_property41(obj, key, value) {
6329
6823
  if (key in obj) {
6330
6824
  Object.defineProperty(obj, key, {
6331
6825
  value,
@@ -6338,167 +6832,198 @@ function _define_property38(obj, key, value) {
6338
6832
  }
6339
6833
  return obj;
6340
6834
  }
6341
- function _object_spread38(target) {
6835
+ function _object_spread41(target) {
6342
6836
  for (var i = 1; i < arguments.length; i++) {
6343
6837
  var source = arguments[i] != null ? arguments[i] : {};
6344
- var ownKeys32 = Object.keys(source);
6838
+ var ownKeys36 = Object.keys(source);
6345
6839
  if (typeof Object.getOwnPropertySymbols === "function") {
6346
- ownKeys32 = ownKeys32.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
6840
+ ownKeys36 = ownKeys36.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
6347
6841
  return Object.getOwnPropertyDescriptor(source, sym).enumerable;
6348
6842
  }));
6349
6843
  }
6350
- ownKeys32.forEach(function(key) {
6351
- _define_property38(target, key, source[key]);
6844
+ ownKeys36.forEach(function(key) {
6845
+ _define_property41(target, key, source[key]);
6352
6846
  });
6353
6847
  }
6354
6848
  return target;
6355
6849
  }
6356
- var registered = false;
6357
- var timeoutIdMap = /* @__PURE__ */ new Map();
6358
- function registerLanguages() {
6359
- SyntaxHighlighter.registerLanguage("jsx", jsx);
6360
- SyntaxHighlighter.registerLanguage("jsx", tsx);
6361
- SyntaxHighlighter.registerLanguage("mdx", tsx);
6362
- SyntaxHighlighter.registerLanguage("js", js);
6363
- SyntaxHighlighter.registerLanguage("ts", ts);
6364
- SyntaxHighlighter.registerLanguage("json", json);
6365
- SyntaxHighlighter.registerLanguage("css", css);
6366
- SyntaxHighlighter.registerLanguage("scss", scss);
6367
- SyntaxHighlighter.registerLanguage("less", less);
6368
- SyntaxHighlighter.registerLanguage("xml", xml);
6369
- SyntaxHighlighter.registerLanguage("yaml", yaml);
6370
- SyntaxHighlighter.registerLanguage("diff", diff);
6371
- SyntaxHighlighter.registerLanguage("bash", bash);
6372
- SyntaxHighlighter.registerLanguage("markdown", markdown);
6373
- registered = true;
6374
- }
6375
- function Code(props) {
6376
- var _className;
6377
- const copyButtonRef = useRef6(null);
6378
- const { siteData: siteData2 } = usePageData14();
6379
- const { showLineNumbers } = siteData2.markdown;
6380
- if (!registered) {
6381
- registerLanguages();
6850
+ function ownKeys33(object, enumerableOnly) {
6851
+ var keys = Object.keys(object);
6852
+ if (Object.getOwnPropertySymbols) {
6853
+ var symbols = Object.getOwnPropertySymbols(object);
6854
+ if (enumerableOnly) {
6855
+ symbols = symbols.filter(function(sym) {
6856
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
6857
+ });
6858
+ }
6859
+ keys.push.apply(keys, symbols);
6382
6860
  }
6383
- const { className, meta } = props;
6384
- const language = (_className = className) === null || _className === void 0 ? void 0 : _className.replace(/language-/, "");
6385
- if (!language) {
6386
- return /* @__PURE__ */ _jsx56("code", _object_spread38({}, props));
6861
+ return keys;
6862
+ }
6863
+ function _object_spread_props33(target, source) {
6864
+ source = source != null ? source : {};
6865
+ if (Object.getOwnPropertyDescriptors) {
6866
+ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
6867
+ } else {
6868
+ ownKeys33(Object(source)).forEach(function(key) {
6869
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
6870
+ });
6387
6871
  }
6388
- let children;
6389
- if (typeof props.children === "string") {
6390
- children = props.children.trim();
6391
- } else if (Array.isArray(props.children)) {
6392
- children = props.children[0].trim();
6872
+ return target;
6873
+ }
6874
+ var Hr = (props) => {
6875
+ return /* @__PURE__ */ _jsx62("hr", _object_spread_props33(_object_spread41({}, props), {
6876
+ className: "my-12 border-t bordder-solid border-divider-light"
6877
+ }));
6878
+ };
6879
+
6880
+ // src/theme-default/layout/DocLayout/docComponents/link.tsx
6881
+ import { jsx as _jsx63 } from "react/jsx-runtime";
6882
+ import { isExternalUrl, normalizeHref as normalizeHref9, normalizeSlash as normalizeSlash2 } from "@rspress/shared";
6883
+ import { withBase as withBase8, useLang, usePageData as usePageData15, removeBase as removeBase3 } from "@/runtime";
6884
+ function _define_property42(obj, key, value) {
6885
+ if (key in obj) {
6886
+ Object.defineProperty(obj, key, {
6887
+ value,
6888
+ enumerable: true,
6889
+ configurable: true,
6890
+ writable: true
6891
+ });
6393
6892
  } else {
6394
- children = "";
6893
+ obj[key] = value;
6395
6894
  }
6396
- let highlightMeta = "";
6397
- let highlightLines = [];
6398
- if (meta) {
6399
- var _highlightReg_exec;
6400
- const highlightReg = /{[\d,-]*}/i;
6401
- highlightMeta = ((_highlightReg_exec = highlightReg.exec(meta)) === null || _highlightReg_exec === void 0 ? void 0 : _highlightReg_exec[0]) || "";
6402
- if (highlightMeta) {
6403
- highlightLines = highlightMeta.replace(/[{}]/g, "").split(",").map((item) => {
6404
- const [start, end] = item.split("-");
6405
- if (end) {
6406
- return Array.from({
6407
- length: Number(end) - Number(start) + 1
6408
- }, (_, i) => i + Number(start));
6409
- }
6410
- return Number(start);
6411
- }).flat();
6895
+ return obj;
6896
+ }
6897
+ function _object_spread42(target) {
6898
+ for (var i = 1; i < arguments.length; i++) {
6899
+ var source = arguments[i] != null ? arguments[i] : {};
6900
+ var ownKeys36 = Object.keys(source);
6901
+ if (typeof Object.getOwnPropertySymbols === "function") {
6902
+ ownKeys36 = ownKeys36.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
6903
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
6904
+ }));
6412
6905
  }
6906
+ ownKeys36.forEach(function(key) {
6907
+ _define_property42(target, key, source[key]);
6908
+ });
6413
6909
  }
6414
- const copyCode = () => {
6415
- const isCopied = copy(children);
6416
- const el = copyButtonRef.current;
6417
- if (isCopied && el) {
6418
- el.classList.add("copied");
6419
- clearTimeout(timeoutIdMap.get(el));
6420
- const timeoutId = setTimeout(() => {
6421
- el.classList.remove("copied");
6422
- el.blur();
6423
- timeoutIdMap.delete(el);
6424
- }, 2e3);
6425
- timeoutIdMap.set(el, timeoutId);
6910
+ return target;
6911
+ }
6912
+ function ownKeys34(object, enumerableOnly) {
6913
+ var keys = Object.keys(object);
6914
+ if (Object.getOwnPropertySymbols) {
6915
+ var symbols = Object.getOwnPropertySymbols(object);
6916
+ if (enumerableOnly) {
6917
+ symbols = symbols.filter(function(sym) {
6918
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
6919
+ });
6426
6920
  }
6427
- };
6428
- return /* @__PURE__ */ _jsxs31(_Fragment6, {
6429
- children: [
6430
- /* @__PURE__ */ _jsx56(SyntaxHighlighter, {
6431
- language,
6432
- style: prisim_theme_default,
6433
- wrapLines: true,
6434
- className: "code",
6435
- customStyle: {
6436
- backgroundColor: "inherit"
6437
- },
6438
- // Notice: if the highlight line is specified, the line number must be displayed
6439
- showLineNumbers: showLineNumbers || highlightLines.length > 0,
6440
- lineProps: (lineNumber) => {
6441
- const isHighlighted = highlightLines.includes(lineNumber);
6442
- return {
6443
- className: isHighlighted ? "line highlighted" : "",
6444
- style: {
6445
- backgroundColor: isHighlighted ? "var(--rp-code-line-highlight-color)" : "",
6446
- display: "block",
6447
- padding: "0 1.25rem"
6448
- }
6449
- };
6450
- },
6451
- children
6452
- }),
6453
- /* @__PURE__ */ _jsx56("button", {
6454
- className: "copy",
6455
- onClick: copyCode,
6456
- ref: copyButtonRef
6457
- })
6458
- ]
6459
- });
6921
+ keys.push.apply(keys, symbols);
6922
+ }
6923
+ return keys;
6924
+ }
6925
+ function _object_spread_props34(target, source) {
6926
+ source = source != null ? source : {};
6927
+ if (Object.getOwnPropertyDescriptors) {
6928
+ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
6929
+ } else {
6930
+ ownKeys34(Object(source)).forEach(function(key) {
6931
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
6932
+ });
6933
+ }
6934
+ return target;
6460
6935
  }
6936
+ var A = (props) => {
6937
+ let { href = "" } = props;
6938
+ const lang = useLang();
6939
+ const pageData = usePageData15();
6940
+ const defaultLang = pageData.siteData.lang;
6941
+ if (defaultLang && !isExternalUrl(href) && !href.startsWith("#")) {
6942
+ href = normalizeSlash2(href);
6943
+ const startWithLang = removeBase3(href).startsWith(`/${lang}`);
6944
+ if (lang !== defaultLang && !startWithLang) {
6945
+ href = `/${lang}${href}`;
6946
+ }
6947
+ if (lang === defaultLang && startWithLang) {
6948
+ href = removeBase3(href).replace(`/${lang}`, "");
6949
+ }
6950
+ href = normalizeHref9(withBase8(href || ""));
6951
+ }
6952
+ return /* @__PURE__ */ _jsx63("a", _object_spread_props34(_object_spread42({}, props), {
6953
+ className: `${index_module_default17.link} ${props.className}`,
6954
+ href
6955
+ }));
6956
+ };
6461
6957
 
6462
- // src/theme-default/layout/DocLayout/docComponents/pre.tsx
6463
- import { jsx as _jsx57, jsxs as _jsxs32 } from "react/jsx-runtime";
6464
- var DEFAULT_LANGUAGE_CLASS = "language-bash";
6465
- function parseTitleFromMeta(meta) {
6466
- var _highlightReg_exec, _result;
6467
- if (!meta) {
6468
- return "";
6958
+ // src/theme-default/layout/DocLayout/docComponents/paragraph.tsx
6959
+ import { jsx as _jsx64 } from "react/jsx-runtime";
6960
+ function _define_property43(obj, key, value) {
6961
+ if (key in obj) {
6962
+ Object.defineProperty(obj, key, {
6963
+ value,
6964
+ enumerable: true,
6965
+ configurable: true,
6966
+ writable: true
6967
+ });
6968
+ } else {
6969
+ obj[key] = value;
6469
6970
  }
6470
- let result = meta;
6471
- const highlightReg = /{[\d,-]*}/i;
6472
- const highlightMeta = (_highlightReg_exec = highlightReg.exec(meta)) === null || _highlightReg_exec === void 0 ? void 0 : _highlightReg_exec[0];
6473
- if (highlightMeta) {
6474
- result = meta.replace(highlightReg, "").trim();
6971
+ return obj;
6972
+ }
6973
+ function _object_spread43(target) {
6974
+ for (var i = 1; i < arguments.length; i++) {
6975
+ var source = arguments[i] != null ? arguments[i] : {};
6976
+ var ownKeys36 = Object.keys(source);
6977
+ if (typeof Object.getOwnPropertySymbols === "function") {
6978
+ ownKeys36 = ownKeys36.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
6979
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
6980
+ }));
6981
+ }
6982
+ ownKeys36.forEach(function(key) {
6983
+ _define_property43(target, key, source[key]);
6984
+ });
6475
6985
  }
6476
- var _result_split_;
6477
- result = (_result_split_ = result.split("=")[1]) !== null && _result_split_ !== void 0 ? _result_split_ : "";
6478
- return (_result = result) === null || _result === void 0 ? void 0 : _result.replace(/["'`]/g, "");
6986
+ return target;
6479
6987
  }
6480
- function Pre({ children }) {
6481
- if (Array.isArray(children)) {
6482
- return /* @__PURE__ */ _jsx57("pre", {
6483
- children
6988
+ function ownKeys35(object, enumerableOnly) {
6989
+ var keys = Object.keys(object);
6990
+ if (Object.getOwnPropertySymbols) {
6991
+ var symbols = Object.getOwnPropertySymbols(object);
6992
+ if (enumerableOnly) {
6993
+ symbols = symbols.filter(function(sym) {
6994
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
6995
+ });
6996
+ }
6997
+ keys.push.apply(keys, symbols);
6998
+ }
6999
+ return keys;
7000
+ }
7001
+ function _object_spread_props35(target, source) {
7002
+ source = source != null ? source : {};
7003
+ if (Object.getOwnPropertyDescriptors) {
7004
+ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
7005
+ } else {
7006
+ ownKeys35(Object(source)).forEach(function(key) {
7007
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
6484
7008
  });
6485
7009
  }
6486
- const { className, meta } = children.props;
6487
- const codeTitle = parseTitleFromMeta(meta);
6488
- return /* @__PURE__ */ _jsxs32("div", {
6489
- className: className || DEFAULT_LANGUAGE_CLASS,
6490
- children: [
6491
- codeTitle && /* @__PURE__ */ _jsx57("div", {
6492
- className: "rspress-code-title",
6493
- children: codeTitle
6494
- }),
6495
- /* @__PURE__ */ _jsx57("div", {
6496
- className: "rspress-code-content",
6497
- children
6498
- })
6499
- ]
6500
- });
7010
+ return target;
6501
7011
  }
7012
+ var P = (props) => {
7013
+ return /* @__PURE__ */ _jsx64("p", _object_spread_props35(_object_spread43({}, props), {
7014
+ className: "my-4 leading-7"
7015
+ }));
7016
+ };
7017
+ var Blockquote = (props) => {
7018
+ return /* @__PURE__ */ _jsx64("blockquote", _object_spread_props35(_object_spread43({}, props), {
7019
+ className: `border-l-2 border-solid border-divider pl-4 my-6 transition-colors duration-500 ${index_module_default17.blockquote}`
7020
+ }));
7021
+ };
7022
+ var Strong = (props) => {
7023
+ return /* @__PURE__ */ _jsx64("strong", _object_spread_props35(_object_spread43({}, props), {
7024
+ className: "font-semibold"
7025
+ }));
7026
+ };
6502
7027
 
6503
7028
  // src/theme-default/layout/DocLayout/docComponents/index.tsx
6504
7029
  function getCustomMDXComponent2() {
@@ -6538,9 +7063,12 @@ export {
6538
7063
  HomeFooter2 as HomeFooter,
6539
7064
  Link,
6540
7065
  Nav2 as Nav,
7066
+ PackageManagerTabs,
6541
7067
  Search2 as Search,
7068
+ SearchPanel,
6542
7069
  Tab,
6543
7070
  Tabs,
7071
+ Toc,
6544
7072
  bindingAsideScroll,
6545
7073
  theme_default_default as default,
6546
7074
  getCustomMDXComponent2 as getCustomMDXComponent,