@epam/ai-dial-modulify-ui 0.44.0-rc.4 → 0.44.0-rc.40

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 (2) hide show
  1. package/index.esm.js +645 -1323
  2. package/package.json +1 -1
package/index.esm.js CHANGED
@@ -108,6 +108,7 @@ function requireReact_production () {
108
108
  REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
109
109
  REACT_MEMO_TYPE = Symbol.for("react.memo"),
110
110
  REACT_LAZY_TYPE = Symbol.for("react.lazy"),
111
+ REACT_ACTIVITY_TYPE = Symbol.for("react.activity"),
111
112
  MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
112
113
  function getIteratorFn(maybeIterable) {
113
114
  if (null === maybeIterable || "object" !== typeof maybeIterable) return null;
@@ -159,28 +160,22 @@ function requireReact_production () {
159
160
  pureComponentPrototype.constructor = PureComponent;
160
161
  assign(pureComponentPrototype, Component.prototype);
161
162
  pureComponentPrototype.isPureReactComponent = true;
162
- var isArrayImpl = Array.isArray,
163
- ReactSharedInternals = { H: null, A: null, T: null, S: null },
163
+ var isArrayImpl = Array.isArray;
164
+ function noop() {}
165
+ var ReactSharedInternals = { H: null, A: null, T: null, S: null },
164
166
  hasOwnProperty = Object.prototype.hasOwnProperty;
165
- function ReactElement(type, key, self, source, owner, props) {
166
- self = props.ref;
167
+ function ReactElement(type, key, props) {
168
+ var refProp = props.ref;
167
169
  return {
168
170
  $$typeof: REACT_ELEMENT_TYPE,
169
171
  type: type,
170
172
  key: key,
171
- ref: void 0 !== self ? self : null,
173
+ ref: void 0 !== refProp ? refProp : null,
172
174
  props: props
173
175
  };
174
176
  }
175
177
  function cloneAndReplaceKey(oldElement, newKey) {
176
- return ReactElement(
177
- oldElement.type,
178
- newKey,
179
- void 0,
180
- void 0,
181
- void 0,
182
- oldElement.props
183
- );
178
+ return ReactElement(oldElement.type, newKey, oldElement.props);
184
179
  }
185
180
  function isValidElement(object) {
186
181
  return (
@@ -204,7 +199,6 @@ function requireReact_production () {
204
199
  ? escape("" + element.key)
205
200
  : index.toString(36);
206
201
  }
207
- function noop$1() {}
208
202
  function resolveThenable(thenable) {
209
203
  switch (thenable.status) {
210
204
  case "fulfilled":
@@ -214,7 +208,7 @@ function requireReact_production () {
214
208
  default:
215
209
  switch (
216
210
  ("string" === typeof thenable.status
217
- ? thenable.then(noop$1, noop$1)
211
+ ? thenable.then(noop, noop)
218
212
  : ((thenable.status = "pending"),
219
213
  thenable.then(
220
214
  function (fulfilledValue) {
@@ -375,68 +369,69 @@ function requireReact_production () {
375
369
  throw payload._result;
376
370
  }
377
371
  var reportGlobalError =
378
- "function" === typeof reportError
379
- ? reportError
380
- : function (error) {
381
- if (
382
- "object" === typeof window &&
383
- "function" === typeof window.ErrorEvent
384
- ) {
385
- var event = new window.ErrorEvent("error", {
386
- bubbles: true,
387
- cancelable: true,
388
- message:
389
- "object" === typeof error &&
390
- null !== error &&
391
- "string" === typeof error.message
392
- ? String(error.message)
393
- : String(error),
394
- error: error
395
- });
396
- if (!window.dispatchEvent(event)) return;
397
- } else if (
398
- "object" === typeof process &&
399
- "function" === typeof process.emit
400
- ) {
401
- process.emit("uncaughtException", error);
402
- return;
403
- }
404
- console.error(error);
405
- };
406
- function noop() {}
407
- react_production.Children = {
408
- map: mapChildren,
409
- forEach: function (children, forEachFunc, forEachContext) {
410
- mapChildren(
411
- children,
412
- function () {
413
- forEachFunc.apply(this, arguments);
414
- },
415
- forEachContext
416
- );
417
- },
418
- count: function (children) {
419
- var n = 0;
420
- mapChildren(children, function () {
421
- n++;
422
- });
423
- return n;
424
- },
425
- toArray: function (children) {
426
- return (
427
- mapChildren(children, function (child) {
428
- return child;
429
- }) || []
430
- );
431
- },
432
- only: function (children) {
433
- if (!isValidElement(children))
434
- throw Error(
435
- "React.Children.only expected to receive a single React element child."
372
+ "function" === typeof reportError
373
+ ? reportError
374
+ : function (error) {
375
+ if (
376
+ "object" === typeof window &&
377
+ "function" === typeof window.ErrorEvent
378
+ ) {
379
+ var event = new window.ErrorEvent("error", {
380
+ bubbles: true,
381
+ cancelable: true,
382
+ message:
383
+ "object" === typeof error &&
384
+ null !== error &&
385
+ "string" === typeof error.message
386
+ ? String(error.message)
387
+ : String(error),
388
+ error: error
389
+ });
390
+ if (!window.dispatchEvent(event)) return;
391
+ } else if (
392
+ "object" === typeof process &&
393
+ "function" === typeof process.emit
394
+ ) {
395
+ process.emit("uncaughtException", error);
396
+ return;
397
+ }
398
+ console.error(error);
399
+ },
400
+ Children = {
401
+ map: mapChildren,
402
+ forEach: function (children, forEachFunc, forEachContext) {
403
+ mapChildren(
404
+ children,
405
+ function () {
406
+ forEachFunc.apply(this, arguments);
407
+ },
408
+ forEachContext
436
409
  );
437
- return children;
438
- }
439
- };
410
+ },
411
+ count: function (children) {
412
+ var n = 0;
413
+ mapChildren(children, function () {
414
+ n++;
415
+ });
416
+ return n;
417
+ },
418
+ toArray: function (children) {
419
+ return (
420
+ mapChildren(children, function (child) {
421
+ return child;
422
+ }) || []
423
+ );
424
+ },
425
+ only: function (children) {
426
+ if (!isValidElement(children))
427
+ throw Error(
428
+ "React.Children.only expected to receive a single React element child."
429
+ );
430
+ return children;
431
+ }
432
+ };
433
+ react_production.Activity = REACT_ACTIVITY_TYPE;
434
+ react_production.Children = Children;
440
435
  react_production.Component = Component;
441
436
  react_production.Fragment = REACT_FRAGMENT_TYPE;
442
437
  react_production.Profiler = REACT_PROFILER_TYPE;
@@ -445,26 +440,29 @@ function requireReact_production () {
445
440
  react_production.Suspense = REACT_SUSPENSE_TYPE;
446
441
  react_production.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =
447
442
  ReactSharedInternals;
448
- react_production.act = function () {
449
- throw Error("act(...) is not supported in production builds of React.");
443
+ react_production.__COMPILER_RUNTIME = {
444
+ __proto__: null,
445
+ c: function (size) {
446
+ return ReactSharedInternals.H.useMemoCache(size);
447
+ }
450
448
  };
451
449
  react_production.cache = function (fn) {
452
450
  return function () {
453
451
  return fn.apply(null, arguments);
454
452
  };
455
453
  };
454
+ react_production.cacheSignal = function () {
455
+ return null;
456
+ };
456
457
  react_production.cloneElement = function (element, config, children) {
457
458
  if (null === element || void 0 === element)
458
459
  throw Error(
459
460
  "The argument must be a React element, but you passed " + element + "."
460
461
  );
461
462
  var props = assign({}, element.props),
462
- key = element.key,
463
- owner = void 0;
463
+ key = element.key;
464
464
  if (null != config)
465
- for (propName in (void 0 !== config.ref && (owner = void 0),
466
- void 0 !== config.key && (key = "" + config.key),
467
- config))
465
+ for (propName in (void 0 !== config.key && (key = "" + config.key), config))
468
466
  !hasOwnProperty.call(config, propName) ||
469
467
  "key" === propName ||
470
468
  "__self" === propName ||
@@ -478,7 +476,7 @@ function requireReact_production () {
478
476
  childArray[i] = arguments[i + 2];
479
477
  props.children = childArray;
480
478
  }
481
- return ReactElement(element.type, key, void 0, void 0, owner, props);
479
+ return ReactElement(element.type, key, props);
482
480
  };
483
481
  react_production.createContext = function (defaultValue) {
484
482
  defaultValue = {
@@ -518,7 +516,7 @@ function requireReact_production () {
518
516
  for (propName in ((childrenLength = type.defaultProps), childrenLength))
519
517
  void 0 === props[propName] &&
520
518
  (props[propName] = childrenLength[propName]);
521
- return ReactElement(type, key, void 0, void 0, null, props);
519
+ return ReactElement(type, key, props);
522
520
  };
523
521
  react_production.createRef = function () {
524
522
  return { current: null };
@@ -557,7 +555,10 @@ function requireReact_production () {
557
555
  } catch (error) {
558
556
  reportGlobalError(error);
559
557
  } finally {
560
- ReactSharedInternals.T = prevTransition;
558
+ null !== prevTransition &&
559
+ null !== currentTransition.types &&
560
+ (prevTransition.types = currentTransition.types),
561
+ (ReactSharedInternals.T = prevTransition);
561
562
  }
562
563
  };
563
564
  react_production.unstable_useCacheRefresh = function () {
@@ -582,6 +583,9 @@ function requireReact_production () {
582
583
  react_production.useEffect = function (create, deps) {
583
584
  return ReactSharedInternals.H.useEffect(create, deps);
584
585
  };
586
+ react_production.useEffectEvent = function (callback) {
587
+ return ReactSharedInternals.H.useEffectEvent(callback);
588
+ };
585
589
  react_production.useId = function () {
586
590
  return ReactSharedInternals.H.useId();
587
591
  };
@@ -623,7 +627,7 @@ function requireReact_production () {
623
627
  react_production.useTransition = function () {
624
628
  return ReactSharedInternals.H.useTransition();
625
629
  };
626
- react_production.version = "19.0.0";
630
+ react_production.version = "19.2.4";
627
631
  return react_production;
628
632
  }
629
633
 
@@ -694,6 +698,7 @@ function requireReact_development () {
694
698
  this.refs = emptyObject;
695
699
  this.updater = updater || ReactNoopUpdateQueue;
696
700
  }
701
+ function noop() {}
697
702
  function testStringCoercion(value) {
698
703
  return "" + value;
699
704
  }
@@ -724,15 +729,13 @@ function requireReact_development () {
724
729
  function getComponentNameFromType(type) {
725
730
  if (null == type) return null;
726
731
  if ("function" === typeof type)
727
- return type.$$typeof === REACT_CLIENT_REFERENCE$2
732
+ return type.$$typeof === REACT_CLIENT_REFERENCE
728
733
  ? null
729
734
  : type.displayName || type.name || null;
730
735
  if ("string" === typeof type) return type;
731
736
  switch (type) {
732
737
  case REACT_FRAGMENT_TYPE:
733
738
  return "Fragment";
734
- case REACT_PORTAL_TYPE:
735
- return "Portal";
736
739
  case REACT_PROFILER_TYPE:
737
740
  return "Profiler";
738
741
  case REACT_STRICT_MODE_TYPE:
@@ -741,6 +744,8 @@ function requireReact_development () {
741
744
  return "Suspense";
742
745
  case REACT_SUSPENSE_LIST_TYPE:
743
746
  return "SuspenseList";
747
+ case REACT_ACTIVITY_TYPE:
748
+ return "Activity";
744
749
  }
745
750
  if ("object" === typeof type)
746
751
  switch (
@@ -750,8 +755,10 @@ function requireReact_development () {
750
755
  ),
751
756
  type.$$typeof)
752
757
  ) {
758
+ case REACT_PORTAL_TYPE:
759
+ return "Portal";
753
760
  case REACT_CONTEXT_TYPE:
754
- return (type.displayName || "Context") + ".Provider";
761
+ return type.displayName || "Context";
755
762
  case REACT_CONSUMER_TYPE:
756
763
  return (type._context.displayName || "Context") + ".Consumer";
757
764
  case REACT_FORWARD_REF_TYPE:
@@ -777,281 +784,28 @@ function requireReact_development () {
777
784
  }
778
785
  return null;
779
786
  }
780
- function isValidElementType(type) {
781
- return "string" === typeof type ||
782
- "function" === typeof type ||
783
- type === REACT_FRAGMENT_TYPE ||
784
- type === REACT_PROFILER_TYPE ||
785
- type === REACT_STRICT_MODE_TYPE ||
786
- type === REACT_SUSPENSE_TYPE ||
787
- type === REACT_SUSPENSE_LIST_TYPE ||
788
- type === REACT_OFFSCREEN_TYPE ||
789
- ("object" === typeof type &&
790
- null !== type &&
791
- (type.$$typeof === REACT_LAZY_TYPE ||
792
- type.$$typeof === REACT_MEMO_TYPE ||
793
- type.$$typeof === REACT_CONTEXT_TYPE ||
794
- type.$$typeof === REACT_CONSUMER_TYPE ||
795
- type.$$typeof === REACT_FORWARD_REF_TYPE ||
796
- type.$$typeof === REACT_CLIENT_REFERENCE$1 ||
797
- void 0 !== type.getModuleId))
798
- ? true
799
- : false;
800
- }
801
- function disabledLog() {}
802
- function disableLogs() {
803
- if (0 === disabledDepth) {
804
- prevLog = console.log;
805
- prevInfo = console.info;
806
- prevWarn = console.warn;
807
- prevError = console.error;
808
- prevGroup = console.group;
809
- prevGroupCollapsed = console.groupCollapsed;
810
- prevGroupEnd = console.groupEnd;
811
- var props = {
812
- configurable: true,
813
- enumerable: true,
814
- value: disabledLog,
815
- writable: true
816
- };
817
- Object.defineProperties(console, {
818
- info: props,
819
- log: props,
820
- warn: props,
821
- error: props,
822
- group: props,
823
- groupCollapsed: props,
824
- groupEnd: props
825
- });
826
- }
827
- disabledDepth++;
828
- }
829
- function reenableLogs() {
830
- disabledDepth--;
831
- if (0 === disabledDepth) {
832
- var props = { configurable: true, enumerable: true, writable: true };
833
- Object.defineProperties(console, {
834
- log: assign({}, props, { value: prevLog }),
835
- info: assign({}, props, { value: prevInfo }),
836
- warn: assign({}, props, { value: prevWarn }),
837
- error: assign({}, props, { value: prevError }),
838
- group: assign({}, props, { value: prevGroup }),
839
- groupCollapsed: assign({}, props, { value: prevGroupCollapsed }),
840
- groupEnd: assign({}, props, { value: prevGroupEnd })
841
- });
842
- }
843
- 0 > disabledDepth &&
844
- console.error(
845
- "disabledDepth fell below zero. This is a bug in React. Please file an issue."
846
- );
847
- }
848
- function describeBuiltInComponentFrame(name) {
849
- if (void 0 === prefix)
850
- try {
851
- throw Error();
852
- } catch (x) {
853
- var match = x.stack.trim().match(/\n( *(at )?)/);
854
- prefix = (match && match[1]) || "";
855
- suffix =
856
- -1 < x.stack.indexOf("\n at")
857
- ? " (<anonymous>)"
858
- : -1 < x.stack.indexOf("@")
859
- ? "@unknown:0:0"
860
- : "";
861
- }
862
- return "\n" + prefix + name + suffix;
863
- }
864
- function describeNativeComponentFrame(fn, construct) {
865
- if (!fn || reentry) return "";
866
- var frame = componentFrameCache.get(fn);
867
- if (void 0 !== frame) return frame;
868
- reentry = true;
869
- frame = Error.prepareStackTrace;
870
- Error.prepareStackTrace = void 0;
871
- var previousDispatcher = null;
872
- previousDispatcher = ReactSharedInternals.H;
873
- ReactSharedInternals.H = null;
874
- disableLogs();
787
+ function getTaskName(type) {
788
+ if (type === REACT_FRAGMENT_TYPE) return "<>";
789
+ if (
790
+ "object" === typeof type &&
791
+ null !== type &&
792
+ type.$$typeof === REACT_LAZY_TYPE
793
+ )
794
+ return "<...>";
875
795
  try {
876
- var RunInRootFrame = {
877
- DetermineComponentFrameRoot: function () {
878
- try {
879
- if (construct) {
880
- var Fake = function () {
881
- throw Error();
882
- };
883
- Object.defineProperty(Fake.prototype, "props", {
884
- set: function () {
885
- throw Error();
886
- }
887
- });
888
- if ("object" === typeof Reflect && Reflect.construct) {
889
- try {
890
- Reflect.construct(Fake, []);
891
- } catch (x) {
892
- var control = x;
893
- }
894
- Reflect.construct(fn, [], Fake);
895
- } else {
896
- try {
897
- Fake.call();
898
- } catch (x$0) {
899
- control = x$0;
900
- }
901
- fn.call(Fake.prototype);
902
- }
903
- } else {
904
- try {
905
- throw Error();
906
- } catch (x$1) {
907
- control = x$1;
908
- }
909
- (Fake = fn()) &&
910
- "function" === typeof Fake.catch &&
911
- Fake.catch(function () {});
912
- }
913
- } catch (sample) {
914
- if (sample && control && "string" === typeof sample.stack)
915
- return [sample.stack, control.stack];
916
- }
917
- return [null, null];
918
- }
919
- };
920
- RunInRootFrame.DetermineComponentFrameRoot.displayName =
921
- "DetermineComponentFrameRoot";
922
- var namePropDescriptor = Object.getOwnPropertyDescriptor(
923
- RunInRootFrame.DetermineComponentFrameRoot,
924
- "name"
925
- );
926
- namePropDescriptor &&
927
- namePropDescriptor.configurable &&
928
- Object.defineProperty(
929
- RunInRootFrame.DetermineComponentFrameRoot,
930
- "name",
931
- { value: "DetermineComponentFrameRoot" }
932
- );
933
- var _RunInRootFrame$Deter =
934
- RunInRootFrame.DetermineComponentFrameRoot(),
935
- sampleStack = _RunInRootFrame$Deter[0],
936
- controlStack = _RunInRootFrame$Deter[1];
937
- if (sampleStack && controlStack) {
938
- var sampleLines = sampleStack.split("\n"),
939
- controlLines = controlStack.split("\n");
940
- for (
941
- _RunInRootFrame$Deter = namePropDescriptor = 0;
942
- namePropDescriptor < sampleLines.length &&
943
- !sampleLines[namePropDescriptor].includes(
944
- "DetermineComponentFrameRoot"
945
- );
946
-
947
- )
948
- namePropDescriptor++;
949
- for (
950
- ;
951
- _RunInRootFrame$Deter < controlLines.length &&
952
- !controlLines[_RunInRootFrame$Deter].includes(
953
- "DetermineComponentFrameRoot"
954
- );
955
-
956
- )
957
- _RunInRootFrame$Deter++;
958
- if (
959
- namePropDescriptor === sampleLines.length ||
960
- _RunInRootFrame$Deter === controlLines.length
961
- )
962
- for (
963
- namePropDescriptor = sampleLines.length - 1,
964
- _RunInRootFrame$Deter = controlLines.length - 1;
965
- 1 <= namePropDescriptor &&
966
- 0 <= _RunInRootFrame$Deter &&
967
- sampleLines[namePropDescriptor] !==
968
- controlLines[_RunInRootFrame$Deter];
969
-
970
- )
971
- _RunInRootFrame$Deter--;
972
- for (
973
- ;
974
- 1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter;
975
- namePropDescriptor--, _RunInRootFrame$Deter--
976
- )
977
- if (
978
- sampleLines[namePropDescriptor] !==
979
- controlLines[_RunInRootFrame$Deter]
980
- ) {
981
- if (1 !== namePropDescriptor || 1 !== _RunInRootFrame$Deter) {
982
- do
983
- if (
984
- (namePropDescriptor--,
985
- _RunInRootFrame$Deter--,
986
- 0 > _RunInRootFrame$Deter ||
987
- sampleLines[namePropDescriptor] !==
988
- controlLines[_RunInRootFrame$Deter])
989
- ) {
990
- var _frame =
991
- "\n" +
992
- sampleLines[namePropDescriptor].replace(
993
- " at new ",
994
- " at "
995
- );
996
- fn.displayName &&
997
- _frame.includes("<anonymous>") &&
998
- (_frame = _frame.replace("<anonymous>", fn.displayName));
999
- "function" === typeof fn &&
1000
- componentFrameCache.set(fn, _frame);
1001
- return _frame;
1002
- }
1003
- while (1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter);
1004
- }
1005
- break;
1006
- }
1007
- }
1008
- } finally {
1009
- (reentry = false),
1010
- (ReactSharedInternals.H = previousDispatcher),
1011
- reenableLogs(),
1012
- (Error.prepareStackTrace = frame);
1013
- }
1014
- sampleLines = (sampleLines = fn ? fn.displayName || fn.name : "")
1015
- ? describeBuiltInComponentFrame(sampleLines)
1016
- : "";
1017
- "function" === typeof fn && componentFrameCache.set(fn, sampleLines);
1018
- return sampleLines;
1019
- }
1020
- function describeUnknownElementTypeFrameInDEV(type) {
1021
- if (null == type) return "";
1022
- if ("function" === typeof type) {
1023
- var prototype = type.prototype;
1024
- return describeNativeComponentFrame(
1025
- type,
1026
- !(!prototype || !prototype.isReactComponent)
1027
- );
1028
- }
1029
- if ("string" === typeof type) return describeBuiltInComponentFrame(type);
1030
- switch (type) {
1031
- case REACT_SUSPENSE_TYPE:
1032
- return describeBuiltInComponentFrame("Suspense");
1033
- case REACT_SUSPENSE_LIST_TYPE:
1034
- return describeBuiltInComponentFrame("SuspenseList");
796
+ var name = getComponentNameFromType(type);
797
+ return name ? "<" + name + ">" : "<...>";
798
+ } catch (x) {
799
+ return "<...>";
1035
800
  }
1036
- if ("object" === typeof type)
1037
- switch (type.$$typeof) {
1038
- case REACT_FORWARD_REF_TYPE:
1039
- return (type = describeNativeComponentFrame(type.render, false)), type;
1040
- case REACT_MEMO_TYPE:
1041
- return describeUnknownElementTypeFrameInDEV(type.type);
1042
- case REACT_LAZY_TYPE:
1043
- prototype = type._payload;
1044
- type = type._init;
1045
- try {
1046
- return describeUnknownElementTypeFrameInDEV(type(prototype));
1047
- } catch (x) {}
1048
- }
1049
- return "";
1050
801
  }
1051
802
  function getOwner() {
1052
803
  var dispatcher = ReactSharedInternals.A;
1053
804
  return null === dispatcher ? null : dispatcher.getOwner();
1054
805
  }
806
+ function UnknownOwner() {
807
+ return Error("react-stack-top-frame");
808
+ }
1055
809
  function hasValidKey(config) {
1056
810
  if (hasOwnProperty.call(config, "key")) {
1057
811
  var getter = Object.getOwnPropertyDescriptor(config, "key").get;
@@ -1084,8 +838,8 @@ function requireReact_development () {
1084
838
  componentName = this.props.ref;
1085
839
  return void 0 !== componentName ? componentName : null;
1086
840
  }
1087
- function ReactElement(type, key, self, source, owner, props) {
1088
- self = props.ref;
841
+ function ReactElement(type, key, props, owner, debugStack, debugTask) {
842
+ var refProp = props.ref;
1089
843
  type = {
1090
844
  $$typeof: REACT_ELEMENT_TYPE,
1091
845
  type: type,
@@ -1093,7 +847,7 @@ function requireReact_development () {
1093
847
  props: props,
1094
848
  _owner: owner
1095
849
  };
1096
- null !== (void 0 !== self ? self : null)
850
+ null !== (void 0 !== refProp ? refProp : null)
1097
851
  ? Object.defineProperty(type, "ref", {
1098
852
  enumerable: false,
1099
853
  get: elementRefGetterWithDeprecationWarning
@@ -1112,6 +866,18 @@ function requireReact_development () {
1112
866
  writable: true,
1113
867
  value: null
1114
868
  });
869
+ Object.defineProperty(type, "_debugStack", {
870
+ configurable: false,
871
+ enumerable: false,
872
+ writable: true,
873
+ value: debugStack
874
+ });
875
+ Object.defineProperty(type, "_debugTask", {
876
+ configurable: false,
877
+ enumerable: false,
878
+ writable: true,
879
+ value: debugTask
880
+ });
1115
881
  Object.freeze && (Object.freeze(type.props), Object.freeze(type));
1116
882
  return type;
1117
883
  }
@@ -1119,36 +885,26 @@ function requireReact_development () {
1119
885
  newKey = ReactElement(
1120
886
  oldElement.type,
1121
887
  newKey,
1122
- void 0,
1123
- void 0,
888
+ oldElement.props,
1124
889
  oldElement._owner,
1125
- oldElement.props
890
+ oldElement._debugStack,
891
+ oldElement._debugTask
1126
892
  );
1127
- newKey._store.validated = oldElement._store.validated;
893
+ oldElement._store &&
894
+ (newKey._store.validated = oldElement._store.validated);
1128
895
  return newKey;
1129
896
  }
1130
- function validateChildKeys(node, parentType) {
1131
- if (
1132
- "object" === typeof node &&
1133
- node &&
1134
- node.$$typeof !== REACT_CLIENT_REFERENCE
1135
- )
1136
- if (isArrayImpl(node))
1137
- for (var i = 0; i < node.length; i++) {
1138
- var child = node[i];
1139
- isValidElement(child) && validateExplicitKey(child, parentType);
1140
- }
1141
- else if (isValidElement(node))
1142
- node._store && (node._store.validated = 1);
1143
- else if (
1144
- ((i = getIteratorFn(node)),
1145
- "function" === typeof i &&
1146
- i !== node.entries &&
1147
- ((i = i.call(node)), i !== node))
1148
- )
1149
- for (; !(node = i.next()).done; )
1150
- isValidElement(node.value) &&
1151
- validateExplicitKey(node.value, parentType);
897
+ function validateChildKeys(node) {
898
+ isValidElement(node)
899
+ ? node._store && (node._store.validated = 1)
900
+ : "object" === typeof node &&
901
+ null !== node &&
902
+ node.$$typeof === REACT_LAZY_TYPE &&
903
+ ("fulfilled" === node._payload.status
904
+ ? isValidElement(node._payload.value) &&
905
+ node._payload.value._store &&
906
+ (node._payload.value._store.validated = 1)
907
+ : node._store && (node._store.validated = 1));
1152
908
  }
1153
909
  function isValidElement(object) {
1154
910
  return (
@@ -1157,52 +913,6 @@ function requireReact_development () {
1157
913
  object.$$typeof === REACT_ELEMENT_TYPE
1158
914
  );
1159
915
  }
1160
- function validateExplicitKey(element, parentType) {
1161
- if (
1162
- element._store &&
1163
- !element._store.validated &&
1164
- null == element.key &&
1165
- ((element._store.validated = 1),
1166
- (parentType = getCurrentComponentErrorInfo(parentType)),
1167
- !ownerHasKeyUseWarning[parentType])
1168
- ) {
1169
- ownerHasKeyUseWarning[parentType] = true;
1170
- var childOwner = "";
1171
- element &&
1172
- null != element._owner &&
1173
- element._owner !== getOwner() &&
1174
- ((childOwner = null),
1175
- "number" === typeof element._owner.tag
1176
- ? (childOwner = getComponentNameFromType(element._owner.type))
1177
- : "string" === typeof element._owner.name &&
1178
- (childOwner = element._owner.name),
1179
- (childOwner = " It was passed a child from " + childOwner + "."));
1180
- var prevGetCurrentStack = ReactSharedInternals.getCurrentStack;
1181
- ReactSharedInternals.getCurrentStack = function () {
1182
- var stack = describeUnknownElementTypeFrameInDEV(element.type);
1183
- prevGetCurrentStack && (stack += prevGetCurrentStack() || "");
1184
- return stack;
1185
- };
1186
- console.error(
1187
- 'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
1188
- parentType,
1189
- childOwner
1190
- );
1191
- ReactSharedInternals.getCurrentStack = prevGetCurrentStack;
1192
- }
1193
- }
1194
- function getCurrentComponentErrorInfo(parentType) {
1195
- var info = "",
1196
- owner = getOwner();
1197
- owner &&
1198
- (owner = getComponentNameFromType(owner.type)) &&
1199
- (info = "\n\nCheck the render method of `" + owner + "`.");
1200
- info ||
1201
- ((parentType = getComponentNameFromType(parentType)) &&
1202
- (info =
1203
- "\n\nCheck the top-level render call using <" + parentType + ">."));
1204
- return info;
1205
- }
1206
916
  function escape(key) {
1207
917
  var escaperLookup = { "=": "=0", ":": "=2" };
1208
918
  return (
@@ -1219,7 +929,6 @@ function requireReact_development () {
1219
929
  ? (checkKeyStringCoercion(element.key), escape("" + element.key))
1220
930
  : index.toString(36);
1221
931
  }
1222
- function noop$1() {}
1223
932
  function resolveThenable(thenable) {
1224
933
  switch (thenable.status) {
1225
934
  case "fulfilled":
@@ -1229,7 +938,7 @@ function requireReact_development () {
1229
938
  default:
1230
939
  switch (
1231
940
  ("string" === typeof thenable.status
1232
- ? thenable.then(noop$1, noop$1)
941
+ ? thenable.then(noop, noop)
1233
942
  : ((thenable.status = "pending"),
1234
943
  thenable.then(
1235
944
  function (fulfilledValue) {
@@ -1391,35 +1100,56 @@ function requireReact_development () {
1391
1100
  }
1392
1101
  function lazyInitializer(payload) {
1393
1102
  if (-1 === payload._status) {
1394
- var ctor = payload._result;
1395
- ctor = ctor();
1396
- ctor.then(
1103
+ var ioInfo = payload._ioInfo;
1104
+ null != ioInfo && (ioInfo.start = ioInfo.end = performance.now());
1105
+ ioInfo = payload._result;
1106
+ var thenable = ioInfo();
1107
+ thenable.then(
1397
1108
  function (moduleObject) {
1398
- if (0 === payload._status || -1 === payload._status)
1399
- (payload._status = 1), (payload._result = moduleObject);
1109
+ if (0 === payload._status || -1 === payload._status) {
1110
+ payload._status = 1;
1111
+ payload._result = moduleObject;
1112
+ var _ioInfo = payload._ioInfo;
1113
+ null != _ioInfo && (_ioInfo.end = performance.now());
1114
+ void 0 === thenable.status &&
1115
+ ((thenable.status = "fulfilled"),
1116
+ (thenable.value = moduleObject));
1117
+ }
1400
1118
  },
1401
1119
  function (error) {
1402
- if (0 === payload._status || -1 === payload._status)
1403
- (payload._status = 2), (payload._result = error);
1120
+ if (0 === payload._status || -1 === payload._status) {
1121
+ payload._status = 2;
1122
+ payload._result = error;
1123
+ var _ioInfo2 = payload._ioInfo;
1124
+ null != _ioInfo2 && (_ioInfo2.end = performance.now());
1125
+ void 0 === thenable.status &&
1126
+ ((thenable.status = "rejected"), (thenable.reason = error));
1127
+ }
1404
1128
  }
1405
1129
  );
1130
+ ioInfo = payload._ioInfo;
1131
+ if (null != ioInfo) {
1132
+ ioInfo.value = thenable;
1133
+ var displayName = thenable.displayName;
1134
+ "string" === typeof displayName && (ioInfo.name = displayName);
1135
+ }
1406
1136
  -1 === payload._status &&
1407
- ((payload._status = 0), (payload._result = ctor));
1137
+ ((payload._status = 0), (payload._result = thenable));
1408
1138
  }
1409
1139
  if (1 === payload._status)
1410
1140
  return (
1411
- (ctor = payload._result),
1412
- void 0 === ctor &&
1141
+ (ioInfo = payload._result),
1142
+ void 0 === ioInfo &&
1413
1143
  console.error(
1414
1144
  "lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?",
1415
- ctor
1145
+ ioInfo
1416
1146
  ),
1417
- "default" in ctor ||
1147
+ "default" in ioInfo ||
1418
1148
  console.error(
1419
1149
  "lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",
1420
- ctor
1150
+ ioInfo
1421
1151
  ),
1422
- ctor.default
1152
+ ioInfo.default
1423
1153
  );
1424
1154
  throw payload._result;
1425
1155
  }
@@ -1431,7 +1161,9 @@ function requireReact_development () {
1431
1161
  );
1432
1162
  return dispatcher;
1433
1163
  }
1434
- function noop() {}
1164
+ function releaseAsyncTransition() {
1165
+ ReactSharedInternals.asyncTransitions--;
1166
+ }
1435
1167
  function enqueueTask(task) {
1436
1168
  if (null === enqueueTaskImpl)
1437
1169
  try {
@@ -1523,15 +1255,15 @@ function requireReact_development () {
1523
1255
  REACT_PORTAL_TYPE = Symbol.for("react.portal"),
1524
1256
  REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
1525
1257
  REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
1526
- REACT_PROFILER_TYPE = Symbol.for("react.profiler");
1527
- var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
1258
+ REACT_PROFILER_TYPE = Symbol.for("react.profiler"),
1259
+ REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
1528
1260
  REACT_CONTEXT_TYPE = Symbol.for("react.context"),
1529
1261
  REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
1530
1262
  REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
1531
1263
  REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"),
1532
1264
  REACT_MEMO_TYPE = Symbol.for("react.memo"),
1533
1265
  REACT_LAZY_TYPE = Symbol.for("react.lazy"),
1534
- REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"),
1266
+ REACT_ACTIVITY_TYPE = Symbol.for("react.activity"),
1535
1267
  MAYBE_ITERATOR_SYMBOL = Symbol.iterator,
1536
1268
  didWarnStateUpdateForUnmountedComponent = {},
1537
1269
  ReactNoopUpdateQueue = {
@@ -1567,16 +1299,15 @@ function requireReact_development () {
1567
1299
  this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
1568
1300
  };
1569
1301
  var deprecatedAPIs = {
1570
- isMounted: [
1571
- "isMounted",
1572
- "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."
1573
- ],
1574
- replaceState: [
1575
- "replaceState",
1576
- "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."
1577
- ]
1578
- },
1579
- fnName;
1302
+ isMounted: [
1303
+ "isMounted",
1304
+ "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."
1305
+ ],
1306
+ replaceState: [
1307
+ "replaceState",
1308
+ "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."
1309
+ ]
1310
+ };
1580
1311
  for (fnName in deprecatedAPIs)
1581
1312
  deprecatedAPIs.hasOwnProperty(fnName) &&
1582
1313
  defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
@@ -1586,42 +1317,40 @@ function requireReact_development () {
1586
1317
  assign(deprecatedAPIs, Component.prototype);
1587
1318
  deprecatedAPIs.isPureReactComponent = true;
1588
1319
  var isArrayImpl = Array.isArray,
1589
- REACT_CLIENT_REFERENCE$2 = Symbol.for("react.client.reference"),
1320
+ REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"),
1590
1321
  ReactSharedInternals = {
1591
1322
  H: null,
1592
1323
  A: null,
1593
1324
  T: null,
1594
1325
  S: null,
1595
1326
  actQueue: null,
1327
+ asyncTransitions: 0,
1596
1328
  isBatchingLegacy: false,
1597
1329
  didScheduleLegacyUpdate: false,
1598
1330
  didUsePromise: false,
1599
1331
  thrownErrors: [],
1600
- getCurrentStack: null
1332
+ getCurrentStack: null,
1333
+ recentlyCreatedOwnerStacks: 0
1601
1334
  },
1602
1335
  hasOwnProperty = Object.prototype.hasOwnProperty,
1603
- REACT_CLIENT_REFERENCE$1 = Symbol.for("react.client.reference"),
1604
- disabledDepth = 0,
1605
- prevLog,
1606
- prevInfo,
1607
- prevWarn,
1608
- prevError,
1609
- prevGroup,
1610
- prevGroupCollapsed,
1611
- prevGroupEnd;
1612
- disabledLog.__reactDisabledLog = true;
1613
- var prefix,
1614
- suffix,
1615
- reentry = false;
1616
- var componentFrameCache = new (
1617
- "function" === typeof WeakMap ? WeakMap : Map
1618
- )();
1619
- var REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"),
1620
- specialPropKeyWarningShown,
1621
- didWarnAboutOldJSXRuntime;
1336
+ createTask = console.createTask
1337
+ ? console.createTask
1338
+ : function () {
1339
+ return null;
1340
+ };
1341
+ deprecatedAPIs = {
1342
+ react_stack_bottom_frame: function (callStackForError) {
1343
+ return callStackForError();
1344
+ }
1345
+ };
1346
+ var specialPropKeyWarningShown, didWarnAboutOldJSXRuntime;
1622
1347
  var didWarnAboutElementRef = {};
1623
- var ownerHasKeyUseWarning = {},
1624
- didWarnAboutMaps = false,
1348
+ var unknownOwnerDebugStack = deprecatedAPIs.react_stack_bottom_frame.bind(
1349
+ deprecatedAPIs,
1350
+ UnknownOwner
1351
+ )();
1352
+ var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
1353
+ var didWarnAboutMaps = false,
1625
1354
  userProvidedKeyEscapeRegex = /\/+/g,
1626
1355
  reportGlobalError =
1627
1356
  "function" === typeof reportError
@@ -1665,7 +1394,13 @@ function requireReact_development () {
1665
1394
  });
1666
1395
  }
1667
1396
  : enqueueTask;
1668
- exports$1.Children = {
1397
+ deprecatedAPIs = Object.freeze({
1398
+ __proto__: null,
1399
+ c: function (size) {
1400
+ return resolveDispatcher().useMemoCache(size);
1401
+ }
1402
+ });
1403
+ var fnName = {
1669
1404
  map: mapChildren,
1670
1405
  forEach: function (children, forEachFunc, forEachContext) {
1671
1406
  mapChildren(
@@ -1698,6 +1433,8 @@ function requireReact_development () {
1698
1433
  return children;
1699
1434
  }
1700
1435
  };
1436
+ exports$1.Activity = REACT_ACTIVITY_TYPE;
1437
+ exports$1.Children = fnName;
1701
1438
  exports$1.Component = Component;
1702
1439
  exports$1.Fragment = REACT_FRAGMENT_TYPE;
1703
1440
  exports$1.Profiler = REACT_PROFILER_TYPE;
@@ -1706,6 +1443,7 @@ function requireReact_development () {
1706
1443
  exports$1.Suspense = REACT_SUSPENSE_TYPE;
1707
1444
  exports$1.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =
1708
1445
  ReactSharedInternals;
1446
+ exports$1.__COMPILER_RUNTIME = deprecatedAPIs;
1709
1447
  exports$1.act = function (callback) {
1710
1448
  var prevActQueue = ReactSharedInternals.actQueue,
1711
1449
  prevActScopeDepth = actScopeDepth;
@@ -1755,8 +1493,8 @@ function requireReact_development () {
1755
1493
  reject
1756
1494
  );
1757
1495
  });
1758
- } catch (error$2) {
1759
- ReactSharedInternals.thrownErrors.push(error$2);
1496
+ } catch (error$0) {
1497
+ ReactSharedInternals.thrownErrors.push(error$0);
1760
1498
  }
1761
1499
  if (0 < ReactSharedInternals.thrownErrors.length) {
1762
1500
  var _thrownError = aggregateErrors(
@@ -1822,6 +1560,13 @@ function requireReact_development () {
1822
1560
  return fn.apply(null, arguments);
1823
1561
  };
1824
1562
  };
1563
+ exports$1.cacheSignal = function () {
1564
+ return null;
1565
+ };
1566
+ exports$1.captureOwnerStack = function () {
1567
+ var getCurrentStack = ReactSharedInternals.getCurrentStack;
1568
+ return null === getCurrentStack ? null : getCurrentStack();
1569
+ };
1825
1570
  exports$1.cloneElement = function (element, config, children) {
1826
1571
  if (null === element || void 0 === element)
1827
1572
  throw Error(
@@ -1867,9 +1612,16 @@ function requireReact_development () {
1867
1612
  JSCompiler_inline_result[i] = arguments[i + 2];
1868
1613
  props.children = JSCompiler_inline_result;
1869
1614
  }
1870
- props = ReactElement(element.type, key, void 0, void 0, owner, props);
1615
+ props = ReactElement(
1616
+ element.type,
1617
+ key,
1618
+ props,
1619
+ owner,
1620
+ element._debugStack,
1621
+ element._debugTask
1622
+ );
1871
1623
  for (key = 2; key < arguments.length; key++)
1872
- validateChildKeys(arguments[key], props.type);
1624
+ validateChildKeys(arguments[key]);
1873
1625
  return props;
1874
1626
  };
1875
1627
  exports$1.createContext = function (defaultValue) {
@@ -1891,40 +1643,10 @@ function requireReact_development () {
1891
1643
  return defaultValue;
1892
1644
  };
1893
1645
  exports$1.createElement = function (type, config, children) {
1894
- if (isValidElementType(type))
1895
- for (var i = 2; i < arguments.length; i++)
1896
- validateChildKeys(arguments[i], type);
1897
- else {
1898
- i = "";
1899
- if (
1900
- void 0 === type ||
1901
- ("object" === typeof type &&
1902
- null !== type &&
1903
- 0 === Object.keys(type).length)
1904
- )
1905
- i +=
1906
- " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";
1907
- if (null === type) var typeString = "null";
1908
- else
1909
- isArrayImpl(type)
1910
- ? (typeString = "array")
1911
- : void 0 !== type && type.$$typeof === REACT_ELEMENT_TYPE
1912
- ? ((typeString =
1913
- "<" +
1914
- (getComponentNameFromType(type.type) || "Unknown") +
1915
- " />"),
1916
- (i =
1917
- " Did you accidentally export a JSX literal instead of a component?"))
1918
- : (typeString = typeof type);
1919
- console.error(
1920
- "React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",
1921
- typeString,
1922
- i
1923
- );
1924
- }
1925
- var propName;
1646
+ for (var i = 2; i < arguments.length; i++)
1647
+ validateChildKeys(arguments[i]);
1926
1648
  i = {};
1927
- typeString = null;
1649
+ var key = null;
1928
1650
  if (null != config)
1929
1651
  for (propName in (didWarnAboutOldJSXRuntime ||
1930
1652
  !("__self" in config) ||
@@ -1934,7 +1656,7 @@ function requireReact_development () {
1934
1656
  "Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform"
1935
1657
  )),
1936
1658
  hasValidKey(config) &&
1937
- (checkKeyStringCoercion(config.key), (typeString = "" + config.key)),
1659
+ (checkKeyStringCoercion(config.key), (key = "" + config.key)),
1938
1660
  config))
1939
1661
  hasOwnProperty.call(config, propName) &&
1940
1662
  "key" !== propName &&
@@ -1956,14 +1678,22 @@ function requireReact_development () {
1956
1678
  if (type && type.defaultProps)
1957
1679
  for (propName in ((childrenLength = type.defaultProps), childrenLength))
1958
1680
  void 0 === i[propName] && (i[propName] = childrenLength[propName]);
1959
- typeString &&
1681
+ key &&
1960
1682
  defineKeyPropWarningGetter(
1961
1683
  i,
1962
1684
  "function" === typeof type
1963
1685
  ? type.displayName || type.name || "Unknown"
1964
1686
  : type
1965
1687
  );
1966
- return ReactElement(type, typeString, void 0, void 0, getOwner(), i);
1688
+ var propName = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
1689
+ return ReactElement(
1690
+ type,
1691
+ key,
1692
+ i,
1693
+ getOwner(),
1694
+ propName ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
1695
+ propName ? createTask(getTaskName(type)) : unknownOwnerDebugTask
1696
+ );
1967
1697
  };
1968
1698
  exports$1.createRef = function () {
1969
1699
  var refObject = { current: null };
@@ -2013,14 +1743,27 @@ function requireReact_development () {
2013
1743
  };
2014
1744
  exports$1.isValidElement = isValidElement;
2015
1745
  exports$1.lazy = function (ctor) {
2016
- return {
2017
- $$typeof: REACT_LAZY_TYPE,
2018
- _payload: { _status: -1, _result: ctor },
2019
- _init: lazyInitializer
2020
- };
1746
+ ctor = { _status: -1, _result: ctor };
1747
+ var lazyType = {
1748
+ $$typeof: REACT_LAZY_TYPE,
1749
+ _payload: ctor,
1750
+ _init: lazyInitializer
1751
+ },
1752
+ ioInfo = {
1753
+ name: "lazy",
1754
+ start: -1,
1755
+ end: -1,
1756
+ value: null,
1757
+ owner: null,
1758
+ debugStack: Error("react-stack-top-frame"),
1759
+ debugTask: console.createTask ? console.createTask("lazy()") : null
1760
+ };
1761
+ ctor._ioInfo = ioInfo;
1762
+ lazyType._debugInfo = [{ awaited: ioInfo }];
1763
+ return lazyType;
2021
1764
  };
2022
1765
  exports$1.memo = function (type, compare) {
2023
- isValidElementType(type) ||
1766
+ null == type &&
2024
1767
  console.error(
2025
1768
  "memo: The first argument must be a component. Instead received: %s",
2026
1769
  null === type ? "null" : typeof type
@@ -2050,8 +1793,8 @@ function requireReact_development () {
2050
1793
  exports$1.startTransition = function (scope) {
2051
1794
  var prevTransition = ReactSharedInternals.T,
2052
1795
  currentTransition = {};
2053
- ReactSharedInternals.T = currentTransition;
2054
1796
  currentTransition._updatedFibers = new Set();
1797
+ ReactSharedInternals.T = currentTransition;
2055
1798
  try {
2056
1799
  var returnValue = scope(),
2057
1800
  onStartTransitionFinish = ReactSharedInternals.S;
@@ -2060,7 +1803,9 @@ function requireReact_development () {
2060
1803
  "object" === typeof returnValue &&
2061
1804
  null !== returnValue &&
2062
1805
  "function" === typeof returnValue.then &&
2063
- returnValue.then(noop, reportGlobalError);
1806
+ (ReactSharedInternals.asyncTransitions++,
1807
+ returnValue.then(releaseAsyncTransition, releaseAsyncTransition),
1808
+ returnValue.then(noop, reportGlobalError));
2064
1809
  } catch (error) {
2065
1810
  reportGlobalError(error);
2066
1811
  } finally {
@@ -2072,6 +1817,14 @@ function requireReact_development () {
2072
1817
  console.warn(
2073
1818
  "Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."
2074
1819
  )),
1820
+ null !== prevTransition &&
1821
+ null !== currentTransition.types &&
1822
+ (null !== prevTransition.types &&
1823
+ prevTransition.types !== currentTransition.types &&
1824
+ console.error(
1825
+ "We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."
1826
+ ),
1827
+ (prevTransition.types = currentTransition.types)),
2075
1828
  (ReactSharedInternals.T = prevTransition);
2076
1829
  }
2077
1830
  };
@@ -2106,8 +1859,15 @@ function requireReact_development () {
2106
1859
  return resolveDispatcher().useDeferredValue(value, initialValue);
2107
1860
  };
2108
1861
  exports$1.useEffect = function (create, deps) {
1862
+ null == create &&
1863
+ console.warn(
1864
+ "React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"
1865
+ );
2109
1866
  return resolveDispatcher().useEffect(create, deps);
2110
1867
  };
1868
+ exports$1.useEffectEvent = function (callback) {
1869
+ return resolveDispatcher().useEffectEvent(callback);
1870
+ };
2111
1871
  exports$1.useId = function () {
2112
1872
  return resolveDispatcher().useId();
2113
1873
  };
@@ -2115,9 +1875,17 @@ function requireReact_development () {
2115
1875
  return resolveDispatcher().useImperativeHandle(ref, create, deps);
2116
1876
  };
2117
1877
  exports$1.useInsertionEffect = function (create, deps) {
1878
+ null == create &&
1879
+ console.warn(
1880
+ "React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"
1881
+ );
2118
1882
  return resolveDispatcher().useInsertionEffect(create, deps);
2119
1883
  };
2120
1884
  exports$1.useLayoutEffect = function (create, deps) {
1885
+ null == create &&
1886
+ console.warn(
1887
+ "React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"
1888
+ );
2121
1889
  return resolveDispatcher().useLayoutEffect(create, deps);
2122
1890
  };
2123
1891
  exports$1.useMemo = function (create, deps) {
@@ -2149,7 +1917,7 @@ function requireReact_development () {
2149
1917
  exports$1.useTransition = function () {
2150
1918
  return resolveDispatcher().useTransition();
2151
1919
  };
2152
- exports$1.version = "19.0.0";
1920
+ exports$1.version = "19.2.4";
2153
1921
  "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
2154
1922
  "function" ===
2155
1923
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -2188,15 +1956,13 @@ function requireReactJsxRuntime_development () {
2188
1956
  function getComponentNameFromType(type) {
2189
1957
  if (null == type) return null;
2190
1958
  if ("function" === typeof type)
2191
- return type.$$typeof === REACT_CLIENT_REFERENCE$2
1959
+ return type.$$typeof === REACT_CLIENT_REFERENCE
2192
1960
  ? null
2193
1961
  : type.displayName || type.name || null;
2194
1962
  if ("string" === typeof type) return type;
2195
1963
  switch (type) {
2196
1964
  case REACT_FRAGMENT_TYPE:
2197
1965
  return "Fragment";
2198
- case REACT_PORTAL_TYPE:
2199
- return "Portal";
2200
1966
  case REACT_PROFILER_TYPE:
2201
1967
  return "Profiler";
2202
1968
  case REACT_STRICT_MODE_TYPE:
@@ -2205,6 +1971,8 @@ function requireReactJsxRuntime_development () {
2205
1971
  return "Suspense";
2206
1972
  case REACT_SUSPENSE_LIST_TYPE:
2207
1973
  return "SuspenseList";
1974
+ case REACT_ACTIVITY_TYPE:
1975
+ return "Activity";
2208
1976
  }
2209
1977
  if ("object" === typeof type)
2210
1978
  switch (
@@ -2214,8 +1982,10 @@ function requireReactJsxRuntime_development () {
2214
1982
  ),
2215
1983
  type.$$typeof)
2216
1984
  ) {
1985
+ case REACT_PORTAL_TYPE:
1986
+ return "Portal";
2217
1987
  case REACT_CONTEXT_TYPE:
2218
- return (type.displayName || "Context") + ".Provider";
1988
+ return type.displayName || "Context";
2219
1989
  case REACT_CONSUMER_TYPE:
2220
1990
  return (type._context.displayName || "Context") + ".Consumer";
2221
1991
  case REACT_FORWARD_REF_TYPE:
@@ -2268,260 +2038,28 @@ function requireReactJsxRuntime_development () {
2268
2038
  return testStringCoercion(value);
2269
2039
  }
2270
2040
  }
2271
- function disabledLog() {}
2272
- function disableLogs() {
2273
- if (0 === disabledDepth) {
2274
- prevLog = console.log;
2275
- prevInfo = console.info;
2276
- prevWarn = console.warn;
2277
- prevError = console.error;
2278
- prevGroup = console.group;
2279
- prevGroupCollapsed = console.groupCollapsed;
2280
- prevGroupEnd = console.groupEnd;
2281
- var props = {
2282
- configurable: true,
2283
- enumerable: true,
2284
- value: disabledLog,
2285
- writable: true
2286
- };
2287
- Object.defineProperties(console, {
2288
- info: props,
2289
- log: props,
2290
- warn: props,
2291
- error: props,
2292
- group: props,
2293
- groupCollapsed: props,
2294
- groupEnd: props
2295
- });
2296
- }
2297
- disabledDepth++;
2298
- }
2299
- function reenableLogs() {
2300
- disabledDepth--;
2301
- if (0 === disabledDepth) {
2302
- var props = { configurable: true, enumerable: true, writable: true };
2303
- Object.defineProperties(console, {
2304
- log: assign({}, props, { value: prevLog }),
2305
- info: assign({}, props, { value: prevInfo }),
2306
- warn: assign({}, props, { value: prevWarn }),
2307
- error: assign({}, props, { value: prevError }),
2308
- group: assign({}, props, { value: prevGroup }),
2309
- groupCollapsed: assign({}, props, { value: prevGroupCollapsed }),
2310
- groupEnd: assign({}, props, { value: prevGroupEnd })
2311
- });
2312
- }
2313
- 0 > disabledDepth &&
2314
- console.error(
2315
- "disabledDepth fell below zero. This is a bug in React. Please file an issue."
2316
- );
2317
- }
2318
- function describeBuiltInComponentFrame(name) {
2319
- if (void 0 === prefix)
2320
- try {
2321
- throw Error();
2322
- } catch (x) {
2323
- var match = x.stack.trim().match(/\n( *(at )?)/);
2324
- prefix = (match && match[1]) || "";
2325
- suffix =
2326
- -1 < x.stack.indexOf("\n at")
2327
- ? " (<anonymous>)"
2328
- : -1 < x.stack.indexOf("@")
2329
- ? "@unknown:0:0"
2330
- : "";
2331
- }
2332
- return "\n" + prefix + name + suffix;
2333
- }
2334
- function describeNativeComponentFrame(fn, construct) {
2335
- if (!fn || reentry) return "";
2336
- var frame = componentFrameCache.get(fn);
2337
- if (void 0 !== frame) return frame;
2338
- reentry = true;
2339
- frame = Error.prepareStackTrace;
2340
- Error.prepareStackTrace = void 0;
2341
- var previousDispatcher = null;
2342
- previousDispatcher = ReactSharedInternals.H;
2343
- ReactSharedInternals.H = null;
2344
- disableLogs();
2041
+ function getTaskName(type) {
2042
+ if (type === REACT_FRAGMENT_TYPE) return "<>";
2043
+ if (
2044
+ "object" === typeof type &&
2045
+ null !== type &&
2046
+ type.$$typeof === REACT_LAZY_TYPE
2047
+ )
2048
+ return "<...>";
2345
2049
  try {
2346
- var RunInRootFrame = {
2347
- DetermineComponentFrameRoot: function () {
2348
- try {
2349
- if (construct) {
2350
- var Fake = function () {
2351
- throw Error();
2352
- };
2353
- Object.defineProperty(Fake.prototype, "props", {
2354
- set: function () {
2355
- throw Error();
2356
- }
2357
- });
2358
- if ("object" === typeof Reflect && Reflect.construct) {
2359
- try {
2360
- Reflect.construct(Fake, []);
2361
- } catch (x) {
2362
- var control = x;
2363
- }
2364
- Reflect.construct(fn, [], Fake);
2365
- } else {
2366
- try {
2367
- Fake.call();
2368
- } catch (x$0) {
2369
- control = x$0;
2370
- }
2371
- fn.call(Fake.prototype);
2372
- }
2373
- } else {
2374
- try {
2375
- throw Error();
2376
- } catch (x$1) {
2377
- control = x$1;
2378
- }
2379
- (Fake = fn()) &&
2380
- "function" === typeof Fake.catch &&
2381
- Fake.catch(function () {});
2382
- }
2383
- } catch (sample) {
2384
- if (sample && control && "string" === typeof sample.stack)
2385
- return [sample.stack, control.stack];
2386
- }
2387
- return [null, null];
2388
- }
2389
- };
2390
- RunInRootFrame.DetermineComponentFrameRoot.displayName =
2391
- "DetermineComponentFrameRoot";
2392
- var namePropDescriptor = Object.getOwnPropertyDescriptor(
2393
- RunInRootFrame.DetermineComponentFrameRoot,
2394
- "name"
2395
- );
2396
- namePropDescriptor &&
2397
- namePropDescriptor.configurable &&
2398
- Object.defineProperty(
2399
- RunInRootFrame.DetermineComponentFrameRoot,
2400
- "name",
2401
- { value: "DetermineComponentFrameRoot" }
2402
- );
2403
- var _RunInRootFrame$Deter =
2404
- RunInRootFrame.DetermineComponentFrameRoot(),
2405
- sampleStack = _RunInRootFrame$Deter[0],
2406
- controlStack = _RunInRootFrame$Deter[1];
2407
- if (sampleStack && controlStack) {
2408
- var sampleLines = sampleStack.split("\n"),
2409
- controlLines = controlStack.split("\n");
2410
- for (
2411
- _RunInRootFrame$Deter = namePropDescriptor = 0;
2412
- namePropDescriptor < sampleLines.length &&
2413
- !sampleLines[namePropDescriptor].includes(
2414
- "DetermineComponentFrameRoot"
2415
- );
2416
-
2417
- )
2418
- namePropDescriptor++;
2419
- for (
2420
- ;
2421
- _RunInRootFrame$Deter < controlLines.length &&
2422
- !controlLines[_RunInRootFrame$Deter].includes(
2423
- "DetermineComponentFrameRoot"
2424
- );
2425
-
2426
- )
2427
- _RunInRootFrame$Deter++;
2428
- if (
2429
- namePropDescriptor === sampleLines.length ||
2430
- _RunInRootFrame$Deter === controlLines.length
2431
- )
2432
- for (
2433
- namePropDescriptor = sampleLines.length - 1,
2434
- _RunInRootFrame$Deter = controlLines.length - 1;
2435
- 1 <= namePropDescriptor &&
2436
- 0 <= _RunInRootFrame$Deter &&
2437
- sampleLines[namePropDescriptor] !==
2438
- controlLines[_RunInRootFrame$Deter];
2439
-
2440
- )
2441
- _RunInRootFrame$Deter--;
2442
- for (
2443
- ;
2444
- 1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter;
2445
- namePropDescriptor--, _RunInRootFrame$Deter--
2446
- )
2447
- if (
2448
- sampleLines[namePropDescriptor] !==
2449
- controlLines[_RunInRootFrame$Deter]
2450
- ) {
2451
- if (1 !== namePropDescriptor || 1 !== _RunInRootFrame$Deter) {
2452
- do
2453
- if (
2454
- (namePropDescriptor--,
2455
- _RunInRootFrame$Deter--,
2456
- 0 > _RunInRootFrame$Deter ||
2457
- sampleLines[namePropDescriptor] !==
2458
- controlLines[_RunInRootFrame$Deter])
2459
- ) {
2460
- var _frame =
2461
- "\n" +
2462
- sampleLines[namePropDescriptor].replace(
2463
- " at new ",
2464
- " at "
2465
- );
2466
- fn.displayName &&
2467
- _frame.includes("<anonymous>") &&
2468
- (_frame = _frame.replace("<anonymous>", fn.displayName));
2469
- "function" === typeof fn &&
2470
- componentFrameCache.set(fn, _frame);
2471
- return _frame;
2472
- }
2473
- while (1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter);
2474
- }
2475
- break;
2476
- }
2477
- }
2478
- } finally {
2479
- (reentry = false),
2480
- (ReactSharedInternals.H = previousDispatcher),
2481
- reenableLogs(),
2482
- (Error.prepareStackTrace = frame);
2483
- }
2484
- sampleLines = (sampleLines = fn ? fn.displayName || fn.name : "")
2485
- ? describeBuiltInComponentFrame(sampleLines)
2486
- : "";
2487
- "function" === typeof fn && componentFrameCache.set(fn, sampleLines);
2488
- return sampleLines;
2489
- }
2490
- function describeUnknownElementTypeFrameInDEV(type) {
2491
- if (null == type) return "";
2492
- if ("function" === typeof type) {
2493
- var prototype = type.prototype;
2494
- return describeNativeComponentFrame(
2495
- type,
2496
- !(!prototype || !prototype.isReactComponent)
2497
- );
2050
+ var name = getComponentNameFromType(type);
2051
+ return name ? "<" + name + ">" : "<...>";
2052
+ } catch (x) {
2053
+ return "<...>";
2498
2054
  }
2499
- if ("string" === typeof type) return describeBuiltInComponentFrame(type);
2500
- switch (type) {
2501
- case REACT_SUSPENSE_TYPE:
2502
- return describeBuiltInComponentFrame("Suspense");
2503
- case REACT_SUSPENSE_LIST_TYPE:
2504
- return describeBuiltInComponentFrame("SuspenseList");
2505
- }
2506
- if ("object" === typeof type)
2507
- switch (type.$$typeof) {
2508
- case REACT_FORWARD_REF_TYPE:
2509
- return (type = describeNativeComponentFrame(type.render, false)), type;
2510
- case REACT_MEMO_TYPE:
2511
- return describeUnknownElementTypeFrameInDEV(type.type);
2512
- case REACT_LAZY_TYPE:
2513
- prototype = type._payload;
2514
- type = type._init;
2515
- try {
2516
- return describeUnknownElementTypeFrameInDEV(type(prototype));
2517
- } catch (x) {}
2518
- }
2519
- return "";
2520
2055
  }
2521
2056
  function getOwner() {
2522
2057
  var dispatcher = ReactSharedInternals.A;
2523
2058
  return null === dispatcher ? null : dispatcher.getOwner();
2524
2059
  }
2060
+ function UnknownOwner() {
2061
+ return Error("react-stack-top-frame");
2062
+ }
2525
2063
  function hasValidKey(config) {
2526
2064
  if (hasOwnProperty.call(config, "key")) {
2527
2065
  var getter = Object.getOwnPropertyDescriptor(config, "key").get;
@@ -2554,8 +2092,8 @@ function requireReactJsxRuntime_development () {
2554
2092
  componentName = this.props.ref;
2555
2093
  return void 0 !== componentName ? componentName : null;
2556
2094
  }
2557
- function ReactElement(type, key, self, source, owner, props) {
2558
- self = props.ref;
2095
+ function ReactElement(type, key, props, owner, debugStack, debugTask) {
2096
+ var refProp = props.ref;
2559
2097
  type = {
2560
2098
  $$typeof: REACT_ELEMENT_TYPE,
2561
2099
  type: type,
@@ -2563,7 +2101,7 @@ function requireReactJsxRuntime_development () {
2563
2101
  props: props,
2564
2102
  _owner: owner
2565
2103
  };
2566
- null !== (void 0 !== self ? self : null)
2104
+ null !== (void 0 !== refProp ? refProp : null)
2567
2105
  ? Object.defineProperty(type, "ref", {
2568
2106
  enumerable: false,
2569
2107
  get: elementRefGetterWithDeprecationWarning
@@ -2582,6 +2120,18 @@ function requireReactJsxRuntime_development () {
2582
2120
  writable: true,
2583
2121
  value: null
2584
2122
  });
2123
+ Object.defineProperty(type, "_debugStack", {
2124
+ configurable: false,
2125
+ enumerable: false,
2126
+ writable: true,
2127
+ value: debugStack
2128
+ });
2129
+ Object.defineProperty(type, "_debugTask", {
2130
+ configurable: false,
2131
+ enumerable: false,
2132
+ writable: true,
2133
+ value: debugTask
2134
+ });
2585
2135
  Object.freeze && (Object.freeze(type.props), Object.freeze(type));
2586
2136
  return type;
2587
2137
  }
@@ -2590,72 +2140,25 @@ function requireReactJsxRuntime_development () {
2590
2140
  config,
2591
2141
  maybeKey,
2592
2142
  isStaticChildren,
2593
- source,
2594
- self
2143
+ debugStack,
2144
+ debugTask
2595
2145
  ) {
2596
- if (
2597
- "string" === typeof type ||
2598
- "function" === typeof type ||
2599
- type === REACT_FRAGMENT_TYPE ||
2600
- type === REACT_PROFILER_TYPE ||
2601
- type === REACT_STRICT_MODE_TYPE ||
2602
- type === REACT_SUSPENSE_TYPE ||
2603
- type === REACT_SUSPENSE_LIST_TYPE ||
2604
- type === REACT_OFFSCREEN_TYPE ||
2605
- ("object" === typeof type &&
2606
- null !== type &&
2607
- (type.$$typeof === REACT_LAZY_TYPE ||
2608
- type.$$typeof === REACT_MEMO_TYPE ||
2609
- type.$$typeof === REACT_CONTEXT_TYPE ||
2610
- type.$$typeof === REACT_CONSUMER_TYPE ||
2611
- type.$$typeof === REACT_FORWARD_REF_TYPE ||
2612
- type.$$typeof === REACT_CLIENT_REFERENCE$1 ||
2613
- void 0 !== type.getModuleId))
2614
- ) {
2615
- var children = config.children;
2616
- if (void 0 !== children)
2617
- if (isStaticChildren)
2618
- if (isArrayImpl(children)) {
2619
- for (
2620
- isStaticChildren = 0;
2621
- isStaticChildren < children.length;
2622
- isStaticChildren++
2623
- )
2624
- validateChildKeys(children[isStaticChildren], type);
2625
- Object.freeze && Object.freeze(children);
2626
- } else
2627
- console.error(
2628
- "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
2629
- );
2630
- else validateChildKeys(children, type);
2631
- } else {
2632
- children = "";
2633
- if (
2634
- void 0 === type ||
2635
- ("object" === typeof type &&
2636
- null !== type &&
2637
- 0 === Object.keys(type).length)
2638
- )
2639
- children +=
2640
- " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";
2641
- null === type
2642
- ? (isStaticChildren = "null")
2643
- : isArrayImpl(type)
2644
- ? (isStaticChildren = "array")
2645
- : void 0 !== type && type.$$typeof === REACT_ELEMENT_TYPE
2646
- ? ((isStaticChildren =
2647
- "<" +
2648
- (getComponentNameFromType(type.type) || "Unknown") +
2649
- " />"),
2650
- (children =
2651
- " Did you accidentally export a JSX literal instead of a component?"))
2652
- : (isStaticChildren = typeof type);
2653
- console.error(
2654
- "React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",
2655
- isStaticChildren,
2656
- children
2657
- );
2658
- }
2146
+ var children = config.children;
2147
+ if (void 0 !== children)
2148
+ if (isStaticChildren)
2149
+ if (isArrayImpl(children)) {
2150
+ for (
2151
+ isStaticChildren = 0;
2152
+ isStaticChildren < children.length;
2153
+ isStaticChildren++
2154
+ )
2155
+ validateChildKeys(children[isStaticChildren]);
2156
+ Object.freeze && Object.freeze(children);
2157
+ } else
2158
+ console.error(
2159
+ "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
2160
+ );
2161
+ else validateChildKeys(children);
2659
2162
  if (hasOwnProperty.call(config, "key")) {
2660
2163
  children = getComponentNameFromType(type);
2661
2164
  var keys = Object.keys(config).filter(function (k) {
@@ -2694,35 +2197,26 @@ function requireReactJsxRuntime_development () {
2694
2197
  ? type.displayName || type.name || "Unknown"
2695
2198
  : type
2696
2199
  );
2697
- return ReactElement(type, children, self, source, getOwner(), maybeKey);
2200
+ return ReactElement(
2201
+ type,
2202
+ children,
2203
+ maybeKey,
2204
+ getOwner(),
2205
+ debugStack,
2206
+ debugTask
2207
+ );
2698
2208
  }
2699
- function validateChildKeys(node, parentType) {
2700
- if (
2701
- "object" === typeof node &&
2702
- node &&
2703
- node.$$typeof !== REACT_CLIENT_REFERENCE
2704
- )
2705
- if (isArrayImpl(node))
2706
- for (var i = 0; i < node.length; i++) {
2707
- var child = node[i];
2708
- isValidElement(child) && validateExplicitKey(child, parentType);
2709
- }
2710
- else if (isValidElement(node))
2711
- node._store && (node._store.validated = 1);
2712
- else if (
2713
- (null === node || "object" !== typeof node
2714
- ? (i = null)
2715
- : ((i =
2716
- (MAYBE_ITERATOR_SYMBOL && node[MAYBE_ITERATOR_SYMBOL]) ||
2717
- node["@@iterator"]),
2718
- (i = "function" === typeof i ? i : null)),
2719
- "function" === typeof i &&
2720
- i !== node.entries &&
2721
- ((i = i.call(node)), i !== node))
2722
- )
2723
- for (; !(node = i.next()).done; )
2724
- isValidElement(node.value) &&
2725
- validateExplicitKey(node.value, parentType);
2209
+ function validateChildKeys(node) {
2210
+ isValidElement(node)
2211
+ ? node._store && (node._store.validated = 1)
2212
+ : "object" === typeof node &&
2213
+ null !== node &&
2214
+ node.$$typeof === REACT_LAZY_TYPE &&
2215
+ ("fulfilled" === node._payload.status
2216
+ ? isValidElement(node._payload.value) &&
2217
+ node._payload.value._store &&
2218
+ (node._payload.value._store.validated = 1)
2219
+ : node._store && (node._store.validated = 1));
2726
2220
  }
2727
2221
  function isValidElement(object) {
2728
2222
  return (
@@ -2731,100 +2225,71 @@ function requireReactJsxRuntime_development () {
2731
2225
  object.$$typeof === REACT_ELEMENT_TYPE
2732
2226
  );
2733
2227
  }
2734
- function validateExplicitKey(element, parentType) {
2735
- if (
2736
- element._store &&
2737
- !element._store.validated &&
2738
- null == element.key &&
2739
- ((element._store.validated = 1),
2740
- (parentType = getCurrentComponentErrorInfo(parentType)),
2741
- !ownerHasKeyUseWarning[parentType])
2742
- ) {
2743
- ownerHasKeyUseWarning[parentType] = true;
2744
- var childOwner = "";
2745
- element &&
2746
- null != element._owner &&
2747
- element._owner !== getOwner() &&
2748
- ((childOwner = null),
2749
- "number" === typeof element._owner.tag
2750
- ? (childOwner = getComponentNameFromType(element._owner.type))
2751
- : "string" === typeof element._owner.name &&
2752
- (childOwner = element._owner.name),
2753
- (childOwner = " It was passed a child from " + childOwner + "."));
2754
- var prevGetCurrentStack = ReactSharedInternals.getCurrentStack;
2755
- ReactSharedInternals.getCurrentStack = function () {
2756
- var stack = describeUnknownElementTypeFrameInDEV(element.type);
2757
- prevGetCurrentStack && (stack += prevGetCurrentStack() || "");
2758
- return stack;
2759
- };
2760
- console.error(
2761
- 'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
2762
- parentType,
2763
- childOwner
2764
- );
2765
- ReactSharedInternals.getCurrentStack = prevGetCurrentStack;
2766
- }
2767
- }
2768
- function getCurrentComponentErrorInfo(parentType) {
2769
- var info = "",
2770
- owner = getOwner();
2771
- owner &&
2772
- (owner = getComponentNameFromType(owner.type)) &&
2773
- (info = "\n\nCheck the render method of `" + owner + "`.");
2774
- info ||
2775
- ((parentType = getComponentNameFromType(parentType)) &&
2776
- (info =
2777
- "\n\nCheck the top-level render call using <" + parentType + ">."));
2778
- return info;
2779
- }
2780
2228
  var React = reactExports,
2781
2229
  REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
2782
2230
  REACT_PORTAL_TYPE = Symbol.for("react.portal"),
2783
2231
  REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
2784
2232
  REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
2785
- REACT_PROFILER_TYPE = Symbol.for("react.profiler");
2786
- var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
2233
+ REACT_PROFILER_TYPE = Symbol.for("react.profiler"),
2234
+ REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
2787
2235
  REACT_CONTEXT_TYPE = Symbol.for("react.context"),
2788
2236
  REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
2789
2237
  REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
2790
2238
  REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"),
2791
2239
  REACT_MEMO_TYPE = Symbol.for("react.memo"),
2792
2240
  REACT_LAZY_TYPE = Symbol.for("react.lazy"),
2793
- REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"),
2794
- MAYBE_ITERATOR_SYMBOL = Symbol.iterator,
2795
- REACT_CLIENT_REFERENCE$2 = Symbol.for("react.client.reference"),
2241
+ REACT_ACTIVITY_TYPE = Symbol.for("react.activity"),
2242
+ REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"),
2796
2243
  ReactSharedInternals =
2797
2244
  React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
2798
2245
  hasOwnProperty = Object.prototype.hasOwnProperty,
2799
- assign = Object.assign,
2800
- REACT_CLIENT_REFERENCE$1 = Symbol.for("react.client.reference"),
2801
2246
  isArrayImpl = Array.isArray,
2802
- disabledDepth = 0,
2803
- prevLog,
2804
- prevInfo,
2805
- prevWarn,
2806
- prevError,
2807
- prevGroup,
2808
- prevGroupCollapsed,
2809
- prevGroupEnd;
2810
- disabledLog.__reactDisabledLog = true;
2811
- var prefix,
2812
- suffix,
2813
- reentry = false;
2814
- var componentFrameCache = new (
2815
- "function" === typeof WeakMap ? WeakMap : Map
2816
- )();
2817
- var REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"),
2818
- specialPropKeyWarningShown;
2247
+ createTask = console.createTask
2248
+ ? console.createTask
2249
+ : function () {
2250
+ return null;
2251
+ };
2252
+ React = {
2253
+ react_stack_bottom_frame: function (callStackForError) {
2254
+ return callStackForError();
2255
+ }
2256
+ };
2257
+ var specialPropKeyWarningShown;
2819
2258
  var didWarnAboutElementRef = {};
2820
- var didWarnAboutKeySpread = {},
2821
- ownerHasKeyUseWarning = {};
2259
+ var unknownOwnerDebugStack = React.react_stack_bottom_frame.bind(
2260
+ React,
2261
+ UnknownOwner
2262
+ )();
2263
+ var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
2264
+ var didWarnAboutKeySpread = {};
2822
2265
  reactJsxRuntime_development.Fragment = REACT_FRAGMENT_TYPE;
2823
- reactJsxRuntime_development.jsx = function (type, config, maybeKey, source, self) {
2824
- return jsxDEVImpl(type, config, maybeKey, false, source, self);
2266
+ reactJsxRuntime_development.jsx = function (type, config, maybeKey) {
2267
+ var trackActualOwner =
2268
+ 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
2269
+ return jsxDEVImpl(
2270
+ type,
2271
+ config,
2272
+ maybeKey,
2273
+ false,
2274
+ trackActualOwner
2275
+ ? Error("react-stack-top-frame")
2276
+ : unknownOwnerDebugStack,
2277
+ trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
2278
+ );
2825
2279
  };
2826
- reactJsxRuntime_development.jsxs = function (type, config, maybeKey, source, self) {
2827
- return jsxDEVImpl(type, config, maybeKey, true, source, self);
2280
+ reactJsxRuntime_development.jsxs = function (type, config, maybeKey) {
2281
+ var trackActualOwner =
2282
+ 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
2283
+ return jsxDEVImpl(
2284
+ type,
2285
+ config,
2286
+ maybeKey,
2287
+ true,
2288
+ trackActualOwner
2289
+ ? Error("react-stack-top-frame")
2290
+ : unknownOwnerDebugStack,
2291
+ trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
2292
+ );
2828
2293
  };
2829
2294
  })();
2830
2295
  return reactJsxRuntime_development;
@@ -9680,11 +9145,10 @@ function requireModernBrowserslistTarget () {
9680
9145
  if (hasRequiredModernBrowserslistTarget) return modernBrowserslistTarget;
9681
9146
  hasRequiredModernBrowserslistTarget = 1;
9682
9147
  const MODERN_BROWSERSLIST_TARGET = [
9683
- 'chrome 64',
9684
- 'edge 79',
9685
- 'firefox 67',
9686
- 'opera 51',
9687
- 'safari 12'
9148
+ 'chrome 111',
9149
+ 'edge 111',
9150
+ 'firefox 111',
9151
+ 'safari 16.4'
9688
9152
  ];
9689
9153
  modernBrowserslistTarget = MODERN_BROWSERSLIST_TARGET;
9690
9154
 
@@ -9692,6 +9156,47 @@ function requireModernBrowserslistTarget () {
9692
9156
  return modernBrowserslistTarget;
9693
9157
  }
9694
9158
 
9159
+ var entryConstants = {};
9160
+
9161
+ var hasRequiredEntryConstants;
9162
+
9163
+ function requireEntryConstants () {
9164
+ if (hasRequiredEntryConstants) return entryConstants;
9165
+ hasRequiredEntryConstants = 1;
9166
+ (function (exports$1) {
9167
+ Object.defineProperty(exports$1, "__esModule", {
9168
+ value: true
9169
+ });
9170
+ function _export(target, all) {
9171
+ for(var name in all)Object.defineProperty(target, name, {
9172
+ enumerable: true,
9173
+ get: all[name]
9174
+ });
9175
+ }
9176
+ _export(exports$1, {
9177
+ UNDERSCORE_GLOBAL_ERROR_ROUTE: function() {
9178
+ return UNDERSCORE_GLOBAL_ERROR_ROUTE;
9179
+ },
9180
+ UNDERSCORE_GLOBAL_ERROR_ROUTE_ENTRY: function() {
9181
+ return UNDERSCORE_GLOBAL_ERROR_ROUTE_ENTRY;
9182
+ },
9183
+ UNDERSCORE_NOT_FOUND_ROUTE: function() {
9184
+ return UNDERSCORE_NOT_FOUND_ROUTE;
9185
+ },
9186
+ UNDERSCORE_NOT_FOUND_ROUTE_ENTRY: function() {
9187
+ return UNDERSCORE_NOT_FOUND_ROUTE_ENTRY;
9188
+ }
9189
+ });
9190
+ const UNDERSCORE_NOT_FOUND_ROUTE = '/_not-found';
9191
+ const UNDERSCORE_NOT_FOUND_ROUTE_ENTRY = `${UNDERSCORE_NOT_FOUND_ROUTE}/page`;
9192
+ const UNDERSCORE_GLOBAL_ERROR_ROUTE = '/_global-error';
9193
+ const UNDERSCORE_GLOBAL_ERROR_ROUTE_ENTRY = `${UNDERSCORE_GLOBAL_ERROR_ROUTE}/page`;
9194
+
9195
+
9196
+ } (entryConstants));
9197
+ return entryConstants;
9198
+ }
9199
+
9695
9200
  (function (module, exports$1) {
9696
9201
  Object.defineProperty(exports$1, "__esModule", {
9697
9202
  value: true
@@ -9703,9 +9208,6 @@ function requireModernBrowserslistTarget () {
9703
9208
  });
9704
9209
  }
9705
9210
  _export(exports$1, {
9706
- APP_BUILD_MANIFEST: function() {
9707
- return APP_BUILD_MANIFEST;
9708
- },
9709
9211
  APP_CLIENT_INTERNALS: function() {
9710
9212
  return APP_CLIENT_INTERNALS;
9711
9213
  },
@@ -9739,9 +9241,6 @@ function requireModernBrowserslistTarget () {
9739
9241
  CLIENT_STATIC_FILES_PATH: function() {
9740
9242
  return CLIENT_STATIC_FILES_PATH;
9741
9243
  },
9742
- CLIENT_STATIC_FILES_RUNTIME_AMP: function() {
9743
- return CLIENT_STATIC_FILES_RUNTIME_AMP;
9744
- },
9745
9244
  CLIENT_STATIC_FILES_RUNTIME_MAIN: function() {
9746
9245
  return CLIENT_STATIC_FILES_RUNTIME_MAIN;
9747
9246
  },
@@ -9829,6 +9328,9 @@ function requireModernBrowserslistTarget () {
9829
9328
  PAGES_MANIFEST: function() {
9830
9329
  return PAGES_MANIFEST;
9831
9330
  },
9331
+ PHASE_ANALYZE: function() {
9332
+ return PHASE_ANALYZE;
9333
+ },
9832
9334
  PHASE_DEVELOPMENT_SERVER: function() {
9833
9335
  return PHASE_DEVELOPMENT_SERVER;
9834
9336
  },
@@ -9898,11 +9400,17 @@ function requireModernBrowserslistTarget () {
9898
9400
  TURBO_TRACE_DEFAULT_MEMORY_LIMIT: function() {
9899
9401
  return TURBO_TRACE_DEFAULT_MEMORY_LIMIT;
9900
9402
  },
9403
+ UNDERSCORE_GLOBAL_ERROR_ROUTE: function() {
9404
+ return _entryconstants.UNDERSCORE_GLOBAL_ERROR_ROUTE;
9405
+ },
9406
+ UNDERSCORE_GLOBAL_ERROR_ROUTE_ENTRY: function() {
9407
+ return _entryconstants.UNDERSCORE_GLOBAL_ERROR_ROUTE_ENTRY;
9408
+ },
9901
9409
  UNDERSCORE_NOT_FOUND_ROUTE: function() {
9902
- return UNDERSCORE_NOT_FOUND_ROUTE;
9410
+ return _entryconstants.UNDERSCORE_NOT_FOUND_ROUTE;
9903
9411
  },
9904
9412
  UNDERSCORE_NOT_FOUND_ROUTE_ENTRY: function() {
9905
- return UNDERSCORE_NOT_FOUND_ROUTE_ENTRY;
9413
+ return _entryconstants.UNDERSCORE_NOT_FOUND_ROUTE_ENTRY;
9906
9414
  },
9907
9415
  WEBPACK_STATS: function() {
9908
9416
  return WEBPACK_STATS;
@@ -9910,11 +9418,17 @@ function requireModernBrowserslistTarget () {
9910
9418
  });
9911
9419
  const _interop_require_default = _interop_require_default$1;
9912
9420
  const _modernbrowserslisttarget = /*#__PURE__*/ _interop_require_default._(requireModernBrowserslistTarget());
9421
+ const _entryconstants = requireEntryConstants();
9913
9422
  const COMPILER_NAMES = {
9914
9423
  client: 'client',
9915
9424
  server: 'server',
9916
9425
  edgeServer: 'edge-server'
9917
9426
  };
9427
+ const COMPILER_INDEXES = {
9428
+ [COMPILER_NAMES.client]: 0,
9429
+ [COMPILER_NAMES.server]: 1,
9430
+ [COMPILER_NAMES.edgeServer]: 2
9431
+ };
9918
9432
  var AdapterOutputType = /*#__PURE__*/ function(AdapterOutputType) {
9919
9433
  /**
9920
9434
  * `PAGES` represents all the React pages that are under `pages/`.
@@ -9942,14 +9456,8 @@ function requireModernBrowserslistTarget () {
9942
9456
  */ AdapterOutputType["MIDDLEWARE"] = "MIDDLEWARE";
9943
9457
  return AdapterOutputType;
9944
9458
  }({});
9945
- const COMPILER_INDEXES = {
9946
- [COMPILER_NAMES.client]: 0,
9947
- [COMPILER_NAMES.server]: 1,
9948
- [COMPILER_NAMES.edgeServer]: 2
9949
- };
9950
- const UNDERSCORE_NOT_FOUND_ROUTE = '/_not-found';
9951
- const UNDERSCORE_NOT_FOUND_ROUTE_ENTRY = "" + UNDERSCORE_NOT_FOUND_ROUTE + "/page";
9952
9459
  const PHASE_EXPORT = 'phase-export';
9460
+ const PHASE_ANALYZE = 'phase-analyze';
9953
9461
  const PHASE_PRODUCTION_BUILD = 'phase-production-build';
9954
9462
  const PHASE_PRODUCTION_SERVER = 'phase-production-server';
9955
9463
  const PHASE_DEVELOPMENT_SERVER = 'phase-development-server';
@@ -9960,7 +9468,6 @@ function requireModernBrowserslistTarget () {
9960
9468
  const APP_PATHS_MANIFEST = 'app-paths-manifest.json';
9961
9469
  const APP_PATH_ROUTES_MANIFEST = 'app-path-routes-manifest.json';
9962
9470
  const BUILD_MANIFEST = 'build-manifest.json';
9963
- const APP_BUILD_MANIFEST = 'app-build-manifest.json';
9964
9471
  const FUNCTIONS_CONFIG_MANIFEST = 'functions-config-manifest.json';
9965
9472
  const SUBRESOURCE_INTEGRITY_MANIFEST = 'subresource-integrity-manifest';
9966
9473
  const NEXT_FONT_MANIFEST = 'next-font-manifest';
@@ -9969,7 +9476,7 @@ function requireModernBrowserslistTarget () {
9969
9476
  const PRERENDER_MANIFEST = 'prerender-manifest.json';
9970
9477
  const ROUTES_MANIFEST = 'routes-manifest.json';
9971
9478
  const IMAGES_MANIFEST = 'images-manifest.json';
9972
- const SERVER_FILES_MANIFEST = 'required-server-files.json';
9479
+ const SERVER_FILES_MANIFEST = 'required-server-files';
9973
9480
  const DEV_CLIENT_PAGES_MANIFEST = '_devPagesManifest.json';
9974
9481
  const MIDDLEWARE_MANIFEST = 'middleware-manifest.json';
9975
9482
  const TURBOPACK_CLIENT_MIDDLEWARE_MANIFEST = '_clientMiddlewareManifest.json';
@@ -9980,7 +9487,12 @@ function requireModernBrowserslistTarget () {
9980
9487
  const CONFIG_FILES = [
9981
9488
  'next.config.js',
9982
9489
  'next.config.mjs',
9983
- 'next.config.ts'
9490
+ 'next.config.ts',
9491
+ // process.features can be undefined on Edge runtime
9492
+ // TODO: Remove `as any` once we bump @types/node to v22.10.0+
9493
+ ...process?.features?.typescript ? [
9494
+ 'next.config.mts'
9495
+ ] : []
9984
9496
  ];
9985
9497
  const BUILD_ID_FILE = 'BUILD_ID';
9986
9498
  const BLOCKED_PAGES = [
@@ -9999,12 +9511,11 @@ function requireModernBrowserslistTarget () {
9999
9511
  const MIDDLEWARE_REACT_LOADABLE_MANIFEST = 'middleware-react-loadable-manifest';
10000
9512
  const INTERCEPTION_ROUTE_REWRITE_MANIFEST = 'interception-route-rewrite-manifest';
10001
9513
  const DYNAMIC_CSS_MANIFEST = 'dynamic-css-manifest';
10002
- const CLIENT_STATIC_FILES_RUNTIME_MAIN = "main";
10003
- const CLIENT_STATIC_FILES_RUNTIME_MAIN_APP = "" + CLIENT_STATIC_FILES_RUNTIME_MAIN + "-app";
9514
+ const CLIENT_STATIC_FILES_RUNTIME_MAIN = `main`;
9515
+ const CLIENT_STATIC_FILES_RUNTIME_MAIN_APP = `${CLIENT_STATIC_FILES_RUNTIME_MAIN}-app`;
10004
9516
  const APP_CLIENT_INTERNALS = 'app-pages-internals';
10005
- const CLIENT_STATIC_FILES_RUNTIME_REACT_REFRESH = "react-refresh";
10006
- const CLIENT_STATIC_FILES_RUNTIME_AMP = "amp";
10007
- const CLIENT_STATIC_FILES_RUNTIME_WEBPACK = "webpack";
9517
+ const CLIENT_STATIC_FILES_RUNTIME_REACT_REFRESH = `react-refresh`;
9518
+ const CLIENT_STATIC_FILES_RUNTIME_WEBPACK = `webpack`;
10008
9519
  const CLIENT_STATIC_FILES_RUNTIME_POLYFILLS = 'polyfills';
10009
9520
  const CLIENT_STATIC_FILES_RUNTIME_POLYFILLS_SYMBOL = Symbol(CLIENT_STATIC_FILES_RUNTIME_POLYFILLS);
10010
9521
  const DEFAULT_RUNTIME_WEBPACK = 'webpack-runtime';
@@ -10053,7 +9564,6 @@ function requireModernBrowserslistTarget () {
10053
9564
  const SYSTEM_ENTRYPOINTS = new Set([
10054
9565
  CLIENT_STATIC_FILES_RUNTIME_MAIN,
10055
9566
  CLIENT_STATIC_FILES_RUNTIME_REACT_REFRESH,
10056
- CLIENT_STATIC_FILES_RUNTIME_AMP,
10057
9567
  CLIENT_STATIC_FILES_RUNTIME_MAIN_APP
10058
9568
  ]);
10059
9569
 
@@ -10072,7 +9582,7 @@ var getPageFiles = {};
10072
9582
 
10073
9583
  var denormalizePagePath = {};
10074
9584
 
10075
- var utils$3 = {};
9585
+ var utils$2 = {};
10076
9586
 
10077
9587
  var sortedRoutes = {};
10078
9588
 
@@ -10101,8 +9611,7 @@ var sortedRoutes = {};
10101
9611
  smoosh() {
10102
9612
  return this._smoosh();
10103
9613
  }
10104
- _smoosh(prefix) {
10105
- if (prefix === void 0) prefix = '/';
9614
+ _smoosh(prefix = '/') {
10106
9615
  const childrenPaths = [
10107
9616
  ...this.children.keys()
10108
9617
  ].sort();
@@ -10115,17 +9624,17 @@ var sortedRoutes = {};
10115
9624
  if (this.optionalRestSlugName !== null) {
10116
9625
  childrenPaths.splice(childrenPaths.indexOf('[[...]]'), 1);
10117
9626
  }
10118
- const routes = childrenPaths.map((c)=>this.children.get(c)._smoosh("" + prefix + c + "/")).reduce((prev, curr)=>[
9627
+ const routes = childrenPaths.map((c)=>this.children.get(c)._smoosh(`${prefix}${c}/`)).reduce((prev, curr)=>[
10119
9628
  ...prev,
10120
9629
  ...curr
10121
9630
  ], []);
10122
9631
  if (this.slugName !== null) {
10123
- routes.push(...this.children.get('[]')._smoosh(prefix + "[" + this.slugName + "]/"));
9632
+ routes.push(...this.children.get('[]')._smoosh(`${prefix}[${this.slugName}]/`));
10124
9633
  }
10125
9634
  if (!this.placeholder) {
10126
9635
  const r = prefix === '/' ? '/' : prefix.slice(0, -1);
10127
9636
  if (this.optionalRestSlugName != null) {
10128
- 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", {
9637
+ 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", {
10129
9638
  value: "E458",
10130
9639
  enumerable: false,
10131
9640
  configurable: true
@@ -10134,10 +9643,10 @@ var sortedRoutes = {};
10134
9643
  routes.unshift(r);
10135
9644
  }
10136
9645
  if (this.restSlugName !== null) {
10137
- routes.push(...this.children.get('[...]')._smoosh(prefix + "[..." + this.restSlugName + "]/"));
9646
+ routes.push(...this.children.get('[...]')._smoosh(`${prefix}[...${this.restSlugName}]/`));
10138
9647
  }
10139
9648
  if (this.optionalRestSlugName !== null) {
10140
- routes.push(...this.children.get('[[...]]')._smoosh(prefix + "[[..." + this.optionalRestSlugName + "]]/"));
9649
+ routes.push(...this.children.get('[[...]]')._smoosh(`${prefix}[[...${this.optionalRestSlugName}]]/`));
10141
9650
  }
10142
9651
  return routes;
10143
9652
  }
@@ -10147,7 +9656,7 @@ var sortedRoutes = {};
10147
9656
  return;
10148
9657
  }
10149
9658
  if (isCatchAll) {
10150
- throw Object.defineProperty(new Error("Catch-all must be the last part of the URL."), "__NEXT_ERROR_CODE", {
9659
+ throw Object.defineProperty(new Error(`Catch-all must be the last part of the URL.`), "__NEXT_ERROR_CODE", {
10151
9660
  value: "E392",
10152
9661
  enumerable: false,
10153
9662
  configurable: true
@@ -10166,7 +9675,7 @@ var sortedRoutes = {};
10166
9675
  isOptional = true;
10167
9676
  }
10168
9677
  if (segmentName.startsWith('…')) {
10169
- throw Object.defineProperty(new Error("Detected a three-dot character ('…') at ('" + segmentName + "'). Did you mean ('...')?"), "__NEXT_ERROR_CODE", {
9678
+ throw Object.defineProperty(new Error(`Detected a three-dot character ('…') at ('${segmentName}'). Did you mean ('...')?`), "__NEXT_ERROR_CODE", {
10170
9679
  value: "E147",
10171
9680
  enumerable: false,
10172
9681
  configurable: true
@@ -10178,14 +9687,14 @@ var sortedRoutes = {};
10178
9687
  isCatchAll = true;
10179
9688
  }
10180
9689
  if (segmentName.startsWith('[') || segmentName.endsWith(']')) {
10181
- throw Object.defineProperty(new Error("Segment names may not start or end with extra brackets ('" + segmentName + "')."), "__NEXT_ERROR_CODE", {
9690
+ throw Object.defineProperty(new Error(`Segment names may not start or end with extra brackets ('${segmentName}').`), "__NEXT_ERROR_CODE", {
10182
9691
  value: "E421",
10183
9692
  enumerable: false,
10184
9693
  configurable: true
10185
9694
  });
10186
9695
  }
10187
9696
  if (segmentName.startsWith('.')) {
10188
- throw Object.defineProperty(new Error("Segment names may not start with erroneous periods ('" + segmentName + "')."), "__NEXT_ERROR_CODE", {
9697
+ throw Object.defineProperty(new Error(`Segment names may not start with erroneous periods ('${segmentName}').`), "__NEXT_ERROR_CODE", {
10189
9698
  value: "E288",
10190
9699
  enumerable: false,
10191
9700
  configurable: true
@@ -10200,7 +9709,7 @@ var sortedRoutes = {};
10200
9709
  // Because currently multiple dynamic params on the same segment level are not supported
10201
9710
  if (previousSlug !== nextSlug) {
10202
9711
  // TODO: This error seems to be confusing for users, needs an error link, the description can be based on above comment.
10203
- throw Object.defineProperty(new Error("You cannot use different slug names for the same dynamic path ('" + previousSlug + "' !== '" + nextSlug + "')."), "__NEXT_ERROR_CODE", {
9712
+ throw Object.defineProperty(new Error(`You cannot use different slug names for the same dynamic path ('${previousSlug}' !== '${nextSlug}').`), "__NEXT_ERROR_CODE", {
10204
9713
  value: "E337",
10205
9714
  enumerable: false,
10206
9715
  configurable: true
@@ -10209,14 +9718,14 @@ var sortedRoutes = {};
10209
9718
  }
10210
9719
  slugNames.forEach((slug)=>{
10211
9720
  if (slug === nextSlug) {
10212
- throw Object.defineProperty(new Error('You cannot have the same slug name "' + nextSlug + '" repeat within a single dynamic path'), "__NEXT_ERROR_CODE", {
9721
+ throw Object.defineProperty(new Error(`You cannot have the same slug name "${nextSlug}" repeat within a single dynamic path`), "__NEXT_ERROR_CODE", {
10213
9722
  value: "E247",
10214
9723
  enumerable: false,
10215
9724
  configurable: true
10216
9725
  });
10217
9726
  }
10218
9727
  if (slug.replace(/\W/g, '') === nextSegment.replace(/\W/g, '')) {
10219
- 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", {
9728
+ 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", {
10220
9729
  value: "E499",
10221
9730
  enumerable: false,
10222
9731
  configurable: true
@@ -10228,7 +9737,7 @@ var sortedRoutes = {};
10228
9737
  if (isCatchAll) {
10229
9738
  if (isOptional) {
10230
9739
  if (this.restSlugName != null) {
10231
- 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", {
9740
+ 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", {
10232
9741
  value: "E299",
10233
9742
  enumerable: false,
10234
9743
  configurable: true
@@ -10241,7 +9750,7 @@ var sortedRoutes = {};
10241
9750
  nextSegment = '[[...]]';
10242
9751
  } else {
10243
9752
  if (this.optionalRestSlugName != null) {
10244
- 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", {
9753
+ 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", {
10245
9754
  value: "E300",
10246
9755
  enumerable: false,
10247
9756
  configurable: true
@@ -10255,7 +9764,7 @@ var sortedRoutes = {};
10255
9764
  }
10256
9765
  } else {
10257
9766
  if (isOptional) {
10258
- throw Object.defineProperty(new Error('Optional route parameters are not yet supported ("' + urlPaths[0] + '").'), "__NEXT_ERROR_CODE", {
9767
+ throw Object.defineProperty(new Error(`Optional route parameters are not yet supported ("${urlPaths[0]}").`), "__NEXT_ERROR_CODE", {
10259
9768
  value: "E435",
10260
9769
  enumerable: false,
10261
9770
  configurable: true
@@ -10343,7 +9852,7 @@ var ensureLeadingSlash = {};
10343
9852
  }
10344
9853
  });
10345
9854
  function ensureLeadingSlash(path) {
10346
- return path.startsWith('/') ? path : "/" + path;
9855
+ return path.startsWith('/') ? path : `/${path}`;
10347
9856
  }
10348
9857
 
10349
9858
 
@@ -10365,12 +9874,24 @@ var segment = {};
10365
9874
  DEFAULT_SEGMENT_KEY: function() {
10366
9875
  return DEFAULT_SEGMENT_KEY;
10367
9876
  },
9877
+ NOT_FOUND_SEGMENT_KEY: function() {
9878
+ return NOT_FOUND_SEGMENT_KEY;
9879
+ },
10368
9880
  PAGE_SEGMENT_KEY: function() {
10369
9881
  return PAGE_SEGMENT_KEY;
10370
9882
  },
10371
9883
  addSearchParamsIfPageSegment: function() {
10372
9884
  return addSearchParamsIfPageSegment;
10373
9885
  },
9886
+ computeSelectedLayoutSegment: function() {
9887
+ return computeSelectedLayoutSegment;
9888
+ },
9889
+ getSegmentValue: function() {
9890
+ return getSegmentValue;
9891
+ },
9892
+ getSelectedLayoutSegmentPath: function() {
9893
+ return getSelectedLayoutSegmentPath;
9894
+ },
10374
9895
  isGroupSegment: function() {
10375
9896
  return isGroupSegment;
10376
9897
  },
@@ -10378,6 +9899,9 @@ var segment = {};
10378
9899
  return isParallelRouteSegment;
10379
9900
  }
10380
9901
  });
9902
+ function getSegmentValue(segment) {
9903
+ return Array.isArray(segment) ? segment[1] : segment;
9904
+ }
10381
9905
  function isGroupSegment(segment) {
10382
9906
  // Use array[0] for performant purpose
10383
9907
  return segment[0] === '(' && segment.endsWith(')');
@@ -10393,8 +9917,38 @@ var segment = {};
10393
9917
  }
10394
9918
  return segment;
10395
9919
  }
9920
+ function computeSelectedLayoutSegment(segments, parallelRouteKey) {
9921
+ if (!segments || segments.length === 0) {
9922
+ return null;
9923
+ }
9924
+ // For 'children', use first segment; for other parallel routes, use last segment
9925
+ const rawSegment = parallelRouteKey === 'children' ? segments[0] : segments[segments.length - 1];
9926
+ // If the default slot is showing, return null since it's not technically "selected" (it's a fallback)
9927
+ // Returning an internal value like `__DEFAULT__` would be confusing
9928
+ return rawSegment === DEFAULT_SEGMENT_KEY ? null : rawSegment;
9929
+ }
9930
+ function getSelectedLayoutSegmentPath(tree, parallelRouteKey, first = true, segmentPath = []) {
9931
+ let node;
9932
+ if (first) {
9933
+ // Use the provided parallel route key on the first parallel route
9934
+ node = tree[1][parallelRouteKey];
9935
+ } else {
9936
+ // After first parallel route prefer children, if there's no children pick the first parallel route.
9937
+ const parallelRoutes = tree[1];
9938
+ node = parallelRoutes.children ?? Object.values(parallelRoutes)[0];
9939
+ }
9940
+ if (!node) return segmentPath;
9941
+ const segment = node[0];
9942
+ let segmentValue = getSegmentValue(segment);
9943
+ if (!segmentValue || segmentValue.startsWith(PAGE_SEGMENT_KEY)) {
9944
+ return segmentPath;
9945
+ }
9946
+ segmentPath.push(segmentValue);
9947
+ return getSelectedLayoutSegmentPath(node, parallelRouteKey, false, segmentPath);
9948
+ }
10396
9949
  const PAGE_SEGMENT_KEY = '__PAGE__';
10397
9950
  const DEFAULT_SEGMENT_KEY = '__DEFAULT__';
9951
+ const NOT_FOUND_SEGMENT_KEY = '/_not-found';
10398
9952
 
10399
9953
 
10400
9954
  } (segment));
@@ -10437,7 +9991,7 @@ var segment = {};
10437
9991
  if ((segment === 'page' || segment === 'route') && index === segments.length - 1) {
10438
9992
  return pathname;
10439
9993
  }
10440
- return pathname + "/" + segment;
9994
+ return `${pathname}/${segment}`;
10441
9995
  }, ''));
10442
9996
  }
10443
9997
  function normalizeRscURL(url) {
@@ -10481,7 +10035,9 @@ var segment = {};
10481
10035
  return path.split('/').find((segment)=>INTERCEPTION_ROUTE_MARKERS.find((m)=>segment.startsWith(m))) !== undefined;
10482
10036
  }
10483
10037
  function extractInterceptionRouteInformation(path) {
10484
- let interceptingRoute, marker, interceptedRoute;
10038
+ let interceptingRoute;
10039
+ let marker;
10040
+ let interceptedRoute;
10485
10041
  for (const segment of path.split('/')){
10486
10042
  marker = INTERCEPTION_ROUTE_MARKERS.find((m)=>segment.startsWith(m));
10487
10043
  if (marker) {
@@ -10490,7 +10046,7 @@ var segment = {};
10490
10046
  }
10491
10047
  }
10492
10048
  if (!interceptingRoute || !marker || !interceptedRoute) {
10493
- throw Object.defineProperty(new Error("Invalid interception route: " + path + ". Must be in the format /<intercepting route>/(..|...|..)(..)/<intercepted route>"), "__NEXT_ERROR_CODE", {
10049
+ throw Object.defineProperty(new Error(`Invalid interception route: ${path}. Must be in the format /<intercepting route>/(..|...|..)(..)/<intercepted route>`), "__NEXT_ERROR_CODE", {
10494
10050
  value: "E269",
10495
10051
  enumerable: false,
10496
10052
  configurable: true
@@ -10502,7 +10058,7 @@ var segment = {};
10502
10058
  case '(.)':
10503
10059
  // (.) indicates that we should match with sibling routes, so we just need to append the intercepted route to the intercepting route
10504
10060
  if (interceptingRoute === '/') {
10505
- interceptedRoute = "/" + interceptedRoute;
10061
+ interceptedRoute = `/${interceptedRoute}`;
10506
10062
  } else {
10507
10063
  interceptedRoute = interceptingRoute + '/' + interceptedRoute;
10508
10064
  }
@@ -10510,7 +10066,7 @@ var segment = {};
10510
10066
  case '(..)':
10511
10067
  // (..) indicates that we should match at one level up, so we need to remove the last segment of the intercepting route
10512
10068
  if (interceptingRoute === '/') {
10513
- throw Object.defineProperty(new Error("Invalid interception route: " + path + ". Cannot use (..) marker at the root level, use (.) instead."), "__NEXT_ERROR_CODE", {
10069
+ throw Object.defineProperty(new Error(`Invalid interception route: ${path}. Cannot use (..) marker at the root level, use (.) instead.`), "__NEXT_ERROR_CODE", {
10514
10070
  value: "E207",
10515
10071
  enumerable: false,
10516
10072
  configurable: true
@@ -10526,7 +10082,7 @@ var segment = {};
10526
10082
  // (..)(..) indicates that we should match at two levels up, so we need to remove the last two segments of the intercepting route
10527
10083
  const splitInterceptingRoute = interceptingRoute.split('/');
10528
10084
  if (splitInterceptingRoute.length <= 2) {
10529
- throw Object.defineProperty(new Error("Invalid interception route: " + path + ". Cannot use (..)(..) marker at the root level or one level up."), "__NEXT_ERROR_CODE", {
10085
+ throw Object.defineProperty(new Error(`Invalid interception route: ${path}. Cannot use (..)(..) marker at the root level or one level up.`), "__NEXT_ERROR_CODE", {
10530
10086
  value: "E486",
10531
10087
  enumerable: false,
10532
10088
  configurable: true
@@ -10565,8 +10121,7 @@ var segment = {};
10565
10121
  const TEST_ROUTE = /\/[^/]*\[[^/]+\][^/]*(?=\/|$)/;
10566
10122
  // Identify /[param]/ in route string
10567
10123
  const TEST_STRICT_ROUTE = /\/\[[^/]+\](?=\/|$)/;
10568
- function isDynamicRoute(route, strict) {
10569
- if (strict === void 0) strict = true;
10124
+ function isDynamicRoute(route, strict = true) {
10570
10125
  if ((0, _interceptionroutes.isInterceptionRouteAppPath)(route)) {
10571
10126
  route = (0, _interceptionroutes.extractInterceptionRouteInformation)(route).interceptedRoute;
10572
10127
  }
@@ -10604,7 +10159,7 @@ var segment = {};
10604
10159
  const _isdynamic = isDynamic;
10605
10160
 
10606
10161
 
10607
- } (utils$3));
10162
+ } (utils$2));
10608
10163
 
10609
10164
  var normalizePathSep = {};
10610
10165
 
@@ -10641,7 +10196,7 @@ var normalizePathSep = {};
10641
10196
  return denormalizePagePath;
10642
10197
  }
10643
10198
  });
10644
- const _utils = utils$3;
10199
+ const _utils = utils$2;
10645
10200
  const _normalizepathsep = normalizePathSep;
10646
10201
  function denormalizePagePath(page) {
10647
10202
  let _page = (0, _normalizepathsep.normalizePathSep)(page);
@@ -10653,7 +10208,7 @@ var normalizePathSep = {};
10653
10208
 
10654
10209
  var normalizePagePath = {};
10655
10210
 
10656
- var utils$2 = {};
10211
+ var utils$1 = {};
10657
10212
 
10658
10213
  (function (exports$1) {
10659
10214
  Object.defineProperty(exports$1, "__esModule", {
@@ -10729,10 +10284,7 @@ var utils$2 = {};
10729
10284
  function execOnce(fn) {
10730
10285
  let used = false;
10731
10286
  let result;
10732
- return function() {
10733
- for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++){
10734
- args[_key] = arguments[_key];
10735
- }
10287
+ return (...args)=>{
10736
10288
  if (!used) {
10737
10289
  used = true;
10738
10290
  result = fn(...args);
@@ -10746,7 +10298,7 @@ var utils$2 = {};
10746
10298
  const isAbsoluteUrl = (url)=>ABSOLUTE_URL_REGEX.test(url);
10747
10299
  function getLocationOrigin() {
10748
10300
  const { protocol, hostname, port } = window.location;
10749
- return protocol + "//" + hostname + (port ? ':' + port : '');
10301
+ return `${protocol}//${hostname}${port ? ':' + port : ''}`;
10750
10302
  }
10751
10303
  function getURL() {
10752
10304
  const { href } = window.location;
@@ -10764,13 +10316,12 @@ var utils$2 = {};
10764
10316
  const urlNoQuery = urlParts[0];
10765
10317
  return urlNoQuery// first we replace any non-encoded backslashes with forward
10766
10318
  // then normalize repeated forward slashes
10767
- .replace(/\\/g, '/').replace(/\/\/+/g, '/') + (urlParts[1] ? "?" + urlParts.slice(1).join('?') : '');
10319
+ .replace(/\\/g, '/').replace(/\/\/+/g, '/') + (urlParts[1] ? `?${urlParts.slice(1).join('?')}` : '');
10768
10320
  }
10769
10321
  async function loadGetInitialProps(App, ctx) {
10770
10322
  if (process.env.NODE_ENV !== 'production') {
10771
- var _App_prototype;
10772
- if ((_App_prototype = App.prototype) == null ? void 0 : _App_prototype.getInitialProps) {
10773
- const message = '"' + getDisplayName(App) + '.getInitialProps()" is defined as an instance method - visit https://nextjs.org/docs/messages/get-initial-props-as-an-instance-method for more information.';
10323
+ if (App.prototype?.getInitialProps) {
10324
+ const message = `"${getDisplayName(App)}.getInitialProps()" is defined as an instance method - visit https://nextjs.org/docs/messages/get-initial-props-as-an-instance-method for more information.`;
10774
10325
  throw Object.defineProperty(new Error(message), "__NEXT_ERROR_CODE", {
10775
10326
  value: "E394",
10776
10327
  enumerable: false,
@@ -10794,7 +10345,7 @@ var utils$2 = {};
10794
10345
  return props;
10795
10346
  }
10796
10347
  if (!props) {
10797
- const message = '"' + getDisplayName(App) + '.getInitialProps()" should resolve to an object. But found "' + props + '" instead.';
10348
+ const message = `"${getDisplayName(App)}.getInitialProps()" should resolve to an object. But found "${props}" instead.`;
10798
10349
  throw Object.defineProperty(new Error(message), "__NEXT_ERROR_CODE", {
10799
10350
  value: "E394",
10800
10351
  enumerable: false,
@@ -10803,7 +10354,7 @@ var utils$2 = {};
10803
10354
  }
10804
10355
  if (process.env.NODE_ENV !== 'production') {
10805
10356
  if (Object.keys(props).length === 0 && !ctx.ctx) {
10806
- console.warn("" + getDisplayName(App) + " returned an empty object from `getInitialProps`. This de-optimizes and prevents automatic static optimization. https://nextjs.org/docs/messages/empty-object-getInitialProps");
10357
+ console.warn(`${getDisplayName(App)} returned an empty object from \`getInitialProps\`. This de-optimizes and prevents automatic static optimization. https://nextjs.org/docs/messages/empty-object-getInitialProps`);
10807
10358
  }
10808
10359
  }
10809
10360
  return props;
@@ -10823,20 +10374,20 @@ var utils$2 = {};
10823
10374
  super();
10824
10375
  this.code = 'ENOENT';
10825
10376
  this.name = 'PageNotFoundError';
10826
- this.message = "Cannot find module for page: " + page;
10377
+ this.message = `Cannot find module for page: ${page}`;
10827
10378
  }
10828
10379
  }
10829
10380
  class MissingStaticPage extends Error {
10830
10381
  constructor(page, message){
10831
10382
  super();
10832
- this.message = "Failed to load static file for page: " + page + " " + message;
10383
+ this.message = `Failed to load static file for page: ${page} ${message}`;
10833
10384
  }
10834
10385
  }
10835
10386
  class MiddlewareNotFoundError extends Error {
10836
10387
  constructor(){
10837
10388
  super();
10838
10389
  this.code = 'ENOENT';
10839
- this.message = "Cannot find the middleware module";
10390
+ this.message = `Cannot find the middleware module`;
10840
10391
  }
10841
10392
  }
10842
10393
  function stringifyError(error) {
@@ -10847,7 +10398,7 @@ var utils$2 = {};
10847
10398
  }
10848
10399
 
10849
10400
 
10850
- } (utils$2));
10401
+ } (utils$1));
10851
10402
 
10852
10403
  (function (exports$1) {
10853
10404
  Object.defineProperty(exports$1, "__esModule", {
@@ -10860,15 +10411,15 @@ var utils$2 = {};
10860
10411
  }
10861
10412
  });
10862
10413
  const _ensureleadingslash = ensureLeadingSlash;
10863
- const _utils = utils$3;
10864
- const _utils1 = utils$2;
10414
+ const _utils = utils$2;
10415
+ const _utils1 = utils$1;
10865
10416
  function normalizePagePath(page) {
10866
- const normalized = /^\/index(\/|$)/.test(page) && !(0, _utils.isDynamicRoute)(page) ? "/index" + page : page === '/' ? '/index' : (0, _ensureleadingslash.ensureLeadingSlash)(page);
10417
+ const normalized = /^\/index(\/|$)/.test(page) && !(0, _utils.isDynamicRoute)(page) ? `/index${page}` : page === '/' ? '/index' : (0, _ensureleadingslash.ensureLeadingSlash)(page);
10867
10418
  if (process.env.NEXT_RUNTIME !== 'edge') {
10868
10419
  const { posix } = require$$3;
10869
10420
  const resolvedPage = posix.normalize(normalized);
10870
10421
  if (resolvedPage !== normalized) {
10871
- throw new _utils1.NormalizeError("Requested and resolved page mismatch: " + normalized + " " + resolvedPage);
10422
+ throw new _utils1.NormalizeError(`Requested and resolved page mismatch: ${normalized} ${resolvedPage}`);
10872
10423
  }
10873
10424
  }
10874
10425
  return normalized;
@@ -11003,10 +10554,13 @@ var isPlainObject = {};
11003
10554
  }
11004
10555
  });
11005
10556
  const _isplainobject = isPlainObject;
11006
- function isError(err) {
11007
- return typeof err === 'object' && err !== null && 'name' in err && 'message' in err;
11008
- }
11009
- function safeStringify(obj) {
10557
+ /**
10558
+ * This is a safe stringify function that handles circular references.
10559
+ * We're using a simpler version here to avoid introducing
10560
+ * the dependency `safe-stable-stringify` into production bundle.
10561
+ *
10562
+ * This helper is used both in development and production.
10563
+ */ function safeStringifyLite(obj) {
11010
10564
  const seen = new WeakSet();
11011
10565
  return JSON.stringify(obj, (_key, value)=>{
11012
10566
  // If value is an object and already seen, replace with "[Circular]"
@@ -11019,6 +10573,9 @@ var isPlainObject = {};
11019
10573
  return value;
11020
10574
  });
11021
10575
  }
10576
+ function isError(err) {
10577
+ return typeof err === 'object' && err !== null && 'name' in err && 'message' in err;
10578
+ }
11022
10579
  function getProperError(err) {
11023
10580
  if (isError(err)) {
11024
10581
  return err;
@@ -11041,7 +10598,7 @@ var isPlainObject = {};
11041
10598
  });
11042
10599
  }
11043
10600
  }
11044
- return Object.defineProperty(new Error((0, _isplainobject.isPlainObject)(err) ? safeStringify(err) : err + ''), "__NEXT_ERROR_CODE", {
10601
+ return Object.defineProperty(new Error((0, _isplainobject.isPlainObject)(err) ? safeStringifyLite(err) : err + ''), "__NEXT_ERROR_CODE", {
11045
10602
  value: "E394",
11046
10603
  enumerable: false,
11047
10604
  configurable: true
@@ -11079,7 +10636,7 @@ var htmlContext_sharedRuntime = {};
11079
10636
  function useHtmlContext() {
11080
10637
  const context = (0, _react.useContext)(HtmlContext);
11081
10638
  if (!context) {
11082
- throw Object.defineProperty(new Error("<Html> should not be imported outside of pages/_document.\n" + 'Read more: https://nextjs.org/docs/messages/no-document-import-in-page'), "__NEXT_ERROR_CODE", {
10639
+ throw Object.defineProperty(new Error(`<Html> should not be imported outside of pages/_document.\n` + 'Read more: https://nextjs.org/docs/messages/no-document-import-in-page'), "__NEXT_ERROR_CODE", {
11083
10640
  value: "E67",
11084
10641
  enumerable: false,
11085
10642
  configurable: true
@@ -11197,6 +10754,7 @@ var constants = {};
11197
10754
  }(LoadComponentsSpan || {});
11198
10755
  var NextServerSpan = /*#__PURE__*/ function(NextServerSpan) {
11199
10756
  NextServerSpan["getRequestHandler"] = "NextServer.getRequestHandler";
10757
+ NextServerSpan["getRequestHandlerWithMetadata"] = "NextServer.getRequestHandlerWithMetadata";
11200
10758
  NextServerSpan["getServer"] = "NextServer.getServer";
11201
10759
  NextServerSpan["getServerRequestHandler"] = "NextServer.getServerRequestHandler";
11202
10760
  NextServerSpan["createServer"] = "createServer.createServer";
@@ -13806,7 +13364,6 @@ function requireApi () {
13806
13364
  return context.with(remoteContext, fn);
13807
13365
  }
13808
13366
  trace(...args) {
13809
- var _trace_getSpanContext;
13810
13367
  const [type, fnOrOptions, fnOrEmpty] = args;
13811
13368
  // coerce options form overload
13812
13369
  const { fn, options } = typeof fnOrOptions === 'function' ? {
@@ -13824,13 +13381,15 @@ function requireApi () {
13824
13381
  }
13825
13382
  // Trying to get active scoped span to assign parent. If option specifies parent span manually, will try to use it.
13826
13383
  let spanContext = this.getSpanContext((options == null ? void 0 : options.parentSpan) ?? this.getActiveScopeSpan());
13827
- let isRootSpan = false;
13828
13384
  if (!spanContext) {
13829
13385
  spanContext = (context == null ? void 0 : context.active()) ?? ROOT_CONTEXT;
13830
- isRootSpan = true;
13831
- } else if ((_trace_getSpanContext = trace.getSpanContext(spanContext)) == null ? void 0 : _trace_getSpanContext.isRemote) {
13832
- isRootSpan = true;
13833
13386
  }
13387
+ // Check if there's already a root span in the store for this trace
13388
+ // We are intentionally not checking whether there is an active context
13389
+ // from outside of nextjs to ensure that we can provide the same level
13390
+ // of telemetry when using a custom server
13391
+ const existingRootSpanId = spanContext.getValue(rootSpanIdKey);
13392
+ const isRootSpan = typeof existingRootSpanId !== 'number' || !rootSpanAttributesStore.has(existingRootSpanId);
13834
13393
  const spanId = getSpanId();
13835
13394
  options.attributes = {
13836
13395
  'next.span_name': spanName,
@@ -13939,10 +13498,14 @@ function requireApi () {
13939
13498
  setRootSpanAttribute(key, value) {
13940
13499
  const spanId = context.active().getValue(rootSpanIdKey);
13941
13500
  const attributes = rootSpanAttributesStore.get(spanId);
13942
- if (attributes) {
13501
+ if (attributes && !attributes.has(key)) {
13943
13502
  attributes.set(key, value);
13944
13503
  }
13945
13504
  }
13505
+ withSpan(span, fn) {
13506
+ const spanContext = trace.setSpan(context.active(), span);
13507
+ return context.with(spanContext, fn);
13508
+ }
13946
13509
  }
13947
13510
  const getTracer = (()=>{
13948
13511
  const tracer = new NextTracerImpl();
@@ -13952,7 +13515,7 @@ function requireApi () {
13952
13515
 
13953
13516
  } (tracer));
13954
13517
 
13955
- var utils$1 = {};
13518
+ var utils = {};
13956
13519
 
13957
13520
  (function (exports$1) {
13958
13521
  Object.defineProperty(exports$1, "__esModule", {
@@ -13970,100 +13533,7 @@ var utils$1 = {};
13970
13533
  }
13971
13534
 
13972
13535
 
13973
- } (utils$1));
13974
-
13975
- var utils = {};
13976
-
13977
- var hasRequiredUtils;
13978
-
13979
- function requireUtils () {
13980
- if (hasRequiredUtils) return utils;
13981
- hasRequiredUtils = 1;
13982
- (function (exports$1) {
13983
- Object.defineProperty(exports$1, "__esModule", {
13984
- value: true
13985
- });
13986
- function _export(target, all) {
13987
- for(var name in all)Object.defineProperty(target, name, {
13988
- enumerable: true,
13989
- get: all[name]
13990
- });
13991
- }
13992
- _export(exports$1, {
13993
- cleanAmpPath: function() {
13994
- return cleanAmpPath;
13995
- },
13996
- debounce: function() {
13997
- return debounce;
13998
- },
13999
- isBlockedPage: function() {
14000
- return isBlockedPage;
14001
- }
14002
- });
14003
- const _constants = constantsExports;
14004
- function isBlockedPage(page) {
14005
- return _constants.BLOCKED_PAGES.includes(page);
14006
- }
14007
- function cleanAmpPath(pathname) {
14008
- if (pathname.match(/\?amp=(y|yes|true|1)/)) {
14009
- pathname = pathname.replace(/\?amp=(y|yes|true|1)&?/, '?');
14010
- }
14011
- if (pathname.match(/&amp=(y|yes|true|1)/)) {
14012
- pathname = pathname.replace(/&amp=(y|yes|true|1)/, '');
14013
- }
14014
- pathname = pathname.replace(/\?$/, '');
14015
- return pathname;
14016
- }
14017
- function debounce(fn, ms, maxWait = Infinity) {
14018
- let timeoutId;
14019
- // The time the debouncing function was first called during this debounce queue.
14020
- let startTime = 0;
14021
- // The time the debouncing function was last called.
14022
- let lastCall = 0;
14023
- // The arguments and this context of the last call to the debouncing function.
14024
- let args, context;
14025
- // A helper used to that either invokes the debounced function, or
14026
- // reschedules the timer if a more recent call was made.
14027
- function run() {
14028
- const now = Date.now();
14029
- const diff = lastCall + ms - now;
14030
- // If the diff is non-positive, then we've waited at least `ms`
14031
- // milliseconds since the last call. Or if we've waited for longer than the
14032
- // max wait time, we must call the debounced function.
14033
- if (diff <= 0 || startTime + maxWait >= now) {
14034
- // It's important to clear the timeout id before invoking the debounced
14035
- // function, in case the function calls the debouncing function again.
14036
- timeoutId = undefined;
14037
- fn.apply(context, args);
14038
- } else {
14039
- // Else, a new call was made after the original timer was scheduled. We
14040
- // didn't clear the timeout (doing so is very slow), so now we need to
14041
- // reschedule the timer for the time difference.
14042
- timeoutId = setTimeout(run, diff);
14043
- }
14044
- }
14045
- return function(...passedArgs) {
14046
- // The arguments and this context of the most recent call are saved so the
14047
- // debounced function can be invoked with them later.
14048
- args = passedArgs;
14049
- context = this;
14050
- // Instead of constantly clearing and scheduling a timer, we record the
14051
- // time of the last call. If a second call comes in before the timer fires,
14052
- // then we'll reschedule in the run function. Doing this is considerably
14053
- // faster.
14054
- lastCall = Date.now();
14055
- // Only schedule a new timer if we're not currently waiting.
14056
- if (timeoutId === undefined) {
14057
- startTime = lastCall;
14058
- timeoutId = setTimeout(run, ms);
14059
- }
14060
- };
14061
- }
14062
-
14063
-
14064
- } (utils));
14065
- return utils;
14066
- }
13536
+ } (utils));
14067
13537
 
14068
13538
  var prettyBytes = {};
14069
13539
 
@@ -14191,7 +13661,7 @@ function requirePrettyBytes () {
14191
13661
  const _htmlcontextsharedruntime = htmlContext_sharedRuntime;
14192
13662
  const _encodeuripath = encodeUriPath;
14193
13663
  const _tracer = tracer;
14194
- const _utils = utils$1;
13664
+ const _utils = utils;
14195
13665
  function _interop_require_default(obj) {
14196
13666
  return obj && obj.__esModule ? obj : {
14197
13667
  default: obj
@@ -14239,9 +13709,9 @@ function requirePrettyBytes () {
14239
13709
  return newObj;
14240
13710
  }
14241
13711
  /** Set of pages that have triggered a large data warning on production mode. */ const largePageDataWarnings = new Set();
14242
- function getDocumentFiles(buildManifest, pathname, inAmpMode) {
13712
+ function getDocumentFiles(buildManifest, pathname) {
14243
13713
  const sharedFiles = (0, _getpagefiles.getPageFiles)(buildManifest, '/_app');
14244
- const pageFiles = process.env.NEXT_RUNTIME !== 'edge' && inAmpMode ? [] : (0, _getpagefiles.getPageFiles)(buildManifest, pathname);
13714
+ const pageFiles = (0, _getpagefiles.getPageFiles)(buildManifest, pathname);
14245
13715
  return {
14246
13716
  sharedFiles,
14247
13717
  pageFiles,
@@ -14268,33 +13738,6 @@ function requirePrettyBytes () {
14268
13738
  function hasComponentProps(child) {
14269
13739
  return !!child && !!child.props;
14270
13740
  }
14271
- function AmpStyles({ styles }) {
14272
- if (!styles) return null;
14273
- // try to parse styles from fragment for backwards compat
14274
- const curStyles = Array.isArray(styles) ? styles : [];
14275
- if (// @ts-ignore Property 'props' does not exist on type ReactElement
14276
- styles.props && // @ts-ignore Property 'props' does not exist on type ReactElement
14277
- Array.isArray(styles.props.children)) {
14278
- const hasStyles = (el)=>{
14279
- var _el_props_dangerouslySetInnerHTML, _el_props;
14280
- return el == null ? void 0 : (_el_props = el.props) == null ? void 0 : (_el_props_dangerouslySetInnerHTML = _el_props.dangerouslySetInnerHTML) == null ? void 0 : _el_props_dangerouslySetInnerHTML.__html;
14281
- };
14282
- // @ts-ignore Property 'props' does not exist on type ReactElement
14283
- styles.props.children.forEach((child)=>{
14284
- if (Array.isArray(child)) {
14285
- child.forEach((el)=>hasStyles(el) && curStyles.push(el));
14286
- } else if (hasStyles(child)) {
14287
- curStyles.push(child);
14288
- }
14289
- });
14290
- }
14291
- /* Add custom styles before AMP styles to prevent accidental overrides */ return /*#__PURE__*/ (0, _jsxruntime.jsx)("style", {
14292
- "amp-custom": "",
14293
- dangerouslySetInnerHTML: {
14294
- __html: curStyles.map((style)=>style.props.dangerouslySetInnerHTML.__html).join('').replace(/\/\*# sourceMappingURL=.*\*\//g, '').replace(/\/\*@ sourceURL=.*?\*\//g, '')
14295
- }
14296
- });
14297
- }
14298
13741
  function getDynamicChunks(context, props, files) {
14299
13742
  const { dynamicImports, assetPrefix, isDevelopment, assetQueryString, disableOptimizedLoading, crossOrigin } = context;
14300
13743
  return dynamicImports.map((file)=>{
@@ -14428,9 +13871,6 @@ function requirePrettyBytes () {
14428
13871
  const headProps = restProps;
14429
13872
  return headProps;
14430
13873
  }
14431
- function getAmpPath(ampPath, asPath) {
14432
- return ampPath || `${asPath}${asPath.includes('?') ? '&' : '?'}amp=1`;
14433
- }
14434
13874
  function getNextFontLinkTags(nextFontManifest, dangerousAsPath, assetPrefix = '') {
14435
13875
  if (!nextFontManifest) {
14436
13876
  return {
@@ -14581,7 +14021,7 @@ function requirePrettyBytes () {
14581
14021
  return getPolyfillScripts(this.context, this.props);
14582
14022
  }
14583
14023
  render() {
14584
- const { styles, ampPath, inAmpMode, hybridAmp, canonicalBase, __NEXT_DATA__, dangerousAsPath, headTags, unstable_runtimeJS, unstable_JsPreload, disableOptimizedLoading, optimizeCss, assetPrefix, nextFontManifest } = this.context;
14024
+ const { styles, __NEXT_DATA__, dangerousAsPath, headTags, unstable_runtimeJS, unstable_JsPreload, disableOptimizedLoading, optimizeCss, assetPrefix, nextFontManifest } = this.context;
14585
14025
  const disableRuntimeJS = unstable_runtimeJS === false;
14586
14026
  const disableJsPreload = unstable_JsPreload === false || !disableOptimizedLoading;
14587
14027
  this.context.docComponentsRendered.Head = true;
@@ -14621,45 +14061,7 @@ function requirePrettyBytes () {
14621
14061
  });
14622
14062
  if (this.props.crossOrigin) console.warn('Warning: `Head` attribute `crossOrigin` is deprecated. https://nextjs.org/docs/messages/doc-crossorigin-deprecated');
14623
14063
  }
14624
- let hasAmphtmlRel = false;
14625
- let hasCanonicalRel = false;
14626
- // show warning and remove conflicting amp head tags
14627
- head = _react.default.Children.map(head || [], (child)=>{
14628
- if (!child) return child;
14629
- const { type, props } = child;
14630
- if (process.env.NEXT_RUNTIME !== 'edge' && inAmpMode) {
14631
- let badProp = '';
14632
- if (type === 'meta' && props.name === 'viewport') {
14633
- badProp = 'name="viewport"';
14634
- } else if (type === 'link' && props.rel === 'canonical') {
14635
- hasCanonicalRel = true;
14636
- } else if (type === 'script') {
14637
- // only block if
14638
- // 1. it has a src and isn't pointing to ampproject's CDN
14639
- // 2. it is using dangerouslySetInnerHTML without a type or
14640
- // a type of text/javascript
14641
- if (props.src && props.src.indexOf('ampproject') < -1 || props.dangerouslySetInnerHTML && (!props.type || props.type === 'text/javascript')) {
14642
- badProp = '<script';
14643
- Object.keys(props).forEach((prop)=>{
14644
- badProp += ` ${prop}="${props[prop]}"`;
14645
- });
14646
- badProp += '/>';
14647
- }
14648
- }
14649
- if (badProp) {
14650
- console.warn(`Found conflicting amp tag "${child.type}" with conflicting prop ${badProp} in ${__NEXT_DATA__.page}. https://nextjs.org/docs/messages/conflicting-amp-tag`);
14651
- return null;
14652
- }
14653
- } else {
14654
- // non-amp mode
14655
- if (type === 'link' && props.rel === 'amphtml') {
14656
- hasAmphtmlRel = true;
14657
- }
14658
- }
14659
- return child;
14660
- // @types/react bug. Returned value from .map will not be `null` if you pass in `[null]`
14661
- });
14662
- const files = getDocumentFiles(this.context.buildManifest, this.context.__NEXT_DATA__.page, process.env.NEXT_RUNTIME !== 'edge' && inAmpMode);
14064
+ const files = getDocumentFiles(this.context.buildManifest, this.context.__NEXT_DATA__.page);
14663
14065
  const nextFontLinkTags = getNextFontLinkTags(nextFontManifest, dangerousAsPath, assetPrefix);
14664
14066
  const tracingMetadata = (0, _utils.getTracedMetadata)((0, _tracer.getTracer)().getTracePropagationData(), this.context.experimentalClientTraceMetadata);
14665
14067
  const traceMetaTags = (tracingMetadata || []).map(({ key, value }, index)=>/*#__PURE__*/ (0, _jsxruntime.jsx)("meta", {
@@ -14673,14 +14075,12 @@ function requirePrettyBytes () {
14673
14075
  children: [
14674
14076
  /*#__PURE__*/ (0, _jsxruntime.jsx)("style", {
14675
14077
  "data-next-hide-fouc": true,
14676
- "data-ampdevmode": process.env.NEXT_RUNTIME !== 'edge' && inAmpMode ? 'true' : undefined,
14677
14078
  dangerouslySetInnerHTML: {
14678
14079
  __html: `body{display:none}`
14679
14080
  }
14680
14081
  }),
14681
14082
  /*#__PURE__*/ (0, _jsxruntime.jsx)("noscript", {
14682
14083
  "data-next-hide-fouc": true,
14683
- "data-ampdevmode": process.env.NEXT_RUNTIME !== 'edge' && inAmpMode ? 'true' : undefined,
14684
14084
  children: /*#__PURE__*/ (0, _jsxruntime.jsx)("style", {
14685
14085
  dangerouslySetInnerHTML: {
14686
14086
  __html: `body{display:block}`
@@ -14693,75 +14093,29 @@ function requirePrettyBytes () {
14693
14093
  children,
14694
14094
  nextFontLinkTags.preconnect,
14695
14095
  nextFontLinkTags.preload,
14696
- process.env.NEXT_RUNTIME !== 'edge' && inAmpMode && /*#__PURE__*/ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
14697
- children: [
14698
- /*#__PURE__*/ (0, _jsxruntime.jsx)("meta", {
14699
- name: "viewport",
14700
- content: "width=device-width,minimum-scale=1,initial-scale=1"
14701
- }),
14702
- !hasCanonicalRel && /*#__PURE__*/ (0, _jsxruntime.jsx)("link", {
14703
- rel: "canonical",
14704
- href: canonicalBase + requireUtils().cleanAmpPath(dangerousAsPath)
14705
- }),
14706
- /*#__PURE__*/ (0, _jsxruntime.jsx)("link", {
14707
- rel: "preload",
14708
- as: "script",
14709
- href: "https://cdn.ampproject.org/v0.js"
14710
- }),
14711
- /*#__PURE__*/ (0, _jsxruntime.jsx)(AmpStyles, {
14712
- styles: styles
14713
- }),
14714
- /*#__PURE__*/ (0, _jsxruntime.jsx)("style", {
14715
- "amp-boilerplate": "",
14716
- dangerouslySetInnerHTML: {
14717
- __html: `body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}`
14718
- }
14719
- }),
14720
- /*#__PURE__*/ (0, _jsxruntime.jsx)("noscript", {
14721
- children: /*#__PURE__*/ (0, _jsxruntime.jsx)("style", {
14722
- "amp-boilerplate": "",
14723
- dangerouslySetInnerHTML: {
14724
- __html: `body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:none}`
14725
- }
14726
- })
14727
- }),
14728
- /*#__PURE__*/ (0, _jsxruntime.jsx)("script", {
14729
- async: true,
14730
- src: "https://cdn.ampproject.org/v0.js"
14731
- })
14732
- ]
14096
+ this.getBeforeInteractiveInlineScripts(),
14097
+ !optimizeCss && this.getCssLinks(files),
14098
+ !optimizeCss && /*#__PURE__*/ (0, _jsxruntime.jsx)("noscript", {
14099
+ "data-n-css": this.props.nonce ?? ''
14733
14100
  }),
14734
- !(process.env.NEXT_RUNTIME !== 'edge' && inAmpMode) && /*#__PURE__*/ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
14735
- children: [
14736
- !hasAmphtmlRel && hybridAmp && /*#__PURE__*/ (0, _jsxruntime.jsx)("link", {
14737
- rel: "amphtml",
14738
- href: canonicalBase + getAmpPath(ampPath, dangerousAsPath)
14739
- }),
14740
- this.getBeforeInteractiveInlineScripts(),
14741
- !optimizeCss && this.getCssLinks(files),
14742
- !optimizeCss && /*#__PURE__*/ (0, _jsxruntime.jsx)("noscript", {
14743
- "data-n-css": this.props.nonce ?? ''
14744
- }),
14745
- !disableRuntimeJS && !disableJsPreload && this.getPreloadDynamicChunks(),
14746
- !disableRuntimeJS && !disableJsPreload && this.getPreloadMainLinks(files),
14747
- !disableOptimizedLoading && !disableRuntimeJS && this.getPolyfillScripts(),
14748
- !disableOptimizedLoading && !disableRuntimeJS && this.getPreNextScripts(),
14749
- !disableOptimizedLoading && !disableRuntimeJS && this.getDynamicChunks(files),
14750
- !disableOptimizedLoading && !disableRuntimeJS && this.getScripts(files),
14751
- optimizeCss && this.getCssLinks(files),
14752
- optimizeCss && /*#__PURE__*/ (0, _jsxruntime.jsx)("noscript", {
14753
- "data-n-css": this.props.nonce ?? ''
14754
- }),
14755
- this.context.isDevelopment && // this element is used to mount development styles so the
14756
- // ordering matches production
14757
- // (by default, style-loader injects at the bottom of <head />)
14758
- /*#__PURE__*/ (0, _jsxruntime.jsx)("noscript", {
14759
- id: "__next_css__DO_NOT_USE__"
14760
- }),
14761
- traceMetaTags,
14762
- styles || null
14763
- ]
14101
+ !disableRuntimeJS && !disableJsPreload && this.getPreloadDynamicChunks(),
14102
+ !disableRuntimeJS && !disableJsPreload && this.getPreloadMainLinks(files),
14103
+ !disableOptimizedLoading && !disableRuntimeJS && this.getPolyfillScripts(),
14104
+ !disableOptimizedLoading && !disableRuntimeJS && this.getPreNextScripts(),
14105
+ !disableOptimizedLoading && !disableRuntimeJS && this.getDynamicChunks(files),
14106
+ !disableOptimizedLoading && !disableRuntimeJS && this.getScripts(files),
14107
+ optimizeCss && this.getCssLinks(files),
14108
+ optimizeCss && /*#__PURE__*/ (0, _jsxruntime.jsx)("noscript", {
14109
+ "data-n-css": this.props.nonce ?? ''
14110
+ }),
14111
+ this.context.isDevelopment && // this element is used to mount development styles so the
14112
+ // ordering matches production
14113
+ // (by default, style-loader injects at the bottom of <head />)
14114
+ /*#__PURE__*/ (0, _jsxruntime.jsx)("noscript", {
14115
+ id: "__next_css__DO_NOT_USE__"
14764
14116
  }),
14117
+ traceMetaTags,
14118
+ styles || null,
14765
14119
  /*#__PURE__*/ _react.default.createElement(_react.default.Fragment, {}, ...headTags || [])
14766
14120
  ]
14767
14121
  });
@@ -14857,43 +14211,13 @@ function requirePrettyBytes () {
14857
14211
  }
14858
14212
  }
14859
14213
  render() {
14860
- const { assetPrefix, inAmpMode, buildManifest, unstable_runtimeJS, docComponentsRendered, assetQueryString, disableOptimizedLoading, crossOrigin } = this.context;
14214
+ const { assetPrefix, buildManifest, unstable_runtimeJS, docComponentsRendered, assetQueryString, disableOptimizedLoading, crossOrigin } = this.context;
14861
14215
  const disableRuntimeJS = unstable_runtimeJS === false;
14862
14216
  docComponentsRendered.NextScript = true;
14863
- if (process.env.NEXT_RUNTIME !== 'edge' && inAmpMode) {
14864
- if (process.env.NODE_ENV === 'production') {
14865
- return null;
14866
- }
14867
- const ampDevFiles = [
14868
- ...buildManifest.devFiles,
14869
- ...buildManifest.polyfillFiles,
14870
- ...buildManifest.ampDevFiles
14871
- ];
14872
- return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
14873
- children: [
14874
- disableRuntimeJS ? null : /*#__PURE__*/ (0, _jsxruntime.jsx)("script", {
14875
- id: "__NEXT_DATA__",
14876
- type: "application/json",
14877
- nonce: this.props.nonce,
14878
- crossOrigin: this.props.crossOrigin || crossOrigin,
14879
- dangerouslySetInnerHTML: {
14880
- __html: NextScript.getInlineScriptSource(this.context)
14881
- },
14882
- "data-ampdevmode": true
14883
- }),
14884
- ampDevFiles.map((file)=>/*#__PURE__*/ (0, _jsxruntime.jsx)("script", {
14885
- src: `${assetPrefix}/_next/${(0, _encodeuripath.encodeURIPath)(file)}${assetQueryString}`,
14886
- nonce: this.props.nonce,
14887
- crossOrigin: this.props.crossOrigin || crossOrigin,
14888
- "data-ampdevmode": true
14889
- }, file))
14890
- ]
14891
- });
14892
- }
14893
14217
  if (process.env.NODE_ENV !== 'production') {
14894
14218
  if (this.props.crossOrigin) console.warn('Warning: `NextScript` attribute `crossOrigin` is deprecated. https://nextjs.org/docs/messages/doc-crossorigin-deprecated');
14895
14219
  }
14896
- const files = getDocumentFiles(this.context.buildManifest, this.context.__NEXT_DATA__.page, process.env.NEXT_RUNTIME !== 'edge' && inAmpMode);
14220
+ const files = getDocumentFiles(this.context.buildManifest, this.context.__NEXT_DATA__.page);
14897
14221
  return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
14898
14222
  children: [
14899
14223
  !disableRuntimeJS && buildManifest.devFiles ? buildManifest.devFiles.map((file)=>/*#__PURE__*/ (0, _jsxruntime.jsx)("script", {
@@ -14919,14 +14243,12 @@ function requirePrettyBytes () {
14919
14243
  }
14920
14244
  }
14921
14245
  function Html(props) {
14922
- const { inAmpMode, docComponentsRendered, locale, scriptLoader, __NEXT_DATA__ } = (0, _htmlcontextsharedruntime.useHtmlContext)();
14246
+ const { docComponentsRendered, locale, scriptLoader, __NEXT_DATA__ } = (0, _htmlcontextsharedruntime.useHtmlContext)();
14923
14247
  docComponentsRendered.Html = true;
14924
14248
  handleDocumentScriptLoaderItems(scriptLoader, __NEXT_DATA__, props);
14925
14249
  return /*#__PURE__*/ (0, _jsxruntime.jsx)("html", {
14926
14250
  ...props,
14927
- lang: props.lang || locale || undefined,
14928
- amp: process.env.NEXT_RUNTIME !== 'edge' && inAmpMode ? '' : undefined,
14929
- "data-ampdevmode": process.env.NEXT_RUNTIME !== 'edge' && inAmpMode && process.env.NODE_ENV !== 'production' ? '' : undefined
14251
+ lang: props.lang || locale || undefined
14930
14252
  });
14931
14253
  }
14932
14254
  function Main() {