@openpkg-ts/doc-generator 0.6.6 → 0.6.7

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.
@@ -118,7 +118,10 @@ var require_querystring = __commonJS((exports) => {
118
118
  }
119
119
  return searchParams;
120
120
  }
121
- function assign(target, ...searchParamsList) {
121
+ function assign(target) {
122
+ for (var _len = arguments.length, searchParamsList = new Array(_len > 1 ? _len - 1 : 0), _key = 1;_key < _len; _key++) {
123
+ searchParamsList[_key - 1] = arguments[_key];
124
+ }
122
125
  for (const searchParams of searchParamsList) {
123
126
  for (const key of searchParams.keys()) {
124
127
  target.delete(key);
@@ -168,7 +171,7 @@ var require_format_url = __commonJS((exports) => {
168
171
  if (urlObj.host) {
169
172
  host = auth + urlObj.host;
170
173
  } else if (hostname) {
171
- host = auth + (~hostname.indexOf(":") ? `[${hostname}]` : hostname);
174
+ host = auth + (~hostname.indexOf(":") ? "[" + hostname + "]" : hostname);
172
175
  if (urlObj.port) {
173
176
  host += ":" + urlObj.port;
174
177
  }
@@ -176,7 +179,7 @@ var require_format_url = __commonJS((exports) => {
176
179
  if (query && typeof query === "object") {
177
180
  query = String(_querystring.urlQueryToSearchParams(query));
178
181
  }
179
- let search = urlObj.search || query && `?${query}` || "";
182
+ let search = urlObj.search || query && "?" + query || "";
180
183
  if (protocol && !protocol.endsWith(":"))
181
184
  protocol += ":";
182
185
  if (urlObj.slashes || (!protocol || slashedProtocols.test(protocol)) && host !== false) {
@@ -192,7 +195,7 @@ var require_format_url = __commonJS((exports) => {
192
195
  search = "?" + search;
193
196
  pathname = pathname.replace(/[?#]/g, encodeURIComponent);
194
197
  search = search.replace("#", "%23");
195
- return `${protocol}${host}${pathname}${search}${hash}`;
198
+ return "" + protocol + host + pathname + search + hash;
196
199
  }
197
200
  var urlObjectKeys = [
198
201
  "auth",
@@ -312,7 +315,10 @@ var require_utils = __commonJS((exports) => {
312
315
  function execOnce(fn) {
313
316
  let used = false;
314
317
  let result;
315
- return (...args) => {
318
+ return function() {
319
+ for (var _len = arguments.length, args = new Array(_len), _key = 0;_key < _len; _key++) {
320
+ args[_key] = arguments[_key];
321
+ }
316
322
  if (!used) {
317
323
  used = true;
318
324
  result = fn(...args);
@@ -324,7 +330,7 @@ var require_utils = __commonJS((exports) => {
324
330
  var isAbsoluteUrl = (url) => ABSOLUTE_URL_REGEX.test(url);
325
331
  function getLocationOrigin() {
326
332
  const { protocol, hostname, port } = window.location;
327
- return `${protocol}//${hostname}${port ? ":" + port : ""}`;
333
+ return protocol + "//" + hostname + (port ? ":" + port : "");
328
334
  }
329
335
  function getURL() {
330
336
  const { href } = window.location;
@@ -340,10 +346,12 @@ var require_utils = __commonJS((exports) => {
340
346
  function normalizeRepeatedSlashes(url) {
341
347
  const urlParts = url.split("?");
342
348
  const urlNoQuery = urlParts[0];
343
- return urlNoQuery.replace(/\\/g, "/").replace(/\/\/+/g, "/") + (urlParts[1] ? `?${urlParts.slice(1).join("?")}` : "");
349
+ return urlNoQuery.replace(/\\/g, "/").replace(/\/\/+/g, "/") + (urlParts[1] ? "?" + urlParts.slice(1).join("?") : "");
344
350
  }
345
351
  async function loadGetInitialProps(App, ctx) {
346
- if (false) {}
352
+ if (false) {
353
+ var _App_prototype;
354
+ }
347
355
  const res = ctx.res || ctx.ctx && ctx.ctx.res;
348
356
  if (!App.getInitialProps) {
349
357
  if (ctx.ctx && ctx.Component) {
@@ -358,7 +366,7 @@ var require_utils = __commonJS((exports) => {
358
366
  return props;
359
367
  }
360
368
  if (!props) {
361
- const message = `"${getDisplayName(App)}.getInitialProps()" should resolve to an object. But found "${props}" instead.`;
369
+ const message = '"' + getDisplayName(App) + '.getInitialProps()" should resolve to an object. But found "' + props + '" instead.';
362
370
  throw Object.defineProperty(new Error(message), "__NEXT_ERROR_CODE", {
363
371
  value: "E394",
364
372
  enumerable: false,
@@ -386,14 +394,14 @@ var require_utils = __commonJS((exports) => {
386
394
  super();
387
395
  this.code = "ENOENT";
388
396
  this.name = "PageNotFoundError";
389
- this.message = `Cannot find module for page: ${page}`;
397
+ this.message = "Cannot find module for page: " + page;
390
398
  }
391
399
  }
392
400
 
393
401
  class MissingStaticPage extends Error {
394
402
  constructor(page, message) {
395
403
  super();
396
- this.message = `Failed to load static file for page: ${page} ${message}`;
404
+ this.message = "Failed to load static file for page: " + page + " " + message;
397
405
  }
398
406
  }
399
407
 
@@ -401,7 +409,7 @@ var require_utils = __commonJS((exports) => {
401
409
  constructor() {
402
410
  super();
403
411
  this.code = "ENOENT";
404
- this.message = `Cannot find the middleware module`;
412
+ this.message = "Cannot find the middleware module";
405
413
  }
406
414
  }
407
415
  function stringifyError(error) {
@@ -478,14 +486,14 @@ var require_normalize_trailing_slash = __commonJS((exports, module) => {
478
486
  const { pathname, query, hash } = (0, _parsepath.parsePath)(path);
479
487
  if (process.env.__NEXT_TRAILING_SLASH) {
480
488
  if (/\.[^/]+\/?$/.test(pathname)) {
481
- return `${(0, _removetrailingslash.removeTrailingSlash)(pathname)}${query}${hash}`;
489
+ return "" + (0, _removetrailingslash.removeTrailingSlash)(pathname) + query + hash;
482
490
  } else if (pathname.endsWith("/")) {
483
- return `${pathname}${query}${hash}`;
491
+ return "" + pathname + query + hash;
484
492
  } else {
485
- return `${pathname}/${query}${hash}`;
493
+ return pathname + "/" + query + hash;
486
494
  }
487
495
  }
488
- return `${(0, _removetrailingslash.removeTrailingSlash)(pathname)}${query}${hash}`;
496
+ return "" + (0, _removetrailingslash.removeTrailingSlash)(pathname) + query + hash;
489
497
  };
490
498
  if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") {
491
499
  Object.defineProperty(exports.default, "__esModule", { value: true });
@@ -592,7 +600,9 @@ var require_sorted_routes = __commonJS((exports) => {
592
600
  smoosh() {
593
601
  return this._smoosh();
594
602
  }
595
- _smoosh(prefix = "/") {
603
+ _smoosh(prefix) {
604
+ if (prefix === undefined)
605
+ prefix = "/";
596
606
  const childrenPaths = [
597
607
  ...this.children.keys()
598
608
  ].sort();
@@ -605,17 +615,17 @@ var require_sorted_routes = __commonJS((exports) => {
605
615
  if (this.optionalRestSlugName !== null) {
606
616
  childrenPaths.splice(childrenPaths.indexOf("[[...]]"), 1);
607
617
  }
608
- const routes = childrenPaths.map((c) => this.children.get(c)._smoosh(`${prefix}${c}/`)).reduce((prev, curr) => [
618
+ const routes = childrenPaths.map((c) => this.children.get(c)._smoosh("" + prefix + c + "/")).reduce((prev, curr) => [
609
619
  ...prev,
610
620
  ...curr
611
621
  ], []);
612
622
  if (this.slugName !== null) {
613
- routes.push(...this.children.get("[]")._smoosh(`${prefix}[${this.slugName}]/`));
623
+ routes.push(...this.children.get("[]")._smoosh(prefix + "[" + this.slugName + "]/"));
614
624
  }
615
625
  if (!this.placeholder) {
616
626
  const r = prefix === "/" ? "/" : prefix.slice(0, -1);
617
627
  if (this.optionalRestSlugName != null) {
618
- throw Object.defineProperty(new Error(`You cannot define a route with the same specificity as a optional catch-all route ("${r}" and "${r}[[...${this.optionalRestSlugName}]]").`), "__NEXT_ERROR_CODE", {
628
+ throw Object.defineProperty(new Error('You cannot define a route with the same specificity as a optional catch-all route ("' + r + '" and "' + r + "[[..." + this.optionalRestSlugName + ']]").'), "__NEXT_ERROR_CODE", {
619
629
  value: "E458",
620
630
  enumerable: false,
621
631
  configurable: true
@@ -624,10 +634,10 @@ var require_sorted_routes = __commonJS((exports) => {
624
634
  routes.unshift(r);
625
635
  }
626
636
  if (this.restSlugName !== null) {
627
- routes.push(...this.children.get("[...]")._smoosh(`${prefix}[...${this.restSlugName}]/`));
637
+ routes.push(...this.children.get("[...]")._smoosh(prefix + "[..." + this.restSlugName + "]/"));
628
638
  }
629
639
  if (this.optionalRestSlugName !== null) {
630
- routes.push(...this.children.get("[[...]]")._smoosh(`${prefix}[[...${this.optionalRestSlugName}]]/`));
640
+ routes.push(...this.children.get("[[...]]")._smoosh(prefix + "[[..." + this.optionalRestSlugName + "]]/"));
631
641
  }
632
642
  return routes;
633
643
  }
@@ -637,7 +647,7 @@ var require_sorted_routes = __commonJS((exports) => {
637
647
  return;
638
648
  }
639
649
  if (isCatchAll) {
640
- throw Object.defineProperty(new Error(`Catch-all must be the last part of the URL.`), "__NEXT_ERROR_CODE", {
650
+ throw Object.defineProperty(new Error("Catch-all must be the last part of the URL."), "__NEXT_ERROR_CODE", {
641
651
  value: "E392",
642
652
  enumerable: false,
643
653
  configurable: true
@@ -648,7 +658,7 @@ var require_sorted_routes = __commonJS((exports) => {
648
658
  let handleSlug = function(previousSlug, nextSlug) {
649
659
  if (previousSlug !== null) {
650
660
  if (previousSlug !== nextSlug) {
651
- throw Object.defineProperty(new Error(`You cannot use different slug names for the same dynamic path ('${previousSlug}' !== '${nextSlug}').`), "__NEXT_ERROR_CODE", {
661
+ throw Object.defineProperty(new Error("You cannot use different slug names for the same dynamic path ('" + previousSlug + "' !== '" + nextSlug + "')."), "__NEXT_ERROR_CODE", {
652
662
  value: "E337",
653
663
  enumerable: false,
654
664
  configurable: true
@@ -657,14 +667,14 @@ var require_sorted_routes = __commonJS((exports) => {
657
667
  }
658
668
  slugNames.forEach((slug) => {
659
669
  if (slug === nextSlug) {
660
- throw Object.defineProperty(new Error(`You cannot have the same slug name "${nextSlug}" repeat within a single dynamic path`), "__NEXT_ERROR_CODE", {
670
+ throw Object.defineProperty(new Error('You cannot have the same slug name "' + nextSlug + '" repeat within a single dynamic path'), "__NEXT_ERROR_CODE", {
661
671
  value: "E247",
662
672
  enumerable: false,
663
673
  configurable: true
664
674
  });
665
675
  }
666
676
  if (slug.replace(/\W/g, "") === nextSegment.replace(/\W/g, "")) {
667
- throw Object.defineProperty(new Error(`You cannot have the slug names "${slug}" and "${nextSlug}" differ only by non-word symbols within a single dynamic path`), "__NEXT_ERROR_CODE", {
677
+ throw Object.defineProperty(new Error('You cannot have the slug names "' + slug + '" and "' + nextSlug + '" differ only by non-word symbols within a single dynamic path'), "__NEXT_ERROR_CODE", {
668
678
  value: "E499",
669
679
  enumerable: false,
670
680
  configurable: true
@@ -680,7 +690,7 @@ var require_sorted_routes = __commonJS((exports) => {
680
690
  isOptional = true;
681
691
  }
682
692
  if (segmentName.startsWith("…")) {
683
- throw Object.defineProperty(new Error(`Detected a three-dot character ('…') at ('${segmentName}'). Did you mean ('...')?`), "__NEXT_ERROR_CODE", {
693
+ throw Object.defineProperty(new Error("Detected a three-dot character ('…') at ('" + segmentName + "'). Did you mean ('...')?"), "__NEXT_ERROR_CODE", {
684
694
  value: "E147",
685
695
  enumerable: false,
686
696
  configurable: true
@@ -691,14 +701,14 @@ var require_sorted_routes = __commonJS((exports) => {
691
701
  isCatchAll = true;
692
702
  }
693
703
  if (segmentName.startsWith("[") || segmentName.endsWith("]")) {
694
- throw Object.defineProperty(new Error(`Segment names may not start or end with extra brackets ('${segmentName}').`), "__NEXT_ERROR_CODE", {
704
+ throw Object.defineProperty(new Error("Segment names may not start or end with extra brackets ('" + segmentName + "')."), "__NEXT_ERROR_CODE", {
695
705
  value: "E421",
696
706
  enumerable: false,
697
707
  configurable: true
698
708
  });
699
709
  }
700
710
  if (segmentName.startsWith(".")) {
701
- throw Object.defineProperty(new Error(`Segment names may not start with erroneous periods ('${segmentName}').`), "__NEXT_ERROR_CODE", {
711
+ throw Object.defineProperty(new Error("Segment names may not start with erroneous periods ('" + segmentName + "')."), "__NEXT_ERROR_CODE", {
702
712
  value: "E288",
703
713
  enumerable: false,
704
714
  configurable: true
@@ -707,7 +717,7 @@ var require_sorted_routes = __commonJS((exports) => {
707
717
  if (isCatchAll) {
708
718
  if (isOptional) {
709
719
  if (this.restSlugName != null) {
710
- throw Object.defineProperty(new Error(`You cannot use both an required and optional catch-all route at the same level ("[...${this.restSlugName}]" and "${urlPaths[0]}" ).`), "__NEXT_ERROR_CODE", {
720
+ throw Object.defineProperty(new Error('You cannot use both an required and optional catch-all route at the same level ("[...' + this.restSlugName + ']" and "' + urlPaths[0] + '" ).'), "__NEXT_ERROR_CODE", {
711
721
  value: "E299",
712
722
  enumerable: false,
713
723
  configurable: true
@@ -718,7 +728,7 @@ var require_sorted_routes = __commonJS((exports) => {
718
728
  nextSegment = "[[...]]";
719
729
  } else {
720
730
  if (this.optionalRestSlugName != null) {
721
- throw Object.defineProperty(new Error(`You cannot use both an optional and required catch-all route at the same level ("[[...${this.optionalRestSlugName}]]" and "${urlPaths[0]}").`), "__NEXT_ERROR_CODE", {
731
+ throw Object.defineProperty(new Error('You cannot use both an optional and required catch-all route at the same level ("[[...' + this.optionalRestSlugName + ']]" and "' + urlPaths[0] + '").'), "__NEXT_ERROR_CODE", {
722
732
  value: "E300",
723
733
  enumerable: false,
724
734
  configurable: true
@@ -730,7 +740,7 @@ var require_sorted_routes = __commonJS((exports) => {
730
740
  }
731
741
  } else {
732
742
  if (isOptional) {
733
- throw Object.defineProperty(new Error(`Optional route parameters are not yet supported ("${urlPaths[0]}").`), "__NEXT_ERROR_CODE", {
743
+ throw Object.defineProperty(new Error('Optional route parameters are not yet supported ("' + urlPaths[0] + '").'), "__NEXT_ERROR_CODE", {
734
744
  value: "E435",
735
745
  enumerable: false,
736
746
  configurable: true
@@ -784,7 +794,7 @@ var require_ensure_leading_slash = __commonJS((exports) => {
784
794
  }
785
795
  });
786
796
  function ensureLeadingSlash(path) {
787
- return path.startsWith("/") ? path : `/${path}`;
797
+ return path.startsWith("/") ? path : "/" + path;
788
798
  }
789
799
  });
790
800
 
@@ -810,15 +820,6 @@ var require_segment = __commonJS((exports) => {
810
820
  addSearchParamsIfPageSegment: function() {
811
821
  return addSearchParamsIfPageSegment;
812
822
  },
813
- computeSelectedLayoutSegment: function() {
814
- return computeSelectedLayoutSegment;
815
- },
816
- getSegmentValue: function() {
817
- return getSegmentValue;
818
- },
819
- getSelectedLayoutSegmentPath: function() {
820
- return getSelectedLayoutSegmentPath;
821
- },
822
823
  isGroupSegment: function() {
823
824
  return isGroupSegment;
824
825
  },
@@ -826,9 +827,6 @@ var require_segment = __commonJS((exports) => {
826
827
  return isParallelRouteSegment;
827
828
  }
828
829
  });
829
- function getSegmentValue(segment) {
830
- return Array.isArray(segment) ? segment[1] : segment;
831
- }
832
830
  function isGroupSegment(segment) {
833
831
  return segment[0] === "(" && segment.endsWith(")");
834
832
  }
@@ -843,31 +841,6 @@ var require_segment = __commonJS((exports) => {
843
841
  }
844
842
  return segment;
845
843
  }
846
- function computeSelectedLayoutSegment(segments, parallelRouteKey) {
847
- if (!segments || segments.length === 0) {
848
- return null;
849
- }
850
- const rawSegment = parallelRouteKey === "children" ? segments[0] : segments[segments.length - 1];
851
- return rawSegment === DEFAULT_SEGMENT_KEY ? null : rawSegment;
852
- }
853
- function getSelectedLayoutSegmentPath(tree, parallelRouteKey, first = true, segmentPath = []) {
854
- let node;
855
- if (first) {
856
- node = tree[1][parallelRouteKey];
857
- } else {
858
- const parallelRoutes = tree[1];
859
- node = parallelRoutes.children ?? Object.values(parallelRoutes)[0];
860
- }
861
- if (!node)
862
- return segmentPath;
863
- const segment = node[0];
864
- let segmentValue = getSegmentValue(segment);
865
- if (!segmentValue || segmentValue.startsWith(PAGE_SEGMENT_KEY)) {
866
- return segmentPath;
867
- }
868
- segmentPath.push(segmentValue);
869
- return getSelectedLayoutSegmentPath(node, parallelRouteKey, false, segmentPath);
870
- }
871
844
  var PAGE_SEGMENT_KEY = "__PAGE__";
872
845
  var DEFAULT_SEGMENT_KEY = "__DEFAULT__";
873
846
  });
@@ -908,7 +881,7 @@ var require_app_paths = __commonJS((exports) => {
908
881
  if ((segment === "page" || segment === "route") && index === segments.length - 1) {
909
882
  return pathname;
910
883
  }
911
- return `${pathname}/${segment}`;
884
+ return pathname + "/" + segment;
912
885
  }, ""));
913
886
  }
914
887
  function normalizeRscURL(url) {
@@ -950,9 +923,7 @@ var require_interception_routes = __commonJS((exports) => {
950
923
  return path.split("/").find((segment) => INTERCEPTION_ROUTE_MARKERS.find((m) => segment.startsWith(m))) !== undefined;
951
924
  }
952
925
  function extractInterceptionRouteInformation(path) {
953
- let interceptingRoute;
954
- let marker;
955
- let interceptedRoute;
926
+ let interceptingRoute, marker, interceptedRoute;
956
927
  for (const segment of path.split("/")) {
957
928
  marker = INTERCEPTION_ROUTE_MARKERS.find((m) => segment.startsWith(m));
958
929
  if (marker) {
@@ -961,7 +932,7 @@ var require_interception_routes = __commonJS((exports) => {
961
932
  }
962
933
  }
963
934
  if (!interceptingRoute || !marker || !interceptedRoute) {
964
- throw Object.defineProperty(new Error(`Invalid interception route: ${path}. Must be in the format /<intercepting route>/(..|...|..)(..)/<intercepted route>`), "__NEXT_ERROR_CODE", {
935
+ throw Object.defineProperty(new Error("Invalid interception route: " + path + ". Must be in the format /<intercepting route>/(..|...|..)(..)/<intercepted route>"), "__NEXT_ERROR_CODE", {
965
936
  value: "E269",
966
937
  enumerable: false,
967
938
  configurable: true
@@ -971,14 +942,14 @@ var require_interception_routes = __commonJS((exports) => {
971
942
  switch (marker) {
972
943
  case "(.)":
973
944
  if (interceptingRoute === "/") {
974
- interceptedRoute = `/${interceptedRoute}`;
945
+ interceptedRoute = "/" + interceptedRoute;
975
946
  } else {
976
947
  interceptedRoute = interceptingRoute + "/" + interceptedRoute;
977
948
  }
978
949
  break;
979
950
  case "(..)":
980
951
  if (interceptingRoute === "/") {
981
- throw Object.defineProperty(new Error(`Invalid interception route: ${path}. Cannot use (..) marker at the root level, use (.) instead.`), "__NEXT_ERROR_CODE", {
952
+ throw Object.defineProperty(new Error("Invalid interception route: " + path + ". Cannot use (..) marker at the root level, use (.) instead."), "__NEXT_ERROR_CODE", {
982
953
  value: "E207",
983
954
  enumerable: false,
984
955
  configurable: true
@@ -992,7 +963,7 @@ var require_interception_routes = __commonJS((exports) => {
992
963
  case "(..)(..)":
993
964
  const splitInterceptingRoute = interceptingRoute.split("/");
994
965
  if (splitInterceptingRoute.length <= 2) {
995
- throw Object.defineProperty(new Error(`Invalid interception route: ${path}. Cannot use (..)(..) marker at the root level or one level up.`), "__NEXT_ERROR_CODE", {
966
+ throw Object.defineProperty(new Error("Invalid interception route: " + path + ". Cannot use (..)(..) marker at the root level or one level up."), "__NEXT_ERROR_CODE", {
996
967
  value: "E486",
997
968
  enumerable: false,
998
969
  configurable: true
@@ -1028,7 +999,9 @@ var require_is_dynamic = __commonJS((exports) => {
1028
999
  var _interceptionroutes = require_interception_routes();
1029
1000
  var TEST_ROUTE = /\/[^/]*\[[^/]+\][^/]*(?=\/|$)/;
1030
1001
  var TEST_STRICT_ROUTE = /\/\[[^/]+\](?=\/|$)/;
1031
- function isDynamicRoute(route, strict = true) {
1002
+ function isDynamicRoute(route, strict) {
1003
+ if (strict === undefined)
1004
+ strict = true;
1032
1005
  if ((0, _interceptionroutes.isInterceptionRouteAppPath)(route)) {
1033
1006
  route = (0, _interceptionroutes.extractInterceptionRouteInformation)(route).interceptedRoute;
1034
1007
  }
@@ -1068,7 +1041,7 @@ var require_utils2 = __commonJS((exports) => {
1068
1041
 
1069
1042
  // ../../node_modules/next/dist/compiled/path-to-regexp/index.js
1070
1043
  var require_path_to_regexp = __commonJS((exports, module) => {
1071
- var __dirname = "/Users/ryanwaits/Code/projects/doccov/node_modules/next/dist/compiled/path-to-regexp";
1044
+ var __dirname = "/Users/ryanwaits/Code/projects/openpkg-ts/node_modules/next/dist/compiled/path-to-regexp";
1072
1045
  (() => {
1073
1046
  if (typeof __nccwpck_require__ !== "undefined")
1074
1047
  __nccwpck_require__.ab = __dirname + "/";
@@ -1451,9 +1424,6 @@ var require_route_pattern_normalizer = __commonJS((exports) => {
1451
1424
  });
1452
1425
  }
1453
1426
  _export(exports, {
1454
- PARAM_SEPARATOR: function() {
1455
- return PARAM_SEPARATOR;
1456
- },
1457
1427
  hasAdjacentParameterIssues: function() {
1458
1428
  return hasAdjacentParameterIssues;
1459
1429
  },
@@ -1463,9 +1433,6 @@ var require_route_pattern_normalizer = __commonJS((exports) => {
1463
1433
  normalizeTokensForRegexp: function() {
1464
1434
  return normalizeTokensForRegexp;
1465
1435
  },
1466
- stripNormalizedSeparators: function() {
1467
- return stripNormalizedSeparators;
1468
- },
1469
1436
  stripParameterSeparators: function() {
1470
1437
  return stripParameterSeparators;
1471
1438
  }
@@ -1499,9 +1466,6 @@ var require_route_pattern_normalizer = __commonJS((exports) => {
1499
1466
  return token;
1500
1467
  });
1501
1468
  }
1502
- function stripNormalizedSeparators(pathname) {
1503
- return pathname.replace(new RegExp(`\\)${PARAM_SEPARATOR}`, "g"), ")");
1504
- }
1505
1469
  function stripParameterSeparators(params) {
1506
1470
  const cleaned = {};
1507
1471
  for (const [key, value] of Object.entries(params)) {
@@ -1569,21 +1533,12 @@ var require_route_match_utils = __commonJS((exports) => {
1569
1533
  const needsNormalization = (0, _routepatternnormalizer.hasAdjacentParameterIssues)(route);
1570
1534
  const routeToUse = needsNormalization ? (0, _routepatternnormalizer.normalizeAdjacentParameters)(route) : route;
1571
1535
  try {
1572
- const compiler = (0, _pathtoregexp.compile)(routeToUse, options);
1573
- if (needsNormalization) {
1574
- return (params) => {
1575
- return (0, _routepatternnormalizer.stripNormalizedSeparators)(compiler(params));
1576
- };
1577
- }
1578
- return compiler;
1536
+ return (0, _pathtoregexp.compile)(routeToUse, options);
1579
1537
  } catch (error) {
1580
1538
  if (!needsNormalization) {
1581
1539
  try {
1582
1540
  const normalizedRoute = (0, _routepatternnormalizer.normalizeAdjacentParameters)(route);
1583
- const compiler = (0, _pathtoregexp.compile)(normalizedRoute, options);
1584
- return (params) => {
1585
- return (0, _routepatternnormalizer.stripNormalizedSeparators)(compiler(params));
1586
- };
1541
+ return (0, _pathtoregexp.compile)(normalizedRoute, options);
1587
1542
  } catch (retryError) {
1588
1543
  throw error;
1589
1544
  }
@@ -1626,15 +1581,16 @@ var require_route_matcher = __commonJS((exports) => {
1626
1581
  });
1627
1582
  var _utils = require_utils();
1628
1583
  var _routematchutils = require_route_match_utils();
1629
- function getRouteMatcher({ re, groups }) {
1584
+ function getRouteMatcher(param) {
1585
+ let { re, groups } = param;
1630
1586
  const rawMatcher = (pathname) => {
1631
1587
  const routeMatch = re.exec(pathname);
1632
1588
  if (!routeMatch)
1633
1589
  return false;
1634
- const decode = (param) => {
1590
+ const decode = (param2) => {
1635
1591
  try {
1636
- return decodeURIComponent(param);
1637
- } catch {
1592
+ return decodeURIComponent(param2);
1593
+ } catch (e) {
1638
1594
  throw Object.defineProperty(new _utils.DecodeError("failed to decode param"), "__NEXT_ERROR_CODE", {
1639
1595
  value: "E528",
1640
1596
  enumerable: false,
@@ -1768,12 +1724,6 @@ var require_constants = __commonJS((exports) => {
1768
1724
  PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER: function() {
1769
1725
  return PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER;
1770
1726
  },
1771
- PROXY_FILENAME: function() {
1772
- return PROXY_FILENAME;
1773
- },
1774
- PROXY_LOCATION_REGEXP: function() {
1775
- return PROXY_LOCATION_REGEXP;
1776
- },
1777
1727
  PUBLIC_DIR_MIDDLEWARE_CONFLICT: function() {
1778
1728
  return PUBLIC_DIR_MIDDLEWARE_CONFLICT;
1779
1729
  },
@@ -1845,9 +1795,6 @@ var require_constants = __commonJS((exports) => {
1845
1795
  },
1846
1796
  WEBPACK_RESOURCE_QUERIES: function() {
1847
1797
  return WEBPACK_RESOURCE_QUERIES;
1848
- },
1849
- WEB_SOCKET_MAX_RECONNECTIONS: function() {
1850
- return WEB_SOCKET_MAX_RECONNECTIONS;
1851
1798
  }
1852
1799
  });
1853
1800
  var TEXT_PLAIN_CONTENT_TYPE_HEADER = "text/plain";
@@ -1878,8 +1825,6 @@ var require_constants = __commonJS((exports) => {
1878
1825
  var INFINITE_CACHE = 4294967294;
1879
1826
  var MIDDLEWARE_FILENAME = "middleware";
1880
1827
  var MIDDLEWARE_LOCATION_REGEXP = `(?:src/)?${MIDDLEWARE_FILENAME}`;
1881
- var PROXY_FILENAME = "proxy";
1882
- var PROXY_LOCATION_REGEXP = `(?:src/)?${PROXY_FILENAME}`;
1883
1828
  var INSTRUMENTATION_HOOK_FILENAME = "instrumentation";
1884
1829
  var PAGES_DIR_ALIAS = "private-next-pages";
1885
1830
  var DOT_NEXT_ALIAS = "private-dot-next";
@@ -1916,7 +1861,6 @@ var require_constants = __commonJS((exports) => {
1916
1861
  experimentalEdge: "experimental-edge",
1917
1862
  nodejs: "nodejs"
1918
1863
  };
1919
- var WEB_SOCKET_MAX_RECONNECTIONS = 12;
1920
1864
  var WEBPACK_LAYERS_NAMES = {
1921
1865
  shared: "shared",
1922
1866
  reactServerComponents: "rsc",
@@ -1999,136 +1943,6 @@ var require_escape_regexp = __commonJS((exports) => {
1999
1943
  }
2000
1944
  });
2001
1945
 
2002
- // ../../node_modules/next/dist/shared/lib/invariant-error.js
2003
- var require_invariant_error = __commonJS((exports) => {
2004
- Object.defineProperty(exports, "__esModule", {
2005
- value: true
2006
- });
2007
- Object.defineProperty(exports, "InvariantError", {
2008
- enumerable: true,
2009
- get: function() {
2010
- return InvariantError;
2011
- }
2012
- });
2013
-
2014
- class InvariantError extends Error {
2015
- constructor(message, options) {
2016
- super(`Invariant: ${message.endsWith(".") ? message : message + "."} This is a bug in Next.js.`, options);
2017
- this.name = "InvariantError";
2018
- }
2019
- }
2020
- });
2021
-
2022
- // ../../node_modules/next/dist/shared/lib/router/utils/parse-loader-tree.js
2023
- var require_parse_loader_tree = __commonJS((exports) => {
2024
- Object.defineProperty(exports, "__esModule", {
2025
- value: true
2026
- });
2027
- Object.defineProperty(exports, "parseLoaderTree", {
2028
- enumerable: true,
2029
- get: function() {
2030
- return parseLoaderTree;
2031
- }
2032
- });
2033
- var _segment = require_segment();
2034
- function parseLoaderTree(tree) {
2035
- const [segment, parallelRoutes, modules] = tree;
2036
- const { layout, template } = modules;
2037
- let { page } = modules;
2038
- page = segment === _segment.DEFAULT_SEGMENT_KEY ? modules.defaultPage : page;
2039
- const conventionPath = layout?.[1] || template?.[1] || page?.[1];
2040
- return {
2041
- page,
2042
- segment,
2043
- modules,
2044
- conventionPath,
2045
- parallelRoutes
2046
- };
2047
- }
2048
- });
2049
-
2050
- // ../../node_modules/next/dist/shared/lib/router/utils/get-segment-param.js
2051
- var require_get_segment_param = __commonJS((exports) => {
2052
- Object.defineProperty(exports, "__esModule", {
2053
- value: true
2054
- });
2055
- function _export(target, all) {
2056
- for (var name in all)
2057
- Object.defineProperty(target, name, {
2058
- enumerable: true,
2059
- get: all[name]
2060
- });
2061
- }
2062
- _export(exports, {
2063
- getParamProperties: function() {
2064
- return getParamProperties;
2065
- },
2066
- getSegmentParam: function() {
2067
- return getSegmentParam;
2068
- },
2069
- isCatchAll: function() {
2070
- return isCatchAll;
2071
- }
2072
- });
2073
- var _interceptionroutes = require_interception_routes();
2074
- function getSegmentParam(segment) {
2075
- const interceptionMarker = _interceptionroutes.INTERCEPTION_ROUTE_MARKERS.find((marker) => segment.startsWith(marker));
2076
- if (interceptionMarker) {
2077
- segment = segment.slice(interceptionMarker.length);
2078
- }
2079
- if (segment.startsWith("[[...") && segment.endsWith("]]")) {
2080
- return {
2081
- type: "optional-catchall",
2082
- param: segment.slice(5, -2)
2083
- };
2084
- }
2085
- if (segment.startsWith("[...") && segment.endsWith("]")) {
2086
- return {
2087
- type: interceptionMarker ? `catchall-intercepted-${interceptionMarker}` : "catchall",
2088
- param: segment.slice(4, -1)
2089
- };
2090
- }
2091
- if (segment.startsWith("[") && segment.endsWith("]")) {
2092
- return {
2093
- type: interceptionMarker ? `dynamic-intercepted-${interceptionMarker}` : "dynamic",
2094
- param: segment.slice(1, -1)
2095
- };
2096
- }
2097
- return null;
2098
- }
2099
- function isCatchAll(type) {
2100
- return type === "catchall" || type === "catchall-intercepted-(..)(..)" || type === "catchall-intercepted-(.)" || type === "catchall-intercepted-(..)" || type === "catchall-intercepted-(...)" || type === "optional-catchall";
2101
- }
2102
- function getParamProperties(paramType) {
2103
- let repeat = false;
2104
- let optional = false;
2105
- switch (paramType) {
2106
- case "catchall":
2107
- case "catchall-intercepted-(..)(..)":
2108
- case "catchall-intercepted-(.)":
2109
- case "catchall-intercepted-(..)":
2110
- case "catchall-intercepted-(...)":
2111
- repeat = true;
2112
- break;
2113
- case "optional-catchall":
2114
- repeat = true;
2115
- optional = true;
2116
- break;
2117
- case "dynamic":
2118
- case "dynamic-intercepted-(..)(..)":
2119
- case "dynamic-intercepted-(.)":
2120
- case "dynamic-intercepted-(..)":
2121
- case "dynamic-intercepted-(...)":
2122
- break;
2123
- default:
2124
- }
2125
- return {
2126
- repeat,
2127
- optional
2128
- };
2129
- }
2130
- });
2131
-
2132
1946
  // ../../node_modules/next/dist/shared/lib/router/utils/get-dynamic-param.js
2133
1947
  var require_get_dynamic_param = __commonJS((exports) => {
2134
1948
  Object.defineProperty(exports, "__esModule", {
@@ -2148,9 +1962,6 @@ var require_get_dynamic_param = __commonJS((exports) => {
2148
1962
  getDynamicParam: function() {
2149
1963
  return getDynamicParam;
2150
1964
  },
2151
- interpolateParallelRouteParams: function() {
2152
- return interpolateParallelRouteParams;
2153
- },
2154
1965
  parseMatchedParameter: function() {
2155
1966
  return parseMatchedParameter;
2156
1967
  },
@@ -2158,100 +1969,47 @@ var require_get_dynamic_param = __commonJS((exports) => {
2158
1969
  return parseParameter;
2159
1970
  }
2160
1971
  });
2161
- var _invarianterror = require_invariant_error();
2162
- var _parseloadertree = require_parse_loader_tree();
2163
- var _getsegmentparam = require_get_segment_param();
2164
- function getParamValue(interpolatedParams, segmentKey, fallbackRouteParams) {
2165
- let value = interpolatedParams[segmentKey];
2166
- if (fallbackRouteParams?.has(segmentKey)) {
2167
- const [searchValue] = fallbackRouteParams.get(segmentKey);
2168
- value = searchValue;
1972
+ function getDynamicParam(params, segmentKey, dynamicParamType, pagePath, fallbackRouteParams) {
1973
+ let value = params[segmentKey];
1974
+ if (fallbackRouteParams && fallbackRouteParams.has(segmentKey)) {
1975
+ value = fallbackRouteParams.get(segmentKey);
2169
1976
  } else if (Array.isArray(value)) {
2170
1977
  value = value.map((i) => encodeURIComponent(i));
2171
1978
  } else if (typeof value === "string") {
2172
1979
  value = encodeURIComponent(value);
2173
1980
  }
2174
- return value;
2175
- }
2176
- function interpolateParallelRouteParams(loaderTree, params, pagePath, fallbackRouteParams) {
2177
- const interpolated = structuredClone(params);
2178
- const stack = [
2179
- {
2180
- tree: loaderTree,
2181
- depth: 0
2182
- }
2183
- ];
2184
- const pathSegments = pagePath.split("/").slice(1);
2185
- while (stack.length > 0) {
2186
- const { tree, depth } = stack.pop();
2187
- const { segment, parallelRoutes } = (0, _parseloadertree.parseLoaderTree)(tree);
2188
- const segmentParam = (0, _getsegmentparam.getSegmentParam)(segment);
2189
- if (segmentParam && !interpolated.hasOwnProperty(segmentParam.param) && !fallbackRouteParams?.has(segmentParam.param)) {
2190
- switch (segmentParam.type) {
2191
- case "catchall":
2192
- case "optional-catchall":
2193
- case "catchall-intercepted-(..)(..)":
2194
- case "catchall-intercepted-(.)":
2195
- case "catchall-intercepted-(..)":
2196
- case "catchall-intercepted-(...)":
2197
- const remainingSegments = pathSegments.slice(depth);
2198
- const processedSegments = remainingSegments.flatMap((pathSegment) => {
2199
- const param = (0, _getsegmentparam.getSegmentParam)(pathSegment);
2200
- return param ? interpolated[param.param] : pathSegment;
2201
- }).filter((s) => s !== undefined);
2202
- if (processedSegments.length > 0) {
2203
- interpolated[segmentParam.param] = processedSegments;
2204
- }
2205
- break;
2206
- case "dynamic":
2207
- case "dynamic-intercepted-(..)(..)":
2208
- case "dynamic-intercepted-(.)":
2209
- case "dynamic-intercepted-(..)":
2210
- case "dynamic-intercepted-(...)":
2211
- if (depth < pathSegments.length) {
2212
- const pathSegment = pathSegments[depth];
2213
- const param = (0, _getsegmentparam.getSegmentParam)(pathSegment);
2214
- interpolated[segmentParam.param] = param ? interpolated[param.param] : pathSegment;
2215
- }
2216
- break;
2217
- default:
2218
- segmentParam.type;
1981
+ if (!value) {
1982
+ const isCatchall = dynamicParamType === "c";
1983
+ const isOptionalCatchall = dynamicParamType === "oc";
1984
+ if (isCatchall || isOptionalCatchall) {
1985
+ if (isOptionalCatchall) {
1986
+ return {
1987
+ param: segmentKey,
1988
+ value: null,
1989
+ type: dynamicParamType,
1990
+ treeSegment: [
1991
+ segmentKey,
1992
+ "",
1993
+ dynamicParamType
1994
+ ]
1995
+ };
2219
1996
  }
2220
- }
2221
- let nextDepth = depth;
2222
- const isRouteGroup = segment.startsWith("(") && segment.endsWith(")");
2223
- if (!isRouteGroup && segment !== "") {
2224
- nextDepth++;
2225
- }
2226
- for (const route of Object.values(parallelRoutes)) {
2227
- stack.push({
2228
- tree: route,
2229
- depth: nextDepth
1997
+ value = pagePath.split("/").slice(1).flatMap((pathSegment) => {
1998
+ const param = parseParameter(pathSegment);
1999
+ var _params_param_key;
2000
+ return (_params_param_key = params[param.key]) != null ? _params_param_key : param.key;
2230
2001
  });
2231
- }
2232
- }
2233
- return interpolated;
2234
- }
2235
- function getDynamicParam(interpolatedParams, segmentKey, dynamicParamType, fallbackRouteParams) {
2236
- let value = getParamValue(interpolatedParams, segmentKey, fallbackRouteParams);
2237
- if (!value || value.length === 0) {
2238
- if (dynamicParamType === "oc") {
2239
2002
  return {
2240
2003
  param: segmentKey,
2241
- value: null,
2004
+ value,
2242
2005
  type: dynamicParamType,
2243
2006
  treeSegment: [
2244
2007
  segmentKey,
2245
- "",
2008
+ value.join("/"),
2246
2009
  dynamicParamType
2247
2010
  ]
2248
2011
  };
2249
2012
  }
2250
- throw Object.defineProperty(new _invarianterror.InvariantError(`Missing value for segment key: "${segmentKey}" with dynamic param type: ${dynamicParamType}`), "__NEXT_ERROR_CODE", {
2251
- value: "E864",
2252
- enumerable: false,
2253
- configurable: true
2254
- });
2255
2013
  }
2256
2014
  return {
2257
2015
  param: segmentKey,
@@ -2331,7 +2089,7 @@ var require_route_regex = __commonJS((exports) => {
2331
2089
  repeat,
2332
2090
  optional
2333
2091
  };
2334
- segments.push(`/${(0, _escaperegexp.escapeStringRegexp)(markerMatch)}([^/]+?)`);
2092
+ segments.push("/" + (0, _escaperegexp.escapeStringRegexp)(markerMatch) + "([^/]+?)");
2335
2093
  } else if (paramMatches && paramMatches[2]) {
2336
2094
  const { key, repeat, optional } = (0, _getdynamicparam.parseMatchedParameter)(paramMatches[2]);
2337
2095
  groups[key] = {
@@ -2340,7 +2098,7 @@ var require_route_regex = __commonJS((exports) => {
2340
2098
  optional
2341
2099
  };
2342
2100
  if (includePrefix && paramMatches[1]) {
2343
- segments.push(`/${(0, _escaperegexp.escapeStringRegexp)(paramMatches[1])}`);
2101
+ segments.push("/" + (0, _escaperegexp.escapeStringRegexp)(paramMatches[1]));
2344
2102
  }
2345
2103
  let s = repeat ? optional ? "(?:/(.+?))?" : "/(.+?)" : "/([^/]+?)";
2346
2104
  if (includePrefix && paramMatches[1]) {
@@ -2348,7 +2106,7 @@ var require_route_regex = __commonJS((exports) => {
2348
2106
  }
2349
2107
  segments.push(s);
2350
2108
  } else {
2351
- segments.push(`/${(0, _escaperegexp.escapeStringRegexp)(segment)}`);
2109
+ segments.push("/" + (0, _escaperegexp.escapeStringRegexp)(segment));
2352
2110
  }
2353
2111
  if (includeSuffix && paramMatches && paramMatches[3]) {
2354
2112
  segments.push((0, _escaperegexp.escapeStringRegexp)(paramMatches[3]));
@@ -2359,14 +2117,15 @@ var require_route_regex = __commonJS((exports) => {
2359
2117
  groups
2360
2118
  };
2361
2119
  }
2362
- function getRouteRegex(normalizedRoute, { includeSuffix = false, includePrefix = false, excludeOptionalTrailingSlash = false } = {}) {
2120
+ function getRouteRegex(normalizedRoute, param) {
2121
+ let { includeSuffix = false, includePrefix = false, excludeOptionalTrailingSlash = false } = param === undefined ? {} : param;
2363
2122
  const { parameterizedRoute, groups } = getParametrizedRoute(normalizedRoute, includeSuffix, includePrefix);
2364
2123
  let re = parameterizedRoute;
2365
2124
  if (!excludeOptionalTrailingSlash) {
2366
2125
  re += "(?:/)?";
2367
2126
  }
2368
2127
  return {
2369
- re: new RegExp(`^${re}$`),
2128
+ re: new RegExp("^" + re + "$"),
2370
2129
  groups
2371
2130
  };
2372
2131
  }
@@ -2382,11 +2141,12 @@ var require_route_regex = __commonJS((exports) => {
2382
2141
  return routeKey;
2383
2142
  };
2384
2143
  }
2385
- function getSafeKeyFromSegment({ interceptionMarker, getSafeRouteKey, segment, routeKeys, keyPrefix, backreferenceDuplicateKeys }) {
2144
+ function getSafeKeyFromSegment(param) {
2145
+ let { interceptionMarker, getSafeRouteKey, segment, routeKeys, keyPrefix, backreferenceDuplicateKeys } = param;
2386
2146
  const { key, optional, repeat } = (0, _getdynamicparam.parseMatchedParameter)(segment);
2387
2147
  let cleanedKey = key.replace(/\W/g, "");
2388
2148
  if (keyPrefix) {
2389
- cleanedKey = `${keyPrefix}${cleanedKey}`;
2149
+ cleanedKey = "" + keyPrefix + cleanedKey;
2390
2150
  }
2391
2151
  let invalidKey = false;
2392
2152
  if (cleanedKey.length === 0 || cleanedKey.length > 30) {
@@ -2400,108 +2160,75 @@ var require_route_regex = __commonJS((exports) => {
2400
2160
  }
2401
2161
  const duplicateKey = cleanedKey in routeKeys;
2402
2162
  if (keyPrefix) {
2403
- routeKeys[cleanedKey] = `${keyPrefix}${key}`;
2163
+ routeKeys[cleanedKey] = "" + keyPrefix + key;
2404
2164
  } else {
2405
2165
  routeKeys[cleanedKey] = key;
2406
2166
  }
2407
2167
  const interceptionPrefix = interceptionMarker ? (0, _escaperegexp.escapeStringRegexp)(interceptionMarker) : "";
2408
2168
  let pattern;
2409
2169
  if (duplicateKey && backreferenceDuplicateKeys) {
2410
- pattern = `\\k<${cleanedKey}>`;
2170
+ pattern = "\\k<" + cleanedKey + ">";
2411
2171
  } else if (repeat) {
2412
- pattern = `(?<${cleanedKey}>.+?)`;
2172
+ pattern = "(?<" + cleanedKey + ">.+?)";
2413
2173
  } else {
2414
- pattern = `(?<${cleanedKey}>[^/]+?)`;
2174
+ pattern = "(?<" + cleanedKey + ">[^/]+?)";
2415
2175
  }
2416
- return {
2417
- key,
2418
- pattern: optional ? `(?:/${interceptionPrefix}${pattern})?` : `/${interceptionPrefix}${pattern}`,
2419
- cleanedKey,
2420
- optional,
2421
- repeat
2422
- };
2176
+ return optional ? "(?:/" + interceptionPrefix + pattern + ")?" : "/" + interceptionPrefix + pattern;
2423
2177
  }
2424
- function getNamedParametrizedRoute(route, prefixRouteKeys, includeSuffix, includePrefix, backreferenceDuplicateKeys, reference = {
2425
- names: {},
2426
- intercepted: {}
2427
- }) {
2178
+ function getNamedParametrizedRoute(route, prefixRouteKeys, includeSuffix, includePrefix, backreferenceDuplicateKeys) {
2428
2179
  const getSafeRouteKey = buildGetSafeRouteKey();
2429
2180
  const routeKeys = {};
2430
2181
  const segments = [];
2431
- const inverseParts = [];
2432
- reference = structuredClone(reference);
2433
2182
  for (const segment of (0, _removetrailingslash.removeTrailingSlash)(route).slice(1).split("/")) {
2434
2183
  const hasInterceptionMarker = _interceptionroutes.INTERCEPTION_ROUTE_MARKERS.some((m) => segment.startsWith(m));
2435
2184
  const paramMatches = segment.match(_getdynamicparam.PARAMETER_PATTERN);
2436
- const interceptionMarker = hasInterceptionMarker ? paramMatches?.[1] : undefined;
2437
- let keyPrefix;
2438
- if (interceptionMarker && paramMatches?.[2]) {
2439
- keyPrefix = prefixRouteKeys ? _constants.NEXT_INTERCEPTION_MARKER_PREFIX : undefined;
2440
- reference.intercepted[paramMatches[2]] = interceptionMarker;
2441
- } else if (paramMatches?.[2] && reference.intercepted[paramMatches[2]]) {
2442
- keyPrefix = prefixRouteKeys ? _constants.NEXT_INTERCEPTION_MARKER_PREFIX : undefined;
2443
- } else {
2444
- keyPrefix = prefixRouteKeys ? _constants.NEXT_QUERY_PARAM_PREFIX : undefined;
2445
- }
2446
- if (interceptionMarker && paramMatches && paramMatches[2]) {
2447
- const { key, pattern, cleanedKey, repeat, optional } = getSafeKeyFromSegment({
2185
+ if (hasInterceptionMarker && paramMatches && paramMatches[2]) {
2186
+ segments.push(getSafeKeyFromSegment({
2448
2187
  getSafeRouteKey,
2449
- interceptionMarker,
2188
+ interceptionMarker: paramMatches[1],
2450
2189
  segment: paramMatches[2],
2451
2190
  routeKeys,
2452
- keyPrefix,
2191
+ keyPrefix: prefixRouteKeys ? _constants.NEXT_INTERCEPTION_MARKER_PREFIX : undefined,
2453
2192
  backreferenceDuplicateKeys
2454
- });
2455
- segments.push(pattern);
2456
- inverseParts.push(`/${paramMatches[1]}:${reference.names[key] ?? cleanedKey}${repeat ? optional ? "*" : "+" : ""}`);
2457
- reference.names[key] ??= cleanedKey;
2193
+ }));
2458
2194
  } else if (paramMatches && paramMatches[2]) {
2459
2195
  if (includePrefix && paramMatches[1]) {
2460
- segments.push(`/${(0, _escaperegexp.escapeStringRegexp)(paramMatches[1])}`);
2461
- inverseParts.push(`/${paramMatches[1]}`);
2196
+ segments.push("/" + (0, _escaperegexp.escapeStringRegexp)(paramMatches[1]));
2462
2197
  }
2463
- const { key, pattern, cleanedKey, repeat, optional } = getSafeKeyFromSegment({
2198
+ let s = getSafeKeyFromSegment({
2464
2199
  getSafeRouteKey,
2465
2200
  segment: paramMatches[2],
2466
2201
  routeKeys,
2467
- keyPrefix,
2202
+ keyPrefix: prefixRouteKeys ? _constants.NEXT_QUERY_PARAM_PREFIX : undefined,
2468
2203
  backreferenceDuplicateKeys
2469
2204
  });
2470
- let s = pattern;
2471
2205
  if (includePrefix && paramMatches[1]) {
2472
2206
  s = s.substring(1);
2473
2207
  }
2474
2208
  segments.push(s);
2475
- inverseParts.push(`/:${reference.names[key] ?? cleanedKey}${repeat ? optional ? "*" : "+" : ""}`);
2476
- reference.names[key] ??= cleanedKey;
2477
2209
  } else {
2478
- segments.push(`/${(0, _escaperegexp.escapeStringRegexp)(segment)}`);
2479
- inverseParts.push(`/${segment}`);
2210
+ segments.push("/" + (0, _escaperegexp.escapeStringRegexp)(segment));
2480
2211
  }
2481
2212
  if (includeSuffix && paramMatches && paramMatches[3]) {
2482
2213
  segments.push((0, _escaperegexp.escapeStringRegexp)(paramMatches[3]));
2483
- inverseParts.push(paramMatches[3]);
2484
2214
  }
2485
2215
  }
2486
2216
  return {
2487
2217
  namedParameterizedRoute: segments.join(""),
2488
- routeKeys,
2489
- pathToRegexpPattern: inverseParts.join(""),
2490
- reference
2218
+ routeKeys
2491
2219
  };
2492
2220
  }
2493
2221
  function getNamedRouteRegex(normalizedRoute, options) {
2494
- const result = getNamedParametrizedRoute(normalizedRoute, options.prefixRouteKeys, options.includeSuffix ?? false, options.includePrefix ?? false, options.backreferenceDuplicateKeys ?? false, options.reference);
2222
+ var _options_includeSuffix, _options_includePrefix, _options_backreferenceDuplicateKeys;
2223
+ const result = getNamedParametrizedRoute(normalizedRoute, options.prefixRouteKeys, (_options_includeSuffix = options.includeSuffix) != null ? _options_includeSuffix : false, (_options_includePrefix = options.includePrefix) != null ? _options_includePrefix : false, (_options_backreferenceDuplicateKeys = options.backreferenceDuplicateKeys) != null ? _options_backreferenceDuplicateKeys : false);
2495
2224
  let namedRegex = result.namedParameterizedRoute;
2496
2225
  if (!options.excludeOptionalTrailingSlash) {
2497
2226
  namedRegex += "(?:/)?";
2498
2227
  }
2499
2228
  return {
2500
2229
  ...getRouteRegex(normalizedRoute, options),
2501
- namedRegex: `^${namedRegex}$`,
2502
- routeKeys: result.routeKeys,
2503
- pathToRegexpPattern: result.pathToRegexpPattern,
2504
- reference: result.reference
2230
+ namedRegex: "^" + namedRegex + "$",
2231
+ routeKeys: result.routeKeys
2505
2232
  };
2506
2233
  }
2507
2234
  function getNamedMiddlewareRegex(normalizedRoute, options) {
@@ -2510,13 +2237,13 @@ var require_route_regex = __commonJS((exports) => {
2510
2237
  if (parameterizedRoute === "/") {
2511
2238
  let catchAllRegex = catchAll ? ".*" : "";
2512
2239
  return {
2513
- namedRegex: `^/${catchAllRegex}$`
2240
+ namedRegex: "^/" + catchAllRegex + "$"
2514
2241
  };
2515
2242
  }
2516
- const { namedParameterizedRoute } = getNamedParametrizedRoute(normalizedRoute, false, false, false, false, undefined);
2243
+ const { namedParameterizedRoute } = getNamedParametrizedRoute(normalizedRoute, false, false, false, false);
2517
2244
  let catchAllGroupedRegex = catchAll ? "(?:(/.*)?)" : "";
2518
2245
  return {
2519
- namedRegex: `^${namedParameterizedRoute}${catchAllGroupedRegex}$`
2246
+ namedRegex: "^" + namedParameterizedRoute + catchAllGroupedRegex + "$"
2520
2247
  };
2521
2248
  }
2522
2249
  });
@@ -2544,9 +2271,9 @@ var require_interpolate_as = __commonJS((exports) => {
2544
2271
  if (!params.every((param) => {
2545
2272
  let value = dynamicMatches[param] || "";
2546
2273
  const { repeat, optional } = dynamicGroups[param];
2547
- let replaced = `[${repeat ? "..." : ""}${param}]`;
2274
+ let replaced = "[" + (repeat ? "..." : "") + param + "]";
2548
2275
  if (optional) {
2549
- replaced = `${!value ? "/" : ""}[${replaced}]`;
2276
+ replaced = (!value ? "/" : "") + "[" + replaced + "]";
2550
2277
  }
2551
2278
  if (repeat && !Array.isArray(value))
2552
2279
  value = [
@@ -2591,7 +2318,7 @@ var require_resolve_href = __commonJS((exports, module) => {
2591
2318
  const urlAsStringNoProto = urlProtoMatch ? urlAsString.slice(urlProtoMatch[0].length) : urlAsString;
2592
2319
  const urlParts = urlAsStringNoProto.split("?", 1);
2593
2320
  if ((urlParts[0] || "").match(/(\/\/|\\)/)) {
2594
- console.error(`Invalid href '${urlAsString}' passed to next/router in page: '${router.pathname}'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.`);
2321
+ console.error("Invalid href '" + urlAsString + "' passed to next/router in page: '" + router.pathname + "'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");
2595
2322
  const normalizedUrl = (0, _utils.normalizeRepeatedSlashes)(urlAsStringNoProto);
2596
2323
  urlAsString = (urlProtoMatch ? urlProtoMatch[0] : "") + normalizedUrl;
2597
2324
  }
@@ -2667,7 +2394,7 @@ var require_add_path_prefix = __commonJS((exports) => {
2667
2394
  return path;
2668
2395
  }
2669
2396
  const { pathname, query, hash } = (0, _parsepath.parsePath)(path);
2670
- return `${prefix}${pathname}${query}${hash}`;
2397
+ return "" + prefix + pathname + query + hash;
2671
2398
  }
2672
2399
  });
2673
2400
 
@@ -2691,10 +2418,10 @@ var require_add_locale = __commonJS((exports) => {
2691
2418
  if (!ignorePrefix) {
2692
2419
  if ((0, _pathhasprefix.pathHasPrefix)(lower, "/api"))
2693
2420
  return path;
2694
- if ((0, _pathhasprefix.pathHasPrefix)(lower, `/${locale.toLowerCase()}`))
2421
+ if ((0, _pathhasprefix.pathHasPrefix)(lower, "/" + locale.toLowerCase()))
2695
2422
  return path;
2696
2423
  }
2697
- return (0, _addpathprefix.addPathPrefix)(path, `/${locale}`);
2424
+ return (0, _addpathprefix.addPathPrefix)(path, "/" + locale);
2698
2425
  }
2699
2426
  });
2700
2427
 
@@ -2710,7 +2437,10 @@ var require_add_locale2 = __commonJS((exports, module) => {
2710
2437
  }
2711
2438
  });
2712
2439
  var _normalizetrailingslash = require_normalize_trailing_slash();
2713
- var addLocale = (path, ...args) => {
2440
+ var addLocale = function(path) {
2441
+ for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1;_key < _len; _key++) {
2442
+ args[_key - 1] = arguments[_key];
2443
+ }
2714
2444
  if (process.env.__NEXT_I18N_SUPPORT) {
2715
2445
  return (0, _normalizetrailingslash.normalizePathTrailingSlash)(require_add_locale().addLocale(path, ...args));
2716
2446
  }
@@ -2855,7 +2585,8 @@ var require_use_intersection = __commonJS((exports, module) => {
2855
2585
  }
2856
2586
  };
2857
2587
  }
2858
- function useIntersection({ rootRef, rootMargin, disabled }) {
2588
+ function useIntersection(param) {
2589
+ let { rootRef, rootMargin, disabled } = param;
2859
2590
  const isDisabled = disabled || !hasIntersectionObserver;
2860
2591
  const [visible, setVisible] = (0, _react.useState)(false);
2861
2592
  const elementRef = (0, _react.useRef)(null);
@@ -2869,7 +2600,7 @@ var require_use_intersection = __commonJS((exports, module) => {
2869
2600
  const element = elementRef.current;
2870
2601
  if (element && element.tagName) {
2871
2602
  const unobserve = observe(element, (isVisible) => isVisible && setVisible(isVisible), {
2872
- root: rootRef?.current,
2603
+ root: rootRef == null ? undefined : rootRef.current,
2873
2604
  rootMargin
2874
2605
  });
2875
2606
  return unobserve;
@@ -2991,8 +2722,9 @@ var require_detect_domain_locale = __commonJS((exports) => {
2991
2722
  detectedLocale = detectedLocale.toLowerCase();
2992
2723
  }
2993
2724
  for (const item of domainItems) {
2994
- const domainHostname = item.domain?.split(":", 1)[0].toLowerCase();
2995
- if (hostname === domainHostname || detectedLocale === item.defaultLocale.toLowerCase() || item.locales?.some((locale) => locale.toLowerCase() === detectedLocale)) {
2725
+ var _item_domain, _item_locales;
2726
+ const domainHostname = (_item_domain = item.domain) == null ? undefined : _item_domain.split(":", 1)[0].toLowerCase();
2727
+ if (hostname === domainHostname || detectedLocale === item.defaultLocale.toLowerCase() || ((_item_locales = item.locales) == null ? undefined : _item_locales.some((locale) => locale.toLowerCase() === detectedLocale))) {
2996
2728
  return item;
2997
2729
  }
2998
2730
  }
@@ -3010,7 +2742,10 @@ var require_detect_domain_locale2 = __commonJS((exports, module) => {
3010
2742
  return detectDomainLocale;
3011
2743
  }
3012
2744
  });
3013
- var detectDomainLocale = (...args) => {
2745
+ var detectDomainLocale = function() {
2746
+ for (var _len = arguments.length, args = new Array(_len), _key = 0;_key < _len; _key++) {
2747
+ args[_key] = arguments[_key];
2748
+ }
3014
2749
  if (process.env.__NEXT_I18N_SUPPORT) {
3015
2750
  return require_detect_domain_locale().detectDomainLocale(...args);
3016
2751
  }
@@ -3042,9 +2777,9 @@ var require_get_domain_locale = __commonJS((exports, module) => {
3042
2777
  const target = locale || normalizeLocalePath(path, locales).detectedLocale;
3043
2778
  const domain = detectDomainLocale(domainLocales, undefined, target);
3044
2779
  if (domain) {
3045
- const proto = `http${domain.http ? "" : "s"}://`;
3046
- const finalLocale = target === domain.defaultLocale ? "" : `/${target}`;
3047
- return `${proto}${domain.domain}${(0, _normalizetrailingslash.normalizePathTrailingSlash)(`${basePath}${finalLocale}${path}`)}`;
2780
+ const proto = "http" + (domain.http ? "" : "s") + "://";
2781
+ const finalLocale = target === domain.defaultLocale ? "" : "/" + target;
2782
+ return "" + proto + domain.domain + (0, _normalizetrailingslash.normalizePathTrailingSlash)("" + basePath + finalLocale + path);
3048
2783
  }
3049
2784
  return false;
3050
2785
  } else {
@@ -3246,7 +2981,7 @@ var require_link = __commonJS((exports, module) => {
3246
2981
  return;
3247
2982
  }
3248
2983
  }
3249
- const routerScroll = scroll ?? true;
2984
+ const routerScroll = scroll != null ? scroll : true;
3250
2985
  if ("beforePopState" in router) {
3251
2986
  router[replace ? "replace" : "push"](href, as, {
3252
2987
  shallow,
@@ -3344,7 +3079,7 @@ var require_link = __commonJS((exports, module) => {
3344
3079
  isVisible,
3345
3080
  locale,
3346
3081
  prefetchEnabled,
3347
- router?.locale,
3082
+ router == null ? undefined : router.locale,
3348
3083
  router
3349
3084
  ]);
3350
3085
  const childProps = {
@@ -3401,9 +3136,9 @@ var require_link = __commonJS((exports, module) => {
3401
3136
  if ((0, _utils.isAbsoluteUrl)(as)) {
3402
3137
  childProps.href = as;
3403
3138
  } else if (!legacyBehavior || passHref || child.type === "a" && !("href" in child.props)) {
3404
- const curLocale = typeof locale !== "undefined" ? locale : router?.locale;
3405
- const localeDomain = router?.isLocaleDomain && (0, _getdomainlocale.getDomainLocale)(as, curLocale, router?.locales, router?.domainLocales);
3406
- childProps.href = localeDomain || (0, _addbasepath.addBasePath)((0, _addlocale.addLocale)(as, curLocale, router?.defaultLocale));
3139
+ const curLocale = typeof locale !== "undefined" ? locale : router == null ? undefined : router.locale;
3140
+ const localeDomain = (router == null ? undefined : router.isLocaleDomain) && (0, _getdomainlocale.getDomainLocale)(as, curLocale, router == null ? undefined : router.locales, router == null ? undefined : router.domainLocales);
3141
+ childProps.href = localeDomain || (0, _addbasepath.addBasePath)((0, _addlocale.addLocale)(as, curLocale, router == null ? undefined : router.defaultLocale));
3407
3142
  }
3408
3143
  if (legacyBehavior) {
3409
3144
  if (false) {}
@@ -4189,14 +3924,13 @@ function TypeTable({
4189
3924
  });
4190
3925
  }
4191
3926
  // src/components/styled/index.ts
4192
- import { CodeTabs, ImportSection } from "@openpkg-ts/ui/api";
3927
+ import {
3928
+ CodeTabs,
3929
+ ImportSection
3930
+ } from "@openpkg-ts/ui/api";
4193
3931
 
4194
3932
  // src/components/styled/sections/ClassSection.tsx
4195
- import {
4196
- APIParameterItem,
4197
- APISection,
4198
- ParameterList
4199
- } from "@openpkg-ts/ui/docskit";
3933
+ import { APIParameterItem, APISection, ParameterList } from "@openpkg-ts/ui/docskit";
4200
3934
 
4201
3935
  // src/adapters/spec-to-docskit.ts
4202
3936
  function specSchemaToAPISchema(schema) {
@@ -4361,13 +4095,15 @@ function ClassSection({ export: exp, spec }) {
4361
4095
  const languages = getLanguagesFromExamples(exp.examples);
4362
4096
  const examples = specExamplesToCodeExamples(exp.examples);
4363
4097
  const importStatement = buildImportStatement(exp, spec);
4364
- const displayExamples = examples.length > 0 ? examples : [{
4365
- languageId: "typescript",
4366
- code: `${importStatement}
4098
+ const displayExamples = examples.length > 0 ? examples : [
4099
+ {
4100
+ languageId: "typescript",
4101
+ code: `${importStatement}
4367
4102
 
4368
4103
  const instance = new ${exp.name}(${constructorParams.map((p) => p.name).join(", ")});`,
4369
- highlightLang: "ts"
4370
- }];
4104
+ highlightLang: "ts"
4105
+ }
4106
+ ];
4371
4107
  const displayLanguages = languages.length > 0 ? languages : [{ id: "typescript", label: "TypeScript" }];
4372
4108
  const inheritance = [
4373
4109
  exp.extends && `extends ${exp.extends}`,
@@ -4473,11 +4209,7 @@ function ClassPage({ export: exp, spec }) {
4473
4209
  }
4474
4210
 
4475
4211
  // src/components/styled/sections/EnumSection.tsx
4476
- import {
4477
- APIParameterItem as APIParameterItem2,
4478
- APISection as APISection2,
4479
- ParameterList as ParameterList2
4480
- } from "@openpkg-ts/ui/docskit";
4212
+ import { APIParameterItem as APIParameterItem2, APISection as APISection2, ParameterList as ParameterList2 } from "@openpkg-ts/ui/docskit";
4481
4213
  import { jsx as jsx10, jsxs as jsxs8 } from "react/jsx-runtime";
4482
4214
 
4483
4215
  function EnumSection({ export: exp, spec }) {
@@ -4492,13 +4224,15 @@ ${members.map((m) => {
4492
4224
  }).join(`
4493
4225
  `)}
4494
4226
  }` : `enum ${exp.name} { }`;
4495
- const displayExamples = examples.length > 0 ? examples : [{
4496
- languageId: "typescript",
4497
- code: `${importStatement}
4227
+ const displayExamples = examples.length > 0 ? examples : [
4228
+ {
4229
+ languageId: "typescript",
4230
+ code: `${importStatement}
4498
4231
 
4499
4232
  ${enumDefinition}`,
4500
- highlightLang: "ts"
4501
- }];
4233
+ highlightLang: "ts"
4234
+ }
4235
+ ];
4502
4236
  const displayLanguages = languages.length > 0 ? languages : [{ id: "typescript", label: "TypeScript" }];
4503
4237
  return /* @__PURE__ */ jsx10(APISection2, {
4504
4238
  id: exp.id || exp.name,
@@ -22589,7 +22323,7 @@ var __iconNode1651 = [
22589
22323
  ];
22590
22324
  var ZoomOut = createLucideIcon("zoom-out", __iconNode1651);
22591
22325
  // src/components/styled/ExportIndexPage.tsx
22592
- import { useState as useState4, useMemo } from "react";
22326
+ import { useMemo, useState as useState4 } from "react";
22593
22327
 
22594
22328
  // src/components/styled/ExportCard.tsx
22595
22329
  var import_link3 = __toESM(require_link(), 1);
@@ -22813,31 +22547,25 @@ function ExportIndexPage({
22813
22547
  }
22814
22548
 
22815
22549
  // src/components/styled/sections/FunctionSection.tsx
22816
- import {
22817
- APIParameterItem as APIParameterItem3,
22818
- APISection as APISection3,
22819
- ParameterList as ParameterList3,
22820
- ResponseBlock
22821
- } from "@openpkg-ts/ui/docskit";
22550
+ import { APIParameterItem as APIParameterItem3, APISection as APISection3, ParameterList as ParameterList3, ResponseBlock } from "@openpkg-ts/ui/docskit";
22822
22551
  import { jsx as jsx14, jsxs as jsxs11 } from "react/jsx-runtime";
22823
22552
 
22824
- function FunctionSection({
22825
- export: exp,
22826
- spec
22827
- }) {
22553
+ function FunctionSection({ export: exp, spec }) {
22828
22554
  const sig = exp.signatures?.[0];
22829
22555
  const hasParams = sig?.parameters && sig.parameters.length > 0;
22830
22556
  const languages = getLanguagesFromExamples(exp.examples);
22831
22557
  const examples = specExamplesToCodeExamples(exp.examples);
22832
22558
  const importStatement = buildImportStatement(exp, spec);
22833
- const displayExamples = examples.length > 0 ? examples : [{
22834
- languageId: "typescript",
22835
- code: `${importStatement}
22559
+ const displayExamples = examples.length > 0 ? examples : [
22560
+ {
22561
+ languageId: "typescript",
22562
+ code: `${importStatement}
22836
22563
 
22837
22564
  // Usage
22838
22565
  ${exp.name}(${sig?.parameters?.map((p) => p.name).join(", ") || ""})`,
22839
- highlightLang: "ts"
22840
- }];
22566
+ highlightLang: "ts"
22567
+ }
22568
+ ];
22841
22569
  const displayLanguages = languages.length > 0 ? languages : [{ id: "typescript", label: "TypeScript" }];
22842
22570
  return /* @__PURE__ */ jsxs11(APISection3, {
22843
22571
  id: exp.id || exp.name,
@@ -22902,10 +22630,7 @@ ${exp.name}(${sig?.parameters?.map((p) => p.name).join(", ") || ""})`,
22902
22630
  // src/components/styled/FunctionPage.tsx
22903
22631
  import { jsx as jsx15 } from "react/jsx-runtime";
22904
22632
 
22905
- function FunctionPage({
22906
- export: exp,
22907
- spec
22908
- }) {
22633
+ function FunctionPage({ export: exp, spec }) {
22909
22634
  return /* @__PURE__ */ jsx15("div", {
22910
22635
  className: "doccov-function-page not-prose",
22911
22636
  children: /* @__PURE__ */ jsx15(FunctionSection, {
@@ -22916,11 +22641,7 @@ function FunctionPage({
22916
22641
  }
22917
22642
 
22918
22643
  // src/components/styled/sections/InterfaceSection.tsx
22919
- import {
22920
- APIParameterItem as APIParameterItem4,
22921
- APISection as APISection4,
22922
- ParameterList as ParameterList4
22923
- } from "@openpkg-ts/ui/docskit";
22644
+ import { APIParameterItem as APIParameterItem4, APISection as APISection4, ParameterList as ParameterList4 } from "@openpkg-ts/ui/docskit";
22924
22645
  import { jsx as jsx16, jsxs as jsxs12 } from "react/jsx-runtime";
22925
22646
 
22926
22647
  function formatMethodSignature2(member) {
@@ -22930,10 +22651,7 @@ function formatMethodSignature2(member) {
22930
22651
  const paramStr = params.map((p) => `${p.name}${p.required === false ? "?" : ""}: ${formatSchema(p.schema)}`).join(", ");
22931
22652
  return `(${paramStr}): ${returnType}`;
22932
22653
  }
22933
- function InterfaceSection({
22934
- export: exp,
22935
- spec
22936
- }) {
22654
+ function InterfaceSection({ export: exp, spec }) {
22937
22655
  const properties = exp.members?.filter((m) => m.kind === "property" || m.kind === "field" || !m.kind) ?? [];
22938
22656
  const methods = exp.members?.filter((m) => m.kind === "method" || m.kind === "function") ?? [];
22939
22657
  const languages = getLanguagesFromExamples(exp.examples);
@@ -22943,13 +22661,15 @@ function InterfaceSection({
22943
22661
  ${properties.map((p) => ` ${p.name}${p.required === false ? "?" : ""}: ${formatSchema(p.schema)};`).join(`
22944
22662
  `)}
22945
22663
  }` : `${exp.kind === "type" ? "type" : "interface"} ${exp.name} { }`;
22946
- const displayExamples = examples.length > 0 ? examples : [{
22947
- languageId: "typescript",
22948
- code: `${importStatement}
22664
+ const displayExamples = examples.length > 0 ? examples : [
22665
+ {
22666
+ languageId: "typescript",
22667
+ code: `${importStatement}
22949
22668
 
22950
22669
  ${typeDefinition}`,
22951
- highlightLang: "ts"
22952
- }];
22670
+ highlightLang: "ts"
22671
+ }
22672
+ ];
22953
22673
  const displayLanguages = languages.length > 0 ? languages : [{ id: "typescript", label: "TypeScript" }];
22954
22674
  const kindLabel = exp.kind === "type" ? "type" : "interface";
22955
22675
  return /* @__PURE__ */ jsxs12(APISection4, {
@@ -23018,10 +22738,7 @@ ${typeDefinition}`,
23018
22738
  // src/components/styled/InterfacePage.tsx
23019
22739
  import { jsx as jsx17 } from "react/jsx-runtime";
23020
22740
 
23021
- function InterfacePage({
23022
- export: exp,
23023
- spec
23024
- }) {
22741
+ function InterfacePage({ export: exp, spec }) {
23025
22742
  return /* @__PURE__ */ jsx17("div", {
23026
22743
  className: "doccov-interface-page not-prose",
23027
22744
  children: /* @__PURE__ */ jsx17(InterfaceSection, {
@@ -23032,29 +22749,24 @@ function InterfacePage({
23032
22749
  }
23033
22750
 
23034
22751
  // src/components/styled/sections/VariableSection.tsx
23035
- import {
23036
- APIParameterItem as APIParameterItem5,
23037
- APISection as APISection5,
23038
- ParameterList as ParameterList5
23039
- } from "@openpkg-ts/ui/docskit";
22752
+ import { APIParameterItem as APIParameterItem5, APISection as APISection5, ParameterList as ParameterList5 } from "@openpkg-ts/ui/docskit";
23040
22753
  import { jsx as jsx18, jsxs as jsxs13 } from "react/jsx-runtime";
23041
22754
 
23042
- function VariableSection({
23043
- export: exp,
23044
- spec
23045
- }) {
22755
+ function VariableSection({ export: exp, spec }) {
23046
22756
  const typeValue = typeof exp.type === "string" ? exp.type : formatSchema(exp.schema);
23047
22757
  const languages = getLanguagesFromExamples(exp.examples);
23048
22758
  const examples = specExamplesToCodeExamples(exp.examples);
23049
22759
  const importStatement = buildImportStatement(exp, spec);
23050
22760
  const constValue = exp.schema && typeof exp.schema === "object" ? exp.schema.const : undefined;
23051
- const displayExamples = examples.length > 0 ? examples : [{
23052
- languageId: "typescript",
23053
- code: `${importStatement}
22761
+ const displayExamples = examples.length > 0 ? examples : [
22762
+ {
22763
+ languageId: "typescript",
22764
+ code: `${importStatement}
23054
22765
 
23055
22766
  console.log(${exp.name}); // ${constValue !== undefined ? JSON.stringify(constValue) : typeValue}`,
23056
- highlightLang: "ts"
23057
- }];
22767
+ highlightLang: "ts"
22768
+ }
22769
+ ];
23058
22770
  const displayLanguages = languages.length > 0 ? languages : [{ id: "typescript", label: "TypeScript" }];
23059
22771
  return /* @__PURE__ */ jsx18(APISection5, {
23060
22772
  id: exp.id || exp.name,
@@ -23097,10 +22809,7 @@ console.log(${exp.name}); // ${constValue !== undefined ? JSON.stringify(constVa
23097
22809
  // src/components/styled/VariablePage.tsx
23098
22810
  import { jsx as jsx19 } from "react/jsx-runtime";
23099
22811
 
23100
- function VariablePage({
23101
- export: exp,
23102
- spec
23103
- }) {
22812
+ function VariablePage({ export: exp, spec }) {
23104
22813
  return /* @__PURE__ */ jsx19("div", {
23105
22814
  className: "doccov-variable-page not-prose",
23106
22815
  children: /* @__PURE__ */ jsx19(VariableSection, {
@@ -23201,7 +22910,7 @@ function APIPage({
23201
22910
  // src/components/styled/FullAPIReferencePage.tsx
23202
22911
  import { APIReferencePage } from "@openpkg-ts/ui/docskit";
23203
22912
  import { cn as cn3 } from "@openpkg-ts/ui/lib/utils";
23204
- import { useState as useState5, useMemo as useMemo2, useEffect as useEffect2, useRef, useCallback } from "react";
22913
+ import { useCallback, useEffect as useEffect2, useMemo as useMemo2, useRef, useState as useState5 } from "react";
23205
22914
 
23206
22915
  // src/components/styled/sections/ExportSection.tsx
23207
22916
  import { jsx as jsx21 } from "react/jsx-runtime";
@@ -23333,7 +23042,7 @@ function FullAPIReferencePage({
23333
23042
  if (!showTOC || typeof window === "undefined")
23334
23043
  return;
23335
23044
  const sectionIds = filteredExports.map((exp) => exp.id || exp.name);
23336
- const observers = [];
23045
+ const _observers = [];
23337
23046
  const handleIntersect = (entries) => {
23338
23047
  if (isScrollingRef.current)
23339
23048
  return;